You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
3.6 KiB
14 lines
3.6 KiB
1 month ago
|
var _typeof=function(obj){"@swc/helpers - typeof";return obj&& typeof Symbol!=="undefined"&&obj.constructor===Symbol?"symbol":typeof obj};(function(){var a=function a(){if(!v){v=!0;var e=navigator.userAgent,n=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),i=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(x=/\b(iPhone|iP[ao]d)/.exec(e),E=/\b(iP[ao]d)/.exec(e),w=/Android/i.exec(e),M=/FBAN\/\w+;/i.exec(e),F=/Mobile/i.exec(e),D=!!/Win64/.exec(e),n){o=n[1]?parseFloat(n[1]):n[5]?parseFloat(n[5]):NaN,o&&document&&document.documentMode&&(o=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);N=r?parseFloat(r[1])+4:o,f=n[2]?parseFloat(n[2]):NaN,s=n[3]?parseFloat(n[3]):NaN,u=n[4]?parseFloat(n[4]):NaN,u?(n=/(?:Chrome\/(\d+\.\d+))/.exec(e),d=n&&n[1]?parseFloat(n[1]):NaN):d=NaN}else o=f=s=d=u=NaN;if(i){if(i[1]){var t=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);l=t?parseFloat(t[1].replace("_",".")):!0}else l=!1;p=!!i[2],m=!!i[3]}else l=p=m=!1}};var S=function S(e,n){if(!h.canUseDOM||n&&!("addEventListener"in document))return!1;var i="on"+e,r=i in document;if(!r){var t=document.createElement("div");t.setAttribute(i,"return;"),r=typeof t[i]=="function"}return!r&&X&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r};var T=function T(e){var n=0,i=0,r=0,t=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(n=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(n=i,i=0),r=n*O,t=i*O,"deltaY"in e&&(t=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||t)&&e.deltaMode&&(e.deltaMode==1?(r*=I,t*=I):(r*=P,t*=P)),r&&!n&&(n=r<1?-1:1),t&&!i&&(i=t<1?-1:1),{spinX:n,spinY:i,pixelX:r,pixelY:t}};var v=!1,o,f,s,u,d,N,l,p,m,w,D,x,E,M,F;var _={ie:function ie(){return a()||o},ieCompatibilityMode:function ieCompatibilityMode(){return a()||N>o},ie64:function ie64(){return _.ie()&&D},firefox:function firefox(){return a()||f},opera:function opera(){return a()||s},webkit:function webkit(){return a()||u},safari:function safari(){return _.webkit()},chrome:function chrome(){return a()||d},windows:function windows(){return a()||p},osx:function osx(){return a()||l},linux:function linux(){return a()||m},iphone:function iphone(){return a()||x},mobile:function mobile(){return a()||x||E||w||F},nativeApp:function nativeApp(){return a()||M},android:function android(){return a()||w},ipad:function ipad(){return a()||E}},A=_;var c=!!((typeof window==="undefined"?"undefined":_typeof(window))<"u"&&window.document&&window.document.createElement),U={canUseDOM:c,canUseWorkers:(typeof Worker==="undefined"?"undefined":_typeof(Worker))<"u",canUseEventListeners:c&&!!(window.addEventListener||window.attachEvent),canUseViewport:c&&!!window.screen,isInWorker:!c},h=U;var X;h.canUseDOM&&(X=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!== !0);var b=S;var O=10,I=40,P=800;T.getEventType=function(){return A.firefox()?"DOMMouseScroll":b("wheel")?"wheel":"mousewheel"};var Y=T})(); /**
|
||
|
* 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
|
||
|
*/ //# sourceMappingURL=index.global.js.map
|