const e=require("../../_util/supportsPassive.js");function t(t,n,r,i){if(t&&t.addEventListener){let a=i;a===void 0&&e.default&&(n===`touchstart`||n===`touchmove`||n===`wheel`)&&(a={passive:!1}),t.addEventListener(n,r,a)}return{remove:()=>{t&&t.removeEventListener&&t.removeEventListener(n,r)}}}exports.default=t;