@famibee/skynovel 1.25.4 → 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 +50 -0
- package/app.js +158 -228
- package/appMain.js +31 -16
- package/core/lib/appMain.d.ts +1 -1
- package/core/lib/appMain.d.ts.map +1 -1
- package/core/lib/preload.d.ts +1 -1
- package/core/lib/preload.d.ts.map +1 -1
- package/core/lib/preload.js +1 -1
- package/core/lib/sn/CmnLib.d.ts +1 -1
- package/core/lib/sn/CmnLib.d.ts.map +1 -1
- package/core/lib/sn/DebugMng.d.ts.map +1 -1
- package/core/lib/sn/EventMng.d.ts +1 -1
- package/core/lib/sn/EventMng.d.ts.map +1 -1
- package/core/lib/sn/FrameMng.d.ts.map +1 -1
- package/core/lib/sn/LayerMng.d.ts +3 -3
- package/core/lib/sn/LayerMng.d.ts.map +1 -1
- package/core/lib/sn/ScriptIterator.d.ts +0 -1
- package/core/lib/sn/ScriptIterator.d.ts.map +1 -1
- package/core/lib/sn/SoundMng.d.ts.map +1 -1
- package/core/lib/sn/SysApp.d.ts.map +1 -1
- package/core/lib/sn/Variable.d.ts.map +1 -1
- package/package.json +7 -7
- package/web.js +102 -111
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 */
|
|
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
|
|
35064
|
+
* @pixi/sound - v4.2.0
|
|
35065
35065
|
* https://github.com/pixijs/pixi-sound
|
|
35066
|
-
* Compiled Wed,
|
|
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.
|
|
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) {
|
|
@@ -67578,7 +67576,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
67578
67576
|
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");
|
|
67579
67577
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
67580
67578
|
};
|
|
67581
|
-
var _EventMng_instances, _EventMng_elc, _EventMng_cvsHint, _EventMng_picHint_w, _EventMng_picHint_h, _EventMng_padHint, _EventMng_grpHint, _EventMng_gamepad, _EventMng_fcs, _EventMng_resvFlameEvent4Wheel, _EventMng_ev_keydown, _EventMng_ev_contextmenu, _EventMng_ev_wheel, _EventMng_wheeling, _EventMng_extend_wheel, _EventMng_ev_wheel_waitstop, _EventMng_hLocalEvt2Fnc, _EventMng_hGlobalEvt2Fnc, _EventMng_isDbgBreak, _EventMng_isWait, _EventMng_getEvt2Fnc, _EventMng_waitEventBase, _EventMng_firstWait, _EventMng_dispHint, _EventMng_dispHint_hArg, _EventMng_dispHint_ctnBtn, _EventMng_dispHint_masume, _EventMng_procWheel4wle, _EventMng_elcWLE, _EventMng_clear_event, _EventMng_clear_eventer, _EventMng_event, _EventMng_canFocus, _EventMng_getHtmlElmList, _EventMng_goTxt, _EventMng_l, _EventMng_p,
|
|
67579
|
+
var _EventMng_instances, _EventMng_elc, _EventMng_cvsHint, _EventMng_picHint_w, _EventMng_picHint_h, _EventMng_padHint, _EventMng_grpHint, _EventMng_gamepad, _EventMng_fcs, _EventMng_resvFlameEvent4Wheel, _EventMng_ev_keydown, _EventMng_ev_contextmenu, _EventMng_ev_wheel, _EventMng_wheeling, _EventMng_extend_wheel, _EventMng_ev_wheel_waitstop, _EventMng_hLocalEvt2Fnc, _EventMng_hGlobalEvt2Fnc, _EventMng_isDbgBreak, _EventMng_isWait, _EventMng_getEvt2Fnc, _EventMng_waitEventBase, _EventMng_firstWait, _EventMng_dispHint, _EventMng_dispHint_hArg, _EventMng_dispHint_ctnBtn, _EventMng_dispHint_masume, _EventMng_procWheel4wle, _EventMng_elcWLE, _EventMng_clear_event, _EventMng_clear_eventer, _EventMng_event, _EventMng_canFocus, _EventMng_getHtmlElmList, _EventMng_goTxt, _EventMng_l, _EventMng_p, _EventMng_stopSkip, _EventMng_set_cancel_skip, _EventMng_set_focus, _EventMng_wait, _EventMng_cancelWait, _EventMng_waitclick, _EventMng_hDownKeys;
|
|
67582
67580
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
67583
67581
|
exports.EventMng = void 0;
|
|
67584
67582
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
@@ -67653,7 +67651,8 @@ class EventMng {
|
|
|
67653
67651
|
_EventMng_procWheel4wle.set(this, (_elc, _fnc) => { });
|
|
67654
67652
|
_EventMng_elcWLE.set(this, new EventListenerCtn_1.EventListenerCtn);
|
|
67655
67653
|
_EventMng_goTxt.set(this, () => this.layMng.goTxt());
|
|
67656
|
-
|
|
67654
|
+
_EventMng_stopSkip.set(this, () => false);
|
|
67655
|
+
_EventMng_cancelWait.set(this, () => { });
|
|
67657
67656
|
_EventMng_hDownKeys.set(this, {
|
|
67658
67657
|
'Alt': 0,
|
|
67659
67658
|
'Meta': 0,
|
|
@@ -67854,26 +67853,23 @@ class EventMng {
|
|
|
67854
67853
|
__classPrivateFieldGet(this, _EventMng_cvsHint, "f")?.parentElement.removeChild(__classPrivateFieldGet(this, _EventMng_cvsHint, "f"));
|
|
67855
67854
|
}
|
|
67856
67855
|
fire(KEY, e) {
|
|
67857
|
-
if (__classPrivateFieldGet(this,
|
|
67858
|
-
|
|
67859
|
-
if (!__classPrivateFieldGet(this, _EventMng_isWait, "f"))
|
|
67856
|
+
if (__classPrivateFieldGet(this, _EventMng_stopSkip, "f").call(this)
|
|
67857
|
+
|| !__classPrivateFieldGet(this, _EventMng_isWait, "f") || __classPrivateFieldGet(this, _EventMng_isDbgBreak, "f"))
|
|
67860
67858
|
return;
|
|
67861
67859
|
const key = KEY.toLowerCase();
|
|
67862
67860
|
if (CmnLib_1.CmnLib.debugLog)
|
|
67863
67861
|
console.log(`👺 fire<(key:\`${key}\` type:${e.type} e:%o)`, { ...e });
|
|
67864
67862
|
if (key === 'enter') {
|
|
67865
67863
|
const em = __classPrivateFieldGet(this, _EventMng_fcs, "f").getFocus();
|
|
67866
|
-
if (em
|
|
67864
|
+
if (em instanceof pixi_js_1.Container) {
|
|
67867
67865
|
em.emit('pointerdown', new Event('pointerdown'));
|
|
67868
67866
|
return;
|
|
67869
67867
|
}
|
|
67870
67868
|
}
|
|
67871
67869
|
const ke = __classPrivateFieldGet(this, _EventMng_getEvt2Fnc, "f").call(this, key);
|
|
67872
67870
|
if (!ke) {
|
|
67873
|
-
if (key.slice(0, 5) === 'swipe')
|
|
67874
|
-
|
|
67875
|
-
globalThis.scrollBy(-esw.deltaX ?? 0, -esw.deltaY ?? 0);
|
|
67876
|
-
}
|
|
67871
|
+
if (key.slice(0, 5) === 'swipe')
|
|
67872
|
+
globalThis.scrollBy(-e.deltaX ?? 0, -e.deltaY ?? 0);
|
|
67877
67873
|
return;
|
|
67878
67874
|
}
|
|
67879
67875
|
if (key.slice(-5) !== 'wheel')
|
|
@@ -67895,12 +67891,12 @@ class EventMng {
|
|
|
67895
67891
|
if (canskip && global)
|
|
67896
67892
|
throw `canskipとglobalを同時にtrue指定できません`;
|
|
67897
67893
|
if (this.val.getVal('tmp:sn.skip.enabled')) {
|
|
67898
|
-
if (this.val.getVal('tmp:sn.skip.all')
|
|
67899
|
-
|
|
67894
|
+
if (this.val.getVal('tmp:sn.skip.all') ||
|
|
67895
|
+
this.scrItr.isNextKidoku) {
|
|
67900
67896
|
onFinish();
|
|
67901
67897
|
return false;
|
|
67902
67898
|
}
|
|
67903
|
-
__classPrivateFieldGet(this,
|
|
67899
|
+
__classPrivateFieldGet(this, _EventMng_stopSkip, "f").call(this);
|
|
67904
67900
|
}
|
|
67905
67901
|
__classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_waitEventBase).call(this, onFinish, canskip, global);
|
|
67906
67902
|
return true;
|
|
@@ -67993,9 +67989,9 @@ class EventMng {
|
|
|
67993
67989
|
this.val.saveKidoku();
|
|
67994
67990
|
const fnc = () => { __classPrivateFieldGet(this, _EventMng_elcWLE, "f").clear(); onFinish(); };
|
|
67995
67991
|
if (this.val.getVal('tmp:sn.skip.enabled')) {
|
|
67996
|
-
if (!this.val.getVal('tmp:sn.skip.all')
|
|
67997
|
-
|
|
67998
|
-
__classPrivateFieldGet(this,
|
|
67992
|
+
if (!this.val.getVal('tmp:sn.skip.all') &&
|
|
67993
|
+
!this.scrItr.isNextKidoku)
|
|
67994
|
+
__classPrivateFieldGet(this, _EventMng_stopSkip, "f").call(this);
|
|
67999
67995
|
else {
|
|
68000
67996
|
fnc();
|
|
68001
67997
|
return false;
|
|
@@ -68013,17 +68009,17 @@ class EventMng {
|
|
|
68013
68009
|
__classPrivateFieldGet(this, _EventMng_procWheel4wle, "f").call(this, __classPrivateFieldGet(this, _EventMng_elcWLE, "f"), fnc);
|
|
68014
68010
|
return true;
|
|
68015
68011
|
}
|
|
68016
|
-
|
|
68012
|
+
isSkippingByKeyDown() {
|
|
68017
68013
|
if (this.scrItr.skip4page)
|
|
68018
68014
|
return true;
|
|
68019
|
-
for (const
|
|
68020
|
-
if (__classPrivateFieldGet(this, _EventMng_hDownKeys, "f")[
|
|
68015
|
+
for (const k in __classPrivateFieldGet(this, _EventMng_hDownKeys, "f"))
|
|
68016
|
+
if (__classPrivateFieldGet(this, _EventMng_hDownKeys, "f")[k] === 2)
|
|
68021
68017
|
return true;
|
|
68022
68018
|
return false;
|
|
68023
68019
|
}
|
|
68024
68020
|
}
|
|
68025
68021
|
exports.EventMng = EventMng;
|
|
68026
|
-
_EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picHint_w = new WeakMap(), _EventMng_picHint_h = new WeakMap(), _EventMng_padHint = new WeakMap(), _EventMng_grpHint = new WeakMap(), _EventMng_gamepad = new WeakMap(), _EventMng_fcs = new WeakMap(), _EventMng_resvFlameEvent4Wheel = new WeakMap(), _EventMng_wheeling = new WeakMap(), _EventMng_extend_wheel = new WeakMap(), _EventMng_hLocalEvt2Fnc = new WeakMap(), _EventMng_hGlobalEvt2Fnc = new WeakMap(), _EventMng_isDbgBreak = new WeakMap(), _EventMng_isWait = new WeakMap(), _EventMng_getEvt2Fnc = new WeakMap(), _EventMng_firstWait = new WeakMap(), _EventMng_dispHint_hArg = new WeakMap(), _EventMng_dispHint_ctnBtn = new WeakMap(), _EventMng_dispHint_masume = new WeakMap(), _EventMng_procWheel4wle = new WeakMap(), _EventMng_elcWLE = new WeakMap(), _EventMng_goTxt = new WeakMap(),
|
|
68022
|
+
_EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picHint_w = new WeakMap(), _EventMng_picHint_h = new WeakMap(), _EventMng_padHint = new WeakMap(), _EventMng_grpHint = new WeakMap(), _EventMng_gamepad = new WeakMap(), _EventMng_fcs = new WeakMap(), _EventMng_resvFlameEvent4Wheel = new WeakMap(), _EventMng_wheeling = new WeakMap(), _EventMng_extend_wheel = new WeakMap(), _EventMng_hLocalEvt2Fnc = new WeakMap(), _EventMng_hGlobalEvt2Fnc = new WeakMap(), _EventMng_isDbgBreak = new WeakMap(), _EventMng_isWait = new WeakMap(), _EventMng_getEvt2Fnc = new WeakMap(), _EventMng_firstWait = new WeakMap(), _EventMng_dispHint_hArg = new WeakMap(), _EventMng_dispHint_ctnBtn = new WeakMap(), _EventMng_dispHint_masume = new WeakMap(), _EventMng_procWheel4wle = new WeakMap(), _EventMng_elcWLE = new WeakMap(), _EventMng_goTxt = new WeakMap(), _EventMng_stopSkip = new WeakMap(), _EventMng_cancelWait = new WeakMap(), _EventMng_hDownKeys = new WeakMap(), _EventMng_instances = new WeakSet(), _EventMng_ev_keydown = function _EventMng_ev_keydown(e) {
|
|
68027
68023
|
if (e['isComposing'])
|
|
68028
68024
|
return;
|
|
68029
68025
|
if (e.key in __classPrivateFieldGet(this, _EventMng_hDownKeys, "f"))
|
|
@@ -68067,10 +68063,10 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
68067
68063
|
__classPrivateFieldGet(this, _EventMng_goTxt, "f").call(this);
|
|
68068
68064
|
this.val.saveKidoku();
|
|
68069
68065
|
if (canskip) {
|
|
68070
|
-
__classPrivateFieldGet(this, _EventMng_hLocalEvt2Fnc, "f")['click'] =
|
|
68071
|
-
|
|
68072
|
-
|
|
68073
|
-
|
|
68066
|
+
__classPrivateFieldGet(this, _EventMng_hLocalEvt2Fnc, "f")['click'] =
|
|
68067
|
+
__classPrivateFieldGet(this, _EventMng_hLocalEvt2Fnc, "f")['enter'] =
|
|
68068
|
+
__classPrivateFieldGet(this, _EventMng_hLocalEvt2Fnc, "f")['arrowdown'] =
|
|
68069
|
+
__classPrivateFieldGet(this, _EventMng_hLocalEvt2Fnc, "f")['wheel.y>0'] = onFinish;
|
|
68074
68070
|
}
|
|
68075
68071
|
else {
|
|
68076
68072
|
delete __classPrivateFieldGet(this, _EventMng_hLocalEvt2Fnc, "f")['click'];
|
|
@@ -68226,10 +68222,10 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
68226
68222
|
return false;
|
|
68227
68223
|
}
|
|
68228
68224
|
if (this.val.getVal('tmp:sn.skip.enabled')) {
|
|
68229
|
-
if (!this.val.getVal('tmp:sn.skip.all')
|
|
68230
|
-
|
|
68231
|
-
__classPrivateFieldGet(this,
|
|
68232
|
-
else if ('ps'.includes(
|
|
68225
|
+
if (!this.val.getVal('tmp:sn.skip.all') &&
|
|
68226
|
+
!this.scrItr.isNextKidoku)
|
|
68227
|
+
__classPrivateFieldGet(this, _EventMng_stopSkip, "f").call(this);
|
|
68228
|
+
else if ('ps'.includes(this.val.getVal('sys:sn.skip.mode')))
|
|
68233
68229
|
return false;
|
|
68234
68230
|
}
|
|
68235
68231
|
if (this.val.getVal('tmp:sn.auto.enabled'))
|
|
@@ -68245,10 +68241,10 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
68245
68241
|
}, _EventMng_p = function _EventMng_p(hArg) {
|
|
68246
68242
|
this.scrItr.recodePage();
|
|
68247
68243
|
if (this.val.getVal('tmp:sn.skip.enabled')) {
|
|
68248
|
-
if (!this.val.getVal('tmp:sn.skip.all')
|
|
68249
|
-
|
|
68250
|
-
__classPrivateFieldGet(this,
|
|
68251
|
-
else if ('s'
|
|
68244
|
+
if (!this.val.getVal('tmp:sn.skip.all') &&
|
|
68245
|
+
!this.scrItr.isNextKidoku)
|
|
68246
|
+
__classPrivateFieldGet(this, _EventMng_stopSkip, "f").call(this);
|
|
68247
|
+
else if ('s' == this.val.getVal('sys:sn.skip.mode')) {
|
|
68252
68248
|
__classPrivateFieldGet(this, _EventMng_goTxt, "f").call(this);
|
|
68253
68249
|
return false;
|
|
68254
68250
|
}
|
|
@@ -68262,20 +68258,21 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
68262
68258
|
if ((0, CmnLib_1.argChk_Boolean)(hArg, 'visible', true))
|
|
68263
68259
|
this.layMng.breakPage();
|
|
68264
68260
|
const fnc = () => { this.sndMng.clearCache(); this.main.resume(); };
|
|
68265
|
-
__classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_waitEventBase).call(this,
|
|
68266
|
-
&&
|
|
68261
|
+
__classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_waitEventBase).call(this, (0, CmnLib_1.argChk_Boolean)(hArg, 'er', false)
|
|
68262
|
+
&& this.layMng.currentTxtlayFore
|
|
68267
68263
|
? () => { this.hTag.er(hArg); fnc(); }
|
|
68268
68264
|
: fnc);
|
|
68269
68265
|
return true;
|
|
68270
68266
|
}, _EventMng_set_cancel_skip = function _EventMng_set_cancel_skip() {
|
|
68271
|
-
__classPrivateFieldSet(this,
|
|
68272
|
-
__classPrivateFieldSet(this,
|
|
68267
|
+
__classPrivateFieldSet(this, _EventMng_stopSkip, () => {
|
|
68268
|
+
__classPrivateFieldSet(this, _EventMng_stopSkip, () => false, "f");
|
|
68273
68269
|
this.val.setVal_Nochk('tmp', 'sn.tagL.enabled', true);
|
|
68274
68270
|
this.val.setVal_Nochk('tmp', 'sn.skip.enabled', false);
|
|
68275
68271
|
this.val.setVal_Nochk('tmp', 'sn.auto.enabled', false);
|
|
68276
|
-
this.layMng.
|
|
68272
|
+
this.layMng.setNormalChWait();
|
|
68273
|
+
__classPrivateFieldGet(this, _EventMng_cancelWait, "f").call(this);
|
|
68274
|
+
return true;
|
|
68277
68275
|
}, "f");
|
|
68278
|
-
this.scrItr.unregisterClickEvts();
|
|
68279
68276
|
return false;
|
|
68280
68277
|
}, _EventMng_set_focus = function _EventMng_set_focus(hArg) {
|
|
68281
68278
|
const add = hArg.add;
|
|
@@ -68315,30 +68312,35 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
68315
68312
|
}
|
|
68316
68313
|
return false;
|
|
68317
68314
|
}, _EventMng_wait = function _EventMng_wait(hArg) {
|
|
68315
|
+
const time = (0, CmnLib_1.argChk_Num)(hArg, 'time', NaN);
|
|
68318
68316
|
if (this.scrItr.skip4page)
|
|
68319
68317
|
return false;
|
|
68320
68318
|
if (this.val.getVal('tmp:sn.skip.enabled')) {
|
|
68321
|
-
if (!this.val.getVal('tmp:sn.skip.all')
|
|
68322
|
-
|
|
68323
|
-
__classPrivateFieldGet(this,
|
|
68324
|
-
|
|
68325
|
-
return false;
|
|
68319
|
+
if (!this.val.getVal('tmp:sn.skip.all') &&
|
|
68320
|
+
!this.scrItr.isNextKidoku)
|
|
68321
|
+
__classPrivateFieldGet(this, _EventMng_stopSkip, "f").call(this);
|
|
68322
|
+
return false;
|
|
68326
68323
|
}
|
|
68324
|
+
if (this.val.getVal('tmp:sn.auto.enabled'))
|
|
68325
|
+
__classPrivateFieldSet(this, _EventMng_cancelWait, () => {
|
|
68326
|
+
this.scrItr.subIdxToken();
|
|
68327
|
+
tw.end();
|
|
68328
|
+
}, "f");
|
|
68327
68329
|
const tw = new tween_js_1.Tween({})
|
|
68328
|
-
.to({},
|
|
68329
|
-
.onComplete(() => {
|
|
68330
|
+
.to({}, time)
|
|
68331
|
+
.onComplete(() => {
|
|
68332
|
+
__classPrivateFieldSet(this, _EventMng_cancelWait, () => { }, "f");
|
|
68333
|
+
tw.stop();
|
|
68334
|
+
this.main.resume();
|
|
68335
|
+
})
|
|
68330
68336
|
.start();
|
|
68331
68337
|
return this.waitEvent(() => tw.end(), (0, CmnLib_1.argChk_Boolean)(hArg, 'canskip', true), (0, CmnLib_1.argChk_Boolean)(hArg, 'global', false));
|
|
68332
68338
|
}, _EventMng_waitclick = function _EventMng_waitclick() {
|
|
68333
68339
|
if (this.scrItr.skip4page)
|
|
68334
68340
|
return false;
|
|
68335
|
-
if (this.val.getVal('tmp:sn.skip.enabled')
|
|
68336
|
-
|
|
68337
|
-
|
|
68338
|
-
__classPrivateFieldGet(this, _EventMng_fncCancelSkip, "f").call(this);
|
|
68339
|
-
else
|
|
68340
|
-
return false;
|
|
68341
|
-
}
|
|
68341
|
+
if (this.val.getVal('tmp:sn.skip.enabled')
|
|
68342
|
+
|| this.val.getVal('tmp:sn.auto.enabled'))
|
|
68343
|
+
__classPrivateFieldGet(this, _EventMng_stopSkip, "f").call(this);
|
|
68342
68344
|
__classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_waitEventBase).call(this, () => this.main.resume());
|
|
68343
68345
|
return true;
|
|
68344
68346
|
};
|
|
@@ -68674,7 +68676,7 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
68674
68676
|
this.val.setVal_Nochk('tmp', frmnm + '.visible', v);
|
|
68675
68677
|
const win = ifrm.contentWindow;
|
|
68676
68678
|
__classPrivateFieldGet(this, _FrameMng_evtMng, "f").resvFlameEvent(win);
|
|
68677
|
-
(win.sn_repRes)?.((img) => GrpLayer_1.GrpLayer.loadPic2Img((img.dataset.src ?? '')
|
|
68679
|
+
(win.sn_repRes)?.((img) => GrpLayer_1.GrpLayer.loadPic2Img((img.dataset.src ?? ''), img));
|
|
68678
68680
|
this.main.resume();
|
|
68679
68681
|
};
|
|
68680
68682
|
});
|
|
@@ -68860,8 +68862,8 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
68860
68862
|
this.appPixi.stage.interactive = false;
|
|
68861
68863
|
const tw_nm = `frm\n${hArg.id}`;
|
|
68862
68864
|
const tw = new tween_js_1.Tween(hNow)
|
|
68863
|
-
.to(hTo, (0, CmnLib_1.argChk_Num)(hArg, 'time', NaN)
|
|
68864
|
-
|
|
68865
|
+
.to(hTo, (0, CmnLib_1.argChk_Num)(hArg, 'time', NaN) * (Boolean(this.val.getVal('tmp:sn.skip.enabled')
|
|
68866
|
+
|| __classPrivateFieldGet(this, _FrameMng_evtMng, "f").isSkippingByKeyDown()) ? 0 : 1))
|
|
68865
68867
|
.delay((0, CmnLib_1.argChk_Num)(hArg, 'delay', 0))
|
|
68866
68868
|
.easing(CmnTween_1.CmnTween.ease(hArg.ease))
|
|
68867
68869
|
.repeat(repeat === 0 ? Infinity : (repeat - 1))
|
|
@@ -69754,7 +69756,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
69754
69756
|
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");
|
|
69755
69757
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
69756
69758
|
};
|
|
69757
|
-
var _LayerMng_instances, _a, _LayerMng_stage, _LayerMng_fore, _LayerMng_back, _LayerMng_frmMng, _LayerMng_fncTicker, _LayerMng_hProcDbgRes, _LayerMng_modeLn, _LayerMng_modeLnSub, _LayerMng_selectNode, _LayerMng_grpCover, _LayerMng_evtMng, _LayerMng_foreachRedrawTxtLayBack, _LayerMng_cmdTxt, _LayerMng_snapshot, _LayerMng_loadplugin, _LayerMng_add_lay, _LayerMng_hPages, _LayerMng_aLayName, _LayerMng_curTxtlay, _LayerMng_firstGrplay, _LayerMng_lay, _LayerMng_rebuildLayerRankInfo, _LayerMng_clear_lay, _LayerMng_srcRuleTransFragment, _LayerMng_ufRuleTrans, _LayerMng_fltRule, _LayerMng_rtTransBack, _LayerMng_spTransBack, _LayerMng_rtTransFore, _LayerMng_spTransFore, _LayerMng_aBackTransAfter, _LayerMng_trans, _LayerMng_tiTrans, _LayerMng_getLayers, _LayerMng_foreachLayers, _LayerMng_sortLayers, _LayerMng_wt, _LayerMng_finish_trans, _LayerMng_quake, _LayerMng_hTwInf, _LayerMng_tsy, _LayerMng_wait_tsy, _LayerMng_stop_tsy, _LayerMng_pause_tsy, _LayerMng_resume_tsy, _LayerMng_msecChWait, _LayerMng_ch, _LayerMng_getTxtLayer, _LayerMng_$getTxtLayer, _LayerMng_current, _LayerMng_$current, _LayerMng_pgTxtlay,
|
|
69759
|
+
var _LayerMng_instances, _a, _LayerMng_stage, _LayerMng_fore, _LayerMng_back, _LayerMng_frmMng, _LayerMng_fncTicker, _LayerMng_hProcDbgRes, _LayerMng_modeLn, _LayerMng_modeLnSub, _LayerMng_selectNode, _LayerMng_grpCover, _LayerMng_evtMng, _LayerMng_foreachRedrawTxtLayBack, _LayerMng_cmdTxt, _LayerMng_snapshot, _LayerMng_loadplugin, _LayerMng_add_lay, _LayerMng_hPages, _LayerMng_aLayName, _LayerMng_curTxtlay, _LayerMng_firstGrplay, _LayerMng_lay, _LayerMng_rebuildLayerRankInfo, _LayerMng_clear_lay, _LayerMng_srcRuleTransFragment, _LayerMng_ufRuleTrans, _LayerMng_fltRule, _LayerMng_rtTransBack, _LayerMng_spTransBack, _LayerMng_rtTransFore, _LayerMng_spTransFore, _LayerMng_aBackTransAfter, _LayerMng_trans, _LayerMng_tiTrans, _LayerMng_getLayers, _LayerMng_foreachLayers, _LayerMng_sortLayers, _LayerMng_wt, _LayerMng_finish_trans, _LayerMng_quake, _LayerMng_hTwInf, _LayerMng_tsy, _LayerMng_wait_tsy, _LayerMng_stop_tsy, _LayerMng_pause_tsy, _LayerMng_resume_tsy, _LayerMng_msecChWait, _LayerMng_ch, _LayerMng_getTxtLayer, _LayerMng_$getTxtLayer, _LayerMng_current, _LayerMng_$current, _LayerMng_pgTxtlay, _LayerMng_chkTxtLay, _LayerMng_argChk_layer, _LayerMng_oLastPage, _LayerMng_aTxtLog, _LayerMng_clear_text, _LayerMng_endlink, _LayerMng_er, _LayerMng_graph, _LayerMng_link, _LayerMng_r, _LayerMng_rec_r, _LayerMng_rec_ch, _LayerMng_reset_rec, _LayerMng_ruby2, _LayerMng_span, _LayerMng_tcy, _LayerMng_dump_lay, _LayerMng_enable_event, _LayerMng_button;
|
|
69758
69760
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
69759
69761
|
exports.LayerMng = void 0;
|
|
69760
69762
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
@@ -69811,7 +69813,7 @@ class LayerMng {
|
|
|
69811
69813
|
this.getFrmDisabled = (id) => __classPrivateFieldGet(this, _LayerMng_frmMng, "f").getFrmDisabled(id);
|
|
69812
69814
|
_LayerMng_grpCover.set(this, null);
|
|
69813
69815
|
_LayerMng_evtMng.set(this, void 0);
|
|
69814
|
-
_LayerMng_cmdTxt.set(this, (cmd, tl = this.
|
|
69816
|
+
_LayerMng_cmdTxt.set(this, (cmd, tl = this.currentTxtlayForeNeedErr, _record = true) => tl.tagCh('| 《' + cmd + '》'));
|
|
69815
69817
|
this.goTxt = () => { };
|
|
69816
69818
|
this.breakLine = () => { };
|
|
69817
69819
|
this.breakPage = () => { };
|
|
@@ -69869,10 +69871,10 @@ void main(void) {
|
|
|
69869
69871
|
_LayerMng_aBackTransAfter.set(this, []);
|
|
69870
69872
|
_LayerMng_tiTrans.set(this, { tw: null, resume: false });
|
|
69871
69873
|
_LayerMng_hTwInf.set(this, {});
|
|
69872
|
-
_LayerMng_getTxtLayer.set(this, (_hArg) => { __classPrivateFieldGet(this,
|
|
69873
|
-
_LayerMng_current.set(this, (_hArg) => { __classPrivateFieldGet(this,
|
|
69874
|
+
_LayerMng_getTxtLayer.set(this, (_hArg) => { __classPrivateFieldGet(this, _LayerMng_chkTxtLay, "f").call(this); throw 0; });
|
|
69875
|
+
_LayerMng_current.set(this, (_hArg) => { __classPrivateFieldGet(this, _LayerMng_chkTxtLay, "f").call(this); throw 0; });
|
|
69874
69876
|
_LayerMng_pgTxtlay.set(this, void 0);
|
|
69875
|
-
|
|
69877
|
+
_LayerMng_chkTxtLay.set(this, () => { throw '文字レイヤーがありません。文字表示や操作する前に、[add_lay layer=(レイヤ名) class=txt]で文字レイヤを追加して下さい'; });
|
|
69876
69878
|
_LayerMng_oLastPage.set(this, { text: '' });
|
|
69877
69879
|
_LayerMng_aTxtLog.set(this, []);
|
|
69878
69880
|
const cvs = document.getElementById(CmnLib_1.CmnLib.SN_ID);
|
|
@@ -69970,7 +69972,7 @@ void main(void) {
|
|
|
69970
69972
|
val.defTmp('const.sn.log.json', () => JSON.stringify((__classPrivateFieldGet(this, _LayerMng_oLastPage, "f").text)
|
|
69971
69973
|
? [...__classPrivateFieldGet(this, _LayerMng_aTxtLog, "f"), __classPrivateFieldGet(this, _LayerMng_oLastPage, "f")]
|
|
69972
69974
|
: __classPrivateFieldGet(this, _LayerMng_aTxtLog, "f")));
|
|
69973
|
-
val.defTmp('const.sn.last_page_text', () => this.
|
|
69975
|
+
val.defTmp('const.sn.last_page_text', () => this.currentTxtlayFore?.pageText ?? '');
|
|
69974
69976
|
if (CmnLib_1.CmnLib.isDbg) {
|
|
69975
69977
|
DesignCast_1.DesignCast.init(this.appPixi, sys, scrItr, prpPrs, alzTagArg, this.cfg, __classPrivateFieldGet(this, _LayerMng_hPages, "f"));
|
|
69976
69978
|
this.cvsResizeDesign = () => DesignCast_1.DesignCast.cvsResizeDesign();
|
|
@@ -70013,13 +70015,13 @@ void main(void) {
|
|
|
70013
70015
|
}
|
|
70014
70016
|
stopAllTw() { __classPrivateFieldSet(this, _LayerMng_hTwInf, {}, "f"); (0, tween_js_1.removeAll)(); }
|
|
70015
70017
|
clearBreak() {
|
|
70016
|
-
if (!this.
|
|
70018
|
+
if (!this.currentTxtlayFore)
|
|
70017
70019
|
return;
|
|
70018
70020
|
this.clearBreak = () => __classPrivateFieldGet(this, _LayerMng_cmdTxt, "f").call(this, 'del|break');
|
|
70019
70021
|
this.clearBreak();
|
|
70020
70022
|
}
|
|
70021
70023
|
clickTxtLay() {
|
|
70022
|
-
if (!this.
|
|
70024
|
+
if (!this.currentTxtlayFore)
|
|
70023
70025
|
return;
|
|
70024
70026
|
const vct = __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_getLayers).call(this);
|
|
70025
70027
|
const len = vct.length;
|
|
@@ -70035,12 +70037,12 @@ void main(void) {
|
|
|
70035
70037
|
}
|
|
70036
70038
|
static get msecChWait() { return __classPrivateFieldGet(LayerMng, _a, "f", _LayerMng_msecChWait); }
|
|
70037
70039
|
static set msecChWait(v) { __classPrivateFieldSet(LayerMng, _a, v, "f", _LayerMng_msecChWait); }
|
|
70038
|
-
|
|
70039
|
-
|
|
70040
|
-
__classPrivateFieldGet(this,
|
|
70041
|
-
return this.
|
|
70040
|
+
setNormalChWait() { __classPrivateFieldSet(LayerMng, _a, this.scrItr.normalWait, "f", _LayerMng_msecChWait); }
|
|
70041
|
+
get currentTxtlayForeNeedErr() {
|
|
70042
|
+
__classPrivateFieldGet(this, _LayerMng_chkTxtLay, "f").call(this);
|
|
70043
|
+
return this.currentTxtlayFore;
|
|
70042
70044
|
}
|
|
70043
|
-
|
|
70045
|
+
get currentTxtlayFore() {
|
|
70044
70046
|
if (!__classPrivateFieldGet(this, _LayerMng_pgTxtlay, "f"))
|
|
70045
70047
|
return undefined;
|
|
70046
70048
|
return __classPrivateFieldGet(this, _LayerMng_pgTxtlay, "f").fore;
|
|
@@ -70108,7 +70110,7 @@ void main(void) {
|
|
|
70108
70110
|
}
|
|
70109
70111
|
}
|
|
70110
70112
|
exports.LayerMng = LayerMng;
|
|
70111
|
-
_a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(), _LayerMng_back = new WeakMap(), _LayerMng_frmMng = new WeakMap(), _LayerMng_fncTicker = new WeakMap(), _LayerMng_hProcDbgRes = new WeakMap(), _LayerMng_modeLn = new WeakMap(), _LayerMng_modeLnSub = new WeakMap(), _LayerMng_grpCover = new WeakMap(), _LayerMng_evtMng = new WeakMap(), _LayerMng_cmdTxt = new WeakMap(), _LayerMng_hPages = new WeakMap(), _LayerMng_aLayName = new WeakMap(), _LayerMng_curTxtlay = new WeakMap(), _LayerMng_firstGrplay = new WeakMap(), _LayerMng_srcRuleTransFragment = new WeakMap(), _LayerMng_ufRuleTrans = new WeakMap(), _LayerMng_fltRule = new WeakMap(), _LayerMng_rtTransBack = new WeakMap(), _LayerMng_spTransBack = new WeakMap(), _LayerMng_rtTransFore = new WeakMap(), _LayerMng_spTransFore = new WeakMap(), _LayerMng_aBackTransAfter = new WeakMap(), _LayerMng_tiTrans = new WeakMap(), _LayerMng_hTwInf = new WeakMap(), _LayerMng_getTxtLayer = new WeakMap(), _LayerMng_current = new WeakMap(), _LayerMng_pgTxtlay = new WeakMap(),
|
|
70113
|
+
_a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(), _LayerMng_back = new WeakMap(), _LayerMng_frmMng = new WeakMap(), _LayerMng_fncTicker = new WeakMap(), _LayerMng_hProcDbgRes = new WeakMap(), _LayerMng_modeLn = new WeakMap(), _LayerMng_modeLnSub = new WeakMap(), _LayerMng_grpCover = new WeakMap(), _LayerMng_evtMng = new WeakMap(), _LayerMng_cmdTxt = new WeakMap(), _LayerMng_hPages = new WeakMap(), _LayerMng_aLayName = new WeakMap(), _LayerMng_curTxtlay = new WeakMap(), _LayerMng_firstGrplay = new WeakMap(), _LayerMng_srcRuleTransFragment = new WeakMap(), _LayerMng_ufRuleTrans = new WeakMap(), _LayerMng_fltRule = new WeakMap(), _LayerMng_rtTransBack = new WeakMap(), _LayerMng_spTransBack = new WeakMap(), _LayerMng_rtTransFore = new WeakMap(), _LayerMng_spTransFore = new WeakMap(), _LayerMng_aBackTransAfter = new WeakMap(), _LayerMng_tiTrans = new WeakMap(), _LayerMng_hTwInf = new WeakMap(), _LayerMng_getTxtLayer = new WeakMap(), _LayerMng_current = new WeakMap(), _LayerMng_pgTxtlay = new WeakMap(), _LayerMng_chkTxtLay = new WeakMap(), _LayerMng_oLastPage = new WeakMap(), _LayerMng_aTxtLog = new WeakMap(), _LayerMng_instances = new WeakSet(), _LayerMng_selectNode = function _LayerMng_selectNode(node) {
|
|
70112
70114
|
var _b, _c;
|
|
70113
70115
|
_b = this, _c = this, [({ set value(_a) { __classPrivateFieldSet(_b, _LayerMng_modeLn, _a, "f"); } }).value, ({ set value(_a) { __classPrivateFieldSet(_c, _LayerMng_modeLnSub, _a, "f"); } }).value = ''] = node.split('/');
|
|
70114
70116
|
const pages = __classPrivateFieldGet(this, _LayerMng_hPages, "f")[__classPrivateFieldGet(this, _LayerMng_modeLn, "f")];
|
|
@@ -70211,7 +70213,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70211
70213
|
switch (cls) {
|
|
70212
70214
|
case 'txt':
|
|
70213
70215
|
if (!__classPrivateFieldGet(this, _LayerMng_curTxtlay, "f")) {
|
|
70214
|
-
__classPrivateFieldSet(this,
|
|
70216
|
+
__classPrivateFieldSet(this, _LayerMng_chkTxtLay, () => { }, "f");
|
|
70215
70217
|
__classPrivateFieldSet(this, _LayerMng_getTxtLayer, __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_$getTxtLayer), "f");
|
|
70216
70218
|
__classPrivateFieldSet(this, _LayerMng_current, __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_$current), "f");
|
|
70217
70219
|
this.hTag.current({ layer: layer });
|
|
@@ -70220,7 +70222,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70220
70222
|
__classPrivateFieldSet(LayerMng, _a, 0, "f", _LayerMng_msecChWait);
|
|
70221
70223
|
}
|
|
70222
70224
|
else {
|
|
70223
|
-
this.
|
|
70225
|
+
this.setNormalChWait();
|
|
70224
70226
|
}
|
|
70225
70227
|
__classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_getLayers).call(this).forEach(name => {
|
|
70226
70228
|
const pg = __classPrivateFieldGet(this, _LayerMng_hPages, "f")[name];
|
|
@@ -70345,7 +70347,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70345
70347
|
};
|
|
70346
70348
|
__classPrivateFieldSet(this, _LayerMng_tiTrans, { tw: null, resume: false }, "f");
|
|
70347
70349
|
const time = (0, CmnLib_1.argChk_Num)(hArg, 'time', 0);
|
|
70348
|
-
if (time === 0 || __classPrivateFieldGet(this, _LayerMng_evtMng, "f").
|
|
70350
|
+
if (time === 0 || __classPrivateFieldGet(this, _LayerMng_evtMng, "f").isSkippingByKeyDown()) {
|
|
70349
70351
|
comp();
|
|
70350
70352
|
return false;
|
|
70351
70353
|
}
|
|
@@ -70417,9 +70419,12 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70417
70419
|
return __classPrivateFieldGet(this, _LayerMng_evtMng, "f").waitLimitedEvent(hArg, () => __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_finish_trans).call(this));
|
|
70418
70420
|
}, _LayerMng_finish_trans = function _LayerMng_finish_trans() { __classPrivateFieldGet(this, _LayerMng_tiTrans, "f").tw?.end(); return false; }, _LayerMng_quake = function _LayerMng_quake(hArg) {
|
|
70419
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;
|
|
70420
70425
|
if (this.val.getVal('tmp:sn.skip.enabled'))
|
|
70421
70426
|
return false;
|
|
70422
|
-
if (__classPrivateFieldGet(this, _LayerMng_evtMng, "f").
|
|
70427
|
+
if (__classPrivateFieldGet(this, _LayerMng_evtMng, "f").isSkippingByKeyDown())
|
|
70423
70428
|
return false;
|
|
70424
70429
|
const aDo = [];
|
|
70425
70430
|
__classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_getLayers).call(this, hArg.layer).forEach(lay_nm => {
|
|
@@ -70445,7 +70450,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70445
70450
|
__classPrivateFieldGet(this, _LayerMng_spTransFore, "f").filters = [];
|
|
70446
70451
|
const repeat = (0, CmnLib_1.argChk_Num)(hArg, 'repeat', 1);
|
|
70447
70452
|
const tw = new tween_js_1.Tween(__classPrivateFieldGet(this, _LayerMng_spTransFore, "f"))
|
|
70448
|
-
.to({ x: 0, y: 0 },
|
|
70453
|
+
.to({ x: 0, y: 0 }, time)
|
|
70449
70454
|
.delay((0, CmnLib_1.argChk_Num)(hArg, 'delay', 0))
|
|
70450
70455
|
.easing(ease)
|
|
70451
70456
|
.onUpdate(() => { fncH(); fncV(); })
|
|
@@ -70475,8 +70480,8 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70475
70480
|
const repeat = (0, CmnLib_1.argChk_Num)(hArg, 'repeat', 1);
|
|
70476
70481
|
const tw_nm = hArg.name ?? hArg.layer;
|
|
70477
70482
|
const tw = new tween_js_1.Tween(foreLay)
|
|
70478
|
-
.to(hTo, (0, CmnLib_1.argChk_Num)(hArg, 'time', NaN) * (
|
|
70479
|
-
||
|
|
70483
|
+
.to(hTo, (0, CmnLib_1.argChk_Num)(hArg, 'time', NaN) * (Boolean(this.val.getVal('tmp:sn.skip.enabled')
|
|
70484
|
+
|| __classPrivateFieldGet(this, _LayerMng_evtMng, "f").isSkippingByKeyDown()) ? 0 : 1))
|
|
70480
70485
|
.delay((0, CmnLib_1.argChk_Num)(hArg, 'delay', 0))
|
|
70481
70486
|
.easing(CmnTween_1.CmnTween.ease(hArg.ease))
|
|
70482
70487
|
.repeat(repeat === 0 ? Infinity : (repeat - 1))
|
|
@@ -70544,11 +70549,10 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
70544
70549
|
throw 'textは必須です';
|
|
70545
70550
|
const tl = __classPrivateFieldGet(this, _LayerMng_getTxtLayer, "f").call(this, hArg);
|
|
70546
70551
|
delete hArg.text;
|
|
70547
|
-
if ('
|
|
70552
|
+
if (this.val.getVal('tmp:sn.skip.enabled'))
|
|
70553
|
+
hArg.wait = 0;
|
|
70554
|
+
else if ('wait' in hArg)
|
|
70548
70555
|
(0, CmnLib_1.argChk_Num)(hArg, 'wait', NaN);
|
|
70549
|
-
if (this.val.getVal('tmp:sn.skip.enabled'))
|
|
70550
|
-
hArg.wait = 0;
|
|
70551
|
-
}
|
|
70552
70556
|
__classPrivateFieldGet(this, _LayerMng_cmdTxt, "f").call(this, 'add|' + JSON.stringify(hArg), tl);
|
|
70553
70557
|
const record = (0, CmnLib_1.argChk_Boolean)(hArg, 'record', true);
|
|
70554
70558
|
const doRecLog = this.val.doRecLog();
|
|
@@ -70914,7 +70918,7 @@ _Main_cfg = new WeakMap(), _Main_appPixi = new WeakMap(), _Main_hTag = new WeakM
|
|
|
70914
70918
|
else if (uc === 42 && token.length > 1)
|
|
70915
70919
|
continue;
|
|
70916
70920
|
try {
|
|
70917
|
-
const tl = __classPrivateFieldGet(this, _Main_layMng, "f").
|
|
70921
|
+
const tl = __classPrivateFieldGet(this, _Main_layMng, "f").currentTxtlayForeNeedErr;
|
|
70918
70922
|
tl.tagCh(token);
|
|
70919
70923
|
}
|
|
70920
70924
|
catch (err) {
|
|
@@ -71683,15 +71687,6 @@ class ScriptIterator {
|
|
|
71683
71687
|
get lineNum() { return __classPrivateFieldGet(this, _ScriptIterator_lineNum, "f"); }
|
|
71684
71688
|
destroy() { this.isBreak = () => false; }
|
|
71685
71689
|
;
|
|
71686
|
-
unregisterClickEvts() {
|
|
71687
|
-
__classPrivateFieldGet(this, _ScriptIterator_aCallStk, "f").forEach(cs => {
|
|
71688
|
-
const hE1T = cs.csArg[':hEvt1Time'];
|
|
71689
|
-
delete hE1T['Click'];
|
|
71690
|
-
delete hE1T['Enter'];
|
|
71691
|
-
delete hE1T['ArrowDown'];
|
|
71692
|
-
delete hE1T['wheel.y>0'];
|
|
71693
|
-
});
|
|
71694
|
-
}
|
|
71695
71690
|
タグ解析(tagToken) {
|
|
71696
71691
|
const [tag_name, args] = (0, Grammar_1.tagToken2Name_Args)(tagToken);
|
|
71697
71692
|
const tag_fnc = this.hTag[tag_name];
|
|
@@ -72745,7 +72740,11 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
72745
72740
|
this.val.setVal_Nochk('save', 'const.sn.sound.' + buf + '.fn', '');
|
|
72746
72741
|
}
|
|
72747
72742
|
this.val.flush();
|
|
72748
|
-
|
|
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()) {
|
|
72749
72748
|
oSb.snd.volume = vol;
|
|
72750
72749
|
if (stop)
|
|
72751
72750
|
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopse).call(this, hArg);
|
|
@@ -72754,8 +72753,8 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
72754
72753
|
const ease = CmnTween_1.CmnTween.ease(hArg.ease);
|
|
72755
72754
|
const repeat = (0, CmnLib_1.argChk_Num)(hArg, 'repeat', 1);
|
|
72756
72755
|
oSb.twFade = new tween_js_1.Tween({ v: oSb.snd.volume })
|
|
72757
|
-
.to({ v: vol },
|
|
72758
|
-
.delay(
|
|
72756
|
+
.to({ v: vol }, time)
|
|
72757
|
+
.delay(delay)
|
|
72759
72758
|
.easing(ease)
|
|
72760
72759
|
.repeat(repeat === 0 ? Infinity : (repeat - 1))
|
|
72761
72760
|
.yoyo((0, CmnLib_1.argChk_Boolean)(hArg, 'yoyo', false))
|
|
@@ -72785,7 +72784,7 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
72785
72784
|
if (!fn)
|
|
72786
72785
|
throw '[playse] fnは必須です(buf=' + buf + ')';
|
|
72787
72786
|
if ((0, CmnLib_1.argChk_Boolean)(hArg, 'canskip', true)
|
|
72788
|
-
&& __classPrivateFieldGet(this, _SoundMng_evtMng, "f").
|
|
72787
|
+
&& __classPrivateFieldGet(this, _SoundMng_evtMng, "f").isSkippingByKeyDown())
|
|
72789
72788
|
return false;
|
|
72790
72789
|
const loop = (0, CmnLib_1.argChk_Boolean)(hArg, 'loop', false);
|
|
72791
72790
|
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_addLoopPlay).call(this, buf, loop);
|
|
@@ -73064,25 +73063,6 @@ _SoundMng_MAX_END_MS = { value: 999000 };
|
|
|
73064
73063
|
|
|
73065
73064
|
"use strict";
|
|
73066
73065
|
|
|
73067
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
73068
|
-
if (k2 === undefined) k2 = k;
|
|
73069
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
73070
|
-
}) : (function(o, m, k, k2) {
|
|
73071
|
-
if (k2 === undefined) k2 = k;
|
|
73072
|
-
o[k2] = m[k];
|
|
73073
|
-
}));
|
|
73074
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
73075
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
73076
|
-
}) : function(o, v) {
|
|
73077
|
-
o["default"] = v;
|
|
73078
|
-
});
|
|
73079
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
73080
|
-
if (mod && mod.__esModule) return mod;
|
|
73081
|
-
var result = {};
|
|
73082
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
73083
|
-
__setModuleDefault(result, mod);
|
|
73084
|
-
return result;
|
|
73085
|
-
};
|
|
73086
73066
|
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
73087
73067
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
73088
73068
|
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");
|
|
@@ -73101,7 +73081,7 @@ const SysNode_1 = __webpack_require__(/*! ./SysNode */ "./core/src/sn/SysNode.ts
|
|
|
73101
73081
|
const SysBase_1 = __webpack_require__(/*! ./SysBase */ "./core/src/sn/SysBase.ts");
|
|
73102
73082
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
73103
73083
|
const Main_1 = __webpack_require__(/*! ./Main */ "./core/src/sn/Main.ts");
|
|
73104
|
-
const
|
|
73084
|
+
const DebugMng_1 = __webpack_require__(/*! ./DebugMng */ "./core/src/sn/DebugMng.ts");
|
|
73105
73085
|
const { to_app } = window;
|
|
73106
73086
|
class SysApp extends SysNode_1.SysNode {
|
|
73107
73087
|
constructor(hPlg = {}, arg = { cur: 'prj/', crypto: false, dip: '' }) {
|
|
@@ -73215,14 +73195,13 @@ class SysApp extends SysNode_1.SysNode {
|
|
|
73215
73195
|
return false;
|
|
73216
73196
|
};
|
|
73217
73197
|
this.tgl_full_scr_sub = async () => {
|
|
73198
|
+
const st = this.appPixi.view.style;
|
|
73218
73199
|
if (await to_app.isSimpleFullScreen()) {
|
|
73219
|
-
await to_app.setSimpleFullScreen(false);
|
|
73220
|
-
|
|
73221
|
-
|
|
73222
|
-
|
|
73223
|
-
|
|
73224
|
-
this.appPixi.view.style.marginTop = '0px';
|
|
73225
|
-
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';
|
|
73226
73205
|
this.reso4frame = 1;
|
|
73227
73206
|
}
|
|
73228
73207
|
else {
|
|
@@ -73231,16 +73210,14 @@ class SysApp extends SysNode_1.SysNode {
|
|
|
73231
73210
|
const ratioWidth = w / CmnLib_1.CmnLib.stageW;
|
|
73232
73211
|
const ratioHeight = h / CmnLib_1.CmnLib.stageH;
|
|
73233
73212
|
const ratio = (ratioWidth < ratioHeight) ? ratioWidth : ratioHeight;
|
|
73234
|
-
await to_app.
|
|
73235
|
-
|
|
73236
|
-
|
|
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';
|
|
73237
73216
|
if (ratioWidth < ratioHeight) {
|
|
73238
|
-
|
|
73239
|
-
}
|
|
73240
|
-
else {
|
|
73241
|
-
this.appPixi.view.style.marginLeft = (w - CmnLib_1.CmnLib.stageW * ratio) / 2 + 'px';
|
|
73217
|
+
st.marginTop = (h - CmnLib_1.CmnLib.stageH * ratio) / 2 + 'px';
|
|
73242
73218
|
}
|
|
73243
|
-
|
|
73219
|
+
else
|
|
73220
|
+
st.marginLeft = (w - CmnLib_1.CmnLib.stageW * ratio) / 2 + 'px';
|
|
73244
73221
|
await to_app.win_setContentSize(screen.width, screen.height);
|
|
73245
73222
|
const cr = this.appPixi.view.getBoundingClientRect();
|
|
73246
73223
|
this.reso4frame = cr.width / CmnLib_1.CmnLib.stageW;
|
|
@@ -73253,82 +73230,63 @@ class SysApp extends SysNode_1.SysNode {
|
|
|
73253
73230
|
throw '[update_check] urlは必須です';
|
|
73254
73231
|
if (url.slice(-1) !== '/')
|
|
73255
73232
|
throw '[update_check] urlの最後は/です';
|
|
73233
|
+
if (CmnLib_1.CmnLib.debugLog)
|
|
73234
|
+
DebugMng_1.DebugMng.myTrace(`[update_check] url=${url}`, 'D');
|
|
73256
73235
|
(async () => {
|
|
73257
73236
|
const res = await this.fetch(url + `latest${CmnLib_1.CmnLib.isMac ? '-mac' : ''}.yml`);
|
|
73258
|
-
if (!res.ok)
|
|
73237
|
+
if (!res.ok) {
|
|
73238
|
+
if (CmnLib_1.CmnLib.debugLog)
|
|
73239
|
+
DebugMng_1.DebugMng.myTrace(`[update_check] [update_check] .ymlが見つかりません`);
|
|
73259
73240
|
return;
|
|
73241
|
+
}
|
|
73260
73242
|
if (CmnLib_1.CmnLib.debugLog)
|
|
73261
|
-
|
|
73262
|
-
const
|
|
73263
|
-
const mv = /version: (.+)/.exec(
|
|
73243
|
+
DebugMng_1.DebugMng.myTrace(`[update_check] .ymlを取得しました`, 'D');
|
|
73244
|
+
const txtYml = await res.text();
|
|
73245
|
+
const mv = /version: (.+)/.exec(txtYml);
|
|
73264
73246
|
if (!mv)
|
|
73265
|
-
throw `[update_check]
|
|
73247
|
+
throw `[update_check] .yml に version が見つかりません`;
|
|
73266
73248
|
const netver = mv[1];
|
|
73267
|
-
const
|
|
73268
|
-
if (
|
|
73249
|
+
const appver = __classPrivateFieldGet(this, _SysApp_hInfo, "f").getVersion;
|
|
73250
|
+
if (CmnLib_1.CmnLib.debugLog)
|
|
73251
|
+
DebugMng_1.DebugMng.myTrace(`[update_check] 現在ver=${appver} 新規ver=${netver}`, 'D');
|
|
73252
|
+
if (netver === appver) {
|
|
73269
73253
|
if (CmnLib_1.CmnLib.debugLog)
|
|
73270
|
-
|
|
73254
|
+
DebugMng_1.DebugMng.myTrace(`[update_check] バージョン更新なし`, 'I');
|
|
73271
73255
|
return;
|
|
73272
73256
|
}
|
|
73273
73257
|
if (CmnLib_1.CmnLib.debugLog)
|
|
73274
|
-
|
|
73275
|
-
const
|
|
73276
|
-
title: 'アプリ更新',
|
|
73277
|
-
icon: __classPrivateFieldGet(this, _SysApp_hInfo, "f").getAppPath + '/app/icon.png',
|
|
73278
|
-
buttons: ['OK', 'Cancel'],
|
|
73279
|
-
defaultId: 0,
|
|
73280
|
-
cancelId: 1,
|
|
73281
|
-
message: `アプリ【${this.cfg.oCfg.book.title}】に更新があります。\nダウンロードしますか?`,
|
|
73282
|
-
detail: `現在ver ${myver}\n新規ver ${netver}`,
|
|
73283
|
-
};
|
|
73284
|
-
if (CmnLib_1.CmnLib.debugLog)
|
|
73285
|
-
console.log(`[update_check] アプリダウンロード開始`);
|
|
73286
|
-
const mp = /path: (.+)/.exec(txt);
|
|
73258
|
+
DebugMng_1.DebugMng.myTrace(`[update_check] アプリダウンロード開始`, 'D');
|
|
73259
|
+
const mp = /path: (.+)/.exec(txtYml);
|
|
73287
73260
|
if (!mp)
|
|
73288
|
-
throw `[update_check]
|
|
73289
|
-
const
|
|
73290
|
-
|
|
73261
|
+
throw `[update_check] .yml に path が見つかりません`;
|
|
73262
|
+
const path = mp[1];
|
|
73263
|
+
if (CmnLib_1.CmnLib.debugLog)
|
|
73264
|
+
DebugMng_1.DebugMng.myTrace(`[update_check] path=${path}`, 'D');
|
|
73265
|
+
const mc = /sha512: (.+)/.exec(txtYml);
|
|
73291
73266
|
if (!mc)
|
|
73292
|
-
throw `[update_check]
|
|
73267
|
+
throw `[update_check] .yml に sha512 が見つかりません`;
|
|
73293
73268
|
const sha = mc[1];
|
|
73294
|
-
|
|
73295
|
-
|
|
73296
|
-
|
|
73297
|
-
|
|
73298
|
-
const rd_dl = async (res) => {
|
|
73299
|
-
const reader = res.body.getReader();
|
|
73300
|
-
const { Readable } = await Promise.resolve().then(() => __importStar(__webpack_require__(/*! stream */ "?1f4d")));
|
|
73301
|
-
const rdb = new Readable();
|
|
73302
|
-
rdb._read = async () => {
|
|
73303
|
-
const { done, value } = await reader.read();
|
|
73304
|
-
if (done) {
|
|
73305
|
-
rdb.push(null);
|
|
73306
|
-
return;
|
|
73307
|
-
}
|
|
73308
|
-
rdb.push(Buffer.from(value));
|
|
73309
|
-
};
|
|
73310
|
-
return rdb;
|
|
73311
|
-
};
|
|
73312
|
-
const pipe_dl = await rd_dl(res_dl);
|
|
73313
|
-
pipe_dl.on('end', () => {
|
|
73269
|
+
if (CmnLib_1.CmnLib.debugLog)
|
|
73270
|
+
DebugMng_1.DebugMng.myTrace(`[update_check] sha=${sha}=`, 'D');
|
|
73271
|
+
const res_dl = await this.fetch(url + path);
|
|
73272
|
+
if (!res_dl.ok) {
|
|
73314
73273
|
if (CmnLib_1.CmnLib.debugLog)
|
|
73315
|
-
|
|
73316
|
-
|
|
73317
|
-
|
|
73318
|
-
|
|
73319
|
-
|
|
73320
|
-
|
|
73321
|
-
|
|
73322
|
-
|
|
73323
|
-
|
|
73324
|
-
|
|
73325
|
-
|
|
73326
|
-
|
|
73327
|
-
|
|
73328
|
-
|
|
73329
|
-
|
|
73330
|
-
|
|
73331
|
-
pipe_dl.pipe(await to_app.createWriteStream(pathDL));
|
|
73274
|
+
DebugMng_1.DebugMng.myTrace(`[update_check] アプリファイルが見つかりません url=${url + path}`);
|
|
73275
|
+
return;
|
|
73276
|
+
}
|
|
73277
|
+
const pathDL = __classPrivateFieldGet(this, _SysApp_hInfo, "f").downloads + '/' + path;
|
|
73278
|
+
if (CmnLib_1.CmnLib.debugLog)
|
|
73279
|
+
DebugMng_1.DebugMng.myTrace(`[update_check] pathDL=${pathDL}`, 'D');
|
|
73280
|
+
const b = await res_dl.blob();
|
|
73281
|
+
const url2 = URL.createObjectURL(b);
|
|
73282
|
+
const a = document.createElement('a');
|
|
73283
|
+
document.body.appendChild(a);
|
|
73284
|
+
a.download = path;
|
|
73285
|
+
a.href = url2;
|
|
73286
|
+
a.click();
|
|
73287
|
+
a.remove();
|
|
73288
|
+
if (CmnLib_1.CmnLib.debugLog)
|
|
73289
|
+
DebugMng_1.DebugMng.myTrace(`アプリファイルを保存しました`, 'D');
|
|
73332
73290
|
})();
|
|
73333
73291
|
return false;
|
|
73334
73292
|
};
|
|
@@ -73845,7 +73803,7 @@ class TxtLayer extends Layer_1.Layer {
|
|
|
73845
73803
|
console.log(`🖊 文字表示 text:\`${ch}\` ruby:\`${ruby}\` name:\`${this.name_}\``);
|
|
73846
73804
|
const a_ruby = ruby.split('|');
|
|
73847
73805
|
let add_htm = '';
|
|
73848
|
-
const isSkip = __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_evtMng).
|
|
73806
|
+
const isSkip = __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_evtMng).isSkippingByKeyDown();
|
|
73849
73807
|
switch (a_ruby.length) {
|
|
73850
73808
|
case 1:
|
|
73851
73809
|
__classPrivateFieldSet(this, _TxtLayer_needGoTxt, true, "f");
|
|
@@ -75731,14 +75689,6 @@ class Variable {
|
|
|
75731
75689
|
const a = [];
|
|
75732
75690
|
Object.keys(__classPrivateFieldGet(this, _Variable_data, "f").mark).sort().forEach(k => {
|
|
75733
75691
|
const o = { ...__classPrivateFieldGet(this, _Variable_data, "f").mark[k].json };
|
|
75734
|
-
for (const key in o) {
|
|
75735
|
-
const v = o[key];
|
|
75736
|
-
if (typeof v !== 'string')
|
|
75737
|
-
continue;
|
|
75738
|
-
if (v.slice(0, 10) !== 'userdata:/')
|
|
75739
|
-
continue;
|
|
75740
|
-
o[key] = cfg.searchPath(v);
|
|
75741
|
-
}
|
|
75742
75692
|
o.place = k;
|
|
75743
75693
|
a.push(o);
|
|
75744
75694
|
});
|
|
@@ -77441,26 +77391,6 @@ yeast.decode = decode;
|
|
|
77441
77391
|
module.exports = yeast;
|
|
77442
77392
|
|
|
77443
77393
|
|
|
77444
|
-
/***/ }),
|
|
77445
|
-
|
|
77446
|
-
/***/ "?056f":
|
|
77447
|
-
/*!************************!*\
|
|
77448
|
-
!*** crypto (ignored) ***!
|
|
77449
|
-
\************************/
|
|
77450
|
-
/***/ (() => {
|
|
77451
|
-
|
|
77452
|
-
/* (ignored) */
|
|
77453
|
-
|
|
77454
|
-
/***/ }),
|
|
77455
|
-
|
|
77456
|
-
/***/ "?1f4d":
|
|
77457
|
-
/*!************************!*\
|
|
77458
|
-
!*** stream (ignored) ***!
|
|
77459
|
-
\************************/
|
|
77460
|
-
/***/ (() => {
|
|
77461
|
-
|
|
77462
|
-
/* (ignored) */
|
|
77463
|
-
|
|
77464
77394
|
/***/ }),
|
|
77465
77395
|
|
|
77466
77396
|
/***/ "./node_modules/engine.io-client/build/cjs/globalThis.browser.js":
|