text: "undefined"==typeof AC&&(AC={}),AC.Detector={getAgent:function(){return navigator.userAgent.toLowerCase()},isMac:function(a){var b=a||this.getAgent();return!!b.match(/mac/i)},isSnowLeopard:function(a){"undefined"!=typeof console&&console.warn('Instead of AC.Detector.isSnowLeopard, please use AC.Detector.macOSAtLeastVersion("10.6").');var b=a||this.getAgent();return!!b.match(/mac os x 10_6/i)},macOSVersion:function(a){var b=a||this.getAgent();if(!this.isMac(b))return null;var c=b.match(/(mac os x )([\d\._]*)/i);if(null==c)return c;c=c[2].split(c[2].match(/\./)?".":"_");for(var d=0;d<c.length;d++)c[d]=parseInt(c[d]);return c},macOSAtLeastVersion:function(a,b){if("undefined"==typeof a)return!1;var c=this.macOSVersion(b);if(null==c)return!1;"string"==typeof a&&(a=a.replace(".","_").split("_"));for(var d=0;d<a.length;d++){var e=parseInt(c[d]);if(isNaN(e)&&(e=0),parseInt(a[d])>e)return!1}return!0},isWin:function(a){var b=a||this.getAgent();return!!b.match(/win/i)},winVersion:function(a){var b=a||this.getAgent();if(this.isWin(b)){var c=b.match(/nt\s*([\d\.]*)/);return c&&c[1]?parseFloat(c[1]):!0}return!1},winAtLeastVersion:function(a,b){if("undefined"==typeof a)return!1;if(a=parseFloat(a),0/0===a)return!1;var c=this.winVersion(b);return null===c||c===!1||c===!0?!1:c>=a},isWin2k:function(a){var b=a||this.getAgent();return this.isWin(b)&&b.match(/nt\s*5/i)},isWinVista:function(a){var b=a||this.getAgent();return this.isWin(b)&&b.match(/nt\s*6\.0([0-9]{0,2})?/i)},isWebKit:function(a){if(void 0===this._isWebKit){var b=a||this.getAgent();this._isWebKit=!!b.match(/AppleWebKit/i),this.isWebKit=function(){return this._isWebKit}}return this._isWebKit},isSafari2:function(a){"undefined"!=typeof console&&console.warn("Instead of AC.Detector.isSafari2(), please use AC.Detector.isWebKit().");var b=a||this.getAgent();if(void 0===this._isSafari2){if(this.isWebKit(b)){var c=parseInt(parseFloat(b.substring(b.lastIndexOf("safari/")+7)),10);this._isSafari2=c>=419}else this._isSafari2=!1;this.isSafari2=function(){return this._isSafari2}}return this._isSafari2},isChrome:function(a){if(void 0===this._isChrome){var b=a||this.getAgent();this._isChrome=!!b.match(/Chrome/i),this.isChrome=function(){return this._isChrome}}return this._isChrome},isiPhone:function(a){"undefined"!=typeof console&&console.warn("Instead of AC.Detector.isiPhone(), please use AC.Detector.isMobile().");var b=a||this.getAgent();return this.isMobile(b)},iPhoneOSVersion:function(a){"undefined"!=typeof console&&console.warn("Instead of AC.Detector.iPhoneOSVersion(), please use AC.Detector.iOSVersion().");var b,c,d,e=a||this.getAgent(),f=this.isMobile(e);if(f){var b=e.match(/.*CPU ([\w|\s]+) like/i);return b&&b[1]?(c=b[1].split(" "),d=c[2].split("_")):[1]}return null},isiPad:function(a){var b=a||this.getAgent();return!(!this.isWebKit(b)||!b.match(/ipad/i))},isMobile:function(a){var b=a||this.getAgent();return this.isWebKit(b)&&b.match(/Mobile/i)&&!this.isiPad(b)},_iOSVersion:null,iOSVersion:function(){return null===this._iOSVersion&&(this._iOSVersion=AC.Detector.isMobile()||AC.Detector.isiPad()?parseFloat(navigator.userAgent.match(/os ([\d_]*)/i)[1].replace("_",".")):!1),this._iOSVersion},isOpera:function(a){var b=a||this.getAgent();return!!b.match(/opera/i)},isIE:function(a){var b=a||this.getAgent();return!!b.match(/msie/i)},isIEStrict:function(a){var b=a||this.getAgent();return b.match(/msie/i)&&!this.isOpera(b)},isIE8:function(a){var b,c,d;return b=a||this.getAgent(),c=b.match(/msie\D*([\.\d]*)/i),d=-1,c&&c[1]&&(d=c[1]),+d>=8},isFirefox:function(a){var b=a||this.getAgent();return!!b.match(/firefox/i)},isiTunesOK:function(a){var b=a||this.getAgent();return this.isMac(b)?!0:this.winAtLeastVersion(5.1,b)?!0:!1},_isQTInstalled:void 0,isQTInstalled:function(){if(void 0===this._isQTInstalled){var a=!1;if(navigator.plugins&&navigator.plugins.length)for(var b=0;b<navigator.plugins.length;b++){var c=navigator.plugins[b];c.name.indexOf("QuickTime")>-1&&(a=!0)}else"undefined"!=typeof execScript&&(qtObj=!1,execScript('on error resume next: qtObj = IsObject(CreateObject("QuickTimeCheckObject.QuickTimeCheck.1"))',"VBScript"),a=qtObj);this._isQTInstalled=a}return this._isQTInstalled},getQTVersion:function(){var a="0";if(navigator.plugins&&navigator.plugins.length)for(var b=0;b<navigator.plugins.length;b++){var c=navigator.plugins[b],d=c.name.match(/quicktime\D*([\.\d]*)/i);d&&d[1]&&(a=d[1])}else"undefined"!=typeof execScript&&(ieQTVersion=null,execScript('on error resume next: ieQTVersion = CreateObject("QuickTimeCheckObject.QuickTimeCheck.1").QuickTimeVersion',"VBScript"),ieQTVersion&&(a=ieQTVersion.toString(16),a=[a.charAt(0),a.charAt(1),a.charAt(2)].join(".")));return a},isQTCompatible:function(a,b){function c(a,b){var d=parseInt(a[0],10);isNaN(d)&&(d=0);var e=parseInt(b[0],10);return isNaN(e)&&(e=0),d===e?a.length>1?c(a.slice(1),b.slice(1)):!0:e>d?!0:!1}var d=a.split(/\./),e=b?b.split(/\./):this.getQTVersion().split(/\./);return c(d,e)},isValidQTAvailable:function(a){return this.isQTInstalled()&&this.isQTCompatible(a)},isSBVDPAvailable:function(){return!1},_svgAsBackground:null,svgAsBackground:function(a){if(null===this._svgAsBackground){var b=function(){AC.Detector._svgAsBackground=!0,"function"==typeof a&&a()},c=document.createElement("img");c.setAttribute("src","data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNzUiIGhlaWdodD0iMjc1Ij48L3N2Zz4%3D"),c.complete?(c.style.visibility="hidden",c.style.position="absolute",document.body.appendChild(c),window.setTimeout(function(){AC.Detector._svgAsBackground=!1,c.width>=100?(document.body.removeChild(c),b()):document.body.removeChild(c)},1)):(this._svgAsBackground=!1,c.onload=b)}else this._svgAsBackground&&"function"==typeof a&&a();return this._svgAsBackground},_style:null,_prefixes:null,_preFixes:null,_css:null,isCSSAvailable:function(a){switch(this._style||(this._style=document.createElement("browserdetect").style),this._prefixes||(this._prefixes="-webkit- -moz- -o- -ms- -khtml- ".split(" ")),this._preFixes||(this._preFixes="Webkit Moz O ms Khtml ".split(" ")),this._css||(this._css={}),a=a.replace(/([A-Z]+)([A-Z][a-z])/g,"$1-$2").replace(/([a-z\d])([A-Z])/g,"$1-$2").replace(/^(\-*webkit|\-*moz|\-*o|\-*ms|\-*khtml)\-/,"").toLowerCase()){case"gradient":if(void 0!==this._css.gradient)return this._css.gradient;var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";return this._style.cssText=(a+this._prefixes.join(b+a)+this._prefixes.join(c+a)).slice(0,-a.length),this._css.gradient=-1!==this._style.backgroundImage.indexOf("gradient"),this._css.gradient;case"inset-box-shadow":if(void 0!==this._css["inset-box-shadow"])return this._css["inset-box-shadow"];var a="box-shadow:",d="#fff 0 1px 1px inset;";return this._style.cssText=this._prefixes.join(a+d),this._css["inset-box-shadow"]=-1!==this._style.cssText.indexOf("inset"),this._css["inset-box-shadow"];default:var e,f,g,h=a.split("-"),i=h.length;if(h.length>0)for(a=h[0],f=1;i>f;f++)a+=h[f].substr(0,1).toUpperCase()+h[f].substr(1);if(e=a.substr(0,1).toUpperCase()+a.substr(1),void 0!==this._css[a])return this._css[a];for(g=this._preFixes.length-1;g>=0;g--)if(void 0!==this._style[this._preFixes[g]+a]||void 0!==this._style[this._preFixes[g]+e])return this._css[a]=!0,!0;return!1}return!1},_supportsThreeD:!1,supportsThreeD:function(){try{if(this._supportsThreeD=!1,"styleMedia"in window?this._supportsThreeD=window.styleMedia.matchMedium("(-webkit-transform-3d)"):"media"in window&&(this._supportsThreeD=window.media.matchMedium("(-webkit-transform-3d)")),!this._supportsThreeD){if(!document.getElementById("supportsThreeDStyle")){var a=document.createElement("style");a.id="supportsThreeDStyle",a.textContent="@media (transform-3d),(-o-transform-3d),(-moz-transform-3d),(-ms-transform-3d),(-webkit-transform-3d) { #supportsThreeD { height:3px } }",document.querySelector("head").appendChild(a)}(div=document.querySelector("#supportsThreeD"))||(div=document.createElement("div"),div.id="supportsThreeD",document.body.appendChild(div)),this._supportsThreeD=3===div.offsetHeight}return this._supportsThreeD}catch(b){return!1}},_hasGyro:null,_testingForGyro:!1,hasGyro:function(){if(null!==this._hasGyro)return this._hasGyro;if("DeviceOrientationEvent"in window&&null!==window.DeviceOrientationEvent){if(this._testingForGyro===!1){this._testingForGyro=!0;var a=this;this.boundTestingForGyro=function(b){a.testingForGyro(b)},window.addEventListener("deviceorientation",this.boundTestingForGyro,!0),this._testGyroTimeout=window.setTimeout(function(){this._hasGyro=!1}.bind(this),250)}return this._hasGyro}return this._hasGyro=!1},testingForGyro:function(a){return this._hasGyro===!1?this._hasGyro:(this._hasGyro="undefined"!=typeof a.gamma&&"undefined"!=typeof a.beta?!0:!1,window.clearTimeout(this._testGyroTimeout),window.removeEventListener("deviceorientation",this.boundTestingForGyro,!0),delete this.boundTestingForGyro,void 0)},_isiPadWithGyro:null,isiPadWithGyro:function(){return this._isiPadWithGyro!==!1&&this.isiPad()?this._isiPadWithGyro=this.hasGyro():!1},_hasLocalStorage:null,hasLocalStorage:function(){if(null!==this._hasLocalStorage)return this._hasLocalStorage;try{"undefined"!=typeof localStorage&&"setItem"in localStorage?(localStorage.setItem("ac_browser_detect","test"),this._hasLocalStorage=!0,localStorage.removeItem("ac_browser_detect","test")):this._hasLocalStorage=!1}catch(a){this._hasLocalStorage=!1}return this._hasLocalStorage},_hasSessionStorage:null,hasSessionStorage:function(){if(null!==this._hasSessionStorage)return this._hasSessionStorage;try{"undefined"!=typeof sessionStorage&&"setItem"in sessionStorage?(sessionStorage.setItem("ac_browser_detect","test"),this._hasSessionStorage=!0,sessionStorage.removeItem("ac_browser_detect","test")):this._hasSessionStorage=!1}catch(a){this._hasSessionStorage=!1}return this._hasSessionStorage},_hasCookies:null,hasCookies:function(){return null!==this._hasCookies?this._hasCookies:(this._hasCookies="cookie"in document&&navigator.cookieEnabled?!0:!1,this._hasCookies)}};