text: /*! Detectizr - v1.5.0 - 2014-01-04
  * https://github.com/barisaydinoglu/Detectizr
  * Copyright 2014 Baris Aydinoglu; Licensed MIT */
  
  !function(a,b){var c=a.Modernizr,d={addAllFeaturesAsClass:!1,detectDevice:!0,detectDeviceModel:!0,detectScreen:!0,detectOS:!0,detectBrowser:!0,detectPlugins:!0};function e(e){var f=function(a,b){var c,d,e;if(arguments.length>2)for(c=1,d=arguments.length;d>c;c+=1)f(a,arguments[c]);else for(e in b)b.hasOwnProperty(e)&&(a[e]=b[e]);return a},g=this,h=c.Detectizr.device,i=document.documentElement,j=["tv","tablet","mobile","desktop"],k=/[\t\r\n]/g,l={java:{substrs:["Java"],progIds:["JavaWebStart.isInstalled"]},acrobat:{substrs:["Adobe","Acrobat"],progIds:["AcroPDF.PDF","PDF.PDFCtrl.5"]},flash:{substrs:["Shockwave","Flash"],progIds:["ShockwaveFlash.ShockwaveFlash"]},mediaplayer:{substrs:["Windows Media"],progIds:["MediaPlayer.MediaPlayer"]},silverlight:{substrs:["Silverlight"],progIds:["AgControl.AgControl"]}},m,n,o,p,q,r,s,t;if(d=f({},d,e||{}),g.is=function(a){return h.userAgent.indexOf(a)>-1},g.test=function(a){return a.test(h.userAgent)},g.exec=function(a){return a.exec(h.userAgent)},g.trim=function(a){return a.replace(/^\s+|\s+$/g,"")},g.toCamel=function(a){return null===a||void 0===a?"":String(a).replace(/((\s|\-|\.)+[a-z0-9])/g,function(a){return a.toUpperCase().replace(/(\s|\-|\.)/g,"")})},g.removeClass=function(a,b){var c=b||"",d=1===a.nodeType&&(a.className?(" "+a.className+" ").replace(k," "):"");if(d){while(d.indexOf(" "+c+" ")>=0)d=d.replace(" "+c+" "," ");a.className=b?g.trim(d):""}},g.addVersionTest=function(a,b,c){null!==b&&void 0!==b&&""!==b&&(b=g.toCamel(b),""!==b&&(void 0!==c&&c>0&&(b=b.substr(0,c)),g.addConditionalTest(a+b,!0)))},g.checkOrientation=function(){a.clearTimeout(s),s=a.setTimeout(function(){t=h.orientation,h.orientation=a.innerHeight>a.innerWidth?"portrait":"landscape",g.addConditionalTest(h.orientation,!0),t!==h.orientation&&g.addConditionalTest(t,!1)},10)},g.addConditionalTest=function(a,b){null!==a&&void 0!==a&&""!==a&&(d.addAllFeaturesAsClass?c.addTest(a,b):(b="function"==typeof b?b():b,b?c.addTest(a,!0):(delete c[a],g.removeClass(i,a))))},d.detectDevice){for(g.test(/GoogleTV|SmartTV|Internet.TV|NetCast|NETTV|AppleTV|boxee|Kylo|Roku|DLNADOC|CE\-HTML/i)?(h.type=j[0],h.model="smartTv"):g.test(/Xbox|PLAYSTATION.3|Wii/i)?(h.type=j[0],h.model="gameConsole"):g.test(/iP(a|ro)d/i)?(h.type=j[1],h.model="ipad"):g.test(/tablet/i)&&!g.test(/RX-34/i)||g.test(/FOLIO/i)?(h.type=j[1],h.model=String(g.exec(/playbook/))):g.test(/Linux/i)&&g.test(/Android/i)&&!g.test(/Fennec|mobi|HTC.Magic|HTCX06HT|Nexus.One|SC-02B|fone.945/i)?(h.type=j[1],h.model="android"):g.test(/Kindle/i)||g.test(/Mac.OS/i)&&g.test(/Silk/i)?(h.type=j[1],h.model="kindle"):g.test(/GT-P10|SC-01C|SHW-M180S|SGH-T849|SCH-I800|SHW-M180L|SPH-P100|SGH-I987|zt180|HTC(.Flyer|\_Flyer)|Sprint.ATP51|ViewPad7|pandigital(sprnova|nova)|Ideos.S7|Dell.Streak.7|Advent.Vega|A101IT|A70BHT|MID7015|Next2|nook/i)||g.test(/MB511/i)&&g.test(/RUTEM/i)?(h.type=j[1],h.model="android"):g.test(/BB10/i)?(h.type=j[1],h.model="blackberry"):(h.model=g.exec(/iphone|ipod|android|blackberry|opera mini|opera mobi|skyfire|maemo|windows phone|palm|iemobile|symbian|symbianos|fennec|j2me/i),null!==h.model?(h.type=j[2],h.model=String(h.model)):(h.model="",g.test(/BOLT|Fennec|Iris|Maemo|Minimo|Mobi|mowser|NetFront|Novarra|Prism|RX-34|Skyfire|Tear|XV6875|XV6975|Google.Wireless.Transcoder/i)?h.type=j[2]:g.test(/Opera/i)&&g.test(/Windows.NT.5/i)&&g.test(/HTC|Xda|Mini|Vario|SAMSUNG\-GT\-i8000|SAMSUNG\-SGH\-i9/i)?h.type=j[2]:g.test(/Windows.(NT|XP|ME|9)/i)&&!g.test(/Phone/i)||g.test(/Win(9|.9|NT)/i)||g.test(/\(Windows 8\)/i)?h.type=j[3]:g.test(/Macintosh|PowerPC/i)&&!g.test(/Silk/i)?h.type=j[3]:g.test(/Linux/i)&&g.test(/X11/i)?h.type=j[3]:g.test(/Solaris|SunOS|BSD/i)?h.type=j[3]:g.test(/Bot|Crawler|Spider|Yahoo|ia_archiver|Covario-IDS|findlinks|DataparkSearch|larbin|Mediapartners-Google|NG-Search|Snappy|Teoma|Jeeves|TinEye/i)&&!g.test(/Mobile/i)?(h.type=j[3],h.model="crawler"):h.type=j[2])),m=0,n=j.length;n>m;m+=1)g.addConditionalTest(j[m],h.type===j[m]);d.detectDeviceModel&&g.addConditionalTest(g.toCamel(h.model),!0),(h.type===j[1]||h.type===j[2])&&(a.onresize=function(a){g.checkOrientation(a)},g.checkOrientation())}if(d.detectScreen&&c.mq&&(g.addConditionalTest("smallScreen",c.mq("only screen and (max-width: 480px)")),g.addConditionalTest("verySmallScreen",c.mq("only screen and (max-width: 320px)")),g.addConditionalTest("veryVerySmallScreen",c.mq("only screen and (max-width: 240px)"))),d.detectOS&&(""!==h.model&&("ipad"===h.model||"iphone"===h.model||"ipod"===h.model?(h.osVersion=g.test(/os\s(\d+)_/)?RegExp.$1:"",h.os="ios",h.osVersionFull=g.test(/os ([^\s]+)/)?RegExp.$1.replace(/_/g,"."):""):"android"===h.model?(h.osVersion=(g.test(/os\s(\d+)_/)?RegExp.$1:"").substr(0,2),h.osVersion||(h.osVersion=g.test(/android\s(\d+)\./)?RegExp.$1:"",h.osVersionFull=g.test(/android ([^\s]+)/)?RegExp.$1.replace(/_/g,"."):""),h.os="android"):"blackberry"===h.model?(h.osVersion=g.test(/version\/([^\s]+)/)?RegExp.$1:"",h.os="blackberry"):"playbook"===h.model&&(h.osVersion=g.test(/os ([^\s]+)/)?RegExp.$1.replace(";",""):"",h.os="blackberry")),""===h.os&&(g.is("win")||g.is("16bit")?(h.os="windows",g.is("windows nt 6.3")?(h.osVersion="8",h.osVersionFull="8.1"):g.is("windows nt 6.2")||g.test(/\(windows 8\)/)?h.osVersion="8":g.is("windows nt 6.1")?h.osVersion="7":g.is("windows nt 6.0")?h.osVersion="vista":g.is("windows nt 5.2")||g.is("windows nt 5.1")||g.is("windows xp")?h.osVersion="xp":g.is("windows nt 5.0")||g.is("windows 2000")?h.osVersion="2k":g.is("winnt")||g.is("windows nt")?h.osVersion="nt":g.is("win98")||g.is("windows 98")?h.osVersion="98":(g.is("win95")||g.is("windows 95"))&&(h.osVersion="95")):g.is("mac")||g.is("darwin")?(h.os="mac",g.is("68k")||g.is("68000")?h.osVersion="68k":g.is("ppc")||g.is("powerpc")?h.osVersion="ppc":g.is("os x")&&(h.osVersion="os x")):g.is("webtv")?h.os="webtv":g.is("x11")||g.is("inux")?h.os="linux":g.is("sunos")?h.os="sun":g.is("irix")?h.os="irix":g.is("freebsd")?h.os="freebsd":g.is("bsd")&&(h.os="bsd")),""!==h.os&&(!h.osVersionFull&&h.osVersion&&(h.osVersionFull=h.osVersion),g.addConditionalTest(h.os,!0),g.addVersionTest(h.os,h.osVersionFull.replace(/\./g,"_")),g.addVersionTest(h.os,h.osVersion))),d.detectBrowser&&(g.test(/opera|webtv/i)||!g.test(/msie\s([0-9]{1,})/)&&!g.is("trident")?g.is("firefox")?(h.browserEngine="gecko",h.browser="firefox",h.browserVersion=(g.test(/firefox\/(\d+(\.?\d+)*)/)?RegExp.$1:"").substr(0,2)):g.is("gecko/")?h.browserEngine="gecko":g.is("opera")?(h.browser="opera",h.browserEngine="presto",h.browserVersion=g.test(/version\/(\d+)/)?RegExp.$1:g.test(/opera(\s|\/)(\d+)/)?RegExp.$2:""):g.is("konqueror")?h.browser="konqueror":g.is("chrome")?(h.browserEngine="webkit",h.browser="chrome",h.browserVersion=g.test(/chrome\/(\d+)/)?RegExp.$1:""):g.is("iron")?(h.browserEngine="webkit",h.browser="iron"):g.is("applewebkit/")?(h.browser="safari",h.browserEngine="webkit",h.browserVersion=g.test(/version\/(\d+)/)?RegExp.$1:""):g.is("mozilla/")&&(h.browserEngine="gecko"):(h.browserEngine="trident",h.browser="ie",h.browserVersion=!a.addEventListener&&document.documentMode&&7===document.documentMode?"8compat":g.test(/trident.*rv[ :](\d+)\./)?RegExp.$1:g.test(/trident\/4\.0/)?"8":RegExp.$1),""!==h.browser&&(g.addConditionalTest(h.browser,!0),""!==h.browserVersion&&g.addVersionTest(h.browser,h.browserVersion)),g.addConditionalTest(h.browserEngine,!0)),d.detectPlugins){g.detectPlugin=function(a){if(b.plugins)for(m=0,n=b.plugins.length;n>m;m+=1){var c=b.plugins[m],d=c.name+c.description,e=0;for(o=0,p=a.length;p>o;o+=1)-1!==d.indexOf(a[o])&&(e+=1);if(e===a.length)return!0}return!1},g.detectObject=function(b,c){if(a.ActiveXObject)for(m=0,n=b.length;n>m;m+=1)try{var d=new ActiveXObject(b[m]);if(d)return c&&c[m]?c[m].call(d):!0}catch(e){}return!1};for(q in l)l.hasOwnProperty(q)&&(r=l[q],(g.detectPlugin(r.substrs)||g.detectObject(r.progIds,r.fns))&&(h.browserPlugins.push(q),g.addConditionalTest(q,!0)))}}function f(){void 0!==c&&(c.Detectizr=c.Detectizr||{},c.Detectizr.device={type:"",model:"",orientation:"",browser:"",browserEngine:"",browserPlugins:[],browserVersion:"",os:"",osVersion:"",osVersionFull:"",userAgent:(b.userAgent||b.vendor||a.opera).toLowerCase()},c.Detectizr.detect=function(a){return new e(a)})}f()}(this,navigator);