(function(a,b){"object"==typeof exports&&"undefined"!=typeof module?b(exports):"function"==typeof define&&define.amd?define(["exports"],b):(a=a||self,b(a.EVENT_BUS={}))})(this,function(a){"use strict";function b(){var a={};this.subscribe=function(b,c){var d=Symbol("id");return a[b]||(a[b]={}),a[b][d]=c,{unsubscribe:function(){delete a[b][d],0===Object.getOwnPropertySymbols(a[b]).length&&delete a[b]}}},this.publish=function(b,c){a[b]&&Object.getOwnPropertySymbols(a[b]).forEach(function(d){return a[b][d](c)})}}var c=new b;a.EventBus=b,a.EventBusSingleton=c,Object.defineProperty(a,"__esModule",{value:!0})});