@famibee/skynovel 1.25.7 → 1.25.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ ## [1.25.8](https://github.com/famibee/SKYNovel/compare/v1.25.7...v1.25.8) (2022-01-08)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * 上げなおし:21年末時点版(ライブラリは更新) ([3f47a05](https://github.com/famibee/SKYNovel/commit/3f47a05fa9acd6121192b323950e647935ef56c6))
7
+
8
+ - fix: Windowsのみ:全画面から戻ると、一拍置いて極小画面サイズになる件
9
+ - fix: [fade]系にスキップ時処理を追記
10
+ - fix: 非パッケージだと versionが Electronの値になる件対応
11
+ - fix: const.sn.bookmark.json の値を実際のパスに置換しないように
12
+ - fix: [add_frame]での内部画像パス置換処理を修正
13
+ - fix: ライブラリ更新
14
+
15
+
1
16
  ## [1.25.7](https://github.com/famibee/SKYNovel/compare/v1.25.6...v1.25.7) (2021-12-28)
2
17
 
3
18
 
package/app.js CHANGED
@@ -35049,7 +35049,7 @@ __webpack_require__.r(__webpack_exports__);
35049
35049
  /* harmony export */ "Sound": () => (/* binding */ A),
35050
35050
  /* harmony export */ "SoundLibrary": () => (/* binding */ E),
35051
35051
  /* harmony export */ "SoundLoader": () => (/* binding */ _),
35052
- /* harmony export */ "SoundSprite": () => (/* binding */ g),
35052
+ /* harmony export */ "SoundSprite": () => (/* binding */ b),
35053
35053
  /* harmony export */ "filters": () => (/* binding */ k),
35054
35054
  /* harmony export */ "htmlaudio": () => (/* binding */ L),
35055
35055
  /* harmony export */ "sound": () => (/* binding */ I),
@@ -35061,14 +35061,14 @@ __webpack_require__.r(__webpack_exports__);
35061
35061
  /* harmony import */ var _pixi_ticker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @pixi/ticker */ "./node_modules/@pixi/ticker/dist/esm/ticker.js");
35062
35062
  /* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
35063
35063
  /*!
35064
- * @pixi/sound - v4.0.6
35064
+ * @pixi/sound - v4.2.0
35065
35065
  * https://github.com/pixijs/pixi-sound
35066
- * Compiled Wed, 15 Sep 2021 00:32:52 UTC
35066
+ * Compiled Wed, 05 Jan 2022 14:56:00 UTC
35067
35067
  *
35068
35068
  * @pixi/sound is licensed under the MIT license.
35069
35069
  * http://www.opensource.org/licenses/mit-license
35070
35070
  */
35071
- var r;function s(){return r}var u=function(t,e){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var c=function(){return(c=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},p=["mp3","ogg","oga","opus","mpeg","wav","m4a","aiff","wma","mid","caf"],h={};function l(t){var e=c({m4a:"audio/mp4",oga:"audio/ogg",opus:'audio/ogg; codecs="opus"',caf:'audio/x-caf; codecs="opus"'},t||{}),n=document.createElement("audio"),o={},i=/^no$/;p.forEach((function(t){var r=n.canPlayType("audio/"+t).replace(i,""),s=e[t]?n.canPlayType(e[t]).replace(i,""):"";o[t]=!!r||!!s})),Object.assign(h,o)}l();var f=/\.(\{([^\}]+)\})(\?.*)?$/;function d(t){var e=f,n="string"==typeof t?t:t.url;if(!e.test(n))return n;for(var o=e.exec(n),i=o[2].split(","),r=i[i.length-1],s=0,u=i.length;s<u;s++){var a=i[s];if(h[a]){r=a;break}}var c=n.replace(o[1],r);if("string"!=typeof t){var p=t;p.extension=r,p.url=c}return c}var _=function(){function e(){}return e.add=function(){e.setLegacy(s().useLegacy)},e.setLegacy=function(e){var n=p;e?n.forEach((function(e){_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.setExtensionXhrType(e,_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.XHR_RESPONSE_TYPE.DEFAULT),_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.setExtensionLoadType(e,_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.LOAD_TYPE.AUDIO)})):n.forEach((function(e){_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.setExtensionXhrType(e,_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.XHR_RESPONSE_TYPE.BUFFER),_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.setExtensionLoadType(e,_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.LOAD_TYPE.XHR)}))},e.pre=function(t,e){d(t),e()},e.use=function(t,e){t.data&&p.indexOf(t.extension)>-1?t.sound=s().add(t.name,{loaded:e,preload:!0,url:t.url,source:t.data}):e()},e}(),y=0,m=function(t){function e(e){var n=t.call(this)||this;return n.id=y++,n.init(e),n}return a(e,t),e.prototype.set=function(t,e){if(void 0===this[t])throw new Error("Property with name "+t+" does not exist.");switch(t){case"speed":this.speed=e;break;case"volume":this.volume=e;break;case"paused":this.paused=e;break;case"loop":this.loop=e;break;case"muted":this.muted=e}return this},Object.defineProperty(e.prototype,"progress",{get:function(){return this._source.currentTime/this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this._paused},set:function(t){this._paused=t,this.refreshPaused()},enumerable:!1,configurable:!0}),e.prototype._onPlay=function(){this._playing=!0},e.prototype._onPause=function(){this._playing=!1},e.prototype.init=function(t){this._playing=!1,this._duration=t.source.duration;var e=this._source=t.source.cloneNode(!1);e.src=t.parent.url,e.onplay=this._onPlay.bind(this),e.onpause=this._onPause.bind(this),t.context.on("refresh",this.refresh,this),t.context.on("refreshPaused",this.refreshPaused,this),this._media=t},e.prototype._internalStop=function(){this._source&&this._playing&&(this._source.onended=null,this._source.pause())},e.prototype.stop=function(){this._internalStop(),this._source&&this.emit("stop")},Object.defineProperty(e.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this._volume},set:function(t){this._volume=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loop",{get:function(){return this._loop},set:function(t){this._loop=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"muted",{get:function(){return this._muted},set:function(t){this._muted=t,this.refresh()},enumerable:!1,configurable:!0}),e.prototype.refresh=function(){var t=this._media.context,e=this._media.parent;this._source.loop=this._loop||e.loop;var n=t.volume*(t.muted?0:1),o=e.volume*(e.muted?0:1),i=this._volume*(this._muted?0:1);this._source.volume=i*n*o,this._source.playbackRate=this._speed*t.speed*e.speed},e.prototype.refreshPaused=function(){var t=this._media.context,e=this._media.parent,n=this._paused||e.paused||t.paused;n!==this._pausedReal&&(this._pausedReal=n,n?(this._internalStop(),this.emit("paused")):(this.emit("resumed"),this.play({start:this._source.currentTime,end:this._end,volume:this._volume,speed:this._speed,loop:this._loop})),this.emit("pause",n))},e.prototype.play=function(t){var n=this,i=t.start,r=t.end,s=t.speed,u=t.loop,a=t.volume,c=t.muted;this._speed=s,this._volume=a,this._loop=!!u,this._muted=c,this.refresh(),this.loop&&null!==r&&(this.loop=!1),this._start=i,this._end=r||this._duration,this._start=Math.max(0,this._start-e.PADDING),this._end=Math.min(this._end+e.PADDING,this._duration),this._source.onloadedmetadata=function(){n._source&&(n._source.currentTime=i,n._source.onloadedmetadata=null,n.emit("progress",i,n._duration),_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.add(n._onUpdate,n))},this._source.onended=this._onComplete.bind(this),this._source.play(),this.emit("start")},e.prototype._onUpdate=function(){this.emit("progress",this.progress,this._duration),this._source.currentTime>=this._end&&!this._source.loop&&this._onComplete()},e.prototype._onComplete=function(){_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.remove(this._onUpdate,this),this._internalStop(),this.emit("progress",1,this._duration),this.emit("end",this)},e.prototype.destroy=function(){_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.remove(this._onUpdate,this),this.removeAllListeners();var t=this._source;t&&(t.onended=null,t.onplay=null,t.onpause=null,this._internalStop()),this._source=null,this._speed=1,this._volume=1,this._loop=!1,this._end=null,this._start=0,this._duration=0,this._playing=!1,this._pausedReal=!1,this._paused=!1,this._muted=!1,this._media&&(this._media.context.off("refresh",this.refresh,this),this._media.context.off("refreshPaused",this.refreshPaused,this),this._media=null)},e.prototype.toString=function(){return"[HTMLAudioInstance id="+this.id+"]"},e.PADDING=.1,e}(_pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.init=function(t){this.parent=t,this._source=t.options.source||new Audio,t.url&&(this._source.src=t.url)},e.prototype.create=function(){return new m(this)},Object.defineProperty(e.prototype,"isPlayable",{get:function(){return!!this._source&&4===this._source.readyState},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this._source.duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this.parent.context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"filters",{get:function(){return null},set:function(t){},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this.removeAllListeners(),this.parent=null,this._source&&(this._source.src="",this._source.load(),this._source=null)},Object.defineProperty(e.prototype,"source",{get:function(){return this._source},enumerable:!1,configurable:!0}),e.prototype.load=function(t){var e=this._source,n=this.parent;if(4!==e.readyState)if(n.url){e.src=n.url;var o=function(){s(),n.isLoaded=!0;var e=n.autoPlayStart();t&&t(null,n,e)},i=function(){s(),t&&t(new Error("Sound loading has been aborted"))},r=function(){s();var n="Failed to load audio element (code: "+e.error.code+")";t&&t(new Error(n))},s=function(){e.removeEventListener("canplaythrough",o),e.removeEventListener("load",o),e.removeEventListener("abort",i),e.removeEventListener("error",r)};e.addEventListener("canplaythrough",o,!1),e.addEventListener("load",o,!1),e.addEventListener("abort",i,!1),e.addEventListener("error",r,!1),e.load()}else t(new Error("sound.url or sound.source must be set"));else{n.isLoaded=!0;var u=n.autoPlayStart();t&&setTimeout((function(){t(null,n,u)}),0)}},e}(_pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),g=function(){function t(t,e){this.parent=t,Object.assign(this,e),this.duration=this.end-this.start}return t.prototype.play=function(t){return this.parent.play({complete:t,speed:this.speed||this.parent.speed,end:this.end,start:this.start,loop:this.loop})},t.prototype.destroy=function(){this.parent=null},t}(),v=function(){function t(){}return t.setParamValue=function(t,e){if(t.setValueAtTime){var n=s().context;t.setValueAtTime(e,n.audioContext.currentTime)}else t.value=e;return e},t}(),P=0,x=function(t){function e(e){var n=t.call(this)||this;return n.id=P++,n._media=null,n._paused=!1,n._muted=!1,n._elapsed=0,n.init(e),n}return a(e,t),e.prototype.set=function(t,e){if(void 0===this[t])throw new Error("Property with name "+t+" does not exist.");switch(t){case"speed":this.speed=e;break;case"volume":this.volume=e;break;case"muted":this.muted=e;break;case"loop":this.loop=e;break;case"paused":this.paused=e}return this},e.prototype.stop=function(){this._source&&(this._internalStop(),this.emit("stop"))},Object.defineProperty(e.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t,this.refresh(),this._update(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this._volume},set:function(t){this._volume=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"muted",{get:function(){return this._muted},set:function(t){this._muted=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loop",{get:function(){return this._loop},set:function(t){this._loop=t,this.refresh()},enumerable:!1,configurable:!0}),e.prototype.refresh=function(){if(this._source){var t=this._media.context,e=this._media.parent;this._source.loop=this._loop||e.loop;var n=t.volume*(t.muted?0:1),o=e.volume*(e.muted?0:1),i=this._volume*(this._muted?0:1);v.setParamValue(this._gain.gain,i*o*n),v.setParamValue(this._source.playbackRate,this._speed*e.speed*t.speed)}},e.prototype.refreshPaused=function(){var t=this._media.context,e=this._media.parent,n=this._paused||e.paused||t.paused;n!==this._pausedReal&&(this._pausedReal=n,n?(this._internalStop(),this.emit("paused")):(this.emit("resumed"),this.play({start:this._elapsed%this._duration,end:this._end,speed:this._speed,loop:this._loop,volume:this._volume})),this.emit("pause",n))},e.prototype.play=function(t){var e=t.start,n=t.end,o=t.speed,i=t.loop,r=t.volume,s=t.muted;this._paused=!1;var u=this._media.nodes.cloneBufferSource(),a=u.source,c=u.gain;this._source=a,this._gain=c,this._speed=o,this._volume=r,this._loop=!!i,this._muted=s,this.refresh();var p=this._source.buffer.duration;this._duration=p,this._end=n,this._lastUpdate=this._now(),this._elapsed=e,this._source.onended=this._onComplete.bind(this),this._loop?(this._source.loopEnd=n,this._source.loopStart=e,this._source.start(0,e)):n?this._source.start(0,e,n-e):this._source.start(0,e),this.emit("start"),this._update(!0),this.enableTicker(!0)},e.prototype.enableTicker=function(t){_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.remove(this._updateListener,this),t&&_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.add(this._updateListener,this)},Object.defineProperty(e.prototype,"progress",{get:function(){return this._progress},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this._paused},set:function(t){this._paused=t,this.refreshPaused()},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this.removeAllListeners(),this._internalStop(),this._gain&&(this._gain.disconnect(),this._gain=null),this._media&&(this._media.context.events.off("refresh",this.refresh,this),this._media.context.events.off("refreshPaused",this.refreshPaused,this),this._media=null),this._end=null,this._speed=1,this._volume=1,this._loop=!1,this._elapsed=0,this._duration=0,this._paused=!1,this._muted=!1,this._pausedReal=!1},e.prototype.toString=function(){return"[WebAudioInstance id="+this.id+"]"},e.prototype._now=function(){return this._media.context.audioContext.currentTime},e.prototype._updateListener=function(){this._update()},e.prototype._update=function(t){if(void 0===t&&(t=!1),this._source){var e=this._now(),n=e-this._lastUpdate;if(n>0||t){var o=this._source.playbackRate.value;this._elapsed+=n*o,this._lastUpdate=e;var i=this._duration,r=void 0;if(this._source.loopStart){var s=this._source.loopEnd-this._source.loopStart;r=(this._source.loopStart+this._elapsed%s)/i}else r=this._elapsed%i/i;this._progress=r,this.emit("progress",this._progress,i)}}},e.prototype.init=function(t){this._media=t,t.context.events.on("refresh",this.refresh,this),t.context.events.on("refreshPaused",this.refreshPaused,this)},e.prototype._internalStop=function(){if(this._source){this.enableTicker(!1),this._source.onended=null,this._source.stop(0),this._source.disconnect();try{this._source.buffer=null}catch(t){}this._source=null}},e.prototype._onComplete=function(){if(this._source){this.enableTicker(!1),this._source.onended=null,this._source.disconnect();try{this._source.buffer=null}catch(t){}}this._source=null,this._progress=1,this.emit("progress",1,this._duration),this.emit("end",this)},e}(_pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),O=function(){function t(t,e){this._output=e,this._input=t}return Object.defineProperty(t.prototype,"destination",{get:function(){return this._input},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filters",{get:function(){return this._filters},set:function(t){var e=this;if(this._filters&&(this._filters.forEach((function(t){t&&t.disconnect()})),this._filters=null,this._input.connect(this._output)),t&&t.length){this._filters=t.slice(0),this._input.disconnect();var n=null;t.forEach((function(t){null===n?e._input.connect(t.destination):n.connect(t.destination),n=t})),n.connect(this._output)}},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){this.filters=null,this._input=null,this._output=null},t}(),j=function(t){function e(e){var n=this,o=e.audioContext,i=o.createBufferSource(),r=o.createGain(),s=o.createAnalyser();return i.connect(s),s.connect(r),r.connect(e.destination),(n=t.call(this,s,r)||this).context=e,n.bufferSource=i,n.gain=r,n.analyser=s,n}return a(e,t),Object.defineProperty(e.prototype,"script",{get:function(){return this._script||(this._script=this.context.audioContext.createScriptProcessor(e.BUFFER_SIZE),this._script.connect(this.context.destination)),this._script},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.bufferSource.disconnect(),this._script&&this._script.disconnect(),this.gain.disconnect(),this.analyser.disconnect(),this.bufferSource=null,this._script=null,this.gain=null,this.analyser=null,this.context=null},e.prototype.cloneBufferSource=function(){var t=this.bufferSource,e=this.context.audioContext.createBufferSource();e.buffer=t.buffer,v.setParamValue(e.playbackRate,t.playbackRate.value),e.loop=t.loop;var n=this.context.audioContext.createGain();return e.connect(n),n.connect(this.destination),{source:e,gain:n}},Object.defineProperty(e.prototype,"bufferSize",{get:function(){return this.script.bufferSize},enumerable:!1,configurable:!0}),e.BUFFER_SIZE=0,e}(O),w=function(){function t(){}return t.prototype.init=function(t){this.parent=t,this._nodes=new j(this.context),this._source=this._nodes.bufferSource,this.source=t.options.source},t.prototype.destroy=function(){this.parent=null,this._nodes.destroy(),this._nodes=null;try{this._source.buffer=null}catch(t){}this._source=null,this.source=null},t.prototype.create=function(){return new x(this)},Object.defineProperty(t.prototype,"context",{get:function(){return this.parent.context},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPlayable",{get:function(){return!!this._source&&!!this._source.buffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filters",{get:function(){return this._nodes.filters},set:function(t){this._nodes.filters=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){return this._source.buffer.duration},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"buffer",{get:function(){return this._source.buffer},set:function(t){this._source.buffer=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nodes",{get:function(){return this._nodes},enumerable:!1,configurable:!0}),t.prototype.load=function(t){this.source?this._decode(this.source,t):this.parent.url?this._loadUrl(t):t&&t(new Error("sound.url or sound.source must be set"))},t.prototype._loadUrl=function(t){var e=this,n=new XMLHttpRequest,o=this.parent.url;n.open("GET",o,!0),n.responseType="arraybuffer",n.onload=function(){e.source=n.response,e._decode(n.response,t)},n.send()},t.prototype._decode=function(t,e){var n=this;this.parent.context.decode(t,(function(t,o){if(t)e&&e(t);else{n.parent.isLoaded=!0,n.buffer=o;var i=n.parent.autoPlayStart();e&&e(null,n.parent,i)}}))},t}(),A=function(){function t(t,e){this.media=t,this.options=e,this._instances=[],this._sprites={},this.media.init(this);var n=e.complete;this._autoPlayOptions=n?{complete:n}:null,this.isLoaded=!1,this.isPlaying=!1,this.autoPlay=e.autoPlay,this.singleInstance=e.singleInstance,this.preload=e.preload||this.autoPlay,this.url=e.url,this.speed=e.speed,this.volume=e.volume,this.loop=e.loop,e.sprites&&this.addSprites(e.sprites),this.preload&&this._preload(e.loaded)}return t.from=function(e){var n={};return"string"==typeof e?n.url=e:e instanceof ArrayBuffer||e instanceof HTMLAudioElement?n.source=e:n=e,(n=c({autoPlay:!1,singleInstance:!1,url:null,source:null,preload:!1,volume:1,speed:1,complete:null,loaded:null,loop:!1},n)).url&&(n.url=d(n.url)),Object.freeze(n),new t(s().useLegacy?new b:new w,n)},Object.defineProperty(t.prototype,"context",{get:function(){return s().context},enumerable:!1,configurable:!0}),t.prototype.pause=function(){return this.isPlaying=!1,this.paused=!0,this},t.prototype.resume=function(){return this.isPlaying=this._instances.length>0,this.paused=!1,this},Object.defineProperty(t.prototype,"paused",{get:function(){return this._paused},set:function(t){this._paused=t,this.refreshPaused()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filters",{get:function(){return this.media.filters},set:function(t){this.media.filters=t},enumerable:!1,configurable:!0}),t.prototype.addSprites=function(t,e){if("object"==typeof t){var n={};for(var o in t)n[o]=this.addSprites(o,t[o]);return n}var i=new g(this,e);return this._sprites[t]=i,i},t.prototype.destroy=function(){this._removeInstances(),this.removeSprites(),this.media.destroy(),this.media=null,this._sprites=null,this._instances=null},t.prototype.removeSprites=function(t){if(t){var e=this._sprites[t];void 0!==e&&(e.destroy(),delete this._sprites[t])}else for(var n in this._sprites)this.removeSprites(n);return this},Object.defineProperty(t.prototype,"isPlayable",{get:function(){return this.isLoaded&&this.media&&this.media.isPlayable},enumerable:!1,configurable:!0}),t.prototype.stop=function(){if(!this.isPlayable)return this.autoPlay=!1,this._autoPlayOptions=null,this;this.isPlaying=!1;for(var t=this._instances.length-1;t>=0;t--)this._instances[t].stop();return this},t.prototype.play=function(t,e){var n,o=this;"string"==typeof t?n={sprite:r=t,loop:this.loop,complete:e}:"function"==typeof t?(n={}).complete=t:n=t;if((n=c({complete:null,loaded:null,sprite:null,end:null,start:0,volume:1,speed:1,muted:!1,loop:!1},n||{})).sprite){var i=n.sprite,r=this._sprites[i];n.start=r.start+(n.start||0),n.end=r.end,n.speed=r.speed||1,n.loop=r.loop||n.loop,delete n.sprite}if(n.offset&&(n.start=n.offset),!this.isLoaded)return new Promise((function(t,e){o.autoPlay=!0,o._autoPlayOptions=n,o._preload((function(o,i,r){o?e(o):(n.loaded&&n.loaded(o,i,r),t(r))}))}));this.singleInstance&&this._removeInstances();var s=this._createInstance();return this._instances.push(s),this.isPlaying=!0,s.once("end",(function(){n.complete&&n.complete(o),o._onComplete(s)})),s.once("stop",(function(){o._onComplete(s)})),s.play(n),s},t.prototype.refresh=function(){for(var t=this._instances.length,e=0;e<t;e++)this._instances[e].refresh()},t.prototype.refreshPaused=function(){for(var t=this._instances.length,e=0;e<t;e++)this._instances[e].refreshPaused()},Object.defineProperty(t.prototype,"volume",{get:function(){return this._volume},set:function(t){this._volume=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"muted",{get:function(){return this._muted},set:function(t){this._muted=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loop",{get:function(){return this._loop},set:function(t){this._loop=t,this.refresh()},enumerable:!1,configurable:!0}),t.prototype._preload=function(t){this.media.load(t)},Object.defineProperty(t.prototype,"instances",{get:function(){return this._instances},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sprites",{get:function(){return this._sprites},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){return this.media.duration},enumerable:!1,configurable:!0}),t.prototype.autoPlayStart=function(){var t;return this.autoPlay&&(t=this.play(this._autoPlayOptions)),t},t.prototype._removeInstances=function(){for(var t=this._instances.length-1;t>=0;t--)this._poolInstance(this._instances[t]);this._instances.length=0},t.prototype._onComplete=function(t){if(this._instances){var e=this._instances.indexOf(t);e>-1&&this._instances.splice(e,1),this.isPlaying=this._instances.length>0}this._poolInstance(t)},t.prototype._createInstance=function(){if(t._pool.length>0){var e=t._pool.pop();return e.init(this.media),e}return this.media.create()},t.prototype._poolInstance=function(e){e.destroy(),t._pool.indexOf(e)<0&&t._pool.push(e)},t._pool=[],t}(),F=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.speed=1,e.muted=!1,e.volume=1,e.paused=!1,e}return a(e,t),e.prototype.refresh=function(){this.emit("refresh")},e.prototype.refreshPaused=function(){this.emit("refreshPaused")},Object.defineProperty(e.prototype,"filters",{get:function(){return null},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"audioContext",{get:function(){return null},enumerable:!1,configurable:!0}),e.prototype.toggleMute=function(){return this.muted=!this.muted,this.refresh(),this.muted},e.prototype.togglePause=function(){return this.paused=!this.paused,this.refreshPaused(),this.paused},e.prototype.destroy=function(){this.removeAllListeners()},e}(_pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),C=function(t){function e(){var o=this,i=window,r=new e.AudioContext,s=r.createDynamicsCompressor(),u=r.createAnalyser();return u.connect(s),s.connect(r.destination),(o=t.call(this,u,s)||this)._ctx=r,o._offlineCtx=new e.OfflineAudioContext(1,2,i.OfflineAudioContext?r.sampleRate:44100),o._unlocked=!1,o.compressor=s,o.analyser=u,o.events=new _pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter,o.volume=1,o.speed=1,o.muted=!1,o.paused=!1,"running"!==r.state&&(o._unlock(),o._unlock=o._unlock.bind(o),document.addEventListener("mousedown",o._unlock,!0),document.addEventListener("touchstart",o._unlock,!0),document.addEventListener("touchend",o._unlock,!0)),o}return a(e,t),e.prototype._unlock=function(){this._unlocked||(this.playEmptySound(),"running"===this._ctx.state&&(document.removeEventListener("mousedown",this._unlock,!0),document.removeEventListener("touchend",this._unlock,!0),document.removeEventListener("touchstart",this._unlock,!0),this._unlocked=!0))},e.prototype.playEmptySound=function(){var t=this._ctx.createBufferSource();t.buffer=this._ctx.createBuffer(1,1,22050),t.connect(this._ctx.destination),t.start(0,0,0),"suspended"===t.context.state&&t.context.resume()},Object.defineProperty(e,"AudioContext",{get:function(){var t=window;return t.AudioContext||t.webkitAudioContext||null},enumerable:!1,configurable:!0}),Object.defineProperty(e,"OfflineAudioContext",{get:function(){var t=window;return t.OfflineAudioContext||t.webkitOfflineAudioContext||null},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this);var e=this._ctx;void 0!==e.close&&e.close(),this.events.removeAllListeners(),this.analyser.disconnect(),this.compressor.disconnect(),this.analyser=null,this.compressor=null,this.events=null,this._offlineCtx=null,this._ctx=null},Object.defineProperty(e.prototype,"audioContext",{get:function(){return this._ctx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offlineContext",{get:function(){return this._offlineCtx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this._paused},set:function(t){t&&"running"===this._ctx.state?this._ctx.suspend():t||"suspended"!==this._ctx.state||this._ctx.resume(),this._paused=t},enumerable:!1,configurable:!0}),e.prototype.refresh=function(){this.events.emit("refresh")},e.prototype.refreshPaused=function(){this.events.emit("refreshPaused")},e.prototype.toggleMute=function(){return this.muted=!this.muted,this.refresh(),this.muted},e.prototype.togglePause=function(){return this.paused=!this.paused,this.refreshPaused(),this._paused},e.prototype.decode=function(t,e){var n=function(t){e(new Error(t.message||"Unable to decode file"))},o=this._offlineCtx.decodeAudioData(t,(function(t){e(null,t)}),n);o&&o.catch(n)},e}(O),E=function(){function t(){this.init()}return t.prototype.init=function(){return this.supported&&(this._webAudioContext=new C),this._htmlAudioContext=new F,this._sounds={},this.useLegacy=!this.supported,this},Object.defineProperty(t.prototype,"context",{get:function(){return this._context},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filtersAll",{get:function(){return this.useLegacy?[]:this._context.filters},set:function(t){this.useLegacy||(this._context.filters=t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"supported",{get:function(){return null!==C.AudioContext},enumerable:!1,configurable:!0}),t.prototype.add=function(t,e){if("object"==typeof t){var n={};for(var o in t){var i=this._getOptions(t[o],e);n[o]=this.add(o,i)}return n}if(e instanceof A)return this._sounds[t]=e,e;var r=this._getOptions(e),s=A.from(r);return this._sounds[t]=s,s},t.prototype._getOptions=function(t,e){var n;return n="string"==typeof t?{url:t}:t instanceof ArrayBuffer||t instanceof HTMLAudioElement?{source:t}:t,n=c(c({},n),e||{})},Object.defineProperty(t.prototype,"useLegacy",{get:function(){return this._useLegacy},set:function(t){_.setLegacy(t),this._useLegacy=t,this._context=!t&&this.supported?this._webAudioContext:this._htmlAudioContext},enumerable:!1,configurable:!0}),t.prototype.remove=function(t){return this.exists(t,!0),this._sounds[t].destroy(),delete this._sounds[t],this},Object.defineProperty(t.prototype,"volumeAll",{get:function(){return this._context.volume},set:function(t){this._context.volume=t,this._context.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"speedAll",{get:function(){return this._context.speed},set:function(t){this._context.speed=t,this._context.refresh()},enumerable:!1,configurable:!0}),t.prototype.togglePauseAll=function(){return this._context.togglePause()},t.prototype.pauseAll=function(){return this._context.paused=!0,this._context.refreshPaused(),this},t.prototype.resumeAll=function(){return this._context.paused=!1,this._context.refreshPaused(),this},t.prototype.toggleMuteAll=function(){return this._context.toggleMute()},t.prototype.muteAll=function(){return this._context.muted=!0,this._context.refresh(),this},t.prototype.unmuteAll=function(){return this._context.muted=!1,this._context.refresh(),this},t.prototype.removeAll=function(){for(var t in this._sounds)this._sounds[t].destroy(),delete this._sounds[t];return this},t.prototype.stopAll=function(){for(var t in this._sounds)this._sounds[t].stop();return this},t.prototype.exists=function(t,e){return void 0===e&&(e=!1),!!this._sounds[t]},t.prototype.find=function(t){return this.exists(t,!0),this._sounds[t]},t.prototype.play=function(t,e){return this.find(t).play(e)},t.prototype.stop=function(t){return this.find(t).stop()},t.prototype.pause=function(t){return this.find(t).pause()},t.prototype.resume=function(t){return this.find(t).resume()},t.prototype.volume=function(t,e){var n=this.find(t);return void 0!==e&&(n.volume=e),n.volume},t.prototype.speed=function(t,e){var n=this.find(t);return void 0!==e&&(n.speed=e),n.speed},t.prototype.duration=function(t){return this.find(t).duration},t.prototype.close=function(){return this.removeAll(),this._sounds=null,this._webAudioContext&&(this._webAudioContext.destroy(),this._webAudioContext=null),this._htmlAudioContext&&(this._htmlAudioContext.destroy(),this._htmlAudioContext=null),this._context=null,this},t}(),L={HTMLAudioContext:F,HTMLAudioMedia:b,HTMLAudioInstance:m},S=function(){function t(t,e){this.init(t,e)}return t.prototype.init=function(t,e){this.destination=t,this.source=e||t},t.prototype.connect=function(t){this.source.connect(t)},t.prototype.disconnect=function(){this.source.disconnect()},t.prototype.destroy=function(){this.disconnect(),this.destination=null,this.source=null},t}(),k={Filter:S,EqualizerFilter:function(t){function e(n,o,i,r,u,a,c,p,h,l){void 0===n&&(n=0),void 0===o&&(o=0),void 0===i&&(i=0),void 0===r&&(r=0),void 0===u&&(u=0),void 0===a&&(a=0),void 0===c&&(c=0),void 0===p&&(p=0),void 0===h&&(h=0),void 0===l&&(l=0);var f=this;if(!s().useLegacy){var d=[{f:e.F32,type:"lowshelf",gain:n},{f:e.F64,type:"peaking",gain:o},{f:e.F125,type:"peaking",gain:i},{f:e.F250,type:"peaking",gain:r},{f:e.F500,type:"peaking",gain:u},{f:e.F1K,type:"peaking",gain:a},{f:e.F2K,type:"peaking",gain:c},{f:e.F4K,type:"peaking",gain:p},{f:e.F8K,type:"peaking",gain:h},{f:e.F16K,type:"highshelf",gain:l}].map((function(t){var e=s().context.audioContext.createBiquadFilter();return e.type=t.type,v.setParamValue(e.Q,1),e.frequency.value=t.f,v.setParamValue(e.gain,t.gain),e}));(f=t.call(this,d[0],d[d.length-1])||this).bands=d,f.bandsMap={};for(var _=0;_<f.bands.length;_++){var y=f.bands[_];_>0&&f.bands[_-1].connect(y),f.bandsMap[y.frequency.value]=y}return f}f=t.call(this,null)||this}return a(e,t),e.prototype.setGain=function(t,e){if(void 0===e&&(e=0),!this.bandsMap[t])throw new Error("No band found for frequency "+t);v.setParamValue(this.bandsMap[t].gain,e)},e.prototype.getGain=function(t){if(!this.bandsMap[t])throw new Error("No band found for frequency "+t);return this.bandsMap[t].gain.value},Object.defineProperty(e.prototype,"f32",{get:function(){return this.getGain(e.F32)},set:function(t){this.setGain(e.F32,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f64",{get:function(){return this.getGain(e.F64)},set:function(t){this.setGain(e.F64,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f125",{get:function(){return this.getGain(e.F125)},set:function(t){this.setGain(e.F125,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f250",{get:function(){return this.getGain(e.F250)},set:function(t){this.setGain(e.F250,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f500",{get:function(){return this.getGain(e.F500)},set:function(t){this.setGain(e.F500,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f1k",{get:function(){return this.getGain(e.F1K)},set:function(t){this.setGain(e.F1K,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f2k",{get:function(){return this.getGain(e.F2K)},set:function(t){this.setGain(e.F2K,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f4k",{get:function(){return this.getGain(e.F4K)},set:function(t){this.setGain(e.F4K,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f8k",{get:function(){return this.getGain(e.F8K)},set:function(t){this.setGain(e.F8K,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f16k",{get:function(){return this.getGain(e.F16K)},set:function(t){this.setGain(e.F16K,t)},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this.bands.forEach((function(t){v.setParamValue(t.gain,0)}))},e.prototype.destroy=function(){this.bands.forEach((function(t){t.disconnect()})),this.bands=null,this.bandsMap=null},e.F32=32,e.F64=64,e.F125=125,e.F250=250,e.F500=500,e.F1K=1e3,e.F2K=2e3,e.F4K=4e3,e.F8K=8e3,e.F16K=16e3,e}(S),DistortionFilter:function(t){function e(e){void 0===e&&(e=0);var n=this;if(!s().useLegacy){var o=s().context.audioContext.createWaveShaper();return(n=t.call(this,o)||this)._distortion=o,n.amount=e,n}n=t.call(this,null)||this}return a(e,t),Object.defineProperty(e.prototype,"amount",{get:function(){return this._amount},set:function(t){t*=1e3,this._amount=t;for(var e,n=44100,o=new Float32Array(n),i=Math.PI/180,r=0;r<n;++r)e=2*r/n-1,o[r]=(3+t)*e*20*i/(Math.PI+t*Math.abs(e));this._distortion.curve=o,this._distortion.oversample="4x"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this._distortion=null,t.prototype.destroy.call(this)},e}(S),StereoFilter:function(t){function e(e){void 0===e&&(e=0);var n=this;if(!s().useLegacy){var o,i,r,u=s().context.audioContext;return u.createStereoPanner?r=o=u.createStereoPanner():((i=u.createPanner()).panningModel="equalpower",r=i),(n=t.call(this,r)||this)._stereo=o,n._panner=i,n.pan=e,n}n=t.call(this,null)||this}return a(e,t),Object.defineProperty(e.prototype,"pan",{get:function(){return this._pan},set:function(t){this._pan=t,this._stereo?v.setParamValue(this._stereo.pan,t):this._panner.setPosition(t,0,1-Math.abs(t))},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this._stereo=null,this._panner=null},e}(S),ReverbFilter:function(t){function e(e,n,o){void 0===e&&(e=3),void 0===n&&(n=2),void 0===o&&(o=!1);var i=this;if(!s().useLegacy)return(i=t.call(this,null)||this)._seconds=i._clamp(e,1,50),i._decay=i._clamp(n,0,100),i._reverse=o,i._rebuild(),i;i=t.call(this,null)||this}return a(e,t),e.prototype._clamp=function(t,e,n){return Math.min(n,Math.max(e,t))},Object.defineProperty(e.prototype,"seconds",{get:function(){return this._seconds},set:function(t){this._seconds=this._clamp(t,1,50),this._rebuild()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"decay",{get:function(){return this._decay},set:function(t){this._decay=this._clamp(t,0,100),this._rebuild()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"reverse",{get:function(){return this._reverse},set:function(t){this._reverse=t,this._rebuild()},enumerable:!1,configurable:!0}),e.prototype._rebuild=function(){for(var t,e=s().context.audioContext,n=e.sampleRate,o=n*this._seconds,i=e.createBuffer(2,o,n),r=i.getChannelData(0),u=i.getChannelData(1),a=0;a<o;a++)t=this._reverse?o-a:a,r[a]=(2*Math.random()-1)*Math.pow(1-t/o,this._decay),u[a]=(2*Math.random()-1)*Math.pow(1-t/o,this._decay);var c=s().context.audioContext.createConvolver();c.buffer=i,this.init(c)},e}(S),MonoFilter:function(t){function e(){var e=this;if(!s().useLegacy){var n=s().context.audioContext,o=n.createChannelSplitter(),i=n.createChannelMerger();return i.connect(o),(e=t.call(this,i,o)||this)._merger=i,e}e=t.call(this,null)||this}return a(e,t),e.prototype.destroy=function(){this._merger.disconnect(),this._merger=null,t.prototype.destroy.call(this)},e}(S),TelephoneFilter:function(t){function e(){if(!s().useLegacy){var e=s().context.audioContext,n=e.createBiquadFilter(),o=e.createBiquadFilter(),i=e.createBiquadFilter(),r=e.createBiquadFilter();return n.type="lowpass",v.setParamValue(n.frequency,2e3),o.type="lowpass",v.setParamValue(o.frequency,2e3),i.type="highpass",v.setParamValue(i.frequency,500),r.type="highpass",v.setParamValue(r.frequency,500),n.connect(o),o.connect(i),i.connect(r),t.call(this,n,r)||this}t.call(this,null)}return a(e,t),e}(S)},M={WebAudioMedia:w,WebAudioInstance:x,WebAudioNodes:j,WebAudioContext:C,WebAudioUtils:v},T=0;var G={playOnce:function(t,e){var n="alias"+T++;return s().add(n,{url:t,preload:!0,autoPlay:!0,loaded:function(t){t&&(s().remove(n),e&&e(t))},complete:function(){s().remove(n),e&&e(null)}}),n},render:function(t,e){var n=document.createElement("canvas");e=c({width:512,height:128,fill:"black"},e||{}),n.width=e.width,n.height=e.height;var o=_pixi_core__WEBPACK_IMPORTED_MODULE_3__.BaseTexture.from(n);if(!(t.media instanceof w))return o;var r=t.media,s=n.getContext("2d");s.fillStyle=e.fill;for(var u=r.buffer.getChannelData(0),a=Math.ceil(u.length/e.width),p=e.height/2,h=0;h<e.width;h++){for(var l=1,f=-1,d=0;d<a;d++){var _=u[h*a+d];_<l&&(l=_),_>f&&(f=_)}s.fillRect(h,(1+l)*p,1,Math.max(1,(f-l)*p))}return o},resolveUrl:d,sineTone:function(t,e){void 0===t&&(t=200),void 0===e&&(e=1);var n=A.from({singleInstance:!0});if(!(n.media instanceof w))return n;for(var o=n.media,i=n.context.audioContext.createBuffer(1,48e3*e,48e3),r=i.getChannelData(0),s=0;s<r.length;s++){var u=t*(s/i.sampleRate)*Math.PI;r[s]=2*Math.sin(u)}return o.buffer=i,n.isLoaded=!0,n},supported:h,extensions:p,validateFormats:l},I=function(t){return r=t,t}(new E);_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.Loader.registerPlugin(_);
35071
+ var r;function s(){return r}var u=function(t,e){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var c=function(){return(c=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},l=["mp3","ogg","oga","opus","mpeg","wav","m4a","aiff","wma","mid","caf"],p={};function h(t){var e=c({m4a:"audio/mp4",oga:"audio/ogg",opus:'audio/ogg; codecs="opus"',caf:'audio/x-caf; codecs="opus"'},t||{}),n=document.createElement("audio"),o={},i=/^no$/;l.forEach((function(t){var r=n.canPlayType("audio/".concat(t)).replace(i,""),s=e[t]?n.canPlayType(e[t]).replace(i,""):"";o[t]=!!r||!!s})),Object.assign(p,o)}h();var f=/\.(\{([^\}]+)\})(\?.*)?$/;function d(t){var e=f,n="string"==typeof t?t:t.url;if(!e.test(n))return n;for(var o=e.exec(n),i=o[2].split(","),r=i[i.length-1],s=0,u=i.length;s<u;s++){var a=i[s];if(p[a]){r=a;break}}var c=n.replace(o[1],r);if("string"!=typeof t){var l=t;l.extension=r,l.url=c}return c}var _=function(){function e(){}return e.add=function(){e.setLegacy(s().useLegacy)},e.setLegacy=function(e){var n=l;e?n.forEach((function(e){_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.setExtensionXhrType(e,_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.XHR_RESPONSE_TYPE.DEFAULT),_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.setExtensionLoadType(e,_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.LOAD_TYPE.AUDIO)})):n.forEach((function(e){_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.setExtensionXhrType(e,_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.XHR_RESPONSE_TYPE.BUFFER),_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.setExtensionLoadType(e,_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.LOAD_TYPE.XHR)}))},e.pre=function(t,e){d(t),e()},e.use=function(t,e){t.data&&l.indexOf(t.extension)>-1?t.sound=s().add(t.name,{loaded:e,preload:!0,url:t.url,source:t.data}):e()},e}(),y=0,m=function(t){function e(e){var n=t.call(this)||this;return n.id=y++,n.init(e),n}return a(e,t),e.prototype.set=function(t,e){if(void 0===this[t])throw new Error("Property with name ".concat(t," does not exist."));switch(t){case"speed":this.speed=e;break;case"volume":this.volume=e;break;case"paused":this.paused=e;break;case"loop":this.loop=e;break;case"muted":this.muted=e}return this},Object.defineProperty(e.prototype,"progress",{get:function(){return this._source.currentTime/this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this._paused},set:function(t){this._paused=t,this.refreshPaused()},enumerable:!1,configurable:!0}),e.prototype._onPlay=function(){this._playing=!0},e.prototype._onPause=function(){this._playing=!1},e.prototype.init=function(t){this._playing=!1,this._duration=t.source.duration;var e=this._source=t.source.cloneNode(!1);e.src=t.parent.url,e.onplay=this._onPlay.bind(this),e.onpause=this._onPause.bind(this),t.context.on("refresh",this.refresh,this),t.context.on("refreshPaused",this.refreshPaused,this),this._media=t},e.prototype._internalStop=function(){this._source&&this._playing&&(this._source.onended=null,this._source.pause())},e.prototype.stop=function(){this._internalStop(),this._source&&this.emit("stop")},Object.defineProperty(e.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this._volume},set:function(t){this._volume=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loop",{get:function(){return this._loop},set:function(t){this._loop=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"muted",{get:function(){return this._muted},set:function(t){this._muted=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"filters",{get:function(){return null},set:function(t){},enumerable:!1,configurable:!0}),e.prototype.refresh=function(){var t=this._media.context,e=this._media.parent;this._source.loop=this._loop||e.loop;var n=t.volume*(t.muted?0:1),o=e.volume*(e.muted?0:1),i=this._volume*(this._muted?0:1);this._source.volume=i*n*o,this._source.playbackRate=this._speed*t.speed*e.speed},e.prototype.refreshPaused=function(){var t=this._media.context,e=this._media.parent,n=this._paused||e.paused||t.paused;n!==this._pausedReal&&(this._pausedReal=n,n?(this._internalStop(),this.emit("paused")):(this.emit("resumed"),this.play({start:this._source.currentTime,end:this._end,volume:this._volume,speed:this._speed,loop:this._loop})),this.emit("pause",n))},e.prototype.play=function(t){var n=this,i=t.start,r=t.end,s=t.speed,u=t.loop,a=t.volume,c=t.muted;this._speed=s,this._volume=a,this._loop=!!u,this._muted=c,this.refresh(),this.loop&&null!==r&&(this.loop=!1),this._start=i,this._end=r||this._duration,this._start=Math.max(0,this._start-e.PADDING),this._end=Math.min(this._end+e.PADDING,this._duration),this._source.onloadedmetadata=function(){n._source&&(n._source.currentTime=i,n._source.onloadedmetadata=null,n.emit("progress",i,n._duration),_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.add(n._onUpdate,n))},this._source.onended=this._onComplete.bind(this),this._source.play(),this.emit("start")},e.prototype._onUpdate=function(){this.emit("progress",this.progress,this._duration),this._source.currentTime>=this._end&&!this._source.loop&&this._onComplete()},e.prototype._onComplete=function(){_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.remove(this._onUpdate,this),this._internalStop(),this.emit("progress",1,this._duration),this.emit("end",this)},e.prototype.destroy=function(){_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.remove(this._onUpdate,this),this.removeAllListeners();var t=this._source;t&&(t.onended=null,t.onplay=null,t.onpause=null,this._internalStop()),this._source=null,this._speed=1,this._volume=1,this._loop=!1,this._end=null,this._start=0,this._duration=0,this._playing=!1,this._pausedReal=!1,this._paused=!1,this._muted=!1,this._media&&(this._media.context.off("refresh",this.refresh,this),this._media.context.off("refreshPaused",this.refreshPaused,this),this._media=null)},e.prototype.toString=function(){return"[HTMLAudioInstance id=".concat(this.id,"]")},e.PADDING=.1,e}(_pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.init=function(t){this.parent=t,this._source=t.options.source||new Audio,t.url&&(this._source.src=t.url)},e.prototype.create=function(){return new m(this)},Object.defineProperty(e.prototype,"isPlayable",{get:function(){return!!this._source&&4===this._source.readyState},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this._source.duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this.parent.context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"filters",{get:function(){return null},set:function(t){},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this.removeAllListeners(),this.parent=null,this._source&&(this._source.src="",this._source.load(),this._source=null)},Object.defineProperty(e.prototype,"source",{get:function(){return this._source},enumerable:!1,configurable:!0}),e.prototype.load=function(t){var e=this._source,n=this.parent;if(4!==e.readyState)if(n.url){e.src=n.url;var o=function(){s(),n.isLoaded=!0;var e=n.autoPlayStart();t&&t(null,n,e)},i=function(){s(),t&&t(new Error("Sound loading has been aborted"))},r=function(){s();var n="Failed to load audio element (code: ".concat(e.error.code,")");t&&t(new Error(n))},s=function(){e.removeEventListener("canplaythrough",o),e.removeEventListener("load",o),e.removeEventListener("abort",i),e.removeEventListener("error",r)};e.addEventListener("canplaythrough",o,!1),e.addEventListener("load",o,!1),e.addEventListener("abort",i,!1),e.addEventListener("error",r,!1),e.load()}else t(new Error("sound.url or sound.source must be set"));else{n.isLoaded=!0;var u=n.autoPlayStart();t&&setTimeout((function(){t(null,n,u)}),0)}},e}(_pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),b=function(){function t(t,e){this.parent=t,Object.assign(this,e),this.duration=this.end-this.start}return t.prototype.play=function(t){return this.parent.play({complete:t,speed:this.speed||this.parent.speed,end:this.end,start:this.start,loop:this.loop})},t.prototype.destroy=function(){this.parent=null},t}(),v=function(){function t(){}return t.setParamValue=function(t,e){if(t.setValueAtTime){var n=s().context;t.setValueAtTime(e,n.audioContext.currentTime)}else t.value=e;return e},t}(),P=0,x=function(t){function e(e){var n=t.call(this)||this;return n.id=P++,n._media=null,n._paused=!1,n._muted=!1,n._elapsed=0,n.init(e),n}return a(e,t),e.prototype.set=function(t,e){if(void 0===this[t])throw new Error("Property with name ".concat(t," does not exist."));switch(t){case"speed":this.speed=e;break;case"volume":this.volume=e;break;case"muted":this.muted=e;break;case"loop":this.loop=e;break;case"paused":this.paused=e}return this},e.prototype.stop=function(){this._source&&(this._internalStop(),this.emit("stop"))},Object.defineProperty(e.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t,this.refresh(),this._update(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this._volume},set:function(t){this._volume=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"muted",{get:function(){return this._muted},set:function(t){this._muted=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loop",{get:function(){return this._loop},set:function(t){this._loop=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"filters",{get:function(){return this._filters},set:function(t){var e;this._filters&&(null===(e=this._filters)||void 0===e||e.filter((function(t){return t})).forEach((function(t){return t.disconnect()})),this._filters=null,this._source.connect(this._gain)),this._filters=(null==t?void 0:t.length)?t.slice(0):null,this.refresh()},enumerable:!1,configurable:!0}),e.prototype.refresh=function(){if(this._source){var t=this._media.context,e=this._media.parent;this._source.loop=this._loop||e.loop;var n=t.volume*(t.muted?0:1),o=e.volume*(e.muted?0:1),i=this._volume*(this._muted?0:1);v.setParamValue(this._gain.gain,i*o*n),v.setParamValue(this._source.playbackRate,this._speed*e.speed*t.speed),this.applyFilters()}},e.prototype.applyFilters=function(){var t;if(null===(t=this._filters)||void 0===t?void 0:t.length){this._source.disconnect();var e=this._source;this._filters.forEach((function(t){e.connect(t.destination),e=t})),e.connect(this._gain)}},e.prototype.refreshPaused=function(){var t=this._media.context,e=this._media.parent,n=this._paused||e.paused||t.paused;n!==this._pausedReal&&(this._pausedReal=n,n?(this._internalStop(),this.emit("paused")):(this.emit("resumed"),this.play({start:this._elapsed%this._duration,end:this._end,speed:this._speed,loop:this._loop,volume:this._volume})),this.emit("pause",n))},e.prototype.play=function(t){var e=t.start,n=t.end,o=t.speed,i=t.loop,r=t.volume,s=t.muted,u=t.filters;this._paused=!1;var a=this._media.nodes.cloneBufferSource(),c=a.source,l=a.gain;this._source=c,this._gain=l,this._speed=o,this._volume=r,this._loop=!!i,this._muted=s,this._filters=u,this.refresh();var p=this._source.buffer.duration;this._duration=p,this._end=n,this._lastUpdate=this._now(),this._elapsed=e,this._source.onended=this._onComplete.bind(this),this._loop?(this._source.loopEnd=n,this._source.loopStart=e,this._source.start(0,e)):n?this._source.start(0,e,n-e):this._source.start(0,e),this.emit("start"),this._update(!0),this.enableTicker(!0)},e.prototype.enableTicker=function(t){_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.remove(this._updateListener,this),t&&_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.add(this._updateListener,this)},Object.defineProperty(e.prototype,"progress",{get:function(){return this._progress},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this._paused},set:function(t){this._paused=t,this.refreshPaused()},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){var t;this.removeAllListeners(),this._internalStop(),this._gain&&(this._gain.disconnect(),this._gain=null),this._media&&(this._media.context.events.off("refresh",this.refresh,this),this._media.context.events.off("refreshPaused",this.refreshPaused,this),this._media=null),null===(t=this._filters)||void 0===t||t.forEach((function(t){return t.disconnect()})),this._filters=null,this._end=null,this._speed=1,this._volume=1,this._loop=!1,this._elapsed=0,this._duration=0,this._paused=!1,this._muted=!1,this._pausedReal=!1},e.prototype.toString=function(){return"[WebAudioInstance id=".concat(this.id,"]")},e.prototype._now=function(){return this._media.context.audioContext.currentTime},e.prototype._updateListener=function(){this._update()},e.prototype._update=function(t){if(void 0===t&&(t=!1),this._source){var e=this._now(),n=e-this._lastUpdate;if(n>0||t){var o=this._source.playbackRate.value;this._elapsed+=n*o,this._lastUpdate=e;var i=this._duration,r=void 0;if(this._source.loopStart){var s=this._source.loopEnd-this._source.loopStart;r=(this._source.loopStart+this._elapsed%s)/i}else r=this._elapsed%i/i;this._progress=r,this.emit("progress",this._progress,i)}}},e.prototype.init=function(t){this._media=t,t.context.events.on("refresh",this.refresh,this),t.context.events.on("refreshPaused",this.refreshPaused,this)},e.prototype._internalStop=function(){if(this._source){this.enableTicker(!1),this._source.onended=null,this._source.stop(0),this._source.disconnect();try{this._source.buffer=null}catch(t){}this._source=null}},e.prototype._onComplete=function(){if(this._source){this.enableTicker(!1),this._source.onended=null,this._source.disconnect();try{this._source.buffer=null}catch(t){}}this._source=null,this._progress=1,this.emit("progress",1,this._duration),this.emit("end",this)},e}(_pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),O=function(){function t(t,e){this._output=e,this._input=t}return Object.defineProperty(t.prototype,"destination",{get:function(){return this._input},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filters",{get:function(){return this._filters},set:function(t){var e=this;if(this._filters&&(this._filters.forEach((function(t){t&&t.disconnect()})),this._filters=null,this._input.connect(this._output)),t&&t.length){this._filters=t.slice(0),this._input.disconnect();var n=null;t.forEach((function(t){null===n?e._input.connect(t.destination):n.connect(t.destination),n=t})),n.connect(this._output)}},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){this.filters=null,this._input=null,this._output=null},t}(),j=function(t){function e(e){var n=this,o=e.audioContext,i=o.createBufferSource(),r=o.createGain(),s=o.createAnalyser();return i.connect(s),s.connect(r),r.connect(e.destination),(n=t.call(this,s,r)||this).context=e,n.bufferSource=i,n.gain=r,n.analyser=s,n}return a(e,t),Object.defineProperty(e.prototype,"script",{get:function(){return this._script||(this._script=this.context.audioContext.createScriptProcessor(e.BUFFER_SIZE),this._script.connect(this.context.destination)),this._script},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.bufferSource.disconnect(),this._script&&this._script.disconnect(),this.gain.disconnect(),this.analyser.disconnect(),this.bufferSource=null,this._script=null,this.gain=null,this.analyser=null,this.context=null},e.prototype.cloneBufferSource=function(){var t=this.bufferSource,e=this.context.audioContext.createBufferSource();e.buffer=t.buffer,v.setParamValue(e.playbackRate,t.playbackRate.value),e.loop=t.loop;var n=this.context.audioContext.createGain();return e.connect(n),n.connect(this.destination),{source:e,gain:n}},Object.defineProperty(e.prototype,"bufferSize",{get:function(){return this.script.bufferSize},enumerable:!1,configurable:!0}),e.BUFFER_SIZE=0,e}(O),w=function(){function t(){}return t.prototype.init=function(t){this.parent=t,this._nodes=new j(this.context),this._source=this._nodes.bufferSource,this.source=t.options.source},t.prototype.destroy=function(){this.parent=null,this._nodes.destroy(),this._nodes=null;try{this._source.buffer=null}catch(t){}this._source=null,this.source=null},t.prototype.create=function(){return new x(this)},Object.defineProperty(t.prototype,"context",{get:function(){return this.parent.context},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPlayable",{get:function(){return!!this._source&&!!this._source.buffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filters",{get:function(){return this._nodes.filters},set:function(t){this._nodes.filters=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){return this._source.buffer.duration},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"buffer",{get:function(){return this._source.buffer},set:function(t){this._source.buffer=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nodes",{get:function(){return this._nodes},enumerable:!1,configurable:!0}),t.prototype.load=function(t){this.source?this._decode(this.source,t):this.parent.url?this._loadUrl(t):t&&t(new Error("sound.url or sound.source must be set"))},t.prototype._loadUrl=function(t){var e=this,n=new XMLHttpRequest,o=this.parent.url;n.open("GET",o,!0),n.responseType="arraybuffer",n.onload=function(){e.source=n.response,e._decode(n.response,t)},n.send()},t.prototype._decode=function(t,e){var n=this,o=function(t,o){if(t)e&&e(t);else{n.parent.isLoaded=!0,n.buffer=o;var i=n.parent.autoPlayStart();e&&e(null,n.parent,i)}};t instanceof AudioBuffer?o(null,t):this.parent.context.decode(t,o)},t}(),A=function(){function t(t,e){this.media=t,this.options=e,this._instances=[],this._sprites={},this.media.init(this);var n=e.complete;this._autoPlayOptions=n?{complete:n}:null,this.isLoaded=!1,this.isPlaying=!1,this.autoPlay=e.autoPlay,this.singleInstance=e.singleInstance,this.preload=e.preload||this.autoPlay,this.url=e.url,this.speed=e.speed,this.volume=e.volume,this.loop=e.loop,e.sprites&&this.addSprites(e.sprites),this.preload&&this._preload(e.loaded)}return t.from=function(e){var n={};return"string"==typeof e?n.url=e:e instanceof ArrayBuffer||e instanceof AudioBuffer||e instanceof HTMLAudioElement?n.source=e:n=e,(n=c({autoPlay:!1,singleInstance:!1,url:null,source:null,preload:!1,volume:1,speed:1,complete:null,loaded:null,loop:!1},n)).url&&(n.url=d(n.url)),Object.freeze(n),new t(s().useLegacy?new g:new w,n)},Object.defineProperty(t.prototype,"context",{get:function(){return s().context},enumerable:!1,configurable:!0}),t.prototype.pause=function(){return this.isPlaying=!1,this.paused=!0,this},t.prototype.resume=function(){return this.isPlaying=this._instances.length>0,this.paused=!1,this},Object.defineProperty(t.prototype,"paused",{get:function(){return this._paused},set:function(t){this._paused=t,this.refreshPaused()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filters",{get:function(){return this.media.filters},set:function(t){this.media.filters=t},enumerable:!1,configurable:!0}),t.prototype.addSprites=function(t,e){if("object"==typeof t){var n={};for(var o in t)n[o]=this.addSprites(o,t[o]);return n}var i=new b(this,e);return this._sprites[t]=i,i},t.prototype.destroy=function(){this._removeInstances(),this.removeSprites(),this.media.destroy(),this.media=null,this._sprites=null,this._instances=null},t.prototype.removeSprites=function(t){if(t){var e=this._sprites[t];void 0!==e&&(e.destroy(),delete this._sprites[t])}else for(var n in this._sprites)this.removeSprites(n);return this},Object.defineProperty(t.prototype,"isPlayable",{get:function(){return this.isLoaded&&this.media&&this.media.isPlayable},enumerable:!1,configurable:!0}),t.prototype.stop=function(){if(!this.isPlayable)return this.autoPlay=!1,this._autoPlayOptions=null,this;this.isPlaying=!1;for(var t=this._instances.length-1;t>=0;t--)this._instances[t].stop();return this},t.prototype.play=function(t,e){var n,o=this;"string"==typeof t?n={sprite:r=t,loop:this.loop,complete:e}:"function"==typeof t?(n={}).complete=t:n=t;if((n=c({complete:null,loaded:null,sprite:null,end:null,start:0,volume:1,speed:1,muted:!1,loop:!1},n||{})).sprite){var i=n.sprite,r=this._sprites[i];n.start=r.start+(n.start||0),n.end=r.end,n.speed=r.speed||1,n.loop=r.loop||n.loop,delete n.sprite}if(n.offset&&(n.start=n.offset),!this.isLoaded)return new Promise((function(t,e){o.autoPlay=!0,o._autoPlayOptions=n,o._preload((function(o,i,r){o?e(o):(n.loaded&&n.loaded(o,i,r),t(r))}))}));(this.singleInstance||n.singleInstance)&&this._removeInstances();var s=this._createInstance();return this._instances.push(s),this.isPlaying=!0,s.once("end",(function(){n.complete&&n.complete(o),o._onComplete(s)})),s.once("stop",(function(){o._onComplete(s)})),s.play(n),s},t.prototype.refresh=function(){for(var t=this._instances.length,e=0;e<t;e++)this._instances[e].refresh()},t.prototype.refreshPaused=function(){for(var t=this._instances.length,e=0;e<t;e++)this._instances[e].refreshPaused()},Object.defineProperty(t.prototype,"volume",{get:function(){return this._volume},set:function(t){this._volume=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"muted",{get:function(){return this._muted},set:function(t){this._muted=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loop",{get:function(){return this._loop},set:function(t){this._loop=t,this.refresh()},enumerable:!1,configurable:!0}),t.prototype._preload=function(t){this.media.load(t)},Object.defineProperty(t.prototype,"instances",{get:function(){return this._instances},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sprites",{get:function(){return this._sprites},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){return this.media.duration},enumerable:!1,configurable:!0}),t.prototype.autoPlayStart=function(){var t;return this.autoPlay&&(t=this.play(this._autoPlayOptions)),t},t.prototype._removeInstances=function(){for(var t=this._instances.length-1;t>=0;t--)this._poolInstance(this._instances[t]);this._instances.length=0},t.prototype._onComplete=function(t){if(this._instances){var e=this._instances.indexOf(t);e>-1&&this._instances.splice(e,1),this.isPlaying=this._instances.length>0}this._poolInstance(t)},t.prototype._createInstance=function(){if(t._pool.length>0){var e=t._pool.pop();return e.init(this.media),e}return this.media.create()},t.prototype._poolInstance=function(e){e.destroy(),t._pool.indexOf(e)<0&&t._pool.push(e)},t._pool=[],t}(),F=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.speed=1,e.muted=!1,e.volume=1,e.paused=!1,e}return a(e,t),e.prototype.refresh=function(){this.emit("refresh")},e.prototype.refreshPaused=function(){this.emit("refreshPaused")},Object.defineProperty(e.prototype,"filters",{get:function(){return null},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"audioContext",{get:function(){return null},enumerable:!1,configurable:!0}),e.prototype.toggleMute=function(){return this.muted=!this.muted,this.refresh(),this.muted},e.prototype.togglePause=function(){return this.paused=!this.paused,this.refreshPaused(),this.paused},e.prototype.destroy=function(){this.removeAllListeners()},e}(_pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),C=function(t){function e(){var o=this,i=window,r=new e.AudioContext,s=r.createDynamicsCompressor(),u=r.createAnalyser();return u.connect(s),s.connect(r.destination),(o=t.call(this,u,s)||this)._ctx=r,o._offlineCtx=new e.OfflineAudioContext(1,2,i.OfflineAudioContext?r.sampleRate:44100),o._unlocked=!1,o.compressor=s,o.analyser=u,o.events=new _pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter,o.volume=1,o.speed=1,o.muted=!1,o.paused=!1,"running"!==r.state&&(o._unlock(),o._unlock=o._unlock.bind(o),document.addEventListener("mousedown",o._unlock,!0),document.addEventListener("touchstart",o._unlock,!0),document.addEventListener("touchend",o._unlock,!0)),o}return a(e,t),e.prototype._unlock=function(){this._unlocked||(this.playEmptySound(),"running"===this._ctx.state&&(document.removeEventListener("mousedown",this._unlock,!0),document.removeEventListener("touchend",this._unlock,!0),document.removeEventListener("touchstart",this._unlock,!0),this._unlocked=!0))},e.prototype.playEmptySound=function(){var t=this._ctx.createBufferSource();t.buffer=this._ctx.createBuffer(1,1,22050),t.connect(this._ctx.destination),t.start(0,0,0),"suspended"===t.context.state&&t.context.resume()},Object.defineProperty(e,"AudioContext",{get:function(){var t=window;return t.AudioContext||t.webkitAudioContext||null},enumerable:!1,configurable:!0}),Object.defineProperty(e,"OfflineAudioContext",{get:function(){var t=window;return t.OfflineAudioContext||t.webkitOfflineAudioContext||null},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this);var e=this._ctx;void 0!==e.close&&e.close(),this.events.removeAllListeners(),this.analyser.disconnect(),this.compressor.disconnect(),this.analyser=null,this.compressor=null,this.events=null,this._offlineCtx=null,this._ctx=null},Object.defineProperty(e.prototype,"audioContext",{get:function(){return this._ctx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offlineContext",{get:function(){return this._offlineCtx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this._paused},set:function(t){t&&"running"===this._ctx.state?this._ctx.suspend():t||"suspended"!==this._ctx.state||this._ctx.resume(),this._paused=t},enumerable:!1,configurable:!0}),e.prototype.refresh=function(){this.events.emit("refresh")},e.prototype.refreshPaused=function(){this.events.emit("refreshPaused")},e.prototype.toggleMute=function(){return this.muted=!this.muted,this.refresh(),this.muted},e.prototype.togglePause=function(){return this.paused=!this.paused,this.refreshPaused(),this._paused},e.prototype.decode=function(t,e){var n=function(t){e(new Error(t.message||"Unable to decode file"))},o=this._offlineCtx.decodeAudioData(t,(function(t){e(null,t)}),n);o&&o.catch(n)},e}(O),E=function(){function t(){this.init()}return t.prototype.init=function(){return this.supported&&(this._webAudioContext=new C),this._htmlAudioContext=new F,this._sounds={},this.useLegacy=!this.supported,this},Object.defineProperty(t.prototype,"context",{get:function(){return this._context},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filtersAll",{get:function(){return this.useLegacy?[]:this._context.filters},set:function(t){this.useLegacy||(this._context.filters=t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"supported",{get:function(){return null!==C.AudioContext},enumerable:!1,configurable:!0}),t.prototype.add=function(t,e){if("object"==typeof t){var n={};for(var o in t){var i=this._getOptions(t[o],e);n[o]=this.add(o,i)}return n}if(e instanceof A)return this._sounds[t]=e,e;var r=this._getOptions(e),s=A.from(r);return this._sounds[t]=s,s},t.prototype._getOptions=function(t,e){var n;return n="string"==typeof t?{url:t}:t instanceof ArrayBuffer||t instanceof AudioBuffer||t instanceof HTMLAudioElement?{source:t}:t,n=c(c({},n),e||{})},Object.defineProperty(t.prototype,"useLegacy",{get:function(){return this._useLegacy},set:function(t){_.setLegacy(t),this._useLegacy=t,this._context=!t&&this.supported?this._webAudioContext:this._htmlAudioContext},enumerable:!1,configurable:!0}),t.prototype.remove=function(t){return this.exists(t,!0),this._sounds[t].destroy(),delete this._sounds[t],this},Object.defineProperty(t.prototype,"volumeAll",{get:function(){return this._context.volume},set:function(t){this._context.volume=t,this._context.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"speedAll",{get:function(){return this._context.speed},set:function(t){this._context.speed=t,this._context.refresh()},enumerable:!1,configurable:!0}),t.prototype.togglePauseAll=function(){return this._context.togglePause()},t.prototype.pauseAll=function(){return this._context.paused=!0,this._context.refreshPaused(),this},t.prototype.resumeAll=function(){return this._context.paused=!1,this._context.refreshPaused(),this},t.prototype.toggleMuteAll=function(){return this._context.toggleMute()},t.prototype.muteAll=function(){return this._context.muted=!0,this._context.refresh(),this},t.prototype.unmuteAll=function(){return this._context.muted=!1,this._context.refresh(),this},t.prototype.removeAll=function(){for(var t in this._sounds)this._sounds[t].destroy(),delete this._sounds[t];return this},t.prototype.stopAll=function(){for(var t in this._sounds)this._sounds[t].stop();return this},t.prototype.exists=function(t,e){return void 0===e&&(e=!1),!!this._sounds[t]},t.prototype.find=function(t){return this.exists(t,!0),this._sounds[t]},t.prototype.play=function(t,e){return this.find(t).play(e)},t.prototype.stop=function(t){return this.find(t).stop()},t.prototype.pause=function(t){return this.find(t).pause()},t.prototype.resume=function(t){return this.find(t).resume()},t.prototype.volume=function(t,e){var n=this.find(t);return void 0!==e&&(n.volume=e),n.volume},t.prototype.speed=function(t,e){var n=this.find(t);return void 0!==e&&(n.speed=e),n.speed},t.prototype.duration=function(t){return this.find(t).duration},t.prototype.close=function(){return this.removeAll(),this._sounds=null,this._webAudioContext&&(this._webAudioContext.destroy(),this._webAudioContext=null),this._htmlAudioContext&&(this._htmlAudioContext.destroy(),this._htmlAudioContext=null),this._context=null,this},t}(),L={__proto__:null,HTMLAudioMedia:g,HTMLAudioInstance:m,HTMLAudioContext:F},S=function(){function t(t,e){this.init(t,e)}return t.prototype.init=function(t,e){this.destination=t,this.source=e||t},t.prototype.connect=function(t){this.source.connect(t)},t.prototype.disconnect=function(){this.source.disconnect()},t.prototype.destroy=function(){this.disconnect(),this.destination=null,this.source=null},t}(),k={__proto__:null,Filter:S,EqualizerFilter:function(t){function e(n,o,i,r,u,a,c,l,p,h){void 0===n&&(n=0),void 0===o&&(o=0),void 0===i&&(i=0),void 0===r&&(r=0),void 0===u&&(u=0),void 0===a&&(a=0),void 0===c&&(c=0),void 0===l&&(l=0),void 0===p&&(p=0),void 0===h&&(h=0);var f=this;if(!s().useLegacy){var d=[{f:e.F32,type:"lowshelf",gain:n},{f:e.F64,type:"peaking",gain:o},{f:e.F125,type:"peaking",gain:i},{f:e.F250,type:"peaking",gain:r},{f:e.F500,type:"peaking",gain:u},{f:e.F1K,type:"peaking",gain:a},{f:e.F2K,type:"peaking",gain:c},{f:e.F4K,type:"peaking",gain:l},{f:e.F8K,type:"peaking",gain:p},{f:e.F16K,type:"highshelf",gain:h}].map((function(t){var e=s().context.audioContext.createBiquadFilter();return e.type=t.type,v.setParamValue(e.Q,1),e.frequency.value=t.f,v.setParamValue(e.gain,t.gain),e}));(f=t.call(this,d[0],d[d.length-1])||this).bands=d,f.bandsMap={};for(var _=0;_<f.bands.length;_++){var y=f.bands[_];_>0&&f.bands[_-1].connect(y),f.bandsMap[y.frequency.value]=y}return f}f=t.call(this,null)||this}return a(e,t),e.prototype.setGain=function(t,e){if(void 0===e&&(e=0),!this.bandsMap[t])throw new Error("No band found for frequency ".concat(t));v.setParamValue(this.bandsMap[t].gain,e)},e.prototype.getGain=function(t){if(!this.bandsMap[t])throw new Error("No band found for frequency ".concat(t));return this.bandsMap[t].gain.value},Object.defineProperty(e.prototype,"f32",{get:function(){return this.getGain(e.F32)},set:function(t){this.setGain(e.F32,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f64",{get:function(){return this.getGain(e.F64)},set:function(t){this.setGain(e.F64,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f125",{get:function(){return this.getGain(e.F125)},set:function(t){this.setGain(e.F125,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f250",{get:function(){return this.getGain(e.F250)},set:function(t){this.setGain(e.F250,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f500",{get:function(){return this.getGain(e.F500)},set:function(t){this.setGain(e.F500,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f1k",{get:function(){return this.getGain(e.F1K)},set:function(t){this.setGain(e.F1K,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f2k",{get:function(){return this.getGain(e.F2K)},set:function(t){this.setGain(e.F2K,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f4k",{get:function(){return this.getGain(e.F4K)},set:function(t){this.setGain(e.F4K,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f8k",{get:function(){return this.getGain(e.F8K)},set:function(t){this.setGain(e.F8K,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f16k",{get:function(){return this.getGain(e.F16K)},set:function(t){this.setGain(e.F16K,t)},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this.bands.forEach((function(t){v.setParamValue(t.gain,0)}))},e.prototype.destroy=function(){this.bands.forEach((function(t){t.disconnect()})),this.bands=null,this.bandsMap=null},e.F32=32,e.F64=64,e.F125=125,e.F250=250,e.F500=500,e.F1K=1e3,e.F2K=2e3,e.F4K=4e3,e.F8K=8e3,e.F16K=16e3,e}(S),DistortionFilter:function(t){function e(e){void 0===e&&(e=0);var n=this;if(!s().useLegacy){var o=s().context.audioContext.createWaveShaper();return(n=t.call(this,o)||this)._distortion=o,n.amount=e,n}n=t.call(this,null)||this}return a(e,t),Object.defineProperty(e.prototype,"amount",{get:function(){return this._amount},set:function(t){this._amount=t;for(var e,n=1e3*t,o=44100,i=new Float32Array(o),r=Math.PI/180,s=0;s<o;++s)e=2*s/o-1,i[s]=(3+n)*e*20*r/(Math.PI+n*Math.abs(e));this._distortion.curve=i,this._distortion.oversample="4x"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this._distortion=null,t.prototype.destroy.call(this)},e}(S),StereoFilter:function(t){function e(e){void 0===e&&(e=0);var n=this;if(!s().useLegacy){var o,i,r,u=s().context.audioContext;return u.createStereoPanner?r=o=u.createStereoPanner():((i=u.createPanner()).panningModel="equalpower",r=i),(n=t.call(this,r)||this)._stereo=o,n._panner=i,n.pan=e,n}n=t.call(this,null)||this}return a(e,t),Object.defineProperty(e.prototype,"pan",{get:function(){return this._pan},set:function(t){this._pan=t,this._stereo?v.setParamValue(this._stereo.pan,t):this._panner.setPosition(t,0,1-Math.abs(t))},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this._stereo=null,this._panner=null},e}(S),ReverbFilter:function(t){function e(e,n,o){void 0===e&&(e=3),void 0===n&&(n=2),void 0===o&&(o=!1);var i=this;if(!s().useLegacy)return(i=t.call(this,null)||this)._seconds=i._clamp(e,1,50),i._decay=i._clamp(n,0,100),i._reverse=o,i._rebuild(),i;i=t.call(this,null)||this}return a(e,t),e.prototype._clamp=function(t,e,n){return Math.min(n,Math.max(e,t))},Object.defineProperty(e.prototype,"seconds",{get:function(){return this._seconds},set:function(t){this._seconds=this._clamp(t,1,50),this._rebuild()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"decay",{get:function(){return this._decay},set:function(t){this._decay=this._clamp(t,0,100),this._rebuild()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"reverse",{get:function(){return this._reverse},set:function(t){this._reverse=t,this._rebuild()},enumerable:!1,configurable:!0}),e.prototype._rebuild=function(){for(var t,e=s().context.audioContext,n=e.sampleRate,o=n*this._seconds,i=e.createBuffer(2,o,n),r=i.getChannelData(0),u=i.getChannelData(1),a=0;a<o;a++)t=this._reverse?o-a:a,r[a]=(2*Math.random()-1)*Math.pow(1-t/o,this._decay),u[a]=(2*Math.random()-1)*Math.pow(1-t/o,this._decay);var c=s().context.audioContext.createConvolver();c.buffer=i,this.init(c)},e}(S),MonoFilter:function(t){function e(){var e=this;if(!s().useLegacy){var n=s().context.audioContext,o=n.createChannelSplitter(),i=n.createChannelMerger();return i.connect(o),(e=t.call(this,i,o)||this)._merger=i,e}e=t.call(this,null)||this}return a(e,t),e.prototype.destroy=function(){this._merger.disconnect(),this._merger=null,t.prototype.destroy.call(this)},e}(S),StreamFilter:function(t){function e(){var e=this;if(!s().useLegacy){var n=s().context.audioContext,o=n.createMediaStreamDestination(),i=n.createMediaStreamSource(o.stream);return(e=t.call(this,o,i)||this)._stream=o.stream,e}e=t.call(this,null)||this}return a(e,t),Object.defineProperty(e.prototype,"stream",{get:function(){return this._stream},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this._stream=null,t.prototype.destroy.call(this)},e}(S),TelephoneFilter:function(t){function e(){if(!s().useLegacy){var e=s().context.audioContext,n=e.createBiquadFilter(),o=e.createBiquadFilter(),i=e.createBiquadFilter(),r=e.createBiquadFilter();return n.type="lowpass",v.setParamValue(n.frequency,2e3),o.type="lowpass",v.setParamValue(o.frequency,2e3),i.type="highpass",v.setParamValue(i.frequency,500),r.type="highpass",v.setParamValue(r.frequency,500),n.connect(o),o.connect(i),i.connect(r),t.call(this,n,r)||this}t.call(this,null)}return a(e,t),e}(S)},M={__proto__:null,WebAudioMedia:w,WebAudioInstance:x,WebAudioNodes:j,WebAudioContext:C,WebAudioUtils:v},T=0;var G={__proto__:null,playOnce:function(t,e){var n="alias".concat(T++);return s().add(n,{url:t,preload:!0,autoPlay:!0,loaded:function(t){t&&(s().remove(n),e&&e(t))},complete:function(){s().remove(n),e&&e(null)}}),n},get PLAY_ID(){return T},render:function(t,e){var n=document.createElement("canvas");e=c({width:512,height:128,fill:"black"},e||{}),n.width=e.width,n.height=e.height;var o=_pixi_core__WEBPACK_IMPORTED_MODULE_3__.BaseTexture.from(n);if(!(t.media instanceof w))return o;var r=t.media,s=n.getContext("2d");s.fillStyle=e.fill;for(var u=r.buffer.getChannelData(0),a=Math.ceil(u.length/e.width),l=e.height/2,p=0;p<e.width;p++){for(var h=1,f=-1,d=0;d<a;d++){var _=u[p*a+d];_<h&&(h=_),_>f&&(f=_)}s.fillRect(p,(1+h)*l,1,Math.max(1,(f-h)*l))}return o},resolveUrl:d,sineTone:function(t,e){void 0===t&&(t=200),void 0===e&&(e=1);var n=A.from({singleInstance:!0});if(!(n.media instanceof w))return n;for(var o=n.media,i=n.context.audioContext.createBuffer(1,48e3*e,48e3),r=i.getChannelData(0),s=0;s<r.length;s++){var u=t*(s/i.sampleRate)*Math.PI;r[s]=2*Math.sin(u)}return o.buffer=i,n.isLoaded=!0,n},validateFormats:h,supported:p,extensions:l},I=function(t){return r=t,t}(new E);_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.Loader.registerPlugin(_);
35072
35072
  //# sourceMappingURL=pixi-sound.esm.js.map
35073
35073
 
35074
35074
 
@@ -47516,7 +47516,7 @@ name: moveable
47516
47516
  license: MIT
47517
47517
  author: Daybrush
47518
47518
  repository: git+https://github.com/daybrush/moveable.git
47519
- version: 0.27.2
47519
+ version: 0.27.3
47520
47520
  */
47521
47521
 
47522
47522
 
@@ -47905,9 +47905,7 @@ function (_super) {
47905
47905
 
47906
47906
  _this.tempElement = document.createElement("div");
47907
47907
 
47908
- var nextOptions = __assign({
47909
- container: parentElement || document.body
47910
- }, options);
47908
+ var nextOptions = __assign({}, options);
47911
47909
 
47912
47910
  var events = {};
47913
47911
  EVENTS.forEach(function (name) {
@@ -66721,7 +66719,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
66721
66719
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
66722
66720
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
66723
66721
  };
66724
- var _DebugMng_instances, _a, _DebugMng_scrItr, _DebugMng_hTag, _DebugMng_title, _DebugMng_spnDbg, _DebugMng_first, _DebugMng_log, _DebugMng_trace, _DebugMng_trace_beforeNew, _DebugMng_st_trace, _DebugMng_dspDbg;
66722
+ var _DebugMng_instances, _a, _DebugMng_scrItr, _DebugMng_hTag, _DebugMng_title, _DebugMng_spnDbg, _DebugMng_first, _DebugMng_log, _DebugMng_trace, _DebugMng_st_trace, _DebugMng_dspDbg;
66725
66723
  Object.defineProperty(exports, "__esModule", ({ value: true }));
66726
66724
  exports.DebugMng = void 0;
66727
66725
  const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
@@ -66750,7 +66748,30 @@ class DebugMng {
66750
66748
  destroy() {
66751
66749
  __classPrivateFieldSet(DebugMng, _a, () => false, "f", _DebugMng_title);
66752
66750
  document.body.removeChild(__classPrivateFieldGet(DebugMng, _a, "f", _DebugMng_spnDbg));
66753
- DebugMng.myTrace = __classPrivateFieldGet(DebugMng, _a, "m", _DebugMng_trace_beforeNew);
66751
+ DebugMng.myTrace = DebugMng.trace_beforeNew;
66752
+ }
66753
+ static trace_beforeNew(txt, lvl = 'E') {
66754
+ let mes = `{${lvl}} ` + txt;
66755
+ let sty = '';
66756
+ switch (lvl) {
66757
+ case 'D':
66758
+ sty = `color:#${CmnLib_1.CmnLib.isDarkMode ? '49F' : '05A'};`;
66759
+ break;
66760
+ case 'W':
66761
+ sty = 'color:#FF8800;';
66762
+ break;
66763
+ case 'F':
66764
+ sty = 'color:#BB0000;';
66765
+ break;
66766
+ case 'ET': throw mes;
66767
+ case 'E':
66768
+ console.error('%c' + mes, 'color:#FF3300;');
66769
+ return;
66770
+ default:
66771
+ sty = 'color:black;';
66772
+ mes = ' ' + mes;
66773
+ }
66774
+ console.info('%c' + mes, sty);
66754
66775
  }
66755
66776
  ;
66756
66777
  }
@@ -66767,28 +66788,6 @@ _a = DebugMng, _DebugMng_first = new WeakMap(), _DebugMng_instances = new WeakSe
66767
66788
  }, _DebugMng_trace = function _DebugMng_trace(hArg) {
66768
66789
  DebugMng.myTrace(hArg.text || `(text is ${hArg.text})`, 'I');
66769
66790
  return false;
66770
- }, _DebugMng_trace_beforeNew = function _DebugMng_trace_beforeNew(txt, lvl = 'E') {
66771
- let mes = `{${lvl}} ` + txt;
66772
- let sty = '';
66773
- switch (lvl) {
66774
- case 'D':
66775
- sty = `color:#${CmnLib_1.CmnLib.isDarkMode ? '49F' : '05A'};`;
66776
- break;
66777
- case 'W':
66778
- sty = 'color:#FF8800;';
66779
- break;
66780
- case 'F':
66781
- sty = 'color:#BB0000;';
66782
- break;
66783
- case 'ET': throw mes;
66784
- case 'E':
66785
- console.error('%c' + mes, 'color:#FF3300;');
66786
- return;
66787
- default:
66788
- sty = 'color:black;';
66789
- mes = ' ' + mes;
66790
- }
66791
- console.info('%c' + mes, sty);
66792
66791
  }, _DebugMng_st_trace = function _DebugMng_st_trace(txt, lvl = 'E') {
66793
66792
  let mes = `{${lvl}} `;
66794
66793
  if (__classPrivateFieldGet(DebugMng, _a, "f", _DebugMng_scrItr) && __classPrivateFieldGet(DebugMng, _a, "f", _DebugMng_scrItr).lineNum > 0)
@@ -66848,7 +66847,7 @@ _DebugMng_scrItr = { value: void 0 };
66848
66847
  _DebugMng_hTag = { value: void 0 };
66849
66848
  _DebugMng_title = { value: void 0 };
66850
66849
  _DebugMng_spnDbg = { value: void 0 };
66851
- DebugMng.myTrace = __classPrivateFieldGet(DebugMng, _a, "m", _DebugMng_trace_beforeNew);
66850
+ DebugMng.myTrace = DebugMng.trace_beforeNew;
66852
66851
 
66853
66852
 
66854
66853
  /***/ }),
@@ -68313,6 +68312,7 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
68313
68312
  }
68314
68313
  return false;
68315
68314
  }, _EventMng_wait = function _EventMng_wait(hArg) {
68315
+ const time = (0, CmnLib_1.argChk_Num)(hArg, 'time', NaN);
68316
68316
  if (this.scrItr.skip4page)
68317
68317
  return false;
68318
68318
  if (this.val.getVal('tmp:sn.skip.enabled')) {
@@ -68327,7 +68327,7 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
68327
68327
  tw.end();
68328
68328
  }, "f");
68329
68329
  const tw = new tween_js_1.Tween({})
68330
- .to({}, (0, CmnLib_1.uint)((0, CmnLib_1.argChk_Num)(hArg, 'time', NaN)))
68330
+ .to({}, time)
68331
68331
  .onComplete(() => {
68332
68332
  __classPrivateFieldSet(this, _EventMng_cancelWait, () => { }, "f");
68333
68333
  tw.stop();
@@ -68676,7 +68676,7 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
68676
68676
  this.val.setVal_Nochk('tmp', frmnm + '.visible', v);
68677
68677
  const win = ifrm.contentWindow;
68678
68678
  __classPrivateFieldGet(this, _FrameMng_evtMng, "f").resvFlameEvent(win);
68679
- (win.sn_repRes)?.((img) => GrpLayer_1.GrpLayer.loadPic2Img((img.dataset.src ?? '').replace(/(.+\/|\..+)/g, ''), img));
68679
+ (win.sn_repRes)?.((img) => GrpLayer_1.GrpLayer.loadPic2Img((img.dataset.src ?? ''), img));
68680
68680
  this.main.resume();
68681
68681
  };
68682
68682
  });
@@ -70419,6 +70419,9 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
70419
70419
  return __classPrivateFieldGet(this, _LayerMng_evtMng, "f").waitLimitedEvent(hArg, () => __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_finish_trans).call(this));
70420
70420
  }, _LayerMng_finish_trans = function _LayerMng_finish_trans() { __classPrivateFieldGet(this, _LayerMng_tiTrans, "f").tw?.end(); return false; }, _LayerMng_quake = function _LayerMng_quake(hArg) {
70421
70421
  __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_finish_trans).call(this);
70422
+ const time = (0, CmnLib_1.argChk_Num)(hArg, 'time', NaN);
70423
+ if (time === 0)
70424
+ return false;
70422
70425
  if (this.val.getVal('tmp:sn.skip.enabled'))
70423
70426
  return false;
70424
70427
  if (__classPrivateFieldGet(this, _LayerMng_evtMng, "f").isSkippingByKeyDown())
@@ -70447,7 +70450,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
70447
70450
  __classPrivateFieldGet(this, _LayerMng_spTransFore, "f").filters = [];
70448
70451
  const repeat = (0, CmnLib_1.argChk_Num)(hArg, 'repeat', 1);
70449
70452
  const tw = new tween_js_1.Tween(__classPrivateFieldGet(this, _LayerMng_spTransFore, "f"))
70450
- .to({ x: 0, y: 0 }, (0, CmnLib_1.argChk_Num)(hArg, 'time', NaN))
70453
+ .to({ x: 0, y: 0 }, time)
70451
70454
  .delay((0, CmnLib_1.argChk_Num)(hArg, 'delay', 0))
70452
70455
  .easing(ease)
70453
70456
  .onUpdate(() => { fncH(); fncV(); })
@@ -72737,7 +72740,11 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
72737
72740
  this.val.setVal_Nochk('save', 'const.sn.sound.' + buf + '.fn', '');
72738
72741
  }
72739
72742
  this.val.flush();
72740
- if ((0, CmnLib_1.argChk_Num)(hArg, 'time', NaN) === 0) {
72743
+ const time = (0, CmnLib_1.argChk_Num)(hArg, 'time', NaN);
72744
+ const delay = (0, CmnLib_1.argChk_Num)(hArg, 'delay', 0);
72745
+ if ((time === 0 && delay === 0)
72746
+ || this.val.getVal('tmp:sn.skip.enabled')
72747
+ || __classPrivateFieldGet(this, _SoundMng_evtMng, "f").isSkippingByKeyDown()) {
72741
72748
  oSb.snd.volume = vol;
72742
72749
  if (stop)
72743
72750
  __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopse).call(this, hArg);
@@ -72746,8 +72753,8 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
72746
72753
  const ease = CmnTween_1.CmnTween.ease(hArg.ease);
72747
72754
  const repeat = (0, CmnLib_1.argChk_Num)(hArg, 'repeat', 1);
72748
72755
  oSb.twFade = new tween_js_1.Tween({ v: oSb.snd.volume })
72749
- .to({ v: vol }, (0, CmnLib_1.argChk_Num)(hArg, 'time', NaN))
72750
- .delay((0, CmnLib_1.argChk_Num)(hArg, 'delay', 0))
72756
+ .to({ v: vol }, time)
72757
+ .delay(delay)
72751
72758
  .easing(ease)
72752
72759
  .repeat(repeat === 0 ? Infinity : (repeat - 1))
72753
72760
  .yoyo((0, CmnLib_1.argChk_Boolean)(hArg, 'yoyo', false))
@@ -73188,14 +73195,13 @@ class SysApp extends SysNode_1.SysNode {
73188
73195
  return false;
73189
73196
  };
73190
73197
  this.tgl_full_scr_sub = async () => {
73198
+ const st = this.appPixi.view.style;
73191
73199
  if (await to_app.isSimpleFullScreen()) {
73192
- await to_app.setSimpleFullScreen(false);
73193
- await to_app.win_setSize(CmnLib_1.CmnLib.stageW, CmnLib_1.CmnLib.stageH);
73194
- this.appPixi.view.style.width = CmnLib_1.CmnLib.stageW + 'px';
73195
- this.appPixi.view.style.height = CmnLib_1.CmnLib.stageH + 'px';
73196
- this.appPixi.view.style.marginLeft = '0px';
73197
- this.appPixi.view.style.marginTop = '0px';
73198
- this.window({});
73200
+ await to_app.setSimpleFullScreen(false, CmnLib_1.CmnLib.stageW, CmnLib_1.CmnLib.stageH);
73201
+ st.width = CmnLib_1.CmnLib.stageW + 'px';
73202
+ st.height = CmnLib_1.CmnLib.stageH + 'px';
73203
+ st.marginLeft = '0px';
73204
+ st.marginTop = '0px';
73199
73205
  this.reso4frame = 1;
73200
73206
  }
73201
73207
  else {
@@ -73204,16 +73210,14 @@ class SysApp extends SysNode_1.SysNode {
73204
73210
  const ratioWidth = w / CmnLib_1.CmnLib.stageW;
73205
73211
  const ratioHeight = h / CmnLib_1.CmnLib.stageH;
73206
73212
  const ratio = (ratioWidth < ratioHeight) ? ratioWidth : ratioHeight;
73207
- await to_app.win_setSize(CmnLib_1.CmnLib.stageW * ratio, CmnLib_1.CmnLib.stageH * ratio);
73208
- this.appPixi.view.style.width = (CmnLib_1.CmnLib.stageW * ratio) + 'px';
73209
- this.appPixi.view.style.height = (CmnLib_1.CmnLib.stageH * ratio) + 'px';
73213
+ await to_app.setSimpleFullScreen(true, screen.width, screen.height);
73214
+ st.width = (CmnLib_1.CmnLib.stageW * ratio) + 'px';
73215
+ st.height = (CmnLib_1.CmnLib.stageH * ratio) + 'px';
73210
73216
  if (ratioWidth < ratioHeight) {
73211
- this.appPixi.view.style.marginTop = (h - CmnLib_1.CmnLib.stageH * ratio) / 2 + 'px';
73212
- }
73213
- else {
73214
- this.appPixi.view.style.marginLeft = (w - CmnLib_1.CmnLib.stageW * ratio) / 2 + 'px';
73217
+ st.marginTop = (h - CmnLib_1.CmnLib.stageH * ratio) / 2 + 'px';
73215
73218
  }
73216
- await to_app.setSimpleFullScreen(true);
73219
+ else
73220
+ st.marginLeft = (w - CmnLib_1.CmnLib.stageW * ratio) / 2 + 'px';
73217
73221
  await to_app.win_setContentSize(screen.width, screen.height);
73218
73222
  const cr = this.appPixi.view.getBoundingClientRect();
73219
73223
  this.reso4frame = cr.width / CmnLib_1.CmnLib.stageW;
@@ -75685,14 +75689,6 @@ class Variable {
75685
75689
  const a = [];
75686
75690
  Object.keys(__classPrivateFieldGet(this, _Variable_data, "f").mark).sort().forEach(k => {
75687
75691
  const o = { ...__classPrivateFieldGet(this, _Variable_data, "f").mark[k].json };
75688
- for (const key in o) {
75689
- const v = o[key];
75690
- if (typeof v !== 'string')
75691
- continue;
75692
- if (v.slice(0, 10) !== 'userdata:/')
75693
- continue;
75694
- o[key] = cfg.searchPath(v);
75695
- }
75696
75692
  o.place = k;
75697
75693
  a.push(o);
75698
75694
  });
package/appMain.js CHANGED
@@ -17203,8 +17203,10 @@ function patch (fs) {
17203
17203
  return function (target, options) {
17204
17204
  var stats = options ? orig.call(fs, target, options)
17205
17205
  : orig.call(fs, target)
17206
- if (stats.uid < 0) stats.uid += 0x100000000
17207
- if (stats.gid < 0) stats.gid += 0x100000000
17206
+ if (stats) {
17207
+ if (stats.uid < 0) stats.uid += 0x100000000
17208
+ if (stats.gid < 0) stats.gid += 0x100000000
17209
+ }
17208
17210
  return stats;
17209
17211
  }
17210
17212
  }
@@ -23476,7 +23478,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
23476
23478
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
23477
23479
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
23478
23480
  };
23479
- var _appMain_instances, _a, _appMain_dsp, _appMain_screenRX, _appMain_screenRY, _appMain_hInfo, _appMain_isMovingWin, _appMain_posMovingWin, _appMain_delayWinPos, _appMain_window, _appMain_ins, _appMain_menu_height;
23481
+ var _appMain_instances, _a, _appMain_dsp, _appMain_screenRX, _appMain_screenRY, _appMain_hInfo, _appMain_skipDelayWinPos, _appMain_isMovingWin, _appMain_rctMovingWin, _appMain_delayWinPos, _appMain_window, _appMain_ins, _appMain_menu_height;
23480
23482
  Object.defineProperty(exports, "__esModule", ({ value: true }));
23481
23483
  exports.appMain = void 0;
23482
23484
  const electron_1 = __webpack_require__(/*! electron */ "electron");
@@ -23484,7 +23486,7 @@ const fs_extra_1 = __webpack_require__(/*! fs-extra */ "./node_modules/fs-extra/
23484
23486
  const Store = __webpack_require__(/*! electron-store */ "./node_modules/electron-store/index.js");
23485
23487
  const tar_fs_1 = __webpack_require__(/*! tar-fs */ "./node_modules/tar-fs/index.js");
23486
23488
  class appMain {
23487
- constructor(bw) {
23489
+ constructor(bw, version) {
23488
23490
  this.bw = bw;
23489
23491
  _appMain_instances.add(this);
23490
23492
  _appMain_dsp.set(this, electron_1.screen.getPrimaryDisplay());
@@ -23495,13 +23497,15 @@ class appMain {
23495
23497
  isPackaged: electron_1.app.isPackaged,
23496
23498
  downloads: electron_1.app.getPath('downloads'),
23497
23499
  userData: electron_1.app.getPath('userData'),
23498
- getVersion: String(electron_1.app.getVersion()),
23500
+ getVersion: '',
23499
23501
  env: { ...process.env },
23500
23502
  screenResolutionX: __classPrivateFieldGet(this, _appMain_screenRX, "f"),
23501
23503
  screenResolutionY: __classPrivateFieldGet(this, _appMain_screenRY, "f"),
23502
23504
  });
23505
+ _appMain_skipDelayWinPos.set(this, false);
23503
23506
  _appMain_isMovingWin.set(this, false);
23504
- _appMain_posMovingWin.set(this, [0, 0]);
23507
+ _appMain_rctMovingWin.set(this, void 0);
23508
+ __classPrivateFieldGet(this, _appMain_hInfo, "f").getVersion = version;
23505
23509
  electron_1.ipcMain.handle('getInfo', () => __classPrivateFieldGet(this, _appMain_hInfo, "f"));
23506
23510
  electron_1.ipcMain.handle('existsSync', (_, fn) => (0, fs_extra_1.existsSync)(fn));
23507
23511
  electron_1.ipcMain.handle('copySync', (_, path_from, path_to) => (0, fs_extra_1.copySync)(path_from, path_to));
@@ -23516,7 +23520,16 @@ class appMain {
23516
23520
  electron_1.ipcMain.handle('appendFile', (_, path, data, callback) => (0, fs_extra_1.appendFile)(path, data, callback));
23517
23521
  electron_1.ipcMain.handle('window', (_, centering, x, y, w, h) => __classPrivateFieldGet(this, _appMain_instances, "m", _appMain_window).call(this, centering, x, y, w, h));
23518
23522
  electron_1.ipcMain.handle('isSimpleFullScreen', () => bw.isSimpleFullScreen());
23519
- electron_1.ipcMain.handle('setSimpleFullScreen', (_, b) => bw.setSimpleFullScreen(b));
23523
+ electron_1.ipcMain.handle('setSimpleFullScreen', (_, b, w, h) => {
23524
+ bw.setSimpleFullScreen(b);
23525
+ const rct = this.bw.getBounds();
23526
+ rct.width = w;
23527
+ rct.height = h;
23528
+ __classPrivateFieldSet(this, _appMain_isMovingWin, false, "f");
23529
+ __classPrivateFieldGet(this, _appMain_instances, "m", _appMain_window).call(this, false, rct.x, rct.y, rct.width, rct.height);
23530
+ __classPrivateFieldSet(this, _appMain_rctMovingWin, rct, "f");
23531
+ __classPrivateFieldSet(this, _appMain_skipDelayWinPos, true, "f");
23532
+ });
23520
23533
  electron_1.ipcMain.handle('win_close', () => bw.close());
23521
23534
  electron_1.ipcMain.handle('win_setTitle', (_, title) => bw.setTitle(title));
23522
23535
  electron_1.ipcMain.handle('win_setContentSize', (_, w, h) => {
@@ -23546,12 +23559,12 @@ class appMain {
23546
23559
  if (__classPrivateFieldGet(this, _appMain_isMovingWin, "f"))
23547
23560
  return;
23548
23561
  __classPrivateFieldSet(this, _appMain_isMovingWin, true, "f");
23549
- __classPrivateFieldSet(this, _appMain_posMovingWin, bw.getPosition(), "f");
23562
+ __classPrivateFieldSet(this, _appMain_rctMovingWin, bw.getBounds(), "f");
23550
23563
  setTimeout(() => __classPrivateFieldGet(this, _appMain_instances, "m", _appMain_delayWinPos).call(this), 500);
23551
23564
  });
23552
23565
  }
23553
23566
  openDevTools() { this.bw.webContents.openDevTools(); }
23554
- static initRenderer(path_htm, o) {
23567
+ static initRenderer(path_htm, version, o) {
23555
23568
  let openDevTools = () => { };
23556
23569
  let bw;
23557
23570
  try {
@@ -23572,7 +23585,7 @@ class appMain {
23572
23585
  bw.setMenuBarVisibility(true);
23573
23586
  const cs_menu_h = bw.getContentSize()[1];
23574
23587
  __classPrivateFieldSet(appMain, _a, cs_no_menu_h - cs_menu_h, "f", _appMain_menu_height);
23575
- __classPrivateFieldSet(appMain, _a, new appMain(bw), "f", _appMain_ins);
23588
+ __classPrivateFieldSet(appMain, _a, new appMain(bw, version), "f", _appMain_ins);
23576
23589
  openDevTools = () => __classPrivateFieldGet(appMain, _a, "f", _appMain_ins).openDevTools();
23577
23590
  bw.loadFile(path_htm);
23578
23591
  }
@@ -23585,16 +23598,18 @@ class appMain {
23585
23598
  }
23586
23599
  }
23587
23600
  exports.appMain = appMain;
23588
- _a = appMain, _appMain_dsp = new WeakMap(), _appMain_screenRX = new WeakMap(), _appMain_screenRY = new WeakMap(), _appMain_hInfo = new WeakMap(), _appMain_isMovingWin = new WeakMap(), _appMain_posMovingWin = new WeakMap(), _appMain_instances = new WeakSet(), _appMain_delayWinPos = function _appMain_delayWinPos() {
23589
- if (this.bw.isSimpleFullScreen())
23601
+ _a = appMain, _appMain_dsp = new WeakMap(), _appMain_screenRX = new WeakMap(), _appMain_screenRY = new WeakMap(), _appMain_hInfo = new WeakMap(), _appMain_skipDelayWinPos = new WeakMap(), _appMain_isMovingWin = new WeakMap(), _appMain_rctMovingWin = new WeakMap(), _appMain_instances = new WeakSet(), _appMain_delayWinPos = function _appMain_delayWinPos() {
23602
+ const rct = this.bw.getBounds();
23603
+ if (__classPrivateFieldGet(this, _appMain_skipDelayWinPos, "f")) {
23604
+ __classPrivateFieldSet(this, _appMain_skipDelayWinPos, false, "f");
23590
23605
  return;
23591
- const p = this.bw.getPosition();
23592
- if (__classPrivateFieldGet(this, _appMain_posMovingWin, "f")[0] !== p[0] || __classPrivateFieldGet(this, _appMain_posMovingWin, "f")[1] !== p[1]) {
23593
- __classPrivateFieldSet(this, _appMain_posMovingWin, p, "f");
23606
+ }
23607
+ if (__classPrivateFieldGet(this, _appMain_rctMovingWin, "f").x !== rct.x || __classPrivateFieldGet(this, _appMain_rctMovingWin, "f").y !== rct.y) {
23608
+ __classPrivateFieldSet(this, _appMain_rctMovingWin, rct, "f");
23594
23609
  setTimeout(() => __classPrivateFieldGet(this, _appMain_instances, "m", _appMain_delayWinPos).call(this), 500);
23595
23610
  return;
23596
23611
  }
23597
- __classPrivateFieldGet(this, _appMain_instances, "m", _appMain_window).call(this, false, p[0], p[1], 0, 0);
23612
+ __classPrivateFieldGet(this, _appMain_instances, "m", _appMain_window).call(this, false, rct.x, rct.y, rct.width, rct.height);
23598
23613
  }, _appMain_window = function _appMain_window(centering, x, y, w, h) {
23599
23614
  if (__classPrivateFieldGet(this, _appMain_isMovingWin, "f"))
23600
23615
  return;
@@ -4,6 +4,6 @@ export declare class appMain {
4
4
  private readonly bw;
5
5
  private constructor();
6
6
  openDevTools(): void;
7
- static initRenderer(path_htm: string, o: object): BrowserWindow;
7
+ static initRenderer(path_htm: string, version: string, o: object): BrowserWindow;
8
8
  }
9
9
  //# sourceMappingURL=appMain.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"appMain.d.ts","sourceRoot":"","sources":["../src/appMain.ts"],"names":[],"mappings":"AAOA,OAAO,EAAc,aAAa,EAAiB,MAAM,UAAU,CAAC;AAOpE,qBAAa,OAAO;;IAgBC,OAAO,CAAC,QAAQ,CAAC,EAAE;IAAvC,OAAO;IA6FP,YAAY;IAIZ,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,aAAa;CAgD/D"}
1
+ {"version":3,"file":"appMain.d.ts","sourceRoot":"","sources":["../src/appMain.ts"],"names":[],"mappings":"AAOA,OAAO,EAAc,aAAa,EAA4B,MAAM,UAAU,CAAC;AAO/E,qBAAa,OAAO;;IAgBC,OAAO,CAAC,QAAQ,CAAC,EAAE;IAAvC,OAAO;IA0HP,YAAY;IAIZ,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,aAAa;CAgDhF"}
@@ -16,7 +16,7 @@ export declare type HPROC = {
16
16
  appendFile: (path: string, data: string, callback: (err: Error) => void) => Promise<void>;
17
17
  window: (centering: boolean, x: number, y: number, w: number, h: number) => void;
18
18
  isSimpleFullScreen: () => Promise<boolean>;
19
- setSimpleFullScreen: (b: boolean) => Promise<void>;
19
+ setSimpleFullScreen: (b: boolean, w: number, h: number) => Promise<void>;
20
20
  win_close: () => void;
21
21
  win_setTitle: (title: string) => void;
22
22
  win_setContentSize: (w: number, h: number) => Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"preload.d.ts","sourceRoot":"","sources":["../src/preload.ts"],"names":[],"mappings":";AAQA,OAAO,EAAC,WAAW,EAAE,UAAU,EAAC,MAAM,UAAU,CAAC;AACjD,OAAO,EAAC,IAAI,EAAE,OAAO,EAAC,MAAM,QAAQ,CAAC;AAErC,oBAAY,KAAK,GAAG;IACnB,OAAO,EAAI,MAAK,OAAO,CAAC,KAAK,CAAC,CAAC;IAE/B,UAAU,EAAG,CAAC,IAAI,EAAE,MAAM,KAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAC/C,QAAQ,EAAG,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAI,IAAI,CAAC;IACvD,UAAU,EAAG,CAAC,IAAI,EAAE,MAAM,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AO,CAAC,IAAI,CAAC,CAAC;IACpC,aAAa,EAAG,MAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACtC,SAAS,EAAG,MAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAE9B,UAAU,EAAI,CAAC,IAAI,EAAE,MAAM,KAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7C,aAAa,EAAG,CAAC,IAAI,EAAE,MAAM,KAAI,OAAO,CAAC,OAAO,CAAC,CAAC;CAClD,CAAC;AAEF,oBAAY,KAAK,GAAG;IACnB,UAAU,EAAG,MAAM,CAAC;IACpB,UAAU,EAAG,OAAO,CAAC;IACrB,SAAS,EAAG,MAAM,CAAC;IACnB,QAAQ,EAAG,MAAM,CAAC;IAClB,UAAU,EAAG,MAAM,CAAC;IACpB,GAAG,EAAK;QAAC,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,CAAC;IAC9B,iBAAiB,EAAG,MAAM,CAAC;IAC3B,iBAAiB,EAAG,MAAM,CAAC;CAC3B,CAAA;AAID,eAAO,MAAM,KAAK,EAAG,KAuDpB,CAAC"}
@@ -28,7 +28,7 @@ exports.hProc = {
28
28
  appendFile: (path, data, callback) => ipcRenderer.invoke('appendFile', path, data, callback).catch(fncE),
29
29
  window: (centering, x, y, w, h) => ipcRenderer.invoke('window', centering, x, y, w, h).catch(fncE),
30
30
  isSimpleFullScreen: () => ipcRenderer.invoke('isSimpleFullScreen').catch(fncE),
31
- setSimpleFullScreen: b => ipcRenderer.invoke('setSimpleFullScreen', b).catch(fncE),
31
+ setSimpleFullScreen: (b, w, h) => ipcRenderer.invoke('setSimpleFullScreen', b, w, h).catch(fncE),
32
32
  win_close: () => ipcRenderer.invoke('win_close').catch(fncE),
33
33
  win_setTitle: title => ipcRenderer.invoke('win_setTitle', title).catch(fncE),
34
34
  win_setContentSize: (w, h) => ipcRenderer.invoke('win_setContentSize', w, h).catch(fncE),
@@ -6,6 +6,7 @@ export declare class DebugMng {
6
6
  private readonly sys;
7
7
  constructor(sys: SysBase, hTag: IHTag, scrItr: ScriptIterator);
8
8
  destroy(): void;
9
- static myTrace: typeof DebugMng.__#68@#trace_beforeNew;
9
+ static trace_beforeNew(txt: string, lvl?: 'D' | 'W' | 'F' | 'E' | 'I' | 'ET'): void;
10
+ static myTrace: typeof DebugMng.trace_beforeNew;
10
11
  }
11
12
  //# sourceMappingURL=DebugMng.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DebugMng.d.ts","sourceRoot":"","sources":["../../src/sn/DebugMng.ts"],"names":[],"mappings":"AAQA,OAAO,EAAa,KAAK,EAAC,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAIhD,qBAAa,QAAQ;;IAMR,OAAO,CAAC,QAAQ,CAAC,GAAG;gBAAH,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,cAAc;IA0B9E,OAAO;IA8CP,MAAM,CAAC,OAAO,yCAA6B;CAgD3C"}
1
+ {"version":3,"file":"DebugMng.d.ts","sourceRoot":"","sources":["../../src/sn/DebugMng.ts"],"names":[],"mappings":"AAQA,OAAO,EAAa,KAAK,EAAC,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAIhD,qBAAa,QAAQ;;IAMR,OAAO,CAAC,QAAQ,CAAC,GAAG;gBAAH,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,cAAc;IA0B9E,OAAO;IAkCP,MAAM,CAAC,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,GAAE,GAAG,GAAC,GAAG,GAAC,GAAG,GAAC,GAAG,GAAC,GAAG,GAAC,IAAU;IAavE,MAAM,CAAC,OAAO,kCAA4B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AC,GAAG;gBAAH,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK;IA0GrD,MAAM,CAAC,GAAG,EAAE,QAAQ;IAiFpB,UAAU,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI;IAYlC,KAAK;IAEL,YAAY,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,OAAO,KAAI,IAAI;IAGzC,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW;IACrC,OAAO,IAAI,MAAM;IACjB,KAAK,CAAC,EAAE,EAAE,MAAM;IAChB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK;IAClC,QAAQ,CAAC,OAAO,UAAW,MAAM,WAA2B;IAC5D,SAAS,IAAI,QAAQ;IACrB,SAAS,CAAC,IAAI,EAAE,KAAK;IAOrB,WAAW,CAAC,EAAE,EAAE,MAAM;IAGtB,aAAa,OAAQ,MAAM,KAAG,KAAK,CAAyB;IAC5D,UAAU;IA8PV,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,UAAQ;IA6BlE,QAAQ,CAAC,MAAM,aAAc,MAAM,4CAmDlC;IAoCD,QAAQ;IAwDR,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO;CA0CpC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@famibee/skynovel",
3
- "version": "1.25.7",
3
+ "version": "1.25.8",
4
4
  "description": "webgl novelgame framework",
5
5
  "main": "core/web.js",
6
6
  "types": "core/lib/index.d.ts",
@@ -8,17 +8,17 @@
8
8
  "publisher": "famibee",
9
9
  "license": "MIT",
10
10
  "dependencies": {
11
- "@pixi/sound": "^4.0.6",
11
+ "@pixi/sound": "^4.2.0",
12
12
  "@tweenjs/tween.js": "^18.6.4",
13
13
  "devtools-detect": "^4.0.0",
14
14
  "electron-store": "^8.0.1",
15
15
  "fs-extra": "^10.0.0",
16
16
  "gamepad.js": "^1.0.4",
17
- "moveable": "^0.27.2",
17
+ "moveable": "^0.27.3",
18
18
  "parsimmon": "^1.18.1",
19
19
  "pixi.js": "^6.2.1",
20
20
  "platform": "^1.3.6",
21
- "socket.io-client": "^4.4.0",
21
+ "socket.io-client": "^4.4.1",
22
22
  "store": "^2.0.12",
23
23
  "tar-fs": "^2.1.1",
24
24
  "xml2js": "^0.4.23"
@@ -29,14 +29,14 @@
29
29
  "@types/electron-json-storage": "^4.5.0",
30
30
  "@types/fs-extra": "^9.0.13",
31
31
  "@types/mocha": "^9.0.0",
32
- "@types/node": "^17.0.5",
32
+ "@types/node": "^17.0.8",
33
33
  "@types/parsimmon": "^1.10.6",
34
34
  "@types/platform": "^1.3.4",
35
35
  "@types/power-assert": "^1.5.8",
36
36
  "@types/store": "^2.0.2",
37
37
  "@types/tar-fs": "^2.0.1",
38
38
  "@types/xml2js": "^0.4.9",
39
- "electron": "^16.0.5",
39
+ "electron": "^16.0.6",
40
40
  "mocha": "^9.1.3",
41
41
  "power-assert": "^1.6.1",
42
42
  "rimraf": "^3.0.2",
@@ -46,7 +46,7 @@
46
46
  "typescript": "^4.5.4",
47
47
  "webpack": "^5.65.0",
48
48
  "webpack-cli": "^4.9.1",
49
- "webpack-dev-server": "^4.7.1"
49
+ "webpack-dev-server": "^4.7.2"
50
50
  },
51
51
  "scripts": {
52
52
  "build": "npm run wp && npm run test",
package/web.js CHANGED
@@ -35049,7 +35049,7 @@ __webpack_require__.r(__webpack_exports__);
35049
35049
  /* harmony export */ "Sound": () => (/* binding */ A),
35050
35050
  /* harmony export */ "SoundLibrary": () => (/* binding */ E),
35051
35051
  /* harmony export */ "SoundLoader": () => (/* binding */ _),
35052
- /* harmony export */ "SoundSprite": () => (/* binding */ g),
35052
+ /* harmony export */ "SoundSprite": () => (/* binding */ b),
35053
35053
  /* harmony export */ "filters": () => (/* binding */ k),
35054
35054
  /* harmony export */ "htmlaudio": () => (/* binding */ L),
35055
35055
  /* harmony export */ "sound": () => (/* binding */ I),
@@ -35061,14 +35061,14 @@ __webpack_require__.r(__webpack_exports__);
35061
35061
  /* harmony import */ var _pixi_ticker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @pixi/ticker */ "./node_modules/@pixi/ticker/dist/esm/ticker.js");
35062
35062
  /* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
35063
35063
  /*!
35064
- * @pixi/sound - v4.0.6
35064
+ * @pixi/sound - v4.2.0
35065
35065
  * https://github.com/pixijs/pixi-sound
35066
- * Compiled Wed, 15 Sep 2021 00:32:52 UTC
35066
+ * Compiled Wed, 05 Jan 2022 14:56:00 UTC
35067
35067
  *
35068
35068
  * @pixi/sound is licensed under the MIT license.
35069
35069
  * http://www.opensource.org/licenses/mit-license
35070
35070
  */
35071
- var r;function s(){return r}var u=function(t,e){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var c=function(){return(c=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},p=["mp3","ogg","oga","opus","mpeg","wav","m4a","aiff","wma","mid","caf"],h={};function l(t){var e=c({m4a:"audio/mp4",oga:"audio/ogg",opus:'audio/ogg; codecs="opus"',caf:'audio/x-caf; codecs="opus"'},t||{}),n=document.createElement("audio"),o={},i=/^no$/;p.forEach((function(t){var r=n.canPlayType("audio/"+t).replace(i,""),s=e[t]?n.canPlayType(e[t]).replace(i,""):"";o[t]=!!r||!!s})),Object.assign(h,o)}l();var f=/\.(\{([^\}]+)\})(\?.*)?$/;function d(t){var e=f,n="string"==typeof t?t:t.url;if(!e.test(n))return n;for(var o=e.exec(n),i=o[2].split(","),r=i[i.length-1],s=0,u=i.length;s<u;s++){var a=i[s];if(h[a]){r=a;break}}var c=n.replace(o[1],r);if("string"!=typeof t){var p=t;p.extension=r,p.url=c}return c}var _=function(){function e(){}return e.add=function(){e.setLegacy(s().useLegacy)},e.setLegacy=function(e){var n=p;e?n.forEach((function(e){_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.setExtensionXhrType(e,_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.XHR_RESPONSE_TYPE.DEFAULT),_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.setExtensionLoadType(e,_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.LOAD_TYPE.AUDIO)})):n.forEach((function(e){_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.setExtensionXhrType(e,_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.XHR_RESPONSE_TYPE.BUFFER),_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.setExtensionLoadType(e,_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.LOAD_TYPE.XHR)}))},e.pre=function(t,e){d(t),e()},e.use=function(t,e){t.data&&p.indexOf(t.extension)>-1?t.sound=s().add(t.name,{loaded:e,preload:!0,url:t.url,source:t.data}):e()},e}(),y=0,m=function(t){function e(e){var n=t.call(this)||this;return n.id=y++,n.init(e),n}return a(e,t),e.prototype.set=function(t,e){if(void 0===this[t])throw new Error("Property with name "+t+" does not exist.");switch(t){case"speed":this.speed=e;break;case"volume":this.volume=e;break;case"paused":this.paused=e;break;case"loop":this.loop=e;break;case"muted":this.muted=e}return this},Object.defineProperty(e.prototype,"progress",{get:function(){return this._source.currentTime/this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this._paused},set:function(t){this._paused=t,this.refreshPaused()},enumerable:!1,configurable:!0}),e.prototype._onPlay=function(){this._playing=!0},e.prototype._onPause=function(){this._playing=!1},e.prototype.init=function(t){this._playing=!1,this._duration=t.source.duration;var e=this._source=t.source.cloneNode(!1);e.src=t.parent.url,e.onplay=this._onPlay.bind(this),e.onpause=this._onPause.bind(this),t.context.on("refresh",this.refresh,this),t.context.on("refreshPaused",this.refreshPaused,this),this._media=t},e.prototype._internalStop=function(){this._source&&this._playing&&(this._source.onended=null,this._source.pause())},e.prototype.stop=function(){this._internalStop(),this._source&&this.emit("stop")},Object.defineProperty(e.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this._volume},set:function(t){this._volume=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loop",{get:function(){return this._loop},set:function(t){this._loop=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"muted",{get:function(){return this._muted},set:function(t){this._muted=t,this.refresh()},enumerable:!1,configurable:!0}),e.prototype.refresh=function(){var t=this._media.context,e=this._media.parent;this._source.loop=this._loop||e.loop;var n=t.volume*(t.muted?0:1),o=e.volume*(e.muted?0:1),i=this._volume*(this._muted?0:1);this._source.volume=i*n*o,this._source.playbackRate=this._speed*t.speed*e.speed},e.prototype.refreshPaused=function(){var t=this._media.context,e=this._media.parent,n=this._paused||e.paused||t.paused;n!==this._pausedReal&&(this._pausedReal=n,n?(this._internalStop(),this.emit("paused")):(this.emit("resumed"),this.play({start:this._source.currentTime,end:this._end,volume:this._volume,speed:this._speed,loop:this._loop})),this.emit("pause",n))},e.prototype.play=function(t){var n=this,i=t.start,r=t.end,s=t.speed,u=t.loop,a=t.volume,c=t.muted;this._speed=s,this._volume=a,this._loop=!!u,this._muted=c,this.refresh(),this.loop&&null!==r&&(this.loop=!1),this._start=i,this._end=r||this._duration,this._start=Math.max(0,this._start-e.PADDING),this._end=Math.min(this._end+e.PADDING,this._duration),this._source.onloadedmetadata=function(){n._source&&(n._source.currentTime=i,n._source.onloadedmetadata=null,n.emit("progress",i,n._duration),_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.add(n._onUpdate,n))},this._source.onended=this._onComplete.bind(this),this._source.play(),this.emit("start")},e.prototype._onUpdate=function(){this.emit("progress",this.progress,this._duration),this._source.currentTime>=this._end&&!this._source.loop&&this._onComplete()},e.prototype._onComplete=function(){_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.remove(this._onUpdate,this),this._internalStop(),this.emit("progress",1,this._duration),this.emit("end",this)},e.prototype.destroy=function(){_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.remove(this._onUpdate,this),this.removeAllListeners();var t=this._source;t&&(t.onended=null,t.onplay=null,t.onpause=null,this._internalStop()),this._source=null,this._speed=1,this._volume=1,this._loop=!1,this._end=null,this._start=0,this._duration=0,this._playing=!1,this._pausedReal=!1,this._paused=!1,this._muted=!1,this._media&&(this._media.context.off("refresh",this.refresh,this),this._media.context.off("refreshPaused",this.refreshPaused,this),this._media=null)},e.prototype.toString=function(){return"[HTMLAudioInstance id="+this.id+"]"},e.PADDING=.1,e}(_pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.init=function(t){this.parent=t,this._source=t.options.source||new Audio,t.url&&(this._source.src=t.url)},e.prototype.create=function(){return new m(this)},Object.defineProperty(e.prototype,"isPlayable",{get:function(){return!!this._source&&4===this._source.readyState},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this._source.duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this.parent.context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"filters",{get:function(){return null},set:function(t){},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this.removeAllListeners(),this.parent=null,this._source&&(this._source.src="",this._source.load(),this._source=null)},Object.defineProperty(e.prototype,"source",{get:function(){return this._source},enumerable:!1,configurable:!0}),e.prototype.load=function(t){var e=this._source,n=this.parent;if(4!==e.readyState)if(n.url){e.src=n.url;var o=function(){s(),n.isLoaded=!0;var e=n.autoPlayStart();t&&t(null,n,e)},i=function(){s(),t&&t(new Error("Sound loading has been aborted"))},r=function(){s();var n="Failed to load audio element (code: "+e.error.code+")";t&&t(new Error(n))},s=function(){e.removeEventListener("canplaythrough",o),e.removeEventListener("load",o),e.removeEventListener("abort",i),e.removeEventListener("error",r)};e.addEventListener("canplaythrough",o,!1),e.addEventListener("load",o,!1),e.addEventListener("abort",i,!1),e.addEventListener("error",r,!1),e.load()}else t(new Error("sound.url or sound.source must be set"));else{n.isLoaded=!0;var u=n.autoPlayStart();t&&setTimeout((function(){t(null,n,u)}),0)}},e}(_pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),g=function(){function t(t,e){this.parent=t,Object.assign(this,e),this.duration=this.end-this.start}return t.prototype.play=function(t){return this.parent.play({complete:t,speed:this.speed||this.parent.speed,end:this.end,start:this.start,loop:this.loop})},t.prototype.destroy=function(){this.parent=null},t}(),v=function(){function t(){}return t.setParamValue=function(t,e){if(t.setValueAtTime){var n=s().context;t.setValueAtTime(e,n.audioContext.currentTime)}else t.value=e;return e},t}(),P=0,x=function(t){function e(e){var n=t.call(this)||this;return n.id=P++,n._media=null,n._paused=!1,n._muted=!1,n._elapsed=0,n.init(e),n}return a(e,t),e.prototype.set=function(t,e){if(void 0===this[t])throw new Error("Property with name "+t+" does not exist.");switch(t){case"speed":this.speed=e;break;case"volume":this.volume=e;break;case"muted":this.muted=e;break;case"loop":this.loop=e;break;case"paused":this.paused=e}return this},e.prototype.stop=function(){this._source&&(this._internalStop(),this.emit("stop"))},Object.defineProperty(e.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t,this.refresh(),this._update(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this._volume},set:function(t){this._volume=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"muted",{get:function(){return this._muted},set:function(t){this._muted=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loop",{get:function(){return this._loop},set:function(t){this._loop=t,this.refresh()},enumerable:!1,configurable:!0}),e.prototype.refresh=function(){if(this._source){var t=this._media.context,e=this._media.parent;this._source.loop=this._loop||e.loop;var n=t.volume*(t.muted?0:1),o=e.volume*(e.muted?0:1),i=this._volume*(this._muted?0:1);v.setParamValue(this._gain.gain,i*o*n),v.setParamValue(this._source.playbackRate,this._speed*e.speed*t.speed)}},e.prototype.refreshPaused=function(){var t=this._media.context,e=this._media.parent,n=this._paused||e.paused||t.paused;n!==this._pausedReal&&(this._pausedReal=n,n?(this._internalStop(),this.emit("paused")):(this.emit("resumed"),this.play({start:this._elapsed%this._duration,end:this._end,speed:this._speed,loop:this._loop,volume:this._volume})),this.emit("pause",n))},e.prototype.play=function(t){var e=t.start,n=t.end,o=t.speed,i=t.loop,r=t.volume,s=t.muted;this._paused=!1;var u=this._media.nodes.cloneBufferSource(),a=u.source,c=u.gain;this._source=a,this._gain=c,this._speed=o,this._volume=r,this._loop=!!i,this._muted=s,this.refresh();var p=this._source.buffer.duration;this._duration=p,this._end=n,this._lastUpdate=this._now(),this._elapsed=e,this._source.onended=this._onComplete.bind(this),this._loop?(this._source.loopEnd=n,this._source.loopStart=e,this._source.start(0,e)):n?this._source.start(0,e,n-e):this._source.start(0,e),this.emit("start"),this._update(!0),this.enableTicker(!0)},e.prototype.enableTicker=function(t){_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.remove(this._updateListener,this),t&&_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.add(this._updateListener,this)},Object.defineProperty(e.prototype,"progress",{get:function(){return this._progress},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this._paused},set:function(t){this._paused=t,this.refreshPaused()},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this.removeAllListeners(),this._internalStop(),this._gain&&(this._gain.disconnect(),this._gain=null),this._media&&(this._media.context.events.off("refresh",this.refresh,this),this._media.context.events.off("refreshPaused",this.refreshPaused,this),this._media=null),this._end=null,this._speed=1,this._volume=1,this._loop=!1,this._elapsed=0,this._duration=0,this._paused=!1,this._muted=!1,this._pausedReal=!1},e.prototype.toString=function(){return"[WebAudioInstance id="+this.id+"]"},e.prototype._now=function(){return this._media.context.audioContext.currentTime},e.prototype._updateListener=function(){this._update()},e.prototype._update=function(t){if(void 0===t&&(t=!1),this._source){var e=this._now(),n=e-this._lastUpdate;if(n>0||t){var o=this._source.playbackRate.value;this._elapsed+=n*o,this._lastUpdate=e;var i=this._duration,r=void 0;if(this._source.loopStart){var s=this._source.loopEnd-this._source.loopStart;r=(this._source.loopStart+this._elapsed%s)/i}else r=this._elapsed%i/i;this._progress=r,this.emit("progress",this._progress,i)}}},e.prototype.init=function(t){this._media=t,t.context.events.on("refresh",this.refresh,this),t.context.events.on("refreshPaused",this.refreshPaused,this)},e.prototype._internalStop=function(){if(this._source){this.enableTicker(!1),this._source.onended=null,this._source.stop(0),this._source.disconnect();try{this._source.buffer=null}catch(t){}this._source=null}},e.prototype._onComplete=function(){if(this._source){this.enableTicker(!1),this._source.onended=null,this._source.disconnect();try{this._source.buffer=null}catch(t){}}this._source=null,this._progress=1,this.emit("progress",1,this._duration),this.emit("end",this)},e}(_pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),O=function(){function t(t,e){this._output=e,this._input=t}return Object.defineProperty(t.prototype,"destination",{get:function(){return this._input},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filters",{get:function(){return this._filters},set:function(t){var e=this;if(this._filters&&(this._filters.forEach((function(t){t&&t.disconnect()})),this._filters=null,this._input.connect(this._output)),t&&t.length){this._filters=t.slice(0),this._input.disconnect();var n=null;t.forEach((function(t){null===n?e._input.connect(t.destination):n.connect(t.destination),n=t})),n.connect(this._output)}},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){this.filters=null,this._input=null,this._output=null},t}(),j=function(t){function e(e){var n=this,o=e.audioContext,i=o.createBufferSource(),r=o.createGain(),s=o.createAnalyser();return i.connect(s),s.connect(r),r.connect(e.destination),(n=t.call(this,s,r)||this).context=e,n.bufferSource=i,n.gain=r,n.analyser=s,n}return a(e,t),Object.defineProperty(e.prototype,"script",{get:function(){return this._script||(this._script=this.context.audioContext.createScriptProcessor(e.BUFFER_SIZE),this._script.connect(this.context.destination)),this._script},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.bufferSource.disconnect(),this._script&&this._script.disconnect(),this.gain.disconnect(),this.analyser.disconnect(),this.bufferSource=null,this._script=null,this.gain=null,this.analyser=null,this.context=null},e.prototype.cloneBufferSource=function(){var t=this.bufferSource,e=this.context.audioContext.createBufferSource();e.buffer=t.buffer,v.setParamValue(e.playbackRate,t.playbackRate.value),e.loop=t.loop;var n=this.context.audioContext.createGain();return e.connect(n),n.connect(this.destination),{source:e,gain:n}},Object.defineProperty(e.prototype,"bufferSize",{get:function(){return this.script.bufferSize},enumerable:!1,configurable:!0}),e.BUFFER_SIZE=0,e}(O),w=function(){function t(){}return t.prototype.init=function(t){this.parent=t,this._nodes=new j(this.context),this._source=this._nodes.bufferSource,this.source=t.options.source},t.prototype.destroy=function(){this.parent=null,this._nodes.destroy(),this._nodes=null;try{this._source.buffer=null}catch(t){}this._source=null,this.source=null},t.prototype.create=function(){return new x(this)},Object.defineProperty(t.prototype,"context",{get:function(){return this.parent.context},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPlayable",{get:function(){return!!this._source&&!!this._source.buffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filters",{get:function(){return this._nodes.filters},set:function(t){this._nodes.filters=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){return this._source.buffer.duration},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"buffer",{get:function(){return this._source.buffer},set:function(t){this._source.buffer=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nodes",{get:function(){return this._nodes},enumerable:!1,configurable:!0}),t.prototype.load=function(t){this.source?this._decode(this.source,t):this.parent.url?this._loadUrl(t):t&&t(new Error("sound.url or sound.source must be set"))},t.prototype._loadUrl=function(t){var e=this,n=new XMLHttpRequest,o=this.parent.url;n.open("GET",o,!0),n.responseType="arraybuffer",n.onload=function(){e.source=n.response,e._decode(n.response,t)},n.send()},t.prototype._decode=function(t,e){var n=this;this.parent.context.decode(t,(function(t,o){if(t)e&&e(t);else{n.parent.isLoaded=!0,n.buffer=o;var i=n.parent.autoPlayStart();e&&e(null,n.parent,i)}}))},t}(),A=function(){function t(t,e){this.media=t,this.options=e,this._instances=[],this._sprites={},this.media.init(this);var n=e.complete;this._autoPlayOptions=n?{complete:n}:null,this.isLoaded=!1,this.isPlaying=!1,this.autoPlay=e.autoPlay,this.singleInstance=e.singleInstance,this.preload=e.preload||this.autoPlay,this.url=e.url,this.speed=e.speed,this.volume=e.volume,this.loop=e.loop,e.sprites&&this.addSprites(e.sprites),this.preload&&this._preload(e.loaded)}return t.from=function(e){var n={};return"string"==typeof e?n.url=e:e instanceof ArrayBuffer||e instanceof HTMLAudioElement?n.source=e:n=e,(n=c({autoPlay:!1,singleInstance:!1,url:null,source:null,preload:!1,volume:1,speed:1,complete:null,loaded:null,loop:!1},n)).url&&(n.url=d(n.url)),Object.freeze(n),new t(s().useLegacy?new b:new w,n)},Object.defineProperty(t.prototype,"context",{get:function(){return s().context},enumerable:!1,configurable:!0}),t.prototype.pause=function(){return this.isPlaying=!1,this.paused=!0,this},t.prototype.resume=function(){return this.isPlaying=this._instances.length>0,this.paused=!1,this},Object.defineProperty(t.prototype,"paused",{get:function(){return this._paused},set:function(t){this._paused=t,this.refreshPaused()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filters",{get:function(){return this.media.filters},set:function(t){this.media.filters=t},enumerable:!1,configurable:!0}),t.prototype.addSprites=function(t,e){if("object"==typeof t){var n={};for(var o in t)n[o]=this.addSprites(o,t[o]);return n}var i=new g(this,e);return this._sprites[t]=i,i},t.prototype.destroy=function(){this._removeInstances(),this.removeSprites(),this.media.destroy(),this.media=null,this._sprites=null,this._instances=null},t.prototype.removeSprites=function(t){if(t){var e=this._sprites[t];void 0!==e&&(e.destroy(),delete this._sprites[t])}else for(var n in this._sprites)this.removeSprites(n);return this},Object.defineProperty(t.prototype,"isPlayable",{get:function(){return this.isLoaded&&this.media&&this.media.isPlayable},enumerable:!1,configurable:!0}),t.prototype.stop=function(){if(!this.isPlayable)return this.autoPlay=!1,this._autoPlayOptions=null,this;this.isPlaying=!1;for(var t=this._instances.length-1;t>=0;t--)this._instances[t].stop();return this},t.prototype.play=function(t,e){var n,o=this;"string"==typeof t?n={sprite:r=t,loop:this.loop,complete:e}:"function"==typeof t?(n={}).complete=t:n=t;if((n=c({complete:null,loaded:null,sprite:null,end:null,start:0,volume:1,speed:1,muted:!1,loop:!1},n||{})).sprite){var i=n.sprite,r=this._sprites[i];n.start=r.start+(n.start||0),n.end=r.end,n.speed=r.speed||1,n.loop=r.loop||n.loop,delete n.sprite}if(n.offset&&(n.start=n.offset),!this.isLoaded)return new Promise((function(t,e){o.autoPlay=!0,o._autoPlayOptions=n,o._preload((function(o,i,r){o?e(o):(n.loaded&&n.loaded(o,i,r),t(r))}))}));this.singleInstance&&this._removeInstances();var s=this._createInstance();return this._instances.push(s),this.isPlaying=!0,s.once("end",(function(){n.complete&&n.complete(o),o._onComplete(s)})),s.once("stop",(function(){o._onComplete(s)})),s.play(n),s},t.prototype.refresh=function(){for(var t=this._instances.length,e=0;e<t;e++)this._instances[e].refresh()},t.prototype.refreshPaused=function(){for(var t=this._instances.length,e=0;e<t;e++)this._instances[e].refreshPaused()},Object.defineProperty(t.prototype,"volume",{get:function(){return this._volume},set:function(t){this._volume=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"muted",{get:function(){return this._muted},set:function(t){this._muted=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loop",{get:function(){return this._loop},set:function(t){this._loop=t,this.refresh()},enumerable:!1,configurable:!0}),t.prototype._preload=function(t){this.media.load(t)},Object.defineProperty(t.prototype,"instances",{get:function(){return this._instances},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sprites",{get:function(){return this._sprites},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){return this.media.duration},enumerable:!1,configurable:!0}),t.prototype.autoPlayStart=function(){var t;return this.autoPlay&&(t=this.play(this._autoPlayOptions)),t},t.prototype._removeInstances=function(){for(var t=this._instances.length-1;t>=0;t--)this._poolInstance(this._instances[t]);this._instances.length=0},t.prototype._onComplete=function(t){if(this._instances){var e=this._instances.indexOf(t);e>-1&&this._instances.splice(e,1),this.isPlaying=this._instances.length>0}this._poolInstance(t)},t.prototype._createInstance=function(){if(t._pool.length>0){var e=t._pool.pop();return e.init(this.media),e}return this.media.create()},t.prototype._poolInstance=function(e){e.destroy(),t._pool.indexOf(e)<0&&t._pool.push(e)},t._pool=[],t}(),F=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.speed=1,e.muted=!1,e.volume=1,e.paused=!1,e}return a(e,t),e.prototype.refresh=function(){this.emit("refresh")},e.prototype.refreshPaused=function(){this.emit("refreshPaused")},Object.defineProperty(e.prototype,"filters",{get:function(){return null},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"audioContext",{get:function(){return null},enumerable:!1,configurable:!0}),e.prototype.toggleMute=function(){return this.muted=!this.muted,this.refresh(),this.muted},e.prototype.togglePause=function(){return this.paused=!this.paused,this.refreshPaused(),this.paused},e.prototype.destroy=function(){this.removeAllListeners()},e}(_pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),C=function(t){function e(){var o=this,i=window,r=new e.AudioContext,s=r.createDynamicsCompressor(),u=r.createAnalyser();return u.connect(s),s.connect(r.destination),(o=t.call(this,u,s)||this)._ctx=r,o._offlineCtx=new e.OfflineAudioContext(1,2,i.OfflineAudioContext?r.sampleRate:44100),o._unlocked=!1,o.compressor=s,o.analyser=u,o.events=new _pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter,o.volume=1,o.speed=1,o.muted=!1,o.paused=!1,"running"!==r.state&&(o._unlock(),o._unlock=o._unlock.bind(o),document.addEventListener("mousedown",o._unlock,!0),document.addEventListener("touchstart",o._unlock,!0),document.addEventListener("touchend",o._unlock,!0)),o}return a(e,t),e.prototype._unlock=function(){this._unlocked||(this.playEmptySound(),"running"===this._ctx.state&&(document.removeEventListener("mousedown",this._unlock,!0),document.removeEventListener("touchend",this._unlock,!0),document.removeEventListener("touchstart",this._unlock,!0),this._unlocked=!0))},e.prototype.playEmptySound=function(){var t=this._ctx.createBufferSource();t.buffer=this._ctx.createBuffer(1,1,22050),t.connect(this._ctx.destination),t.start(0,0,0),"suspended"===t.context.state&&t.context.resume()},Object.defineProperty(e,"AudioContext",{get:function(){var t=window;return t.AudioContext||t.webkitAudioContext||null},enumerable:!1,configurable:!0}),Object.defineProperty(e,"OfflineAudioContext",{get:function(){var t=window;return t.OfflineAudioContext||t.webkitOfflineAudioContext||null},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this);var e=this._ctx;void 0!==e.close&&e.close(),this.events.removeAllListeners(),this.analyser.disconnect(),this.compressor.disconnect(),this.analyser=null,this.compressor=null,this.events=null,this._offlineCtx=null,this._ctx=null},Object.defineProperty(e.prototype,"audioContext",{get:function(){return this._ctx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offlineContext",{get:function(){return this._offlineCtx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this._paused},set:function(t){t&&"running"===this._ctx.state?this._ctx.suspend():t||"suspended"!==this._ctx.state||this._ctx.resume(),this._paused=t},enumerable:!1,configurable:!0}),e.prototype.refresh=function(){this.events.emit("refresh")},e.prototype.refreshPaused=function(){this.events.emit("refreshPaused")},e.prototype.toggleMute=function(){return this.muted=!this.muted,this.refresh(),this.muted},e.prototype.togglePause=function(){return this.paused=!this.paused,this.refreshPaused(),this._paused},e.prototype.decode=function(t,e){var n=function(t){e(new Error(t.message||"Unable to decode file"))},o=this._offlineCtx.decodeAudioData(t,(function(t){e(null,t)}),n);o&&o.catch(n)},e}(O),E=function(){function t(){this.init()}return t.prototype.init=function(){return this.supported&&(this._webAudioContext=new C),this._htmlAudioContext=new F,this._sounds={},this.useLegacy=!this.supported,this},Object.defineProperty(t.prototype,"context",{get:function(){return this._context},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filtersAll",{get:function(){return this.useLegacy?[]:this._context.filters},set:function(t){this.useLegacy||(this._context.filters=t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"supported",{get:function(){return null!==C.AudioContext},enumerable:!1,configurable:!0}),t.prototype.add=function(t,e){if("object"==typeof t){var n={};for(var o in t){var i=this._getOptions(t[o],e);n[o]=this.add(o,i)}return n}if(e instanceof A)return this._sounds[t]=e,e;var r=this._getOptions(e),s=A.from(r);return this._sounds[t]=s,s},t.prototype._getOptions=function(t,e){var n;return n="string"==typeof t?{url:t}:t instanceof ArrayBuffer||t instanceof HTMLAudioElement?{source:t}:t,n=c(c({},n),e||{})},Object.defineProperty(t.prototype,"useLegacy",{get:function(){return this._useLegacy},set:function(t){_.setLegacy(t),this._useLegacy=t,this._context=!t&&this.supported?this._webAudioContext:this._htmlAudioContext},enumerable:!1,configurable:!0}),t.prototype.remove=function(t){return this.exists(t,!0),this._sounds[t].destroy(),delete this._sounds[t],this},Object.defineProperty(t.prototype,"volumeAll",{get:function(){return this._context.volume},set:function(t){this._context.volume=t,this._context.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"speedAll",{get:function(){return this._context.speed},set:function(t){this._context.speed=t,this._context.refresh()},enumerable:!1,configurable:!0}),t.prototype.togglePauseAll=function(){return this._context.togglePause()},t.prototype.pauseAll=function(){return this._context.paused=!0,this._context.refreshPaused(),this},t.prototype.resumeAll=function(){return this._context.paused=!1,this._context.refreshPaused(),this},t.prototype.toggleMuteAll=function(){return this._context.toggleMute()},t.prototype.muteAll=function(){return this._context.muted=!0,this._context.refresh(),this},t.prototype.unmuteAll=function(){return this._context.muted=!1,this._context.refresh(),this},t.prototype.removeAll=function(){for(var t in this._sounds)this._sounds[t].destroy(),delete this._sounds[t];return this},t.prototype.stopAll=function(){for(var t in this._sounds)this._sounds[t].stop();return this},t.prototype.exists=function(t,e){return void 0===e&&(e=!1),!!this._sounds[t]},t.prototype.find=function(t){return this.exists(t,!0),this._sounds[t]},t.prototype.play=function(t,e){return this.find(t).play(e)},t.prototype.stop=function(t){return this.find(t).stop()},t.prototype.pause=function(t){return this.find(t).pause()},t.prototype.resume=function(t){return this.find(t).resume()},t.prototype.volume=function(t,e){var n=this.find(t);return void 0!==e&&(n.volume=e),n.volume},t.prototype.speed=function(t,e){var n=this.find(t);return void 0!==e&&(n.speed=e),n.speed},t.prototype.duration=function(t){return this.find(t).duration},t.prototype.close=function(){return this.removeAll(),this._sounds=null,this._webAudioContext&&(this._webAudioContext.destroy(),this._webAudioContext=null),this._htmlAudioContext&&(this._htmlAudioContext.destroy(),this._htmlAudioContext=null),this._context=null,this},t}(),L={HTMLAudioContext:F,HTMLAudioMedia:b,HTMLAudioInstance:m},S=function(){function t(t,e){this.init(t,e)}return t.prototype.init=function(t,e){this.destination=t,this.source=e||t},t.prototype.connect=function(t){this.source.connect(t)},t.prototype.disconnect=function(){this.source.disconnect()},t.prototype.destroy=function(){this.disconnect(),this.destination=null,this.source=null},t}(),k={Filter:S,EqualizerFilter:function(t){function e(n,o,i,r,u,a,c,p,h,l){void 0===n&&(n=0),void 0===o&&(o=0),void 0===i&&(i=0),void 0===r&&(r=0),void 0===u&&(u=0),void 0===a&&(a=0),void 0===c&&(c=0),void 0===p&&(p=0),void 0===h&&(h=0),void 0===l&&(l=0);var f=this;if(!s().useLegacy){var d=[{f:e.F32,type:"lowshelf",gain:n},{f:e.F64,type:"peaking",gain:o},{f:e.F125,type:"peaking",gain:i},{f:e.F250,type:"peaking",gain:r},{f:e.F500,type:"peaking",gain:u},{f:e.F1K,type:"peaking",gain:a},{f:e.F2K,type:"peaking",gain:c},{f:e.F4K,type:"peaking",gain:p},{f:e.F8K,type:"peaking",gain:h},{f:e.F16K,type:"highshelf",gain:l}].map((function(t){var e=s().context.audioContext.createBiquadFilter();return e.type=t.type,v.setParamValue(e.Q,1),e.frequency.value=t.f,v.setParamValue(e.gain,t.gain),e}));(f=t.call(this,d[0],d[d.length-1])||this).bands=d,f.bandsMap={};for(var _=0;_<f.bands.length;_++){var y=f.bands[_];_>0&&f.bands[_-1].connect(y),f.bandsMap[y.frequency.value]=y}return f}f=t.call(this,null)||this}return a(e,t),e.prototype.setGain=function(t,e){if(void 0===e&&(e=0),!this.bandsMap[t])throw new Error("No band found for frequency "+t);v.setParamValue(this.bandsMap[t].gain,e)},e.prototype.getGain=function(t){if(!this.bandsMap[t])throw new Error("No band found for frequency "+t);return this.bandsMap[t].gain.value},Object.defineProperty(e.prototype,"f32",{get:function(){return this.getGain(e.F32)},set:function(t){this.setGain(e.F32,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f64",{get:function(){return this.getGain(e.F64)},set:function(t){this.setGain(e.F64,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f125",{get:function(){return this.getGain(e.F125)},set:function(t){this.setGain(e.F125,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f250",{get:function(){return this.getGain(e.F250)},set:function(t){this.setGain(e.F250,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f500",{get:function(){return this.getGain(e.F500)},set:function(t){this.setGain(e.F500,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f1k",{get:function(){return this.getGain(e.F1K)},set:function(t){this.setGain(e.F1K,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f2k",{get:function(){return this.getGain(e.F2K)},set:function(t){this.setGain(e.F2K,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f4k",{get:function(){return this.getGain(e.F4K)},set:function(t){this.setGain(e.F4K,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f8k",{get:function(){return this.getGain(e.F8K)},set:function(t){this.setGain(e.F8K,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f16k",{get:function(){return this.getGain(e.F16K)},set:function(t){this.setGain(e.F16K,t)},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this.bands.forEach((function(t){v.setParamValue(t.gain,0)}))},e.prototype.destroy=function(){this.bands.forEach((function(t){t.disconnect()})),this.bands=null,this.bandsMap=null},e.F32=32,e.F64=64,e.F125=125,e.F250=250,e.F500=500,e.F1K=1e3,e.F2K=2e3,e.F4K=4e3,e.F8K=8e3,e.F16K=16e3,e}(S),DistortionFilter:function(t){function e(e){void 0===e&&(e=0);var n=this;if(!s().useLegacy){var o=s().context.audioContext.createWaveShaper();return(n=t.call(this,o)||this)._distortion=o,n.amount=e,n}n=t.call(this,null)||this}return a(e,t),Object.defineProperty(e.prototype,"amount",{get:function(){return this._amount},set:function(t){t*=1e3,this._amount=t;for(var e,n=44100,o=new Float32Array(n),i=Math.PI/180,r=0;r<n;++r)e=2*r/n-1,o[r]=(3+t)*e*20*i/(Math.PI+t*Math.abs(e));this._distortion.curve=o,this._distortion.oversample="4x"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this._distortion=null,t.prototype.destroy.call(this)},e}(S),StereoFilter:function(t){function e(e){void 0===e&&(e=0);var n=this;if(!s().useLegacy){var o,i,r,u=s().context.audioContext;return u.createStereoPanner?r=o=u.createStereoPanner():((i=u.createPanner()).panningModel="equalpower",r=i),(n=t.call(this,r)||this)._stereo=o,n._panner=i,n.pan=e,n}n=t.call(this,null)||this}return a(e,t),Object.defineProperty(e.prototype,"pan",{get:function(){return this._pan},set:function(t){this._pan=t,this._stereo?v.setParamValue(this._stereo.pan,t):this._panner.setPosition(t,0,1-Math.abs(t))},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this._stereo=null,this._panner=null},e}(S),ReverbFilter:function(t){function e(e,n,o){void 0===e&&(e=3),void 0===n&&(n=2),void 0===o&&(o=!1);var i=this;if(!s().useLegacy)return(i=t.call(this,null)||this)._seconds=i._clamp(e,1,50),i._decay=i._clamp(n,0,100),i._reverse=o,i._rebuild(),i;i=t.call(this,null)||this}return a(e,t),e.prototype._clamp=function(t,e,n){return Math.min(n,Math.max(e,t))},Object.defineProperty(e.prototype,"seconds",{get:function(){return this._seconds},set:function(t){this._seconds=this._clamp(t,1,50),this._rebuild()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"decay",{get:function(){return this._decay},set:function(t){this._decay=this._clamp(t,0,100),this._rebuild()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"reverse",{get:function(){return this._reverse},set:function(t){this._reverse=t,this._rebuild()},enumerable:!1,configurable:!0}),e.prototype._rebuild=function(){for(var t,e=s().context.audioContext,n=e.sampleRate,o=n*this._seconds,i=e.createBuffer(2,o,n),r=i.getChannelData(0),u=i.getChannelData(1),a=0;a<o;a++)t=this._reverse?o-a:a,r[a]=(2*Math.random()-1)*Math.pow(1-t/o,this._decay),u[a]=(2*Math.random()-1)*Math.pow(1-t/o,this._decay);var c=s().context.audioContext.createConvolver();c.buffer=i,this.init(c)},e}(S),MonoFilter:function(t){function e(){var e=this;if(!s().useLegacy){var n=s().context.audioContext,o=n.createChannelSplitter(),i=n.createChannelMerger();return i.connect(o),(e=t.call(this,i,o)||this)._merger=i,e}e=t.call(this,null)||this}return a(e,t),e.prototype.destroy=function(){this._merger.disconnect(),this._merger=null,t.prototype.destroy.call(this)},e}(S),TelephoneFilter:function(t){function e(){if(!s().useLegacy){var e=s().context.audioContext,n=e.createBiquadFilter(),o=e.createBiquadFilter(),i=e.createBiquadFilter(),r=e.createBiquadFilter();return n.type="lowpass",v.setParamValue(n.frequency,2e3),o.type="lowpass",v.setParamValue(o.frequency,2e3),i.type="highpass",v.setParamValue(i.frequency,500),r.type="highpass",v.setParamValue(r.frequency,500),n.connect(o),o.connect(i),i.connect(r),t.call(this,n,r)||this}t.call(this,null)}return a(e,t),e}(S)},M={WebAudioMedia:w,WebAudioInstance:x,WebAudioNodes:j,WebAudioContext:C,WebAudioUtils:v},T=0;var G={playOnce:function(t,e){var n="alias"+T++;return s().add(n,{url:t,preload:!0,autoPlay:!0,loaded:function(t){t&&(s().remove(n),e&&e(t))},complete:function(){s().remove(n),e&&e(null)}}),n},render:function(t,e){var n=document.createElement("canvas");e=c({width:512,height:128,fill:"black"},e||{}),n.width=e.width,n.height=e.height;var o=_pixi_core__WEBPACK_IMPORTED_MODULE_3__.BaseTexture.from(n);if(!(t.media instanceof w))return o;var r=t.media,s=n.getContext("2d");s.fillStyle=e.fill;for(var u=r.buffer.getChannelData(0),a=Math.ceil(u.length/e.width),p=e.height/2,h=0;h<e.width;h++){for(var l=1,f=-1,d=0;d<a;d++){var _=u[h*a+d];_<l&&(l=_),_>f&&(f=_)}s.fillRect(h,(1+l)*p,1,Math.max(1,(f-l)*p))}return o},resolveUrl:d,sineTone:function(t,e){void 0===t&&(t=200),void 0===e&&(e=1);var n=A.from({singleInstance:!0});if(!(n.media instanceof w))return n;for(var o=n.media,i=n.context.audioContext.createBuffer(1,48e3*e,48e3),r=i.getChannelData(0),s=0;s<r.length;s++){var u=t*(s/i.sampleRate)*Math.PI;r[s]=2*Math.sin(u)}return o.buffer=i,n.isLoaded=!0,n},supported:h,extensions:p,validateFormats:l},I=function(t){return r=t,t}(new E);_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.Loader.registerPlugin(_);
35071
+ var r;function s(){return r}var u=function(t,e){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var c=function(){return(c=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},l=["mp3","ogg","oga","opus","mpeg","wav","m4a","aiff","wma","mid","caf"],p={};function h(t){var e=c({m4a:"audio/mp4",oga:"audio/ogg",opus:'audio/ogg; codecs="opus"',caf:'audio/x-caf; codecs="opus"'},t||{}),n=document.createElement("audio"),o={},i=/^no$/;l.forEach((function(t){var r=n.canPlayType("audio/".concat(t)).replace(i,""),s=e[t]?n.canPlayType(e[t]).replace(i,""):"";o[t]=!!r||!!s})),Object.assign(p,o)}h();var f=/\.(\{([^\}]+)\})(\?.*)?$/;function d(t){var e=f,n="string"==typeof t?t:t.url;if(!e.test(n))return n;for(var o=e.exec(n),i=o[2].split(","),r=i[i.length-1],s=0,u=i.length;s<u;s++){var a=i[s];if(p[a]){r=a;break}}var c=n.replace(o[1],r);if("string"!=typeof t){var l=t;l.extension=r,l.url=c}return c}var _=function(){function e(){}return e.add=function(){e.setLegacy(s().useLegacy)},e.setLegacy=function(e){var n=l;e?n.forEach((function(e){_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.setExtensionXhrType(e,_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.XHR_RESPONSE_TYPE.DEFAULT),_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.setExtensionLoadType(e,_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.LOAD_TYPE.AUDIO)})):n.forEach((function(e){_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.setExtensionXhrType(e,_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.XHR_RESPONSE_TYPE.BUFFER),_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.setExtensionLoadType(e,_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.LOAD_TYPE.XHR)}))},e.pre=function(t,e){d(t),e()},e.use=function(t,e){t.data&&l.indexOf(t.extension)>-1?t.sound=s().add(t.name,{loaded:e,preload:!0,url:t.url,source:t.data}):e()},e}(),y=0,m=function(t){function e(e){var n=t.call(this)||this;return n.id=y++,n.init(e),n}return a(e,t),e.prototype.set=function(t,e){if(void 0===this[t])throw new Error("Property with name ".concat(t," does not exist."));switch(t){case"speed":this.speed=e;break;case"volume":this.volume=e;break;case"paused":this.paused=e;break;case"loop":this.loop=e;break;case"muted":this.muted=e}return this},Object.defineProperty(e.prototype,"progress",{get:function(){return this._source.currentTime/this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this._paused},set:function(t){this._paused=t,this.refreshPaused()},enumerable:!1,configurable:!0}),e.prototype._onPlay=function(){this._playing=!0},e.prototype._onPause=function(){this._playing=!1},e.prototype.init=function(t){this._playing=!1,this._duration=t.source.duration;var e=this._source=t.source.cloneNode(!1);e.src=t.parent.url,e.onplay=this._onPlay.bind(this),e.onpause=this._onPause.bind(this),t.context.on("refresh",this.refresh,this),t.context.on("refreshPaused",this.refreshPaused,this),this._media=t},e.prototype._internalStop=function(){this._source&&this._playing&&(this._source.onended=null,this._source.pause())},e.prototype.stop=function(){this._internalStop(),this._source&&this.emit("stop")},Object.defineProperty(e.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this._volume},set:function(t){this._volume=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loop",{get:function(){return this._loop},set:function(t){this._loop=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"muted",{get:function(){return this._muted},set:function(t){this._muted=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"filters",{get:function(){return null},set:function(t){},enumerable:!1,configurable:!0}),e.prototype.refresh=function(){var t=this._media.context,e=this._media.parent;this._source.loop=this._loop||e.loop;var n=t.volume*(t.muted?0:1),o=e.volume*(e.muted?0:1),i=this._volume*(this._muted?0:1);this._source.volume=i*n*o,this._source.playbackRate=this._speed*t.speed*e.speed},e.prototype.refreshPaused=function(){var t=this._media.context,e=this._media.parent,n=this._paused||e.paused||t.paused;n!==this._pausedReal&&(this._pausedReal=n,n?(this._internalStop(),this.emit("paused")):(this.emit("resumed"),this.play({start:this._source.currentTime,end:this._end,volume:this._volume,speed:this._speed,loop:this._loop})),this.emit("pause",n))},e.prototype.play=function(t){var n=this,i=t.start,r=t.end,s=t.speed,u=t.loop,a=t.volume,c=t.muted;this._speed=s,this._volume=a,this._loop=!!u,this._muted=c,this.refresh(),this.loop&&null!==r&&(this.loop=!1),this._start=i,this._end=r||this._duration,this._start=Math.max(0,this._start-e.PADDING),this._end=Math.min(this._end+e.PADDING,this._duration),this._source.onloadedmetadata=function(){n._source&&(n._source.currentTime=i,n._source.onloadedmetadata=null,n.emit("progress",i,n._duration),_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.add(n._onUpdate,n))},this._source.onended=this._onComplete.bind(this),this._source.play(),this.emit("start")},e.prototype._onUpdate=function(){this.emit("progress",this.progress,this._duration),this._source.currentTime>=this._end&&!this._source.loop&&this._onComplete()},e.prototype._onComplete=function(){_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.remove(this._onUpdate,this),this._internalStop(),this.emit("progress",1,this._duration),this.emit("end",this)},e.prototype.destroy=function(){_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.remove(this._onUpdate,this),this.removeAllListeners();var t=this._source;t&&(t.onended=null,t.onplay=null,t.onpause=null,this._internalStop()),this._source=null,this._speed=1,this._volume=1,this._loop=!1,this._end=null,this._start=0,this._duration=0,this._playing=!1,this._pausedReal=!1,this._paused=!1,this._muted=!1,this._media&&(this._media.context.off("refresh",this.refresh,this),this._media.context.off("refreshPaused",this.refreshPaused,this),this._media=null)},e.prototype.toString=function(){return"[HTMLAudioInstance id=".concat(this.id,"]")},e.PADDING=.1,e}(_pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.init=function(t){this.parent=t,this._source=t.options.source||new Audio,t.url&&(this._source.src=t.url)},e.prototype.create=function(){return new m(this)},Object.defineProperty(e.prototype,"isPlayable",{get:function(){return!!this._source&&4===this._source.readyState},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this._source.duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this.parent.context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"filters",{get:function(){return null},set:function(t){},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this.removeAllListeners(),this.parent=null,this._source&&(this._source.src="",this._source.load(),this._source=null)},Object.defineProperty(e.prototype,"source",{get:function(){return this._source},enumerable:!1,configurable:!0}),e.prototype.load=function(t){var e=this._source,n=this.parent;if(4!==e.readyState)if(n.url){e.src=n.url;var o=function(){s(),n.isLoaded=!0;var e=n.autoPlayStart();t&&t(null,n,e)},i=function(){s(),t&&t(new Error("Sound loading has been aborted"))},r=function(){s();var n="Failed to load audio element (code: ".concat(e.error.code,")");t&&t(new Error(n))},s=function(){e.removeEventListener("canplaythrough",o),e.removeEventListener("load",o),e.removeEventListener("abort",i),e.removeEventListener("error",r)};e.addEventListener("canplaythrough",o,!1),e.addEventListener("load",o,!1),e.addEventListener("abort",i,!1),e.addEventListener("error",r,!1),e.load()}else t(new Error("sound.url or sound.source must be set"));else{n.isLoaded=!0;var u=n.autoPlayStart();t&&setTimeout((function(){t(null,n,u)}),0)}},e}(_pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),b=function(){function t(t,e){this.parent=t,Object.assign(this,e),this.duration=this.end-this.start}return t.prototype.play=function(t){return this.parent.play({complete:t,speed:this.speed||this.parent.speed,end:this.end,start:this.start,loop:this.loop})},t.prototype.destroy=function(){this.parent=null},t}(),v=function(){function t(){}return t.setParamValue=function(t,e){if(t.setValueAtTime){var n=s().context;t.setValueAtTime(e,n.audioContext.currentTime)}else t.value=e;return e},t}(),P=0,x=function(t){function e(e){var n=t.call(this)||this;return n.id=P++,n._media=null,n._paused=!1,n._muted=!1,n._elapsed=0,n.init(e),n}return a(e,t),e.prototype.set=function(t,e){if(void 0===this[t])throw new Error("Property with name ".concat(t," does not exist."));switch(t){case"speed":this.speed=e;break;case"volume":this.volume=e;break;case"muted":this.muted=e;break;case"loop":this.loop=e;break;case"paused":this.paused=e}return this},e.prototype.stop=function(){this._source&&(this._internalStop(),this.emit("stop"))},Object.defineProperty(e.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t,this.refresh(),this._update(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this._volume},set:function(t){this._volume=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"muted",{get:function(){return this._muted},set:function(t){this._muted=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loop",{get:function(){return this._loop},set:function(t){this._loop=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"filters",{get:function(){return this._filters},set:function(t){var e;this._filters&&(null===(e=this._filters)||void 0===e||e.filter((function(t){return t})).forEach((function(t){return t.disconnect()})),this._filters=null,this._source.connect(this._gain)),this._filters=(null==t?void 0:t.length)?t.slice(0):null,this.refresh()},enumerable:!1,configurable:!0}),e.prototype.refresh=function(){if(this._source){var t=this._media.context,e=this._media.parent;this._source.loop=this._loop||e.loop;var n=t.volume*(t.muted?0:1),o=e.volume*(e.muted?0:1),i=this._volume*(this._muted?0:1);v.setParamValue(this._gain.gain,i*o*n),v.setParamValue(this._source.playbackRate,this._speed*e.speed*t.speed),this.applyFilters()}},e.prototype.applyFilters=function(){var t;if(null===(t=this._filters)||void 0===t?void 0:t.length){this._source.disconnect();var e=this._source;this._filters.forEach((function(t){e.connect(t.destination),e=t})),e.connect(this._gain)}},e.prototype.refreshPaused=function(){var t=this._media.context,e=this._media.parent,n=this._paused||e.paused||t.paused;n!==this._pausedReal&&(this._pausedReal=n,n?(this._internalStop(),this.emit("paused")):(this.emit("resumed"),this.play({start:this._elapsed%this._duration,end:this._end,speed:this._speed,loop:this._loop,volume:this._volume})),this.emit("pause",n))},e.prototype.play=function(t){var e=t.start,n=t.end,o=t.speed,i=t.loop,r=t.volume,s=t.muted,u=t.filters;this._paused=!1;var a=this._media.nodes.cloneBufferSource(),c=a.source,l=a.gain;this._source=c,this._gain=l,this._speed=o,this._volume=r,this._loop=!!i,this._muted=s,this._filters=u,this.refresh();var p=this._source.buffer.duration;this._duration=p,this._end=n,this._lastUpdate=this._now(),this._elapsed=e,this._source.onended=this._onComplete.bind(this),this._loop?(this._source.loopEnd=n,this._source.loopStart=e,this._source.start(0,e)):n?this._source.start(0,e,n-e):this._source.start(0,e),this.emit("start"),this._update(!0),this.enableTicker(!0)},e.prototype.enableTicker=function(t){_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.remove(this._updateListener,this),t&&_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.add(this._updateListener,this)},Object.defineProperty(e.prototype,"progress",{get:function(){return this._progress},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this._paused},set:function(t){this._paused=t,this.refreshPaused()},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){var t;this.removeAllListeners(),this._internalStop(),this._gain&&(this._gain.disconnect(),this._gain=null),this._media&&(this._media.context.events.off("refresh",this.refresh,this),this._media.context.events.off("refreshPaused",this.refreshPaused,this),this._media=null),null===(t=this._filters)||void 0===t||t.forEach((function(t){return t.disconnect()})),this._filters=null,this._end=null,this._speed=1,this._volume=1,this._loop=!1,this._elapsed=0,this._duration=0,this._paused=!1,this._muted=!1,this._pausedReal=!1},e.prototype.toString=function(){return"[WebAudioInstance id=".concat(this.id,"]")},e.prototype._now=function(){return this._media.context.audioContext.currentTime},e.prototype._updateListener=function(){this._update()},e.prototype._update=function(t){if(void 0===t&&(t=!1),this._source){var e=this._now(),n=e-this._lastUpdate;if(n>0||t){var o=this._source.playbackRate.value;this._elapsed+=n*o,this._lastUpdate=e;var i=this._duration,r=void 0;if(this._source.loopStart){var s=this._source.loopEnd-this._source.loopStart;r=(this._source.loopStart+this._elapsed%s)/i}else r=this._elapsed%i/i;this._progress=r,this.emit("progress",this._progress,i)}}},e.prototype.init=function(t){this._media=t,t.context.events.on("refresh",this.refresh,this),t.context.events.on("refreshPaused",this.refreshPaused,this)},e.prototype._internalStop=function(){if(this._source){this.enableTicker(!1),this._source.onended=null,this._source.stop(0),this._source.disconnect();try{this._source.buffer=null}catch(t){}this._source=null}},e.prototype._onComplete=function(){if(this._source){this.enableTicker(!1),this._source.onended=null,this._source.disconnect();try{this._source.buffer=null}catch(t){}}this._source=null,this._progress=1,this.emit("progress",1,this._duration),this.emit("end",this)},e}(_pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),O=function(){function t(t,e){this._output=e,this._input=t}return Object.defineProperty(t.prototype,"destination",{get:function(){return this._input},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filters",{get:function(){return this._filters},set:function(t){var e=this;if(this._filters&&(this._filters.forEach((function(t){t&&t.disconnect()})),this._filters=null,this._input.connect(this._output)),t&&t.length){this._filters=t.slice(0),this._input.disconnect();var n=null;t.forEach((function(t){null===n?e._input.connect(t.destination):n.connect(t.destination),n=t})),n.connect(this._output)}},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){this.filters=null,this._input=null,this._output=null},t}(),j=function(t){function e(e){var n=this,o=e.audioContext,i=o.createBufferSource(),r=o.createGain(),s=o.createAnalyser();return i.connect(s),s.connect(r),r.connect(e.destination),(n=t.call(this,s,r)||this).context=e,n.bufferSource=i,n.gain=r,n.analyser=s,n}return a(e,t),Object.defineProperty(e.prototype,"script",{get:function(){return this._script||(this._script=this.context.audioContext.createScriptProcessor(e.BUFFER_SIZE),this._script.connect(this.context.destination)),this._script},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.bufferSource.disconnect(),this._script&&this._script.disconnect(),this.gain.disconnect(),this.analyser.disconnect(),this.bufferSource=null,this._script=null,this.gain=null,this.analyser=null,this.context=null},e.prototype.cloneBufferSource=function(){var t=this.bufferSource,e=this.context.audioContext.createBufferSource();e.buffer=t.buffer,v.setParamValue(e.playbackRate,t.playbackRate.value),e.loop=t.loop;var n=this.context.audioContext.createGain();return e.connect(n),n.connect(this.destination),{source:e,gain:n}},Object.defineProperty(e.prototype,"bufferSize",{get:function(){return this.script.bufferSize},enumerable:!1,configurable:!0}),e.BUFFER_SIZE=0,e}(O),w=function(){function t(){}return t.prototype.init=function(t){this.parent=t,this._nodes=new j(this.context),this._source=this._nodes.bufferSource,this.source=t.options.source},t.prototype.destroy=function(){this.parent=null,this._nodes.destroy(),this._nodes=null;try{this._source.buffer=null}catch(t){}this._source=null,this.source=null},t.prototype.create=function(){return new x(this)},Object.defineProperty(t.prototype,"context",{get:function(){return this.parent.context},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPlayable",{get:function(){return!!this._source&&!!this._source.buffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filters",{get:function(){return this._nodes.filters},set:function(t){this._nodes.filters=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){return this._source.buffer.duration},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"buffer",{get:function(){return this._source.buffer},set:function(t){this._source.buffer=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nodes",{get:function(){return this._nodes},enumerable:!1,configurable:!0}),t.prototype.load=function(t){this.source?this._decode(this.source,t):this.parent.url?this._loadUrl(t):t&&t(new Error("sound.url or sound.source must be set"))},t.prototype._loadUrl=function(t){var e=this,n=new XMLHttpRequest,o=this.parent.url;n.open("GET",o,!0),n.responseType="arraybuffer",n.onload=function(){e.source=n.response,e._decode(n.response,t)},n.send()},t.prototype._decode=function(t,e){var n=this,o=function(t,o){if(t)e&&e(t);else{n.parent.isLoaded=!0,n.buffer=o;var i=n.parent.autoPlayStart();e&&e(null,n.parent,i)}};t instanceof AudioBuffer?o(null,t):this.parent.context.decode(t,o)},t}(),A=function(){function t(t,e){this.media=t,this.options=e,this._instances=[],this._sprites={},this.media.init(this);var n=e.complete;this._autoPlayOptions=n?{complete:n}:null,this.isLoaded=!1,this.isPlaying=!1,this.autoPlay=e.autoPlay,this.singleInstance=e.singleInstance,this.preload=e.preload||this.autoPlay,this.url=e.url,this.speed=e.speed,this.volume=e.volume,this.loop=e.loop,e.sprites&&this.addSprites(e.sprites),this.preload&&this._preload(e.loaded)}return t.from=function(e){var n={};return"string"==typeof e?n.url=e:e instanceof ArrayBuffer||e instanceof AudioBuffer||e instanceof HTMLAudioElement?n.source=e:n=e,(n=c({autoPlay:!1,singleInstance:!1,url:null,source:null,preload:!1,volume:1,speed:1,complete:null,loaded:null,loop:!1},n)).url&&(n.url=d(n.url)),Object.freeze(n),new t(s().useLegacy?new g:new w,n)},Object.defineProperty(t.prototype,"context",{get:function(){return s().context},enumerable:!1,configurable:!0}),t.prototype.pause=function(){return this.isPlaying=!1,this.paused=!0,this},t.prototype.resume=function(){return this.isPlaying=this._instances.length>0,this.paused=!1,this},Object.defineProperty(t.prototype,"paused",{get:function(){return this._paused},set:function(t){this._paused=t,this.refreshPaused()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filters",{get:function(){return this.media.filters},set:function(t){this.media.filters=t},enumerable:!1,configurable:!0}),t.prototype.addSprites=function(t,e){if("object"==typeof t){var n={};for(var o in t)n[o]=this.addSprites(o,t[o]);return n}var i=new b(this,e);return this._sprites[t]=i,i},t.prototype.destroy=function(){this._removeInstances(),this.removeSprites(),this.media.destroy(),this.media=null,this._sprites=null,this._instances=null},t.prototype.removeSprites=function(t){if(t){var e=this._sprites[t];void 0!==e&&(e.destroy(),delete this._sprites[t])}else for(var n in this._sprites)this.removeSprites(n);return this},Object.defineProperty(t.prototype,"isPlayable",{get:function(){return this.isLoaded&&this.media&&this.media.isPlayable},enumerable:!1,configurable:!0}),t.prototype.stop=function(){if(!this.isPlayable)return this.autoPlay=!1,this._autoPlayOptions=null,this;this.isPlaying=!1;for(var t=this._instances.length-1;t>=0;t--)this._instances[t].stop();return this},t.prototype.play=function(t,e){var n,o=this;"string"==typeof t?n={sprite:r=t,loop:this.loop,complete:e}:"function"==typeof t?(n={}).complete=t:n=t;if((n=c({complete:null,loaded:null,sprite:null,end:null,start:0,volume:1,speed:1,muted:!1,loop:!1},n||{})).sprite){var i=n.sprite,r=this._sprites[i];n.start=r.start+(n.start||0),n.end=r.end,n.speed=r.speed||1,n.loop=r.loop||n.loop,delete n.sprite}if(n.offset&&(n.start=n.offset),!this.isLoaded)return new Promise((function(t,e){o.autoPlay=!0,o._autoPlayOptions=n,o._preload((function(o,i,r){o?e(o):(n.loaded&&n.loaded(o,i,r),t(r))}))}));(this.singleInstance||n.singleInstance)&&this._removeInstances();var s=this._createInstance();return this._instances.push(s),this.isPlaying=!0,s.once("end",(function(){n.complete&&n.complete(o),o._onComplete(s)})),s.once("stop",(function(){o._onComplete(s)})),s.play(n),s},t.prototype.refresh=function(){for(var t=this._instances.length,e=0;e<t;e++)this._instances[e].refresh()},t.prototype.refreshPaused=function(){for(var t=this._instances.length,e=0;e<t;e++)this._instances[e].refreshPaused()},Object.defineProperty(t.prototype,"volume",{get:function(){return this._volume},set:function(t){this._volume=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"muted",{get:function(){return this._muted},set:function(t){this._muted=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loop",{get:function(){return this._loop},set:function(t){this._loop=t,this.refresh()},enumerable:!1,configurable:!0}),t.prototype._preload=function(t){this.media.load(t)},Object.defineProperty(t.prototype,"instances",{get:function(){return this._instances},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sprites",{get:function(){return this._sprites},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){return this.media.duration},enumerable:!1,configurable:!0}),t.prototype.autoPlayStart=function(){var t;return this.autoPlay&&(t=this.play(this._autoPlayOptions)),t},t.prototype._removeInstances=function(){for(var t=this._instances.length-1;t>=0;t--)this._poolInstance(this._instances[t]);this._instances.length=0},t.prototype._onComplete=function(t){if(this._instances){var e=this._instances.indexOf(t);e>-1&&this._instances.splice(e,1),this.isPlaying=this._instances.length>0}this._poolInstance(t)},t.prototype._createInstance=function(){if(t._pool.length>0){var e=t._pool.pop();return e.init(this.media),e}return this.media.create()},t.prototype._poolInstance=function(e){e.destroy(),t._pool.indexOf(e)<0&&t._pool.push(e)},t._pool=[],t}(),F=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.speed=1,e.muted=!1,e.volume=1,e.paused=!1,e}return a(e,t),e.prototype.refresh=function(){this.emit("refresh")},e.prototype.refreshPaused=function(){this.emit("refreshPaused")},Object.defineProperty(e.prototype,"filters",{get:function(){return null},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"audioContext",{get:function(){return null},enumerable:!1,configurable:!0}),e.prototype.toggleMute=function(){return this.muted=!this.muted,this.refresh(),this.muted},e.prototype.togglePause=function(){return this.paused=!this.paused,this.refreshPaused(),this.paused},e.prototype.destroy=function(){this.removeAllListeners()},e}(_pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),C=function(t){function e(){var o=this,i=window,r=new e.AudioContext,s=r.createDynamicsCompressor(),u=r.createAnalyser();return u.connect(s),s.connect(r.destination),(o=t.call(this,u,s)||this)._ctx=r,o._offlineCtx=new e.OfflineAudioContext(1,2,i.OfflineAudioContext?r.sampleRate:44100),o._unlocked=!1,o.compressor=s,o.analyser=u,o.events=new _pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter,o.volume=1,o.speed=1,o.muted=!1,o.paused=!1,"running"!==r.state&&(o._unlock(),o._unlock=o._unlock.bind(o),document.addEventListener("mousedown",o._unlock,!0),document.addEventListener("touchstart",o._unlock,!0),document.addEventListener("touchend",o._unlock,!0)),o}return a(e,t),e.prototype._unlock=function(){this._unlocked||(this.playEmptySound(),"running"===this._ctx.state&&(document.removeEventListener("mousedown",this._unlock,!0),document.removeEventListener("touchend",this._unlock,!0),document.removeEventListener("touchstart",this._unlock,!0),this._unlocked=!0))},e.prototype.playEmptySound=function(){var t=this._ctx.createBufferSource();t.buffer=this._ctx.createBuffer(1,1,22050),t.connect(this._ctx.destination),t.start(0,0,0),"suspended"===t.context.state&&t.context.resume()},Object.defineProperty(e,"AudioContext",{get:function(){var t=window;return t.AudioContext||t.webkitAudioContext||null},enumerable:!1,configurable:!0}),Object.defineProperty(e,"OfflineAudioContext",{get:function(){var t=window;return t.OfflineAudioContext||t.webkitOfflineAudioContext||null},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this);var e=this._ctx;void 0!==e.close&&e.close(),this.events.removeAllListeners(),this.analyser.disconnect(),this.compressor.disconnect(),this.analyser=null,this.compressor=null,this.events=null,this._offlineCtx=null,this._ctx=null},Object.defineProperty(e.prototype,"audioContext",{get:function(){return this._ctx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offlineContext",{get:function(){return this._offlineCtx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this._paused},set:function(t){t&&"running"===this._ctx.state?this._ctx.suspend():t||"suspended"!==this._ctx.state||this._ctx.resume(),this._paused=t},enumerable:!1,configurable:!0}),e.prototype.refresh=function(){this.events.emit("refresh")},e.prototype.refreshPaused=function(){this.events.emit("refreshPaused")},e.prototype.toggleMute=function(){return this.muted=!this.muted,this.refresh(),this.muted},e.prototype.togglePause=function(){return this.paused=!this.paused,this.refreshPaused(),this._paused},e.prototype.decode=function(t,e){var n=function(t){e(new Error(t.message||"Unable to decode file"))},o=this._offlineCtx.decodeAudioData(t,(function(t){e(null,t)}),n);o&&o.catch(n)},e}(O),E=function(){function t(){this.init()}return t.prototype.init=function(){return this.supported&&(this._webAudioContext=new C),this._htmlAudioContext=new F,this._sounds={},this.useLegacy=!this.supported,this},Object.defineProperty(t.prototype,"context",{get:function(){return this._context},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filtersAll",{get:function(){return this.useLegacy?[]:this._context.filters},set:function(t){this.useLegacy||(this._context.filters=t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"supported",{get:function(){return null!==C.AudioContext},enumerable:!1,configurable:!0}),t.prototype.add=function(t,e){if("object"==typeof t){var n={};for(var o in t){var i=this._getOptions(t[o],e);n[o]=this.add(o,i)}return n}if(e instanceof A)return this._sounds[t]=e,e;var r=this._getOptions(e),s=A.from(r);return this._sounds[t]=s,s},t.prototype._getOptions=function(t,e){var n;return n="string"==typeof t?{url:t}:t instanceof ArrayBuffer||t instanceof AudioBuffer||t instanceof HTMLAudioElement?{source:t}:t,n=c(c({},n),e||{})},Object.defineProperty(t.prototype,"useLegacy",{get:function(){return this._useLegacy},set:function(t){_.setLegacy(t),this._useLegacy=t,this._context=!t&&this.supported?this._webAudioContext:this._htmlAudioContext},enumerable:!1,configurable:!0}),t.prototype.remove=function(t){return this.exists(t,!0),this._sounds[t].destroy(),delete this._sounds[t],this},Object.defineProperty(t.prototype,"volumeAll",{get:function(){return this._context.volume},set:function(t){this._context.volume=t,this._context.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"speedAll",{get:function(){return this._context.speed},set:function(t){this._context.speed=t,this._context.refresh()},enumerable:!1,configurable:!0}),t.prototype.togglePauseAll=function(){return this._context.togglePause()},t.prototype.pauseAll=function(){return this._context.paused=!0,this._context.refreshPaused(),this},t.prototype.resumeAll=function(){return this._context.paused=!1,this._context.refreshPaused(),this},t.prototype.toggleMuteAll=function(){return this._context.toggleMute()},t.prototype.muteAll=function(){return this._context.muted=!0,this._context.refresh(),this},t.prototype.unmuteAll=function(){return this._context.muted=!1,this._context.refresh(),this},t.prototype.removeAll=function(){for(var t in this._sounds)this._sounds[t].destroy(),delete this._sounds[t];return this},t.prototype.stopAll=function(){for(var t in this._sounds)this._sounds[t].stop();return this},t.prototype.exists=function(t,e){return void 0===e&&(e=!1),!!this._sounds[t]},t.prototype.find=function(t){return this.exists(t,!0),this._sounds[t]},t.prototype.play=function(t,e){return this.find(t).play(e)},t.prototype.stop=function(t){return this.find(t).stop()},t.prototype.pause=function(t){return this.find(t).pause()},t.prototype.resume=function(t){return this.find(t).resume()},t.prototype.volume=function(t,e){var n=this.find(t);return void 0!==e&&(n.volume=e),n.volume},t.prototype.speed=function(t,e){var n=this.find(t);return void 0!==e&&(n.speed=e),n.speed},t.prototype.duration=function(t){return this.find(t).duration},t.prototype.close=function(){return this.removeAll(),this._sounds=null,this._webAudioContext&&(this._webAudioContext.destroy(),this._webAudioContext=null),this._htmlAudioContext&&(this._htmlAudioContext.destroy(),this._htmlAudioContext=null),this._context=null,this},t}(),L={__proto__:null,HTMLAudioMedia:g,HTMLAudioInstance:m,HTMLAudioContext:F},S=function(){function t(t,e){this.init(t,e)}return t.prototype.init=function(t,e){this.destination=t,this.source=e||t},t.prototype.connect=function(t){this.source.connect(t)},t.prototype.disconnect=function(){this.source.disconnect()},t.prototype.destroy=function(){this.disconnect(),this.destination=null,this.source=null},t}(),k={__proto__:null,Filter:S,EqualizerFilter:function(t){function e(n,o,i,r,u,a,c,l,p,h){void 0===n&&(n=0),void 0===o&&(o=0),void 0===i&&(i=0),void 0===r&&(r=0),void 0===u&&(u=0),void 0===a&&(a=0),void 0===c&&(c=0),void 0===l&&(l=0),void 0===p&&(p=0),void 0===h&&(h=0);var f=this;if(!s().useLegacy){var d=[{f:e.F32,type:"lowshelf",gain:n},{f:e.F64,type:"peaking",gain:o},{f:e.F125,type:"peaking",gain:i},{f:e.F250,type:"peaking",gain:r},{f:e.F500,type:"peaking",gain:u},{f:e.F1K,type:"peaking",gain:a},{f:e.F2K,type:"peaking",gain:c},{f:e.F4K,type:"peaking",gain:l},{f:e.F8K,type:"peaking",gain:p},{f:e.F16K,type:"highshelf",gain:h}].map((function(t){var e=s().context.audioContext.createBiquadFilter();return e.type=t.type,v.setParamValue(e.Q,1),e.frequency.value=t.f,v.setParamValue(e.gain,t.gain),e}));(f=t.call(this,d[0],d[d.length-1])||this).bands=d,f.bandsMap={};for(var _=0;_<f.bands.length;_++){var y=f.bands[_];_>0&&f.bands[_-1].connect(y),f.bandsMap[y.frequency.value]=y}return f}f=t.call(this,null)||this}return a(e,t),e.prototype.setGain=function(t,e){if(void 0===e&&(e=0),!this.bandsMap[t])throw new Error("No band found for frequency ".concat(t));v.setParamValue(this.bandsMap[t].gain,e)},e.prototype.getGain=function(t){if(!this.bandsMap[t])throw new Error("No band found for frequency ".concat(t));return this.bandsMap[t].gain.value},Object.defineProperty(e.prototype,"f32",{get:function(){return this.getGain(e.F32)},set:function(t){this.setGain(e.F32,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f64",{get:function(){return this.getGain(e.F64)},set:function(t){this.setGain(e.F64,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f125",{get:function(){return this.getGain(e.F125)},set:function(t){this.setGain(e.F125,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f250",{get:function(){return this.getGain(e.F250)},set:function(t){this.setGain(e.F250,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f500",{get:function(){return this.getGain(e.F500)},set:function(t){this.setGain(e.F500,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f1k",{get:function(){return this.getGain(e.F1K)},set:function(t){this.setGain(e.F1K,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f2k",{get:function(){return this.getGain(e.F2K)},set:function(t){this.setGain(e.F2K,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f4k",{get:function(){return this.getGain(e.F4K)},set:function(t){this.setGain(e.F4K,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f8k",{get:function(){return this.getGain(e.F8K)},set:function(t){this.setGain(e.F8K,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f16k",{get:function(){return this.getGain(e.F16K)},set:function(t){this.setGain(e.F16K,t)},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this.bands.forEach((function(t){v.setParamValue(t.gain,0)}))},e.prototype.destroy=function(){this.bands.forEach((function(t){t.disconnect()})),this.bands=null,this.bandsMap=null},e.F32=32,e.F64=64,e.F125=125,e.F250=250,e.F500=500,e.F1K=1e3,e.F2K=2e3,e.F4K=4e3,e.F8K=8e3,e.F16K=16e3,e}(S),DistortionFilter:function(t){function e(e){void 0===e&&(e=0);var n=this;if(!s().useLegacy){var o=s().context.audioContext.createWaveShaper();return(n=t.call(this,o)||this)._distortion=o,n.amount=e,n}n=t.call(this,null)||this}return a(e,t),Object.defineProperty(e.prototype,"amount",{get:function(){return this._amount},set:function(t){this._amount=t;for(var e,n=1e3*t,o=44100,i=new Float32Array(o),r=Math.PI/180,s=0;s<o;++s)e=2*s/o-1,i[s]=(3+n)*e*20*r/(Math.PI+n*Math.abs(e));this._distortion.curve=i,this._distortion.oversample="4x"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this._distortion=null,t.prototype.destroy.call(this)},e}(S),StereoFilter:function(t){function e(e){void 0===e&&(e=0);var n=this;if(!s().useLegacy){var o,i,r,u=s().context.audioContext;return u.createStereoPanner?r=o=u.createStereoPanner():((i=u.createPanner()).panningModel="equalpower",r=i),(n=t.call(this,r)||this)._stereo=o,n._panner=i,n.pan=e,n}n=t.call(this,null)||this}return a(e,t),Object.defineProperty(e.prototype,"pan",{get:function(){return this._pan},set:function(t){this._pan=t,this._stereo?v.setParamValue(this._stereo.pan,t):this._panner.setPosition(t,0,1-Math.abs(t))},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this._stereo=null,this._panner=null},e}(S),ReverbFilter:function(t){function e(e,n,o){void 0===e&&(e=3),void 0===n&&(n=2),void 0===o&&(o=!1);var i=this;if(!s().useLegacy)return(i=t.call(this,null)||this)._seconds=i._clamp(e,1,50),i._decay=i._clamp(n,0,100),i._reverse=o,i._rebuild(),i;i=t.call(this,null)||this}return a(e,t),e.prototype._clamp=function(t,e,n){return Math.min(n,Math.max(e,t))},Object.defineProperty(e.prototype,"seconds",{get:function(){return this._seconds},set:function(t){this._seconds=this._clamp(t,1,50),this._rebuild()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"decay",{get:function(){return this._decay},set:function(t){this._decay=this._clamp(t,0,100),this._rebuild()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"reverse",{get:function(){return this._reverse},set:function(t){this._reverse=t,this._rebuild()},enumerable:!1,configurable:!0}),e.prototype._rebuild=function(){for(var t,e=s().context.audioContext,n=e.sampleRate,o=n*this._seconds,i=e.createBuffer(2,o,n),r=i.getChannelData(0),u=i.getChannelData(1),a=0;a<o;a++)t=this._reverse?o-a:a,r[a]=(2*Math.random()-1)*Math.pow(1-t/o,this._decay),u[a]=(2*Math.random()-1)*Math.pow(1-t/o,this._decay);var c=s().context.audioContext.createConvolver();c.buffer=i,this.init(c)},e}(S),MonoFilter:function(t){function e(){var e=this;if(!s().useLegacy){var n=s().context.audioContext,o=n.createChannelSplitter(),i=n.createChannelMerger();return i.connect(o),(e=t.call(this,i,o)||this)._merger=i,e}e=t.call(this,null)||this}return a(e,t),e.prototype.destroy=function(){this._merger.disconnect(),this._merger=null,t.prototype.destroy.call(this)},e}(S),StreamFilter:function(t){function e(){var e=this;if(!s().useLegacy){var n=s().context.audioContext,o=n.createMediaStreamDestination(),i=n.createMediaStreamSource(o.stream);return(e=t.call(this,o,i)||this)._stream=o.stream,e}e=t.call(this,null)||this}return a(e,t),Object.defineProperty(e.prototype,"stream",{get:function(){return this._stream},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this._stream=null,t.prototype.destroy.call(this)},e}(S),TelephoneFilter:function(t){function e(){if(!s().useLegacy){var e=s().context.audioContext,n=e.createBiquadFilter(),o=e.createBiquadFilter(),i=e.createBiquadFilter(),r=e.createBiquadFilter();return n.type="lowpass",v.setParamValue(n.frequency,2e3),o.type="lowpass",v.setParamValue(o.frequency,2e3),i.type="highpass",v.setParamValue(i.frequency,500),r.type="highpass",v.setParamValue(r.frequency,500),n.connect(o),o.connect(i),i.connect(r),t.call(this,n,r)||this}t.call(this,null)}return a(e,t),e}(S)},M={__proto__:null,WebAudioMedia:w,WebAudioInstance:x,WebAudioNodes:j,WebAudioContext:C,WebAudioUtils:v},T=0;var G={__proto__:null,playOnce:function(t,e){var n="alias".concat(T++);return s().add(n,{url:t,preload:!0,autoPlay:!0,loaded:function(t){t&&(s().remove(n),e&&e(t))},complete:function(){s().remove(n),e&&e(null)}}),n},get PLAY_ID(){return T},render:function(t,e){var n=document.createElement("canvas");e=c({width:512,height:128,fill:"black"},e||{}),n.width=e.width,n.height=e.height;var o=_pixi_core__WEBPACK_IMPORTED_MODULE_3__.BaseTexture.from(n);if(!(t.media instanceof w))return o;var r=t.media,s=n.getContext("2d");s.fillStyle=e.fill;for(var u=r.buffer.getChannelData(0),a=Math.ceil(u.length/e.width),l=e.height/2,p=0;p<e.width;p++){for(var h=1,f=-1,d=0;d<a;d++){var _=u[p*a+d];_<h&&(h=_),_>f&&(f=_)}s.fillRect(p,(1+h)*l,1,Math.max(1,(f-h)*l))}return o},resolveUrl:d,sineTone:function(t,e){void 0===t&&(t=200),void 0===e&&(e=1);var n=A.from({singleInstance:!0});if(!(n.media instanceof w))return n;for(var o=n.media,i=n.context.audioContext.createBuffer(1,48e3*e,48e3),r=i.getChannelData(0),s=0;s<r.length;s++){var u=t*(s/i.sampleRate)*Math.PI;r[s]=2*Math.sin(u)}return o.buffer=i,n.isLoaded=!0,n},validateFormats:h,supported:p,extensions:l},I=function(t){return r=t,t}(new E);_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.Loader.registerPlugin(_);
35072
35072
  //# sourceMappingURL=pixi-sound.esm.js.map
35073
35073
 
35074
35074
 
@@ -47516,7 +47516,7 @@ name: moveable
47516
47516
  license: MIT
47517
47517
  author: Daybrush
47518
47518
  repository: git+https://github.com/daybrush/moveable.git
47519
- version: 0.27.2
47519
+ version: 0.27.3
47520
47520
  */
47521
47521
 
47522
47522
 
@@ -47905,9 +47905,7 @@ function (_super) {
47905
47905
 
47906
47906
  _this.tempElement = document.createElement("div");
47907
47907
 
47908
- var nextOptions = __assign({
47909
- container: parentElement || document.body
47910
- }, options);
47908
+ var nextOptions = __assign({}, options);
47911
47909
 
47912
47910
  var events = {};
47913
47911
  EVENTS.forEach(function (name) {
@@ -68069,7 +68067,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
68069
68067
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
68070
68068
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
68071
68069
  };
68072
- var _DebugMng_instances, _a, _DebugMng_scrItr, _DebugMng_hTag, _DebugMng_title, _DebugMng_spnDbg, _DebugMng_first, _DebugMng_log, _DebugMng_trace, _DebugMng_trace_beforeNew, _DebugMng_st_trace, _DebugMng_dspDbg;
68070
+ var _DebugMng_instances, _a, _DebugMng_scrItr, _DebugMng_hTag, _DebugMng_title, _DebugMng_spnDbg, _DebugMng_first, _DebugMng_log, _DebugMng_trace, _DebugMng_st_trace, _DebugMng_dspDbg;
68073
68071
  Object.defineProperty(exports, "__esModule", ({ value: true }));
68074
68072
  exports.DebugMng = void 0;
68075
68073
  const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
@@ -68098,7 +68096,30 @@ class DebugMng {
68098
68096
  destroy() {
68099
68097
  __classPrivateFieldSet(DebugMng, _a, () => false, "f", _DebugMng_title);
68100
68098
  document.body.removeChild(__classPrivateFieldGet(DebugMng, _a, "f", _DebugMng_spnDbg));
68101
- DebugMng.myTrace = __classPrivateFieldGet(DebugMng, _a, "m", _DebugMng_trace_beforeNew);
68099
+ DebugMng.myTrace = DebugMng.trace_beforeNew;
68100
+ }
68101
+ static trace_beforeNew(txt, lvl = 'E') {
68102
+ let mes = `{${lvl}} ` + txt;
68103
+ let sty = '';
68104
+ switch (lvl) {
68105
+ case 'D':
68106
+ sty = `color:#${CmnLib_1.CmnLib.isDarkMode ? '49F' : '05A'};`;
68107
+ break;
68108
+ case 'W':
68109
+ sty = 'color:#FF8800;';
68110
+ break;
68111
+ case 'F':
68112
+ sty = 'color:#BB0000;';
68113
+ break;
68114
+ case 'ET': throw mes;
68115
+ case 'E':
68116
+ console.error('%c' + mes, 'color:#FF3300;');
68117
+ return;
68118
+ default:
68119
+ sty = 'color:black;';
68120
+ mes = ' ' + mes;
68121
+ }
68122
+ console.info('%c' + mes, sty);
68102
68123
  }
68103
68124
  ;
68104
68125
  }
@@ -68115,28 +68136,6 @@ _a = DebugMng, _DebugMng_first = new WeakMap(), _DebugMng_instances = new WeakSe
68115
68136
  }, _DebugMng_trace = function _DebugMng_trace(hArg) {
68116
68137
  DebugMng.myTrace(hArg.text || `(text is ${hArg.text})`, 'I');
68117
68138
  return false;
68118
- }, _DebugMng_trace_beforeNew = function _DebugMng_trace_beforeNew(txt, lvl = 'E') {
68119
- let mes = `{${lvl}} ` + txt;
68120
- let sty = '';
68121
- switch (lvl) {
68122
- case 'D':
68123
- sty = `color:#${CmnLib_1.CmnLib.isDarkMode ? '49F' : '05A'};`;
68124
- break;
68125
- case 'W':
68126
- sty = 'color:#FF8800;';
68127
- break;
68128
- case 'F':
68129
- sty = 'color:#BB0000;';
68130
- break;
68131
- case 'ET': throw mes;
68132
- case 'E':
68133
- console.error('%c' + mes, 'color:#FF3300;');
68134
- return;
68135
- default:
68136
- sty = 'color:black;';
68137
- mes = ' ' + mes;
68138
- }
68139
- console.info('%c' + mes, sty);
68140
68139
  }, _DebugMng_st_trace = function _DebugMng_st_trace(txt, lvl = 'E') {
68141
68140
  let mes = `{${lvl}} `;
68142
68141
  if (__classPrivateFieldGet(DebugMng, _a, "f", _DebugMng_scrItr) && __classPrivateFieldGet(DebugMng, _a, "f", _DebugMng_scrItr).lineNum > 0)
@@ -68196,7 +68195,7 @@ _DebugMng_scrItr = { value: void 0 };
68196
68195
  _DebugMng_hTag = { value: void 0 };
68197
68196
  _DebugMng_title = { value: void 0 };
68198
68197
  _DebugMng_spnDbg = { value: void 0 };
68199
- DebugMng.myTrace = __classPrivateFieldGet(DebugMng, _a, "m", _DebugMng_trace_beforeNew);
68198
+ DebugMng.myTrace = DebugMng.trace_beforeNew;
68200
68199
 
68201
68200
 
68202
68201
  /***/ }),
@@ -69661,6 +69660,7 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
69661
69660
  }
69662
69661
  return false;
69663
69662
  }, _EventMng_wait = function _EventMng_wait(hArg) {
69663
+ const time = (0, CmnLib_1.argChk_Num)(hArg, 'time', NaN);
69664
69664
  if (this.scrItr.skip4page)
69665
69665
  return false;
69666
69666
  if (this.val.getVal('tmp:sn.skip.enabled')) {
@@ -69675,7 +69675,7 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
69675
69675
  tw.end();
69676
69676
  }, "f");
69677
69677
  const tw = new tween_js_1.Tween({})
69678
- .to({}, (0, CmnLib_1.uint)((0, CmnLib_1.argChk_Num)(hArg, 'time', NaN)))
69678
+ .to({}, time)
69679
69679
  .onComplete(() => {
69680
69680
  __classPrivateFieldSet(this, _EventMng_cancelWait, () => { }, "f");
69681
69681
  tw.stop();
@@ -70024,7 +70024,7 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
70024
70024
  this.val.setVal_Nochk('tmp', frmnm + '.visible', v);
70025
70025
  const win = ifrm.contentWindow;
70026
70026
  __classPrivateFieldGet(this, _FrameMng_evtMng, "f").resvFlameEvent(win);
70027
- (win.sn_repRes)?.((img) => GrpLayer_1.GrpLayer.loadPic2Img((img.dataset.src ?? '').replace(/(.+\/|\..+)/g, ''), img));
70027
+ (win.sn_repRes)?.((img) => GrpLayer_1.GrpLayer.loadPic2Img((img.dataset.src ?? ''), img));
70028
70028
  this.main.resume();
70029
70029
  };
70030
70030
  });
@@ -71767,6 +71767,9 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
71767
71767
  return __classPrivateFieldGet(this, _LayerMng_evtMng, "f").waitLimitedEvent(hArg, () => __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_finish_trans).call(this));
71768
71768
  }, _LayerMng_finish_trans = function _LayerMng_finish_trans() { __classPrivateFieldGet(this, _LayerMng_tiTrans, "f").tw?.end(); return false; }, _LayerMng_quake = function _LayerMng_quake(hArg) {
71769
71769
  __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_finish_trans).call(this);
71770
+ const time = (0, CmnLib_1.argChk_Num)(hArg, 'time', NaN);
71771
+ if (time === 0)
71772
+ return false;
71770
71773
  if (this.val.getVal('tmp:sn.skip.enabled'))
71771
71774
  return false;
71772
71775
  if (__classPrivateFieldGet(this, _LayerMng_evtMng, "f").isSkippingByKeyDown())
@@ -71795,7 +71798,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
71795
71798
  __classPrivateFieldGet(this, _LayerMng_spTransFore, "f").filters = [];
71796
71799
  const repeat = (0, CmnLib_1.argChk_Num)(hArg, 'repeat', 1);
71797
71800
  const tw = new tween_js_1.Tween(__classPrivateFieldGet(this, _LayerMng_spTransFore, "f"))
71798
- .to({ x: 0, y: 0 }, (0, CmnLib_1.argChk_Num)(hArg, 'time', NaN))
71801
+ .to({ x: 0, y: 0 }, time)
71799
71802
  .delay((0, CmnLib_1.argChk_Num)(hArg, 'delay', 0))
71800
71803
  .easing(ease)
71801
71804
  .onUpdate(() => { fncH(); fncV(); })
@@ -74085,7 +74088,11 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
74085
74088
  this.val.setVal_Nochk('save', 'const.sn.sound.' + buf + '.fn', '');
74086
74089
  }
74087
74090
  this.val.flush();
74088
- if ((0, CmnLib_1.argChk_Num)(hArg, 'time', NaN) === 0) {
74091
+ const time = (0, CmnLib_1.argChk_Num)(hArg, 'time', NaN);
74092
+ const delay = (0, CmnLib_1.argChk_Num)(hArg, 'delay', 0);
74093
+ if ((time === 0 && delay === 0)
74094
+ || this.val.getVal('tmp:sn.skip.enabled')
74095
+ || __classPrivateFieldGet(this, _SoundMng_evtMng, "f").isSkippingByKeyDown()) {
74089
74096
  oSb.snd.volume = vol;
74090
74097
  if (stop)
74091
74098
  __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopse).call(this, hArg);
@@ -74094,8 +74101,8 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
74094
74101
  const ease = CmnTween_1.CmnTween.ease(hArg.ease);
74095
74102
  const repeat = (0, CmnLib_1.argChk_Num)(hArg, 'repeat', 1);
74096
74103
  oSb.twFade = new tween_js_1.Tween({ v: oSb.snd.volume })
74097
- .to({ v: vol }, (0, CmnLib_1.argChk_Num)(hArg, 'time', NaN))
74098
- .delay((0, CmnLib_1.argChk_Num)(hArg, 'delay', 0))
74104
+ .to({ v: vol }, time)
74105
+ .delay(delay)
74099
74106
  .easing(ease)
74100
74107
  .repeat(repeat === 0 ? Infinity : (repeat - 1))
74101
74108
  .yoyo((0, CmnLib_1.argChk_Boolean)(hArg, 'yoyo', false))
@@ -76958,14 +76965,6 @@ class Variable {
76958
76965
  const a = [];
76959
76966
  Object.keys(__classPrivateFieldGet(this, _Variable_data, "f").mark).sort().forEach(k => {
76960
76967
  const o = { ...__classPrivateFieldGet(this, _Variable_data, "f").mark[k].json };
76961
- for (const key in o) {
76962
- const v = o[key];
76963
- if (typeof v !== 'string')
76964
- continue;
76965
- if (v.slice(0, 10) !== 'userdata:/')
76966
- continue;
76967
- o[key] = cfg.searchPath(v);
76968
- }
76969
76968
  o.place = k;
76970
76969
  a.push(o);
76971
76970
  });