@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/web.js CHANGED
@@ -49,7 +49,7 @@ var __privateMethod2 = (obj, member, method) => {
49
49
  __accessCheck2(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, _path_base, _now_prj, _main3, _hAppendFile;
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, _path_base, _now_prj, _main3, _hAppendFile;
53
53
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
54
54
  var platform$1 = { exports: {} };
55
55
  /*!
@@ -814,7 +814,7 @@ function argChk_Color(hash2, name2, def) {
814
814
  return hash2[name2] = parseColor(String(v2));
815
815
  }
816
816
  const REG_ERRMES_JSON = /JSON at position (\d+)$/;
817
- function mesErrJSON(hArg, nm = "", mes = "") {
817
+ function mesErrJSON(hArg, nm, mes = "") {
818
818
  var _a3;
819
819
  const col = ((_a3 = mes.match(REG_ERRMES_JSON)) != null ? _a3 : ["", ""])[1];
820
820
  return `[${hArg[":\u30BF\u30B0\u540D"]}] ${nm} \u5C5E\u6027\u306E\u89E3\u6790\u30A8\u30E9\u30FC : ${mes}
@@ -2023,6 +2023,7 @@ class Socket$1 extends Emitter {
2023
2023
  }
2024
2024
  }
2025
2025
  Socket$1.protocol = protocol$1;
2026
+ Socket$1.protocol;
2026
2027
  function url$1(uri, path = "", loc) {
2027
2028
  let obj = uri;
2028
2029
  loc = loc || typeof location !== "undefined" && location;
@@ -18857,7 +18858,7 @@ var _ = function() {
18857
18858
  this._sounds[t2].stop();
18858
18859
  return this;
18859
18860
  }, t.prototype.exists = function(t2, e) {
18860
- return !!this._sounds[t2];
18861
+ return e === void 0 && (e = false), !!this._sounds[t2];
18861
18862
  }, t.prototype.find = function(t2) {
18862
18863
  return this.exists(t2, true), this._sounds[t2];
18863
18864
  }, t.prototype.play = function(t2, e) {
@@ -47508,7 +47509,7 @@ const _TxtStage = class extends Container {
47508
47509
  __privateGet2(this, _htmTxt).style.height = __privateGet2(this, _infTL).$height + "px";
47509
47510
  }
47510
47511
  goTxt(aSpan) {
47511
- var _a3, _b3, _c3, _d2, _e;
47512
+ var _a3, _b3, _c3, _d2, _e, _f;
47512
47513
  __privateGet2(_TxtStage, _cntBreak).visible = false;
47513
47514
  const begin = __privateGet2(this, _aRect).length;
47514
47515
  if (begin === 0) {
@@ -47616,35 +47617,39 @@ const _TxtStage = class extends Container {
47616
47617
  }
47617
47618
  rctLastCh = rct;
47618
47619
  }
47619
- switch (v2.cmd) {
47620
- case "grp":
47621
- const cnt = new Container();
47622
- __privateGet2(this, _cntTxt).addChild(cnt);
47623
- GrpLayer.csv2Sprites(arg.pic, cnt, (sp2) => {
47624
- __privateMethod2(this, _spWork, spWork_fn).call(this, cnt, arg, add3, rct, ease, cis != null ? cis : {});
47625
- if (!cnt.parent)
47626
- cnt.removeChild(sp2);
47627
- });
47628
- break;
47629
- case "link":
47630
- const sp = new Sprite();
47631
- arg.key = `lnk=[${i2}] ` + this.name;
47632
- let eCh = v2.elm;
47633
- if (!eCh.classList.contains("sn_ch"))
47634
- eCh = eCh.parentElement;
47635
- __privateMethod2(this, _spWork, spWork_fn).call(this, sp, arg, add3, rct, ease, cis != null ? cis : {});
47636
- (_c3 = arg.hint_tate) != null ? _c3 : arg.hint_tate = __privateGet2(this, _isTategaki);
47637
- const st_normal = eCh.style.cssText;
47638
- const st_hover = st_normal + ((_d2 = arg.style_hover) != null ? _d2 : "");
47639
- const st_clicked = st_normal + ((_e = arg.style_clicked) != null ? _e : "");
47640
- __privateGet2(_TxtStage, _evtMng3).button(arg, sp, () => eCh.style.cssText = st_normal, () => {
47641
- if (!this.canFocus())
47642
- return false;
47643
- eCh.style.cssText = st_hover;
47644
- return true;
47645
- }, () => eCh.style.cssText = st_clicked);
47646
- __privateGet2(this, _cntTxt).addChild(sp);
47647
- break;
47620
+ if (v2.cmd === "grp") {
47621
+ const cnt = new Container();
47622
+ __privateGet2(this, _cntTxt).addChild(cnt);
47623
+ GrpLayer.csv2Sprites(arg.pic, cnt, (sp) => {
47624
+ __privateMethod2(this, _spWork, spWork_fn).call(this, cnt, arg, add3, rct, ease, cis != null ? cis : {});
47625
+ if (!cnt.parent)
47626
+ cnt.removeChild(sp);
47627
+ });
47628
+ }
47629
+ if (v2.lnk) {
47630
+ const eCh = v2.elm.parentElement.closest("[data-arg]");
47631
+ const aLnk = JSON.parse((_c3 = eCh.dataset.arg) != null ? _c3 : "{}");
47632
+ aLnk.key = `lnk=[${i2}] ` + this.name;
47633
+ const sp = new Sprite();
47634
+ __privateMethod2(this, _spWork, spWork_fn).call(this, sp, aLnk, add3, rct, ease, cis != null ? cis : {});
47635
+ const st_normal = (_d2 = aLnk.style) != null ? _d2 : "";
47636
+ const st_hover = st_normal + ((_e = aLnk.style_hover) != null ? _e : "");
47637
+ const st_clicked = st_normal + ((_f = aLnk.style_clicked) != null ? _f : "");
47638
+ const st_bk = eCh.style.cssText;
47639
+ const fncStyle = (st) => {
47640
+ if (!st)
47641
+ return;
47642
+ eCh.style.cssText = st_bk + st;
47643
+ };
47644
+ const cl = eCh.querySelectorAll(".sn_ch");
47645
+ cl.forEach((e) => e.dataset.st_bk = e.style.cssText);
47646
+ __privateGet2(_TxtStage, _evtMng3).button(aLnk, sp, () => fncStyle(st_normal), () => {
47647
+ if (!this.canFocus())
47648
+ return false;
47649
+ fncStyle(st_hover);
47650
+ return true;
47651
+ }, () => fncStyle(st_clicked));
47652
+ __privateGet2(this, _cntTxt).addChild(sp);
47648
47653
  }
47649
47654
  }
47650
47655
  const chs = __privateGet2(this, _htmTxt).querySelectorAll("span.sn_ch");
@@ -48149,7 +48154,10 @@ spWork_fn = function(sp, arg, add3, rct, ease, cis) {
48149
48154
  cis.wait = parseInt(arg.wait);
48150
48155
  sp.width = rct.width;
48151
48156
  sp.height = rct.height;
48152
- 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);
48157
+ if (cis.x)
48158
+ 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);
48159
+ else
48160
+ sp.position.set(rct.x, rct.y);
48153
48161
  const st = {
48154
48162
  sp,
48155
48163
  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(() => {
@@ -48170,7 +48178,7 @@ getChRects_fn = function(elm) {
48170
48178
  const ret = [];
48171
48179
  if (elm.nodeType !== elm.TEXT_NODE) {
48172
48180
  elm.childNodes.forEach((v2) => ret.push(__privateMethod2(this, _getChRects, getChRects_fn).call(this, v2)));
48173
- return Array.prototype.concat.apply([], ret);
48181
+ return ret.flat();
48174
48182
  }
48175
48183
  const range = elm.ownerDocument.createRange();
48176
48184
  range.selectNodeContents(elm);
@@ -48191,7 +48199,7 @@ getChRects_fn = function(elm) {
48191
48199
  cmd: (_a3 = pe.getAttribute("data-cmd")) != null ? _a3 : void 0,
48192
48200
  arg: (_b3 = pe.getAttribute("data-arg")) != null ? _b3 : void 0,
48193
48201
  add: (_c3 = pe.getAttribute("data-add")) != null ? _c3 : void 0,
48194
- tcy: (_d2 = pe.getAttribute("data-tcy")) != null ? _d2 : void 0
48202
+ lnk: (_d2 = pe.getAttribute("data-lnk")) != null ? _d2 : void 0
48195
48203
  };
48196
48204
  ret.push(cr);
48197
48205
  }
@@ -48549,8 +48557,9 @@ const _TxtLayer = class extends Layer {
48549
48557
  __privateAdd2(this, _setFfs);
48550
48558
  __privateAdd2(this, _mkStyle_r_align4ff);
48551
48559
  __privateAdd2(this, _tagCh_sub);
48552
- __privateAdd2(this, _beginSpan);
48553
- __privateAdd2(this, _autoCloseSpan);
48560
+ __privateAdd2(this, _style_delay);
48561
+ __privateAdd2(this, _pushSpan);
48562
+ __privateAdd2(this, _popSpan);
48554
48563
  __privateAdd2(this, _b_color, void 0);
48555
48564
  __privateAdd2(this, _b_alpha, void 0);
48556
48565
  __privateAdd2(this, _b_alpha_isfixed, void 0);
@@ -48564,7 +48573,6 @@ const _TxtLayer = class extends Layer {
48564
48573
  __privateAdd2(this, _$ch_out_style, void 0);
48565
48574
  __privateAdd2(this, _ffs, void 0);
48566
48575
  __privateAdd2(this, _fncFFSStyle, void 0);
48567
- __privateAdd2(this, _fncFFSSpan, void 0);
48568
48576
  __privateAdd2(this, _strNoFFS, void 0);
48569
48577
  __privateAdd2(this, _regNoFFS, void 0);
48570
48578
  __privateAdd2(this, _ruby_pd, void 0);
@@ -48574,9 +48582,7 @@ const _TxtLayer = class extends Layer {
48574
48582
  __privateAdd2(this, _cumDelay, void 0);
48575
48583
  __privateAdd2(this, _firstCh, void 0);
48576
48584
  __privateAdd2(this, _aSpan, void 0);
48577
- __privateAdd2(this, _aSpan_bk, void 0);
48578
- __privateAdd2(this, _aSpan_link, void 0);
48579
- __privateAdd2(this, _hSpanBk, void 0);
48585
+ __privateAdd2(this, _stkASpan, void 0);
48580
48586
  __privateAdd2(this, _page_text, void 0);
48581
48587
  __privateSet2(this, _b_color, 0);
48582
48588
  __privateSet2(this, _b_alpha, 0);
@@ -48591,7 +48597,6 @@ const _TxtLayer = class extends Layer {
48591
48597
  __privateSet2(this, _$ch_out_style, "");
48592
48598
  __privateSet2(this, _ffs, "");
48593
48599
  __privateSet2(this, _fncFFSStyle, (_ch2) => "");
48594
- __privateSet2(this, _fncFFSSpan, (ch) => ch);
48595
48600
  __privateSet2(this, _strNoFFS, "");
48596
48601
  __privateSet2(this, _regNoFFS, new RegExp("[\u3000]"));
48597
48602
  this.isCur = false;
@@ -48599,27 +48604,17 @@ const _TxtLayer = class extends Layer {
48599
48604
  __privateSet2(this, _r_align, "");
48600
48605
  __privateSet2(this, _needGoTxt, false);
48601
48606
  __privateSet2(this, _putCh2, (ch, ruby) => {
48602
- var _a3, _b3, _c3, _d2, _e, _f, _g, _h, _i, _j, _k;
48607
+ var _a3, _b3, _c3, _d2, _e, _f, _g, _h, _i, _j, _k, _l2, _m;
48603
48608
  if (__privateGet2(_TxtLayer, _cfg3).oCfg.debug.putCh)
48604
48609
  console.log(`\u{1F58A} \u6587\u5B57\u8868\u793A text:\`${ch}\` ruby:\`${ruby}\` name:\`${this.name_}\``);
48605
48610
  const a_ruby = ruby.split("\uFF5C");
48606
48611
  let add_htm = "";
48607
48612
  const isSkip = __privateGet2(_TxtLayer, _evtMng4).isSkippingByKeyDown();
48613
+ const [a0, a1] = a_ruby;
48608
48614
  switch (a_ruby.length) {
48609
48615
  case 1:
48610
48616
  __privateSet2(this, _needGoTxt, true);
48611
48617
  if (ch === "\n") {
48612
- if (__privateGet2(this, _aSpan_bk)) {
48613
- add_htm = __privateGet2(this, _aSpan_bk).slice(-1)[0];
48614
- __privateMethod2(this, _autoCloseSpan, autoCloseSpan_fn).call(this);
48615
- __privateGet2(this, _aSpan).push(__privateGet2(_a3 = _TxtLayer, _rec).call(_a3, "<br/>"));
48616
- __privateGet2(this, _aSpan).push(add_htm);
48617
- __privateSet2(this, _aSpan_bk, __privateGet2(this, _aSpan));
48618
- __privateSet2(this, _aSpan, []);
48619
- __privateSet2(_TxtLayer, _rec_bk, __privateGet2(_TxtLayer, _rec));
48620
- __privateSet2(_TxtLayer, _rec, (tx) => tx);
48621
- return;
48622
- }
48623
48618
  if (__privateGet2(this, _firstCh)) {
48624
48619
  __privateSet2(this, _firstCh, false);
48625
48620
  add_htm = "<ruby>\u3000<rt>\u3000</rt></ruby><br/>";
@@ -48635,7 +48630,7 @@ const _TxtLayer = class extends Layer {
48635
48630
  add_htm = __privateMethod2(this, _tagCh_sub, tagCh_sub_fn).call(this, ch, ruby, isSkip, __privateGet2(this, _r_align));
48636
48631
  break;
48637
48632
  case 2:
48638
- switch (a_ruby[0]) {
48633
+ switch (a0) {
48639
48634
  case "start":
48640
48635
  case "left":
48641
48636
  case "center":
@@ -48646,123 +48641,83 @@ const _TxtLayer = class extends Layer {
48646
48641
  case "1ruby":
48647
48642
  __privateSet2(this, _firstCh, false);
48648
48643
  __privateSet2(this, _needGoTxt, true);
48649
- add_htm = __privateMethod2(this, _tagCh_sub, tagCh_sub_fn).call(this, ch, a_ruby[1], isSkip, a_ruby[0]);
48644
+ add_htm = __privateMethod2(this, _tagCh_sub, tagCh_sub_fn).call(this, ch, a1, isSkip, a0);
48650
48645
  break;
48651
- case "gotxt": {
48652
- __privateMethod2(this, _autoCloseSpan, autoCloseSpan_fn).call(this);
48653
- if (this.isCur)
48654
- __privateGet2(_b3 = _TxtLayer, _recText).call(_b3, __privateGet2(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("`", "\\`"));
48655
- if (!__privateGet2(this, _needGoTxt))
48656
- return;
48657
- __privateGet2(this, _txs).goTxt(__privateGet2(this, _aSpan));
48658
- __privateSet2(this, _needGoTxt, false);
48659
- __privateSet2(this, _cumDelay, 0);
48646
+ case "gotxt":
48647
+ {
48648
+ __privateMethod2(this, _popSpan, popSpan_fn).call(this);
48649
+ if (this.isCur)
48650
+ __privateGet2(_a3 = _TxtLayer, _recText).call(_a3, __privateGet2(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("`", "\\`"));
48651
+ if (__privateGet2(this, _needGoTxt)) {
48652
+ __privateGet2(this, _txs).goTxt(__privateGet2(this, _aSpan));
48653
+ __privateSet2(this, _needGoTxt, false);
48654
+ __privateSet2(this, _cumDelay, 0);
48655
+ }
48656
+ }
48660
48657
  return;
48661
- }
48662
48658
  case "add":
48663
48659
  {
48664
- const o = JSON.parse(a_ruby[1]);
48665
- (_c3 = o.style) != null ? _c3 : o.style = "";
48666
- __privateMethod2(this, _beginSpan, beginSpan_fn).call(this, o);
48667
- if (__privateGet2(this, _aSpan_bk))
48668
- __privateMethod2(this, _autoCloseSpan, autoCloseSpan_fn).call(this);
48669
- else {
48670
- if (isSkip)
48671
- __privateSet2(this, _cumDelay, 0);
48672
- const wait = Number((_d2 = o.wait) != null ? _d2 : -1);
48673
- const sn_ch = wait === 0 ? "" : ` sn_ch_in_${__privateGet2(this, _$ch_in_style)}`;
48674
- const ad = wait < 0 ? "" : ` animation-duration: ${wait}ms;`;
48675
- __privateGet2(this, _aSpan).push(`<span class='sn_ch${sn_ch + __privateGet2(_TxtLayer, _class_offrec)}' style='animation-delay: ${__privateGet2(this, _cumDelay)}ms;${ad} ${o.style}' data-add='${JSON.stringify(o)}'>`);
48676
- }
48677
- __privateSet2(this, _aSpan_bk, __privateGet2(this, _aSpan));
48678
- __privateSet2(this, _aSpan, []);
48679
- __privateSet2(_TxtLayer, _rec_bk, __privateGet2(_TxtLayer, _rec));
48680
- __privateSet2(_TxtLayer, _rec, (tx) => tx);
48660
+ const o = JSON.parse(a1);
48661
+ __privateGet2(this, _aSpan).push(`<span style='display: inline;${(_c3 = (_b3 = __privateGet2(this, _stkASpan).at(-1)) == null ? void 0 : _b3.o.style) != null ? _c3 : ""}${(_d2 = o.style) != null ? _d2 : ""} ${__privateMethod2(this, _style_delay, style_delay_fn).call(this, isSkip)}' class='sn_ch sn_ch_in_${__privateGet2(this, _$ch_in_style)}' data-add='${JSON.stringify(o)}'>`);
48662
+ delete o.style;
48663
+ __privateMethod2(this, _pushSpan, pushSpan_fn).call(this, o);
48681
48664
  }
48682
48665
  return;
48683
48666
  case "add_close":
48684
- __privateMethod2(this, _autoCloseSpan, autoCloseSpan_fn).call(this);
48667
+ __privateGet2(this, _aSpan).push("</span>");
48668
+ __privateMethod2(this, _popSpan, popSpan_fn).call(this);
48685
48669
  return;
48686
48670
  case "grp":
48687
48671
  __privateSet2(this, _needGoTxt, true);
48688
48672
  {
48689
- if (isSkip)
48690
- __privateSet2(this, _cumDelay, 0);
48691
- const arg = (a_ruby[1] ? a_ruby[1].slice(0, -1) + "," : `{`) + `"delay": ${__privateGet2(this, _cumDelay)}}`;
48692
- if (__privateGet2(this, _ch_in_join))
48693
- __privateSet2(this, _cumDelay, __privateGet2(this, _cumDelay) + (__privateGet2(_TxtLayer, _doAutoWc) ? 0 : LayerMng.msecChWait));
48694
- const o = JSON.parse(arg);
48695
- (_e = o.style) != null ? _e : o.style = "";
48696
- if (!("id" in o))
48697
- o.id = __privateGet2(this, _aSpan).length;
48673
+ const o = JSON.parse(a1);
48674
+ o.delay = __privateGet2(this, _cumDelay);
48675
+ (_e = o.id) != null ? _e : o.id = __privateGet2(this, _aSpan).length;
48698
48676
  if (o.id === "break") {
48699
48677
  __privateGet2(this, _txs).dispBreak(o.pic);
48700
48678
  return;
48701
48679
  }
48702
- add_htm = `<span data-cmd='grp' data-id='${o.id}' data-arg='${arg}'`;
48703
- const wait = Number((_f = o.wait) != null ? _f : -1);
48704
- const sn_ch = wait === 0 ? "" : ` sn_ch_in_${__privateGet2(this, _$ch_in_style)}`;
48680
+ (_f = o.style) != null ? _f : o.style = "";
48681
+ const wait = Number((_g = o.wait) != null ? _g : -1);
48682
+ const sc = wait != 0 ? ` sn_ch_in_${__privateGet2(this, _$ch_in_style)}` : "";
48705
48683
  const ad = wait < 0 ? "" : ` animation-duration: ${wait}ms;`;
48706
- add_htm += ` class='sn_ch${sn_ch}' style='animation-delay: ${__privateGet2(this, _cumDelay)}ms;${ad} ${o.style}' data-add='{"ch_in_style":"${__privateGet2(this, _$ch_in_style)}", "ch_out_style":"${__privateGet2(this, _$ch_out_style)}"}'>\u3000</span>`;
48684
+ const lnk = (_h = __privateGet2(this, _stkASpan).at(0)) == null ? void 0 : _h.o[":link"];
48685
+ add_htm = `<span data-cmd='grp' data-id='${o.id}' data-arg='${JSON.stringify(o)}' class='sn_ch${sc}' style='${__privateMethod2(this, _style_delay, style_delay_fn).call(this, isSkip)}${ad} ${(_i = o.style) != null ? _i : ""}'${lnk != null ? lnk : ""} data-add='{"ch_in_style":"${__privateGet2(this, _$ch_in_style)}", "ch_out_style":"${__privateGet2(this, _$ch_out_style)}"}'>\u3000</span>`;
48707
48686
  if (__privateGet2(this, _firstCh)) {
48708
48687
  __privateSet2(this, _firstCh, false);
48709
48688
  add_htm = `<ruby>${add_htm}<rt>\u3000</rt></ruby>`;
48710
48689
  }
48711
- if (__privateGet2(this, _aSpan).slice(-1)[0] === add_htm)
48712
- return;
48690
+ if (__privateGet2(this, _ch_in_join))
48691
+ __privateSet2(this, _cumDelay, __privateGet2(this, _cumDelay) + (__privateGet2(_TxtLayer, _doAutoWc) ? 0 : LayerMng.msecChWait));
48713
48692
  }
48714
48693
  break;
48715
48694
  case "del":
48716
- const id_del = a_ruby[1];
48717
- if (id_del !== "break")
48718
- throw "\u6587\u5B57\u30EC\u30A4\u30E4del\u30B3\u30DE\u30F3\u30C9\u306F\u3001\u73FE\u5728id=break\u306E\u307F\u30B5\u30DD\u30FC\u30C8\u3057\u307E\u3059";
48719
48695
  TxtStage.delBreak();
48720
48696
  return;
48721
48697
  case "span":
48722
- __privateMethod2(this, _autoCloseSpan, autoCloseSpan_fn).call(this);
48723
- __privateSet2(this, _needGoTxt, true);
48724
48698
  {
48725
- const o = JSON.parse(a_ruby[1]);
48726
- __privateMethod2(this, _beginSpan, beginSpan_fn).call(this, o);
48727
- if (!o.style)
48728
- return;
48729
- if (isSkip)
48730
- __privateSet2(this, _cumDelay, 0);
48731
- const wait = Number((_g = o.wait) != null ? _g : -1);
48732
- const sn_ch = wait === 0 ? "" : ` sn_ch_in_${__privateGet2(this, _$ch_in_style)}`;
48733
- const ad = wait < 0 ? "" : ` animation-duration: ${wait}ms;`;
48734
- __privateGet2(this, _aSpan).push(`<span class='sn_ch${sn_ch + __privateGet2(_TxtLayer, _class_offrec)}' style='animation-delay: ${__privateGet2(this, _cumDelay)}ms;${ad} ${o.style}' data-add='{"ch_in_style":"${__privateGet2(this, _$ch_in_style)}", "ch_out_style":"${__privateGet2(this, _$ch_out_style)}"}'>`);
48735
- __privateSet2(this, _aSpan_bk, __privateGet2(this, _aSpan));
48736
- __privateSet2(this, _aSpan, []);
48737
- __privateSet2(_TxtLayer, _rec_bk, __privateGet2(_TxtLayer, _rec));
48738
- __privateSet2(_TxtLayer, _rec, (tx) => tx);
48699
+ __privateMethod2(this, _popSpan, popSpan_fn).call(this);
48700
+ __privateSet2(this, _needGoTxt, true);
48701
+ const o = JSON.parse(a1);
48702
+ if (o.style)
48703
+ __privateMethod2(this, _pushSpan, pushSpan_fn).call(this, o);
48739
48704
  }
48740
48705
  return;
48741
48706
  case "link":
48742
- __privateMethod2(this, _autoCloseSpan, autoCloseSpan_fn).call(this);
48743
- __privateSet2(this, _needGoTxt, true);
48744
48707
  {
48745
- const o = JSON.parse(a_ruby[1]);
48746
- (_h = o.style) != null ? _h : o.style = "";
48747
- __privateMethod2(this, _beginSpan, beginSpan_fn).call(this, o);
48748
- if (isSkip)
48749
- __privateSet2(this, _cumDelay, 0);
48750
- const wait = Number((_i = o.wait) != null ? _i : -1);
48751
- const sn_ch = wait === 0 ? "" : ` sn_ch_in_${__privateGet2(this, _$ch_in_style)}`;
48752
- const ad = wait < 0 ? "" : ` animation-duration: ${wait}ms;`;
48753
- __privateSet2(this, _aSpan_link, ` data-cmd='link' data-arg='${a_ruby[1]}'`);
48754
- __privateGet2(this, _aSpan).push(`<span${__privateGet2(this, _aSpan_link)} class='sn_ch${sn_ch + __privateGet2(_TxtLayer, _class_offrec)}' style='animation-delay: ${__privateGet2(this, _cumDelay)}ms;${ad} ${o.style}' data-add='{"ch_in_style":"${__privateGet2(this, _$ch_in_style)}", "ch_out_style":"${__privateGet2(this, _$ch_out_style)}"}'>`);
48755
- __privateSet2(this, _aSpan_bk, __privateGet2(this, _aSpan));
48756
- __privateSet2(this, _aSpan, []);
48757
- __privateSet2(_TxtLayer, _rec_bk, __privateGet2(_TxtLayer, _rec));
48758
- __privateSet2(_TxtLayer, _rec, (tx) => tx);
48708
+ __privateMethod2(this, _popSpan, popSpan_fn).call(this);
48709
+ __privateSet2(this, _needGoTxt, true);
48710
+ const o = JSON.parse(a1);
48711
+ o[":link"] = ` data-lnk='@'`;
48712
+ __privateGet2(this, _aSpan).push(`<span data-arg='${a1}' class='sn_ch sn_ch_in_${__privateGet2(this, _$ch_in_style)}' style='display: inline;${(_j = o.style) != null ? _j : ""} ${__privateMethod2(this, _style_delay, style_delay_fn).call(this, isSkip)}' data-add='{"ch_in_style":"${__privateGet2(this, _$ch_in_style)}", "ch_out_style":"${__privateGet2(this, _$ch_out_style)}"}'}>`);
48713
+ delete o.style;
48714
+ __privateMethod2(this, _pushSpan, pushSpan_fn).call(this, o);
48759
48715
  }
48760
48716
  return;
48761
48717
  case "endlink":
48762
48718
  __privateSet2(this, _needGoTxt, true);
48763
- if (__privateGet2(this, _aSpan_bk))
48764
- __privateSet2(this, _aSpan, __privateGet2(this, _aSpan).map((v2) => v2.replace(/ data-cmd='linkrsv'/, __privateGet2(this, _aSpan_link))));
48765
- __privateMethod2(this, _autoCloseSpan, autoCloseSpan_fn).call(this);
48719
+ __privateGet2(this, _aSpan).push("</span>");
48720
+ __privateMethod2(this, _popSpan, popSpan_fn).call(this);
48766
48721
  return;
48767
48722
  default:
48768
48723
  __privateSet2(this, _needGoTxt, true);
@@ -48770,34 +48725,24 @@ const _TxtLayer = class extends Layer {
48770
48725
  }
48771
48726
  break;
48772
48727
  case 3:
48773
- __privateSet2(this, _firstCh, false);
48774
- __privateSet2(this, _needGoTxt, true);
48775
- switch (a_ruby[0]) {
48728
+ switch (a0) {
48776
48729
  case "tcy":
48730
+ __privateSet2(this, _firstCh, false);
48731
+ __privateSet2(this, _needGoTxt, true);
48777
48732
  {
48733
+ const [, tx, rb0] = a_ruby;
48778
48734
  if (__privateGet2(_TxtLayer, _val).doRecLog())
48779
48735
  __privateSet2(this, _page_text, __privateGet2(this, _page_text) + (ch + (ruby ? `\u300A${ruby}\u300B` : "")));
48780
- const tx = a_ruby[1];
48781
- const id_tcy = tx.length > 1 ? __privateGet2(this, _aSpan).length + 1 : "";
48782
- const rb = CmnLib.isSafari ? a_ruby[2].replace(/[A-Za-z0-9]/g, (s2) => String.fromCharCode(s2.charCodeAt(0) + 65248)) : a_ruby[2];
48783
- if (isSkip)
48784
- __privateSet2(this, _cumDelay, 0);
48736
+ const rb = CmnLib.isSafari ? rb0.replace(/[A-Za-z0-9]/g, (s2) => String.fromCharCode(s2.charCodeAt(0) + 65248)) : rb0;
48785
48737
  const rs = this.mkStyle_r_align(tx, rb, __privateGet2(this, _r_align));
48786
- const da = ` data-add='{"ch_in_style":"${__privateGet2(this, _$ch_in_style)}", "ch_out_style":"${__privateGet2(this, _$ch_out_style)}"}'`;
48787
- const st = `<span data-tcy='${id_tcy}' style='
48738
+ const lnk = (_k = __privateGet2(this, _stkASpan).at(0)) == null ? void 0 : _k.o[":link"];
48739
+ add_htm = `<span class='sn_ch sn_ch_in_${__privateGet2(this, _$ch_in_style)}' style='${__privateGet2(this, _fncFFSStyle).call(this, tx)}${__privateMethod2(this, _style_delay, style_delay_fn).call(this, isSkip)}'><ruby><span ${lnk != null ? lnk : ""} style='
48788
48740
  text-combine-upright: all;
48789
48741
  -webkit-text-combine: horizontal;
48790
- ${__privateGet2(this, _fncFFSStyle).call(this, tx)}`;
48791
- add_htm = rb ? __privateGet2(this, _aSpan_bk) ? `<ruby>${st}'${da} data-cmd='linkrsv'>${tx}</span>
48792
- <rt${rs}>${rb}</rt></ruby>` : `<span class='sn_ch sn_ch_in_${__privateGet2(this, _$ch_in_style)}' style='animation-delay: ${__privateGet2(this, _cumDelay)}ms;'>
48793
- <ruby>${st}'${da}>${tx}</span>
48794
- <rt${rs}>${rb}</rt></ruby>
48795
- </span>` : __privateGet2(this, _aSpan_bk) ? `${st}'${da} data-cmd='linkrsv'>${tx}</span>` : `${st}
48796
- animation-delay: ${__privateGet2(this, _cumDelay)}ms;
48797
- height: 1em;
48798
- ' class='sn_ch sn_ch_in_${__privateGet2(this, _$ch_in_style)}'${da}>${tx}</span>`;
48742
+ ' data-add='{"ch_in_style":"${__privateGet2(this, _$ch_in_style)}", "ch_out_style":"${__privateGet2(this, _$ch_out_style)}"}'>${tx}</span>
48743
+ <rt${rs}>${rb}</rt></ruby></span>`;
48799
48744
  if (__privateGet2(this, _ch_in_join))
48800
- __privateSet2(this, _cumDelay, __privateGet2(this, _cumDelay) + (__privateGet2(_TxtLayer, _doAutoWc) ? (_j = __privateGet2(_TxtLayer, _hAutoWc)[ch.charAt(0)]) != null ? _j : 0 : LayerMng.msecChWait));
48745
+ __privateSet2(this, _cumDelay, __privateGet2(this, _cumDelay) + (__privateGet2(_TxtLayer, _doAutoWc) ? (_l2 = __privateGet2(_TxtLayer, _hAutoWc)[ch.charAt(0)]) != null ? _l2 : 0 : LayerMng.msecChWait));
48801
48746
  }
48802
48747
  break;
48803
48748
  default:
@@ -48805,18 +48750,12 @@ ${__privateGet2(this, _fncFFSStyle).call(this, tx)}`;
48805
48750
  }
48806
48751
  break;
48807
48752
  }
48808
- __privateGet2(this, _aSpan).push(__privateGet2(_k = _TxtLayer, _rec).call(_k, add_htm));
48753
+ __privateGet2(this, _aSpan).push(__privateGet2(_m = _TxtLayer, _rec).call(_m, add_htm));
48809
48754
  });
48810
48755
  __privateSet2(this, _cumDelay, 0);
48811
48756
  __privateSet2(this, _firstCh, true);
48812
48757
  __privateSet2(this, _aSpan, []);
48813
- __privateSet2(this, _aSpan_bk, void 0);
48814
- __privateSet2(this, _aSpan_link, "");
48815
- __privateSet2(this, _hSpanBk, {
48816
- ch_in_style: "",
48817
- ch_out_style: "",
48818
- r_align: ""
48819
- });
48758
+ __privateSet2(this, _stkASpan, []);
48820
48759
  this.click = () => {
48821
48760
  if (!this.spLay.interactiveChildren || !this.spLay.visible)
48822
48761
  return true;
@@ -48999,7 +48938,6 @@ ${__privateGet2(this, _fncFFSStyle).call(this, tx)}`;
48999
48938
  }
49000
48939
  static chgDoRec(doRec) {
49001
48940
  __privateSet2(_TxtLayer, _rec, doRec ? (tx) => tx : (tx) => `<span class='offrec'>${tx}</span>`);
49002
- __privateSet2(_TxtLayer, _class_offrec, doRec ? "" : " offrec");
49003
48941
  }
49004
48942
  mkStyle_r_align(ch, rb, r_align) {
49005
48943
  if (!r_align)
@@ -49035,8 +48973,6 @@ ${__privateGet2(this, _fncFFSStyle).call(this, tx)}`;
49035
48973
  __privateSet2(this, _cumDelay, 0);
49036
48974
  __privateSet2(this, _firstCh, true);
49037
48975
  __privateSet2(this, _aSpan, []);
49038
- __privateSet2(this, _aSpan_bk, void 0);
49039
- __privateSet2(_TxtLayer, _rec, __privateGet2(_TxtLayer, _rec_bk));
49040
48976
  __privateSet2(this, _page_text, "");
49041
48977
  __privateGet2(_a3 = _TxtLayer, _recText).call(_a3, "", true);
49042
48978
  }
@@ -49276,22 +49212,13 @@ setFfs_fn = function(hArg) {
49276
49212
  if (!("ffs" in hArg))
49277
49213
  return;
49278
49214
  (_b3 = __privateGet2(this, _ffs)) != null ? _b3 : __privateSet2(this, _ffs, "");
49279
- if (__privateGet2(this, _ffs) === "") {
49280
- __privateSet2(this, _fncFFSStyle, () => "");
49281
- __privateSet2(this, _fncFFSSpan, (ch) => ch);
49282
- } else {
49283
- __privateSet2(this, _fncFFSStyle, (ch) => __privateGet2(this, _regNoFFS).test(ch) ? "" : ` font-feature-settings: ${__privateGet2(this, _ffs)};`);
49284
- __privateSet2(this, _fncFFSSpan, (ch) => __privateGet2(this, _regNoFFS).test(ch) ? ch : `<span style='font-feature-settings: ${__privateGet2(this, _ffs)};'>${ch}</span>`);
49285
- }
49215
+ __privateSet2(this, _fncFFSStyle, __privateGet2(this, _ffs) === "" ? () => "" : (ch) => __privateGet2(this, _regNoFFS).test(ch) ? "" : ` font-feature-settings: ${__privateGet2(this, _ffs)};`);
49286
49216
  };
49287
49217
  _ffs = new WeakMap();
49288
49218
  _fncFFSStyle = new WeakMap();
49289
- _fncFFSSpan = new WeakMap();
49290
49219
  _strNoFFS = new WeakMap();
49291
49220
  _regNoFFS = new WeakMap();
49292
49221
  _rec = new WeakMap();
49293
- _rec_bk = new WeakMap();
49294
- _class_offrec = new WeakMap();
49295
49222
  _ruby_pd = new WeakMap();
49296
49223
  _r_align = new WeakMap();
49297
49224
  _mkStyle_r_align4ff = new WeakSet();
@@ -49334,50 +49261,50 @@ _needGoTxt = new WeakMap();
49334
49261
  _putCh2 = new WeakMap();
49335
49262
  _tagCh_sub = new WeakSet();
49336
49263
  tagCh_sub_fn = function(ch, ruby, isSkip, r_align) {
49337
- var _a3;
49264
+ var _a3, _b3;
49338
49265
  if (ch === " ")
49339
49266
  ch = "&nbsp;";
49340
49267
  if (__privateGet2(_TxtLayer, _val).doRecLog())
49341
49268
  __privateSet2(this, _page_text, __privateGet2(this, _page_text) + (ch + (ruby ? `\u300A${ruby}\u300B` : "")));
49342
- let add_htm = "";
49343
- const rs = this.mkStyle_r_align(ch, ruby, r_align);
49344
- if (isSkip)
49345
- __privateSet2(this, _cumDelay, 0);
49346
- const da = ` data-add='{"ch_in_style":"${__privateGet2(this, _$ch_in_style)}", "ch_out_style":"${__privateGet2(this, _$ch_out_style)}"}'`;
49347
- add_htm = ruby ? __privateGet2(this, _aSpan_bk) ? `<ruby style='${__privateGet2(this, _fncFFSStyle).call(this, ch)}'${da} data-cmd='linkrsv'>${ch}<rt${rs}>${ruby}</rt></ruby>` : `<span class='sn_ch sn_ch_in_${__privateGet2(this, _$ch_in_style)}' style='animation-delay: ${__privateGet2(this, _cumDelay)}ms;${__privateGet2(this, _fncFFSStyle).call(this, ch)}'>
49348
- <ruby${da}>${ch}<rt${rs}>${ruby}</rt></ruby>
49349
- </span>` : __privateGet2(this, _aSpan_bk) ? __privateGet2(this, _fncFFSSpan).call(this, ch) : `<span class='sn_ch sn_ch_in_${__privateGet2(this, _$ch_in_style)}' style='animation-delay: ${__privateGet2(this, _cumDelay)}ms;${__privateGet2(this, _fncFFSStyle).call(this, ch)}'${da}>${ch}</span>`;
49269
+ const lnk = (_a3 = __privateGet2(this, _stkASpan).at(0)) == null ? void 0 : _a3.o[":link"];
49270
+ const curpos = `${lnk != null ? lnk : ""} data-add='{"ch_in_style":"${__privateGet2(this, _$ch_in_style)}", "ch_out_style":"${__privateGet2(this, _$ch_out_style)}"}'`;
49271
+ const add_htm = `<span class='sn_ch sn_ch_in_${__privateGet2(this, _$ch_in_style)}' style='${__privateMethod2(this, _style_delay, style_delay_fn).call(this, isSkip)}${__privateGet2(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>`;
49350
49272
  if (__privateGet2(this, _ch_in_join))
49351
- __privateSet2(this, _cumDelay, __privateGet2(this, _cumDelay) + (__privateGet2(_TxtLayer, _doAutoWc) ? (_a3 = __privateGet2(_TxtLayer, _hAutoWc)[ch.charAt(0)]) != null ? _a3 : 0 : LayerMng.msecChWait));
49273
+ __privateSet2(this, _cumDelay, __privateGet2(this, _cumDelay) + (__privateGet2(_TxtLayer, _doAutoWc) ? (_b3 = __privateGet2(_TxtLayer, _hAutoWc)[ch.charAt(0)]) != null ? _b3 : 0 : LayerMng.msecChWait));
49352
49274
  return add_htm;
49353
49275
  };
49276
+ _style_delay = new WeakSet();
49277
+ style_delay_fn = function(isSkip) {
49278
+ var _a3, _b3, _c3;
49279
+ if (isSkip)
49280
+ __privateSet2(this, _cumDelay, 0);
49281
+ return `animation-delay: ${__privateGet2(this, _cumDelay)}ms;${(_c3 = (_b3 = (_a3 = __privateGet2(this, _stkASpan).at(-1)) == null ? void 0 : _a3.o) == null ? void 0 : _b3.style) != null ? _c3 : ""}`;
49282
+ };
49354
49283
  _cumDelay = new WeakMap();
49355
49284
  _firstCh = new WeakMap();
49356
49285
  _aSpan = new WeakMap();
49357
- _aSpan_bk = new WeakMap();
49358
- _aSpan_link = new WeakMap();
49359
- _hSpanBk = new WeakMap();
49360
- _beginSpan = new WeakSet();
49361
- beginSpan_fn = function(o) {
49362
- __privateGet2(this, _hSpanBk).ch_in_style = __privateGet2(this, _$ch_in_style);
49363
- __privateMethod2(this, _set_ch_in, set_ch_in_fn).call(this, o);
49364
- __privateGet2(this, _hSpanBk).ch_out_style = __privateGet2(this, _$ch_out_style);
49365
- __privateMethod2(this, _set_ch_out, set_ch_out_fn).call(this, o);
49366
- __privateGet2(this, _hSpanBk).r_align = __privateGet2(this, _r_align);
49286
+ _stkASpan = new WeakMap();
49287
+ _pushSpan = new WeakSet();
49288
+ pushSpan_fn = function(o) {
49289
+ __privateGet2(this, _stkASpan).push({
49290
+ o,
49291
+ r_align: __privateGet2(this, _r_align),
49292
+ ch_in_style: __privateGet2(this, _$ch_in_style),
49293
+ ch_out_style: __privateGet2(this, _$ch_out_style)
49294
+ });
49367
49295
  if ("r_align" in o)
49368
49296
  __privateSet2(this, _r_align, o.r_align);
49297
+ __privateMethod2(this, _set_ch_in, set_ch_in_fn).call(this, o);
49298
+ __privateMethod2(this, _set_ch_out, set_ch_out_fn).call(this, o);
49369
49299
  };
49370
- _autoCloseSpan = new WeakSet();
49371
- autoCloseSpan_fn = function() {
49372
- if (!__privateGet2(this, _aSpan_bk))
49300
+ _popSpan = new WeakSet();
49301
+ popSpan_fn = function() {
49302
+ const stk = __privateGet2(this, _stkASpan).pop();
49303
+ if (!stk)
49373
49304
  return;
49374
- __privateGet2(this, _aSpan_bk).push(__privateGet2(this, _aSpan), "</span>");
49375
- __privateSet2(this, _aSpan, Array.prototype.concat.apply([], __privateGet2(this, _aSpan_bk)));
49376
- __privateSet2(this, _aSpan_bk, void 0);
49377
- __privateSet2(_TxtLayer, _rec, __privateGet2(_TxtLayer, _rec_bk));
49378
- __privateMethod2(this, _set_ch_in, set_ch_in_fn).call(this, { in_style: __privateGet2(this, _hSpanBk).ch_in_style });
49379
- __privateMethod2(this, _set_ch_out, set_ch_out_fn).call(this, { out_style: __privateGet2(this, _hSpanBk).ch_out_style });
49380
- __privateSet2(this, _r_align, __privateGet2(this, _hSpanBk).r_align);
49305
+ __privateSet2(this, _r_align, stk.r_align);
49306
+ __privateMethod2(this, _set_ch_in, set_ch_in_fn).call(this, { in_style: stk.ch_in_style });
49307
+ __privateMethod2(this, _set_ch_out, set_ch_out_fn).call(this, { out_style: stk.ch_out_style });
49381
49308
  };
49382
49309
  _page_text = new WeakMap();
49383
49310
  __privateAdd2(TxtLayer, _ch_in_style);
@@ -49393,8 +49320,6 @@ __privateAdd2(TxtLayer, _sys3, void 0);
49393
49320
  __privateAdd2(TxtLayer, _doAutoWc, false);
49394
49321
  __privateAdd2(TxtLayer, _hAutoWc, {});
49395
49322
  __privateAdd2(TxtLayer, _rec, (tx) => tx);
49396
- __privateAdd2(TxtLayer, _rec_bk, (tx) => tx);
49397
- __privateAdd2(TxtLayer, _class_offrec, " offrec");
49398
49323
  class FrameMng {
49399
49324
  constructor(cfg, hTag, appPixi, val, main2, sys, hTwInf) {
49400
49325
  __privateAdd2(this, _add_frame);
@@ -50687,6 +50612,7 @@ ch_fn = function(hArg) {
50687
50612
  hArg.wait = 0;
50688
50613
  else if ("wait" in hArg)
50689
50614
  argChk_Num(hArg, "wait", NaN);
50615
+ __privateGet2(this, _cmdTxt).call(this, "add\uFF5C" + JSON.stringify(hArg), tl);
50690
50616
  const record = argChk_Boolean(hArg, "record", true);
50691
50617
  const doRecLog = this.val.doRecLog();
50692
50618
  if (!record)
@@ -50694,6 +50620,7 @@ ch_fn = function(hArg) {
50694
50620
  tl.tagCh(text2.replaceAll("[r]", "\n"));
50695
50621
  if (!record)
50696
50622
  this.val.setVal_Nochk("save", "sn.doRecLog", doRecLog);
50623
+ __privateGet2(this, _cmdTxt).call(this, `add_close\uFF5C`, tl);
50697
50624
  return false;
50698
50625
  };
50699
50626
  _getTxtLayer = new WeakMap();
@@ -52514,6 +52441,7 @@ class EventMng {
52514
52441
  __privateSet2(this, _elmHint, document.querySelector(".sn_hint"));
52515
52442
  __privateSet2(this, _spanHint, __privateGet2(this, _elmHint).querySelector("span"));
52516
52443
  __privateSet2(this, _popper, createPopper(__privateGet2(this, _elmV), __privateGet2(this, _elmHint)));
52444
+ __privateGet2(this, _elmHint).hidden = true;
52517
52445
  appPixi.stage.interactive = true;
52518
52446
  if (CmnLib.isMobile)
52519
52447
  appPixi.stage.on("pointerdown", (e) => this.fire("click", e));