@truefoundry/trueforge 0.177.0-rc.4 → 0.177.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 (211) hide show
  1. package/dist/_frontend/assets/{AgentCodeSnippets-EKIN7ZIE-dOqmAa8Q.js → AgentCodeSnippets-EKIN7ZIE-BK__Jr49.js} +1 -1
  2. package/dist/_frontend/assets/AgentCodeSnippets-EKIN7ZIE-BK__Jr49.js.br +0 -0
  3. package/dist/_frontend/assets/AgentCodeSnippets-EKIN7ZIE-BK__Jr49.js.gz +0 -0
  4. package/dist/_frontend/assets/{AgentMetricChart-ULFKK6JR-oRmx7mu0.js → AgentMetricChart-ULFKK6JR-DUqlzc0i.js} +1 -1
  5. package/dist/_frontend/assets/AgentMetricChart-ULFKK6JR-DUqlzc0i.js.br +0 -0
  6. package/dist/_frontend/assets/AgentMetricChart-ULFKK6JR-DUqlzc0i.js.gz +0 -0
  7. package/dist/_frontend/assets/{AgentOverview-NGCJR4UF-DAIDFsz9.js → AgentOverview-NGCJR4UF-lBAH6Tl_.js} +1 -1
  8. package/dist/_frontend/assets/AgentOverview-NGCJR4UF-lBAH6Tl_.js.br +0 -0
  9. package/dist/_frontend/assets/AgentOverview-NGCJR4UF-lBAH6Tl_.js.gz +0 -0
  10. package/dist/_frontend/assets/{AgentSessionEventTimeline-NDDZQZ2R-BOX-0vGu.js → AgentSessionEventTimeline-NDDZQZ2R-CRKwrZYO.js} +1 -1
  11. package/dist/_frontend/assets/AgentSessionEventTimeline-NDDZQZ2R-CRKwrZYO.js.br +0 -0
  12. package/dist/_frontend/assets/AgentSessionEventTimeline-NDDZQZ2R-CRKwrZYO.js.gz +0 -0
  13. package/dist/_frontend/assets/{AgentSessionEventTimelineChart-5AY5YW4U-CWnxR-xs.js → AgentSessionEventTimelineChart-5AY5YW4U-Btf6r_vC.js} +1 -1
  14. package/dist/_frontend/assets/AgentSessionEventTimelineChart-5AY5YW4U-Btf6r_vC.js.br +0 -0
  15. package/dist/_frontend/assets/AgentSessionEventTimelineChart-5AY5YW4U-Btf6r_vC.js.gz +0 -0
  16. package/dist/_frontend/assets/{AgentSessions-AJF4A3MH-Cq2taufD.js → AgentSessions-AJF4A3MH-C3zdVGKE.js} +1 -1
  17. package/dist/_frontend/assets/AgentSessions-AJF4A3MH-C3zdVGKE.js.br +0 -0
  18. package/dist/_frontend/assets/AgentSessions-AJF4A3MH-C3zdVGKE.js.gz +0 -0
  19. package/dist/_frontend/assets/{ConnectorSettings-NIHX4DYV-Cw2Lz9YF.js → ConnectorSettings-NIHX4DYV-Cqd9W9dr.js} +1 -1
  20. package/dist/_frontend/assets/ConnectorSettings-NIHX4DYV-Cqd9W9dr.js.br +0 -0
  21. package/dist/_frontend/assets/ConnectorSettings-NIHX4DYV-Cqd9W9dr.js.gz +0 -0
  22. package/dist/_frontend/assets/{DockLayout-ELMFMPFZ-h7W78kYm.js → DockLayout-ELMFMPFZ-64HWC5vP.js} +1 -1
  23. package/dist/_frontend/assets/{DrawerLayout-SYUH47FF-CpDQ95yI.js → DrawerLayout-SYUH47FF-bW9h_jzW.js} +2 -2
  24. package/dist/_frontend/assets/DrawerLayout-SYUH47FF-bW9h_jzW.js.br +0 -0
  25. package/dist/_frontend/assets/DrawerLayout-SYUH47FF-bW9h_jzW.js.gz +0 -0
  26. package/dist/_frontend/assets/{EnvironmentsPage-YV2D2VMM-Bd6RGp02.js → EnvironmentsPage-YV2D2VMM-DlNlyfm2.js} +1 -1
  27. package/dist/_frontend/assets/EnvironmentsPage-YV2D2VMM-DlNlyfm2.js.br +0 -0
  28. package/dist/_frontend/assets/EnvironmentsPage-YV2D2VMM-DlNlyfm2.js.gz +0 -0
  29. package/dist/_frontend/assets/{ModelSettings-KMU4MUTS-rEUEfKny.js → ModelSettings-KMU4MUTS-4qLH7ibV.js} +1 -1
  30. package/dist/_frontend/assets/ModelSettings-KMU4MUTS-4qLH7ibV.js.br +0 -0
  31. package/dist/_frontend/assets/ModelSettings-KMU4MUTS-4qLH7ibV.js.gz +0 -0
  32. package/dist/_frontend/assets/{SandboxSettings-XYOVCK6J-CC48CiIJ.js → SandboxSettings-XYOVCK6J-CbwTlTY9.js} +1 -1
  33. package/dist/_frontend/assets/SandboxSettings-XYOVCK6J-CbwTlTY9.js.br +0 -0
  34. package/dist/_frontend/assets/SandboxSettings-XYOVCK6J-CbwTlTY9.js.gz +0 -0
  35. package/dist/_frontend/assets/{SchedulesPage-UNS7BDS6-u3WcJt5Z.js → SchedulesPage-UNS7BDS6-CjgOxBTD.js} +1 -1
  36. package/dist/_frontend/assets/SchedulesPage-UNS7BDS6-CjgOxBTD.js.br +0 -0
  37. package/dist/_frontend/assets/SchedulesPage-UNS7BDS6-CjgOxBTD.js.gz +0 -0
  38. package/dist/_frontend/assets/{SettingsBuilder-OU3B7YHU-S7QVus7g.js → SettingsBuilder-OU3B7YHU-DYpXgbEN.js} +2 -2
  39. package/dist/_frontend/assets/SettingsBuilder-OU3B7YHU-DYpXgbEN.js.br +0 -0
  40. package/dist/_frontend/assets/SettingsBuilder-OU3B7YHU-DYpXgbEN.js.gz +0 -0
  41. package/dist/_frontend/assets/{ShellRouteSync-M5WTXCX5-BMqebF_Z.js → ShellRouteSync-M5WTXCX5-BecyJLZB.js} +1 -1
  42. package/dist/_frontend/assets/ShellRouteSync-M5WTXCX5-BecyJLZB.js.br +0 -0
  43. package/dist/_frontend/assets/ShellRouteSync-M5WTXCX5-BecyJLZB.js.gz +0 -0
  44. package/dist/_frontend/assets/{SidebarLayout-MGDOLVJB-ubVUYkb_.js → SidebarLayout-MGDOLVJB-bzsOzbNs.js} +2 -2
  45. package/dist/_frontend/assets/SidebarLayout-MGDOLVJB-bzsOzbNs.js.br +0 -0
  46. package/dist/_frontend/assets/SidebarLayout-MGDOLVJB-bzsOzbNs.js.gz +0 -0
  47. package/dist/_frontend/assets/{SkillSettings-QPZ43BZT-4Ijtrfmx.js → SkillSettings-QPZ43BZT-B7Q1Wv_4.js} +1 -1
  48. package/dist/_frontend/assets/SkillSettings-QPZ43BZT-B7Q1Wv_4.js.br +0 -0
  49. package/dist/_frontend/assets/SkillSettings-QPZ43BZT-B7Q1Wv_4.js.gz +0 -0
  50. package/dist/_frontend/assets/{TrueForgeUIWithRouter-VAVREKS2-DcaNt4At.js → TrueForgeUIWithRouter-VAVREKS2-DG9NN-mB.js} +1 -1
  51. package/dist/_frontend/assets/{WebSearchSettings-VOFJUVYH-BY6NbQO2.js → WebSearchSettings-VOFJUVYH-SgpUTawp.js} +1 -1
  52. package/dist/_frontend/assets/WebSearchSettings-VOFJUVYH-SgpUTawp.js.br +0 -0
  53. package/dist/_frontend/assets/WebSearchSettings-VOFJUVYH-SgpUTawp.js.gz +0 -0
  54. package/dist/_frontend/assets/{WidgetLayout-CJYOCWXG-CmkhefQM.js → WidgetLayout-CJYOCWXG-hW-w0wXo.js} +1 -1
  55. package/dist/_frontend/assets/WidgetLayout-CJYOCWXG-hW-w0wXo.js.br +0 -0
  56. package/dist/_frontend/assets/WidgetLayout-CJYOCWXG-hW-w0wXo.js.gz +0 -0
  57. package/dist/_frontend/assets/{chunk-C5376XWU-DnMpocno.js → chunk-C5376XWU-CUgFlwPN.js} +1 -1
  58. package/dist/_frontend/assets/{chunk-EGUH4WJX-8KVKzdgH.js → chunk-EGUH4WJX-SANPGRqh.js} +1 -1
  59. package/dist/_frontend/assets/chunk-EGUH4WJX-SANPGRqh.js.br +0 -0
  60. package/dist/_frontend/assets/chunk-EGUH4WJX-SANPGRqh.js.gz +0 -0
  61. package/dist/_frontend/assets/{chunk-OB3PAWPO-ChI7I4rW.js → chunk-OB3PAWPO-DQ_P-4S-.js} +1 -1
  62. package/dist/_frontend/assets/chunk-OB3PAWPO-DQ_P-4S-.js.br +0 -0
  63. package/dist/_frontend/assets/chunk-OB3PAWPO-DQ_P-4S-.js.gz +0 -0
  64. package/dist/_frontend/assets/{chunk-RO36YFVR-BQ4Ajb8a.js → chunk-RO36YFVR-D08M8Asc.js} +1 -1
  65. package/dist/_frontend/assets/chunk-RO36YFVR-D08M8Asc.js.br +0 -0
  66. package/dist/_frontend/assets/chunk-RO36YFVR-D08M8Asc.js.gz +0 -0
  67. package/dist/_frontend/assets/{chunk-X2GIDKWH-CkM7LiBi.js → chunk-X2GIDKWH-CMjGi2n8.js} +2 -2
  68. package/dist/_frontend/assets/chunk-X2GIDKWH-CMjGi2n8.js.br +0 -0
  69. package/dist/_frontend/assets/chunk-X2GIDKWH-CMjGi2n8.js.gz +0 -0
  70. package/dist/_frontend/assets/{cssMode-B2O3WgDw.js → cssMode-DBcp10nw.js} +1 -1
  71. package/dist/_frontend/assets/cssMode-DBcp10nw.js.br +10 -0
  72. package/dist/_frontend/assets/cssMode-DBcp10nw.js.gz +0 -0
  73. package/dist/_frontend/assets/{freemarker2-BwErGNl5.js → freemarker2-kn4ZhL8s.js} +1 -1
  74. package/dist/_frontend/assets/freemarker2-kn4ZhL8s.js.br +0 -0
  75. package/dist/_frontend/assets/freemarker2-kn4ZhL8s.js.gz +0 -0
  76. package/dist/_frontend/assets/{handlebars-Dd-TVeIL.js → handlebars-hJoSbeEv.js} +1 -1
  77. package/dist/_frontend/assets/handlebars-hJoSbeEv.js.br +0 -0
  78. package/dist/_frontend/assets/handlebars-hJoSbeEv.js.gz +0 -0
  79. package/dist/_frontend/assets/{html-DtetIX_W.js → html-Cb9UIhE4.js} +1 -1
  80. package/dist/_frontend/assets/html-Cb9UIhE4.js.br +0 -0
  81. package/dist/_frontend/assets/html-Cb9UIhE4.js.gz +0 -0
  82. package/dist/_frontend/assets/{htmlMode-DKM7kaPN.js → htmlMode-b3R93yfn.js} +1 -1
  83. package/dist/_frontend/assets/htmlMode-b3R93yfn.js.br +8 -0
  84. package/dist/_frontend/assets/htmlMode-b3R93yfn.js.gz +0 -0
  85. package/dist/_frontend/assets/{index-BJYXg0vg.js → index-D6YKMpJU.js} +235 -235
  86. package/dist/_frontend/assets/index-D6YKMpJU.js.br +0 -0
  87. package/dist/_frontend/assets/index-D6YKMpJU.js.gz +0 -0
  88. package/dist/_frontend/assets/{index-CG1biynV.js → index-DyV3Kxi4.js} +3 -3
  89. package/dist/_frontend/assets/index-DyV3Kxi4.js.br +0 -0
  90. package/dist/_frontend/assets/index-DyV3Kxi4.js.gz +0 -0
  91. package/dist/_frontend/assets/{index-BMbujGVF.js → index-R1kS-j0r.js} +1 -1
  92. package/dist/_frontend/assets/index-R1kS-j0r.js.br +0 -0
  93. package/dist/_frontend/assets/index-R1kS-j0r.js.gz +0 -0
  94. package/dist/_frontend/assets/{javascript-Bema_gse.js → javascript-CSvI9_rd.js} +1 -1
  95. package/dist/_frontend/assets/{jsonMode-CCmSaJ3B.js → jsonMode-B-bur220.js} +1 -1
  96. package/dist/_frontend/assets/jsonMode-B-bur220.js.br +0 -0
  97. package/dist/_frontend/assets/jsonMode-B-bur220.js.gz +0 -0
  98. package/dist/_frontend/assets/{liquid-SdwGTdmD.js → liquid-B2c7_pgJ.js} +1 -1
  99. package/dist/_frontend/assets/liquid-B2c7_pgJ.js.br +0 -0
  100. package/dist/_frontend/assets/liquid-B2c7_pgJ.js.gz +0 -0
  101. package/dist/_frontend/assets/{lspLanguageFeatures-CET8ZB_H.js → lspLanguageFeatures-Dru3qdb_.js} +1 -1
  102. package/dist/_frontend/assets/lspLanguageFeatures-Dru3qdb_.js.br +0 -0
  103. package/dist/_frontend/assets/lspLanguageFeatures-Dru3qdb_.js.gz +0 -0
  104. package/dist/_frontend/assets/{mdx-JMLFyU1U.js → mdx-BJ8Sv1r2.js} +1 -1
  105. package/dist/_frontend/assets/mdx-BJ8Sv1r2.js.br +0 -0
  106. package/dist/_frontend/assets/mdx-BJ8Sv1r2.js.gz +0 -0
  107. package/dist/_frontend/assets/{python-O8I7D9EW.js → python-Dd-s66vK.js} +1 -1
  108. package/dist/_frontend/assets/python-Dd-s66vK.js.br +0 -0
  109. package/dist/_frontend/assets/python-Dd-s66vK.js.gz +0 -0
  110. package/dist/_frontend/assets/{razor-DG0d0JKU.js → razor-CZgtByAc.js} +1 -1
  111. package/dist/_frontend/assets/razor-CZgtByAc.js.br +0 -0
  112. package/dist/_frontend/assets/razor-CZgtByAc.js.gz +0 -0
  113. package/dist/_frontend/assets/{tsMode-DqV_su_u.js → tsMode-BKdqN2QK.js} +1 -1
  114. package/dist/_frontend/assets/tsMode-BKdqN2QK.js.br +0 -0
  115. package/dist/_frontend/assets/tsMode-BKdqN2QK.js.gz +0 -0
  116. package/dist/_frontend/assets/{typescript-BOcOXNsD.js → typescript-DfaR9qdT.js} +1 -1
  117. package/dist/_frontend/assets/typescript-DfaR9qdT.js.br +0 -0
  118. package/dist/_frontend/assets/typescript-DfaR9qdT.js.gz +0 -0
  119. package/dist/_frontend/assets/{workers-BIrSmuuV.js → workers--wwmRDDg.js} +1 -1
  120. package/dist/_frontend/assets/workers--wwmRDDg.js.br +0 -0
  121. package/dist/_frontend/assets/workers--wwmRDDg.js.gz +0 -0
  122. package/dist/_frontend/assets/{xml-BvQIwO_b.js → xml-DSX1f9L4.js} +1 -1
  123. package/dist/_frontend/assets/xml-DSX1f9L4.js.br +0 -0
  124. package/dist/_frontend/assets/xml-DSX1f9L4.js.gz +0 -0
  125. package/dist/_frontend/assets/{yaml-do4_JNaE.js → yaml-CMmrTeSX.js} +1 -1
  126. package/dist/_frontend/assets/yaml-CMmrTeSX.js.br +0 -0
  127. package/dist/_frontend/assets/yaml-CMmrTeSX.js.gz +0 -0
  128. package/dist/_frontend/index.html +1 -1
  129. package/package.json +3 -3
  130. package/dist/_frontend/assets/AgentCodeSnippets-EKIN7ZIE-dOqmAa8Q.js.br +0 -0
  131. package/dist/_frontend/assets/AgentCodeSnippets-EKIN7ZIE-dOqmAa8Q.js.gz +0 -0
  132. package/dist/_frontend/assets/AgentMetricChart-ULFKK6JR-oRmx7mu0.js.br +0 -0
  133. package/dist/_frontend/assets/AgentMetricChart-ULFKK6JR-oRmx7mu0.js.gz +0 -0
  134. package/dist/_frontend/assets/AgentOverview-NGCJR4UF-DAIDFsz9.js.br +0 -0
  135. package/dist/_frontend/assets/AgentOverview-NGCJR4UF-DAIDFsz9.js.gz +0 -0
  136. package/dist/_frontend/assets/AgentSessionEventTimeline-NDDZQZ2R-BOX-0vGu.js.br +0 -0
  137. package/dist/_frontend/assets/AgentSessionEventTimeline-NDDZQZ2R-BOX-0vGu.js.gz +0 -0
  138. package/dist/_frontend/assets/AgentSessionEventTimelineChart-5AY5YW4U-CWnxR-xs.js.br +0 -0
  139. package/dist/_frontend/assets/AgentSessionEventTimelineChart-5AY5YW4U-CWnxR-xs.js.gz +0 -0
  140. package/dist/_frontend/assets/AgentSessions-AJF4A3MH-Cq2taufD.js.br +0 -0
  141. package/dist/_frontend/assets/AgentSessions-AJF4A3MH-Cq2taufD.js.gz +0 -0
  142. package/dist/_frontend/assets/ConnectorSettings-NIHX4DYV-Cw2Lz9YF.js.br +0 -0
  143. package/dist/_frontend/assets/ConnectorSettings-NIHX4DYV-Cw2Lz9YF.js.gz +0 -0
  144. package/dist/_frontend/assets/DrawerLayout-SYUH47FF-CpDQ95yI.js.br +0 -0
  145. package/dist/_frontend/assets/DrawerLayout-SYUH47FF-CpDQ95yI.js.gz +0 -0
  146. package/dist/_frontend/assets/EnvironmentsPage-YV2D2VMM-Bd6RGp02.js.br +0 -0
  147. package/dist/_frontend/assets/EnvironmentsPage-YV2D2VMM-Bd6RGp02.js.gz +0 -0
  148. package/dist/_frontend/assets/ModelSettings-KMU4MUTS-rEUEfKny.js.br +0 -0
  149. package/dist/_frontend/assets/ModelSettings-KMU4MUTS-rEUEfKny.js.gz +0 -0
  150. package/dist/_frontend/assets/SandboxSettings-XYOVCK6J-CC48CiIJ.js.br +0 -0
  151. package/dist/_frontend/assets/SandboxSettings-XYOVCK6J-CC48CiIJ.js.gz +0 -0
  152. package/dist/_frontend/assets/SchedulesPage-UNS7BDS6-u3WcJt5Z.js.br +0 -0
  153. package/dist/_frontend/assets/SchedulesPage-UNS7BDS6-u3WcJt5Z.js.gz +0 -0
  154. package/dist/_frontend/assets/SettingsBuilder-OU3B7YHU-S7QVus7g.js.br +0 -0
  155. package/dist/_frontend/assets/SettingsBuilder-OU3B7YHU-S7QVus7g.js.gz +0 -0
  156. package/dist/_frontend/assets/ShellRouteSync-M5WTXCX5-BMqebF_Z.js.br +0 -0
  157. package/dist/_frontend/assets/ShellRouteSync-M5WTXCX5-BMqebF_Z.js.gz +0 -0
  158. package/dist/_frontend/assets/SidebarLayout-MGDOLVJB-ubVUYkb_.js.br +0 -0
  159. package/dist/_frontend/assets/SidebarLayout-MGDOLVJB-ubVUYkb_.js.gz +0 -0
  160. package/dist/_frontend/assets/SkillSettings-QPZ43BZT-4Ijtrfmx.js.br +0 -0
  161. package/dist/_frontend/assets/SkillSettings-QPZ43BZT-4Ijtrfmx.js.gz +0 -0
  162. package/dist/_frontend/assets/WebSearchSettings-VOFJUVYH-BY6NbQO2.js.br +0 -0
  163. package/dist/_frontend/assets/WebSearchSettings-VOFJUVYH-BY6NbQO2.js.gz +0 -0
  164. package/dist/_frontend/assets/WidgetLayout-CJYOCWXG-CmkhefQM.js.br +0 -0
  165. package/dist/_frontend/assets/WidgetLayout-CJYOCWXG-CmkhefQM.js.gz +0 -0
  166. package/dist/_frontend/assets/chunk-EGUH4WJX-8KVKzdgH.js.br +0 -0
  167. package/dist/_frontend/assets/chunk-EGUH4WJX-8KVKzdgH.js.gz +0 -0
  168. package/dist/_frontend/assets/chunk-OB3PAWPO-ChI7I4rW.js.br +0 -0
  169. package/dist/_frontend/assets/chunk-OB3PAWPO-ChI7I4rW.js.gz +0 -0
  170. package/dist/_frontend/assets/chunk-RO36YFVR-BQ4Ajb8a.js.br +0 -0
  171. package/dist/_frontend/assets/chunk-RO36YFVR-BQ4Ajb8a.js.gz +0 -0
  172. package/dist/_frontend/assets/chunk-X2GIDKWH-CkM7LiBi.js.br +0 -0
  173. package/dist/_frontend/assets/chunk-X2GIDKWH-CkM7LiBi.js.gz +0 -0
  174. package/dist/_frontend/assets/cssMode-B2O3WgDw.js.br +0 -0
  175. package/dist/_frontend/assets/cssMode-B2O3WgDw.js.gz +0 -0
  176. package/dist/_frontend/assets/freemarker2-BwErGNl5.js.br +0 -0
  177. package/dist/_frontend/assets/freemarker2-BwErGNl5.js.gz +0 -0
  178. package/dist/_frontend/assets/handlebars-Dd-TVeIL.js.br +0 -0
  179. package/dist/_frontend/assets/handlebars-Dd-TVeIL.js.gz +0 -0
  180. package/dist/_frontend/assets/html-DtetIX_W.js.br +0 -0
  181. package/dist/_frontend/assets/html-DtetIX_W.js.gz +0 -0
  182. package/dist/_frontend/assets/htmlMode-DKM7kaPN.js.br +0 -0
  183. package/dist/_frontend/assets/htmlMode-DKM7kaPN.js.gz +0 -0
  184. package/dist/_frontend/assets/index-BJYXg0vg.js.br +0 -0
  185. package/dist/_frontend/assets/index-BJYXg0vg.js.gz +0 -0
  186. package/dist/_frontend/assets/index-BMbujGVF.js.br +0 -0
  187. package/dist/_frontend/assets/index-BMbujGVF.js.gz +0 -0
  188. package/dist/_frontend/assets/index-CG1biynV.js.br +0 -0
  189. package/dist/_frontend/assets/index-CG1biynV.js.gz +0 -0
  190. package/dist/_frontend/assets/jsonMode-CCmSaJ3B.js.br +0 -0
  191. package/dist/_frontend/assets/jsonMode-CCmSaJ3B.js.gz +0 -0
  192. package/dist/_frontend/assets/liquid-SdwGTdmD.js.br +0 -0
  193. package/dist/_frontend/assets/liquid-SdwGTdmD.js.gz +0 -0
  194. package/dist/_frontend/assets/lspLanguageFeatures-CET8ZB_H.js.br +0 -0
  195. package/dist/_frontend/assets/lspLanguageFeatures-CET8ZB_H.js.gz +0 -0
  196. package/dist/_frontend/assets/mdx-JMLFyU1U.js.br +0 -0
  197. package/dist/_frontend/assets/mdx-JMLFyU1U.js.gz +0 -0
  198. package/dist/_frontend/assets/python-O8I7D9EW.js.br +0 -0
  199. package/dist/_frontend/assets/python-O8I7D9EW.js.gz +0 -0
  200. package/dist/_frontend/assets/razor-DG0d0JKU.js.br +0 -0
  201. package/dist/_frontend/assets/razor-DG0d0JKU.js.gz +0 -0
  202. package/dist/_frontend/assets/tsMode-DqV_su_u.js.br +0 -0
  203. package/dist/_frontend/assets/tsMode-DqV_su_u.js.gz +0 -0
  204. package/dist/_frontend/assets/typescript-BOcOXNsD.js.br +0 -0
  205. package/dist/_frontend/assets/typescript-BOcOXNsD.js.gz +0 -0
  206. package/dist/_frontend/assets/workers-BIrSmuuV.js.br +0 -0
  207. package/dist/_frontend/assets/workers-BIrSmuuV.js.gz +0 -0
  208. package/dist/_frontend/assets/xml-BvQIwO_b.js.br +0 -0
  209. package/dist/_frontend/assets/xml-BvQIwO_b.js.gz +0 -0
  210. package/dist/_frontend/assets/yaml-do4_JNaE.js.br +0 -0
  211. package/dist/_frontend/assets/yaml-do4_JNaE.js.gz +0 -0
@@ -1 +1 @@
1
- import{aX as A,t as B,r as a,aY as z,j as e,I as P,a0 as E,a_ as L,ap as M}from"./index-BJYXg0vg.js";var O=M("h-11 shadow-sm"),T=({open:t,onOpenChange:n,onSave:d,title:N,description:h,requireApiKey:u=!0,busy:g=!1,error:b})=>{const[p,o]=a.useState(""),y=()=>{o("")};a.useEffect(()=>{t&&o("")},[t]);const i=r=>{r||y(),n(r)},x=p.trim(),f=!u||!!x,l=async r=>{if(r.preventDefault(),!(!f||g))try{await d({apiKey:x}),y(),n(!1)}catch{}};return e.jsx(L,{open:t,onOpenChange:i,title:N,description:h,contentSized:!0,headerIcon:e.jsx("span",{className:"flex size-11 shrink-0 items-center justify-center rounded-lg border border-border bg-secondary-bg text-text-primary","aria-hidden":!0,children:e.jsx(P,{name:"search",className:"size-6"})}),children:e.jsxs("form",{className:"flex flex-col overflow-y-auto p-5 md:p-6",onSubmit:l,children:[e.jsx("div",{className:"space-y-4",children:e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"web-search-api-key",className:"mb-1.5 block text-sm font-medium text-text-primary",children:["API key",u?null:e.jsx("span",{className:"font-normal text-text-secondary",children:" (optional)"})]}),e.jsx("input",{id:"web-search-api-key",type:"password",required:u,value:p,onChange:r=>{o(r.target.value)},placeholder:u?"Parallel API key":"Leave blank to keep existing",autoFocus:!0,className:O})]})}),e.jsxs("div",{className:"mt-6 space-y-3",children:[b?e.jsx("p",{className:"text-failure-bg text-sm",children:b}):null,e.jsx(E.Primary,{type:"submit",size:"large",disabled:!f||g,className:"w-full shrink-0",children:"Save"})]})]})})},$=T,_=()=>{const{webSearchCatalog:t}=A(),n=B(),[d,N]=a.useState([]),[h,u]=a.useState([]),[g,b]=a.useState(!0),[p,o]=a.useState(null),[y,i]=a.useState(null),[x,f]=a.useState(!1),[l,r]=a.useState(null),[m,j]=a.useState(null),w=a.useCallback(async({quiet:s=!1}={})=>{if(t){s||b(!0),o(null);try{const[c,v]=await Promise.all([t.listWebSearchProviders(),t.getWebSearchProviderCatalog()]);N(c),u(v)}catch(c){o(z(c,"Failed to load web search providers"))}finally{s||b(!1)}}},[t]);a.useEffect(()=>{w()},[w]);const S=d.length>0,C=a.useMemo(()=>{if(S)return[];const s=new Set(d.map(c=>c.catalogId));return h.filter(c=>!s.has(c.id))},[h,d,S]);if(!t)return e.jsx("p",{className:"text-sm text-text-secondary",children:"Web search provider catalog is not available."});const I=async(s,c=o)=>{f(!0),o(null);try{await s(),await w({quiet:!0})}catch(v){throw c(z(v,"Request failed")),v}finally{f(!1)}},W=async s=>{l&&(i(null),await I(async()=>{await t.createWebSearchProvider({catalogId:l.id,name:l.name,type:l.type,apiKey:s.apiKey})},i),r(null),setTimeout(()=>{n==null||n.showSuccess({title:`${l.name} configured`})},0))},F=async s=>{m&&(i(null),await I(async()=>{await t.updateWebSearchProvider({id:m.id,...s.apiKey?{apiKey:s.apiKey}:{}})},i),j(null),setTimeout(()=>{n==null||n.showSuccess({title:`${m.name} updated`})},0))},K=l!=null||m!=null,k=m!=null,U=m?`Update ${m.name}`:l?`Configure ${l.name}`:"Configure web search provider";return e.jsxs(e.Fragment,{children:[e.jsx("h3",{className:"text-xl font-semibold tracking-tight text-text-primary",children:"Web search"}),e.jsx("p",{className:"mt-1 text-sm text-text-secondary",children:"Configure a provider so agents can search the web. Only one can be active at a time."}),p?e.jsx("p",{className:"mt-3 rounded-md border border-failure-bg/30 bg-failure-bg/10 px-3 py-2 text-sm text-failure-bg",children:p}):null,e.jsx("div",{className:"mt-4 flex-1 overflow-y-auto",children:g?e.jsx("p",{className:"text-sm text-text-secondary",children:"Loading web search providers…"}):e.jsxs("div",{className:"space-y-6",children:[d.length>0?e.jsxs("section",{children:[e.jsxs("h4",{className:"mb-2 text-xs font-semibold uppercase tracking-wide text-text-secondary",children:["Configured · ",d.length]}),e.jsx("div",{className:"overflow-hidden rounded-xl border border-border bg-card-bg",children:d.map(s=>e.jsxs("article",{className:"flex flex-col gap-3 border-b border-border p-3 last:border-b-0 sm:flex-row sm:items-center",children:[e.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[e.jsx("span",{className:"flex size-9 shrink-0 items-center justify-center rounded-lg border border-border bg-secondary-bg text-text-primary","aria-hidden":!0,children:e.jsx(P,{name:"search",className:"size-4.5"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h5",{className:"truncate text-sm font-medium text-text-primary",children:s.name}),e.jsx("p",{className:"truncate text-xs text-text-secondary",children:"Parallel web search"})]})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2.5 sm:justify-end",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-sm font-medium text-success-bg",children:[e.jsx("span",{className:"size-2 rounded-full bg-success-bg","aria-hidden":!0}),"Connected"]}),e.jsx(E.Secondary,{size:"small",type:"button",disabled:x,onClick:()=>{i(null),r(null),j(s)},children:"Update"})]})]},s.id))})]}):null,S?null:e.jsxs("section",{children:[e.jsxs("h4",{className:"mb-2 text-xs font-semibold uppercase tracking-wide text-text-secondary",children:["Available · ",C.length]}),C.length===0?e.jsx("p",{className:"text-sm text-text-secondary",children:h.length>0?"All catalog providers are configured.":"No web search providers in the catalog."}):e.jsx("div",{className:"overflow-hidden rounded-xl border border-border bg-card-bg",children:C.map(s=>e.jsxs("article",{className:"flex flex-col gap-3 border-b border-border p-3 last:border-b-0 sm:flex-row sm:items-center",children:[e.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[e.jsx("span",{className:"flex size-9 shrink-0 items-center justify-center rounded-lg border border-border bg-secondary-bg text-text-primary","aria-hidden":!0,children:e.jsx(P,{name:"search",className:"size-4.5"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h5",{className:"truncate text-sm font-medium text-text-primary",children:s.name}),e.jsx("p",{className:"truncate text-xs text-text-secondary",children:"Parallel web search"})]})]}),e.jsx(E.Secondary,{type:"button",disabled:x,onClick:()=>{i(null),j(null),r(s)},children:"Configure"})]},s.id))})]})]})}),e.jsx($,{open:K,onOpenChange:s=>{s||(i(null),r(null),j(null))},onSave:k?F:W,title:U,description:k?"Update this web search provider. Leave API key blank to keep the existing key.":"Configure this web search provider. API key is never stored in the catalog.",requireApiKey:!k,busy:x,error:y})]})},D=_;export{D as default};
1
+ import{aX as A,t as B,r as a,aY as z,j as e,I as P,a0 as E,a_ as L,ap as M}from"./index-D6YKMpJU.js";var O=M("h-11 shadow-sm"),T=({open:t,onOpenChange:n,onSave:d,title:N,description:h,requireApiKey:u=!0,busy:g=!1,error:b})=>{const[p,o]=a.useState(""),y=()=>{o("")};a.useEffect(()=>{t&&o("")},[t]);const i=r=>{r||y(),n(r)},x=p.trim(),f=!u||!!x,l=async r=>{if(r.preventDefault(),!(!f||g))try{await d({apiKey:x}),y(),n(!1)}catch{}};return e.jsx(L,{open:t,onOpenChange:i,title:N,description:h,contentSized:!0,headerIcon:e.jsx("span",{className:"flex size-11 shrink-0 items-center justify-center rounded-lg border border-border bg-secondary-bg text-text-primary","aria-hidden":!0,children:e.jsx(P,{name:"search",className:"size-6"})}),children:e.jsxs("form",{className:"flex flex-col overflow-y-auto p-5 md:p-6",onSubmit:l,children:[e.jsx("div",{className:"space-y-4",children:e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"web-search-api-key",className:"mb-1.5 block text-sm font-medium text-text-primary",children:["API key",u?null:e.jsx("span",{className:"font-normal text-text-secondary",children:" (optional)"})]}),e.jsx("input",{id:"web-search-api-key",type:"password",required:u,value:p,onChange:r=>{o(r.target.value)},placeholder:u?"Parallel API key":"Leave blank to keep existing",autoFocus:!0,className:O})]})}),e.jsxs("div",{className:"mt-6 space-y-3",children:[b?e.jsx("p",{className:"text-failure-bg text-sm",children:b}):null,e.jsx(E.Primary,{type:"submit",size:"large",disabled:!f||g,className:"w-full shrink-0",children:"Save"})]})]})})},$=T,_=()=>{const{webSearchCatalog:t}=A(),n=B(),[d,N]=a.useState([]),[h,u]=a.useState([]),[g,b]=a.useState(!0),[p,o]=a.useState(null),[y,i]=a.useState(null),[x,f]=a.useState(!1),[l,r]=a.useState(null),[m,j]=a.useState(null),w=a.useCallback(async({quiet:s=!1}={})=>{if(t){s||b(!0),o(null);try{const[c,v]=await Promise.all([t.listWebSearchProviders(),t.getWebSearchProviderCatalog()]);N(c),u(v)}catch(c){o(z(c,"Failed to load web search providers"))}finally{s||b(!1)}}},[t]);a.useEffect(()=>{w()},[w]);const S=d.length>0,C=a.useMemo(()=>{if(S)return[];const s=new Set(d.map(c=>c.catalogId));return h.filter(c=>!s.has(c.id))},[h,d,S]);if(!t)return e.jsx("p",{className:"text-sm text-text-secondary",children:"Web search provider catalog is not available."});const I=async(s,c=o)=>{f(!0),o(null);try{await s(),await w({quiet:!0})}catch(v){throw c(z(v,"Request failed")),v}finally{f(!1)}},W=async s=>{l&&(i(null),await I(async()=>{await t.createWebSearchProvider({catalogId:l.id,name:l.name,type:l.type,apiKey:s.apiKey})},i),r(null),setTimeout(()=>{n==null||n.showSuccess({title:`${l.name} configured`})},0))},F=async s=>{m&&(i(null),await I(async()=>{await t.updateWebSearchProvider({id:m.id,...s.apiKey?{apiKey:s.apiKey}:{}})},i),j(null),setTimeout(()=>{n==null||n.showSuccess({title:`${m.name} updated`})},0))},K=l!=null||m!=null,k=m!=null,U=m?`Update ${m.name}`:l?`Configure ${l.name}`:"Configure web search provider";return e.jsxs(e.Fragment,{children:[e.jsx("h3",{className:"text-xl font-semibold tracking-tight text-text-primary",children:"Web search"}),e.jsx("p",{className:"mt-1 text-sm text-text-secondary",children:"Configure a provider so agents can search the web. Only one can be active at a time."}),p?e.jsx("p",{className:"mt-3 rounded-md border border-failure-bg/30 bg-failure-bg/10 px-3 py-2 text-sm text-failure-bg",children:p}):null,e.jsx("div",{className:"mt-4 flex-1 overflow-y-auto",children:g?e.jsx("p",{className:"text-sm text-text-secondary",children:"Loading web search providers…"}):e.jsxs("div",{className:"space-y-6",children:[d.length>0?e.jsxs("section",{children:[e.jsxs("h4",{className:"mb-2 text-xs font-semibold uppercase tracking-wide text-text-secondary",children:["Configured · ",d.length]}),e.jsx("div",{className:"overflow-hidden rounded-xl border border-border bg-card-bg",children:d.map(s=>e.jsxs("article",{className:"flex flex-col gap-3 border-b border-border p-3 last:border-b-0 sm:flex-row sm:items-center",children:[e.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[e.jsx("span",{className:"flex size-9 shrink-0 items-center justify-center rounded-lg border border-border bg-secondary-bg text-text-primary","aria-hidden":!0,children:e.jsx(P,{name:"search",className:"size-4.5"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h5",{className:"truncate text-sm font-medium text-text-primary",children:s.name}),e.jsx("p",{className:"truncate text-xs text-text-secondary",children:"Parallel web search"})]})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2.5 sm:justify-end",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-sm font-medium text-success-bg",children:[e.jsx("span",{className:"size-2 rounded-full bg-success-bg","aria-hidden":!0}),"Connected"]}),e.jsx(E.Secondary,{size:"small",type:"button",disabled:x,onClick:()=>{i(null),r(null),j(s)},children:"Update"})]})]},s.id))})]}):null,S?null:e.jsxs("section",{children:[e.jsxs("h4",{className:"mb-2 text-xs font-semibold uppercase tracking-wide text-text-secondary",children:["Available · ",C.length]}),C.length===0?e.jsx("p",{className:"text-sm text-text-secondary",children:h.length>0?"All catalog providers are configured.":"No web search providers in the catalog."}):e.jsx("div",{className:"overflow-hidden rounded-xl border border-border bg-card-bg",children:C.map(s=>e.jsxs("article",{className:"flex flex-col gap-3 border-b border-border p-3 last:border-b-0 sm:flex-row sm:items-center",children:[e.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[e.jsx("span",{className:"flex size-9 shrink-0 items-center justify-center rounded-lg border border-border bg-secondary-bg text-text-primary","aria-hidden":!0,children:e.jsx(P,{name:"search",className:"size-4.5"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h5",{className:"truncate text-sm font-medium text-text-primary",children:s.name}),e.jsx("p",{className:"truncate text-xs text-text-secondary",children:"Parallel web search"})]})]}),e.jsx(E.Secondary,{type:"button",disabled:x,onClick:()=>{i(null),j(null),r(s)},children:"Configure"})]},s.id))})]})]})}),e.jsx($,{open:K,onOpenChange:s=>{s||(i(null),r(null),j(null))},onSave:k?F:W,title:U,description:k?"Update this web search provider. Leave API key blank to keep the existing key.":"Configure this web search provider. API key is never stored in the catalog.",requireApiKey:!k,busy:x,error:y})]})},D=_;export{D as default};
@@ -1 +1 @@
1
- import{S as m}from"./chunk-X2GIDKWH-CkM7LiBi.js";import{d as x,h as f,r,j as e,C as p,I as b,f as h,g as v}from"./index-BJYXg0vg.js";import"./chunk-RO36YFVR-BQ4Ajb8a.js";function j({className:u}){const d=x("BrandLogo"),{open:a,setOpen:n}=f(),l=r.useRef(null),s=r.useRef(null),i=r.useRef(!1);return r.useEffect(()=>{if(!a)return;const t=o=>{var c;o.key==="Escape"&&!((c=s.current)!=null&&c.querySelector("dialog[open]"))&&n(!1)};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[a,n]),r.useEffect(()=>{var t,o;if(a){i.current=!0,(t=s.current)==null||t.focus();return}i.current&&((o=l.current)==null||o.focus(),i.current=!1)},[a]),e.jsxs("div",{className:v("pointer-events-none relative h-full min-h-0 w-full",u),children:[a?e.jsx("div",{ref:s,"data-aui-compact-layout":!0,className:"pointer-events-auto absolute right-[max(1.25rem,env(safe-area-inset-right,0px))] bottom-[calc(5.25rem+env(safe-area-inset-bottom,0px))] z-[19] flex h-[min(560px,calc(100%-6.5rem-env(safe-area-inset-bottom,0px)))] max-h-[calc(100%-6.5rem)] w-[min(380px,calc(100%-2.5rem))] flex-col overflow-hidden rounded-xl border border-border bg-primary-bg shadow-[0_16px_48px_color-mix(in_oklab,var(--shadow-color)_14%,transparent)] outline-none",role:"dialog","aria-modal":!0,"aria-label":"Chat",tabIndex:-1,children:e.jsx(p,{children:e.jsx(m,{threadHeaderEnd:e.jsx("button",{type:"button","aria-label":"Close",title:"Close",className:h({variant:"ghost",size:"icon"}),onClick:()=>n(!1),children:e.jsx(b,{name:"xmark"})})})})}):null,e.jsx("button",{ref:l,type:"button",className:"pointer-events-auto absolute right-[max(1.25rem,env(safe-area-inset-right,0px))] bottom-[max(1.25rem,env(safe-area-inset-bottom,0px))] z-20 flex size-14 cursor-pointer items-center justify-center rounded-full text-sm font-medium shadow-[0_8px_24px_color-mix(in_oklab,var(--primary-button-bg)_45%,transparent)]",style:{backgroundColor:"var(--primary-button-bg)",color:"var(--primary-button-text)"},"aria-expanded":a,"aria-label":a?"Close chat":"Open chat",onClick:()=>n(t=>!t),children:a?e.jsx("span",{"aria-hidden":!0,className:"text-xl leading-none",children:"×"}):e.jsx(d,{variant:"icon",className:"size-6"})})]})}export{j as WidgetLayout};
1
+ import{S as m}from"./chunk-X2GIDKWH-CMjGi2n8.js";import{d as x,h as f,r,j as e,C as p,I as b,f as h,g as v}from"./index-D6YKMpJU.js";import"./chunk-RO36YFVR-D08M8Asc.js";function j({className:u}){const d=x("BrandLogo"),{open:a,setOpen:n}=f(),l=r.useRef(null),s=r.useRef(null),i=r.useRef(!1);return r.useEffect(()=>{if(!a)return;const t=o=>{var c;o.key==="Escape"&&!((c=s.current)!=null&&c.querySelector("dialog[open]"))&&n(!1)};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[a,n]),r.useEffect(()=>{var t,o;if(a){i.current=!0,(t=s.current)==null||t.focus();return}i.current&&((o=l.current)==null||o.focus(),i.current=!1)},[a]),e.jsxs("div",{className:v("pointer-events-none relative h-full min-h-0 w-full",u),children:[a?e.jsx("div",{ref:s,"data-aui-compact-layout":!0,className:"pointer-events-auto absolute right-[max(1.25rem,env(safe-area-inset-right,0px))] bottom-[calc(5.25rem+env(safe-area-inset-bottom,0px))] z-[19] flex h-[min(560px,calc(100%-6.5rem-env(safe-area-inset-bottom,0px)))] max-h-[calc(100%-6.5rem)] w-[min(380px,calc(100%-2.5rem))] flex-col overflow-hidden rounded-xl border border-border bg-primary-bg shadow-[0_16px_48px_color-mix(in_oklab,var(--shadow-color)_14%,transparent)] outline-none",role:"dialog","aria-modal":!0,"aria-label":"Chat",tabIndex:-1,children:e.jsx(p,{children:e.jsx(m,{threadHeaderEnd:e.jsx("button",{type:"button","aria-label":"Close",title:"Close",className:h({variant:"ghost",size:"icon"}),onClick:()=>n(!1),children:e.jsx(b,{name:"xmark"})})})})}):null,e.jsx("button",{ref:l,type:"button",className:"pointer-events-auto absolute right-[max(1.25rem,env(safe-area-inset-right,0px))] bottom-[max(1.25rem,env(safe-area-inset-bottom,0px))] z-20 flex size-14 cursor-pointer items-center justify-center rounded-full text-sm font-medium shadow-[0_8px_24px_color-mix(in_oklab,var(--primary-button-bg)_45%,transparent)]",style:{backgroundColor:"var(--primary-button-bg)",color:"var(--primary-button-text)"},"aria-expanded":a,"aria-label":a?"Close chat":"Open chat",onClick:()=>n(t=>!t),children:a?e.jsx("span",{"aria-hidden":!0,className:"text-xl leading-none",children:"×"}):e.jsx(d,{variant:"icon",className:"size-6"})})]})}export{j as WidgetLayout};
@@ -1 +1 @@
1
- import{j as e,ab as m,ac as u,ad as h,ae as j,af as p,a0 as n}from"./index-BJYXg0vg.js";function f(a){return a.replace(/\?$/,"").replace(/^Remove /i,"Can't remove ")}var g=({title:a,description:o,confirmLabel:c="Remove",busy:i=!1,error:l=null,onCancel:t,onConfirm:d})=>{const s=l!=null&&l!=="",r=s?f(a):a;return e.jsxs(m,{open:!0,onOpenChange:x=>{x||t()},"aria-label":r,className:"max-w-md",children:[e.jsx(u,{children:e.jsxs(h,{children:[e.jsx(j,{children:r}),s?e.jsx("p",{role:"alert",className:"text-sm text-failure-bg",children:l}):e.jsx("p",{className:"text-sm text-text-secondary",children:o})]})}),e.jsx(p,{children:s?e.jsx(n.Secondary,{type:"button",onClick:t,children:"Close"}):e.jsxs(e.Fragment,{children:[e.jsx(n.Secondary,{type:"button",disabled:i,onClick:t,children:"Cancel"}),e.jsx(n.Destructive,{type:"button",disabled:i,onClick:d,children:c})]})})]})},C=g;export{C};
1
+ import{j as e,ab as m,ac as u,ad as h,ae as j,af as p,a0 as n}from"./index-D6YKMpJU.js";function f(a){return a.replace(/\?$/,"").replace(/^Remove /i,"Can't remove ")}var g=({title:a,description:o,confirmLabel:c="Remove",busy:i=!1,error:l=null,onCancel:t,onConfirm:d})=>{const s=l!=null&&l!=="",r=s?f(a):a;return e.jsxs(m,{open:!0,onOpenChange:x=>{x||t()},"aria-label":r,className:"max-w-md",children:[e.jsx(u,{children:e.jsxs(h,{children:[e.jsx(j,{children:r}),s?e.jsx("p",{role:"alert",className:"text-sm text-failure-bg",children:l}):e.jsx("p",{className:"text-sm text-text-secondary",children:o})]})}),e.jsx(p,{children:s?e.jsx(n.Secondary,{type:"button",onClick:t,children:"Close"}):e.jsxs(e.Fragment,{children:[e.jsx(n.Secondary,{type:"button",disabled:i,onClick:t,children:"Cancel"}),e.jsx(n.Destructive,{type:"button",disabled:i,onClick:d,children:c})]})})]})},C=g;export{C};
@@ -1 +1 @@
1
- import{as as o,j as t,g as s}from"./index-BJYXg0vg.js";var u={default:"border-border bg-card-bg text-text-primary",success:"border-success-bg/30 bg-success-bg/10 text-success-bg",info:"border-primary-button-bg/30 bg-primary-button-bg/10 text-primary-button-bg",warning:"border-warning-bg/40 bg-warning-bg/10 text-warning-bg",destructive:"border-failure-bg/30 bg-failure-bg/10 text-failure-bg",outline:"border-border bg-transparent text-text-secondary"},l={default:"bg-text-secondary",success:"bg-success-bg",info:"bg-primary-button-bg",warning:"bg-warning-bg",destructive:"bg-failure-bg",outline:"bg-text-secondary"},c={rounded:"rounded-sm",pill:"rounded-full"},x={sm:"px-2 py-0.5 text-xs",md:"px-2.5 py-0.5 text-xs"},m=o.forwardRef(({className:n,variant:e="default",shape:r="rounded",size:a="sm",dot:b=!1,children:d,...g},i)=>t.jsxs("span",{ref:i,"data-slot":"badge","data-variant":e,"data-shape":r,"data-size":a,className:s("inline-flex items-center gap-1.5 border font-medium leading-normal",u[e],c[r],x[a],n),...g,children:[b?t.jsx("span",{className:s("size-1.5 shrink-0 rounded-full",l[e]),"aria-hidden":!0}):null,d]}));m.displayName="Badge";export{m as B};
1
+ import{as as o,j as t,g as s}from"./index-D6YKMpJU.js";var u={default:"border-border bg-card-bg text-text-primary",success:"border-success-bg/30 bg-success-bg/10 text-success-bg",info:"border-primary-button-bg/30 bg-primary-button-bg/10 text-primary-button-bg",warning:"border-warning-bg/40 bg-warning-bg/10 text-warning-bg",destructive:"border-failure-bg/30 bg-failure-bg/10 text-failure-bg",outline:"border-border bg-transparent text-text-secondary"},l={default:"bg-text-secondary",success:"bg-success-bg",info:"bg-primary-button-bg",warning:"bg-warning-bg",destructive:"bg-failure-bg",outline:"bg-text-secondary"},c={rounded:"rounded-sm",pill:"rounded-full"},x={sm:"px-2 py-0.5 text-xs",md:"px-2.5 py-0.5 text-xs"},m=o.forwardRef(({className:n,variant:e="default",shape:r="rounded",size:a="sm",dot:b=!1,children:d,...g},i)=>t.jsxs("span",{ref:i,"data-slot":"badge","data-variant":e,"data-shape":r,"data-size":a,className:s("inline-flex items-center gap-1.5 border font-medium leading-normal",u[e],c[r],x[a],n),...g,children:[b?t.jsx("span",{className:s("size-1.5 shrink-0 rounded-full",l[e]),"aria-hidden":!0}):null,d]}));m.displayName="Badge";export{m as B};
@@ -1,4 +1,4 @@
1
- import{r as i}from"./index-BJYXg0vg.js";/**
1
+ import{r as i}from"./index-D6YKMpJU.js";/**
2
2
  * react-router v7.18.4
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
@@ -1 +1 @@
1
- import{j as e,r as u,b4 as ae,b as B,d as x,b5 as I,b6 as ie,b7 as le,b8 as ce,b9 as ue,ba as L,bb as z,k as X,u as $,bc as P,bd as de,be as me,bf as fe,bg as pe,bh as ge,aV as he,c as xe,t as be,bi as ve,bj as V,bk as Z,bl as ee,bm as Ce,l as te,bn as Q,bo as K,aj as Se,bp as je,bq as we,br as ye,bs as ke,bt as N,a0 as G,bu as Ie,bv as Me,bw as Re,bx as Ae,b2 as Ne,ao as ne,by as Te,bz as se,bA as Pe,bB as Ee,bC as De,bD as Le,bE as Oe,bF as Fe,i as _e,U as Be,p as oe,s as Ue,bG as He,bH as ze,bI as Ve,bJ as We,I as _,f as U,g as T,bK as H,bL as qe,O as Qe,bM as Ke}from"./index-BJYXg0vg.js";function Ge(){var f;const{pending:s}=Z(),t=Te(),[n,i]=u.useState({approvalId:null,index:0}),l=u.useRef(null),a=s.length,d=n.approvalId==null?-1:s.findIndex(p=>p.approvalId===n.approvalId),c=d>=0?d:a===0?0:Math.min(n.index,a-1),o=(f=s[c])==null?void 0:f.approvalId;u.useEffect(()=>{const p=o??null;n.approvalId===p&&n.index===c||i({approvalId:p,index:c})},[o,c,n.approvalId,n.index]),u.useEffect(()=>{if(o==null||t==null){o==null&&(l.current=null);return}l.current!==o&&(l.current=o,t.focus(o))},[o,t]);const r=u.useCallback(()=>{var b;const p=Math.max(0,c-1);i({approvalId:((b=s[p])==null?void 0:b.approvalId)??null,index:p})},[s,c]),m=u.useCallback(()=>{var b;const p=Math.min(Math.max(a-1,0),c+1);i({approvalId:((b=s[p])==null?void 0:b.approvalId)??null,index:p})},[a,s,c]),g=u.useCallback(()=>{o==null||t==null||t.focus(o)},[o,t]);return{count:a,index:c,canPrev:c>0,canNext:c<a-1,goPrev:r,goNext:m,focusCurrent:g}}function Je(){const s=x("ApprovalNavBanner"),{count:t,index:n,canPrev:i,canNext:l,goPrev:a,goNext:d,focusCurrent:c}=Ge();return t===0?null:e.jsx(s,{total:t,current:n+1,canPrev:i,canNext:l,onPrev:a,onNext:d,onFocusCurrent:c})}var O={radioValue:"",custom:""};function Ye({disabled:s=!1}){const t=x("AskUserPrompt"),{pending:n,respond:i}=V(),l=P(),a=n[0],d=u.useMemo(()=>a==null?[]:[{id:a.toolCallId,question:a.question??"Answer required",options:a.options??[]}],[a]),[c,o]=u.useState(0),[r,m]=u.useState({});u.useEffect(()=>{o(0),m({})},[a==null?void 0:a.toolCallId]);const g=Math.min(c,Math.max(d.length-1,0)),f=d[g],p=f==null?O:r[f.id]??O,b=u.useCallback(y=>{const M=r[y]??O;return M.radioValue===Q?M.custom.trim():M.radioValue.trim()},[r]),w=u.useMemo(()=>d.every(y=>b(y.id)),[b,d]),h=p.radioValue===Q?p.custom.trim():p.radioValue.trim(),S=l||s||f==null||h.length===0,j=S||!w,k=u.useCallback((y,M)=>{m(C=>({...C,[y]:{...C[y]??O,...M}}))},[]),A=u.useCallback(()=>{if(s||a==null||!w)return;const y=b(a.toolCallId);y&&i({toolCallId:a.toolCallId,content:y})},[w,s,b,a,i]);return a==null||f==null?null:e.jsx(t,{questions:d,readOnly:l||s,currentQuestion:f,currentQuestionIndex:g,currentAnswer:p,totalQuestions:d.length,isMultiQuestion:d.length>1,isLastQuestion:g===d.length-1,allQuestionsAnswered:w,isSubmitDisabled:S,isSubmitAllDisabled:j,onCurrentQuestionIndexChange:o,onCurrentAnswerChange:k,onSubmit:A})}function Xe(s){var i,l,a;const t=s.thread.messages,n=t[t.length-1];return(n==null?void 0:n.role)!=="assistant"||((i=n.status)==null?void 0:i.type)!=="requires-action"?!1:((a=(l=n.metadata)==null?void 0:l.custom)==null?void 0:a.pendingMcpAuth)===!0}function $e(){const s=I(Xe),{pending:t}=V(),{pending:n}=Z(),i=ee();if(s)return{kind:"mcp"};const l=t[0];if(l!=null){const a=l.toolName;return a!=null&&(i==null?void 0:i[a])!=null?{kind:"custom",toolName:a}:{kind:"ask-user"}}return n.length>0?{kind:"approval"}:{kind:"compose"}}function Ze({disabled:s=!1}){const t=ee(),{pending:n,respond:i}=V(),l=P(),a=n[0],d=u.useCallback(o=>{if(s||a==null)return;const r=o.trim();r&&i({toolCallId:a.toolCallId,content:r})},[s,a,i]);if(a==null||a.toolName==null)return null;const c=t==null?void 0:t[a.toolName];return c==null?null:e.jsx(c,{args:a.args??{},disabled:l||s,onSubmit:d})}function et({servers:s,onContinue:t,readOnly:n}){const i=x("McpAuthPrompt"),{handleAuthorize:l}=Ne(),{refreshConnectors:a}=ne(),[d,c]=u.useState(()=>new Set),o=u.useRef(d),[r,m]=u.useState(!1),g=u.useRef(!1),f=u.useRef(0);u.useEffect(()=>()=>{f.current+=1},[]);const p=()=>{n||g.current||(g.current=!0,m(!0),t().catch(()=>{g.current=!1,m(!1)}))},b=w=>{const h=f.current;l(w,S=>{if(h!==f.current||!S)return;const j=new Set([...o.current,w]);o.current=j,c(j),a(),s.every(k=>j.has(k.id))&&p()})};return e.jsx(i,{servers:s,connectedServerIds:d,continueLoading:r,onConnect:b,onContinue:p,readOnly:n})}function tt({disabled:s=!1}){const t=x("McpAuthPrompt"),{pending:n,resume:i}=Ce(),l=P(),a=te();if(!n)return null;if(a){const c=JSON.stringify(n.mcpServers.map(o=>o.id));return e.jsx(et,{servers:n.mcpServers,onContinue:i,readOnly:l||s},c)}const d=c=>{const o=n.mcpServers.find(r=>r.id===c);o!=null&&o.authUrl&&window.open(o.authUrl,"_blank","noopener,noreferrer")};return e.jsx(t,{servers:n.mcpServers,onConnect:d,onContinue:()=>{s||i()},readOnly:l||s})}function nt({disabled:s,hasText:t,hasAttachments:n,requiresModel:i,hasModel:l}){return!s&&(t||n)&&(!i||l)}function J({placeholder:s,connectedToBanner:t=!1}){var y,M;const n=x("ComposerShell"),i=$(),l=B(),a=I(C=>C.composer.text.trim().length>0),d=I(C=>C.composer.attachments.length>0),c=a||d,{agentSpec:o}=se(),r=l==null||l.mode.status==="active"&&l.mode.isMutable,m=!!((M=(y=o==null?void 0:o.model)==null?void 0:y.name)!=null&&M.trim()),{isBusy:g,send:f,resetBusy:p}=Pe(),b=z(),w=Ee(),h=u.useRef(null),S=!b,j=nt({disabled:S,hasText:a,hasAttachments:d,requiresModel:r,hasModel:m}),k=()=>{j&&f(()=>i.composer().send())},A=C=>{C.key!=="Enter"||C.shiftKey||C.nativeEvent.isComposing||j&&(C.preventDefault(),k())};return e.jsxs(e.Fragment,{children:[e.jsx("input",{ref:h,type:"file",multiple:!0,hidden:!0,onChange:C=>{const E=C.target.files;if(E)for(const D of E)i.composer().addAttachment(D);C.target.value=""}}),e.jsx(N.AttachmentDropzone,{disabled:S,"data-slot":"aui_composer-attachment-dropzone",className:"w-full rounded-[0.75rem] transition-[box-shadow] data-[dragging=true]:ring-focus-ring/20 data-[dragging=true]:ring-3",children:e.jsx(N.Root,{"data-slot":"aui_composer-root",className:"w-full",onSubmit:C=>{C.preventDefault(),k()},children:e.jsx(n,{className:t?"rounded-t-none border-t-0 focus-within:ring-0":void 0,attachments:e.jsx(De,{}),input:e.jsx(N.Input,{"data-slot":"aui_composer-input",placeholder:s,disabled:S,submitMode:"enter",onKeyDown:A,"aria-label":"Message input",className:"text-text-primary placeholder:text-text-secondary/80 max-h-[10lh] min-h-10 w-full resize-none overflow-y-auto rounded-lg border-none bg-transparent px-1 py-1 text-base leading-normal shadow-none outline-none disabled:cursor-not-allowed"}),disabled:S,canSubmit:j,hasContent:c,isRunning:g,onSubmit:k,onCancel:b?()=>{p(),w()}:void 0,onAttach:b?()=>{var C;return(C=h.current)==null?void 0:C.click()}:void 0})})})]})}function F({placeholder:s,connectedToBanner:t=!1}){const n=B(),i=x("ComposerLeftSection"),l=x("ComposerRightSection"),a=K("ComposerLeftSection"),d=K("ComposerRightSection"),c=x("DraftComposerLeftSection"),o=x("DraftComposerRightSection");return(n==null?void 0:n.mode.status)==="active"&&n.mode.isMutable?e.jsx(Se,{children:e.jsx(je,{overrides:{ComposerLeftSection:a?c:i,ComposerRightSection:d?o:l},children:e.jsx(J,{placeholder:s,connectedToBanner:t})})}):e.jsx(J,{placeholder:s,connectedToBanner:t})}function st({placeholder:s="Ask anything... (Shift+Enter for new line)"}){const t=$e(),n=z(),i=t.kind==="mcp"?e.jsx(tt,{disabled:!n}):t.kind==="custom"?e.jsx(Ze,{disabled:!n}):t.kind==="ask-user"?e.jsx(Ye,{disabled:!n}):t.kind==="approval"?e.jsx(Je,{}):null;return i==null?e.jsx(F,{placeholder:s}):t.kind==="approval"?e.jsxs("div",{"data-slot":"aui_composer-pause","data-pause-kind":t.kind,className:"flex w-full flex-col",children:[i,e.jsx(F,{placeholder:s,connectedToBanner:!0})]}):t.kind==="mcp"?e.jsxs("div",{"data-slot":"aui_composer-pause","data-pause-kind":t.kind,className:"relative flex w-full flex-col",children:[e.jsx("div",{className:"pb-2",children:i}),e.jsx("div",{className:"relative z-10 -mt-3",children:e.jsx(F,{placeholder:s})})]}):e.jsxs("div",{"data-slot":"aui_composer-pause","data-pause-kind":t.kind,className:"flex w-full flex-col",children:[i,e.jsx("div",{className:"relative z-10 -mt-1",children:e.jsx(F,{placeholder:s})})]})}var ot=200,Y='[data-slot="aui_thread-viewport"]';function rt(){const s=x("HistoryLoader"),{hasOlderHistory:t,isLoadingOlderHistory:n,loadOlderHistory:i}=de(),[l,a]=u.useState(null),d=u.useRef(!1),c=u.useCallback(async()=>{if(d.current)return;d.current=!0;const o=(l==null?void 0:l.closest(Y))??null,r=(o==null?void 0:o.scrollHeight)??0,m=(o==null?void 0:o.scrollTop)??0;try{await i(),requestAnimationFrame(()=>{if(o==null)return;const g=o.scrollHeight-r;g>0&&o.scrollTo({top:m+g,behavior:"instant"})})}catch{}finally{d.current=!1}},[l,i]);return u.useEffect(()=>{if(l==null||!t)return;const o=l.closest(Y),r=new IntersectionObserver(m=>{m.some(g=>g.isIntersecting)&&c()},{root:o,rootMargin:`${ot}px 0px 0px 0px`});return r.observe(l),()=>r.disconnect()},[l,t,c]),t?e.jsx(s,{ref:a,isLoading:n}):null}function at(){const s=x("ResumeUnavailable");return pe()?e.jsx(s,{}):null}function it(){return I(t=>{var n;return(((n=t.message.attachments)==null?void 0:n.length)??0)>0})?e.jsx("div",{className:"pointer-events-none mb-2 opacity-90",children:e.jsx(Le,{})}):null}function lt(){const s=x("UserMessageEdit"),t=x("MessageTimestamp"),n=P(),i=z(),l=I(o=>o.message.createdAt),{cancel:a,disabled:d}=we(),{disabled:c}=ye();return e.jsx(ke.Root,{"data-role":"user",children:e.jsx(N.Root,{"data-slot":"aui_user-edit-composer-root",className:"fade-in slide-in-from-bottom-1 animate-in flex w-full justify-end px-2 duration-150",children:e.jsx(s,{timestamp:e.jsx(t,{createdAt:l}),attachments:e.jsx(it,{}),input:e.jsx("div",{className:"mt-1 rounded border border-border bg-secondary-bg p-2 text-text-primary",children:e.jsx(N.Input,{"data-slot":"aui_user-edit-input",disabled:n||!i,submitMode:"enter","aria-label":"Edit message",className:"max-h-32 min-h-10 w-full resize-none border-none bg-transparent p-0 text-base leading-[1.34] outline-none focus:shadow-none"})}),footer:e.jsxs("div",{className:"flex items-center justify-end gap-2",children:[e.jsx(G.Secondary,{type:"button",disabled:d,onClick:a,children:"Cancel"}),e.jsx(N.Send,{asChild:!0,children:e.jsx(G.Primary,{type:"submit",disabled:c||n||!i,children:"Save & Rerun"})})]})})})})}function ct(){const s=X(),t=$(),n=I(c=>c.threadListItem.remoteId),i=I(c=>c.threadListItem.title),l=P(),a=u.useRef(!1),d=u.useRef(void 0);u.useEffect(()=>{d.current=void 0},[n]),u.useEffect(()=>{const c=a.current&&!l;if(a.current=l,!c||s==null||n==null||d.current===n)return;if(i!=null&&i.trim()!==""){d.current=n;return}let o=!1;return s.getSession({sessionId:n}).then(r=>{if(o)return;const m=typeof r.title=="string"?r.title.trim():"";if(m.length!==0)return d.current=n,t.threadListItem().rename(m)}).catch(()=>{}),()=>{o=!0}},[t,l,n,s,i])}var re="trueforge.file-preview-width";function ut(){try{const s=sessionStorage.getItem(re);if(s==null)return null;const t=Number(s);return Number.isFinite(t)?t:null}catch{return null}}function dt(s){try{sessionStorage.setItem(re,String(Math.round(s)))}catch{}}function mt(){const s=ge(),t=x("FilePreviewPanel"),n=he(),i=xe(),l=be(),[a,d]=u.useState(0),[c,o]=u.useState(!1),[r,m]=u.useState(ut),g=ve(s.target,a),f=s.target,p=s.presentation==="full"?"full":n||i?"overlay":"side";if(u.useLayoutEffect(()=>{var j;if(f==null||p!=="side")return;const h=((j=document.querySelector('[data-slot="aui_file-preview-row"]'))==null?void 0:j.getBoundingClientRect().width)??0;if(h<=0)return;const S=r==null?Ie(h):Me({requested:r,rowWidth:h});(r==null||Math.abs(S-r)>1)&&m(S)},[p,f,r]),f==null)return null;const b=g.view.status==="error",w=()=>{c||(o(!0),(async()=>{try{const h=g.blob??await f.load();Re(h,Ae(f.path))}catch(h){l!=null?l.showError(h):console.error("Failed to download sandbox file",h)}finally{o(!1)}})())};return e.jsx(t,{name:f.name,placement:p,view:g.view,onClose:s.close,onDownload:w,onEnterFullPage:()=>s.setPresentation("full"),onExitFullPage:()=>s.setPresentation("panel"),downloadBusy:c,...p==="side"&&r!=null?{widthPx:r}:{},...p==="side"?{onWidthChange:h=>{m(h),dt(h)}}:{},...b?{onRetry:()=>d(h=>h+1)}:{}})}function ft({children:s}){return e.jsx("div",{className:"animate-in fade-in slide-in-from-bottom-1 fill-mode-both duration-200",children:s})}function pt({isEditing:s}){return I(n=>n.message.role)==="user"?s?e.jsx(lt,{}):e.jsx(me,{}):e.jsx(fe,{})}function gt({composer:s}){u.useEffect(()=>{ae()},[]),ct();const t=B(),n=x("WelcomeScreen"),i=x("MessageListSkeleton"),l=x("ScrollToBottomButton"),a=x("MessageGroup"),d=x("ThreadComposerAreaShell"),c=x("ThreadRootShell"),o=x("ThreadViewportShell"),r=I(ie),m=I(f=>f.thread.isLoading),g=(t==null?void 0:t.mode.status)==="active"?t.mode.agentName!=null&&t.mode.agentName.length>0?t.mode.agentName:t.mode.isMutable&&t.mode.isCreateAgent?"Start building a new Agent":void 0:void 0;return e.jsx(le,{children:e.jsx(ce,{children:e.jsx(ue,{children:e.jsx(L.Root,{asChild:!0,children:e.jsx(c,{children:e.jsxs("div",{"data-slot":"aui_file-preview-row",className:"relative flex min-h-0 w-full min-w-0 flex-1",children:[e.jsxs("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:[e.jsx(L.Viewport,{asChild:!0,autoScroll:!0,children:e.jsxs(o,{isEmpty:r,children:[r&&e.jsx(n,{heading:g}),r&&!m&&s,m?e.jsx(i,{}):!r&&e.jsxs(e.Fragment,{children:[e.jsx(rt,{}),e.jsxs(a,{children:[e.jsx(L.Messages,{children:({message:f})=>e.jsx(ft,{children:e.jsx(pt,{isEditing:f.role==="user"&&f.composer.isEditing})})}),e.jsx(at,{})]})]})]})}),!m&&!r&&e.jsxs(d,{isEmpty:r,children:[e.jsx(L.ScrollToBottom,{asChild:!0,children:e.jsx(l,{})}),s]})]}),e.jsx(mt,{})]})})})})})})}function xt(){return e.jsx(gt,{composer:e.jsx(st,{})})}function bt({className:s}){const t=qe(),n=I(a=>a.threadListItem.title);if(t===null)return null;const i=(n==null?void 0:n.trim())??"",l=t.allowThreadTitle&&i.length>0?i:t.name;return e.jsxs("h1",{className:T("flex min-w-0 items-center gap-1.5",Ke,s),children:[e.jsx("span",{className:"truncate",title:l,children:l}),t.isEditing?e.jsx(Qe,{content:"Try changes here, then choose Update agent to save.",side:"bottom",children:e.jsxs("span",{className:"border-warning-bg/40 bg-warning-bg/10 text-warning-bg inline-flex shrink-0 items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium",children:[e.jsx(_,{name:"pencil",className:"size-3"}),"Editing"]})}):null]})}function vt({className:s,labeled:t=!1,onAction:n}){const i=B(),l=te(),a=oe(),{mode:d,setTheme:c}=Ve(),o=x("ShellActionsActionSlot"),r=d==="dark",m=r?"Light":"Dark",g=We({catalog:l,capabilities:a}),f="hover:bg-secondary-button-hover hover:text-ghost-button-text";return e.jsxs("div",{className:T("flex shrink-0 items-center gap-1",t?"w-full flex-col items-center gap-1 text-sidebar-text":"text-text-primary",s),children:[e.jsxs("a",{href:"https://trueforge.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"Documentation",title:"Documentation",className:U({variant:"ghost",size:t?void 0:"icon",className:T(f,t&&H)}),onClick:()=>n==null?void 0:n(),children:[e.jsx(_,{name:"book-open",size:t?14:void 0}),t?e.jsx("span",{className:"text-center",children:"Docs"}):null]}),e.jsxs("button",{type:"button","aria-label":r?"Switch to light theme":"Switch to dark theme",title:r?"Light theme":"Dark theme",className:U({variant:"ghost",size:t?void 0:"icon",className:T(f,t&&H)}),onClick:()=>{c(r?"light":"dark"),n==null||n()},children:[e.jsx(_,{name:r?"sun":"moon",size:t?14:void 0}),t?e.jsx("span",{className:"text-center",children:m}):null]}),i!=null&&g?e.jsxs("button",{type:"button","aria-label":"Settings",title:"Settings","aria-expanded":i.settingsOpen,"aria-current":i.settingsOpen?"page":void 0,className:U({variant:"ghost",size:t?void 0:"icon",className:T(f,t&&H,i.settingsOpen&&"bg-primary-button-bg font-medium text-primary-button-text hover:bg-primary-button-hover hover:text-primary-button-text")}),onClick:()=>{i.setSettingsOpen(!0),n==null||n()},children:[e.jsx(_,{name:"settings",size:t?14:void 0}),t?e.jsx("span",{className:"text-center",children:"Settings"}):null]}):null,e.jsx(o,{})]})}function Ct({showClose:s=!1}){var D,W;const{agentSpec:t}=se(),n=Oe(),i=Fe(),l=_e(),a=l.mode.status==="active"?l.mode.agentId:void 0,{allows:d}=Be({resourceType:"agent",resourceIds:a==null?[]:[a]}),c=d(a,"MANAGE"),o=X(),r=oe(),m=ne(),g=x("AgentConfigPanel"),f=x("AgentConfigEditors"),[p,b]=u.useState(null),w=Ue(l.mode),{draft:h,flush:S}=He(),j=u.useCallback(()=>{S(),i(),l.setAgentConfigOpen(!1)},[i,S,l]);u.useEffect(()=>{w&&m.ensureLoaded()},[m,w]),u.useEffect(()=>{c||b(null)},[c]),u.useEffect(()=>{if(!s||!l.agentConfigOpen)return;const v=R=>{!R.defaultPrevented&&R.key==="Escape"&&p===null&&document.querySelector("dialog[open]")===null&&j()};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[j,p,l.agentConfigOpen,s]),u.useEffect(()=>()=>{S();try{i()}catch{}},[i,S]);const k=u.useCallback(({next:v,instructions:R})=>{var q;if(c){if(v.skills&&v.skills.length>0&&(r==null?void 0:r.sandbox.enabled)===!0){n==null||n({...v,instructions:R||void 0,config:{...v.config,sandbox:{...(q=v.config)==null?void 0:q.sandbox,enabled:!0}}});return}n==null||n({...v,instructions:R||void 0})}},[c,r==null?void 0:r.sandbox.enabled,n]),A=u.useCallback(v=>{k({next:v,instructions:h})},[k,h]),y=u.useCallback(v=>{t!==null&&k({next:ze({spec:t,messages:v.messages}),instructions:v.instructions})},[t,k]),M=u.useCallback(async v=>(o==null?void 0:o.getMcpTools)===void 0?[]:o.getMcpTools({connectorId:v}),[o]),C=u.useCallback(async v=>{var R;return(R=o==null?void 0:o.getMcpConnector)==null?void 0:R.call(o,{connectorId:v})},[o]);if(!w||t===null||s&&!l.agentConfigOpen)return null;const E=m.models.find(v=>v.name===t.model.name);return e.jsxs(e.Fragment,{children:[e.jsx(g,{spec:t,model:E,models:m.models,modelsLoading:m.loading,modelsError:m.error,skills:m.skills,skillsAvailable:(r==null?void 0:r.skill.enabled)===!0,webSearchAvailable:((D=r==null?void 0:r.webSearch)==null?void 0:D.enabled)===!0,instructions:h,onOpenEditor:v=>{c&&b(v)},onChange:A,disabled:!c,onClose:s?j:void 0}),e.jsx(f,{editor:p,spec:t,models:m.models,connectors:m.connectors,skills:m.skills,loading:m.loading,error:m.error,skillsDisabled:(r==null?void 0:r.skill.enabled)!==!0,sandboxAvailable:(r==null?void 0:r.sandbox.enabled)===!0,webSearchAvailable:((W=r==null?void 0:r.webSearch)==null?void 0:W.enabled)===!0,instructions:h,onInstructionsSave:y,...(o==null?void 0:o.getMcpConnector)===void 0?{}:{loadMcpConnector:C},loadMcpTools:M,onRefreshConnectors:m.refreshConnectors,onChange:A,onClose:()=>b(null)})]})}export{Ct as A,bt as N,vt as S,xt as T};
1
+ import{j as e,r as u,b4 as ae,b as B,d as x,b5 as I,b6 as ie,b7 as le,b8 as ce,b9 as ue,ba as L,bb as z,k as X,u as $,bc as P,bd as de,be as me,bf as fe,bg as pe,bh as ge,aV as he,c as xe,t as be,bi as ve,bj as V,bk as Z,bl as ee,bm as Ce,l as te,bn as Q,bo as K,aj as Se,bp as je,bq as we,br as ye,bs as ke,bt as N,a0 as G,bu as Ie,bv as Me,bw as Re,bx as Ae,b2 as Ne,ao as ne,by as Te,bz as se,bA as Pe,bB as Ee,bC as De,bD as Le,bE as Oe,bF as Fe,i as _e,U as Be,p as oe,s as Ue,bG as He,bH as ze,bI as Ve,bJ as We,I as _,f as U,g as T,bK as H,bL as qe,O as Qe,bM as Ke}from"./index-D6YKMpJU.js";function Ge(){var f;const{pending:s}=Z(),t=Te(),[n,i]=u.useState({approvalId:null,index:0}),l=u.useRef(null),a=s.length,d=n.approvalId==null?-1:s.findIndex(p=>p.approvalId===n.approvalId),c=d>=0?d:a===0?0:Math.min(n.index,a-1),o=(f=s[c])==null?void 0:f.approvalId;u.useEffect(()=>{const p=o??null;n.approvalId===p&&n.index===c||i({approvalId:p,index:c})},[o,c,n.approvalId,n.index]),u.useEffect(()=>{if(o==null||t==null){o==null&&(l.current=null);return}l.current!==o&&(l.current=o,t.focus(o))},[o,t]);const r=u.useCallback(()=>{var b;const p=Math.max(0,c-1);i({approvalId:((b=s[p])==null?void 0:b.approvalId)??null,index:p})},[s,c]),m=u.useCallback(()=>{var b;const p=Math.min(Math.max(a-1,0),c+1);i({approvalId:((b=s[p])==null?void 0:b.approvalId)??null,index:p})},[a,s,c]),g=u.useCallback(()=>{o==null||t==null||t.focus(o)},[o,t]);return{count:a,index:c,canPrev:c>0,canNext:c<a-1,goPrev:r,goNext:m,focusCurrent:g}}function Je(){const s=x("ApprovalNavBanner"),{count:t,index:n,canPrev:i,canNext:l,goPrev:a,goNext:d,focusCurrent:c}=Ge();return t===0?null:e.jsx(s,{total:t,current:n+1,canPrev:i,canNext:l,onPrev:a,onNext:d,onFocusCurrent:c})}var O={radioValue:"",custom:""};function Ye({disabled:s=!1}){const t=x("AskUserPrompt"),{pending:n,respond:i}=V(),l=P(),a=n[0],d=u.useMemo(()=>a==null?[]:[{id:a.toolCallId,question:a.question??"Answer required",options:a.options??[]}],[a]),[c,o]=u.useState(0),[r,m]=u.useState({});u.useEffect(()=>{o(0),m({})},[a==null?void 0:a.toolCallId]);const g=Math.min(c,Math.max(d.length-1,0)),f=d[g],p=f==null?O:r[f.id]??O,b=u.useCallback(y=>{const M=r[y]??O;return M.radioValue===Q?M.custom.trim():M.radioValue.trim()},[r]),w=u.useMemo(()=>d.every(y=>b(y.id)),[b,d]),h=p.radioValue===Q?p.custom.trim():p.radioValue.trim(),S=l||s||f==null||h.length===0,j=S||!w,k=u.useCallback((y,M)=>{m(C=>({...C,[y]:{...C[y]??O,...M}}))},[]),A=u.useCallback(()=>{if(s||a==null||!w)return;const y=b(a.toolCallId);y&&i({toolCallId:a.toolCallId,content:y})},[w,s,b,a,i]);return a==null||f==null?null:e.jsx(t,{questions:d,readOnly:l||s,currentQuestion:f,currentQuestionIndex:g,currentAnswer:p,totalQuestions:d.length,isMultiQuestion:d.length>1,isLastQuestion:g===d.length-1,allQuestionsAnswered:w,isSubmitDisabled:S,isSubmitAllDisabled:j,onCurrentQuestionIndexChange:o,onCurrentAnswerChange:k,onSubmit:A})}function Xe(s){var i,l,a;const t=s.thread.messages,n=t[t.length-1];return(n==null?void 0:n.role)!=="assistant"||((i=n.status)==null?void 0:i.type)!=="requires-action"?!1:((a=(l=n.metadata)==null?void 0:l.custom)==null?void 0:a.pendingMcpAuth)===!0}function $e(){const s=I(Xe),{pending:t}=V(),{pending:n}=Z(),i=ee();if(s)return{kind:"mcp"};const l=t[0];if(l!=null){const a=l.toolName;return a!=null&&(i==null?void 0:i[a])!=null?{kind:"custom",toolName:a}:{kind:"ask-user"}}return n.length>0?{kind:"approval"}:{kind:"compose"}}function Ze({disabled:s=!1}){const t=ee(),{pending:n,respond:i}=V(),l=P(),a=n[0],d=u.useCallback(o=>{if(s||a==null)return;const r=o.trim();r&&i({toolCallId:a.toolCallId,content:r})},[s,a,i]);if(a==null||a.toolName==null)return null;const c=t==null?void 0:t[a.toolName];return c==null?null:e.jsx(c,{args:a.args??{},disabled:l||s,onSubmit:d})}function et({servers:s,onContinue:t,readOnly:n}){const i=x("McpAuthPrompt"),{handleAuthorize:l}=Ne(),{refreshConnectors:a}=ne(),[d,c]=u.useState(()=>new Set),o=u.useRef(d),[r,m]=u.useState(!1),g=u.useRef(!1),f=u.useRef(0);u.useEffect(()=>()=>{f.current+=1},[]);const p=()=>{n||g.current||(g.current=!0,m(!0),t().catch(()=>{g.current=!1,m(!1)}))},b=w=>{const h=f.current;l(w,S=>{if(h!==f.current||!S)return;const j=new Set([...o.current,w]);o.current=j,c(j),a(),s.every(k=>j.has(k.id))&&p()})};return e.jsx(i,{servers:s,connectedServerIds:d,continueLoading:r,onConnect:b,onContinue:p,readOnly:n})}function tt({disabled:s=!1}){const t=x("McpAuthPrompt"),{pending:n,resume:i}=Ce(),l=P(),a=te();if(!n)return null;if(a){const c=JSON.stringify(n.mcpServers.map(o=>o.id));return e.jsx(et,{servers:n.mcpServers,onContinue:i,readOnly:l||s},c)}const d=c=>{const o=n.mcpServers.find(r=>r.id===c);o!=null&&o.authUrl&&window.open(o.authUrl,"_blank","noopener,noreferrer")};return e.jsx(t,{servers:n.mcpServers,onConnect:d,onContinue:()=>{s||i()},readOnly:l||s})}function nt({disabled:s,hasText:t,hasAttachments:n,requiresModel:i,hasModel:l}){return!s&&(t||n)&&(!i||l)}function J({placeholder:s,connectedToBanner:t=!1}){var y,M;const n=x("ComposerShell"),i=$(),l=B(),a=I(C=>C.composer.text.trim().length>0),d=I(C=>C.composer.attachments.length>0),c=a||d,{agentSpec:o}=se(),r=l==null||l.mode.status==="active"&&l.mode.isMutable,m=!!((M=(y=o==null?void 0:o.model)==null?void 0:y.name)!=null&&M.trim()),{isBusy:g,send:f,resetBusy:p}=Pe(),b=z(),w=Ee(),h=u.useRef(null),S=!b,j=nt({disabled:S,hasText:a,hasAttachments:d,requiresModel:r,hasModel:m}),k=()=>{j&&f(()=>i.composer().send())},A=C=>{C.key!=="Enter"||C.shiftKey||C.nativeEvent.isComposing||j&&(C.preventDefault(),k())};return e.jsxs(e.Fragment,{children:[e.jsx("input",{ref:h,type:"file",multiple:!0,hidden:!0,onChange:C=>{const E=C.target.files;if(E)for(const D of E)i.composer().addAttachment(D);C.target.value=""}}),e.jsx(N.AttachmentDropzone,{disabled:S,"data-slot":"aui_composer-attachment-dropzone",className:"w-full rounded-[0.75rem] transition-[box-shadow] data-[dragging=true]:ring-focus-ring/20 data-[dragging=true]:ring-3",children:e.jsx(N.Root,{"data-slot":"aui_composer-root",className:"w-full",onSubmit:C=>{C.preventDefault(),k()},children:e.jsx(n,{className:t?"rounded-t-none border-t-0 focus-within:ring-0":void 0,attachments:e.jsx(De,{}),input:e.jsx(N.Input,{"data-slot":"aui_composer-input",placeholder:s,disabled:S,submitMode:"enter",onKeyDown:A,"aria-label":"Message input",className:"text-text-primary placeholder:text-text-secondary/80 max-h-[10lh] min-h-10 w-full resize-none overflow-y-auto rounded-lg border-none bg-transparent px-1 py-1 text-base leading-normal shadow-none outline-none disabled:cursor-not-allowed"}),disabled:S,canSubmit:j,hasContent:c,isRunning:g,onSubmit:k,onCancel:b?()=>{p(),w()}:void 0,onAttach:b?()=>{var C;return(C=h.current)==null?void 0:C.click()}:void 0})})})]})}function F({placeholder:s,connectedToBanner:t=!1}){const n=B(),i=x("ComposerLeftSection"),l=x("ComposerRightSection"),a=K("ComposerLeftSection"),d=K("ComposerRightSection"),c=x("DraftComposerLeftSection"),o=x("DraftComposerRightSection");return(n==null?void 0:n.mode.status)==="active"&&n.mode.isMutable?e.jsx(Se,{children:e.jsx(je,{overrides:{ComposerLeftSection:a?c:i,ComposerRightSection:d?o:l},children:e.jsx(J,{placeholder:s,connectedToBanner:t})})}):e.jsx(J,{placeholder:s,connectedToBanner:t})}function st({placeholder:s="Ask anything... (Shift+Enter for new line)"}){const t=$e(),n=z(),i=t.kind==="mcp"?e.jsx(tt,{disabled:!n}):t.kind==="custom"?e.jsx(Ze,{disabled:!n}):t.kind==="ask-user"?e.jsx(Ye,{disabled:!n}):t.kind==="approval"?e.jsx(Je,{}):null;return i==null?e.jsx(F,{placeholder:s}):t.kind==="approval"?e.jsxs("div",{"data-slot":"aui_composer-pause","data-pause-kind":t.kind,className:"flex w-full flex-col",children:[i,e.jsx(F,{placeholder:s,connectedToBanner:!0})]}):t.kind==="mcp"?e.jsxs("div",{"data-slot":"aui_composer-pause","data-pause-kind":t.kind,className:"relative flex w-full flex-col",children:[e.jsx("div",{className:"pb-2",children:i}),e.jsx("div",{className:"relative z-10 -mt-3",children:e.jsx(F,{placeholder:s})})]}):e.jsxs("div",{"data-slot":"aui_composer-pause","data-pause-kind":t.kind,className:"flex w-full flex-col",children:[i,e.jsx("div",{className:"relative z-10 -mt-1",children:e.jsx(F,{placeholder:s})})]})}var ot=200,Y='[data-slot="aui_thread-viewport"]';function rt(){const s=x("HistoryLoader"),{hasOlderHistory:t,isLoadingOlderHistory:n,loadOlderHistory:i}=de(),[l,a]=u.useState(null),d=u.useRef(!1),c=u.useCallback(async()=>{if(d.current)return;d.current=!0;const o=(l==null?void 0:l.closest(Y))??null,r=(o==null?void 0:o.scrollHeight)??0,m=(o==null?void 0:o.scrollTop)??0;try{await i(),requestAnimationFrame(()=>{if(o==null)return;const g=o.scrollHeight-r;g>0&&o.scrollTo({top:m+g,behavior:"instant"})})}catch{}finally{d.current=!1}},[l,i]);return u.useEffect(()=>{if(l==null||!t)return;const o=l.closest(Y),r=new IntersectionObserver(m=>{m.some(g=>g.isIntersecting)&&c()},{root:o,rootMargin:`${ot}px 0px 0px 0px`});return r.observe(l),()=>r.disconnect()},[l,t,c]),t?e.jsx(s,{ref:a,isLoading:n}):null}function at(){const s=x("ResumeUnavailable");return pe()?e.jsx(s,{}):null}function it(){return I(t=>{var n;return(((n=t.message.attachments)==null?void 0:n.length)??0)>0})?e.jsx("div",{className:"pointer-events-none mb-2 opacity-90",children:e.jsx(Le,{})}):null}function lt(){const s=x("UserMessageEdit"),t=x("MessageTimestamp"),n=P(),i=z(),l=I(o=>o.message.createdAt),{cancel:a,disabled:d}=we(),{disabled:c}=ye();return e.jsx(ke.Root,{"data-role":"user",children:e.jsx(N.Root,{"data-slot":"aui_user-edit-composer-root",className:"fade-in slide-in-from-bottom-1 animate-in flex w-full justify-end px-2 duration-150",children:e.jsx(s,{timestamp:e.jsx(t,{createdAt:l}),attachments:e.jsx(it,{}),input:e.jsx("div",{className:"mt-1 rounded border border-border bg-secondary-bg p-2 text-text-primary",children:e.jsx(N.Input,{"data-slot":"aui_user-edit-input",disabled:n||!i,submitMode:"enter","aria-label":"Edit message",className:"max-h-32 min-h-10 w-full resize-none border-none bg-transparent p-0 text-base leading-[1.34] outline-none focus:shadow-none"})}),footer:e.jsxs("div",{className:"flex items-center justify-end gap-2",children:[e.jsx(G.Secondary,{type:"button",disabled:d,onClick:a,children:"Cancel"}),e.jsx(N.Send,{asChild:!0,children:e.jsx(G.Primary,{type:"submit",disabled:c||n||!i,children:"Save & Rerun"})})]})})})})}function ct(){const s=X(),t=$(),n=I(c=>c.threadListItem.remoteId),i=I(c=>c.threadListItem.title),l=P(),a=u.useRef(!1),d=u.useRef(void 0);u.useEffect(()=>{d.current=void 0},[n]),u.useEffect(()=>{const c=a.current&&!l;if(a.current=l,!c||s==null||n==null||d.current===n)return;if(i!=null&&i.trim()!==""){d.current=n;return}let o=!1;return s.getSession({sessionId:n}).then(r=>{if(o)return;const m=typeof r.title=="string"?r.title.trim():"";if(m.length!==0)return d.current=n,t.threadListItem().rename(m)}).catch(()=>{}),()=>{o=!0}},[t,l,n,s,i])}var re="trueforge.file-preview-width";function ut(){try{const s=sessionStorage.getItem(re);if(s==null)return null;const t=Number(s);return Number.isFinite(t)?t:null}catch{return null}}function dt(s){try{sessionStorage.setItem(re,String(Math.round(s)))}catch{}}function mt(){const s=ge(),t=x("FilePreviewPanel"),n=he(),i=xe(),l=be(),[a,d]=u.useState(0),[c,o]=u.useState(!1),[r,m]=u.useState(ut),g=ve(s.target,a),f=s.target,p=s.presentation==="full"?"full":n||i?"overlay":"side";if(u.useLayoutEffect(()=>{var j;if(f==null||p!=="side")return;const h=((j=document.querySelector('[data-slot="aui_file-preview-row"]'))==null?void 0:j.getBoundingClientRect().width)??0;if(h<=0)return;const S=r==null?Ie(h):Me({requested:r,rowWidth:h});(r==null||Math.abs(S-r)>1)&&m(S)},[p,f,r]),f==null)return null;const b=g.view.status==="error",w=()=>{c||(o(!0),(async()=>{try{const h=g.blob??await f.load();Re(h,Ae(f.path))}catch(h){l!=null?l.showError(h):console.error("Failed to download sandbox file",h)}finally{o(!1)}})())};return e.jsx(t,{name:f.name,placement:p,view:g.view,onClose:s.close,onDownload:w,onEnterFullPage:()=>s.setPresentation("full"),onExitFullPage:()=>s.setPresentation("panel"),downloadBusy:c,...p==="side"&&r!=null?{widthPx:r}:{},...p==="side"?{onWidthChange:h=>{m(h),dt(h)}}:{},...b?{onRetry:()=>d(h=>h+1)}:{}})}function ft({children:s}){return e.jsx("div",{className:"animate-in fade-in slide-in-from-bottom-1 fill-mode-both duration-200",children:s})}function pt({isEditing:s}){return I(n=>n.message.role)==="user"?s?e.jsx(lt,{}):e.jsx(me,{}):e.jsx(fe,{})}function gt({composer:s}){u.useEffect(()=>{ae()},[]),ct();const t=B(),n=x("WelcomeScreen"),i=x("MessageListSkeleton"),l=x("ScrollToBottomButton"),a=x("MessageGroup"),d=x("ThreadComposerAreaShell"),c=x("ThreadRootShell"),o=x("ThreadViewportShell"),r=I(ie),m=I(f=>f.thread.isLoading),g=(t==null?void 0:t.mode.status)==="active"?t.mode.agentName!=null&&t.mode.agentName.length>0?t.mode.agentName:t.mode.isMutable&&t.mode.isCreateAgent?"Start building a new Agent":void 0:void 0;return e.jsx(le,{children:e.jsx(ce,{children:e.jsx(ue,{children:e.jsx(L.Root,{asChild:!0,children:e.jsx(c,{children:e.jsxs("div",{"data-slot":"aui_file-preview-row",className:"relative flex min-h-0 w-full min-w-0 flex-1",children:[e.jsxs("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:[e.jsx(L.Viewport,{asChild:!0,autoScroll:!0,children:e.jsxs(o,{isEmpty:r,children:[r&&e.jsx(n,{heading:g}),r&&!m&&s,m?e.jsx(i,{}):!r&&e.jsxs(e.Fragment,{children:[e.jsx(rt,{}),e.jsxs(a,{children:[e.jsx(L.Messages,{children:({message:f})=>e.jsx(ft,{children:e.jsx(pt,{isEditing:f.role==="user"&&f.composer.isEditing})})}),e.jsx(at,{})]})]})]})}),!m&&!r&&e.jsxs(d,{isEmpty:r,children:[e.jsx(L.ScrollToBottom,{asChild:!0,children:e.jsx(l,{})}),s]})]}),e.jsx(mt,{})]})})})})})})}function xt(){return e.jsx(gt,{composer:e.jsx(st,{})})}function bt({className:s}){const t=qe(),n=I(a=>a.threadListItem.title);if(t===null)return null;const i=(n==null?void 0:n.trim())??"",l=t.allowThreadTitle&&i.length>0?i:t.name;return e.jsxs("h1",{className:T("flex min-w-0 items-center gap-1.5",Ke,s),children:[e.jsx("span",{className:"truncate",title:l,children:l}),t.isEditing?e.jsx(Qe,{content:"Try changes here, then choose Update agent to save.",side:"bottom",children:e.jsxs("span",{className:"border-warning-bg/40 bg-warning-bg/10 text-warning-bg inline-flex shrink-0 items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium",children:[e.jsx(_,{name:"pencil",className:"size-3"}),"Editing"]})}):null]})}function vt({className:s,labeled:t=!1,onAction:n}){const i=B(),l=te(),a=oe(),{mode:d,setTheme:c}=Ve(),o=x("ShellActionsActionSlot"),r=d==="dark",m=r?"Light":"Dark",g=We({catalog:l,capabilities:a}),f="hover:bg-secondary-button-hover hover:text-ghost-button-text";return e.jsxs("div",{className:T("flex shrink-0 items-center gap-1",t?"w-full flex-col items-center gap-1 text-sidebar-text":"text-text-primary",s),children:[e.jsxs("a",{href:"https://trueforge.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"Documentation",title:"Documentation",className:U({variant:"ghost",size:t?void 0:"icon",className:T(f,t&&H)}),onClick:()=>n==null?void 0:n(),children:[e.jsx(_,{name:"book-open",size:t?14:void 0}),t?e.jsx("span",{className:"text-center",children:"Docs"}):null]}),e.jsxs("button",{type:"button","aria-label":r?"Switch to light theme":"Switch to dark theme",title:r?"Light theme":"Dark theme",className:U({variant:"ghost",size:t?void 0:"icon",className:T(f,t&&H)}),onClick:()=>{c(r?"light":"dark"),n==null||n()},children:[e.jsx(_,{name:r?"sun":"moon",size:t?14:void 0}),t?e.jsx("span",{className:"text-center",children:m}):null]}),i!=null&&g?e.jsxs("button",{type:"button","aria-label":"Settings",title:"Settings","aria-expanded":i.settingsOpen,"aria-current":i.settingsOpen?"page":void 0,className:U({variant:"ghost",size:t?void 0:"icon",className:T(f,t&&H,i.settingsOpen&&"bg-primary-button-bg font-medium text-primary-button-text hover:bg-primary-button-hover hover:text-primary-button-text")}),onClick:()=>{i.setSettingsOpen(!0),n==null||n()},children:[e.jsx(_,{name:"settings",size:t?14:void 0}),t?e.jsx("span",{className:"text-center",children:"Settings"}):null]}):null,e.jsx(o,{})]})}function Ct({showClose:s=!1}){var D,W;const{agentSpec:t}=se(),n=Oe(),i=Fe(),l=_e(),a=l.mode.status==="active"?l.mode.agentId:void 0,{allows:d}=Be({resourceType:"agent",resourceIds:a==null?[]:[a]}),c=d(a,"MANAGE"),o=X(),r=oe(),m=ne(),g=x("AgentConfigPanel"),f=x("AgentConfigEditors"),[p,b]=u.useState(null),w=Ue(l.mode),{draft:h,flush:S}=He(),j=u.useCallback(()=>{S(),i(),l.setAgentConfigOpen(!1)},[i,S,l]);u.useEffect(()=>{w&&m.ensureLoaded()},[m,w]),u.useEffect(()=>{c||b(null)},[c]),u.useEffect(()=>{if(!s||!l.agentConfigOpen)return;const v=R=>{!R.defaultPrevented&&R.key==="Escape"&&p===null&&document.querySelector("dialog[open]")===null&&j()};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[j,p,l.agentConfigOpen,s]),u.useEffect(()=>()=>{S();try{i()}catch{}},[i,S]);const k=u.useCallback(({next:v,instructions:R})=>{var q;if(c){if(v.skills&&v.skills.length>0&&(r==null?void 0:r.sandbox.enabled)===!0){n==null||n({...v,instructions:R||void 0,config:{...v.config,sandbox:{...(q=v.config)==null?void 0:q.sandbox,enabled:!0}}});return}n==null||n({...v,instructions:R||void 0})}},[c,r==null?void 0:r.sandbox.enabled,n]),A=u.useCallback(v=>{k({next:v,instructions:h})},[k,h]),y=u.useCallback(v=>{t!==null&&k({next:ze({spec:t,messages:v.messages}),instructions:v.instructions})},[t,k]),M=u.useCallback(async v=>(o==null?void 0:o.getMcpTools)===void 0?[]:o.getMcpTools({connectorId:v}),[o]),C=u.useCallback(async v=>{var R;return(R=o==null?void 0:o.getMcpConnector)==null?void 0:R.call(o,{connectorId:v})},[o]);if(!w||t===null||s&&!l.agentConfigOpen)return null;const E=m.models.find(v=>v.name===t.model.name);return e.jsxs(e.Fragment,{children:[e.jsx(g,{spec:t,model:E,models:m.models,modelsLoading:m.loading,modelsError:m.error,skills:m.skills,skillsAvailable:(r==null?void 0:r.skill.enabled)===!0,webSearchAvailable:((D=r==null?void 0:r.webSearch)==null?void 0:D.enabled)===!0,instructions:h,onOpenEditor:v=>{c&&b(v)},onChange:A,disabled:!c,onClose:s?j:void 0}),e.jsx(f,{editor:p,spec:t,models:m.models,connectors:m.connectors,skills:m.skills,loading:m.loading,error:m.error,skillsDisabled:(r==null?void 0:r.skill.enabled)!==!0,sandboxAvailable:(r==null?void 0:r.sandbox.enabled)===!0,webSearchAvailable:((W=r==null?void 0:r.webSearch)==null?void 0:W.enabled)===!0,instructions:h,onInstructionsSave:y,...(o==null?void 0:o.getMcpConnector)===void 0?{}:{loadMcpConnector:C},loadMcpTools:M,onRefreshConnectors:m.refreshConnectors,onChange:A,onClose:()=>b(null)})]})}export{Ct as A,bt as N,vt as S,xt as T};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./SettingsBuilder-OU3B7YHU-S7QVus7g.js","./index-BJYXg0vg.js","./index-B01pXqvC.css","./SchedulesPage-UNS7BDS6-u3WcJt5Z.js","./chunk-EGUH4WJX-8KVKzdgH.js","./EnvironmentsPage-YV2D2VMM-Bd6RGp02.js"])))=>i.map(i=>d[i]);
2
- import{u as _,b as P,d as t,e as L,r as a,j as s,S as c,P as z,I as l,f as d,g as B,_ as u}from"./index-BJYXg0vg.js";import{N as I,T,S as k,A as D}from"./chunk-RO36YFVR-BQ4Ajb8a.js";var V=a.lazy(()=>u(()=>import("./SettingsBuilder-OU3B7YHU-S7QVus7g.js"),__vite__mapDeps([0,1,2]),import.meta.url)),R=a.lazy(()=>u(()=>import("./SchedulesPage-UNS7BDS6-u3WcJt5Z.js"),__vite__mapDeps([3,4,1,2]),import.meta.url).then(n=>({default:n.SchedulesPage}))),F=a.lazy(()=>u(()=>import("./EnvironmentsPage-YV2D2VMM-Bd6RGp02.js"),__vite__mapDeps([5,4,1,2]),import.meta.url).then(n=>({default:n.EnvironmentsPage})));function q({className:n,threadHeaderEnd:f}){const r=_(),e=P(),j=t("ClearChatButton"),g=t("AgentDetailsPage"),v=t("AgentsLibrary"),b=t("SessionsPage"),h=t("ShareChatButton"),N=t("SaveAgentButton"),y=t("SelectAgentEmptyState"),A=t("UserAvatar"),i=(e==null?void 0:e.mode.status)==="idle",S=(e==null?void 0:e.settingsOpen)===!0,o=(e==null?void 0:e.libraryOpen)===!0,C=(e==null?void 0:e.sessionsOpen)===!0,m=(e==null?void 0:e.schedulesOpen)===!0,x=(e==null?void 0:e.environmentsOpen)===!0,O=L(),p=(e==null?void 0:e.isNewChatEnabled)!==!1;a.useEffect(()=>{i||Promise.resolve(r.threads().switchToNewThread()).catch(()=>{})},[r,i]);const w=()=>{if(e==null||e.setLibraryOpen(!1),e==null||e.setSessionsOpen(!1),e!=null&&e.isComposerEnabled){e.openDraft();return}e==null||e.setSettingsOpen(!1),e==null||e.setSchedulesOpen(!1),e==null||e.setEnvironmentsOpen(!1),Promise.resolve(r.threads().switchToNewThread()).catch(()=>{})},E=()=>{e==null||e.setLibraryOpen(!1),e==null||e.setSessionsOpen(!1),e!=null&&e.isComposerEnabled&&e.openAgentBuilder()};return s.jsxs("div",{className:B("relative flex h-full min-h-0 flex-col",n),children:[S?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(a.Suspense,{fallback:s.jsxs("div",{className:"flex h-full items-center justify-center",role:"status","aria-live":"polite","aria-busy":"true",children:[s.jsx(c,{size:28,className:"text-text-primary"}),s.jsx("span",{className:"sr-only",children:"Loading"})]}),children:s.jsx(V,{})})}):C?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(b,{})}):o&&(e==null?void 0:e.libraryAgentId)!=null?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(g,{agentId:e.libraryAgentId},e.libraryAgentId)}):o?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(v,{})}):m?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(a.Suspense,{fallback:s.jsxs("div",{className:"flex h-full items-center justify-center",role:"status","aria-live":"polite","aria-busy":"true",children:[s.jsx(c,{size:28,className:"text-text-primary"}),s.jsx("span",{className:"sr-only",children:"Loading"})]}),children:s.jsx(R,{})})}):x?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(a.Suspense,{fallback:s.jsxs("div",{className:"flex h-full items-center justify-center",role:"status","aria-live":"polite","aria-busy":"true",children:[s.jsx(c,{size:28,className:"text-text-primary"}),s.jsx("span",{className:"sr-only",children:"Loading"})]}),children:s.jsx(F,{})})}):s.jsxs(s.Fragment,{children:[s.jsx(z,{start:s.jsxs(s.Fragment,{children:[p&&!O?s.jsx("button",{type:"button","aria-label":"New Chat",title:"New Chat",className:d({variant:"ghost",size:"icon"}),onClick:w,children:s.jsx(l,{name:"square-pen"})}):null,p&&(e!=null&&e.isComposerEnabled)?s.jsx("button",{type:"button","aria-label":"New Agent",title:"New Agent",className:d({variant:"ghost",size:"icon"}),onClick:E,children:s.jsx(l,{name:"agent-2"})}):null]}),title:s.jsx(I,{}),end:s.jsxs(s.Fragment,{children:[s.jsx(h,{}),s.jsx(j,{}),s.jsx(N,{}),f]})}),s.jsx("div",{className:"min-h-0 flex-1",children:i?s.jsx(y,{}):s.jsx(T,{})})]}),s.jsxs("footer",{className:"flex shrink-0 items-center justify-between border-t border-border px-2 py-1.5",children:[s.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[o||m||x?s.jsxs("button",{type:"button",className:d({variant:"ghost",size:"small"}),onClick:()=>{e==null||e.setLibraryOpen(!1),e==null||e.setSchedulesOpen(!1),e==null||e.setEnvironmentsOpen(!1)},children:[s.jsx(l,{name:"arrow-left"}),"Back to chat"]}):null,s.jsx(A,{})]}),s.jsx(k,{},"shell-actions")]}),e!=null&&e.agentConfigOpen?s.jsx("aside",{role:"dialog","aria-label":"Agent Config",className:"absolute inset-0 z-20 border-l border-border shadow-xl",children:s.jsx(D,{showClose:!0})}):null]})}export{q as S};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./SettingsBuilder-OU3B7YHU-DYpXgbEN.js","./index-D6YKMpJU.js","./index-B01pXqvC.css","./SchedulesPage-UNS7BDS6-CjgOxBTD.js","./chunk-EGUH4WJX-SANPGRqh.js","./EnvironmentsPage-YV2D2VMM-DlNlyfm2.js"])))=>i.map(i=>d[i]);
2
+ import{u as _,b as P,d as t,e as L,r as a,j as s,S as c,P as z,I as l,f as d,g as B,_ as u}from"./index-D6YKMpJU.js";import{N as I,T,S as k,A as D}from"./chunk-RO36YFVR-D08M8Asc.js";var V=a.lazy(()=>u(()=>import("./SettingsBuilder-OU3B7YHU-DYpXgbEN.js"),__vite__mapDeps([0,1,2]),import.meta.url)),R=a.lazy(()=>u(()=>import("./SchedulesPage-UNS7BDS6-CjgOxBTD.js"),__vite__mapDeps([3,4,1,2]),import.meta.url).then(n=>({default:n.SchedulesPage}))),F=a.lazy(()=>u(()=>import("./EnvironmentsPage-YV2D2VMM-DlNlyfm2.js"),__vite__mapDeps([5,4,1,2]),import.meta.url).then(n=>({default:n.EnvironmentsPage})));function q({className:n,threadHeaderEnd:f}){const r=_(),e=P(),j=t("ClearChatButton"),g=t("AgentDetailsPage"),v=t("AgentsLibrary"),b=t("SessionsPage"),h=t("ShareChatButton"),N=t("SaveAgentButton"),y=t("SelectAgentEmptyState"),A=t("UserAvatar"),i=(e==null?void 0:e.mode.status)==="idle",S=(e==null?void 0:e.settingsOpen)===!0,o=(e==null?void 0:e.libraryOpen)===!0,C=(e==null?void 0:e.sessionsOpen)===!0,m=(e==null?void 0:e.schedulesOpen)===!0,x=(e==null?void 0:e.environmentsOpen)===!0,O=L(),p=(e==null?void 0:e.isNewChatEnabled)!==!1;a.useEffect(()=>{i||Promise.resolve(r.threads().switchToNewThread()).catch(()=>{})},[r,i]);const w=()=>{if(e==null||e.setLibraryOpen(!1),e==null||e.setSessionsOpen(!1),e!=null&&e.isComposerEnabled){e.openDraft();return}e==null||e.setSettingsOpen(!1),e==null||e.setSchedulesOpen(!1),e==null||e.setEnvironmentsOpen(!1),Promise.resolve(r.threads().switchToNewThread()).catch(()=>{})},E=()=>{e==null||e.setLibraryOpen(!1),e==null||e.setSessionsOpen(!1),e!=null&&e.isComposerEnabled&&e.openAgentBuilder()};return s.jsxs("div",{className:B("relative flex h-full min-h-0 flex-col",n),children:[S?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(a.Suspense,{fallback:s.jsxs("div",{className:"flex h-full items-center justify-center",role:"status","aria-live":"polite","aria-busy":"true",children:[s.jsx(c,{size:28,className:"text-text-primary"}),s.jsx("span",{className:"sr-only",children:"Loading"})]}),children:s.jsx(V,{})})}):C?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(b,{})}):o&&(e==null?void 0:e.libraryAgentId)!=null?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(g,{agentId:e.libraryAgentId},e.libraryAgentId)}):o?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(v,{})}):m?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(a.Suspense,{fallback:s.jsxs("div",{className:"flex h-full items-center justify-center",role:"status","aria-live":"polite","aria-busy":"true",children:[s.jsx(c,{size:28,className:"text-text-primary"}),s.jsx("span",{className:"sr-only",children:"Loading"})]}),children:s.jsx(R,{})})}):x?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(a.Suspense,{fallback:s.jsxs("div",{className:"flex h-full items-center justify-center",role:"status","aria-live":"polite","aria-busy":"true",children:[s.jsx(c,{size:28,className:"text-text-primary"}),s.jsx("span",{className:"sr-only",children:"Loading"})]}),children:s.jsx(F,{})})}):s.jsxs(s.Fragment,{children:[s.jsx(z,{start:s.jsxs(s.Fragment,{children:[p&&!O?s.jsx("button",{type:"button","aria-label":"New Chat",title:"New Chat",className:d({variant:"ghost",size:"icon"}),onClick:w,children:s.jsx(l,{name:"square-pen"})}):null,p&&(e!=null&&e.isComposerEnabled)?s.jsx("button",{type:"button","aria-label":"New Agent",title:"New Agent",className:d({variant:"ghost",size:"icon"}),onClick:E,children:s.jsx(l,{name:"agent-2"})}):null]}),title:s.jsx(I,{}),end:s.jsxs(s.Fragment,{children:[s.jsx(h,{}),s.jsx(j,{}),s.jsx(N,{}),f]})}),s.jsx("div",{className:"min-h-0 flex-1",children:i?s.jsx(y,{}):s.jsx(T,{})})]}),s.jsxs("footer",{className:"flex shrink-0 items-center justify-between border-t border-border px-2 py-1.5",children:[s.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[o||m||x?s.jsxs("button",{type:"button",className:d({variant:"ghost",size:"small"}),onClick:()=>{e==null||e.setLibraryOpen(!1),e==null||e.setSchedulesOpen(!1),e==null||e.setEnvironmentsOpen(!1)},children:[s.jsx(l,{name:"arrow-left"}),"Back to chat"]}):null,s.jsx(A,{})]}),s.jsx(k,{},"shell-actions")]}),e!=null&&e.agentConfigOpen?s.jsx("aside",{role:"dialog","aria-label":"Agent Config",className:"absolute inset-0 z-20 border-l border-border shadow-xl",children:s.jsx(D,{showClose:!0})}):null]})}export{q as S};
@@ -1 +1 @@
1
- import{c as h}from"./workers-BIrSmuuV.js";import{C as c,H as u,D as p,a as m,R as f,b as _,c as w,d as k,F as v,e as D,S as P,f as R,g as C}from"./lspLanguageFeatures-CET8ZB_H.js";import{h as U,i as y,j as T,t as x,k as O}from"./lspLanguageFeatures-CET8ZB_H.js";import{l as s}from"./index-CG1biynV.js";import"./index-BJYXg0vg.js";const I=120*1e3;class A{constructor(n){this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>I&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=h({moduleId:"vs/language/css/cssWorker",createWorker:()=>new Worker(new URL(""+new URL("css.worker-CH7Os8C2.js",import.meta.url).href,import.meta.url),{type:"module"}),label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...n){let e;return this._getClient().then(a=>{e=a}).then(a=>{if(this._worker)return this._worker.withSyncedResources(n)}).then(a=>e)}}function E(o){const n=[],e=[],a=new A(o);n.push(a);const r=(...t)=>a.getLanguageServiceWorker(...t);function l(){const{languageId:t,modeConfiguration:i}=o;g(e),i.completionItems&&e.push(s.registerCompletionItemProvider(t,new c(r,["/","-",":"]))),i.hovers&&e.push(s.registerHoverProvider(t,new u(r))),i.documentHighlights&&e.push(s.registerDocumentHighlightProvider(t,new p(r))),i.definitions&&e.push(s.registerDefinitionProvider(t,new m(r))),i.references&&e.push(s.registerReferenceProvider(t,new f(r))),i.documentSymbols&&e.push(s.registerDocumentSymbolProvider(t,new _(r))),i.rename&&e.push(s.registerRenameProvider(t,new w(r))),i.colors&&e.push(s.registerColorProvider(t,new k(r))),i.foldingRanges&&e.push(s.registerFoldingRangeProvider(t,new v(r))),i.diagnostics&&e.push(new D(t,r,o.onDidChange)),i.selectionRanges&&e.push(s.registerSelectionRangeProvider(t,new P(r))),i.documentFormattingEdits&&e.push(s.registerDocumentFormattingEditProvider(t,new R(r))),i.documentRangeFormattingEdits&&e.push(s.registerDocumentRangeFormattingEditProvider(t,new C(r)))}return l(),n.push(d(e)),d(n)}function d(o){return{dispose:()=>g(o)}}function g(o){for(;o.length;)o.pop().dispose()}export{c as CompletionAdapter,m as DefinitionAdapter,D as DiagnosticsAdapter,k as DocumentColorAdapter,R as DocumentFormattingEditProvider,p as DocumentHighlightAdapter,U as DocumentLinkAdapter,C as DocumentRangeFormattingEditProvider,_ as DocumentSymbolAdapter,v as FoldingRangeAdapter,u as HoverAdapter,f as ReferenceAdapter,w as RenameAdapter,P as SelectionRangeAdapter,A as WorkerManager,y as fromPosition,T as fromRange,E as setupMode,x as toRange,O as toTextEdit};
1
+ import{c as h}from"./workers--wwmRDDg.js";import{C as c,H as u,D as p,a as m,R as f,b as _,c as w,d as k,F as v,e as D,S as P,f as R,g as C}from"./lspLanguageFeatures-Dru3qdb_.js";import{h as U,i as y,j as T,t as x,k as O}from"./lspLanguageFeatures-Dru3qdb_.js";import{l as s}from"./index-DyV3Kxi4.js";import"./index-D6YKMpJU.js";const I=120*1e3;class A{constructor(n){this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>I&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=h({moduleId:"vs/language/css/cssWorker",createWorker:()=>new Worker(new URL(""+new URL("css.worker-CH7Os8C2.js",import.meta.url).href,import.meta.url),{type:"module"}),label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...n){let e;return this._getClient().then(a=>{e=a}).then(a=>{if(this._worker)return this._worker.withSyncedResources(n)}).then(a=>e)}}function E(o){const n=[],e=[],a=new A(o);n.push(a);const r=(...t)=>a.getLanguageServiceWorker(...t);function l(){const{languageId:t,modeConfiguration:i}=o;g(e),i.completionItems&&e.push(s.registerCompletionItemProvider(t,new c(r,["/","-",":"]))),i.hovers&&e.push(s.registerHoverProvider(t,new u(r))),i.documentHighlights&&e.push(s.registerDocumentHighlightProvider(t,new p(r))),i.definitions&&e.push(s.registerDefinitionProvider(t,new m(r))),i.references&&e.push(s.registerReferenceProvider(t,new f(r))),i.documentSymbols&&e.push(s.registerDocumentSymbolProvider(t,new _(r))),i.rename&&e.push(s.registerRenameProvider(t,new w(r))),i.colors&&e.push(s.registerColorProvider(t,new k(r))),i.foldingRanges&&e.push(s.registerFoldingRangeProvider(t,new v(r))),i.diagnostics&&e.push(new D(t,r,o.onDidChange)),i.selectionRanges&&e.push(s.registerSelectionRangeProvider(t,new P(r))),i.documentFormattingEdits&&e.push(s.registerDocumentFormattingEditProvider(t,new R(r))),i.documentRangeFormattingEdits&&e.push(s.registerDocumentRangeFormattingEditProvider(t,new C(r)))}return l(),n.push(d(e)),d(n)}function d(o){return{dispose:()=>g(o)}}function g(o){for(;o.length;)o.pop().dispose()}export{c as CompletionAdapter,m as DefinitionAdapter,D as DiagnosticsAdapter,k as DocumentColorAdapter,R as DocumentFormattingEditProvider,p as DocumentHighlightAdapter,U as DocumentLinkAdapter,C as DocumentRangeFormattingEditProvider,_ as DocumentSymbolAdapter,v as FoldingRangeAdapter,u as HoverAdapter,f as ReferenceAdapter,w as RenameAdapter,P as SelectionRangeAdapter,A as WorkerManager,y as fromPosition,T as fromRange,E as setupMode,x as toRange,O as toTextEdit};
@@ -0,0 +1,10 @@
1
+  ��5seQ����??_�i���k��R��V|�^#�ees�~���I�١4B"BK�xO��}�HM��;SGcI4Be�]�twA�@2q�+.2 =�J��!��vv��%�0&�d1��/�S�e8�K,��(ǖNh����S��T�V��r�v��Q�������
2
+ ӜyW���N�߮u�Uz����Iux�m��������\�[��W��t
3
+ ]Uf߂�m�"��z�����3j��HLeJ��漙��������X0nҊaY�&L�lL&� _��
4
+ Ѕ���Ys��j$ �6Y#�;'����9�}��:vF)��| ��C�sԻ#�-%B-�k����
5
+ ���h�P�s;7�i�%�gf3Y�� ��Wl&m���Yc��\?����
6
+ =�9�҉�9&ʝ%�l���2x�b,Q�u�gP0�������]H��8j^����'ƘB7�6��b ,Oy����<��@����*���]�*��B��U(hO���|{4�����O/$ی/���t���� �����l�2���X����\�S4��;����s� �Fl&�vź��4fְ�>!� ��Z���jz
7
+ B
8
+ �_��� �`5N;��q���\3Ҩkv��|o��qc�oxuK2����� ��fF��7,��)X�3q��7︽�F(�k��ѹ@%�c�MB��ک]0;�kwI81�&��NV*m�(�4�`�&=")3�*Mq�����<����ӎT�#FI�s�'�T�+!�8JWN����L�X������
9
+ ��κ�P� %�N�B��-���U�Aox�M"}~���*+k�aL���p�[��r\%!c�%��RE�W5 w#g΄���h�
10
+ xc��>� $5��\�*Ba����J�O8gR���G�n� @-�wr�JW�K���-�|����'Z@7m5:s��y-;����?
@@ -1,3 +1,3 @@
1
- import{l as c}from"./index-CG1biynV.js";import"./index-BJYXg0vg.js";const s=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],d=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],r={close:">",id:"angle",open:"<"},a={close:"\\]",id:"bracket",open:"\\["},F={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:`
1
+ import{l as c}from"./index-DyV3Kxi4.js";import"./index-D6YKMpJU.js";const s=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],d=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],r={close:">",id:"angle",open:"<"},a={close:"\\]",id:"bracket",open:"\\["},F={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:`
2
2
  \r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`${t.open}#(?:${d.join("|")})([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),end:new RegExp(`${t.open}/#(?:${d.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`${t.open}#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),afterText:new RegExp(`^${t.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${t.close}$`),action:{indentAction:c.IndentAction.IndentOutdent}},{beforeText:new RegExp(`${t.open}#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),action:{indentAction:c.IndentAction.Indent}}]}}function g(){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],autoCloseBefore:`
3
3
  \r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`[<\\[]#(?:${d.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),end:new RegExp(`[<\\[]/#(?:${d.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`[<\\[]#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:c.IndentAction.IndentOutdent}},{beforeText:new RegExp(`[<\\[]#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),action:{indentAction:c.IndentAction.Indent}}]}}function _(t,n){const i=`_${t.id}_${n.id}`,e=u=>u.replace(/__id__/g,i),o=u=>{const m=u.source.replace(/__id__/g,i);return new RegExp(m,u.flags)};return{unicode:!0,includeLF:!1,start:e("default__id__"),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],[e("open__id__")]:new RegExp(t.open),[e("close__id__")]:new RegExp(t.close),[e("iOpen1__id__")]:new RegExp(n.open1),[e("iOpen2__id__")]:new RegExp(n.open2),[e("iClose__id__")]:new RegExp(n.close),[e("startTag__id__")]:o(/(@open__id__)(#)/),[e("endTag__id__")]:o(/(@open__id__)(\/#)/),[e("startOrEndTag__id__")]:o(/(@open__id__)(\/?#)/),[e("closeTag1__id__")]:o(/((?:@blank)*)(@close__id__)/),[e("closeTag2__id__")]:o(/((?:@blank)*\/?)(@close__id__)/),blank:/[ \t\n\r]/,keywords:["false","true","in","as","using"],directiveStartCloseTag1:/attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,directiveStartCloseTag2:/else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,directiveStartBlank:/if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,directiveEndCloseTag1:/if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,escapedChar:/\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,asciiDigit:/[0-9]/,integer:/[0-9]+/,nonEscapedIdStartChar:/[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,escapedIdChar:/\\[\-\.:#]/,idStartChar:/(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,id:/(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,specialHashKeys:/\*\*|\*|false|true|in|as|using/,namedSymbols:/&lt;=|&gt;=|\\lte|\\lt|&lt;|\\gte|\\gt|&gt;|&amp;&amp;|\\and|-&gt;|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,arrows:["->","-&gt;"],delimiters:[";",":",",","."],stringOperators:["lte","lt","gte","gt"],noParseTags:["noparse","noParse","comment"],tokenizer:{[e("default__id__")]:[{include:e("@directive_token__id__")},{include:e("@interpolation_and_text_token__id__")}],[e("fmExpression__id__.directive")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("fmExpression__id__.interpolation")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("inParen__id__.plain")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("inParen__id__.gt")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("noSpaceExpression__id__")]:[{include:e("@no_space_expression_end_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("unifiedCall__id__")]:[{include:e("@unified_call_token__id__")}],[e("singleString__id__")]:[{include:e("@string_single_token__id__")}],[e("doubleString__id__")]:[{include:e("@string_double_token__id__")}],[e("rawSingleString__id__")]:[{include:e("@string_single_raw_token__id__")}],[e("rawDoubleString__id__")]:[{include:e("@string_double_raw_token__id__")}],[e("expressionComment__id__")]:[{include:e("@expression_comment_token__id__")}],[e("noParse__id__")]:[{include:e("@no_parse_token__id__")}],[e("terseComment__id__")]:[{include:e("@terse_comment_token__id__")}],[e("directive_token__id__")]:[[o(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:e("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)(@)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:e("@unifiedCall__id__")}]],[o(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)#--/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:{token:"comment",next:e("@terseComment__id__")}],[o(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:e("@fmExpression__id__.directive")}]]],[e("interpolation_and_text_token__id__")]:[[o(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:n.id==="bracket"?"@brackets.interpolation":"delimiter.interpolation"},{token:n.id==="bracket"?"delimiter.interpolation":"@brackets.interpolation",next:e("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]],[e("string_single_token__id__")]:[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]],[e("string_double_token__id__")]:[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]],[e("string_single_raw_token__id__")]:[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]],[e("string_double_raw_token__id__")]:[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]],[e("expression_token__id__")]:[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:e("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:e("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:e("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:e("@doubleString__id__")}]}}],[/(?:@integer)(?:\.(?:@integer))?/,{cases:{"(?:@integer)":{token:"number"},"@default":{token:"number.float"}}}],[/(\.)(@blank*)(@specialHashKeys)/,[{token:"delimiter"},{token:""},{token:"identifier"}]],[/(?:@namedSymbols)/,{cases:{"@arrows":{token:"meta.arrow"},"@delimiters":{token:"delimiter"},"@default":{token:"operators"}}}],[/@id/,{cases:{"@keywords":{token:"keyword.$0"},"@stringOperators":{token:"operators"},"@default":{token:"identifier"}}}],[/[\[\]\(\)\{\}]/,{cases:{"\\[":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\]":{cases:{...n.id==="bracket"?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{},...t.id==="bracket"?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\(":{token:"@brackets",next:e("@inParen__id__.gt")},"\\)":{cases:{[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\}":{cases:{...n.id==="bracket"?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}}}}],[/\$\{/,{token:"delimiter.invalid"}]],[e("blank_and_expression_comment_token__id__")]:[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:e("@expressionComment__id__")}]],[e("directive_end_token__id__")]:[[/>/,t.id==="bracket"?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[o(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]],[e("greater_operators_token__id__")]:[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]],[e("no_space_expression_end_token__id__")]:[[/(?:@blank)+/,{token:"",switchTo:e("@fmExpression__id__.directive")}]],[e("unified_call_token__id__")]:[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:e("@noSpaceExpression__id__")}]],[e("no_parse_token__id__")]:[[o(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),{cases:{"$S2==$3":[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:""},{token:"@brackets.directive",next:"@popall"}],"$S2==comment":[{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"}],"@default":[{token:"source"},{token:"source"},{token:"source"},{token:"source"},{token:"source"}]}}],[/[^<\[\-]+|[<\[\-]/,{cases:{"$S2==comment":{token:"comment"},"@default":{token:"source"}}}]],[e("expression_comment_token__id__")]:[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]],[e("terse_comment_token__id__")]:[[o(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]}}}function A(t){const n=_(r,t),i=_(a,t),e=_(F,t);return{...n,...i,...e,unicode:!0,includeLF:!1,start:`default_auto_${t.id}`,ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{...n.tokenizer,...i.tokenizer,...e.tokenizer}}}const x={conf:l(r),language:_(r,k)},$={conf:l(a),language:_(a,k)},E={conf:l(r),language:_(r,p)},B={conf:l(a),language:_(a,p)},D={conf:g(),language:A(k)},C={conf:g(),language:A(p)};export{E as TagAngleInterpolationBracket,x as TagAngleInterpolationDollar,C as TagAutoInterpolationBracket,D as TagAutoInterpolationDollar,B as TagBracketInterpolationBracket,$ as TagBracketInterpolationDollar};
@@ -1 +1 @@
1
- import{l as e}from"./index-CG1biynV.js";import"./index-BJYXg0vg.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],m={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}]},r={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{m as conf,r as language};
1
+ import{l as e}from"./index-DyV3Kxi4.js";import"./index-D6YKMpJU.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],m={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}]},r={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{m as conf,r as language};
@@ -1 +1 @@
1
- import{l as e}from"./index-CG1biynV.js";import"./index-BJYXg0vg.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")}}},o={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{r as conf,o as language};
1
+ import{l as e}from"./index-DyV3Kxi4.js";import"./index-D6YKMpJU.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")}}},o={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{r as conf,o as language};
@@ -1 +1 @@
1
- import{c as D}from"./workers-BIrSmuuV.js";import{H as d,D as l,h as c,F as u,b as h,S as m,c as p,f as w,g as f,C as R}from"./lspLanguageFeatures-CET8ZB_H.js";import{a as b,e as y,d as T,R as U,i as x,j as M,t as j,k as O}from"./lspLanguageFeatures-CET8ZB_H.js";import{l as t}from"./index-CG1biynV.js";import"./index-BJYXg0vg.js";const I=120*1e3;class _{constructor(n){this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>I&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=D({moduleId:"vs/language/html/htmlWorker",createWorker:()=>new Worker(new URL(""+new URL("html.worker-DTgyLzoY.js",import.meta.url).href,import.meta.url),{type:"module"}),createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...n){let e;return this._getClient().then(r=>{e=r}).then(r=>{if(this._worker)return this._worker.withSyncedResources(n)}).then(r=>e)}}class v extends R{constructor(n){super(n,[".",":","<",'"',"=","/"])}}function W(i){const n=new _(i),e=(...o)=>n.getLanguageServiceWorker(...o);let r=i.languageId;t.registerCompletionItemProvider(r,new v(e)),t.registerHoverProvider(r,new d(e)),t.registerDocumentHighlightProvider(r,new l(e)),t.registerLinkProvider(r,new c(e)),t.registerFoldingRangeProvider(r,new u(e)),t.registerDocumentSymbolProvider(r,new h(e)),t.registerSelectionRangeProvider(r,new m(e)),t.registerRenameProvider(r,new p(e)),r==="html"&&(t.registerDocumentFormattingEditProvider(r,new w(e)),t.registerDocumentRangeFormattingEditProvider(r,new f(e)))}function F(i){const n=[],e=[],r=new _(i);n.push(r);const o=(...s)=>r.getLanguageServiceWorker(...s);function P(){const{languageId:s,modeConfiguration:a}=i;k(e),a.completionItems&&e.push(t.registerCompletionItemProvider(s,new v(o))),a.hovers&&e.push(t.registerHoverProvider(s,new d(o))),a.documentHighlights&&e.push(t.registerDocumentHighlightProvider(s,new l(o))),a.links&&e.push(t.registerLinkProvider(s,new c(o))),a.documentSymbols&&e.push(t.registerDocumentSymbolProvider(s,new h(o))),a.rename&&e.push(t.registerRenameProvider(s,new p(o))),a.foldingRanges&&e.push(t.registerFoldingRangeProvider(s,new u(o))),a.selectionRanges&&e.push(t.registerSelectionRangeProvider(s,new m(o))),a.documentFormattingEdits&&e.push(t.registerDocumentFormattingEditProvider(s,new w(o))),a.documentRangeFormattingEdits&&e.push(t.registerDocumentRangeFormattingEditProvider(s,new f(o)))}return P(),n.push(g(e)),g(n)}function g(i){return{dispose:()=>k(i)}}function k(i){for(;i.length;)i.pop().dispose()}export{R as CompletionAdapter,b as DefinitionAdapter,y as DiagnosticsAdapter,T as DocumentColorAdapter,w as DocumentFormattingEditProvider,l as DocumentHighlightAdapter,c as DocumentLinkAdapter,f as DocumentRangeFormattingEditProvider,h as DocumentSymbolAdapter,u as FoldingRangeAdapter,d as HoverAdapter,U as ReferenceAdapter,p as RenameAdapter,m as SelectionRangeAdapter,_ as WorkerManager,x as fromPosition,M as fromRange,F as setupMode,W as setupMode1,j as toRange,O as toTextEdit};
1
+ import{c as D}from"./workers--wwmRDDg.js";import{H as d,D as l,h as c,F as u,b as h,S as m,c as p,f as w,g as f,C as R}from"./lspLanguageFeatures-Dru3qdb_.js";import{a as b,e as y,d as T,R as U,i as x,j as M,t as j,k as O}from"./lspLanguageFeatures-Dru3qdb_.js";import{l as t}from"./index-DyV3Kxi4.js";import"./index-D6YKMpJU.js";const I=120*1e3;class _{constructor(n){this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>I&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=D({moduleId:"vs/language/html/htmlWorker",createWorker:()=>new Worker(new URL(""+new URL("html.worker-DTgyLzoY.js",import.meta.url).href,import.meta.url),{type:"module"}),createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...n){let e;return this._getClient().then(r=>{e=r}).then(r=>{if(this._worker)return this._worker.withSyncedResources(n)}).then(r=>e)}}class v extends R{constructor(n){super(n,[".",":","<",'"',"=","/"])}}function W(i){const n=new _(i),e=(...o)=>n.getLanguageServiceWorker(...o);let r=i.languageId;t.registerCompletionItemProvider(r,new v(e)),t.registerHoverProvider(r,new d(e)),t.registerDocumentHighlightProvider(r,new l(e)),t.registerLinkProvider(r,new c(e)),t.registerFoldingRangeProvider(r,new u(e)),t.registerDocumentSymbolProvider(r,new h(e)),t.registerSelectionRangeProvider(r,new m(e)),t.registerRenameProvider(r,new p(e)),r==="html"&&(t.registerDocumentFormattingEditProvider(r,new w(e)),t.registerDocumentRangeFormattingEditProvider(r,new f(e)))}function F(i){const n=[],e=[],r=new _(i);n.push(r);const o=(...s)=>r.getLanguageServiceWorker(...s);function P(){const{languageId:s,modeConfiguration:a}=i;k(e),a.completionItems&&e.push(t.registerCompletionItemProvider(s,new v(o))),a.hovers&&e.push(t.registerHoverProvider(s,new d(o))),a.documentHighlights&&e.push(t.registerDocumentHighlightProvider(s,new l(o))),a.links&&e.push(t.registerLinkProvider(s,new c(o))),a.documentSymbols&&e.push(t.registerDocumentSymbolProvider(s,new h(o))),a.rename&&e.push(t.registerRenameProvider(s,new p(o))),a.foldingRanges&&e.push(t.registerFoldingRangeProvider(s,new u(o))),a.selectionRanges&&e.push(t.registerSelectionRangeProvider(s,new m(o))),a.documentFormattingEdits&&e.push(t.registerDocumentFormattingEditProvider(s,new w(o))),a.documentRangeFormattingEdits&&e.push(t.registerDocumentRangeFormattingEditProvider(s,new f(o)))}return P(),n.push(g(e)),g(n)}function g(i){return{dispose:()=>k(i)}}function k(i){for(;i.length;)i.pop().dispose()}export{R as CompletionAdapter,b as DefinitionAdapter,y as DiagnosticsAdapter,T as DocumentColorAdapter,w as DocumentFormattingEditProvider,l as DocumentHighlightAdapter,c as DocumentLinkAdapter,f as DocumentRangeFormattingEditProvider,h as DocumentSymbolAdapter,u as FoldingRangeAdapter,d as HoverAdapter,U as ReferenceAdapter,p as RenameAdapter,m as SelectionRangeAdapter,_ as WorkerManager,x as fromPosition,M as fromRange,F as setupMode,W as setupMode1,j as toRange,O as toTextEdit};
@@ -0,0 +1,8 @@
1
+ �
2
  ��N���t�w���8c�Y*�����$&�)�Ji�����t��^-#L�
3
+ ��B6�~:�􌭒�k��C(�Ch�
4
+ t�� �+�na��L
5
+ ��o�����כNG�y^��cYc�n(�#jHi���4��HI:��I�o�t���u�����z���^�ƅ�� 2��9�� -����op�Gw0�����Ѧ��/?���OJ��/7{��Ň���';�����{�����S �.c�������GNj,VOJV�[��
6
+ 4ہe��;��RY���ޘФ��j������c�
7
+ kLF֗�yR��Y(�q�Lc5=��e�t�ll�a��mM��3V@||?�U�F��:
8
+ 5Z;%]������R�2�ܨY����IJ�MB�3���}g��T�6wH/�4�L�Te bҀh�En}NS>�g�(8 ��wZ�1-�l�'�B�(��UR��g�(���i9�x���"�3n-�y�'e���:,�o��>$-�;tZ��W�N��rx'�a� Ot����3+ "���r�h$�7��yp`�j��F&%k�N�\�j�:���O
9
+ *�*���*�k �:P��Xr�+��鐕��$����[�������dnxo�����_=0��$�~����<u����f����