From e601f241e877140452edbd723e787667db5d2ea0 Mon Sep 17 00:00:00 2001 From: Mahiru Date: Sat, 2 Mar 2024 17:27:56 +0800 Subject: [PATCH] update engine and version --- package.json | 2 +- packages/origine2/package.json | 2 +- packages/origine2/src/config/info.ts | 2 +- .../Topbar/tabs/GameConfig/GameConfig.tsx | 10 +- .../WebGAL_Template/assets/index-89f179fe.css | 1 - .../{index-e4a5e140.js => index-9a56520c.js} | 464 +++++++++--------- .../WebGAL_Template/assets/index-d935d359.css | 1 + ...r-e4655b9f.js => initRegister-3e5c23e5.js} | 2 +- .../templates/WebGAL_Template/index.html | 4 +- packages/terre2/package.json | 2 +- packages/terre2/src/main.ts | 2 +- releasenote.md | 34 +- 12 files changed, 264 insertions(+), 262 deletions(-) delete mode 100644 packages/terre2/assets/templates/WebGAL_Template/assets/index-89f179fe.css rename packages/terre2/assets/templates/WebGAL_Template/assets/{index-e4a5e140.js => index-9a56520c.js} (53%) create mode 100644 packages/terre2/assets/templates/WebGAL_Template/assets/index-d935d359.css rename packages/terre2/assets/templates/WebGAL_Template/assets/{initRegister-e4655b9f.js => initRegister-3e5c23e5.js} (97%) diff --git a/package.json b/package.json index 7dff397fa..88f6ec8b8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "webgal-terre", - "version": "4.4.11", + "version": "4.4.12", "private": true, "scripts": { "dev": "concurrently \"yarn dev:terre\" \"yarn dev:origine\" \"yarn dev:start-dev-server\"", diff --git a/packages/origine2/package.json b/packages/origine2/package.json index bbde44928..7e816804c 100644 --- a/packages/origine2/package.json +++ b/packages/origine2/package.json @@ -1,7 +1,7 @@ { "name": "webgal-origine-2", "private": true, - "version": "4.4.11", + "version": "4.4.12", "license": "MPL-2.0", "scripts": { "dev": "vite --host", diff --git a/packages/origine2/src/config/info.ts b/packages/origine2/src/config/info.ts index 7aad81afb..4f62f7e56 100644 --- a/packages/origine2/src/config/info.ts +++ b/packages/origine2/src/config/info.ts @@ -4,6 +4,6 @@ export interface Info { } export const __INFO: Info = { - version: '4.4.11', + version: '4.4.12', buildTime: '2023-12-30T03:22:49.651Z', // 编译时会通过 version-sync.js 自动更新 }; diff --git a/packages/origine2/src/pages/editor/Topbar/tabs/GameConfig/GameConfig.tsx b/packages/origine2/src/pages/editor/Topbar/tabs/GameConfig/GameConfig.tsx index a34feea7f..b7d3a2782 100644 --- a/packages/origine2/src/pages/editor/Topbar/tabs/GameConfig/GameConfig.tsx +++ b/packages/origine2/src/pages/editor/Topbar/tabs/GameConfig/GameConfig.tsx @@ -105,11 +105,11 @@ export default function GameConfig() { updateGameConfigSimpleByKey('Package_name', e)}/> - - updateGameConfigSimpleByKey('Textbox_theme', e)} - selectItems={textboxThemes}/> - + {/* */} + {/* updateGameConfigSimpleByKey('Textbox_theme', e)} */} + {/* selectItems={textboxThemes}/> */} + {/* */} div{border-left:2px solid rgba(0,0,0,0)}._Save_Load_top_button_on_16zg1_78{font-weight:700;border-bottom:4px solid #77428D;color:#77428d;background-color:#77428d0d}._Save_Load_top_button_16zg1_48:hover{color:#77428d;font-weight:700;border-bottom:4px solid #77428D}._Load_top_button_on_16zg1_91{font-weight:700;border-bottom:5px solid #005CAF;color:#005caf;background-color:#005caf1a}._Load_top_button_16zg1_91:hover{color:#005caf;font-weight:700;border-bottom:5px solid #005CAF}._Save_Load_content_16zg1_104{height:90%;width:100%;display:flex;flex-wrap:wrap;justify-content:space-evenly;align-items:center}._Save_Load_content_element_16zg1_113{background:linear-gradient(-45deg,rgba(0,0,0,.05),rgba(0,0,0,.075));overflow:hidden;width:17.5%;height:45%;animation:_Elements_in_16zg1_1 1s ease-out forwards,_Elements_in_transform_16zg1_1 1s ease-out;opacity:0;border-radius:4px;transition:transform .25s,box-shadow .25s;cursor:pointer}._Save_Load_content_element_16zg1_113:hover{transform:scale(1.05) translate(-.2em,-.2em)}._Save_Load_content_element_top_16zg1_129{font-family:思源宋体,serif;width:100%;height:12%;display:flex}._Save_Load_content_element_top_index_16zg1_136{color:#fff;text-align:center;font-size:155%;height:100%;width:20%;background-color:#b28fce}._Load_content_elememt_top_index_16zg1_145{background-color:#51a8dd}._Save_Load_content_element_top_date_16zg1_149{padding:.425em 0 0 .5em;background-color:#77428d;color:#fff;font-size:115%;height:100%;width:80%;font-family:WebgalUI,serif;letter-spacing:.1em}._Load_content_element_top_date_16zg1_160{background-color:#005caf}._Save_Load_content_text_16zg1_164{font-family:WebgalUI,sans-serif;letter-spacing:.05em;color:#373c38;background:linear-gradient(-45deg,rgba(255,255,255,.75) 0%,rgb(255,255,255) 100%);font-size:120%;height:40%;width:100%;display:flex;flex-flow:column;justify-content:flex-start;align-items:flex-start}._Save_Load_content_text_padding_16zg1_178{padding:.2em .75em}._Save_Load_content_speaker_16zg1_182{box-sizing:border-box;font-weight:700;color:#77428d;padding:.35em .8em .25em;width:100%;border-bottom:1px solid rgba(0,0,0,.1)}._Load_content_speaker_16zg1_191{color:#005caf}._Load_content_text_16zg1_195{background-color:#005cafbf}._Save_Load_content_miniRen_16zg1_199{width:100%;height:48%;position:relative;background-size:cover}._Save_Load_content_miniRen_bg_16zg1_206{background-size:cover;height:100%;width:100%;background-position:center}._Save_Load_content_miniRen_figure_16zg1_213{height:100%;max-height:100%;max-width:100%;position:absolute;bottom:0}._Save_Load_content_miniRen_figLeft_16zg1_221{bottom:0;left:0}._Save_Load_content_miniRen_figRight_16zg1_226{bottom:0;right:0}@keyframes _Elements_in_16zg1_1{0%{opacity:0}to{opacity:1}}@keyframes _Elements_in_transform_16zg1_1{0%{transform:scale(1.05) translate(-25px,-20px) rotateY(15deg) rotateX(-15deg)}to{transform:scale(1) translate(0)}}._GlobalDialog_main_101j8_2{height:100%;width:100%;position:absolute;z-index:20;background:rgba(15,37,64,.39);color:#fff;opacity:.5;animation:_showGlobalDialog_101j8_1 .33s forwards;display:flex;justify-content:center;align-items:center;font-family:思源宋体,serif}._glabalDialog_container_inner_101j8_17{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-flow:column;background:linear-gradient(to right,rgba(0,92,175,0) 0%,rgba(0,92,175,.5) 33%,rgba(0,92,175,.85) 50%,rgba(0,92,175,.5) 66%,rgba(0,92,175,0) 100%);padding:1em 5em 1.5em}._glabalDialog_container_101j8_17{height:20%;width:100%;border-top:4px solid;border-bottom:4px solid;border-image:linear-gradient(to right,rgba(255,255,255,.05) 0%,rgba(255,255,255,.85) 33%,rgb(255,255,255) 50%,rgba(255,255,255,.85) 66%,rgba(255,255,255,.05) 100%) 1}._title_101j8_36{font-size:300%;text-shadow:0 0 10px rgba(255,255,255,.5)}._button_list_101j8_41{display:flex;margin:auto 0 0}._button_101j8_41{font-size:200%;padding:.15em 1em;margin:.2em 1em;cursor:pointer;transition:background-color .33s,color .33s,font-weight .33s,transform .33s;text-shadow:0 0 10px rgb(255,255,255);border-radius:5px}._button_101j8_41:hover{font-weight:700;color:#005caf;transform:scale(1.1);text-shadow:0 0 15px rgba(0,0,0,0);background:rgba(255,255,255,.85)}@keyframes _showGlobalDialog_101j8_1{0%{opacity:0}to{opacity:1}}._Options_main_kotpu_2{position:absolute;cursor:default;height:90%;width:100%;background:rgba(255,255,255,.65)}._Options_top_kotpu_10{height:15%;width:100%;display:flex;align-items:flex-start}._Options_title_kotpu_17{font-family:思源宋体,serif;letter-spacing:.1em;font-size:225%;margin:.5em 0;padding:.2em 2em .2em 1.1em;box-sizing:border-box}._Option_title_text_kotpu_26{font-size:165%;font-weight:700;color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;animation:_Elements_in_kotpu_1 ease-out .7s forwards}._Option_title_text_shadow_kotpu_35{position:absolute;color:#0000;-webkit-text-stroke:3px rgb(0,0,0);z-index:-1}._Option_title_text_ts_kotpu_42{position:absolute;color:#0000;text-shadow:.04em .04em rgba(81,110,65,.9),.05em .05em rgba(81,110,65,.9),.06em .06em rgba(81,110,65,.9),.07em .07em rgba(81,110,65,.9);z-index:-1}._Options_main_content_kotpu_49{display:flex;flex:1;padding:0 0 0 3em;overflow:auto}._Options_main_content_half_kotpu_56{width:95%;display:flex;flex-flow:row;align-items:flex-start;align-content:flex-start;flex-wrap:wrap;padding:0 1em}._About_title_text_kotpu_66{margin:.2em 1em;padding:.2em;width:100%;animation:_Elements_in_kotpu_1 ease-out .7s forwards;cursor:pointer}._About_text_kotpu_74{font-weight:700;color:transparent;background:linear-gradient(to left,rgba(34,125,81,.65),rgba(81,110,65,.65));-webkit-background-clip:text;font-size:135%;text-decoration:underline}@keyframes _Elements_in_kotpu_1{0%{opacity:0;transform:scale(1.03) translate(-25px,-20px)}to{opacity:1;transform:scale(1) translate(0)}}._Options_page_container_kotpu_93{height:85%;display:flex;padding:1em 3.75em}._Options_button_list_kotpu_99{animation:_Elements_in_kotpu_1 ease-out .7s forwards}._Options_page_button_kotpu_103{font-family:思源宋体,serif;font-size:300%;font-weight:700;color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));opacity:.35;-webkit-background-clip:text;transition:color .33s,background-image .33s,opacity .33s;cursor:pointer}._Options_page_button_active_kotpu_115{background-image:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;opacity:1}._Options_page_button_kotpu_103:hover{opacity:1}._NormalOption_ogzuv_1{margin:.2em 1em;padding:.2em;display:flex;flex-flow:column;align-items:flex-start;animation:_Elements_in_ogzuv_1 ease-out .7s forwards}._NormalOption_title_ogzuv_10{color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;font-size:200%;padding:.15em .5em .15em .1em;font-weight:700}._NormalOption_title_bef_ogzuv_19{font-weight:700;font-size:200%;content:attr(data-text);position:absolute;-webkit-text-stroke:3px rgb(0,0,0);z-index:-1;padding:.15em .5em .15em .1em}._NormalOption_title_sd_ogzuv_29{font-weight:700;color:#0000;font-size:200%;position:absolute;z-index:-1;padding:.15em .5em .15em .1em;text-shadow:.04em .04em rgba(81,110,65,.9),.05em .05em rgba(81,110,65,.9),.06em .06em rgba(81,110,65,.9),.07em .07em rgba(81,110,65,.9),.08em .08em rgba(81,110,65,.9),.09em .09em rgba(81,110,65,.9),.1em .1em rgba(81,110,65,.9)}._NormalOption_buttonList_ogzuv_39{padding:.5em 0;display:flex}@keyframes _Elements_in_ogzuv_1{0%{opacity:0;transform:scale(1.03) translate(-25px,-20px)}to{opacity:1;transform:scale(1) translate(0)}}._NormalButton_1qk3b_1{font-size:150%;box-sizing:border-box;padding:.2em 1em;background-color:#3232320d;margin:0 .4em 0 0;color:#a0aaa0;cursor:pointer;border-bottom:2px solid transparent}._NormalButton_1qk3b_1:hover{border-bottom:2px solid rgba(81,110,65,.9);color:#516e41e6;font-weight:700}._NormalButtonChecked_1qk3b_18{background-color:#516e4126;border-bottom:2px solid rgba(81,110,65,.9);color:#516e41e6;font-weight:700}._backButton_qbk37_1{display:flex;justify-content:center;align-items:center;width:50px;height:50px;background:rgba(0,0,0,.1);border-radius:4px;cursor:pointer}._backButton_qbk37_1:hover{background:rgba(0,0,0,.2)}._about_qbk37_16{padding:10px 0 0}._icon_qbk37_20{display:inline-flex}._title_qbk37_24{color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;font-size:200%;padding:.15em .5em .15em .1em;font-weight:700;margin-top:20px}._text_qbk37_34{color:#516e41;padding:0 0 0 10px;font-size:135%}._text_qbk37_34 a{color:#516e41}._contributor_qbk37_43{padding:0 10px 0 0}._textPreviewMain_nolr3_1{z-index:1;padding:1em;min-height:480px;width:100%}._textbox_nolr3_8{width:100%;height:100%;position:relative}._TextBox_EventHandler_1fi2w_1{position:absolute;width:100%;height:100%;z-index:6;top:0}._TextBox_main_1fi2w_9{position:absolute;z-index:6;right:0;bottom:0;left:0;min-height:430px;max-height:430px;font-weight:700;padding:30px 50px 100px 200px;box-sizing:border-box;display:flex;flex-flow:column;align-items:flex-start;animation:_showSoftly_1fi2w_1 .7s ease-out forwards;letter-spacing:.2em;transition:left .33s,padding-left .33s}._TextBox_showName_1fi2w_28{font-size:85%;min-width:25%;height:70px;transition:left .33s;border-bottom:3px solid rgba(255,255,255,.8)}@keyframes _showSoftly_1fi2w_1{0%{opacity:0}to{opacity:1}}._TextBox_textElement_start_1fi2w_44{position:relative;animation:_TextDelayShow_1fi2w_1 1s ease-out forwards;opacity:0}._outer_1fi2w_50{position:absolute;white-space:nowrap;left:0;top:0;background-image:linear-gradient(#ffffff 0%,#f5f7fa 45%,#c3cfe2 100%);background-clip:text;-webkit-background-clip:text;color:transparent;z-index:2}._inner_1fi2w_62{white-space:nowrap;position:absolute;left:0;top:0;-webkit-text-stroke:.085em rgba(0,0,0,.35);z-index:1}._zhanwei_1fi2w_71{color:transparent;white-space:nowrap}._TextBox_textElement_Settled_1fi2w_76{position:relative;opacity:1}@keyframes _TextDelayShow_1fi2w_1{0%{opacity:0}to{opacity:1}}._miniAvatarContainer_1fi2w_89{position:absolute;height:450px;width:450px;bottom:0;left:0;overflow:hidden}._miniAvatarImg_1fi2w_98{max-height:100%;max-width:100%;position:absolute;bottom:0;filter:drop-shadow(15px 0 3px rgba(0,0,0,.5))}._nameContainer_1fi2w_106{position:absolute;left:2em;top:-3.5em}._outerName_1fi2w_112{position:absolute;left:0;top:0;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 35%,rgb(165,212,228) 100%);background-clip:text;-webkit-background-clip:text;color:transparent;z-index:2}._innerName_1fi2w_123{position:absolute;left:0;top:0;z-index:1}._text_1fi2w_130{line-height:1.9em;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}._TextBox_EventHandler_ujldp_1{position:absolute;width:100%;height:100%;z-index:6;top:0}._TextBox_main_ujldp_9{position:absolute;z-index:6;right:25px;min-height:330px;max-height:330px;background-blend-mode:darken;border-radius:165px 20px 20px 165px;bottom:20px;left:275px;font-weight:700;color:#fff;padding:1em 50px 70px 200px;box-sizing:border-box;display:flex;flex-flow:column;align-items:flex-start;animation:_showSoftly_ujldp_1 .7s ease-out forwards;letter-spacing:.2em;transition:left .33s}@keyframes _showSoftly_ujldp_1{0%{opacity:0}to{opacity:1}}._TextBox_textElement_start_ujldp_39{position:relative;animation:_TextDelayShow_ujldp_1 1s ease-out forwards;opacity:0}._outer_ujldp_45{position:absolute;white-space:nowrap;left:0;top:0;background-image:linear-gradient(#0B346E 0%,#141423 100%);background-clip:text;-webkit-background-clip:text;color:transparent;z-index:2}._inner_ujldp_57{white-space:nowrap;position:absolute;left:0;top:0;-webkit-text-stroke:.1em rgb(255,255,255);z-index:1}._zhanwei_ujldp_66{color:transparent;white-space:nowrap}._TextBox_textElement_Settled_ujldp_71{position:relative;opacity:1}._TextBox_showName_ujldp_76{font-size:85%;padding:0 2em;position:absolute;left:150px;top:-68px;height:80px;line-height:68px;border-radius:40px}@keyframes _TextDelayShow_ujldp_1{0%{opacity:0}to{opacity:1}}._miniAvatarContainer_ujldp_95{position:absolute;height:450px;width:450px;bottom:0;left:-250px;border-radius:100% 0 0 100%;overflow:hidden}._miniAvatarImg_ujldp_105{max-height:100%;max-width:100%;position:absolute;bottom:0;filter:drop-shadow(15px 0 3px rgba(0,0,0,.5))}._nameContainer_ujldp_113{position:absolute;left:2em;top:-3.5em}._outerName_ujldp_119{position:absolute;left:0;top:0;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 35%,rgb(165,212,228) 100%);background-clip:text;-webkit-background-clip:text;color:transparent;z-index:2}._innerName_ujldp_130{position:absolute;left:0;top:0;z-index:1}._text_ujldp_137{line-height:1.9em;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}input[type=range]{-webkit-appearance:none;width:500px;height:50px;background:transparent;font-size:100%}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none}input[type=range]:focus{outline:none}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;height:375%;width:7.2%;border-radius:5em;background:#ffffff;cursor:pointer;margin-top:-14px;box-shadow:0 0 5px #00000080}input[type=range]::-webkit-slider-runnable-track{width:100%;height:20%;cursor:pointer;box-shadow:1px 1px 7px #0000004d;background:rgba(81,110,65,.9);border-radius:2em}input[type=range]:focus::-webkit-slider-runnable-track{background:rgba(81,110,65,.9)}input[type=range]::-moz-range-thumb{height:36px;width:7.2%;border-radius:5em;background:#ffffff;cursor:pointer;box-shadow:0 0 5px #00000080}input[type=range]::-moz-range-track{width:100%;height:20%;cursor:pointer;box-shadow:1px 1px 7px #0000004d;background:rgba(81,110,65,.9);border-radius:2em}._MainStage_main_9enex_1{width:100%;height:100%;position:absolute;z-index:1;opacity:1;overflow:hidden}._MainStage_main_container_9enex_10{width:100%;height:100%;position:absolute;overflow:hidden}._MainStage_bgContainer_9enex_17{top:0;position:absolute;background-size:cover;width:100%;height:100%;z-index:1;animation:_MainStage_showBgSoftly_9enex_1 1s forwards ease-in-out}._MainStage_bgContainer_Settled_9enex_27{top:0;position:absolute;background-size:cover;width:100%;height:100%;animation:_MainStage_showBgSoftly_9enex_1 1ms forwards;z-index:1}._MainStage_oldBgContainer_9enex_37{background-size:cover;top:0;position:absolute;width:100%;height:100%;z-index:0;animation:_MainStage_oldBgFadeout_9enex_1 3s forwards}._MainStage_oldBgContainer_Settled_9enex_47{background-size:cover;top:0;position:absolute;width:100%;height:100%;opacity:0}@keyframes _MainStage_showBgSoftly_9enex_1{0%{opacity:.15}to{opacity:1}}@keyframes _MainStage_oldBgFadeout_9enex_1{0%{opacity:1}to{opacity:0}}._pixiContainer_9enex_72{position:absolute;z-index:5}._chooseContainer_9enex_77{z-index:8}._TextBox_EventHandler_449dq_2{position:absolute;width:100%;height:100%;z-index:6;top:0}._TextBox_main_449dq_10{font-family:思源宋体,serif;font-style:italic;position:absolute;z-index:6;width:100%;height:12%;background-color:#000;bottom:0;color:#fff;box-sizing:border-box;overflow:hidden;display:flex;flex-flow:column;align-items:center;animation:_showSoftly_449dq_1 .7s ease-out forwards;letter-spacing:.2em;justify-content:center}@keyframes _showSoftly_449dq_1{0%{opacity:0}to{opacity:1}}._TextBox_textElement_449dq_38{opacity:0;animation:_showSoftly_449dq_1 1s forwards}._TextBox_textElement_start_449dq_43{animation:_TextDelayShow_449dq_1 .7s ease-out forwards;opacity:0}._TextBox_textElement_Settled_449dq_48{opacity:1}._TextBox_showName_449dq_52{font-size:85%;border-bottom:2px solid rgba(255,255,255,.3);min-width:50%;padding:0 .2em .2em .3em;margin:0 0 .2em}@keyframes _TextDelayShow_449dq_1{0%{opacity:0}to{opacity:1}}._miniAvatarContainer_449dq_68{position:absolute;height:80%;width:17%;bottom:0;left:.5em}._miniAvatarImg_449dq_76{max-height:100%;max-width:100%;position:absolute;bottom:0}._Backlog_main_zwyao_2{font-family:思源宋体,serif;position:absolute;top:0;width:100%;height:100%;z-index:10;background:rgba(0,0,0,.7);padding:2em 0;animation:_backlog_soft_in_zwyao_1 .7s ease-out forwards;box-sizing:border-box}._Backlog_main_out_zwyao_15{font-family:思源宋体,serif;position:absolute;top:0;width:100%;height:100%;z-index:10;background:rgba(0,0,0,.7);padding:2em 0;animation:_backlog_soft_out_zwyao_1 .7s ease-out forwards;box-sizing:border-box}._Backlog_main_out_IndexHide_zwyao_28{z-index:-10}._Backlog_main_DisableScroll_zwyao_32{overflow:hidden!important}._backlog_top_zwyao_36{padding:0 0 0 1em;display:flex;height:10%}._backlog_top_icon_zwyao_42{padding:.6em .6em 0;border-radius:1000px;transform:translateY(-13px);cursor:pointer}._backlog_top_icon_zwyao_42:hover{background:rgba(255,255,255,.25);animation:_backlog_icon_softin_zwyao_1 .25s ease-out forwards}@keyframes _backlog_icon_softin_zwyao_1{0%{background:rgba(255,255,255,0)}to{background:rgba(255,255,255,.25)}}._backlog_title_zwyao_62{height:100%;line-height:100%;font-size:360%;font-weight:700;color:transparent;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 35%,rgb(165,212,228) 100%);-webkit-background-clip:text}._backlog_content_zwyao_72{position:absolute;height:80%;padding:1em 10em;overflow:auto;display:flex;flex-flow:column-reverse;font-weight:400;width:100%;box-sizing:border-box}._backlog_item_zwyao_84{display:flex;color:#fff;font-size:165%;opacity:0;animation:_backlog_item_in_zwyao_1 .5s ease-out forwards;margin:1.25em 0 0;width:100%}._backlog_item_out_zwyao_94{display:flex;color:#fff;font-size:165%;opacity:0;animation:_backlog_item_out_zwyao_94 .5s ease-out forwards;margin:1.25em 0 0;width:100%}._backlog_func_area_zwyao_104{display:flex;flex-flow:row;align-items:flex-start;width:30%;max-width:30%;min-width:30%}._backlog_item_content_name_zwyao_113{font-weight:700;color:transparent;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 35%,rgb(165,212,228) 100%);-webkit-background-clip:text;margin:0 0 0 auto;overflow-wrap:break-word;box-sizing:border-box;border-radius:7px;padding:.2em .5em;font-size:115%;width:50%;text-align:left;letter-spacing:.1em}._backlog_item_content_zwyao_113{font-size:115%;width:82.5%;box-sizing:border-box;padding:.2em 0 0 1em;letter-spacing:.05em}._backlog_item_button_list_zwyao_137{display:flex;flex-flow:row;align-items:flex-start;margin:.35em 0 0}._backlog_item_button_element_zwyao_144{cursor:pointer;padding:.01em .75em 0;margin:0 0 0 .5em;background:rgba(255,255,255,.075);border-radius:7px;display:flex}._backlog_item_button_element_zwyao_144:hover{background:rgba(255,255,255,.25)}._backlog_item_content_text_zwyao_157{box-sizing:border-box}@keyframes _backlog_soft_in_zwyao_1{0%{opacity:0}to{opacity:1}}@keyframes _backlog_soft_out_zwyao_1{0%{opacity:1}to{opacity:0}}@keyframes _backlog_item_in_zwyao_1{0%{opacity:0;transform:scale(1.05) translate(-15px,10px) rotateX(-5deg) rotateY(-5deg)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes _backlog_item_out_zwyao_94{0%{opacity:1;transform:scale(1) translate(0)}to{opacity:0;transform:scale(1.05) translate(-15px,10px) rotateX(-5deg) rotateY(-5deg);background-color:#fff3}}._introContainer_119k8_1{box-sizing:border-box;position:absolute;z-index:11;width:100%;height:100%;color:#fff;display:none}._extra_uvcgw_2{width:100%;height:100%;position:absolute;top:0;left:0;z-index:14;background-image:linear-gradient(135deg,#93a5cf 0%,#e4efe9 100%);padding:2em;box-sizing:border-box}._extra_top_uvcgw_14{padding:0;display:flex;height:10%}._extra_top_icon_uvcgw_20{padding:.6em .6em 0;border-radius:1000px;transform:translateY(-13px);cursor:pointer}._extra_top_icon_uvcgw_20:hover{background:rgba(255,255,255,.25);animation:_extra_icon_softin_uvcgw_1 .25s ease-out forwards}@keyframes _extra_icon_softin_uvcgw_1{0%{background:rgba(255,255,255,0)}to{background:rgba(0,0,0,.25)}}._extra_title_uvcgw_40{font-family:思源宋体,serif;height:100%;line-height:100%;font-size:325%;font-weight:700;color:transparent;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 75%,#51A8DD 100%);-webkit-background-clip:text}._mainContainer_uvcgw_51{box-sizing:border-box;padding:0 2em;display:flex;height:92%;flex-flow:column}._bgmContainer_uvcgw_59{left:50px;right:50px;bottom:30px;position:absolute;overflow:auto;box-sizing:border-box;display:flex;flex-flow:column-reverse;align-content:center;background-image:linear-gradient(315deg,rgba(163,189,237,.95) 0%,rgba(105,145,199,.95) 100%);padding:1em 2em;border-radius:4px;transition:max-height .5s;z-index:2}._bgmListContainer_uvcgw_76{z-index:2;bottom:0;width:100%;box-sizing:border-box;display:flex;flex:1;flex-flow:row;justify-content:flex-start;align-items:flex-start;margin:0 0 15px;flex-wrap:wrap;overflow:auto}._bgmPlayerMain_uvcgw_91{display:flex}._bgmControlButton_uvcgw_95{padding:.6em 1.2em .2em;margin:0 5px;box-sizing:border-box;border-radius:4px;border:1px solid rgba(255,255,255,.5);cursor:pointer;transition:background-color .33s,color .33s;flex-shrink:0}._bgmControlButton_uvcgw_95:hover{box-shadow:0 0 10px 5px #ffffff59}._bgmName_uvcgw_110{color:#fffc;font-family:思源宋体,serif;font-size:155%;margin:5px 5px 0 15px;overflow:hidden}._bgmElement_uvcgw_118{font-family:思源宋体,serif;padding:.5em 1em;overflow:hidden;background-color:#0000001a;border-radius:5px;color:#fff;font-size:125%;margin:.5em 1em .5em .5em;transition:background-color 1s,color 1s;opacity:1;cursor:pointer;width:28%;flex-shrink:0}@keyframes _bgmElement_In_uvcgw_1{0%{opacity:.95}to{opacity:1}}._bgmElement_uvcgw_118:hover{background-color:#ffffffa6;color:#666;transition:background-color .5s,color .5s}._bgmElement_active_uvcgw_148{background-color:#ffffffd9!important;color:#666}._cgMain_uvcgw_153{width:100%;height:88%}._cgContainer_uvcgw_158{width:100%;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;align-content:flex-start;height:90%;box-sizing:border-box;padding:4em 0 0 2em}._cgElement_uvcgw_170{width:22.5%;height:37.5%;background-color:#ffffffbf;box-shadow:0 0 15px 5px #00000059;box-sizing:border-box;padding:.75em;opacity:0;margin:1em;animation-delay:.1s;z-index:1;position:relative;cursor:pointer}._cgShowDiv_uvcgw_185{height:8%;width:100%;display:flex;flex-flow:row;justify-content:center;align-items:flex-end}._cgShowDivWarpper_uvcgw_194{display:flex;flex-flow:row;justify-content:center;align-items:flex-end;background:rgba(0,0,0,.1);border-radius:4px}._cgNav_uvcgw_203{font-size:170%;color:#fff;padding:.25em 1em;margin:0 .25em;text-align:center;transition:background-color 1s,color 1s;cursor:pointer;border-radius:7px}._cgNav_uvcgw_203:first-child{margin-left:0}._cgNav_uvcgw_203:last-child{margin-right:0}._cgNav_active_uvcgw_222{background-color:#ffffffd9!important;color:#666}._cgNav_uvcgw_203:hover{background-color:#ffffffa6;color:#666;transition:background-color .5s,color .5s}._showFullContainer_uvcgw_233{z-index:13;position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.1);display:flex;justify-content:center;align-items:center}._showFullCgMain_uvcgw_246{cursor:pointer;width:80%;height:80%;box-sizing:border-box;padding:2em;background:rgba(255,255,255,.95);animation:_fullCgIn_uvcgw_1 .5s ease-out forwards;opacity:0}@keyframes _fullCgIn_uvcgw_1{0%{opacity:0;transform:scale(1.05) translate(-25px,-50px) rotateX(-10deg) rotateY(10deg)}to{opacity:1;transform:scale(1) translateZ(0)}}@keyframes cg_softIn_-5{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-5deg)}}@keyframes cg_softIn_-4{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-4deg)}}@keyframes cg_softIn_-3{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-3deg)}}@keyframes cg_softIn_-2{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-2deg)}}@keyframes cg_softIn_-1{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-1deg)}}@keyframes cg_softIn_0{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(0)}}@keyframes cg_softIn_1{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(1deg)}}@keyframes cg_softIn_2{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(2deg)}}@keyframes cg_softIn_3{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(3deg)}}@keyframes cg_softIn_4{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(4deg)}}@keyframes cg_softIn_5{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(5deg)}}._tag_yghix_2{position:absolute;top:2.5%;left:2.5%;color:#fff;z-index:10;padding:10px 10px 5px;border-radius:100px;transition:background-color .33s}._tag_yghix_2:hover{background-color:#ffffff80}._container_yghix_17{color:#fff;position:absolute;top:0;width:100%;height:100%;display:flex;flex-flow:column;background-color:#000000b3;z-index:9;padding:7em 5em 5em 10em;opacity:0;animation:_showContainer_yghix_1 1s forwards;transition:background-color .33s}._singleButton_yghix_33{padding:.5em 0}._button_text_yghix_37{font-family:思源宋体,serif;font-size:250%;letter-spacing:.07em;transition:text-shadow .33s}._button_text_yghix_37:hover{text-shadow:0 0 15px rgb(255,255,255)}@keyframes _showContainer_yghix_1{0%{opacity:0}to{opacity:1}}._devPanelMain_11x6i_1{font-size:150%;position:absolute;right:0;top:0;bottom:0;width:35%;background:rgba(255,255,255,.75);z-index:99;overflow:auto}._devPanelOpener_11x6i_13{position:absolute;right:5px;top:5px;background:rgba(255,255,255,.75);z-index:100;padding:3px 7px;border-radius:4px;cursor:pointer}._trans_8uz61_2{height:100%;width:100%;background-image:linear-gradient(225deg,#a3bded 0%,#6991c7 100%);position:absolute;z-index:20}._langWrapper_8uz61_10{display:flex;justify-content:center;align-items:center;width:100%;height:100%;flex-flow:column}._lang_8uz61_10{width:100%;text-align:center;font-family:思源宋体,serif;color:transparent;font-size:300%;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 75%,#51A8DD 100%);-webkit-background-clip:text}._langSelect_8uz61_29{display:flex;gap:50px;padding:50px}._langSelectButton_8uz61_35{font-family:思源宋体,serif;cursor:pointer;font-size:200%;color:#fff;border-radius:4px;border:1px solid rgba(255,255,255,.8);padding:10px 50px;transition:color .33s,background-color .33s}._langSelectButton_8uz61_35:hover{background:white;color:#93a5cf}._panic_overlay_main_1ysz4_1{margin:0;position:fixed;width:100%;height:100%;background-color:#fff;z-index:256}._yoozle_blue_1r48o_1{color:#4285f4}._yoozle_red_1r48o_5{color:#db4437}._yoozle_yellow_1r48o_9{color:#f4b400}._yoozle_green_1r48o_13{color:#0f9d58}._yoozle_e_rotate_1r48o_17{display:inline-block;transform:rotate(-12deg)}._yoozle_container_1r48o_22{display:flex;flex-direction:column;height:100%}._yoozle_title_1r48o_28{display:flex;flex-direction:column;align-items:center;padding-top:80px;font-family:arial,sans-serif;font-size:90px}._yoozle_search_1r48o_37{display:flex;flex-direction:column;align-items:center;padding:20px 10px}._yoozle_search_bar_1r48o_44{width:40%;line-height:32px;font-family:arial,sans-serif;font-size:18px}._yoozle_search_buttons_1r48o_51{padding-top:13px}._yoozle_button_1r48o_55{background-color:#f8f9fa;border:1px solid #f8f9fa;border-radius:4px;color:#3c4043;font-family:arial,sans-serif;font-size:14px;margin:11px 4px;padding:0 16px;line-height:27px;height:36px;min-width:54px;text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none}._yoozle_button_1r48o_55:hover{box-shadow:0 1px 1px #0000001a;border:1px solid #dadce0;color:#202124}._yoozle_button_1r48o_55:focus{border:1px solid #4285f4;outline:none}@keyframes centerIn{0%{opacity:0;transform:scale(1)}to{opacity:1;transform:scale(1)}}@keyframes upIn{0%{opacity:0;transform:scale(1) translateY(3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes leftIn{0%{opacity:0;transform:scale(1) translate(-3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes rightIn{0%{opacity:0;transform:scale(1) translate(3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes bg_down{0%{opacity:0;transform:scale(1.1) translateY(-3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes bg_softIn{0%{opacity:0}to{opacity:1}}@keyframes hideBG{0%{opacity:1}to{opacity:0}}@keyframes shake{0%{transform:translate(0)}25%{transform:translate(-2%)}75%{transform:translate(2%)}to{transform:translate(0)}}@keyframes moveBaF{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}@keyframes showSoftly{0%{opacity:0}to{opacity:1}}@keyframes elementFadeIn{0%{transform:translate(-15px,-20px) scale(1.03);opacity:0}to{opacity:1}}@keyframes controlButtonHover{0%{background-color:#0000;box-shadow:none}to{background-color:#ffffff40;box-shadow:5px 5px 15px #000000a6}}@keyframes controlButtonHoverBack{}@keyframes TitleButtonOnChoose{0%{transform:scale(1)}to{transform:scale(1.1)}}@keyframes TitleButtonNoneChoose{0%{transform:scale(1.1)}}@keyframes TitleModelHover{0%{background-color:#00000059}to{background-color:#000000a6}}@keyframes TitleModelNoneHover{0%{background-color:#000000a6}to{background-color:#00000059}}@keyframes bg_focusLeft{0%{transform:scale(1) translate(0);filter:blur(0)}to{transform:scale(1.15) translate(5%);filter:blur(1px)}}@keyframes bg_focusRight{0%{transform:scale(1) translate(0);filter:blur(0)}to{transform:scale(1.15) translate(-5%);filter:blur(1px)}}@keyframes bg_LtoR{0%{transform:scale(1.15) translate(5%);filter:blur(1px)}to{transform:scale(1.15) translate(-5%);filter:blur(1px)}}@keyframes bg_RtoL{0%{transform:scale(1.15) translate(-5%);filter:blur(1px)}to{transform:scale(1.15) translate(5%);filter:blur(1px)}}@keyframes bg_LtoC{0%{transform:scale(1.15) translate(5%);filter:blur(1px)}to{transform:scale(1) translate(0);filter:blur(0)}}@keyframes bg_RtoC{0%{transform:scale(1.15) translate(-5%);filter:blur(1px)}to{transform:scale(1) translate(0);filter:blur(0)}}@keyframes bg_focus{0%{transform:scale(1) translate(0);filter:blur(0)}to{transform:scale(1.15);filter:blur(1px)}}@keyframes bg_LtoF{0%{transform:scale(1.15) translate(5%);filter:blur(1px)}to{transform:scale(1.15);filter:blur(1px)}}@keyframes bg_RtoF{0%{transform:scale(1.15) translate(-5%);filter:blur(1px)}to{transform:scale(1.15);filter:blur(1px)}}@keyframes bg_FtoL{0%{transform:scale(1.15);filter:blur(1px)}to{transform:scale(1.15) translate(5%);filter:blur(1px)}}@keyframes bg_FtoR{0%{transform:scale(1.15);filter:blur(1px)}to{transform:scale(1.15) translate(-5%);filter:blur(1px)}}@keyframes bg_FtoC{0%{transform:scale(1.15);filter:blur(1px)}to{transform:scale(1) translate(0);filter:blur(0)}}*,*:before,*:after{box-sizing:border-box}body,h1,h2,h3,h4,p,figure,blockquote,dl,dd{margin:0}ul[role=list],ol[role=list]{list-style:none}html:focus-within{scroll-behavior:smooth}body{min-height:100vh;text-rendering:optimizeSpeed;line-height:1.5}a:not([class]){text-decoration-skip-ink:auto}img,picture{max-width:100%;display:block}input,button,textarea,select{font:inherit}@media (prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}} diff --git a/packages/terre2/assets/templates/WebGAL_Template/assets/index-e4a5e140.js b/packages/terre2/assets/templates/WebGAL_Template/assets/index-9a56520c.js similarity index 53% rename from packages/terre2/assets/templates/WebGAL_Template/assets/index-e4a5e140.js rename to packages/terre2/assets/templates/WebGAL_Template/assets/index-9a56520c.js index 410490a89..dd0fba765 100644 --- a/packages/terre2/assets/templates/WebGAL_Template/assets/index-e4a5e140.js +++ b/packages/terre2/assets/templates/WebGAL_Template/assets/index-9a56520c.js @@ -1,54 +1,54 @@ -var UN=Object.defineProperty;var GN=(e,t,r)=>t in e?UN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var le=(e,t,r)=>(GN(e,typeof t!="symbol"?t+"":t,r),r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var Wr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Or(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zN(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var yC={exports:{}},yl={};/* +var GL=Object.defineProperty;var zL=(e,t,r)=>t in e?GL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var se=(e,t,r)=>(zL(e,typeof t!="symbol"?t+"":t,r),r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var Jr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function HL(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var sO={exports:{}},Bl={};/* object-assign (c) Sindre Sorhus @license MIT -*/var Ab=Object.getOwnPropertySymbols,HN=Object.prototype.hasOwnProperty,VN=Object.prototype.propertyIsEnumerable;function WN(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function qN(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Qy=qN()?Object.assign:function(e,t){for(var r,n=WN(e),i,o=1;o"u"||typeof MessageChannel!="function"){var u=null,l=null,c=function(){if(u!==null)try{var L=e.unstable_now();u(!0,L),u=null}catch(V){throw setTimeout(c,0),V}};t=function(L){u!==null?setTimeout(t,0,L):(u=L,setTimeout(c,0))},r=function(L,V){l=setTimeout(L,V)},n=function(){clearTimeout(l)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,h=window.clearTimeout;if(typeof console<"u"){var d=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof d!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,g=null,p=-1,m=5,y=0;e.unstable_shouldYield=function(){return e.unstable_now()>=y},i=function(){},e.unstable_forceFrameRate=function(L){0>L||125>>1,ye=L[ae];if(ye!==void 0&&0k(we,ee))Ue!==void 0&&0>k(Ue,we)?(L[ae]=Ue,L[Be]=ee,ae=Be):(L[ae]=we,L[be]=ee,ae=be);else if(Ue!==void 0&&0>k(Ue,ee))L[ae]=Ue,L[Be]=ee,ae=Be;else break e}}return V}return null}function k(L,V){var ee=L.sortIndex-V.sortIndex;return ee!==0?ee:L.id-V.id}var A=[],P=[],F=1,D=null,H=3,re=!1,z=!1,q=!1;function ue(L){for(var V=w(P);V!==null;){if(V.callback===null)T(P);else if(V.startTime<=L)T(P),V.sortIndex=V.expirationTime,b(A,V);else break;V=w(P)}}function De(L){if(q=!1,ue(L),!z)if(w(A)!==null)z=!0,t(ge);else{var V=w(P);V!==null&&r(De,V.startTime-L)}}function ge(L,V){z=!1,q&&(q=!1,n()),re=!0;var ee=H;try{for(ue(V),D=w(A);D!==null&&(!(D.expirationTime>V)||L&&!e.unstable_shouldYield());){var ae=D.callback;if(typeof ae=="function"){D.callback=null,H=D.priorityLevel;var ye=ae(D.expirationTime<=V);V=e.unstable_now(),typeof ye=="function"?D.callback=ye:D===w(A)&&T(A),ue(V)}else T(A);D=w(A)}if(D!==null)var be=!0;else{var we=w(P);we!==null&&r(De,we.startTime-V),be=!1}return be}finally{D=null,H=ee,re=!1}}var Q=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_continueExecution=function(){z||re||(z=!0,t(ge))},e.unstable_getCurrentPriorityLevel=function(){return H},e.unstable_getFirstCallbackNode=function(){return w(A)},e.unstable_next=function(L){switch(H){case 1:case 2:case 3:var V=3;break;default:V=H}var ee=H;H=V;try{return L()}finally{H=ee}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=Q,e.unstable_runWithPriority=function(L,V){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var ee=H;H=L;try{return V()}finally{H=ee}},e.unstable_scheduleCallback=function(L,V,ee){var ae=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0ae?(L.sortIndex=ee,b(P,L),w(A)===null&&L===w(P)&&(q?n():q=!0,r(De,ee-ae))):(L.sortIndex=ye,b(A,L),z||re||(z=!0,t(ge))),L},e.unstable_wrapCallback=function(L){var V=H;return function(){var ee=H;H=V;try{return L.apply(this,arguments)}finally{H=ee}}}})(DC);FC.exports=DC;var iL=FC.exports;/** @license React v17.0.2 + */(function(e){var t,r,n,i;if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}if(typeof window>"u"||typeof MessageChannel!="function"){var u=null,l=null,c=function(){if(u!==null)try{var L=e.unstable_now();u(!0,L),u=null}catch(V){throw setTimeout(c,0),V}};t=function(L){u!==null?setTimeout(t,0,L):(u=L,setTimeout(c,0))},r=function(L,V){l=setTimeout(L,V)},n=function(){clearTimeout(l)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,h=window.clearTimeout;if(typeof console<"u"){var d=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof d!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,g=null,p=-1,m=5,y=0;e.unstable_shouldYield=function(){return e.unstable_now()>=y},i=function(){},e.unstable_forceFrameRate=function(L){0>L||125>>1,ge=L[ae];if(ge!==void 0&&0k(Se,ee))Ve!==void 0&&0>k(Ve,Se)?(L[ae]=Ve,L[Ge]=ee,ae=Ge):(L[ae]=Se,L[be]=ee,ae=be);else if(Ve!==void 0&&0>k(Ve,ee))L[ae]=Ve,L[Ge]=ee,ae=Ge;else break e}}return V}return null}function k(L,V){var ee=L.sortIndex-V.sortIndex;return ee!==0?ee:L.id-V.id}var A=[],P=[],F=1,D=null,H=3,re=!1,z=!1,q=!1;function le(L){for(var V=w(P);V!==null;){if(V.callback===null)T(P);else if(V.startTime<=L)T(P),V.sortIndex=V.expirationTime,b(A,V);else break;V=w(P)}}function Ue(L){if(q=!1,le(L),!z)if(w(A)!==null)z=!0,t(me);else{var V=w(P);V!==null&&r(Ue,V.startTime-L)}}function me(L,V){z=!1,q&&(q=!1,n()),re=!0;var ee=H;try{for(le(V),D=w(A);D!==null&&(!(D.expirationTime>V)||L&&!e.unstable_shouldYield());){var ae=D.callback;if(typeof ae=="function"){D.callback=null,H=D.priorityLevel;var ge=ae(D.expirationTime<=V);V=e.unstable_now(),typeof ge=="function"?D.callback=ge:D===w(A)&&T(A),le(V)}else T(A);D=w(A)}if(D!==null)var be=!0;else{var Se=w(P);Se!==null&&r(Ue,Se.startTime-V),be=!1}return be}finally{D=null,H=ee,re=!1}}var Q=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_continueExecution=function(){z||re||(z=!0,t(me))},e.unstable_getCurrentPriorityLevel=function(){return H},e.unstable_getFirstCallbackNode=function(){return w(A)},e.unstable_next=function(L){switch(H){case 1:case 2:case 3:var V=3;break;default:V=H}var ee=H;H=V;try{return L()}finally{H=ee}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=Q,e.unstable_runWithPriority=function(L,V){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var ee=H;H=L;try{return V()}finally{H=ee}},e.unstable_scheduleCallback=function(L,V,ee){var ae=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0ae?(L.sortIndex=ee,b(P,L),w(A)===null&&L===w(P)&&(q?n():q=!0,r(Ue,ee-ae))):(L.sortIndex=ge,b(A,L),z||re||(z=!0,t(me))),L},e.unstable_wrapCallback=function(L){var V=H;return function(){var ee=H;H=V;try{return L.apply(this,arguments)}finally{H=ee}}}})(CO);TO.exports=CO;var oM=TO.exports;/** @license React v17.0.2 * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var lh=$,ut=Qy,Bt=iL;function K(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),oL=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Rb=Object.prototype.hasOwnProperty,Nb={},Lb={};function aL(e){return Rb.call(Lb,e)?!0:Rb.call(Nb,e)?!1:oL.test(e)?Lb[e]=!0:(Nb[e]=!0,!1)}function sL(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function uL(e,t,r,n){if(t===null||typeof t>"u"||sL(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function pr(e,t,r,n,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Yt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Yt[e]=new pr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Yt[t]=new pr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Yt[e]=new pr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Yt[e]=new pr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Yt[e]=new pr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Yt[e]=new pr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Yt[e]=new pr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Yt[e]=new pr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Yt[e]=new pr(e,5,!1,e.toLowerCase(),null,!1,!1)});var i_=/[\-:]([a-z])/g;function o_(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(i_,o_);Yt[t]=new pr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(i_,o_);Yt[t]=new pr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(i_,o_);Yt[t]=new pr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Yt[e]=new pr(e,1,!1,e.toLowerCase(),null,!1,!1)});Yt.xlinkHref=new pr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Yt[e]=new pr(e,1,!1,e.toLowerCase(),null,!0,!0)});function a_(e,t,r,n){var i=Yt.hasOwnProperty(t)?Yt[t]:null,o=i!==null?i.type===0:n?!1:!(!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),aM=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p1=Object.prototype.hasOwnProperty,v1={},m1={};function sM(e){return p1.call(m1,e)?!0:p1.call(v1,e)?!1:aM.test(e)?m1[e]=!0:(v1[e]=!0,!1)}function uM(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function lM(e,t,r,n){if(t===null||typeof t>"u"||uM(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function yr(e,t,r,n,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Jt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Jt[e]=new yr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Jt[t]=new yr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Jt[e]=new yr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Jt[e]=new yr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Jt[e]=new yr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Jt[e]=new yr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Jt[e]=new yr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Jt[e]=new yr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Jt[e]=new yr(e,5,!1,e.toLowerCase(),null,!1,!1)});var D_=/[\-:]([a-z])/g;function B_(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(D_,B_);Jt[t]=new yr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(D_,B_);Jt[t]=new yr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(D_,B_);Jt[t]=new yr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Jt[e]=new yr(e,1,!1,e.toLowerCase(),null,!1,!1)});Jt.xlinkHref=new yr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Jt[e]=new yr(e,1,!1,e.toLowerCase(),null,!0,!0)});function j_(e,t,r,n){var i=Jt.hasOwnProperty(t)?Jt[t]:null,o=i!==null?i.type===0:n?!1:!(!(2s||i[a]!==o[s])return` -`+i[a].replace(" at new "," at ");while(1<=a&&0<=s);break}}}finally{jd=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?nu(e):""}function lL(e){switch(e.tag){case 5:return nu(e.type);case 16:return nu("Lazy");case 13:return nu("Suspense");case 19:return nu("SuspenseList");case 0:case 2:case 15:return e=Ul(e.type,!1),e;case 11:return e=Ul(e.type.render,!1),e;case 22:return e=Ul(e.type._render,!1),e;case 1:return e=Ul(e.type,!0),e;default:return""}}function Ta(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case yi:return"Fragment";case yo:return"Portal";case cu:return"Profiler";case s_:return"StrictMode";case fu:return"Suspense";case af:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case l_:return(e.displayName||"Context")+".Consumer";case u_:return(e._context.displayName||"Context")+".Provider";case ch:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case fh:return Ta(e.type);case f_:return Ta(e._render);case c_:t=e._payload,e=e._init;try{return Ta(e(t))}catch{}}return null}function Ui(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function $C(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cL(e){var t=$C(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Gl(e){e._valueTracker||(e._valueTracker=cL(e))}function UC(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=$C(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function sf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function im(e,t){var r=t.checked;return ut({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Fb(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Ui(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function GC(e,t){t=t.checked,t!=null&&a_(e,"checked",t,!1)}function om(e,t){GC(e,t);var r=Ui(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?am(e,t.type,r):t.hasOwnProperty("defaultValue")&&am(e,t.type,Ui(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Db(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function am(e,t,r){(t!=="number"||sf(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function fL(e){var t="";return lh.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function sm(e,t){return e=ut({children:void 0},t),(t=fL(t.children))&&(e.children=t),e}function Ca(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i=r.length))throw Error(K(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Ui(r)}}function zC(e,t){var r=Ui(t.value),n=Ui(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function jb(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var lm={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function HC(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function cm(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?HC(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var zl,VC=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!==lm.svg||"innerHTML"in e)e.innerHTML=t;else{for(zl=zl||document.createElement("div"),zl.innerHTML=""+t.valueOf().toString()+"",t=zl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Mu(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var hu={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},hL=["Webkit","ms","Moz","O"];Object.keys(hu).forEach(function(e){hL.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hu[t]=hu[e]})});function WC(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||hu.hasOwnProperty(e)&&hu[e]?(""+t).trim():t+"px"}function qC(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=WC(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var dL=ut({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function fm(e,t){if(t){if(dL[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(K(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(K(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(K(61))}if(t.style!=null&&typeof t.style!="object")throw Error(K(62))}}function hm(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function p_(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var dm=null,Oa=null,Aa=null;function $b(e){if(e=bl(e)){if(typeof dm!="function")throw Error(K(280));var t=e.stateNode;t&&(t=gh(t),dm(e.stateNode,e.type,t))}}function XC(e){Oa?Aa?Aa.push(e):Aa=[e]:Oa=e}function YC(){if(Oa){var e=Oa,t=Aa;if(Aa=Oa=null,$b(e),t)for(e=0;en?0:1<r;r++)t.push(e);return t}function dh(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-Gi(t),e[t]=r}var Gi=Math.clz32?Math.clz32:PL,OL=Math.log,AL=Math.LN2;function PL(e){return e===0?32:31-(OL(e)/AL|0)|0}var kL=Bt.unstable_UserBlockingPriority,IL=Bt.unstable_runWithPriority,Mc=!0;function RL(e,t,r,n){_o||m_();var i=b_,o=_o;_o=!0;try{KC(i,e,t,r,n)}finally{(_o=o)||g_()}}function NL(e,t,r,n){IL(kL,b_.bind(null,e,t,r,n))}function b_(e,t,r,n){if(Mc){var i;if((i=(t&4)===0)&&0=pu),Kb=String.fromCharCode(32),Zb=!1;function dO(e,t){switch(e){case"keyup":return rM.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pO(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var va=!1;function iM(e,t){switch(e){case"compositionend":return pO(t);case"keypress":return t.which!==32?null:(Zb=!0,Kb);case"textInput":return e=t.data,e===Kb&&Zb?null:e;default:return null}}function oM(e,t){if(va)return e==="compositionend"||!C_&&dO(e,t)?(e=fO(),Fc=w_=bi=null,va=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=t1(r)}}function yO(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yO(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function n1(){for(var e=window,t=sf();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=sf(e.document)}return t}function ym(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var vM=li&&"documentMode"in document&&11>=document.documentMode,ma=null,_m=null,mu=null,xm=!1;function i1(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;xm||ma==null||ma!==sf(n)||(n=ma,"selectionStart"in n&&ym(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),mu&&Uu(mu,n)||(mu=n,n=ff(_m,"onSelect"),0ya||(e.current=Sm[ya],Sm[ya]=null,ya--)}function vt(e,t){ya++,Sm[ya]=e.current,e.current=t}var zi={},nr=Ji(zi),wr=Ji(!1),Ro=zi;function Ua(e,t){var r=e.type.contextTypes;if(!r)return zi;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Er(e){return e=e.childContextTypes,e!=null}function pf(){it(wr),it(nr)}function d1(e,t,r){if(nr.current!==zi)throw Error(K(168));vt(nr,t),vt(wr,r)}function CO(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(K(108,Ta(t)||"Unknown",i));return ut({},r,n)}function Bc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zi,Ro=nr.current,vt(nr,e),vt(wr,wr.current),!0}function p1(e,t,r){var n=e.stateNode;if(!n)throw Error(K(169));r?(e=CO(e,t,Ro),n.__reactInternalMemoizedMergedChildContext=e,it(wr),it(nr),vt(nr,e)):it(wr),vt(wr,r)}var A_=null,Co=null,yM=Bt.unstable_runWithPriority,P_=Bt.unstable_scheduleCallback,wm=Bt.unstable_cancelCallback,_M=Bt.unstable_shouldYield,v1=Bt.unstable_requestPaint,Em=Bt.unstable_now,xM=Bt.unstable_getCurrentPriorityLevel,yh=Bt.unstable_ImmediatePriority,OO=Bt.unstable_UserBlockingPriority,AO=Bt.unstable_NormalPriority,PO=Bt.unstable_LowPriority,kO=Bt.unstable_IdlePriority,Qd={},bM=v1!==void 0?v1:function(){},ei=null,jc=null,Jd=!1,m1=Em(),tr=1e4>m1?Em:function(){return Em()-m1};function Ga(){switch(xM()){case yh:return 99;case OO:return 98;case AO:return 97;case PO:return 96;case kO:return 95;default:throw Error(K(332))}}function IO(e){switch(e){case 99:return yh;case 98:return OO;case 97:return AO;case 96:return PO;case 95:return kO;default:throw Error(K(332))}}function No(e,t){return e=IO(e),yM(e,t)}function zu(e,t,r){return e=IO(e),P_(e,t,r)}function Un(){if(jc!==null){var e=jc;jc=null,wm(e)}RO()}function RO(){if(!Jd&&ei!==null){Jd=!0;var e=0;try{var t=ei;No(99,function(){for(;eT?(k=w,w=null):k=w.sibling;var A=h(p,w,y[T],_);if(A===null){w===null&&(w=k);break}e&&w&&A.alternate===null&&t(p,w),m=o(A,m,T),b===null?x=A:b.sibling=A,b=A,w=k}if(T===y.length)return r(p,w),x;if(w===null){for(;TT?(k=w,w=null):k=w.sibling;var P=h(p,w,A.value,_);if(P===null){w===null&&(w=k);break}e&&w&&P.alternate===null&&t(p,w),m=o(P,m,T),b===null?x=P:b.sibling=P,b=P,w=k}if(A.done)return r(p,w),x;if(w===null){for(;!A.done;T++,A=y.next())A=f(p,A.value,_),A!==null&&(m=o(A,m,T),b===null?x=A:b.sibling=A,b=A);return x}for(w=n(p,w);!A.done;T++,A=y.next())A=d(w,p,T,A.value,_),A!==null&&(e&&A.alternate!==null&&w.delete(A.key===null?T:A.key),m=o(A,m,T),b===null?x=A:b.sibling=A,b=A);return e&&w.forEach(function(F){return t(p,F)}),x}return function(p,m,y,_){var x=typeof y=="object"&&y!==null&&y.type===yi&&y.key===null;x&&(y=y.props.children);var b=typeof y=="object"&&y!==null;if(b)switch(y.$$typeof){case ru:e:{for(b=y.key,x=m;x!==null;){if(x.key===b){switch(x.tag){case 7:if(y.type===yi){r(p,x.sibling),m=i(x,y.props.children),m.return=p,p=m;break e}break;default:if(x.elementType===y.type){r(p,x.sibling),m=i(x,y.props),m.ref=Ds(p,x,y),m.return=p,p=m;break e}}r(p,x);break}else t(p,x);x=x.sibling}y.type===yi?(m=La(y.props.children,p.mode,_,y.key),m.return=p,p=m):(_=zc(y.type,y.key,y.props,null,p.mode,_),_.ref=Ds(p,m,y),_.return=p,p=_)}return a(p);case yo:e:{for(x=y.key;m!==null;){if(m.key===x)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){r(p,m.sibling),m=i(m,y.children||[]),m.return=p,p=m;break e}else{r(p,m);break}else t(p,m);m=m.sibling}m=op(y,p.mode,_),m.return=p,p=m}return a(p)}if(typeof y=="string"||typeof y=="number")return y=""+y,m!==null&&m.tag===6?(r(p,m.sibling),m=i(m,y),m.return=p,p=m):(r(p,m),m=ip(y,p.mode,_),m.return=p,p=m),a(p);if(Wl(y))return v(p,m,y,_);if(Is(y))return g(p,m,y,_);if(b&&ql(p,y),typeof y>"u"&&!x)switch(p.tag){case 1:case 22:case 0:case 11:case 15:throw Error(K(152,Ta(p.type)||"Component"))}return r(p,m)}}var _f=DO(!0),BO=DO(!1),Sl={},In=Ji(Sl),Vu=Ji(Sl),Wu=Ji(Sl);function bo(e){if(e===Sl)throw Error(K(174));return e}function Cm(e,t){switch(vt(Wu,t),vt(Vu,e),vt(In,Sl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:cm(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=cm(t,e)}it(In),vt(In,t)}function za(){it(In),it(Vu),it(Wu)}function b1(e){bo(Wu.current);var t=bo(In.current),r=cm(t,e.type);t!==r&&(vt(Vu,e),vt(In,r))}function N_(e){Vu.current===e&&(it(In),it(Vu))}var pt=Ji(0);function xf(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&64)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ii=null,wi=null,Rn=!1;function jO(e,t){var r=Vr(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function S1(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function Om(e){if(Rn){var t=wi;if(t){var r=t;if(!S1(e,t)){if(t=Pa(r.nextSibling),!t||!S1(e,t)){e.flags=e.flags&-1025|2,Rn=!1,ii=e;return}jO(ii,r)}ii=e,wi=Pa(t.firstChild)}else e.flags=e.flags&-1025|2,Rn=!1,ii=e}}function w1(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ii=e}function Xl(e){if(e!==ii)return!1;if(!Rn)return w1(e),Rn=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!bm(t,e.memoizedProps))for(t=wi;t;)jO(e,t),t=Pa(t.nextSibling);if(w1(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(K(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){wi=Pa(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}wi=null}}else wi=ii?Pa(e.stateNode.nextSibling):null;return!0}function ep(){wi=ii=null,Rn=!1}var Ia=[];function L_(){for(var e=0;eo))throw Error(K(301));o+=1,qt=er=null,t.updateQueue=null,gu.current=CM,e=r(n,i)}while(yu)}if(gu.current=Tf,t=er!==null&&er.next!==null,qu=0,qt=er=xt=null,bf=!1,t)throw Error(K(300));return e}function So(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qt===null?xt.memoizedState=qt=e:qt=qt.next=e,qt}function Go(){if(er===null){var e=xt.alternate;e=e!==null?e.memoizedState:null}else e=er.next;var t=qt===null?xt.memoizedState:qt.next;if(t!==null)qt=t,er=e;else{if(e===null)throw Error(K(310));er=e,e={memoizedState:er.memoizedState,baseState:er.baseState,baseQueue:er.baseQueue,queue:er.queue,next:null},qt===null?xt.memoizedState=qt=e:qt=qt.next=e}return qt}function On(e,t){return typeof t=="function"?t(e):t}function Bs(e){var t=Go(),r=t.queue;if(r===null)throw Error(K(311));r.lastRenderedReducer=e;var n=er,i=n.baseQueue,o=r.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}n.baseQueue=i=o,r.pending=null}if(i!==null){i=i.next,n=n.baseState;var s=a=o=null,u=i;do{var l=u.lane;if((qu&l)===l)s!==null&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),n=u.eagerReducer===e?u.eagerState:e(n,u.action);else{var c={lane:l,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};s===null?(a=s=c,o=n):s=s.next=c,xt.lanes|=l,wl|=l}u=u.next}while(u!==null&&u!==i);s===null?o=n:s.next=a,Hr(n,t.memoizedState)||(hn=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=s,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function js(e){var t=Go(),r=t.queue;if(r===null)throw Error(K(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(i!==null){r.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Hr(o,t.memoizedState)||(hn=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function E1(e,t,r){var n=t._getVersion;n=n(t._source);var i=t._workInProgressVersionPrimary;if(i!==null?e=i===n:(e=e.mutableReadLanes,(e=(qu&e)===e)&&(t._workInProgressVersionPrimary=n,Ia.push(t))),e)return r(t._source);throw Ia.push(t),Error(K(350))}function $O(e,t,r,n){var i=cr;if(i===null)throw Error(K(349));var o=t._getVersion,a=o(t._source),s=gu.current,u=s.useState(function(){return E1(i,t,r)}),l=u[1],c=u[0];u=qt;var f=e.memoizedState,h=f.refs,d=h.getSnapshot,v=f.source;f=f.subscribe;var g=xt;return e.memoizedState={refs:h,source:t,subscribe:n},s.useEffect(function(){h.getSnapshot=r,h.setSnapshot=l;var p=o(t._source);if(!Hr(a,p)){p=r(t._source),Hr(c,p)||(l(p),p=Ni(g),i.mutableReadLanes|=p&i.pendingLanes),p=i.mutableReadLanes,i.entangledLanes|=p;for(var m=i.entanglements,y=p;0r?98:r,function(){e(!0)}),No(97<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[Si]=t,e[df]=n,YO(e,t,!1,!1),t.stateNode=e,a=hm(r,n),r){case"dialog":et("cancel",e),et("close",e),i=n;break;case"iframe":case"object":case"embed":et("load",e),i=n;break;case"video":case"audio":for(i=0;iDm&&(t.flags|=64,o=!0,Us(n,!1),t.lanes=33554432)}else{if(!o)if(e=xf(a),e!==null){if(t.flags|=64,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Us(n,!0),n.tail===null&&n.tailMode==="hidden"&&!a.alternate&&!Rn)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*tr()-n.renderingStartTime>Dm&&r!==1073741824&&(t.flags|=64,o=!0,Us(n,!1),t.lanes=33554432);n.isBackwards?(a.sibling=t.child,t.child=a):(r=n.last,r!==null?r.sibling=a:t.child=a,n.last=a)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=tr(),r.sibling=null,t=pt.current,vt(pt,o?t&1|2:t&1),r):null;case 23:case 24:return H_(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(K(156,t.tag))}function PM(e){switch(e.tag){case 1:Er(e.type)&&pf();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(za(),it(wr),it(nr),L_(),t=e.flags,t&64)throw Error(K(285));return e.flags=t&-4097|64,e;case 5:return N_(e),null;case 13:return it(pt),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return it(pt),null;case 4:return za(),null;case 10:return I_(e),null;case 23:case 24:return H_(),null;default:return null}}function $_(e,t){try{var r="",n=t;do r+=lL(n),n=n.return;while(n);var i=r}catch(o){i=` +`+i[a].replace(" at new "," at ");while(1<=a&&0<=s);break}}}finally{dp=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?_u(e):""}function cM(e){switch(e.tag){case 5:return _u(e.type);case 16:return _u("Lazy");case 13:return _u("Suspense");case 19:return _u("SuspenseList");case 0:case 2:case 15:return e=uc(e.type,!1),e;case 11:return e=uc(e.type.render,!1),e;case 22:return e=uc(e.type._render,!1),e;case 1:return e=uc(e.type,!0),e;default:return""}}function Da(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ki:return"Fragment";case Po:return"Portal";case Ou:return"Profiler";case $_:return"StrictMode";case Au:return"Suspense";case If:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case G_:return(e.displayName||"Context")+".Consumer";case U_:return(e._context.displayName||"Context")+".Provider";case Lh:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Mh:return Da(e.type);case H_:return Da(e._render);case z_:t=e._payload,e=e._init;try{return Da(e(t))}catch{}}return null}function Qi(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function PO(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fM(e){var t=PO(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function lc(e){e._valueTracker||(e._valueTracker=fM(e))}function kO(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=PO(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Rf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Mm(e,t){var r=t.checked;return ht({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function y1(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Qi(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function IO(e,t){t=t.checked,t!=null&&j_(e,"checked",t,!1)}function Fm(e,t){IO(e,t);var r=Qi(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Dm(e,t.type,r):t.hasOwnProperty("defaultValue")&&Dm(e,t.type,Qi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _1(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Dm(e,t,r){(t!=="number"||Rf(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function hM(e){var t="";return Nh.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function Bm(e,t){return e=ht({children:void 0},t),(t=hM(t.children))&&(e.children=t),e}function Ba(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i=r.length))throw Error(K(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Qi(r)}}function RO(e,t){var r=Qi(t.value),n=Qi(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function b1(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var $m={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function NO(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Um(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?NO(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var cc,LO=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!==$m.svg||"innerHTML"in e)e.innerHTML=t;else{for(cc=cc||document.createElement("div"),cc.innerHTML=""+t.valueOf().toString()+"",t=cc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zu(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Pu={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},dM=["Webkit","ms","Moz","O"];Object.keys(Pu).forEach(function(e){dM.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Pu[t]=Pu[e]})});function MO(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Pu.hasOwnProperty(e)&&Pu[e]?(""+t).trim():t+"px"}function FO(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=MO(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var pM=ht({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Gm(e,t){if(t){if(pM[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(K(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(K(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(K(61))}if(t.style!=null&&typeof t.style!="object")throw Error(K(62))}}function zm(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function q_(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Hm=null,ja=null,$a=null;function S1(e){if(e=Ul(e)){if(typeof Hm!="function")throw Error(K(280));var t=e.stateNode;t&&(t=Uh(t),Hm(e.stateNode,e.type,t))}}function DO(e){ja?$a?$a.push(e):$a=[e]:ja=e}function BO(){if(ja){var e=ja,t=$a;if($a=ja=null,S1(e),t)for(e=0;en?0:1<r;r++)t.push(e);return t}function Dh(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-Ji(t),e[t]=r}var Ji=Math.clz32?Math.clz32:kM,AM=Math.log,PM=Math.LN2;function kM(e){return e===0?32:31-(AM(e)/PM|0)|0}var IM=Ut.unstable_UserBlockingPriority,RM=Ut.unstable_runWithPriority,of=!0;function NM(e,t,r,n){ko||Y_();var i=e0,o=ko;ko=!0;try{jO(i,e,t,r,n)}finally{(ko=o)||K_()}}function LM(e,t,r,n){RM(IM,e0.bind(null,e,t,r,n))}function e0(e,t,r,n){if(of){var i;if((i=(t&4)===0)&&0=Iu),R1=String.fromCharCode(32),N1=!1;function rA(e,t){switch(e){case"keyup":return nF.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nA(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Oa=!1;function oF(e,t){switch(e){case"compositionend":return nA(t);case"keypress":return t.which!==32?null:(N1=!0,R1);case"textInput":return e=t.data,e===R1&&N1?null:e;default:return null}}function aF(e,t){if(Oa)return e==="compositionend"||!o0&&rA(e,t)?(e=eA(),af=r0=Ni=null,Oa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=D1(r)}}function sA(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?sA(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function j1(){for(var e=window,t=Rf();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Rf(e.document)}return t}function Ym(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var mF=bi&&"documentMode"in document&&11>=document.documentMode,Aa=null,Km=null,Nu=null,Zm=!1;function $1(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Zm||Aa==null||Aa!==Rf(n)||(n=Aa,"selectionStart"in n&&Ym(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Nu&&nl(Nu,n)||(Nu=n,n=Ff(Km,"onSelect"),0ka||(e.current=Jm[ka],Jm[ka]=null,ka--)}function _t(e,t){ka++,Jm[ka]=e.current,e.current=t}var eo={},lr=co(eo),Ar=co(!1),Ho=eo;function ts(e,t){var r=e.type.contextTypes;if(!r)return eo;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Pr(e){return e=e.childContextTypes,e!=null}function jf(){ut(Ar),ut(lr)}function Y1(e,t,r){if(lr.current!==eo)throw Error(K(168));_t(lr,t),_t(Ar,r)}function vA(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(K(108,Da(t)||"Unknown",i));return ht({},r,n)}function uf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||eo,Ho=lr.current,_t(lr,e),_t(Ar,Ar.current),!0}function K1(e,t,r){var n=e.stateNode;if(!n)throw Error(K(169));r?(e=vA(e,t,Ho),n.__reactInternalMemoizedMergedChildContext=e,ut(Ar),ut(lr),_t(lr,e)):ut(Ar),_t(Ar,r)}var s0=null,Bo=null,_F=Ut.unstable_runWithPriority,u0=Ut.unstable_scheduleCallback,eg=Ut.unstable_cancelCallback,xF=Ut.unstable_shouldYield,Z1=Ut.unstable_requestPaint,tg=Ut.unstable_now,bF=Ut.unstable_getCurrentPriorityLevel,Gh=Ut.unstable_ImmediatePriority,mA=Ut.unstable_UserBlockingPriority,gA=Ut.unstable_NormalPriority,yA=Ut.unstable_LowPriority,_A=Ut.unstable_IdlePriority,Cp={},SF=Z1!==void 0?Z1:function(){},fi=null,lf=null,Op=!1,Q1=tg(),sr=1e4>Q1?tg:function(){return tg()-Q1};function rs(){switch(bF()){case Gh:return 99;case mA:return 98;case gA:return 97;case yA:return 96;case _A:return 95;default:throw Error(K(332))}}function xA(e){switch(e){case 99:return Gh;case 98:return mA;case 97:return gA;case 96:return yA;case 95:return _A;default:throw Error(K(332))}}function Vo(e,t){return e=xA(e),_F(e,t)}function ol(e,t,r){return e=xA(e),u0(e,t,r)}function Qn(){if(lf!==null){var e=lf;lf=null,eg(e)}bA()}function bA(){if(!Op&&fi!==null){Op=!0;var e=0;try{var t=fi;Vo(99,function(){for(;eT?(k=w,w=null):k=w.sibling;var A=h(p,w,y[T],_);if(A===null){w===null&&(w=k);break}e&&w&&A.alternate===null&&t(p,w),m=o(A,m,T),b===null?x=A:b.sibling=A,b=A,w=k}if(T===y.length)return r(p,w),x;if(w===null){for(;TT?(k=w,w=null):k=w.sibling;var P=h(p,w,A.value,_);if(P===null){w===null&&(w=k);break}e&&w&&P.alternate===null&&t(p,w),m=o(P,m,T),b===null?x=P:b.sibling=P,b=P,w=k}if(A.done)return r(p,w),x;if(w===null){for(;!A.done;T++,A=y.next())A=f(p,A.value,_),A!==null&&(m=o(A,m,T),b===null?x=A:b.sibling=A,b=A);return x}for(w=n(p,w);!A.done;T++,A=y.next())A=d(w,p,T,A.value,_),A!==null&&(e&&A.alternate!==null&&w.delete(A.key===null?T:A.key),m=o(A,m,T),b===null?x=A:b.sibling=A,b=A);return e&&w.forEach(function(F){return t(p,F)}),x}return function(p,m,y,_){var x=typeof y=="object"&&y!==null&&y.type===ki&&y.key===null;x&&(y=y.props.children);var b=typeof y=="object"&&y!==null;if(b)switch(y.$$typeof){case yu:e:{for(b=y.key,x=m;x!==null;){if(x.key===b){switch(x.tag){case 7:if(y.type===ki){r(p,x.sibling),m=i(x,y.props.children),m.return=p,p=m;break e}break;default:if(x.elementType===y.type){r(p,x.sibling),m=i(x,y.props),m.ref=Qs(p,x,y),m.return=p,p=m;break e}}r(p,x);break}else t(p,x);x=x.sibling}y.type===ki?(m=Wa(y.props.children,p.mode,_,y.key),m.return=p,p=m):(_=df(y.type,y.key,y.props,null,p.mode,_),_.ref=Qs(p,m,y),_.return=p,p=_)}return a(p);case Po:e:{for(x=y.key;m!==null;){if(m.key===x)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){r(p,m.sibling),m=i(m,y.children||[]),m.return=p,p=m;break e}else{r(p,m);break}else t(p,m);m=m.sibling}m=Np(y,p.mode,_),m.return=p,p=m}return a(p)}if(typeof y=="string"||typeof y=="number")return y=""+y,m!==null&&m.tag===6?(r(p,m.sibling),m=i(m,y),m.return=p,p=m):(r(p,m),m=Rp(y,p.mode,_),m.return=p,p=m),a(p);if(dc(y))return v(p,m,y,_);if(Ws(y))return g(p,m,y,_);if(b&&pc(p,y),typeof y>"u"&&!x)switch(p.tag){case 1:case 22:case 0:case 11:case 15:throw Error(K(152,Da(p.type)||"Component"))}return r(p,m)}}var Hf=CA(!0),OA=CA(!1),Gl={},Un=co(Gl),sl=co(Gl),ul=co(Gl);function Ro(e){if(e===Gl)throw Error(K(174));return e}function ng(e,t){switch(_t(ul,t),_t(sl,e),_t(Un,Gl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Um(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Um(t,e)}ut(Un),_t(Un,t)}function ns(){ut(Un),ut(sl),ut(ul)}function nS(e){Ro(ul.current);var t=Ro(Un.current),r=Um(t,e.type);t!==r&&(_t(sl,e),_t(Un,r))}function h0(e){sl.current===e&&(ut(Un),ut(sl))}var yt=co(0);function Vf(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&64)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var vi=null,Mi=null,Gn=!1;function AA(e,t){var r=Qr(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function iS(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function ig(e){if(Gn){var t=Mi;if(t){var r=t;if(!iS(e,t)){if(t=Ua(r.nextSibling),!t||!iS(e,t)){e.flags=e.flags&-1025|2,Gn=!1,vi=e;return}AA(vi,r)}vi=e,Mi=Ua(t.firstChild)}else e.flags=e.flags&-1025|2,Gn=!1,vi=e}}function oS(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;vi=e}function vc(e){if(e!==vi)return!1;if(!Gn)return oS(e),Gn=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!Qm(t,e.memoizedProps))for(t=Mi;t;)AA(e,t),t=Ua(t.nextSibling);if(oS(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(K(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Mi=Ua(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Mi=null}}else Mi=vi?Ua(e.stateNode.nextSibling):null;return!0}function Ap(){Mi=vi=null,Gn=!1}var za=[];function d0(){for(var e=0;eo))throw Error(K(301));o+=1,Kt=or=null,t.updateQueue=null,Lu.current=OF,e=r(n,i)}while(Mu)}if(Lu.current=Kf,t=or!==null&&or.next!==null,ll=0,Kt=or=wt=null,Wf=!1,t)throw Error(K(300));return e}function No(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Kt===null?wt.memoizedState=Kt=e:Kt=Kt.next=e,Kt}function ea(){if(or===null){var e=wt.alternate;e=e!==null?e.memoizedState:null}else e=or.next;var t=Kt===null?wt.memoizedState:Kt.next;if(t!==null)Kt=t,or=e;else{if(e===null)throw Error(K(310));or=e,e={memoizedState:or.memoizedState,baseState:or.baseState,baseQueue:or.baseQueue,queue:or.queue,next:null},Kt===null?wt.memoizedState=Kt=e:Kt=Kt.next=e}return Kt}function Dn(e,t){return typeof t=="function"?t(e):t}function Js(e){var t=ea(),r=t.queue;if(r===null)throw Error(K(311));r.lastRenderedReducer=e;var n=or,i=n.baseQueue,o=r.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}n.baseQueue=i=o,r.pending=null}if(i!==null){i=i.next,n=n.baseState;var s=a=o=null,u=i;do{var l=u.lane;if((ll&l)===l)s!==null&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),n=u.eagerReducer===e?u.eagerState:e(n,u.action);else{var c={lane:l,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};s===null?(a=s=c,o=n):s=s.next=c,wt.lanes|=l,zl|=l}u=u.next}while(u!==null&&u!==i);s===null?o=n:s.next=a,Zr(n,t.memoizedState)||(yn=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=s,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function eu(e){var t=ea(),r=t.queue;if(r===null)throw Error(K(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(i!==null){r.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Zr(o,t.memoizedState)||(yn=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function aS(e,t,r){var n=t._getVersion;n=n(t._source);var i=t._workInProgressVersionPrimary;if(i!==null?e=i===n:(e=e.mutableReadLanes,(e=(ll&e)===e)&&(t._workInProgressVersionPrimary=n,za.push(t))),e)return r(t._source);throw za.push(t),Error(K(350))}function PA(e,t,r,n){var i=pr;if(i===null)throw Error(K(349));var o=t._getVersion,a=o(t._source),s=Lu.current,u=s.useState(function(){return aS(i,t,r)}),l=u[1],c=u[0];u=Kt;var f=e.memoizedState,h=f.refs,d=h.getSnapshot,v=f.source;f=f.subscribe;var g=wt;return e.memoizedState={refs:h,source:t,subscribe:n},s.useEffect(function(){h.getSnapshot=r,h.setSnapshot=l;var p=o(t._source);if(!Zr(a,p)){p=r(t._source),Zr(c,p)||(l(p),p=Hi(g),i.mutableReadLanes|=p&i.pendingLanes),p=i.mutableReadLanes,i.entangledLanes|=p;for(var m=i.entanglements,y=p;0r?98:r,function(){e(!0)}),Vo(97<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[Li]=t,e[Bf]=n,BA(e,t,!1,!1),t.stateNode=e,a=zm(r,n),r){case"dialog":nt("cancel",e),nt("close",e),i=n;break;case"iframe":case"object":case"embed":nt("load",e),i=n;break;case"video":case"audio":for(i=0;ipg&&(t.flags|=64,o=!0,ru(n,!1),t.lanes=33554432)}else{if(!o)if(e=Vf(a),e!==null){if(t.flags|=64,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ru(n,!0),n.tail===null&&n.tailMode==="hidden"&&!a.alternate&&!Gn)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*sr()-n.renderingStartTime>pg&&r!==1073741824&&(t.flags|=64,o=!0,ru(n,!1),t.lanes=33554432);n.isBackwards?(a.sibling=t.child,t.child=a):(r=n.last,r!==null?r.sibling=a:t.child=a,n.last=a)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=sr(),r.sibling=null,t=yt.current,_t(yt,o?t&1|2:t&1),r):null;case 23:case 24:return w0(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(K(156,t.tag))}function kF(e){switch(e.tag){case 1:Pr(e.type)&&jf();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(ns(),ut(Ar),ut(lr),d0(),t=e.flags,t&64)throw Error(K(285));return e.flags=t&-4097|64,e;case 5:return h0(e),null;case 13:return ut(yt),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return ut(yt),null;case 4:return ns(),null;case 10:return c0(e),null;case 23:case 24:return w0(),null;default:return null}}function _0(e,t){try{var r="",n=t;do r+=cM(n),n=n.return;while(n);var i=r}catch(o){i=` Error generating stack: `+o.message+` -`+o.stack}return{value:e,source:t,stack:i}}function Rm(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var kM=typeof WeakMap=="function"?WeakMap:Map;function QO(e,t,r){r=Ii(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Of||(Of=!0,Bm=n),Rm(e,t)},r}function JO(e,t,r){r=Ii(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return Rm(e,t),n(i)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(An===null?An=new Set([this]):An.add(this),Rm(e,t));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}var IM=typeof WeakSet=="function"?WeakSet:Set;function D1(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Mi(e,r)}else t.current=null}function RM(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var r=e.memoizedProps,n=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?r:cn(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&O_(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(K(163))}function NM(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var n=e.create;e.destroy=n()}e=e.next}while(e!==t)}if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var i=e;n=i.next,i=i.tag,i&4&&i&1&&(uA(r,e),UM(r,e)),e=n}while(e!==t)}return;case 1:e=r.stateNode,r.flags&4&&(t===null?e.componentDidMount():(n=r.elementType===r.type?t.memoizedProps:cn(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=r.updateQueue,t!==null&&y1(r,t,e);return;case 3:if(t=r.updateQueue,t!==null){if(e=null,r.child!==null)switch(r.child.tag){case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}y1(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&EO(r.type,r.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:r.memoizedState===null&&(r=r.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&nO(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(K(163))}function B1(e,t){for(var r=e;;){if(r.tag===5){var n=r.stateNode;if(t)n=n.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none";else{n=r.stateNode;var i=r.memoizedProps.style;i=i!=null&&i.hasOwnProperty("display")?i.display:null,n.style.display=WC("display",i)}}else if(r.tag===6)r.stateNode.nodeValue=t?"":r.memoizedProps;else if((r.tag!==23&&r.tag!==24||r.memoizedState===null||r===e)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function j1(e,t){if(Co&&typeof Co.onCommitFiberUnmount=="function")try{Co.onCommitFiberUnmount(A_,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var r=e=e.next;do{var n=r,i=n.destroy;if(n=n.tag,i!==void 0)if(n&4)uA(t,r);else{n=t;try{i()}catch(o){Mi(n,o)}}r=r.next}while(r!==e)}break;case 1:if(D1(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){Mi(t,o)}break;case 5:D1(t);break;case 4:eA(e,t)}}function $1(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function U1(e){return e.tag===5||e.tag===3||e.tag===4}function G1(e){e:{for(var t=e.return;t!==null;){if(U1(t))break e;t=t.return}throw Error(K(160))}var r=t;switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:t=t.containerInfo,n=!0;break;case 4:t=t.containerInfo,n=!0;break;default:throw Error(K(161))}r.flags&16&&(Mu(t,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||U1(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue t;r.child.return=r,r=r.child}if(!(r.flags&2)){r=r.stateNode;break e}}n?Nm(e,r,t):Lm(e,r,t)}function Nm(e,t,r){var n=e.tag,i=n===5||n===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=hf));else if(n!==4&&(e=e.child,e!==null))for(Nm(e,t,r),e=e.sibling;e!==null;)Nm(e,t,r),e=e.sibling}function Lm(e,t,r){var n=e.tag,i=n===5||n===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Lm(e,t,r),e=e.sibling;e!==null;)Lm(e,t,r),e=e.sibling}function eA(e,t){for(var r=t,n=!1,i,o;;){if(!n){n=r.return;e:for(;;){if(n===null)throw Error(K(160));switch(i=n.stateNode,n.tag){case 5:o=!1;break e;case 3:i=i.containerInfo,o=!0;break e;case 4:i=i.containerInfo,o=!0;break e}n=n.return}n=!0}if(r.tag===5||r.tag===6){e:for(var a=e,s=r,u=s;;)if(j1(a,u),u.child!==null&&u.tag!==4)u.child.return=u,u=u.child;else{if(u===s)break e;for(;u.sibling===null;){if(u.return===null||u.return===s)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}o?(a=i,s=r.stateNode,a.nodeType===8?a.parentNode.removeChild(s):a.removeChild(s)):i.removeChild(r.stateNode)}else if(r.tag===4){if(r.child!==null){i=r.stateNode.containerInfo,o=!0,r.child.return=r,r=r.child;continue}}else if(j1(e,r),r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return,r.tag===4&&(n=!1)}r.sibling.return=r.return,r=r.sibling}}function np(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var n=r=r.next;do(n.tag&3)===3&&(e=n.destroy,n.destroy=void 0,e!==void 0&&e()),n=n.next;while(n!==r)}return;case 1:return;case 5:if(r=t.stateNode,r!=null){n=t.memoizedProps;var i=e!==null?e.memoizedProps:n;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,o!==null){for(r[df]=n,e==="input"&&n.type==="radio"&&n.name!=null&&GC(r,n),hm(e,i),t=hm(e,n),i=0;ii&&(i=a),r&=~o}if(r=i,r=tr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*MM(r/1960))-r,10i&&(i=a),r&=~o}if(r=i,r=sr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*FF(r/1960))-r,10 component higher in the tree to provide a loading indicator or placeholder to display.`)}Xt!==5&&(Xt=2),u=$_(u,s),h=a;do{switch(h.tag){case 3:o=u,h.flags|=4096,t&=-t,h.lanes|=t;var b=QO(h,o,t);g1(h,b);break e;case 1:o=u;var w=h.type,T=h.stateNode;if(!(h.flags&64)&&(typeof w.getDerivedStateFromError=="function"||T!==null&&typeof T.componentDidCatch=="function"&&(An===null||!An.has(T)))){h.flags|=4096,t&=-t,h.lanes|=t;var k=JO(h,o,t);g1(h,k);break e}}h=h.return}while(h!==null)}sA(r)}catch(A){t=A,At===r&&r!==null&&(At=r=r.return);continue}break}while(1)}function oA(){var e=Cf.current;return Cf.current=Tf,e===null?Tf:e}function au(e,t){var r=ve;ve|=16;var n=oA();cr===e&&rr===t||Na(e,t);do try{DM();break}catch(i){iA(e,i)}while(1);if(k_(),ve=r,Cf.current=n,At!==null)throw Error(K(261));return cr=null,rr=0,Xt}function DM(){for(;At!==null;)aA(At)}function BM(){for(;At!==null&&!_M();)aA(At)}function aA(e){var t=lA(e.alternate,e,Lo);e.memoizedProps=e.pendingProps,t===null?sA(e):At=t,U_.current=null}function sA(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&2048){if(r=PM(t),r!==null){r.flags&=2047,At=r;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(r=AM(r,t,Lo),r!==null){At=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||Lo&1073741824||!(r.mode&4)){for(var n=0,i=r.child;i!==null;)n|=i.lanes|i.childLanes,i=i.sibling;r.childLanes=n}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1a&&(s=a,a=b,b=s),s=r1(y,b),o=r1(y,a),s&&o&&(x.rangeCount!==1||x.anchorNode!==s.node||x.anchorOffset!==s.offset||x.focusNode!==o.node||x.focusOffset!==o.offset)&&(_=_.createRange(),_.setStart(s.node,s.offset),x.removeAllRanges(),b>a?(x.addRange(_),x.extend(o.node,o.offset)):(_.setEnd(o.node,o.offset),x.addRange(_)))))),_=[],x=y;x=x.parentNode;)x.nodeType===1&&_.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<_.length;y++)x=_[y],x.element.scrollLeft=x.left,x.element.scrollTop=x.top}Mc=!!Yd,Kd=Yd=null,e.current=r,ie=n;do try{for(y=e;ie!==null;){var w=ie.flags;if(w&36&&NM(y,ie.alternate,ie),w&128){_=void 0;var T=ie.ref;if(T!==null){var k=ie.stateNode;switch(ie.tag){case 5:_=k;break;default:_=k}typeof T=="function"?T(_):T.current=_}}ie=ie.nextEffect}}catch(A){if(ie===null)throw Error(K(330));Mi(ie,A),ie=ie.nextEffect}while(ie!==null);ie=null,bM(),ve=i}else e.current=r;if(Hi)Hi=!1,_u=e,ou=t;else for(ie=n;ie!==null;)t=ie.nextEffect,ie.nextEffect=null,ie.flags&8&&(w=ie,w.sibling=null,w.stateNode=null),ie=t;if(n=e.pendingLanes,n===0&&(An=null),n===1?e===Um?xu++:(xu=0,Um=e):xu=0,r=r.stateNode,Co&&typeof Co.onCommitFiberRoot=="function")try{Co.onCommitFiberRoot(A_,r,void 0,(r.current.flags&64)===64)}catch{}if(Qr(e,tr()),Of)throw Of=!1,e=Bm,Bm=null,e;return ve&8||Un(),null}function $M(){for(;ie!==null;){var e=ie.alternate;Gc||bu===null||(ie.flags&8?Gb(ie,bu)&&(Gc=!0):ie.tag===13&&LM(e,ie)&&Gb(ie,bu)&&(Gc=!0));var t=ie.flags;t&256&&RM(e,ie),!(t&512)||Hi||(Hi=!0,zu(97,function(){return eo(),null})),ie=ie.nextEffect}}function eo(){if(ou!==90){var e=97tr()-z_?Na(e,0):G_|=r),Qr(e,t)}function HM(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(ri===0&&(ri=os),t=fa(62914560&~ri),t===0&&(t=4194304)):t=Ga()===99?1:2:t=1),r=Lr(),e=bh(e,t),e!==null&&(dh(e,t,r),Qr(e,r))}var lA;lA=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||wr.current)hn=!0;else if(r&n)hn=!!(e.flags&16384);else{switch(hn=!1,t.tag){case 3:k1(t),ep();break;case 5:b1(t);break;case 1:Er(t.type)&&Bc(t);break;case 4:Cm(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var i=t.type._context;vt(vf,i._currentValue),i._currentValue=n;break;case 13:if(t.memoizedState!==null)return r&t.child.childLanes?I1(e,t,r):(vt(pt,pt.current&1),t=oi(e,t,r),t!==null?t.sibling:null);vt(pt,pt.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&64){if(n)return F1(e,t,r);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),vt(pt,pt.current),n)break;return null;case 23:case 24:return t.lanes=0,tp(e,t,r)}return oi(e,t,r)}else hn=!1;switch(t.lanes=0,t.tag){case 2:if(n=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=Ua(t,nr.current),ka(t,r),i=F_(null,t,n,e,i,r),t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Er(n)){var o=!0;Bc(t)}else o=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,R_(t);var a=n.getDerivedStateFromProps;typeof a=="function"&&yf(t,n,a,e),i.updater=_h,t.stateNode=i,i._reactInternals=t,Tm(t,n,e,r),t=km(null,t,n,!0,o,r)}else t.tag=0,yr(null,t,i,r),t=t.child;return t;case 16:i=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=i._init,i=o(i._payload),t.type=i,o=t.tag=WM(i),e=cn(i,e),o){case 0:t=Pm(null,t,i,e,r);break e;case 1:t=P1(null,t,i,e,r);break e;case 11:t=O1(null,t,i,e,r);break e;case 14:t=A1(null,t,i,cn(i.type,e),n,r);break e}throw Error(K(306,i,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:cn(n,i),Pm(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:cn(n,i),P1(e,t,n,i,r);case 3:if(k1(t),n=t.updateQueue,e===null||n===null)throw Error(K(282));if(n=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,LO(e,t),Hu(t,n,null,r),n=t.memoizedState.element,n===i)ep(),t=oi(e,t,r);else{if(i=t.stateNode,(o=i.hydrate)&&(wi=Pa(t.stateNode.containerInfo.firstChild),ii=t,o=Rn=!0),o){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(fA)}catch(e){console.error(e)}}fA(),MC.exports=tn;var hA=MC.exports;const Mn=Or(hA);const JM="_Title_main_13knx_2",eF="_Title_buttonList_13knx_9",tF="_Title_button_13knx_9",rF="_Title_button_text_13knx_43",nF="_Title_button_text_up_13knx_52",iF="_Title_backup_background_13knx_58",kt={Title_main:JM,Title_buttonList:eF,Title_button:tF,Title_button_text:rF,Title_button_text_up:nF,Title_backup_background:iF};function fn(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:Y_(e)?2:K_(e)?3:0}function Ma(e,t){return us(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function oF(e,t){return us(e)===2?e.get(t):e[t]}function dA(e,t,r){var n=us(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function pA(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Y_(e){return fF&&e instanceof Map}function K_(e){return hF&&e instanceof Set}function co(e){return e.o||e.t}function Z_(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=mA(e);delete t[st];for(var r=Fa(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=aF),Object.freeze(e),t&&Mo(e,function(r,n){return Q_(n,!0)},!0)),e}function aF(){fn(2)}function J_(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Nn(e){var t=Wm[e];return t||fn(18,e),t}function sF(e,t){Wm[e]||(Wm[e]=t)}function zm(){return Xu}function sp(e,t){t&&(Nn("Patches"),e.u=[],e.s=[],e.v=t)}function Pf(e){Hm(e),e.p.forEach(uF),e.p=null}function Hm(e){e===Xu&&(Xu=e.l)}function W1(e){return Xu={p:[],l:Xu,h:e,m:!0,_:0}}function uF(e){var t=e[st];t.i===0||t.i===1?t.j():t.g=!0}function up(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Nn("ES5").S(t,e,n),n?(r[st].P&&(Pf(t),fn(4)),ci(e)&&(e=kf(t,e),t.l||If(t,e)),t.u&&Nn("Patches").M(r[st].t,e,t.u,t.s)):e=kf(t,r,[]),Pf(t),t.u&&t.v(t.u,t.s),e!==vA?e:void 0}function kf(e,t,r){if(J_(t))return t;var n=t[st];if(!n)return Mo(t,function(s,u){return q1(e,n,t,s,u,r)},!0),t;if(n.A!==e)return t;if(!n.P)return If(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Z_(n.k):n.o,o=i,a=!1;n.i===3&&(o=new Set(i),i.clear(),a=!0),Mo(o,function(s,u){return q1(e,n,i,s,u,r,a)}),If(e,i,!1),r&&e.u&&Nn("Patches").N(n,r,e.u,e.s)}return n.o}function q1(e,t,r,n,i,o,a){if(Wi(i)){var s=kf(e,i,o&&t&&t.i!==3&&!Ma(t.R,n)?o.concat(n):void 0);if(dA(r,n,s),!Wi(s))return;e.m=!1}else a&&r.add(i);if(ci(i)&&!J_(i)){if(!e.h.D&&e._<1)return;kf(e,i),t&&t.A.l||If(e,i)}}function If(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Q_(t,r)}function lp(e,t){var r=e[st];return(r?co(r):e)[t]}function X1(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function _i(e){e.P||(e.P=!0,e.l&&_i(e.l))}function cp(e){e.o||(e.o=Z_(e.t))}function Vm(e,t,r){var n=Y_(t)?Nn("MapSet").F(t,r):K_(t)?Nn("MapSet").T(t,r):e.O?function(i,o){var a=Array.isArray(i),s={i:a?1:0,A:o?o.A:zm(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},u=s,l=Yu;a&&(u=[s],l=su);var c=Proxy.revocable(u,l),f=c.revoke,h=c.proxy;return s.k=h,s.j=f,h}(t,r):Nn("ES5").J(t,r);return(r?r.A:zm()).p.push(n),n}function lF(e){return Wi(e)||fn(22,e),function t(r){if(!ci(r))return r;var n,i=r[st],o=us(r);if(i){if(!i.P&&(i.i<4||!Nn("ES5").K(i)))return i.t;i.I=!0,n=Y1(r,o),i.I=!1}else n=Y1(r,o);return Mo(n,function(a,s){i&&oF(i.t,a)===s||dA(n,a,t(s))}),o===3?new Set(n):n}(e)}function Y1(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Z_(e)}function cF(){function e(o,a){var s=i[o];return s?s.enumerable=a:i[o]=s={configurable:!0,enumerable:a,get:function(){var u=this[st];return Yu.get(u,o)},set:function(u){var l=this[st];Yu.set(l,o,u)}},s}function t(o){for(var a=o.length-1;a>=0;a--){var s=o[a][st];if(!s.P)switch(s.i){case 5:n(s)&&_i(s);break;case 4:r(s)&&_i(s)}}}function r(o){for(var a=o.t,s=o.k,u=Fa(s),l=u.length-1;l>=0;l--){var c=u[l];if(c!==st){var f=a[c];if(f===void 0&&!Ma(a,c))return!0;var h=s[c],d=h&&h[st];if(d?d.t!==f:!pA(h,f))return!0}}var v=!!a[st];return u.length!==Fa(a).length+(v?0:1)}function n(o){var a=o.k;if(a.length!==o.t.length)return!0;var s=Object.getOwnPropertyDescriptor(a,a.length-1);if(s&&!s.get)return!0;for(var u=0;u1?m-1:0),_=1;_1?c-1:0),h=1;h=0;i--){var o=n[i];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}i>-1&&(n=n.slice(i+1));var a=Nn("Patches").$;return Wi(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},e}(),Mr=new pF,gA=Mr.produce;Mr.produceWithPatches.bind(Mr);Mr.setAutoFreeze.bind(Mr);Mr.setUseProxies.bind(Mr);Mr.applyPatches.bind(Mr);Mr.createDraft.bind(Mr);Mr.finishDraft.bind(Mr);function Dt(e){"@babel/helpers - typeof";return Dt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dt(e)}function vF(e,t){if(Dt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Dt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yA(e){var t=vF(e,"string");return Dt(t)=="symbol"?t:String(t)}function Dr(e,t,r){return t=yA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function J1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function eS(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Jt(1));return r(_A)(e,t)}if(typeof e!="function")throw new Error(Jt(2));var i=e,o=t,a=[],s=a,u=!1;function l(){s===a&&(s=a.slice())}function c(){if(u)throw new Error(Jt(3));return o}function f(g){if(typeof g!="function")throw new Error(Jt(4));if(u)throw new Error(Jt(5));var p=!0;return l(),s.push(g),function(){if(p){if(u)throw new Error(Jt(6));p=!1,l();var y=s.indexOf(g);s.splice(y,1),a=null}}}function h(g){if(!mF(g))throw new Error(Jt(7));if(typeof g.type>"u")throw new Error(Jt(8));if(u)throw new Error(Jt(9));try{u=!0,o=i(o,g)}finally{u=!1}for(var p=a=s,m=0;m"u")throw new Error(Jt(12));if(typeof r(void 0,{type:Rf.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Jt(13))})}function yF(e){for(var t=Object.keys(e),r={},n=0;n"u")throw l&&l.type,new Error(Jt(14));f[d]=p,c=c||p!==g}return c=c||o.length!==Object.keys(u).length,c?f:u}}function Nf(){for(var e=arguments.length,t=new Array(e),r=0;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]-1}var oD=iD,aD=wh;function sD(e,t){var r=this.__data__,n=aD(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var uD=sD,lD=VF,cD=JF,fD=rD,hD=oD,dD=uD;function ls(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=dj}var c0=pj,vj=Cl,mj=c0,gj=Ho,yj="[object Arguments]",_j="[object Array]",xj="[object Boolean]",bj="[object Date]",Sj="[object Error]",wj="[object Function]",Ej="[object Map]",Tj="[object Number]",Cj="[object Object]",Oj="[object RegExp]",Aj="[object Set]",Pj="[object String]",kj="[object WeakMap]",Ij="[object ArrayBuffer]",Rj="[object DataView]",Nj="[object Float32Array]",Lj="[object Float64Array]",Mj="[object Int8Array]",Fj="[object Int16Array]",Dj="[object Int32Array]",Bj="[object Uint8Array]",jj="[object Uint8ClampedArray]",$j="[object Uint16Array]",Uj="[object Uint32Array]",tt={};tt[Nj]=tt[Lj]=tt[Mj]=tt[Fj]=tt[Dj]=tt[Bj]=tt[jj]=tt[$j]=tt[Uj]=!0;tt[yj]=tt[_j]=tt[Ij]=tt[xj]=tt[Rj]=tt[bj]=tt[Sj]=tt[wj]=tt[Ej]=tt[Tj]=tt[Cj]=tt[Oj]=tt[Aj]=tt[Pj]=tt[kj]=!1;function Gj(e){return gj(e)&&mj(e.length)&&!!tt[vj(e)]}var zj=Gj;function Hj(e){return function(t){return e(t)}}var f0=Hj,Mf={exports:{}};Mf.exports;(function(e,t){var r=TA,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o&&r.process,s=function(){try{var u=i&&i.require&&i.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(Mf,Mf.exports);var h0=Mf.exports,Vj=zj,Wj=f0,vS=h0,mS=vS&&vS.isTypedArray,qj=mS?Wj(mS):Vj,RA=qj,Xj=KB,Yj=IA,Kj=hi,Zj=u0,Qj=l0,Jj=RA,e4=Object.prototype,t4=e4.hasOwnProperty;function r4(e,t){var r=Kj(e),n=!r&&Yj(e),i=!r&&!n&&Zj(e),o=!r&&!n&&!i&&Jj(e),a=r||n||i||o,s=a?Xj(e.length,String):[],u=s.length;for(var l in e)(t||t4.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Qj(l,u)))&&s.push(l);return s}var NA=r4,n4=Object.prototype;function i4(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||n4;return e===r}var d0=i4;function o4(e,t){return function(r){return e(t(r))}}var LA=o4,a4=LA,s4=a4(Object.keys,Object),u4=s4,l4=d0,c4=u4,f4=Object.prototype,h4=f4.hasOwnProperty;function d4(e){if(!l4(e))return c4(e);var t=[];for(var r in Object(e))h4.call(e,r)&&r!="constructor"&&t.push(r);return t}var p4=d4,v4=OA,m4=c0;function g4(e){return e!=null&&m4(e.length)&&!v4(e)}var MA=g4,y4=NA,_4=p4,x4=MA;function b4(e){return x4(e)?y4(e):_4(e)}var Ah=b4,S4=Oh,w4=Ah;function E4(e,t){return e&&S4(t,w4(t),e)}var T4=E4;function C4(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var O4=C4,A4=Gn,P4=d0,k4=O4,I4=Object.prototype,R4=I4.hasOwnProperty;function N4(e){if(!A4(e))return k4(e);var t=P4(e),r=[];for(var n in e)n=="constructor"&&(t||!R4.call(e,n))||r.push(n);return r}var L4=N4,M4=NA,F4=L4,D4=MA;function B4(e){return D4(e)?M4(e,!0):F4(e)}var p0=B4,j4=Oh,$4=p0;function U4(e,t){return e&&j4(t,$4(t),e)}var G4=U4,Ff={exports:{}};Ff.exports;(function(e,t){var r=mn,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var f=l.length,h=s?s(f):new l.constructor(f);return l.copy(h),h}e.exports=u})(Ff,Ff.exports);var z4=Ff.exports;function H4(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r(e[e.say=0]="say",e[e.changeBg=1]="changeBg",e[e.changeFigure=2]="changeFigure",e[e.bgm=3]="bgm",e[e.video=4]="video",e[e.pixi=5]="pixi",e[e.pixiInit=6]="pixiInit",e[e.intro=7]="intro",e[e.miniAvatar=8]="miniAvatar",e[e.changeScene=9]="changeScene",e[e.choose=10]="choose",e[e.end=11]="end",e[e.setComplexAnimation=12]="setComplexAnimation",e[e.setFilter=13]="setFilter",e[e.label=14]="label",e[e.jumpLabel=15]="jumpLabel",e[e.chooseLabel=16]="chooseLabel",e[e.setVar=17]="setVar",e[e.if=18]="if",e[e.callScene=19]="callScene",e[e.showVars=20]="showVars",e[e.unlockCg=21]="unlockCg",e[e.unlockBgm=22]="unlockBgm",e[e.filmMode=23]="filmMode",e[e.setTextbox=24]="setTextbox",e[e.setAnimation=25]="setAnimation",e[e.playEffect=26]="playEffect",e[e.setTempAnimation=27]="setTempAnimation",e[e.comment=28]="comment",e[e.setTransform=29]="setTransform",e[e.setTransition=30]="setTransition",e[e.getUserInput=31]="getUserInput",e))(de||{});const YA={oldBgName:"",bgName:"",figName:"",figNameLeft:"",figNameRight:"",freeFigure:[],figureAssociatedAnimation:[],showText:"",showTextSize:-1,showName:"",command:"",choose:[],vocal:"",playVocal:"",vocalVolume:100,bgm:{src:"",enter:0,volume:100},uiSe:"",miniAvatar:"",GameVar:{},effects:[],bgFilter:"",bgTransform:"",PerformList:[],currentDialogKey:"initial",live2dMotion:[],live2dExpression:[],currentConcatDialogPrev:"",enableFilm:"",isDisableTextbox:!1},g0=t0({name:"stage",initialState:Et(YA),reducers:{resetStageState:(e,t)=>{Object.assign(e,t.payload)},setStage:(e,t)=>{e[t.payload.key]=t.payload.value},setStageVar:(e,t)=>{e.GameVar[t.payload.key]=t.payload.value},updateEffect:(e,t)=>{const{target:r,transform:n}=t.payload,i=e.effects.findIndex(o=>o.target===r);i>=0?e.effects[i].transform=n:e.effects.push({target:r,transform:n})},removeEffectByTargetId:(e,t)=>{const r=e.effects.findIndex(n=>n.target===t.payload);r>=0&&e.effects.splice(r,1)},addPerform:(e,t)=>{e.PerformList.push(t.payload)},removePerformByName:(e,t)=>{for(let r=0;r{for(let r=0;r{const r=e.freeFigure,n=t.payload,i=r.findIndex(o=>o.key===n.key);i>=0?(r[i].basePosition=n.basePosition,r[i].name=n.name):n.name!==""&&r.push(n)},setLive2dMotion:(e,t)=>{const{target:r,motion:n}=t.payload,i=e.live2dMotion.findIndex(o=>o.target===r);i<0?e.live2dMotion.push({target:r,motion:n}):e.live2dMotion[i].motion=n},setLive2dExpression:(e,t)=>{const{target:r,expression:n}=t.payload,i=e.live2dExpression.findIndex(o=>o.target===r);i<0?e.live2dExpression.push({target:r,expression:n}):e.live2dExpression[i].expression=n}}}),{resetStageState:kh,setStage:Te,setStageVar:KA}=g0.actions,Ir=g0.actions,f5=g0.reducer;function Ql(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ZA={exports:{}};/*! +Add a component higher in the tree to provide a loading indicator or placeholder to display.`)}Qt!==5&&(Qt=2),u=_0(u,s),h=a;do{switch(h.tag){case 3:o=u,h.flags|=4096,t&=-t,h.lanes|=t;var b=UA(h,o,t);J1(h,b);break e;case 1:o=u;var w=h.type,T=h.stateNode;if(!(h.flags&64)&&(typeof w.getDerivedStateFromError=="function"||T!==null&&typeof T.componentDidCatch=="function"&&(Bn===null||!Bn.has(T)))){h.flags|=4096,t&=-t,h.lanes|=t;var k=GA(h,o,t);J1(h,k);break e}}h=h.return}while(h!==null)}KA(r)}catch(A){t=A,Rt===r&&r!==null&&(Rt=r=r.return);continue}break}while(1)}function XA(){var e=Zf.current;return Zf.current=Kf,e===null?Kf:e}function Su(e,t){var r=pe;pe|=16;var n=XA();pr===e&&ur===t||Va(e,t);do try{BF();break}catch(i){qA(e,i)}while(1);if(l0(),pe=r,Zf.current=n,Rt!==null)throw Error(K(261));return pr=null,ur=0,Qt}function BF(){for(;Rt!==null;)YA(Rt)}function jF(){for(;Rt!==null&&!xF();)YA(Rt)}function YA(e){var t=QA(e.alternate,e,Wo);e.memoizedProps=e.pendingProps,t===null?KA(e):Rt=t,x0.current=null}function KA(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&2048){if(r=kF(t),r!==null){r.flags&=2047,Rt=r;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(r=PF(r,t,Wo),r!==null){Rt=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||Wo&1073741824||!(r.mode&4)){for(var n=0,i=r.child;i!==null;)n|=i.lanes|i.childLanes,i=i.sibling;r.childLanes=n}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1a&&(s=a,a=b,b=s),s=B1(y,b),o=B1(y,a),s&&o&&(x.rangeCount!==1||x.anchorNode!==s.node||x.anchorOffset!==s.offset||x.focusNode!==o.node||x.focusOffset!==o.offset)&&(_=_.createRange(),_.setStart(s.node,s.offset),x.removeAllRanges(),b>a?(x.addRange(_),x.extend(o.node,o.offset)):(_.setEnd(o.node,o.offset),x.addRange(_)))))),_=[],x=y;x=x.parentNode;)x.nodeType===1&&_.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<_.length;y++)x=_[y],x.element.scrollLeft=x.left,x.element.scrollTop=x.top}of=!!wp,Ep=wp=null,e.current=r,ie=n;do try{for(y=e;ie!==null;){var w=ie.flags;if(w&36&&LF(y,ie.alternate,ie),w&128){_=void 0;var T=ie.ref;if(T!==null){var k=ie.stateNode;switch(ie.tag){case 5:_=k;break;default:_=k}typeof T=="function"?T(_):T.current=_}}ie=ie.nextEffect}}catch(A){if(ie===null)throw Error(K(330));Wi(ie,A),ie=ie.nextEffect}while(ie!==null);ie=null,SF(),pe=i}else e.current=r;if(to)to=!1,Fu=e,bu=t;else for(ie=n;ie!==null;)t=ie.nextEffect,ie.nextEffect=null,ie.flags&8&&(w=ie,w.sibling=null,w.stateNode=null),ie=t;if(n=e.pendingLanes,n===0&&(Bn=null),n===1?e===yg?Du++:(Du=0,yg=e):Du=0,r=r.stateNode,Bo&&typeof Bo.onCommitFiberRoot=="function")try{Bo.onCommitFiberRoot(s0,r,void 0,(r.current.flags&64)===64)}catch{}if(on(e,sr()),Qf)throw Qf=!1,e=vg,vg=null,e;return pe&8||Qn(),null}function UF(){for(;ie!==null;){var e=ie.alternate;hf||Bu===null||(ie.flags&8?E1(ie,Bu)&&(hf=!0):ie.tag===13&&MF(e,ie)&&E1(ie,Bu)&&(hf=!0));var t=ie.flags;t&256&&NF(e,ie),!(t&512)||to||(to=!0,ol(97,function(){return fo(),null})),ie=ie.nextEffect}}function fo(){if(bu!==90){var e=97sr()-S0?Va(e,0):b0|=r),on(e,t)}function VF(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(di===0&&(di=xs),t=wa(62914560&~di),t===0&&(t=4194304)):t=rs()===99?1:2:t=1),r=$r(),e=Vh(e,t),e!==null&&(Dh(e,t,r),on(e,r))}var QA;QA=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||Ar.current)yn=!0;else if(r&n)yn=!!(e.flags&16384);else{switch(yn=!1,t.tag){case 3:hS(t),Ap();break;case 5:nS(t);break;case 1:Pr(t.type)&&uf(t);break;case 4:ng(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var i=t.type._context;_t($f,i._currentValue),i._currentValue=n;break;case 13:if(t.memoizedState!==null)return r&t.child.childLanes?dS(e,t,r):(_t(yt,yt.current&1),t=mi(e,t,r),t!==null?t.sibling:null);_t(yt,yt.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&64){if(n)return yS(e,t,r);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),_t(yt,yt.current),n)break;return null;case 23:case 24:return t.lanes=0,Pp(e,t,r)}return mi(e,t,r)}else yn=!1;switch(t.lanes=0,t.tag){case 2:if(n=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=ts(t,lr.current),Ga(t,r),i=v0(null,t,n,e,i,r),t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pr(n)){var o=!0;uf(t)}else o=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,f0(t);var a=n.getDerivedStateFromProps;typeof a=="function"&&zf(t,n,a,e),i.updater=zh,t.stateNode=i,i._reactInternals=t,rg(t,n,e,r),t=sg(null,t,n,!0,o,r)}else t.tag=0,Sr(null,t,i,r),t=t.child;return t;case 16:i=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=i._init,i=o(i._payload),t.type=i,o=t.tag=qF(i),e=mn(i,e),o){case 0:t=ag(null,t,i,e,r);break e;case 1:t=fS(null,t,i,e,r);break e;case 11:t=lS(null,t,i,e,r);break e;case 14:t=cS(null,t,i,mn(i.type,e),n,r);break e}throw Error(K(306,i,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:mn(n,i),ag(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:mn(n,i),fS(e,t,n,i,r);case 3:if(hS(t),n=t.updateQueue,e===null||n===null)throw Error(K(282));if(n=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,wA(e,t),al(t,n,null,r),n=t.memoizedState.element,n===i)Ap(),t=mi(e,t,r);else{if(i=t.stateNode,(o=i.hydrate)&&(Mi=Ua(t.stateNode.containerInfo.firstChild),vi=t,o=Gn=!0),o){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(eP)}catch(e){console.error(e)}}eP(),EO.exports=un;var tP=EO.exports;const qn=Nr(tP);const eD="_Title_main_xpe81_1",tD="_Title_buttonList_xpe81_8",rD="_Title_button_xpe81_8",nD="_Title_button_text_xpe81_41",iD="_Title_backup_background_xpe81_48",Mr={Title_main:eD,Title_buttonList:tD,Title_button:rD,Title_button_text:nD,Title_backup_background:iD};function gn(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:A0(e)?2:P0(e)?3:0}function qa(e,t){return ws(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function oD(e,t){return ws(e)===2?e.get(t):e[t]}function rP(e,t,r){var n=ws(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function nP(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function A0(e){return fD&&e instanceof Map}function P0(e){return hD&&e instanceof Set}function So(e){return e.o||e.t}function k0(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=oP(e);delete t[ft];for(var r=Xa(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=aD),Object.freeze(e),t&&qo(e,function(r,n){return I0(n,!0)},!0)),e}function aD(){gn(2)}function R0(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function zn(e){var t=wg[e];return t||gn(18,e),t}function sD(e,t){wg[e]||(wg[e]=t)}function xg(){return cl}function Mp(e,t){t&&(zn("Patches"),e.u=[],e.s=[],e.v=t)}function eh(e){bg(e),e.p.forEach(uD),e.p=null}function bg(e){e===cl&&(cl=e.l)}function AS(e){return cl={p:[],l:cl,h:e,m:!0,_:0}}function uD(e){var t=e[ft];t.i===0||t.i===1?t.j():t.g=!0}function Fp(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||zn("ES5").S(t,e,n),n?(r[ft].P&&(eh(t),gn(4)),Si(e)&&(e=th(t,e),t.l||rh(t,e)),t.u&&zn("Patches").M(r[ft].t,e,t.u,t.s)):e=th(t,r,[]),eh(t),t.u&&t.v(t.u,t.s),e!==iP?e:void 0}function th(e,t,r){if(R0(t))return t;var n=t[ft];if(!n)return qo(t,function(s,u){return PS(e,n,t,s,u,r)},!0),t;if(n.A!==e)return t;if(!n.P)return rh(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=k0(n.k):n.o,o=i,a=!1;n.i===3&&(o=new Set(i),i.clear(),a=!0),qo(o,function(s,u){return PS(e,n,i,s,u,r,a)}),rh(e,i,!1),r&&e.u&&zn("Patches").N(n,r,e.u,e.s)}return n.o}function PS(e,t,r,n,i,o,a){if(no(i)){var s=th(e,i,o&&t&&t.i!==3&&!qa(t.R,n)?o.concat(n):void 0);if(rP(r,n,s),!no(s))return;e.m=!1}else a&&r.add(i);if(Si(i)&&!R0(i)){if(!e.h.D&&e._<1)return;th(e,i),t&&t.A.l||rh(e,i)}}function rh(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&I0(t,r)}function Dp(e,t){var r=e[ft];return(r?So(r):e)[t]}function kS(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Ii(e){e.P||(e.P=!0,e.l&&Ii(e.l))}function Bp(e){e.o||(e.o=k0(e.t))}function Sg(e,t,r){var n=A0(t)?zn("MapSet").F(t,r):P0(t)?zn("MapSet").T(t,r):e.O?function(i,o){var a=Array.isArray(i),s={i:a?1:0,A:o?o.A:xg(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},u=s,l=fl;a&&(u=[s],l=wu);var c=Proxy.revocable(u,l),f=c.revoke,h=c.proxy;return s.k=h,s.j=f,h}(t,r):zn("ES5").J(t,r);return(r?r.A:xg()).p.push(n),n}function lD(e){return no(e)||gn(22,e),function t(r){if(!Si(r))return r;var n,i=r[ft],o=ws(r);if(i){if(!i.P&&(i.i<4||!zn("ES5").K(i)))return i.t;i.I=!0,n=IS(r,o),i.I=!1}else n=IS(r,o);return qo(n,function(a,s){i&&oD(i.t,a)===s||rP(n,a,t(s))}),o===3?new Set(n):n}(e)}function IS(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return k0(e)}function cD(){function e(o,a){var s=i[o];return s?s.enumerable=a:i[o]=s={configurable:!0,enumerable:a,get:function(){var u=this[ft];return fl.get(u,o)},set:function(u){var l=this[ft];fl.set(l,o,u)}},s}function t(o){for(var a=o.length-1;a>=0;a--){var s=o[a][ft];if(!s.P)switch(s.i){case 5:n(s)&&Ii(s);break;case 4:r(s)&&Ii(s)}}}function r(o){for(var a=o.t,s=o.k,u=Xa(s),l=u.length-1;l>=0;l--){var c=u[l];if(c!==ft){var f=a[c];if(f===void 0&&!qa(a,c))return!0;var h=s[c],d=h&&h[ft];if(d?d.t!==f:!nP(h,f))return!0}}var v=!!a[ft];return u.length!==Xa(a).length+(v?0:1)}function n(o){var a=o.k;if(a.length!==o.t.length)return!0;var s=Object.getOwnPropertyDescriptor(a,a.length-1);if(s&&!s.get)return!0;for(var u=0;u1?m-1:0),_=1;_1?c-1:0),h=1;h=0;i--){var o=n[i];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}i>-1&&(n=n.slice(i+1));var a=zn("Patches").$;return no(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},e}(),Gr=new pD,aP=Gr.produce;Gr.produceWithPatches.bind(Gr);Gr.setAutoFreeze.bind(Gr);Gr.setUseProxies.bind(Gr);Gr.applyPatches.bind(Gr);Gr.createDraft.bind(Gr);Gr.finishDraft.bind(Gr);function $t(e){"@babel/helpers - typeof";return $t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$t(e)}function vD(e,t){if($t(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($t(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sP(e){var t=vD(e,"string");return $t(t)=="symbol"?t:String(t)}function Hr(e,t,r){return t=sP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function FS(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ir(1));return r(uP)(e,t)}if(typeof e!="function")throw new Error(ir(2));var i=e,o=t,a=[],s=a,u=!1;function l(){s===a&&(s=a.slice())}function c(){if(u)throw new Error(ir(3));return o}function f(g){if(typeof g!="function")throw new Error(ir(4));if(u)throw new Error(ir(5));var p=!0;return l(),s.push(g),function(){if(p){if(u)throw new Error(ir(6));p=!1,l();var y=s.indexOf(g);s.splice(y,1),a=null}}}function h(g){if(!mD(g))throw new Error(ir(7));if(typeof g.type>"u")throw new Error(ir(8));if(u)throw new Error(ir(9));try{u=!0,o=i(o,g)}finally{u=!1}for(var p=a=s,m=0;m"u")throw new Error(ir(12));if(typeof r(void 0,{type:nh.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ir(13))})}function yD(e){for(var t=Object.keys(e),r={},n=0;n"u")throw l&&l.type,new Error(ir(14));f[d]=p,c=c||p!==g}return c=c||o.length!==Object.keys(u).length,c?f:u}}function ih(){for(var e=arguments.length,t=new Array(e),r=0;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]-1}var o3=i3,a3=qh;function s3(e,t){var r=this.__data__,n=a3(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var u3=s3,l3=VD,c3=JD,f3=r3,h3=o3,d3=u3;function Es(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=d4}var z0=p4,v4=Wl,m4=z0,g4=ra,y4="[object Arguments]",_4="[object Array]",x4="[object Boolean]",b4="[object Date]",S4="[object Error]",w4="[object Function]",E4="[object Map]",T4="[object Number]",C4="[object Object]",O4="[object RegExp]",A4="[object Set]",P4="[object String]",k4="[object WeakMap]",I4="[object ArrayBuffer]",R4="[object DataView]",N4="[object Float32Array]",L4="[object Float64Array]",M4="[object Int8Array]",F4="[object Int16Array]",D4="[object Int32Array]",B4="[object Uint8Array]",j4="[object Uint8ClampedArray]",$4="[object Uint16Array]",U4="[object Uint32Array]",it={};it[N4]=it[L4]=it[M4]=it[F4]=it[D4]=it[B4]=it[j4]=it[$4]=it[U4]=!0;it[y4]=it[_4]=it[I4]=it[x4]=it[R4]=it[b4]=it[S4]=it[w4]=it[E4]=it[T4]=it[C4]=it[O4]=it[A4]=it[P4]=it[k4]=!1;function G4(e){return g4(e)&&m4(e.length)&&!!it[v4(e)]}var z4=G4;function H4(e){return function(t){return e(t)}}var H0=H4,ah={exports:{}};ah.exports;(function(e,t){var r=pP,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o&&r.process,s=function(){try{var u=i&&i.require&&i.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(ah,ah.exports);var V0=ah.exports,V4=z4,W4=H0,ZS=V0,QS=ZS&&ZS.isTypedArray,q4=QS?W4(QS):V4,bP=q4,X4=Kj,Y4=xP,K4=Ei,Z4=U0,Q4=G0,J4=bP,e$=Object.prototype,t$=e$.hasOwnProperty;function r$(e,t){var r=K4(e),n=!r&&Y4(e),i=!r&&!n&&Z4(e),o=!r&&!n&&!i&&J4(e),a=r||n||i||o,s=a?X4(e.length,String):[],u=s.length;for(var l in e)(t||t$.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Q4(l,u)))&&s.push(l);return s}var SP=r$,n$=Object.prototype;function i$(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||n$;return e===r}var W0=i$;function o$(e,t){return function(r){return e(t(r))}}var wP=o$,a$=wP,s$=a$(Object.keys,Object),u$=s$,l$=W0,c$=u$,f$=Object.prototype,h$=f$.hasOwnProperty;function d$(e){if(!l$(e))return c$(e);var t=[];for(var r in Object(e))h$.call(e,r)&&r!="constructor"&&t.push(r);return t}var p$=d$,v$=mP,m$=z0;function g$(e){return e!=null&&m$(e.length)&&!v$(e)}var EP=g$,y$=SP,_$=p$,x$=EP;function b$(e){return x$(e)?y$(e):_$(e)}var Qh=b$,S$=Zh,w$=Qh;function E$(e,t){return e&&S$(t,w$(t),e)}var T$=E$;function C$(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var O$=C$,A$=Jn,P$=W0,k$=O$,I$=Object.prototype,R$=I$.hasOwnProperty;function N$(e){if(!A$(e))return k$(e);var t=P$(e),r=[];for(var n in e)n=="constructor"&&(t||!R$.call(e,n))||r.push(n);return r}var L$=N$,M$=SP,F$=L$,D$=EP;function B$(e){return D$(e)?M$(e,!0):F$(e)}var q0=B$,j$=Zh,$$=q0;function U$(e,t){return e&&j$(t,$$(t),e)}var G$=U$,sh={exports:{}};sh.exports;(function(e,t){var r=En,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var f=l.length,h=s?s(f):new l.constructor(f);return l.copy(h),h}e.exports=u})(sh,sh.exports);var z$=sh.exports;function H$(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r(e[e.say=0]="say",e[e.changeBg=1]="changeBg",e[e.changeFigure=2]="changeFigure",e[e.bgm=3]="bgm",e[e.video=4]="video",e[e.pixi=5]="pixi",e[e.pixiInit=6]="pixiInit",e[e.intro=7]="intro",e[e.miniAvatar=8]="miniAvatar",e[e.changeScene=9]="changeScene",e[e.choose=10]="choose",e[e.end=11]="end",e[e.setComplexAnimation=12]="setComplexAnimation",e[e.setFilter=13]="setFilter",e[e.label=14]="label",e[e.jumpLabel=15]="jumpLabel",e[e.chooseLabel=16]="chooseLabel",e[e.setVar=17]="setVar",e[e.if=18]="if",e[e.callScene=19]="callScene",e[e.showVars=20]="showVars",e[e.unlockCg=21]="unlockCg",e[e.unlockBgm=22]="unlockBgm",e[e.filmMode=23]="filmMode",e[e.setTextbox=24]="setTextbox",e[e.setAnimation=25]="setAnimation",e[e.playEffect=26]="playEffect",e[e.setTempAnimation=27]="setTempAnimation",e[e.comment=28]="comment",e[e.setTransform=29]="setTransform",e[e.setTransition=30]="setTransition",e[e.getUserInput=31]="getUserInput",e[e.applyStyle=32]="applyStyle",e))(ke||{});const BP={oldBgName:"",bgName:"",figName:"",figNameLeft:"",figNameRight:"",freeFigure:[],figureAssociatedAnimation:[],showText:"",showTextSize:-1,showName:"",command:"",choose:[],vocal:"",playVocal:"",vocalVolume:100,bgm:{src:"",enter:0,volume:100},uiSe:"",miniAvatar:"",GameVar:{},effects:[],bgFilter:"",bgTransform:"",PerformList:[],currentDialogKey:"initial",live2dMotion:[],live2dExpression:[],currentConcatDialogPrev:"",enableFilm:"",isDisableTextbox:!1,replacedUIlable:{}},K0=L0({name:"stage",initialState:At(BP),reducers:{resetStageState:(e,t)=>{Object.assign(e,t.payload)},setStage:(e,t)=>{e[t.payload.key]=t.payload.value},setStageVar:(e,t)=>{e.GameVar[t.payload.key]=t.payload.value},updateEffect:(e,t)=>{const{target:r,transform:n}=t.payload,i=e.effects.findIndex(o=>o.target===r);i>=0?e.effects[i].transform=n:e.effects.push({target:r,transform:n})},removeEffectByTargetId:(e,t)=>{const r=e.effects.findIndex(n=>n.target===t.payload);r>=0&&e.effects.splice(r,1)},addPerform:(e,t)=>{e.PerformList.push(t.payload)},removePerformByName:(e,t)=>{for(let r=0;r{for(let r=0;r{const r=e.freeFigure,n=t.payload,i=r.findIndex(o=>o.key===n.key);i>=0?(r[i].basePosition=n.basePosition,r[i].name=n.name):n.name!==""&&r.push(n)},setLive2dMotion:(e,t)=>{const{target:r,motion:n}=t.payload,i=e.live2dMotion.findIndex(o=>o.target===r);i<0?e.live2dMotion.push({target:r,motion:n}):e.live2dMotion[i].motion=n},setLive2dExpression:(e,t)=>{const{target:r,expression:n}=t.payload,i=e.live2dExpression.findIndex(o=>o.target===r);i<0?e.live2dExpression.push({target:r,expression:n}):e.live2dExpression[i].expression=n},replaceUIlable:(e,t)=>{e.replacedUIlable[t.payload[0]]=t.payload[1]}}}),{resetStageState:ed,setStage:Ee,setStageVar:jP}=K0.actions,Er=K0.actions,f6=K0.reducer;function _c(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var $P={exports:{}};/*! localForage -- Offline Storage, Improved Version 1.10.0 https://localforage.github.io/localForage (c) 2013-2017 Mozilla, Apache License 2.0 -*/(function(e,t){(function(r){e.exports=r()})(function(){return function r(n,i,o){function a(l,c){if(!i[l]){if(!n[l]){var f=typeof Ql=="function"&&Ql;if(!c&&f)return f(l,!0);if(s)return s(l,!0);var h=new Error("Cannot find module '"+l+"'");throw h.code="MODULE_NOT_FOUND",h}var d=i[l]={exports:{}};n[l][0].call(d.exports,function(v){var g=n[l][1][v];return a(g||v)},d,d.exports,r,n,i,o)}return i[l].exports}for(var s=typeof Ql=="function"&&Ql,u=0;u"u"&&r(3);var f=Promise;function h(E,I){I&&E.then(function(C){I(null,C)},function(C){I(C)})}function d(E,I,C){typeof I=="function"&&E.then(I),typeof C=="function"&&E.catch(C)}function v(E){return typeof E!="string"&&(console.warn(E+" used as a key, but it is not a string."),E=String(E)),E}function g(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var p="local-forage-detect-blob-support",m=void 0,y={},_=Object.prototype.toString,x="readonly",b="readwrite";function w(E){for(var I=E.length,C=new ArrayBuffer(I),N=new Uint8Array(C),M=0;M=43)}}).catch(function(){return!1})}function k(E){return typeof m=="boolean"?f.resolve(m):T(E).then(function(I){return m=I,m})}function A(E){var I=y[E.name],C={};C.promise=new f(function(N,M){C.resolve=N,C.reject=M}),I.deferredOperations.push(C),I.dbReady?I.dbReady=I.dbReady.then(function(){return C.promise}):I.dbReady=C.promise}function P(E){var I=y[E.name],C=I.deferredOperations.pop();if(C)return C.resolve(),C.promise}function F(E,I){var C=y[E.name],N=C.deferredOperations.pop();if(N)return N.reject(I),N.promise}function D(E,I){return new f(function(C,N){if(y[E.name]=y[E.name]||V(),E.db)if(I)A(E),E.db.close();else return C(E.db);var M=[E.name];I&&M.push(E.version);var R=u.open.apply(u,M);I&&(R.onupgradeneeded=function(B){var U=R.result;try{U.createObjectStore(E.storeName),B.oldVersion<=1&&U.createObjectStore(p)}catch(W){if(W.name==="ConstraintError")console.warn('The database "'+E.name+'" has been upgraded from version '+B.oldVersion+" to version "+B.newVersion+', but the storage "'+E.storeName+'" already exists.');else throw W}}),R.onerror=function(B){B.preventDefault(),N(R.error)},R.onsuccess=function(){var B=R.result;B.onversionchange=function(U){U.target.close()},C(B),P(E)}})}function H(E){return D(E,!1)}function re(E){return D(E,!0)}function z(E,I){if(!E.db)return!0;var C=!E.db.objectStoreNames.contains(E.storeName),N=E.versionE.db.version;if(N&&(E.version!==I&&console.warn('The database "'+E.name+`" can't be downgraded from version `+E.db.version+" to version "+E.version+"."),E.version=E.db.version),M||C){if(C){var R=E.db.version+1;R>E.version&&(E.version=R)}return!0}return!1}function q(E){return new f(function(I,C){var N=new FileReader;N.onerror=C,N.onloadend=function(M){var R=btoa(M.target.result||"");I({__local_forage_encoded_blob:!0,data:R,type:E.type})},N.readAsBinaryString(E)})}function ue(E){var I=w(atob(E.data));return c([I],{type:E.type})}function De(E){return E&&E.__local_forage_encoded_blob}function ge(E){var I=this,C=I._initReady().then(function(){var N=y[I._dbInfo.name];if(N&&N.dbReady)return N.dbReady});return d(C,E,E),C}function Q(E){A(E);for(var I=y[E.name],C=I.forages,N=0;N0&&(!E.db||R.name==="InvalidStateError"||R.name==="NotFoundError"))return f.resolve().then(function(){if(!E.db||R.name==="NotFoundError"&&!E.db.objectStoreNames.contains(E.storeName)&&E.version<=E.db.version)return E.db&&(E.version=E.db.version+1),re(E)}).then(function(){return Q(E).then(function(){L(E,I,C,N-1)})}).catch(C);C(R)}}function V(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function ee(E){var I=this,C={db:null};if(E)for(var N in E)C[N]=E[N];var M=y[C.name];M||(M=V(),y[C.name]=M),M.forages.push(I),I._initReady||(I._initReady=I.ready,I.ready=ge);var R=[];function B(){return f.resolve()}for(var U=0;U>4,J[M++]=(B&15)<<4|U>>2,J[M++]=(U&3)<<6|W&63;return X}function Id(E){var I=new Uint8Array(E),C="",N;for(N=0;N>2],C+=ot[(I[N]&3)<<4|I[N+1]>>4],C+=ot[(I[N+1]&15)<<2|I[N+2]>>6],C+=ot[I[N+2]&63];return I.length%3===2?C=C.substring(0,C.length-1)+"=":I.length%3===1&&(C=C.substring(0,C.length-2)+"=="),C}function nN(E,I){var C="";if(E&&(C=xb.call(E)),E&&(C==="[object ArrayBuffer]"||E.buffer&&xb.call(E.buffer)==="[object ArrayBuffer]")){var N,M=sr;E instanceof ArrayBuffer?(N=E,M+=di):(N=E.buffer,C==="[object Int8Array]"?M+=Cs:C==="[object Uint8Array]"?M+=Os:C==="[object Uint8ClampedArray]"?M+=As:C==="[object Int16Array]"?M+=db:C==="[object Uint16Array]"?M+=vb:C==="[object Int32Array]"?M+=pb:C==="[object Uint32Array]"?M+=mb:C==="[object Float32Array]"?M+=gb:C==="[object Float64Array]"?M+=yb:I(new Error("Failed to get type for BinaryArray"))),I(M+Id(N))}else if(C==="[object Blob]"){var R=new FileReader;R.onload=function(){var B=Kt+E.type+"~"+Id(this.result);I(sr+Yo+B)},R.readAsArrayBuffer(E)}else try{I(JSON.stringify(E))}catch(B){console.error("Couldn't convert value into a JSON string: ",E),I(null,B)}}function iN(E){if(E.substring(0,xn)!==sr)return JSON.parse(E);var I=E.substring(_b),C=E.substring(xn,_b),N;if(C===Yo&&Ne.test(I)){var M=I.match(Ne);N=M[1],I=I.substring(M[0].length)}var R=bb(I);switch(C){case di:return R;case Yo:return c([R],{type:N});case Cs:return new Int8Array(R);case Os:return new Uint8Array(R);case As:return new Uint8ClampedArray(R);case db:return new Int16Array(R);case vb:return new Uint16Array(R);case pb:return new Int32Array(R);case mb:return new Uint32Array(R);case gb:return new Float32Array(R);case yb:return new Float64Array(R);default:throw new Error("Unkown type: "+C)}}var Rd={serialize:nN,deserialize:iN,stringToBuffer:bb,bufferToString:Id};function Sb(E,I,C,N){E.executeSql("CREATE TABLE IF NOT EXISTS "+I.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],C,N)}function oN(E){var I=this,C={db:null};if(E)for(var N in E)C[N]=typeof E[N]!="string"?E[N].toString():E[N];var M=new f(function(R,B){try{C.db=openDatabase(C.name,String(C.version),C.description,C.size)}catch(U){return B(U)}C.db.transaction(function(U){Sb(U,C,function(){I._dbInfo=C,R()},function(W,X){B(X)})},B)});return C.serializer=Rd,M}function pi(E,I,C,N,M,R){E.executeSql(C,N,M,function(B,U){U.code===U.SYNTAX_ERR?B.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[I.storeName],function(W,X){X.rows.length?R(W,U):Sb(W,I,function(){W.executeSql(C,N,M,R)},R)},R):R(B,U)},R)}function aN(E,I){var C=this;E=v(E);var N=new f(function(M,R){C.ready().then(function(){var B=C._dbInfo;B.db.transaction(function(U){pi(U,B,"SELECT * FROM "+B.storeName+" WHERE key = ? LIMIT 1",[E],function(W,X){var J=X.rows.length?X.rows.item(0).value:null;J&&(J=B.serializer.deserialize(J)),M(J)},function(W,X){R(X)})})}).catch(R)});return h(N,I),N}function sN(E,I){var C=this,N=new f(function(M,R){C.ready().then(function(){var B=C._dbInfo;B.db.transaction(function(U){pi(U,B,"SELECT * FROM "+B.storeName,[],function(W,X){for(var J=X.rows,se=J.length,Ce=0;Ce0){B(wb.apply(M,[E,W,C,N-1]));return}U(Ce)}})})}).catch(U)});return h(R,C),R}function uN(E,I,C){return wb.apply(this,[E,I,C,1])}function lN(E,I){var C=this;E=v(E);var N=new f(function(M,R){C.ready().then(function(){var B=C._dbInfo;B.db.transaction(function(U){pi(U,B,"DELETE FROM "+B.storeName+" WHERE key = ?",[E],function(){M()},function(W,X){R(X)})})}).catch(R)});return h(N,I),N}function cN(E){var I=this,C=new f(function(N,M){I.ready().then(function(){var R=I._dbInfo;R.db.transaction(function(B){pi(B,R,"DELETE FROM "+R.storeName,[],function(){N()},function(U,W){M(W)})})}).catch(M)});return h(C,E),C}function fN(E){var I=this,C=new f(function(N,M){I.ready().then(function(){var R=I._dbInfo;R.db.transaction(function(B){pi(B,R,"SELECT COUNT(key) as c FROM "+R.storeName,[],function(U,W){var X=W.rows.item(0).c;N(X)},function(U,W){M(W)})})}).catch(M)});return h(C,E),C}function hN(E,I){var C=this,N=new f(function(M,R){C.ready().then(function(){var B=C._dbInfo;B.db.transaction(function(U){pi(U,B,"SELECT key FROM "+B.storeName+" WHERE id = ? LIMIT 1",[E+1],function(W,X){var J=X.rows.length?X.rows.item(0).key:null;M(J)},function(W,X){R(X)})})}).catch(R)});return h(N,I),N}function dN(E){var I=this,C=new f(function(N,M){I.ready().then(function(){var R=I._dbInfo;R.db.transaction(function(B){pi(B,R,"SELECT key FROM "+R.storeName,[],function(U,W){for(var X=[],J=0;J '__WebKitDatabaseInfoTable__'",[],function(M,R){for(var B=[],U=0;U0}function xN(E){var I=this,C={};if(E)for(var N in E)C[N]=E[N];return C.keyPrefix=Eb(E,I._defaultConfig),_N()?(I._dbInfo=C,C.serializer=Rd,f.resolve()):f.reject()}function bN(E){var I=this,C=I.ready().then(function(){for(var N=I._dbInfo.keyPrefix,M=localStorage.length-1;M>=0;M--){var R=localStorage.key(M);R.indexOf(N)===0&&localStorage.removeItem(R)}});return h(C,E),C}function SN(E,I){var C=this;E=v(E);var N=C.ready().then(function(){var M=C._dbInfo,R=localStorage.getItem(M.keyPrefix+E);return R&&(R=M.serializer.deserialize(R)),R});return h(N,I),N}function wN(E,I){var C=this,N=C.ready().then(function(){for(var M=C._dbInfo,R=M.keyPrefix,B=R.length,U=localStorage.length,W=1,X=0;X=0;B--){var U=localStorage.key(B);U.indexOf(R)===0&&localStorage.removeItem(U)}}):M=f.reject("Invalid arguments"),h(M,I),M}var kN={_driver:"localStorageWrapper",_initStorage:xN,_support:gN(),iterate:wN,getItem:SN,setItem:AN,removeItem:ON,clear:bN,length:CN,key:EN,keys:TN,dropInstance:PN},IN=function(I,C){return I===C||typeof I=="number"&&typeof C=="number"&&isNaN(I)&&isNaN(C)},RN=function(I,C){for(var N=I.length,M=0;M"u"?"undefined":o(C))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var N in C){if(N==="storeName"&&(C[N]=C[N].replace(/\W/g,"_")),N==="version"&&typeof C[N]!="number")return new Error("Database version must be a number.");this._config[N]=C[N]}return"driver"in C&&C.driver?this.setDriver(this._config.driver):!0}else return typeof C=="string"?this._config[C]:this._config},E.prototype.defineDriver=function(C,N,M){var R=new f(function(B,U){try{var W=C._driver,X=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!C._driver){U(X);return}for(var J=Nd.concat("_initStorage"),se=0,Ce=J.length;se"u"}function d5(e){return e!==null&&!Jm(e)&&e.constructor!==null&&!Jm(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function p5(e){return Vo.call(e)==="[object ArrayBuffer]"}function v5(e){return typeof FormData<"u"&&e instanceof FormData}function m5(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function g5(e){return typeof e=="string"}function y5(e){return typeof e=="number"}function JA(e){return e!==null&&typeof e=="object"}function Vc(e){if(Vo.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function _5(e){return Vo.call(e)==="[object Date]"}function x5(e){return Vo.call(e)==="[object File]"}function b5(e){return Vo.call(e)==="[object Blob]"}function eP(e){return Vo.call(e)==="[object Function]"}function S5(e){return JA(e)&&eP(e.pipe)}function w5(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function E5(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function T5(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function x0(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),_0(e))for(var r=0,n=e.length;r"u"||(Qo.isArray(u)?l=l+"[]":u=[u],Qo.forEach(u,function(f){Qo.isDate(f)?f=f.toISOString():Qo.isObject(f)&&(f=JSON.stringify(f)),o.push(RS(l)+"="+RS(f))}))}),i=o.join("&")}if(i){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},A5=Br;function Ih(){this.handlers=[]}Ih.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};Ih.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Ih.prototype.forEach=function(t){A5.forEach(this.handlers,function(n){n!==null&&t(n)})};var P5=Ih,k5=Br,I5=function(t,r){k5.forEach(t,function(i,o){o!==r&&o.toUpperCase()===r.toUpperCase()&&(t[r]=i,delete t[o])})},rP=function(t,r,n,i,o){return t.config=r,n&&(t.code=n),t.request=i,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},vp,NS;function nP(){if(NS)return vp;NS=1;var e=rP;return vp=function(r,n,i,o,a){var s=new Error(r);return e(s,n,i,o,a)},vp}var mp,LS;function R5(){if(LS)return mp;LS=1;var e=nP();return mp=function(r,n,i){var o=i.config.validateStatus;!i.status||!o||o(i.status)?r(i):n(e("Request failed with status code "+i.status,i.config,null,i.request,i))},mp}var gp,MS;function N5(){if(MS)return gp;MS=1;var e=Br;return gp=e.isStandardBrowserEnv()?function(){return{write:function(n,i,o,a,s,u){var l=[];l.push(n+"="+encodeURIComponent(i)),e.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),e.isString(a)&&l.push("path="+a),e.isString(s)&&l.push("domain="+s),u===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){var i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),gp}var yp,FS;function L5(){return FS||(FS=1,yp=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}),yp}var _p,DS;function M5(){return DS||(DS=1,_p=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),_p}var xp,BS;function F5(){if(BS)return xp;BS=1;var e=L5(),t=M5();return xp=function(n,i){return n&&!e(i)?t(n,i):i},xp}var bp,jS;function D5(){if(jS)return bp;jS=1;var e=Br,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return bp=function(n){var i={},o,a,s;return n&&e.forEach(n.split(` -`),function(l){if(s=l.indexOf(":"),o=e.trim(l.substr(0,s)).toLowerCase(),a=e.trim(l.substr(s+1)),o){if(i[o]&&t.indexOf(o)>=0)return;o==="set-cookie"?i[o]=(i[o]?i[o]:[]).concat([a]):i[o]=i[o]?i[o]+", "+a:a}}),i},bp}var Sp,$S;function B5(){if($S)return Sp;$S=1;var e=Br;return Sp=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),i;function o(a){var s=a;return r&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=o(window.location.href),function(s){var u=e.isString(s)?o(s):s;return u.protocol===i.protocol&&u.host===i.host}}():function(){return function(){return!0}}(),Sp}var wp,US;function Rh(){if(US)return wp;US=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,wp=e,wp}var Ep,GS;function zS(){if(GS)return Ep;GS=1;var e=Br,t=R5(),r=N5(),n=tP,i=F5(),o=D5(),a=B5(),s=nP(),u=Nh(),l=Rh();return Ep=function(f){return new Promise(function(d,v){var g=f.data,p=f.headers,m=f.responseType,y;function _(){f.cancelToken&&f.cancelToken.unsubscribe(y),f.signal&&f.signal.removeEventListener("abort",y)}e.isFormData(g)&&delete p["Content-Type"];var x=new XMLHttpRequest;if(f.auth){var b=f.auth.username||"",w=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";p.Authorization="Basic "+btoa(b+":"+w)}var T=i(f.baseURL,f.url);x.open(f.method.toUpperCase(),n(T,f.params,f.paramsSerializer),!0),x.timeout=f.timeout;function k(){if(x){var P="getAllResponseHeaders"in x?o(x.getAllResponseHeaders()):null,F=!m||m==="text"||m==="json"?x.responseText:x.response,D={data:F,status:x.status,statusText:x.statusText,headers:P,config:f,request:x};t(function(re){d(re),_()},function(re){v(re),_()},D),x=null}}if("onloadend"in x?x.onloadend=k:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(k)},x.onabort=function(){x&&(v(s("Request aborted",f,"ECONNABORTED",x)),x=null)},x.onerror=function(){v(s("Network Error",f,null,x)),x=null},x.ontimeout=function(){var F=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",D=f.transitional||u.transitional;f.timeoutErrorMessage&&(F=f.timeoutErrorMessage),v(s(F,f,D.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",x)),x=null},e.isStandardBrowserEnv()){var A=(f.withCredentials||a(T))&&f.xsrfCookieName?r.read(f.xsrfCookieName):void 0;A&&(p[f.xsrfHeaderName]=A)}"setRequestHeader"in x&&e.forEach(p,function(F,D){typeof g>"u"&&D.toLowerCase()==="content-type"?delete p[D]:x.setRequestHeader(D,F)}),e.isUndefined(f.withCredentials)||(x.withCredentials=!!f.withCredentials),m&&m!=="json"&&(x.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&x.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&x.upload&&x.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(y=function(P){x&&(v(!P||P&&P.type?new l("canceled"):P),x.abort(),x=null)},f.cancelToken&&f.cancelToken.subscribe(y),f.signal&&(f.signal.aborted?y():f.signal.addEventListener("abort",y))),g||(g=null),x.send(g)})},Ep}var Tp,HS;function Nh(){if(HS)return Tp;HS=1;var e=Br,t=I5,r=rP,n={"Content-Type":"application/x-www-form-urlencoded"};function i(u,l){!e.isUndefined(u)&&e.isUndefined(u["Content-Type"])&&(u["Content-Type"]=l)}function o(){var u;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(u=zS()),u}function a(u,l,c){if(e.isString(u))try{return(l||JSON.parse)(u),e.trim(u)}catch(f){if(f.name!=="SyntaxError")throw f}return(c||JSON.stringify)(u)}var s={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:o(),transformRequest:[function(l,c){return t(c,"Accept"),t(c,"Content-Type"),e.isFormData(l)||e.isArrayBuffer(l)||e.isBuffer(l)||e.isStream(l)||e.isFile(l)||e.isBlob(l)?l:e.isArrayBufferView(l)?l.buffer:e.isURLSearchParams(l)?(i(c,"application/x-www-form-urlencoded;charset=utf-8"),l.toString()):e.isObject(l)||c&&c["Content-Type"]==="application/json"?(i(c,"application/json"),a(l)):l}],transformResponse:[function(l){var c=this.transitional||s.transitional,f=c&&c.silentJSONParsing,h=c&&c.forcedJSONParsing,d=!f&&this.responseType==="json";if(d||h&&e.isString(l)&&l.length)try{return JSON.parse(l)}catch(v){if(d)throw v.name==="SyntaxError"?r(v,this,"E_JSON_PARSE"):v}return l}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(l){return l>=200&&l<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return e.forEach(["delete","get","head"],function(l){s.headers[l]={}}),e.forEach(["post","put","patch"],function(l){s.headers[l]=e.merge(n)}),Tp=s,Tp}var j5=Br,$5=Nh(),U5=function(t,r,n){var i=this||$5;return j5.forEach(n,function(a){t=a.call(i,t,r)}),t},Cp,VS;function iP(){return VS||(VS=1,Cp=function(t){return!!(t&&t.__CANCEL__)}),Cp}var WS=Br,Op=U5,G5=iP(),z5=Nh(),H5=Rh();function Ap(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new H5("canceled")}var V5=function(t){Ap(t),t.headers=t.headers||{},t.data=Op.call(t,t.data,t.headers,t.transformRequest),t.headers=WS.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),WS.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||z5.adapter;return r(t).then(function(i){return Ap(t),i.data=Op.call(t,i.data,i.headers,t.transformResponse),i},function(i){return G5(i)||(Ap(t),i&&i.response&&(i.response.data=Op.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},Pr=Br,oP=function(t,r){r=r||{};var n={};function i(c,f){return Pr.isPlainObject(c)&&Pr.isPlainObject(f)?Pr.merge(c,f):Pr.isPlainObject(f)?Pr.merge({},f):Pr.isArray(f)?f.slice():f}function o(c){if(Pr.isUndefined(r[c])){if(!Pr.isUndefined(t[c]))return i(void 0,t[c])}else return i(t[c],r[c])}function a(c){if(!Pr.isUndefined(r[c]))return i(void 0,r[c])}function s(c){if(Pr.isUndefined(r[c])){if(!Pr.isUndefined(t[c]))return i(void 0,t[c])}else return i(void 0,r[c])}function u(c){if(c in r)return i(t[c],r[c]);if(c in t)return i(void 0,t[c])}var l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return Pr.forEach(Object.keys(t).concat(Object.keys(r)),function(f){var h=l[f]||o,d=h(f);Pr.isUndefined(d)&&h!==u||(n[f]=d)}),n},Pp,qS;function aP(){return qS||(qS=1,Pp={version:"0.24.0"}),Pp}var W5=aP().version,b0={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){b0[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var XS={};b0.transitional=function(t,r,n){function i(o,a){return"[Axios v"+W5+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,s){if(t===!1)throw new Error(i(a," has been removed"+(r?" in "+r:"")));return r&&!XS[a]&&(XS[a]=!0,console.warn(i(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,a,s):!0}};function q5(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],a=t[o];if(a){var s=e[o],u=s===void 0||a(s,o,e);if(u!==!0)throw new TypeError("option "+o+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+o)}}var X5={assertOptions:q5,validators:b0},sP=Br,Y5=tP,YS=P5,KS=V5,Lh=oP,uP=X5,Jo=uP.validators;function Ol(e){this.defaults=e,this.interceptors={request:new YS,response:new YS}}Ol.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=Lh(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&uP.assertOptions(r,{silentJSONParsing:Jo.transitional(Jo.boolean),forcedJSONParsing:Jo.transitional(Jo.boolean),clarifyTimeoutError:Jo.transitional(Jo.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(t)===!1||(i=i&&h.synchronous,n.unshift(h.fulfilled,h.rejected))});var o=[];this.interceptors.response.forEach(function(h){o.push(h.fulfilled,h.rejected)});var a;if(!i){var s=[KS,void 0];for(Array.prototype.unshift.apply(s,n),s=s.concat(o),a=Promise.resolve(t);s.length;)a=a.then(s.shift(),s.shift());return a}for(var u=t;n.length;){var l=n.shift(),c=n.shift();try{u=l(u)}catch(f){c(f);break}}try{a=KS(u)}catch(f){return Promise.reject(f)}for(;o.length;)a=a.then(o.shift(),o.shift());return a};Ol.prototype.getUri=function(t){return t=Lh(this.defaults,t),Y5(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};sP.forEach(["delete","get","head","options"],function(t){Ol.prototype[t]=function(r,n){return this.request(Lh(n||{},{method:t,url:r,data:(n||{}).data}))}});sP.forEach(["post","put","patch"],function(t){Ol.prototype[t]=function(r,n,i){return this.request(Lh(i||{},{method:t,url:r,data:n}))}});var K5=Ol,kp,ZS;function Z5(){if(ZS)return kp;ZS=1;var e=Rh();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(a){n=a});var i=this;this.promise.then(function(o){if(i._listeners){var a,s=i._listeners.length;for(a=0;a{a.trace("Logged to cloud.",void 0,!1)}).catch(s=>{a.error("Logging to cloud failed!",void 0,!1)})}clog(t,r,n,i,o,a){const s={all:7,ALL:7,TRACE:6,DEBUG:5,INFO:4,WARN:3,ERROR:2,FATAL:1,NONE:0,none:0};s[n]<=s[this.level]&&(console.log("%c%s%c%s%c%s%c %s","color:white;background-color:"+i,"["+n+"]",""," ","color:"+i,"["+o.toLocaleString()+"]","",t),r&&(console.log(r),console.log("------------------------"))),a===void 0&&this.upload(t,r,n,o),a!==void 0&&a&&this.upload(t,r,n,o)}trace(t,r,n){const i=new Date,o="TRACE",a="#005CAF";this.clog(t,r,o,a,i,n)}debug(t,r,n){const i=new Date,o="DEBUG",a="#0089A7";this.clog(t,r,o,a,i,n)}info(t,r,n){const i=new Date,o="INFO",a="#00896C";this.clog(t,r,o,a,i,n)}warn(t,r,n){const i=new Date,o="WARN",a="#DDA52D";this.clog(t,r,o,a,i,n)}error(t,r,n){const i=new Date,o="ERROR",a="#AB3B3A";this.clog(t,r,o,a,i,n)}fatal(t,r,n){const i=new Date,o="FATAL",a="#E16B8C";this.clog(t,r,o,a,i,n)}}var s6=a6;const u6=Or(s6),ne=new u6,l6={common:{yes:"OK",no:"Cancel"},menu:{options:{title:"OPTIONS",pages:{system:{title:"System",options:{autoSpeed:{title:"Autoplay Speed",options:{slow:"Slow",medium:"Medium",fast:"Fast"}},language:{title:"Language"},resetData:{title:"Clear or Reset Data",options:{clearGameSave:"Clear game saving",resetSettings:"Reset settings",clearAll:"Clear all data"},dialogs:{clearGameSave:"Are you sure you want to clear game saving",resetSettings:"Are you sure you want to reset all settings",clearAll:"Are you sure you want to clear all data"}},gameSave:{title:"Import or Export Game Saving and Options",options:{export:"Export game saving and options",import:"Import game saving and options"},dialogs:{import:{title:"Are you sure you want to import game saving and options",tip:"Import game saving",error:"Parse game saving failed"}}},about:{title:"About WebGAL",subTitle:"WebGAL: An Open-Source Web-Based Visual Novel Engine",version:"Version",source:"Source Code Repository",contributors:"Contributors",website:"Website"}}},display:{title:"Display",options:{textSpeed:{title:"Speed of Text Showing",options:{slow:"Slow",medium:"Medium",fast:"Fast"}},textSize:{title:"Text Size",options:{small:"Small",medium:"Medium",large:"Large"}},textFont:{title:"Text Font",options:{siYuanSimSun:"Source Han Serif",SimHei:"Sans",lxgw:"LXGW WenKai"}},textboxOpacity:{title:"Textbox Opacity"},textPreview:{title:"Preview Text Showing",text:"You are previewing the text's font, size and playback speed, now. You can adjust the above options according to your perception."}}},sound:{title:"Sound",options:{volumeMain:{title:"Main Volume"},vocalVolume:{title:"Vocal Volume"},bgmVolume:{title:"BGM Volume"},seVolume:{title:"Sound Effects Volume"},uiSeVolume:{title:"UI Sound Effects Volume"}}}}},saving:{title:"SAVE",isOverwrite:"Are you sure you want to overwrite this save?"},loadSaving:{title:"LOAD"},title:{title:"TITLE"},exit:{title:"BACK"}},title:{start:{title:"START",subtitle:""},continue:{title:"CONTINUE",subtitle:""},options:{title:"OPTIONS",subtitle:""},load:{title:"LOAD",subtitle:""},extra:{title:"EXTRA",subtitle:""}},gaming:{noSaving:"No saving",buttons:{hide:"Hide",show:"Show",backlog:"Backlog",replay:"Replay",auto:"Auto",forward:"Forward",quicklySave:"Quickly Save",quicklyLoad:"Quickly Save",save:"Save",load:"Load",options:"Options",title:"Title",titleTips:"Confirm return to the title screen"}},extra:{title:"EXTRA"}},c6={common:{yes:"はい",no:"いいえ"},menu:{options:{title:"CONFIG",pages:{system:{title:"システム",options:{autoSpeed:{title:"自動再生速度",options:{slow:"遅く",medium:"標準",fast:"速く"}},language:{title:"言語"},resetData:{title:"データの削除またに復元",options:{clearGameSave:"すべてのアーカイブを削除",resetSettings:"デフォルト設置を復元",clearAll:"すべてのデータを削除"},dialogs:{clearGameSave:"アーカイブをクリアしてもよろしいですか?",resetSettings:"デフォルト設定を復元してもよろしいですか?",clearAll:"すべてのデータを削除してもよろしいですか?"}},gameSave:{title:"アーカイブとオプションのインポートまたはエクスポート",options:{export:"アーカイブとオプションのエクスポート",import:"アーカイブとオプションのインポート"},dialogs:{import:{title:"アーカイブとオプションをインポートしますか?",tip:"インポートアーカイブ",error:"アーカイブの解析に失败しました"}}},about:{title:"WebGALについて",subTitle:"WebGAL:開源のウェブ基盤視覚小説エンジン",version:"版数",source:"源コード保管所",contributors:"貢献者",website:"ウェブサイト"}}},display:{title:"ウィンドウ",options:{textSpeed:{title:"テキスト表示速度",options:{slow:"遅く",medium:"標準",fast:"速く"}},textSize:{title:"テキストサイズ",options:{small:"小",medium:"中",large:"大"}},textFont:{title:"フォント",options:{siYuanSimSun:"源ノ明朝",SimHei:"黒体",lxgw:"霞鴎文隷"}},textboxOpacity:{title:"Textbox Opacity"},textPreview:{title:"テキスト表示プレビュー",text:"プレビューはテキストボックスのテキストサイズとテキスト表示速度です。上記のオプションでフォントも変更できます。"}}},sound:{title:"サウンド",options:{volumeMain:{title:"MAIN 音量"},vocalVolume:{title:"VOICE 音量"},bgmVolume:{title:"BGM 音量"},seVolume:{title:"SE 音量"},uiSeVolume:{title:"UI 効果音音量"}}}}},saving:{title:"SAVE",isOverwrite:"上書きしますか?"},loadSaving:{title:"LOAD"},title:{title:"HOME"},exit:{title:"BACK"}},title:{start:{title:"初めから",subtitle:"START"},continue:{title:"続きから",subtitle:"CONTINUE"},options:{title:"設定",subtitle:"CONFIG"},load:{title:"ロード",subtitle:"LOAD"},extra:{title:"鑑賞モード",subtitle:"EXTRA"}},gaming:{noSaving:"クイックセーブなし",buttons:{hide:"CLOSE",show:"SHOW",backlog:"LOG",replay:"REPLAY",auto:"AUTO",forward:"SKIP",quicklySave:"QUICK SAVE",quicklyLoad:"QUICK LOAD",save:"SAVE",load:"LOAD",options:"CONFIG",title:"HOME",titleTips:"タイトル画面に戻ることを確認しますか"}},extra:{title:"鑑賞モード"}},f6={common:{yes:"是",no:"否"},menu:{options:{title:"选项",pages:{system:{title:"系统",options:{autoSpeed:{title:"自动播放速度",options:{slow:"慢",medium:"中",fast:"快"}},language:{title:"语言"},resetData:{title:"清除或还原数据",options:{clearGameSave:"清除所有存档",resetSettings:"还原默认设置",clearAll:"清除所有数据"},dialogs:{clearGameSave:"确定要清除存档吗",resetSettings:"确定要还原默认设置吗",clearAll:"确定要清除所有数据吗"}},gameSave:{title:"导入或导出存档与选项",options:{export:"导出存档与选项",import:"导入存档与选项"},dialogs:{import:{title:"确定要导入存档与选项吗",tip:"导入存档",error:"存档解析失败"}}},about:{title:"关于 WebGAL",subTitle:"WebGAL:开源的网页端视觉小说引擎",version:"版本号",source:"源代码仓库",contributors:"贡献者",website:"网站"}}},display:{title:"显示",options:{textSpeed:{title:"文字显示速度",options:{slow:"慢",medium:"中",fast:"快"}},textSize:{title:"文本大小",options:{small:"小",medium:"中",large:"大"}},textFont:{title:"文本字体",options:{siYuanSimSun:"思源宋体",SimHei:"黑体",lxgw:"霞鹜文楷"}},textboxOpacity:{title:"文本框不透明度"},textPreview:{title:"文本显示预览",text:"现在预览的是文本框字体大小和播放速度的情况,您可以根据您的观感调整上面的选项。"}}},sound:{title:"音频",options:{volumeMain:{title:"主音量"},vocalVolume:{title:"语音音量"},bgmVolume:{title:"背景音乐音量"},seVolume:{title:"音效音量"},uiSeVolume:{title:"用户界面音效音量"},voiceOption:{title:"是否中断语音"},voiceStop:{title:"停止语音"},voiceContinue:{title:"继续语音"}}}}},saving:{title:"存档",isOverwrite:"是否覆盖存档?"},loadSaving:{title:"读档"},title:{title:"标题",options:{load:"",extra:"鉴赏模式"}},exit:{title:"返回"}},title:{start:{title:"开始游戏",subtitle:"START"},continue:{title:"继续游戏",subtitle:"CONTINUE"},options:{title:"游戏选项",subtitle:"OPTIONS"},load:{title:"读取存档",subtitle:"LOAD"},extra:{title:"鉴赏模式",subtitle:"EXTRA"}},gaming:{noSaving:"暂无存档",buttons:{hide:"隐藏",show:"显示",backlog:"回想",replay:"重播",auto:"自动",forward:"快进",quicklySave:"快速存档",quicklyLoad:"快速读档",save:"存档",load:"读档",options:"选项",title:"标题",titleTips:"确认返回到标题界面吗"}},extra:{title:"鉴赏模式"}},h6={common:{yes:"OK",no:"Annuler"},menu:{options:{title:"OPTIONS",pages:{system:{title:"Système",options:{autoSpeed:{title:"Vitesse de lecture automatique",options:{slow:"Lente",medium:"Moyenne",fast:"Rapide"}},language:{title:"Langue"},resetData:{title:"Effacer ou réinitialiser les données",options:{clearGameSave:"Effacer la sauvegarde du jeu",resetSettings:"Réinitialiser les paramètres",clearAll:"Tout effacer"},dialogs:{clearGameSave:"Êtes-vous sûr de vouloir effacer la sauvegarde du jeu",resetSettings:"Êtes-vous sûr de vouloir réinitialiser tous les paramètres",clearAll:"Êtes-vous sûr de vouloir tout effacer"}},gameSave:{title:"Importer ou exporter la sauvegarde du jeu et les options",options:{export:"Exporter la sauvegarde du jeu et les options",import:"Importer la sauvegarde du jeu et les options"},dialogs:{import:{title:"Êtes-vous sûr de vouloir importer la sauvegarde du jeu et les options",tip:"Importer la sauvegarde du jeu",error:"Impossible d'analyser la sauvegarde du jeu"}}},about:{title:"À propos de WebGAL",subTitle:"WebGAL: Un moteur de visual novel basé sur le web en open-source",version:"Version",source:"Dépôt de code source",contributors:"Contributeurs",website:"Site web"}}},display:{title:"Affichage",options:{textSpeed:{title:"Vitesse d'affichage du texte",options:{slow:"Lente",medium:"Moyenne",fast:"Rapide"}},textSize:{title:"Taille du texte",options:{small:"Petite",medium:"Moyenne",large:"Grande"}},textFont:{title:"Police du texte",options:{siYuanSimSun:"Source Han Serif",SimHei:"Sans",lxgw:"LXGW WenKai"}},textboxOpacity:{title:"Textbox Opacity"},textPreview:{title:"Aperçu de l'affichage du texte",text:"Vous prévisualisez la police, la taille et la vitesse de lecture du texte, maintenant. Vous pouvez ajuster les options ci-dessus selon votre perception."}}},sound:{title:"Son",options:{volumeMain:{title:"Volume principal"},vocalVolume:{title:"Volume des voix"},bgmVolume:{title:"Volume de la musique de fond"},seVolume:{title:"Volume des effets sonores"},uiSeVolume:{title:"Volume de l’interface utilisateur"}}}}},saving:{title:"SAUVEGARDER",isOverwrite:"Êtes-vous sûr de vouloir écraser cette sauvegarde ?"},loadSaving:{title:"CHARGER"},title:{title:"TITRE"},exit:{title:"RETOUR"}},title:{start:{title:"COMMENCER",subtitle:""},continue:{title:"CONTINUER",subtitle:""},options:{title:"OPTIONS",subtitle:""},load:{title:"CHARGER",subtitle:""},extra:{title:"EXTRA",subtitle:""}},gaming:{noSaving:"Aucune sauvegarde",buttons:{hide:"Masquer",show:"Afficher",backlog:"Journal",replay:"Rejouer",auto:"Automatique",forward:"Avancer",quicklySave:"Sauvegarde rapide",quicklyLoad:"Chargement rapide",save:"Sauvegarder",load:"Charger",options:"Options",title:"Titre",titleTips:"Confirmer le retour à l'écran titre"}},extra:{title:"EXTRA"}},d6={common:{yes:"Ja",no:"Nein"},menu:{options:{title:"OPTIONEN",pages:{system:{title:"System",options:{autoSpeed:{title:"Auto-Geschwindigkeit",options:{slow:"Langsam",medium:"Normal",fast:"Schnell"}},language:{title:"Sprache"},resetData:{title:"Daten löschen oder zurücksetzen",options:{clearGameSave:"Alle Spielstände löschen",resetSettings:"Alle Einstellungen zurücksetzen",clearAll:"Alle Daten löschen"},dialogs:{clearGameSave:"Sind Sie sicher, dass Sie den Spielstand löschen möchten?",resetSettings:"Sind Sie sicher, dass Sie alle Einstellungen zurücksetzen möchten?",clearAll:"Sind Sie sicher, dass Sie alle Daten löschen möchten?"}},gameSave:{title:"Spielstand und Optionen importieren oder exportieren",options:{export:"Spielstand und Optionen exportieren",import:"Spielstand und Optionen importieren"},dialogs:{import:{title:"Sind Sie sicher, dass Sie den Spielstand und die Optionen importieren möchten?",tip:"Spielstand importieren",error:"Ein Fehler ist beim Analysieren des Spielstands aufgetreten"}}},about:{title:"Über WebGAL",subTitle:"WebGAL: Eine Open-Source Web-Based Visual Novel Engine",version:"Version",source:"Source Code Repository",contributors:"Contributors",website:"Website"}}},display:{title:"Darstellung",options:{textSpeed:{title:"Geschwindigkeit der Textanzeige",options:{slow:"Langsam",medium:"Normal",fast:"Schnell"}},textSize:{title:"Textgröße",options:{small:"Klein",medium:"Normal",large:"Groß"}},textFont:{title:"Schriftart",options:{siYuanSimSun:"Source Han Serif",SimHei:"Sans",lxgw:"LXGW WenKai"}},textboxOpacity:{title:"Textbox Opacity"},textPreview:{title:"Vorschautext wird angezeigt",text:"Sie können jederzeit die Schriftart, Größe und Wiedergabegeschwindigkeit des Textes nach Ihrer Vorliebe anpassen."}}},sound:{title:"Ton",options:{volumeMain:{title:"Hauptlautstärke"},vocalVolume:{title:"Stimmlautstärke"},bgmVolume:{title:"Musiklautstärke"},seVolume:{title:"Soundeffektlautstärke"},uiSeVolume:{title:"UI Soundeffektlautstärke"}}}}},saving:{title:"SPEICHERN",isOverwrite:"Sind Sie sicher, dass Sie diesen Spielstand überschreiben möchten?"},loadSaving:{title:"LADEN"},title:{title:"TITEL"},exit:{title:"ZURÜCK"}},title:{start:{title:"STARTEN",subtitle:""},continue:{title:"WEITERLESEN",subtitle:""},options:{title:"OPTIONEN",subtitle:""},load:{title:"LADEN",subtitle:""},extra:{title:"EXTRA",subtitle:""}},gaming:{noSaving:"Keine Speicherung",buttons:{hide:"Verstecken",show:"Anzeigen",backlog:"Verlauf",replay:"Wiedergabe",auto:"Auto",forward:"Überspringen",quicklySave:"Quickly Save",quicklyLoad:"Quickly Load",save:"Speichern",load:"Laden",options:"Optionen",title:"Titel"}},extra:{title:"EXTRA"}},p6={common:{yes:"是",no:"否"},menu:{options:{title:"選項",pages:{system:{title:"系統",options:{autoSpeed:{title:"自動播放速度",options:{slow:"慢",medium:"中",fast:"快"}},language:{title:"語言"},resetData:{title:"清除或還原數據",options:{clearGameSave:"清除所有存檔",resetSettings:"還原默認設定",clearAll:"清除所有數據"},dialogs:{clearGameSave:"確定要清除存檔嗎",resetSettings:"確定要還原默認設定嗎",clearAll:"確定要清除所有數據嗎"}},gameSave:{title:"導入或導出存檔與選項",options:{export:"導出存檔與選項",import:"導入存檔與選項"},dialogs:{import:{title:"確定要導入存檔與選項嗎",tip:"導入存檔",error:"存檔解析失敗"}}},about:{title:"關於 WebGAL",subTitle:"WebGAL:開源的線上視覺小說製作引擎",version:"版本號",source:"源代碼倉庫",contributors:"貢獻者",website:"網站"}}},display:{title:"顯示",options:{textSpeed:{title:"文字顯示速度",options:{slow:"慢",medium:"中",fast:"快"}},textSize:{title:"文字大小",options:{small:"小",medium:"中",large:"大"}},textFont:{title:"文字字體",options:{siYuanSimSun:"霞鹜文楷",SimHei:"黑體"}},textboxOpacity:{title:"文本框不透明度"},textPreview:{title:"文字顯示預覽",text:"現在預覽的是文字框字體大小和播放速度的情況,您可以根據您的觀感調整上面的選項。"}}},sound:{title:"音量",options:{volumeMain:{title:"主音量"},vocalVolume:{title:"語音音量"},bgmVolume:{title:"背景音樂音量"},seVolume:{title:"音效音量"},uiSeVolume:{title:"用戶界面音效音量"}}}}},saving:{title:"存檔",isOverwrite:"是否要覆蓋存檔?"},loadSaving:{title:"讀檔"},title:{title:"標題",options:{load:"",extra:"CG模式"}},exit:{title:"返回"}},title:{start:{title:"開始遊戲",subtitle:"START"},continue:{title:"繼續遊戲",subtitle:"CONTINUE"},options:{title:"遊戲選項",subtitle:"OPTIONS"},load:{title:"讀取存檔",subtitle:"LOAD"},extra:{title:"CG模式",subtitle:"EXTRA"}},gaming:{noSaving:"暫無存檔",buttons:{hide:"隱藏",show:"顯示",backlog:"回想",replay:"重播",auto:"自動",forward:"加速",quicklySave:"快速存檔",quicklyLoad:"快速讀檔",save:"存檔",load:"讀檔",options:"選項",title:"標題",titleTips:"確認返回到標題界面嗎"}},extra:{title:"CG模式"}};var Wo=(e=>(e[e.zhCn=0]="zhCn",e[e.en=1]="en",e[e.jp=2]="jp",e[e.fr=3]="fr",e[e.de=4]="de",e[e.zhTw=5]="zhTw",e))(Wo||{});const Bf={zhCn:"中文",en:"English",jp:"日本語",fr:"Français",de:"Deutsch",zhTw:"繁體中文"},v6={en:{translation:l6},zhCn:{translation:f6},jp:{translation:c6},fr:{translation:h6},de:{translation:d6},zhTw:{translation:p6}},m6=0;var fr=(e=>(e[e.slow=0]="slow",e[e.normal=1]="normal",e[e.fast=2]="fast",e))(fr||{}),Kr=(e=>(e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e))(Kr||{}),Ln=(e=>(e[e.song=0]="song",e[e.hei=1]="hei",e[e.lxgw=2]="lxgw",e))(Ln||{}),Ku=(e=>(e[e.yes=0]="yes",e[e.no=1]="no",e))(Ku||{});const cP={slPage:1,volumeMain:100,textSpeed:fr.normal,autoSpeed:fr.normal,textSize:Kr.medium,vocalVolume:100,bgmVolume:25,seVolume:100,uiSeVolume:50,textboxFont:Ln.song,textboxOpacity:75,language:Wo.zhCn,voiceInterruption:Ku.yes},tg={saveData:[],optionData:cP,globalGameVar:{},appreciationData:{bgm:[],cg:[]},quickSaveData:null},fP=t0({name:"userData",initialState:Et(tg),reducers:{setUserData:(e,t)=>{const{key:r,value:n}=t.payload;e[r]=n},unlockCgInUserData:(e,t)=>{const{name:r,url:n,series:i}=t.payload;let o=!1;e.appreciationData.cg.forEach(a=>{n===a.url&&(o=!0,a.url=n,a.series=i)}),o||e.appreciationData.cg.push(t.payload)},unlockBgmInUserData:(e,t)=>{const{name:r,url:n,series:i}=t.payload;let o=!1;e.appreciationData.bgm.forEach(a=>{n===a.url&&(o=!0,a.url=n,a.series=i)}),o||e.appreciationData.bgm.push(t.payload)},resetUserData:(e,t)=>{Object.assign(e,t.payload)},setOptionData:(e,t)=>{const{key:r,value:n}=t.payload;e.optionData[r]=n},setGlobalVar:(e,t)=>{e.globalGameVar[t.payload.key]=t.payload.value},setSlPage:(e,t)=>{e.optionData.slPage=t.payload},setFastSave:(e,t)=>{e.quickSaveData=t.payload},resetOptionSet(e){Object.assign(e.optionData,cP)},resetAllData(e){Object.assign(e,Et(tg))},resetSaveData(e){e.saveData.splice(0,e.saveData.length)}}}),{setUserData:g6,resetUserData:S0,setOptionData:_t,setGlobalVar:y6,setSlPage:hP,unlockCgInUserData:dP,unlockBgmInUserData:pP,setFastSave:_6,resetOptionSet:x6,resetSaveData:b6,resetAllData:S6}=fP.actions,w6=fP.reducer,vP={backlog_size:200,fast_timeout:50},E6={textInitialDelay:80};class T6{constructor(t){le(this,"isSaveBacklogNext",!1);le(this,"backlog",[]);le(this,"sceneManager");this.sceneManager=t}getBacklog(){return this.backlog}editLastBacklogItemEffect(t){this.backlog[this.backlog.length-1].currentStageState.effects=t}makeBacklogEmpty(){this.backlog.splice(0,this.backlog.length)}insertBacklogItem(t){this.backlog.push(t)}saveCurrentStateToBacklog(){const t=j.getState().stage,r=Et(t);r.PerformList.forEach(i=>{i.script.args.forEach(o=>{o.key==="concat"&&(o.value=!1,i.script.content=r.showText)})});const n={currentStageState:r,saveScene:{currentSentenceId:this.sceneManager.sceneData.currentSentenceId,sceneStack:Et(this.sceneManager.sceneData.sceneStack),sceneName:this.sceneManager.sceneData.currentScene.sceneName,sceneUrl:this.sceneManager.sceneData.currentScene.sceneUrl}};for(this.getBacklog().push(n);this.getBacklog().length>vP.backlog_size;)this.getBacklog().shift()}}function C6(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(i){i(r)}),(n=e.get("*"))&&n.slice().map(function(i){i(t,r)})}}}const tw={currentSentenceId:0,sceneStack:[],currentScene:{sceneName:"",sceneUrl:"",sentenceList:[],assetsList:[],subSceneList:[]}};class O6{constructor(){le(this,"settledScenes",[]);le(this,"settledAssets",[]);le(this,"sceneData",Et(tw))}resetScene(){this.sceneData.currentSentenceId=0,this.sceneData.sceneStack=[],this.sceneData.currentScene=Et(tw.currentScene)}}class A6{constructor(){le(this,"nextEnterAnimationName",new Map);le(this,"nextExitAnimationName",new Map);le(this,"animations",[])}addAnimation(t){this.animations.push(t)}getAnimations(){return this.animations}}function Pe(e,t){const n=e.args.find(i=>i.key===t);return n?n.value:null}const $e={audioContext:new AudioContext,source:null,analyser:void 0,dataArray:void 0,audioLevelInterval:setInterval(()=>{},0),blinkTimerID:setTimeout(()=>{},0),maxAudioLevel:0},P6=e=>($e.maxAudioLevel=Math.max(e,$e.maxAudioLevel),{OPEN_THRESHOLD:$e.maxAudioLevel*.75,HALF_OPEN_THRESHOLD:$e.maxAudioLevel*.5}),k6=e=>{let t=!1;function r(){var n;t||e.animationEndTime&&Date.now()>e.animationEndTime||(t=!0,(n=O.gameplay.pixiStage)==null||n.performBlinkAnimation(e.key,e.animationItem,"closed",e.pos),$e.blinkTimerID=setTimeout(()=>{var o;(o=O.gameplay.pixiStage)==null||o.performBlinkAnimation(e.key,e.animationItem,"open",e.pos),t=!1;const i=Math.random()*300+3500;$e.blinkTimerID=setTimeout(r,i)},200))}r()},I6=(e,t,r)=>{e.getByteFrequencyData(t);let n=0;for(let i=0;i{var h,d;const{audioLevel:t,OPEN_THRESHOLD:r,HALF_OPEN_THRESHOLD:n,currentMouthValue:i,lerpSpeed:o,key:a,animationItem:s,pos:u}=e;let l;t>r?l=1:t>n?l=.5:l=0;const c=i+(l-i)*o;(h=O.gameplay.pixiStage)==null||h.setModelMouthY(a,t);let f;c>.75?f="open":c>.25?f="half_open":f="closed",s!==void 0&&((d=O.gameplay.pixiStage)==null||d.performMouthSyncAnimation(a,s,f,u))};class R6{constructor(t){le(this,"cases",[]);le(this,"subject");le(this,"defaultCase");this.subject=t}with(t,r){return this.cases.push([t,r]),this}endsWith(t,r){return this.cases.push([t,r]),this.evaluate()}default(t){return this.defaultCase=t,this.evaluate()}evaluate(){for(const[t,r]of this.cases)if(t===this.subject)return r();if(this.defaultCase)return this.defaultCase()}}function Mh(e){return new R6(e)}const N6=e=>{ne.debug("play vocal");const t="vocal-play",r=Pe(e,"vocal"),n=Pe(e,"volume");let i;i=j.getState().stage;let o="",a="";const s=i.freeFigure,u=i.figureAssociatedAnimation;let l=0,c=0;const f=1;let h=document.getElementById("currentVocal");O.gameplay.performController.unmountPerform("vocal-play",!0),h!==null&&(h.currentTime=0,h.pause());for(const v of e.args)v.value===!0&&Mh(v.key).with("left",()=>{o="left"}).with("right",()=>{o="right"}).endsWith("center",()=>{o="center"}),v.key==="figureId"&&(a=`${v.value.toString()}`);j.dispatch(Te({key:"playVocal",value:r})),j.dispatch(Te({key:"vocal",value:r}));let d=!1;return{arrangePerformPromise:new Promise(v=>{setTimeout(()=>{let g=document.getElementById("currentVocal");if(typeof n=="number"&&n>=0&&n<=100?j.dispatch(Te({key:"vocalVolume",value:n})):j.dispatch(Te({key:"vocalVolume",value:100})),g!==null){g.currentTime=0;const p={performName:t,duration:1e3*60*60,isOver:!1,isHoldOn:!1,stopFunction:()=>{g.oncanplay=()=>{},clearInterval($e.audioLevelInterval),g.pause(),a=a||`fig-${o}`;const m=u.find(y=>y.targetId===a);rw({audioLevel:0,OPEN_THRESHOLD:1,HALF_OPEN_THRESHOLD:1,currentMouthValue:c,lerpSpeed:f,key:a,animationItem:m,pos:o}),clearTimeout($e.blinkTimerID)},blockingNext:()=>!1,blockingAuto:()=>!d,skipNextCollect:!0,stopTimeout:void 0};O.gameplay.performController.arrangeNewPerform(p,e,!1),g.oncanplay=()=>{a=a||`fig-${o}`;const m=u.find(y=>y.targetId===a);if(m){const y=s.find(b=>b.key===a);if(y&&(o=y.basePosition),!$e.audioContext){let b;b=new AudioContext,$e.analyser=b.createAnalyser(),$e.analyser.fftSize=256,$e.dataArray=new Uint8Array($e.analyser.frequencyBinCount)}$e.analyser||($e.analyser=$e.audioContext.createAnalyser(),$e.analyser.fftSize=256),l=$e.analyser.frequencyBinCount,$e.dataArray=new Uint8Array(l);let _=document.getElementById("currentVocal");$e.source||($e.source=$e.audioContext.createMediaElementSource(_),$e.source.connect($e.analyser)),$e.analyser.connect($e.audioContext.destination),$e.audioLevelInterval=setInterval(()=>{const b=I6($e.analyser,$e.dataArray,l),{OPEN_THRESHOLD:w,HALF_OPEN_THRESHOLD:T}=P6(b);rw({audioLevel:b,OPEN_THRESHOLD:w,HALF_OPEN_THRESHOLD:T,currentMouthValue:c,lerpSpeed:f,key:a,animationItem:m,pos:o})},50);let x;x=Date.now()+1e4,k6({key:a,animationItem:m,pos:o,animationEndTime:x}),setTimeout(()=>{clearTimeout($e.blinkTimerID)},1e4)}g==null||g.play()},g.onended=()=>{for(const m of O.gameplay.performController.performList)m.performName===t&&(d=!0,m.stopFunction(),O.gameplay.performController.unmountPerform(m.performName))}}},1)})}};function w0(e){switch(e){case fr.slow:return 80;case fr.normal:return 35;case fr.fast:return 3}}function mP(e){switch(e){case fr.slow:return 800;case fr.normal:return 350;case fr.fast:return 200}}const gP=e=>{const t=j.getState().stage,r=j.getState().userData,n=j.dispatch;let i=Math.random().toString(),o=e.content;const a=Pe(e,"concat"),s=Pe(e,"notend"),u=Pe(e,"speaker"),l=Pe(e,"clear"),c=Pe(e,"vocal");a?(i=t.currentDialogKey,o=t.showText+o,n(Te({key:"currentConcatDialogPrev",value:t.showText}))):n(Te({key:"currentConcatDialogPrev",value:""})),n(Te({key:"showText",value:o})),n(Te({key:"vocal",value:""})),r.optionData.voiceInterruption===Ku.no&&c===null||(n(Te({key:"playVocal",value:""})),O.gameplay.performController.unmountPerform("vocal-play",!0)),n(Te({key:"currentDialogKey",value:i}));const h=w0(r.optionData.textSpeed)*e.content.length;for(const p of e.args)if(p.key==="fontSize")switch(p.value){case"default":n(Te({key:"showTextSize",value:-1}));break;case"small":n(Te({key:"showTextSize",value:Kr.small}));break;case"medium":n(Te({key:"showTextSize",value:Kr.medium}));break;case"large":n(Te({key:"showTextSize",value:Kr.large}));break}let d=t.showName;u!==null&&(d=u),l&&(d=""),n(Te({key:"showName",value:d})),c&&N6(e);const v=tx();let g=750-r.optionData.textSpeed*250;return s&&(g=0),{performName:v,duration:h+g,isHoldOn:!1,stopFunction:()=>{O.eventBus.emit("text-settle")},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0,goNextWhenOver:s}},L6={performName:"",duration:100,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0},M6=e=>{for(const t of e){let r=!0;if(O.sceneManager.settledAssets.forEach(n=>{n===t.url&&(r=!1)}),!r)ne.warn("该资源已在预加载列表中,无需重复加载");else{const n=document.createElement("link");n.setAttribute("rel","prefetch"),n.setAttribute("href",t.url);const i=document.getElementsByTagName("head");i.length&&i[0].appendChild(n),O.sceneManager.settledAssets.push(t.url)}}};var Rr=(e=>(e[e.background=0]="background",e[e.bgm=1]="bgm",e[e.figure=2]="figure",e[e.scene=3]="scene",e[e.tex=4]="tex",e[e.vocal=5]="vocal",e[e.video=6]="video",e))(Rr||{});const Nr=(e,t)=>{if(e.match("http://")||e.match("https://"))return e;{let r;switch(t){case 0:r=`./game/background/${e}`;break;case 3:r=`./game/scene/${e}`;break;case 5:r=`./game/vocal/${e}`;break;case 2:r=`./game/figure/${e}`;break;case 1:r=`./game/bgm/${e}`;break;case 6:r=`./game/video/${e}`;break;default:r="";break}return r}};var oe;(function(e){e[e.say=0]="say",e[e.changeBg=1]="changeBg",e[e.changeFigure=2]="changeFigure",e[e.bgm=3]="bgm",e[e.video=4]="video",e[e.pixi=5]="pixi",e[e.pixiInit=6]="pixiInit",e[e.intro=7]="intro",e[e.miniAvatar=8]="miniAvatar",e[e.changeScene=9]="changeScene",e[e.choose=10]="choose",e[e.end=11]="end",e[e.setComplexAnimation=12]="setComplexAnimation",e[e.setFilter=13]="setFilter",e[e.label=14]="label",e[e.jumpLabel=15]="jumpLabel",e[e.chooseLabel=16]="chooseLabel",e[e.setVar=17]="setVar",e[e.if=18]="if",e[e.callScene=19]="callScene",e[e.showVars=20]="showVars",e[e.unlockCg=21]="unlockCg",e[e.unlockBgm=22]="unlockBgm",e[e.filmMode=23]="filmMode",e[e.setTextbox=24]="setTextbox",e[e.setAnimation=25]="setAnimation",e[e.playEffect=26]="playEffect",e[e.setTempAnimation=27]="setTempAnimation",e[e.comment=28]="comment",e[e.setTransform=29]="setTransform",e[e.setTransition=30]="setTransition",e[e.getUserInput=31]="getUserInput"})(oe||(oe={}));const nw=(e,t,r)=>{let n={type:oe.say,additionalArgs:[]};const i=F6(e,t,r);return n.type=i,i===oe.say&&e!=="say"&&n.additionalArgs.push({key:"speaker",value:e}),n=D6(n,i,t),n};function F6(e,t,r){const n=new Map;return r.forEach(i=>{n.set(i.scriptString,i.scriptType)}),n.has(e)?n.get(e):oe.say}function D6(e,t,r){return r.includes(t)&&e.additionalArgs.push({key:"next",value:!0}),e}var St;(function(e){e[e.background=0]="background",e[e.bgm=1]="bgm",e[e.figure=2]="figure",e[e.scene=3]="scene",e[e.tex=4]="tex",e[e.vocal=5]="vocal",e[e.video=6]="video"})(St||(St={}));function yP(e,t){const r=[];let i=e.replace(/ /g," ").split(" -");return i=i.filter(o=>o!==""),i.forEach(o=>{const a=o.indexOf("=");let s=o.slice(0,a),u=o.slice(a+1);a<0&&(s=o,u=void 0),s.toLowerCase().match(/.ogg|.mp3|.wav/)?r.push({key:"vocal",value:t(o,St.vocal)}):u===void 0?r.push({key:s,value:!0}):u==="true"||u==="false"?r.push({key:s,value:u==="true"}):isNaN(Number(u))?r.push({key:s,value:u}):r.push({key:s,value:Number(u)})}),r}const B6=(e,t,r)=>{if(e==="none"||e==="")return"";switch(t){case oe.playEffect:return r(e,St.vocal);case oe.changeBg:return r(e,St.background);case oe.changeFigure:return r(e,St.figure);case oe.bgm:return r(e,St.bgm);case oe.callScene:return r(e,St.scene);case oe.changeScene:return r(e,St.scene);case oe.miniAvatar:return r(e,St.figure);case oe.video:return r(e,St.video);case oe.choose:return j6(e,r);case oe.unlockBgm:return r(e,St.bgm);case oe.unlockCg:return r(e,St.background);default:return e}};function j6(e,t){const r=e.split("|"),n=[],i=[];for(const s of r)n.push(s.split(":")[0]??""),i.push(s.split(":")[1]??"");const o=i.map(s=>s.match(/\./)?t(s,St.scene):s);let a="";for(let s=0;s{const n=[];return e===oe.say&&r.forEach(i=>{i.key==="vocal"&&n.push({name:i.value,url:i.value,lineNumber:0,type:St.vocal})}),t==="none"||t===""||(e===oe.changeBg&&n.push({name:t,url:t,lineNumber:0,type:St.background}),e===oe.changeFigure&&n.push({name:t,url:t,lineNumber:0,type:St.figure}),e===oe.miniAvatar&&n.push({name:t,url:t,lineNumber:0,type:St.figure}),e===oe.video&&n.push({name:t,url:t,lineNumber:0,type:St.video}),e===oe.bgm&&n.push({name:t,url:t,lineNumber:0,type:St.bgm})),n},U6=(e,t)=>{const r=[];return(e===oe.changeScene||e===oe.callScene)&&r.push(t),e===oe.choose&&t.split("|").map(o=>o.split(":")[1]??"").forEach(o=>{o.match(/\./)&&r.push(o)}),r},G6=(e,t,r,n)=>{let i,o,a;const s=[];let u,l,c,f=e.split(";")[0];if(f==="")return{command:oe.comment,commandRaw:"comment",content:e.split(";")[1]??"",args:[{key:"next",value:!0}],sentenceAssets:[],subScene:[]};const h=/:/.exec(f);if(h===null){c=f,l=nw(c,r,n),i=l.type;for(const v of l.additionalArgs)i===oe.say&&v.key==="speaker"||s.push(v)}else{c=f.substring(0,h.index),f=f.substring(h.index+1,f.length),l=nw(c,r,n),i=l.type;for(const v of l.additionalArgs)s.push(v)}const d=/ -/.exec(f);if(d){const v=f.substring(d.index,e.length);f=f.substring(0,d.index);for(const g of yP(v,t))s.push(g)}return o=B6(f,i,t),u=$6(i,o,s),a=U6(i,o),{command:i,commandRaw:c,content:o,args:s,sentenceAssets:u,subScene:a}};var Jl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},z6=typeof Jl=="object"&&Jl&&Jl.Object===Object&&Jl,H6=z6,V6=H6,W6=typeof self=="object"&&self&&self.Object===Object&&self,q6=V6||W6||Function("return this")(),Fh=q6,X6=Fh,Y6=X6.Symbol,_P=Y6,iw=_P,xP=Object.prototype,K6=xP.hasOwnProperty,Z6=xP.toString,Hs=iw?iw.toStringTag:void 0;function Q6(e){var t=K6.call(e,Hs),r=e[Hs];try{e[Hs]=void 0;var n=!0}catch{}var i=Z6.call(e);return n&&(t?e[Hs]=r:delete e[Hs]),i}var J6=Q6,eG=Object.prototype,tG=eG.toString;function rG(e){return tG.call(e)}var nG=rG,ow=_P,iG=J6,oG=nG,aG="[object Null]",sG="[object Undefined]",aw=ow?ow.toStringTag:void 0;function uG(e){return e==null?e===void 0?sG:aG:aw&&aw in Object(e)?iG(e):oG(e)}var lG=uG;function cG(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var bP=cG,fG=lG,hG=bP,dG="[object AsyncFunction]",pG="[object Function]",vG="[object GeneratorFunction]",mG="[object Proxy]";function gG(e){if(!hG(e))return!1;var t=fG(e);return t==pG||t==vG||t==dG||t==mG}var yG=gG,_G=Fh,xG=_G["__core-js_shared__"],bG=xG,Np=bG,sw=function(){var e=/[^.]+$/.exec(Np&&Np.keys&&Np.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function SG(e){return!!sw&&sw in e}var wG=SG,EG=Function.prototype,TG=EG.toString;function CG(e){if(e!=null){try{return TG.call(e)}catch{}try{return e+""}catch{}}return""}var OG=CG,AG=yG,PG=wG,kG=bP,IG=OG,RG=/[\\^$.*+?()[\]{}|]/g,NG=/^\[object .+?Constructor\]$/,LG=Function.prototype,MG=Object.prototype,FG=LG.toString,DG=MG.hasOwnProperty,BG=RegExp("^"+FG.call(DG).replace(RG,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function jG(e){if(!kG(e)||PG(e))return!1;var t=AG(e)?BG:NG;return t.test(IG(e))}var $G=jG;function UG(e,t){return e==null?void 0:e[t]}var GG=UG,zG=$G,HG=GG;function VG(e,t){var r=HG(e,t);return zG(r)?r:void 0}var E0=VG,WG=E0,qG=WG(Object,"create"),Dh=qG,uw=Dh;function XG(){this.__data__=uw?uw(null):{},this.size=0}var YG=XG;function KG(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ZG=KG,QG=Dh,JG="__lodash_hash_undefined__",ez=Object.prototype,tz=ez.hasOwnProperty;function rz(e){var t=this.__data__;if(QG){var r=t[e];return r===JG?void 0:r}return tz.call(t,e)?t[e]:void 0}var nz=rz,iz=Dh,oz=Object.prototype,az=oz.hasOwnProperty;function sz(e){var t=this.__data__;return iz?t[e]!==void 0:az.call(t,e)}var uz=sz,lz=Dh,cz="__lodash_hash_undefined__";function fz(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=lz&&t===void 0?cz:t,this}var hz=fz,dz=YG,pz=ZG,vz=nz,mz=uz,gz=hz;function ps(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var Mz=Lz,Fz=Bh;function Dz(e,t){var r=this.__data__,n=Fz(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Bz=Dz,jz=xz,$z=Pz,Uz=Rz,Gz=Mz,zz=Bz;function vs(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var zH=GH;function HH(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=h9){var l=t?null:c9(e);if(l)return f9(l);a=!1,i=l9,u=new a9}else u=t?[]:s;e:for(;++n{const u=e.split(` -`);let l=[],c=[];const f=u.map(h=>{const d=G6(h,i,o,a);return l=[...l,...d.sentenceAssets],c=[...c,...d.subScene],d});return l=g9(l),n(l),{sceneName:t,sceneUrl:r,sentenceList:f,assetsList:l,subSceneList:c}};oe.intro,oe.changeBg,oe.changeFigure,oe.miniAvatar,oe.changeScene,oe.choose,oe.end,oe.bgm,oe.video,oe.setComplexAnimation,oe.setFilter,oe.pixiInit,oe.pixi,oe.label,oe.jumpLabel,oe.setVar,oe.callScene,oe.showVars,oe.unlockCg,oe.unlockBgm,oe.say,oe.filmMode,oe.callScene,oe.setTextbox,oe.setAnimation,oe.playEffect;oe.bgm,oe.pixi,oe.pixiInit,oe.label,oe.if,oe.miniAvatar,oe.setVar,oe.unlockBgm,oe.unlockCg,oe.filmMode,oe.playEffect;function _9(e){const t=[];let r,n=e.split(";")[0];if(n==="")return{command:"",args:[],options:[]};const i=/:/.exec(n);i===null?r="":(r=n.substring(0,i.index),n=n.substring(i.index+1,n.length));const o=/ -/.exec(n);if(o){const a=n.substring(o.index,n.length);n=n.substring(0,o.index);for(const s of yP(a,(u,l)=>u))t.push(s)}return{command:r,args:n.split("|").map(a=>a.trim()).filter(a=>a!==""),options:t}}function x9(e){return e.replaceAll("\r","").split(` -`).map(r=>_9(r)).filter(r=>r.command!=="")}class b9{constructor(t,r,n,i){le(this,"assetsPrefetcher");le(this,"assetSetter");le(this,"ADD_NEXT_ARG_LIST");le(this,"SCRIPT_CONFIG");this.assetsPrefetcher=t,this.assetSetter=r,this.ADD_NEXT_ARG_LIST=n,this.SCRIPT_CONFIG=i}parse(t,r,n){return y9(t,r,n,this.assetsPrefetcher,this.assetSetter,this.ADD_NEXT_ARG_LIST,this.SCRIPT_CONFIG)}parseConfig(t){return x9(t)}stringifyConfig(t){return t.reduce((r,n)=>r+`${n.command}:${n.args.join("|")}${n.options.length<=0?"":n.options.reduce((i,o)=>i+" -"+o.key+"="+o.value,"")}; -`,"")}}const S9="_FullScreenPerform_main_7er8a_2",w9="_FullScreenPerform_element_7er8a_9",E9="_fullScreen_video_7er8a_17",T9="_fadeIn_7er8a_74",C9="_intro_showSoftly_7er8a_1",O9="_slideIn_7er8a_80",A9="_typingEffect_7er8a_86",P9="_typing_7er8a_86",k9="_blinkCursor_7er8a_1",I9="_pixelateEffect_7er8a_95",R9="_pixelateAnimation_7er8a_1",N9="_revealAnimation_7er8a_101",L9="_videoContainer_7er8a_115",wn={FullScreenPerform_main:S9,FullScreenPerform_element:w9,fullScreen_video:E9,fadeIn:T9,intro_showSoftly:C9,slideIn:O9,typingEffect:A9,typing:P9,blinkCursor:k9,pixelateEffect:I9,pixelateAnimation:R9,revealAnimation:N9,videoContainer:L9},M9=e=>{const t=`introPerform${Math.random().toString()}`;let r,n="rgba(0, 0, 0, 1)",i="rgba(255, 255, 255, 1)";const o=(b,w=0)=>{switch(b){case"fadeIn":return wn.fadeIn;case"slideIn":return wn.slideIn;case"typingEffect":return`${wn.typingEffect} ${w}`;case"pixelateEffect":return wn.pixelateEffect;case"revealAnimation":return wn.revealAnimation;default:return wn.fadeIn}};let a=wn.fadeIn,s=1500,u=!1;for(const b of e.args){if(b.key==="backgroundColor"&&(n=b.value||"rgba(0, 0, 0, 1)"),b.key==="fontColor"&&(i=b.value||"rgba(255, 255, 255, 1)"),b.key==="fontSize")switch(b.value){case"small":r="280%";break;case"medium":r="350%";break;case"large":r="420%";break}if(b.key==="animation"&&(a=o(b.value)),b.key==="delayTime"){const w=parseInt(b.value.toString(),10);s=isNaN(w)?s:w}b.key==="hold"&&b.value===!0&&(u=!0)}const l={background:n,color:i,fontSize:r||"350%",width:"100%",height:"100%"},c=e.content.split(/\|/);let h=1e3+s*c.length;const d=u?1e3*60*60*24:1e3+s*c.length;let v=!0,g=setTimeout(()=>{v=!1},h),p=setTimeout(()=>{});const m=()=>{const b=document.getElementById("introContainer");if(h-=s,clearTimeout(g),g=setTimeout(()=>{v=!1},h),b){const w=b.childNodes[0].childNodes[0].childNodes,T=w.length;w.forEach((k,A)=>{const P=Number(k.style.animationDelay.split("ms")[0]);P>0&&(k.style.animationDelay=`${P-s}ms`),A===T-1&&(P===0?(clearTimeout(p),O.gameplay.performController.unmountPerform(t)):(clearTimeout(p),u||(p=setTimeout(()=>{O.gameplay.performController.unmountPerform(t),setTimeout(Ut,0)},h))))})}};O.eventBus.on("__NEXT",m);const y=c.map((b,w)=>S.jsxs("div",{style:{animationDelay:`${s*w}ms`},className:a,children:[b,b===""?" ":""]},"introtext"+w+Math.random().toString())),_=S.jsx("div",{style:l,children:S.jsx("div",{style:{padding:"3em 4em 3em 4em"},children:y})});Mn.render(_,document.getElementById("introContainer"));const x=document.getElementById("introContainer");return x&&(x.style.display="block"),{performName:t,duration:d,isHoldOn:!1,stopFunction:()=>{const b=document.getElementById("introContainer");b&&(b.style.display="none"),O.eventBus.off("__NEXT",m)},blockingNext:()=>v,blockingAuto:()=>v,stopTimeout:void 0,goNextWhenOver:!0}};function Zu(e,t,r){let n;const o=j.getState().stage.effects.find(a=>a.target===e);if(t.duration=500,r&&typeof r=="number"&&(t.duration=r),n=[t],o){const a={...o.transform,duration:0};n.unshift(a)}else{const a={...t,alpha:0,duration:0};n.unshift(a)}return n}function wP(e,t){const r=O.gameplay.pixiStage.getStageObjByKey(e);function n(){r&&(r.pixiContainer.alpha=0)}function i(){r&&(r.pixiContainer.alpha=1)}function o(a){if(r){const s=r.pixiContainer,u=O.gameplay.pixiStage.frameDuration,c=1/(t/u*a);s.alpha<1&&(s.alpha+=c)}}return{setStartState:n,setEndState:i,tickerFunc:o}}function EP(e,t){const r=O.gameplay.pixiStage.getStageObjByKey(e);function n(){}function i(){r&&(r.pixiContainer.alpha=0)}function o(a){if(r){const s=r.pixiContainer,u=O.gameplay.pixiStage.frameDuration,c=1/(t/u*a);s.alpha>0&&(s.alpha-=c)}}return{setStartState:n,setEndState:i,tickerFunc:o}}const T0={alpha:1,scale:{x:1,y:1},position:{x:0,y:0},rotation:0,blur:0};function TP(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);iMath.min(Math.max(r,e),t),Mp=.001,D9=.01,fw=10,B9=.05,j9=1;function $9({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;F9(e<=fw*1e3);let a=1-t;a=rg(B9,j9,a),e=rg(D9,fw,e/1e3),a<1?(i=l=>{const c=l*a,f=c*e,h=c-r,d=ng(l,a),v=Math.exp(-f);return Mp-h/d*v},o=l=>{const f=l*a*e,h=f*r+r,d=Math.pow(a,2)*Math.pow(l,2)*e,v=Math.exp(-f),g=ng(Math.pow(l,2),a);return(-i(l)+Mp>0?-1:1)*((h-d)*v)/g}):(i=l=>{const c=Math.exp(-l*e),f=(l-r)*e+1;return-Mp+c*f},o=l=>{const c=Math.exp(-l*e),f=(r-l)*(e*e);return c*f});const s=5/e,u=G9(i,o,s);if(e=e*1e3,isNaN(u))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(u,2)*n;return{stiffness:l,damping:a*2*Math.sqrt(n*l),duration:e}}}const U9=12;function G9(e,t,r){let n=r;for(let i=1;ie[r]!==void 0)}function V9(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!hw(e,H9)&&hw(e,z9)){const r=$9(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function C0(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:i}=e,o=TP(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:s,damping:u,mass:l,velocity:c,duration:f,isResolvedFromDuration:h}=V9(o),d=dw,v=dw;function g(){const p=c?-(c/1e3):0,m=r-t,y=u/(2*Math.sqrt(s*l)),_=Math.sqrt(s/l)/1e3;if(i===void 0&&(i=Math.min(Math.abs(r-t)/100,.4)),y<1){const x=ng(_,y);d=b=>{const w=Math.exp(-y*_*b);return r-w*((p+y*_*m)/x*Math.sin(x*b)+m*Math.cos(x*b))},v=b=>{const w=Math.exp(-y*_*b);return y*_*w*(Math.sin(x*b)*(p+y*_*m)/x+m*Math.cos(x*b))-w*(Math.cos(x*b)*(p+y*_*m)-x*m*Math.sin(x*b))}}else if(y===1)d=x=>r-Math.exp(-_*x)*(m+(p+_*m)*x);else{const x=_*Math.sqrt(y*y-1);d=b=>{const w=Math.exp(-y*_*b),T=Math.min(x*b,300);return r-w*((p+y*_*m)*Math.sinh(T)+x*m*Math.cosh(T))/x}}}return g(),{next:p=>{const m=d(p);if(h)a.done=p>=f;else{const y=v(p)*1e3,_=Math.abs(y)<=n,x=Math.abs(r-m)<=i;a.done=_&&x}return a.value=a.done?r:m,a},flipTarget:()=>{c=-c,[t,r]=[r,t],g()}}}C0.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const dw=e=>0,CP=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},O0=(e,t,r)=>-r*e+r*t+e,OP=(e,t)=>r=>Math.max(Math.min(r,t),e),Su=e=>e%1?Number(e.toFixed(5)):e,$f=/(-)?([\d]*\.?[\d])+/g,ig=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,W9=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Al(e){return typeof e=="string"}const $h={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},AP=Object.assign(Object.assign({},$h),{transform:OP(0,1)});Object.assign(Object.assign({},$h),{default:1});const q9=e=>({test:t=>Al(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),wu=q9("%");Object.assign(Object.assign({},wu),{parse:e=>wu.parse(e)/100,transform:e=>wu.transform(e*100)});const A0=(e,t)=>r=>!!(Al(r)&&W9.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),PP=(e,t,r)=>n=>{if(!Al(n))return n;const[i,o,a,s]=n.match($f);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},wo={test:A0("hsl","hue"),parse:PP("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+wu.transform(Su(t))+", "+wu.transform(Su(r))+", "+Su(AP.transform(n))+")"},X9=OP(0,255),Fp=Object.assign(Object.assign({},$h),{transform:e=>Math.round(X9(e))}),Ei={test:A0("rgb","red"),parse:PP("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Fp.transform(e)+", "+Fp.transform(t)+", "+Fp.transform(r)+", "+Su(AP.transform(n))+")"};function Y9(e){let t="",r="",n="",i="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),i=e.substr(4,1),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const og={test:A0("#"),parse:Y9,transform:Ei.transform},Uh={test:e=>Ei.test(e)||og.test(e)||wo.test(e),parse:e=>Ei.test(e)?Ei.parse(e):wo.test(e)?wo.parse(e):og.parse(e),transform:e=>Al(e)?e:e.hasOwnProperty("red")?Ei.transform(e):wo.transform(e)},kP="${c}",IP="${n}";function K9(e){var t,r,n,i;return isNaN(e)&&Al(e)&&((r=(t=e.match($f))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((i=(n=e.match(ig))===null||n===void 0?void 0:n.length)!==null&&i!==void 0?i:0)>0}function RP(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const n=e.match(ig);n&&(r=n.length,e=e.replace(ig,kP),t.push(...n.map(Uh.parse)));const i=e.match($f);return i&&(e=e.replace($f,IP),t.push(...i.map($h.parse))),{values:t,numColors:r,tokenised:e}}function NP(e){return RP(e).values}function LP(e){const{values:t,numColors:r,tokenised:n}=RP(e),i=t.length;return o=>{let a=n;for(let s=0;stypeof e=="number"?0:e;function Q9(e){const t=NP(e);return LP(e)(t.map(Z9))}const MP={test:K9,parse:NP,createTransformer:LP,getAnimatableNone:Q9};function Dp(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function pw({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,o=0,a=0;if(!t)i=o=a=r;else{const s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;i=Dp(u,s,e+1/3),o=Dp(u,s,e),a=Dp(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:n}}const J9=(e,t,r)=>{const n=e*e,i=t*t;return Math.sqrt(Math.max(0,r*(i-n)+n))},eV=[og,Ei,wo],vw=e=>eV.find(t=>t.test(e)),FP=(e,t)=>{let r=vw(e),n=vw(t),i=r.parse(e),o=n.parse(t);r===wo&&(i=pw(i),r=Ei),n===wo&&(o=pw(o),n=Ei);const a=Object.assign({},i);return s=>{for(const u in a)u!=="alpha"&&(a[u]=J9(i[u],o[u],s));return a.alpha=O0(i.alpha,o.alpha,s),r.transform(a)}},tV=e=>typeof e=="number",rV=(e,t)=>r=>t(e(r)),DP=(...e)=>e.reduce(rV);function BP(e,t){return tV(e)?r=>O0(e,t,r):Uh.test(e)?FP(e,t):$P(e,t)}const jP=(e,t)=>{const r=[...e],n=r.length,i=e.map((o,a)=>BP(o,t[a]));return o=>{for(let a=0;a{const r=Object.assign(Object.assign({},e),t),n={};for(const i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=BP(e[i],t[i]));return i=>{for(const o in n)r[o]=n[o](i);return r}};function mw(e){const t=MP.parse(e),r=t.length;let n=0,i=0,o=0;for(let a=0;a{const r=MP.createTransformer(t),n=mw(e),i=mw(t);return n.numHSL===i.numHSL&&n.numRGB===i.numRGB&&n.numNumbers>=i.numNumbers?DP(jP(n.parsed,i.parsed),r):a=>`${a>0?t:e}`},iV=(e,t)=>r=>O0(e,t,r);function oV(e){if(typeof e=="number")return iV;if(typeof e=="string")return Uh.test(e)?FP:$P;if(Array.isArray(e))return jP;if(typeof e=="object")return nV}function aV(e,t,r){const n=[],i=r||oV(e[0]),o=e.length-1;for(let a=0;ar(CP(e,t,n))}function uV(e,t){const r=e.length,n=r-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[n]&&(o=n-1,a=!0),!a){let u=1;for(;ui||u===n);u++);o=u-1}const s=CP(e[o],e[o+1],i);return t[o](s)}}function UP(e,t,{clamp:r=!0,ease:n,mixer:i}={}){const o=e.length;cw(o===t.length),cw(!n||!Array.isArray(n)||n.length===o-1),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=aV(t,n,i),s=o===2?sV(e,a):uV(e,a);return r?u=>s(rg(e[0],e[o-1],u)):s}const lV=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,cV=e=>t=>Math.pow(t,e),fV=e=>t=>t*t*((e+1)*t-e),hV=e=>{const t=fV(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},dV=1.525,pV=cV(2),vV=lV(pV);hV(dV);function mV(e,t){return e.map(()=>t||vV).splice(0,e.length-1)}function gV(e){const t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function yV(e,t){return e.map(r=>r*t)}function qc({from:e=0,to:t=1,ease:r,offset:n,duration:i=300}){const o={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=yV(n&&n.length===a.length?n:gV(a),i);function u(){return UP(s,a,{ease:Array.isArray(r)?r:mV(a,r)})}let l=u();return{next:c=>(o.value=l(c),o.done=c>=i,o),flipTarget:()=>{a.reverse(),l=u()}}}function _V({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:o}){const a={done:!1,value:t};let s=r*e;const u=t+s,l=o===void 0?u:o(u);return l!==u&&(s=l-t),{next:c=>{const f=-s*Math.exp(-c/n);return a.done=!(f>i||f<-i),a.value=a.done?l:l+f,a},flipTarget:()=>{}}}const gw={keyframes:qc,spring:C0,decay:_V};function xV(e){if(Array.isArray(e.to))return qc;if(gw[e.type])return gw[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?qc:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?C0:qc}const GP=1/60*1e3,bV=typeof performance<"u"?()=>performance.now():()=>Date.now(),zP=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(bV()),GP);function SV(e){let t=[],r=[],n=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(u,l=!1,c=!1)=>{const f=c&&i,h=f?t:r;return l&&a.add(u),h.indexOf(u)===-1&&(h.push(u),f&&i&&(n=t.length)),u},cancel:u=>{const l=r.indexOf(u);l!==-1&&r.splice(l,1),a.delete(u)},process:u=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let l=0;l(e[t]=SV(()=>Qu=!0),e),{}),EV=Pl.reduce((e,t)=>{const r=Gh[t];return e[t]=(n,i=!1,o=!1)=>(Qu||OV(),r.schedule(n,i,o)),e},{}),TV=Pl.reduce((e,t)=>(e[t]=Gh[t].cancel,e),{});Pl.reduce((e,t)=>(e[t]=()=>Gh[t].process(Eu),e),{});const CV=e=>Gh[e].process(Eu),HP=e=>{Qu=!1,Eu.delta=ag?GP:Math.max(Math.min(e-Eu.timestamp,wV),1),Eu.timestamp=e,sg=!0,Pl.forEach(CV),sg=!1,Qu&&(ag=!1,zP(HP))},OV=()=>{Qu=!0,ag=!0,sg||zP(HP)},AV=EV;function VP(e,t,r=0){return e-t-r}function PV(e,t,r=0,n=!0){return n?VP(t+-e,t,r):t-(e-t)+r}function kV(e,t,r,n){return n?e>=t+r:e<=-r}const IV=e=>{const t=({delta:r})=>e(r);return{start:()=>AV.update(t,!0),stop:()=>TV.update(t)}};function RV(e){var t,r,{from:n,autoplay:i=!0,driver:o=IV,elapsed:a=0,repeat:s=0,repeatType:u="loop",repeatDelay:l=0,onPlay:c,onStop:f,onComplete:h,onRepeat:d,onUpdate:v}=e,g=TP(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:p}=g,m,y=0,_=g.duration,x,b=!1,w=!0,T;const k=xV(g);!((r=(t=k).needsInterpolation)===null||r===void 0)&&r.call(t,n,p)&&(T=UP([0,100],[n,p],{clamp:!1}),n=0,p=100);const A=k(Object.assign(Object.assign({},g),{from:n,to:p}));function P(){y++,u==="reverse"?(w=y%2===0,a=PV(a,_,l,w)):(a=VP(a,_,l),u==="mirror"&&A.flipTarget()),b=!1,d&&d()}function F(){m.stop(),h&&h()}function D(re){if(w||(re=-re),a+=re,!b){const z=A.next(Math.max(0,a));x=z.value,T&&(x=T(x)),b=w?z.done:a<=0}v==null||v(x),b&&(y===0&&(_??(_=a)),y{f==null||f(),m.stop()}}}var NV="__lodash_hash_undefined__";function LV(e){return this.__data__.set(e,NV),this}var MV=LV;function FV(e){return this.__data__.has(e)}var DV=FV,BV=o0,jV=MV,$V=DV;function Uf(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new BV;++ts))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var f=-1,h=!0,d=r&XV?new HV:void 0;for(o.set(e,t),o.set(t,e);++f0&&(u=RV({to:o,offset:a,duration:r,onUpdate:m=>{if(s){const{scaleX:y,scaleY:_,...x}=m;Object.assign(s,$p(x,Xn)),Xn(y)||(s.scale.x=y),Xn(_)||(s.scale.y=_)}}}));const{duration:l,...c}=g();j.dispatch(Ir.updateEffect({target:t,transform:c}));function f(){if(n!=null&&n.pixiContainer){const{position:m,scale:y,..._}=v(),x=$p({x:m.x,y:m.y,..._},Xn);Object.assign(n==null?void 0:n.pixiContainer,x),n!=null&&n.pixiContainer&&(Xn(y.x)||(n.pixiContainer.scale.x=y.x),Xn(y==null?void 0:y.y)||(n.pixiContainer.scale.y=y.y))}}function h(){if(u&&u.stop(),u=null,n!=null&&n.pixiContainer){const{position:m,scale:y,..._}=g(),x=$p({x:m.x,y:m.y,..._},Xn);Object.assign(n==null?void 0:n.pixiContainer,x),n!=null&&n.pixiContainer&&(Xn(y.x)||(n.pixiContainer.scale.x=y.x),Xn(y==null?void 0:y.y)||(n.pixiContainer.scale.y=y.y))}}function d(m){}function v(){return e[0]}function g(){return e[e.length-1]}function p(){const m=e[e.length-1],{alpha:y,rotation:_,blur:x,duration:b,scale:w,position:T,...k}=m;return k}return{setStartState:f,setEndState:h,tickerFunc:d,getEndFilterEffect:p}}function Gf(e,t,r){const n=O.animationManager.getAnimations().find(i=>i.name===e);if(n){const i=n.effects.map(o=>{const a=j.getState().stage.effects.find(u=>u.target===t),s=Et({...(a==null?void 0:a.transform)??T0,duration:0});return Object.assign(s,o),s.duration=o.duration,s});return ne.debug("装载自定义动画",i),n2(i,t,r)}return null}function xr(e){const t=O.animationManager.getAnimations().find(r=>r.name===e);if(t){let r=0;return t.effects.forEach(n=>{r+=n.duration}),r}return 0}function xi(e,t,r=!1){if(t==="enter"){let n=500;r&&(n=1500);let i=wP(e,n);const o=O.animationManager.nextEnterAnimationName.get(e);return o&&(ne.debug("取代默认进入动画",e),i=Gf(o,e,xr(o)),n=xr(o),O.animationManager.nextEnterAnimationName.delete(e)),{duration:n,animation:i}}else{let n=750;r&&(n=1500);let i=EP(e,n);const o=O.animationManager.nextExitAnimationName.get(e);return o&&(ne.debug("取代默认退出动画",e),i=Gf(o,e,xr(o)),n=xr(o),O.animationManager.nextExitAnimationName.delete(e)),{duration:n,animation:i}}}const rX=e=>{const t=e.content;let r="",n="default";e.args.forEach(l=>{l.key==="unlockname"&&(r=l.value.toString()),l.key==="series"&&(n=l.value.toString())});const i=j.dispatch;r!==""&&i(dP({name:r,url:t,series:n})),i(Ir.removeEffectByTargetId("bg-main"));const o=Pe(e,"transform");let a=Pe(e,"duration");(!a||typeof a!="number")&&(a=1e3);let s;if(o)try{const l=JSON.parse(o.toString());s=Zu("bg-main",l,a),s[0].alpha=0;const c=(Math.random()*10).toString(16),f={name:c,effects:s};O.animationManager.addAnimation(f),a=xr(c),O.animationManager.nextEnterAnimationName.set("bg-main",c)}catch{u()}else u();function u(){s=Zu("bg-main",{},a),s[0].alpha=0;const c=(Math.random()*10).toString(16),f={name:c,effects:s};O.animationManager.addAnimation(f),a=xr(c),O.animationManager.nextEnterAnimationName.set("bg-main",c)}return Pe(e,"enter")&&(O.animationManager.nextEnterAnimationName.set("bg-main",Pe(e,"enter").toString()),a=xr(Pe(e,"enter").toString())),Pe(e,"exit")&&(O.animationManager.nextExitAnimationName.set("bg-main-off",Pe(e,"exit").toString()),a=xr(Pe(e,"exit").toString())),i(Te({key:"bgName",value:e.content})),{performName:"none",duration:a,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function nX(e){let t="center",r=e.content,n=!1,i="",o="",a="",s=500,u="",l="",c="",f="",h="",d="";const v=j.dispatch;for(const b of e.args)switch(b.key){case"left":b.value===!0&&(t="left");break;case"right":b.value===!0&&(t="right");break;case"clear":b.value===!0&&(r="");break;case"id":n=!0,a=b.value.toString();break;case"motion":i=b.value.toString();break;case"expression":o=b.value.toString();break;case"mouthOpen":u=b.value.toString(),u=Nr(u,Rr.figure);break;case"mouthClose":l=b.value.toString(),l=Nr(l,Rr.figure);break;case"mouthHalfOpen":c=b.value.toString(),c=Nr(c,Rr.figure);break;case"eyesOpen":f=b.value.toString(),f=Nr(f,Rr.figure);break;case"eyesClose":h=b.value.toString(),h=Nr(h,Rr.figure);break;case"animationFlag":d=b.value.toString();break;case"none":r="";break}const g=a||`fig-${t}`,m=j.getState().stage.figureAssociatedAnimation.filter(b=>b.targetId!==g),y={targetId:g,animationFlag:d,mouthAnimation:{open:u,close:l,halfOpen:c},blinkAnimation:{open:f,close:h}};m.push(y),v(Te({key:"figureAssociatedAnimation",value:m}));let _=!0;if(a!==""){const b=j.getState().stage.freeFigure.find(w=>w.key===a);b&&b.name===e.content&&(_=!1)}else t==="center"&&j.getState().stage.figName===e.content&&(_=!1),t==="left"&&j.getState().stage.figNameLeft===e.content&&(_=!1),t==="right"&&j.getState().stage.figNameRight===e.content&&(_=!1);if(_){const b=`fig-${t}`,w=`${a}`;j.dispatch(Ir.removeEffectByTargetId(b)),j.dispatch(Ir.removeEffectByTargetId(w))}const x=(b,w)=>{const T=Pe(w,"transform"),k=Pe(w,"duration");k&&typeof k=="number"&&(s=k);let A;if(T){console.log(T);try{const H=JSON.parse(T.toString());A=Zu(b,H,s),A[0].alpha=0;const re=(Math.random()*10).toString(16),z={name:re,effects:A};O.animationManager.addAnimation(z),s=xr(re),O.animationManager.nextEnterAnimationName.set(b,re)}catch{P()}}else P();function P(){A=Zu(b,{},s),A[0].alpha=0;const re=(Math.random()*10).toString(16),z={name:re,effects:A};O.animationManager.addAnimation(z),s=xr(re),O.animationManager.nextEnterAnimationName.set(b,re)}const F=Pe(w,"enter"),D=Pe(w,"exit");F&&(O.animationManager.nextEnterAnimationName.set(b,F.toString()),s=xr(F.toString())),D&&(O.animationManager.nextExitAnimationName.set(b+"-off",D.toString()),s=xr(D.toString()))};if(n){j.getState().stage.freeFigure;const b={key:a,name:r,basePosition:t};x(a,e),i&&v(Ir.setLive2dMotion({target:a,motion:i})),o&&v(Ir.setLive2dExpression({target:a,expression:o})),v(Ir.setFreeFigureByKey(b))}else{const b={center:"fig-center",left:"fig-left",right:"fig-right"},w={center:"figName",left:"figNameLeft",right:"figNameRight"};a=b[t],x(a,e),i&&v(Ir.setLive2dMotion({target:a,motion:i})),o&&v(Ir.setLive2dExpression({target:a,expression:o})),v(Te({key:w[t],value:r}))}return{performName:"none",duration:s,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}}const iX=e=>{let t=e.content;return(e.content==="none"||e.content==="")&&(t=""),j.dispatch(Te({key:"miniAvatar",value:t})),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};var N0={exports:{}},i2=function(t,r){return function(){for(var i=new Array(arguments.length),o=0;o"u"}function aX(e){return e!==null&&!ug(e)&&e.constructor!==null&&!ug(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function o2(e){return to.call(e)==="[object ArrayBuffer]"}function sX(e){return to.call(e)==="[object FormData]"}function uX(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&o2(e.buffer),t}function lX(e){return typeof e=="string"}function cX(e){return typeof e=="number"}function a2(e){return e!==null&&typeof e=="object"}function Xc(e){if(to.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function fX(e){return to.call(e)==="[object Date]"}function hX(e){return to.call(e)==="[object File]"}function dX(e){return to.call(e)==="[object Blob]"}function s2(e){return to.call(e)==="[object Function]"}function pX(e){return a2(e)&&s2(e.pipe)}function vX(e){return to.call(e)==="[object URLSearchParams]"}function mX(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function gX(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function M0(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),L0(e))for(var r=0,n=e.length;r"u"||(ea.isArray(u)?l=l+"[]":u=[u],ea.forEach(u,function(f){ea.isDate(f)?f=f.toISOString():ea.isObject(f)&&(f=JSON.stringify(f)),o.push(Nw(l)+"="+Nw(f))}))}),i=o.join("&")}if(i){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},xX=Ar;function Vh(){this.handlers=[]}Vh.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};Vh.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Vh.prototype.forEach=function(t){xX.forEach(this.handlers,function(n){n!==null&&t(n)})};var bX=Vh,SX=Ar,wX=function(t,r){SX.forEach(t,function(i,o){o!==r&&o.toUpperCase()===r.toUpperCase()&&(t[r]=i,delete t[o])})},l2=function(t,r,n,i,o){return t.config=r,n&&(t.code=n),t.request=i,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},c2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Up,Lw;function f2(){if(Lw)return Up;Lw=1;var e=l2;return Up=function(r,n,i,o,a){var s=new Error(r);return e(s,n,i,o,a)},Up}var Gp,Mw;function EX(){if(Mw)return Gp;Mw=1;var e=f2();return Gp=function(r,n,i){var o=i.config.validateStatus;!i.status||!o||o(i.status)?r(i):n(e("Request failed with status code "+i.status,i.config,null,i.request,i))},Gp}var zp,Fw;function TX(){if(Fw)return zp;Fw=1;var e=Ar;return zp=e.isStandardBrowserEnv()?function(){return{write:function(n,i,o,a,s,u){var l=[];l.push(n+"="+encodeURIComponent(i)),e.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),e.isString(a)&&l.push("path="+a),e.isString(s)&&l.push("domain="+s),u===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){var i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),zp}var Hp,Dw;function CX(){return Dw||(Dw=1,Hp=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),Hp}var Vp,Bw;function OX(){return Bw||(Bw=1,Vp=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),Vp}var Wp,jw;function AX(){if(jw)return Wp;jw=1;var e=CX(),t=OX();return Wp=function(n,i){return n&&!e(i)?t(n,i):i},Wp}var qp,$w;function PX(){if($w)return qp;$w=1;var e=Ar,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return qp=function(n){var i={},o,a,s;return n&&e.forEach(n.split(` -`),function(l){if(s=l.indexOf(":"),o=e.trim(l.substr(0,s)).toLowerCase(),a=e.trim(l.substr(s+1)),o){if(i[o]&&t.indexOf(o)>=0)return;o==="set-cookie"?i[o]=(i[o]?i[o]:[]).concat([a]):i[o]=i[o]?i[o]+", "+a:a}}),i},qp}var Xp,Uw;function kX(){if(Uw)return Xp;Uw=1;var e=Ar;return Xp=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),i;function o(a){var s=a;return r&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=o(window.location.href),function(s){var u=e.isString(s)?o(s):s;return u.protocol===i.protocol&&u.host===i.host}}():function(){return function(){return!0}}(),Xp}var Yp,Gw;function Wh(){if(Gw)return Yp;Gw=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,Yp=e,Yp}var Kp,zw;function Hw(){if(zw)return Kp;zw=1;var e=Ar,t=EX(),r=TX(),n=u2,i=AX(),o=PX(),a=kX(),s=f2(),u=c2,l=Wh();return Kp=function(f){return new Promise(function(d,v){var g=f.data,p=f.headers,m=f.responseType,y;function _(){f.cancelToken&&f.cancelToken.unsubscribe(y),f.signal&&f.signal.removeEventListener("abort",y)}e.isFormData(g)&&delete p["Content-Type"];var x=new XMLHttpRequest;if(f.auth){var b=f.auth.username||"",w=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";p.Authorization="Basic "+btoa(b+":"+w)}var T=i(f.baseURL,f.url);x.open(f.method.toUpperCase(),n(T,f.params,f.paramsSerializer),!0),x.timeout=f.timeout;function k(){if(x){var P="getAllResponseHeaders"in x?o(x.getAllResponseHeaders()):null,F=!m||m==="text"||m==="json"?x.responseText:x.response,D={data:F,status:x.status,statusText:x.statusText,headers:P,config:f,request:x};t(function(re){d(re),_()},function(re){v(re),_()},D),x=null}}if("onloadend"in x?x.onloadend=k:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(k)},x.onabort=function(){x&&(v(s("Request aborted",f,"ECONNABORTED",x)),x=null)},x.onerror=function(){v(s("Network Error",f,null,x)),x=null},x.ontimeout=function(){var F=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",D=f.transitional||u;f.timeoutErrorMessage&&(F=f.timeoutErrorMessage),v(s(F,f,D.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",x)),x=null},e.isStandardBrowserEnv()){var A=(f.withCredentials||a(T))&&f.xsrfCookieName?r.read(f.xsrfCookieName):void 0;A&&(p[f.xsrfHeaderName]=A)}"setRequestHeader"in x&&e.forEach(p,function(F,D){typeof g>"u"&&D.toLowerCase()==="content-type"?delete p[D]:x.setRequestHeader(D,F)}),e.isUndefined(f.withCredentials)||(x.withCredentials=!!f.withCredentials),m&&m!=="json"&&(x.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&x.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&x.upload&&x.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(y=function(P){x&&(v(!P||P&&P.type?new l("canceled"):P),x.abort(),x=null)},f.cancelToken&&f.cancelToken.subscribe(y),f.signal&&(f.signal.aborted?y():f.signal.addEventListener("abort",y))),g||(g=null),x.send(g)})},Kp}var Wt=Ar,Vw=wX,IX=l2,RX=c2,NX={"Content-Type":"application/x-www-form-urlencoded"};function Ww(e,t){!Wt.isUndefined(e)&&Wt.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function LX(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Hw()),e}function MX(e,t,r){if(Wt.isString(e))try{return(t||JSON.parse)(e),Wt.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var qh={transitional:RX,adapter:LX(),transformRequest:[function(t,r){return Vw(r,"Accept"),Vw(r,"Content-Type"),Wt.isFormData(t)||Wt.isArrayBuffer(t)||Wt.isBuffer(t)||Wt.isStream(t)||Wt.isFile(t)||Wt.isBlob(t)?t:Wt.isArrayBufferView(t)?t.buffer:Wt.isURLSearchParams(t)?(Ww(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Wt.isObject(t)||r&&r["Content-Type"]==="application/json"?(Ww(r,"application/json"),MX(t)):t}],transformResponse:[function(t){var r=this.transitional||qh.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,o=!n&&this.responseType==="json";if(o||i&&Wt.isString(t)&&t.length)try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?IX(a,this,"E_JSON_PARSE"):a}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Wt.forEach(["delete","get","head"],function(t){qh.headers[t]={}});Wt.forEach(["post","put","patch"],function(t){qh.headers[t]=Wt.merge(NX)});var F0=qh,FX=Ar,DX=F0,BX=function(t,r,n){var i=this||DX;return FX.forEach(n,function(a){t=a.call(i,t,r)}),t},Zp,qw;function h2(){return qw||(qw=1,Zp=function(t){return!!(t&&t.__CANCEL__)}),Zp}var Xw=Ar,Qp=BX,jX=h2(),$X=F0,UX=Wh();function Jp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new UX("canceled")}var GX=function(t){Jp(t),t.headers=t.headers||{},t.data=Qp.call(t,t.data,t.headers,t.transformRequest),t.headers=Xw.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Xw.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||$X.adapter;return r(t).then(function(i){return Jp(t),i.data=Qp.call(t,i.data,i.headers,t.transformResponse),i},function(i){return jX(i)||(Jp(t),i&&i.response&&(i.response.data=Qp.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},kr=Ar,d2=function(t,r){r=r||{};var n={};function i(c,f){return kr.isPlainObject(c)&&kr.isPlainObject(f)?kr.merge(c,f):kr.isPlainObject(f)?kr.merge({},f):kr.isArray(f)?f.slice():f}function o(c){if(kr.isUndefined(r[c])){if(!kr.isUndefined(t[c]))return i(void 0,t[c])}else return i(t[c],r[c])}function a(c){if(!kr.isUndefined(r[c]))return i(void 0,r[c])}function s(c){if(kr.isUndefined(r[c])){if(!kr.isUndefined(t[c]))return i(void 0,t[c])}else return i(void 0,r[c])}function u(c){if(c in r)return i(t[c],r[c]);if(c in t)return i(void 0,t[c])}var l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return kr.forEach(Object.keys(t).concat(Object.keys(r)),function(f){var h=l[f]||o,d=h(f);kr.isUndefined(d)&&h!==u||(n[f]=d)}),n},ev,Yw;function p2(){return Yw||(Yw=1,ev={version:"0.26.1"}),ev}var zX=p2().version,D0={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){D0[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var Kw={};D0.transitional=function(t,r,n){function i(o,a){return"[Axios v"+zX+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,s){if(t===!1)throw new Error(i(a," has been removed"+(r?" in "+r:"")));return r&&!Kw[a]&&(Kw[a]=!0,console.warn(i(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,a,s):!0}};function HX(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],a=t[o];if(a){var s=e[o],u=s===void 0||a(s,o,e);if(u!==!0)throw new TypeError("option "+o+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+o)}}var VX={assertOptions:HX,validators:D0},v2=Ar,WX=u2,Zw=bX,Qw=GX,Xh=d2,m2=VX,ta=m2.validators;function Il(e){this.defaults=e,this.interceptors={request:new Zw,response:new Zw}}Il.prototype.request=function(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Xh(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var n=r.transitional;n!==void 0&&m2.assertOptions(n,{silentJSONParsing:ta.transitional(ta.boolean),forcedJSONParsing:ta.transitional(ta.boolean),clarifyTimeoutError:ta.transitional(ta.boolean)},!1);var i=[],o=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(r)===!1||(o=o&&d.synchronous,i.unshift(d.fulfilled,d.rejected))});var a=[];this.interceptors.response.forEach(function(d){a.push(d.fulfilled,d.rejected)});var s;if(!o){var u=[Qw,void 0];for(Array.prototype.unshift.apply(u,i),u=u.concat(a),s=Promise.resolve(r);u.length;)s=s.then(u.shift(),u.shift());return s}for(var l=r;i.length;){var c=i.shift(),f=i.shift();try{l=c(l)}catch(h){f(h);break}}try{s=Qw(l)}catch(h){return Promise.reject(h)}for(;a.length;)s=s.then(a.shift(),a.shift());return s};Il.prototype.getUri=function(t){return t=Xh(this.defaults,t),WX(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};v2.forEach(["delete","get","head","options"],function(t){Il.prototype[t]=function(r,n){return this.request(Xh(n||{},{method:t,url:r,data:(n||{}).data}))}});v2.forEach(["post","put","patch"],function(t){Il.prototype[t]=function(r,n,i){return this.request(Xh(i||{},{method:t,url:r,data:n}))}});var qX=Il,tv,Jw;function XX(){if(Jw)return tv;Jw=1;var e=Wh();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(a){n=a});var i=this;this.promise.then(function(o){if(i._listeners){var a,s=i._listeners.length;for(a=0;anew Promise(t=>{zf.get(e).then(r=>{const n=r.data.toString();t(n)})});function rY(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o-1}var vY=pY;function mY(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=IY){var l=t?null:PY(e);if(l)return kY(l);a=!1,i=AY,u=new TY}else u=t?[]:s;e:for(;++n{for(const t of e)O.sceneManager.settledScenes.includes(t)?ne.warn(`场景${t}已经加载过,无需再次加载`):(ne.info(`现在预加载场景${t}`),Vn(t).then(r=>{Wn(r,t,t)}))},y2=(e,t)=>{Vn(e).then(r=>{O.sceneManager.sceneData.currentScene=Wn(r,t,e),O.sceneManager.sceneData.currentSentenceId=0;const n=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(e);const i=Rl(n);Nl(i),ne.debug("现在切换场景,切换后的结果:",O.sceneManager.sceneData),Ut()})},nE=e=>{const t=e.content.split("/"),r=t[t.length-1];return y2(e.content,r),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},_2=e=>{const t=O.sceneManager.sceneData.currentSentenceId;let r=t;O.sceneManager.sceneData.currentScene.sentenceList.forEach((n,i)=>{n.command===de.label&&n.content===e&&i!==t&&(r=i)}),O.sceneManager.sceneData.currentSentenceId=r,setTimeout(Ut,1)},DY="_Choose_Main_cegqk_1",BY="_Choose_item_cegqk_13",jY="_Choose_item_disabled_cegqk_29",ov={Choose_Main:DY,Choose_item:BY,Choose_item_disabled:jY},$Y=""+new URL("page-flip-1-7df32409.mp3",import.meta.url).href,UY=""+new URL("switch-1-99b576bc.mp3",import.meta.url).href,x2="data:audio/mpeg;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU3LjE0LjEwMAAAAAAAAAAAAAAA//OAAAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAAHAAAGhgA/Pz8/Pz8/Pz8/Pz8/P19fX19fX19fX19fX19ff39/f39/f39/f39/f3+fn5+fn5+fn5+fn5+fn5+/v7+/v7+/v7+/v7+/v9/f39/f39/f39/f39/f//////////////////8AAAAATGF2YzU3LjE1AAAAAAAAAAAAAAAAJAAAAAAAAAAABoYV32R7AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zgGQAAAABpAAAAAAAAANIAAAAACADH/+QtN3NAAAKF6IiVEl7hE0Sv/+XsgGgCgQDQFAgGg3D+yBShQzd+K0qXyBQyRQUp3hEkUMGn/8oCBQ5KOIf+sPl3//+Xf/+GP//6w+EgFgk/nOfWhA4Q4ABxjnQhDhCD3pgIQLAARlkyZ8Ew+Ud1AgUOfy7/4OeGOUORPD//wwUd/KHP//+GPykMA445BCHBIYg4ZC4AyGP+PuWtgyRb6quwuJvp+v8wQwDAKoXYMnpC0w6gAc0HLf/84JkuwnkuN6ioaAAD3CpsVVFMAAFQBkWjRnE4hYMOnIaT5sXEGFHCyMLPhfcDTHTUmRcgnQMuCfCKHjcDRlTchxFTcEHsKGiBNQ6mLhLkNImWi8PkY6s3kUWgaJmjd1igSfFzk+gLLIOcMi4gXyupR9A20G/4zAhOJ/PDgGYKI4y4LMEEBYhnUz1lpozrmZk3//lsky4s+TB4ul8ny6YOV0FmRx0ElHlMbNWYOr///1uZFQ3IGRNBRmfWlRUYkeV8mVhC5j/+UOiwF4DdcGgB//zgmTqHCnhQS/NUAGcStp6X4JQAARBgQCDIwGbMjrzxBIRk8s4+IS7mMEYN4elXLheFicbuxm88zzzHaw/G//9DCJ+eYRf8WGFtZp9ydCUvPMKGf/57ZjPRjzHtq+3//+YZ2U8817jxbb1vcn/1yAPkAgGUJuPiliw1FHilYbAAkIkV4CdGauxnChrTd+JTOW4BTlAB55YoeqaxWm7Wv8xLqLOiiZLUixqapJF5JNAcoviEoN2gAwAUcLiN5Mk6i3TRU+ikk++6KKKTqSKyBsx//OCZFMVigU/GuzMAIuQEq5fwxACNMZGRPKvoqXbR0UbJP11I0t9J/SqSrRZ0lXoqetSTnWoto0kl26LJGJqizoJmtJSSNSWk7WdTpXUkiigbVor9K6lpKSrdFNi8gnstA65dQVWxkXlGyTGRiRt9gUkBwgAggllBkQbKigffEMUfzqlL+6Ruli5Bv+4lPf//////X/////o0Wte9XLYBs4JbHGkwql7GrPNPMusqAJDUPzthoURwGi5eZyu+VuecNrURSYBU/p8//81Vf+Znkn/84JkNA4gwTcvDYYmF1lmTbAzByQpycp3ROJPn025p4SQJoSeFQoViUUAoiJFRL3c8JRUNETudLFn0MtLDwrM4lUeOiJtiztbvBk6xyPrctYdEkBpA09q2Xn9/TmkZxYMuXBUW17I4clP/nKrXbW/C6FI5G0z11z31L9fvGqoAzY1X86WwYUHIdWCvLEwkeEq3kQ7iI8MPM/ssO/8OnlHsFW1nWeCvyzwVOtEvHuyqv/8hOYSETL//NtNaySXOSsAqIiRrkS82UvXUvppbobMbv/zgmQhC0HzBAAEwpKVEO4JYAjTIJ/y/0egY3vXWaZv65cpZm36G/mMUpdalcpStzalb1KXUoUBf8pXKyGM5Sv/TRRPKoUSQMYKTJfSwiUDeW+ZhhmIXNYfiyfSbiqFFLNEQaajFVnrO9YLTodKvET9Z0FcSgq6s6eIz3uLcFQmCxJY06W/g0Cri31AqGrq56EgaXxLPCUNdBZ5USrBUse3BqpNF93yP//yMyMDWEJGQ01////MjMv//I1kcjJrLf/stlzL55SkyyOX5q0cjVrL//OCZC4KtfrOGgAjbodYBawMAEQAYf//+Rk1qGRqygo5GRq1sP/sln//cyNWCg0cj//ZZZZKh+asCHP8lAL////9n/////////GMYm3raaWKige/+sW+LesVTEFNRTMuOTkuNaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqo=",GY=""+new URL("dialog-d5b91235.mp3",import.meta.url).href,b2="data:audio/mpeg;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjIzLjEwMQAAAAAAAAAAAAAA//OAAAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAAHAAAGhgA/Pz8/Pz8/Pz8/Pz8/P19fX19fX19fX19fX19ff39/f39/f39/f39/f3+fn5+fn5+fn5+fn5+fn5+/v7+/v7+/v7+/v7+/v9/f39/f39/f39/f39/f//////////////////8AAAAATGF2YzU4LjQwAAAAAAAAAAAAAAAAJAL7AAAAAAAABobgvJxkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zgGQADLH/PRigiACM0AZ+XUAQAoAVYA9AY3IAASAgeRjeQMhP0O/nec/1cn+Qnv/8n+RuhGUhPoQDPISc6HP1Oec7+pwAROeQikI3IT////z+p3Q56VOd/nOc5JzyAAhQAAI053QDFnoQjKACGvoQ7yThzoBgZ8ADMJQURtuNAkMH4P4P+XOZD4f5d/D/64f/3co7/8H8u/wQ5R3/+sPiN8TvB95SDgYT/yjgQf+mpbd5dJrdLkpewIOA5GsDQUQZnZzSB6Q1U50Guqy9OaH/84JkIg/hbXkux6gBEfpLBx+SKAZQvxWLwbxAAoJRbMJjWBoPcgIzjpzzz2clFsxj0ITlVELLXdjzyg8Q3UoM0PPct+QCw/6D5KMrNmLdXOUnPRjXJ3nMYVFVfnfdzf//q//MR+Q/8uwB0uyB/lVHlY6YhEIGR4cHYHAcAZwSQAJAcAocdAxoAMh6L1HV969TxECi7iHlYn7jW//an//+JXU5/9v4l//6EM3f83/41j3///+ozd63/9C2p2W2W22i0Mq2OVytAvxB06nWCVQIZP/zgmQXD4W5ey/HqAEQUkbOR4koAmYRklcoUe+Yd1AuC8AHmsVSoIxFCwPh6RI8ajdB8807yw/JxoLbsai/djzjScCv+Q/lARCSFyRC8hIFYZkF06Dv//MLs5zV+edqzv6krdvP9V/yO3p66H//n73UnMetFzzx4P/MNxBOVut0AFwIAARCgysYSXL+VO2TXhMWBADVCKKhQmjLmX/////0/P+rf7f///29++FO9LfYWYp//Z9n/yHlg30VsPil34MMSQVrYqfLAYVacpCtK1Oq//OCZBUPGaFC3+e0AA8ZVoZdyxAA2az68kOa28sO3puYoqNkUTUxnD6CKnSNlGTJJositaK2TdJSb2NWSX/SSScyDlAnQ6myTv/1X0aJePGZqjnT1FL6v9SRkXW/dVaKP6VaKLOv//+r//X/ZzF06dSFLuv/1B0aZUKwhImgCMAB2aHaUe7x55QPP/rp3zyZZf/VkdS3RFZ3m/9H//iSCn/1Qaev/0CVH3+oO1P///1t+j//9KoPL7QDcAaC4x+83dEEEvXL3vljkRVf5ZqiVpT/84JkGw5BSSx+MMpOEjoual7AxBzqOG5mzBJL6c7URxGtROS/Zu8vMwc2/naKcgTgLi5R79f/ZSUVjWOSaa1aHK5xM/apQnJHJUuTbXQ5VN09HRzSUNfirDtAVBYCwdfpJmYrjDVue/9pJZFMiSvSUMuMAg40uvlBXQECFUh3VKcOGoUBJAurXLsY3+xpv///1aZAwAP///yghpkdW/5qt8OMEMKKg7/pDn///h1/Ues6P/xLEaAkoyibeSeC8E+AuhymiEos8tLHJNRoThxKnP/zgmQcDD0TFAk8xToRuh4sCGgPKooy1Y8s/q2X/ZH//6tqJAEEQwRKxjI9y1KWWqPDw8awiKqQPPob/pRUDwAioCEtX9R7/9eGlncrLPLBVgKmRZ+GpD/tqEogdIXwLlNkUnUxiamSS0W/ooqUlrot//zUCIHRc05Zrqaabod86PDZv/+b/UamAIGjTP+W/879s9liLSrmCVxXgq7xL+RKoQZ+UAAwBYQh4Rig2ZaVmytcNUuiO5/zP8jP1/+VMy/1RygyCgEMDDLv4CCZF3/S//OCZC8JaK7qfiQiTgxILdAAYYYEEhVLrP///S1HoCosaCoCCYZrZUSBkQDwESH/WkJSAZjByJI0oE4Z/////4FCQeBkVZ/xX/zIsRd/6hf7X//4qSfqwEEiLv1ciEyISQKqTEFNRTMuMTAwqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqo=";var S2={exports:{}},w2={};/** +*/(function(e,t){(function(r){e.exports=r()})(function(){return function r(n,i,o){function a(l,c){if(!i[l]){if(!n[l]){var f=typeof _c=="function"&&_c;if(!c&&f)return f(l,!0);if(s)return s(l,!0);var h=new Error("Cannot find module '"+l+"'");throw h.code="MODULE_NOT_FOUND",h}var d=i[l]={exports:{}};n[l][0].call(d.exports,function(v){var g=n[l][1][v];return a(g||v)},d,d.exports,r,n,i,o)}return i[l].exports}for(var s=typeof _c=="function"&&_c,u=0;u"u"&&r(3);var f=Promise;function h(E,I){I&&E.then(function(C){I(null,C)},function(C){I(C)})}function d(E,I,C){typeof I=="function"&&E.then(I),typeof C=="function"&&E.catch(C)}function v(E){return typeof E!="string"&&(console.warn(E+" used as a key, but it is not a string."),E=String(E)),E}function g(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var p="local-forage-detect-blob-support",m=void 0,y={},_=Object.prototype.toString,x="readonly",b="readwrite";function w(E){for(var I=E.length,C=new ArrayBuffer(I),N=new Uint8Array(C),M=0;M=43)}}).catch(function(){return!1})}function k(E){return typeof m=="boolean"?f.resolve(m):T(E).then(function(I){return m=I,m})}function A(E){var I=y[E.name],C={};C.promise=new f(function(N,M){C.resolve=N,C.reject=M}),I.deferredOperations.push(C),I.dbReady?I.dbReady=I.dbReady.then(function(){return C.promise}):I.dbReady=C.promise}function P(E){var I=y[E.name],C=I.deferredOperations.pop();if(C)return C.resolve(),C.promise}function F(E,I){var C=y[E.name],N=C.deferredOperations.pop();if(N)return N.reject(I),N.promise}function D(E,I){return new f(function(C,N){if(y[E.name]=y[E.name]||V(),E.db)if(I)A(E),E.db.close();else return C(E.db);var M=[E.name];I&&M.push(E.version);var R=u.open.apply(u,M);I&&(R.onupgradeneeded=function(j){var U=R.result;try{U.createObjectStore(E.storeName),j.oldVersion<=1&&U.createObjectStore(p)}catch(W){if(W.name==="ConstraintError")console.warn('The database "'+E.name+'" has been upgraded from version '+j.oldVersion+" to version "+j.newVersion+', but the storage "'+E.storeName+'" already exists.');else throw W}}),R.onerror=function(j){j.preventDefault(),N(R.error)},R.onsuccess=function(){var j=R.result;j.onversionchange=function(U){U.target.close()},C(j),P(E)}})}function H(E){return D(E,!1)}function re(E){return D(E,!0)}function z(E,I){if(!E.db)return!0;var C=!E.db.objectStoreNames.contains(E.storeName),N=E.versionE.db.version;if(N&&(E.version!==I&&console.warn('The database "'+E.name+`" can't be downgraded from version `+E.db.version+" to version "+E.version+"."),E.version=E.db.version),M||C){if(C){var R=E.db.version+1;R>E.version&&(E.version=R)}return!0}return!1}function q(E){return new f(function(I,C){var N=new FileReader;N.onerror=C,N.onloadend=function(M){var R=btoa(M.target.result||"");I({__local_forage_encoded_blob:!0,data:R,type:E.type})},N.readAsBinaryString(E)})}function le(E){var I=w(atob(E.data));return c([I],{type:E.type})}function Ue(E){return E&&E.__local_forage_encoded_blob}function me(E){var I=this,C=I._initReady().then(function(){var N=y[I._dbInfo.name];if(N&&N.dbReady)return N.dbReady});return d(C,E,E),C}function Q(E){A(E);for(var I=y[E.name],C=I.forages,N=0;N0&&(!E.db||R.name==="InvalidStateError"||R.name==="NotFoundError"))return f.resolve().then(function(){if(!E.db||R.name==="NotFoundError"&&!E.db.objectStoreNames.contains(E.storeName)&&E.version<=E.db.version)return E.db&&(E.version=E.db.version+1),re(E)}).then(function(){return Q(E).then(function(){L(E,I,C,N-1)})}).catch(C);C(R)}}function V(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function ee(E){var I=this,C={db:null};if(E)for(var N in E)C[N]=E[N];var M=y[C.name];M||(M=V(),y[C.name]=M),M.forages.push(I),I._initReady||(I._initReady=I.ready,I.ready=me);var R=[];function j(){return f.resolve()}for(var U=0;U>4,J[M++]=(j&15)<<4|U>>2,J[M++]=(U&3)<<6|W&63;return X}function op(E){var I=new Uint8Array(E),C="",N;for(N=0;N>2],C+=lt[(I[N]&3)<<4|I[N+1]>>4],C+=lt[(I[N+1]&15)<<2|I[N+2]>>6],C+=lt[I[N+2]&63];return I.length%3===2?C=C.substring(0,C.length-1)+"=":I.length%3===1&&(C=C.substring(0,C.length-2)+"=="),C}function iL(E,I){var C="";if(E&&(C=r1.call(E)),E&&(C==="[object ArrayBuffer]"||E.buffer&&r1.call(E.buffer)==="[object ArrayBuffer]")){var N,M=hr;E instanceof ArrayBuffer?(N=E,M+=Ti):(N=E.buffer,C==="[object Int8Array]"?M+=Us:C==="[object Uint8Array]"?M+=Gs:C==="[object Uint8ClampedArray]"?M+=zs:C==="[object Int16Array]"?M+=Yb:C==="[object Uint16Array]"?M+=Zb:C==="[object Int32Array]"?M+=Kb:C==="[object Uint32Array]"?M+=Qb:C==="[object Float32Array]"?M+=Jb:C==="[object Float64Array]"?M+=e1:I(new Error("Failed to get type for BinaryArray"))),I(M+op(N))}else if(C==="[object Blob]"){var R=new FileReader;R.onload=function(){var j=er+E.type+"~"+op(this.result);I(hr+sa+j)},R.readAsArrayBuffer(E)}else try{I(JSON.stringify(E))}catch(j){console.error("Couldn't convert value into a JSON string: ",E),I(null,j)}}function oL(E){if(E.substring(0,An)!==hr)return JSON.parse(E);var I=E.substring(t1),C=E.substring(An,t1),N;if(C===sa&&Ne.test(I)){var M=I.match(Ne);N=M[1],I=I.substring(M[0].length)}var R=n1(I);switch(C){case Ti:return R;case sa:return c([R],{type:N});case Us:return new Int8Array(R);case Gs:return new Uint8Array(R);case zs:return new Uint8ClampedArray(R);case Yb:return new Int16Array(R);case Zb:return new Uint16Array(R);case Kb:return new Int32Array(R);case Qb:return new Uint32Array(R);case Jb:return new Float32Array(R);case e1:return new Float64Array(R);default:throw new Error("Unkown type: "+C)}}var ap={serialize:iL,deserialize:oL,stringToBuffer:n1,bufferToString:op};function i1(E,I,C,N){E.executeSql("CREATE TABLE IF NOT EXISTS "+I.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],C,N)}function aL(E){var I=this,C={db:null};if(E)for(var N in E)C[N]=typeof E[N]!="string"?E[N].toString():E[N];var M=new f(function(R,j){try{C.db=openDatabase(C.name,String(C.version),C.description,C.size)}catch(U){return j(U)}C.db.transaction(function(U){i1(U,C,function(){I._dbInfo=C,R()},function(W,X){j(X)})},j)});return C.serializer=ap,M}function Ci(E,I,C,N,M,R){E.executeSql(C,N,M,function(j,U){U.code===U.SYNTAX_ERR?j.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[I.storeName],function(W,X){X.rows.length?R(W,U):i1(W,I,function(){W.executeSql(C,N,M,R)},R)},R):R(j,U)},R)}function sL(E,I){var C=this;E=v(E);var N=new f(function(M,R){C.ready().then(function(){var j=C._dbInfo;j.db.transaction(function(U){Ci(U,j,"SELECT * FROM "+j.storeName+" WHERE key = ? LIMIT 1",[E],function(W,X){var J=X.rows.length?X.rows.item(0).value:null;J&&(J=j.serializer.deserialize(J)),M(J)},function(W,X){R(X)})})}).catch(R)});return h(N,I),N}function uL(E,I){var C=this,N=new f(function(M,R){C.ready().then(function(){var j=C._dbInfo;j.db.transaction(function(U){Ci(U,j,"SELECT * FROM "+j.storeName,[],function(W,X){for(var J=X.rows,ue=J.length,Te=0;Te0){j(o1.apply(M,[E,W,C,N-1]));return}U(Te)}})})}).catch(U)});return h(R,C),R}function lL(E,I,C){return o1.apply(this,[E,I,C,1])}function cL(E,I){var C=this;E=v(E);var N=new f(function(M,R){C.ready().then(function(){var j=C._dbInfo;j.db.transaction(function(U){Ci(U,j,"DELETE FROM "+j.storeName+" WHERE key = ?",[E],function(){M()},function(W,X){R(X)})})}).catch(R)});return h(N,I),N}function fL(E){var I=this,C=new f(function(N,M){I.ready().then(function(){var R=I._dbInfo;R.db.transaction(function(j){Ci(j,R,"DELETE FROM "+R.storeName,[],function(){N()},function(U,W){M(W)})})}).catch(M)});return h(C,E),C}function hL(E){var I=this,C=new f(function(N,M){I.ready().then(function(){var R=I._dbInfo;R.db.transaction(function(j){Ci(j,R,"SELECT COUNT(key) as c FROM "+R.storeName,[],function(U,W){var X=W.rows.item(0).c;N(X)},function(U,W){M(W)})})}).catch(M)});return h(C,E),C}function dL(E,I){var C=this,N=new f(function(M,R){C.ready().then(function(){var j=C._dbInfo;j.db.transaction(function(U){Ci(U,j,"SELECT key FROM "+j.storeName+" WHERE id = ? LIMIT 1",[E+1],function(W,X){var J=X.rows.length?X.rows.item(0).key:null;M(J)},function(W,X){R(X)})})}).catch(R)});return h(N,I),N}function pL(E){var I=this,C=new f(function(N,M){I.ready().then(function(){var R=I._dbInfo;R.db.transaction(function(j){Ci(j,R,"SELECT key FROM "+R.storeName,[],function(U,W){for(var X=[],J=0;J '__WebKitDatabaseInfoTable__'",[],function(M,R){for(var j=[],U=0;U0}function bL(E){var I=this,C={};if(E)for(var N in E)C[N]=E[N];return C.keyPrefix=a1(E,I._defaultConfig),xL()?(I._dbInfo=C,C.serializer=ap,f.resolve()):f.reject()}function SL(E){var I=this,C=I.ready().then(function(){for(var N=I._dbInfo.keyPrefix,M=localStorage.length-1;M>=0;M--){var R=localStorage.key(M);R.indexOf(N)===0&&localStorage.removeItem(R)}});return h(C,E),C}function wL(E,I){var C=this;E=v(E);var N=C.ready().then(function(){var M=C._dbInfo,R=localStorage.getItem(M.keyPrefix+E);return R&&(R=M.serializer.deserialize(R)),R});return h(N,I),N}function EL(E,I){var C=this,N=C.ready().then(function(){for(var M=C._dbInfo,R=M.keyPrefix,j=R.length,U=localStorage.length,W=1,X=0;X=0;j--){var U=localStorage.key(j);U.indexOf(R)===0&&localStorage.removeItem(U)}}):M=f.reject("Invalid arguments"),h(M,I),M}var IL={_driver:"localStorageWrapper",_initStorage:bL,_support:yL(),iterate:EL,getItem:wL,setItem:PL,removeItem:AL,clear:SL,length:OL,key:TL,keys:CL,dropInstance:kL},RL=function(I,C){return I===C||typeof I=="number"&&typeof C=="number"&&isNaN(I)&&isNaN(C)},NL=function(I,C){for(var N=I.length,M=0;M"u"?"undefined":o(C))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var N in C){if(N==="storeName"&&(C[N]=C[N].replace(/\W/g,"_")),N==="version"&&typeof C[N]!="number")return new Error("Database version must be a number.");this._config[N]=C[N]}return"driver"in C&&C.driver?this.setDriver(this._config.driver):!0}else return typeof C=="string"?this._config[C]:this._config},E.prototype.defineDriver=function(C,N,M){var R=new f(function(j,U){try{var W=C._driver,X=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!C._driver){U(X);return}for(var J=sp.concat("_initStorage"),ue=0,Te=J.length;ue"u"}function d6(e){return e!==null&&!kg(e)&&e.constructor!==null&&!kg(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function p6(e){return na.call(e)==="[object ArrayBuffer]"}function v6(e){return typeof FormData<"u"&&e instanceof FormData}function m6(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function g6(e){return typeof e=="string"}function y6(e){return typeof e=="number"}function GP(e){return e!==null&&typeof e=="object"}function vf(e){if(na.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function _6(e){return na.call(e)==="[object Date]"}function x6(e){return na.call(e)==="[object File]"}function b6(e){return na.call(e)==="[object Blob]"}function zP(e){return na.call(e)==="[object Function]"}function S6(e){return GP(e)&&zP(e.pipe)}function w6(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function E6(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function T6(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function J0(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),Q0(e))for(var r=0,n=e.length;r"u"||(ca.isArray(u)?l=l+"[]":u=[u],ca.forEach(u,function(f){ca.isDate(f)?f=f.toISOString():ca.isObject(f)&&(f=JSON.stringify(f)),o.push(pw(l)+"="+pw(f))}))}),i=o.join("&")}if(i){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},A6=Vr;function td(){this.handlers=[]}td.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};td.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};td.prototype.forEach=function(t){A6.forEach(this.handlers,function(n){n!==null&&t(n)})};var P6=td,k6=Vr,I6=function(t,r){k6.forEach(t,function(i,o){o!==r&&o.toUpperCase()===r.toUpperCase()&&(t[r]=i,delete t[o])})},VP=function(t,r,n,i,o){return t.config=r,n&&(t.code=n),t.request=i,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},zp,vw;function WP(){if(vw)return zp;vw=1;var e=VP;return zp=function(r,n,i,o,a){var s=new Error(r);return e(s,n,i,o,a)},zp}var Hp,mw;function R6(){if(mw)return Hp;mw=1;var e=WP();return Hp=function(r,n,i){var o=i.config.validateStatus;!i.status||!o||o(i.status)?r(i):n(e("Request failed with status code "+i.status,i.config,null,i.request,i))},Hp}var Vp,gw;function N6(){if(gw)return Vp;gw=1;var e=Vr;return Vp=e.isStandardBrowserEnv()?function(){return{write:function(n,i,o,a,s,u){var l=[];l.push(n+"="+encodeURIComponent(i)),e.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),e.isString(a)&&l.push("path="+a),e.isString(s)&&l.push("domain="+s),u===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){var i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Vp}var Wp,yw;function L6(){return yw||(yw=1,Wp=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}),Wp}var qp,_w;function M6(){return _w||(_w=1,qp=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),qp}var Xp,xw;function F6(){if(xw)return Xp;xw=1;var e=L6(),t=M6();return Xp=function(n,i){return n&&!e(i)?t(n,i):i},Xp}var Yp,bw;function D6(){if(bw)return Yp;bw=1;var e=Vr,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Yp=function(n){var i={},o,a,s;return n&&e.forEach(n.split(` +`),function(l){if(s=l.indexOf(":"),o=e.trim(l.substr(0,s)).toLowerCase(),a=e.trim(l.substr(s+1)),o){if(i[o]&&t.indexOf(o)>=0)return;o==="set-cookie"?i[o]=(i[o]?i[o]:[]).concat([a]):i[o]=i[o]?i[o]+", "+a:a}}),i},Yp}var Kp,Sw;function B6(){if(Sw)return Kp;Sw=1;var e=Vr;return Kp=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),i;function o(a){var s=a;return r&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=o(window.location.href),function(s){var u=e.isString(s)?o(s):s;return u.protocol===i.protocol&&u.host===i.host}}():function(){return function(){return!0}}(),Kp}var Zp,ww;function rd(){if(ww)return Zp;ww=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,Zp=e,Zp}var Qp,Ew;function Tw(){if(Ew)return Qp;Ew=1;var e=Vr,t=R6(),r=N6(),n=HP,i=F6(),o=D6(),a=B6(),s=WP(),u=nd(),l=rd();return Qp=function(f){return new Promise(function(d,v){var g=f.data,p=f.headers,m=f.responseType,y;function _(){f.cancelToken&&f.cancelToken.unsubscribe(y),f.signal&&f.signal.removeEventListener("abort",y)}e.isFormData(g)&&delete p["Content-Type"];var x=new XMLHttpRequest;if(f.auth){var b=f.auth.username||"",w=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";p.Authorization="Basic "+btoa(b+":"+w)}var T=i(f.baseURL,f.url);x.open(f.method.toUpperCase(),n(T,f.params,f.paramsSerializer),!0),x.timeout=f.timeout;function k(){if(x){var P="getAllResponseHeaders"in x?o(x.getAllResponseHeaders()):null,F=!m||m==="text"||m==="json"?x.responseText:x.response,D={data:F,status:x.status,statusText:x.statusText,headers:P,config:f,request:x};t(function(re){d(re),_()},function(re){v(re),_()},D),x=null}}if("onloadend"in x?x.onloadend=k:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(k)},x.onabort=function(){x&&(v(s("Request aborted",f,"ECONNABORTED",x)),x=null)},x.onerror=function(){v(s("Network Error",f,null,x)),x=null},x.ontimeout=function(){var F=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",D=f.transitional||u.transitional;f.timeoutErrorMessage&&(F=f.timeoutErrorMessage),v(s(F,f,D.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",x)),x=null},e.isStandardBrowserEnv()){var A=(f.withCredentials||a(T))&&f.xsrfCookieName?r.read(f.xsrfCookieName):void 0;A&&(p[f.xsrfHeaderName]=A)}"setRequestHeader"in x&&e.forEach(p,function(F,D){typeof g>"u"&&D.toLowerCase()==="content-type"?delete p[D]:x.setRequestHeader(D,F)}),e.isUndefined(f.withCredentials)||(x.withCredentials=!!f.withCredentials),m&&m!=="json"&&(x.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&x.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&x.upload&&x.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(y=function(P){x&&(v(!P||P&&P.type?new l("canceled"):P),x.abort(),x=null)},f.cancelToken&&f.cancelToken.subscribe(y),f.signal&&(f.signal.aborted?y():f.signal.addEventListener("abort",y))),g||(g=null),x.send(g)})},Qp}var Jp,Cw;function nd(){if(Cw)return Jp;Cw=1;var e=Vr,t=I6,r=VP,n={"Content-Type":"application/x-www-form-urlencoded"};function i(u,l){!e.isUndefined(u)&&e.isUndefined(u["Content-Type"])&&(u["Content-Type"]=l)}function o(){var u;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(u=Tw()),u}function a(u,l,c){if(e.isString(u))try{return(l||JSON.parse)(u),e.trim(u)}catch(f){if(f.name!=="SyntaxError")throw f}return(c||JSON.stringify)(u)}var s={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:o(),transformRequest:[function(l,c){return t(c,"Accept"),t(c,"Content-Type"),e.isFormData(l)||e.isArrayBuffer(l)||e.isBuffer(l)||e.isStream(l)||e.isFile(l)||e.isBlob(l)?l:e.isArrayBufferView(l)?l.buffer:e.isURLSearchParams(l)?(i(c,"application/x-www-form-urlencoded;charset=utf-8"),l.toString()):e.isObject(l)||c&&c["Content-Type"]==="application/json"?(i(c,"application/json"),a(l)):l}],transformResponse:[function(l){var c=this.transitional||s.transitional,f=c&&c.silentJSONParsing,h=c&&c.forcedJSONParsing,d=!f&&this.responseType==="json";if(d||h&&e.isString(l)&&l.length)try{return JSON.parse(l)}catch(v){if(d)throw v.name==="SyntaxError"?r(v,this,"E_JSON_PARSE"):v}return l}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(l){return l>=200&&l<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return e.forEach(["delete","get","head"],function(l){s.headers[l]={}}),e.forEach(["post","put","patch"],function(l){s.headers[l]=e.merge(n)}),Jp=s,Jp}var j6=Vr,$6=nd(),U6=function(t,r,n){var i=this||$6;return j6.forEach(n,function(a){t=a.call(i,t,r)}),t},ev,Ow;function qP(){return Ow||(Ow=1,ev=function(t){return!!(t&&t.__CANCEL__)}),ev}var Aw=Vr,tv=U6,G6=qP(),z6=nd(),H6=rd();function rv(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new H6("canceled")}var V6=function(t){rv(t),t.headers=t.headers||{},t.data=tv.call(t,t.data,t.headers,t.transformRequest),t.headers=Aw.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Aw.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||z6.adapter;return r(t).then(function(i){return rv(t),i.data=tv.call(t,i.data,i.headers,t.transformResponse),i},function(i){return G6(i)||(rv(t),i&&i.response&&(i.response.data=tv.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},Fr=Vr,XP=function(t,r){r=r||{};var n={};function i(c,f){return Fr.isPlainObject(c)&&Fr.isPlainObject(f)?Fr.merge(c,f):Fr.isPlainObject(f)?Fr.merge({},f):Fr.isArray(f)?f.slice():f}function o(c){if(Fr.isUndefined(r[c])){if(!Fr.isUndefined(t[c]))return i(void 0,t[c])}else return i(t[c],r[c])}function a(c){if(!Fr.isUndefined(r[c]))return i(void 0,r[c])}function s(c){if(Fr.isUndefined(r[c])){if(!Fr.isUndefined(t[c]))return i(void 0,t[c])}else return i(void 0,r[c])}function u(c){if(c in r)return i(t[c],r[c]);if(c in t)return i(void 0,t[c])}var l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return Fr.forEach(Object.keys(t).concat(Object.keys(r)),function(f){var h=l[f]||o,d=h(f);Fr.isUndefined(d)&&h!==u||(n[f]=d)}),n},nv,Pw;function YP(){return Pw||(Pw=1,nv={version:"0.24.0"}),nv}var W6=YP().version,ex={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){ex[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var kw={};ex.transitional=function(t,r,n){function i(o,a){return"[Axios v"+W6+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,s){if(t===!1)throw new Error(i(a," has been removed"+(r?" in "+r:"")));return r&&!kw[a]&&(kw[a]=!0,console.warn(i(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,a,s):!0}};function q6(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],a=t[o];if(a){var s=e[o],u=s===void 0||a(s,o,e);if(u!==!0)throw new TypeError("option "+o+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+o)}}var X6={assertOptions:q6,validators:ex},KP=Vr,Y6=HP,Iw=P6,Rw=V6,id=XP,ZP=X6,fa=ZP.validators;function ql(e){this.defaults=e,this.interceptors={request:new Iw,response:new Iw}}ql.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=id(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&ZP.assertOptions(r,{silentJSONParsing:fa.transitional(fa.boolean),forcedJSONParsing:fa.transitional(fa.boolean),clarifyTimeoutError:fa.transitional(fa.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(t)===!1||(i=i&&h.synchronous,n.unshift(h.fulfilled,h.rejected))});var o=[];this.interceptors.response.forEach(function(h){o.push(h.fulfilled,h.rejected)});var a;if(!i){var s=[Rw,void 0];for(Array.prototype.unshift.apply(s,n),s=s.concat(o),a=Promise.resolve(t);s.length;)a=a.then(s.shift(),s.shift());return a}for(var u=t;n.length;){var l=n.shift(),c=n.shift();try{u=l(u)}catch(f){c(f);break}}try{a=Rw(u)}catch(f){return Promise.reject(f)}for(;o.length;)a=a.then(o.shift(),o.shift());return a};ql.prototype.getUri=function(t){return t=id(this.defaults,t),Y6(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};KP.forEach(["delete","get","head","options"],function(t){ql.prototype[t]=function(r,n){return this.request(id(n||{},{method:t,url:r,data:(n||{}).data}))}});KP.forEach(["post","put","patch"],function(t){ql.prototype[t]=function(r,n,i){return this.request(id(i||{},{method:t,url:r,data:n}))}});var K6=ql,iv,Nw;function Z6(){if(Nw)return iv;Nw=1;var e=rd();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(a){n=a});var i=this;this.promise.then(function(o){if(i._listeners){var a,s=i._listeners.length;for(a=0;a{a.trace("Logged to cloud.",void 0,!1)}).catch(s=>{a.error("Logging to cloud failed!",void 0,!1)})}clog(t,r,n,i,o,a){const s={all:7,ALL:7,TRACE:6,DEBUG:5,INFO:4,WARN:3,ERROR:2,FATAL:1,NONE:0,none:0};s[n]<=s[this.level]&&(console.log("%c%s%c%s%c%s%c %s","color:white;background-color:"+i,"["+n+"]",""," ","color:"+i,"["+o.toLocaleString()+"]","",t),r&&(console.log(r),console.log("------------------------"))),a===void 0&&this.upload(t,r,n,o),a!==void 0&&a&&this.upload(t,r,n,o)}trace(t,r,n){const i=new Date,o="TRACE",a="#005CAF";this.clog(t,r,o,a,i,n)}debug(t,r,n){const i=new Date,o="DEBUG",a="#0089A7";this.clog(t,r,o,a,i,n)}info(t,r,n){const i=new Date,o="INFO",a="#00896C";this.clog(t,r,o,a,i,n)}warn(t,r,n){const i=new Date,o="WARN",a="#DDA52D";this.clog(t,r,o,a,i,n)}error(t,r,n){const i=new Date,o="ERROR",a="#AB3B3A";this.clog(t,r,o,a,i,n)}fatal(t,r,n){const i=new Date,o="FATAL",a="#E16B8C";this.clog(t,r,o,a,i,n)}}var sG=aG;const uG=Nr(sG),ne=new uG,lG={common:{yes:"OK",no:"Cancel"},menu:{options:{title:"OPTIONS",pages:{system:{title:"System",options:{autoSpeed:{title:"Autoplay Speed",options:{slow:"Slow",medium:"Medium",fast:"Fast"}},language:{title:"Language"},resetData:{title:"Clear or Reset Data",options:{clearGameSave:"Clear game saving",resetSettings:"Reset settings",clearAll:"Clear all data"},dialogs:{clearGameSave:"Are you sure you want to clear game saving",resetSettings:"Are you sure you want to reset all settings",clearAll:"Are you sure you want to clear all data"}},gameSave:{title:"Import or Export Game Saving and Options",options:{export:"Export game saving and options",import:"Import game saving and options"},dialogs:{import:{title:"Are you sure you want to import game saving and options",tip:"Import game saving",error:"Parse game saving failed"}}},about:{title:"About WebGAL",subTitle:"WebGAL: An Open-Source Web-Based Visual Novel Engine",version:"Version",source:"Source Code Repository",contributors:"Contributors",website:"Website"}}},display:{title:"Display",options:{fullScreen:{title:"Full Screen",options:{on:"ON",off:"OFF"}},textSpeed:{title:"Text Speed",options:{slow:"Slow",medium:"Medium",fast:"Fast"}},textSize:{title:"Text Size",options:{small:"Small",medium:"Medium",large:"Large"}},textFont:{title:"Text Font",options:{siYuanSimSun:"Source Han Serif",SimHei:"Sans",lxgw:"LXGW WenKai"}},textboxOpacity:{title:"Textbox Opacity"},textPreview:{title:"Preview Text Showing",text:"You are previewing the text's font, size and playback speed, now. You can adjust the above options according to your perception."}}},sound:{title:"Sound",options:{volumeMain:{title:"Main Volume"},vocalVolume:{title:"Vocal Volume"},bgmVolume:{title:"BGM Volume"},seVolume:{title:"Sound Effects Volume"},uiSeVolume:{title:"UI Sound Effects Volume"}}}}},saving:{title:"SAVE",isOverwrite:"Are you sure you want to overwrite this save?"},loadSaving:{title:"LOAD"},title:{title:"TITLE"},exit:{title:"BACK"}},title:{start:{title:"START",subtitle:""},continue:{title:"CONTINUE",subtitle:""},options:{title:"OPTIONS",subtitle:""},load:{title:"LOAD",subtitle:""},extra:{title:"EXTRA",subtitle:""}},gaming:{noSaving:"No saving",buttons:{hide:"Hide",show:"Show",backlog:"Backlog",replay:"Replay",auto:"Auto",forward:"Forward",quicklySave:"Quickly Save",quicklyLoad:"Quickly Save",save:"Save",load:"Load",options:"Options",title:"Title",titleTips:"Confirm return to the title screen"}},extra:{title:"EXTRA"}},cG={common:{yes:"はい",no:"いいえ"},menu:{options:{title:"CONFIG",pages:{system:{title:"システム",options:{autoSpeed:{title:"自動再生速度",options:{slow:"遅く",medium:"標準",fast:"速く"}},language:{title:"言語"},resetData:{title:"データの削除またに復元",options:{clearGameSave:"すべてのアーカイブを削除",resetSettings:"デフォルト設置を復元",clearAll:"すべてのデータを削除"},dialogs:{clearGameSave:"アーカイブをクリアしてもよろしいですか?",resetSettings:"デフォルト設定を復元してもよろしいですか?",clearAll:"すべてのデータを削除してもよろしいですか?"}},gameSave:{title:"アーカイブとオプションのインポートまたはエクスポート",options:{export:"アーカイブとオプションのエクスポート",import:"アーカイブとオプションのインポート"},dialogs:{import:{title:"アーカイブとオプションをインポートしますか?",tip:"インポートアーカイブ",error:"アーカイブの解析に失败しました"}}},about:{title:"WebGALについて",subTitle:"WebGAL:開源のウェブ基盤視覚小説エンジン",version:"版数",source:"源コード保管所",contributors:"貢献者",website:"ウェブサイト"}}},display:{title:"ウィンドウ",options:{textSpeed:{title:"テキスト表示速度",options:{slow:"遅く",medium:"標準",fast:"速く"}},textSize:{title:"テキストサイズ",options:{small:"小",medium:"中",large:"大"}},textFont:{title:"フォント",options:{siYuanSimSun:"源ノ明朝",SimHei:"黒体",lxgw:"霞鴎文隷"}},textboxOpacity:{title:"Textbox Opacity"},textPreview:{title:"テキスト表示プレビュー",text:"プレビューはテキストボックスのテキストサイズとテキスト表示速度です。上記のオプションでフォントも変更できます。"}}},sound:{title:"サウンド",options:{volumeMain:{title:"MAIN 音量"},vocalVolume:{title:"VOICE 音量"},bgmVolume:{title:"BGM 音量"},seVolume:{title:"SE 音量"},uiSeVolume:{title:"UI 効果音音量"}}}}},saving:{title:"SAVE",isOverwrite:"上書きしますか?"},loadSaving:{title:"LOAD"},title:{title:"HOME"},exit:{title:"BACK"}},title:{start:{title:"初めから",subtitle:"START"},continue:{title:"続きから",subtitle:"CONTINUE"},options:{title:"設定",subtitle:"CONFIG"},load:{title:"ロード",subtitle:"LOAD"},extra:{title:"鑑賞モード",subtitle:"EXTRA"}},gaming:{noSaving:"クイックセーブなし",buttons:{hide:"CLOSE",show:"SHOW",backlog:"LOG",replay:"REPLAY",auto:"AUTO",forward:"SKIP",quicklySave:"QUICK SAVE",quicklyLoad:"QUICK LOAD",save:"SAVE",load:"LOAD",options:"CONFIG",title:"HOME",titleTips:"タイトル画面に戻ることを確認しますか"}},extra:{title:"鑑賞モード"}},fG={common:{yes:"是",no:"否"},menu:{options:{title:"选项",pages:{system:{title:"系统",options:{autoSpeed:{title:"自动播放速度",options:{slow:"慢",medium:"中",fast:"快"}},language:{title:"语言"},resetData:{title:"清除或还原数据",options:{clearGameSave:"清除所有存档",resetSettings:"还原默认设置",clearAll:"清除所有数据"},dialogs:{clearGameSave:"确定要清除存档吗",resetSettings:"确定要还原默认设置吗",clearAll:"确定要清除所有数据吗"}},gameSave:{title:"导入或导出存档与选项",options:{export:"导出存档与选项",import:"导入存档与选项"},dialogs:{import:{title:"确定要导入存档与选项吗",tip:"导入存档",error:"存档解析失败"}}},about:{title:"关于 WebGAL",subTitle:"WebGAL:开源的网页端视觉小说引擎",version:"版本号",source:"源代码仓库",contributors:"贡献者",website:"网站"}}},display:{title:"显示",options:{fullScreen:{title:"全屏模式",options:{on:"开启",off:"关闭"}},textSpeed:{title:"文字显示速度",options:{slow:"慢",medium:"中",fast:"快"}},textSize:{title:"文本大小",options:{small:"小",medium:"中",large:"大"}},textFont:{title:"文本字体",options:{siYuanSimSun:"思源宋体",SimHei:"黑体",lxgw:"霞鹜文楷"}},textboxOpacity:{title:"文本框不透明度"},textPreview:{title:"文本显示预览",text:"现在预览的是文本框字体大小和播放速度的情况,您可以根据您的观感调整上面的选项。"}}},sound:{title:"音频",options:{volumeMain:{title:"主音量"},vocalVolume:{title:"语音音量"},bgmVolume:{title:"背景音乐音量"},seVolume:{title:"音效音量"},uiSeVolume:{title:"用户界面音效音量"},voiceOption:{title:"是否中断语音"},voiceStop:{title:"停止语音"},voiceContinue:{title:"继续语音"}}}}},saving:{title:"存档",isOverwrite:"是否覆盖存档?"},loadSaving:{title:"读档"},title:{title:"标题",options:{load:"",extra:"鉴赏模式"}},exit:{title:"返回"}},title:{start:{title:"开始游戏",subtitle:"START"},continue:{title:"继续游戏",subtitle:"CONTINUE"},options:{title:"游戏选项",subtitle:"OPTIONS"},load:{title:"读取存档",subtitle:"LOAD"},extra:{title:"鉴赏模式",subtitle:"EXTRA"}},gaming:{noSaving:"暂无存档",buttons:{hide:"隐藏",show:"显示",backlog:"回想",replay:"重播",auto:"自动",forward:"快进",quicklySave:"快速存档",quicklyLoad:"快速读档",save:"存档",load:"读档",options:"选项",title:"标题",titleTips:"确认返回到标题界面吗"}},extra:{title:"鉴赏模式"}},hG={common:{yes:"OK",no:"Annuler"},menu:{options:{title:"OPTIONS",pages:{system:{title:"Système",options:{autoSpeed:{title:"Vitesse de lecture automatique",options:{slow:"Lente",medium:"Moyenne",fast:"Rapide"}},language:{title:"Langue"},resetData:{title:"Effacer ou réinitialiser les données",options:{clearGameSave:"Effacer la sauvegarde du jeu",resetSettings:"Réinitialiser les paramètres",clearAll:"Tout effacer"},dialogs:{clearGameSave:"Êtes-vous sûr de vouloir effacer la sauvegarde du jeu",resetSettings:"Êtes-vous sûr de vouloir réinitialiser tous les paramètres",clearAll:"Êtes-vous sûr de vouloir tout effacer"}},gameSave:{title:"Importer ou exporter la sauvegarde du jeu et les options",options:{export:"Exporter la sauvegarde du jeu et les options",import:"Importer la sauvegarde du jeu et les options"},dialogs:{import:{title:"Êtes-vous sûr de vouloir importer la sauvegarde du jeu et les options",tip:"Importer la sauvegarde du jeu",error:"Impossible d'analyser la sauvegarde du jeu"}}},about:{title:"À propos de WebGAL",subTitle:"WebGAL: Un moteur de visual novel basé sur le web en open-source",version:"Version",source:"Dépôt de code source",contributors:"Contributeurs",website:"Site web"}}},display:{title:"Affichage",options:{textSpeed:{title:"Vitesse d'affichage du texte",options:{slow:"Lente",medium:"Moyenne",fast:"Rapide"}},textSize:{title:"Taille du texte",options:{small:"Petite",medium:"Moyenne",large:"Grande"}},textFont:{title:"Police du texte",options:{siYuanSimSun:"Source Han Serif",SimHei:"Sans",lxgw:"LXGW WenKai"}},textboxOpacity:{title:"Textbox Opacity"},textPreview:{title:"Aperçu de l'affichage du texte",text:"Vous prévisualisez la police, la taille et la vitesse de lecture du texte, maintenant. Vous pouvez ajuster les options ci-dessus selon votre perception."}}},sound:{title:"Son",options:{volumeMain:{title:"Volume principal"},vocalVolume:{title:"Volume des voix"},bgmVolume:{title:"Volume de la musique de fond"},seVolume:{title:"Volume des effets sonores"},uiSeVolume:{title:"Volume de l’interface utilisateur"}}}}},saving:{title:"SAUVEGARDER",isOverwrite:"Êtes-vous sûr de vouloir écraser cette sauvegarde ?"},loadSaving:{title:"CHARGER"},title:{title:"TITRE"},exit:{title:"RETOUR"}},title:{start:{title:"COMMENCER",subtitle:""},continue:{title:"CONTINUER",subtitle:""},options:{title:"OPTIONS",subtitle:""},load:{title:"CHARGER",subtitle:""},extra:{title:"EXTRA",subtitle:""}},gaming:{noSaving:"Aucune sauvegarde",buttons:{hide:"Masquer",show:"Afficher",backlog:"Journal",replay:"Rejouer",auto:"Automatique",forward:"Avancer",quicklySave:"Sauvegarde rapide",quicklyLoad:"Chargement rapide",save:"Sauvegarder",load:"Charger",options:"Options",title:"Titre",titleTips:"Confirmer le retour à l'écran titre"}},extra:{title:"EXTRA"}},dG={common:{yes:"Ja",no:"Nein"},menu:{options:{title:"OPTIONEN",pages:{system:{title:"System",options:{autoSpeed:{title:"Auto-Geschwindigkeit",options:{slow:"Langsam",medium:"Normal",fast:"Schnell"}},language:{title:"Sprache"},resetData:{title:"Daten löschen oder zurücksetzen",options:{clearGameSave:"Alle Spielstände löschen",resetSettings:"Alle Einstellungen zurücksetzen",clearAll:"Alle Daten löschen"},dialogs:{clearGameSave:"Sind Sie sicher, dass Sie den Spielstand löschen möchten?",resetSettings:"Sind Sie sicher, dass Sie alle Einstellungen zurücksetzen möchten?",clearAll:"Sind Sie sicher, dass Sie alle Daten löschen möchten?"}},gameSave:{title:"Spielstand und Optionen importieren oder exportieren",options:{export:"Spielstand und Optionen exportieren",import:"Spielstand und Optionen importieren"},dialogs:{import:{title:"Sind Sie sicher, dass Sie den Spielstand und die Optionen importieren möchten?",tip:"Spielstand importieren",error:"Ein Fehler ist beim Analysieren des Spielstands aufgetreten"}}},about:{title:"Über WebGAL",subTitle:"WebGAL: Eine Open-Source Web-Based Visual Novel Engine",version:"Version",source:"Source Code Repository",contributors:"Contributors",website:"Website"}}},display:{title:"Darstellung",options:{textSpeed:{title:"Geschwindigkeit der Textanzeige",options:{slow:"Langsam",medium:"Normal",fast:"Schnell"}},textSize:{title:"Textgröße",options:{small:"Klein",medium:"Normal",large:"Groß"}},textFont:{title:"Schriftart",options:{siYuanSimSun:"Source Han Serif",SimHei:"Sans",lxgw:"LXGW WenKai"}},textboxOpacity:{title:"Textbox Opacity"},textPreview:{title:"Vorschautext wird angezeigt",text:"Sie können jederzeit die Schriftart, Größe und Wiedergabegeschwindigkeit des Textes nach Ihrer Vorliebe anpassen."}}},sound:{title:"Ton",options:{volumeMain:{title:"Hauptlautstärke"},vocalVolume:{title:"Stimmlautstärke"},bgmVolume:{title:"Musiklautstärke"},seVolume:{title:"Soundeffektlautstärke"},uiSeVolume:{title:"UI Soundeffektlautstärke"}}}}},saving:{title:"SPEICHERN",isOverwrite:"Sind Sie sicher, dass Sie diesen Spielstand überschreiben möchten?"},loadSaving:{title:"LADEN"},title:{title:"TITEL"},exit:{title:"ZURÜCK"}},title:{start:{title:"STARTEN",subtitle:""},continue:{title:"WEITERLESEN",subtitle:""},options:{title:"OPTIONEN",subtitle:""},load:{title:"LADEN",subtitle:""},extra:{title:"EXTRA",subtitle:""}},gaming:{noSaving:"Keine Speicherung",buttons:{hide:"Verstecken",show:"Anzeigen",backlog:"Verlauf",replay:"Wiedergabe",auto:"Auto",forward:"Überspringen",quicklySave:"Quickly Save",quicklyLoad:"Quickly Load",save:"Speichern",load:"Laden",options:"Optionen",title:"Titel"}},extra:{title:"EXTRA"}},pG={common:{yes:"是",no:"否"},menu:{options:{title:"選項",pages:{system:{title:"系統",options:{autoSpeed:{title:"自動播放速度",options:{slow:"慢",medium:"中",fast:"快"}},language:{title:"語言"},resetData:{title:"清除或還原數據",options:{clearGameSave:"清除所有存檔",resetSettings:"還原默認設定",clearAll:"清除所有數據"},dialogs:{clearGameSave:"確定要清除存檔嗎",resetSettings:"確定要還原默認設定嗎",clearAll:"確定要清除所有數據嗎"}},gameSave:{title:"導入或導出存檔與選項",options:{export:"導出存檔與選項",import:"導入存檔與選項"},dialogs:{import:{title:"確定要導入存檔與選項嗎",tip:"導入存檔",error:"存檔解析失敗"}}},about:{title:"關於 WebGAL",subTitle:"WebGAL:開源的線上視覺小說製作引擎",version:"版本號",source:"源代碼倉庫",contributors:"貢獻者",website:"網站"}}},display:{title:"顯示",options:{textSpeed:{title:"文字顯示速度",options:{slow:"慢",medium:"中",fast:"快"}},textSize:{title:"文字大小",options:{small:"小",medium:"中",large:"大"}},textFont:{title:"文字字體",options:{siYuanSimSun:"霞鹜文楷",SimHei:"黑體"}},textboxOpacity:{title:"文本框不透明度"},textPreview:{title:"文字顯示預覽",text:"現在預覽的是文字框字體大小和播放速度的情況,您可以根據您的觀感調整上面的選項。"}}},sound:{title:"音量",options:{volumeMain:{title:"主音量"},vocalVolume:{title:"語音音量"},bgmVolume:{title:"背景音樂音量"},seVolume:{title:"音效音量"},uiSeVolume:{title:"用戶界面音效音量"}}}}},saving:{title:"存檔",isOverwrite:"是否要覆蓋存檔?"},loadSaving:{title:"讀檔"},title:{title:"標題",options:{load:"",extra:"CG模式"}},exit:{title:"返回"}},title:{start:{title:"開始遊戲",subtitle:"START"},continue:{title:"繼續遊戲",subtitle:"CONTINUE"},options:{title:"遊戲選項",subtitle:"OPTIONS"},load:{title:"讀取存檔",subtitle:"LOAD"},extra:{title:"CG模式",subtitle:"EXTRA"}},gaming:{noSaving:"暫無存檔",buttons:{hide:"隱藏",show:"顯示",backlog:"回想",replay:"重播",auto:"自動",forward:"加速",quicklySave:"快速存檔",quicklyLoad:"快速讀檔",save:"存檔",load:"讀檔",options:"選項",title:"標題",titleTips:"確認返回到標題界面嗎"}},extra:{title:"CG模式"}};var ia=(e=>(e[e.zhCn=0]="zhCn",e[e.en=1]="en",e[e.jp=2]="jp",e[e.fr=3]="fr",e[e.de=4]="de",e[e.zhTw=5]="zhTw",e))(ia||{});const lh={zhCn:"中文",en:"English",jp:"日本語",fr:"Français",de:"Deutsch",zhTw:"繁體中文"},vG={en:{translation:lG},zhCn:{translation:fG},jp:{translation:cG},fr:{translation:hG},de:{translation:dG},zhTw:{translation:pG}},mG=0;var vr=(e=>(e[e.slow=0]="slow",e[e.normal=1]="normal",e[e.fast=2]="fast",e))(vr||{}),_n=(e=>(e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e))(_n||{}),Hn=(e=>(e[e.song=0]="song",e[e.hei=1]="hei",e[e.lxgw=2]="lxgw",e))(Hn||{}),hl=(e=>(e[e.yes=0]="yes",e[e.no=1]="no",e))(hl||{}),Vn=(e=>(e[e.on=0]="on",e[e.off=1]="off",e))(Vn||{});const JP={slPage:1,volumeMain:100,textSpeed:vr.normal,autoSpeed:vr.normal,textSize:_n.medium,vocalVolume:100,bgmVolume:25,seVolume:100,uiSeVolume:50,textboxFont:Hn.song,textboxOpacity:75,language:ia.zhCn,voiceInterruption:hl.yes,fullScreen:Vn.off},Rg={saveData:[],optionData:JP,globalGameVar:{},appreciationData:{bgm:[],cg:[]},quickSaveData:null},e2=L0({name:"userData",initialState:At(Rg),reducers:{setUserData:(e,t)=>{const{key:r,value:n}=t.payload;e[r]=n},unlockCgInUserData:(e,t)=>{const{name:r,url:n,series:i}=t.payload;let o=!1;e.appreciationData.cg.forEach(a=>{n===a.url&&(o=!0,a.url=n,a.series=i)}),o||e.appreciationData.cg.push(t.payload)},unlockBgmInUserData:(e,t)=>{const{name:r,url:n,series:i}=t.payload;let o=!1;e.appreciationData.bgm.forEach(a=>{n===a.url&&(o=!0,a.url=n,a.series=i)}),o||e.appreciationData.bgm.push(t.payload)},resetUserData:(e,t)=>{Object.assign(e,t.payload)},setOptionData:(e,t)=>{const{key:r,value:n}=t.payload;e.optionData[r]=n},setGlobalVar:(e,t)=>{e.globalGameVar[t.payload.key]=t.payload.value},setSlPage:(e,t)=>{e.optionData.slPage=t.payload},setFastSave:(e,t)=>{e.quickSaveData=t.payload},resetFastSave:e=>{e.quickSaveData=null},resetOptionSet(e){Object.assign(e.optionData,JP)},resetAllData(e){Object.assign(e,At(Rg))},resetSaveData(e){e.saveData.splice(0,e.saveData.length)}}}),{setUserData:gG,resetUserData:tx,setOptionData:ot,setGlobalVar:yG,setSlPage:t2,unlockCgInUserData:r2,unlockBgmInUserData:n2,setFastSave:_G,resetOptionSet:xG,resetSaveData:bG,resetAllData:SG,resetFastSave:wG}=e2.actions,EG=e2.reducer,i2={backlog_size:200,fast_timeout:50},TG={textInitialDelay:80};class CG{constructor(t){se(this,"isSaveBacklogNext",!1);se(this,"backlog",[]);se(this,"sceneManager");this.sceneManager=t}getBacklog(){return this.backlog}editLastBacklogItemEffect(t){this.backlog[this.backlog.length-1].currentStageState.effects=t}makeBacklogEmpty(){this.backlog.splice(0,this.backlog.length)}insertBacklogItem(t){this.backlog.push(t)}saveCurrentStateToBacklog(){const t=B.getState().stage,r=At(t);r.PerformList.forEach(i=>{i.script.args.forEach(o=>{o.key==="concat"&&(o.value=!1,i.script.content=r.showText)})});const n={currentStageState:r,saveScene:{currentSentenceId:this.sceneManager.sceneData.currentSentenceId,sceneStack:At(this.sceneManager.sceneData.sceneStack),sceneName:this.sceneManager.sceneData.currentScene.sceneName,sceneUrl:this.sceneManager.sceneData.currentScene.sceneUrl}};for(this.getBacklog().push(n);this.getBacklog().length>i2.backlog_size;)this.getBacklog().shift()}}const Dw={currentSentenceId:0,sceneStack:[],currentScene:{sceneName:"",sceneUrl:"",sentenceList:[],assetsList:[],subSceneList:[]}};class OG{constructor(){se(this,"settledScenes",[]);se(this,"settledAssets",[]);se(this,"sceneData",At(Dw))}resetScene(){this.sceneData.currentSentenceId=0,this.sceneData.sceneStack=[],this.sceneData.currentScene=At(Dw.currentScene)}}class AG{constructor(){se(this,"nextEnterAnimationName",new Map);se(this,"nextExitAnimationName",new Map);se(this,"animations",[])}addAnimation(t){this.animations.push(t)}getAnimations(){return this.animations}}const PG={performName:"",duration:100,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0};var Br=(e=>(e[e.background=0]="background",e[e.bgm=1]="bgm",e[e.figure=2]="figure",e[e.scene=3]="scene",e[e.tex=4]="tex",e[e.vocal=5]="vocal",e[e.video=6]="video",e))(Br||{});const jr=(e,t)=>{if(e.match("http://")||e.match("https://"))return e;{let r;switch(t){case 0:r=`./game/background/${e}`;break;case 3:r=`./game/scene/${e}`;break;case 5:r=`./game/vocal/${e}`;break;case 2:r=`./game/figure/${e}`;break;case 1:r=`./game/bgm/${e}`;break;case 6:r=`./game/video/${e}`;break;default:r="";break}return r}},kG=e=>{for(const t of e){let r=!0;if(O.sceneManager.settledAssets.forEach(n=>{n===t.url&&(r=!1)}),!r)ne.warn("该资源已在预加载列表中,无需重复加载");else{const n=document.createElement("link");n.setAttribute("rel","prefetch"),n.setAttribute("href",t.url);const i=document.getElementsByTagName("head");i.length&&i[0].appendChild(n),O.sceneManager.settledAssets.push(t.url)}}};var oe;(function(e){e[e.say=0]="say",e[e.changeBg=1]="changeBg",e[e.changeFigure=2]="changeFigure",e[e.bgm=3]="bgm",e[e.video=4]="video",e[e.pixi=5]="pixi",e[e.pixiInit=6]="pixiInit",e[e.intro=7]="intro",e[e.miniAvatar=8]="miniAvatar",e[e.changeScene=9]="changeScene",e[e.choose=10]="choose",e[e.end=11]="end",e[e.setComplexAnimation=12]="setComplexAnimation",e[e.setFilter=13]="setFilter",e[e.label=14]="label",e[e.jumpLabel=15]="jumpLabel",e[e.chooseLabel=16]="chooseLabel",e[e.setVar=17]="setVar",e[e.if=18]="if",e[e.callScene=19]="callScene",e[e.showVars=20]="showVars",e[e.unlockCg=21]="unlockCg",e[e.unlockBgm=22]="unlockBgm",e[e.filmMode=23]="filmMode",e[e.setTextbox=24]="setTextbox",e[e.setAnimation=25]="setAnimation",e[e.playEffect=26]="playEffect",e[e.setTempAnimation=27]="setTempAnimation",e[e.comment=28]="comment",e[e.setTransform=29]="setTransform",e[e.setTransition=30]="setTransition",e[e.getUserInput=31]="getUserInput"})(oe||(oe={}));const Bw=(e,t,r)=>{let n={type:oe.say,additionalArgs:[]};const i=IG(e,t,r);return n.type=i,i===oe.say&&e!=="say"&&n.additionalArgs.push({key:"speaker",value:e}),n=RG(n,i,t),n};function IG(e,t,r){const n=new Map;return r.forEach(i=>{n.set(i.scriptString,i.scriptType)}),n.has(e)?n.get(e):oe.say}function RG(e,t,r){return r.includes(t)&&e.additionalArgs.push({key:"next",value:!0}),e}var Tt;(function(e){e[e.background=0]="background",e[e.bgm=1]="bgm",e[e.figure=2]="figure",e[e.scene=3]="scene",e[e.tex=4]="tex",e[e.vocal=5]="vocal",e[e.video=6]="video"})(Tt||(Tt={}));function o2(e,t){const r=[];let i=e.replace(/ /g," ").split(" -");return i=i.filter(o=>o!==""),i.forEach(o=>{const a=o.indexOf("=");let s=o.slice(0,a),u=o.slice(a+1);a<0&&(s=o,u=void 0),s.toLowerCase().match(/.ogg|.mp3|.wav/)?r.push({key:"vocal",value:t(o,Tt.vocal)}):u===void 0?r.push({key:s,value:!0}):u==="true"||u==="false"?r.push({key:s,value:u==="true"}):isNaN(Number(u))?r.push({key:s,value:u}):r.push({key:s,value:Number(u)})}),r}const NG=(e,t,r)=>{if(e==="none"||e==="")return"";switch(t){case oe.playEffect:return r(e,Tt.vocal);case oe.changeBg:return r(e,Tt.background);case oe.changeFigure:return r(e,Tt.figure);case oe.bgm:return r(e,Tt.bgm);case oe.callScene:return r(e,Tt.scene);case oe.changeScene:return r(e,Tt.scene);case oe.miniAvatar:return r(e,Tt.figure);case oe.video:return r(e,Tt.video);case oe.choose:return LG(e,r);case oe.unlockBgm:return r(e,Tt.bgm);case oe.unlockCg:return r(e,Tt.background);default:return e}};function LG(e,t){const r=e.split("|"),n=[],i=[];for(const s of r)n.push(s.split(":")[0]??""),i.push(s.split(":")[1]??"");const o=i.map(s=>s.match(/\./)?t(s,Tt.scene):s);let a="";for(let s=0;s{const n=[];return e===oe.say&&r.forEach(i=>{i.key==="vocal"&&n.push({name:i.value,url:i.value,lineNumber:0,type:Tt.vocal})}),t==="none"||t===""||(e===oe.changeBg&&n.push({name:t,url:t,lineNumber:0,type:Tt.background}),e===oe.changeFigure&&n.push({name:t,url:t,lineNumber:0,type:Tt.figure}),e===oe.miniAvatar&&n.push({name:t,url:t,lineNumber:0,type:Tt.figure}),e===oe.video&&n.push({name:t,url:t,lineNumber:0,type:Tt.video}),e===oe.bgm&&n.push({name:t,url:t,lineNumber:0,type:Tt.bgm})),n},FG=(e,t)=>{const r=[];return(e===oe.changeScene||e===oe.callScene)&&r.push(t),e===oe.choose&&t.split("|").map(o=>o.split(":")[1]??"").forEach(o=>{o.match(/\./)&&r.push(o)}),r},DG=(e,t,r,n)=>{let i,o,a;const s=[];let u,l,c,f=e.split(";")[0];if(f==="")return{command:oe.comment,commandRaw:"comment",content:e.split(";")[1]??"",args:[{key:"next",value:!0}],sentenceAssets:[],subScene:[]};const h=/:/.exec(f);if(h===null){c=f,l=Bw(c,r,n),i=l.type;for(const v of l.additionalArgs)i===oe.say&&v.key==="speaker"||s.push(v)}else{c=f.substring(0,h.index),f=f.substring(h.index+1,f.length),l=Bw(c,r,n),i=l.type;for(const v of l.additionalArgs)s.push(v)}const d=/ -/.exec(f);if(d){const v=f.substring(d.index,e.length);f=f.substring(0,d.index);for(const g of o2(v,t))s.push(g)}return o=NG(f,i,t),u=MG(i,o,s),a=FG(i,o),{command:i,commandRaw:c,content:o,args:s,sentenceAssets:u,subScene:a}};var xc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},BG=typeof xc=="object"&&xc&&xc.Object===Object&&xc,jG=BG,$G=jG,UG=typeof self=="object"&&self&&self.Object===Object&&self,GG=$G||UG||Function("return this")(),od=GG,zG=od,HG=zG.Symbol,a2=HG,jw=a2,s2=Object.prototype,VG=s2.hasOwnProperty,WG=s2.toString,ou=jw?jw.toStringTag:void 0;function qG(e){var t=VG.call(e,ou),r=e[ou];try{e[ou]=void 0;var n=!0}catch{}var i=WG.call(e);return n&&(t?e[ou]=r:delete e[ou]),i}var XG=qG,YG=Object.prototype,KG=YG.toString;function ZG(e){return KG.call(e)}var QG=ZG,$w=a2,JG=XG,ez=QG,tz="[object Null]",rz="[object Undefined]",Uw=$w?$w.toStringTag:void 0;function nz(e){return e==null?e===void 0?rz:tz:Uw&&Uw in Object(e)?JG(e):ez(e)}var iz=nz;function oz(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var u2=oz,az=iz,sz=u2,uz="[object AsyncFunction]",lz="[object Function]",cz="[object GeneratorFunction]",fz="[object Proxy]";function hz(e){if(!sz(e))return!1;var t=az(e);return t==lz||t==cz||t==uz||t==fz}var dz=hz,pz=od,vz=pz["__core-js_shared__"],mz=vz,sv=mz,Gw=function(){var e=/[^.]+$/.exec(sv&&sv.keys&&sv.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function gz(e){return!!Gw&&Gw in e}var yz=gz,_z=Function.prototype,xz=_z.toString;function bz(e){if(e!=null){try{return xz.call(e)}catch{}try{return e+""}catch{}}return""}var Sz=bz,wz=dz,Ez=yz,Tz=u2,Cz=Sz,Oz=/[\\^$.*+?()[\]{}|]/g,Az=/^\[object .+?Constructor\]$/,Pz=Function.prototype,kz=Object.prototype,Iz=Pz.toString,Rz=kz.hasOwnProperty,Nz=RegExp("^"+Iz.call(Rz).replace(Oz,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Lz(e){if(!Tz(e)||Ez(e))return!1;var t=wz(e)?Nz:Az;return t.test(Cz(e))}var Mz=Lz;function Fz(e,t){return e==null?void 0:e[t]}var Dz=Fz,Bz=Mz,jz=Dz;function $z(e,t){var r=jz(e,t);return Bz(r)?r:void 0}var rx=$z,Uz=rx,Gz=Uz(Object,"create"),ad=Gz,zw=ad;function zz(){this.__data__=zw?zw(null):{},this.size=0}var Hz=zz;function Vz(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Wz=Vz,qz=ad,Xz="__lodash_hash_undefined__",Yz=Object.prototype,Kz=Yz.hasOwnProperty;function Zz(e){var t=this.__data__;if(qz){var r=t[e];return r===Xz?void 0:r}return Kz.call(t,e)?t[e]:void 0}var Qz=Zz,Jz=ad,e9=Object.prototype,t9=e9.hasOwnProperty;function r9(e){var t=this.__data__;return Jz?t[e]!==void 0:t9.call(t,e)}var n9=r9,i9=ad,o9="__lodash_hash_undefined__";function a9(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=i9&&t===void 0?o9:t,this}var s9=a9,u9=Hz,l9=Wz,c9=Qz,f9=n9,h9=s9;function Ps(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var k9=P9,I9=sd;function R9(e,t){var r=this.__data__,n=I9(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var N9=R9,L9=v9,M9=E9,F9=O9,D9=k9,B9=N9;function ks(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var BH=DH;function jH(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=sV){var l=t?null:oV(e);if(l)return aV(l);a=!1,i=iV,u=new tV}else u=t?[]:s;e:for(;++n{const u=e.split(` +`);let l=[],c=[];const f=u.map(h=>{const d=DG(h,i,o,a);return l=[...l,...d.sentenceAssets],c=[...c,...d.subScene],d});return l=hV(l),n(l),{sceneName:t,sceneUrl:r,sentenceList:f,assetsList:l,subSceneList:c}};oe.intro,oe.changeBg,oe.changeFigure,oe.miniAvatar,oe.changeScene,oe.choose,oe.end,oe.bgm,oe.video,oe.setComplexAnimation,oe.setFilter,oe.pixiInit,oe.pixi,oe.label,oe.jumpLabel,oe.setVar,oe.callScene,oe.showVars,oe.unlockCg,oe.unlockBgm,oe.say,oe.filmMode,oe.callScene,oe.setTextbox,oe.setAnimation,oe.playEffect;oe.bgm,oe.pixi,oe.pixiInit,oe.label,oe.if,oe.miniAvatar,oe.setVar,oe.unlockBgm,oe.unlockCg,oe.filmMode,oe.playEffect;function pV(e){const t=[];let r,n=e.split(";")[0];if(n==="")return{command:"",args:[],options:[]};const i=/:/.exec(n);i===null?r="":(r=n.substring(0,i.index),n=n.substring(i.index+1,n.length));const o=/ -/.exec(n);if(o){const a=n.substring(o.index,n.length);n=n.substring(0,o.index);for(const s of o2(a,(u,l)=>u))t.push(s)}return{command:r,args:n.split("|").map(a=>a.trim()).filter(a=>a!==""),options:t}}function vV(e){return e.replaceAll("\r","").split(` +`).map(r=>pV(r)).filter(r=>r.command!=="")}class mV{constructor(t,r,n,i){se(this,"assetsPrefetcher");se(this,"assetSetter");se(this,"ADD_NEXT_ARG_LIST");se(this,"SCRIPT_CONFIG");this.assetsPrefetcher=t,this.assetSetter=r,this.ADD_NEXT_ARG_LIST=n,this.SCRIPT_CONFIG=i}parse(t,r,n){return dV(t,r,n,this.assetsPrefetcher,this.assetSetter,this.ADD_NEXT_ARG_LIST,this.SCRIPT_CONFIG)}parseConfig(t){return vV(t)}stringifyConfig(t){return t.reduce((r,n)=>r+`${n.command}:${n.args.join("|")}${n.options.length<=0?"":n.options.reduce((i,o)=>i+" -"+o.key+"="+o.value,"")}; +`,"")}}function Ae(e,t){const n=e.args.find(i=>i.key===t);return n?n.value:null}const gV=e=>{let t=e.content,r="",n="default";e.args.forEach(a=>{a.key==="unlockname"&&(r=a.value.toString()),a.key==="series"&&(n=a.value.toString())});const i=Ae(e,"enter"),o=Ae(e,"volume");return r!==""&&B.dispatch(n2({name:r,url:t,series:n})),Mx(t,typeof i=="number"&&i>=0?i:0,typeof o=="number"&&o>=0&&o<=100?o:100),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};var nx={exports:{}},c2=function(t,r){return function(){for(var i=new Array(arguments.length),o=0;o"u"}function _V(e){return e!==null&&!Ng(e)&&e.constructor!==null&&!Ng(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function f2(e){return ho.call(e)==="[object ArrayBuffer]"}function xV(e){return ho.call(e)==="[object FormData]"}function bV(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&f2(e.buffer),t}function SV(e){return typeof e=="string"}function wV(e){return typeof e=="number"}function h2(e){return e!==null&&typeof e=="object"}function gf(e){if(ho.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function EV(e){return ho.call(e)==="[object Date]"}function TV(e){return ho.call(e)==="[object File]"}function CV(e){return ho.call(e)==="[object Blob]"}function d2(e){return ho.call(e)==="[object Function]"}function OV(e){return h2(e)&&d2(e.pipe)}function AV(e){return ho.call(e)==="[object URLSearchParams]"}function PV(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function kV(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function ox(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),ix(e))for(var r=0,n=e.length;r"u"||(ha.isArray(u)?l=l+"[]":u=[u],ha.forEach(u,function(f){ha.isDate(f)?f=f.toISOString():ha.isObject(f)&&(f=JSON.stringify(f)),o.push(Vw(l)+"="+Vw(f))}))}),i=o.join("&")}if(i){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},NV=Lr;function ld(){this.handlers=[]}ld.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};ld.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};ld.prototype.forEach=function(t){NV.forEach(this.handlers,function(n){n!==null&&t(n)})};var LV=ld,MV=Lr,FV=function(t,r){MV.forEach(t,function(i,o){o!==r&&o.toUpperCase()===r.toUpperCase()&&(t[r]=i,delete t[o])})},v2=function(t,r,n,i,o){return t.config=r,n&&(t.code=n),t.request=i,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},m2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lv,Ww;function g2(){if(Ww)return lv;Ww=1;var e=v2;return lv=function(r,n,i,o,a){var s=new Error(r);return e(s,n,i,o,a)},lv}var cv,qw;function DV(){if(qw)return cv;qw=1;var e=g2();return cv=function(r,n,i){var o=i.config.validateStatus;!i.status||!o||o(i.status)?r(i):n(e("Request failed with status code "+i.status,i.config,null,i.request,i))},cv}var fv,Xw;function BV(){if(Xw)return fv;Xw=1;var e=Lr;return fv=e.isStandardBrowserEnv()?function(){return{write:function(n,i,o,a,s,u){var l=[];l.push(n+"="+encodeURIComponent(i)),e.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),e.isString(a)&&l.push("path="+a),e.isString(s)&&l.push("domain="+s),u===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){var i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),fv}var hv,Yw;function jV(){return Yw||(Yw=1,hv=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),hv}var dv,Kw;function $V(){return Kw||(Kw=1,dv=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),dv}var pv,Zw;function UV(){if(Zw)return pv;Zw=1;var e=jV(),t=$V();return pv=function(n,i){return n&&!e(i)?t(n,i):i},pv}var vv,Qw;function GV(){if(Qw)return vv;Qw=1;var e=Lr,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return vv=function(n){var i={},o,a,s;return n&&e.forEach(n.split(` +`),function(l){if(s=l.indexOf(":"),o=e.trim(l.substr(0,s)).toLowerCase(),a=e.trim(l.substr(s+1)),o){if(i[o]&&t.indexOf(o)>=0)return;o==="set-cookie"?i[o]=(i[o]?i[o]:[]).concat([a]):i[o]=i[o]?i[o]+", "+a:a}}),i},vv}var mv,Jw;function zV(){if(Jw)return mv;Jw=1;var e=Lr;return mv=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),i;function o(a){var s=a;return r&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=o(window.location.href),function(s){var u=e.isString(s)?o(s):s;return u.protocol===i.protocol&&u.host===i.host}}():function(){return function(){return!0}}(),mv}var gv,eE;function cd(){if(eE)return gv;eE=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,gv=e,gv}var yv,tE;function rE(){if(tE)return yv;tE=1;var e=Lr,t=DV(),r=BV(),n=p2,i=UV(),o=GV(),a=zV(),s=g2(),u=m2,l=cd();return yv=function(f){return new Promise(function(d,v){var g=f.data,p=f.headers,m=f.responseType,y;function _(){f.cancelToken&&f.cancelToken.unsubscribe(y),f.signal&&f.signal.removeEventListener("abort",y)}e.isFormData(g)&&delete p["Content-Type"];var x=new XMLHttpRequest;if(f.auth){var b=f.auth.username||"",w=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";p.Authorization="Basic "+btoa(b+":"+w)}var T=i(f.baseURL,f.url);x.open(f.method.toUpperCase(),n(T,f.params,f.paramsSerializer),!0),x.timeout=f.timeout;function k(){if(x){var P="getAllResponseHeaders"in x?o(x.getAllResponseHeaders()):null,F=!m||m==="text"||m==="json"?x.responseText:x.response,D={data:F,status:x.status,statusText:x.statusText,headers:P,config:f,request:x};t(function(re){d(re),_()},function(re){v(re),_()},D),x=null}}if("onloadend"in x?x.onloadend=k:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(k)},x.onabort=function(){x&&(v(s("Request aborted",f,"ECONNABORTED",x)),x=null)},x.onerror=function(){v(s("Network Error",f,null,x)),x=null},x.ontimeout=function(){var F=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",D=f.transitional||u;f.timeoutErrorMessage&&(F=f.timeoutErrorMessage),v(s(F,f,D.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",x)),x=null},e.isStandardBrowserEnv()){var A=(f.withCredentials||a(T))&&f.xsrfCookieName?r.read(f.xsrfCookieName):void 0;A&&(p[f.xsrfHeaderName]=A)}"setRequestHeader"in x&&e.forEach(p,function(F,D){typeof g>"u"&&D.toLowerCase()==="content-type"?delete p[D]:x.setRequestHeader(D,F)}),e.isUndefined(f.withCredentials)||(x.withCredentials=!!f.withCredentials),m&&m!=="json"&&(x.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&x.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&x.upload&&x.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(y=function(P){x&&(v(!P||P&&P.type?new l("canceled"):P),x.abort(),x=null)},f.cancelToken&&f.cancelToken.subscribe(y),f.signal&&(f.signal.aborted?y():f.signal.addEventListener("abort",y))),g||(g=null),x.send(g)})},yv}var Yt=Lr,nE=FV,HV=v2,VV=m2,WV={"Content-Type":"application/x-www-form-urlencoded"};function iE(e,t){!Yt.isUndefined(e)&&Yt.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function qV(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=rE()),e}function XV(e,t,r){if(Yt.isString(e))try{return(t||JSON.parse)(e),Yt.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var fd={transitional:VV,adapter:qV(),transformRequest:[function(t,r){return nE(r,"Accept"),nE(r,"Content-Type"),Yt.isFormData(t)||Yt.isArrayBuffer(t)||Yt.isBuffer(t)||Yt.isStream(t)||Yt.isFile(t)||Yt.isBlob(t)?t:Yt.isArrayBufferView(t)?t.buffer:Yt.isURLSearchParams(t)?(iE(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Yt.isObject(t)||r&&r["Content-Type"]==="application/json"?(iE(r,"application/json"),XV(t)):t}],transformResponse:[function(t){var r=this.transitional||fd.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,o=!n&&this.responseType==="json";if(o||i&&Yt.isString(t)&&t.length)try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?HV(a,this,"E_JSON_PARSE"):a}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Yt.forEach(["delete","get","head"],function(t){fd.headers[t]={}});Yt.forEach(["post","put","patch"],function(t){fd.headers[t]=Yt.merge(WV)});var ax=fd,YV=Lr,KV=ax,ZV=function(t,r,n){var i=this||KV;return YV.forEach(n,function(a){t=a.call(i,t,r)}),t},_v,oE;function y2(){return oE||(oE=1,_v=function(t){return!!(t&&t.__CANCEL__)}),_v}var aE=Lr,xv=ZV,QV=y2(),JV=ax,eW=cd();function bv(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eW("canceled")}var tW=function(t){bv(t),t.headers=t.headers||{},t.data=xv.call(t,t.data,t.headers,t.transformRequest),t.headers=aE.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),aE.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||JV.adapter;return r(t).then(function(i){return bv(t),i.data=xv.call(t,i.data,i.headers,t.transformResponse),i},function(i){return QV(i)||(bv(t),i&&i.response&&(i.response.data=xv.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},Dr=Lr,_2=function(t,r){r=r||{};var n={};function i(c,f){return Dr.isPlainObject(c)&&Dr.isPlainObject(f)?Dr.merge(c,f):Dr.isPlainObject(f)?Dr.merge({},f):Dr.isArray(f)?f.slice():f}function o(c){if(Dr.isUndefined(r[c])){if(!Dr.isUndefined(t[c]))return i(void 0,t[c])}else return i(t[c],r[c])}function a(c){if(!Dr.isUndefined(r[c]))return i(void 0,r[c])}function s(c){if(Dr.isUndefined(r[c])){if(!Dr.isUndefined(t[c]))return i(void 0,t[c])}else return i(void 0,r[c])}function u(c){if(c in r)return i(t[c],r[c]);if(c in t)return i(void 0,t[c])}var l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return Dr.forEach(Object.keys(t).concat(Object.keys(r)),function(f){var h=l[f]||o,d=h(f);Dr.isUndefined(d)&&h!==u||(n[f]=d)}),n},Sv,sE;function x2(){return sE||(sE=1,Sv={version:"0.26.1"}),Sv}var rW=x2().version,sx={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){sx[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var uE={};sx.transitional=function(t,r,n){function i(o,a){return"[Axios v"+rW+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,s){if(t===!1)throw new Error(i(a," has been removed"+(r?" in "+r:"")));return r&&!uE[a]&&(uE[a]=!0,console.warn(i(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,a,s):!0}};function nW(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],a=t[o];if(a){var s=e[o],u=s===void 0||a(s,o,e);if(u!==!0)throw new TypeError("option "+o+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+o)}}var iW={assertOptions:nW,validators:sx},b2=Lr,oW=p2,lE=LV,cE=tW,hd=_2,S2=iW,da=S2.validators;function Xl(e){this.defaults=e,this.interceptors={request:new lE,response:new lE}}Xl.prototype.request=function(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=hd(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var n=r.transitional;n!==void 0&&S2.assertOptions(n,{silentJSONParsing:da.transitional(da.boolean),forcedJSONParsing:da.transitional(da.boolean),clarifyTimeoutError:da.transitional(da.boolean)},!1);var i=[],o=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(r)===!1||(o=o&&d.synchronous,i.unshift(d.fulfilled,d.rejected))});var a=[];this.interceptors.response.forEach(function(d){a.push(d.fulfilled,d.rejected)});var s;if(!o){var u=[cE,void 0];for(Array.prototype.unshift.apply(u,i),u=u.concat(a),s=Promise.resolve(r);u.length;)s=s.then(u.shift(),u.shift());return s}for(var l=r;i.length;){var c=i.shift(),f=i.shift();try{l=c(l)}catch(h){f(h);break}}try{s=cE(l)}catch(h){return Promise.reject(h)}for(;a.length;)s=s.then(a.shift(),a.shift());return s};Xl.prototype.getUri=function(t){return t=hd(this.defaults,t),oW(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};b2.forEach(["delete","get","head","options"],function(t){Xl.prototype[t]=function(r,n){return this.request(hd(n||{},{method:t,url:r,data:(n||{}).data}))}});b2.forEach(["post","put","patch"],function(t){Xl.prototype[t]=function(r,n,i){return this.request(hd(i||{},{method:t,url:r,data:n}))}});var aW=Xl,wv,fE;function sW(){if(fE)return wv;fE=1;var e=cd();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(a){n=a});var i=this;this.promise.then(function(o){if(i._listeners){var a,s=i._listeners.length;for(a=0;anew Promise(t=>{dl.get(e).then(r=>{const n=r.data.toString();t(n)})});var vW="__lodash_hash_undefined__";function mW(e){return this.__data__.set(e,vW),this}var gW=mW;function yW(e){return this.__data__.has(e)}var _W=yW,xW=B0,bW=gW,SW=_W;function fh(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new xW;++t-1}var FW=MW;function DW(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=e7){var l=t?null:QW(e);if(l)return JW(l);a=!1,i=ZW,u=new XW}else u=t?[]:s;e:for(;++n{for(const t of e)O.sceneManager.settledScenes.includes(t)?ne.warn(`场景${t}已经加载过,无需再次加载`):(ne.info(`现在预加载场景${t}`),ri(t).then(r=>{ni(r,t,t)}))},a7=(e,t)=>{O.sceneManager.sceneData.sceneStack.push({sceneName:O.sceneManager.sceneData.currentScene.sceneName,sceneUrl:O.sceneManager.sceneData.currentScene.sceneUrl,continueLine:O.sceneManager.sceneData.currentSentenceId}),ri(e).then(r=>{O.sceneManager.sceneData.currentScene=ni(r,t,e),O.sceneManager.sceneData.currentSentenceId=0;const n=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(e);const i=Yl(n);Kl(i),ne.debug("现在调用场景,调用结果:",O.sceneManager.sceneData),Vt()})},s7=e=>{const t=e.content.split("/"),r=t[t.length-1];return a7(e.content,r),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function pl(e,t,r){let n;const o=B.getState().stage.effects.find(a=>a.target===e);if(t.duration=500,r&&typeof r=="number"&&(t.duration=r),n=[t],o){const a={...o.transform,duration:0};n.unshift(a)}else{const a={...t,alpha:0,duration:0};n.unshift(a)}return n}function C2(e,t){const r=O.gameplay.pixiStage.getStageObjByKey(e);function n(){r&&(r.pixiContainer.alpha=0)}function i(){r&&(r.pixiContainer.alpha=1)}function o(a){if(r){const s=r.pixiContainer,u=O.gameplay.pixiStage.frameDuration,c=1/(t/u*a);s.alpha<1&&(s.alpha+=c)}}return{setStartState:n,setEndState:i,tickerFunc:o}}function O2(e,t){const r=O.gameplay.pixiStage.getStageObjByKey(e);function n(){}function i(){r&&(r.pixiContainer.alpha=0)}function o(a){if(r){const s=r.pixiContainer,u=O.gameplay.pixiStage.frameDuration,c=1/(t/u*a);s.alpha>0&&(s.alpha-=c)}}return{setStartState:n,setEndState:i,tickerFunc:o}}const lx={alpha:1,scale:{x:1,y:1},position:{x:0,y:0},rotation:0,blur:0};function A2(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);iMath.min(Math.max(r,e),t),Ov=.001,l7=.01,mE=10,c7=.05,f7=1;function h7({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;u7(e<=mE*1e3);let a=1-t;a=Mg(c7,f7,a),e=Mg(l7,mE,e/1e3),a<1?(i=l=>{const c=l*a,f=c*e,h=c-r,d=Fg(l,a),v=Math.exp(-f);return Ov-h/d*v},o=l=>{const f=l*a*e,h=f*r+r,d=Math.pow(a,2)*Math.pow(l,2)*e,v=Math.exp(-f),g=Fg(Math.pow(l,2),a);return(-i(l)+Ov>0?-1:1)*((h-d)*v)/g}):(i=l=>{const c=Math.exp(-l*e),f=(l-r)*e+1;return-Ov+c*f},o=l=>{const c=Math.exp(-l*e),f=(r-l)*(e*e);return c*f});const s=5/e,u=p7(i,o,s);if(e=e*1e3,isNaN(u))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(u,2)*n;return{stiffness:l,damping:a*2*Math.sqrt(n*l),duration:e}}}const d7=12;function p7(e,t,r){let n=r;for(let i=1;ie[r]!==void 0)}function g7(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!gE(e,m7)&&gE(e,v7)){const r=h7(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function cx(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:i}=e,o=A2(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:s,damping:u,mass:l,velocity:c,duration:f,isResolvedFromDuration:h}=g7(o),d=yE,v=yE;function g(){const p=c?-(c/1e3):0,m=r-t,y=u/(2*Math.sqrt(s*l)),_=Math.sqrt(s/l)/1e3;if(i===void 0&&(i=Math.min(Math.abs(r-t)/100,.4)),y<1){const x=Fg(_,y);d=b=>{const w=Math.exp(-y*_*b);return r-w*((p+y*_*m)/x*Math.sin(x*b)+m*Math.cos(x*b))},v=b=>{const w=Math.exp(-y*_*b);return y*_*w*(Math.sin(x*b)*(p+y*_*m)/x+m*Math.cos(x*b))-w*(Math.cos(x*b)*(p+y*_*m)-x*m*Math.sin(x*b))}}else if(y===1)d=x=>r-Math.exp(-_*x)*(m+(p+_*m)*x);else{const x=_*Math.sqrt(y*y-1);d=b=>{const w=Math.exp(-y*_*b),T=Math.min(x*b,300);return r-w*((p+y*_*m)*Math.sinh(T)+x*m*Math.cosh(T))/x}}}return g(),{next:p=>{const m=d(p);if(h)a.done=p>=f;else{const y=v(p)*1e3,_=Math.abs(y)<=n,x=Math.abs(r-m)<=i;a.done=_&&x}return a.value=a.done?r:m,a},flipTarget:()=>{c=-c,[t,r]=[r,t],g()}}}cx.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const yE=e=>0,P2=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},fx=(e,t,r)=>-r*e+r*t+e,k2=(e,t)=>r=>Math.max(Math.min(r,t),e),ju=e=>e%1?Number(e.toFixed(5)):e,hh=/(-)?([\d]*\.?[\d])+/g,Dg=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,y7=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Zl(e){return typeof e=="string"}const dd={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},I2=Object.assign(Object.assign({},dd),{transform:k2(0,1)});Object.assign(Object.assign({},dd),{default:1});const _7=e=>({test:t=>Zl(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),$u=_7("%");Object.assign(Object.assign({},$u),{parse:e=>$u.parse(e)/100,transform:e=>$u.transform(e*100)});const hx=(e,t)=>r=>!!(Zl(r)&&y7.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),R2=(e,t,r)=>n=>{if(!Zl(n))return n;const[i,o,a,s]=n.match(hh);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},Lo={test:hx("hsl","hue"),parse:R2("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+$u.transform(ju(t))+", "+$u.transform(ju(r))+", "+ju(I2.transform(n))+")"},x7=k2(0,255),Av=Object.assign(Object.assign({},dd),{transform:e=>Math.round(x7(e))}),Fi={test:hx("rgb","red"),parse:R2("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Av.transform(e)+", "+Av.transform(t)+", "+Av.transform(r)+", "+ju(I2.transform(n))+")"};function b7(e){let t="",r="",n="",i="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),i=e.substr(4,1),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const Bg={test:hx("#"),parse:b7,transform:Fi.transform},pd={test:e=>Fi.test(e)||Bg.test(e)||Lo.test(e),parse:e=>Fi.test(e)?Fi.parse(e):Lo.test(e)?Lo.parse(e):Bg.parse(e),transform:e=>Zl(e)?e:e.hasOwnProperty("red")?Fi.transform(e):Lo.transform(e)},N2="${c}",L2="${n}";function S7(e){var t,r,n,i;return isNaN(e)&&Zl(e)&&((r=(t=e.match(hh))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((i=(n=e.match(Dg))===null||n===void 0?void 0:n.length)!==null&&i!==void 0?i:0)>0}function M2(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const n=e.match(Dg);n&&(r=n.length,e=e.replace(Dg,N2),t.push(...n.map(pd.parse)));const i=e.match(hh);return i&&(e=e.replace(hh,L2),t.push(...i.map(dd.parse))),{values:t,numColors:r,tokenised:e}}function F2(e){return M2(e).values}function D2(e){const{values:t,numColors:r,tokenised:n}=M2(e),i=t.length;return o=>{let a=n;for(let s=0;stypeof e=="number"?0:e;function E7(e){const t=F2(e);return D2(e)(t.map(w7))}const B2={test:S7,parse:F2,createTransformer:D2,getAnimatableNone:E7};function Pv(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function _E({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,o=0,a=0;if(!t)i=o=a=r;else{const s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;i=Pv(u,s,e+1/3),o=Pv(u,s,e),a=Pv(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:n}}const T7=(e,t,r)=>{const n=e*e,i=t*t;return Math.sqrt(Math.max(0,r*(i-n)+n))},C7=[Bg,Fi,Lo],xE=e=>C7.find(t=>t.test(e)),j2=(e,t)=>{let r=xE(e),n=xE(t),i=r.parse(e),o=n.parse(t);r===Lo&&(i=_E(i),r=Fi),n===Lo&&(o=_E(o),n=Fi);const a=Object.assign({},i);return s=>{for(const u in a)u!=="alpha"&&(a[u]=T7(i[u],o[u],s));return a.alpha=fx(i.alpha,o.alpha,s),r.transform(a)}},O7=e=>typeof e=="number",A7=(e,t)=>r=>t(e(r)),$2=(...e)=>e.reduce(A7);function U2(e,t){return O7(e)?r=>fx(e,t,r):pd.test(e)?j2(e,t):z2(e,t)}const G2=(e,t)=>{const r=[...e],n=r.length,i=e.map((o,a)=>U2(o,t[a]));return o=>{for(let a=0;a{const r=Object.assign(Object.assign({},e),t),n={};for(const i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=U2(e[i],t[i]));return i=>{for(const o in n)r[o]=n[o](i);return r}};function bE(e){const t=B2.parse(e),r=t.length;let n=0,i=0,o=0;for(let a=0;a{const r=B2.createTransformer(t),n=bE(e),i=bE(t);return n.numHSL===i.numHSL&&n.numRGB===i.numRGB&&n.numNumbers>=i.numNumbers?$2(G2(n.parsed,i.parsed),r):a=>`${a>0?t:e}`},k7=(e,t)=>r=>fx(e,t,r);function I7(e){if(typeof e=="number")return k7;if(typeof e=="string")return pd.test(e)?j2:z2;if(Array.isArray(e))return G2;if(typeof e=="object")return P7}function R7(e,t,r){const n=[],i=r||I7(e[0]),o=e.length-1;for(let a=0;ar(P2(e,t,n))}function L7(e,t){const r=e.length,n=r-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[n]&&(o=n-1,a=!0),!a){let u=1;for(;ui||u===n);u++);o=u-1}const s=P2(e[o],e[o+1],i);return t[o](s)}}function H2(e,t,{clamp:r=!0,ease:n,mixer:i}={}){const o=e.length;vE(o===t.length),vE(!n||!Array.isArray(n)||n.length===o-1),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=R7(t,n,i),s=o===2?N7(e,a):L7(e,a);return r?u=>s(Mg(e[0],e[o-1],u)):s}const M7=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,F7=e=>t=>Math.pow(t,e),D7=e=>t=>t*t*((e+1)*t-e),B7=e=>{const t=D7(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},j7=1.525,$7=F7(2),U7=M7($7);B7(j7);function G7(e,t){return e.map(()=>t||U7).splice(0,e.length-1)}function z7(e){const t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function H7(e,t){return e.map(r=>r*t)}function _f({from:e=0,to:t=1,ease:r,offset:n,duration:i=300}){const o={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=H7(n&&n.length===a.length?n:z7(a),i);function u(){return H2(s,a,{ease:Array.isArray(r)?r:G7(a,r)})}let l=u();return{next:c=>(o.value=l(c),o.done=c>=i,o),flipTarget:()=>{a.reverse(),l=u()}}}function V7({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:o}){const a={done:!1,value:t};let s=r*e;const u=t+s,l=o===void 0?u:o(u);return l!==u&&(s=l-t),{next:c=>{const f=-s*Math.exp(-c/n);return a.done=!(f>i||f<-i),a.value=a.done?l:l+f,a},flipTarget:()=>{}}}const SE={keyframes:_f,spring:cx,decay:V7};function W7(e){if(Array.isArray(e.to))return _f;if(SE[e.type])return SE[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?_f:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?cx:_f}const V2=1/60*1e3,q7=typeof performance<"u"?()=>performance.now():()=>Date.now(),W2=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(q7()),V2);function X7(e){let t=[],r=[],n=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(u,l=!1,c=!1)=>{const f=c&&i,h=f?t:r;return l&&a.add(u),h.indexOf(u)===-1&&(h.push(u),f&&i&&(n=t.length)),u},cancel:u=>{const l=r.indexOf(u);l!==-1&&r.splice(l,1),a.delete(u)},process:u=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let l=0;l(e[t]=X7(()=>vl=!0),e),{}),K7=Ql.reduce((e,t)=>{const r=vd[t];return e[t]=(n,i=!1,o=!1)=>(vl||J7(),r.schedule(n,i,o)),e},{}),Z7=Ql.reduce((e,t)=>(e[t]=vd[t].cancel,e),{});Ql.reduce((e,t)=>(e[t]=()=>vd[t].process(Uu),e),{});const Q7=e=>vd[e].process(Uu),q2=e=>{vl=!1,Uu.delta=jg?V2:Math.max(Math.min(e-Uu.timestamp,Y7),1),Uu.timestamp=e,$g=!0,Ql.forEach(Q7),$g=!1,vl&&(jg=!1,W2(q2))},J7=()=>{vl=!0,jg=!0,$g||W2(q2)},eq=K7;function X2(e,t,r=0){return e-t-r}function tq(e,t,r=0,n=!0){return n?X2(t+-e,t,r):t-(e-t)+r}function rq(e,t,r,n){return n?e>=t+r:e<=-r}const nq=e=>{const t=({delta:r})=>e(r);return{start:()=>eq.update(t,!0),stop:()=>Z7.update(t)}};function iq(e){var t,r,{from:n,autoplay:i=!0,driver:o=nq,elapsed:a=0,repeat:s=0,repeatType:u="loop",repeatDelay:l=0,onPlay:c,onStop:f,onComplete:h,onRepeat:d,onUpdate:v}=e,g=A2(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:p}=g,m,y=0,_=g.duration,x,b=!1,w=!0,T;const k=W7(g);!((r=(t=k).needsInterpolation)===null||r===void 0)&&r.call(t,n,p)&&(T=H2([0,100],[n,p],{clamp:!1}),n=0,p=100);const A=k(Object.assign(Object.assign({},g),{from:n,to:p}));function P(){y++,u==="reverse"?(w=y%2===0,a=tq(a,_,l,w)):(a=X2(a,_,l),u==="mirror"&&A.flipTarget()),b=!1,d&&d()}function F(){m.stop(),h&&h()}function D(re){if(w||(re=-re),a+=re,!b){const z=A.next(Math.max(0,a));x=z.value,T&&(x=T(x)),b=w?z.done:a<=0}v==null||v(x),b&&(y===0&&(_??(_=a)),y{f==null||f(),m.stop()}}}function oq(e,t){for(var r=-1,n=e==null?0:e.length;++rs))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var f=-1,h=!0,d=r&fq?new sq:void 0;for(o.set(e,t),o.set(t,e);++f0&&(u=iq({to:o,offset:a,duration:r,onUpdate:m=>{if(s){const{scaleX:y,scaleY:_,...x}=m;Object.assign(s,Rv(x,oi)),oi(y)||(s.scale.x=y),oi(_)||(s.scale.y=_)}}}));const{duration:l,...c}=g();B.dispatch(Er.updateEffect({target:t,transform:c}));function f(){if(n!=null&&n.pixiContainer){const{position:m,scale:y,..._}=v(),x=Rv({x:m.x,y:m.y,..._},oi);Object.assign(n==null?void 0:n.pixiContainer,x),n!=null&&n.pixiContainer&&(oi(y.x)||(n.pixiContainer.scale.x=y.x),oi(y==null?void 0:y.y)||(n.pixiContainer.scale.y=y.y))}}function h(){if(u&&u.stop(),u=null,n!=null&&n.pixiContainer){const{position:m,scale:y,..._}=g(),x=Rv({x:m.x,y:m.y,..._},oi);Object.assign(n==null?void 0:n.pixiContainer,x),n!=null&&n.pixiContainer&&(oi(y.x)||(n.pixiContainer.scale.x=y.x),oi(y==null?void 0:y.y)||(n.pixiContainer.scale.y=y.y))}}function d(m){}function v(){return e[0]}function g(){return e[e.length-1]}function p(){const m=e[e.length-1],{alpha:y,rotation:_,blur:x,duration:b,scale:w,position:T,...k}=m;return k}return{setStartState:f,setEndState:h,tickerFunc:d,getEndFilterEffect:p}}function dh(e,t,r){const n=O.animationManager.getAnimations().find(i=>i.name===e);if(n){const i=n.effects.map(o=>{const a=B.getState().stage.effects.find(u=>u.target===t),s=At({...(a==null?void 0:a.transform)??lx,duration:0});return Object.assign(s,o),s.duration=o.duration,s});return ne.debug("装载自定义动画",i),ik(i,t,r)}return null}function Tr(e){const t=O.animationManager.getAnimations().find(r=>r.name===e);if(t){let r=0;return t.effects.forEach(n=>{r+=n.duration}),r}return 0}function Ri(e,t,r=!1){if(t==="enter"){let n=500;r&&(n=1500);let i=C2(e,n);const o=O.animationManager.nextEnterAnimationName.get(e);return o&&(ne.debug("取代默认进入动画",e),i=dh(o,e,Tr(o)),n=Tr(o),O.animationManager.nextEnterAnimationName.delete(e)),{duration:n,animation:i}}else{let n=750;r&&(n=1500);let i=O2(e,n);const o=O.animationManager.nextExitAnimationName.get(e);return o&&(ne.debug("取代默认退出动画",e),i=dh(o,e,Tr(o)),n=Tr(o),O.animationManager.nextExitAnimationName.delete(e)),{duration:n,animation:i}}}const yK=e=>{const t=e.content;let r="",n="default";e.args.forEach(l=>{l.key==="unlockname"&&(r=l.value.toString()),l.key==="series"&&(n=l.value.toString())});const i=B.dispatch;r!==""&&i(r2({name:r,url:t,series:n})),i(Er.removeEffectByTargetId("bg-main"));const o=Ae(e,"transform");let a=Ae(e,"duration");(!a||typeof a!="number")&&(a=1e3);let s;if(o)try{const l=JSON.parse(o.toString());s=pl("bg-main",l,a),s[0].alpha=0;const c=(Math.random()*10).toString(16),f={name:c,effects:s};O.animationManager.addAnimation(f),a=Tr(c),O.animationManager.nextEnterAnimationName.set("bg-main",c)}catch{u()}else u();function u(){s=pl("bg-main",{},a),s[0].alpha=0;const c=(Math.random()*10).toString(16),f={name:c,effects:s};O.animationManager.addAnimation(f),a=Tr(c),O.animationManager.nextEnterAnimationName.set("bg-main",c)}return Ae(e,"enter")&&(O.animationManager.nextEnterAnimationName.set("bg-main",Ae(e,"enter").toString()),a=Tr(Ae(e,"enter").toString())),Ae(e,"exit")&&(O.animationManager.nextExitAnimationName.set("bg-main-off",Ae(e,"exit").toString()),a=Tr(Ae(e,"exit").toString())),i(Ee({key:"bgName",value:e.content})),{performName:"none",duration:a,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function _K(e){let t="center",r=e.content,n=!1,i="",o="",a="",s=500,u="",l="",c="",f="",h="",d="";const v=B.dispatch;for(const b of e.args)switch(b.key){case"left":b.value===!0&&(t="left");break;case"right":b.value===!0&&(t="right");break;case"clear":b.value===!0&&(r="");break;case"id":n=!0,a=b.value.toString();break;case"motion":i=b.value.toString();break;case"expression":o=b.value.toString();break;case"mouthOpen":u=b.value.toString(),u=jr(u,Br.figure);break;case"mouthClose":l=b.value.toString(),l=jr(l,Br.figure);break;case"mouthHalfOpen":c=b.value.toString(),c=jr(c,Br.figure);break;case"eyesOpen":f=b.value.toString(),f=jr(f,Br.figure);break;case"eyesClose":h=b.value.toString(),h=jr(h,Br.figure);break;case"animationFlag":d=b.value.toString();break;case"none":r="";break}const g=a||`fig-${t}`,m=B.getState().stage.figureAssociatedAnimation.filter(b=>b.targetId!==g),y={targetId:g,animationFlag:d,mouthAnimation:{open:u,close:l,halfOpen:c},blinkAnimation:{open:f,close:h}};m.push(y),v(Ee({key:"figureAssociatedAnimation",value:m}));let _=!0;if(a!==""){const b=B.getState().stage.freeFigure.find(w=>w.key===a);b&&b.name===e.content&&(_=!1)}else t==="center"&&B.getState().stage.figName===e.content&&(_=!1),t==="left"&&B.getState().stage.figNameLeft===e.content&&(_=!1),t==="right"&&B.getState().stage.figNameRight===e.content&&(_=!1);if(_){const b=`fig-${t}`,w=`${a}`;B.dispatch(Er.removeEffectByTargetId(b)),B.dispatch(Er.removeEffectByTargetId(w))}const x=(b,w)=>{const T=Ae(w,"transform"),k=Ae(w,"duration");k&&typeof k=="number"&&(s=k);let A;if(T){console.log(T);try{const H=JSON.parse(T.toString());A=pl(b,H,s),A[0].alpha=0;const re=(Math.random()*10).toString(16),z={name:re,effects:A};O.animationManager.addAnimation(z),s=Tr(re),O.animationManager.nextEnterAnimationName.set(b,re)}catch{P()}}else P();function P(){A=pl(b,{},s),A[0].alpha=0;const re=(Math.random()*10).toString(16),z={name:re,effects:A};O.animationManager.addAnimation(z),s=Tr(re),O.animationManager.nextEnterAnimationName.set(b,re)}const F=Ae(w,"enter"),D=Ae(w,"exit");F&&(O.animationManager.nextEnterAnimationName.set(b,F.toString()),s=Tr(F.toString())),D&&(O.animationManager.nextExitAnimationName.set(b+"-off",D.toString()),s=Tr(D.toString()))};if(n){B.getState().stage.freeFigure;const b={key:a,name:r,basePosition:t};x(a,e),i&&v(Er.setLive2dMotion({target:a,motion:i})),o&&v(Er.setLive2dExpression({target:a,expression:o})),v(Er.setFreeFigureByKey(b))}else{const b={center:"fig-center",left:"fig-left",right:"fig-right"},w={center:"figName",left:"figNameLeft",right:"figNameRight"};a=b[t],x(a,e),i&&v(Er.setLive2dMotion({target:a,motion:i})),o&&v(Er.setLive2dExpression({target:a,expression:o})),v(Ee({key:w[t],value:r}))}return{performName:"none",duration:s,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}}const ok=(e,t)=>{ri(e).then(r=>{O.sceneManager.sceneData.currentScene=ni(r,t,e),O.sceneManager.sceneData.currentSentenceId=0;const n=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(e);const i=Yl(n);Kl(i),ne.debug("现在切换场景,切换后的结果:",O.sceneManager.sceneData),Vt()})},xK=e=>{const t=e.content.split("/"),r=t[t.length-1];return ok(e.content,r),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},ak=e=>{const t=O.sceneManager.sceneData.currentSentenceId;let r=t;O.sceneManager.sceneData.currentScene.sentenceList.forEach((n,i)=>{n.command===ke.label&&n.content===e&&i!==t&&(r=i)}),O.sceneManager.sceneData.currentSentenceId=r,setTimeout(Vt,1)},bK="_Choose_Main_cegqk_1",SK="_Choose_item_cegqk_13",wK="_Choose_item_disabled_cegqk_29",Nv={Choose_Main:bK,Choose_item:SK,Choose_item_disabled:wK},EK=""+new URL("page-flip-1-7df32409.mp3",import.meta.url).href,TK=""+new URL("switch-1-99b576bc.mp3",import.meta.url).href,sk="data:audio/mpeg;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU3LjE0LjEwMAAAAAAAAAAAAAAA//OAAAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAAHAAAGhgA/Pz8/Pz8/Pz8/Pz8/P19fX19fX19fX19fX19ff39/f39/f39/f39/f3+fn5+fn5+fn5+fn5+fn5+/v7+/v7+/v7+/v7+/v9/f39/f39/f39/f39/f//////////////////8AAAAATGF2YzU3LjE1AAAAAAAAAAAAAAAAJAAAAAAAAAAABoYV32R7AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zgGQAAAABpAAAAAAAAANIAAAAACADH/+QtN3NAAAKF6IiVEl7hE0Sv/+XsgGgCgQDQFAgGg3D+yBShQzd+K0qXyBQyRQUp3hEkUMGn/8oCBQ5KOIf+sPl3//+Xf/+GP//6w+EgFgk/nOfWhA4Q4ABxjnQhDhCD3pgIQLAARlkyZ8Ew+Ud1AgUOfy7/4OeGOUORPD//wwUd/KHP//+GPykMA445BCHBIYg4ZC4AyGP+PuWtgyRb6quwuJvp+v8wQwDAKoXYMnpC0w6gAc0HLf/84JkuwnkuN6ioaAAD3CpsVVFMAAFQBkWjRnE4hYMOnIaT5sXEGFHCyMLPhfcDTHTUmRcgnQMuCfCKHjcDRlTchxFTcEHsKGiBNQ6mLhLkNImWi8PkY6s3kUWgaJmjd1igSfFzk+gLLIOcMi4gXyupR9A20G/4zAhOJ/PDgGYKI4y4LMEEBYhnUz1lpozrmZk3//lsky4s+TB4ul8ny6YOV0FmRx0ElHlMbNWYOr///1uZFQ3IGRNBRmfWlRUYkeV8mVhC5j/+UOiwF4DdcGgB//zgmTqHCnhQS/NUAGcStp6X4JQAARBgQCDIwGbMjrzxBIRk8s4+IS7mMEYN4elXLheFicbuxm88zzzHaw/G//9DCJ+eYRf8WGFtZp9ydCUvPMKGf/57ZjPRjzHtq+3//+YZ2U8817jxbb1vcn/1yAPkAgGUJuPiliw1FHilYbAAkIkV4CdGauxnChrTd+JTOW4BTlAB55YoeqaxWm7Wv8xLqLOiiZLUixqapJF5JNAcoviEoN2gAwAUcLiN5Mk6i3TRU+ikk++6KKKTqSKyBsx//OCZFMVigU/GuzMAIuQEq5fwxACNMZGRPKvoqXbR0UbJP11I0t9J/SqSrRZ0lXoqetSTnWoto0kl26LJGJqizoJmtJSSNSWk7WdTpXUkiigbVor9K6lpKSrdFNi8gnstA65dQVWxkXlGyTGRiRt9gUkBwgAggllBkQbKigffEMUfzqlL+6Ruli5Bv+4lPf//////X/////o0Wte9XLYBs4JbHGkwql7GrPNPMusqAJDUPzthoURwGi5eZyu+VuecNrURSYBU/p8//81Vf+Znkn/84JkNA4gwTcvDYYmF1lmTbAzByQpycp3ROJPn025p4SQJoSeFQoViUUAoiJFRL3c8JRUNETudLFn0MtLDwrM4lUeOiJtiztbvBk6xyPrctYdEkBpA09q2Xn9/TmkZxYMuXBUW17I4clP/nKrXbW/C6FI5G0z11z31L9fvGqoAzY1X86WwYUHIdWCvLEwkeEq3kQ7iI8MPM/ssO/8OnlHsFW1nWeCvyzwVOtEvHuyqv/8hOYSETL//NtNaySXOSsAqIiRrkS82UvXUvppbobMbv/zgmQhC0HzBAAEwpKVEO4JYAjTIJ/y/0egY3vXWaZv65cpZm36G/mMUpdalcpStzalb1KXUoUBf8pXKyGM5Sv/TRRPKoUSQMYKTJfSwiUDeW+ZhhmIXNYfiyfSbiqFFLNEQaajFVnrO9YLTodKvET9Z0FcSgq6s6eIz3uLcFQmCxJY06W/g0Cri31AqGrq56EgaXxLPCUNdBZ5USrBUse3BqpNF93yP//yMyMDWEJGQ01////MjMv//I1kcjJrLf/stlzL55SkyyOX5q0cjVrL//OCZC4KtfrOGgAjbodYBawMAEQAYf//+Rk1qGRqygo5GRq1sP/sln//cyNWCg0cj//ZZZZKh+asCHP8lAL////9n/////////GMYm3raaWKige/+sW+LesVTEFNRTMuOTkuNaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqo=",CK=""+new URL("dialog-d5b91235.mp3",import.meta.url).href,uk="data:audio/mpeg;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjIzLjEwMQAAAAAAAAAAAAAA//OAAAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAAHAAAGhgA/Pz8/Pz8/Pz8/Pz8/P19fX19fX19fX19fX19ff39/f39/f39/f39/f3+fn5+fn5+fn5+fn5+fn5+/v7+/v7+/v7+/v7+/v9/f39/f39/f39/f39/f//////////////////8AAAAATGF2YzU4LjQwAAAAAAAAAAAAAAAAJAL7AAAAAAAABobgvJxkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zgGQADLH/PRigiACM0AZ+XUAQAoAVYA9AY3IAASAgeRjeQMhP0O/nec/1cn+Qnv/8n+RuhGUhPoQDPISc6HP1Oec7+pwAROeQikI3IT////z+p3Q56VOd/nOc5JzyAAhQAAI053QDFnoQjKACGvoQ7yThzoBgZ8ADMJQURtuNAkMH4P4P+XOZD4f5d/D/64f/3co7/8H8u/wQ5R3/+sPiN8TvB95SDgYT/yjgQf+mpbd5dJrdLkpewIOA5GsDQUQZnZzSB6Q1U50Guqy9OaH/84JkIg/hbXkux6gBEfpLBx+SKAZQvxWLwbxAAoJRbMJjWBoPcgIzjpzzz2clFsxj0ITlVELLXdjzyg8Q3UoM0PPct+QCw/6D5KMrNmLdXOUnPRjXJ3nMYVFVfnfdzf//q//MR+Q/8uwB0uyB/lVHlY6YhEIGR4cHYHAcAZwSQAJAcAocdAxoAMh6L1HV969TxECi7iHlYn7jW//an//+JXU5/9v4l//6EM3f83/41j3///+ozd63/9C2p2W2W22i0Mq2OVytAvxB06nWCVQIZP/zgmQXD4W5ey/HqAEQUkbOR4koAmYRklcoUe+Yd1AuC8AHmsVSoIxFCwPh6RI8ajdB8807yw/JxoLbsai/djzjScCv+Q/lARCSFyRC8hIFYZkF06Dv//MLs5zV+edqzv6krdvP9V/yO3p66H//n73UnMetFzzx4P/MNxBOVut0AFwIAARCgysYSXL+VO2TXhMWBADVCKKhQmjLmX/////0/P+rf7f///29++FO9LfYWYp//Z9n/yHlg30VsPil34MMSQVrYqfLAYVacpCtK1Oq//OCZBUPGaFC3+e0AA8ZVoZdyxAA2az68kOa28sO3puYoqNkUTUxnD6CKnSNlGTJJositaK2TdJSb2NWSX/SSScyDlAnQ6myTv/1X0aJePGZqjnT1FL6v9SRkXW/dVaKP6VaKLOv//+r//X/ZzF06dSFLuv/1B0aZUKwhImgCMAB2aHaUe7x55QPP/rp3zyZZf/VkdS3RFZ3m/9H//iSCn/1Qaev/0CVH3+oO1P///1t+j//9KoPL7QDcAaC4x+83dEEEvXL3vljkRVf5ZqiVpT/84JkGw5BSSx+MMpOEjoual7AxBzqOG5mzBJL6c7URxGtROS/Zu8vMwc2/naKcgTgLi5R79f/ZSUVjWOSaa1aHK5xM/apQnJHJUuTbXQ5VN09HRzSUNfirDtAVBYCwdfpJmYrjDVue/9pJZFMiSvSUMuMAg40uvlBXQECFUh3VKcOGoUBJAurXLsY3+xpv///1aZAwAP///yghpkdW/5qt8OMEMKKg7/pDn///h1/Ues6P/xLEaAkoyibeSeC8E+AuhymiEos8tLHJNRoThxKnP/zgmQcDD0TFAk8xToRuh4sCGgPKooy1Y8s/q2X/ZH//6tqJAEEQwRKxjI9y1KWWqPDw8awiKqQPPob/pRUDwAioCEtX9R7/9eGlncrLPLBVgKmRZ+GpD/tqEogdIXwLlNkUnUxiamSS0W/ooqUlrot//zUCIHRc05Zrqaabod86PDZv/+b/UamAIGjTP+W/879s9liLSrmCVxXgq7xL+RKoQZ+UAAwBYQh4Rig2ZaVmytcNUuiO5/zP8jP1/+VMy/1RygyCgEMDDLv4CCZF3/S//OCZC8JaK7qfiQiTgxILdAAYYYEEhVLrP///S1HoCosaCoCCYZrZUSBkQDwESH/WkJSAZjByJI0oE4Z/////4FCQeBkVZ/xX/zIsRd/6hf7X//4qSfqwEEiLv1ciEyISQKqTEFNRTMuMTAwqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqo=";var lk={exports:{}},ck={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -56,7 +56,7 @@ Add a component higher in the tree to provide a loading * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Va=$;function zY(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var HY=typeof Object.is=="function"?Object.is:zY,VY=Va.useState,WY=Va.useEffect,qY=Va.useLayoutEffect,XY=Va.useDebugValue;function YY(e,t){var r=t(),n=VY({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return qY(function(){i.value=r,i.getSnapshot=t,av(i)&&o({inst:i})},[e,r,t]),WY(function(){return av(i)&&o({inst:i}),e(function(){av(i)&&o({inst:i})})},[e]),XY(r),r}function av(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!HY(e,r)}catch{return!0}}function KY(e,t){return t()}var ZY=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?KY:YY;w2.useSyncExternalStore=Va.useSyncExternalStore!==void 0?Va.useSyncExternalStore:ZY;S2.exports=w2;var QY=S2.exports,E2={exports:{}},T2={};/** + */var os=$;function OK(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var AK=typeof Object.is=="function"?Object.is:OK,PK=os.useState,kK=os.useEffect,IK=os.useLayoutEffect,RK=os.useDebugValue;function NK(e,t){var r=t(),n=PK({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return IK(function(){i.value=r,i.getSnapshot=t,Lv(i)&&o({inst:i})},[e,r,t]),kK(function(){return Lv(i)&&o({inst:i}),e(function(){Lv(i)&&o({inst:i})})},[e]),RK(r),r}function Lv(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!AK(e,r)}catch{return!0}}function LK(e,t){return t()}var MK=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?LK:NK;ck.useSyncExternalStore=os.useSyncExternalStore!==void 0?os.useSyncExternalStore:MK;lk.exports=ck;var FK=lk.exports,fk={exports:{}},hk={};/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -64,14 +64,14 @@ Add a component higher in the tree to provide a loading * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Yh=$,JY=QY;function eK(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tK=typeof Object.is=="function"?Object.is:eK,rK=JY.useSyncExternalStore,nK=Yh.useRef,iK=Yh.useEffect,oK=Yh.useMemo,aK=Yh.useDebugValue;T2.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var o=nK(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=oK(function(){function u(d){if(!l){if(l=!0,c=d,d=n(d),i!==void 0&&a.hasValue){var v=a.value;if(i(v,d))return f=v}return f=d}if(v=f,tK(c,d))return v;var g=n(d);return i!==void 0&&i(v,g)?v:(c=d,f=g)}var l=!1,c,f,h=r===void 0?null:r;return[function(){return u(t())},h===null?void 0:function(){return u(h())}]},[t,r,n,i]);var s=rK(e,o[0],o[1]);return iK(function(){a.hasValue=!0,a.value=s},[s]),aK(s),s};E2.exports=T2;var sK=E2.exports;function uK(e){e()}let C2=uK;const lK=e=>C2=e,cK=()=>C2,iE=Symbol.for("react-redux-context"),oE=typeof globalThis<"u"?globalThis:{};function fK(){var e;if(!$.createContext)return{};const t=(e=oE[iE])!=null?e:oE[iE]=new Map;let r=t.get($.createContext);return r||(r=$.createContext(null),t.set($.createContext,r)),r}const Xi=fK();function B0(e=Xi){return function(){return $.useContext(e)}}const O2=B0(),hK=()=>{throw new Error("uSES not initialized!")};let A2=hK;const dK=e=>{A2=e},pK=(e,t)=>e===t;function vK(e=Xi){const t=e===Xi?O2:B0(e);return function(n,i={}){const{equalityFn:o=pK,stabilityCheck:a=void 0,noopCheck:s=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:u,subscription:l,getServerState:c,stabilityCheck:f,noopCheck:h}=t();$.useRef(!0);const d=$.useCallback({[n.name](g){return n(g)}}[n.name],[n,f,a]),v=A2(l.addNestedSub,u.getState,c||u.getState,d,o);return $.useDebugValue(v),v}}const Se=vK();function mK(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}var P2={exports:{}},We={};/** @license React v16.13.1 + */var yd=$,DK=FK;function BK(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jK=typeof Object.is=="function"?Object.is:BK,$K=DK.useSyncExternalStore,UK=yd.useRef,GK=yd.useEffect,zK=yd.useMemo,HK=yd.useDebugValue;hk.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var o=UK(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=zK(function(){function u(d){if(!l){if(l=!0,c=d,d=n(d),i!==void 0&&a.hasValue){var v=a.value;if(i(v,d))return f=v}return f=d}if(v=f,jK(c,d))return v;var g=n(d);return i!==void 0&&i(v,g)?v:(c=d,f=g)}var l=!1,c,f,h=r===void 0?null:r;return[function(){return u(t())},h===null?void 0:function(){return u(h())}]},[t,r,n,i]);var s=$K(e,o[0],o[1]);return GK(function(){a.hasValue=!0,a.value=s},[s]),HK(s),s};fk.exports=hk;var VK=fk.exports;function WK(e){e()}let dk=WK;const qK=e=>dk=e,XK=()=>dk,BE=Symbol.for("react-redux-context"),jE=typeof globalThis<"u"?globalThis:{};function YK(){var e;if(!$.createContext)return{};const t=(e=jE[BE])!=null?e:jE[BE]=new Map;let r=t.get($.createContext);return r||(r=$.createContext(null),t.set($.createContext,r)),r}const oo=YK();function mx(e=oo){return function(){return $.useContext(e)}}const pk=mx(),KK=()=>{throw new Error("uSES not initialized!")};let vk=KK;const ZK=e=>{vk=e},QK=(e,t)=>e===t;function JK(e=oo){const t=e===oo?pk:mx(e);return function(n,i={}){const{equalityFn:o=QK,stabilityCheck:a=void 0,noopCheck:s=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:u,subscription:l,getServerState:c,stabilityCheck:f,noopCheck:h}=t();$.useRef(!0);const d=$.useCallback({[n.name](g){return n(g)}}[n.name],[n,f,a]),v=vk(l.addNestedSub,u.getState,c||u.getState,d,o);return $.useDebugValue(v),v}}const ye=JK();function eZ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}var mk={exports:{}},Ke={};/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var $t=typeof Symbol=="function"&&Symbol.for,j0=$t?Symbol.for("react.element"):60103,$0=$t?Symbol.for("react.portal"):60106,Kh=$t?Symbol.for("react.fragment"):60107,Zh=$t?Symbol.for("react.strict_mode"):60108,Qh=$t?Symbol.for("react.profiler"):60114,Jh=$t?Symbol.for("react.provider"):60109,ed=$t?Symbol.for("react.context"):60110,U0=$t?Symbol.for("react.async_mode"):60111,td=$t?Symbol.for("react.concurrent_mode"):60111,rd=$t?Symbol.for("react.forward_ref"):60112,nd=$t?Symbol.for("react.suspense"):60113,gK=$t?Symbol.for("react.suspense_list"):60120,id=$t?Symbol.for("react.memo"):60115,od=$t?Symbol.for("react.lazy"):60116,yK=$t?Symbol.for("react.block"):60121,_K=$t?Symbol.for("react.fundamental"):60117,xK=$t?Symbol.for("react.responder"):60118,bK=$t?Symbol.for("react.scope"):60119;function jr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case j0:switch(e=e.type,e){case U0:case td:case Kh:case Qh:case Zh:case nd:return e;default:switch(e=e&&e.$$typeof,e){case ed:case rd:case od:case id:case Jh:return e;default:return t}}case $0:return t}}}function k2(e){return jr(e)===td}We.AsyncMode=U0;We.ConcurrentMode=td;We.ContextConsumer=ed;We.ContextProvider=Jh;We.Element=j0;We.ForwardRef=rd;We.Fragment=Kh;We.Lazy=od;We.Memo=id;We.Portal=$0;We.Profiler=Qh;We.StrictMode=Zh;We.Suspense=nd;We.isAsyncMode=function(e){return k2(e)||jr(e)===U0};We.isConcurrentMode=k2;We.isContextConsumer=function(e){return jr(e)===ed};We.isContextProvider=function(e){return jr(e)===Jh};We.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===j0};We.isForwardRef=function(e){return jr(e)===rd};We.isFragment=function(e){return jr(e)===Kh};We.isLazy=function(e){return jr(e)===od};We.isMemo=function(e){return jr(e)===id};We.isPortal=function(e){return jr(e)===$0};We.isProfiler=function(e){return jr(e)===Qh};We.isStrictMode=function(e){return jr(e)===Zh};We.isSuspense=function(e){return jr(e)===nd};We.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Kh||e===td||e===Qh||e===Zh||e===nd||e===gK||typeof e=="object"&&e!==null&&(e.$$typeof===od||e.$$typeof===id||e.$$typeof===Jh||e.$$typeof===ed||e.$$typeof===rd||e.$$typeof===_K||e.$$typeof===xK||e.$$typeof===bK||e.$$typeof===yK)};We.typeOf=jr;P2.exports=We;var SK=P2.exports,I2=SK,wK={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},EK={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},R2={};R2[I2.ForwardRef]=wK;R2[I2.Memo]=EK;var Xe={};/** + */var zt=typeof Symbol=="function"&&Symbol.for,gx=zt?Symbol.for("react.element"):60103,yx=zt?Symbol.for("react.portal"):60106,_d=zt?Symbol.for("react.fragment"):60107,xd=zt?Symbol.for("react.strict_mode"):60108,bd=zt?Symbol.for("react.profiler"):60114,Sd=zt?Symbol.for("react.provider"):60109,wd=zt?Symbol.for("react.context"):60110,_x=zt?Symbol.for("react.async_mode"):60111,Ed=zt?Symbol.for("react.concurrent_mode"):60111,Td=zt?Symbol.for("react.forward_ref"):60112,Cd=zt?Symbol.for("react.suspense"):60113,tZ=zt?Symbol.for("react.suspense_list"):60120,Od=zt?Symbol.for("react.memo"):60115,Ad=zt?Symbol.for("react.lazy"):60116,rZ=zt?Symbol.for("react.block"):60121,nZ=zt?Symbol.for("react.fundamental"):60117,iZ=zt?Symbol.for("react.responder"):60118,oZ=zt?Symbol.for("react.scope"):60119;function Wr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case gx:switch(e=e.type,e){case _x:case Ed:case _d:case bd:case xd:case Cd:return e;default:switch(e=e&&e.$$typeof,e){case wd:case Td:case Ad:case Od:case Sd:return e;default:return t}}case yx:return t}}}function gk(e){return Wr(e)===Ed}Ke.AsyncMode=_x;Ke.ConcurrentMode=Ed;Ke.ContextConsumer=wd;Ke.ContextProvider=Sd;Ke.Element=gx;Ke.ForwardRef=Td;Ke.Fragment=_d;Ke.Lazy=Ad;Ke.Memo=Od;Ke.Portal=yx;Ke.Profiler=bd;Ke.StrictMode=xd;Ke.Suspense=Cd;Ke.isAsyncMode=function(e){return gk(e)||Wr(e)===_x};Ke.isConcurrentMode=gk;Ke.isContextConsumer=function(e){return Wr(e)===wd};Ke.isContextProvider=function(e){return Wr(e)===Sd};Ke.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===gx};Ke.isForwardRef=function(e){return Wr(e)===Td};Ke.isFragment=function(e){return Wr(e)===_d};Ke.isLazy=function(e){return Wr(e)===Ad};Ke.isMemo=function(e){return Wr(e)===Od};Ke.isPortal=function(e){return Wr(e)===yx};Ke.isProfiler=function(e){return Wr(e)===bd};Ke.isStrictMode=function(e){return Wr(e)===xd};Ke.isSuspense=function(e){return Wr(e)===Cd};Ke.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===_d||e===Ed||e===bd||e===xd||e===Cd||e===tZ||typeof e=="object"&&e!==null&&(e.$$typeof===Ad||e.$$typeof===Od||e.$$typeof===Sd||e.$$typeof===wd||e.$$typeof===Td||e.$$typeof===nZ||e.$$typeof===iZ||e.$$typeof===oZ||e.$$typeof===rZ)};Ke.typeOf=Wr;mk.exports=Ke;var aZ=mk.exports,yk=aZ,sZ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},uZ={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},_k={};_k[yk.ForwardRef]=sZ;_k[yk.Memo]=uZ;var Qe={};/** * @license React * react-is.production.min.js * @@ -79,60 +79,62 @@ Add a component higher in the tree to provide a loading * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var G0=Symbol.for("react.element"),z0=Symbol.for("react.portal"),ad=Symbol.for("react.fragment"),sd=Symbol.for("react.strict_mode"),ud=Symbol.for("react.profiler"),ld=Symbol.for("react.provider"),cd=Symbol.for("react.context"),TK=Symbol.for("react.server_context"),fd=Symbol.for("react.forward_ref"),hd=Symbol.for("react.suspense"),dd=Symbol.for("react.suspense_list"),pd=Symbol.for("react.memo"),vd=Symbol.for("react.lazy"),CK=Symbol.for("react.offscreen"),N2;N2=Symbol.for("react.module.reference");function rn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case G0:switch(e=e.type,e){case ad:case ud:case sd:case hd:case dd:return e;default:switch(e=e&&e.$$typeof,e){case TK:case cd:case fd:case vd:case pd:case ld:return e;default:return t}}case z0:return t}}}Xe.ContextConsumer=cd;Xe.ContextProvider=ld;Xe.Element=G0;Xe.ForwardRef=fd;Xe.Fragment=ad;Xe.Lazy=vd;Xe.Memo=pd;Xe.Portal=z0;Xe.Profiler=ud;Xe.StrictMode=sd;Xe.Suspense=hd;Xe.SuspenseList=dd;Xe.isAsyncMode=function(){return!1};Xe.isConcurrentMode=function(){return!1};Xe.isContextConsumer=function(e){return rn(e)===cd};Xe.isContextProvider=function(e){return rn(e)===ld};Xe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===G0};Xe.isForwardRef=function(e){return rn(e)===fd};Xe.isFragment=function(e){return rn(e)===ad};Xe.isLazy=function(e){return rn(e)===vd};Xe.isMemo=function(e){return rn(e)===pd};Xe.isPortal=function(e){return rn(e)===z0};Xe.isProfiler=function(e){return rn(e)===ud};Xe.isStrictMode=function(e){return rn(e)===sd};Xe.isSuspense=function(e){return rn(e)===hd};Xe.isSuspenseList=function(e){return rn(e)===dd};Xe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ad||e===ud||e===sd||e===hd||e===dd||e===CK||typeof e=="object"&&e!==null&&(e.$$typeof===vd||e.$$typeof===pd||e.$$typeof===ld||e.$$typeof===cd||e.$$typeof===fd||e.$$typeof===N2||e.getModuleId!==void 0)};Xe.typeOf=rn;function OK(){const e=cK();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){let n=[],i=t;for(;i;)n.push(i),i=i.next;return n},subscribe(n){let i=!0,o=r={callback:n,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){!i||t===null||(i=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const aE={notify(){},get:()=>[]};function AK(e,t){let r,n=aE,i=0,o=!1;function a(g){c();const p=n.subscribe(g);let m=!1;return()=>{m||(m=!0,p(),f())}}function s(){n.notify()}function u(){v.onStateChange&&v.onStateChange()}function l(){return o}function c(){i++,r||(r=t?t.addNestedSub(u):e.subscribe(u),n=OK())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=aE)}function h(){o||(o=!0,c())}function d(){o&&(o=!1,f())}const v={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:u,isSubscribed:l,trySubscribe:h,tryUnsubscribe:d,getListeners:()=>n};return v}const PK=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",kK=PK?$.useLayoutEffect:$.useEffect;function IK({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",noopCheck:o="once"}){const a=$.useMemo(()=>{const l=AK(e);return{store:e,subscription:l,getServerState:n?()=>n:void 0,stabilityCheck:i,noopCheck:o}},[e,n,i,o]),s=$.useMemo(()=>e.getState(),[e]);kK(()=>{const{subscription:l}=a;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),s!==e.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[a,s]);const u=t||Xi;return $.createElement(u.Provider,{value:a},r)}function L2(e=Xi){const t=e===Xi?O2:B0(e);return function(){const{store:n}=t();return n}}const RK=L2();function NK(e=Xi){const t=e===Xi?RK:L2(e);return function(){return t().dispatch}}const or=NK();dK(sK.useSyncExternalStoreWithSelector);lK(hA.unstable_batchedUpdates);const vr=()=>{const e=or();return{playSeEnter:()=>{e(Te({key:"uiSe",value:x2}))},playSeClick:()=>{e(Te({key:"uiSe",value:b2}))},playSePageChange:()=>{e(Te({key:"uiSe",value:$Y}))},playSeDialogOpen:()=>{e(Te({key:"uiSe",value:GY}))},playSeSwitch:()=>{e(Te({key:"uiSe",value:UY}))}}},H0=()=>({playSeEnter:()=>{j.dispatch(Te({key:"uiSe",value:x2}))},playSeClick:()=>{j.dispatch(Te({key:"uiSe",value:b2}))}});class V0{constructor(t,r){le(this,"text");le(this,"jump");le(this,"jumpToScene");le(this,"showCondition");le(this,"enableCondition");this.text=t,this.jump=r,this.jumpToScene=r.match(/\./)!==null}static parse(t){const r=t.split("->"),n=r.length>1?r[0]:null,o=(r.length>1?r[1]:r[0]).split(":"),a=new V0(o[0],o[1]);if(n!==null){const s=n.match(/\((.*)\)/);s&&(a.showCondition=s[1]);const u=n.match(/\[(.*)\]/);u&&(a.enableCondition=u[1])}return a}}const LK=e=>{const r=e.content.split("|").map(u=>V0.parse(u)),i=j.getState().userData.optionData.textboxFont===Ln.song?'"思源宋体", serif':'"WebgalUI", serif',{playSeEnter:o,playSeClick:a}=H0(),s=u=>u.filter((l,c)=>hg(l.showCondition)).map((l,c)=>{const f=hg(l.enableCondition),h=f?ov.Choose_item:ov.Choose_item_disabled,d=f?()=>{a(),l.jumpToScene?y2(l.jump,l.text):_2(l.jump),O.gameplay.performController.unmountPerform("choose")}:()=>{};return S.jsx("div",{className:h,style:{fontFamily:i},onClick:d,onMouseEnter:o,children:l.text},l.jump+c)});return Mn.render(S.jsx("div",{className:ov.Choose_Main,children:s(r)}),document.getElementById("chooseContainer")),{performName:"choose",duration:1e3*60*60*24,isHoldOn:!1,stopFunction:()=>{Mn.render(S.jsx("div",{}),document.getElementById("chooseContainer"))},blockingNext:()=>!0,blockingAuto:()=>!0,stopTimeout:void 0}},W0=(e,t=!0)=>{e&&O.backlogManager.makeBacklogEmpty(),t&&O.sceneManager.resetScene(),O.gameplay.performController.removeAllPerform(),O.gameplay.resetGamePlay();const r=Et(YA),n=j.getState().stage.GameVar;j.dispatch(kh(r)),t||j.dispatch(Te({key:"GameVar",value:n}))},MK=e=>{W0(!0);const t=j.dispatch,r=Nr("start.txt",Rr.scene);return Vn(r).then(n=>{O.sceneManager.sceneData.currentScene=Wn(n,"start.txt",r)}),t(Me({component:"showTitle",visibility:!0})),rx(j.getState().GUI.titleBgm),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},FK=e=>{let t=e.content,r="",n="default";e.args.forEach(a=>{a.key==="unlockname"&&(r=a.value.toString()),a.key==="series"&&(n=a.value.toString())});const i=Pe(e,"enter"),o=Pe(e,"volume");return r!==""&&j.dispatch(pP({name:r,url:t,series:n})),rx(t,typeof i=="number"&&i>=0?i:0,typeof o=="number"&&o>=0&&o<=100?o:100),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},DK=e=>{const t=j.getState().userData,r=t.optionData.volumeMain,n=r*.01*t.optionData.vocalVolume*.01,i=r*.01*t.optionData.bgmVolume*.01,o=tx();let a=Pe(e,"skipOff"),s=!1;a&&(s=!0),Mn.render(S.jsx("div",{className:wn.videoContainer,children:S.jsx("video",{className:wn.fullScreen_video,id:"playVideoElement",src:e.content,autoPlay:!0})}),document.getElementById("videoContainer"));let u=!1;return{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>s,blockingAuto:()=>!0,stopTimeout:void 0,arrangePerformPromise:new Promise(l=>{setTimeout(()=>{let c=document.getElementById("playVideoElement");if(c!==null){c.currentTime=0,c.volume=i;const f=()=>{for(const v of O.gameplay.performController.performList)v.performName===o&&(u=!0,v.stopFunction(),O.gameplay.performController.unmountPerform(v.performName),Ut())},h=()=>{f()};O.eventBus.on("fullscreen-dbclick",()=>{h()});const d={performName:o,duration:1e3*60*60,isOver:!1,isHoldOn:!1,stopFunction:()=>{c.oncanplay=()=>{};const v=document.getElementById("currentBgm");v&&(v.volume=i.toString());const g=document.getElementById("currentVocal");v&&(g.volume=n.toString()),Mn.render(S.jsx("div",{}),document.getElementById("videoContainer"))},blockingNext:()=>s,blockingAuto:()=>!u,stopTimeout:void 0,goNextWhenOver:!0};l(d),c.oncanplay=()=>{const p=document.getElementById("currentBgm");p&&(p.volume=0 .toString());const m=document.getElementById("currentVocal");p&&(m.volume=0 .toString()),c==null||c.play()},c.onended=()=>{f()}}},1)})}};function BK(e,t){const r=O.gameplay.pixiStage.getStageObjByKey(e);function n(){r&&(r.pixiContainer.alpha=0,r.pixiContainer.blur=0)}function i(){r&&(r.pixiContainer.alpha=1,r.pixiContainer.blur=5)}function o(a){if(r){const s=r.pixiContainer,u=O.gameplay.pixiStage.frameDuration,l=t/u*a,c=1/l,f=5/l;s.alpha<1&&(s.alpha+=c),s.blur<5&&(s.blur+=f)}}return{setStartState:n,setEndState:i,tickerFunc:o}}const jK=[{name:"universalSoftIn",animationGenerateFunc:wP},{name:"universalSoftOff",animationGenerateFunc:EP},{name:"testblur",animationGenerateFunc:BK}],$K=e=>{var s,u;j.getState().stage.currentDialogKey;const t=e.content,r=Pe(e,"duration")??0,n=Pe(e,"target")??0,i=`${n}-${t}-${r}`,o=UK(t);let a=()=>{};if(o){ne.debug(`动画${t}作用在${n}`,r);const l=o(n,r);(s=O.gameplay.pixiStage)==null||s.stopPresetAnimationOnTarget(n),(u=O.gameplay.pixiStage)==null||u.registerAnimation(l,i,n),a=()=>{var c;j.getState().stage.currentDialogKey,(c=O.gameplay.pixiStage)==null||c.removeAnimationWithSetEffects(i)}}return{performName:i,duration:r,isHoldOn:!1,stopFunction:a,blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function UK(e){const t=jK.find(r=>r.name===e);return ne.debug("装载动画",t),t?t.animationGenerateFunc:null}const GK=e=>({performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),zK=e=>(O.gameplay.performController.performList.forEach(t=>{if(t.performName.match(/PixiPerform/)){ne.warn("pixi 被脚本重新初始化",t.performName);for(let r=0;r{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),HK="modulepreload",VK=function(e,t){return new URL(e,t).href},sE={},WK=function(t,r,n){if(!r||r.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(r.map(o=>{if(o=VK(o,n),o in sE)return;sE[o]=!0;const a=o.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!n)for(let c=i.length-1;c>=0;c--){const f=i[c];if(f.href===o&&(!a||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${s}`))return;const l=document.createElement("link");if(l.rel=a?"stylesheet":HK,a||(l.as="script",l.crossOrigin=""),l.href=o,document.head.appendChild(l),a)return new Promise((c,f)=>{l.addEventListener("load",c),l.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o})},M2=new Map;function qK(e){return e?typeof e=="string"?e:e():null}function F2(e){const t=qK(e);return t||(ne.error("Get name of perform failed. There no name of the perform."),"")}function Fme(e,t){if(!t||typeof t!="function")throw new Error(`"${e}" is not a callback.`);M2.set(F2(e),t)}function XK(e,t=[]){const r=M2.get(F2(e));if(!r||!(r instanceof Function))throw ne.error(`Can't call the perform named "${e}"`),new Error(`"${e}" don't have the pixiPerform callback.`);return r(...t)}WK(()=>import("./initRegister-e4655b9f.js"),[],import.meta.url);const YK=e=>{const t="PixiPerform"+e.content;O.gameplay.performController.performList.forEach(o=>{if(o.performName===t)return{performName:"none",duration:0,isOver:!1,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}});const r=XK(e.content),{container:n,tickerKey:i}=r;return{performName:t,duration:0,isHoldOn:!0,stopFunction:()=>{var o,a;ne.warn("现在正在卸载pixi演出"),n.destroy({texture:!0,baseTexture:!0}),(o=O.gameplay.pixiStage)==null||o.effectsContainer.removeChild(n),(a=O.gameplay.pixiStage)==null||a.removeAnimation(i)},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}},KK=e=>({performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),ZK=e=>(_2(e.content),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0});var q0={},Ju={document:{}},D2=Object.prototype.hasOwnProperty,B2=function(e){return md(e)?e.toLowerCase():e},Tu=Array.isArray,QK=function(e){return md(e)?e.replace(/[A-Z]/g,function(t){return String.fromCharCode(t.charCodeAt(0)|32)}):e};"I".toLowerCase()!=="i"&&(B2=QK);var JK,X0=Object.prototype.toString,j2=Object.getPrototypeOf,sv=H2("ng");Ju.angular||(Ju.angular={});Ju.document.documentMode;function eZ(e){if(e==null||Z0(e))return!1;if(Tu(e)||md(e)||JK)return!0;var t="length"in Object(e)&&e.length;return K0(t)&&(t>=0&&(t-1 in e||e instanceof Array)||typeof e.item=="function")}function ct(e,t,r){var n,i;if(e)if(G2(e))for(n in e)n!=="prototype"&&n!=="length"&&n!=="name"&&e.hasOwnProperty(n)&&t.call(r,e[n],n,e);else if(Tu(e)||eZ(e)){var o=typeof e!="object";for(n=0,i=e.length;n"u"}function xa(e){return typeof e<"u"}function $2(e){return e!==null&&typeof e=="object"}function U2(e){return e!==null&&typeof e=="object"&&!j2(e)}function md(e){return typeof e=="string"}function K0(e){return typeof e=="number"}function G2(e){return typeof e=="function"}function Z0(e){return e&&e.window===e}function z2(e){return e&&e.$evalAsync&&e.$watch}var nZ=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/;function iZ(e){return e&&K0(e.length)&&nZ.test(X0.call(e))}function oZ(e){return X0.call(e)==="[object ArrayBuffer]"}function aZ(e,t){var r=[],n=[];if(t){if(iZ(t)||oZ(t))throw sv("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e===t)throw sv("cpi","Can't copy! Source and destination are identical.");return Tu(t)?t.length=0:ct(t,function(s,u){u!=="$$hashKey"&&delete t[u]}),r.push(e),n.push(t),i(e,t)}return o(e);function i(s,u){var l=u.$$hashKey,c;if(Tu(s))for(var f=0,h=s.length;f=0)return"...";t.push(n)}return n})}function uE(e){return typeof e=="function"?e.toString().replace(/ \{[\s\S]*$/,""):rZ(e)?"undefined":typeof e!="string"?cZ(e):e}function H2(e,t){return t=t||Error,function(){var r=2,n=arguments,i=n[0],o="["+(e?e+":":"")+i+"] ",a=n[1],s,u;for(o+=a.replace(/\{\d+\}/g,function(l){var c=+l.slice(1,-1),f=c+r;return f <= >= && || ! = |".split(" "),function(e){Kc[e]=!0});var fZ={n:` -`,f:"\f",r:"\r",t:" ",v:"\v","'":"'",'"':'"'},cg=function(t){this.options=t};cg.prototype={constructor:cg,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index=55296&&r<=56319&&n>=56320&&n<=57343?e+t:e},isExpOperator:function(e){return e==="-"||e==="+"||this.isNumber(e)},throwError:function(e,t,r){r=r||this.index;var n=xa(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,r)+"]":" "+r;throw ba("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,n,this.text)},readNumber:function(){for(var e="",t=this.index;this.index0&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:G.Program,body:e}},expressionStatement:function(){return{type:G.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();if(this.expect("=")){if(!X2(e))throw ba("lval","Trying to assign a value to a non l-value");e={type:G.AssignmentExpression,left:e,right:this.assignment(),operator:"="}}return e},ternary:function(){var e=this.logicalOR(),t,r;return this.expect("?")&&(t=this.expression(),this.consume(":"))?(r=this.expression(),{type:G.ConditionalExpression,test:e,alternate:t,consequent:r}):e},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:G.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:G.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e=this.relational(),t;t=this.expect("==","!=","===","!==");)e={type:G.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var e=this.additive(),t;t=this.expect("<",">","<=",">=");)e={type:G.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var e=this.multiplicative(),t;t=this.expect("+","-");)e={type:G.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var e=this.unary(),t;t=this.expect("*","/","%");)e={type:G.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:G.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e;this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=aZ(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:G.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());for(var t;t=this.expect("(","[",".");)t.text==="("?(e={type:G.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):t.text==="["?(e={type:G.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):t.text==="."?e={type:G.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],r={type:G.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return r},parseArguments:function(){var e=[];if(this.peekToken().text!==")")do e.push(this.filterChain());while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:G.Identifier,name:e.text}},constant:function(){return{type:G.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if(this.peekToken().text!=="]")do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:G.ArrayExpression,elements:e}},object:function(){var e=[],t;if(this.peekToken().text!=="}")do{if(this.peek("}"))break;t={type:G.Property,kind:"init"},this.peek().constant?(t.key=this.constant(),t.computed=!1,this.consume(":"),t.value=this.expression()):this.peek().identifier?(t.key=this.identifier(),t.computed=!1,this.peek(":")?(this.consume(":"),t.value=this.expression()):t.value=t.key):this.peek("[")?(this.consume("["),t.key=this.expression(),this.consume("]"),t.computed=!0,this.consume(":"),t.value=this.expression()):this.throwError("invalid key",this.peek()),e.push(t)}while(this.expect(","));return this.consume("}"),{type:G.ObjectExpression,properties:e}},throwError:function(e,t){throw ba("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(this.tokens.length===0)throw ba("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(this.tokens.length===0)throw ba("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,r,n){return this.peekAhead(0,e,t,r,n)},peekAhead:function(e,t,r,n,i){if(this.tokens.length>e){var o=this.tokens[e],a=o.text;if(a===t||a===r||a===n||a===i||!t&&!r&&!n&&!i)return o}return!1},expect:function(e,t,r,n){var i=this.peek(e,t,r,n);return i?(this.tokens.shift(),i):!1},selfReferential:{this:{type:G.ThisExpression},$locals:{type:G.LocalsExpression}}};function hZ(e,t){return typeof e<"u"?e:t}function W2(e,t){return typeof e>"u"?t:typeof t>"u"?e:e+t}function dZ(e,t){var r=e(t);if(!r)throw new Error("Filter '"+t+"' is not defined");return!r.$stateful}function Rt(e,t){var r,n,i;switch(e.type){case G.Program:r=!0,ct(e.body,function(o){Rt(o.expression,t),r=r&&o.expression.constant}),e.constant=r;break;case G.Literal:e.constant=!0,e.toWatch=[];break;case G.UnaryExpression:Rt(e.argument,t),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case G.BinaryExpression:Rt(e.left,t),Rt(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case G.LogicalExpression:Rt(e.left,t),Rt(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case G.ConditionalExpression:Rt(e.test,t),Rt(e.alternate,t),Rt(e.consequent,t),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case G.Identifier:e.constant=!1,e.toWatch=[e];break;case G.MemberExpression:Rt(e.object,t),e.computed&&Rt(e.property,t),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=[e];break;case G.CallExpression:i=e.filter?dZ(t,e.callee.name):!1,r=i,n=[],ct(e.arguments,function(o){Rt(o,t),r=r&&o.constant,o.constant||n.push.apply(n,o.toWatch)}),e.constant=r,e.toWatch=i?n:[e];break;case G.AssignmentExpression:Rt(e.left,t),Rt(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case G.ArrayExpression:r=!0,n=[],ct(e.elements,function(o){Rt(o,t),r=r&&o.constant,o.constant||n.push.apply(n,o.toWatch)}),e.constant=r,e.toWatch=n;break;case G.ObjectExpression:r=!0,n=[],ct(e.properties,function(o){Rt(o.value,t),r=r&&o.value.constant&&!o.computed,o.value.constant||n.push.apply(n,o.value.toWatch)}),e.constant=r,e.toWatch=n;break;case G.ThisExpression:e.constant=!1,e.toWatch=[];break;case G.LocalsExpression:e.constant=!1,e.toWatch=[];break}}function q2(e){if(e.length===1){var t=e[0].expression,r=t.toWatch;return r.length!==1||r[0]!==t?r:void 0}}function X2(e){return e.type===G.Identifier||e.type===G.MemberExpression}function Y2(e){if(e.body.length===1&&X2(e.body[0].expression))return{type:G.AssignmentExpression,left:e.body[0].expression,right:{type:G.NGValueParameter},operator:"="}}function K2(e){return e.body.length===0||e.body.length===1&&(e.body[0].expression.type===G.Literal||e.body[0].expression.type===G.ArrayExpression||e.body[0].expression.type===G.ObjectExpression)}function Z2(e){return e.constant}function Q2(e,t){this.astBuilder=e,this.$filter=t}Q2.prototype={compile:function(e){var t=this,r=this.astBuilder.ast(e);this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},Rt(r,t.$filter);var n="",i;if(this.stage="assign",i=Y2(r)){this.state.computing="assign";var o=this.nextId();this.recurse(i,o),this.return_(o),n="fn.assign="+this.generateFunction("assign","s,v,l")}var a=q2(r.body);t.stage="inputs",ct(a,function(l,c){var f="fn"+c;t.state[f]={vars:[],body:[],own:{}},t.state.computing=f;var h=t.nextId();t.recurse(l,h),t.return_(h),t.state.inputs.push(f),l.watchId=c}),this.state.computing="fn",this.stage="main",this.recurse(r);var s='"'+this.USE+" "+this.STRICT+`"; -`+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+n+this.watchFns()+"return fn;",u=new Function("$filter","getStringValue","ifDefined","plus",s)(this.$filter,V2,hZ,W2);return this.state=this.stage=void 0,u.ast=r,u.literal=K2(r),u.constant=Z2(r),u},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,r=this;return ct(t,function(n){e.push("var "+n+"="+r.generateFunction(n,"s"))}),t.length&&e.push("fn.inputs=["+t.join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return ct(this.state.filters,function(r,n){e.push(r+"=$filter("+t.escape(n)+")")}),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,r,n,i,o){var a,s,u=this,l,c,f;if(n=n||Y0,!o&&xa(e.watchId)){t=t||this.nextId(),this.if_("i",this.lazyAssign(t,this.unsafeComputedMember("i",e.watchId)),this.lazyRecurse(e,t,r,n,i,!0));return}switch(e.type){case G.Program:ct(e.body,function(d,v){u.recurse(d.expression,void 0,void 0,function(g){s=g}),v!==e.body.length-1?u.current().body.push(s,";"):u.return_(s)});break;case G.Literal:c=this.escape(e.value),this.assign(t,c),n(t||c);break;case G.UnaryExpression:this.recurse(e.argument,void 0,void 0,function(d){s=d}),c=e.operator+"("+this.ifDefined(s,0)+")",this.assign(t,c),n(c);break;case G.BinaryExpression:this.recurse(e.left,void 0,void 0,function(d){a=d}),this.recurse(e.right,void 0,void 0,function(d){s=d}),e.operator==="+"?c=this.plus(a,s):e.operator==="-"?c=this.ifDefined(a,0)+e.operator+this.ifDefined(s,0):c="("+a+")"+e.operator+"("+s+")",this.assign(t,c),n(c);break;case G.LogicalExpression:t=t||this.nextId(),u.recurse(e.left,t),u.if_(e.operator==="&&"?t:u.not(t),u.lazyRecurse(e.right,t)),n(t);break;case G.ConditionalExpression:t=t||this.nextId(),u.recurse(e.test,t),u.if_(t,u.lazyRecurse(e.alternate,t),u.lazyRecurse(e.consequent,t)),n(t);break;case G.Identifier:t=t||this.nextId();var h=u.current().inAssignment;r&&(h?r.context=this.assign(this.nextId(),"s"):r.context=u.stage==="inputs"?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),r.computed=!1,r.name=e.name),u.if_(u.stage==="inputs"||u.not(u.getHasOwnProperty("l",e.name)),function(){u.if_(u.stage==="inputs"||u.and_("s",u.or_(u.isNull(u.nonComputedMember("s",e.name)),u.hasOwnProperty_("s",e.name))),function(){i&&i!==1&&u.if_(u.isNull(u.nonComputedMember("s",e.name)),u.lazyAssign(u.nonComputedMember("s",e.name),"{}")),u.assign(t,u.nonComputedMember("s",e.name))})},t&&u.lazyAssign(t,u.nonComputedMember("l",e.name))),n(t);break;case G.MemberExpression:a=r&&(r.context=this.nextId())||this.nextId(),t=t||this.nextId(),u.recurse(e.object,a,void 0,function(){var d=null,v=u.current().inAssignment;e.computed?(s=u.nextId(),v||u.state.computing==="assign"?d=u.unsafeComputedMember(a,s):d=u.computedMember(a,s)):(v||u.state.computing==="assign"?d=u.unsafeNonComputedMember(a,e.property.name):d=u.nonComputedMember(a,e.property.name),s=e.property.name),e.computed&&e.property.type===G.Literal&&u.recurse(e.property,s),u.if_(u.and_(u.notNull(a),u.or_(u.isNull(d),u.hasOwnProperty_(a,s,e.computed))),function(){e.computed?(e.property.type!==G.Literal&&u.recurse(e.property,s),i&&i!==1&&u.if_(u.not(d),u.lazyAssign(d,"{}")),u.assign(t,d),r&&(r.computed=!0,r.name=s)):(i&&i!==1&&u.if_(u.isNull(d),u.lazyAssign(d,"{}")),u.assign(t,d),r&&(r.computed=!1,r.name=e.property.name))},function(){u.assign(t,"undefined")}),n(t)},!!i);break;case G.CallExpression:t=t||this.nextId(),e.filter?(s=u.filter(e.callee.name),l=[],ct(e.arguments,function(d){var v=u.nextId();u.recurse(d,v),l.push(v)}),c=s+".call("+s+","+l.join(",")+")",u.assign(t,c),n(t)):(s=u.nextId(),a={},l=[],u.recurse(e.callee,s,a,function(){u.if_(u.notNull(s),function(){if(ct(e.arguments,function(v){u.recurse(v,e.constant?void 0:u.nextId(),void 0,function(g){l.push(g)})}),a.name){var d=u.member(a.context,a.name,a.computed);c="("+d+" === null ? null : "+u.unsafeMember(a.context,a.name,a.computed)+".call("+[a.context].concat(l).join(",")+"))"}else c=s+"("+l.join(",")+")";u.assign(t,c)},function(){u.assign(t,"undefined")}),n(t)}));break;case G.AssignmentExpression:s=this.nextId(),a={},u.current().inAssignment=!0,this.recurse(e.left,void 0,a,function(){u.if_(u.and_(u.notNull(a.context),u.or_(u.hasOwnProperty_(a.context,a.name),u.isNull(u.member(a.context,a.name,a.computed)))),function(){u.recurse(e.right,s),c=u.member(a.context,a.name,a.computed)+e.operator+s,u.assign(t,c),n(t||c)}),u.current().inAssignment=!1,u.recurse(e.right,s),u.current().inAssignment=!0},1),u.current().inAssignment=!1;break;case G.ArrayExpression:l=[],ct(e.elements,function(d){u.recurse(d,e.constant?void 0:u.nextId(),void 0,function(v){l.push(v)})}),c="["+l.join(",")+"]",this.assign(t,c),n(t||c);break;case G.ObjectExpression:l=[],f=!1,ct(e.properties,function(d){d.computed&&(f=!0)}),f?(t=t||this.nextId(),this.assign(t,"{}"),ct(e.properties,function(d){d.computed?(a=u.nextId(),u.recurse(d.key,a)):a=d.key.type===G.Identifier?d.key.name:""+d.key.value,s=u.nextId(),u.recurse(d.value,s),u.assign(u.unsafeMember(t,a,d.computed),s)})):(ct(e.properties,function(d){u.recurse(d.value,e.constant?void 0:u.nextId(),void 0,function(v){l.push(u.escape(d.key.type===G.Identifier?d.key.name:""+d.key.value)+":"+v)})}),c="{"+l.join(",")+"}",this.assign(t,c)),n(t||c);break;case G.ThisExpression:this.assign(t,"s"),n(t||"s");break;case G.LocalsExpression:this.assign(t,"l"),n(t||"l");break;case G.NGValueParameter:this.assign(t,"v"),n(t||"v");break}},getHasOwnProperty:function(e,t){var r=e+"."+t,n=this.current().own;return n.hasOwnProperty(r)||(n[r]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),n[r]},assign:function(e,t){if(e)return this.current().body.push(e,"=",t,";"),e},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,r){if(e===!0)t();else{var n=this.current().body;n.push("if(",e,"){"),t(),n.push("}"),r&&(n.push("else{"),r(),n.push("}"))}},or_:function(e,t){return"("+e+") || ("+t+")"},hasOwnProperty_:function(e,t,r){return r?"(Object.prototype.hasOwnProperty.call("+e+","+t+"))":"(Object.prototype.hasOwnProperty.call("+e+",'"+t+"'))"},and_:function(e,t){return"("+e+") && ("+t+")"},not:function(e){return"!("+e+")"},isNull:function(e){return e+"==null"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){var r=/^[$_a-zA-Z][$_a-zA-Z0-9]*$/,n=/[^$_a-zA-Z0-9]/g,i="";return r.test(t)?i=e+"."+t:(t=t.replace(n,this.stringEscapeFn),i=e+'["'+t+'"]'),i},unsafeComputedMember:function(e,t){return e+"["+t+"]"},unsafeNonComputedMember:function(e,t){return this.nonComputedMember(e,t)},computedMember:function(e,t){return this.state.computing==="assign"?this.unsafeComputedMember(e,t):"("+e+".hasOwnProperty("+t+") ? "+e+"["+t+"] : null)"},unsafeMember:function(e,t,r){return r?this.unsafeComputedMember(e,t):this.unsafeNonComputedMember(e,t)},member:function(e,t,r){return r?this.computedMember(e,t):this.nonComputedMember(e,t)},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},lazyRecurse:function(e,t,r,n,i,o){var a=this;return function(){a.recurse(e,t,r,n,i,o)}},lazyAssign:function(e,t){var r=this;return function(){r.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(md(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(K0(e))return e.toString();if(e===!0)return"true";if(e===!1)return"false";if(e===null)return"null";if(typeof e>"u")return"undefined";throw ba("esc","IMPOSSIBLE")},nextId:function(e,t){var r="v"+this.state.nextId++;return e||this.current().vars.push(r+(t?"="+t:"")),r},current:function(){return this.state[this.state.computing]}};function J2(e,t){this.astBuilder=e,this.$filter=t}J2.prototype={compile:function(e){var t=this,r=this.astBuilder.ast(e);Rt(r,t.$filter);var n,i;(n=Y2(r))&&(i=this.recurse(n));var o=q2(r.body),a;o&&(a=[],ct(o,function(l,c){var f=t.recurse(l);l.input=f,a.push(f),l.watchId=c}));var s=[];ct(r.body,function(l){s.push(t.recurse(l.expression))});var u=r.body.length===0?Y0:r.body.length===1?s[0]:function(l,c){var f;return ct(s,function(h){f=h(l,c)}),f};return i&&(u.assign=function(l,c,f){return i(l,f,c)}),a&&(u.inputs=a),u.ast=r,u.literal=K2(r),u.constant=Z2(r),u},recurse:function(e,t,r){var n,i,o=this,a;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case G.Literal:return this.value(e.value,t);case G.UnaryExpression:return i=this.recurse(e.argument),this["unary"+e.operator](i,t);case G.BinaryExpression:return n=this.recurse(e.left),i=this.recurse(e.right),this["binary"+e.operator](n,i,t);case G.LogicalExpression:return n=this.recurse(e.left),i=this.recurse(e.right),this["binary"+e.operator](n,i,t);case G.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case G.Identifier:return o.identifier(e.name,t,r);case G.MemberExpression:return n=this.recurse(e.object,!1,!!r),e.computed||(i=e.property.name),e.computed&&(i=this.recurse(e.property)),e.computed?this.computedMember(n,i,t,r):this.nonComputedMember(n,i,t,r);case G.CallExpression:return a=[],ct(e.arguments,function(s){a.push(o.recurse(s))}),e.filter&&(i=this.$filter(e.callee.name)),e.filter||(i=this.recurse(e.callee,!0)),e.filter?function(s,u,l,c){for(var f=[],h=0;h":function(e,t,r){return function(n,i,o,a){var s=e(n,i,o,a)>t(n,i,o,a);return r?{value:s}:s}},"binary<=":function(e,t,r){return function(n,i,o,a){var s=e(n,i,o,a)<=t(n,i,o,a);return r?{value:s}:s}},"binary>=":function(e,t,r){return function(n,i,o,a){var s=e(n,i,o,a)>=t(n,i,o,a);return r?{value:s}:s}},"binary&&":function(e,t,r){return function(n,i,o,a){var s=e(n,i,o,a)&&t(n,i,o,a);return r?{value:s}:s}},"binary||":function(e,t,r){return function(n,i,o,a){var s=e(n,i,o,a)||t(n,i,o,a);return r?{value:s}:s}},"ternary?:":function(e,t,r,n){return function(i,o,a,s){var u=e(i,o,a,s)?t(i,o,a,s):r(i,o,a,s);return n?{value:u}:u}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(e,t,r){return function(n,i,o,a){var s=i&&e in i?i:n;r&&r!==1&&s&&s[e]==null&&(s[e]={});var u=s?s[e]:void 0;return t?{context:s,name:e,value:u}:u}},computedMember:function(e,t,r,n){return function(i,o,a,s){var u=e(i,o,a,s),l,c;return u!=null&&(l=t(i,o,a,s),l=V2(l),n&&n!==1&&u&&!u[l]&&(u[l]={}),Object.prototype.hasOwnProperty.call(u,l)&&(c=u[l])),r?{context:u,name:l,value:c}:c}},nonComputedMember:function(e,t,r,n){return function(i,o,a,s){var u=e(i,o,a,s);n&&n!==1&&u&&u[t]==null&&(u[t]={});var l=void 0;return u!=null&&Object.prototype.hasOwnProperty.call(u,t)&&(l=u[t]),r?{context:u,name:t,value:l}:l}},inputs:function(e,t){return function(r,n,i,o){return o?o[t]:e(r,n,i)}}};var fg=function(t,r,n){this.lexer=t,this.$filter=r,this.options=n,this.ast=new G(t,n),this.astCompiler=n.csp?new J2(this.ast,r):new Q2(this.ast,r)};fg.prototype={constructor:fg,parse:function(e){return this.astCompiler.compile(e)}};q0.Lexer=cg;q0.Parser=fg;var ek=q0,pZ={},vZ=ek.Lexer,mZ=ek.Parser;function Cu(e,t){t=t||{};var r;if(typeof e!="string")throw new TypeError("src must be a string, instead saw '"+typeof e+"'");var n={csp:!1,literals:{true:!0,false:!1,null:null,undefined:void 0}},i=new vZ(t),o=new mZ(i,function(s){return pZ[s]},n);return Cu.cache?(r=Cu.cache[e],r||(r=Cu.cache[e]=o.parse(e)),r):o.parse(e)}Cu.cache=Object.create(null);var tk=Cu;const gZ=e=>{let t=!1;e.args.forEach(n=>{n.key==="global"&&(t=!0)});let r;if(t?r=y6:r=KA,e.content.match(/=/)){const n=e.content.split(/=/)[0],i=e.content.split(/=/)[1];if(i==="random()")j.dispatch(r({key:n,value:Math.random()}));else if(i.match(/[+\-*\/()]/)){const a=i.split(/([+\-*\/()])/g).map(l=>l.match(/[a-zA-Z]/)?Q0(l).toString():l).reduce((l,c)=>l+c,""),u=tk(a)();j.dispatch(r({key:n,value:u}))}else i.match(/true|false/)?(i.match(/true/)&&j.dispatch(r({key:n,value:!0})),i.match(/false/)&&j.dispatch(r({key:n,value:!1}))):isNaN(Number(i))?j.dispatch(r({key:n,value:i})):j.dispatch(r({key:n,value:Number(i)}));t?(ne.debug("设置全局变量:",{key:n,value:j.getState().userData.globalGameVar[n]}),Ou()):ne.debug("设置变量:",{key:n,value:j.getState().stage.GameVar[n]})}return{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function Q0(e){let t=0;return j.getState().stage.GameVar.hasOwnProperty(e)?t=j.getState().stage.GameVar[e]:j.getState().userData.globalGameVar.hasOwnProperty(e)&&(t=j.getState().userData.globalGameVar[e]),t}const yZ=e=>{const t=j.getState().stage,r=j.getState().userData,n=j.dispatch,i={stageGameVar:t.GameVar,globalGameVar:r.globalGameVar};n(Te({key:"showText",value:JSON.stringify(i)})),n(Te({key:"showName",value:"展示变量"})),ne.debug("展示变量:",i),setTimeout(()=>{O.eventBus.emit("text-settle")},0);const o=tx(),a=750-r.optionData.textSpeed*250;return{performName:o,duration:a,isHoldOn:!1,stopFunction:()=>{O.eventBus.emit("text-settle")},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},_Z=e=>{const t=e.content;let r=e.content,n="default";e.args.forEach(o=>{o.key==="name"&&(r=o.value.toString()),o.key==="series"&&(n=o.value.toString())}),ne.info(`解锁CG:${r},路径:${t},所属系列:${n}`),j.dispatch(dP({name:r,url:t,series:n}));const i=j.getState().userData;return Df.setItem(O.gameKey,i).then(()=>{}),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},xZ=e=>{const t=e.content;let r=e.content,n="default";e.args.forEach(o=>{o.key==="name"&&(r=o.value.toString()),o.key==="series"&&(n=o.value.toString())}),ne.info(`解锁BGM:${r},路径:${t},所属系列:${n}`),j.dispatch(pP({name:r,url:t,series:n}));const i=j.getState().userData;return Df.setItem(O.gameKey,i).then(()=>{}),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},bZ=e=>(e.content!==""&&e.content!=="none"?j.dispatch(Te({key:"enableFilm",value:e.content})):j.dispatch(Te({key:"enableFilm",value:""})),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),SZ=(e,t)=>{O.sceneManager.sceneData.sceneStack.push({sceneName:O.sceneManager.sceneData.currentScene.sceneName,sceneUrl:O.sceneManager.sceneData.currentScene.sceneUrl,continueLine:O.sceneManager.sceneData.currentSentenceId}),Vn(e).then(r=>{O.sceneManager.sceneData.currentScene=Wn(r,t,e),O.sceneManager.sceneData.currentSentenceId=0;const n=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(e);const i=Rl(n);Nl(i),ne.debug("现在调用场景,调用结果:",O.sceneManager.sceneData),Ut()})},wZ=e=>{const t=e.content.split("/"),r=t[t.length-1];return SZ(e.content,r),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function EZ(e){return e.content==="hide"?j.dispatch(Te({key:"isDisableTextbox",value:!0})):j.dispatch(Te({key:"isDisableTextbox",value:!1})),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}}const TZ=e=>{j.getState().stage.currentDialogKey;const t=e.content,r=xr(t),n=(Pe(e,"target")??"default_id").toString(),i=`${n}-${t}-${r}`;let o;return setTimeout(()=>{var s,u;(s=O.gameplay.pixiStage)==null||s.stopPresetAnimationOnTarget(n);const a=Gf(t,n,r);a&&(ne.debug(`动画${t}作用在${n}`,r),(u=O.gameplay.pixiStage)==null||u.registerAnimation(a,i,n))},0),o=()=>{setTimeout(()=>{var a;j.getState().stage.currentDialogKey,(a=O.gameplay.pixiStage)==null||a.removeAnimationWithSetEffects(i)},0)},{performName:i,duration:r,isHoldOn:!1,stopFunction:o,blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},CZ=e=>{ne.debug("play SE");let t="effect-sound";O.gameplay.performController.unmountPerform(t,!0);let r=e.content,n=!1;Pe(e,"id")&&(t=`effect-sound-${Pe(e,"id")}`,O.gameplay.performController.unmountPerform(t,!0),n=!0);let i=!1;return{performName:"none",blockingAuto(){return!1},blockingNext(){return!1},isHoldOn:!1,stopFunction(){},stopTimeout:void 0,duration:1e3*60*60,arrangePerformPromise:new Promise(o=>{setTimeout(()=>{var d;const a=Pe(e,"volume");let s=document.createElement("audio");s.src=r,n&&(s.loop=!0);const u=j.getState().userData,l=u.optionData.volumeMain,c=typeof a=="number"&&a>=0&&a<=100?a:100,f=l*.01*(((d=u.optionData)==null?void 0:d.seVolume)??100)*.01*c*.01;s.volume=f,s.currentTime=0;const h={performName:t,duration:1e3*60*60,isHoldOn:n,skipNextCollect:!0,stopFunction:()=>{s.oncanplay=()=>{},s.pause()},blockingNext:()=>!1,blockingAuto:()=>!i,stopTimeout:void 0};o(h),s.oncanplay=()=>{s==null||s.play()},s.onended=()=>{for(const v of O.gameplay.performController.performList)v.performName===t&&(i=!0,v.stopFunction(),O.gameplay.performController.unmountPerform(v.performName))}},1)})}},OZ=e=>{j.getState().stage.currentDialogKey;const t=(Math.random()*10).toString(16),r=e.content;let n;try{n=JSON.parse(r)}catch{n=[]}const i={name:t,effects:n};O.animationManager.addAnimation(i);const o=xr(t),a=Pe(e,"target")??0,s=`${a}-${t}-${o}`;let u=()=>{};return setTimeout(()=>{var c,f;(c=O.gameplay.pixiStage)==null||c.stopPresetAnimationOnTarget(a);const l=Gf(t,a,o);l&&(ne.debug(`动画${t}作用在${a}`,o),(f=O.gameplay.pixiStage)==null||f.registerAnimation(l,s,a))},0),u=()=>{setTimeout(()=>{var l;j.getState().stage.currentDialogKey,(l=O.gameplay.pixiStage)==null||l.removeAnimationWithSetEffects(s)},0)},{performName:s,duration:o,isHoldOn:!1,stopFunction:u,blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},AZ=e=>(ne.debug(`脚本内注释${e.content}`),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),PZ=e=>{j.getState().stage.currentDialogKey;const t=(Math.random()*10).toString(16),r=e.content;let n;const i=Pe(e,"duration"),o=Pe(e,"target")??0;try{const c=JSON.parse(r);n=Zu(o,c,i)}catch{n=[]}const a={name:t,effects:n};O.animationManager.addAnimation(a);const s=IZ(t),u=`${o}-${t}-${s}`;let l=()=>{};return setTimeout(()=>{var f,h;(f=O.gameplay.pixiStage)==null||f.stopPresetAnimationOnTarget(o);const c=kZ(t,o,s);c&&(ne.debug(`动画${t}作用在${o}`,s),(h=O.gameplay.pixiStage)==null||h.registerAnimation(c,u,o))},0),l=()=>{setTimeout(()=>{var c;j.getState().stage.currentDialogKey,(c=O.gameplay.pixiStage)==null||c.removeAnimationWithSetEffects(u)},0)},{performName:u,duration:s,isHoldOn:!1,stopFunction:l,blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function kZ(e,t,r){const n=O.animationManager.getAnimations().find(i=>i.name===e);if(n){const i=n.effects.map(o=>{const a=Et({...T0,duration:0});return Object.assign(a,o),a.duration=o.duration,a});return ne.debug("装载自定义动画",i),n2(i,t,r)}return null}function IZ(e){const t=O.animationManager.getAnimations().find(r=>r.name===e);if(t){let r=0;return t.effects.forEach(n=>{r+=n.duration}),r}return 0}const RZ=e=>{let t="";for(const r of e.args)r.key==="target"&&(t=r.value.toString());return Pe(e,"enter")&&O.animationManager.nextEnterAnimationName.set(t,Pe(e,"enter").toString()),Pe(e,"exit")&&O.animationManager.nextExitAnimationName.set(t+"-off",Pe(e,"exit").toString()),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}},NZ="_Choose_Main_4xkm5_1",LZ="_Choose_item_4xkm5_13",MZ="_glabalDialog_container_inner_4xkm5_28",FZ="_glabalDialog_container_4xkm5_28",DZ="_title_4xkm5_47",BZ="_button_4xkm5_59",ra={Choose_Main:NZ,Choose_item:LZ,glabalDialog_container_inner:MZ,glabalDialog_container:FZ,title:DZ,button:BZ},jZ=e=>{const t=e.content.toString().trim(),r=Pe(e,"title"),n=(r===0?"Please Input":r)??"Please Input",i=Pe(e,"buttonText"),o=(i===0?"OK":i)??"OK",s=j.getState().userData.optionData.textboxFont===Ln.song?'"思源宋体", serif':'"WebgalUI", serif',{playSeEnter:u,playSeClick:l}=H0(),c=S.jsx("div",{style:{fontFamily:s},className:ra.glabalDialog_container,children:S.jsxs("div",{className:ra.glabalDialog_container_inner,children:[S.jsx("div",{className:ra.title,children:n}),S.jsx("input",{id:"user-input",className:ra.Choose_item}),S.jsx("div",{onMouseEnter:u,onClick:()=>{const f=document.getElementById("user-input");f&&j.dispatch(KA({key:t,value:(f==null?void 0:f.value)??""})),l(),O.gameplay.performController.unmountPerform("userInput"),Ut()},className:ra.button,children:o})]})});return Mn.render(S.jsx("div",{className:ra.Choose_Main,children:c}),document.getElementById("chooseContainer")),{performName:"userInput",duration:1e3*60*60*24,isHoldOn:!1,stopFunction:()=>{Mn.render(S.jsx("div",{}),document.getElementById("chooseContainer"))},blockingNext:()=>!0,blockingAuto:()=>!0,stopTimeout:void 0}},rk=[{scriptString:"intro",scriptType:de.intro,scriptFunction:M9},{scriptString:"changeBg",scriptType:de.changeBg,scriptFunction:rX},{scriptString:"changeFigure",scriptType:de.changeFigure,scriptFunction:nX},{scriptString:"miniAvatar",scriptType:de.miniAvatar,scriptFunction:iX},{scriptString:"changeScene",scriptType:de.changeScene,scriptFunction:nE},{scriptString:"choose",scriptType:de.choose,scriptFunction:LK},{scriptString:"end",scriptType:de.end,scriptFunction:MK},{scriptString:"bgm",scriptType:de.bgm,scriptFunction:FK},{scriptString:"playVideo",scriptType:de.video,scriptFunction:DK},{scriptString:"setComplexAnimation",scriptType:de.setComplexAnimation,scriptFunction:$K},{scriptString:"setFilter",scriptType:de.setFilter,scriptFunction:GK},{scriptString:"pixiInit",scriptType:de.pixiInit,scriptFunction:zK},{scriptString:"pixiPerform",scriptType:de.pixi,scriptFunction:YK},{scriptString:"label",scriptType:de.label,scriptFunction:KK},{scriptString:"jumpLabel",scriptType:de.jumpLabel,scriptFunction:ZK},{scriptString:"setVar",scriptType:de.setVar,scriptFunction:gZ},{scriptString:"callScene",scriptType:de.callScene,scriptFunction:nE},{scriptString:"showVars",scriptType:de.showVars,scriptFunction:yZ},{scriptString:"unlockCg",scriptType:de.unlockCg,scriptFunction:_Z},{scriptString:"unlockBgm",scriptType:de.unlockBgm,scriptFunction:xZ},{scriptString:"say",scriptType:de.say,scriptFunction:gP},{scriptString:"filmMode",scriptType:de.filmMode,scriptFunction:bZ},{scriptString:"callScene",scriptType:de.callScene,scriptFunction:wZ},{scriptString:"setTextbox",scriptType:de.setTextbox,scriptFunction:EZ},{scriptString:"setAnimation",scriptType:de.setAnimation,scriptFunction:TZ},{scriptString:"playEffect",scriptType:de.playEffect,scriptFunction:CZ},{scriptString:"setTempAnimation",scriptType:de.setTempAnimation,scriptFunction:OZ},{scriptString:"__commment",scriptType:de.comment,scriptFunction:AZ},{scriptString:"setTransform",scriptType:de.setTransform,scriptFunction:PZ},{scriptString:"setTransition",scriptType:de.setTransition,scriptFunction:RZ},{scriptString:"getUserInput",scriptType:de.getUserInput,scriptFunction:jZ}],$Z=[de.bgm,de.pixi,de.pixiInit,de.label,de.if,de.miniAvatar,de.setVar,de.unlockBgm,de.unlockCg,de.filmMode,de.playEffect,de.comment,de.setTransition],J0=new b9(M6,Nr,$Z,rk),Wn=(e,t,r)=>{const n=J0.parse(e,t,r);return ne.info(`解析场景:${t},数据为:`,n),n},ex=e=>{let t=L6,r=gP;const n=new Map;rk.forEach(i=>{n.set(i.scriptType,i.scriptFunction)}),n.has(e.command)&&(r=n.get(e.command)),t=r(e),t.arrangePerformPromise?t.arrangePerformPromise.then(i=>O.gameplay.performController.arrangeNewPerform(i,e)):O.gameplay.performController.arrangeNewPerform(t,e)},UZ=e=>{Vn(e.sceneUrl).then(t=>{O.sceneManager.sceneData.currentScene=Wn(t,e.sceneName,e.sceneUrl),O.sceneManager.sceneData.currentSentenceId=e.continueLine+1,ne.debug("现在恢复场景,恢复后场景:",O.sceneManager.sceneData.currentScene),Ut()})};function GZ(e){return tk(e)()}const hg=e=>{if(e===void 0)return!0;const r=e.split(/([+\-*\/()>=|<=|==)/g).map(n=>n.match(/[a-zA-Z]/)?n.match(/true/)||n.match(/false/)?n:Q0(n).toString():n).reduce((n,i)=>n+i,"");return!!GZ(r)},nk=()=>{if(O.sceneManager.sceneData.currentSentenceId>O.sceneManager.sceneData.currentScene.sentenceList.length-1){if(O.sceneManager.sceneData.sceneStack.length!==0){const l=O.sceneManager.sceneData.sceneStack.pop();l!==void 0&&UZ(l)}return}const e=O.sceneManager.sceneData.currentScene.sentenceList[O.sceneManager.sceneData.currentSentenceId],t=l=>{let c=l;const f=c.match(new RegExp("(?{const d=Q0(h.replace(new RegExp("(?{e.content=t(e.content),e.args.forEach(l=>{l.value&&typeof l.value=="string"&&(l.value=t(l.value))})})();let n=!0,i=!1,o="";if(e.args.forEach(l=>{l.key==="when"&&(i=!0,o=l.value.toString())}),i&&(n=hg(o)),!n){ne.warn("不满足条件,跳过本句!"),O.sceneManager.sceneData.currentSentenceId++,Ut();return}ex(e);let a=!1;e.args.forEach(l=>{l.key==="next"&&l.value&&(a=!0)});let s=e.command===de.say;e.args.forEach(l=>{l.key==="notend"&&l.value===!0&&(s=!1)});let u;if(a){O.sceneManager.sceneData.currentSentenceId++,nk();return}setTimeout(()=>{u=j.getState().stage;const l={currentStageState:u,globalGameVar:j.getState().userData.globalGameVar};ne.debug("本条语句执行结果",l),s&&O.backlogManager.saveCurrentStateToBacklog()},0),O.sceneManager.sceneData.currentSentenceId++},Ut=()=>{if(O.eventBus.emit("__NEXT"),j.getState().GUI.showTitle)return;let t=!1;if(O.gameplay.performController.performList.forEach(i=>{i.blockingNext()&&(t=!0)}),t){ne.warn("next 被阻塞!");return}let r=!0;if(O.gameplay.performController.performList.forEach(i=>{!i.isHoldOn&&!i.skipNextCollect&&(r=!1)}),r){const i=j.getState().stage,o=Et(i);for(let a=0;aMath.random().toString().substring(0,10);class zZ{constructor(){le(this,"performList",[]);le(this,"timeoutList",[])}arrangeNewPerform(t,r,n=!0){if(t.performName!=="none"){if(n){const i={id:t.performName,isHoldOn:t.isHoldOn,script:r};j.dispatch(Ir.addPerform(i))}t.stopTimeout=setTimeout(()=>{t.isHoldOn||(this.unmountPerform(t.performName),t.goNextWhenOver&&this.goNextWhenOver())},t.duration),this.performList.push(t)}}unmountPerform(t,r=!1){if(r)for(let n=0;n{r.blockingAuto()&&(t=!0)}),t?setTimeout(this.goNextWhenOver,100):Ut()}}class HZ{constructor(){le(this,"isAuto",!1);le(this,"isFast",!1);le(this,"autoInterval",null);le(this,"fastInterval",null);le(this,"autoTimeout",null);le(this,"pixiStage",null);le(this,"performController",new zZ)}resetGamePlay(){this.performController.timeoutList=[],this.isAuto=!1,this.isFast=!1;const t=this.autoInterval;t!==null&&clearInterval(t),this.autoInterval=null;const r=this.fastInterval;r!==null&&clearInterval(r),this.fastInterval=null;const n=this.autoTimeout;n!==null&&clearInterval(n),this.autoTimeout=null}}class VZ{constructor(){le(this,"sceneManager",new O6);le(this,"backlogManager",new T6(this.sceneManager));le(this,"animationManager",new A6);le(this,"gameplay",new HZ);le(this,"gameName","");le(this,"gameKey","");le(this,"eventBus",C6())}}const O=new VZ,Ke=ik(()=>{const e=j.getState().userData;qi.setItem(O.gameKey,e).then(()=>{ne.info("写入本地存储")})},100),el=ik(()=>{qi.getItem(O.gameKey).then(e=>{if(!e||!ok(e)){ne.warn("现在重置数据"),Ke();return}j.dispatch(S0(e))})},100);function ik(e,t){let r;function n(...i){clearTimeout(r);let o;return r=setTimeout(()=>{o=e.apply(n,i)},t),o}return n}const Ou=()=>{const e=j.getState().userData;qi.setItem(O.gameKey,e).then(()=>{qi.getItem(O.gameKey).then(t=>{if(!t){Ke();return}j.dispatch(S0(t))}),ne.info("同步本地存储")})};function ok(e){let t=!0;for(const r in tg)e.hasOwnProperty(r)||(t=!1);return t}async function WZ(){const e=j.getState().userData;return await qi.setItem(O.gameKey,e)}async function ak(){const e=await qi.getItem(O.gameKey);if(!e||!ok(e)){const t=j.getState().userData;return ne.warn("现在重置数据"),await qi.setItem(O.gameKey,t)}else j.dispatch(S0(e))}var qe=(e=>(e[e.Save=0]="Save",e[e.Load=1]="Load",e[e.Option=2]="Option",e))(qe||{});const qZ={showBacklog:!1,showStarter:!0,showTitle:!0,showMenuPanel:!1,showTextBox:!0,showControls:!0,controlsVisibility:!0,currentMenuTag:qe.Option,titleBg:"",titleBgm:"",logoImage:[],showExtra:!1,showGlobalDialog:!1,showPanicOverlay:!1,isEnterGame:!1,isShowLogo:!0,theme:{textbox:"standard"}},sk=t0({name:"gui",initialState:qZ,reducers:{setVisibility:(e,t)=>{el();const{component:r,visibility:n}=t.payload;e[r]=n},setMenuPanelTag:(e,t)=>{el(),e.currentMenuTag=t.payload},setGuiAsset:(e,t)=>{const{asset:r,value:n}=t.payload;e[r]=n},setLogoImage:(e,t)=>{e.logoImage=[...t.payload]},setThemeConfigItem:(e,t)=>{e.theme[t.payload.key]=t.payload.value}}}),{setThemeConfigItem:XZ,setVisibility:Me,setMenuPanelTag:Oo,setGuiAsset:Hf,setLogoImage:YZ}=sk.actions,KZ=sk.reducer,j=LF({reducer:{stage:f5,GUI:KZ,userData:w6},middleware:wA({serializableCheck:!1})});let lE;function rx(e,t=0,r=100){if(ne.info("playing bgm"+e),e===""){lE=setTimeout(()=>{j.dispatch(Te({key:"bgm",value:{src:"",enter:0,volume:100}}))},t);const i=j.getState().stage.bgm.src;j.dispatch(Te({key:"bgm",value:{src:i,enter:-t,volume:r}}))}else clearTimeout(lE),j.dispatch(Te({key:"bgm",value:{src:e,enter:t,volume:r}}));const n=document.getElementById("currentBgm");n.src&&(n==null||n.play())}function Ll(e){const t=document.getElementById("ebg");t&&(t.style.backgroundImage=`url("${e}")`)}const nx=()=>{ne.warn("清除所有演出");for(let e=0;e{j.getState().stage.PerformList.forEach(t=>{ex(t.script)})},ZZ=e=>{const t=j.dispatch,r=O.backlogManager.getBacklog()[e];ne.debug("读取的backlog数据",r),Vn(r.saveScene.sceneUrl).then(i=>{O.sceneManager.sceneData.currentScene=Wn(i,r.saveScene.sceneName,r.saveScene.sceneUrl);const o=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(O.sceneManager.sceneData.currentScene.sceneUrl);const a=Rl(o);Nl(a)}),O.sceneManager.sceneData.currentSentenceId=r.saveScene.currentSentenceId,O.sceneManager.sceneData.sceneStack=Et(r.saveScene.sceneStack),nx();for(let i=O.backlogManager.getBacklog().length-1;i>e;i--)O.backlogManager.getBacklog().pop();O.backlogManager.isSaveBacklogNext=!0;const n=Et(r.currentStageState);t(kh(n)),setTimeout(ix,0),t(Me({component:"showBacklog",visibility:!1})),t(Me({component:"showTextBox",visibility:!0}))},uk=e=>{const r=j.getState().userData.saveData[e];ne.debug("读取的存档数据",r),lk(r)};function lk(e){if(!e){ne.info("暂无存档");return}const t=e;Vn(t.sceneData.sceneUrl).then(o=>{O.sceneManager.sceneData.currentScene=Wn(o,t.sceneData.sceneName,t.sceneData.sceneUrl);const a=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(O.sceneManager.sceneData.currentScene.sceneUrl);const s=Rl(a);Nl(s)}),O.sceneManager.sceneData.currentSentenceId=t.sceneData.currentSentenceId,O.sceneManager.sceneData.sceneStack=Et(t.sceneData.sceneStack),nx();const r=t.backlog;O.backlogManager.getBacklog().splice(0,O.backlogManager.getBacklog().length);for(const o of r)O.backlogManager.getBacklog().push(o);const n=Et(t.nowStageState),i=j.dispatch;i(kh(n)),setTimeout(ix,0),i(Me({component:"showTitle",visibility:!1})),i(Me({component:"showMenuPanel",visibility:!1})),Ll(j.getState().stage.bgName)}const dg=e=>{const t=j.getState().userData,r=ck(e);ne.debug("存档数据:",r);const n=Et(t.saveData);ne.debug("newSaveData:",n),n[e]=r,j.dispatch(g6({key:"saveData",value:[...n]})),ne.debug("存档完成,存档结果:",n),Ou()};function ck(e){const t=j.getState().stage,r=Et(O.backlogManager.getBacklog()),n=document.getElementById("pixiCanvas"),i=document.createElement("canvas"),o=i.getContext("2d");i.width=480,i.height=270,o.drawImage(n,0,0,480,270);const a=i.toDataURL("image/webp",.5);return i.remove(),{nowStageState:Et(t),backlog:r,index:e,saveTime:new Date().toLocaleDateString()+" "+new Date().toLocaleTimeString("chinese",{hour12:!1}),sceneData:{currentSentenceId:O.sceneManager.sceneData.currentSentenceId,sceneStack:Et(O.sceneManager.sceneData.sceneStack),sceneName:O.sceneManager.sceneData.currentScene.sceneName,sceneUrl:O.sceneManager.sceneData.currentScene.sceneUrl},previewImage:a}}function QZ(){`${O.gameName}${O.gameKey}`,`${O.gameName}${O.gameKey}`}async function JZ(){const e=ck(-1),t=Et(e);j.dispatch(_6(t)),await WZ()}async function eQ(){return await ak(),j.getState().userData.quickSaveData!==null}async function tQ(){await ak();const e=j.getState().userData.quickSaveData;e&&lk(e)}const rQ=()=>{W0(!0);const e=Nr("start.txt",Rr.scene);Vn(e).then(t=>{O.sceneManager.sceneData.currentScene=Wn(t,"start.txt",e),Ut()}),j.dispatch(Me({component:"showTitle",visibility:!1}))};async function nQ(){if(Ll(j.getState().stage.bgName),await eQ()&&O.sceneManager.sceneData.currentSentenceId===0){await tQ();return}O.sceneManager.sceneData.currentSentenceId===0&&O.sceneManager.sceneData.currentScene.sceneName==="start.txt"?Ut():ix()}function ox(e,t){if(e==null)return{};var r=mK(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var iQ={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};const oQ=Or(iQ);var aQ=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function cE(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},r=e.match(/<\/?([^\s]+?)[/\s>]/);if(r&&(t.name=r[1],(oQ[r[1]]||e.charAt(e.length-2)==="/")&&(t.voidElement=!0),t.name.startsWith("!--"))){var n=e.indexOf("-->");return{type:"comment",comment:n!==-1?e.slice(4,n):""}}for(var i=new RegExp(aQ),o=null;(o=i.exec(e))!==null;)if(o[0].trim())if(o[1]){var a=o[1].trim(),s=[a,""];a.indexOf("=")>-1&&(s=a.split("=")),t.attrs[s[0]]=s[1],i.lastIndex--}else o[2]&&(t.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1));return t}var sQ=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,uQ=/^\s*$/,lQ=Object.create(null);function fk(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(r){var n=[];for(var i in r)n.push(i+'="'+r[i]+'"');return n.length?" "+n.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(fk,"")+"";case"comment":return e+""}}var cQ={parse:function(e,t){t||(t={}),t.components||(t.components=lQ);var r,n=[],i=[],o=-1,a=!1;if(e.indexOf("<")!==0){var s=e.indexOf("<");n.push({type:"text",content:s===-1?e:e.substring(0,s)})}return e.replace(sQ,function(u,l){if(a){if(u!=="")return;a=!1}var c,f=u.charAt(1)!=="/",h=u.startsWith("");return{type:"comment",comment:n!==-1?e.slice(4,n):""}}for(var i=new RegExp(fJ),o=null;(o=i.exec(e))!==null;)if(o[0].trim())if(o[1]){var a=o[1].trim(),s=[a,""];a.indexOf("=")>-1&&(s=a.split("=")),t.attrs[s[0]]=s[1],i.lastIndex--}else o[2]&&(t.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1));return t}var hJ=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,dJ=/^\s*$/,pJ=Object.create(null);function tI(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(r){var n=[];for(var i in r)n.push(i+'="'+r[i]+'"');return n.length?" "+n.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(tI,"")+"";case"comment":return e+""}}var vJ={parse:function(e,t){t||(t={}),t.components||(t.components=pJ);var r,n=[],i=[],o=-1,a=!1;if(e.indexOf("<")!==0){var s=e.indexOf("<");n.push({type:"text",content:s===-1?e:e.substring(0,s)})}return e.replace(hJ,function(u,l){if(a){if(u!=="")return;a=!1}var c,f=u.charAt(1)!=="/",h=u.startsWith(")]*-->)?\s*\]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,t}(jn),kx=function(e){Je(t,e);function t(r,n){var i=this;if(n=n||{},!(r instanceof HTMLVideoElement)){var o=document.createElement("video");o.setAttribute("preload","auto"),o.setAttribute("webkit-playsinline",""),o.setAttribute("playsinline",""),typeof r=="string"&&(r=[r]);var a=r[0].src||r[0];jn.crossOrigin(o,a,n.crossorigin);for(var s=0;s2},t.prototype._onPlayStart=function(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(Ft.shared.add(this.update,this),this._isConnectedToTicker=!0)},t.prototype._onPlayStop=function(){this._isConnectedToTicker&&(Ft.shared.remove(this.update,this),this._isConnectedToTicker=!1)},t.prototype._onCanPlay=function(){var r=this.source;r.removeEventListener("canplay",this._onCanPlay),r.removeEventListener("canplaythrough",this._onCanPlay);var n=this.valid;this.resize(r.videoWidth,r.videoHeight),!n&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&r.play()},t.prototype.dispose=function(){this._isConnectedToTicker&&(Ft.shared.remove(this.update,this),this._isConnectedToTicker=!1);var r=this.source;r&&(r.removeEventListener("error",this._onError,!0),r.pause(),r.src="",r.load()),e.prototype.dispose.call(this)},Object.defineProperty(t.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(r){r!==this._autoUpdate&&(this._autoUpdate=r,!this._autoUpdate&&this._isConnectedToTicker?(Ft.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(Ft.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"updateFPS",{get:function(){return this._updateFPS},set:function(r){r!==this._updateFPS&&(this._updateFPS=r)},enumerable:!1,configurable:!0}),t.test=function(r,n){return globalThis.HTMLVideoElement&&r instanceof HTMLVideoElement||t.TYPES.indexOf(n)>-1},t.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"],t.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"},t}(jn),Ix=function(e){Je(t,e);function t(r){return e.call(this,r)||this}return t.test=function(r){return!!globalThis.createImageBitmap&&typeof ImageBitmap<"u"&&r instanceof ImageBitmap},t}(jn);hl.push(Ed,Ix,Ox,kx,Px,Xo,Ax,Cx);var uI={__proto__:null,Resource:Do,BaseImageResource:jn,INSTALLED:hl,autoDetectResource:Sd,AbstractMultiResource:wd,ArrayResource:Cx,BufferResource:Xo,CanvasResource:Ox,CubeResource:Ax,ImageResource:Ed,SVGResource:Px,VideoResource:kx,ImageBitmapResource:Ix},Hie=function(e){Je(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.upload=function(r,n,i){var o=r.gl;o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.alphaMode===Jr.UNPACK);var a=n.realWidth,s=n.realHeight;return i.width===a&&i.height===s?o.texSubImage2D(n.target,0,0,0,a,s,n.format,i.type,this.data):(i.width=a,i.height=s,o.texImage2D(n.target,0,i.internalFormat,a,s,0,n.format,i.type,this.data)),!0},t}(Xo),Zf=function(){function e(t,r){this.width=Math.round(t||100),this.height=Math.round(r||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new Mt("disposeFramebuffer"),this.multisample=nt.NONE}return Object.defineProperty(e.prototype,"colorTexture",{get:function(){return this.colorTextures[0]},enumerable:!1,configurable:!0}),e.prototype.addColorTexture=function(t,r){return t===void 0&&(t=0),this.colorTextures[t]=r||new Ie(null,{scaleMode:br.NEAREST,resolution:1,mipmap:Cr.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this},e.prototype.addDepthTexture=function(t){return this.depthTexture=t||new Ie(new Hie(null,{width:this.width,height:this.height}),{scaleMode:br.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:Cr.OFF,format:Z.DEPTH_COMPONENT,type:fe.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this},e.prototype.enableDepth=function(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this},e.prototype.enableStencil=function(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this},e.prototype.resize=function(t,r){if(t=Math.round(t),r=Math.round(r),!(t===this.width&&r===this.height)){this.width=t,this.height=r,this.dirtyId++,this.dirtySize++;for(var n=0;n-1&&n.textureCacheIds.splice(i,1),delete _r[r],n}}else if(r&&r.textureCacheIds){for(var o=0;othis.baseTexture.width,u=i+a>this.baseTexture.height;if(s||u){var l=s&&u?"and":"or",c="X: "+n+" + "+o+" = "+(n+o)+" > "+this.baseTexture.width,f="Y: "+i+" + "+a+" = "+(i+a)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+(c+" "+l+" "+f))}this.valid=o&&a&&this.baseTexture.valid,!this.trim&&!this.rotate&&(this.orig=r),this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rotate",{get:function(){return this._rotate},set:function(r){this._rotate=r,this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.orig.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.orig.height},enumerable:!1,configurable:!0}),t.prototype.castToBaseTexture=function(){return this.baseTexture},Object.defineProperty(t,"EMPTY",{get:function(){return t._EMPTY||(t._EMPTY=new t(new Ie),cc(t._EMPTY),cc(t._EMPTY.baseTexture)),t._EMPTY},enumerable:!1,configurable:!0}),Object.defineProperty(t,"WHITE",{get:function(){if(!t._WHITE){var r=te.ADAPTER.createCanvas(16,16),n=r.getContext("2d");r.width=16,r.height=16,n.fillStyle="white",n.fillRect(0,0,16,16),t._WHITE=new t(Ie.from(r)),cc(t._WHITE),cc(t._WHITE.baseTexture)}return t._WHITE},enumerable:!1,configurable:!0}),t}(ys),Zi=function(e){Je(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.valid=!0,i.filterFrame=null,i.filterPoolKey=null,i.updateUvs(),i}return Object.defineProperty(t.prototype,"framebuffer",{get:function(){return this.baseTexture.framebuffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"multisample",{get:function(){return this.framebuffer.multisample},set:function(r){this.framebuffer.multisample=r},enumerable:!1,configurable:!0}),t.prototype.resize=function(r,n,i){i===void 0&&(i=!0);var o=this.baseTexture.resolution,a=Math.round(r*o)/o,s=Math.round(n*o)/o;this.valid=a>0&&s>0,this._frame.width=this.orig.width=a,this._frame.height=this.orig.height=s,i&&this.baseTexture.resize(a,s),this.updateUvs()},t.prototype.setResolution=function(r){var n=this.baseTexture;n.resolution!==r&&(n.setResolution(r),this.resize(n.width,n.height,!1))},t.create=function(r){for(var n=arguments,i=[],o=1;o>>0,i>1&&(o+=i*4294967296)):o=i>1?-i:-1,this.texturePool[o]||(this.texturePool[o]=[]);var a=this.texturePool[o].pop();return a||(a=this.createTexture(t,r,i)),a.filterPoolKey=o,a.setResolution(n),a},e.prototype.getFilterTexture=function(t,r,n){var i=this.getOptimalTexture(t.width,t.height,r||t.resolution,n||nt.NONE);return i.filterFrame=t.filterFrame,i},e.prototype.returnTexture=function(t){var r=t.filterPoolKey;t.filterFrame=null,this.texturePool[r].push(t)},e.prototype.returnFilterTexture=function(t){this.returnTexture(t)},e.prototype.clear=function(t){if(t=t!==!1,t)for(var r in this.texturePool){var n=this.texturePool[r];if(n)for(var i=0;i0&&t.height>0;for(var r in this.texturePool)if(Number(r)<0){var n=this.texturePool[r];if(n)for(var i=0;i1){for(var c=0;c1&&(f=this.getOptimalFilterTexture(c.width,c.height,r.resolution),f.filterFrame=c.filterFrame),n[h].apply(this,c,f,zr.CLEAR,r);var d=c;c=f,f=d}n[h].apply(this,c,l.renderTexture,zr.BLEND,r),h>1&&r.multisample>1&&this.returnFilterTexture(r.renderTexture),this.returnFilterTexture(c),this.returnFilterTexture(f)}r.clear(),this.statePool.push(r)},e.prototype.bindAndClear=function(t,r){r===void 0&&(r=zr.CLEAR);var n=this.renderer,i=n.renderTexture,o=n.state;if(t===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,t&&t.filterFrame){var a=this.tempRect;a.x=0,a.y=0,a.width=t.filterFrame.width,a.height=t.filterFrame.height,i.bind(t,t.filterFrame,a)}else t!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?i.bind(t):this.renderer.renderTexture.bind(t,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);var s=o.stateId&1||this.forceClear;(r===zr.CLEAR||r===zr.BLIT&&s)&&this.renderer.framebuffer.clear(0,0,0,0)},e.prototype.applyFilter=function(t,r,n,i){var o=this.renderer;o.state.set(t.state),this.bindAndClear(n,i),t.uniforms.uSampler=r,t.uniforms.filterGlobals=this.globalUniforms,o.shader.bind(t),t.legacy=!!t.program.attributeData.aTextureCoord,t.legacy?(this.quadUv.map(r._frame,r.filterFrame),o.geometry.bind(this.quadUv),o.geometry.draw(qr.TRIANGLES)):(o.geometry.bind(this.quad),o.geometry.draw(qr.TRIANGLE_STRIP))},e.prototype.calculateSpriteMatrix=function(t,r){var n=this.activeState,i=n.sourceFrame,o=n.destinationFrame,a=r._texture.orig,s=t.set(o.width,0,0,o.height,i.x,i.y),u=r.worldTransform.copyTo(Tt.TEMP_MATRIX);return u.invert(),s.prepend(u),s.scale(1/a.width,1/a.height),s.translate(r.anchor.x,r.anchor.y),s},e.prototype.destroy=function(){this.renderer=null,this.texturePool.clear(!1)},e.prototype.getOptimalFilterTexture=function(t,r,n,i){return n===void 0&&(n=1),i===void 0&&(i=nt.NONE),this.texturePool.getOptimalTexture(t,r,n,i)},e.prototype.getFilterTexture=function(t,r,n){if(typeof t=="number"){var i=t;t=r,r=i}t=t||this.activeState.renderTexture;var o=this.texturePool.getOptimalTexture(t.width,t.height,r||t.resolution,n||nt.NONE);return o.filterFrame=t.filterFrame,o},e.prototype.returnFilterTexture=function(t){this.texturePool.returnTexture(t)},e.prototype.emptyPool=function(){this.texturePool.clear(!0)},e.prototype.resize=function(){this.texturePool.setScreenSize(this.renderer.view)},e.prototype.transformAABB=function(t,r){var n=fc[0],i=fc[1],o=fc[2],a=fc[3];n.set(r.left,r.top),i.set(r.left,r.bottom),o.set(r.right,r.top),a.set(r.right,r.bottom),t.apply(n,n),t.apply(i,i),t.apply(o,o),t.apply(a,a);var s=Math.min(n.x,i.x,o.x,a.x),u=Math.min(n.y,i.y,o.y,a.y),l=Math.max(n.x,i.x,o.x,a.x),c=Math.max(n.y,i.y,o.y,a.y);r.x=s,r.y=u,r.width=l-s,r.height=c-u},e.prototype.roundFrame=function(t,r,n,i,o){if(!(t.width<=0||t.height<=0||n.width<=0||n.height<=0)){if(o){var a=o.a,s=o.b,u=o.c,l=o.d;if((Math.abs(s)>1e-4||Math.abs(u)>1e-4)&&(Math.abs(a)>1e-4||Math.abs(l)>1e-4))return}o=o?Av.copyFrom(o):Av.identity(),o.translate(-n.x,-n.y).scale(i.width/n.width,i.height/n.height).translate(i.x,i.y),this.transformAABB(o,t),t.ceil(r),this.transformAABB(o.invert(),t)}},e}(),Fl=function(){function e(t){this.renderer=t}return e.prototype.flush=function(){},e.prototype.destroy=function(){this.renderer=null},e.prototype.start=function(){},e.prototype.stop=function(){this.flush()},e.prototype.render=function(t){},e}(),Fx=function(){function e(t){this.renderer=t,this.emptyRenderer=new Fl(t),this.currentRenderer=this.emptyRenderer}return e.prototype.setObjectRenderer=function(t){this.currentRenderer!==t&&(this.currentRenderer.stop(),this.currentRenderer=t,this.currentRenderer.start())},e.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},e.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer)},e.prototype.copyBoundTextures=function(t,r){for(var n=this.renderer.texture.boundTextures,i=r-1;i>=0;--i)t[i]=n[i]||null,t[i]&&(t[i]._batchLocation=i)},e.prototype.boundArray=function(t,r,n,i){for(var o=t.elements,a=t.ids,s=t.count,u=0,l=0;l=0&&f=Dn.WEBGL2&&(n=t.getContext("webgl2",r)),n)this.webGLVersion=2;else if(this.webGLVersion=1,n=t.getContext("webgl",r)||t.getContext("experimental-webgl",r),!n)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=n,this.getExtensions(),this.gl},e.prototype.getExtensions=function(){var t=this.gl,r={loseContext:t.getExtension("WEBGL_lose_context"),anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),s3tc:t.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:t.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:t.getExtension("WEBGL_compressed_texture_etc"),etc1:t.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:t.getExtension("WEBGL_compressed_texture_atc"),astc:t.getExtension("WEBGL_compressed_texture_astc")};this.webGLVersion===1?Object.assign(this.extensions,r,{drawBuffers:t.getExtension("WEBGL_draw_buffers"),depthTexture:t.getExtension("WEBGL_depth_texture"),vertexArrayObject:t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:t.getExtension("OES_element_index_uint"),floatTexture:t.getExtension("OES_texture_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),textureHalfFloat:t.getExtension("OES_texture_half_float"),textureHalfFloatLinear:t.getExtension("OES_texture_half_float_linear")}):this.webGLVersion===2&&Object.assign(this.extensions,r,{colorBufferFloat:t.getExtension("EXT_color_buffer_float")})},e.prototype.handleContextLost=function(t){var r=this;t.preventDefault(),setTimeout(function(){r.gl.isContextLost()&&r.extensions.loseContext&&r.extensions.loseContext.restoreContext()},0)},e.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.emit(this.gl)},e.prototype.destroy=function(){var t=this.renderer.view;this.renderer=null,t.removeEventListener("webglcontextlost",this.handleContextLost),t.removeEventListener("webglcontextrestored",this.handleContextRestored),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()},e.prototype.postrender=function(){this.renderer.renderingToScreen&&this.gl.flush()},e.prototype.validateContext=function(t){var r=t.getContextAttributes(),n="WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext;n&&(this.webGLVersion=2),r&&!r.stencil&&console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");var i=n||!!t.getExtension("OES_element_index_uint");this.supports.uint32Indices=i,i||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")},e}(),hI=function(){function e(t){this.framebuffer=t,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=nt.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}return e}(),Zie=new Re,Bx=function(){function e(t){this.renderer=t,this.managedFramebuffers=[],this.unknownFramebuffer=new Zf(10,10),this.msaaSamples=null}return e.prototype.contextChange=function(){this.disposeAll(!0);var t=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new Re,this.hasMRT=!0,this.writeDepthTexture=!0,this.renderer.context.webGLVersion===1){var r=this.renderer.context.extensions.drawBuffers,n=this.renderer.context.extensions.depthTexture;te.PREFER_ENV===Dn.WEBGL_LEGACY&&(r=null,n=null),r?t.drawBuffers=function(i){return r.drawBuffersWEBGL(i)}:(this.hasMRT=!1,t.drawBuffers=function(){}),n||(this.writeDepthTexture=!1)}else this.msaaSamples=t.getInternalformatParameter(t.RENDERBUFFER,t.RGBA8,t.SAMPLES)},e.prototype.bind=function(t,r,n){n===void 0&&(n=0);var i=this.gl;if(t){var o=t.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(t);this.current!==t&&(this.current=t,i.bindFramebuffer(i.FRAMEBUFFER,o.framebuffer)),o.mipLevel!==n&&(t.dirtyId++,t.dirtyFormat++,o.mipLevel=n),o.dirtyId!==t.dirtyId&&(o.dirtyId=t.dirtyId,o.dirtyFormat!==t.dirtyFormat?(o.dirtyFormat=t.dirtyFormat,o.dirtySize=t.dirtySize,this.updateFramebuffer(t,n)):o.dirtySize!==t.dirtySize&&(o.dirtySize=t.dirtySize,this.resizeFramebuffer(t)));for(var a=0;a>n,l=r.height>>n,c=u/r.width;this.setViewport(r.x*c,r.y*c,u,l)}else{var u=t.width>>n,l=t.height>>n;this.setViewport(0,0,u,l)}}else this.current&&(this.current=null,i.bindFramebuffer(i.FRAMEBUFFER,null)),r?this.setViewport(r.x,r.y,r.width,r.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)},e.prototype.setViewport=function(t,r,n,i){var o=this.viewport;t=Math.round(t),r=Math.round(r),n=Math.round(n),i=Math.round(i),(o.width!==n||o.height!==i||o.x!==t||o.y!==r)&&(o.x=t,o.y=r,o.width=n,o.height=i,this.gl.viewport(t,r,n,i))},Object.defineProperty(e.prototype,"size",{get:function(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}},enumerable:!1,configurable:!0}),e.prototype.clear=function(t,r,n,i,o){o===void 0&&(o=rl.COLOR|rl.DEPTH);var a=this.gl;a.clearColor(t,r,n,i),a.clear(o)},e.prototype.initFramebuffer=function(t){var r=this.gl,n=new hI(r.createFramebuffer());return n.multisample=this.detectSamples(t.multisample),t.glFramebuffers[this.CONTEXT_UID]=n,this.managedFramebuffers.push(t),t.disposeRunner.add(this),n},e.prototype.resizeFramebuffer=function(t){var r=this.gl,n=t.glFramebuffers[this.CONTEXT_UID];n.msaaBuffer&&(r.bindRenderbuffer(r.RENDERBUFFER,n.msaaBuffer),r.renderbufferStorageMultisample(r.RENDERBUFFER,n.multisample,r.RGBA8,t.width,t.height)),n.stencil&&(r.bindRenderbuffer(r.RENDERBUFFER,n.stencil),n.msaaBuffer?r.renderbufferStorageMultisample(r.RENDERBUFFER,n.multisample,r.DEPTH24_STENCIL8,t.width,t.height):r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,t.width,t.height));var i=t.colorTextures,o=i.length;r.drawBuffers||(o=Math.min(o,1));for(var a=0;a1&&this.canMultisampleFramebuffer(t)?(i.msaaBuffer=i.msaaBuffer||n.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,i.msaaBuffer),n.renderbufferStorageMultisample(n.RENDERBUFFER,i.multisample,n.RGBA8,t.width,t.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.RENDERBUFFER,i.msaaBuffer)):i.msaaBuffer&&(n.deleteRenderbuffer(i.msaaBuffer),i.msaaBuffer=null,i.blitFramebuffer&&(i.blitFramebuffer.dispose(),i.blitFramebuffer=null));for(var s=[],u=0;u1&&n.drawBuffers(s),t.depthTexture){var f=this.writeDepthTexture;if(f){var h=t.depthTexture;this.renderer.texture.bind(h,0),n.framebufferTexture2D(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.TEXTURE_2D,h._glTextures[this.CONTEXT_UID].texture,r)}}(t.stencil||t.depth)&&!(t.depthTexture&&this.writeDepthTexture)?(i.stencil=i.stencil||n.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,i.stencil),i.msaaBuffer?n.renderbufferStorageMultisample(n.RENDERBUFFER,i.multisample,n.DEPTH24_STENCIL8,t.width,t.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,t.width,t.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.RENDERBUFFER,i.stencil)):i.stencil&&(n.deleteRenderbuffer(i.stencil),i.stencil=null)},e.prototype.canMultisampleFramebuffer=function(t){return this.renderer.context.webGLVersion!==1&&t.colorTextures.length<=1&&!t.depthTexture},e.prototype.detectSamples=function(t){var r=this.msaaSamples,n=nt.NONE;if(t<=1||r===null)return n;for(var i=0;i=0&&this.managedFramebuffers.splice(o,1),t.disposeRunner.remove(this),r||(i.deleteFramebuffer(n.framebuffer),n.msaaBuffer&&i.deleteRenderbuffer(n.msaaBuffer),n.stencil&&i.deleteRenderbuffer(n.stencil)),n.blitFramebuffer&&n.blitFramebuffer.dispose()}},e.prototype.disposeAll=function(t){var r=this.managedFramebuffers;this.managedFramebuffers=[];for(var n=0;n0&&c>0,i.textureCacheIds=[],i.destroyed=!1,i.resource=null,i._batchEnabled=0,i._batchLocation=0,i.parentTextureArray=null,i.setResource(r),i}return Object.defineProperty(t.prototype,"realWidth",{get:function(){return Math.round(this.width*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"realHeight",{get:function(){return Math.round(this.height*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mipmap",{get:function(){return this._mipmap},set:function(r){this._mipmap!==r&&(this._mipmap=r,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scaleMode",{get:function(){return this._scaleMode},set:function(r){this._scaleMode!==r&&(this._scaleMode=r,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wrapMode",{get:function(){return this._wrapMode},set:function(r){this._wrapMode!==r&&(this._wrapMode=r,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),t.prototype.setStyle=function(r,n){var i;return r!==void 0&&r!==this.scaleMode&&(this.scaleMode=r,i=!0),n!==void 0&&n!==this.mipmap&&(this.mipmap=n,i=!0),i&&this.dirtyStyleId++,this},t.prototype.setSize=function(r,n,i){return i=i||this.resolution,this.setRealSize(r*i,n*i,i)},t.prototype.setRealSize=function(r,n,i){return this.resolution=i||this.resolution,this.width=Math.round(r)/this.resolution,this.height=Math.round(n)/this.resolution,this._refreshPOT(),this.update(),this},t.prototype._refreshPOT=function(){this.isPowerOfTwo=hy(this.realWidth)&&hy(this.realHeight)},t.prototype.setResolution=function(r){var n=this.resolution;return n===r?this:(this.resolution=r,this.valid&&(this.width=Math.round(this.width*n)/r,this.height=Math.round(this.height*n)/r,this.emit("update",this)),this._refreshPOT(),this)},t.prototype.setResource=function(r){if(this.resource===r)return this;if(this.resource)throw new Error("Resource can be set only once");return r.bind(this),this.resource=r,this},t.prototype.update=function(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit("update",this)):this.width>0&&this.height>0&&(this.valid=!0,this.emit("loaded",this),this.emit("update",this))},t.prototype.onError=function(r){this.emit("error",this,r)},t.prototype.destroy=function(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete Yr[this.cacheId],delete wr[this.cacheId],this.cacheId=null),this.dispose(),t.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0},t.prototype.dispose=function(){this.emit("dispose",this)},t.prototype.castToBaseTexture=function(){return this},t.from=function(r,n,i){i===void 0&&(i=te.STRICT_TEXTURE_CACHE);var o=typeof r=="string",a=null;if(o)a=r;else{if(!r._pixiId){var s=n&&n.pixiIdPrefix||"pixiid";r._pixiId=s+"_"+ao()}a=r._pixiId}var u=Yr[a];if(o&&i&&!u)throw new Error('The cacheId "'+a+'" does not exist in BaseTextureCache.');return u||(u=new t(r,n),u.cacheId=a,t.addToCache(u,a)),u},t.fromBuffer=function(r,n,i,o){r=r||new Float32Array(n*i*4);var a=new aa(r,{width:n,height:i}),s=r instanceof Float32Array?fe.FLOAT:fe.UNSIGNED_BYTE;return new t(a,Object.assign({},hue,o||{width:n,height:i,type:s}))},t.addToCache=function(r,n){n&&(r.textureCacheIds.indexOf(n)===-1&&r.textureCacheIds.push(n),Yr[n]&&console.warn("BaseTexture added to the cache with an id ["+n+"] that already had an entry"),Yr[n]=r)},t.removeFromCache=function(r){if(typeof r=="string"){var n=Yr[r];if(n){var i=n.textureCacheIds.indexOf(r);return i>-1&&n.textureCacheIds.splice(i,1),delete Yr[r],n}}else if(r&&r.textureCacheIds){for(var o=0;o0)if(r.resource)this.addResourceAt(r.resource,n);else throw new Error("CubeResource does not support copying of renderTexture.");else r.target=Yi.TEXTURE_CUBE_MAP_POSITIVE_X+n,r.parentTextureArray=this.baseTexture,this.items[n]=r;return r.valid&&!this.valid&&this.resize(r.realWidth,r.realHeight),this.items[n]=r,this},t.prototype.upload=function(r,n,i){for(var o=this.itemDirtyIds,a=0;a)?\s*()]*-->)?\s*\]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,t}(Kn),pb=function(e){rt(t,e);function t(r,n){var i=this;if(n=n||{},!(r instanceof HTMLVideoElement)){var o=document.createElement("video");o.setAttribute("preload","auto"),o.setAttribute("webkit-playsinline",""),o.setAttribute("playsinline",""),typeof r=="string"&&(r=[r]);var a=r[0].src||r[0];Kn.crossOrigin(o,a,n.crossorigin);for(var s=0;s2},t.prototype._onPlayStart=function(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(jt.shared.add(this.update,this),this._isConnectedToTicker=!0)},t.prototype._onPlayStop=function(){this._isConnectedToTicker&&(jt.shared.remove(this.update,this),this._isConnectedToTicker=!1)},t.prototype._onCanPlay=function(){var r=this.source;r.removeEventListener("canplay",this._onCanPlay),r.removeEventListener("canplaythrough",this._onCanPlay);var n=this.valid;this.resize(r.videoWidth,r.videoHeight),!n&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&r.play()},t.prototype.dispose=function(){this._isConnectedToTicker&&(jt.shared.remove(this.update,this),this._isConnectedToTicker=!1);var r=this.source;r&&(r.removeEventListener("error",this._onError,!0),r.pause(),r.src="",r.load()),e.prototype.dispose.call(this)},Object.defineProperty(t.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(r){r!==this._autoUpdate&&(this._autoUpdate=r,!this._autoUpdate&&this._isConnectedToTicker?(jt.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(jt.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"updateFPS",{get:function(){return this._updateFPS},set:function(r){r!==this._updateFPS&&(this._updateFPS=r)},enumerable:!1,configurable:!0}),t.test=function(r,n){return globalThis.HTMLVideoElement&&r instanceof HTMLVideoElement||t.TYPES.indexOf(n)>-1},t.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"],t.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"},t}(Kn),vb=function(e){rt(t,e);function t(r){return e.call(this,r)||this}return t.test=function(r){return!!globalThis.createImageBitmap&&typeof ImageBitmap<"u"&&r instanceof ImageBitmap},t}(Kn);Rl.push(ep,vb,fb,pb,db,aa,hb,cb);var gR={__proto__:null,Resource:Yo,BaseImageResource:Kn,INSTALLED:Rl,autoDetectResource:Qd,AbstractMultiResource:Jd,ArrayResource:cb,BufferResource:aa,CanvasResource:fb,CubeResource:hb,ImageResource:ep,SVGResource:db,VideoResource:pb,ImageBitmapResource:vb},due=function(e){rt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.upload=function(r,n,i){var o=r.gl;o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.alphaMode===an.UNPACK);var a=n.realWidth,s=n.realHeight;return i.width===a&&i.height===s?o.texSubImage2D(n.target,0,0,0,a,s,n.format,i.type,this.data):(i.width=a,i.height=s,o.texImage2D(n.target,0,i.internalFormat,a,s,0,n.format,i.type,this.data)),!0},t}(aa),Sh=function(){function e(t,r){this.width=Math.round(t||100),this.height=Math.round(r||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new Bt("disposeFramebuffer"),this.multisample=st.NONE}return Object.defineProperty(e.prototype,"colorTexture",{get:function(){return this.colorTextures[0]},enumerable:!1,configurable:!0}),e.prototype.addColorTexture=function(t,r){return t===void 0&&(t=0),this.colorTextures[t]=r||new Ie(null,{scaleMode:Cr.NEAREST,resolution:1,mipmap:Rr.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this},e.prototype.addDepthTexture=function(t){return this.depthTexture=t||new Ie(new due(null,{width:this.width,height:this.height}),{scaleMode:Cr.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:Rr.OFF,format:Z.DEPTH_COMPONENT,type:fe.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this},e.prototype.enableDepth=function(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this},e.prototype.enableStencil=function(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this},e.prototype.resize=function(t,r){if(t=Math.round(t),r=Math.round(r),!(t===this.width&&r===this.height)){this.width=t,this.height=r,this.dirtyId++,this.dirtySize++;for(var n=0;n-1&&n.textureCacheIds.splice(i,1),delete wr[r],n}}else if(r&&r.textureCacheIds){for(var o=0;othis.baseTexture.width,u=i+a>this.baseTexture.height;if(s||u){var l=s&&u?"and":"or",c="X: "+n+" + "+o+" = "+(n+o)+" > "+this.baseTexture.width,f="Y: "+i+" + "+a+" = "+(i+a)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+(c+" "+l+" "+f))}this.valid=o&&a&&this.baseTexture.valid,!this.trim&&!this.rotate&&(this.orig=r),this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rotate",{get:function(){return this._rotate},set:function(r){this._rotate=r,this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.orig.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.orig.height},enumerable:!1,configurable:!0}),t.prototype.castToBaseTexture=function(){return this.baseTexture},Object.defineProperty(t,"EMPTY",{get:function(){return t._EMPTY||(t._EMPTY=new t(new Ie),Nc(t._EMPTY),Nc(t._EMPTY.baseTexture)),t._EMPTY},enumerable:!1,configurable:!0}),Object.defineProperty(t,"WHITE",{get:function(){if(!t._WHITE){var r=te.ADAPTER.createCanvas(16,16),n=r.getContext("2d");r.width=16,r.height=16,n.fillStyle="white",n.fillRect(0,0,16,16),t._WHITE=new t(Ie.from(r)),Nc(t._WHITE),Nc(t._WHITE.baseTexture)}return t._WHITE},enumerable:!1,configurable:!0}),t}(Fs),uo=function(e){rt(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.valid=!0,i.filterFrame=null,i.filterPoolKey=null,i.updateUvs(),i}return Object.defineProperty(t.prototype,"framebuffer",{get:function(){return this.baseTexture.framebuffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"multisample",{get:function(){return this.framebuffer.multisample},set:function(r){this.framebuffer.multisample=r},enumerable:!1,configurable:!0}),t.prototype.resize=function(r,n,i){i===void 0&&(i=!0);var o=this.baseTexture.resolution,a=Math.round(r*o)/o,s=Math.round(n*o)/o;this.valid=a>0&&s>0,this._frame.width=this.orig.width=a,this._frame.height=this.orig.height=s,i&&this.baseTexture.resize(a,s),this.updateUvs()},t.prototype.setResolution=function(r){var n=this.baseTexture;n.resolution!==r&&(n.setResolution(r),this.resize(n.width,n.height,!1))},t.create=function(r){for(var n=arguments,i=[],o=1;o>>0,i>1&&(o+=i*4294967296)):o=i>1?-i:-1,this.texturePool[o]||(this.texturePool[o]=[]);var a=this.texturePool[o].pop();return a||(a=this.createTexture(t,r,i)),a.filterPoolKey=o,a.setResolution(n),a},e.prototype.getFilterTexture=function(t,r,n){var i=this.getOptimalTexture(t.width,t.height,r||t.resolution,n||st.NONE);return i.filterFrame=t.filterFrame,i},e.prototype.returnTexture=function(t){var r=t.filterPoolKey;t.filterFrame=null,this.texturePool[r].push(t)},e.prototype.returnFilterTexture=function(t){this.returnTexture(t)},e.prototype.clear=function(t){if(t=t!==!1,t)for(var r in this.texturePool){var n=this.texturePool[r];if(n)for(var i=0;i0&&t.height>0;for(var r in this.texturePool)if(Number(r)<0){var n=this.texturePool[r];if(n)for(var i=0;i1){for(var c=0;c1&&(f=this.getOptimalFilterTexture(c.width,c.height,r.resolution),f.filterFrame=c.filterFrame),n[h].apply(this,c,f,Kr.CLEAR,r);var d=c;c=f,f=d}n[h].apply(this,c,l.renderTexture,Kr.BLEND,r),h>1&&r.multisample>1&&this.returnFilterTexture(r.renderTexture),this.returnFilterTexture(c),this.returnFilterTexture(f)}r.clear(),this.statePool.push(r)},e.prototype.bindAndClear=function(t,r){r===void 0&&(r=Kr.CLEAR);var n=this.renderer,i=n.renderTexture,o=n.state;if(t===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,t&&t.filterFrame){var a=this.tempRect;a.x=0,a.y=0,a.width=t.filterFrame.width,a.height=t.filterFrame.height,i.bind(t,t.filterFrame,a)}else t!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?i.bind(t):this.renderer.renderTexture.bind(t,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);var s=o.stateId&1||this.forceClear;(r===Kr.CLEAR||r===Kr.BLIT&&s)&&this.renderer.framebuffer.clear(0,0,0,0)},e.prototype.applyFilter=function(t,r,n,i){var o=this.renderer;o.state.set(t.state),this.bindAndClear(n,i),t.uniforms.uSampler=r,t.uniforms.filterGlobals=this.globalUniforms,o.shader.bind(t),t.legacy=!!t.program.attributeData.aTextureCoord,t.legacy?(this.quadUv.map(r._frame,r.filterFrame),o.geometry.bind(this.quadUv),o.geometry.draw(en.TRIANGLES)):(o.geometry.bind(this.quad),o.geometry.draw(en.TRIANGLE_STRIP))},e.prototype.calculateSpriteMatrix=function(t,r){var n=this.activeState,i=n.sourceFrame,o=n.destinationFrame,a=r._texture.orig,s=t.set(o.width,0,0,o.height,i.x,i.y),u=r.worldTransform.copyTo(Pt.TEMP_MATRIX);return u.invert(),s.prepend(u),s.scale(1/a.width,1/a.height),s.translate(r.anchor.x,r.anchor.y),s},e.prototype.destroy=function(){this.renderer=null,this.texturePool.clear(!1)},e.prototype.getOptimalFilterTexture=function(t,r,n,i){return n===void 0&&(n=1),i===void 0&&(i=st.NONE),this.texturePool.getOptimalTexture(t,r,n,i)},e.prototype.getFilterTexture=function(t,r,n){if(typeof t=="number"){var i=t;t=r,r=i}t=t||this.activeState.renderTexture;var o=this.texturePool.getOptimalTexture(t.width,t.height,r||t.resolution,n||st.NONE);return o.filterFrame=t.filterFrame,o},e.prototype.returnFilterTexture=function(t){this.texturePool.returnTexture(t)},e.prototype.emptyPool=function(){this.texturePool.clear(!0)},e.prototype.resize=function(){this.texturePool.setScreenSize(this.renderer.view)},e.prototype.transformAABB=function(t,r){var n=Lc[0],i=Lc[1],o=Lc[2],a=Lc[3];n.set(r.left,r.top),i.set(r.left,r.bottom),o.set(r.right,r.top),a.set(r.right,r.bottom),t.apply(n,n),t.apply(i,i),t.apply(o,o),t.apply(a,a);var s=Math.min(n.x,i.x,o.x,a.x),u=Math.min(n.y,i.y,o.y,a.y),l=Math.max(n.x,i.x,o.x,a.x),c=Math.max(n.y,i.y,o.y,a.y);r.x=s,r.y=u,r.width=l-s,r.height=c-u},e.prototype.roundFrame=function(t,r,n,i,o){if(!(t.width<=0||t.height<=0||n.width<=0||n.height<=0)){if(o){var a=o.a,s=o.b,u=o.c,l=o.d;if((Math.abs(s)>1e-4||Math.abs(u)>1e-4)&&(Math.abs(a)>1e-4||Math.abs(l)>1e-4))return}o=o?am.copyFrom(o):am.identity(),o.translate(-n.x,-n.y).scale(i.width/n.width,i.height/n.height).translate(i.x,i.y),this.transformAABB(o,t),t.ceil(r),this.transformAABB(o.invert(),t)}},e}(),nc=function(){function e(t){this.renderer=t}return e.prototype.flush=function(){},e.prototype.destroy=function(){this.renderer=null},e.prototype.start=function(){},e.prototype.stop=function(){this.flush()},e.prototype.render=function(t){},e}(),xb=function(){function e(t){this.renderer=t,this.emptyRenderer=new nc(t),this.currentRenderer=this.emptyRenderer}return e.prototype.setObjectRenderer=function(t){this.currentRenderer!==t&&(this.currentRenderer.stop(),this.currentRenderer=t,this.currentRenderer.start())},e.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},e.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer)},e.prototype.copyBoundTextures=function(t,r){for(var n=this.renderer.texture.boundTextures,i=r-1;i>=0;--i)t[i]=n[i]||null,t[i]&&(t[i]._batchLocation=i)},e.prototype.boundArray=function(t,r,n,i){for(var o=t.elements,a=t.ids,s=t.count,u=0,l=0;l=0&&f=Xn.WEBGL2&&(n=t.getContext("webgl2",r)),n)this.webGLVersion=2;else if(this.webGLVersion=1,n=t.getContext("webgl",r)||t.getContext("experimental-webgl",r),!n)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=n,this.getExtensions(),this.gl},e.prototype.getExtensions=function(){var t=this.gl,r={loseContext:t.getExtension("WEBGL_lose_context"),anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),s3tc:t.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:t.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:t.getExtension("WEBGL_compressed_texture_etc"),etc1:t.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:t.getExtension("WEBGL_compressed_texture_atc"),astc:t.getExtension("WEBGL_compressed_texture_astc")};this.webGLVersion===1?Object.assign(this.extensions,r,{drawBuffers:t.getExtension("WEBGL_draw_buffers"),depthTexture:t.getExtension("WEBGL_depth_texture"),vertexArrayObject:t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:t.getExtension("OES_element_index_uint"),floatTexture:t.getExtension("OES_texture_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),textureHalfFloat:t.getExtension("OES_texture_half_float"),textureHalfFloatLinear:t.getExtension("OES_texture_half_float_linear")}):this.webGLVersion===2&&Object.assign(this.extensions,r,{colorBufferFloat:t.getExtension("EXT_color_buffer_float")})},e.prototype.handleContextLost=function(t){var r=this;t.preventDefault(),setTimeout(function(){r.gl.isContextLost()&&r.extensions.loseContext&&r.extensions.loseContext.restoreContext()},0)},e.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.emit(this.gl)},e.prototype.destroy=function(){var t=this.renderer.view;this.renderer=null,t.removeEventListener("webglcontextlost",this.handleContextLost),t.removeEventListener("webglcontextrestored",this.handleContextRestored),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()},e.prototype.postrender=function(){this.renderer.renderingToScreen&&this.gl.flush()},e.prototype.validateContext=function(t){var r=t.getContextAttributes(),n="WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext;n&&(this.webGLVersion=2),r&&!r.stencil&&console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");var i=n||!!t.getExtension("OES_element_index_uint");this.supports.uint32Indices=i,i||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")},e}(),bR=function(){function e(t){this.framebuffer=t,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=st.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}return e}(),xue=new Re,Sb=function(){function e(t){this.renderer=t,this.managedFramebuffers=[],this.unknownFramebuffer=new Sh(10,10),this.msaaSamples=null}return e.prototype.contextChange=function(){this.disposeAll(!0);var t=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new Re,this.hasMRT=!0,this.writeDepthTexture=!0,this.renderer.context.webGLVersion===1){var r=this.renderer.context.extensions.drawBuffers,n=this.renderer.context.extensions.depthTexture;te.PREFER_ENV===Xn.WEBGL_LEGACY&&(r=null,n=null),r?t.drawBuffers=function(i){return r.drawBuffersWEBGL(i)}:(this.hasMRT=!1,t.drawBuffers=function(){}),n||(this.writeDepthTexture=!1)}else this.msaaSamples=t.getInternalformatParameter(t.RENDERBUFFER,t.RGBA8,t.SAMPLES)},e.prototype.bind=function(t,r,n){n===void 0&&(n=0);var i=this.gl;if(t){var o=t.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(t);this.current!==t&&(this.current=t,i.bindFramebuffer(i.FRAMEBUFFER,o.framebuffer)),o.mipLevel!==n&&(t.dirtyId++,t.dirtyFormat++,o.mipLevel=n),o.dirtyId!==t.dirtyId&&(o.dirtyId=t.dirtyId,o.dirtyFormat!==t.dirtyFormat?(o.dirtyFormat=t.dirtyFormat,o.dirtySize=t.dirtySize,this.updateFramebuffer(t,n)):o.dirtySize!==t.dirtySize&&(o.dirtySize=t.dirtySize,this.resizeFramebuffer(t)));for(var a=0;a>n,l=r.height>>n,c=u/r.width;this.setViewport(r.x*c,r.y*c,u,l)}else{var u=t.width>>n,l=t.height>>n;this.setViewport(0,0,u,l)}}else this.current&&(this.current=null,i.bindFramebuffer(i.FRAMEBUFFER,null)),r?this.setViewport(r.x,r.y,r.width,r.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)},e.prototype.setViewport=function(t,r,n,i){var o=this.viewport;t=Math.round(t),r=Math.round(r),n=Math.round(n),i=Math.round(i),(o.width!==n||o.height!==i||o.x!==t||o.y!==r)&&(o.x=t,o.y=r,o.width=n,o.height=i,this.gl.viewport(t,r,n,i))},Object.defineProperty(e.prototype,"size",{get:function(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}},enumerable:!1,configurable:!0}),e.prototype.clear=function(t,r,n,i,o){o===void 0&&(o=Sl.COLOR|Sl.DEPTH);var a=this.gl;a.clearColor(t,r,n,i),a.clear(o)},e.prototype.initFramebuffer=function(t){var r=this.gl,n=new bR(r.createFramebuffer());return n.multisample=this.detectSamples(t.multisample),t.glFramebuffers[this.CONTEXT_UID]=n,this.managedFramebuffers.push(t),t.disposeRunner.add(this),n},e.prototype.resizeFramebuffer=function(t){var r=this.gl,n=t.glFramebuffers[this.CONTEXT_UID];n.msaaBuffer&&(r.bindRenderbuffer(r.RENDERBUFFER,n.msaaBuffer),r.renderbufferStorageMultisample(r.RENDERBUFFER,n.multisample,r.RGBA8,t.width,t.height)),n.stencil&&(r.bindRenderbuffer(r.RENDERBUFFER,n.stencil),n.msaaBuffer?r.renderbufferStorageMultisample(r.RENDERBUFFER,n.multisample,r.DEPTH24_STENCIL8,t.width,t.height):r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,t.width,t.height));var i=t.colorTextures,o=i.length;r.drawBuffers||(o=Math.min(o,1));for(var a=0;a1&&this.canMultisampleFramebuffer(t)?(i.msaaBuffer=i.msaaBuffer||n.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,i.msaaBuffer),n.renderbufferStorageMultisample(n.RENDERBUFFER,i.multisample,n.RGBA8,t.width,t.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.RENDERBUFFER,i.msaaBuffer)):i.msaaBuffer&&(n.deleteRenderbuffer(i.msaaBuffer),i.msaaBuffer=null,i.blitFramebuffer&&(i.blitFramebuffer.dispose(),i.blitFramebuffer=null));for(var s=[],u=0;u1&&n.drawBuffers(s),t.depthTexture){var f=this.writeDepthTexture;if(f){var h=t.depthTexture;this.renderer.texture.bind(h,0),n.framebufferTexture2D(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.TEXTURE_2D,h._glTextures[this.CONTEXT_UID].texture,r)}}(t.stencil||t.depth)&&!(t.depthTexture&&this.writeDepthTexture)?(i.stencil=i.stencil||n.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,i.stencil),i.msaaBuffer?n.renderbufferStorageMultisample(n.RENDERBUFFER,i.multisample,n.DEPTH24_STENCIL8,t.width,t.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,t.width,t.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.RENDERBUFFER,i.stencil)):i.stencil&&(n.deleteRenderbuffer(i.stencil),i.stencil=null)},e.prototype.canMultisampleFramebuffer=function(t){return this.renderer.context.webGLVersion!==1&&t.colorTextures.length<=1&&!t.depthTexture},e.prototype.detectSamples=function(t){var r=this.msaaSamples,n=st.NONE;if(t<=1||r===null)return n;for(var i=0;i=0&&this.managedFramebuffers.splice(o,1),t.disposeRunner.remove(this),r||(i.deleteFramebuffer(n.framebuffer),n.msaaBuffer&&i.deleteRenderbuffer(n.msaaBuffer),n.stencil&&i.deleteRenderbuffer(n.stencil)),n.blitFramebuffer&&n.blitFramebuffer.dispose()}},e.prototype.disposeAll=function(t){var r=this.managedFramebuffers;this.managedFramebuffers=[];for(var n=0;n=Dn.WEBGL2&&(t=e.getContext("webgl2",{})),t||(t=e.getContext("webgl",{})||e.getContext("experimental-webgl",{}),t?t.getExtension("WEBGL_draw_buffers"):t=null),Ws=t}return Ws}var hc;function Jie(){if(!hc){hc=Sr.MEDIUM;var e=mI();if(e&&e.getShaderPrecisionFormat){var t=e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT);hc=t.precision?Sr.HIGH:Sr.MEDIUM}}return hc}function vT(e,t,r){if(e.substring(0,9)!=="precision"){var n=t;return t===Sr.HIGH&&r!==Sr.HIGH&&(n=Sr.MEDIUM),"precision "+n+` float; -`+e}else if(r!==Sr.HIGH&&e.substring(0,15)==="precision highp")return e.replace("precision highp","precision mediump");return e}var eoe={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function gI(e){return eoe[e]}var dc=null,mT={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function yI(e,t){if(!dc){var r=Object.keys(mT);dc={};for(var n=0;n=Xn.WEBGL2&&(t=e.getContext("webgl2",{})),t||(t=e.getContext("webgl",{})||e.getContext("experimental-webgl",{}),t?t.getExtension("WEBGL_draw_buffers"):t=null),uu=t}return uu}var Mc;function Sue(){if(!Mc){Mc=Or.MEDIUM;var e=TR();if(e&&e.getShaderPrecisionFormat){var t=e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT);Mc=t.precision?Or.HIGH:Or.MEDIUM}}return Mc}function sC(e,t,r){if(e.substring(0,9)!=="precision"){var n=t;return t===Or.HIGH&&r!==Or.HIGH&&(n=Or.MEDIUM),"precision "+n+` float; +`+e}else if(r!==Or.HIGH&&e.substring(0,15)==="precision highp")return e.replace("precision highp","precision mediump");return e}var wue={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function CR(e){return wue[e]}var Fc=null,uC={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function OR(e,t){if(!Fc){var r=Object.keys(uC);Fc={};for(var n=0;n0&&(t+=` -else `),r0&&(t+=` +else `),r"u"?.5:r,this.isSimple=!1}return Object.defineProperty(e.prototype,"texture",{get:function(){return this._texture},set:function(t){this._texture=t,this._textureID=-1},enumerable:!1,configurable:!0}),e.prototype.multiplyUvs=function(t,r){r===void 0&&(r=t);for(var n=this.mapCoord,i=0;i0?this.maskStack[this.maskStack.length-1]._colorMask:15;n!==r&&this.renderer.gl.colorMask((n&1)!==0,(n&2)!==0,(n&4)!==0,(n&8)!==0)},e.prototype.destroy=function(){this.renderer=null},e}(),bI=function(){function e(t){this.renderer=t,this.maskStack=[],this.glConst=0}return e.prototype.getStackLength=function(){return this.maskStack.length},e.prototype.setMaskStack=function(t){var r=this.renderer.gl,n=this.getStackLength();this.maskStack=t;var i=this.getStackLength();i!==n&&(i===0?r.disable(this.glConst):(r.enable(this.glConst),this._useCurrent()))},e.prototype._useCurrent=function(){},e.prototype.destroy=function(){this.renderer=null,this.maskStack=null},e}(),yT=new Tt,_T=[],Ux=function(e){Je(t,e);function t(r){var n=e.call(this,r)||this;return n.glConst=te.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST,n}return t.prototype.getStackLength=function(){var r=this.maskStack[this.maskStack.length-1];return r?r._scissorCounter:0},t.prototype.calcScissorRect=function(r){var n;if(!r._scissorRectLocal){var i=r._scissorRect,o=r.maskObject,a=this.renderer,s=a.renderTexture,u=o.getBounds(!0,(n=_T.pop())!==null&&n!==void 0?n:new Re);this.roundFrameToPixels(u,s.current?s.current.resolution:a.resolution,s.sourceFrame,s.destinationFrame,a.projection.transform),i&&u.fit(i),r._scissorRectLocal=u}},t.isMatrixRotated=function(r){if(!r)return!1;var n=r.a,i=r.b,o=r.c,a=r.d;return(Math.abs(i)>1e-4||Math.abs(o)>1e-4)&&(Math.abs(n)>1e-4||Math.abs(a)>1e-4)},t.prototype.testScissor=function(r){var n=r.maskObject;if(!n.isFastRect||!n.isFastRect()||t.isMatrixRotated(n.worldTransform)||t.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(r);var i=r._scissorRectLocal;return i.width>0&&i.height>0},t.prototype.roundFrameToPixels=function(r,n,i,o,a){t.isMatrixRotated(a)||(a=a?yT.copyFrom(a):yT.identity(),a.translate(-i.x,-i.y).scale(o.width/i.width,o.height/i.height).translate(o.x,o.y),this.renderer.filter.transformAABB(a,r),r.fit(o),r.x=Math.round(r.x*n),r.y=Math.round(r.y*n),r.width=Math.round(r.width*n),r.height=Math.round(r.height*n))},t.prototype.push=function(r){r._scissorRectLocal||this.calcScissorRect(r);var n=this.renderer.gl;r._scissorRect||n.enable(n.SCISSOR_TEST),r._scissorCounter++,r._scissorRect=r._scissorRectLocal,this._useCurrent()},t.prototype.pop=function(r){var n=this.renderer.gl;r&&_T.push(r._scissorRectLocal),this.getStackLength()>0?this._useCurrent():n.disable(n.SCISSOR_TEST)},t.prototype._useCurrent=function(){var r=this.maskStack[this.maskStack.length-1]._scissorRect,n;this.renderer.renderTexture.current?n=r.y:n=this.renderer.height-r.height-r.y,this.renderer.gl.scissor(r.x,n,r.width,r.height)},t}(bI),Gx=function(e){Je(t,e);function t(r){var n=e.call(this,r)||this;return n.glConst=te.ADAPTER.getWebGLRenderingContext().STENCIL_TEST,n}return t.prototype.getStackLength=function(){var r=this.maskStack[this.maskStack.length-1];return r?r._stencilCounter:0},t.prototype.push=function(r){var n=r.maskObject,i=this.renderer.gl,o=r._stencilCounter;o===0&&(this.renderer.framebuffer.forceStencil(),i.clearStencil(0),i.clear(i.STENCIL_BUFFER_BIT),i.enable(i.STENCIL_TEST)),r._stencilCounter++;var a=r._colorMask;a!==0&&(r._colorMask=0,i.colorMask(!1,!1,!1,!1)),i.stencilFunc(i.EQUAL,o,4294967295),i.stencilOp(i.KEEP,i.KEEP,i.INCR),n.renderable=!0,n.render(this.renderer),this.renderer.batch.flush(),n.renderable=!1,a!==0&&(r._colorMask=a,i.colorMask((a&1)!==0,(a&2)!==0,(a&4)!==0,(a&8)!==0)),this._useCurrent()},t.prototype.pop=function(r){var n=this.renderer.gl;if(this.getStackLength()===0)n.disable(n.STENCIL_TEST);else{var i=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null,o=i?i._colorMask:15;o!==0&&(i._colorMask=0,n.colorMask(!1,!1,!1,!1)),n.stencilOp(n.KEEP,n.KEEP,n.DECR),r.renderable=!0,r.render(this.renderer),this.renderer.batch.flush(),r.renderable=!1,o!==0&&(i._colorMask=o,n.colorMask((o&1)!==0,(o&2)!==0,(o&4)!==0,(o&8)!==0)),this._useCurrent()}},t.prototype._useCurrent=function(){var r=this.renderer.gl;r.stencilFunc(r.EQUAL,this.getStackLength(),4294967295),r.stencilOp(r.KEEP,r.KEEP,r.KEEP)},t}(bI),zx=function(){function e(t){this.renderer=t,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new Tt,this.transform=null}return e.prototype.update=function(t,r,n,i){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=r||this.sourceFrame||t,this.calculateProjection(this.destinationFrame,this.sourceFrame,n,i),this.transform&&this.projectionMatrix.append(this.transform);var o=this.renderer;o.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,o.globalUniforms.update(),o.shader.shader&&o.shader.syncUniformGroup(o.shader.shader.uniforms.globals)},e.prototype.calculateProjection=function(t,r,n,i){var o=this.projectionMatrix,a=i?-1:1;o.identity(),o.a=1/r.width*2,o.d=a*(1/r.height*2),o.tx=-1-r.x*o.a,o.ty=-a-r.y*o.d},e.prototype.setTransform=function(t){},e.prototype.destroy=function(){this.renderer=null},e}(),io=new Re,Xs=new Re,Hx=function(){function e(t){this.renderer=t,this.clearColor=t._backgroundColorRgba,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new Re,this.destinationFrame=new Re,this.viewportFrame=new Re}return e.prototype.bind=function(t,r,n){t===void 0&&(t=null);var i=this.renderer;this.current=t;var o,a,s;t?(o=t.baseTexture,s=o.resolution,r||(io.width=t.frame.width,io.height=t.frame.height,r=io),n||(Xs.x=t.frame.x,Xs.y=t.frame.y,Xs.width=r.width,Xs.height=r.height,n=Xs),a=o.framebuffer):(s=i.resolution,r||(io.width=i.screen.width,io.height=i.screen.height,r=io),n||(n=io,n.width=r.width,n.height=r.height));var u=this.viewportFrame;u.x=n.x*s,u.y=n.y*s,u.width=n.width*s,u.height=n.height*s,t||(u.y=i.view.height-(u.y+u.height)),u.ceil(),this.renderer.framebuffer.bind(a,u),this.renderer.projection.update(n,r,s,!a),t?this.renderer.mask.setMaskStack(o.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(r),this.destinationFrame.copyFrom(n)},e.prototype.clear=function(t,r){this.current?t=t||this.current.baseTexture.clearColor:t=t||this.clearColor;var n=this.destinationFrame,i=this.current?this.current.baseTexture:this.renderer.screen,o=n.width!==i.width||n.height!==i.height;if(o){var a=this.viewportFrame,s=a.x,u=a.y,l=a.width,c=a.height;s=Math.round(s),u=Math.round(u),l=Math.round(l),c=Math.round(c),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(s,u,l,c)}this.renderer.framebuffer.clear(t[0],t[1],t[2],t[3],r),o&&this.renderer.scissor.pop()},e.prototype.resize=function(){this.bind(null)},e.prototype.reset=function(){this.bind(null)},e.prototype.destroy=function(){this.renderer=null},e}();function poe(e,t,r,n,i){r.buffer.update(i)}var voe={float:` +`,lC=new Pt,tp=function(){function e(t,r){this._texture=t,this.mapCoord=new Pt,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._textureID=-1,this._updateID=0,this.clampOffset=0,this.clampMargin=typeof r>"u"?.5:r,this.isSimple=!1}return Object.defineProperty(e.prototype,"texture",{get:function(){return this._texture},set:function(t){this._texture=t,this._textureID=-1},enumerable:!1,configurable:!0}),e.prototype.multiplyUvs=function(t,r){r===void 0&&(r=t);for(var n=this.mapCoord,i=0;i0?this.maskStack[this.maskStack.length-1]._colorMask:15;n!==r&&this.renderer.gl.colorMask((n&1)!==0,(n&2)!==0,(n&4)!==0,(n&8)!==0)},e.prototype.destroy=function(){this.renderer=null},e}(),kR=function(){function e(t){this.renderer=t,this.maskStack=[],this.glConst=0}return e.prototype.getStackLength=function(){return this.maskStack.length},e.prototype.setMaskStack=function(t){var r=this.renderer.gl,n=this.getStackLength();this.maskStack=t;var i=this.getStackLength();i!==n&&(i===0?r.disable(this.glConst):(r.enable(this.glConst),this._useCurrent()))},e.prototype._useCurrent=function(){},e.prototype.destroy=function(){this.renderer=null,this.maskStack=null},e}(),cC=new Pt,fC=[],Tb=function(e){rt(t,e);function t(r){var n=e.call(this,r)||this;return n.glConst=te.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST,n}return t.prototype.getStackLength=function(){var r=this.maskStack[this.maskStack.length-1];return r?r._scissorCounter:0},t.prototype.calcScissorRect=function(r){var n;if(!r._scissorRectLocal){var i=r._scissorRect,o=r.maskObject,a=this.renderer,s=a.renderTexture,u=o.getBounds(!0,(n=fC.pop())!==null&&n!==void 0?n:new Re);this.roundFrameToPixels(u,s.current?s.current.resolution:a.resolution,s.sourceFrame,s.destinationFrame,a.projection.transform),i&&u.fit(i),r._scissorRectLocal=u}},t.isMatrixRotated=function(r){if(!r)return!1;var n=r.a,i=r.b,o=r.c,a=r.d;return(Math.abs(i)>1e-4||Math.abs(o)>1e-4)&&(Math.abs(n)>1e-4||Math.abs(a)>1e-4)},t.prototype.testScissor=function(r){var n=r.maskObject;if(!n.isFastRect||!n.isFastRect()||t.isMatrixRotated(n.worldTransform)||t.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(r);var i=r._scissorRectLocal;return i.width>0&&i.height>0},t.prototype.roundFrameToPixels=function(r,n,i,o,a){t.isMatrixRotated(a)||(a=a?cC.copyFrom(a):cC.identity(),a.translate(-i.x,-i.y).scale(o.width/i.width,o.height/i.height).translate(o.x,o.y),this.renderer.filter.transformAABB(a,r),r.fit(o),r.x=Math.round(r.x*n),r.y=Math.round(r.y*n),r.width=Math.round(r.width*n),r.height=Math.round(r.height*n))},t.prototype.push=function(r){r._scissorRectLocal||this.calcScissorRect(r);var n=this.renderer.gl;r._scissorRect||n.enable(n.SCISSOR_TEST),r._scissorCounter++,r._scissorRect=r._scissorRectLocal,this._useCurrent()},t.prototype.pop=function(r){var n=this.renderer.gl;r&&fC.push(r._scissorRectLocal),this.getStackLength()>0?this._useCurrent():n.disable(n.SCISSOR_TEST)},t.prototype._useCurrent=function(){var r=this.maskStack[this.maskStack.length-1]._scissorRect,n;this.renderer.renderTexture.current?n=r.y:n=this.renderer.height-r.height-r.y,this.renderer.gl.scissor(r.x,n,r.width,r.height)},t}(kR),Cb=function(e){rt(t,e);function t(r){var n=e.call(this,r)||this;return n.glConst=te.ADAPTER.getWebGLRenderingContext().STENCIL_TEST,n}return t.prototype.getStackLength=function(){var r=this.maskStack[this.maskStack.length-1];return r?r._stencilCounter:0},t.prototype.push=function(r){var n=r.maskObject,i=this.renderer.gl,o=r._stencilCounter;o===0&&(this.renderer.framebuffer.forceStencil(),i.clearStencil(0),i.clear(i.STENCIL_BUFFER_BIT),i.enable(i.STENCIL_TEST)),r._stencilCounter++;var a=r._colorMask;a!==0&&(r._colorMask=0,i.colorMask(!1,!1,!1,!1)),i.stencilFunc(i.EQUAL,o,4294967295),i.stencilOp(i.KEEP,i.KEEP,i.INCR),n.renderable=!0,n.render(this.renderer),this.renderer.batch.flush(),n.renderable=!1,a!==0&&(r._colorMask=a,i.colorMask((a&1)!==0,(a&2)!==0,(a&4)!==0,(a&8)!==0)),this._useCurrent()},t.prototype.pop=function(r){var n=this.renderer.gl;if(this.getStackLength()===0)n.disable(n.STENCIL_TEST);else{var i=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null,o=i?i._colorMask:15;o!==0&&(i._colorMask=0,n.colorMask(!1,!1,!1,!1)),n.stencilOp(n.KEEP,n.KEEP,n.DECR),r.renderable=!0,r.render(this.renderer),this.renderer.batch.flush(),r.renderable=!1,o!==0&&(i._colorMask=o,n.colorMask((o&1)!==0,(o&2)!==0,(o&4)!==0,(o&8)!==0)),this._useCurrent()}},t.prototype._useCurrent=function(){var r=this.renderer.gl;r.stencilFunc(r.EQUAL,this.getStackLength(),4294967295),r.stencilOp(r.KEEP,r.KEEP,r.KEEP)},t}(kR),Ob=function(){function e(t){this.renderer=t,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new Pt,this.transform=null}return e.prototype.update=function(t,r,n,i){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=r||this.sourceFrame||t,this.calculateProjection(this.destinationFrame,this.sourceFrame,n,i),this.transform&&this.projectionMatrix.append(this.transform);var o=this.renderer;o.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,o.globalUniforms.update(),o.shader.shader&&o.shader.syncUniformGroup(o.shader.shader.uniforms.globals)},e.prototype.calculateProjection=function(t,r,n,i){var o=this.projectionMatrix,a=i?-1:1;o.identity(),o.a=1/r.width*2,o.d=a*(1/r.height*2),o.tx=-1-r.x*o.a,o.ty=-a-r.y*o.d},e.prototype.setTransform=function(t){},e.prototype.destroy=function(){this.renderer=null},e}(),mo=new Re,cu=new Re,Ab=function(){function e(t){this.renderer=t,this.clearColor=t._backgroundColorRgba,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new Re,this.destinationFrame=new Re,this.viewportFrame=new Re}return e.prototype.bind=function(t,r,n){t===void 0&&(t=null);var i=this.renderer;this.current=t;var o,a,s;t?(o=t.baseTexture,s=o.resolution,r||(mo.width=t.frame.width,mo.height=t.frame.height,r=mo),n||(cu.x=t.frame.x,cu.y=t.frame.y,cu.width=r.width,cu.height=r.height,n=cu),a=o.framebuffer):(s=i.resolution,r||(mo.width=i.screen.width,mo.height=i.screen.height,r=mo),n||(n=mo,n.width=r.width,n.height=r.height));var u=this.viewportFrame;u.x=n.x*s,u.y=n.y*s,u.width=n.width*s,u.height=n.height*s,t||(u.y=i.view.height-(u.y+u.height)),u.ceil(),this.renderer.framebuffer.bind(a,u),this.renderer.projection.update(n,r,s,!a),t?this.renderer.mask.setMaskStack(o.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(r),this.destinationFrame.copyFrom(n)},e.prototype.clear=function(t,r){this.current?t=t||this.current.baseTexture.clearColor:t=t||this.clearColor;var n=this.destinationFrame,i=this.current?this.current.baseTexture:this.renderer.screen,o=n.width!==i.width||n.height!==i.height;if(o){var a=this.viewportFrame,s=a.x,u=a.y,l=a.width,c=a.height;s=Math.round(s),u=Math.round(u),l=Math.round(l),c=Math.round(c),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(s,u,l,c)}this.renderer.framebuffer.clear(t[0],t[1],t[2],t[3],r),o&&this.renderer.scissor.pop()},e.prototype.resize=function(){this.bind(null)},e.prototype.reset=function(){this.bind(null)},e.prototype.destroy=function(){this.renderer=null},e}();function Due(e,t,r,n,i){r.buffer.update(i)}var Bue={float:` data[offset] = v; `,vec2:` data[offset] = v[0]; @@ -568,7 +570,7 @@ void main(void) { data[offset + i] = v[i]; } - `},SI={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:16*2,mat3:16*3,mat4:16*4};function wI(e){for(var t=e.map(function(u){return{data:u,offset:0,dataLen:0,dirty:0}}),r=0,n=0,i=0,o=0;o1&&(r=Math.max(r,16)*a.data.size),a.dataLen=r,n%r!==0&&n<16){var s=n%r%16;n+=s,i+=s}n+r>16?(i=Math.ceil(i/16)*16,a.offset=i,i+=r,n=r):(a.offset=i,n+=r,i+=r)}return i=Math.ceil(i/16)*16,{uboElements:t,size:i}}function EI(e,t){var r=[];for(var n in e)t[n]&&r.push(t[n]);return r.sort(function(i,o){return i.index-o.index}),r}function TI(e,t){if(!e.autoManage)return{size:0,syncFunc:poe};for(var r=EI(e.uniforms,t),n=wI(r),i=n.uboElements,o=n.size,a=[` + `},IR={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:16*2,mat3:16*3,mat4:16*4};function RR(e){for(var t=e.map(function(u){return{data:u,offset:0,dataLen:0,dirty:0}}),r=0,n=0,i=0,o=0;o1&&(r=Math.max(r,16)*a.data.size),a.dataLen=r,n%r!==0&&n<16){var s=n%r%16;n+=s,i+=s}n+r>16?(i=Math.ceil(i/16)*16,a.offset=i,i+=r,n=r):(a.offset=i,n+=r,i+=r)}return i=Math.ceil(i/16)*16,{uboElements:t,size:i}}function NR(e,t){var r=[];for(var n in e)t[n]&&r.push(t[n]);return r.sort(function(i,o){return i.index-o.index}),r}function LR(e,t){if(!e.autoManage)return{size:0,syncFunc:Due};for(var r=NR(e.uniforms,t),n=RR(r),i=n.uboElements,o=n.size,a=[` var v = null; var v2 = null; var cv = null; @@ -576,7 +578,7 @@ void main(void) var gl = renderer.gl var index = 0; var data = buffer.data; - `],s=0;s1){var v=gI(u.data.type),g=Math.max(SI[u.data.type]/16,1),p=v/g,m=(4-p%4)%4;a.push(` + `],s=0;s1){var v=CR(u.data.type),g=Math.max(IR[u.data.type]/16,1),p=v/g,m=(4-p%4)%4;a.push(` cv = ud.`+c+`.value; v = uv.`+c+`; offset = `+u.offset/4+`; @@ -592,7 +594,7 @@ void main(void) offset += `+m+`; } - `)}else{var y=voe[u.data.type];a.push(` + `)}else{var y=Bue[u.data.type];a.push(` cv = ud.`+c+`.value; v = uv.`+c+`; offset = `+u.offset/4+`; @@ -600,7 +602,7 @@ void main(void) `)}}return a.push(` renderer.buffer.update(buffer); `),{size:o,syncFunc:new Function("ud","uv","renderer","syncData","buffer",a.join(` -`))}}var moe=function(){function e(){}return e}(),CI=function(){function e(t,r){this.program=t,this.uniformData=r,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}return e.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null},e}();function goe(e,t){for(var r={},n=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),i=0;if?1:-1});for(var a=0;a>1,n++;this.stateId=t.data}for(var n=0;nthis.checkCountMax&&(this.checkCount=0,this.run())))},e.prototype.run=function(){for(var t=this.renderer.texture,r=t.managedTextures,n=!1,i=0;ithis.maxIdle&&(t.destroyTexture(o,!0),r[i]=null,n=!0)}if(n){for(var a=0,i=0;i=0;i--)this.unload(t.children[i])},e.prototype.destroy=function(){this.renderer=null},e}();function Ooe(e){var t,r,n,i,o,a,s,u,l,c,f,h,d,v,g,p,m,y,_,x,b,w,T;return"WebGL2RenderingContext"in globalThis&&e instanceof globalThis.WebGL2RenderingContext?T=(t={},t[fe.UNSIGNED_BYTE]=(r={},r[Z.RGBA]=e.RGBA8,r[Z.RGB]=e.RGB8,r[Z.RG]=e.RG8,r[Z.RED]=e.R8,r[Z.RGBA_INTEGER]=e.RGBA8UI,r[Z.RGB_INTEGER]=e.RGB8UI,r[Z.RG_INTEGER]=e.RG8UI,r[Z.RED_INTEGER]=e.R8UI,r[Z.ALPHA]=e.ALPHA,r[Z.LUMINANCE]=e.LUMINANCE,r[Z.LUMINANCE_ALPHA]=e.LUMINANCE_ALPHA,r),t[fe.BYTE]=(n={},n[Z.RGBA]=e.RGBA8_SNORM,n[Z.RGB]=e.RGB8_SNORM,n[Z.RG]=e.RG8_SNORM,n[Z.RED]=e.R8_SNORM,n[Z.RGBA_INTEGER]=e.RGBA8I,n[Z.RGB_INTEGER]=e.RGB8I,n[Z.RG_INTEGER]=e.RG8I,n[Z.RED_INTEGER]=e.R8I,n),t[fe.UNSIGNED_SHORT]=(i={},i[Z.RGBA_INTEGER]=e.RGBA16UI,i[Z.RGB_INTEGER]=e.RGB16UI,i[Z.RG_INTEGER]=e.RG16UI,i[Z.RED_INTEGER]=e.R16UI,i[Z.DEPTH_COMPONENT]=e.DEPTH_COMPONENT16,i),t[fe.SHORT]=(o={},o[Z.RGBA_INTEGER]=e.RGBA16I,o[Z.RGB_INTEGER]=e.RGB16I,o[Z.RG_INTEGER]=e.RG16I,o[Z.RED_INTEGER]=e.R16I,o),t[fe.UNSIGNED_INT]=(a={},a[Z.RGBA_INTEGER]=e.RGBA32UI,a[Z.RGB_INTEGER]=e.RGB32UI,a[Z.RG_INTEGER]=e.RG32UI,a[Z.RED_INTEGER]=e.R32UI,a[Z.DEPTH_COMPONENT]=e.DEPTH_COMPONENT24,a),t[fe.INT]=(s={},s[Z.RGBA_INTEGER]=e.RGBA32I,s[Z.RGB_INTEGER]=e.RGB32I,s[Z.RG_INTEGER]=e.RG32I,s[Z.RED_INTEGER]=e.R32I,s),t[fe.FLOAT]=(u={},u[Z.RGBA]=e.RGBA32F,u[Z.RGB]=e.RGB32F,u[Z.RG]=e.RG32F,u[Z.RED]=e.R32F,u[Z.DEPTH_COMPONENT]=e.DEPTH_COMPONENT32F,u),t[fe.HALF_FLOAT]=(l={},l[Z.RGBA]=e.RGBA16F,l[Z.RGB]=e.RGB16F,l[Z.RG]=e.RG16F,l[Z.RED]=e.R16F,l),t[fe.UNSIGNED_SHORT_5_6_5]=(c={},c[Z.RGB]=e.RGB565,c),t[fe.UNSIGNED_SHORT_4_4_4_4]=(f={},f[Z.RGBA]=e.RGBA4,f),t[fe.UNSIGNED_SHORT_5_5_5_1]=(h={},h[Z.RGBA]=e.RGB5_A1,h),t[fe.UNSIGNED_INT_2_10_10_10_REV]=(d={},d[Z.RGBA]=e.RGB10_A2,d[Z.RGBA_INTEGER]=e.RGB10_A2UI,d),t[fe.UNSIGNED_INT_10F_11F_11F_REV]=(v={},v[Z.RGB]=e.R11F_G11F_B10F,v),t[fe.UNSIGNED_INT_5_9_9_9_REV]=(g={},g[Z.RGB]=e.RGB9_E5,g),t[fe.UNSIGNED_INT_24_8]=(p={},p[Z.DEPTH_STENCIL]=e.DEPTH24_STENCIL8,p),t[fe.FLOAT_32_UNSIGNED_INT_24_8_REV]=(m={},m[Z.DEPTH_STENCIL]=e.DEPTH32F_STENCIL8,m),t):T=(y={},y[fe.UNSIGNED_BYTE]=(_={},_[Z.RGBA]=e.RGBA,_[Z.RGB]=e.RGB,_[Z.ALPHA]=e.ALPHA,_[Z.LUMINANCE]=e.LUMINANCE,_[Z.LUMINANCE_ALPHA]=e.LUMINANCE_ALPHA,_),y[fe.UNSIGNED_SHORT_5_6_5]=(x={},x[Z.RGB]=e.RGB,x),y[fe.UNSIGNED_SHORT_4_4_4_4]=(b={},b[Z.RGBA]=e.RGBA,b),y[fe.UNSIGNED_SHORT_5_5_5_1]=(w={},w[Z.RGBA]=e.RGBA,w),y),T}var tf=function(){function e(t){this.texture=t,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=fe.UNSIGNED_BYTE,this.internalFormat=Z.RGBA,this.samplerType=0}return e}(),Xx=function(){function e(t){this.renderer=t,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new Ie,this.hasIntegerTextures=!1}return e.prototype.contextChange=function(){var t=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=Ooe(t);var r=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=r;for(var n=0;n=0;--a){var s=n[a];if(s){var u=s._glTextures[o];u.samplerType!==nl.FLOAT&&this.renderer.texture.unbind(s)}}},e.prototype.initTexture=function(t){var r=new tf(this.gl.createTexture());return r.dirtyId=-1,t._glTextures[this.CONTEXT_UID]=r,this.managedTextures.push(t),t.on("dispose",this.destroyTexture,this),r},e.prototype.initTextureType=function(t,r){var n,i;r.internalFormat=(i=(n=this.internalFormats[t.type])===null||n===void 0?void 0:n[t.format])!==null&&i!==void 0?i:t.format,this.webGLVersion===2&&t.type===fe.HALF_FLOAT?r.type=this.gl.HALF_FLOAT:r.type=t.type},e.prototype.updateTexture=function(t){var r=t._glTextures[this.CONTEXT_UID];if(r){var n=this.renderer;if(this.initTextureType(t,r),t.resource&&t.resource.upload(n,t,r))r.samplerType!==nl.FLOAT&&(this.hasIntegerTextures=!0);else{var i=t.realWidth,o=t.realHeight,a=n.gl;(r.width!==i||r.height!==o||r.dirtyId<0)&&(r.width=i,r.height=o,a.texImage2D(t.target,0,r.internalFormat,i,o,0,t.format,r.type,null))}t.dirtyStyleId!==r.dirtyStyleId&&this.updateTextureStyle(t),r.dirtyId=t.dirtyId}},e.prototype.destroyTexture=function(t,r){var n=this.gl;if(t=t.castToBaseTexture(),t._glTextures[this.CONTEXT_UID]&&(this.unbind(t),n.deleteTexture(t._glTextures[this.CONTEXT_UID].texture),t.off("dispose",this.destroyTexture,this),delete t._glTextures[this.CONTEXT_UID],!r)){var i=this.managedTextures.indexOf(t);i!==-1&&ko(this.managedTextures,i,1)}},e.prototype.updateTextureStyle=function(t){var r=t._glTextures[this.CONTEXT_UID];r&&((t.mipmap===Cr.POW2||this.webGLVersion!==2)&&!t.isPowerOfTwo?r.mipmap=!1:r.mipmap=t.mipmap>=1,this.webGLVersion!==2&&!t.isPowerOfTwo?r.wrapMode=dn.CLAMP:r.wrapMode=t.wrapMode,t.resource&&t.resource.style(this.renderer,t,r)||this.setStyle(t,r),r.dirtyStyleId=t.dirtyStyleId)},e.prototype.setStyle=function(t,r){var n=this.gl;if(r.mipmap&&t.mipmap!==Cr.ON_MANUAL&&n.generateMipmap(t.target),n.texParameteri(t.target,n.TEXTURE_WRAP_S,r.wrapMode),n.texParameteri(t.target,n.TEXTURE_WRAP_T,r.wrapMode),r.mipmap){n.texParameteri(t.target,n.TEXTURE_MIN_FILTER,t.scaleMode===br.LINEAR?n.LINEAR_MIPMAP_LINEAR:n.NEAREST_MIPMAP_NEAREST);var i=this.renderer.context.extensions.anisotropicFiltering;if(i&&t.anisotropicLevel>0&&t.scaleMode===br.LINEAR){var o=Math.min(t.anisotropicLevel,n.getParameter(i.MAX_TEXTURE_MAX_ANISOTROPY_EXT));n.texParameterf(t.target,i.TEXTURE_MAX_ANISOTROPY_EXT,o)}}else n.texParameteri(t.target,n.TEXTURE_MIN_FILTER,t.scaleMode===br.LINEAR?n.LINEAR:n.NEAREST);n.texParameteri(t.target,n.TEXTURE_MAG_FILTER,t.scaleMode===br.LINEAR?n.LINEAR:n.NEAREST)},e.prototype.destroy=function(){this.renderer=null},e}(),AI={__proto__:null,FilterSystem:Mx,BatchSystem:Fx,ContextSystem:Dx,FramebufferSystem:Bx,GeometrySystem:jx,MaskSystem:$x,ScissorSystem:Ux,StencilSystem:Gx,ProjectionSystem:zx,RenderTextureSystem:Hx,ShaderSystem:Vx,StateSystem:Wx,TextureGCSystem:qx,TextureSystem:Xx},Dv=new Tt,PI=function(e){Je(t,e);function t(r,n){r===void 0&&(r=Wa.UNKNOWN);var i=e.call(this)||this;return n=Object.assign({},te.RENDER_OPTIONS,n),i.options=n,i.type=r,i.screen=new Re(0,0,n.width,n.height),i.view=n.view||te.ADAPTER.createCanvas(),i.resolution=n.resolution||te.RESOLUTION,i.useContextAlpha=n.useContextAlpha,i.autoDensity=!!n.autoDensity,i.preserveDrawingBuffer=n.preserveDrawingBuffer,i.clearBeforeRender=n.clearBeforeRender,i._backgroundColor=0,i._backgroundColorRgba=[0,0,0,1],i._backgroundColorString="#000000",i.backgroundColor=n.backgroundColor||i._backgroundColor,i.backgroundAlpha=n.backgroundAlpha,n.transparent!==void 0&&(hr("6.0.0","Option transparent is deprecated, please use backgroundAlpha instead."),i.useContextAlpha=n.transparent,i.backgroundAlpha=n.transparent?0:1),i._lastObjectRendered=null,i.plugins={},i}return t.prototype.initPlugins=function(r){for(var n in r)this.plugins[n]=new r[n](this)},Object.defineProperty(t.prototype,"width",{get:function(){return this.view.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.view.height},enumerable:!1,configurable:!0}),t.prototype.resize=function(r,n){this.view.width=Math.round(r*this.resolution),this.view.height=Math.round(n*this.resolution);var i=this.view.width/this.resolution,o=this.view.height/this.resolution;this.screen.width=i,this.screen.height=o,this.autoDensity&&(this.view.style.width=i+"px",this.view.style.height=o+"px"),this.emit("resize",i,o)},t.prototype.generateTexture=function(r,n,i,o){n===void 0&&(n={}),typeof n=="number"&&(hr("6.1.0","generateTexture options (scaleMode, resolution, region) are now object options."),n={scaleMode:n,resolution:i,region:o});var a=n.region,s=Gie(n,["region"]);o=a||r.getLocalBounds(null,!0),o.width===0&&(o.width=1),o.height===0&&(o.height=1);var u=Zi.create($g({width:o.width,height:o.height},s));return Dv.tx=-o.x,Dv.ty=-o.y,this.render(r,{renderTexture:u,clear:!1,transform:Dv,skipUpdateTransform:!!r.parent}),u},t.prototype.destroy=function(r){for(var n in this.plugins)this.plugins[n].destroy(),this.plugins[n]=null;r&&this.view.parentNode&&this.view.parentNode.removeChild(this.view);var i=this;i.plugins=null,i.type=Wa.UNKNOWN,i.view=null,i.screen=null,i._tempDisplayObjectParent=null,i.options=null,this._backgroundColorRgba=null,this._backgroundColorString=null,this._lastObjectRendered=null},Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(r){this._backgroundColor=r,this._backgroundColorString=yx(r),jt(r,this._backgroundColorRgba)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundAlpha",{get:function(){return this._backgroundColorRgba[3]},set:function(r){this._backgroundColorRgba[3]=r},enumerable:!1,configurable:!0}),t}(ys),Aoe=function(){function e(t){this.buffer=t||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}return e}(),Poe=function(){function e(t){this.renderer=t,this.managedBuffers={},this.boundBufferBases={}}return e.prototype.destroy=function(){this.renderer=null},e.prototype.contextChange=function(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID},e.prototype.bind=function(t){var r=this,n=r.gl,i=r.CONTEXT_UID,o=t._glBuffers[i]||this.createGLBuffer(t);n.bindBuffer(t.type,o.buffer)},e.prototype.bindBufferBase=function(t,r){var n=this,i=n.gl,o=n.CONTEXT_UID;if(this.boundBufferBases[r]!==t){var a=t._glBuffers[o]||this.createGLBuffer(t);this.boundBufferBases[r]=t,i.bindBufferBase(i.UNIFORM_BUFFER,r,a.buffer)}},e.prototype.bindBufferRange=function(t,r,n){var i=this,o=i.gl,a=i.CONTEXT_UID;n=n||0;var s=t._glBuffers[a]||this.createGLBuffer(t);o.bindBufferRange(o.UNIFORM_BUFFER,r||0,s.buffer,n*256,256)},e.prototype.update=function(t){var r=this,n=r.gl,i=r.CONTEXT_UID,o=t._glBuffers[i];if(t._updateID!==o.updateID)if(o.updateID=t._updateID,n.bindBuffer(t.type,o.buffer),o.byteLength>=t.data.byteLength)n.bufferSubData(t.type,0,t.data);else{var a=t.static?n.STATIC_DRAW:n.DYNAMIC_DRAW;o.byteLength=t.data.byteLength,n.bufferData(t.type,t.data,a)}},e.prototype.dispose=function(t,r){if(this.managedBuffers[t.id]){delete this.managedBuffers[t.id];var n=t._glBuffers[this.CONTEXT_UID],i=this.gl;t.disposeRunner.remove(this),n&&(r||i.deleteBuffer(n.buffer),delete t._glBuffers[this.CONTEXT_UID])}},e.prototype.disposeAll=function(t){for(var r=Object.keys(this.managedBuffers),n=0;n=nt.HIGH?this.multisample=nt.HIGH:n>=nt.MEDIUM?this.multisample=nt.MEDIUM:n>=nt.LOW?this.multisample=nt.LOW:this.multisample=nt.NONE},t.prototype.addSystem=function(r,n){var i=new r(this);if(this[n])throw new Error('Whoops! The name "'+n+'" is already in use');this[n]=i;for(var o in this.runners)this.runners[o].add(i);return this},t.prototype.render=function(r,n){var i,o,a,s;if(n&&(n instanceof Zi?(hr("6.0.0","Renderer#render arguments changed, use options instead."),i=n,o=arguments[2],a=arguments[3],s=arguments[4]):(i=n.renderTexture,o=n.clear,a=n.transform,s=n.skipUpdateTransform)),this.renderingToScreen=!i,this.runners.prerender.emit(),this.emit("prerender"),this.projection.transform=a,!this.context.isLost){if(i||(this._lastObjectRendered=r),!s){var u=r.enableTempParent();r.updateTransform(),r.disableTempParent(u)}this.renderTexture.bind(i),this.batch.currentRenderer.start(),(o!==void 0?o:this.clearBeforeRender)&&this.renderTexture.clear(),r.render(this),this.batch.currentRenderer.flush(),i&&i.baseTexture.update(),this.runners.postrender.emit(),this.projection.transform=null,this.emit("postrender")}},t.prototype.generateTexture=function(r,n,i,o){n===void 0&&(n={});var a=e.prototype.generateTexture.call(this,r,n,i,o);return this.framebuffer.blit(),a},t.prototype.resize=function(r,n){e.prototype.resize.call(this,r,n),this.runners.resize.emit(this.screen.height,this.screen.width)},t.prototype.reset=function(){return this.runners.reset.emit(),this},t.prototype.clear=function(){this.renderTexture.bind(),this.renderTexture.clear()},t.prototype.destroy=function(r){this.runners.destroy.emit();for(var n in this.runners)this.runners[n].destroy();e.prototype.destroy.call(this,r),this.gl=null},Object.defineProperty(t.prototype,"extract",{get:function(){return hr("6.0.0","Renderer#extract has been deprecated, please use Renderer#plugins.extract instead."),this.plugins.extract},enumerable:!1,configurable:!0}),t.registerPlugin=function(r,n){hr("6.5.0","Renderer.registerPlugin() has been deprecated, please use extensions.add() instead."),qn.add({name:r,type:Ve.RendererPlugin,ref:n})},t.__plugins={},t}(PI);qn.handleByMap(Ve.RendererPlugin,Yx.__plugins);function kI(e){return Yx.create(e)}var koe=`attribute vec2 aVertexPosition; +`))}}var jue=function(){function e(){}return e}(),MR=function(){function e(t,r){this.program=t,this.uniformData=r,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}return e.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null},e}();function $ue(e,t){for(var r={},n=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),i=0;if?1:-1});for(var a=0;a>1,n++;this.stateId=t.data}for(var n=0;nthis.checkCountMax&&(this.checkCount=0,this.run())))},e.prototype.run=function(){for(var t=this.renderer.texture,r=t.managedTextures,n=!1,i=0;ithis.maxIdle&&(t.destroyTexture(o,!0),r[i]=null,n=!0)}if(n){for(var a=0,i=0;i=0;i--)this.unload(t.children[i])},e.prototype.destroy=function(){this.renderer=null},e}();function Kue(e){var t,r,n,i,o,a,s,u,l,c,f,h,d,v,g,p,m,y,_,x,b,w,T;return"WebGL2RenderingContext"in globalThis&&e instanceof globalThis.WebGL2RenderingContext?T=(t={},t[fe.UNSIGNED_BYTE]=(r={},r[Z.RGBA]=e.RGBA8,r[Z.RGB]=e.RGB8,r[Z.RG]=e.RG8,r[Z.RED]=e.R8,r[Z.RGBA_INTEGER]=e.RGBA8UI,r[Z.RGB_INTEGER]=e.RGB8UI,r[Z.RG_INTEGER]=e.RG8UI,r[Z.RED_INTEGER]=e.R8UI,r[Z.ALPHA]=e.ALPHA,r[Z.LUMINANCE]=e.LUMINANCE,r[Z.LUMINANCE_ALPHA]=e.LUMINANCE_ALPHA,r),t[fe.BYTE]=(n={},n[Z.RGBA]=e.RGBA8_SNORM,n[Z.RGB]=e.RGB8_SNORM,n[Z.RG]=e.RG8_SNORM,n[Z.RED]=e.R8_SNORM,n[Z.RGBA_INTEGER]=e.RGBA8I,n[Z.RGB_INTEGER]=e.RGB8I,n[Z.RG_INTEGER]=e.RG8I,n[Z.RED_INTEGER]=e.R8I,n),t[fe.UNSIGNED_SHORT]=(i={},i[Z.RGBA_INTEGER]=e.RGBA16UI,i[Z.RGB_INTEGER]=e.RGB16UI,i[Z.RG_INTEGER]=e.RG16UI,i[Z.RED_INTEGER]=e.R16UI,i[Z.DEPTH_COMPONENT]=e.DEPTH_COMPONENT16,i),t[fe.SHORT]=(o={},o[Z.RGBA_INTEGER]=e.RGBA16I,o[Z.RGB_INTEGER]=e.RGB16I,o[Z.RG_INTEGER]=e.RG16I,o[Z.RED_INTEGER]=e.R16I,o),t[fe.UNSIGNED_INT]=(a={},a[Z.RGBA_INTEGER]=e.RGBA32UI,a[Z.RGB_INTEGER]=e.RGB32UI,a[Z.RG_INTEGER]=e.RG32UI,a[Z.RED_INTEGER]=e.R32UI,a[Z.DEPTH_COMPONENT]=e.DEPTH_COMPONENT24,a),t[fe.INT]=(s={},s[Z.RGBA_INTEGER]=e.RGBA32I,s[Z.RGB_INTEGER]=e.RGB32I,s[Z.RG_INTEGER]=e.RG32I,s[Z.RED_INTEGER]=e.R32I,s),t[fe.FLOAT]=(u={},u[Z.RGBA]=e.RGBA32F,u[Z.RGB]=e.RGB32F,u[Z.RG]=e.RG32F,u[Z.RED]=e.R32F,u[Z.DEPTH_COMPONENT]=e.DEPTH_COMPONENT32F,u),t[fe.HALF_FLOAT]=(l={},l[Z.RGBA]=e.RGBA16F,l[Z.RGB]=e.RGB16F,l[Z.RG]=e.RG16F,l[Z.RED]=e.R16F,l),t[fe.UNSIGNED_SHORT_5_6_5]=(c={},c[Z.RGB]=e.RGB565,c),t[fe.UNSIGNED_SHORT_4_4_4_4]=(f={},f[Z.RGBA]=e.RGBA4,f),t[fe.UNSIGNED_SHORT_5_5_5_1]=(h={},h[Z.RGBA]=e.RGB5_A1,h),t[fe.UNSIGNED_INT_2_10_10_10_REV]=(d={},d[Z.RGBA]=e.RGB10_A2,d[Z.RGBA_INTEGER]=e.RGB10_A2UI,d),t[fe.UNSIGNED_INT_10F_11F_11F_REV]=(v={},v[Z.RGB]=e.R11F_G11F_B10F,v),t[fe.UNSIGNED_INT_5_9_9_9_REV]=(g={},g[Z.RGB]=e.RGB9_E5,g),t[fe.UNSIGNED_INT_24_8]=(p={},p[Z.DEPTH_STENCIL]=e.DEPTH24_STENCIL8,p),t[fe.FLOAT_32_UNSIGNED_INT_24_8_REV]=(m={},m[Z.DEPTH_STENCIL]=e.DEPTH32F_STENCIL8,m),t):T=(y={},y[fe.UNSIGNED_BYTE]=(_={},_[Z.RGBA]=e.RGBA,_[Z.RGB]=e.RGB,_[Z.ALPHA]=e.ALPHA,_[Z.LUMINANCE]=e.LUMINANCE,_[Z.LUMINANCE_ALPHA]=e.LUMINANCE_ALPHA,_),y[fe.UNSIGNED_SHORT_5_6_5]=(x={},x[Z.RGB]=e.RGB,x),y[fe.UNSIGNED_SHORT_4_4_4_4]=(b={},b[Z.RGBA]=e.RGBA,b),y[fe.UNSIGNED_SHORT_5_5_5_1]=(w={},w[Z.RGBA]=e.RGBA,w),y),T}var Of=function(){function e(t){this.texture=t,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=fe.UNSIGNED_BYTE,this.internalFormat=Z.RGBA,this.samplerType=0}return e}(),Rb=function(){function e(t){this.renderer=t,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new Ie,this.hasIntegerTextures=!1}return e.prototype.contextChange=function(){var t=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=Kue(t);var r=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=r;for(var n=0;n=0;--a){var s=n[a];if(s){var u=s._glTextures[o];u.samplerType!==wl.FLOAT&&this.renderer.texture.unbind(s)}}},e.prototype.initTexture=function(t){var r=new Of(this.gl.createTexture());return r.dirtyId=-1,t._glTextures[this.CONTEXT_UID]=r,this.managedTextures.push(t),t.on("dispose",this.destroyTexture,this),r},e.prototype.initTextureType=function(t,r){var n,i;r.internalFormat=(i=(n=this.internalFormats[t.type])===null||n===void 0?void 0:n[t.format])!==null&&i!==void 0?i:t.format,this.webGLVersion===2&&t.type===fe.HALF_FLOAT?r.type=this.gl.HALF_FLOAT:r.type=t.type},e.prototype.updateTexture=function(t){var r=t._glTextures[this.CONTEXT_UID];if(r){var n=this.renderer;if(this.initTextureType(t,r),t.resource&&t.resource.upload(n,t,r))r.samplerType!==wl.FLOAT&&(this.hasIntegerTextures=!0);else{var i=t.realWidth,o=t.realHeight,a=n.gl;(r.width!==i||r.height!==o||r.dirtyId<0)&&(r.width=i,r.height=o,a.texImage2D(t.target,0,r.internalFormat,i,o,0,t.format,r.type,null))}t.dirtyStyleId!==r.dirtyStyleId&&this.updateTextureStyle(t),r.dirtyId=t.dirtyId}},e.prototype.destroyTexture=function(t,r){var n=this.gl;if(t=t.castToBaseTexture(),t._glTextures[this.CONTEXT_UID]&&(this.unbind(t),n.deleteTexture(t._glTextures[this.CONTEXT_UID].texture),t.off("dispose",this.destroyTexture,this),delete t._glTextures[this.CONTEXT_UID],!r)){var i=this.managedTextures.indexOf(t);i!==-1&&Go(this.managedTextures,i,1)}},e.prototype.updateTextureStyle=function(t){var r=t._glTextures[this.CONTEXT_UID];r&&((t.mipmap===Rr.POW2||this.webGLVersion!==2)&&!t.isPowerOfTwo?r.mipmap=!1:r.mipmap=t.mipmap>=1,this.webGLVersion!==2&&!t.isPowerOfTwo?r.wrapMode=xn.CLAMP:r.wrapMode=t.wrapMode,t.resource&&t.resource.style(this.renderer,t,r)||this.setStyle(t,r),r.dirtyStyleId=t.dirtyStyleId)},e.prototype.setStyle=function(t,r){var n=this.gl;if(r.mipmap&&t.mipmap!==Rr.ON_MANUAL&&n.generateMipmap(t.target),n.texParameteri(t.target,n.TEXTURE_WRAP_S,r.wrapMode),n.texParameteri(t.target,n.TEXTURE_WRAP_T,r.wrapMode),r.mipmap){n.texParameteri(t.target,n.TEXTURE_MIN_FILTER,t.scaleMode===Cr.LINEAR?n.LINEAR_MIPMAP_LINEAR:n.NEAREST_MIPMAP_NEAREST);var i=this.renderer.context.extensions.anisotropicFiltering;if(i&&t.anisotropicLevel>0&&t.scaleMode===Cr.LINEAR){var o=Math.min(t.anisotropicLevel,n.getParameter(i.MAX_TEXTURE_MAX_ANISOTROPY_EXT));n.texParameterf(t.target,i.TEXTURE_MAX_ANISOTROPY_EXT,o)}}else n.texParameteri(t.target,n.TEXTURE_MIN_FILTER,t.scaleMode===Cr.LINEAR?n.LINEAR:n.NEAREST);n.texParameteri(t.target,n.TEXTURE_MAG_FILTER,t.scaleMode===Cr.LINEAR?n.LINEAR:n.NEAREST)},e.prototype.destroy=function(){this.renderer=null},e}(),DR={__proto__:null,FilterSystem:_b,BatchSystem:xb,ContextSystem:bb,FramebufferSystem:Sb,GeometrySystem:wb,MaskSystem:Eb,ScissorSystem:Tb,StencilSystem:Cb,ProjectionSystem:Ob,RenderTextureSystem:Ab,ShaderSystem:Pb,StateSystem:kb,TextureGCSystem:Ib,TextureSystem:Rb},vm=new Pt,BR=function(e){rt(t,e);function t(r,n){r===void 0&&(r=ss.UNKNOWN);var i=e.call(this)||this;return n=Object.assign({},te.RENDER_OPTIONS,n),i.options=n,i.type=r,i.screen=new Re(0,0,n.width,n.height),i.view=n.view||te.ADAPTER.createCanvas(),i.resolution=n.resolution||te.RESOLUTION,i.useContextAlpha=n.useContextAlpha,i.autoDensity=!!n.autoDensity,i.preserveDrawingBuffer=n.preserveDrawingBuffer,i.clearBeforeRender=n.clearBeforeRender,i._backgroundColor=0,i._backgroundColorRgba=[0,0,0,1],i._backgroundColorString="#000000",i.backgroundColor=n.backgroundColor||i._backgroundColor,i.backgroundAlpha=n.backgroundAlpha,n.transparent!==void 0&&(mr("6.0.0","Option transparent is deprecated, please use backgroundAlpha instead."),i.useContextAlpha=n.transparent,i.backgroundAlpha=n.transparent?0:1),i._lastObjectRendered=null,i.plugins={},i}return t.prototype.initPlugins=function(r){for(var n in r)this.plugins[n]=new r[n](this)},Object.defineProperty(t.prototype,"width",{get:function(){return this.view.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.view.height},enumerable:!1,configurable:!0}),t.prototype.resize=function(r,n){this.view.width=Math.round(r*this.resolution),this.view.height=Math.round(n*this.resolution);var i=this.view.width/this.resolution,o=this.view.height/this.resolution;this.screen.width=i,this.screen.height=o,this.autoDensity&&(this.view.style.width=i+"px",this.view.style.height=o+"px"),this.emit("resize",i,o)},t.prototype.generateTexture=function(r,n,i,o){n===void 0&&(n={}),typeof n=="number"&&(mr("6.1.0","generateTexture options (scaleMode, resolution, region) are now object options."),n={scaleMode:n,resolution:i,region:o});var a=n.region,s=fue(n,["region"]);o=a||r.getLocalBounds(null,!0),o.width===0&&(o.width=1),o.height===0&&(o.height=1);var u=uo.create(_y({width:o.width,height:o.height},s));return vm.tx=-o.x,vm.ty=-o.y,this.render(r,{renderTexture:u,clear:!1,transform:vm,skipUpdateTransform:!!r.parent}),u},t.prototype.destroy=function(r){for(var n in this.plugins)this.plugins[n].destroy(),this.plugins[n]=null;r&&this.view.parentNode&&this.view.parentNode.removeChild(this.view);var i=this;i.plugins=null,i.type=ss.UNKNOWN,i.view=null,i.screen=null,i._tempDisplayObjectParent=null,i.options=null,this._backgroundColorRgba=null,this._backgroundColorString=null,this._lastObjectRendered=null},Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(r){this._backgroundColor=r,this._backgroundColorString=rb(r),Gt(r,this._backgroundColorRgba)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundAlpha",{get:function(){return this._backgroundColorRgba[3]},set:function(r){this._backgroundColorRgba[3]=r},enumerable:!1,configurable:!0}),t}(Fs),Zue=function(){function e(t){this.buffer=t||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}return e}(),Que=function(){function e(t){this.renderer=t,this.managedBuffers={},this.boundBufferBases={}}return e.prototype.destroy=function(){this.renderer=null},e.prototype.contextChange=function(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID},e.prototype.bind=function(t){var r=this,n=r.gl,i=r.CONTEXT_UID,o=t._glBuffers[i]||this.createGLBuffer(t);n.bindBuffer(t.type,o.buffer)},e.prototype.bindBufferBase=function(t,r){var n=this,i=n.gl,o=n.CONTEXT_UID;if(this.boundBufferBases[r]!==t){var a=t._glBuffers[o]||this.createGLBuffer(t);this.boundBufferBases[r]=t,i.bindBufferBase(i.UNIFORM_BUFFER,r,a.buffer)}},e.prototype.bindBufferRange=function(t,r,n){var i=this,o=i.gl,a=i.CONTEXT_UID;n=n||0;var s=t._glBuffers[a]||this.createGLBuffer(t);o.bindBufferRange(o.UNIFORM_BUFFER,r||0,s.buffer,n*256,256)},e.prototype.update=function(t){var r=this,n=r.gl,i=r.CONTEXT_UID,o=t._glBuffers[i];if(t._updateID!==o.updateID)if(o.updateID=t._updateID,n.bindBuffer(t.type,o.buffer),o.byteLength>=t.data.byteLength)n.bufferSubData(t.type,0,t.data);else{var a=t.static?n.STATIC_DRAW:n.DYNAMIC_DRAW;o.byteLength=t.data.byteLength,n.bufferData(t.type,t.data,a)}},e.prototype.dispose=function(t,r){if(this.managedBuffers[t.id]){delete this.managedBuffers[t.id];var n=t._glBuffers[this.CONTEXT_UID],i=this.gl;t.disposeRunner.remove(this),n&&(r||i.deleteBuffer(n.buffer),delete t._glBuffers[this.CONTEXT_UID])}},e.prototype.disposeAll=function(t){for(var r=Object.keys(this.managedBuffers),n=0;n=st.HIGH?this.multisample=st.HIGH:n>=st.MEDIUM?this.multisample=st.MEDIUM:n>=st.LOW?this.multisample=st.LOW:this.multisample=st.NONE},t.prototype.addSystem=function(r,n){var i=new r(this);if(this[n])throw new Error('Whoops! The name "'+n+'" is already in use');this[n]=i;for(var o in this.runners)this.runners[o].add(i);return this},t.prototype.render=function(r,n){var i,o,a,s;if(n&&(n instanceof uo?(mr("6.0.0","Renderer#render arguments changed, use options instead."),i=n,o=arguments[2],a=arguments[3],s=arguments[4]):(i=n.renderTexture,o=n.clear,a=n.transform,s=n.skipUpdateTransform)),this.renderingToScreen=!i,this.runners.prerender.emit(),this.emit("prerender"),this.projection.transform=a,!this.context.isLost){if(i||(this._lastObjectRendered=r),!s){var u=r.enableTempParent();r.updateTransform(),r.disableTempParent(u)}this.renderTexture.bind(i),this.batch.currentRenderer.start(),(o!==void 0?o:this.clearBeforeRender)&&this.renderTexture.clear(),r.render(this),this.batch.currentRenderer.flush(),i&&i.baseTexture.update(),this.runners.postrender.emit(),this.projection.transform=null,this.emit("postrender")}},t.prototype.generateTexture=function(r,n,i,o){n===void 0&&(n={});var a=e.prototype.generateTexture.call(this,r,n,i,o);return this.framebuffer.blit(),a},t.prototype.resize=function(r,n){e.prototype.resize.call(this,r,n),this.runners.resize.emit(this.screen.height,this.screen.width)},t.prototype.reset=function(){return this.runners.reset.emit(),this},t.prototype.clear=function(){this.renderTexture.bind(),this.renderTexture.clear()},t.prototype.destroy=function(r){this.runners.destroy.emit();for(var n in this.runners)this.runners[n].destroy();e.prototype.destroy.call(this,r),this.gl=null},Object.defineProperty(t.prototype,"extract",{get:function(){return mr("6.0.0","Renderer#extract has been deprecated, please use Renderer#plugins.extract instead."),this.plugins.extract},enumerable:!1,configurable:!0}),t.registerPlugin=function(r,n){mr("6.5.0","Renderer.registerPlugin() has been deprecated, please use extensions.add() instead."),ii.add({name:r,type:Ye.RendererPlugin,ref:n})},t.__plugins={},t}(BR);ii.handleByMap(Ye.RendererPlugin,Nb.__plugins);function jR(e){return Nb.create(e)}var Jue=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -611,7 +613,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,Ioe=`attribute vec2 aVertexPosition; +}`,ele=`attribute vec2 aVertexPosition; uniform mat3 projectionMatrix; @@ -637,7 +639,7 @@ void main(void) gl_Position = filterVertexPosition(); vTextureCoord = filterTextureCoord(); } -`,II=koe,Kx=Ioe,Roe=function(){function e(t){hr("6.1.0","System class is deprecated, implemement ISystem interface instead."),this.renderer=t}return e.prototype.destroy=function(){this.renderer=null},e}(),Qf=function(){function e(){this.texArray=null,this.blend=0,this.type=qr.TRIANGLES,this.start=0,this.size=0,this.data=null}return e}(),Jf=function(){function e(){this.elements=[],this.ids=[],this.count=0}return e.prototype.clear=function(){for(var t=0;tthis.size&&this.flush(),this._vertexCount+=r.vertexData.length/2,this._indexCount+=r.indices.length,this._bufferedTextures[this._bufferSize]=r._texture.baseTexture,this._bufferedElements[this._bufferSize++]=r)},t.prototype.buildTexturesAndDrawCalls=function(){var r=this,n=r._bufferedTextures,i=r.MAX_TEXTURES,o=t._textureArrayPool,a=this.renderer.batch,s=this._tempBoundTextures,u=this.renderer.textureGC.count,l=++Ie._globalBatch,c=0,f=o[0],h=0;a.copyBoundTextures(s,i);for(var d=0;d=i&&(a.boundArray(f,s,l,i),this.buildDrawCalls(f,h,d),h=d,f=o[++c],++l),v._batchEnabled=l,v.touched=u,f.elements[f.count++]=v)}f.count>0&&(a.boundArray(f,s,l,i),this.buildDrawCalls(f,h,this._bufferSize),++c,++l);for(var d=0;dthis.size&&this.flush(),this._vertexCount+=r.vertexData.length/2,this._indexCount+=r.indices.length,this._bufferedTextures[this._bufferSize]=r._texture.baseTexture,this._bufferedElements[this._bufferSize++]=r)},t.prototype.buildTexturesAndDrawCalls=function(){var r=this,n=r._bufferedTextures,i=r.MAX_TEXTURES,o=t._textureArrayPool,a=this.renderer.batch,s=this._tempBoundTextures,u=this.renderer.textureGC.count,l=++Ie._globalBatch,c=0,f=o[0],h=0;a.copyBoundTextures(s,i);for(var d=0;d=i&&(a.boundArray(f,s,l,i),this.buildDrawCalls(f,h,d),h=d,f=o[++c],++l),v._batchEnabled=l,v.touched=u,f.elements[f.count++]=v)}f.count>0&&(a.boundArray(f,s,l,i),this.buildDrawCalls(f,h,this._bufferSize),++c,++l);for(var d=0;d0&&(r+=` else `),n title : "+t.title+"
tabIndex: "+t.tabIndex},e.prototype.capHitArea=function(t){t.x<0&&(t.width+=t.x,t.x=0),t.y<0&&(t.height+=t.y,t.y=0);var r=this.renderer,n=r.width,i=r.height;t.x+t.width>n&&(t.width=n-t.x),t.y+t.height>i&&(t.height=i-t.y)},e.prototype.addChild=function(t){var r=this.pool.pop();r||(r=document.createElement("button"),r.style.width=mc+"px",r.style.height=mc+"px",r.style.backgroundColor=this.debug?"rgba(255,255,255,0.5)":"transparent",r.style.position="absolute",r.style.zIndex=ST.toString(),r.style.borderStyle="none",navigator.userAgent.toLowerCase().indexOf("chrome")>-1?r.setAttribute("aria-live","off"):r.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?r.setAttribute("aria-relevant","additions"):r.setAttribute("aria-relevant","text"),r.addEventListener("click",this._onClick.bind(this)),r.addEventListener("focus",this._onFocus.bind(this)),r.addEventListener("focusout",this._onFocusOut.bind(this))),r.style.pointerEvents=t.accessiblePointerEvents,r.type=t.accessibleType,t.accessibleTitle&&t.accessibleTitle!==null?r.title=t.accessibleTitle:(!t.accessibleHint||t.accessibleHint===null)&&(r.title="displayObject "+t.tabIndex),t.accessibleHint&&t.accessibleHint!==null&&r.setAttribute("aria-label",t.accessibleHint),this.debug&&this.updateDebugHTML(r),t._accessibleActive=!0,t._accessibleDiv=r,r.displayObject=t,this.children.push(t),this.div.appendChild(t._accessibleDiv),t._accessibleDiv.tabIndex=t.tabIndex},e.prototype._onClick=function(t){var r=this.renderer.plugins.interaction,n=t.target.displayObject,i=r.eventData;r.dispatchEvent(n,"click",i),r.dispatchEvent(n,"pointertap",i),r.dispatchEvent(n,"tap",i)},e.prototype._onFocus=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","assertive");var r=this.renderer.plugins.interaction,n=t.target.displayObject,i=r.eventData;r.dispatchEvent(n,"mouseover",i)},e.prototype._onFocusOut=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","polite");var r=this.renderer.plugins.interaction,n=t.target.displayObject,i=r.eventData;r.dispatchEvent(n,"mouseout",i)},e.prototype._onKeyDown=function(t){t.keyCode===Foe&&this.activate()},e.prototype._onMouseMove=function(t){t.movementX===0&&t.movementY===0||this.deactivate()},e.prototype.destroy=function(){this.destroyTouchHook(),this.div=null,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null},e.extension={name:"accessibility",type:[Ve.RendererPlugin,Ve.CanvasRendererPlugin]},e}();/*! + */var WR={accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:null,accessibleType:"button",accessiblePointerEvents:"auto",accessibleChildren:!0,renderId:-1};xt.mixin(WR);var ole=9,jc=100,ale=0,sle=0,pC=2,vC=1,ule=-1e3,lle=-1e3,cle=2,qR=function(){function e(t){this.debug=!1,this._isActive=!1,this._isMobileAccessibility=!1,this.pool=[],this.renderId=0,this.children=[],this.androidUpdateCount=0,this.androidUpdateFrequency=500,this._hookDiv=null,(tn.tablet||tn.phone)&&this.createTouchHook();var r=document.createElement("div");r.style.width=jc+"px",r.style.height=jc+"px",r.style.position="absolute",r.style.top=ale+"px",r.style.left=sle+"px",r.style.zIndex=pC.toString(),this.div=r,this.renderer=t,this._onKeyDown=this._onKeyDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),globalThis.addEventListener("keydown",this._onKeyDown,!1)}return Object.defineProperty(e.prototype,"isActive",{get:function(){return this._isActive},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isMobileAccessibility",{get:function(){return this._isMobileAccessibility},enumerable:!1,configurable:!0}),e.prototype.createTouchHook=function(){var t=this,r=document.createElement("button");r.style.width=vC+"px",r.style.height=vC+"px",r.style.position="absolute",r.style.top=ule+"px",r.style.left=lle+"px",r.style.zIndex=cle.toString(),r.style.backgroundColor="#FF0000",r.title="select to enable accessibility for this content",r.addEventListener("focus",function(){t._isMobileAccessibility=!0,t.activate(),t.destroyTouchHook()}),document.body.appendChild(r),this._hookDiv=r},e.prototype.destroyTouchHook=function(){this._hookDiv&&(document.body.removeChild(this._hookDiv),this._hookDiv=null)},e.prototype.activate=function(){var t;this._isActive||(this._isActive=!0,globalThis.document.addEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown,!1),this.renderer.on("postrender",this.update,this),(t=this.renderer.view.parentNode)===null||t===void 0||t.appendChild(this.div))},e.prototype.deactivate=function(){var t;!this._isActive||this._isMobileAccessibility||(this._isActive=!1,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.addEventListener("keydown",this._onKeyDown,!1),this.renderer.off("postrender",this.update),(t=this.div.parentNode)===null||t===void 0||t.removeChild(this.div))},e.prototype.updateAccessibleObjects=function(t){if(!(!t.visible||!t.accessibleChildren)){t.accessible&&t.interactive&&(t._accessibleActive||this.addChild(t),t.renderId=this.renderId);var r=t.children;if(r)for(var n=0;n title : "+t.title+"
tabIndex: "+t.tabIndex},e.prototype.capHitArea=function(t){t.x<0&&(t.width+=t.x,t.x=0),t.y<0&&(t.height+=t.y,t.y=0);var r=this.renderer,n=r.width,i=r.height;t.x+t.width>n&&(t.width=n-t.x),t.y+t.height>i&&(t.height=i-t.y)},e.prototype.addChild=function(t){var r=this.pool.pop();r||(r=document.createElement("button"),r.style.width=jc+"px",r.style.height=jc+"px",r.style.backgroundColor=this.debug?"rgba(255,255,255,0.5)":"transparent",r.style.position="absolute",r.style.zIndex=pC.toString(),r.style.borderStyle="none",navigator.userAgent.toLowerCase().indexOf("chrome")>-1?r.setAttribute("aria-live","off"):r.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?r.setAttribute("aria-relevant","additions"):r.setAttribute("aria-relevant","text"),r.addEventListener("click",this._onClick.bind(this)),r.addEventListener("focus",this._onFocus.bind(this)),r.addEventListener("focusout",this._onFocusOut.bind(this))),r.style.pointerEvents=t.accessiblePointerEvents,r.type=t.accessibleType,t.accessibleTitle&&t.accessibleTitle!==null?r.title=t.accessibleTitle:(!t.accessibleHint||t.accessibleHint===null)&&(r.title="displayObject "+t.tabIndex),t.accessibleHint&&t.accessibleHint!==null&&r.setAttribute("aria-label",t.accessibleHint),this.debug&&this.updateDebugHTML(r),t._accessibleActive=!0,t._accessibleDiv=r,r.displayObject=t,this.children.push(t),this.div.appendChild(t._accessibleDiv),t._accessibleDiv.tabIndex=t.tabIndex},e.prototype._onClick=function(t){var r=this.renderer.plugins.interaction,n=t.target.displayObject,i=r.eventData;r.dispatchEvent(n,"click",i),r.dispatchEvent(n,"pointertap",i),r.dispatchEvent(n,"tap",i)},e.prototype._onFocus=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","assertive");var r=this.renderer.plugins.interaction,n=t.target.displayObject,i=r.eventData;r.dispatchEvent(n,"mouseover",i)},e.prototype._onFocusOut=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","polite");var r=this.renderer.plugins.interaction,n=t.target.displayObject,i=r.eventData;r.dispatchEvent(n,"mouseout",i)},e.prototype._onKeyDown=function(t){t.keyCode===ole&&this.activate()},e.prototype._onMouseMove=function(t){t.movementX===0&&t.movementY===0||this.deactivate()},e.prototype.destroy=function(){this.destroyTouchHook(),this.div=null,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null},e.extension={name:"accessibility",type:[Ye.RendererPlugin,Ye.CanvasRendererPlugin]},e}();/*! * @pixi/interaction - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/interaction is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license - */var Gg=function(){function e(){this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0,this.global=new Oe,this.target=null,this.originalEvent=null,this.identifier=null,this.isPrimary=!1,this.button=0,this.buttons=0,this.width=0,this.height=0,this.tiltX=0,this.tiltY=0,this.pointerType=null,this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0}return Object.defineProperty(e.prototype,"pointerId",{get:function(){return this.identifier},enumerable:!1,configurable:!0}),e.prototype.getLocalPosition=function(t,r,n){return t.worldTransform.applyInverse(n||this.global,r)},e.prototype.copyEvent=function(t){"isPrimary"in t&&t.isPrimary&&(this.isPrimary=!0),this.button="button"in t&&t.button;var r="buttons"in t&&t.buttons;this.buttons=Number.isInteger(r)?r:"which"in t&&t.which,this.width="width"in t&&t.width,this.height="height"in t&&t.height,this.tiltX="tiltX"in t&&t.tiltX,this.tiltY="tiltY"in t&&t.tiltY,this.pointerType="pointerType"in t&&t.pointerType,this.pressure="pressure"in t&&t.pressure,this.rotationAngle="rotationAngle"in t&&t.rotationAngle,this.twist="twist"in t&&t.twist||0,this.tangentialPressure="tangentialPressure"in t&&t.tangentialPressure||0},e.prototype.reset=function(){this.isPrimary=!1},e}();/*! ***************************************************************************** + */var by=function(){function e(){this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0,this.global=new Ce,this.target=null,this.originalEvent=null,this.identifier=null,this.isPrimary=!1,this.button=0,this.buttons=0,this.width=0,this.height=0,this.tiltX=0,this.tiltY=0,this.pointerType=null,this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0}return Object.defineProperty(e.prototype,"pointerId",{get:function(){return this.identifier},enumerable:!1,configurable:!0}),e.prototype.getLocalPosition=function(t,r,n){return t.worldTransform.applyInverse(n||this.global,r)},e.prototype.copyEvent=function(t){"isPrimary"in t&&t.isPrimary&&(this.isPrimary=!0),this.button="button"in t&&t.button;var r="buttons"in t&&t.buttons;this.buttons=Number.isInteger(r)?r:"which"in t&&t.which,this.width="width"in t&&t.width,this.height="height"in t&&t.height,this.tiltX="tiltX"in t&&t.tiltX,this.tiltY="tiltY"in t&&t.tiltY,this.pointerType="pointerType"in t&&t.pointerType,this.pressure="pressure"in t&&t.pressure,this.rotationAngle="rotationAngle"in t&&t.rotationAngle,this.twist="twist"in t&&t.twist||0,this.tangentialPressure="tangentialPressure"in t&&t.tangentialPressure||0},e.prototype.reset=function(){this.isPrimary=!1},e}();/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -701,25 +703,25 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var zg=function(e,t){return zg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},zg(e,t)};function Goe(e,t){zg(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var jI=function(){function e(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.target=null,this.currentTarget=null,this.type=null,this.data=null}return e.prototype.stopPropagation=function(){this.stopped=!0,this.stopPropagationHint=!0,this.stopsPropagatingAt=this.currentTarget},e.prototype.reset=function(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.currentTarget=null,this.target=null},e}(),rf=function(){function e(t){this._pointerId=t,this._flags=e.FLAGS.NONE}return e.prototype._doSet=function(t,r){r?this._flags=this._flags|t:this._flags=this._flags&~t},Object.defineProperty(e.prototype,"pointerId",{get:function(){return this._pointerId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"flags",{get:function(){return this._flags},set:function(t){this._flags=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"none",{get:function(){return this._flags===e.FLAGS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"over",{get:function(){return(this._flags&e.FLAGS.OVER)!==0},set:function(t){this._doSet(e.FLAGS.OVER,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rightDown",{get:function(){return(this._flags&e.FLAGS.RIGHT_DOWN)!==0},set:function(t){this._doSet(e.FLAGS.RIGHT_DOWN,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leftDown",{get:function(){return(this._flags&e.FLAGS.LEFT_DOWN)!==0},set:function(t){this._doSet(e.FLAGS.LEFT_DOWN,t)},enumerable:!1,configurable:!0}),e.FLAGS=Object.freeze({NONE:0,OVER:1,LEFT_DOWN:2,RIGHT_DOWN:4}),e}(),zoe=function(){function e(){this._tempPoint=new Oe}return e.prototype.recursiveFindHit=function(t,r,n,i,o){var a;if(!r||!r.visible)return!1;var s=t.data.global;o=r.interactive||o;var u=!1,l=o,c=!0;if(r.hitArea)i&&(r.worldTransform.applyInverse(s,this._tempPoint),r.hitArea.contains(this._tempPoint.x,this._tempPoint.y)?u=!0:(i=!1,c=!1)),l=!1;else if(r._mask&&i){var f=r._mask.isMaskData?r._mask.maskObject:r._mask;f&&!(!((a=f.containsPoint)===null||a===void 0)&&a.call(f,s))&&(i=!1)}if(c&&r.interactiveChildren&&r.children)for(var h=r.children,d=h.length-1;d>=0;d--){var v=h[d],g=this.recursiveFindHit(t,v,n,i,l);if(g){if(!v.parent)continue;l=!1,g&&(t.target&&(i=!1),u=!0)}}return o&&(i&&!t.target&&!r.hitArea&&r.containsPoint&&r.containsPoint(s)&&(u=!0),r.interactive&&(u&&!t.target&&(t.target=r),n&&n(t,r,!!u))),u},e.prototype.findHit=function(t,r,n,i){this.recursiveFindHit(t,r,n,i,!1)},e}(),$I={interactive:!1,interactiveChildren:!0,hitArea:null,get buttonMode(){return this.cursor==="pointer"},set buttonMode(e){e?this.cursor="pointer":this.cursor==="pointer"&&(this.cursor=null)},cursor:null,get trackedPointers(){return this._trackedPointers===void 0&&(this._trackedPointers={}),this._trackedPointers},_trackedPointers:void 0};mt.mixin($I);var gc=1,yc={target:null,data:{global:null}},UI=function(e){Goe(t,e);function t(r,n){var i=e.call(this)||this;return n=n||{},i.renderer=r,i.autoPreventDefault=n.autoPreventDefault!==void 0?n.autoPreventDefault:!0,i.interactionFrequency=n.interactionFrequency||10,i.mouse=new Gg,i.mouse.identifier=gc,i.mouse.global.set(-999999),i.activeInteractionData={},i.activeInteractionData[gc]=i.mouse,i.interactionDataPool=[],i.eventData=new jI,i.interactionDOMElement=null,i.moveWhenInside=!1,i.eventsAdded=!1,i.tickerAdded=!1,i.mouseOverRenderer=!("PointerEvent"in globalThis),i.supportsTouchEvents="ontouchstart"in globalThis,i.supportsPointerEvents=!!globalThis.PointerEvent,i.onPointerUp=i.onPointerUp.bind(i),i.processPointerUp=i.processPointerUp.bind(i),i.onPointerCancel=i.onPointerCancel.bind(i),i.processPointerCancel=i.processPointerCancel.bind(i),i.onPointerDown=i.onPointerDown.bind(i),i.processPointerDown=i.processPointerDown.bind(i),i.onPointerMove=i.onPointerMove.bind(i),i.processPointerMove=i.processPointerMove.bind(i),i.onPointerOut=i.onPointerOut.bind(i),i.processPointerOverOut=i.processPointerOverOut.bind(i),i.onPointerOver=i.onPointerOver.bind(i),i.cursorStyles={default:"inherit",pointer:"pointer"},i.currentCursorMode=null,i.cursor=null,i.resolution=1,i.delayedEvents=[],i.search=new zoe,i._tempDisplayObject=new Tx,i._eventListenerOptions={capture:!0,passive:!1},i._useSystemTicker=n.useSystemTicker!==void 0?n.useSystemTicker:!0,i.setTargetElement(i.renderer.view,i.renderer.resolution),i}return Object.defineProperty(t.prototype,"useSystemTicker",{get:function(){return this._useSystemTicker},set:function(r){this._useSystemTicker=r,r?this.addTickerListener():this.removeTickerListener()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastObjectRendered",{get:function(){return this.renderer._lastObjectRendered||this._tempDisplayObject},enumerable:!1,configurable:!0}),t.prototype.hitTest=function(r,n){return yc.target=null,yc.data.global=r,n||(n=this.lastObjectRendered),this.processInteractive(yc,n,null,!0),yc.target},t.prototype.setTargetElement=function(r,n){n===void 0&&(n=1),this.removeTickerListener(),this.removeEvents(),this.interactionDOMElement=r,this.resolution=n,this.addEvents(),this.addTickerListener()},t.prototype.addTickerListener=function(){this.tickerAdded||!this.interactionDOMElement||!this._useSystemTicker||(Ft.system.add(this.tickerUpdate,this,Bn.INTERACTION),this.tickerAdded=!0)},t.prototype.removeTickerListener=function(){this.tickerAdded&&(Ft.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)},t.prototype.addEvents=function(){if(!(this.eventsAdded||!this.interactionDOMElement)){var r=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(r.msContentZooming="none",r.msTouchAction="none"):this.supportsPointerEvents&&(r.touchAction="none"),this.supportsPointerEvents?(globalThis.document.addEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.addEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.addEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.addEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.eventsAdded=!0}},t.prototype.removeEvents=function(){if(!(!this.eventsAdded||!this.interactionDOMElement)){var r=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(r.msContentZooming="",r.msTouchAction=""):this.supportsPointerEvents&&(r.touchAction=""),this.supportsPointerEvents?(globalThis.document.removeEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.removeEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.removeEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.removeEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.interactionDOMElement=null,this.eventsAdded=!1}},t.prototype.tickerUpdate=function(r){this._deltaTime+=r,!(this._deltaTime0&&(s=r.composedPath()[0]);for(var u=s!==this.interactionDOMElement?"outside":"",l=0;l"u"&&(a.button=r.touches.length?1:0),typeof a.buttons>"u"&&(a.buttons=r.touches.length?1:0),typeof a.isPrimary>"u"&&(a.isPrimary=r.touches.length===1&&r.type==="touchstart"),typeof a.width>"u"&&(a.width=a.radiusX||1),typeof a.height>"u"&&(a.height=a.radiusY||1),typeof a.tiltX>"u"&&(a.tiltX=0),typeof a.tiltY>"u"&&(a.tiltY=0),typeof a.pointerType>"u"&&(a.pointerType="touch"),typeof a.pointerId>"u"&&(a.pointerId=a.identifier||0),typeof a.pressure>"u"&&(a.pressure=a.force||.5),typeof a.twist>"u"&&(a.twist=0),typeof a.tangentialPressure>"u"&&(a.tangentialPressure=0),typeof a.layerX>"u"&&(a.layerX=a.offsetX=a.clientX),typeof a.layerY>"u"&&(a.layerY=a.offsetY=a.clientY),a.isNormalized=!0,n.push(a)}else if(!globalThis.MouseEvent||r instanceof MouseEvent&&(!this.supportsPointerEvents||!(r instanceof globalThis.PointerEvent))){var s=r;typeof s.isPrimary>"u"&&(s.isPrimary=!0),typeof s.width>"u"&&(s.width=1),typeof s.height>"u"&&(s.height=1),typeof s.tiltX>"u"&&(s.tiltX=0),typeof s.tiltY>"u"&&(s.tiltY=0),typeof s.pointerType>"u"&&(s.pointerType="mouse"),typeof s.pointerId>"u"&&(s.pointerId=gc),typeof s.pressure>"u"&&(s.pressure=.5),typeof s.twist>"u"&&(s.twist=0),typeof s.tangentialPressure>"u"&&(s.tangentialPressure=0),s.isNormalized=!0,n.push(s)}else n.push(r);return n},t.prototype.destroy=function(){this.removeEvents(),this.removeTickerListener(),this.removeAllListeners(),this.renderer=null,this.mouse=null,this.eventData=null,this.interactionDOMElement=null,this.onPointerDown=null,this.processPointerDown=null,this.onPointerUp=null,this.processPointerUp=null,this.onPointerCancel=null,this.processPointerCancel=null,this.onPointerMove=null,this.processPointerMove=null,this.onPointerOut=null,this.processPointerOverOut=null,this.onPointerOver=null,this.search=null},t.extension={name:"interaction",type:[Ve.RendererPlugin,Ve.CanvasRendererPlugin]},t}(ys);/*! +***************************************************************************** */var Sy=function(e,t){return Sy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Sy(e,t)};function fle(e,t){Sy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var XR=function(){function e(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.target=null,this.currentTarget=null,this.type=null,this.data=null}return e.prototype.stopPropagation=function(){this.stopped=!0,this.stopPropagationHint=!0,this.stopsPropagatingAt=this.currentTarget},e.prototype.reset=function(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.currentTarget=null,this.target=null},e}(),Af=function(){function e(t){this._pointerId=t,this._flags=e.FLAGS.NONE}return e.prototype._doSet=function(t,r){r?this._flags=this._flags|t:this._flags=this._flags&~t},Object.defineProperty(e.prototype,"pointerId",{get:function(){return this._pointerId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"flags",{get:function(){return this._flags},set:function(t){this._flags=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"none",{get:function(){return this._flags===e.FLAGS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"over",{get:function(){return(this._flags&e.FLAGS.OVER)!==0},set:function(t){this._doSet(e.FLAGS.OVER,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rightDown",{get:function(){return(this._flags&e.FLAGS.RIGHT_DOWN)!==0},set:function(t){this._doSet(e.FLAGS.RIGHT_DOWN,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leftDown",{get:function(){return(this._flags&e.FLAGS.LEFT_DOWN)!==0},set:function(t){this._doSet(e.FLAGS.LEFT_DOWN,t)},enumerable:!1,configurable:!0}),e.FLAGS=Object.freeze({NONE:0,OVER:1,LEFT_DOWN:2,RIGHT_DOWN:4}),e}(),hle=function(){function e(){this._tempPoint=new Ce}return e.prototype.recursiveFindHit=function(t,r,n,i,o){var a;if(!r||!r.visible)return!1;var s=t.data.global;o=r.interactive||o;var u=!1,l=o,c=!0;if(r.hitArea)i&&(r.worldTransform.applyInverse(s,this._tempPoint),r.hitArea.contains(this._tempPoint.x,this._tempPoint.y)?u=!0:(i=!1,c=!1)),l=!1;else if(r._mask&&i){var f=r._mask.isMaskData?r._mask.maskObject:r._mask;f&&!(!((a=f.containsPoint)===null||a===void 0)&&a.call(f,s))&&(i=!1)}if(c&&r.interactiveChildren&&r.children)for(var h=r.children,d=h.length-1;d>=0;d--){var v=h[d],g=this.recursiveFindHit(t,v,n,i,l);if(g){if(!v.parent)continue;l=!1,g&&(t.target&&(i=!1),u=!0)}}return o&&(i&&!t.target&&!r.hitArea&&r.containsPoint&&r.containsPoint(s)&&(u=!0),r.interactive&&(u&&!t.target&&(t.target=r),n&&n(t,r,!!u))),u},e.prototype.findHit=function(t,r,n,i){this.recursiveFindHit(t,r,n,i,!1)},e}(),YR={interactive:!1,interactiveChildren:!0,hitArea:null,get buttonMode(){return this.cursor==="pointer"},set buttonMode(e){e?this.cursor="pointer":this.cursor==="pointer"&&(this.cursor=null)},cursor:null,get trackedPointers(){return this._trackedPointers===void 0&&(this._trackedPointers={}),this._trackedPointers},_trackedPointers:void 0};xt.mixin(YR);var $c=1,Uc={target:null,data:{global:null}},KR=function(e){fle(t,e);function t(r,n){var i=e.call(this)||this;return n=n||{},i.renderer=r,i.autoPreventDefault=n.autoPreventDefault!==void 0?n.autoPreventDefault:!0,i.interactionFrequency=n.interactionFrequency||10,i.mouse=new by,i.mouse.identifier=$c,i.mouse.global.set(-999999),i.activeInteractionData={},i.activeInteractionData[$c]=i.mouse,i.interactionDataPool=[],i.eventData=new XR,i.interactionDOMElement=null,i.moveWhenInside=!1,i.eventsAdded=!1,i.tickerAdded=!1,i.mouseOverRenderer=!("PointerEvent"in globalThis),i.supportsTouchEvents="ontouchstart"in globalThis,i.supportsPointerEvents=!!globalThis.PointerEvent,i.onPointerUp=i.onPointerUp.bind(i),i.processPointerUp=i.processPointerUp.bind(i),i.onPointerCancel=i.onPointerCancel.bind(i),i.processPointerCancel=i.processPointerCancel.bind(i),i.onPointerDown=i.onPointerDown.bind(i),i.processPointerDown=i.processPointerDown.bind(i),i.onPointerMove=i.onPointerMove.bind(i),i.processPointerMove=i.processPointerMove.bind(i),i.onPointerOut=i.onPointerOut.bind(i),i.processPointerOverOut=i.processPointerOverOut.bind(i),i.onPointerOver=i.onPointerOver.bind(i),i.cursorStyles={default:"inherit",pointer:"pointer"},i.currentCursorMode=null,i.cursor=null,i.resolution=1,i.delayedEvents=[],i.search=new hle,i._tempDisplayObject=new lb,i._eventListenerOptions={capture:!0,passive:!1},i._useSystemTicker=n.useSystemTicker!==void 0?n.useSystemTicker:!0,i.setTargetElement(i.renderer.view,i.renderer.resolution),i}return Object.defineProperty(t.prototype,"useSystemTicker",{get:function(){return this._useSystemTicker},set:function(r){this._useSystemTicker=r,r?this.addTickerListener():this.removeTickerListener()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastObjectRendered",{get:function(){return this.renderer._lastObjectRendered||this._tempDisplayObject},enumerable:!1,configurable:!0}),t.prototype.hitTest=function(r,n){return Uc.target=null,Uc.data.global=r,n||(n=this.lastObjectRendered),this.processInteractive(Uc,n,null,!0),Uc.target},t.prototype.setTargetElement=function(r,n){n===void 0&&(n=1),this.removeTickerListener(),this.removeEvents(),this.interactionDOMElement=r,this.resolution=n,this.addEvents(),this.addTickerListener()},t.prototype.addTickerListener=function(){this.tickerAdded||!this.interactionDOMElement||!this._useSystemTicker||(jt.system.add(this.tickerUpdate,this,Yn.INTERACTION),this.tickerAdded=!0)},t.prototype.removeTickerListener=function(){this.tickerAdded&&(jt.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)},t.prototype.addEvents=function(){if(!(this.eventsAdded||!this.interactionDOMElement)){var r=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(r.msContentZooming="none",r.msTouchAction="none"):this.supportsPointerEvents&&(r.touchAction="none"),this.supportsPointerEvents?(globalThis.document.addEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.addEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.addEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.addEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.eventsAdded=!0}},t.prototype.removeEvents=function(){if(!(!this.eventsAdded||!this.interactionDOMElement)){var r=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(r.msContentZooming="",r.msTouchAction=""):this.supportsPointerEvents&&(r.touchAction=""),this.supportsPointerEvents?(globalThis.document.removeEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.removeEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.removeEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.removeEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.interactionDOMElement=null,this.eventsAdded=!1}},t.prototype.tickerUpdate=function(r){this._deltaTime+=r,!(this._deltaTime0&&(s=r.composedPath()[0]);for(var u=s!==this.interactionDOMElement?"outside":"",l=0;l"u"&&(a.button=r.touches.length?1:0),typeof a.buttons>"u"&&(a.buttons=r.touches.length?1:0),typeof a.isPrimary>"u"&&(a.isPrimary=r.touches.length===1&&r.type==="touchstart"),typeof a.width>"u"&&(a.width=a.radiusX||1),typeof a.height>"u"&&(a.height=a.radiusY||1),typeof a.tiltX>"u"&&(a.tiltX=0),typeof a.tiltY>"u"&&(a.tiltY=0),typeof a.pointerType>"u"&&(a.pointerType="touch"),typeof a.pointerId>"u"&&(a.pointerId=a.identifier||0),typeof a.pressure>"u"&&(a.pressure=a.force||.5),typeof a.twist>"u"&&(a.twist=0),typeof a.tangentialPressure>"u"&&(a.tangentialPressure=0),typeof a.layerX>"u"&&(a.layerX=a.offsetX=a.clientX),typeof a.layerY>"u"&&(a.layerY=a.offsetY=a.clientY),a.isNormalized=!0,n.push(a)}else if(!globalThis.MouseEvent||r instanceof MouseEvent&&(!this.supportsPointerEvents||!(r instanceof globalThis.PointerEvent))){var s=r;typeof s.isPrimary>"u"&&(s.isPrimary=!0),typeof s.width>"u"&&(s.width=1),typeof s.height>"u"&&(s.height=1),typeof s.tiltX>"u"&&(s.tiltX=0),typeof s.tiltY>"u"&&(s.tiltY=0),typeof s.pointerType>"u"&&(s.pointerType="mouse"),typeof s.pointerId>"u"&&(s.pointerId=$c),typeof s.pressure>"u"&&(s.pressure=.5),typeof s.twist>"u"&&(s.twist=0),typeof s.tangentialPressure>"u"&&(s.tangentialPressure=0),s.isNormalized=!0,n.push(s)}else n.push(r);return n},t.prototype.destroy=function(){this.removeEvents(),this.removeTickerListener(),this.removeAllListeners(),this.renderer=null,this.mouse=null,this.eventData=null,this.interactionDOMElement=null,this.onPointerDown=null,this.processPointerDown=null,this.onPointerUp=null,this.processPointerUp=null,this.onPointerCancel=null,this.processPointerCancel=null,this.onPointerMove=null,this.processPointerMove=null,this.onPointerOut=null,this.processPointerOverOut=null,this.onPointerOver=null,this.search=null},t.extension={name:"interaction",type:[Ye.RendererPlugin,Ye.CanvasRendererPlugin]},t}(Fs);/*! * @pixi/extract - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/extract is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license - */var Hoe=new Re,Voe=4,GI=function(){function e(t){this.renderer=t}return e.prototype.image=function(t,r,n){var i=new Image;return i.src=this.base64(t,r,n),i},e.prototype.base64=function(t,r,n){return this.canvas(t).toDataURL(r,n)},e.prototype.canvas=function(t,r){var n=this._rawPixels(t,r),i=n.pixels,o=n.width,a=n.height,s=n.flipY,u=new Fg(o,a,1),l=u.context.getImageData(0,0,o,a);if(e.arrayPostDivide(i,l.data),u.context.putImageData(l,0,0),s){var c=new Fg(u.width,u.height,1);c.context.scale(1,-1),c.context.drawImage(u.canvas,0,-a),u.destroy(),u=c}return u.canvas},e.prototype.pixels=function(t,r){var n=this._rawPixels(t,r).pixels;return e.arrayPostDivide(n,n),n},e.prototype._rawPixels=function(t,r){var n=this.renderer,i,o=!1,a,s=!1;if(t)if(t instanceof Zi)a=t;else{var u=n.context.webGLVersion>=2?n.multisample:nt.NONE;if(a=this.renderer.generateTexture(t,{multisample:u}),u!==nt.NONE){var l=Zi.create({width:a.width,height:a.height});n.framebuffer.bind(a.framebuffer),n.framebuffer.blit(l.framebuffer),n.framebuffer.bind(null),a.destroy(!0),a=l}s=!0}a?(i=a.baseTexture.resolution,r=r??a.frame,o=!1,n.renderTexture.bind(a)):(i=n.resolution,r||(r=Hoe,r.width=n.width,r.height=n.height),o=!0,n.renderTexture.bind(null));var c=Math.round(r.width*i),f=Math.round(r.height*i),h=new Uint8Array(Voe*c*f),d=n.gl;return d.readPixels(Math.round(r.x*i),Math.round(r.y*i),c,f,d.RGBA,d.UNSIGNED_BYTE,h),s&&a.destroy(!0),{pixels:h,width:c,height:f,flipY:o}},e.prototype.destroy=function(){this.renderer=null},e.arrayPostDivide=function(t,r){for(var n=0;n=2?n.multisample:st.NONE;if(a=this.renderer.generateTexture(t,{multisample:u}),u!==st.NONE){var l=uo.create({width:a.width,height:a.height});n.framebuffer.bind(a.framebuffer),n.framebuffer.blit(l.framebuffer),n.framebuffer.bind(null),a.destroy(!0),a=l}s=!0}a?(i=a.baseTexture.resolution,r=r??a.frame,o=!1,n.renderTexture.bind(a)):(i=n.resolution,r||(r=dle,r.width=n.width,r.height=n.height),o=!0,n.renderTexture.bind(null));var c=Math.round(r.width*i),f=Math.round(r.height*i),h=new Uint8Array(ple*c*f),d=n.gl;return d.readPixels(Math.round(r.x*i),Math.round(r.y*i),c,f,d.RGBA,d.UNSIGNED_BYTE,h),s&&a.destroy(!0),{pixels:h,width:c,height:f,flipY:o}},e.prototype.destroy=function(){this.renderer=null},e.arrayPostDivide=function(t,r){for(var n=0;n"u"&&(Bv=!!(globalThis.XDomainRequest&&!("withCredentials"in new XMLHttpRequest))),Bv&&this.crossOrigin?this._loadXdr():this._loadXhr();break}}},e.prototype._hasFlag=function(t){return(this._flags&t)!==0},e.prototype._setFlag=function(t,r){this._flags=r?this._flags|t:this._flags&~t},e.prototype._clearEvents=function(){clearTimeout(this._elementTimer),this.data&&this.data.removeEventListener&&(this.data.removeEventListener("error",this._boundOnError,!1),this.data.removeEventListener("load",this._boundComplete,!1),this.data.removeEventListener("progress",this._boundOnProgress,!1),this.data.removeEventListener("canplaythrough",this._boundComplete,!1)),this.xhr&&(this.xhr.removeEventListener?(this.xhr.removeEventListener("error",this._boundXhrOnError,!1),this.xhr.removeEventListener("timeout",this._boundXhrOnTimeout,!1),this.xhr.removeEventListener("abort",this._boundXhrOnAbort,!1),this.xhr.removeEventListener("progress",this._boundOnProgress,!1),this.xhr.removeEventListener("load",this._boundXhrOnLoad,!1)):(this.xhr.onerror=null,this.xhr.ontimeout=null,this.xhr.onprogress=null,this.xhr.onload=null))},e.prototype._finish=function(){if(this.isComplete)throw new Error("Complete called again for an already completed resource.");this._setFlag(e.STATUS_FLAGS.COMPLETE,!0),this._setFlag(e.STATUS_FLAGS.LOADING,!1),this.onComplete.dispatch(this)},e.prototype._loadElement=function(t){this.metadata.loadElement?this.data=this.metadata.loadElement:t==="image"&&typeof globalThis.Image<"u"?this.data=new Image:this.data=document.createElement(t),this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),this.metadata.skipSource||(this.data.src=this.url),this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1),this.timeout&&(this._elementTimer=setTimeout(this._boundOnTimeout,this.timeout))},e.prototype._loadSourceElement=function(t){if(this.metadata.loadElement?this.data=this.metadata.loadElement:t==="audio"&&typeof globalThis.Audio<"u"?this.data=new Audio:this.data=document.createElement(t),this.data===null){this.abort("Unsupported element: "+t);return}if(this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),!this.metadata.skipSource)if(navigator.isCocoonJS)this.data.src=Array.isArray(this.url)?this.url[0]:this.url;else if(Array.isArray(this.url))for(var r=this.metadata.mimeType,n=0;n"u"?TT:t.status;(t.responseType===""||t.responseType==="text"||typeof t.responseType>"u")&&(r=t.responseText),n===Woe&&(r.length>0||t.responseType===e.XHR_RESPONSE_TYPE.BUFFER)?n=TT:n===Xoe&&(n=qoe);var i=n/100|0;if(i===Yoe)if(this.xhrType===e.XHR_RESPONSE_TYPE.TEXT)this.data=r,this.type=e.TYPE.TEXT;else if(this.xhrType===e.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(r),this.type=e.TYPE.JSON}catch(s){this.abort("Error trying to parse loaded json: "+s);return}else if(this.xhrType===e.XHR_RESPONSE_TYPE.DOCUMENT)try{if(globalThis.DOMParser){var o=new DOMParser;this.data=o.parseFromString(r,"text/xml")}else{var a=document.createElement("div");a.innerHTML=r,this.data=a}this.type=e.TYPE.XML}catch(s){this.abort("Error trying to parse loaded xml: "+s);return}else this.data=t.response||r;else{this.abort("["+t.status+"] "+t.statusText+": "+t.responseURL);return}this.complete()},e.prototype._determineCrossOrigin=function(t,r){if(t.indexOf("data:")===0)return"";if(globalThis.origin!==globalThis.location.origin)return"anonymous";r=r||globalThis.location,xc||(xc=document.createElement("a")),xc.href=t;var n=zI(xc.href,{strictMode:!0}),i=!n.port&&r.port===""||n.port===r.port,o=n.protocol?n.protocol+":":"";return n.host!==r.hostname||!i||o!==r.protocol?"anonymous":""},e.prototype._determineXhrType=function(){return e._xhrTypeMap[this.extension]||e.XHR_RESPONSE_TYPE.TEXT},e.prototype._determineLoadType=function(){return e._loadTypeMap[this.extension]||e.LOAD_TYPE.XHR},e.prototype._getExtension=function(t){t===void 0&&(t=this.url);var r="";if(this.isDataUrl){var n=t.indexOf("/");r=t.substring(n+1,t.indexOf(";",n))}else{var i=t.indexOf("?"),o=t.indexOf("#"),a=Math.min(i>-1?i:t.length,o>-1?o:t.length);t=t.substring(0,a),r=t.substring(t.lastIndexOf(".")+1)}return r.toLowerCase()},e.prototype._getMimeFromXhrType=function(t){switch(t){case e.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case e.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case e.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case e.XHR_RESPONSE_TYPE.JSON:return"application/json";case e.XHR_RESPONSE_TYPE.DEFAULT:case e.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},e}();(function(e){(function(t){t[t.NONE=0]="NONE",t[t.DATA_URL=1]="DATA_URL",t[t.COMPLETE=2]="COMPLETE",t[t.LOADING=4]="LOADING"})(e.STATUS_FLAGS||(e.STATUS_FLAGS={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.JSON=1]="JSON",t[t.XML=2]="XML",t[t.IMAGE=3]="IMAGE",t[t.AUDIO=4]="AUDIO",t[t.VIDEO=5]="VIDEO",t[t.TEXT=6]="TEXT"}(e.TYPE||(e.TYPE={})),function(t){t[t.XHR=1]="XHR",t[t.IMAGE=2]="IMAGE",t[t.AUDIO=3]="AUDIO",t[t.VIDEO=4]="VIDEO"}(e.LOAD_TYPE||(e.LOAD_TYPE={})),function(t){t.DEFAULT="text",t.BUFFER="arraybuffer",t.BLOB="blob",t.DOCUMENT="document",t.JSON="json",t.TEXT="text"}(e.XHR_RESPONSE_TYPE||(e.XHR_RESPONSE_TYPE={})),e._loadTypeMap={gif:e.LOAD_TYPE.IMAGE,png:e.LOAD_TYPE.IMAGE,bmp:e.LOAD_TYPE.IMAGE,jpg:e.LOAD_TYPE.IMAGE,jpeg:e.LOAD_TYPE.IMAGE,tif:e.LOAD_TYPE.IMAGE,tiff:e.LOAD_TYPE.IMAGE,webp:e.LOAD_TYPE.IMAGE,tga:e.LOAD_TYPE.IMAGE,avif:e.LOAD_TYPE.IMAGE,svg:e.LOAD_TYPE.IMAGE,"svg+xml":e.LOAD_TYPE.IMAGE,mp3:e.LOAD_TYPE.AUDIO,ogg:e.LOAD_TYPE.AUDIO,wav:e.LOAD_TYPE.AUDIO,mp4:e.LOAD_TYPE.VIDEO,webm:e.LOAD_TYPE.VIDEO},e._xhrTypeMap={xhtml:e.XHR_RESPONSE_TYPE.DOCUMENT,html:e.XHR_RESPONSE_TYPE.DOCUMENT,htm:e.XHR_RESPONSE_TYPE.DOCUMENT,xml:e.XHR_RESPONSE_TYPE.DOCUMENT,tmx:e.XHR_RESPONSE_TYPE.DOCUMENT,svg:e.XHR_RESPONSE_TYPE.DOCUMENT,tsx:e.XHR_RESPONSE_TYPE.DOCUMENT,gif:e.XHR_RESPONSE_TYPE.BLOB,png:e.XHR_RESPONSE_TYPE.BLOB,bmp:e.XHR_RESPONSE_TYPE.BLOB,jpg:e.XHR_RESPONSE_TYPE.BLOB,jpeg:e.XHR_RESPONSE_TYPE.BLOB,tif:e.XHR_RESPONSE_TYPE.BLOB,tiff:e.XHR_RESPONSE_TYPE.BLOB,webp:e.XHR_RESPONSE_TYPE.BLOB,tga:e.XHR_RESPONSE_TYPE.BLOB,avif:e.XHR_RESPONSE_TYPE.BLOB,json:e.XHR_RESPONSE_TYPE.JSON,text:e.XHR_RESPONSE_TYPE.TEXT,txt:e.XHR_RESPONSE_TYPE.TEXT,ttf:e.XHR_RESPONSE_TYPE.BUFFER,otf:e.XHR_RESPONSE_TYPE.BUFFER},e.EMPTY_GIF="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="})(ht||(ht={}));function oo(){}function Koe(e){return function(){for(var r=arguments,n=[],i=0;i>2,i[1]=(n[0]&3)<<4|n[1]>>4,i[2]=(n[1]&15)<<2|n[2]>>6,i[3]=n[2]&63;var a=r-(e.length-1);switch(a){case 2:i[3]=64,i[2]=64;break;case 1:i[3]=64;break}for(var o=0;o"u"&&(mm=!!(globalThis.XDomainRequest&&!("withCredentials"in new XMLHttpRequest))),mm&&this.crossOrigin?this._loadXdr():this._loadXhr();break}}},e.prototype._hasFlag=function(t){return(this._flags&t)!==0},e.prototype._setFlag=function(t,r){this._flags=r?this._flags|t:this._flags&~t},e.prototype._clearEvents=function(){clearTimeout(this._elementTimer),this.data&&this.data.removeEventListener&&(this.data.removeEventListener("error",this._boundOnError,!1),this.data.removeEventListener("load",this._boundComplete,!1),this.data.removeEventListener("progress",this._boundOnProgress,!1),this.data.removeEventListener("canplaythrough",this._boundComplete,!1)),this.xhr&&(this.xhr.removeEventListener?(this.xhr.removeEventListener("error",this._boundXhrOnError,!1),this.xhr.removeEventListener("timeout",this._boundXhrOnTimeout,!1),this.xhr.removeEventListener("abort",this._boundXhrOnAbort,!1),this.xhr.removeEventListener("progress",this._boundOnProgress,!1),this.xhr.removeEventListener("load",this._boundXhrOnLoad,!1)):(this.xhr.onerror=null,this.xhr.ontimeout=null,this.xhr.onprogress=null,this.xhr.onload=null))},e.prototype._finish=function(){if(this.isComplete)throw new Error("Complete called again for an already completed resource.");this._setFlag(e.STATUS_FLAGS.COMPLETE,!0),this._setFlag(e.STATUS_FLAGS.LOADING,!1),this.onComplete.dispatch(this)},e.prototype._loadElement=function(t){this.metadata.loadElement?this.data=this.metadata.loadElement:t==="image"&&typeof globalThis.Image<"u"?this.data=new Image:this.data=document.createElement(t),this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),this.metadata.skipSource||(this.data.src=this.url),this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1),this.timeout&&(this._elementTimer=setTimeout(this._boundOnTimeout,this.timeout))},e.prototype._loadSourceElement=function(t){if(this.metadata.loadElement?this.data=this.metadata.loadElement:t==="audio"&&typeof globalThis.Audio<"u"?this.data=new Audio:this.data=document.createElement(t),this.data===null){this.abort("Unsupported element: "+t);return}if(this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),!this.metadata.skipSource)if(navigator.isCocoonJS)this.data.src=Array.isArray(this.url)?this.url[0]:this.url;else if(Array.isArray(this.url))for(var r=this.metadata.mimeType,n=0;n"u"?gC:t.status;(t.responseType===""||t.responseType==="text"||typeof t.responseType>"u")&&(r=t.responseText),n===vle&&(r.length>0||t.responseType===e.XHR_RESPONSE_TYPE.BUFFER)?n=gC:n===gle&&(n=mle);var i=n/100|0;if(i===yle)if(this.xhrType===e.XHR_RESPONSE_TYPE.TEXT)this.data=r,this.type=e.TYPE.TEXT;else if(this.xhrType===e.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(r),this.type=e.TYPE.JSON}catch(s){this.abort("Error trying to parse loaded json: "+s);return}else if(this.xhrType===e.XHR_RESPONSE_TYPE.DOCUMENT)try{if(globalThis.DOMParser){var o=new DOMParser;this.data=o.parseFromString(r,"text/xml")}else{var a=document.createElement("div");a.innerHTML=r,this.data=a}this.type=e.TYPE.XML}catch(s){this.abort("Error trying to parse loaded xml: "+s);return}else this.data=t.response||r;else{this.abort("["+t.status+"] "+t.statusText+": "+t.responseURL);return}this.complete()},e.prototype._determineCrossOrigin=function(t,r){if(t.indexOf("data:")===0)return"";if(globalThis.origin!==globalThis.location.origin)return"anonymous";r=r||globalThis.location,zc||(zc=document.createElement("a")),zc.href=t;var n=QR(zc.href,{strictMode:!0}),i=!n.port&&r.port===""||n.port===r.port,o=n.protocol?n.protocol+":":"";return n.host!==r.hostname||!i||o!==r.protocol?"anonymous":""},e.prototype._determineXhrType=function(){return e._xhrTypeMap[this.extension]||e.XHR_RESPONSE_TYPE.TEXT},e.prototype._determineLoadType=function(){return e._loadTypeMap[this.extension]||e.LOAD_TYPE.XHR},e.prototype._getExtension=function(t){t===void 0&&(t=this.url);var r="";if(this.isDataUrl){var n=t.indexOf("/");r=t.substring(n+1,t.indexOf(";",n))}else{var i=t.indexOf("?"),o=t.indexOf("#"),a=Math.min(i>-1?i:t.length,o>-1?o:t.length);t=t.substring(0,a),r=t.substring(t.lastIndexOf(".")+1)}return r.toLowerCase()},e.prototype._getMimeFromXhrType=function(t){switch(t){case e.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case e.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case e.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case e.XHR_RESPONSE_TYPE.JSON:return"application/json";case e.XHR_RESPONSE_TYPE.DEFAULT:case e.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},e}();(function(e){(function(t){t[t.NONE=0]="NONE",t[t.DATA_URL=1]="DATA_URL",t[t.COMPLETE=2]="COMPLETE",t[t.LOADING=4]="LOADING"})(e.STATUS_FLAGS||(e.STATUS_FLAGS={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.JSON=1]="JSON",t[t.XML=2]="XML",t[t.IMAGE=3]="IMAGE",t[t.AUDIO=4]="AUDIO",t[t.VIDEO=5]="VIDEO",t[t.TEXT=6]="TEXT"}(e.TYPE||(e.TYPE={})),function(t){t[t.XHR=1]="XHR",t[t.IMAGE=2]="IMAGE",t[t.AUDIO=3]="AUDIO",t[t.VIDEO=4]="VIDEO"}(e.LOAD_TYPE||(e.LOAD_TYPE={})),function(t){t.DEFAULT="text",t.BUFFER="arraybuffer",t.BLOB="blob",t.DOCUMENT="document",t.JSON="json",t.TEXT="text"}(e.XHR_RESPONSE_TYPE||(e.XHR_RESPONSE_TYPE={})),e._loadTypeMap={gif:e.LOAD_TYPE.IMAGE,png:e.LOAD_TYPE.IMAGE,bmp:e.LOAD_TYPE.IMAGE,jpg:e.LOAD_TYPE.IMAGE,jpeg:e.LOAD_TYPE.IMAGE,tif:e.LOAD_TYPE.IMAGE,tiff:e.LOAD_TYPE.IMAGE,webp:e.LOAD_TYPE.IMAGE,tga:e.LOAD_TYPE.IMAGE,avif:e.LOAD_TYPE.IMAGE,svg:e.LOAD_TYPE.IMAGE,"svg+xml":e.LOAD_TYPE.IMAGE,mp3:e.LOAD_TYPE.AUDIO,ogg:e.LOAD_TYPE.AUDIO,wav:e.LOAD_TYPE.AUDIO,mp4:e.LOAD_TYPE.VIDEO,webm:e.LOAD_TYPE.VIDEO},e._xhrTypeMap={xhtml:e.XHR_RESPONSE_TYPE.DOCUMENT,html:e.XHR_RESPONSE_TYPE.DOCUMENT,htm:e.XHR_RESPONSE_TYPE.DOCUMENT,xml:e.XHR_RESPONSE_TYPE.DOCUMENT,tmx:e.XHR_RESPONSE_TYPE.DOCUMENT,svg:e.XHR_RESPONSE_TYPE.DOCUMENT,tsx:e.XHR_RESPONSE_TYPE.DOCUMENT,gif:e.XHR_RESPONSE_TYPE.BLOB,png:e.XHR_RESPONSE_TYPE.BLOB,bmp:e.XHR_RESPONSE_TYPE.BLOB,jpg:e.XHR_RESPONSE_TYPE.BLOB,jpeg:e.XHR_RESPONSE_TYPE.BLOB,tif:e.XHR_RESPONSE_TYPE.BLOB,tiff:e.XHR_RESPONSE_TYPE.BLOB,webp:e.XHR_RESPONSE_TYPE.BLOB,tga:e.XHR_RESPONSE_TYPE.BLOB,avif:e.XHR_RESPONSE_TYPE.BLOB,json:e.XHR_RESPONSE_TYPE.JSON,text:e.XHR_RESPONSE_TYPE.TEXT,txt:e.XHR_RESPONSE_TYPE.TEXT,ttf:e.XHR_RESPONSE_TYPE.BUFFER,otf:e.XHR_RESPONSE_TYPE.BUFFER},e.EMPTY_GIF="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="})(mt||(mt={}));function go(){}function _le(e){return function(){for(var r=arguments,n=[],i=0;i>2,i[1]=(n[0]&3)<<4|n[1]>>4,i[2]=(n[1]&15)<<2|n[2]>>6,i[3]=n[2]&63;var a=r-(e.length-1);switch(a){case 2:i[3]=64,i[2]=64;break;case 1:i[3]=64;break}for(var o=0;o0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]=33776&&r<=33779)return"s3tc";if(r>=37488&&r<=37497)return"etc";if(r>=35840&&r<=35843)return"pvrtc";if(r>=36196)return"etc1";if(r>=35986&&r<=34798)return"atc";throw new Error("Invalid (compressed) texture format given!")},t._createLevelBuffers=function(r,n,i,o,a,s,u){for(var l=new Array(i),c=r.byteOffset,f=s,h=u,d=f+o-1&~(o-1),v=h+a-1&~(a-1),g=d*v*dl[n],p=0;p1?f:d,levelHeight:i>1?h:v,levelBuffer:new Uint8Array(r.buffer,c,g)},c+=g,f=f>>1||1,h=h>>1||1,d=f+o-1&~(o-1),v=h+a-1&~(a-1),g=d*v*dl[n];return l},t}(qI),XI=function(){function e(){}return e.use=function(t,r){var n=t.data,i=this;if(t.type===ht.TYPE.JSON&&n&&n.cacheID&&n.textures){for(var o=n.textures,a=void 0,s=void 0,u=0,l=o.length;u>>1,P=P>>>1}for(var z=w,F=0;F<_;F++)b.push(new Uint8Array(e,z,k)),z+=k}return b.map(function(q){return new th(q,{format:x,width:o,height:i,levels:a})})}throw u&fae?new Error("DDSParser does not support uncompressed texture data."):u&hae?new Error("DDSParser does not supported YUV uncompressed texture data."):u&dae?new Error("DDSParser does not support single-channel (lumninance) texture data!"):u&lae?new Error("DDSParser does not support single-channel (alpha) texture data!"):new Error("DDSParser failed to load a texture file due to an unknown reason!")}var vi,Kn,Ks,PT=[171,75,84,88,32,49,49,187,13,10,26,10],bae=67305985,sn={FILE_IDENTIFIER:0,ENDIANNESS:12,GL_TYPE:16,GL_TYPE_SIZE:20,GL_FORMAT:24,GL_INTERNAL_FORMAT:28,GL_BASE_INTERNAL_FORMAT:32,PIXEL_WIDTH:36,PIXEL_HEIGHT:40,PIXEL_DEPTH:44,NUMBER_OF_ARRAY_ELEMENTS:48,NUMBER_OF_FACES:52,NUMBER_OF_MIPMAP_LEVELS:56,BYTES_OF_KEY_VALUE_DATA:60},Wg=64,qg=(vi={},vi[fe.UNSIGNED_BYTE]=1,vi[fe.UNSIGNED_SHORT]=2,vi[fe.INT]=4,vi[fe.UNSIGNED_INT]=4,vi[fe.FLOAT]=4,vi[fe.HALF_FLOAT]=8,vi),ZI=(Kn={},Kn[Z.RGBA]=4,Kn[Z.RGB]=3,Kn[Z.RG]=2,Kn[Z.RED]=1,Kn[Z.LUMINANCE]=1,Kn[Z.LUMINANCE_ALPHA]=2,Kn[Z.ALPHA]=1,Kn),QI=(Ks={},Ks[fe.UNSIGNED_SHORT_4_4_4_4]=2,Ks[fe.UNSIGNED_SHORT_5_5_5_1]=2,Ks[fe.UNSIGNED_SHORT_5_6_5]=2,Ks);function JI(e,t,r){r===void 0&&(r=!1);var n=new DataView(t);if(!Sae(e,n))return null;var i=n.getUint32(sn.ENDIANNESS,!0)===bae,o=n.getUint32(sn.GL_TYPE,i),a=n.getUint32(sn.GL_FORMAT,i),s=n.getUint32(sn.GL_INTERNAL_FORMAT,i),u=n.getUint32(sn.PIXEL_WIDTH,i),l=n.getUint32(sn.PIXEL_HEIGHT,i)||1,c=n.getUint32(sn.PIXEL_DEPTH,i)||1,f=n.getUint32(sn.NUMBER_OF_ARRAY_ELEMENTS,i)||1,h=n.getUint32(sn.NUMBER_OF_FACES,i),d=n.getUint32(sn.NUMBER_OF_MIPMAP_LEVELS,i),v=n.getUint32(sn.BYTES_OF_KEY_VALUE_DATA,i);if(l===0||c!==1)throw new Error("Only 2D textures are supported");if(h!==1)throw new Error("CubeTextures are not supported by KTXLoader yet!");if(f!==1)throw new Error("WebGL does not support array textures");var g=4,p=4,m=u+3&-4,y=l+3&-4,_=new Array(f),x=u*l;o===0&&(x=m*y);var b;if(o!==0?qg[o]?b=qg[o]*ZI[a]:b=QI[o]:b=dl[s],b===void 0)throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");for(var w=r?Eae(n,v,i):null,T=x*b,k=T,A=u,P=l,F=m,D=y,H=Wg+v,re=0;re1||o!==0?A:F,levelHeight:d>1||o!==0?P:D,levelBuffer:new Uint8Array(t,q,k)},q+=k}H+=z+4,H=H%4!==0?H+4-H%4:H,A=A>>1||1,P=P>>1||1,F=A+g-1&~(g-1),D=P+p-1&~(p-1),k=F*D*b}return o!==0?{uncompressed:_.map(function(ge){var Q=ge[0].levelBuffer,L=!1;return o===fe.FLOAT?Q=new Float32Array(ge[0].levelBuffer.buffer,ge[0].levelBuffer.byteOffset,ge[0].levelBuffer.byteLength/4):o===fe.UNSIGNED_INT?(L=!0,Q=new Uint32Array(ge[0].levelBuffer.buffer,ge[0].levelBuffer.byteOffset,ge[0].levelBuffer.byteLength/4)):o===fe.INT&&(L=!0,Q=new Int32Array(ge[0].levelBuffer.buffer,ge[0].levelBuffer.byteOffset,ge[0].levelBuffer.byteLength/4)),{resource:new Xo(Q,{width:ge[0].levelWidth,height:ge[0].levelHeight}),type:o,format:L?wae(a):a}}),kvData:w}:{compressed:_.map(function(ge){return new th(null,{format:s,width:u,height:l,levels:d,levelBuffers:ge})}),kvData:w}}function Sae(e,t){for(var r=0;rt-i){console.error("KTXLoader: keyAndValueByteSize out of bounds");break}for(var u=0;u0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]=33776&&r<=33779)return"s3tc";if(r>=37488&&r<=37497)return"etc";if(r>=35840&&r<=35843)return"pvrtc";if(r>=36196)return"etc1";if(r>=35986&&r<=34798)return"atc";throw new Error("Invalid (compressed) texture format given!")},t._createLevelBuffers=function(r,n,i,o,a,s,u){for(var l=new Array(i),c=r.byteOffset,f=s,h=u,d=f+o-1&~(o-1),v=h+a-1&~(a-1),g=d*v*Nl[n],p=0;p1?f:d,levelHeight:i>1?h:v,levelBuffer:new Uint8Array(r.buffer,c,g)},c+=g,f=f>>1||1,h=h>>1||1,d=f+o-1&~(o-1),v=h+a-1&~(a-1),g=d*v*Nl[n];return l},t}(rN),nN=function(){function e(){}return e.use=function(t,r){var n=t.data,i=this;if(t.type===mt.TYPE.JSON&&n&&n.cacheID&&n.textures){for(var o=n.textures,a=void 0,s=void 0,u=0,l=o.length;u>>1,P=P>>>1}for(var z=w,F=0;F<_;F++)b.push(new Uint8Array(e,z,k)),z+=k}return b.map(function(q){return new Ch(q,{format:x,width:o,height:i,levels:a})})}throw u&Lle?new Error("DDSParser does not support uncompressed texture data."):u&Mle?new Error("DDSParser does not supported YUV uncompressed texture data."):u&Fle?new Error("DDSParser does not support single-channel (lumninance) texture data!"):u&Rle?new Error("DDSParser does not support single-channel (alpha) texture data!"):new Error("DDSParser failed to load a texture file due to an unknown reason!")}var Oi,si,hu,bC=[171,75,84,88,32,49,49,187,13,10,26,10],Hle=67305985,dn={FILE_IDENTIFIER:0,ENDIANNESS:12,GL_TYPE:16,GL_TYPE_SIZE:20,GL_FORMAT:24,GL_INTERNAL_FORMAT:28,GL_BASE_INTERNAL_FORMAT:32,PIXEL_WIDTH:36,PIXEL_HEIGHT:40,PIXEL_DEPTH:44,NUMBER_OF_ARRAY_ELEMENTS:48,NUMBER_OF_FACES:52,NUMBER_OF_MIPMAP_LEVELS:56,BYTES_OF_KEY_VALUE_DATA:60},Ty=64,Cy=(Oi={},Oi[fe.UNSIGNED_BYTE]=1,Oi[fe.UNSIGNED_SHORT]=2,Oi[fe.INT]=4,Oi[fe.UNSIGNED_INT]=4,Oi[fe.FLOAT]=4,Oi[fe.HALF_FLOAT]=8,Oi),aN=(si={},si[Z.RGBA]=4,si[Z.RGB]=3,si[Z.RG]=2,si[Z.RED]=1,si[Z.LUMINANCE]=1,si[Z.LUMINANCE_ALPHA]=2,si[Z.ALPHA]=1,si),sN=(hu={},hu[fe.UNSIGNED_SHORT_4_4_4_4]=2,hu[fe.UNSIGNED_SHORT_5_5_5_1]=2,hu[fe.UNSIGNED_SHORT_5_6_5]=2,hu);function uN(e,t,r){r===void 0&&(r=!1);var n=new DataView(t);if(!Vle(e,n))return null;var i=n.getUint32(dn.ENDIANNESS,!0)===Hle,o=n.getUint32(dn.GL_TYPE,i),a=n.getUint32(dn.GL_FORMAT,i),s=n.getUint32(dn.GL_INTERNAL_FORMAT,i),u=n.getUint32(dn.PIXEL_WIDTH,i),l=n.getUint32(dn.PIXEL_HEIGHT,i)||1,c=n.getUint32(dn.PIXEL_DEPTH,i)||1,f=n.getUint32(dn.NUMBER_OF_ARRAY_ELEMENTS,i)||1,h=n.getUint32(dn.NUMBER_OF_FACES,i),d=n.getUint32(dn.NUMBER_OF_MIPMAP_LEVELS,i),v=n.getUint32(dn.BYTES_OF_KEY_VALUE_DATA,i);if(l===0||c!==1)throw new Error("Only 2D textures are supported");if(h!==1)throw new Error("CubeTextures are not supported by KTXLoader yet!");if(f!==1)throw new Error("WebGL does not support array textures");var g=4,p=4,m=u+3&-4,y=l+3&-4,_=new Array(f),x=u*l;o===0&&(x=m*y);var b;if(o!==0?Cy[o]?b=Cy[o]*aN[a]:b=sN[o]:b=Nl[s],b===void 0)throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");for(var w=r?qle(n,v,i):null,T=x*b,k=T,A=u,P=l,F=m,D=y,H=Ty+v,re=0;re1||o!==0?A:F,levelHeight:d>1||o!==0?P:D,levelBuffer:new Uint8Array(t,q,k)},q+=k}H+=z+4,H=H%4!==0?H+4-H%4:H,A=A>>1||1,P=P>>1||1,F=A+g-1&~(g-1),D=P+p-1&~(p-1),k=F*D*b}return o!==0?{uncompressed:_.map(function(me){var Q=me[0].levelBuffer,L=!1;return o===fe.FLOAT?Q=new Float32Array(me[0].levelBuffer.buffer,me[0].levelBuffer.byteOffset,me[0].levelBuffer.byteLength/4):o===fe.UNSIGNED_INT?(L=!0,Q=new Uint32Array(me[0].levelBuffer.buffer,me[0].levelBuffer.byteOffset,me[0].levelBuffer.byteLength/4)):o===fe.INT&&(L=!0,Q=new Int32Array(me[0].levelBuffer.buffer,me[0].levelBuffer.byteOffset,me[0].levelBuffer.byteLength/4)),{resource:new aa(Q,{width:me[0].levelWidth,height:me[0].levelHeight}),type:o,format:L?Wle(a):a}}),kvData:w}:{compressed:_.map(function(me){return new Ch(null,{format:s,width:u,height:l,levels:d,levelBuffers:me})}),kvData:w}}function Vle(e,t){for(var r=0;rt-i){console.error("KTXLoader: keyAndValueByteSize out of bounds");break}for(var u=0;us&&(i=s),a._properties=[!1,!0,!1,!1,!1],a._maxSize=r,a._batchSize=i,a._buffers=null,a._bufferUpdateIDs=[],a._updateID=0,a.interactiveChildren=!1,a.blendMode=ce.NORMAL,a.autoResize=o,a.roundPixels=!0,a.baseTexture=null,a.setProperties(n),a._tint=0,a.tintRgb=new Float32Array(4),a.tint=16777215,a}return t.prototype.setProperties=function(r){r&&(this._properties[0]="vertices"in r||"scale"in r?!!r.vertices||!!r.scale:this._properties[0],this._properties[1]="position"in r?!!r.position:this._properties[1],this._properties[2]="rotation"in r?!!r.rotation:this._properties[2],this._properties[3]="uvs"in r?!!r.uvs:this._properties[3],this._properties[4]="tint"in r||"alpha"in r?!!r.tint||!!r.alpha:this._properties[4])},t.prototype.updateTransform=function(){this.displayObjectUpdateTransform()},Object.defineProperty(t.prototype,"tint",{get:function(){return this._tint},set:function(r){this._tint=r,jt(r,this.tintRgb)},enumerable:!1,configurable:!0}),t.prototype.render=function(r){var n=this;!this.visible||this.worldAlpha<=0||!this.children.length||!this.renderable||(this.baseTexture||(this.baseTexture=this.children[0]._texture.baseTexture,this.baseTexture.valid||this.baseTexture.once("update",function(){return n.onChildrenChange(0)})),r.batch.setObjectRenderer(r.plugins.particle),r.plugins.particle.render(this))},t.prototype.onChildrenChange=function(r){for(var n=Math.floor(r/this._batchSize);this._bufferUpdateIDs.lengths&&(i=s),a._properties=[!1,!0,!1,!1,!1],a._maxSize=r,a._batchSize=i,a._buffers=null,a._bufferUpdateIDs=[],a._updateID=0,a.interactiveChildren=!1,a.blendMode=ce.NORMAL,a.autoResize=o,a.roundPixels=!0,a.baseTexture=null,a.setProperties(n),a._tint=0,a.tintRgb=new Float32Array(4),a.tint=16777215,a}return t.prototype.setProperties=function(r){r&&(this._properties[0]="vertices"in r||"scale"in r?!!r.vertices||!!r.scale:this._properties[0],this._properties[1]="position"in r?!!r.position:this._properties[1],this._properties[2]="rotation"in r?!!r.rotation:this._properties[2],this._properties[3]="uvs"in r?!!r.uvs:this._properties[3],this._properties[4]="tint"in r||"alpha"in r?!!r.tint||!!r.alpha:this._properties[4])},t.prototype.updateTransform=function(){this.displayObjectUpdateTransform()},Object.defineProperty(t.prototype,"tint",{get:function(){return this._tint},set:function(r){this._tint=r,Gt(r,this.tintRgb)},enumerable:!1,configurable:!0}),t.prototype.render=function(r){var n=this;!this.visible||this.worldAlpha<=0||!this.children.length||!this.renderable||(this.baseTexture||(this.baseTexture=this.children[0]._texture.baseTexture,this.baseTexture.valid||this.baseTexture.once("update",function(){return n.onChildrenChange(0)})),r.batch.setObjectRenderer(r.plugins.particle),r.plugins.particle.render(this))},t.prototype.onChildrenChange=function(r){for(var n=Math.floor(r/this._batchSize);this._bufferUpdateIDs.lengthi&&!r.autoResize&&(s=i);var u=r._buffers;u||(u=r._buffers=this.generateBuffers(r));var l=n[0]._texture.baseTexture,c=l.alphaMode>0;this.state.blendMode=bx(r.blendMode,c),a.state.set(this.state);var f=a.gl,h=r.worldTransform.copyTo(this.tempMatrix);h.prepend(a.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=h.toArray(!0),this.shader.uniforms.uColor=Kk(r.tintRgb,r.worldAlpha,this.shader.uniforms.uColor,c),this.shader.uniforms.uSampler=l,this.renderer.shader.bind(this.shader);for(var d=!1,v=0,g=0;vo&&(p=o),g>=u.length&&u.push(this._generateOneMoreBuffer(r));var m=u[g];m.uploadDynamic(n,v,p);var y=r._bufferUpdateIDs[g]||0;d=d||m._updateID0,f=l.alpha,h=f<1&&c?xd(l._tintRGB,f):l._tintRGB+(f*255<<24);o[s]=h,o[s+a]=h,o[s+a*2]=h,o[s+a*3]=h,s+=a*4}},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null},t.extension={name:"particle",type:Ve.RendererPlugin},t}(Fl);/*! +`,hN=function(e){fN(t,e);function t(r){var n=e.call(this,r)||this;return n.shader=null,n.properties=null,n.tempMatrix=new Pt,n.properties=[{attributeName:"aVertexPosition",size:2,uploadFunction:n.uploadVertices,offset:0},{attributeName:"aPositionCoord",size:2,uploadFunction:n.uploadPosition,offset:0},{attributeName:"aRotation",size:1,uploadFunction:n.uploadRotation,offset:0},{attributeName:"aTextureCoord",size:2,uploadFunction:n.uploadUvs,offset:0},{attributeName:"aColor",size:1,type:fe.UNSIGNED_BYTE,uploadFunction:n.uploadTint,offset:0}],n.shader=xi.from(Kle,Yle,{}),n.state=vo.for2d(),n}return t.prototype.render=function(r){var n=r.children,i=r._maxSize,o=r._batchSize,a=this.renderer,s=n.length;if(s!==0){s>i&&!r.autoResize&&(s=i);var u=r._buffers;u||(u=r._buffers=this.generateBuffers(r));var l=n[0]._texture.baseTexture,c=l.alphaMode>0;this.state.blendMode=ob(r.blendMode,c),a.state.set(this.state);var f=a.gl,h=r.worldTransform.copyTo(this.tempMatrix);h.prepend(a.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=h.toArray(!0),this.shader.uniforms.uColor=oR(r.tintRgb,r.worldAlpha,this.shader.uniforms.uColor,c),this.shader.uniforms.uSampler=l,this.renderer.shader.bind(this.shader);for(var d=!1,v=0,g=0;vo&&(p=o),g>=u.length&&u.push(this._generateOneMoreBuffer(r));var m=u[g];m.uploadDynamic(n,v,p);var y=r._bufferUpdateIDs[g]||0;d=d||m._updateID0,f=l.alpha,h=f<1&&c?Kd(l._tintRGB,f):l._tintRGB+(f*255<<24);o[s]=h,o[s+a]=h,o[s+a*2]=h,o[s+a*3]=h,s+=a*4}},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null},t.extension={name:"particle",type:Ye.RendererPlugin},t}(nc);/*! * @pixi/graphics - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/graphics is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license - */var Tn;(function(e){e.MITER="miter",e.BEVEL="bevel",e.ROUND="round"})(Tn||(Tn={}));var ai;(function(e){e.BUTT="butt",e.ROUND="round",e.SQUARE="square"})(ai||(ai={}));var Za={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount:function(e,t){if(t===void 0&&(t=20),!this.adaptive||!e||isNaN(e))return t;var r=Math.ceil(e/this.maxLength);return rthis.maxSegments&&(r=this.maxSegments),r}},eb=function(){function e(){this.color=16777215,this.alpha=1,this.texture=pe.WHITE,this.matrix=null,this.visible=!1,this.reset()}return e.prototype.clone=function(){var t=new e;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t},e.prototype.reset=function(){this.color=16777215,this.alpha=1,this.texture=pe.WHITE,this.matrix=null,this.visible=!1},e.prototype.destroy=function(){this.texture=null,this.matrix=null},e}();/*! ***************************************************************************** + */var Mn;(function(e){e.MITER="miter",e.BEVEL="bevel",e.ROUND="round"})(Mn||(Mn={}));var gi;(function(e){e.BUTT="butt",e.ROUND="round",e.SQUARE="square"})(gi||(gi={}));var hs={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount:function(e,t){if(t===void 0&&(t=20),!this.adaptive||!e||isNaN(e))return t;var r=Math.ceil(e/this.maxLength);return rthis.maxSegments&&(r=this.maxSegments),r}},Bb=function(){function e(){this.color=16777215,this.alpha=1,this.texture=de.WHITE,this.matrix=null,this.visible=!1,this.reset()}return e.prototype.clone=function(){var t=new e;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t},e.prototype.reset=function(){this.color=16777215,this.alpha=1,this.texture=de.WHITE,this.matrix=null,this.visible=!1},e.prototype.destroy=function(){this.texture=null,this.matrix=null},e}();/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -803,7 +805,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Yg=function(e,t){return Yg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Yg(e,t)};function tb(e,t){Yg(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function IT(e,t){var r,n;t===void 0&&(t=!1);var i=e.length;if(!(i<6)){for(var o=0,a=0,s=e[i-2],u=e[i-1];a0||t&&o<=0)for(var f=i/2,a=f+f%2;a=6){IT(r,!1);for(var a=[],s=0;s=0&&s>=0&&i>=0&&o>=0)){t.length=0;return}var d=Math.ceil(2.3*Math.sqrt(a+s)),v=d*8+(i?4:0)+(o?4:0);if(t.length=v,v!==0){if(d===0){t.length=8,t[0]=t[6]=r+i,t[1]=t[3]=n+o,t[2]=t[4]=r-i,t[5]=t[7]=n-o;return}var g=0,p=d*4+(i?2:0)+2,m=p,y=v;{var _=i+a,x=o,b=r+_,w=r-_,T=n+x;if(t[g++]=b,t[g++]=T,t[--p]=T,t[--p]=w,o){var k=n-x;t[m++]=w,t[m++]=k,t[--y]=k,t[--y]=b}}for(var A=1;Af&&(f+=Math.PI*2);var h=c,d=f-c,v=Math.abs(d),g=Math.sqrt(u*u+l*l),p=(15*v*Math.sqrt(g)/Math.PI>>0)+1,m=d/p;if(h+=m,s){a.push(e,t),a.push(r,n);for(var y=1,_=h;y=0&&(o.join===Tn.ROUND?v+=ao(b,w,b-A*z,w-P*z,b-F*z,w-D*z,h,!1)+4:v+=2,h.push(b-F*q,w-D*q),h.push(b+F*z,w+D*z));continue}var ye=(-A+_)*(-P+w)-(-A+b)*(-P+x),be=(-F+T)*(-D+w)-(-F+b)*(-D+k),we=(De*be-Q*ye)/ee,Be=(L*ye-ge*be)/ee,Ue=(we-b)*(we-b)+(Be-w)*(Be-w),Ye=b+(we-b)*z,Ae=w+(Be-w)*z,Fe=b-(we-b)*q,Ge=w-(Be-w)*q,Ee=Math.min(De*De+ge*ge,Q*Q+L*L),ot=ae?z:q,Kt=Ee+ot*ot*m,Ne=Ue<=Kt;Ne?o.join===Tn.BEVEL||Ue/m>y?(ae?(h.push(Ye,Ae),h.push(b+A*q,w+P*q),h.push(Ye,Ae),h.push(b+F*q,w+D*q)):(h.push(b-A*z,w-P*z),h.push(Fe,Ge),h.push(b-F*z,w-D*z),h.push(Fe,Ge)),v+=2):o.join===Tn.ROUND?ae?(h.push(Ye,Ae),h.push(b+A*q,w+P*q),v+=ao(b,w,b+A*q,w+P*q,b+F*q,w+D*q,h,!0)+4,h.push(Ye,Ae),h.push(b+F*q,w+D*q)):(h.push(b-A*z,w-P*z),h.push(Fe,Ge),v+=ao(b,w,b-A*z,w-P*z,b-F*z,w-D*z,h,!1)+4,h.push(b-F*z,w-D*z),h.push(Fe,Ge)):(h.push(Ye,Ae),h.push(Fe,Ge)):(h.push(b-A*z,w-P*z),h.push(b+A*q,w+P*q),o.join===Tn.ROUND?ae?v+=ao(b,w,b+A*q,w+P*q,b+F*q,w+D*q,h,!0)+2:v+=ao(b,w,b-A*z,w-P*z,b-F*z,w-D*z,h,!1)+2:o.join===Tn.MITER&&Ue/m<=y&&(ae?(h.push(Fe,Ge),h.push(Fe,Ge)):(h.push(Ye,Ae),h.push(Ye,Ae)),v+=2),h.push(b-F*z,w-D*z),h.push(b+F*q,w+D*q),v+=2)}_=n[(d-2)*2],x=n[(d-2)*2+1],b=n[(d-1)*2],w=n[(d-1)*2+1],A=-(x-w),P=_-b,H=Math.sqrt(A*A+P*P),A/=H,P/=H,A*=p,P*=p,h.push(b-A*z,w-P*z),h.push(b+A*q,w+P*q),u||(o.cap===ai.ROUND?v+=ao(b-A*(z-q)*.5,w-P*(z-q)*.5,b-A*z,w-P*z,b+A*q,w+P*q,h,!1)+2:o.cap===ai.SQUARE&&(v+=RT(b,w,A,P,z,q,!1,h)));for(var sr=t.indices,xn=Za.epsilon*Za.epsilon,ue=g;ueh*l}},e.arc=function(t,r,n,i,o,a,s,u,l){for(var c=s-a,f=Za._segmentsCount(Math.abs(c)*o,Math.ceil(Math.abs(c)/cl)*40),h=c/(f*2),d=h*2,v=Math.cos(h),g=Math.sin(h),p=f-1,m=p%1/p,y=0;y<=p;++y){var _=y+m*y,x=h+a+d*_,b=Math.cos(x),w=-Math.sin(x);l.push((v*b+g*w)*o+n,(v*-w+g*b)*o+i)}},e}(),aR=function(){function e(){}return e.curveLength=function(t,r,n,i,o,a,s,u){for(var l=10,c=0,f=0,h=0,d=0,v=0,g=0,p=0,m=0,y=0,_=0,x=0,b=t,w=r,T=1;T<=l;++T)f=T/l,h=f*f,d=h*f,v=1-f,g=v*v,p=g*v,m=p*t+3*g*f*n+3*v*h*o+d*s,y=p*r+3*g*f*i+3*v*h*a+d*u,_=b-m,x=w-y,b=m,w=y,c+=Math.sqrt(_*_+x*x);return c},e.curveTo=function(t,r,n,i,o,a,s){var u=s[s.length-2],l=s[s.length-1];s.length-=2;var c=Za._segmentsCount(e.curveLength(u,l,t,r,n,i,o,a)),f=0,h=0,d=0,v=0,g=0;s.push(u,l);for(var p=1,m=0;p<=c;++p)m=p/c,f=1-m,h=f*f,d=h*f,v=m*m,g=v*m,s.push(d*u+3*h*m*t+3*f*v*n+g*o,d*l+3*h*m*r+3*f*v*i+g*a)},e}(),sR=function(){function e(){}return e.curveLength=function(t,r,n,i,o,a){var s=t-2*n+o,u=r-2*i+a,l=2*n-2*t,c=2*i-2*r,f=4*(s*s+u*u),h=4*(s*l+u*c),d=l*l+c*c,v=2*Math.sqrt(f+h+d),g=Math.sqrt(f),p=2*f*g,m=2*Math.sqrt(d),y=h/g;return(p*v+g*h*(v-m)+(4*d*f-h*h)*Math.log((2*g+y+v)/(y+m)))/(4*p)},e.curveTo=function(t,r,n,i,o){for(var a=o[o.length-2],s=o[o.length-1],u=Za._segmentsCount(e.curveLength(a,s,t,r,n,i)),l=0,c=0,f=1;f<=u;++f){var h=f/u;l=a+(t-a)*h,c=s+(r-s)*h,o.push(l+(t+(n-t)*h-l)*h,c+(r+(i-r)*h-c)*h)}},e}(),uR=function(){function e(){this.reset()}return e.prototype.begin=function(t,r,n){this.reset(),this.style=t,this.start=r,this.attribStart=n},e.prototype.end=function(t,r){this.attribSize=r-this.attribStart,this.size=t-this.start},e.prototype.reset=function(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0},e}(),so,nf=(so={},so[Ot.POLY]=rb,so[Ot.CIRC]=pl,so[Ot.ELIP]=pl,so[Ot.RECT]=iR,so[Ot.RREC]=oR,so),Qg=[],lu=[],Jg=function(){function e(t,r,n,i){r===void 0&&(r=null),n===void 0&&(n=null),i===void 0&&(i=null),this.points=[],this.holes=[],this.shape=t,this.lineStyle=n,this.fillStyle=r,this.matrix=i,this.type=t.type}return e.prototype.clone=function(){return new e(this.shape,this.fillStyle,this.lineStyle,this.matrix)},e.prototype.destroy=function(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null},e}(),sa=new Oe,lR=function(e){tb(t,e);function t(){var r=e.call(this)||this;return r.closePointEps=1e-4,r.boundsPadding=0,r.uvsFloat32=null,r.indicesUint16=null,r.batchable=!1,r.points=[],r.colors=[],r.uvs=[],r.indices=[],r.textureIds=[],r.graphicsData=[],r.drawCalls=[],r.batchDirty=-1,r.batches=[],r.dirty=0,r.cacheDirty=-1,r.clearDirty=0,r.shapeIndex=0,r._bounds=new fl,r.boundsDirty=-1,r}return Object.defineProperty(t.prototype,"bounds",{get:function(){return this.updateBatches(),this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds},enumerable:!1,configurable:!0}),t.prototype.invalidate=function(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(var r=0;r0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this},t.prototype.drawShape=function(r,n,i,o){n===void 0&&(n=null),i===void 0&&(i=null),o===void 0&&(o=null);var a=new Jg(r,n,i,o);return this.graphicsData.push(a),this.dirty++,this},t.prototype.drawHole=function(r,n){if(n===void 0&&(n=null),!this.graphicsData.length)return null;var i=new Jg(r,null,null,n),o=this.graphicsData[this.graphicsData.length-1];return i.lineStyle=o.lineStyle,o.holes.push(i),this.dirty++,this},t.prototype.destroy=function(){e.prototype.destroy.call(this);for(var r=0;r0&&(i=this.batches[this.batches.length-1],o=i.style);for(var a=this.shapeIndex;a65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&_===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=_?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}},t.prototype._compareStyles=function(r,n){return!(!r||!n||r.texture.baseTexture!==n.texture.baseTexture||r.color+r.alpha!==n.color+n.alpha||!!r.native!=!!n.native)},t.prototype.validateBatching=function(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(var r=0,n=this.graphicsData.length;r65535*2)return!1;for(var r=this.batches,n=0;n0&&(a=lu.pop(),a||(a=new Qf,a.texArray=new Jf),this.drawCalls.push(a)),a.start=h,a.size=0,a.texArray.count=0,a.type=f),p.touched=1,p._batchEnabled=r,p._batchLocation=s,p.wrapMode=dn.REPEAT,a.texArray.elements[a.texArray.count++]=p,s++)),a.size+=d.size,h+=d.size,l=p._batchLocation,this.addColors(i,g.color,g.alpha,d.attribSize,d.attribStart),this.addTextureIds(o,l,d.attribSize,d.attribStart)}Ie._globalBatch=r,this.packAttributes()},t.prototype.packAttributes=function(){for(var r=this.points,n=this.uvs,i=this.colors,o=this.textureIds,a=new ArrayBuffer(r.length*3*4),s=new Float32Array(a),u=new Uint32Array(a),l=0,c=0;c>16)+(n&65280)+((n&255)<<16),u=xd(s,i);r.length=Math.max(r.length,a+o);for(var l=0;l0&&r.alpha>0;return n?(r.matrix&&(r.matrix=r.matrix.clone(),r.matrix.invert()),Object.assign(this._lineStyle,{visible:n},r)):this._lineStyle.reset(),this},t.prototype.startPoly=function(){if(this.currentPath){var r=this.currentPath.points,n=this.currentPath.points.length;n>2&&(this.drawShape(this.currentPath),this.currentPath=new Ru,this.currentPath.closeStroke=!1,this.currentPath.points.push(r[n-2],r[n-1]))}else this.currentPath=new Ru,this.currentPath.closeStroke=!1},t.prototype.finishPoly=function(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)},t.prototype.moveTo=function(r,n){return this.startPoly(),this.currentPath.points[0]=r,this.currentPath.points[1]=n,this},t.prototype.lineTo=function(r,n){this.currentPath||this.moveTo(0,0);var i=this.currentPath.points,o=i[i.length-2],a=i[i.length-1];return(o!==r||a!==n)&&i.push(r,n),this},t.prototype._initCurve=function(r,n){r===void 0&&(r=0),n===void 0&&(n=0),this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[r,n]):this.moveTo(r,n)},t.prototype.quadraticCurveTo=function(r,n,i,o){this._initCurve();var a=this.currentPath.points;return a.length===0&&this.moveTo(0,0),sR.curveTo(r,n,i,o,a),this},t.prototype.bezierCurveTo=function(r,n,i,o,a,s){return this._initCurve(),aR.curveTo(r,n,i,o,a,s,this.currentPath.points),this},t.prototype.arcTo=function(r,n,i,o,a){this._initCurve(r,n);var s=this.currentPath.points,u=Zg.curveTo(r,n,i,o,a,s);if(u){var l=u.cx,c=u.cy,f=u.radius,h=u.startAngle,d=u.endAngle,v=u.anticlockwise;this.arc(l,c,f,h,d,v)}return this},t.prototype.arc=function(r,n,i,o,a,s){if(s===void 0&&(s=!1),o===a)return this;!s&&a<=o?a+=cl:s&&o<=a&&(o+=cl);var u=a-o;if(u===0)return this;var l=r+Math.cos(o)*i,c=n+Math.sin(o)*i,f=this._geometry.closePointEps,h=this.currentPath?this.currentPath.points:null;if(h){var d=Math.abs(h[h.length-2]-l),v=Math.abs(h[h.length-1]-c);d0;return n?(r.matrix&&(r.matrix=r.matrix.clone(),r.matrix.invert()),Object.assign(this._fillStyle,{visible:n},r)):this._fillStyle.reset(),this},t.prototype.endFill=function(){return this.finishPoly(),this._fillStyle.reset(),this},t.prototype.drawRect=function(r,n,i,o){return this.drawShape(new Re(r,n,i,o))},t.prototype.drawRoundedRect=function(r,n,i,o,a){return this.drawShape(new oI(r,n,i,o,a))},t.prototype.drawCircle=function(r,n,i){return this.drawShape(new nI(r,n,i))},t.prototype.drawEllipse=function(r,n,i,o){return this.drawShape(new iI(r,n,i,o))},t.prototype.drawPolygon=function(){for(var r=arguments,n=[],i=0;i>16&255)/255*a,s.tint[1]=(o>>8&255)/255*a,s.tint[2]=(o&255)/255*a,s.tint[3]=a,r.shader.bind(n),r.geometry.bind(i,n),r.state.set(this.state);for(var l=0,c=u.length;l>16)+(l&65280)+((l&255)<<16)}}},t.prototype.calculateVertices=function(){var r=this.transform._worldID;if(this._transformID!==r){this._transformID=r;for(var n=this.transform.worldTransform,i=n.a,o=n.b,a=n.c,s=n.d,u=n.tx,l=n.ty,c=this._geometry.points,f=this.vertexData,h=0,d=0;d0||t&&o<=0)for(var f=i/2,a=f+f%2;a=6){wC(r,!1);for(var a=[],s=0;s=0&&s>=0&&i>=0&&o>=0)){t.length=0;return}var d=Math.ceil(2.3*Math.sqrt(a+s)),v=d*8+(i?4:0)+(o?4:0);if(t.length=v,v!==0){if(d===0){t.length=8,t[0]=t[6]=r+i,t[1]=t[3]=n+o,t[2]=t[4]=r-i,t[5]=t[7]=n-o;return}var g=0,p=d*4+(i?2:0)+2,m=p,y=v;{var _=i+a,x=o,b=r+_,w=r-_,T=n+x;if(t[g++]=b,t[g++]=T,t[--p]=T,t[--p]=w,o){var k=n-x;t[m++]=w,t[m++]=k,t[--y]=k,t[--y]=b}}for(var A=1;Af&&(f+=Math.PI*2);var h=c,d=f-c,v=Math.abs(d),g=Math.sqrt(u*u+l*l),p=(15*v*Math.sqrt(g)/Math.PI>>0)+1,m=d/p;if(h+=m,s){a.push(e,t),a.push(r,n);for(var y=1,_=h;y=0&&(o.join===Mn.ROUND?v+=yo(b,w,b-A*z,w-P*z,b-F*z,w-D*z,h,!1)+4:v+=2,h.push(b-F*q,w-D*q),h.push(b+F*z,w+D*z));continue}var ge=(-A+_)*(-P+w)-(-A+b)*(-P+x),be=(-F+T)*(-D+w)-(-F+b)*(-D+k),Se=(Ue*be-Q*ge)/ee,Ge=(L*ge-me*be)/ee,Ve=(Se-b)*(Se-b)+(Ge-w)*(Ge-w),Je=b+(Se-b)*z,Oe=w+(Ge-w)*z,Fe=b-(Se-b)*q,We=w-(Ge-w)*q,we=Math.min(Ue*Ue+me*me,Q*Q+L*L),lt=ae?z:q,er=we+lt*lt*m,Ne=Ve<=er;Ne?o.join===Mn.BEVEL||Ve/m>y?(ae?(h.push(Je,Oe),h.push(b+A*q,w+P*q),h.push(Je,Oe),h.push(b+F*q,w+D*q)):(h.push(b-A*z,w-P*z),h.push(Fe,We),h.push(b-F*z,w-D*z),h.push(Fe,We)),v+=2):o.join===Mn.ROUND?ae?(h.push(Je,Oe),h.push(b+A*q,w+P*q),v+=yo(b,w,b+A*q,w+P*q,b+F*q,w+D*q,h,!0)+4,h.push(Je,Oe),h.push(b+F*q,w+D*q)):(h.push(b-A*z,w-P*z),h.push(Fe,We),v+=yo(b,w,b-A*z,w-P*z,b-F*z,w-D*z,h,!1)+4,h.push(b-F*z,w-D*z),h.push(Fe,We)):(h.push(Je,Oe),h.push(Fe,We)):(h.push(b-A*z,w-P*z),h.push(b+A*q,w+P*q),o.join===Mn.ROUND?ae?v+=yo(b,w,b+A*q,w+P*q,b+F*q,w+D*q,h,!0)+2:v+=yo(b,w,b-A*z,w-P*z,b-F*z,w-D*z,h,!1)+2:o.join===Mn.MITER&&Ve/m<=y&&(ae?(h.push(Fe,We),h.push(Fe,We)):(h.push(Je,Oe),h.push(Je,Oe)),v+=2),h.push(b-F*z,w-D*z),h.push(b+F*q,w+D*q),v+=2)}_=n[(d-2)*2],x=n[(d-2)*2+1],b=n[(d-1)*2],w=n[(d-1)*2+1],A=-(x-w),P=_-b,H=Math.sqrt(A*A+P*P),A/=H,P/=H,A*=p,P*=p,h.push(b-A*z,w-P*z),h.push(b+A*q,w+P*q),u||(o.cap===gi.ROUND?v+=yo(b-A*(z-q)*.5,w-P*(z-q)*.5,b-A*z,w-P*z,b+A*q,w+P*q,h,!1)+2:o.cap===gi.SQUARE&&(v+=EC(b,w,A,P,z,q,!1,h)));for(var hr=t.indices,An=hs.epsilon*hs.epsilon,le=g;leh*l}},e.arc=function(t,r,n,i,o,a,s,u,l){for(var c=s-a,f=hs._segmentsCount(Math.abs(c)*o,Math.ceil(Math.abs(c)/kl)*40),h=c/(f*2),d=h*2,v=Math.cos(h),g=Math.sin(h),p=f-1,m=p%1/p,y=0;y<=p;++y){var _=y+m*y,x=h+a+d*_,b=Math.cos(x),w=-Math.sin(x);l.push((v*b+g*w)*o+n,(v*-w+g*b)*o+i)}},e}(),vN=function(){function e(){}return e.curveLength=function(t,r,n,i,o,a,s,u){for(var l=10,c=0,f=0,h=0,d=0,v=0,g=0,p=0,m=0,y=0,_=0,x=0,b=t,w=r,T=1;T<=l;++T)f=T/l,h=f*f,d=h*f,v=1-f,g=v*v,p=g*v,m=p*t+3*g*f*n+3*v*h*o+d*s,y=p*r+3*g*f*i+3*v*h*a+d*u,_=b-m,x=w-y,b=m,w=y,c+=Math.sqrt(_*_+x*x);return c},e.curveTo=function(t,r,n,i,o,a,s){var u=s[s.length-2],l=s[s.length-1];s.length-=2;var c=hs._segmentsCount(e.curveLength(u,l,t,r,n,i,o,a)),f=0,h=0,d=0,v=0,g=0;s.push(u,l);for(var p=1,m=0;p<=c;++p)m=p/c,f=1-m,h=f*f,d=h*f,v=m*m,g=v*m,s.push(d*u+3*h*m*t+3*f*v*n+g*o,d*l+3*h*m*r+3*f*v*i+g*a)},e}(),mN=function(){function e(){}return e.curveLength=function(t,r,n,i,o,a){var s=t-2*n+o,u=r-2*i+a,l=2*n-2*t,c=2*i-2*r,f=4*(s*s+u*u),h=4*(s*l+u*c),d=l*l+c*c,v=2*Math.sqrt(f+h+d),g=Math.sqrt(f),p=2*f*g,m=2*Math.sqrt(d),y=h/g;return(p*v+g*h*(v-m)+(4*d*f-h*h)*Math.log((2*g+y+v)/(y+m)))/(4*p)},e.curveTo=function(t,r,n,i,o){for(var a=o[o.length-2],s=o[o.length-1],u=hs._segmentsCount(e.curveLength(a,s,t,r,n,i)),l=0,c=0,f=1;f<=u;++f){var h=f/u;l=a+(t-a)*h,c=s+(r-s)*h,o.push(l+(t+(n-t)*h-l)*h,c+(r+(i-r)*h-c)*h)}},e}(),gN=function(){function e(){this.reset()}return e.prototype.begin=function(t,r,n){this.reset(),this.style=t,this.start=r,this.attribStart=n},e.prototype.end=function(t,r){this.attribSize=r-this.attribStart,this.size=t-this.start},e.prototype.reset=function(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0},e}(),_o,Pf=(_o={},_o[It.POLY]=$b,_o[It.CIRC]=Ll,_o[It.ELIP]=Ll,_o[It.RECT]=dN,_o[It.RREC]=pN,_o),Iy=[],Cu=[],Ry=function(){function e(t,r,n,i){r===void 0&&(r=null),n===void 0&&(n=null),i===void 0&&(i=null),this.points=[],this.holes=[],this.shape=t,this.lineStyle=n,this.fillStyle=r,this.matrix=i,this.type=t.type}return e.prototype.clone=function(){return new e(this.shape,this.fillStyle,this.lineStyle,this.matrix)},e.prototype.destroy=function(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null},e}(),_a=new Ce,yN=function(e){jb(t,e);function t(){var r=e.call(this)||this;return r.closePointEps=1e-4,r.boundsPadding=0,r.uvsFloat32=null,r.indicesUint16=null,r.batchable=!1,r.points=[],r.colors=[],r.uvs=[],r.indices=[],r.textureIds=[],r.graphicsData=[],r.drawCalls=[],r.batchDirty=-1,r.batches=[],r.dirty=0,r.cacheDirty=-1,r.clearDirty=0,r.shapeIndex=0,r._bounds=new Il,r.boundsDirty=-1,r}return Object.defineProperty(t.prototype,"bounds",{get:function(){return this.updateBatches(),this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds},enumerable:!1,configurable:!0}),t.prototype.invalidate=function(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(var r=0;r0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this},t.prototype.drawShape=function(r,n,i,o){n===void 0&&(n=null),i===void 0&&(i=null),o===void 0&&(o=null);var a=new Ry(r,n,i,o);return this.graphicsData.push(a),this.dirty++,this},t.prototype.drawHole=function(r,n){if(n===void 0&&(n=null),!this.graphicsData.length)return null;var i=new Ry(r,null,null,n),o=this.graphicsData[this.graphicsData.length-1];return i.lineStyle=o.lineStyle,o.holes.push(i),this.dirty++,this},t.prototype.destroy=function(){e.prototype.destroy.call(this);for(var r=0;r0&&(i=this.batches[this.batches.length-1],o=i.style);for(var a=this.shapeIndex;a65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&_===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=_?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}},t.prototype._compareStyles=function(r,n){return!(!r||!n||r.texture.baseTexture!==n.texture.baseTexture||r.color+r.alpha!==n.color+n.alpha||!!r.native!=!!n.native)},t.prototype.validateBatching=function(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(var r=0,n=this.graphicsData.length;r65535*2)return!1;for(var r=this.batches,n=0;n0&&(a=Cu.pop(),a||(a=new wh,a.texArray=new Eh),this.drawCalls.push(a)),a.start=h,a.size=0,a.texArray.count=0,a.type=f),p.touched=1,p._batchEnabled=r,p._batchLocation=s,p.wrapMode=xn.REPEAT,a.texArray.elements[a.texArray.count++]=p,s++)),a.size+=d.size,h+=d.size,l=p._batchLocation,this.addColors(i,g.color,g.alpha,d.attribSize,d.attribStart),this.addTextureIds(o,l,d.attribSize,d.attribStart)}Ie._globalBatch=r,this.packAttributes()},t.prototype.packAttributes=function(){for(var r=this.points,n=this.uvs,i=this.colors,o=this.textureIds,a=new ArrayBuffer(r.length*3*4),s=new Float32Array(a),u=new Uint32Array(a),l=0,c=0;c>16)+(n&65280)+((n&255)<<16),u=Kd(s,i);r.length=Math.max(r.length,a+o);for(var l=0;l0&&r.alpha>0;return n?(r.matrix&&(r.matrix=r.matrix.clone(),r.matrix.invert()),Object.assign(this._lineStyle,{visible:n},r)):this._lineStyle.reset(),this},t.prototype.startPoly=function(){if(this.currentPath){var r=this.currentPath.points,n=this.currentPath.points.length;n>2&&(this.drawShape(this.currentPath),this.currentPath=new Xu,this.currentPath.closeStroke=!1,this.currentPath.points.push(r[n-2],r[n-1]))}else this.currentPath=new Xu,this.currentPath.closeStroke=!1},t.prototype.finishPoly=function(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)},t.prototype.moveTo=function(r,n){return this.startPoly(),this.currentPath.points[0]=r,this.currentPath.points[1]=n,this},t.prototype.lineTo=function(r,n){this.currentPath||this.moveTo(0,0);var i=this.currentPath.points,o=i[i.length-2],a=i[i.length-1];return(o!==r||a!==n)&&i.push(r,n),this},t.prototype._initCurve=function(r,n){r===void 0&&(r=0),n===void 0&&(n=0),this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[r,n]):this.moveTo(r,n)},t.prototype.quadraticCurveTo=function(r,n,i,o){this._initCurve();var a=this.currentPath.points;return a.length===0&&this.moveTo(0,0),mN.curveTo(r,n,i,o,a),this},t.prototype.bezierCurveTo=function(r,n,i,o,a,s){return this._initCurve(),vN.curveTo(r,n,i,o,a,s,this.currentPath.points),this},t.prototype.arcTo=function(r,n,i,o,a){this._initCurve(r,n);var s=this.currentPath.points,u=ky.curveTo(r,n,i,o,a,s);if(u){var l=u.cx,c=u.cy,f=u.radius,h=u.startAngle,d=u.endAngle,v=u.anticlockwise;this.arc(l,c,f,h,d,v)}return this},t.prototype.arc=function(r,n,i,o,a,s){if(s===void 0&&(s=!1),o===a)return this;!s&&a<=o?a+=kl:s&&o<=a&&(o+=kl);var u=a-o;if(u===0)return this;var l=r+Math.cos(o)*i,c=n+Math.sin(o)*i,f=this._geometry.closePointEps,h=this.currentPath?this.currentPath.points:null;if(h){var d=Math.abs(h[h.length-2]-l),v=Math.abs(h[h.length-1]-c);d0;return n?(r.matrix&&(r.matrix=r.matrix.clone(),r.matrix.invert()),Object.assign(this._fillStyle,{visible:n},r)):this._fillStyle.reset(),this},t.prototype.endFill=function(){return this.finishPoly(),this._fillStyle.reset(),this},t.prototype.drawRect=function(r,n,i,o){return this.drawShape(new Re(r,n,i,o))},t.prototype.drawRoundedRect=function(r,n,i,o,a){return this.drawShape(new pR(r,n,i,o,a))},t.prototype.drawCircle=function(r,n,i){return this.drawShape(new hR(r,n,i))},t.prototype.drawEllipse=function(r,n,i,o){return this.drawShape(new dR(r,n,i,o))},t.prototype.drawPolygon=function(){for(var r=arguments,n=[],i=0;i>16&255)/255*a,s.tint[1]=(o>>8&255)/255*a,s.tint[2]=(o&255)/255*a,s.tint[3]=a,r.shader.bind(n),r.geometry.bind(i,n),r.state.set(this.state);for(var l=0,c=u.length;l>16)+(l&65280)+((l&255)<<16)}}},t.prototype.calculateVertices=function(){var r=this.transform._worldID;if(this._transformID!==r){this._transformID=r;for(var n=this.transform.worldTransform,i=n.a,o=n.b,a=n.c,s=n.d,u=n.tx,l=n.ty,c=this._geometry.points,f=this.vertexData,h=0,d=0;d=o&&Zs.x=a&&Zs.y>16)+(r&65280)+((r&255)<<16)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"texture",{get:function(){return this._texture},set:function(r){this._texture!==r&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=r||pe.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,r&&(r.baseTexture.valid?this._onTextureUpdate():r.once("update",this._onTextureUpdate,this)))},enumerable:!1,configurable:!0}),t}(dr);/*! +***************************************************************************** */var Ny=function(e,t){return Ny=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Ny(e,t)};function tce(e,t){Ny(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var du=new Ce,rce=new Uint16Array([0,1,2,0,2,3]),jn=function(e){tce(t,e);function t(r){var n=e.call(this)||this;return n._anchor=new Bi(n._onAnchorUpdate,n,r?r.defaultAnchor.x:0,r?r.defaultAnchor.y:0),n._texture=null,n._width=0,n._height=0,n._tint=null,n._tintRGB=null,n.tint=16777215,n.blendMode=ce.NORMAL,n._cachedTint=16777215,n.uvs=null,n.texture=r||de.EMPTY,n.vertexData=new Float32Array(8),n.vertexTrimmedData=null,n._transformID=-1,n._textureID=-1,n._transformTrimmedID=-1,n._textureTrimmedID=-1,n.indices=rce,n.pluginName="batch",n.isSprite=!0,n._roundPixels=te.ROUND_PIXELS,n}return t.prototype._onTextureUpdate=function(){this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this._width&&(this.scale.x=Fo(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=Fo(this.scale.y)*this._height/this._texture.orig.height)},t.prototype._onAnchorUpdate=function(){this._transformID=-1,this._transformTrimmedID=-1},t.prototype.calculateVertices=function(){var r=this._texture;if(!(this._transformID===this.transform._worldID&&this._textureID===r._updateID)){this._textureID!==r._updateID&&(this.uvs=this._texture._uvs.uvsFloat32),this._transformID=this.transform._worldID,this._textureID=r._updateID;var n=this.transform.worldTransform,i=n.a,o=n.b,a=n.c,s=n.d,u=n.tx,l=n.ty,c=this.vertexData,f=r.trim,h=r.orig,d=this._anchor,v=0,g=0,p=0,m=0;if(f?(g=f.x-d._x*h.width,v=g+f.width,m=f.y-d._y*h.height,p=m+f.height):(g=-d._x*h.width,v=g+h.width,m=-d._y*h.height,p=m+h.height),c[0]=i*g+a*m+u,c[1]=s*m+o*g+l,c[2]=i*v+a*m+u,c[3]=s*m+o*v+l,c[4]=i*v+a*p+u,c[5]=s*p+o*v+l,c[6]=i*g+a*p+u,c[7]=s*p+o*g+l,this._roundPixels)for(var y=te.RESOLUTION,_=0;_=o&&du.x=a&&du.y>16)+(r&65280)+((r&255)<<16)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"texture",{get:function(){return this._texture},set:function(r){this._texture!==r&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=r||de.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,r&&(r.baseTexture.valid?this._onTextureUpdate():r.once("update",this._onTextureUpdate,this)))},enumerable:!1,configurable:!0}),t}(gr);/*! * @pixi/text - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * @@ -841,8 +843,8 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var ty=function(e,t){return ty=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},ty(e,t)};function Lae(e,t){ty(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Qa;(function(e){e[e.LINEAR_VERTICAL=0]="LINEAR_VERTICAL",e[e.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL"})(Qa||(Qa={}));var Hv={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:Qa.LINEAR_VERTICAL,fillGradientStops:[],fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,lineJoin:"miter",miterLimit:10,padding:0,stroke:"black",strokeThickness:0,textBaseline:"alphabetic",trim:!1,whiteSpace:"pre",wordWrap:!1,wordWrapWidth:100,leading:0},Mae=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],Bo=function(){function e(t){this.styleID=0,this.reset(),Wv(this,t,t)}return e.prototype.clone=function(){var t={};return Wv(t,this,Hv),new e(t)},e.prototype.reset=function(){Wv(this,Hv,Hv)},Object.defineProperty(e.prototype,"align",{get:function(){return this._align},set:function(t){this._align!==t&&(this._align=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"breakWords",{get:function(){return this._breakWords},set:function(t){this._breakWords!==t&&(this._breakWords=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadow",{get:function(){return this._dropShadow},set:function(t){this._dropShadow!==t&&(this._dropShadow=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadowAlpha",{get:function(){return this._dropShadowAlpha},set:function(t){this._dropShadowAlpha!==t&&(this._dropShadowAlpha=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadowAngle",{get:function(){return this._dropShadowAngle},set:function(t){this._dropShadowAngle!==t&&(this._dropShadowAngle=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadowBlur",{get:function(){return this._dropShadowBlur},set:function(t){this._dropShadowBlur!==t&&(this._dropShadowBlur=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadowColor",{get:function(){return this._dropShadowColor},set:function(t){var r=Vv(t);this._dropShadowColor!==r&&(this._dropShadowColor=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadowDistance",{get:function(){return this._dropShadowDistance},set:function(t){this._dropShadowDistance!==t&&(this._dropShadowDistance=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fill",{get:function(){return this._fill},set:function(t){var r=Vv(t);this._fill!==r&&(this._fill=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fillGradientType",{get:function(){return this._fillGradientType},set:function(t){this._fillGradientType!==t&&(this._fillGradientType=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fillGradientStops",{get:function(){return this._fillGradientStops},set:function(t){Fae(this._fillGradientStops,t)||(this._fillGradientStops=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontFamily",{get:function(){return this._fontFamily},set:function(t){this.fontFamily!==t&&(this._fontFamily=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontSize",{get:function(){return this._fontSize},set:function(t){this._fontSize!==t&&(this._fontSize=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontStyle",{get:function(){return this._fontStyle},set:function(t){this._fontStyle!==t&&(this._fontStyle=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontVariant",{get:function(){return this._fontVariant},set:function(t){this._fontVariant!==t&&(this._fontVariant=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontWeight",{get:function(){return this._fontWeight},set:function(t){this._fontWeight!==t&&(this._fontWeight=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"letterSpacing",{get:function(){return this._letterSpacing},set:function(t){this._letterSpacing!==t&&(this._letterSpacing=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lineHeight",{get:function(){return this._lineHeight},set:function(t){this._lineHeight!==t&&(this._lineHeight=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leading",{get:function(){return this._leading},set:function(t){this._leading!==t&&(this._leading=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lineJoin",{get:function(){return this._lineJoin},set:function(t){this._lineJoin!==t&&(this._lineJoin=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"miterLimit",{get:function(){return this._miterLimit},set:function(t){this._miterLimit!==t&&(this._miterLimit=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function(){return this._padding},set:function(t){this._padding!==t&&(this._padding=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stroke",{get:function(){return this._stroke},set:function(t){var r=Vv(t);this._stroke!==r&&(this._stroke=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"strokeThickness",{get:function(){return this._strokeThickness},set:function(t){this._strokeThickness!==t&&(this._strokeThickness=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textBaseline",{get:function(){return this._textBaseline},set:function(t){this._textBaseline!==t&&(this._textBaseline=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trim",{get:function(){return this._trim},set:function(t){this._trim!==t&&(this._trim=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"whiteSpace",{get:function(){return this._whiteSpace},set:function(t){this._whiteSpace!==t&&(this._whiteSpace=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wordWrap",{get:function(){return this._wordWrap},set:function(t){this._wordWrap!==t&&(this._wordWrap=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wordWrapWidth",{get:function(){return this._wordWrapWidth},set:function(t){this._wordWrapWidth!==t&&(this._wordWrapWidth=t,this.styleID++)},enumerable:!1,configurable:!0}),e.prototype.toFontString=function(){var t=typeof this.fontSize=="number"?this.fontSize+"px":this.fontSize,r=this.fontFamily;Array.isArray(this.fontFamily)||(r=this.fontFamily.split(","));for(var n=r.length-1;n>=0;n--){var i=r[n].trim();!/([\"\'])[^\'\"]+\1/.test(i)&&Mae.indexOf(i)<0&&(i='"'+i+'"'),r[n]=i}return this.fontStyle+" "+this.fontVariant+" "+this.fontWeight+" "+t+" "+r.join(",")},e}();function NT(e){return typeof e=="number"?yx(e):(typeof e=="string"&&e.indexOf("0x")===0&&(e=e.replace("0x","#")),e)}function Vv(e){if(Array.isArray(e)){for(var t=0;tv)if(a!==""&&(s+=e.addLine(a),a="",o=0),e.canBreakWords(m,r.breakWords))for(var b=e.wordWrapSplit(m),w=0;wv&&(s+=e.addLine(a),d=!1,a="",o=0),a+=T,o+=F}else{a.length>0&&(s+=e.addLine(a),a="",o=0);var D=p===g.length-1;s+=e.addLine(m,!D),d=!1,a="",o=0}else x+o>v&&(d=!1,s+=e.addLine(a),a="",o=0),(a.length>0||!e.isBreakingSpace(m)||d)&&(a+=m,o+=x)}return s+=e.addLine(a,!1),s},e.addLine=function(t,r){return r===void 0&&(r=!0),t=e.trimRight(t),t=r?t+` -`:t,t},e.getFromCache=function(t,r,n,i){var o=n[t];if(typeof o!="number"){var a=t.length*r;o=i.measureText(t).width+a,n[t]=o}return o},e.collapseSpaces=function(t){return t==="normal"||t==="pre-line"},e.collapseNewlines=function(t){return t==="normal"},e.trimRight=function(t){if(typeof t!="string")return"";for(var r=t.length-1;r>=0;r--){var n=t[r];if(!e.isBreakingSpace(n))break;t=t.slice(0,-1)}return t},e.isNewline=function(t){return typeof t!="string"?!1:e._newlines.indexOf(t.charCodeAt(0))>=0},e.isBreakingSpace=function(t,r){return typeof t!="string"?!1:e._breakingSpaces.indexOf(t.charCodeAt(0))>=0},e.tokenize=function(t){var r=[],n="";if(typeof t!="string")return r;for(var i=0;is;--h){for(var g=0;g0&&p>m&&(y=(m+p)/2);var _=m+g,x=i.lineHeight*(v+1),b=_;v+1=0;n--){var i=r[n].trim();!/([\"\'])[^\'\"]+\1/.test(i)&&ice.indexOf(i)<0&&(i='"'+i+'"'),r[n]=i}return this.fontStyle+" "+this.fontVariant+" "+this.fontWeight+" "+t+" "+r.join(",")},e}();function TC(e){return typeof e=="number"?rb(e):(typeof e=="string"&&e.indexOf("0x")===0&&(e=e.replace("0x","#")),e)}function wm(e){if(Array.isArray(e)){for(var t=0;tv)if(a!==""&&(s+=e.addLine(a),a="",o=0),e.canBreakWords(m,r.breakWords))for(var b=e.wordWrapSplit(m),w=0;wv&&(s+=e.addLine(a),d=!1,a="",o=0),a+=T,o+=F}else{a.length>0&&(s+=e.addLine(a),a="",o=0);var D=p===g.length-1;s+=e.addLine(m,!D),d=!1,a="",o=0}else x+o>v&&(d=!1,s+=e.addLine(a),a="",o=0),(a.length>0||!e.isBreakingSpace(m)||d)&&(a+=m,o+=x)}return s+=e.addLine(a,!1),s},e.addLine=function(t,r){return r===void 0&&(r=!0),t=e.trimRight(t),t=r?t+` +`:t,t},e.getFromCache=function(t,r,n,i){var o=n[t];if(typeof o!="number"){var a=t.length*r;o=i.measureText(t).width+a,n[t]=o}return o},e.collapseSpaces=function(t){return t==="normal"||t==="pre-line"},e.collapseNewlines=function(t){return t==="normal"},e.trimRight=function(t){if(typeof t!="string")return"";for(var r=t.length-1;r>=0;r--){var n=t[r];if(!e.isBreakingSpace(n))break;t=t.slice(0,-1)}return t},e.isNewline=function(t){return typeof t!="string"?!1:e._newlines.indexOf(t.charCodeAt(0))>=0},e.isBreakingSpace=function(t,r){return typeof t!="string"?!1:e._breakingSpaces.indexOf(t.charCodeAt(0))>=0},e.tokenize=function(t){var r=[],n="";if(typeof t!="string")return r;for(var i=0;is;--h){for(var g=0;g0&&p>m&&(y=(m+p)/2);var _=m+g,x=i.lineHeight*(v+1),b=_;v+10},e}();function jae(e,t){var r=!1;if(e&&e._textures&&e._textures.length){for(var n=0;n=0;r--)this.add(t.children[r]);return this},e.prototype.destroy=function(){this.ticking&&Ft.system.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null},e}();function dR(e,t){return t instanceof Ie?(t._glTextures[e.CONTEXT_UID]||e.texture.bind(t),!0):!1}function Wae(e,t){if(!(t instanceof vl))return!1;var r=t.geometry;t.finishPoly(),r.updateBatches();for(var n=r.batches,i=0;i0},e}();function uce(e,t){var r=!1;if(e&&e._textures&&e._textures.length){for(var n=0;n=0;r--)this.add(t.children[r]);return this},e.prototype.destroy=function(){this.ticking&&jt.system.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null},e}();function SN(e,t){return t instanceof Ie?(t._glTextures[e.CONTEXT_UID]||e.texture.bind(t),!0):!1}function vce(e,t){if(!(t instanceof Ml))return!1;var r=t.geometry;t.finishPoly(),r.updateBatches();for(var n=r.batches,i=0;i=o&&Qs.x=a&&Qs.y=o&&pu.x=a&&pu.y1?ui.from(Qae,Jae,n):ui.from(LT,Zae,n)},t.prototype.render=function(r){var n=this.renderer,i=this.quad,o=i.vertices;o[0]=o[6]=r._width*-r.anchor.x,o[1]=o[3]=r._height*-r.anchor.y,o[2]=o[4]=r._width*(1-r.anchor.x),o[5]=o[7]=r._height*(1-r.anchor.y);var a=r.uvRespectAnchor?r.anchor.x:0,s=r.uvRespectAnchor?r.anchor.y:0;o=i.uvs,o[0]=o[6]=-a,o[1]=o[3]=-s,o[2]=o[4]=1-a,o[5]=o[7]=1-s,i.invalidate();var u=r._texture,l=u.baseTexture,c=l.alphaMode>0,f=r.tileTransform.localTransform,h=r.uvMatrix,d=l.isPowerOfTwo&&u.frame.width===l.width&&u.frame.height===l.height;d&&(l._glTextures[n.CONTEXT_UID]?d=l.wrapMode!==dn.CLAMP:l.wrapMode===dn.CLAMP&&(l.wrapMode=dn.REPEAT));var v=d?this.simpleShader:this.shader,g=u.width,p=u.height,m=r._width,y=r._height;Cc.set(f.a*g/m,f.b*g/y,f.c*p/m,f.d*p/y,f.tx/m,f.ty/y),Cc.invert(),d?Cc.prepend(h.mapCoord):(v.uniforms.uMapCoord=h.mapCoord.toArray(!0),v.uniforms.uClampFrame=h.uClampFrame,v.uniforms.uClampOffset=h.uClampOffset),v.uniforms.uTransform=Cc.toArray(!0),v.uniforms.uColor=Sx(r.tint,r.worldAlpha,v.uniforms.uColor,c),v.uniforms.translationMatrix=r.transform.worldTransform.toArray(!0),v.uniforms.uSampler=u,n.shader.bind(v),n.geometry.bind(i),this.state.blendMode=bx(r.blendMode,c),n.state.set(this.state),n.geometry.draw(this.renderer.gl.TRIANGLES,6,0)},t.extension={name:"tilingSprite",type:Ve.RendererPlugin},t}(Fl);/*! +`,Yc=new Pt,ON=function(e){CN(t,e);function t(r){var n=e.call(this,r)||this;return r.runners.contextChange.add(n),n.quad=new yb,n.state=vo.for2d(),n}return t.prototype.contextChange=function(){var r=this.renderer,n={globals:r.globalUniforms};this.simpleShader=xi.from(CC,_ce,n),this.shader=r.context.webGLVersion>1?xi.from(bce,Sce,n):xi.from(CC,xce,n)},t.prototype.render=function(r){var n=this.renderer,i=this.quad,o=i.vertices;o[0]=o[6]=r._width*-r.anchor.x,o[1]=o[3]=r._height*-r.anchor.y,o[2]=o[4]=r._width*(1-r.anchor.x),o[5]=o[7]=r._height*(1-r.anchor.y);var a=r.uvRespectAnchor?r.anchor.x:0,s=r.uvRespectAnchor?r.anchor.y:0;o=i.uvs,o[0]=o[6]=-a,o[1]=o[3]=-s,o[2]=o[4]=1-a,o[5]=o[7]=1-s,i.invalidate();var u=r._texture,l=u.baseTexture,c=l.alphaMode>0,f=r.tileTransform.localTransform,h=r.uvMatrix,d=l.isPowerOfTwo&&u.frame.width===l.width&&u.frame.height===l.height;d&&(l._glTextures[n.CONTEXT_UID]?d=l.wrapMode!==xn.CLAMP:l.wrapMode===xn.CLAMP&&(l.wrapMode=xn.REPEAT));var v=d?this.simpleShader:this.shader,g=u.width,p=u.height,m=r._width,y=r._height;Yc.set(f.a*g/m,f.b*g/y,f.c*p/m,f.d*p/y,f.tx/m,f.ty/y),Yc.invert(),d?Yc.prepend(h.mapCoord):(v.uniforms.uMapCoord=h.mapCoord.toArray(!0),v.uniforms.uClampFrame=h.uClampFrame,v.uniforms.uClampOffset=h.uClampOffset),v.uniforms.uTransform=Yc.toArray(!0),v.uniforms.uColor=ab(r.tint,r.worldAlpha,v.uniforms.uColor,c),v.uniforms.translationMatrix=r.transform.worldTransform.toArray(!0),v.uniforms.uSampler=u,n.shader.bind(v),n.geometry.bind(i),this.state.blendMode=ob(r.blendMode,c),n.state.set(this.state),n.geometry.draw(this.renderer.gl.TRIANGLES,6,0)},t.extension={name:"tilingSprite",type:Ye.RendererPlugin},t}(nc);/*! * @pixi/mesh - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * @@ -1019,7 +1021,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var iy=function(e,t){return iy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},iy(e,t)};function ib(e,t){iy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var _R=function(){function e(t,r){this.uvBuffer=t,this.uvMatrix=r,this.data=null,this._bufferUpdateId=-1,this._textureUpdateId=-1,this._updateID=0}return e.prototype.update=function(t){if(!(!t&&this._bufferUpdateId===this.uvBuffer._updateID&&this._textureUpdateId===this.uvMatrix._updateID)){this._bufferUpdateId=this.uvBuffer._updateID,this._textureUpdateId=this.uvMatrix._updateID;var r=this.uvBuffer.data;(!this.data||this.data.length!==r.length)&&(this.data=new Float32Array(r.length)),this.uvMatrix.multiplyUvs(r,this.data),this._updateID++}},e}(),qv=new Oe,MT=new Ru,Ja=function(e){ib(t,e);function t(r,n,i,o){o===void 0&&(o=qr.TRIANGLES);var a=e.call(this)||this;return a.geometry=r,a.shader=n,a.state=i||no.for2d(),a.drawMode=o,a.start=0,a.size=0,a.uvs=null,a.indices=null,a.vertexData=new Float32Array(1),a.vertexDirty=-1,a._transformID=-1,a._roundPixels=te.ROUND_PIXELS,a.batchUvs=null,a}return Object.defineProperty(t.prototype,"geometry",{get:function(){return this._geometry},set:function(r){this._geometry!==r&&(this._geometry&&(this._geometry.refCount--,this._geometry.refCount===0&&this._geometry.dispose()),this._geometry=r,this._geometry&&this._geometry.refCount++,this.vertexDirty=-1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uvBuffer",{get:function(){return this.geometry.buffers[1]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verticesBuffer",{get:function(){return this.geometry.buffers[0]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"material",{get:function(){return this.shader},set:function(r){this.shader=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(r){this.state.blendMode=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(r){this._roundPixels!==r&&(this._transformID=-1),this._roundPixels=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tint",{get:function(){return"tint"in this.shader?this.shader.tint:null},set:function(r){this.shader.tint=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"texture",{get:function(){return"texture"in this.shader?this.shader.texture:null},set:function(r){this.shader.texture=r},enumerable:!1,configurable:!0}),t.prototype._render=function(r){var n=this.geometry.buffers[0].data,i=this.shader;i.batchable&&this.drawMode===qr.TRIANGLES&&n.length>16)+(r&65280)+((r&255)<<16),this._colorDirty=!0)},enumerable:!1,configurable:!0}),t.prototype.update=function(){if(this._colorDirty){this._colorDirty=!1;var r=this.texture.baseTexture;Sx(this._tint,this._alpha,this.uniforms.uColor,r.alphaMode)}this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)},t}(ui),Dl=function(e){ib(t,e);function t(r,n,i){var o=e.call(this)||this,a=new wt(r),s=new wt(n,!0),u=new wt(i,!0,!0);return o.addAttribute("aVertexPosition",a,2,!1,fe.FLOAT).addAttribute("aTextureCoord",s,2,!1,fe.FLOAT).addIndex(u),o._updateId=-1,o}return Object.defineProperty(t.prototype,"vertexDirtyId",{get:function(){return this.buffers[0]._updateID},enumerable:!1,configurable:!0}),t}(xs);/*! +`,vs=function(e){Gb(t,e);function t(r,n){var i=this,o={uSampler:r,alpha:1,uTextureMatrix:Pt.IDENTITY,uColor:new Float32Array([1,1,1,1])};return n=Object.assign({tint:16777215,alpha:1,pluginName:"batch"},n),n.uniforms&&Object.assign(o,n.uniforms),i=e.call(this,n.program||js.from(Ece,wce),o)||this,i._colorDirty=!1,i.uvMatrix=new tp(r),i.batchable=n.program===void 0,i.pluginName=n.pluginName,i.tint=n.tint,i.alpha=n.alpha,i}return Object.defineProperty(t.prototype,"texture",{get:function(){return this.uniforms.uSampler},set:function(r){this.uniforms.uSampler!==r&&(!this.uniforms.uSampler.baseTexture.alphaMode!=!r.baseTexture.alphaMode&&(this._colorDirty=!0),this.uniforms.uSampler=r,this.uvMatrix.texture=r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return this._alpha},set:function(r){r!==this._alpha&&(this._alpha=r,this._colorDirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tint",{get:function(){return this._tint},set:function(r){r!==this._tint&&(this._tint=r,this._tintRGB=(r>>16)+(r&65280)+((r&255)<<16),this._colorDirty=!0)},enumerable:!1,configurable:!0}),t.prototype.update=function(){if(this._colorDirty){this._colorDirty=!1;var r=this.texture.baseTexture;ab(this._tint,this._alpha,this.uniforms.uColor,r.alphaMode)}this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)},t}(xi),ic=function(e){Gb(t,e);function t(r,n,i){var o=e.call(this)||this,a=new Ct(r),s=new Ct(n,!0),u=new Ct(i,!0,!0);return o.addAttribute("aVertexPosition",a,2,!1,fe.FLOAT).addAttribute("aTextureCoord",s,2,!1,fe.FLOAT).addIndex(u),o._updateId=-1,o}return Object.defineProperty(t.prototype,"vertexDirtyId",{get:function(){return this.buffers[0]._updateID},enumerable:!1,configurable:!0}),t}(Bs);/*! * @pixi/text-bitmap - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * @@ -1062,7 +1064,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var oy=function(e,t){return oy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},oy(e,t)};function rse(e,t){oy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ml=function(){function e(){this.info=[],this.common=[],this.page=[],this.char=[],this.kerning=[],this.distanceField=[]}return e}(),xR=function(){function e(){}return e.test=function(t){return typeof t=="string"&&t.indexOf("info face=")===0},e.parse=function(t){var r=t.match(/^[a-z]+\s+.+$/gm),n={info:[],common:[],page:[],char:[],chars:[],kerning:[],kernings:[],distanceField:[]};for(var i in r){var o=r[i].match(/^[a-z]+/gm)[0],a=r[i].match(/[a-zA-Z]+=([^\s"']+|"([^"]*)")/gm),s={};for(var u in a){var l=a[u].split("="),c=l[0],f=l[1].replace(/"/gm,""),h=parseFloat(f),d=isNaN(h)?f:h;s[c]=d}n[o].push(s)}var v=new ml;return n.info.forEach(function(g){return v.info.push({face:g.face,size:parseInt(g.size,10)})}),n.common.forEach(function(g){return v.common.push({lineHeight:parseInt(g.lineHeight,10)})}),n.page.forEach(function(g){return v.page.push({id:parseInt(g.id,10),file:g.file})}),n.char.forEach(function(g){return v.char.push({id:parseInt(g.id,10),page:parseInt(g.page,10),x:parseInt(g.x,10),y:parseInt(g.y,10),width:parseInt(g.width,10),height:parseInt(g.height,10),xoffset:parseInt(g.xoffset,10),yoffset:parseInt(g.yoffset,10),xadvance:parseInt(g.xadvance,10)})}),n.kerning.forEach(function(g){return v.kerning.push({first:parseInt(g.first,10),second:parseInt(g.second,10),amount:parseInt(g.amount,10)})}),n.distanceField.forEach(function(g){return v.distanceField.push({distanceRange:parseInt(g.distanceRange,10),fieldType:g.fieldType})}),v},e}(),rh=function(){function e(){}return e.test=function(t){return t instanceof XMLDocument&&t.getElementsByTagName("page").length&&t.getElementsByTagName("info")[0].getAttribute("face")!==null},e.parse=function(t){for(var r=new ml,n=t.getElementsByTagName("info"),i=t.getElementsByTagName("common"),o=t.getElementsByTagName("page"),a=t.getElementsByTagName("char"),s=t.getElementsByTagName("kerning"),u=t.getElementsByTagName("distanceField"),l=0;l")>-1){var r=new globalThis.DOMParser().parseFromString(t,"text/xml");return rh.test(r)}return!1},e.parse=function(t){var r=new globalThis.DOMParser().parseFromString(t,"text/xml");return rh.parse(r)},e}(),Xv=[xR,rh,bR];function ob(e){for(var t=0;t=l-A*s){if(g===0)throw new Error("[BitmapFont] textureHeight "+l+"px is too small "+("(fontFamily: '"+f.fontFamily+"', fontSize: "+f.fontSize+"px, char: '"+w+"')"));--b,p=null,m=null,y=null,g=0,v=0,_=0;continue}if(_=Math.max(A+T.fontProperties.descent,_),P*s+v>=h){if(v===0)throw new Error("[BitmapFont] textureWidth "+u+"px is too small "+("(fontFamily: '"+f.fontFamily+"', fontSize: "+f.fontSize+"px, char: '"+w+"')"));--b,g+=_*s,g=Math.ceil(g),v=0,_=0;continue}ise(p,m,T,v,g,s,f);var F=of(T.text);d.char.push({id:F,page:x.length-1,x:v/s,y:g/s,width:P,height:A,xoffset:0,yoffset:0,xadvance:Math.ceil(k-(f.dropShadow?f.dropShadowDistance:0)-(f.stroke?f.strokeThickness:0))}),v+=(P+2*a)*s,v=Math.ceil(v)}if(!(n!=null&&n.skipKerning))for(var b=0,D=c.length;b")>-1){var r=new globalThis.DOMParser().parseFromString(t,"text/xml");return Oh.test(r)}return!1},e.parse=function(t){var r=new globalThis.DOMParser().parseFromString(t,"text/xml");return Oh.parse(r)},e}(),Cm=[PN,Oh,kN];function zb(e){for(var t=0;t=l-A*s){if(g===0)throw new Error("[BitmapFont] textureHeight "+l+"px is too small "+("(fontFamily: '"+f.fontFamily+"', fontSize: "+f.fontSize+"px, char: '"+w+"')"));--b,p=null,m=null,y=null,g=0,v=0,_=0;continue}if(_=Math.max(A+T.fontProperties.descent,_),P*s+v>=h){if(v===0)throw new Error("[BitmapFont] textureWidth "+u+"px is too small "+("(fontFamily: '"+f.fontFamily+"', fontSize: "+f.fontSize+"px, char: '"+w+"')"));--b,g+=_*s,g=Math.ceil(g),v=0,_=0;continue}Oce(p,m,T,v,g,s,f);var F=kf(T.text);d.char.push({id:F,page:x.length-1,x:v/s,y:g/s,width:P,height:A,xoffset:0,yoffset:0,xadvance:Math.ceil(k-(f.dropShadow?f.dropShadowDistance:0)-(f.stroke?f.strokeThickness:0))}),v+=(P+2*a)*s,v=Math.ceil(v)}if(!(n!=null&&n.skipKerning))for(var b=0,D=c.length;b0&&a.x>h&&(++x,ko(s,1+y-x,1+T-y),T=y,y=-1,u.push(_),l.push(s.length>0?s[s.length-1].prevSpaces:0),p=Math.max(p,_),m++,a.x=0,a.y+=n.lineHeight,v=null,w=0)}}var D=f[f.length-1];D!=="\r"&&D!==` -`&&(/(?:\s)/.test(D)&&(g=_),u.push(g),p=Math.max(p,g),l.push(-1));for(var H=[],T=0;T<=m;T++){var re=0;this._align==="right"?re=p-u[T]:this._align==="center"?re=(p-u[T])/2:this._align==="justify"&&(re=l[T]<0?0:(p-u[T])/l[T]),H.push(re)}var z=s.length,q={},ue=[],De=this._activePagesMeshData;d.push.apply(d,De);for(var T=0;T6*we)||L.vertices.length0&&a.x>h&&(++x,Go(s,1+y-x,1+T-y),T=y,y=-1,u.push(_),l.push(s.length>0?s[s.length-1].prevSpaces:0),p=Math.max(p,_),m++,a.x=0,a.y+=n.lineHeight,v=null,w=0)}}var D=f[f.length-1];D!=="\r"&&D!==` +`&&(/(?:\s)/.test(D)&&(g=_),u.push(g),p=Math.max(p,g),l.push(-1));for(var H=[],T=0;T<=m;T++){var re=0;this._align==="right"?re=p-u[T]:this._align==="center"?re=(p-u[T])/2:this._align==="justify"&&(re=l[T]<0?0:(p-u[T])/l[T]),H.push(re)}var z=s.length,q={},le=[],Ue=this._activePagesMeshData;d.push.apply(d,Ue);for(var T=0;T6*Se)||L.vertices.length=r&&(a=e-s-1),u=u.replace("%value%",t[a].toString()),i+=u,i+=` -`}return n=n.replace("%blur%",i),n=n.replace("%size%",e.toString()),n}var gl=function(e){TR(t,e);function t(r,n,i,o,a){n===void 0&&(n=8),i===void 0&&(i=4),o===void 0&&(o=te.FILTER_RESOLUTION),a===void 0&&(a=5);var s=this,u=hse(a,r),l=vse(a);return s=e.call(this,u,l)||this,s.horizontal=r,s.resolution=o,s._quality=0,s.quality=i,s.blur=n,s}return t.prototype.apply=function(r,n,i,o){if(i?this.horizontal?this.uniforms.strength=1/i.width*(i.width/n.width):this.uniforms.strength=1/i.height*(i.height/n.height):this.horizontal?this.uniforms.strength=1/r.renderer.width*(r.renderer.width/n.width):this.uniforms.strength=1/r.renderer.height*(r.renderer.height/n.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,this.passes===1)r.applyFilter(this,n,i,o);else{var a=r.getFilterTexture(),s=r.renderer,u=n,l=a;this.state.blend=!1,r.applyFilter(this,u,l,zr.CLEAR);for(var c=1;c=r&&(a=e-s-1),u=u.replace("%value%",t[a].toString()),i+=u,i+=` +`}return n=n.replace("%blur%",i),n=n.replace("%size%",e.toString()),n}var Dl=function(e){LN(t,e);function t(r,n,i,o,a){n===void 0&&(n=8),i===void 0&&(i=4),o===void 0&&(o=te.FILTER_RESOLUTION),a===void 0&&(a=5);var s=this,u=Mce(a,r),l=Bce(a);return s=e.call(this,u,l)||this,s.horizontal=r,s.resolution=o,s._quality=0,s.quality=i,s.blur=n,s}return t.prototype.apply=function(r,n,i,o){if(i?this.horizontal?this.uniforms.strength=1/i.width*(i.width/n.width):this.uniforms.strength=1/i.height*(i.height/n.height):this.horizontal?this.uniforms.strength=1/r.renderer.width*(r.renderer.width/n.width):this.uniforms.strength=1/r.renderer.height*(r.renderer.height/n.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,this.passes===1)r.applyFilter(this,n,i,o);else{var a=r.getFilterTexture(),s=r.renderer,u=n,l=a;this.state.blend=!1,r.applyFilter(this,u,l,Kr.CLEAR);for(var c=1;c>16&255,o=r>>8&255,a=r&255,s=[i/255,0,0,0,0,0,o/255,0,0,0,0,0,a/255,0,0,0,0,0,1,0];this._loadMatrix(s,n)},t.prototype.greyscale=function(r,n){var i=[r,r,r,0,0,r,r,r,0,0,r,r,r,0,0,0,0,0,1,0];this._loadMatrix(i,n)},t.prototype.blackAndWhite=function(r){var n=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.hue=function(r,n){r=(r||0)/180*Math.PI;var i=Math.cos(r),o=Math.sin(r),a=Math.sqrt,s=1/3,u=a(s),l=i+(1-i)*s,c=s*(1-i)-u*o,f=s*(1-i)+u*o,h=s*(1-i)+u*o,d=i+s*(1-i),v=s*(1-i)-u*o,g=s*(1-i)-u*o,p=s*(1-i)+u*o,m=i+s*(1-i),y=[l,c,f,0,0,h,d,v,0,0,g,p,m,0,0,0,0,0,1,0];this._loadMatrix(y,n)},t.prototype.contrast=function(r,n){var i=(r||0)+1,o=-.5*(i-1),a=[i,0,0,0,o,0,i,0,0,o,0,0,i,0,o,0,0,0,1,0];this._loadMatrix(a,n)},t.prototype.saturate=function(r,n){r===void 0&&(r=0);var i=r*2/3+1,o=(i-1)*-.5,a=[i,o,o,0,0,o,i,o,0,0,o,o,i,0,0,0,0,0,1,0];this._loadMatrix(a,n)},t.prototype.desaturate=function(){this.saturate(-1)},t.prototype.negative=function(r){var n=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.sepia=function(r){var n=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.technicolor=function(r){var n=[1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.polaroid=function(r){var n=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.toBGR=function(r){var n=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.kodachrome=function(r){var n=[1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.browni=function(r){var n=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.vintage=function(r){var n=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.colorTone=function(r,n,i,o,a){r=r||.2,n=n||.15,i=i||16770432,o=o||3375104;var s=(i>>16&255)/255,u=(i>>8&255)/255,l=(i&255)/255,c=(o>>16&255)/255,f=(o>>8&255)/255,h=(o&255)/255,d=[.3,.59,.11,0,0,s,u,l,r,0,c,f,h,n,0,s-c,u-f,l-h,0,0];this._loadMatrix(d,a)},t.prototype.night=function(r,n){r=r||.1;var i=[r*-2,-r,0,0,0,-r,0,r,0,0,0,r,r*2,0,0,0,0,0,1,0];this._loadMatrix(i,n)},t.prototype.predator=function(r,n){var i=[11.224130630493164*r,-4.794486999511719*r,-2.8746118545532227*r,0*r,.40342438220977783*r,-3.6330697536468506*r,9.193157196044922*r,-2.951810836791992*r,0*r,-1.316135048866272*r,-3.2184197902679443*r,-4.2375030517578125*r,7.476448059082031*r,0*r,.8044459223747253*r,0,0,0,1,0];this._loadMatrix(i,n)},t.prototype.lsd=function(r){var n=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.reset=function(){var r=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];this._loadMatrix(r,!1)},Object.defineProperty(t.prototype,"matrix",{get:function(){return this.uniforms.m},set:function(r){this.uniforms.m=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(r){this.uniforms.uAlpha=r},enumerable:!1,configurable:!0}),t}(me);ly.prototype.grayscale=ly.prototype.greyscale;/*! +`,Gy=function(e){$ce(t,e);function t(){var r=this,n={m:new Float32Array([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]),uAlpha:1};return r=e.call(this,Lb,Uce,n)||this,r.alpha=1,r}return t.prototype._loadMatrix=function(r,n){n===void 0&&(n=!1);var i=r;n&&(this._multiply(i,this.uniforms.m,r),i=this._colorMatrix(i)),this.uniforms.m=i},t.prototype._multiply=function(r,n,i){return r[0]=n[0]*i[0]+n[1]*i[5]+n[2]*i[10]+n[3]*i[15],r[1]=n[0]*i[1]+n[1]*i[6]+n[2]*i[11]+n[3]*i[16],r[2]=n[0]*i[2]+n[1]*i[7]+n[2]*i[12]+n[3]*i[17],r[3]=n[0]*i[3]+n[1]*i[8]+n[2]*i[13]+n[3]*i[18],r[4]=n[0]*i[4]+n[1]*i[9]+n[2]*i[14]+n[3]*i[19]+n[4],r[5]=n[5]*i[0]+n[6]*i[5]+n[7]*i[10]+n[8]*i[15],r[6]=n[5]*i[1]+n[6]*i[6]+n[7]*i[11]+n[8]*i[16],r[7]=n[5]*i[2]+n[6]*i[7]+n[7]*i[12]+n[8]*i[17],r[8]=n[5]*i[3]+n[6]*i[8]+n[7]*i[13]+n[8]*i[18],r[9]=n[5]*i[4]+n[6]*i[9]+n[7]*i[14]+n[8]*i[19]+n[9],r[10]=n[10]*i[0]+n[11]*i[5]+n[12]*i[10]+n[13]*i[15],r[11]=n[10]*i[1]+n[11]*i[6]+n[12]*i[11]+n[13]*i[16],r[12]=n[10]*i[2]+n[11]*i[7]+n[12]*i[12]+n[13]*i[17],r[13]=n[10]*i[3]+n[11]*i[8]+n[12]*i[13]+n[13]*i[18],r[14]=n[10]*i[4]+n[11]*i[9]+n[12]*i[14]+n[13]*i[19]+n[14],r[15]=n[15]*i[0]+n[16]*i[5]+n[17]*i[10]+n[18]*i[15],r[16]=n[15]*i[1]+n[16]*i[6]+n[17]*i[11]+n[18]*i[16],r[17]=n[15]*i[2]+n[16]*i[7]+n[17]*i[12]+n[18]*i[17],r[18]=n[15]*i[3]+n[16]*i[8]+n[17]*i[13]+n[18]*i[18],r[19]=n[15]*i[4]+n[16]*i[9]+n[17]*i[14]+n[18]*i[19]+n[19],r},t.prototype._colorMatrix=function(r){var n=new Float32Array(r);return n[4]/=255,n[9]/=255,n[14]/=255,n[19]/=255,n},t.prototype.brightness=function(r,n){var i=[r,0,0,0,0,0,r,0,0,0,0,0,r,0,0,0,0,0,1,0];this._loadMatrix(i,n)},t.prototype.tint=function(r,n){var i=r>>16&255,o=r>>8&255,a=r&255,s=[i/255,0,0,0,0,0,o/255,0,0,0,0,0,a/255,0,0,0,0,0,1,0];this._loadMatrix(s,n)},t.prototype.greyscale=function(r,n){var i=[r,r,r,0,0,r,r,r,0,0,r,r,r,0,0,0,0,0,1,0];this._loadMatrix(i,n)},t.prototype.blackAndWhite=function(r){var n=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.hue=function(r,n){r=(r||0)/180*Math.PI;var i=Math.cos(r),o=Math.sin(r),a=Math.sqrt,s=1/3,u=a(s),l=i+(1-i)*s,c=s*(1-i)-u*o,f=s*(1-i)+u*o,h=s*(1-i)+u*o,d=i+s*(1-i),v=s*(1-i)-u*o,g=s*(1-i)-u*o,p=s*(1-i)+u*o,m=i+s*(1-i),y=[l,c,f,0,0,h,d,v,0,0,g,p,m,0,0,0,0,0,1,0];this._loadMatrix(y,n)},t.prototype.contrast=function(r,n){var i=(r||0)+1,o=-.5*(i-1),a=[i,0,0,0,o,0,i,0,0,o,0,0,i,0,o,0,0,0,1,0];this._loadMatrix(a,n)},t.prototype.saturate=function(r,n){r===void 0&&(r=0);var i=r*2/3+1,o=(i-1)*-.5,a=[i,o,o,0,0,o,i,o,0,0,o,o,i,0,0,0,0,0,1,0];this._loadMatrix(a,n)},t.prototype.desaturate=function(){this.saturate(-1)},t.prototype.negative=function(r){var n=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.sepia=function(r){var n=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.technicolor=function(r){var n=[1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.polaroid=function(r){var n=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.toBGR=function(r){var n=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.kodachrome=function(r){var n=[1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.browni=function(r){var n=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.vintage=function(r){var n=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.colorTone=function(r,n,i,o,a){r=r||.2,n=n||.15,i=i||16770432,o=o||3375104;var s=(i>>16&255)/255,u=(i>>8&255)/255,l=(i&255)/255,c=(o>>16&255)/255,f=(o>>8&255)/255,h=(o&255)/255,d=[.3,.59,.11,0,0,s,u,l,r,0,c,f,h,n,0,s-c,u-f,l-h,0,0];this._loadMatrix(d,a)},t.prototype.night=function(r,n){r=r||.1;var i=[r*-2,-r,0,0,0,-r,0,r,0,0,0,r,r*2,0,0,0,0,0,1,0];this._loadMatrix(i,n)},t.prototype.predator=function(r,n){var i=[11.224130630493164*r,-4.794486999511719*r,-2.8746118545532227*r,0*r,.40342438220977783*r,-3.6330697536468506*r,9.193157196044922*r,-2.951810836791992*r,0*r,-1.316135048866272*r,-3.2184197902679443*r,-4.2375030517578125*r,7.476448059082031*r,0*r,.8044459223747253*r,0,0,0,1,0];this._loadMatrix(i,n)},t.prototype.lsd=function(r){var n=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.reset=function(){var r=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];this._loadMatrix(r,!1)},Object.defineProperty(t.prototype,"matrix",{get:function(){return this.uniforms.m},set:function(r){this.uniforms.m=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(r){this.uniforms.uAlpha=r},enumerable:!1,configurable:!0}),t}(ve);Gy.prototype.grayscale=Gy.prototype.greyscale;/*! * @pixi/filter-displacement - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * @@ -1285,7 +1287,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var cy=function(e,t){return cy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},cy(e,t)};function _se(e,t){cy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var xse=`varying vec2 vFilterCoord; +***************************************************************************** */var zy=function(e,t){return zy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},zy(e,t)};function Gce(e,t){zy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var zce=`varying vec2 vFilterCoord; varying vec2 vTextureCoord; uniform vec2 scale; @@ -1305,7 +1307,7 @@ void main(void) gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), inputClamp.xy, inputClamp.zw)); } -`,bse=`attribute vec2 aVertexPosition; +`,Hce=`attribute vec2 aVertexPosition; uniform mat3 projectionMatrix; uniform mat3 filterMatrix; @@ -1334,7 +1336,7 @@ void main(void) vTextureCoord = filterTextureCoord(); vFilterCoord = ( filterMatrix * vec3( vTextureCoord, 1.0) ).xy; } -`,Sse=function(e){_se(t,e);function t(r,n){var i=this,o=new Tt;return r.renderable=!1,i=e.call(this,bse,xse,{mapSampler:r._texture,filterMatrix:o,scale:{x:1,y:1},rotation:new Float32Array([1,0,0,1])})||this,i.maskSprite=r,i.maskMatrix=o,n==null&&(n=20),i.scale=new Oe(n,n),i}return t.prototype.apply=function(r,n,i,o){this.uniforms.filterMatrix=r.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x,this.uniforms.scale.y=this.scale.y;var a=this.maskSprite.worldTransform,s=Math.sqrt(a.a*a.a+a.b*a.b),u=Math.sqrt(a.c*a.c+a.d*a.d);s!==0&&u!==0&&(this.uniforms.rotation[0]=a.a/s,this.uniforms.rotation[1]=a.b/s,this.uniforms.rotation[2]=a.c/u,this.uniforms.rotation[3]=a.d/u),r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"map",{get:function(){return this.uniforms.mapSampler},set:function(r){this.uniforms.mapSampler=r},enumerable:!1,configurable:!0}),t}(me);/*! +`,Vce=function(e){Gce(t,e);function t(r,n){var i=this,o=new Pt;return r.renderable=!1,i=e.call(this,Hce,zce,{mapSampler:r._texture,filterMatrix:o,scale:{x:1,y:1},rotation:new Float32Array([1,0,0,1])})||this,i.maskSprite=r,i.maskMatrix=o,n==null&&(n=20),i.scale=new Ce(n,n),i}return t.prototype.apply=function(r,n,i,o){this.uniforms.filterMatrix=r.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x,this.uniforms.scale.y=this.scale.y;var a=this.maskSprite.worldTransform,s=Math.sqrt(a.a*a.a+a.b*a.b),u=Math.sqrt(a.c*a.c+a.d*a.d);s!==0&&u!==0&&(this.uniforms.rotation[0]=a.a/s,this.uniforms.rotation[1]=a.b/s,this.uniforms.rotation[2]=a.c/u,this.uniforms.rotation[3]=a.d/u),r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"map",{get:function(){return this.uniforms.mapSampler},set:function(r){this.uniforms.mapSampler=r},enumerable:!1,configurable:!0}),t}(ve);/*! * @pixi/filter-fxaa - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * @@ -1353,7 +1355,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var fy=function(e,t){return fy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},fy(e,t)};function wse(e,t){fy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ese=` +***************************************************************************** */var Hy=function(e,t){return Hy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Hy(e,t)};function Wce(e,t){Hy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var qce=` attribute vec2 aVertexPosition; uniform mat3 projectionMatrix; @@ -1395,7 +1397,7 @@ void main(void) { texcoords(vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM); } -`,Tse=`varying vec2 v_rgbNW; +`,Xce=`varying vec2 v_rgbNW; varying vec2 v_rgbNE; varying vec2 v_rgbSW; varying vec2 v_rgbSE; @@ -1516,7 +1518,7 @@ void main() { gl_FragColor = color; } -`,Cse=function(e){wse(t,e);function t(){return e.call(this,Ese,Tse)||this}return t}(me);/*! +`,Yce=function(e){Wce(t,e);function t(){return e.call(this,qce,Xce)||this}return t}(ve);/*! * @pixi/filter-noise - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * @@ -1535,7 +1537,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var hy=function(e,t){return hy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},hy(e,t)};function Ose(e,t){hy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ase=`precision highp float; +***************************************************************************** */var Vy=function(e,t){return Vy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Vy(e,t)};function Kce(e,t){Vy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Zce=`precision highp float; varying vec2 vTextureCoord; varying vec4 vColor; @@ -1569,31 +1571,31 @@ void main() gl_FragColor = color; } -`,Pse=function(e){Ose(t,e);function t(r,n){r===void 0&&(r=.5),n===void 0&&(n=Math.random());var i=e.call(this,Kx,Ase,{uNoise:0,uSeed:0})||this;return i.noise=r,i.seed=n,i}return Object.defineProperty(t.prototype,"noise",{get:function(){return this.uniforms.uNoise},set:function(r){this.uniforms.uNoise=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"seed",{get:function(){return this.uniforms.uSeed},set:function(r){this.uniforms.uSeed=r},enumerable:!1,configurable:!0}),t}(me);/*! +`,Qce=function(e){Kce(t,e);function t(r,n){r===void 0&&(r=.5),n===void 0&&(n=Math.random());var i=e.call(this,Lb,Zce,{uNoise:0,uSeed:0})||this;return i.noise=r,i.seed=n,i}return Object.defineProperty(t.prototype,"noise",{get:function(){return this.uniforms.uNoise},set:function(r){this.uniforms.uNoise=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"seed",{get:function(){return this.uniforms.uSeed},set:function(r){this.uniforms.uSeed=r},enumerable:!1,configurable:!0}),t}(ve);/*! * @pixi/mixin-cache-as-bitmap - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/mixin-cache-as-bitmap is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license - */var CR=new Tt;mt.prototype._cacheAsBitmap=!1;mt.prototype._cacheData=null;mt.prototype._cacheAsBitmapResolution=null;mt.prototype._cacheAsBitmapMultisample=nt.NONE;var kse=function(){function e(){this.textureCacheId=null,this.originalRender=null,this.originalRenderCanvas=null,this.originalCalculateBounds=null,this.originalGetLocalBounds=null,this.originalUpdateTransform=null,this.originalDestroy=null,this.originalMask=null,this.originalFilterArea=null,this.originalContainsPoint=null,this.sprite=null}return e}();Object.defineProperties(mt.prototype,{cacheAsBitmapResolution:{get:function(){return this._cacheAsBitmapResolution},set:function(e){e!==this._cacheAsBitmapResolution&&(this._cacheAsBitmapResolution=e,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmapMultisample:{get:function(){return this._cacheAsBitmapMultisample},set:function(e){e!==this._cacheAsBitmapMultisample&&(this._cacheAsBitmapMultisample=e,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(e){if(this._cacheAsBitmap!==e){this._cacheAsBitmap=e;var t;e?(this._cacheData||(this._cacheData=new kse),t=this._cacheData,t.originalRender=this.render,t.originalRenderCanvas=this.renderCanvas,t.originalUpdateTransform=this.updateTransform,t.originalCalculateBounds=this.calculateBounds,t.originalGetLocalBounds=this.getLocalBounds,t.originalDestroy=this.destroy,t.originalContainsPoint=this.containsPoint,t.originalMask=this._mask,t.originalFilterArea=this.filterArea,this.render=this._renderCached,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):(t=this._cacheData,t.sprite&&this._destroyCachedDisplayObject(),this.render=t.originalRender,this.renderCanvas=t.originalRenderCanvas,this.calculateBounds=t.originalCalculateBounds,this.getLocalBounds=t.originalGetLocalBounds,this.destroy=t.originalDestroy,this.updateTransform=t.originalUpdateTransform,this.containsPoint=t.originalContainsPoint,this._mask=t.originalMask,this.filterArea=t.originalFilterArea)}}}});mt.prototype._renderCached=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(t),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._render(t))};mt.prototype._initCachedDisplayObject=function(t){var r;if(!(this._cacheData&&this._cacheData.sprite)){var n=this.alpha;this.alpha=1,t.batch.flush();var i=this.getLocalBounds(null,!0).clone();if(this.filters&&this.filters.length){var o=this.filters[0].padding;i.pad(o)}i.ceil(te.RESOLUTION);var a=t.renderTexture.current,s=t.renderTexture.sourceFrame.clone(),u=t.renderTexture.destinationFrame.clone(),l=t.projection.transform,c=Zi.create({width:i.width,height:i.height,resolution:this.cacheAsBitmapResolution||t.resolution,multisample:(r=this.cacheAsBitmapMultisample)!==null&&r!==void 0?r:t.multisample}),f="cacheAsBitmap_"+Yi();this._cacheData.textureCacheId=f,Ie.addToCache(c.baseTexture,f),pe.addToCache(c,f);var h=this.transform.localTransform.copyTo(CR).invert().translate(-i.x,-i.y);this.render=this._cacheData.originalRender,t.render(this,{renderTexture:c,clear:!0,transform:h,skipUpdateTransform:!1}),t.framebuffer.blit(),t.projection.transform=l,t.renderTexture.bind(a,s,u),this.render=this._renderCached,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=n;var d=new Pn(c);d.transform.worldTransform=this.transform.worldTransform,d.anchor.x=-(i.x/i.width),d.anchor.y=-(i.y/i.height),d.alpha=n,d._bounds=this._bounds,this._cacheData.sprite=d,this.transform._parentID=-1,this.parent?this.updateTransform():(this.enableTempParent(),this.updateTransform(),this.disableTempParent(null)),this.containsPoint=d.containsPoint.bind(d)}};mt.prototype._renderCachedCanvas=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObjectCanvas(t),this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderCanvas(t))};mt.prototype._initCachedDisplayObjectCanvas=function(t){if(!(this._cacheData&&this._cacheData.sprite)){var r=this.getLocalBounds(null,!0),n=this.alpha;this.alpha=1;var i=t.context,o=t._projTransform;r.ceil(te.RESOLUTION);var a=Zi.create({width:r.width,height:r.height}),s="cacheAsBitmap_"+Yi();this._cacheData.textureCacheId=s,Ie.addToCache(a.baseTexture,s),pe.addToCache(a,s);var u=CR;this.transform.localTransform.copyTo(u),u.invert(),u.tx-=r.x,u.ty-=r.y,this.renderCanvas=this._cacheData.originalRenderCanvas,t.render(this,{renderTexture:a,clear:!0,transform:u,skipUpdateTransform:!1}),t.context=i,t._projTransform=o,this.renderCanvas=this._renderCachedCanvas,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=n;var l=new Pn(a);l.transform.worldTransform=this.transform.worldTransform,l.anchor.x=-(r.x/r.width),l.anchor.y=-(r.y/r.height),l.alpha=n,l._bounds=this._bounds,this._cacheData.sprite=l,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=t._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=l.containsPoint.bind(l)}};mt.prototype._calculateCachedBounds=function(){this._bounds.clear(),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite._calculateBounds(),this._bounds.updateID=this._boundsID};mt.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds(null)};mt.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null,Ie.removeFromCache(this._cacheData.textureCacheId),pe.removeFromCache(this._cacheData.textureCacheId),this._cacheData.textureCacheId=null};mt.prototype._cacheAsBitmapDestroy=function(t){this.cacheAsBitmap=!1,this.destroy(t)};/*! + */var MN=new Pt;xt.prototype._cacheAsBitmap=!1;xt.prototype._cacheData=null;xt.prototype._cacheAsBitmapResolution=null;xt.prototype._cacheAsBitmapMultisample=st.NONE;var Jce=function(){function e(){this.textureCacheId=null,this.originalRender=null,this.originalRenderCanvas=null,this.originalCalculateBounds=null,this.originalGetLocalBounds=null,this.originalUpdateTransform=null,this.originalDestroy=null,this.originalMask=null,this.originalFilterArea=null,this.originalContainsPoint=null,this.sprite=null}return e}();Object.defineProperties(xt.prototype,{cacheAsBitmapResolution:{get:function(){return this._cacheAsBitmapResolution},set:function(e){e!==this._cacheAsBitmapResolution&&(this._cacheAsBitmapResolution=e,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmapMultisample:{get:function(){return this._cacheAsBitmapMultisample},set:function(e){e!==this._cacheAsBitmapMultisample&&(this._cacheAsBitmapMultisample=e,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(e){if(this._cacheAsBitmap!==e){this._cacheAsBitmap=e;var t;e?(this._cacheData||(this._cacheData=new Jce),t=this._cacheData,t.originalRender=this.render,t.originalRenderCanvas=this.renderCanvas,t.originalUpdateTransform=this.updateTransform,t.originalCalculateBounds=this.calculateBounds,t.originalGetLocalBounds=this.getLocalBounds,t.originalDestroy=this.destroy,t.originalContainsPoint=this.containsPoint,t.originalMask=this._mask,t.originalFilterArea=this.filterArea,this.render=this._renderCached,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):(t=this._cacheData,t.sprite&&this._destroyCachedDisplayObject(),this.render=t.originalRender,this.renderCanvas=t.originalRenderCanvas,this.calculateBounds=t.originalCalculateBounds,this.getLocalBounds=t.originalGetLocalBounds,this.destroy=t.originalDestroy,this.updateTransform=t.originalUpdateTransform,this.containsPoint=t.originalContainsPoint,this._mask=t.originalMask,this.filterArea=t.originalFilterArea)}}}});xt.prototype._renderCached=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(t),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._render(t))};xt.prototype._initCachedDisplayObject=function(t){var r;if(!(this._cacheData&&this._cacheData.sprite)){var n=this.alpha;this.alpha=1,t.batch.flush();var i=this.getLocalBounds(null,!0).clone();if(this.filters&&this.filters.length){var o=this.filters[0].padding;i.pad(o)}i.ceil(te.RESOLUTION);var a=t.renderTexture.current,s=t.renderTexture.sourceFrame.clone(),u=t.renderTexture.destinationFrame.clone(),l=t.projection.transform,c=uo.create({width:i.width,height:i.height,resolution:this.cacheAsBitmapResolution||t.resolution,multisample:(r=this.cacheAsBitmapMultisample)!==null&&r!==void 0?r:t.multisample}),f="cacheAsBitmap_"+ao();this._cacheData.textureCacheId=f,Ie.addToCache(c.baseTexture,f),de.addToCache(c,f);var h=this.transform.localTransform.copyTo(MN).invert().translate(-i.x,-i.y);this.render=this._cacheData.originalRender,t.render(this,{renderTexture:c,clear:!0,transform:h,skipUpdateTransform:!1}),t.framebuffer.blit(),t.projection.transform=l,t.renderTexture.bind(a,s,u),this.render=this._renderCached,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=n;var d=new jn(c);d.transform.worldTransform=this.transform.worldTransform,d.anchor.x=-(i.x/i.width),d.anchor.y=-(i.y/i.height),d.alpha=n,d._bounds=this._bounds,this._cacheData.sprite=d,this.transform._parentID=-1,this.parent?this.updateTransform():(this.enableTempParent(),this.updateTransform(),this.disableTempParent(null)),this.containsPoint=d.containsPoint.bind(d)}};xt.prototype._renderCachedCanvas=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObjectCanvas(t),this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderCanvas(t))};xt.prototype._initCachedDisplayObjectCanvas=function(t){if(!(this._cacheData&&this._cacheData.sprite)){var r=this.getLocalBounds(null,!0),n=this.alpha;this.alpha=1;var i=t.context,o=t._projTransform;r.ceil(te.RESOLUTION);var a=uo.create({width:r.width,height:r.height}),s="cacheAsBitmap_"+ao();this._cacheData.textureCacheId=s,Ie.addToCache(a.baseTexture,s),de.addToCache(a,s);var u=MN;this.transform.localTransform.copyTo(u),u.invert(),u.tx-=r.x,u.ty-=r.y,this.renderCanvas=this._cacheData.originalRenderCanvas,t.render(this,{renderTexture:a,clear:!0,transform:u,skipUpdateTransform:!1}),t.context=i,t._projTransform=o,this.renderCanvas=this._renderCachedCanvas,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=n;var l=new jn(a);l.transform.worldTransform=this.transform.worldTransform,l.anchor.x=-(r.x/r.width),l.anchor.y=-(r.y/r.height),l.alpha=n,l._bounds=this._bounds,this._cacheData.sprite=l,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=t._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=l.containsPoint.bind(l)}};xt.prototype._calculateCachedBounds=function(){this._bounds.clear(),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite._calculateBounds(),this._bounds.updateID=this._boundsID};xt.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds(null)};xt.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null,Ie.removeFromCache(this._cacheData.textureCacheId),de.removeFromCache(this._cacheData.textureCacheId),this._cacheData.textureCacheId=null};xt.prototype._cacheAsBitmapDestroy=function(t){this.cacheAsBitmap=!1,this.destroy(t)};/*! * @pixi/mixin-get-child-by-name - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/mixin-get-child-by-name is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license - */mt.prototype.name=null;dr.prototype.getChildByName=function(t,r){for(var n=0,i=this.children.length;n0){var v=l.x-r[h].x,g=l.y-r[h].y,p=Math.sqrt(v*v+g*g);l=r[h],u+=p/c}else u=h/(f-1);a[d]=u,a[d+1]=0,a[d+2]=u,a[d+3]=1}for(var m=0,h=0;h0?this.textureScale*this._width/2:this._width/2;o/=h,a/=h,o*=d,a*=d,s[f]=c.x+o,s[f+1]=c.y+a,s[f+2]=c.x-o,s[f+3]=c.y-a,n=c}this.buffers[0].update()}},t.prototype.update=function(){this.textureScale>0?this.build():this.updateVertices()},t}(Dl),Ise=function(e){Ss(t,e);function t(r,n,i){i===void 0&&(i=0);var o=this,a=new PR(r.height,n,i),s=new es(r);return i>0&&(r.baseTexture.wrapMode=dn.REPEAT),o=e.call(this,a,s)||this,o.autoUpdate=!0,o}return t.prototype._render=function(r){var n=this.geometry;(this.autoUpdate||n._width!==this.shader.texture.height)&&(n._width=this.shader.texture.height,n.update()),e.prototype._render.call(this,r)},t}(Ja),kR=function(e){Ss(t,e);function t(r,n,i){var o=this,a=new AR(r.width,r.height,n,i),s=new es(pe.WHITE);return o=e.call(this,a,s)||this,o.texture=r,o.autoResize=!0,o}return t.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID;var r=this.geometry,n=this.shader.texture,i=n.width,o=n.height;this.autoResize&&(r.width!==i||r.height!==o)&&(r.width=this.shader.texture.width,r.height=this.shader.texture.height,r.build())},Object.defineProperty(t.prototype,"texture",{get:function(){return this.shader.texture},set:function(r){this.shader.texture!==r&&(this.shader.texture=r,this._textureID=-1,r.baseTexture.valid?this.textureUpdated():r.once("update",this.textureUpdated,this))},enumerable:!1,configurable:!0}),t.prototype._render=function(r){this._textureID!==this.shader.texture._updateID&&this.textureUpdated(),e.prototype._render.call(this,r)},t.prototype.destroy=function(r){this.shader.texture.off("update",this.textureUpdated,this),e.prototype.destroy.call(this,r)},t}(Ja),Rse=function(e){Ss(t,e);function t(r,n,i,o,a){r===void 0&&(r=pe.EMPTY);var s=this,u=new Dl(n,i,o);u.getBuffer("aVertexPosition").static=!1;var l=new es(r);return s=e.call(this,u,l,null,a)||this,s.autoUpdate=!0,s}return Object.defineProperty(t.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(r){this.geometry.getBuffer("aVertexPosition").data=r},enumerable:!1,configurable:!0}),t.prototype._render=function(r){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),e.prototype._render.call(this,r)},t}(Ja),Oc=10,Nse=function(e){Ss(t,e);function t(r,n,i,o,a){n===void 0&&(n=Oc),i===void 0&&(i=Oc),o===void 0&&(o=Oc),a===void 0&&(a=Oc);var s=e.call(this,pe.WHITE,4,4)||this;return s._origWidth=r.orig.width,s._origHeight=r.orig.height,s._width=s._origWidth,s._height=s._origHeight,s._leftWidth=n,s._rightWidth=o,s._topHeight=i,s._bottomHeight=a,s.texture=r,s}return t.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID,this._refresh()},Object.defineProperty(t.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(r){this.geometry.getBuffer("aVertexPosition").data=r},enumerable:!1,configurable:!0}),t.prototype.updateHorizontalVertices=function(){var r=this.vertices,n=this._getMinScale();r[9]=r[11]=r[13]=r[15]=this._topHeight*n,r[17]=r[19]=r[21]=r[23]=this._height-this._bottomHeight*n,r[25]=r[27]=r[29]=r[31]=this._height},t.prototype.updateVerticalVertices=function(){var r=this.vertices,n=this._getMinScale();r[2]=r[10]=r[18]=r[26]=this._leftWidth*n,r[4]=r[12]=r[20]=r[28]=this._width-this._rightWidth*n,r[6]=r[14]=r[22]=r[30]=this._width},t.prototype._getMinScale=function(){var r=this._leftWidth+this._rightWidth,n=this._width>r?1:this._width/r,i=this._topHeight+this._bottomHeight,o=this._height>i?1:this._height/i,a=Math.min(n,o);return a},Object.defineProperty(t.prototype,"width",{get:function(){return this._width},set:function(r){this._width=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},set:function(r){this._height=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftWidth",{get:function(){return this._leftWidth},set:function(r){this._leftWidth=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightWidth",{get:function(){return this._rightWidth},set:function(r){this._rightWidth=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"topHeight",{get:function(){return this._topHeight},set:function(r){this._topHeight=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottomHeight",{get:function(){return this._bottomHeight},set:function(r){this._bottomHeight=r,this._refresh()},enumerable:!1,configurable:!0}),t.prototype._refresh=function(){var r=this.texture,n=this.geometry.buffers[1].data;this._origWidth=r.orig.width,this._origHeight=r.orig.height;var i=1/this._origWidth,o=1/this._origHeight;n[0]=n[8]=n[16]=n[24]=0,n[1]=n[3]=n[5]=n[7]=0,n[6]=n[14]=n[22]=n[30]=1,n[25]=n[27]=n[29]=n[31]=1,n[2]=n[10]=n[18]=n[26]=i*this._leftWidth,n[4]=n[12]=n[20]=n[28]=1-i*this._rightWidth,n[9]=n[11]=n[13]=n[15]=o*this._topHeight,n[17]=n[19]=n[21]=n[23]=1-o*this._bottomHeight,this.updateHorizontalVertices(),this.updateVerticalVertices(),this.geometry.buffers[0].update(),this.geometry.buffers[1].update()},t}(kR);/*! +***************************************************************************** */var Wy=function(e,t){return Wy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Wy(e,t)};function $s(e,t){Wy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var DN=function(e){$s(t,e);function t(r,n,i,o){r===void 0&&(r=100),n===void 0&&(n=100),i===void 0&&(i=10),o===void 0&&(o=10);var a=e.call(this)||this;return a.segWidth=i,a.segHeight=o,a.width=r,a.height=n,a.build(),a}return t.prototype.build=function(){for(var r=this.segWidth*this.segHeight,n=[],i=[],o=[],a=this.segWidth-1,s=this.segHeight-1,u=this.width/a,l=this.height/s,c=0;c0){var v=l.x-r[h].x,g=l.y-r[h].y,p=Math.sqrt(v*v+g*g);l=r[h],u+=p/c}else u=h/(f-1);a[d]=u,a[d+1]=0,a[d+2]=u,a[d+3]=1}for(var m=0,h=0;h0?this.textureScale*this._width/2:this._width/2;o/=h,a/=h,o*=d,a*=d,s[f]=c.x+o,s[f+1]=c.y+a,s[f+2]=c.x-o,s[f+3]=c.y-a,n=c}this.buffers[0].update()}},t.prototype.update=function(){this.textureScale>0?this.build():this.updateVertices()},t}(ic),efe=function(e){$s(t,e);function t(r,n,i){i===void 0&&(i=0);var o=this,a=new BN(r.height,n,i),s=new vs(r);return i>0&&(r.baseTexture.wrapMode=xn.REPEAT),o=e.call(this,a,s)||this,o.autoUpdate=!0,o}return t.prototype._render=function(r){var n=this.geometry;(this.autoUpdate||n._width!==this.shader.texture.height)&&(n._width=this.shader.texture.height,n.update()),e.prototype._render.call(this,r)},t}(ps),jN=function(e){$s(t,e);function t(r,n,i){var o=this,a=new DN(r.width,r.height,n,i),s=new vs(de.WHITE);return o=e.call(this,a,s)||this,o.texture=r,o.autoResize=!0,o}return t.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID;var r=this.geometry,n=this.shader.texture,i=n.width,o=n.height;this.autoResize&&(r.width!==i||r.height!==o)&&(r.width=this.shader.texture.width,r.height=this.shader.texture.height,r.build())},Object.defineProperty(t.prototype,"texture",{get:function(){return this.shader.texture},set:function(r){this.shader.texture!==r&&(this.shader.texture=r,this._textureID=-1,r.baseTexture.valid?this.textureUpdated():r.once("update",this.textureUpdated,this))},enumerable:!1,configurable:!0}),t.prototype._render=function(r){this._textureID!==this.shader.texture._updateID&&this.textureUpdated(),e.prototype._render.call(this,r)},t.prototype.destroy=function(r){this.shader.texture.off("update",this.textureUpdated,this),e.prototype.destroy.call(this,r)},t}(ps),tfe=function(e){$s(t,e);function t(r,n,i,o,a){r===void 0&&(r=de.EMPTY);var s=this,u=new ic(n,i,o);u.getBuffer("aVertexPosition").static=!1;var l=new vs(r);return s=e.call(this,u,l,null,a)||this,s.autoUpdate=!0,s}return Object.defineProperty(t.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(r){this.geometry.getBuffer("aVertexPosition").data=r},enumerable:!1,configurable:!0}),t.prototype._render=function(r){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),e.prototype._render.call(this,r)},t}(ps),Kc=10,rfe=function(e){$s(t,e);function t(r,n,i,o,a){n===void 0&&(n=Kc),i===void 0&&(i=Kc),o===void 0&&(o=Kc),a===void 0&&(a=Kc);var s=e.call(this,de.WHITE,4,4)||this;return s._origWidth=r.orig.width,s._origHeight=r.orig.height,s._width=s._origWidth,s._height=s._origHeight,s._leftWidth=n,s._rightWidth=o,s._topHeight=i,s._bottomHeight=a,s.texture=r,s}return t.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID,this._refresh()},Object.defineProperty(t.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(r){this.geometry.getBuffer("aVertexPosition").data=r},enumerable:!1,configurable:!0}),t.prototype.updateHorizontalVertices=function(){var r=this.vertices,n=this._getMinScale();r[9]=r[11]=r[13]=r[15]=this._topHeight*n,r[17]=r[19]=r[21]=r[23]=this._height-this._bottomHeight*n,r[25]=r[27]=r[29]=r[31]=this._height},t.prototype.updateVerticalVertices=function(){var r=this.vertices,n=this._getMinScale();r[2]=r[10]=r[18]=r[26]=this._leftWidth*n,r[4]=r[12]=r[20]=r[28]=this._width-this._rightWidth*n,r[6]=r[14]=r[22]=r[30]=this._width},t.prototype._getMinScale=function(){var r=this._leftWidth+this._rightWidth,n=this._width>r?1:this._width/r,i=this._topHeight+this._bottomHeight,o=this._height>i?1:this._height/i,a=Math.min(n,o);return a},Object.defineProperty(t.prototype,"width",{get:function(){return this._width},set:function(r){this._width=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},set:function(r){this._height=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftWidth",{get:function(){return this._leftWidth},set:function(r){this._leftWidth=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightWidth",{get:function(){return this._rightWidth},set:function(r){this._rightWidth=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"topHeight",{get:function(){return this._topHeight},set:function(r){this._topHeight=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottomHeight",{get:function(){return this._bottomHeight},set:function(r){this._bottomHeight=r,this._refresh()},enumerable:!1,configurable:!0}),t.prototype._refresh=function(){var r=this.texture,n=this.geometry.buffers[1].data;this._origWidth=r.orig.width,this._origHeight=r.orig.height;var i=1/this._origWidth,o=1/this._origHeight;n[0]=n[8]=n[16]=n[24]=0,n[1]=n[3]=n[5]=n[7]=0,n[6]=n[14]=n[22]=n[30]=1,n[25]=n[27]=n[29]=n[31]=1,n[2]=n[10]=n[18]=n[26]=i*this._leftWidth,n[4]=n[12]=n[20]=n[28]=1-i*this._rightWidth,n[9]=n[11]=n[13]=n[15]=o*this._topHeight,n[17]=n[19]=n[21]=n[23]=1-o*this._bottomHeight,this.updateHorizontalVertices(),this.updateVerticalVertices(),this.geometry.buffers[0].update(),this.geometry.buffers[1].update()},t}(jN);/*! * @pixi/sprite-animated - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * @@ -1631,13 +1633,13 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var py=function(e,t){return py=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},py(e,t)};function Lse(e,t){py(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Mse=function(e){Lse(t,e);function t(r,n){n===void 0&&(n=!0);var i=e.call(this,r[0]instanceof pe?r[0]:r[0].texture)||this;return i._textures=null,i._durations=null,i._autoUpdate=n,i._isConnectedToTicker=!1,i.animationSpeed=1,i.loop=!0,i.updateAnchor=!1,i.onComplete=null,i.onFrameChange=null,i.onLoop=null,i._currentTime=0,i._playing=!1,i._previousFrame=null,i.textures=r,i}return t.prototype.stop=function(){this._playing&&(this._playing=!1,this._autoUpdate&&this._isConnectedToTicker&&(Ft.shared.remove(this.update,this),this._isConnectedToTicker=!1))},t.prototype.play=function(){this._playing||(this._playing=!0,this._autoUpdate&&!this._isConnectedToTicker&&(Ft.shared.add(this.update,this,Bn.HIGH),this._isConnectedToTicker=!0))},t.prototype.gotoAndStop=function(r){this.stop();var n=this.currentFrame;this._currentTime=r,n!==this.currentFrame&&this.updateTexture()},t.prototype.gotoAndPlay=function(r){var n=this.currentFrame;this._currentTime=r,n!==this.currentFrame&&this.updateTexture(),this.play()},t.prototype.update=function(r){if(this._playing){var n=this.animationSpeed*r,i=this.currentFrame;if(this._durations!==null){var o=this._currentTime%1*this._durations[this.currentFrame];for(o+=n/60*1e3;o<0;)this._currentTime--,o+=this._durations[this.currentFrame];var a=Math.sign(this.animationSpeed*r);for(this._currentTime=Math.floor(this._currentTime);o>=this._durations[this.currentFrame];)o-=this._durations[this.currentFrame]*a,this._currentTime+=a;this._currentTime+=o/this._durations[this.currentFrame]}else this._currentTime+=n;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):i!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFramei&&this.onLoop()),this.updateTexture())}},t.prototype.updateTexture=function(){var r=this.currentFrame;this._previousFrame!==r&&(this._previousFrame=r,this._texture=this._textures[r],this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this.uvs=this._texture._uvs.uvsFloat32,this.updateAnchor&&this._anchor.copyFrom(this._texture.defaultAnchor),this.onFrameChange&&this.onFrameChange(this.currentFrame))},t.prototype.destroy=function(r){this.stop(),e.prototype.destroy.call(this,r),this.onComplete=null,this.onFrameChange=null,this.onLoop=null},t.fromFrames=function(r){for(var n=[],i=0;i=this._durations[this.currentFrame];)o-=this._durations[this.currentFrame]*a,this._currentTime+=a;this._currentTime+=o/this._durations[this.currentFrame]}else this._currentTime+=n;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):i!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFramei&&this.onLoop()),this.updateTexture())}},t.prototype.updateTexture=function(){var r=this.currentFrame;this._previousFrame!==r&&(this._previousFrame=r,this._texture=this._textures[r],this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this.uvs=this._texture._uvs.uvsFloat32,this.updateAnchor&&this._anchor.copyFrom(this._texture.defaultAnchor),this.onFrameChange&&this.onFrameChange(this.currentFrame))},t.prototype.destroy=function(r){this.stop(),e.prototype.destroy.call(this,r),this.onComplete=null,this.onFrameChange=null,this.onLoop=null},t.fromFrames=function(r){for(var n=[],i=0;i0;i--){var o=Math.random()*i>>0,a=r[i];r[i]=r[o],r[o]=a}},t.prototype._randomizeOffsets=function(){for(var r=0;r0?o:0,c=o<0?-o:0;i.fillStyle="rgba("+l+", "+c+", 0, 1)",i.fillRect(0,a>>0,r,u+1>>0),a+=u}n.baseTexture.update(),this.uniforms.displacementMap=n},Object.defineProperty(t.prototype,"sizes",{get:function(){return this._sizes},set:function(r){for(var n=Math.min(this._slices,r.length),i=0;i0;i--){var o=Math.random()*i>>0,a=r[i];r[i]=r[o],r[o]=a}},t.prototype._randomizeOffsets=function(){for(var r=0;r0?o:0,c=o<0?-o:0;i.fillStyle="rgba("+l+", "+c+", 0, 1)",i.fillRect(0,a>>0,r,u+1>>0),a+=u}n.baseTexture.update(),this.uniforms.displacementMap=n},Object.defineProperty(t.prototype,"sizes",{get:function(){return this._sizes},set:function(r){for(var n=Math.min(this._slices,r.length),i=0;i0)for(var o=r,a=r/n,s=1;s0?(this._kernels=r,this._quality=r.length,this._blur=Math.max.apply(Math,r)):(this._kernels=[0],this._quality=1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clamp",{get:function(){return this._clamp},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pixelSize",{get:function(){return this._pixelSize},set:function(r){typeof r=="number"?(this._pixelSize.x=r,this._pixelSize.y=r):Array.isArray(r)?(this._pixelSize.x=r[0],this._pixelSize.y=r[1]):r instanceof Oe?(this._pixelSize.x=r.x,this._pixelSize.y=r.y):(this._pixelSize.x=1,this._pixelSize.y=1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quality",{get:function(){return this._quality},set:function(r){this._quality=Math.max(1,Math.round(r)),this._generateKernels()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blur",{get:function(){return this._blur},set:function(r){this._blur=r,this._generateKernels()},enumerable:!1,configurable:!0}),t}(me);/*! +`,Ah=function(e){Bfe(t,e);function t(r,n,i){r===void 0&&(r=4),n===void 0&&(n=3),i===void 0&&(i=!1);var o=e.call(this,jfe,i?Ufe:$fe)||this;return o._kernels=[],o._blur=4,o._quality=3,o.uniforms.uOffset=new Float32Array(2),o._pixelSize=new Ce,o.pixelSize=1,o._clamp=i,Array.isArray(r)?o.kernels=r:(o._blur=r,o.quality=n),o}return t.prototype.apply=function(r,n,i,o){var a=this._pixelSize.x/n._frame.width,s=this._pixelSize.y/n._frame.height,u;if(this._quality===1||this._blur===0)u=this._kernels[0]+.5,this.uniforms.uOffset[0]=u*a,this.uniforms.uOffset[1]=u*s,r.applyFilter(this,n,i,o);else{for(var l=r.getFilterTexture(),c=n,f=l,h=void 0,d=this._quality-1,v=0;v0)for(var o=r,a=r/n,s=1;s0?(this._kernels=r,this._quality=r.length,this._blur=Math.max.apply(Math,r)):(this._kernels=[0],this._quality=1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clamp",{get:function(){return this._clamp},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pixelSize",{get:function(){return this._pixelSize},set:function(r){typeof r=="number"?(this._pixelSize.x=r,this._pixelSize.y=r):Array.isArray(r)?(this._pixelSize.x=r[0],this._pixelSize.y=r[1]):r instanceof Ce?(this._pixelSize.x=r.x,this._pixelSize.y=r.y):(this._pixelSize.x=1,this._pixelSize.y=1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quality",{get:function(){return this._quality},set:function(r){this._quality=Math.max(1,Math.round(r)),this._generateKernels()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blur",{get:function(){return this._blur},set:function(r){this._blur=r,this._generateKernels()},enumerable:!1,configurable:!0}),t}(ve);/*! * @pixi/filter-advanced-bloom - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2410,7 +2412,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var wy=function(e,t){return wy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},wy(e,t)};function RR(e,t){wy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var NR=`attribute vec2 aVertexPosition; +***************************************************************************** */var r_=function(e,t){return r_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},r_(e,t)};function UN(e,t){r_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var GN=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2421,7 +2423,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,_ue=` +}`,Gfe=` uniform sampler2D uSampler; varying vec2 vTextureCoord; @@ -2442,7 +2444,7 @@ void main() { gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0); } } -`,xue=function(e){RR(t,e);function t(r){r===void 0&&(r=.5);var n=e.call(this,NR,_ue)||this;return n.threshold=r,n}return Object.defineProperty(t.prototype,"threshold",{get:function(){return this.uniforms.threshold},set:function(r){this.uniforms.threshold=r},enumerable:!1,configurable:!0}),t}(me),bue=`uniform sampler2D uSampler; +`,zfe=function(e){UN(t,e);function t(r){r===void 0&&(r=.5);var n=e.call(this,GN,Gfe)||this;return n.threshold=r,n}return Object.defineProperty(t.prototype,"threshold",{get:function(){return this.uniforms.threshold},set:function(r){this.uniforms.threshold=r},enumerable:!1,configurable:!0}),t}(ve),Hfe=`uniform sampler2D uSampler; varying vec2 vTextureCoord; uniform sampler2D bloomTexture; @@ -2456,7 +2458,7 @@ void main() { bloomColor.rgb *= bloomScale; gl_FragColor = color + bloomColor; } -`;(function(e){RR(t,e);function t(r){var n=e.call(this,NR,bue)||this;n.bloomScale=1,n.brightness=1,n._resolution=te.FILTER_RESOLUTION,typeof r=="number"&&(r={threshold:r});var i=Object.assign(t.defaults,r);n.bloomScale=i.bloomScale,n.brightness=i.brightness;var o=i.kernels,a=i.blur,s=i.quality,u=i.pixelSize,l=i.resolution;return n._extractFilter=new xue(i.threshold),n._extractFilter.resolution=l,n._blurFilter=o?new nh(o):new nh(a,s),n.pixelSize=u,n.resolution=l,n}return t.prototype.apply=function(r,n,i,o,a){var s=r.getFilterTexture();this._extractFilter.apply(r,n,s,1,a);var u=r.getFilterTexture();this._blurFilter.apply(r,s,u,1),this.uniforms.bloomScale=this.bloomScale,this.uniforms.brightness=this.brightness,this.uniforms.bloomTexture=u,r.applyFilter(this,n,i,o),r.returnFilterTexture(u),r.returnFilterTexture(s)},Object.defineProperty(t.prototype,"resolution",{get:function(){return this._resolution},set:function(r){this._resolution=r,this._extractFilter&&(this._extractFilter.resolution=r),this._blurFilter&&(this._blurFilter.resolution=r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"threshold",{get:function(){return this._extractFilter.threshold},set:function(r){this._extractFilter.threshold=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"kernels",{get:function(){return this._blurFilter.kernels},set:function(r){this._blurFilter.kernels=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blur",{get:function(){return this._blurFilter.blur},set:function(r){this._blurFilter.blur=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quality",{get:function(){return this._blurFilter.quality},set:function(r){this._blurFilter.quality=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pixelSize",{get:function(){return this._blurFilter.pixelSize},set:function(r){this._blurFilter.pixelSize=r},enumerable:!1,configurable:!0}),t.defaults={threshold:.5,bloomScale:1,brightness:1,kernels:null,blur:8,quality:4,pixelSize:1,resolution:te.FILTER_RESOLUTION},t})(me);/*! +`;(function(e){UN(t,e);function t(r){var n=e.call(this,GN,Hfe)||this;n.bloomScale=1,n.brightness=1,n._resolution=te.FILTER_RESOLUTION,typeof r=="number"&&(r={threshold:r});var i=Object.assign(t.defaults,r);n.bloomScale=i.bloomScale,n.brightness=i.brightness;var o=i.kernels,a=i.blur,s=i.quality,u=i.pixelSize,l=i.resolution;return n._extractFilter=new zfe(i.threshold),n._extractFilter.resolution=l,n._blurFilter=o?new Ah(o):new Ah(a,s),n.pixelSize=u,n.resolution=l,n}return t.prototype.apply=function(r,n,i,o,a){var s=r.getFilterTexture();this._extractFilter.apply(r,n,s,1,a);var u=r.getFilterTexture();this._blurFilter.apply(r,s,u,1),this.uniforms.bloomScale=this.bloomScale,this.uniforms.brightness=this.brightness,this.uniforms.bloomTexture=u,r.applyFilter(this,n,i,o),r.returnFilterTexture(u),r.returnFilterTexture(s)},Object.defineProperty(t.prototype,"resolution",{get:function(){return this._resolution},set:function(r){this._resolution=r,this._extractFilter&&(this._extractFilter.resolution=r),this._blurFilter&&(this._blurFilter.resolution=r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"threshold",{get:function(){return this._extractFilter.threshold},set:function(r){this._extractFilter.threshold=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"kernels",{get:function(){return this._blurFilter.kernels},set:function(r){this._blurFilter.kernels=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blur",{get:function(){return this._blurFilter.blur},set:function(r){this._blurFilter.blur=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quality",{get:function(){return this._blurFilter.quality},set:function(r){this._blurFilter.quality=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pixelSize",{get:function(){return this._blurFilter.pixelSize},set:function(r){this._blurFilter.pixelSize=r},enumerable:!1,configurable:!0}),t.defaults={threshold:.5,bloomScale:1,brightness:1,kernels:null,blur:8,quality:4,pixelSize:1,resolution:te.FILTER_RESOLUTION},t})(ve);/*! * @pixi/filter-ascii - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2475,7 +2477,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Ey=function(e,t){return Ey=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Ey(e,t)};function Sue(e,t){Ey(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var wue=`attribute vec2 aVertexPosition; +***************************************************************************** */var n_=function(e,t){return n_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},n_(e,t)};function Vfe(e,t){n_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Wfe=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2486,7 +2488,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,Eue=`varying vec2 vTextureCoord; +}`,qfe=`varying vec2 vTextureCoord; uniform vec4 filterArea; uniform float pixelSize; @@ -2560,7 +2562,7 @@ void main() gl_FragColor = color * character( n, vec2(-1.0) + modd * 2.0); } -`;(function(e){Sue(t,e);function t(r){r===void 0&&(r=8);var n=e.call(this,wue,Eue)||this;return n.size=r,n}return Object.defineProperty(t.prototype,"size",{get:function(){return this.uniforms.pixelSize},set:function(r){this.uniforms.pixelSize=r},enumerable:!1,configurable:!0}),t})(me);/*! +`;(function(e){Vfe(t,e);function t(r){r===void 0&&(r=8);var n=e.call(this,Wfe,qfe)||this;return n.size=r,n}return Object.defineProperty(t.prototype,"size",{get:function(){return this.uniforms.pixelSize},set:function(r){this.uniforms.pixelSize=r},enumerable:!1,configurable:!0}),t})(ve);/*! * @pixi/filter-bevel - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2579,7 +2581,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Ty=function(e,t){return Ty=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Ty(e,t)};function Tue(e,t){Ty(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Cue=`attribute vec2 aVertexPosition; +***************************************************************************** */var i_=function(e,t){return i_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},i_(e,t)};function Xfe(e,t){i_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Yfe=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2590,7 +2592,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,Oue=`precision mediump float; +}`,Kfe=`precision mediump float; varying vec2 vTextureCoord; uniform sampler2D uSampler; @@ -2613,7 +2615,7 @@ void main(void) { color.rgb = mix(color.rgb, shadowColor, clamp((color.a - shadow) * shadowAlpha, 0.0, 1.0)); gl_FragColor = vec4(color.rgb * color.a, color.a); } -`;(function(e){Tue(t,e);function t(r){var n=e.call(this,Cue,Oue)||this;return n._thickness=2,n._angle=0,n.uniforms.lightColor=new Float32Array(3),n.uniforms.shadowColor=new Float32Array(3),Object.assign(n,{rotation:45,thickness:2,lightColor:16777215,lightAlpha:.7,shadowColor:0,shadowAlpha:.7},r),n.padding=1,n}return t.prototype._updateTransform=function(){this.uniforms.transformX=this._thickness*Math.cos(this._angle),this.uniforms.transformY=this._thickness*Math.sin(this._angle)},Object.defineProperty(t.prototype,"rotation",{get:function(){return this._angle/Ki},set:function(r){this._angle=r*Ki,this._updateTransform()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"thickness",{get:function(){return this._thickness},set:function(r){this._thickness=r,this._updateTransform()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lightColor",{get:function(){return en(this.uniforms.lightColor)},set:function(r){jt(r,this.uniforms.lightColor)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lightAlpha",{get:function(){return this.uniforms.lightAlpha},set:function(r){this.uniforms.lightAlpha=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shadowColor",{get:function(){return en(this.uniforms.shadowColor)},set:function(r){jt(r,this.uniforms.shadowColor)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shadowAlpha",{get:function(){return this.uniforms.shadowAlpha},set:function(r){this.uniforms.shadowAlpha=r},enumerable:!1,configurable:!0}),t})(me);/*! +`;(function(e){Xfe(t,e);function t(r){var n=e.call(this,Yfe,Kfe)||this;return n._thickness=2,n._angle=0,n.uniforms.lightColor=new Float32Array(3),n.uniforms.shadowColor=new Float32Array(3),Object.assign(n,{rotation:45,thickness:2,lightColor:16777215,lightAlpha:.7,shadowColor:0,shadowAlpha:.7},r),n.padding=1,n}return t.prototype._updateTransform=function(){this.uniforms.transformX=this._thickness*Math.cos(this._angle),this.uniforms.transformY=this._thickness*Math.sin(this._angle)},Object.defineProperty(t.prototype,"rotation",{get:function(){return this._angle/so},set:function(r){this._angle=r*so,this._updateTransform()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"thickness",{get:function(){return this._thickness},set:function(r){this._thickness=r,this._updateTransform()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lightColor",{get:function(){return sn(this.uniforms.lightColor)},set:function(r){Gt(r,this.uniforms.lightColor)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lightAlpha",{get:function(){return this.uniforms.lightAlpha},set:function(r){this.uniforms.lightAlpha=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shadowColor",{get:function(){return sn(this.uniforms.shadowColor)},set:function(r){Gt(r,this.uniforms.shadowColor)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shadowAlpha",{get:function(){return this.uniforms.shadowAlpha},set:function(r){this.uniforms.shadowAlpha=r},enumerable:!1,configurable:!0}),t})(ve);/*! * @pixi/filter-bloom - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2632,7 +2634,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Cy=function(e,t){return Cy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Cy(e,t)};function Aue(e,t){Cy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}(function(e){Aue(t,e);function t(r,n,i,o){r===void 0&&(r=2),n===void 0&&(n=4),i===void 0&&(i=te.FILTER_RESOLUTION),o===void 0&&(o=5);var a=e.call(this)||this,s,u;return typeof r=="number"?(s=r,u=r):r instanceof Oe?(s=r.x,u=r.y):Array.isArray(r)&&(s=r[0],u=r[1]),a.blurXFilter=new gl(!0,s,n,i,o),a.blurYFilter=new gl(!1,u,n,i,o),a.blurYFilter.blendMode=ce.SCREEN,a.defaultFilter=new ER,a}return t.prototype.apply=function(r,n,i,o){var a=r.getFilterTexture();this.defaultFilter.apply(r,n,i,o),this.blurXFilter.apply(r,n,a,1),this.blurYFilter.apply(r,a,i,0),r.returnFilterTexture(a)},Object.defineProperty(t.prototype,"blur",{get:function(){return this.blurXFilter.blur},set:function(r){this.blurXFilter.blur=this.blurYFilter.blur=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blurX",{get:function(){return this.blurXFilter.blur},set:function(r){this.blurXFilter.blur=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blurY",{get:function(){return this.blurYFilter.blur},set:function(r){this.blurYFilter.blur=r},enumerable:!1,configurable:!0}),t})(me);/*! +***************************************************************************** */var o_=function(e,t){return o_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},o_(e,t)};function Zfe(e,t){o_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}(function(e){Zfe(t,e);function t(r,n,i,o){r===void 0&&(r=2),n===void 0&&(n=4),i===void 0&&(i=te.FILTER_RESOLUTION),o===void 0&&(o=5);var a=e.call(this)||this,s,u;return typeof r=="number"?(s=r,u=r):r instanceof Ce?(s=r.x,u=r.y):Array.isArray(r)&&(s=r[0],u=r[1]),a.blurXFilter=new Dl(!0,s,n,i,o),a.blurYFilter=new Dl(!1,u,n,i,o),a.blurYFilter.blendMode=ce.SCREEN,a.defaultFilter=new NN,a}return t.prototype.apply=function(r,n,i,o){var a=r.getFilterTexture();this.defaultFilter.apply(r,n,i,o),this.blurXFilter.apply(r,n,a,1),this.blurYFilter.apply(r,a,i,0),r.returnFilterTexture(a)},Object.defineProperty(t.prototype,"blur",{get:function(){return this.blurXFilter.blur},set:function(r){this.blurXFilter.blur=this.blurYFilter.blur=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blurX",{get:function(){return this.blurXFilter.blur},set:function(r){this.blurXFilter.blur=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blurY",{get:function(){return this.blurYFilter.blur},set:function(r){this.blurYFilter.blur=r},enumerable:!1,configurable:!0}),t})(ve);/*! * @pixi/filter-bulge-pinch - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2651,7 +2653,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Oy=function(e,t){return Oy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Oy(e,t)};function Pue(e,t){Oy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var kue=`attribute vec2 aVertexPosition; +***************************************************************************** */var a_=function(e,t){return a_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},a_(e,t)};function Qfe(e,t){a_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Jfe=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2662,7 +2664,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,Iue=`uniform float radius; +}`,ehe=`uniform float radius; uniform float strength; uniform vec2 center; uniform sampler2D uSampler; @@ -2695,7 +2697,7 @@ void main() gl_FragColor = color; } -`;(function(e){Pue(t,e);function t(r){var n=e.call(this,kue,Iue)||this;return n.uniforms.dimensions=new Float32Array(2),Object.assign(n,t.defaults,r),n}return t.prototype.apply=function(r,n,i,o){var a=n.filterFrame,s=a.width,u=a.height;this.uniforms.dimensions[0]=s,this.uniforms.dimensions[1]=u,r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"radius",{get:function(){return this.uniforms.radius},set:function(r){this.uniforms.radius=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"strength",{get:function(){return this.uniforms.strength},set:function(r){this.uniforms.strength=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"center",{get:function(){return this.uniforms.center},set:function(r){this.uniforms.center=r},enumerable:!1,configurable:!0}),t.defaults={center:[.5,.5],radius:100,strength:1},t})(me);/*! +`;(function(e){Qfe(t,e);function t(r){var n=e.call(this,Jfe,ehe)||this;return n.uniforms.dimensions=new Float32Array(2),Object.assign(n,t.defaults,r),n}return t.prototype.apply=function(r,n,i,o){var a=n.filterFrame,s=a.width,u=a.height;this.uniforms.dimensions[0]=s,this.uniforms.dimensions[1]=u,r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"radius",{get:function(){return this.uniforms.radius},set:function(r){this.uniforms.radius=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"strength",{get:function(){return this.uniforms.strength},set:function(r){this.uniforms.strength=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"center",{get:function(){return this.uniforms.center},set:function(r){this.uniforms.center=r},enumerable:!1,configurable:!0}),t.defaults={center:[.5,.5],radius:100,strength:1},t})(ve);/*! * @pixi/filter-color-map - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2714,7 +2716,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Ay=function(e,t){return Ay=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Ay(e,t)};function Rue(e,t){Ay(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Nue=`attribute vec2 aVertexPosition; +***************************************************************************** */var s_=function(e,t){return s_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},s_(e,t)};function the(e,t){s_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var rhe=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2725,7 +2727,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,Lue=`varying vec2 vTextureCoord; +}`,nhe=`varying vec2 vTextureCoord; uniform sampler2D uSampler; uniform sampler2D colorMap; uniform float _mix; @@ -2755,7 +2757,7 @@ void main() { } gl_FragColor = vec4(mix(color, adjusted, _mix).rgb, color.a); -}`;(function(e){Rue(t,e);function t(r,n,i){n===void 0&&(n=!1),i===void 0&&(i=1);var o=e.call(this,Nue,Lue)||this;return o.mix=1,o._size=0,o._sliceSize=0,o._slicePixelSize=0,o._sliceInnerSize=0,o._nearest=!1,o._scaleMode=null,o._colorMap=null,o._scaleMode=null,o.nearest=n,o.mix=i,o.colorMap=r,o}return t.prototype.apply=function(r,n,i,o){this.uniforms._mix=this.mix,r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"colorSize",{get:function(){return this._size},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"colorMap",{get:function(){return this._colorMap},set:function(r){var n;r&&(r instanceof pe||(r=pe.from(r)),!((n=r)===null||n===void 0)&&n.baseTexture&&(r.baseTexture.scaleMode=this._scaleMode,r.baseTexture.mipmap=Cr.OFF,this._size=r.height,this._sliceSize=1/this._size,this._slicePixelSize=this._sliceSize/this._size,this._sliceInnerSize=this._slicePixelSize*(this._size-1),this.uniforms._size=this._size,this.uniforms._sliceSize=this._sliceSize,this.uniforms._slicePixelSize=this._slicePixelSize,this.uniforms._sliceInnerSize=this._sliceInnerSize,this.uniforms.colorMap=r),this._colorMap=r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nearest",{get:function(){return this._nearest},set:function(r){this._nearest=r,this._scaleMode=r?br.NEAREST:br.LINEAR;var n=this._colorMap;n&&n.baseTexture&&(n.baseTexture._glTextures={},n.baseTexture.scaleMode=this._scaleMode,n.baseTexture.mipmap=Cr.OFF,n._updateID++,n.baseTexture.emit("update",n.baseTexture))},enumerable:!1,configurable:!0}),t.prototype.updateColorMap=function(){var r=this._colorMap;r&&r.baseTexture&&(r._updateID++,r.baseTexture.emit("update",r.baseTexture),this.colorMap=r)},t.prototype.destroy=function(r){r===void 0&&(r=!1),this._colorMap&&this._colorMap.destroy(r),e.prototype.destroy.call(this)},t})(me);/*! +}`;(function(e){the(t,e);function t(r,n,i){n===void 0&&(n=!1),i===void 0&&(i=1);var o=e.call(this,rhe,nhe)||this;return o.mix=1,o._size=0,o._sliceSize=0,o._slicePixelSize=0,o._sliceInnerSize=0,o._nearest=!1,o._scaleMode=null,o._colorMap=null,o._scaleMode=null,o.nearest=n,o.mix=i,o.colorMap=r,o}return t.prototype.apply=function(r,n,i,o){this.uniforms._mix=this.mix,r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"colorSize",{get:function(){return this._size},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"colorMap",{get:function(){return this._colorMap},set:function(r){var n;r&&(r instanceof de||(r=de.from(r)),!((n=r)===null||n===void 0)&&n.baseTexture&&(r.baseTexture.scaleMode=this._scaleMode,r.baseTexture.mipmap=Rr.OFF,this._size=r.height,this._sliceSize=1/this._size,this._slicePixelSize=this._sliceSize/this._size,this._sliceInnerSize=this._slicePixelSize*(this._size-1),this.uniforms._size=this._size,this.uniforms._sliceSize=this._sliceSize,this.uniforms._slicePixelSize=this._slicePixelSize,this.uniforms._sliceInnerSize=this._sliceInnerSize,this.uniforms.colorMap=r),this._colorMap=r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nearest",{get:function(){return this._nearest},set:function(r){this._nearest=r,this._scaleMode=r?Cr.NEAREST:Cr.LINEAR;var n=this._colorMap;n&&n.baseTexture&&(n.baseTexture._glTextures={},n.baseTexture.scaleMode=this._scaleMode,n.baseTexture.mipmap=Rr.OFF,n._updateID++,n.baseTexture.emit("update",n.baseTexture))},enumerable:!1,configurable:!0}),t.prototype.updateColorMap=function(){var r=this._colorMap;r&&r.baseTexture&&(r._updateID++,r.baseTexture.emit("update",r.baseTexture),this.colorMap=r)},t.prototype.destroy=function(r){r===void 0&&(r=!1),this._colorMap&&this._colorMap.destroy(r),e.prototype.destroy.call(this)},t})(ve);/*! * @pixi/filter-color-overlay - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2774,7 +2776,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Py=function(e,t){return Py=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Py(e,t)};function Mue(e,t){Py(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Fue=`attribute vec2 aVertexPosition; +***************************************************************************** */var u_=function(e,t){return u_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},u_(e,t)};function ihe(e,t){u_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ohe=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2785,7 +2787,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,Due=`varying vec2 vTextureCoord; +}`,ahe=`varying vec2 vTextureCoord; uniform sampler2D uSampler; uniform vec3 color; uniform float alpha; @@ -2794,7 +2796,7 @@ void main(void) { vec4 currentColor = texture2D(uSampler, vTextureCoord); gl_FragColor = vec4(mix(currentColor.rgb, color.rgb, currentColor.a * alpha), currentColor.a); } -`;(function(e){Mue(t,e);function t(r,n){r===void 0&&(r=0),n===void 0&&(n=1);var i=e.call(this,Fue,Due)||this;return i._color=0,i._alpha=1,i.uniforms.color=new Float32Array(3),i.color=r,i.alpha=n,i}return Object.defineProperty(t.prototype,"color",{get:function(){return this._color},set:function(r){var n=this.uniforms.color;typeof r=="number"?(jt(r,n),this._color=r):(n[0]=r[0],n[1]=r[1],n[2]=r[2],this._color=en(n))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return this._alpha},set:function(r){this.uniforms.alpha=r,this._alpha=r},enumerable:!1,configurable:!0}),t})(me);/*! +`;(function(e){ihe(t,e);function t(r,n){r===void 0&&(r=0),n===void 0&&(n=1);var i=e.call(this,ohe,ahe)||this;return i._color=0,i._alpha=1,i.uniforms.color=new Float32Array(3),i.color=r,i.alpha=n,i}return Object.defineProperty(t.prototype,"color",{get:function(){return this._color},set:function(r){var n=this.uniforms.color;typeof r=="number"?(Gt(r,n),this._color=r):(n[0]=r[0],n[1]=r[1],n[2]=r[2],this._color=sn(n))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return this._alpha},set:function(r){this.uniforms.alpha=r,this._alpha=r},enumerable:!1,configurable:!0}),t})(ve);/*! * @pixi/filter-color-replace - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2813,7 +2815,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var ky=function(e,t){return ky=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},ky(e,t)};function Bue(e,t){ky(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var jue=`attribute vec2 aVertexPosition; +***************************************************************************** */var l_=function(e,t){return l_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},l_(e,t)};function she(e,t){l_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var uhe=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2824,7 +2826,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,$ue=`varying vec2 vTextureCoord; +}`,lhe=`varying vec2 vTextureCoord; uniform sampler2D uSampler; uniform vec3 originalColor; uniform vec3 newColor; @@ -2836,7 +2838,7 @@ void main(void) { float doReplace = step(colorDistance, epsilon); gl_FragColor = vec4(mix(currentColor.rgb, (newColor + colorDiff) * currentColor.a, doReplace), currentColor.a); } -`;(function(e){Bue(t,e);function t(r,n,i){r===void 0&&(r=16711680),n===void 0&&(n=0),i===void 0&&(i=.4);var o=e.call(this,jue,$ue)||this;return o._originalColor=16711680,o._newColor=0,o.uniforms.originalColor=new Float32Array(3),o.uniforms.newColor=new Float32Array(3),o.originalColor=r,o.newColor=n,o.epsilon=i,o}return Object.defineProperty(t.prototype,"originalColor",{get:function(){return this._originalColor},set:function(r){var n=this.uniforms.originalColor;typeof r=="number"?(jt(r,n),this._originalColor=r):(n[0]=r[0],n[1]=r[1],n[2]=r[2],this._originalColor=en(n))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"newColor",{get:function(){return this._newColor},set:function(r){var n=this.uniforms.newColor;typeof r=="number"?(jt(r,n),this._newColor=r):(n[0]=r[0],n[1]=r[1],n[2]=r[2],this._newColor=en(n))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"epsilon",{get:function(){return this.uniforms.epsilon},set:function(r){this.uniforms.epsilon=r},enumerable:!1,configurable:!0}),t})(me);/*! +`;(function(e){she(t,e);function t(r,n,i){r===void 0&&(r=16711680),n===void 0&&(n=0),i===void 0&&(i=.4);var o=e.call(this,uhe,lhe)||this;return o._originalColor=16711680,o._newColor=0,o.uniforms.originalColor=new Float32Array(3),o.uniforms.newColor=new Float32Array(3),o.originalColor=r,o.newColor=n,o.epsilon=i,o}return Object.defineProperty(t.prototype,"originalColor",{get:function(){return this._originalColor},set:function(r){var n=this.uniforms.originalColor;typeof r=="number"?(Gt(r,n),this._originalColor=r):(n[0]=r[0],n[1]=r[1],n[2]=r[2],this._originalColor=sn(n))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"newColor",{get:function(){return this._newColor},set:function(r){var n=this.uniforms.newColor;typeof r=="number"?(Gt(r,n),this._newColor=r):(n[0]=r[0],n[1]=r[1],n[2]=r[2],this._newColor=sn(n))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"epsilon",{get:function(){return this.uniforms.epsilon},set:function(r){this.uniforms.epsilon=r},enumerable:!1,configurable:!0}),t})(ve);/*! * @pixi/filter-convolution - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2855,7 +2857,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Iy=function(e,t){return Iy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Iy(e,t)};function Uue(e,t){Iy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Gue=`attribute vec2 aVertexPosition; +***************************************************************************** */var c_=function(e,t){return c_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},c_(e,t)};function che(e,t){c_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var fhe=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2866,7 +2868,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,zue=`precision mediump float; +}`,hhe=`precision mediump float; varying mediump vec2 vTextureCoord; @@ -2895,7 +2897,7 @@ void main(void) gl_FragColor.a = c22.a; } -`;(function(e){Uue(t,e);function t(r,n,i){n===void 0&&(n=200),i===void 0&&(i=200);var o=e.call(this,Gue,zue)||this;return o.uniforms.texelSize=new Float32Array(2),o.uniforms.matrix=new Float32Array(9),r!==void 0&&(o.matrix=r),o.width=n,o.height=i,o}return Object.defineProperty(t.prototype,"matrix",{get:function(){return this.uniforms.matrix},set:function(r){var n=this;r.forEach(function(i,o){n.uniforms.matrix[o]=i})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return 1/this.uniforms.texelSize[0]},set:function(r){this.uniforms.texelSize[0]=1/r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return 1/this.uniforms.texelSize[1]},set:function(r){this.uniforms.texelSize[1]=1/r},enumerable:!1,configurable:!0}),t})(me);/*! +`;(function(e){che(t,e);function t(r,n,i){n===void 0&&(n=200),i===void 0&&(i=200);var o=e.call(this,fhe,hhe)||this;return o.uniforms.texelSize=new Float32Array(2),o.uniforms.matrix=new Float32Array(9),r!==void 0&&(o.matrix=r),o.width=n,o.height=i,o}return Object.defineProperty(t.prototype,"matrix",{get:function(){return this.uniforms.matrix},set:function(r){var n=this;r.forEach(function(i,o){n.uniforms.matrix[o]=i})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return 1/this.uniforms.texelSize[0]},set:function(r){this.uniforms.texelSize[0]=1/r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return 1/this.uniforms.texelSize[1]},set:function(r){this.uniforms.texelSize[1]=1/r},enumerable:!1,configurable:!0}),t})(ve);/*! * @pixi/filter-cross-hatch - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2914,7 +2916,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Ry=function(e,t){return Ry=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Ry(e,t)};function Hue(e,t){Ry(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Vue=`attribute vec2 aVertexPosition; +***************************************************************************** */var f_=function(e,t){return f_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},f_(e,t)};function dhe(e,t){f_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var phe=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2925,7 +2927,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,Wue=`precision mediump float; +}`,vhe=`precision mediump float; varying vec2 vTextureCoord; @@ -2969,7 +2971,7 @@ void main(void) } } } -`;(function(e){Hue(t,e);function t(){return e.call(this,Vue,Wue)||this}return t})(me);/*! +`;(function(e){dhe(t,e);function t(){return e.call(this,phe,vhe)||this}return t})(ve);/*! * @pixi/filter-crt - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2988,7 +2990,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Ny=function(e,t){return Ny=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Ny(e,t)};function que(e,t){Ny(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Xue=`attribute vec2 aVertexPosition; +***************************************************************************** */var h_=function(e,t){return h_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},h_(e,t)};function mhe(e,t){h_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ghe=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2999,7 +3001,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,Yue=`varying vec2 vTextureCoord; +}`,yhe=`varying vec2 vTextureCoord; uniform sampler2D uSampler; uniform vec4 filterArea; @@ -3065,7 +3067,7 @@ void main(void) gl_FragColor.rgb = rgb; } -`;(function(e){que(t,e);function t(r){var n=e.call(this,Xue,Yue)||this;return n.time=0,n.seed=0,n.uniforms.dimensions=new Float32Array(2),Object.assign(n,t.defaults,r),n}return t.prototype.apply=function(r,n,i,o){var a=n.filterFrame,s=a.width,u=a.height;this.uniforms.dimensions[0]=s,this.uniforms.dimensions[1]=u,this.uniforms.seed=this.seed,this.uniforms.time=this.time,r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"curvature",{get:function(){return this.uniforms.curvature},set:function(r){this.uniforms.curvature=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lineWidth",{get:function(){return this.uniforms.lineWidth},set:function(r){this.uniforms.lineWidth=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lineContrast",{get:function(){return this.uniforms.lineContrast},set:function(r){this.uniforms.lineContrast=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verticalLine",{get:function(){return this.uniforms.verticalLine},set:function(r){this.uniforms.verticalLine=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noise",{get:function(){return this.uniforms.noise},set:function(r){this.uniforms.noise=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noiseSize",{get:function(){return this.uniforms.noiseSize},set:function(r){this.uniforms.noiseSize=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"vignetting",{get:function(){return this.uniforms.vignetting},set:function(r){this.uniforms.vignetting=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"vignettingAlpha",{get:function(){return this.uniforms.vignettingAlpha},set:function(r){this.uniforms.vignettingAlpha=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"vignettingBlur",{get:function(){return this.uniforms.vignettingBlur},set:function(r){this.uniforms.vignettingBlur=r},enumerable:!1,configurable:!0}),t.defaults={curvature:1,lineWidth:1,lineContrast:.25,verticalLine:!1,noise:0,noiseSize:1,seed:0,vignetting:.3,vignettingAlpha:1,vignettingBlur:.3,time:0},t})(me);/*! +`;(function(e){mhe(t,e);function t(r){var n=e.call(this,ghe,yhe)||this;return n.time=0,n.seed=0,n.uniforms.dimensions=new Float32Array(2),Object.assign(n,t.defaults,r),n}return t.prototype.apply=function(r,n,i,o){var a=n.filterFrame,s=a.width,u=a.height;this.uniforms.dimensions[0]=s,this.uniforms.dimensions[1]=u,this.uniforms.seed=this.seed,this.uniforms.time=this.time,r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"curvature",{get:function(){return this.uniforms.curvature},set:function(r){this.uniforms.curvature=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lineWidth",{get:function(){return this.uniforms.lineWidth},set:function(r){this.uniforms.lineWidth=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lineContrast",{get:function(){return this.uniforms.lineContrast},set:function(r){this.uniforms.lineContrast=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verticalLine",{get:function(){return this.uniforms.verticalLine},set:function(r){this.uniforms.verticalLine=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noise",{get:function(){return this.uniforms.noise},set:function(r){this.uniforms.noise=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noiseSize",{get:function(){return this.uniforms.noiseSize},set:function(r){this.uniforms.noiseSize=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"vignetting",{get:function(){return this.uniforms.vignetting},set:function(r){this.uniforms.vignetting=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"vignettingAlpha",{get:function(){return this.uniforms.vignettingAlpha},set:function(r){this.uniforms.vignettingAlpha=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"vignettingBlur",{get:function(){return this.uniforms.vignettingBlur},set:function(r){this.uniforms.vignettingBlur=r},enumerable:!1,configurable:!0}),t.defaults={curvature:1,lineWidth:1,lineContrast:.25,verticalLine:!1,noise:0,noiseSize:1,seed:0,vignetting:.3,vignettingAlpha:1,vignettingBlur:.3,time:0},t})(ve);/*! * @pixi/filter-drop-shadow - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -3084,7 +3086,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Ly=function(e,t){return Ly=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Ly(e,t)};function Kue(e,t){Ly(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ih=function(){return ih=Object.assign||function(t){for(var r=arguments,n,i=1,o=arguments.length;i>0)+1},Object.defineProperty(t.prototype,"offset",{get:function(){return this.uniforms.uOffset},set:function(r){this.uniforms.uOffset=r},enumerable:!1,configurable:!0}),t})(me);/*! +`;(function(e){Ahe(t,e);function t(r,n,i){r===void 0&&(r=[0,0]),n===void 0&&(n=5),i===void 0&&(i=0);var o=e.call(this,Phe,khe)||this;return o.kernelSize=5,o.uniforms.uVelocity=new Float32Array(2),o._velocity=new Bi(o.velocityChanged,o),o.setVelocity(r),o.kernelSize=n,o.offset=i,o}return t.prototype.apply=function(r,n,i,o){var a=this.velocity,s=a.x,u=a.y;this.uniforms.uKernelSize=s!==0||u!==0?this.kernelSize:0,r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"velocity",{get:function(){return this._velocity},set:function(r){this.setVelocity(r)},enumerable:!1,configurable:!0}),t.prototype.setVelocity=function(r){if(Array.isArray(r)){var n=r[0],i=r[1];this._velocity.set(n,i)}else this._velocity.copyFrom(r)},t.prototype.velocityChanged=function(){this.uniforms.uVelocity[0]=this._velocity.x,this.uniforms.uVelocity[1]=this._velocity.y,this.padding=(Math.max(Math.abs(this._velocity.x),Math.abs(this._velocity.y))>>0)+1},Object.defineProperty(t.prototype,"offset",{get:function(){return this.uniforms.uOffset},set:function(r){this.uniforms.uOffset=r},enumerable:!1,configurable:!0}),t})(ve);/*! * @pixi/filter-multi-color-replace - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -3353,7 +3355,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var By=function(e,t){return By=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},By(e,t)};function ule(e,t){By(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var lle=`attribute vec2 aVertexPosition; +***************************************************************************** */var g_=function(e,t){return g_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},g_(e,t)};function Ihe(e,t){g_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Rhe=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -3364,7 +3366,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,cle=`varying vec2 vTextureCoord; +}`,Nhe=`varying vec2 vTextureCoord; uniform sampler2D uSampler; uniform float epsilon; @@ -3402,7 +3404,7 @@ void main(void) } } } -`;(function(e){ule(t,e);function t(r,n,i){n===void 0&&(n=.05),i===void 0&&(i=r.length);var o=e.call(this,lle,cle.replace(/%maxColors%/g,i.toFixed(0)))||this;return o._replacements=[],o._maxColors=0,o.epsilon=n,o._maxColors=i,o.uniforms.originalColors=new Float32Array(i*3),o.uniforms.targetColors=new Float32Array(i*3),o.replacements=r,o}return Object.defineProperty(t.prototype,"replacements",{get:function(){return this._replacements},set:function(r){var n=this.uniforms.originalColors,i=this.uniforms.targetColors,o=r.length;if(o>this._maxColors)throw new Error("Length of replacements ("+o+") exceeds the maximum colors length ("+this._maxColors+")");n[o*3]=-1;for(var a=0;athis._maxColors)throw new Error("Length of replacements ("+o+") exceeds the maximum colors length ("+this._maxColors+")");n[o*3]=-1;for(var a=0;ao===n);this.filters&&(this.filters.splice(i,1),this.containerFilters.delete(r))}}get blur(){return this.getOrCreateBlurFilter().blur}set blur(r){this.getOrCreateBlurFilter().blur=r}get x(){var n;return(((n=super.position)==null?void 0:n.x)??0)-this.baseX}set x(r){super.position&&(super.position.x=r+this.baseX)}get y(){var n;return(((n=super.position)==null?void 0:n.y)??0)-this.baseY}set y(r){super.position&&(super.position.y=r+this.baseY)}setBaseX(r){const n=this.x;this.baseX=r,this.x=n}setBaseY(r){const n=this.y;this.baseY=r,this.y=n}getOrCreateBlurFilter(){const r=this.containerFilters.get("blur");if(r)return r;{const n=new IR.BlurFilter;return n.blur=0,this.addFilter(n),this.containerFilters.set("blur",n),n}}getOrCreateOldFilmFilter(r=!0){const n=this.containerFilters.get("oldFilm");if(n)return n;if(r){const i=new Hse;return this.addFilter(i),this.containerFilters.set("oldFilm",i),i}else return null}get oldFilm(){return this.getOrCreateOldFilmFilter(!1)?1:0}set oldFilm(r){r===0?this.removeFilter("oldFilm"):this.getOrCreateOldFilmFilter()}getOrCreateDotFilter(r=!0){const n=this.containerFilters.get("dotFilm");if(n)return n;if(r){const i=new Xse;return this.addFilter(i),this.containerFilters.set("dotFilm",i),i}else return null}get dotFilm(){return this.getOrCreateDotFilter(!1)?1:0}set dotFilm(r){r===0?this.removeFilter("dotFilm"):this.getOrCreateDotFilter()}getOrCreateReflectionFilter(r=!0){const n=this.containerFilters.get("reflectionFilm");if(n)return n;if(r){const i=new Qse;return this.addFilter(i),this.containerFilters.set("reflectionFilm",i),i}else return null}get reflectionFilm(){return this.getOrCreateReflectionFilter(!1)?1:0}set reflectionFilm(r){r===0?this.removeFilter("reflectionFilm"):this.getOrCreateReflectionFilter()}getOrCreateGlitchFilter(r=!0){const n=this.containerFilters.get("glitchFilm");if(n)return n;if(r){const i=new rue;return this.addFilter(i),this.containerFilters.set("glitchFilm",i),i}else return null}get glitchFilm(){return this.getOrCreateGlitchFilter(!1)?1:0}set glitchFilm(r){r===0?this.removeFilter("glitchFilm"):this.getOrCreateGlitchFilter()}getOrCreateRGBSplitFilter(r=!0){const n=this.containerFilters.get("rgbFilm");if(n)return n;if(r){const i=new aue;return this.addFilter(i),this.containerFilters.set("rgbFilm",i),i}}get rgbFilm(){return this.getOrCreateRGBSplitFilter(!1)?1:0}set rgbFilm(r){r===0?this.removeFilter("rgbFilm"):this.getOrCreateRGBSplitFilter()}getOrCreateGodrayFilter(r=!0){const n=this.containerFilters.get("godrayFilm");if(n)return n;if(r){const i=new fue;return this.addFilter(i),this.containerFilters.set("godrayFilm",i),i}}get godrayFilm(){return this.getOrCreateGodrayFilter(!1)?1:0}set godrayFilm(r){r===0?this.removeFilter("godrayFilm"):this.getOrCreateGodrayFilter()}getOrCreateShockwaveFilter(r=!0){return Ble(this,r)}get shockwaveFilter(){return jle(this)}set shockwaveFilter(r){$le(this,r)}getOrCreateRadiusAlphaFilter(r=!0){return Gle(this,r)}get radiusAlphaFilter(){return zle(this)}set radiusAlphaFilter(r){Hle(this,r)}}window.PIXI=Fse;class Vle{constructor(){le(this,"currentApp",null);le(this,"effectsContainer");le(this,"frameDuration",16.67);le(this,"notUpdateBacklogEffects",!1);le(this,"figureContainer");le(this,"figureObjects",[]);le(this,"backgroundContainer");le(this,"backgroundObjects",[]);le(this,"stageAnimations",[]);le(this,"assetLoader",new Ka);le(this,"loadQueue",[]);le(this,"live2dFigureRecorder",[]);le(this,"lockTransformTarget",[]);le(this,"stageWidth",2560);le(this,"stageHeight",1440);le(this,"MAX_TEX_COUNT",10);const t=new ab({backgroundAlpha:0,preserveDrawingBuffer:!0});window.PIXIapp=this,window.__PIXI_APP__=t;const r=document.getElementById("pixiContianer");r&&(r.innerHTML="",r.appendChild(t.view)),t.renderer.view.style.position="absolute",t.renderer.view.style.display="block",t.renderer.view.id="pixiCanvas",t.renderer.autoResize=!0;const n=document.getElementById("root");n&&t.renderer.resize(n.clientWidth,n.clientHeight),sb&&(t.renderer.view.style.zIndex="-5"),t.stage.sortableChildren=!0,this.effectsContainer=new dr,this.effectsContainer.zIndex=3,this.figureContainer=new dr,this.figureContainer.zIndex=2,this.backgroundContainer=new dr,this.backgroundContainer.zIndex=0,t.stage.addChild(this.effectsContainer,this.figureContainer,this.backgroundContainer),this.currentApp=t;const i=()=>{this.updateFps(),setTimeout(i,1e4)};i();const o=()=>{setTimeout(o,500),this.callLoader()};o()}getFigureObjects(){return this.figureObjects}getAllLockedObject(){return this.lockTransformTarget}registerAnimation(t,r,n="default"){var i;t&&(this.stageAnimations.push({uuid:Pc(),animationObject:t,key:r,targetKey:n,type:"common"}),this.lockStageObject(n),t.setStartState(),(i=this.currentApp)==null||i.ticker.add(t.tickerFunc))}registerPresetAnimation(t,r,n="default",i){var a;if(!t)return;const o=i.find(s=>s.target===n);if(o){const s=this.getStageObjByKey(n);if(s){const u=s.pixiContainer;Object.assign(u,o.transform)}return}this.stageAnimations.push({uuid:Pc(),animationObject:t,key:r,targetKey:n,type:"preset"}),this.lockStageObject(n),t.setStartState(),(a=this.currentApp)==null||a.ticker.add(t.tickerFunc)}stopPresetAnimationOnTarget(t){const r=this.stageAnimations.find(n=>n.targetKey===t&&n.type==="preset");r&&this.removeAnimation(r.key)}removeAnimation(t){var n;const r=this.stageAnimations.findIndex(i=>i.key===t);if(r>=0){const i=this.stageAnimations[r];(n=this.currentApp)==null||n.ticker.remove(i.animationObject.tickerFunc),i.animationObject.setEndState(),this.unlockStageObject(i.targetKey??"default"),this.stageAnimations.splice(r,1)}}removeAnimationWithSetEffects(t){var n,i,o;const r=this.stageAnimations.findIndex(a=>a.key===t);if(r>=0){const a=this.stageAnimations[r];(n=this.currentApp)==null||n.ticker.remove(a.animationObject.tickerFunc),a.animationObject.setEndState();const s=((o=(i=a.animationObject).getEndFilterEffect)==null?void 0:o.call(i))??{};if(this.unlockStageObject(a.targetKey??"default"),a.targetKey){const u=this.getStageObjByKey(a.targetKey);if(u){const l={alpha:u.pixiContainer.alpha,scale:{x:u.pixiContainer.scale.x,y:u.pixiContainer.scale.y},position:{x:u.pixiContainer.x,y:u.pixiContainer.y},rotation:u.pixiContainer.rotation,blur:u.pixiContainer.blur,...s};let c={target:a.targetKey,transform:l};j.dispatch(Ir.updateEffect(c))}}this.stageAnimations.splice(r,1)}}performMouthSyncAnimation(t,r,n,i){var s;const o=(s=this.getStageObjByKey(t))==null?void 0:s.pixiContainer;if(!o)return;const a={open:r.mouthAnimation.open,half_open:r.mouthAnimation.halfOpen,closed:r.mouthAnimation.close};this.loadAsset(a[n],()=>{const u=this.assetLoader.resources[a[n]].texture;if(!u)return;const l=u.width,c=u.height,f=this.stageWidth/l,h=this.stageHeight/c,d=Math.min(f,h),v=new Pn(u);v.scale.x=d,v.scale.y=d,v.anchor.set(.5),v.position.y=this.stageHeight/2;const g=l*d,p=c*d;o.setBaseY(this.stageHeight/2),p{const u=this.assetLoader.resources[a[n]].texture;if(!u)return;const l=u.width,c=u.height,f=this.stageWidth/l,h=this.stageHeight/c,d=Math.min(f,h),v=new Pn(u);v.scale.x=d,v.scale.y=d,v.anchor.set(.5),v.position.y=this.stageHeight/2;const g=l*d,p=c*d;o.setBaseY(this.stageHeight/2),pf.key===t)>=0&&this.removeStageObjectByKey(t),this.backgroundContainer.addChild(i);const s=Pc();this.backgroundObjects.push({uuid:s,key:t,pixiContainer:i,sourceUrl:r});const u=()=>{setTimeout(()=>{var h,d;const f=(d=(h=n.resources)==null?void 0:h[r])==null?void 0:d.texture;if(f&&this.getStageObjByUuid(s)){const v=f.width,g=f.height,p=this.stageWidth/v,m=this.stageHeight/g,y=Math.max(p,m),_=new Pn(f);_.scale.x=y,_.scale.y=y,_.anchor.set(.5),_.position.y=this.stageHeight/2,i.setBaseX(this.stageWidth/2),i.setBaseY(this.stageHeight/2),i.pivot.set(0,this.stageHeight/2),i.addChild(_)}},0)};this.cacheGC(),(c=(l=n.resources)==null?void 0:l[r])!=null&&c.texture?u():this.loadAsset(r,u)}addFigure(t,r,n="center"){var c,f;const i=this.assetLoader,o=new $T;this.figureObjects.findIndex(h=>h.key===t)>=0&&this.removeStageObjectByKey(t),this.figureContainer.addChild(o);const u=Pc();this.figureObjects.push({uuid:u,key:t,pixiContainer:o,sourceUrl:r});const l=()=>{setTimeout(()=>{var d,v;const h=(v=(d=i.resources)==null?void 0:d[r])==null?void 0:v.texture;if(h&&this.getStageObjByUuid(u)){const g=h.width,p=h.height,m=this.stageWidth/g,y=this.stageHeight/p,_=Math.min(m,y),x=new Pn(h);x.scale.x=_,x.scale.y=_,x.anchor.set(.5),x.position.y=this.stageHeight/2;const b=g*_,w=p*_;o.setBaseY(this.stageHeight/2),ws.key===t),i=this.live2dFigureRecorder.find(s=>s.target===t);if(n&&(i==null?void 0:i.motion)!==r){const u=n.pixiContainer.children;for(const l of u){let c=r,f=0,h=3;const d=(l==null?void 0:l.internalModel)??void 0;(a=(o=d==null?void 0:d.motionManager)==null?void 0:o.stopAllMotions)==null||a.call(o),l.motion(c,f,h)}this.updateL2dMotionByKey(t,r)}}changeModelExpressionByKey(t,r){const n=this.figureObjects.find(o=>o.key===t),i=this.live2dFigureRecorder.find(o=>o.target===t);if(n&&(i==null?void 0:i.expression)!==r){const a=n.pixiContainer.children;for(const s of a)s.expression(r);this.updateL2dExpressionByKey(t,r)}}setModelMouthY(t,r){var a,s,u,l,c,f,h,d,v;function n(g){return g<50?0:(g-50)/50}const i=n(r),o=this.figureObjects.find(g=>g.key===t);if(o){const p=o.pixiContainer.children;for(const m of p)m!=null&&m.internalModel&&((s=(a=m==null?void 0:m.internalModel)==null?void 0:a.coreModel)!=null&&s.setParamFloat&&((c=(l=(u=m==null?void 0:m.internalModel)==null?void 0:u.coreModel)==null?void 0:l.setParamFloat)==null||c.call(l,"PARAM_MOUTH_OPEN_Y",i)),(h=(f=m==null?void 0:m.internalModel)==null?void 0:f.coreModel)!=null&&h.setParameterValueById&&((v=(d=m==null?void 0:m.internalModel)==null?void 0:d.coreModel)==null||v.setParameterValueById("ParamMouthOpenY",i)))}}getStageObjByKey(t){return[...this.figureObjects,...this.backgroundObjects].find(r=>r.key===t)}getStageObjByUuid(t){return[...this.figureObjects,...this.backgroundObjects].find(r=>r.uuid===t)}getAllStageObj(){return[...this.figureObjects,...this.backgroundObjects]}removeStageObjectByKey(t){const r=this.figureObjects.findIndex(i=>i.key===t),n=this.backgroundObjects.findIndex(i=>i.key===t);if(r>=0){const i=this.figureObjects[r];for(const o of i.pixiContainer.children)o.destroy();i.pixiContainer.destroy(),this.figureContainer.removeChild(i.pixiContainer),this.figureObjects.splice(r,1)}if(n>=0){const i=this.backgroundObjects[n];for(const o of i.pixiContainer.children)o.destroy();i.pixiContainer.destroy(),this.backgroundContainer.removeChild(i.pixiContainer),this.backgroundObjects.splice(n,1)}}cacheGC(){Qk()}updateL2dMotionByKey(t,r){const n=this.live2dFigureRecorder.findIndex(i=>i.target===t);n>=0?this.live2dFigureRecorder[n].motion=r:this.live2dFigureRecorder.push({target:t,motion:r,expression:""})}updateL2dExpressionByKey(t,r){const n=this.live2dFigureRecorder.findIndex(i=>i.target===t);n>=0?this.live2dFigureRecorder[n].expression=r:this.live2dFigureRecorder.push({target:t,motion:"",expression:r})}loadAsset(t,r){this.loadQueue.unshift({url:t,callback:r}),this.callLoader()}callLoader(){if(!this.assetLoader.loading){const t=this.loadQueue.shift();if(t)try{this.assetLoader.resources[t.url]?(t.callback(),this.callLoader()):this.assetLoader.add(t.url).load(()=>{t.callback(),this.callLoader()})}catch(r){ne.fatal("PIXI Loader 故障",r),t.callback(),this.callLoader()}}}updateFps(){Yv==null||Yv(120).then(t=>{this.frameDuration=1e3/t})}lockStageObject(t){this.lockTransformTarget.push(t)}unlockStageObject(t){const r=this.lockTransformTarget.findIndex(n=>n===t);r>=0&&this.lockTransformTarget.splice(r,1)}}const Yv=(()=>{const e=[window.requestAnimationFrame,window.webkitRequestAnimationFrame,window.mozRequestAnimationFrame].find(t=>t);if(!e){console.error("requestAnimationFrame is not supported!");return}return(t=60)=>{if(t<1)throw new Error("targetCount cannot be less than 1.");const r=Date.now();let n=0;return new Promise(i=>{(function o(){e(()=>{if(++n>=t){const a=Date.now()-r,s=n/a*1e3;return i(s)}o()})})()})}})(),MR={version:"WebGAL 4.4.11",contributors:[{username:"Mahiru",link:"https://github.com/MakinoharaShoko"},{username:"Hoshinokinya",link:"https://github.com/hshqwq"},{username:"Junbo Xiong",link:"https://github.com/C6H5-NO2"},{username:"lykl",link:"https://github.com/lykl"},{username:"SakuraSnow",link:"https://github.com/sliyoxn"},{username:"bcqsd",link:"https://github.com/bcqsd"},{username:"Yuji Sakai",link:"https://github.com/generalfreed"},{username:"Iara",link:"https://github.com/labiker"},{username:"22",link:"https://github.com/nini22P"},{username:"德布罗煜",link:"https://github.com/ch1ny"},{username:"Mike Zhou",link:"https://github.com/mikezzb"},{username:"Murasame0721",link:"https://github.com/Murasame0721"},{username:"loliko",link:"https://github.com/loliko114514"},{username:"IdrilK",link:"https://github.com/IdrilK"},{username:"callofblood",link:"https://github.com/callofblood"},{username:"lyle",link:"https://github.com/lylelove"}]},Wle=navigator.userAgent,sb=!!Wle.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),qle=()=>{ne.info(MR.version),ne.info("Github: https://github.com/MakinoharaShoko/WebGAL "),ne.info("Made with ❤ by MakinoharaShoko"),sb&&alert(`iOS 用户请横屏使用以获得最佳体验 + `;super(null,n),this.uniforms.center=[t.x,t.y],this.uniforms.radius=r}set center(t){this.uniforms.center=[t.x,t.y]}get center(){return new Ce(this.uniforms.center[0],this.uniforms.center[1])}set radius(t){console.log(t),this.uniforms.radius=t}get radius(){return this.uniforms.radius}}function fde(e,t){const r=e.containerFilters.get(A_);if(r)return r;if(t){const n=new cde(new Ce(.5,.5),O_);return n.radius=O_,e.addFilter(n),e.containerFilters.set(A_,n),n}}function hde(e){return e.getOrCreateShockwaveFilter(!1)?e.getOrCreateRadiusAlphaFilter().radius:O_}function dde(e,t){if(t===0)e.removeFilter(A_);else{const r=e.getOrCreateRadiusAlphaFilter();r&&(r.radius=t)}}class RC extends gr{constructor(){super();se(this,"containerFilters",new Map);se(this,"baseX",0);se(this,"baseY",0)}addFilter(r){this.filters?this.filters.push(r):this.filters=[r]}removeFilter(r){const n=this.containerFilters.get(r);if(n){const i=((this==null?void 0:this.filters)??[]).findIndex(o=>o===n);this.filters&&(this.filters.splice(i,1),this.containerFilters.delete(r))}}get blur(){return this.getOrCreateBlurFilter().blur}set blur(r){this.getOrCreateBlurFilter().blur=r}get x(){var n;return(((n=super.position)==null?void 0:n.x)??0)-this.baseX}set x(r){super.position&&(super.position.x=r+this.baseX)}get y(){var n;return(((n=super.position)==null?void 0:n.y)??0)-this.baseY}set y(r){super.position&&(super.position.y=r+this.baseY)}setBaseX(r){const n=this.x;this.baseX=r,this.x=n}setBaseY(r){const n=this.y;this.baseY=r,this.y=n}getOrCreateBlurFilter(){const r=this.containerFilters.get("blur");if(r)return r;{const n=new $N.BlurFilter;return n.blur=0,this.addFilter(n),this.containerFilters.set("blur",n),n}}getOrCreateOldFilmFilter(r=!0){const n=this.containerFilters.get("oldFilm");if(n)return n;if(r){const i=new dfe;return this.addFilter(i),this.containerFilters.set("oldFilm",i),i}else return null}get oldFilm(){return this.getOrCreateOldFilmFilter(!1)?1:0}set oldFilm(r){r===0?this.removeFilter("oldFilm"):this.getOrCreateOldFilmFilter()}getOrCreateDotFilter(r=!0){const n=this.containerFilters.get("dotFilm");if(n)return n;if(r){const i=new gfe;return this.addFilter(i),this.containerFilters.set("dotFilm",i),i}else return null}get dotFilm(){return this.getOrCreateDotFilter(!1)?1:0}set dotFilm(r){r===0?this.removeFilter("dotFilm"):this.getOrCreateDotFilter()}getOrCreateReflectionFilter(r=!0){const n=this.containerFilters.get("reflectionFilm");if(n)return n;if(r){const i=new bfe;return this.addFilter(i),this.containerFilters.set("reflectionFilm",i),i}else return null}get reflectionFilm(){return this.getOrCreateReflectionFilter(!1)?1:0}set reflectionFilm(r){r===0?this.removeFilter("reflectionFilm"):this.getOrCreateReflectionFilter()}getOrCreateGlitchFilter(r=!0){const n=this.containerFilters.get("glitchFilm");if(n)return n;if(r){const i=new Tfe;return this.addFilter(i),this.containerFilters.set("glitchFilm",i),i}else return null}get glitchFilm(){return this.getOrCreateGlitchFilter(!1)?1:0}set glitchFilm(r){r===0?this.removeFilter("glitchFilm"):this.getOrCreateGlitchFilter()}getOrCreateRGBSplitFilter(r=!0){const n=this.containerFilters.get("rgbFilm");if(n)return n;if(r){const i=new Pfe;return this.addFilter(i),this.containerFilters.set("rgbFilm",i),i}}get rgbFilm(){return this.getOrCreateRGBSplitFilter(!1)?1:0}set rgbFilm(r){r===0?this.removeFilter("rgbFilm"):this.getOrCreateRGBSplitFilter()}getOrCreateGodrayFilter(r=!0){const n=this.containerFilters.get("godrayFilm");if(n)return n;if(r){const i=new Lfe;return this.addFilter(i),this.containerFilters.set("godrayFilm",i),i}}get godrayFilm(){return this.getOrCreateGodrayFilter(!1)?1:0}set godrayFilm(r){r===0?this.removeFilter("godrayFilm"):this.getOrCreateGodrayFilter()}getOrCreateShockwaveFilter(r=!0){return sde(this,r)}get shockwaveFilter(){return ude(this)}set shockwaveFilter(r){lde(this,r)}getOrCreateRadiusAlphaFilter(r=!0){return fde(this,r)}get radiusAlphaFilter(){return hde(this)}set radiusAlphaFilter(r){dde(this,r)}}window.PIXI=ofe;class pde{constructor(){se(this,"currentApp",null);se(this,"effectsContainer");se(this,"frameDuration",16.67);se(this,"notUpdateBacklogEffects",!1);se(this,"figureContainer");se(this,"figureObjects",[]);se(this,"backgroundContainer");se(this,"backgroundObjects",[]);se(this,"stageAnimations",[]);se(this,"assetLoader",new fs);se(this,"loadQueue",[]);se(this,"live2dFigureRecorder",[]);se(this,"lockTransformTarget",[]);se(this,"stageWidth",2560);se(this,"stageHeight",1440);se(this,"MAX_TEX_COUNT",10);const t=new Hb({backgroundAlpha:0,preserveDrawingBuffer:!0});window.PIXIapp=this,window.__PIXI_APP__=t;const r=document.getElementById("pixiContianer");r&&(r.innerHTML="",r.appendChild(t.view)),t.renderer.view.style.position="absolute",t.renderer.view.style.display="block",t.renderer.view.id="pixiCanvas",t.renderer.autoResize=!0;const n=document.getElementById("root");n&&t.renderer.resize(n.clientWidth,n.clientHeight),Vb&&(t.renderer.view.style.zIndex="-5"),t.stage.sortableChildren=!0,this.effectsContainer=new gr,this.effectsContainer.zIndex=3,this.figureContainer=new gr,this.figureContainer.zIndex=2,this.backgroundContainer=new gr,this.backgroundContainer.zIndex=0,t.stage.addChild(this.effectsContainer,this.figureContainer,this.backgroundContainer),this.currentApp=t;const i=()=>{this.updateFps(),setTimeout(i,1e4)};i();const o=()=>{setTimeout(o,500),this.callLoader()};o()}getFigureObjects(){return this.figureObjects}getAllLockedObject(){return this.lockTransformTarget}registerAnimation(t,r,n="default"){var i;t&&(this.stageAnimations.push({uuid:Qc(),animationObject:t,key:r,targetKey:n,type:"common"}),this.lockStageObject(n),t.setStartState(),(i=this.currentApp)==null||i.ticker.add(t.tickerFunc))}registerPresetAnimation(t,r,n="default",i){var a;if(!t)return;const o=i.find(s=>s.target===n);if(o){const s=this.getStageObjByKey(n);if(s){const u=s.pixiContainer;Object.assign(u,o.transform)}return}this.stageAnimations.push({uuid:Qc(),animationObject:t,key:r,targetKey:n,type:"preset"}),this.lockStageObject(n),t.setStartState(),(a=this.currentApp)==null||a.ticker.add(t.tickerFunc)}stopPresetAnimationOnTarget(t){const r=this.stageAnimations.find(n=>n.targetKey===t&&n.type==="preset");r&&this.removeAnimation(r.key)}removeAnimation(t){var n;const r=this.stageAnimations.findIndex(i=>i.key===t);if(r>=0){const i=this.stageAnimations[r];(n=this.currentApp)==null||n.ticker.remove(i.animationObject.tickerFunc),i.animationObject.setEndState(),this.unlockStageObject(i.targetKey??"default"),this.stageAnimations.splice(r,1)}}removeAnimationWithSetEffects(t){var n,i,o;const r=this.stageAnimations.findIndex(a=>a.key===t);if(r>=0){const a=this.stageAnimations[r];(n=this.currentApp)==null||n.ticker.remove(a.animationObject.tickerFunc),a.animationObject.setEndState();const s=((o=(i=a.animationObject).getEndFilterEffect)==null?void 0:o.call(i))??{};if(this.unlockStageObject(a.targetKey??"default"),a.targetKey){const u=this.getStageObjByKey(a.targetKey);if(u){const l={alpha:u.pixiContainer.alpha,scale:{x:u.pixiContainer.scale.x,y:u.pixiContainer.scale.y},position:{x:u.pixiContainer.x,y:u.pixiContainer.y},rotation:u.pixiContainer.rotation,blur:u.pixiContainer.blur,...s};let c={target:a.targetKey,transform:l};B.dispatch(Er.updateEffect(c))}}this.stageAnimations.splice(r,1)}}performMouthSyncAnimation(t,r,n,i){var s;const o=(s=this.getStageObjByKey(t))==null?void 0:s.pixiContainer;if(!o)return;const a={open:r.mouthAnimation.open,half_open:r.mouthAnimation.halfOpen,closed:r.mouthAnimation.close};this.loadAsset(a[n],()=>{const u=this.assetLoader.resources[a[n]].texture;if(!u)return;const l=u.width,c=u.height,f=this.stageWidth/l,h=this.stageHeight/c,d=Math.min(f,h),v=new jn(u);v.scale.x=d,v.scale.y=d,v.anchor.set(.5),v.position.y=this.stageHeight/2;const g=l*d,p=c*d;o.setBaseY(this.stageHeight/2),p{const u=this.assetLoader.resources[a[n]].texture;if(!u)return;const l=u.width,c=u.height,f=this.stageWidth/l,h=this.stageHeight/c,d=Math.min(f,h),v=new jn(u);v.scale.x=d,v.scale.y=d,v.anchor.set(.5),v.position.y=this.stageHeight/2;const g=l*d,p=c*d;o.setBaseY(this.stageHeight/2),pf.key===t)>=0&&this.removeStageObjectByKey(t),this.backgroundContainer.addChild(i);const s=Qc();this.backgroundObjects.push({uuid:s,key:t,pixiContainer:i,sourceUrl:r});const u=()=>{setTimeout(()=>{var h,d;const f=(d=(h=n.resources)==null?void 0:h[r])==null?void 0:d.texture;if(f&&this.getStageObjByUuid(s)){const v=f.width,g=f.height,p=this.stageWidth/v,m=this.stageHeight/g,y=Math.max(p,m),_=new jn(f);_.scale.x=y,_.scale.y=y,_.anchor.set(.5),_.position.y=this.stageHeight/2,i.setBaseX(this.stageWidth/2),i.setBaseY(this.stageHeight/2),i.pivot.set(0,this.stageHeight/2),i.addChild(_)}},0)};this.cacheGC(),(c=(l=n.resources)==null?void 0:l[r])!=null&&c.texture?u():this.loadAsset(r,u)}addFigure(t,r,n="center"){var c,f;const i=this.assetLoader,o=new RC;this.figureObjects.findIndex(h=>h.key===t)>=0&&this.removeStageObjectByKey(t),this.figureContainer.addChild(o);const u=Qc();this.figureObjects.push({uuid:u,key:t,pixiContainer:o,sourceUrl:r});const l=()=>{setTimeout(()=>{var d,v;const h=(v=(d=i.resources)==null?void 0:d[r])==null?void 0:v.texture;if(h&&this.getStageObjByUuid(u)){const g=h.width,p=h.height,m=this.stageWidth/g,y=this.stageHeight/p,_=Math.min(m,y),x=new jn(h);x.scale.x=_,x.scale.y=_,x.anchor.set(.5),x.position.y=this.stageHeight/2;const b=g*_,w=p*_;o.setBaseY(this.stageHeight/2),ws.key===t),i=this.live2dFigureRecorder.find(s=>s.target===t);if(n&&(i==null?void 0:i.motion)!==r){const u=n.pixiContainer.children;for(const l of u){let c=r,f=0,h=3;const d=(l==null?void 0:l.internalModel)??void 0;(a=(o=d==null?void 0:d.motionManager)==null?void 0:o.stopAllMotions)==null||a.call(o),l.motion(c,f,h)}this.updateL2dMotionByKey(t,r)}}changeModelExpressionByKey(t,r){const n=this.figureObjects.find(o=>o.key===t),i=this.live2dFigureRecorder.find(o=>o.target===t);if(n&&(i==null?void 0:i.expression)!==r){const a=n.pixiContainer.children;for(const s of a)s.expression(r);this.updateL2dExpressionByKey(t,r)}}setModelMouthY(t,r){var a,s,u,l,c,f,h,d,v;function n(g){return g<50?0:(g-50)/50}const i=n(r),o=this.figureObjects.find(g=>g.key===t);if(o){const p=o.pixiContainer.children;for(const m of p)m!=null&&m.internalModel&&((s=(a=m==null?void 0:m.internalModel)==null?void 0:a.coreModel)!=null&&s.setParamFloat&&((c=(l=(u=m==null?void 0:m.internalModel)==null?void 0:u.coreModel)==null?void 0:l.setParamFloat)==null||c.call(l,"PARAM_MOUTH_OPEN_Y",i)),(h=(f=m==null?void 0:m.internalModel)==null?void 0:f.coreModel)!=null&&h.setParameterValueById&&((v=(d=m==null?void 0:m.internalModel)==null?void 0:d.coreModel)==null||v.setParameterValueById("ParamMouthOpenY",i)))}}getStageObjByKey(t){return[...this.figureObjects,...this.backgroundObjects].find(r=>r.key===t)}getStageObjByUuid(t){return[...this.figureObjects,...this.backgroundObjects].find(r=>r.uuid===t)}getAllStageObj(){return[...this.figureObjects,...this.backgroundObjects]}removeStageObjectByKey(t){const r=this.figureObjects.findIndex(i=>i.key===t),n=this.backgroundObjects.findIndex(i=>i.key===t);if(r>=0){const i=this.figureObjects[r];for(const o of i.pixiContainer.children)o.destroy();i.pixiContainer.destroy(),this.figureContainer.removeChild(i.pixiContainer),this.figureObjects.splice(r,1)}if(n>=0){const i=this.backgroundObjects[n];for(const o of i.pixiContainer.children)o.destroy();i.pixiContainer.destroy(),this.backgroundContainer.removeChild(i.pixiContainer),this.backgroundObjects.splice(n,1)}}cacheGC(){sR()}updateL2dMotionByKey(t,r){const n=this.live2dFigureRecorder.findIndex(i=>i.target===t);n>=0?this.live2dFigureRecorder[n].motion=r:this.live2dFigureRecorder.push({target:t,motion:r,expression:""})}updateL2dExpressionByKey(t,r){const n=this.live2dFigureRecorder.findIndex(i=>i.target===t);n>=0?this.live2dFigureRecorder[n].expression=r:this.live2dFigureRecorder.push({target:t,motion:"",expression:r})}loadAsset(t,r){this.loadQueue.unshift({url:t,callback:r}),this.callLoader()}callLoader(){if(!this.assetLoader.loading){const t=this.loadQueue.shift();if(t)try{this.assetLoader.resources[t.url]?(t.callback(),this.callLoader()):this.assetLoader.add(t.url).load(()=>{t.callback(),this.callLoader()})}catch(r){ne.fatal("PIXI Loader 故障",r),t.callback(),this.callLoader()}}}updateFps(){Om==null||Om(120).then(t=>{this.frameDuration=1e3/t})}lockStageObject(t){this.lockTransformTarget.push(t)}unlockStageObject(t){const r=this.lockTransformTarget.findIndex(n=>n===t);r>=0&&this.lockTransformTarget.splice(r,1)}}const Om=(()=>{const e=[window.requestAnimationFrame,window.webkitRequestAnimationFrame,window.mozRequestAnimationFrame].find(t=>t);if(!e){console.error("requestAnimationFrame is not supported!");return}return(t=60)=>{if(t<1)throw new Error("targetCount cannot be less than 1.");const r=Date.now();let n=0;return new Promise(i=>{(function o(){e(()=>{if(++n>=t){const a=Date.now()-r,s=n/a*1e3;return i(s)}o()})})()})}})(),HN={version:"WebGAL 4.4.12",contributors:[{username:"Mahiru",link:"https://github.com/MakinoharaShoko"},{username:"Hoshinokinya",link:"https://github.com/hshqwq"},{username:"Junbo Xiong",link:"https://github.com/C6H5-NO2"},{username:"lykl",link:"https://github.com/lykl"},{username:"SakuraSnow",link:"https://github.com/sliyoxn"},{username:"bcqsd",link:"https://github.com/bcqsd"},{username:"Yuji Sakai",link:"https://github.com/generalfreed"},{username:"Iara",link:"https://github.com/labiker"},{username:"22",link:"https://github.com/nini22P"},{username:"德布罗煜",link:"https://github.com/ch1ny"},{username:"Mike Zhou",link:"https://github.com/mikezzb"},{username:"Murasame0721",link:"https://github.com/Murasame0721"},{username:"loliko",link:"https://github.com/loliko114514"},{username:"IdrilK",link:"https://github.com/IdrilK"},{username:"callofblood",link:"https://github.com/callofblood"},{username:"lyle",link:"https://github.com/lylelove"}]},vde=navigator.userAgent,Vb=!!vde.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),mde=()=>{ne.info(HN.version),ne.info("Github: https://github.com/OpenWebGAL/WebGAL "),ne.info("Made with ❤ by OpenWebGAL"),Vb&&alert(`iOS 用户请横屏使用以获得最佳体验 | Please use landscape mode on iOS for the best experience -| iOS ユーザーは横画面での使用をお勧めします`),Xle("./game/userStyleSheet.css"),Yle(),jQ("./game/config.txt");const e=Nr("start.txt",Rr.scene);Vn(e).then(t=>{O.sceneManager.sceneData.currentScene=Wn(t,"start.txt",e);const r=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(e);const n=Rl(r);Nl(n)}),O.gameplay.pixiStage=new Vle,UQ(),GQ()};function Xle(e){const t=document.createElement("link");t.type="text/css",t.rel="stylesheet",t.href=e,document.getElementsByTagName("head")[0].appendChild(t)}function Yle(){zf.get("./game/animation/animationTable.json").then(e=>{const t=e.data;for(const r of t)zf.get(`./game/animation/${r}.json`).then(n=>{if(n.data){const i={name:r,effects:n.data};O.animationManager.addAnimation(i)}})})}const Kle="_Menu_main_1a7i6_1",Zle="_Menu_ShowSoftly_1a7i6_1",Qle="_Menu_TagContent_1a7i6_10",UT={Menu_main:Kle,Menu_ShowSoftly:Zle,Menu_TagContent:Qle},Jle="_MenuPanel_main_1nje1_1",ece="_MenuPanel_button_1nje1_10",tce="_MenuPanel_button_icon_1nje1_34",wa={MenuPanel_main:Jle,MenuPanel_button:ece,MenuPanel_button_icon:tce};var rce=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function GT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zT(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function oce(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}var ace={size:"1em",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",rtl:!1,theme:"outline",colors:{outline:{fill:"#333",background:"transparent"},filled:{fill:"#333",background:"#FFF"},twoTone:{fill:"#333",twoTone:"#2F88FF"},multiColor:{outStrokeColor:"#333",outFillColor:"#2F88FF",innerStrokeColor:"#FFF",innerFillColor:"#43CCF8"}},prefix:"i"};function sce(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function uce(e,t,r){var n=typeof t.fill=="string"?[t.fill]:t.fill||[],i=[],o=t.theme||r.theme;switch(o){case"outline":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("none"),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("none");break;case"filled":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("#FFF"),i.push("#FFF");break;case"two-tone":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.twoTone.twoTone),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.twoTone.twoTone);break;case"multi-color":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.multiColor.outFillColor),i.push(typeof n[2]=="string"?n[2]:r.colors.multiColor.innerStrokeColor),i.push(typeof n[3]=="string"?n[3]:r.colors.multiColor.innerFillColor);break}return{size:t.size||r.size,strokeWidth:t.strokeWidth||r.strokeWidth,strokeLinecap:t.strokeLinecap||r.strokeLinecap,strokeLinejoin:t.strokeLinejoin||r.strokeLinejoin,colors:i,id:e}}var FR=$.createContext(ace);FR.Provider;function lt(e,t,r){return function(n){var i=n.size,o=n.strokeWidth,a=n.strokeLinecap,s=n.strokeLinejoin,u=n.theme,l=n.fill,c=n.className,f=n.spin,h=ice(n,rce),d=$.useContext(FR),v=$.useMemo(sce,[]),g=uce(v,{size:i,strokeWidth:o,strokeLinecap:a,strokeLinejoin:s,theme:u,fill:l},d),p=[d.prefix+"-icon"];return p.push(d.prefix+"-icon-"+e),t&&d.rtl&&p.push(d.prefix+"-icon-rtl"),f&&p.push(d.prefix+"-icon-spin"),c&&p.push(c),Y.createElement("span",zT(zT({},h),{},{className:p.join(" ")}),r(g))}}const lce=lt("align-text-left-one",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M39 6H9C7.34315 6 6 7.34315 6 9V39C6 40.6569 7.34315 42 9 42H39C40.6569 42 42 40.6569 42 39V9C42 7.34315 40.6569 6 39 6Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M26 24H14",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M34 15H14",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M32 33H14",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),DR=lt("close-small",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M14 14L34 34",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 34L34 14",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),cce=lt("double-down",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M36 12L24 24L12 12",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M36 24L24 36L12 24",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),fce=lt("double-right",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M12 12L24 24L12 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 12L36 24L24 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),hce=lt("double-up",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M12 24L24 12L36 24",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M12 36L24 24L36 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),BR=lt("folder-open",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M4 9V41L9 21H39.5V15C39.5 13.8954 38.6046 13 37.5 13H24L19 7H6C4.89543 7 4 7.89543 4 9Z",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M40 41L44 21H8.8125L4 41H40Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),dce=lt("go-end",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M14 12L26 24L14 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M34 12V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),pce=lt("go-start",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M34 36L22 24L34 12",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 12V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),vce=lt("hamburger-button",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M7.94971 11.9497H39.9497",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M7.94971 23.9497H39.9497",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M7.94971 35.9497H39.9497",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),jR=lt("home",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M9 18V42H39V18L24 6L9 18Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M19 29V42H29V29H19Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M9 42H39",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}))}),mce=lt("left",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M31 36L19 24L31 12",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),gce=lt("lock",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("rect",{x:"6",y:"22",width:"36",height:"22",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 22V14C14 8.47715 18.4772 4 24 4C29.5228 4 34 8.47715 34 14V22",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 30V36",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),yce=lt("logout",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M23.9917 6H6V42H24",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M33 33L42 24L33 15",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M16 23.9917H42",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),_ce=lt("music-list",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M24 19H40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 10H40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M8 38H40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M8 28H40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M8 10L16 15L8 20V10Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),$R=lt("play-one",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M15 24V11.8756L25.5 17.9378L36 24L25.5 30.0622L15 36.1244V24Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),xce=lt("preview-close-one",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M9.85786 18C6.23858 21 4 24 4 24C4 24 12.9543 36 24 36C25.3699 36 26.7076 35.8154 28 35.4921M20.0318 12.5C21.3144 12.1816 22.6414 12 24 12C35.0457 12 44 24 44 24C44 24 41.7614 27 38.1421 30",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M20.3142 20.6211C19.4981 21.5109 19 22.6972 19 23.9998C19 26.7612 21.2386 28.9998 24 28.9998C25.3627 28.9998 26.5981 28.4546 27.5 27.5705",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M42 42L6 6",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),bce=lt("preview-open",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M24 36C35.0457 36 44 24 44 24C44 24 35.0457 12 24 12C12.9543 12 4 24 4 24C4 24 12.9543 36 24 36Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 29C26.7614 29 29 26.7614 29 24C29 21.2386 26.7614 19 24 19C21.2386 19 19 21.2386 19 24C19 26.7614 21.2386 29 24 29Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),Sce=lt("replay-music",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M21 24V18L26 21L31 24L26 27L21 30V24Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M11.2721 36.7279C14.5294 39.9853 19.0294 42 24 42C33.9411 42 42 33.9411 42 24C42 14.0589 33.9411 6 24 6C19.0294 6 14.5294 8.01472 11.2721 11.2721C9.6141 12.9301 6 17 6 17",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M6 9V17H14",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),wce=lt("return",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M6 14H28.9938C35.8768 14 41.7221 19.6204 41.9904 26.5C42.2739 33.7696 36.2671 40 28.9938 40H11.9984",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),UR=lt("save",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M6 9C6 7.34315 7.34315 6 9 6H34.2814L42 13.2065V39C42 40.6569 40.6569 42 39 42H9C7.34315 42 6 40.6569 6 39V9Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.0083 6L24 13.3846C24 13.7245 23.5523 14 23 14H15C14.4477 14 14 13.7245 14 13.3846L14 6",fill:e.colors[3]}),Y.createElement("path",{d:"M24.0083 6L24 13.3846C24 13.7245 23.5523 14 23 14H15C14.4477 14 14 13.7245 14 13.3846L14 6H24.0083Z",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M9 6H34.2814",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 26H34",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 34H24.0083",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),GR=lt("setting-two",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M18.2838 43.1713C14.9327 42.1736 11.9498 40.3213 9.58787 37.867C10.469 36.8227 11 35.4734 11 34.0001C11 30.6864 8.31371 28.0001 5 28.0001C4.79955 28.0001 4.60139 28.01 4.40599 28.0292C4.13979 26.7277 4 25.3803 4 24.0001C4 21.9095 4.32077 19.8938 4.91579 17.9995C4.94381 17.9999 4.97188 18.0001 5 18.0001C8.31371 18.0001 11 15.3138 11 12.0001C11 11.0488 10.7786 10.1493 10.3846 9.35011C12.6975 7.1995 15.5205 5.59002 18.6521 4.72314C19.6444 6.66819 21.6667 8.00013 24 8.00013C26.3333 8.00013 28.3556 6.66819 29.3479 4.72314C32.4795 5.59002 35.3025 7.1995 37.6154 9.35011C37.2214 10.1493 37 11.0488 37 12.0001C37 15.3138 39.6863 18.0001 43 18.0001C43.0281 18.0001 43.0562 17.9999 43.0842 17.9995C43.6792 19.8938 44 21.9095 44 24.0001C44 25.3803 43.8602 26.7277 43.594 28.0292C43.3986 28.01 43.2005 28.0001 43 28.0001C39.6863 28.0001 37 30.6864 37 34.0001C37 35.4734 37.531 36.8227 38.4121 37.867C36.0502 40.3213 33.0673 42.1736 29.7162 43.1713C28.9428 40.752 26.676 39.0001 24 39.0001C21.324 39.0001 19.0572 40.752 18.2838 43.1713Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 31C27.866 31 31 27.866 31 24C31 20.134 27.866 17 24 17C20.134 17 17 20.134 17 24C17 27.866 20.134 31 24 31Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),Ece=lt("square-small",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M34 12H14C12.8954 12 12 12.8954 12 14V34C12 35.1046 12.8954 36 14 36H34C35.1046 36 36 35.1046 36 34V14C36 12.8954 35.1046 12 34 12Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}))}),Tce=lt("unlock",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("rect",{x:"7",y:"22.0476",width:"34",height:"22",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 22V14.0047C13.9948 8.87022 17.9227 4.56718 23.0859 4.05117C28.249 3.53516 32.9673 6.97408 34 12.0059",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 30V36",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Cce=lt("volume-notice",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M24 6V42C17 42 11.7985 32.8391 11.7985 32.8391H6C4.89543 32.8391 4 31.9437 4 30.8391V17.0108C4 15.9062 4.89543 15.0108 6 15.0108H11.7985C11.7985 15.0108 17 6 24 6Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M32 15L32 15C32.6232 15.5565 33.1881 16.1797 33.6841 16.8588C35.1387 18.8504 36 21.3223 36 24C36 26.6545 35.1535 29.1067 33.7218 31.0893C33.2168 31.7885 32.6391 32.4293 32 33",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M34.2359 41.1857C40.0836 37.6953 44 31.305 44 24C44 16.8085 40.2043 10.5035 34.507 6.97906",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}))}),Oce=e=>{let t;switch(e.iconName){case"save":t=S.jsx(UR,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"load":t=S.jsx(BR,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"option":t=S.jsx(GR,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"title":t=S.jsx(jR,{theme:"outline",size:"1.2em",fill:"rgba(185,185,185,1)",strokeWidth:2});break;case"exit":t=S.jsx(yce,{theme:"outline",size:"1.2em",fill:"rgba(185,185,185,1)",strokeWidth:2});break;default:t=S.jsx("div",{})}return t},Js=e=>{const{playSePageChange:t,playSeEnter:r}=vr();let n=wa.MenuPanel_button;return e.hasOwnProperty("buttonOnClassName")&&(n=n+e.buttonOnClassName),S.jsxs("div",{className:n,onClick:()=>{e.clickFunc(),t()},onMouseEnter:r,style:{color:e.tagColor},children:[S.jsx("div",{className:wa.MenuPanel_button_icon,children:S.jsx(Oce,{iconName:e.iconName,iconColor:e.iconColor})}),e.tagName]})},Ace="_main_15mmi_1",Pce="_button_15mmi_16",kce="_button_text_15mmi_23",Ice="_button_on_15mmi_31",Rce="_singleButton_15mmi_42",Nce="_fastSlPreview_15mmi_59",Lce="_fastSlEnter_15mmi_1",Mce="_fastsave_15mmi_73",Fce="_fastSPreview_15mmi_73",Dce="_fastload_15mmi_77",Bce="_fastLPreview_15mmi_77",jce="_slPreviewMain_15mmi_89",$ce="_imgContainer_15mmi_97",Uce="_textContainer_15mmi_105",he={main:Ace,button:Pce,button_text:kce,button_on:Ice,singleButton:Rce,fastSlPreview:Nce,fastSlEnter:Lce,fastsave:Mce,fastSPreview:Fce,fastload:Dce,fastLPreview:Bce,slPreviewMain:jce,imgContainer:$ce,textContainer:Uce},zR=e=>{const t=document.getElementById("Button_ControlPanel_auto");t&&(e?t.className=he.button_on:t.className=he.singleButton)},ub=()=>{O.gameplay.isAuto=!1,zR(!1),O.gameplay.autoInterval!==null&&(clearInterval(O.gameplay.autoInterval),O.gameplay.autoInterval=null),O.gameplay.autoTimeout!==null&&(clearTimeout(O.gameplay.autoTimeout),O.gameplay.autoTimeout=null)},HR=()=>{O.gameplay.isAuto?ub():(O.gameplay.isAuto=!0,zR(!0),O.gameplay.autoInterval=setInterval(zce,100))},Gce=()=>{Ut(),O.gameplay.autoTimeout=null},zce=()=>{const t=750-250*j.getState().userData.optionData.autoSpeed;let r=!1;O.gameplay.performController.performList.forEach(n=>{n.blockingAuto()&&(r=!0)}),!r&&O.gameplay.autoTimeout===null&&(O.gameplay.autoTimeout=setTimeout(Gce,t))},VR=e=>{const t=document.getElementById("Button_ControlPanel_fast");t&&(e?t.className=he.button_on:t.className=he.singleButton)},ja=()=>{qR()&&(O.gameplay.isFast=!1,VR(!1),O.gameplay.fastInterval!==null&&(clearInterval(O.gameplay.fastInterval),O.gameplay.fastInterval=null))},WR=()=>{qR()||(O.gameplay.isFast=!0,VR(!0),O.gameplay.fastInterval=setInterval(()=>{Ut()},vP.fast_timeout))},qR=function(){return O.gameplay.isFast},lb=()=>{ja(),ub()},XR=()=>{O.gameplay.isFast?ja():WR()},cb=()=>{const e=j.dispatch;nx(),ub(),ja(),e(Te({key:"playVocal",value:""})),e(Me({component:"showTitle",visibility:!0})),Ll(j.getState().GUI.titleBg)},Hce=()=>{const e=Tr("menu."),{playSeClick:t,playSeEnter:r}=vr(),n=Se(v=>v.GUI),i=or(),o=n.currentMenuTag===qe.Save?` ${wa.MenuPanel_button_hl}`:"",a=n.currentMenuTag===qe.Load?` ${wa.MenuPanel_button_hl}`:"",s=n.currentMenuTag===qe.Option?` ${wa.MenuPanel_button_hl}`:"",u=n.currentMenuTag===qe.Save?"rgba(74, 34, 93, 0.9)":"rgba(8, 8, 8, 0.3)",l=n.currentMenuTag===qe.Load?"rgba(11, 52, 110, 0.9)":"rgba(8, 8, 8, 0.3)",c=n.currentMenuTag===qe.Option?"rgba(81, 110, 65, 0.9)":"rgba(8, 8, 8, 0.3)",f=n.currentMenuTag===qe.Save?"rgba(74, 34, 93, 0.9)":"rgba(185, 185, 185, 1)",h=n.currentMenuTag===qe.Load?"rgba(11, 52, 110, 0.9)":"rgba(185, 185, 185, 1)",d=n.currentMenuTag===qe.Option?"rgba(81, 110, 65, 0.9)":"rgba(185, 185, 185, 1)";return S.jsxs("div",{className:wa.MenuPanel_main,children:[S.jsx(Js,{iconName:"save",buttonOnClassName:o,iconColor:f,tagColor:u,clickFunc:()=>{t(),!n.showTitle&&i(Oo(qe.Save))},tagName:e("saving.title")},"saveButton"),S.jsx(Js,{iconName:"load",buttonOnClassName:a,iconColor:h,tagColor:l,clickFunc:()=>{t(),i(Oo(qe.Load))},tagName:e("loadSaving.title")},"loadButton"),S.jsx(Js,{iconName:"option",buttonOnClassName:s,iconColor:d,tagColor:c,clickFunc:()=>{t(),i(Oo(qe.Option))},tagName:e("options.title")},"optionButton"),S.jsx(Js,{iconName:"title",clickFunc:()=>{t(),cb(),i(Me({component:"showMenuPanel",visibility:!1}))},tagName:e("title.title")},"titleIcon"),S.jsx(Js,{iconName:"exit",clickFunc:()=>{t(),i(Me({component:"showMenuPanel",visibility:!1}))},tagName:e("exit.title")},"exitIcon")]})},Vce="_Save_Load_main_16zg1_2",Wce="_Save_Load_top_16zg1_9",qce="_Elements_in_16zg1_1",Xce="_Save_Load_title_16zg1_17",Yce="_Save_title_text_16zg1_32",Kce="_Load_title_text_16zg1_40",Zce="_Save_Load_top_buttonList_16zg1_48",Qce="_Save_Load_top_button_16zg1_48",Jce="_Save_Load_top_button_text_16zg1_67",efe="_Save_Load_top_button_on_16zg1_78",tfe="_Load_top_button_on_16zg1_91",rfe="_Load_top_button_16zg1_91",nfe="_Save_Load_content_16zg1_104",ife="_Save_Load_content_element_16zg1_113",ofe="_Elements_in_transform_16zg1_1",afe="_Save_Load_content_element_top_16zg1_129",sfe="_Save_Load_content_element_top_index_16zg1_136",ufe="_Load_content_elememt_top_index_16zg1_145",lfe="_Save_Load_content_element_top_date_16zg1_149",cfe="_Load_content_element_top_date_16zg1_160",ffe="_Save_Load_content_text_16zg1_164",hfe="_Save_Load_content_text_padding_16zg1_178",dfe="_Save_Load_content_speaker_16zg1_182",pfe="_Load_content_speaker_16zg1_191",vfe="_Load_content_text_16zg1_195",mfe="_Save_Load_content_miniRen_16zg1_199",gfe="_Save_Load_content_miniRen_bg_16zg1_206",yfe="_Save_Load_content_miniRen_figure_16zg1_213",_fe="_Save_Load_content_miniRen_figLeft_16zg1_221",xfe="_Save_Load_content_miniRen_figRight_16zg1_226",xe={Save_Load_main:Vce,Save_Load_top:Wce,Elements_in:qce,Save_Load_title:Xce,Save_title_text:Yce,Load_title_text:Kce,Save_Load_top_buttonList:Zce,Save_Load_top_button:Qce,Save_Load_top_button_text:Jce,Save_Load_top_button_on:efe,Load_top_button_on:tfe,Load_top_button:rfe,Save_Load_content:nfe,Save_Load_content_element:ife,Elements_in_transform:ofe,Save_Load_content_element_top:afe,Save_Load_content_element_top_index:sfe,Load_content_elememt_top_index:ufe,Save_Load_content_element_top_date:lfe,Load_content_element_top_date:cfe,Save_Load_content_text:ffe,Save_Load_content_text_padding:hfe,Save_Load_content_speaker:dfe,Load_content_speaker:pfe,Load_content_text:vfe,Save_Load_content_miniRen:mfe,Save_Load_content_miniRen_bg:gfe,Save_Load_content_miniRen_figure:yfe,Save_Load_content_miniRen_figLeft:_fe,Save_Load_content_miniRen_figRight:xfe},bfe="_GlobalDialog_main_101j8_2",Sfe="_showGlobalDialog_101j8_1",wfe="_glabalDialog_container_inner_101j8_17",Efe="_glabalDialog_container_101j8_17",Tfe="_title_101j8_36",Cfe="_button_list_101j8_41",Ofe="_button_101j8_41",uo={GlobalDialog_main:bfe,showGlobalDialog:Sfe,glabalDialog_container_inner:wfe,glabalDialog_container:Efe,title:Tfe,button_list:Cfe,button:Ofe};function Afe(){const e=Se(t=>t.GUI.showGlobalDialog);return S.jsx(S.Fragment,{children:e&&S.jsx("div",{id:"globalDialogContainer"})})}function Ea(e){const{playSeClick:t,playSeEnter:r}=H0();j.dispatch(Me({component:"showGlobalDialog",visibility:!0}));const n=()=>{t(),e.leftFunc(),HT()},i=()=>{t(),e.rightFunc(),HT()},o=S.jsx("div",{className:uo.GlobalDialog_main,children:S.jsx("div",{className:uo.glabalDialog_container,children:S.jsxs("div",{className:uo.glabalDialog_container_inner,children:[S.jsx("div",{className:uo.title,children:e.title}),S.jsxs("div",{className:uo.button_list,children:[S.jsx("div",{className:uo.button,onClick:n,onMouseEnter:r,children:e.leftText}),S.jsx("div",{className:uo.button,onClick:i,onMouseEnter:r,children:e.rightText})]})]})})});setTimeout(()=>{Mn.render(o,document.getElementById("globalDialogContainer"))},100)}function HT(){j.dispatch(Me({component:"showGlobalDialog",visibility:!1}))}function Pfe(){j.dispatch(Me({component:"showControls",visibility:!0}))}function kfe(){j.dispatch(Me({component:"showControls",visibility:!1}))}function Ife(){j.getState().GUI.showControls===!0?kfe():Pfe()}const Rfe=()=>{const{playSePageChange:e,playSeEnter:t,playSeDialogOpen:r}=vr(),n=Se(p=>p.userData),i=or(),o=[];for(let p=1;p<=20;p++){let m=xe.Save_Load_top_button;p===n.optionData.slPage&&(m=m+" "+xe.Save_Load_top_button_on);const y=S.jsx("div",{onClick:()=>{i(hP(p)),Ke(),e()},onMouseEnter:t,className:m,children:S.jsx("div",{className:xe.Save_Load_top_button_text,children:p})},"Save_element_page"+p);o.push(y)}const{i18n:a}=gs(),u=a.language==="fr",l={fontSize:"150%",padding:"0 0.2em 0 0.2em",margin:"0 0 0 0.8em",letterSpacing:"0.05em"},c=Tr("common."),f=[],h=(n.optionData.slPage-1)*10+1,d=h+9;let v=0;for(let p=h;p<=d;p++){v++;const m=n.saveData[p];let y=S.jsx("div",{});if(m){const x=m.nowStageState.showName===""?" ":`${m.nowStageState.showName}`;y=S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:xe.Save_Load_content_element_top,children:[S.jsx("div",{className:xe.Save_Load_content_element_top_index,children:m.index}),S.jsx("div",{className:xe.Save_Load_content_element_top_date,children:m.saveTime})]}),S.jsx("div",{className:xe.Save_Load_content_miniRen,children:S.jsx("img",{className:xe.Save_Load_content_miniRen_bg,alt:"Save_img_preview",src:m.previewImage})}),S.jsxs("div",{className:xe.Save_Load_content_text,children:[S.jsx("div",{className:xe.Save_Load_content_speaker,children:x}),S.jsx("div",{className:xe.Save_Load_content_text_padding,children:m.nowStageState.showText})]})]})}const _=S.jsx("div",{onClick:()=>{n.saveData[p]?(r(),Ea({title:g("saving.isOverwrite"),leftText:c("yes"),rightText:c("no"),leftFunc:()=>{dg(p),Ke()},rightFunc:()=>{}})):(e(),dg(p))},onMouseEnter:t,className:xe.Save_Load_content_element,style:{animationDelay:`${v*30}ms`},children:y},"saveElement_"+p);f.push(_)}const g=Tr("menu.");return S.jsxs("div",{className:xe.Save_Load_main,children:[S.jsxs("div",{className:xe.Save_Load_top,children:[S.jsx("div",{className:xe.Save_Load_title,style:u?l:void 0,children:S.jsx("div",{className:xe.Save_title_text,children:g("saving.title")})}),S.jsx("div",{className:xe.Save_Load_top_buttonList,children:o})]}),S.jsx("div",{className:xe.Save_Load_content,id:"Save_content_page_"+n.optionData.slPage,children:f})]})},Nfe=()=>{const{playSeClick:e,playSeEnter:t,playSePageChange:r}=vr(),n=Se(g=>g.userData),i=or(),o=[];for(let g=1;g<=20;g++){let p=xe.Save_Load_top_button+" "+xe.Load_top_button;g===n.optionData.slPage&&(p=p+" "+xe.Save_Load_top_button_on+" "+xe.Load_top_button_on);const m=S.jsx("div",{onClick:()=>{i(hP(g)),Ke(),r()},onMouseEnter:t,className:p,children:S.jsx("div",{className:xe.Save_Load_top_button_text,children:g})},"Load_element_page"+g);o.push(m)}const{i18n:a}=gs(),u=a.language==="fr",l={fontSize:"150%",padding:"0 0.2em 0 0.2em",margin:"0 0 0 0.8em",letterSpacing:"0.05em"},c=[],f=(n.optionData.slPage-1)*10+1,h=f+9;let d=0;for(let g=f;g<=h;g++){d++;const p=n.saveData[g];let m=S.jsx("div",{});if(p){const _=p.nowStageState.showName===""?" ":`${p.nowStageState.showName}`;m=S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:xe.Save_Load_content_element_top,children:[S.jsx("div",{className:xe.Save_Load_content_element_top_index+" "+xe.Load_content_elememt_top_index,children:p.index}),S.jsx("div",{className:xe.Save_Load_content_element_top_date+" "+xe.Load_content_element_top_date,children:p.saveTime})]}),S.jsx("div",{className:xe.Save_Load_content_miniRen,children:S.jsx("img",{className:xe.Save_Load_content_miniRen_bg,alt:"Save_img_preview",src:p.previewImage})}),S.jsxs("div",{className:xe.Save_Load_content_text,children:[S.jsx("div",{className:xe.Save_Load_content_speaker+" "+xe.Load_content_speaker,children:_}),S.jsx("div",{className:xe.Save_Load_content_text_padding,children:p.nowStageState.showText})]})]})}const y=S.jsx("div",{onClick:()=>{uk(g),e()},onMouseEnter:t,className:xe.Save_Load_content_element,style:{animationDelay:`${d*30}ms`},children:m},"loadElement_"+g);c.push(y)}const v=Tr("menu.");return S.jsxs("div",{className:xe.Save_Load_main,children:[S.jsxs("div",{className:xe.Save_Load_top,children:[S.jsx("div",{className:xe.Save_Load_title,style:u?l:void 0,children:S.jsx("div",{className:xe.Load_title_text,children:v("loadSaving.title")})}),S.jsx("div",{className:xe.Save_Load_top_buttonList,children:o})]}),S.jsx("div",{className:xe.Save_Load_content,id:"Load_content_page_"+n.optionData.slPage,children:c})]})},Lfe="_Options_main_kotpu_2",Mfe="_Options_top_kotpu_10",Ffe="_Options_title_kotpu_17",Dfe="_Option_title_text_kotpu_26",Bfe="_Elements_in_kotpu_1",jfe="_Option_title_text_shadow_kotpu_35",$fe="_Option_title_text_ts_kotpu_42",Ufe="_Options_main_content_kotpu_49",Gfe="_Options_main_content_half_kotpu_56",zfe="_About_title_text_kotpu_66",Hfe="_About_text_kotpu_74",Vfe="_Options_page_container_kotpu_93",Wfe="_Options_button_list_kotpu_99",qfe="_Options_page_button_kotpu_103",Xfe="_Options_page_button_active_kotpu_115",ur={Options_main:Lfe,Options_top:Mfe,Options_title:Ffe,Option_title_text:Dfe,Elements_in:Bfe,Option_title_text_shadow:jfe,Option_title_text_ts:$fe,Options_main_content:Ufe,Options_main_content_half:Gfe,About_title_text:zfe,About_text:Hfe,Options_page_container:Vfe,Options_button_list:Wfe,Options_page_button:qfe,Options_page_button_active:Xfe},Yfe="_NormalOption_ogzuv_1",Kfe="_Elements_in_ogzuv_1",Zfe="_NormalOption_title_ogzuv_10",Qfe="_NormalOption_title_bef_ogzuv_19",Jfe="_NormalOption_title_sd_ogzuv_29",ehe="_NormalOption_buttonList_ogzuv_39",Kv={NormalOption:Yfe,Elements_in:Kfe,NormalOption_title:Zfe,NormalOption_title_bef:Qfe,NormalOption_title_sd:Jfe,NormalOption_buttonList:ehe},lr=e=>S.jsxs("div",{className:Kv.NormalOption,style:{width:e.full?"100%":"auto"},children:[S.jsx("div",{className:Kv.NormalOption_title,children:e.title}),S.jsx("div",{className:Kv.NormalOption_buttonList,style:{width:e.full?"100%":"auto"},children:e.children})]}),the="_NormalButton_1qk3b_1",rhe="_NormalButtonChecked_1qk3b_18",Zv={NormalButton:the,NormalButtonChecked:rhe},Oi=e=>{const t=e.textList.length,r=[],{playSeEnter:n,playSeSwitch:i}=vr();for(let o=0;o{i(),e.functionList[o]()},onMouseEnter:n,children:e.textList[o]},e.textList[o]+o+e);r.push(a)}else{const a=S.jsx("div",{className:Zv.NormalButton,onClick:()=>{i(),e.functionList[o]()},onMouseEnter:n,children:e.textList[o]},e.textList[o]+o);r.push(a)}return S.jsx(S.Fragment,{children:r})};function ws(e){const t=Se(e),r=$.useRef(t);return $.useEffect(()=>{r.current=t},[t]),r}function nhe(e){return Wo[e]}function YR(){const{i18n:e}=gs(),t=ws(n=>n.userData),r=or();return(n,i=!0)=>{var s;const o=n??((s=t.current)==null?void 0:s.optionData.language)??Wo.zhCn,a=nhe(o);e.changeLanguage(a),r(_t({key:"language",value:o})),ne.info("设置语言: "+a),window==null||window.localStorage.setItem("lang",o.toString()),i&&Ke()}}const ihe="_backButton_qbk37_1",ohe="_about_qbk37_16",ahe="_icon_qbk37_20",she="_title_qbk37_24",uhe="_text_qbk37_34",lhe="_contributor_qbk37_43",Ur={backButton:ihe,about:ohe,icon:ahe,title:she,text:uhe,contributor:lhe};function che(e){const t=Tr("menu.options.pages.system.options.about.");return S.jsxs("div",{className:Ur.about,children:[S.jsx("div",{className:Ur.backButton,onClick:e.onClose,children:S.jsx(mce,{className:Ur.icon,theme:"outline",size:"35",strokeWidth:3,fill:"#333"})}),S.jsx("div",{className:Ur.title,children:t("subTitle")}),S.jsx("div",{className:Ur.title,children:t("version")}),S.jsx("div",{className:Ur.text,children:MR.version}),S.jsx("div",{className:Ur.title,children:t("source")}),S.jsx("div",{className:Ur.text,children:S.jsx("a",{target:"_blank",href:"https://github.com/OpenWebGAL/WebGAL",children:"https://github.com/OpenWebGAL/WebGAL"})}),S.jsx("div",{className:Ur.title,children:t("contributors")}),S.jsx("div",{className:Ur.text,children:S.jsx("a",{target:"_blank",href:"https://github.com/OpenWebGAL/WebGAL/graphs/contributors",children:"https://github.com/OpenWebGAL/WebGAL/graphs/contributors"})}),S.jsx("div",{className:Ur.title,children:t("website")}),S.jsx("div",{className:Ur.text,children:S.jsx("a",{target:"_blank",href:"https://openwebgal.com/",children:"https://openwebgal.com/"})})]})}function fhe(){const e=Se(f=>f.userData),t=or(),r=YR(),n=Tr("menu.options.pages.system.options."),{playSeDialogOpen:i}=vr();function o(){Ke(),Df.getItem(O.gameKey).then(f=>{const h=JSON.stringify(f);if(h!==null){const d=new Blob([h],{type:"application/json"}),v=URL.createObjectURL(d),g=document.createElement("a");g.href=v,g.download="saves.json",g.click(),g.remove()}})}function a(){const f=document.createElement("input");f.type="file",f.onchange=c,f.click()}const[s,u]=$.useState(!1);function l(){u(!s)}function c(f){const h=f.target.files[0],d=new FileReader;d.onload=v=>{const g=v.target.result;try{const p=JSON.parse(g);i(),Ea({title:n("gameSave.dialogs.import.title"),leftText:n("$common.yes"),rightText:n("$common.no"),leftFunc:()=>{Df.setItem(O.gameKey,p).then(()=>{ne.info(n("gameSave.dialogs.import.tip"))}),el()},rightFunc:()=>{}})}catch(p){ne.error(n("gameSave.dialogs.import.error"),p)}},d.readAsText(h,"UTF-8")}return S.jsxs("div",{className:ur.Options_main_content_half,children:[s&&S.jsx(che,{onClose:l}),!s&&S.jsxs(S.Fragment,{children:[S.jsx(lr,{title:n("autoSpeed.title"),children:S.jsx(Oi,{textList:n("autoSpeed.options.slow","autoSpeed.options.medium","autoSpeed.options.fast"),functionList:[()=>{t(_t({key:"autoSpeed",value:fr.slow})),Ke()},()=>{t(_t({key:"autoSpeed",value:fr.normal})),Ke()},()=>{t(_t({key:"autoSpeed",value:fr.fast})),Ke()}],currentChecked:e.optionData.autoSpeed})},"option1"),S.jsx(lr,{title:n("language.title"),children:S.jsx(Oi,{currentChecked:e.optionData.language,textList:Object.values(Bf),functionList:Object.keys(Bf).map(f=>()=>r(Wo[f]))})},"option7"),S.jsx(lr,{title:n("resetData.title"),children:S.jsx(Oi,{textList:n("resetData.options.clearGameSave","resetData.options.resetSettings","resetData.options.clearAll"),functionList:[()=>{i(),Ea({title:n("resetData.dialogs.clearGameSave"),leftText:n("$common.yes"),rightText:n("$common.no"),leftFunc:()=>{t(b6()),Ou()},rightFunc:()=>{}})},()=>{i(),Ea({title:n("resetData.dialogs.resetSettings"),leftText:n("$common.yes"),rightText:n("$common.no"),leftFunc:()=>{t(x6()),Ou()},rightFunc:()=>{}})},()=>{i(),Ea({title:n("resetData.dialogs.clearAll"),leftText:n("$common.yes"),rightText:n("$common.no"),leftFunc:()=>{t(S6()),Ou()},rightFunc:()=>{}})}],currentChecked:3})},"option2"),S.jsx(lr,{title:n("gameSave.title"),children:S.jsx(Oi,{textList:n("gameSave.options.export","gameSave.options.import"),functionList:[o,a],currentChecked:2})},"option3"),S.jsx("div",{className:ur.About_title_text,onClick:l,children:S.jsx("span",{className:ur.About_text,children:n("about.title")})})]})]})}const hhe="_textPreviewMain_nolr3_1",dhe="_textbox_nolr3_8",VT={textPreviewMain:hhe,textbox:dhe};function KR(){const e=Se(r=>r.userData.optionData.textboxFont);function t(){return Mh(e).with(Ln.song,()=>'"思源宋体", serif').with(Ln.lxgw,()=>'"LXGW", serif').with(Ln.hei,()=>'"WebgalUI", serif').default(()=>'"WebgalUI", serif')}return t()}function Ky(e){switch(e){case 0:return 150;case 1:return 205;case 2:return 240;default:return 205}}const phe="_TextBox_EventHandler_1fi2w_1",vhe="_TextBox_main_1fi2w_9",mhe="_showSoftly_1fi2w_1",ghe="_TextBox_showName_1fi2w_28",yhe="_TextBox_textElement_start_1fi2w_44",_he="_TextDelayShow_1fi2w_1",xhe="_outer_1fi2w_50",bhe="_inner_1fi2w_62",She="_zhanwei_1fi2w_71",whe="_TextBox_textElement_Settled_1fi2w_76",Ehe="_miniAvatarContainer_1fi2w_89",The="_miniAvatarImg_1fi2w_98",Che="_nameContainer_1fi2w_106",Ohe="_outerName_1fi2w_112",Ahe="_innerName_1fi2w_123",Phe="_text_1fi2w_130",Gt={TextBox_EventHandler:phe,TextBox_main:vhe,showSoftly:mhe,TextBox_showName:ghe,TextBox_textElement_start:yhe,TextDelayShow:_he,outer:xhe,inner:bhe,zhanwei:She,TextBox_textElement_Settled:whe,miniAvatarContainer:Ehe,miniAvatarImg:The,nameContainer:Che,outerName:Ohe,innerName:Ahe,text:Phe};function oh(e){const{textArray:t,textDelay:r,currentConcatDialogPrev:n,currentDialogKey:i,isText:o,isSafari:a,isFirefox:s,fontSize:u,miniAvatar:l,showName:c,font:f,textDuration:h,textSizeState:d,isUseStroke:v,textboxOpacity:g}=e,p=l!=="";$.useEffect(()=>{function b(){[...document.querySelectorAll(".Textelement_start")].forEach(k=>{k.className=Gt.TextBox_textElement_Settled})}return O.eventBus.on("text-settle",b),()=>{O.eventBus.off("text-settle",b)}},[]);const m=t.map((b,w)=>{let T=w*r,k=n.length;return n!==""&&w>=k&&(T=T-k*r),wS.jsx("span",{style:{position:"relative"},children:S.jsxs("span",{className:Gt.zhanwei,children:[b,S.jsx("span",{className:Gt.outer,children:b}),v&&S.jsx("span",{className:Gt.inner,children:b})]})},b+w))},c),S.jsx("div",{className:Gt.text,style:{fontSize:u,wordBreak:a||s?"break-all":void 0,display:a?"flex":void 0,flexWrap:a?"wrap":void 0,overflow:"hidden",paddingLeft:"0.1em",WebkitLineClamp:e.lineLimit},children:m})]})})}const khe="_TextBox_EventHandler_ujldp_1",Ihe="_TextBox_main_ujldp_9",Rhe="_showSoftly_ujldp_1",Nhe="_TextBox_textElement_start_ujldp_39",Lhe="_TextDelayShow_ujldp_1",Mhe="_outer_ujldp_45",Fhe="_inner_ujldp_57",Dhe="_zhanwei_ujldp_66",Bhe="_TextBox_textElement_Settled_ujldp_71",jhe="_TextBox_showName_ujldp_76",$he="_miniAvatarContainer_ujldp_95",Uhe="_miniAvatarImg_ujldp_105",Ghe="_nameContainer_ujldp_113",zhe="_outerName_ujldp_119",Hhe="_innerName_ujldp_130",Vhe="_text_ujldp_137",zt={TextBox_EventHandler:khe,TextBox_main:Ihe,showSoftly:Rhe,TextBox_textElement_start:Nhe,TextDelayShow:Lhe,outer:Mhe,inner:Fhe,zhanwei:Dhe,TextBox_textElement_Settled:Bhe,TextBox_showName:jhe,miniAvatarContainer:$he,miniAvatarImg:Uhe,nameContainer:Ghe,outerName:zhe,innerName:Hhe,text:Vhe};function ZR(e){const{textArray:t,textDelay:r,currentConcatDialogPrev:n,currentDialogKey:i,isText:o,isSafari:a,isFirefox:s,fontSize:u,miniAvatar:l,showName:c,font:f,textDuration:h,isUseStroke:d,textboxOpacity:v}=e;$.useEffect(()=>{function p(){[...document.querySelectorAll(".Textelement_start")].forEach(_=>{_.className=zt.TextBox_textElement_Settled})}return O.eventBus.on("text-settle",p),()=>{O.eventBus.off("text-settle",p)}},[]);const g=t.map((p,m)=>{let y=m*r,_=n.length;return n!==""&&m>=_&&(y=y-_*r),m<_?S.jsx("span",{id:`${y}`,className:zt.TextBox_textElement_Settled,style:{animationDelay:`${y}ms`,animationDuration:`${h}ms`},children:S.jsxs("span",{className:zt.zhanwei,children:[p,S.jsx("span",{className:zt.outer,children:p}),d&&S.jsx("span",{className:zt.inner,children:p})]})},i+m):S.jsx("span",{"data-text":p,id:`${y}`,className:`${zt.TextBox_textElement_start} Textelement_start`,style:{animationDelay:`${y}ms`,position:"relative"},children:S.jsxs("span",{className:zt.zhanwei,children:[p,S.jsx("span",{className:zt.outer,children:p}),d&&S.jsx("span",{className:zt.inner,children:p})]})},i+m)});return S.jsx(S.Fragment,{children:o&&S.jsxs("div",{id:"textBoxMain",className:zt.TextBox_main,style:{fontFamily:f,left:l===""?25:void 0,background:`linear-gradient( +| iOS ユーザーは横画面での使用をお勧めします`),gde("./game/userStyleSheet.css"),yde(),ure("./game/config.txt");const e=jr("start.txt",Br.scene);ri(e).then(t=>{O.sceneManager.sceneData.currentScene=ni(t,"start.txt",e);const r=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(e);const n=Yl(r);Kl(n)}),O.gameplay.pixiStage=new pde,cre(),fre()};function gde(e){const t=document.createElement("link");t.type="text/css",t.rel="stylesheet",t.href=e,document.getElementsByTagName("head")[0].appendChild(t)}function yde(){dl.get("./game/animation/animationTable.json").then(e=>{const t=e.data;for(const r of t)dl.get(`./game/animation/${r}.json`).then(n=>{if(n.data){const i={name:r,effects:n.data};O.animationManager.addAnimation(i)}})})}const _de="_Menu_main_1a7i6_1",xde="_Menu_ShowSoftly_1a7i6_1",bde="_Menu_TagContent_1a7i6_10",NC={Menu_main:_de,Menu_ShowSoftly:xde,Menu_TagContent:bde},Sde="_MenuPanel_main_1c9ky_1",wde="_MenuPanel_button_1c9ky_10",Ede="_MenuPanel_button_icon_1c9ky_38",Tde="_MenuPanel_button_hl_1c9ky_44",Fa={MenuPanel_main:Sde,MenuPanel_button:wde,MenuPanel_button_icon:Ede,MenuPanel_button_hl:Tde};var Cde=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function LC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function MC(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Pde(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}var kde={size:"1em",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",rtl:!1,theme:"outline",colors:{outline:{fill:"#333",background:"transparent"},filled:{fill:"#333",background:"#FFF"},twoTone:{fill:"#333",twoTone:"#2F88FF"},multiColor:{outStrokeColor:"#333",outFillColor:"#2F88FF",innerStrokeColor:"#FFF",innerFillColor:"#43CCF8"}},prefix:"i"};function Ide(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function Rde(e,t,r){var n=typeof t.fill=="string"?[t.fill]:t.fill||[],i=[],o=t.theme||r.theme;switch(o){case"outline":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("none"),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("none");break;case"filled":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("#FFF"),i.push("#FFF");break;case"two-tone":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.twoTone.twoTone),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.twoTone.twoTone);break;case"multi-color":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.multiColor.outFillColor),i.push(typeof n[2]=="string"?n[2]:r.colors.multiColor.innerStrokeColor),i.push(typeof n[3]=="string"?n[3]:r.colors.multiColor.innerFillColor);break}return{size:t.size||r.size,strokeWidth:t.strokeWidth||r.strokeWidth,strokeLinecap:t.strokeLinecap||r.strokeLinecap,strokeLinejoin:t.strokeLinejoin||r.strokeLinejoin,colors:i,id:e}}var VN=$.createContext(kde);VN.Provider;function dt(e,t,r){return function(n){var i=n.size,o=n.strokeWidth,a=n.strokeLinecap,s=n.strokeLinejoin,u=n.theme,l=n.fill,c=n.className,f=n.spin,h=Ade(n,Cde),d=$.useContext(VN),v=$.useMemo(Ide,[]),g=Rde(v,{size:i,strokeWidth:o,strokeLinecap:a,strokeLinejoin:s,theme:u,fill:l},d),p=[d.prefix+"-icon"];return p.push(d.prefix+"-icon-"+e),t&&d.rtl&&p.push(d.prefix+"-icon-rtl"),f&&p.push(d.prefix+"-icon-spin"),c&&p.push(c),Y.createElement("span",MC(MC({},h),{},{className:p.join(" ")}),r(g))}}const Nde=dt("align-text-left-one",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M39 6H9C7.34315 6 6 7.34315 6 9V39C6 40.6569 7.34315 42 9 42H39C40.6569 42 42 40.6569 42 39V9C42 7.34315 40.6569 6 39 6Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M26 24H14",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M34 15H14",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M32 33H14",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),WN=dt("close-small",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M14 14L34 34",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 34L34 14",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Lde=dt("double-down",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M36 12L24 24L12 12",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M36 24L24 36L12 24",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Mde=dt("double-right",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M12 12L24 24L12 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 12L36 24L24 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Fde=dt("double-up",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M12 24L24 12L36 24",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M12 36L24 24L36 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),qN=dt("folder-open",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M4 9V41L9 21H39.5V15C39.5 13.8954 38.6046 13 37.5 13H24L19 7H6C4.89543 7 4 7.89543 4 9Z",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M40 41L44 21H8.8125L4 41H40Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Dde=dt("go-end",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M14 12L26 24L14 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M34 12V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Bde=dt("go-start",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M34 36L22 24L34 12",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 12V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),jde=dt("hamburger-button",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M7.94971 11.9497H39.9497",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M7.94971 23.9497H39.9497",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M7.94971 35.9497H39.9497",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),XN=dt("home",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M9 18V42H39V18L24 6L9 18Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M19 29V42H29V29H19Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M9 42H39",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}))}),$de=dt("left",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M31 36L19 24L31 12",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Ude=dt("lock",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("rect",{x:"6",y:"22",width:"36",height:"22",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 22V14C14 8.47715 18.4772 4 24 4C29.5228 4 34 8.47715 34 14V22",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 30V36",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Gde=dt("logout",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M23.9917 6H6V42H24",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M33 33L42 24L33 15",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M16 23.9917H42",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),zde=dt("music-list",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M24 19H40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 10H40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M8 38H40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M8 28H40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M8 10L16 15L8 20V10Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),YN=dt("play-one",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M15 24V11.8756L25.5 17.9378L36 24L25.5 30.0622L15 36.1244V24Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),Hde=dt("preview-close-one",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M9.85786 18C6.23858 21 4 24 4 24C4 24 12.9543 36 24 36C25.3699 36 26.7076 35.8154 28 35.4921M20.0318 12.5C21.3144 12.1816 22.6414 12 24 12C35.0457 12 44 24 44 24C44 24 41.7614 27 38.1421 30",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M20.3142 20.6211C19.4981 21.5109 19 22.6972 19 23.9998C19 26.7612 21.2386 28.9998 24 28.9998C25.3627 28.9998 26.5981 28.4546 27.5 27.5705",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M42 42L6 6",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Vde=dt("preview-open",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M24 36C35.0457 36 44 24 44 24C44 24 35.0457 12 24 12C12.9543 12 4 24 4 24C4 24 12.9543 36 24 36Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 29C26.7614 29 29 26.7614 29 24C29 21.2386 26.7614 19 24 19C21.2386 19 19 21.2386 19 24C19 26.7614 21.2386 29 24 29Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),Wde=dt("replay-music",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M21 24V18L26 21L31 24L26 27L21 30V24Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M11.2721 36.7279C14.5294 39.9853 19.0294 42 24 42C33.9411 42 42 33.9411 42 24C42 14.0589 33.9411 6 24 6C19.0294 6 14.5294 8.01472 11.2721 11.2721C9.6141 12.9301 6 17 6 17",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M6 9V17H14",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),qde=dt("return",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M6 14H28.9938C35.8768 14 41.7221 19.6204 41.9904 26.5C42.2739 33.7696 36.2671 40 28.9938 40H11.9984",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),KN=dt("save",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M6 9C6 7.34315 7.34315 6 9 6H34.2814L42 13.2065V39C42 40.6569 40.6569 42 39 42H9C7.34315 42 6 40.6569 6 39V9Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.0083 6L24 13.3846C24 13.7245 23.5523 14 23 14H15C14.4477 14 14 13.7245 14 13.3846L14 6",fill:e.colors[3]}),Y.createElement("path",{d:"M24.0083 6L24 13.3846C24 13.7245 23.5523 14 23 14H15C14.4477 14 14 13.7245 14 13.3846L14 6H24.0083Z",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M9 6H34.2814",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 26H34",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 34H24.0083",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),ZN=dt("setting-two",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M18.2838 43.1713C14.9327 42.1736 11.9498 40.3213 9.58787 37.867C10.469 36.8227 11 35.4734 11 34.0001C11 30.6864 8.31371 28.0001 5 28.0001C4.79955 28.0001 4.60139 28.01 4.40599 28.0292C4.13979 26.7277 4 25.3803 4 24.0001C4 21.9095 4.32077 19.8938 4.91579 17.9995C4.94381 17.9999 4.97188 18.0001 5 18.0001C8.31371 18.0001 11 15.3138 11 12.0001C11 11.0488 10.7786 10.1493 10.3846 9.35011C12.6975 7.1995 15.5205 5.59002 18.6521 4.72314C19.6444 6.66819 21.6667 8.00013 24 8.00013C26.3333 8.00013 28.3556 6.66819 29.3479 4.72314C32.4795 5.59002 35.3025 7.1995 37.6154 9.35011C37.2214 10.1493 37 11.0488 37 12.0001C37 15.3138 39.6863 18.0001 43 18.0001C43.0281 18.0001 43.0562 17.9999 43.0842 17.9995C43.6792 19.8938 44 21.9095 44 24.0001C44 25.3803 43.8602 26.7277 43.594 28.0292C43.3986 28.01 43.2005 28.0001 43 28.0001C39.6863 28.0001 37 30.6864 37 34.0001C37 35.4734 37.531 36.8227 38.4121 37.867C36.0502 40.3213 33.0673 42.1736 29.7162 43.1713C28.9428 40.752 26.676 39.0001 24 39.0001C21.324 39.0001 19.0572 40.752 18.2838 43.1713Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 31C27.866 31 31 27.866 31 24C31 20.134 27.866 17 24 17C20.134 17 17 20.134 17 24C17 27.866 20.134 31 24 31Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),Xde=dt("square-small",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M34 12H14C12.8954 12 12 12.8954 12 14V34C12 35.1046 12.8954 36 14 36H34C35.1046 36 36 35.1046 36 34V14C36 12.8954 35.1046 12 34 12Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}))}),Yde=dt("unlock",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("rect",{x:"7",y:"22.0476",width:"34",height:"22",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 22V14.0047C13.9948 8.87022 17.9227 4.56718 23.0859 4.05117C28.249 3.53516 32.9673 6.97408 34 12.0059",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 30V36",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Kde=dt("volume-notice",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M24 6V42C17 42 11.7985 32.8391 11.7985 32.8391H6C4.89543 32.8391 4 31.9437 4 30.8391V17.0108C4 15.9062 4.89543 15.0108 6 15.0108H11.7985C11.7985 15.0108 17 6 24 6Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M32 15L32 15C32.6232 15.5565 33.1881 16.1797 33.6841 16.8588C35.1387 18.8504 36 21.3223 36 24C36 26.6545 35.1535 29.1067 33.7218 31.0893C33.2168 31.7885 32.6391 32.4293 32 33",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M34.2359 41.1857C40.0836 37.6953 44 31.305 44 24C44 16.8085 40.2043 10.5035 34.507 6.97906",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}))}),Zde=e=>{let t;switch(e.iconName){case"save":t=S.jsx(KN,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"load":t=S.jsx(qN,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"option":t=S.jsx(ZN,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"title":t=S.jsx(XN,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"exit":t=S.jsx(Gde,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;default:t=S.jsx("div",{})}return t},vu=e=>{const{playSePageChange:t,playSeEnter:r}=_r();let n=Fa.MenuPanel_button;return e.hasOwnProperty("buttonOnClassName")&&(n=n+e.buttonOnClassName),S.jsxs("div",{className:n,onClick:()=>{e.clickFunc()},onMouseEnter:r,style:{...e.style,color:e.tagColor},children:[S.jsx("div",{className:Fa.MenuPanel_button_icon,children:S.jsx(Zde,{iconName:e.iconName,iconColor:e.iconColor})}),e.tagName]})},Wb=()=>{const e=B.dispatch;Fx(),zx(),Za(),e(Ee({key:"playVocal",value:""})),e(Me({component:"showTitle",visibility:!0})),ec(B.getState().GUI.titleBg)},Qde="_GlobalDialog_main_101j8_2",Jde="_showGlobalDialog_101j8_1",epe="_glabalDialog_container_inner_101j8_17",tpe="_glabalDialog_container_101j8_17",rpe="_title_101j8_36",npe="_button_list_101j8_41",ipe="_button_101j8_41",xo={GlobalDialog_main:Qde,showGlobalDialog:Jde,glabalDialog_container_inner:epe,glabalDialog_container:tpe,title:rpe,button_list:npe,button:ipe};function ope(){const e=ye(t=>t.GUI.showGlobalDialog);return S.jsx(S.Fragment,{children:e&&S.jsx("div",{id:"globalDialogContainer"})})}function Do(e){const{playSeClick:t,playSeEnter:r}=Sx();B.dispatch(Me({component:"showGlobalDialog",visibility:!0}));const n=()=>{t(),e.leftFunc(),FC()},i=()=>{t(),e.rightFunc(),FC()},o=S.jsx("div",{className:xo.GlobalDialog_main,children:S.jsx("div",{className:xo.glabalDialog_container,children:S.jsxs("div",{className:xo.glabalDialog_container_inner,children:[S.jsx("div",{className:xo.title,children:e.title}),S.jsxs("div",{className:xo.button_list,children:[S.jsx("div",{className:xo.button,onClick:n,onMouseEnter:r,children:e.leftText}),S.jsx("div",{className:xo.button,onClick:i,onMouseEnter:r,children:e.rightText})]})]})})});setTimeout(()=>{qn.render(o,document.getElementById("globalDialogContainer"))},100)}function FC(){B.dispatch(Me({component:"showGlobalDialog",visibility:!1}))}function ape(){B.dispatch(Me({component:"showControls",visibility:!0}))}function spe(){B.dispatch(Me({component:"showControls",visibility:!1}))}function upe(){B.getState().GUI.showControls===!0?spe():ape()}const lpe=()=>{const e=kr("menu."),{playSeClick:t,playSeDialogOpen:r,playSePageChange:n}=_r(),i=ye(g=>g.GUI),o=Ht(),a=i.currentMenuTag===Ze.Save?` ${Fa.MenuPanel_button_hl}`:"",s=i.currentMenuTag===Ze.Load?` ${Fa.MenuPanel_button_hl}`:"",u=i.currentMenuTag===Ze.Option?` ${Fa.MenuPanel_button_hl}`:"",l=i.currentMenuTag===Ze.Save?"rgba(74, 34, 93, 0.9)":"rgba(123,144,169,1)",c=i.currentMenuTag===Ze.Load?"rgba(11, 52, 110, 0.9)":"rgba(123,144,169,1)",f=i.currentMenuTag===Ze.Option?"rgba(81, 110, 65, 0.9)":"rgba(123,144,169,1)",h=i.currentMenuTag===Ze.Save?"rgba(74, 34, 93, 0.9)":"rgba(123,144,169,1)",d=i.currentMenuTag===Ze.Load?"rgba(11, 52, 110, 0.9)":"rgba(123,144,169,1)",v=i.currentMenuTag===Ze.Option?"rgba(81, 110, 65, 0.9)":"rgba(123,144,169,1)";return S.jsxs("div",{className:Fa.MenuPanel_main,children:[S.jsx(vu,{iconName:"save",buttonOnClassName:a,iconColor:h,tagColor:l,clickFunc:()=>{n(),!i.showTitle&&o(jo(Ze.Save))},tagName:e("saving.title")},"saveButton"),S.jsx(vu,{iconName:"load",buttonOnClassName:s,iconColor:d,tagColor:c,clickFunc:()=>{n(),o(jo(Ze.Load))},tagName:e("loadSaving.title")},"loadButton"),S.jsx(vu,{iconName:"title",iconColor:"rgba(123,144,169,1)",tagColor:"rgba(123,144,169,1)",clickFunc:()=>{r(),Do({title:e("$gaming.buttons.titleTips"),leftText:e("$common.yes"),rightText:e("$common.no"),leftFunc:()=>{Wb(),o(Me({component:"showMenuPanel",visibility:!1}))},rightFunc:()=>{}})},tagName:e("title.title")},"titleIcon"),S.jsx(vu,{iconName:"option",style:{marginLeft:"auto"},buttonOnClassName:u,iconColor:v,tagColor:f,clickFunc:()=>{n(),o(jo(Ze.Option))},tagName:e("options.title")},"optionButton"),S.jsx(vu,{iconName:"exit",iconColor:"rgba(123,144,169,1)",tagColor:"rgba(123,144,169,1)",clickFunc:()=>{t(),o(Me({component:"showMenuPanel",visibility:!1}))},tagName:e("exit.title")},"exitIcon")]})},cpe="_Save_Load_main_a3o8b_2",fpe="_Save_Load_top_a3o8b_9",hpe="_Elements_in_a3o8b_1",dpe="_Save_Load_title_a3o8b_17",ppe="_Save_title_text_a3o8b_35",vpe="_Load_title_text_a3o8b_43",mpe="_Save_Load_top_buttonList_a3o8b_51",gpe="_Save_Load_top_button_a3o8b_51",ype="_Save_Load_top_button_text_a3o8b_69",_pe="_Save_Load_top_button_on_a3o8b_80",xpe="_Load_top_button_on_a3o8b_93",bpe="_Load_top_button_a3o8b_93",Spe="_Save_Load_content_a3o8b_106",wpe="_Save_Load_content_element_a3o8b_115",Epe="_Elements_in_transform_a3o8b_1",Tpe="_Save_Load_content_element_top_a3o8b_131",Cpe="_Save_Load_content_element_top_index_a3o8b_138",Ope="_Load_content_elememt_top_index_a3o8b_147",Ape="_Save_Load_content_element_top_date_a3o8b_151",Ppe="_Load_content_element_top_date_a3o8b_162",kpe="_Save_Load_content_text_a3o8b_166",Ipe="_Save_Load_content_text_padding_a3o8b_180",Rpe="_Save_Load_content_speaker_a3o8b_184",Npe="_Load_content_speaker_a3o8b_193",Lpe="_Load_content_text_a3o8b_197",Mpe="_Save_Load_content_miniRen_a3o8b_201",Fpe="_Save_Load_content_miniRen_bg_a3o8b_208",Dpe="_Save_Load_content_miniRen_figure_a3o8b_215",Bpe="_Save_Load_content_miniRen_figLeft_a3o8b_223",jpe="_Save_Load_content_miniRen_figRight_a3o8b_228",xe={Save_Load_main:cpe,Save_Load_top:fpe,Elements_in:hpe,Save_Load_title:dpe,Save_title_text:ppe,Load_title_text:vpe,Save_Load_top_buttonList:mpe,Save_Load_top_button:gpe,Save_Load_top_button_text:ype,Save_Load_top_button_on:_pe,Load_top_button_on:xpe,Load_top_button:bpe,Save_Load_content:Spe,Save_Load_content_element:wpe,Elements_in_transform:Epe,Save_Load_content_element_top:Tpe,Save_Load_content_element_top_index:Cpe,Load_content_elememt_top_index:Ope,Save_Load_content_element_top_date:Ape,Load_content_element_top_date:Ppe,Save_Load_content_text:kpe,Save_Load_content_text_padding:Ipe,Save_Load_content_speaker:Rpe,Load_content_speaker:Npe,Load_content_text:Lpe,Save_Load_content_miniRen:Mpe,Save_Load_content_miniRen_bg:Fpe,Save_Load_content_miniRen_figure:Dpe,Save_Load_content_miniRen_figLeft:Bpe,Save_Load_content_miniRen_figRight:jpe},$pe=()=>{const{playSePageChange:e,playSeEnter:t,playSeDialogOpen:r}=_r(),n=ye(h=>h.userData),i=Ht(),o=[];for(let h=1;h<=20;h++){let d=xe.Save_Load_top_button;h===n.optionData.slPage&&(d=d+" "+xe.Save_Load_top_button_on);const v=S.jsx("div",{onClick:()=>{i(t2(h)),$e(),e()},onMouseEnter:t,className:d,children:S.jsx("div",{className:xe.Save_Load_top_button_text,children:h})},"Save_element_page"+h);o.push(v)}const a=kr("common."),s=[],u=(n.optionData.slPage-1)*10+1,l=u+9;let c=0;for(let h=u;h<=l;h++){c++;const d=n.saveData[h];let v=S.jsx("div",{});if(d){const p=d.nowStageState.showName===""?" ":`${d.nowStageState.showName}`;v=S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:xe.Save_Load_content_element_top,children:[S.jsx("div",{className:xe.Save_Load_content_element_top_index,children:d.index}),S.jsx("div",{className:xe.Save_Load_content_element_top_date,children:d.saveTime})]}),S.jsx("div",{className:xe.Save_Load_content_miniRen,children:S.jsx("img",{className:xe.Save_Load_content_miniRen_bg,alt:"Save_img_preview",src:d.previewImage})}),S.jsxs("div",{className:xe.Save_Load_content_text,children:[S.jsx("div",{className:xe.Save_Load_content_speaker,children:p}),S.jsx("div",{className:xe.Save_Load_content_text_padding,children:d.nowStageState.showText})]})]})}const g=S.jsx("div",{onClick:()=>{n.saveData[h]?(r(),Do({title:f("saving.isOverwrite"),leftText:a("yes"),rightText:a("no"),leftFunc:()=>{Hg(h),$e()},rightFunc:()=>{}})):(e(),Hg(h))},onMouseEnter:t,className:xe.Save_Load_content_element,style:{animationDelay:`${c*30}ms`},children:v},"saveElement_"+h);s.push(g)}const f=kr("menu.");return S.jsxs("div",{className:xe.Save_Load_main,children:[S.jsxs("div",{className:xe.Save_Load_top,children:[S.jsx("div",{className:xe.Save_Load_title,children:S.jsx("div",{className:xe.Save_title_text,children:f("saving.title")})}),S.jsx("div",{className:xe.Save_Load_top_buttonList,children:o})]}),S.jsx("div",{className:xe.Save_Load_content,id:"Save_content_page_"+n.optionData.slPage,children:s})]})},Upe=()=>{const{playSeClick:e,playSeEnter:t,playSePageChange:r}=_r(),n=ye(f=>f.userData),i=Ht(),o=[];for(let f=1;f<=20;f++){let h=xe.Save_Load_top_button+" "+xe.Load_top_button;f===n.optionData.slPage&&(h=h+" "+xe.Save_Load_top_button_on+" "+xe.Load_top_button_on);const d=S.jsx("div",{onClick:()=>{i(t2(f)),$e(),r()},onMouseEnter:t,className:h,children:S.jsx("div",{className:xe.Save_Load_top_button_text,children:f})},"Load_element_page"+f);o.push(d)}const a=[],s=(n.optionData.slPage-1)*10+1,u=s+9;let l=0;for(let f=s;f<=u;f++){l++;const h=n.saveData[f];let d=S.jsx("div",{});if(h){const g=h.nowStageState.showName===""?" ":`${h.nowStageState.showName}`;d=S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:xe.Save_Load_content_element_top,children:[S.jsx("div",{className:xe.Save_Load_content_element_top_index+" "+xe.Load_content_elememt_top_index,children:h.index}),S.jsx("div",{className:xe.Save_Load_content_element_top_date+" "+xe.Load_content_element_top_date,children:h.saveTime})]}),S.jsx("div",{className:xe.Save_Load_content_miniRen,children:S.jsx("img",{className:xe.Save_Load_content_miniRen_bg,alt:"Save_img_preview",src:h.previewImage})}),S.jsxs("div",{className:xe.Save_Load_content_text,children:[S.jsx("div",{className:xe.Save_Load_content_speaker+" "+xe.Load_content_speaker,children:g}),S.jsx("div",{className:xe.Save_Load_content_text_padding,children:h.nowStageState.showText})]})]})}const v=S.jsx("div",{onClick:()=>{Qk(f),e()},onMouseEnter:t,className:xe.Save_Load_content_element,style:{animationDelay:`${l*30}ms`},children:d},"loadElement_"+f);a.push(v)}const c=kr("menu.");return S.jsxs("div",{className:xe.Save_Load_main,children:[S.jsxs("div",{className:xe.Save_Load_top,children:[S.jsx("div",{className:xe.Save_Load_title,children:S.jsx("div",{className:xe.Load_title_text,children:c("loadSaving.title")})}),S.jsx("div",{className:xe.Save_Load_top_buttonList,children:o})]}),S.jsx("div",{className:xe.Save_Load_content,id:"Load_content_page_"+n.optionData.slPage,children:a})]})},Gpe="_Options_main_u5orq_2",zpe="_Options_top_u5orq_9",Hpe="_Options_title_u5orq_16",Vpe="_Option_title_text_u5orq_25",Wpe="_Elements_in_u5orq_1",qpe="_Option_title_text_shadow_u5orq_34",Xpe="_Option_title_text_ts_u5orq_41",Ype="_Options_main_content_u5orq_48",Kpe="_Options_main_content_half_u5orq_55",Zpe="_About_title_text_u5orq_65",Qpe="_About_text_u5orq_73",Jpe="_Options_page_container_u5orq_92",eve="_Options_button_list_u5orq_98",tve="_Options_page_button_u5orq_102",rve="_Options_page_button_active_u5orq_114",dr={Options_main:Gpe,Options_top:zpe,Options_title:Hpe,Option_title_text:Vpe,Elements_in:Wpe,Option_title_text_shadow:qpe,Option_title_text_ts:Xpe,Options_main_content:Ype,Options_main_content_half:Kpe,About_title_text:Zpe,About_text:Qpe,Options_page_container:Jpe,Options_button_list:eve,Options_page_button:tve,Options_page_button_active:rve},nve="_NormalOption_ogzuv_1",ive="_Elements_in_ogzuv_1",ove="_NormalOption_title_ogzuv_10",ave="_NormalOption_title_bef_ogzuv_19",sve="_NormalOption_title_sd_ogzuv_29",uve="_NormalOption_buttonList_ogzuv_39",Am={NormalOption:nve,Elements_in:ive,NormalOption_title:ove,NormalOption_title_bef:ave,NormalOption_title_sd:sve,NormalOption_buttonList:uve},ar=e=>S.jsxs("div",{className:Am.NormalOption,style:{width:e.full?"100%":"auto"},children:[S.jsx("div",{className:Am.NormalOption_title,children:e.title}),S.jsx("div",{className:Am.NormalOption_buttonList,style:{width:e.full?"100%":"auto"},children:e.children})]}),lve="_NormalButton_1qk3b_1",cve="_NormalButtonChecked_1qk3b_18",Pm={NormalButton:lve,NormalButtonChecked:cve},yi=e=>{const t=e.textList.length,r=[],{playSeEnter:n,playSeSwitch:i}=_r();for(let o=0;o{i(),e.functionList[o]()},onMouseEnter:n,children:e.textList[o]},e.textList[o]+o+e);r.push(a)}else{const a=S.jsx("div",{className:Pm.NormalButton,onClick:()=>{i(),e.functionList[o]()},onMouseEnter:n,children:e.textList[o]},e.textList[o]+o);r.push(a)}return S.jsx(S.Fragment,{children:r})};function fve(e){return ia[e]}function QN(){const{i18n:e}=Ud(),t=Ns(n=>n.userData),r=Ht();return(n,i=!0)=>{var s;const o=n??((s=t.current)==null?void 0:s.optionData.language)??ia.zhCn,a=fve(o);e.changeLanguage(a),r(ot({key:"language",value:o})),ne.info("设置语言: "+a),window==null||window.localStorage.setItem("lang",o.toString()),i&&$e()}}const hve="_backButton_qbk37_1",dve="_about_qbk37_16",pve="_icon_qbk37_20",vve="_title_qbk37_24",mve="_text_qbk37_34",gve="_contributor_qbk37_43",Xr={backButton:hve,about:dve,icon:pve,title:vve,text:mve,contributor:gve};function yve(e){const t=kr("menu.options.pages.system.options.about.");return S.jsxs("div",{className:Xr.about,children:[S.jsx("div",{className:Xr.backButton,onClick:e.onClose,children:S.jsx($de,{className:Xr.icon,theme:"outline",size:"35",strokeWidth:3,fill:"#333"})}),S.jsx("div",{className:Xr.title,children:t("subTitle")}),S.jsx("div",{className:Xr.title,children:t("version")}),S.jsx("div",{className:Xr.text,children:HN.version}),S.jsx("div",{className:Xr.title,children:t("source")}),S.jsx("div",{className:Xr.text,children:S.jsx("a",{target:"_blank",href:"https://github.com/OpenWebGAL/WebGAL",children:"https://github.com/OpenWebGAL/WebGAL"})}),S.jsx("div",{className:Xr.title,children:t("contributors")}),S.jsx("div",{className:Xr.text,children:S.jsx("a",{target:"_blank",href:"https://github.com/OpenWebGAL/WebGAL/graphs/contributors",children:"https://github.com/OpenWebGAL/WebGAL/graphs/contributors"})}),S.jsx("div",{className:Xr.title,children:t("website")}),S.jsx("div",{className:Xr.text,children:S.jsx("a",{target:"_blank",href:"https://openwebgal.com/",children:"https://openwebgal.com/"})})]})}function _ve(){const e=ye(f=>f.userData),t=Ht(),r=QN(),n=kr("menu.options.pages.system.options."),{playSeDialogOpen:i}=_r();function o(){$e(),uh.getItem(O.gameKey).then(f=>{const h=JSON.stringify(f);if(h!==null){const d=new Blob([h],{type:"application/json"}),v=URL.createObjectURL(d),g=document.createElement("a");g.href=v,g.download="saves.json",g.click(),g.remove()}})}function a(){const f=document.createElement("input");f.type="file",f.onchange=c,f.click()}const[s,u]=$.useState(!1);function l(){u(!s)}function c(f){const h=f.target.files[0],d=new FileReader;d.onload=v=>{const g=v.target.result;try{const p=JSON.parse(g);i(),Do({title:n("gameSave.dialogs.import.title"),leftText:n("$common.yes"),rightText:n("$common.no"),leftFunc:()=>{uh.setItem(O.gameKey,p).then(()=>{ne.info(n("gameSave.dialogs.import.tip"))}),gl()},rightFunc:()=>{}})}catch(p){ne.error(n("gameSave.dialogs.import.error"),p)}},d.readAsText(h,"UTF-8")}return S.jsxs("div",{className:dr.Options_main_content_half,children:[s&&S.jsx(yve,{onClose:l}),!s&&S.jsxs(S.Fragment,{children:[S.jsx(ar,{title:n("autoSpeed.title"),children:S.jsx(yi,{textList:n("autoSpeed.options.slow","autoSpeed.options.medium","autoSpeed.options.fast"),functionList:[()=>{t(ot({key:"autoSpeed",value:vr.slow})),$e()},()=>{t(ot({key:"autoSpeed",value:vr.normal})),$e()},()=>{t(ot({key:"autoSpeed",value:vr.fast})),$e()}],currentChecked:e.optionData.autoSpeed})},"option1"),S.jsx(ar,{title:n("language.title"),children:S.jsx(yi,{currentChecked:e.optionData.language,textList:Object.values(lh),functionList:Object.keys(lh).map(f=>()=>r(ia[f]))})},"option7"),S.jsx(ar,{title:n("resetData.title"),children:S.jsx(yi,{textList:n("resetData.options.clearGameSave","resetData.options.resetSettings","resetData.options.clearAll"),functionList:[()=>{i(),Do({title:n("resetData.dialogs.clearGameSave"),leftText:n("$common.yes"),rightText:n("$common.no"),leftFunc:()=>{t(bG()),Ya()},rightFunc:()=>{}})},()=>{i(),Do({title:n("resetData.dialogs.resetSettings"),leftText:n("$common.yes"),rightText:n("$common.no"),leftFunc:()=>{t(xG()),Ya()},rightFunc:()=>{}})},()=>{i(),Do({title:n("resetData.dialogs.clearAll"),leftText:n("$common.yes"),rightText:n("$common.no"),leftFunc:()=>{t(SG()),Ya()},rightFunc:()=>{}})}],currentChecked:3})},"option2"),S.jsx(ar,{title:n("gameSave.title"),children:S.jsx(yi,{textList:n("gameSave.options.export","gameSave.options.import"),functionList:[o,a],currentChecked:2})},"option3"),S.jsx("div",{className:dr.About_title_text,onClick:l,children:S.jsx("span",{className:dr.About_text,children:n("about.title")})})]})]})}const xve="_textPreviewMain_nolr3_1",bve="_textbox_nolr3_8",DC={textPreviewMain:xve,textbox:bve};function JN(){const e=ye(r=>r.userData.optionData.textboxFont);function t(){return jd(e).with(Hn.song,()=>'"思源宋体", serif').with(Hn.lxgw,()=>'"LXGW", serif').with(Hn.hei,()=>'"WebgalUI", serif').default(()=>'"WebgalUI", serif')}return t()}function P_(e){switch(e){case 0:return 150;case 1:return 205;case 2:return 240;default:return 205}}const Sve="_TextBox_EventHandler_eezpc_1",wve="_TextBox_main_eezpc_9",Eve="_showSoftly_eezpc_1",Tve="_TextBox_textElement_start_eezpc_39",Cve="_TextDelayShow_eezpc_1",Ove="_outer_eezpc_45",Ave="_inner_eezpc_57",Pve="_zhanwei_eezpc_66",kve="_TextBox_textElement_Settled_eezpc_71",Ive="_TextBox_showName_eezpc_76",Rve="_miniAvatarContainer_eezpc_95",Nve="_miniAvatarImg_eezpc_105",Lve="_nameContainer_eezpc_113",Mve="_outerName_eezpc_119",Fve="_innerName_eezpc_130",Dve="_text_eezpc_137",Wt={TextBox_EventHandler:Sve,TextBox_main:wve,showSoftly:Eve,TextBox_textElement_start:Tve,TextDelayShow:Cve,outer:Ove,inner:Ave,zhanwei:Pve,TextBox_textElement_Settled:kve,TextBox_showName:Ive,miniAvatarContainer:Rve,miniAvatarImg:Nve,nameContainer:Lve,outerName:Mve,innerName:Fve,text:Dve};function eL(e){const{textArray:t,textDelay:r,currentConcatDialogPrev:n,currentDialogKey:i,isText:o,isSafari:a,isFirefox:s,fontSize:u,miniAvatar:l,showName:c,font:f,textDuration:h,isUseStroke:d,textboxOpacity:v}=e,g=xI("Stage/TextBox/textbox.scss");$.useEffect(()=>{function y(){[...document.querySelectorAll(".Textelement_start")].forEach(b=>{b.className=g("TextBox_textElement_Settled",Wt.TextBox_textElement_Settled)})}return O.events.textSettle.on(y),()=>{O.events.textSettle.off(y)}},[]);let p=0;const m=t.map((y,_)=>{const x=y.map((b,w)=>{let T=p*r;p++;let k=n.length;return n!==""&&w>=k&&(T=T-k*r),wS.jsx("span",{style:{position:"relative"},children:S.jsxs("span",{className:zt.zhanwei,children:[p,S.jsx("span",{className:zt.outerName,children:p}),d&&S.jsx("span",{className:zt.innerName,children:p})]})},p+m))},c),S.jsx("div",{className:zt.text,style:{fontSize:u,wordBreak:a||e.isFirefox?"break-all":void 0,display:a?"flex":void 0,flexWrap:a?"wrap":void 0,overflow:"hidden",paddingLeft:"0.1em",WebkitLineClamp:e.lineLimit},children:g})]})})}const QR=navigator.userAgent,Whe=/firefox/i.test(QR),qhe=/^((?!chrome|android).)*safari/i.test(QR);function Xhe(e){switch(e){case"standard":return oh;case"imss":return ZR;default:return oh}}const Yhe=()=>{const[e,t]=$.useState(!0);$.useEffect(()=>{const _=()=>{const w=window.innerHeight,T=window.innerWidth,k=w/1440,A=T/2560,P=T/1440,F=w/2560;[k,A,P,F].forEach(D=>{D<=.2?t(!1):t(!0)})};return window.addEventListener("resize",_),_(),()=>{window.removeEventListener("resize",_)}},[]);const r=Se(_=>_.stage),n=Se(_=>_.userData),i=w0(n.optionData.textSpeed),o=mP(n.optionData.textSpeed);let a=Ky(n.optionData.textSize)+"%";const s=KR(),u=r.showText!==""||r.showName!=="";let l=n.optionData.textSize;u&&r.showTextSize!==-1&&(a=Ky(r.showTextSize)+"%",l=r.showTextSize);const c=Mh(n.optionData.textSize).with(Kr.small,()=>3).with(Kr.medium,()=>2).with(Kr.large,()=>2).default(()=>2),f=fb(r.showText,c),h=r.showName,d=r.currentConcatDialogPrev,v=r.currentDialogKey,g=r.miniAvatar,p=Se(_=>_.GUI.theme),m=n.optionData.textboxOpacity,y=Xhe(p.textbox);return S.jsx(y,{textArray:f,isText:u,textDelay:i,showName:h,currentConcatDialogPrev:d,fontSize:a,currentDialogKey:v,isSafari:qhe,isFirefox:Whe,miniAvatar:g,textDuration:o,font:s,textSizeState:l,lineLimit:c,isUseStroke:e,textboxOpacity:m})};function WT(e){return!!e.match(/[\u4e00-\u9fa5]|[\u0800-\u4e00]|[\uac00-\ud7ff]/)}function fb(e,t,r){const a=e.split("|").map(s=>Zhe(s)).map(s=>{const u=[];return s.forEach((l,c)=>{Mh(l.type).with("SegmentType.String",()=>{const f=Khe(l.value);u.push(...f)}).endsWith("SegmentType.Link",()=>{const f=l.value,h=S.jsxs("ruby",{children:[f.text,S.jsx("rt",{children:f.link})]},c+f.text);u.push(h)})}),u}).slice(0,r?void 0:t).reduce((s,u,l)=>[...s,...u,S.jsx("br",{},`br-${l}`)],[]);return a.pop(),a}function Khe(e){if(!e)return[];const t=[];let r="",n=WT(e[0]);const i=o=>/[!-\/:-@\[-`{-~\u2000-\u206F\u3000-\u303F\uff00-\uffef]/g.test(o);for(const o of e)if(o===" ")r&&(t.push(r),r=""),t.push(" "),n=!1;else if(WT(o)&&!i(o))!n&&r&&(t.push(r),r=""),t.push(o),n=!0;else{if(i(o)){r?(r+=o,t.push(r),r=""):t.length>0?t[t.length-1]+=o:t.push(o);continue}n&&r&&(t.push(r),r=""),r+=o,n=!1}return r&&t.push(r),t}function Zhe(e){const t=/(\[(.*?)\]\((.*?)\))|([^\[\]]+)/g,r=[];let n;for(;(n=t.exec(e))!==null;)if(n[1]){const i=n[2],o=n[3];r.push({type:"SegmentType.Link",value:{text:i,link:o}})}else{const i=n[0];r.push({type:"SegmentType.String",value:i})}return r}const Qhe=e=>{const t=Tr("menu.options.pages.display.options."),r=Se(_=>_.GUI.theme),n=Se(_=>_.userData),o=Se(_=>_.stage).bgName,a=w0(n.optionData.textSpeed),s=mP(n.optionData.textSpeed),u=n.optionData.textboxOpacity,l=Ky(n.optionData.textSize)+"%",c=KR(),f=navigator.userAgent,h=/firefox/i.test(f),d=/^((?!chrome|android).)*safari/i.test(f),v=t("textPreview.text"),g=fb(v,3),m=new Map([["standard",oh],["imss",ZR]]).get(r.textbox)||oh,y={textArray:g,isText:!0,textDelay:a,showName:t("textPreview.title"),currentConcatDialogPrev:"",fontSize:l,currentDialogKey:"",isSafari:d,isFirefox:h,miniAvatar:"",textDuration:s,font:c,textSizeState:l,lineLimit:3,isUseStroke:!0,textboxOpacity:u};return S.jsx("div",{className:VT.textPreviewMain,style:{background:o?`bottom / cover no-repeat url(${o})`:"rgba(0, 0, 0, 0.1)"},children:S.jsx("div",{className:VT.textbox,children:S.jsx(m,{...y})},`previewTextbox-${a}`)})};const da=e=>{const{playSeEnter:t}=vr();return $.useEffect(()=>{setTimeout(()=>{const r=document.getElementById(e.uniqueID);r!==null&&r.setAttribute("value",e.initValue.toString())},1)},[]),S.jsx("div",{className:"Option_WebGAL_slider",children:S.jsx("input",{id:e.uniqueID,type:"range",onChange:e.onChange,onFocus:t,onMouseEnter:t})})};function Jhe(){const e=Se(n=>n.userData),t=or(),r=Tr("menu.options.pages.display.options.");return S.jsxs("div",{className:ur.Options_main_content_half,children:[S.jsx(lr,{title:r("textSpeed.title"),children:S.jsx(Oi,{textList:r("textSpeed.options.slow","textSpeed.options.medium","textSpeed.options.fast"),functionList:[()=>{t(_t({key:"textSpeed",value:fr.slow})),Ke()},()=>{t(_t({key:"textSpeed",value:fr.normal})),Ke()},()=>{t(_t({key:"textSpeed",value:fr.fast})),Ke()}],currentChecked:e.optionData.textSpeed})},"textSpeed"),S.jsx(lr,{title:r("textSize.title"),children:S.jsx(Oi,{textList:r("textSize.options.small","textSize.options.medium","textSize.options.large"),functionList:[()=>{t(_t({key:"textSize",value:Kr.small})),Ke()},()=>{t(_t({key:"textSize",value:Kr.medium})),Ke()},()=>{t(_t({key:"textSize",value:Kr.large})),Ke()}],currentChecked:e.optionData.textSize})},"textSize"),S.jsx(lr,{title:r("textFont.title"),children:S.jsx(Oi,{textList:r("textFont.options.siYuanSimSun","textFont.options.SimHei","textFont.options.lxgw"),functionList:[()=>{t(_t({key:"textboxFont",value:Ln.song})),Ke()},()=>{t(_t({key:"textboxFont",value:Ln.hei})),Ke()},()=>{t(_t({key:"textboxFont",value:Ln.lxgw})),Ke()}],currentChecked:e.optionData.textboxFont})},"textFont"),S.jsx(lr,{title:r("textboxOpacity.title"),children:S.jsx(da,{initValue:e.optionData.textboxOpacity,uniqueID:r("textboxOpacity.title"),onChange:n=>{const i=n.target.value;t(_t({key:"textboxOpacity",value:Number(i)})),Ke()}})},"textboxOpacity"),S.jsx(lr,{full:!0,title:r("textPreview.title"),children:S.jsx(Qhe,{})},"textPreview")]})}function ede(){const e=Se(n=>n.userData),t=or(),r=Tr("menu.options.pages.sound.options.");return S.jsxs("div",{className:ur.Options_main_content_half,children:[S.jsx(lr,{title:r("volumeMain.title"),children:S.jsx(da,{initValue:e.optionData.volumeMain,uniqueID:r("volumeMain.title"),onChange:n=>{const i=n.target.value;t(_t({key:"volumeMain",value:Number(i)})),Ke()}})},"option4"),S.jsx(lr,{title:r("vocalVolume.title"),children:S.jsx(da,{initValue:e.optionData.vocalVolume,uniqueID:r("vocalVolume.title"),onChange:n=>{const i=n.target.value;t(_t({key:"vocalVolume",value:Number(i)})),Ke()}})},"option5"),S.jsx(lr,{title:r("bgmVolume.title"),children:S.jsx(da,{initValue:e.optionData.bgmVolume,uniqueID:r("bgmVolume.title"),onChange:n=>{const i=n.target.value;t(_t({key:"bgmVolume",value:Number(i)})),Ke()}})},"option6"),S.jsx(lr,{title:r("seVolume.title"),children:S.jsx(da,{initValue:e.optionData.seVolume,uniqueID:r("seVolume.title"),onChange:n=>{const i=n.target.value;t(_t({key:"seVolume",value:Number(i)})),Ke()}})},"option7"),S.jsx(lr,{title:r("uiSeVolume.title"),children:S.jsx(da,{initValue:e.optionData.uiSeVolume,uniqueID:r("uiSeVolume.title"),onChange:n=>{const i=n.target.value;t(_t({key:"uiSeVolume",value:Number(i)})),Ke()}})},"option8"),S.jsx(lr,{title:r("voiceOption.title"),children:S.jsx(Oi,{textList:r("voiceStop.title","voiceContinue.title"),functionList:[()=>{t(_t({key:"voiceInterruption",value:Ku.yes})),Ke()},()=>{t(_t({key:"voiceInterruption",value:Ku.no})),Ke()}],currentChecked:e.optionData.voiceInterruption})},"option9")]})}const tde=()=>{const{playSeEnter:e,playSeSwitch:t}=vr(),r=Fn(0);$.useEffect(el,[]);function n(o){return o===r.value?ur.Options_page_button+" "+ur.Options_page_button_active:ur.Options_page_button}const i=Tr("menu.options.");return S.jsxs("div",{className:ur.Options_main,children:[S.jsx("div",{className:ur.Options_top,children:S.jsx("div",{className:ur.Options_title,children:S.jsx("div",{className:ur.Option_title_text,children:i("title")})})}),S.jsxs("div",{className:ur.Options_page_container,children:[S.jsxs("div",{className:ur.Options_button_list,children:[S.jsx("div",{onClick:()=>{r.set(0),t()},className:n(0),onMouseEnter:e,children:i("pages.system.title")}),S.jsx("div",{onClick:()=>{r.set(1),t()},className:n(1),onMouseEnter:e,children:i("pages.display.title")}),S.jsx("div",{onClick:()=>{r.set(2),t()},className:n(2),onMouseEnter:e,children:i("pages.sound.title")})]}),S.jsxs("div",{className:ur.Options_main_content,children:[r.value===1&&S.jsx(Jhe,{}),r.value===0&&S.jsx(fhe,{}),r.value===2&&S.jsx(ede,{})]})]})]})},rde=()=>{const e=Se(r=>r.GUI);let t;switch(e.currentMenuTag){case qe.Save:t=S.jsx(Rfe,{});break;case qe.Load:t=S.jsx(Nfe,{});break;case qe.Option:t=S.jsx(tde,{});break}return S.jsx(S.Fragment,{children:e.showMenuPanel&&S.jsxs("div",{className:UT.Menu_main,children:[S.jsx("div",{className:UT.Menu_TagContent,children:t}),S.jsx(Hce,{})]})})},nde="_MainStage_main_9enex_1",ide="_MainStage_main_container_9enex_10",ode="_MainStage_bgContainer_9enex_17",ade="_MainStage_showBgSoftly_9enex_1",sde="_MainStage_bgContainer_Settled_9enex_27",ude="_MainStage_oldBgContainer_9enex_37",lde="_MainStage_oldBgFadeout_9enex_1",cde="_MainStage_oldBgContainer_Settled_9enex_47",fde="_pixiContainer_9enex_72",hde="_chooseContainer_9enex_77",Qv={MainStage_main:nde,MainStage_main_container:ide,MainStage_bgContainer:ode,MainStage_showBgSoftly:ade,MainStage_bgContainer_Settled:sde,MainStage_oldBgContainer:ude,MainStage_oldBgFadeout:lde,MainStage_oldBgContainer_Settled:cde,pixiContainer:fde,chooseContainer:hde},dde=()=>{var g;const e=Se(p=>p.stage),t=Se(p=>p.GUI.titleBgm),r=Se(p=>p.GUI.showTitle),n=Se(p=>p.userData),i=n.optionData.volumeMain,o=i*.01*n.optionData.vocalVolume*.01*e.vocalVolume*.01,a=i*.01*n.optionData.bgmVolume*.01*e.bgm.volume*.01,s=e.bgm.enter,u=e.uiSe,l=i*.01*(((g=n.optionData)==null?void 0:g.seVolume)??100)*.01,c=i*.01*(n.optionData.uiSeVolume??50)*.01,f=Se(p=>p.GUI.isEnterGame),[h,d]=$.useState(setTimeout(()=>{},0)),v=(p,m,y)=>{y>=0?p.volume=0:p.volume=m;const _=10,x=m/y*_,b=()=>{const w=setTimeout(()=>{p.volume+x>=m?p.volume=m:p.volume+x<=0?(p.volume=0,j.dispatch(Te({key:"bgm",value:{src:"",enter:0,volume:100}}))):(p.volume+=x,b())},_);d(w)};b()};return $.useEffect(()=>{clearTimeout(h);const p=document.getElementById("currentBgm");p&&(s===0?p.volume=a:v(p,a,s))},[r,t,e.bgm.src,a,s]),$.useEffect(()=>{ne.debug(`设置背景音量:${a}`)},[a]),$.useEffect(()=>{ne.debug(`设置背景音量淡入时间: ${s}`)},[s]),$.useEffect(()=>{ne.debug(`设置语音音量:${o}`);const p=document.getElementById("currentVocal");p&&(p.volume=o.toString())},[o]),$.useEffect(()=>{if(u==="")return;const p=document.createElement("audio");p.src=u,p.loop=!1,isNaN(c)?(ne.error("UI SE Vol is NaN"),p.volume=isNaN(l)?i/100:l/100):p.volume=c,p.play(),p.addEventListener("ended",()=>{p.remove()}),j.dispatch(Te({key:"uiSe",value:""}))},[u]),$.useEffect(()=>{ne.debug(`设置音效音量: ${l}`)},[l]),$.useEffect(()=>{ne.debug(`设置用户界面音效音量: ${c}`)},[c]),S.jsxs("div",{children:[S.jsx("audio",{id:"currentBgm",src:r?t:e.bgm.src,loop:!0,autoPlay:f},r.toString()+t),S.jsx("audio",{id:"currentVocal",src:e.playVocal})]})},pde=()=>{const e=Se(i=>i.stage);let t="100%",r="100%",n="0";return e.enableFilm!==""&&(r="76%",n="12%"),S.jsx("div",{className:wn.FullScreenPerform_main,style:{width:t,height:r,top:n},children:S.jsx("div",{id:"videoContainer"})})},vde="_TextBox_EventHandler_449dq_2",mde="_TextBox_main_449dq_10",gde="_showSoftly_449dq_1",yde="_TextBox_textElement_449dq_38",_de="_TextBox_textElement_start_449dq_43",xde="_TextDelayShow_449dq_1",bde="_TextBox_textElement_Settled_449dq_48",Sde="_TextBox_showName_449dq_52",wde="_miniAvatarContainer_449dq_68",Ede="_miniAvatarImg_449dq_76",Jv={TextBox_EventHandler:vde,TextBox_main:mde,showSoftly:gde,TextBox_textElement:yde,TextBox_textElement_start:_de,TextDelayShow:xde,TextBox_textElement_Settled:bde,TextBox_showName:Sde,miniAvatarContainer:wde,miniAvatarImg:Ede},Tde=()=>{const e=Se(a=>a.stage),t=Se(a=>a.userData);$.useEffect(()=>{});const r=E6.textInitialDelay-20*t.optionData.textSpeed,n=t.optionData.textSize*50+200+"%",o=e.showText.split("").map((a,s)=>{let u=s*r,l=e.currentConcatDialogPrev.length;return e.currentConcatDialogPrev!==""&&s>=l&&(u=u-l*r),s{e()},[])}function Ts(e){$.useEffect(()=>function(){e()},[])}function Cde(e){$.useEffect(()=>{e()})}const Ode="_Backlog_main_zwyao_2",Ade="_backlog_soft_in_zwyao_1",Pde="_Backlog_main_out_zwyao_15",kde="_backlog_soft_out_zwyao_1",Ide="_Backlog_main_out_IndexHide_zwyao_28",Rde="_Backlog_main_DisableScroll_zwyao_32",Nde="_backlog_top_zwyao_36",Lde="_backlog_top_icon_zwyao_42",Mde="_backlog_icon_softin_zwyao_1",Fde="_backlog_title_zwyao_62",Dde="_backlog_content_zwyao_72",Bde="_backlog_item_zwyao_84",jde="_backlog_item_in_zwyao_1",$de="_backlog_item_out_zwyao_94",Ude="_backlog_func_area_zwyao_104",Gde="_backlog_item_content_name_zwyao_113",zde="_backlog_item_content_zwyao_113",Hde="_backlog_item_button_list_zwyao_137",Vde="_backlog_item_button_element_zwyao_144",Wde="_backlog_item_content_text_zwyao_157",Vt={Backlog_main:Ode,backlog_soft_in:Ade,Backlog_main_out:Pde,backlog_soft_out:kde,Backlog_main_out_IndexHide:Ide,Backlog_main_DisableScroll:Rde,backlog_top:Nde,backlog_top_icon:Lde,backlog_icon_softin:Mde,backlog_title:Fde,backlog_content:Dde,backlog_item:Bde,backlog_item_in:jde,backlog_item_out:$de,backlog_func_area:Ude,backlog_item_content_name:Gde,backlog_item_content:zde,backlog_item_button_list:Hde,backlog_item_button_element:Vde,backlog_item_content_text:Wde};var qde=mn,Xde=function(){return qde.Date.now()},Yde=Xde,Kde=/\s/;function Zde(e){for(var t=e.length;t--&&Kde.test(e.charAt(t)););return t}var Qde=Zde,Jde=Qde,epe=/^\s+/;function tpe(e){return e&&e.slice(0,Jde(e)+1).replace(epe,"")}var rpe=tpe,npe=rpe,qT=Gn,ipe=zh,XT=0/0,ope=/^[-+]0x[0-9a-f]+$/i,ape=/^0b[01]+$/i,spe=/^0o[0-7]+$/i,upe=parseInt;function lpe(e){if(typeof e=="number")return e;if(ipe(e))return XT;if(qT(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=qT(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=npe(e);var r=ape.test(e);return r||spe.test(e)?upe(e.slice(2),r?2:8):ope.test(e)?XT:+e}var cpe=lpe,fpe=Gn,em=Yde,YT=cpe,hpe="Expected a function",dpe=Math.max,ppe=Math.min;function vpe(e,t,r){var n,i,o,a,s,u,l=0,c=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(hpe);t=YT(t)||0,fpe(r)&&(c=!!r.leading,f="maxWait"in r,o=f?dpe(YT(r.maxWait)||0,t):o,h="trailing"in r?!!r.trailing:h);function d(w){var T=n,k=i;return n=i=void 0,l=w,a=e.apply(k,T),a}function v(w){return l=w,s=setTimeout(m,t),c?d(w):a}function g(w){var T=w-u,k=w-l,A=t-T;return f?ppe(A,o-k):A}function p(w){var T=w-u,k=w-l;return u===void 0||T>=t||T<0||f&&k>=o}function m(){var w=em();if(p(w))return y(w);s=setTimeout(m,g(w))}function y(w){return s=void 0,h&&n?d(w):(n=i=void 0,a)}function _(){s!==void 0&&clearTimeout(s),l=0,n=u=i=s=void 0}function x(){return s===void 0?a:y(em())}function b(){var w=em(),T=p(w);if(n=arguments,i=this,u=w,T){if(s===void 0)return v(u);if(f)return clearTimeout(s),s=setTimeout(m,t),d(u)}return s===void 0&&(s=setTimeout(m,t)),a}return b.cancel=_,b.flush=x,b}var mpe=vpe,gpe=mpe,ype=Gn,_pe="Expected a function";function xpe(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(_pe);return ype(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),gpe(e,t,{leading:n,maxWait:t,trailing:i})}var bpe=xpe;const Spe=Or(bpe);function wpe(e){Epe(),Tpe(),Ope(),Cpe(),Ape(),Npe()}function Epe(){const e=ws(u=>u.GUI),t=Ad(),r=Od(e),n=JR(e),i=Ppe(e),o=Ipe(e),a=kpe(e),s=$.useCallback(u=>i()?(t("showGlobalDialog",!1),u.preventDefault(),!1):(a()&&t("showExtra",!1),r()&&t("showTextBox",!e.current.showTextBox),n()&&(t("showBacklog",!1),t("showTextBox",!0)),o()&&t("showMenuPanel",!1),u.preventDefault(),!1),[]);Es(()=>{document.addEventListener("contextmenu",s)}),Ts(()=>{document.removeEventListener("contextmenu",s)})}function Tpe(){const e=ws(u=>u.GUI),t=Ad(),r=Od(e),n=JR(e),i=eN(e),o=$.useCallback(Spe(()=>{Ut()},100),[]),a=$.useRef(0),s=$.useCallback(u=>{if(i())return;const l=u.wheelDelta&&(u.wheelDelta>0?"up":"down")||u.detail&&(u.detail<0?"up":"down")||"down",c=u.ctrlKey,f=document.querySelector(`.${Vt.backlog_content}`);if(r()&&l==="up"&&!c)t("showBacklog",!0),t("showTextBox",!1);else if(n()&&l==="down"&&!c){if(f){let h=Lpe(f),d=new Date().getTime();h&&d-a.current>100&&(t("showBacklog",!1),t("showTextBox",!0)),a.current=d}}else r()&&l==="down"&&!c&&o()},[]);Es(()=>{document.addEventListener("wheel",s)}),Ts(()=>{document.removeEventListener("wheel",s)})}function Cpe(){const e=$.useCallback(a=>!a.isComposing&&!a.defaultPrevented&&a.code==="Escape",[]),t=ws(a=>a.GUI),r=$.useCallback(()=>t.current.showTitle,[t]),n=eN(t),i=Ad(),o=$.useCallback(a=>{!e(a)||r()||(n()?i("showPanicOverlay",!1):(i("showPanicOverlay",!0),lb()))},[]);Es(()=>{document.addEventListener("keyup",o)}),Ts(()=>{document.removeEventListener("keyup",o)})}function Ope(){const e=ws(a=>a.GUI),t=Od(e),r=$.useCallback(a=>a.keyCode===17,[]),n=$.useCallback(a=>{r(a)&&t()&&WR()},[]),i=$.useCallback(a=>{r(a)&&t()&&ja()},[]),o=$.useCallback(a=>{ja()},[]);Es(()=>{document.addEventListener("keydown",n),document.addEventListener("keyup",i),window.addEventListener("blur",o)}),Ts(()=>{document.removeEventListener("keydown",n),document.removeEventListener("keyup",i),window.removeEventListener("blur",o)}),Cde(()=>{t()||ja()})}function Ape(){const e=Rpe(),t=$.useCallback(async r=>{e()&&await JZ()},[]);Es(()=>{window.addEventListener("beforeunload",t)}),Ts(()=>{window.removeEventListener("beforeunload",t)})}function Od(e){return $.useCallback(()=>!e.current.showTitle&&!e.current.showMenuPanel&&!e.current.showBacklog&&!e.current.showPanicOverlay,[e])}function JR(e){return $.useCallback(()=>e.current.showBacklog,[e])}function Ppe(e){return $.useCallback(()=>e.current.showGlobalDialog,[e])}function kpe(e){return $.useCallback(()=>e.current.showExtra,[e])}function eN(e){return $.useCallback(()=>e.current.showPanicOverlay,[e])}function Ipe(e){return $.useCallback(()=>[qe.Save,qe.Load,qe.Option].includes(e.current.currentMenuTag),[e])}function Rpe(){return $.useCallback(()=>O.sceneManager.sceneData.currentSentenceId!==0,[O.sceneManager.sceneData])}function Ad(){const e=or();return(t,r)=>{e(Me({component:t,visibility:r}))}}function Npe(){const e=ws(u=>u.GUI),t=Od(e),r=Ad(),n=$.useRef(!1),i=$.useCallback(u=>u.keyCode===32||u.keyCode===13,[]),o=$.useCallback(u=>{if(i(u)&&t()&&!n.current){if(!e.current.showTextBox){r("showTextBox",!0);return}lb(),Ut(),n.current=!0}},[]),a=$.useCallback(u=>{i(u)&&t()&&(n.current=!1)},[]),s=$.useCallback(u=>{n.current=!1},[]);Es(()=>{document.addEventListener("keydown",o),document.addEventListener("keyup",a),document.addEventListener("blur",s)}),Ts(()=>{document.removeEventListener("keydown",o),document.removeEventListener("keyup",a),document.removeEventListener("blur",s)})}function Lpe(e){const{scrollTop:t,clientHeight:r,scrollHeight:n}=e;return t===0}function Mpe(e){const t=e.bgName;$.useEffect(()=>{var n,i,o;const r="bg-main";if(t!==""){const a=(n=O.gameplay.pixiStage)==null?void 0:n.getStageObjByKey(r);a&&a.sourceUrl!==t&&KT(a),(i=O.gameplay.pixiStage)==null||i.addBg(r,t),Ll(t),ne.debug("重设背景");const{duration:s,animation:u}=xi("bg-main","enter",!0);O.gameplay.pixiStage.registerPresetAnimation(u,"bg-main-softin",r,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects("bg-main-softin"),s)}else{const a=(o=O.gameplay.pixiStage)==null?void 0:o.getStageObjByKey(r);a&&KT(a)}},[t])}function KT(e){var i,o;(i=O.gameplay.pixiStage)==null||i.removeAnimationWithSetEffects("bg-main-softin");const t=e.key;e.key="bg-main-off",(o=O.gameplay.pixiStage)==null||o.removeStageObjectByKey(t);const{duration:r,animation:n}=xi("bg-main-off","exit",!0);O.gameplay.pixiStage.registerAnimation(n,"bg-main-softoff","bg-main-off"),setTimeout(()=>{var a,s;(a=O.gameplay.pixiStage)==null||a.removeAnimation("bg-main-softoff"),(s=O.gameplay.pixiStage)==null||s.removeStageObjectByKey("bg-main-off")},r)}function Fpe(e){const{figNameLeft:t,figName:r,figNameRight:n,freeFigure:i,live2dMotion:o,live2dExpression:a}=e;$.useEffect(()=>{var s;for(const u of o)(s=O.gameplay.pixiStage)==null||s.changeModelMotionByKey(u.target,u.motion)},[o]),$.useEffect(()=>{var s;for(const u of a)(s=O.gameplay.pixiStage)==null||s.changeModelExpressionByKey(u.target,u.expression)},[a]),$.useEffect(()=>{var l,c,f,h,d;const s="fig-center",u="fig-center-softin";if(r!==""){const v=(l=O.gameplay.pixiStage)==null?void 0:l.getStageObjByKey(s);v&&v.sourceUrl!==r&&Zn(v,u,e.effects),(c=O.gameplay.pixiStage)==null||c.addFigure(s,r,"center"),/.json$/.test(r)&&kc(s,r,"center",((f=o.find(y=>y.target===s))==null?void 0:f.motion)??"",((h=a.find(y=>y.target===s))==null?void 0:h.expression)??""),ne.debug("中立绘已重设");const{duration:p,animation:m}=xi(s,"enter");O.gameplay.pixiStage.registerPresetAnimation(m,u,s,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(u),p)}else{ne.debug("移除中立绘");const v=(d=O.gameplay.pixiStage)==null?void 0:d.getStageObjByKey(s);v&&v.sourceUrl!==r&&Zn(v,u,e.effects)}},[r]),$.useEffect(()=>{var l,c,f,h,d;const s="fig-left",u="fig-left-softin";if(t!==""){const v=(l=O.gameplay.pixiStage)==null?void 0:l.getStageObjByKey(s);v&&v.sourceUrl!==t&&Zn(v,u,e.effects),(c=O.gameplay.pixiStage)==null||c.addFigure(s,t,"left"),/.json$/.test(t)&&kc(s,t,"left",((f=o.find(y=>y.target===s))==null?void 0:f.motion)??"",((h=a.find(y=>y.target===s))==null?void 0:h.expression)??""),ne.debug("左立绘已重设");const{duration:p,animation:m}=xi(s,"enter");O.gameplay.pixiStage.registerPresetAnimation(m,u,s,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(u),p)}else{ne.debug("移除左立绘");const v=(d=O.gameplay.pixiStage)==null?void 0:d.getStageObjByKey(s);v&&v.sourceUrl!==t&&Zn(v,u,e.effects)}},[t]),$.useEffect(()=>{var l,c,f,h,d;const s="fig-right",u="fig-right-softin";if(n!==""){const v=(l=O.gameplay.pixiStage)==null?void 0:l.getStageObjByKey(s);v&&v.sourceUrl!==n&&Zn(v,u,e.effects),(c=O.gameplay.pixiStage)==null||c.addFigure(s,n,"right"),/.json$/.test(n)&&kc(s,n,"right",((f=o.find(y=>y.target===s))==null?void 0:f.motion)??"",((h=a.find(y=>y.target===s))==null?void 0:h.expression)??""),ne.debug("右立绘已重设");const{duration:p,animation:m}=xi(s,"enter");O.gameplay.pixiStage.registerPresetAnimation(m,u,s,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(u),p)}else{const v=(d=O.gameplay.pixiStage)==null?void 0:d.getStageObjByKey(s);v&&v.sourceUrl!==n&&Zn(v,u,e.effects)}},[n]),$.useEffect(()=>{var u,l,c,f,h,d,v;for(const g of i){const p=`${g.key}`,m=`${g.key}-softin`;if(g.name!==""){const y=(u=O.gameplay.pixiStage)==null?void 0:u.getStageObjByKey(p);if(y){if(y.sourceUrl!==g.name){Zn(y,m,e.effects),(l=O.gameplay.pixiStage)==null||l.addFigure(p,g.name,g.basePosition),ne.debug(`${g.key}立绘已重设`);const{duration:_,animation:x}=xi(p,"enter");O.gameplay.pixiStage.registerPresetAnimation(x,m,p,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(m),_)}}else{(c=O.gameplay.pixiStage)==null||c.addFigure(p,g.name,g.basePosition),/.json$/.test(g.name)&&kc(p,g.name,g.basePosition,((f=o.find(w=>w.target===p))==null?void 0:f.motion)??"",((h=a.find(w=>w.target===p))==null?void 0:h.expression)??""),ne.debug(`${g.key}立绘已重设`);const{duration:x,animation:b}=xi(p,"enter");O.gameplay.pixiStage.registerPresetAnimation(b,m,p,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(m),x)}}else{const y=(d=O.gameplay.pixiStage)==null?void 0:d.getStageObjByKey(p);y&&y.sourceUrl!==g.name&&Zn(y,m,e.effects)}}const s=(v=O.gameplay.pixiStage)==null?void 0:v.getFigureObjects();if(s){for(const g of s)if(!(g.key==="fig-left"||g.key==="fig-center"||g.key==="fig-right"||g.key.endsWith("-off"))){const p=g.key;if(i.findIndex(y=>y.key===p)<0){const y=`${g.key}-softin`;Zn(g,y,e.effects)}}}},[i])}function Zn(e,t,r){var u,l,c;if((u=O.gameplay.pixiStage)==null||u.removeAnimationWithSetEffects(t),O.gameplay.isFast){ne.info("快速模式,立刻关闭立绘"),(l=O.gameplay.pixiStage)==null||l.removeStageObjectByKey(e.key);return}const n=e.key;e.key=e.key+"-off",(c=O.gameplay.pixiStage)==null||c.removeStageObjectByKey(n);const i=e.key,o=i+"-softoff",{duration:a,animation:s}=xi(i,"exit");O.gameplay.pixiStage.registerPresetAnimation(s,o,i,r),setTimeout(()=>{var f,h;(f=O.gameplay.pixiStage)==null||f.removeAnimation(o),(h=O.gameplay.pixiStage)==null||h.removeStageObjectByKey(i)},a)}function kc(...e){}function Dpe(e){const t=e.effects;setTimeout(()=>{Bpe(t)},10)}function Bpe(e){var r,n,i,o;const t=((r=O.gameplay.pixiStage)==null?void 0:r.getAllStageObj())??[];for(const a of t){const s=a.key,u=e.find(c=>c.target===s);if(!(((n=O.gameplay.pixiStage)==null?void 0:n.getAllLockedObject())??[]).includes(s))if(u){const c=(i=O.gameplay.pixiStage)==null?void 0:i.getStageObjByKey(s);if(c){const f=c.pixiContainer;Object.assign(f,ZT(u.transform))}}else{const c=(o=O.gameplay.pixiStage)==null?void 0:o.getStageObjByKey(s);if(c){const f=c.pixiContainer;Object.assign(f,ZT(T0))}}}}function ZT(e){if(!e)return{};const{position:t,...r}=e;return{...r,x:t.x,y:t.y}}function jpe(){const e=Se(t=>t.stage);return Mpe(e),Fpe(e),Dpe(e),S.jsx("div",{style:{display:"none"}})}const $pe="_introContainer_119k8_1",Upe={introContainer:$pe};function Gpe(){return S.jsx("div",{className:Upe.introContainer,id:"introContainer"})}function QT(e){const t=document.getElementById("textBoxMain");if(!t)return!1;let r=t.getBoundingClientRect();return e.clientX>r.left&&e.clientXr.top&&e.clientY{n(Me({component:"controlsVisibility",visibility:!1}))},1e3)):zpe(e,r,n)}const Wpe=()=>{const e=Se(n=>n.stage),t=Se(n=>n.GUI),r=or();return wpe(),S.jsxs("div",{className:Qv.MainStage_main,children:[S.jsx(pde,{}),S.jsx(jpe,{}),S.jsx("div",{id:"pixiContianer",className:Qv.pixiContainer,style:{zIndex:sb?"-5":void 0}}),S.jsx("div",{id:"chooseContainer",className:Qv.chooseContainer}),t.showTextBox&&e.enableFilm===""&&!e.isDisableTextbox&&S.jsx(Yhe,{}),t.showTextBox&&e.enableFilm!==""&&S.jsx(Tde,{}),S.jsx(dde,{}),S.jsx("div",{onClick:()=>{if(!t.showTextBox){r(Me({component:"showTextBox",visibility:!0}));return}lb(),Ut()},onDoubleClick:()=>{O.eventBus.emit("fullscreen-dbclick")},id:"FullScreenClick",style:{width:"100%",height:"100%",position:"absolute",zIndex:"12",top:"0"},onMouseMove:n=>!t.showControls&&Vpe(n,e,t,r)}),S.jsx(Gpe,{})]})},qpe=()=>{const e=Tr("gaming."),t=2.5,{i18n:r}=gs(),{playSeEnter:n,playSeClick:i,playSeDialogOpen:o}=vr(),s=r.language==="fr";let u=42,l="150%";s&&(l="125%",u=40);const c=Se(m=>m.GUI),f=Se(m=>m.stage),h=or(),d=(m,y)=>{h(Me({component:m,visibility:y}))},v=m=>{h(Oo(m))},g=Se(m=>m.userData.saveData);let p=S.jsx("div",{style:{height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:S.jsx("div",{style:{fontSize:"125%"},children:e("noSaving")})});if(g[0]){const m=g[0];p=S.jsxs("div",{className:he.slPreviewMain,children:[S.jsx("div",{className:he.imgContainer,children:S.jsx("img",{style:{height:"100%"},alt:"q-save-preview image",src:m.previewImage})}),S.jsxs("div",{className:he.textContainer,children:[S.jsx("div",{children:m.nowStageState.showName}),S.jsx("div",{style:{fontSize:"75%",color:"rgb(55,60,56)"},children:m.nowStageState.showText})]})]})}return S.jsx(S.Fragment,{children:c.showTextBox&&f.enableFilm===""&&S.jsxs("div",{className:he.main,style:{visibility:c.controlsVisibility?"visible":"hidden"},children:[c.showTextBox&&S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{d("showTextBox",!1),i()},onMouseEnter:n,children:[S.jsx(xce,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.hide")})]}),!c.showTextBox&&S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{d("showTextBox",!0),i()},onMouseEnter:n,children:[S.jsx(bce,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.show")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{d("showBacklog",!0),d("showTextBox",!1),i()},onMouseEnter:n,children:[S.jsx(lce,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.backlog")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{let m=document.getElementById("currentVocal");m!==null&&(m.currentTime=0,m.pause(),m==null||m.play()),i()},onMouseEnter:n,children:[S.jsx(Sce,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.replay")})]}),S.jsxs("span",{id:"Button_ControlPanel_auto",className:he.singleButton,style:{fontSize:l},onClick:()=>{HR(),i()},onMouseEnter:n,children:[S.jsx($R,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.auto")})]}),S.jsxs("span",{id:"Button_ControlPanel_fast",className:he.singleButton,style:{fontSize:l},onClick:()=>{XR(),i()},onMouseEnter:n,children:[S.jsx(fce,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.forward")})]}),S.jsxs("span",{className:he.singleButton+" "+he.fastsave,style:{fontSize:l},onClick:()=>{dg(0),i()},onMouseEnter:n,children:[S.jsx(cce,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.quicklySave")}),S.jsx("div",{className:he.fastSlPreview+" "+he.fastSPreview,children:p})]}),S.jsxs("span",{className:he.singleButton+" "+he.fastload,style:{fontSize:l},onClick:()=>{uk(0),i()},onMouseEnter:n,children:[S.jsx(hce,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.quicklyLoad")}),S.jsx("div",{className:he.fastSlPreview+" "+he.fastLPreview,children:p})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{v(qe.Save),d("showMenuPanel",!0),i()},onMouseEnter:n,children:[S.jsx(UR,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.save")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{v(qe.Load),d("showMenuPanel",!0),i()},onMouseEnter:n,children:[S.jsx(BR,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.load")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{v(qe.Option),d("showMenuPanel",!0),i()},onMouseEnter:n,children:[S.jsx(GR,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.options")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{o(),Ea({title:e("buttons.titleTips"),leftText:e("$common.yes"),rightText:e("$common.no"),leftFunc:()=>{cb()},rightFunc:()=>{}})},onMouseEnter:n,children:[S.jsx(jR,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.title")})]}),S.jsx("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{Ife(),i()},onMouseEnter:n,children:c.showControls?S.jsx(gce,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}):S.jsx(Tce,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t})})]})})},Xpe=()=>{var h,d;const e=Tr("gaming."),{playSeEnter:t,playSeClick:r}=vr(),n=Se(v=>v.GUI),i=or(),o="0.8em",[a,s]=$.useState(!1),[u,l]=$.useState(!1);let c=$.useRef();const f=$.useMemo(()=>{let v=[];for(let g=0;gb==="

"?S.jsx("br",{},`br${w}`):b),x=S.jsxs("div",{className:Vt.backlog_item,style:{animationDelay:`${20*(O.backlogManager.getBacklog().length-g)}ms`},children:[S.jsxs("div",{className:Vt.backlog_func_area,children:[S.jsxs("div",{className:Vt.backlog_item_button_list,children:[S.jsx("div",{onClick:b=>{r(),ZZ(g),b.preventDefault(),b.stopPropagation()},onMouseEnter:t,className:Vt.backlog_item_button_element,children:S.jsx(wce,{theme:"outline",size:o,fill:"#ffffff",strokeWidth:3})}),p.currentStageState.vocal?S.jsx("div",{onClick:()=>{r();const b=document.getElementById("backlog_audio_play_element_"+g);if(b){b.currentTime=0;const w=j.getState().userData,T=w.optionData.volumeMain;b.volume=T*.01*w.optionData.vocalVolume*.01,b==null||b.play()}},onMouseEnter:t,className:Vt.backlog_item_button_element,children:S.jsx(Cce,{theme:"outline",size:o,fill:"#ffffff",strokeWidth:3})}):null]}),S.jsx("div",{className:Vt.backlog_item_content_name,children:p.currentStageState.showName})]}),S.jsx("div",{className:Vt.backlog_item_content,children:S.jsx("span",{className:Vt.backlog_item_content_text,children:_})}),S.jsx("audio",{id:"backlog_audio_play_element_"+g,src:p.currentStageState.vocal})]},"backlogItem"+p.currentStageState.showText+p.saveScene.currentSentenceId);v.unshift(x)}return v},[((d=(h=O.backlogManager.getBacklog()[O.backlogManager.getBacklog().length-1])==null?void 0:h.saveScene)==null?void 0:d.currentSentenceId)??0]);return $.useEffect(()=>{n.showBacklog?(c.current&&clearTimeout(c.current),s(!1),l(!0),setTimeout(()=>{l(!1)},0)):c.current=setTimeout(()=>{s(!0),c.current=void 0},700+80)},[n.showBacklog]),S.jsx(S.Fragment,{children:S.jsxs("div",{className:` - ${n.showBacklog?Vt.Backlog_main:Vt.Backlog_main_out} - ${a?Vt.Backlog_main_out_IndexHide:""} - `,children:[S.jsxs("div",{className:Vt.backlog_top,children:[S.jsx(DR,{className:Vt.backlog_top_icon,onClick:()=>{r(),i(Me({component:"showBacklog",visibility:!1})),i(Me({component:"showTextBox",visibility:!0}))},onMouseEnter:t,theme:"outline",size:"4em",fill:"#ffffff",strokeWidth:3}),S.jsx("div",{className:Vt.backlog_title,onClick:()=>{ne.info("Rua! Testing")},children:e("buttons.backlog")})]}),n.showBacklog&&S.jsx("div",{className:`${Vt.backlog_content} ${u?Vt.Backlog_main_DisableScroll:""}`,children:f})]})})};function Ype(e){let t=[],r="";for(let n=0;ng.GUI.titleBgm),n=Se(g=>g.userData.appreciationData),i="Title_BGM",o=Fn(!1);let a=i,s=-1;const u=39,l=o.value?"80%":"10%",c=n.bgm.length;n.bgm.forEach((g,p)=>{g.url===r&&(a=g.name,s=p)});const f=Fn("");a!==i&&a!==f.value&&f.set(a);const h=or();function d(g){const p=n.bgm[g];f.set(p.name),h(Hf({asset:"titleBgm",value:p.url}))}const v=n.bgm.map((g,p)=>{let m=rt.bgmElement;return g.name===f.value&&(m=m+" "+rt.bgmElement_active),S.jsx("div",{onClick:()=>{e(),f.set(g.name),h(Hf({asset:"titleBgm",value:g.url}))},className:m,style:{animationDelay:`${p*150}ms`},onMouseEnter:t,children:g.name},g.name)});return S.jsxs("div",{className:rt.bgmContainer,style:{maxHeight:l},children:[S.jsxs("div",{className:rt.bgmPlayerMain,children:[S.jsx("div",{onClick:()=>{e(),s<=0?d(c-1):d(s-1)},onMouseEnter:t,className:rt.bgmControlButton,children:S.jsx(pce,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})}),S.jsx("div",{onClick:()=>{e();const g=document.getElementById("currentBgm");g==null||g.play().then()},onMouseEnter:t,className:rt.bgmControlButton,children:S.jsx($R,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})}),S.jsx("div",{onClick:()=>{e(),s>=c-1?d(0):d(s+1)},onMouseEnter:t,className:rt.bgmControlButton,children:S.jsx(dce,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})}),S.jsx("div",{onClick:()=>{e(),document.getElementById("currentBgm").pause()},onMouseEnter:t,className:rt.bgmControlButton,children:S.jsx(Ece,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})}),S.jsx("div",{className:rt.bgmName,children:a}),S.jsx("div",{onClick:()=>{e(),o.set(!o.value)},onMouseEnter:t,className:rt.bgmControlButton,style:{marginLeft:"auto"},children:S.jsx(_ce,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})})]}),o.value&&S.jsxs("div",{className:rt.bgmListContainer,children:[" ",v]})]})}function bve(e){const t=Fn(!1),{playSeEnter:r,playSeClick:n}=vr();return S.jsxs(S.Fragment,{children:[t.value&&S.jsx("div",{onClick:()=>{t.set(!t.value),n()},className:rt.showFullContainer,onMouseEnter:r,children:S.jsx("div",{className:rt.showFullCgMain,children:S.jsx("div",{style:{backgroundImage:`url('${e.imgUrl}')`,backgroundSize:"cover",backgroundPosition:"center",width:"100%",height:"100%"}})})}),S.jsx("div",{onClick:()=>{t.set(!t.value),n()},onMouseEnter:r,style:{animation:`cg_softIn_${e.transformDeg} 1.5s ease-out ${100+e.index*100}ms forwards `},className:rt.cgElement,children:S.jsx("div",{style:{backgroundImage:`url('${e.imgUrl}')`,backgroundSize:"cover",backgroundPosition:"center",width:"100%",height:"100%"}})},e.name)]})}function Sve(){const t=Se(l=>l.userData.appreciationData),r=Math.ceil(t.cg.length/8),n=Fn(1),{playSeEnter:i,playSeClick:o}=vr(),a=[],s=t.cg.length;for(let l=(n.value-1)*8;l{n.set(l),o()},onMouseEnter:i,className:c,children:l},"nav"+l);u.push(f)}return S.jsxs("div",{className:rt.cgMain,children:[S.jsx("div",{className:rt.cgShowDiv,children:S.jsx("div",{className:rt.cgShowDivWarpper,children:u})}),S.jsx("div",{className:rt.cgContainer,children:a})]})}function wve(e,t){return Math.round(Math.random()*(t-e))+e}function Eve(){const{playSeClick:e}=vr(),t=Se(i=>i.GUI.showExtra),r=or(),n=Tr("extra.");return S.jsx(S.Fragment,{children:t&&S.jsxs("div",{className:rt.extra,children:[S.jsxs("div",{className:rt.extra_top,children:[S.jsx(DR,{className:rt.extra_top_icon,onClick:()=>{r(Me({component:"showExtra",visibility:!1})),e()},onMouseEnter:e,theme:"outline",size:"4em",fill:"#fff",strokeWidth:3}),S.jsx("div",{className:rt.extra_title,children:n("title")})]}),S.jsxs("div",{className:rt.mainContainer,children:[S.jsx(Sve,{}),S.jsx(xve,{})]})]})})}const Tve="_tag_yghix_2",Cve="_container_yghix_17",Ove="_showContainer_yghix_1",Ave="_singleButton_yghix_33",Pve="_button_text_yghix_37",It={tag:Tve,container:Cve,showContainer:Ove,singleButton:Ave,button_text:Pve},kve=()=>{const e=Fn(!1),t=Se(o=>o.stage),r=or(),n=(o,a)=>{r(Me({component:o,visibility:a}))},i=o=>{r(Oo(o))};return S.jsx(S.Fragment,{children:t.enableFilm!==""&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:It.tag,onClick:()=>{e.set(!e.value)},children:S.jsx(vce,{theme:"outline",size:"32",fill:"#fff"})}),e.value&&S.jsxs("div",{className:It.container,children:[S.jsx("span",{className:It.singleButton,onClick:()=>{n("showBacklog",!0),n("showTextBox",!1),e.set(!e.value)},children:S.jsx("span",{className:It.button_text,children:"剧情回想 / BACKLOG"})}),S.jsx("span",{className:It.singleButton,onClick:()=>{e.set(!e.value);let o=document.getElementById("currentVocal");o!==null&&(o.currentTime=0,o.pause(),o==null||o.play())},children:S.jsx("span",{className:It.button_text,children:"重播语音 / REPLAY VOICE"})}),S.jsx("span",{id:"Button_ControlPanel_auto",className:It.singleButton,onClick:()=>{HR(),e.set(!e.value)},children:S.jsx("span",{className:It.button_text,children:"自动模式 / AUTO"})}),S.jsx("span",{id:"Button_ControlPanel_fast",className:It.singleButton,onClick:()=>{XR(),e.set(!e.value)},children:S.jsx("span",{className:It.button_text,children:"快进 / FAST"})}),S.jsx("span",{className:It.singleButton,onClick:()=>{e.set(!e.value),i(qe.Save),n("showMenuPanel",!0)},children:S.jsx("span",{className:It.button_text,children:"存档 / SAVE"})}),S.jsx("span",{className:It.singleButton,onClick:()=>{e.set(!e.value),i(qe.Load),n("showMenuPanel",!0)},children:S.jsx("span",{className:It.button_text,children:"读档 / LOAD"})}),S.jsx("span",{className:It.singleButton,onClick:()=>{e.set(!e.value),i(qe.Option),n("showMenuPanel",!0)},children:S.jsx("span",{className:It.button_text,children:"选项 / OPTIONS"})}),S.jsx("span",{className:It.singleButton,onClick:()=>{e.set(!e.value),cb()},children:S.jsx("span",{className:It.button_text,children:"标题 / TITLE"})})]})]})})},Ive="_devPanelMain_11x6i_1",Rve="_devPanelOpener_11x6i_13",JT={devPanelMain:Ive,devPanelOpener:Rve};function Nve(){document.getElementById("pixiCanvas").toBlob(t=>{if(t){const r=document.createElement("a");document.body.append(r),r.download="screenshot",r.href=URL.createObjectURL(t),r.click(),r.remove()}},"image/png")}function Lve(){function e(){return!!window.location.hash.match(/dev/)}const t=Fn(!1),r=Fn(window.location.hash),n=Se(u=>u.stage);$.useEffect(()=>{window.onhashchange=()=>{r.set(window.location.hash)}},[]);const i=e(),{t:o,i18n:a}=gs(),s=S.jsxs(S.Fragment,{children:[S.jsx("div",{onClick:()=>Nve(),children:"Save PIXI Screenshot"}),S.jsxs("div",{children:["Current Language:",a.language]}),S.jsx("div",{onClick:()=>{var u;return(u=O.gameplay.pixiStage)==null?void 0:u.removeAnimation("snow-Ticker")},children:"Remove Snow Ticker"}),S.jsx("div",{children:"Stage State"}),S.jsx("div",{children:JSON.stringify(n,null," ")})]});return S.jsxs(S.Fragment,{children:[i&&t.value&&S.jsxs("div",{className:JT.devPanelMain,children:[S.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[S.jsx("div",{onClick:()=>t.set(!1),style:{fontSize:"150%",padding:"0 0 0 15px",cursor:"pointer"},children:"×"}),S.jsx("div",{style:{padding:"0 0 0 15px",fontSize:"115%"},children:"WebGAL DEV PANEL"})]}),S.jsx("div",{style:{padding:"10px 10px 10px 10px",overflow:"auto"},children:s})]}),!t.value&&i&&S.jsx("div",{onClick:()=>t.set(!0),className:JT.devPanelOpener,children:"Open Dev Panel"})]})}const Mve="_trans_8uz61_2",Fve="_langWrapper_8uz61_10",Dve="_lang_8uz61_10",Bve="_langSelect_8uz61_29",jve="_langSelectButton_8uz61_35",eu={trans:Mve,langWrapper:Fve,lang:Dve,langSelect:Bve,langSelectButton:jve};function $ve(){const e=YR(),[t,r]=$.useState(!1);$.useEffect(()=>{(window==null?void 0:window.localStorage.getItem("lang"))?e(Number(window==null?void 0:window.localStorage.getItem("lang")),!1):r(!0)},[]);const n=i=>{r(!1),e(i)};return S.jsx(S.Fragment,{children:t&&S.jsx("div",{className:eu.trans,children:S.jsxs("div",{className:eu.langWrapper,children:[S.jsx("div",{className:eu.lang,children:"LANGUAGE SELECT"}),S.jsx("div",{className:eu.langSelect,children:Object.keys(Bf).map(i=>S.jsx("div",{className:eu.langSelectButton,onClick:()=>n(Wo[i]),children:Bf[i]},i))})]})})})}const Uve="_panic_overlay_main_1ysz4_1",Gve={panic_overlay_main:Uve},zve="_yoozle_blue_1r48o_1",Hve="_yoozle_red_1r48o_5",Vve="_yoozle_yellow_1r48o_9",Wve="_yoozle_green_1r48o_13",qve="_yoozle_e_rotate_1r48o_17",Xve="_yoozle_container_1r48o_22",Yve="_yoozle_title_1r48o_28",Kve="_yoozle_search_1r48o_37",Zve="_yoozle_search_bar_1r48o_44",Qve="_yoozle_search_buttons_1r48o_51",Jve="_yoozle_button_1r48o_55",gr={yoozle_blue:zve,yoozle_red:Hve,yoozle_yellow:Vve,yoozle_green:Wve,yoozle_e_rotate:qve,yoozle_container:Xve,yoozle_title:Yve,yoozle_search:Kve,yoozle_search_bar:Zve,yoozle_search_buttons:Qve,yoozle_button:Jve},eme=()=>($.useEffect(()=>{const e="Yoozle Search",t=document.title;return document.title=e,()=>{document.title=t}},[]),S.jsxs("div",{className:gr.yoozle_container,children:[S.jsx("div",{className:gr.yoozle_title,children:S.jsxs("span",{children:[S.jsx("span",{className:gr.yoozle_blue,style:{marginRight:"1px"},children:"Y"}),S.jsx("span",{className:gr.yoozle_red,children:"o"}),S.jsx("span",{className:gr.yoozle_yellow,children:"o"}),S.jsx("span",{className:gr.yoozle_blue,children:"z"}),S.jsx("span",{className:gr.yoozle_green,children:"l"}),S.jsx("span",{className:`${gr.yoozle_red} ${gr.yoozle_e_rotate}`,children:"e"})]})}),S.jsxs("div",{className:gr.yoozle_search,children:[S.jsx("input",{className:gr.yoozle_search_bar,type:"text",defaultValue:""}),S.jsxs("div",{className:gr.yoozle_search_buttons,children:[S.jsx("input",{className:gr.yoozle_button,type:"submit",value:"Yoozle Search"}),S.jsx("input",{className:gr.yoozle_button,type:"submit",value:"Feeling Lucky"})]})]})]})),tme=()=>{const e=Se(n=>n.GUI),[t,r]=$.useState(!1);return $.useEffect(()=>{r(e.showPanicOverlay)},[e.showPanicOverlay]),Mn.createPortal(S.jsx("div",{className:t?Gve.panic_overlay_main:"",children:t&&S.jsx(eme,{})}),document.querySelector("div#panic-overlay"))};function rme(){return $.useEffect(()=>{qle()},[]),S.jsx("div",{className:"App",children:S.jsxs(IK,{store:j,children:[S.jsx($ve,{}),S.jsx(Wpe,{}),S.jsx(qpe,{}),S.jsx(kve,{}),S.jsx(Xpe,{}),S.jsx(NQ,{}),S.jsx(BQ,{}),S.jsx(Eve,{}),S.jsx(rde,{}),S.jsx(Afe,{}),S.jsx(tme,{}),S.jsx(Lve,{})]})})}function $i(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zy(e,t){return Zy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zy(e,t)}function Pd(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zy(e,t)}function Bl(e,t){if(t&&(Dt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $i(e)}function $n(e){return $n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$n(e)}function nme(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ime(e){return gk(e)||nme(e)||yk(e)||_k()}function eC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tC(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};gn(this,e),this.init(t,r)}return yn(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=r||ome,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(r){this.debug=r}},{key:"log",value:function(){for(var r=arguments.length,n=new Array(r),i=0;i1?n-1:0),o=1;o-1?s.replace(/###/g,"."):s}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=n(o.shift());!e[a]&&r&&(e[a]=new r),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return i()?{}:{obj:e,k:n(o.shift())}}function nC(e,t,r){var n=hb(e,t,Object),i=n.obj,o=n.k;i[o]=r}function ume(e,t,r,n){var i=hb(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],n&&(o[a]=o[a].concat(r)),n||o[a].push(r)}function ah(e,t){var r=hb(e,t),n=r.obj,i=r.k;if(n)return n[i]}function lme(e,t,r){var n=ah(e,r);return n!==void 0?n:ah(t,r)}function tN(e,t,r){for(var n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?r&&(e[n]=t[n]):tN(e[n],t[n],r):e[n]=t[n]);return e}function ua(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var cme={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function fme(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return cme[t]}):e}var kd=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,hme=[" ",",","?","!",";"];function dme(e,t,r){t=t||"",r=r||"";var n=hme.filter(function(s){return t.indexOf(s)<0&&r.indexOf(s)<0});if(n.length===0)return!0;var i=new RegExp("(".concat(n.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(r);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}function sh(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var n=t.split(r),i=e,o=0;oo+a;)a++,s=n.slice(o,o+a).join(r),u=i[s];if(u===void 0)return;if(u===null)return null;if(t.endsWith(s)){if(typeof u=="string")return u;if(s&&typeof u[s]=="string")return u[s]}var l=n.slice(o+a).join(r);return l?sh(u,l,r):void 0}i=i[n[o]]}return i}}function iC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ic(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var mme=function(e){Pd(r,e);var t=pme(r);function r(n){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return gn(this,r),i=t.call(this),kd&&Qi.call($i(i)),i.data=n||{},i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return yn(r,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,l=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,c=[i,o];a&&typeof a!="string"&&(c=c.concat(a)),a&&typeof a=="string"&&(c=c.concat(u?a.split(u):a)),i.indexOf(".")>-1&&(c=i.split("."));var f=ah(this.data,c);return f||!l||typeof a!="string"?f:sh(this.data&&this.data[i]&&this.data[i][o],a,u)}},{key:"addResource",value:function(i,o,a,s){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},l=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,c=[i,o];a&&(c=c.concat(l?a.split(l):a)),i.indexOf(".")>-1&&(c=i.split("."),s=o,o=c[1]),this.addNamespaces(o),nC(this.data,c,s),u.silent||this.emit("added",i,o,a,s)}},{key:"addResources",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var u in a)(typeof a[u]=="string"||Object.prototype.toString.apply(a[u])==="[object Array]")&&this.addResource(i,o,u,a[u],{silent:!0});s.silent||this.emit("added",i,o,a)}},{key:"addResourceBundle",value:function(i,o,a,s,u){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},c=[i,o];i.indexOf(".")>-1&&(c=i.split("."),s=a,a=o,o=c[1]),this.addNamespaces(o);var f=ah(this.data,c)||{};s?tN(f,a,u):f=Ic(Ic({},f),a),nC(this.data,c,f),l.silent||this.emit("added",i,o,a)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Ic(Ic({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),a=o&&Object.keys(o)||[];return!!a.find(function(s){return o[s]&&Object.keys(o[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),r}(Qi),rN={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,r,n,i,o){var a=this;return t.forEach(function(s){a.processors[s]&&(r=a.processors[s].process(r,n,i,o))}),r}};function oC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zt(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var aC={},sC=function(e){Pd(r,e);var t=gme(r);function r(n){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return gn(this,r),i=t.call(this),kd&&Qi.call($i(i)),sme(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,$i(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=kn.create("translator"),i}return yn(r,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var a=this.resolve(i,o);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(i,o){var a=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,u=o.ns||this.options.defaultNS||[],l=a&&i.indexOf(a)>-1,c=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!dme(i,a,s);if(l&&!c){var f=i.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:i,namespaces:u};var h=i.split(a);(a!==s||a===s&&this.options.ns.indexOf(h[0])>-1)&&(u=h.shift()),i=h.join(s)}return typeof u=="string"&&(u=[u]),{key:i,namespaces:u}}},{key:"translate",value:function(i,o,a){var s=this;if(Dt(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),Dt(o)==="object"&&(o=Zt({},o)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var u=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,c=this.extractFromKey(i[i.length-1],o),f=c.key,h=c.namespaces,d=h[h.length-1],v=o.lng||this.language,g=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(v&&v.toLowerCase()==="cimode"){if(g){var p=o.nsSeparator||this.options.nsSeparator;return u?{res:"".concat(d).concat(p).concat(f),usedKey:f,exactUsedKey:f,usedLng:v,usedNS:d}:"".concat(d).concat(p).concat(f)}return u?{res:f,usedKey:f,exactUsedKey:f,usedLng:v,usedNS:d}:f}var m=this.resolve(i,o),y=m&&m.res,_=m&&m.usedKey||f,x=m&&m.exactUsedKey||f,b=Object.prototype.toString.apply(y),w=["[object Number]","[object Function]","[object RegExp]"],T=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,A=typeof y!="string"&&typeof y!="boolean"&&typeof y!="number";if(k&&y&&A&&w.indexOf(b)<0&&!(typeof T=="string"&&b==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var P=this.options.returnedObjectHandler?this.options.returnedObjectHandler(_,y,Zt(Zt({},o),{},{ns:h})):"key '".concat(f," (").concat(this.language,")' returned an object instead of string.");return u?(m.res=P,m):P}if(l){var F=b==="[object Array]",D=F?[]:{},H=F?x:_;for(var re in y)if(Object.prototype.hasOwnProperty.call(y,re)){var z="".concat(H).concat(l).concat(re);D[re]=this.translate(z,Zt(Zt({},o),{joinArrays:!1,ns:h})),D[re]===z&&(D[re]=y[re])}y=D}}else if(k&&typeof T=="string"&&b==="[object Array]")y=y.join(T),y&&(y=this.extendTranslation(y,i,o,a));else{var q=!1,ue=!1,De=o.count!==void 0&&typeof o.count!="string",ge=r.hasDefaultValue(o),Q=De?this.pluralResolver.getSuffix(v,o.count,o):"",L=o["defaultValue".concat(Q)]||o.defaultValue;!this.isValidLookup(y)&&ge&&(q=!0,y=L),this.isValidLookup(y)||(ue=!0,y=f);var V=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,ee=V&&ue?void 0:y,ae=ge&&L!==y&&this.options.updateMissing;if(ue||q||ae){if(this.logger.log(ae?"updateKey":"missingKey",v,d,f,ae?L:y),l){var ye=this.resolve(f,Zt(Zt({},o),{},{keySeparator:!1}));ye&&ye.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var be=[],we=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&we&&we[0])for(var Be=0;Be1&&arguments[1]!==void 0?arguments[1]:{},s,u,l,c,f;return typeof i=="string"&&(i=[i]),i.forEach(function(h){if(!o.isValidLookup(s)){var d=o.extractFromKey(h,a),v=d.key;u=v;var g=d.namespaces;o.options.fallbackNS&&(g=g.concat(o.options.fallbackNS));var p=a.count!==void 0&&typeof a.count!="string",m=p&&!a.ordinal&&a.count===0&&o.pluralResolver.shouldUseIntlApi(),y=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",_=a.lngs?a.lngs:o.languageUtils.toResolveHierarchy(a.lng||o.language,a.fallbackLng);g.forEach(function(x){o.isValidLookup(s)||(f=x,!aC["".concat(_[0],"-").concat(x)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(f)&&(aC["".concat(_[0],"-").concat(x)]=!0,o.logger.warn('key "'.concat(u,'" for languages "').concat(_.join(", "),`" won't get resolved as namespace "`).concat(f,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),_.forEach(function(b){if(!o.isValidLookup(s)){c=b;var w=[v];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(w,v,b,x,a);else{var T;p&&(T=o.pluralResolver.getSuffix(b,a.count,a));var k="".concat(o.options.pluralSeparator,"zero");if(p&&(w.push(v+T),m&&w.push(v+k)),y){var A="".concat(v).concat(o.options.contextSeparator).concat(a.context);w.push(A),p&&(w.push(A+T),m&&w.push(A+k))}}for(var P;P=w.pop();)o.isValidLookup(s)||(l=P,s=o.getResource(b,x,P,a))}}))})}}),{res:s,usedKey:u,exactUsedKey:l,usedLng:c,usedNS:f}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,a,s):this.resourceStore.getResource(i,o,a,s)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a)&&o===a.substring(0,o.length)&&i[a]!==void 0)return!0;return!1}}]),r}(Qi);function rm(e){return e.charAt(0).toUpperCase()+e.slice(1)}var uC=function(){function e(t){gn(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=kn.create("languageUtils")}return yn(e,[{key:"getScriptPartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return null;var n=r.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}},{key:"getLanguagePartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return r;var n=r.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(r){if(typeof r=="string"&&r.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],i=r.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=rm(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=rm(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=rm(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}},{key:"isSupportedCode",value:function(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}},{key:"getBestMatchFromCodes",value:function(r){var n=this;if(!r)return null;var i;return r.forEach(function(o){if(!i){var a=n.formatLanguageCode(o);(!n.options.supportedLngs||n.isSupportedCode(a))&&(i=a)}}),!i&&this.options.supportedLngs&&r.forEach(function(o){if(!i){var a=n.getLanguagePartFromCode(o);if(n.isSupportedCode(a))return i=a;i=n.options.supportedLngs.find(function(s){if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&s.indexOf(a)===0)return s})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(r,n){if(!r)return[];if(typeof r=="function"&&(r=r(n)),typeof r=="string"&&(r=[r]),Object.prototype.toString.apply(r)==="[object Array]")return r;if(!n)return r.default||[];var i=r[n];return i||(i=r[this.getScriptPartFromCode(n)]),i||(i=r[this.formatLanguageCode(n)]),i||(i=r[this.getLanguagePartFromCode(n)]),i||(i=r.default),i||[]}},{key:"toResolveHierarchy",value:function(r,n){var i=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],r),a=[],s=function(l){l&&(i.isSupportedCode(l)?a.push(l):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(l)))};return typeof r=="string"&&r.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(r))):typeof r=="string"&&s(this.formatLanguageCode(r)),o.forEach(function(u){a.indexOf(u)<0&&s(i.formatLanguageCode(u))}),a}}]),e}(),_me=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],xme={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}},bme=["v1","v2","v3"],lC={zero:0,one:1,two:2,few:3,many:4,other:5};function Sme(){var e={};return _me.forEach(function(t){t.lngs.forEach(function(r){e[r]={numbers:t.nr,plurals:xme[t.fc]}})}),e}var wme=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};gn(this,e),this.languageUtils=t,this.options=r,this.logger=kn.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Sme()}return yn(e,[{key:"addRule",value:function(r,n){this.rules[r]=n}},{key:"getRule",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(r,{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[r]||this.rules[this.languageUtils.getLanguagePartFromCode(r)]}},{key:"needsPlural",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(r,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(r,i).map(function(o){return"".concat(n).concat(o)})}},{key:"getSuffixes",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(r,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(a,s){return lC[a]-lC[s]}).map(function(a){return"".concat(n.options.prepend).concat(a)}):o.numbers.map(function(a){return n.getSuffix(r,a,i)}):[]}},{key:"getSuffix",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(r,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(n)):this.getSuffixRetroCompatible(o,n):(this.logger.warn("no plural rule found for: ".concat(r)),"")}},{key:"getSuffixRetroCompatible",value:function(r,n){var i=this,o=r.noAbs?r.plurals(n):r.plurals(Math.abs(n)),a=r.numbers[o];this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var s=function(){return i.options.prepend&&a.toString()?i.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1?s():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!bme.includes(this.options.compatibilityJSON)}}]),e}();function cC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function un(e){for(var t=1;t3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=lme(e,t,r);return!o&&i&&typeof r=="string"&&(o=sh(e,r,n),o===void 0&&(o=sh(t,r,n))),o}var Eme=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};gn(this,e),this.logger=kn.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(r){return r},this.init(t)}return yn(e,[{key:"init",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r.interpolation||(r.interpolation={escapeValue:!0});var n=r.interpolation;this.escape=n.escape!==void 0?n.escape:fme,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?ua(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?ua(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?ua(n.nestingPrefix):n.nestingPrefixEscaped||ua("$t("),this.nestingSuffix=n.nestingSuffix?ua(n.nestingSuffix):n.nestingSuffixEscaped||ua(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var r="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(r,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(r,n,i,o){var a=this,s,u,l,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function f(p){return p.replace(/\$/g,"$$$$")}var h=function(m){if(m.indexOf(a.formatSeparator)<0){var y=fC(n,c,m,a.options.keySeparator,a.options.ignoreJSONStructure);return a.alwaysFormat?a.format(y,void 0,i,un(un(un({},o),n),{},{interpolationkey:m})):y}var _=m.split(a.formatSeparator),x=_.shift().trim(),b=_.join(a.formatSeparator).trim();return a.format(fC(n,c,x,a.options.keySeparator,a.options.ignoreJSONStructure),b,i,un(un(un({},o),n),{},{interpolationkey:x}))};this.resetRegExp();var d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,v=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,g=[{regex:this.regexpUnescape,safeValue:function(m){return f(m)}},{regex:this.regexp,safeValue:function(m){return a.escapeValue?f(a.escape(m)):f(m)}}];return g.forEach(function(p){for(l=0;s=p.regex.exec(r);){var m=s[1].trim();if(u=h(m),u===void 0)if(typeof d=="function"){var y=d(r,s,o);u=typeof y=="string"?y:""}else if(o&&Object.prototype.hasOwnProperty.call(o,m))u="";else if(v){u=s[0];continue}else a.logger.warn("missed to pass in variable ".concat(m," for interpolating ").concat(r)),u="";else typeof u!="string"&&!a.useRawValueToEscape&&(u=rC(u));var _=p.safeValue(u);if(r=r.replace(s[0],_),v?(p.regex.lastIndex+=u.length,p.regex.lastIndex-=s[0].length):p.regex.lastIndex=0,l++,l>=a.maxReplaces)break}}),r}},{key:"nest",value:function(r,n){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,u;function l(d,v){var g=this.nestingOptionsSeparator;if(d.indexOf(g)<0)return d;var p=d.split(new RegExp("".concat(g,"[ ]*{"))),m="{".concat(p[1]);d=p[0],m=this.interpolate(m,u);var y=m.match(/'/g),_=m.match(/"/g);(y&&y.length%2===0&&!_||_.length%2!==0)&&(m=m.replace(/'/g,'"'));try{u=JSON.parse(m),v&&(u=un(un({},v),u))}catch(x){return this.logger.warn("failed parsing options string in nesting for key ".concat(d),x),"".concat(d).concat(g).concat(m)}return delete u.defaultValue,d}for(;a=this.nestingRegexp.exec(r);){var c=[];u=un({},o),u=u.replace&&typeof u.replace!="string"?u.replace:u,u.applyPostProcessor=!1,delete u.defaultValue;var f=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var h=a[1].split(this.formatSeparator).map(function(d){return d.trim()});a[1]=h.shift(),c=h,f=!0}if(s=n(l.call(this,a[1].trim(),u),u),s&&a[0]===r&&typeof s!="string")return s;typeof s!="string"&&(s=rC(s)),s||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(r)),s=""),f&&(s=c.reduce(function(d,v){return i.format(d,v,o.lng,un(un({},o),{},{interpolationkey:a[1].trim()}))},s.trim())),r=r.replace(a[0],s),this.regexp.lastIndex=0}return r}}]),e}();function hC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qn(e){for(var t=1;t-1){var n=e.split("(");t=n[0].toLowerCase().trim();var i=n[1].substring(0,n[1].length-1);if(t==="currency"&&i.indexOf(":")<0)r.currency||(r.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)r.range||(r.range=i.trim());else{var o=i.split(";");o.forEach(function(a){if(a){var s=a.split(":"),u=ime(s),l=u[0],c=u.slice(1),f=c.join(":").trim().replace(/^'+|'+$/g,"");r[l.trim()]||(r[l.trim()]=f),f==="false"&&(r[l.trim()]=!1),f==="true"&&(r[l.trim()]=!0),isNaN(f)||(r[l.trim()]=parseInt(f,10))}})}}return{formatName:t,formatOptions:r}}function la(e){var t={};return function(n,i,o){var a=i+JSON.stringify(o),s=t[a];return s||(s=e(i,o),t[a]=s),s(n)}}var Cme=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};gn(this,e),this.logger=kn.create("formatter"),this.options=t,this.formats={number:la(function(r,n){var i=new Intl.NumberFormat(r,Qn({},n));return function(o){return i.format(o)}}),currency:la(function(r,n){var i=new Intl.NumberFormat(r,Qn(Qn({},n),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:la(function(r,n){var i=new Intl.DateTimeFormat(r,Qn({},n));return function(o){return i.format(o)}}),relativetime:la(function(r,n){var i=new Intl.RelativeTimeFormat(r,Qn({},n));return function(o){return i.format(o,n.range||"day")}}),list:la(function(r,n){var i=new Intl.ListFormat(r,Qn({},n));return function(o){return i.format(o)}})},this.init(t)}return yn(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=n.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(r,n){this.formats[r.toLowerCase().trim()]=n}},{key:"addCached",value:function(r,n){this.formats[r.toLowerCase().trim()]=la(n)}},{key:"format",value:function(r,n,i){var o=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=n.split(this.formatSeparator),u=s.reduce(function(l,c){var f=Tme(c),h=f.formatName,d=f.formatOptions;if(o.formats[h]){var v=l;try{var g=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},p=g.locale||g.lng||a.locale||a.lng||i;v=o.formats[h](l,p,Qn(Qn(Qn({},d),a),g))}catch(m){o.logger.warn(m)}return v}else o.logger.warn("there was no format function for ".concat(h));return l},r);return u}}]),e}();function dC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pC(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Pme(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var kme=function(e){Pd(r,e);var t=Ome(r);function r(n,i,o){var a,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return gn(this,r),a=t.call(this),kd&&Qi.call($i(a)),a.backend=n,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=s,a.logger=kn.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=s.maxParallelReads||10,a.readingCalls=0,a.maxRetries=s.maxRetries>=0?s.maxRetries:5,a.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,s.backend,s),a}return yn(r,[{key:"queueLoad",value:function(i,o,a,s){var u=this,l={},c={},f={},h={};return i.forEach(function(d){var v=!0;o.forEach(function(g){var p="".concat(d,"|").concat(g);!a.reload&&u.store.hasResourceBundle(d,g)?u.state[p]=2:u.state[p]<0||(u.state[p]===1?c[p]===void 0&&(c[p]=!0):(u.state[p]=1,v=!1,c[p]===void 0&&(c[p]=!0),l[p]===void 0&&(l[p]=!0),h[g]===void 0&&(h[g]=!0)))}),v||(f[d]=!0)}),(Object.keys(l).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(l),pending:Object.keys(c),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(h)}}},{key:"loaded",value:function(i,o,a){var s=i.split("|"),u=s[0],l=s[1];o&&this.emit("failedLoading",u,l,o),a&&this.store.addResourceBundle(u,l,a),this.state[i]=o?-1:2;var c={};this.queue.forEach(function(f){ume(f.loaded,[u],l),Pme(f,i),o&&f.errors.push(o),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(function(h){c[h]||(c[h]={});var d=f.loaded[h];d.length&&d.forEach(function(v){c[h][v]===void 0&&(c[h][v]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(function(f){return!f.done})}},{key:"read",value:function(i,o,a){var s=this,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,c=arguments.length>5?arguments[5]:void 0;if(!i.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:a,tried:u,wait:l,callback:c});return}this.readingCalls++;var f=function(g,p){if(s.readingCalls--,s.waitingReads.length>0){var m=s.waitingReads.shift();s.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(g&&p&&u2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var l=this.queueLoad(i,o,s,u);if(!l.toLoad.length)return l.pending.length||u(),null;l.toLoad.forEach(function(c){a.loadOne(c)})}},{key:"load",value:function(i,o,a){this.prepareLoading(i,o,{},a)}},{key:"reload",value:function(i,o,a){this.prepareLoading(i,o,{reload:!0},a)}},{key:"loadOne",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=i.split("|"),u=s[0],l=s[1];this.read(u,l,"read",void 0,void 0,function(c,f){c&&o.logger.warn("".concat(a,"loading namespace ").concat(l," for language ").concat(u," failed"),c),!c&&f&&o.logger.log("".concat(a,"loaded namespace ").concat(l," for language ").concat(u),f),o.loaded(i,c,f)})}},{key:"saveMissing",value:function(i,o,a,s,u){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend&&this.backend.create){var f=pC(pC({},l),{},{isUpdate:u}),h=this.backend.create.bind(this.backend);if(h.length<6)try{var d;h.length===5?d=h(i,o,a,s,f):d=h(i,o,a,s),d&&typeof d.then=="function"?d.then(function(v){return c(null,v)}).catch(c):c(null,d)}catch(v){c(v)}else h(i,o,a,s,c,f)}!i||!i[0]||this.store.addResource(i[0],o,a,s)}}}]),r}(Qi);function vC(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var r={};if(Dt(t[1])==="object"&&(r=t[1]),typeof t[1]=="string"&&(r.defaultValue=t[1]),typeof t[2]=="string"&&(r.tDescription=t[2]),Dt(t[2])==="object"||Dt(t[3])==="object"){var n=t[3]||t[2];Object.keys(n).forEach(function(i){r[i]=n[i]})}return r},interpolation:{escapeValue:!0,format:function(t,r,n,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function mC(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function gC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Sn(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rc(){}function Nme(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(r){typeof e[r]=="function"&&(e[r]=e[r].bind(e))})}var uh=function(e){Pd(r,e);var t=Ime(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(gn(this,r),n=t.call(this),kd&&Qi.call($i(n)),n.options=mC(i),n.services={},n.logger=kn,n.modules={external:[]},Nme($i(n)),o&&!n.isInitialized&&!i.isClone){if(!n.options.initImmediate)return n.init(i,o),Bl(n,$i(n));setTimeout(function(){n.init(i,o)},0)}return n}return yn(r,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(a=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var s=vC();this.options=Sn(Sn(Sn({},s),this.options),mC(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Sn(Sn({},s.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function u(m){return m?typeof m=="function"?new m:m:null}if(!this.options.isClone){this.modules.logger?kn.init(u(this.modules.logger),this.options):kn.init(null,this.options);var l;this.modules.formatter?l=this.modules.formatter:typeof Intl<"u"&&(l=Cme);var c=new uC(this.options);this.store=new mme(this.options.resources,this.options);var f=this.services;f.logger=kn,f.resourceStore=this.store,f.languageUtils=c,f.pluralResolver=new wme(c,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),l&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(f.formatter=u(l),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new Eme(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new kme(u(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(m){for(var y=arguments.length,_=new Array(y>1?y-1:0),x=1;x1?y-1:0),x=1;x0&&h[0]!=="dev"&&(this.options.lng=h[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var d=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];d.forEach(function(m){i[m]=function(){var y;return(y=i.store)[m].apply(y,arguments)}});var v=["addResource","addResources","addResourceBundle","removeResourceBundle"];v.forEach(function(m){i[m]=function(){var y;return(y=i.store)[m].apply(y,arguments),i}});var g=tu(),p=function(){var y=function(x,b){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),g.resolve(b),a(x,b)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return y(null,i.t.bind(i));i.changeLanguage(i.options.lng,y)};return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),g}},{key:"loadResources",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rc,s=a,u=typeof i=="string"?i:this.language;if(typeof i=="function"&&(s=i),!this.options.resources||this.options.partialBundledLanguages){if(u&&u.toLowerCase()==="cimode")return s();var l=[],c=function(d){if(d){var v=o.services.languageUtils.toResolveHierarchy(d);v.forEach(function(g){l.indexOf(g)<0&&l.push(g)})}};if(u)c(u);else{var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.forEach(function(h){return c(h)})}this.options.preload&&this.options.preload.forEach(function(h){return c(h)}),this.services.backendConnector.load(l,this.options.ns,function(h){!h&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),s(h)})}else s(null)}},{key:"reloadResources",value:function(i,o,a){var s=tu();return i||(i=this.languages),o||(o=this.options.ns),a||(a=Rc),this.services.backendConnector.reload(i,o,function(u){s.resolve(),a(u)}),s}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&rN.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}},{key:"changeLanguage",value:function(i,o){var a=this;this.isLanguageChangingTo=i;var s=tu();this.emit("languageChanging",i);var u=function(h){a.language=h,a.languages=a.services.languageUtils.toResolveHierarchy(h),a.resolvedLanguage=void 0,a.setResolvedLanguage(h)},l=function(h,d){d?(u(d),a.translator.changeLanguage(d),a.isLanguageChangingTo=void 0,a.emit("languageChanged",d),a.logger.log("languageChanged",d)):a.isLanguageChangingTo=void 0,s.resolve(function(){return a.t.apply(a,arguments)}),o&&o(h,function(){return a.t.apply(a,arguments)})},c=function(h){!i&&!h&&a.services.languageDetector&&(h=[]);var d=typeof h=="string"?h:a.services.languageUtils.getBestMatchFromCodes(h);d&&(a.language||u(d),a.translator.language||a.translator.changeLanguage(d),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage&&a.services.languageDetector.cacheUserLanguage(d)),a.loadResources(d,function(v){l(v,d)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(i),s}},{key:"getFixedT",value:function(i,o,a){var s=this,u=function l(c,f){var h;if(Dt(f)!=="object"){for(var d=arguments.length,v=new Array(d>2?d-2:0),g=2;g1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=a.lng||this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,l=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var c=function(d,v){var g=o.services.backendConnector.state["".concat(d,"|").concat(v)];return g===-1||g===2};if(a.precheck){var f=a.precheck(this,c);if(f!==void 0)return f}return!!(this.hasResourceBundle(s,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(s,i)&&(!u||c(l,i)))}},{key:"loadNamespaces",value:function(i,o){var a=this,s=tu();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(u){a.options.ns.indexOf(u)<0&&a.options.ns.push(u)}),this.loadResources(function(u){s.resolve(),o&&o(u)}),s):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var a=tu();typeof i=="string"&&(i=[i]);var s=this.options.preload||[],u=i.filter(function(l){return s.indexOf(l)<0});return u.length?(this.options.preload=s.concat(u),this.loadResources(function(l){a.resolve(),o&&o(l)}),a):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services&&this.services.languageUtils||new uC(vC());return o.indexOf(a.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rc,s=Sn(Sn(Sn({},this.options),o),{isClone:!0}),u=new r(s);(o.debug!==void 0||o.prefix!==void 0)&&(u.logger=u.logger.clone(o));var l=["store","services","language"];return l.forEach(function(c){u[c]=i[c]}),u.services=Sn({},this.services),u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u.translator=new sC(u.services,u.options),u.translator.on("*",function(c){for(var f=arguments.length,h=new Array(f>1?f-1:0),d=1;d0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new uh(e,t)});var ar=uh.createInstance();ar.createInstance=uh.createInstance;ar.createInstance;ar.dir;ar.init;ar.loadResources;ar.reloadResources;ar.use;ar.changeLanguage;ar.getFixedT;ar.t;ar.exists;ar.setDefaultNamespace;ar.hasLoadedNamespace;ar.loadNamespaces;ar.loadLanguages;ar.use(TQ).init({resources:v6||{},lng:Wo[m6]||"zhCn",fallbackLng:"zhCn",interpolation:{escapeValue:!1}}).then(()=>console.log("WebGAL i18n Ready!"));Mn.render(S.jsx(Y.StrictMode,{children:S.jsx(PQ,{children:S.jsx(rme,{})})}),document.getElementById("root"));export{dr as C,Pn as S,pe as T,O as W,Fme as r}; + )`},children:[S.jsx("div",{id:"miniAvatar",className:g("miniAvatarContainer",Wt.miniAvatarContainer),children:l!==""&&S.jsx("img",{className:g("miniAvatarImg",Wt.miniAvatarImg),alt:"miniAvatar",src:l})}),c!==""&&S.jsx("div",{className:g("TextBox_showName",Wt.TextBox_showName),style:{fontSize:"200%",background:`rgba(11, 52, 110, ${v/100*.9})`,border:`4px solid rgba(255, 255, 255, ${v/100*.75})`,boxShadow:`3px 3px 10px rgba(100, 100, 100, ${v/100*.5})`},children:c.split("").map((y,_)=>S.jsx("span",{style:{position:"relative"},children:S.jsxs("span",{className:Wt.zhanwei,children:[y,S.jsx("span",{className:g("outerName",Wt.outerName),children:y}),d&&S.jsx("span",{className:g("innerName",Wt.innerName),children:y})]})},y+_))},c),S.jsx("div",{className:g("text",Wt.text),style:{fontSize:u,flexFlow:"column",overflow:"hidden",paddingLeft:"0.1em"},children:m})]})})}const tL=navigator.userAgent,Bve=/firefox/i.test(tL),jve=/^((?!chrome|android).)*safari/i.test(tL),$ve=()=>{const[e,t]=$.useState(!0);$.useEffect(()=>{const y=()=>{const b=window.innerHeight,w=window.innerWidth,T=b/1440,k=w/2560,A=w/1440,P=b/2560;[T,k,A,P].forEach(F=>{F<=.2?t(!1):t(!0)})};return window.addEventListener("resize",y),y(),()=>{window.removeEventListener("resize",y)}},[]);const r=ye(y=>y.stage),n=ye(y=>y.userData),i=Tx(n.optionData.textSpeed),o=Ek(n.optionData.textSpeed);let a=P_(n.optionData.textSize)+"%";const s=JN(),u=r.showText!==""||r.showName!=="";let l=n.optionData.textSize;u&&r.showTextSize!==-1&&(a=P_(r.showTextSize)+"%",l=r.showTextSize);const c=jd(n.optionData.textSize).with(_n.small,()=>3).with(_n.medium,()=>2).with(_n.large,()=>2).default(()=>2),f=qb(r.showText,c),h=r.showName,d=r.currentConcatDialogPrev,v=r.currentDialogKey,g=r.miniAvatar,p=n.optionData.textboxOpacity,m=eL;return S.jsx(m,{textArray:f,isText:u,textDelay:i,showName:h,currentConcatDialogPrev:d,fontSize:a,currentDialogKey:v,isSafari:jve,isFirefox:Bve,miniAvatar:g,textDuration:o,font:s,textSizeState:l,lineLimit:c,isUseStroke:e,textboxOpacity:p})};function BC(e){return!!e.match(/[\u4e00-\u9fa5]|[\u0800-\u4e00]|[\uac00-\ud7ff]/)}function qb(e,t,r){return e.split("|").map(a=>Gve(a)).map(a=>{const s=[];return a.forEach((u,l)=>{jd(u.type).with("SegmentType.String",()=>{const c=Uve(u.value);s.push(...c)}).endsWith("SegmentType.Link",()=>{const c=u.value,f=S.jsxs("ruby",{children:[c.text,S.jsx("rt",{children:c.link})]},l+c.text);s.push(f)})}),s}).slice(0,r?void 0:t)}function Uve(e){if(!e)return[];const t=[];let r="",n=BC(e[0]);const i=o=>/[!-\/:-@\[-`{-~\u2000-\u206F\u3000-\u303F\uff00-\uffef]/g.test(o);for(const o of e)if(o===" ")r&&(t.push(r),r=""),t.push(" "),n=!1;else if(BC(o)&&!i(o))!n&&r&&(t.push(r),r=""),t.push(o),n=!0;else{if(i(o)){r?(r+=o,t.push(r),r=""):t.length>0?t[t.length-1]+=o:t.push(o);continue}n&&r&&(t.push(r),r=""),r+=o,n=!1}return r&&t.push(r),t}function Gve(e){const t=/(\[(.*?)\]\((.*?)\))|([^\[\]]+)/g,r=[];let n;for(;(n=t.exec(e))!==null;)if(n[1]){const i=n[2],o=n[3];r.push({type:"SegmentType.Link",value:{text:i,link:o}})}else{const i=n[0];r.push({type:"SegmentType.String",value:i})}return r}const zve=e=>{const t=kr("menu.options.pages.display.options."),r=ye(m=>m.userData),i=ye(m=>m.stage).bgName,o=Tx(r.optionData.textSpeed),a=Ek(r.optionData.textSpeed),s=r.optionData.textboxOpacity,u=P_(r.optionData.textSize)+"%",l=JN(),c=navigator.userAgent,f=/firefox/i.test(c),h=/^((?!chrome|android).)*safari/i.test(c),d=t("textPreview.text"),v=qb(d,3),g=eL,p={textArray:v,isText:!0,textDelay:o,showName:t("textPreview.title"),currentConcatDialogPrev:"",fontSize:u,currentDialogKey:"",isSafari:h,isFirefox:f,miniAvatar:"",textDuration:a,font:l,textSizeState:u,lineLimit:3,isUseStroke:!0,textboxOpacity:s};return S.jsx("div",{className:DC.textPreviewMain,style:{background:i?`bottom / cover no-repeat url(${i})`:"rgba(0, 0, 0, 0.1)"},children:S.jsx("div",{className:DC.textbox,children:S.jsx(g,{...p})},`previewTextbox-${o}`)})};const Ta=e=>{const{playSeEnter:t}=_r();return $.useEffect(()=>{setTimeout(()=>{const r=document.getElementById(e.uniqueID);r!==null&&r.setAttribute("value",e.initValue.toString())},1)},[]),S.jsx("div",{className:"Option_WebGAL_slider",children:S.jsx("input",{id:e.uniqueID,type:"range",onChange:e.onChange,onFocus:t,onMouseEnter:t})})};function Hve(){const e=ye(n=>n.userData),t=Ht(),r=kr("menu.options.pages.display.options.");return S.jsxs("div",{className:dr.Options_main_content_half,children:[S.jsx(ar,{title:r("fullScreen.title"),children:S.jsx(yi,{textList:r("fullScreen.options.on","fullScreen.options.off"),functionList:[()=>{t(ot({key:"fullScreen",value:Vn.on})),$e()},()=>{t(ot({key:"fullScreen",value:Vn.off})),$e()}],currentChecked:e.optionData.fullScreen})},"fullScreen"),S.jsx(ar,{title:r("textSpeed.title"),children:S.jsx(yi,{textList:r("textSpeed.options.slow","textSpeed.options.medium","textSpeed.options.fast"),functionList:[()=>{t(ot({key:"textSpeed",value:vr.slow})),$e()},()=>{t(ot({key:"textSpeed",value:vr.normal})),$e()},()=>{t(ot({key:"textSpeed",value:vr.fast})),$e()}],currentChecked:e.optionData.textSpeed})},"textSpeed"),S.jsx(ar,{title:r("textSize.title"),children:S.jsx(yi,{textList:r("textSize.options.small","textSize.options.medium","textSize.options.large"),functionList:[()=>{t(ot({key:"textSize",value:_n.small})),$e()},()=>{t(ot({key:"textSize",value:_n.medium})),$e()},()=>{t(ot({key:"textSize",value:_n.large})),$e()}],currentChecked:e.optionData.textSize})},"textSize"),S.jsx(ar,{title:r("textFont.title"),children:S.jsx(yi,{textList:r("textFont.options.siYuanSimSun","textFont.options.SimHei","textFont.options.lxgw"),functionList:[()=>{t(ot({key:"textboxFont",value:Hn.song})),$e()},()=>{t(ot({key:"textboxFont",value:Hn.hei})),$e()},()=>{t(ot({key:"textboxFont",value:Hn.lxgw})),$e()}],currentChecked:e.optionData.textboxFont})},"textFont"),S.jsx(ar,{title:r("textboxOpacity.title"),children:S.jsx(Ta,{initValue:e.optionData.textboxOpacity,uniqueID:r("textboxOpacity.title"),onChange:n=>{const i=n.target.value;t(ot({key:"textboxOpacity",value:Number(i)})),$e()}})},"textboxOpacity"),S.jsx(ar,{full:!0,title:r("textPreview.title"),children:S.jsx(zve,{})},"textPreview")]})}function Vve(){const e=ye(n=>n.userData),t=Ht(),r=kr("menu.options.pages.sound.options.");return S.jsxs("div",{className:dr.Options_main_content_half,children:[S.jsx(ar,{title:r("volumeMain.title"),children:S.jsx(Ta,{initValue:e.optionData.volumeMain,uniqueID:r("volumeMain.title"),onChange:n=>{const i=n.target.value;t(ot({key:"volumeMain",value:Number(i)})),$e()}})},"option4"),S.jsx(ar,{title:r("vocalVolume.title"),children:S.jsx(Ta,{initValue:e.optionData.vocalVolume,uniqueID:r("vocalVolume.title"),onChange:n=>{const i=n.target.value;t(ot({key:"vocalVolume",value:Number(i)})),$e()}})},"option5"),S.jsx(ar,{title:r("bgmVolume.title"),children:S.jsx(Ta,{initValue:e.optionData.bgmVolume,uniqueID:r("bgmVolume.title"),onChange:n=>{const i=n.target.value;t(ot({key:"bgmVolume",value:Number(i)})),$e()}})},"option6"),S.jsx(ar,{title:r("seVolume.title"),children:S.jsx(Ta,{initValue:e.optionData.seVolume,uniqueID:r("seVolume.title"),onChange:n=>{const i=n.target.value;t(ot({key:"seVolume",value:Number(i)})),$e()}})},"option7"),S.jsx(ar,{title:r("uiSeVolume.title"),children:S.jsx(Ta,{initValue:e.optionData.uiSeVolume,uniqueID:r("uiSeVolume.title"),onChange:n=>{const i=n.target.value;t(ot({key:"uiSeVolume",value:Number(i)})),$e()}})},"option8"),S.jsx(ar,{title:r("voiceOption.title"),children:S.jsx(yi,{textList:r("voiceStop.title","voiceContinue.title"),functionList:[()=>{t(ot({key:"voiceInterruption",value:hl.yes})),$e()},()=>{t(ot({key:"voiceInterruption",value:hl.no})),$e()}],currentChecked:e.optionData.voiceInterruption})},"option9")]})}const Wve=()=>{const{playSeEnter:e,playSeSwitch:t}=_r(),r=wn(0);$.useEffect(gl,[]);function n(o){return o===r.value?dr.Options_page_button+" "+dr.Options_page_button_active:dr.Options_page_button}const i=kr("menu.options.");return S.jsxs("div",{className:dr.Options_main,children:[S.jsx("div",{className:dr.Options_top,children:S.jsx("div",{className:dr.Options_title,children:S.jsx("div",{className:dr.Option_title_text,children:i("title")})})}),S.jsxs("div",{className:dr.Options_page_container,children:[S.jsxs("div",{className:dr.Options_button_list,children:[S.jsx("div",{onClick:()=>{r.set(0),t()},className:n(0),onMouseEnter:e,children:i("pages.system.title")}),S.jsx("div",{onClick:()=>{r.set(1),t()},className:n(1),onMouseEnter:e,children:i("pages.display.title")}),S.jsx("div",{onClick:()=>{r.set(2),t()},className:n(2),onMouseEnter:e,children:i("pages.sound.title")})]}),S.jsxs("div",{className:dr.Options_main_content,children:[r.value===1&&S.jsx(Hve,{}),r.value===0&&S.jsx(_ve,{}),r.value===2&&S.jsx(Vve,{})]})]})]})},qve=()=>{const e=ye(r=>r.GUI);let t;switch(e.currentMenuTag){case Ze.Save:t=S.jsx($pe,{});break;case Ze.Load:t=S.jsx(Upe,{});break;case Ze.Option:t=S.jsx(Wve,{});break}return S.jsx(S.Fragment,{children:e.showMenuPanel&&S.jsxs("div",{className:NC.Menu_main,children:[S.jsx("div",{className:NC.Menu_TagContent,children:t}),S.jsx(lpe,{})]})})},Xve="_MainStage_main_9enex_1",Yve="_MainStage_main_container_9enex_10",Kve="_MainStage_bgContainer_9enex_17",Zve="_MainStage_showBgSoftly_9enex_1",Qve="_MainStage_bgContainer_Settled_9enex_27",Jve="_MainStage_oldBgContainer_9enex_37",eme="_MainStage_oldBgFadeout_9enex_1",tme="_MainStage_oldBgContainer_Settled_9enex_47",rme="_pixiContainer_9enex_72",nme="_chooseContainer_9enex_77",km={MainStage_main:Xve,MainStage_main_container:Yve,MainStage_bgContainer:Kve,MainStage_showBgSoftly:Zve,MainStage_bgContainer_Settled:Qve,MainStage_oldBgContainer:Jve,MainStage_oldBgFadeout:eme,MainStage_oldBgContainer_Settled:tme,pixiContainer:rme,chooseContainer:nme},ime=()=>{var g;const e=ye(p=>p.stage),t=ye(p=>p.GUI.titleBgm),r=ye(p=>p.GUI.showTitle),n=ye(p=>p.userData),i=n.optionData.volumeMain,o=i*.01*n.optionData.vocalVolume*.01*e.vocalVolume*.01,a=i*.01*n.optionData.bgmVolume*.01*e.bgm.volume*.01,s=e.bgm.enter,u=e.uiSe,l=i*.01*(((g=n.optionData)==null?void 0:g.seVolume)??100)*.01,c=i*.01*(n.optionData.uiSeVolume??50)*.01,f=ye(p=>p.GUI.isEnterGame),[h,d]=$.useState(setTimeout(()=>{},0)),v=(p,m,y)=>{y>=0?p.volume=0:p.volume=m;const _=10,x=m/y*_,b=()=>{const w=setTimeout(()=>{p.volume+x>=m?p.volume=m:p.volume+x<=0?(p.volume=0,B.dispatch(Ee({key:"bgm",value:{src:"",enter:0,volume:100}}))):(p.volume+=x,b())},_);d(w)};b()};return $.useEffect(()=>{clearTimeout(h);const p=document.getElementById("currentBgm");p&&(s===0?p.volume=a:v(p,a,s))},[r,t,e.bgm.src,a,s]),$.useEffect(()=>{ne.debug(`设置背景音量:${a}`)},[a]),$.useEffect(()=>{ne.debug(`设置背景音量淡入时间: ${s}`)},[s]),$.useEffect(()=>{ne.debug(`设置语音音量:${o}`);const p=document.getElementById("currentVocal");p&&(p.volume=o.toString())},[o]),$.useEffect(()=>{if(u==="")return;const p=document.createElement("audio");p.src=u,p.loop=!1,isNaN(c)?(ne.error("UI SE Vol is NaN"),p.volume=isNaN(l)?i/100:l/100):p.volume=c,p.play(),p.addEventListener("ended",()=>{p.remove()}),B.dispatch(Ee({key:"uiSe",value:""}))},[u]),$.useEffect(()=>{ne.debug(`设置音效音量: ${l}`)},[l]),$.useEffect(()=>{ne.debug(`设置用户界面音效音量: ${c}`)},[c]),S.jsxs("div",{children:[S.jsx("audio",{id:"currentBgm",src:r?t:e.bgm.src,loop:!0,autoPlay:f},r.toString()+t),S.jsx("audio",{id:"currentVocal",src:e.playVocal})]})},ome=()=>{const e=ye(i=>i.stage);let t="100%",r="100%",n="0";return e.enableFilm!==""&&(r="76%",n="12%"),S.jsx("div",{className:In.FullScreenPerform_main,style:{width:t,height:r,top:n},children:S.jsx("div",{id:"videoContainer"})})},ame="_TextBox_EventHandler_449dq_2",sme="_TextBox_main_449dq_10",ume="_showSoftly_449dq_1",lme="_TextBox_textElement_449dq_38",cme="_TextBox_textElement_start_449dq_43",fme="_TextDelayShow_449dq_1",hme="_TextBox_textElement_Settled_449dq_48",dme="_TextBox_showName_449dq_52",pme="_miniAvatarContainer_449dq_68",vme="_miniAvatarImg_449dq_76",Im={TextBox_EventHandler:ame,TextBox_main:sme,showSoftly:ume,TextBox_textElement:lme,TextBox_textElement_start:cme,TextDelayShow:fme,TextBox_textElement_Settled:hme,TextBox_showName:dme,miniAvatarContainer:pme,miniAvatarImg:vme},mme=()=>{const e=ye(a=>a.stage),t=ye(a=>a.userData);$.useEffect(()=>{});const r=TG.textInitialDelay-20*t.optionData.textSpeed,n=t.optionData.textSize*50+200+"%",o=e.showText.split("").map((a,s)=>{let u=s*r,l=e.currentConcatDialogPrev.length;return e.currentConcatDialogPrev!==""&&s>=l&&(u=u-l*r),s{var n,i,o;const r="bg-main";if(t!==""){const a=(n=O.gameplay.pixiStage)==null?void 0:n.getStageObjByKey(r);a&&a.sourceUrl!==t&&jC(a),(i=O.gameplay.pixiStage)==null||i.addBg(r,t),ec(t),ne.debug("重设背景");const{duration:s,animation:u}=Ri("bg-main","enter",!0);O.gameplay.pixiStage.registerPresetAnimation(u,"bg-main-softin",r,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects("bg-main-softin"),s)}else{const a=(o=O.gameplay.pixiStage)==null?void 0:o.getStageObjByKey(r);a&&jC(a)}},[t])}function jC(e){var i,o;(i=O.gameplay.pixiStage)==null||i.removeAnimationWithSetEffects("bg-main-softin");const t=e.key;e.key="bg-main-off",(o=O.gameplay.pixiStage)==null||o.removeStageObjectByKey(t);const{duration:r,animation:n}=Ri("bg-main-off","exit",!0);O.gameplay.pixiStage.registerAnimation(n,"bg-main-softoff","bg-main-off"),setTimeout(()=>{var a,s;(a=O.gameplay.pixiStage)==null||a.removeAnimation("bg-main-softoff"),(s=O.gameplay.pixiStage)==null||s.removeStageObjectByKey("bg-main-off")},r)}function yme(e){const{figNameLeft:t,figName:r,figNameRight:n,freeFigure:i,live2dMotion:o,live2dExpression:a}=e;$.useEffect(()=>{var s;for(const u of o)(s=O.gameplay.pixiStage)==null||s.changeModelMotionByKey(u.target,u.motion)},[o]),$.useEffect(()=>{var s;for(const u of a)(s=O.gameplay.pixiStage)==null||s.changeModelExpressionByKey(u.target,u.expression)},[a]),$.useEffect(()=>{var l,c,f,h,d;const s="fig-center",u="fig-center-softin";if(r!==""){const v=(l=O.gameplay.pixiStage)==null?void 0:l.getStageObjByKey(s);v&&v.sourceUrl!==r&&ui(v,u,e.effects),(c=O.gameplay.pixiStage)==null||c.addFigure(s,r,"center"),/.json$/.test(r)&&Jc(s,r,"center",((f=o.find(y=>y.target===s))==null?void 0:f.motion)??"",((h=a.find(y=>y.target===s))==null?void 0:h.expression)??""),ne.debug("中立绘已重设");const{duration:p,animation:m}=Ri(s,"enter");O.gameplay.pixiStage.registerPresetAnimation(m,u,s,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(u),p)}else{ne.debug("移除中立绘");const v=(d=O.gameplay.pixiStage)==null?void 0:d.getStageObjByKey(s);v&&v.sourceUrl!==r&&ui(v,u,e.effects)}},[r]),$.useEffect(()=>{var l,c,f,h,d;const s="fig-left",u="fig-left-softin";if(t!==""){const v=(l=O.gameplay.pixiStage)==null?void 0:l.getStageObjByKey(s);v&&v.sourceUrl!==t&&ui(v,u,e.effects),(c=O.gameplay.pixiStage)==null||c.addFigure(s,t,"left"),/.json$/.test(t)&&Jc(s,t,"left",((f=o.find(y=>y.target===s))==null?void 0:f.motion)??"",((h=a.find(y=>y.target===s))==null?void 0:h.expression)??""),ne.debug("左立绘已重设");const{duration:p,animation:m}=Ri(s,"enter");O.gameplay.pixiStage.registerPresetAnimation(m,u,s,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(u),p)}else{ne.debug("移除左立绘");const v=(d=O.gameplay.pixiStage)==null?void 0:d.getStageObjByKey(s);v&&v.sourceUrl!==t&&ui(v,u,e.effects)}},[t]),$.useEffect(()=>{var l,c,f,h,d;const s="fig-right",u="fig-right-softin";if(n!==""){const v=(l=O.gameplay.pixiStage)==null?void 0:l.getStageObjByKey(s);v&&v.sourceUrl!==n&&ui(v,u,e.effects),(c=O.gameplay.pixiStage)==null||c.addFigure(s,n,"right"),/.json$/.test(n)&&Jc(s,n,"right",((f=o.find(y=>y.target===s))==null?void 0:f.motion)??"",((h=a.find(y=>y.target===s))==null?void 0:h.expression)??""),ne.debug("右立绘已重设");const{duration:p,animation:m}=Ri(s,"enter");O.gameplay.pixiStage.registerPresetAnimation(m,u,s,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(u),p)}else{const v=(d=O.gameplay.pixiStage)==null?void 0:d.getStageObjByKey(s);v&&v.sourceUrl!==n&&ui(v,u,e.effects)}},[n]),$.useEffect(()=>{var u,l,c,f,h,d,v;for(const g of i){const p=`${g.key}`,m=`${g.key}-softin`;if(g.name!==""){const y=(u=O.gameplay.pixiStage)==null?void 0:u.getStageObjByKey(p);if(y){if(y.sourceUrl!==g.name){ui(y,m,e.effects),(l=O.gameplay.pixiStage)==null||l.addFigure(p,g.name,g.basePosition),ne.debug(`${g.key}立绘已重设`);const{duration:_,animation:x}=Ri(p,"enter");O.gameplay.pixiStage.registerPresetAnimation(x,m,p,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(m),_)}}else{(c=O.gameplay.pixiStage)==null||c.addFigure(p,g.name,g.basePosition),/.json$/.test(g.name)&&Jc(p,g.name,g.basePosition,((f=o.find(w=>w.target===p))==null?void 0:f.motion)??"",((h=a.find(w=>w.target===p))==null?void 0:h.expression)??""),ne.debug(`${g.key}立绘已重设`);const{duration:x,animation:b}=Ri(p,"enter");O.gameplay.pixiStage.registerPresetAnimation(b,m,p,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(m),x)}}else{const y=(d=O.gameplay.pixiStage)==null?void 0:d.getStageObjByKey(p);y&&y.sourceUrl!==g.name&&ui(y,m,e.effects)}}const s=(v=O.gameplay.pixiStage)==null?void 0:v.getFigureObjects();if(s){for(const g of s)if(!(g.key==="fig-left"||g.key==="fig-center"||g.key==="fig-right"||g.key.endsWith("-off"))){const p=g.key;if(i.findIndex(y=>y.key===p)<0){const y=`${g.key}-softin`;ui(g,y,e.effects)}}}},[i])}function ui(e,t,r){var u,l,c;if((u=O.gameplay.pixiStage)==null||u.removeAnimationWithSetEffects(t),O.gameplay.isFast){ne.info("快速模式,立刻关闭立绘"),(l=O.gameplay.pixiStage)==null||l.removeStageObjectByKey(e.key);return}const n=e.key;e.key=e.key+"-off",(c=O.gameplay.pixiStage)==null||c.removeStageObjectByKey(n);const i=e.key,o=i+"-softoff",{duration:a,animation:s}=Ri(i,"exit");O.gameplay.pixiStage.registerPresetAnimation(s,o,i,r),setTimeout(()=>{var f,h;(f=O.gameplay.pixiStage)==null||f.removeAnimation(o),(h=O.gameplay.pixiStage)==null||h.removeStageObjectByKey(i)},a)}function Jc(...e){}function _me(e){const t=e.effects;setTimeout(()=>{xme(t)},10)}function xme(e){var r,n,i,o;const t=((r=O.gameplay.pixiStage)==null?void 0:r.getAllStageObj())??[];for(const a of t){const s=a.key,u=e.find(c=>c.target===s);if(!(((n=O.gameplay.pixiStage)==null?void 0:n.getAllLockedObject())??[]).includes(s))if(u){const c=(i=O.gameplay.pixiStage)==null?void 0:i.getStageObjByKey(s);if(c){const f=c.pixiContainer;Object.assign(f,$C(u.transform))}}else{const c=(o=O.gameplay.pixiStage)==null?void 0:o.getStageObjByKey(s);if(c){const f=c.pixiContainer;Object.assign(f,$C(lx))}}}}function $C(e){if(!e)return{};const{position:t,...r}=e;return{...r,x:t.x,y:t.y}}function bme(){const e=ye(t=>t.stage);return gme(e),yme(e),_me(e),S.jsx("div",{style:{display:"none"}})}const Sme="_introContainer_119k8_1",wme={introContainer:Sme};function Eme(){return S.jsx("div",{className:wme.introContainer,id:"introContainer"})}function UC(e){const t=document.getElementById("textBoxMain");if(!t)return!1;let r=t.getBoundingClientRect();return e.clientX>r.left&&e.clientXr.top&&e.clientY{n(Me({component:"controlsVisibility",visibility:!1}))},1e3)):Tme(e,r,n)}const Ame=()=>{const e=ye(n=>n.stage),t=ye(n=>n.GUI),r=Ht();return Gte(),S.jsxs("div",{className:km.MainStage_main,children:[S.jsx(ome,{}),S.jsx(bme,{}),S.jsx("div",{id:"pixiContianer",className:km.pixiContainer,style:{zIndex:Vb?"-5":void 0}}),S.jsx("div",{id:"chooseContainer",className:km.chooseContainer}),t.showTextBox&&e.enableFilm===""&&!e.isDisableTextbox&&S.jsx($ve,{}),t.showTextBox&&e.enableFilm!==""&&S.jsx(mme,{}),S.jsx(ime,{}),S.jsx("div",{onClick:()=>{if(!t.showTextBox){r(Me({component:"showTextBox",visibility:!0}));return}Hx(),Vt()},onDoubleClick:()=>{O.events.fullscreenDbClick.emit()},id:"FullScreenClick",style:{width:"100%",height:"100%",position:"absolute",zIndex:"12",top:"0"},onMouseMove:n=>!t.showControls&&Ome(n,e,t,r)}),S.jsx(Eme,{})]})},Pme=()=>{const e=kr("gaming."),t=2.5,{i18n:r}=Ud(),{playSeEnter:n,playSeClick:i,playSeDialogOpen:o}=_r(),s=r.language==="fr";let u=42,l="150%";s&&(l="125%",u=40);const c=ye(m=>m.GUI),f=ye(m=>m.stage),h=Ht(),d=(m,y)=>{h(Me({component:m,visibility:y}))},v=m=>{h(jo(m))},g=ye(m=>m.userData.saveData);let p=S.jsx("div",{style:{height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:S.jsx("div",{style:{fontSize:"125%"},children:e("noSaving")})});if(g[0]){const m=g[0];p=S.jsxs("div",{className:he.slPreviewMain,children:[S.jsx("div",{className:he.imgContainer,children:S.jsx("img",{style:{height:"100%"},alt:"q-save-preview image",src:m.previewImage})}),S.jsxs("div",{className:he.textContainer,children:[S.jsx("div",{children:m.nowStageState.showName}),S.jsx("div",{style:{fontSize:"75%",color:"rgb(55,60,56)"},children:m.nowStageState.showText})]})]})}return S.jsx(S.Fragment,{children:c.showTextBox&&f.enableFilm===""&&S.jsxs("div",{className:he.main,style:{visibility:c.controlsVisibility?"visible":"hidden"},children:[c.showTextBox&&S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{d("showTextBox",!1),i()},onMouseEnter:n,children:[S.jsx(Hde,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.hide")})]}),!c.showTextBox&&S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{d("showTextBox",!0),i()},onMouseEnter:n,children:[S.jsx(Vde,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.show")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{d("showBacklog",!0),d("showTextBox",!1),i()},onMouseEnter:n,children:[S.jsx(Nde,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.backlog")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{let m=document.getElementById("currentVocal");m!==null&&(m.currentTime=0,m.pause(),m==null||m.play()),i()},onMouseEnter:n,children:[S.jsx(Wde,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.replay")})]}),S.jsxs("span",{id:"Button_ControlPanel_auto",className:he.singleButton,style:{fontSize:l},onClick:()=>{SI(),i()},onMouseEnter:n,children:[S.jsx(YN,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.auto")})]}),S.jsxs("span",{id:"Button_ControlPanel_fast",className:he.singleButton,style:{fontSize:l},onClick:()=>{CI(),i()},onMouseEnter:n,children:[S.jsx(Mde,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.forward")})]}),S.jsxs("span",{className:he.singleButton+" "+he.fastsave,style:{fontSize:l},onClick:()=>{Hg(0),i()},onMouseEnter:n,children:[S.jsx(Lde,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.quicklySave")}),S.jsx("div",{className:he.fastSlPreview+" "+he.fastSPreview,children:p})]}),S.jsxs("span",{className:he.singleButton+" "+he.fastload,style:{fontSize:l},onClick:()=>{Qk(0),i()},onMouseEnter:n,children:[S.jsx(Fde,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.quicklyLoad")}),S.jsx("div",{className:he.fastSlPreview+" "+he.fastLPreview,children:p})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{v(Ze.Save),d("showMenuPanel",!0),i()},onMouseEnter:n,children:[S.jsx(KN,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.save")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{v(Ze.Load),d("showMenuPanel",!0),i()},onMouseEnter:n,children:[S.jsx(qN,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.load")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{v(Ze.Option),d("showMenuPanel",!0),i()},onMouseEnter:n,children:[S.jsx(ZN,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.options")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{o(),Do({title:e("buttons.titleTips"),leftText:e("$common.yes"),rightText:e("$common.no"),leftFunc:()=>{Wb()},rightFunc:()=>{}})},onMouseEnter:n,children:[S.jsx(XN,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.title")})]}),S.jsx("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{upe(),i()},onMouseEnter:n,children:c.showControls?S.jsx(Ude,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}):S.jsx(Yde,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t})})]})})},kme=()=>{var h,d;const e=kr("gaming."),{playSeEnter:t,playSeClick:r}=_r(),n=ye(v=>v.GUI),i=Ht(),o="0.8em",[a,s]=$.useState(!1),[u,l]=$.useState(!1);let c=$.useRef();const f=$.useMemo(()=>{let v=[];for(let g=0;gS.jsx("div",{children:b.map((T,k)=>T==="
"?S.jsx("br",{},`br${k}`):T)},`backlog-line-${w}`)),x=S.jsxs("div",{className:qt.backlog_item,style:{animationDelay:`${20*(O.backlogManager.getBacklog().length-g)}ms`},children:[S.jsxs("div",{className:qt.backlog_func_area,children:[S.jsxs("div",{className:qt.backlog_item_button_list,children:[S.jsx("div",{onClick:b=>{r(),rJ(g),b.preventDefault(),b.stopPropagation()},onMouseEnter:t,className:qt.backlog_item_button_element,children:S.jsx(qde,{theme:"outline",size:o,fill:"#ffffff",strokeWidth:3})}),p.currentStageState.vocal?S.jsx("div",{onClick:()=>{r();const b=document.getElementById("backlog_audio_play_element_"+g);if(b){b.currentTime=0;const w=B.getState().userData,T=w.optionData.volumeMain;b.volume=T*.01*w.optionData.vocalVolume*.01,b==null||b.play()}},onMouseEnter:t,className:qt.backlog_item_button_element,children:S.jsx(Kde,{theme:"outline",size:o,fill:"#ffffff",strokeWidth:3})}):null]}),S.jsx("div",{className:qt.backlog_item_content_name,children:p.currentStageState.showName})]}),S.jsx("div",{className:qt.backlog_item_content,children:S.jsx("span",{className:qt.backlog_item_content_text,children:_})}),S.jsx("audio",{id:"backlog_audio_play_element_"+g,src:p.currentStageState.vocal})]},"backlogItem"+p.currentStageState.showText+p.saveScene.currentSentenceId);v.unshift(x)}return v},[((d=(h=O.backlogManager.getBacklog()[O.backlogManager.getBacklog().length-1])==null?void 0:h.saveScene)==null?void 0:d.currentSentenceId)??0]);return $.useEffect(()=>{n.showBacklog?(c.current&&clearTimeout(c.current),s(!1),l(!0),setTimeout(()=>{l(!1)},0)):c.current=setTimeout(()=>{s(!0),c.current=void 0},700+80)},[n.showBacklog]),S.jsx(S.Fragment,{children:S.jsxs("div",{className:` + ${n.showBacklog?qt.Backlog_main:qt.Backlog_main_out} + ${a?qt.Backlog_main_out_IndexHide:""} + `,children:[S.jsxs("div",{className:qt.backlog_top,children:[S.jsx(WN,{className:qt.backlog_top_icon,onClick:()=>{r(),i(Me({component:"showBacklog",visibility:!1})),i(Me({component:"showTextBox",visibility:!0}))},onMouseEnter:t,theme:"outline",size:"4em",fill:"#ffffff",strokeWidth:3}),S.jsx("div",{className:qt.backlog_title,onClick:()=>{ne.info("Rua! Testing")},children:e("buttons.backlog")})]}),n.showBacklog&&S.jsx("div",{className:`${qt.backlog_content} ${u?qt.Backlog_main_DisableScroll:""}`,children:f})]})})};function Ime(e){let t=[],r="";for(let n=0;ng.GUI.titleBgm),n=ye(g=>g.userData.appreciationData),i="Title_BGM",o=wn(!1);let a=i,s=-1;const u=39,l=o.value?"80%":"10%",c=n.bgm.length;n.bgm.forEach((g,p)=>{g.url===r&&(a=g.name,s=p)});const f=wn("");a!==i&&a!==f.value&&f.set(a);const h=Ht();function d(g){const p=n.bgm[g];f.set(p.name),h(ph({asset:"titleBgm",value:p.url}))}const v=n.bgm.map((g,p)=>{let m=at.bgmElement;return g.name===f.value&&(m=m+" "+at.bgmElement_active),S.jsx("div",{onClick:()=>{e(),f.set(g.name),h(ph({asset:"titleBgm",value:g.url}))},className:m,style:{animationDelay:`${p*150}ms`},onMouseEnter:t,children:g.name},g.name)});return S.jsxs("div",{className:at.bgmContainer,style:{maxHeight:l},children:[S.jsxs("div",{className:at.bgmPlayerMain,children:[S.jsx("div",{onClick:()=>{e(),s<=0?d(c-1):d(s-1)},onMouseEnter:t,className:at.bgmControlButton,children:S.jsx(Bde,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})}),S.jsx("div",{onClick:()=>{e();const g=document.getElementById("currentBgm");g==null||g.play().then()},onMouseEnter:t,className:at.bgmControlButton,children:S.jsx(YN,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})}),S.jsx("div",{onClick:()=>{e(),s>=c-1?d(0):d(s+1)},onMouseEnter:t,className:at.bgmControlButton,children:S.jsx(Dde,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})}),S.jsx("div",{onClick:()=>{e(),document.getElementById("currentBgm").pause()},onMouseEnter:t,className:at.bgmControlButton,children:S.jsx(Xde,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})}),S.jsx("div",{className:at.bgmName,children:a}),S.jsx("div",{onClick:()=>{e(),o.set(!o.value)},onMouseEnter:t,className:at.bgmControlButton,style:{marginLeft:"auto"},children:S.jsx(zde,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})})]}),o.value&&S.jsxs("div",{className:at.bgmListContainer,children:[" ",v]})]})}function nge(e){const t=wn(!1),{playSeEnter:r,playSeClick:n}=_r();return S.jsxs(S.Fragment,{children:[t.value&&S.jsx("div",{onClick:()=>{t.set(!t.value),n()},className:at.showFullContainer,onMouseEnter:r,children:S.jsx("div",{className:at.showFullCgMain,children:S.jsx("div",{style:{backgroundImage:`url('${e.imgUrl}')`,backgroundSize:"cover",backgroundPosition:"center",width:"100%",height:"100%"}})})}),S.jsx("div",{onClick:()=>{t.set(!t.value),n()},onMouseEnter:r,style:{animation:`cg_softIn_${e.transformDeg} 1.5s ease-out ${100+e.index*100}ms forwards `},className:at.cgElement,children:S.jsx("div",{style:{backgroundImage:`url('${e.imgUrl}')`,backgroundSize:"cover",backgroundPosition:"center",width:"100%",height:"100%"}})},e.name)]})}function ige(){const t=ye(l=>l.userData.appreciationData),r=Math.ceil(t.cg.length/8),n=wn(1),{playSeEnter:i,playSeClick:o}=_r(),a=[],s=t.cg.length;for(let l=(n.value-1)*8;l{n.set(l),o()},onMouseEnter:i,className:c,children:l},"nav"+l);u.push(f)}return S.jsxs("div",{className:at.cgMain,children:[S.jsx("div",{className:at.cgShowDiv,children:S.jsx("div",{className:at.cgShowDivWarpper,children:u})}),S.jsx("div",{className:at.cgContainer,children:a})]})}function oge(e,t){return Math.round(Math.random()*(t-e))+e}function age(){const{playSeClick:e}=_r(),t=ye(i=>i.GUI.showExtra),r=Ht(),n=kr("extra.");return S.jsx(S.Fragment,{children:t&&S.jsxs("div",{className:at.extra,children:[S.jsxs("div",{className:at.extra_top,children:[S.jsx(WN,{className:at.extra_top_icon,onClick:()=>{r(Me({component:"showExtra",visibility:!1})),e()},onMouseEnter:e,theme:"outline",size:"4em",fill:"#fff",strokeWidth:3}),S.jsx("div",{className:at.extra_title,children:n("title")})]}),S.jsxs("div",{className:at.mainContainer,children:[S.jsx(ige,{}),S.jsx(rge,{})]})]})})}const sge="_tag_yghix_2",uge="_container_yghix_17",lge="_showContainer_yghix_1",cge="_singleButton_yghix_33",fge="_button_text_yghix_37",Lt={tag:sge,container:uge,showContainer:lge,singleButton:cge,button_text:fge},hge=()=>{const e=wn(!1),t=ye(o=>o.stage),r=Ht(),n=(o,a)=>{r(Me({component:o,visibility:a}))},i=o=>{r(jo(o))};return S.jsx(S.Fragment,{children:t.enableFilm!==""&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:Lt.tag,onClick:()=>{e.set(!e.value)},children:S.jsx(jde,{theme:"outline",size:"32",fill:"#fff"})}),e.value&&S.jsxs("div",{className:Lt.container,children:[S.jsx("span",{className:Lt.singleButton,onClick:()=>{n("showBacklog",!0),n("showTextBox",!1),e.set(!e.value)},children:S.jsx("span",{className:Lt.button_text,children:"剧情回想 / BACKLOG"})}),S.jsx("span",{className:Lt.singleButton,onClick:()=>{e.set(!e.value);let o=document.getElementById("currentVocal");o!==null&&(o.currentTime=0,o.pause(),o==null||o.play())},children:S.jsx("span",{className:Lt.button_text,children:"重播语音 / REPLAY VOICE"})}),S.jsx("span",{id:"Button_ControlPanel_auto",className:Lt.singleButton,onClick:()=>{SI(),e.set(!e.value)},children:S.jsx("span",{className:Lt.button_text,children:"自动模式 / AUTO"})}),S.jsx("span",{id:"Button_ControlPanel_fast",className:Lt.singleButton,onClick:()=>{CI(),e.set(!e.value)},children:S.jsx("span",{className:Lt.button_text,children:"快进 / FAST"})}),S.jsx("span",{className:Lt.singleButton,onClick:()=>{e.set(!e.value),i(Ze.Save),n("showMenuPanel",!0)},children:S.jsx("span",{className:Lt.button_text,children:"存档 / SAVE"})}),S.jsx("span",{className:Lt.singleButton,onClick:()=>{e.set(!e.value),i(Ze.Load),n("showMenuPanel",!0)},children:S.jsx("span",{className:Lt.button_text,children:"读档 / LOAD"})}),S.jsx("span",{className:Lt.singleButton,onClick:()=>{e.set(!e.value),i(Ze.Option),n("showMenuPanel",!0)},children:S.jsx("span",{className:Lt.button_text,children:"选项 / OPTIONS"})}),S.jsx("span",{className:Lt.singleButton,onClick:()=>{e.set(!e.value),Wb()},children:S.jsx("span",{className:Lt.button_text,children:"标题 / TITLE"})})]})]})})},dge="_devPanelMain_11x6i_1",pge="_devPanelOpener_11x6i_13",GC={devPanelMain:dge,devPanelOpener:pge};function vge(){document.getElementById("pixiCanvas").toBlob(t=>{if(t){const r=document.createElement("a");document.body.append(r),r.download="screenshot",r.href=URL.createObjectURL(t),r.click(),r.remove()}},"image/png")}function mge(){function e(){return!!window.location.hash.match(/dev/)}const t=wn(!1),r=wn(window.location.hash),n=ye(u=>u.stage);$.useEffect(()=>{window.onhashchange=()=>{r.set(window.location.hash)}},[]);const i=e(),{t:o,i18n:a}=Ud(),s=S.jsxs(S.Fragment,{children:[S.jsx("div",{onClick:()=>vge(),children:"Save PIXI Screenshot"}),S.jsxs("div",{children:["Current Language:",a.language]}),S.jsx("div",{onClick:()=>{var u;return(u=O.gameplay.pixiStage)==null?void 0:u.removeAnimation("snow-Ticker")},children:"Remove Snow Ticker"}),S.jsx("div",{children:"Stage State"}),S.jsx("div",{children:JSON.stringify(n,null," ")})]});return S.jsxs(S.Fragment,{children:[i&&t.value&&S.jsxs("div",{className:GC.devPanelMain,children:[S.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[S.jsx("div",{onClick:()=>t.set(!1),style:{fontSize:"150%",padding:"0 0 0 15px",cursor:"pointer"},children:"×"}),S.jsx("div",{style:{padding:"0 0 0 15px",fontSize:"115%"},children:"WebGAL DEV PANEL"})]}),S.jsx("div",{style:{padding:"10px 10px 10px 10px",overflow:"auto"},children:s})]}),!t.value&&i&&S.jsx("div",{onClick:()=>t.set(!0),className:GC.devPanelOpener,children:"Open Dev Panel"})]})}const gge="_trans_8uz61_2",yge="_langWrapper_8uz61_10",_ge="_lang_8uz61_10",xge="_langSelect_8uz61_29",bge="_langSelectButton_8uz61_35",mu={trans:gge,langWrapper:yge,lang:_ge,langSelect:xge,langSelectButton:bge};function Sge(){const e=QN(),[t,r]=$.useState(!1);$.useEffect(()=>{(window==null?void 0:window.localStorage.getItem("lang"))?e(Number(window==null?void 0:window.localStorage.getItem("lang")),!1):r(!0)},[]);const n=i=>{r(!1),e(i)};return S.jsx(S.Fragment,{children:t&&S.jsx("div",{className:mu.trans,children:S.jsxs("div",{className:mu.langWrapper,children:[S.jsx("div",{className:mu.lang,children:"LANGUAGE SELECT"}),S.jsx("div",{className:mu.langSelect,children:Object.keys(lh).map(i=>S.jsx("div",{className:mu.langSelectButton,onClick:()=>n(ia[i]),children:lh[i]},i))})]})})})}const wge="_panic_overlay_main_1ysz4_1",Ege={panic_overlay_main:wge},Tge="_yoozle_blue_1r48o_1",Cge="_yoozle_red_1r48o_5",Oge="_yoozle_yellow_1r48o_9",Age="_yoozle_green_1r48o_13",Pge="_yoozle_e_rotate_1r48o_17",kge="_yoozle_container_1r48o_22",Ige="_yoozle_title_1r48o_28",Rge="_yoozle_search_1r48o_37",Nge="_yoozle_search_bar_1r48o_44",Lge="_yoozle_search_buttons_1r48o_51",Mge="_yoozle_button_1r48o_55",br={yoozle_blue:Tge,yoozle_red:Cge,yoozle_yellow:Oge,yoozle_green:Age,yoozle_e_rotate:Pge,yoozle_container:kge,yoozle_title:Ige,yoozle_search:Rge,yoozle_search_bar:Nge,yoozle_search_buttons:Lge,yoozle_button:Mge},Fge=()=>($.useEffect(()=>{const e="Yoozle Search",t=document.title;return document.title=e,()=>{document.title=t}},[]),S.jsxs("div",{className:br.yoozle_container,children:[S.jsx("div",{className:br.yoozle_title,children:S.jsxs("span",{children:[S.jsx("span",{className:br.yoozle_blue,style:{marginRight:"1px"},children:"Y"}),S.jsx("span",{className:br.yoozle_red,children:"o"}),S.jsx("span",{className:br.yoozle_yellow,children:"o"}),S.jsx("span",{className:br.yoozle_blue,children:"z"}),S.jsx("span",{className:br.yoozle_green,children:"l"}),S.jsx("span",{className:`${br.yoozle_red} ${br.yoozle_e_rotate}`,children:"e"})]})}),S.jsxs("div",{className:br.yoozle_search,children:[S.jsx("input",{className:br.yoozle_search_bar,type:"text",defaultValue:""}),S.jsxs("div",{className:br.yoozle_search_buttons,children:[S.jsx("input",{className:br.yoozle_button,type:"submit",value:"Yoozle Search"}),S.jsx("input",{className:br.yoozle_button,type:"submit",value:"Feeling Lucky"})]})]})]})),Dge=()=>{const e=ye(n=>n.GUI),[t,r]=$.useState(!1);return $.useEffect(()=>{r(e.showPanicOverlay)},[e.showPanicOverlay]),qn.createPortal(S.jsx("div",{className:t?Ege.panic_overlay_main:"",children:t&&S.jsx(Fge,{})}),document.querySelector("div#panic-overlay"))};function Bge(){const e=ye(i=>i.userData),t=ye(i=>i.GUI);Ht();const r=e.optionData.fullScreen,n=t.isEnterGame;$.useEffect(()=>{switch(r){case Vn.on:{n&&(document.documentElement.requestFullscreen(),La&&La.lock(["Escape","F11"]));break}case Vn.off:{document.fullscreenElement&&(document.exitFullscreen(),La&&La.unlock());break}}},[r])}function jge(){return $.useEffect(()=>{mde()},[]),Bge(),S.jsxs("div",{className:"App",children:[S.jsx(Sge,{}),S.jsx(Ame,{}),S.jsx(Pme,{}),S.jsx(hge,{}),S.jsx(kme,{}),S.jsx(rre,{}),S.jsx(sre,{}),S.jsx(age,{}),S.jsx(qve,{}),S.jsx(ope,{}),S.jsx(Dge,{}),S.jsx(mge,{})]})}function Zi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k_(e,t){return k_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},k_(e,t)}function np(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k_(e,t)}function oc(e,t){if(t&&($t(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zi(e)}function Zn(e){return Zn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zn(e)}function $ge(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Uge(e){return sI(e)||$ge(e)||uI(e)||lI()}function zC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function HC(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};Tn(this,e),this.init(t,r)}return Cn(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=r||Gge,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(r){this.debug=r}},{key:"log",value:function(){for(var r=arguments.length,n=new Array(r),i=0;i1?n-1:0),o=1;o-1?s.replace(/###/g,"."):s}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=n(o.shift());!e[a]&&r&&(e[a]=new r),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return i()?{}:{obj:e,k:n(o.shift())}}function WC(e,t,r){var n=Xb(e,t,Object),i=n.obj,o=n.k;i[o]=r}function Vge(e,t,r,n){var i=Xb(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],n&&(o[a]=o[a].concat(r)),n||o[a].push(r)}function kh(e,t){var r=Xb(e,t),n=r.obj,i=r.k;if(n)return n[i]}function Wge(e,t,r){var n=kh(e,r);return n!==void 0?n:kh(t,r)}function rL(e,t,r){for(var n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?r&&(e[n]=t[n]):rL(e[n],t[n],r):e[n]=t[n]);return e}function xa(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var qge={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Xge(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return qge[t]}):e}var ip=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Yge=[" ",",","?","!",";"];function Kge(e,t,r){t=t||"",r=r||"";var n=Yge.filter(function(s){return t.indexOf(s)<0&&r.indexOf(s)<0});if(n.length===0)return!0;var i=new RegExp("(".concat(n.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(r);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}function Ih(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var n=t.split(r),i=e,o=0;oo+a;)a++,s=n.slice(o,o+a).join(r),u=i[s];if(u===void 0)return;if(u===null)return null;if(t.endsWith(s)){if(typeof u=="string")return u;if(s&&typeof u[s]=="string")return u[s]}var l=n.slice(o+a).join(r);return l?Ih(u,l,r):void 0}i=i[n[o]]}return i}}function qC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ef(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Jge=function(e){np(r,e);var t=Zge(r);function r(n){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Tn(this,r),i=t.call(this),ip&&lo.call(Zi(i)),i.data=n||{},i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return Cn(r,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,l=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,c=[i,o];a&&typeof a!="string"&&(c=c.concat(a)),a&&typeof a=="string"&&(c=c.concat(u?a.split(u):a)),i.indexOf(".")>-1&&(c=i.split("."));var f=kh(this.data,c);return f||!l||typeof a!="string"?f:Ih(this.data&&this.data[i]&&this.data[i][o],a,u)}},{key:"addResource",value:function(i,o,a,s){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},l=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,c=[i,o];a&&(c=c.concat(l?a.split(l):a)),i.indexOf(".")>-1&&(c=i.split("."),s=o,o=c[1]),this.addNamespaces(o),WC(this.data,c,s),u.silent||this.emit("added",i,o,a,s)}},{key:"addResources",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var u in a)(typeof a[u]=="string"||Object.prototype.toString.apply(a[u])==="[object Array]")&&this.addResource(i,o,u,a[u],{silent:!0});s.silent||this.emit("added",i,o,a)}},{key:"addResourceBundle",value:function(i,o,a,s,u){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},c=[i,o];i.indexOf(".")>-1&&(c=i.split("."),s=a,a=o,o=c[1]),this.addNamespaces(o);var f=kh(this.data,c)||{};s?rL(f,a,u):f=ef(ef({},f),a),WC(this.data,c,f),l.silent||this.emit("added",i,o,a)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?ef(ef({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),a=o&&Object.keys(o)||[];return!!a.find(function(s){return o[s]&&Object.keys(o[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),r}(lo),nL={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,r,n,i,o){var a=this;return t.forEach(function(s){a.processors[s]&&(r=a.processors[s].process(r,n,i,o))}),r}};function XC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tr(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var YC={},KC=function(e){np(r,e);var t=eye(r);function r(n){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Tn(this,r),i=t.call(this),ip&&lo.call(Zi(i)),Hge(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,Zi(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=$n.create("translator"),i}return Cn(r,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var a=this.resolve(i,o);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(i,o){var a=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,u=o.ns||this.options.defaultNS||[],l=a&&i.indexOf(a)>-1,c=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!Kge(i,a,s);if(l&&!c){var f=i.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:i,namespaces:u};var h=i.split(a);(a!==s||a===s&&this.options.ns.indexOf(h[0])>-1)&&(u=h.shift()),i=h.join(s)}return typeof u=="string"&&(u=[u]),{key:i,namespaces:u}}},{key:"translate",value:function(i,o,a){var s=this;if($t(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),$t(o)==="object"&&(o=tr({},o)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var u=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,c=this.extractFromKey(i[i.length-1],o),f=c.key,h=c.namespaces,d=h[h.length-1],v=o.lng||this.language,g=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(v&&v.toLowerCase()==="cimode"){if(g){var p=o.nsSeparator||this.options.nsSeparator;return u?{res:"".concat(d).concat(p).concat(f),usedKey:f,exactUsedKey:f,usedLng:v,usedNS:d}:"".concat(d).concat(p).concat(f)}return u?{res:f,usedKey:f,exactUsedKey:f,usedLng:v,usedNS:d}:f}var m=this.resolve(i,o),y=m&&m.res,_=m&&m.usedKey||f,x=m&&m.exactUsedKey||f,b=Object.prototype.toString.apply(y),w=["[object Number]","[object Function]","[object RegExp]"],T=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,A=typeof y!="string"&&typeof y!="boolean"&&typeof y!="number";if(k&&y&&A&&w.indexOf(b)<0&&!(typeof T=="string"&&b==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var P=this.options.returnedObjectHandler?this.options.returnedObjectHandler(_,y,tr(tr({},o),{},{ns:h})):"key '".concat(f," (").concat(this.language,")' returned an object instead of string.");return u?(m.res=P,m):P}if(l){var F=b==="[object Array]",D=F?[]:{},H=F?x:_;for(var re in y)if(Object.prototype.hasOwnProperty.call(y,re)){var z="".concat(H).concat(l).concat(re);D[re]=this.translate(z,tr(tr({},o),{joinArrays:!1,ns:h})),D[re]===z&&(D[re]=y[re])}y=D}}else if(k&&typeof T=="string"&&b==="[object Array]")y=y.join(T),y&&(y=this.extendTranslation(y,i,o,a));else{var q=!1,le=!1,Ue=o.count!==void 0&&typeof o.count!="string",me=r.hasDefaultValue(o),Q=Ue?this.pluralResolver.getSuffix(v,o.count,o):"",L=o["defaultValue".concat(Q)]||o.defaultValue;!this.isValidLookup(y)&&me&&(q=!0,y=L),this.isValidLookup(y)||(le=!0,y=f);var V=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,ee=V&&le?void 0:y,ae=me&&L!==y&&this.options.updateMissing;if(le||q||ae){if(this.logger.log(ae?"updateKey":"missingKey",v,d,f,ae?L:y),l){var ge=this.resolve(f,tr(tr({},o),{},{keySeparator:!1}));ge&&ge.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var be=[],Se=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Se&&Se[0])for(var Ge=0;Ge1&&arguments[1]!==void 0?arguments[1]:{},s,u,l,c,f;return typeof i=="string"&&(i=[i]),i.forEach(function(h){if(!o.isValidLookup(s)){var d=o.extractFromKey(h,a),v=d.key;u=v;var g=d.namespaces;o.options.fallbackNS&&(g=g.concat(o.options.fallbackNS));var p=a.count!==void 0&&typeof a.count!="string",m=p&&!a.ordinal&&a.count===0&&o.pluralResolver.shouldUseIntlApi(),y=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",_=a.lngs?a.lngs:o.languageUtils.toResolveHierarchy(a.lng||o.language,a.fallbackLng);g.forEach(function(x){o.isValidLookup(s)||(f=x,!YC["".concat(_[0],"-").concat(x)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(f)&&(YC["".concat(_[0],"-").concat(x)]=!0,o.logger.warn('key "'.concat(u,'" for languages "').concat(_.join(", "),`" won't get resolved as namespace "`).concat(f,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),_.forEach(function(b){if(!o.isValidLookup(s)){c=b;var w=[v];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(w,v,b,x,a);else{var T;p&&(T=o.pluralResolver.getSuffix(b,a.count,a));var k="".concat(o.options.pluralSeparator,"zero");if(p&&(w.push(v+T),m&&w.push(v+k)),y){var A="".concat(v).concat(o.options.contextSeparator).concat(a.context);w.push(A),p&&(w.push(A+T),m&&w.push(A+k))}}for(var P;P=w.pop();)o.isValidLookup(s)||(l=P,s=o.getResource(b,x,P,a))}}))})}}),{res:s,usedKey:u,exactUsedKey:l,usedLng:c,usedNS:f}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,a,s):this.resourceStore.getResource(i,o,a,s)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a)&&o===a.substring(0,o.length)&&i[a]!==void 0)return!0;return!1}}]),r}(lo);function Nm(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ZC=function(){function e(t){Tn(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=$n.create("languageUtils")}return Cn(e,[{key:"getScriptPartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return null;var n=r.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}},{key:"getLanguagePartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return r;var n=r.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(r){if(typeof r=="string"&&r.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],i=r.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=Nm(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=Nm(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=Nm(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}},{key:"isSupportedCode",value:function(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}},{key:"getBestMatchFromCodes",value:function(r){var n=this;if(!r)return null;var i;return r.forEach(function(o){if(!i){var a=n.formatLanguageCode(o);(!n.options.supportedLngs||n.isSupportedCode(a))&&(i=a)}}),!i&&this.options.supportedLngs&&r.forEach(function(o){if(!i){var a=n.getLanguagePartFromCode(o);if(n.isSupportedCode(a))return i=a;i=n.options.supportedLngs.find(function(s){if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&s.indexOf(a)===0)return s})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(r,n){if(!r)return[];if(typeof r=="function"&&(r=r(n)),typeof r=="string"&&(r=[r]),Object.prototype.toString.apply(r)==="[object Array]")return r;if(!n)return r.default||[];var i=r[n];return i||(i=r[this.getScriptPartFromCode(n)]),i||(i=r[this.formatLanguageCode(n)]),i||(i=r[this.getLanguagePartFromCode(n)]),i||(i=r.default),i||[]}},{key:"toResolveHierarchy",value:function(r,n){var i=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],r),a=[],s=function(l){l&&(i.isSupportedCode(l)?a.push(l):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(l)))};return typeof r=="string"&&r.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(r))):typeof r=="string"&&s(this.formatLanguageCode(r)),o.forEach(function(u){a.indexOf(u)<0&&s(i.formatLanguageCode(u))}),a}}]),e}(),rye=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],nye={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}},iye=["v1","v2","v3"],QC={zero:0,one:1,two:2,few:3,many:4,other:5};function oye(){var e={};return rye.forEach(function(t){t.lngs.forEach(function(r){e[r]={numbers:t.nr,plurals:nye[t.fc]}})}),e}var aye=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Tn(this,e),this.languageUtils=t,this.options=r,this.logger=$n.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=oye()}return Cn(e,[{key:"addRule",value:function(r,n){this.rules[r]=n}},{key:"getRule",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(r,{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[r]||this.rules[this.languageUtils.getLanguagePartFromCode(r)]}},{key:"needsPlural",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(r,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(r,i).map(function(o){return"".concat(n).concat(o)})}},{key:"getSuffixes",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(r,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(a,s){return QC[a]-QC[s]}).map(function(a){return"".concat(n.options.prepend).concat(a)}):o.numbers.map(function(a){return n.getSuffix(r,a,i)}):[]}},{key:"getSuffix",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(r,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(n)):this.getSuffixRetroCompatible(o,n):(this.logger.warn("no plural rule found for: ".concat(r)),"")}},{key:"getSuffixRetroCompatible",value:function(r,n){var i=this,o=r.noAbs?r.plurals(n):r.plurals(Math.abs(n)),a=r.numbers[o];this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var s=function(){return i.options.prepend&&a.toString()?i.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1?s():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!iye.includes(this.options.compatibilityJSON)}}]),e}();function JC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pn(e){for(var t=1;t3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=Wge(e,t,r);return!o&&i&&typeof r=="string"&&(o=Ih(e,r,n),o===void 0&&(o=Ih(t,r,n))),o}var sye=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Tn(this,e),this.logger=$n.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(r){return r},this.init(t)}return Cn(e,[{key:"init",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r.interpolation||(r.interpolation={escapeValue:!0});var n=r.interpolation;this.escape=n.escape!==void 0?n.escape:Xge,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?xa(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?xa(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?xa(n.nestingPrefix):n.nestingPrefixEscaped||xa("$t("),this.nestingSuffix=n.nestingSuffix?xa(n.nestingSuffix):n.nestingSuffixEscaped||xa(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var r="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(r,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(r,n,i,o){var a=this,s,u,l,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function f(p){return p.replace(/\$/g,"$$$$")}var h=function(m){if(m.indexOf(a.formatSeparator)<0){var y=eO(n,c,m,a.options.keySeparator,a.options.ignoreJSONStructure);return a.alwaysFormat?a.format(y,void 0,i,pn(pn(pn({},o),n),{},{interpolationkey:m})):y}var _=m.split(a.formatSeparator),x=_.shift().trim(),b=_.join(a.formatSeparator).trim();return a.format(eO(n,c,x,a.options.keySeparator,a.options.ignoreJSONStructure),b,i,pn(pn(pn({},o),n),{},{interpolationkey:x}))};this.resetRegExp();var d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,v=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,g=[{regex:this.regexpUnescape,safeValue:function(m){return f(m)}},{regex:this.regexp,safeValue:function(m){return a.escapeValue?f(a.escape(m)):f(m)}}];return g.forEach(function(p){for(l=0;s=p.regex.exec(r);){var m=s[1].trim();if(u=h(m),u===void 0)if(typeof d=="function"){var y=d(r,s,o);u=typeof y=="string"?y:""}else if(o&&Object.prototype.hasOwnProperty.call(o,m))u="";else if(v){u=s[0];continue}else a.logger.warn("missed to pass in variable ".concat(m," for interpolating ").concat(r)),u="";else typeof u!="string"&&!a.useRawValueToEscape&&(u=VC(u));var _=p.safeValue(u);if(r=r.replace(s[0],_),v?(p.regex.lastIndex+=u.length,p.regex.lastIndex-=s[0].length):p.regex.lastIndex=0,l++,l>=a.maxReplaces)break}}),r}},{key:"nest",value:function(r,n){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,u;function l(d,v){var g=this.nestingOptionsSeparator;if(d.indexOf(g)<0)return d;var p=d.split(new RegExp("".concat(g,"[ ]*{"))),m="{".concat(p[1]);d=p[0],m=this.interpolate(m,u);var y=m.match(/'/g),_=m.match(/"/g);(y&&y.length%2===0&&!_||_.length%2!==0)&&(m=m.replace(/'/g,'"'));try{u=JSON.parse(m),v&&(u=pn(pn({},v),u))}catch(x){return this.logger.warn("failed parsing options string in nesting for key ".concat(d),x),"".concat(d).concat(g).concat(m)}return delete u.defaultValue,d}for(;a=this.nestingRegexp.exec(r);){var c=[];u=pn({},o),u=u.replace&&typeof u.replace!="string"?u.replace:u,u.applyPostProcessor=!1,delete u.defaultValue;var f=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var h=a[1].split(this.formatSeparator).map(function(d){return d.trim()});a[1]=h.shift(),c=h,f=!0}if(s=n(l.call(this,a[1].trim(),u),u),s&&a[0]===r&&typeof s!="string")return s;typeof s!="string"&&(s=VC(s)),s||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(r)),s=""),f&&(s=c.reduce(function(d,v){return i.format(d,v,o.lng,pn(pn({},o),{},{interpolationkey:a[1].trim()}))},s.trim())),r=r.replace(a[0],s),this.regexp.lastIndex=0}return r}}]),e}();function tO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function li(e){for(var t=1;t-1){var n=e.split("(");t=n[0].toLowerCase().trim();var i=n[1].substring(0,n[1].length-1);if(t==="currency"&&i.indexOf(":")<0)r.currency||(r.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)r.range||(r.range=i.trim());else{var o=i.split(";");o.forEach(function(a){if(a){var s=a.split(":"),u=Uge(s),l=u[0],c=u.slice(1),f=c.join(":").trim().replace(/^'+|'+$/g,"");r[l.trim()]||(r[l.trim()]=f),f==="false"&&(r[l.trim()]=!1),f==="true"&&(r[l.trim()]=!0),isNaN(f)||(r[l.trim()]=parseInt(f,10))}})}}return{formatName:t,formatOptions:r}}function ba(e){var t={};return function(n,i,o){var a=i+JSON.stringify(o),s=t[a];return s||(s=e(i,o),t[a]=s),s(n)}}var lye=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Tn(this,e),this.logger=$n.create("formatter"),this.options=t,this.formats={number:ba(function(r,n){var i=new Intl.NumberFormat(r,li({},n));return function(o){return i.format(o)}}),currency:ba(function(r,n){var i=new Intl.NumberFormat(r,li(li({},n),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:ba(function(r,n){var i=new Intl.DateTimeFormat(r,li({},n));return function(o){return i.format(o)}}),relativetime:ba(function(r,n){var i=new Intl.RelativeTimeFormat(r,li({},n));return function(o){return i.format(o,n.range||"day")}}),list:ba(function(r,n){var i=new Intl.ListFormat(r,li({},n));return function(o){return i.format(o)}})},this.init(t)}return Cn(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=n.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(r,n){this.formats[r.toLowerCase().trim()]=n}},{key:"addCached",value:function(r,n){this.formats[r.toLowerCase().trim()]=ba(n)}},{key:"format",value:function(r,n,i){var o=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=n.split(this.formatSeparator),u=s.reduce(function(l,c){var f=uye(c),h=f.formatName,d=f.formatOptions;if(o.formats[h]){var v=l;try{var g=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},p=g.locale||g.lng||a.locale||a.lng||i;v=o.formats[h](l,p,li(li(li({},d),a),g))}catch(m){o.logger.warn(m)}return v}else o.logger.warn("there was no format function for ".concat(h));return l},r);return u}}]),e}();function rO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nO(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hye(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var dye=function(e){np(r,e);var t=cye(r);function r(n,i,o){var a,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Tn(this,r),a=t.call(this),ip&&lo.call(Zi(a)),a.backend=n,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=s,a.logger=$n.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=s.maxParallelReads||10,a.readingCalls=0,a.maxRetries=s.maxRetries>=0?s.maxRetries:5,a.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,s.backend,s),a}return Cn(r,[{key:"queueLoad",value:function(i,o,a,s){var u=this,l={},c={},f={},h={};return i.forEach(function(d){var v=!0;o.forEach(function(g){var p="".concat(d,"|").concat(g);!a.reload&&u.store.hasResourceBundle(d,g)?u.state[p]=2:u.state[p]<0||(u.state[p]===1?c[p]===void 0&&(c[p]=!0):(u.state[p]=1,v=!1,c[p]===void 0&&(c[p]=!0),l[p]===void 0&&(l[p]=!0),h[g]===void 0&&(h[g]=!0)))}),v||(f[d]=!0)}),(Object.keys(l).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(l),pending:Object.keys(c),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(h)}}},{key:"loaded",value:function(i,o,a){var s=i.split("|"),u=s[0],l=s[1];o&&this.emit("failedLoading",u,l,o),a&&this.store.addResourceBundle(u,l,a),this.state[i]=o?-1:2;var c={};this.queue.forEach(function(f){Vge(f.loaded,[u],l),hye(f,i),o&&f.errors.push(o),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(function(h){c[h]||(c[h]={});var d=f.loaded[h];d.length&&d.forEach(function(v){c[h][v]===void 0&&(c[h][v]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(function(f){return!f.done})}},{key:"read",value:function(i,o,a){var s=this,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,c=arguments.length>5?arguments[5]:void 0;if(!i.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:a,tried:u,wait:l,callback:c});return}this.readingCalls++;var f=function(g,p){if(s.readingCalls--,s.waitingReads.length>0){var m=s.waitingReads.shift();s.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(g&&p&&u2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var l=this.queueLoad(i,o,s,u);if(!l.toLoad.length)return l.pending.length||u(),null;l.toLoad.forEach(function(c){a.loadOne(c)})}},{key:"load",value:function(i,o,a){this.prepareLoading(i,o,{},a)}},{key:"reload",value:function(i,o,a){this.prepareLoading(i,o,{reload:!0},a)}},{key:"loadOne",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=i.split("|"),u=s[0],l=s[1];this.read(u,l,"read",void 0,void 0,function(c,f){c&&o.logger.warn("".concat(a,"loading namespace ").concat(l," for language ").concat(u," failed"),c),!c&&f&&o.logger.log("".concat(a,"loaded namespace ").concat(l," for language ").concat(u),f),o.loaded(i,c,f)})}},{key:"saveMissing",value:function(i,o,a,s,u){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend&&this.backend.create){var f=nO(nO({},l),{},{isUpdate:u}),h=this.backend.create.bind(this.backend);if(h.length<6)try{var d;h.length===5?d=h(i,o,a,s,f):d=h(i,o,a,s),d&&typeof d.then=="function"?d.then(function(v){return c(null,v)}).catch(c):c(null,d)}catch(v){c(v)}else h(i,o,a,s,c,f)}!i||!i[0]||this.store.addResource(i[0],o,a,s)}}}]),r}(lo);function iO(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var r={};if($t(t[1])==="object"&&(r=t[1]),typeof t[1]=="string"&&(r.defaultValue=t[1]),typeof t[2]=="string"&&(r.tDescription=t[2]),$t(t[2])==="object"||$t(t[3])==="object"){var n=t[3]||t[2];Object.keys(n).forEach(function(i){r[i]=n[i]})}return r},interpolation:{escapeValue:!0,format:function(t,r,n,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function oO(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function aO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kn(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function tf(){}function mye(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(r){typeof e[r]=="function"&&(e[r]=e[r].bind(e))})}var Rh=function(e){np(r,e);var t=pye(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Tn(this,r),n=t.call(this),ip&&lo.call(Zi(n)),n.options=oO(i),n.services={},n.logger=$n,n.modules={external:[]},mye(Zi(n)),o&&!n.isInitialized&&!i.isClone){if(!n.options.initImmediate)return n.init(i,o),oc(n,Zi(n));setTimeout(function(){n.init(i,o)},0)}return n}return Cn(r,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(a=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var s=iO();this.options=kn(kn(kn({},s),this.options),oO(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=kn(kn({},s.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function u(m){return m?typeof m=="function"?new m:m:null}if(!this.options.isClone){this.modules.logger?$n.init(u(this.modules.logger),this.options):$n.init(null,this.options);var l;this.modules.formatter?l=this.modules.formatter:typeof Intl<"u"&&(l=lye);var c=new ZC(this.options);this.store=new Jge(this.options.resources,this.options);var f=this.services;f.logger=$n,f.resourceStore=this.store,f.languageUtils=c,f.pluralResolver=new aye(c,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),l&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(f.formatter=u(l),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new sye(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new dye(u(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(m){for(var y=arguments.length,_=new Array(y>1?y-1:0),x=1;x1?y-1:0),x=1;x0&&h[0]!=="dev"&&(this.options.lng=h[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var d=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];d.forEach(function(m){i[m]=function(){var y;return(y=i.store)[m].apply(y,arguments)}});var v=["addResource","addResources","addResourceBundle","removeResourceBundle"];v.forEach(function(m){i[m]=function(){var y;return(y=i.store)[m].apply(y,arguments),i}});var g=gu(),p=function(){var y=function(x,b){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),g.resolve(b),a(x,b)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return y(null,i.t.bind(i));i.changeLanguage(i.options.lng,y)};return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),g}},{key:"loadResources",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tf,s=a,u=typeof i=="string"?i:this.language;if(typeof i=="function"&&(s=i),!this.options.resources||this.options.partialBundledLanguages){if(u&&u.toLowerCase()==="cimode")return s();var l=[],c=function(d){if(d){var v=o.services.languageUtils.toResolveHierarchy(d);v.forEach(function(g){l.indexOf(g)<0&&l.push(g)})}};if(u)c(u);else{var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.forEach(function(h){return c(h)})}this.options.preload&&this.options.preload.forEach(function(h){return c(h)}),this.services.backendConnector.load(l,this.options.ns,function(h){!h&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),s(h)})}else s(null)}},{key:"reloadResources",value:function(i,o,a){var s=gu();return i||(i=this.languages),o||(o=this.options.ns),a||(a=tf),this.services.backendConnector.reload(i,o,function(u){s.resolve(),a(u)}),s}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&nL.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}},{key:"changeLanguage",value:function(i,o){var a=this;this.isLanguageChangingTo=i;var s=gu();this.emit("languageChanging",i);var u=function(h){a.language=h,a.languages=a.services.languageUtils.toResolveHierarchy(h),a.resolvedLanguage=void 0,a.setResolvedLanguage(h)},l=function(h,d){d?(u(d),a.translator.changeLanguage(d),a.isLanguageChangingTo=void 0,a.emit("languageChanged",d),a.logger.log("languageChanged",d)):a.isLanguageChangingTo=void 0,s.resolve(function(){return a.t.apply(a,arguments)}),o&&o(h,function(){return a.t.apply(a,arguments)})},c=function(h){!i&&!h&&a.services.languageDetector&&(h=[]);var d=typeof h=="string"?h:a.services.languageUtils.getBestMatchFromCodes(h);d&&(a.language||u(d),a.translator.language||a.translator.changeLanguage(d),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage&&a.services.languageDetector.cacheUserLanguage(d)),a.loadResources(d,function(v){l(v,d)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(i),s}},{key:"getFixedT",value:function(i,o,a){var s=this,u=function l(c,f){var h;if($t(f)!=="object"){for(var d=arguments.length,v=new Array(d>2?d-2:0),g=2;g1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=a.lng||this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,l=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var c=function(d,v){var g=o.services.backendConnector.state["".concat(d,"|").concat(v)];return g===-1||g===2};if(a.precheck){var f=a.precheck(this,c);if(f!==void 0)return f}return!!(this.hasResourceBundle(s,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(s,i)&&(!u||c(l,i)))}},{key:"loadNamespaces",value:function(i,o){var a=this,s=gu();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(u){a.options.ns.indexOf(u)<0&&a.options.ns.push(u)}),this.loadResources(function(u){s.resolve(),o&&o(u)}),s):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var a=gu();typeof i=="string"&&(i=[i]);var s=this.options.preload||[],u=i.filter(function(l){return s.indexOf(l)<0});return u.length?(this.options.preload=s.concat(u),this.loadResources(function(l){a.resolve(),o&&o(l)}),a):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services&&this.services.languageUtils||new ZC(iO());return o.indexOf(a.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tf,s=kn(kn(kn({},this.options),o),{isClone:!0}),u=new r(s);(o.debug!==void 0||o.prefix!==void 0)&&(u.logger=u.logger.clone(o));var l=["store","services","language"];return l.forEach(function(c){u[c]=i[c]}),u.services=kn({},this.services),u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u.translator=new KC(u.services,u.options),u.translator.on("*",function(c){for(var f=arguments.length,h=new Array(f>1?f-1:0),d=1;d0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Rh(e,t)});var fr=Rh.createInstance();fr.createInstance=Rh.createInstance;fr.createInstance;fr.dir;fr.init;fr.loadResources;fr.reloadResources;fr.use;fr.changeLanguage;fr.getFixedT;fr.t;fr.exists;fr.setDefaultNamespace;fr.hasLoadedNamespace;fr.loadNamespaces;fr.loadLanguages;fr.use(kJ).init({resources:vG||{},lng:ia[mG]||"zhCn",fallbackLng:"zhCn",interpolation:{escapeValue:!1}}).then(()=>console.log("WebGAL i18n Ready!"));qn.render(S.jsx(Y.StrictMode,{children:S.jsx(LJ,{children:S.jsx(vZ,{store:B,children:S.jsx(jge,{})})})}),document.getElementById("root"));export{gr as C,jn as S,de as T,O as W,_ye as r}; diff --git a/packages/terre2/assets/templates/WebGAL_Template/assets/index-d935d359.css b/packages/terre2/assets/templates/WebGAL_Template/assets/index-d935d359.css new file mode 100644 index 000000000..a8c15f8ec --- /dev/null +++ b/packages/terre2/assets/templates/WebGAL_Template/assets/index-d935d359.css @@ -0,0 +1 @@ +@charset "UTF-8";@font-face{font-family:思源宋体;src:url(./SourceHanSerifCN-Regular-1e60cc2e.ttf) format("truetype")}@font-face{font-family:LXGW;src:url(./LXGWWenKai-Regular-9375313a.ttf) format("truetype")}@font-face{font-family:WebgalUI;src:url(./OPPOSans-R-ea925359.ttf) format("truetype")}.StartButton{animation:StartButton_blink 4s infinite}@keyframes StartButton_blink{0%{text-shadow:0 0 15px rgba(0,0,0,.65)}50%{text-shadow:0 0 15px rgba(255,255,255,.5)}to{text-shadow:0 0 15px rgba(0,0,0,.65)}}a{transition:color 1s}a:link,a:visited,a:hover,a:active{color:#434343}body{background-color:#000;font-size:16px;margin:0;font-family:WebgalUI,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow:hidden;-webkit-user-select:none;user-select:none}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}#root{width:2560px;height:1440px;overflow:hidden;font-size:160%}::-webkit-scrollbar{width:12px}::-webkit-scrollbar-track{box-shadow:0 0 10px #fff3;-webkit-box-shadow:0 0 10px rgba(255,255,255,.2);background:rgba(255,255,255,.2);border-radius:10px}::-webkit-scrollbar-thumb{border-radius:10px;background:rgba(255,255,255,.5);box-shadow:0 0 10px #00000026;-webkit-box-shadow:0 0 10px rgba(0,0,0,.15)}#ebg{height:100vh;width:100vw;filter:blur(50px);background-position:center;background-repeat:no-repeat;background-size:cover;position:absolute;top:0;left:0}.App{height:100%;width:100%;background:rgba(0,0,0,1);overflow:hidden;perspective:0;-webkit-overflow-scrolling:auto}#pixiCanvas{z-index:5}._Title_main_xpe81_1{width:100%;height:100%;position:absolute;z-index:13}._Title_buttonList_xpe81_8{display:flex;position:absolute;left:0;min-width:25%;height:100%;justify-content:center;align-items:flex-start;flex-flow:column;transition:background .75s;padding-left:120px}._Title_button_xpe81_8{font-weight:700;text-align:center;flex:0 1 auto;cursor:pointer;padding:1em 2em;margin:20px 0;transition:all .33s;background:rgba(255,255,255,.15);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);border-radius:4px;transform:skew(-10deg);background:linear-gradient(to right,rgba(0,0,0,.3),rgba(0,0,0,.1))}._Title_button_xpe81_8:hover{text-shadow:0 0 10px rgb(255,255,255);padding:1em 6em 1em 3em}._Title_button_text_xpe81_41{font-size:165%;color:#fbfbfb;padding:0 .5em;letter-spacing:.2em}._Title_backup_background_xpe81_48{width:100%;height:100%;position:absolute;z-index:13;background:linear-gradient(135deg,#fdfbfb 0%,#dcddde 100%)}._Choose_Main_cegqk_1{position:absolute;width:100%;height:100%;display:flex;flex-flow:column;justify-content:center;align-items:center;z-index:13;background:rgba(0,0,0,.05)}._Choose_item_cegqk_13{font-family:WebgalUI,serif;cursor:pointer;min-width:50%;padding:.25em 1em;font-size:265%;color:#8e354a;text-align:center;border-radius:4px;border:3px solid rgba(0,0,0,0);box-shadow:0 0 25px #00000040;background:rgba(255,255,255,.65);margin:.25em 0;transition:background-color .5s,border .5s,font-weight .5s,box-shadow .5s}._Choose_item_disabled_cegqk_29{font-family:WebgalUI,serif;cursor:not-allowed;min-width:50%;padding:.25em 1em;font-size:265%;color:#8e354a80;text-align:center;border-radius:4px;border:3px solid rgba(0,0,0,0);box-shadow:0 0 25px #00000040;background:rgba(255,255,255,.5);margin:.25em 0;transition:background-color .5s,border .5s,font-weight .5s,box-shadow .5s}._Choose_item_cegqk_13:hover{background:rgba(255,255,255,.9);box-shadow:0 0 25px #00000059;border:3px solid #8E354A}._Choose_Main_4xkm5_1{position:absolute;width:100%;height:100%;display:flex;flex-flow:column;justify-content:center;align-items:center;z-index:13;background:rgba(0,0,0,.05)}._Choose_item_4xkm5_13{cursor:pointer;min-width:50%;padding:.25em 1em;font-size:265%;color:#005caf;text-align:center;border-radius:4px;border:3px solid rgba(0,0,0,0);box-shadow:0 0 25px #00000040;background:rgba(255,255,255,.65);margin:.25em 0;transition:background-color .5s,border .5s,font-weight .5s,box-shadow .5s}._glabalDialog_container_inner_4xkm5_28{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-flow:column;background:linear-gradient(to right,rgba(0,92,175,0) 0%,rgba(0,92,175,.5) 33%,rgba(0,92,175,.85) 50%,rgba(0,92,175,.5) 66%,rgba(0,92,175,0) 100%);padding:1em 5em 1.5em}._glabalDialog_container_4xkm5_28{color:#fff;width:100%;border-top:4px solid;border-bottom:4px solid;border-image:linear-gradient(to right,rgba(255,255,255,.05) 0%,rgba(255,255,255,.85) 33%,rgb(255,255,255) 50%,rgba(255,255,255,.85) 66%,rgba(255,255,255,.05) 100%) 1}._title_4xkm5_47{font-size:300%;letter-spacing:.05em;text-shadow:0 0 10px rgba(255,255,255,.5)}._Choose_item_4xkm5_13:hover{background:rgba(255,255,255,.9);box-shadow:0 0 25px #00000059;border:3px solid #005caf}._button_4xkm5_59{font-size:200%;padding:.15em 1em;margin:.2em 1em;cursor:pointer;transition:background-color .33s,color .33s,font-weight .33s,transform .33s;text-shadow:0 0 10px rgb(255,255,255);border-radius:5px}._button_4xkm5_59:hover{font-weight:700;color:#005caf;transform:scale(1.1);text-shadow:0 0 15px rgba(0,0,0,0);background:rgba(255,255,255,.85)}._FullScreenPerform_main_7er8a_2{position:absolute;width:100%;height:100%;top:0}._FullScreenPerform_element_7er8a_9{position:absolute;display:none;width:100%;height:100%;z-index:11}._fullScreen_video_7er8a_17{position:absolute;display:block;width:100%;height:100%;z-index:11}@keyframes _slideIn_7er8a_80{0%{transform:translate(-100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes _typing_7er8a_86{0%{width:0;height:0}to{width:100%;height:auto;border-right:1px solid}}@keyframes _blinkCursor_7er8a_1{50%{border-color:transparent}}@keyframes _pixelateAnimation_7er8a_1{0%{filter:none;opacity:0}50%{filter:blur(5px)}to{filter:none;opacity:1}}@keyframes _revealAnimation_7er8a_101{0%{opacity:0;clip-path:polygon(0% 0%,0% 0%,0% 100%,0% 100%)}to{opacity:1;clip-path:polygon(0% 0%,100% 0%,100% 100%,0% 100%)}}._fadeIn_7er8a_74{opacity:0;animation:_intro_showSoftly_7er8a_1 1.5s ease-out forwards;font-family:思源宋体,serif}._slideIn_7er8a_80{opacity:0;animation:_slideIn_7er8a_80 1.5s forwards;font-family:思源宋体,serif}._typingEffect_7er8a_86{display:block;overflow:hidden;white-space:pre-line;width:0;animation:_typing_7er8a_86 1.5s forwards,_blinkCursor_7er8a_1 1s infinite 1.5s;font-family:思源宋体,serif}._pixelateEffect_7er8a_95{opacity:0;animation:_pixelateAnimation_7er8a_1 3s forwards;font-family:思源宋体,serif}._revealAnimation_7er8a_101{opacity:0;animation:_revealAnimation_7er8a_101 3s forwards;font-family:思源宋体,serif}@keyframes _intro_showSoftly_7er8a_1{0%{opacity:0}to{opacity:1}}._videoContainer_7er8a_115{position:absolute;display:block;width:100%;height:100%;z-index:11;background:rgb(0,0,0)}._main_15mmi_1{position:absolute;bottom:20px;z-index:9;display:flex;flex-flow:row;justify-content:center;align-items:center;height:70px;right:20px;border-radius:35px;padding:.15em 1.75em;font-size:80%}._button_15mmi_16{position:relative;top:2px;padding:0;filter:drop-shadow(1px 1px 5px rgb(0,0,0))}._button_text_15mmi_23{position:relative;bottom:8px;color:#fff;text-shadow:1px 1px 5px rgb(0,0,0);padding-left:3px}._button_on_15mmi_31{height:100%;display:inline-block;font-size:150%;padding:.25em .3em 0 .15em;transition:background-color .5s;background:rgba(255,255,255,.3);border-radius:4px;margin:0 .1em}._singleButton_15mmi_42{height:100%;display:inline-block;color:#fff;font-size:150%;padding:.3em .3em 0 .15em;transition:background-color .5s;cursor:pointer;border-radius:4px;margin:0 .1em;position:relative}._singleButton_15mmi_42:hover{background-color:#ffffff4d}._fastSlPreview_15mmi_59{position:absolute;top:-250px;right:0;background:linear-gradient(315deg,rgba(253,251,251,.9) 0%,rgba(235,237,238,.85) 100%);width:900px;height:230px;color:#005caf;border-radius:5px;display:none;animation:_fastSlEnter_15mmi_1 .33s;transition:opacity .33s}._fastsave_15mmi_73:hover ._fastSPreview_15mmi_73,._fastload_15mmi_77:hover ._fastLPreview_15mmi_77{display:block}@keyframes _fastSlEnter_15mmi_1{0%{opacity:0}to{opacity:1}}._slPreviewMain_15mmi_89{padding:.5em;display:flex;box-sizing:border-box;height:100%;width:100%}._imgContainer_15mmi_97{display:flex;overflow:hidden;border-radius:5px;flex-shrink:0;height:100%}._textContainer_15mmi_105{overflow:hidden;padding:0 0 0 .5em}._Backlog_main_zwyao_2{font-family:思源宋体,serif;position:absolute;top:0;width:100%;height:100%;z-index:10;background:rgba(0,0,0,.7);padding:2em 0;animation:_backlog_soft_in_zwyao_1 .7s ease-out forwards;box-sizing:border-box}._Backlog_main_out_zwyao_15{font-family:思源宋体,serif;position:absolute;top:0;width:100%;height:100%;z-index:10;background:rgba(0,0,0,.7);padding:2em 0;animation:_backlog_soft_out_zwyao_1 .7s ease-out forwards;box-sizing:border-box}._Backlog_main_out_IndexHide_zwyao_28{z-index:-10}._Backlog_main_DisableScroll_zwyao_32{overflow:hidden!important}._backlog_top_zwyao_36{padding:0 0 0 1em;display:flex;height:10%}._backlog_top_icon_zwyao_42{padding:.6em .6em 0;border-radius:1000px;transform:translateY(-13px);cursor:pointer}._backlog_top_icon_zwyao_42:hover{background:rgba(255,255,255,.25);animation:_backlog_icon_softin_zwyao_1 .25s ease-out forwards}@keyframes _backlog_icon_softin_zwyao_1{0%{background:rgba(255,255,255,0)}to{background:rgba(255,255,255,.25)}}._backlog_title_zwyao_62{height:100%;line-height:100%;font-size:360%;font-weight:700;color:transparent;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 35%,rgb(165,212,228) 100%);-webkit-background-clip:text}._backlog_content_zwyao_72{position:absolute;height:80%;padding:1em 10em;overflow:auto;display:flex;flex-flow:column-reverse;font-weight:400;width:100%;box-sizing:border-box}._backlog_item_zwyao_84{display:flex;color:#fff;font-size:165%;opacity:0;animation:_backlog_item_in_zwyao_1 .5s ease-out forwards;margin:1.25em 0 0;width:100%}._backlog_item_out_zwyao_94{display:flex;color:#fff;font-size:165%;opacity:0;animation:_backlog_item_out_zwyao_94 .5s ease-out forwards;margin:1.25em 0 0;width:100%}._backlog_func_area_zwyao_104{display:flex;flex-flow:row;align-items:flex-start;width:30%;max-width:30%;min-width:30%}._backlog_item_content_name_zwyao_113{font-weight:700;color:transparent;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 35%,rgb(165,212,228) 100%);-webkit-background-clip:text;margin:0 0 0 auto;overflow-wrap:break-word;box-sizing:border-box;border-radius:7px;padding:.2em .5em;font-size:115%;width:50%;text-align:left;letter-spacing:.1em}._backlog_item_content_zwyao_113{font-size:115%;width:82.5%;box-sizing:border-box;padding:.2em 0 0 1em;letter-spacing:.05em}._backlog_item_button_list_zwyao_137{display:flex;flex-flow:row;align-items:flex-start;margin:.35em 0 0}._backlog_item_button_element_zwyao_144{cursor:pointer;padding:.01em .75em 0;margin:0 0 0 .5em;background:rgba(255,255,255,.075);border-radius:7px;display:flex}._backlog_item_button_element_zwyao_144:hover{background:rgba(255,255,255,.25)}._backlog_item_content_text_zwyao_157{box-sizing:border-box}@keyframes _backlog_soft_in_zwyao_1{0%{opacity:0}to{opacity:1}}@keyframes _backlog_soft_out_zwyao_1{0%{opacity:1}to{opacity:0}}@keyframes _backlog_item_in_zwyao_1{0%{opacity:0;transform:scale(1.05) translate(-15px,10px) rotateX(-5deg) rotateY(-5deg)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes _backlog_item_out_zwyao_94{0%{opacity:1;transform:scale(1) translate(0)}to{opacity:0;transform:scale(1.05) translate(-15px,10px) rotateX(-5deg) rotateY(-5deg);background-color:#fff3}}._Logo_main_1bne2_1{width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;animation:_change-img-anim_1bne2_1 5s forwards;background-size:cover;z-index:14}@keyframes _change-img-anim_1bne2_1{0%{opacity:0}35%{opacity:1}65%{opacity:1}99%{opacity:0}to{opacity:0;display:none}}._Logo_Back_1bne2_32{width:100%;height:100%;position:absolute;top:0;left:0;right:0;opacity:1;bottom:0;background-size:cover;z-index:14;background:white}._animationActive_1bne2_46{animation:_fadeout_1bne2_1 5s forwards}@keyframes _fadeout_1bne2_1{0%{opacity:1}99%{opacity:0}to{opacity:0;display:none}}._Menu_main_1a7i6_1{width:100%;height:100%;position:absolute;z-index:16;animation:_Menu_ShowSoftly_1a7i6_1 .5s forwards;background-image:linear-gradient(to top,#accbee 0%,#e7f0fd 100%)}._Menu_TagContent_1a7i6_10{width:100%;height:90%}@keyframes _Menu_ShowSoftly_1a7i6_1{0%{opacity:0}to{opacity:1}}._MenuPanel_main_1c9ky_1{width:100%;height:10%;display:flex;justify-content:center;align-items:center;padding:0 55px}._MenuPanel_button_1c9ky_10{padding:.25em 15px 0;margin-right:15px;display:flex;justify-content:center;font-size:200%;text-align:center;border-radius:6px;min-width:12.5%;cursor:pointer;color:#7b90a9;background:rgba(0,0,0,0);overflow:hidden;transition:text-shadow .7s,background-color .7s}._MenuPanel_button_1c9ky_10:last-child{margin-right:0}._MenuPanel_button_1c9ky_10:hover{background-color:#f5f6f726}._MenuPanel_button_1c9ky_10:last-child{border-right:none}._MenuPanel_button_icon_1c9ky_38{transform:translateY(.125em);padding:0 .15em 0 0;margin:0 .15em 0 0}._MenuPanel_button_hl_1c9ky_44{background-color:#f5f6f759!important}._GlobalDialog_main_101j8_2{height:100%;width:100%;position:absolute;z-index:20;background:rgba(15,37,64,.39);color:#fff;opacity:.5;animation:_showGlobalDialog_101j8_1 .33s forwards;display:flex;justify-content:center;align-items:center;font-family:思源宋体,serif}._glabalDialog_container_inner_101j8_17{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-flow:column;background:linear-gradient(to right,rgba(0,92,175,0) 0%,rgba(0,92,175,.5) 33%,rgba(0,92,175,.85) 50%,rgba(0,92,175,.5) 66%,rgba(0,92,175,0) 100%);padding:1em 5em 1.5em}._glabalDialog_container_101j8_17{height:20%;width:100%;border-top:4px solid;border-bottom:4px solid;border-image:linear-gradient(to right,rgba(255,255,255,.05) 0%,rgba(255,255,255,.85) 33%,rgb(255,255,255) 50%,rgba(255,255,255,.85) 66%,rgba(255,255,255,.05) 100%) 1}._title_101j8_36{font-size:300%;text-shadow:0 0 10px rgba(255,255,255,.5)}._button_list_101j8_41{display:flex;margin:auto 0 0}._button_101j8_41{font-size:200%;padding:.15em 1em;margin:.2em 1em;cursor:pointer;transition:background-color .33s,color .33s,font-weight .33s,transform .33s;text-shadow:0 0 10px rgb(255,255,255);border-radius:5px}._button_101j8_41:hover{font-weight:700;color:#005caf;transform:scale(1.1);text-shadow:0 0 15px rgba(0,0,0,0);background:rgba(255,255,255,.85)}@keyframes _showGlobalDialog_101j8_1{0%{opacity:0}to{opacity:1}}._Save_Load_main_a3o8b_2{height:90%;width:100%;position:absolute;cursor:default}._Save_Load_top_a3o8b_9{height:10%;width:100%;display:flex;animation:_Elements_in_a3o8b_1 ease-out 1s forwards;justify-content:center}._Save_Load_title_a3o8b_17{font-family:思源宋体,serif;letter-spacing:.1em;width:auto;font-size:500%;min-width:350px;box-sizing:border-box;display:flex;justify-content:center;align-items:center;position:absolute;left:20px;top:0;z-index:-1;opacity:.2;transform:translateY(-10px)}._Save_title_text_a3o8b_35{font-weight:700;color:transparent;background:linear-gradient(135deg,#77428D 0%,#B28FCE 100%);text-shadow:2px 2px 15px rgba(255,255,255,.5);-webkit-background-clip:text}._Load_title_text_a3o8b_43{font-weight:700;color:transparent;background:linear-gradient(135deg,#005CAF 0%,#2EA9DF 100%);text-shadow:2px 2px 15px rgba(255,255,255,.5);-webkit-background-clip:text}._Save_Load_top_buttonList_a3o8b_51{height:100%;display:flex}._Save_Load_top_button_a3o8b_51{cursor:pointer;font-size:200%;width:2.05em;text-align:center;color:#00000080;box-sizing:border-box;display:flex;align-items:center;border-bottom:4px solid rgba(0,0,0,0);transition:background-color .7s,border-bottom-width .7s}._Save_Load_top_button_text_a3o8b_69{text-align:center;width:100%;padding:0 0 3px;border-left:2px solid rgba(0,0,0,.1)}._Save_Load_top_button_a3o8b_51:first-child>div{border-left:2px solid rgba(0,0,0,0)}._Save_Load_top_button_on_a3o8b_80{font-weight:700;border-bottom:4px solid #77428D;color:#77428d;background-color:#77428d0d}._Save_Load_top_button_a3o8b_51:hover{color:#77428d;font-weight:700;border-bottom:4px solid #77428D}._Load_top_button_on_a3o8b_93{font-weight:700;border-bottom:5px solid #005CAF;color:#005caf;background-color:#005caf1a}._Load_top_button_a3o8b_93:hover{color:#005caf;font-weight:700;border-bottom:5px solid #005CAF}._Save_Load_content_a3o8b_106{height:90%;width:100%;display:flex;flex-wrap:wrap;justify-content:space-evenly;align-items:center}._Save_Load_content_element_a3o8b_115{background:linear-gradient(-45deg,rgba(0,0,0,.05),rgba(0,0,0,.075));overflow:hidden;width:17.5%;height:45%;animation:_Elements_in_a3o8b_1 1s ease-out forwards,_Elements_in_transform_a3o8b_1 1s ease-out;opacity:0;border-radius:4px;transition:transform .25s,box-shadow .25s;cursor:pointer}._Save_Load_content_element_a3o8b_115:hover{transform:scale(1.05) translate(-.2em,-.2em)}._Save_Load_content_element_top_a3o8b_131{font-family:思源宋体,serif;width:100%;height:12%;display:flex}._Save_Load_content_element_top_index_a3o8b_138{color:#fff;text-align:center;font-size:155%;height:100%;width:20%;background-color:#b28fce}._Load_content_elememt_top_index_a3o8b_147{background-color:#51a8dd}._Save_Load_content_element_top_date_a3o8b_151{padding:.425em 0 0 .5em;background-color:#77428d;color:#fff;font-size:115%;height:100%;width:80%;font-family:WebgalUI,serif;letter-spacing:.1em}._Load_content_element_top_date_a3o8b_162{background-color:#005caf}._Save_Load_content_text_a3o8b_166{font-family:WebgalUI,sans-serif;letter-spacing:.05em;color:#373c38;background:linear-gradient(-45deg,rgba(255,255,255,.75) 0%,rgb(255,255,255) 100%);font-size:120%;height:40%;width:100%;display:flex;flex-flow:column;justify-content:flex-start;align-items:flex-start}._Save_Load_content_text_padding_a3o8b_180{padding:.2em .75em}._Save_Load_content_speaker_a3o8b_184{box-sizing:border-box;font-weight:700;color:#77428d;padding:.35em .8em .25em;width:100%;border-bottom:1px solid rgba(0,0,0,.1)}._Load_content_speaker_a3o8b_193{color:#005caf}._Load_content_text_a3o8b_197{background-color:#005cafbf}._Save_Load_content_miniRen_a3o8b_201{width:100%;height:48%;position:relative;background-size:cover}._Save_Load_content_miniRen_bg_a3o8b_208{background-size:cover;height:100%;width:100%;background-position:center}._Save_Load_content_miniRen_figure_a3o8b_215{height:100%;max-height:100%;max-width:100%;position:absolute;bottom:0}._Save_Load_content_miniRen_figLeft_a3o8b_223{bottom:0;left:0}._Save_Load_content_miniRen_figRight_a3o8b_228{bottom:0;right:0}@keyframes _Elements_in_a3o8b_1{0%{opacity:0}to{opacity:1}}@keyframes _Elements_in_transform_a3o8b_1{0%{transform:scale(1.05) translate(-25px,-20px) rotateY(15deg) rotateX(-15deg)}to{transform:scale(1) translate(0)}}._Options_main_u5orq_2{position:absolute;cursor:default;height:90%;width:100%}._Options_top_u5orq_9{height:15%;width:100%;display:flex;align-items:flex-start}._Options_title_u5orq_16{font-family:思源宋体,serif;letter-spacing:.1em;font-size:225%;margin:.5em 0;padding:.2em 2em .2em 1.1em;box-sizing:border-box}._Option_title_text_u5orq_25{font-size:165%;font-weight:700;color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;animation:_Elements_in_u5orq_1 ease-out .7s forwards}._Option_title_text_shadow_u5orq_34{position:absolute;color:#0000;-webkit-text-stroke:3px rgb(0,0,0);z-index:-1}._Option_title_text_ts_u5orq_41{position:absolute;color:#0000;text-shadow:.04em .04em rgba(81,110,65,.9),.05em .05em rgba(81,110,65,.9),.06em .06em rgba(81,110,65,.9),.07em .07em rgba(81,110,65,.9);z-index:-1}._Options_main_content_u5orq_48{display:flex;flex:1;padding:0 0 0 3em;overflow:auto}._Options_main_content_half_u5orq_55{width:95%;display:flex;flex-flow:row;align-items:flex-start;align-content:flex-start;flex-wrap:wrap;padding:0 1em}._About_title_text_u5orq_65{margin:.2em 1em;padding:.2em;width:100%;animation:_Elements_in_u5orq_1 ease-out .7s forwards;cursor:pointer}._About_text_u5orq_73{font-weight:700;color:transparent;background:linear-gradient(to left,rgba(34,125,81,.65),rgba(81,110,65,.65));-webkit-background-clip:text;font-size:135%;text-decoration:underline}@keyframes _Elements_in_u5orq_1{0%{opacity:0;transform:scale(1.03) translate(-25px,-20px)}to{opacity:1;transform:scale(1) translate(0)}}._Options_page_container_u5orq_92{height:85%;display:flex;padding:1em 3.75em}._Options_button_list_u5orq_98{animation:_Elements_in_u5orq_1 ease-out .7s forwards}._Options_page_button_u5orq_102{font-family:思源宋体,serif;font-size:300%;font-weight:700;color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));opacity:.35;-webkit-background-clip:text;transition:color .33s,background-image .33s,opacity .33s;cursor:pointer}._Options_page_button_active_u5orq_114{background-image:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;opacity:1}._Options_page_button_u5orq_102:hover{opacity:1}._NormalOption_ogzuv_1{margin:.2em 1em;padding:.2em;display:flex;flex-flow:column;align-items:flex-start;animation:_Elements_in_ogzuv_1 ease-out .7s forwards}._NormalOption_title_ogzuv_10{color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;font-size:200%;padding:.15em .5em .15em .1em;font-weight:700}._NormalOption_title_bef_ogzuv_19{font-weight:700;font-size:200%;content:attr(data-text);position:absolute;-webkit-text-stroke:3px rgb(0,0,0);z-index:-1;padding:.15em .5em .15em .1em}._NormalOption_title_sd_ogzuv_29{font-weight:700;color:#0000;font-size:200%;position:absolute;z-index:-1;padding:.15em .5em .15em .1em;text-shadow:.04em .04em rgba(81,110,65,.9),.05em .05em rgba(81,110,65,.9),.06em .06em rgba(81,110,65,.9),.07em .07em rgba(81,110,65,.9),.08em .08em rgba(81,110,65,.9),.09em .09em rgba(81,110,65,.9),.1em .1em rgba(81,110,65,.9)}._NormalOption_buttonList_ogzuv_39{padding:.5em 0;display:flex}@keyframes _Elements_in_ogzuv_1{0%{opacity:0;transform:scale(1.03) translate(-25px,-20px)}to{opacity:1;transform:scale(1) translate(0)}}._NormalButton_1qk3b_1{font-size:150%;box-sizing:border-box;padding:.2em 1em;background-color:#3232320d;margin:0 .4em 0 0;color:#a0aaa0;cursor:pointer;border-bottom:2px solid transparent}._NormalButton_1qk3b_1:hover{border-bottom:2px solid rgba(81,110,65,.9);color:#516e41e6;font-weight:700}._NormalButtonChecked_1qk3b_18{background-color:#516e4126;border-bottom:2px solid rgba(81,110,65,.9);color:#516e41e6;font-weight:700}._backButton_qbk37_1{display:flex;justify-content:center;align-items:center;width:50px;height:50px;background:rgba(0,0,0,.1);border-radius:4px;cursor:pointer}._backButton_qbk37_1:hover{background:rgba(0,0,0,.2)}._about_qbk37_16{padding:10px 0 0}._icon_qbk37_20{display:inline-flex}._title_qbk37_24{color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;font-size:200%;padding:.15em .5em .15em .1em;font-weight:700;margin-top:20px}._text_qbk37_34{color:#516e41;padding:0 0 0 10px;font-size:135%}._text_qbk37_34 a{color:#516e41}._contributor_qbk37_43{padding:0 10px 0 0}._textPreviewMain_nolr3_1{z-index:1;padding:1em;min-height:480px;width:100%}._textbox_nolr3_8{width:100%;height:100%;position:relative}._TextBox_EventHandler_eezpc_1{position:absolute;width:100%;height:100%;z-index:6;top:0}._TextBox_main_eezpc_9{position:absolute;z-index:6;right:25px;min-height:330px;max-height:330px;background-blend-mode:darken;border-radius:165px 20px 20px 165px;bottom:20px;left:275px;font-weight:700;color:#fff;padding:1em 50px 70px 200px;box-sizing:border-box;display:flex;flex-flow:column;align-items:flex-start;animation:_showSoftly_eezpc_1 .7s ease-out forwards;letter-spacing:.2em;transition:left .33s}@keyframes _showSoftly_eezpc_1{0%{opacity:0}to{opacity:1}}._TextBox_textElement_start_eezpc_39{position:relative;animation:_TextDelayShow_eezpc_1 1s ease-out forwards;opacity:0}._outer_eezpc_45{position:absolute;white-space:nowrap;left:0;top:0;background-image:linear-gradient(#0B346E 0%,#141423 100%);background-clip:text;-webkit-background-clip:text;color:transparent;z-index:2}._inner_eezpc_57{white-space:nowrap;position:absolute;left:0;top:0;-webkit-text-stroke:.1em rgb(255,255,255);z-index:1}._zhanwei_eezpc_66{color:transparent;white-space:nowrap}._TextBox_textElement_Settled_eezpc_71{position:relative;opacity:1}._TextBox_showName_eezpc_76{font-size:85%;padding:0 2em;position:absolute;left:150px;top:-68px;height:80px;line-height:68px;border-radius:40px}@keyframes _TextDelayShow_eezpc_1{0%{opacity:0}to{opacity:1}}._miniAvatarContainer_eezpc_95{position:absolute;height:450px;width:450px;bottom:0;left:-250px;border-radius:100% 0 0 100%;overflow:hidden}._miniAvatarImg_eezpc_105{max-height:100%;max-width:100%;position:absolute;bottom:0;filter:drop-shadow(15px 0 3px rgba(0,0,0,.5))}._nameContainer_eezpc_113{position:absolute;left:2em;top:-3.5em}._outerName_eezpc_119{position:absolute;left:0;top:0;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 35%,rgb(165,212,228) 100%);background-clip:text;-webkit-background-clip:text;color:transparent;z-index:2}._innerName_eezpc_130{position:absolute;left:0;top:0;z-index:1}._text_eezpc_137{line-height:1.9em;overflow:hidden}input[type=range]{-webkit-appearance:none;width:500px;height:50px;background:transparent;font-size:100%}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none}input[type=range]:focus{outline:none}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;height:375%;width:7.2%;border-radius:5em;background:#ffffff;cursor:pointer;margin-top:-14px;box-shadow:0 0 5px #00000080}input[type=range]::-webkit-slider-runnable-track{width:100%;height:20%;cursor:pointer;box-shadow:1px 1px 7px #0000004d;background:rgba(81,110,65,.9);border-radius:2em}input[type=range]:focus::-webkit-slider-runnable-track{background:rgba(81,110,65,.9)}input[type=range]::-moz-range-thumb{height:36px;width:7.2%;border-radius:5em;background:#ffffff;cursor:pointer;box-shadow:0 0 5px #00000080}input[type=range]::-moz-range-track{width:100%;height:20%;cursor:pointer;box-shadow:1px 1px 7px #0000004d;background:rgba(81,110,65,.9);border-radius:2em}._MainStage_main_9enex_1{width:100%;height:100%;position:absolute;z-index:1;opacity:1;overflow:hidden}._MainStage_main_container_9enex_10{width:100%;height:100%;position:absolute;overflow:hidden}._MainStage_bgContainer_9enex_17{top:0;position:absolute;background-size:cover;width:100%;height:100%;z-index:1;animation:_MainStage_showBgSoftly_9enex_1 1s forwards ease-in-out}._MainStage_bgContainer_Settled_9enex_27{top:0;position:absolute;background-size:cover;width:100%;height:100%;animation:_MainStage_showBgSoftly_9enex_1 1ms forwards;z-index:1}._MainStage_oldBgContainer_9enex_37{background-size:cover;top:0;position:absolute;width:100%;height:100%;z-index:0;animation:_MainStage_oldBgFadeout_9enex_1 3s forwards}._MainStage_oldBgContainer_Settled_9enex_47{background-size:cover;top:0;position:absolute;width:100%;height:100%;opacity:0}@keyframes _MainStage_showBgSoftly_9enex_1{0%{opacity:.15}to{opacity:1}}@keyframes _MainStage_oldBgFadeout_9enex_1{0%{opacity:1}to{opacity:0}}._pixiContainer_9enex_72{position:absolute;z-index:5}._chooseContainer_9enex_77{z-index:8}._TextBox_EventHandler_449dq_2{position:absolute;width:100%;height:100%;z-index:6;top:0}._TextBox_main_449dq_10{font-family:思源宋体,serif;font-style:italic;position:absolute;z-index:6;width:100%;height:12%;background-color:#000;bottom:0;color:#fff;box-sizing:border-box;overflow:hidden;display:flex;flex-flow:column;align-items:center;animation:_showSoftly_449dq_1 .7s ease-out forwards;letter-spacing:.2em;justify-content:center}@keyframes _showSoftly_449dq_1{0%{opacity:0}to{opacity:1}}._TextBox_textElement_449dq_38{opacity:0;animation:_showSoftly_449dq_1 1s forwards}._TextBox_textElement_start_449dq_43{animation:_TextDelayShow_449dq_1 .7s ease-out forwards;opacity:0}._TextBox_textElement_Settled_449dq_48{opacity:1}._TextBox_showName_449dq_52{font-size:85%;border-bottom:2px solid rgba(255,255,255,.3);min-width:50%;padding:0 .2em .2em .3em;margin:0 0 .2em}@keyframes _TextDelayShow_449dq_1{0%{opacity:0}to{opacity:1}}._miniAvatarContainer_449dq_68{position:absolute;height:80%;width:17%;bottom:0;left:.5em}._miniAvatarImg_449dq_76{max-height:100%;max-width:100%;position:absolute;bottom:0}._introContainer_119k8_1{box-sizing:border-box;position:absolute;z-index:11;width:100%;height:100%;color:#fff;display:none}._extra_1tymt_2{width:100%;height:100%;position:absolute;top:0;left:0;z-index:14;background-image:linear-gradient(135deg,#93a5cf 0%,#e4efe9 100%);padding:2em;box-sizing:border-box}._extra_top_1tymt_14{padding:0;display:flex;height:10%}._extra_top_icon_1tymt_20{padding:.6em .6em 0;border-radius:1000px;transform:translateY(-13px);cursor:pointer}._extra_top_icon_1tymt_20:hover{background:rgba(255,255,255,.25);animation:_extra_icon_softin_1tymt_1 .25s ease-out forwards}@keyframes _extra_icon_softin_1tymt_1{0%{background:rgba(255,255,255,0)}to{background:rgba(0,0,0,.25)}}._extra_title_1tymt_40{font-family:思源宋体,serif;height:100%;line-height:100%;font-size:325%;font-weight:700;color:transparent;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 75%,#51A8DD 100%);-webkit-background-clip:text}._mainContainer_1tymt_51{box-sizing:border-box;padding:0 2em;display:flex;height:92%;flex-flow:column}._bgmContainer_1tymt_59{left:50px;right:50px;bottom:30px;position:absolute;overflow:auto;box-sizing:border-box;display:flex;flex-flow:column-reverse;align-content:center;background-image:linear-gradient(315deg,rgba(163,189,237,.95) 0%,rgba(105,145,199,.95) 100%);padding:1em 2em;border-radius:4px;transition:max-height .5s;z-index:2}._bgmListContainer_1tymt_76{z-index:2;bottom:0;width:100%;box-sizing:border-box;display:flex;flex:1;flex-flow:row;justify-content:flex-start;align-items:flex-start;margin:0 0 15px;flex-wrap:wrap;overflow:auto}._bgmPlayerMain_1tymt_91{display:flex}._bgmControlButton_1tymt_95{padding:.6em 1.2em .2em;margin:0 5px;box-sizing:border-box;border-radius:4px;border:1px solid rgba(255,255,255,.5);cursor:pointer;transition:background-color .33s,color .33s;flex-shrink:0}._bgmControlButton_1tymt_95:hover{box-shadow:0 0 10px 5px #ffffff59}._bgmName_1tymt_110{color:#fffc;font-family:思源宋体,serif;font-size:155%;margin:5px 5px 0 15px;overflow:hidden}._bgmElement_1tymt_118{font-family:思源宋体,serif;padding:.5em 1em;overflow:hidden;background-color:#0000001a;border-radius:5px;color:#fff;font-size:125%;margin:.5em 1em .5em .5em;transition:background-color 1s,color 1s;opacity:1;cursor:pointer;width:28%;flex-shrink:0}@keyframes _bgmElement_In_1tymt_1{0%{opacity:.95}to{opacity:1}}._bgmElement_1tymt_118:hover{background-color:#ffffffa6;color:#666;transition:background-color .5s,color .5s}._bgmElement_active_1tymt_148{background-color:#ffffffd9!important;color:#666}._cgMain_1tymt_153{width:100%;height:88%}._cgContainer_1tymt_158{width:100%;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;align-content:flex-start;height:90%;box-sizing:border-box;padding:4em 0 0 2em}._cgElement_1tymt_170{width:22.5%;height:37.5%;background-color:#ffffffbf;box-shadow:0 0 15px 5px #00000059;box-sizing:border-box;padding:.75em;opacity:0;margin:1em;animation-delay:.1s;z-index:1;position:relative;cursor:pointer}._cgShowDiv_1tymt_185{height:8%;width:100%;display:flex;flex-flow:row;justify-content:center;align-items:flex-end}._cgShowDivWarpper_1tymt_194{display:flex;flex-flow:row;justify-content:center;align-items:flex-end;border-radius:7px;padding:12px 15px}._cgNav_1tymt_203{font-size:170%;color:#fff;padding:.12em 1em;margin:0 .25em;text-align:center;cursor:pointer;transition:background-color .5s,color .5s,font-weight .5s;border-radius:7px}._cgNav_1tymt_203:first-child{margin-left:0}._cgNav_1tymt_203:last-child{margin-right:0}._cgNav_active_1tymt_222{background-color:#005caf1a!important;color:#005caf;font-weight:700}._cgNav_1tymt_203:hover{background-color:#005caf0d}._showFullContainer_1tymt_232{z-index:13;position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.1);display:flex;justify-content:center;align-items:center}._showFullCgMain_1tymt_245{cursor:pointer;width:80%;height:80%;box-sizing:border-box;padding:2em;background:rgba(255,255,255,.95);animation:_fullCgIn_1tymt_1 .5s ease-out forwards;opacity:0}@keyframes _fullCgIn_1tymt_1{0%{opacity:0;transform:scale(1.05) translate(-25px,-50px) rotateX(-10deg) rotateY(10deg)}to{opacity:1;transform:scale(1) translateZ(0)}}@keyframes cg_softIn_-5{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-5deg)}}@keyframes cg_softIn_-4{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-4deg)}}@keyframes cg_softIn_-3{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-3deg)}}@keyframes cg_softIn_-2{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-2deg)}}@keyframes cg_softIn_-1{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-1deg)}}@keyframes cg_softIn_0{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(0)}}@keyframes cg_softIn_1{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(1deg)}}@keyframes cg_softIn_2{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(2deg)}}@keyframes cg_softIn_3{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(3deg)}}@keyframes cg_softIn_4{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(4deg)}}@keyframes cg_softIn_5{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(5deg)}}._tag_yghix_2{position:absolute;top:2.5%;left:2.5%;color:#fff;z-index:10;padding:10px 10px 5px;border-radius:100px;transition:background-color .33s}._tag_yghix_2:hover{background-color:#ffffff80}._container_yghix_17{color:#fff;position:absolute;top:0;width:100%;height:100%;display:flex;flex-flow:column;background-color:#000000b3;z-index:9;padding:7em 5em 5em 10em;opacity:0;animation:_showContainer_yghix_1 1s forwards;transition:background-color .33s}._singleButton_yghix_33{padding:.5em 0}._button_text_yghix_37{font-family:思源宋体,serif;font-size:250%;letter-spacing:.07em;transition:text-shadow .33s}._button_text_yghix_37:hover{text-shadow:0 0 15px rgb(255,255,255)}@keyframes _showContainer_yghix_1{0%{opacity:0}to{opacity:1}}._devPanelMain_11x6i_1{font-size:150%;position:absolute;right:0;top:0;bottom:0;width:35%;background:rgba(255,255,255,.75);z-index:99;overflow:auto}._devPanelOpener_11x6i_13{position:absolute;right:5px;top:5px;background:rgba(255,255,255,.75);z-index:100;padding:3px 7px;border-radius:4px;cursor:pointer}._trans_8uz61_2{height:100%;width:100%;background-image:linear-gradient(225deg,#a3bded 0%,#6991c7 100%);position:absolute;z-index:20}._langWrapper_8uz61_10{display:flex;justify-content:center;align-items:center;width:100%;height:100%;flex-flow:column}._lang_8uz61_10{width:100%;text-align:center;font-family:思源宋体,serif;color:transparent;font-size:300%;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 75%,#51A8DD 100%);-webkit-background-clip:text}._langSelect_8uz61_29{display:flex;gap:50px;padding:50px}._langSelectButton_8uz61_35{font-family:思源宋体,serif;cursor:pointer;font-size:200%;color:#fff;border-radius:4px;border:1px solid rgba(255,255,255,.8);padding:10px 50px;transition:color .33s,background-color .33s}._langSelectButton_8uz61_35:hover{background:white;color:#93a5cf}._panic_overlay_main_1ysz4_1{margin:0;position:fixed;width:100%;height:100%;background-color:#fff;z-index:256}._yoozle_blue_1r48o_1{color:#4285f4}._yoozle_red_1r48o_5{color:#db4437}._yoozle_yellow_1r48o_9{color:#f4b400}._yoozle_green_1r48o_13{color:#0f9d58}._yoozle_e_rotate_1r48o_17{display:inline-block;transform:rotate(-12deg)}._yoozle_container_1r48o_22{display:flex;flex-direction:column;height:100%}._yoozle_title_1r48o_28{display:flex;flex-direction:column;align-items:center;padding-top:80px;font-family:arial,sans-serif;font-size:90px}._yoozle_search_1r48o_37{display:flex;flex-direction:column;align-items:center;padding:20px 10px}._yoozle_search_bar_1r48o_44{width:40%;line-height:32px;font-family:arial,sans-serif;font-size:18px}._yoozle_search_buttons_1r48o_51{padding-top:13px}._yoozle_button_1r48o_55{background-color:#f8f9fa;border:1px solid #f8f9fa;border-radius:4px;color:#3c4043;font-family:arial,sans-serif;font-size:14px;margin:11px 4px;padding:0 16px;line-height:27px;height:36px;min-width:54px;text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none}._yoozle_button_1r48o_55:hover{box-shadow:0 1px 1px #0000001a;border:1px solid #dadce0;color:#202124}._yoozle_button_1r48o_55:focus{border:1px solid #4285f4;outline:none}@keyframes centerIn{0%{opacity:0;transform:scale(1)}to{opacity:1;transform:scale(1)}}@keyframes upIn{0%{opacity:0;transform:scale(1) translateY(3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes leftIn{0%{opacity:0;transform:scale(1) translate(-3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes rightIn{0%{opacity:0;transform:scale(1) translate(3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes bg_down{0%{opacity:0;transform:scale(1.1) translateY(-3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes bg_softIn{0%{opacity:0}to{opacity:1}}@keyframes hideBG{0%{opacity:1}to{opacity:0}}@keyframes shake{0%{transform:translate(0)}25%{transform:translate(-2%)}75%{transform:translate(2%)}to{transform:translate(0)}}@keyframes moveBaF{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}@keyframes showSoftly{0%{opacity:0}to{opacity:1}}@keyframes elementFadeIn{0%{transform:translate(-15px,-20px) scale(1.03);opacity:0}to{opacity:1}}@keyframes controlButtonHover{0%{background-color:#0000;box-shadow:none}to{background-color:#ffffff40;box-shadow:5px 5px 15px #000000a6}}@keyframes controlButtonHoverBack{}@keyframes TitleButtonOnChoose{0%{transform:scale(1)}to{transform:scale(1.1)}}@keyframes TitleButtonNoneChoose{0%{transform:scale(1.1)}}@keyframes TitleModelHover{0%{background-color:#00000059}to{background-color:#000000a6}}@keyframes TitleModelNoneHover{0%{background-color:#000000a6}to{background-color:#00000059}}@keyframes bg_focusLeft{0%{transform:scale(1) translate(0);filter:blur(0)}to{transform:scale(1.15) translate(5%);filter:blur(1px)}}@keyframes bg_focusRight{0%{transform:scale(1) translate(0);filter:blur(0)}to{transform:scale(1.15) translate(-5%);filter:blur(1px)}}@keyframes bg_LtoR{0%{transform:scale(1.15) translate(5%);filter:blur(1px)}to{transform:scale(1.15) translate(-5%);filter:blur(1px)}}@keyframes bg_RtoL{0%{transform:scale(1.15) translate(-5%);filter:blur(1px)}to{transform:scale(1.15) translate(5%);filter:blur(1px)}}@keyframes bg_LtoC{0%{transform:scale(1.15) translate(5%);filter:blur(1px)}to{transform:scale(1) translate(0);filter:blur(0)}}@keyframes bg_RtoC{0%{transform:scale(1.15) translate(-5%);filter:blur(1px)}to{transform:scale(1) translate(0);filter:blur(0)}}@keyframes bg_focus{0%{transform:scale(1) translate(0);filter:blur(0)}to{transform:scale(1.15);filter:blur(1px)}}@keyframes bg_LtoF{0%{transform:scale(1.15) translate(5%);filter:blur(1px)}to{transform:scale(1.15);filter:blur(1px)}}@keyframes bg_RtoF{0%{transform:scale(1.15) translate(-5%);filter:blur(1px)}to{transform:scale(1.15);filter:blur(1px)}}@keyframes bg_FtoL{0%{transform:scale(1.15);filter:blur(1px)}to{transform:scale(1.15) translate(5%);filter:blur(1px)}}@keyframes bg_FtoR{0%{transform:scale(1.15);filter:blur(1px)}to{transform:scale(1.15) translate(-5%);filter:blur(1px)}}@keyframes bg_FtoC{0%{transform:scale(1.15);filter:blur(1px)}to{transform:scale(1) translate(0);filter:blur(0)}}*,*:before,*:after{box-sizing:border-box}body,h1,h2,h3,h4,p,figure,blockquote,dl,dd{margin:0}ul[role=list],ol[role=list]{list-style:none}html:focus-within{scroll-behavior:smooth}body{min-height:100vh;text-rendering:optimizeSpeed;line-height:1.5}a:not([class]){text-decoration-skip-ink:auto}img,picture{max-width:100%;display:block}input,button,textarea,select{font:inherit}@media (prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}} diff --git a/packages/terre2/assets/templates/WebGAL_Template/assets/initRegister-e4655b9f.js b/packages/terre2/assets/templates/WebGAL_Template/assets/initRegister-3e5c23e5.js similarity index 97% rename from packages/terre2/assets/templates/WebGAL_Template/assets/initRegister-e4655b9f.js rename to packages/terre2/assets/templates/WebGAL_Template/assets/initRegister-3e5c23e5.js index c1dfcbfa7..761233178 100644 --- a/packages/terre2/assets/templates/WebGAL_Template/assets/initRegister-e4655b9f.js +++ b/packages/terre2/assets/templates/WebGAL_Template/assets/initRegister-3e5c23e5.js @@ -1 +1 @@ -import{r as S,W as h,C as u,T as w,S as C}from"./index-e4a5e140.js";const k=g=>{const y=h.gameplay.pixiStage.effectsContainer,l=h.gameplay.pixiStage.currentApp,e=new u;y.addChild(e);const n=w.from("./game/tex/cherryBlossoms.png");e.x=l.screen.width/2,e.y=l.screen.height/2,e.pivot.x=e.width/2,e.pivot.y=e.height/2,e.scale.x=1,e.scale.y=1;const i=[];function p(c){const o=new C(n);let r=.25;o.scale.x=.15*r,o.scale.y=.15*r,o.anchor.set(.5),o.x=Math.random()*2560-.5*2560,o.y=0-.5*1440,o.dropSpeed=Math.random()*5,o.acc=Math.random(),e.addChild(o),i.push(o);let s=0;for(const t of i){s++;const a=Math.random();t.dropSpeed=t.acc*.01+t.dropSpeed,t.y+=c*g*t.dropSpeed*.3+.7,s%2===0?(t.x+=c*a*.5,t.rotation+=c*a*.03):(t.x-=c*a*.5,t.rotation-=c*a*.03)}i.length>=200&&(i.unshift(),e.removeChild(e.children[0]))}return h.gameplay.pixiStage.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:p},"cherryBlossoms-Ticker"),{container:e,tickerKey:"cherryBlossoms-Ticker"}};S("cherryBlossoms",()=>k(3));const M=(g,f)=>{var d;const l=h.gameplay.pixiStage.effectsContainer,e=h.gameplay.pixiStage.currentApp,n=new u;l.addChild(n);const i=w.from("./game/tex/raindrop.png");n.x=e.screen.width/2,n.y=e.screen.height/2,n.pivot.x=n.width/2,n.pivot.y=n.height/2,n.scale.x=1,n.scale.y=1;const p=[];function c(x){for(let s=0;s=.5&&(t.alpha=.5),t.alpha<=.2&&(t.alpha=.2),n.addChild(t),p.push(t)}for(const s of p)s.dropSpeed=s.acc*.01+s.dropSpeed,s.y+=x*g*s.dropSpeed*1.1+3;p.length>=2500&&(p.unshift(),n.removeChild(n.children[0]))}return(d=h.gameplay.pixiStage)==null||d.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:c},"rain-Ticker"),{container:n,tickerKey:"rain-Ticker"}};S("rain",()=>M(6,10));const W=g=>{var c;const y=h.gameplay.pixiStage.effectsContainer,l=h.gameplay.pixiStage.currentApp,e=new u;y.addChild(e);const n=w.from("./game/tex/snowFlake_min.png");e.x=l.screen.width/2,e.y=l.screen.height/2,e.pivot.x=e.width/2,e.pivot.y=e.height/2,e.scale.x=1,e.scale.y=1;const i=[];function p(d){const r=new C(n);let s=Math.random();s<=.5&&(s=.5),r.scale.x=.144*s,r.scale.y=.144*s,r.anchor.set(.5),r.x=Math.random()*2560-.5*2560,r.y=0-.5*1440,r.dropSpeed=Math.random()*2,r.acc=Math.random(),e.addChild(r),i.push(r);let t=0;for(const a of i){t++;const m=Math.random();a.dropSpeed=a.acc*.01+a.dropSpeed,a.y+=d*g*a.dropSpeed*.3+.7,t%2===0?(a.x+=d*m*.5,a.rotation+=d*m*.03):(a.x-=d*m*.5,a.rotation-=d*m*.03)}i.length>=500&&(i.unshift(),e.removeChild(e.children[0]))}return(c=h.gameplay.pixiStage)==null||c.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:p},"snow-Ticker"),{container:e,tickerKey:"snow-Ticker"}};S("snow",()=>W(3)); +import{r as S,W as h,C as u,T as w,S as C}from"./index-9a56520c.js";const k=g=>{const y=h.gameplay.pixiStage.effectsContainer,l=h.gameplay.pixiStage.currentApp,e=new u;y.addChild(e);const n=w.from("./game/tex/cherryBlossoms.png");e.x=l.screen.width/2,e.y=l.screen.height/2,e.pivot.x=e.width/2,e.pivot.y=e.height/2,e.scale.x=1,e.scale.y=1;const i=[];function p(c){const o=new C(n);let r=.25;o.scale.x=.15*r,o.scale.y=.15*r,o.anchor.set(.5),o.x=Math.random()*2560-.5*2560,o.y=0-.5*1440,o.dropSpeed=Math.random()*5,o.acc=Math.random(),e.addChild(o),i.push(o);let s=0;for(const t of i){s++;const a=Math.random();t.dropSpeed=t.acc*.01+t.dropSpeed,t.y+=c*g*t.dropSpeed*.3+.7,s%2===0?(t.x+=c*a*.5,t.rotation+=c*a*.03):(t.x-=c*a*.5,t.rotation-=c*a*.03)}i.length>=200&&(i.unshift(),e.removeChild(e.children[0]))}return h.gameplay.pixiStage.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:p},"cherryBlossoms-Ticker"),{container:e,tickerKey:"cherryBlossoms-Ticker"}};S("cherryBlossoms",()=>k(3));const M=(g,f)=>{var d;const l=h.gameplay.pixiStage.effectsContainer,e=h.gameplay.pixiStage.currentApp,n=new u;l.addChild(n);const i=w.from("./game/tex/raindrop.png");n.x=e.screen.width/2,n.y=e.screen.height/2,n.pivot.x=n.width/2,n.pivot.y=n.height/2,n.scale.x=1,n.scale.y=1;const p=[];function c(x){for(let s=0;s=.5&&(t.alpha=.5),t.alpha<=.2&&(t.alpha=.2),n.addChild(t),p.push(t)}for(const s of p)s.dropSpeed=s.acc*.01+s.dropSpeed,s.y+=x*g*s.dropSpeed*1.1+3;p.length>=2500&&(p.unshift(),n.removeChild(n.children[0]))}return(d=h.gameplay.pixiStage)==null||d.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:c},"rain-Ticker"),{container:n,tickerKey:"rain-Ticker"}};S("rain",()=>M(6,10));const W=g=>{var c;const y=h.gameplay.pixiStage.effectsContainer,l=h.gameplay.pixiStage.currentApp,e=new u;y.addChild(e);const n=w.from("./game/tex/snowFlake_min.png");e.x=l.screen.width/2,e.y=l.screen.height/2,e.pivot.x=e.width/2,e.pivot.y=e.height/2,e.scale.x=1,e.scale.y=1;const i=[];function p(d){const r=new C(n);let s=Math.random();s<=.5&&(s=.5),r.scale.x=.144*s,r.scale.y=.144*s,r.anchor.set(.5),r.x=Math.random()*2560-.5*2560,r.y=0-.5*1440,r.dropSpeed=Math.random()*2,r.acc=Math.random(),e.addChild(r),i.push(r);let t=0;for(const a of i){t++;const m=Math.random();a.dropSpeed=a.acc*.01+a.dropSpeed,a.y+=d*g*a.dropSpeed*.3+.7,t%2===0?(a.x+=d*m*.5,a.rotation+=d*m*.03):(a.x-=d*m*.5,a.rotation-=d*m*.03)}i.length>=500&&(i.unshift(),e.removeChild(e.children[0]))}return(c=h.gameplay.pixiStage)==null||c.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:p},"snow-Ticker"),{container:e,tickerKey:"snow-Ticker"}};S("snow",()=>W(3)); diff --git a/packages/terre2/assets/templates/WebGAL_Template/index.html b/packages/terre2/assets/templates/WebGAL_Template/index.html index 9203efc58..6c8fe579a 100644 --- a/packages/terre2/assets/templates/WebGAL_Template/index.html +++ b/packages/terre2/assets/templates/WebGAL_Template/index.html @@ -7,8 +7,8 @@ WebGAL - - + + diff --git a/packages/terre2/package.json b/packages/terre2/package.json index d32a78686..b447b30f3 100644 --- a/packages/terre2/package.json +++ b/packages/terre2/package.json @@ -1,6 +1,6 @@ { "name": "webgal-terre-2", - "version": "4.4.11", + "version": "4.4.12", "description": "", "author": "", "private": true, diff --git a/packages/terre2/src/main.ts b/packages/terre2/src/main.ts index fca11c388..a305116bc 100644 --- a/packages/terre2/src/main.ts +++ b/packages/terre2/src/main.ts @@ -7,7 +7,7 @@ import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger'; import { env } from 'process'; let WEBGAL_PORT = 3000; // default port -const version_number = `4.4.11`; +const version_number = `4.4.12`; if (env.WEBGAL_PORT) { WEBGAL_PORT = Number.parseInt(env.WEBGAL_PORT); } diff --git a/releasenote.md b/releasenote.md index dd3d050aa..50a70dfb4 100644 --- a/releasenote.md +++ b/releasenote.md @@ -4,14 +4,16 @@ #### 新功能 -升级整体 UI +升级引擎到 4.4.12,进行了多项易用性改进 -添加“调试器”功能 +暂时移除了文本框预设选项,为下版本接入 UI 自定义功能做准备 #### 修复 修复引擎的一些故障 +为 Mac OS X 用户添加特别的操作提示 + ## Release Notes @@ -19,13 +21,15 @@ #### New Features -Upgrade the overall UI +Upgraded the engine to 4.4.12, made several usability improvements + +Temporarily removed the preset options for text boxes, preparing for the UI customization feature in the next version -Add "Debugger" function +#### Fixes -#### Bug Fixes +Fixed some bugs in the engine -Fix some bugs of the engine +Added special operation tips for Mac OS X users @@ -36,13 +40,15 @@ Fix some bugs of the engine #### 新機能 -全体のUIをアップグレード +エンジンを 4.4.12 にアップグレードし、使いやすさを向上させるために多くの改善を行いました。 -「デバッガー」機能を追加 +テキストボックスのプリセットオプションを一時的に削除し、次のバージョンで UI のカスタマイズ機能を導入できるようにしました。 #### 修正 -エンジンのいくつかの障害を修正 +エンジンのいくつかの不具合を修正しました。 + +Mac OS X ユーザー向けに特別な操作ヒントを追加しました。 @@ -52,10 +58,12 @@ Fix some bugs of the engine #### Nouvelles fonctionnalités -Mise à niveau de l'interface utilisateur globale +Mise à jour du moteur vers la version 4.4.12 avec de nombreuses améliorations de convivialité + +Suppression temporaire des options prédéfinies de la zone de texte en vue de l'intégration de la fonctionnalité de personnalisation de l'interface utilisateur dans la prochaine version -Ajout de la fonction « débogueur » +#### Corrections -#### Résolution de bogues +Correction de quelques bugs du moteur -Résolution de certains problèmes du moteur +Ajout d'instructions d'utilisation spécifiques pour les utilisateurs de Mac OS X