text: 'use strict'
  
  var _interopRequireDefault = require('@babel/runtime/helpers/interopRequireDefault')
  
  exports.__esModule = true
  exports['default'] = void 0
  
  var _silenceEvent = _interopRequireDefault(require('./silenceEvent'))
  
  var silenceEvents = function silenceEvents(fn) {
    return function(event) {
      for (
        var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1;
        _key < _len;
        _key++
      ) {
        args[_key - 1] = arguments[_key]
      }
  
      return (0, _silenceEvent['default'])(event)
        ? fn.apply(void 0, args)
        : fn.apply(void 0, [event].concat(args))
    }
  }
  
  var _default = silenceEvents
  exports['default'] = _default
  