function o(i){return{all:i=i||new Map,on:function(e,n){var t=i.get(e);t?t.push(n):i.set(e,[n])},off:function(e,n){var t=i.get(e);t&&(n?t.splice(t.indexOf(n)>>>0,1):i.set(e,[]))},emit:function(e,n){var t=i.get(e);t&&t.slice().map(function(f){f(n)}),(t=i.get("*"))&&t.slice().map(function(f){f(e,n)})}}}window.emitter=o();function c(){}export{c as default};
