window.QySkeleton=function(t){t||(t={});this.json=t.json;this.plist=t.plist;this.image=t.image;this.size=t.size;this.pivot=t.pivot;this.animation=t.animation;this.events=t.events;var e=[];e=e.concat(this.json);e=e.concat(this.plist);this.urls=e};inherits(QySkeleton,PIXI.Spine);QySkeleton.prototype.load=function(t){var e=this,o=this.assetLoader;o||(o=this.assetLoader=new PIXI.AssetLoader);o.assetURLs=this.urls;o.onComplete=function(){e.onLoad();t&&t()};o.load()};QySkeleton.prototype.onLoad=function(){var t=this.json;if(t.length){PIXI.Spine.call(this,t[0]);var e=this;this.state.onComplete=function(t,o){var i,n=e.getLoop();i=n===!0||isNaN(n-0)?1/0:n-0;if(o>=i){var s=e.state.getCurrent(0),a=s.animation.name;e.state.clearTracks();var h=new PIXI.Event(this,"skeletonEnd");h.animation=a;e.dispatchEvent(h)}}}};QySkeleton.prototype.setStartAnimation=function(t){this.state.setAnimationByName(0,t,!0)};QySkeleton.prototype.setLoop=function(t){this.loop=t};QySkeleton.prototype.getLoop=function(){return void 0===this.loop?1:this.loop};QySkeleton.prototype.setSpeed=function(t,e){t&&this.state&&(e?this.state.timeScale*=1+t/100:this.state.timeScale=t/100)};