var __extends=(this&&this.__extends)||(function(){var extendStatics=function(d,b){extendStatics=Object.setPrototypeOf||({__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b;})||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p];};return extendStatics(d,b);};return function(d,b){extendStatics(d,b);function __(){this.constructor=d;} d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __());};})();var __spreadArrays=(this&&this.__spreadArrays)||function(){for(var s=0,i=0,il=arguments.length;i0){setTimeout(function(){_this.destroy();},1000);return;} if(this._beingDestroyed){return;} this._beingDestroyed=true;if(this.onDestroy){this.onDestroy();} this._intervals.forEach(function(timer){clearInterval(timer);});this._timeouts.forEach(function(timer){clearTimeout(timer);});while(this._events.length){var event_1=this._events.pop();if(event_1){event_1.remove();}} while(this._handles.length){var handle=this._handles.pop();if(handle){handle.remove();}} if(this._listeners){while(this._listeners.length){var listener=this._listeners.pop();if(listener){listener.emitter.removeEventListener(listener.event,listener.callback);}}} Object.keys(this).forEach(function(key){if(key==="_beingDestroyed"){return;} _this._destroy_object(_this,key);});};Module_abstract.prototype.log=function(){var obj=[];for(var _i=0;_i