@@ -3591,7 +3591,7 @@ module.exports = Revenue;
3591
3591
/* global define */
3592
3592
3593
3593
/**
3594
- * UAParser.js v0.7.7
3594
+ * UAParser.js v0.7.10
3595
3595
* Lightweight JavaScript-based User-Agent string parser
3596
3596
* https://github.com/faisalman/ua-parser-js
3597
3597
*
@@ -3608,7 +3608,7 @@ module.exports = Revenue;
3608
3608
/////////////
3609
3609
3610
3610
3611
- var LIBVERSION = '0.7.7 ' ,
3611
+ var LIBVERSION = '0.7.10 ' ,
3612
3612
EMPTY = '' ,
3613
3613
UNKNOWN = '?' ,
3614
3614
FUNC_TYPE = 'function' ,
@@ -3637,12 +3637,15 @@ module.exports = Revenue;
3637
3637
3638
3638
var util = {
3639
3639
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 ] ;
3643
3646
}
3644
3647
}
3645
- return regexes ;
3648
+ return margedRegexes ;
3646
3649
} ,
3647
3650
has : function ( str1 , str2 ) {
3648
3651
if ( typeof str1 === "string" ) {
@@ -3681,11 +3684,13 @@ module.exports = Revenue;
3681
3684
if ( typeof result === UNDEF_TYPE ) {
3682
3685
result = { } ;
3683
3686
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
+ }
3689
3694
}
3690
3695
}
3691
3696
}
@@ -3830,8 +3835,10 @@ module.exports = Revenue;
3830
3835
/ ( 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
3831
3836
/ ( o p e r a ) .+ v e r s i o n \/ ( [ \w \. ] + ) / i, // Opera > 9.80
3832
3837
/ ( o p e r a ) [ \/ \s ] + ( [ \w \. ] + ) / i // Opera < 9.80
3838
+ ] , [ NAME , VERSION ] , [
3833
3839
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 ] , [
3835
3842
3836
3843
/ \s ( o p r ) \/ ( [ \w \. ] + ) / i // Opera Webkit
3837
3844
] , [ [ NAME , 'Opera' ] , VERSION ] , [
@@ -3848,14 +3855,16 @@ module.exports = Revenue;
3848
3855
3849
3856
// Webkit/KHTML based
3850
3857
/ ( 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 ] , [
3854
3861
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
3857
3863
] , [ [ NAME , 'IE' ] , VERSION ] , [
3858
3864
3865
+ / ( e d g e ) \/ ( ( \d + ) ? [ \w \. ] + ) / i // Microsoft Edge
3866
+ ] , [ NAME , VERSION ] , [
3867
+
3859
3868
/ ( y a b r o w s e r ) \/ ( [ \w \. ] + ) / i // Yandex
3860
3869
] , [ [ NAME , 'Yandex' ] , VERSION ] , [
3861
3870
@@ -3868,10 +3877,16 @@ module.exports = Revenue;
3868
3877
3869
3878
/ ( 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,
3870
3879
// 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
3873
3882
] , [ NAME , VERSION ] , [
3874
3883
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
+
3875
3890
/ ( d o l f i n ) \/ ( [ \w \. ] + ) / i // Dolphin
3876
3891
] , [ [ NAME , 'Dolphin' ] , VERSION ] , [
3877
3892
@@ -3884,6 +3899,9 @@ module.exports = Revenue;
3884
3899
/ F B A V \/ ( [ \w \. ] + ) ; / i // Facebook App for iOS
3885
3900
] , [ VERSION , [ NAME , 'Facebook' ] ] , [
3886
3901
3902
+ / f x i o s \/ ( [ \w \. - ] + ) / i // Firefox for iOS
3903
+ ] , [ VERSION , [ NAME , 'Firefox' ] ] , [
3904
+
3887
3905
/ 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
3888
3906
] , [ VERSION , [ NAME , 'Mobile Safari' ] ] , [
3889
3907
@@ -3911,8 +3929,8 @@ module.exports = Revenue;
3911
3929
/ ( m o z i l l a ) \/ ( [ \w \. ] + ) .+ r v \: .+ g e c k o \/ \d + / i, // Mozilla
3912
3930
3913
3931
// 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
3916
3934
/ ( l i n k s ) \s \( ( [ \w \. ] + ) / i, // Links
3917
3935
/ ( g o b r o w s e r ) \/ ? ( [ \w \. ] + ) * / i, // GoBrowser
3918
3936
/ ( i c e \s ? b r o w s e r ) \/ v ? ( [ \w \. _ ] + ) / i, // ICE Browser
@@ -4110,7 +4128,7 @@ module.exports = Revenue;
4110
4128
/ a n d r o i d .+ ; \s ( s h i e l d ) \s b u i l d / i // Nvidia
4111
4129
] , [ MODEL , [ VENDOR , 'Nvidia' ] , [ TYPE , CONSOLE ] ] , [
4112
4130
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
4114
4132
] , [ MODEL , [ VENDOR , 'Sony' ] , [ TYPE , CONSOLE ] ] , [
4115
4133
4116
4134
/ ( s p r i n t \s ( \w + ) ) / i // Sprint Phones
@@ -4124,7 +4142,7 @@ module.exports = Revenue;
4124
4142
/ ( 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
4125
4143
// Alcatel/GeeksPhone/Huawei/Lenovo/Nexian/Panasonic/Sony
4126
4144
] , [ VENDOR , [ MODEL , / _ / g, ' ' ] , [ TYPE , MOBILE ] ] , [
4127
-
4145
+
4128
4146
/ ( n e x u s \s 9 ) / i // HTC Nexus 9
4129
4147
] , [ MODEL , [ VENDOR , 'HTC' ] , [ TYPE , TABLET ] ] , [
4130
4148
@@ -4136,7 +4154,8 @@ module.exports = Revenue;
4136
4154
// Motorola
4137
4155
/ \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,
4138
4156
/ 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
4140
4159
] , [ MODEL , [ VENDOR , 'Motorola' ] , [ TYPE , MOBILE ] ] , [
4141
4160
/ 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
4142
4161
] , [ MODEL , [ VENDOR , 'Motorola' ] , [ TYPE , TABLET ] ] , [
@@ -4188,7 +4207,8 @@ module.exports = Revenue;
4188
4207
/ 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
4189
4208
] , [ [ MODEL , / _ / g, ' ' ] , [ VENDOR , 'Xiaomi' ] , [ TYPE , MOBILE ] ] , [
4190
4209
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
4192
4212
] , [ [ TYPE , util . lowerize ] , VENDOR , MODEL ]
4193
4213
4194
4214
/*//////////////////////////
@@ -4244,7 +4264,7 @@ module.exports = Revenue;
4244
4264
], [VENDOR, MODEL, [TYPE, MOBILE]], [
4245
4265
/(i-STYLE2.1)/i // i-mobile i-STYLE 2.1
4246
4266
], [[MODEL, 'i-STYLE 2.1'], [VENDOR, 'i-mobile'], [TYPE, MOBILE]], [
4247
-
4267
+
4248
4268
/(mobiistar touch LAI 512)/i // mobiistar touch LAI 512
4249
4269
], [[MODEL, 'Touch LAI 512'], [VENDOR, 'mobiistar'], [TYPE, MOBILE]], [
4250
4270
@@ -4256,6 +4276,9 @@ module.exports = Revenue;
4256
4276
4257
4277
engine : [ [
4258
4278
4279
+ / w i n d o w s .+ \s e d g e \/ ( [ \w \. ] + ) / i // EdgeHTML
4280
+ ] , [ VERSION , [ NAME , 'EdgeHTML' ] ] , [
4281
+
4259
4282
/ ( p r e s t o ) \/ ( [ \w \. ] + ) / i, // Presto
4260
4283
/ ( 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
4261
4284
/ ( 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;
4282
4305
] , [ [ NAME , 'BlackBerry' ] , VERSION ] , [
4283
4306
/ ( b l a c k b e r r y ) \w * \/ ? ( [ \w \. ] + ) * / i, // Blackberry
4284
4307
/ ( 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,
4286
4309
// Android/WebOS/Palm/QNX/Bada/RIM/MeeGo/Contiki
4287
4310
/ l i n u x ; .+ ( s a i l f i s h ) ; / i // Sailfish OS
4288
4311
] , [ NAME , VERSION ] , [
@@ -4294,12 +4317,12 @@ module.exports = Revenue;
4294
4317
] , [ [ NAME , 'Firefox OS' ] , VERSION ] , [
4295
4318
4296
4319
// 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
4298
4321
4299
4322
// GNU/Linux based
4300
4323
/ ( m i n t ) [ \/ \s \( ] ? ( \w + ) * / i, // Mint
4301
4324
/ ( 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,
4303
4326
// Joli/Ubuntu/Debian/SUSE/Gentoo/Arch/Slackware
4304
4327
// Fedora/Mandriva/CentOS/PCLinuxOS/RedHat/Zenwalk/Linpus
4305
4328
/ ( h u r d | l i n u x ) \s ? ( [ \w \. ] + ) * / i, // Hurd/Linux
@@ -4323,6 +4346,9 @@ module.exports = Revenue;
4323
4346
/ ( 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
4324
4347
] , [ [ NAME , 'iPad' ] , [ VERSION , / _ / g, '.' ] ] , [
4325
4348
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
+
4326
4352
/ ( m a c \s o s \s x ) \s ? ( [ \w \s \. ] + \w ) * / i,
4327
4353
/ ( m a c i n t o s h | m a c (? = _ p o w e r p c ) \s ) / i // Mac OS
4328
4354
] , [ [ NAME , 'Mac' ] , [ VERSION , / _ / g, '.' ] ] , [
@@ -4387,7 +4413,6 @@ module.exports = Revenue;
4387
4413
ua = uastring ;
4388
4414
return this ;
4389
4415
} ;
4390
- this . setUA ( ua ) ;
4391
4416
return this ;
4392
4417
} ;
4393
4418
@@ -4436,7 +4461,7 @@ module.exports = Revenue;
4436
4461
} else {
4437
4462
// requirejs env (optional)
4438
4463
if ( typeof ( define ) === FUNC_TYPE && define . amd ) {
4439
- define ( function ( ) {
4464
+ define ( "ua-parser-js" , [ ] , function ( ) {
4440
4465
return UAParser ;
4441
4466
} ) ;
4442
4467
} else {
@@ -4446,7 +4471,7 @@ module.exports = Revenue;
4446
4471
}
4447
4472
4448
4473
// jQuery/Zepto specific (optional)
4449
- // Note:
4474
+ // Note:
4450
4475
// In AMD env the global scope should be kept clean, but jQuery is an exception.
4451
4476
// jQuery always exports to global scope, unless jQuery.noConflict(true) is used,
4452
4477
// and we should catch that.
@@ -4466,7 +4491,7 @@ module.exports = Revenue;
4466
4491
} ;
4467
4492
}
4468
4493
4469
- } ) ( this ) ;
4494
+ } ) ( typeof window === 'object' ? window : this ) ;
4470
4495
4471
4496
} , { } ] ,
4472
4497
16 : [ function ( require , module , exports ) {
0 commit comments