@famibee/skynovel 1.25.10 → 1.27.2

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/web.js CHANGED
@@ -67291,8 +67291,8 @@ class Button extends pixi_js_1.Container {
67291
67291
  this.getBtnBounds = () => __classPrivateFieldGet(this, _Button_rctBtnTxt, "f");
67292
67292
  _Button_rctBtnTxt.set(this, new pixi_js_1.Rectangle);
67293
67293
  _Button_idc.set(this, void 0);
67294
- _Button_sp_b_pic.set(this, null);
67295
- _Button_sp_pic.set(this, null);
67294
+ _Button_sp_b_pic.set(this, undefined);
67295
+ _Button_sp_pic.set(this, undefined);
67296
67296
  _Button_normal.set(this, () => { });
67297
67297
  _Button_hover.set(this, () => false);
67298
67298
  _Button_clicked.set(this, () => { });
@@ -68254,8 +68254,8 @@ class DesignCast {
68254
68254
  'height': 0,
68255
68255
  };
68256
68256
  this.fncLay = () => { };
68257
- this.mov = null;
68258
- this.div = null;
68257
+ this.mov = undefined;
68258
+ this.div = undefined;
68259
68259
  this.lx = 0;
68260
68260
  this.ly = 0;
68261
68261
  this.rect = pixi_js_1.Rectangle.EMPTY;
@@ -68317,9 +68317,9 @@ class DesignCast {
68317
68317
  s.height = `${CmnLib_1.CmnLib.stageH * CmnLib_1.CmnLib.cvsScale}px`;
68318
68318
  }
68319
68319
  destroy() {
68320
- this.div = null;
68320
+ this.div = undefined;
68321
68321
  this.mov?.destroy();
68322
- this.mov = null;
68322
+ this.mov = undefined;
68323
68323
  }
68324
68324
  gethArg() { return this.hArg; }
68325
68325
  sethArg(hArg) {
@@ -69866,12 +69866,12 @@ class FocusMng {
69866
69866
  }
69867
69867
  getFocus() {
69868
69868
  if (__classPrivateFieldGet(this, _FocusMng_idx, "f") < 0)
69869
- return null;
69869
+ return undefined;
69870
69870
  __classPrivateFieldGet(this, _FocusMng_instances, "m", _FocusMng_allOff).call(this);
69871
69871
  if (__classPrivateFieldGet(this, _FocusMng_idx, "f") >= __classPrivateFieldGet(this, _FocusMng_aBtn, "f").length)
69872
69872
  __classPrivateFieldSet(this, _FocusMng_idx, 0, "f");
69873
69873
  const b = __classPrivateFieldGet(this, _FocusMng_aBtn, "f")[__classPrivateFieldGet(this, _FocusMng_idx, "f")];
69874
- return b.on() ? b.btn : null;
69874
+ return b.on() ? b.btn : undefined;
69875
69875
  }
69876
69876
  blur() { __classPrivateFieldGet(this, _FocusMng_instances, "m", _FocusMng_allOff).call(this); __classPrivateFieldSet(this, _FocusMng_idx, -1, "f"); globalThis.focus(); }
69877
69877
  }
@@ -70295,7 +70295,7 @@ function splitAmpersand(token) {
70295
70295
  return {
70296
70296
  name: equa[0].replaceAll('=', '==').replaceAll('≠', '!='),
70297
70297
  text: equa[1].replaceAll('=', '==').replaceAll('≠', '!='),
70298
- cast: ((cnt_equa === 3) ? equa[2].trim() : null)
70298
+ cast: ((cnt_equa === 3) ? equa[2].trim() : undefined)
70299
70299
  };
70300
70300
  }
70301
70301
  exports.splitAmpersand = splitAmpersand;
@@ -70437,7 +70437,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
70437
70437
  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");
70438
70438
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
70439
70439
  };
70440
- var _a, _GrpLayer_elc, _GrpLayer_hFace, _GrpLayer_main, _GrpLayer_cfg, _GrpLayer_sys, _GrpLayer_glbVol, _GrpLayer_movVol, _GrpLayer_evtMng, _GrpLayer_idc, _GrpLayer_csvFn, _GrpLayer_sBkFn, _GrpLayer_sBkFace, _GrpLayer_width, _GrpLayer_height, _GrpLayer_dec2cache, _GrpLayer_sortAFrameName, _GrpLayer_dec2cache4Cripto, _GrpLayer_mkSprite, _GrpLayer_hAEncImg, _GrpLayer_hEncImgOUrl;
70440
+ var _a, _GrpLayer_elc, _GrpLayer_hFace, _GrpLayer_main, _GrpLayer_cfg, _GrpLayer_appPixi, _GrpLayer_sys, _GrpLayer_glbVol, _GrpLayer_movVol, _GrpLayer_evtMng, _GrpLayer_idc, _GrpLayer_csvFn, _GrpLayer_sBkFn, _GrpLayer_sBkFace, _GrpLayer_width, _GrpLayer_height, _GrpLayer_dec2cache, _GrpLayer_sortAFrameName, _GrpLayer_dec2cache4Cripto, _GrpLayer_mkSprite, _GrpLayer_rtTsy, _GrpLayer_spTsy, _GrpLayer_fncRender, _GrpLayer_hAEncImg, _GrpLayer_hEncImgOUrl;
70441
70441
  Object.defineProperty(exports, "__esModule", ({ value: true }));
70442
70442
  exports.GrpLayer = void 0;
70443
70443
  const Layer_1 = __webpack_require__(/*! ./Layer */ "./core/src/sn/Layer.ts");
@@ -70462,6 +70462,9 @@ class GrpLayer extends Layer_1.Layer {
70462
70462
  });
70463
70463
  _GrpLayer_width.set(this, 0);
70464
70464
  _GrpLayer_height.set(this, 0);
70465
+ _GrpLayer_rtTsy.set(this, void 0);
70466
+ _GrpLayer_spTsy.set(this, void 0);
70467
+ _GrpLayer_fncRender.set(this, () => { });
70465
70468
  this.record = () => Object.assign(super.record(), {
70466
70469
  sBkFn: __classPrivateFieldGet(this, _GrpLayer_sBkFn, "f"),
70467
70470
  sBkFace: __classPrivateFieldGet(this, _GrpLayer_sBkFace, "f"),
@@ -70473,9 +70476,10 @@ class GrpLayer extends Layer_1.Layer {
70473
70476
  this.cvsResize = () => { super.cvsResize(); __classPrivateFieldGet(this, _GrpLayer_idc, "f").cvsResize(); };
70474
70477
  }
70475
70478
  }
70476
- static init(main, cfg, sys, sndMng) {
70479
+ static init(main, cfg, appPixi, sys, sndMng) {
70477
70480
  __classPrivateFieldSet(GrpLayer, _a, main, "f", _GrpLayer_main);
70478
70481
  __classPrivateFieldSet(GrpLayer, _a, cfg, "f", _GrpLayer_cfg);
70482
+ __classPrivateFieldSet(GrpLayer, _a, appPixi, "f", _GrpLayer_appPixi);
70479
70483
  __classPrivateFieldSet(GrpLayer, _a, sys, "f", _GrpLayer_sys);
70480
70484
  const fnc = () => {
70481
70485
  const vol = __classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_glbVol) * __classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_movVol);
@@ -70588,6 +70592,7 @@ class GrpLayer extends Layer_1.Layer {
70588
70592
  const fncLoaded = (hRes) => {
70589
70593
  for (const v of aComp) {
70590
70594
  const sp = __classPrivateFieldGet(GrpLayer, _a, "m", _GrpLayer_mkSprite).call(GrpLayer, v.fn, hRes);
70595
+ sp.name = v.fn;
70591
70596
  parent?.addChild(sp);
70592
70597
  v.fnc(sp);
70593
70598
  }
@@ -70624,6 +70629,40 @@ class GrpLayer extends Layer_1.Layer {
70624
70629
  hve.addEventListener('ended', fnc, { once: true, passive: true });
70625
70630
  return __classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_evtMng).waitEvent(() => { hve.pause(); fnc(); }, (0, CmnLib_1.argChk_Boolean)(hArg, 'canskip', true), (0, CmnLib_1.argChk_Boolean)(hArg, 'global', false));
70626
70631
  }
70632
+ renderStart() {
70633
+ __classPrivateFieldSet(this, _GrpLayer_rtTsy, pixi_js_1.RenderTexture.create({
70634
+ width: CmnLib_1.CmnLib.stageW,
70635
+ height: CmnLib_1.CmnLib.stageH,
70636
+ }), "f");
70637
+ __classPrivateFieldSet(this, _GrpLayer_spTsy, new pixi_js_1.Sprite(__classPrivateFieldGet(this, _GrpLayer_rtTsy, "f")), "f");
70638
+ __classPrivateFieldGet(this, _GrpLayer_spTsy, "f").visible = false;
70639
+ this.spLay.addChildAt(__classPrivateFieldGet(this, _GrpLayer_spTsy, "f"), 0);
70640
+ __classPrivateFieldGet(this, _GrpLayer_spTsy, "f").position.set(-this.spLay.x, -this.spLay.y);
70641
+ let fncRenderFore = () => {
70642
+ const a = this.spLay.alpha;
70643
+ this.spLay.alpha = 1;
70644
+ this.spLay.children.forEach(s => s.visible = true);
70645
+ __classPrivateFieldGet(this, _GrpLayer_spTsy, "f").visible = false;
70646
+ __classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_appPixi).renderer.render(this.spLay, { renderTexture: __classPrivateFieldGet(this, _GrpLayer_rtTsy, "f") });
70647
+ this.spLay.alpha = a;
70648
+ this.spLay.children.forEach(s => s.visible = false);
70649
+ };
70650
+ if (!this.containMovement) {
70651
+ let oldFnc = fncRenderFore;
70652
+ fncRenderFore = () => { fncRenderFore = () => { }; oldFnc(); };
70653
+ }
70654
+ __classPrivateFieldSet(this, _GrpLayer_fncRender, () => {
70655
+ fncRenderFore();
70656
+ __classPrivateFieldGet(this, _GrpLayer_spTsy, "f").visible = true;
70657
+ }, "f");
70658
+ __classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_appPixi).ticker.add(__classPrivateFieldGet(this, _GrpLayer_fncRender, "f"));
70659
+ }
70660
+ renderEnd() {
70661
+ __classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_appPixi).ticker.remove(__classPrivateFieldGet(this, _GrpLayer_fncRender, "f"));
70662
+ this.spLay.removeChild(__classPrivateFieldGet(this, _GrpLayer_spTsy, "f"));
70663
+ this.spLay.children.forEach(s => s.visible = true);
70664
+ __classPrivateFieldGet(this, _GrpLayer_spTsy, "f").destroy(true);
70665
+ }
70627
70666
  static loadPic2Img(src, img, onload) {
70628
70667
  const oUrl = __classPrivateFieldGet(this, _a, "f", _GrpLayer_hEncImgOUrl)[src];
70629
70668
  if (oUrl) {
@@ -70678,7 +70717,7 @@ class GrpLayer extends Layer_1.Layer {
70678
70717
  throw '一つのname(' + name + ')に対して同じ画像を複数割り当てられません';
70679
70718
  const fn = hArg.fn ?? name;
70680
70719
  __classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_hFace)[name] = {
70681
- fn: fn,
70720
+ fn,
70682
70721
  dx: (0, CmnLib_1.argChk_Num)(hArg, 'dx', 0) * CmnLib_1.CmnLib.retinaRate,
70683
70722
  dy: (0, CmnLib_1.argChk_Num)(hArg, 'dy', 0) * CmnLib_1.CmnLib.retinaRate,
70684
70723
  blendmode: Layer_1.Layer.getBlendmodeNum(hArg.blendmode || '')
@@ -70719,7 +70758,7 @@ class GrpLayer extends Layer_1.Layer {
70719
70758
  showDesignCast() { __classPrivateFieldGet(this, _GrpLayer_idc, "f").visible = true; }
70720
70759
  }
70721
70760
  exports.GrpLayer = GrpLayer;
70722
- _a = GrpLayer, _GrpLayer_idc = new WeakMap(), _GrpLayer_csvFn = new WeakMap(), _GrpLayer_sBkFn = new WeakMap(), _GrpLayer_sBkFace = new WeakMap(), _GrpLayer_width = new WeakMap(), _GrpLayer_height = new WeakMap(), _GrpLayer_sortAFrameName = function _GrpLayer_sortAFrameName(aFn) {
70761
+ _a = GrpLayer, _GrpLayer_idc = new WeakMap(), _GrpLayer_csvFn = new WeakMap(), _GrpLayer_sBkFn = new WeakMap(), _GrpLayer_sBkFace = new WeakMap(), _GrpLayer_width = new WeakMap(), _GrpLayer_height = new WeakMap(), _GrpLayer_rtTsy = new WeakMap(), _GrpLayer_spTsy = new WeakMap(), _GrpLayer_fncRender = new WeakMap(), _GrpLayer_sortAFrameName = function _GrpLayer_sortAFrameName(aFn) {
70723
70762
  const a_base_name = /([^\d]+)\d+\.(\w+)/.exec(aFn[0]);
70724
70763
  if (!a_base_name)
70725
70764
  return;
@@ -70801,6 +70840,7 @@ _GrpLayer_elc = { value: new EventListenerCtn_1.EventListenerCtn };
70801
70840
  _GrpLayer_hFace = { value: {} };
70802
70841
  _GrpLayer_main = { value: void 0 };
70803
70842
  _GrpLayer_cfg = { value: void 0 };
70843
+ _GrpLayer_appPixi = { value: void 0 };
70804
70844
  _GrpLayer_sys = { value: void 0 };
70805
70845
  _GrpLayer_glbVol = { value: 1 };
70806
70846
  _GrpLayer_movVol = { value: 1 };
@@ -70908,6 +70948,8 @@ class Layer {
70908
70948
  throw `${bm_name} はサポートされない blendmode です`;
70909
70949
  }
70910
70950
  get containMovement() { return false; }
70951
+ renderStart() { }
70952
+ renderEnd() { }
70911
70953
  clearLay(hArg) {
70912
70954
  this.spLay.alpha = 1;
70913
70955
  this.spLay.blendMode = pixi_js_1.BLEND_MODES.NORMAL;
@@ -71045,10 +71087,10 @@ class Layer {
71045
71087
  static setXYByPos(base, pos, ret) {
71046
71088
  if (pos === 'stay')
71047
71089
  return;
71048
- if (base === null)
71049
- throw 'setXYByPos base === null';
71050
- if (ret === null)
71051
- throw 'setXYByPos result === null';
71090
+ if (base === undefined)
71091
+ throw 'setXYByPos base === undefined';
71092
+ if (ret === undefined)
71093
+ throw 'setXYByPos result === undefined';
71052
71094
  const rct_base = base.getBounds();
71053
71095
  const r_absclX = (ret.scale.x < 0) ? -ret.scale.x : ret.scale.x;
71054
71096
  const b_width = (r_absclX === 1) ? rct_base.width : rct_base.width * r_absclX;
@@ -71166,7 +71208,7 @@ class LayerMng {
71166
71208
  _LayerMng_modeLn.set(this, '');
71167
71209
  _LayerMng_modeLnSub.set(this, '');
71168
71210
  this.getFrmDisabled = (id) => __classPrivateFieldGet(this, _LayerMng_frmMng, "f").getFrmDisabled(id);
71169
- _LayerMng_grpCover.set(this, null);
71211
+ _LayerMng_grpCover.set(this, undefined);
71170
71212
  _LayerMng_evtMng.set(this, void 0);
71171
71213
  _LayerMng_cmdTxt.set(this, (cmd, tl = this.currentTxtlayForeNeedErr, _record = true) => tl.tagCh('| 《' + cmd + '》'));
71172
71214
  this.goTxt = () => { };
@@ -71224,7 +71266,7 @@ void main(void) {
71224
71266
  }));
71225
71267
  _LayerMng_spTransFore.set(this, new pixi_js_1.Sprite(__classPrivateFieldGet(this, _LayerMng_rtTransFore, "f")));
71226
71268
  _LayerMng_aBackTransAfter.set(this, []);
71227
- _LayerMng_tiTrans.set(this, { tw: null, resume: false });
71269
+ _LayerMng_tiTrans.set(this, { tw: undefined, resume: false });
71228
71270
  _LayerMng_hTwInf.set(this, {});
71229
71271
  _LayerMng_getTxtLayer.set(this, (_hArg) => { __classPrivateFieldGet(this, _LayerMng_chkTxtLay, "f").call(this); throw 0; });
71230
71272
  _LayerMng_current.set(this, (_hArg) => { __classPrivateFieldGet(this, _LayerMng_chkTxtLay, "f").call(this); throw 0; });
@@ -71257,7 +71299,7 @@ void main(void) {
71257
71299
  }
71258
71300
  CmnLib_1.CmnLib.cvsResize(cvs);
71259
71301
  TxtLayer_1.TxtLayer.init(cfg, hTag, val, (txt) => this.recText(txt), (me) => __classPrivateFieldGet(this, _LayerMng_hPages, "f")[me.layname].fore === me);
71260
- GrpLayer_1.GrpLayer.init(main, cfg, sys, sndMng);
71302
+ GrpLayer_1.GrpLayer.init(main, cfg, appPixi, sys, sndMng);
71261
71303
  Button_1.Button.init(cfg);
71262
71304
  __classPrivateFieldSet(this, _LayerMng_frmMng, new FrameMng_1.FrameMng(this.cfg, this.hTag, this.appPixi, this.val, main, this.sys, __classPrivateFieldGet(this, _LayerMng_hTwInf, "f")), "f");
71263
71305
  sys.hFactoryCls.grp = () => new GrpLayer_1.GrpLayer;
@@ -71343,7 +71385,7 @@ void main(void) {
71343
71385
  if (__classPrivateFieldGet(this, _LayerMng_grpCover, "f")) {
71344
71386
  __classPrivateFieldGet(this, _LayerMng_stage, "f").removeChild(__classPrivateFieldGet(this, _LayerMng_grpCover, "f"));
71345
71387
  __classPrivateFieldGet(this, _LayerMng_grpCover, "f").destroy();
71346
- __classPrivateFieldSet(this, _LayerMng_grpCover, null, "f");
71388
+ __classPrivateFieldSet(this, _LayerMng_grpCover, undefined, "f");
71347
71389
  }
71348
71390
  if (visible)
71349
71391
  __classPrivateFieldGet(this, _LayerMng_stage, "f").addChild((__classPrivateFieldSet(this, _LayerMng_grpCover, new pixi_js_1.Graphics, "f"))
@@ -71522,7 +71564,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
71522
71564
  }));
71523
71565
  else
71524
71566
  __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_getLayers).call(this, hArg.layer).forEach(v => a.push(new Promise(re => __classPrivateFieldGet(this, _LayerMng_hPages, "f")[v][pg].snapshot(rnd, () => re()))));
71525
- Promise.all(a).then(async () => {
71567
+ Promise.allSettled(a).then(async () => {
71526
71568
  const renTx = pixi_js_1.RenderTexture.create({ width: rnd.width, height: rnd.height, transform: true });
71527
71569
  rnd.render(__classPrivateFieldGet(this, _LayerMng_stage, "f"), { renderTexture: renTx });
71528
71570
  await this.sys.savePic(fn, rnd.plugins.extract.base64(pixi_js_1.Sprite.from(renTx)));
@@ -71673,12 +71715,10 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
71673
71715
  });
71674
71716
  __classPrivateFieldGet(this, _LayerMng_back, "f").visible = false;
71675
71717
  };
71676
- if (!aBack.some(lay => lay.containMovement))
71677
- fncRenderBack = () => {
71678
- let oldFnc = fncRenderBack;
71679
- fncRenderBack = () => { };
71680
- oldFnc();
71681
- };
71718
+ if (!aBack.some(lay => lay.containMovement)) {
71719
+ let oldFnc = fncRenderBack;
71720
+ fncRenderBack = () => { fncRenderBack = () => { }; oldFnc(); };
71721
+ }
71682
71722
  __classPrivateFieldGet(this, _LayerMng_rtTransFore, "f").resize(CmnLib_1.CmnLib.stageW, CmnLib_1.CmnLib.stageH);
71683
71723
  this.appPixi.renderer.render(__classPrivateFieldGet(this, _LayerMng_fore, "f"), { renderTexture: __classPrivateFieldGet(this, _LayerMng_rtTransFore, "f") });
71684
71724
  let fncRenderFore = () => {
@@ -71686,12 +71726,10 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
71686
71726
  this.appPixi.renderer.render(__classPrivateFieldGet(this, _LayerMng_fore, "f"), { renderTexture: __classPrivateFieldGet(this, _LayerMng_rtTransFore, "f") });
71687
71727
  __classPrivateFieldGet(this, _LayerMng_fore, "f").visible = false;
71688
71728
  };
71689
- if (!aFore.some(lay => lay.containMovement))
71690
- fncRenderFore = () => {
71691
- let oldFnc = fncRenderFore;
71692
- fncRenderFore = () => { };
71693
- oldFnc();
71694
- };
71729
+ if (!aFore.some(lay => lay.containMovement)) {
71730
+ let oldFnc = fncRenderFore;
71731
+ fncRenderFore = () => { fncRenderFore = () => { }; oldFnc(); };
71732
+ }
71695
71733
  const fncRender = () => {
71696
71734
  fncRenderBack();
71697
71735
  __classPrivateFieldGet(this, _LayerMng_spTransBack, "f").visible = true;
@@ -71725,9 +71763,9 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
71725
71763
  __classPrivateFieldGet(this, _LayerMng_tiTrans, "f").tw?.stop();
71726
71764
  if (__classPrivateFieldGet(this, _LayerMng_tiTrans, "f").resume)
71727
71765
  this.main.resume();
71728
- __classPrivateFieldSet(this, _LayerMng_tiTrans, { tw: null, resume: false }, "f");
71766
+ __classPrivateFieldSet(this, _LayerMng_tiTrans, { tw: undefined, resume: false }, "f");
71729
71767
  };
71730
- __classPrivateFieldSet(this, _LayerMng_tiTrans, { tw: null, resume: false }, "f");
71768
+ __classPrivateFieldSet(this, _LayerMng_tiTrans, { tw: undefined, resume: false }, "f");
71731
71769
  const time = (0, CmnLib_1.argChk_Num)(hArg, 'time', 0);
71732
71770
  if (time === 0 || __classPrivateFieldGet(this, _LayerMng_evtMng, "f").isSkippingByKeyDown()) {
71733
71771
  comp();
@@ -71763,7 +71801,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
71763
71801
  }
71764
71802
  if (!hArg.rule)
71765
71803
  throw 'ruleが指定されていません';
71766
- GrpLayer_1.GrpLayer.csv2Sprites(hArg.rule, null, sp => {
71804
+ GrpLayer_1.GrpLayer.csv2Sprites(hArg.rule, undefined, sp => {
71767
71805
  flt.uniforms.rule = sp.texture;
71768
71806
  sp.destroy();
71769
71807
  __classPrivateFieldGet(this, _LayerMng_tiTrans, "f").tw?.start();
@@ -71820,7 +71858,6 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
71820
71858
  };
71821
71859
  __classPrivateFieldGet(this, _LayerMng_spTransFore, "f").visible = true;
71822
71860
  __classPrivateFieldGet(this, _LayerMng_spTransFore, "f").alpha = 1;
71823
- const ease = CmnTween_1.CmnTween.ease(hArg.ease);
71824
71861
  const h = (0, CmnLib_1.uint)((0, CmnLib_1.argChk_Num)(hArg, 'hmax', 10));
71825
71862
  const v = (0, CmnLib_1.uint)((0, CmnLib_1.argChk_Num)(hArg, 'vmax', 10));
71826
71863
  const fncH = (h === 0)
@@ -71834,7 +71871,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
71834
71871
  const tw = new tween_js_1.Tween(__classPrivateFieldGet(this, _LayerMng_spTransFore, "f"))
71835
71872
  .to({ x: 0, y: 0 }, time)
71836
71873
  .delay((0, CmnLib_1.argChk_Num)(hArg, 'delay', 0))
71837
- .easing(ease)
71874
+ .easing(CmnTween_1.CmnTween.ease(hArg.ease))
71838
71875
  .onUpdate(() => { fncH(); fncV(); })
71839
71876
  .repeat(repeat === 0 ? Infinity : (repeat - 1))
71840
71877
  .yoyo((0, CmnLib_1.argChk_Boolean)(hArg, 'yoyo', false))
@@ -71847,23 +71884,28 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
71847
71884
  __classPrivateFieldGet(this, _LayerMng_tiTrans, "f").tw?.stop();
71848
71885
  if (__classPrivateFieldGet(this, _LayerMng_tiTrans, "f").resume)
71849
71886
  this.main.resume();
71850
- __classPrivateFieldSet(this, _LayerMng_tiTrans, { tw: null, resume: false }, "f");
71887
+ __classPrivateFieldSet(this, _LayerMng_tiTrans, { tw: undefined, resume: false }, "f");
71851
71888
  })
71852
71889
  .start();
71853
- __classPrivateFieldSet(this, _LayerMng_tiTrans, { tw: tw, resume: false }, "f");
71890
+ __classPrivateFieldSet(this, _LayerMng_tiTrans, { tw, resume: false }, "f");
71854
71891
  this.appPixi.ticker.add(fncRender);
71855
71892
  return false;
71856
71893
  }, _LayerMng_tsy = function _LayerMng_tsy(hArg) {
71857
71894
  if (!hArg.layer)
71858
71895
  throw 'layerは必須です';
71859
71896
  const layer = __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_argChk_layer).call(this, hArg);
71860
- const foreLay = __classPrivateFieldGet(this, _LayerMng_hPages, "f")[layer].fore;
71897
+ let foreLay = __classPrivateFieldGet(this, _LayerMng_hPages, "f")[layer].fore;
71898
+ let finishBlendLayer = () => { };
71899
+ const isSkip = __classPrivateFieldGet(this, _LayerMng_evtMng, "f").isSkippingByKeyDown();
71900
+ if (!isSkip && 'render' in hArg) {
71901
+ foreLay.renderStart();
71902
+ finishBlendLayer = () => foreLay.renderEnd();
71903
+ }
71861
71904
  const hTo = (0, CmnLib_1.cnvTweenArg)(hArg, foreLay);
71862
71905
  const repeat = (0, CmnLib_1.argChk_Num)(hArg, 'repeat', 1);
71863
71906
  const tw_nm = hArg.name ?? hArg.layer;
71864
71907
  const tw = new tween_js_1.Tween(foreLay)
71865
- .to(hTo, (0, CmnLib_1.argChk_Num)(hArg, 'time', NaN) * (Boolean(this.val.getVal('tmp:sn.skip.enabled')
71866
- || __classPrivateFieldGet(this, _LayerMng_evtMng, "f").isSkippingByKeyDown()) ? 0 : 1))
71908
+ .to(hTo, (0, CmnLib_1.argChk_Num)(hArg, 'time', NaN) * (Boolean(this.val.getVal('tmp:sn.skip.enabled') || isSkip) ? 0 : 1))
71867
71909
  .delay((0, CmnLib_1.argChk_Num)(hArg, 'delay', 0))
71868
71910
  .easing(CmnTween_1.CmnTween.ease(hArg.ease))
71869
71911
  .repeat(repeat === 0 ? Infinity : (repeat - 1))
@@ -71872,6 +71914,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
71872
71914
  const ti = __classPrivateFieldGet(this, _LayerMng_hTwInf, "f")[tw_nm];
71873
71915
  if (!ti)
71874
71916
  return;
71917
+ finishBlendLayer();
71875
71918
  delete __classPrivateFieldGet(this, _LayerMng_hTwInf, "f")[tw_nm];
71876
71919
  ti.tw?.stop();
71877
71920
  if (ti.resume)
@@ -71889,7 +71932,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
71889
71932
  tw.start();
71890
71933
  const arrive = (0, CmnLib_1.argChk_Boolean)(hArg, 'arrive', false);
71891
71934
  const backlay = (0, CmnLib_1.argChk_Boolean)(hArg, 'backlay', false);
71892
- __classPrivateFieldGet(this, _LayerMng_hTwInf, "f")[tw_nm] = { tw: tw, resume: false, onEnd: () => {
71935
+ __classPrivateFieldGet(this, _LayerMng_hTwInf, "f")[tw_nm] = { tw, resume: false, onEnd: () => {
71893
71936
  if (arrive)
71894
71937
  Object.assign(foreLay, hTo);
71895
71938
  if (backlay) {
@@ -71935,7 +71978,6 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
71935
71978
  hArg.wait = 0;
71936
71979
  else if ('wait' in hArg)
71937
71980
  (0, CmnLib_1.argChk_Num)(hArg, 'wait', NaN);
71938
- __classPrivateFieldGet(this, _LayerMng_cmdTxt, "f").call(this, 'add|' + JSON.stringify(hArg), tl);
71939
71981
  const record = (0, CmnLib_1.argChk_Boolean)(hArg, 'record', true);
71940
71982
  const doRecLog = this.val.doRecLog();
71941
71983
  if (!record)
@@ -71943,7 +71985,6 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
71943
71985
  tl.tagCh(txt.replaceAll('[r]', '\n'));
71944
71986
  if (!record)
71945
71987
  this.val.setVal_Nochk('save', 'sn.doRecLog', doRecLog);
71946
- __classPrivateFieldGet(this, _LayerMng_cmdTxt, "f").call(this, `add_close|`, tl);
71947
71988
  return false;
71948
71989
  }, _LayerMng_$getTxtLayer = function _LayerMng_$getTxtLayer(hArg) {
71949
71990
  const layer = __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_argChk_layer).call(this, hArg, __classPrivateFieldGet(this, _LayerMng_curTxtlay, "f"));
@@ -72027,7 +72068,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
72027
72068
  }, _LayerMng_tcy = function _LayerMng_tcy(hArg) {
72028
72069
  if (!hArg.t)
72029
72070
  throw '[tcy] tは必須です';
72030
- hArg.text = '| |《tcy|' + hArg.t + '|' + (hArg.r ?? '') + '》';
72071
+ hArg.text = '| tcy|' + hArg.t + '|' + (hArg.r ?? '') + '》';
72031
72072
  return __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_ch).call(this, hArg);
72032
72073
  }, _LayerMng_dump_lay = function _LayerMng_dump_lay(hArg) {
72033
72074
  console.group('🥟 [dump_lay]');
@@ -72226,7 +72267,7 @@ _Main_cfg = new WeakMap(), _Main_appPixi = new WeakMap(), _Main_hTag = new WeakM
72226
72267
  }
72227
72268
  __classPrivateFieldSet(this, _Main_val, new Variable_1.Variable(__classPrivateFieldGet(this, _Main_cfg, "f"), __classPrivateFieldGet(this, _Main_hTag, "f")), "f");
72228
72269
  __classPrivateFieldSet(this, _Main_prpPrs, new PropParser_1.PropParser(__classPrivateFieldGet(this, _Main_val, "f"), __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.init.escape ?? '\\'), "f");
72229
- await Promise.all(this.sys.init(__classPrivateFieldGet(this, _Main_hTag, "f"), __classPrivateFieldGet(this, _Main_appPixi, "f"), __classPrivateFieldGet(this, _Main_val, "f"), this));
72270
+ await Promise.allSettled(this.sys.init(__classPrivateFieldGet(this, _Main_hTag, "f"), __classPrivateFieldGet(this, _Main_appPixi, "f"), __classPrivateFieldGet(this, _Main_val, "f"), this));
72230
72271
  __classPrivateFieldGet(this, _Main_hTag, "f").title({ text: __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.book.title || 'SKYNovel' });
72231
72272
  __classPrivateFieldSet(this, _Main_sndMng, new SoundMng_1.SoundMng(__classPrivateFieldGet(this, _Main_cfg, "f"), __classPrivateFieldGet(this, _Main_hTag, "f"), __classPrivateFieldGet(this, _Main_val, "f"), this, this.sys), "f");
72232
72273
  __classPrivateFieldSet(this, _Main_scrItr, new ScriptIterator_1.ScriptIterator(__classPrivateFieldGet(this, _Main_cfg, "f"), __classPrivateFieldGet(this, _Main_hTag, "f"), this, __classPrivateFieldGet(this, _Main_val, "f"), __classPrivateFieldGet(this, _Main_alzTagArg, "f"), () => __classPrivateFieldGet(this, _Main_instances, "m", _Main_runAnalyze).call(this), __classPrivateFieldGet(this, _Main_prpPrs, "f"), __classPrivateFieldGet(this, _Main_sndMng, "f"), this.sys), "f");
@@ -72830,14 +72871,14 @@ const DebugMng_1 = __webpack_require__(/*! ./DebugMng */ "./core/src/sn/DebugMng
72830
72871
  ;
72831
72872
  var BreakState;
72832
72873
  (function (BreakState) {
72833
- BreakState[BreakState["running"] = 0] = "running";
72834
- BreakState[BreakState["wait"] = 1] = "wait";
72835
- BreakState[BreakState["break"] = 2] = "break";
72836
- BreakState[BreakState["breaking"] = 3] = "breaking";
72837
- BreakState[BreakState["step"] = 4] = "step";
72838
- BreakState[BreakState["stepping"] = 5] = "stepping";
72839
- BreakState[BreakState["stepouting"] = 6] = "stepouting";
72840
- BreakState[BreakState["stepout"] = 7] = "stepout";
72874
+ BreakState[BreakState["Running"] = 0] = "Running";
72875
+ BreakState[BreakState["Wait"] = 1] = "Wait";
72876
+ BreakState[BreakState["Break"] = 2] = "Break";
72877
+ BreakState[BreakState["Breaking"] = 3] = "Breaking";
72878
+ BreakState[BreakState["Step"] = 4] = "Step";
72879
+ BreakState[BreakState["Stepping"] = 5] = "Stepping";
72880
+ BreakState[BreakState["StepOuting"] = 6] = "StepOuting";
72881
+ BreakState[BreakState["StepOut"] = 7] = "StepOut";
72841
72882
  })(BreakState || (BreakState = {}));
72842
72883
  ;
72843
72884
  class ScriptIterator {
@@ -72866,14 +72907,14 @@ class ScriptIterator {
72866
72907
  __classPrivateFieldSet(ScriptIterator, _a, {}, "f", _ScriptIterator_hFuncBP);
72867
72908
  this.isBreak = () => false;
72868
72909
  __classPrivateFieldGet(this, _ScriptIterator_hHook, "f").continue({});
72869
- __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.running, "f");
72910
+ __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Running, "f");
72870
72911
  },
72871
72912
  restart: () => this.isBreak = () => false,
72872
72913
  add_break: o => __classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_regBreakPoint).call(this, o.fn, o.o),
72873
72914
  data_break: o => {
72874
- if (__classPrivateFieldGet(this, _ScriptIterator_breakState, "f") !== BreakState.running)
72915
+ if (__classPrivateFieldGet(this, _ScriptIterator_breakState, "f") !== BreakState.Running)
72875
72916
  return;
72876
- __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.wait, "f");
72917
+ __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Wait, "f");
72877
72918
  this.main.setLoop(false, `変数 ${o.dataId}【${o.old_v}】→【${o.new_v}】データブレーク`);
72878
72919
  this.sys.callHook('stopOnDataBreakpoint', {});
72879
72920
  this.sys.send2Dbg('stopOnDataBreakpoint', {});
@@ -72889,7 +72930,7 @@ class ScriptIterator {
72889
72930
  if (__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_isIdxOverLast).call(this))
72890
72931
  return;
72891
72932
  __classPrivateFieldSet(this, _ScriptIterator_idxToken, __classPrivateFieldGet(this, _ScriptIterator_idxToken, "f") - __classPrivateFieldGet(this, _ScriptIterator_instances, "a", _ScriptIterator_idxDx4Dbg_get), "f");
72892
- __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.breaking, "f");
72933
+ __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Breaking, "f");
72893
72934
  this.main.setLoop(true);
72894
72935
  this.main.resume();
72895
72936
  },
@@ -72900,9 +72941,9 @@ class ScriptIterator {
72900
72941
  const tkn = __classPrivateFieldGet(this, _ScriptIterator_script, "f").aToken[__classPrivateFieldGet(this, _ScriptIterator_idxToken, "f") - __classPrivateFieldGet(this, _ScriptIterator_instances, "a", _ScriptIterator_idxDx4Dbg_get)];
72901
72942
  this.sys.callHook(`stopOnStep${__classPrivateFieldGet(this, _ScriptIterator_REGSTEPIN, "f").test(tkn) ? 'In' : ''}`, {});
72902
72943
  __classPrivateFieldSet(this, _ScriptIterator_idxToken, __classPrivateFieldGet(this, _ScriptIterator_idxToken, "f") - __classPrivateFieldGet(this, _ScriptIterator_instances, "a", _ScriptIterator_idxDx4Dbg_get), "f");
72903
- __classPrivateFieldSet(this, _ScriptIterator_breakState, __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.wait
72904
- ? BreakState.step
72905
- : BreakState.stepping, "f");
72944
+ __classPrivateFieldSet(this, _ScriptIterator_breakState, __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.Wait
72945
+ ? BreakState.Step
72946
+ : BreakState.Stepping, "f");
72906
72947
  this.main.setLoop(true);
72907
72948
  this.main.resume();
72908
72949
  },
@@ -72915,12 +72956,12 @@ class ScriptIterator {
72915
72956
  __classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_go_stepover).call(this, o);
72916
72957
  },
72917
72958
  pause: () => {
72918
- __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.step, "f");
72959
+ __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Step, "f");
72919
72960
  this.main.setLoop(false, '一時停止');
72920
72961
  this.sys.send2Dbg('stopOnStep', {});
72921
72962
  },
72922
72963
  stopOnEntry: () => {
72923
- __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.step, "f");
72964
+ __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Step, "f");
72924
72965
  this.main.setLoop(false, '一時停止');
72925
72966
  this.sys.send2Dbg('stopOnEntry', {});
72926
72967
  },
@@ -72930,7 +72971,7 @@ class ScriptIterator {
72930
72971
  .replace(__classPrivateFieldGet(ScriptIterator, _a, "f", _ScriptIterator_REG4CODE_FN), `$1/prj/$2/${__classPrivateFieldGet(this, _ScriptIterator_scriptFn, "f")}$3`));
72931
72972
  this.cnvPath4Dbg = (fn) => this.sys.pathBaseCnvSnPath4Dbg + fn.replace('/crypto_prj/', '/prj/');
72932
72973
  _ScriptIterator_csDepth_macro_esc.set(this, 0);
72933
- _ScriptIterator_breakState.set(this, BreakState.running);
72974
+ _ScriptIterator_breakState.set(this, BreakState.Running);
72934
72975
  this.isBreak = (_token) => false;
72935
72976
  _ScriptIterator_procDebugtag.set(this, (_tag_name) => { });
72936
72977
  _ScriptIterator_evtMng.set(this, void 0);
@@ -73261,12 +73302,12 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
73261
73302
  this.sys.callHook(`stopOnStep${out ? 'Out' : ''}`, {});
73262
73303
  __classPrivateFieldSet(this, _ScriptIterator_csDepth_macro_esc, __classPrivateFieldGet(this, _ScriptIterator_aCallStk, "f").length - (out ? 1 : 0), "f");
73263
73304
  __classPrivateFieldSet(this, _ScriptIterator_idxToken, __classPrivateFieldGet(this, _ScriptIterator_idxToken, "f") - __classPrivateFieldGet(this, _ScriptIterator_instances, "a", _ScriptIterator_idxDx4Dbg_get), "f");
73264
- __classPrivateFieldSet(this, _ScriptIterator_breakState, out ? BreakState.stepout : BreakState.stepouting, "f");
73305
+ __classPrivateFieldSet(this, _ScriptIterator_breakState, out ? BreakState.StepOut : BreakState.StepOuting, "f");
73265
73306
  this.main.setLoop(true);
73266
73307
  this.main.resume();
73267
73308
  }, _ScriptIterator_idxDx4Dbg_get = function _ScriptIterator_idxDx4Dbg_get() {
73268
- return __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.break
73269
- || __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.step ? 1 : 0;
73309
+ return __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.Break
73310
+ || __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.Step ? 1 : 0;
73270
73311
  }, _ScriptIterator_isIdxOverLast = function _ScriptIterator_isIdxOverLast() {
73271
73312
  if (__classPrivateFieldGet(this, _ScriptIterator_idxToken, "f") < __classPrivateFieldGet(this, _ScriptIterator_script, "f").len)
73272
73313
  return false;
@@ -73275,34 +73316,34 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
73275
73316
  return true;
73276
73317
  }, _ScriptIterator_isBreak_base = function _ScriptIterator_isBreak_base(token) {
73277
73318
  switch (__classPrivateFieldGet(this, _ScriptIterator_breakState, "f")) {
73278
- case BreakState.stepouting:
73319
+ case BreakState.StepOuting:
73279
73320
  __classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_subHitCondition).call(this);
73280
- __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.stepout, "f");
73321
+ __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.StepOut, "f");
73281
73322
  break;
73282
- case BreakState.stepout:
73323
+ case BreakState.StepOut:
73283
73324
  if (__classPrivateFieldGet(this, _ScriptIterator_aCallStk, "f").length !== __classPrivateFieldGet(this, _ScriptIterator_csDepth_macro_esc, "f"))
73284
73325
  break;
73285
- __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.step, "f");
73326
+ __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Step, "f");
73286
73327
  this.main.setLoop(false, 'ステップ実行');
73287
73328
  this.sys.send2Dbg('stopOnStep', {});
73288
73329
  return true;
73289
- case BreakState.stepping:
73330
+ case BreakState.Stepping:
73290
73331
  __classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_subHitCondition).call(this);
73291
- __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.step, "f");
73332
+ __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Step, "f");
73292
73333
  break;
73293
- case BreakState.step:
73334
+ case BreakState.Step:
73294
73335
  __classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_subHitCondition).call(this);
73295
73336
  this.main.setLoop(false, 'ステップ実行');
73296
73337
  this.sys.send2Dbg('stopOnStep', {});
73297
73338
  return true;
73298
- case BreakState.breaking:
73339
+ case BreakState.Breaking:
73299
73340
  __classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_subHitCondition).call(this);
73300
- __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.running, "f");
73341
+ __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Running, "f");
73301
73342
  break;
73302
73343
  default:
73303
73344
  {
73304
73345
  if ((0, Grammar_1.tagToken2Name)(token) in __classPrivateFieldGet(ScriptIterator, _a, "f", _ScriptIterator_hFuncBP)) {
73305
- __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.break, "f");
73346
+ __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Break, "f");
73306
73347
  this.main.setLoop(false, `関数 ${token} ブレーク`);
73307
73348
  this.sys.callHook('stopOnBreakpoint', {});
73308
73349
  this.sys.send2Dbg('stopOnBreakpoint', {});
@@ -73322,8 +73363,8 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
73322
73363
  }
73323
73364
  else if (('hitCondition' in o) && --o.hitCondition > 0)
73324
73365
  break;
73325
- const isBreak = __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.running;
73326
- __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.break, "f");
73366
+ const isBreak = __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.Running;
73367
+ __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Break, "f");
73327
73368
  this.main.setLoop(false, isBreak ? ((o.condition ? '条件' : 'ヒットカウント') + 'ブレーク') : 'ステップ実行');
73328
73369
  const type = isBreak ? 'stopOnBreakpoint' : 'stopOnStep';
73329
73370
  this.sys.callHook(type, {});
@@ -73337,7 +73378,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
73337
73378
  if (o?.hitCondition)
73338
73379
  --o.hitCondition;
73339
73380
  }, _ScriptIterator_aStack = function _ScriptIterator_aStack() {
73340
- const idx_n = __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.breaking ? 1 : 0;
73381
+ const idx_n = __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.Breaking ? 1 : 0;
73341
73382
  const tkn0 = __classPrivateFieldGet(this, _ScriptIterator_script, "f").aToken[__classPrivateFieldGet(this, _ScriptIterator_idxToken, "f") - 1 + idx_n];
73342
73383
  const fn0 = __classPrivateFieldGet(this, _ScriptIterator_cnvSnPath4Dbg, "f").call(this, __classPrivateFieldGet(this, _ScriptIterator_scriptFn, "f"));
73343
73384
  const tag_name0 = (0, Grammar_1.tagToken2Name)(tkn0);
@@ -73398,7 +73439,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
73398
73439
  for (let i = len - 1; i >= 0; --i) {
73399
73440
  const cs = __classPrivateFieldGet(this, _ScriptIterator_aCallStk, "f")[i];
73400
73441
  const hMp = cs.csArg[':hMp'];
73401
- const from_macro_nm = hMp ? hMp[':タグ名'] : null;
73442
+ const from_macro_nm = hMp ? hMp[':タグ名'] : undefined;
73402
73443
  const call_nm = cs.csArg[':タグ名'] ?? '';
73403
73444
  const lc = __classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_cnvIdx2lineCol).call(this, __classPrivateFieldGet(this, _ScriptIterator_hScript, "f")[cs.fn], cs.idx);
73404
73445
  console.info(`${len - i}つ前のコール元 fn:${cs.fn} line:${lc.ln} col:${lc.col_s + 1}` + (from_macro_nm ? '([' + from_macro_nm + ']マクロ内)' : ' ') +
@@ -74052,7 +74093,7 @@ class SoundMng {
74052
74093
  [hArg.clickse, hArg.enterse, hArg.leavese].forEach(fn => {
74053
74094
  if (!fn || sound_1.sound.exists(fn))
74054
74095
  return;
74055
- __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, fn, { preload: true, autoPlay: false });
74096
+ __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, '', fn, { preload: true, autoPlay: false });
74056
74097
  });
74057
74098
  }
74058
74099
  playLoopFromSaveObj() {
@@ -74132,12 +74173,11 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
74132
74173
  __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopse).call(this, hArg);
74133
74174
  return false;
74134
74175
  }
74135
- const ease = CmnTween_1.CmnTween.ease(hArg.ease);
74136
74176
  const repeat = (0, CmnLib_1.argChk_Num)(hArg, 'repeat', 1);
74137
74177
  oSb.twFade = new tween_js_1.Tween({ v: oSb.snd.volume })
74138
74178
  .to({ v: vol }, time)
74139
74179
  .delay(delay)
74140
- .easing(ease)
74180
+ .easing(CmnTween_1.CmnTween.ease(hArg.ease))
74141
74181
  .repeat(repeat === 0 ? Infinity : (repeat - 1))
74142
74182
  .yoyo((0, CmnLib_1.argChk_Boolean)(hArg, 'yoyo', false))
74143
74183
  .onUpdate(o => { if (oSb.playing())
@@ -74164,7 +74204,7 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
74164
74204
  __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopse).call(this, { buf });
74165
74205
  const fn = hArg.fn;
74166
74206
  if (!fn)
74167
- throw '[playse] fnは必須です(buf=' + buf + ')';
74207
+ throw `[playse] fnは必須です buf:${buf}`;
74168
74208
  if ((0, CmnLib_1.argChk_Boolean)(hArg, 'canskip', true)
74169
74209
  && __classPrivateFieldGet(this, _SoundMng_evtMng, "f").isSkippingByKeyDown())
74170
74210
  return false;
@@ -74195,11 +74235,11 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
74195
74235
  const snd = sound_1.sound.find(fn);
74196
74236
  const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf] = {
74197
74237
  now_buf: buf,
74198
- snd: snd,
74199
- loop: loop,
74200
- start_ms: start_ms,
74201
- end_ms: end_ms,
74202
- ret_ms: ret_ms,
74238
+ snd,
74239
+ loop,
74240
+ start_ms,
74241
+ end_ms,
74242
+ ret_ms,
74203
74243
  resume: false,
74204
74244
  playing: () => true,
74205
74245
  onend: () => {
@@ -74214,7 +74254,7 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
74214
74254
  },
74215
74255
  };
74216
74256
  const o = {
74217
- loop: loop,
74257
+ loop,
74218
74258
  volume: vol,
74219
74259
  speed: (0, CmnLib_1.argChk_Num)(hArg, 'speed', 1),
74220
74260
  sprites: {},
@@ -74299,14 +74339,14 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
74299
74339
  }
74300
74340
  if (o2s.start >= d)
74301
74341
  throw `[playse] ret_ms:${ret_ms} >= 音声ファイル再生時間:${d} は異常値です`;
74302
- __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, fn, o2);
74342
+ __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, buf, fn, o2);
74303
74343
  };
74304
74344
  }
74305
74345
  __classPrivateFieldGet(this, _SoundMng_initVol, "f").call(this);
74306
74346
  if (snd) {
74307
74347
  snd.volume = vol;
74308
74348
  if (sp_nm)
74309
- __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, fn, o);
74349
+ __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, buf, fn, o);
74310
74350
  else if (snd.isPlayable) {
74311
74351
  const ab = snd.options.source;
74312
74352
  if (!(ab instanceof ArrayBuffer)
@@ -74326,13 +74366,15 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
74326
74366
  const old = o.loaded;
74327
74367
  o.loaded = (e, snd) => { old?.(e, snd); this.main.resume(); };
74328
74368
  }
74329
- __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, fn, o);
74369
+ __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, buf, fn, o);
74330
74370
  return join;
74331
- }, _SoundMng_playseSub = function _SoundMng_playseSub(fn, o) {
74371
+ }, _SoundMng_playseSub = function _SoundMng_playseSub(buf, fn, o) {
74332
74372
  const url = this.cfg.searchPath(fn, Config_1.Config.EXT_SOUND);
74333
74373
  if (url.slice(-4) !== '.bin') {
74334
74374
  o.url = url;
74335
74375
  const snd = sound_1.Sound.from(o);
74376
+ if (buf)
74377
+ __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf].snd = snd;
74336
74378
  if (!o.loop)
74337
74379
  sound_1.sound.add(fn, snd);
74338
74380
  return;
@@ -74346,6 +74388,8 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
74346
74388
  .load((_ldr, hRes) => {
74347
74389
  o.source = hRes[fn]?.data;
74348
74390
  const snd = sound_1.Sound.from(o);
74391
+ if (buf)
74392
+ __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf].snd = snd;
74349
74393
  if (!o.loop)
74350
74394
  sound_1.sound.add(fn, snd);
74351
74395
  });
@@ -74357,9 +74401,12 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
74357
74401
  return false;
74358
74402
  }, _SoundMng_stopbgm = function _SoundMng_stopbgm(hArg) { hArg.buf = 'BGM'; return __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopse).call(this, hArg); }, _SoundMng_stopse = function _SoundMng_stopse(hArg) {
74359
74403
  const buf = hArg.buf ?? 'SE';
74360
- __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopfadese).call(this, hArg);
74361
74404
  __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_delLoopPlay).call(this, buf);
74362
- __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf]?.snd?.stop();
74405
+ const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf];
74406
+ if (oSb) {
74407
+ oSb.snd?.stop();
74408
+ oSb.onend();
74409
+ }
74363
74410
  return false;
74364
74411
  }, _SoundMng_wb = function _SoundMng_wb(hArg) { hArg.buf = 'BGM'; return __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_wf).call(this, hArg); }, _SoundMng_wf = function _SoundMng_wf(hArg) {
74365
74412
  const buf = hArg.buf ?? 'SE';
@@ -74471,7 +74518,7 @@ class SysBase {
74471
74518
  this.reso4frame = 1;
74472
74519
  this.data = { sys: {}, mark: {}, kidoku: {} };
74473
74520
  this.extPort = 3776;
74474
- _SysBase_sk.set(this, null);
74521
+ _SysBase_sk.set(this, undefined);
74475
74522
  _SysBase_hHook.set(this, {
74476
74523
  auth: o => {
74477
74524
  if (o.t !== this.cfg.oCfg.debuger_token) {
@@ -74677,7 +74724,7 @@ class SysBase {
74677
74724
  }
74678
74725
  end() {
74679
74726
  __classPrivateFieldGet(this, _SysBase_sk, "f")?.disconnect();
74680
- __classPrivateFieldSet(this, _SysBase_sk, null, "f");
74727
+ __classPrivateFieldSet(this, _SysBase_sk, undefined, "f");
74681
74728
  }
74682
74729
  toast(nm) {
74683
74730
  const cvs = document.getElementById(CmnLib_1.CmnLib.SN_ID);
@@ -74798,7 +74845,7 @@ class SysWeb extends SysBase_1.SysBase {
74798
74845
  }
74799
74846
  __classPrivateFieldSet(this, _SysWeb_main, new Main_1.Main(this), "f");
74800
74847
  };
74801
- _SysWeb_main.set(this, void 0);
74848
+ _SysWeb_main.set(this, undefined);
74802
74849
  this.pathBaseCnvSnPath4Dbg = '${pathbase}/';
74803
74850
  this._export = () => {
74804
74851
  (async () => {
@@ -74937,7 +74984,7 @@ class SysWeb extends SysBase_1.SysBase {
74937
74984
  if (!__classPrivateFieldGet(this, _SysWeb_main, "f"))
74938
74985
  return;
74939
74986
  __classPrivateFieldGet(this, _SysWeb_main, "f").destroy();
74940
- __classPrivateFieldSet(this, _SysWeb_main, null, "f");
74987
+ __classPrivateFieldSet(this, _SysWeb_main, undefined, "f");
74941
74988
  }
74942
74989
  async loadPath(hPathFn2Exts, cfg) {
74943
74990
  await super.loadPath(hPathFn2Exts, cfg);
@@ -75091,7 +75138,7 @@ class TxtLayer extends Layer_1.Layer {
75091
75138
  _TxtLayer_b_color.set(this, 0x000000);
75092
75139
  _TxtLayer_b_alpha.set(this, 0);
75093
75140
  _TxtLayer_b_alpha_isfixed.set(this, false);
75094
- _TxtLayer_b_do.set(this, null);
75141
+ _TxtLayer_b_do.set(this, undefined);
75095
75142
  _TxtLayer_b_pic.set(this, '');
75096
75143
  _TxtLayer_txs.set(this, new TxtStage_1.TxtStage(this.spLay, () => this.canFocus()));
75097
75144
  _TxtLayer_rbSpl.set(this, new RubySpliter_1.RubySpliter);
@@ -75347,7 +75394,7 @@ ${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, tx)}`;
75347
75394
  _TxtLayer_cumDelay.set(this, 0);
75348
75395
  _TxtLayer_firstCh.set(this, true);
75349
75396
  _TxtLayer_aSpan.set(this, []);
75350
- _TxtLayer_aSpan_bk.set(this, null);
75397
+ _TxtLayer_aSpan_bk.set(this, undefined);
75351
75398
  _TxtLayer_aSpan_link.set(this, '');
75352
75399
  _TxtLayer_hSpanBk.set(this, {
75353
75400
  ch_in_style: '',
@@ -75371,8 +75418,8 @@ ${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, tx)}`;
75371
75418
  this.record = () => Object.assign(super.record(), {
75372
75419
  enabled: this.enabled,
75373
75420
  r_align: __classPrivateFieldGet(this, _TxtLayer_r_align, "f"),
75374
- b_do: (__classPrivateFieldGet(this, _TxtLayer_b_do, "f") === null)
75375
- ? null
75421
+ b_do: (__classPrivateFieldGet(this, _TxtLayer_b_do, "f") === undefined)
75422
+ ? undefined
75376
75423
  : (__classPrivateFieldGet(this, _TxtLayer_b_do, "f") instanceof pixi_js_1.Sprite ? 'Sprite' : 'Graphics'),
75377
75424
  b_pic: __classPrivateFieldGet(this, _TxtLayer_b_pic, "f"),
75378
75425
  b_color: __classPrivateFieldGet(this, _TxtLayer_b_color, "f"),
@@ -75460,7 +75507,7 @@ ${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, tx)}`;
75460
75507
  destroy() {
75461
75508
  if (__classPrivateFieldGet(this, _TxtLayer_b_do, "f")) {
75462
75509
  this.spLay.removeChild(__classPrivateFieldGet(this, _TxtLayer_b_do, "f")).destroy();
75463
- __classPrivateFieldSet(this, _TxtLayer_b_do, null, "f");
75510
+ __classPrivateFieldSet(this, _TxtLayer_b_do, undefined, "f");
75464
75511
  }
75465
75512
  this.clearText();
75466
75513
  __classPrivateFieldGet(this, _TxtLayer_txs, "f").destroy();
@@ -75557,7 +75604,7 @@ ${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, tx)}`;
75557
75604
  __classPrivateFieldSet(this, _TxtLayer_cumDelay, 0, "f");
75558
75605
  __classPrivateFieldSet(this, _TxtLayer_firstCh, true, "f");
75559
75606
  __classPrivateFieldSet(this, _TxtLayer_aSpan, [], "f");
75560
- __classPrivateFieldSet(this, _TxtLayer_aSpan_bk, null, "f");
75607
+ __classPrivateFieldSet(this, _TxtLayer_aSpan_bk, undefined, "f");
75561
75608
  __classPrivateFieldSet(this, _TxtLayer_page_text, '', "f");
75562
75609
  __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_recText).call(TxtLayer, '', true);
75563
75610
  }
@@ -75848,7 +75895,7 @@ _a = TxtLayer, _TxtLayer_b_color = new WeakMap(), _TxtLayer_b_alpha = new WeakMa
75848
75895
  return;
75849
75896
  __classPrivateFieldGet(this, _TxtLayer_aSpan_bk, "f").push(__classPrivateFieldGet(this, _TxtLayer_aSpan, "f"), '</span>');
75850
75897
  __classPrivateFieldSet(this, _TxtLayer_aSpan, Array.prototype.concat.apply([], __classPrivateFieldGet(this, _TxtLayer_aSpan_bk, "f")), "f");
75851
- __classPrivateFieldSet(this, _TxtLayer_aSpan_bk, null, "f");
75898
+ __classPrivateFieldSet(this, _TxtLayer_aSpan_bk, undefined, "f");
75852
75899
  __classPrivateFieldGet(this, _TxtLayer_instances, "m", _TxtLayer_set_ch_in).call(this, { in_style: __classPrivateFieldGet(this, _TxtLayer_hSpanBk, "f").ch_in_style });
75853
75900
  __classPrivateFieldGet(this, _TxtLayer_instances, "m", _TxtLayer_set_ch_out).call(this, { out_style: __classPrivateFieldGet(this, _TxtLayer_hSpanBk, "f").ch_out_style });
75854
75901
  __classPrivateFieldSet(this, _TxtLayer_r_align, __classPrivateFieldGet(this, _TxtLayer_hSpanBk, "f").r_align, "f");
@@ -75924,18 +75971,18 @@ class TxtStage extends pixi_js_1.Container {
75924
75971
  _TxtStage_isTategaki.set(this, false);
75925
75972
  _TxtStage_padTx4x.set(this, 0);
75926
75973
  _TxtStage_padTx4y.set(this, 0);
75927
- _TxtStage_ch_filter.set(this, void 0);
75974
+ _TxtStage_ch_filter.set(this, undefined);
75928
75975
  _TxtStage_aSpTw.set(this, []);
75929
75976
  _TxtStage_aRect.set(this, []);
75930
75977
  _TxtStage_lenHtmTxt.set(this, 0);
75931
- _TxtStage_beforeHTMLElm.set(this, null);
75978
+ _TxtStage_beforeHTMLElm.set(this, undefined);
75932
75979
  _TxtStage_REGDS.set(this, /animation\-duration: (?<ms>\d+)ms;/);
75933
75980
  _TxtStage_fncEndChIn.set(this, () => { });
75934
75981
  _TxtStage_isChInIng.set(this, false);
75935
75982
  _TxtStage_lh_half.set(this, 0);
75936
75983
  _TxtStage_fi_easing.set(this, 'Quadratic.Out');
75937
75984
  _TxtStage_fo_easing.set(this, 'Quadratic.Out');
75938
- _TxtStage_sss.set(this, null);
75985
+ _TxtStage_sss.set(this, undefined);
75939
75986
  __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").classList.add('sn_tx');
75940
75987
  __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.position = 'absolute';
75941
75988
  __classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_cvs).parentElement.appendChild(__classPrivateFieldGet(this, _TxtStage_htmTxt, "f"));
@@ -76224,7 +76271,7 @@ class TxtStage extends pixi_js_1.Container {
76224
76271
  __classPrivateFieldGet(this, _TxtStage_fncEndChIn, "f").call(this);
76225
76272
  return;
76226
76273
  }
76227
- let le = null;
76274
+ let le = undefined;
76228
76275
  for (let i = len_chs - 1; i >= 0; --i) {
76229
76276
  const v = chs[i];
76230
76277
  if (v.className === 'sn_ch')
@@ -76396,7 +76443,7 @@ class TxtStage extends pixi_js_1.Container {
76396
76443
  snapshot_end() {
76397
76444
  if (__classPrivateFieldGet(this, _TxtStage_sss, "f")) {
76398
76445
  __classPrivateFieldGet(this, _TxtStage_cntTxt, "f").removeChild(__classPrivateFieldGet(this, _TxtStage_sss, "f"));
76399
- __classPrivateFieldSet(this, _TxtStage_sss, null, "f");
76446
+ __classPrivateFieldSet(this, _TxtStage_sss, undefined, "f");
76400
76447
  }
76401
76448
  }
76402
76449
  makeDesignCast(gdc) {
@@ -76599,7 +76646,7 @@ _a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(
76599
76646
  };
76600
76647
  function resolveAll() {
76601
76648
  return readAll()
76602
- .then(webFonts => Promise.all(webFonts.map((webFont) => webFont.resolve())))
76649
+ .then(webFonts => Promise.allSettled(webFonts.map((webFont) => webFont.resolve())))
76603
76650
  .then(cssStrings => cssStrings.join('\n'));
76604
76651
  }
76605
76652
  function readAll() {
@@ -76703,7 +76750,7 @@ _a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(
76703
76750
  .easing(ease)
76704
76751
  .delay((add.wait ?? 0) + (arg.delay ?? 0))
76705
76752
  .onComplete(() => {
76706
- st.tw = null;
76753
+ st.tw = undefined;
76707
76754
  })
76708
76755
  .start(),
76709
76756
  };