module.exports = "(function(e,r,n){var t=n(5894),o=n(6103),i=n(7358),a=n(343),E=n(4527),c=n(1571),f=n(4810),s=E.get(\"stores/event_emitter\");r.on=function(e){return e.token||(e.token=o.generate()),c.dispatch(i.ADD_EMITTER_HANDLER,e),e.token},r.off=function(e){c.dispatch(i.REMOVE_EMITTER_HANDLER,{token:e})},r.emit=function(e,r,o){__INVARIANT__&&n(2048).isType(\"EmitterEvent\",e);var i=s.getHandlers(e,r);t.each(i,(function(n){try{n.handler.call({$di:E},e)}catch(t){!o&&n.emitErrors?(f.error(\"Error in handler for event:\",e,t),a.emitError(t,null,r)):f.warn(\"Suppressed error in handler for event:\",e,t)}}))}})";