lookatstudy-mobile 0.35.0 → 0.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/package.json +1 -1
  2. package/server.cjs +2684 -2021
  3. package/web/assets/{CanvasStage-C72HaOiw.js → CanvasStage-2yeV4nPH.js} +1 -1
  4. package/web/assets/{CommandPalette-cB6g-mzh.js → CommandPalette-BFX8tcFC.js} +1 -1
  5. package/web/assets/{CompanionBotLab-Ch7CGv7f.js → CompanionBotLab-DTlObSeR.js} +1 -1
  6. package/web/assets/{CourseSearchPanel-C4Kh0qi3.js → CourseSearchPanel-DiuZkUSE.js} +1 -1
  7. package/web/assets/{ExamView-dpph-olw.js → ExamView-fx7mUx8Q.js} +2 -2
  8. package/web/assets/PersonalProfileModal-CivNUd4y.js +16 -0
  9. package/web/assets/{ReviewPanel-DynCNoAR.js → ReviewPanel-CdgUqKuF.js} +1 -1
  10. package/web/assets/{SettingsView-CislD6Xj.js → SettingsView-pzj-Jlrz.js} +6 -6
  11. package/web/assets/{VoicePanel-BgdvFoyX.js → VoicePanel-Cyopy3sr.js} +1 -1
  12. package/web/assets/{abnfDiagram-VCTEODGH-CMtB3HOl.js → abnfDiagram-VCTEODGH-Dn5J4BZu.js} +1 -1
  13. package/web/assets/{abnfDiagram-VCTEODGH-ODA7YWAP-BvhKfjaY.js → abnfDiagram-VCTEODGH-ODA7YWAP-6WuG0Nt3.js} +1 -1
  14. package/web/assets/{api-web-Dwfo27My.js → api-web-ChIPnpHO.js} +1 -1
  15. package/web/assets/{architectureDiagram-5GKGNRK7-C4PU3XN7-CSMXYZiY.js → architectureDiagram-5GKGNRK7-C4PU3XN7-BtKh8197.js} +1 -1
  16. package/web/assets/{architectureDiagram-5GKGNRK7-CHnFIH9b.js → architectureDiagram-5GKGNRK7-jrCKwrXL.js} +1 -1
  17. package/web/assets/{blockDiagram-I7D4REHJ-VdzqHZvv.js → blockDiagram-I7D4REHJ-CWtkTOLG.js} +1 -1
  18. package/web/assets/{blockDiagram-NRAW4CY4-UMJ6PMQQ-D7kvNED-.js → blockDiagram-NRAW4CY4-UMJ6PMQQ-DHl4tIPo.js} +1 -1
  19. package/web/assets/{c4Diagram-7LVT6UL2-CgznJmUi.js → c4Diagram-7LVT6UL2-DvgOYbmL.js} +1 -1
  20. package/web/assets/{c4Diagram-UCG6FXSJ-75X3U2P3-B9xFuSPH.js → c4Diagram-UCG6FXSJ-75X3U2P3-8t5uU1V0.js} +1 -1
  21. package/web/assets/channel-CSAHJ2BV.js +1 -0
  22. package/web/assets/{chunk-2Q5K7J3B-CAns8y8j.js → chunk-2Q5K7J3B-D-MRkRaW.js} +1 -1
  23. package/web/assets/{chunk-5VM5RSS4-C2nhzqYi.js → chunk-5VM5RSS4-DgMwQtQx.js} +1 -1
  24. package/web/assets/{chunk-7XDTSPCN-Du4JZkXG.js → chunk-7XDTSPCN-C6CLiznJ.js} +1 -1
  25. package/web/assets/{chunk-CTNIYPP6-B7lfk-YJ.js → chunk-CTNIYPP6-CM1Z69qf.js} +1 -1
  26. package/web/assets/{chunk-CXNFBKHE-BC4UXdAm.js → chunk-CXNFBKHE-B6ieqKBL.js} +1 -1
  27. package/web/assets/{chunk-F27PBJKO-LQpoAT6J.js → chunk-F27PBJKO-AboV3MjF.js} +1 -1
  28. package/web/assets/{chunk-IMKFNOWR-Ctz3Z-uw.js → chunk-IMKFNOWR-BRfxTcG3.js} +1 -1
  29. package/web/assets/{chunk-ISA7TJRJ-CxiQRkRL.js → chunk-ISA7TJRJ-BA6VnLlf.js} +1 -1
  30. package/web/assets/{chunk-JWPE2WC7-yepkRAwM.js → chunk-JWPE2WC7-CM5DFf0Z.js} +1 -1
  31. package/web/assets/{chunk-LV3HUYFY-CIjD4C-e.js → chunk-LV3HUYFY-DtT0YyqZ.js} +1 -1
  32. package/web/assets/{chunk-M3IUQBOH-B_b1jC1d.js → chunk-M3IUQBOH-DGSTxKRB.js} +1 -1
  33. package/web/assets/{chunk-NDIOYS4C-Dnzhfg9r.js → chunk-NDIOYS4C-BDCIN1Cv.js} +1 -1
  34. package/web/assets/{chunk-POPQ4Y6H-fHcz0X8j.js → chunk-POPQ4Y6H-CRs1ouKF.js} +1 -1
  35. package/web/assets/{chunk-RE4WF27V-CxX4BnEj.js → chunk-RE4WF27V-CPwQc2vn.js} +1 -1
  36. package/web/assets/{chunk-SVP7TREG-BnltLrM-.js → chunk-SVP7TREG-Cbw7rxkD.js} +1 -1
  37. package/web/assets/{chunk-TICWLB2K-D12wpFc6.js → chunk-TICWLB2K-CJpuBU6m.js} +1 -1
  38. package/web/assets/{chunk-VII2H2IX-Twcv7Nfl.js → chunk-VII2H2IX-udiwuRgE.js} +1 -1
  39. package/web/assets/{chunk-X5GNSKZ3-BL1R0B0m.js → chunk-X5GNSKZ3-DvVFKhTQ.js} +1 -1
  40. package/web/assets/{chunk-XCWWM2C3-Tg4IR0n8.js → chunk-XCWWM2C3-EFZq_oj4.js} +1 -1
  41. package/web/assets/{chunk-XXDRQBXY-DJoPR1YB.js → chunk-XXDRQBXY-BCxGit2x.js} +1 -1
  42. package/web/assets/classDiagram-DTDB5LWJ-LWRDKZ5K-4hLnkbwM.js +1 -0
  43. package/web/assets/classDiagram-ZZMXUADV-CMAUnrA5.js +1 -0
  44. package/web/assets/classDiagram-v2-JRS7N3AN-2BZHGRP2-4hLnkbwM.js +1 -0
  45. package/web/assets/classDiagram-v2-VYDZK3BY-CMAUnrA5.js +1 -0
  46. package/web/assets/{core-CInUNwIn.js → core-CTdCef6f.js} +4 -4
  47. package/web/assets/{cose-bilkent-JH36ORCC-Bs86DA0h.js → cose-bilkent-JH36ORCC-Dfkex2fo.js} +1 -1
  48. package/web/assets/{cose-bilkent-JH36ORCC-OB24KH3T-Dq3mWE76.js → cose-bilkent-JH36ORCC-OB24KH3T-CE0-pZTl.js} +1 -1
  49. package/web/assets/{cynefin-OW5HDTMX-D6ZQlGMQ.js → cynefin-OW5HDTMX-DeRfvx8D.js} +1 -1
  50. package/web/assets/{cynefin-OW5HDTMX-GVF3BKWE-Dnl8JJFM.js → cynefin-OW5HDTMX-GVF3BKWE-WBE1vO13.js} +1 -1
  51. package/web/assets/{cynefinDiagram-5FMLGOSQ-CCC-03k6.js → cynefinDiagram-5FMLGOSQ-Bh5b3wB1.js} +1 -1
  52. package/web/assets/{cynefinDiagram-5FMLGOSQ-H3WIRU3N-Dt1RAnjs.js → cynefinDiagram-5FMLGOSQ-H3WIRU3N-BJvz82EQ.js} +1 -1
  53. package/web/assets/{dagre-3AP2YEHR-DCERTXHT-B0t8ElJV.js → dagre-3AP2YEHR-DCERTXHT-XAHjclga.js} +1 -1
  54. package/web/assets/{dagre-GXQ25YYZ-CgU7yrVy.js → dagre-GXQ25YYZ-DrM7-QVm.js} +1 -1
  55. package/web/assets/{diagram-S7CK7UJ4-DTR2y6UT.js → diagram-S7CK7UJ4-DuzIHkVE.js} +1 -1
  56. package/web/assets/{diagram-S7CK7UJ4-MULGZGEL-DwX9tj_E.js → diagram-S7CK7UJ4-MULGZGEL-DPqhnzpl.js} +1 -1
  57. package/web/assets/{diagram-UQ7AKVKN-D2CVN862.js → diagram-UQ7AKVKN-DhVHhLx3.js} +1 -1
  58. package/web/assets/{diagram-UQ7AKVKN-YQBY353J-LgNf4bhC.js → diagram-UQ7AKVKN-YQBY353J-CtxlSSGF.js} +1 -1
  59. package/web/assets/{diagram-VSXAHHWV-CYQLixjs.js → diagram-VSXAHHWV-KRouqsun.js} +1 -1
  60. package/web/assets/{diagram-VSXAHHWV-WLNH2ELY-C2Plr2sR.js → diagram-VSXAHHWV-WLNH2ELY-CIR4bpme.js} +1 -1
  61. package/web/assets/{diagram-VX7I27RA-BJQtFm-G.js → diagram-VX7I27RA-CTJ3vljk.js} +1 -1
  62. package/web/assets/{diagram-VX7I27RA-XW6YQV5G-BkfQh4Mv.js → diagram-VX7I27RA-XW6YQV5G-BpP1BFMf.js} +1 -1
  63. package/web/assets/{diagram-Z3DM3KII-arIh_Ydh.js → diagram-Z3DM3KII-D5hgo2N9.js} +1 -1
  64. package/web/assets/{diagram-Z3DM3KII-HG7RF65D-BsWePKJ6.js → diagram-Z3DM3KII-HG7RF65D-BYiYU7xi.js} +1 -1
  65. package/web/assets/{ebnfDiagram-PWID7BFC-efb9oxoq.js → ebnfDiagram-PWID7BFC-DamZ_7Vh.js} +1 -1
  66. package/web/assets/{ebnfDiagram-PWID7BFC-OKY4VHYD-CSDN-ES2.js → ebnfDiagram-PWID7BFC-OKY4VHYD-yPy84C7F.js} +1 -1
  67. package/web/assets/{elk.bundled-B1HkkibK.js → elk.bundled-Bnb7YbCz.js} +1 -1
  68. package/web/assets/{erDiagram-RLTQ6QDP-BM3e1Eha.js → erDiagram-RLTQ6QDP-DXutINWC.js} +1 -1
  69. package/web/assets/{erDiagram-SSCWMZ5O-PIPKOIK7-BkRkgiEn.js → erDiagram-SSCWMZ5O-PIPKOIK7-ZtlmPRSG.js} +1 -1
  70. package/web/assets/{flowDiagram-A5DVABFB-2Z4AVO5R-CNrxNr1X.js → flowDiagram-A5DVABFB-2Z4AVO5R-RWiTsxAA.js} +1 -1
  71. package/web/assets/{flowDiagram-HODETNUW-tIdWY3-u.js → flowDiagram-HODETNUW-C0v4xgVs.js} +1 -1
  72. package/web/assets/{ganttDiagram-EL5Y4UJY-CcbO-KDD.js → ganttDiagram-EL5Y4UJY-C10Pxkpf.js} +1 -1
  73. package/web/assets/{ganttDiagram-EL5Y4UJY-JZNG7GOG-BZZl4cGf.js → ganttDiagram-EL5Y4UJY-JZNG7GOG-C3JHepgy.js} +1 -1
  74. package/web/assets/{gitGraphDiagram-WWUBYQGX-DMWMLL3G-BXh7EB8a.js → gitGraphDiagram-WWUBYQGX-DMWMLL3G-Dvo5dray.js} +1 -1
  75. package/web/assets/{gitGraphDiagram-WWUBYQGX-mUHSo0oW.js → gitGraphDiagram-WWUBYQGX-DnhwejId.js} +1 -1
  76. package/web/assets/{index-CtcKtEMF.js → index-BeI-qOIb.js} +6 -6
  77. package/web/assets/index-By7sA5iY.css +1 -0
  78. package/web/assets/{index-BzdORPhC.js → index-C06x750C.js} +1 -1
  79. package/web/assets/{index-DpUqsNSC.js → index-C8cLLejx.js} +1 -1
  80. package/web/assets/{index-B9KSAI26.js → index-D5O6zEt9.js} +2 -2
  81. package/web/assets/{infoDiagram-27XIBGKW-6zuJOkud.js → infoDiagram-27XIBGKW-BCK0GNZi.js} +1 -1
  82. package/web/assets/{infoDiagram-RXCK75RN-HANS5KVC-DgNsPCDB.js → infoDiagram-RXCK75RN-HANS5KVC-DnIuK4Ld.js} +1 -1
  83. package/web/assets/{ishikawaDiagram-5VMMS53U-7GCIT7WU-C1aCi21z.js → ishikawaDiagram-5VMMS53U-7GCIT7WU-D7H0PvCT.js} +1 -1
  84. package/web/assets/{ishikawaDiagram-5VMMS53U-CfBlX7z8.js → ishikawaDiagram-5VMMS53U-CwfpIEur.js} +1 -1
  85. package/web/assets/{journeyDiagram-3NMN7TZE-CsVwn0uz.js → journeyDiagram-3NMN7TZE-D7yc5_ha.js} +1 -1
  86. package/web/assets/{journeyDiagram-EYS64GPL-OAPELBT7-GmOyjRKs.js → journeyDiagram-EYS64GPL-OAPELBT7-BxN0kQu5.js} +1 -1
  87. package/web/assets/{kanban-definition-3QL26DDD-I7RKWQQY-DYO1LivP.js → kanban-definition-3QL26DDD-I7RKWQQY-4n8YjWaH.js} +1 -1
  88. package/web/assets/{kanban-definition-UXKFOSKX-BGaJOKpZ.js → kanban-definition-UXKFOSKX-jCn6YBMx.js} +1 -1
  89. package/web/assets/{katex-N6JRN4PM-CCO3fQlh.js → katex-N6JRN4PM-Dsye9nhm.js} +1 -1
  90. package/web/assets/{layout-DxwbGgTi.js → layout-BGHeGqee.js} +1 -1
  91. package/web/assets/main-D7WqSbOt.js +537 -0
  92. package/web/assets/{mermaid-layout-elk.core-D9OOh4D_.js → mermaid-layout-elk.core-DTUF3xdW.js} +2 -2
  93. package/web/assets/{mermaid.core-BEhN9Nie.js → mermaid.core-C-NqYAhX.js} +5 -5
  94. package/web/assets/{mindmap-definition-FBJOCRG2-KIYZG64Y-ZPfoLqVV.js → mindmap-definition-FBJOCRG2-KIYZG64Y-DfNqXTK3.js} +1 -1
  95. package/web/assets/{mindmap-definition-YA3MSWOX-D-0q8D0x.js → mindmap-definition-YA3MSWOX-D3sKf06e.js} +1 -1
  96. package/web/assets/{pegDiagram-XKGWAZYB-BV_8eJIL.js → pegDiagram-XKGWAZYB-CVKDjCVA.js} +1 -1
  97. package/web/assets/{pegDiagram-XKGWAZYB-OIP57N6J-DqRF2GbT.js → pegDiagram-XKGWAZYB-OIP57N6J-DS2aCbPH.js} +1 -1
  98. package/web/assets/{pet-DCzJVVt6.js → pet-Du-sCSbe.js} +1 -1
  99. package/web/assets/{pieDiagram-E7YTZNPT-2UOTW327-Cr4fAU8o.js → pieDiagram-E7YTZNPT-2UOTW327-yjF7mWxr.js} +1 -1
  100. package/web/assets/{pieDiagram-E7YTZNPT-nB-_CLeT.js → pieDiagram-E7YTZNPT-Bv5akhT4.js} +1 -1
  101. package/web/assets/{quadrantDiagram-AXDQQJYC-BNAlPSkj.js → quadrantDiagram-AXDQQJYC-O95BF4oR.js} +1 -1
  102. package/web/assets/{quadrantDiagram-AXDQQJYC-SN3ASJJK-Cf5G05Po.js → quadrantDiagram-AXDQQJYC-SN3ASJJK-BLrtldcO.js} +1 -1
  103. package/web/assets/{railroadDiagram-O6MQD6OU-34742W6X-CFH7Z2dw.js → railroadDiagram-O6MQD6OU-34742W6X-D8Re17Lm.js} +1 -1
  104. package/web/assets/{railroadDiagram-O6MQD6OU-FF9J40BN.js → railroadDiagram-O6MQD6OU-C4dT_AHN.js} +1 -1
  105. package/web/assets/{render-O7CIS3YK-CFk-qve4.js → render-O7CIS3YK-C1LKCRfk.js} +7 -7
  106. package/web/assets/{requirementDiagram-BXWQKSXE-BMV8VnvW.js → requirementDiagram-BXWQKSXE-DRoAJ0A4.js} +1 -1
  107. package/web/assets/{requirementDiagram-EFPCY7ZU-NGAFFSMB-Dgr3205x.js → requirementDiagram-EFPCY7ZU-NGAFFSMB-BRpdn_yZ.js} +1 -1
  108. package/web/assets/{rotate-ccw-DZxkibR5.js → rotate-ccw-BS0Lg3XV.js} +1 -1
  109. package/web/assets/{sankeyDiagram-P5KCCOFB-3D3M4XPB-CN03neoX.js → sankeyDiagram-P5KCCOFB-3D3M4XPB-U2MyqhHx.js} +1 -1
  110. package/web/assets/{sankeyDiagram-P5KCCOFB-yPJIv_Ow.js → sankeyDiagram-P5KCCOFB-DhLHY7NO.js} +1 -1
  111. package/web/assets/{sequenceDiagram-WJ2MYXX4-BaWlvXkm.js → sequenceDiagram-WJ2MYXX4-C5QbVOkW.js} +1 -1
  112. package/web/assets/{sequenceDiagram-WJ2MYXX4-Q2IOPB4R-GEXmhp2H.js → sequenceDiagram-WJ2MYXX4-Q2IOPB4R-C3se4pTd.js} +1 -1
  113. package/web/assets/{sizeCapture-INFHLROL-DvbiIbXq.js → sizeCapture-INFHLROL-Ds6O28WR.js} +1 -1
  114. package/web/assets/{sizeCapture-X5ZJPWSS-PSGVOMYM-CLmCvgE-.js → sizeCapture-X5ZJPWSS-PSGVOMYM-Dalg_GSB.js} +1 -1
  115. package/web/assets/{stateDiagram-D77RDMKH-v3JAq8H4.js → stateDiagram-D77RDMKH-C4Loqn2S.js} +1 -1
  116. package/web/assets/{stateDiagram-HBIQ2CUA-4M2S6MAN-Bk6n0C4h.js → stateDiagram-HBIQ2CUA-4M2S6MAN-CYg9tFmx.js} +1 -1
  117. package/web/assets/stateDiagram-v2-4QOOHH4V-LBBLA2WV-CMhstoHU.js +1 -0
  118. package/web/assets/stateDiagram-v2-MP3YSRHH-CcPVgXyv.js +1 -0
  119. package/web/assets/{swimlanes-42K2YHIH-DHz1p7KG.js → swimlanes-42K2YHIH-B95g1myb.js} +1 -1
  120. package/web/assets/{swimlanes-XN3QIQJK-N6N2CCQ6-HxeNMmfZ.js → swimlanes-XN3QIQJK-N6N2CCQ6-BVCO5pth.js} +1 -1
  121. package/web/assets/swimlanesDiagram-VK2B7HYN-E6N4H5SY-CqJNI91T.js +8 -0
  122. package/web/assets/swimlanesDiagram-VR7AAH4N-BrEEiqe7.js +8 -0
  123. package/web/assets/{timeline-definition-24CTP7MA-Dn1hyaRN.js → timeline-definition-24CTP7MA-DfbDTQSt.js} +1 -1
  124. package/web/assets/{timeline-definition-24CTP7MA-KN7RSRVM-DVlLI_ni.js → timeline-definition-24CTP7MA-KN7RSRVM-Ba1F1ajL.js} +1 -1
  125. package/web/assets/{vennDiagram-4TSXK5OY-AKJ7LXAN-W1H4YhrJ.js → vennDiagram-4TSXK5OY-AKJ7LXAN-B9Nx1RWB.js} +1 -1
  126. package/web/assets/{vennDiagram-4TSXK5OY-Dxezw6vn.js → vennDiagram-4TSXK5OY-B-uAb-fo.js} +1 -1
  127. package/web/assets/{wardleyDiagram-VM6X3IG4-3B6A3BN5-y4QqLWww.js → wardleyDiagram-VM6X3IG4-3B6A3BN5-v-icjHpd.js} +1 -1
  128. package/web/assets/{wardleyDiagram-VM6X3IG4-BJzvdena.js → wardleyDiagram-VM6X3IG4-Cr0_wFiw.js} +1 -1
  129. package/web/assets/{xychartDiagram-S5SC5T6Z-DePRnwoY.js → xychartDiagram-S5SC5T6Z-DwsgX-jd.js} +1 -1
  130. package/web/assets/{xychartDiagram-S5SC5T6Z-OBDNV6WG-CCeTp4-Y.js → xychartDiagram-S5SC5T6Z-OBDNV6WG-BX7F_LDu.js} +1 -1
  131. package/web/index.html +3 -3
  132. package/web/pet.html +3 -3
  133. package/web/assets/arrow-right-TM3y6L-Y.js +0 -6
  134. package/web/assets/channel-Df7Ybeyp.js +0 -1
  135. package/web/assets/classDiagram-DTDB5LWJ-LWRDKZ5K-B6JY0Amc.js +0 -1
  136. package/web/assets/classDiagram-ZZMXUADV-CW-v2a7Q.js +0 -1
  137. package/web/assets/classDiagram-v2-JRS7N3AN-2BZHGRP2-B6JY0Amc.js +0 -1
  138. package/web/assets/classDiagram-v2-VYDZK3BY-CW-v2a7Q.js +0 -1
  139. package/web/assets/index-DpPK19Iz.css +0 -1
  140. package/web/assets/main-CSS_lFDP.js +0 -487
  141. package/web/assets/stateDiagram-v2-4QOOHH4V-LBBLA2WV-CSGIWpWK.js +0 -1
  142. package/web/assets/stateDiagram-v2-MP3YSRHH-Bw5j-FVB.js +0 -1
  143. package/web/assets/swimlanesDiagram-VK2B7HYN-E6N4H5SY-BcGn1eC6.js +0 -8
  144. package/web/assets/swimlanesDiagram-VR7AAH4N-BORev-1v.js +0 -8
@@ -1,4 +1,4 @@
1
- import{w as Qe,s as o1,k as u1,n as h1,v as c1,p as m1}from"./main-CSS_lFDP.js";import"./index-DpUqsNSC.js";function d1(r,e){return Qr(r,{})||{type:"root",children:[]}}function Qr(r,e){const t=f1(r,e);return t&&e.afterTransform&&e.afterTransform(r,t),t}function f1(r,e){switch(r.nodeType){case 1:return b1(r,e);case 3:return v1(r);case 8:return g1(r);case 9:return lr(r,e);case 10:return p1();case 11:return lr(r,e);default:return}}function lr(r,e){return{type:"root",children:_r(r,e)}}function p1(){return{type:"doctype"}}function v1(r){return{type:"text",value:r.nodeValue||""}}function g1(r){return{type:"comment",value:r.nodeValue||""}}function b1(r,e){const t=r.namespaceURI,a=t===Qe.svg?o1:u1,n=t===Qe.html?r.tagName.toLowerCase():r.tagName,s=t===Qe.html&&n==="template"?r.content:r,o=r.getAttributeNames(),h={};let c=-1;for(;++c<o.length;)h[o[c]]=r.getAttribute(o[c])||"";return a(n,h,_r(s,e))}function _r(r,e){const t=r.childNodes,a=[];let n=-1;for(;++n<t.length;){const s=Qr(t[n],e);s!==void 0&&a.push(s)}return a}new DOMParser;function y1(r,e){const t=x1(r);return d1(t)}function x1(r){const e=document.createElement("template");return e.innerHTML=r,e.content}const or=(function(r,e,t){const a=h1(t);if(!r||!r.type||!r.children)throw new Error("Expected parent node");if(typeof e=="number"){if(e<0||e===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(e=r.children.indexOf(e),e<0)throw new Error("Expected child node or index");for(;++e<r.children.length;)if(a(r.children[e],e,r))return r.children[e]}),W0=(function(r){if(r==null)return S1;if(typeof r=="string")return k1(r);if(typeof r=="object")return w1(r);if(typeof r=="function")return Rt(r);throw new Error("Expected function, string, or array as `test`")});function w1(r){const e=[];let t=-1;for(;++t<r.length;)e[t]=W0(r[t]);return Rt(a);function a(...n){let s=-1;for(;++s<e.length;)if(e[s].apply(this,n))return!0;return!1}}function k1(r){return Rt(e);function e(t){return t.tagName===r}}function Rt(r){return e;function e(t,a,n){return!!(z1(t)&&r.call(this,t,typeof a=="number"?a:void 0,n||void 0))}}function S1(r){return!!(r&&typeof r=="object"&&"type"in r&&r.type==="element"&&"tagName"in r&&typeof r.tagName=="string")}function z1(r){return r!==null&&typeof r=="object"&&"type"in r&&"tagName"in r}const ur=/\n/g,hr=/[\t ]+/g,pt=W0("br"),cr=W0(E1),A1=W0("p"),mr=W0("tr"),M1=W0(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",q1,N1]),ea=W0(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function T1(r,e){const t=e||{},a="children"in r?r.children:[],n=ea(r),s=aa(r,{whitespace:t.whitespace||"normal"}),o=[];(r.type==="text"||r.type==="comment")&&o.push(...ra(r,{breakBefore:!0,breakAfter:!0}));let h=-1;for(;++h<a.length;)o.push(...ta(a[h],r,{whitespace:s,breakBefore:h?void 0:n,breakAfter:h<a.length-1?pt(a[h+1]):n}));const c=[];let f;for(h=-1;++h<o.length;){const v=o[h];typeof v=="number"?f!==void 0&&v>f&&(f=v):v&&(f!==void 0&&f>-1&&c.push(`
1
+ import{y as Qe,z as o1,D as u1,E as h1,H as c1,I as m1}from"./main-D7WqSbOt.js";import"./index-C8cLLejx.js";function d1(r,e){return Qr(r,{})||{type:"root",children:[]}}function Qr(r,e){const t=f1(r,e);return t&&e.afterTransform&&e.afterTransform(r,t),t}function f1(r,e){switch(r.nodeType){case 1:return b1(r,e);case 3:return v1(r);case 8:return g1(r);case 9:return lr(r,e);case 10:return p1();case 11:return lr(r,e);default:return}}function lr(r,e){return{type:"root",children:_r(r,e)}}function p1(){return{type:"doctype"}}function v1(r){return{type:"text",value:r.nodeValue||""}}function g1(r){return{type:"comment",value:r.nodeValue||""}}function b1(r,e){const t=r.namespaceURI,a=t===Qe.svg?o1:u1,n=t===Qe.html?r.tagName.toLowerCase():r.tagName,s=t===Qe.html&&n==="template"?r.content:r,o=r.getAttributeNames(),h={};let c=-1;for(;++c<o.length;)h[o[c]]=r.getAttribute(o[c])||"";return a(n,h,_r(s,e))}function _r(r,e){const t=r.childNodes,a=[];let n=-1;for(;++n<t.length;){const s=Qr(t[n],e);s!==void 0&&a.push(s)}return a}new DOMParser;function y1(r,e){const t=x1(r);return d1(t)}function x1(r){const e=document.createElement("template");return e.innerHTML=r,e.content}const or=(function(r,e,t){const a=h1(t);if(!r||!r.type||!r.children)throw new Error("Expected parent node");if(typeof e=="number"){if(e<0||e===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(e=r.children.indexOf(e),e<0)throw new Error("Expected child node or index");for(;++e<r.children.length;)if(a(r.children[e],e,r))return r.children[e]}),W0=(function(r){if(r==null)return S1;if(typeof r=="string")return k1(r);if(typeof r=="object")return w1(r);if(typeof r=="function")return Rt(r);throw new Error("Expected function, string, or array as `test`")});function w1(r){const e=[];let t=-1;for(;++t<r.length;)e[t]=W0(r[t]);return Rt(a);function a(...n){let s=-1;for(;++s<e.length;)if(e[s].apply(this,n))return!0;return!1}}function k1(r){return Rt(e);function e(t){return t.tagName===r}}function Rt(r){return e;function e(t,a,n){return!!(z1(t)&&r.call(this,t,typeof a=="number"?a:void 0,n||void 0))}}function S1(r){return!!(r&&typeof r=="object"&&"type"in r&&r.type==="element"&&"tagName"in r&&typeof r.tagName=="string")}function z1(r){return r!==null&&typeof r=="object"&&"type"in r&&"tagName"in r}const ur=/\n/g,hr=/[\t ]+/g,pt=W0("br"),cr=W0(E1),A1=W0("p"),mr=W0("tr"),M1=W0(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",q1,N1]),ea=W0(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function T1(r,e){const t=e||{},a="children"in r?r.children:[],n=ea(r),s=aa(r,{whitespace:t.whitespace||"normal"}),o=[];(r.type==="text"||r.type==="comment")&&o.push(...ra(r,{breakBefore:!0,breakAfter:!0}));let h=-1;for(;++h<a.length;)o.push(...ta(a[h],r,{whitespace:s,breakBefore:h?void 0:n,breakAfter:h<a.length-1?pt(a[h+1]):n}));const c=[];let f;for(h=-1;++h<o.length;){const v=o[h];typeof v=="number"?f!==void 0&&v>f&&(f=v):v&&(f!==void 0&&f>-1&&c.push(`
2
2
  `.repeat(f)||" "),f=-1,c.push(v))}return c.join("")}function ta(r,e,t){return r.type==="element"?B1(r,e,t):r.type==="text"?t.whitespace==="normal"?ra(r,t):C1(r):[]}function B1(r,e,t){const a=aa(r,t),n=r.children||[];let s=-1,o=[];if(M1(r))return o;let h,c;for(pt(r)||mr(r)&&or(e,r,mr)?c=`
3
3
  `:A1(r)?(h=2,c=2):ea(r)&&(h=1,c=1);++s<n.length;)o=o.concat(ta(n[s],r,{whitespace:a,breakBefore:s?void 0:h,breakAfter:s<n.length-1?pt(n[s+1]):c}));return cr(r)&&or(e,r,cr)&&o.push(" "),h&&o.unshift(h),c&&o.push(c),o}function ra(r,e){const t=String(r.value),a=[],n=[];let s=0;for(;s<=t.length;){ur.lastIndex=s;const c=ur.exec(t),f=c&&"index"in c?c.index:t.length;a.push(D1(t.slice(s,f).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),s===0?e.breakBefore:!0,f===t.length?e.breakAfter:!0)),s=f+1}let o=-1,h;for(;++o<a.length;)a[o].charCodeAt(a[o].length-1)===8203||o<a.length-1&&a[o+1].charCodeAt(0)===8203?(n.push(a[o]),h=void 0):a[o]?(typeof h=="number"&&n.push(h),n.push(a[o]),h=0):(o===0||o===a.length-1)&&n.push(0);return n}function C1(r){return[String(r.value)]}function D1(r,e,t){const a=[];let n=0,s;for(;n<r.length;){hr.lastIndex=n;const o=hr.exec(r);s=o?o.index:r.length,!n&&!s&&o&&!e&&a.push(""),n!==s&&a.push(r.slice(n,s)),n=o?s+o[0].length:s}return n!==s&&!t&&a.push(""),a.join(" ")}function aa(r,e){if(r.type==="element"){const t=r.properties||{};switch(r.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return t.wrap?"pre-wrap":"pre";case"td":case"th":return t.noWrap?"nowrap":e.whitespace;case"textarea":return"pre-wrap"}}return e.whitespace}function q1(r){return!!(r.properties||{}).hidden}function E1(r){return r.tagName==="td"||r.tagName==="th"}function N1(r){return r.tagName==="dialog"&&!(r.properties||{}).open}class S extends Error{constructor(e,t){var a="KaTeX parse error: "+e,n,s,o=t&&t.loc;if(o&&o.start<=o.end){var h=o.lexer.input;n=o.start,s=o.end,n===h.length?a+=" at end of input: ":a+=" at position "+(n+1)+": ";var c=h.slice(n,s).replace(/[^]/g,"$&̲"),f;n>15?f="…"+h.slice(n-15,n):f=h.slice(0,n);var v;s+15<h.length?v=h.slice(s,s+15)+"…":v=h.slice(s),a+=f+c+v}super(a),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,S.prototype),this.position=n,n!=null&&s!=null&&(this.length=s-n),this.rawMessage=e}}var I1=/([A-Z])/g,R1=r=>r.replace(I1,"-$1").toLowerCase(),F1={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},O1=/[&><"']/g,n0=r=>String(r).replace(O1,e=>F1[e]),De=r=>r.type==="ordgroup"||r.type==="color"?r.body.length===1?De(r.body[0]):r:r.type==="font"?De(r.body):r,H1=new Set(["mathord","textord","atom"]),D0=r=>H1.has(De(r).type),L1=r=>{var e=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(r);return e?e[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?null:e[1].toLowerCase():"_relative"},vt={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:r=>"#"+r},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(r,e)=>(e.push(r),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:r=>Math.max(0,r),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:r=>Math.max(0,r),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:r=>Math.max(0,r),cli:"-e, --max-expand <n>",cliProcessor:r=>r==="Infinity"?1/0:parseInt(r)},globalGroup:{type:"boolean",cli:!1}};function P1(r){if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}function G1(r){if(r.default!==void 0)return r.default;var e=Array.isArray(r.type)?r.type[0]:r.type;return P1(e)}function U1(r,e,t,a){var n=t[e];r[e]=n!==void 0?a.processor?a.processor(n):n:G1(a)}class Ft{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var t of Object.keys(vt)){var a=vt[t];a&&U1(this,t,e,a)}}reportNonstrict(e,t,a){var n=this.strict;if(typeof n=="function"&&(n=n(e,t,a)),!(!n||n==="ignore")){if(n===!0||n==="error")throw new S("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" ["+e+"]"),a);n==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+t+" ["+e+"]"))}}useStrictBehavior(e,t,a){var n=this.strict;if(typeof n=="function")try{n=n(e,t,a)}catch{n="error"}return!n||n==="ignore"?!1:n===!0||n==="error"?!0:n==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+t+" ["+e+"]")),!1)}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var t=L1(e.url);if(t==null)return!1;e.protocol=t}var a=typeof this.trust=="function"?this.trust(e):this.trust;return!!a}}class F0{constructor(e,t,a){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=a}sup(){return w0[V1[this.id]]}sub(){return w0[X1[this.id]]}fracNum(){return w0[Y1[this.id]]}fracDen(){return w0[$1[this.id]]}cramp(){return w0[W1[this.id]]}text(){return w0[j1[this.id]]}isTight(){return this.size>=2}}var Ot=0,Ee=1,ee=2,B0=3,me=4,v0=5,te=6,l0=7,w0=[new F0(Ot,0,!1),new F0(Ee,0,!0),new F0(ee,1,!1),new F0(B0,1,!0),new F0(me,2,!1),new F0(v0,2,!0),new F0(te,3,!1),new F0(l0,3,!0)],V1=[me,v0,me,v0,te,l0,te,l0],X1=[v0,v0,v0,v0,l0,l0,l0,l0],Y1=[ee,B0,me,v0,te,l0,te,l0],$1=[B0,B0,v0,v0,l0,l0,l0,l0],W1=[Ee,Ee,B0,B0,v0,v0,l0,l0],j1=[Ot,Ee,ee,B0,ee,B0,ee,B0],R={DISPLAY:w0[Ot],TEXT:w0[ee],SCRIPT:w0[me],SCRIPTSCRIPT:w0[te]},gt=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Z1(r){for(var e=0;e<gt.length;e++)for(var t=gt[e],a=0;a<t.blocks.length;a++){var n=t.blocks[a];if(r>=n[0]&&r<=n[1])return t.name}return null}var qe=[];gt.forEach(r=>r.blocks.forEach(e=>qe.push(...e)));function na(r){for(var e=0;e<qe.length;e+=2)if(r>=qe[e]&&r<=qe[e+1])return!0;return!1}var r0=r=>r+" "+r,_0=80,K1=function(e,t){return"M95,"+(622+e+t)+`
4
4
  c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
@@ -50,4 +50,4 @@ Error generating stack: `+n.message+`
50
50
  L${(100+Math.cos(v)*L).toFixed(1)},${(135+Math.sin(v)*L).toFixed(1)}
51
51
  L${(100+Math.cos((v+E)/2)*(L-1)).toFixed(1)},${(135+Math.sin((v+E)/2)*(L-1)).toFixed(1)}
52
52
  L${(100+Math.cos(E)*L).toFixed(1)},${(135+Math.sin(E)*L).toFixed(1)}
53
- L${(100+Math.cos(E)*_).toFixed(1)},${(135+Math.sin(E)*_).toFixed(1)} Z`};return i.jsxs("g",{children:[i.jsx("path",{d:"M100,117 L114,135 L100,153 L86,135 Z",fill:um,stroke:jl,strokeWidth:"4",strokeLinejoin:"round"}),Array.from({length:6},(m,v)=>i.jsx("path",{d:r(v),fill:v<d?Ra:h4,stroke:jl,strokeWidth:"1.4",strokeLinejoin:"round",opacity:v<d?1:.55},v)),i.jsx("circle",{cx:"100",cy:"135",r:"3.2",fill:d>=6?wa:Ra,stroke:jl,strokeWidth:"1.6"}),i.jsx("path",{d:"M94,124 L98,119",stroke:"#FFFFFF",strokeWidth:"2",strokeLinecap:"round",opacity:"0.8"}),i.jsx("rect",{x:"0",y:"0",width:"0",height:"0",fill:"none","data-uid":o})]})}function y4(c,o){switch(c){case"A":return i.jsx("path",{d:"M92,74.5 L108,74.5 L113,78.5 L108,85.5 L92,85.5 L87,78.5 Z M95,77.5 L105,77.5 L105,83.5 L95,83.5 Z",fill:o.ink,fillRule:"evenodd"});case"E":return i.jsx("path",{d:"M90,76.5 L110,76.5 L113,80 L110,83.5 L90,83.5 L87,80 Z",fill:o.ink});case"I":return i.jsx("path",{d:"M90,79 L110,79 L111.5,80.8 L110,82.6 L90,82.6 L88.5,80.8 Z",fill:o.ink});case"O":return i.jsx("path",{d:"M100,73.5 L106,80.5 L100,86 L94,80.5 Z M100,77.5 L102.8,80.5 L100,83.4 L97.2,80.5 Z",fill:o.ink,fillRule:"evenodd"});case"U":return i.jsx("path",{d:"M100,74 L104,80.5 L100,85.5 L96,80.5 Z M100,78 L101.8,80.5 L100,83 L98.2,80.5 Z",fill:o.ink,fillRule:"evenodd"});case"SS":return i.jsxs("g",{children:[i.jsx("path",{d:"M86,76 L114,76 L112.5,82.6 L87.5,82.6 Z",fill:o.ink}),i.jsx("path",{d:"M90,76.4 L95.4,76.4 L94.4,82.2 L91.2,82.2 Z",fill:"#FFFFFF"}),i.jsx("path",{d:"M98,76.4 L103,76.4 L102.2,82.2 L99,82.2 Z",fill:"#FFFFFF",opacity:"0.9"}),i.jsx("path",{d:"M105.6,76.4 L110.4,76.4 L109.4,82.2 L106.4,82.2 Z",fill:"#FFFFFF",opacity:"0.75"})]});case"L":return i.jsxs("g",{children:[i.jsx("path",{d:"M92,74.5 L108,74.5 L113,78.5 L108,85.5 L92,85.5 L87,78.5 Z M95,77.5 L105,77.5 L105,83.5 L95,83.5 Z",fill:o.ink,fillRule:"evenodd"}),i.jsx("rect",{x:"96",y:"78",width:"8",height:"3.2",rx:"1.6",fill:o.pupil}),i.jsx("rect",{x:"98",y:"78.8",width:"4",height:"1.6",rx:"0.8",fill:"#FFFFFF",opacity:"0.9"})]});case"FV":return i.jsxs("g",{children:[i.jsx("path",{d:"M92,74.5 L108,74.5 L112,78 L108,84.5 L92,84.5 L88,78 Z",fill:o.ink}),i.jsx("path",{d:"M93.5,76.2 L106.5,76.2 L105.8,79.4 L94.2,79.4 Z",fill:"#FFFFFF"}),i.jsx("rect",{x:"95.5",y:"80.6",width:"9",height:"2.6",rx:"1.3",fill:o.pupil})]});default:return i.jsx("path",{d:"M92,79.5 L100,83.5 L108,79.5",fill:"none",stroke:o.ink,strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round"})}}function g4({uid:c,refs:o,expression:d,viseme:r,openScale:m,energyRatio:v,streakLit:E}){const _=ku(d);return i.jsxs(i.Fragment,{children:[i.jsxs("defs",{children:[i.jsx("clipPath",{id:`${c}-body`,children:i.jsx("path",{d:"M70,110 L130,110 L142,122 L138,156 L62,156 L58,122 Z"})}),i.jsx("clipPath",{id:`${c}-helm`,children:i.jsx("path",{d:"M54,40 L76,26 L124,26 L146,40 L150,64 L142,96 L58,96 L50,64 Z"})}),i.jsx("clipPath",{id:`${c}-scr`,children:i.jsx("rect",{x:"64",y:"54",width:"72",height:"34",rx:"6"})})]}),i.jsxs("g",{ref:o.bot,className:"cp-bot",children:[i.jsxs("g",{className:"cp-thrust",children:[i.jsx("ellipse",{cx:"100",cy:"177",rx:"11",ry:"8",fill:E?wa:Ra,opacity:"0.35"}),i.jsx("ellipse",{cx:"100",cy:"176",rx:"7",ry:"5",fill:E?wa:Ra})]}),i.jsx("path",{d:"M90,158 L110,158 L104,171 L96,171 Z",fill:"#2E3A4A",stroke:jl,strokeWidth:"4",strokeLinejoin:"round"}),i.jsxs("g",{className:"cp-body",children:[i.jsxs("g",{clipPath:`url(#${c}-body)`,children:[i.jsx("path",{d:"M70,110 L130,110 L142,122 L138,156 L62,156 L58,122 Z",fill:Rs}),i.jsx("path",{d:"M70,110 L130,110 L142,122 L138,156 L62,156 L58,122 Z",fill:Cs,transform:"translate(-5 -5)"})]}),i.jsx("path",{d:"M70,110 L130,110 L142,122 L138,156 L62,156 L58,122 Z",fill:"none",stroke:jl,strokeWidth:"5",strokeLinejoin:"round"}),i.jsx(Rl,{id:`${c}-body`,x:58,y:110,w:84,h:46,t:4,light:"rgba(255,255,255,0.6)",dark:"rgba(24,58,82,0.4)"}),i.jsx(m4,{energyRatio:v,uid:c}),i.jsx("circle",{cx:"74",cy:"150",r:"1.5",fill:jl,opacity:"0.45"}),i.jsx("circle",{cx:"126",cy:"150",r:"1.5",fill:jl,opacity:"0.45"})]}),i.jsxs("g",{ref:o.head,className:"cp-head",children:[i.jsxs("g",{className:"cp-antenna",children:[i.jsx("path",{d:"M40,58 L36,38 L44,50 Z",fill:E?wa:Ra,stroke:jl,strokeWidth:"3.5",strokeLinejoin:"round"}),i.jsx("path",{d:"M46,56 L46,42 L52,52 Z",fill:E?wa:Cs,stroke:jl,strokeWidth:"3",strokeLinejoin:"round"}),E&&i.jsx("path",{d:"M28,34 l3,-3 m-1,7 l3,-3 m-9,-1 l3,-3",stroke:wa,strokeWidth:"2.2",strokeLinecap:"round"}),!E&&i.jsx("circle",{cx:"40",cy:"38",r:"8",fill:Ra,opacity:"0.22",className:"cp-ant-glow"})]}),i.jsx("path",{d:"M42,60 L42,84 L48,88 L54,84 L54,60 L48,56 Z",fill:Us,stroke:jl,strokeWidth:"4",strokeLinejoin:"round"}),i.jsx("path",{d:"M146,60 L146,84 L152,88 L158,84 L158,60 L152,56 Z",fill:Us,stroke:jl,strokeWidth:"4",strokeLinejoin:"round"}),i.jsxs("g",{clipPath:`url(#${c}-helm)`,children:[i.jsx("path",{d:"M54,40 L76,26 L124,26 L146,40 L150,64 L142,96 L58,96 L50,64 Z",fill:Rs}),i.jsx("path",{d:"M54,40 L76,26 L124,26 L146,40 L150,64 L142,96 L58,96 L50,64 Z",fill:Cs,transform:"translate(-5 -5)"}),i.jsx("path",{d:"M60,34 L74,28 M132,28 L146,34",stroke:"#FFFFFF",strokeWidth:"2.4",strokeLinecap:"round",opacity:"0.75"})]}),i.jsx("path",{d:"M54,40 L76,26 L124,26 L146,40 L150,64 L142,96 L58,96 L50,64 Z",fill:"none",stroke:jl,strokeWidth:"5",strokeLinejoin:"round"}),i.jsx(Rl,{id:`${c}-helm`,x:50,y:26,w:100,h:70,t:4,light:"rgba(255,255,255,0.55)",dark:"rgba(24,58,82,0.38)"}),i.jsx("path",{d:"M58,36 L96,36 L90,45 L54,45 Z",fill:"#FFFFFF",opacity:"0.9"}),i.jsx("path",{d:"M104,36 L118,36 L112,45 L102,45 Z",fill:"#FFFFFF",opacity:"0.5"}),i.jsx("path",{d:"M58,48 h84 a8,8 0 0 1 8,8 v30 a8,8 0 0 1 -8,8 h-84 a8,8 0 0 1 -8,-8 v-30 a8,8 0 0 1 8,-8 Z",fill:um,stroke:jl,strokeWidth:"4.5"}),i.jsx("rect",{x:"64",y:"54",width:"72",height:"34",rx:"6",fill:d4}),i.jsxs("g",{clipPath:`url(#${c}-scr)`,children:[i.jsx("rect",{x:"64",y:"54",width:"72",height:"34",fill:Us,transform:"translate(0 15)"}),i.jsx("path",{d:"M118,54 L136,54 L108,88 L90,88 Z",fill:"#FFFFFF",opacity:"0.18"})]}),i.jsxs("g",{className:"cp-scr-face",clipPath:`url(#${c}-scr)`,children:[i.jsx(Ku,{expression:d,flags:_,refs:o,p:Ds,viseme:r,openScale:m,renderMouth:y4}),i.jsx(Ju,{flags:_,refs:o,p:Ds})]})]}),_.proud&&i.jsx($u,{p:Ds}),i.jsx(Wu,{refs:o,armFill:Rs,out:jl})]})]})}const Hs={out:"#2A3326",ink:"#2F5D3A",pupil:"#9BEFA9",wave:"#8FDBA0",crown:"#FFC800",crownD:"#D9A400"},_e="#9BEFA9",Bs="#57BD74",Js="#3E8E55",v4="#F4FBE8",im="#D7F0C8",cm="#3A4A34",Zs="#FFC800",ol="#2A3326";function x4({energyRatio:c}){const o=Math.min(1,Math.max(0,c)),d=10+o*30,r=2+o*6;return i.jsxs("g",{children:[i.jsx("circle",{cx:"100",cy:"135",r:"16.5",fill:cm,stroke:ol,strokeWidth:"4.5"}),i.jsx("circle",{cx:"100",cy:"135",r:"12.5",fill:im}),i.jsx("path",{d:`M100,141 Q${100-o*2},${135-r} 100,${129-r}`,fill:"none",stroke:Js,strokeWidth:"3",strokeLinecap:"round"}),i.jsx("g",{transform:`rotate(${-d} 100 133)`,children:i.jsx("path",{d:"M100,133 C95,127 87,127 85,131 C88,136 96,137 100,133 Z",fill:_e,stroke:ol,strokeWidth:"2.6",strokeLinejoin:"round"})}),i.jsx("g",{transform:`rotate(${d} 100 133)`,children:i.jsx("path",{d:"M100,133 C105,127 113,127 115,131 C112,136 104,137 100,133 Z",fill:_e,stroke:ol,strokeWidth:"2.6",strokeLinejoin:"round"})}),i.jsx("ellipse",{cx:"100",cy:"140",rx:"5.5",ry:"4",fill:"#7A5A3A",stroke:ol,strokeWidth:"2.4"}),i.jsx("path",{d:"M95,130.5 Q97,128.5 99.5,129",stroke:"#FFFFFF",strokeWidth:"1.8",fill:"none",strokeLinecap:"round",opacity:"0.7"})]})}function p4(c,o){switch(c){case"A":return i.jsx("path",{d:"M92,74 Q100,71 108,74 Q110,83 100,86 Q90,83 92,74 Z M96,76 Q100,78 104,76 Q103,80 100,81.5 Q97,80 96,76 Z",fill:o.ink,fillRule:"evenodd"});case"E":return i.jsx("path",{d:"M91,76.5 Q100,74 109,76.5 Q109,82 100,83 Q91,82 91,76.5 Z",fill:o.ink});case"I":return i.jsx("path",{d:"M91,78.5 Q100,77 109,78.5 Q109,81.5 100,82.2 Q91,81.5 91,78.5 Z",fill:o.ink});case"O":return i.jsx("path",{d:"M100,72.5 C105,72.5 107.5,77 107.5,80 C107.5,83.5 104.5,86.5 100,86.5 C95.5,86.5 92.5,83.5 92.5,80 C92.5,77 95,72.5 100,72.5 Z M100,77 C102.5,77 104,78.5 104,80.5 C104,82.5 102.3,83.8 100,83.8 C97.7,83.8 96,82.5 96,80.5 C96,78.5 97.5,77 100,77 Z",fill:o.ink,fillRule:"evenodd"});case"U":return i.jsx("path",{d:"M100,73 C103,73 105,76.5 105,80 C105,83.3 103,86 100,86 C97,86 95,83.3 95,80 C95,76.5 97,73 100,73 Z M100,76.8 C101.3,76.8 102.2,78.3 102.2,80.3 C102.2,82.3 101.3,83.6 100,83.6 C98.7,83.6 97.8,82.3 97.8,80.3 C97.8,78.3 98.7,76.8 100,76.8 Z",fill:o.ink,fillRule:"evenodd"});case"SS":return i.jsxs("g",{children:[i.jsx("path",{d:"M87,77 Q100,75 113,77 Q113.5,82.5 100,83 Q86.5,82.5 87,77 Z",fill:o.ink}),i.jsx("rect",{x:"90.5",y:"77.8",width:"1.8",height:"3.2",rx:"0.9",fill:"#FFFFFF"}),i.jsx("rect",{x:"96.5",y:"77.7",width:"1.8",height:"3.4",rx:"0.9",fill:"#FFFFFF",opacity:"0.92"}),i.jsx("rect",{x:"102.5",y:"77.8",width:"1.8",height:"3.2",rx:"0.9",fill:"#FFFFFF",opacity:"0.84"}),i.jsx("rect",{x:"108",y:"77.9",width:"1.8",height:"3",rx:"0.9",fill:"#FFFFFF",opacity:"0.72"})]});case"L":return i.jsxs("g",{children:[i.jsx("path",{d:"M92,74 Q100,71 108,74 Q110,83 100,86 Q90,83 92,74 Z M96,76 Q100,78 104,76 Q103,80 100,81.5 Q97,80 96,76 Z",fill:o.ink,fillRule:"evenodd"}),i.jsx("rect",{x:"96",y:"76.6",width:"8",height:"3.2",rx:"1.6",fill:o.pupil}),i.jsx("rect",{x:"98",y:"77.4",width:"4",height:"1.6",rx:"0.8",fill:"#FFFFFF",opacity:"0.9"})]});case"FV":return i.jsxs("g",{children:[i.jsx("path",{d:"M93.5,77 Q100,74.5 106.5,77 Q107,82.5 100,83.8 Q93,82.5 93.5,77 Z",fill:o.ink}),i.jsx("rect",{x:"94.5",y:"77.2",width:"11",height:"2.4",rx:"1.2",fill:"#FFFFFF"}),i.jsx("rect",{x:"95.5",y:"80.4",width:"9",height:"2.6",rx:"1.3",fill:o.pupil})]});default:return i.jsx("path",{d:"M92,79.5 Q100,85.5 108,79.5",fill:"none",stroke:o.ink,strokeWidth:"3.5",strokeLinecap:"round"})}}function S4({uid:c,refs:o,expression:d,viseme:r,openScale:m,energyRatio:v,streakLit:E}){const _=ku(d);return i.jsxs(i.Fragment,{children:[i.jsxs("defs",{children:[i.jsx("clipPath",{id:`${c}-body`,children:i.jsx("rect",{x:"64",y:"110",width:"72",height:"50",rx:"22"})}),i.jsx("clipPath",{id:`${c}-helm`,children:i.jsx("ellipse",{cx:"100",cy:"69",rx:"56",ry:"42"})}),i.jsx("clipPath",{id:`${c}-scr`,children:i.jsx("rect",{x:"64",y:"54",width:"72",height:"34",rx:"12"})})]}),i.jsxs("g",{ref:o.bot,className:"cp-bot",children:[i.jsxs("g",{className:"cp-thrust",children:[i.jsx("ellipse",{cx:"100",cy:"177",rx:"11",ry:"8",fill:E?Zs:_e,opacity:"0.3"}),i.jsx("ellipse",{cx:"100",cy:"176",rx:"7",ry:"5",fill:E?Zs:_e})]}),i.jsx("path",{d:"M88,158 Q100,152 112,158 L106,171 Q100,174 94,171 Z",fill:"#3A4A34",stroke:ol,strokeWidth:"4",strokeLinejoin:"round"}),i.jsxs("g",{className:"cp-body",children:[i.jsxs("g",{clipPath:`url(#${c}-body)`,children:[i.jsx("rect",{x:"64",y:"110",width:"72",height:"50",rx:"22",fill:Bs}),i.jsx("rect",{x:"64",y:"110",width:"72",height:"50",rx:"22",fill:_e,transform:"translate(-4 -4)"})]}),i.jsx("rect",{x:"64",y:"110",width:"72",height:"50",rx:"22",fill:"none",stroke:ol,strokeWidth:"5"}),i.jsx(Rl,{id:`${c}-body`,x:64,y:110,w:72,h:50,t:4,light:"rgba(255,255,255,0.42)",dark:"rgba(38,74,46,0.4)"}),i.jsx(x4,{energyRatio:v}),i.jsx("circle",{cx:"73",cy:"150",r:"1.6",fill:ol,opacity:"0.45"}),i.jsx("circle",{cx:"127",cy:"150",r:"1.6",fill:ol,opacity:"0.45"})]}),i.jsxs("g",{ref:o.head,className:"cp-head",children:[i.jsxs("g",{className:"cp-antenna",children:[i.jsx("path",{d:"M43,60 Q40,50 44,42",fill:"none",stroke:ol,strokeWidth:"4",strokeLinecap:"round"}),E?i.jsxs("g",{children:[Array.from({length:5},(L,O)=>i.jsx("ellipse",{cx:"44",cy:"33",rx:"4",ry:"7.5",fill:Zs,stroke:ol,strokeWidth:"2",transform:`rotate(${O*72} 44 40)`},O)),i.jsx("circle",{cx:"44",cy:"40",r:"4.5",fill:"#FFF3C4",stroke:ol,strokeWidth:"2"})]}):i.jsxs("g",{children:[i.jsx("ellipse",{cx:"44",cy:"39",rx:"5.5",ry:"7",fill:_e,stroke:ol,strokeWidth:"3"}),i.jsx("path",{d:"M44,33 Q46.5,39 44,45",fill:"none",stroke:Js,strokeWidth:"1.8"})]})]}),i.jsx("path",{d:"M48,62 C36,56 30,62 32,70 C38,76 48,74 48,62 Z",fill:_e,stroke:ol,strokeWidth:"4",strokeLinejoin:"round"}),i.jsx("path",{d:"M152,62 C164,56 170,62 168,70 C162,76 152,74 152,62 Z",fill:_e,stroke:ol,strokeWidth:"4",strokeLinejoin:"round"}),i.jsx("path",{d:"M36,62 Q42,66 46,68 M164,62 Q158,66 154,68",stroke:Js,strokeWidth:"1.8",fill:"none",strokeLinecap:"round"}),i.jsxs("g",{clipPath:`url(#${c}-helm)`,children:[i.jsx("ellipse",{cx:"100",cy:"69",rx:"56",ry:"42",fill:Bs}),i.jsx("ellipse",{cx:"100",cy:"69",rx:"56",ry:"42",fill:_e,transform:"translate(-5 -5)"})]}),i.jsx("ellipse",{cx:"100",cy:"69",rx:"56",ry:"42",fill:"none",stroke:ol,strokeWidth:"5"}),i.jsx(Rl,{id:`${c}-helm`,x:44,y:27,w:112,h:84,t:4,light:"rgba(255,255,255,0.36)",dark:"rgba(38,74,46,0.36)"}),i.jsx("path",{d:"M58,37 Q86,31 104,38 L96,47 Q68,46 58,37 Z",fill:"#FFFFFF",opacity:"0.88"}),i.jsx("circle",{cx:"118",cy:"41",r:"4",fill:"#FFFFFF",opacity:"0.55"}),i.jsx("rect",{x:"58",y:"48",width:"84",height:"46",rx:"16",fill:cm,stroke:ol,strokeWidth:"4.5"}),i.jsx("rect",{x:"64",y:"54",width:"72",height:"34",rx:"12",fill:v4}),i.jsxs("g",{clipPath:`url(#${c}-scr)`,children:[i.jsx("rect",{x:"64",y:"54",width:"72",height:"34",fill:im,transform:"translate(0 15)"}),i.jsx("path",{d:"M120,54 L136,54 L106,88 L90,88 Z",fill:"#FFFFFF",opacity:"0.2"})]}),i.jsxs("g",{className:"cp-scr-face",clipPath:`url(#${c}-scr)`,children:[i.jsx(Ku,{expression:d,flags:_,refs:o,p:Hs,viseme:r,openScale:m,renderMouth:p4}),i.jsx(Ju,{flags:_,refs:o,p:Hs})]})]}),_.proud&&i.jsx($u,{p:Hs}),i.jsx(Wu,{refs:o,armFill:Bs,out:ol})]})]})}const Fs={out:"#221C38",ink:"#FFEFC2",pupil:"#8B7BF0",wave:"#B7ACFF",crown:"#FFD75E",crownD:"#D9A400"},Ma="#8B7BF0",Ys="#5D4FD1",b4="#241E4E",fm="#3A2F6E",Da="#1A1440",Zu="#FFEFC2",Ta="#FFD75E",Ua="#221C38",_n="#A79BFF";function E4({energyRatio:c,uid:o}){const d=Math.min(1,Math.max(0,c)),r=(1-d)*26;return i.jsxs("g",{children:[i.jsx("circle",{cx:"100",cy:"135",r:"16.5",fill:Da,stroke:Ua,strokeWidth:"4.5"}),i.jsx("circle",{cx:"100",cy:"135",r:"12.5",fill:fm}),i.jsxs("g",{clipPath:`url(#${o}-moon)`,children:[i.jsx("circle",{cx:"100",cy:"135",r:"11.5",fill:Zu}),i.jsx("circle",{cx:100-r,cy:"135",r:"12.5",fill:Da})]}),i.jsx("circle",{cx:"100",cy:"135",r:"12.5",fill:"none",stroke:Ua,strokeWidth:"2"}),i.jsxs("g",{opacity:.35*d,children:[i.jsx("circle",{cx:"96",cy:"131",r:"2",fill:Da}),i.jsx("circle",{cx:"104",cy:"138",r:"1.5",fill:Da}),i.jsx("circle",{cx:"99",cy:"140",r:"1.1",fill:Da})]})]})}function j4(c,o){switch(c){case"A":return i.jsx("path",{d:"M91,74.5 h18 a5,5 0 0 1 5,5 v2.6 a5,5 0 0 1 -5,5 h-18 a5,5 0 0 1 -5,-5 v-2.6 a5,5 0 0 1 5,-5 Z M95,77.5 h10 v5.6 h-10 Z",fill:o.ink,fillRule:"evenodd"});case"E":return i.jsx("path",{d:"M90,77 h20 a3.2,3.2 0 0 1 0,6.4 h-20 a3.2,3.2 0 0 1 0,-6.4 Z",fill:o.ink});case"I":return i.jsx("path",{d:"M90,79.5 h20 a1.9,1.9 0 0 1 0,3.8 h-20 a1.9,1.9 0 0 1 0,-3.8 Z",fill:o.ink});case"O":return i.jsxs("g",{fill:"none",children:[i.jsx("circle",{cx:"100",cy:"79.5",r:"6.4",stroke:o.ink,strokeWidth:"4"}),i.jsx("circle",{cx:"100",cy:"79.5",r:"1.6",fill:o.ink,stroke:"none"})]});case"U":return i.jsx("g",{fill:"none",children:i.jsx("circle",{cx:"100",cy:"79.5",r:"4.4",stroke:o.ink,strokeWidth:"3.6"})});case"SS":return i.jsxs("g",{children:[i.jsx("path",{d:"M87,76.5 h26 a2.4,2.4 0 0 1 2.4,2.4 v1.2 a2.4,2.4 0 0 1 -2.4,2.4 h-26 a2.4,2.4 0 0 1 -2.4,-2.4 v-1.2 a2.4,2.4 0 0 1 2.4,-2.4 Z",fill:o.ink}),i.jsx("rect",{x:"90.5",y:"78.1",width:"1.8",height:"3.2",rx:"0.9",fill:"#FFFFFF"}),i.jsx("rect",{x:"96.5",y:"78.1",width:"1.8",height:"3.2",rx:"0.9",fill:"#FFFFFF",opacity:"0.92"}),i.jsx("rect",{x:"102.5",y:"78.1",width:"1.8",height:"3.2",rx:"0.9",fill:"#FFFFFF",opacity:"0.84"}),i.jsx("rect",{x:"108",y:"78.1",width:"1.8",height:"3",rx:"0.9",fill:"#FFFFFF",opacity:"0.72"})]});case"L":return i.jsxs("g",{children:[i.jsx("path",{d:"M91,74.5 h18 a5,5 0 0 1 5,5 v2.6 a5,5 0 0 1 -5,5 h-18 a5,5 0 0 1 -5,-5 v-2.6 a5,5 0 0 1 5,-5 Z M95,77.5 h10 v5.6 h-10 Z",fill:o.ink,fillRule:"evenodd"}),i.jsx("rect",{x:"96",y:"77.2",width:"8",height:"3.2",rx:"1.6",fill:o.pupil}),i.jsx("rect",{x:"98",y:"78",width:"4",height:"1.6",rx:"0.8",fill:"#FFFFFF",opacity:"0.9"})]});case"FV":return i.jsxs("g",{children:[i.jsx("path",{d:"M92,74.8 h16 a5,5 0 0 1 5,5 v2.4 a5,5 0 0 1 -5,5 h-16 a5,5 0 0 1 -5,-5 v-2.4 a5,5 0 0 1 5,-5 Z",fill:o.ink}),i.jsx("rect",{x:"93.5",y:"76.6",width:"13",height:"2.4",rx:"1.2",fill:"#FFFFFF"}),i.jsx("rect",{x:"95.5",y:"79.6",width:"9",height:"2.6",rx:"1.3",fill:o.pupil})]});default:return i.jsx("path",{d:"M92,79.5 Q100,85 108,79.5",fill:"none",stroke:o.ink,strokeWidth:"3.5",strokeLinecap:"round"})}}function M4({uid:c,refs:o,expression:d,viseme:r,openScale:m,energyRatio:v,streakLit:E}){const _=ku(d);return i.jsxs(i.Fragment,{children:[i.jsxs("defs",{children:[i.jsx("clipPath",{id:`${c}-body`,children:i.jsx("rect",{x:"66",y:"110",width:"68",height:"50",rx:"20"})}),i.jsx("clipPath",{id:`${c}-helm`,children:i.jsx("path",{d:"M48,96 L48,62 Q48,26 100,26 Q152,26 152,62 L152,96 Z"})}),i.jsx("clipPath",{id:`${c}-scr`,children:i.jsx("rect",{x:"64",y:"54",width:"72",height:"34",rx:"9"})}),i.jsx("clipPath",{id:`${c}-moon`,children:i.jsx("circle",{cx:"100",cy:"135",r:"12.5"})})]}),i.jsxs("g",{ref:o.bot,className:"cp-bot",children:[i.jsxs("g",{className:"cp-thrust",children:[i.jsx("ellipse",{cx:"100",cy:"177",rx:"11",ry:"8",fill:E?Ta:Ma,opacity:"0.38"}),i.jsx("ellipse",{cx:"100",cy:"176",rx:"7",ry:"5",fill:E?Ta:Ma})]}),i.jsx("path",{d:"M88,158 L112,158 L106,171 L94,171 Z",fill:"#2A2248",stroke:_n,strokeWidth:"4",strokeLinejoin:"round"}),i.jsxs("g",{className:"cp-body",children:[i.jsxs("g",{clipPath:`url(#${c}-body)`,children:[i.jsx("rect",{x:"66",y:"110",width:"68",height:"50",rx:"20",fill:Ys}),i.jsx("rect",{x:"66",y:"110",width:"68",height:"50",rx:"20",fill:Ma,transform:"translate(-4 -4)"})]}),i.jsx("rect",{x:"66",y:"110",width:"68",height:"50",rx:"20",fill:"none",stroke:_n,strokeWidth:"5"}),i.jsx(Rl,{id:`${c}-body`,x:66,y:110,w:68,h:50,t:4,light:"rgba(196,181,255,0.34)",dark:"rgba(10,6,32,0.5)"}),i.jsx(E4,{energyRatio:v,uid:c}),i.jsx("circle",{cx:"76",cy:"150",r:"1.5",fill:Ua,opacity:"0.5"}),i.jsx("circle",{cx:"124",cy:"150",r:"1.5",fill:Ua,opacity:"0.5"})]}),i.jsxs("g",{ref:o.head,className:"cp-head",children:[i.jsxs("g",{className:"cp-antenna",children:[i.jsx("ellipse",{cx:"42",cy:"44",rx:"13",ry:"5.5",fill:"none",stroke:_n,strokeWidth:"3.5",transform:"rotate(-24 42 44)"}),i.jsx("circle",{cx:"49",cy:"39",r:"5",fill:E?Ta:Zu,stroke:_n,strokeWidth:"3"}),E&&i.jsx("path",{d:"M56,34 L68,26 M57,41 L71,38 M52,30 L58,20",stroke:Ta,strokeWidth:"2.4",strokeLinecap:"round"})]}),i.jsx("circle",{cx:"44",cy:"72",r:"8",fill:Ma,stroke:_n,strokeWidth:"4"}),i.jsx("ellipse",{cx:"44",cy:"72",rx:"13",ry:"4.5",fill:"none",stroke:Ta,strokeWidth:"2.4",transform:"rotate(-18 44 72)"}),i.jsx("circle",{cx:"156",cy:"72",r:"8",fill:Ma,stroke:_n,strokeWidth:"4"}),i.jsx("ellipse",{cx:"156",cy:"72",rx:"13",ry:"4.5",fill:"none",stroke:Ta,strokeWidth:"2.4",transform:"rotate(18 156 72)"}),i.jsxs("g",{clipPath:`url(#${c}-helm)`,children:[i.jsx("path",{d:"M48,96 L48,62 Q48,26 100,26 Q152,26 152,62 L152,96 Z",fill:Ys}),i.jsx("path",{d:"M48,96 L48,62 Q48,26 100,26 Q152,26 152,62 L152,96 Z",fill:Ma,transform:"translate(-5 -5)"}),i.jsx("circle",{cx:"66",cy:"42",r:"1.6",fill:"#FFFFFF",opacity:"0.9"}),i.jsx("circle",{cx:"82",cy:"33",r:"1.2",fill:"#FFFFFF",opacity:"0.75"}),i.jsx("circle",{cx:"130",cy:"36",r:"1.7",fill:"#FFFFFF",opacity:"0.9"}),i.jsx("circle",{cx:"118",cy:"30",r:"1",fill:"#FFFFFF",opacity:"0.6"}),i.jsx("path",{d:"M94,28 l1.6,3.2 3.4,0.5 -2.5,2.4 0.6,3.4 -3.1,-1.7 -3.1,1.7 0.6,-3.4 -2.5,-2.4 3.4,-0.5 Z",fill:"#FFFFFF",opacity:"0.85"})]}),i.jsx("path",{d:"M48,96 L48,62 Q48,26 100,26 Q152,26 152,62 L152,96 Z",fill:"none",stroke:_n,strokeWidth:"5"}),i.jsx(Rl,{id:`${c}-helm`,x:48,y:26,w:104,h:70,t:4,light:"rgba(196,181,255,0.3)",dark:"rgba(10,6,32,0.45)"}),i.jsx("path",{d:"M56,40 Q88,28 110,34 L102,44 Q72,40 56,46 Z",fill:"#FFFFFF",opacity:"0.8"}),i.jsx("rect",{x:"58",y:"48",width:"84",height:"46",rx:"12",fill:Da,stroke:Ua,strokeWidth:"4.5"}),i.jsx("rect",{x:"64",y:"54",width:"72",height:"34",rx:"9",fill:b4}),i.jsxs("g",{clipPath:`url(#${c}-scr)`,children:[i.jsx("rect",{x:"64",y:"54",width:"72",height:"34",fill:fm,transform:"translate(0 15)"}),i.jsx("circle",{cx:"74",cy:"60",r:"1",fill:Zu,opacity:"0.8"}),i.jsx("circle",{cx:"128",cy:"82",r:"1.2",fill:Zu,opacity:"0.6"}),i.jsx("circle",{cx:"86",cy:"84",r:"0.8",fill:Zu,opacity:"0.5"}),i.jsx("path",{d:"M118,54 L136,54 L106,88 L92,88 Z",fill:"#FFFFFF",opacity:"0.08"})]}),i.jsxs("g",{className:"cp-scr-face",clipPath:`url(#${c}-scr)`,children:[i.jsx(Ku,{expression:d,flags:_,refs:o,p:Fs,viseme:r,openScale:m,renderMouth:j4}),i.jsx(Ju,{flags:_,refs:o,p:Fs})]})]}),_.proud&&i.jsx($u,{p:Fs}),i.jsx(Wu,{refs:o,armFill:Ys,out:Ua})]})]})}const Qs={out:"#2F2A22",ink:"#2B2B2B",pupil:"#F7F2E6",wave:"#8FB8C9",crown:"#FFC800",crownD:"#D9A400"},Dc="#F7F2E6",Cc="#DCD2B8",T4="#FBF7EC",Aa="#EFE7D2",Rc="#4A4234",Fu="#E8543F",om="#B8392A",$s="#3A342A",Zc="#FFC800",Il="#2F2A22";function A4({energyRatio:c,streakLit:o}){const d=Math.min(1,Math.max(0,c)),m=146-d*22;return i.jsxs("g",{children:[i.jsx("path",{d:"M82,120 h36 a6,6 0 0 1 6,6 v16 a8,8 0 0 1 -8,8 h-32 a8,8 0 0 1 -8,-8 v-16 a6,6 0 0 1 6,-6 Z",fill:Rc,stroke:Il,strokeWidth:"4.5"}),i.jsx("path",{d:"M86,124 h28 a4,4 0 0 1 4,4 v14 a5,5 0 0 1 -5,5 h-26 a5,5 0 0 1 -5,-5 v-14 a4,4 0 0 1 4,-4 Z",fill:Cc}),i.jsxs("g",{children:[i.jsx("rect",{x:"82",y:m,width:"36",height:150-m,rx:"3",fill:o?"#4A4034":$s}),i.jsx("ellipse",{cx:"100",cy:m,rx:"18",ry:"2.6",fill:d>=.999?Zc:"#57503F"}),d>=.999&&i.jsx("path",{d:"M90,144 q5,-4 10,0 q5,4 10,0",fill:"none",stroke:Zc,strokeWidth:"2",strokeLinecap:"round",opacity:"0.8"})]}),i.jsx("path",{d:"M88,126.5 q12,-2.5 24,0",fill:"none",stroke:"#FFFFFF",strokeWidth:"2",strokeLinecap:"round",opacity:"0.6"}),i.jsx("rect",{x:"122",y:"121",width:"11",height:"11",rx:"2.5",fill:Fu,stroke:om,strokeWidth:"1.8"}),i.jsx("path",{d:"M125.5,124.5 h4 M125.5,127.5 h4 M127.5,124 v6",stroke:Dc,strokeWidth:"1.5",strokeLinecap:"round"})]})}function z4(c,o){switch(c){case"A":return i.jsx("path",{d:"M91,74 Q100,71.5 109,74 Q111,83 100,86.5 Q89,83 91,74 Z M96,76.5 Q100,78.5 104,76.5 Q103,81 100,82.5 Q97,81 96,76.5 Z",fill:o.ink,fillRule:"evenodd"});case"E":return i.jsx("path",{d:"M90,76 Q100,73.8 110,76 Q110.8,82.2 100,83.4 Q89.2,82.2 90,76 Z",fill:o.ink});case"I":return i.jsx("path",{d:"M90.5,78.4 Q100,77 109.5,78.4 Q110,81.8 100,82.4 Q90,81.8 90.5,78.4 Z",fill:o.ink});case"O":return i.jsx("path",{d:"M100,72.5 C105.5,72.5 108,77 108,80 C108,83.6 104.8,86.6 100,86.6 C95.2,86.6 92,83.6 92,80 C92,77 94.5,72.5 100,72.5 Z M100,77 C102.6,77 104.2,78.5 104.2,80.5 C104.2,82.5 102.5,83.7 100,83.7 C97.5,83.7 95.8,82.5 95.8,80.5 C95.8,78.5 97.4,77 100,77 Z",fill:o.ink,fillRule:"evenodd"});case"U":return i.jsx("path",{d:"M100,73 C103.2,73 105.2,76.6 105.2,80 C105.2,83.4 103.2,86 100,86 C96.8,86 94.8,83.4 94.8,80 C94.8,76.6 96.8,73 100,73 Z M100,76.8 C101.4,76.8 102.3,78.3 102.3,80.3 C102.3,82.3 101.4,83.5 100,83.5 C98.6,83.5 97.7,82.3 97.7,80.3 C97.7,78.3 98.6,76.8 100,76.8 Z",fill:o.ink,fillRule:"evenodd"});case"SS":return i.jsxs("g",{children:[i.jsx("path",{d:"M88,77.2 Q100,75.6 112,77.2 Q112.6,82.8 100,83.4 Q87.4,82.8 88,77.2 Z",fill:o.ink}),i.jsx("path",{d:"M91.5,77.8 L96.3,77.6 L95.7,81.6 L92.1,81.5 Z",fill:"#F7F2E6"}),i.jsx("path",{d:"M99,77.6 L104.3,77.6 L103.8,81.7 L99.3,81.6 Z",fill:"#F7F2E6",opacity:"0.9"}),i.jsx("path",{d:"M107,77.7 L110.3,77.9 L109.7,81.5 L107.3,81.4 Z",fill:"#F7F2E6",opacity:"0.72"})]});case"L":return i.jsxs("g",{children:[i.jsx("path",{d:"M91,74 Q100,71.5 109,74 Q111,83 100,86.5 Q89,83 91,74 Z M96,76.5 Q100,78.5 104,76.5 Q103,81 100,82.5 Q97,81 96,76.5 Z",fill:o.ink,fillRule:"evenodd"}),i.jsx("rect",{x:"96.2",y:"77.2",width:"7.6",height:"3",rx:"1.5",fill:o.pupil}),i.jsx("rect",{x:"98",y:"77.9",width:"4",height:"1.6",rx:"0.8",fill:"#FFFFFF",opacity:"0.9"})]});case"FV":return i.jsxs("g",{children:[i.jsx("path",{d:"M93.5,77 Q100,74.6 106.5,77 Q107,82.6 100,83.4 Q93,82.6 93.5,77 Z",fill:o.ink}),i.jsx("path",{d:"M94,76.6 Q100,74.8 106,76.6 L105.4,79.6 Q100,80.6 94.6,79.6 Z",fill:"#3A342A"}),i.jsx("rect",{x:"95.5",y:"80.6",width:"9",height:"2.5",rx:"1.25",fill:o.pupil})]});default:return i.jsx("path",{d:"M91,78.8 Q100,85.6 109,78.4",fill:"none",stroke:o.ink,strokeWidth:"4.2",strokeLinecap:"round"})}}function N4({uid:c,refs:o,expression:d,viseme:r,openScale:m,energyRatio:v,streakLit:E}){const _=ku(d);return i.jsxs(i.Fragment,{children:[i.jsxs("defs",{children:[i.jsx("clipPath",{id:`${c}-body`,children:i.jsx("rect",{x:"62",y:"110",width:"76",height:"50",rx:"10"})}),i.jsx("clipPath",{id:`${c}-helm`,children:i.jsx("path",{d:"M54,44 L100,30 L146,44 L150,72 L142,96 L58,96 L50,72 Z"})}),i.jsx("clipPath",{id:`${c}-scr`,children:i.jsx("rect",{x:"64",y:"54",width:"72",height:"34",rx:"5"})})]}),i.jsxs("g",{ref:o.bot,className:"cp-bot",children:[i.jsxs("g",{className:"cp-thrust",children:[i.jsx("ellipse",{cx:"100",cy:"177",rx:"11",ry:"8",fill:E?Zc:Aa,opacity:"0.4"}),i.jsx("ellipse",{cx:"100",cy:"176",rx:"7",ry:"5",fill:E?Zc:Aa})]}),i.jsx("path",{d:"M88,158 L112,158 L106,171 L94,171 Z",fill:$s,stroke:Il,strokeWidth:"4",strokeLinejoin:"round"}),i.jsxs("g",{className:"cp-body",children:[i.jsxs("g",{clipPath:`url(#${c}-body)`,children:[i.jsx("rect",{x:"62",y:"110",width:"76",height:"50",rx:"10",fill:Cc}),i.jsx("rect",{x:"62",y:"110",width:"76",height:"50",rx:"10",fill:Dc,transform:"translate(-4 -4)"})]}),i.jsx("rect",{x:"62",y:"110",width:"76",height:"50",rx:"10",fill:"none",stroke:Il,strokeWidth:"5"}),i.jsx(Rl,{id:`${c}-body`,x:62,y:110,w:76,h:50,t:4,light:"rgba(255,255,255,0.5)",dark:"rgba(58,52,42,0.32)"}),i.jsx(A4,{energyRatio:v,streakLit:E})]}),i.jsxs("g",{ref:o.head,className:"cp-head",children:[i.jsxs("g",{className:"cp-antenna",children:[i.jsx("rect",{x:"38",y:"42",width:"5",height:"20",rx:"2.5",fill:Dc,stroke:Il,strokeWidth:"3",transform:"rotate(14 40 52)"}),i.jsx("path",{d:"M41,56 Q43,62 40,66 Q37,62 39,56 Z",fill:E?Fu:$s,stroke:Il,strokeWidth:"2.6",strokeLinejoin:"round",transform:"rotate(14 40 60)"}),E&&i.jsx("circle",{cx:"38",cy:"68",r:"3.4",fill:Fu,stroke:om,strokeWidth:"2"})]}),i.jsx("rect",{x:"38",y:"58",width:"13",height:"26",rx:"3",fill:Rc,stroke:Il,strokeWidth:"4"}),i.jsx("path",{d:"M44.5,60 v22",stroke:Aa,strokeWidth:"2",strokeLinecap:"round"}),i.jsx("rect",{x:"149",y:"58",width:"13",height:"26",rx:"3",fill:Rc,stroke:Il,strokeWidth:"4"}),i.jsx("path",{d:"M155.5,60 v22",stroke:Aa,strokeWidth:"2",strokeLinecap:"round"}),i.jsxs("g",{clipPath:`url(#${c}-helm)`,children:[i.jsx("path",{d:"M54,44 L100,30 L146,44 L150,72 L142,96 L58,96 L50,72 Z",fill:Cc}),i.jsx("path",{d:"M54,44 L100,30 L146,44 L150,72 L142,96 L58,96 L50,72 Z",fill:Dc,transform:"translate(-4 -4)"}),i.jsx("path",{d:"M100,30 L100,44",stroke:Il,strokeWidth:"2.6"})]}),i.jsx("path",{d:"M54,44 L100,30 L146,44 L150,72 L142,96 L58,96 L50,72 Z",fill:"none",stroke:Il,strokeWidth:"5",strokeLinejoin:"round"}),i.jsx(Rl,{id:`${c}-helm`,x:50,y:30,w:100,h:66,t:4,light:"rgba(255,255,255,0.46)",dark:"rgba(58,52,42,0.3)"}),i.jsx("path",{d:"M62,38 Q90,32 104,36 L98,44 Q74,42 62,46 Z",fill:Fu,opacity:"0.85"}),i.jsx("path",{d:"M112,36 L124,38 L118,45 L108,44 Z",fill:Fu,opacity:"0.45"}),i.jsx("rect",{x:"58",y:"48",width:"84",height:"46",rx:"8",fill:Rc,stroke:Il,strokeWidth:"4.5"}),i.jsx("rect",{x:"64",y:"54",width:"72",height:"34",rx:"5",fill:T4}),i.jsxs("g",{clipPath:`url(#${c}-scr)`,children:[i.jsx("rect",{x:"64",y:"54",width:"72",height:"34",fill:Aa,transform:"translate(0 15)"}),i.jsx("path",{d:"M70,56 v30 M78,56 v30 M122,56 v30 M130,56 v30",stroke:Aa,strokeWidth:"1.2",opacity:"0.7"}),i.jsx("path",{d:"M118,54 L136,54 L108,88 L92,88 Z",fill:"#FFFFFF",opacity:"0.22"})]}),i.jsxs("g",{className:"cp-scr-face",clipPath:`url(#${c}-scr)`,children:[i.jsx(Ku,{expression:d,flags:_,refs:o,p:Qs,viseme:r,openScale:m,renderMouth:z4}),i.jsx(Ju,{flags:_,refs:o,p:Qs})]})]}),_.proud&&i.jsx($u,{p:Qs}),i.jsx(Wu,{refs:o,armFill:Cc,out:Il})]})]})}function _4(c,o){let d=0;const r=[];for(let O=0;O<c.h;O++)for(let A=0;A<c.w;A++){if(c.at(A,O)<.5)continue;const y=A+.5-o.x,w=O+.5-o.y,U=y*y+w*w;U>d&&(d=U),r.push({dx:y,dy:w,d2:U})}if(r.length<60||d<=0)return null;const m=Math.sqrt(d),v=m*.02;let E=0,_=0;for(const O of r){if(m-Math.sqrt(O.d2)>v)continue;const A=Math.sqrt(O.d2)||1;E+=O.dx/A,_+=O.dy/A}return Math.atan2(_,E)*180/Math.PI}function O4(c){const o=Object.values(c).map(E=>E==null?void 0:E.box).filter(E=>!!E);if(o.length===0)return{x:0,y:0,width:0,height:0};const d=Math.min(...o.map(E=>E.x)),r=Math.min(...o.map(E=>E.y)),m=Math.max(...o.map(E=>E.x+E.w)),v=Math.max(...o.map(E=>E.y+E.h));return{x:d,y:r,width:m-d,height:v-r}}function L4(c,o,d={x:24,y:22,w:152,h:154},r="center"){if(c.width<=0||c.height<=0)return[];const m=c.x??0,v=c.y??0,E=Math.min(d.w/c.width,d.h/c.height),_=d.x+(d.w-c.width*E)/2,L=r==="bottom"?d.y+d.h-c.height*E:d.y+(d.h-c.height*E)/2,O=y=>Math.round(y*100)/100,A=[];for(const[y,w]of Object.entries(o))w&&A.push({name:y,x:O(_+(w.box.x-m)*E),y:O(L+(w.box.y-v)*E),w:O(w.box.w*E),h:O(w.box.h*E)});return A}const Ws={silver:{top:["#eceff4","#c3cad5","#9aa2b1"],wall:["#7d8595","#d3d9e2","#6d7584"],inset:"#aab1bf",bottom:"#565d6b",specular:.55,edgeTop:"#7b8393",edgeWall:"#5d6472",bezel:"#ffc800",glass:"#dff5fa",vent:"#3f4654",track:"#3f4654",nozzle:"#4a5160",nozzleEdge:"#333a47",flameOuter:"#1cb0f6",flameCore:"#e8f7ff",lamp:"#ffc800",glow:"#1cb0f6",dot:"#c3cad5"},ember:{top:["#ffc98a","#f0954e","#c25f2e"],wall:["#e08a4a","#ffd2a8","#a34e2a"],inset:"#f0a468",bottom:"#8a3d20",specular:.4,edgeTop:"#a34e2a",edgeWall:"#8a3d20",bezel:"#ff9f43",glass:"#fff3e6",vent:"#7a3a1c",track:"#7a3a1c",nozzle:"#7a3a1c",nozzleEdge:"#5c2b14",flameOuter:"#ff7a3c",flameCore:"#ffe4c8",lamp:"#ffd27a",glow:"#ff8c42",dot:"#f0954e"},frost:{top:["#f2fafe","#c9e6f7","#93c2e2"],wall:["#9cc8e8","#e8f6fe","#7fb2d6"],inset:"#d7ecf9",bottom:"#6f9fc0",specular:.6,edgeTop:"#7fb2d6",edgeWall:"#6f9fc0",bezel:"#7fc4e8",glass:"#f4fbff",vent:"#5d8db0",track:"#5d8db0",nozzle:"#5d8db0",nozzleEdge:"#47708e",flameOuter:"#6fc8f2",flameCore:"#ecfaff",lamp:"#c9e9fa",glow:"#6fc8f2",dot:"#93c2e2"},moss:{top:["#eff7e2","#c8e2b4","#94bd7c"],wall:["#a9cd92","#e6f4d8","#7ba468"],inset:"#d5eac2",bottom:"#6e9459",specular:.45,edgeTop:"#7ba468",edgeWall:"#6e9459",bezel:"#6fbf4f",glass:"#f4fbee",vent:"#4f7040",track:"#4f7040",nozzle:"#4f7040",nozzleEdge:"#3d5830",flameOuter:"#8ed464",flameCore:"#f0fbe2",lamp:"#c9ee9e",glow:"#8ed464",dot:"#94bd7c"},astro:{top:["#4a4478","#34305c","#221e40"],wall:["#565179","#7d78b0","#2c2850"],inset:"#3c3765",bottom:"#191631",specular:.25,edgeTop:"#17142c",edgeWall:"#14112a",bezel:"#b8b3e0",glass:"#edeaff",vent:"#161329",track:"#161329",nozzle:"#161329",nozzleEdge:"#0e0c1c",flameOuter:"#b18cff",flameCore:"#ece5ff",lamp:"#b8b3e0",glow:"#b18cff",dot:"#55508a",stars:!0},ink:{top:["#43434b","#2b2b31","#17171a"],wall:["#55555f","#9a9aa4","#202026"],inset:"#333339",bottom:"#101013",specular:.3,edgeTop:"#101013",edgeWall:"#0c0c0e",bezel:"#e8563f",glass:"#f6f3ec",vent:"#0d0d10",track:"#0d0d10",nozzle:"#1a1a1f",nozzleEdge:"#000000",flameOuter:"#ff6b4a",flameCore:"#ffe9d9",lamp:"#e8563f",glow:"#e8563f",dot:"#3a3a40"}},Kg=["ember","frost","moss","astro","ink"];function sm({uid:c,energyRatio:o,theme:d}){return i.jsxs("g",{className:"cp-disc cp-veh","aria-hidden":"true",children:[i.jsxs("defs",{children:[i.jsxs("linearGradient",{id:`${c}-veh-top`,x1:"0",y1:"0",x2:"0",y2:"1",children:[i.jsx("stop",{offset:"0",stopColor:d.top[0]}),i.jsx("stop",{offset:"0.55",stopColor:d.top[1]}),i.jsx("stop",{offset:"1",stopColor:d.top[2]})]}),i.jsxs("linearGradient",{id:`${c}-veh-wall`,x1:"0",y1:"0",x2:"1",y2:"0",children:[i.jsx("stop",{offset:"0",stopColor:d.wall[0]}),i.jsx("stop",{offset:"0.5",stopColor:d.wall[1]}),i.jsx("stop",{offset:"1",stopColor:d.wall[2]})]})]}),i.jsx("ellipse",{cx:"100",cy:"193",rx:"72",ry:"11",className:"cp-veh-glow",style:{fill:d.glow}}),[68,100,132].map((r,m)=>i.jsxs("g",{transform:`translate(${r} ${m===1?187.5:185})`,className:"cp-veh-nozzle",children:[i.jsx("path",{d:"M -7 0 L 7 0 L 5 4.5 L -5 4.5 Z",className:"cp-veh-nozzle-body",fill:d.nozzle,stroke:d.nozzleEdge}),i.jsx("path",{d:"M -4.5 4.5 Q 0 11.5 4.5 4.5 Z",className:"cp-veh-flame cp-veh-flame-outer",fill:d.flameOuter}),i.jsx("path",{d:"M -2.4 4.5 Q 0 9 2.4 4.5 Z",className:"cp-veh-flame cp-veh-flame-core",fill:d.flameCore})]},r)),i.jsx("ellipse",{cx:"100",cy:"183",rx:"58",ry:"8.5",className:"cp-veh-bottom",fill:d.bottom}),i.jsx("path",{d:"M 38 175 L 40 183 A 58 8.5 0 0 0 160 183 L 162 175 A 62 9 0 0 1 38 175 Z",className:"cp-veh-wall",fill:`url(#${c}-veh-wall)`,stroke:d.edgeWall}),i.jsx("rect",{x:"47",y:"185.6",width:"9",height:"2.4",rx:"1.2",className:"cp-veh-vent",fill:d.vent}),i.jsx("rect",{x:"59",y:"185.6",width:"9",height:"2.4",rx:"1.2",className:"cp-veh-vent",fill:d.vent}),i.jsx("rect",{x:"122",y:"185.6",width:"34",height:"3.6",rx:"1.8",className:"cp-veh-energy-track",fill:d.track}),i.jsx("rect",{x:"122",y:"185.6",width:Math.max(3,34*o),height:"3.6",rx:"1.8",className:"cp-veh-energy-fill"}),i.jsx("circle",{cx:"42",cy:"180",r:"2.4",className:"cp-disc-lamp",style:{fill:d.lamp}}),i.jsx("circle",{cx:"158",cy:"180",r:"2.4",className:"cp-disc-lamp",style:{fill:d.lamp}}),i.jsx("ellipse",{cx:"100",cy:"175",rx:"62",ry:"9",className:"cp-veh-top",fill:`url(#${c}-veh-top)`,stroke:d.edgeTop}),i.jsx("ellipse",{cx:"100",cy:"175",rx:"52",ry:"6.5",className:"cp-veh-top-inset",fill:d.inset}),i.jsx("ellipse",{cx:"74",cy:"172.5",rx:"22",ry:"2.6",className:"cp-veh-specular",style:{opacity:d.specular}}),d.stars&&i.jsxs("g",{className:"cp-veh-stars",fill:"#ffffff","aria-hidden":"true",children:[i.jsx("circle",{cx:"62",cy:"173.4",r:"0.9"}),i.jsx("circle",{cx:"84",cy:"177.2",r:"0.7",opacity:"0.8"}),i.jsx("circle",{cx:"118",cy:"172.8",r:"0.8",opacity:"0.9"}),i.jsx("circle",{cx:"138",cy:"176.4",r:"0.7",opacity:"0.7"}),i.jsx("path",{d:"M 104 173.4 l 0.55 1.35 1.35 0.55 -1.35 0.55 -0.55 1.35 -0.55 -1.35 -1.35 -0.55 1.35 -0.55 Z"})]}),i.jsx("circle",{cx:"100",cy:"187",r:"12",className:"cp-veh-port-bezel",fill:d.inset,stroke:d.bezel}),i.jsx("circle",{cx:"100",cy:"187",r:"10",className:"cp-veh-port-glass",fill:d.glass}),i.jsxs("g",{className:"cp-veh-eq","aria-hidden":"true",children:[i.jsx("rect",{x:"93",y:"181.5",width:"3.2",height:"11",rx:"1.6",className:"cp-veh-eq-bar"}),i.jsx("rect",{x:"98.4",y:"181.5",width:"3.2",height:"11",rx:"1.6",className:"cp-veh-eq-bar"}),i.jsx("rect",{x:"103.8",y:"181.5",width:"3.2",height:"11",rx:"1.6",className:"cp-veh-eq-bar"})]})]})}function rm({refs:c,theme:o}){return i.jsx("g",{className:"cp-veh-arms","aria-hidden":"true",children:["armL","armR"].map(d=>{const r=d==="armL"?44:156,m=d==="armL"?-1:1;return i.jsx("g",{ref:c[d],className:`cp-veh-arm cp-${d}`,children:i.jsxs("g",{transform:`translate(${r} 171)`,children:[i.jsx("circle",{r:"4",fill:o.bezel,stroke:o.edgeTop,strokeWidth:"1.2"}),i.jsx("path",{d:`M 0 0 Q ${m*8} 10 ${m*4.5} 19`,stroke:o.bezel,strokeWidth:"5.6",strokeLinecap:"round",fill:"none"}),i.jsx("circle",{cx:m*4.5,cy:"19",r:"2.8",fill:o.lamp,stroke:o.edgeTop,strokeWidth:"1"}),i.jsx("path",{d:`M ${m*4.5} 19 Q ${m*-2} 26 ${m*-1} 32`,stroke:o.bezel,strokeWidth:"4.2",strokeLinecap:"round",fill:"none"}),i.jsx("path",{d:`M ${m*-3.6} 32.5 Q ${m*.2} 36.5 ${m*3.6} 33`,stroke:o.edgeTop,strokeWidth:"1.8",strokeLinecap:"round",fill:"none"})]})},d)})})}let dm=null,qs=!1;const Is=new Set;function w4(){for(const c of Is)c()}function $h(){return dm}function D4(c){return Is.add(c),()=>{Is.delete(c)}}async function hm(){var c,o;if(!qs){qs=!0;try{const d=await((o=(c=window.api)==null?void 0:c.companionPackGetActive)==null?void 0:o.call(c));dm=d&&d.manifest&&Object.keys(d.srcs??{}).length>0?{id:d.id,name:d.name,manifest:d.manifest,srcs:d.srcs,layout:L4(O4(d.manifest.parts),d.manifest.parts,{x:24,y:22,w:152,h:154},"bottom")}:null,w4()}catch{}finally{qs=!1}}}hm();typeof window<"u"&&window.addEventListener("companion-config-changed",()=>{hm()});const C4=["body","head","armL","armR","sticker"],Wh={head:"50% 92%",armL:"86% 10%",armR:"14% 10%"},za=90;function R4({uid:c,refs:o,energyRatio:d}){const r=zt.useSyncExternalStore(D4,$h),m=zt.useRef(null),v=zt.useMemo(()=>{const O=new Map;for(const A of(r==null?void 0:r.layout)??[])O.set(A.name,A);return O},[r]),E=!!(r!=null&&r.srcs.armL&&(r!=null&&r.srcs.armR)),[_,L]=zt.useState({armL:za,armR:za});return zt.useEffect(()=>{if(!r)return;let O=!1;const A=y=>new Promise(w=>{const U=new Image;U.onload=()=>{const J=document.createElement("canvas");J.width=U.naturalWidth,J.height=U.naturalHeight;const ut=J.getContext("2d");if(!ut)return w(za);ut.drawImage(U,0,0);let K;try{K=ut.getImageData(0,0,J.width,J.height).data}catch{return w(za)}const dt=_4({w:J.width,h:J.height,at:(ot,Yt)=>K[(Yt*J.width+ot)*4+3]/255},{x:J.width*(y==="armL"?.86:.14),y:J.height*.1});w(dt??za)},U.onerror=()=>w(za),U.src=r.srcs[y]??""});return Promise.all([A("armL"),A("armR")]).then(([y,w])=>{O||L({armL:y,armR:w})}),()=>{O=!0}},[r]),zt.useEffect(()=>{const O=A=>{var dt;const y=A.detail,w=m.current;if(!w)return;const U=(dt=$h())==null?void 0:dt.layout.find(ot=>ot.name==="head"),J=U?U.x+U.w/2:100,ut=U?U.y+U.h*.92:170,K=Math.max(-3.5,Math.min(3.5,y.x*2.8))+Math.max(-1,Math.min(1,y.y*.8));w.setAttribute("transform",`rotate(${K.toFixed(2)} ${J.toFixed(1)} ${ut.toFixed(1)}) translate(${(y.x*1.2).toFixed(2)} ${(y.y*.7).toFixed(2)})`)};return window.addEventListener("companion-gaze",O),()=>window.removeEventListener("companion-gaze",O)},[]),i.jsxs("g",{ref:o.bot,className:"cp-bot cp-puppet-bot",children:[r?i.jsxs(i.Fragment,{children:[i.jsx(sm,{uid:c,energyRatio:d,theme:Ws[r.manifest.vehicle??"silver"]}),!E&&i.jsx(rm,{refs:o,theme:Ws[r.manifest.vehicle??"silver"]}),i.jsx("g",{className:"cp-puppet-figure",children:C4.map(O=>{const A=r.srcs[O],y=v.get(O);return!A||!y?null:O==="head"?i.jsx("g",{ref:o.head,className:"cp-head",style:{transformBox:"fill-box",transformOrigin:Wh.head},children:i.jsx("g",{ref:m,children:i.jsx("image",{href:A,x:y.x,y:y.y,width:y.w,height:y.h})})},O):O==="armL"||O==="armR"?i.jsx("g",{ref:O==="armL"?o.armL:o.armR,className:`cp-arm cp-${O}`,style:{transformBox:"fill-box",transformOrigin:Wh[O],"--cp-rest":`${_[O]}deg`},children:i.jsx("image",{href:A,x:y.x,y:y.y,width:y.w,height:y.h})},O):i.jsx("image",{href:A,x:y.x,y:y.y,width:y.w,height:y.h},O)})})]}):i.jsxs("g",{className:"cp-puppet-placeholder",opacity:"0.45","aria-hidden":"true",children:[i.jsx("circle",{cx:"100",cy:"68",r:"36",fill:"var(--surface-2, #3a3a44)",stroke:"var(--border-faint, #777)",strokeWidth:"3"}),i.jsx("rect",{x:"70",y:"110",width:"60",height:"58",rx:"16",fill:"var(--surface-2, #3a3a44)",stroke:"var(--border-faint, #777)",strokeWidth:"3"})]}),i.jsx("g",{ref:o.eyes}),i.jsx("g",{ref:o.waves}),i.jsx("g",{ref:o.pupils})]})}let mm=null;const Ih=new Map;let Gs=!1;const Ps=new Set;function ym(){for(const c of Ps)c()}function U4(){return mm}function H4(c){return Ps.add(c),()=>{Ps.delete(c)}}function B4(c,o){var m,v;const d=`${c}/${o}`,r=Ih.get(d);return r||((v=(m=window.api)==null?void 0:m.shimejiGetFrame)==null||v.call(m,{packId:c,frame:o}).then(E=>{E&&(Ih.set(d,E),ym())}).catch(()=>{}),null)}async function Z4(){var c,o;if(!Gs){Gs=!0;try{const d=await((o=(c=window.api)==null?void 0:c.shimejiGetActive)==null?void 0:o.call(c));mm=d?{id:d.id,name:d.name,manifest:d}:null,ym()}finally{Gs=!1}}}const Vu={groundY:172,ceilY:40,minX:64,maxX:136},F4=2.5,Y4=.45,Q4=.7,q4=.9,G4=12;function X4(){return{actionName:null,poseIdx:0,ticksLeft:0,loopsLeft:0,x:(Vu.minX+Vu.maxX)/2,y:Vu.groundY,vx:0,vy:0,facing:1,mode:"ground",wallSide:null,settleLeft:0}}const V4={happy:["Bouncing","Jumping"],cheer:["Bouncing","Jumping"],proud:["Bouncing"],stars:["Jumping","Bouncing"],flame:["Dash","Run"],thinking:["Stand"],sleeping:["Sprawl","Sit"],listening:["Stand"]},Ph=/sit|sprawl|lie|lay|sleep|nap|dangle|lookup/i,tr=/fall|throw|trip/i,gm=/drag|resist|pinch/i;function k4(c){const o=c.actions;if(!o.some(m=>m.slot)){const m=o.filter(E=>E.kind==="Stay"),v=o.filter(E=>E.kind==="Move");return{idle:[...m,...v],walk:v,rest:[...m,...v].filter(E=>Ph.test(E.name)),climb:[],ceiling:[],air:[],drag:[]}}const d=m=>o.filter(v=>v.slot===m),r=d("ground");return{idle:[...r.filter(m=>m.kind==="Stay"),...d("panel"),...d("mouse"),...d("tired")],walk:r.filter(m=>m.kind==="Move"),rest:r.filter(m=>Ph.test(m.name)),climb:d("wall"),ceiling:d("ceiling"),air:d("interact").filter(m=>tr.test(m.name)),drag:d("interact").filter(m=>gm.test(m.name))}}function Ha(c,o){var d;return Math.min(G4,((d=c==null?void 0:c.poses[o])==null?void 0:d.duration)??4)||1}function On(c,o){return c.actions.find(d=>d.name===o)??null}function de(c){return c[0]??null}function Uu(c,o){return c.actions.find(d=>o.test(d.name))??null}function tm(c,o,d,r){const v=(V4[d]??[]).map(_=>On(c,_)).find(Boolean);if(v)return v;const E=r();return E<.5&&o.idle.length?de(o.idle):E<.8&&o.walk.length?de(o.walk):o.rest.length?de(o.rest):o.idle.length?de(o.idle):c.actions[0]??null}function Lc(c,o,d){return{...c,actionName:(o==null?void 0:o.name)??c.actionName,poseIdx:0,ticksLeft:Ha(o,0),loopsLeft:(o==null?void 0:o.kind)==="Stay"?2:(o==null?void 0:o.kind)==="Move"?1:2,mode:d,vx:0,vy:0}}function Na(c,o){let{poseIdx:d,ticksLeft:r,loopsLeft:m}=c;return r-=1,r<=0&&(d+=1,d>=((o==null?void 0:o.poses.length)??0)&&(d=0,m-=1),r=Ha(o,d)),{poseIdx:d,ticksLeft:r,loopsLeft:m}}const _a=(c,o,d)=>Math.min(d,Math.max(o,c));function lm(c,o,d,r,m=Math.random,v){const E=k4(o),_=v?{...Vu,...v}:Vu;if(d.t==="grab"){const L=de(E.drag)??Uu(o,gm);return{...c,mode:"dragged",actionName:(L==null?void 0:L.name)??c.actionName,poseIdx:0,ticksLeft:Ha(L,0),loopsLeft:Number.POSITIVE_INFINITY}}if(d.t==="release"&&c.mode==="dragged"){if(d.speed>=F4){const O=de(E.air)??Uu(o,tr);return{...c,mode:"air",actionName:(O==null?void 0:O.name)??c.actionName,poseIdx:0,ticksLeft:Ha(O,0),loopsLeft:1,vx:c.facing*_a(d.speed*.8,1.2,3),vy:-_a(d.speed*.5,1.5,4)}}const L=de(E.idle);return{...Lc(c,L,"settle"),settleLeft:10,x:c.x,y:_a(c.y,_.ceilY,_.groundY),facing:c.facing}}switch(c.mode){case"dragged":{const L=On(o,c.actionName);return{...c,...Na(c,L)}}case"air":{const L=On(o,c.actionName),O=Na(c,L);let{x:A,y,vx:w,vy:U,facing:J}=c;if(U+=Y4,A=_a(A+w,_.minX,_.maxX),y+=U,(A===_.minX||A===_.maxX)&&(w=-w*.5),w>.1?J=1:w<-.1&&(J=-1),y>=_.groundY){const ut=Uu(o,/trip/i)??de(E.idle);return{...Lc({...c,...O,x:A,y:_.groundY,vx:w,vy:0,facing:J},ut,"settle"),settleLeft:12}}return{...c,...O,x:A,y,vx:w,vy:U,facing:J}}case"settle":{const L=On(o,c.actionName),O=Na(c,L),A=c.settleLeft-1;if(A<=0){const y=tm(o,E,r,m);return{...Lc(c,y,"ground"),x:c.x,y:_.groundY,facing:c.facing}}return{...c,...O,settleLeft:A}}case"wall":{const L=On(o,c.actionName),O=Na(c,L),A=c.wallSide===0?_.minX:_.maxX,y=c.wallSide===0?-1:1,w=Math.max(_.ceilY,c.y-Q4);if(w<=_.ceilY){const U=de(E.ceiling)??Uu(o,/ceil/i),J=(c.wallSide===0?1:-1)*q4;return{...c,...O,mode:"ceiling",actionName:(U==null?void 0:U.name)??c.actionName,poseIdx:0,ticksLeft:Ha(U,0),loopsLeft:2,x:A,y:_.ceilY,vx:J,vy:0,facing:J>0?1:-1,wallSide:null}}return{...c,...O,x:A,y:w,facing:y}}case"ceiling":{const L=On(o,c.actionName),O=Na(c,L),A=_a(c.x+c.vx,_.minX,_.maxX);if(A<=_.minX||A>=_.maxX){const y=de(E.air)??Uu(o,tr);return{...c,...O,mode:"air",actionName:(y==null?void 0:y.name)??c.actionName,poseIdx:0,ticksLeft:Ha(y,0),loopsLeft:1,vx:c.vx*.3,vy:.5}}return{...c,...O,x:A,facing:c.vx>=0?1:-1}}default:{const L=On(o,c.actionName);let{x:O,vx:A,facing:y}=c;if((L==null?void 0:L.kind)==="Move"){const U=L.poses[c.poseIdx];U&&U.velocity[0]!==0?(A=_a(U.velocity[0]*.6,-3,3),y=A>0?1:-1,O+=A,O<=_.minX?(O=_.minX,y=1,A=Math.abs(A)):O>=_.maxX&&(O=_.maxX,y=-1,A=-Math.abs(A))):A=0}const w=Na(c,L);if(L&&E.rest.some(U=>U.name===L.name)&&(O=O+(100-O)*.15,A=0),w.loopsLeft<=0){const U=tm(o,E,r,m);return{...Lc(c,U,"ground"),x:O,y:_.groundY,vx:A,facing:y}}return{...c,...w,x:O,vx:A,facing:y,y:_.groundY}}}}function K4({refs:c,theme:o,hide:d}){return i.jsx("g",{className:`cp-veh-mount${d?" cp-veh-hide":""}`,children:i.jsx(rm,{refs:c,theme:o})})}const J4=50;function $4({uid:c,refs:o,expression:d,energyRatio:r}){const m=zt.useSyncExternalStore(H4,U4),v=(m==null?void 0:m.manifest)??null,[E,_]=zt.useState(X4),L=zt.useRef(d);L.current=d;const O=zt.useRef(v);O.current=v;const A=zt.useRef(null),y=zt.useRef(!1);if(zt.useEffect(()=>{Z4()},[]),zt.useEffect(()=>{const Yt=Zt=>{const Rt=Zt.detail,lt=O.current;if(!lt)return;const F=Rt.on?{t:"grab"}:{t:"release",speed:Rt.speed??0};_(X=>lm(X,lt,F,L.current))};return window.addEventListener("companion-grab",Yt),()=>window.removeEventListener("companion-grab",Yt)},[]),zt.useEffect(()=>{if(!v)return;const Yt=()=>{var wt;const Rt=(wt=A.current)==null?void 0:wt.ownerSVGElement;if(!Rt)return null;const lt=Rt.getBoundingClientRect();if(lt.width<40||lt.height<40)return null;const F=document.querySelector('[data-testid="composer-card"], [data-testid="notebook-panel"]');if(!F)return null;const X=F.getBoundingClientRect();if(X.width<120||X.height<80)return null;const Mt=I=>(I-lt.left)/lt.width*200,$t=I=>(I-lt.top)/lt.height*192,St=(I,C,G)=>Math.min(G,Math.max(C,I)),Ut=St(Mt(X.left),40,100),ht=St(Mt(X.right),100,160);return ht-Ut<24?null:{minX:Ut,maxX:ht,ceilY:St($t(X.top),24,150)}},Zt=setInterval(()=>{var X,Mt;const Rt=((Mt=(X=A.current)==null?void 0:X.ownerSVGElement)==null?void 0:Mt.getAttribute("class"))??"",lt=/cp-pose-(typing|writing|flying)|cp-pose-point|cp-takeoff/.test(Rt);y.current=lt;const F=Yt();_($t=>{var wt;const St=lm($t,v,{t:"tick"},L.current,Math.random,F??void 0);if(!lt||St.mode!=="ground")return St;const Ut=v.actions.find(I=>I.name===St.actionName);return{...St,x:St.x+(100-St.x)*.25,actionName:(Ut==null?void 0:Ut.kind)==="Move"?((wt=v.actions.find(I=>I.kind==="Stay"))==null?void 0:wt.name)??St.actionName:St.actionName}})},J4);return()=>clearInterval(Zt)},[v]),!v||!m)return i.jsxs("g",{className:"cp-shimeji-empty","aria-label":"no shimeji pack",children:[i.jsx("rect",{x:"64",y:"120",width:"72",height:"72",rx:"10",fill:"none",stroke:"currentColor",strokeDasharray:"4 4",opacity:"0.4"}),i.jsx("text",{x:"100",y:"162",textAnchor:"middle",fontSize:"11",fill:"currentColor",opacity:"0.5",children:"Shimeji"})]});const w=v.actions.find(Yt=>Yt.name===E.actionName)??null,U=(w==null?void 0:w.poses[E.poseIdx])??null,J=U?B4(m.id,U.image):null,ut=(U==null?void 0:U.anchor[0])??64,K=(U==null?void 0:U.anchor[1])??128,dt=E.mode==="wall"||E.mode==="ceiling",ot=Ws[m.manifest.vehicle??"silver"];return i.jsxs("g",{ref:A,className:"cp-shimeji","data-testid":"shimeji-art","data-mode":E.mode,"data-action":E.actionName??"",children:[i.jsx("g",{className:`cp-veh-mount${dt?" cp-veh-hide":""}`,"data-testid":"shimeji-veh",children:i.jsx(sm,{uid:`${c}-shimeji-veh`,energyRatio:r,theme:ot})}),i.jsx("g",{ref:o.bot,"data-shimeji-body":!0,children:i.jsx("g",{transform:`translate(${E.x} ${E.y}) scale(${E.facing} 1)`,children:J?i.jsx("image",{href:J,x:-ut,y:-K,width:128,height:128,preserveAspectRatio:"xMidYMax meet"},`${U==null?void 0:U.image}:${c}`):i.jsx("rect",{x:-32,y:-32,width:64,height:32,rx:6,opacity:.25,fill:"currentColor"})})}),i.jsx(K4,{refs:o,theme:ot,hide:dt}),i.jsx("g",{ref:o.head}),i.jsx("g",{ref:o.eyes}),i.jsx("g",{ref:o.waves}),i.jsx("g",{ref:o.pupils}),r<.2?i.jsx("rect",{width:"0",height:"0","data-shimeji-low-energy":"1"}):null]})}const W4={ember:r4,frost:g4,moss:S4,astro:M4,ink:N4,custom:R4,shimeji:$4};function Jg({form:c,expression:o,pose:d,viseme:r="closed",openScale:m=0,energyRatio:v=0,streakLit:E=!1,size:_=96,interactive:L=!1,ariaLabel:O,testid:A,onPoke:y,onGrab:w,keySeq:U=0,keyFlash:J=!1,keySide:ut=1,screenKey:K=null,coreLit:dt=!1,noteTick:ot=!1,crownBadge:Yt=!1,haloBadge:Zt=!1}){const lt="cp"+zt.useId().replace(/[^a-zA-Z0-9]/g,""),F=f4(),X=nr(c),Mt={bot:zt.useRef(null),head:zt.useRef(null),armL:zt.useRef(null),armR:zt.useRef(null),eyes:zt.useRef(null),pupils:zt.useRef(null),waves:zt.useRef(null)},$t=Mt.bot;zt.useEffect(()=>{if(F||U<=0)return;const ht=ut===-1?Mt.armL.current:Mt.armR.current,wt=ut===-1?-44:44;ht==null||ht.animate([{transform:"rotate(0deg)"},{transform:`rotate(${wt}deg)`,offset:.38},{transform:"rotate(0deg)"}],{duration:185,easing:"cubic-bezier(0.2, 1.5, 0.4, 1)",composite:"add"});const I=Mt.bot.current;I&&(I.style.transformBox="fill-box",I.style.transformOrigin="50% 62%",I.animate([{transform:"translateY(0px) scale(1, 1)"},{transform:"translateY(2.5px) scale(1.045, 0.93)",offset:.42},{transform:"translateY(0px) scale(1, 1)"}],{duration:185,easing:"ease-out",composite:"add"}))},[U,ut,F]);const St=o==="listening";zt.useEffect(()=>{if(!St||F)return;let ht=0;const wt=()=>{const I=n4(),C=Mt.waves.current;C&&(C.style.opacity=I<=0?"0":"1",C.setAttribute("transform",`translate(174 72) scale(${(.55+.45*I).toFixed(3)}) translate(-174 -72)`)),ht=requestAnimationFrame(wt)};return ht=requestAnimationFrame(wt),()=>cancelAnimationFrame(ht)},[St,F]),zt.useEffect(()=>{if(F)return;let ht=0,wt,I={x:0,y:0},C={x:0,y:0},G=performance.now(),V=1,xt=performance.now()+4200;const st=()=>{const kt=Mt.eyes.current;kt&&(kt.style.transform="scaleY(0.14)",setTimeout(()=>{kt&&(kt.style.transform="")},120)),wt=setTimeout(st,2400+Math.random()*2600)};wt=setTimeout(st,1500+Math.random()*1500);const gl=kt=>{const x=$t.current;if(!x)return;const D=x.getBoundingClientRect();C=X5(kt.clientX,kt.clientY,D.left+D.width/2,D.top+D.height*.35,Math.max(140,D.width)),G=performance.now()};window.addEventListener("pointermove",gl,{passive:!0});const Ul=()=>{var D;const kt=performance.now();kt-G>4e3&&kt>=xt&&(C=V5(V++),xt=kt+2200+V%3*450),I={x:Gh(I.x,C.x,.1),y:Gh(I.y,C.y,.1)};const x=er(I.x,I.y);(D=Mt.pupils.current)==null||D.setAttribute("transform",`translate(${(x.x*5).toFixed(2)} ${(x.y*3).toFixed(2)})`),ht=requestAnimationFrame(Ul)};return ht=requestAnimationFrame(Ul),()=>{clearTimeout(wt),cancelAnimationFrame(ht),window.removeEventListener("pointermove",gl)}},[F]);const Ut=W4[X];return i.jsxs("svg",{viewBox:"0 0 200 200",className:`cp-mascot cp-form-${X} cp-pose-${d} cp-expr-${o}`,"data-testid":A,"data-form":X,style:{width:_,height:_,transition:"width 0.9s cubic-bezier(0.3, 1.3, 0.4, 1), height 0.9s cubic-bezier(0.3, 1.3, 0.4, 1)",...L?{touchAction:"none",cursor:w?"grab":"pointer"}:{}},...L?{role:"button","aria-label":O,onClick:y,...w?{onPointerDown:ht=>{ht.button===0&&w(ht.clientX,ht.clientY)}}:{}}:{"aria-hidden":!0},children:[i.jsx("defs",{children:i.jsx("clipPath",{id:`${lt}-keyclip`,children:i.jsx("circle",{cx:"100",cy:"135",r:"11.6"})})}),i.jsxs("g",{className:"cp-beacons","aria-hidden":"true",children:[i.jsx("circle",{cx:"52",cy:"86",r:"3",className:"cp-beacon-l"}),i.jsx("circle",{cx:"148",cy:"86",r:"3",className:"cp-beacon-r"})]}),i.jsxs("g",{className:"cp-thruster","aria-hidden":"true",children:[i.jsx("circle",{cx:"100",cy:"187",r:"5.2"}),i.jsx("circle",{cx:"91.5",cy:"198",r:"3.8"}),i.jsx("circle",{cx:"108.5",cy:"196.5",r:"3"})]}),Zt&&i.jsx("ellipse",{cx:"100",cy:"104",rx:"86",ry:"60",fill:"none",stroke:"#FFC800",strokeWidth:"2.5",opacity:"0.4",strokeDasharray:"10 7",className:"cp-halo"}),i.jsx(Ut,{uid:lt,refs:Mt,expression:o,viseme:r,openScale:m,energyRatio:v,streakLit:E}),dt&&i.jsx("circle",{cx:"100",cy:"135",r:"21",fill:"none",stroke:"#FFC800",strokeWidth:"3",className:"cp-core-lit","aria-hidden":"true"}),K&&i.jsxs("g",{"aria-hidden":"true",children:[i.jsx("g",{className:"cp-key-scope",clipPath:`url(#${lt}-keyclip)`,children:w5(U).map((ht,wt)=>i.jsx("rect",{x:86.8+wt*4.4,y:140-ht.h,width:"2.6",height:ht.h,rx:"1.1",className:"cp-scope-bar",style:{animationDelay:`${ht.d}ms`}},wt))}),i.jsx("text",{x:"100",y:"140",textAnchor:"middle",className:`cp-screen-key${J?" cp-screen-key-flash":""}`,children:K===" "?"␣":K.toUpperCase()})]},`k${U}`),St&&!K&&i.jsxs("g",{className:"cp-screen-wave","aria-hidden":"true",children:[i.jsx("rect",{x:"88.6",y:"130",width:"3.2",height:"10",rx:"1.6"}),i.jsx("rect",{x:"93.6",y:"127",width:"3.2",height:"16",rx:"1.6"}),i.jsx("rect",{x:"98.6",y:"125",width:"3.2",height:"20",rx:"1.6"}),i.jsx("rect",{x:"103.6",y:"127",width:"3.2",height:"16",rx:"1.6"}),i.jsx("rect",{x:"108.6",y:"130",width:"3.2",height:"10",rx:"1.6"})]}),d==="writing"&&i.jsxs("g",{className:"cp-writing","aria-hidden":"true",children:[i.jsxs("g",{transform:"rotate(-8 100 150)",children:[i.jsx("path",{d:"M78,140 L99,145 L99,166 L78,161 Z",fill:"#F7F3E8",stroke:"#2B2530",strokeWidth:"3",strokeLinejoin:"round"}),i.jsx("path",{d:"M120,140 L99,145 L99,166 L120,161 Z",fill:"#EFE8D8",stroke:"#2B2530",strokeWidth:"3",strokeLinejoin:"round"}),i.jsx("path",{d:"M83,146 L95,149 M83,151 L95,154 M83,156 L95,159",stroke:"#9AA7B8",strokeWidth:"1.6",strokeLinecap:"round"}),i.jsx("path",{d:"M115,146 L103,149 M115,151 L103,154",stroke:"#9AA7B8",strokeWidth:"1.6",strokeLinecap:"round"})]}),ot&&i.jsx("path",{className:"cp-note-tick",d:"M104,146 L108,152 L117,141",fill:"none",stroke:"#FFC800",strokeWidth:"4.5",strokeLinecap:"round",strokeLinejoin:"round"}),i.jsxs("g",{className:"cp-pen",transform:"rotate(24 100 128)",children:[i.jsx("rect",{x:"96",y:"106",width:"7",height:"26",rx:"2.5",fill:"#FFC568",stroke:"#2B2530",strokeWidth:"2.6"}),i.jsx("path",{d:"M96,132 L103,132 L99.5,141 Z",fill:"#F7F3E8",stroke:"#2B2530",strokeWidth:"2",strokeLinejoin:"round"}),i.jsx("path",{d:"M98.4,138.5 L100.6,138.5 L99.5,141 Z",fill:"#173047"}),i.jsx("rect",{x:"95",y:"101",width:"9",height:"6",rx:"2",fill:"#E8563F",stroke:"#2B2530",strokeWidth:"2.4"})]})]}),Yt&&i.jsx("g",{className:"cp-crown-badge","aria-hidden":"true",children:i.jsx("path",{d:"M84,26 L92,36 L100,24 L108,36 L116,26 L114,44 L86,44 Z",fill:"#FFC800",stroke:"#E8A400",strokeWidth:"2",strokeLinejoin:"round"})})]})}export{Lg as $,Hg as A,q5 as B,P5 as C,G5 as D,qh as E,Qh as F,Mg as G,Og as H,wg as I,Tg as J,Ng as K,zg as L,Jg as M,ag as N,ng as O,Yg as P,Fg as Q,jg as R,Zg as S,qg as T,_g as U,Kg as V,mg as W,Sg as X,cg as Y,gg as Z,ig as _,I4 as a,xg as a0,vg as a1,hg as a2,pg as a3,Gg as a4,Vg as a5,ug as a6,fg as a7,sg as a8,yg as a9,og as aa,rg as ab,eg as ac,Ag as ad,Bg as ae,tg as af,P4 as ag,Q5 as b,lg as c,dg as d,E5 as e,nr as f,em as g,Rg as h,Z5 as i,i as j,Ws as k,hm as l,Z4 as m,Eg as n,j5 as o,L5 as p,p5 as q,zt as r,bg as s,Qg as t,f4 as u,kg as v,Xg as w,Dg as x,Cg as y,Ug as z};
53
+ L${(100+Math.cos(E)*_).toFixed(1)},${(135+Math.sin(E)*_).toFixed(1)} Z`};return i.jsxs("g",{children:[i.jsx("path",{d:"M100,117 L114,135 L100,153 L86,135 Z",fill:um,stroke:jl,strokeWidth:"4",strokeLinejoin:"round"}),Array.from({length:6},(m,v)=>i.jsx("path",{d:r(v),fill:v<d?Ra:h4,stroke:jl,strokeWidth:"1.4",strokeLinejoin:"round",opacity:v<d?1:.55},v)),i.jsx("circle",{cx:"100",cy:"135",r:"3.2",fill:d>=6?wa:Ra,stroke:jl,strokeWidth:"1.6"}),i.jsx("path",{d:"M94,124 L98,119",stroke:"#FFFFFF",strokeWidth:"2",strokeLinecap:"round",opacity:"0.8"}),i.jsx("rect",{x:"0",y:"0",width:"0",height:"0",fill:"none","data-uid":o})]})}function y4(c,o){switch(c){case"A":return i.jsx("path",{d:"M92,74.5 L108,74.5 L113,78.5 L108,85.5 L92,85.5 L87,78.5 Z M95,77.5 L105,77.5 L105,83.5 L95,83.5 Z",fill:o.ink,fillRule:"evenodd"});case"E":return i.jsx("path",{d:"M90,76.5 L110,76.5 L113,80 L110,83.5 L90,83.5 L87,80 Z",fill:o.ink});case"I":return i.jsx("path",{d:"M90,79 L110,79 L111.5,80.8 L110,82.6 L90,82.6 L88.5,80.8 Z",fill:o.ink});case"O":return i.jsx("path",{d:"M100,73.5 L106,80.5 L100,86 L94,80.5 Z M100,77.5 L102.8,80.5 L100,83.4 L97.2,80.5 Z",fill:o.ink,fillRule:"evenodd"});case"U":return i.jsx("path",{d:"M100,74 L104,80.5 L100,85.5 L96,80.5 Z M100,78 L101.8,80.5 L100,83 L98.2,80.5 Z",fill:o.ink,fillRule:"evenodd"});case"SS":return i.jsxs("g",{children:[i.jsx("path",{d:"M86,76 L114,76 L112.5,82.6 L87.5,82.6 Z",fill:o.ink}),i.jsx("path",{d:"M90,76.4 L95.4,76.4 L94.4,82.2 L91.2,82.2 Z",fill:"#FFFFFF"}),i.jsx("path",{d:"M98,76.4 L103,76.4 L102.2,82.2 L99,82.2 Z",fill:"#FFFFFF",opacity:"0.9"}),i.jsx("path",{d:"M105.6,76.4 L110.4,76.4 L109.4,82.2 L106.4,82.2 Z",fill:"#FFFFFF",opacity:"0.75"})]});case"L":return i.jsxs("g",{children:[i.jsx("path",{d:"M92,74.5 L108,74.5 L113,78.5 L108,85.5 L92,85.5 L87,78.5 Z M95,77.5 L105,77.5 L105,83.5 L95,83.5 Z",fill:o.ink,fillRule:"evenodd"}),i.jsx("rect",{x:"96",y:"78",width:"8",height:"3.2",rx:"1.6",fill:o.pupil}),i.jsx("rect",{x:"98",y:"78.8",width:"4",height:"1.6",rx:"0.8",fill:"#FFFFFF",opacity:"0.9"})]});case"FV":return i.jsxs("g",{children:[i.jsx("path",{d:"M92,74.5 L108,74.5 L112,78 L108,84.5 L92,84.5 L88,78 Z",fill:o.ink}),i.jsx("path",{d:"M93.5,76.2 L106.5,76.2 L105.8,79.4 L94.2,79.4 Z",fill:"#FFFFFF"}),i.jsx("rect",{x:"95.5",y:"80.6",width:"9",height:"2.6",rx:"1.3",fill:o.pupil})]});default:return i.jsx("path",{d:"M92,79.5 L100,83.5 L108,79.5",fill:"none",stroke:o.ink,strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round"})}}function g4({uid:c,refs:o,expression:d,viseme:r,openScale:m,energyRatio:v,streakLit:E}){const _=ku(d);return i.jsxs(i.Fragment,{children:[i.jsxs("defs",{children:[i.jsx("clipPath",{id:`${c}-body`,children:i.jsx("path",{d:"M70,110 L130,110 L142,122 L138,156 L62,156 L58,122 Z"})}),i.jsx("clipPath",{id:`${c}-helm`,children:i.jsx("path",{d:"M54,40 L76,26 L124,26 L146,40 L150,64 L142,96 L58,96 L50,64 Z"})}),i.jsx("clipPath",{id:`${c}-scr`,children:i.jsx("rect",{x:"64",y:"54",width:"72",height:"34",rx:"6"})})]}),i.jsxs("g",{ref:o.bot,className:"cp-bot",children:[i.jsxs("g",{className:"cp-thrust",children:[i.jsx("ellipse",{cx:"100",cy:"177",rx:"11",ry:"8",fill:E?wa:Ra,opacity:"0.35"}),i.jsx("ellipse",{cx:"100",cy:"176",rx:"7",ry:"5",fill:E?wa:Ra})]}),i.jsx("path",{d:"M90,158 L110,158 L104,171 L96,171 Z",fill:"#2E3A4A",stroke:jl,strokeWidth:"4",strokeLinejoin:"round"}),i.jsxs("g",{className:"cp-body",children:[i.jsxs("g",{clipPath:`url(#${c}-body)`,children:[i.jsx("path",{d:"M70,110 L130,110 L142,122 L138,156 L62,156 L58,122 Z",fill:Rs}),i.jsx("path",{d:"M70,110 L130,110 L142,122 L138,156 L62,156 L58,122 Z",fill:Cs,transform:"translate(-5 -5)"})]}),i.jsx("path",{d:"M70,110 L130,110 L142,122 L138,156 L62,156 L58,122 Z",fill:"none",stroke:jl,strokeWidth:"5",strokeLinejoin:"round"}),i.jsx(Rl,{id:`${c}-body`,x:58,y:110,w:84,h:46,t:4,light:"rgba(255,255,255,0.6)",dark:"rgba(24,58,82,0.4)"}),i.jsx(m4,{energyRatio:v,uid:c}),i.jsx("circle",{cx:"74",cy:"150",r:"1.5",fill:jl,opacity:"0.45"}),i.jsx("circle",{cx:"126",cy:"150",r:"1.5",fill:jl,opacity:"0.45"})]}),i.jsxs("g",{ref:o.head,className:"cp-head",children:[i.jsxs("g",{className:"cp-antenna",children:[i.jsx("path",{d:"M40,58 L36,38 L44,50 Z",fill:E?wa:Ra,stroke:jl,strokeWidth:"3.5",strokeLinejoin:"round"}),i.jsx("path",{d:"M46,56 L46,42 L52,52 Z",fill:E?wa:Cs,stroke:jl,strokeWidth:"3",strokeLinejoin:"round"}),E&&i.jsx("path",{d:"M28,34 l3,-3 m-1,7 l3,-3 m-9,-1 l3,-3",stroke:wa,strokeWidth:"2.2",strokeLinecap:"round"}),!E&&i.jsx("circle",{cx:"40",cy:"38",r:"8",fill:Ra,opacity:"0.22",className:"cp-ant-glow"})]}),i.jsx("path",{d:"M42,60 L42,84 L48,88 L54,84 L54,60 L48,56 Z",fill:Us,stroke:jl,strokeWidth:"4",strokeLinejoin:"round"}),i.jsx("path",{d:"M146,60 L146,84 L152,88 L158,84 L158,60 L152,56 Z",fill:Us,stroke:jl,strokeWidth:"4",strokeLinejoin:"round"}),i.jsxs("g",{clipPath:`url(#${c}-helm)`,children:[i.jsx("path",{d:"M54,40 L76,26 L124,26 L146,40 L150,64 L142,96 L58,96 L50,64 Z",fill:Rs}),i.jsx("path",{d:"M54,40 L76,26 L124,26 L146,40 L150,64 L142,96 L58,96 L50,64 Z",fill:Cs,transform:"translate(-5 -5)"}),i.jsx("path",{d:"M60,34 L74,28 M132,28 L146,34",stroke:"#FFFFFF",strokeWidth:"2.4",strokeLinecap:"round",opacity:"0.75"})]}),i.jsx("path",{d:"M54,40 L76,26 L124,26 L146,40 L150,64 L142,96 L58,96 L50,64 Z",fill:"none",stroke:jl,strokeWidth:"5",strokeLinejoin:"round"}),i.jsx(Rl,{id:`${c}-helm`,x:50,y:26,w:100,h:70,t:4,light:"rgba(255,255,255,0.55)",dark:"rgba(24,58,82,0.38)"}),i.jsx("path",{d:"M58,36 L96,36 L90,45 L54,45 Z",fill:"#FFFFFF",opacity:"0.9"}),i.jsx("path",{d:"M104,36 L118,36 L112,45 L102,45 Z",fill:"#FFFFFF",opacity:"0.5"}),i.jsx("path",{d:"M58,48 h84 a8,8 0 0 1 8,8 v30 a8,8 0 0 1 -8,8 h-84 a8,8 0 0 1 -8,-8 v-30 a8,8 0 0 1 8,-8 Z",fill:um,stroke:jl,strokeWidth:"4.5"}),i.jsx("rect",{x:"64",y:"54",width:"72",height:"34",rx:"6",fill:d4}),i.jsxs("g",{clipPath:`url(#${c}-scr)`,children:[i.jsx("rect",{x:"64",y:"54",width:"72",height:"34",fill:Us,transform:"translate(0 15)"}),i.jsx("path",{d:"M118,54 L136,54 L108,88 L90,88 Z",fill:"#FFFFFF",opacity:"0.18"})]}),i.jsxs("g",{className:"cp-scr-face",clipPath:`url(#${c}-scr)`,children:[i.jsx(Ku,{expression:d,flags:_,refs:o,p:Ds,viseme:r,openScale:m,renderMouth:y4}),i.jsx(Ju,{flags:_,refs:o,p:Ds})]})]}),_.proud&&i.jsx($u,{p:Ds}),i.jsx(Wu,{refs:o,armFill:Rs,out:jl})]})]})}const Hs={out:"#2A3326",ink:"#2F5D3A",pupil:"#9BEFA9",wave:"#8FDBA0",crown:"#FFC800",crownD:"#D9A400"},_e="#9BEFA9",Bs="#57BD74",Js="#3E8E55",v4="#F4FBE8",im="#D7F0C8",cm="#3A4A34",Zs="#FFC800",ol="#2A3326";function x4({energyRatio:c}){const o=Math.min(1,Math.max(0,c)),d=10+o*30,r=2+o*6;return i.jsxs("g",{children:[i.jsx("circle",{cx:"100",cy:"135",r:"16.5",fill:cm,stroke:ol,strokeWidth:"4.5"}),i.jsx("circle",{cx:"100",cy:"135",r:"12.5",fill:im}),i.jsx("path",{d:`M100,141 Q${100-o*2},${135-r} 100,${129-r}`,fill:"none",stroke:Js,strokeWidth:"3",strokeLinecap:"round"}),i.jsx("g",{transform:`rotate(${-d} 100 133)`,children:i.jsx("path",{d:"M100,133 C95,127 87,127 85,131 C88,136 96,137 100,133 Z",fill:_e,stroke:ol,strokeWidth:"2.6",strokeLinejoin:"round"})}),i.jsx("g",{transform:`rotate(${d} 100 133)`,children:i.jsx("path",{d:"M100,133 C105,127 113,127 115,131 C112,136 104,137 100,133 Z",fill:_e,stroke:ol,strokeWidth:"2.6",strokeLinejoin:"round"})}),i.jsx("ellipse",{cx:"100",cy:"140",rx:"5.5",ry:"4",fill:"#7A5A3A",stroke:ol,strokeWidth:"2.4"}),i.jsx("path",{d:"M95,130.5 Q97,128.5 99.5,129",stroke:"#FFFFFF",strokeWidth:"1.8",fill:"none",strokeLinecap:"round",opacity:"0.7"})]})}function p4(c,o){switch(c){case"A":return i.jsx("path",{d:"M92,74 Q100,71 108,74 Q110,83 100,86 Q90,83 92,74 Z M96,76 Q100,78 104,76 Q103,80 100,81.5 Q97,80 96,76 Z",fill:o.ink,fillRule:"evenodd"});case"E":return i.jsx("path",{d:"M91,76.5 Q100,74 109,76.5 Q109,82 100,83 Q91,82 91,76.5 Z",fill:o.ink});case"I":return i.jsx("path",{d:"M91,78.5 Q100,77 109,78.5 Q109,81.5 100,82.2 Q91,81.5 91,78.5 Z",fill:o.ink});case"O":return i.jsx("path",{d:"M100,72.5 C105,72.5 107.5,77 107.5,80 C107.5,83.5 104.5,86.5 100,86.5 C95.5,86.5 92.5,83.5 92.5,80 C92.5,77 95,72.5 100,72.5 Z M100,77 C102.5,77 104,78.5 104,80.5 C104,82.5 102.3,83.8 100,83.8 C97.7,83.8 96,82.5 96,80.5 C96,78.5 97.5,77 100,77 Z",fill:o.ink,fillRule:"evenodd"});case"U":return i.jsx("path",{d:"M100,73 C103,73 105,76.5 105,80 C105,83.3 103,86 100,86 C97,86 95,83.3 95,80 C95,76.5 97,73 100,73 Z M100,76.8 C101.3,76.8 102.2,78.3 102.2,80.3 C102.2,82.3 101.3,83.6 100,83.6 C98.7,83.6 97.8,82.3 97.8,80.3 C97.8,78.3 98.7,76.8 100,76.8 Z",fill:o.ink,fillRule:"evenodd"});case"SS":return i.jsxs("g",{children:[i.jsx("path",{d:"M87,77 Q100,75 113,77 Q113.5,82.5 100,83 Q86.5,82.5 87,77 Z",fill:o.ink}),i.jsx("rect",{x:"90.5",y:"77.8",width:"1.8",height:"3.2",rx:"0.9",fill:"#FFFFFF"}),i.jsx("rect",{x:"96.5",y:"77.7",width:"1.8",height:"3.4",rx:"0.9",fill:"#FFFFFF",opacity:"0.92"}),i.jsx("rect",{x:"102.5",y:"77.8",width:"1.8",height:"3.2",rx:"0.9",fill:"#FFFFFF",opacity:"0.84"}),i.jsx("rect",{x:"108",y:"77.9",width:"1.8",height:"3",rx:"0.9",fill:"#FFFFFF",opacity:"0.72"})]});case"L":return i.jsxs("g",{children:[i.jsx("path",{d:"M92,74 Q100,71 108,74 Q110,83 100,86 Q90,83 92,74 Z M96,76 Q100,78 104,76 Q103,80 100,81.5 Q97,80 96,76 Z",fill:o.ink,fillRule:"evenodd"}),i.jsx("rect",{x:"96",y:"76.6",width:"8",height:"3.2",rx:"1.6",fill:o.pupil}),i.jsx("rect",{x:"98",y:"77.4",width:"4",height:"1.6",rx:"0.8",fill:"#FFFFFF",opacity:"0.9"})]});case"FV":return i.jsxs("g",{children:[i.jsx("path",{d:"M93.5,77 Q100,74.5 106.5,77 Q107,82.5 100,83.8 Q93,82.5 93.5,77 Z",fill:o.ink}),i.jsx("rect",{x:"94.5",y:"77.2",width:"11",height:"2.4",rx:"1.2",fill:"#FFFFFF"}),i.jsx("rect",{x:"95.5",y:"80.4",width:"9",height:"2.6",rx:"1.3",fill:o.pupil})]});default:return i.jsx("path",{d:"M92,79.5 Q100,85.5 108,79.5",fill:"none",stroke:o.ink,strokeWidth:"3.5",strokeLinecap:"round"})}}function S4({uid:c,refs:o,expression:d,viseme:r,openScale:m,energyRatio:v,streakLit:E}){const _=ku(d);return i.jsxs(i.Fragment,{children:[i.jsxs("defs",{children:[i.jsx("clipPath",{id:`${c}-body`,children:i.jsx("rect",{x:"64",y:"110",width:"72",height:"50",rx:"22"})}),i.jsx("clipPath",{id:`${c}-helm`,children:i.jsx("ellipse",{cx:"100",cy:"69",rx:"56",ry:"42"})}),i.jsx("clipPath",{id:`${c}-scr`,children:i.jsx("rect",{x:"64",y:"54",width:"72",height:"34",rx:"12"})})]}),i.jsxs("g",{ref:o.bot,className:"cp-bot",children:[i.jsxs("g",{className:"cp-thrust",children:[i.jsx("ellipse",{cx:"100",cy:"177",rx:"11",ry:"8",fill:E?Zs:_e,opacity:"0.3"}),i.jsx("ellipse",{cx:"100",cy:"176",rx:"7",ry:"5",fill:E?Zs:_e})]}),i.jsx("path",{d:"M88,158 Q100,152 112,158 L106,171 Q100,174 94,171 Z",fill:"#3A4A34",stroke:ol,strokeWidth:"4",strokeLinejoin:"round"}),i.jsxs("g",{className:"cp-body",children:[i.jsxs("g",{clipPath:`url(#${c}-body)`,children:[i.jsx("rect",{x:"64",y:"110",width:"72",height:"50",rx:"22",fill:Bs}),i.jsx("rect",{x:"64",y:"110",width:"72",height:"50",rx:"22",fill:_e,transform:"translate(-4 -4)"})]}),i.jsx("rect",{x:"64",y:"110",width:"72",height:"50",rx:"22",fill:"none",stroke:ol,strokeWidth:"5"}),i.jsx(Rl,{id:`${c}-body`,x:64,y:110,w:72,h:50,t:4,light:"rgba(255,255,255,0.42)",dark:"rgba(38,74,46,0.4)"}),i.jsx(x4,{energyRatio:v}),i.jsx("circle",{cx:"73",cy:"150",r:"1.6",fill:ol,opacity:"0.45"}),i.jsx("circle",{cx:"127",cy:"150",r:"1.6",fill:ol,opacity:"0.45"})]}),i.jsxs("g",{ref:o.head,className:"cp-head",children:[i.jsxs("g",{className:"cp-antenna",children:[i.jsx("path",{d:"M43,60 Q40,50 44,42",fill:"none",stroke:ol,strokeWidth:"4",strokeLinecap:"round"}),E?i.jsxs("g",{children:[Array.from({length:5},(L,O)=>i.jsx("ellipse",{cx:"44",cy:"33",rx:"4",ry:"7.5",fill:Zs,stroke:ol,strokeWidth:"2",transform:`rotate(${O*72} 44 40)`},O)),i.jsx("circle",{cx:"44",cy:"40",r:"4.5",fill:"#FFF3C4",stroke:ol,strokeWidth:"2"})]}):i.jsxs("g",{children:[i.jsx("ellipse",{cx:"44",cy:"39",rx:"5.5",ry:"7",fill:_e,stroke:ol,strokeWidth:"3"}),i.jsx("path",{d:"M44,33 Q46.5,39 44,45",fill:"none",stroke:Js,strokeWidth:"1.8"})]})]}),i.jsx("path",{d:"M48,62 C36,56 30,62 32,70 C38,76 48,74 48,62 Z",fill:_e,stroke:ol,strokeWidth:"4",strokeLinejoin:"round"}),i.jsx("path",{d:"M152,62 C164,56 170,62 168,70 C162,76 152,74 152,62 Z",fill:_e,stroke:ol,strokeWidth:"4",strokeLinejoin:"round"}),i.jsx("path",{d:"M36,62 Q42,66 46,68 M164,62 Q158,66 154,68",stroke:Js,strokeWidth:"1.8",fill:"none",strokeLinecap:"round"}),i.jsxs("g",{clipPath:`url(#${c}-helm)`,children:[i.jsx("ellipse",{cx:"100",cy:"69",rx:"56",ry:"42",fill:Bs}),i.jsx("ellipse",{cx:"100",cy:"69",rx:"56",ry:"42",fill:_e,transform:"translate(-5 -5)"})]}),i.jsx("ellipse",{cx:"100",cy:"69",rx:"56",ry:"42",fill:"none",stroke:ol,strokeWidth:"5"}),i.jsx(Rl,{id:`${c}-helm`,x:44,y:27,w:112,h:84,t:4,light:"rgba(255,255,255,0.36)",dark:"rgba(38,74,46,0.36)"}),i.jsx("path",{d:"M58,37 Q86,31 104,38 L96,47 Q68,46 58,37 Z",fill:"#FFFFFF",opacity:"0.88"}),i.jsx("circle",{cx:"118",cy:"41",r:"4",fill:"#FFFFFF",opacity:"0.55"}),i.jsx("rect",{x:"58",y:"48",width:"84",height:"46",rx:"16",fill:cm,stroke:ol,strokeWidth:"4.5"}),i.jsx("rect",{x:"64",y:"54",width:"72",height:"34",rx:"12",fill:v4}),i.jsxs("g",{clipPath:`url(#${c}-scr)`,children:[i.jsx("rect",{x:"64",y:"54",width:"72",height:"34",fill:im,transform:"translate(0 15)"}),i.jsx("path",{d:"M120,54 L136,54 L106,88 L90,88 Z",fill:"#FFFFFF",opacity:"0.2"})]}),i.jsxs("g",{className:"cp-scr-face",clipPath:`url(#${c}-scr)`,children:[i.jsx(Ku,{expression:d,flags:_,refs:o,p:Hs,viseme:r,openScale:m,renderMouth:p4}),i.jsx(Ju,{flags:_,refs:o,p:Hs})]})]}),_.proud&&i.jsx($u,{p:Hs}),i.jsx(Wu,{refs:o,armFill:Bs,out:ol})]})]})}const Fs={out:"#221C38",ink:"#FFEFC2",pupil:"#8B7BF0",wave:"#B7ACFF",crown:"#FFD75E",crownD:"#D9A400"},Ma="#8B7BF0",Ys="#5D4FD1",b4="#241E4E",fm="#3A2F6E",Da="#1A1440",Zu="#FFEFC2",Ta="#FFD75E",Ua="#221C38",_n="#A79BFF";function E4({energyRatio:c,uid:o}){const d=Math.min(1,Math.max(0,c)),r=(1-d)*26;return i.jsxs("g",{children:[i.jsx("circle",{cx:"100",cy:"135",r:"16.5",fill:Da,stroke:Ua,strokeWidth:"4.5"}),i.jsx("circle",{cx:"100",cy:"135",r:"12.5",fill:fm}),i.jsxs("g",{clipPath:`url(#${o}-moon)`,children:[i.jsx("circle",{cx:"100",cy:"135",r:"11.5",fill:Zu}),i.jsx("circle",{cx:100-r,cy:"135",r:"12.5",fill:Da})]}),i.jsx("circle",{cx:"100",cy:"135",r:"12.5",fill:"none",stroke:Ua,strokeWidth:"2"}),i.jsxs("g",{opacity:.35*d,children:[i.jsx("circle",{cx:"96",cy:"131",r:"2",fill:Da}),i.jsx("circle",{cx:"104",cy:"138",r:"1.5",fill:Da}),i.jsx("circle",{cx:"99",cy:"140",r:"1.1",fill:Da})]})]})}function j4(c,o){switch(c){case"A":return i.jsx("path",{d:"M91,74.5 h18 a5,5 0 0 1 5,5 v2.6 a5,5 0 0 1 -5,5 h-18 a5,5 0 0 1 -5,-5 v-2.6 a5,5 0 0 1 5,-5 Z M95,77.5 h10 v5.6 h-10 Z",fill:o.ink,fillRule:"evenodd"});case"E":return i.jsx("path",{d:"M90,77 h20 a3.2,3.2 0 0 1 0,6.4 h-20 a3.2,3.2 0 0 1 0,-6.4 Z",fill:o.ink});case"I":return i.jsx("path",{d:"M90,79.5 h20 a1.9,1.9 0 0 1 0,3.8 h-20 a1.9,1.9 0 0 1 0,-3.8 Z",fill:o.ink});case"O":return i.jsxs("g",{fill:"none",children:[i.jsx("circle",{cx:"100",cy:"79.5",r:"6.4",stroke:o.ink,strokeWidth:"4"}),i.jsx("circle",{cx:"100",cy:"79.5",r:"1.6",fill:o.ink,stroke:"none"})]});case"U":return i.jsx("g",{fill:"none",children:i.jsx("circle",{cx:"100",cy:"79.5",r:"4.4",stroke:o.ink,strokeWidth:"3.6"})});case"SS":return i.jsxs("g",{children:[i.jsx("path",{d:"M87,76.5 h26 a2.4,2.4 0 0 1 2.4,2.4 v1.2 a2.4,2.4 0 0 1 -2.4,2.4 h-26 a2.4,2.4 0 0 1 -2.4,-2.4 v-1.2 a2.4,2.4 0 0 1 2.4,-2.4 Z",fill:o.ink}),i.jsx("rect",{x:"90.5",y:"78.1",width:"1.8",height:"3.2",rx:"0.9",fill:"#FFFFFF"}),i.jsx("rect",{x:"96.5",y:"78.1",width:"1.8",height:"3.2",rx:"0.9",fill:"#FFFFFF",opacity:"0.92"}),i.jsx("rect",{x:"102.5",y:"78.1",width:"1.8",height:"3.2",rx:"0.9",fill:"#FFFFFF",opacity:"0.84"}),i.jsx("rect",{x:"108",y:"78.1",width:"1.8",height:"3",rx:"0.9",fill:"#FFFFFF",opacity:"0.72"})]});case"L":return i.jsxs("g",{children:[i.jsx("path",{d:"M91,74.5 h18 a5,5 0 0 1 5,5 v2.6 a5,5 0 0 1 -5,5 h-18 a5,5 0 0 1 -5,-5 v-2.6 a5,5 0 0 1 5,-5 Z M95,77.5 h10 v5.6 h-10 Z",fill:o.ink,fillRule:"evenodd"}),i.jsx("rect",{x:"96",y:"77.2",width:"8",height:"3.2",rx:"1.6",fill:o.pupil}),i.jsx("rect",{x:"98",y:"78",width:"4",height:"1.6",rx:"0.8",fill:"#FFFFFF",opacity:"0.9"})]});case"FV":return i.jsxs("g",{children:[i.jsx("path",{d:"M92,74.8 h16 a5,5 0 0 1 5,5 v2.4 a5,5 0 0 1 -5,5 h-16 a5,5 0 0 1 -5,-5 v-2.4 a5,5 0 0 1 5,-5 Z",fill:o.ink}),i.jsx("rect",{x:"93.5",y:"76.6",width:"13",height:"2.4",rx:"1.2",fill:"#FFFFFF"}),i.jsx("rect",{x:"95.5",y:"79.6",width:"9",height:"2.6",rx:"1.3",fill:o.pupil})]});default:return i.jsx("path",{d:"M92,79.5 Q100,85 108,79.5",fill:"none",stroke:o.ink,strokeWidth:"3.5",strokeLinecap:"round"})}}function M4({uid:c,refs:o,expression:d,viseme:r,openScale:m,energyRatio:v,streakLit:E}){const _=ku(d);return i.jsxs(i.Fragment,{children:[i.jsxs("defs",{children:[i.jsx("clipPath",{id:`${c}-body`,children:i.jsx("rect",{x:"66",y:"110",width:"68",height:"50",rx:"20"})}),i.jsx("clipPath",{id:`${c}-helm`,children:i.jsx("path",{d:"M48,96 L48,62 Q48,26 100,26 Q152,26 152,62 L152,96 Z"})}),i.jsx("clipPath",{id:`${c}-scr`,children:i.jsx("rect",{x:"64",y:"54",width:"72",height:"34",rx:"9"})}),i.jsx("clipPath",{id:`${c}-moon`,children:i.jsx("circle",{cx:"100",cy:"135",r:"12.5"})})]}),i.jsxs("g",{ref:o.bot,className:"cp-bot",children:[i.jsxs("g",{className:"cp-thrust",children:[i.jsx("ellipse",{cx:"100",cy:"177",rx:"11",ry:"8",fill:E?Ta:Ma,opacity:"0.38"}),i.jsx("ellipse",{cx:"100",cy:"176",rx:"7",ry:"5",fill:E?Ta:Ma})]}),i.jsx("path",{d:"M88,158 L112,158 L106,171 L94,171 Z",fill:"#2A2248",stroke:_n,strokeWidth:"4",strokeLinejoin:"round"}),i.jsxs("g",{className:"cp-body",children:[i.jsxs("g",{clipPath:`url(#${c}-body)`,children:[i.jsx("rect",{x:"66",y:"110",width:"68",height:"50",rx:"20",fill:Ys}),i.jsx("rect",{x:"66",y:"110",width:"68",height:"50",rx:"20",fill:Ma,transform:"translate(-4 -4)"})]}),i.jsx("rect",{x:"66",y:"110",width:"68",height:"50",rx:"20",fill:"none",stroke:_n,strokeWidth:"5"}),i.jsx(Rl,{id:`${c}-body`,x:66,y:110,w:68,h:50,t:4,light:"rgba(196,181,255,0.34)",dark:"rgba(10,6,32,0.5)"}),i.jsx(E4,{energyRatio:v,uid:c}),i.jsx("circle",{cx:"76",cy:"150",r:"1.5",fill:Ua,opacity:"0.5"}),i.jsx("circle",{cx:"124",cy:"150",r:"1.5",fill:Ua,opacity:"0.5"})]}),i.jsxs("g",{ref:o.head,className:"cp-head",children:[i.jsxs("g",{className:"cp-antenna",children:[i.jsx("ellipse",{cx:"42",cy:"44",rx:"13",ry:"5.5",fill:"none",stroke:_n,strokeWidth:"3.5",transform:"rotate(-24 42 44)"}),i.jsx("circle",{cx:"49",cy:"39",r:"5",fill:E?Ta:Zu,stroke:_n,strokeWidth:"3"}),E&&i.jsx("path",{d:"M56,34 L68,26 M57,41 L71,38 M52,30 L58,20",stroke:Ta,strokeWidth:"2.4",strokeLinecap:"round"})]}),i.jsx("circle",{cx:"44",cy:"72",r:"8",fill:Ma,stroke:_n,strokeWidth:"4"}),i.jsx("ellipse",{cx:"44",cy:"72",rx:"13",ry:"4.5",fill:"none",stroke:Ta,strokeWidth:"2.4",transform:"rotate(-18 44 72)"}),i.jsx("circle",{cx:"156",cy:"72",r:"8",fill:Ma,stroke:_n,strokeWidth:"4"}),i.jsx("ellipse",{cx:"156",cy:"72",rx:"13",ry:"4.5",fill:"none",stroke:Ta,strokeWidth:"2.4",transform:"rotate(18 156 72)"}),i.jsxs("g",{clipPath:`url(#${c}-helm)`,children:[i.jsx("path",{d:"M48,96 L48,62 Q48,26 100,26 Q152,26 152,62 L152,96 Z",fill:Ys}),i.jsx("path",{d:"M48,96 L48,62 Q48,26 100,26 Q152,26 152,62 L152,96 Z",fill:Ma,transform:"translate(-5 -5)"}),i.jsx("circle",{cx:"66",cy:"42",r:"1.6",fill:"#FFFFFF",opacity:"0.9"}),i.jsx("circle",{cx:"82",cy:"33",r:"1.2",fill:"#FFFFFF",opacity:"0.75"}),i.jsx("circle",{cx:"130",cy:"36",r:"1.7",fill:"#FFFFFF",opacity:"0.9"}),i.jsx("circle",{cx:"118",cy:"30",r:"1",fill:"#FFFFFF",opacity:"0.6"}),i.jsx("path",{d:"M94,28 l1.6,3.2 3.4,0.5 -2.5,2.4 0.6,3.4 -3.1,-1.7 -3.1,1.7 0.6,-3.4 -2.5,-2.4 3.4,-0.5 Z",fill:"#FFFFFF",opacity:"0.85"})]}),i.jsx("path",{d:"M48,96 L48,62 Q48,26 100,26 Q152,26 152,62 L152,96 Z",fill:"none",stroke:_n,strokeWidth:"5"}),i.jsx(Rl,{id:`${c}-helm`,x:48,y:26,w:104,h:70,t:4,light:"rgba(196,181,255,0.3)",dark:"rgba(10,6,32,0.45)"}),i.jsx("path",{d:"M56,40 Q88,28 110,34 L102,44 Q72,40 56,46 Z",fill:"#FFFFFF",opacity:"0.8"}),i.jsx("rect",{x:"58",y:"48",width:"84",height:"46",rx:"12",fill:Da,stroke:Ua,strokeWidth:"4.5"}),i.jsx("rect",{x:"64",y:"54",width:"72",height:"34",rx:"9",fill:b4}),i.jsxs("g",{clipPath:`url(#${c}-scr)`,children:[i.jsx("rect",{x:"64",y:"54",width:"72",height:"34",fill:fm,transform:"translate(0 15)"}),i.jsx("circle",{cx:"74",cy:"60",r:"1",fill:Zu,opacity:"0.8"}),i.jsx("circle",{cx:"128",cy:"82",r:"1.2",fill:Zu,opacity:"0.6"}),i.jsx("circle",{cx:"86",cy:"84",r:"0.8",fill:Zu,opacity:"0.5"}),i.jsx("path",{d:"M118,54 L136,54 L106,88 L92,88 Z",fill:"#FFFFFF",opacity:"0.08"})]}),i.jsxs("g",{className:"cp-scr-face",clipPath:`url(#${c}-scr)`,children:[i.jsx(Ku,{expression:d,flags:_,refs:o,p:Fs,viseme:r,openScale:m,renderMouth:j4}),i.jsx(Ju,{flags:_,refs:o,p:Fs})]})]}),_.proud&&i.jsx($u,{p:Fs}),i.jsx(Wu,{refs:o,armFill:Ys,out:Ua})]})]})}const Qs={out:"#2F2A22",ink:"#2B2B2B",pupil:"#F7F2E6",wave:"#8FB8C9",crown:"#FFC800",crownD:"#D9A400"},Dc="#F7F2E6",Cc="#DCD2B8",T4="#FBF7EC",Aa="#EFE7D2",Rc="#4A4234",Fu="#E8543F",om="#B8392A",$s="#3A342A",Zc="#FFC800",Il="#2F2A22";function A4({energyRatio:c,streakLit:o}){const d=Math.min(1,Math.max(0,c)),m=146-d*22;return i.jsxs("g",{children:[i.jsx("path",{d:"M82,120 h36 a6,6 0 0 1 6,6 v16 a8,8 0 0 1 -8,8 h-32 a8,8 0 0 1 -8,-8 v-16 a6,6 0 0 1 6,-6 Z",fill:Rc,stroke:Il,strokeWidth:"4.5"}),i.jsx("path",{d:"M86,124 h28 a4,4 0 0 1 4,4 v14 a5,5 0 0 1 -5,5 h-26 a5,5 0 0 1 -5,-5 v-14 a4,4 0 0 1 4,-4 Z",fill:Cc}),i.jsxs("g",{children:[i.jsx("rect",{x:"82",y:m,width:"36",height:150-m,rx:"3",fill:o?"#4A4034":$s}),i.jsx("ellipse",{cx:"100",cy:m,rx:"18",ry:"2.6",fill:d>=.999?Zc:"#57503F"}),d>=.999&&i.jsx("path",{d:"M90,144 q5,-4 10,0 q5,4 10,0",fill:"none",stroke:Zc,strokeWidth:"2",strokeLinecap:"round",opacity:"0.8"})]}),i.jsx("path",{d:"M88,126.5 q12,-2.5 24,0",fill:"none",stroke:"#FFFFFF",strokeWidth:"2",strokeLinecap:"round",opacity:"0.6"}),i.jsx("rect",{x:"122",y:"121",width:"11",height:"11",rx:"2.5",fill:Fu,stroke:om,strokeWidth:"1.8"}),i.jsx("path",{d:"M125.5,124.5 h4 M125.5,127.5 h4 M127.5,124 v6",stroke:Dc,strokeWidth:"1.5",strokeLinecap:"round"})]})}function z4(c,o){switch(c){case"A":return i.jsx("path",{d:"M91,74 Q100,71.5 109,74 Q111,83 100,86.5 Q89,83 91,74 Z M96,76.5 Q100,78.5 104,76.5 Q103,81 100,82.5 Q97,81 96,76.5 Z",fill:o.ink,fillRule:"evenodd"});case"E":return i.jsx("path",{d:"M90,76 Q100,73.8 110,76 Q110.8,82.2 100,83.4 Q89.2,82.2 90,76 Z",fill:o.ink});case"I":return i.jsx("path",{d:"M90.5,78.4 Q100,77 109.5,78.4 Q110,81.8 100,82.4 Q90,81.8 90.5,78.4 Z",fill:o.ink});case"O":return i.jsx("path",{d:"M100,72.5 C105.5,72.5 108,77 108,80 C108,83.6 104.8,86.6 100,86.6 C95.2,86.6 92,83.6 92,80 C92,77 94.5,72.5 100,72.5 Z M100,77 C102.6,77 104.2,78.5 104.2,80.5 C104.2,82.5 102.5,83.7 100,83.7 C97.5,83.7 95.8,82.5 95.8,80.5 C95.8,78.5 97.4,77 100,77 Z",fill:o.ink,fillRule:"evenodd"});case"U":return i.jsx("path",{d:"M100,73 C103.2,73 105.2,76.6 105.2,80 C105.2,83.4 103.2,86 100,86 C96.8,86 94.8,83.4 94.8,80 C94.8,76.6 96.8,73 100,73 Z M100,76.8 C101.4,76.8 102.3,78.3 102.3,80.3 C102.3,82.3 101.4,83.5 100,83.5 C98.6,83.5 97.7,82.3 97.7,80.3 C97.7,78.3 98.6,76.8 100,76.8 Z",fill:o.ink,fillRule:"evenodd"});case"SS":return i.jsxs("g",{children:[i.jsx("path",{d:"M88,77.2 Q100,75.6 112,77.2 Q112.6,82.8 100,83.4 Q87.4,82.8 88,77.2 Z",fill:o.ink}),i.jsx("path",{d:"M91.5,77.8 L96.3,77.6 L95.7,81.6 L92.1,81.5 Z",fill:"#F7F2E6"}),i.jsx("path",{d:"M99,77.6 L104.3,77.6 L103.8,81.7 L99.3,81.6 Z",fill:"#F7F2E6",opacity:"0.9"}),i.jsx("path",{d:"M107,77.7 L110.3,77.9 L109.7,81.5 L107.3,81.4 Z",fill:"#F7F2E6",opacity:"0.72"})]});case"L":return i.jsxs("g",{children:[i.jsx("path",{d:"M91,74 Q100,71.5 109,74 Q111,83 100,86.5 Q89,83 91,74 Z M96,76.5 Q100,78.5 104,76.5 Q103,81 100,82.5 Q97,81 96,76.5 Z",fill:o.ink,fillRule:"evenodd"}),i.jsx("rect",{x:"96.2",y:"77.2",width:"7.6",height:"3",rx:"1.5",fill:o.pupil}),i.jsx("rect",{x:"98",y:"77.9",width:"4",height:"1.6",rx:"0.8",fill:"#FFFFFF",opacity:"0.9"})]});case"FV":return i.jsxs("g",{children:[i.jsx("path",{d:"M93.5,77 Q100,74.6 106.5,77 Q107,82.6 100,83.4 Q93,82.6 93.5,77 Z",fill:o.ink}),i.jsx("path",{d:"M94,76.6 Q100,74.8 106,76.6 L105.4,79.6 Q100,80.6 94.6,79.6 Z",fill:"#3A342A"}),i.jsx("rect",{x:"95.5",y:"80.6",width:"9",height:"2.5",rx:"1.25",fill:o.pupil})]});default:return i.jsx("path",{d:"M91,78.8 Q100,85.6 109,78.4",fill:"none",stroke:o.ink,strokeWidth:"4.2",strokeLinecap:"round"})}}function N4({uid:c,refs:o,expression:d,viseme:r,openScale:m,energyRatio:v,streakLit:E}){const _=ku(d);return i.jsxs(i.Fragment,{children:[i.jsxs("defs",{children:[i.jsx("clipPath",{id:`${c}-body`,children:i.jsx("rect",{x:"62",y:"110",width:"76",height:"50",rx:"10"})}),i.jsx("clipPath",{id:`${c}-helm`,children:i.jsx("path",{d:"M54,44 L100,30 L146,44 L150,72 L142,96 L58,96 L50,72 Z"})}),i.jsx("clipPath",{id:`${c}-scr`,children:i.jsx("rect",{x:"64",y:"54",width:"72",height:"34",rx:"5"})})]}),i.jsxs("g",{ref:o.bot,className:"cp-bot",children:[i.jsxs("g",{className:"cp-thrust",children:[i.jsx("ellipse",{cx:"100",cy:"177",rx:"11",ry:"8",fill:E?Zc:Aa,opacity:"0.4"}),i.jsx("ellipse",{cx:"100",cy:"176",rx:"7",ry:"5",fill:E?Zc:Aa})]}),i.jsx("path",{d:"M88,158 L112,158 L106,171 L94,171 Z",fill:$s,stroke:Il,strokeWidth:"4",strokeLinejoin:"round"}),i.jsxs("g",{className:"cp-body",children:[i.jsxs("g",{clipPath:`url(#${c}-body)`,children:[i.jsx("rect",{x:"62",y:"110",width:"76",height:"50",rx:"10",fill:Cc}),i.jsx("rect",{x:"62",y:"110",width:"76",height:"50",rx:"10",fill:Dc,transform:"translate(-4 -4)"})]}),i.jsx("rect",{x:"62",y:"110",width:"76",height:"50",rx:"10",fill:"none",stroke:Il,strokeWidth:"5"}),i.jsx(Rl,{id:`${c}-body`,x:62,y:110,w:76,h:50,t:4,light:"rgba(255,255,255,0.5)",dark:"rgba(58,52,42,0.32)"}),i.jsx(A4,{energyRatio:v,streakLit:E})]}),i.jsxs("g",{ref:o.head,className:"cp-head",children:[i.jsxs("g",{className:"cp-antenna",children:[i.jsx("rect",{x:"38",y:"42",width:"5",height:"20",rx:"2.5",fill:Dc,stroke:Il,strokeWidth:"3",transform:"rotate(14 40 52)"}),i.jsx("path",{d:"M41,56 Q43,62 40,66 Q37,62 39,56 Z",fill:E?Fu:$s,stroke:Il,strokeWidth:"2.6",strokeLinejoin:"round",transform:"rotate(14 40 60)"}),E&&i.jsx("circle",{cx:"38",cy:"68",r:"3.4",fill:Fu,stroke:om,strokeWidth:"2"})]}),i.jsx("rect",{x:"38",y:"58",width:"13",height:"26",rx:"3",fill:Rc,stroke:Il,strokeWidth:"4"}),i.jsx("path",{d:"M44.5,60 v22",stroke:Aa,strokeWidth:"2",strokeLinecap:"round"}),i.jsx("rect",{x:"149",y:"58",width:"13",height:"26",rx:"3",fill:Rc,stroke:Il,strokeWidth:"4"}),i.jsx("path",{d:"M155.5,60 v22",stroke:Aa,strokeWidth:"2",strokeLinecap:"round"}),i.jsxs("g",{clipPath:`url(#${c}-helm)`,children:[i.jsx("path",{d:"M54,44 L100,30 L146,44 L150,72 L142,96 L58,96 L50,72 Z",fill:Cc}),i.jsx("path",{d:"M54,44 L100,30 L146,44 L150,72 L142,96 L58,96 L50,72 Z",fill:Dc,transform:"translate(-4 -4)"}),i.jsx("path",{d:"M100,30 L100,44",stroke:Il,strokeWidth:"2.6"})]}),i.jsx("path",{d:"M54,44 L100,30 L146,44 L150,72 L142,96 L58,96 L50,72 Z",fill:"none",stroke:Il,strokeWidth:"5",strokeLinejoin:"round"}),i.jsx(Rl,{id:`${c}-helm`,x:50,y:30,w:100,h:66,t:4,light:"rgba(255,255,255,0.46)",dark:"rgba(58,52,42,0.3)"}),i.jsx("path",{d:"M62,38 Q90,32 104,36 L98,44 Q74,42 62,46 Z",fill:Fu,opacity:"0.85"}),i.jsx("path",{d:"M112,36 L124,38 L118,45 L108,44 Z",fill:Fu,opacity:"0.45"}),i.jsx("rect",{x:"58",y:"48",width:"84",height:"46",rx:"8",fill:Rc,stroke:Il,strokeWidth:"4.5"}),i.jsx("rect",{x:"64",y:"54",width:"72",height:"34",rx:"5",fill:T4}),i.jsxs("g",{clipPath:`url(#${c}-scr)`,children:[i.jsx("rect",{x:"64",y:"54",width:"72",height:"34",fill:Aa,transform:"translate(0 15)"}),i.jsx("path",{d:"M70,56 v30 M78,56 v30 M122,56 v30 M130,56 v30",stroke:Aa,strokeWidth:"1.2",opacity:"0.7"}),i.jsx("path",{d:"M118,54 L136,54 L108,88 L92,88 Z",fill:"#FFFFFF",opacity:"0.22"})]}),i.jsxs("g",{className:"cp-scr-face",clipPath:`url(#${c}-scr)`,children:[i.jsx(Ku,{expression:d,flags:_,refs:o,p:Qs,viseme:r,openScale:m,renderMouth:z4}),i.jsx(Ju,{flags:_,refs:o,p:Qs})]})]}),_.proud&&i.jsx($u,{p:Qs}),i.jsx(Wu,{refs:o,armFill:Cc,out:Il})]})]})}function _4(c,o){let d=0;const r=[];for(let O=0;O<c.h;O++)for(let A=0;A<c.w;A++){if(c.at(A,O)<.5)continue;const y=A+.5-o.x,w=O+.5-o.y,U=y*y+w*w;U>d&&(d=U),r.push({dx:y,dy:w,d2:U})}if(r.length<60||d<=0)return null;const m=Math.sqrt(d),v=m*.02;let E=0,_=0;for(const O of r){if(m-Math.sqrt(O.d2)>v)continue;const A=Math.sqrt(O.d2)||1;E+=O.dx/A,_+=O.dy/A}return Math.atan2(_,E)*180/Math.PI}function O4(c){const o=Object.values(c).map(E=>E==null?void 0:E.box).filter(E=>!!E);if(o.length===0)return{x:0,y:0,width:0,height:0};const d=Math.min(...o.map(E=>E.x)),r=Math.min(...o.map(E=>E.y)),m=Math.max(...o.map(E=>E.x+E.w)),v=Math.max(...o.map(E=>E.y+E.h));return{x:d,y:r,width:m-d,height:v-r}}function L4(c,o,d={x:24,y:22,w:152,h:154},r="center"){if(c.width<=0||c.height<=0)return[];const m=c.x??0,v=c.y??0,E=Math.min(d.w/c.width,d.h/c.height),_=d.x+(d.w-c.width*E)/2,L=r==="bottom"?d.y+d.h-c.height*E:d.y+(d.h-c.height*E)/2,O=y=>Math.round(y*100)/100,A=[];for(const[y,w]of Object.entries(o))w&&A.push({name:y,x:O(_+(w.box.x-m)*E),y:O(L+(w.box.y-v)*E),w:O(w.box.w*E),h:O(w.box.h*E)});return A}const Ws={silver:{top:["#eceff4","#c3cad5","#9aa2b1"],wall:["#7d8595","#d3d9e2","#6d7584"],inset:"#aab1bf",bottom:"#565d6b",specular:.55,edgeTop:"#7b8393",edgeWall:"#5d6472",bezel:"#ffc800",glass:"#dff5fa",vent:"#3f4654",track:"#3f4654",nozzle:"#4a5160",nozzleEdge:"#333a47",flameOuter:"#1cb0f6",flameCore:"#e8f7ff",lamp:"#ffc800",glow:"#1cb0f6",dot:"#c3cad5"},ember:{top:["#ffc98a","#f0954e","#c25f2e"],wall:["#e08a4a","#ffd2a8","#a34e2a"],inset:"#f0a468",bottom:"#8a3d20",specular:.4,edgeTop:"#a34e2a",edgeWall:"#8a3d20",bezel:"#ff9f43",glass:"#fff3e6",vent:"#7a3a1c",track:"#7a3a1c",nozzle:"#7a3a1c",nozzleEdge:"#5c2b14",flameOuter:"#ff7a3c",flameCore:"#ffe4c8",lamp:"#ffd27a",glow:"#ff8c42",dot:"#f0954e"},frost:{top:["#f2fafe","#c9e6f7","#93c2e2"],wall:["#9cc8e8","#e8f6fe","#7fb2d6"],inset:"#d7ecf9",bottom:"#6f9fc0",specular:.6,edgeTop:"#7fb2d6",edgeWall:"#6f9fc0",bezel:"#7fc4e8",glass:"#f4fbff",vent:"#5d8db0",track:"#5d8db0",nozzle:"#5d8db0",nozzleEdge:"#47708e",flameOuter:"#6fc8f2",flameCore:"#ecfaff",lamp:"#c9e9fa",glow:"#6fc8f2",dot:"#93c2e2"},moss:{top:["#eff7e2","#c8e2b4","#94bd7c"],wall:["#a9cd92","#e6f4d8","#7ba468"],inset:"#d5eac2",bottom:"#6e9459",specular:.45,edgeTop:"#7ba468",edgeWall:"#6e9459",bezel:"#6fbf4f",glass:"#f4fbee",vent:"#4f7040",track:"#4f7040",nozzle:"#4f7040",nozzleEdge:"#3d5830",flameOuter:"#8ed464",flameCore:"#f0fbe2",lamp:"#c9ee9e",glow:"#8ed464",dot:"#94bd7c"},astro:{top:["#4a4478","#34305c","#221e40"],wall:["#565179","#7d78b0","#2c2850"],inset:"#3c3765",bottom:"#191631",specular:.25,edgeTop:"#17142c",edgeWall:"#14112a",bezel:"#b8b3e0",glass:"#edeaff",vent:"#161329",track:"#161329",nozzle:"#161329",nozzleEdge:"#0e0c1c",flameOuter:"#b18cff",flameCore:"#ece5ff",lamp:"#b8b3e0",glow:"#b18cff",dot:"#55508a",stars:!0},ink:{top:["#43434b","#2b2b31","#17171a"],wall:["#55555f","#9a9aa4","#202026"],inset:"#333339",bottom:"#101013",specular:.3,edgeTop:"#101013",edgeWall:"#0c0c0e",bezel:"#e8563f",glass:"#f6f3ec",vent:"#0d0d10",track:"#0d0d10",nozzle:"#1a1a1f",nozzleEdge:"#000000",flameOuter:"#ff6b4a",flameCore:"#ffe9d9",lamp:"#e8563f",glow:"#e8563f",dot:"#3a3a40"}},Kg=["ember","frost","moss","astro","ink"];function sm({uid:c,energyRatio:o,theme:d}){return i.jsxs("g",{className:"cp-disc cp-veh","aria-hidden":"true",children:[i.jsxs("defs",{children:[i.jsxs("linearGradient",{id:`${c}-veh-top`,x1:"0",y1:"0",x2:"0",y2:"1",children:[i.jsx("stop",{offset:"0",stopColor:d.top[0]}),i.jsx("stop",{offset:"0.55",stopColor:d.top[1]}),i.jsx("stop",{offset:"1",stopColor:d.top[2]})]}),i.jsxs("linearGradient",{id:`${c}-veh-wall`,x1:"0",y1:"0",x2:"1",y2:"0",children:[i.jsx("stop",{offset:"0",stopColor:d.wall[0]}),i.jsx("stop",{offset:"0.5",stopColor:d.wall[1]}),i.jsx("stop",{offset:"1",stopColor:d.wall[2]})]})]}),i.jsx("ellipse",{cx:"100",cy:"193",rx:"72",ry:"11",className:"cp-veh-glow",style:{fill:d.glow}}),[68,100,132].map((r,m)=>i.jsxs("g",{transform:`translate(${r} ${m===1?187.5:185})`,className:"cp-veh-nozzle",children:[i.jsx("path",{d:"M -7 0 L 7 0 L 5 4.5 L -5 4.5 Z",className:"cp-veh-nozzle-body",fill:d.nozzle,stroke:d.nozzleEdge}),i.jsx("path",{d:"M -4.5 4.5 Q 0 11.5 4.5 4.5 Z",className:"cp-veh-flame cp-veh-flame-outer",fill:d.flameOuter}),i.jsx("path",{d:"M -2.4 4.5 Q 0 9 2.4 4.5 Z",className:"cp-veh-flame cp-veh-flame-core",fill:d.flameCore})]},r)),i.jsx("ellipse",{cx:"100",cy:"183",rx:"58",ry:"8.5",className:"cp-veh-bottom",fill:d.bottom}),i.jsx("path",{d:"M 38 175 L 40 183 A 58 8.5 0 0 0 160 183 L 162 175 A 62 9 0 0 1 38 175 Z",className:"cp-veh-wall",fill:`url(#${c}-veh-wall)`,stroke:d.edgeWall}),i.jsx("rect",{x:"47",y:"185.6",width:"9",height:"2.4",rx:"1.2",className:"cp-veh-vent",fill:d.vent}),i.jsx("rect",{x:"59",y:"185.6",width:"9",height:"2.4",rx:"1.2",className:"cp-veh-vent",fill:d.vent}),i.jsx("rect",{x:"122",y:"185.6",width:"34",height:"3.6",rx:"1.8",className:"cp-veh-energy-track",fill:d.track}),i.jsx("rect",{x:"122",y:"185.6",width:Math.max(3,34*o),height:"3.6",rx:"1.8",className:"cp-veh-energy-fill"}),i.jsx("circle",{cx:"42",cy:"180",r:"2.4",className:"cp-disc-lamp",style:{fill:d.lamp}}),i.jsx("circle",{cx:"158",cy:"180",r:"2.4",className:"cp-disc-lamp",style:{fill:d.lamp}}),i.jsx("ellipse",{cx:"100",cy:"175",rx:"62",ry:"9",className:"cp-veh-top",fill:`url(#${c}-veh-top)`,stroke:d.edgeTop}),i.jsx("ellipse",{cx:"100",cy:"175",rx:"52",ry:"6.5",className:"cp-veh-top-inset",fill:d.inset}),i.jsx("ellipse",{cx:"74",cy:"172.5",rx:"22",ry:"2.6",className:"cp-veh-specular",style:{opacity:d.specular}}),d.stars&&i.jsxs("g",{className:"cp-veh-stars",fill:"#ffffff","aria-hidden":"true",children:[i.jsx("circle",{cx:"62",cy:"173.4",r:"0.9"}),i.jsx("circle",{cx:"84",cy:"177.2",r:"0.7",opacity:"0.8"}),i.jsx("circle",{cx:"118",cy:"172.8",r:"0.8",opacity:"0.9"}),i.jsx("circle",{cx:"138",cy:"176.4",r:"0.7",opacity:"0.7"}),i.jsx("path",{d:"M 104 173.4 l 0.55 1.35 1.35 0.55 -1.35 0.55 -0.55 1.35 -0.55 -1.35 -1.35 -0.55 1.35 -0.55 Z"})]}),i.jsx("circle",{cx:"100",cy:"187",r:"12",className:"cp-veh-port-bezel",fill:d.inset,stroke:d.bezel}),i.jsx("circle",{cx:"100",cy:"187",r:"10",className:"cp-veh-port-glass",fill:d.glass}),i.jsxs("g",{className:"cp-veh-eq","aria-hidden":"true",children:[i.jsx("rect",{x:"93",y:"181.5",width:"3.2",height:"11",rx:"1.6",className:"cp-veh-eq-bar"}),i.jsx("rect",{x:"98.4",y:"181.5",width:"3.2",height:"11",rx:"1.6",className:"cp-veh-eq-bar"}),i.jsx("rect",{x:"103.8",y:"181.5",width:"3.2",height:"11",rx:"1.6",className:"cp-veh-eq-bar"})]})]})}function rm({refs:c,theme:o}){return i.jsx("g",{className:"cp-veh-arms","aria-hidden":"true",children:["armL","armR"].map(d=>{const r=d==="armL"?44:156,m=d==="armL"?-1:1;return i.jsx("g",{ref:c[d],className:`cp-veh-arm cp-${d}`,children:i.jsxs("g",{transform:`translate(${r} 171)`,children:[i.jsx("circle",{r:"4",fill:o.bezel,stroke:o.edgeTop,strokeWidth:"1.2"}),i.jsx("path",{d:`M 0 0 Q ${m*8} 10 ${m*4.5} 19`,stroke:o.bezel,strokeWidth:"5.6",strokeLinecap:"round",fill:"none"}),i.jsx("circle",{cx:m*4.5,cy:"19",r:"2.8",fill:o.lamp,stroke:o.edgeTop,strokeWidth:"1"}),i.jsx("path",{d:`M ${m*4.5} 19 Q ${m*-2} 26 ${m*-1} 32`,stroke:o.bezel,strokeWidth:"4.2",strokeLinecap:"round",fill:"none"}),i.jsx("path",{d:`M ${m*-3.6} 32.5 Q ${m*.2} 36.5 ${m*3.6} 33`,stroke:o.edgeTop,strokeWidth:"1.8",strokeLinecap:"round",fill:"none"})]})},d)})})}let dm=null,qs=!1;const Is=new Set;function w4(){for(const c of Is)c()}function $h(){return dm}function D4(c){return Is.add(c),()=>{Is.delete(c)}}async function hm(){var c,o;if(!qs){qs=!0;try{const d=await((o=(c=window.api)==null?void 0:c.companionPackGetActive)==null?void 0:o.call(c));dm=d&&d.manifest&&Object.keys(d.srcs??{}).length>0?{id:d.id,name:d.name,manifest:d.manifest,srcs:d.srcs,layout:L4(O4(d.manifest.parts),d.manifest.parts,{x:24,y:22,w:152,h:154},"bottom")}:null,w4()}catch{}finally{qs=!1}}}hm();typeof window<"u"&&window.addEventListener("companion-config-changed",()=>{hm()});const C4=["body","head","armL","armR","sticker"],Wh={head:"50% 92%",armL:"86% 10%",armR:"14% 10%"},za=90;function R4({uid:c,refs:o,energyRatio:d}){const r=zt.useSyncExternalStore(D4,$h),m=zt.useRef(null),v=zt.useMemo(()=>{const O=new Map;for(const A of(r==null?void 0:r.layout)??[])O.set(A.name,A);return O},[r]),E=!!(r!=null&&r.srcs.armL&&(r!=null&&r.srcs.armR)),[_,L]=zt.useState({armL:za,armR:za});return zt.useEffect(()=>{if(!r)return;let O=!1;const A=y=>new Promise(w=>{const U=new Image;U.onload=()=>{const J=document.createElement("canvas");J.width=U.naturalWidth,J.height=U.naturalHeight;const ut=J.getContext("2d");if(!ut)return w(za);ut.drawImage(U,0,0);let K;try{K=ut.getImageData(0,0,J.width,J.height).data}catch{return w(za)}const dt=_4({w:J.width,h:J.height,at:(ot,Yt)=>K[(Yt*J.width+ot)*4+3]/255},{x:J.width*(y==="armL"?.86:.14),y:J.height*.1});w(dt??za)},U.onerror=()=>w(za),U.src=r.srcs[y]??""});return Promise.all([A("armL"),A("armR")]).then(([y,w])=>{O||L({armL:y,armR:w})}),()=>{O=!0}},[r]),zt.useEffect(()=>{const O=A=>{var dt;const y=A.detail,w=m.current;if(!w)return;const U=(dt=$h())==null?void 0:dt.layout.find(ot=>ot.name==="head"),J=U?U.x+U.w/2:100,ut=U?U.y+U.h*.92:170,K=Math.max(-3.5,Math.min(3.5,y.x*2.8))+Math.max(-1,Math.min(1,y.y*.8));w.setAttribute("transform",`rotate(${K.toFixed(2)} ${J.toFixed(1)} ${ut.toFixed(1)}) translate(${(y.x*1.2).toFixed(2)} ${(y.y*.7).toFixed(2)})`)};return window.addEventListener("companion-gaze",O),()=>window.removeEventListener("companion-gaze",O)},[]),i.jsxs("g",{ref:o.bot,className:"cp-bot cp-puppet-bot",children:[r?i.jsxs(i.Fragment,{children:[i.jsx(sm,{uid:c,energyRatio:d,theme:Ws[r.manifest.vehicle??"silver"]}),!E&&i.jsx(rm,{refs:o,theme:Ws[r.manifest.vehicle??"silver"]}),i.jsx("g",{className:"cp-puppet-figure",children:C4.map(O=>{const A=r.srcs[O],y=v.get(O);return!A||!y?null:O==="head"?i.jsx("g",{ref:o.head,className:"cp-head",style:{transformBox:"fill-box",transformOrigin:Wh.head},children:i.jsx("g",{ref:m,children:i.jsx("image",{href:A,x:y.x,y:y.y,width:y.w,height:y.h})})},O):O==="armL"||O==="armR"?i.jsx("g",{ref:O==="armL"?o.armL:o.armR,className:`cp-arm cp-${O}`,style:{transformBox:"fill-box",transformOrigin:Wh[O],"--cp-rest":`${_[O]}deg`},children:i.jsx("image",{href:A,x:y.x,y:y.y,width:y.w,height:y.h})},O):i.jsx("image",{href:A,x:y.x,y:y.y,width:y.w,height:y.h},O)})})]}):i.jsxs("g",{className:"cp-puppet-placeholder",opacity:"0.45","aria-hidden":"true",children:[i.jsx("circle",{cx:"100",cy:"68",r:"36",fill:"var(--surface-2, #3a3a44)",stroke:"var(--border-faint, #777)",strokeWidth:"3"}),i.jsx("rect",{x:"70",y:"110",width:"60",height:"58",rx:"16",fill:"var(--surface-2, #3a3a44)",stroke:"var(--border-faint, #777)",strokeWidth:"3"})]}),i.jsx("g",{ref:o.eyes}),i.jsx("g",{ref:o.waves}),i.jsx("g",{ref:o.pupils})]})}let mm=null;const Ih=new Map;let Gs=!1;const Ps=new Set;function ym(){for(const c of Ps)c()}function U4(){return mm}function H4(c){return Ps.add(c),()=>{Ps.delete(c)}}function B4(c,o){var m,v;const d=`${c}/${o}`,r=Ih.get(d);return r||((v=(m=window.api)==null?void 0:m.shimejiGetFrame)==null||v.call(m,{packId:c,frame:o}).then(E=>{E&&(Ih.set(d,E),ym())}).catch(()=>{}),null)}async function Z4(){var c,o;if(!Gs){Gs=!0;try{const d=await((o=(c=window.api)==null?void 0:c.shimejiGetActive)==null?void 0:o.call(c));mm=d?{id:d.id,name:d.name,manifest:d}:null,ym()}finally{Gs=!1}}}const Vu={groundY:172,ceilY:40,minX:64,maxX:136},F4=2.5,Y4=.45,Q4=.7,q4=.9,G4=12;function X4(){return{actionName:null,poseIdx:0,ticksLeft:0,loopsLeft:0,x:(Vu.minX+Vu.maxX)/2,y:Vu.groundY,vx:0,vy:0,facing:1,mode:"ground",wallSide:null,settleLeft:0}}const V4={happy:["Bouncing","Jumping"],cheer:["Bouncing","Jumping"],proud:["Bouncing"],stars:["Jumping","Bouncing"],flame:["Dash","Run"],thinking:["Stand"],sleeping:["Sprawl","Sit"],listening:["Stand"]},Ph=/sit|sprawl|lie|lay|sleep|nap|dangle|lookup/i,tr=/fall|throw|trip/i,gm=/drag|resist|pinch/i;function k4(c){const o=c.actions;if(!o.some(m=>m.slot)){const m=o.filter(E=>E.kind==="Stay"),v=o.filter(E=>E.kind==="Move");return{idle:[...m,...v],walk:v,rest:[...m,...v].filter(E=>Ph.test(E.name)),climb:[],ceiling:[],air:[],drag:[]}}const d=m=>o.filter(v=>v.slot===m),r=d("ground");return{idle:[...r.filter(m=>m.kind==="Stay"),...d("panel"),...d("mouse"),...d("tired")],walk:r.filter(m=>m.kind==="Move"),rest:r.filter(m=>Ph.test(m.name)),climb:d("wall"),ceiling:d("ceiling"),air:d("interact").filter(m=>tr.test(m.name)),drag:d("interact").filter(m=>gm.test(m.name))}}function Ha(c,o){var d;return Math.min(G4,((d=c==null?void 0:c.poses[o])==null?void 0:d.duration)??4)||1}function On(c,o){return c.actions.find(d=>d.name===o)??null}function de(c){return c[0]??null}function Uu(c,o){return c.actions.find(d=>o.test(d.name))??null}function tm(c,o,d,r){const v=(V4[d]??[]).map(_=>On(c,_)).find(Boolean);if(v)return v;const E=r();return E<.5&&o.idle.length?de(o.idle):E<.8&&o.walk.length?de(o.walk):o.rest.length?de(o.rest):o.idle.length?de(o.idle):c.actions[0]??null}function Lc(c,o,d){return{...c,actionName:(o==null?void 0:o.name)??c.actionName,poseIdx:0,ticksLeft:Ha(o,0),loopsLeft:(o==null?void 0:o.kind)==="Stay"?2:(o==null?void 0:o.kind)==="Move"?1:2,mode:d,vx:0,vy:0}}function Na(c,o){let{poseIdx:d,ticksLeft:r,loopsLeft:m}=c;return r-=1,r<=0&&(d+=1,d>=((o==null?void 0:o.poses.length)??0)&&(d=0,m-=1),r=Ha(o,d)),{poseIdx:d,ticksLeft:r,loopsLeft:m}}const _a=(c,o,d)=>Math.min(d,Math.max(o,c));function lm(c,o,d,r,m=Math.random,v){const E=k4(o),_=v?{...Vu,...v}:Vu;if(d.t==="grab"){const L=de(E.drag)??Uu(o,gm);return{...c,mode:"dragged",actionName:(L==null?void 0:L.name)??c.actionName,poseIdx:0,ticksLeft:Ha(L,0),loopsLeft:Number.POSITIVE_INFINITY}}if(d.t==="release"&&c.mode==="dragged"){if(d.speed>=F4){const O=de(E.air)??Uu(o,tr);return{...c,mode:"air",actionName:(O==null?void 0:O.name)??c.actionName,poseIdx:0,ticksLeft:Ha(O,0),loopsLeft:1,vx:c.facing*_a(d.speed*.8,1.2,3),vy:-_a(d.speed*.5,1.5,4)}}const L=de(E.idle);return{...Lc(c,L,"settle"),settleLeft:10,x:c.x,y:_a(c.y,_.ceilY,_.groundY),facing:c.facing}}switch(c.mode){case"dragged":{const L=On(o,c.actionName);return{...c,...Na(c,L)}}case"air":{const L=On(o,c.actionName),O=Na(c,L);let{x:A,y,vx:w,vy:U,facing:J}=c;if(U+=Y4,A=_a(A+w,_.minX,_.maxX),y+=U,(A===_.minX||A===_.maxX)&&(w=-w*.5),w>.1?J=1:w<-.1&&(J=-1),y>=_.groundY){const ut=Uu(o,/trip/i)??de(E.idle);return{...Lc({...c,...O,x:A,y:_.groundY,vx:w,vy:0,facing:J},ut,"settle"),settleLeft:12}}return{...c,...O,x:A,y,vx:w,vy:U,facing:J}}case"settle":{const L=On(o,c.actionName),O=Na(c,L),A=c.settleLeft-1;if(A<=0){const y=tm(o,E,r,m);return{...Lc(c,y,"ground"),x:c.x,y:_.groundY,facing:c.facing}}return{...c,...O,settleLeft:A}}case"wall":{const L=On(o,c.actionName),O=Na(c,L),A=c.wallSide===0?_.minX:_.maxX,y=c.wallSide===0?-1:1,w=Math.max(_.ceilY,c.y-Q4);if(w<=_.ceilY){const U=de(E.ceiling)??Uu(o,/ceil/i),J=(c.wallSide===0?1:-1)*q4;return{...c,...O,mode:"ceiling",actionName:(U==null?void 0:U.name)??c.actionName,poseIdx:0,ticksLeft:Ha(U,0),loopsLeft:2,x:A,y:_.ceilY,vx:J,vy:0,facing:J>0?1:-1,wallSide:null}}return{...c,...O,x:A,y:w,facing:y}}case"ceiling":{const L=On(o,c.actionName),O=Na(c,L),A=_a(c.x+c.vx,_.minX,_.maxX);if(A<=_.minX||A>=_.maxX){const y=de(E.air)??Uu(o,tr);return{...c,...O,mode:"air",actionName:(y==null?void 0:y.name)??c.actionName,poseIdx:0,ticksLeft:Ha(y,0),loopsLeft:1,vx:c.vx*.3,vy:.5}}return{...c,...O,x:A,facing:c.vx>=0?1:-1}}default:{const L=On(o,c.actionName);let{x:O,vx:A,facing:y}=c;if((L==null?void 0:L.kind)==="Move"){const U=L.poses[c.poseIdx];U&&U.velocity[0]!==0?(A=_a(U.velocity[0]*.6,-3,3),y=A>0?1:-1,O+=A,O<=_.minX?(O=_.minX,y=1,A=Math.abs(A)):O>=_.maxX&&(O=_.maxX,y=-1,A=-Math.abs(A))):A=0}const w=Na(c,L);if(L&&E.rest.some(U=>U.name===L.name)&&(O=O+(100-O)*.15,A=0),w.loopsLeft<=0){const U=tm(o,E,r,m);return{...Lc(c,U,"ground"),x:O,y:_.groundY,vx:A,facing:y}}return{...c,...w,x:O,vx:A,facing:y,y:_.groundY}}}}function K4({refs:c,theme:o,hide:d}){return i.jsx("g",{className:`cp-veh-mount${d?" cp-veh-hide":""}`,children:i.jsx(rm,{refs:c,theme:o})})}const J4=50;function $4({uid:c,refs:o,expression:d,energyRatio:r}){const m=zt.useSyncExternalStore(H4,U4),v=(m==null?void 0:m.manifest)??null,[E,_]=zt.useState(X4),L=zt.useRef(d);L.current=d;const O=zt.useRef(v);O.current=v;const A=zt.useRef(null),y=zt.useRef(!1);if(zt.useEffect(()=>{Z4()},[]),zt.useEffect(()=>{const Yt=Zt=>{const Rt=Zt.detail,lt=O.current;if(!lt)return;const F=Rt.on?{t:"grab"}:{t:"release",speed:Rt.speed??0};_(X=>lm(X,lt,F,L.current))};return window.addEventListener("companion-grab",Yt),()=>window.removeEventListener("companion-grab",Yt)},[]),zt.useEffect(()=>{if(!v)return;const Yt=()=>{var wt;const Rt=(wt=A.current)==null?void 0:wt.ownerSVGElement;if(!Rt)return null;const lt=Rt.getBoundingClientRect();if(lt.width<40||lt.height<40)return null;const F=document.querySelector('[data-testid="composer-card"], [data-testid="notebook-panel"]');if(!F)return null;const X=F.getBoundingClientRect();if(X.width<120||X.height<80)return null;const Mt=I=>(I-lt.left)/lt.width*200,$t=I=>(I-lt.top)/lt.height*192,St=(I,C,G)=>Math.min(G,Math.max(C,I)),Ut=St(Mt(X.left),40,100),ht=St(Mt(X.right),100,160);return ht-Ut<24?null:{minX:Ut,maxX:ht,ceilY:St($t(X.top),24,150)}},Zt=setInterval(()=>{var X,Mt;const Rt=((Mt=(X=A.current)==null?void 0:X.ownerSVGElement)==null?void 0:Mt.getAttribute("class"))??"",lt=/cp-pose-(typing|writing|flying)|cp-pose-point|cp-takeoff/.test(Rt);y.current=lt;const F=Yt();_($t=>{var wt;const St=lm($t,v,{t:"tick"},L.current,Math.random,F??void 0);if(!lt||St.mode!=="ground")return St;const Ut=v.actions.find(I=>I.name===St.actionName);return{...St,x:St.x+(100-St.x)*.25,actionName:(Ut==null?void 0:Ut.kind)==="Move"?((wt=v.actions.find(I=>I.kind==="Stay"))==null?void 0:wt.name)??St.actionName:St.actionName}})},J4);return()=>clearInterval(Zt)},[v]),!v||!m)return i.jsxs("g",{className:"cp-shimeji-empty","aria-label":"no shimeji pack",children:[i.jsx("rect",{x:"64",y:"120",width:"72",height:"72",rx:"10",fill:"none",stroke:"currentColor",strokeDasharray:"4 4",opacity:"0.4"}),i.jsx("text",{x:"100",y:"162",textAnchor:"middle",fontSize:"11",fill:"currentColor",opacity:"0.5",children:"Shimeji"})]});const w=v.actions.find(Yt=>Yt.name===E.actionName)??null,U=(w==null?void 0:w.poses[E.poseIdx])??null,J=U?B4(m.id,U.image):null,ut=(U==null?void 0:U.anchor[0])??64,K=(U==null?void 0:U.anchor[1])??128,dt=E.mode==="wall"||E.mode==="ceiling",ot=Ws[m.manifest.vehicle??"silver"];return i.jsxs("g",{ref:A,className:"cp-shimeji","data-testid":"shimeji-art","data-mode":E.mode,"data-action":E.actionName??"",children:[i.jsx("g",{className:`cp-veh-mount${dt?" cp-veh-hide":""}`,"data-testid":"shimeji-veh",children:i.jsx(sm,{uid:`${c}-shimeji-veh`,energyRatio:r,theme:ot})}),i.jsx("g",{ref:o.bot,"data-shimeji-body":!0,children:i.jsx("g",{transform:`translate(${E.x} ${E.y}) scale(${E.facing} 1)`,children:J?i.jsx("image",{href:J,x:-ut,y:-K,width:128,height:128,preserveAspectRatio:"xMidYMax meet"},`${U==null?void 0:U.image}:${c}`):i.jsx("rect",{x:-32,y:-32,width:64,height:32,rx:6,opacity:.25,fill:"currentColor"})})}),i.jsx(K4,{refs:o,theme:ot,hide:dt}),i.jsx("g",{ref:o.head}),i.jsx("g",{ref:o.eyes}),i.jsx("g",{ref:o.waves}),i.jsx("g",{ref:o.pupils}),r<.2?i.jsx("rect",{width:"0",height:"0","data-shimeji-low-energy":"1"}):null]})}const W4={ember:r4,frost:g4,moss:S4,astro:M4,ink:N4,custom:R4,shimeji:$4};function Jg({form:c,expression:o,pose:d,viseme:r="closed",openScale:m=0,energyRatio:v=0,streakLit:E=!1,size:_=96,interactive:L=!1,ariaLabel:O,testid:A,onPoke:y,onGrab:w,keySeq:U=0,keyFlash:J=!1,keySide:ut=1,screenKey:K=null,coreLit:dt=!1,noteTick:ot=!1,crownBadge:Yt=!1,haloBadge:Zt=!1}){const lt="cp"+zt.useId().replace(/[^a-zA-Z0-9]/g,""),F=f4(),X=nr(c),Mt={bot:zt.useRef(null),head:zt.useRef(null),armL:zt.useRef(null),armR:zt.useRef(null),eyes:zt.useRef(null),pupils:zt.useRef(null),waves:zt.useRef(null)},$t=Mt.bot;zt.useEffect(()=>{if(F||U<=0)return;const ht=ut===-1?Mt.armL.current:Mt.armR.current,wt=ut===-1?-44:44;ht==null||ht.animate([{transform:"rotate(0deg)"},{transform:`rotate(${wt}deg)`,offset:.38},{transform:"rotate(0deg)"}],{duration:185,easing:"cubic-bezier(0.2, 1.5, 0.4, 1)",composite:"add"});const I=Mt.bot.current;I&&(I.style.transformBox="fill-box",I.style.transformOrigin="50% 62%",I.animate([{transform:"translateY(0px) scale(1, 1)"},{transform:"translateY(2.5px) scale(1.045, 0.93)",offset:.42},{transform:"translateY(0px) scale(1, 1)"}],{duration:185,easing:"ease-out",composite:"add"}))},[U,ut,F]);const St=o==="listening";zt.useEffect(()=>{if(!St||F)return;let ht=0;const wt=()=>{const I=n4(),C=Mt.waves.current;C&&(C.style.opacity=I<=0?"0":"1",C.setAttribute("transform",`translate(174 72) scale(${(.55+.45*I).toFixed(3)}) translate(-174 -72)`)),ht=requestAnimationFrame(wt)};return ht=requestAnimationFrame(wt),()=>cancelAnimationFrame(ht)},[St,F]),zt.useEffect(()=>{if(F)return;let ht=0,wt,I={x:0,y:0},C={x:0,y:0},G=performance.now(),V=1,xt=performance.now()+4200;const st=()=>{const kt=Mt.eyes.current;kt&&(kt.style.transform="scaleY(0.14)",setTimeout(()=>{kt&&(kt.style.transform="")},120)),wt=setTimeout(st,2400+Math.random()*2600)};wt=setTimeout(st,1500+Math.random()*1500);const gl=kt=>{const x=$t.current;if(!x)return;const D=x.getBoundingClientRect();C=X5(kt.clientX,kt.clientY,D.left+D.width/2,D.top+D.height*.35,Math.max(140,D.width)),G=performance.now()};window.addEventListener("pointermove",gl,{passive:!0});const Ul=()=>{var D;const kt=performance.now();kt-G>4e3&&kt>=xt&&(C=V5(V++),xt=kt+2200+V%3*450),I={x:Gh(I.x,C.x,.1),y:Gh(I.y,C.y,.1)};const x=er(I.x,I.y);(D=Mt.pupils.current)==null||D.setAttribute("transform",`translate(${(x.x*5).toFixed(2)} ${(x.y*3).toFixed(2)})`),ht=requestAnimationFrame(Ul)};return ht=requestAnimationFrame(Ul),()=>{clearTimeout(wt),cancelAnimationFrame(ht),window.removeEventListener("pointermove",gl)}},[F]);const Ut=W4[X];return i.jsxs("svg",{viewBox:"0 0 200 200",className:`cp-mascot cp-form-${X} cp-pose-${d} cp-expr-${o}`,"data-testid":A,"data-form":X,style:{width:_,height:_,transition:"width 0.9s cubic-bezier(0.3, 1.3, 0.4, 1), height 0.9s cubic-bezier(0.3, 1.3, 0.4, 1)",...L?{touchAction:"none",cursor:w?"grab":"pointer"}:{}},...L?{role:"button","aria-label":O,onClick:y,...w?{onPointerDown:ht=>{ht.button===0&&w(ht.clientX,ht.clientY)}}:{}}:{"aria-hidden":!0},children:[i.jsx("defs",{children:i.jsx("clipPath",{id:`${lt}-keyclip`,children:i.jsx("circle",{cx:"100",cy:"135",r:"11.6"})})}),i.jsxs("g",{className:"cp-beacons","aria-hidden":"true",children:[i.jsx("circle",{cx:"52",cy:"86",r:"3",className:"cp-beacon-l"}),i.jsx("circle",{cx:"148",cy:"86",r:"3",className:"cp-beacon-r"})]}),i.jsxs("g",{className:"cp-thruster","aria-hidden":"true",children:[i.jsx("circle",{cx:"100",cy:"187",r:"5.2"}),i.jsx("circle",{cx:"91.5",cy:"198",r:"3.8"}),i.jsx("circle",{cx:"108.5",cy:"196.5",r:"3"})]}),Zt&&i.jsx("ellipse",{cx:"100",cy:"104",rx:"86",ry:"60",fill:"none",stroke:"#FFC800",strokeWidth:"2.5",opacity:"0.4",strokeDasharray:"10 7",className:"cp-halo"}),i.jsx(Ut,{uid:lt,refs:Mt,expression:o,viseme:r,openScale:m,energyRatio:v,streakLit:E}),dt&&i.jsx("circle",{cx:"100",cy:"135",r:"21",fill:"none",stroke:"#FFC800",strokeWidth:"3",className:"cp-core-lit","aria-hidden":"true"}),K&&i.jsxs("g",{"aria-hidden":"true",children:[i.jsx("g",{className:"cp-key-scope",clipPath:`url(#${lt}-keyclip)`,children:w5(U).map((ht,wt)=>i.jsx("rect",{x:86.8+wt*4.4,y:140-ht.h,width:"2.6",height:ht.h,rx:"1.1",className:"cp-scope-bar",style:{animationDelay:`${ht.d}ms`}},wt))}),i.jsx("text",{x:"100",y:"140",textAnchor:"middle",className:`cp-screen-key${J?" cp-screen-key-flash":""}`,children:K===" "?"␣":K.toUpperCase()})]},`k${U}`),St&&!K&&i.jsxs("g",{className:"cp-screen-wave","aria-hidden":"true",children:[i.jsx("rect",{x:"88.6",y:"130",width:"3.2",height:"10",rx:"1.6"}),i.jsx("rect",{x:"93.6",y:"127",width:"3.2",height:"16",rx:"1.6"}),i.jsx("rect",{x:"98.6",y:"125",width:"3.2",height:"20",rx:"1.6"}),i.jsx("rect",{x:"103.6",y:"127",width:"3.2",height:"16",rx:"1.6"}),i.jsx("rect",{x:"108.6",y:"130",width:"3.2",height:"10",rx:"1.6"})]}),d==="writing"&&i.jsxs("g",{className:"cp-writing","aria-hidden":"true",children:[i.jsxs("g",{transform:"rotate(-8 100 150)",children:[i.jsx("path",{d:"M78,140 L99,145 L99,166 L78,161 Z",fill:"#F7F3E8",stroke:"#2B2530",strokeWidth:"3",strokeLinejoin:"round"}),i.jsx("path",{d:"M120,140 L99,145 L99,166 L120,161 Z",fill:"#EFE8D8",stroke:"#2B2530",strokeWidth:"3",strokeLinejoin:"round"}),i.jsx("path",{d:"M83,146 L95,149 M83,151 L95,154 M83,156 L95,159",stroke:"#9AA7B8",strokeWidth:"1.6",strokeLinecap:"round"}),i.jsx("path",{d:"M115,146 L103,149 M115,151 L103,154",stroke:"#9AA7B8",strokeWidth:"1.6",strokeLinecap:"round"})]}),ot&&i.jsx("path",{className:"cp-note-tick",d:"M104,146 L108,152 L117,141",fill:"none",stroke:"#FFC800",strokeWidth:"4.5",strokeLinecap:"round",strokeLinejoin:"round"}),i.jsxs("g",{className:"cp-pen",transform:"rotate(24 100 128)",children:[i.jsx("rect",{x:"96",y:"106",width:"7",height:"26",rx:"2.5",fill:"#FFC568",stroke:"#2B2530",strokeWidth:"2.6"}),i.jsx("path",{d:"M96,132 L103,132 L99.5,141 Z",fill:"#F7F3E8",stroke:"#2B2530",strokeWidth:"2",strokeLinejoin:"round"}),i.jsx("path",{d:"M98.4,138.5 L100.6,138.5 L99.5,141 Z",fill:"#173047"}),i.jsx("rect",{x:"95",y:"101",width:"9",height:"6",rx:"2",fill:"#E8563F",stroke:"#2B2530",strokeWidth:"2.4"})]})]}),Yt&&i.jsx("g",{className:"cp-crown-badge","aria-hidden":"true",children:i.jsx("path",{d:"M84,26 L92,36 L100,24 L108,36 L116,26 L114,44 L86,44 Z",fill:"#FFC800",stroke:"#E8A400",strokeWidth:"2",strokeLinejoin:"round"})})]})}export{Lg as $,Hg as A,q5 as B,P5 as C,G5 as D,qh as E,Qh as F,Mg as G,Og as H,Fg as I,Ng as J,wg as K,Tg as L,Jg as M,zg as N,ag as O,ng as P,Yg as Q,jg as R,Zg as S,qg as T,_g as U,Kg as V,mg as W,Sg as X,cg as Y,gg as Z,ig as _,I4 as a,xg as a0,vg as a1,hg as a2,pg as a3,Gg as a4,Vg as a5,ug as a6,fg as a7,sg as a8,yg as a9,og as aa,rg as ab,eg as ac,Ag as ad,Bg as ae,tg as af,P4 as ag,Q5 as b,lg as c,dg as d,E5 as e,nr as f,em as g,Rg as h,Z5 as i,i as j,Ws as k,hm as l,Z4 as m,Eg as n,j5 as o,L5 as p,p5 as q,zt as r,bg as s,Qg as t,f4 as u,kg as v,Xg as w,Dg as x,Cg as y,Ug as z};
@@ -1,5 +1,5 @@
1
- import{o as M,l as b,j as k,m as g}from"./main-CSS_lFDP.js";import"./index-DpUqsNSC.js";function P(){return{enter:{mathFlow:t,mathFlowFenceMeta:u,mathText:c},exit:{mathFlow:e,mathFlowFence:i,mathFlowFenceMeta:o,mathFlowValue:m,mathText:s,mathTextData:m}};function t(r){const l={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[l]}},r)}function u(){this.buffer()}function o(){const r=this.resume(),l=this.stack[this.stack.length-1];M(l.type==="math"),l.meta=r}function i(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function e(r){const l=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),h=this.stack[this.stack.length-1];M(h.type==="math"),this.exit(r),h.value=l;const x=h.data.hChildren[0];M(x.type==="element"),M(x.tagName==="code"),x.children.push({type:"text",value:l}),this.data.mathFlowInside=void 0}function c(r){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},r),this.buffer()}function s(r){const l=this.resume(),h=this.stack[this.stack.length-1];M(h.type==="inlineMath"),this.exit(r),h.value=l,h.data.hChildren.push({type:"text",value:l})}function m(r){this.config.enter.data.call(this,r),this.config.exit.data.call(this,r)}}function D(t){let u=(t||{}).singleDollarTextMath;return u==null&&(u=!0),i.peek=e,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
1
+ import{t as M,v as b,w as k,x as g}from"./main-D7WqSbOt.js";import"./index-C8cLLejx.js";function P(){return{enter:{mathFlow:t,mathFlowFenceMeta:u,mathText:c},exit:{mathFlow:e,mathFlowFence:i,mathFlowFenceMeta:o,mathFlowValue:m,mathText:s,mathTextData:m}};function t(r){const l={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[l]}},r)}function u(){this.buffer()}function o(){const r=this.resume(),l=this.stack[this.stack.length-1];M(l.type==="math"),l.meta=r}function i(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function e(r){const l=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),h=this.stack[this.stack.length-1];M(h.type==="math"),this.exit(r),h.value=l;const x=h.data.hChildren[0];M(x.type==="element"),M(x.tagName==="code"),x.children.push({type:"text",value:l}),this.data.mathFlowInside=void 0}function c(r){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},r),this.buffer()}function s(r){const l=this.resume(),h=this.stack[this.stack.length-1];M(h.type==="inlineMath"),this.exit(r),h.value=l,h.data.hChildren.push({type:"text",value:l})}function m(r){this.config.enter.data.call(this,r),this.config.exit.data.call(this,r)}}function v(t){let u=(t||{}).singleDollarTextMath;return u==null&&(u=!0),i.peek=e,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
2
2
  `,inConstruct:"mathFlowMeta"},{character:"$",after:u?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:o,inlineMath:i}};function o(c,s,m,r){const l=c.value||"",h=m.createTracker(r),x="$".repeat(Math.max(b(l,"$")+1,2)),w=m.enter("mathFlow");let p=h.move(x);if(c.meta){const F=m.enter("mathFlowMeta");p+=h.move(m.safe(c.meta,{after:`
3
3
  `,before:p,encode:["$"],...h.current()})),F()}return p+=h.move(`
4
4
  `),l&&(p+=h.move(l+`
5
- `)),p+=h.move(x),w(),p}function i(c,s,m){let r=c.value||"",l=1;for(u||l++;new RegExp("(^|[^$])"+"\\$".repeat(l)+"([^$]|$)").test(r);)l++;const h="$".repeat(l);/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^\$|\$$/.test(r))&&(r=" "+r+" ");let x=-1;for(;++x<m.unsafe.length;){const w=m.unsafe[x];if(!w.atBreak)continue;const p=m.compilePattern(w);let F;for(;F=p.exec(r);){let a=F.index;r.codePointAt(a)===10&&r.codePointAt(a-1)===13&&a--,r=r.slice(0,a)+" "+r.slice(F.index+1)}}return h+r+h}function e(){return"$"}}const v={tokenize:N,concrete:!0,name:"mathFlow"},z={tokenize:I,partial:!0};function N(t,u,o){const i=this,e=i.events[i.events.length-1],c=e&&e[1].type==="linePrefix"?e[2].sliceSerialize(e[1],!0).length:0;let s=0;return m;function m(n){return t.enter("mathFlow"),t.enter("mathFlowFence"),t.enter("mathFlowFenceSequence"),r(n)}function r(n){return n===36?(t.consume(n),s++,r):s<2?o(n):(t.exit("mathFlowFenceSequence"),k(t,l,"whitespace")(n))}function l(n){return n===null||g(n)?x(n):(t.enter("mathFlowFenceMeta"),t.enter("chunkString",{contentType:"string"}),h(n))}function h(n){return n===null||g(n)?(t.exit("chunkString"),t.exit("mathFlowFenceMeta"),x(n)):n===36?o(n):(t.consume(n),h)}function x(n){return t.exit("mathFlowFence"),i.interrupt?u(n):t.attempt(z,w,f)(n)}function w(n){return t.attempt({tokenize:C,partial:!0},f,p)(n)}function p(n){return(c?k(t,F,"linePrefix",c+1):F)(n)}function F(n){return n===null?f(n):g(n)?t.attempt(z,w,f)(n):(t.enter("mathFlowValue"),a(n))}function a(n){return n===null||g(n)?(t.exit("mathFlowValue"),F(n)):(t.consume(n),a)}function f(n){return t.exit("mathFlow"),u(n)}function C(n,$,y){let T=0;return k(n,S,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function S(d){return n.enter("mathFlowFence"),n.enter("mathFlowFenceSequence"),E(d)}function E(d){return d===36?(T++,n.consume(d),E):T<s?y(d):(n.exit("mathFlowFenceSequence"),k(n,q,"whitespace")(d))}function q(d){return d===null||g(d)?(n.exit("mathFlowFence"),$(d)):y(d)}}}function I(t,u,o){const i=this;return e;function e(s){return s===null?u(s):(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),c)}function c(s){return i.parser.lazy[i.now().line]?o(s):u(s)}}function O(t){let o=(t||{}).singleDollarTextMath;return o==null&&(o=!0),{tokenize:i,resolve:L,previous:_,name:"mathText"};function i(e,c,s){let m=0,r,l;return h;function h(a){return e.enter("mathText"),e.enter("mathTextSequence"),x(a)}function x(a){return a===36?(e.consume(a),m++,x):m<2&&!o?s(a):(e.exit("mathTextSequence"),w(a))}function w(a){return a===null?s(a):a===36?(l=e.enter("mathTextSequence"),r=0,F(a)):a===32?(e.enter("space"),e.consume(a),e.exit("space"),w):g(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),w):(e.enter("mathTextData"),p(a))}function p(a){return a===null||a===32||a===36||g(a)?(e.exit("mathTextData"),w(a)):(e.consume(a),p)}function F(a){return a===36?(e.consume(a),r++,F):r===m?(e.exit("mathTextSequence"),e.exit("mathText"),c(a)):(l.type="mathTextData",p(a))}}}function L(t){let u=t.length-4,o=3,i,e;if((t[o][1].type==="lineEnding"||t[o][1].type==="space")&&(t[u][1].type==="lineEnding"||t[u][1].type==="space")){for(i=o;++i<u;)if(t[i][1].type==="mathTextData"){t[u][1].type="mathTextPadding",t[o][1].type="mathTextPadding",o+=2,u-=2;break}}for(i=o-1,u++;++i<=u;)e===void 0?i!==u&&t[i][1].type!=="lineEnding"&&(e=i):(i===u||t[i][1].type==="lineEnding")&&(t[e][1].type="mathTextData",i!==e+2&&(t[e][1].end=t[i-1][1].end,t.splice(e+2,i-e-2),u-=i-e-2,i=e+2),e=void 0);return t}function _(t){return t!==36||this.events[this.events.length-1][1].type==="characterEscape"}function A(t){return{flow:{36:v},text:{36:O(t)}}}const B={};function R(t){const u=this,o=t||B,i=u.data(),e=i.micromarkExtensions||(i.micromarkExtensions=[]),c=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),s=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);e.push(A(o)),c.push(P()),s.push(D(o))}export{R as default};
5
+ `)),p+=h.move(x),w(),p}function i(c,s,m){let r=c.value||"",l=1;for(u||l++;new RegExp("(^|[^$])"+"\\$".repeat(l)+"([^$]|$)").test(r);)l++;const h="$".repeat(l);/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^\$|\$$/.test(r))&&(r=" "+r+" ");let x=-1;for(;++x<m.unsafe.length;){const w=m.unsafe[x];if(!w.atBreak)continue;const p=m.compilePattern(w);let F;for(;F=p.exec(r);){let a=F.index;r.codePointAt(a)===10&&r.codePointAt(a-1)===13&&a--,r=r.slice(0,a)+" "+r.slice(F.index+1)}}return h+r+h}function e(){return"$"}}const D={tokenize:N,concrete:!0,name:"mathFlow"},z={tokenize:I,partial:!0};function N(t,u,o){const i=this,e=i.events[i.events.length-1],c=e&&e[1].type==="linePrefix"?e[2].sliceSerialize(e[1],!0).length:0;let s=0;return m;function m(n){return t.enter("mathFlow"),t.enter("mathFlowFence"),t.enter("mathFlowFenceSequence"),r(n)}function r(n){return n===36?(t.consume(n),s++,r):s<2?o(n):(t.exit("mathFlowFenceSequence"),k(t,l,"whitespace")(n))}function l(n){return n===null||g(n)?x(n):(t.enter("mathFlowFenceMeta"),t.enter("chunkString",{contentType:"string"}),h(n))}function h(n){return n===null||g(n)?(t.exit("chunkString"),t.exit("mathFlowFenceMeta"),x(n)):n===36?o(n):(t.consume(n),h)}function x(n){return t.exit("mathFlowFence"),i.interrupt?u(n):t.attempt(z,w,f)(n)}function w(n){return t.attempt({tokenize:C,partial:!0},f,p)(n)}function p(n){return(c?k(t,F,"linePrefix",c+1):F)(n)}function F(n){return n===null?f(n):g(n)?t.attempt(z,w,f)(n):(t.enter("mathFlowValue"),a(n))}function a(n){return n===null||g(n)?(t.exit("mathFlowValue"),F(n)):(t.consume(n),a)}function f(n){return t.exit("mathFlow"),u(n)}function C(n,$,y){let T=0;return k(n,S,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function S(d){return n.enter("mathFlowFence"),n.enter("mathFlowFenceSequence"),E(d)}function E(d){return d===36?(T++,n.consume(d),E):T<s?y(d):(n.exit("mathFlowFenceSequence"),k(n,q,"whitespace")(d))}function q(d){return d===null||g(d)?(n.exit("mathFlowFence"),$(d)):y(d)}}}function I(t,u,o){const i=this;return e;function e(s){return s===null?u(s):(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),c)}function c(s){return i.parser.lazy[i.now().line]?o(s):u(s)}}function O(t){let o=(t||{}).singleDollarTextMath;return o==null&&(o=!0),{tokenize:i,resolve:L,previous:_,name:"mathText"};function i(e,c,s){let m=0,r,l;return h;function h(a){return e.enter("mathText"),e.enter("mathTextSequence"),x(a)}function x(a){return a===36?(e.consume(a),m++,x):m<2&&!o?s(a):(e.exit("mathTextSequence"),w(a))}function w(a){return a===null?s(a):a===36?(l=e.enter("mathTextSequence"),r=0,F(a)):a===32?(e.enter("space"),e.consume(a),e.exit("space"),w):g(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),w):(e.enter("mathTextData"),p(a))}function p(a){return a===null||a===32||a===36||g(a)?(e.exit("mathTextData"),w(a)):(e.consume(a),p)}function F(a){return a===36?(e.consume(a),r++,F):r===m?(e.exit("mathTextSequence"),e.exit("mathText"),c(a)):(l.type="mathTextData",p(a))}}}function L(t){let u=t.length-4,o=3,i,e;if((t[o][1].type==="lineEnding"||t[o][1].type==="space")&&(t[u][1].type==="lineEnding"||t[u][1].type==="space")){for(i=o;++i<u;)if(t[i][1].type==="mathTextData"){t[u][1].type="mathTextPadding",t[o][1].type="mathTextPadding",o+=2,u-=2;break}}for(i=o-1,u++;++i<=u;)e===void 0?i!==u&&t[i][1].type!=="lineEnding"&&(e=i):(i===u||t[i][1].type==="lineEnding")&&(t[e][1].type="mathTextData",i!==e+2&&(t[e][1].end=t[i-1][1].end,t.splice(e+2,i-e-2),u-=i-e-2,i=e+2),e=void 0);return t}function _(t){return t!==36||this.events[this.events.length-1][1].type==="characterEscape"}function A(t){return{flow:{36:D},text:{36:O(t)}}}const B={};function j(t){const u=this,o=t||B,i=u.data(),e=i.micromarkExtensions||(i.micromarkExtensions=[]),c=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),s=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);e.push(A(o)),c.push(P()),s.push(v(o))}export{j as default};
@@ -1,2 +1,2 @@
1
- import{_ as e,l as s,F as n,d as i}from"./mermaid.core-BEhN9Nie.js";import{p}from"./cynefin-OW5HDTMX-D6ZQlGMQ.js";import"./main-CSS_lFDP.js";import"./index-DpUqsNSC.js";import"./transform-Bd_a5eGM.js";var g={parse:e(async r=>{const a=await p("info",r);s.debug(a)},"parse")},d={version:"11.17.2"},v=e(()=>d.version,"getVersion"),m={getVersion:v},c=e((r,a,o)=>{s.debug(`rendering info diagram
1
+ import{_ as e,l as s,F as n,d as i}from"./mermaid.core-C-NqYAhX.js";import{p}from"./cynefin-OW5HDTMX-DeRfvx8D.js";import"./main-D7WqSbOt.js";import"./index-C8cLLejx.js";import"./transform-Bd_a5eGM.js";var g={parse:e(async r=>{const a=await p("info",r);s.debug(a)},"parse")},d={version:"11.17.2"},v=e(()=>d.version,"getVersion"),m={getVersion:v},c=e((r,a,o)=>{s.debug(`rendering info diagram
2
2
  `+r);const t=n(a);i(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${o}`)},"draw"),l={draw:c},y={parser:g,db:m,renderer:l};export{y as diagram};
@@ -1,2 +1,2 @@
1
- import{p as i}from"./cynefin-OW5HDTMX-GVF3BKWE-Dnl8JJFM.js";import{_ as e,l as o,G as n,d as p}from"./render-O7CIS3YK-CFk-qve4.js";import"./main-CSS_lFDP.js";import"./index-DpUqsNSC.js";import"./mermaid-layout-elk.core-D9OOh4D_.js";import"./transform-Bd_a5eGM.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";var g={parse:e(async r=>{const a=await i("info",r);o.debug(a)},"parse")},d={version:"11.17.0"},m=e(()=>d.version,"getVersion"),v={getVersion:m},c=e((r,a,s)=>{o.debug(`rendering info diagram
1
+ import{p as i}from"./cynefin-OW5HDTMX-GVF3BKWE-WBE1vO13.js";import{_ as e,l as o,G as n,d as p}from"./render-O7CIS3YK-C1LKCRfk.js";import"./main-D7WqSbOt.js";import"./index-C8cLLejx.js";import"./mermaid-layout-elk.core-DTUF3xdW.js";import"./transform-Bd_a5eGM.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";var g={parse:e(async r=>{const a=await i("info",r);o.debug(a)},"parse")},d={version:"11.17.0"},m=e(()=>d.version,"getVersion"),v={getVersion:m},c=e((r,a,s)=>{o.debug(`rendering info diagram
2
2
  `+r);const t=n(a);p(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${s}`)},"draw"),l={draw:c},z={parser:g,db:v,renderer:l};export{z as diagram};
@@ -1,4 +1,4 @@
1
- import{_ as o,c as ht,H as dt,G as yt,aI as pt,p as ft,i as gt,n as st,a as kt,b as mt,g as wt,s as _t,o as xt,d as bt}from"./render-O7CIS3YK-CFk-qve4.js";import{_ as $}from"./mermaid-layout-elk.core-D9OOh4D_.js";import"./main-CSS_lFDP.js";import"./index-DpUqsNSC.js";import"./transform-Bd_a5eGM.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";var et=(function(){var e=o(function(P,t,s,i){for(s=s||{},i=P.length;i--;s[P[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],p=[1,20],d=[1,18],m=[1,19],c=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],b=[1,6,7,11,13,14],D={trace:o($(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o($(function(t,s,i,u,f,n,v){var w=n.length-1;switch(f){case 6:case 7:return u;case 15:u.addNode(n[w-1].length,n[w].trim());break;case 16:u.addNode(0,n[w].trim());break}},"anonymous"),"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:p,7:d,10:17,11:m},e(c,[2,18],{14:[1,21]}),e(c,[2,16]),e(c,[2,17]),{6:p,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(b,[2,8]),e(b,[2,9]),e(b,[2,10]),e(c,[2,15]),e(k,[2,13],{7:g,11:_}),e(b,[2,11]),e(b,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o($(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),"parseError"),parse:o($(function(t){var s=this,i=[0],u=[],f=[null],n=[],v=this.table,w="",L=0,E=0,T=2,I=1,V=n.slice.call(arguments,1),x=Object.create(this.lexer),R={yy:{}};for(var G in this.yy)Object.prototype.hasOwnProperty.call(this.yy,G)&&(R.yy[G]=this.yy[G]);x.setInput(t,R.yy),R.yy.lexer=x,R.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var M=x.yylloc;n.push(M);var O=x.options&&x.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(B){i.length=i.length-2*B,f.length=f.length-B,n.length=n.length-B}$(z,"popStack"),o(z,"popStack");function F(){var B;return B=u.pop()||x.lex()||I,typeof B!="number"&&(B instanceof Array&&(u=B,B=u.pop()),B=s.symbols_[B]||B),B}$(F,"lex"),o(F,"lex");for(var A,j,N,Q,U={},Y,W,it,K;;){if(j=i[i.length-1],this.defaultActions[j]?N=this.defaultActions[j]:((A===null||typeof A>"u")&&(A=F()),N=v[j]&&v[j][A]),typeof N>"u"||!N.length||!N[0]){var J="";K=[];for(Y in v[j])this.terminals_[Y]&&Y>T&&K.push("'"+this.terminals_[Y]+"'");x.showPosition?J="Parse error on line "+(L+1)+`:
1
+ import{_ as o,c as ht,H as dt,G as yt,aI as pt,p as ft,i as gt,n as st,a as kt,b as mt,g as wt,s as _t,o as xt,d as bt}from"./render-O7CIS3YK-C1LKCRfk.js";import{_ as $}from"./mermaid-layout-elk.core-DTUF3xdW.js";import"./main-D7WqSbOt.js";import"./index-C8cLLejx.js";import"./transform-Bd_a5eGM.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";var et=(function(){var e=o(function(P,t,s,i){for(s=s||{},i=P.length;i--;s[P[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],p=[1,20],d=[1,18],m=[1,19],c=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],b=[1,6,7,11,13,14],D={trace:o($(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o($(function(t,s,i,u,f,n,v){var w=n.length-1;switch(f){case 6:case 7:return u;case 15:u.addNode(n[w-1].length,n[w].trim());break;case 16:u.addNode(0,n[w].trim());break}},"anonymous"),"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:p,7:d,10:17,11:m},e(c,[2,18],{14:[1,21]}),e(c,[2,16]),e(c,[2,17]),{6:p,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(b,[2,8]),e(b,[2,9]),e(b,[2,10]),e(c,[2,15]),e(k,[2,13],{7:g,11:_}),e(b,[2,11]),e(b,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o($(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),"parseError"),parse:o($(function(t){var s=this,i=[0],u=[],f=[null],n=[],v=this.table,w="",L=0,E=0,T=2,I=1,V=n.slice.call(arguments,1),x=Object.create(this.lexer),R={yy:{}};for(var G in this.yy)Object.prototype.hasOwnProperty.call(this.yy,G)&&(R.yy[G]=this.yy[G]);x.setInput(t,R.yy),R.yy.lexer=x,R.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var M=x.yylloc;n.push(M);var O=x.options&&x.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(B){i.length=i.length-2*B,f.length=f.length-B,n.length=n.length-B}$(z,"popStack"),o(z,"popStack");function F(){var B;return B=u.pop()||x.lex()||I,typeof B!="number"&&(B instanceof Array&&(u=B,B=u.pop()),B=s.symbols_[B]||B),B}$(F,"lex"),o(F,"lex");for(var A,j,N,Q,U={},Y,W,it,K;;){if(j=i[i.length-1],this.defaultActions[j]?N=this.defaultActions[j]:((A===null||typeof A>"u")&&(A=F()),N=v[j]&&v[j][A]),typeof N>"u"||!N.length||!N[0]){var J="";K=[];for(Y in v[j])this.terminals_[Y]&&Y>T&&K.push("'"+this.terminals_[Y]+"'");x.showPosition?J="Parse error on line "+(L+1)+`:
2
2
  `+x.showPosition()+`
3
3
  Expecting `+K.join(", ")+", got '"+(this.terminals_[A]||A)+"'":J="Parse error on line "+(L+1)+": Unexpected "+(A==I?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(J,{text:x.match,token:this.terminals_[A]||A,line:x.yylineno,loc:M,expected:K})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+j+", token: "+A);switch(N[0]){case 1:i.push(A),f.push(x.yytext),n.push(x.yylloc),i.push(N[1]),A=null,E=x.yyleng,w=x.yytext,L=x.yylineno,M=x.yylloc;break;case 2:if(W=this.productions_[N[1]][1],U.$=f[f.length-W],U._$={first_line:n[n.length-(W||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(W||1)].first_column,last_column:n[n.length-1].last_column},O&&(U._$.range=[n[n.length-(W||1)].range[0],n[n.length-1].range[1]]),Q=this.performAction.apply(U,[w,E,L,R.yy,N[1],f,n].concat(V)),typeof Q<"u")return Q;W&&(i=i.slice(0,-1*W*2),f=f.slice(0,-1*W),n=n.slice(0,-1*W)),i.push(this.productions_[N[1]][0]),f.push(U.$),n.push(U._$),it=v[i[i.length-2]][i[i.length-1]],i.push(it);break;case 3:return!0}}return!0},"parse"),"parse")},C=(function(){var P={EOF:1,parseError:o($(function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},"parseError"),"parseError"),setInput:o(function(t,s){return this.yy=s||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var s=t.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:o(function(t){var s=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===u.length?this.yylloc.first_column:0)+u[u.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(t){this.unput(this.match.slice(t))},"less"),pastInput:o(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{_ as o,c as ot,G as ut,F as dt,a6 as yt,q as ft,j as pt,o as it,a as gt,b as kt,g as mt,s as wt,p as _t,d as bt}from"./mermaid.core-BEhN9Nie.js";import"./main-CSS_lFDP.js";import"./index-DpUqsNSC.js";import"./transform-Bd_a5eGM.js";var tt=(function(){var e=o(function(M,t,s,i){for(s=s||{},i=M.length;i--;s[M[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],f=[1,20],d=[1,18],m=[1,19],c=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],N={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o(function(t,s,i,u,p,n,v){var w=n.length-1;switch(p){case 6:case 7:return u;case 15:u.addNode(n[w-1].length,n[w].trim());break;case 16:u.addNode(0,n[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:f,7:d,10:17,11:m},e(c,[2,18],{14:[1,21]}),e(c,[2,16]),e(c,[2,17]),{6:f,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(c,[2,15]),e(k,[2,13],{7:g,11:_}),e(x,[2,11]),e(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:o(function(t){var s=this,i=[0],u=[],p=[null],n=[],v=this.table,w="",I=0,S=0,L=2,E=1,R=n.slice.call(arguments,1),b=Object.create(this.lexer),C={yy:{}};for(var W in this.yy)Object.prototype.hasOwnProperty.call(this.yy,W)&&(C.yy[W]=this.yy[W]);b.setInput(t,C.yy),C.yy.lexer=b,C.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var T=b.yylloc;n.push(T);var D=b.options&&b.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function j(P){i.length=i.length-2*P,p.length=p.length-P,n.length=n.length-P}o(j,"popStack");function z(){var P;return P=u.pop()||b.lex()||E,typeof P!="number"&&(P instanceof Array&&(u=P,P=u.pop()),P=s.symbols_[P]||P),P}o(z,"lex");for(var A,F,B,K,H={},X,V,et,Y;;){if(F=i[i.length-1],this.defaultActions[F]?B=this.defaultActions[F]:((A===null||typeof A>"u")&&(A=z()),B=v[F]&&v[F][A]),typeof B>"u"||!B.length||!B[0]){var Q="";Y=[];for(X in v[F])this.terminals_[X]&&X>L&&Y.push("'"+this.terminals_[X]+"'");b.showPosition?Q="Parse error on line "+(I+1)+`:
1
+ import{_ as o,c as ot,G as ut,F as dt,a6 as yt,q as ft,j as pt,o as it,a as gt,b as kt,g as mt,s as wt,p as _t,d as bt}from"./mermaid.core-C-NqYAhX.js";import"./main-D7WqSbOt.js";import"./index-C8cLLejx.js";import"./transform-Bd_a5eGM.js";var tt=(function(){var e=o(function(M,t,s,i){for(s=s||{},i=M.length;i--;s[M[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],f=[1,20],d=[1,18],m=[1,19],c=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],N={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o(function(t,s,i,u,p,n,v){var w=n.length-1;switch(p){case 6:case 7:return u;case 15:u.addNode(n[w-1].length,n[w].trim());break;case 16:u.addNode(0,n[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:f,7:d,10:17,11:m},e(c,[2,18],{14:[1,21]}),e(c,[2,16]),e(c,[2,17]),{6:f,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(c,[2,15]),e(k,[2,13],{7:g,11:_}),e(x,[2,11]),e(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:o(function(t){var s=this,i=[0],u=[],p=[null],n=[],v=this.table,w="",I=0,S=0,L=2,E=1,R=n.slice.call(arguments,1),b=Object.create(this.lexer),C={yy:{}};for(var W in this.yy)Object.prototype.hasOwnProperty.call(this.yy,W)&&(C.yy[W]=this.yy[W]);b.setInput(t,C.yy),C.yy.lexer=b,C.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var T=b.yylloc;n.push(T);var D=b.options&&b.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function j(P){i.length=i.length-2*P,p.length=p.length-P,n.length=n.length-P}o(j,"popStack");function z(){var P;return P=u.pop()||b.lex()||E,typeof P!="number"&&(P instanceof Array&&(u=P,P=u.pop()),P=s.symbols_[P]||P),P}o(z,"lex");for(var A,F,B,K,H={},X,V,et,Y;;){if(F=i[i.length-1],this.defaultActions[F]?B=this.defaultActions[F]:((A===null||typeof A>"u")&&(A=z()),B=v[F]&&v[F][A]),typeof B>"u"||!B.length||!B[0]){var Q="";Y=[];for(X in v[F])this.terminals_[X]&&X>L&&Y.push("'"+this.terminals_[X]+"'");b.showPosition?Q="Parse error on line "+(I+1)+`:
2
2
  `+b.showPosition()+`
3
3
  Expecting `+Y.join(", ")+", got '"+(this.terminals_[A]||A)+"'":Q="Parse error on line "+(I+1)+": Unexpected "+(A==E?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(Q,{text:b.match,token:this.terminals_[A]||A,line:b.yylineno,loc:T,expected:Y})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+F+", token: "+A);switch(B[0]){case 1:i.push(A),p.push(b.yytext),n.push(b.yylloc),i.push(B[1]),A=null,S=b.yyleng,w=b.yytext,I=b.yylineno,T=b.yylloc;break;case 2:if(V=this.productions_[B[1]][1],H.$=p[p.length-V],H._$={first_line:n[n.length-(V||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(V||1)].first_column,last_column:n[n.length-1].last_column},D&&(H._$.range=[n[n.length-(V||1)].range[0],n[n.length-1].range[1]]),K=this.performAction.apply(H,[w,S,I,C.yy,B[1],p,n].concat(R)),typeof K<"u")return K;V&&(i=i.slice(0,-1*V*2),p=p.slice(0,-1*V),n=n.slice(0,-1*V)),i.push(this.productions_[B[1]][0]),p.push(H.$),n.push(H._$),et=v[i[i.length-2]][i[i.length-1]],i.push(et);break;case 3:return!0}}return!0},"parse")},O=(function(){var M={EOF:1,parseError:o(function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},"parseError"),setInput:o(function(t,s){return this.yy=s||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var s=t.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:o(function(t){var s=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===u.length?this.yylloc.first_column:0)+u[u.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(t){this.unput(this.match.slice(t))},"less"),pastInput:o(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{g as gt}from"./chunk-5VM5RSS4-C2nhzqYi.js";import{a as mt,b as lt,h as xt,d as kt}from"./chunk-F27PBJKO-LQpoAT6J.js";import{g as _t,s as vt,a as bt,b as wt,p as Tt,o as St,_ as s,c as R,d as $t,q as Mt}from"./mermaid.core-BEhN9Nie.js";import{s as X}from"./transform-Bd_a5eGM.js";import{d as it}from"./arc-D2ssjz3E.js";import"./main-CSS_lFDP.js";import"./index-DpUqsNSC.js";var U=(function(){var t=s(function(h,r,n,l){for(n=n||{},l=h.length;l--;n[h[l]]=r);return n},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],g={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(function(r,n,l,y,d,c,v){var k=c.length-1;switch(d){case 1:return c[k-1];case 2:this.$=[];break;case 3:c[k-1].push(c[k]),this.$=c[k-1];break;case 4:case 5:this.$=c[k];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[k].substr(6)),this.$=c[k].substr(6);break;case 9:this.$=c[k].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[k].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[k].substr(8)),this.$=c[k].substr(8);break;case 13:y.addTask(c[k-1],c[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:s(function(r,n){if(n.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=n,l}},"parseError"),parse:s(function(r){var n=this,l=[0],y=[],d=[null],c=[],v=this.table,k="",C=0,Q=0,yt=2,D=1,dt=c.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(r,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;c.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}s(pt,"popStack");function tt(){var w;return w=y.pop()||_.lex()||D,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=n.symbols_[w]||w),w}s(tt,"lex");for(var b,A,T,q,F={},N,M,et,z;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((b===null||typeof b>"u")&&(b=tt()),T=v[A]&&v[A][b]),typeof T>"u"||!T.length||!T[0]){var H="";z=[];for(N in v[A])this.terminals_[N]&&N>yt&&z.push("'"+this.terminals_[N]+"'");_.showPosition?H="Parse error on line "+(C+1)+`:
1
+ import{g as gt}from"./chunk-5VM5RSS4-DgMwQtQx.js";import{a as mt,b as lt,h as xt,d as kt}from"./chunk-F27PBJKO-AboV3MjF.js";import{g as _t,s as vt,a as bt,b as wt,p as Tt,o as St,_ as s,c as R,d as $t,q as Mt}from"./mermaid.core-C-NqYAhX.js";import{s as X}from"./transform-Bd_a5eGM.js";import{d as it}from"./arc-D2ssjz3E.js";import"./main-D7WqSbOt.js";import"./index-C8cLLejx.js";var U=(function(){var t=s(function(h,r,n,l){for(n=n||{},l=h.length;l--;n[h[l]]=r);return n},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],g={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(function(r,n,l,y,d,c,v){var k=c.length-1;switch(d){case 1:return c[k-1];case 2:this.$=[];break;case 3:c[k-1].push(c[k]),this.$=c[k-1];break;case 4:case 5:this.$=c[k];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[k].substr(6)),this.$=c[k].substr(6);break;case 9:this.$=c[k].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[k].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[k].substr(8)),this.$=c[k].substr(8);break;case 13:y.addTask(c[k-1],c[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:s(function(r,n){if(n.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=n,l}},"parseError"),parse:s(function(r){var n=this,l=[0],y=[],d=[null],c=[],v=this.table,k="",C=0,Q=0,yt=2,D=1,dt=c.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(r,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;c.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}s(pt,"popStack");function tt(){var w;return w=y.pop()||_.lex()||D,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=n.symbols_[w]||w),w}s(tt,"lex");for(var b,A,T,q,F={},N,M,et,z;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((b===null||typeof b>"u")&&(b=tt()),T=v[A]&&v[A][b]),typeof T>"u"||!T.length||!T[0]){var H="";z=[];for(N in v[A])this.terminals_[N]&&N>yt&&z.push("'"+this.terminals_[N]+"'");_.showPosition?H="Parse error on line "+(C+1)+`:
2
2
  `+_.showPosition()+`
3
3
  Expecting `+z.join(", ")+", got '"+(this.terminals_[b]||b)+"'":H="Parse error on line "+(C+1)+": Unexpected "+(b==D?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(H,{text:_.match,token:this.terminals_[b]||b,line:_.yylineno,loc:Y,expected:z})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+b);switch(T[0]){case 1:l.push(b),d.push(_.yytext),c.push(_.yylloc),l.push(T[1]),b=null,Q=_.yyleng,k=_.yytext,C=_.yylineno,Y=_.yylloc;break;case 2:if(M=this.productions_[T[1]][1],F.$=d[d.length-M],F._$={first_line:c[c.length-(M||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(M||1)].first_column,last_column:c[c.length-1].last_column},ft&&(F._$.range=[c[c.length-(M||1)].range[0],c[c.length-1].range[1]]),q=this.performAction.apply(F,[k,Q,C,I.yy,T[1],d,c].concat(dt)),typeof q<"u")return q;M&&(l=l.slice(0,-1*M*2),d=d.slice(0,-1*M),c=c.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),d.push(F.$),c.push(F._$),et=v[l[l.length-2]][l[l.length-1]],l.push(et);break;case 3:return!0}}return!0},"parse")},m=(function(){var h={EOF:1,parseError:s(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),setInput:s(function(r,n){return this.yy=n||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:s(function(r){var n=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(r){this.unput(this.match.slice(r))},"less"),pastInput:s(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{g as mt}from"./chunk-CXNFBKHE-BC4UXdAm.js";import{a as xt,b as ht,h as kt,d as _t}from"./chunk-LV3HUYFY-CIjD4C-e.js";import{_ as k}from"./mermaid-layout-elk.core-D9OOh4D_.js";import{g as bt,s as vt,a as wt,b as Tt,o as St,n as $t,_ as s,c as L,d as Mt,p as Et}from"./render-O7CIS3YK-CFk-qve4.js";import{s as U}from"./transform-Bd_a5eGM.js";import{d as st}from"./arc-D2ssjz3E.js";import"./main-CSS_lFDP.js";import"./index-DpUqsNSC.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";var J=(function(){var t=s(function(h,i,n,l){for(n=n||{},l=h.length;l--;n[h[l]]=i);return n},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],p=[1,10],r=[1,11],u=[1,12],f=[1,13],o=[1,14],g={trace:s(k(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(k(function(i,n,l,y,d,c,v){var _=c.length-1;switch(d){case 1:return c[_-1];case 2:this.$=[];break;case 3:c[_-1].push(c[_]),this.$=c[_-1];break;case 4:case 5:this.$=c[_];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[_].substr(6)),this.$=c[_].substr(6);break;case 9:this.$=c[_].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[_].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[_].substr(8)),this.$=c[_].substr(8);break;case 13:y.addTask(c[_-1],c[_]),this.$="task";break}},"anonymous"),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:p,14:r,16:u,17:f,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:p,14:r,16:u,17:f,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:s(k(function(i,n){if(n.recoverable)this.trace(i);else{var l=new Error(i);throw l.hash=n,l}},"parseError"),"parseError"),parse:s(k(function(i){var n=this,l=[0],y=[],d=[null],c=[],v=this.table,_="",P=0,et=0,pt=2,rt=1,ft=c.slice.call(arguments,1),b=Object.create(this.lexer),A={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(A.yy[Y]=this.yy[Y]);b.setInput(i,A.yy),A.yy.lexer=b,A.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;c.push(q);var gt=b.options&&b.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function it(T){l.length=l.length-2*T,d.length=d.length-T,c.length=c.length-T}k(it,"popStack"),s(it,"popStack");function H(){var T;return T=y.pop()||b.lex()||rt,typeof T!="number"&&(T instanceof Array&&(y=T,T=y.pop()),T=n.symbols_[T]||T),T}k(H,"lex"),s(H,"lex");for(var w,F,S,X,R={},z,E,nt,W;;){if(F=l[l.length-1],this.defaultActions[F]?S=this.defaultActions[F]:((w===null||typeof w>"u")&&(w=H()),S=v[F]&&v[F][w]),typeof S>"u"||!S.length||!S[0]){var G="";W=[];for(z in v[F])this.terminals_[z]&&z>pt&&W.push("'"+this.terminals_[z]+"'");b.showPosition?G="Parse error on line "+(P+1)+`:
1
+ import{g as mt}from"./chunk-CXNFBKHE-B6ieqKBL.js";import{a as xt,b as ht,h as kt,d as _t}from"./chunk-LV3HUYFY-DtT0YyqZ.js";import{_ as k}from"./mermaid-layout-elk.core-DTUF3xdW.js";import{g as bt,s as vt,a as wt,b as Tt,o as St,n as $t,_ as s,c as L,d as Mt,p as Et}from"./render-O7CIS3YK-C1LKCRfk.js";import{s as U}from"./transform-Bd_a5eGM.js";import{d as st}from"./arc-D2ssjz3E.js";import"./main-D7WqSbOt.js";import"./index-C8cLLejx.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";var J=(function(){var t=s(function(h,i,n,l){for(n=n||{},l=h.length;l--;n[h[l]]=i);return n},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],p=[1,10],r=[1,11],u=[1,12],f=[1,13],o=[1,14],g={trace:s(k(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(k(function(i,n,l,y,d,c,v){var _=c.length-1;switch(d){case 1:return c[_-1];case 2:this.$=[];break;case 3:c[_-1].push(c[_]),this.$=c[_-1];break;case 4:case 5:this.$=c[_];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[_].substr(6)),this.$=c[_].substr(6);break;case 9:this.$=c[_].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[_].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[_].substr(8)),this.$=c[_].substr(8);break;case 13:y.addTask(c[_-1],c[_]),this.$="task";break}},"anonymous"),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:p,14:r,16:u,17:f,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:p,14:r,16:u,17:f,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:s(k(function(i,n){if(n.recoverable)this.trace(i);else{var l=new Error(i);throw l.hash=n,l}},"parseError"),"parseError"),parse:s(k(function(i){var n=this,l=[0],y=[],d=[null],c=[],v=this.table,_="",P=0,et=0,pt=2,rt=1,ft=c.slice.call(arguments,1),b=Object.create(this.lexer),A={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(A.yy[Y]=this.yy[Y]);b.setInput(i,A.yy),A.yy.lexer=b,A.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;c.push(q);var gt=b.options&&b.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function it(T){l.length=l.length-2*T,d.length=d.length-T,c.length=c.length-T}k(it,"popStack"),s(it,"popStack");function H(){var T;return T=y.pop()||b.lex()||rt,typeof T!="number"&&(T instanceof Array&&(y=T,T=y.pop()),T=n.symbols_[T]||T),T}k(H,"lex"),s(H,"lex");for(var w,F,S,X,R={},z,E,nt,W;;){if(F=l[l.length-1],this.defaultActions[F]?S=this.defaultActions[F]:((w===null||typeof w>"u")&&(w=H()),S=v[F]&&v[F][w]),typeof S>"u"||!S.length||!S[0]){var G="";W=[];for(z in v[F])this.terminals_[z]&&z>pt&&W.push("'"+this.terminals_[z]+"'");b.showPosition?G="Parse error on line "+(P+1)+`:
2
2
  `+b.showPosition()+`
3
3
  Expecting `+W.join(", ")+", got '"+(this.terminals_[w]||w)+"'":G="Parse error on line "+(P+1)+": Unexpected "+(w==rt?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(G,{text:b.match,token:this.terminals_[w]||w,line:b.yylineno,loc:q,expected:W})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+F+", token: "+w);switch(S[0]){case 1:l.push(w),d.push(b.yytext),c.push(b.yylloc),l.push(S[1]),w=null,et=b.yyleng,_=b.yytext,P=b.yylineno,q=b.yylloc;break;case 2:if(E=this.productions_[S[1]][1],R.$=d[d.length-E],R._$={first_line:c[c.length-(E||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(E||1)].first_column,last_column:c[c.length-1].last_column},gt&&(R._$.range=[c[c.length-(E||1)].range[0],c[c.length-1].range[1]]),X=this.performAction.apply(R,[_,et,P,A.yy,S[1],d,c].concat(ft)),typeof X<"u")return X;E&&(l=l.slice(0,-1*E*2),d=d.slice(0,-1*E),c=c.slice(0,-1*E)),l.push(this.productions_[S[1]][0]),d.push(R.$),c.push(R._$),nt=v[l[l.length-2]][l[l.length-1]],l.push(nt);break;case 3:return!0}}return!0},"parse"),"parse")},m=(function(){var h={EOF:1,parseError:s(k(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),"parseError"),setInput:s(function(i,n){return this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:s(function(i){var n=i.length,l=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(i){this.unput(this.match.slice(i))},"less"),pastInput:s(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+`