class TimerManager{constructor(){this._tickets={}}start(i,s,o){const e=this._tickets;if(void 0!==e){this.stop(i);let t;e[i]=function(){e[i]=void 0,clearTimeout(t)},t=setTimeout(function(){e[i]=void 0,o()},s)}}repeat(i,s,o){const e=this._tickets;if(void 0!==e){this.stop(i);let t;e[i]=function(){e[i]=void 0,clearInterval(t)},t=setInterval(o,s)}}stop(t){var i=this._tickets;if(void 0!==i){const s=i[t];void 0!==s&&s()}}dispose(){var t=this._tickets;if(void 0!==t){this._tickets=void 0;for(const i in t){const s=t[i];void 0!==s&&s()}}}}export{TimerManager};