varPhaser;(function(Phaser){varBasic=(function(){functionBasic(game){this.name="";this._game=game;this.ID=-1;this.exists=true;this.active=true;this.visible=true;this.alive=true;this.isGroup=false;this.ignoreDrawDebug=false}Basic.prototype.destroy=function(){};Basic.prototype.preUpdate=function(){};Basic.prototype.update=function(){};Basic.prototype.postUpdate=function(){};Basic.prototype.render=function(camera,cameraOffsetX,cameraOffsetY){};Basic.prototype.kill=function(){this.alive=false;this.exists=false};Basic.prototype.revive=function(){this.alive=true;this.exists=true};Basic.prototype.toString=function(){return""};returnBasic})();Phaser.Basic=Basic})(Phaser||(Phaser={}));varPhaser;(function(Phaser){varSignalBinding=(function(){functionSignalBinding(signal,listener,isOnce,listenerContext,priority){if(typeofpriority==="undefined"){priority=0}this.active=true;this.params=null;this._listener=listener;this._isOnce=isOnce;this.context=listenerContext;this._signal=signal;this.priority=priority||0}SignalBinding.prototype.execute=function(paramsArr){varhandlerReturn;varparams;if(this.active&&!!this._listener){params=this.params?this.params.concat(paramsArr):paramsArr;handlerReturn=this._listener.apply(this.context,params);if(this._isOnce){this.detach()}}returnhandlerReturn};SignalBinding.prototype.detach=function(){returnthis.isBound()?this._signal.remove(this._listener,this.context):null};SignalBinding.prototype.isBound=function(){return(!!this._signal&&!!this._listener)};SignalBinding.prototype.isOnce=function(){returnthis._isOnce};SignalBinding.prototype.getListener=function(){returnthis._listener};SignalBinding.prototype.getSignal=function(){returnthis._signal};SignalBinding.prototype._destroy=function(){deletethis._signal;deletethis._listener;deletethis.context};SignalBinding.prototype.toString=function(){return"[SignalBinding isOnce:"+this._isOnce+", isBound:"+this.isBound()+", active:"+this.active+"]"};returnSignalBinding})();Phaser.SignalBinding=SignalBinding})(Phaser||(Phaser={}));varPhaser;(function(Phaser){varSignal=(function(){functionSignal(){this._bindings=[];this._prevParams=null;this.memorize=false;this._shouldPropagate=true;this.active=true}Signal.VERSION="1.0.0";Signal.prototype.validateListener=function(listener,fnName){if(typeoflistener!=="function"){thrownewError("listener is a required param of {fn}() and should be a Function.".replace("{fn}",fnName))}};Signal.prototype._registerListener=function(listener,isOnce,listenerContext,priority){varprevIndex=this._indexOfListener(listener,listenerContext);varbinding;if(prevIndex!==-1){binding=this._bindings[prevIndex];if(binding.isOnce()!==isOnce){thrownewError("You cannot add"+(isOnce?"":"Once")+"() then add"+(!isOnce?"":"Once")+"() the same listener without removing the relationship first.")}}else{binding=newPhaser.SignalBinding(this,listener,isOnce,listenerContext,priority);this._addBinding(binding)}if(this.memorize&&this._prevParams){binding.execute(this._prevParams)}returnbinding};Signal.prototype._addBinding=function(binding){varn=this._bindings.length;do{--n}while(this._bindings[n]&&binding.priority<=this._bindings[n].priority);this._bindings.splice(n+1,0,binding)};Signal.prototype._indexOfListener=function(listener,context){varn=this._bindings.length;varcur;while(n--){cur=this._bindings[n];if(cur.getListener()===listener&&cur.context===context){returnn}}return-1};Signal.prototype.has=function(listener,context){if(typeofcontext==="undefined"){context=null}returnthis._indexOfListener(listener,context)!==-1};Signal.prototype.add=function(listener,listenerContext,priority){if(typeoflistenerContext==="undefined"){listenerContext=null}if(typeofpriority==="undefined"){priority=0}this.validateListener(listener,"add");returnthis._registerListener(listener,false,listenerContext,priority)};Signal.prototype.addOnce=function(listener,listenerContext,priority){if(typeoflistenerContext==="undefined"){listenerContext=null}if(typeofpriority==="undefined"){priority=0}this.validateListener(listener,"addOnce");returnthis._regist