/*! For license information please see 1735.e1d68ed63ee97123ad1e.js.LICENSE.txt */ (self.webpackChunklauncher=self.webpackChunklauncher||[]).push([[1735],{6487:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>$t});var n,o=[];function i(){o.forEach((function(t){t.callback.call(t.context,n.ticker.lastTime+n.ticker.elapsedMS)}))}function a(t,e){o=o.filter((function(r){return r.callback!==t||r.context!==e}))}var c=r(7200);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function u(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{};Array.isArray(e)&&(e=e.reduce((function(t,e){return Object.assign(t,e)}),{})),Object.entries(e).forEach((function(e){h[e[0]]&&h[e[0]].call(t,e[1])}))}}],r&&m(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(c.W20);function O(t){return t.startsWith("rgb")?function(t){var e=t.slice(4,-1).split(",").map((function(t){return parseInt(t,10).toString(16).padStart(2,"0")})).join("");return parseInt(e,16)}(t):function(t){return 3===(t=t.slice(0,6)).length&&(t=t.split("").reduce((function(t,e){return"".concat(t).concat(e).concat(e)}),"")),t=/[0-9|A-F|a-f]{6}/.test(t)?t:"FFFFFF",parseInt(t,16)}(t=t.replace(/#|0x/,""))}function j(t){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j(t)}function x(t){return function(t){if(Array.isArray(t))return _(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||P(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(t,e){if(t){if("string"==typeof t)return _(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_(t,e):void 0}}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:{};Array.isArray(e)&&(e=e.reduce((function(t,e){return Object.assign(t,e)}),{})),Object.entries(e).forEach((function(e){var r,n,o=(n=2,function(t){if(Array.isArray(t))return t}(r=e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);s=!0);}catch(t){u=!0,o=t}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(r,n)||P(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];if(h[i])h[i].call(t,a);else switch(i){case"tint":t.setTint(a);break;case"animationSpeed":t.animationSpeed=a;break;case"loop":t.loop=a;break;case"animation":t.animationSpeed=a.animationSpeed||1,t.loop=a.loop||!1,t.gotoAndPlay(0)}}))}},{key:"setAnimationTextures",value:function(t,e){var r,n=this;(r=Array.isArray(t)?t.map((function(t){return n.frames[t]})).filter(Boolean):Object.values(this.frames).slice(t,e+1)).length||(r=Object.values(this.frames)),this.textures=r}},{key:"setAnimationTexturesByRegexp",value:function(t,e){var r=this,n=[];return Object.keys(this.frames).forEach((function(e){t.test(e)&&n.push(r.frames[e])})),n.length?(e&&(n=[].concat(x(n),x(n.slice(0,-1).reverse()))),this.textures=n,!0):(this.textures=Object.values(this.frames),!1)}},{key:"getFrameNameOfIndex",value:function(t){return Object.keys(this.frames)[t]}}],r&&E(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(c.KgH);function C(t){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},C(t)}function I(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{};Array.isArray(e)&&(e=e.reduce((function(t,e){return Object.assign(t,e)}),{})),Object.keys(e).forEach((function(r){var n=e[r];if(h[r])h[r].call(t,n);else switch(r){case"color":t.setColor(n);break;case"font":t.setFont(n);break;case"fontSize":t.setFontSize(n);break;case"fontWeight":t.setFontWeight(n);break;case"wrap":t.setWordWrap(n);break;case"lineSpacing":t.setLineSpacing(n);break;case"letterSpacing":t.setLetterSpacing(n);break;case"align":t.setAlign(n);break;case"shadowOffset":t.setShadowOffset(n);break;case"shadowBlur":t.style.dropShadowBlur=n;break;case"shadowAngle":t.setShadowAngle(n);break;case"lineJoin":t.setLineJoin(n);break;case"shadowFill":t.setShadowFill(n);break;case"shadowColor":t.setShadowColor(n);break;case"strokeThickness":t.setStrokeThickness(n);break;case"stroke":t.setStroke(n);break;case"text":t.setText(n);break;case"resolution":t.resolution=n;break;case"padding":t.setPadding(n);break;case"maxWidth":t.setMaxWidth(n);break;case"fillGradientStops":t.style.fillGradientStops=n}}))}},{key:"setColor",value:function(t){"string"==typeof t&&(t=O(t)),this.style.fill=t}},{key:"setFont",value:function(t){this.style.fontFamily=t}},{key:"setFontSize",value:function(t){this.style.fontSize=t,this._originalFontSize=t,this._correctTextSize()}},{key:"setFontWeight",value:function(t){this.style.fontWeight=t}},{key:"setWordWrap",value:function(t){this.style.wordWrap=!!t,this.style.wordWrapWidth=t}},{key:"setLineSpacing",value:function(t){this.style.leading=t}},{key:"setLetterSpacing",value:function(t){this.style.letterSpacing=t}},{key:"setAlign",value:function(t){this.style.align=t}},{key:"setShadowOffset",value:function(t){this.style.dropShadowDistance=t}},{key:"setPadding",value:function(t){this.style.padding=t}},{key:"setLineJoin",value:function(t){this.style.lineJoin=t}},{key:"setShadowAngle",value:function(t){this.style.dropShadowAngle=t}},{key:"setShadowFill",value:function(t){this.style.dropShadow=t}},{key:"setShadowColor",value:function(t){"string"==typeof t&&(t=O(t)),this.style.dropShadowColor=t}},{key:"setStrokeThickness",value:function(t){this._originalStrokeThickness=t,this.style.strokeThickness=t}},{key:"setStroke",value:function(t){"string"==typeof t&&(t=O(t)),this.style.stroke=t}},{key:"setText",value:function(t){this.text=t,this._originalText=t,this._correctTextSize()}},{key:"_correctTextSize",value:function(){this.style.fontSize=this._originalFontSize;var t=this.width;t>this._maxWidth&&(this.style.fontSize=this._maxWidth/t*this._originalFontSize)}},{key:"setMaxWidth",value:function(t){this._maxWidth=t,this._correctTextSize()}}],r&&I(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(c.xvT);function W(t){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W(t)}function N(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{};return Array.isArray(e)&&(e=e.reduce((function(t,e){return Object.assign(t,e)}),{})),Object.keys(e).forEach((function(r){var n=e[r];h[r]?h[r].call(t,n):"tint"===r&&t.setTint(n)})),e}},{key:"updateViewForMobile",value:function(t){var e,r="";this.mobileSpecificConfigs[t]&&(this.mobileSpecificConfigs[t].key&&(r=this.mobileSpecificConfigs[t].key),this.mobileSpecificConfigs[t].frame&&(e=this.mobileSpecificConfigs[t].frame)),r&&this.changeTexture(r),e&&this.changeFrame(e)}}],r&&N(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(c.jyi);function $(t){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$(t)}function J(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:{};Array.isArray(e)&&(e=e.reduce((function(t,e){return Object.assign(t,e)}),{})),Object.entries(e).forEach((function(e){var r,n,o=(n=2,function(t){if(Array.isArray(t))return t}(r=e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);s=!0);}catch(t){u=!0,o=t}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(r,n)||function(t,e){if(t){if("string"==typeof t)return J(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?J(t,e):void 0}}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];if(h[i])h[i].call(t,a);else switch(i){case"mask":t.drawMask(a);break;case"rect":t.drRect(a);break;case"line":t.drLine(a)}}))}},{key:"drawMask",value:function(t){var e=this,r=t.x,n=t.y,o=t.width,i=t.height,a=t.cornerRadius;this.beginFill(16777215),void 0!==a?this.drawRoundedRect(r,n,o,i,a):this.drawRect(r,n,o,i),this.endFill(),this.parent?this.parent.mask=this:(this.visible=!1,this.on("added",(function(){e.parent.mask=e,e.visible=!0})))}}],r&&Y(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(c.TCu),X=r(339),Z=r(2873);function tt(t){return tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tt(t)}function et(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:{};Array.isArray(e)&&(e=e.reduce((function(t,e){return Object.assign(t,e)}),{})),Object.entries(e).forEach((function(e){var r,n,o=(n=2,function(t){if(Array.isArray(t))return t}(r=e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);s=!0);}catch(t){u=!0,o=t}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(r,n)||function(t,e){if(t){if("string"==typeof t)return et(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?et(t,e):void 0}}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];h[i]?h[i].call(t,a):"tint"===i?t.setTint(a):"animation"===i&&t.play(a.name,a.loop,a.timeScale)}))}},{key:"play",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];this.clearAnimationData(n),this.lastTime=0,this.state.hasAnimation(t)&&(this.state.setAnimation(n,t,e),this.state.tracks[n].timeScale=r,o&&this.reverseCurrentAnimation(this.state.tracks[n]))}},{key:"clearAnimationData",value:function(t){if(this.animationPromises.has(t)){var e=this.animationPromises.get(t);e.forceResolve&&e.resolver(),this.removeListener(e.event,e.listener,null,e.animationName),this.animationPromises.delete(t)}}},{key:"stop",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.trackPlace,r=t.animationName;if(void 0===e&&r&&(e=this.state.tracks.findIndex((function(t){return t&&t.animation.name===r}))),e>=0){if(this.clearTrack(e),this.animationPromises.has(e)){var n=this.animationPromises.get(e);n.forceResolve&&n.resolver(),this.animationPromises.delete(e)}}else this.state.clearTracks(),this.skeleton.setToSetupPose(),this.animationPromises.forEach((function(t){t.forceResolve&&t.resolver()})),this.animationPromises.clear()}},{key:"stopAnimation",value:function(t){var e=this.state.tracks.findIndex((function(e){return e&&e.animation.name===t}));e>-1&&(this.state.clearTrack(e),this.state.tracks.splice(e,1))}},{key:"changeTexture",value:function(t){if(this.key!==t){this.key=t,this.removeChildren();var e=this.res[t].spineData;this.spineData=e,this.skeleton=new Z.Skeleton(e),this.skeleton.updateWorldTransform(),this.stateData=new Z.AnimationStateData(e),this.state=new Z.AnimationState(this.stateData),this.slotContainers=[],this.tempClipContainers=[];for(var r=0,n=this.skeleton.slots.length;r3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4?arguments[4]:void 0,u=["start","complete","end","dispose","interrupted"].indexOf(t)>-1,l=c?function(){a.removeListener(t,e,r,s);for(var n=arguments.length,o=new Array(n),i=0;i-1){var i=this._listeners.splice(o,1)[0];if(n){var a=this.getTrack(n);a&&a.listener&&(delete a.listener[t],0===Object.keys(a.listener).length&&(a.listener=null))}this.state.removeListener(i.l)}}},{key:"clearListeners",value:function(){this._listeners.length=0,this.state.clearListeners(),this.state.tracks.forEach((function(t){t&&(t.listener=null)}))}},{key:"callAllListenersAndStop",value:function(){this._listeners.forEach((function(t){return t.listener.call(t.context)})),this.stop(),this.clearListeners()}},{key:"addChildInSpine",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=this.getSlot(t);return!!n&&((n.children[r]||n).addChild(e),!0)}},{key:"removeChildFromSpine",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=this.getSlot(t);return!!n&&((n.children[r]||n).removeChild(e),!0)}}],r&&rt(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(X.PY);function st(t){return st="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},st(t)}function ut(){ut=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),c=new x(o||[]);return n(a,"_invoke",{value:S(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function y(){}function h(){}function p(){}var v={};s(v,i,(function(){return this}));var d=Object.getPrototypeOf,b=d&&d(d(P([])));b&&b!==e&&r.call(b,i)&&(v=b);var m=p.prototype=y.prototype=Object.create(v);function g(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==st(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=k(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function k(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function P(t){if(t||""===t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function lt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ft(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};Array.isArray(e)&&(e=e.reduce((function(t,e){return Object.assign(t,e)}),{})),Object.keys(e).forEach((function(r){var n=e[r];h[r]&&h[r].call(t,n)}))}}],r&>(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(c.oO3);function jt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r2&&void 0!==arguments[2]&&arguments[2],n=this.currentIndex.toString();return this.listeners[n]={callback:t,ctx:e,once:r},this.currentIndex++,this.removeListener.bind(this,n)}},{key:"removeListener",value:function(t){delete this.listeners[t]}},{key:"callListeners",value:function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n1?r-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.time=performance.now()+e,this.delay=e,this.callback=r,this.context=n;for(var a=arguments.length,c=new Array(a>5?a-5:0),s=5;s0&&void 0!==arguments[0]?arguments[0]:0;this.time-=this.delay,this.delay=t,this.time+=t}}],r&&Ct(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Bt(t){return Bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bt(t)}function Mt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r5?a-5:0),s=5;s-1&&(this._events.splice(e,1),0===this._events.length&&a(this._update,this))}},{key:"_update",value:function(t){var e=this,r=[];this._events.forEach((function(e){var n,o;t>=e.time&&((n=e.callback).call.apply(n,[e.context].concat(function(t){if(Array.isArray(t))return Mt(t)}(o=e.args)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(o)||function(t,e){if(t){if("string"==typeof t)return Mt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Mt(t,e):void 0}}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),e.counter++,e.time=t+e.delay,!1===e.loop&&e.counter>=e.repeatCount&&r.push(e))})),r.forEach((function(t){e._events.indexOf(t)>-1&&e._events.splice(e._events.indexOf(t),1)}))}},{key:"updateEventsTimes",value:function(t){this._events.forEach((function(e,r){void 0!==t[r]&&(e.time=performance.now()+t[r])}))}},{key:"destroy",value:function(){0===this._events.length&&a(this._update,this),this._events.length=0,this.ticker=null}},{key:"accelerate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.updateEventsTimes(t)}}],r&&Wt(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),s}(Rt);const $t={initLoopManager:function(t){(n=t).ticker.add(i)},initRenderer:function(t,e){l.length=0,l.push(new f(e,null,null,null,null,"app",0,t.renderer,t.stage))},initElemData:function(t,e){return Object.entries(t).forEach((function(r){var n,o,i=(n=r,o=1,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);s=!0);}catch(t){u=!0,o=t}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(n,o)||function(t,e){if(t){if("string"==typeof t)return jt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jt(t,e):void 0}}(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];!function(t,e){var r,n,o;t.map((function(t){var i,a={parent:e,elementId:t.id,styles:t.styles};switch(t.type){case"sprite":r=a.styles.key,a.key=vt.loadScreenAssets[r],a.frame=a.styles.frame,i=new U(a);break;case"tillingSprite":r=a.styles.key,a.key=vt.loadScreenAssets[r],i=new Ot(a);break;case"text":i=new D(a);break;case"graphics":i=new Q(a);break;case"animation":n=a.styles.key,a.key=vt.loadScreenAssets[n],a.frame=a.styles.frame,a.frames=a.styles.frames,i=new L(a);break;case"spine":o=a.styles.key,console.log(o),console.log(vt),a.key=vt.loadScreenAssets[o],i=new ct(a,vt.loadScreenAssets);break;default:i=new k(a)}return xt[t.id]=i,i}))}(t[i],xt[i]||e)})),xt},refs:xt,initTimer:function(t){It=t,Ht=new Ut},initAssetsLoader:bt,addTimer:function(t,e,r){return Ht.add(t,e,r,!1)},removeTimer:function(t){Ht.remove(t)},resources:vt}},4654:()=>{}}]);