!function(){function e(){if(!l){l=!0;requestAnimFrame(n)}}function n(e){var t=e-f;f=e;for(var s=0;s<o.length;s++){var r=o[s],i=r.paused,l=r.loop,d=r.fun,g=r.delay,p=r.context;if(c(p))u(s);else if(!i&&!a(p))if(g&&g>=t)r.delay-=t;else{d&&d(t);l>0&&0==--l&&u(s)}}requestAnimFrame(n)}function t(e,n,t,s){var u=d.pop();if(u){o[u].fun=e;o[u].context=n;o[u].loop=t;o[u].paused=!1;o[u].delay=s}else{u=o.length;o.push({fun:e,loop:t,paused:!1,delay:s,context:n})}return u}function s(e,n,s){return t(e,n,1,s)}function u(e){o[e].paused=!0;o[e].fun=null;d.indexOf(e)<0&&d.push(e)}function r(){o.length=0;d.length=0}function i(e,n){return}function a(e){return e?e.isPaused_?!0:e.scene&&e.scene.isPaused_?!0:e.target&&(e.target.isPaused_||e.target.scene&&e.target.scene.isPaused_||e.target.sprite&&e.target.sprite.qyobj&&e.target.sprite.qyobj.scene&&e.target.sprite.qyobj.scene.isPaused_)?!0:!1:!0}function c(e){return!e||e.destroyed_}var l,o=[],d=[],f=0;window.startScheduler=qyengine.startScheduler=e;qyengine.stepScheduler=n;window.scheduleTask=qyengine.scheduleTask=t;window.callAfter=qyengine.callAfter=s;window.unscheduleTask=qyengine.unscheduleTask=u;qyengine.unscheduleAll=r;qyengine.changeDirectorActivity=i}();