n8n-editor-ui 1.119.1 → 1.120.1

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 (491) hide show
  1. package/dist/assets/{AddDataTableModal-78UiDOZ6.js → AddDataTableModal-CbPeeND7.js} +17 -17
  2. package/dist/assets/AddDataTableModal-legacy-TWGqOwvJ.js +165 -0
  3. package/dist/assets/AnimatedSpinner-legacy-a37yY0a9.js +35 -0
  4. package/dist/assets/AnnotationTagsDropdown.ee-legacy-m3_lZt5p.js +90 -0
  5. package/dist/assets/{AnnotationTagsDropdown.ee-B5SGfmxY.js → AnnotationTagsDropdown.ee-nr8ND2ZK.js} +2 -2
  6. package/dist/assets/{AuthView-CaCXt20h.js → AuthView-GQg0-dxd.js} +6 -6
  7. package/dist/assets/AuthView-legacy-BTkTpaqQ.js +170 -0
  8. package/dist/assets/{ChangePasswordView-sh87mWR6.js → ChangePasswordView-CMxYIEv7.js} +15 -15
  9. package/dist/assets/ChangePasswordView-legacy-UYMze_th.js +165 -0
  10. package/dist/assets/{ChatAgentsView-4SiYQ9YJ.js → ChatAgentsView-BF2UQldY.js} +22 -22
  11. package/dist/assets/ChatAgentsView-legacy-C-TEUCMJ.js +418 -0
  12. package/dist/assets/{ChatSidebar-C0XXqw3v.js → ChatSidebar-CwUIdqm5.js} +29 -24
  13. package/dist/assets/ChatSidebar-legacy-BcM0mdnb.js +485 -0
  14. package/dist/assets/{ChatView-BlkLzP1X.js → ChatView-CuoxXANC.js} +26 -26
  15. package/dist/assets/ChatView-legacy-DQzrDKVi.js +1192 -0
  16. package/dist/assets/CollectionParameter-legacy-BCZyr-W3.js +16 -0
  17. package/dist/assets/CollectionParameter-uOVc6KhF.js +58 -0
  18. package/dist/assets/{CommunityNodeUpdateInfo-Egv665vx.js → CommunityNodeUpdateInfo-BbQHVpK8.js} +8 -8
  19. package/dist/assets/CommunityNodeUpdateInfo-legacy-CffmFLEi.js +395 -0
  20. package/dist/assets/{CopyInput-DX-FL085.js → CopyInput-CiPK5ddq.js} +4 -4
  21. package/dist/assets/CopyInput-legacy-BbjpqRcT.js +141 -0
  22. package/dist/assets/{CredentialIcon-DS3l06t2.js → CredentialIcon-CwCVRpiA.js} +2 -2
  23. package/dist/assets/CredentialIcon-legacy-nJdgWX0p.js +110 -0
  24. package/dist/assets/{CredentialsView-C3SKDwtI.js → CredentialsView-Dq_bJCTX.js} +38 -38
  25. package/dist/assets/CredentialsView-legacy-CBU7oObS.js +562 -0
  26. package/dist/assets/{DataTableActions-lgRuMb9F.js → DataTableActions-1pCUiTrK.js} +9 -9
  27. package/dist/assets/DataTableActions-legacy-cggWdqxr.js +113 -0
  28. package/dist/assets/{DataTableDetailsView-CoWw-4gy.js → DataTableDetailsView-FZ996I2K.js} +23 -23
  29. package/dist/assets/DataTableDetailsView-legacy-T6s1xIYP.js +46280 -0
  30. package/dist/assets/{DataTableView-hUsgVnZS.js → DataTableView-0cgj7Yv8.js} +42 -35
  31. package/dist/assets/DataTableView-legacy-Bs1jkgGw.js +353 -0
  32. package/dist/assets/DemoFooter-CYGOF76r.js +70 -0
  33. package/dist/assets/DemoFooter-legacy-BDdJ7htI.js +39 -0
  34. package/dist/assets/{Draggable-DFf4aD-Y.js → Draggable-Cp3VJXN0.js} +1 -1
  35. package/dist/assets/Draggable-legacy-CyKi_Tb4.js +158 -0
  36. package/dist/assets/{EmptySharedSectionActionBox-BkPu0yI0.js → EmptySharedSectionActionBox-D83jdITF.js} +4 -4
  37. package/dist/assets/EmptySharedSectionActionBox-legacy-V1B39cgS.js +68 -0
  38. package/dist/assets/{EnterpriseEdition.ee-BoNEV-MB.js → EnterpriseEdition.ee-Dmuvy1Qj.js} +1 -1
  39. package/dist/assets/EnterpriseEdition.ee-legacy-D0gBfVDw.js +44 -0
  40. package/dist/assets/{EntityNotFound-Bs-aLs3W.js → EntityNotFound-BF7nteVf.js} +7 -7
  41. package/dist/assets/EntityNotFound-legacy-Bfl0-2gj.js +116 -0
  42. package/dist/assets/{EntityUnAuthorised-BwhGn6eD.js → EntityUnAuthorised-4No93VOO.js} +7 -7
  43. package/dist/assets/EntityUnAuthorised-legacy-DLIqjuJf.js +97 -0
  44. package/dist/assets/{ErrorView-Cvlb8nm0.js → ErrorView-GWT7FjjH.js} +9 -9
  45. package/dist/assets/ErrorView-legacy-CtfV-zYc.js +100 -0
  46. package/dist/assets/{EvaluationsRootView-DdOZORFr.js → EvaluationsRootView-C3RbV5Qf.js} +26 -26
  47. package/dist/assets/EvaluationsRootView-legacy-DNES1nzh.js +633 -0
  48. package/dist/assets/{EvaluationsView-DxiPOlGL.js → EvaluationsView-Da2okwlD.js} +20 -20
  49. package/dist/assets/EvaluationsView-legacy-DfePizpg.js +612 -0
  50. package/dist/assets/ExecutionsTime-legacy-CqDKZjaw.js +618 -0
  51. package/dist/assets/{ExecutionsTime-DwXL-TY4.js → ExecutionsTime-y_VFxk2z.js} +9 -9
  52. package/dist/assets/{ExecutionsView-B4XGhWmY.js → ExecutionsView-CHuoC0nO.js} +37 -37
  53. package/dist/assets/ExecutionsView-legacy-DD0RXem0.js +941 -0
  54. package/dist/assets/{ExternalSecretsProviderConnectionSwitch.ee-DCTg0mdX.js → ExternalSecretsProviderConnectionSwitch.ee-BQSSIasB.js} +4 -4
  55. package/dist/assets/ExternalSecretsProviderConnectionSwitch.ee-legacy-7UjbdgbG.js +269 -0
  56. package/dist/assets/FileSaver.min-legacy-BTN44Z38.js +100 -0
  57. package/dist/assets/{FixedCollectionParameter-DjdDaH5s.js → FixedCollectionParameter-BhQfNO8a.js} +48 -48
  58. package/dist/assets/FixedCollectionParameter-legacy-uiOfunC4.js +346 -0
  59. package/dist/assets/{ForgotMyPasswordView-KkAVBYit.js → ForgotMyPasswordView-V8EfVOR8.js} +15 -15
  60. package/dist/assets/ForgotMyPasswordView-legacy-BbZiFRc2.js +118 -0
  61. package/dist/assets/{InsightsChartAverageRuntime-D5Gh8Rz5.js → InsightsChartAverageRuntime-CfCpplsX.js} +8 -8
  62. package/dist/assets/InsightsChartAverageRuntime-legacy-C6yRYbdN.js +91 -0
  63. package/dist/assets/{InsightsChartFailed-D7PZ_ctV.js → InsightsChartFailed-DrX7-PQa.js} +7 -7
  64. package/dist/assets/InsightsChartFailed-legacy-BXNV41_X.js +82 -0
  65. package/dist/assets/{InsightsChartFailureRate-CpPU5Kwd.js → InsightsChartFailureRate-DGn_vu5L.js} +8 -8
  66. package/dist/assets/InsightsChartFailureRate-legacy-xpR-l77z.js +85 -0
  67. package/dist/assets/{InsightsChartTimeSaved-DYrv2t2N.js → InsightsChartTimeSaved-Fn70fEqD.js} +8 -8
  68. package/dist/assets/InsightsChartTimeSaved-legacy-DyXMw-Zj.js +99 -0
  69. package/dist/assets/{InsightsChartTotal-CNqL-Qn3.js → InsightsChartTotal-B0EltniK.js} +7 -7
  70. package/dist/assets/InsightsChartTotal-legacy-ny-Gn0NL.js +82 -0
  71. package/dist/assets/InsightsDashboard-legacy-bfD59wUo.js +562 -0
  72. package/dist/assets/{InsightsDashboard-CrJZtNDS.js → InsightsDashboard-vqQRDBrv.js} +36 -36
  73. package/dist/assets/{InsightsPaywall-DxgcxZ5z.js → InsightsPaywall-BKEVuxSt.js} +16 -16
  74. package/dist/assets/InsightsPaywall-legacy-By7YqflZ.js +83 -0
  75. package/dist/assets/{InsightsSummary-Bew3_p6D.js → InsightsSummary-DsQSWG2Q.js} +8 -8
  76. package/dist/assets/InsightsSummary-legacy-DK4uQ90J.js +225 -0
  77. package/dist/assets/{InsightsTableWorkflows-TAIASHgR.js → InsightsTableWorkflows-MahuiDFz.js} +16 -16
  78. package/dist/assets/InsightsTableWorkflows-legacy-By2jMj0_.js +269 -0
  79. package/dist/assets/{ItemsRenderer-BfXptelN.js → ItemsRenderer-CejxMtdi.js} +8 -8
  80. package/dist/assets/ItemsRenderer-legacy-Cv8U3BDP.js +1178 -0
  81. package/dist/assets/KeyboardShortcutTooltip-legacy-Bvz-OQ26.js +81 -0
  82. package/dist/assets/{KeyboardShortcutTooltip-y1pBqAge.js → KeyboardShortcutTooltip-qZ5YD2sD.js} +1 -1
  83. package/dist/assets/{LogsPanel-Uc0E6yn-.js → LogsPanel-DDYWCOb0.js} +28 -30
  84. package/dist/assets/LogsPanel-Dotn9lvR.js +57 -0
  85. package/dist/assets/LogsPanel-legacy-ByvltTa3.js +16 -0
  86. package/dist/assets/LogsPanel-legacy-CskB3POf.js +2951 -0
  87. package/dist/assets/{MainHeader-M-D-hY8c.js → MainHeader-B2hrGRGJ.js} +241 -65
  88. package/dist/assets/{MainHeader-Dz9UViYg.css → MainHeader-Csdi9iXJ.css} +177 -29
  89. package/dist/assets/MainHeader-legacy-B3RrmiZE.js +2193 -0
  90. package/dist/assets/{MainSidebar-Bf52gQzU.js → MainSidebar-BlYUNsoE.js} +26 -26
  91. package/dist/assets/MainSidebar-legacy-CNRw0zHi.js +1306 -0
  92. package/dist/assets/{MainSidebarUserArea-UHX8ACa4.js → MainSidebarUserArea-CX_QMKfH.js} +5 -5
  93. package/dist/assets/MainSidebarUserArea-legacy-0NdAGU8c.js +172 -0
  94. package/dist/assets/Modal-legacy-DoUf8p-N.js +265 -0
  95. package/dist/assets/{Modal-DwutFKNY.js → Modal-mampYWrf.js} +5 -5
  96. package/dist/assets/{ModalDrawer-B2sNzJVm.js → ModalDrawer-BJGlFvi2.js} +6 -6
  97. package/dist/assets/ModalDrawer-legacy-BXaxLKkg.js +308 -0
  98. package/dist/assets/{NDVEmptyState-DdpBamQ9.js → NDVEmptyState-C7QVArdv.js} +1 -1
  99. package/dist/assets/NDVEmptyState-legacy-DjsKEIfJ.js +19819 -0
  100. package/dist/assets/{NodeCreation-BRIx8Ei9.js → NodeCreation-CL1i8pHd.js} +46 -46
  101. package/dist/assets/NodeCreation-legacy-CaZ3pWYZ.js +273 -0
  102. package/dist/assets/{NodeCreator-DDG2GQ-C.js → NodeCreator-DEx3Dj6j.js} +31 -31
  103. package/dist/assets/NodeCreator-legacy-Dz9MkQtc.js +1670 -0
  104. package/dist/assets/{NodeDetailsView-4jVeGvDi.js → NodeDetailsView-WyL3mE7Y.js} +64 -64
  105. package/dist/assets/NodeDetailsView-legacy-CMUSzOjZ.js +1116 -0
  106. package/dist/assets/{NodeDetailsViewV2-MeaPvImX.js → NodeDetailsViewV2-Bc3aUBj3.js} +65 -65
  107. package/dist/assets/NodeDetailsViewV2-legacy-mj-LYRpv.js +1060 -0
  108. package/dist/assets/{NodeIcon-C-rkj6sB.js → NodeIcon-BYTrCZAx.js} +2 -2
  109. package/dist/assets/NodeIcon-legacy-BHX1t3Oi.js +127 -0
  110. package/dist/assets/{NodeSettings-gAtnSv8q.js → NodeSettings-CPhr6Uu2.js} +19 -19
  111. package/dist/assets/NodeSettings-legacy-BjwVqiPp.js +2811 -0
  112. package/dist/assets/{NodeView-jjqmiYDP.js → NodeView-CUs2uLnS.js} +69 -69
  113. package/dist/assets/NodeView-legacy-B7u8GgSk.js +2660 -0
  114. package/dist/assets/{SettingsProvisioningView-Dhfda99J.css → OAuthConsentView-CXZbBKS5.css} +74 -32
  115. package/dist/assets/OAuthConsentView-YjViDNW3.js +225 -0
  116. package/dist/assets/OAuthConsentView-legacy-CT4ApTLs.js +292 -0
  117. package/dist/assets/PageViewLayout-legacy-B1As2gDz.js +44 -0
  118. package/dist/assets/{ParameterInputList-kEoD9fc7.js → ParameterInputList-DTj_ngLA.js} +29 -29
  119. package/dist/assets/ParameterInputList-legacy-pcN7bYH4.js +38124 -0
  120. package/dist/assets/{PrebuiltAgentTemplatesView-Dd6IJD_W.js → PrebuiltAgentTemplatesView-BECOiYO1.js} +18 -18
  121. package/dist/assets/PrebuiltAgentTemplatesView-legacy-DYhUlIns.js +205 -0
  122. package/dist/assets/{ProjectBreadcrumb-scGlGqYf.js → ProjectBreadcrumb-ClcStQiI.js} +4 -4
  123. package/dist/assets/ProjectBreadcrumb-legacy-PE_pUf9P.js +140 -0
  124. package/dist/assets/{ProjectCardBadge-p4AY0ubu.js → ProjectCardBadge-CR1M799A.js} +5 -5
  125. package/dist/assets/ProjectCardBadge-legacy-DwhYlW-b.js +251 -0
  126. package/dist/assets/{ProjectHeader-BZeiGuD6.js → ProjectHeader-L2nKcFJq.js} +12 -11
  127. package/dist/assets/ProjectHeader-legacy-Dk15aN_m.js +710 -0
  128. package/dist/assets/{ProjectIcon-DqKjDNbR.js → ProjectIcon-CHk5fa0e.js} +1 -1
  129. package/dist/assets/ProjectIcon-legacy-PFbusJyz.js +109 -0
  130. package/dist/assets/{ProjectRoleView-ByzrSQP-.js → ProjectRoleView-BIInR1qk.js} +46 -31
  131. package/dist/assets/ProjectRoleView-legacy-BO9-6Zog.js +480 -0
  132. package/dist/assets/{ProjectRolesView-DclD8eEm.js → ProjectRolesView-D2-fIOtW.js} +24 -21
  133. package/dist/assets/ProjectRolesView-legacy-CWMn_I7U.js +321 -0
  134. package/dist/assets/{ProjectSettings-4wa93sE4.js → ProjectSettings-BlClYwF1.js} +27 -26
  135. package/dist/assets/ProjectSettings-legacy-BPsXj5XT.js +1070 -0
  136. package/dist/assets/{ProjectSharing-BVPUxo_M.js → ProjectSharing-CSeX6YY5.js} +5 -5
  137. package/dist/assets/ProjectSharing-legacy-xYY68ooo.js +307 -0
  138. package/dist/assets/{ProjectVariables-x9spBaqX.js → ProjectVariables-Bjzw7BIq.js} +34 -34
  139. package/dist/assets/ProjectVariables-legacy-DfW6sdX0.js +572 -0
  140. package/dist/assets/{PushConnectionTracker-ByNVqY0h.js → PushConnectionTracker-DFq8UG-S.js} +3 -3
  141. package/dist/assets/PushConnectionTracker-legacy-B0Q_Dv5f.js +65 -0
  142. package/dist/assets/{ResourcesListLayout-UXbxK1S7.js → ResourcesListLayout-Cf-VCtXT.js} +10 -10
  143. package/dist/assets/ResourcesListLayout-legacy-DYKabjb6.js +938 -0
  144. package/dist/assets/RunDataHtml-B1O-g3bi.js +7 -0
  145. package/dist/assets/{RunDataHtml-DdtrEw19.js → RunDataHtml-BNcvZDMJ.js} +1 -1
  146. package/dist/assets/RunDataHtml-legacy-DopSvQCJ.js +63 -0
  147. package/dist/assets/RunDataHtml-legacy-h0qPMlWv.js +16 -0
  148. package/dist/assets/{RunDataJson-CxLotBq-.js → RunDataJson-CtU-jO3b.js} +14 -17
  149. package/dist/assets/RunDataJson-legacy-CDVGwTtk.js +253 -0
  150. package/dist/assets/{RunDataJsonActions-qylVa2u8.js → RunDataJsonActions-DcS_v76R.js} +15 -15
  151. package/dist/assets/RunDataJsonActions-legacy-CamxDlZh.js +5126 -0
  152. package/dist/assets/RunDataParsedAiContent-BFEUw_Z8.js +25 -0
  153. package/dist/assets/{RunDataParsedAiContent-Cs80jq_q.js → RunDataParsedAiContent-BVsW98ij.js} +7 -7
  154. package/dist/assets/RunDataParsedAiContent-legacy-CQnMh9q4.js +16 -0
  155. package/dist/assets/RunDataParsedAiContent-legacy-y3M6jgoj.js +234 -0
  156. package/dist/assets/{RunDataSearch-BvoYWH8W.js → RunDataSearch-Dd6t4Vgs.js} +10 -10
  157. package/dist/assets/RunDataSearch-legacy-D2VmIo7g.js +194 -0
  158. package/dist/assets/{RunDataTable-d3eXUdSg.js → RunDataTable-CuP87FpN.js} +16 -16
  159. package/dist/assets/RunDataTable-legacy-ByZIy2Hl.js +724 -0
  160. package/dist/assets/{SamlOnboarding-CRtDDWqf.js → SamlOnboarding-R6iv6uwF.js} +15 -15
  161. package/dist/assets/SamlOnboarding-legacy-3hKQbF8_.js +92 -0
  162. package/dist/assets/{SaveButton-D1iDaopV.js → SaveButton-CtUWsjwd.js} +3 -3
  163. package/dist/assets/SaveButton-legacy-6GGcUStL.js +123 -0
  164. package/dist/assets/{SelectedItemsInfo-CSzniBOD.js → SelectedItemsInfo-CFCO70kL.js} +2 -2
  165. package/dist/assets/SelectedItemsInfo-legacy-u_4Aalns.js +95 -0
  166. package/dist/assets/{SettingsApiView-DqnHEaAj.js → SettingsApiView-Aw62JsK1.js} +20 -20
  167. package/dist/assets/SettingsApiView-legacy-C9zAm0u7.js +409 -0
  168. package/dist/assets/SettingsCommunityNodesView-legacy-BKyymFU0.js +443 -0
  169. package/dist/assets/{SettingsCommunityNodesView-C7JC1VAK.js → SettingsCommunityNodesView-usMNCBTP.js} +34 -34
  170. package/dist/assets/{SettingsExternalSecrets-CqTHs6zk.js → SettingsExternalSecrets-3H27kaGp.js} +18 -18
  171. package/dist/assets/SettingsExternalSecrets-legacy-CUMq_ivN.js +315 -0
  172. package/dist/assets/SettingsLdapView-legacy-D5vgdVWc.js +2246 -0
  173. package/dist/assets/{SettingsLdapView-zifHhZKy.js → SettingsLdapView-oVEYnCs1.js} +21 -21
  174. package/dist/assets/{SettingsLogStreamingView-CQwuqSl8.js → SettingsLogStreamingView-DBnackHm.js} +20 -20
  175. package/dist/assets/SettingsLogStreamingView-legacy-CQ8nq1FW.js +479 -0
  176. package/dist/assets/SettingsMCPView-BD9hb-oe.js +936 -0
  177. package/dist/assets/SettingsMCPView-BGXq9o_x.css +1248 -0
  178. package/dist/assets/SettingsMCPView-legacy-B8E45TNn.js +1111 -0
  179. package/dist/assets/{SettingsPersonalView-C1NF8zuk.js → SettingsPersonalView-Dw-9ZYmb.js} +16 -16
  180. package/dist/assets/SettingsPersonalView-legacy-BCa5pb35.js +484 -0
  181. package/dist/assets/SettingsProvisioningView-C4D0a4Kz.css +303 -0
  182. package/dist/assets/SettingsProvisioningView-DpAIsdfr.js +448 -0
  183. package/dist/assets/SettingsProvisioningView-legacy-7LiGCRgO.js +530 -0
  184. package/dist/assets/{SettingsSourceControl-CZryQCqT.js → SettingsSourceControl-DJj3DHHA.js} +20 -20
  185. package/dist/assets/SettingsSourceControl-legacy-BdmpiLob.js +580 -0
  186. package/dist/assets/{SettingsSso-CeeFO_Pv.js → SettingsSso-BeDmk3V-.js} +21 -21
  187. package/dist/assets/SettingsSso-legacy-BTbHZn2L.js +507 -0
  188. package/dist/assets/{SettingsUsageAndPlan-DMMd5WcZ.js → SettingsUsageAndPlan-FoM6V1Ld.js} +19 -19
  189. package/dist/assets/SettingsUsageAndPlan-legacy-m-cDuLWb.js +505 -0
  190. package/dist/assets/{SettingsUsersView-DWVyE4hY.js → SettingsUsersView-BwTyYPXj.js} +21 -21
  191. package/dist/assets/SettingsUsersView-legacy-D39e8lpD.js +931 -0
  192. package/dist/assets/{SettingsView-trF6L-tM.js → SettingsView-BfAuJHR3.js} +13 -12
  193. package/dist/assets/SettingsView-legacy-hgJAMD5w.js +346 -0
  194. package/dist/assets/{SetupTemplateFormStep-BsgzR5CN.js → SetupTemplateFormStep-5Dxz6mL3.js} +6 -6
  195. package/dist/assets/SetupTemplateFormStep-legacy-Br6RSFQH.js +548 -0
  196. package/dist/assets/{SetupView-Bx4ZLcja.js → SetupView-CvELBthc.js} +15 -15
  197. package/dist/assets/SetupView-legacy-yEyZVczN.js +126 -0
  198. package/dist/assets/{SetupWorkflowCredentialsButton-DR_aufFd.js → SetupWorkflowCredentialsButton-DAFrS1pq.js} +12 -12
  199. package/dist/assets/SetupWorkflowCredentialsButton-legacy-BkSWj18e.js +84 -0
  200. package/dist/assets/SetupWorkflowFromTemplateView-legacy-ByqlU9fc.js +376 -0
  201. package/dist/assets/{SetupWorkflowFromTemplateView-Ded77Ph-.js → SetupWorkflowFromTemplateView-uxGhfWLo.js} +21 -21
  202. package/dist/assets/SigninView-legacy-wkJIfoQV.js +441 -0
  203. package/dist/assets/{SigninView-DXPofyPm.js → SigninView-qzciwLod.js} +16 -16
  204. package/dist/assets/{SignoutView-B7H_dRJO.js → SignoutView-BAHDN7_D.js} +10 -10
  205. package/dist/assets/SignoutView-legacy-7HQWbMDt.js +56 -0
  206. package/dist/assets/{SignupView-BHWVvwh8.js → SignupView-ClulJHw1.js} +15 -15
  207. package/dist/assets/SignupView-legacy-2pnkjTn7.js +154 -0
  208. package/dist/assets/TagsDropdown-legacy-BtJ1Sjlj.js +285 -0
  209. package/dist/assets/{TagsDropdown-D6CYk5R8.js → TagsDropdown-sf5rCG4m.js} +4 -4
  210. package/dist/assets/{TemplateDetails-ezK9JOOl.js → TemplateDetails-DQtY0s_s.js} +7 -7
  211. package/dist/assets/TemplateDetails-legacy-BsMCyy8I.js +197 -0
  212. package/dist/assets/{TemplateList-DztR2yKa.js → TemplateList-DRC8FrQz.js} +5 -5
  213. package/dist/assets/TemplateList-legacy-D0LSlQK9.js +411 -0
  214. package/dist/assets/{TemplatesCollectionView-Bu_YRd84.js → TemplatesCollectionView-DONrZBME.js} +23 -23
  215. package/dist/assets/TemplatesCollectionView-legacy-HXEUNo_l.js +248 -0
  216. package/dist/assets/{TemplatesSearchView-C7zBEV2b.js → TemplatesSearchView-DDZuvKqM.js} +21 -21
  217. package/dist/assets/TemplatesSearchView-legacy-28acdtqn.js +1427 -0
  218. package/dist/assets/{TemplatesView-BnozPkTX.js → TemplatesView-BmiQGH35.js} +3 -3
  219. package/dist/assets/TemplatesView-legacy-B2w8licK.js +113 -0
  220. package/dist/assets/{TemplatesWorkflowView-BTyHc3MG.js → TemplatesWorkflowView-Cdwrydpt.js} +25 -25
  221. package/dist/assets/TemplatesWorkflowView-legacy-C_2wkoc1.js +220 -0
  222. package/dist/assets/{TestRunDetailView-B76TM9u8.js → TestRunDetailView-Dhq4tAJV.js} +18 -18
  223. package/dist/assets/TestRunDetailView-legacy-hQli5No4.js +500 -0
  224. package/dist/assets/TextWithHighlights-legacy-CVW5NpX4.js +108 -0
  225. package/dist/assets/{TimeAgo-Gv5h1Utx.js → TimeAgo-BFJOHR5_.js} +2 -2
  226. package/dist/assets/TimeAgo-legacy-OJCaC3xJ.js +200 -0
  227. package/dist/assets/{TriggerPanel-Dx9LpA4p.js → TriggerPanel-DtaNk_Mt.js} +80 -28
  228. package/dist/assets/{TriggerPanel-BQveVt6Q.css → TriggerPanel-jKx3Ut66.css} +31 -10
  229. package/dist/assets/TriggerPanel-legacy-DGckjcgd.js +1519 -0
  230. package/dist/assets/{VirtualSchema-CUUzo795.js → VirtualSchema-BPKNcaHe.js} +16 -16
  231. package/dist/assets/VirtualSchema-Ce9RryqL.js +43 -0
  232. package/dist/assets/VirtualSchema-legacy-BT94K3Qg.js +2655 -0
  233. package/dist/assets/VirtualSchema-legacy-DWrDvaPx.js +16 -0
  234. package/dist/assets/{VueMarkdown-CiR4a0gO.js → VueMarkdown-CF7KJfpC.js} +1 -1
  235. package/dist/assets/VueMarkdown-legacy-Dyo2dNbU.js +50 -0
  236. package/dist/assets/{WorkerView-D7h4pmTk.js → WorkerView-CUypvdcg.js} +39 -39
  237. package/dist/assets/WorkerView-legacy-DMYRM_Cm.js +636 -0
  238. package/dist/assets/{WorkflowActivator-k3HTYXbc.js → WorkflowActivator-DcgoNwmT.js} +8 -8
  239. package/dist/assets/WorkflowActivator-legacy-PoTuxdWE.js +473 -0
  240. package/dist/assets/{WorkflowExecutionsInfoAccordion-DL5cBkbK.js → WorkflowExecutionsInfoAccordion-C6OXDZEA.js} +7 -7
  241. package/dist/assets/WorkflowExecutionsInfoAccordion-legacy-B4TTZinW.js +226 -0
  242. package/dist/assets/{WorkflowExecutionsLandingPage-DlXz9Jry.js → WorkflowExecutionsLandingPage-D2pYB3tS.js} +21 -21
  243. package/dist/assets/WorkflowExecutionsLandingPage-legacy-DaS6jgLc.js +136 -0
  244. package/dist/assets/{WorkflowExecutionsPreview-DJWD2i74.js → WorkflowExecutionsPreview-B-EBo84g.js} +25 -25
  245. package/dist/assets/WorkflowExecutionsPreview-legacy-BZAG_FE2.js +745 -0
  246. package/dist/assets/{WorkflowExecutionsView-CK-2WqY7.js → WorkflowExecutionsView-DPiBL6kC.js} +38 -38
  247. package/dist/assets/WorkflowExecutionsView-legacy-C6eVhTue.js +880 -0
  248. package/dist/assets/{WorkflowHistory-Cb-ZoRBp.js → WorkflowHistory-ZHxuKv_S.js} +19 -19
  249. package/dist/assets/WorkflowHistory-legacy-D9EpXPrw.js +881 -0
  250. package/dist/assets/{WorkflowOnboardingView-CguOMlib.js → WorkflowOnboardingView-B7iQi_8k.js} +9 -9
  251. package/dist/assets/WorkflowOnboardingView-legacy-DGVGXrbp.js +95 -0
  252. package/dist/assets/WorkflowPreview-legacy-Ck8uteSS.js +249 -0
  253. package/dist/assets/{WorkflowPreview-DY79uYFw.js → WorkflowPreview-q32aqNwB.js} +5 -5
  254. package/dist/assets/{WorkflowTagsDropdown-CdEFZM1A.js → WorkflowTagsDropdown-DTUxLHbz.js} +2 -2
  255. package/dist/assets/WorkflowTagsDropdown-legacy-D6X-TzYC.js +90 -0
  256. package/dist/assets/{WorkflowsView-BnxQSw3m.js → WorkflowsView-CMeOv7jM.js} +98 -80
  257. package/dist/assets/{WorkflowsView-2XTsT7zB.css → WorkflowsView-M8ExG7Q2.css} +22 -19
  258. package/dist/assets/WorkflowsView-legacy-BpAAeN0R.js +3521 -0
  259. package/dist/assets/{_MapCache-Byd-DTfo.js → _MapCache-Dw6Llo22.js} +74 -11
  260. package/dist/assets/_MapCache-legacy-DcX1vy0l.js +11084 -0
  261. package/dist/assets/_plugin-vue_export-helper-legacy-DZMI5HPp.js +19 -0
  262. package/dist/assets/{apiKeys.store-CPsBJKkq.js → apiKeys.store-HKuBxy3l.js} +1 -1
  263. package/dist/assets/apiKeys.store-legacy-BLC1aaW1.js +76 -0
  264. package/dist/assets/{assistant.store-DvuxtpS4.js → assistant.store-BtplYeLr.js} +6 -6
  265. package/dist/assets/assistant.store-legacy-Dk3PMmMU.js +1313 -0
  266. package/dist/assets/{auth.eventBus-YsWbuB84.js → auth.eventBus-16zfbqGs.js} +1 -1
  267. package/dist/assets/auth.eventBus-legacy-HP2TbQxy.js +22 -0
  268. package/dist/assets/{banners.store-BQPwuqhn.js → banners.store-DikUBA5o.js} +3 -3
  269. package/dist/assets/banners.store-legacy-DUTxfINX.js +260 -0
  270. package/dist/assets/buttons.esm-legacy-BLrJSt1Z.js +419 -0
  271. package/dist/assets/chart-legacy-DbW-cf8m.js +12055 -0
  272. package/dist/assets/chartjs.utils-legacy-CKDO0Ba9.js +208 -0
  273. package/dist/assets/{chartjs.utils-Bf07Y-P-.js → chartjs.utils-om4DCCN2.js} +3 -3
  274. package/dist/assets/{chatPanel.store-fM-8PK9i.js → chatPanel.store-BZOiAoXE.js} +4 -4
  275. package/dist/assets/chatPanel.store-legacy-CQ6tsDjT.js +153 -0
  276. package/dist/assets/chunk-legacy-Re9CbdfL.js +59 -0
  277. package/dist/assets/{cloudPlan.store-DrraBpZJ.js → cloudPlan.store-DT2PFV79.js} +2 -2
  278. package/dist/assets/cloudPlan.store-legacy-BPgz6zU7.js +208 -0
  279. package/dist/assets/{col-DK_GtMhM.js → col-Da3-PCMn.js} +3 -3
  280. package/dist/assets/col-legacy-Bhm60Oe3.js +186 -0
  281. package/dist/assets/{constants-DvlTm3U4.js → constants-C5Tj3dXQ.js} +362 -356
  282. package/dist/assets/constants-legacy-CLA25gM9.js +61343 -0
  283. package/dist/assets/constants-legacy-D22nGw-a.js +26 -0
  284. package/dist/assets/{core-6lPsS9S5.js → core-CH2Kku_3.js} +1 -1
  285. package/dist/assets/core-legacy-BVoFM47F.js +1857 -0
  286. package/dist/assets/core-legacy-De470jmW.js +20 -0
  287. package/dist/assets/{dataTable.store-u9fGWest.js → dataTable.store-BC5cIRU-.js} +5 -3
  288. package/dist/assets/dataTable.store-legacy-BKpQb7Gy.js +202 -0
  289. package/dist/assets/{date-picker-CVSd-BRt.js → date-picker-D6cS76wx.js} +3 -3
  290. package/dist/assets/date-picker-legacy-pB1SshLs.js +4508 -0
  291. package/dist/assets/{dateFormatter-BD73Za8B.js → dateFormatter-DysKGI6w.js} +1 -1
  292. package/dist/assets/dateFormatter-legacy-Dl8dqhrg.js +53 -0
  293. package/dist/assets/dateformat-legacy-Xt1X-tys.js +161 -0
  294. package/dist/assets/{dialog-BMoy5MDa.js → dialog-Cgy1Sihv.js} +4 -4
  295. package/dist/assets/dialog-legacy-BrpTfsO5.js +518 -0
  296. package/dist/assets/{dist-CWw8iddm.js → dist-D33xoYUY.js} +1 -1
  297. package/dist/assets/dist-legacy-8f5owWm6.js +204 -0
  298. package/dist/assets/{empty-BuGRxzl4.js → empty-RTEMfF4N.js} +1 -1
  299. package/dist/assets/empty-legacy-DnVUoqbC.js +2409 -0
  300. package/dist/assets/en-legacy-Bgme8Vbm.js +98 -0
  301. package/dist/assets/en-legacy-BwVJMmMW.js +16 -0
  302. package/dist/assets/{es-BazDU8Wd.js → es-Cjns9o4Y.js} +1 -1
  303. package/dist/assets/es-legacy-8dRs2C3P.js +16006 -0
  304. package/dist/assets/{evaluation.constants-CIiAC2dT.js → evaluation.constants-BJTUNo2q.js} +3 -3
  305. package/dist/assets/evaluation.constants-legacy-7byaeleB.js +363 -0
  306. package/dist/assets/{executions.store-IU9p1s46.js → executions.store-D2xBmTFC.js} +1 -1
  307. package/dist/assets/executions.store-legacy-BzRopbKX.js +246 -0
  308. package/dist/assets/exports-legacy-RTRnyI4R.js +3103 -0
  309. package/dist/assets/{externalSecrets.ee.store-1z63wMHN.js → externalSecrets.ee.store-CbqCu_KF.js} +2 -2
  310. package/dist/assets/externalSecrets.ee.store-legacy-BP6gQv_P.js +145 -0
  311. package/dist/assets/{focusPanel.store-BJpwjMIG.js → focusPanel.store-CPU1uVq-.js} +4 -4
  312. package/dist/assets/focusPanel.store-legacy-BcpstEbJ.js +264 -0
  313. package/dist/assets/{folders.store-Db975T-w.js → folders.store-CmYx4Y_F.js} +2 -2
  314. package/dist/assets/folders.store-legacy-BAC47Qt0.js +267 -0
  315. package/dist/assets/{icon-DhADuA9N.js → icon-DmIKo5zZ.js} +1 -1
  316. package/dist/assets/icon-legacy-gLTnORTx.js +458 -0
  317. package/dist/assets/{index-C8erHZ_Y.css → index-4I6DPmNr.css} +1 -1
  318. package/dist/assets/{index-C25i7qsE.js → index-CSjecLC-.js} +189 -1627
  319. package/dist/assets/index-legacy-BeiTnujt.js +28424 -0
  320. package/dist/assets/insights.constants-legacy-D5Y8YhR_.js +64 -0
  321. package/dist/assets/{insights.store-DC_enAA-.js → insights.store-aHF8maKY.js} +4 -4
  322. package/dist/assets/insights.store-legacy-XeWToovL.js +89 -0
  323. package/dist/assets/{insights.utils-ClJRVRAK.js → insights.utils-ClwWcg-l.js} +8 -8
  324. package/dist/assets/insights.utils-legacy-DWaseOa4.js +96 -0
  325. package/dist/assets/{isEmpty-DrZRN4lR.js → isEmpty-Dg0afC99.js} +30 -31
  326. package/dist/assets/isEmpty-legacy-7ibnR7BO.js +43393 -0
  327. package/dist/assets/{languageModules-CNluY7w0.js → languageModules-BF7Ga1Pj.js} +1 -1
  328. package/dist/assets/languageModules-legacy-BaU1eOK3.js +7184 -0
  329. package/dist/assets/{logStreaming.store-CPvxjcQB.js → logStreaming.store-DFZnZ2Rt.js} +1 -1
  330. package/dist/assets/logStreaming.store-legacy-B_cbQPAW.js +209 -0
  331. package/dist/assets/mcp.constants-BCNosk1p.js +5 -0
  332. package/dist/assets/mcp.constants-legacy-CZfk8DW2.js +18 -0
  333. package/dist/assets/{mcp.store-YGfe2oZU.js → mcp.store-Bd62s_4P.js} +23 -3
  334. package/dist/assets/mcp.store-legacy-C00py4q_.js +125 -0
  335. package/dist/assets/{merge-CKEa8BM2.js → merge-Dnkh07HW.js} +1 -1
  336. package/dist/assets/merge-legacy-CcVOuFTi.js +1529 -0
  337. package/dist/assets/{nodeCreator.store-DHz0Nc1Y.js → nodeCreator.store-C1GkQ_2N.js} +8 -8
  338. package/dist/assets/nodeCreator.store-legacy-CjrGX9Lm.js +4758 -0
  339. package/dist/assets/{nodeIcon-ry_JIpAT.js → nodeIcon-ChI78z3o.js} +2 -2
  340. package/dist/assets/nodeIcon-legacy-DD6sIN5e.js +122 -0
  341. package/dist/assets/{nodeTransforms-PeZUYiCs.js → nodeTransforms-C7fmOXNl.js} +2 -2
  342. package/dist/assets/nodeTransforms-legacy-BI0GkY5n.js +86 -0
  343. package/dist/assets/npsSurvey.store-legacy-oZP0npqy.js +123 -0
  344. package/dist/assets/{npsSurvey.store-BTpA4Bdf.js → npsSurvey.store-ylMA9JZD.js} +2 -2
  345. package/dist/assets/{orderBy-CMVxNao4.js → orderBy-FDQLKrkD.js} +2 -2
  346. package/dist/assets/orderBy-legacy-BZrAOdi3.js +63 -0
  347. package/dist/assets/{overlay-B8MMvNgs.js → overlay-C02_kK8Y.js} +2 -2
  348. package/dist/assets/overlay-legacy-CfieUdAZ.js +218 -0
  349. package/dist/assets/{path-browserify-DsmB_HMK.js → path-browserify-CTmc1OxV.js} +1 -1
  350. package/dist/assets/path-browserify-legacy-DJbEMZcd.js +328 -0
  351. package/dist/assets/{personalizedTemplatesV3.store-C0D2WZuq.js → personalizedTemplatesV3.store-alXco4LN.js} +4 -4
  352. package/dist/assets/personalizedTemplatesV3.store-legacy-D4xPTzWQ.js +313 -0
  353. package/dist/assets/{pickBy-DWZbVA0W.js → pickBy-SlOaKcI1.js} +2 -2
  354. package/dist/assets/pickBy-legacy-5fAqUgO0.js +59 -0
  355. package/dist/assets/polyfills-legacy-07zJxDbQ.js +4836 -0
  356. package/dist/assets/preload-helper-legacy-CXRjoQ0T.js +73 -0
  357. package/dist/assets/{radio-5XOrKEP7.js → radio-BlnltmtN.js} +3 -3
  358. package/dist/assets/radio-legacy-CvqQyMRY.js +323 -0
  359. package/dist/assets/{readyToRunWorkflows.store-C23cIyhu.js → readyToRunWorkflows.store-BXoUeVNE.js} +5 -5
  360. package/dist/assets/readyToRunWorkflows.store-legacy-CLv3FVF5.js +2086 -0
  361. package/dist/assets/{readyToRunWorkflowsV2.store-BxZUJyXQ.js → readyToRunWorkflowsV2.store-BJAu2HwR.js} +7 -7
  362. package/dist/assets/readyToRunWorkflowsV2.store-legacy-CM_1ZlJR.js +549 -0
  363. package/dist/assets/retry-legacy-CkXCWkMV.js +48 -0
  364. package/dist/assets/{roles.store-Bk6Eo7y8.js → roles.store-DzShOYE2.js} +2 -2
  365. package/dist/assets/roles.store-legacy-BxleDMZw.js +67 -0
  366. package/dist/assets/{router-D4zIcC5W.js → router-B0aGwO7-.js} +93 -84
  367. package/dist/assets/router-legacy-BCUbS_pL.js +1705 -0
  368. package/dist/assets/{sanitize-html-BuXr7o4T.js → sanitize-html-Cfxibw1n.js} +2 -2
  369. package/dist/assets/sanitize-html-legacy-DfOUEbdf.js +9987 -0
  370. package/dist/assets/{schemaPreview.store-BVhugjbw.js → schemaPreview.store-DoyPeLof.js} +2 -2
  371. package/dist/assets/schemaPreview.store-legacy-CtBwiQEG.js +153 -0
  372. package/dist/assets/{semver-lN9oCZPq.js → semver-D1BuALCK.js} +2 -2
  373. package/dist/assets/semver-legacy-iZYhFDDU.js +1499 -0
  374. package/dist/assets/smartDecimal-legacy-BeOdMR2z.js +19 -0
  375. package/dist/assets/sortByProperty-legacy-CgPLoqtk.js +21 -0
  376. package/dist/assets/{sourceControl.eventBus-BkPwCZw_.js → sourceControl.eventBus-kAyFUXsG.js} +1 -1
  377. package/dist/assets/sourceControl.eventBus-legacy-oIGia_rL.js +17 -0
  378. package/dist/assets/{src-D6S9Khji.js → src-DsaRShTK.js} +648 -600
  379. package/dist/assets/src-legacy-6Jvz4Sen.js +64208 -0
  380. package/dist/assets/{sso.store-qzj82Xj4.js → sso.store-Cw8J8on5.js} +1 -1
  381. package/dist/assets/sso.store-legacy-Ci_mQS0X.js +185 -0
  382. package/dist/assets/{table-s-zqHExs.js → table-adhNf731.js} +3 -3
  383. package/dist/assets/table-legacy-DECH20yK.js +4957 -0
  384. package/dist/assets/{templateActions-BeIpzgaa.js → templateActions-B4t6RCi8.js} +4 -4
  385. package/dist/assets/templateActions-legacy-CqwW8d3O.js +134 -0
  386. package/dist/assets/{templateTransforms-Cgy40V1P.js → templateTransforms-Bu9cSoOY.js} +1 -1
  387. package/dist/assets/templateTransforms-legacy-DToYks9P.js +84 -0
  388. package/dist/assets/{templates.store-COjIpQaS.js → templates.store-Bt8tpLPx.js} +3 -3
  389. package/dist/assets/templates.store-legacy-CPyYqMqR.js +459 -0
  390. package/dist/assets/{truncate-DGRsht-H.js → truncate-7XypoloM.js} +1 -1
  391. package/dist/assets/truncate-legacy-D2_XDpGK.js +5763 -0
  392. package/dist/assets/{uniqBy-BUNHbbw3.js → uniqBy-DAOmWpEt.js} +1 -1
  393. package/dist/assets/uniqBy-legacy-8A5HU2la.js +52 -0
  394. package/dist/assets/{usage.store-EBmhHKPv.js → usage.store-Xl7x6DGx.js} +1 -1
  395. package/dist/assets/usage.store-legacy-CVF7gKOp.js +126 -0
  396. package/dist/assets/{useActions-CqdsN2GH.js → useActions-BeWbvBcf.js} +5 -5
  397. package/dist/assets/useActions-legacy-B8B-O_ET.js +330 -0
  398. package/dist/assets/{useAgent-BHJHCfap.js → useAgent-C1ldRVaA.js} +1 -1
  399. package/dist/assets/useAgent-legacy-BSTQ3a_e.js +28 -0
  400. package/dist/assets/{useBeforeUnload-BPhnlPrH.js → useBeforeUnload-Dk9osL_V.js} +3 -3
  401. package/dist/assets/useBeforeUnload-legacy-hCNmJWkt.js +69 -0
  402. package/dist/assets/{useBugReporting-oDEHgPM1.js → useBugReporting-B8EUAXTd.js} +9 -9
  403. package/dist/assets/useBugReporting-legacy-Dbui6uN6.js +383 -0
  404. package/dist/assets/{useCanvasMapping-DWlYBxgN.js → useCanvasMapping-CC7eJyt0.js} +21 -20
  405. package/dist/assets/useCanvasMapping-legacy-DRk52E6N.js +14180 -0
  406. package/dist/assets/{useCanvasOperations-CFsSFVcO.js → useCanvasOperations-Cxgmc_7x.js} +13 -13
  407. package/dist/assets/useCanvasOperations-legacy-DDhXmhZf.js +1992 -0
  408. package/dist/assets/{useChatCredentials-CMV_NA0l.js → useChatCredentials-DQJGjWzL.js} +24 -12
  409. package/dist/assets/useChatCredentials-legacy-BB0gXwkF.js +717 -0
  410. package/dist/assets/{useChatHubSidebarState-CM9tokIj.js → useChatHubSidebarState-DpLl3Oap.js} +14 -7
  411. package/dist/assets/useChatHubSidebarState-legacy-fa3EFauo.js +733 -0
  412. package/dist/assets/{useClipboard-fRnZpGbX.js → useClipboard-BkbYyMX3.js} +2 -2
  413. package/dist/assets/useClipboard-legacy-CF0IG1Mu.js +78 -0
  414. package/dist/assets/{useCommandBar-_c6cO-zw.js → useCommandBar-DOChPPYZ.js} +29 -25
  415. package/dist/assets/useCommandBar-legacy-Bx4lZuXv.js +2100 -0
  416. package/dist/assets/{useDebounce-BgcdaJ78.js → useDebounce-DFa0sFlC.js} +2 -2
  417. package/dist/assets/useDebounce-legacy-D-CoXkwk.js +326 -0
  418. package/dist/assets/{useExecutionData-Bk540rxU.js → useExecutionData-D1Hu-5sr.js} +1 -1
  419. package/dist/assets/useExecutionData-legacy-DmERlRFZ.js +42 -0
  420. package/dist/assets/useExecutionDebugging-legacy-DARRX5Rl.js +152 -0
  421. package/dist/assets/{useExecutionDebugging-BNrxsZTN.js → useExecutionDebugging-yG8CO6AO.js} +7 -7
  422. package/dist/assets/useExecutionHelpers-legacy-CQh3o0WC.js +120 -0
  423. package/dist/assets/{useExecutionHelpers-DrFWi6u7.js → useExecutionHelpers-sUZnNg8O.js} +5 -5
  424. package/dist/assets/{useExternalHooks-SxBXYVNW.js → useExternalHooks-DSSTcvme.js} +1 -1
  425. package/dist/assets/useExternalHooks-legacy-DAJrb39U.js +53 -0
  426. package/dist/assets/{useImportCurlCommand-obipPNWg.js → useImportCurlCommand-C8Mv1xEK.js} +11 -11
  427. package/dist/assets/useImportCurlCommand-legacy-Cs_C8ucb.js +8269 -0
  428. package/dist/assets/useIntersectionObserver-legacy-CQWXa295.js +69 -0
  429. package/dist/assets/{useKeybindings-DlmwtVDN.js → useKeybindings-BeP-kiF_.js} +4 -4
  430. package/dist/assets/useKeybindings-legacy-BP8xe8FX.js +118 -0
  431. package/dist/assets/{useLogsTreeExpand-gKLCILZL.js → useLogsTreeExpand-VaIZtJEy.js} +11 -11
  432. package/dist/assets/useLogsTreeExpand-legacy-9ArL6-As.js +1039 -0
  433. package/dist/assets/{useMcp-_gyuyL1x.js → useMcp-CXTbPxKj.js} +3 -7
  434. package/dist/assets/useMcp-legacy-Dx5gBZcF.js +46 -0
  435. package/dist/assets/{useMessage-Ceo97RRX.js → useMessage-hiDKbQYH.js} +5 -5
  436. package/dist/assets/useMessage-legacy-Cl537NB0.js +683 -0
  437. package/dist/assets/{usePageRedirectionHelper-C_ctyI4O.js → usePageRedirectionHelper-C8YGBi-F.js} +4 -4
  438. package/dist/assets/usePageRedirectionHelper-legacy-CeLk3K53.js +95 -0
  439. package/dist/assets/{usePinnedData-Csij2qN3.js → usePinnedData-BsuIBj2b.js} +5 -5
  440. package/dist/assets/usePinnedData-legacy-9ciMJD_m.js +283 -0
  441. package/dist/assets/{usePushConnection-XZibrqm8.js → usePushConnection-cXyYzGoP.js} +11 -11
  442. package/dist/assets/usePushConnection-legacy-D3xue9ej.js +763 -0
  443. package/dist/assets/{useRecentResources-FhIOba0w.js → useRecentResources-D1-21efA.js} +7 -7
  444. package/dist/assets/useRecentResources-legacy-CdJaBL9r.js +159 -0
  445. package/dist/assets/{useRunWorkflow-_-_hUnHE.js → useRunWorkflow-BLqckUNU.js} +9 -9
  446. package/dist/assets/useRunWorkflow-legacy-ClvXUChT.js +1136 -0
  447. package/dist/assets/{useTelemetry-EOV0Llso.js → useTelemetry-DedEakwK.js} +89 -54
  448. package/dist/assets/useTelemetry-legacy-Bu_8SoSm.js +31004 -0
  449. package/dist/assets/{useTelemetryContext-CSMUQPEW.js → useTelemetryContext-DX-4dy5E.js} +1 -1
  450. package/dist/assets/useTelemetryContext-legacy-DQvfjWrO.js +81 -0
  451. package/dist/assets/{useToast-BlMNYwds.js → useToast-LQk5sJH0.js} +6 -6
  452. package/dist/assets/useToast-legacy-CIRx5txg.js +610 -0
  453. package/dist/assets/{useWorkflowActivate-OfPMIBJ5.js → useWorkflowActivate-BSpG7MxI.js} +8 -8
  454. package/dist/assets/useWorkflowActivate-legacy-Btoe32cC.js +125 -0
  455. package/dist/assets/{useWorkflowSaving-CWyt929n.js → useWorkflowSaving-GL9jVODA.js} +10 -10
  456. package/dist/assets/useWorkflowSaving-legacy-8U0vS257.js +329 -0
  457. package/dist/assets/{useWorkflowsCache-BSXTJC8C.js → useWorkflowsCache-B4y-W-2Y.js} +1 -1
  458. package/dist/assets/useWorkflowsCache-legacy-Cpa2s1nv.js +217 -0
  459. package/dist/assets/{versions.store-Dx98n6R_.js → versions.store-Bon8LCsf.js} +3 -3
  460. package/dist/assets/versions.store-legacy-ZeK5FOAp.js +244 -0
  461. package/dist/assets/vue-json-pretty-BAtqAAV1.js +1130 -0
  462. package/dist/assets/vue-json-pretty-legacy-Dk5EQofb.js +1282 -0
  463. package/dist/assets/vue-legacy-Cj7LJTPA.js +4579 -0
  464. package/dist/assets/vue.runtime.esm-bundler-legacy-Bq05oSFs.js +8050 -0
  465. package/dist/assets/xml-legacy-Cyrxa7r6.js +1245 -0
  466. package/dist/index.html +107 -103
  467. package/dist/static/openChat.png +0 -0
  468. package/package.json +1 -1
  469. package/vite.config.mts +0 -2
  470. package/dist/assets/CollectionParameter-CizL_Xml.js +0 -58
  471. package/dist/assets/DemoFooter-D8E8sLCS.js +0 -71
  472. package/dist/assets/LogsPanel-sLas9qHQ.js +0 -58
  473. package/dist/assets/RunDataHtml-X9lzUZaX.js +0 -7
  474. package/dist/assets/RunDataParsedAiContent-DBP5JHe4.js +0 -25
  475. package/dist/assets/SettingsMCPView-BBO_ZyBU.css +0 -552
  476. package/dist/assets/SettingsMCPView-Chjl8-hw.js +0 -584
  477. package/dist/assets/SettingsProvisioningView-BFUB6c2Z.js +0 -252
  478. package/dist/assets/VirtualSchema-5T21Yyqx.js +0 -43
  479. package/dist/assets/vue-json-pretty-BltKoWq2.js +0 -681
  480. /package/dist/assets/{AnimatedSpinner-Dd4F9nQ8.js → AnimatedSpinner-4ie3BOLv.js} +0 -0
  481. /package/dist/assets/{PageViewLayout-Ccqeja5V.js → PageViewLayout-kj_BBPfv.js} +0 -0
  482. /package/dist/assets/{buttons.esm-Euf82NbC.js → buttons.esm-CT4flsfB.js} +0 -0
  483. /package/dist/assets/{chart-BI8B7UPV.js → chart-CE3HWIkr.js} +0 -0
  484. /package/dist/assets/{constants-CPQyU8WO.js → constants-9ReQTHaF.js} +0 -0
  485. /package/dist/assets/{core-CIkXL_1D.js → core-CzunNfUb.js} +0 -0
  486. /package/dist/assets/{insights.constants-NogjFJ3a.js → insights.constants-DK2g3nnD.js} +0 -0
  487. /package/dist/assets/{smartDecimal-5rgLDM96.js → smartDecimal-e9uPsnJa.js} +0 -0
  488. /package/dist/assets/{sortByProperty-0UtqPmvJ.js → sortByProperty-CUhVU03p.js} +0 -0
  489. /package/dist/assets/{useIntersectionObserver-BkAtQAzK.js → useIntersectionObserver-C8Bz3yon.js} +0 -0
  490. /package/dist/assets/{vue-LyXhKoPx.js → vue-RAk0R0Jn.js} +0 -0
  491. /package/dist/assets/{xml-F7krcG3E.js → xml-B_gYdkaU.js} +0 -0
@@ -0,0 +1,1857 @@
1
+ ;
2
+ (function () {
3
+ System.register(["./chunk-legacy-Re9CbdfL.js"], function (_export, _context) {
4
+ "use strict";
5
+
6
+ var __commonJS, require_core;
7
+ return {
8
+ setters: [function (_chunkLegacy001Js) {
9
+ __commonJS = _chunkLegacy001Js.t;
10
+ }],
11
+ execute: function () {
12
+ //#region ../../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.js
13
+ _export("t", require_core = /* @__PURE__ */__commonJS({
14
+ "../../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.js": (exports, module) => {
15
+ function deepFreeze(obj) {
16
+ if (obj instanceof Map) obj.clear = obj.delete = obj.set = function () {
17
+ throw new Error("map is read-only");
18
+ };else if (obj instanceof Set) obj.add = obj.clear = obj.delete = function () {
19
+ throw new Error("set is read-only");
20
+ };
21
+ Object.freeze(obj);
22
+ Object.getOwnPropertyNames(obj).forEach(name => {
23
+ const prop = obj[name];
24
+ const type = typeof prop;
25
+ if ((type === "object" || type === "function") && !Object.isFrozen(prop)) deepFreeze(prop);
26
+ });
27
+ return obj;
28
+ }
29
+ /** @typedef {import('highlight.js').CallbackResponse} CallbackResponse */
30
+ /** @typedef {import('highlight.js').CompiledMode} CompiledMode */
31
+ /** @implements CallbackResponse */
32
+ var Response = class {
33
+ /**
34
+ * @param {CompiledMode} mode
35
+ */
36
+ constructor(mode) {
37
+ if (mode.data === void 0) mode.data = {};
38
+ this.data = mode.data;
39
+ this.isMatchIgnored = false;
40
+ }
41
+ ignoreMatch() {
42
+ this.isMatchIgnored = true;
43
+ }
44
+ };
45
+ /**
46
+ * @param {string} value
47
+ * @returns {string}
48
+ */
49
+ function escapeHTML(value) {
50
+ return value.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;");
51
+ }
52
+ /**
53
+ * performs a shallow merge of multiple objects into one
54
+ *
55
+ * @template T
56
+ * @param {T} original
57
+ * @param {Record<string,any>[]} objects
58
+ * @returns {T} a single new object
59
+ */
60
+ function inherit$1(original, ...objects) {
61
+ /** @type Record<string,any> */
62
+ const result = Object.create(null);
63
+ for (const key in original) result[key] = original[key];
64
+ objects.forEach(function (obj) {
65
+ for (const key in obj) result[key] = obj[key];
66
+ });
67
+ return result;
68
+ }
69
+ /**
70
+ * @typedef {object} Renderer
71
+ * @property {(text: string) => void} addText
72
+ * @property {(node: Node) => void} openNode
73
+ * @property {(node: Node) => void} closeNode
74
+ * @property {() => string} value
75
+ */
76
+ /** @typedef {{scope?: string, language?: string, sublanguage?: boolean}} Node */
77
+ /** @typedef {{walk: (r: Renderer) => void}} Tree */
78
+ /** */
79
+ var SPAN_CLOSE = "</span>";
80
+ /**
81
+ * Determines if a node needs to be wrapped in <span>
82
+ *
83
+ * @param {Node} node */
84
+ var emitsWrappingTags = node => {
85
+ return !!node.scope;
86
+ };
87
+ /**
88
+ *
89
+ * @param {string} name
90
+ * @param {{prefix:string}} options
91
+ */
92
+ var scopeToCSSClass = (name, {
93
+ prefix
94
+ }) => {
95
+ if (name.startsWith("language:")) return name.replace("language:", "language-");
96
+ if (name.includes(".")) {
97
+ const pieces = name.split(".");
98
+ return [`${prefix}${pieces.shift()}`, ...pieces.map((x, i) => `${x}${"_".repeat(i + 1)}`)].join(" ");
99
+ }
100
+ return `${prefix}${name}`;
101
+ };
102
+ /** @type {Renderer} */
103
+ var HTMLRenderer = class {
104
+ /**
105
+ * Creates a new HTMLRenderer
106
+ *
107
+ * @param {Tree} parseTree - the parse tree (must support `walk` API)
108
+ * @param {{classPrefix: string}} options
109
+ */
110
+ constructor(parseTree, options) {
111
+ this.buffer = "";
112
+ this.classPrefix = options.classPrefix;
113
+ parseTree.walk(this);
114
+ }
115
+ /**
116
+ * Adds texts to the output stream
117
+ *
118
+ * @param {string} text */
119
+ addText(text) {
120
+ this.buffer += escapeHTML(text);
121
+ }
122
+ /**
123
+ * Adds a node open to the output stream (if needed)
124
+ *
125
+ * @param {Node} node */
126
+ openNode(node) {
127
+ if (!emitsWrappingTags(node)) return;
128
+ const className = scopeToCSSClass(node.scope, {
129
+ prefix: this.classPrefix
130
+ });
131
+ this.span(className);
132
+ }
133
+ /**
134
+ * Adds a node close to the output stream (if needed)
135
+ *
136
+ * @param {Node} node */
137
+ closeNode(node) {
138
+ if (!emitsWrappingTags(node)) return;
139
+ this.buffer += SPAN_CLOSE;
140
+ }
141
+ /**
142
+ * returns the accumulated buffer
143
+ */
144
+ value() {
145
+ return this.buffer;
146
+ }
147
+ /**
148
+ * Builds a span element
149
+ *
150
+ * @param {string} className */
151
+ span(className) {
152
+ this.buffer += `<span class="${className}">`;
153
+ }
154
+ };
155
+ /** @typedef {{scope?: string, language?: string, children: Node[]} | string} Node */
156
+ /** @typedef {{scope?: string, language?: string, children: Node[]} } DataNode */
157
+ /** @typedef {import('highlight.js').Emitter} Emitter */
158
+ /** */
159
+ /** @returns {DataNode} */
160
+ var newNode = (opts = {}) => {
161
+ /** @type DataNode */
162
+ const result = {
163
+ children: []
164
+ };
165
+ Object.assign(result, opts);
166
+ return result;
167
+ };
168
+ var TokenTree = class TokenTree {
169
+ constructor() {
170
+ /** @type DataNode */
171
+ this.rootNode = newNode();
172
+ this.stack = [this.rootNode];
173
+ }
174
+ get top() {
175
+ return this.stack[this.stack.length - 1];
176
+ }
177
+ get root() {
178
+ return this.rootNode;
179
+ }
180
+ /** @param {Node} node */
181
+ add(node) {
182
+ this.top.children.push(node);
183
+ }
184
+ /** @param {string} scope */
185
+ openNode(scope) {
186
+ /** @type Node */
187
+ const node = newNode({
188
+ scope
189
+ });
190
+ this.add(node);
191
+ this.stack.push(node);
192
+ }
193
+ closeNode() {
194
+ if (this.stack.length > 1) return this.stack.pop();
195
+ }
196
+ closeAllNodes() {
197
+ while (this.closeNode());
198
+ }
199
+ toJSON() {
200
+ return JSON.stringify(this.rootNode, null, 4);
201
+ }
202
+ /**
203
+ * @typedef { import("./html_renderer").Renderer } Renderer
204
+ * @param {Renderer} builder
205
+ */
206
+ walk(builder) {
207
+ return this.constructor._walk(builder, this.rootNode);
208
+ }
209
+ /**
210
+ * @param {Renderer} builder
211
+ * @param {Node} node
212
+ */
213
+ static _walk(builder, node) {
214
+ if (typeof node === "string") builder.addText(node);else if (node.children) {
215
+ builder.openNode(node);
216
+ node.children.forEach(child => this._walk(builder, child));
217
+ builder.closeNode(node);
218
+ }
219
+ return builder;
220
+ }
221
+ /**
222
+ * @param {Node} node
223
+ */
224
+ static _collapse(node) {
225
+ if (typeof node === "string") return;
226
+ if (!node.children) return;
227
+ if (node.children.every(el => typeof el === "string")) node.children = [node.children.join("")];else node.children.forEach(child => {
228
+ TokenTree._collapse(child);
229
+ });
230
+ }
231
+ };
232
+ /**
233
+ Currently this is all private API, but this is the minimal API necessary
234
+ that an Emitter must implement to fully support the parser.
235
+
236
+ Minimal interface:
237
+
238
+ - addText(text)
239
+ - __addSublanguage(emitter, subLanguageName)
240
+ - startScope(scope)
241
+ - endScope()
242
+ - finalize()
243
+ - toHTML()
244
+
245
+ */
246
+ /**
247
+ * @implements {Emitter}
248
+ */
249
+ var TokenTreeEmitter = class extends TokenTree {
250
+ /**
251
+ * @param {*} options
252
+ */
253
+ constructor(options) {
254
+ super();
255
+ this.options = options;
256
+ }
257
+ /**
258
+ * @param {string} text
259
+ */
260
+ addText(text) {
261
+ if (text === "") return;
262
+ this.add(text);
263
+ }
264
+ /** @param {string} scope */
265
+ startScope(scope) {
266
+ this.openNode(scope);
267
+ }
268
+ endScope() {
269
+ this.closeNode();
270
+ }
271
+ /**
272
+ * @param {Emitter & {root: DataNode}} emitter
273
+ * @param {string} name
274
+ */
275
+ __addSublanguage(emitter, name) {
276
+ /** @type DataNode */
277
+ const node = emitter.root;
278
+ if (name) node.scope = `language:${name}`;
279
+ this.add(node);
280
+ }
281
+ toHTML() {
282
+ return new HTMLRenderer(this, this.options).value();
283
+ }
284
+ finalize() {
285
+ this.closeAllNodes();
286
+ return true;
287
+ }
288
+ };
289
+ /**
290
+ * @param {string} value
291
+ * @returns {RegExp}
292
+ * */
293
+ /**
294
+ * @param {RegExp | string } re
295
+ * @returns {string}
296
+ */
297
+ function source(re) {
298
+ if (!re) return null;
299
+ if (typeof re === "string") return re;
300
+ return re.source;
301
+ }
302
+ /**
303
+ * @param {RegExp | string } re
304
+ * @returns {string}
305
+ */
306
+ function lookahead(re) {
307
+ return concat("(?=", re, ")");
308
+ }
309
+ /**
310
+ * @param {RegExp | string } re
311
+ * @returns {string}
312
+ */
313
+ function anyNumberOfTimes(re) {
314
+ return concat("(?:", re, ")*");
315
+ }
316
+ /**
317
+ * @param {RegExp | string } re
318
+ * @returns {string}
319
+ */
320
+ function optional(re) {
321
+ return concat("(?:", re, ")?");
322
+ }
323
+ /**
324
+ * @param {...(RegExp | string) } args
325
+ * @returns {string}
326
+ */
327
+ function concat(...args) {
328
+ return args.map(x => source(x)).join("");
329
+ }
330
+ /**
331
+ * @param { Array<string | RegExp | Object> } args
332
+ * @returns {object}
333
+ */
334
+ function stripOptionsFromArgs(args) {
335
+ const opts = args[args.length - 1];
336
+ if (typeof opts === "object" && opts.constructor === Object) {
337
+ args.splice(args.length - 1, 1);
338
+ return opts;
339
+ } else return {};
340
+ }
341
+ /** @typedef { {capture?: boolean} } RegexEitherOptions */
342
+ /**
343
+ * Any of the passed expresssions may match
344
+ *
345
+ * Creates a huge this | this | that | that match
346
+ * @param {(RegExp | string)[] | [...(RegExp | string)[], RegexEitherOptions]} args
347
+ * @returns {string}
348
+ */
349
+ function either(...args) {
350
+ return "(" + (stripOptionsFromArgs(args).capture ? "" : "?:") + args.map(x => source(x)).join("|") + ")";
351
+ }
352
+ /**
353
+ * @param {RegExp | string} re
354
+ * @returns {number}
355
+ */
356
+ function countMatchGroups(re) {
357
+ return (/* @__PURE__ */new RegExp(re.toString() + "|")).exec("").length - 1;
358
+ }
359
+ /**
360
+ * Does lexeme start with a regular expression match at the beginning
361
+ * @param {RegExp} re
362
+ * @param {string} lexeme
363
+ */
364
+ function startsWith(re, lexeme) {
365
+ const match = re && re.exec(lexeme);
366
+ return match && match.index === 0;
367
+ }
368
+ var BACKREF_RE = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
369
+ /**
370
+ * @param {(string | RegExp)[]} regexps
371
+ * @param {{joinWith: string}} opts
372
+ * @returns {string}
373
+ */
374
+ function _rewriteBackreferences(regexps, {
375
+ joinWith
376
+ }) {
377
+ let numCaptures = 0;
378
+ return regexps.map(regex => {
379
+ numCaptures += 1;
380
+ const offset = numCaptures;
381
+ let re = source(regex);
382
+ let out = "";
383
+ while (re.length > 0) {
384
+ const match = BACKREF_RE.exec(re);
385
+ if (!match) {
386
+ out += re;
387
+ break;
388
+ }
389
+ out += re.substring(0, match.index);
390
+ re = re.substring(match.index + match[0].length);
391
+ if (match[0][0] === "\\" && match[1]) out += "\\" + String(Number(match[1]) + offset);else {
392
+ out += match[0];
393
+ if (match[0] === "(") numCaptures++;
394
+ }
395
+ }
396
+ return out;
397
+ }).map(re => `(${re})`).join(joinWith);
398
+ }
399
+ /** @typedef {import('highlight.js').Mode} Mode */
400
+ /** @typedef {import('highlight.js').ModeCallback} ModeCallback */
401
+ var MATCH_NOTHING_RE = /\b\B/;
402
+ var IDENT_RE = "[a-zA-Z]\\w*";
403
+ var UNDERSCORE_IDENT_RE = "[a-zA-Z_]\\w*";
404
+ var NUMBER_RE = "\\b\\d+(\\.\\d+)?";
405
+ var C_NUMBER_RE = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)";
406
+ var BINARY_NUMBER_RE = "\\b(0b[01]+)";
407
+ var RE_STARTERS_RE = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~";
408
+ /**
409
+ * @param { Partial<Mode> & {binary?: string | RegExp} } opts
410
+ */
411
+ var SHEBANG = (opts = {}) => {
412
+ const beginShebang = /^#![ ]*\//;
413
+ if (opts.binary) opts.begin = concat(beginShebang, /.*\b/, opts.binary, /\b.*/);
414
+ return inherit$1({
415
+ scope: "meta",
416
+ begin: beginShebang,
417
+ end: /$/,
418
+ relevance: 0,
419
+ "on:begin": (m, resp) => {
420
+ if (m.index !== 0) resp.ignoreMatch();
421
+ }
422
+ }, opts);
423
+ };
424
+ var BACKSLASH_ESCAPE = {
425
+ begin: "\\\\[\\s\\S]",
426
+ relevance: 0
427
+ };
428
+ var APOS_STRING_MODE = {
429
+ scope: "string",
430
+ begin: "'",
431
+ end: "'",
432
+ illegal: "\\n",
433
+ contains: [BACKSLASH_ESCAPE]
434
+ };
435
+ var QUOTE_STRING_MODE = {
436
+ scope: "string",
437
+ begin: "\"",
438
+ end: "\"",
439
+ illegal: "\\n",
440
+ contains: [BACKSLASH_ESCAPE]
441
+ };
442
+ var PHRASAL_WORDS_MODE = {
443
+ begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
444
+ };
445
+ /**
446
+ * Creates a comment mode
447
+ *
448
+ * @param {string | RegExp} begin
449
+ * @param {string | RegExp} end
450
+ * @param {Mode | {}} [modeOptions]
451
+ * @returns {Partial<Mode>}
452
+ */
453
+ var COMMENT = function (begin, end, modeOptions = {}) {
454
+ const mode = inherit$1({
455
+ scope: "comment",
456
+ begin,
457
+ end,
458
+ contains: []
459
+ }, modeOptions);
460
+ mode.contains.push({
461
+ scope: "doctag",
462
+ begin: "[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",
463
+ end: /(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,
464
+ excludeBegin: true,
465
+ relevance: 0
466
+ });
467
+ const ENGLISH_WORD = either("I", "a", "is", "so", "us", "to", "at", "if", "in", "it", "on", /[A-Za-z]+['](d|ve|re|ll|t|s|n)/, /[A-Za-z]+[-][a-z]+/, /[A-Za-z][a-z]{2,}/);
468
+ mode.contains.push({
469
+ begin: concat(/[ ]+/, "(", ENGLISH_WORD, /[.]?[:]?([.][ ]|[ ])/, "){3}")
470
+ });
471
+ return mode;
472
+ };
473
+ var C_LINE_COMMENT_MODE = COMMENT("//", "$");
474
+ var C_BLOCK_COMMENT_MODE = COMMENT("/\\*", "\\*/");
475
+ var HASH_COMMENT_MODE = COMMENT("#", "$");
476
+ var NUMBER_MODE = {
477
+ scope: "number",
478
+ begin: NUMBER_RE,
479
+ relevance: 0
480
+ };
481
+ var C_NUMBER_MODE = {
482
+ scope: "number",
483
+ begin: C_NUMBER_RE,
484
+ relevance: 0
485
+ };
486
+ var BINARY_NUMBER_MODE = {
487
+ scope: "number",
488
+ begin: BINARY_NUMBER_RE,
489
+ relevance: 0
490
+ };
491
+ var REGEXP_MODE = {
492
+ scope: "regexp",
493
+ begin: /\/(?=[^/\n]*\/)/,
494
+ end: /\/[gimuy]*/,
495
+ contains: [BACKSLASH_ESCAPE, {
496
+ begin: /\[/,
497
+ end: /\]/,
498
+ relevance: 0,
499
+ contains: [BACKSLASH_ESCAPE]
500
+ }]
501
+ };
502
+ var TITLE_MODE = {
503
+ scope: "title",
504
+ begin: IDENT_RE,
505
+ relevance: 0
506
+ };
507
+ var UNDERSCORE_TITLE_MODE = {
508
+ scope: "title",
509
+ begin: UNDERSCORE_IDENT_RE,
510
+ relevance: 0
511
+ };
512
+ var METHOD_GUARD = {
513
+ begin: "\\.\\s*" + UNDERSCORE_IDENT_RE,
514
+ relevance: 0
515
+ };
516
+ /**
517
+ * Adds end same as begin mechanics to a mode
518
+ *
519
+ * Your mode must include at least a single () match group as that first match
520
+ * group is what is used for comparison
521
+ * @param {Partial<Mode>} mode
522
+ */
523
+ var END_SAME_AS_BEGIN = function (mode) {
524
+ return Object.assign(mode, {
525
+ "on:begin": (m, resp) => {
526
+ resp.data._beginMatch = m[1];
527
+ },
528
+ "on:end": (m, resp) => {
529
+ if (resp.data._beginMatch !== m[1]) resp.ignoreMatch();
530
+ }
531
+ });
532
+ };
533
+ var MODES = /* @__PURE__ */Object.freeze({
534
+ __proto__: null,
535
+ APOS_STRING_MODE,
536
+ BACKSLASH_ESCAPE,
537
+ BINARY_NUMBER_MODE,
538
+ BINARY_NUMBER_RE,
539
+ COMMENT,
540
+ C_BLOCK_COMMENT_MODE,
541
+ C_LINE_COMMENT_MODE,
542
+ C_NUMBER_MODE,
543
+ C_NUMBER_RE,
544
+ END_SAME_AS_BEGIN,
545
+ HASH_COMMENT_MODE,
546
+ IDENT_RE,
547
+ MATCH_NOTHING_RE,
548
+ METHOD_GUARD,
549
+ NUMBER_MODE,
550
+ NUMBER_RE,
551
+ PHRASAL_WORDS_MODE,
552
+ QUOTE_STRING_MODE,
553
+ REGEXP_MODE,
554
+ RE_STARTERS_RE,
555
+ SHEBANG,
556
+ TITLE_MODE,
557
+ UNDERSCORE_IDENT_RE,
558
+ UNDERSCORE_TITLE_MODE
559
+ });
560
+ /**
561
+ @typedef {import('highlight.js').CallbackResponse} CallbackResponse
562
+ @typedef {import('highlight.js').CompilerExt} CompilerExt
563
+ */
564
+ /**
565
+ * Skip a match if it has a preceding dot
566
+ *
567
+ * This is used for `beginKeywords` to prevent matching expressions such as
568
+ * `bob.keyword.do()`. The mode compiler automatically wires this up as a
569
+ * special _internal_ 'on:begin' callback for modes with `beginKeywords`
570
+ * @param {RegExpMatchArray} match
571
+ * @param {CallbackResponse} response
572
+ */
573
+ function skipIfHasPrecedingDot(match, response) {
574
+ if (match.input[match.index - 1] === ".") response.ignoreMatch();
575
+ }
576
+ /**
577
+ *
578
+ * @type {CompilerExt}
579
+ */
580
+ function scopeClassName(mode, _parent) {
581
+ if (mode.className !== void 0) {
582
+ mode.scope = mode.className;
583
+ delete mode.className;
584
+ }
585
+ }
586
+ /**
587
+ * `beginKeywords` syntactic sugar
588
+ * @type {CompilerExt}
589
+ */
590
+ function beginKeywords(mode, parent) {
591
+ if (!parent) return;
592
+ if (!mode.beginKeywords) return;
593
+ mode.begin = "\\b(" + mode.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)";
594
+ mode.__beforeBegin = skipIfHasPrecedingDot;
595
+ mode.keywords = mode.keywords || mode.beginKeywords;
596
+ delete mode.beginKeywords;
597
+ if (mode.relevance === void 0) mode.relevance = 0;
598
+ }
599
+ /**
600
+ * Allow `illegal` to contain an array of illegal values
601
+ * @type {CompilerExt}
602
+ */
603
+ function compileIllegal(mode, _parent) {
604
+ if (!Array.isArray(mode.illegal)) return;
605
+ mode.illegal = either(...mode.illegal);
606
+ }
607
+ /**
608
+ * `match` to match a single expression for readability
609
+ * @type {CompilerExt}
610
+ */
611
+ function compileMatch(mode, _parent) {
612
+ if (!mode.match) return;
613
+ if (mode.begin || mode.end) throw new Error("begin & end are not supported with match");
614
+ mode.begin = mode.match;
615
+ delete mode.match;
616
+ }
617
+ /**
618
+ * provides the default 1 relevance to all modes
619
+ * @type {CompilerExt}
620
+ */
621
+ function compileRelevance(mode, _parent) {
622
+ if (mode.relevance === void 0) mode.relevance = 1;
623
+ }
624
+ var beforeMatchExt = (mode, parent) => {
625
+ if (!mode.beforeMatch) return;
626
+ if (mode.starts) throw new Error("beforeMatch cannot be used with starts");
627
+ const originalMode = Object.assign({}, mode);
628
+ Object.keys(mode).forEach(key => {
629
+ delete mode[key];
630
+ });
631
+ mode.keywords = originalMode.keywords;
632
+ mode.begin = concat(originalMode.beforeMatch, lookahead(originalMode.begin));
633
+ mode.starts = {
634
+ relevance: 0,
635
+ contains: [Object.assign(originalMode, {
636
+ endsParent: true
637
+ })]
638
+ };
639
+ mode.relevance = 0;
640
+ delete originalMode.beforeMatch;
641
+ };
642
+ var COMMON_KEYWORDS = ["of", "and", "for", "in", "not", "or", "if", "then", "parent", "list", "value"];
643
+ var DEFAULT_KEYWORD_SCOPE = "keyword";
644
+ /**
645
+ * Given raw keywords from a language definition, compile them.
646
+ *
647
+ * @param {string | Record<string,string|string[]> | Array<string>} rawKeywords
648
+ * @param {boolean} caseInsensitive
649
+ */
650
+ function compileKeywords(rawKeywords, caseInsensitive, scopeName = DEFAULT_KEYWORD_SCOPE) {
651
+ /** @type {import("highlight.js/private").KeywordDict} */
652
+ const compiledKeywords = Object.create(null);
653
+ if (typeof rawKeywords === "string") compileList(scopeName, rawKeywords.split(" "));else if (Array.isArray(rawKeywords)) compileList(scopeName, rawKeywords);else Object.keys(rawKeywords).forEach(function (scopeName$1) {
654
+ Object.assign(compiledKeywords, compileKeywords(rawKeywords[scopeName$1], caseInsensitive, scopeName$1));
655
+ });
656
+ return compiledKeywords;
657
+ /**
658
+ * Compiles an individual list of keywords
659
+ *
660
+ * Ex: "for if when while|5"
661
+ *
662
+ * @param {string} scopeName
663
+ * @param {Array<string>} keywordList
664
+ */
665
+ function compileList(scopeName$1, keywordList) {
666
+ if (caseInsensitive) keywordList = keywordList.map(x => x.toLowerCase());
667
+ keywordList.forEach(function (keyword) {
668
+ const pair = keyword.split("|");
669
+ compiledKeywords[pair[0]] = [scopeName$1, scoreForKeyword(pair[0], pair[1])];
670
+ });
671
+ }
672
+ }
673
+ /**
674
+ * Returns the proper score for a given keyword
675
+ *
676
+ * Also takes into account comment keywords, which will be scored 0 UNLESS
677
+ * another score has been manually assigned.
678
+ * @param {string} keyword
679
+ * @param {string} [providedScore]
680
+ */
681
+ function scoreForKeyword(keyword, providedScore) {
682
+ if (providedScore) return Number(providedScore);
683
+ return commonKeyword(keyword) ? 0 : 1;
684
+ }
685
+ /**
686
+ * Determines if a given keyword is common or not
687
+ *
688
+ * @param {string} keyword */
689
+ function commonKeyword(keyword) {
690
+ return COMMON_KEYWORDS.includes(keyword.toLowerCase());
691
+ }
692
+ /**
693
+ * @type {Record<string, boolean>}
694
+ */
695
+ var seenDeprecations = {};
696
+ /**
697
+ * @param {string} message
698
+ */
699
+ var error = message => {
700
+ console.error(message);
701
+ };
702
+ /**
703
+ * @param {string} message
704
+ * @param {any} args
705
+ */
706
+ var warn = (message, ...args) => {
707
+ console.log(`WARN: ${message}`, ...args);
708
+ };
709
+ /**
710
+ * @param {string} version
711
+ * @param {string} message
712
+ */
713
+ var deprecated = (version$1, message) => {
714
+ if (seenDeprecations[`${version$1}/${message}`]) return;
715
+ console.log(`Deprecated as of ${version$1}. ${message}`);
716
+ seenDeprecations[`${version$1}/${message}`] = true;
717
+ };
718
+ /**
719
+ @typedef {import('highlight.js').CompiledMode} CompiledMode
720
+ */
721
+ var MultiClassError = /* @__PURE__ */new Error();
722
+ /**
723
+ * Renumbers labeled scope names to account for additional inner match
724
+ * groups that otherwise would break everything.
725
+ *
726
+ * Lets say we 3 match scopes:
727
+ *
728
+ * { 1 => ..., 2 => ..., 3 => ... }
729
+ *
730
+ * So what we need is a clean match like this:
731
+ *
732
+ * (a)(b)(c) => [ "a", "b", "c" ]
733
+ *
734
+ * But this falls apart with inner match groups:
735
+ *
736
+ * (a)(((b)))(c) => ["a", "b", "b", "b", "c" ]
737
+ *
738
+ * Our scopes are now "out of alignment" and we're repeating `b` 3 times.
739
+ * What needs to happen is the numbers are remapped:
740
+ *
741
+ * { 1 => ..., 2 => ..., 5 => ... }
742
+ *
743
+ * We also need to know that the ONLY groups that should be output
744
+ * are 1, 2, and 5. This function handles this behavior.
745
+ *
746
+ * @param {CompiledMode} mode
747
+ * @param {Array<RegExp | string>} regexes
748
+ * @param {{key: "beginScope"|"endScope"}} opts
749
+ */
750
+ function remapScopeNames(mode, regexes, {
751
+ key
752
+ }) {
753
+ let offset = 0;
754
+ const scopeNames = mode[key];
755
+ /** @type Record<number,boolean> */
756
+ const emit = {};
757
+ /** @type Record<number,string> */
758
+ const positions = {};
759
+ for (let i = 1; i <= regexes.length; i++) {
760
+ positions[i + offset] = scopeNames[i];
761
+ emit[i + offset] = true;
762
+ offset += countMatchGroups(regexes[i - 1]);
763
+ }
764
+ mode[key] = positions;
765
+ mode[key]._emit = emit;
766
+ mode[key]._multi = true;
767
+ }
768
+ /**
769
+ * @param {CompiledMode} mode
770
+ */
771
+ function beginMultiClass(mode) {
772
+ if (!Array.isArray(mode.begin)) return;
773
+ if (mode.skip || mode.excludeBegin || mode.returnBegin) {
774
+ error("skip, excludeBegin, returnBegin not compatible with beginScope: {}");
775
+ throw MultiClassError;
776
+ }
777
+ if (typeof mode.beginScope !== "object" || mode.beginScope === null) {
778
+ error("beginScope must be object");
779
+ throw MultiClassError;
780
+ }
781
+ remapScopeNames(mode, mode.begin, {
782
+ key: "beginScope"
783
+ });
784
+ mode.begin = _rewriteBackreferences(mode.begin, {
785
+ joinWith: ""
786
+ });
787
+ }
788
+ /**
789
+ * @param {CompiledMode} mode
790
+ */
791
+ function endMultiClass(mode) {
792
+ if (!Array.isArray(mode.end)) return;
793
+ if (mode.skip || mode.excludeEnd || mode.returnEnd) {
794
+ error("skip, excludeEnd, returnEnd not compatible with endScope: {}");
795
+ throw MultiClassError;
796
+ }
797
+ if (typeof mode.endScope !== "object" || mode.endScope === null) {
798
+ error("endScope must be object");
799
+ throw MultiClassError;
800
+ }
801
+ remapScopeNames(mode, mode.end, {
802
+ key: "endScope"
803
+ });
804
+ mode.end = _rewriteBackreferences(mode.end, {
805
+ joinWith: ""
806
+ });
807
+ }
808
+ /**
809
+ * this exists only to allow `scope: {}` to be used beside `match:`
810
+ * Otherwise `beginScope` would necessary and that would look weird
811
+
812
+ {
813
+ match: [ /def/, /\w+/ ]
814
+ scope: { 1: "keyword" , 2: "title" }
815
+ }
816
+
817
+ * @param {CompiledMode} mode
818
+ */
819
+ function scopeSugar(mode) {
820
+ if (mode.scope && typeof mode.scope === "object" && mode.scope !== null) {
821
+ mode.beginScope = mode.scope;
822
+ delete mode.scope;
823
+ }
824
+ }
825
+ /**
826
+ * @param {CompiledMode} mode
827
+ */
828
+ function MultiClass(mode) {
829
+ scopeSugar(mode);
830
+ if (typeof mode.beginScope === "string") mode.beginScope = {
831
+ _wrap: mode.beginScope
832
+ };
833
+ if (typeof mode.endScope === "string") mode.endScope = {
834
+ _wrap: mode.endScope
835
+ };
836
+ beginMultiClass(mode);
837
+ endMultiClass(mode);
838
+ }
839
+ /**
840
+ @typedef {import('highlight.js').Mode} Mode
841
+ @typedef {import('highlight.js').CompiledMode} CompiledMode
842
+ @typedef {import('highlight.js').Language} Language
843
+ @typedef {import('highlight.js').HLJSPlugin} HLJSPlugin
844
+ @typedef {import('highlight.js').CompiledLanguage} CompiledLanguage
845
+ */
846
+ /**
847
+ * Compiles a language definition result
848
+ *
849
+ * Given the raw result of a language definition (Language), compiles this so
850
+ * that it is ready for highlighting code.
851
+ * @param {Language} language
852
+ * @returns {CompiledLanguage}
853
+ */
854
+ function compileLanguage(language) {
855
+ /**
856
+ * Builds a regex with the case sensitivity of the current language
857
+ *
858
+ * @param {RegExp | string} value
859
+ * @param {boolean} [global]
860
+ */
861
+ function langRe(value, global) {
862
+ return new RegExp(source(value), "m" + (language.case_insensitive ? "i" : "") + (language.unicodeRegex ? "u" : "") + (global ? "g" : ""));
863
+ }
864
+ /**
865
+ Stores multiple regular expressions and allows you to quickly search for
866
+ them all in a string simultaneously - returning the first match. It does
867
+ this by creating a huge (a|b|c) regex - each individual item wrapped with ()
868
+ and joined by `|` - using match groups to track position. When a match is
869
+ found checking which position in the array has content allows us to figure
870
+ out which of the original regexes / match groups triggered the match.
871
+
872
+ The match object itself (the result of `Regex.exec`) is returned but also
873
+ enhanced by merging in any meta-data that was registered with the regex.
874
+ This is how we keep track of which mode matched, and what type of rule
875
+ (`illegal`, `begin`, end, etc).
876
+ */
877
+ class MultiRegex {
878
+ constructor() {
879
+ this.matchIndexes = {};
880
+ this.regexes = [];
881
+ this.matchAt = 1;
882
+ this.position = 0;
883
+ }
884
+ addRule(re, opts) {
885
+ opts.position = this.position++;
886
+ this.matchIndexes[this.matchAt] = opts;
887
+ this.regexes.push([opts, re]);
888
+ this.matchAt += countMatchGroups(re) + 1;
889
+ }
890
+ compile() {
891
+ if (this.regexes.length === 0) this.exec = () => null;
892
+ this.matcherRe = langRe(_rewriteBackreferences(this.regexes.map(el => el[1]), {
893
+ joinWith: "|"
894
+ }), true);
895
+ this.lastIndex = 0;
896
+ }
897
+ /** @param {string} s */
898
+ exec(s) {
899
+ this.matcherRe.lastIndex = this.lastIndex;
900
+ const match = this.matcherRe.exec(s);
901
+ if (!match) return null;
902
+ const i = match.findIndex((el, i$1) => i$1 > 0 && el !== void 0);
903
+ const matchData = this.matchIndexes[i];
904
+ match.splice(0, i);
905
+ return Object.assign(match, matchData);
906
+ }
907
+ }
908
+ class ResumableMultiRegex {
909
+ constructor() {
910
+ this.rules = [];
911
+ this.multiRegexes = [];
912
+ this.count = 0;
913
+ this.lastIndex = 0;
914
+ this.regexIndex = 0;
915
+ }
916
+ getMatcher(index) {
917
+ if (this.multiRegexes[index]) return this.multiRegexes[index];
918
+ const matcher = new MultiRegex();
919
+ this.rules.slice(index).forEach(([re, opts]) => matcher.addRule(re, opts));
920
+ matcher.compile();
921
+ this.multiRegexes[index] = matcher;
922
+ return matcher;
923
+ }
924
+ resumingScanAtSamePosition() {
925
+ return this.regexIndex !== 0;
926
+ }
927
+ considerAll() {
928
+ this.regexIndex = 0;
929
+ }
930
+ addRule(re, opts) {
931
+ this.rules.push([re, opts]);
932
+ if (opts.type === "begin") this.count++;
933
+ }
934
+ /** @param {string} s */
935
+ exec(s) {
936
+ const m = this.getMatcher(this.regexIndex);
937
+ m.lastIndex = this.lastIndex;
938
+ let result = m.exec(s);
939
+ if (this.resumingScanAtSamePosition()) if (result && result.index === this.lastIndex) ;else {
940
+ const m2 = this.getMatcher(0);
941
+ m2.lastIndex = this.lastIndex + 1;
942
+ result = m2.exec(s);
943
+ }
944
+ if (result) {
945
+ this.regexIndex += result.position + 1;
946
+ if (this.regexIndex === this.count) this.considerAll();
947
+ }
948
+ return result;
949
+ }
950
+ }
951
+ /**
952
+ * Given a mode, builds a huge ResumableMultiRegex that can be used to walk
953
+ * the content and find matches.
954
+ *
955
+ * @param {CompiledMode} mode
956
+ * @returns {ResumableMultiRegex}
957
+ */
958
+ function buildModeRegex(mode) {
959
+ const mm = new ResumableMultiRegex();
960
+ mode.contains.forEach(term => mm.addRule(term.begin, {
961
+ rule: term,
962
+ type: "begin"
963
+ }));
964
+ if (mode.terminatorEnd) mm.addRule(mode.terminatorEnd, {
965
+ type: "end"
966
+ });
967
+ if (mode.illegal) mm.addRule(mode.illegal, {
968
+ type: "illegal"
969
+ });
970
+ return mm;
971
+ }
972
+ /** skip vs abort vs ignore
973
+ *
974
+ * @skip - The mode is still entered and exited normally (and contains rules apply),
975
+ * but all content is held and added to the parent buffer rather than being
976
+ * output when the mode ends. Mostly used with `sublanguage` to build up
977
+ * a single large buffer than can be parsed by sublanguage.
978
+ *
979
+ * - The mode begin ands ends normally.
980
+ * - Content matched is added to the parent mode buffer.
981
+ * - The parser cursor is moved forward normally.
982
+ *
983
+ * @abort - A hack placeholder until we have ignore. Aborts the mode (as if it
984
+ * never matched) but DOES NOT continue to match subsequent `contains`
985
+ * modes. Abort is bad/suboptimal because it can result in modes
986
+ * farther down not getting applied because an earlier rule eats the
987
+ * content but then aborts.
988
+ *
989
+ * - The mode does not begin.
990
+ * - Content matched by `begin` is added to the mode buffer.
991
+ * - The parser cursor is moved forward accordingly.
992
+ *
993
+ * @ignore - Ignores the mode (as if it never matched) and continues to match any
994
+ * subsequent `contains` modes. Ignore isn't technically possible with
995
+ * the current parser implementation.
996
+ *
997
+ * - The mode does not begin.
998
+ * - Content matched by `begin` is ignored.
999
+ * - The parser cursor is not moved forward.
1000
+ */
1001
+ /**
1002
+ * Compiles an individual mode
1003
+ *
1004
+ * This can raise an error if the mode contains certain detectable known logic
1005
+ * issues.
1006
+ * @param {Mode} mode
1007
+ * @param {CompiledMode | null} [parent]
1008
+ * @returns {CompiledMode | never}
1009
+ */
1010
+ function compileMode(mode, parent) {
1011
+ const cmode = mode;
1012
+ if (mode.isCompiled) return cmode;
1013
+ [scopeClassName, compileMatch, MultiClass, beforeMatchExt].forEach(ext => ext(mode, parent));
1014
+ language.compilerExtensions.forEach(ext => ext(mode, parent));
1015
+ mode.__beforeBegin = null;
1016
+ [beginKeywords, compileIllegal, compileRelevance].forEach(ext => ext(mode, parent));
1017
+ mode.isCompiled = true;
1018
+ let keywordPattern = null;
1019
+ if (typeof mode.keywords === "object" && mode.keywords.$pattern) {
1020
+ mode.keywords = Object.assign({}, mode.keywords);
1021
+ keywordPattern = mode.keywords.$pattern;
1022
+ delete mode.keywords.$pattern;
1023
+ }
1024
+ keywordPattern = keywordPattern || /\w+/;
1025
+ if (mode.keywords) mode.keywords = compileKeywords(mode.keywords, language.case_insensitive);
1026
+ cmode.keywordPatternRe = langRe(keywordPattern, true);
1027
+ if (parent) {
1028
+ if (!mode.begin) mode.begin = /\B|\b/;
1029
+ cmode.beginRe = langRe(cmode.begin);
1030
+ if (!mode.end && !mode.endsWithParent) mode.end = /\B|\b/;
1031
+ if (mode.end) cmode.endRe = langRe(cmode.end);
1032
+ cmode.terminatorEnd = source(cmode.end) || "";
1033
+ if (mode.endsWithParent && parent.terminatorEnd) cmode.terminatorEnd += (mode.end ? "|" : "") + parent.terminatorEnd;
1034
+ }
1035
+ if (mode.illegal) cmode.illegalRe = langRe(mode.illegal);
1036
+ if (!mode.contains) mode.contains = [];
1037
+ mode.contains = [].concat(...mode.contains.map(function (c) {
1038
+ return expandOrCloneMode(c === "self" ? mode : c);
1039
+ }));
1040
+ mode.contains.forEach(function (c) {
1041
+ compileMode(c, cmode);
1042
+ });
1043
+ if (mode.starts) compileMode(mode.starts, parent);
1044
+ cmode.matcher = buildModeRegex(cmode);
1045
+ return cmode;
1046
+ }
1047
+ if (!language.compilerExtensions) language.compilerExtensions = [];
1048
+ if (language.contains && language.contains.includes("self")) throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
1049
+ language.classNameAliases = inherit$1(language.classNameAliases || {});
1050
+ return compileMode(language);
1051
+ }
1052
+ /**
1053
+ * Determines if a mode has a dependency on it's parent or not
1054
+ *
1055
+ * If a mode does have a parent dependency then often we need to clone it if
1056
+ * it's used in multiple places so that each copy points to the correct parent,
1057
+ * where-as modes without a parent can often safely be re-used at the bottom of
1058
+ * a mode chain.
1059
+ *
1060
+ * @param {Mode | null} mode
1061
+ * @returns {boolean} - is there a dependency on the parent?
1062
+ * */
1063
+ function dependencyOnParent(mode) {
1064
+ if (!mode) return false;
1065
+ return mode.endsWithParent || dependencyOnParent(mode.starts);
1066
+ }
1067
+ /**
1068
+ * Expands a mode or clones it if necessary
1069
+ *
1070
+ * This is necessary for modes with parental dependenceis (see notes on
1071
+ * `dependencyOnParent`) and for nodes that have `variants` - which must then be
1072
+ * exploded into their own individual modes at compile time.
1073
+ *
1074
+ * @param {Mode} mode
1075
+ * @returns {Mode | Mode[]}
1076
+ * */
1077
+ function expandOrCloneMode(mode) {
1078
+ if (mode.variants && !mode.cachedVariants) mode.cachedVariants = mode.variants.map(function (variant) {
1079
+ return inherit$1(mode, {
1080
+ variants: null
1081
+ }, variant);
1082
+ });
1083
+ if (mode.cachedVariants) return mode.cachedVariants;
1084
+ if (dependencyOnParent(mode)) return inherit$1(mode, {
1085
+ starts: mode.starts ? inherit$1(mode.starts) : null
1086
+ });
1087
+ if (Object.isFrozen(mode)) return inherit$1(mode);
1088
+ return mode;
1089
+ }
1090
+ var version = "11.11.1";
1091
+ var HTMLInjectionError = class extends Error {
1092
+ constructor(reason, html) {
1093
+ super(reason);
1094
+ this.name = "HTMLInjectionError";
1095
+ this.html = html;
1096
+ }
1097
+ };
1098
+ /**
1099
+ @typedef {import('highlight.js').Mode} Mode
1100
+ @typedef {import('highlight.js').CompiledMode} CompiledMode
1101
+ @typedef {import('highlight.js').CompiledScope} CompiledScope
1102
+ @typedef {import('highlight.js').Language} Language
1103
+ @typedef {import('highlight.js').HLJSApi} HLJSApi
1104
+ @typedef {import('highlight.js').HLJSPlugin} HLJSPlugin
1105
+ @typedef {import('highlight.js').PluginEvent} PluginEvent
1106
+ @typedef {import('highlight.js').HLJSOptions} HLJSOptions
1107
+ @typedef {import('highlight.js').LanguageFn} LanguageFn
1108
+ @typedef {import('highlight.js').HighlightedHTMLElement} HighlightedHTMLElement
1109
+ @typedef {import('highlight.js').BeforeHighlightContext} BeforeHighlightContext
1110
+ @typedef {import('highlight.js/private').MatchType} MatchType
1111
+ @typedef {import('highlight.js/private').KeywordData} KeywordData
1112
+ @typedef {import('highlight.js/private').EnhancedMatch} EnhancedMatch
1113
+ @typedef {import('highlight.js/private').AnnotatedError} AnnotatedError
1114
+ @typedef {import('highlight.js').AutoHighlightResult} AutoHighlightResult
1115
+ @typedef {import('highlight.js').HighlightOptions} HighlightOptions
1116
+ @typedef {import('highlight.js').HighlightResult} HighlightResult
1117
+ */
1118
+ var escape = escapeHTML;
1119
+ var inherit = inherit$1;
1120
+ var NO_MATCH = Symbol("nomatch");
1121
+ var MAX_KEYWORD_HITS = 7;
1122
+ /**
1123
+ * @param {any} hljs - object that is extended (legacy)
1124
+ * @returns {HLJSApi}
1125
+ */
1126
+ var HLJS = function (hljs) {
1127
+ /** @type {Record<string, Language>} */
1128
+ const languages = Object.create(null);
1129
+ /** @type {Record<string, string>} */
1130
+ const aliases = Object.create(null);
1131
+ /** @type {HLJSPlugin[]} */
1132
+ const plugins = [];
1133
+ let SAFE_MODE = true;
1134
+ const LANGUAGE_NOT_FOUND = "Could not find the language '{}', did you forget to load/include a language module?";
1135
+ /** @type {Language} */
1136
+ const PLAINTEXT_LANGUAGE = {
1137
+ disableAutodetect: true,
1138
+ name: "Plain text",
1139
+ contains: []
1140
+ };
1141
+ /** @type HLJSOptions */
1142
+ let options = {
1143
+ ignoreUnescapedHTML: false,
1144
+ throwUnescapedHTML: false,
1145
+ noHighlightRe: /^(no-?highlight)$/i,
1146
+ languageDetectRe: /\blang(?:uage)?-([\w-]+)\b/i,
1147
+ classPrefix: "hljs-",
1148
+ cssSelector: "pre code",
1149
+ languages: null,
1150
+ __emitter: TokenTreeEmitter
1151
+ };
1152
+ /**
1153
+ * Tests a language name to see if highlighting should be skipped
1154
+ * @param {string} languageName
1155
+ */
1156
+ function shouldNotHighlight(languageName) {
1157
+ return options.noHighlightRe.test(languageName);
1158
+ }
1159
+ /**
1160
+ * @param {HighlightedHTMLElement} block - the HTML element to determine language for
1161
+ */
1162
+ function blockLanguage(block) {
1163
+ let classes = block.className + " ";
1164
+ classes += block.parentNode ? block.parentNode.className : "";
1165
+ const match = options.languageDetectRe.exec(classes);
1166
+ if (match) {
1167
+ const language = getLanguage(match[1]);
1168
+ if (!language) {
1169
+ warn(LANGUAGE_NOT_FOUND.replace("{}", match[1]));
1170
+ warn("Falling back to no-highlight mode for this block.", block);
1171
+ }
1172
+ return language ? match[1] : "no-highlight";
1173
+ }
1174
+ return classes.split(/\s+/).find(_class => shouldNotHighlight(_class) || getLanguage(_class));
1175
+ }
1176
+ /**
1177
+ * Core highlighting function.
1178
+ *
1179
+ * OLD API
1180
+ * highlight(lang, code, ignoreIllegals, continuation)
1181
+ *
1182
+ * NEW API
1183
+ * highlight(code, {lang, ignoreIllegals})
1184
+ *
1185
+ * @param {string} codeOrLanguageName - the language to use for highlighting
1186
+ * @param {string | HighlightOptions} optionsOrCode - the code to highlight
1187
+ * @param {boolean} [ignoreIllegals] - whether to ignore illegal matches, default is to bail
1188
+ *
1189
+ * @returns {HighlightResult} Result - an object that represents the result
1190
+ * @property {string} language - the language name
1191
+ * @property {number} relevance - the relevance score
1192
+ * @property {string} value - the highlighted HTML code
1193
+ * @property {string} code - the original raw code
1194
+ * @property {CompiledMode} top - top of the current mode stack
1195
+ * @property {boolean} illegal - indicates whether any illegal matches were found
1196
+ */
1197
+ function highlight$1(codeOrLanguageName, optionsOrCode, ignoreIllegals) {
1198
+ let code = "";
1199
+ let languageName = "";
1200
+ if (typeof optionsOrCode === "object") {
1201
+ code = codeOrLanguageName;
1202
+ ignoreIllegals = optionsOrCode.ignoreIllegals;
1203
+ languageName = optionsOrCode.language;
1204
+ } else {
1205
+ deprecated("10.7.0", "highlight(lang, code, ...args) has been deprecated.");
1206
+ deprecated("10.7.0", "Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277");
1207
+ languageName = codeOrLanguageName;
1208
+ code = optionsOrCode;
1209
+ }
1210
+ if (ignoreIllegals === void 0) ignoreIllegals = true;
1211
+ /** @type {BeforeHighlightContext} */
1212
+ const context = {
1213
+ code,
1214
+ language: languageName
1215
+ };
1216
+ fire("before:highlight", context);
1217
+ const result = context.result ? context.result : _highlight(context.language, context.code, ignoreIllegals);
1218
+ result.code = context.code;
1219
+ fire("after:highlight", result);
1220
+ return result;
1221
+ }
1222
+ /**
1223
+ * private highlight that's used internally and does not fire callbacks
1224
+ *
1225
+ * @param {string} languageName - the language to use for highlighting
1226
+ * @param {string} codeToHighlight - the code to highlight
1227
+ * @param {boolean?} [ignoreIllegals] - whether to ignore illegal matches, default is to bail
1228
+ * @param {CompiledMode?} [continuation] - current continuation mode, if any
1229
+ * @returns {HighlightResult} - result of the highlight operation
1230
+ */
1231
+ function _highlight(languageName, codeToHighlight, ignoreIllegals, continuation) {
1232
+ const keywordHits = Object.create(null);
1233
+ /**
1234
+ * Return keyword data if a match is a keyword
1235
+ * @param {CompiledMode} mode - current mode
1236
+ * @param {string} matchText - the textual match
1237
+ * @returns {KeywordData | false}
1238
+ */
1239
+ function keywordData(mode, matchText) {
1240
+ return mode.keywords[matchText];
1241
+ }
1242
+ function processKeywords() {
1243
+ if (!top.keywords) {
1244
+ emitter.addText(modeBuffer);
1245
+ return;
1246
+ }
1247
+ let lastIndex = 0;
1248
+ top.keywordPatternRe.lastIndex = 0;
1249
+ let match = top.keywordPatternRe.exec(modeBuffer);
1250
+ let buf = "";
1251
+ while (match) {
1252
+ buf += modeBuffer.substring(lastIndex, match.index);
1253
+ const word = language.case_insensitive ? match[0].toLowerCase() : match[0];
1254
+ const data = keywordData(top, word);
1255
+ if (data) {
1256
+ const [kind, keywordRelevance] = data;
1257
+ emitter.addText(buf);
1258
+ buf = "";
1259
+ keywordHits[word] = (keywordHits[word] || 0) + 1;
1260
+ if (keywordHits[word] <= MAX_KEYWORD_HITS) relevance += keywordRelevance;
1261
+ if (kind.startsWith("_")) buf += match[0];else {
1262
+ const cssClass = language.classNameAliases[kind] || kind;
1263
+ emitKeyword(match[0], cssClass);
1264
+ }
1265
+ } else buf += match[0];
1266
+ lastIndex = top.keywordPatternRe.lastIndex;
1267
+ match = top.keywordPatternRe.exec(modeBuffer);
1268
+ }
1269
+ buf += modeBuffer.substring(lastIndex);
1270
+ emitter.addText(buf);
1271
+ }
1272
+ function processSubLanguage() {
1273
+ if (modeBuffer === "") return;
1274
+ /** @type HighlightResult */
1275
+ let result$1 = null;
1276
+ if (typeof top.subLanguage === "string") {
1277
+ if (!languages[top.subLanguage]) {
1278
+ emitter.addText(modeBuffer);
1279
+ return;
1280
+ }
1281
+ result$1 = _highlight(top.subLanguage, modeBuffer, true, continuations[top.subLanguage]);
1282
+ continuations[top.subLanguage] = result$1._top;
1283
+ } else result$1 = highlightAuto(modeBuffer, top.subLanguage.length ? top.subLanguage : null);
1284
+ if (top.relevance > 0) relevance += result$1.relevance;
1285
+ emitter.__addSublanguage(result$1._emitter, result$1.language);
1286
+ }
1287
+ function processBuffer() {
1288
+ if (top.subLanguage != null) processSubLanguage();else processKeywords();
1289
+ modeBuffer = "";
1290
+ }
1291
+ /**
1292
+ * @param {string} text
1293
+ * @param {string} scope
1294
+ */
1295
+ function emitKeyword(keyword, scope) {
1296
+ if (keyword === "") return;
1297
+ emitter.startScope(scope);
1298
+ emitter.addText(keyword);
1299
+ emitter.endScope();
1300
+ }
1301
+ /**
1302
+ * @param {CompiledScope} scope
1303
+ * @param {RegExpMatchArray} match
1304
+ */
1305
+ function emitMultiClass(scope, match) {
1306
+ let i = 1;
1307
+ const max = match.length - 1;
1308
+ while (i <= max) {
1309
+ if (!scope._emit[i]) {
1310
+ i++;
1311
+ continue;
1312
+ }
1313
+ const klass = language.classNameAliases[scope[i]] || scope[i];
1314
+ const text = match[i];
1315
+ if (klass) emitKeyword(text, klass);else {
1316
+ modeBuffer = text;
1317
+ processKeywords();
1318
+ modeBuffer = "";
1319
+ }
1320
+ i++;
1321
+ }
1322
+ }
1323
+ /**
1324
+ * @param {CompiledMode} mode - new mode to start
1325
+ * @param {RegExpMatchArray} match
1326
+ */
1327
+ function startNewMode(mode, match) {
1328
+ if (mode.scope && typeof mode.scope === "string") emitter.openNode(language.classNameAliases[mode.scope] || mode.scope);
1329
+ if (mode.beginScope) {
1330
+ if (mode.beginScope._wrap) {
1331
+ emitKeyword(modeBuffer, language.classNameAliases[mode.beginScope._wrap] || mode.beginScope._wrap);
1332
+ modeBuffer = "";
1333
+ } else if (mode.beginScope._multi) {
1334
+ emitMultiClass(mode.beginScope, match);
1335
+ modeBuffer = "";
1336
+ }
1337
+ }
1338
+ top = Object.create(mode, {
1339
+ parent: {
1340
+ value: top
1341
+ }
1342
+ });
1343
+ return top;
1344
+ }
1345
+ /**
1346
+ * @param {CompiledMode } mode - the mode to potentially end
1347
+ * @param {RegExpMatchArray} match - the latest match
1348
+ * @param {string} matchPlusRemainder - match plus remainder of content
1349
+ * @returns {CompiledMode | void} - the next mode, or if void continue on in current mode
1350
+ */
1351
+ function endOfMode(mode, match, matchPlusRemainder) {
1352
+ let matched = startsWith(mode.endRe, matchPlusRemainder);
1353
+ if (matched) {
1354
+ if (mode["on:end"]) {
1355
+ const resp = new Response(mode);
1356
+ mode["on:end"](match, resp);
1357
+ if (resp.isMatchIgnored) matched = false;
1358
+ }
1359
+ if (matched) {
1360
+ while (mode.endsParent && mode.parent) mode = mode.parent;
1361
+ return mode;
1362
+ }
1363
+ }
1364
+ if (mode.endsWithParent) return endOfMode(mode.parent, match, matchPlusRemainder);
1365
+ }
1366
+ /**
1367
+ * Handle matching but then ignoring a sequence of text
1368
+ *
1369
+ * @param {string} lexeme - string containing full match text
1370
+ */
1371
+ function doIgnore(lexeme) {
1372
+ if (top.matcher.regexIndex === 0) {
1373
+ modeBuffer += lexeme[0];
1374
+ return 1;
1375
+ } else {
1376
+ resumeScanAtSamePosition = true;
1377
+ return 0;
1378
+ }
1379
+ }
1380
+ /**
1381
+ * Handle the start of a new potential mode match
1382
+ *
1383
+ * @param {EnhancedMatch} match - the current match
1384
+ * @returns {number} how far to advance the parse cursor
1385
+ */
1386
+ function doBeginMatch(match) {
1387
+ const lexeme = match[0];
1388
+ const newMode = match.rule;
1389
+ const resp = new Response(newMode);
1390
+ const beforeCallbacks = [newMode.__beforeBegin, newMode["on:begin"]];
1391
+ for (const cb of beforeCallbacks) {
1392
+ if (!cb) continue;
1393
+ cb(match, resp);
1394
+ if (resp.isMatchIgnored) return doIgnore(lexeme);
1395
+ }
1396
+ if (newMode.skip) modeBuffer += lexeme;else {
1397
+ if (newMode.excludeBegin) modeBuffer += lexeme;
1398
+ processBuffer();
1399
+ if (!newMode.returnBegin && !newMode.excludeBegin) modeBuffer = lexeme;
1400
+ }
1401
+ startNewMode(newMode, match);
1402
+ return newMode.returnBegin ? 0 : lexeme.length;
1403
+ }
1404
+ /**
1405
+ * Handle the potential end of mode
1406
+ *
1407
+ * @param {RegExpMatchArray} match - the current match
1408
+ */
1409
+ function doEndMatch(match) {
1410
+ const lexeme = match[0];
1411
+ const matchPlusRemainder = codeToHighlight.substring(match.index);
1412
+ const endMode = endOfMode(top, match, matchPlusRemainder);
1413
+ if (!endMode) return NO_MATCH;
1414
+ const origin = top;
1415
+ if (top.endScope && top.endScope._wrap) {
1416
+ processBuffer();
1417
+ emitKeyword(lexeme, top.endScope._wrap);
1418
+ } else if (top.endScope && top.endScope._multi) {
1419
+ processBuffer();
1420
+ emitMultiClass(top.endScope, match);
1421
+ } else if (origin.skip) modeBuffer += lexeme;else {
1422
+ if (!(origin.returnEnd || origin.excludeEnd)) modeBuffer += lexeme;
1423
+ processBuffer();
1424
+ if (origin.excludeEnd) modeBuffer = lexeme;
1425
+ }
1426
+ do {
1427
+ if (top.scope) emitter.closeNode();
1428
+ if (!top.skip && !top.subLanguage) relevance += top.relevance;
1429
+ top = top.parent;
1430
+ } while (top !== endMode.parent);
1431
+ if (endMode.starts) startNewMode(endMode.starts, match);
1432
+ return origin.returnEnd ? 0 : lexeme.length;
1433
+ }
1434
+ function processContinuations() {
1435
+ const list = [];
1436
+ for (let current = top; current !== language; current = current.parent) if (current.scope) list.unshift(current.scope);
1437
+ list.forEach(item => emitter.openNode(item));
1438
+ }
1439
+ /** @type {{type?: MatchType, index?: number, rule?: Mode}}} */
1440
+ let lastMatch = {};
1441
+ /**
1442
+ * Process an individual match
1443
+ *
1444
+ * @param {string} textBeforeMatch - text preceding the match (since the last match)
1445
+ * @param {EnhancedMatch} [match] - the match itself
1446
+ */
1447
+ function processLexeme(textBeforeMatch, match) {
1448
+ const lexeme = match && match[0];
1449
+ modeBuffer += textBeforeMatch;
1450
+ if (lexeme == null) {
1451
+ processBuffer();
1452
+ return 0;
1453
+ }
1454
+ if (lastMatch.type === "begin" && match.type === "end" && lastMatch.index === match.index && lexeme === "") {
1455
+ modeBuffer += codeToHighlight.slice(match.index, match.index + 1);
1456
+ if (!SAFE_MODE) {
1457
+ /** @type {AnnotatedError} */
1458
+ const err = /* @__PURE__ */new Error(`0 width match regex (${languageName})`);
1459
+ err.languageName = languageName;
1460
+ err.badRule = lastMatch.rule;
1461
+ throw err;
1462
+ }
1463
+ return 1;
1464
+ }
1465
+ lastMatch = match;
1466
+ if (match.type === "begin") return doBeginMatch(match);else if (match.type === "illegal" && !ignoreIllegals) {
1467
+ /** @type {AnnotatedError} */
1468
+ const err = /* @__PURE__ */new Error("Illegal lexeme \"" + lexeme + "\" for mode \"" + (top.scope || "<unnamed>") + "\"");
1469
+ err.mode = top;
1470
+ throw err;
1471
+ } else if (match.type === "end") {
1472
+ const processed = doEndMatch(match);
1473
+ if (processed !== NO_MATCH) return processed;
1474
+ }
1475
+ if (match.type === "illegal" && lexeme === "") {
1476
+ modeBuffer += "\n";
1477
+ return 1;
1478
+ }
1479
+ if (iterations > 1e5 && iterations > match.index * 3) throw /* @__PURE__ */new Error("potential infinite loop, way more iterations than matches");
1480
+ modeBuffer += lexeme;
1481
+ return lexeme.length;
1482
+ }
1483
+ const language = getLanguage(languageName);
1484
+ if (!language) {
1485
+ error(LANGUAGE_NOT_FOUND.replace("{}", languageName));
1486
+ throw new Error("Unknown language: \"" + languageName + "\"");
1487
+ }
1488
+ const md = compileLanguage(language);
1489
+ let result = "";
1490
+ /** @type {CompiledMode} */
1491
+ let top = continuation || md;
1492
+ /** @type Record<string,CompiledMode> */
1493
+ const continuations = {};
1494
+ const emitter = new options.__emitter(options);
1495
+ processContinuations();
1496
+ let modeBuffer = "";
1497
+ let relevance = 0;
1498
+ let index = 0;
1499
+ let iterations = 0;
1500
+ let resumeScanAtSamePosition = false;
1501
+ try {
1502
+ if (!language.__emitTokens) {
1503
+ top.matcher.considerAll();
1504
+ for (;;) {
1505
+ iterations++;
1506
+ if (resumeScanAtSamePosition) resumeScanAtSamePosition = false;else top.matcher.considerAll();
1507
+ top.matcher.lastIndex = index;
1508
+ const match = top.matcher.exec(codeToHighlight);
1509
+ if (!match) break;
1510
+ const processedCount = processLexeme(codeToHighlight.substring(index, match.index), match);
1511
+ index = match.index + processedCount;
1512
+ }
1513
+ processLexeme(codeToHighlight.substring(index));
1514
+ } else language.__emitTokens(codeToHighlight, emitter);
1515
+ emitter.finalize();
1516
+ result = emitter.toHTML();
1517
+ return {
1518
+ language: languageName,
1519
+ value: result,
1520
+ relevance,
1521
+ illegal: false,
1522
+ _emitter: emitter,
1523
+ _top: top
1524
+ };
1525
+ } catch (err) {
1526
+ if (err.message && err.message.includes("Illegal")) return {
1527
+ language: languageName,
1528
+ value: escape(codeToHighlight),
1529
+ illegal: true,
1530
+ relevance: 0,
1531
+ _illegalBy: {
1532
+ message: err.message,
1533
+ index,
1534
+ context: codeToHighlight.slice(index - 100, index + 100),
1535
+ mode: err.mode,
1536
+ resultSoFar: result
1537
+ },
1538
+ _emitter: emitter
1539
+ };else if (SAFE_MODE) return {
1540
+ language: languageName,
1541
+ value: escape(codeToHighlight),
1542
+ illegal: false,
1543
+ relevance: 0,
1544
+ errorRaised: err,
1545
+ _emitter: emitter,
1546
+ _top: top
1547
+ };else throw err;
1548
+ }
1549
+ }
1550
+ /**
1551
+ * returns a valid highlight result, without actually doing any actual work,
1552
+ * auto highlight starts with this and it's possible for small snippets that
1553
+ * auto-detection may not find a better match
1554
+ * @param {string} code
1555
+ * @returns {HighlightResult}
1556
+ */
1557
+ function justTextHighlightResult(code) {
1558
+ const result = {
1559
+ value: escape(code),
1560
+ illegal: false,
1561
+ relevance: 0,
1562
+ _top: PLAINTEXT_LANGUAGE,
1563
+ _emitter: new options.__emitter(options)
1564
+ };
1565
+ result._emitter.addText(code);
1566
+ return result;
1567
+ }
1568
+ /**
1569
+ Highlighting with language detection. Accepts a string with the code to
1570
+ highlight. Returns an object with the following properties:
1571
+
1572
+ - language (detected language)
1573
+ - relevance (int)
1574
+ - value (an HTML string with highlighting markup)
1575
+ - secondBest (object with the same structure for second-best heuristically
1576
+ detected language, may be absent)
1577
+
1578
+ @param {string} code
1579
+ @param {Array<string>} [languageSubset]
1580
+ @returns {AutoHighlightResult}
1581
+ */
1582
+ function highlightAuto(code, languageSubset) {
1583
+ languageSubset = languageSubset || options.languages || Object.keys(languages);
1584
+ const plaintext = justTextHighlightResult(code);
1585
+ const results = languageSubset.filter(getLanguage).filter(autoDetection).map(name => _highlight(name, code, false));
1586
+ results.unshift(plaintext);
1587
+ const [best, secondBest] = results.sort((a, b) => {
1588
+ if (a.relevance !== b.relevance) return b.relevance - a.relevance;
1589
+ if (a.language && b.language) {
1590
+ if (getLanguage(a.language).supersetOf === b.language) return 1;else if (getLanguage(b.language).supersetOf === a.language) return -1;
1591
+ }
1592
+ return 0;
1593
+ });
1594
+ /** @type {AutoHighlightResult} */
1595
+ const result = best;
1596
+ result.secondBest = secondBest;
1597
+ return result;
1598
+ }
1599
+ /**
1600
+ * Builds new class name for block given the language name
1601
+ *
1602
+ * @param {HTMLElement} element
1603
+ * @param {string} [currentLang]
1604
+ * @param {string} [resultLang]
1605
+ */
1606
+ function updateClassName(element, currentLang, resultLang) {
1607
+ const language = currentLang && aliases[currentLang] || resultLang;
1608
+ element.classList.add("hljs");
1609
+ element.classList.add(`language-${language}`);
1610
+ }
1611
+ /**
1612
+ * Applies highlighting to a DOM node containing code.
1613
+ *
1614
+ * @param {HighlightedHTMLElement} element - the HTML element to highlight
1615
+ */
1616
+ function highlightElement(element) {
1617
+ /** @type HTMLElement */
1618
+ let node = null;
1619
+ const language = blockLanguage(element);
1620
+ if (shouldNotHighlight(language)) return;
1621
+ fire("before:highlightElement", {
1622
+ el: element,
1623
+ language
1624
+ });
1625
+ if (element.dataset.highlighted) {
1626
+ console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", element);
1627
+ return;
1628
+ }
1629
+ if (element.children.length > 0) {
1630
+ if (!options.ignoreUnescapedHTML) {
1631
+ console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk.");
1632
+ console.warn("https://github.com/highlightjs/highlight.js/wiki/security");
1633
+ console.warn("The element with unescaped HTML:");
1634
+ console.warn(element);
1635
+ }
1636
+ if (options.throwUnescapedHTML) throw new HTMLInjectionError("One of your code blocks includes unescaped HTML.", element.innerHTML);
1637
+ }
1638
+ node = element;
1639
+ const text = node.textContent;
1640
+ const result = language ? highlight$1(text, {
1641
+ language,
1642
+ ignoreIllegals: true
1643
+ }) : highlightAuto(text);
1644
+ element.innerHTML = result.value;
1645
+ element.dataset.highlighted = "yes";
1646
+ updateClassName(element, language, result.language);
1647
+ element.result = {
1648
+ language: result.language,
1649
+ re: result.relevance,
1650
+ relevance: result.relevance
1651
+ };
1652
+ if (result.secondBest) element.secondBest = {
1653
+ language: result.secondBest.language,
1654
+ relevance: result.secondBest.relevance
1655
+ };
1656
+ fire("after:highlightElement", {
1657
+ el: element,
1658
+ result,
1659
+ text
1660
+ });
1661
+ }
1662
+ /**
1663
+ * Updates highlight.js global options with the passed options
1664
+ *
1665
+ * @param {Partial<HLJSOptions>} userOptions
1666
+ */
1667
+ function configure(userOptions) {
1668
+ options = inherit(options, userOptions);
1669
+ }
1670
+ const initHighlighting = () => {
1671
+ highlightAll();
1672
+ deprecated("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
1673
+ };
1674
+ function initHighlightingOnLoad() {
1675
+ highlightAll();
1676
+ deprecated("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
1677
+ }
1678
+ let wantsHighlight = false;
1679
+ /**
1680
+ * auto-highlights all pre>code elements on the page
1681
+ */
1682
+ function highlightAll() {
1683
+ function boot() {
1684
+ highlightAll();
1685
+ }
1686
+ if (document.readyState === "loading") {
1687
+ if (!wantsHighlight) window.addEventListener("DOMContentLoaded", boot, false);
1688
+ wantsHighlight = true;
1689
+ return;
1690
+ }
1691
+ document.querySelectorAll(options.cssSelector).forEach(highlightElement);
1692
+ }
1693
+ /**
1694
+ * Register a language grammar module
1695
+ *
1696
+ * @param {string} languageName
1697
+ * @param {LanguageFn} languageDefinition
1698
+ */
1699
+ function registerLanguage(languageName, languageDefinition) {
1700
+ let lang = null;
1701
+ try {
1702
+ lang = languageDefinition(hljs);
1703
+ } catch (error$1) {
1704
+ error("Language definition for '{}' could not be registered.".replace("{}", languageName));
1705
+ if (!SAFE_MODE) throw error$1;else error(error$1);
1706
+ lang = PLAINTEXT_LANGUAGE;
1707
+ }
1708
+ if (!lang.name) lang.name = languageName;
1709
+ languages[languageName] = lang;
1710
+ lang.rawDefinition = languageDefinition.bind(null, hljs);
1711
+ if (lang.aliases) registerAliases(lang.aliases, {
1712
+ languageName
1713
+ });
1714
+ }
1715
+ /**
1716
+ * Remove a language grammar module
1717
+ *
1718
+ * @param {string} languageName
1719
+ */
1720
+ function unregisterLanguage(languageName) {
1721
+ delete languages[languageName];
1722
+ for (const alias of Object.keys(aliases)) if (aliases[alias] === languageName) delete aliases[alias];
1723
+ }
1724
+ /**
1725
+ * @returns {string[]} List of language internal names
1726
+ */
1727
+ function listLanguages() {
1728
+ return Object.keys(languages);
1729
+ }
1730
+ /**
1731
+ * @param {string} name - name of the language to retrieve
1732
+ * @returns {Language | undefined}
1733
+ */
1734
+ function getLanguage(name) {
1735
+ name = (name || "").toLowerCase();
1736
+ return languages[name] || languages[aliases[name]];
1737
+ }
1738
+ /**
1739
+ *
1740
+ * @param {string|string[]} aliasList - single alias or list of aliases
1741
+ * @param {{languageName: string}} opts
1742
+ */
1743
+ function registerAliases(aliasList, {
1744
+ languageName
1745
+ }) {
1746
+ if (typeof aliasList === "string") aliasList = [aliasList];
1747
+ aliasList.forEach(alias => {
1748
+ aliases[alias.toLowerCase()] = languageName;
1749
+ });
1750
+ }
1751
+ /**
1752
+ * Determines if a given language has auto-detection enabled
1753
+ * @param {string} name - name of the language
1754
+ */
1755
+ function autoDetection(name) {
1756
+ const lang = getLanguage(name);
1757
+ return lang && !lang.disableAutodetect;
1758
+ }
1759
+ /**
1760
+ * Upgrades the old highlightBlock plugins to the new
1761
+ * highlightElement API
1762
+ * @param {HLJSPlugin} plugin
1763
+ */
1764
+ function upgradePluginAPI(plugin) {
1765
+ if (plugin["before:highlightBlock"] && !plugin["before:highlightElement"]) plugin["before:highlightElement"] = data => {
1766
+ plugin["before:highlightBlock"](Object.assign({
1767
+ block: data.el
1768
+ }, data));
1769
+ };
1770
+ if (plugin["after:highlightBlock"] && !plugin["after:highlightElement"]) plugin["after:highlightElement"] = data => {
1771
+ plugin["after:highlightBlock"](Object.assign({
1772
+ block: data.el
1773
+ }, data));
1774
+ };
1775
+ }
1776
+ /**
1777
+ * @param {HLJSPlugin} plugin
1778
+ */
1779
+ function addPlugin(plugin) {
1780
+ upgradePluginAPI(plugin);
1781
+ plugins.push(plugin);
1782
+ }
1783
+ /**
1784
+ * @param {HLJSPlugin} plugin
1785
+ */
1786
+ function removePlugin(plugin) {
1787
+ const index = plugins.indexOf(plugin);
1788
+ if (index !== -1) plugins.splice(index, 1);
1789
+ }
1790
+ /**
1791
+ *
1792
+ * @param {PluginEvent} event
1793
+ * @param {any} args
1794
+ */
1795
+ function fire(event, args) {
1796
+ const cb = event;
1797
+ plugins.forEach(function (plugin) {
1798
+ if (plugin[cb]) plugin[cb](args);
1799
+ });
1800
+ }
1801
+ /**
1802
+ * DEPRECATED
1803
+ * @param {HighlightedHTMLElement} el
1804
+ */
1805
+ function deprecateHighlightBlock(el) {
1806
+ deprecated("10.7.0", "highlightBlock will be removed entirely in v12.0");
1807
+ deprecated("10.7.0", "Please use highlightElement now.");
1808
+ return highlightElement(el);
1809
+ }
1810
+ Object.assign(hljs, {
1811
+ highlight: highlight$1,
1812
+ highlightAuto,
1813
+ highlightAll,
1814
+ highlightElement,
1815
+ highlightBlock: deprecateHighlightBlock,
1816
+ configure,
1817
+ initHighlighting,
1818
+ initHighlightingOnLoad,
1819
+ registerLanguage,
1820
+ unregisterLanguage,
1821
+ listLanguages,
1822
+ getLanguage,
1823
+ registerAliases,
1824
+ autoDetection,
1825
+ inherit,
1826
+ addPlugin,
1827
+ removePlugin
1828
+ });
1829
+ hljs.debugMode = function () {
1830
+ SAFE_MODE = false;
1831
+ };
1832
+ hljs.safeMode = function () {
1833
+ SAFE_MODE = true;
1834
+ };
1835
+ hljs.versionString = version;
1836
+ hljs.regex = {
1837
+ concat,
1838
+ lookahead,
1839
+ either,
1840
+ optional,
1841
+ anyNumberOfTimes
1842
+ };
1843
+ for (const key in MODES) if (typeof MODES[key] === "object") deepFreeze(MODES[key]);
1844
+ Object.assign(hljs, MODES);
1845
+ return hljs;
1846
+ };
1847
+ var highlight = HLJS({});
1848
+ highlight.newInstance = () => HLJS({});
1849
+ module.exports = highlight;
1850
+ highlight.HighlightJS = highlight;
1851
+ highlight.default = highlight;
1852
+ }
1853
+ })); //#endregion
1854
+ }
1855
+ };
1856
+ });
1857
+ })();