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,4579 @@
1
+ ;
2
+ (function () {
3
+ System.register(["./chunk-legacy-Re9CbdfL.js", "./vue.runtime.esm-bundler-legacy-Bq05oSFs.js"], function (_export, _context) {
4
+ "use strict";
5
+
6
+ var __toCommonJS, __esm, __export, __commonJS, toHandlerKey, NOOP, EMPTY_OBJ, generateCodeFrame, capitalize, camelize, extend, init_runtime_dom_esm_bundler, parseStringStyle, isObject, isReservedProp, isSVGTag, makeMap, isVoidTag, isOn, isSymbol, isArray, isHTMLTag, isString, NO, isBuiltInDirective, runtime_dom_esm_bundler_exports, isMathMLTag, init_shared_esm_bundler, shared_esm_bundler_exports, FRAGMENT, TELEPORT, SUSPENSE, KEEP_ALIVE, BASE_TRANSITION, OPEN_BLOCK, CREATE_BLOCK, CREATE_ELEMENT_BLOCK, CREATE_VNODE, CREATE_ELEMENT_VNODE, CREATE_COMMENT, CREATE_TEXT, CREATE_STATIC, RESOLVE_COMPONENT, RESOLVE_DYNAMIC_COMPONENT, RESOLVE_DIRECTIVE, RESOLVE_FILTER, WITH_DIRECTIVES, RENDER_LIST, RENDER_SLOT, CREATE_SLOTS, TO_DISPLAY_STRING, MERGE_PROPS, NORMALIZE_CLASS, NORMALIZE_STYLE, NORMALIZE_PROPS, GUARD_REACTIVE_PROPS, TO_HANDLERS, CAMELIZE, CAPITALIZE, TO_HANDLER_KEY, SET_BLOCK_TRACKING, PUSH_SCOPE_ID, POP_SCOPE_ID, WITH_CTX, UNREF, IS_REF, WITH_MEMO, IS_MEMO_SAME, helperNameMap, Namespaces, NodeTypes, ElementTypes, ConstantTypes, locStub, defaultDelimitersOpen, defaultDelimitersClose, Sequences, Tokenizer, CompilerDeprecationTypes, deprecationData, ErrorCodes, errorMessages, isFunctionType, isStaticProperty, isStaticPropertyKey, TS_NODE_TYPES, isStaticExp, nonIdentifierRE, isSimpleIdentifier, validFirstIdentCharRE, validIdentCharRE, whitespaceRE, getExpSource, isMemberExpressionBrowser, isMemberExpressionNode, isMemberExpression, fnExpRE, isFnExpressionBrowser, isFnExpressionNode, isFnExpression, propsHelperSet, forAliasRE, defaultParserOptions, currentOptions, currentRoot, currentInput, currentOpenTag, currentProp, currentAttrValue, currentAttrStartIndex, currentAttrEndIndex, inPre, inVPre, currentVPreBoundary, stack, tokenizer, forIteratorRE, stripParensRE, specialTemplateDir, windowsNewlineRE, allowHoistedHelperSet, PURE_ANNOTATION, aliasHelper, transformExpression, transformIf, transformBind, transformBindShorthand, injectPrefix, transformFor, defaultFallback, trackSlotScopes, trackVForSlotScopes, buildClientSlotFn, directiveImportMap, transformElement, transformSlotOutlet, transformOn, transformText, seen$1, transformOnce, transformModel, validDivisionCharRE, transformFilter, seen, transformMemo, BindingTypes, noopDirectiveTransform, init_compiler_core_esm_bundler, compiler_dom_esm_bundler_exports, V_MODEL_RADIO, V_MODEL_CHECKBOX, V_MODEL_TEXT, V_MODEL_SELECT, V_MODEL_DYNAMIC, V_ON_WITH_MODIFIERS, V_ON_WITH_KEYS, V_SHOW, TRANSITION, TRANSITION_GROUP, decoder, parserOptions, transformStyle, parseInlineCSS, DOMErrorCodes, DOMErrorMessages, transformVHtml, transformVText, transformModel$1, isEventOptionModifier, isNonKeyModifier, maybeKeyModifier, isKeyboardEvent, resolveModifiers, transformClick, transformOn$1, transformShow, ignoreSideEffectTags, DOMNodeTransforms, DOMDirectiveTransforms, init_compiler_dom_esm_bundler, require_vue_cjs_prod, require_vue;
7
+ //#region ../../../node_modules/.pnpm/@vue+compiler-core@3.5.13/node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js
8
+ function registerRuntimeHelpers(helpers) {
9
+ Object.getOwnPropertySymbols(helpers).forEach(s => {
10
+ helperNameMap[s] = helpers[s];
11
+ });
12
+ }
13
+ function createRoot(children, source = "") {
14
+ return {
15
+ type: 0,
16
+ source,
17
+ children,
18
+ helpers: /* @__PURE__ */new Set(),
19
+ components: [],
20
+ directives: [],
21
+ hoists: [],
22
+ imports: [],
23
+ cached: [],
24
+ temps: 0,
25
+ codegenNode: void 0,
26
+ loc: locStub
27
+ };
28
+ }
29
+ function createVNodeCall(context, tag, props, children, patchFlag, dynamicProps, directives, isBlock = false, disableTracking = false, isComponent$1 = false, loc = locStub) {
30
+ if (context) {
31
+ if (isBlock) {
32
+ context.helper(OPEN_BLOCK);
33
+ context.helper(getVNodeBlockHelper(context.inSSR, isComponent$1));
34
+ } else context.helper(getVNodeHelper(context.inSSR, isComponent$1));
35
+ if (directives) context.helper(WITH_DIRECTIVES);
36
+ }
37
+ return {
38
+ type: 13,
39
+ tag,
40
+ props,
41
+ children,
42
+ patchFlag,
43
+ dynamicProps,
44
+ directives,
45
+ isBlock,
46
+ disableTracking,
47
+ isComponent: isComponent$1,
48
+ loc
49
+ };
50
+ }
51
+ function createArrayExpression(elements, loc = locStub) {
52
+ return {
53
+ type: 17,
54
+ loc,
55
+ elements
56
+ };
57
+ }
58
+ function createObjectExpression(properties, loc = locStub) {
59
+ return {
60
+ type: 15,
61
+ loc,
62
+ properties
63
+ };
64
+ }
65
+ function createObjectProperty(key, value) {
66
+ return {
67
+ type: 16,
68
+ loc: locStub,
69
+ key: isString(key) ? createSimpleExpression(key, true) : key,
70
+ value
71
+ };
72
+ }
73
+ function createSimpleExpression(content, isStatic = false, loc = locStub, constType = 0) {
74
+ return {
75
+ type: 4,
76
+ loc,
77
+ content,
78
+ isStatic,
79
+ constType: isStatic ? 3 : constType
80
+ };
81
+ }
82
+ function createInterpolation(content, loc) {
83
+ return {
84
+ type: 5,
85
+ loc,
86
+ content: isString(content) ? createSimpleExpression(content, false, loc) : content
87
+ };
88
+ }
89
+ function createCompoundExpression(children, loc = locStub) {
90
+ return {
91
+ type: 8,
92
+ loc,
93
+ children
94
+ };
95
+ }
96
+ function createCallExpression(callee, args = [], loc = locStub) {
97
+ return {
98
+ type: 14,
99
+ loc,
100
+ callee,
101
+ arguments: args
102
+ };
103
+ }
104
+ function createFunctionExpression(params, returns = void 0, newline = false, isSlot = false, loc = locStub) {
105
+ return {
106
+ type: 18,
107
+ params,
108
+ returns,
109
+ newline,
110
+ isSlot,
111
+ loc
112
+ };
113
+ }
114
+ function createConditionalExpression(test, consequent, alternate, newline = true) {
115
+ return {
116
+ type: 19,
117
+ test,
118
+ consequent,
119
+ alternate,
120
+ newline,
121
+ loc: locStub
122
+ };
123
+ }
124
+ function createCacheExpression(index, value, needPauseTracking = false, inVOnce = false) {
125
+ return {
126
+ type: 20,
127
+ index,
128
+ value,
129
+ needPauseTracking,
130
+ inVOnce,
131
+ needArraySpread: false,
132
+ loc: locStub
133
+ };
134
+ }
135
+ function createBlockStatement(body) {
136
+ return {
137
+ type: 21,
138
+ body,
139
+ loc: locStub
140
+ };
141
+ }
142
+ function createTemplateLiteral(elements) {
143
+ return {
144
+ type: 22,
145
+ elements,
146
+ loc: locStub
147
+ };
148
+ }
149
+ function createIfStatement(test, consequent, alternate) {
150
+ return {
151
+ type: 23,
152
+ test,
153
+ consequent,
154
+ alternate,
155
+ loc: locStub
156
+ };
157
+ }
158
+ function createAssignmentExpression(left, right) {
159
+ return {
160
+ type: 24,
161
+ left,
162
+ right,
163
+ loc: locStub
164
+ };
165
+ }
166
+ function createSequenceExpression(expressions) {
167
+ return {
168
+ type: 25,
169
+ expressions,
170
+ loc: locStub
171
+ };
172
+ }
173
+ function createReturnStatement(returns) {
174
+ return {
175
+ type: 26,
176
+ returns,
177
+ loc: locStub
178
+ };
179
+ }
180
+ function getVNodeHelper(ssr, isComponent$1) {
181
+ return ssr || isComponent$1 ? CREATE_VNODE : CREATE_ELEMENT_VNODE;
182
+ }
183
+ function getVNodeBlockHelper(ssr, isComponent$1) {
184
+ return ssr || isComponent$1 ? CREATE_BLOCK : CREATE_ELEMENT_BLOCK;
185
+ }
186
+ function convertToBlock(node, {
187
+ helper,
188
+ removeHelper,
189
+ inSSR
190
+ }) {
191
+ if (!node.isBlock) {
192
+ node.isBlock = true;
193
+ removeHelper(getVNodeHelper(inSSR, node.isComponent));
194
+ helper(OPEN_BLOCK);
195
+ helper(getVNodeBlockHelper(inSSR, node.isComponent));
196
+ }
197
+ }
198
+ function isTagStartChar(c) {
199
+ return c >= 97 && c <= 122 || c >= 65 && c <= 90;
200
+ }
201
+ function isWhitespace(c) {
202
+ return c === 32 || c === 10 || c === 9 || c === 12 || c === 13;
203
+ }
204
+ function isEndOfTagSection(c) {
205
+ return c === 47 || c === 62 || isWhitespace(c);
206
+ }
207
+ function toCharCodes(str) {
208
+ const ret = new Uint8Array(str.length);
209
+ for (let i = 0; i < str.length; i++) ret[i] = str.charCodeAt(i);
210
+ return ret;
211
+ }
212
+ function getCompatValue(key, {
213
+ compatConfig
214
+ }) {
215
+ const value = compatConfig && compatConfig[key];
216
+ if (key === "MODE") return value || 3;else return value;
217
+ }
218
+ function isCompatEnabled(key, context) {
219
+ const mode = getCompatValue("MODE", context);
220
+ const value = getCompatValue(key, context);
221
+ return mode === 3 ? value === true : value !== false;
222
+ }
223
+ function checkCompatEnabled(key, context, loc, ...args) {
224
+ return isCompatEnabled(key, context);
225
+ }
226
+ function warnDeprecation(key, context, loc, ...args) {
227
+ if (getCompatValue(key, context) === "suppress-warning") return;
228
+ const {
229
+ message,
230
+ link
231
+ } = deprecationData[key];
232
+ const msg = `(deprecation ${key}) ${typeof message === "function" ? message(...args) : message}${link ? `
233
+ Details: ${link}` : ``}`;
234
+ const err = new SyntaxError(msg);
235
+ err.code = key;
236
+ if (loc) err.loc = loc;
237
+ context.onWarn(err);
238
+ }
239
+ function defaultOnError(error) {
240
+ throw error;
241
+ }
242
+ function defaultOnWarn(msg) {}
243
+ function createCompilerError(code, loc, messages, additionalMessage) {
244
+ const msg = `https://vuejs.org/error-reference/#compiler-${code}`;
245
+ const error = new SyntaxError(String(msg));
246
+ error.code = code;
247
+ error.loc = loc;
248
+ return error;
249
+ }
250
+ function walkIdentifiers(root, onIdentifier, includeAll = false, parentStack = [], knownIds = /* @__PURE__ */Object.create(null)) {}
251
+ function isReferencedIdentifier(id, parent, parentStack) {
252
+ return false;
253
+ }
254
+ function isInDestructureAssignment(parent, parentStack) {
255
+ if (parent && (parent.type === "ObjectProperty" || parent.type === "ArrayPattern")) {
256
+ let i = parentStack.length;
257
+ while (i--) {
258
+ const p = parentStack[i];
259
+ if (p.type === "AssignmentExpression") return true;else if (p.type !== "ObjectProperty" && !p.type.endsWith("Pattern")) break;
260
+ }
261
+ }
262
+ return false;
263
+ }
264
+ function isInNewExpression(parentStack) {
265
+ let i = parentStack.length;
266
+ while (i--) {
267
+ const p = parentStack[i];
268
+ if (p.type === "NewExpression") return true;else if (p.type !== "MemberExpression") break;
269
+ }
270
+ return false;
271
+ }
272
+ function walkFunctionParams(node, onIdent) {
273
+ for (const p of node.params) for (const id of extractIdentifiers(p)) onIdent(id);
274
+ }
275
+ function walkBlockDeclarations(block, onIdent) {
276
+ for (const stmt of block.body) if (stmt.type === "VariableDeclaration") {
277
+ if (stmt.declare) continue;
278
+ for (const decl of stmt.declarations) for (const id of extractIdentifiers(decl.id)) onIdent(id);
279
+ } else if (stmt.type === "FunctionDeclaration" || stmt.type === "ClassDeclaration") {
280
+ if (stmt.declare || !stmt.id) continue;
281
+ onIdent(stmt.id);
282
+ } else if (isForStatement(stmt)) walkForStatement(stmt, true, onIdent);
283
+ }
284
+ function isForStatement(stmt) {
285
+ return stmt.type === "ForOfStatement" || stmt.type === "ForInStatement" || stmt.type === "ForStatement";
286
+ }
287
+ function walkForStatement(stmt, isVar, onIdent) {
288
+ const variable = stmt.type === "ForStatement" ? stmt.init : stmt.left;
289
+ if (variable && variable.type === "VariableDeclaration" && (variable.kind === "var" ? isVar : !isVar)) for (const decl of variable.declarations) for (const id of extractIdentifiers(decl.id)) onIdent(id);
290
+ }
291
+ function extractIdentifiers(param, nodes = []) {
292
+ switch (param.type) {
293
+ case "Identifier":
294
+ nodes.push(param);
295
+ break;
296
+ case "MemberExpression":
297
+ let object = param;
298
+ while (object.type === "MemberExpression") object = object.object;
299
+ nodes.push(object);
300
+ break;
301
+ case "ObjectPattern":
302
+ for (const prop of param.properties) if (prop.type === "RestElement") extractIdentifiers(prop.argument, nodes);else extractIdentifiers(prop.value, nodes);
303
+ break;
304
+ case "ArrayPattern":
305
+ param.elements.forEach(element => {
306
+ if (element) extractIdentifiers(element, nodes);
307
+ });
308
+ break;
309
+ case "RestElement":
310
+ extractIdentifiers(param.argument, nodes);
311
+ break;
312
+ case "AssignmentPattern":
313
+ extractIdentifiers(param.left, nodes);
314
+ break;
315
+ }
316
+ return nodes;
317
+ }
318
+ function unwrapTSNode(node) {
319
+ if (TS_NODE_TYPES.includes(node.type)) return unwrapTSNode(node.expression);else return node;
320
+ }
321
+ function isCoreComponent(tag) {
322
+ switch (tag) {
323
+ case "Teleport":
324
+ case "teleport":
325
+ return TELEPORT;
326
+ case "Suspense":
327
+ case "suspense":
328
+ return SUSPENSE;
329
+ case "KeepAlive":
330
+ case "keep-alive":
331
+ return KEEP_ALIVE;
332
+ case "BaseTransition":
333
+ case "base-transition":
334
+ return BASE_TRANSITION;
335
+ }
336
+ }
337
+ function advancePositionWithClone(pos, source, numberOfCharacters = source.length) {
338
+ return advancePositionWithMutation({
339
+ offset: pos.offset,
340
+ line: pos.line,
341
+ column: pos.column
342
+ }, source, numberOfCharacters);
343
+ }
344
+ function advancePositionWithMutation(pos, source, numberOfCharacters = source.length) {
345
+ let linesCount = 0;
346
+ let lastNewLinePos = -1;
347
+ for (let i = 0; i < numberOfCharacters; i++) if (source.charCodeAt(i) === 10) {
348
+ linesCount++;
349
+ lastNewLinePos = i;
350
+ }
351
+ pos.offset += numberOfCharacters;
352
+ pos.line += linesCount;
353
+ pos.column = lastNewLinePos === -1 ? pos.column + numberOfCharacters : numberOfCharacters - lastNewLinePos;
354
+ return pos;
355
+ }
356
+ function assert(condition, msg) {
357
+ if (!condition) throw new Error(msg || `unexpected compiler condition`);
358
+ }
359
+ function findDir(node, name, allowEmpty = false) {
360
+ for (let i = 0; i < node.props.length; i++) {
361
+ const p = node.props[i];
362
+ if (p.type === 7 && (allowEmpty || p.exp) && (isString(name) ? p.name === name : name.test(p.name))) return p;
363
+ }
364
+ }
365
+ function findProp(node, name, dynamicOnly = false, allowEmpty = false) {
366
+ for (let i = 0; i < node.props.length; i++) {
367
+ const p = node.props[i];
368
+ if (p.type === 6) {
369
+ if (dynamicOnly) continue;
370
+ if (p.name === name && (p.value || allowEmpty)) return p;
371
+ } else if (p.name === "bind" && (p.exp || allowEmpty) && isStaticArgOf(p.arg, name)) return p;
372
+ }
373
+ }
374
+ function isStaticArgOf(arg, name) {
375
+ return !!(arg && isStaticExp(arg) && arg.content === name);
376
+ }
377
+ function hasDynamicKeyVBind(node) {
378
+ return node.props.some(p => p.type === 7 && p.name === "bind" && (!p.arg || p.arg.type !== 4 || !p.arg.isStatic));
379
+ }
380
+ function isText$1(node) {
381
+ return node.type === 5 || node.type === 2;
382
+ }
383
+ function isVSlot(p) {
384
+ return p.type === 7 && p.name === "slot";
385
+ }
386
+ function isTemplateNode(node) {
387
+ return node.type === 1 && node.tagType === 3;
388
+ }
389
+ function isSlotOutlet(node) {
390
+ return node.type === 1 && node.tagType === 2;
391
+ }
392
+ function getUnnormalizedProps(props, callPath = []) {
393
+ if (props && !isString(props) && props.type === 14) {
394
+ const callee = props.callee;
395
+ if (!isString(callee) && propsHelperSet.has(callee)) return getUnnormalizedProps(props.arguments[0], callPath.concat(props));
396
+ }
397
+ return [props, callPath];
398
+ }
399
+ function injectProp(node, prop, context) {
400
+ let propsWithInjection;
401
+ let props = node.type === 13 ? node.props : node.arguments[2];
402
+ let callPath = [];
403
+ let parentCall;
404
+ if (props && !isString(props) && props.type === 14) {
405
+ const ret = getUnnormalizedProps(props);
406
+ props = ret[0];
407
+ callPath = ret[1];
408
+ parentCall = callPath[callPath.length - 1];
409
+ }
410
+ if (props == null || isString(props)) propsWithInjection = createObjectExpression([prop]);else if (props.type === 14) {
411
+ const first = props.arguments[0];
412
+ if (!isString(first) && first.type === 15) {
413
+ if (!hasProp(prop, first)) first.properties.unshift(prop);
414
+ } else if (props.callee === TO_HANDLERS) propsWithInjection = createCallExpression(context.helper(MERGE_PROPS), [createObjectExpression([prop]), props]);else props.arguments.unshift(createObjectExpression([prop]));
415
+ !propsWithInjection && (propsWithInjection = props);
416
+ } else if (props.type === 15) {
417
+ if (!hasProp(prop, props)) props.properties.unshift(prop);
418
+ propsWithInjection = props;
419
+ } else {
420
+ propsWithInjection = createCallExpression(context.helper(MERGE_PROPS), [createObjectExpression([prop]), props]);
421
+ if (parentCall && parentCall.callee === GUARD_REACTIVE_PROPS) parentCall = callPath[callPath.length - 2];
422
+ }
423
+ if (node.type === 13) {
424
+ if (parentCall) parentCall.arguments[0] = propsWithInjection;else node.props = propsWithInjection;
425
+ } else if (parentCall) parentCall.arguments[0] = propsWithInjection;else node.arguments[2] = propsWithInjection;
426
+ }
427
+ function hasProp(prop, props) {
428
+ let result = false;
429
+ if (prop.key.type === 4) {
430
+ const propKeyName = prop.key.content;
431
+ result = props.properties.some(p => p.key.type === 4 && p.key.content === propKeyName);
432
+ }
433
+ return result;
434
+ }
435
+ function toValidAssetId(name, type) {
436
+ return `_${type}_${name.replace(/[^\w]/g, (searchValue, replaceValue) => {
437
+ return searchValue === "-" ? "_" : name.charCodeAt(replaceValue).toString();
438
+ })}`;
439
+ }
440
+ function hasScopeRef(node, ids) {
441
+ if (!node || Object.keys(ids).length === 0) return false;
442
+ switch (node.type) {
443
+ case 1:
444
+ for (let i = 0; i < node.props.length; i++) {
445
+ const p = node.props[i];
446
+ if (p.type === 7 && (hasScopeRef(p.arg, ids) || hasScopeRef(p.exp, ids))) return true;
447
+ }
448
+ return node.children.some(c => hasScopeRef(c, ids));
449
+ case 11:
450
+ if (hasScopeRef(node.source, ids)) return true;
451
+ return node.children.some(c => hasScopeRef(c, ids));
452
+ case 9:
453
+ return node.branches.some(b => hasScopeRef(b, ids));
454
+ case 10:
455
+ if (hasScopeRef(node.condition, ids)) return true;
456
+ return node.children.some(c => hasScopeRef(c, ids));
457
+ case 4:
458
+ return !node.isStatic && isSimpleIdentifier(node.content) && !!ids[node.content];
459
+ case 8:
460
+ return node.children.some(c => isObject(c) && hasScopeRef(c, ids));
461
+ case 5:
462
+ case 12:
463
+ return hasScopeRef(node.content, ids);
464
+ case 2:
465
+ case 3:
466
+ case 20:
467
+ return false;
468
+ default:
469
+ return false;
470
+ }
471
+ }
472
+ function getMemoedVNodeCall(node) {
473
+ if (node.type === 14 && node.callee === WITH_MEMO) return node.arguments[1].returns;else return node;
474
+ }
475
+ function parseForExpression(input) {
476
+ const loc = input.loc;
477
+ const exp = input.content;
478
+ const inMatch = exp.match(forAliasRE);
479
+ if (!inMatch) return;
480
+ const [, LHS, RHS] = inMatch;
481
+ const createAliasExpression = (content, offset, asParam = false) => {
482
+ const start = loc.start.offset + offset;
483
+ return createExp(content, false, getLoc(start, start + content.length), 0, asParam ? 1 : 0);
484
+ };
485
+ const result = {
486
+ source: createAliasExpression(RHS.trim(), exp.indexOf(RHS, LHS.length)),
487
+ value: void 0,
488
+ key: void 0,
489
+ index: void 0,
490
+ finalized: false
491
+ };
492
+ let valueContent = LHS.trim().replace(stripParensRE, "").trim();
493
+ const trimmedOffset = LHS.indexOf(valueContent);
494
+ const iteratorMatch = valueContent.match(forIteratorRE);
495
+ if (iteratorMatch) {
496
+ valueContent = valueContent.replace(forIteratorRE, "").trim();
497
+ const keyContent = iteratorMatch[1].trim();
498
+ let keyOffset;
499
+ if (keyContent) {
500
+ keyOffset = exp.indexOf(keyContent, trimmedOffset + valueContent.length);
501
+ result.key = createAliasExpression(keyContent, keyOffset, true);
502
+ }
503
+ if (iteratorMatch[2]) {
504
+ const indexContent = iteratorMatch[2].trim();
505
+ if (indexContent) result.index = createAliasExpression(indexContent, exp.indexOf(indexContent, result.key ? keyOffset + keyContent.length : trimmedOffset + valueContent.length), true);
506
+ }
507
+ }
508
+ if (valueContent) result.value = createAliasExpression(valueContent, trimmedOffset, true);
509
+ return result;
510
+ }
511
+ function getSlice(start, end) {
512
+ return currentInput.slice(start, end);
513
+ }
514
+ function endOpenTag(end) {
515
+ if (tokenizer.inSFCRoot) currentOpenTag.innerLoc = getLoc(end + 1, end + 1);
516
+ addNode(currentOpenTag);
517
+ const {
518
+ tag,
519
+ ns
520
+ } = currentOpenTag;
521
+ if (ns === 0 && currentOptions.isPreTag(tag)) inPre++;
522
+ if (currentOptions.isVoidTag(tag)) onCloseTag(currentOpenTag, end);else {
523
+ stack.unshift(currentOpenTag);
524
+ if (ns === 1 || ns === 2) tokenizer.inXML = true;
525
+ }
526
+ currentOpenTag = null;
527
+ }
528
+ function onText(content, start, end) {
529
+ {
530
+ const tag = stack[0] && stack[0].tag;
531
+ if (tag !== "script" && tag !== "style" && content.includes("&")) content = currentOptions.decodeEntities(content, false);
532
+ }
533
+ const parent = stack[0] || currentRoot;
534
+ const lastNode = parent.children[parent.children.length - 1];
535
+ if (lastNode && lastNode.type === 2) {
536
+ lastNode.content += content;
537
+ setLocEnd(lastNode.loc, end);
538
+ } else parent.children.push({
539
+ type: 2,
540
+ content,
541
+ loc: getLoc(start, end)
542
+ });
543
+ }
544
+ function onCloseTag(el, end, isImplied = false) {
545
+ if (isImplied) setLocEnd(el.loc, backTrack(end, 60));else setLocEnd(el.loc, lookAhead(end, 62) + 1);
546
+ if (tokenizer.inSFCRoot) {
547
+ if (el.children.length) el.innerLoc.end = extend({}, el.children[el.children.length - 1].loc.end);else el.innerLoc.end = extend({}, el.innerLoc.start);
548
+ el.innerLoc.source = getSlice(el.innerLoc.start.offset, el.innerLoc.end.offset);
549
+ }
550
+ const {
551
+ tag,
552
+ ns,
553
+ children
554
+ } = el;
555
+ if (!inVPre) {
556
+ if (tag === "slot") el.tagType = 2;else if (isFragmentTemplate(el)) el.tagType = 3;else if (isComponent(el)) el.tagType = 1;
557
+ }
558
+ if (!tokenizer.inRCDATA) el.children = condenseWhitespace(children);
559
+ if (ns === 0 && currentOptions.isIgnoreNewlineTag(tag)) {
560
+ const first = children[0];
561
+ if (first && first.type === 2) first.content = first.content.replace(/^\r?\n/, "");
562
+ }
563
+ if (ns === 0 && currentOptions.isPreTag(tag)) inPre--;
564
+ if (currentVPreBoundary === el) {
565
+ inVPre = tokenizer.inVPre = false;
566
+ currentVPreBoundary = null;
567
+ }
568
+ if (tokenizer.inXML && (stack[0] ? stack[0].ns : currentOptions.ns) === 0) tokenizer.inXML = false;
569
+ {
570
+ const props = el.props;
571
+ if (!tokenizer.inSFCRoot && isCompatEnabled("COMPILER_NATIVE_TEMPLATE", currentOptions) && el.tag === "template" && !isFragmentTemplate(el)) {
572
+ const parent = stack[0] || currentRoot;
573
+ const index = parent.children.indexOf(el);
574
+ parent.children.splice(index, 1, ...el.children);
575
+ }
576
+ const inlineTemplateProp = props.find(p => p.type === 6 && p.name === "inline-template");
577
+ if (inlineTemplateProp && checkCompatEnabled("COMPILER_INLINE_TEMPLATE", currentOptions, inlineTemplateProp.loc) && el.children.length) inlineTemplateProp.value = {
578
+ type: 2,
579
+ content: getSlice(el.children[0].loc.start.offset, el.children[el.children.length - 1].loc.end.offset),
580
+ loc: inlineTemplateProp.loc
581
+ };
582
+ }
583
+ }
584
+ function lookAhead(index, c) {
585
+ let i = index;
586
+ while (currentInput.charCodeAt(i) !== c && i < currentInput.length - 1) i++;
587
+ return i;
588
+ }
589
+ function backTrack(index, c) {
590
+ let i = index;
591
+ while (currentInput.charCodeAt(i) !== c && i >= 0) i--;
592
+ return i;
593
+ }
594
+ function isFragmentTemplate({
595
+ tag,
596
+ props
597
+ }) {
598
+ if (tag === "template") {
599
+ for (let i = 0; i < props.length; i++) if (props[i].type === 7 && specialTemplateDir.has(props[i].name)) return true;
600
+ }
601
+ return false;
602
+ }
603
+ function isComponent({
604
+ tag,
605
+ props
606
+ }) {
607
+ if (currentOptions.isCustomElement(tag)) return false;
608
+ if (tag === "component" || isUpperCase(tag.charCodeAt(0)) || isCoreComponent(tag) || currentOptions.isBuiltInComponent && currentOptions.isBuiltInComponent(tag) || currentOptions.isNativeTag && !currentOptions.isNativeTag(tag)) return true;
609
+ for (let i = 0; i < props.length; i++) {
610
+ const p = props[i];
611
+ if (p.type === 6) {
612
+ if (p.name === "is" && p.value) {
613
+ if (p.value.content.startsWith("vue:")) return true;else if (checkCompatEnabled("COMPILER_IS_ON_ELEMENT", currentOptions, p.loc)) return true;
614
+ }
615
+ } else if (p.name === "bind" && isStaticArgOf(p.arg, "is") && checkCompatEnabled("COMPILER_IS_ON_ELEMENT", currentOptions, p.loc)) return true;
616
+ }
617
+ return false;
618
+ }
619
+ function isUpperCase(c) {
620
+ return c > 64 && c < 91;
621
+ }
622
+ function condenseWhitespace(nodes, tag) {
623
+ const shouldCondense = currentOptions.whitespace !== "preserve";
624
+ let removedWhitespace = false;
625
+ for (let i = 0; i < nodes.length; i++) {
626
+ const node = nodes[i];
627
+ if (node.type === 2) if (!inPre) {
628
+ if (isAllWhitespace(node.content)) {
629
+ const prev = nodes[i - 1] && nodes[i - 1].type;
630
+ const next = nodes[i + 1] && nodes[i + 1].type;
631
+ if (!prev || !next || shouldCondense && (prev === 3 && (next === 3 || next === 1) || prev === 1 && (next === 3 || next === 1 && hasNewlineChar(node.content)))) {
632
+ removedWhitespace = true;
633
+ nodes[i] = null;
634
+ } else node.content = " ";
635
+ } else if (shouldCondense) node.content = condense(node.content);
636
+ } else node.content = node.content.replace(windowsNewlineRE, "\n");
637
+ }
638
+ return removedWhitespace ? nodes.filter(Boolean) : nodes;
639
+ }
640
+ function isAllWhitespace(str) {
641
+ for (let i = 0; i < str.length; i++) if (!isWhitespace(str.charCodeAt(i))) return false;
642
+ return true;
643
+ }
644
+ function hasNewlineChar(str) {
645
+ for (let i = 0; i < str.length; i++) {
646
+ const c = str.charCodeAt(i);
647
+ if (c === 10 || c === 13) return true;
648
+ }
649
+ return false;
650
+ }
651
+ function condense(str) {
652
+ let ret = "";
653
+ let prevCharIsWhitespace = false;
654
+ for (let i = 0; i < str.length; i++) if (isWhitespace(str.charCodeAt(i))) {
655
+ if (!prevCharIsWhitespace) {
656
+ ret += " ";
657
+ prevCharIsWhitespace = true;
658
+ }
659
+ } else {
660
+ ret += str[i];
661
+ prevCharIsWhitespace = false;
662
+ }
663
+ return ret;
664
+ }
665
+ function addNode(node) {
666
+ (stack[0] || currentRoot).children.push(node);
667
+ }
668
+ function getLoc(start, end) {
669
+ return {
670
+ start: tokenizer.getPos(start),
671
+ end: end == null ? end : tokenizer.getPos(end),
672
+ source: end == null ? end : getSlice(start, end)
673
+ };
674
+ }
675
+ function cloneLoc(loc) {
676
+ return getLoc(loc.start.offset, loc.end.offset);
677
+ }
678
+ function setLocEnd(loc, end) {
679
+ loc.end = tokenizer.getPos(end);
680
+ loc.source = getSlice(loc.start.offset, end);
681
+ }
682
+ function dirToAttr(dir) {
683
+ const attr = {
684
+ type: 6,
685
+ name: dir.rawName,
686
+ nameLoc: getLoc(dir.loc.start.offset, dir.loc.start.offset + dir.rawName.length),
687
+ value: void 0,
688
+ loc: dir.loc
689
+ };
690
+ if (dir.exp) {
691
+ const loc = dir.exp.loc;
692
+ if (loc.end.offset < dir.loc.end.offset) {
693
+ loc.start.offset--;
694
+ loc.start.column--;
695
+ loc.end.offset++;
696
+ loc.end.column++;
697
+ }
698
+ attr.value = {
699
+ type: 2,
700
+ content: dir.exp.content,
701
+ loc
702
+ };
703
+ }
704
+ return attr;
705
+ }
706
+ function createExp(content, isStatic = false, loc, constType = 0, parseMode = 0) {
707
+ return createSimpleExpression(content, isStatic, loc, constType);
708
+ }
709
+ function emitError(code, index, message) {
710
+ currentOptions.onError(createCompilerError(code, getLoc(index, index), void 0, message));
711
+ }
712
+ function reset() {
713
+ tokenizer.reset();
714
+ currentOpenTag = null;
715
+ currentProp = null;
716
+ currentAttrValue = "";
717
+ currentAttrStartIndex = -1;
718
+ currentAttrEndIndex = -1;
719
+ stack.length = 0;
720
+ }
721
+ function baseParse(input, options) {
722
+ reset();
723
+ currentInput = input;
724
+ currentOptions = extend({}, defaultParserOptions);
725
+ if (options) {
726
+ let key;
727
+ for (key in options) if (options[key] != null) currentOptions[key] = options[key];
728
+ }
729
+ tokenizer.mode = currentOptions.parseMode === "html" ? 1 : currentOptions.parseMode === "sfc" ? 2 : 0;
730
+ tokenizer.inXML = currentOptions.ns === 1 || currentOptions.ns === 2;
731
+ const delimiters = options && options.delimiters;
732
+ if (delimiters) {
733
+ tokenizer.delimiterOpen = toCharCodes(delimiters[0]);
734
+ tokenizer.delimiterClose = toCharCodes(delimiters[1]);
735
+ }
736
+ const root = currentRoot = createRoot([], input);
737
+ tokenizer.parse(currentInput);
738
+ root.loc = getLoc(0, input.length);
739
+ root.children = condenseWhitespace(root.children);
740
+ currentRoot = null;
741
+ return root;
742
+ }
743
+ function cacheStatic(root, context) {
744
+ walk(root, void 0, context, isSingleElementRoot(root, root.children[0]));
745
+ }
746
+ function isSingleElementRoot(root, child) {
747
+ const {
748
+ children
749
+ } = root;
750
+ return children.length === 1 && child.type === 1 && !isSlotOutlet(child);
751
+ }
752
+ function walk(node, parent, context, doNotHoistNode = false, inFor = false) {
753
+ const {
754
+ children
755
+ } = node;
756
+ const toCache = [];
757
+ for (let i = 0; i < children.length; i++) {
758
+ const child = children[i];
759
+ if (child.type === 1 && child.tagType === 0) {
760
+ const constantType = doNotHoistNode ? 0 : getConstantType(child, context);
761
+ if (constantType > 0) {
762
+ if (constantType >= 2) {
763
+ child.codegenNode.patchFlag = -1;
764
+ toCache.push(child);
765
+ continue;
766
+ }
767
+ } else {
768
+ const codegenNode = child.codegenNode;
769
+ if (codegenNode.type === 13) {
770
+ const flag = codegenNode.patchFlag;
771
+ if ((flag === void 0 || flag === 512 || flag === 1) && getGeneratedPropsConstantType(child, context) >= 2) {
772
+ const props = getNodeProps(child);
773
+ if (props) codegenNode.props = context.hoist(props);
774
+ }
775
+ if (codegenNode.dynamicProps) codegenNode.dynamicProps = context.hoist(codegenNode.dynamicProps);
776
+ }
777
+ }
778
+ } else if (child.type === 12) {
779
+ if ((doNotHoistNode ? 0 : getConstantType(child, context)) >= 2) {
780
+ toCache.push(child);
781
+ continue;
782
+ }
783
+ }
784
+ if (child.type === 1) {
785
+ const isComponent$1 = child.tagType === 1;
786
+ if (isComponent$1) context.scopes.vSlot++;
787
+ walk(child, node, context, false, inFor);
788
+ if (isComponent$1) context.scopes.vSlot--;
789
+ } else if (child.type === 11) walk(child, node, context, child.children.length === 1, true);else if (child.type === 9) for (let i2 = 0; i2 < child.branches.length; i2++) walk(child.branches[i2], node, context, child.branches[i2].children.length === 1, inFor);
790
+ }
791
+ let cachedAsArray = false;
792
+ if (toCache.length === children.length && node.type === 1) {
793
+ if (node.tagType === 0 && node.codegenNode && node.codegenNode.type === 13 && isArray(node.codegenNode.children)) {
794
+ node.codegenNode.children = getCacheExpression(createArrayExpression(node.codegenNode.children));
795
+ cachedAsArray = true;
796
+ } else if (node.tagType === 1 && node.codegenNode && node.codegenNode.type === 13 && node.codegenNode.children && !isArray(node.codegenNode.children) && node.codegenNode.children.type === 15) {
797
+ const slot = getSlotNode(node.codegenNode, "default");
798
+ if (slot) {
799
+ slot.returns = getCacheExpression(createArrayExpression(slot.returns));
800
+ cachedAsArray = true;
801
+ }
802
+ } else if (node.tagType === 3 && parent && parent.type === 1 && parent.tagType === 1 && parent.codegenNode && parent.codegenNode.type === 13 && parent.codegenNode.children && !isArray(parent.codegenNode.children) && parent.codegenNode.children.type === 15) {
803
+ const slotName = findDir(node, "slot", true);
804
+ const slot = slotName && slotName.arg && getSlotNode(parent.codegenNode, slotName.arg);
805
+ if (slot) {
806
+ slot.returns = getCacheExpression(createArrayExpression(slot.returns));
807
+ cachedAsArray = true;
808
+ }
809
+ }
810
+ }
811
+ if (!cachedAsArray) for (const child of toCache) child.codegenNode = context.cache(child.codegenNode);
812
+ function getCacheExpression(value) {
813
+ const exp = context.cache(value);
814
+ if (inFor && context.hmr) exp.needArraySpread = true;
815
+ return exp;
816
+ }
817
+ function getSlotNode(node2, name) {
818
+ if (node2.children && !isArray(node2.children) && node2.children.type === 15) {
819
+ const slot = node2.children.properties.find(p => p.key === name || p.key.content === name);
820
+ return slot && slot.value;
821
+ }
822
+ }
823
+ if (toCache.length && context.transformHoist) context.transformHoist(children, context, node);
824
+ }
825
+ function getConstantType(node, context) {
826
+ const {
827
+ constantCache
828
+ } = context;
829
+ switch (node.type) {
830
+ case 1:
831
+ if (node.tagType !== 0) return 0;
832
+ const cached = constantCache.get(node);
833
+ if (cached !== void 0) return cached;
834
+ const codegenNode = node.codegenNode;
835
+ if (codegenNode.type !== 13) return 0;
836
+ if (codegenNode.isBlock && node.tag !== "svg" && node.tag !== "foreignObject" && node.tag !== "math") return 0;
837
+ if (codegenNode.patchFlag === void 0) {
838
+ let returnType2 = 3;
839
+ const generatedPropsType = getGeneratedPropsConstantType(node, context);
840
+ if (generatedPropsType === 0) {
841
+ constantCache.set(node, 0);
842
+ return 0;
843
+ }
844
+ if (generatedPropsType < returnType2) returnType2 = generatedPropsType;
845
+ for (let i = 0; i < node.children.length; i++) {
846
+ const childType = getConstantType(node.children[i], context);
847
+ if (childType === 0) {
848
+ constantCache.set(node, 0);
849
+ return 0;
850
+ }
851
+ if (childType < returnType2) returnType2 = childType;
852
+ }
853
+ if (returnType2 > 1) for (let i = 0; i < node.props.length; i++) {
854
+ const p = node.props[i];
855
+ if (p.type === 7 && p.name === "bind" && p.exp) {
856
+ const expType = getConstantType(p.exp, context);
857
+ if (expType === 0) {
858
+ constantCache.set(node, 0);
859
+ return 0;
860
+ }
861
+ if (expType < returnType2) returnType2 = expType;
862
+ }
863
+ }
864
+ if (codegenNode.isBlock) {
865
+ for (let i = 0; i < node.props.length; i++) if (node.props[i].type === 7) {
866
+ constantCache.set(node, 0);
867
+ return 0;
868
+ }
869
+ context.removeHelper(OPEN_BLOCK);
870
+ context.removeHelper(getVNodeBlockHelper(context.inSSR, codegenNode.isComponent));
871
+ codegenNode.isBlock = false;
872
+ context.helper(getVNodeHelper(context.inSSR, codegenNode.isComponent));
873
+ }
874
+ constantCache.set(node, returnType2);
875
+ return returnType2;
876
+ } else {
877
+ constantCache.set(node, 0);
878
+ return 0;
879
+ }
880
+ case 2:
881
+ case 3:
882
+ return 3;
883
+ case 9:
884
+ case 11:
885
+ case 10:
886
+ return 0;
887
+ case 5:
888
+ case 12:
889
+ return getConstantType(node.content, context);
890
+ case 4:
891
+ return node.constType;
892
+ case 8:
893
+ let returnType = 3;
894
+ for (let i = 0; i < node.children.length; i++) {
895
+ const child = node.children[i];
896
+ if (isString(child) || isSymbol(child)) continue;
897
+ const childType = getConstantType(child, context);
898
+ if (childType === 0) return 0;else if (childType < returnType) returnType = childType;
899
+ }
900
+ return returnType;
901
+ case 20:
902
+ return 2;
903
+ default:
904
+ return 0;
905
+ }
906
+ }
907
+ function getConstantTypeOfHelperCall(value, context) {
908
+ if (value.type === 14 && !isString(value.callee) && allowHoistedHelperSet.has(value.callee)) {
909
+ const arg = value.arguments[0];
910
+ if (arg.type === 4) return getConstantType(arg, context);else if (arg.type === 14) return getConstantTypeOfHelperCall(arg, context);
911
+ }
912
+ return 0;
913
+ }
914
+ function getGeneratedPropsConstantType(node, context) {
915
+ let returnType = 3;
916
+ const props = getNodeProps(node);
917
+ if (props && props.type === 15) {
918
+ const {
919
+ properties
920
+ } = props;
921
+ for (let i = 0; i < properties.length; i++) {
922
+ const {
923
+ key,
924
+ value
925
+ } = properties[i];
926
+ const keyType = getConstantType(key, context);
927
+ if (keyType === 0) return keyType;
928
+ if (keyType < returnType) returnType = keyType;
929
+ let valueType;
930
+ if (value.type === 4) valueType = getConstantType(value, context);else if (value.type === 14) valueType = getConstantTypeOfHelperCall(value, context);else valueType = 0;
931
+ if (valueType === 0) return valueType;
932
+ if (valueType < returnType) returnType = valueType;
933
+ }
934
+ }
935
+ return returnType;
936
+ }
937
+ function getNodeProps(node) {
938
+ const codegenNode = node.codegenNode;
939
+ if (codegenNode.type === 13) return codegenNode.props;
940
+ }
941
+ function createTransformContext(root, {
942
+ filename = "",
943
+ prefixIdentifiers = false,
944
+ hoistStatic = false,
945
+ hmr = false,
946
+ cacheHandlers = false,
947
+ nodeTransforms = [],
948
+ directiveTransforms = {},
949
+ transformHoist = null,
950
+ isBuiltInComponent = NOOP,
951
+ isCustomElement = NOOP,
952
+ expressionPlugins = [],
953
+ scopeId = null,
954
+ slotted = true,
955
+ ssr = false,
956
+ inSSR = false,
957
+ ssrCssVars = ``,
958
+ bindingMetadata = EMPTY_OBJ,
959
+ inline = false,
960
+ isTS = false,
961
+ onError = defaultOnError,
962
+ onWarn = defaultOnWarn,
963
+ compatConfig
964
+ }) {
965
+ const nameMatch = filename.replace(/\?.*$/, "").match(/([^/\\]+)\.\w+$/);
966
+ const context = {
967
+ filename,
968
+ selfName: nameMatch && capitalize(camelize(nameMatch[1])),
969
+ prefixIdentifiers,
970
+ hoistStatic,
971
+ hmr,
972
+ cacheHandlers,
973
+ nodeTransforms,
974
+ directiveTransforms,
975
+ transformHoist,
976
+ isBuiltInComponent,
977
+ isCustomElement,
978
+ expressionPlugins,
979
+ scopeId,
980
+ slotted,
981
+ ssr,
982
+ inSSR,
983
+ ssrCssVars,
984
+ bindingMetadata,
985
+ inline,
986
+ isTS,
987
+ onError,
988
+ onWarn,
989
+ compatConfig,
990
+ root,
991
+ helpers: /* @__PURE__ */new Map(),
992
+ components: /* @__PURE__ */new Set(),
993
+ directives: /* @__PURE__ */new Set(),
994
+ hoists: [],
995
+ imports: [],
996
+ cached: [],
997
+ constantCache: /* @__PURE__ */new WeakMap(),
998
+ temps: 0,
999
+ identifiers: /* @__PURE__ */Object.create(null),
1000
+ scopes: {
1001
+ vFor: 0,
1002
+ vSlot: 0,
1003
+ vPre: 0,
1004
+ vOnce: 0
1005
+ },
1006
+ parent: null,
1007
+ grandParent: null,
1008
+ currentNode: root,
1009
+ childIndex: 0,
1010
+ inVOnce: false,
1011
+ helper(name) {
1012
+ const count = context.helpers.get(name) || 0;
1013
+ context.helpers.set(name, count + 1);
1014
+ return name;
1015
+ },
1016
+ removeHelper(name) {
1017
+ const count = context.helpers.get(name);
1018
+ if (count) {
1019
+ const currentCount = count - 1;
1020
+ if (!currentCount) context.helpers.delete(name);else context.helpers.set(name, currentCount);
1021
+ }
1022
+ },
1023
+ helperString(name) {
1024
+ return `_${helperNameMap[context.helper(name)]}`;
1025
+ },
1026
+ replaceNode(node) {
1027
+ context.parent.children[context.childIndex] = context.currentNode = node;
1028
+ },
1029
+ removeNode(node) {
1030
+ const list = context.parent.children;
1031
+ const removalIndex = node ? list.indexOf(node) : context.currentNode ? context.childIndex : -1;
1032
+ if (!node || node === context.currentNode) {
1033
+ context.currentNode = null;
1034
+ context.onNodeRemoved();
1035
+ } else if (context.childIndex > removalIndex) {
1036
+ context.childIndex--;
1037
+ context.onNodeRemoved();
1038
+ }
1039
+ context.parent.children.splice(removalIndex, 1);
1040
+ },
1041
+ onNodeRemoved: NOOP,
1042
+ addIdentifiers(exp) {},
1043
+ removeIdentifiers(exp) {},
1044
+ hoist(exp) {
1045
+ if (isString(exp)) exp = createSimpleExpression(exp);
1046
+ context.hoists.push(exp);
1047
+ const identifier = createSimpleExpression(`_hoisted_${context.hoists.length}`, false, exp.loc, 2);
1048
+ identifier.hoisted = exp;
1049
+ return identifier;
1050
+ },
1051
+ cache(exp, isVNode = false, inVOnce = false) {
1052
+ const cacheExp = createCacheExpression(context.cached.length, exp, isVNode, inVOnce);
1053
+ context.cached.push(cacheExp);
1054
+ return cacheExp;
1055
+ }
1056
+ };
1057
+ context.filters = /* @__PURE__ */new Set();
1058
+ return context;
1059
+ }
1060
+ function transform(root, options) {
1061
+ const context = createTransformContext(root, options);
1062
+ traverseNode(root, context);
1063
+ if (options.hoistStatic) cacheStatic(root, context);
1064
+ if (!options.ssr) createRootCodegen(root, context);
1065
+ root.helpers = /* @__PURE__ */new Set([...context.helpers.keys()]);
1066
+ root.components = [...context.components];
1067
+ root.directives = [...context.directives];
1068
+ root.imports = context.imports;
1069
+ root.hoists = context.hoists;
1070
+ root.temps = context.temps;
1071
+ root.cached = context.cached;
1072
+ root.transformed = true;
1073
+ root.filters = [...context.filters];
1074
+ }
1075
+ function createRootCodegen(root, context) {
1076
+ const {
1077
+ helper
1078
+ } = context;
1079
+ const {
1080
+ children
1081
+ } = root;
1082
+ if (children.length === 1) {
1083
+ const child = children[0];
1084
+ if (isSingleElementRoot(root, child) && child.codegenNode) {
1085
+ const codegenNode = child.codegenNode;
1086
+ if (codegenNode.type === 13) convertToBlock(codegenNode, context);
1087
+ root.codegenNode = codegenNode;
1088
+ } else root.codegenNode = child;
1089
+ } else if (children.length > 1) root.codegenNode = createVNodeCall(context, helper(FRAGMENT), void 0, root.children, 64, void 0, void 0, true, void 0, false);
1090
+ }
1091
+ function traverseChildren(parent, context) {
1092
+ let i = 0;
1093
+ const nodeRemoved = () => {
1094
+ i--;
1095
+ };
1096
+ for (; i < parent.children.length; i++) {
1097
+ const child = parent.children[i];
1098
+ if (isString(child)) continue;
1099
+ context.grandParent = context.parent;
1100
+ context.parent = parent;
1101
+ context.childIndex = i;
1102
+ context.onNodeRemoved = nodeRemoved;
1103
+ traverseNode(child, context);
1104
+ }
1105
+ }
1106
+ function traverseNode(node, context) {
1107
+ context.currentNode = node;
1108
+ const {
1109
+ nodeTransforms
1110
+ } = context;
1111
+ const exitFns = [];
1112
+ for (let i2 = 0; i2 < nodeTransforms.length; i2++) {
1113
+ const onExit = nodeTransforms[i2](node, context);
1114
+ if (onExit) if (isArray(onExit)) exitFns.push(...onExit);else exitFns.push(onExit);
1115
+ if (!context.currentNode) return;else node = context.currentNode;
1116
+ }
1117
+ switch (node.type) {
1118
+ case 3:
1119
+ if (!context.ssr) context.helper(CREATE_COMMENT);
1120
+ break;
1121
+ case 5:
1122
+ if (!context.ssr) context.helper(TO_DISPLAY_STRING);
1123
+ break;
1124
+ case 9:
1125
+ for (let i2 = 0; i2 < node.branches.length; i2++) traverseNode(node.branches[i2], context);
1126
+ break;
1127
+ case 10:
1128
+ case 11:
1129
+ case 1:
1130
+ case 0:
1131
+ traverseChildren(node, context);
1132
+ break;
1133
+ }
1134
+ context.currentNode = node;
1135
+ let i = exitFns.length;
1136
+ while (i--) exitFns[i]();
1137
+ }
1138
+ function createStructuralDirectiveTransform(name, fn) {
1139
+ const matches = isString(name) ? n => n === name : n => name.test(n);
1140
+ return (node, context) => {
1141
+ if (node.type === 1) {
1142
+ const {
1143
+ props
1144
+ } = node;
1145
+ if (node.tagType === 3 && props.some(isVSlot)) return;
1146
+ const exitFns = [];
1147
+ for (let i = 0; i < props.length; i++) {
1148
+ const prop = props[i];
1149
+ if (prop.type === 7 && matches(prop.name)) {
1150
+ props.splice(i, 1);
1151
+ i--;
1152
+ const onExit = fn(node, prop, context);
1153
+ if (onExit) exitFns.push(onExit);
1154
+ }
1155
+ }
1156
+ return exitFns;
1157
+ }
1158
+ };
1159
+ }
1160
+ function createCodegenContext(ast, {
1161
+ mode = "function",
1162
+ prefixIdentifiers = mode === "module",
1163
+ sourceMap = false,
1164
+ filename = `template.vue.html`,
1165
+ scopeId = null,
1166
+ optimizeImports = false,
1167
+ runtimeGlobalName = `Vue`,
1168
+ runtimeModuleName = `vue`,
1169
+ ssrRuntimeModuleName = "vue/server-renderer",
1170
+ ssr = false,
1171
+ isTS = false,
1172
+ inSSR = false
1173
+ }) {
1174
+ const context = {
1175
+ mode,
1176
+ prefixIdentifiers,
1177
+ sourceMap,
1178
+ filename,
1179
+ scopeId,
1180
+ optimizeImports,
1181
+ runtimeGlobalName,
1182
+ runtimeModuleName,
1183
+ ssrRuntimeModuleName,
1184
+ ssr,
1185
+ isTS,
1186
+ inSSR,
1187
+ source: ast.source,
1188
+ code: ``,
1189
+ column: 1,
1190
+ line: 1,
1191
+ offset: 0,
1192
+ indentLevel: 0,
1193
+ pure: false,
1194
+ map: void 0,
1195
+ helper(key) {
1196
+ return `_${helperNameMap[key]}`;
1197
+ },
1198
+ push(code, newlineIndex = -2, node) {
1199
+ context.code += code;
1200
+ },
1201
+ indent() {
1202
+ newline(++context.indentLevel);
1203
+ },
1204
+ deindent(withoutNewLine = false) {
1205
+ if (withoutNewLine) --context.indentLevel;else newline(--context.indentLevel);
1206
+ },
1207
+ newline() {
1208
+ newline(context.indentLevel);
1209
+ }
1210
+ };
1211
+ function newline(n) {
1212
+ context.push("\n" + ` `.repeat(n), 0);
1213
+ }
1214
+ return context;
1215
+ }
1216
+ function generate(ast, options = {}) {
1217
+ const context = createCodegenContext(ast, options);
1218
+ if (options.onContextCreated) options.onContextCreated(context);
1219
+ const {
1220
+ mode,
1221
+ push,
1222
+ prefixIdentifiers,
1223
+ indent,
1224
+ deindent,
1225
+ newline,
1226
+ scopeId,
1227
+ ssr
1228
+ } = context;
1229
+ const helpers = Array.from(ast.helpers);
1230
+ const hasHelpers = helpers.length > 0;
1231
+ const useWithBlock = !prefixIdentifiers && mode !== "module";
1232
+ genFunctionPreamble(ast, context);
1233
+ push(`function ${ssr ? `ssrRender` : `render`}(${(ssr ? ["_ctx", "_push", "_parent", "_attrs"] : ["_ctx", "_cache"]).join(", ")}) {`);
1234
+ indent();
1235
+ if (useWithBlock) {
1236
+ push(`with (_ctx) {`);
1237
+ indent();
1238
+ if (hasHelpers) {
1239
+ push(`const { ${helpers.map(aliasHelper).join(", ")} } = _Vue
1240
+ `, -1);
1241
+ newline();
1242
+ }
1243
+ }
1244
+ if (ast.components.length) {
1245
+ genAssets(ast.components, "component", context);
1246
+ if (ast.directives.length || ast.temps > 0) newline();
1247
+ }
1248
+ if (ast.directives.length) {
1249
+ genAssets(ast.directives, "directive", context);
1250
+ if (ast.temps > 0) newline();
1251
+ }
1252
+ if (ast.filters && ast.filters.length) {
1253
+ newline();
1254
+ genAssets(ast.filters, "filter", context);
1255
+ newline();
1256
+ }
1257
+ if (ast.temps > 0) {
1258
+ push(`let `);
1259
+ for (let i = 0; i < ast.temps; i++) push(`${i > 0 ? `, ` : ``}_temp${i}`);
1260
+ }
1261
+ if (ast.components.length || ast.directives.length || ast.temps) {
1262
+ push(`
1263
+ `, 0);
1264
+ newline();
1265
+ }
1266
+ if (!ssr) push(`return `);
1267
+ if (ast.codegenNode) genNode(ast.codegenNode, context);else push(`null`);
1268
+ if (useWithBlock) {
1269
+ deindent();
1270
+ push(`}`);
1271
+ }
1272
+ deindent();
1273
+ push(`}`);
1274
+ return {
1275
+ ast,
1276
+ code: context.code,
1277
+ preamble: ``,
1278
+ map: context.map ? context.map.toJSON() : void 0
1279
+ };
1280
+ }
1281
+ function genFunctionPreamble(ast, context) {
1282
+ const {
1283
+ ssr,
1284
+ prefixIdentifiers,
1285
+ push,
1286
+ newline,
1287
+ runtimeModuleName,
1288
+ runtimeGlobalName,
1289
+ ssrRuntimeModuleName
1290
+ } = context;
1291
+ const VueBinding = runtimeGlobalName;
1292
+ const helpers = Array.from(ast.helpers);
1293
+ if (helpers.length > 0) {
1294
+ push(`const _Vue = ${VueBinding}
1295
+ `, -1);
1296
+ if (ast.hoists.length) push(`const { ${[CREATE_VNODE, CREATE_ELEMENT_VNODE, CREATE_COMMENT, CREATE_TEXT, CREATE_STATIC].filter(helper => helpers.includes(helper)).map(aliasHelper).join(", ")} } = _Vue
1297
+ `, -1);
1298
+ }
1299
+ genHoists(ast.hoists, context);
1300
+ newline();
1301
+ push(`return `);
1302
+ }
1303
+ function genAssets(assets, type, {
1304
+ helper,
1305
+ push,
1306
+ newline,
1307
+ isTS
1308
+ }) {
1309
+ const resolver = helper(type === "filter" ? RESOLVE_FILTER : type === "component" ? RESOLVE_COMPONENT : RESOLVE_DIRECTIVE);
1310
+ for (let i = 0; i < assets.length; i++) {
1311
+ let id = assets[i];
1312
+ const maybeSelfReference = id.endsWith("__self");
1313
+ if (maybeSelfReference) id = id.slice(0, -6);
1314
+ push(`const ${toValidAssetId(id, type)} = ${resolver}(${JSON.stringify(id)}${maybeSelfReference ? `, true` : ``})${isTS ? `!` : ``}`);
1315
+ if (i < assets.length - 1) newline();
1316
+ }
1317
+ }
1318
+ function genHoists(hoists, context) {
1319
+ if (!hoists.length) return;
1320
+ context.pure = true;
1321
+ const {
1322
+ push,
1323
+ newline
1324
+ } = context;
1325
+ newline();
1326
+ for (let i = 0; i < hoists.length; i++) {
1327
+ const exp = hoists[i];
1328
+ if (exp) {
1329
+ push(`const _hoisted_${i + 1} = `);
1330
+ genNode(exp, context);
1331
+ newline();
1332
+ }
1333
+ }
1334
+ context.pure = false;
1335
+ }
1336
+ function genNodeListAsArray(nodes, context) {
1337
+ const multilines = nodes.length > 3 || false;
1338
+ context.push(`[`);
1339
+ multilines && context.indent();
1340
+ genNodeList(nodes, context, multilines);
1341
+ multilines && context.deindent();
1342
+ context.push(`]`);
1343
+ }
1344
+ function genNodeList(nodes, context, multilines = false, comma = true) {
1345
+ const {
1346
+ push,
1347
+ newline
1348
+ } = context;
1349
+ for (let i = 0; i < nodes.length; i++) {
1350
+ const node = nodes[i];
1351
+ if (isString(node)) push(node, -3);else if (isArray(node)) genNodeListAsArray(node, context);else genNode(node, context);
1352
+ if (i < nodes.length - 1) if (multilines) {
1353
+ comma && push(",");
1354
+ newline();
1355
+ } else comma && push(", ");
1356
+ }
1357
+ }
1358
+ function genNode(node, context) {
1359
+ if (isString(node)) {
1360
+ context.push(node, -3);
1361
+ return;
1362
+ }
1363
+ if (isSymbol(node)) {
1364
+ context.push(context.helper(node));
1365
+ return;
1366
+ }
1367
+ switch (node.type) {
1368
+ case 1:
1369
+ case 9:
1370
+ case 11:
1371
+ genNode(node.codegenNode, context);
1372
+ break;
1373
+ case 2:
1374
+ genText(node, context);
1375
+ break;
1376
+ case 4:
1377
+ genExpression(node, context);
1378
+ break;
1379
+ case 5:
1380
+ genInterpolation(node, context);
1381
+ break;
1382
+ case 12:
1383
+ genNode(node.codegenNode, context);
1384
+ break;
1385
+ case 8:
1386
+ genCompoundExpression(node, context);
1387
+ break;
1388
+ case 3:
1389
+ genComment(node, context);
1390
+ break;
1391
+ case 13:
1392
+ genVNodeCall(node, context);
1393
+ break;
1394
+ case 14:
1395
+ genCallExpression(node, context);
1396
+ break;
1397
+ case 15:
1398
+ genObjectExpression(node, context);
1399
+ break;
1400
+ case 17:
1401
+ genArrayExpression(node, context);
1402
+ break;
1403
+ case 18:
1404
+ genFunctionExpression(node, context);
1405
+ break;
1406
+ case 19:
1407
+ genConditionalExpression(node, context);
1408
+ break;
1409
+ case 20:
1410
+ genCacheExpression(node, context);
1411
+ break;
1412
+ case 21:
1413
+ genNodeList(node.body, context, true, false);
1414
+ break;
1415
+ case 22:
1416
+ break;
1417
+ case 23:
1418
+ break;
1419
+ case 24:
1420
+ break;
1421
+ case 25:
1422
+ break;
1423
+ case 26:
1424
+ break;
1425
+ case 10:
1426
+ break;
1427
+ default:
1428
+ }
1429
+ }
1430
+ function genText(node, context) {
1431
+ context.push(JSON.stringify(node.content), -3, node);
1432
+ }
1433
+ function genExpression(node, context) {
1434
+ const {
1435
+ content,
1436
+ isStatic
1437
+ } = node;
1438
+ context.push(isStatic ? JSON.stringify(content) : content, -3, node);
1439
+ }
1440
+ function genInterpolation(node, context) {
1441
+ const {
1442
+ push,
1443
+ helper,
1444
+ pure
1445
+ } = context;
1446
+ if (pure) push(PURE_ANNOTATION);
1447
+ push(`${helper(TO_DISPLAY_STRING)}(`);
1448
+ genNode(node.content, context);
1449
+ push(`)`);
1450
+ }
1451
+ function genCompoundExpression(node, context) {
1452
+ for (let i = 0; i < node.children.length; i++) {
1453
+ const child = node.children[i];
1454
+ if (isString(child)) context.push(child, -3);else genNode(child, context);
1455
+ }
1456
+ }
1457
+ function genExpressionAsPropertyKey(node, context) {
1458
+ const {
1459
+ push
1460
+ } = context;
1461
+ if (node.type === 8) {
1462
+ push(`[`);
1463
+ genCompoundExpression(node, context);
1464
+ push(`]`);
1465
+ } else if (node.isStatic) push(isSimpleIdentifier(node.content) ? node.content : JSON.stringify(node.content), -2, node);else push(`[${node.content}]`, -3, node);
1466
+ }
1467
+ function genComment(node, context) {
1468
+ const {
1469
+ push,
1470
+ helper,
1471
+ pure
1472
+ } = context;
1473
+ if (pure) push(PURE_ANNOTATION);
1474
+ push(`${helper(CREATE_COMMENT)}(${JSON.stringify(node.content)})`, -3, node);
1475
+ }
1476
+ function genVNodeCall(node, context) {
1477
+ const {
1478
+ push,
1479
+ helper,
1480
+ pure
1481
+ } = context;
1482
+ const {
1483
+ tag,
1484
+ props,
1485
+ children,
1486
+ patchFlag,
1487
+ dynamicProps,
1488
+ directives,
1489
+ isBlock,
1490
+ disableTracking,
1491
+ isComponent: isComponent$1
1492
+ } = node;
1493
+ let patchFlagString;
1494
+ if (patchFlag) patchFlagString = String(patchFlag);
1495
+ if (directives) push(helper(WITH_DIRECTIVES) + `(`);
1496
+ if (isBlock) push(`(${helper(OPEN_BLOCK)}(${disableTracking ? `true` : ``}), `);
1497
+ if (pure) push(PURE_ANNOTATION);
1498
+ push(helper(isBlock ? getVNodeBlockHelper(context.inSSR, isComponent$1) : getVNodeHelper(context.inSSR, isComponent$1)) + `(`, -2, node);
1499
+ genNodeList(genNullableArgs([tag, props, children, patchFlagString, dynamicProps]), context);
1500
+ push(`)`);
1501
+ if (isBlock) push(`)`);
1502
+ if (directives) {
1503
+ push(`, `);
1504
+ genNode(directives, context);
1505
+ push(`)`);
1506
+ }
1507
+ }
1508
+ function genNullableArgs(args) {
1509
+ let i = args.length;
1510
+ while (i--) if (args[i] != null) break;
1511
+ return args.slice(0, i + 1).map(arg => arg || `null`);
1512
+ }
1513
+ function genCallExpression(node, context) {
1514
+ const {
1515
+ push,
1516
+ helper,
1517
+ pure
1518
+ } = context;
1519
+ const callee = isString(node.callee) ? node.callee : helper(node.callee);
1520
+ if (pure) push(PURE_ANNOTATION);
1521
+ push(callee + `(`, -2, node);
1522
+ genNodeList(node.arguments, context);
1523
+ push(`)`);
1524
+ }
1525
+ function genObjectExpression(node, context) {
1526
+ const {
1527
+ push,
1528
+ indent,
1529
+ deindent,
1530
+ newline
1531
+ } = context;
1532
+ const {
1533
+ properties
1534
+ } = node;
1535
+ if (!properties.length) {
1536
+ push(`{}`, -2, node);
1537
+ return;
1538
+ }
1539
+ const multilines = properties.length > 1 || false;
1540
+ push(multilines ? `{` : `{ `);
1541
+ multilines && indent();
1542
+ for (let i = 0; i < properties.length; i++) {
1543
+ const {
1544
+ key,
1545
+ value
1546
+ } = properties[i];
1547
+ genExpressionAsPropertyKey(key, context);
1548
+ push(`: `);
1549
+ genNode(value, context);
1550
+ if (i < properties.length - 1) {
1551
+ push(`,`);
1552
+ newline();
1553
+ }
1554
+ }
1555
+ multilines && deindent();
1556
+ push(multilines ? `}` : ` }`);
1557
+ }
1558
+ function genArrayExpression(node, context) {
1559
+ genNodeListAsArray(node.elements, context);
1560
+ }
1561
+ function genFunctionExpression(node, context) {
1562
+ const {
1563
+ push,
1564
+ indent,
1565
+ deindent
1566
+ } = context;
1567
+ const {
1568
+ params,
1569
+ returns,
1570
+ body,
1571
+ newline,
1572
+ isSlot
1573
+ } = node;
1574
+ if (isSlot) push(`_${helperNameMap[WITH_CTX]}(`);
1575
+ push(`(`, -2, node);
1576
+ if (isArray(params)) genNodeList(params, context);else if (params) genNode(params, context);
1577
+ push(`) => `);
1578
+ if (newline || body) {
1579
+ push(`{`);
1580
+ indent();
1581
+ }
1582
+ if (returns) {
1583
+ if (newline) push(`return `);
1584
+ if (isArray(returns)) genNodeListAsArray(returns, context);else genNode(returns, context);
1585
+ } else if (body) genNode(body, context);
1586
+ if (newline || body) {
1587
+ deindent();
1588
+ push(`}`);
1589
+ }
1590
+ if (isSlot) {
1591
+ if (node.isNonScopedSlot) push(`, undefined, true`);
1592
+ push(`)`);
1593
+ }
1594
+ }
1595
+ function genConditionalExpression(node, context) {
1596
+ const {
1597
+ test,
1598
+ consequent,
1599
+ alternate,
1600
+ newline: needNewline
1601
+ } = node;
1602
+ const {
1603
+ push,
1604
+ indent,
1605
+ deindent,
1606
+ newline
1607
+ } = context;
1608
+ if (test.type === 4) {
1609
+ const needsParens = !isSimpleIdentifier(test.content);
1610
+ needsParens && push(`(`);
1611
+ genExpression(test, context);
1612
+ needsParens && push(`)`);
1613
+ } else {
1614
+ push(`(`);
1615
+ genNode(test, context);
1616
+ push(`)`);
1617
+ }
1618
+ needNewline && indent();
1619
+ context.indentLevel++;
1620
+ needNewline || push(` `);
1621
+ push(`? `);
1622
+ genNode(consequent, context);
1623
+ context.indentLevel--;
1624
+ needNewline && newline();
1625
+ needNewline || push(` `);
1626
+ push(`: `);
1627
+ const isNested = alternate.type === 19;
1628
+ if (!isNested) context.indentLevel++;
1629
+ genNode(alternate, context);
1630
+ if (!isNested) context.indentLevel--;
1631
+ needNewline && deindent(true);
1632
+ }
1633
+ function genCacheExpression(node, context) {
1634
+ const {
1635
+ push,
1636
+ helper,
1637
+ indent,
1638
+ deindent,
1639
+ newline
1640
+ } = context;
1641
+ const {
1642
+ needPauseTracking,
1643
+ needArraySpread
1644
+ } = node;
1645
+ if (needArraySpread) push(`[...(`);
1646
+ push(`_cache[${node.index}] || (`);
1647
+ if (needPauseTracking) {
1648
+ indent();
1649
+ push(`${helper(SET_BLOCK_TRACKING)}(-1`);
1650
+ if (node.inVOnce) push(`, true`);
1651
+ push(`),`);
1652
+ newline();
1653
+ push(`(`);
1654
+ }
1655
+ push(`_cache[${node.index}] = `);
1656
+ genNode(node.value, context);
1657
+ if (needPauseTracking) {
1658
+ push(`).cacheIndex = ${node.index},`);
1659
+ newline();
1660
+ push(`${helper(SET_BLOCK_TRACKING)}(1),`);
1661
+ newline();
1662
+ push(`_cache[${node.index}]`);
1663
+ deindent();
1664
+ }
1665
+ push(`)`);
1666
+ if (needArraySpread) push(`)]`);
1667
+ }
1668
+ function processExpression(node, context, asParams = false, asRawStatements = false, localVars = Object.create(context.identifiers)) {
1669
+ return node;
1670
+ }
1671
+ function stringifyExpression(exp) {
1672
+ if (isString(exp)) return exp;else if (exp.type === 4) return exp.content;else return exp.children.map(stringifyExpression).join("");
1673
+ }
1674
+ function processIf(node, dir, context, processCodegen) {
1675
+ if (dir.name !== "else" && (!dir.exp || !dir.exp.content.trim())) {
1676
+ const loc = dir.exp ? dir.exp.loc : node.loc;
1677
+ context.onError(createCompilerError(28, dir.loc));
1678
+ dir.exp = createSimpleExpression(`true`, false, loc);
1679
+ }
1680
+ if (dir.name === "if") {
1681
+ const branch = createIfBranch(node, dir);
1682
+ const ifNode = {
1683
+ type: 9,
1684
+ loc: cloneLoc(node.loc),
1685
+ branches: [branch]
1686
+ };
1687
+ context.replaceNode(ifNode);
1688
+ if (processCodegen) return processCodegen(ifNode, branch, true);
1689
+ } else {
1690
+ const siblings = context.parent.children;
1691
+ let i = siblings.indexOf(node);
1692
+ while (i-- >= -1) {
1693
+ const sibling = siblings[i];
1694
+ if (sibling && sibling.type === 3) {
1695
+ context.removeNode(sibling);
1696
+ continue;
1697
+ }
1698
+ if (sibling && sibling.type === 2 && !sibling.content.trim().length) {
1699
+ context.removeNode(sibling);
1700
+ continue;
1701
+ }
1702
+ if (sibling && sibling.type === 9) {
1703
+ if (dir.name === "else-if" && sibling.branches[sibling.branches.length - 1].condition === void 0) context.onError(createCompilerError(30, node.loc));
1704
+ context.removeNode();
1705
+ const branch = createIfBranch(node, dir);
1706
+ sibling.branches.push(branch);
1707
+ const onExit = processCodegen && processCodegen(sibling, branch, false);
1708
+ traverseNode(branch, context);
1709
+ if (onExit) onExit();
1710
+ context.currentNode = null;
1711
+ } else context.onError(createCompilerError(30, node.loc));
1712
+ break;
1713
+ }
1714
+ }
1715
+ }
1716
+ function createIfBranch(node, dir) {
1717
+ const isTemplateIf = node.tagType === 3;
1718
+ return {
1719
+ type: 10,
1720
+ loc: node.loc,
1721
+ condition: dir.name === "else" ? void 0 : dir.exp,
1722
+ children: isTemplateIf && !findDir(node, "for") ? node.children : [node],
1723
+ userKey: findProp(node, `key`),
1724
+ isTemplateIf
1725
+ };
1726
+ }
1727
+ function createCodegenNodeForBranch(branch, keyIndex, context) {
1728
+ if (branch.condition) return createConditionalExpression(branch.condition, createChildrenCodegenNode(branch, keyIndex, context), createCallExpression(context.helper(CREATE_COMMENT), ["\"\"", "true"]));else return createChildrenCodegenNode(branch, keyIndex, context);
1729
+ }
1730
+ function createChildrenCodegenNode(branch, keyIndex, context) {
1731
+ const {
1732
+ helper
1733
+ } = context;
1734
+ const keyProperty = createObjectProperty(`key`, createSimpleExpression(`${keyIndex}`, false, locStub, 2));
1735
+ const {
1736
+ children
1737
+ } = branch;
1738
+ const firstChild = children[0];
1739
+ if (children.length !== 1 || firstChild.type !== 1) {
1740
+ if (children.length === 1 && firstChild.type === 11) {
1741
+ const vnodeCall = firstChild.codegenNode;
1742
+ injectProp(vnodeCall, keyProperty, context);
1743
+ return vnodeCall;
1744
+ } else return createVNodeCall(context, helper(FRAGMENT), createObjectExpression([keyProperty]), children, 64, void 0, void 0, true, false, false, branch.loc);
1745
+ } else {
1746
+ const ret = firstChild.codegenNode;
1747
+ const vnodeCall = getMemoedVNodeCall(ret);
1748
+ if (vnodeCall.type === 13) convertToBlock(vnodeCall, context);
1749
+ injectProp(vnodeCall, keyProperty, context);
1750
+ return ret;
1751
+ }
1752
+ }
1753
+ function getParentCondition(node) {
1754
+ while (true) if (node.type === 19) {
1755
+ if (node.alternate.type === 19) node = node.alternate;else return node;
1756
+ } else if (node.type === 20) node = node.value;
1757
+ }
1758
+ function processFor(node, dir, context, processCodegen) {
1759
+ if (!dir.exp) {
1760
+ context.onError(createCompilerError(31, dir.loc));
1761
+ return;
1762
+ }
1763
+ const parseResult = dir.forParseResult;
1764
+ if (!parseResult) {
1765
+ context.onError(createCompilerError(32, dir.loc));
1766
+ return;
1767
+ }
1768
+ finalizeForParseResult(parseResult, context);
1769
+ const {
1770
+ addIdentifiers,
1771
+ removeIdentifiers,
1772
+ scopes
1773
+ } = context;
1774
+ const {
1775
+ source,
1776
+ value,
1777
+ key,
1778
+ index
1779
+ } = parseResult;
1780
+ const forNode = {
1781
+ type: 11,
1782
+ loc: dir.loc,
1783
+ source,
1784
+ valueAlias: value,
1785
+ keyAlias: key,
1786
+ objectIndexAlias: index,
1787
+ parseResult,
1788
+ children: isTemplateNode(node) ? node.children : [node]
1789
+ };
1790
+ context.replaceNode(forNode);
1791
+ scopes.vFor++;
1792
+ const onExit = processCodegen && processCodegen(forNode);
1793
+ return () => {
1794
+ scopes.vFor--;
1795
+ if (onExit) onExit();
1796
+ };
1797
+ }
1798
+ function finalizeForParseResult(result, context) {
1799
+ if (result.finalized) return;
1800
+ result.finalized = true;
1801
+ }
1802
+ function createForLoopParams({
1803
+ value,
1804
+ key,
1805
+ index
1806
+ }, memoArgs = []) {
1807
+ return createParamsList([value, key, index, ...memoArgs]);
1808
+ }
1809
+ function createParamsList(args) {
1810
+ let i = args.length;
1811
+ while (i--) if (args[i]) break;
1812
+ return args.slice(0, i + 1).map((arg, i2) => arg || createSimpleExpression(`_`.repeat(i2 + 1), false));
1813
+ }
1814
+ function buildSlots(node, context, buildSlotFn = buildClientSlotFn) {
1815
+ context.helper(WITH_CTX);
1816
+ const {
1817
+ children,
1818
+ loc
1819
+ } = node;
1820
+ const slotsProperties = [];
1821
+ const dynamicSlots = [];
1822
+ let hasDynamicSlots = context.scopes.vSlot > 0 || context.scopes.vFor > 0;
1823
+ const onComponentSlot = findDir(node, "slot", true);
1824
+ if (onComponentSlot) {
1825
+ const {
1826
+ arg,
1827
+ exp
1828
+ } = onComponentSlot;
1829
+ if (arg && !isStaticExp(arg)) hasDynamicSlots = true;
1830
+ slotsProperties.push(createObjectProperty(arg || createSimpleExpression("default", true), buildSlotFn(exp, void 0, children, loc)));
1831
+ }
1832
+ let hasTemplateSlots = false;
1833
+ let hasNamedDefaultSlot = false;
1834
+ const implicitDefaultChildren = [];
1835
+ const seenSlotNames = /* @__PURE__ */new Set();
1836
+ let conditionalBranchIndex = 0;
1837
+ for (let i = 0; i < children.length; i++) {
1838
+ const slotElement = children[i];
1839
+ let slotDir;
1840
+ if (!isTemplateNode(slotElement) || !(slotDir = findDir(slotElement, "slot", true))) {
1841
+ if (slotElement.type !== 3) implicitDefaultChildren.push(slotElement);
1842
+ continue;
1843
+ }
1844
+ if (onComponentSlot) {
1845
+ context.onError(createCompilerError(37, slotDir.loc));
1846
+ break;
1847
+ }
1848
+ hasTemplateSlots = true;
1849
+ const {
1850
+ children: slotChildren,
1851
+ loc: slotLoc
1852
+ } = slotElement;
1853
+ const {
1854
+ arg: slotName = createSimpleExpression(`default`, true),
1855
+ exp: slotProps,
1856
+ loc: dirLoc
1857
+ } = slotDir;
1858
+ let staticSlotName;
1859
+ if (isStaticExp(slotName)) staticSlotName = slotName ? slotName.content : `default`;else hasDynamicSlots = true;
1860
+ const vFor = findDir(slotElement, "for");
1861
+ const slotFunction = buildSlotFn(slotProps, vFor, slotChildren, slotLoc);
1862
+ let vIf;
1863
+ let vElse;
1864
+ if (vIf = findDir(slotElement, "if")) {
1865
+ hasDynamicSlots = true;
1866
+ dynamicSlots.push(createConditionalExpression(vIf.exp, buildDynamicSlot(slotName, slotFunction, conditionalBranchIndex++), defaultFallback));
1867
+ } else if (vElse = findDir(slotElement, /^else(-if)?$/, true)) {
1868
+ let j = i;
1869
+ let prev;
1870
+ while (j--) {
1871
+ prev = children[j];
1872
+ if (prev.type !== 3) break;
1873
+ }
1874
+ if (prev && isTemplateNode(prev) && findDir(prev, /^(else-)?if$/)) {
1875
+ let conditional = dynamicSlots[dynamicSlots.length - 1];
1876
+ while (conditional.alternate.type === 19) conditional = conditional.alternate;
1877
+ conditional.alternate = vElse.exp ? createConditionalExpression(vElse.exp, buildDynamicSlot(slotName, slotFunction, conditionalBranchIndex++), defaultFallback) : buildDynamicSlot(slotName, slotFunction, conditionalBranchIndex++);
1878
+ } else context.onError(createCompilerError(30, vElse.loc));
1879
+ } else if (vFor) {
1880
+ hasDynamicSlots = true;
1881
+ const parseResult = vFor.forParseResult;
1882
+ if (parseResult) {
1883
+ finalizeForParseResult(parseResult, context);
1884
+ dynamicSlots.push(createCallExpression(context.helper(RENDER_LIST), [parseResult.source, createFunctionExpression(createForLoopParams(parseResult), buildDynamicSlot(slotName, slotFunction), true)]));
1885
+ } else context.onError(createCompilerError(32, vFor.loc));
1886
+ } else {
1887
+ if (staticSlotName) {
1888
+ if (seenSlotNames.has(staticSlotName)) {
1889
+ context.onError(createCompilerError(38, dirLoc));
1890
+ continue;
1891
+ }
1892
+ seenSlotNames.add(staticSlotName);
1893
+ if (staticSlotName === "default") hasNamedDefaultSlot = true;
1894
+ }
1895
+ slotsProperties.push(createObjectProperty(slotName, slotFunction));
1896
+ }
1897
+ }
1898
+ if (!onComponentSlot) {
1899
+ const buildDefaultSlotProperty = (props, children2) => {
1900
+ const fn = buildSlotFn(props, void 0, children2, loc);
1901
+ if (context.compatConfig) fn.isNonScopedSlot = true;
1902
+ return createObjectProperty(`default`, fn);
1903
+ };
1904
+ if (!hasTemplateSlots) slotsProperties.push(buildDefaultSlotProperty(void 0, children));else if (implicitDefaultChildren.length && implicitDefaultChildren.some(node2 => isNonWhitespaceContent(node2))) if (hasNamedDefaultSlot) context.onError(createCompilerError(39, implicitDefaultChildren[0].loc));else slotsProperties.push(buildDefaultSlotProperty(void 0, implicitDefaultChildren));
1905
+ }
1906
+ const slotFlag = hasDynamicSlots ? 2 : hasForwardedSlots(node.children) ? 3 : 1;
1907
+ let slots = createObjectExpression(slotsProperties.concat(createObjectProperty(`_`, createSimpleExpression(slotFlag + ``, false))), loc);
1908
+ if (dynamicSlots.length) slots = createCallExpression(context.helper(CREATE_SLOTS), [slots, createArrayExpression(dynamicSlots)]);
1909
+ return {
1910
+ slots,
1911
+ hasDynamicSlots
1912
+ };
1913
+ }
1914
+ function buildDynamicSlot(name, fn, index) {
1915
+ const props = [createObjectProperty(`name`, name), createObjectProperty(`fn`, fn)];
1916
+ if (index != null) props.push(createObjectProperty(`key`, createSimpleExpression(String(index), true)));
1917
+ return createObjectExpression(props);
1918
+ }
1919
+ function hasForwardedSlots(children) {
1920
+ for (let i = 0; i < children.length; i++) {
1921
+ const child = children[i];
1922
+ switch (child.type) {
1923
+ case 1:
1924
+ if (child.tagType === 2 || hasForwardedSlots(child.children)) return true;
1925
+ break;
1926
+ case 9:
1927
+ if (hasForwardedSlots(child.branches)) return true;
1928
+ break;
1929
+ case 10:
1930
+ case 11:
1931
+ if (hasForwardedSlots(child.children)) return true;
1932
+ break;
1933
+ }
1934
+ }
1935
+ return false;
1936
+ }
1937
+ function isNonWhitespaceContent(node) {
1938
+ if (node.type !== 2 && node.type !== 12) return true;
1939
+ return node.type === 2 ? !!node.content.trim() : isNonWhitespaceContent(node.content);
1940
+ }
1941
+ function resolveComponentType(node, context, ssr = false) {
1942
+ let {
1943
+ tag
1944
+ } = node;
1945
+ const isExplicitDynamic = isComponentTag(tag);
1946
+ const isProp = findProp(node, "is", false, true);
1947
+ if (isProp) {
1948
+ if (isExplicitDynamic || isCompatEnabled("COMPILER_IS_ON_ELEMENT", context)) {
1949
+ let exp;
1950
+ if (isProp.type === 6) exp = isProp.value && createSimpleExpression(isProp.value.content, true);else {
1951
+ exp = isProp.exp;
1952
+ if (!exp) exp = createSimpleExpression(`is`, false, isProp.arg.loc);
1953
+ }
1954
+ if (exp) return createCallExpression(context.helper(RESOLVE_DYNAMIC_COMPONENT), [exp]);
1955
+ } else if (isProp.type === 6 && isProp.value.content.startsWith("vue:")) tag = isProp.value.content.slice(4);
1956
+ }
1957
+ const builtIn = isCoreComponent(tag) || context.isBuiltInComponent(tag);
1958
+ if (builtIn) {
1959
+ if (!ssr) context.helper(builtIn);
1960
+ return builtIn;
1961
+ }
1962
+ context.helper(RESOLVE_COMPONENT);
1963
+ context.components.add(tag);
1964
+ return toValidAssetId(tag, `component`);
1965
+ }
1966
+ function buildProps(node, context, props = node.props, isComponent$1, isDynamicComponent, ssr = false) {
1967
+ const {
1968
+ tag,
1969
+ loc: elementLoc,
1970
+ children
1971
+ } = node;
1972
+ let properties = [];
1973
+ const mergeArgs = [];
1974
+ const runtimeDirectives = [];
1975
+ const hasChildren = children.length > 0;
1976
+ let shouldUseBlock = false;
1977
+ let patchFlag = 0;
1978
+ let hasRef = false;
1979
+ let hasClassBinding = false;
1980
+ let hasStyleBinding = false;
1981
+ let hasHydrationEventBinding = false;
1982
+ let hasDynamicKeys = false;
1983
+ let hasVnodeHook = false;
1984
+ const dynamicPropNames = [];
1985
+ const pushMergeArg = arg => {
1986
+ if (properties.length) {
1987
+ mergeArgs.push(createObjectExpression(dedupeProperties(properties), elementLoc));
1988
+ properties = [];
1989
+ }
1990
+ if (arg) mergeArgs.push(arg);
1991
+ };
1992
+ const pushRefVForMarker = () => {
1993
+ if (context.scopes.vFor > 0) properties.push(createObjectProperty(createSimpleExpression("ref_for", true), createSimpleExpression("true")));
1994
+ };
1995
+ const analyzePatchFlag = ({
1996
+ key,
1997
+ value
1998
+ }) => {
1999
+ if (isStaticExp(key)) {
2000
+ const name = key.content;
2001
+ const isEventHandler = isOn(name);
2002
+ if (isEventHandler && (!isComponent$1 || isDynamicComponent) && name.toLowerCase() !== "onclick" && name !== "onUpdate:modelValue" && !isReservedProp(name)) hasHydrationEventBinding = true;
2003
+ if (isEventHandler && isReservedProp(name)) hasVnodeHook = true;
2004
+ if (isEventHandler && value.type === 14) value = value.arguments[0];
2005
+ if (value.type === 20 || (value.type === 4 || value.type === 8) && getConstantType(value, context) > 0) return;
2006
+ if (name === "ref") hasRef = true;else if (name === "class") hasClassBinding = true;else if (name === "style") hasStyleBinding = true;else if (name !== "key" && !dynamicPropNames.includes(name)) dynamicPropNames.push(name);
2007
+ if (isComponent$1 && (name === "class" || name === "style") && !dynamicPropNames.includes(name)) dynamicPropNames.push(name);
2008
+ } else hasDynamicKeys = true;
2009
+ };
2010
+ for (let i = 0; i < props.length; i++) {
2011
+ const prop = props[i];
2012
+ if (prop.type === 6) {
2013
+ const {
2014
+ loc,
2015
+ name,
2016
+ nameLoc,
2017
+ value
2018
+ } = prop;
2019
+ let isStatic = true;
2020
+ if (name === "ref") {
2021
+ hasRef = true;
2022
+ pushRefVForMarker();
2023
+ }
2024
+ if (name === "is" && (isComponentTag(tag) || value && value.content.startsWith("vue:") || isCompatEnabled("COMPILER_IS_ON_ELEMENT", context))) continue;
2025
+ properties.push(createObjectProperty(createSimpleExpression(name, true, nameLoc), createSimpleExpression(value ? value.content : "", isStatic, value ? value.loc : loc)));
2026
+ } else {
2027
+ const {
2028
+ name,
2029
+ arg,
2030
+ exp,
2031
+ loc,
2032
+ modifiers
2033
+ } = prop;
2034
+ const isVBind = name === "bind";
2035
+ const isVOn = name === "on";
2036
+ if (name === "slot") {
2037
+ if (!isComponent$1) context.onError(createCompilerError(40, loc));
2038
+ continue;
2039
+ }
2040
+ if (name === "once" || name === "memo") continue;
2041
+ if (name === "is" || isVBind && isStaticArgOf(arg, "is") && (isComponentTag(tag) || isCompatEnabled("COMPILER_IS_ON_ELEMENT", context))) continue;
2042
+ if (isVOn && ssr) continue;
2043
+ if (isVBind && isStaticArgOf(arg, "key") || isVOn && hasChildren && isStaticArgOf(arg, "vue:before-update")) shouldUseBlock = true;
2044
+ if (isVBind && isStaticArgOf(arg, "ref")) pushRefVForMarker();
2045
+ if (!arg && (isVBind || isVOn)) {
2046
+ hasDynamicKeys = true;
2047
+ if (exp) {
2048
+ if (isVBind) {
2049
+ pushRefVForMarker();
2050
+ pushMergeArg();
2051
+ if (isCompatEnabled("COMPILER_V_BIND_OBJECT_ORDER", context)) {
2052
+ mergeArgs.unshift(exp);
2053
+ continue;
2054
+ }
2055
+ mergeArgs.push(exp);
2056
+ } else pushMergeArg({
2057
+ type: 14,
2058
+ loc,
2059
+ callee: context.helper(TO_HANDLERS),
2060
+ arguments: isComponent$1 ? [exp] : [exp, `true`]
2061
+ });
2062
+ } else context.onError(createCompilerError(isVBind ? 34 : 35, loc));
2063
+ continue;
2064
+ }
2065
+ if (isVBind && modifiers.some(mod => mod.content === "prop")) patchFlag |= 32;
2066
+ const directiveTransform = context.directiveTransforms[name];
2067
+ if (directiveTransform) {
2068
+ const {
2069
+ props: props2,
2070
+ needRuntime
2071
+ } = directiveTransform(prop, node, context);
2072
+ !ssr && props2.forEach(analyzePatchFlag);
2073
+ if (isVOn && arg && !isStaticExp(arg)) pushMergeArg(createObjectExpression(props2, elementLoc));else properties.push(...props2);
2074
+ if (needRuntime) {
2075
+ runtimeDirectives.push(prop);
2076
+ if (isSymbol(needRuntime)) directiveImportMap.set(prop, needRuntime);
2077
+ }
2078
+ } else if (!isBuiltInDirective(name)) {
2079
+ runtimeDirectives.push(prop);
2080
+ if (hasChildren) shouldUseBlock = true;
2081
+ }
2082
+ }
2083
+ }
2084
+ let propsExpression = void 0;
2085
+ if (mergeArgs.length) {
2086
+ pushMergeArg();
2087
+ if (mergeArgs.length > 1) propsExpression = createCallExpression(context.helper(MERGE_PROPS), mergeArgs, elementLoc);else propsExpression = mergeArgs[0];
2088
+ } else if (properties.length) propsExpression = createObjectExpression(dedupeProperties(properties), elementLoc);
2089
+ if (hasDynamicKeys) patchFlag |= 16;else {
2090
+ if (hasClassBinding && !isComponent$1) patchFlag |= 2;
2091
+ if (hasStyleBinding && !isComponent$1) patchFlag |= 4;
2092
+ if (dynamicPropNames.length) patchFlag |= 8;
2093
+ if (hasHydrationEventBinding) patchFlag |= 32;
2094
+ }
2095
+ if (!shouldUseBlock && (patchFlag === 0 || patchFlag === 32) && (hasRef || hasVnodeHook || runtimeDirectives.length > 0)) patchFlag |= 512;
2096
+ if (!context.inSSR && propsExpression) switch (propsExpression.type) {
2097
+ case 15:
2098
+ let classKeyIndex = -1;
2099
+ let styleKeyIndex = -1;
2100
+ let hasDynamicKey = false;
2101
+ for (let i = 0; i < propsExpression.properties.length; i++) {
2102
+ const key = propsExpression.properties[i].key;
2103
+ if (isStaticExp(key)) {
2104
+ if (key.content === "class") classKeyIndex = i;else if (key.content === "style") styleKeyIndex = i;
2105
+ } else if (!key.isHandlerKey) hasDynamicKey = true;
2106
+ }
2107
+ const classProp = propsExpression.properties[classKeyIndex];
2108
+ const styleProp = propsExpression.properties[styleKeyIndex];
2109
+ if (!hasDynamicKey) {
2110
+ if (classProp && !isStaticExp(classProp.value)) classProp.value = createCallExpression(context.helper(NORMALIZE_CLASS), [classProp.value]);
2111
+ if (styleProp && (hasStyleBinding || styleProp.value.type === 4 && styleProp.value.content.trim()[0] === `[` || styleProp.value.type === 17)) styleProp.value = createCallExpression(context.helper(NORMALIZE_STYLE), [styleProp.value]);
2112
+ } else propsExpression = createCallExpression(context.helper(NORMALIZE_PROPS), [propsExpression]);
2113
+ break;
2114
+ case 14:
2115
+ break;
2116
+ default:
2117
+ propsExpression = createCallExpression(context.helper(NORMALIZE_PROPS), [createCallExpression(context.helper(GUARD_REACTIVE_PROPS), [propsExpression])]);
2118
+ break;
2119
+ }
2120
+ return {
2121
+ props: propsExpression,
2122
+ directives: runtimeDirectives,
2123
+ patchFlag,
2124
+ dynamicPropNames,
2125
+ shouldUseBlock
2126
+ };
2127
+ }
2128
+ function dedupeProperties(properties) {
2129
+ const knownProps = /* @__PURE__ */new Map();
2130
+ const deduped = [];
2131
+ for (let i = 0; i < properties.length; i++) {
2132
+ const prop = properties[i];
2133
+ if (prop.key.type === 8 || !prop.key.isStatic) {
2134
+ deduped.push(prop);
2135
+ continue;
2136
+ }
2137
+ const name = prop.key.content;
2138
+ const existing = knownProps.get(name);
2139
+ if (existing) {
2140
+ if (name === "style" || name === "class" || isOn(name)) mergeAsArray(existing, prop);
2141
+ } else {
2142
+ knownProps.set(name, prop);
2143
+ deduped.push(prop);
2144
+ }
2145
+ }
2146
+ return deduped;
2147
+ }
2148
+ function mergeAsArray(existing, incoming) {
2149
+ if (existing.value.type === 17) existing.value.elements.push(incoming.value);else existing.value = createArrayExpression([existing.value, incoming.value], existing.loc);
2150
+ }
2151
+ function buildDirectiveArgs(dir, context) {
2152
+ const dirArgs = [];
2153
+ const runtime = directiveImportMap.get(dir);
2154
+ if (runtime) dirArgs.push(context.helperString(runtime));else {
2155
+ context.helper(RESOLVE_DIRECTIVE);
2156
+ context.directives.add(dir.name);
2157
+ dirArgs.push(toValidAssetId(dir.name, `directive`));
2158
+ }
2159
+ const {
2160
+ loc
2161
+ } = dir;
2162
+ if (dir.exp) dirArgs.push(dir.exp);
2163
+ if (dir.arg) {
2164
+ if (!dir.exp) dirArgs.push(`void 0`);
2165
+ dirArgs.push(dir.arg);
2166
+ }
2167
+ if (Object.keys(dir.modifiers).length) {
2168
+ if (!dir.arg) {
2169
+ if (!dir.exp) dirArgs.push(`void 0`);
2170
+ dirArgs.push(`void 0`);
2171
+ }
2172
+ const trueExpression = createSimpleExpression(`true`, false, loc);
2173
+ dirArgs.push(createObjectExpression(dir.modifiers.map(modifier => createObjectProperty(modifier, trueExpression)), loc));
2174
+ }
2175
+ return createArrayExpression(dirArgs, dir.loc);
2176
+ }
2177
+ function stringifyDynamicPropNames(props) {
2178
+ let propsNamesString = `[`;
2179
+ for (let i = 0, l = props.length; i < l; i++) {
2180
+ propsNamesString += JSON.stringify(props[i]);
2181
+ if (i < l - 1) propsNamesString += ", ";
2182
+ }
2183
+ return propsNamesString + `]`;
2184
+ }
2185
+ function isComponentTag(tag) {
2186
+ return tag === "component" || tag === "Component";
2187
+ }
2188
+ function processSlotOutlet(node, context) {
2189
+ let slotName = `"default"`;
2190
+ let slotProps = void 0;
2191
+ const nonNameProps = [];
2192
+ for (let i = 0; i < node.props.length; i++) {
2193
+ const p = node.props[i];
2194
+ if (p.type === 6) {
2195
+ if (p.value) if (p.name === "name") slotName = JSON.stringify(p.value.content);else {
2196
+ p.name = camelize(p.name);
2197
+ nonNameProps.push(p);
2198
+ }
2199
+ } else if (p.name === "bind" && isStaticArgOf(p.arg, "name")) {
2200
+ if (p.exp) slotName = p.exp;else if (p.arg && p.arg.type === 4) slotName = p.exp = createSimpleExpression(camelize(p.arg.content), false, p.arg.loc);
2201
+ } else {
2202
+ if (p.name === "bind" && p.arg && isStaticExp(p.arg)) p.arg.content = camelize(p.arg.content);
2203
+ nonNameProps.push(p);
2204
+ }
2205
+ }
2206
+ if (nonNameProps.length > 0) {
2207
+ const {
2208
+ props,
2209
+ directives
2210
+ } = buildProps(node, context, nonNameProps, false, false);
2211
+ slotProps = props;
2212
+ if (directives.length) context.onError(createCompilerError(36, directives[0].loc));
2213
+ }
2214
+ return {
2215
+ slotName,
2216
+ slotProps
2217
+ };
2218
+ }
2219
+ function createTransformProps(props = []) {
2220
+ return {
2221
+ props
2222
+ };
2223
+ }
2224
+ function rewriteFilter(node, context) {
2225
+ if (node.type === 4) parseFilter(node, context);else for (let i = 0; i < node.children.length; i++) {
2226
+ const child = node.children[i];
2227
+ if (typeof child !== "object") continue;
2228
+ if (child.type === 4) parseFilter(child, context);else if (child.type === 8) rewriteFilter(node, context);else if (child.type === 5) rewriteFilter(child.content, context);
2229
+ }
2230
+ }
2231
+ function parseFilter(node, context) {
2232
+ const exp = node.content;
2233
+ let inSingle = false;
2234
+ let inDouble = false;
2235
+ let inTemplateString = false;
2236
+ let inRegex = false;
2237
+ let curly = 0;
2238
+ let square = 0;
2239
+ let paren = 0;
2240
+ let lastFilterIndex = 0;
2241
+ let c,
2242
+ prev,
2243
+ i,
2244
+ expression,
2245
+ filters = [];
2246
+ for (i = 0; i < exp.length; i++) {
2247
+ prev = c;
2248
+ c = exp.charCodeAt(i);
2249
+ if (inSingle) {
2250
+ if (c === 39 && prev !== 92) inSingle = false;
2251
+ } else if (inDouble) {
2252
+ if (c === 34 && prev !== 92) inDouble = false;
2253
+ } else if (inTemplateString) {
2254
+ if (c === 96 && prev !== 92) inTemplateString = false;
2255
+ } else if (inRegex) {
2256
+ if (c === 47 && prev !== 92) inRegex = false;
2257
+ } else if (c === 124 && exp.charCodeAt(i + 1) !== 124 && exp.charCodeAt(i - 1) !== 124 && !curly && !square && !paren) {
2258
+ if (expression === void 0) {
2259
+ lastFilterIndex = i + 1;
2260
+ expression = exp.slice(0, i).trim();
2261
+ } else pushFilter();
2262
+ } else {
2263
+ switch (c) {
2264
+ case 34:
2265
+ inDouble = true;
2266
+ break;
2267
+ case 39:
2268
+ inSingle = true;
2269
+ break;
2270
+ case 96:
2271
+ inTemplateString = true;
2272
+ break;
2273
+ case 40:
2274
+ paren++;
2275
+ break;
2276
+ case 41:
2277
+ paren--;
2278
+ break;
2279
+ case 91:
2280
+ square++;
2281
+ break;
2282
+ case 93:
2283
+ square--;
2284
+ break;
2285
+ case 123:
2286
+ curly++;
2287
+ break;
2288
+ case 125:
2289
+ curly--;
2290
+ break;
2291
+ }
2292
+ if (c === 47) {
2293
+ let j = i - 1;
2294
+ let p;
2295
+ for (; j >= 0; j--) {
2296
+ p = exp.charAt(j);
2297
+ if (p !== " ") break;
2298
+ }
2299
+ if (!p || !validDivisionCharRE.test(p)) inRegex = true;
2300
+ }
2301
+ }
2302
+ }
2303
+ if (expression === void 0) expression = exp.slice(0, i).trim();else if (lastFilterIndex !== 0) pushFilter();
2304
+ function pushFilter() {
2305
+ filters.push(exp.slice(lastFilterIndex, i).trim());
2306
+ lastFilterIndex = i + 1;
2307
+ }
2308
+ if (filters.length) {
2309
+ for (i = 0; i < filters.length; i++) expression = wrapFilter(expression, filters[i], context);
2310
+ node.content = expression;
2311
+ node.ast = void 0;
2312
+ }
2313
+ }
2314
+ function wrapFilter(exp, filter, context) {
2315
+ context.helper(RESOLVE_FILTER);
2316
+ const i = filter.indexOf("(");
2317
+ if (i < 0) {
2318
+ context.filters.add(filter);
2319
+ return `${toValidAssetId(filter, "filter")}(${exp})`;
2320
+ } else {
2321
+ const name = filter.slice(0, i);
2322
+ const args = filter.slice(i + 1);
2323
+ context.filters.add(name);
2324
+ return `${toValidAssetId(name, "filter")}(${exp}${args !== ")" ? "," + args : args}`;
2325
+ }
2326
+ }
2327
+ function getBaseTransformPreset(prefixIdentifiers) {
2328
+ return [[transformOnce, transformIf, transformMemo, transformFor, ...[transformFilter], ...[], transformSlotOutlet, transformElement, trackSlotScopes, transformText], {
2329
+ on: transformOn,
2330
+ bind: transformBind,
2331
+ model: transformModel
2332
+ }];
2333
+ }
2334
+ function baseCompile(source, options = {}) {
2335
+ const onError = options.onError || defaultOnError;
2336
+ const isModuleMode = options.mode === "module";
2337
+ if (options.prefixIdentifiers === true) onError(createCompilerError(47));else if (isModuleMode) onError(createCompilerError(48));
2338
+ const prefixIdentifiers = false;
2339
+ if (options.cacheHandlers) onError(createCompilerError(49));
2340
+ if (options.scopeId && !isModuleMode) onError(createCompilerError(50));
2341
+ const resolvedOptions = extend({}, options, {
2342
+ prefixIdentifiers
2343
+ });
2344
+ const ast = isString(source) ? baseParse(source, resolvedOptions) : source;
2345
+ const [nodeTransforms, directiveTransforms] = getBaseTransformPreset();
2346
+ transform(ast, extend({}, resolvedOptions, {
2347
+ nodeTransforms: [...nodeTransforms, ...(options.nodeTransforms || [])],
2348
+ directiveTransforms: extend({}, directiveTransforms, options.directiveTransforms || {})
2349
+ }));
2350
+ return generate(ast, resolvedOptions);
2351
+ }
2352
+ function decodeHtmlBrowser(raw, asAttr = false) {
2353
+ if (!decoder) decoder = document.createElement("div");
2354
+ if (asAttr) {
2355
+ decoder.innerHTML = `<div foo="${raw.replace(/"/g, "&quot;")}">`;
2356
+ return decoder.children[0].getAttribute("foo");
2357
+ } else {
2358
+ decoder.innerHTML = raw;
2359
+ return decoder.textContent;
2360
+ }
2361
+ }
2362
+ function createDOMCompilerError(code, loc) {
2363
+ return createCompilerError(code, loc, void 0);
2364
+ }
2365
+ function compile(src, options = {}) {
2366
+ return baseCompile(src, extend({}, parserOptions, options, {
2367
+ nodeTransforms: [ignoreSideEffectTags, ...DOMNodeTransforms, ...(options.nodeTransforms || [])],
2368
+ directiveTransforms: extend({}, DOMDirectiveTransforms, options.directiveTransforms || {}),
2369
+ transformHoist: null
2370
+ }));
2371
+ }
2372
+ function parse(template, options = {}) {
2373
+ return baseParse(template, extend({}, parserOptions, options));
2374
+ }
2375
+ return {
2376
+ setters: [function (_chunkLegacy001Js) {
2377
+ __toCommonJS = _chunkLegacy001Js.a;
2378
+ __esm = _chunkLegacy001Js.n;
2379
+ __export = _chunkLegacy001Js.r;
2380
+ __commonJS = _chunkLegacy001Js.t;
2381
+ }, function (_vueRuntimeEsmBundlerLegacy003Js) {
2382
+ toHandlerKey = _vueRuntimeEsmBundlerLegacy003Js.Cn;
2383
+ NOOP = _vueRuntimeEsmBundlerLegacy003Js.Jt;
2384
+ EMPTY_OBJ = _vueRuntimeEsmBundlerLegacy003Js.Kt;
2385
+ generateCodeFrame = _vueRuntimeEsmBundlerLegacy003Js.Qt;
2386
+ capitalize = _vueRuntimeEsmBundlerLegacy003Js.Xt;
2387
+ camelize = _vueRuntimeEsmBundlerLegacy003Js.Yt;
2388
+ extend = _vueRuntimeEsmBundlerLegacy003Js.Zt;
2389
+ init_runtime_dom_esm_bundler = _vueRuntimeEsmBundlerLegacy003Js.a;
2390
+ parseStringStyle = _vueRuntimeEsmBundlerLegacy003Js.bn;
2391
+ isObject = _vueRuntimeEsmBundlerLegacy003Js.cn;
2392
+ isReservedProp = _vueRuntimeEsmBundlerLegacy003Js.dn;
2393
+ isSVGTag = _vueRuntimeEsmBundlerLegacy003Js.fn;
2394
+ makeMap = _vueRuntimeEsmBundlerLegacy003Js.gn;
2395
+ isVoidTag = _vueRuntimeEsmBundlerLegacy003Js.hn;
2396
+ isOn = _vueRuntimeEsmBundlerLegacy003Js.ln;
2397
+ isSymbol = _vueRuntimeEsmBundlerLegacy003Js.mn;
2398
+ isArray = _vueRuntimeEsmBundlerLegacy003Js.nn;
2399
+ isHTMLTag = _vueRuntimeEsmBundlerLegacy003Js.on;
2400
+ isString = _vueRuntimeEsmBundlerLegacy003Js.pn;
2401
+ NO = _vueRuntimeEsmBundlerLegacy003Js.qt;
2402
+ isBuiltInDirective = _vueRuntimeEsmBundlerLegacy003Js.rn;
2403
+ runtime_dom_esm_bundler_exports = _vueRuntimeEsmBundlerLegacy003Js.s;
2404
+ isMathMLTag = _vueRuntimeEsmBundlerLegacy003Js.sn;
2405
+ init_shared_esm_bundler = _vueRuntimeEsmBundlerLegacy003Js.tn;
2406
+ shared_esm_bundler_exports = _vueRuntimeEsmBundlerLegacy003Js.xn;
2407
+ }],
2408
+ execute: function () {
2409
+ init_compiler_core_esm_bundler = __esm({
2410
+ "../../../node_modules/.pnpm/@vue+compiler-core@3.5.13/node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js": () => {
2411
+ init_shared_esm_bundler();
2412
+ FRAGMENT = Symbol(``);
2413
+ TELEPORT = Symbol(``);
2414
+ SUSPENSE = Symbol(``);
2415
+ KEEP_ALIVE = Symbol(``);
2416
+ BASE_TRANSITION = Symbol(``);
2417
+ OPEN_BLOCK = Symbol(``);
2418
+ CREATE_BLOCK = Symbol(``);
2419
+ CREATE_ELEMENT_BLOCK = Symbol(``);
2420
+ CREATE_VNODE = Symbol(``);
2421
+ CREATE_ELEMENT_VNODE = Symbol(``);
2422
+ CREATE_COMMENT = Symbol(``);
2423
+ CREATE_TEXT = Symbol(``);
2424
+ CREATE_STATIC = Symbol(``);
2425
+ RESOLVE_COMPONENT = Symbol(``);
2426
+ RESOLVE_DYNAMIC_COMPONENT = Symbol(``);
2427
+ RESOLVE_DIRECTIVE = Symbol(``);
2428
+ RESOLVE_FILTER = Symbol(``);
2429
+ WITH_DIRECTIVES = Symbol(``);
2430
+ RENDER_LIST = Symbol(``);
2431
+ RENDER_SLOT = Symbol(``);
2432
+ CREATE_SLOTS = Symbol(``);
2433
+ TO_DISPLAY_STRING = Symbol(``);
2434
+ MERGE_PROPS = Symbol(``);
2435
+ NORMALIZE_CLASS = Symbol(``);
2436
+ NORMALIZE_STYLE = Symbol(``);
2437
+ NORMALIZE_PROPS = Symbol(``);
2438
+ GUARD_REACTIVE_PROPS = Symbol(``);
2439
+ TO_HANDLERS = Symbol(``);
2440
+ CAMELIZE = Symbol(``);
2441
+ CAPITALIZE = Symbol(``);
2442
+ TO_HANDLER_KEY = Symbol(``);
2443
+ SET_BLOCK_TRACKING = Symbol(``);
2444
+ PUSH_SCOPE_ID = Symbol(``);
2445
+ POP_SCOPE_ID = Symbol(``);
2446
+ WITH_CTX = Symbol(``);
2447
+ UNREF = Symbol(``);
2448
+ IS_REF = Symbol(``);
2449
+ WITH_MEMO = Symbol(``);
2450
+ IS_MEMO_SAME = Symbol(``);
2451
+ helperNameMap = {
2452
+ [FRAGMENT]: `Fragment`,
2453
+ [TELEPORT]: `Teleport`,
2454
+ [SUSPENSE]: `Suspense`,
2455
+ [KEEP_ALIVE]: `KeepAlive`,
2456
+ [BASE_TRANSITION]: `BaseTransition`,
2457
+ [OPEN_BLOCK]: `openBlock`,
2458
+ [CREATE_BLOCK]: `createBlock`,
2459
+ [CREATE_ELEMENT_BLOCK]: `createElementBlock`,
2460
+ [CREATE_VNODE]: `createVNode`,
2461
+ [CREATE_ELEMENT_VNODE]: `createElementVNode`,
2462
+ [CREATE_COMMENT]: `createCommentVNode`,
2463
+ [CREATE_TEXT]: `createTextVNode`,
2464
+ [CREATE_STATIC]: `createStaticVNode`,
2465
+ [RESOLVE_COMPONENT]: `resolveComponent`,
2466
+ [RESOLVE_DYNAMIC_COMPONENT]: `resolveDynamicComponent`,
2467
+ [RESOLVE_DIRECTIVE]: `resolveDirective`,
2468
+ [RESOLVE_FILTER]: `resolveFilter`,
2469
+ [WITH_DIRECTIVES]: `withDirectives`,
2470
+ [RENDER_LIST]: `renderList`,
2471
+ [RENDER_SLOT]: `renderSlot`,
2472
+ [CREATE_SLOTS]: `createSlots`,
2473
+ [TO_DISPLAY_STRING]: `toDisplayString`,
2474
+ [MERGE_PROPS]: `mergeProps`,
2475
+ [NORMALIZE_CLASS]: `normalizeClass`,
2476
+ [NORMALIZE_STYLE]: `normalizeStyle`,
2477
+ [NORMALIZE_PROPS]: `normalizeProps`,
2478
+ [GUARD_REACTIVE_PROPS]: `guardReactiveProps`,
2479
+ [TO_HANDLERS]: `toHandlers`,
2480
+ [CAMELIZE]: `camelize`,
2481
+ [CAPITALIZE]: `capitalize`,
2482
+ [TO_HANDLER_KEY]: `toHandlerKey`,
2483
+ [SET_BLOCK_TRACKING]: `setBlockTracking`,
2484
+ [PUSH_SCOPE_ID]: `pushScopeId`,
2485
+ [POP_SCOPE_ID]: `popScopeId`,
2486
+ [WITH_CTX]: `withCtx`,
2487
+ [UNREF]: `unref`,
2488
+ [IS_REF]: `isRef`,
2489
+ [WITH_MEMO]: `withMemo`,
2490
+ [IS_MEMO_SAME]: `isMemoSame`
2491
+ };
2492
+ Namespaces = {
2493
+ "HTML": 0,
2494
+ "0": "HTML",
2495
+ "SVG": 1,
2496
+ "1": "SVG",
2497
+ "MATH_ML": 2,
2498
+ "2": "MATH_ML"
2499
+ };
2500
+ NodeTypes = {
2501
+ "ROOT": 0,
2502
+ "0": "ROOT",
2503
+ "ELEMENT": 1,
2504
+ "1": "ELEMENT",
2505
+ "TEXT": 2,
2506
+ "2": "TEXT",
2507
+ "COMMENT": 3,
2508
+ "3": "COMMENT",
2509
+ "SIMPLE_EXPRESSION": 4,
2510
+ "4": "SIMPLE_EXPRESSION",
2511
+ "INTERPOLATION": 5,
2512
+ "5": "INTERPOLATION",
2513
+ "ATTRIBUTE": 6,
2514
+ "6": "ATTRIBUTE",
2515
+ "DIRECTIVE": 7,
2516
+ "7": "DIRECTIVE",
2517
+ "COMPOUND_EXPRESSION": 8,
2518
+ "8": "COMPOUND_EXPRESSION",
2519
+ "IF": 9,
2520
+ "9": "IF",
2521
+ "IF_BRANCH": 10,
2522
+ "10": "IF_BRANCH",
2523
+ "FOR": 11,
2524
+ "11": "FOR",
2525
+ "TEXT_CALL": 12,
2526
+ "12": "TEXT_CALL",
2527
+ "VNODE_CALL": 13,
2528
+ "13": "VNODE_CALL",
2529
+ "JS_CALL_EXPRESSION": 14,
2530
+ "14": "JS_CALL_EXPRESSION",
2531
+ "JS_OBJECT_EXPRESSION": 15,
2532
+ "15": "JS_OBJECT_EXPRESSION",
2533
+ "JS_PROPERTY": 16,
2534
+ "16": "JS_PROPERTY",
2535
+ "JS_ARRAY_EXPRESSION": 17,
2536
+ "17": "JS_ARRAY_EXPRESSION",
2537
+ "JS_FUNCTION_EXPRESSION": 18,
2538
+ "18": "JS_FUNCTION_EXPRESSION",
2539
+ "JS_CONDITIONAL_EXPRESSION": 19,
2540
+ "19": "JS_CONDITIONAL_EXPRESSION",
2541
+ "JS_CACHE_EXPRESSION": 20,
2542
+ "20": "JS_CACHE_EXPRESSION",
2543
+ "JS_BLOCK_STATEMENT": 21,
2544
+ "21": "JS_BLOCK_STATEMENT",
2545
+ "JS_TEMPLATE_LITERAL": 22,
2546
+ "22": "JS_TEMPLATE_LITERAL",
2547
+ "JS_IF_STATEMENT": 23,
2548
+ "23": "JS_IF_STATEMENT",
2549
+ "JS_ASSIGNMENT_EXPRESSION": 24,
2550
+ "24": "JS_ASSIGNMENT_EXPRESSION",
2551
+ "JS_SEQUENCE_EXPRESSION": 25,
2552
+ "25": "JS_SEQUENCE_EXPRESSION",
2553
+ "JS_RETURN_STATEMENT": 26,
2554
+ "26": "JS_RETURN_STATEMENT"
2555
+ };
2556
+ ElementTypes = {
2557
+ "ELEMENT": 0,
2558
+ "0": "ELEMENT",
2559
+ "COMPONENT": 1,
2560
+ "1": "COMPONENT",
2561
+ "SLOT": 2,
2562
+ "2": "SLOT",
2563
+ "TEMPLATE": 3,
2564
+ "3": "TEMPLATE"
2565
+ };
2566
+ ConstantTypes = {
2567
+ "NOT_CONSTANT": 0,
2568
+ "0": "NOT_CONSTANT",
2569
+ "CAN_SKIP_PATCH": 1,
2570
+ "1": "CAN_SKIP_PATCH",
2571
+ "CAN_CACHE": 2,
2572
+ "2": "CAN_CACHE",
2573
+ "CAN_STRINGIFY": 3,
2574
+ "3": "CAN_STRINGIFY"
2575
+ };
2576
+ locStub = {
2577
+ start: {
2578
+ line: 1,
2579
+ column: 1,
2580
+ offset: 0
2581
+ },
2582
+ end: {
2583
+ line: 1,
2584
+ column: 1,
2585
+ offset: 0
2586
+ },
2587
+ source: ""
2588
+ };
2589
+ defaultDelimitersOpen = new Uint8Array([123, 123]);
2590
+ defaultDelimitersClose = new Uint8Array([125, 125]);
2591
+ Sequences = {
2592
+ Cdata: new Uint8Array([67, 68, 65, 84, 65, 91]),
2593
+ CdataEnd: new Uint8Array([93, 93, 62]),
2594
+ CommentEnd: new Uint8Array([45, 45, 62]),
2595
+ ScriptEnd: new Uint8Array([60, 47, 115, 99, 114, 105, 112, 116]),
2596
+ StyleEnd: new Uint8Array([60, 47, 115, 116, 121, 108, 101]),
2597
+ TitleEnd: new Uint8Array([60, 47, 116, 105, 116, 108, 101]),
2598
+ TextareaEnd: new Uint8Array([60, 47, 116, 101, 120, 116, 97, 114, 101, 97])
2599
+ };
2600
+ Tokenizer = class {
2601
+ constructor(stack$1, cbs) {
2602
+ this.stack = stack$1;
2603
+ this.cbs = cbs;
2604
+ /** The current state the tokenizer is in. */
2605
+ this.state = 1;
2606
+ /** The read buffer. */
2607
+ this.buffer = "";
2608
+ /** The beginning of the section that is currently being read. */
2609
+ this.sectionStart = 0;
2610
+ /** The index within the buffer that we are currently looking at. */
2611
+ this.index = 0;
2612
+ /** The start of the last entity. */
2613
+ this.entityStart = 0;
2614
+ /** Some behavior, eg. when decoding entities, is done while we are in another state. This keeps track of the other state type. */
2615
+ this.baseState = 1;
2616
+ /** For special parsing behavior inside of script and style tags. */
2617
+ this.inRCDATA = false;
2618
+ /** For disabling RCDATA tags handling */
2619
+ this.inXML = false;
2620
+ /** For disabling interpolation parsing in v-pre */
2621
+ this.inVPre = false;
2622
+ /** Record newline positions for fast line / column calculation */
2623
+ this.newlines = [];
2624
+ this.mode = 0;
2625
+ this.delimiterOpen = defaultDelimitersOpen;
2626
+ this.delimiterClose = defaultDelimitersClose;
2627
+ this.delimiterIndex = -1;
2628
+ this.currentSequence = void 0;
2629
+ this.sequenceIndex = 0;
2630
+ }
2631
+ get inSFCRoot() {
2632
+ return this.mode === 2 && this.stack.length === 0;
2633
+ }
2634
+ reset() {
2635
+ this.state = 1;
2636
+ this.mode = 0;
2637
+ this.buffer = "";
2638
+ this.sectionStart = 0;
2639
+ this.index = 0;
2640
+ this.baseState = 1;
2641
+ this.inRCDATA = false;
2642
+ this.currentSequence = void 0;
2643
+ this.newlines.length = 0;
2644
+ this.delimiterOpen = defaultDelimitersOpen;
2645
+ this.delimiterClose = defaultDelimitersClose;
2646
+ }
2647
+ /**
2648
+ * Generate Position object with line / column information using recorded
2649
+ * newline positions. We know the index is always going to be an already
2650
+ * processed index, so all the newlines up to this index should have been
2651
+ * recorded.
2652
+ */
2653
+ getPos(index) {
2654
+ let line = 1;
2655
+ let column = index + 1;
2656
+ for (let i = this.newlines.length - 1; i >= 0; i--) {
2657
+ const newlineIndex = this.newlines[i];
2658
+ if (index > newlineIndex) {
2659
+ line = i + 2;
2660
+ column = index - newlineIndex;
2661
+ break;
2662
+ }
2663
+ }
2664
+ return {
2665
+ column,
2666
+ line,
2667
+ offset: index
2668
+ };
2669
+ }
2670
+ peek() {
2671
+ return this.buffer.charCodeAt(this.index + 1);
2672
+ }
2673
+ stateText(c) {
2674
+ if (c === 60) {
2675
+ if (this.index > this.sectionStart) this.cbs.ontext(this.sectionStart, this.index);
2676
+ this.state = 5;
2677
+ this.sectionStart = this.index;
2678
+ } else if (!this.inVPre && c === this.delimiterOpen[0]) {
2679
+ this.state = 2;
2680
+ this.delimiterIndex = 0;
2681
+ this.stateInterpolationOpen(c);
2682
+ }
2683
+ }
2684
+ stateInterpolationOpen(c) {
2685
+ if (c === this.delimiterOpen[this.delimiterIndex]) {
2686
+ if (this.delimiterIndex === this.delimiterOpen.length - 1) {
2687
+ const start = this.index + 1 - this.delimiterOpen.length;
2688
+ if (start > this.sectionStart) this.cbs.ontext(this.sectionStart, start);
2689
+ this.state = 3;
2690
+ this.sectionStart = start;
2691
+ } else this.delimiterIndex++;
2692
+ } else if (this.inRCDATA) {
2693
+ this.state = 32;
2694
+ this.stateInRCDATA(c);
2695
+ } else {
2696
+ this.state = 1;
2697
+ this.stateText(c);
2698
+ }
2699
+ }
2700
+ stateInterpolation(c) {
2701
+ if (c === this.delimiterClose[0]) {
2702
+ this.state = 4;
2703
+ this.delimiterIndex = 0;
2704
+ this.stateInterpolationClose(c);
2705
+ }
2706
+ }
2707
+ stateInterpolationClose(c) {
2708
+ if (c === this.delimiterClose[this.delimiterIndex]) {
2709
+ if (this.delimiterIndex === this.delimiterClose.length - 1) {
2710
+ this.cbs.oninterpolation(this.sectionStart, this.index + 1);
2711
+ if (this.inRCDATA) this.state = 32;else this.state = 1;
2712
+ this.sectionStart = this.index + 1;
2713
+ } else this.delimiterIndex++;
2714
+ } else {
2715
+ this.state = 3;
2716
+ this.stateInterpolation(c);
2717
+ }
2718
+ }
2719
+ stateSpecialStartSequence(c) {
2720
+ const isEnd = this.sequenceIndex === this.currentSequence.length;
2721
+ if (!(isEnd ? isEndOfTagSection(c) : (c | 32) === this.currentSequence[this.sequenceIndex])) this.inRCDATA = false;else if (!isEnd) {
2722
+ this.sequenceIndex++;
2723
+ return;
2724
+ }
2725
+ this.sequenceIndex = 0;
2726
+ this.state = 6;
2727
+ this.stateInTagName(c);
2728
+ }
2729
+ /** Look for an end tag. For <title> and <textarea>, also decode entities. */
2730
+ stateInRCDATA(c) {
2731
+ if (this.sequenceIndex === this.currentSequence.length) {
2732
+ if (c === 62 || isWhitespace(c)) {
2733
+ const endOfText = this.index - this.currentSequence.length;
2734
+ if (this.sectionStart < endOfText) {
2735
+ const actualIndex = this.index;
2736
+ this.index = endOfText;
2737
+ this.cbs.ontext(this.sectionStart, endOfText);
2738
+ this.index = actualIndex;
2739
+ }
2740
+ this.sectionStart = endOfText + 2;
2741
+ this.stateInClosingTagName(c);
2742
+ this.inRCDATA = false;
2743
+ return;
2744
+ }
2745
+ this.sequenceIndex = 0;
2746
+ }
2747
+ if ((c | 32) === this.currentSequence[this.sequenceIndex]) this.sequenceIndex += 1;else if (this.sequenceIndex === 0) {
2748
+ if (this.currentSequence === Sequences.TitleEnd || this.currentSequence === Sequences.TextareaEnd && !this.inSFCRoot) {
2749
+ if (!this.inVPre && c === this.delimiterOpen[0]) {
2750
+ this.state = 2;
2751
+ this.delimiterIndex = 0;
2752
+ this.stateInterpolationOpen(c);
2753
+ }
2754
+ } else if (this.fastForwardTo(60)) this.sequenceIndex = 1;
2755
+ } else this.sequenceIndex = Number(c === 60);
2756
+ }
2757
+ stateCDATASequence(c) {
2758
+ if (c === Sequences.Cdata[this.sequenceIndex]) {
2759
+ if (++this.sequenceIndex === Sequences.Cdata.length) {
2760
+ this.state = 28;
2761
+ this.currentSequence = Sequences.CdataEnd;
2762
+ this.sequenceIndex = 0;
2763
+ this.sectionStart = this.index + 1;
2764
+ }
2765
+ } else {
2766
+ this.sequenceIndex = 0;
2767
+ this.state = 23;
2768
+ this.stateInDeclaration(c);
2769
+ }
2770
+ }
2771
+ /**
2772
+ * When we wait for one specific character, we can speed things up
2773
+ * by skipping through the buffer until we find it.
2774
+ *
2775
+ * @returns Whether the character was found.
2776
+ */
2777
+ fastForwardTo(c) {
2778
+ while (++this.index < this.buffer.length) {
2779
+ const cc = this.buffer.charCodeAt(this.index);
2780
+ if (cc === 10) this.newlines.push(this.index);
2781
+ if (cc === c) return true;
2782
+ }
2783
+ this.index = this.buffer.length - 1;
2784
+ return false;
2785
+ }
2786
+ /**
2787
+ * Comments and CDATA end with `-->` and `]]>`.
2788
+ *
2789
+ * Their common qualities are:
2790
+ * - Their end sequences have a distinct character they start with.
2791
+ * - That character is then repeated, so we have to check multiple repeats.
2792
+ * - All characters but the start character of the sequence can be skipped.
2793
+ */
2794
+ stateInCommentLike(c) {
2795
+ if (c === this.currentSequence[this.sequenceIndex]) {
2796
+ if (++this.sequenceIndex === this.currentSequence.length) {
2797
+ if (this.currentSequence === Sequences.CdataEnd) this.cbs.oncdata(this.sectionStart, this.index - 2);else this.cbs.oncomment(this.sectionStart, this.index - 2);
2798
+ this.sequenceIndex = 0;
2799
+ this.sectionStart = this.index + 1;
2800
+ this.state = 1;
2801
+ }
2802
+ } else if (this.sequenceIndex === 0) {
2803
+ if (this.fastForwardTo(this.currentSequence[0])) this.sequenceIndex = 1;
2804
+ } else if (c !== this.currentSequence[this.sequenceIndex - 1]) this.sequenceIndex = 0;
2805
+ }
2806
+ startSpecial(sequence, offset) {
2807
+ this.enterRCDATA(sequence, offset);
2808
+ this.state = 31;
2809
+ }
2810
+ enterRCDATA(sequence, offset) {
2811
+ this.inRCDATA = true;
2812
+ this.currentSequence = sequence;
2813
+ this.sequenceIndex = offset;
2814
+ }
2815
+ stateBeforeTagName(c) {
2816
+ if (c === 33) {
2817
+ this.state = 22;
2818
+ this.sectionStart = this.index + 1;
2819
+ } else if (c === 63) {
2820
+ this.state = 24;
2821
+ this.sectionStart = this.index + 1;
2822
+ } else if (isTagStartChar(c)) {
2823
+ this.sectionStart = this.index;
2824
+ if (this.mode === 0) this.state = 6;else if (this.inSFCRoot) this.state = 34;else if (!this.inXML) {
2825
+ if (c === 116) this.state = 30;else this.state = c === 115 ? 29 : 6;
2826
+ } else this.state = 6;
2827
+ } else if (c === 47) this.state = 8;else {
2828
+ this.state = 1;
2829
+ this.stateText(c);
2830
+ }
2831
+ }
2832
+ stateInTagName(c) {
2833
+ if (isEndOfTagSection(c)) this.handleTagName(c);
2834
+ }
2835
+ stateInSFCRootTagName(c) {
2836
+ if (isEndOfTagSection(c)) {
2837
+ const tag = this.buffer.slice(this.sectionStart, this.index);
2838
+ if (tag !== "template") this.enterRCDATA(toCharCodes(`</` + tag), 0);
2839
+ this.handleTagName(c);
2840
+ }
2841
+ }
2842
+ handleTagName(c) {
2843
+ this.cbs.onopentagname(this.sectionStart, this.index);
2844
+ this.sectionStart = -1;
2845
+ this.state = 11;
2846
+ this.stateBeforeAttrName(c);
2847
+ }
2848
+ stateBeforeClosingTagName(c) {
2849
+ if (isWhitespace(c)) ;else if (c === 62) {
2850
+ this.state = 1;
2851
+ this.sectionStart = this.index + 1;
2852
+ } else {
2853
+ this.state = isTagStartChar(c) ? 9 : 27;
2854
+ this.sectionStart = this.index;
2855
+ }
2856
+ }
2857
+ stateInClosingTagName(c) {
2858
+ if (c === 62 || isWhitespace(c)) {
2859
+ this.cbs.onclosetag(this.sectionStart, this.index);
2860
+ this.sectionStart = -1;
2861
+ this.state = 10;
2862
+ this.stateAfterClosingTagName(c);
2863
+ }
2864
+ }
2865
+ stateAfterClosingTagName(c) {
2866
+ if (c === 62) {
2867
+ this.state = 1;
2868
+ this.sectionStart = this.index + 1;
2869
+ }
2870
+ }
2871
+ stateBeforeAttrName(c) {
2872
+ if (c === 62) {
2873
+ this.cbs.onopentagend(this.index);
2874
+ if (this.inRCDATA) this.state = 32;else this.state = 1;
2875
+ this.sectionStart = this.index + 1;
2876
+ } else if (c === 47) this.state = 7;else if (c === 60 && this.peek() === 47) {
2877
+ this.cbs.onopentagend(this.index);
2878
+ this.state = 5;
2879
+ this.sectionStart = this.index;
2880
+ } else if (!isWhitespace(c)) this.handleAttrStart(c);
2881
+ }
2882
+ handleAttrStart(c) {
2883
+ if (c === 118 && this.peek() === 45) {
2884
+ this.state = 13;
2885
+ this.sectionStart = this.index;
2886
+ } else if (c === 46 || c === 58 || c === 64 || c === 35) {
2887
+ this.cbs.ondirname(this.index, this.index + 1);
2888
+ this.state = 14;
2889
+ this.sectionStart = this.index + 1;
2890
+ } else {
2891
+ this.state = 12;
2892
+ this.sectionStart = this.index;
2893
+ }
2894
+ }
2895
+ stateInSelfClosingTag(c) {
2896
+ if (c === 62) {
2897
+ this.cbs.onselfclosingtag(this.index);
2898
+ this.state = 1;
2899
+ this.sectionStart = this.index + 1;
2900
+ this.inRCDATA = false;
2901
+ } else if (!isWhitespace(c)) {
2902
+ this.state = 11;
2903
+ this.stateBeforeAttrName(c);
2904
+ }
2905
+ }
2906
+ stateInAttrName(c) {
2907
+ if (c === 61 || isEndOfTagSection(c)) {
2908
+ this.cbs.onattribname(this.sectionStart, this.index);
2909
+ this.handleAttrNameEnd(c);
2910
+ }
2911
+ }
2912
+ stateInDirName(c) {
2913
+ if (c === 61 || isEndOfTagSection(c)) {
2914
+ this.cbs.ondirname(this.sectionStart, this.index);
2915
+ this.handleAttrNameEnd(c);
2916
+ } else if (c === 58) {
2917
+ this.cbs.ondirname(this.sectionStart, this.index);
2918
+ this.state = 14;
2919
+ this.sectionStart = this.index + 1;
2920
+ } else if (c === 46) {
2921
+ this.cbs.ondirname(this.sectionStart, this.index);
2922
+ this.state = 16;
2923
+ this.sectionStart = this.index + 1;
2924
+ }
2925
+ }
2926
+ stateInDirArg(c) {
2927
+ if (c === 61 || isEndOfTagSection(c)) {
2928
+ this.cbs.ondirarg(this.sectionStart, this.index);
2929
+ this.handleAttrNameEnd(c);
2930
+ } else if (c === 91) this.state = 15;else if (c === 46) {
2931
+ this.cbs.ondirarg(this.sectionStart, this.index);
2932
+ this.state = 16;
2933
+ this.sectionStart = this.index + 1;
2934
+ }
2935
+ }
2936
+ stateInDynamicDirArg(c) {
2937
+ if (c === 93) this.state = 14;else if (c === 61 || isEndOfTagSection(c)) {
2938
+ this.cbs.ondirarg(this.sectionStart, this.index + 1);
2939
+ this.handleAttrNameEnd(c);
2940
+ }
2941
+ }
2942
+ stateInDirModifier(c) {
2943
+ if (c === 61 || isEndOfTagSection(c)) {
2944
+ this.cbs.ondirmodifier(this.sectionStart, this.index);
2945
+ this.handleAttrNameEnd(c);
2946
+ } else if (c === 46) {
2947
+ this.cbs.ondirmodifier(this.sectionStart, this.index);
2948
+ this.sectionStart = this.index + 1;
2949
+ }
2950
+ }
2951
+ handleAttrNameEnd(c) {
2952
+ this.sectionStart = this.index;
2953
+ this.state = 17;
2954
+ this.cbs.onattribnameend(this.index);
2955
+ this.stateAfterAttrName(c);
2956
+ }
2957
+ stateAfterAttrName(c) {
2958
+ if (c === 61) this.state = 18;else if (c === 47 || c === 62) {
2959
+ this.cbs.onattribend(0, this.sectionStart);
2960
+ this.sectionStart = -1;
2961
+ this.state = 11;
2962
+ this.stateBeforeAttrName(c);
2963
+ } else if (!isWhitespace(c)) {
2964
+ this.cbs.onattribend(0, this.sectionStart);
2965
+ this.handleAttrStart(c);
2966
+ }
2967
+ }
2968
+ stateBeforeAttrValue(c) {
2969
+ if (c === 34) {
2970
+ this.state = 19;
2971
+ this.sectionStart = this.index + 1;
2972
+ } else if (c === 39) {
2973
+ this.state = 20;
2974
+ this.sectionStart = this.index + 1;
2975
+ } else if (!isWhitespace(c)) {
2976
+ this.sectionStart = this.index;
2977
+ this.state = 21;
2978
+ this.stateInAttrValueNoQuotes(c);
2979
+ }
2980
+ }
2981
+ handleInAttrValue(c, quote) {
2982
+ if (c === quote || this.fastForwardTo(quote)) {
2983
+ this.cbs.onattribdata(this.sectionStart, this.index);
2984
+ this.sectionStart = -1;
2985
+ this.cbs.onattribend(quote === 34 ? 3 : 2, this.index + 1);
2986
+ this.state = 11;
2987
+ }
2988
+ }
2989
+ stateInAttrValueDoubleQuotes(c) {
2990
+ this.handleInAttrValue(c, 34);
2991
+ }
2992
+ stateInAttrValueSingleQuotes(c) {
2993
+ this.handleInAttrValue(c, 39);
2994
+ }
2995
+ stateInAttrValueNoQuotes(c) {
2996
+ if (isWhitespace(c) || c === 62) {
2997
+ this.cbs.onattribdata(this.sectionStart, this.index);
2998
+ this.sectionStart = -1;
2999
+ this.cbs.onattribend(1, this.index);
3000
+ this.state = 11;
3001
+ this.stateBeforeAttrName(c);
3002
+ } else if (c === 39 || c === 60 || c === 61 || c === 96) this.cbs.onerr(18, this.index);
3003
+ }
3004
+ stateBeforeDeclaration(c) {
3005
+ if (c === 91) {
3006
+ this.state = 26;
3007
+ this.sequenceIndex = 0;
3008
+ } else this.state = c === 45 ? 25 : 23;
3009
+ }
3010
+ stateInDeclaration(c) {
3011
+ if (c === 62 || this.fastForwardTo(62)) {
3012
+ this.state = 1;
3013
+ this.sectionStart = this.index + 1;
3014
+ }
3015
+ }
3016
+ stateInProcessingInstruction(c) {
3017
+ if (c === 62 || this.fastForwardTo(62)) {
3018
+ this.cbs.onprocessinginstruction(this.sectionStart, this.index);
3019
+ this.state = 1;
3020
+ this.sectionStart = this.index + 1;
3021
+ }
3022
+ }
3023
+ stateBeforeComment(c) {
3024
+ if (c === 45) {
3025
+ this.state = 28;
3026
+ this.currentSequence = Sequences.CommentEnd;
3027
+ this.sequenceIndex = 2;
3028
+ this.sectionStart = this.index + 1;
3029
+ } else this.state = 23;
3030
+ }
3031
+ stateInSpecialComment(c) {
3032
+ if (c === 62 || this.fastForwardTo(62)) {
3033
+ this.cbs.oncomment(this.sectionStart, this.index);
3034
+ this.state = 1;
3035
+ this.sectionStart = this.index + 1;
3036
+ }
3037
+ }
3038
+ stateBeforeSpecialS(c) {
3039
+ if (c === Sequences.ScriptEnd[3]) this.startSpecial(Sequences.ScriptEnd, 4);else if (c === Sequences.StyleEnd[3]) this.startSpecial(Sequences.StyleEnd, 4);else {
3040
+ this.state = 6;
3041
+ this.stateInTagName(c);
3042
+ }
3043
+ }
3044
+ stateBeforeSpecialT(c) {
3045
+ if (c === Sequences.TitleEnd[3]) this.startSpecial(Sequences.TitleEnd, 4);else if (c === Sequences.TextareaEnd[3]) this.startSpecial(Sequences.TextareaEnd, 4);else {
3046
+ this.state = 6;
3047
+ this.stateInTagName(c);
3048
+ }
3049
+ }
3050
+ startEntity() {}
3051
+ stateInEntity() {}
3052
+ /**
3053
+ * Iterates through the buffer, calling the function corresponding to the current state.
3054
+ *
3055
+ * States that are more likely to be hit are higher up, as a performance improvement.
3056
+ */
3057
+ parse(input) {
3058
+ this.buffer = input;
3059
+ while (this.index < this.buffer.length) {
3060
+ const c = this.buffer.charCodeAt(this.index);
3061
+ if (c === 10) this.newlines.push(this.index);
3062
+ switch (this.state) {
3063
+ case 1:
3064
+ this.stateText(c);
3065
+ break;
3066
+ case 2:
3067
+ this.stateInterpolationOpen(c);
3068
+ break;
3069
+ case 3:
3070
+ this.stateInterpolation(c);
3071
+ break;
3072
+ case 4:
3073
+ this.stateInterpolationClose(c);
3074
+ break;
3075
+ case 31:
3076
+ this.stateSpecialStartSequence(c);
3077
+ break;
3078
+ case 32:
3079
+ this.stateInRCDATA(c);
3080
+ break;
3081
+ case 26:
3082
+ this.stateCDATASequence(c);
3083
+ break;
3084
+ case 19:
3085
+ this.stateInAttrValueDoubleQuotes(c);
3086
+ break;
3087
+ case 12:
3088
+ this.stateInAttrName(c);
3089
+ break;
3090
+ case 13:
3091
+ this.stateInDirName(c);
3092
+ break;
3093
+ case 14:
3094
+ this.stateInDirArg(c);
3095
+ break;
3096
+ case 15:
3097
+ this.stateInDynamicDirArg(c);
3098
+ break;
3099
+ case 16:
3100
+ this.stateInDirModifier(c);
3101
+ break;
3102
+ case 28:
3103
+ this.stateInCommentLike(c);
3104
+ break;
3105
+ case 27:
3106
+ this.stateInSpecialComment(c);
3107
+ break;
3108
+ case 11:
3109
+ this.stateBeforeAttrName(c);
3110
+ break;
3111
+ case 6:
3112
+ this.stateInTagName(c);
3113
+ break;
3114
+ case 34:
3115
+ this.stateInSFCRootTagName(c);
3116
+ break;
3117
+ case 9:
3118
+ this.stateInClosingTagName(c);
3119
+ break;
3120
+ case 5:
3121
+ this.stateBeforeTagName(c);
3122
+ break;
3123
+ case 17:
3124
+ this.stateAfterAttrName(c);
3125
+ break;
3126
+ case 20:
3127
+ this.stateInAttrValueSingleQuotes(c);
3128
+ break;
3129
+ case 18:
3130
+ this.stateBeforeAttrValue(c);
3131
+ break;
3132
+ case 8:
3133
+ this.stateBeforeClosingTagName(c);
3134
+ break;
3135
+ case 10:
3136
+ this.stateAfterClosingTagName(c);
3137
+ break;
3138
+ case 29:
3139
+ this.stateBeforeSpecialS(c);
3140
+ break;
3141
+ case 30:
3142
+ this.stateBeforeSpecialT(c);
3143
+ break;
3144
+ case 21:
3145
+ this.stateInAttrValueNoQuotes(c);
3146
+ break;
3147
+ case 7:
3148
+ this.stateInSelfClosingTag(c);
3149
+ break;
3150
+ case 23:
3151
+ this.stateInDeclaration(c);
3152
+ break;
3153
+ case 22:
3154
+ this.stateBeforeDeclaration(c);
3155
+ break;
3156
+ case 25:
3157
+ this.stateBeforeComment(c);
3158
+ break;
3159
+ case 24:
3160
+ this.stateInProcessingInstruction(c);
3161
+ break;
3162
+ case 33:
3163
+ this.stateInEntity();
3164
+ break;
3165
+ }
3166
+ this.index++;
3167
+ }
3168
+ this.cleanup();
3169
+ this.finish();
3170
+ }
3171
+ /**
3172
+ * Remove data that has already been consumed from the buffer.
3173
+ */
3174
+ cleanup() {
3175
+ if (this.sectionStart !== this.index) {
3176
+ if (this.state === 1 || this.state === 32 && this.sequenceIndex === 0) {
3177
+ this.cbs.ontext(this.sectionStart, this.index);
3178
+ this.sectionStart = this.index;
3179
+ } else if (this.state === 19 || this.state === 20 || this.state === 21) {
3180
+ this.cbs.onattribdata(this.sectionStart, this.index);
3181
+ this.sectionStart = this.index;
3182
+ }
3183
+ }
3184
+ }
3185
+ finish() {
3186
+ this.handleTrailingData();
3187
+ this.cbs.onend();
3188
+ }
3189
+ /** Handle any trailing data. */
3190
+ handleTrailingData() {
3191
+ const endIndex = this.buffer.length;
3192
+ if (this.sectionStart >= endIndex) return;
3193
+ if (this.state === 28) {
3194
+ if (this.currentSequence === Sequences.CdataEnd) this.cbs.oncdata(this.sectionStart, endIndex);else this.cbs.oncomment(this.sectionStart, endIndex);
3195
+ } else if (this.state === 6 || this.state === 11 || this.state === 18 || this.state === 17 || this.state === 12 || this.state === 13 || this.state === 14 || this.state === 15 || this.state === 16 || this.state === 20 || this.state === 19 || this.state === 21 || this.state === 9) ;else this.cbs.ontext(this.sectionStart, endIndex);
3196
+ }
3197
+ emitCodePoint(cp, consumed) {}
3198
+ };
3199
+ CompilerDeprecationTypes = {
3200
+ "COMPILER_IS_ON_ELEMENT": "COMPILER_IS_ON_ELEMENT",
3201
+ "COMPILER_V_BIND_SYNC": "COMPILER_V_BIND_SYNC",
3202
+ "COMPILER_V_BIND_OBJECT_ORDER": "COMPILER_V_BIND_OBJECT_ORDER",
3203
+ "COMPILER_V_ON_NATIVE": "COMPILER_V_ON_NATIVE",
3204
+ "COMPILER_V_IF_V_FOR_PRECEDENCE": "COMPILER_V_IF_V_FOR_PRECEDENCE",
3205
+ "COMPILER_NATIVE_TEMPLATE": "COMPILER_NATIVE_TEMPLATE",
3206
+ "COMPILER_INLINE_TEMPLATE": "COMPILER_INLINE_TEMPLATE",
3207
+ "COMPILER_FILTERS": "COMPILER_FILTERS"
3208
+ };
3209
+ deprecationData = {
3210
+ ["COMPILER_IS_ON_ELEMENT"]: {
3211
+ message: `Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".`,
3212
+ link: `https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html`
3213
+ },
3214
+ ["COMPILER_V_BIND_SYNC"]: {
3215
+ message: key => `.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${key}.sync\` should be changed to \`v-model:${key}\`.`,
3216
+ link: `https://v3-migration.vuejs.org/breaking-changes/v-model.html`
3217
+ },
3218
+ ["COMPILER_V_BIND_OBJECT_ORDER"]: {
3219
+ message: `v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.`,
3220
+ link: `https://v3-migration.vuejs.org/breaking-changes/v-bind.html`
3221
+ },
3222
+ ["COMPILER_V_ON_NATIVE"]: {
3223
+ message: `.native modifier for v-on has been removed as is no longer necessary.`,
3224
+ link: `https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html`
3225
+ },
3226
+ ["COMPILER_V_IF_V_FOR_PRECEDENCE"]: {
3227
+ message: `v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.`,
3228
+ link: `https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html`
3229
+ },
3230
+ ["COMPILER_NATIVE_TEMPLATE"]: {
3231
+ message: `<template> with no special directives will render as a native template element instead of its inner content in Vue 3.`
3232
+ },
3233
+ ["COMPILER_INLINE_TEMPLATE"]: {
3234
+ message: `"inline-template" has been removed in Vue 3.`,
3235
+ link: `https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html`
3236
+ },
3237
+ ["COMPILER_FILTERS"]: {
3238
+ message: `filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.`,
3239
+ link: `https://v3-migration.vuejs.org/breaking-changes/filters.html`
3240
+ }
3241
+ };
3242
+ ErrorCodes = {
3243
+ "ABRUPT_CLOSING_OF_EMPTY_COMMENT": 0,
3244
+ "0": "ABRUPT_CLOSING_OF_EMPTY_COMMENT",
3245
+ "CDATA_IN_HTML_CONTENT": 1,
3246
+ "1": "CDATA_IN_HTML_CONTENT",
3247
+ "DUPLICATE_ATTRIBUTE": 2,
3248
+ "2": "DUPLICATE_ATTRIBUTE",
3249
+ "END_TAG_WITH_ATTRIBUTES": 3,
3250
+ "3": "END_TAG_WITH_ATTRIBUTES",
3251
+ "END_TAG_WITH_TRAILING_SOLIDUS": 4,
3252
+ "4": "END_TAG_WITH_TRAILING_SOLIDUS",
3253
+ "EOF_BEFORE_TAG_NAME": 5,
3254
+ "5": "EOF_BEFORE_TAG_NAME",
3255
+ "EOF_IN_CDATA": 6,
3256
+ "6": "EOF_IN_CDATA",
3257
+ "EOF_IN_COMMENT": 7,
3258
+ "7": "EOF_IN_COMMENT",
3259
+ "EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT": 8,
3260
+ "8": "EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT",
3261
+ "EOF_IN_TAG": 9,
3262
+ "9": "EOF_IN_TAG",
3263
+ "INCORRECTLY_CLOSED_COMMENT": 10,
3264
+ "10": "INCORRECTLY_CLOSED_COMMENT",
3265
+ "INCORRECTLY_OPENED_COMMENT": 11,
3266
+ "11": "INCORRECTLY_OPENED_COMMENT",
3267
+ "INVALID_FIRST_CHARACTER_OF_TAG_NAME": 12,
3268
+ "12": "INVALID_FIRST_CHARACTER_OF_TAG_NAME",
3269
+ "MISSING_ATTRIBUTE_VALUE": 13,
3270
+ "13": "MISSING_ATTRIBUTE_VALUE",
3271
+ "MISSING_END_TAG_NAME": 14,
3272
+ "14": "MISSING_END_TAG_NAME",
3273
+ "MISSING_WHITESPACE_BETWEEN_ATTRIBUTES": 15,
3274
+ "15": "MISSING_WHITESPACE_BETWEEN_ATTRIBUTES",
3275
+ "NESTED_COMMENT": 16,
3276
+ "16": "NESTED_COMMENT",
3277
+ "UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME": 17,
3278
+ "17": "UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME",
3279
+ "UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE": 18,
3280
+ "18": "UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE",
3281
+ "UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME": 19,
3282
+ "19": "UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME",
3283
+ "UNEXPECTED_NULL_CHARACTER": 20,
3284
+ "20": "UNEXPECTED_NULL_CHARACTER",
3285
+ "UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME": 21,
3286
+ "21": "UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME",
3287
+ "UNEXPECTED_SOLIDUS_IN_TAG": 22,
3288
+ "22": "UNEXPECTED_SOLIDUS_IN_TAG",
3289
+ "X_INVALID_END_TAG": 23,
3290
+ "23": "X_INVALID_END_TAG",
3291
+ "X_MISSING_END_TAG": 24,
3292
+ "24": "X_MISSING_END_TAG",
3293
+ "X_MISSING_INTERPOLATION_END": 25,
3294
+ "25": "X_MISSING_INTERPOLATION_END",
3295
+ "X_MISSING_DIRECTIVE_NAME": 26,
3296
+ "26": "X_MISSING_DIRECTIVE_NAME",
3297
+ "X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END": 27,
3298
+ "27": "X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END",
3299
+ "X_V_IF_NO_EXPRESSION": 28,
3300
+ "28": "X_V_IF_NO_EXPRESSION",
3301
+ "X_V_IF_SAME_KEY": 29,
3302
+ "29": "X_V_IF_SAME_KEY",
3303
+ "X_V_ELSE_NO_ADJACENT_IF": 30,
3304
+ "30": "X_V_ELSE_NO_ADJACENT_IF",
3305
+ "X_V_FOR_NO_EXPRESSION": 31,
3306
+ "31": "X_V_FOR_NO_EXPRESSION",
3307
+ "X_V_FOR_MALFORMED_EXPRESSION": 32,
3308
+ "32": "X_V_FOR_MALFORMED_EXPRESSION",
3309
+ "X_V_FOR_TEMPLATE_KEY_PLACEMENT": 33,
3310
+ "33": "X_V_FOR_TEMPLATE_KEY_PLACEMENT",
3311
+ "X_V_BIND_NO_EXPRESSION": 34,
3312
+ "34": "X_V_BIND_NO_EXPRESSION",
3313
+ "X_V_ON_NO_EXPRESSION": 35,
3314
+ "35": "X_V_ON_NO_EXPRESSION",
3315
+ "X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET": 36,
3316
+ "36": "X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET",
3317
+ "X_V_SLOT_MIXED_SLOT_USAGE": 37,
3318
+ "37": "X_V_SLOT_MIXED_SLOT_USAGE",
3319
+ "X_V_SLOT_DUPLICATE_SLOT_NAMES": 38,
3320
+ "38": "X_V_SLOT_DUPLICATE_SLOT_NAMES",
3321
+ "X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN": 39,
3322
+ "39": "X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN",
3323
+ "X_V_SLOT_MISPLACED": 40,
3324
+ "40": "X_V_SLOT_MISPLACED",
3325
+ "X_V_MODEL_NO_EXPRESSION": 41,
3326
+ "41": "X_V_MODEL_NO_EXPRESSION",
3327
+ "X_V_MODEL_MALFORMED_EXPRESSION": 42,
3328
+ "42": "X_V_MODEL_MALFORMED_EXPRESSION",
3329
+ "X_V_MODEL_ON_SCOPE_VARIABLE": 43,
3330
+ "43": "X_V_MODEL_ON_SCOPE_VARIABLE",
3331
+ "X_V_MODEL_ON_PROPS": 44,
3332
+ "44": "X_V_MODEL_ON_PROPS",
3333
+ "X_INVALID_EXPRESSION": 45,
3334
+ "45": "X_INVALID_EXPRESSION",
3335
+ "X_KEEP_ALIVE_INVALID_CHILDREN": 46,
3336
+ "46": "X_KEEP_ALIVE_INVALID_CHILDREN",
3337
+ "X_PREFIX_ID_NOT_SUPPORTED": 47,
3338
+ "47": "X_PREFIX_ID_NOT_SUPPORTED",
3339
+ "X_MODULE_MODE_NOT_SUPPORTED": 48,
3340
+ "48": "X_MODULE_MODE_NOT_SUPPORTED",
3341
+ "X_CACHE_HANDLER_NOT_SUPPORTED": 49,
3342
+ "49": "X_CACHE_HANDLER_NOT_SUPPORTED",
3343
+ "X_SCOPE_ID_NOT_SUPPORTED": 50,
3344
+ "50": "X_SCOPE_ID_NOT_SUPPORTED",
3345
+ "X_VNODE_HOOKS": 51,
3346
+ "51": "X_VNODE_HOOKS",
3347
+ "X_V_BIND_INVALID_SAME_NAME_ARGUMENT": 52,
3348
+ "52": "X_V_BIND_INVALID_SAME_NAME_ARGUMENT",
3349
+ "__EXTEND_POINT__": 53,
3350
+ "53": "__EXTEND_POINT__"
3351
+ };
3352
+ errorMessages = {
3353
+ [0]: "Illegal comment.",
3354
+ [1]: "CDATA section is allowed only in XML context.",
3355
+ [2]: "Duplicate attribute.",
3356
+ [3]: "End tag cannot have attributes.",
3357
+ [4]: "Illegal '/' in tags.",
3358
+ [5]: "Unexpected EOF in tag.",
3359
+ [6]: "Unexpected EOF in CDATA section.",
3360
+ [7]: "Unexpected EOF in comment.",
3361
+ [8]: "Unexpected EOF in script.",
3362
+ [9]: "Unexpected EOF in tag.",
3363
+ [10]: "Incorrectly closed comment.",
3364
+ [11]: "Incorrectly opened comment.",
3365
+ [12]: "Illegal tag name. Use '&lt;' to print '<'.",
3366
+ [13]: "Attribute value was expected.",
3367
+ [14]: "End tag name was expected.",
3368
+ [15]: "Whitespace was expected.",
3369
+ [16]: "Unexpected '<!--' in comment.",
3370
+ [17]: `Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,
3371
+ [18]: "Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",
3372
+ [19]: "Attribute name cannot start with '='.",
3373
+ [21]: "'<?' is allowed only in XML context.",
3374
+ [20]: `Unexpected null character.`,
3375
+ [22]: "Illegal '/' in tags.",
3376
+ [23]: "Invalid end tag.",
3377
+ [24]: "Element is missing end tag.",
3378
+ [25]: "Interpolation end sign was not found.",
3379
+ [27]: "End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",
3380
+ [26]: "Legal directive name was expected.",
3381
+ [28]: `v-if/v-else-if is missing expression.`,
3382
+ [29]: `v-if/else branches must use unique keys.`,
3383
+ [30]: `v-else/v-else-if has no adjacent v-if or v-else-if.`,
3384
+ [31]: `v-for is missing expression.`,
3385
+ [32]: `v-for has invalid expression.`,
3386
+ [33]: `<template v-for> key should be placed on the <template> tag.`,
3387
+ [34]: `v-bind is missing expression.`,
3388
+ [52]: `v-bind with same-name shorthand only allows static argument.`,
3389
+ [35]: `v-on is missing expression.`,
3390
+ [36]: `Unexpected custom directive on <slot> outlet.`,
3391
+ [37]: `Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.`,
3392
+ [38]: `Duplicate slot names found. `,
3393
+ [39]: `Extraneous children found when component already has explicitly named default slot. These children will be ignored.`,
3394
+ [40]: `v-slot can only be used on components or <template> tags.`,
3395
+ [41]: `v-model is missing expression.`,
3396
+ [42]: `v-model value must be a valid JavaScript member expression.`,
3397
+ [43]: `v-model cannot be used on v-for or v-slot scope variables because they are not writable.`,
3398
+ [44]: `v-model cannot be used on a prop, because local prop bindings are not writable.
3399
+ Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,
3400
+ [45]: `Error parsing JavaScript expression: `,
3401
+ [46]: `<KeepAlive> expects exactly one child component.`,
3402
+ [51]: `@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.`,
3403
+ [47]: `"prefixIdentifiers" option is not supported in this build of compiler.`,
3404
+ [48]: `ES module mode is not supported in this build of compiler.`,
3405
+ [49]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
3406
+ [50]: `"scopeId" option is only supported in module mode.`,
3407
+ [53]: ``
3408
+ };
3409
+ isFunctionType = node => {
3410
+ return /Function(?:Expression|Declaration)$|Method$/.test(node.type);
3411
+ };
3412
+ isStaticProperty = node => node && (node.type === "ObjectProperty" || node.type === "ObjectMethod") && !node.computed;
3413
+ isStaticPropertyKey = (node, parent) => isStaticProperty(parent) && parent.key === node;
3414
+ TS_NODE_TYPES = ["TSAsExpression", "TSTypeAssertion", "TSNonNullExpression", "TSInstantiationExpression", "TSSatisfiesExpression"];
3415
+ isStaticExp = p => p.type === 4 && p.isStatic;
3416
+ nonIdentifierRE = /^\d|[^\$\w\xA0-\uFFFF]/;
3417
+ isSimpleIdentifier = name => !nonIdentifierRE.test(name);
3418
+ validFirstIdentCharRE = /[A-Za-z_$\xA0-\uFFFF]/;
3419
+ validIdentCharRE = /[\.\?\w$\xA0-\uFFFF]/;
3420
+ whitespaceRE = /\s+[.[]\s*|\s*[.[]\s+/g;
3421
+ getExpSource = exp => exp.type === 4 ? exp.content : exp.loc.source;
3422
+ isMemberExpressionBrowser = exp => {
3423
+ const path = getExpSource(exp).trim().replace(whitespaceRE, s => s.trim());
3424
+ let state = 0;
3425
+ let stateStack = [];
3426
+ let currentOpenBracketCount = 0;
3427
+ let currentOpenParensCount = 0;
3428
+ let currentStringType = null;
3429
+ for (let i = 0; i < path.length; i++) {
3430
+ const char = path.charAt(i);
3431
+ switch (state) {
3432
+ case 0:
3433
+ if (char === "[") {
3434
+ stateStack.push(state);
3435
+ state = 1;
3436
+ currentOpenBracketCount++;
3437
+ } else if (char === "(") {
3438
+ stateStack.push(state);
3439
+ state = 2;
3440
+ currentOpenParensCount++;
3441
+ } else if (!(i === 0 ? validFirstIdentCharRE : validIdentCharRE).test(char)) return false;
3442
+ break;
3443
+ case 1:
3444
+ if (char === `'` || char === `"` || char === "`") {
3445
+ stateStack.push(state);
3446
+ state = 3;
3447
+ currentStringType = char;
3448
+ } else if (char === `[`) currentOpenBracketCount++;else if (char === `]`) {
3449
+ if (! --currentOpenBracketCount) state = stateStack.pop();
3450
+ }
3451
+ break;
3452
+ case 2:
3453
+ if (char === `'` || char === `"` || char === "`") {
3454
+ stateStack.push(state);
3455
+ state = 3;
3456
+ currentStringType = char;
3457
+ } else if (char === `(`) currentOpenParensCount++;else if (char === `)`) {
3458
+ if (i === path.length - 1) return false;
3459
+ if (! --currentOpenParensCount) state = stateStack.pop();
3460
+ }
3461
+ break;
3462
+ case 3:
3463
+ if (char === currentStringType) {
3464
+ state = stateStack.pop();
3465
+ currentStringType = null;
3466
+ }
3467
+ break;
3468
+ }
3469
+ }
3470
+ return !currentOpenBracketCount && !currentOpenParensCount;
3471
+ };
3472
+ isMemberExpressionNode = NOOP;
3473
+ isMemberExpression = isMemberExpressionBrowser;
3474
+ fnExpRE = /^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/;
3475
+ isFnExpressionBrowser = exp => fnExpRE.test(getExpSource(exp));
3476
+ isFnExpressionNode = NOOP;
3477
+ isFnExpression = isFnExpressionBrowser;
3478
+ propsHelperSet = /* @__PURE__ */new Set([NORMALIZE_PROPS, GUARD_REACTIVE_PROPS]);
3479
+ forAliasRE = /([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;
3480
+ defaultParserOptions = {
3481
+ parseMode: "base",
3482
+ ns: 0,
3483
+ delimiters: [`{{`, `}}`],
3484
+ getNamespace: () => 0,
3485
+ isVoidTag: NO,
3486
+ isPreTag: NO,
3487
+ isIgnoreNewlineTag: NO,
3488
+ isCustomElement: NO,
3489
+ onError: defaultOnError,
3490
+ onWarn: defaultOnWarn,
3491
+ comments: false,
3492
+ prefixIdentifiers: false
3493
+ };
3494
+ currentOptions = defaultParserOptions;
3495
+ currentRoot = null;
3496
+ currentInput = "";
3497
+ currentOpenTag = null;
3498
+ currentProp = null;
3499
+ currentAttrValue = "";
3500
+ currentAttrStartIndex = -1;
3501
+ currentAttrEndIndex = -1;
3502
+ inPre = 0;
3503
+ inVPre = false;
3504
+ currentVPreBoundary = null;
3505
+ stack = [];
3506
+ tokenizer = new Tokenizer(stack, {
3507
+ onerr: emitError,
3508
+ ontext(start, end) {
3509
+ onText(getSlice(start, end), start, end);
3510
+ },
3511
+ ontextentity(char, start, end) {
3512
+ onText(char, start, end);
3513
+ },
3514
+ oninterpolation(start, end) {
3515
+ if (inVPre) return onText(getSlice(start, end), start, end);
3516
+ let innerStart = start + tokenizer.delimiterOpen.length;
3517
+ let innerEnd = end - tokenizer.delimiterClose.length;
3518
+ while (isWhitespace(currentInput.charCodeAt(innerStart))) innerStart++;
3519
+ while (isWhitespace(currentInput.charCodeAt(innerEnd - 1))) innerEnd--;
3520
+ let exp = getSlice(innerStart, innerEnd);
3521
+ if (exp.includes("&")) exp = currentOptions.decodeEntities(exp, false);
3522
+ addNode({
3523
+ type: 5,
3524
+ content: createExp(exp, false, getLoc(innerStart, innerEnd)),
3525
+ loc: getLoc(start, end)
3526
+ });
3527
+ },
3528
+ onopentagname(start, end) {
3529
+ const name = getSlice(start, end);
3530
+ currentOpenTag = {
3531
+ type: 1,
3532
+ tag: name,
3533
+ ns: currentOptions.getNamespace(name, stack[0], currentOptions.ns),
3534
+ tagType: 0,
3535
+ props: [],
3536
+ children: [],
3537
+ loc: getLoc(start - 1, end),
3538
+ codegenNode: void 0
3539
+ };
3540
+ },
3541
+ onopentagend(end) {
3542
+ endOpenTag(end);
3543
+ },
3544
+ onclosetag(start, end) {
3545
+ const name = getSlice(start, end);
3546
+ if (!currentOptions.isVoidTag(name)) {
3547
+ let found = false;
3548
+ for (let i = 0; i < stack.length; i++) if (stack[i].tag.toLowerCase() === name.toLowerCase()) {
3549
+ found = true;
3550
+ if (i > 0) emitError(24, stack[0].loc.start.offset);
3551
+ for (let j = 0; j <= i; j++) onCloseTag(stack.shift(), end, j < i);
3552
+ break;
3553
+ }
3554
+ if (!found) emitError(23, backTrack(start, 60));
3555
+ }
3556
+ },
3557
+ onselfclosingtag(end) {
3558
+ const name = currentOpenTag.tag;
3559
+ currentOpenTag.isSelfClosing = true;
3560
+ endOpenTag(end);
3561
+ if (stack[0] && stack[0].tag === name) onCloseTag(stack.shift(), end);
3562
+ },
3563
+ onattribname(start, end) {
3564
+ currentProp = {
3565
+ type: 6,
3566
+ name: getSlice(start, end),
3567
+ nameLoc: getLoc(start, end),
3568
+ value: void 0,
3569
+ loc: getLoc(start)
3570
+ };
3571
+ },
3572
+ ondirname(start, end) {
3573
+ const raw = getSlice(start, end);
3574
+ const name = raw === "." || raw === ":" ? "bind" : raw === "@" ? "on" : raw === "#" ? "slot" : raw.slice(2);
3575
+ if (!inVPre && name === "") emitError(26, start);
3576
+ if (inVPre || name === "") currentProp = {
3577
+ type: 6,
3578
+ name: raw,
3579
+ nameLoc: getLoc(start, end),
3580
+ value: void 0,
3581
+ loc: getLoc(start)
3582
+ };else {
3583
+ currentProp = {
3584
+ type: 7,
3585
+ name,
3586
+ rawName: raw,
3587
+ exp: void 0,
3588
+ arg: void 0,
3589
+ modifiers: raw === "." ? [createSimpleExpression("prop")] : [],
3590
+ loc: getLoc(start)
3591
+ };
3592
+ if (name === "pre") {
3593
+ inVPre = tokenizer.inVPre = true;
3594
+ currentVPreBoundary = currentOpenTag;
3595
+ const props = currentOpenTag.props;
3596
+ for (let i = 0; i < props.length; i++) if (props[i].type === 7) props[i] = dirToAttr(props[i]);
3597
+ }
3598
+ }
3599
+ },
3600
+ ondirarg(start, end) {
3601
+ if (start === end) return;
3602
+ const arg = getSlice(start, end);
3603
+ if (inVPre) {
3604
+ currentProp.name += arg;
3605
+ setLocEnd(currentProp.nameLoc, end);
3606
+ } else {
3607
+ const isStatic = arg[0] !== `[`;
3608
+ currentProp.arg = createExp(isStatic ? arg : arg.slice(1, -1), isStatic, getLoc(start, end), isStatic ? 3 : 0);
3609
+ }
3610
+ },
3611
+ ondirmodifier(start, end) {
3612
+ const mod = getSlice(start, end);
3613
+ if (inVPre) {
3614
+ currentProp.name += "." + mod;
3615
+ setLocEnd(currentProp.nameLoc, end);
3616
+ } else if (currentProp.name === "slot") {
3617
+ const arg = currentProp.arg;
3618
+ if (arg) {
3619
+ arg.content += "." + mod;
3620
+ setLocEnd(arg.loc, end);
3621
+ }
3622
+ } else {
3623
+ const exp = createSimpleExpression(mod, true, getLoc(start, end));
3624
+ currentProp.modifiers.push(exp);
3625
+ }
3626
+ },
3627
+ onattribdata(start, end) {
3628
+ currentAttrValue += getSlice(start, end);
3629
+ if (currentAttrStartIndex < 0) currentAttrStartIndex = start;
3630
+ currentAttrEndIndex = end;
3631
+ },
3632
+ onattribentity(char, start, end) {
3633
+ currentAttrValue += char;
3634
+ if (currentAttrStartIndex < 0) currentAttrStartIndex = start;
3635
+ currentAttrEndIndex = end;
3636
+ },
3637
+ onattribnameend(end) {
3638
+ const start = currentProp.loc.start.offset;
3639
+ const name = getSlice(start, end);
3640
+ if (currentProp.type === 7) currentProp.rawName = name;
3641
+ if (currentOpenTag.props.some(p => (p.type === 7 ? p.rawName : p.name) === name)) emitError(2, start);
3642
+ },
3643
+ onattribend(quote, end) {
3644
+ if (currentOpenTag && currentProp) {
3645
+ setLocEnd(currentProp.loc, end);
3646
+ if (quote !== 0) {
3647
+ if (currentAttrValue.includes("&")) currentAttrValue = currentOptions.decodeEntities(currentAttrValue, true);
3648
+ if (currentProp.type === 6) {
3649
+ if (currentProp.name === "class") currentAttrValue = condense(currentAttrValue).trim();
3650
+ if (quote === 1 && !currentAttrValue) emitError(13, end);
3651
+ currentProp.value = {
3652
+ type: 2,
3653
+ content: currentAttrValue,
3654
+ loc: quote === 1 ? getLoc(currentAttrStartIndex, currentAttrEndIndex) : getLoc(currentAttrStartIndex - 1, currentAttrEndIndex + 1)
3655
+ };
3656
+ if (tokenizer.inSFCRoot && currentOpenTag.tag === "template" && currentProp.name === "lang" && currentAttrValue && currentAttrValue !== "html") tokenizer.enterRCDATA(toCharCodes(`</template`), 0);
3657
+ } else {
3658
+ currentProp.exp = createExp(currentAttrValue, false, getLoc(currentAttrStartIndex, currentAttrEndIndex), 0, 0);
3659
+ if (currentProp.name === "for") currentProp.forParseResult = parseForExpression(currentProp.exp);
3660
+ let syncIndex = -1;
3661
+ if (currentProp.name === "bind" && (syncIndex = currentProp.modifiers.findIndex(mod => mod.content === "sync")) > -1 && checkCompatEnabled("COMPILER_V_BIND_SYNC", currentOptions, currentProp.loc, currentProp.rawName)) {
3662
+ currentProp.name = "model";
3663
+ currentProp.modifiers.splice(syncIndex, 1);
3664
+ }
3665
+ }
3666
+ }
3667
+ if (currentProp.type !== 7 || currentProp.name !== "pre") currentOpenTag.props.push(currentProp);
3668
+ }
3669
+ currentAttrValue = "";
3670
+ currentAttrStartIndex = currentAttrEndIndex = -1;
3671
+ },
3672
+ oncomment(start, end) {
3673
+ if (currentOptions.comments) addNode({
3674
+ type: 3,
3675
+ content: getSlice(start, end),
3676
+ loc: getLoc(start - 4, end + 3)
3677
+ });
3678
+ },
3679
+ onend() {
3680
+ const end = currentInput.length;
3681
+ for (let index = 0; index < stack.length; index++) {
3682
+ onCloseTag(stack[index], end - 1);
3683
+ emitError(24, stack[index].loc.start.offset);
3684
+ }
3685
+ },
3686
+ oncdata(start, end) {
3687
+ if (stack[0].ns !== 0) onText(getSlice(start, end), start, end);else emitError(1, start - 9);
3688
+ },
3689
+ onprocessinginstruction(start) {
3690
+ if ((stack[0] ? stack[0].ns : currentOptions.ns) === 0) emitError(21, start - 1);
3691
+ }
3692
+ });
3693
+ forIteratorRE = /,([^,\}\]]*)(?:,([^,\}\]]*))?$/;
3694
+ stripParensRE = /^\(|\)$/g;
3695
+ specialTemplateDir = /* @__PURE__ */new Set(["if", "else", "else-if", "for", "slot"]);
3696
+ windowsNewlineRE = /\r\n/g;
3697
+ allowHoistedHelperSet = /* @__PURE__ */new Set([NORMALIZE_CLASS, NORMALIZE_STYLE, NORMALIZE_PROPS, GUARD_REACTIVE_PROPS]);
3698
+ PURE_ANNOTATION = `/*@__PURE__*/`;
3699
+ aliasHelper = s => `${helperNameMap[s]}: _${helperNameMap[s]}`;
3700
+ "" + "arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b");
3701
+ transformExpression = (node, context) => {
3702
+ if (node.type === 5) node.content = processExpression(node.content, context);else if (node.type === 1) {
3703
+ const memo = findDir(node, "memo");
3704
+ for (let i = 0; i < node.props.length; i++) {
3705
+ const dir = node.props[i];
3706
+ if (dir.type === 7 && dir.name !== "for") {
3707
+ const exp = dir.exp;
3708
+ const arg = dir.arg;
3709
+ if (exp && exp.type === 4 && !(dir.name === "on" && arg) && !(memo && arg && arg.type === 4 && arg.content === "key")) dir.exp = processExpression(exp, context, dir.name === "slot");
3710
+ if (arg && arg.type === 4 && !arg.isStatic) dir.arg = processExpression(arg, context);
3711
+ }
3712
+ }
3713
+ }
3714
+ };
3715
+ transformIf = createStructuralDirectiveTransform(/^(if|else|else-if)$/, (node, dir, context) => {
3716
+ return processIf(node, dir, context, (ifNode, branch, isRoot) => {
3717
+ const siblings = context.parent.children;
3718
+ let i = siblings.indexOf(ifNode);
3719
+ let key = 0;
3720
+ while (i-- >= 0) {
3721
+ const sibling = siblings[i];
3722
+ if (sibling && sibling.type === 9) key += sibling.branches.length;
3723
+ }
3724
+ return () => {
3725
+ if (isRoot) ifNode.codegenNode = createCodegenNodeForBranch(branch, key, context);else {
3726
+ const parentCondition = getParentCondition(ifNode.codegenNode);
3727
+ parentCondition.alternate = createCodegenNodeForBranch(branch, key + ifNode.branches.length - 1, context);
3728
+ }
3729
+ };
3730
+ });
3731
+ });
3732
+ transformBind = (dir, _node, context) => {
3733
+ const {
3734
+ modifiers,
3735
+ loc
3736
+ } = dir;
3737
+ const arg = dir.arg;
3738
+ let {
3739
+ exp
3740
+ } = dir;
3741
+ if (exp && exp.type === 4 && !exp.content.trim()) exp = void 0;
3742
+ if (!exp) {
3743
+ if (arg.type !== 4 || !arg.isStatic) {
3744
+ context.onError(createCompilerError(52, arg.loc));
3745
+ return {
3746
+ props: [createObjectProperty(arg, createSimpleExpression("", true, loc))]
3747
+ };
3748
+ }
3749
+ transformBindShorthand(dir);
3750
+ exp = dir.exp;
3751
+ }
3752
+ if (arg.type !== 4) {
3753
+ arg.children.unshift(`(`);
3754
+ arg.children.push(`) || ""`);
3755
+ } else if (!arg.isStatic) arg.content = `${arg.content} || ""`;
3756
+ if (modifiers.some(mod => mod.content === "camel")) if (arg.type === 4) {
3757
+ if (arg.isStatic) arg.content = camelize(arg.content);else arg.content = `${context.helperString(CAMELIZE)}(${arg.content})`;
3758
+ } else {
3759
+ arg.children.unshift(`${context.helperString(CAMELIZE)}(`);
3760
+ arg.children.push(`)`);
3761
+ }
3762
+ if (!context.inSSR) {
3763
+ if (modifiers.some(mod => mod.content === "prop")) injectPrefix(arg, ".");
3764
+ if (modifiers.some(mod => mod.content === "attr")) injectPrefix(arg, "^");
3765
+ }
3766
+ return {
3767
+ props: [createObjectProperty(arg, exp)]
3768
+ };
3769
+ };
3770
+ transformBindShorthand = (dir, context) => {
3771
+ const arg = dir.arg;
3772
+ dir.exp = createSimpleExpression(camelize(arg.content), false, arg.loc);
3773
+ };
3774
+ injectPrefix = (arg, prefix) => {
3775
+ if (arg.type === 4) {
3776
+ if (arg.isStatic) arg.content = prefix + arg.content;else arg.content = `\`${prefix}\${${arg.content}}\``;
3777
+ } else {
3778
+ arg.children.unshift(`'${prefix}' + (`);
3779
+ arg.children.push(`)`);
3780
+ }
3781
+ };
3782
+ transformFor = createStructuralDirectiveTransform("for", (node, dir, context) => {
3783
+ const {
3784
+ helper,
3785
+ removeHelper
3786
+ } = context;
3787
+ return processFor(node, dir, context, forNode => {
3788
+ const renderExp = createCallExpression(helper(RENDER_LIST), [forNode.source]);
3789
+ const isTemplate = isTemplateNode(node);
3790
+ const memo = findDir(node, "memo");
3791
+ const keyProp = findProp(node, `key`, false, true);
3792
+ if (keyProp && keyProp.type === 7 && !keyProp.exp) transformBindShorthand(keyProp);
3793
+ let keyExp = keyProp && (keyProp.type === 6 ? keyProp.value ? createSimpleExpression(keyProp.value.content, true) : void 0 : keyProp.exp);
3794
+ const keyProperty = keyProp && keyExp ? createObjectProperty(`key`, keyExp) : null;
3795
+ const isStableFragment = forNode.source.type === 4 && forNode.source.constType > 0;
3796
+ const fragmentFlag = isStableFragment ? 64 : keyProp ? 128 : 256;
3797
+ forNode.codegenNode = createVNodeCall(context, helper(FRAGMENT), void 0, renderExp, fragmentFlag, void 0, void 0, true, !isStableFragment, false, node.loc);
3798
+ return () => {
3799
+ let childBlock;
3800
+ const {
3801
+ children
3802
+ } = forNode;
3803
+ const needFragmentWrapper = children.length !== 1 || children[0].type !== 1;
3804
+ const slotOutlet = isSlotOutlet(node) ? node : isTemplate && node.children.length === 1 && isSlotOutlet(node.children[0]) ? node.children[0] : null;
3805
+ if (slotOutlet) {
3806
+ childBlock = slotOutlet.codegenNode;
3807
+ if (isTemplate && keyProperty) injectProp(childBlock, keyProperty, context);
3808
+ } else if (needFragmentWrapper) childBlock = createVNodeCall(context, helper(FRAGMENT), keyProperty ? createObjectExpression([keyProperty]) : void 0, node.children, 64, void 0, void 0, true, void 0, false);else {
3809
+ childBlock = children[0].codegenNode;
3810
+ if (isTemplate && keyProperty) injectProp(childBlock, keyProperty, context);
3811
+ if (childBlock.isBlock !== !isStableFragment) if (childBlock.isBlock) {
3812
+ removeHelper(OPEN_BLOCK);
3813
+ removeHelper(getVNodeBlockHelper(context.inSSR, childBlock.isComponent));
3814
+ } else removeHelper(getVNodeHelper(context.inSSR, childBlock.isComponent));
3815
+ childBlock.isBlock = !isStableFragment;
3816
+ if (childBlock.isBlock) {
3817
+ helper(OPEN_BLOCK);
3818
+ helper(getVNodeBlockHelper(context.inSSR, childBlock.isComponent));
3819
+ } else helper(getVNodeHelper(context.inSSR, childBlock.isComponent));
3820
+ }
3821
+ if (memo) {
3822
+ const loop = createFunctionExpression(createForLoopParams(forNode.parseResult, [createSimpleExpression(`_cached`)]));
3823
+ loop.body = createBlockStatement([createCompoundExpression([`const _memo = (`, memo.exp, `)`]), createCompoundExpression([`if (_cached`, ...(keyExp ? [` && _cached.key === `, keyExp] : []), ` && ${context.helperString(IS_MEMO_SAME)}(_cached, _memo)) return _cached`]), createCompoundExpression([`const _item = `, childBlock]), createSimpleExpression(`_item.memo = _memo`), createSimpleExpression(`return _item`)]);
3824
+ renderExp.arguments.push(loop, createSimpleExpression(`_cache`), createSimpleExpression(String(context.cached.length)));
3825
+ context.cached.push(null);
3826
+ } else renderExp.arguments.push(createFunctionExpression(createForLoopParams(forNode.parseResult), childBlock, true));
3827
+ };
3828
+ });
3829
+ });
3830
+ defaultFallback = createSimpleExpression(`undefined`, false);
3831
+ trackSlotScopes = (node, context) => {
3832
+ if (node.type === 1 && (node.tagType === 1 || node.tagType === 3)) {
3833
+ const vSlot = findDir(node, "slot");
3834
+ if (vSlot) {
3835
+ vSlot.exp;
3836
+ context.scopes.vSlot++;
3837
+ return () => {
3838
+ context.scopes.vSlot--;
3839
+ };
3840
+ }
3841
+ }
3842
+ };
3843
+ trackVForSlotScopes = (node, context) => {
3844
+ let vFor;
3845
+ if (isTemplateNode(node) && node.props.some(isVSlot) && (vFor = findDir(node, "for"))) {
3846
+ const result = vFor.forParseResult;
3847
+ if (result) {
3848
+ finalizeForParseResult(result, context);
3849
+ const {
3850
+ value,
3851
+ key,
3852
+ index
3853
+ } = result;
3854
+ const {
3855
+ addIdentifiers,
3856
+ removeIdentifiers
3857
+ } = context;
3858
+ value && addIdentifiers(value);
3859
+ key && addIdentifiers(key);
3860
+ index && addIdentifiers(index);
3861
+ return () => {
3862
+ value && removeIdentifiers(value);
3863
+ key && removeIdentifiers(key);
3864
+ index && removeIdentifiers(index);
3865
+ };
3866
+ }
3867
+ }
3868
+ };
3869
+ buildClientSlotFn = (props, _vForExp, children, loc) => createFunctionExpression(props, children, false, true, children.length ? children[0].loc : loc);
3870
+ directiveImportMap = /* @__PURE__ */new WeakMap();
3871
+ transformElement = (node, context) => {
3872
+ return function postTransformElement() {
3873
+ node = context.currentNode;
3874
+ if (!(node.type === 1 && (node.tagType === 0 || node.tagType === 1))) return;
3875
+ const {
3876
+ tag,
3877
+ props
3878
+ } = node;
3879
+ const isComponent$1 = node.tagType === 1;
3880
+ let vnodeTag = isComponent$1 ? resolveComponentType(node, context) : `"${tag}"`;
3881
+ const isDynamicComponent = isObject(vnodeTag) && vnodeTag.callee === RESOLVE_DYNAMIC_COMPONENT;
3882
+ let vnodeProps;
3883
+ let vnodeChildren;
3884
+ let patchFlag = 0;
3885
+ let vnodeDynamicProps;
3886
+ let dynamicPropNames;
3887
+ let vnodeDirectives;
3888
+ let shouldUseBlock = isDynamicComponent || vnodeTag === TELEPORT || vnodeTag === SUSPENSE || !isComponent$1 && (tag === "svg" || tag === "foreignObject" || tag === "math");
3889
+ if (props.length > 0) {
3890
+ const propsBuildResult = buildProps(node, context, void 0, isComponent$1, isDynamicComponent);
3891
+ vnodeProps = propsBuildResult.props;
3892
+ patchFlag = propsBuildResult.patchFlag;
3893
+ dynamicPropNames = propsBuildResult.dynamicPropNames;
3894
+ const directives = propsBuildResult.directives;
3895
+ vnodeDirectives = directives && directives.length ? createArrayExpression(directives.map(dir => buildDirectiveArgs(dir, context))) : void 0;
3896
+ if (propsBuildResult.shouldUseBlock) shouldUseBlock = true;
3897
+ }
3898
+ if (node.children.length > 0) {
3899
+ if (vnodeTag === KEEP_ALIVE) {
3900
+ shouldUseBlock = true;
3901
+ patchFlag |= 1024;
3902
+ }
3903
+ if (isComponent$1 && vnodeTag !== TELEPORT && vnodeTag !== KEEP_ALIVE) {
3904
+ const {
3905
+ slots,
3906
+ hasDynamicSlots
3907
+ } = buildSlots(node, context);
3908
+ vnodeChildren = slots;
3909
+ if (hasDynamicSlots) patchFlag |= 1024;
3910
+ } else if (node.children.length === 1 && vnodeTag !== TELEPORT) {
3911
+ const child = node.children[0];
3912
+ const type = child.type;
3913
+ const hasDynamicTextChild = type === 5 || type === 8;
3914
+ if (hasDynamicTextChild && getConstantType(child, context) === 0) patchFlag |= 1;
3915
+ if (hasDynamicTextChild || type === 2) vnodeChildren = child;else vnodeChildren = node.children;
3916
+ } else vnodeChildren = node.children;
3917
+ }
3918
+ if (dynamicPropNames && dynamicPropNames.length) vnodeDynamicProps = stringifyDynamicPropNames(dynamicPropNames);
3919
+ node.codegenNode = createVNodeCall(context, vnodeTag, vnodeProps, vnodeChildren, patchFlag === 0 ? void 0 : patchFlag, vnodeDynamicProps, vnodeDirectives, !!shouldUseBlock, false, isComponent$1, node.loc);
3920
+ };
3921
+ };
3922
+ transformSlotOutlet = (node, context) => {
3923
+ if (isSlotOutlet(node)) {
3924
+ const {
3925
+ children,
3926
+ loc
3927
+ } = node;
3928
+ const {
3929
+ slotName,
3930
+ slotProps
3931
+ } = processSlotOutlet(node, context);
3932
+ const slotArgs = [context.prefixIdentifiers ? `_ctx.$slots` : `$slots`, slotName, "{}", "undefined", "true"];
3933
+ let expectedLen = 2;
3934
+ if (slotProps) {
3935
+ slotArgs[2] = slotProps;
3936
+ expectedLen = 3;
3937
+ }
3938
+ if (children.length) {
3939
+ slotArgs[3] = createFunctionExpression([], children, false, false, loc);
3940
+ expectedLen = 4;
3941
+ }
3942
+ if (context.scopeId && !context.slotted) expectedLen = 5;
3943
+ slotArgs.splice(expectedLen);
3944
+ node.codegenNode = createCallExpression(context.helper(RENDER_SLOT), slotArgs, loc);
3945
+ }
3946
+ };
3947
+ transformOn = (dir, node, context, augmentor) => {
3948
+ const {
3949
+ loc,
3950
+ modifiers,
3951
+ arg
3952
+ } = dir;
3953
+ if (!dir.exp && !modifiers.length) context.onError(createCompilerError(35, loc));
3954
+ let eventName;
3955
+ if (arg.type === 4) {
3956
+ if (arg.isStatic) {
3957
+ let rawName = arg.content;
3958
+ if (rawName.startsWith("vue:")) rawName = `vnode-${rawName.slice(4)}`;
3959
+ eventName = createSimpleExpression(node.tagType !== 0 || rawName.startsWith("vnode") || !/[A-Z]/.test(rawName) ? toHandlerKey(camelize(rawName)) : `on:${rawName}`, true, arg.loc);
3960
+ } else eventName = createCompoundExpression([`${context.helperString(TO_HANDLER_KEY)}(`, arg, `)`]);
3961
+ } else {
3962
+ eventName = arg;
3963
+ eventName.children.unshift(`${context.helperString(TO_HANDLER_KEY)}(`);
3964
+ eventName.children.push(`)`);
3965
+ }
3966
+ let exp = dir.exp;
3967
+ if (exp && !exp.content.trim()) exp = void 0;
3968
+ let shouldCache = context.cacheHandlers && !exp && !context.inVOnce;
3969
+ if (exp) {
3970
+ const isMemberExp = isMemberExpression(exp);
3971
+ const isInlineStatement = !(isMemberExp || isFnExpression(exp));
3972
+ const hasMultipleStatements = exp.content.includes(`;`);
3973
+ if (isInlineStatement || shouldCache && isMemberExp) exp = createCompoundExpression([`${isInlineStatement ? `$event` : `(...args)`} => ${hasMultipleStatements ? `{` : `(`}`, exp, hasMultipleStatements ? `}` : `)`]);
3974
+ }
3975
+ let ret = {
3976
+ props: [createObjectProperty(eventName, exp || createSimpleExpression(`() => {}`, false, loc))]
3977
+ };
3978
+ if (augmentor) ret = augmentor(ret);
3979
+ if (shouldCache) ret.props[0].value = context.cache(ret.props[0].value);
3980
+ ret.props.forEach(p => p.key.isHandlerKey = true);
3981
+ return ret;
3982
+ };
3983
+ transformText = (node, context) => {
3984
+ if (node.type === 0 || node.type === 1 || node.type === 11 || node.type === 10) return () => {
3985
+ const children = node.children;
3986
+ let currentContainer = void 0;
3987
+ let hasText = false;
3988
+ for (let i = 0; i < children.length; i++) {
3989
+ const child = children[i];
3990
+ if (isText$1(child)) {
3991
+ hasText = true;
3992
+ for (let j = i + 1; j < children.length; j++) {
3993
+ const next = children[j];
3994
+ if (isText$1(next)) {
3995
+ if (!currentContainer) currentContainer = children[i] = createCompoundExpression([child], child.loc);
3996
+ currentContainer.children.push(` + `, next);
3997
+ children.splice(j, 1);
3998
+ j--;
3999
+ } else {
4000
+ currentContainer = void 0;
4001
+ break;
4002
+ }
4003
+ }
4004
+ }
4005
+ }
4006
+ if (!hasText || children.length === 1 && (node.type === 0 || node.type === 1 && node.tagType === 0 && !node.props.find(p => p.type === 7 && !context.directiveTransforms[p.name]) && !(node.tag === "template"))) return;
4007
+ for (let i = 0; i < children.length; i++) {
4008
+ const child = children[i];
4009
+ if (isText$1(child) || child.type === 8) {
4010
+ const callArgs = [];
4011
+ if (child.type !== 2 || child.content !== " ") callArgs.push(child);
4012
+ if (!context.ssr && getConstantType(child, context) === 0) callArgs.push("1");
4013
+ children[i] = {
4014
+ type: 12,
4015
+ content: child,
4016
+ loc: child.loc,
4017
+ codegenNode: createCallExpression(context.helper(CREATE_TEXT), callArgs)
4018
+ };
4019
+ }
4020
+ }
4021
+ };
4022
+ };
4023
+ seen$1 = /* @__PURE__ */new WeakSet();
4024
+ transformOnce = (node, context) => {
4025
+ if (node.type === 1 && findDir(node, "once", true)) {
4026
+ if (seen$1.has(node) || context.inVOnce || context.inSSR) return;
4027
+ seen$1.add(node);
4028
+ context.inVOnce = true;
4029
+ context.helper(SET_BLOCK_TRACKING);
4030
+ return () => {
4031
+ context.inVOnce = false;
4032
+ const cur = context.currentNode;
4033
+ if (cur.codegenNode) cur.codegenNode = context.cache(cur.codegenNode, true, true);
4034
+ };
4035
+ }
4036
+ };
4037
+ transformModel = (dir, node, context) => {
4038
+ const {
4039
+ exp,
4040
+ arg
4041
+ } = dir;
4042
+ if (!exp) {
4043
+ context.onError(createCompilerError(41, dir.loc));
4044
+ return createTransformProps();
4045
+ }
4046
+ const rawExp = exp.loc.source.trim();
4047
+ const expString = exp.type === 4 ? exp.content : rawExp;
4048
+ const bindingType = context.bindingMetadata[rawExp];
4049
+ if (bindingType === "props" || bindingType === "props-aliased") {
4050
+ context.onError(createCompilerError(44, exp.loc));
4051
+ return createTransformProps();
4052
+ }
4053
+ if (!expString.trim() || !isMemberExpression(exp) && true) {
4054
+ context.onError(createCompilerError(42, exp.loc));
4055
+ return createTransformProps();
4056
+ }
4057
+ const propName = arg ? arg : createSimpleExpression("modelValue", true);
4058
+ const eventName = arg ? isStaticExp(arg) ? `onUpdate:${camelize(arg.content)}` : createCompoundExpression(["\"onUpdate:\" + ", arg]) : `onUpdate:modelValue`;
4059
+ let assignmentExp;
4060
+ assignmentExp = createCompoundExpression([`${context.isTS ? `($event: any)` : `$event`} => ((`, exp, `) = $event)`]);
4061
+ const props = [createObjectProperty(propName, dir.exp), createObjectProperty(eventName, assignmentExp)];
4062
+ if (dir.modifiers.length && node.tagType === 1) {
4063
+ const modifiers = dir.modifiers.map(m => m.content).map(m => (isSimpleIdentifier(m) ? m : JSON.stringify(m)) + `: true`).join(`, `);
4064
+ const modifiersKey = arg ? isStaticExp(arg) ? `${arg.content}Modifiers` : createCompoundExpression([arg, " + \"Modifiers\""]) : `modelModifiers`;
4065
+ props.push(createObjectProperty(modifiersKey, createSimpleExpression(`{ ${modifiers} }`, false, dir.loc, 2)));
4066
+ }
4067
+ return createTransformProps(props);
4068
+ };
4069
+ validDivisionCharRE = /[\w).+\-_$\]]/;
4070
+ transformFilter = (node, context) => {
4071
+ if (!isCompatEnabled("COMPILER_FILTERS", context)) return;
4072
+ if (node.type === 5) rewriteFilter(node.content, context);else if (node.type === 1) node.props.forEach(prop => {
4073
+ if (prop.type === 7 && prop.name !== "for" && prop.exp) rewriteFilter(prop.exp, context);
4074
+ });
4075
+ };
4076
+ seen = /* @__PURE__ */new WeakSet();
4077
+ transformMemo = (node, context) => {
4078
+ if (node.type === 1) {
4079
+ const dir = findDir(node, "memo");
4080
+ if (!dir || seen.has(node)) return;
4081
+ seen.add(node);
4082
+ return () => {
4083
+ const codegenNode = node.codegenNode || context.currentNode.codegenNode;
4084
+ if (codegenNode && codegenNode.type === 13) {
4085
+ if (node.tagType !== 1) convertToBlock(codegenNode, context);
4086
+ node.codegenNode = createCallExpression(context.helper(WITH_MEMO), [dir.exp, createFunctionExpression(void 0, codegenNode), `_cache`, String(context.cached.length)]);
4087
+ context.cached.push(null);
4088
+ }
4089
+ };
4090
+ }
4091
+ };
4092
+ BindingTypes = {
4093
+ "DATA": "data",
4094
+ "PROPS": "props",
4095
+ "PROPS_ALIASED": "props-aliased",
4096
+ "SETUP_LET": "setup-let",
4097
+ "SETUP_CONST": "setup-const",
4098
+ "SETUP_REACTIVE_CONST": "setup-reactive-const",
4099
+ "SETUP_MAYBE_REF": "setup-maybe-ref",
4100
+ "SETUP_REF": "setup-ref",
4101
+ "OPTIONS": "options",
4102
+ "LITERAL_CONST": "literal-const"
4103
+ };
4104
+ noopDirectiveTransform = () => ({
4105
+ props: []
4106
+ });
4107
+ }
4108
+ }); //#endregion
4109
+ //#region ../../../node_modules/.pnpm/@vue+compiler-dom@3.5.13/node_modules/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js
4110
+ compiler_dom_esm_bundler_exports = /* @__PURE__ */__export({
4111
+ BASE_TRANSITION: () => BASE_TRANSITION,
4112
+ BindingTypes: () => BindingTypes,
4113
+ CAMELIZE: () => CAMELIZE,
4114
+ CAPITALIZE: () => CAPITALIZE,
4115
+ CREATE_BLOCK: () => CREATE_BLOCK,
4116
+ CREATE_COMMENT: () => CREATE_COMMENT,
4117
+ CREATE_ELEMENT_BLOCK: () => CREATE_ELEMENT_BLOCK,
4118
+ CREATE_ELEMENT_VNODE: () => CREATE_ELEMENT_VNODE,
4119
+ CREATE_SLOTS: () => CREATE_SLOTS,
4120
+ CREATE_STATIC: () => CREATE_STATIC,
4121
+ CREATE_TEXT: () => CREATE_TEXT,
4122
+ CREATE_VNODE: () => CREATE_VNODE,
4123
+ CompilerDeprecationTypes: () => CompilerDeprecationTypes,
4124
+ ConstantTypes: () => ConstantTypes,
4125
+ DOMDirectiveTransforms: () => DOMDirectiveTransforms,
4126
+ DOMErrorCodes: () => DOMErrorCodes,
4127
+ DOMErrorMessages: () => DOMErrorMessages,
4128
+ DOMNodeTransforms: () => DOMNodeTransforms,
4129
+ ElementTypes: () => ElementTypes,
4130
+ ErrorCodes: () => ErrorCodes,
4131
+ FRAGMENT: () => FRAGMENT,
4132
+ GUARD_REACTIVE_PROPS: () => GUARD_REACTIVE_PROPS,
4133
+ IS_MEMO_SAME: () => IS_MEMO_SAME,
4134
+ IS_REF: () => IS_REF,
4135
+ KEEP_ALIVE: () => KEEP_ALIVE,
4136
+ MERGE_PROPS: () => MERGE_PROPS,
4137
+ NORMALIZE_CLASS: () => NORMALIZE_CLASS,
4138
+ NORMALIZE_PROPS: () => NORMALIZE_PROPS,
4139
+ NORMALIZE_STYLE: () => NORMALIZE_STYLE,
4140
+ Namespaces: () => Namespaces,
4141
+ NodeTypes: () => NodeTypes,
4142
+ OPEN_BLOCK: () => OPEN_BLOCK,
4143
+ POP_SCOPE_ID: () => POP_SCOPE_ID,
4144
+ PUSH_SCOPE_ID: () => PUSH_SCOPE_ID,
4145
+ RENDER_LIST: () => RENDER_LIST,
4146
+ RENDER_SLOT: () => RENDER_SLOT,
4147
+ RESOLVE_COMPONENT: () => RESOLVE_COMPONENT,
4148
+ RESOLVE_DIRECTIVE: () => RESOLVE_DIRECTIVE,
4149
+ RESOLVE_DYNAMIC_COMPONENT: () => RESOLVE_DYNAMIC_COMPONENT,
4150
+ RESOLVE_FILTER: () => RESOLVE_FILTER,
4151
+ SET_BLOCK_TRACKING: () => SET_BLOCK_TRACKING,
4152
+ SUSPENSE: () => SUSPENSE,
4153
+ TELEPORT: () => TELEPORT,
4154
+ TO_DISPLAY_STRING: () => TO_DISPLAY_STRING,
4155
+ TO_HANDLERS: () => TO_HANDLERS,
4156
+ TO_HANDLER_KEY: () => TO_HANDLER_KEY,
4157
+ TRANSITION: () => TRANSITION,
4158
+ TRANSITION_GROUP: () => TRANSITION_GROUP,
4159
+ TS_NODE_TYPES: () => TS_NODE_TYPES,
4160
+ UNREF: () => UNREF,
4161
+ V_MODEL_CHECKBOX: () => V_MODEL_CHECKBOX,
4162
+ V_MODEL_DYNAMIC: () => V_MODEL_DYNAMIC,
4163
+ V_MODEL_RADIO: () => V_MODEL_RADIO,
4164
+ V_MODEL_SELECT: () => V_MODEL_SELECT,
4165
+ V_MODEL_TEXT: () => V_MODEL_TEXT,
4166
+ V_ON_WITH_KEYS: () => V_ON_WITH_KEYS,
4167
+ V_ON_WITH_MODIFIERS: () => V_ON_WITH_MODIFIERS,
4168
+ V_SHOW: () => V_SHOW,
4169
+ WITH_CTX: () => WITH_CTX,
4170
+ WITH_DIRECTIVES: () => WITH_DIRECTIVES,
4171
+ WITH_MEMO: () => WITH_MEMO,
4172
+ advancePositionWithClone: () => advancePositionWithClone,
4173
+ advancePositionWithMutation: () => advancePositionWithMutation,
4174
+ assert: () => assert,
4175
+ baseCompile: () => baseCompile,
4176
+ baseParse: () => baseParse,
4177
+ buildDirectiveArgs: () => buildDirectiveArgs,
4178
+ buildProps: () => buildProps,
4179
+ buildSlots: () => buildSlots,
4180
+ checkCompatEnabled: () => checkCompatEnabled,
4181
+ compile: () => compile,
4182
+ convertToBlock: () => convertToBlock,
4183
+ createArrayExpression: () => createArrayExpression,
4184
+ createAssignmentExpression: () => createAssignmentExpression,
4185
+ createBlockStatement: () => createBlockStatement,
4186
+ createCacheExpression: () => createCacheExpression,
4187
+ createCallExpression: () => createCallExpression,
4188
+ createCompilerError: () => createCompilerError,
4189
+ createCompoundExpression: () => createCompoundExpression,
4190
+ createConditionalExpression: () => createConditionalExpression,
4191
+ createDOMCompilerError: () => createDOMCompilerError,
4192
+ createForLoopParams: () => createForLoopParams,
4193
+ createFunctionExpression: () => createFunctionExpression,
4194
+ createIfStatement: () => createIfStatement,
4195
+ createInterpolation: () => createInterpolation,
4196
+ createObjectExpression: () => createObjectExpression,
4197
+ createObjectProperty: () => createObjectProperty,
4198
+ createReturnStatement: () => createReturnStatement,
4199
+ createRoot: () => createRoot,
4200
+ createSequenceExpression: () => createSequenceExpression,
4201
+ createSimpleExpression: () => createSimpleExpression,
4202
+ createStructuralDirectiveTransform: () => createStructuralDirectiveTransform,
4203
+ createTemplateLiteral: () => createTemplateLiteral,
4204
+ createTransformContext: () => createTransformContext,
4205
+ createVNodeCall: () => createVNodeCall,
4206
+ errorMessages: () => errorMessages,
4207
+ extractIdentifiers: () => extractIdentifiers,
4208
+ findDir: () => findDir,
4209
+ findProp: () => findProp,
4210
+ forAliasRE: () => forAliasRE,
4211
+ generate: () => generate,
4212
+ generateCodeFrame: () => generateCodeFrame,
4213
+ getBaseTransformPreset: () => getBaseTransformPreset,
4214
+ getConstantType: () => getConstantType,
4215
+ getMemoedVNodeCall: () => getMemoedVNodeCall,
4216
+ getVNodeBlockHelper: () => getVNodeBlockHelper,
4217
+ getVNodeHelper: () => getVNodeHelper,
4218
+ hasDynamicKeyVBind: () => hasDynamicKeyVBind,
4219
+ hasScopeRef: () => hasScopeRef,
4220
+ helperNameMap: () => helperNameMap,
4221
+ injectProp: () => injectProp,
4222
+ isCoreComponent: () => isCoreComponent,
4223
+ isFnExpression: () => isFnExpression,
4224
+ isFnExpressionBrowser: () => isFnExpressionBrowser,
4225
+ isFnExpressionNode: () => isFnExpressionNode,
4226
+ isFunctionType: () => isFunctionType,
4227
+ isInDestructureAssignment: () => isInDestructureAssignment,
4228
+ isInNewExpression: () => isInNewExpression,
4229
+ isMemberExpression: () => isMemberExpression,
4230
+ isMemberExpressionBrowser: () => isMemberExpressionBrowser,
4231
+ isMemberExpressionNode: () => isMemberExpressionNode,
4232
+ isReferencedIdentifier: () => isReferencedIdentifier,
4233
+ isSimpleIdentifier: () => isSimpleIdentifier,
4234
+ isSlotOutlet: () => isSlotOutlet,
4235
+ isStaticArgOf: () => isStaticArgOf,
4236
+ isStaticExp: () => isStaticExp,
4237
+ isStaticProperty: () => isStaticProperty,
4238
+ isStaticPropertyKey: () => isStaticPropertyKey,
4239
+ isTemplateNode: () => isTemplateNode,
4240
+ isText: () => isText$1,
4241
+ isVSlot: () => isVSlot,
4242
+ locStub: () => locStub,
4243
+ noopDirectiveTransform: () => noopDirectiveTransform,
4244
+ parse: () => parse,
4245
+ parserOptions: () => parserOptions,
4246
+ processExpression: () => processExpression,
4247
+ processFor: () => processFor,
4248
+ processIf: () => processIf,
4249
+ processSlotOutlet: () => processSlotOutlet,
4250
+ registerRuntimeHelpers: () => registerRuntimeHelpers,
4251
+ resolveComponentType: () => resolveComponentType,
4252
+ stringifyExpression: () => stringifyExpression,
4253
+ toValidAssetId: () => toValidAssetId,
4254
+ trackSlotScopes: () => trackSlotScopes,
4255
+ trackVForSlotScopes: () => trackVForSlotScopes,
4256
+ transform: () => transform,
4257
+ transformBind: () => transformBind,
4258
+ transformElement: () => transformElement,
4259
+ transformExpression: () => transformExpression,
4260
+ transformModel: () => transformModel,
4261
+ transformOn: () => transformOn,
4262
+ transformStyle: () => transformStyle,
4263
+ traverseNode: () => traverseNode,
4264
+ unwrapTSNode: () => unwrapTSNode,
4265
+ walkBlockDeclarations: () => walkBlockDeclarations,
4266
+ walkFunctionParams: () => walkFunctionParams,
4267
+ walkIdentifiers: () => walkIdentifiers,
4268
+ warnDeprecation: () => warnDeprecation
4269
+ });
4270
+ init_compiler_dom_esm_bundler = __esm({
4271
+ "../../../node_modules/.pnpm/@vue+compiler-dom@3.5.13/node_modules/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js": () => {
4272
+ init_compiler_core_esm_bundler();
4273
+ init_compiler_core_esm_bundler();
4274
+ init_shared_esm_bundler();
4275
+ V_MODEL_RADIO = Symbol(``);
4276
+ V_MODEL_CHECKBOX = Symbol(``);
4277
+ V_MODEL_TEXT = Symbol(``);
4278
+ V_MODEL_SELECT = Symbol(``);
4279
+ V_MODEL_DYNAMIC = Symbol(``);
4280
+ V_ON_WITH_MODIFIERS = Symbol(``);
4281
+ V_ON_WITH_KEYS = Symbol(``);
4282
+ V_SHOW = Symbol(``);
4283
+ TRANSITION = Symbol(``);
4284
+ TRANSITION_GROUP = Symbol(``);
4285
+ registerRuntimeHelpers({
4286
+ [V_MODEL_RADIO]: `vModelRadio`,
4287
+ [V_MODEL_CHECKBOX]: `vModelCheckbox`,
4288
+ [V_MODEL_TEXT]: `vModelText`,
4289
+ [V_MODEL_SELECT]: `vModelSelect`,
4290
+ [V_MODEL_DYNAMIC]: `vModelDynamic`,
4291
+ [V_ON_WITH_MODIFIERS]: `withModifiers`,
4292
+ [V_ON_WITH_KEYS]: `withKeys`,
4293
+ [V_SHOW]: `vShow`,
4294
+ [TRANSITION]: `Transition`,
4295
+ [TRANSITION_GROUP]: `TransitionGroup`
4296
+ });
4297
+ ;
4298
+ parserOptions = {
4299
+ parseMode: "html",
4300
+ isVoidTag,
4301
+ isNativeTag: tag => isHTMLTag(tag) || isSVGTag(tag) || isMathMLTag(tag),
4302
+ isPreTag: tag => tag === "pre",
4303
+ isIgnoreNewlineTag: tag => tag === "pre" || tag === "textarea",
4304
+ decodeEntities: decodeHtmlBrowser,
4305
+ isBuiltInComponent: tag => {
4306
+ if (tag === "Transition" || tag === "transition") return TRANSITION;else if (tag === "TransitionGroup" || tag === "transition-group") return TRANSITION_GROUP;
4307
+ },
4308
+ getNamespace(tag, parent, rootNamespace) {
4309
+ let ns = parent ? parent.ns : rootNamespace;
4310
+ if (parent && ns === 2) {
4311
+ if (parent.tag === "annotation-xml") {
4312
+ if (tag === "svg") return 1;
4313
+ if (parent.props.some(a => a.type === 6 && a.name === "encoding" && a.value != null && (a.value.content === "text/html" || a.value.content === "application/xhtml+xml"))) ns = 0;
4314
+ } else if (/^m(?:[ions]|text)$/.test(parent.tag) && tag !== "mglyph" && tag !== "malignmark") ns = 0;
4315
+ } else if (parent && ns === 1) {
4316
+ if (parent.tag === "foreignObject" || parent.tag === "desc" || parent.tag === "title") ns = 0;
4317
+ }
4318
+ if (ns === 0) {
4319
+ if (tag === "svg") return 1;
4320
+ if (tag === "math") return 2;
4321
+ }
4322
+ return ns;
4323
+ }
4324
+ };
4325
+ transformStyle = node => {
4326
+ if (node.type === 1) node.props.forEach((p, i) => {
4327
+ if (p.type === 6 && p.name === "style" && p.value) node.props[i] = {
4328
+ type: 7,
4329
+ name: `bind`,
4330
+ arg: createSimpleExpression(`style`, true, p.loc),
4331
+ exp: parseInlineCSS(p.value.content, p.loc),
4332
+ modifiers: [],
4333
+ loc: p.loc
4334
+ };
4335
+ });
4336
+ };
4337
+ parseInlineCSS = (cssText, loc) => {
4338
+ const normalized = parseStringStyle(cssText);
4339
+ return createSimpleExpression(JSON.stringify(normalized), false, loc, 3);
4340
+ };
4341
+ DOMErrorCodes = {
4342
+ "X_V_HTML_NO_EXPRESSION": 53,
4343
+ "53": "X_V_HTML_NO_EXPRESSION",
4344
+ "X_V_HTML_WITH_CHILDREN": 54,
4345
+ "54": "X_V_HTML_WITH_CHILDREN",
4346
+ "X_V_TEXT_NO_EXPRESSION": 55,
4347
+ "55": "X_V_TEXT_NO_EXPRESSION",
4348
+ "X_V_TEXT_WITH_CHILDREN": 56,
4349
+ "56": "X_V_TEXT_WITH_CHILDREN",
4350
+ "X_V_MODEL_ON_INVALID_ELEMENT": 57,
4351
+ "57": "X_V_MODEL_ON_INVALID_ELEMENT",
4352
+ "X_V_MODEL_ARG_ON_ELEMENT": 58,
4353
+ "58": "X_V_MODEL_ARG_ON_ELEMENT",
4354
+ "X_V_MODEL_ON_FILE_INPUT_ELEMENT": 59,
4355
+ "59": "X_V_MODEL_ON_FILE_INPUT_ELEMENT",
4356
+ "X_V_MODEL_UNNECESSARY_VALUE": 60,
4357
+ "60": "X_V_MODEL_UNNECESSARY_VALUE",
4358
+ "X_V_SHOW_NO_EXPRESSION": 61,
4359
+ "61": "X_V_SHOW_NO_EXPRESSION",
4360
+ "X_TRANSITION_INVALID_CHILDREN": 62,
4361
+ "62": "X_TRANSITION_INVALID_CHILDREN",
4362
+ "X_IGNORED_SIDE_EFFECT_TAG": 63,
4363
+ "63": "X_IGNORED_SIDE_EFFECT_TAG",
4364
+ "__EXTEND_POINT__": 64,
4365
+ "64": "__EXTEND_POINT__"
4366
+ };
4367
+ DOMErrorMessages = {
4368
+ [53]: `v-html is missing expression.`,
4369
+ [54]: `v-html will override element children.`,
4370
+ [55]: `v-text is missing expression.`,
4371
+ [56]: `v-text will override element children.`,
4372
+ [57]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
4373
+ [58]: `v-model argument is not supported on plain elements.`,
4374
+ [59]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
4375
+ [60]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
4376
+ [61]: `v-show is missing expression.`,
4377
+ [62]: `<Transition> expects exactly one child element or component.`,
4378
+ [63]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`
4379
+ };
4380
+ transformVHtml = (dir, node, context) => {
4381
+ const {
4382
+ exp,
4383
+ loc
4384
+ } = dir;
4385
+ if (!exp) context.onError(createDOMCompilerError(53, loc));
4386
+ if (node.children.length) {
4387
+ context.onError(createDOMCompilerError(54, loc));
4388
+ node.children.length = 0;
4389
+ }
4390
+ return {
4391
+ props: [createObjectProperty(createSimpleExpression(`innerHTML`, true, loc), exp || createSimpleExpression("", true))]
4392
+ };
4393
+ };
4394
+ transformVText = (dir, node, context) => {
4395
+ const {
4396
+ exp,
4397
+ loc
4398
+ } = dir;
4399
+ if (!exp) context.onError(createDOMCompilerError(55, loc));
4400
+ if (node.children.length) {
4401
+ context.onError(createDOMCompilerError(56, loc));
4402
+ node.children.length = 0;
4403
+ }
4404
+ return {
4405
+ props: [createObjectProperty(createSimpleExpression(`textContent`, true), exp ? getConstantType(exp, context) > 0 ? exp : createCallExpression(context.helperString(TO_DISPLAY_STRING), [exp], loc) : createSimpleExpression("", true))]
4406
+ };
4407
+ };
4408
+ transformModel$1 = (dir, node, context) => {
4409
+ const baseResult = transformModel(dir, node, context);
4410
+ if (!baseResult.props.length || node.tagType === 1) return baseResult;
4411
+ if (dir.arg) context.onError(createDOMCompilerError(58, dir.arg.loc));
4412
+ const {
4413
+ tag
4414
+ } = node;
4415
+ const isCustomElement = context.isCustomElement(tag);
4416
+ if (tag === "input" || tag === "textarea" || tag === "select" || isCustomElement) {
4417
+ let directiveToUse = V_MODEL_TEXT;
4418
+ let isInvalidType = false;
4419
+ if (tag === "input" || isCustomElement) {
4420
+ const type = findProp(node, `type`);
4421
+ if (type) {
4422
+ if (type.type === 7) directiveToUse = V_MODEL_DYNAMIC;else if (type.value) switch (type.value.content) {
4423
+ case "radio":
4424
+ directiveToUse = V_MODEL_RADIO;
4425
+ break;
4426
+ case "checkbox":
4427
+ directiveToUse = V_MODEL_CHECKBOX;
4428
+ break;
4429
+ case "file":
4430
+ isInvalidType = true;
4431
+ context.onError(createDOMCompilerError(59, dir.loc));
4432
+ break;
4433
+ default:
4434
+ break;
4435
+ }
4436
+ } else if (hasDynamicKeyVBind(node)) directiveToUse = V_MODEL_DYNAMIC;
4437
+ } else if (tag === "select") directiveToUse = V_MODEL_SELECT;
4438
+ if (!isInvalidType) baseResult.needRuntime = context.helper(directiveToUse);
4439
+ } else context.onError(createDOMCompilerError(57, dir.loc));
4440
+ baseResult.props = baseResult.props.filter(p => !(p.key.type === 4 && p.key.content === "modelValue"));
4441
+ return baseResult;
4442
+ };
4443
+ isEventOptionModifier = /* @__PURE__ */makeMap(`passive,once,capture`);
4444
+ isNonKeyModifier = /* @__PURE__ */makeMap(`stop,prevent,self,ctrl,shift,alt,meta,exact,middle`);
4445
+ maybeKeyModifier = /* @__PURE__ */makeMap("left,right");
4446
+ isKeyboardEvent = /* @__PURE__ */makeMap(`onkeyup,onkeydown,onkeypress`);
4447
+ resolveModifiers = (key, modifiers, context, loc) => {
4448
+ const keyModifiers = [];
4449
+ const nonKeyModifiers = [];
4450
+ const eventOptionModifiers = [];
4451
+ for (let i = 0; i < modifiers.length; i++) {
4452
+ const modifier = modifiers[i].content;
4453
+ if (modifier === "native" && checkCompatEnabled("COMPILER_V_ON_NATIVE", context, loc)) eventOptionModifiers.push(modifier);else if (isEventOptionModifier(modifier)) eventOptionModifiers.push(modifier);else if (maybeKeyModifier(modifier)) {
4454
+ if (isStaticExp(key)) {
4455
+ if (isKeyboardEvent(key.content.toLowerCase())) keyModifiers.push(modifier);else nonKeyModifiers.push(modifier);
4456
+ } else {
4457
+ keyModifiers.push(modifier);
4458
+ nonKeyModifiers.push(modifier);
4459
+ }
4460
+ } else if (isNonKeyModifier(modifier)) nonKeyModifiers.push(modifier);else keyModifiers.push(modifier);
4461
+ }
4462
+ return {
4463
+ keyModifiers,
4464
+ nonKeyModifiers,
4465
+ eventOptionModifiers
4466
+ };
4467
+ };
4468
+ transformClick = (key, event) => {
4469
+ return isStaticExp(key) && key.content.toLowerCase() === "onclick" ? createSimpleExpression(event, true) : key.type !== 4 ? createCompoundExpression([`(`, key, `) === "onClick" ? "${event}" : (`, key, `)`]) : key;
4470
+ };
4471
+ transformOn$1 = (dir, node, context) => {
4472
+ return transformOn(dir, node, context, baseResult => {
4473
+ const {
4474
+ modifiers
4475
+ } = dir;
4476
+ if (!modifiers.length) return baseResult;
4477
+ let {
4478
+ key,
4479
+ value: handlerExp
4480
+ } = baseResult.props[0];
4481
+ const {
4482
+ keyModifiers,
4483
+ nonKeyModifiers,
4484
+ eventOptionModifiers
4485
+ } = resolveModifiers(key, modifiers, context, dir.loc);
4486
+ if (nonKeyModifiers.includes("right")) key = transformClick(key, `onContextmenu`);
4487
+ if (nonKeyModifiers.includes("middle")) key = transformClick(key, `onMouseup`);
4488
+ if (nonKeyModifiers.length) handlerExp = createCallExpression(context.helper(V_ON_WITH_MODIFIERS), [handlerExp, JSON.stringify(nonKeyModifiers)]);
4489
+ if (keyModifiers.length && (!isStaticExp(key) || isKeyboardEvent(key.content.toLowerCase()))) handlerExp = createCallExpression(context.helper(V_ON_WITH_KEYS), [handlerExp, JSON.stringify(keyModifiers)]);
4490
+ if (eventOptionModifiers.length) {
4491
+ const modifierPostfix = eventOptionModifiers.map(capitalize).join("");
4492
+ key = isStaticExp(key) ? createSimpleExpression(`${key.content}${modifierPostfix}`, true) : createCompoundExpression([`(`, key, `) + "${modifierPostfix}"`]);
4493
+ }
4494
+ return {
4495
+ props: [createObjectProperty(key, handlerExp)]
4496
+ };
4497
+ });
4498
+ };
4499
+ transformShow = (dir, node, context) => {
4500
+ const {
4501
+ exp,
4502
+ loc
4503
+ } = dir;
4504
+ if (!exp) context.onError(createDOMCompilerError(61, loc));
4505
+ return {
4506
+ props: [],
4507
+ needRuntime: context.helper(V_SHOW)
4508
+ };
4509
+ };
4510
+ ignoreSideEffectTags = (node, context) => {
4511
+ if (node.type === 1 && node.tagType === 0 && (node.tag === "script" || node.tag === "style")) context.removeNode();
4512
+ };
4513
+ DOMNodeTransforms = [transformStyle, ...[]];
4514
+ DOMDirectiveTransforms = {
4515
+ cloak: noopDirectiveTransform,
4516
+ html: transformVHtml,
4517
+ text: transformVText,
4518
+ model: transformModel$1,
4519
+ on: transformOn$1,
4520
+ show: transformShow
4521
+ };
4522
+ }
4523
+ }); //#endregion
4524
+ //#region ../../../node_modules/.pnpm/vue@3.5.13_typescript@5.9.2/node_modules/vue/dist/vue.cjs.prod.js
4525
+ require_vue_cjs_prod = /* @__PURE__ */__commonJS({
4526
+ "../../../node_modules/.pnpm/vue@3.5.13_typescript@5.9.2/node_modules/vue/dist/vue.cjs.prod.js": exports => {
4527
+ Object.defineProperty(exports, "__esModule", {
4528
+ value: true
4529
+ });
4530
+ var compilerDom = (init_compiler_dom_esm_bundler(), __toCommonJS(compiler_dom_esm_bundler_exports));
4531
+ var runtimeDom = (init_runtime_dom_esm_bundler(), __toCommonJS(runtime_dom_esm_bundler_exports));
4532
+ var shared = (init_shared_esm_bundler(), __toCommonJS(shared_esm_bundler_exports));
4533
+ function _interopNamespaceDefault(e) {
4534
+ var n = Object.create(null);
4535
+ if (e) for (var k in e) n[k] = e[k];
4536
+ n.default = e;
4537
+ return Object.freeze(n);
4538
+ }
4539
+ var runtimeDom__namespace = /* @__PURE__ */_interopNamespaceDefault(runtimeDom);
4540
+ var compileCache = /* @__PURE__ */Object.create(null);
4541
+ function compileToFunction(template, options) {
4542
+ if (!shared.isString(template)) if (template.nodeType) template = template.innerHTML;else return shared.NOOP;
4543
+ const key = shared.genCacheKey(template, options);
4544
+ const cached = compileCache[key];
4545
+ if (cached) return cached;
4546
+ if (template[0] === "#") {
4547
+ const el = document.querySelector(template);
4548
+ template = el ? el.innerHTML : ``;
4549
+ }
4550
+ const opts = shared.extend({
4551
+ hoistStatic: true,
4552
+ onError: void 0,
4553
+ onWarn: shared.NOOP
4554
+ }, options);
4555
+ if (!opts.isCustomElement && typeof customElements !== "undefined") opts.isCustomElement = tag => !!customElements.get(tag);
4556
+ const {
4557
+ code
4558
+ } = compilerDom.compile(template, opts);
4559
+ const render = new Function("Vue", code)(runtimeDom__namespace);
4560
+ render._rc = true;
4561
+ return compileCache[key] = render;
4562
+ }
4563
+ runtimeDom.registerRuntimeCompiler(compileToFunction);
4564
+ exports.compile = compileToFunction;
4565
+ Object.keys(runtimeDom).forEach(function (k) {
4566
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = runtimeDom[k];
4567
+ });
4568
+ }
4569
+ }); //#endregion
4570
+ //#region ../../../node_modules/.pnpm/vue@3.5.13_typescript@5.9.2/node_modules/vue/index.js
4571
+ _export("t", require_vue = /* @__PURE__ */__commonJS({
4572
+ "../../../node_modules/.pnpm/vue@3.5.13_typescript@5.9.2/node_modules/vue/index.js": (exports, module) => {
4573
+ module.exports = require_vue_cjs_prod();
4574
+ }
4575
+ })); //#endregion
4576
+ }
4577
+ };
4578
+ });
4579
+ })();