1
!function(e){"function"==typeof define&&define.amd?define(e):e()}
2
(function(){var e,t=["scroll","wheel","touchstart","touchmove","touchenter","touchend","touchleave","mouseout","mouseleave","mouseup","mousedown","mousemove","mouseenter","mousewheel","mouseover"];if(function(){var e=!1;try{var t=Object.defineProperty({}
3
,"passive",{get:function(){e=!0}
4
}
5
);window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}
6
catch(e){}
7
return e}
8
()){var n=EventTarget.prototype.addEventListener;e=n,EventTarget.prototype.addEventListener=function(n,o,r){var i,s="object"==typeof r&&null!==r,u=s?r.capture:r;(r=s?function(e){var t=Object.getOwnPropertyDescriptor(e,"passive");return t&&!0!==t.writable&&void 0===t.set?Object.assign({}
9
,e):e}
10
(r):{}
11
).passive=void 0!==(i=r.passive)?i:-1!==t.indexOf(n)&&!0,r.capture=void 0!==u&&u,e.call(this,n,o,r)}
12
,EventTarget.prototype.addEventListener._original=e}
13
}
14
);