module.exports = "(function(e,t,a){var n=a(5894),i=a(7358),s=a(9133);e.exports={initialize:function(){this.__state={},this.on(i.DATA_LOADED,this.__loadData)},getAll:function(){return s.safeReference(n.values(this.__state))},getEventsMap:function(){return s.safeReference(this.__state)},get:function(e){return s.safeReference(this.__state[e])},getByApiName:function(e){return s.safeReference(n.find(n.values(this.__state),{apiName:e}))},getByPageId:function(e){return s.safeReference(n.filter(this.__state,{pageId:e}))},__loadData:function(e){n.isEmpty(e.data.events)||(n.each(e.data.events,n.bind((function(e){e.pageId||(e.pageId=e.viewId),s.deepFreeze(e),this.__state[e.id]=e}),this)),this.emitChange())}}})";