var e,n,t,i,r,o,a,d,u,c,l,s,f,p,w,m=!1;function x(){if(!m){m=!0;var x=navigator.useragent,v=/(?:msie.(\d+\.\d+))|(?:(?:firefox|granparadiso|iceweasel).(\d+\.\d+))|(?:opera(?:.+version.|.)(\d+\.\d+))|(?:applewebkit.(\d+(?:\.\d+)?))|(?:trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(x),h=/(mac os x)|(windows)|(linux)/.exec(x);if(s=/\b(iphone|ip[ao]d)/.exec(x),f=/\b(ip[ao]d)/.exec(x),c=/android/i.exec(x),p=/fban\/\w+;/i.exec(x),w=/mobile/i.exec(x),l=!!/win64/.exec(x),v){(e=v[1]?parsefloat(v[1]):v[5]?parsefloat(v[5]):nan)&&document&&document.documentmode&&(e=document.documentmode);var n=/(?:trident\/(\d+.\d+))/.exec(x);o=n?parsefloat(n[1])+4:e,n=v[2]?parsefloat(v[2]):nan,t=v[3]?parsefloat(v[3]):nan,(i=v[4]?parsefloat(v[4]):nan)?(v=/(?:chrome\/(\d+\.\d+))/.exec(x),r=v&&v[1]?parsefloat(v[1]):nan):r=nan}else e=n=t=r=i=nan;if(h){if(h[1]){var m=/(?:mac os x (\d+(?:[._]\d+)?))/.exec(x);a=!m||parsefloat(m[1].replace("_","."))}else a=!1;d=!!h[2],u=!!h[3]}else a=d=u=!1}}var v,h={ie:function(){return x()||e},iecompatibilitymode:function(){return x()||o>e},ie64:function(){return h.ie()&&l},firefox:function(){return x()||n},opera:function(){return x()||t},webkit:function(){return x()||i},safari:function(){return h.webkit()},chrome:function(){return x()||r},windows:function(){return x()||d},osx:function(){return x()||a},linux:function(){return x()||u},iphone:function(){return x()||s},mobile:function(){return x()||s||f||c||w},nativeapp:function(){return x()||p},android:function(){return x()||c},ipad:function(){return x()||f}},n=h,m=!!(typeof window<"u"&&window.document&&window.document.createelement),f={canusedom:m,canuseworkers:typeof worker<"u",canuseeventlisteners:m&&!(!window.addeventlistener&&!window.attachevent),canuseviewport:m&&!!window.screen,isinworker:!m};f.canusedom&&(v=document.implementation&&document.implementation.hasfeature&&!0!==document.implementation.hasfeature("",""));var d=function(e,n){if(!f.canusedom||n&&!("addeventlistener"in document))return!1;var t="on"+e,i=t in document;if(!i){var r=document.createelement("div");r.setattribute(t,"return;"),i="function"==typeof r[t]}return!i&&v&&"wheel"===e&&(i=document.implementation.hasfeature("events.wheel","3.0")),i};function b(e){var n=0,t=0,i=0,r=0;return"detail"in e&&(t=e.detail),"wheeldelta"in e&&(t=-e.wheeldelta/120),"wheeldeltay"in e&&(t=-e.wheeldeltay/120),"wheeldeltax"in e&&(n=-e.wheeldeltax/120),"axis"in e&&e.axis===e.horizontal_axis&&(n=t,t=0),i=10*n,r=10*t,"deltay"in e&&(r=e.deltay),"deltax"in e&&(i=e.deltax),(i||r)&&e.deltamode&&(1==e.deltamode?(i*=40,r*=40):(i*=800,r*=800)),i&&!n&&(n=i<1?-1:1),r&&!t&&(t=r<1?-1:1),{spinx:n,spiny:t,pixelx:i,pixely:r}}b.geteventtype=function(){return n.firefox()?"dommousescroll":d("wheel")?"wheel":"mousewheel"};var e=b; /** * checks if an event is supported in the current execution environment. * * note: this will not work correctly for non-generic events such as `change`, * `reset`, `load`, `error`, and `select`. * * borrows from modernizr. * * @param {string} eventnamesuffix event name, e.g. "click". * @param {?boolean} capture check if the capture phase is supported. * @return {boolean} true if the event is supported. * @internal * @license modernizr 3.0.0pre (custom build) | mit */export{e as y};