###############
# Piwik - Open source web analytics
#
# @link http://piwik.org
# @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
#
# @category UserAgentParserEnhanced
###############

##########
# Bot
##########
- regex: '(nuhk|Sosospider|CareerBot|bingbot|SputnikBot|TsolCrawler|SensikaBot|UptimeRobot|SeznamBot|AhrefsBot|Ezooms|Googlebot|Exabot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves/Teoma|ia_archiver|ScoutJet|Gulper Web Bot|EmailWolf|grub-client|Download Demon|SearchExpress|Microsoft URL Control|bot|borg|yahoo|slurp|msnbot|msrbot|openbot|archiver|netresearch|transcoder|crawler|lycos|scooter|altavista|teoma|gigabot|baiduspider|blitzbot|oegp|charlotte|furlbot|http%20client|polybot|htdig|ichiro|mogimogi|larbin|pompos|scrubby|searchsight|seekbot|semanticdiscovery|snappy|speedy|spider|voila|vortex|zao|zeal|fast-webcrawler|converacrawler|dataparksearch|findlinksYottaaMonitor|BrowserMob|HttpMonitor|YandexBot|Slurp|BingPreview|PagePeeker|ThumbShotsBot|WebThumb|URL2PNG|ZooShot|GomezA|Catchpoint bot|Willow Internet Crawler|Google SketchUp|Read%20Later|Minimo|Pingdom.com|facebookexternalhit|Twitterbot|RackspaceBot)'
  name: 'Bot'
  version: ''



##########
# Simulators
##########
- regex: '(Talkatone|WinWAP)'
  name: '$1'
  version: ''



##########
# Tizen
##########
- regex: 'Tizen'
  name: 'Tizen'
  version: ''



##########
## Sailfish OS
###########
- regex: 'Sailfish|Jolla'
  name: 'Sailfish OS'
  version: ''



##########
# Android
##########
- regex: '(?:Android|Adr)[ /](?:[a-z]+ )?(\d+\.\d+)'
  name: 'Android'
  version: '$1'
  
  
- regex: 'Android|Silk-Accelerated=[a-z]{4,5}'
  name: 'Android'
  version: ''
  
  
##########
# AmigaOS
##########
- regex: 'AmigaOS[ ]?(\d+\.\d+)'
  name: 'AmigaOS'
  version: '$1'

- regex: 'AmigaOS|AmigaVoyager|Amiga-AWeb'
  name: 'AmigaOS'
  version: ''


##########
# Linux
##########
- regex: 'Arch ?Linux(?:[ /\-](\d+\.\d+))?'
  name: 'Arch Linux'
  version: '$1'

- regex: 'Linux; .*((?:Debian|Knoppix|Mint|Ubuntu|Kubuntu|Xubuntu|Lubuntu|Fedora|Red Hat|Mandriva|Gentoo|Sabayon|Slackware|SUSE|Puppy|CentOS|BackTrack|YunOs|Presto))[ /](\d+\.\d+)'
  name: '$1'
  version: '$2'

- regex: '(Debian|Knoppix|Mint|Ubuntu|Kubuntu|Xubuntu|Lubuntu|Fedora|Red Hat|Mandriva|Gentoo|Sabayon|Slackware|SUSE|Puppy|CentOS|BackTrack|YunOs)(?: Linux)?(?:[ /\-](\d+\.\d+))?'
  name: '$1'
  version: '$2'

# generic linux match -> end of file

##########
# Windows Mobile
##########
- regex: 'Windows Phone (?:OS)?[ ]?(\d+\.\d+)'
  name: 'Windows Phone'
  version: '$1'
  
  
- regex: 'XBLWP7|Windows Phone'
  name: 'Windows Phone'
  version: ''

- regex: 'Windows CE'
  name: 'Windows CE'
  version: ''
  
  
- regex: '(?:IEMobile|Windows Mobile)(?: (\d+\.\d+))?'
  name: 'Windows Mobile'
  version: '$1'
  
  
- regex: 'Windows NT 6.2; ARM;'
  name: 'Windows RT'
  version: ''
  


##########
# webOS
##########
- regex: '(?:webOS|Palm webOS)(?:/(\d+\.\d+))?'
  name: 'webOS'
  version: '$1'

- regex: '(?:PalmOS|Palm OS)(?:[/ ](\d+\.\d+))?|Palm'
  name: 'palmOS'
  version: '$1'

- regex: 'Xiino(?:.*v\. (\d+\.\d+))?'  # palmOS only browser
  name: 'palmOS'
  version: '$1'


  
##########
# Windows
##########
- regex: 'CYGWIN_NT-6.2|Windows NT 6.2|Windows NT 6.3|Windows 8'
  name: 'Windows 8'
  version: '8'
  
  
- regex: 'CYGWIN_NT-6.1|Windows NT 6.1|Windows 7'
  name: 'Windows 7'
  version: '7'
  
  
- regex: 'CYGWIN_NT-6.0|Windows NT 6.0|Windows Vista'
  name: 'Windows Vista'
  version: 'Vista'
  
  
- regex: 'CYGWIN_NT-5.2|Windows NT 5.2|Windows Server 2003 / XP x64'
  name: 'Windows Server 2003'
  version: 'Server 2003'
  
  
- regex: 'CYGWIN_NT-5.1|Windows NT 5.1|Windows XP'
  name: 'Windows XP'
  version: 'XP'
  
  
- regex: 'CYGWIN_NT-5.0|Windows NT 5.0|Windows 2000'
  name: 'Windows 2000'
  version: '2000'
  
  
- regex: 'CYGWIN_NT-4.0|Windows NT 4.0|WinNT|Windows NT'
  name: 'Windows NT'
  version: 'NT'
  
  
- regex: 'CYGWIN_ME-4.90|Win 9x 4.90|Windows ME'
  name: 'Windows ME'
  version: 'ME'
  
  
- regex: 'CYGWIN_98-4.10|Win98|Windows 98'
  name: 'Windows 98'
  version: '98'
  
  
- regex: 'CYGWIN_95-4.0|Win32|Win95|Windows 95|Windows_95'
  name: 'Windows 95'
  version: '95'
  
  
- regex: 'Windows 3.1'
  name: 'Windows 3.1'
  version: '3.1'
  
  
- regex: 'Windows'
  name: 'Windows'
  version: ''
  
  
  
##########
# Mac
##########
- regex: 'Mac OS X (\d+[_.]\d+)'
  name: 'Mac'
  version: '$1'
  
- regex: 'Darwin|Macintosh|Mac_PowerPC|PPC|Mac PowerPC'
  name: 'Mac'
  version: ''
  
  
  
##########
# iOS
##########
- regex: '(?:CPU OS|iPhone OS)[ _](\d+(?:_\d+)?)'
  name: 'iOS'
  version: '$1'
  
- regex: '(?:iPhone|iPad|iPod)(?:.*Mac OS X.*Version/(\d+\.\d+)|; Opera)'
  name: 'iOS'
  version: '$1'
  
  
  
##########
# ChromeOS
##########
- regex: 'CrOS [a-z0-9_]+ (\d+\.\d+)'
  name: 'Chrome OS'
  version: '$1'
  
  
  
##########
# BlackBerry
##########
- regex: '(?:BB10;.+Version|Black[Bb]erry[0-9a-z]+|Black[Bb]erry.+Version)/(\d+\.\d+)'
  name: 'BlackBerry OS'
  version: '$1'
  
  
- regex: 'RIM Tablet OS (\d+\.\d+)'
  name: 'BlackBerry Tablet OS'
  version: '$1'
  
  
- regex: 'RIM Tablet OS|QNX|Play[Bb]ook'
  name: 'BlackBerry Tablet OS'
  version: ''
  
  
- regex: 'BlackBerry'
  name: 'BlackBerry OS'
  version: ''


##########
# Haiku OS
##########
- regex: 'Haiku'
  name: 'Haiku OS'
  version: ''


##########
# BeOS
##########
- regex: 'BeOS'
  name: 'BeOS'
  version: ''




##########
# Symbian
##########
- regex: '(?:Series ?60|SymbOS|S60)(?:[ /]?(\d+\.\d+|V\d+))?'
  name: 'Symbian OS Series 60'
  version: '$1'


- regex: 'Series40'
  name: 'Symbian OS Series 40'
  version: ''


- regex: 'SymbianOS/(\d+\.\d+)'
  name: 'Symbian OS'
  version: '$1'
  
  
- regex: 'Symbian/3.+NokiaBrowser/7\.3'
  name: 'Symbian'
  version: '^3 Anna'
  
  
- regex: 'Symbian/3.+NokiaBrowser/7\.4'
  name: 'Symbian'
  version: '^3 Belle'
  
  
- regex: 'Symbian[/]?3'
  name: 'Symbian^3'
  version: '^3'
  
  
- regex: 'MeeGo|WeTab'
  name: 'MeeGo'
  version: ''
  
  
- regex: 'Symbian OS|SymbOS'
  name: 'Symbian OS'
  version: ''
  
  
- regex: 'Nokia'
  name: 'Symbian'
  version: ''



##########
# Firefox OS
##########
- regex: '(?:Mobile|Tablet);.+Firefox/\d+\.\d+'
  name: 'Firefox OS'
  version: ''


##########
# RISC OS
##########
- regex: 'RISC OS(?:-NC)?(?:[ /](\d+\.\d+))?'
  name: 'RISC OS'
  version: '$1'


##########
# Inferno
##########
- regex: 'Inferno(?:[ /](\d+\.\d+))?'
  name: 'Inferno'
  version: '$1'


##########
# Bada
##########
- regex: 'bada(?:[ /](\d+\.\d+))'
  name: 'Bada'
  version: '$1'
  
  
- regex: 'bada'
  name: 'Bada'
  version: ''


##########
# Brew
##########
- regex: '(?:Brew MP|BREW|BMP)(?:[ /](\d+\.\d+))'
  name: 'Brew'
  version: '$1'


- regex: 'Brew MP|BREW|BMP'
  name: 'Brew'
  version: ''

  
##########
# Web TV
##########
- regex: 'GoogleTV[ /](\d+\.\d+)|GoogleTV'
  name: 'Google TV'
  version: '$1'
  
  
- regex: 'AppleTV(?:/?(\d+\.\d+))?'
  name: 'Apple TV'
  version: '$1'
  
  
- regex: 'WebTV/(\d+\.\d+)'
  name: 'WebTV'
  version: '$1'
  
  
  
##########
# Unix
##########
- regex: '(?:SunOS|Solaris)(?:[/ ](\d+\.\d+))?'
  name: 'Solaris'
  version: '$1'
  
  
- regex: 'AIX(?:[/ ]?(\d+\.\d+))?'
  name: 'AIX'
  version: '$1'
  
  
- regex: 'HP-UX(?:[/ ]?(\d+\.\d+))?'
  name: 'HP-UX'
  version: '$1'
  
  
- regex: 'FreeBSD(?:[/ ]?(\d+\.\d+))?'
  name: 'FreeBSD'
  version: '$1'
  
  
- regex: 'NetBSD(?:[/ ]?(\d+\.\d+))?'
  name: 'NetBSD'
  version: '$1'
  
  
- regex: 'OpenBSD(?:[/ ]?(\d+\.\d+))?'
  name: 'OpenBSD'
  version: '$1'
  
  
- regex: 'DragonFly(?:[/ ]?(\d+\.\d+))?'
  name: 'DragonFly'
  version: '$1'
  
  
- regex: 'Syllable(?:[/ ]?(\d+\.\d+))?'
  name: 'Syllable'
  version: '$1'
  
  
- regex: 'IRIX(?:[/ ]?(\d+\.\d+))'
  name: 'IRIX'
  version: '$1'
  
  
- regex: 'OSF1(?:[/ ]?v?(\d+\.\d+))?'
  name: 'OSF1'
  version: '$1'
  
  
  
##########
# Gaming Console
##########
- regex: 'Nintendo Wii'
  name: 'Nintendo'
  version: 'Wii'
  
  
- regex: 'PlayStation ?([3|4])'
  name: 'PlayStation'
  version: '$1'
  
  
- regex: 'Xbox|KIN\.(?:One|Two)'
  name: 'Xbox'
  version: '360'
  
  
  
##########
# Mobile Gaming Console
##########
- regex: 'Nitro|Nintendo ([3]?DS[i]?)'
  name: 'Nintendo Mobile'
  version: '$1'
  
  
- regex: 'PlayStation ((?:Portable|Vita))'
  name: 'PlayStation Portable'
  version: '$1'
  
  
  
##########
# IBM
##########
- regex: 'OS/2'
  name: 'OS/2'
  version: ''
  


###########
# Linux (Generic)
###########
- regex: 'Linux[^a-z]'
  name: 'Linux'
  version: ''


