@famibee/skynovel 1.30.0 → 1.30.3

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/dist/app.js CHANGED
@@ -49,7 +49,7 @@ var __privateMethod = (obj, member, method) => {
49
49
  __accessCheck(obj, member, "access private method");
50
50
  return method;
51
51
  };
52
- var _a2, _b2, _c2, _d, _sesame, _putCh, _REG_RUBY, _REG_CANTC2M, _REGC2M, _regStrC2M, _regStrC2M4not, _hC2M, _REG_TAGARG, _hPrm, _isKomeParam, _parser, _calc, calc_fn, _hFnc, _fncSub_ChkNum, fncSub_ChkNum_fn, _REG_EMBEDVAR, _procEmbedVar, procEmbedVar_fn, _REG_VAL, _getValName_B2D, getValName_B2D_fn, _hScopes, _hSave, _hTmp, _sys2, _data, _hSys, _hAreaKidoku, _callHook, _hProcDbgRes, _set_data_break, set_data_break_fn, _flush, _doRecProc, _copybookmark, copybookmark_fn, _erasebookmark, erasebookmark_fn, _let, let_fn, _let_abs, let_abs_fn, _let_char_at, let_char_at_fn, _let_index_of, let_index_of_fn, _let_length, let_length_fn, _let_replace, let_replace_fn, _let_round, let_round_fn, _let_search, let_search_fn, _let_substr, let_substr_fn, _clearsysvar, clearsysvar_fn, _clearvar, clearvar_fn, _setVal, _hSetEvent, _castAuto, castAuto_fn, _REG_NUMERICLITERAL, _dump_val, _doRecLog, _hValTrg, _runFirst_Bool_hSysVal_true, runFirst_Bool_hSysVal_true_fn, _runFirst_sys_an_tagCh_msecWait, runFirst_sys_an_tagCh_msecWait_fn, _runFirst_sys_an_tagCh_msecWait_Kidoku, runFirst_sys_an_tagCh_msecWait_Kidoku_fn, _runFirst_sys_an_auto_msecPageWait, runFirst_sys_an_auto_msecPageWait_fn, _runFirst_sys_an_auto_msecLineWait, runFirst_sys_an_auto_msecLineWait_fn, _runFirst_Bool_hSaveVal_true, runFirst_Bool_hSaveVal_true_fn, _runFirst_Bool_hTmp_true, runFirst_Bool_hTmp_true_fn, _runFirst_Bool_hTmp_false, runFirst_Bool_hTmp_false_fn, _hEase, _hSndBuf, _hLP, _evtMng2, _volume, volume_fn, _getVol, getVol_fn, _fadeoutbgm, fadeoutbgm_fn, _fadeoutse, fadeoutse_fn, _fadebgm, fadebgm_fn, _fadese, fadese_fn, _playbgm, playbgm_fn, _MAX_END_MS, _playse, playse_fn, _playseSub, playseSub_fn, _initVol, _stop_allse, stop_allse_fn, _stopbgm, stopbgm_fn, _stopse, stopse_fn, _wb, wb_fn, _wf, wf_fn, _stopfadese, stopfadese_fn, _wl, wl_fn, _ws, ws_fn, _xchgbuf, xchgbuf_fn, _addLoopPlay, addLoopPlay_fn, _delLoopPlay, delLoopPlay_fn, _pg, _hBlendmode, _vctEvt, _sp, _procHint, procHint_fn, _sp2, _cfg2, _appPixi2, _evtMng3, _htmTxt, _cntTxt, _grpDbgMasume, _idc2, _idcCh, _infTL, _break_fixed, _break_fixed_left, _break_fixed_top, _lay_sub, lay_sub_fn, _left, _isTategaki, _padTx4x, _padTx4y, _hWarning, _htm2tx, htm2tx_fn, _ch_filter, _aSpTw, _aRect, _lenHtmTxt, _reg\u884C\u982D\u7981\u5247, _reg\u884C\u672B\u7981\u5247, _reg\u5206\u5272\u7981\u6B62, _REGDS, _fncEndChIn, _spWork, spWork_fn, _isChInIng, _hChInStyle, _REG_NG_CHSTYLE_NAME_CHR, _hChOutStyle, _cntBreak, _lh_half, _getChRects, getChRects_fn, _fi_easing, _fo_easing, _clearText, clearText_fn, _sss, _cfg3, _val, _recText, _isPageFore, _ch_in_style, ch_in_style_fn, _ch_out_style, ch_out_style_fn, _main2, _evtMng4, _sys3, _doAutoWc, _hAutoWc, _autowc, autowc_fn, _b_color, _b_alpha, _b_alpha_isfixed, _b_do, _b_pic, _txs, _rbSpl, _cntBtn, _set_ch_in, set_ch_in_fn, _$ch_in_style, _ch_in_join, _set_ch_out, set_ch_out_fn, _$ch_out_style, _drawBack, drawBack_fn, _setFfs, setFfs_fn, _ffs, _fncFFSStyle, _fncFFSSpan, _strNoFFS, _regNoFFS, _rec, _rec_bk, _class_offrec, _ruby_pd, _r_align, _mkStyle_r_align4ff, mkStyle_r_align4ff_fn, _needGoTxt, _putCh2, _tagCh_sub, tagCh_sub_fn, _cumDelay, _firstCh, _aSpan, _aSpan_bk, _aSpan_link, _hSpanBk, _beginSpan, beginSpan_fn, _autoCloseSpan, autoCloseSpan_fn, _page_text, _evtMng5, _hIfrm, _add_frame, add_frame_fn, _hDisabled, _rect, rect_fn, _let_frame, let_frame_fn, _set_frame, set_frame_fn, _zIdx, _frame, frame_fn, _tsy_frame, tsy_frame_fn, _stage, _fore, _back, _frmMng, _bg_color, _fncTicker, _hProcDbgRes2, _modeLn, _modeLnSub, _selectNode, selectNode_fn, _grpCover, _evtMng6, _foreachRedrawTxtLayBack, foreachRedrawTxtLayBack_fn, _cmdTxt, _snapshot, snapshot_fn, _loadplugin, loadplugin_fn, _add_lay, add_lay_fn, _hPages, _aLayName, _curTxtlay, _firstGrplay, _lay, lay_fn, _rebuildLayerRankInfo, rebuildLayerRankInfo_fn, _clear_lay, clear_lay_fn, _srcRuleTransFragment, _ufRuleTrans, _fltRule, _rtTransBack, _spTransBack, _rtTransFore, _spTransFore, _aBackTransAfter, _trans, trans_fn, _tiTrans, _getLayers, getLayers_fn, _foreachLayers, foreachLayers_fn, _sortLayers, sortLayers_fn, _wt, wt_fn, _finish_trans, finish_trans_fn, _quake, quake_fn, _hTwInf, _tsy, tsy_fn, _wait_tsy, wait_tsy_fn, _stop_tsy, stop_tsy_fn, _pause_tsy, pause_tsy_fn, _resume_tsy, resume_tsy_fn, _msecChWait, _ch, ch_fn, _getTxtLayer, _$getTxtLayer, $getTxtLayer_fn, _current, _$current, $current_fn, _pgTxtlay, _chkTxtLay, _argChk_layer, argChk_layer_fn, _oLastPage, _aTxtLog, _clear_text, clear_text_fn, _endlink, endlink_fn, _er, er_fn, _graph, graph_fn, _link, link_fn, _r, r_fn, _rec_r, rec_r_fn, _rec_ch, rec_ch_fn, _reset_rec, reset_rec_fn, _ruby2, ruby2_fn, _span, span_fn, _tcy, tcy_fn, _dump_lay, dump_lay_fn, _enable_event, enable_event_fn, _button, button_fn, _aBtn, _idx, _radio_next, radio_next_fn, _logFocus, _allOff, allOff_fn, _elc2, _gamepad, _fcs, _resvFlameEvent4Wheel, _ev_keydown, ev_keydown_fn, _ev_contextmenu, ev_contextmenu_fn, _ev_wheel, ev_wheel_fn, _wheeling, _extend_wheel, _ev_wheel_waitstop, ev_wheel_waitstop_fn, _hLocalEvt2Fnc, _hGlobalEvt2Fnc, _isDbgBreak, _isWait, _getEvt2Fnc, _waitEventBase, waitEventBase_fn, _firstWait, _elmV, _elmHint, _spanHint, _popper, _oHintOpt, _dispHint, dispHint_fn, _procWheel4wle, _elcWLE, _clear_event, clear_event_fn, _clear_eventer, clear_eventer_fn, _event, event_fn, _canFocus, canFocus_fn, _getHtmlElmList, getHtmlElmList_fn, _goTxt, _l, l_fn, _p, p_fn, _stopSkip, _set_cancel_skip, set_cancel_skip_fn, _set_focus, set_focus_fn, _wait, wait_fn, _cancelWait, _waitclick, waitclick_fn, _hDownKeys, _script, _scriptFn, _idxToken, _lineNum, _aCallStk, _grm, _regBreakPoint, regBreakPoint_fn, _hHook2, _cnvSnPath, _REG4CODE_FN, _cnvSnPath4Dbg, _go_stepover, go_stepover_fn, _go_stepout, go_stepout_fn, _csDepth_macro_esc, _idxDx4Dbg, idxDx4Dbg_get, _isIdxOverLast, isIdxOverLast_fn, _hFn2hLineBP, _hFuncBP, _breakState, _isBreak_base, isBreak_base_fn, _subHitCondition, subHitCondition_fn, _aStack, aStack_fn, _procDebugtag, _evtMng7, _layMng, _let_ml, let_ml_fn, _dump_stack, dump_stack_fn, _cnvIdx2lineCol, cnvIdx2lineCol_fn, _dump_script, dump_script_fn, _fncSet, _fncBreak, _fnLastBreak, _hScrCache4Dump, _dumpErrLine, _aIfStk, _endif, endif_fn, _if, if_fn, _call, call_fn, _callSub, callSub_fn, _jump, jump_fn, _page, page_fn, _pop_stack, pop_stack_fn, _return, return_fn, _resvToken, _clearResvToken, clearResvToken_fn, _skipLabel, _jumpWork, jumpWork_fn, _nextToken_Proc, nextToken_Proc_fn, _dbgToken, _errOverScr, errOverScr_fn, _REG_NONAME_LABEL, _REG_TOKEN_MACRO_BEGIN, _REG_TOKEN_MACRO_END, _REG_TAG_LET_ML, _REG_TAG_ENDLET_ML, _seekScript, seekScript_fn, _hScript, _resolveScript, resolveScript_fn, _jump_light, jump_light_fn, _REG_WILDCARD, _REG_WILDCARD2, _replaceScript_Wildcard, _recordKidoku, recordKidoku_fn, _isKidoku, _eraseKidoku, eraseKidoku_fn, _bracket2macro, bracket2macro_fn, _char2macro, char2macro_fn, _macro, macro_fn, _strStepin, _REGSTEPIN, _load, load_fn, _loadFromMark, loadFromMark_fn, _skip4page, _reload_script, reload_script_fn, _mark, _record_place, record_place_fn, _nowScrIdx, nowScrIdx_fn, _save, save_fn, _aPageLog, _posAPageLog, _cfg4, _appPixi3, _hTag2, _val2, _prpPrs, _sndMng, _scrItr2, _dbgMng, _layMng2, _evtMng8, _fncNext, _alzTagArg2, _inited, _SN_ID, _init, init_fn, _fncTicker2, _fncresume, _isLoop, _runAnalyze, runAnalyze_fn, _destroyed, _clone_cvs, _hInfo, _setStore, _main3, _dl_app, dl_app_fn;
52
+ var _a2, _b2, _c2, _d, _sesame, _putCh, _REG_RUBY, _REG_CANTC2M, _REGC2M, _regStrC2M, _regStrC2M4not, _hC2M, _REG_TAGARG, _hPrm, _isKomeParam, _parser, _calc, calc_fn, _hFnc, _fncSub_ChkNum, fncSub_ChkNum_fn, _REG_EMBEDVAR, _procEmbedVar, procEmbedVar_fn, _REG_VAL, _getValName_B2D, getValName_B2D_fn, _hScopes, _hSave, _hTmp, _sys2, _data, _hSys, _hAreaKidoku, _callHook, _hProcDbgRes, _set_data_break, set_data_break_fn, _flush, _doRecProc, _copybookmark, copybookmark_fn, _erasebookmark, erasebookmark_fn, _let, let_fn, _let_abs, let_abs_fn, _let_char_at, let_char_at_fn, _let_index_of, let_index_of_fn, _let_length, let_length_fn, _let_replace, let_replace_fn, _let_round, let_round_fn, _let_search, let_search_fn, _let_substr, let_substr_fn, _clearsysvar, clearsysvar_fn, _clearvar, clearvar_fn, _setVal, _hSetEvent, _castAuto, castAuto_fn, _REG_NUMERICLITERAL, _dump_val, _doRecLog, _hValTrg, _runFirst_Bool_hSysVal_true, runFirst_Bool_hSysVal_true_fn, _runFirst_sys_an_tagCh_msecWait, runFirst_sys_an_tagCh_msecWait_fn, _runFirst_sys_an_tagCh_msecWait_Kidoku, runFirst_sys_an_tagCh_msecWait_Kidoku_fn, _runFirst_sys_an_auto_msecPageWait, runFirst_sys_an_auto_msecPageWait_fn, _runFirst_sys_an_auto_msecLineWait, runFirst_sys_an_auto_msecLineWait_fn, _runFirst_Bool_hSaveVal_true, runFirst_Bool_hSaveVal_true_fn, _runFirst_Bool_hTmp_true, runFirst_Bool_hTmp_true_fn, _runFirst_Bool_hTmp_false, runFirst_Bool_hTmp_false_fn, _hEase, _hSndBuf, _hLP, _evtMng2, _volume, volume_fn, _getVol, getVol_fn, _fadeoutbgm, fadeoutbgm_fn, _fadeoutse, fadeoutse_fn, _fadebgm, fadebgm_fn, _fadese, fadese_fn, _playbgm, playbgm_fn, _MAX_END_MS, _playse, playse_fn, _playseSub, playseSub_fn, _initVol, _stop_allse, stop_allse_fn, _stopbgm, stopbgm_fn, _stopse, stopse_fn, _wb, wb_fn, _wf, wf_fn, _stopfadese, stopfadese_fn, _wl, wl_fn, _ws, ws_fn, _xchgbuf, xchgbuf_fn, _addLoopPlay, addLoopPlay_fn, _delLoopPlay, delLoopPlay_fn, _pg, _hBlendmode, _vctEvt, _sp, _procHint, procHint_fn, _sp2, _cfg2, _appPixi2, _evtMng3, _htmTxt, _cntTxt, _grpDbgMasume, _idc2, _idcCh, _infTL, _break_fixed, _break_fixed_left, _break_fixed_top, _lay_sub, lay_sub_fn, _left, _isTategaki, _padTx4x, _padTx4y, _hWarning, _htm2tx, htm2tx_fn, _ch_filter, _aSpTw, _aRect, _lenHtmTxt, _reg\u884C\u982D\u7981\u5247, _reg\u884C\u672B\u7981\u5247, _reg\u5206\u5272\u7981\u6B62, _REGDS, _fncEndChIn, _spWork, spWork_fn, _isChInIng, _hChInStyle, _REG_NG_CHSTYLE_NAME_CHR, _hChOutStyle, _cntBreak, _lh_half, _getChRects, getChRects_fn, _fi_easing, _fo_easing, _clearText, clearText_fn, _sss, _cfg3, _val, _recText, _isPageFore, _ch_in_style, ch_in_style_fn, _ch_out_style, ch_out_style_fn, _main2, _evtMng4, _sys3, _doAutoWc, _hAutoWc, _autowc, autowc_fn, _b_color, _b_alpha, _b_alpha_isfixed, _b_do, _b_pic, _txs, _rbSpl, _cntBtn, _set_ch_in, set_ch_in_fn, _$ch_in_style, _ch_in_join, _set_ch_out, set_ch_out_fn, _$ch_out_style, _drawBack, drawBack_fn, _setFfs, setFfs_fn, _ffs, _fncFFSStyle, _strNoFFS, _regNoFFS, _rec, _ruby_pd, _r_align, _mkStyle_r_align4ff, mkStyle_r_align4ff_fn, _needGoTxt, _putCh2, _tagCh_sub, tagCh_sub_fn, _style_delay, style_delay_fn, _cumDelay, _firstCh, _aSpan, _stkASpan, _pushSpan, pushSpan_fn, _popSpan, popSpan_fn, _page_text, _evtMng5, _hIfrm, _add_frame, add_frame_fn, _hDisabled, _rect, rect_fn, _let_frame, let_frame_fn, _set_frame, set_frame_fn, _zIdx, _frame, frame_fn, _tsy_frame, tsy_frame_fn, _stage, _fore, _back, _frmMng, _bg_color, _fncTicker, _hProcDbgRes2, _modeLn, _modeLnSub, _selectNode, selectNode_fn, _grpCover, _evtMng6, _foreachRedrawTxtLayBack, foreachRedrawTxtLayBack_fn, _cmdTxt, _snapshot, snapshot_fn, _loadplugin, loadplugin_fn, _add_lay, add_lay_fn, _hPages, _aLayName, _curTxtlay, _firstGrplay, _lay, lay_fn, _rebuildLayerRankInfo, rebuildLayerRankInfo_fn, _clear_lay, clear_lay_fn, _srcRuleTransFragment, _ufRuleTrans, _fltRule, _rtTransBack, _spTransBack, _rtTransFore, _spTransFore, _aBackTransAfter, _trans, trans_fn, _tiTrans, _getLayers, getLayers_fn, _foreachLayers, foreachLayers_fn, _sortLayers, sortLayers_fn, _wt, wt_fn, _finish_trans, finish_trans_fn, _quake, quake_fn, _hTwInf, _tsy, tsy_fn, _wait_tsy, wait_tsy_fn, _stop_tsy, stop_tsy_fn, _pause_tsy, pause_tsy_fn, _resume_tsy, resume_tsy_fn, _msecChWait, _ch, ch_fn, _getTxtLayer, _$getTxtLayer, $getTxtLayer_fn, _current, _$current, $current_fn, _pgTxtlay, _chkTxtLay, _argChk_layer, argChk_layer_fn, _oLastPage, _aTxtLog, _clear_text, clear_text_fn, _endlink, endlink_fn, _er, er_fn, _graph, graph_fn, _link, link_fn, _r, r_fn, _rec_r, rec_r_fn, _rec_ch, rec_ch_fn, _reset_rec, reset_rec_fn, _ruby2, ruby2_fn, _span, span_fn, _tcy, tcy_fn, _dump_lay, dump_lay_fn, _enable_event, enable_event_fn, _button, button_fn, _aBtn, _idx, _radio_next, radio_next_fn, _logFocus, _allOff, allOff_fn, _elc2, _gamepad, _fcs, _resvFlameEvent4Wheel, _ev_keydown, ev_keydown_fn, _ev_contextmenu, ev_contextmenu_fn, _ev_wheel, ev_wheel_fn, _wheeling, _extend_wheel, _ev_wheel_waitstop, ev_wheel_waitstop_fn, _hLocalEvt2Fnc, _hGlobalEvt2Fnc, _isDbgBreak, _isWait, _getEvt2Fnc, _waitEventBase, waitEventBase_fn, _firstWait, _elmV, _elmHint, _spanHint, _popper, _oHintOpt, _dispHint, dispHint_fn, _procWheel4wle, _elcWLE, _clear_event, clear_event_fn, _clear_eventer, clear_eventer_fn, _event, event_fn, _canFocus, canFocus_fn, _getHtmlElmList, getHtmlElmList_fn, _goTxt, _l, l_fn, _p, p_fn, _stopSkip, _set_cancel_skip, set_cancel_skip_fn, _set_focus, set_focus_fn, _wait, wait_fn, _cancelWait, _waitclick, waitclick_fn, _hDownKeys, _script, _scriptFn, _idxToken, _lineNum, _aCallStk, _grm, _regBreakPoint, regBreakPoint_fn, _hHook2, _cnvSnPath, _REG4CODE_FN, _cnvSnPath4Dbg, _go_stepover, go_stepover_fn, _go_stepout, go_stepout_fn, _csDepth_macro_esc, _idxDx4Dbg, idxDx4Dbg_get, _isIdxOverLast, isIdxOverLast_fn, _hFn2hLineBP, _hFuncBP, _breakState, _isBreak_base, isBreak_base_fn, _subHitCondition, subHitCondition_fn, _aStack, aStack_fn, _procDebugtag, _evtMng7, _layMng, _let_ml, let_ml_fn, _dump_stack, dump_stack_fn, _cnvIdx2lineCol, cnvIdx2lineCol_fn, _dump_script, dump_script_fn, _fncSet, _fncBreak, _fnLastBreak, _hScrCache4Dump, _dumpErrLine, _aIfStk, _endif, endif_fn, _if, if_fn, _call, call_fn, _callSub, callSub_fn, _jump, jump_fn, _page, page_fn, _pop_stack, pop_stack_fn, _return, return_fn, _resvToken, _clearResvToken, clearResvToken_fn, _skipLabel, _jumpWork, jumpWork_fn, _nextToken_Proc, nextToken_Proc_fn, _dbgToken, _errOverScr, errOverScr_fn, _REG_NONAME_LABEL, _REG_TOKEN_MACRO_BEGIN, _REG_TOKEN_MACRO_END, _REG_TAG_LET_ML, _REG_TAG_ENDLET_ML, _seekScript, seekScript_fn, _hScript, _resolveScript, resolveScript_fn, _jump_light, jump_light_fn, _REG_WILDCARD, _REG_WILDCARD2, _replaceScript_Wildcard, _recordKidoku, recordKidoku_fn, _isKidoku, _eraseKidoku, eraseKidoku_fn, _bracket2macro, bracket2macro_fn, _char2macro, char2macro_fn, _macro, macro_fn, _strStepin, _REGSTEPIN, _load, load_fn, _loadFromMark, loadFromMark_fn, _skip4page, _reload_script, reload_script_fn, _mark, _record_place, record_place_fn, _nowScrIdx, nowScrIdx_fn, _save, save_fn, _aPageLog, _posAPageLog, _cfg4, _appPixi3, _hTag2, _val2, _prpPrs, _sndMng, _scrItr2, _dbgMng, _layMng2, _evtMng8, _fncNext, _alzTagArg2, _inited, _SN_ID, _init, init_fn, _fncTicker2, _fncresume, _isLoop, _runAnalyze, runAnalyze_fn, _destroyed, _clone_cvs, _hInfo, _setStore, _main3, _dl_app, dl_app_fn;
53
53
  import { parse as parse$2, format, resolve as resolve$1 } from "url";
54
54
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
55
55
  var platform$1 = { exports: {} };
@@ -815,7 +815,7 @@ function argChk_Color(hash2, name2, def) {
815
815
  return hash2[name2] = parseColor(String(v2));
816
816
  }
817
817
  const REG_ERRMES_JSON = /JSON at position (\d+)$/;
818
- function mesErrJSON(hArg, nm = "", mes = "") {
818
+ function mesErrJSON(hArg, nm, mes = "") {
819
819
  var _a3;
820
820
  const col = ((_a3 = mes.match(REG_ERRMES_JSON)) != null ? _a3 : ["", ""])[1];
821
821
  return `[${hArg[":\u30BF\u30B0\u540D"]}] ${nm} \u5C5E\u6027\u306E\u89E3\u6790\u30A8\u30E9\u30FC : ${mes}
@@ -2024,6 +2024,7 @@ class Socket$1 extends Emitter {
2024
2024
  }
2025
2025
  }
2026
2026
  Socket$1.protocol = protocol$1;
2027
+ Socket$1.protocol;
2027
2028
  function url$1(uri, path = "", loc) {
2028
2029
  let obj = uri;
2029
2030
  loc = loc || typeof location !== "undefined" && location;
@@ -18108,7 +18109,7 @@ var _ = function() {
18108
18109
  this._sounds[t2].stop();
18109
18110
  return this;
18110
18111
  }, t.prototype.exists = function(t2, e) {
18111
- return !!this._sounds[t2];
18112
+ return e === void 0 && (e = false), !!this._sounds[t2];
18112
18113
  }, t.prototype.find = function(t2) {
18113
18114
  return this.exists(t2, true), this._sounds[t2];
18114
18115
  }, t.prototype.play = function(t2, e) {
@@ -46759,7 +46760,7 @@ const _TxtStage = class extends Container {
46759
46760
  __privateGet(this, _htmTxt).style.height = __privateGet(this, _infTL).$height + "px";
46760
46761
  }
46761
46762
  goTxt(aSpan) {
46762
- var _a3, _b3, _c3, _d2, _e;
46763
+ var _a3, _b3, _c3, _d2, _e, _f;
46763
46764
  __privateGet(_TxtStage, _cntBreak).visible = false;
46764
46765
  const begin = __privateGet(this, _aRect).length;
46765
46766
  if (begin === 0) {
@@ -46867,35 +46868,39 @@ const _TxtStage = class extends Container {
46867
46868
  }
46868
46869
  rctLastCh = rct;
46869
46870
  }
46870
- switch (v2.cmd) {
46871
- case "grp":
46872
- const cnt = new Container();
46873
- __privateGet(this, _cntTxt).addChild(cnt);
46874
- GrpLayer.csv2Sprites(arg.pic, cnt, (sp2) => {
46875
- __privateMethod(this, _spWork, spWork_fn).call(this, cnt, arg, add3, rct, ease, cis != null ? cis : {});
46876
- if (!cnt.parent)
46877
- cnt.removeChild(sp2);
46878
- });
46879
- break;
46880
- case "link":
46881
- const sp = new Sprite();
46882
- arg.key = `lnk=[${i2}] ` + this.name;
46883
- let eCh = v2.elm;
46884
- if (!eCh.classList.contains("sn_ch"))
46885
- eCh = eCh.parentElement;
46886
- __privateMethod(this, _spWork, spWork_fn).call(this, sp, arg, add3, rct, ease, cis != null ? cis : {});
46887
- (_c3 = arg.hint_tate) != null ? _c3 : arg.hint_tate = __privateGet(this, _isTategaki);
46888
- const st_normal = eCh.style.cssText;
46889
- const st_hover = st_normal + ((_d2 = arg.style_hover) != null ? _d2 : "");
46890
- const st_clicked = st_normal + ((_e = arg.style_clicked) != null ? _e : "");
46891
- __privateGet(_TxtStage, _evtMng3).button(arg, sp, () => eCh.style.cssText = st_normal, () => {
46892
- if (!this.canFocus())
46893
- return false;
46894
- eCh.style.cssText = st_hover;
46895
- return true;
46896
- }, () => eCh.style.cssText = st_clicked);
46897
- __privateGet(this, _cntTxt).addChild(sp);
46898
- break;
46871
+ if (v2.cmd === "grp") {
46872
+ const cnt = new Container();
46873
+ __privateGet(this, _cntTxt).addChild(cnt);
46874
+ GrpLayer.csv2Sprites(arg.pic, cnt, (sp) => {
46875
+ __privateMethod(this, _spWork, spWork_fn).call(this, cnt, arg, add3, rct, ease, cis != null ? cis : {});
46876
+ if (!cnt.parent)
46877
+ cnt.removeChild(sp);
46878
+ });
46879
+ }
46880
+ if (v2.lnk) {
46881
+ const eCh = v2.elm.parentElement.closest("[data-arg]");
46882
+ const aLnk = JSON.parse((_c3 = eCh.dataset.arg) != null ? _c3 : "{}");
46883
+ aLnk.key = `lnk=[${i2}] ` + this.name;
46884
+ const sp = new Sprite();
46885
+ __privateMethod(this, _spWork, spWork_fn).call(this, sp, aLnk, add3, rct, ease, cis != null ? cis : {});
46886
+ const st_normal = (_d2 = aLnk.style) != null ? _d2 : "";
46887
+ const st_hover = st_normal + ((_e = aLnk.style_hover) != null ? _e : "");
46888
+ const st_clicked = st_normal + ((_f = aLnk.style_clicked) != null ? _f : "");
46889
+ const st_bk = eCh.style.cssText;
46890
+ const fncStyle = (st) => {
46891
+ if (!st)
46892
+ return;
46893
+ eCh.style.cssText = st_bk + st;
46894
+ };
46895
+ const cl = eCh.querySelectorAll(".sn_ch");
46896
+ cl.forEach((e) => e.dataset.st_bk = e.style.cssText);
46897
+ __privateGet(_TxtStage, _evtMng3).button(aLnk, sp, () => fncStyle(st_normal), () => {
46898
+ if (!this.canFocus())
46899
+ return false;
46900
+ fncStyle(st_hover);
46901
+ return true;
46902
+ }, () => fncStyle(st_clicked));
46903
+ __privateGet(this, _cntTxt).addChild(sp);
46899
46904
  }
46900
46905
  }
46901
46906
  const chs = __privateGet(this, _htmTxt).querySelectorAll("span.sn_ch");
@@ -47400,7 +47405,10 @@ spWork_fn = function(sp, arg, add3, rct, ease, cis) {
47400
47405
  cis.wait = parseInt(arg.wait);
47401
47406
  sp.width = rct.width;
47402
47407
  sp.height = rct.height;
47403
- sp.position.set(cis.x.charAt(0) === "=" ? rct.x + sp.width * cis.nx : cis.nx, cis.y.charAt(0) === "=" ? rct.y + sp.height * cis.ny : cis.ny);
47408
+ if (cis.x)
47409
+ sp.position.set(cis.x.charAt(0) === "=" ? rct.x + sp.width * cis.nx : cis.nx, cis.y.charAt(0) === "=" ? rct.y + sp.height * cis.ny : cis.ny);
47410
+ else
47411
+ sp.position.set(rct.x, rct.y);
47404
47412
  const st = {
47405
47413
  sp,
47406
47414
  tw: new Tween(sp).to({ alpha: 1, x: rct.x, y: rct.y, width: rct.width, height: rct.height, angle: 0 }, (_a3 = cis.wait) != null ? _a3 : 0).easing(ease).delay(((_b3 = add3.wait) != null ? _b3 : 0) + ((_c3 = arg.delay) != null ? _c3 : 0)).onComplete(() => {
@@ -47421,7 +47429,7 @@ getChRects_fn = function(elm) {
47421
47429
  const ret = [];
47422
47430
  if (elm.nodeType !== elm.TEXT_NODE) {
47423
47431
  elm.childNodes.forEach((v2) => ret.push(__privateMethod(this, _getChRects, getChRects_fn).call(this, v2)));
47424
- return Array.prototype.concat.apply([], ret);
47432
+ return ret.flat();
47425
47433
  }
47426
47434
  const range = elm.ownerDocument.createRange();
47427
47435
  range.selectNodeContents(elm);
@@ -47442,7 +47450,7 @@ getChRects_fn = function(elm) {
47442
47450
  cmd: (_a3 = pe.getAttribute("data-cmd")) != null ? _a3 : void 0,
47443
47451
  arg: (_b3 = pe.getAttribute("data-arg")) != null ? _b3 : void 0,
47444
47452
  add: (_c3 = pe.getAttribute("data-add")) != null ? _c3 : void 0,
47445
- tcy: (_d2 = pe.getAttribute("data-tcy")) != null ? _d2 : void 0
47453
+ lnk: (_d2 = pe.getAttribute("data-lnk")) != null ? _d2 : void 0
47446
47454
  };
47447
47455
  ret.push(cr);
47448
47456
  }
@@ -47800,8 +47808,9 @@ const _TxtLayer = class extends Layer {
47800
47808
  __privateAdd(this, _setFfs);
47801
47809
  __privateAdd(this, _mkStyle_r_align4ff);
47802
47810
  __privateAdd(this, _tagCh_sub);
47803
- __privateAdd(this, _beginSpan);
47804
- __privateAdd(this, _autoCloseSpan);
47811
+ __privateAdd(this, _style_delay);
47812
+ __privateAdd(this, _pushSpan);
47813
+ __privateAdd(this, _popSpan);
47805
47814
  __privateAdd(this, _b_color, void 0);
47806
47815
  __privateAdd(this, _b_alpha, void 0);
47807
47816
  __privateAdd(this, _b_alpha_isfixed, void 0);
@@ -47815,7 +47824,6 @@ const _TxtLayer = class extends Layer {
47815
47824
  __privateAdd(this, _$ch_out_style, void 0);
47816
47825
  __privateAdd(this, _ffs, void 0);
47817
47826
  __privateAdd(this, _fncFFSStyle, void 0);
47818
- __privateAdd(this, _fncFFSSpan, void 0);
47819
47827
  __privateAdd(this, _strNoFFS, void 0);
47820
47828
  __privateAdd(this, _regNoFFS, void 0);
47821
47829
  __privateAdd(this, _ruby_pd, void 0);
@@ -47825,9 +47833,7 @@ const _TxtLayer = class extends Layer {
47825
47833
  __privateAdd(this, _cumDelay, void 0);
47826
47834
  __privateAdd(this, _firstCh, void 0);
47827
47835
  __privateAdd(this, _aSpan, void 0);
47828
- __privateAdd(this, _aSpan_bk, void 0);
47829
- __privateAdd(this, _aSpan_link, void 0);
47830
- __privateAdd(this, _hSpanBk, void 0);
47836
+ __privateAdd(this, _stkASpan, void 0);
47831
47837
  __privateAdd(this, _page_text, void 0);
47832
47838
  __privateSet(this, _b_color, 0);
47833
47839
  __privateSet(this, _b_alpha, 0);
@@ -47842,7 +47848,6 @@ const _TxtLayer = class extends Layer {
47842
47848
  __privateSet(this, _$ch_out_style, "");
47843
47849
  __privateSet(this, _ffs, "");
47844
47850
  __privateSet(this, _fncFFSStyle, (_ch2) => "");
47845
- __privateSet(this, _fncFFSSpan, (ch) => ch);
47846
47851
  __privateSet(this, _strNoFFS, "");
47847
47852
  __privateSet(this, _regNoFFS, new RegExp("[\u3000]"));
47848
47853
  this.isCur = false;
@@ -47850,27 +47855,17 @@ const _TxtLayer = class extends Layer {
47850
47855
  __privateSet(this, _r_align, "");
47851
47856
  __privateSet(this, _needGoTxt, false);
47852
47857
  __privateSet(this, _putCh2, (ch, ruby) => {
47853
- var _a3, _b3, _c3, _d2, _e, _f, _g, _h, _i, _j, _k;
47858
+ var _a3, _b3, _c3, _d2, _e, _f, _g, _h, _i, _j, _k, _l2, _m;
47854
47859
  if (__privateGet(_TxtLayer, _cfg3).oCfg.debug.putCh)
47855
47860
  console.log(`\u{1F58A} \u6587\u5B57\u8868\u793A text:\`${ch}\` ruby:\`${ruby}\` name:\`${this.name_}\``);
47856
47861
  const a_ruby = ruby.split("\uFF5C");
47857
47862
  let add_htm = "";
47858
47863
  const isSkip = __privateGet(_TxtLayer, _evtMng4).isSkippingByKeyDown();
47864
+ const [a0, a1] = a_ruby;
47859
47865
  switch (a_ruby.length) {
47860
47866
  case 1:
47861
47867
  __privateSet(this, _needGoTxt, true);
47862
47868
  if (ch === "\n") {
47863
- if (__privateGet(this, _aSpan_bk)) {
47864
- add_htm = __privateGet(this, _aSpan_bk).slice(-1)[0];
47865
- __privateMethod(this, _autoCloseSpan, autoCloseSpan_fn).call(this);
47866
- __privateGet(this, _aSpan).push(__privateGet(_a3 = _TxtLayer, _rec).call(_a3, "<br/>"));
47867
- __privateGet(this, _aSpan).push(add_htm);
47868
- __privateSet(this, _aSpan_bk, __privateGet(this, _aSpan));
47869
- __privateSet(this, _aSpan, []);
47870
- __privateSet(_TxtLayer, _rec_bk, __privateGet(_TxtLayer, _rec));
47871
- __privateSet(_TxtLayer, _rec, (tx) => tx);
47872
- return;
47873
- }
47874
47869
  if (__privateGet(this, _firstCh)) {
47875
47870
  __privateSet(this, _firstCh, false);
47876
47871
  add_htm = "<ruby>\u3000<rt>\u3000</rt></ruby><br/>";
@@ -47886,7 +47881,7 @@ const _TxtLayer = class extends Layer {
47886
47881
  add_htm = __privateMethod(this, _tagCh_sub, tagCh_sub_fn).call(this, ch, ruby, isSkip, __privateGet(this, _r_align));
47887
47882
  break;
47888
47883
  case 2:
47889
- switch (a_ruby[0]) {
47884
+ switch (a0) {
47890
47885
  case "start":
47891
47886
  case "left":
47892
47887
  case "center":
@@ -47897,123 +47892,83 @@ const _TxtLayer = class extends Layer {
47897
47892
  case "1ruby":
47898
47893
  __privateSet(this, _firstCh, false);
47899
47894
  __privateSet(this, _needGoTxt, true);
47900
- add_htm = __privateMethod(this, _tagCh_sub, tagCh_sub_fn).call(this, ch, a_ruby[1], isSkip, a_ruby[0]);
47895
+ add_htm = __privateMethod(this, _tagCh_sub, tagCh_sub_fn).call(this, ch, a1, isSkip, a0);
47901
47896
  break;
47902
- case "gotxt": {
47903
- __privateMethod(this, _autoCloseSpan, autoCloseSpan_fn).call(this);
47904
- if (this.isCur)
47905
- __privateGet(_b3 = _TxtLayer, _recText).call(_b3, __privateGet(this, _aSpan).join("").replace(/^<ruby> <rt> <\/rt><\/ruby>(<br\/>)+/, "").replace(/style='(anim\S+ \S+?;\s*)+/g, `style='`).replace(/( style=''| data-(add|arg|cmd)='.+?'|\n+|\t+)/g, "").replace(/class='sn_ch .+?'/g, `class='sn_ch'`).replaceAll(`class='offrec'`, `style='display: none;'`).replaceAll("`", "\\`"));
47906
- if (!__privateGet(this, _needGoTxt))
47907
- return;
47908
- __privateGet(this, _txs).goTxt(__privateGet(this, _aSpan));
47909
- __privateSet(this, _needGoTxt, false);
47910
- __privateSet(this, _cumDelay, 0);
47897
+ case "gotxt":
47898
+ {
47899
+ __privateMethod(this, _popSpan, popSpan_fn).call(this);
47900
+ if (this.isCur)
47901
+ __privateGet(_a3 = _TxtLayer, _recText).call(_a3, __privateGet(this, _aSpan).join("").replace(/^<ruby> <rt> <\/rt><\/ruby>(<br\/>)+/, "").replace(/style='(anim\S+ \S+?;\s*)+/g, `style='`).replace(/( style=''| data-(add|arg|cmd)='.+?'|\n+|\t+)/g, "").replace(/class='sn_ch .+?'/g, `class='sn_ch'`).replaceAll(`class='offrec'`, `style='display: none;'`).replaceAll("`", "\\`"));
47902
+ if (__privateGet(this, _needGoTxt)) {
47903
+ __privateGet(this, _txs).goTxt(__privateGet(this, _aSpan));
47904
+ __privateSet(this, _needGoTxt, false);
47905
+ __privateSet(this, _cumDelay, 0);
47906
+ }
47907
+ }
47911
47908
  return;
47912
- }
47913
47909
  case "add":
47914
47910
  {
47915
- const o = JSON.parse(a_ruby[1]);
47916
- (_c3 = o.style) != null ? _c3 : o.style = "";
47917
- __privateMethod(this, _beginSpan, beginSpan_fn).call(this, o);
47918
- if (__privateGet(this, _aSpan_bk))
47919
- __privateMethod(this, _autoCloseSpan, autoCloseSpan_fn).call(this);
47920
- else {
47921
- if (isSkip)
47922
- __privateSet(this, _cumDelay, 0);
47923
- const wait = Number((_d2 = o.wait) != null ? _d2 : -1);
47924
- const sn_ch = wait === 0 ? "" : ` sn_ch_in_${__privateGet(this, _$ch_in_style)}`;
47925
- const ad = wait < 0 ? "" : ` animation-duration: ${wait}ms;`;
47926
- __privateGet(this, _aSpan).push(`<span class='sn_ch${sn_ch + __privateGet(_TxtLayer, _class_offrec)}' style='animation-delay: ${__privateGet(this, _cumDelay)}ms;${ad} ${o.style}' data-add='${JSON.stringify(o)}'>`);
47927
- }
47928
- __privateSet(this, _aSpan_bk, __privateGet(this, _aSpan));
47929
- __privateSet(this, _aSpan, []);
47930
- __privateSet(_TxtLayer, _rec_bk, __privateGet(_TxtLayer, _rec));
47931
- __privateSet(_TxtLayer, _rec, (tx) => tx);
47911
+ const o = JSON.parse(a1);
47912
+ __privateGet(this, _aSpan).push(`<span style='display: inline;${(_c3 = (_b3 = __privateGet(this, _stkASpan).at(-1)) == null ? void 0 : _b3.o.style) != null ? _c3 : ""}${(_d2 = o.style) != null ? _d2 : ""} ${__privateMethod(this, _style_delay, style_delay_fn).call(this, isSkip)}' class='sn_ch sn_ch_in_${__privateGet(this, _$ch_in_style)}' data-add='${JSON.stringify(o)}'>`);
47913
+ delete o.style;
47914
+ __privateMethod(this, _pushSpan, pushSpan_fn).call(this, o);
47932
47915
  }
47933
47916
  return;
47934
47917
  case "add_close":
47935
- __privateMethod(this, _autoCloseSpan, autoCloseSpan_fn).call(this);
47918
+ __privateGet(this, _aSpan).push("</span>");
47919
+ __privateMethod(this, _popSpan, popSpan_fn).call(this);
47936
47920
  return;
47937
47921
  case "grp":
47938
47922
  __privateSet(this, _needGoTxt, true);
47939
47923
  {
47940
- if (isSkip)
47941
- __privateSet(this, _cumDelay, 0);
47942
- const arg = (a_ruby[1] ? a_ruby[1].slice(0, -1) + "," : `{`) + `"delay": ${__privateGet(this, _cumDelay)}}`;
47943
- if (__privateGet(this, _ch_in_join))
47944
- __privateSet(this, _cumDelay, __privateGet(this, _cumDelay) + (__privateGet(_TxtLayer, _doAutoWc) ? 0 : LayerMng.msecChWait));
47945
- const o = JSON.parse(arg);
47946
- (_e = o.style) != null ? _e : o.style = "";
47947
- if (!("id" in o))
47948
- o.id = __privateGet(this, _aSpan).length;
47924
+ const o = JSON.parse(a1);
47925
+ o.delay = __privateGet(this, _cumDelay);
47926
+ (_e = o.id) != null ? _e : o.id = __privateGet(this, _aSpan).length;
47949
47927
  if (o.id === "break") {
47950
47928
  __privateGet(this, _txs).dispBreak(o.pic);
47951
47929
  return;
47952
47930
  }
47953
- add_htm = `<span data-cmd='grp' data-id='${o.id}' data-arg='${arg}'`;
47954
- const wait = Number((_f = o.wait) != null ? _f : -1);
47955
- const sn_ch = wait === 0 ? "" : ` sn_ch_in_${__privateGet(this, _$ch_in_style)}`;
47931
+ (_f = o.style) != null ? _f : o.style = "";
47932
+ const wait = Number((_g = o.wait) != null ? _g : -1);
47933
+ const sc = wait != 0 ? ` sn_ch_in_${__privateGet(this, _$ch_in_style)}` : "";
47956
47934
  const ad = wait < 0 ? "" : ` animation-duration: ${wait}ms;`;
47957
- add_htm += ` class='sn_ch${sn_ch}' style='animation-delay: ${__privateGet(this, _cumDelay)}ms;${ad} ${o.style}' data-add='{"ch_in_style":"${__privateGet(this, _$ch_in_style)}", "ch_out_style":"${__privateGet(this, _$ch_out_style)}"}'>\u3000</span>`;
47935
+ const lnk = (_h = __privateGet(this, _stkASpan).at(0)) == null ? void 0 : _h.o[":link"];
47936
+ add_htm = `<span data-cmd='grp' data-id='${o.id}' data-arg='${JSON.stringify(o)}' class='sn_ch${sc}' style='${__privateMethod(this, _style_delay, style_delay_fn).call(this, isSkip)}${ad} ${(_i = o.style) != null ? _i : ""}'${lnk != null ? lnk : ""} data-add='{"ch_in_style":"${__privateGet(this, _$ch_in_style)}", "ch_out_style":"${__privateGet(this, _$ch_out_style)}"}'>\u3000</span>`;
47958
47937
  if (__privateGet(this, _firstCh)) {
47959
47938
  __privateSet(this, _firstCh, false);
47960
47939
  add_htm = `<ruby>${add_htm}<rt>\u3000</rt></ruby>`;
47961
47940
  }
47962
- if (__privateGet(this, _aSpan).slice(-1)[0] === add_htm)
47963
- return;
47941
+ if (__privateGet(this, _ch_in_join))
47942
+ __privateSet(this, _cumDelay, __privateGet(this, _cumDelay) + (__privateGet(_TxtLayer, _doAutoWc) ? 0 : LayerMng.msecChWait));
47964
47943
  }
47965
47944
  break;
47966
47945
  case "del":
47967
- const id_del = a_ruby[1];
47968
- if (id_del !== "break")
47969
- throw "\u6587\u5B57\u30EC\u30A4\u30E4del\u30B3\u30DE\u30F3\u30C9\u306F\u3001\u73FE\u5728id=break\u306E\u307F\u30B5\u30DD\u30FC\u30C8\u3057\u307E\u3059";
47970
47946
  TxtStage.delBreak();
47971
47947
  return;
47972
47948
  case "span":
47973
- __privateMethod(this, _autoCloseSpan, autoCloseSpan_fn).call(this);
47974
- __privateSet(this, _needGoTxt, true);
47975
47949
  {
47976
- const o = JSON.parse(a_ruby[1]);
47977
- __privateMethod(this, _beginSpan, beginSpan_fn).call(this, o);
47978
- if (!o.style)
47979
- return;
47980
- if (isSkip)
47981
- __privateSet(this, _cumDelay, 0);
47982
- const wait = Number((_g = o.wait) != null ? _g : -1);
47983
- const sn_ch = wait === 0 ? "" : ` sn_ch_in_${__privateGet(this, _$ch_in_style)}`;
47984
- const ad = wait < 0 ? "" : ` animation-duration: ${wait}ms;`;
47985
- __privateGet(this, _aSpan).push(`<span class='sn_ch${sn_ch + __privateGet(_TxtLayer, _class_offrec)}' style='animation-delay: ${__privateGet(this, _cumDelay)}ms;${ad} ${o.style}' data-add='{"ch_in_style":"${__privateGet(this, _$ch_in_style)}", "ch_out_style":"${__privateGet(this, _$ch_out_style)}"}'>`);
47986
- __privateSet(this, _aSpan_bk, __privateGet(this, _aSpan));
47987
- __privateSet(this, _aSpan, []);
47988
- __privateSet(_TxtLayer, _rec_bk, __privateGet(_TxtLayer, _rec));
47989
- __privateSet(_TxtLayer, _rec, (tx) => tx);
47950
+ __privateMethod(this, _popSpan, popSpan_fn).call(this);
47951
+ __privateSet(this, _needGoTxt, true);
47952
+ const o = JSON.parse(a1);
47953
+ if (o.style)
47954
+ __privateMethod(this, _pushSpan, pushSpan_fn).call(this, o);
47990
47955
  }
47991
47956
  return;
47992
47957
  case "link":
47993
- __privateMethod(this, _autoCloseSpan, autoCloseSpan_fn).call(this);
47994
- __privateSet(this, _needGoTxt, true);
47995
47958
  {
47996
- const o = JSON.parse(a_ruby[1]);
47997
- (_h = o.style) != null ? _h : o.style = "";
47998
- __privateMethod(this, _beginSpan, beginSpan_fn).call(this, o);
47999
- if (isSkip)
48000
- __privateSet(this, _cumDelay, 0);
48001
- const wait = Number((_i = o.wait) != null ? _i : -1);
48002
- const sn_ch = wait === 0 ? "" : ` sn_ch_in_${__privateGet(this, _$ch_in_style)}`;
48003
- const ad = wait < 0 ? "" : ` animation-duration: ${wait}ms;`;
48004
- __privateSet(this, _aSpan_link, ` data-cmd='link' data-arg='${a_ruby[1]}'`);
48005
- __privateGet(this, _aSpan).push(`<span${__privateGet(this, _aSpan_link)} class='sn_ch${sn_ch + __privateGet(_TxtLayer, _class_offrec)}' style='animation-delay: ${__privateGet(this, _cumDelay)}ms;${ad} ${o.style}' data-add='{"ch_in_style":"${__privateGet(this, _$ch_in_style)}", "ch_out_style":"${__privateGet(this, _$ch_out_style)}"}'>`);
48006
- __privateSet(this, _aSpan_bk, __privateGet(this, _aSpan));
48007
- __privateSet(this, _aSpan, []);
48008
- __privateSet(_TxtLayer, _rec_bk, __privateGet(_TxtLayer, _rec));
48009
- __privateSet(_TxtLayer, _rec, (tx) => tx);
47959
+ __privateMethod(this, _popSpan, popSpan_fn).call(this);
47960
+ __privateSet(this, _needGoTxt, true);
47961
+ const o = JSON.parse(a1);
47962
+ o[":link"] = ` data-lnk='@'`;
47963
+ __privateGet(this, _aSpan).push(`<span data-arg='${a1}' class='sn_ch sn_ch_in_${__privateGet(this, _$ch_in_style)}' style='display: inline;${(_j = o.style) != null ? _j : ""} ${__privateMethod(this, _style_delay, style_delay_fn).call(this, isSkip)}' data-add='{"ch_in_style":"${__privateGet(this, _$ch_in_style)}", "ch_out_style":"${__privateGet(this, _$ch_out_style)}"}'}>`);
47964
+ delete o.style;
47965
+ __privateMethod(this, _pushSpan, pushSpan_fn).call(this, o);
48010
47966
  }
48011
47967
  return;
48012
47968
  case "endlink":
48013
47969
  __privateSet(this, _needGoTxt, true);
48014
- if (__privateGet(this, _aSpan_bk))
48015
- __privateSet(this, _aSpan, __privateGet(this, _aSpan).map((v2) => v2.replace(/ data-cmd='linkrsv'/, __privateGet(this, _aSpan_link))));
48016
- __privateMethod(this, _autoCloseSpan, autoCloseSpan_fn).call(this);
47970
+ __privateGet(this, _aSpan).push("</span>");
47971
+ __privateMethod(this, _popSpan, popSpan_fn).call(this);
48017
47972
  return;
48018
47973
  default:
48019
47974
  __privateSet(this, _needGoTxt, true);
@@ -48021,34 +47976,24 @@ const _TxtLayer = class extends Layer {
48021
47976
  }
48022
47977
  break;
48023
47978
  case 3:
48024
- __privateSet(this, _firstCh, false);
48025
- __privateSet(this, _needGoTxt, true);
48026
- switch (a_ruby[0]) {
47979
+ switch (a0) {
48027
47980
  case "tcy":
47981
+ __privateSet(this, _firstCh, false);
47982
+ __privateSet(this, _needGoTxt, true);
48028
47983
  {
47984
+ const [, tx, rb0] = a_ruby;
48029
47985
  if (__privateGet(_TxtLayer, _val).doRecLog())
48030
47986
  __privateSet(this, _page_text, __privateGet(this, _page_text) + (ch + (ruby ? `\u300A${ruby}\u300B` : "")));
48031
- const tx = a_ruby[1];
48032
- const id_tcy = tx.length > 1 ? __privateGet(this, _aSpan).length + 1 : "";
48033
- const rb = CmnLib.isSafari ? a_ruby[2].replace(/[A-Za-z0-9]/g, (s2) => String.fromCharCode(s2.charCodeAt(0) + 65248)) : a_ruby[2];
48034
- if (isSkip)
48035
- __privateSet(this, _cumDelay, 0);
47987
+ const rb = CmnLib.isSafari ? rb0.replace(/[A-Za-z0-9]/g, (s2) => String.fromCharCode(s2.charCodeAt(0) + 65248)) : rb0;
48036
47988
  const rs = this.mkStyle_r_align(tx, rb, __privateGet(this, _r_align));
48037
- const da = ` data-add='{"ch_in_style":"${__privateGet(this, _$ch_in_style)}", "ch_out_style":"${__privateGet(this, _$ch_out_style)}"}'`;
48038
- const st = `<span data-tcy='${id_tcy}' style='
47989
+ const lnk = (_k = __privateGet(this, _stkASpan).at(0)) == null ? void 0 : _k.o[":link"];
47990
+ add_htm = `<span class='sn_ch sn_ch_in_${__privateGet(this, _$ch_in_style)}' style='${__privateGet(this, _fncFFSStyle).call(this, tx)}${__privateMethod(this, _style_delay, style_delay_fn).call(this, isSkip)}'><ruby><span ${lnk != null ? lnk : ""} style='
48039
47991
  text-combine-upright: all;
48040
47992
  -webkit-text-combine: horizontal;
48041
- ${__privateGet(this, _fncFFSStyle).call(this, tx)}`;
48042
- add_htm = rb ? __privateGet(this, _aSpan_bk) ? `<ruby>${st}'${da} data-cmd='linkrsv'>${tx}</span>
48043
- <rt${rs}>${rb}</rt></ruby>` : `<span class='sn_ch sn_ch_in_${__privateGet(this, _$ch_in_style)}' style='animation-delay: ${__privateGet(this, _cumDelay)}ms;'>
48044
- <ruby>${st}'${da}>${tx}</span>
48045
- <rt${rs}>${rb}</rt></ruby>
48046
- </span>` : __privateGet(this, _aSpan_bk) ? `${st}'${da} data-cmd='linkrsv'>${tx}</span>` : `${st}
48047
- animation-delay: ${__privateGet(this, _cumDelay)}ms;
48048
- height: 1em;
48049
- ' class='sn_ch sn_ch_in_${__privateGet(this, _$ch_in_style)}'${da}>${tx}</span>`;
47993
+ ' data-add='{"ch_in_style":"${__privateGet(this, _$ch_in_style)}", "ch_out_style":"${__privateGet(this, _$ch_out_style)}"}'>${tx}</span>
47994
+ <rt${rs}>${rb}</rt></ruby></span>`;
48050
47995
  if (__privateGet(this, _ch_in_join))
48051
- __privateSet(this, _cumDelay, __privateGet(this, _cumDelay) + (__privateGet(_TxtLayer, _doAutoWc) ? (_j = __privateGet(_TxtLayer, _hAutoWc)[ch.charAt(0)]) != null ? _j : 0 : LayerMng.msecChWait));
47996
+ __privateSet(this, _cumDelay, __privateGet(this, _cumDelay) + (__privateGet(_TxtLayer, _doAutoWc) ? (_l2 = __privateGet(_TxtLayer, _hAutoWc)[ch.charAt(0)]) != null ? _l2 : 0 : LayerMng.msecChWait));
48052
47997
  }
48053
47998
  break;
48054
47999
  default:
@@ -48056,18 +48001,12 @@ ${__privateGet(this, _fncFFSStyle).call(this, tx)}`;
48056
48001
  }
48057
48002
  break;
48058
48003
  }
48059
- __privateGet(this, _aSpan).push(__privateGet(_k = _TxtLayer, _rec).call(_k, add_htm));
48004
+ __privateGet(this, _aSpan).push(__privateGet(_m = _TxtLayer, _rec).call(_m, add_htm));
48060
48005
  });
48061
48006
  __privateSet(this, _cumDelay, 0);
48062
48007
  __privateSet(this, _firstCh, true);
48063
48008
  __privateSet(this, _aSpan, []);
48064
- __privateSet(this, _aSpan_bk, void 0);
48065
- __privateSet(this, _aSpan_link, "");
48066
- __privateSet(this, _hSpanBk, {
48067
- ch_in_style: "",
48068
- ch_out_style: "",
48069
- r_align: ""
48070
- });
48009
+ __privateSet(this, _stkASpan, []);
48071
48010
  this.click = () => {
48072
48011
  if (!this.spLay.interactiveChildren || !this.spLay.visible)
48073
48012
  return true;
@@ -48250,7 +48189,6 @@ ${__privateGet(this, _fncFFSStyle).call(this, tx)}`;
48250
48189
  }
48251
48190
  static chgDoRec(doRec) {
48252
48191
  __privateSet(_TxtLayer, _rec, doRec ? (tx) => tx : (tx) => `<span class='offrec'>${tx}</span>`);
48253
- __privateSet(_TxtLayer, _class_offrec, doRec ? "" : " offrec");
48254
48192
  }
48255
48193
  mkStyle_r_align(ch, rb, r_align) {
48256
48194
  if (!r_align)
@@ -48286,8 +48224,6 @@ ${__privateGet(this, _fncFFSStyle).call(this, tx)}`;
48286
48224
  __privateSet(this, _cumDelay, 0);
48287
48225
  __privateSet(this, _firstCh, true);
48288
48226
  __privateSet(this, _aSpan, []);
48289
- __privateSet(this, _aSpan_bk, void 0);
48290
- __privateSet(_TxtLayer, _rec, __privateGet(_TxtLayer, _rec_bk));
48291
48227
  __privateSet(this, _page_text, "");
48292
48228
  __privateGet(_a3 = _TxtLayer, _recText).call(_a3, "", true);
48293
48229
  }
@@ -48527,22 +48463,13 @@ setFfs_fn = function(hArg) {
48527
48463
  if (!("ffs" in hArg))
48528
48464
  return;
48529
48465
  (_b3 = __privateGet(this, _ffs)) != null ? _b3 : __privateSet(this, _ffs, "");
48530
- if (__privateGet(this, _ffs) === "") {
48531
- __privateSet(this, _fncFFSStyle, () => "");
48532
- __privateSet(this, _fncFFSSpan, (ch) => ch);
48533
- } else {
48534
- __privateSet(this, _fncFFSStyle, (ch) => __privateGet(this, _regNoFFS).test(ch) ? "" : ` font-feature-settings: ${__privateGet(this, _ffs)};`);
48535
- __privateSet(this, _fncFFSSpan, (ch) => __privateGet(this, _regNoFFS).test(ch) ? ch : `<span style='font-feature-settings: ${__privateGet(this, _ffs)};'>${ch}</span>`);
48536
- }
48466
+ __privateSet(this, _fncFFSStyle, __privateGet(this, _ffs) === "" ? () => "" : (ch) => __privateGet(this, _regNoFFS).test(ch) ? "" : ` font-feature-settings: ${__privateGet(this, _ffs)};`);
48537
48467
  };
48538
48468
  _ffs = new WeakMap();
48539
48469
  _fncFFSStyle = new WeakMap();
48540
- _fncFFSSpan = new WeakMap();
48541
48470
  _strNoFFS = new WeakMap();
48542
48471
  _regNoFFS = new WeakMap();
48543
48472
  _rec = new WeakMap();
48544
- _rec_bk = new WeakMap();
48545
- _class_offrec = new WeakMap();
48546
48473
  _ruby_pd = new WeakMap();
48547
48474
  _r_align = new WeakMap();
48548
48475
  _mkStyle_r_align4ff = new WeakSet();
@@ -48585,50 +48512,50 @@ _needGoTxt = new WeakMap();
48585
48512
  _putCh2 = new WeakMap();
48586
48513
  _tagCh_sub = new WeakSet();
48587
48514
  tagCh_sub_fn = function(ch, ruby, isSkip, r_align) {
48588
- var _a3;
48515
+ var _a3, _b3;
48589
48516
  if (ch === " ")
48590
48517
  ch = "&nbsp;";
48591
48518
  if (__privateGet(_TxtLayer, _val).doRecLog())
48592
48519
  __privateSet(this, _page_text, __privateGet(this, _page_text) + (ch + (ruby ? `\u300A${ruby}\u300B` : "")));
48593
- let add_htm = "";
48594
- const rs = this.mkStyle_r_align(ch, ruby, r_align);
48595
- if (isSkip)
48596
- __privateSet(this, _cumDelay, 0);
48597
- const da = ` data-add='{"ch_in_style":"${__privateGet(this, _$ch_in_style)}", "ch_out_style":"${__privateGet(this, _$ch_out_style)}"}'`;
48598
- add_htm = ruby ? __privateGet(this, _aSpan_bk) ? `<ruby style='${__privateGet(this, _fncFFSStyle).call(this, ch)}'${da} data-cmd='linkrsv'>${ch}<rt${rs}>${ruby}</rt></ruby>` : `<span class='sn_ch sn_ch_in_${__privateGet(this, _$ch_in_style)}' style='animation-delay: ${__privateGet(this, _cumDelay)}ms;${__privateGet(this, _fncFFSStyle).call(this, ch)}'>
48599
- <ruby${da}>${ch}<rt${rs}>${ruby}</rt></ruby>
48600
- </span>` : __privateGet(this, _aSpan_bk) ? __privateGet(this, _fncFFSSpan).call(this, ch) : `<span class='sn_ch sn_ch_in_${__privateGet(this, _$ch_in_style)}' style='animation-delay: ${__privateGet(this, _cumDelay)}ms;${__privateGet(this, _fncFFSStyle).call(this, ch)}'${da}>${ch}</span>`;
48520
+ const lnk = (_a3 = __privateGet(this, _stkASpan).at(0)) == null ? void 0 : _a3.o[":link"];
48521
+ const curpos = `${lnk != null ? lnk : ""} data-add='{"ch_in_style":"${__privateGet(this, _$ch_in_style)}", "ch_out_style":"${__privateGet(this, _$ch_out_style)}"}'`;
48522
+ const add_htm = `<span class='sn_ch sn_ch_in_${__privateGet(this, _$ch_in_style)}' style='${__privateMethod(this, _style_delay, style_delay_fn).call(this, isSkip)}${__privateGet(this, _fncFFSStyle).call(this, ch)}'${ruby ? "" : curpos}>${ruby ? `<ruby${curpos}>${ch}<rt${this.mkStyle_r_align(ch, ruby, r_align)}>${ruby}</rt></ruby>` : ch}</span>`;
48601
48523
  if (__privateGet(this, _ch_in_join))
48602
- __privateSet(this, _cumDelay, __privateGet(this, _cumDelay) + (__privateGet(_TxtLayer, _doAutoWc) ? (_a3 = __privateGet(_TxtLayer, _hAutoWc)[ch.charAt(0)]) != null ? _a3 : 0 : LayerMng.msecChWait));
48524
+ __privateSet(this, _cumDelay, __privateGet(this, _cumDelay) + (__privateGet(_TxtLayer, _doAutoWc) ? (_b3 = __privateGet(_TxtLayer, _hAutoWc)[ch.charAt(0)]) != null ? _b3 : 0 : LayerMng.msecChWait));
48603
48525
  return add_htm;
48604
48526
  };
48527
+ _style_delay = new WeakSet();
48528
+ style_delay_fn = function(isSkip) {
48529
+ var _a3, _b3, _c3;
48530
+ if (isSkip)
48531
+ __privateSet(this, _cumDelay, 0);
48532
+ return `animation-delay: ${__privateGet(this, _cumDelay)}ms;${(_c3 = (_b3 = (_a3 = __privateGet(this, _stkASpan).at(-1)) == null ? void 0 : _a3.o) == null ? void 0 : _b3.style) != null ? _c3 : ""}`;
48533
+ };
48605
48534
  _cumDelay = new WeakMap();
48606
48535
  _firstCh = new WeakMap();
48607
48536
  _aSpan = new WeakMap();
48608
- _aSpan_bk = new WeakMap();
48609
- _aSpan_link = new WeakMap();
48610
- _hSpanBk = new WeakMap();
48611
- _beginSpan = new WeakSet();
48612
- beginSpan_fn = function(o) {
48613
- __privateGet(this, _hSpanBk).ch_in_style = __privateGet(this, _$ch_in_style);
48614
- __privateMethod(this, _set_ch_in, set_ch_in_fn).call(this, o);
48615
- __privateGet(this, _hSpanBk).ch_out_style = __privateGet(this, _$ch_out_style);
48616
- __privateMethod(this, _set_ch_out, set_ch_out_fn).call(this, o);
48617
- __privateGet(this, _hSpanBk).r_align = __privateGet(this, _r_align);
48537
+ _stkASpan = new WeakMap();
48538
+ _pushSpan = new WeakSet();
48539
+ pushSpan_fn = function(o) {
48540
+ __privateGet(this, _stkASpan).push({
48541
+ o,
48542
+ r_align: __privateGet(this, _r_align),
48543
+ ch_in_style: __privateGet(this, _$ch_in_style),
48544
+ ch_out_style: __privateGet(this, _$ch_out_style)
48545
+ });
48618
48546
  if ("r_align" in o)
48619
48547
  __privateSet(this, _r_align, o.r_align);
48548
+ __privateMethod(this, _set_ch_in, set_ch_in_fn).call(this, o);
48549
+ __privateMethod(this, _set_ch_out, set_ch_out_fn).call(this, o);
48620
48550
  };
48621
- _autoCloseSpan = new WeakSet();
48622
- autoCloseSpan_fn = function() {
48623
- if (!__privateGet(this, _aSpan_bk))
48551
+ _popSpan = new WeakSet();
48552
+ popSpan_fn = function() {
48553
+ const stk = __privateGet(this, _stkASpan).pop();
48554
+ if (!stk)
48624
48555
  return;
48625
- __privateGet(this, _aSpan_bk).push(__privateGet(this, _aSpan), "</span>");
48626
- __privateSet(this, _aSpan, Array.prototype.concat.apply([], __privateGet(this, _aSpan_bk)));
48627
- __privateSet(this, _aSpan_bk, void 0);
48628
- __privateSet(_TxtLayer, _rec, __privateGet(_TxtLayer, _rec_bk));
48629
- __privateMethod(this, _set_ch_in, set_ch_in_fn).call(this, { in_style: __privateGet(this, _hSpanBk).ch_in_style });
48630
- __privateMethod(this, _set_ch_out, set_ch_out_fn).call(this, { out_style: __privateGet(this, _hSpanBk).ch_out_style });
48631
- __privateSet(this, _r_align, __privateGet(this, _hSpanBk).r_align);
48556
+ __privateSet(this, _r_align, stk.r_align);
48557
+ __privateMethod(this, _set_ch_in, set_ch_in_fn).call(this, { in_style: stk.ch_in_style });
48558
+ __privateMethod(this, _set_ch_out, set_ch_out_fn).call(this, { out_style: stk.ch_out_style });
48632
48559
  };
48633
48560
  _page_text = new WeakMap();
48634
48561
  __privateAdd(TxtLayer, _ch_in_style);
@@ -48644,8 +48571,6 @@ __privateAdd(TxtLayer, _sys3, void 0);
48644
48571
  __privateAdd(TxtLayer, _doAutoWc, false);
48645
48572
  __privateAdd(TxtLayer, _hAutoWc, {});
48646
48573
  __privateAdd(TxtLayer, _rec, (tx) => tx);
48647
- __privateAdd(TxtLayer, _rec_bk, (tx) => tx);
48648
- __privateAdd(TxtLayer, _class_offrec, " offrec");
48649
48574
  class FrameMng {
48650
48575
  constructor(cfg, hTag, appPixi, val, main2, sys, hTwInf) {
48651
48576
  __privateAdd(this, _add_frame);
@@ -49938,6 +49863,7 @@ ch_fn = function(hArg) {
49938
49863
  hArg.wait = 0;
49939
49864
  else if ("wait" in hArg)
49940
49865
  argChk_Num(hArg, "wait", NaN);
49866
+ __privateGet(this, _cmdTxt).call(this, "add\uFF5C" + JSON.stringify(hArg), tl);
49941
49867
  const record = argChk_Boolean(hArg, "record", true);
49942
49868
  const doRecLog = this.val.doRecLog();
49943
49869
  if (!record)
@@ -49945,6 +49871,7 @@ ch_fn = function(hArg) {
49945
49871
  tl.tagCh(text.replaceAll("[r]", "\n"));
49946
49872
  if (!record)
49947
49873
  this.val.setVal_Nochk("save", "sn.doRecLog", doRecLog);
49874
+ __privateGet(this, _cmdTxt).call(this, `add_close\uFF5C`, tl);
49948
49875
  return false;
49949
49876
  };
49950
49877
  _getTxtLayer = new WeakMap();
@@ -51765,6 +51692,7 @@ class EventMng {
51765
51692
  __privateSet(this, _elmHint, document.querySelector(".sn_hint"));
51766
51693
  __privateSet(this, _spanHint, __privateGet(this, _elmHint).querySelector("span"));
51767
51694
  __privateSet(this, _popper, createPopper(__privateGet(this, _elmV), __privateGet(this, _elmHint)));
51695
+ __privateGet(this, _elmHint).hidden = true;
51768
51696
  appPixi.stage.interactive = true;
51769
51697
  if (CmnLib.isMobile)
51770
51698
  appPixi.stage.on("pointerdown", (e) => this.fire("click", e));