import{__spread as t}from"../../../../node_modules/tslib/tslib.es6.js";import{SubscriptionManager as n}from"../../utils/subscription-manager.js";var r=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget"];function e(){var e=r.map((function(){return new n})),o={},a={clearAllListeners:function(){return e.forEach((function(t){return t.clear()}))},updatePropListeners:function(t){return r.forEach((function(n){var r;null===(r=o[n])||void 0===r||r.call(o);var e="on"+n,i=t[e];i&&(o[n]=a[e](i))}))}};return e.forEach((function(n,e){a["on"+r[e]]=function(t){return n.add(t)},a["notify"+r[e]]=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return n.notify.apply(n,t(r))}})),a}export{e as createLifecycles};
//# sourceMappingURL=lifecycles.js.map
