define([],function(){"use strict";var _supportsCssAnimation,_supportsCssAnimationWithPrefix;var userAgent=navigator.userAgent,matched=function(ua){ua=ua.toLowerCase();var match=/(edge)[ \/]([\w.]+)/.exec(ua)||/(opera)[ \/]([\w.]+)/.exec(ua)||/(opr)[ \/]([\w.]+)/.exec(ua)||/(chrome)[ \/]([\w.]+)/.exec(ua)||/(safari)[ \/]([\w.]+)/.exec(ua)||/(firefox)[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)||[],platform_match=/(ipad)/.exec(ua)||/(iphone)/.exec(ua)||/(android)/.exec(ua)||[],browser=match[1]||"";return"edge"===browser?platform_match=[""]:-1!==ua.indexOf("windows phone")||-1!==ua.indexOf("iemobile")?browser="msie":-1!==ua.indexOf("like gecko")&&-1===ua.indexOf("webkit")&&-1===ua.indexOf("opera")&&-1===ua.indexOf("chrome")&&-1===ua.indexOf("safari")&&(browser="msie"),"opr"===browser&&(browser="opera"),{browser:browser,platform:platform_match[0]||""}}(userAgent),browser={};return matched.browser&&(browser[matched.browser]=!0),matched.platform&&(browser[matched.platform]=!0),browser.chrome||browser.msie||browser.edge||browser.opera||-1===userAgent.toLowerCase().indexOf("webkit")||(browser.safari=!0),-1!==userAgent.toLowerCase().indexOf("playstation 4")&&(browser.ps4=!0,browser.tv=!0),browser.xboxOne=-1!==userAgent.toLowerCase().indexOf("xbox"),browser.animate="undefined"!=typeof document&&null!=document.documentElement.animate,browser.tizen=-1!==userAgent.toLowerCase().indexOf("tizen")||null!=self.tizen,browser.web0s=-1!==userAgent.toLowerCase().indexOf("Web0S".toLowerCase()),browser.netcast=-1!==userAgent.toLowerCase().indexOf("netcast"),browser.edgeUwp=browser.edge&&(-1!==userAgent.toLowerCase().indexOf("msapphost")||-1!==userAgent.toLowerCase().indexOf("webview")),browser.tizen||(browser.orsay=-1!==userAgent.toLowerCase().indexOf("smarthub")),browser.tizen&&(browser.sdkVersion=function(){if(self.tizen&&self.tizen.systeminfo){var v=tizen.systeminfo.getCapability("http://tizen.org/feature/platform.version");return parseFloat(v)}}()),browser.edgeUwp&&(browser.edge=!0),browser.tv=function(){var userAgent=navigator.userAgent.toLowerCase();return-1!==userAgent.indexOf("tv")||(-1!==userAgent.indexOf("samsungbrowser")||(-1!==userAgent.indexOf("nintendo")||(-1!==userAgent.indexOf("viera")||-1!==userAgent.indexOf("web0s"))))}(),browser.operaTv=browser.tv&&-1!==userAgent.toLowerCase().indexOf("opr/"),browser.keyboard=function(browser){return!!browser.xboxOne||(!!browser.ps4||(!!browser.edgeUwp||(!!browser.tv||!("undefined"==typeof document||!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)))))}(browser),browser.supportsCssAnimation=function(allowPrefix){if(allowPrefix){if(!0===_supportsCssAnimationWithPrefix||!1===_supportsCssAnimationWithPrefix)return _supportsCssAnimationWithPrefix}else if(!0===_supportsCssAnimation||!1===_supportsCssAnimation)return _supportsCssAnimation;var animation=!1,domPrefixes=["Webkit","O","Moz"],pfx="",elm=document.createElement("div");if(void 0!==elm.style.animationName&&(animation=!0),!1===animation&&allowPrefix)for(var i=0;i<domPrefixes.length;i++)if(void 0!==elm.style[domPrefixes[i]+"AnimationName"]){(pfx=domPrefixes[i])+"Animation","-"+pfx.toLowerCase()+"-",animation=!0;break}return allowPrefix?_supportsCssAnimationWithPrefix=animation:_supportsCssAnimation=animation},browser.iOS=browser.ipad||browser.iphone||browser.ipod,browser.iOS||(browser.osx=-1!==userAgent.toLowerCase().indexOf("os x")),browser.customElements="customElements"in self,browser.customBuiltInElements=browser.customElements&&!browser.iOS&&!browser.safari&&customElements.upgrade,browser.iOS&&(browser.iOSVersion=function(){if(/iP(hone|od|ad)/.test(navigator.platform)){var v=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(v[1],10),parseInt(v[2],10),parseInt(v[3]||0,10)]}}(),browser.iOSVersion=browser.iOSVersion[0]+browser.iOSVersion[1]/10),browser.chromecast=browser.chrome&&-1!==userAgent.toLowerCase().indexOf("crkey"),browser});