@@ -3591,7 +3591,7 @@ module.exports = Revenue;
35913591/* global define */
35923592
35933593/**
3594- * UAParser.js v0.7.7
3594+ * UAParser.js v0.7.10
35953595 * Lightweight JavaScript-based User-Agent string parser
35963596 * https://github.com/faisalman/ua-parser-js
35973597 *
@@ -3608,7 +3608,7 @@ module.exports = Revenue;
36083608 /////////////
36093609
36103610
3611- var LIBVERSION = '0.7.7 ' ,
3611+ var LIBVERSION = '0.7.10 ' ,
36123612 EMPTY = '' ,
36133613 UNKNOWN = '?' ,
36143614 FUNC_TYPE = 'function' ,
@@ -3637,12 +3637,15 @@ module.exports = Revenue;
36373637
36383638 var util = {
36393639 extend : function ( regexes , extensions ) {
3640- for ( var i in extensions ) {
3641- if ( "browser cpu device engine os" . indexOf ( i ) !== - 1 && extensions [ i ] . length % 2 === 0 ) {
3642- regexes [ i ] = extensions [ i ] . concat ( regexes [ i ] ) ;
3640+ var margedRegexes = { } ;
3641+ for ( var i in regexes ) {
3642+ if ( extensions [ i ] && extensions [ i ] . length % 2 === 0 ) {
3643+ margedRegexes [ i ] = extensions [ i ] . concat ( regexes [ i ] ) ;
3644+ } else {
3645+ margedRegexes [ i ] = regexes [ i ] ;
36433646 }
36443647 }
3645- return regexes ;
3648+ return margedRegexes ;
36463649 } ,
36473650 has : function ( str1 , str2 ) {
36483651 if ( typeof str1 === "string" ) {
@@ -3681,11 +3684,13 @@ module.exports = Revenue;
36813684 if ( typeof result === UNDEF_TYPE ) {
36823685 result = { } ;
36833686 for ( p in props ) {
3684- q = props [ p ] ;
3685- if ( typeof q === OBJ_TYPE ) {
3686- result [ q [ 0 ] ] = undefined ;
3687- } else {
3688- result [ q ] = undefined ;
3687+ if ( props . hasOwnProperty ( p ) ) {
3688+ q = props [ p ] ;
3689+ if ( typeof q === OBJ_TYPE ) {
3690+ result [ q [ 0 ] ] = undefined ;
3691+ } else {
3692+ result [ q ] = undefined ;
3693+ }
36893694 }
36903695 }
36913696 }
@@ -3830,8 +3835,10 @@ module.exports = Revenue;
38303835 / ( o p e r a \s [ m o b i l e t a b ] + ) .+ v e r s i o n \/ ( [ \w \. - ] + ) / i, // Opera Mobi/Tablet
38313836 / ( o p e r a ) .+ v e r s i o n \/ ( [ \w \. ] + ) / i, // Opera > 9.80
38323837 / ( o p e r a ) [ \/ \s ] + ( [ \w \. ] + ) / i // Opera < 9.80
3838+ ] , [ NAME , VERSION ] , [
38333839
3834- ] , [ [ NAME , mapper . str , maps . browser . name ] , VERSION ] , [
3840+ / ( O P i O S ) [ \/ \s ] + ( [ \w \. ] + ) / i // Opera mini on iphone >= 8.0
3841+ ] , [ [ NAME , 'Opera Mini' ] , VERSION ] , [
38353842
38363843 / \s ( o p r ) \/ ( [ \w \. ] + ) / i // Opera Webkit
38373844 ] , [ [ NAME , 'Opera' ] , VERSION ] , [
@@ -3848,14 +3855,16 @@ module.exports = Revenue;
38483855
38493856 // Webkit/KHTML based
38503857 / ( r e k o n q ) \/ ( [ \w \. ] + ) * / i, // Rekonq
3851- / ( c h r o m i u m | f l o c k | r o c k m e l t | m i d o r i | e p i p h a n y | s i l k | s k y f i r e | o v i b r o w s e r | b o l t | i r o n | v i v a l d i ) \/ ( [ \w \. - ] + ) / i
3852- // Chromium/Flock/RockMelt/Midori/Epiphany/Silk/Skyfire/Bolt/Iron
3853- ] , [ [ NAME , mapper . str , maps . browser . name ] , VERSION ] , [
3858+ / ( c h r o m i u m | f l o c k | r o c k m e l t | m i d o r i | e p i p h a n y | s i l k | s k y f i r e | o v i b r o w s e r | b o l t | i r o n | v i v a l d i | i r i d i u m | p h a n t o m j s ) \/ ( [ \w \. - ] + ) / i
3859+ // Chromium/Flock/RockMelt/Midori/Epiphany/Silk/Skyfire/Bolt/Iron/Iridium/PhantomJS
3860+ ] , [ NAME , VERSION ] , [
38543861
3855- / ( t r i d e n t ) .+ r v [: \s] ( [ \w \. ] + ) .+ l i k e \s g e c k o / i, // IE11
3856- / ( E d g e ) \/ ( ( \d + ) ? [ \w \. ] + ) / i // IE12
3862+ / ( t r i d e n t ) .+ r v [: \s] ( [ \w \. ] + ) .+ l i k e \s g e c k o / i // IE11
38573863 ] , [ [ NAME , 'IE' ] , VERSION ] , [
38583864
3865+ / ( e d g e ) \/ ( ( \d + ) ? [ \w \. ] + ) / i // Microsoft Edge
3866+ ] , [ NAME , VERSION ] , [
3867+
38593868 / ( y a b r o w s e r ) \/ ( [ \w \. ] + ) / i // Yandex
38603869 ] , [ [ NAME , 'Yandex' ] , VERSION ] , [
38613870
@@ -3868,10 +3877,16 @@ module.exports = Revenue;
38683877
38693878 / ( c h r o m e | o m n i w e b | a r o r a | [ t i z e n o k a ] { 5 } \s ? b r o w s e r ) \/ v ? ( [ \w \. ] + ) / i,
38703879 // Chrome/OmniWeb/Arora/Tizen/Nokia
3871- / ( u c \s ? b r o w s e r | q q b r o w s e r ) [ \/ \s ] ? ( [ \w \. ] + ) / i
3872- // UCBrowser/ QQBrowser
3880+ / ( q q b r o w s e r ) [ \/ \s ] ? ( [ \w \. ] + ) / i
3881+ // QQBrowser
38733882 ] , [ NAME , VERSION ] , [
38743883
3884+ / ( u c \s ? b r o w s e r ) [ \/ \s ] ? ( [ \w \. ] + ) / i,
3885+ / u c w e b .+ ( u c b r o w s e r ) [ \/ \s ] ? ( [ \w \. ] + ) / i,
3886+ / J U C .+ ( u c w e b ) [ \/ \s ] ? ( [ \w \. ] + ) / i
3887+ // UCBrowser
3888+ ] , [ [ NAME , 'UCBrowser' ] , VERSION ] , [
3889+
38753890 / ( d o l f i n ) \/ ( [ \w \. ] + ) / i // Dolphin
38763891 ] , [ [ NAME , 'Dolphin' ] , VERSION ] , [
38773892
@@ -3884,6 +3899,9 @@ module.exports = Revenue;
38843899 / F B A V \/ ( [ \w \. ] + ) ; / i // Facebook App for iOS
38853900 ] , [ VERSION , [ NAME , 'Facebook' ] ] , [
38863901
3902+ / f x i o s \/ ( [ \w \. - ] + ) / i // Firefox for iOS
3903+ ] , [ VERSION , [ NAME , 'Firefox' ] ] , [
3904+
38873905 / v e r s i o n \/ ( [ \w \. ] + ) .+ ?m o b i l e \/ \w + \s ( s a f a r i ) / i // Mobile Safari
38883906 ] , [ VERSION , [ NAME , 'Mobile Safari' ] ] , [
38893907
@@ -3911,8 +3929,8 @@ module.exports = Revenue;
39113929 / ( m o z i l l a ) \/ ( [ \w \. ] + ) .+ r v \: .+ g e c k o \/ \d + / i, // Mozilla
39123930
39133931 // Other
3914- / ( p o l a r i s | l y n x | d i l l o | i c a b | d o r i s | a m a y a | w 3 m | n e t s u r f ) [ \/ \s ] ? ( [ \w \. ] + ) / i,
3915- // Polaris/Lynx/Dillo/iCab/Doris/Amaya/w3m/NetSurf
3932+ / ( p o l a r i s | l y n x | d i l l o | i c a b | d o r i s | a m a y a | w 3 m | n e t s u r f | s l e i p n i r ) [ \/ \s ] ? ( [ \w \. ] + ) / i,
3933+ // Polaris/Lynx/Dillo/iCab/Doris/Amaya/w3m/NetSurf/Sleipnir
39163934 / ( l i n k s ) \s \( ( [ \w \. ] + ) / i, // Links
39173935 / ( g o b r o w s e r ) \/ ? ( [ \w \. ] + ) * / i, // GoBrowser
39183936 / ( i c e \s ? b r o w s e r ) \/ v ? ( [ \w \. _ ] + ) / i, // ICE Browser
@@ -4110,7 +4128,7 @@ module.exports = Revenue;
41104128 / a n d r o i d .+ ; \s ( s h i e l d ) \s b u i l d / i // Nvidia
41114129 ] , [ MODEL , [ VENDOR , 'Nvidia' ] , [ TYPE , CONSOLE ] ] , [
41124130
4113- / ( p l a y s t a t i o n \s [ 3 p o r t a b l e v i ] + ) / i // Playstation
4131+ / ( p l a y s t a t i o n \s [ 3 4 p o r t a b l e v i ] + ) / i // Playstation
41144132 ] , [ MODEL , [ VENDOR , 'Sony' ] , [ TYPE , CONSOLE ] ] , [
41154133
41164134 / ( s p r i n t \s ( \w + ) ) / i // Sprint Phones
@@ -4124,7 +4142,7 @@ module.exports = Revenue;
41244142 / ( a l c a t e l | g e e k s p h o n e | h u a w e i | l e n o v o | n e x i a n | p a n a s o n i c | (? = ; \s ) s o n y ) [ _ \s - ] ? ( [ \w - ] + ) * / i
41254143 // Alcatel/GeeksPhone/Huawei/Lenovo/Nexian/Panasonic/Sony
41264144 ] , [ VENDOR , [ MODEL , / _ / g, ' ' ] , [ TYPE , MOBILE ] ] , [
4127-
4145+
41284146 / ( n e x u s \s 9 ) / i // HTC Nexus 9
41294147 ] , [ MODEL , [ VENDOR , 'HTC' ] , [ TYPE , TABLET ] ] , [
41304148
@@ -4136,7 +4154,8 @@ module.exports = Revenue;
41364154 // Motorola
41374155 / \s ( m i l e s t o n e | d r o i d (?: [ 2 - 4 x ] | \s (?: b i o n i c | x 2 | p r o | r a z r ) ) ? ( : ? \s 4 g ) ? ) [ \w \s ] + b u i l d \/ / i,
41384156 / m o t [ \s - ] ? ( \w + ) * / i,
4139- / ( X T \d { 3 , 4 } ) b u i l d \/ / i
4157+ / ( X T \d { 3 , 4 } ) b u i l d \/ / i,
4158+ / ( n e x u s \s [ 6 ] ) / i
41404159 ] , [ MODEL , [ VENDOR , 'Motorola' ] , [ TYPE , MOBILE ] ] , [
41414160 / a n d r o i d .+ \s ( m z 6 0 \d | x o o m [ \s 2 ] { 0 , 2 } ) \s b u i l d \/ / i
41424161 ] , [ MODEL , [ VENDOR , 'Motorola' ] , [ TYPE , TABLET ] ] , [
@@ -4188,7 +4207,8 @@ module.exports = Revenue;
41884207 / a n d r o i d .+ ( m i [ \s \- _ ] * (?: o n e | o n e [ \s _ ] p l u s ) ? [ \s _ ] * (?: \d \w ) ? ) \s + b u i l d / i // Xiaomi Mi
41894208 ] , [ [ MODEL , / _ / g, ' ' ] , [ VENDOR , 'Xiaomi' ] , [ TYPE , MOBILE ] ] , [
41904209
4191- / ( m o b i l e | t a b l e t ) ; .+ r v \: .+ g e c k o \/ / i // Unidentifiable
4210+ / \s ( t a b l e t ) [ ; \/ \s ] / i, // Unidentifiable Tablet
4211+ / \s ( m o b i l e ) [ ; \/ \s ] / i // Unidentifiable Mobile
41924212 ] , [ [ TYPE , util . lowerize ] , VENDOR , MODEL ]
41934213
41944214 /*//////////////////////////
@@ -4244,7 +4264,7 @@ module.exports = Revenue;
42444264 ], [VENDOR, MODEL, [TYPE, MOBILE]], [
42454265 /(i-STYLE2.1)/i // i-mobile i-STYLE 2.1
42464266 ], [[MODEL, 'i-STYLE 2.1'], [VENDOR, 'i-mobile'], [TYPE, MOBILE]], [
4247-
4267+
42484268 /(mobiistar touch LAI 512)/i // mobiistar touch LAI 512
42494269 ], [[MODEL, 'Touch LAI 512'], [VENDOR, 'mobiistar'], [TYPE, MOBILE]], [
42504270
@@ -4256,6 +4276,9 @@ module.exports = Revenue;
42564276
42574277 engine : [ [
42584278
4279+ / w i n d o w s .+ \s e d g e \/ ( [ \w \. ] + ) / i // EdgeHTML
4280+ ] , [ VERSION , [ NAME , 'EdgeHTML' ] ] , [
4281+
42594282 / ( p r e s t o ) \/ ( [ \w \. ] + ) / i, // Presto
42604283 / ( w e b k i t | t r i d e n t | n e t f r o n t | n e t s u r f | a m a y a | l y n x | w 3 m ) \/ ( [ \w \. ] + ) / i, // WebKit/Trident/NetFront/NetSurf/Amaya/Lynx/w3m
42614284 / ( k h t m l | t a s m a n | l i n k s ) [ \/ \s ] \( ? ( [ \w \. ] + ) / i, // KHTML/Tasman/Links
@@ -4282,7 +4305,7 @@ module.exports = Revenue;
42824305 ] , [ [ NAME , 'BlackBerry' ] , VERSION ] , [
42834306 / ( b l a c k b e r r y ) \w * \/ ? ( [ \w \. ] + ) * / i, // Blackberry
42844307 / ( t i z e n ) [ \/ \s ] ( [ \w \. ] + ) / i, // Tizen
4285- / ( a n d r o i d | w e b o s | p a l m \o s | q n x | b a d a | r i m \s t a b l e t \s o s | m e e g o | c o n t i k i ) [ \/ \s - ] ? ( [ \w \. ] + ) * / i,
4308+ / ( a n d r o i d | w e b o s | p a l m \s o s | q n x | b a d a | r i m \s t a b l e t \s o s | m e e g o | c o n t i k i ) [ \/ \s - ] ? ( [ \w \. ] + ) * / i,
42864309 // Android/WebOS/Palm/QNX/Bada/RIM/MeeGo/Contiki
42874310 / l i n u x ; .+ ( s a i l f i s h ) ; / i // Sailfish OS
42884311 ] , [ NAME , VERSION ] , [
@@ -4294,12 +4317,12 @@ module.exports = Revenue;
42944317 ] , [ [ NAME , 'Firefox OS' ] , VERSION ] , [
42954318
42964319 // Console
4297- / ( n i n t e n d o | p l a y s t a t i o n ) \s ( [ w i d s 3 p o r t a b l e v u ] + ) / i, // Nintendo/Playstation
4320+ / ( n i n t e n d o | p l a y s t a t i o n ) \s ( [ w i d s 3 4 p o r t a b l e v u ] + ) / i, // Nintendo/Playstation
42984321
42994322 // GNU/Linux based
43004323 / ( m i n t ) [ \/ \s \( ] ? ( \w + ) * / i, // Mint
43014324 / ( m a g e i a | v e c t o r l i n u x ) [ ; \s ] / i, // Mageia/VectorLinux
4302- / ( j o l i | [ k x l n ] ? u b u n t u | d e b i a n | [ o p e n ] * s u s e | g e n t o o | a r c h | s l a c k w a r e | f e d o r a | m a n d r i v a | c e n t o s | p c l i n u x o s | r e d h a t | z e n w a l k | l i n p u s ) [ \/ \s - ] ? ( [ \w \. - ] + ) * / i,
4325+ / ( j o l i | [ k x l n ] ? u b u n t u | d e b i a n | [ o p e n ] * s u s e | g e n t o o | (? = \s ) a r c h | s l a c k w a r e | f e d o r a | m a n d r i v a | c e n t o s | p c l i n u x o s | r e d h a t | z e n w a l k | l i n p u s ) [ \/ \s - ] ? ( [ \w \. - ] + ) * / i,
43034326 // Joli/Ubuntu/Debian/SUSE/Gentoo/Arch/Slackware
43044327 // Fedora/Mandriva/CentOS/PCLinuxOS/RedHat/Zenwalk/Linpus
43054328 / ( h u r d | l i n u x ) \s ? ( [ \w \. ] + ) * / i, // Hurd/Linux
@@ -4323,6 +4346,9 @@ module.exports = Revenue;
43234346 / ( i p a d ) (?: .* o s \s * ( [ \w ] + ) * \s l i k e \s m a c | ; \s o p e r a ) / i // iOS
43244347 ] , [ [ NAME , 'iPad' ] , [ VERSION , / _ / g, '.' ] ] , [
43254348
4349+ / ( i p [ h o n e a d ] + ) (?: .* o s \s ( [ \w ] + ) * \s l i k e \s m a c | ; \s o p e r a ) / i // iOS
4350+ ] , [ [ NAME , 'iOS' ] , [ VERSION , / _ / g, '.' ] ] , [
4351+
43264352 / ( m a c \s o s \s x ) \s ? ( [ \w \s \. ] + \w ) * / i,
43274353 / ( m a c i n t o s h | m a c (? = _ p o w e r p c ) \s ) / i // Mac OS
43284354 ] , [ [ NAME , 'Mac' ] , [ VERSION , / _ / g, '.' ] ] , [
@@ -4387,7 +4413,6 @@ module.exports = Revenue;
43874413 ua = uastring ;
43884414 return this ;
43894415 } ;
4390- this . setUA ( ua ) ;
43914416 return this ;
43924417 } ;
43934418
@@ -4436,7 +4461,7 @@ module.exports = Revenue;
44364461 } else {
44374462 // requirejs env (optional)
44384463 if ( typeof ( define ) === FUNC_TYPE && define . amd ) {
4439- define ( function ( ) {
4464+ define ( "ua-parser-js" , [ ] , function ( ) {
44404465 return UAParser ;
44414466 } ) ;
44424467 } else {
@@ -4446,7 +4471,7 @@ module.exports = Revenue;
44464471 }
44474472
44484473 // jQuery/Zepto specific (optional)
4449- // Note:
4474+ // Note:
44504475 // In AMD env the global scope should be kept clean, but jQuery is an exception.
44514476 // jQuery always exports to global scope, unless jQuery.noConflict(true) is used,
44524477 // and we should catch that.
@@ -4466,7 +4491,7 @@ module.exports = Revenue;
44664491 } ;
44674492 }
44684493
4469- } ) ( this ) ;
4494+ } ) ( typeof window === 'object' ? window : this ) ;
44704495
44714496} , { } ] ,
4472449716 : [ function ( require , module , exports ) {
0 commit comments