import{g as e}from"./@supabase-CmHSa8jj.js";var n,t,i,r,o,a,d,u,c,l,s,f,p,m,w,x=!1;function h(){if(!x){x=!0;var e=navigator.userAgent,h=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),v=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(f=/\b(iPhone|iP[ao]d)/.exec(e),p=/\b(iP[ao]d)/.exec(e),l=/Android/i.exec(e),m=/FBAN\/\w+;/i.exec(e),w=/Mobile/i.exec(e),s=!!/Win64/.exec(e),h){(n=h[1]?parseFloat(h[1]):h[5]?parseFloat(h[5]):NaN)&&document&&document.documentMode&&(n=document.documentMode);var N=/(?:Trident\/(\d+.\d+))/.exec(e);a=N?parseFloat(N[1])+4:n,t=h[2]?parseFloat(h[2]):NaN,i=h[3]?parseFloat(h[3]):NaN,(r=h[4]?parseFloat(h[4]):NaN)?(h=/(?:Chrome\/(\d+\.\d+))/.exec(e),o=h&&h[1]?parseFloat(h[1]):NaN):o=NaN}else n=t=i=o=r=NaN;if(v){if(v[1]){var F=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);d=!F||parseFloat(F[1].replace("_","."))}else d=!1;u=!!v[2],c=!!v[3]}else d=u=c=!1}}var v,N={ie:function(){return h()||n},ieCompatibilityMode:function(){return h()||a>n},ie64:function(){return N.ie()&&s},firefox:function(){return h()||t},opera:function(){return h()||i},webkit:function(){return h()||r},safari:function(){return N.webkit()},chrome:function(){return h()||o},windows:function(){return h()||u},osx:function(){return h()||d},linux:function(){return h()||c},iphone:function(){return h()||f},mobile:function(){return h()||f||p||l||w},nativeApp:function(){return h()||m},android:function(){return h()||l},ipad:function(){return h()||p}},F=N,M=!("undefined"==typeof window||!window.document||!window.document.createElement),b=M;M&&!window.addEventListener&&window.attachEvent,M&&window.screen;b&&(v=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));var X=F;function A(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}}A.getEventType=function(){return X.firefox()?"DOMMouseScroll":function(e,n){if(!b||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}("wheel")?"wheel":"mousewheel"};const E=e(A);export{E as n};
