(function(n){typeof define=="function"&&define.amd?define(["jquery"],function(t){n(t)}):typeof module=="object"&&typeof module.exports=="object"?module.exports=n(require("jquery")):n(window.jQuery)})(function(n){"use strict";function t(n){var u,f,e,o,s,h,c,l;n===undefined&&(n=window.navigator.userAgent);n=n.toLowerCase();var r=/(edge)\/([\w.]+)/.exec(n)||/(opr)[\/]([\w.]+)/.exec(n)||/(chrome)[ \/]([\w.]+)/.exec(n)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(n)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(n)||/(webkit)[ \/]([\w.]+)/.exec(n)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(n)||/(msie) ([\w.]+)/.exec(n)||n.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(n)||n.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(n)||[],a=/(ipad)/.exec(n)||/(ipod)/.exec(n)||/(iphone)/.exec(n)||/(kindle)/.exec(n)||/(silk)/.exec(n)||/(android)/.exec(n)||/(windows phone)/.exec(n)||/(win)/.exec(n)||/(mac)/.exec(n)||/(linux)/.exec(n)||/(cros)/.exec(n)||/(playbook)/.exec(n)||/(bb)/.exec(n)||/(blackberry)/.exec(n)||[],t={},i={browser:r[5]||r[3]||r[1]||"",version:r[2]||r[4]||"0",versionNumber:r[4]||r[2]||"0",platform:a[0]||""};return i.browser&&(t[i.browser]=!0,t.version=i.version,t.versionNumber=parseInt(i.versionNumber,10)),i.platform&&(t[i.platform]=!0),(t.android||t.bb||t.blackberry||t.ipad||t.iphone||t.ipod||t.kindle||t.playbook||t.silk||t["windows phone"])&&(t.mobile=!0),(t.cros||t.mac||t.linux||t.win)&&(t.desktop=!0),(t.chrome||t.opr||t.safari)&&(t.webkit=!0),(t.rv||t.edge)&&(u="msie",i.browser=u,t[u]=!0),t.safari&&t.blackberry&&(f="blackberry",i.browser=f,t[f]=!0),t.safari&&t.playbook&&(e="playbook",i.browser=e,t[e]=!0),t.bb&&(o="blackberry",i.browser=o,t[o]=!0),t.opr&&(s="opera",i.browser=s,t[s]=!0),t.safari&&t.android&&(h="android",i.browser=h,t[h]=!0),t.safari&&t.kindle&&(c="kindle",i.browser=c,t[c]=!0),t.safari&&t.silk&&(l="silk",i.browser=l,t[l]=!0),t.name=i.browser,t.platform=i.platform,t}return window.jQBrowser=t(window.navigator.userAgent),window.jQBrowser.uaMatch=t,n&&(n.browser=window.jQBrowser),window.jQBrowser})