vibe64 0.1.69 → 0.1.71

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 (433) hide show
  1. package/bin/run.js +1134 -1131
  2. package/bin/server.js +50 -50
  3. package/bin/upgrade-state.js +2544 -2543
  4. package/dist/assets/GithubBrowserTabs-D8twaXtF.js +1 -0
  5. package/dist/assets/GithubBrowserTabs-D8twaXtF.js.br +0 -0
  6. package/dist/assets/GithubBrowserTabs-D8twaXtF.js.gz +0 -0
  7. package/dist/assets/LocalDatabaseServer-BQM5W9GA.css.br +0 -0
  8. package/dist/assets/LocalDatabaseServer-BQM5W9GA.css.gz +0 -0
  9. package/dist/assets/{LocalDatabaseServer-DYh3UF9q.js → LocalDatabaseServer-BjJgeNye.js} +1 -1
  10. package/dist/assets/LocalDatabaseServer-BjJgeNye.js.br +0 -0
  11. package/dist/assets/LocalDatabaseServer-BjJgeNye.js.gz +0 -0
  12. package/dist/assets/Vibe64DashboardPageHeader-2JX76yfq.css.br +0 -0
  13. package/dist/assets/Vibe64DashboardPageHeader-2JX76yfq.css.gz +0 -0
  14. package/dist/assets/Vibe64DashboardPageHeader-Bd4WMiDV.js +1 -0
  15. package/dist/assets/Vibe64DashboardPageHeader-Bd4WMiDV.js.br +0 -0
  16. package/dist/assets/Vibe64DashboardPageHeader-Bd4WMiDV.js.gz +0 -0
  17. package/dist/assets/{Vibe64DatabaseWorkspace-8i-RDc9y.js → Vibe64DatabaseWorkspace-CprnbQkL.js} +1 -1
  18. package/dist/assets/Vibe64DatabaseWorkspace-CprnbQkL.js.br +0 -0
  19. package/dist/assets/Vibe64DatabaseWorkspace-CprnbQkL.js.gz +0 -0
  20. package/dist/assets/Vibe64DatabaseWorkspace-De4sbXAN.css.br +0 -0
  21. package/dist/assets/Vibe64DatabaseWorkspace-De4sbXAN.css.gz +0 -0
  22. package/dist/assets/Vibe64FileArea-CcKMG84N.js +1 -0
  23. package/dist/assets/Vibe64FileArea-CcKMG84N.js.br +0 -0
  24. package/dist/assets/Vibe64FileArea-CcKMG84N.js.gz +0 -0
  25. package/dist/assets/Vibe64FileArea-ZEzsvLt2.css.br +0 -0
  26. package/dist/assets/Vibe64FileArea-ZEzsvLt2.css.gz +0 -0
  27. package/dist/assets/Vibe64OutputControls-D0l0i_kq.js +8 -0
  28. package/dist/assets/Vibe64OutputControls-D0l0i_kq.js.br +0 -0
  29. package/dist/assets/Vibe64OutputControls-D0l0i_kq.js.gz +0 -0
  30. package/dist/assets/Vibe64OutputControls-aQCEvUL2.css.br +0 -0
  31. package/dist/assets/Vibe64OutputControls-aQCEvUL2.css.gz +0 -0
  32. package/dist/assets/Vibe64RepositoryWorkspace-BWu6OV32.css.br +0 -0
  33. package/dist/assets/Vibe64RepositoryWorkspace-BWu6OV32.css.gz +0 -0
  34. package/dist/assets/{Vibe64RepositoryWorkspace-D6uJCype.js → Vibe64RepositoryWorkspace-EkT8pmMV.js} +1 -1
  35. package/dist/assets/Vibe64RepositoryWorkspace-EkT8pmMV.js.br +0 -0
  36. package/dist/assets/Vibe64RepositoryWorkspace-EkT8pmMV.js.gz +0 -0
  37. package/dist/assets/Vibe64SessionFiles-Qk_kv1Q8.js +1 -0
  38. package/dist/assets/Vibe64SessionFiles-Qk_kv1Q8.js.br +0 -0
  39. package/dist/assets/Vibe64SessionFiles-Qk_kv1Q8.js.gz +0 -0
  40. package/dist/assets/Vibe64SessionSourceEditor-l0R5uY2U.css.br +0 -0
  41. package/dist/assets/Vibe64SessionSourceEditor-l0R5uY2U.css.gz +0 -0
  42. package/dist/assets/{Vibe64SessionSourceEditor-Bws5ihr-.js → Vibe64SessionSourceEditor-oYTMnob5.js} +1 -1
  43. package/dist/assets/Vibe64SessionSourceEditor-oYTMnob5.js.br +0 -0
  44. package/dist/assets/Vibe64SessionSourceEditor-oYTMnob5.js.gz +0 -0
  45. package/dist/assets/Vibe64UiStoryboardView-BZh1b5Xt.js +8 -0
  46. package/dist/assets/Vibe64UiStoryboardView-BZh1b5Xt.js.br +0 -0
  47. package/dist/assets/Vibe64UiStoryboardView-BZh1b5Xt.js.gz +0 -0
  48. package/dist/assets/Vibe64UiStoryboardView-DqLN6ofL.css.br +0 -0
  49. package/dist/assets/Vibe64UiStoryboardView-DqLN6ofL.css.gz +0 -0
  50. package/dist/assets/_pageId_-xB2NWBqF.js +1 -0
  51. package/dist/assets/_sessionId_-7PyIUeUr.css.br +0 -0
  52. package/dist/assets/_sessionId_-7PyIUeUr.css.gz +0 -0
  53. package/dist/assets/_sessionId_-g78evnUW.js +1 -0
  54. package/dist/assets/_sessionId_-g78evnUW.js.br +0 -0
  55. package/dist/assets/_sessionId_-g78evnUW.js.gz +0 -0
  56. package/dist/assets/_sessionTool_-cw3WaYPb.js +1 -0
  57. package/dist/assets/access-BH1OsqPS.css.br +3 -0
  58. package/dist/assets/access-BH1OsqPS.css.gz +0 -0
  59. package/dist/assets/access-oIeDSza-.js +1 -0
  60. package/dist/assets/access-oIeDSza-.js.br +0 -0
  61. package/dist/assets/access-oIeDSza-.js.gz +0 -0
  62. package/dist/assets/addon-fit-Bw0lQv9_.js.br +0 -0
  63. package/dist/assets/addon-fit-Bw0lQv9_.js.gz +0 -0
  64. package/dist/assets/apollo-io-DSa-SGjz.svg.br +0 -0
  65. package/dist/assets/apollo-io-DSa-SGjz.svg.gz +0 -0
  66. package/dist/assets/app-0jq6SFSn.js +1 -0
  67. package/dist/assets/app-0jq6SFSn.js.br +0 -0
  68. package/dist/assets/app-0jq6SFSn.js.gz +0 -0
  69. package/dist/assets/asana--NYpVJKi.ico.br +0 -0
  70. package/dist/assets/asana--NYpVJKi.ico.gz +0 -0
  71. package/dist/assets/atlassian-DlYQurNH.ico.br +0 -0
  72. package/dist/assets/atlassian-DlYQurNH.ico.gz +0 -0
  73. package/dist/assets/aws-athena-iyRsleas.svg.br +0 -0
  74. package/dist/assets/aws-athena-iyRsleas.svg.gz +0 -0
  75. package/dist/assets/changes-Db1dzMsx.js +1 -0
  76. package/dist/assets/client-DW9uggbF.js +2 -0
  77. package/dist/assets/client-DW9uggbF.js.br +0 -0
  78. package/dist/assets/client-DW9uggbF.js.gz +0 -0
  79. package/dist/assets/client-Lmbw-Ygm.js +2 -0
  80. package/dist/assets/client-Lmbw-Ygm.js.br +0 -0
  81. package/dist/assets/client-Lmbw-Ygm.js.gz +0 -0
  82. package/dist/assets/dashboard-CUnY0-1W.js +1 -0
  83. package/dist/assets/dist-CDa9Iec1.js.br +0 -0
  84. package/dist/assets/dist-CDa9Iec1.js.gz +0 -0
  85. package/dist/assets/elk-worker.min-CBpdZsm8.js.br +0 -0
  86. package/dist/assets/elk-worker.min-CBpdZsm8.js.gz +0 -0
  87. package/dist/assets/english-definitions-DovEdEkp.js +1 -0
  88. package/dist/assets/english-definitions-DovEdEkp.js.br +0 -0
  89. package/dist/assets/english-definitions-DovEdEkp.js.gz +0 -0
  90. package/dist/assets/env-CZritO-9.js +1 -0
  91. package/dist/assets/env-CZritO-9.js.br +0 -0
  92. package/dist/assets/env-CZritO-9.js.gz +0 -0
  93. package/dist/assets/env-i_R_LXlE.css.br +0 -0
  94. package/dist/assets/env-i_R_LXlE.css.gz +0 -0
  95. package/dist/assets/erdLayout.worker-B_1U21gv.js.br +0 -0
  96. package/dist/assets/erdLayout.worker-B_1U21gv.js.gz +0 -0
  97. package/dist/assets/error-o4gXqrKI.js +1 -0
  98. package/dist/assets/error-o4gXqrKI.js.br +0 -0
  99. package/dist/assets/error-o4gXqrKI.js.gz +0 -0
  100. package/dist/assets/favicon-DXB1SVqU.svg +20 -0
  101. package/dist/assets/favicon-DXB1SVqU.svg.br +0 -0
  102. package/dist/assets/favicon-DXB1SVqU.svg.gz +0 -0
  103. package/dist/assets/fileTypes-Bqlch7JV.js +1 -0
  104. package/dist/assets/fileTypes-Bqlch7JV.js.br +0 -0
  105. package/dist/assets/fileTypes-Bqlch7JV.js.gz +0 -0
  106. package/dist/assets/fileTypes-c-LysNzr.css.br +0 -0
  107. package/dist/assets/fileTypes-c-LysNzr.css.gz +0 -0
  108. package/dist/assets/firecrawl-C0P1e2_8.ico.br +0 -0
  109. package/dist/assets/firecrawl-C0P1e2_8.ico.gz +0 -0
  110. package/dist/assets/granola-7dR8tPQ_.svg.br +0 -0
  111. package/dist/assets/granola-7dR8tPQ_.svg.gz +0 -0
  112. package/dist/assets/health-LP0Mz2qB.js +1 -0
  113. package/dist/assets/health-LP0Mz2qB.js.br +0 -0
  114. package/dist/assets/health-LP0Mz2qB.js.gz +0 -0
  115. package/dist/assets/health-xnU0lci9.css.br +0 -0
  116. package/dist/assets/health-xnU0lci9.css.gz +0 -0
  117. package/dist/assets/heygen-CeXJ1Sy4.ico.br +0 -0
  118. package/dist/assets/heygen-CeXJ1Sy4.ico.gz +0 -0
  119. package/dist/assets/history-BSIuLgnI.css.br +0 -0
  120. package/dist/assets/history-BSIuLgnI.css.gz +0 -0
  121. package/dist/assets/history-DkjaInmh.js +1 -0
  122. package/dist/assets/history-DkjaInmh.js.br +0 -0
  123. package/dist/assets/history-DkjaInmh.js.gz +0 -0
  124. package/dist/assets/index-C_LlHM8w.js +174 -0
  125. package/dist/assets/index-C_LlHM8w.js.br +0 -0
  126. package/dist/assets/index-C_LlHM8w.js.gz +0 -0
  127. package/dist/assets/index-aW7ceIaR.css +1 -0
  128. package/dist/assets/index-aW7ceIaR.css.br +0 -0
  129. package/dist/assets/index-aW7ceIaR.css.gz +0 -0
  130. package/dist/assets/{integrations-Ccb8EOEO.js → integrations-C6_N7WwF.js} +2 -3
  131. package/dist/assets/integrations-C6_N7WwF.js.br +0 -0
  132. package/dist/assets/integrations-C6_N7WwF.js.gz +0 -0
  133. package/dist/assets/integrations-sQuGZtOl.css +1 -0
  134. package/dist/assets/integrations-sQuGZtOl.css.br +0 -0
  135. package/dist/assets/integrations-sQuGZtOl.css.gz +0 -0
  136. package/dist/assets/issues-D46llNv-.css.br +0 -0
  137. package/dist/assets/issues-D46llNv-.css.gz +0 -0
  138. package/dist/assets/issues-DAJzymvp.js +1 -0
  139. package/dist/assets/issues-DAJzymvp.js.br +0 -0
  140. package/dist/assets/issues-DAJzymvp.js.gz +0 -0
  141. package/dist/assets/klipy-DId2OM2v.ico.br +0 -0
  142. package/dist/assets/klipy-DId2OM2v.ico.gz +0 -0
  143. package/dist/assets/learning-6W-aGxBH.js +1 -0
  144. package/dist/assets/libesm-CR-iGldz.js.br +0 -0
  145. package/dist/assets/libesm-CR-iGldz.js.gz +0 -0
  146. package/dist/assets/mailgun-jMUCQaNg.ico.br +0 -0
  147. package/dist/assets/mailgun-jMUCQaNg.ico.gz +0 -0
  148. package/dist/assets/microsoft-fabric-CkTccQJB.svg.br +0 -0
  149. package/dist/assets/microsoft-fabric-CkTccQJB.svg.gz +0 -0
  150. package/dist/assets/n8n-CViEi-uo.ico.br +0 -0
  151. package/dist/assets/n8n-CViEi-uo.ico.gz +0 -0
  152. package/dist/assets/paddle-PTFXjZtt.ico.br +0 -0
  153. package/dist/assets/paddle-PTFXjZtt.ico.gz +0 -0
  154. package/dist/assets/pages-BePUPkVf.js +1 -0
  155. package/dist/assets/pages-C31UYhFG.js +1 -0
  156. package/dist/assets/pages-C31UYhFG.js.br +0 -0
  157. package/dist/assets/pages-C31UYhFG.js.gz +0 -0
  158. package/dist/assets/perplexity-CwIseVmg.ico.br +0 -0
  159. package/dist/assets/perplexity-CwIseVmg.ico.gz +0 -0
  160. package/dist/assets/placementTopology-CDhUIK6L.js.br +0 -0
  161. package/dist/assets/placementTopology-CDhUIK6L.js.gz +0 -0
  162. package/dist/assets/prestashop-BQtyl3tL.ico.br +0 -0
  163. package/dist/assets/prestashop-BQtyl3tL.ico.gz +0 -0
  164. package/dist/assets/project-Bw_8Bd8D.js +21 -0
  165. package/dist/assets/project-Bw_8Bd8D.js.br +0 -0
  166. package/dist/assets/project-Bw_8Bd8D.js.gz +0 -0
  167. package/dist/assets/project-DTGwAgqm.css +1 -0
  168. package/dist/assets/project-DTGwAgqm.css.br +0 -0
  169. package/dist/assets/project-DTGwAgqm.css.gz +0 -0
  170. package/dist/assets/project-files-CdcCb8jL.js +1 -0
  171. package/dist/assets/project-files-CdcCb8jL.js.br +0 -0
  172. package/dist/assets/project-files-CdcCb8jL.js.gz +0 -0
  173. package/dist/assets/project-shared-ShellOutlet-CVomMDvt.js +5 -0
  174. package/dist/assets/project-shared-ShellOutlet-CVomMDvt.js.br +0 -0
  175. package/dist/assets/project-shared-ShellOutlet-CVomMDvt.js.gz +0 -0
  176. package/dist/assets/project-shared-ShellOutlet-DfKYI6ZS.css.br +0 -0
  177. package/dist/assets/project-shared-ShellOutlet-DfKYI6ZS.css.gz +0 -0
  178. package/dist/assets/project-shared-VBottomSheet-BEV2Ihna.css.br +0 -0
  179. package/dist/assets/project-shared-VBottomSheet-BEV2Ihna.css.gz +0 -0
  180. package/dist/assets/project-shared-VBottomSheet-Bu53ETe9.js +1 -0
  181. package/dist/assets/project-shared-VBottomSheet-Bu53ETe9.js.br +0 -0
  182. package/dist/assets/project-shared-VBottomSheet-Bu53ETe9.js.gz +0 -0
  183. package/dist/assets/project-shared-VToolbar-Bd4xlEK-.js +1 -0
  184. package/dist/assets/project-shared-VToolbar-Bd4xlEK-.js.br +0 -0
  185. package/dist/assets/project-shared-VToolbar-Bd4xlEK-.js.gz +0 -0
  186. package/dist/assets/project-shared-VToolbar-CY3-1Sb0.css.br +0 -0
  187. package/dist/assets/project-shared-VToolbar-CY3-1Sb0.css.gz +0 -0
  188. package/dist/assets/project-shared-pageNames-BVgvVg71.js +1 -0
  189. package/dist/assets/project-shared-pageNames-BVgvVg71.js.br +0 -0
  190. package/dist/assets/project-shared-pageNames-BVgvVg71.js.gz +0 -0
  191. package/dist/assets/publish-BIY5aZgD.css +1 -0
  192. package/dist/assets/publish-BIY5aZgD.css.br +0 -0
  193. package/dist/assets/publish-BIY5aZgD.css.gz +0 -0
  194. package/dist/assets/publish-a6jL_LlB.js +3 -0
  195. package/dist/assets/publish-a6jL_LlB.js.br +0 -0
  196. package/dist/assets/publish-a6jL_LlB.js.gz +0 -0
  197. package/dist/assets/pull-requests-DoyqPC5b.js +1 -0
  198. package/dist/assets/pull-requests-DoyqPC5b.js.br +0 -0
  199. package/dist/assets/pull-requests-DoyqPC5b.js.gz +0 -0
  200. package/dist/assets/repository-MUZOzMUA.js +1 -0
  201. package/dist/assets/salesforce-aAWnuvNz.ico.br +3 -0
  202. package/dist/assets/salesforce-aAWnuvNz.ico.gz +0 -0
  203. package/dist/assets/sentry-Y4ADGpgF.ico.br +0 -0
  204. package/dist/assets/sentry-Y4ADGpgF.ico.gz +0 -0
  205. package/dist/assets/session-BJhq3K2n.css.br +0 -0
  206. package/dist/assets/session-BJhq3K2n.css.gz +0 -0
  207. package/dist/assets/session-CtbSoHK-.js +1 -0
  208. package/dist/assets/session-CtbSoHK-.js.br +0 -0
  209. package/dist/assets/session-CtbSoHK-.js.gz +0 -0
  210. package/dist/assets/settings-BKZcbISO.css.br +0 -0
  211. package/dist/assets/settings-BKZcbISO.css.gz +0 -0
  212. package/dist/assets/settings-BdbR3bEK.js +1 -0
  213. package/dist/assets/settings-BdbR3bEK.js.br +0 -0
  214. package/dist/assets/settings-BdbR3bEK.js.gz +0 -0
  215. package/dist/assets/snowflake-CP8ObIkg.svg.br +0 -0
  216. package/dist/assets/snowflake-CP8ObIkg.svg.gz +0 -0
  217. package/dist/assets/useArchivedVibe64Sessions-DXTj9b9K.js +1 -0
  218. package/dist/assets/useArchivedVibe64Sessions-DXTj9b9K.js.br +0 -0
  219. package/dist/assets/useArchivedVibe64Sessions-DXTj9b9K.js.gz +0 -0
  220. package/dist/assets/vibe64AttachmentDownload-BODXLh6N.js +1 -0
  221. package/dist/assets/vibe64SavedEnvValues-BbuzhsJf.js +1 -0
  222. package/dist/assets/{vue-flow-core-jvy5apgY.js → vue-flow-core-6H3SH19E.js} +1 -1
  223. package/dist/assets/vue-flow-core-6H3SH19E.js.br +0 -0
  224. package/dist/assets/vue-flow-core-6H3SH19E.js.gz +0 -0
  225. package/dist/assets/workday-Ds_SFYKi.ico.br +0 -0
  226. package/dist/assets/workday-Ds_SFYKi.ico.gz +0 -0
  227. package/dist/assets/xterm-BrP-ENHg.css.br +0 -0
  228. package/dist/assets/xterm-BrP-ENHg.css.gz +0 -0
  229. package/dist/assets/xterm-CXJQiF67.js.br +0 -0
  230. package/dist/assets/xterm-CXJQiF67.js.gz +0 -0
  231. package/dist/assets/zoho-crm-BRYEeDgr.ico.br +0 -0
  232. package/dist/assets/zoho-crm-BRYEeDgr.ico.gz +0 -0
  233. package/dist/index.html +59 -130
  234. package/docs/colleague-usage/account-profile-and-appearance.md +5 -3
  235. package/docs/colleague-usage/add-a-service.md +137 -0
  236. package/docs/colleague-usage/ai-tasks.md +3 -1
  237. package/docs/colleague-usage/chat-settings.md +36 -9
  238. package/docs/colleague-usage/colleague-watches.md +1 -1
  239. package/docs/colleague-usage/connected-repositories.md +4 -0
  240. package/docs/colleague-usage/dashboard-navigation.md +4 -4
  241. package/docs/colleague-usage/development-env.md +8 -1
  242. package/docs/colleague-usage/github-work.md +39 -5
  243. package/docs/colleague-usage/health-checks.md +5 -2
  244. package/docs/colleague-usage/publishing.md +7 -6
  245. package/docs/colleague-usage/running-vibe64-on-your-computer.md +9 -0
  246. package/docs/colleague-usage/vibe64-updates.md +10 -0
  247. package/node_modules/@local/vibe64-core/package.json +1 -0
  248. package/node_modules/@local/vibe64-execution/src/host/execHelper.js +587 -584
  249. package/node_modules/@local/vibe64-execution/src/server/gitTurnCheckpointCommand.js +8 -8
  250. package/node_modules/@local/vibe64-execution/src/server/hostProfile.js +10 -10
  251. package/node_modules/@local/vibe64-genesis/package.json +2 -1
  252. package/node_modules/@local/vibe64-genesis/src/server/agentSpecs.js +25 -20
  253. package/node_modules/@local/vibe64-genesis/src/server/index.js +411 -401
  254. package/node_modules/@local/vibe64-genesis/src/server/promptContext.js +74 -67
  255. package/node_modules/@local/vibe64-project/package.json +1 -0
  256. package/node_modules/@local/vibe64-terminals/src/server/sessionWorkOperationCommand.js +680 -676
  257. package/package.json +3 -3
  258. package/server.bundle.mjs +39168 -38944
  259. package/dist/assets/GithubBrowserTabs-CW3GBeJu.js +0 -1
  260. package/dist/assets/SelectField-Df50ZFLj.js +0 -1
  261. package/dist/assets/ShellOutlet-DkLdtzJW.js +0 -1
  262. package/dist/assets/StudioErrorNotice-CQfeUEOD.css +0 -1
  263. package/dist/assets/StudioErrorNotice-vDR4qneB.js +0 -1
  264. package/dist/assets/VAutocomplete-D48FgPMA.css +0 -1
  265. package/dist/assets/VAutocomplete-NpBcbYkR.js +0 -1
  266. package/dist/assets/VBtn-C1plz3b1.css +0 -1
  267. package/dist/assets/VBtn-Com1gNEe.js +0 -1
  268. package/dist/assets/VCard-DY_DdI8Z.js +0 -1
  269. package/dist/assets/VCard-dv-Dc592.css +0 -1
  270. package/dist/assets/VCheckbox-ChRKi1kj.css +0 -1
  271. package/dist/assets/VCheckbox-CkezAf4Z.js +0 -1
  272. package/dist/assets/VCheckboxBtn-8g4R-c2w.js +0 -1
  273. package/dist/assets/VCheckboxBtn-o1O5Bixh.css +0 -1
  274. package/dist/assets/VChip-4Nj-0ztL.css +0 -1
  275. package/dist/assets/VChip-tORFnf7z.js +0 -11
  276. package/dist/assets/VDialog-CapFiCqp.js +0 -1
  277. package/dist/assets/VDialog-DP-kc9Gx.css +0 -1
  278. package/dist/assets/VExpansionPanels-B6U2XdWH.js +0 -1
  279. package/dist/assets/VExpansionPanels-cvCWEkWz.css +0 -1
  280. package/dist/assets/VMenu-CO6B6LWk.js +0 -1
  281. package/dist/assets/VMenu-DCU7zd0B.css +0 -1
  282. package/dist/assets/VOverlay-CrfaXCOL.js +0 -1
  283. package/dist/assets/VOverlay-DG-PukqI.css +0 -1
  284. package/dist/assets/VRadioGroup-BrPW6foD.js +0 -1
  285. package/dist/assets/VRadioGroup-C9f4tbih.css +0 -1
  286. package/dist/assets/VRow-BdVn5u8X.css +0 -1
  287. package/dist/assets/VRow-DHETsEMn.js +0 -1
  288. package/dist/assets/VSelect-gYJ6qrBP.js +0 -1
  289. package/dist/assets/VSelect-yFA6_y4G.css +0 -1
  290. package/dist/assets/VSheet-BbLSwuzR.css +0 -1
  291. package/dist/assets/VSheet-_Grtwpfz.js +0 -1
  292. package/dist/assets/VSkeletonLoader-CQXCEJsR.js +0 -1
  293. package/dist/assets/VSkeletonLoader-DXZarZ9m.css +0 -1
  294. package/dist/assets/VSpacer-DfbUir7X.css +0 -1
  295. package/dist/assets/VSpacer-VLYDmg7o.js +0 -1
  296. package/dist/assets/VSwitch-DAlld-JI.css +0 -1
  297. package/dist/assets/VSwitch-ffi-Y2TU.js +0 -1
  298. package/dist/assets/VTable-Cver5Vl3.js +0 -1
  299. package/dist/assets/VTable-LbK8_KkU.css +0 -1
  300. package/dist/assets/VTextField-DP6b7Qaf.js +0 -1
  301. package/dist/assets/VTextField-F6unyhrS.css +0 -1
  302. package/dist/assets/VTextarea--uW4w6nq.css +0 -1
  303. package/dist/assets/VTextarea-7mdIF4I0.js +0 -1
  304. package/dist/assets/VToolbar-CYz3lneF.js +0 -1
  305. package/dist/assets/Vibe64AsyncModuleState-B68r3Cm5.css +0 -1
  306. package/dist/assets/Vibe64AsyncModuleState-CO1rMrtD.js +0 -1
  307. package/dist/assets/Vibe64AuthSettingsButton-Cksj7FS6.js +0 -5
  308. package/dist/assets/Vibe64ConversationLog-BC0eDtUP.js +0 -9
  309. package/dist/assets/Vibe64ConversationLog-ksf1U6PP.css +0 -1
  310. package/dist/assets/Vibe64DashboardPageHeader-CobvMlFm.js +0 -1
  311. package/dist/assets/Vibe64DashboardShell-D0GNI4V8.css +0 -1
  312. package/dist/assets/Vibe64DashboardShell-DX5dOXAB.js +0 -1
  313. package/dist/assets/Vibe64DestinationButton-B4Zz4a7J.js +0 -1
  314. package/dist/assets/Vibe64DestinationButton-ZxY1Lwie.css +0 -1
  315. package/dist/assets/Vibe64FileArea-EK5yUio3.js +0 -1
  316. package/dist/assets/Vibe64OutputControls--LB4G83q.js +0 -8
  317. package/dist/assets/Vibe64SessionFiles-DVHGc7hd.js +0 -1
  318. package/dist/assets/Vibe64UiStoryboardView-BmABkyG4.js +0 -8
  319. package/dist/assets/Vibe64UnavailableSessions-C6Bkwsqk.js +0 -1
  320. package/dist/assets/Vibe64UnavailableSessions-DQdNuGSD.css +0 -1
  321. package/dist/assets/_pageId_-FjW-3sqF.js +0 -1
  322. package/dist/assets/_plugin-vue_export-helper-DNW4j-dv.js +0 -1
  323. package/dist/assets/_sessionId_-4cH83Bfi.js +0 -1
  324. package/dist/assets/_sessionTool_-CBf51mfK.js +0 -1
  325. package/dist/assets/_slug_-Cazfy5ui.js +0 -14
  326. package/dist/assets/_slug_-DQDycgFK.css +0 -1
  327. package/dist/assets/access-mxcxtn7b.js +0 -1
  328. package/dist/assets/app-8zP_FAuO.js +0 -1
  329. package/dist/assets/assistantRouting-Bbxguvre.js +0 -3
  330. package/dist/assets/asyncModuleRecovery-BALhPqsY.js +0 -1
  331. package/dist/assets/browser-D8z6v6Ge.js +0 -1
  332. package/dist/assets/browserLocalStorage-B4C7rHrs.js +0 -1
  333. package/dist/assets/changes-cmlEyHug.js +0 -1
  334. package/dist/assets/client-BBJzQIWS.css +0 -1
  335. package/dist/assets/client-BJBzomgt.js +0 -1
  336. package/dist/assets/client-C1i-bIgL.js +0 -1
  337. package/dist/assets/client-C7yZ1hEm.js +0 -2
  338. package/dist/assets/client-CM6TGZc9.css +0 -1
  339. package/dist/assets/client-CQ49uWhR.js +0 -2
  340. package/dist/assets/client-D46Uu-YO.js +0 -2
  341. package/dist/assets/client-DKNTl1to.js +0 -2
  342. package/dist/assets/clipboard-CZs9aH3L.js +0 -1
  343. package/dist/assets/conversation-CFJRkeTj.js +0 -12
  344. package/dist/assets/conversation-COcuIkcD.css +0 -1
  345. package/dist/assets/conversation-CexAK3Qk.js +0 -1
  346. package/dist/assets/dashboard-CMtWKazq.js +0 -1
  347. package/dist/assets/deepFreeze-BgoYkoTa.js +0 -1
  348. package/dist/assets/devtools-CN5uWJaH-_xug6686.js +0 -1
  349. package/dist/assets/english-definitions-DiyU9O9D.js +0 -1
  350. package/dist/assets/env-LUc22Wgd.js +0 -1
  351. package/dist/assets/error-BccdQn04.js +0 -1
  352. package/dist/assets/error-DPDAz9Td.js +0 -1
  353. package/dist/assets/errorMessageHelpers-G32Hjqfm.js +0 -1
  354. package/dist/assets/errors-D17nJYne.js +0 -1
  355. package/dist/assets/favicon-B93tlu1U.svg +0 -7
  356. package/dist/assets/fileTypes-iPZyrJA1.js +0 -1
  357. package/dist/assets/health-CfMjMJFf.js +0 -1
  358. package/dist/assets/history-hX_kNskf.js +0 -1
  359. package/dist/assets/httpClient-C71X5grL.js +0 -1
  360. package/dist/assets/i18n-5EHeMSvt.js +0 -1
  361. package/dist/assets/i18n-BSfPKqM3.js +0 -1
  362. package/dist/assets/i18n-DpzQwXg6.js +0 -1
  363. package/dist/assets/i18n-Dq-ep9n7.js +0 -1
  364. package/dist/assets/index-BJWiPV6i.css +0 -1
  365. package/dist/assets/index-FVeEbKiO.js +0 -134
  366. package/dist/assets/integrations-CtnIjM1Y.css +0 -1
  367. package/dist/assets/issues-Bxtt7oqi.js +0 -1
  368. package/dist/assets/layout-DMZV-nbg.js +0 -1
  369. package/dist/assets/lazy-mtFmsnct.js +0 -1
  370. package/dist/assets/learning-BUx9jo91.js +0 -1
  371. package/dist/assets/linkPath-BsiibCNd.js +0 -1
  372. package/dist/assets/normalize-BD25VwNK.js +0 -1
  373. package/dist/assets/pages-5jaEclQo.js +0 -1
  374. package/dist/assets/pages-D43zM2UW.js +0 -1
  375. package/dist/assets/pathname-JHQIKk21.js +0 -1
  376. package/dist/assets/placement-1lT0lW3-.js +0 -1
  377. package/dist/assets/placement-B2V88UDJ.js +0 -1
  378. package/dist/assets/preload-helper-BvdcsxN9.js +0 -1
  379. package/dist/assets/project-files-BX3zZCcl.js +0 -1
  380. package/dist/assets/publish-C9O0tDPB.css +0 -1
  381. package/dist/assets/publish-DatierL2.js +0 -3
  382. package/dist/assets/pull-requests-DNkOjcuy.js +0 -1
  383. package/dist/assets/queryPath-yKLyWw8V.js +0 -1
  384. package/dist/assets/repository-0EKOcyTL.js +0 -1
  385. package/dist/assets/returnToPath-CILshEkc.js +0 -1
  386. package/dist/assets/runtime-core.esm-bundler-Bi1P1jMa.js +0 -1
  387. package/dist/assets/session-FRkCCzYt.js +0 -1
  388. package/dist/assets/settings-DbR9JIc3.js +0 -1
  389. package/dist/assets/shared-B6plZPQ_.js +0 -2
  390. package/dist/assets/shared-DjZEYqzW.js +0 -1
  391. package/dist/assets/studioGateApi-B9EUTtMx.js +0 -1
  392. package/dist/assets/studioUrls-BR4ZL-TN.js +0 -1
  393. package/dist/assets/surface-CBlx7sF_.js +0 -1
  394. package/dist/assets/thinkingText-mMYz6e03.js +0 -8
  395. package/dist/assets/useApi-BPuI6ZR9-rsYWyW6m.js +0 -1
  396. package/dist/assets/useArchivedVibe64Sessions-B8VDhA9F.js +0 -1
  397. package/dist/assets/useAssistantAttachments-C9kAnWqw.js +0 -2
  398. package/dist/assets/useCommand-CfqxMb4C.js +0 -1
  399. package/dist/assets/useEndpointResource-BwGXpV2u.js +0 -1
  400. package/dist/assets/usePaths-CvUbx5-V.js +0 -1
  401. package/dist/assets/useRealtimeEvent-B4oRg9Dt.js +0 -1
  402. package/dist/assets/useUiFeedback-8Wvg7A_S.js +0 -1
  403. package/dist/assets/useVibe64ConversationLog-7wgLlKG5.js +0 -2
  404. package/dist/assets/useVibe64Learning-B9b7aUr-.css +0 -1
  405. package/dist/assets/useVibe64Learning-DkneotqS.js +0 -5
  406. package/dist/assets/useVibe64SessionData-DuJ-dHR8.js +0 -1
  407. package/dist/assets/useVibe64SessionSelection-BwjtqeIR.js +0 -1
  408. package/dist/assets/validators-HqYRjxEO.js +0 -1
  409. package/dist/assets/vibe64ApiResponses-DuJ9mfus.js +0 -1
  410. package/dist/assets/vibe64AssistantHost-CyWUOG-F.js +0 -1
  411. package/dist/assets/vibe64AttachmentDownload-BWRCIKUr.js +0 -1
  412. package/dist/assets/vibe64BrowserTabOrigin-vIN_87mi.js +0 -1
  413. package/dist/assets/vibe64FileUpload-D_rOa1R8.js +0 -1
  414. package/dist/assets/vibe64GithubProject-CJneIo5O.js +0 -1
  415. package/dist/assets/vibe64ProjectScope.local-B9ZpdYlf.js +0 -1
  416. package/dist/assets/vibe64RepositoryRealtime-CRAyGyRD.css +0 -1
  417. package/dist/assets/vibe64RepositoryRealtime-CVGNqwxz.js +0 -1
  418. package/dist/assets/vibe64SavedEnvValues-CCZew0j7.js +0 -1
  419. package/dist/assets/vibe64SessionDebugLog-BfO7tG1A.js +0 -1
  420. package/dist/assets/vibe64SessionFocus-B4diopOJ.js +0 -1
  421. package/dist/assets/vibe64SessionFocus-BCojr4E-.css +0 -1
  422. package/dist/assets/vibe64SessionInfo-D68p7LdH.js +0 -2
  423. package/dist/assets/vibe64SessionPanelModel-B-WkXnPu.js +0 -1
  424. package/dist/assets/vibe64SessionRequestConfig-DVRCRAex.js +0 -1
  425. package/dist/assets/vibe64SessionToolDefinitions-BijEEwqu.js +0 -1
  426. package/dist/assets/vibe64SessionViewModel-CQCds_jb.js +0 -1
  427. package/dist/assets/visibility-Cq31Xy7I.js +0 -1
  428. package/dist/assets/vueRefOrGetterValue-y-4f_In7.js +0 -1
  429. package/dist/assets/windowSizeClass-DQekxFgV.js +0 -1
  430. /package/dist/assets/{Vibe64AuthSettingsButton-DfKYI6ZS.css → project-shared-ShellOutlet-DfKYI6ZS.css} +0 -0
  431. /package/dist/assets/{client-BEV2Ihna.css → project-shared-VBottomSheet-BEV2Ihna.css} +0 -0
  432. /package/dist/assets/{VToolbar-CY3-1Sb0.css → project-shared-VToolbar-CY3-1Sb0.css} +0 -0
  433. /package/dist/assets/{route-block-DbL-SuOj.js → project-shared-route-block-DbL-SuOj.js} +0 -0
@@ -1 +0,0 @@
1
- function makeMap(str){const map=Object.create(null);for(const key of str.split(`,`))map[key]=1;return val=>val in map}var EMPTY_OBJ={};var EMPTY_ARR=[];var NOOP=()=>{};var NO=()=>false;var isOn=key=>key.charCodeAt(0)===111&&key.charCodeAt(1)===110&&(key.charCodeAt(2)>122||key.charCodeAt(2)<97);var isModelListener=key=>key.startsWith(`onUpdate:`);var extend=Object.assign;var remove=(arr,el)=>{const i=arr.indexOf(el);if(i>-1)arr.splice(i,1)};var hasOwnProperty$1=Object.prototype.hasOwnProperty;var hasOwn=(val,key)=>hasOwnProperty$1.call(val,key);var isArray=Array.isArray;var isMap=val=>toTypeString(val)===`[object Map]`;var isSet=val=>toTypeString(val)===`[object Set]`;var isDate=val=>toTypeString(val)===`[object Date]`;var isFunction=val=>typeof val===`function`;var isString=val=>typeof val===`string`;var isSymbol=val=>typeof val===`symbol`;var isObject=val=>val!==null&&typeof val===`object`;var isPromise=val=>{return(isObject(val)||isFunction(val))&&isFunction(val.then)&&isFunction(val.catch)};var objectToString=Object.prototype.toString;var toTypeString=value=>objectToString.call(value);var toRawType=value=>{return toTypeString(value).slice(8,-1)};var isPlainObject=val=>toTypeString(val)===`[object Object]`;var isIntegerKey=key=>isString(key)&&key!==`NaN`&&key[0]!==`-`&&``+parseInt(key,10)===key;var isReservedProp=makeMap(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`);var cacheStringFunction=fn=>{const cache=Object.create(null);return(str=>{return cache[str]||(cache[str]=fn(str))})};var camelizeRE=/-\w/g;var camelize=cacheStringFunction(str=>{return str.replace(camelizeRE,c=>c.slice(1).toUpperCase())});var hyphenateRE=/\B([A-Z])/g;var hyphenate=cacheStringFunction(str=>str.replace(hyphenateRE,`-$1`).toLowerCase());var capitalize=cacheStringFunction(str=>{return str.charAt(0).toUpperCase()+str.slice(1)});var toHandlerKey=cacheStringFunction(str=>{return str?`on${capitalize(str)}`:``});var hasChanged=(value,oldValue)=>!Object.is(value,oldValue);var invokeArrayFns=(fns,...arg)=>{for(let i=0;i<fns.length;i++)fns[i](...arg)};var def=(obj,key,value,writable=false)=>{Object.defineProperty(obj,key,{configurable:true,enumerable:false,writable,value})};var looseToNumber=val=>{const n=parseFloat(val);return isNaN(n)?val:n};var toNumber=val=>{const n=isString(val)?Number(val):NaN;return isNaN(n)?val:n};var _globalThis;var getGlobalThis=()=>{return _globalThis||(_globalThis=typeof globalThis!==`undefined`?globalThis:typeof self!==`undefined`?self:typeof window!==`undefined`?window:typeof global!==`undefined`?global:{})};function normalizeStyle(value){if(isArray(value)){const res={};for(let i=0;i<value.length;i++){const item=value[i];const normalized=isString(item)?parseStringStyle(item):normalizeStyle(item);if(normalized)for(const key in normalized)res[key]=normalized[key]}return res}else if(isString(value)||isObject(value))return value}var listDelimiterRE=/;(?![^(]*\))/g;var propertyDelimiterRE=/:([^]+)/;var styleCommentRE=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function parseStringStyle(cssText){const ret={};cssText.replace(styleCommentRE,match=>match.startsWith(`/*`)?``:match).split(listDelimiterRE).forEach(item=>{if(item){const tmp=item.split(propertyDelimiterRE);tmp.length>1&&(ret[tmp[0].trim()]=tmp[1].trim())}});return ret}function normalizeClass(value){let res=``;if(isString(value))res=value;else if(isArray(value))for(let i=0;i<value.length;i++){const normalized=normalizeClass(value[i]);if(normalized)res+=normalized+` `}else if(isObject(value)){for(const name in value)if(value[name])res+=name+` `}return res.trim()}function normalizeProps(props){if(!props)return null;let{class:klass,style}=props;if(klass&&!isString(klass))props.class=normalizeClass(klass);if(style)props.style=normalizeStyle(style);return props}var specialBooleanAttrs=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly`;var isSpecialBooleanAttr=makeMap(specialBooleanAttrs);var isBooleanAttr=makeMap(specialBooleanAttrs+`,async,autofocus,autoplay,controls,default,defer,disabled,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`);function includeBooleanAttr(value){return!!value||value===``}function looseCompareArrays(a,b,seen){if(a.length!==b.length)return false;let equal=true;for(let i=0;equal&&i<a.length;i++)equal=looseEqual(a[i],b[i],seen);return equal}function looseCompareCollections(a,b,seen){if(a.size!==b.size)return false;const candidates=Array.from(b);const matched=new Uint8Array(candidates.length);for(const item of a){let index=-1;for(let i=0;i<candidates.length;i++)if(!matched[i]&&looseEqual(item,candidates[i],seen)){index=i;break}if(index<0)return false;matched[index]=1}return true}function looseCompareObjects(a,b,seen){let aValidType=isMap(a);let bValidType=isMap(b);if(aValidType||bValidType)return aValidType&&bValidType?looseCompareCollections(a,b,seen):false;aValidType=isSet(a);bValidType=isSet(b);if(aValidType||bValidType)return aValidType&&bValidType?looseCompareCollections(a,b,seen):false;if(Object.keys(a).length!==Object.keys(b).length)return false;for(const key in a){const aHasKey=a.hasOwnProperty(key);const bHasKey=b.hasOwnProperty(key);if(aHasKey&&!bHasKey||!aHasKey&&bHasKey||!looseEqual(a[key],b[key],seen))return false}return String(a)===String(b)}function looseCompareNested(a,b,seen,compare){if(!seen)seen=[new Map,new Map];const[seenA,seenB]=seen;if(seenA.has(a)||seenB.has(b))return seenA.get(a)===b&&seenB.get(b)===a;seenA.set(a,b);seenB.set(b,a);const equal=compare(a,b,seen);seenA.delete(a);seenB.delete(b);return equal}function looseEqual(a,b,seen){if(a===b)return true;let aValidType=isDate(a);let bValidType=isDate(b);if(aValidType||bValidType)return aValidType&&bValidType?a.getTime()===b.getTime():false;aValidType=isSymbol(a);bValidType=isSymbol(b);if(aValidType||bValidType)return a===b;aValidType=isArray(a);bValidType=isArray(b);if(aValidType||bValidType)return aValidType&&bValidType?looseCompareNested(a,b,seen,looseCompareArrays):false;aValidType=isObject(a);bValidType=isObject(b);if(aValidType||bValidType){if(!aValidType||!bValidType)return false;return looseCompareNested(a,b,seen,looseCompareObjects)}return String(a)===String(b)}function looseIndexOf(arr,val){return arr.findIndex(item=>looseEqual(item,val))}var isRef$1=val=>{return!!(val&&val[`__v_isRef`]===true)};var toDisplayString=val=>{return isString(val)?val:val==null?``:isArray(val)||isObject(val)&&(val.toString===objectToString||!isFunction(val.toString))?isRef$1(val)?toDisplayString(val.value):JSON.stringify(val,replacer,2):String(val)};var replacer=(_key,val)=>{if(isRef$1(val))return replacer(_key,val.value);else if(isMap(val))return{[`Map(${val.size})`]:[...val.entries()].reduce((entries,[key,val2],i)=>{entries[stringifySymbol(key,i)+` =>`]=val2;return entries},{})};else if(isSet(val))return{[`Set(${val.size})`]:[...val.values()].map(v=>stringifySymbol(v))};else if(isSymbol(val))return stringifySymbol(val);else if(isObject(val)&&!isArray(val)&&!isPlainObject(val))return String(val);return val};var stringifySymbol=(v,i=``)=>{var _a;return isSymbol(v)?`Symbol(${(_a=v.description)!=null?_a:i})`:v};function normalizeCssVarValue(value){if(value==null)return`initial`;if(typeof value===`string`)return value===``?` `:value;if(typeof value!==`number`||!Number.isFinite(value)){}return String(value)}var activeEffectScope;var EffectScope=class{constructor(detached=false){this.detached=detached;this._active=true;this._on=0;this.effects=[];this.cleanups=[];this._isPaused=false;this._warnOnRun=true;this.__v_skip=true;if(!detached&&activeEffectScope){if(activeEffectScope.active){this.parent=activeEffectScope;this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1}else{this._active=false;this._warnOnRun=false}}}get active(){return this._active}pause(){if(this._active){this._isPaused=true;let i,l;if(this.scopes){const scopes=this.scopes.slice();for(i=0,l=scopes.length;i<l;i++)scopes[i].pause()}for(i=0,l=this.effects.length;i<l;i++)this.effects[i].pause()}}resume(){if(this._active){if(this._isPaused){this._isPaused=false;let i,l;if(this.scopes){const scopes=this.scopes.slice();for(i=0,l=scopes.length;i<l;i++)scopes[i].resume()}const effects=this.effects.slice();for(i=0,l=effects.length;i<l;i++)effects[i].resume()}}}run(fn){if(this._active){const currentEffectScope=activeEffectScope;try{activeEffectScope=this;return fn()}finally{activeEffectScope=currentEffectScope}}}on(){if(++this._on===1){this.prevScope=activeEffectScope;activeEffectScope=this}}off(){if(this._on>0&&--this._on===0){if(activeEffectScope===this)activeEffectScope=this.prevScope;else{let current=activeEffectScope;while(current){if(current.prevScope===this){current.prevScope=this.prevScope;break}current=current.prevScope}}this.prevScope=void 0}}stop(fromParent){if(this._active){this._active=false;let i,l;for(i=0,l=this.effects.length;i<l;i++)this.effects[i].stop();this.effects.length=0;for(i=0,l=this.cleanups.length;i<l;i++)this.cleanups[i]();this.cleanups.length=0;if(this.scopes){const scopes=this.scopes.slice();for(i=0,l=scopes.length;i<l;i++)scopes[i].stop(true);this.scopes.length=0}if(!this.detached&&this.parent&&!fromParent){const last=this.parent.scopes.pop();if(last&&last!==this){this.parent.scopes[this.index]=last;last.index=this.index}}this.parent=void 0}}};function effectScope(detached){return new EffectScope(detached)}function getCurrentScope(){return activeEffectScope}function onScopeDispose(fn,failSilently=false){if(activeEffectScope)activeEffectScope.cleanups.push(fn)}var activeSub;var pausedQueueEffects=new WeakSet;var ReactiveEffect=class{constructor(fn){this.fn=fn;this.deps=void 0;this.depsTail=void 0;this.flags=5;this.next=void 0;this.cleanup=void 0;this.scheduler=void 0;if(activeEffectScope){if(activeEffectScope.active)activeEffectScope.effects.push(this);else this.flags&=-2}}pause(){this.flags|=64}resume(){if(this.flags&64){this.flags&=-65;if(pausedQueueEffects.has(this)){pausedQueueEffects.delete(this);this.trigger()}}}notify(){if(this.flags&2&&!(this.flags&32))return;if(!(this.flags&8))batch(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2;cleanupEffect(this);prepareDeps(this);const prevEffect=activeSub;const prevShouldTrack=shouldTrack;activeSub=this;shouldTrack=true;try{return this.fn()}finally{cleanupDeps(this);activeSub=prevEffect;shouldTrack=prevShouldTrack;this.flags&=-3}}stop(){if(this.flags&1){for(let link=this.deps;link;link=link.nextDep)removeSub(link);this.deps=this.depsTail=void 0;cleanupEffect(this);this.onStop&&this.onStop();this.flags&=-2}}trigger(){if(this.flags&64)pausedQueueEffects.add(this);else if(this.scheduler)this.scheduler();else this.runIfDirty()}runIfDirty(){if(isDirty(this))this.run()}get dirty(){return isDirty(this)}};var batchDepth=0;var batchedSub;var batchedComputed;function batch(sub,isComputed=false){sub.flags|=8;if(isComputed){sub.next=batchedComputed;batchedComputed=sub;return}sub.next=batchedSub;batchedSub=sub}function startBatch(){batchDepth++}function endBatch(){if(--batchDepth>0)return;if(batchedComputed){let e=batchedComputed;batchedComputed=void 0;while(e){const next=e.next;e.next=void 0;e.flags&=-9;e=next}}let error;while(batchedSub){let e=batchedSub;batchedSub=void 0;while(e){const next=e.next;e.next=void 0;e.flags&=-9;if(e.flags&1)try{e.trigger()}catch(err){if(!error)error=err}e=next}}if(error)throw error}function prepareDeps(sub){for(let link=sub.deps;link;link=link.nextDep){link.version=-1;link.prevActiveLink=link.dep.activeLink;link.dep.activeLink=link}}function cleanupDeps(sub){let head;let tail=sub.depsTail;let link=tail;while(link){const prev=link.prevDep;if(link.version===-1){if(link===tail)tail=prev;removeSub(link);removeDep(link)}else head=link;link.dep.activeLink=link.prevActiveLink;link.prevActiveLink=void 0;link=prev}sub.deps=head;sub.depsTail=tail}function isDirty(sub){for(let link=sub.deps;link;link=link.nextDep)if(link.dep.version!==link.version||link.dep.computed&&(refreshComputed(link.dep.computed)||link.dep.version!==link.version))return true;if(sub._dirty)return true;return false}function refreshComputed(computed){if(computed.flags&4&&!(computed.flags&16))return;computed.flags&=-17;if(computed.globalVersion===globalVersion)return;computed.globalVersion=globalVersion;if(!computed.isSSR&&computed.flags&128&&(!computed.deps&&!computed._dirty||!isDirty(computed)))return;computed.flags|=2;const dep=computed.dep;const prevSub=activeSub;const prevShouldTrack=shouldTrack;activeSub=computed;shouldTrack=true;try{prepareDeps(computed);const value=computed.fn(computed._value);if(dep.version===0||hasChanged(value,computed._value)){computed.flags|=128;computed._value=value;dep.version++}}catch(err){dep.version++;throw err}finally{activeSub=prevSub;shouldTrack=prevShouldTrack;cleanupDeps(computed);computed.flags&=-3}}function removeSub(link,soft=false){const{dep,prevSub,nextSub}=link;if(prevSub){prevSub.nextSub=nextSub;link.prevSub=void 0}if(nextSub){nextSub.prevSub=prevSub;link.nextSub=void 0}if(dep.subs===link){dep.subs=prevSub;if(!prevSub&&dep.computed){dep.computed.flags&=-5;for(let l=dep.computed.deps;l;l=l.nextDep)removeSub(l,true)}}if(!soft&&!--dep.sc&&dep.map)dep.map.delete(dep.key)}function removeDep(link){const{prevDep,nextDep}=link;if(prevDep){prevDep.nextDep=nextDep;link.prevDep=void 0}if(nextDep){nextDep.prevDep=prevDep;link.nextDep=void 0}}var shouldTrack=true;var trackStack=[];function pauseTracking(){trackStack.push(shouldTrack);shouldTrack=false}function resetTracking(){const last=trackStack.pop();shouldTrack=last===void 0?true:last}function cleanupEffect(e){const{cleanup}=e;e.cleanup=void 0;if(cleanup){const prevSub=activeSub;activeSub=void 0;try{cleanup()}finally{activeSub=prevSub}}}var globalVersion=0;var Link=class{constructor(sub,dep){this.sub=sub;this.dep=dep;this.version=dep.version;this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};var Dep=class{constructor(computed){this.computed=computed;this.version=0;this.activeLink=void 0;this.subs=void 0;this.map=void 0;this.key=void 0;this.sc=0;this.__v_skip=true}track(debugInfo){if(!activeSub||!shouldTrack||activeSub===this.computed)return;let link=this.activeLink;if(link===void 0||link.sub!==activeSub){link=this.activeLink=new Link(activeSub,this);if(!activeSub.deps)activeSub.deps=activeSub.depsTail=link;else{link.prevDep=activeSub.depsTail;activeSub.depsTail.nextDep=link;activeSub.depsTail=link}addSub(link)}else if(link.version===-1){link.version=this.version;if(link.nextDep){const next=link.nextDep;next.prevDep=link.prevDep;if(link.prevDep)link.prevDep.nextDep=next;link.prevDep=activeSub.depsTail;link.nextDep=void 0;activeSub.depsTail.nextDep=link;activeSub.depsTail=link;if(activeSub.deps===link)activeSub.deps=next}}return link}trigger(debugInfo){this.version++;globalVersion++;this.notify(debugInfo)}notify(debugInfo){startBatch();try{for(let link=this.subs;link;link=link.prevSub)if(link.sub.notify())link.sub.dep.notify()}finally{endBatch()}}};function addSub(link){link.dep.sc++;if(link.sub.flags&4){const computed=link.dep.computed;if(computed&&!link.dep.subs){computed.flags|=20;for(let l=computed.deps;l;l=l.nextDep)addSub(l)}const currentTail=link.dep.subs;if(currentTail!==link){link.prevSub=currentTail;if(currentTail)currentTail.nextSub=link}link.dep.subs=link}}var targetMap=new WeakMap;var ITERATE_KEY=Symbol(``);var MAP_KEY_ITERATE_KEY=Symbol(``);var ARRAY_ITERATE_KEY=Symbol(``);function track(target,type,key){if(shouldTrack&&activeSub){let depsMap=targetMap.get(target);if(!depsMap)targetMap.set(target,depsMap=new Map);let dep=depsMap.get(key);if(!dep){depsMap.set(key,dep=new Dep);dep.map=depsMap;dep.key=key}dep.track()}}function trigger(target,type,key,newValue,oldValue,oldTarget){const depsMap=targetMap.get(target);if(!depsMap){globalVersion++;return}const run=dep=>{if(dep)dep.trigger()};startBatch();if(type===`clear`)depsMap.forEach(run);else{const targetIsArray=isArray(target);const isArrayIndex=targetIsArray&&isIntegerKey(key);if(targetIsArray&&key===`length`){const newLength=Number(newValue);depsMap.forEach((dep,key2)=>{if(key2===`length`||key2===ARRAY_ITERATE_KEY||!isSymbol(key2)&&key2>=newLength)run(dep)})}else{if(key!==void 0||depsMap.has(void 0))run(depsMap.get(key));if(isArrayIndex)run(depsMap.get(ARRAY_ITERATE_KEY));switch(type){case`add`:if(!targetIsArray){run(depsMap.get(ITERATE_KEY));if(isMap(target))run(depsMap.get(MAP_KEY_ITERATE_KEY))}else if(isArrayIndex)run(depsMap.get(`length`));break;case`delete`:if(!targetIsArray){run(depsMap.get(ITERATE_KEY));if(isMap(target))run(depsMap.get(MAP_KEY_ITERATE_KEY))}break;case`set`:if(isMap(target))run(depsMap.get(ITERATE_KEY))}}}endBatch()}function getDepFromReactive(object,key){const depMap=targetMap.get(object);return depMap&&depMap.get(key)}function reactiveReadArray(array){const raw=toRaw(array);if(raw===array)return raw;track(raw,`iterate`,ARRAY_ITERATE_KEY);if(isShallow(array))return raw;if(!isReadonly(array))return raw.map(toReactive);return isReactive(array)?raw.map(item=>toReadonly(toReactive(item))):raw.map(toReadonly)}function shallowReadArray(arr){track(arr=toRaw(arr),`iterate`,ARRAY_ITERATE_KEY);return arr}function toWrapped(target,item){if(isReadonly(target))return isReactive(target)?toReadonly(toReactive(item)):toReadonly(item);return toReactive(item)}var arrayInstrumentations={__proto__:null,[Symbol.iterator](){return iterator(this,Symbol.iterator,item=>toWrapped(this,item))},concat(...args){return reactiveReadArray(this).concat(...args.map(x=>isArray(x)?reactiveReadArray(x):x))},entries(){return iterator(this,`entries`,value=>{value[1]=toWrapped(this,value[1]);return value})},every(fn,thisArg){return apply(this,`every`,fn,thisArg,void 0,arguments)},filter(fn,thisArg){return apply(this,`filter`,fn,thisArg,v=>v.map(item=>toWrapped(this,item)),arguments)},find(fn,thisArg){return apply(this,`find`,fn,thisArg,item=>toWrapped(this,item),arguments)},findIndex(fn,thisArg){return apply(this,`findIndex`,fn,thisArg,void 0,arguments)},findLast(fn,thisArg){return apply(this,`findLast`,fn,thisArg,item=>toWrapped(this,item),arguments)},findLastIndex(fn,thisArg){return apply(this,`findLastIndex`,fn,thisArg,void 0,arguments)},forEach(fn,thisArg){return apply(this,`forEach`,fn,thisArg,void 0,arguments)},includes(...args){return searchProxy(this,`includes`,args)},indexOf(...args){return searchProxy(this,`indexOf`,args)},join(separator){return reactiveReadArray(this).join(separator)},lastIndexOf(...args){return searchProxy(this,`lastIndexOf`,args)},map(fn,thisArg){return apply(this,`map`,fn,thisArg,void 0,arguments)},pop(){return noTracking(this,`pop`)},push(...args){return noTracking(this,`push`,args)},reduce(fn,...args){return reduce(this,`reduce`,fn,args)},reduceRight(fn,...args){return reduce(this,`reduceRight`,fn,args)},shift(){return noTracking(this,`shift`)},some(fn,thisArg){return apply(this,`some`,fn,thisArg,void 0,arguments)},splice(...args){return noTracking(this,`splice`,args)},toReversed(){return reactiveReadArray(this).toReversed()},toSorted(comparer){return reactiveReadArray(this).toSorted(comparer)},toSpliced(...args){return reactiveReadArray(this).toSpliced(...args)},unshift(...args){return noTracking(this,`unshift`,args)},values(){return iterator(this,`values`,item=>toWrapped(this,item))}};function iterator(self,method,wrapValue){const arr=shallowReadArray(self);const methodFn=arr[method];const iter=methodFn.call(arr);if(arr!==self&&!isShallow(self)){if(iter[Symbol.toStringTag]===`Array Iterator`){const wrapped=Object.create(Object.getPrototypeOf(iter));wrapped.next=()=>wrapResult(iter.next(),wrapValue);if(methodFn!==arrayProto[method])Object.defineProperties(wrapped,{return:{get(){const fn=iter.return;return typeof fn===`function`?fn.bind(iter):fn}},throw:{get(){const fn=iter.throw;return typeof fn===`function`?fn.bind(iter):fn}}});return wrapped}iter._next=iter.next;iter.next=()=>wrapResult(iter._next(),wrapValue)}return iter}function wrapResult(result,wrapValue){if(!result.done)result.value=wrapValue(result.value);return result}var arrayProto=Array.prototype;function apply(self,method,fn,thisArg,wrappedRetFn,args){const arr=shallowReadArray(self);const needsWrap=arr!==self&&!isShallow(self);const methodFn=arr[method];if(methodFn!==arrayProto[method]){const result2=methodFn.apply(self,args);return needsWrap?toReactive(result2):result2}let wrappedFn=fn;if(arr!==self){if(needsWrap)wrappedFn=function(item,index){return fn.call(this,toWrapped(self,item),index,self)};else if(fn.length>2)wrappedFn=function(item,index){return fn.call(this,item,index,self)}}const result=methodFn.call(arr,wrappedFn,thisArg);return needsWrap&&wrappedRetFn?wrappedRetFn(result):result}function reduce(self,method,fn,args){const arr=shallowReadArray(self);const needsWrap=arr!==self&&!isShallow(self);let wrappedFn=fn;let wrapInitialAccumulator=false;if(arr!==self){if(needsWrap){wrapInitialAccumulator=args.length===0;wrappedFn=function(acc,item,index){if(wrapInitialAccumulator){wrapInitialAccumulator=false;acc=toWrapped(self,acc)}return fn.call(this,acc,toWrapped(self,item),index,self)}}else if(fn.length>3)wrappedFn=function(acc,item,index){return fn.call(this,acc,item,index,self)}}const result=arr[method](wrappedFn,...args);return wrapInitialAccumulator?toWrapped(self,result):result}function searchProxy(self,method,args){const arr=toRaw(self);track(arr,`iterate`,ARRAY_ITERATE_KEY);const res=arr[method](...args);if((res===-1||res===false)&&isProxy(args[0])){args[0]=toRaw(args[0]);return arr[method](...args)}return res}function noTracking(self,method,args=[]){pauseTracking();startBatch();const res=toRaw(self)[method].apply(self,args);endBatch();resetTracking();return res}var isNonTrackableKeys=makeMap(`__proto__,__v_isRef,__isVue`);var builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(key=>key!==`arguments`&&key!==`caller`).map(key=>Symbol[key]).filter(isSymbol));function hasOwnProperty(key){if(!isSymbol(key))key=String(key);const obj=toRaw(this);track(obj,`has`,key);return obj.hasOwnProperty(key)}var BaseReactiveHandler=class{constructor(_isReadonly=false,_isShallow=false){this._isReadonly=_isReadonly;this._isShallow=_isShallow}get(target,key,receiver){if(key===`__v_skip`)return target[`__v_skip`];const isReadonly2=this._isReadonly,isShallow2=this._isShallow;if(key===`__v_isReactive`)return!isReadonly2;else if(key===`__v_isReadonly`)return isReadonly2;else if(key===`__v_isShallow`)return isShallow2;else if(key===`__v_raw`){if(receiver===(isReadonly2?isShallow2?shallowReadonlyMap:readonlyMap:isShallow2?shallowReactiveMap:reactiveMap).get(target)||Object.getPrototypeOf(target)===Object.getPrototypeOf(receiver))return target;return}const targetIsArray=isArray(target);if(!isReadonly2){let fn;if(targetIsArray&&(fn=arrayInstrumentations[key]))return fn;if(key===`hasOwnProperty`)return hasOwnProperty}const res=Reflect.get(target,key,isRef(target)?target:receiver);if(isSymbol(key)?builtInSymbols.has(key):isNonTrackableKeys(key))return res;if(!isReadonly2)track(target,`get`,key);if(isShallow2)return res;if(isRef(res)){const value=targetIsArray&&isIntegerKey(key)?res:res.value;return isReadonly2&&isObject(value)?readonly(value):value}if(isObject(res))return isReadonly2?readonly(res):reactive(res);return res}};var MutableReactiveHandler=class extends BaseReactiveHandler{constructor(isShallow2=false){super(false,isShallow2)}set(target,key,value,receiver){let oldValue=target[key];const isArrayWithIntegerKey=isArray(target)&&isIntegerKey(key);if(!this._isShallow){const isOldValueReadonly=isReadonly(oldValue);if(!isShallow(value)&&!isReadonly(value)){oldValue=toRaw(oldValue);value=toRaw(value)}if(!isArrayWithIntegerKey&&isRef(oldValue)&&!isRef(value)){if(isOldValueReadonly)return true;else{oldValue.value=value;return true}}}const hadKey=isArrayWithIntegerKey?Number(key)<target.length:hasOwn(target,key);const result=Reflect.set(target,key,value,isRef(target)?target:receiver);if(target===toRaw(receiver)&&result){if(!hadKey)trigger(target,`add`,key,value);else if(hasChanged(value,oldValue))trigger(target,`set`,key,value,oldValue)}return result}deleteProperty(target,key){const hadKey=hasOwn(target,key);const oldValue=target[key];const result=Reflect.deleteProperty(target,key);if(result&&hadKey)trigger(target,`delete`,key,void 0,oldValue);return result}has(target,key){const result=Reflect.has(target,key);if(!isSymbol(key)||!builtInSymbols.has(key))track(target,`has`,key);return result}ownKeys(target){track(target,`iterate`,isArray(target)?`length`:ITERATE_KEY);return Reflect.ownKeys(target)}};var ReadonlyReactiveHandler=class extends BaseReactiveHandler{constructor(isShallow2=false){super(true,isShallow2)}set(target,key){return true}deleteProperty(target,key){return true}};var mutableHandlers=new MutableReactiveHandler;var readonlyHandlers=new ReadonlyReactiveHandler;var shallowReactiveHandlers=new MutableReactiveHandler(true);var shallowReadonlyHandlers=new ReadonlyReactiveHandler(true);var toShallow=value=>value;var getProto=v=>Reflect.getPrototypeOf(v);function createIterableMethod(method,isReadonly2,isShallow2){return function(...args){const target=this[`__v_raw`];const rawTarget=toRaw(target);const targetIsMap=isMap(rawTarget);const isPair=method===`entries`||method===Symbol.iterator&&targetIsMap;const isKeyOnly=method===`keys`&&targetIsMap;const innerIterator=target[method](...args);const wrap=isShallow2?toShallow:isReadonly2?toReadonly:toReactive;!isReadonly2&&track(rawTarget,`iterate`,isKeyOnly?MAP_KEY_ITERATE_KEY:ITERATE_KEY);return extend(Object.create(innerIterator),{next(){const{value,done}=innerIterator.next();return done?{value,done}:{value:isPair?[wrap(value[0]),wrap(value[1])]:wrap(value),done}}})}}function createReadonlyMethod(type){return function(...args){return type===`delete`?false:type===`clear`?void 0:this}}function createInstrumentations(readonly,shallow){const instrumentations={get(key){const target=this[`__v_raw`];const rawTarget=toRaw(target);const rawKey=toRaw(key);if(!readonly){if(hasChanged(key,rawKey))track(rawTarget,`get`,key);track(rawTarget,`get`,rawKey)}const{has}=getProto(rawTarget);const wrap=shallow?toShallow:readonly?toReadonly:toReactive;if(has.call(rawTarget,key))return wrap(target.get(key));else if(has.call(rawTarget,rawKey))return wrap(target.get(rawKey));else if(target!==rawTarget)target.get(key)},get size(){const target=this[`__v_raw`];!readonly&&track(toRaw(target),`iterate`,ITERATE_KEY);return target.size},has(key){const target=this[`__v_raw`];const rawTarget=toRaw(target);const rawKey=toRaw(key);if(!readonly){if(hasChanged(key,rawKey))track(rawTarget,`has`,key);track(rawTarget,`has`,rawKey)}return key===rawKey?target.has(key):target.has(key)||target.has(rawKey)},forEach(callback,thisArg){const observed=this;const target=observed[`__v_raw`];const rawTarget=toRaw(target);const wrap=shallow?toShallow:readonly?toReadonly:toReactive;!readonly&&track(rawTarget,`iterate`,ITERATE_KEY);return target.forEach((value,key)=>{return callback.call(thisArg,wrap(value),wrap(key),observed)})}};extend(instrumentations,readonly?{add:createReadonlyMethod(`add`),set:createReadonlyMethod(`set`),delete:createReadonlyMethod(`delete`),clear:createReadonlyMethod(`clear`)}:{add(value){const target=toRaw(this);const proto=getProto(target);const rawValue=toRaw(value);const valueToAdd=!shallow&&!isShallow(value)&&!isReadonly(value)?rawValue:value;if(!(proto.has.call(target,valueToAdd)||hasChanged(value,valueToAdd)&&proto.has.call(target,value)||hasChanged(rawValue,valueToAdd)&&proto.has.call(target,rawValue))){target.add(valueToAdd);trigger(target,`add`,valueToAdd,valueToAdd)}return this},set(key,value){if(!shallow&&!isShallow(value)&&!isReadonly(value))value=toRaw(value);const target=toRaw(this);const{has,get}=getProto(target);let hadKey=has.call(target,key);if(!hadKey){key=toRaw(key);hadKey=has.call(target,key)}const oldValue=get.call(target,key);target.set(key,value);if(!hadKey)trigger(target,`add`,key,value);else if(hasChanged(value,oldValue))trigger(target,`set`,key,value,oldValue);return this},delete(key){const target=toRaw(this);const{has,get}=getProto(target);let hadKey=has.call(target,key);if(!hadKey){key=toRaw(key);hadKey=has.call(target,key)}const oldValue=get?get.call(target,key):void 0;const result=target.delete(key);if(hadKey)trigger(target,`delete`,key,void 0,oldValue);return result},clear(){const target=toRaw(this);const hadItems=target.size!==0;const oldTarget=void 0;const result=target.clear();if(hadItems)trigger(target,`clear`,void 0,void 0,oldTarget);return result}});[`keys`,`values`,`entries`,Symbol.iterator].forEach(method=>{instrumentations[method]=createIterableMethod(method,readonly,shallow)});return instrumentations}function createInstrumentationGetter(isReadonly2,shallow){const instrumentations=createInstrumentations(isReadonly2,shallow);return(target,key,receiver)=>{if(key===`__v_isReactive`)return!isReadonly2;else if(key===`__v_isReadonly`)return isReadonly2;else if(key===`__v_isShallow`)return shallow;else if(key===`__v_raw`)return target;return Reflect.get(hasOwn(instrumentations,key)&&key in target?instrumentations:target,key,receiver)}}var mutableCollectionHandlers={get:createInstrumentationGetter(false,false)};var shallowCollectionHandlers={get:createInstrumentationGetter(false,true)};var readonlyCollectionHandlers={get:createInstrumentationGetter(true,false)};var shallowReadonlyCollectionHandlers={get:createInstrumentationGetter(true,true)};var reactiveMap=new WeakMap;var shallowReactiveMap=new WeakMap;var readonlyMap=new WeakMap;var shallowReadonlyMap=new WeakMap;function targetTypeMap(rawType){switch(rawType){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function reactive(target){if(isReadonly(target))return target;return createReactiveObject(target,false,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(target){return createReactiveObject(target,false,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(target){return createReactiveObject(target,true,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly(target){return createReactiveObject(target,true,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject(target,isReadonly2,baseHandlers,collectionHandlers,proxyMap){if(!isObject(target))return target;if(target[`__v_raw`]&&!(isReadonly2&&target[`__v_isReactive`]))return target;if(target[`__v_skip`]||!Object.isExtensible(target))return target;const existingProxy=proxyMap.get(target);if(existingProxy)return existingProxy;const targetType=targetTypeMap(toRawType(target));if(targetType===0)return target;const proxy=new Proxy(target,targetType===2?collectionHandlers:baseHandlers);proxyMap.set(target,proxy);return proxy}function isReactive(value){if(isReadonly(value))return isReactive(value[`__v_raw`]);return!!(value&&value[`__v_isReactive`])}function isReadonly(value){return!!(value&&value[`__v_isReadonly`])}function isShallow(value){return!!(value&&value[`__v_isShallow`])}function isProxy(value){return value?!!value[`__v_raw`]:false}function toRaw(observed){const raw=observed&&observed[`__v_raw`];return raw?toRaw(raw):observed}function markRaw(value){if(!hasOwn(value,`__v_skip`)&&Object.isExtensible(value))def(value,`__v_skip`,true);return value}var toReactive=value=>isObject(value)?reactive(value):value;var toReadonly=value=>isObject(value)?readonly(value):value;function isRef(r){return r?r[`__v_isRef`]===true:false}function ref(value){return createRef(value,false)}function shallowRef(value){return createRef(value,true)}function createRef(rawValue,shallow){if(isRef(rawValue))return rawValue;return new RefImpl(rawValue,shallow)}var RefImpl=class{constructor(value,isShallow2){this.dep=new Dep;this[`__v_isRef`]=true;this[`__v_isShallow`]=false;this._rawValue=isShallow2?value:toRaw(value);this._value=isShallow2?value:toReactive(value);this[`__v_isShallow`]=isShallow2}get value(){this.dep.track();return this._value}set value(newValue){const oldValue=this._rawValue;const useDirectValue=this[`__v_isShallow`]||isShallow(newValue)||isReadonly(newValue);newValue=useDirectValue?newValue:toRaw(newValue);if(hasChanged(newValue,oldValue)){this._rawValue=newValue;this._value=useDirectValue?newValue:toReactive(newValue);this.dep.trigger()}}};function unref(ref2){return isRef(ref2)?ref2.value:ref2}function toValue(source){return isFunction(source)?source():unref(source)}var shallowUnwrapHandlers={get:(target,key,receiver)=>key===`__v_raw`?target:unref(Reflect.get(target,key,receiver)),set:(target,key,value,receiver)=>{const oldValue=target[key];if(isRef(oldValue)&&!isRef(value)){oldValue.value=value;return true}else return Reflect.set(target,key,value,receiver)}};function proxyRefs(objectWithRefs){return isReactive(objectWithRefs)?objectWithRefs:new Proxy(objectWithRefs,shallowUnwrapHandlers)}var CustomRefImpl=class{constructor(factory){this[`__v_isRef`]=true;this._value=void 0;const dep=this.dep=new Dep;const{get,set}=factory(dep.track.bind(dep),dep.trigger.bind(dep));this._get=get;this._set=set}get value(){return this._value=this._get()}set value(newVal){this._set(newVal)}};function customRef(factory){return new CustomRefImpl(factory)}function toRefs(object){const ret=isArray(object)?new Array(object.length):{};for(const key in object)ret[key]=propertyToRef(object,key);return ret}var ObjectRefImpl=class{constructor(_object,key,_defaultValue){this._object=_object;this._defaultValue=_defaultValue;this[`__v_isRef`]=true;this._value=void 0;this._key=isSymbol(key)?key:String(key);this._raw=toRaw(_object);let shallow=true;let obj=_object;if(!isArray(_object)||isSymbol(this._key)||!isIntegerKey(this._key))do shallow=!isProxy(obj)||isShallow(obj);while(shallow&&(obj=obj[`__v_raw`]));this._shallow=shallow}get value(){let val=this._object[this._key];if(this._shallow)val=unref(val);return this._value=val===void 0?this._defaultValue:val}set value(newVal){if(this._shallow&&isRef(this._raw[this._key])){const nestedRef=this._object[this._key];if(isRef(nestedRef)){nestedRef.value=newVal;return}}this._object[this._key]=newVal}get dep(){return getDepFromReactive(this._raw,this._key)}};var GetterRefImpl=class{constructor(_getter){this._getter=_getter;this[`__v_isRef`]=true;this[`__v_isReadonly`]=true;this._value=void 0}get value(){return this._value=this._getter()}};function toRef(source,key,defaultValue){if(isRef(source))return source;else if(isFunction(source))return new GetterRefImpl(source);else if(isObject(source)&&arguments.length>1)return propertyToRef(source,key,defaultValue);else return ref(source)}function propertyToRef(source,key,defaultValue){return new ObjectRefImpl(source,key,defaultValue)}var ComputedRefImpl=class{constructor(fn,setter,isSSR){this.fn=fn;this.setter=setter;this._value=void 0;this.dep=new Dep(this);this.__v_isRef=true;this.deps=void 0;this.depsTail=void 0;this.flags=16;this.globalVersion=globalVersion-1;this.next=void 0;this.effect=this;this[`__v_isReadonly`]=!setter;this.isSSR=isSSR}notify(){this.flags|=16;if(!(this.flags&8)&&activeSub!==this){batch(this,true);return true}}get value(){const link=this.dep.track();refreshComputed(this);if(link)link.version=this.dep.version;return this._value}set value(newValue){if(this.setter)this.setter(newValue)}};function computed$1(getterOrOptions,debugOptions,isSSR=false){let getter;let setter;if(isFunction(getterOrOptions))getter=getterOrOptions;else{getter=getterOrOptions.get;setter=getterOrOptions.set}return new ComputedRefImpl(getter,setter,isSSR)}var INITIAL_WATCHER_VALUE={};var cleanupMap=new WeakMap;var activeWatcher=void 0;function onWatcherCleanup(cleanupFn,failSilently=false,owner=activeWatcher){if(owner){let cleanups=cleanupMap.get(owner);if(!cleanups)cleanupMap.set(owner,cleanups=[]);cleanups.push(cleanupFn)}}function watch$1(source,cb,options=EMPTY_OBJ){const{immediate,deep,once,scheduler,augmentJob,call}=options;const reactiveGetter=source2=>{if(deep)return source2;if(isShallow(source2)||deep===false||deep===0)return traverse(source2,1);return traverse(source2)};let effect;let getter;let cleanup;let boundCleanup;let forceTrigger=false;let isMultiSource=false;if(isRef(source)){getter=()=>source.value;forceTrigger=isShallow(source)}else if(isReactive(source)){getter=()=>reactiveGetter(source);forceTrigger=true}else if(isArray(source)){isMultiSource=true;forceTrigger=source.some(s=>isReactive(s)||isShallow(s));getter=()=>source.map(s=>{if(isRef(s))return s.value;else if(isReactive(s))return reactiveGetter(s);else if(isFunction(s))return call?call(s,2):s()})}else if(isFunction(source)){if(cb)getter=call?()=>call(source,2):source;else getter=()=>{if(cleanup){pauseTracking();try{cleanup()}finally{resetTracking()}}const currentEffect=activeWatcher;activeWatcher=effect;try{return call?call(source,3,[boundCleanup]):source(boundCleanup)}finally{activeWatcher=currentEffect}}}else getter=NOOP;if(cb&&deep){const baseGetter=getter;const depth=deep===true?Infinity:deep;getter=()=>traverse(baseGetter(),depth)}const scope=getCurrentScope();const watchHandle=()=>{effect.stop();if(scope&&scope.active)remove(scope.effects,effect)};if(once&&cb){const _cb=cb;cb=(...args)=>{try{return _cb(...args)}finally{watchHandle()}}}let oldValue=isMultiSource?new Array(source.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const job=immediateFirstRun=>{if(!(effect.flags&1)||!effect.dirty&&!immediateFirstRun)return;if(cb){const newValue=effect.run();if(immediateFirstRun||deep||forceTrigger||(isMultiSource?newValue.some((v,i)=>hasChanged(v,oldValue[i])):hasChanged(newValue,oldValue))){const currentWatcher=activeWatcher;pauseTracking();try{if(cleanup)cleanup();activeWatcher=effect;const args=[newValue,oldValue===INITIAL_WATCHER_VALUE?void 0:isMultiSource&&oldValue[0]===INITIAL_WATCHER_VALUE?[]:oldValue,boundCleanup];oldValue=newValue;call?call(cb,3,args):cb(...args)}finally{activeWatcher=currentWatcher;resetTracking()}}}else effect.run()};if(augmentJob)augmentJob(job);effect=new ReactiveEffect(getter);effect.scheduler=scheduler?()=>scheduler(job,false):job;boundCleanup=fn=>onWatcherCleanup(fn,false,effect);cleanup=effect.onStop=()=>{const cleanups=cleanupMap.get(effect);if(cleanups){if(call)call(cleanups,4);else for(const cleanup2 of cleanups)cleanup2();cleanupMap.delete(effect)}};if(cb){if(immediate)job(true);else oldValue=effect.run()}else if(scheduler)scheduler(job.bind(null,true),true);else effect.run();watchHandle.pause=effect.pause.bind(effect);watchHandle.resume=effect.resume.bind(effect);watchHandle.stop=watchHandle;return watchHandle}function traverse(value,depth=Infinity,seen){if(depth<=0||!isObject(value)||value[`__v_skip`])return value;seen=seen||new Map;if((seen.get(value)||0)>=depth)return value;seen.set(value,depth);depth--;if(isRef(value))traverse(value.value,depth,seen);else if(isArray(value))for(let i=0;i<value.length;i++)traverse(value[i],depth,seen);else if(isSet(value)||isMap(value))value.forEach(v=>{traverse(v,depth,seen)});else if(isPlainObject(value)){for(const key in value)traverse(value[key],depth,seen);for(const key of Object.getOwnPropertySymbols(value))if(Object.prototype.propertyIsEnumerable.call(value,key))traverse(value[key],depth,seen)}return value}function callWithErrorHandling(fn,instance,type,args){try{return args?fn(...args):fn()}catch(err){handleError(err,instance,type)}}function callWithAsyncErrorHandling(fn,instance,type,args){if(isFunction(fn)){const res=callWithErrorHandling(fn,instance,type,args);if(res&&isPromise(res))res.catch(err=>{handleError(err,instance,type)});return res}if(isArray(fn)){const values=[];for(let i=0;i<fn.length;i++)values.push(callWithAsyncErrorHandling(fn[i],instance,type,args));return values}}function handleError(err,instance,type,throwInDev=true){const contextVNode=instance?instance.vnode:null;const{errorHandler,throwUnhandledErrorInProduction}=instance&&instance.appContext.config||EMPTY_OBJ;if(instance){let cur=instance.parent;const exposedInstance=instance.proxy;const errorInfo=`https://vuejs.org/error-reference/#runtime-${type}`;while(cur){const errorCapturedHooks=cur.ec;if(errorCapturedHooks){for(let i=0;i<errorCapturedHooks.length;i++)if(errorCapturedHooks[i](err,exposedInstance,errorInfo)===false)return}cur=cur.parent}if(errorHandler){pauseTracking();callWithErrorHandling(errorHandler,null,10,[err,exposedInstance,errorInfo]);resetTracking();return}}logError(err,type,contextVNode,throwInDev,throwUnhandledErrorInProduction)}function logError(err,type,contextVNode,throwInDev=true,throwInProd=false){if(throwInProd)throw err;else console.error(err)}var queue=[];var flushIndex=-1;var pendingPostFlushCbs=[];var activePostFlushCbs=null;var postFlushIndex=0;var resolvedPromise=Promise.resolve();var currentFlushPromise=null;function nextTick(fn){const p=currentFlushPromise||resolvedPromise;return fn?p.then(this?fn.bind(this):fn):p}function findInsertionIndex(id){let start=flushIndex+1;let end=queue.length;while(start<end){const middle=start+end>>>1;const middleJob=queue[middle];const middleJobId=getId(middleJob);if(middleJobId<id||middleJobId===id&&middleJob.flags&2)start=middle+1;else end=middle}return start}function queueJob(job){if(!(job.flags&1)){const jobId=getId(job);const lastJob=queue[queue.length-1];if(!lastJob||!(job.flags&2)&&jobId>=getId(lastJob))queue.push(job);else queue.splice(findInsertionIndex(jobId),0,job);job.flags|=1;queueFlush()}}function queueFlush(){if(!currentFlushPromise)currentFlushPromise=resolvedPromise.then(flushJobs)}function queuePostFlushCb(cb){if(!isArray(cb)){if(activePostFlushCbs&&cb.id===-1)activePostFlushCbs.splice(postFlushIndex+1,0,cb);else if(!(cb.flags&1)){pendingPostFlushCbs.push(cb);cb.flags|=1}}else for(let i=0;i<cb.length;i++)pendingPostFlushCbs.push(cb[i]);queueFlush()}function flushPreFlushCbs(instance,minUid,seen,i=flushIndex+1){for(;i<queue.length;i++){const cb=queue[i];if(cb&&cb.flags&2){if(instance&&cb.id!==instance.uid||minUid!==void 0&&!(cb.id>=minUid))continue;queue.splice(i,1);i=instance?i-1:flushIndex;if(cb.flags&4)cb.flags&=-2;cb();if(!(cb.flags&4))cb.flags&=-2}}}function flushPostFlushCbs(seen,skip,minUid=0){if(pendingPostFlushCbs.length){let cbs=pendingPostFlushCbs;let kept=0;if(skip){cbs=[];for(let i=0;i<pendingPostFlushCbs.length;i++){const cb=pendingPostFlushCbs[i];if(cb.i!==void 0?!cb.i||cb.i.uid<minUid:skip.has(cb))pendingPostFlushCbs[kept++]=cb;else cbs.push(cb)}}const deduped=[...new Set(cbs)].sort((a,b)=>getId(a)-getId(b));pendingPostFlushCbs.length=kept;if(activePostFlushCbs){for(let i=0;i<deduped.length;i++)activePostFlushCbs.push(deduped[i]);return}activePostFlushCbs=deduped;for(postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++){const cb=activePostFlushCbs[postFlushIndex];if(cb.flags&4)cb.flags&=-2;if(!(cb.flags&8))cb();cb.flags&=-2}activePostFlushCbs=null;postFlushIndex=0}}var isFlushing=false;function flushOnAppMount(fn,minUid){if(isFlushing){fn();return}const queued=minUid===void 0?void 0:new Set(pendingPostFlushCbs);fn();isFlushing=true;try{flushPreFlushCbs(void 0,minUid);flushPostFlushCbs(void 0,queued,minUid)}finally{isFlushing=false}}var getId=job=>job.id==null?job.flags&2?-1:Infinity:job.id;function flushJobs(seen){try{for(flushIndex=0;flushIndex<queue.length;flushIndex++){const job=queue[flushIndex];if(job&&!(job.flags&8)){if(job.flags&4)job.flags&=-2;callWithErrorHandling(job,job.i,job.i?15:14);if(!(job.flags&4))job.flags&=-2}}}finally{for(;flushIndex<queue.length;flushIndex++){const job=queue[flushIndex];if(job)job.flags&=-2}flushIndex=-1;queue.length=0;flushPostFlushCbs(seen);currentFlushPromise=null;if(queue.length||pendingPostFlushCbs.length)flushJobs(seen)}}var currentRenderingInstance=null;var currentScopeId=null;function setCurrentRenderingInstance(instance){const prev=currentRenderingInstance;currentRenderingInstance=instance;currentScopeId=instance&&instance.type.__scopeId||null;return prev}function withCtx(fn,ctx=currentRenderingInstance,isNonScopedSlot){if(!ctx)return fn;if(fn._n)return fn;const renderFnWithContext=(...args)=>{if(renderFnWithContext._d)setBlockTracking(-1);const prevInstance=setCurrentRenderingInstance(ctx);const prevStackSize=blockStack.length;let res;try{res=fn(...args)}finally{for(let i=blockStack.length;i>prevStackSize;i--)closeBlock();setCurrentRenderingInstance(prevInstance);if(renderFnWithContext._d)setBlockTracking(1)}return res};renderFnWithContext._n=true;renderFnWithContext._c=true;renderFnWithContext._d=true;return renderFnWithContext}function withDirectives(vnode,directives){if(currentRenderingInstance===null)return vnode;const instance=getComponentPublicInstance(currentRenderingInstance);const bindings=vnode.dirs||(vnode.dirs=[]);for(let i=0;i<directives.length;i++){let[dir,value,arg,modifiers=EMPTY_OBJ]=directives[i];if(dir){if(isFunction(dir))dir={mounted:dir,updated:dir};if(dir.deep)traverse(value);bindings.push({dir,instance,value,oldValue:void 0,arg,modifiers})}}return vnode}function invokeDirectiveHook(vnode,prevVNode,instance,name){const bindings=vnode.dirs;const oldBindings=prevVNode&&prevVNode.dirs;for(let i=0;i<bindings.length;i++){const binding=bindings[i];if(oldBindings)binding.oldValue=oldBindings[i].value;let hook=binding.dir[name];if(hook){pauseTracking();callWithAsyncErrorHandling(hook,instance,8,[vnode.el,binding,vnode,prevVNode]);resetTracking()}}}function provide(key,value){if(currentInstance){let provides=currentInstance.provides;const parentProvides=currentInstance.parent&&currentInstance.parent.provides;if(parentProvides===provides)provides=currentInstance.provides=Object.create(parentProvides);provides[key]=value}}function inject(key,defaultValue,treatDefaultAsFactory=false){const instance=getCurrentInstance();if(instance||currentApp){let provides=currentApp?currentApp._context.provides:instance?instance.parent==null||instance.ce?instance.vnode.appContext&&instance.vnode.appContext.provides:instance.parent.provides:void 0;if(provides&&key in provides)return provides[key];else if(arguments.length>1)return treatDefaultAsFactory&&isFunction(defaultValue)?defaultValue.call(instance&&instance.proxy):defaultValue}}function hasInjectionContext(){return!!(getCurrentInstance()||currentApp)}var ssrContextKey=Symbol.for(`v-scx`);var useSSRContext=()=>{{const ctx=inject(ssrContextKey);if(!ctx){}return ctx}};function watchEffect(effect,options){return doWatch(effect,null,options)}function watchSyncEffect(effect,options){return doWatch(effect,null,{flush:`sync`})}function watch(source,cb,options){return doWatch(source,cb,options)}function doWatch(source,cb,options=EMPTY_OBJ){const{immediate,deep,flush,once}=options;const baseWatchOptions=extend({},options);const runsImmediately=cb&&immediate||!cb&&flush!==`post`;let ssrCleanup;if(isInSSRComponentSetup){if(flush===`sync`){const ctx=useSSRContext();ssrCleanup=ctx.__watcherHandles||(ctx.__watcherHandles=[])}else if(!runsImmediately){const watchStopHandle=()=>{};watchStopHandle.stop=NOOP;watchStopHandle.resume=NOOP;watchStopHandle.pause=NOOP;return watchStopHandle}}const instance=currentInstance;baseWatchOptions.call=(fn,type,args)=>callWithAsyncErrorHandling(fn,instance,type,args);let isPre=false;if(flush===`post`)baseWatchOptions.scheduler=job=>{job.i=instance;queuePostRenderEffect(job,instance&&instance.suspense)};else if(flush!==`sync`){isPre=true;baseWatchOptions.scheduler=(job,isFirstRun)=>{if(isFirstRun)job();else queueJob(job)}}baseWatchOptions.augmentJob=job=>{if(cb)job.flags|=4;if(isPre){job.flags|=2;if(instance){job.id=instance.uid;job.i=instance}}};const watchHandle=watch$1(source,cb,baseWatchOptions);if(isInSSRComponentSetup){if(ssrCleanup)ssrCleanup.push(watchHandle);else if(runsImmediately)watchHandle()}return watchHandle}function instanceWatch(source,value,options){const publicThis=this.proxy;const getter=isString(source)?source.includes(`.`)?createPathGetter(publicThis,source):()=>publicThis[source]:source.bind(publicThis,publicThis);let cb;if(isFunction(value))cb=value;else{cb=value.handler;options=value}const reset=setCurrentInstance(this);const res=doWatch(getter,cb.bind(publicThis),options);reset();return res}function createPathGetter(ctx,path){const segments=path.split(`.`);return()=>{let cur=ctx;for(let i=0;i<segments.length&&cur;i++)cur=cur[segments[i]];return cur}}var pendingMounts=new WeakMap;var TeleportEndKey=Symbol(`_vte`);var isTeleport=type=>type.__isTeleport;var isTeleportDisabled=props=>props&&(props.disabled||props.disabled===``);var isTeleportDeferred=props=>props&&(props.defer||props.defer===``);var isTargetSVG=target=>typeof SVGElement!==`undefined`&&target instanceof SVGElement;var isTargetMathML=target=>typeof MathMLElement===`function`&&target instanceof MathMLElement;var resolveTarget=(props,select)=>{const targetSelector=props&&props.to;if(isString(targetSelector)){if(!select)return null;else return select(targetSelector)}else return targetSelector};var TeleportImpl={name:`Teleport`,__isTeleport:true,process(n1,n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized,internals){const{mc:mountChildren,pc:patchChildren,pbc:patchBlockChildren,o:{insert,querySelector,createText,createComment,parentNode}}=internals;const disabled=isTeleportDisabled(n2.props);let{dynamicChildren}=n2;const mount=(vnode,container2,anchor2)=>{if(vnode.shapeFlag&16)mountChildren(vnode.children,container2,anchor2,parentComponent,parentSuspense,namespace,slotScopeIds,optimized)};const mountToTarget=(vnode=n2)=>{const disabled2=isTeleportDisabled(vnode.props);const target=vnode.target=resolveTarget(vnode.props,querySelector);const targetAnchor=prepareAnchor(target,vnode,createText,insert);if(target){if(namespace!==`svg`&&isTargetSVG(target))namespace=`svg`;else if(namespace!==`mathml`&&isTargetMathML(target))namespace=`mathml`;if(parentComponent&&parentComponent.isCE)(parentComponent.ce._teleportTargets||(parentComponent.ce._teleportTargets=new Set)).add(target);if(!disabled2){mount(vnode,target,targetAnchor);updateCssVars(vnode,false)}}};const queuePendingMount=vnode=>{const mountJob=()=>{if(pendingMounts.get(vnode)!==mountJob)return;pendingMounts.delete(vnode);if(isTeleportDisabled(vnode.props)){const mountContainer=parentNode(vnode.el)||container;mount(vnode,mountContainer,vnode.anchor);updateCssVars(vnode,true)}mountToTarget(vnode)};pendingMounts.set(vnode,mountJob);queuePostRenderEffect(mountJob,parentSuspense)};if(n1==null){const placeholder=n2.el=createText(``);const mainAnchor=n2.anchor=createText(``);insert(placeholder,container,anchor);insert(mainAnchor,container,anchor);if(isTeleportDeferred(n2.props)||parentSuspense&&parentSuspense.pendingBranch){queuePendingMount(n2);return}if(disabled){mount(n2,container,mainAnchor);updateCssVars(n2,true)}mountToTarget()}else{n2.el=n1.el;const mainAnchor=n2.anchor=n1.anchor;const pendingMount=pendingMounts.get(n1);if(pendingMount){pendingMount.flags|=8;pendingMounts.delete(n1);queuePendingMount(n2);return}n2.targetStart=n1.targetStart;const target=n2.target=n1.target;const targetAnchor=n2.targetAnchor=n1.targetAnchor;const wasDisabled=isTeleportDisabled(n1.props);const currentContainer=wasDisabled?container:target;const currentAnchor=wasDisabled?mainAnchor:targetAnchor;if(namespace===`svg`||isTargetSVG(target))namespace=`svg`;else if(namespace===`mathml`||isTargetMathML(target))namespace=`mathml`;if(dynamicChildren){patchBlockChildren(n1.dynamicChildren,dynamicChildren,currentContainer,parentComponent,parentSuspense,namespace,slotScopeIds);traverseStaticChildren(n1,n2,true)}else if(!optimized)patchChildren(n1,n2,currentContainer,currentAnchor,parentComponent,parentSuspense,namespace,slotScopeIds,false);if(disabled){if(!wasDisabled)moveTeleport(n2,container,mainAnchor,internals,1);else if(n2.props&&n1.props&&n2.props.to!==n1.props.to)n2.props.to=n1.props.to}else if((n2.props&&n2.props.to)!==(n1.props&&n1.props.to)){const nextTarget=resolveTarget(n2.props,querySelector);if(nextTarget){n2.target=nextTarget;moveTeleport(n2,nextTarget,null,internals,0)}}else if(wasDisabled)moveTeleport(n2,target,targetAnchor,internals,1);updateCssVars(n2,disabled)}},remove(vnode,parentComponent,parentSuspense,{um:unmount,o:{remove:hostRemove}},doRemove){const{shapeFlag,children,anchor,targetStart,targetAnchor,target,props}=vnode;const disabled=isTeleportDisabled(props);const shouldRemove=doRemove||!disabled;const pendingMount=pendingMounts.get(vnode);if(pendingMount){pendingMount.flags|=8;pendingMounts.delete(vnode)}if(target){hostRemove(targetStart);hostRemove(targetAnchor)}doRemove&&hostRemove(anchor);if(!pendingMount&&(disabled||target)&&shapeFlag&16)for(let i=0;i<children.length;i++){const child=children[i];unmount(child,parentComponent,parentSuspense,shouldRemove,!!child.dynamicChildren)}},move:moveTeleport,hydrate:hydrateTeleport};function moveTeleport(vnode,container,parentAnchor,{o:{insert},m:move},moveType=2){if(moveType===0){if(vnode.targetStart)insert(vnode.targetStart,container,parentAnchor);insert(vnode.targetAnchor,container,parentAnchor);parentAnchor=vnode.targetAnchor}const{el,anchor,shapeFlag,children,props}=vnode;const isReorder=moveType===2;if(isReorder)insert(el,container,parentAnchor);if(!pendingMounts.has(vnode)&&(!isReorder||isTeleportDisabled(props))){if(shapeFlag&16)for(let i=0;i<children.length;i++)move(children[i],container,parentAnchor,2)}if(isReorder)insert(anchor,container,parentAnchor)}function hydrateTeleport(node,vnode,parentComponent,parentSuspense,slotScopeIds,optimized,{o:{nextSibling,parentNode,querySelector,insert,createText}},hydrateChildren){function hydrateAnchor(target2,targetNode){let targetAnchor=targetNode;while(targetAnchor){if(targetAnchor&&targetAnchor.nodeType===8){if(targetAnchor.data===`teleport start anchor`)vnode.targetStart=targetAnchor;else if(targetAnchor.data===`teleport anchor`){vnode.targetAnchor=targetAnchor;target2._lpa=vnode.targetAnchor&&nextSibling(vnode.targetAnchor);break}}targetAnchor=nextSibling(targetAnchor)}}function hydrateDisabledTeleport(node2,vnode2){vnode2.anchor=hydrateChildren(nextSibling(node2),vnode2,parentNode(node2),parentComponent,parentSuspense,slotScopeIds,optimized)}const target=vnode.target=resolveTarget(vnode.props,querySelector);const disabled=isTeleportDisabled(vnode.props);if(target){const targetNode=target._lpa||target.firstChild;if(vnode.shapeFlag&16){if(disabled){hydrateDisabledTeleport(node,vnode);hydrateAnchor(target,targetNode);if(!vnode.targetAnchor)prepareAnchor(target,vnode,createText,insert,parentNode(node)===target?node:null)}else{vnode.anchor=nextSibling(node);hydrateAnchor(target,targetNode);if(!vnode.targetAnchor)prepareAnchor(target,vnode,createText,insert);hydrateChildren(targetNode&&nextSibling(targetNode),vnode,target,parentComponent,parentSuspense,slotScopeIds,optimized)}}updateCssVars(vnode,disabled)}else if(disabled){if(vnode.shapeFlag&16){hydrateDisabledTeleport(node,vnode);vnode.targetStart=node;vnode.targetAnchor=nextSibling(node)}}return vnode.anchor&&nextSibling(vnode.anchor)}var Teleport=TeleportImpl;function updateCssVars(vnode,isDisabled){const ctx=vnode.ctx;if(ctx&&ctx.ut){let node,anchor;if(isDisabled){node=vnode.el;anchor=vnode.anchor}else{node=vnode.targetStart;anchor=vnode.targetAnchor}while(node&&node!==anchor){if(node.nodeType===1)node.setAttribute(`data-v-owner`,ctx.uid);node=node.nextSibling}ctx.ut()}}function prepareAnchor(target,vnode,createText,insert,anchor=null){const targetStart=vnode.targetStart=createText(``);const targetAnchor=vnode.targetAnchor=createText(``);targetStart[TeleportEndKey]=targetAnchor;if(target){insert(targetStart,target,anchor);insert(targetAnchor,target,anchor)}return targetAnchor}var leaveCbKey=Symbol(`_leaveCb`);var enterCbKey=Symbol(`_enterCb`);function useTransitionState(){const state={isMounted:false,isLeaving:false,isUnmounting:false,leavingVNodes:new Map};onMounted(()=>{state.isMounted=true});onBeforeUnmount(()=>{state.isUnmounting=true});return state}var TransitionHookValidator=[Function,Array];var BaseTransitionPropsValidators={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator};var BaseTransitionImpl={name:`BaseTransition`,props:BaseTransitionPropsValidators,setup(props,{slots}){const instance=getCurrentInstance();const state=useTransitionState();return()=>{const children=slots.default&&getTransitionRawChildren(slots.default(),true);const child=children&&children.length?findNonCommentChild(children):instance.subTree?createCommentVNode():void 0;if(!child)return;const rawProps=toRaw(props);const{mode}=rawProps;if(state.isLeaving)return emptyPlaceholder(child);const innerChild=getInnerChild$1(child);if(!innerChild)return emptyPlaceholder(child);let enterHooks=resolveTransitionHooks(innerChild,rawProps,state,instance,hooks=>enterHooks=hooks);if(innerChild.type!==Comment)setTransitionHooks(innerChild,enterHooks);let oldInnerChild=instance.subTree&&getInnerChild$1(instance.subTree);if(oldInnerChild&&oldInnerChild.type!==Comment&&!isSameVNodeType(oldInnerChild,innerChild)&&getTransitionRoot(instance.subTree)){let leavingHooks=resolveTransitionHooks(oldInnerChild,rawProps,state,instance);setTransitionHooks(oldInnerChild,leavingHooks);if(mode===`out-in`&&innerChild.type!==Comment){state.isLeaving=true;leavingHooks.afterLeave=()=>{state.isLeaving=false;if(!(instance.job.flags&8))instance.update();delete leavingHooks.afterLeave;oldInnerChild=void 0};return emptyPlaceholder(child)}else if(mode===`in-out`&&innerChild.type!==Comment)leavingHooks.delayLeave=(el,earlyRemove,delayedLeave)=>{const leavingVNodesCache=getLeavingNodesForType(state,oldInnerChild);leavingVNodesCache[String(oldInnerChild.key)]=oldInnerChild;el[leaveCbKey]=()=>{earlyRemove();el[leaveCbKey]=void 0;delete enterHooks.delayedLeave;oldInnerChild=void 0};enterHooks.delayedLeave=()=>{delayedLeave();delete enterHooks.delayedLeave;oldInnerChild=void 0}};else oldInnerChild=void 0}else if(oldInnerChild)oldInnerChild=void 0;return child}}};function findNonCommentChild(children){let child=children[0];if(children.length>1){for(const c of children)if(c.type!==Comment){child=c;break}}return child}var BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(state,vnode){const{leavingVNodes}=state;let leavingVNodesCache=leavingVNodes.get(vnode.type);if(!leavingVNodesCache){leavingVNodesCache=Object.create(null);leavingVNodes.set(vnode.type,leavingVNodesCache)}return leavingVNodesCache}function resolveTransitionHooks(vnode,props,state,instance,postClone){const{appear,mode,persisted=false,onBeforeEnter,onEnter,onAfterEnter,onEnterCancelled,onBeforeLeave,onLeave,onAfterLeave,onLeaveCancelled,onBeforeAppear,onAppear,onAfterAppear,onAppearCancelled}=props;const key=String(vnode.key);const leavingVNodesCache=getLeavingNodesForType(state,vnode);const callHook=(hook,args)=>{hook&&callWithAsyncErrorHandling(hook,instance,9,args)};const callAsyncHook=(hook,args)=>{const done=args[1];callHook(hook,args);if(isArray(hook)){if(hook.every(hook2=>hook2.length<=1))done()}else if(hook.length<=1)done()};const hooks={mode,persisted,beforeEnter(el){let hook=onBeforeEnter;if(!state.isMounted){if(appear)hook=onBeforeAppear||onBeforeEnter;else return}if(el[leaveCbKey])el[leaveCbKey](true);const leavingVNode=leavingVNodesCache[key];if(leavingVNode&&isSameVNodeType(vnode,leavingVNode)){let leavingCb=leavingVNode.el[leaveCbKey];if(!leavingCb){const leavingRoot=getTransitionRoot(leavingVNode);leavingCb=leavingRoot&&leavingRoot.el[leaveCbKey]}if(leavingCb)leavingCb()}callHook(hook,[el])},enter(el){if(leavingVNodesCache[key]===vnode)return;let hook=onEnter;let afterHook=onAfterEnter;let cancelHook=onEnterCancelled;if(!state.isMounted){if(appear){hook=onAppear||onEnter;afterHook=onAfterAppear||onAfterEnter;cancelHook=onAppearCancelled||onEnterCancelled}else return}let called=false;el[enterCbKey]=cancelled=>{if(called)return;called=true;if(cancelled)callHook(cancelHook,[el]);else callHook(afterHook,[el]);if(hooks.delayedLeave)hooks.delayedLeave();el[enterCbKey]=void 0};const done=el[enterCbKey].bind(null,false);if(hook)callAsyncHook(hook,[el,done]);else done()},leave(el,remove){const key2=String(vnode.key);if(el[enterCbKey])el[enterCbKey](true);if(state.isUnmounting)return remove();callHook(onBeforeLeave,[el]);let called=false;el[leaveCbKey]=cancelled=>{if(called)return;called=true;remove();if(cancelled)callHook(onLeaveCancelled,[el]);else callHook(onAfterLeave,[el]);el[leaveCbKey]=void 0;if(leavingVNodesCache[key2]===vnode)delete leavingVNodesCache[key2]};const done=el[leaveCbKey].bind(null,false);leavingVNodesCache[key2]=vnode;if(onLeave)callAsyncHook(onLeave,[el,done]);else done()},clone(vnode2){const hooks2=resolveTransitionHooks(vnode2,props,state,instance,postClone);if(postClone)postClone(hooks2);return hooks2}};return hooks}function emptyPlaceholder(vnode){if(isKeepAlive(vnode)){vnode=cloneVNode(vnode);vnode.children=null;return vnode}}function getInnerChild$1(vnode){if(!isKeepAlive(vnode)){if(isTeleport(vnode.type)&&vnode.children)return findNonCommentChild(vnode.children);return vnode}if(vnode.component)return vnode.component.subTree;const{shapeFlag,children}=vnode;if(children){if(shapeFlag&16)return children[0];if(shapeFlag&32&&isFunction(children.default))return children.default()}}function setTransitionHooks(vnode,hooks){if(vnode.shapeFlag&6&&vnode.component){vnode.transition=hooks;const subTree=vnode.component.subTree;setTransitionHooks(isTeleport(subTree.type)?getInnerChild$1(subTree)||subTree:subTree,hooks)}else if(vnode.shapeFlag&128){vnode.ssContent.transition=hooks.clone(vnode.ssContent);vnode.ssFallback.transition=hooks.clone(vnode.ssFallback)}else{vnode.transition=hooks;if(vnode.type===Fragment&&isArray(vnode.children)){const child=filterSingleRoot(vnode.children,false);if(child)setTransitionHooks(child,hooks)}}}function getTransitionRawChildren(children,keepComment=false,parentKey){let ret=[];let keyedFragmentCount=0;for(let i=0;i<children.length;i++){let child=children[i];const key=parentKey==null?child.key:String(parentKey)+String(child.key!=null?child.key:i);if(child.type===Fragment){if(child.patchFlag&128)keyedFragmentCount++;ret=ret.concat(getTransitionRawChildren(child.children,keepComment,key))}else if(keepComment||child.type!==Comment)ret.push(key!=null?cloneVNode(child,{key}):child)}if(keyedFragmentCount>1)for(let i=0;i<ret.length;i++)ret[i].patchFlag=-2;return ret}function getTransitionRoot(vnode){if(vnode.component)return getTransitionRoot(vnode.component.subTree);if(vnode.type===Fragment){const child=isArray(vnode.children)&&filterSingleRoot(vnode.children,false);return child?getTransitionRoot(child):void 0}if(vnode.type!==Comment)return vnode}function defineComponent(options,extraOptions){return isFunction(options)?(()=>extend({name:options.name},extraOptions,{setup:options}))():options}function useId(){const i=getCurrentInstance();if(i)return(i.appContext.config.idPrefix||`v`)+`-`+i.ids[0]+i.ids[1]++;return``}function markAsyncBoundary(instance){instance.ids=[instance.ids[0]+instance.ids[2]+++`-`,0,0]}function isTemplateRefKey(refs,key){let desc;return!!((desc=Object.getOwnPropertyDescriptor(refs,key))&&!desc.configurable)}var pendingSetRefMap=new WeakMap;function setRef(rawRef,oldRawRef,parentSuspense,vnode,isUnmount=false){if(isArray(rawRef)){rawRef.forEach((r,i)=>setRef(r,oldRawRef&&(isArray(oldRawRef)?oldRawRef[i]:oldRawRef),parentSuspense,vnode,isUnmount));return}if(isAsyncWrapper(vnode)&&!isUnmount){if(vnode.shapeFlag&512&&vnode.type.__asyncResolved&&vnode.component.subTree.component)setRef(rawRef,oldRawRef,parentSuspense,vnode.component.subTree);return}const refValue=vnode.shapeFlag&4?getComponentPublicInstance(vnode.component):vnode.el;const value=isUnmount?null:refValue;const{i:owner,r:ref}=rawRef;const oldRef=oldRawRef&&oldRawRef.r;const refs=owner.refs===EMPTY_OBJ?owner.refs={}:owner.refs;const setupState=owner.setupState;const rawSetupState=toRaw(setupState);const canSetSetupRef=setupState===EMPTY_OBJ?NO:key=>{if(isTemplateRefKey(refs,key))return false;return hasOwn(rawSetupState,key)};const canSetRef=(ref2,key)=>{if(key&&isTemplateRefKey(refs,key))return false;return true};if(oldRef!=null&&oldRef!==ref){invalidatePendingSetRef(oldRawRef);if(isString(oldRef)){refs[oldRef]=null;if(canSetSetupRef(oldRef))setupState[oldRef]=null}else if(isRef(oldRef)){const oldRawRefAtom=oldRawRef;if(canSetRef(oldRef,oldRawRefAtom.k))oldRef.value=null;if(oldRawRefAtom.k)refs[oldRawRefAtom.k]=null}}if(isFunction(ref))callWithErrorHandling(ref,owner,12,[value,refs]);else{const _isString=isString(ref);const _isRef=isRef(ref);if(_isString||_isRef){const doSet=()=>{if(rawRef.f){const existing=_isString?canSetSetupRef(ref)?setupState[ref]:refs[ref]:canSetRef(ref)||!rawRef.k?ref.value:refs[rawRef.k];if(isUnmount)isArray(existing)&&remove(existing,refValue);else if(!isArray(existing)){if(_isString){refs[ref]=[refValue];if(canSetSetupRef(ref))setupState[ref]=refs[ref]}else{const newVal=[refValue];if(canSetRef(ref,rawRef.k))ref.value=newVal;if(rawRef.k)refs[rawRef.k]=newVal}}else if(!existing.includes(refValue))existing.push(refValue)}else if(_isString){refs[ref]=value;if(canSetSetupRef(ref))setupState[ref]=value}else if(_isRef){if(canSetRef(ref,rawRef.k))ref.value=value;if(rawRef.k)refs[rawRef.k]=value}};if(value){const job=()=>{doSet();pendingSetRefMap.delete(rawRef)};job.id=-1;pendingSetRefMap.set(rawRef,job);queuePostRenderEffect(job,parentSuspense)}else{invalidatePendingSetRef(rawRef);doSet()}}}}function invalidatePendingSetRef(rawRef){const pendingSetRef=pendingSetRefMap.get(rawRef);if(pendingSetRef){pendingSetRef.flags|=8;pendingSetRefMap.delete(rawRef)}}var isComment=node=>node.nodeType===8;var requestIdleCallback=getGlobalThis().requestIdleCallback||(cb=>setTimeout(cb,1));var cancelIdleCallback=getGlobalThis().cancelIdleCallback||(id=>clearTimeout(id));function forEachElement(node,cb){if(isComment(node)&&node.data===`[`){let depth=1;let next=node.nextSibling;while(next){if(next.nodeType===1){if(cb(next)===false)break}else if(isComment(next)){if(next.data===`]`){if(--depth===0)break}else if(next.data===`[`)depth++}next=next.nextSibling}}else cb(node)}var isAsyncWrapper=i=>!!i.type.__asyncLoader;function defineAsyncComponent(source){if(isFunction(source))source={loader:source};const{loader,loadingComponent,errorComponent,delay=200,hydrate:hydrateStrategy,timeout,suspensible=true,onError:userOnError}=source;let pendingRequest=null;let resolvedComp;let retries=0;const retry=()=>{retries++;pendingRequest=null;return load()};const load=()=>{let thisRequest;return pendingRequest||(thisRequest=pendingRequest=loader().catch(err=>{err=err instanceof Error?err:new Error(String(err));if(userOnError)return new Promise((resolve,reject)=>{const userRetry=()=>resolve(retry());const userFail=()=>reject(err);userOnError(err,userRetry,userFail,retries+1)});else throw err}).then(comp=>{if(thisRequest!==pendingRequest&&pendingRequest)return pendingRequest;if(comp&&(comp.__esModule||comp[Symbol.toStringTag]===`Module`))comp=comp.default;resolvedComp=comp;return comp}))};return defineComponent({name:`AsyncComponentWrapper`,__asyncLoader:load,__asyncHydrate(el,instance,hydrate){const wasConnected=el.isConnected;let patched=false;(instance.bu||(instance.bu=[])).push(()=>patched=true);const performHydrate=()=>{if(patched)return;if(!el.parentNode||wasConnected&&!el.isConnected)return;hydrate()};const doHydrate=hydrateStrategy?()=>{const teardown=hydrateStrategy(performHydrate,cb=>forEachElement(el,cb));if(teardown)(instance.bum||(instance.bum=[])).push(teardown)}:performHydrate;if(resolvedComp)doHydrate();else load().then(()=>!instance.isUnmounted&&doHydrate())},get __asyncResolved(){return resolvedComp},setup(){const instance=currentInstance;markAsyncBoundary(instance);if(resolvedComp)return()=>createInnerComp(resolvedComp,instance);const onError=err=>{pendingRequest=null;handleError(err,instance,13,!errorComponent)};if(suspensible&&instance.suspense||isInSSRComponentSetup)return load().then(comp=>{return()=>createInnerComp(comp,instance)}).catch(err=>{onError(err);return()=>errorComponent?createVNode(errorComponent,{error:err}):null});const loaded=ref(false);const error=ref();const delayed=ref(!!delay);let timeoutTimer;let delayTimer;onUnmounted(()=>{if(timeoutTimer!=null)clearTimeout(timeoutTimer);if(delayTimer!=null)clearTimeout(delayTimer)});if(delay)delayTimer=setTimeout(()=>{if(instance.isUnmounted)return;delayed.value=false},delay);if(timeout!=null)timeoutTimer=setTimeout(()=>{if(instance.isUnmounted)return;if(!loaded.value&&!error.value){const err=new Error(`Async component timed out after ${timeout}ms.`);onError(err);error.value=err}},timeout);load().then(()=>{if(instance.isUnmounted)return;loaded.value=true;if(instance.parent&&isKeepAlive(instance.parent.vnode))instance.parent.update()}).catch(err=>{if(instance.isUnmounted){pendingRequest=null;return}onError(err);error.value=err});return()=>{if(loaded.value&&resolvedComp)return createInnerComp(resolvedComp,instance);else if(error.value&&errorComponent)return createVNode(errorComponent,{error:error.value});else if(loadingComponent&&!delayed.value)return createInnerComp(loadingComponent,instance)}}})}function createInnerComp(comp,parent){const{ref:ref2,props,children,ce}=parent.vnode;const vnode=createVNode(comp,props,children);vnode.ref=ref2;vnode.ce=ce;delete parent.vnode.ce;return vnode}var isKeepAlive=vnode=>vnode.type.__isKeepAlive;function onActivated(hook,target){registerKeepAliveHook(hook,`a`,target)}function onDeactivated(hook,target){registerKeepAliveHook(hook,`da`,target)}function registerKeepAliveHook(hook,type,target=currentInstance){const wrappedHook=hook.__wdc||(hook.__wdc=()=>{let current=target;while(current){if(current.isDeactivated)return;current=current.parent}return hook()});injectHook(type,wrappedHook,target);if(target){let current=target.parent;while(current&&current.parent){if(isKeepAlive(current.parent.vnode))injectToKeepAliveRoot(wrappedHook,type,target,current);current=current.parent}}}function injectToKeepAliveRoot(hook,type,target,keepAliveRoot){const injected=injectHook(type,hook,keepAliveRoot,true);onUnmounted(()=>{remove(keepAliveRoot[type],injected)},target)}function injectHook(type,hook,target=currentInstance,prepend=false){if(target){const hooks=target[type]||(target[type]=[]);const wrappedHook=hook.__weh||(hook.__weh=(...args)=>{pauseTracking();const reset=setCurrentInstance(target);const res=callWithAsyncErrorHandling(hook,target,type,args);reset();resetTracking();return res});if(prepend)hooks.unshift(wrappedHook);else hooks.push(wrappedHook);return wrappedHook}}var createHook=lifecycle=>(hook,target=currentInstance)=>{if(!isInSSRComponentSetup||lifecycle===`sp`)injectHook(lifecycle,(...args)=>hook(...args),target)};var onBeforeMount=createHook(`bm`);var onMounted=createHook(`m`);var onBeforeUpdate=createHook(`bu`);var onUpdated=createHook(`u`);var onBeforeUnmount=createHook(`bum`);var onUnmounted=createHook(`um`);var onServerPrefetch=createHook(`sp`);var onRenderTriggered=createHook(`rtg`);var onRenderTracked=createHook(`rtc`);function onErrorCaptured(hook,target=currentInstance){injectHook(`ec`,hook,target)}var COMPONENTS=`components`;function resolveComponent(name,maybeSelfReference){return resolveAsset(COMPONENTS,name,true,maybeSelfReference)||name}var NULL_DYNAMIC_COMPONENT=Symbol.for(`v-ndc`);function resolveDynamicComponent(component){if(isString(component))return resolveAsset(COMPONENTS,component,false)||component;else return component||NULL_DYNAMIC_COMPONENT}function resolveAsset(type,name,warnMissing=true,maybeSelfReference=false){const instance=currentRenderingInstance||currentInstance;if(instance){const Component=instance.type;if(type===COMPONENTS){const selfName=getComponentName(Component,false);if(selfName&&(selfName===name||selfName===camelize(name)||selfName===capitalize(camelize(name))))return Component}const res=resolve(instance[type]||Component[type],name)||resolve(instance.appContext[type],name);if(!res&&maybeSelfReference)return Component;return res}}function resolve(registry,name){return registry&&(registry[name]||registry[camelize(name)]||registry[capitalize(camelize(name))])}function renderList(source,renderItem,cache,index){let ret;const cached=cache&&cache[index];const sourceIsArray=isArray(source);if(sourceIsArray||isString(source)){const sourceIsReactiveArray=sourceIsArray&&isReactive(source);let needsWrap=false;let isReadonlySource=false;if(sourceIsReactiveArray){needsWrap=!isShallow(source);isReadonlySource=isReadonly(source);source=shallowReadArray(source)}ret=new Array(source.length);for(let i=0,l=source.length;i<l;i++)ret[i]=renderItem(needsWrap?isReadonlySource?toReadonly(toReactive(source[i])):toReactive(source[i]):source[i],i,void 0,cached&&cached[i])}else if(typeof source===`number`){if(!Number.isInteger(source)||source<0)ret=[];else{ret=new Array(source);for(let i=0;i<source;i++)ret[i]=renderItem(i+1,i,void 0,cached&&cached[i])}}else if(isObject(source)){if(source[Symbol.iterator])ret=Array.from(source,(item,i)=>renderItem(item,i,void 0,cached&&cached[i]));else{const keys=Object.keys(source);ret=new Array(keys.length);for(let i=0,l=keys.length;i<l;i++){const key=keys[i];ret[i]=renderItem(source[key],key,i,cached&&cached[i])}}}else ret=[];if(cache)cache[index]=ret;return ret}function createSlots(slots,dynamicSlots){for(let i=0;i<dynamicSlots.length;i++){const slot=dynamicSlots[i];if(isArray(slot))for(let j=0;j<slot.length;j++)slots[slot[j].name]=slot[j].fn;else if(slot)slots[slot.name]=slot.key?(...args)=>{const res=slot.fn(...args);if(res)res.key=slot.key;return res}:slot.fn}return slots}function renderSlot(slots,name,props,fallback,noSlotted,branchKey){if(props==null)props={};if(currentRenderingInstance.ce||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&&currentRenderingInstance.parent.ce){const slotProps=branchKey!=null&&props.key==null?extend({},props,{key:branchKey}):props;const hasProps=Object.keys(slotProps).length>0;if(name!=="default")slotProps.name=name;return openBlock(),createBlock(Fragment,null,[createVNode(`slot`,slotProps,fallback&&fallback())],hasProps?-2:64)}let slot=slots[name];if(slot&&slot._c)slot._d=false;const prevStackSize=blockStack.length;openBlock();let rendered;try{const validSlotContent=slot&&ensureValidVNode(slot(props));const slotKey=props.key||branchKey||validSlotContent&&validSlotContent.key;rendered=createBlock(Fragment,{key:(slotKey&&!isSymbol(slotKey)?slotKey:`_${name}`)+(!validSlotContent&&fallback?`_fb`:``)},validSlotContent||(fallback?fallback():[]),validSlotContent&&slots._===1?64:-2)}catch(err){for(let i=blockStack.length;i>prevStackSize;i--)closeBlock();throw err}finally{if(slot&&slot._c)slot._d=true}if(!noSlotted&&rendered.scopeId)rendered.slotScopeIds=[rendered.scopeId+`-s`];return rendered}function ensureValidVNode(vnodes){return vnodes.some(child=>{if(!isVNode(child))return true;if(child.type===Comment)return false;if(child.type===Fragment&&!ensureValidVNode(child.children))return false;return true})?vnodes:null}function toHandlers(obj,preserveCaseIfNecessary){const ret={};for(const key in obj)ret[preserveCaseIfNecessary&&/[A-Z]/.test(key)?`on:${key}`:toHandlerKey(key)]=obj[key];return ret}var getPublicInstance=i=>{if(!i)return null;if(isStatefulComponent(i))return getComponentPublicInstance(i);return getPublicInstance(i.parent)};var publicPropertiesMap=extend(Object.create(null),{$:i=>i,$el:i=>i.vnode.el,$data:i=>i.data,$props:i=>i.props,$attrs:i=>i.attrs,$slots:i=>i.slots,$refs:i=>i.refs,$parent:i=>getPublicInstance(i.parent),$root:i=>getPublicInstance(i.root),$host:i=>i.ce,$emit:i=>i.emit,$options:i=>resolveMergedOptions(i),$forceUpdate:i=>i.f||(i.f=()=>{queueJob(i.update)}),$nextTick:i=>i.n||(i.n=nextTick.bind(i.proxy)),$watch:i=>instanceWatch.bind(i)});var hasSetupBinding=(state,key)=>state!==EMPTY_OBJ&&!state.__isScriptSetup&&hasOwn(state,key);var PublicInstanceProxyHandlers={get({_:instance},key){if(key===`__v_skip`)return true;const{ctx,setupState,data,props,accessCache,type,appContext}=instance;if(key[0]!==`$`){const n=accessCache[key];if(n!==void 0)switch(n){case 1:return setupState[key];case 2:return data[key];case 4:return ctx[key];case 3:return props[key]}else if(hasSetupBinding(setupState,key)){accessCache[key]=1;return setupState[key]}else if(data!==EMPTY_OBJ&&hasOwn(data,key)){accessCache[key]=2;return data[key]}else if(hasOwn(props,key)){accessCache[key]=3;return props[key]}else if(ctx!==EMPTY_OBJ&&hasOwn(ctx,key)){accessCache[key]=4;return ctx[key]}else if(shouldCacheAccess)accessCache[key]=0}const publicGetter=publicPropertiesMap[key];let cssModule,globalProperties;if(publicGetter){if(key===`$attrs`)track(instance.attrs,`get`,``);return publicGetter(instance)}else if((cssModule=type.__cssModules)&&(cssModule=cssModule[key]))return cssModule;else if(ctx!==EMPTY_OBJ&&hasOwn(ctx,key)){accessCache[key]=4;return ctx[key]}else if(globalProperties=appContext.config.globalProperties,hasOwn(globalProperties,key))return globalProperties[key]},set({_:instance},key,value){const{data,setupState,ctx}=instance;if(hasSetupBinding(setupState,key)){setupState[key]=value;return true}else if(data!==EMPTY_OBJ&&hasOwn(data,key)){data[key]=value;return true}else if(hasOwn(instance.props,key))return false;if(key[0]===`$`&&key.slice(1)in instance)return false;else ctx[key]=value;return true},has({_:{data,setupState,accessCache,ctx,appContext,props,type}},key){let cssModules;return!!(accessCache[key]||data!==EMPTY_OBJ&&key[0]!==`$`&&hasOwn(data,key)||hasSetupBinding(setupState,key)||hasOwn(props,key)||hasOwn(ctx,key)||hasOwn(publicPropertiesMap,key)||hasOwn(appContext.config.globalProperties,key)||(cssModules=type.__cssModules)&&cssModules[key])},defineProperty(target,key,descriptor){if(descriptor.get!=null)target._.accessCache[key]=0;else if(hasOwn(descriptor,`value`))this.set(target,key,descriptor.value,null);return Reflect.defineProperty(target,key,descriptor)}};function useSlots(){return getContext(`useSlots`).slots}function useAttrs(){return getContext(`useAttrs`).attrs}function getContext(calledFunctionName){const i=getCurrentInstance();return i.setupContext||(i.setupContext=createSetupContext(i))}function normalizePropsOrEmits(props){return isArray(props)?props.reduce((normalized,p)=>(normalized[p]=null,normalized),{}):props}function mergeModels(a,b){if(!a||!b)return a||b;if(isArray(a)&&isArray(b))return a.concat(b);return extend({},normalizePropsOrEmits(a),normalizePropsOrEmits(b))}function createPropsRestProxy(props,excludedKeys){const ret={};for(const key in props)if(!excludedKeys.includes(key))Object.defineProperty(ret,key,{enumerable:true,get:()=>props[key]});return ret}var shouldCacheAccess=true;function applyOptions(instance){const options=resolveMergedOptions(instance);const publicThis=instance.proxy;const ctx=instance.ctx;shouldCacheAccess=false;if(options.beforeCreate)callHook(options.beforeCreate,instance,`bc`);const{data:dataOptions,computed:computedOptions,methods,watch:watchOptions,provide:provideOptions,inject:injectOptions,created,beforeMount,mounted,beforeUpdate,updated,activated,deactivated,beforeDestroy,beforeUnmount,destroyed,unmounted,render,renderTracked,renderTriggered,errorCaptured,serverPrefetch,expose,inheritAttrs,components,directives,filters}=options;const checkDuplicateProperties=null;if(injectOptions)resolveInjections(injectOptions,ctx,checkDuplicateProperties);if(methods)for(const key in methods){const methodHandler=methods[key];if(isFunction(methodHandler))ctx[key]=methodHandler.bind(publicThis)}if(dataOptions){const data=dataOptions.call(publicThis,publicThis);if(!isObject(data)){}else instance.data=reactive(data)}shouldCacheAccess=true;if(computedOptions)for(const key in computedOptions){const opt=computedOptions[key];const get=isFunction(opt)?opt.bind(publicThis,publicThis):isFunction(opt.get)?opt.get.bind(publicThis,publicThis):NOOP;const set=!isFunction(opt)&&isFunction(opt.set)?opt.set.bind(publicThis):NOOP;const c=computed({get,set});Object.defineProperty(ctx,key,{enumerable:true,configurable:true,get:()=>c.value,set:v=>c.value=v})}if(watchOptions)for(const key in watchOptions)createWatcher(watchOptions[key],ctx,publicThis,key);if(provideOptions){const provides=isFunction(provideOptions)?provideOptions.call(publicThis):provideOptions;Reflect.ownKeys(provides).forEach(key=>{provide(key,provides[key])})}if(created)callHook(created,instance,`c`);function registerLifecycleHook(register,hook){if(isArray(hook))hook.forEach(_hook=>register(_hook.bind(publicThis)));else if(hook)register(hook.bind(publicThis))}registerLifecycleHook(onBeforeMount,beforeMount);registerLifecycleHook(onMounted,mounted);registerLifecycleHook(onBeforeUpdate,beforeUpdate);registerLifecycleHook(onUpdated,updated);registerLifecycleHook(onActivated,activated);registerLifecycleHook(onDeactivated,deactivated);registerLifecycleHook(onErrorCaptured,errorCaptured);registerLifecycleHook(onRenderTracked,renderTracked);registerLifecycleHook(onRenderTriggered,renderTriggered);registerLifecycleHook(onBeforeUnmount,beforeUnmount);registerLifecycleHook(onUnmounted,unmounted);registerLifecycleHook(onServerPrefetch,serverPrefetch);if(isArray(expose)){if(expose.length){const exposed=instance.exposed||(instance.exposed={});expose.forEach(key=>{Object.defineProperty(exposed,key,{get:()=>publicThis[key],set:val=>publicThis[key]=val,enumerable:true})})}else if(!instance.exposed)instance.exposed={}}if(render&&instance.render===NOOP)instance.render=render;if(inheritAttrs!=null)instance.inheritAttrs=inheritAttrs;if(components)instance.components=components;if(directives)instance.directives=directives;if(serverPrefetch)markAsyncBoundary(instance)}function resolveInjections(injectOptions,ctx,checkDuplicateProperties=NOOP){if(isArray(injectOptions))injectOptions=normalizeInject(injectOptions);for(const key in injectOptions){const opt=injectOptions[key];let injected;if(isObject(opt)){if(`default`in opt)injected=inject(opt.from||key,opt.default,true);else injected=inject(opt.from||key)}else injected=inject(opt);if(isRef(injected))Object.defineProperty(ctx,key,{enumerable:true,configurable:true,get:()=>injected.value,set:v=>injected.value=v});else ctx[key]=injected}}function callHook(hook,instance,type){callWithAsyncErrorHandling(isArray(hook)?hook.map(h=>h.bind(instance.proxy)):hook.bind(instance.proxy),instance,type)}function createWatcher(raw,ctx,publicThis,key){let getter=key.includes(`.`)?createPathGetter(publicThis,key):()=>publicThis[key];if(isString(raw)){const handler=ctx[raw];if(isFunction(handler))watch(getter,handler)}else if(isFunction(raw))watch(getter,raw.bind(publicThis));else if(isObject(raw)){if(isArray(raw))raw.forEach(r=>createWatcher(r,ctx,publicThis,key));else{const handler=isFunction(raw.handler)?raw.handler.bind(publicThis):ctx[raw.handler];if(isFunction(handler))watch(getter,handler,raw)}}}function resolveMergedOptions(instance){const base=instance.type;const{mixins,extends:extendsOptions}=base;const{mixins:globalMixins,optionsCache:cache,config:{optionMergeStrategies}}=instance.appContext;const cached=cache.get(base);let resolved;if(cached)resolved=cached;else if(!globalMixins.length&&!mixins&&!extendsOptions)resolved=base;else{resolved={};if(globalMixins.length)globalMixins.forEach(m=>mergeOptions(resolved,m,optionMergeStrategies,true));mergeOptions(resolved,base,optionMergeStrategies)}if(isObject(base))cache.set(base,resolved);return resolved}function mergeOptions(to,from,strats,asMixin=false){const{mixins,extends:extendsOptions}=from;if(extendsOptions)mergeOptions(to,extendsOptions,strats,true);if(mixins)mixins.forEach(m=>mergeOptions(to,m,strats,true));for(const key in from)if(asMixin&&key===`expose`){}else{const strat=internalOptionMergeStrats[key]||strats&&strats[key];to[key]=strat?strat(to[key],from[key]):from[key]}return to}var internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(to,from){if(!from)return to;if(!to)return from;return function mergedDataFn(){return extend(isFunction(to)?to.call(this,this):to,isFunction(from)?from.call(this,this):from)}}function mergeInject(to,from){return mergeObjectOptions(normalizeInject(to),normalizeInject(from))}function normalizeInject(raw){if(isArray(raw)){const res={};for(let i=0;i<raw.length;i++)res[raw[i]]=raw[i];return res}return raw}function mergeAsArray(to,from){return to?[...new Set([].concat(to,from))]:from}function mergeObjectOptions(to,from){return to?extend(Object.create(null),to,from):from}function mergeEmitsOrPropsOptions(to,from){if(to){if(isArray(to)&&isArray(from))return[...new Set([...to,...from])];return extend(Object.create(null),normalizePropsOrEmits(to),normalizePropsOrEmits(from!=null?from:{}))}else return from}function mergeWatchOptions(to,from){if(!to)return from;if(!from)return to;const merged=extend(Object.create(null),to);for(const key in from)merged[key]=mergeAsArray(to[key],from[key]);return merged}function createAppContext(){return{app:null,config:{isNativeTag:NO,performance:false,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var uid$1=0;function createAppAPI(render,hydrate){return function createApp(rootComponent,rootProps=null){if(!isFunction(rootComponent))rootComponent=extend({},rootComponent);if(rootProps!=null&&!isObject(rootProps))rootProps=null;const context=createAppContext();const installedPlugins=new WeakSet;const pluginCleanupFns=[];let isMounted=false;const app=context.app={_uid:uid$1++,_component:rootComponent,_props:rootProps,_container:null,_context:context,_instance:null,version,get config(){return context.config},set config(v){},use(plugin,...options){if(installedPlugins.has(plugin)){}else if(plugin&&isFunction(plugin.install)){installedPlugins.add(plugin);plugin.install(app,...options)}else if(isFunction(plugin)){installedPlugins.add(plugin);plugin(app,...options)}return app},mixin(mixin){if(!context.mixins.includes(mixin))context.mixins.push(mixin);return app},component(name,component){if(!component)return context.components[name];context.components[name]=component;return app},directive(name,directive){if(!directive)return context.directives[name];context.directives[name]=directive;return app},mount(rootContainer,isHydrate,namespace){if(!isMounted){const vnode=app._ceVNode||createVNode(rootComponent,rootProps);vnode.appContext=context;if(namespace===true)namespace=`svg`;else if(namespace===false)namespace=void 0;if(isHydrate&&hydrate)hydrate(vnode,rootContainer);else render(vnode,rootContainer,namespace);isMounted=true;app._container=rootContainer;rootContainer.__vue_app__=app;return getComponentPublicInstance(vnode.component)}},onUnmount(cleanupFn){pluginCleanupFns.push(cleanupFn)},unmount(){if(isMounted){callWithAsyncErrorHandling(pluginCleanupFns,app._instance,16);render(null,app._container);delete app._container.__vue_app__}},provide(key,value){context.provides[key]=value;return app},runWithContext(fn){const lastApp=currentApp;currentApp=app;try{return fn()}finally{currentApp=lastApp}}};return app}}var currentApp=null;function useModel(props,name,options=EMPTY_OBJ){const i=getCurrentInstance();const camelizedName=camelize(name);const hyphenatedName=hyphenate(name);const modifiers=getModelModifiers(props,camelizedName);const res=customRef((track,trigger)=>{let localValue;let prevSetValue=EMPTY_OBJ;let prevEmittedValue;watchSyncEffect(()=>{const propValue=props[camelizedName];if(hasChanged(localValue,propValue)){localValue=propValue;trigger()}});return{get(){track();return options.get?options.get(localValue):localValue},set(value){const emittedValue=options.set?options.set(value):value;if(!hasChanged(emittedValue,localValue)&&!(prevSetValue!==EMPTY_OBJ&&hasChanged(value,prevSetValue)))return;const rawProps=i.vnode.props;const hasVModel=!!(rawProps&&(name in rawProps||camelizedName in rawProps||hyphenatedName in rawProps)&&(`onUpdate:${name}`in rawProps||`onUpdate:${camelizedName}`in rawProps||`onUpdate:${hyphenatedName}`in rawProps));if(!hasVModel){localValue=value;trigger()}i.emit(`update:${name}`,emittedValue);if(hasChanged(value,prevSetValue)&&(hasChanged(value,emittedValue)&&!hasChanged(emittedValue,prevEmittedValue)||hasVModel&&prevSetValue!==EMPTY_OBJ&&!hasChanged(emittedValue,localValue)))trigger();prevSetValue=value;prevEmittedValue=emittedValue}}});res[Symbol.iterator]=()=>{let i2=0;return{next(){if(i2<2)return{value:i2++?modifiers||EMPTY_OBJ:res,done:false};else return{done:true}}}};return res}var getModelModifiers=(props,modelName)=>{return modelName===`modelValue`||modelName===`model-value`?props.modelModifiers:props[`${modelName}Modifiers`]||props[`${camelize(modelName)}Modifiers`]||props[`${hyphenate(modelName)}Modifiers`]};function emit(instance,event,...rawArgs){if(instance.isUnmounted)return;const props=instance.vnode.props||EMPTY_OBJ;let args=rawArgs;const isModelListener=event.startsWith(`update:`);const modifiers=isModelListener&&getModelModifiers(props,event.slice(7));if(modifiers){if(modifiers.trim)args=rawArgs.map(a=>isString(a)?a.trim():a);if(modifiers.number)args=args.map(looseToNumber)}let handlerName;let handler=props[handlerName=toHandlerKey(event)]||props[handlerName=toHandlerKey(camelize(event))];if(!handler&&isModelListener)handler=props[handlerName=toHandlerKey(hyphenate(event))];if(handler)callWithAsyncErrorHandling(handler,instance,6,args);const onceHandler=props[handlerName+`Once`];if(onceHandler){if(!instance.emitted)instance.emitted={};else if(instance.emitted[handlerName])return;instance.emitted[handlerName]=true;callWithAsyncErrorHandling(onceHandler,instance,6,args)}}var mixinEmitsCache=new WeakMap;function normalizeEmitsOptions(comp,appContext,asMixin=false){const cache=asMixin?mixinEmitsCache:appContext.emitsCache;const cached=cache.get(comp);if(cached!==void 0)return cached;const raw=comp.emits;let normalized={};let hasExtends=false;if(!isFunction(comp)){const extendEmits=raw2=>{const normalizedFromExtend=normalizeEmitsOptions(raw2,appContext,true);if(normalizedFromExtend){hasExtends=true;extend(normalized,normalizedFromExtend)}};if(!asMixin&&appContext.mixins.length)appContext.mixins.forEach(extendEmits);if(comp.extends)extendEmits(comp.extends);if(comp.mixins)comp.mixins.forEach(extendEmits)}if(!raw&&!hasExtends){if(isObject(comp))cache.set(comp,null);return null}if(isArray(raw))raw.forEach(key=>normalized[key]=null);else extend(normalized,raw);if(isObject(comp))cache.set(comp,normalized);return normalized}function isEmitListener(options,key){if(!options||!isOn(key))return false;key=key.slice(2);key=key===`Once`?key:key.replace(/Once$/,``);return hasOwn(options,key[0].toLowerCase()+key.slice(1))||hasOwn(options,hyphenate(key))||hasOwn(options,key)}function renderComponentRoot(instance){const{type:Component,vnode,proxy,withProxy,propsOptions:[propsOptions],slots,attrs,emit,render,renderCache,props,data,setupState,ctx,inheritAttrs}=instance;const prev=setCurrentRenderingInstance(instance);let result;let fallthroughAttrs;try{if(vnode.shapeFlag&4){const proxyToUse=withProxy||proxy;const thisProxy=proxyToUse;result=normalizeVNode(render.call(thisProxy,proxyToUse,renderCache,props,setupState,data,ctx));fallthroughAttrs=attrs}else{const render2=Component;result=normalizeVNode(render2.length>1?render2(props,{attrs,slots,emit}):render2(props,null));fallthroughAttrs=Component.props?attrs:getFunctionalFallthrough(attrs)}}catch(err){blockStack.length=0;handleError(err,instance,1);result=createVNode(Comment)}let root=result;if(fallthroughAttrs&&inheritAttrs!==false){const keys=Object.keys(fallthroughAttrs);const{shapeFlag}=root;if(keys.length){if(shapeFlag&7){if(propsOptions&&keys.some(isModelListener))fallthroughAttrs=filterModelListeners(fallthroughAttrs,propsOptions);root=cloneVNode(root,fallthroughAttrs,false,true)}}}if(vnode.dirs){root=cloneVNode(root,null,false,true);root.dirs=root.dirs?root.dirs.concat(vnode.dirs):vnode.dirs}if(vnode.transition)setTransitionHooks(isTeleport(root.type)?getInnerChild$1(root)||root:root,vnode.transition);result=root;setCurrentRenderingInstance(prev);return result}function filterSingleRoot(children,recurse=true){let singleRoot;for(let i=0;i<children.length;i++){const child=children[i];if(isVNode(child)){if(child.type!==Comment||child.children===`v-if`){if(singleRoot)return;else singleRoot=child}}else return}return singleRoot}var getFunctionalFallthrough=attrs=>{let res;for(const key in attrs)if(key===`class`||key===`style`||isOn(key))(res||(res={}))[key]=attrs[key];return res};var filterModelListeners=(attrs,props)=>{const res={};for(const key in attrs)if(!isModelListener(key)||!(key.slice(9)in props))res[key]=attrs[key];return res};function shouldUpdateComponent(prevVNode,nextVNode,optimized){const{props:prevProps,children:prevChildren,component}=prevVNode;const{props:nextProps,children:nextChildren,patchFlag}=nextVNode;const emits=component.emitsOptions;if(nextVNode.dirs||nextVNode.transition)return true;if(optimized&&patchFlag>=0){if(patchFlag&1024)return true;if(patchFlag&16){if(!prevProps)return!!nextProps;return hasPropsChanged(prevProps,nextProps,emits)}else if(patchFlag&8){const dynamicProps=nextVNode.dynamicProps;for(let i=0;i<dynamicProps.length;i++){const key=dynamicProps[i];if(hasPropValueChanged(nextProps,prevProps,key)&&!isEmitListener(emits,key))return true}}}else{if(prevChildren||nextChildren){if(!nextChildren||!nextChildren.$stable)return true}if(prevProps===nextProps)return false;if(!prevProps)return!!nextProps;if(!nextProps)return true;return hasPropsChanged(prevProps,nextProps,emits)}return false}function hasPropsChanged(prevProps,nextProps,emitsOptions){const nextKeys=Object.keys(nextProps);if(nextKeys.length!==Object.keys(prevProps).length)return true;for(let i=0;i<nextKeys.length;i++){const key=nextKeys[i];if(!hasOwn(prevProps,key)||hasPropValueChanged(nextProps,prevProps,key)&&!isEmitListener(emitsOptions,key))return true}return false}function hasPropValueChanged(nextProps,prevProps,key){const nextProp=nextProps[key];const prevProp=prevProps[key];if(key===`style`&&isObject(nextProp)&&isObject(prevProp))return!looseEqual(nextProp,prevProp);return nextProp!==prevProp}function updateHOCHostEl({vnode,parent,suspense},el){while(parent){const root=parent.subTree;if(root.suspense&&root.suspense.activeBranch===vnode){root.suspense.vnode.el=root.el=el;vnode=root}if(root===vnode){(vnode=parent.vnode).el=el;parent=parent.parent}else break}if(suspense&&suspense.activeBranch===vnode)suspense.vnode.el=el}var internalObjectProto={};var createInternalObject=()=>Object.create(internalObjectProto);var isInternalObject=obj=>Object.getPrototypeOf(obj)===internalObjectProto;function initProps(instance,rawProps,isStateful,isSSR=false){const props={};const attrs=createInternalObject();instance.propsDefaults=Object.create(null);setFullProps(instance,rawProps,props,attrs);for(const key in instance.propsOptions[0])if(!(key in props))props[key]=void 0;if(isStateful)instance.props=isSSR?props:shallowReactive(props);else if(!instance.type.props)instance.props=attrs;else instance.props=props;instance.attrs=attrs}function updateProps(instance,rawProps,rawPrevProps,optimized){const{props,attrs,vnode:{patchFlag}}=instance;const rawCurrentProps=toRaw(props);const[options]=instance.propsOptions;let hasAttrsChanged=false;if((optimized||patchFlag>0)&&!(patchFlag&16)){if(patchFlag&8){const propsToUpdate=instance.vnode.dynamicProps;for(let i=0;i<propsToUpdate.length;i++){let key=propsToUpdate[i];if(isEmitListener(instance.emitsOptions,key))continue;const value=rawProps[key];if(options){if(hasOwn(attrs,key)){if(value!==attrs[key]){attrs[key]=value;hasAttrsChanged=true}}else{const camelizedKey=camelize(key);props[camelizedKey]=resolvePropValue(options,rawCurrentProps,camelizedKey,value,instance,false)}}else if(value!==attrs[key]){attrs[key]=value;hasAttrsChanged=true}}}}else{if(setFullProps(instance,rawProps,props,attrs))hasAttrsChanged=true;let kebabKey;for(const key in rawCurrentProps)if(!rawProps||!hasOwn(rawProps,key)&&((kebabKey=hyphenate(key))===key||!hasOwn(rawProps,kebabKey))){if(options){if(rawPrevProps&&(rawPrevProps[key]!==void 0||rawPrevProps[kebabKey]!==void 0))props[key]=resolvePropValue(options,rawCurrentProps,key,void 0,instance,true)}else delete props[key]}if(attrs!==rawCurrentProps){for(const key in attrs)if(!rawProps||!hasOwn(rawProps,key)&&true){delete attrs[key];hasAttrsChanged=true}}}if(hasAttrsChanged)trigger(instance.attrs,`set`,``)}function setFullProps(instance,rawProps,props,attrs){const[options,needCastKeys]=instance.propsOptions;let hasAttrsChanged=false;let rawCastValues;if(rawProps)for(let key in rawProps){if(isReservedProp(key))continue;const value=rawProps[key];let camelKey;if(options&&hasOwn(options,camelKey=camelize(key))){if(!needCastKeys||!needCastKeys.includes(camelKey))props[camelKey]=value;else(rawCastValues||(rawCastValues={}))[camelKey]=value}else if(!isEmitListener(instance.emitsOptions,key)){if(!(key in attrs)||value!==attrs[key]){attrs[key]=value;hasAttrsChanged=true}}}if(needCastKeys){const rawCurrentProps=toRaw(props);const castValues=rawCastValues||EMPTY_OBJ;for(let i=0;i<needCastKeys.length;i++){const key=needCastKeys[i];props[key]=resolvePropValue(options,rawCurrentProps,key,castValues[key],instance,!hasOwn(castValues,key))}}return hasAttrsChanged}function resolvePropValue(options,props,key,value,instance,isAbsent){const opt=options[key];if(opt!=null){const hasDefault=hasOwn(opt,`default`);if(hasDefault&&value===void 0){const defaultValue=opt.default;if(opt.type!==Function&&!opt.skipFactory&&isFunction(defaultValue)){const{propsDefaults}=instance;if(key in propsDefaults)value=propsDefaults[key];else{const reset=setCurrentInstance(instance);value=propsDefaults[key]=defaultValue.call(null,props);reset()}}else value=defaultValue;if(instance.ce)instance.ce._setProp(key,value)}if(opt[0]){if(isAbsent&&!hasDefault)value=false;else if(opt[1]&&(value===``||value===hyphenate(key)))value=true}}return value}var mixinPropsCache=new WeakMap;function normalizePropsOptions(comp,appContext,asMixin=false){const cache=asMixin?mixinPropsCache:appContext.propsCache;const cached=cache.get(comp);if(cached)return cached;const raw=comp.props;const normalized={};const needCastKeys=[];let hasExtends=false;if(!isFunction(comp)){const extendProps=raw2=>{hasExtends=true;const[props,keys]=normalizePropsOptions(raw2,appContext,true);extend(normalized,props);if(keys)needCastKeys.push(...keys)};if(!asMixin&&appContext.mixins.length)appContext.mixins.forEach(extendProps);if(comp.extends)extendProps(comp.extends);if(comp.mixins)comp.mixins.forEach(extendProps)}if(!raw&&!hasExtends){if(isObject(comp))cache.set(comp,EMPTY_ARR);return EMPTY_ARR}if(isArray(raw))for(let i=0;i<raw.length;i++){const normalizedKey=camelize(raw[i]);if(validatePropName(normalizedKey))normalized[normalizedKey]=EMPTY_OBJ}else if(raw)for(const key in raw){const normalizedKey=camelize(key);if(validatePropName(normalizedKey)){const opt=raw[key];const prop=normalized[normalizedKey]=isArray(opt)||isFunction(opt)?{type:opt}:extend({},opt);const propType=prop.type;let shouldCast=false;let shouldCastTrue=true;if(isArray(propType))for(let index=0;index<propType.length;++index){const type=propType[index];const typeName=isFunction(type)&&type.name;if(typeName===`Boolean`){shouldCast=true;break}else if(typeName===`String`)shouldCastTrue=false}else shouldCast=isFunction(propType)&&propType.name===`Boolean`;prop[0]=shouldCast;prop[1]=shouldCastTrue;if(shouldCast||hasOwn(prop,`default`))needCastKeys.push(normalizedKey)}}const res=[normalized,needCastKeys];if(isObject(comp))cache.set(comp,res);return res}function validatePropName(key){if(key[0]!==`$`&&!isReservedProp(key))return true;return false}var isInternalKey=key=>key===`_`||key===`_ctx`||key===`$stable`;var normalizeSlotValue=value=>isArray(value)?value.map(normalizeVNode):[normalizeVNode(value)];var normalizeSlot=(key,rawSlot,ctx)=>{if(rawSlot._n)return rawSlot;const normalized=withCtx((...args)=>{return normalizeSlotValue(rawSlot(...args))},ctx);normalized._c=false;return normalized};var normalizeObjectSlots=(rawSlots,slots,instance)=>{const ctx=rawSlots._ctx;for(const key in rawSlots){if(isInternalKey(key))continue;const value=rawSlots[key];if(isFunction(value))slots[key]=normalizeSlot(key,value,ctx);else if(value!=null){const normalized=normalizeSlotValue(value);slots[key]=()=>normalized}}};var normalizeVNodeSlots=(instance,children)=>{const normalized=normalizeSlotValue(children);instance.slots.default=()=>normalized};var assignSlots=(slots,children,optimized)=>{for(const key in children)if(optimized||!isInternalKey(key))slots[key]=children[key]};var initSlots=(instance,children,optimized)=>{const slots=instance.slots=createInternalObject();if(instance.vnode.shapeFlag&32){const type=children._;if(type){assignSlots(slots,children,optimized);if(optimized)def(slots,`_`,type,true)}else normalizeObjectSlots(children,slots)}else if(children)normalizeVNodeSlots(instance,children)};var updateSlots=(instance,children,optimized)=>{const{vnode,slots}=instance;let needDeletionCheck=true;let deletionComparisonTarget=EMPTY_OBJ;if(vnode.shapeFlag&32){const type=children._;if(type){if(optimized&&type===1)needDeletionCheck=false;else assignSlots(slots,children,optimized)}else{needDeletionCheck=!children.$stable;normalizeObjectSlots(children,slots)}deletionComparisonTarget=children}else if(children){normalizeVNodeSlots(instance,children);deletionComparisonTarget={default:1}}if(needDeletionCheck){for(const key in slots)if(!isInternalKey(key)&&deletionComparisonTarget[key]==null)delete slots[key]}};var queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(options){return baseCreateRenderer(options)}function baseCreateRenderer(options,createHydrationFns){const target=getGlobalThis();target.__VUE__=true;const{insert:hostInsert,remove:hostRemove,patchProp:hostPatchProp,createElement:hostCreateElement,createText:hostCreateText,createComment:hostCreateComment,setText:hostSetText,setElementText:hostSetElementText,parentNode:hostParentNode,nextSibling:hostNextSibling,setScopeId:hostSetScopeId=NOOP,insertStaticContent:hostInsertStaticContent}=options;const patch=(n1,n2,container,anchor=null,parentComponent=null,parentSuspense=null,namespace=void 0,slotScopeIds=null,optimized=!!n2.dynamicChildren)=>{if(n1===n2)return;if(n1&&!isSameVNodeType(n1,n2)){anchor=getNextHostNode(n1);unmount(n1,parentComponent,parentSuspense,true);n1=null}if(n2.patchFlag===-2){optimized=false;n2.dynamicChildren=null}if(n2.dynamicChildren&&n1&&n1.dynamicChildren&&n1.dynamicChildren.hasOnce){if(n2.dynamicChildren===EMPTY_ARR)n2.dynamicChildren=[];n2.dynamicChildren.hasOnce=true}const{type,ref,shapeFlag}=n2;switch(type){case Text:processText(n1,n2,container,anchor);break;case Comment:processCommentNode(n1,n2,container,anchor);break;case Static:if(n1==null)mountStaticNode(n2,container,anchor,namespace);break;case Fragment:processFragment(n1,n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized);break;default:if(shapeFlag&1)processElement(n1,n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized);else if(shapeFlag&6)processComponent(n1,n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized);else if(shapeFlag&64)type.process(n1,n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized,internals);else if(shapeFlag&128)type.process(n1,n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized,internals)}if(ref!=null&&parentComponent)setRef(ref,n1&&n1.ref,parentSuspense,n2||n1,!n2);else if(ref==null&&n1&&n1.ref!=null)setRef(n1.ref,null,parentSuspense,n1,true)};const processText=(n1,n2,container,anchor)=>{if(n1==null)hostInsert(n2.el=hostCreateText(n2.children),container,anchor);else{const el=n2.el=n1.el;if(n2.children!==n1.children)hostSetText(el,n2.children)}};const processCommentNode=(n1,n2,container,anchor)=>{if(n1==null)hostInsert(n2.el=hostCreateComment(n2.children||``),container,anchor);else n2.el=n1.el};const mountStaticNode=(n2,container,anchor,namespace)=>{[n2.el,n2.anchor]=hostInsertStaticContent(n2.children,container,anchor,namespace,n2.el,n2.anchor)};const moveStaticNode=({el,anchor},container,nextSibling)=>{let next;while(el&&el!==anchor){next=hostNextSibling(el);hostInsert(el,container,nextSibling);el=next}hostInsert(anchor,container,nextSibling)};const removeStaticNode=({el,anchor})=>{let next;while(el&&el!==anchor){next=hostNextSibling(el);hostRemove(el);el=next}hostRemove(anchor)};const processElement=(n1,n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized)=>{if(n2.type===`svg`)namespace=`svg`;else if(n2.type===`math`)namespace=`mathml`;if(n1==null)mountElement(n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized);else{const customElement=n1.el&&n1.el._isVueCE?n1.el:null;try{if(customElement)customElement._beginPatch();patchElement(n1,n2,parentComponent,parentSuspense,namespace,slotScopeIds,optimized)}finally{if(customElement)customElement._endPatch()}}};const mountElement=(vnode,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized)=>{let el;let vnodeHook;const{props,shapeFlag,transition,dirs}=vnode;el=vnode.el=hostCreateElement(vnode.type,namespace,props&&props.is,props);if(shapeFlag&8)hostSetElementText(el,vnode.children);else if(shapeFlag&16)mountChildren(vnode.children,el,null,parentComponent,parentSuspense,resolveChildrenNamespace(vnode,namespace),slotScopeIds,optimized);if(dirs)invokeDirectiveHook(vnode,null,parentComponent,`created`);setScopeId(el,vnode,vnode.scopeId,slotScopeIds,parentComponent);if(props){for(const key in props)if(key!==`value`&&!isReservedProp(key))hostPatchProp(el,key,null,props[key],namespace,parentComponent);if(`value`in props)hostPatchProp(el,`value`,null,props.value,namespace);if(vnodeHook=props.onVnodeBeforeMount)invokeVNodeHook(vnodeHook,parentComponent,vnode)}if(dirs)invokeDirectiveHook(vnode,null,parentComponent,`beforeMount`);const needCallTransitionHooks=needTransition(parentSuspense,transition);if(needCallTransitionHooks)transition.beforeEnter(el);hostInsert(el,container,anchor);if((vnodeHook=props&&props.onVnodeMounted)||needCallTransitionHooks||dirs)queuePostRenderEffect(()=>{try{vnodeHook&&invokeVNodeHook(vnodeHook,parentComponent,vnode);needCallTransitionHooks&&transition.enter(el);dirs&&invokeDirectiveHook(vnode,null,parentComponent,`mounted`)}finally{}},parentSuspense)};const setScopeId=(el,vnode,scopeId,slotScopeIds,parentComponent)=>{if(scopeId)hostSetScopeId(el,scopeId);if(slotScopeIds)for(let i=0;i<slotScopeIds.length;i++)hostSetScopeId(el,slotScopeIds[i]);if(parentComponent){let subTree=parentComponent.subTree;if(vnode===subTree||isSuspense(subTree.type)&&(subTree.ssContent===vnode||subTree.ssFallback===vnode)){const parentVNode=parentComponent.vnode;setScopeId(el,parentVNode,parentVNode.scopeId,parentVNode.slotScopeIds,parentComponent.parent)}}};const mountChildren=(children,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized,start=0)=>{for(let i=start;i<children.length;i++){const child=children[i]=optimized?cloneIfMounted(children[i]):normalizeVNode(children[i]);patch(null,child,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized)}};const patchElement=(n1,n2,parentComponent,parentSuspense,namespace,slotScopeIds,optimized)=>{const el=n2.el=n1.el;let{patchFlag,dynamicChildren,dirs}=n2;patchFlag|=n1.patchFlag&16;const oldProps=n1.props||EMPTY_OBJ;const newProps=n2.props||EMPTY_OBJ;let vnodeHook;parentComponent&&toggleRecurse(parentComponent,false);if(vnodeHook=newProps.onVnodeBeforeUpdate)invokeVNodeHook(vnodeHook,parentComponent,n2,n1);if(dirs)invokeDirectiveHook(n2,n1,parentComponent,`beforeUpdate`);parentComponent&&toggleRecurse(parentComponent,true);if(dynamicChildren&&(!n1.dynamicChildren||n1.dynamicChildren.length!==dynamicChildren.length)){patchFlag=0;optimized=false;dynamicChildren=null}if(oldProps.innerHTML&&newProps.innerHTML==null||oldProps.textContent&&newProps.textContent==null)hostSetElementText(el,``);if(dynamicChildren)patchBlockChildren(n1.dynamicChildren,dynamicChildren,el,parentComponent,parentSuspense,resolveChildrenNamespace(n2,namespace),slotScopeIds);else if(!optimized)patchChildren(n1,n2,el,null,parentComponent,parentSuspense,resolveChildrenNamespace(n2,namespace),slotScopeIds,false);if(patchFlag>0){if(patchFlag&16)patchProps(el,oldProps,newProps,parentComponent,namespace);else{if(patchFlag&2){if(oldProps.class!==newProps.class)hostPatchProp(el,`class`,null,newProps.class,namespace)}if(patchFlag&4)hostPatchProp(el,`style`,oldProps.style,newProps.style,namespace);if(patchFlag&8){const propsToUpdate=n2.dynamicProps;for(let i=0;i<propsToUpdate.length;i++){const key=propsToUpdate[i];const prev=oldProps[key];const next=newProps[key];if(next!==prev||key===`value`)hostPatchProp(el,key,prev,next,namespace,parentComponent)}}}if(patchFlag&1){if(n1.children!==n2.children)hostSetElementText(el,n2.children)}}else if(!optimized&&dynamicChildren==null)patchProps(el,oldProps,newProps,parentComponent,namespace);if((vnodeHook=newProps.onVnodeUpdated)||dirs)queuePostRenderEffect(()=>{vnodeHook&&invokeVNodeHook(vnodeHook,parentComponent,n2,n1);dirs&&invokeDirectiveHook(n2,n1,parentComponent,`updated`)},parentSuspense)};const patchBlockChildren=(oldChildren,newChildren,fallbackContainer,parentComponent,parentSuspense,namespace,slotScopeIds)=>{for(let i=0;i<newChildren.length;i++){const oldVNode=oldChildren[i];const newVNode=newChildren[i];const oldEl=oldVNode.el||resolveAsyncComponentPlaceholder(oldVNode);const container=oldEl&&(oldVNode.type===Fragment||!isSameVNodeType(oldVNode,newVNode)||oldVNode.shapeFlag&198)?hostParentNode(oldEl):fallbackContainer;patch(oldVNode,newVNode,container,null,parentComponent,parentSuspense,namespace,slotScopeIds,true)}};const patchProps=(el,oldProps,newProps,parentComponent,namespace)=>{if(oldProps!==newProps){if(oldProps!==EMPTY_OBJ){for(const key in oldProps)if(!isReservedProp(key)&&!(key in newProps))hostPatchProp(el,key,oldProps[key],null,namespace,parentComponent)}for(const key in newProps){if(isReservedProp(key))continue;const next=newProps[key];const prev=oldProps[key];if(next!==prev&&key!==`value`)hostPatchProp(el,key,prev,next,namespace,parentComponent)}if(`value`in newProps)hostPatchProp(el,`value`,oldProps.value,newProps.value,namespace)}};const processFragment=(n1,n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized)=>{const fragmentStartAnchor=n2.el=n1?n1.el:hostCreateText(``);const fragmentEndAnchor=n2.anchor=n1?n1.anchor:hostCreateText(``);let{patchFlag,dynamicChildren,slotScopeIds:fragmentSlotScopeIds}=n2;if(fragmentSlotScopeIds)slotScopeIds=slotScopeIds?slotScopeIds.concat(fragmentSlotScopeIds):fragmentSlotScopeIds;if(n1==null){hostInsert(fragmentStartAnchor,container,anchor);hostInsert(fragmentEndAnchor,container,anchor);mountChildren(n2.children||[],container,fragmentEndAnchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized)}else if(patchFlag>0&&patchFlag&64&&dynamicChildren&&n1.dynamicChildren&&n1.dynamicChildren.length===dynamicChildren.length){patchBlockChildren(n1.dynamicChildren,dynamicChildren,container,parentComponent,parentSuspense,namespace,slotScopeIds);if(n2.key!=null||parentComponent&&n2===parentComponent.subTree)traverseStaticChildren(n1,n2,true)}else patchChildren(n1,n2,container,fragmentEndAnchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized)};const processComponent=(n1,n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized)=>{n2.slotScopeIds=slotScopeIds;if(n1==null){if(n2.shapeFlag&512)parentComponent.ctx.activate(n2,container,anchor,namespace,optimized);else mountComponent(n2,container,anchor,parentComponent,parentSuspense,namespace,optimized)}else updateComponent(n1,n2,optimized)};const mountComponent=(initialVNode,container,anchor,parentComponent,parentSuspense,namespace,optimized)=>{const instance=initialVNode.component=createComponentInstance(initialVNode,parentComponent,parentSuspense);if(isKeepAlive(initialVNode))instance.ctx.renderer=internals;setupComponent(instance,false,optimized);if(instance.asyncDep){parentSuspense&&parentSuspense.registerDep(instance,setupRenderEffect,optimized,namespace);if(!initialVNode.el){const placeholder=instance.subTree=createVNode(Comment);processCommentNode(null,placeholder,container,anchor);initialVNode.placeholder=placeholder.el}}else setupRenderEffect(instance,initialVNode,container,anchor,parentSuspense,namespace,optimized)};const updateComponent=(n1,n2,optimized)=>{const instance=n2.component=n1.component;if(shouldUpdateComponent(n1,n2,optimized)){if(instance.asyncDep&&!instance.asyncResolved){n2.el=n1.el;n2.placeholder=n1.placeholder;updateComponentPreRender(instance,n2,optimized);return}else{instance.next=n2;instance.update()}}else{n2.el=n1.el;n2.placeholder=n1.placeholder;instance.vnode=n2}};const setupRenderEffect=(instance,initialVNode,container,anchor,parentSuspense,namespace,optimized)=>{const componentUpdateFn=()=>{if(!instance.isMounted){let vnodeHook;const{el,props}=initialVNode;const{bm,m,parent,root,type}=instance;const isAsyncWrapperVNode=isAsyncWrapper(initialVNode);toggleRecurse(instance,false);if(bm)invokeArrayFns(bm);if(!isAsyncWrapperVNode&&(vnodeHook=props&&props.onVnodeBeforeMount))invokeVNodeHook(vnodeHook,parent,initialVNode);toggleRecurse(instance,true);if(el&&hydrateNode){const hydrateSubTree=()=>{instance.subTree=renderComponentRoot(instance);hydrateNode(el,instance.subTree,instance,parentSuspense,null)};if(isAsyncWrapperVNode&&type.__asyncHydrate)type.__asyncHydrate(el,instance,hydrateSubTree);else hydrateSubTree()}else{if(root.ce&&root.ce._hasShadowRoot())root.ce._injectChildStyle(type,instance.parent?instance.parent.type:void 0);const subTree=instance.subTree=renderComponentRoot(instance);patch(null,subTree,container,anchor,instance,parentSuspense,namespace);initialVNode.el=subTree.el}if(m)queuePostRenderEffect(m,parentSuspense);if(!isAsyncWrapperVNode&&(vnodeHook=props&&props.onVnodeMounted)){const scopedInitialVNode=initialVNode;queuePostRenderEffect(()=>invokeVNodeHook(vnodeHook,parent,scopedInitialVNode),parentSuspense)}if(initialVNode.shapeFlag&256||parent&&isAsyncWrapper(parent.vnode)&&parent.vnode.shapeFlag&256)instance.a&&queuePostRenderEffect(instance.a,parentSuspense);instance.isMounted=true;initialVNode=container=anchor=null}else{let{next,bu,u,parent,vnode}=instance;{const nonHydratedAsyncRoot=locateNonHydratedAsyncRoot(instance);if(nonHydratedAsyncRoot){if(next){next.el=vnode.el;updateComponentPreRender(instance,next,optimized)}nonHydratedAsyncRoot.asyncDep.then(()=>{queuePostRenderEffect(()=>{if(!instance.isUnmounted)update()},parentSuspense)});return}}let originNext=next;let vnodeHook;toggleRecurse(instance,false);if(next){next.el=vnode.el;updateComponentPreRender(instance,next,optimized)}else next=vnode;if(bu)invokeArrayFns(bu);if(vnodeHook=next.props&&next.props.onVnodeBeforeUpdate)invokeVNodeHook(vnodeHook,parent,next,vnode);toggleRecurse(instance,true);const nextTree=renderComponentRoot(instance);const prevTree=instance.subTree;instance.subTree=nextTree;patch(prevTree,nextTree,hostParentNode(prevTree.el),getNextHostNode(prevTree),instance,parentSuspense,namespace);next.el=nextTree.el;if(originNext===null)updateHOCHostEl(instance,nextTree.el);if(u)queuePostRenderEffect(u,parentSuspense);if(vnodeHook=next.props&&next.props.onVnodeUpdated)queuePostRenderEffect(()=>invokeVNodeHook(vnodeHook,parent,next,vnode),parentSuspense)}};instance.scope.on();const effect=instance.effect=new ReactiveEffect(componentUpdateFn);instance.scope.off();const update=instance.update=effect.run.bind(effect);const job=instance.job=effect.runIfDirty.bind(effect);job.i=instance;job.id=instance.uid;effect.scheduler=()=>queueJob(job);toggleRecurse(instance,true);update()};const updateComponentPreRender=(instance,nextVNode,optimized)=>{nextVNode.component=instance;const prevProps=instance.vnode.props;instance.vnode=nextVNode;instance.next=null;updateProps(instance,nextVNode.props,prevProps,optimized);updateSlots(instance,nextVNode.children,optimized);pauseTracking();flushPreFlushCbs(instance);resetTracking()};const patchChildren=(n1,n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized=false)=>{const c1=n1&&n1.children;const prevShapeFlag=n1?n1.shapeFlag:0;const c2=n2.children;const{patchFlag,shapeFlag}=n2;if(patchFlag>0){if(patchFlag&128){patchKeyedChildren(c1,c2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized);return}else if(patchFlag&256){patchUnkeyedChildren(c1,c2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized);return}}if(shapeFlag&8){if(prevShapeFlag&16)unmountChildren(c1,parentComponent,parentSuspense);if(c2!==c1)hostSetElementText(container,c2)}else if(prevShapeFlag&16){if(shapeFlag&16)patchKeyedChildren(c1,c2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized);else unmountChildren(c1,parentComponent,parentSuspense,true)}else{if(prevShapeFlag&8)hostSetElementText(container,``);if(shapeFlag&16)mountChildren(c2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized)}};const patchUnkeyedChildren=(c1,c2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized)=>{c1=c1||EMPTY_ARR;c2=c2||EMPTY_ARR;const oldLength=c1.length;const newLength=c2.length;const commonLength=Math.min(oldLength,newLength);let i=0;for(;i<commonLength;i++){const nextChild=c2[i]=optimized?cloneIfMounted(c2[i]):normalizeVNode(c2[i]);patch(c1[i],nextChild,container,null,parentComponent,parentSuspense,namespace,slotScopeIds,optimized)}if(oldLength>newLength)unmountChildren(c1,parentComponent,parentSuspense,true,false,commonLength);else mountChildren(c2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized,commonLength)};const patchKeyedChildren=(c1,c2,container,parentAnchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized)=>{let i=0;const l2=c2.length;let e1=c1.length-1;let e2=l2-1;while(i<=e1&&i<=e2){const n1=c1[i];const n2=c2[i]=optimized?cloneIfMounted(c2[i]):normalizeVNode(c2[i]);if(isSameVNodeType(n1,n2))patch(n1,n2,container,null,parentComponent,parentSuspense,namespace,slotScopeIds,optimized);else break;i++}while(i<=e1&&i<=e2){const n1=c1[e1];const n2=c2[e2]=optimized?cloneIfMounted(c2[e2]):normalizeVNode(c2[e2]);if(isSameVNodeType(n1,n2))patch(n1,n2,container,null,parentComponent,parentSuspense,namespace,slotScopeIds,optimized);else break;e1--;e2--}if(i>e1){if(i<=e2){const nextPos=e2+1;const anchor=nextPos<l2?c2[nextPos].el:parentAnchor;while(i<=e2){patch(null,c2[i]=optimized?cloneIfMounted(c2[i]):normalizeVNode(c2[i]),container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized);i++}}}else if(i>e2)while(i<=e1){unmount(c1[i],parentComponent,parentSuspense,true);i++}else{const s1=i;const s2=i;const keyToNewIndexMap=new Map;for(i=s2;i<=e2;i++){const nextChild=c2[i]=optimized?cloneIfMounted(c2[i]):normalizeVNode(c2[i]);if(nextChild.key!=null)keyToNewIndexMap.set(nextChild.key,i)}let j;let patched=0;const toBePatched=e2-s2+1;let moved=false;let maxNewIndexSoFar=0;const newIndexToOldIndexMap=new Array(toBePatched);for(i=0;i<toBePatched;i++)newIndexToOldIndexMap[i]=0;for(i=s1;i<=e1;i++){const prevChild=c1[i];if(patched>=toBePatched){unmount(prevChild,parentComponent,parentSuspense,true);continue}let newIndex;if(prevChild.key!=null)newIndex=keyToNewIndexMap.get(prevChild.key);else for(j=s2;j<=e2;j++)if(newIndexToOldIndexMap[j-s2]===0&&isSameVNodeType(prevChild,c2[j])){newIndex=j;break}if(newIndex===void 0)unmount(prevChild,parentComponent,parentSuspense,true);else{newIndexToOldIndexMap[newIndex-s2]=i+1;if(newIndex>=maxNewIndexSoFar)maxNewIndexSoFar=newIndex;else moved=true;patch(prevChild,c2[newIndex],container,null,parentComponent,parentSuspense,namespace,slotScopeIds,optimized);patched++}}const increasingNewIndexSequence=moved?getSequence(newIndexToOldIndexMap):EMPTY_ARR;j=increasingNewIndexSequence.length-1;for(i=toBePatched-1;i>=0;i--){const nextIndex=s2+i;const nextChild=c2[nextIndex];const anchorVNode=c2[nextIndex+1];const anchor=nextIndex+1<l2?anchorVNode.el||resolveAsyncComponentPlaceholder(anchorVNode):parentAnchor;if(newIndexToOldIndexMap[i]===0)patch(null,nextChild,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized);else if(moved){if(j<0||i!==increasingNewIndexSequence[j])move(nextChild,container,anchor,2);else j--}}}};const move=(vnode,container,anchor,moveType,parentSuspense=null)=>{const{el,type,transition,children,shapeFlag}=vnode;if(shapeFlag&6){move(vnode.component.subTree,container,anchor,moveType);return}if(shapeFlag&128){vnode.suspense.move(container,anchor,moveType);return}if(shapeFlag&64){type.move(vnode,container,anchor,internals);return}if(type===Fragment){hostInsert(el,container,anchor);for(let i=0;i<children.length;i++)move(children[i],container,anchor,moveType);hostInsert(vnode.anchor,container,anchor);return}if(type===Static){moveStaticNode(vnode,container,anchor);return}if(moveType!==2&&shapeFlag&1&&transition){if(moveType===0){if(transition.persisted&&!el[leaveCbKey])hostInsert(el,container,anchor);else{transition.beforeEnter(el);hostInsert(el,container,anchor);queuePostRenderEffect(()=>transition.enter(el),parentSuspense)}}else{const{leave,delayLeave,afterLeave}=transition;const remove2=()=>{if(vnode.ctx.isUnmounted)hostRemove(el);else hostInsert(el,container,anchor)};const performLeave=()=>{const wasLeaving=el._isLeaving||!!el[leaveCbKey];if(el._isLeaving)el[leaveCbKey](true);if(transition.persisted&&!wasLeaving)remove2();else leave(el,()=>{remove2();afterLeave&&afterLeave()})};if(delayLeave)delayLeave(el,remove2,performLeave);else performLeave()}}else hostInsert(el,container,anchor)};const unmount=(vnode,parentComponent,parentSuspense,doRemove=false,optimized=false)=>{const{type,props,ref,children,dynamicChildren,shapeFlag,patchFlag,dirs,cacheIndex,memo}=vnode;if(patchFlag===-2||dynamicChildren&&dynamicChildren.hasOnce)optimized=false;if(ref!=null){pauseTracking();setRef(ref,null,parentSuspense,vnode,true);resetTracking()}if(cacheIndex!=null&&(!vnode.ctx||vnode.ctx===parentComponent))parentComponent.renderCache[cacheIndex]=void 0;if(shapeFlag&256){parentComponent.ctx.deactivate(vnode);return}const shouldInvokeDirs=shapeFlag&1&&dirs;const shouldInvokeVnodeHook=!isAsyncWrapper(vnode);let vnodeHook;if(shouldInvokeVnodeHook&&(vnodeHook=props&&props.onVnodeBeforeUnmount))invokeVNodeHook(vnodeHook,parentComponent,vnode);if(shapeFlag&6)unmountComponent(vnode.component,parentSuspense,doRemove);else{if(shapeFlag&128){vnode.suspense.unmount(parentSuspense,doRemove);return}if(shouldInvokeDirs)invokeDirectiveHook(vnode,null,parentComponent,`beforeUnmount`);if(shapeFlag&64)vnode.type.remove(vnode,parentComponent,parentSuspense,internals,doRemove);else if(dynamicChildren&&!dynamicChildren.hasOnce&&(type!==Fragment||patchFlag>0&&patchFlag&64))unmountChildren(dynamicChildren,parentComponent,parentSuspense,false,true);else if(type===Fragment&&patchFlag&384||!optimized&&shapeFlag&16)unmountChildren(children,parentComponent,parentSuspense);if(doRemove)remove(vnode)}const shouldInvalidateMemo=memo!=null&&cacheIndex==null;if(shouldInvokeVnodeHook&&(vnodeHook=props&&props.onVnodeUnmounted)||shouldInvokeDirs||shouldInvalidateMemo)queuePostRenderEffect(()=>{vnodeHook&&invokeVNodeHook(vnodeHook,parentComponent,vnode);shouldInvokeDirs&&invokeDirectiveHook(vnode,null,parentComponent,`unmounted`);if(shouldInvalidateMemo)vnode.el=null},parentSuspense)};const remove=vnode=>{const{type,el,anchor,transition}=vnode;const isFragment=type===Fragment;if(isFragment&&!transition){removeFragment(el,anchor);return}if(type===Static){removeStaticNode(vnode);if(transition&&!transition.persisted&&transition.afterLeave)transition.afterLeave();return}const leavingNode=isFragment?getTransitionRoot(vnode):vnode;const performRemove=()=>{if(isFragment){if(hostParentNode(el))removeFragment(el,anchor)}else hostRemove(el);if(transition&&!transition.persisted&&transition.afterLeave)transition.afterLeave()};if(leavingNode&&leavingNode.shapeFlag&1&&transition&&!transition.persisted){const{leave,delayLeave}=transition;const leavingEl=leavingNode.el;const performLeave=()=>leave(leavingEl,performRemove);if(delayLeave)delayLeave(leavingEl,performRemove,performLeave);else performLeave()}else performRemove()};const removeFragment=(cur,end)=>{let next;while(cur!==end){next=hostNextSibling(cur);hostRemove(cur);cur=next}hostRemove(end)};const unmountComponent=(instance,parentSuspense,doRemove)=>{const{bum,scope,job,subTree,um,m,a}=instance;invalidateMount(m);invalidateMount(a);if(bum)invokeArrayFns(bum);scope.stop();if(job){job.flags|=8;unmount(subTree,instance,parentSuspense,doRemove)}else if(instance.vnode.el&&subTree){subTree.transition=instance.vnode.transition;unmount(subTree,instance,parentSuspense,doRemove)}if(um)queuePostRenderEffect(um,parentSuspense);queuePostRenderEffect(()=>{instance.isUnmounted=true},parentSuspense)};const unmountChildren=(children,parentComponent,parentSuspense,doRemove=false,optimized=false,start=0)=>{for(let i=start;i<children.length;i++)unmount(children[i],parentComponent,parentSuspense,doRemove,optimized)};const getNextHostNode=vnode=>{if(vnode.shapeFlag&6)return getNextHostNode(vnode.component.subTree);if(vnode.shapeFlag&128)return vnode.suspense.next();const el=hostNextSibling(vnode.anchor||vnode.el);const teleportEnd=el&&el[TeleportEndKey];return teleportEnd?hostNextSibling(teleportEnd):el};const render=(vnode,container,namespace)=>{flushOnAppMount(()=>{if(vnode==null){if(container._vnode)unmount(container._vnode,null,null,true)}else patch(container._vnode||null,vnode,container,null,null,null,namespace);container._vnode=vnode},vnode&&container._vnode?void 0:vnode&&vnode.component?vnode.component.uid:getNextUid())};const internals={p:patch,um:unmount,m:move,r:remove,mt:mountComponent,mc:mountChildren,pc:patchChildren,pbc:patchBlockChildren,n:getNextHostNode,o:options};let hydrate;let hydrateNode;if(createHydrationFns)[hydrate,hydrateNode]=createHydrationFns(internals);return{render,hydrate,createApp:createAppAPI(render,hydrate)}}function resolveChildrenNamespace({type,props},currentNamespace){return currentNamespace===`svg`&&type===`foreignObject`||currentNamespace===`mathml`&&type===`annotation-xml`&&props&&props.encoding&&props.encoding.includes(`html`)?void 0:currentNamespace}function toggleRecurse({effect,job},allowed){if(allowed){effect.flags|=32;job.flags|=4}else{effect.flags&=-33;job.flags&=-5}}function needTransition(parentSuspense,transition){return(!parentSuspense||parentSuspense&&!parentSuspense.pendingBranch)&&transition&&!transition.persisted}function traverseStaticChildren(n1,n2,shallow=false){const ch1=n1.children;const ch2=n2.children;if(isArray(ch1)&&isArray(ch2))for(let i=0;i<ch1.length;i++){const c1=ch1[i];let c2=ch2[i];if(c2.shapeFlag&1&&!c2.dynamicChildren){if(c2.patchFlag<=0||c2.patchFlag===32){c2=ch2[i]=cloneIfMounted(ch2[i]);c2.el=c1.el}if(!shallow&&c2.patchFlag!==-2)traverseStaticChildren(c1,c2)}if(c2.type===Text){if(c2.patchFlag===-1)c2=ch2[i]=cloneIfMounted(c2);c2.el=c1.el}if(c2.type===Comment&&!c2.el)c2.el=c1.el}}function getSequence(arr){const p=arr.slice();const result=[0];let i,j,u,v,c;const len=arr.length;for(i=0;i<len;i++){const arrI=arr[i];if(arrI!==0){j=result[result.length-1];if(arr[j]<arrI){p[i]=j;result.push(i);continue}u=0;v=result.length-1;while(u<v){c=u+v>>1;if(arr[result[c]]<arrI)u=c+1;else v=c}if(arrI<arr[result[u]]){if(u>0)p[i]=result[u-1];result[u]=i}}}u=result.length;v=result[u-1];while(u-->0){result[u]=v;v=p[v]}return result}function locateNonHydratedAsyncRoot(instance){const subComponent=instance.subTree.component;if(subComponent){if(subComponent.asyncDep&&!subComponent.asyncResolved)return subComponent;else return locateNonHydratedAsyncRoot(subComponent)}}function invalidateMount(hooks){if(hooks)for(let i=0;i<hooks.length;i++)hooks[i].flags|=8}function resolveAsyncComponentPlaceholder(anchorVnode){if(anchorVnode.placeholder)return anchorVnode.placeholder;const instance=anchorVnode.component;if(instance)return resolveAsyncComponentPlaceholder(instance.subTree);return null}var isSuspense=type=>type.__isSuspense;function queueEffectWithSuspense(fn,suspense){if(suspense&&suspense.pendingBranch){if(isArray(fn))suspense.effects.push(...fn);else suspense.effects.push(fn)}else queuePostFlushCb(fn)}var Fragment=Symbol.for(`v-fgt`);var Text=Symbol.for(`v-txt`);var Comment=Symbol.for(`v-cmt`);var Static=Symbol.for(`v-stc`);var blockStack=[];var currentBlock=null;function openBlock(disableTracking=false){blockStack.push(currentBlock=disableTracking?null:[])}function closeBlock(){blockStack.pop();currentBlock=blockStack[blockStack.length-1]||null}var isBlockTreeEnabled=1;function setBlockTracking(value,inVOnce=false){isBlockTreeEnabled+=value;if(value<0&&currentBlock&&inVOnce)currentBlock.hasOnce=true}function setupBlock(vnode){vnode.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null;closeBlock();if(isBlockTreeEnabled>0&&currentBlock)currentBlock.push(vnode);return vnode}function createElementBlock(type,props,children,patchFlag,dynamicProps,shapeFlag){return setupBlock(createBaseVNode(type,props,children,patchFlag,dynamicProps,shapeFlag,true))}function createBlock(type,props,children,patchFlag,dynamicProps){return setupBlock(createVNode(type,props,children,patchFlag,dynamicProps,true))}function isVNode(value){return value?value.__v_isVNode===true:false}function isSameVNodeType(n1,n2){return n1.type===n2.type&&n1.key===n2.key}var normalizeKey=({key})=>key!=null?key:null;var normalizeRef=({ref,ref_key,ref_for})=>{if(typeof ref===`number`)ref=``+ref;return ref!=null?isString(ref)||isRef(ref)||isFunction(ref)?{i:currentRenderingInstance,r:ref,k:ref_key,f:!!ref_for}:ref:null};function createBaseVNode(type,props=null,children=null,patchFlag=0,dynamicProps=null,shapeFlag=type===Fragment?0:1,isBlockNode=false,needFullChildrenNormalization=false){const vnode={__v_isVNode:true,__v_skip:true,type,props,key:props&&normalizeKey(props),ref:props&&normalizeRef(props),scopeId:currentScopeId,slotScopeIds:null,children,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag,patchFlag,dynamicProps,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};if(needFullChildrenNormalization){normalizeChildren(vnode,children);if(shapeFlag&128)type.normalize(vnode)}else if(children)vnode.shapeFlag|=isString(children)?8:16;if(isBlockTreeEnabled>0&&!isBlockNode&&currentBlock&&(vnode.patchFlag>0||shapeFlag&6)&&vnode.patchFlag!==32)currentBlock.push(vnode);return vnode}var createVNode=_createVNode;function _createVNode(type,props=null,children=null,patchFlag=0,dynamicProps=null,isBlockNode=false){if(!type||type===NULL_DYNAMIC_COMPONENT)type=Comment;if(isVNode(type)){const cloned=cloneVNode(type,props,true);if(children)normalizeChildren(cloned,children);if(isBlockTreeEnabled>0&&!isBlockNode&&currentBlock){if(cloned.shapeFlag&6)currentBlock[currentBlock.indexOf(type)]=cloned;else currentBlock.push(cloned)}cloned.patchFlag=-2;return cloned}if(isClassComponent(type))type=type.__vccOpts;if(props){props=guardReactiveProps(props);let{class:klass,style}=props;if(klass&&!isString(klass))props.class=normalizeClass(klass);if(isObject(style)){if(isProxy(style)&&!isArray(style))style=extend({},style);props.style=normalizeStyle(style)}}const shapeFlag=isString(type)?1:isSuspense(type)?128:isTeleport(type)?64:isObject(type)?4:isFunction(type)?2:0;return createBaseVNode(type,props,children,patchFlag,dynamicProps,shapeFlag,isBlockNode,true)}function guardReactiveProps(props){if(!props)return null;return isProxy(props)||isInternalObject(props)?extend({},props):props}function cloneVNode(vnode,extraProps,mergeRef=false,cloneTransition=false){const{props,ref,patchFlag,children,transition}=vnode;const mergedProps=extraProps?mergeProps(props||{},extraProps):props;const cloned={__v_isVNode:true,__v_skip:true,type:vnode.type,props:mergedProps,key:mergedProps&&normalizeKey(mergedProps),ref:extraProps&&extraProps.ref?mergeRef&&ref?isArray(ref)?ref.concat(normalizeRef(extraProps)):[ref,normalizeRef(extraProps)]:normalizeRef(extraProps):ref,scopeId:vnode.scopeId,slotScopeIds:vnode.slotScopeIds,children,target:vnode.target,targetStart:vnode.targetStart,targetAnchor:vnode.targetAnchor,staticCount:vnode.staticCount,shapeFlag:vnode.shapeFlag,patchFlag:extraProps&&vnode.type!==Fragment?patchFlag===-1?16:patchFlag|16:patchFlag,dynamicProps:vnode.dynamicProps,dynamicChildren:vnode.dynamicChildren,appContext:vnode.appContext,dirs:vnode.dirs,transition,component:vnode.component,suspense:vnode.suspense,ssContent:vnode.ssContent&&cloneVNode(vnode.ssContent),ssFallback:vnode.ssFallback&&cloneVNode(vnode.ssFallback),placeholder:vnode.placeholder,el:vnode.el,anchor:vnode.anchor,ctx:vnode.ctx,ce:vnode.ce,cacheIndex:vnode.cacheIndex};if(transition&&cloneTransition)setTransitionHooks(cloned,transition.clone(cloned));return cloned}function createTextVNode(text=` `,flag=0){return createVNode(Text,null,text,flag)}function createStaticVNode(content,numberOfNodes){const vnode=createVNode(Static,null,content);vnode.staticCount=numberOfNodes;return vnode}function createCommentVNode(text=``,asBlock=false){return asBlock?(openBlock(),createBlock(Comment,null,text)):createVNode(Comment,null,text)}function normalizeVNode(child){if(child==null||typeof child===`boolean`)return createVNode(Comment);else if(isArray(child))return createVNode(Fragment,null,child.slice());else if(isVNode(child))return cloneIfMounted(child);else return createVNode(Text,null,String(child))}function cloneIfMounted(child){return child.el===null&&child.patchFlag!==-1||child.memo?child:cloneVNode(child)}function normalizeChildren(vnode,children){let type=0;const{shapeFlag}=vnode;if(children==null)children=null;else if(isArray(children))type=16;else if(typeof children===`object`){if(shapeFlag&65){const slot=children.default;if(slot){slot._c&&(slot._d=false);normalizeChildren(vnode,slot());slot._c&&(slot._d=true)}return}else{type=32;const slotFlag=children._;if(!slotFlag&&!isInternalObject(children))children._ctx=currentRenderingInstance;else if(slotFlag===3&&currentRenderingInstance){if(currentRenderingInstance.slots._===1)children._=1;else{children._=2;vnode.patchFlag|=1024}}}}else if(isFunction(children)){if(shapeFlag&65){normalizeChildren(vnode,{default:children});return}children={default:children,_ctx:currentRenderingInstance};type=32}else{children=String(children);if(shapeFlag&64){type=16;children=[createTextVNode(children)]}else type=8}vnode.children=children;vnode.shapeFlag|=type}function mergeProps(...args){const ret={};for(let i=0;i<args.length;i++){const toMerge=args[i];for(const key in toMerge)if(key===`class`){if(ret.class!==toMerge.class)ret.class=normalizeClass([ret.class,toMerge.class])}else if(key===`style`)ret.style=normalizeStyle([ret.style,toMerge.style]);else if(isOn(key)){const existing=ret[key];const incoming=toMerge[key];if(incoming&&existing!==incoming&&!(isArray(existing)&&existing.includes(incoming)))ret[key]=existing?[].concat(existing,incoming):incoming;else if(incoming==null&&existing==null&&!isModelListener(key))ret[key]=incoming}else if(key!==``)ret[key]=toMerge[key]}return ret}function invokeVNodeHook(hook,instance,vnode,prevVNode=null){callWithAsyncErrorHandling(hook,instance,7,[vnode,prevVNode])}var emptyAppContext=createAppContext();var uid=0;function getNextUid(){return uid}function createComponentInstance(vnode,parent,suspense){const type=vnode.type;const appContext=(parent?parent.appContext:vnode.appContext)||emptyAppContext;const instance={uid:uid++,vnode,type,parent,appContext,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new EffectScope(true),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:parent?parent.provides:Object.create(appContext.provides),ids:parent?parent.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:normalizePropsOptions(type,appContext),emitsOptions:normalizeEmitsOptions(type,appContext),emit:null,emitted:null,propsDefaults:EMPTY_OBJ,inheritAttrs:type.inheritAttrs,ctx:EMPTY_OBJ,data:EMPTY_OBJ,props:EMPTY_OBJ,attrs:EMPTY_OBJ,slots:EMPTY_OBJ,refs:EMPTY_OBJ,setupState:EMPTY_OBJ,setupContext:null,suspense,suspenseId:suspense?suspense.pendingId:0,asyncDep:null,asyncResolved:false,isMounted:false,isUnmounted:false,isDeactivated:false,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};instance.ctx={_:instance};instance.root=parent?parent.root:instance;instance.emit=emit.bind(null,instance);if(vnode.ce)vnode.ce(instance);return instance}var currentInstance=null;var getCurrentInstance=()=>currentInstance||currentRenderingInstance;var internalSetCurrentInstance;var setInSSRSetupState;{const g=getGlobalThis();const registerGlobalSetter=(key,setter)=>{let setters;if(!(setters=g[key]))setters=g[key]=[];setters.push(setter);return v=>{if(setters.length>1)setters.forEach(set=>set(v));else setters[0](v)}};internalSetCurrentInstance=registerGlobalSetter(`__VUE_INSTANCE_SETTERS__`,v=>currentInstance=v);setInSSRSetupState=registerGlobalSetter(`__VUE_SSR_SETTERS__`,v=>isInSSRComponentSetup=v)}var setCurrentInstance=instance=>{const prev=currentInstance;internalSetCurrentInstance(instance);instance.scope.on();return()=>{instance.scope.off();internalSetCurrentInstance(prev)}};var unsetCurrentInstance=()=>{currentInstance&&currentInstance.scope.off();internalSetCurrentInstance(null)};function isStatefulComponent(instance){return instance.vnode.shapeFlag&4}var isInSSRComponentSetup=false;function setupComponent(instance,isSSR=false,optimized=false){isSSR&&setInSSRSetupState(isSSR);const{props,children}=instance.vnode;const isStateful=isStatefulComponent(instance);initProps(instance,props,isStateful,isSSR);initSlots(instance,children,optimized||isSSR);const setupResult=isStateful?setupStatefulComponent(instance,isSSR):void 0;isSSR&&setInSSRSetupState(false);return setupResult}function setupStatefulComponent(instance,isSSR){const Component=instance.type;instance.accessCache=Object.create(null);instance.proxy=new Proxy(instance.ctx,PublicInstanceProxyHandlers);const{setup}=Component;if(setup){pauseTracking();const setupContext=instance.setupContext=setup.length>1?createSetupContext(instance):null;const reset=setCurrentInstance(instance);const setupResult=callWithErrorHandling(setup,instance,0,[instance.props,setupContext]);const isAsyncSetup=isPromise(setupResult);resetTracking();reset();if((isAsyncSetup||instance.sp)&&!isAsyncWrapper(instance))markAsyncBoundary(instance);if(isAsyncSetup){setupResult.then(unsetCurrentInstance,unsetCurrentInstance);if(isSSR)return setupResult.then(resolvedResult=>{setInSSRSetupState(true);try{handleSetupResult(instance,resolvedResult,isSSR)}finally{setInSSRSetupState(false)}}).catch(e=>{handleError(e,instance,0)});else instance.asyncDep=setupResult}else handleSetupResult(instance,setupResult,isSSR)}else finishComponentSetup(instance,isSSR)}function handleSetupResult(instance,setupResult,isSSR){if(isFunction(setupResult)){if(instance.type.__ssrInlineRender)instance.ssrRender=setupResult;else instance.render=setupResult}else if(isObject(setupResult))instance.setupState=proxyRefs(setupResult);finishComponentSetup(instance,isSSR)}var compile;var installWithProxy;function finishComponentSetup(instance,isSSR,skipOptions){const Component=instance.type;if(!instance.render){if(!isSSR&&compile&&!Component.render){const template=Component.template||resolveMergedOptions(instance).template;if(template){const{isCustomElement,compilerOptions}=instance.appContext.config;const{delimiters,compilerOptions:componentCompilerOptions}=Component;const finalCompilerOptions=extend(extend({isCustomElement,delimiters},compilerOptions),componentCompilerOptions);Component.render=compile(template,finalCompilerOptions)}}instance.render=Component.render||NOOP;if(installWithProxy)installWithProxy(instance)}{const reset=setCurrentInstance(instance);pauseTracking();try{applyOptions(instance)}finally{resetTracking();reset()}}}var attrsProxyHandlers={get(target,key){track(target,`get`,``);return target[key]}};function createSetupContext(instance){const expose=exposed=>{instance.exposed=exposed||{}};return{attrs:new Proxy(instance.attrs,attrsProxyHandlers),slots:instance.slots,emit:instance.emit,expose}}function getComponentPublicInstance(instance){if(instance.exposed)return instance.exposeProxy||(instance.exposeProxy=new Proxy(proxyRefs(markRaw(instance.exposed)),{get(target,key){if(key in target)return target[key];else if(key in publicPropertiesMap)return publicPropertiesMap[key](instance)},has(target,key){return key in target||key in publicPropertiesMap}}));else return instance.proxy}function getComponentName(Component,includeInferred=true){return isFunction(Component)?Component.displayName||Component.name:Component.name||includeInferred&&Component.__name}function isClassComponent(value){return isFunction(value)&&`__vccOpts`in value}var computed=(getterOrOptions,debugOptions)=>{return computed$1(getterOrOptions,debugOptions,isInSSRComponentSetup)};function h(type,propsOrChildren,children){try{setBlockTracking(-1);const l=arguments.length;if(l===2){if(isObject(propsOrChildren)&&!isArray(propsOrChildren)){if(isVNode(propsOrChildren))return createVNode(type,null,[propsOrChildren]);return createVNode(type,propsOrChildren)}else return createVNode(type,null,propsOrChildren)}else{if(l>3)children=Array.prototype.slice.call(arguments,2);else if(l===3&&isVNode(children))children=[children];return createVNode(type,propsOrChildren,children)}}finally{setBlockTracking(1)}}function isMemoSame(cached,memo){const prev=cached.memo;if(prev.length!=memo.length)return false;for(let i=0;i<prev.length;i++)if(hasChanged(prev[i],memo[i]))return false;if(isBlockTreeEnabled>0&&currentBlock)currentBlock.push(cached);return true}var version=`3.5.44`;var warn=NOOP;export{useId as $,isVNode as A,extend as At,onUnmounted as B,isSpecialBooleanAttr as Bt,getCurrentInstance as C,toRef as Ct,hasInjectionContext as D,NOOP as Dt,h as E,unref as Et,onBeforeMount as F,isFunction as Ft,renderList as G,looseToNumber as Gt,openBlock as H,isSymbol as Ht,onBeforeUnmount as I,isModelListener as It,resolveDynamicComponent as J,normalizeProps as Jt,renderSlot as K,normalizeClass as Kt,onBeforeUpdate as L,isObject as Lt,mergeProps as M,includeBooleanAttr as Mt,nextTick as N,invokeArrayFns as Nt,inject as O,camelize as Ot,onActivated as P,isArray as Pt,useAttrs as Q,onDeactivated as R,isOn as Rt,defineComponent as S,toRaw as St,guardReactiveProps as T,toValue as Tt,provide as U,looseEqual as Ut,onUpdated as V,isString as Vt,queuePostFlushCb as W,looseIndexOf as Wt,setTransitionHooks as X,toDisplayString as Xt,resolveTransitionHooks as Y,normalizeStyle as Yt,toHandlers as Z,toNumber as Zt,createSlots as _,readonly as _t,Static as a,watchEffect as at,createVNode as b,shallowReadonly as bt,callWithAsyncErrorHandling as c,customRef as ct,createBaseVNode as d,isReactive as dt,useModel as et,createBlock as f,isRef as ft,createRenderer as g,reactive as gt,createPropsRestProxy as h,proxyRefs as ht,Fragment as i,watch as it,mergeModels as j,hyphenate as jt,isMemoSame as k,capitalize as kt,cloneVNode as l,effectScope as lt,createElementBlock as m,onScopeDispose as mt,BaseTransitionPropsValidators as n,useTransitionState as nt,Teleport as o,withCtx as ot,createCommentVNode as p,markRaw as pt,resolveComponent as q,normalizeCssVarValue as qt,Comment as r,warn as rt,Text as s,withDirectives as st,BaseTransition as t,useSlots as tt,computed as u,getCurrentScope as ut,createStaticVNode as v,ref as vt,getTransitionRawChildren as w,toRefs as wt,defineAsyncComponent as x,shallowRef as xt,createTextVNode as y,shallowReactive as yt,onMounted as z,isSet as zt};
@@ -1 +0,0 @@
1
- import{G as renderList,H as openBlock,I as onBeforeUnmount,Xt as toDisplayString,b as createVNode,d as createBaseVNode,f as createBlock,i as Fragment,m as createElementBlock,ot as withCtx,p as createCommentVNode,u as computed,vt as ref,y as createTextVNode}from"./runtime-core.esm-bundler-Bi1P1jMa.js";import{S as VIcon,t as VChip}from"./VChip-tORFnf7z.js";import{t as VBtn}from"./VBtn-Com1gNEe.js";import{t as VSheet}from"./VSheet-_Grtwpfz.js";import{t as _plugin_vue_export_helper_default}from"./_plugin-vue_export-helper-DNW4j-dv.js";import{n as vibe64SessionInfoText,t as vibe64SessionInfoFacts}from"./vibe64SessionInfo-D68p7LdH.js";import{t as Vibe64DashboardPageHeader_default}from"./Vibe64DashboardPageHeader-CobvMlFm.js";var _hoisted_1$1={class:`studio-ai-session-facts__header`};var _hoisted_2={class:`studio-ai-session-facts__grid`};var _hoisted_3={class:`studio-ai-session-facts__icon`};var _hoisted_4={class:`studio-ai-session-facts__copy`};var _hoisted_5={class:`studio-ai-session-facts__label`};var _hoisted_6=[`href`];var _hoisted_7={key:1,class:`studio-ai-session-facts__value`};var _hoisted_8={key:2,class:`studio-ai-session-facts__detail`};var _hoisted_9={key:0,class:`studio-ai-session-facts__actions`};var _sfc_main$1={__name:`Vibe64SessionFacts`,props:{facts:{default:()=>[],type:Array},statusColor:{default:`default`,type:String},statusLabel:{default:``,type:String}},emits:[`copy`],setup(__props,{emit:__emit}){const emit=__emit;return(_ctx,_cache)=>{return __props.facts.length?(openBlock(),createBlock(VSheet,{key:0,rounded:`lg`,color:`surface-container-low`,class:`studio-ai-session-facts`},{default:withCtx(()=>[createBaseVNode(`div`,_hoisted_1$1,[_cache[0]||(_cache[0]=createBaseVNode(`h2`,{class:`studio-ai-session-facts__title`},`Session details`,-1)),createVNode(VChip,{color:__props.statusColor,density:`comfortable`,size:`small`,variant:`tonal`},{default:withCtx(()=>[createTextVNode(toDisplayString(__props.statusLabel),1)]),_:1},8,[`color`])]),createBaseVNode(`div`,_hoisted_2,[(openBlock(true),createElementBlock(Fragment,null,renderList(__props.facts,fact=>{return openBlock(),createElementBlock(`div`,{key:fact.key,class:`studio-ai-session-facts__item`},[createBaseVNode(`div`,_hoisted_3,[createVNode(VIcon,{icon:fact.icon,size:`18`},null,8,[`icon`])]),createBaseVNode(`div`,_hoisted_4,[createBaseVNode(`div`,_hoisted_5,toDisplayString(fact.label),1),fact.href?(openBlock(),createElementBlock(`a`,{key:0,class:`studio-ai-session-facts__value studio-ai-session-facts__link`,href:fact.href,target:`_blank`,rel:`noreferrer`},toDisplayString(fact.value),9,_hoisted_6)):(openBlock(),createElementBlock(`div`,_hoisted_7,toDisplayString(fact.value),1)),fact.detail?(openBlock(),createElementBlock(`div`,_hoisted_8,toDisplayString(fact.detail),1)):createCommentVNode(``,true)]),fact.href||fact.copyValue?(openBlock(),createElementBlock(`div`,_hoisted_9,[fact.href?(openBlock(),createBlock(VBtn,{key:0,href:fact.href,target:`_blank`,rel:`noreferrer`,icon:`$openInNew`,size:`x-small`,variant:`text`},null,8,[`href`])):createCommentVNode(``,true),fact.copyValue?(openBlock(),createBlock(VBtn,{key:1,"aria-label":`Copy ${fact.label}`,icon:`$contentCopy`,size:`x-small`,variant:`text`,onClick:$event=>emit(`copy`,fact.copyValue,fact.label)},null,8,[`aria-label`,`onClick`])):createCommentVNode(``,true)])):createCommentVNode(``,true)])}),128))])]),_:1})):createCommentVNode(``,true)}}};var Vibe64SessionFacts_default=_plugin_vue_export_helper_default(_sfc_main$1,[[`__scopeId`,`data-v-3e71b208`]]);var _hoisted_1={class:`vibe64-session-info-page`};var _sfc_main={__name:`index`,props:{dashboardContext:{default:()=>({}),type:Object}},setup(__props){const props=__props;const copied=ref(false);let copiedTimer=null;const dashboard=computed(()=>props.dashboardContext||{});const facts=computed(()=>vibe64SessionInfoFacts(dashboard.value.session,dashboard.value.projectContext));const statusColor=computed(()=>String(dashboard.value.statusColor||`default`));const statusLabel=computed(()=>String(dashboard.value.statusLabel||``));const copyContext=computed(()=>vibe64SessionInfoText(facts.value,{status:dashboard.value.session?.status}));function copyText(value=``){return typeof dashboard.value.copyText===`function`?dashboard.value.copyText(value):false}function copyFact(value){return copyText(value)}async function copyAll(){if(!copyContext.value||await copyText(copyContext.value)===false)return false;copied.value=true;clearTimeout(copiedTimer);copiedTimer=setTimeout(()=>{copied.value=false},1800);return true}onBeforeUnmount(()=>{clearTimeout(copiedTimer)});return(_ctx,_cache)=>{return openBlock(),createElementBlock(`section`,_hoisted_1,[createVNode(Vibe64DashboardPageHeader_default,{description:`Paths, branch and agent identifiers for this session.`,icon:`$info`,title:`Session info`},{actions:withCtx(()=>[copyContext.value?(openBlock(),createBlock(VBtn,{key:0,"prepend-icon":copied.value?`$check`:`$contentCopy`,rounded:`pill`,type:`button`,variant:`tonal`,onClick:copyAll},{default:withCtx(()=>[createTextVNode(toDisplayString(copied.value?`Copied`:`Copy context`),1)]),_:1},8,[`prepend-icon`])):createCommentVNode(``,true)]),_:1}),facts.value.length?(openBlock(),createBlock(Vibe64SessionFacts_default,{key:0,facts:facts.value,"status-color":statusColor.value,"status-label":statusLabel.value,onCopy:copyFact},null,8,[`facts`,`status-color`,`status-label`])):(openBlock(),createBlock(VSheet,{key:1,class:`vibe64-session-info-page__empty`},{default:withCtx(()=>[..._cache[0]||(_cache[0]=[createBaseVNode(`h2`,null,`No active session`,-1),createBaseVNode(`p`,null,`Create or select a session to see its paths, branch, and agent identifiers.`,-1)])]),_:1}))])}}};var session_default=_plugin_vue_export_helper_default(_sfc_main,[[`__scopeId`,`data-v-8067e036`]]);export{session_default as default};
@@ -1 +0,0 @@
1
- import{Et as unref,G as renderList,H as openBlock,Xt as toDisplayString,b as createVNode,d as createBaseVNode,f as createBlock,ft as isRef,i as Fragment,it as watch,m as createElementBlock,ot as withCtx,p as createCommentVNode,u as computed,vt as ref,y as createTextVNode}from"./runtime-core.esm-bundler-Bi1P1jMa.js";import{t as useEndpointResource}from"./useEndpointResource-BwGXpV2u.js";import{_ as useRouter,g as useRoute}from"./useApi-BPuI6ZR9-rsYWyW6m.js";import{t as VSelect}from"./VSelect-gYJ6qrBP.js";import{n as VAlert}from"./VSkeletonLoader-CQXCEJsR.js";import{t as VTextField}from"./VTextField-DP6b7Qaf.js";import{i as scopedDevelopmentApiUrl}from"./studioUrls-BR4ZL-TN.js";import{o as ROUTE_VISIBILITY_PUBLIC}from"./visibility-Cq31Xy7I.js";import{t as VBtn}from"./VBtn-Com1gNEe.js";import{t as VCheckbox}from"./VCheckbox-CkezAf4Z.js";import{n as VRadio,t as VRadioGroup}from"./VRadioGroup-BrPW6foD.js";import{t as VSwitch}from"./VSwitch-ffi-Y2TU.js";import{t as VTextarea}from"./VTextarea-7mdIF4I0.js";import{t as _plugin_vue_export_helper_default}from"./_plugin-vue_export-helper-DNW4j-dv.js";import{r as useRealtimeEvent}from"./useRealtimeEvent-B4oRg9Dt.js";import{t as _sfc_main$3}from"./SelectField-Df50ZFLj.js";import{t as useCommand}from"./useCommand-CfqxMb4C.js";import{o as reloadPage}from"./browser-D8z6v6Ge.js";import{c as VIBE64_SESSION_SUMMARY_CHANGED_EVENT}from"./vibe64SessionRequestConfig-DVRCRAex.js";import{A as projectSettingsQueryKey,E as engineeringSettingsQueryKey,S as VIBE64_PROJECT_CHANGED_EVENT,T as VIBE64_PROMPT_HINTS_SETTINGS_API_SUFFIX,_ as VIBE64_ENGINEERING_API_SUFFIX,d as PROMPT_HINTS_SETTINGS_ENDPOINT,g as VIBE64_DEVELOPMENT_DATABASE_API_SUFFIX,m as VIBE64_COLLABORATION_API_SUFFIX,n as DEVELOPMENT_DATABASE_ENDPOINT,r as ENGINEERING_ENDPOINT,t as COLLABORATION_ENDPOINT,u as PROJECT_SETTINGS_ENDPOINT}from"./studioGateApi-B9EUTtMx.js";import{M as useVibe64ProjectSlug,k as requestVibe64AccountConnectionsDialog}from"./index-FVeEbKiO.js";import{t as Vibe64AsyncModuleState_default}from"./Vibe64AsyncModuleState-CO1rMrtD.js";import{t as sessionListRealtimeShouldRefresh}from"./useVibe64SessionData-DuJ-dHR8.js";var CONNECTED_CUSTOM_PACKAGE_TYPE=`custom`;var CONNECTED_PACKAGE_TYPES=Object.freeze([Object.freeze({value:`npm`,label:`npm (Node.js)`}),Object.freeze({value:`composer`,label:`Composer (PHP)`}),Object.freeze({value:`pip`,label:`pip (Python)`}),Object.freeze({value:`bundler`,label:`Bundler (Ruby)`}),Object.freeze({value:`gomod`,label:`Go modules`}),Object.freeze({value:`cargo`,label:`Cargo (Rust)`}),Object.freeze({value:`maven`,label:`Maven`}),Object.freeze({value:`gradle`,label:`Gradle`}),Object.freeze({value:`nuget`,label:`NuGet (.NET)`}),Object.freeze({value:CONNECTED_CUSTOM_PACKAGE_TYPE,label:`custom`})]);var CONNECTED_PACKAGE_TYPE_VALUES=Object.freeze(CONNECTED_PACKAGE_TYPES.map(type=>type.value));function connectedPackageTypeUsesScript(type){return type===CONNECTED_CUSTOM_PACKAGE_TYPE}var _hoisted_1$2={class:`project-settings__section`,"aria-labelledby":`connected-projects-title`};var _hoisted_2$1={class:`project-settings__content text-body-medium`};var _hoisted_3$1={key:0};var _hoisted_4$1={key:0};var _hoisted_5$1=[`disabled`];var _hoisted_6$1={class:`text-label-large`};var _hoisted_7$1={key:2};var _hoisted_8$1={class:`connection-actions`};var _sfc_main$2={__name:`ConnectedProjectsSettings`,props:{projectSlug:{type:String,required:true},state:{type:Object,default:()=>({})}},emits:[`saved`],setup(__props,{emit:__emit}){const props=__props;const emit=__emit;const draft=ref([]);const baseline=ref(`[]`);const revision=ref(``);const saving=ref(false);const changed=computed(()=>JSON.stringify(draft.value)!==baseline.value);const stale=computed(()=>props.state.available&&revision.value!==props.state.revision);const relationships=[{label:`Dependency — a library or tool`,value:`dependency`},{label:`Composition — source assembled into this project`,value:`composition`}];const packageTypes=[{label:`Stack default`,value:``},...CONNECTED_PACKAGE_TYPES];function scriptAllowed(entry){return!entry.type||connectedPackageTypeUsesScript(entry.type)}function setPackageType(entry,value){if(value)entry.type=value;else delete entry.type;if(!scriptAllowed(entry))delete entry.script}function setScript(entry,value){if(value)entry.script=value;else delete entry.script}function resetDraft(){draft.value=(props.state.repositories||[]).map(entry=>({...entry}));baseline.value=JSON.stringify(draft.value);revision.value=props.state.revision||``}let sourceIdentity=``;watch(()=>[props.projectSlug,props.state],()=>{if(!props.state.source)return;const identity=JSON.stringify([props.projectSlug,props.state.source]);if(identity!==sourceIdentity||!changed.value)resetDraft();sourceIdentity=identity},{immediate:true});const saveCommand=useCommand({access:`never`,apiSuffix:`/vibe64/settings/connections`,buildCommandOptions:()=>({method:`PUT`,path:scopedDevelopmentApiUrl(`/api/vibe64/settings/connections`,props.projectSlug)}),buildRawPayload:(_model,{context})=>context,fallbackRunError:`Connected repositories could not be saved.`,messages:{error:`Connected repositories could not be saved.`,success:`Connected repositories saved in source.`},ownershipFilter:ROUTE_VISIBILITY_PUBLIC,placementSource:`vibe64.project.connections.save`,surfaceId:`app`,writeMethod:`PUT`});async function save(){if(saving.value||stale.value||!props.state.canEdit)return;saving.value=true;try{if(!await saveCommand.run({repositories:draft.value.map(entry=>({...entry})),revision:revision.value,sessionId:props.state.source?.sessionId||``}))return;baseline.value=JSON.stringify(draft.value);emit(`saved`)}catch{}finally{saving.value=false}}return(_ctx,_cache)=>{return openBlock(),createElementBlock(`section`,_hoisted_1$2,[_cache[6]||(_cache[6]=createBaseVNode(`div`,{class:`project-settings__section-copy text-body-medium`},[createBaseVNode(`h2`,{id:`connected-projects-title`,class:`text-title-medium font-weight-bold`},`Connected repositories`),createBaseVNode(`p`,null,`Libraries and source projects you contribute to from this project.`),createBaseVNode(`p`,null,[createTextVNode(`Saved in this source checkout’s `),createBaseVNode(`code`,null,`vibe64.connections.json`),createTextVNode(`. Changes follow normal project Save.`)])],-1)),createBaseVNode(`div`,_hoisted_2$1,[!__props.state.available?(openBlock(),createElementBlock(`p`,_hoisted_3$1,toDisplayString(__props.state.unavailableReason||`Select a session to configure connected repositories.`),1)):(openBlock(),createElementBlock(Fragment,{key:1},[!__props.state.exists?(openBlock(),createElementBlock(`p`,_hoisted_4$1,`No connection file yet. Add repositories below, then save the list.`)):createCommentVNode(``,true),stale.value?(openBlock(),createBlock(VAlert,{key:1,type:`warning`,variant:`tonal`},{default:withCtx(()=>[_cache[2]||(_cache[2]=createTextVNode(` The saved list changed while you were editing. Reload the saved list and review your changes before saving. `,-1)),createVNode(VBtn,{variant:`text`,onClick:resetDraft},{default:withCtx(()=>[..._cache[1]||(_cache[1]=[createTextVNode(`Reload saved list`,-1)])]),_:1})]),_:1})):createCommentVNode(``,true),(openBlock(true),createElementBlock(Fragment,null,renderList(draft.value,(entry,index)=>{return openBlock(),createElementBlock(`fieldset`,{key:index,class:`connection-entry`,disabled:!__props.state.canEdit||saving.value},[createBaseVNode(`legend`,_hoisted_6$1,`Connected repository `+toDisplayString(index+1),1),createVNode(VTextField,{disabled:!__props.state.canEdit||saving.value,modelValue:entry.name,"onUpdate:modelValue":$event=>entry.name=$event,label:`Name`,maxlength:`100`,variant:`outlined`,"hide-details":`auto`},null,8,[`disabled`,`modelValue`,`onUpdate:modelValue`]),createVNode(VTextField,{disabled:!__props.state.canEdit||saving.value,modelValue:entry.repository,"onUpdate:modelValue":$event=>entry.repository=$event,label:`GitHub repository URL`,placeholder:`https://github.com/owner/repository`,variant:`outlined`,"hide-details":`auto`},null,8,[`disabled`,`modelValue`,`onUpdate:modelValue`]),createVNode(VSelect,{disabled:!__props.state.canEdit||saving.value,modelValue:entry.relationship,"onUpdate:modelValue":$event=>entry.relationship=$event,label:`Relationship`,items:relationships,"item-title":`label`,"item-value":`value`,variant:`outlined`,"hide-details":`auto`},null,8,[`disabled`,`modelValue`,`onUpdate:modelValue`]),createVNode(VSelect,{disabled:!__props.state.canEdit||saving.value,"model-value":entry.type||``,"onUpdate:modelValue":$event=>setPackageType(entry,$event),label:`Package type`,items:packageTypes,"item-title":`label`,"item-value":`value`,variant:`outlined`,"hide-details":`auto`},null,8,[`disabled`,`model-value`,`onUpdate:modelValue`]),createVNode(VTextField,{disabled:!__props.state.canEdit||saving.value||!scriptAllowed(entry),"model-value":entry.script||``,"onUpdate:modelValue":$event=>setScript(entry,$event),label:`Preparation script (project-relative)`,placeholder:`tooling/prepare-native-worker.mjs`,maxlength:`1024`,hint:`Required for custom. Relative to this project's root; Stack declares the runtime.`,"persistent-hint":``,variant:`outlined`,"hide-details":`auto`},null,8,[`disabled`,`model-value`,`onUpdate:modelValue`]),createVNode(VBtn,{disabled:!__props.state.canEdit||saving.value,variant:`text`,"aria-label":`Remove ${entry.name||`connected repository`}`,onClick:$event=>draft.value.splice(index,1)},{default:withCtx(()=>[..._cache[3]||(_cache[3]=[createTextVNode(`Remove`,-1)])]),_:1},8,[`disabled`,`aria-label`,`onClick`])],8,_hoisted_5$1)}),128)),__props.state.exists&&!draft.value.length?(openBlock(),createElementBlock(`p`,_hoisted_7$1,`No connected repositories.`)):createCommentVNode(``,true),_cache[5]||(_cache[5]=createBaseVNode(`p`,{class:`text-body-small`},`Removing a connection keeps each session's copy of it until that copy's work is saved.`,-1)),createBaseVNode(`div`,_hoisted_8$1,[createVNode(VBtn,{disabled:!__props.state.canEdit||saving.value||draft.value.length>=unref(64),variant:`outlined`,onClick:_cache[0]||(_cache[0]=$event=>draft.value.push({name:``,repository:``,relationship:`dependency`}))},{default:withCtx(()=>[..._cache[4]||(_cache[4]=[createTextVNode(`Add repository`,-1)])]),_:1},8,[`disabled`]),createVNode(VBtn,{disabled:!__props.state.canEdit||saving.value||stale.value||!changed.value&&__props.state.exists,color:`primary`,variant:`flat`,onClick:save},{default:withCtx(()=>[createTextVNode(toDisplayString(saving.value?`Saving…`:`Save connected repositories`),1)]),_:1},8,[`disabled`])])],64))])])}}};var ConnectedProjectsSettings_default=_plugin_vue_export_helper_default(_sfc_main$2,[[`__scopeId`,`data-v-155efa6f`]]);function normalizeCollaborationDraft(value={}){return{tone:String(value.tone||``),responseLength:String(value.responseLength||``),experience:String(value.experience||``),explanationStyle:String(value.explanationStyle||``),requirements:String(value.requirements||``)}}function collaborationChoiceOptions(collaboration={},field=``){const choices=collaboration.choices?.[field];return(Array.isArray(choices)?choices:[]).flatMap(choice=>{const value=String(choice?.id||``).trim();const label=String(choice?.name||``).trim();return value&&label?[{label,value}]:[]})}function useVibe64CollaborationSettings({projectSlug,resource,routeSessionId}){const collaborationDraft=ref(normalizeCollaborationDraft());const savedCollaboration=ref(normalizeCollaborationDraft());const collaborationSaveCommand=useCommand({access:`never`,apiSuffix:VIBE64_COLLABORATION_API_SUFFIX,buildCommandOptions:()=>({method:`PUT`,path:COLLABORATION_ENDPOINT}),buildRawPayload:(_model,{context})=>({...context.collaboration,...context.sessionId?{sessionId:context.sessionId}:{}}),fallbackRunError:`Collaboration guidance could not be saved.`,messages:{error:`Collaboration guidance could not be saved.`,success:`Collaboration guidance saved.`},ownershipFilter:ROUTE_VISIBILITY_PUBLIC,placementSource:`vibe64.collaboration.save`,surfaceId:`app`,writeMethod:`PUT`});const collaboration=computed(()=>resource.data.value?.collaboration||{});const collaborationAvailable=computed(()=>collaboration.value.available===true);const collaborationCanEdit=computed(()=>collaboration.value.canEdit===true);const collaborationSourceLabel=computed(()=>collaboration.value.source?.rootKind===`session-source`?`This session's project source`:`This project source`);const collaborationUnavailableReason=computed(()=>String(collaboration.value.unavailableReason||`Collaboration guidance is not available for this source.`));const toneOptions=computed(()=>collaborationChoiceOptions(collaboration.value,`tone`));const responseLengthOptions=computed(()=>collaborationChoiceOptions(collaboration.value,`responseLength`));const experienceOptions=computed(()=>collaborationChoiceOptions(collaboration.value,`experience`));const explanationStyleOptions=computed(()=>collaborationChoiceOptions(collaboration.value,`explanationStyle`));const collaborationSaving=ref(false);const collaborationChanged=computed(()=>JSON.stringify(collaborationDraft.value)!==JSON.stringify(savedCollaboration.value));let collaborationSource=null;watch([projectSlug,collaboration],([slug,value])=>{if(!value.source)return;const sourceChanged=!collaborationSource||collaborationSource.projectSlug!==slug||collaborationSource.rootKind!==value.source.rootKind||collaborationSource.sessionId!==value.source.sessionId;const next=normalizeCollaborationDraft(value);if(sourceChanged||!collaborationChanged.value)collaborationDraft.value=next;savedCollaboration.value={...next};collaborationSource={projectSlug:slug,...value.source}},{immediate:true});async function saveCollaboration(){if(!collaborationChanged.value||!collaborationAvailable.value||!collaborationCanEdit.value||collaborationSaving.value)return;collaborationSaving.value=true;try{try{await collaborationSaveCommand.run({collaboration:normalizeCollaborationDraft(collaborationDraft.value),sessionId:routeSessionId.value||String(collaboration.value.source?.sessionId||``).trim()})}catch{return}await resource.reload()}finally{collaborationSaving.value=false}}return{collaborationAvailable,collaborationCanEdit,collaborationChanged,collaborationDraft,collaborationSaving,collaborationSourceLabel,collaborationUnavailableReason,experienceOptions,explanationStyleOptions,responseLengthOptions,saveCollaboration,toneOptions}}function useVibe64DevelopmentDatabaseSettings({resource}){const scopeDraft=ref(`session`);const sharedSessionsDraft=ref(false);const databaseSaveCommand=useCommand({access:`never`,apiSuffix:VIBE64_DEVELOPMENT_DATABASE_API_SUFFIX,buildCommandOptions:()=>({method:`PUT`,path:DEVELOPMENT_DATABASE_ENDPOINT}),buildRawPayload:(_model,{context})=>({scope:context.scope,allowSharedDatabaseSessions:context.allowSharedDatabaseSessions}),fallbackRunError:`Development database choice could not be saved.`,messages:{error:`Development database choice could not be saved.`,success:`Development database choice saved.`},ownershipFilter:ROUTE_VISIBILITY_PUBLIC,placementSource:`vibe64.development-database.scope.save`,surfaceId:`app`,writeMethod:`PUT`});const developmentDatabase=computed(()=>resource.data.value?.developmentDatabase||{});const managed=computed(()=>developmentDatabase.value.managed===true);const canChange=computed(()=>developmentDatabase.value.canChange===true);const disabledReason=computed(()=>String(developmentDatabase.value.disabledReason||``));const sessionScopeOption=computed(()=>developmentDatabase.value.options?.session||{});const projectScopeOption=computed(()=>developmentDatabase.value.options?.project||{});const sessionScopeAvailable=computed(()=>sessionScopeOption.value.available===true);const projectScopeAvailable=computed(()=>projectScopeOption.value.available===true);const sessionScopeReason=computed(()=>String(sessionScopeOption.value.disabledReason||``));const projectScopeReason=computed(()=>String(projectScopeOption.value.disabledReason||``));const scopeDraftAvailable=computed(()=>scopeDraft.value===`project`?projectScopeAvailable.value:sessionScopeAvailable.value);const databaseSaving=computed(()=>databaseSaveCommand.isRunning===true);const databaseChanged=computed(()=>managed.value&&(scopeDraft.value!==developmentDatabase.value.scope||sharedSessionsDraft.value!==(developmentDatabase.value.allowSharedDatabaseSessions===true)));const databaseSaveAllowed=computed(()=>scopeDraft.value===developmentDatabase.value.scope||canChange.value&&scopeDraftAvailable.value);watch(()=>developmentDatabase.value.allowSharedDatabaseSessions,value=>{sharedSessionsDraft.value=value===true},{immediate:true});watch(()=>developmentDatabase.value.scope,scope=>{if([`project`,`session`].includes(scope))scopeDraft.value=scope},{immediate:true});async function saveDatabase(){if(!databaseChanged.value||!databaseSaveAllowed.value||databaseSaving.value)return;await databaseSaveCommand.run({scope:scopeDraft.value,allowSharedDatabaseSessions:sharedSessionsDraft.value});await resource.reload()}return{databaseChanged,databaseSaveAllowed,databaseSaving,disabledReason,managed,projectScopeAvailable,projectScopeReason,saveDatabase,scopeDraft,sessionScopeAvailable,sessionScopeReason,sharedSessionsDraft}}function useVibe64EngineeringSettings({projectSlug,route,router,routeSessionId}){const engineeringProfileDraft=ref(``);const savedEngineeringProfile=ref(``);const engineeringResource=useEndpointResource({fallbackLoadError:`Engineering approach could not load.`,path:computed(()=>scopedDevelopmentApiUrl(ENGINEERING_ENDPOINT,projectSlug.value)),queryKey:computed(()=>engineeringSettingsQueryKey(`app`,ROUTE_VISIBILITY_PUBLIC,projectSlug.value,routeSessionId.value)),readQuery:computed(()=>routeSessionId.value?{sessionId:routeSessionId.value}:{}),realtime:{event:VIBE64_PROJECT_CHANGED_EVENT,matches:()=>!engineeringSaveCommand.isRunning},refreshOnPull:true,requestRecoveryLabel:`Engineering approach`});const engineeringSaveCommand=useCommand({access:`never`,apiSuffix:VIBE64_ENGINEERING_API_SUFFIX,buildCommandOptions:()=>({method:`PUT`,path:ENGINEERING_ENDPOINT}),buildRawPayload:(_model,{context})=>({profile:context.profile,...context.sessionId?{sessionId:context.sessionId}:{}}),fallbackRunError:`Engineering approach could not be saved.`,messages:{error:`Engineering approach could not be saved.`,success:`Engineering approach saved.`},ownershipFilter:ROUTE_VISIBILITY_PUBLIC,placementSource:`vibe64.engineering.profile.save`,surfaceId:`app`,writeMethod:`PUT`});const engineering=computed(()=>engineeringResource.data.value?.engineering||{});const engineeringAvailable=computed(()=>engineering.value.available===true);const engineeringProfiles=computed(()=>Array.isArray(engineering.value.profiles)?engineering.value.profiles:[]);const engineeringSourceLabel=computed(()=>engineering.value.source?.rootKind===`session-source`?`This session's project source`:`This project source`);const engineeringUnavailableReason=computed(()=>String(engineering.value.unavailableReason||`An engineering profile is not available for this source.`));const selectedEngineeringDescription=computed(()=>String(engineeringProfiles.value.find(profile=>profile.id===engineeringProfileDraft.value)?.description||``));const engineeringStatusText=computed(()=>engineering.value.status===`defaulted`?`The focused default is active. Saving records the choice in genesis/engineering.md.`:`This choice is stored in genesis/engineering.md and follows the source.`);const engineeringSaving=ref(false);const engineeringChanged=computed(()=>engineeringAvailable.value&&Boolean(engineeringProfileDraft.value)&&engineeringProfileDraft.value!==savedEngineeringProfile.value);let engineeringSource=null;watch([projectSlug,engineering],([slug,value])=>{if(!value.source)return;const sourceChanged=!engineeringSource||engineeringSource.projectSlug!==slug||engineeringSource.rootKind!==value.source.rootKind||engineeringSource.sessionId!==value.source.sessionId;const profile=String(value.profile?.id||``).trim();if(sourceChanged||engineeringProfileDraft.value===savedEngineeringProfile.value)engineeringProfileDraft.value=profile;savedEngineeringProfile.value=profile;engineeringSource={projectSlug:slug,...value.source};const sourceSessionId=String(value.source?.sessionId||``).trim();if(!routeSessionId.value&&sourceSessionId)router.replace({query:{...route.query,sessionId:sourceSessionId}})},{immediate:true});async function saveEngineeringProfile(){if(!engineeringChanged.value||engineeringSaving.value)return;engineeringSaving.value=true;try{await engineeringSaveCommand.run({profile:engineeringProfileDraft.value,sessionId:routeSessionId.value||String(engineering.value.source?.sessionId||``).trim()})}catch{}finally{try{await engineeringResource.reload()}finally{engineeringSaving.value=false}}}return{engineeringAvailable,engineeringChanged,engineeringProfileDraft,engineeringProfiles,engineeringResource,engineeringSaving,engineeringSourceLabel,engineeringStatusText,engineeringUnavailableReason,saveEngineeringProfile,selectedEngineeringDescription}}var _hoisted_1$1={class:`project-settings`};var _hoisted_2={class:`project-settings__header`};var _hoisted_3={class:`project-settings__section`,"aria-labelledby":`engineering-approach-title`};var _hoisted_4={class:`project-settings__section-copy text-body-medium`};var _hoisted_5={key:0,class:`project-settings__scope text-label-medium`};var _hoisted_6={key:0,class:`project-settings__content text-body-medium`};var _hoisted_7={class:`project-settings__engineering-field`};var _hoisted_8={class:`project-settings__action text-body-small`};var _hoisted_9={key:1,class:`project-settings__action text-body-small`};var _hoisted_10={class:`project-settings__section`,"aria-labelledby":`development-database-title`};var _hoisted_11={class:`project-settings__section-copy text-body-medium`};var _hoisted_12={key:0};var _hoisted_13={key:1};var _hoisted_14={key:0,class:`project-settings__content text-body-medium`};var _hoisted_15={class:`project-settings__option`};var _hoisted_16={key:0,id:`development-database-session-reason`,class:`project-settings__option-support text-body-small`};var _hoisted_17={class:`project-settings__option`};var _hoisted_18={key:0,id:`development-database-project-reason`,class:`project-settings__option-support text-body-small`};var _hoisted_19={key:0,class:`project-settings__action text-body-small`};var _hoisted_20={class:`project-settings__action text-body-small`};var _hoisted_21={key:0};var _hoisted_22={key:1};var _hoisted_23={class:`project-settings__section`,"aria-labelledby":`ai-behaviour-title`};var _hoisted_24={class:`project-settings__section-copy text-body-medium`};var _hoisted_25={class:`project-settings__scope text-label-medium`};var _hoisted_26={class:`project-settings__content text-body-medium`};var _hoisted_27={class:`project-settings__ai-fields`};var _hoisted_28={class:`project-settings__action text-body-small`};var _hoisted_29={key:0};var _hoisted_30={key:1};var _hoisted_31={key:2};var _hoisted_32={class:`project-settings__section`,"aria-labelledby":`prompt-suggestions-title`};var _hoisted_33={class:`project-settings__content text-body-medium`};var _hoisted_34={class:`project-settings__action text-body-small`};var _hoisted_35={key:0,class:`project-settings__section`,"aria-labelledby":`repository-workflow-title`};var _hoisted_36={class:`project-settings__content text-body-medium`};var _hoisted_37={class:`project-settings__action text-body-small`};var _sfc_main$1={__name:`ProjectSettingsPanel`,setup(__props){const projectSlug=useVibe64ProjectSlug();const route=useRoute();const router=useRouter();const promptHintsDraft=ref(true);const savedPromptHints=ref(true);const requirePullRequest=ref(false);const routeSessionId=computed(()=>String(route.query.sessionId||``).trim());const resource=useEndpointResource({fallbackLoadError:`Project settings could not load.`,path:computed(()=>scopedDevelopmentApiUrl(PROJECT_SETTINGS_ENDPOINT,projectSlug.value)),queryKey:computed(()=>projectSettingsQueryKey(`app`,ROUTE_VISIBILITY_PUBLIC,projectSlug.value,routeSessionId.value)),readQuery:computed(()=>routeSessionId.value?{sessionId:routeSessionId.value}:{}),refreshOnPull:true,requestRecoveryLabel:`Project settings`});const{databaseChanged,databaseSaveAllowed,databaseSaving,disabledReason,managed,projectScopeAvailable,projectScopeReason,saveDatabase,scopeDraft,sessionScopeAvailable,sessionScopeReason,sharedSessionsDraft}=useVibe64DevelopmentDatabaseSettings({resource});const{collaborationAvailable,collaborationCanEdit,collaborationChanged,collaborationDraft,collaborationSaving,collaborationSourceLabel,collaborationUnavailableReason,experienceOptions,explanationStyleOptions,responseLengthOptions,saveCollaboration,toneOptions}=useVibe64CollaborationSettings({projectSlug,resource,routeSessionId});const promptHintsSaveCommand=useCommand({access:`never`,apiSuffix:VIBE64_PROMPT_HINTS_SETTINGS_API_SUFFIX,buildCommandOptions:()=>({method:`PUT`,path:PROMPT_HINTS_SETTINGS_ENDPOINT}),buildRawPayload:(_model,{context})=>({promptHints:context.promptHints}),fallbackRunError:`Prompt suggestions could not be saved.`,messages:{error:`Prompt suggestions could not be saved.`,success:`Prompt suggestions saved.`},ownershipFilter:ROUTE_VISIBILITY_PUBLIC,placementSource:`vibe64.prompt-hints.save`,surfaceId:`app`,writeMethod:`PUT`});const repositoryWorkflowCommand=useCommand({access:`never`,apiSuffix:`/vibe64/repository/workflow`,buildCommandOptions:()=>({method:`PUT`,path:scopedDevelopmentApiUrl(`/api/vibe64/repository/workflow`,projectSlug.value)}),buildRawPayload:(_model,{context})=>({requirePullRequest:context.requirePullRequest}),fallbackRunError:`Repository workflow could not be saved.`,messages:{error:`Repository workflow could not be saved.`,success:`Repository workflow saved.`},ownershipFilter:ROUTE_VISIBILITY_PUBLIC,placementSource:`vibe64.repository.workflow`,surfaceId:`app`,writeMethod:`PUT`});const repositoryWorkflow=computed(()=>resource.data.value?.repositoryWorkflow||{});watch(()=>repositoryWorkflow.value.requirePullRequest,value=>{requirePullRequest.value=value===true},{immediate:true});async function saveRepositoryWorkflow(){await repositoryWorkflowCommand.run({requirePullRequest:requirePullRequest.value});await resource.reload()}const{engineeringAvailable,engineeringChanged,engineeringProfileDraft,engineeringProfiles,engineeringResource,engineeringSaving,engineeringSourceLabel,engineeringStatusText,engineeringUnavailableReason,saveEngineeringProfile,selectedEngineeringDescription}=useVibe64EngineeringSettings({projectSlug,route,router,routeSessionId});const promptHints=computed(()=>resource.data.value?.promptHints||{});const promptHintsCanEdit=computed(()=>promptHints.value.canEdit===true);const loading=computed(()=>resource.isLoading.value===true||engineeringResource.isLoading.value===true);const initialLoading=computed(()=>loading.value&&(!resource.data.value||!engineeringResource.data.value));const loadError=computed(()=>String(resource.loadError.value||engineeringResource.loadError.value||``));const promptHintsSaving=computed(()=>promptHintsSaveCommand.isRunning===true);const promptHintsChanged=computed(()=>promptHintsDraft.value!==savedPromptHints.value);watch(()=>promptHints.value.enabled,value=>{const enabled=value!==false;if(!promptHintsChanged.value)promptHintsDraft.value=enabled;savedPromptHints.value=enabled},{immediate:true});useRealtimeEvent({event:VIBE64_SESSION_SUMMARY_CHANGED_EVENT,matches:event=>sessionListRealtimeShouldRefresh(event,projectSlug.value),onEvent(){resource.reload();engineeringResource.reload()}});async function refresh(){await Promise.all([resource.reload(),engineeringResource.reload()])}async function savePromptHints(){if(!promptHintsChanged.value||!promptHintsCanEdit.value||promptHintsSaving.value)return;await promptHintsSaveCommand.run({promptHints:promptHintsDraft.value});await resource.reload()}function openPersonalSettings(){requestVibe64AccountConnectionsDialog({refresh:false,section:`profile`})}return(_ctx,_cache)=>{return openBlock(),createElementBlock(`section`,_hoisted_1$1,[createBaseVNode(`header`,_hoisted_2,[_cache[11]||(_cache[11]=createBaseVNode(`div`,null,[createBaseVNode(`h2`,{class:`text-headline-small font-weight-bold ma-0`},`Project settings`),createBaseVNode(`p`,{class:`text-body-medium`},`Choose how you and your AI work on this project.`)],-1)),createVNode(VBtn,{class:`project-settings__refresh`,disabled:loading.value,type:`button`,variant:`text`,onClick:refresh},{default:withCtx(()=>[createTextVNode(toDisplayString(loading.value?`Refreshing…`:`Refresh`),1)]),_:1},8,[`disabled`])]),initialLoading.value||loadError.value?(openBlock(),createBlock(Vibe64AsyncModuleState_default,{key:0,label:`Project settings`,loading:loading.value,message:loadError.value||`Loading project settings.`,"min-height":`12rem`,onReload:unref(reloadPage),onRetry:refresh},null,8,[`loading`,`message`,`onReload`])):(openBlock(),createElementBlock(Fragment,{key:1},[createVNode(ConnectedProjectsSettings_default,{"project-slug":unref(projectSlug),state:unref(resource).data.value?.connectedProjects,onSaved:_cache[0]||(_cache[0]=$event=>unref(resource).reload())},null,8,[`project-slug`,`state`]),createBaseVNode(`section`,_hoisted_3,[createBaseVNode(`div`,_hoisted_4,[unref(engineeringAvailable)?(openBlock(),createElementBlock(`p`,_hoisted_5,toDisplayString(unref(engineeringSourceLabel)),1)):createCommentVNode(``,true),_cache[12]||(_cache[12]=createBaseVNode(`h2`,{id:`engineering-approach-title`,class:`text-title-medium font-weight-bold`},`Engineering approach`,-1)),_cache[13]||(_cache[13]=createBaseVNode(`p`,null,` Choose how cautiously the AI changes your software. Every profile keeps changes simple and asks before adding necessary complexity. `,-1))]),unref(engineeringAvailable)?(openBlock(),createElementBlock(`div`,_hoisted_6,[createBaseVNode(`div`,_hoisted_7,[createVNode(unref(_sfc_main$3),{modelValue:unref(engineeringProfileDraft),"onUpdate:modelValue":_cache[1]||(_cache[1]=$event=>isRef(engineeringProfileDraft)?engineeringProfileDraft.value=$event:null),disabled:unref(engineeringSaving),density:`comfortable`,"hide-details":`auto`,hint:unref(selectedEngineeringDescription),"item-title":`name`,"item-value":`id`,items:unref(engineeringProfiles),loading:unref(engineeringResource).isLoading.value,label:`Engineering profile`,"persistent-hint":``,variant:`outlined`},null,8,[`modelValue`,`disabled`,`hint`,`items`,`loading`])]),createBaseVNode(`div`,_hoisted_8,[createBaseVNode(`p`,null,toDisplayString(unref(engineeringStatusText)),1),createVNode(VBtn,{disabled:!unref(engineeringChanged)||unref(engineeringSaving),color:unref(engineeringChanged)?`primary`:void 0,type:`button`,variant:`flat`,onClick:unref(saveEngineeringProfile)},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(engineeringSaving)?`Saving…`:`Save engineering approach`),1)]),_:1},8,[`disabled`,`color`,`onClick`])])])):(openBlock(),createElementBlock(`div`,_hoisted_9,[createBaseVNode(`p`,null,toDisplayString(unref(engineeringUnavailableReason)),1)]))]),createBaseVNode(`section`,_hoisted_10,[createBaseVNode(`div`,_hoisted_11,[_cache[14]||(_cache[14]=createBaseVNode(`h2`,{id:`development-database-title`,class:`text-title-medium font-weight-bold`},`Development database`,-1)),unref(managed)?(openBlock(),createElementBlock(`p`,_hoisted_12,` Share development data across sessions or keep a separate database for each. `)):(openBlock(),createElementBlock(`p`,_hoisted_13,` This Vibe64 installation does not manage development databases. The application receives its database connection through the project Env configuration. `))]),unref(managed)?(openBlock(),createElementBlock(`div`,_hoisted_14,[createVNode(VRadioGroup,{modelValue:unref(scopeDraft),"onUpdate:modelValue":_cache[2]||(_cache[2]=$event=>isRef(scopeDraft)?scopeDraft.value=$event:null),"aria-labelledby":`development-database-title`,class:`project-settings__options`,disabled:unref(databaseSaving),"hide-details":``},{default:withCtx(()=>[createBaseVNode(`div`,_hoisted_15,[createVNode(VRadio,{class:`py-1`,"aria-describedby":unref(sessionScopeReason)?`development-database-session-reason`:void 0,disabled:!unref(sessionScopeAvailable),label:`A separate database for each session`,value:`session`},null,8,[`aria-describedby`,`disabled`]),unref(sessionScopeReason)?(openBlock(),createElementBlock(`p`,_hoisted_16,toDisplayString(unref(sessionScopeReason)),1)):createCommentVNode(``,true)]),createBaseVNode(`div`,_hoisted_17,[createVNode(VRadio,{class:`py-1`,"aria-describedby":unref(projectScopeReason)?`development-database-project-reason`:void 0,disabled:!unref(projectScopeAvailable),label:`One database shared by this project`,value:`project`},null,8,[`aria-describedby`,`disabled`]),unref(projectScopeReason)?(openBlock(),createElementBlock(`p`,_hoisted_18,toDisplayString(unref(projectScopeReason)),1)):createCommentVNode(``,true)])]),_:1},8,[`modelValue`,`disabled`]),unref(scopeDraft)===`project`?(openBlock(),createElementBlock(`div`,_hoisted_19,[createVNode(VCheckbox,{modelValue:unref(sharedSessionsDraft),"onUpdate:modelValue":_cache[3]||(_cache[3]=$event=>isRef(sharedSessionsDraft)?sharedSessionsDraft.value=$event:null),label:`Allow multiple sessions with this shared database`,disabled:unref(databaseSaving),"hide-details":``},null,8,[`modelValue`,`disabled`]),_cache[15]||(_cache[15]=createBaseVNode(`p`,null,`All sessions will share the same database.`,-1))])):createCommentVNode(``,true),createBaseVNode(`div`,_hoisted_20,[unref(disabledReason)?(openBlock(),createElementBlock(`p`,_hoisted_21,toDisplayString(unref(disabledReason)),1)):unref(scopeDraft)===`project`?(openBlock(),createElementBlock(`p`,_hoisted_22,` Data and schema changes will be visible to every project session and remain after a session is archived. `)):createCommentVNode(``,true),createVNode(VBtn,{disabled:!unref(databaseChanged)||!unref(databaseSaveAllowed)||unref(databaseSaving),color:unref(databaseChanged)?`primary`:void 0,type:`button`,variant:`flat`,onClick:unref(saveDatabase)},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(databaseSaving)?`Saving…`:`Save database choice`),1)]),_:1},8,[`disabled`,`color`,`onClick`])])])):createCommentVNode(``,true)]),createBaseVNode(`section`,_hoisted_23,[createBaseVNode(`div`,_hoisted_24,[createBaseVNode(`p`,_hoisted_25,toDisplayString(unref(collaborationSourceLabel)),1),_cache[17]||(_cache[17]=createBaseVNode(`h2`,{id:`ai-behaviour-title`,class:`text-title-medium font-weight-bold`},`AI behaviour`,-1)),_cache[18]||(_cache[18]=createBaseVNode(`p`,null,` Set the tone, level of detail and project requirements for your conversations. These choices follow your project source. `,-1)),createVNode(VBtn,{class:`project-settings__account-link`,type:`button`,variant:`text`,onClick:openPersonalSettings},{default:withCtx(()=>[..._cache[16]||(_cache[16]=[createTextVNode(` Set your Vibe64 name `,-1)])]),_:1})]),createBaseVNode(`div`,_hoisted_26,[createBaseVNode(`div`,_hoisted_27,[createVNode(unref(_sfc_main$3),{modelValue:unref(collaborationDraft).tone,"onUpdate:modelValue":_cache[4]||(_cache[4]=$event=>unref(collaborationDraft).tone=$event),disabled:!unref(collaborationAvailable)||!unref(collaborationCanEdit)||unref(collaborationSaving),density:`comfortable`,"hide-details":``,"item-title":`label`,"item-value":`value`,items:unref(toneOptions),loading:unref(resource).isLoading.value,label:`Tone`,variant:`outlined`},null,8,[`modelValue`,`disabled`,`items`,`loading`]),createVNode(unref(_sfc_main$3),{modelValue:unref(collaborationDraft).responseLength,"onUpdate:modelValue":_cache[5]||(_cache[5]=$event=>unref(collaborationDraft).responseLength=$event),disabled:!unref(collaborationAvailable)||!unref(collaborationCanEdit)||unref(collaborationSaving),density:`comfortable`,"hide-details":``,"item-title":`label`,"item-value":`value`,items:unref(responseLengthOptions),loading:unref(resource).isLoading.value,label:`Response length`,variant:`outlined`},null,8,[`modelValue`,`disabled`,`items`,`loading`]),createVNode(unref(_sfc_main$3),{modelValue:unref(collaborationDraft).experience,"onUpdate:modelValue":_cache[6]||(_cache[6]=$event=>unref(collaborationDraft).experience=$event),disabled:!unref(collaborationAvailable)||!unref(collaborationCanEdit)||unref(collaborationSaving),density:`comfortable`,"hide-details":``,"item-title":`label`,"item-value":`value`,items:unref(experienceOptions),loading:unref(resource).isLoading.value,label:`Experience level`,variant:`outlined`},null,8,[`modelValue`,`disabled`,`items`,`loading`]),createVNode(unref(_sfc_main$3),{modelValue:unref(collaborationDraft).explanationStyle,"onUpdate:modelValue":_cache[7]||(_cache[7]=$event=>unref(collaborationDraft).explanationStyle=$event),disabled:!unref(collaborationAvailable)||!unref(collaborationCanEdit)||unref(collaborationSaving),density:`comfortable`,"hide-details":``,"item-title":`label`,"item-value":`value`,items:unref(explanationStyleOptions),loading:unref(resource).isLoading.value,label:`Explanation style`,variant:`outlined`},null,8,[`modelValue`,`disabled`,`items`,`loading`]),createVNode(VTextarea,{modelValue:unref(collaborationDraft).requirements,"onUpdate:modelValue":_cache[8]||(_cache[8]=$event=>unref(collaborationDraft).requirements=$event),class:`project-settings__ai-note`,disabled:!unref(collaborationAvailable)||!unref(collaborationCanEdit)||unref(collaborationSaving),"auto-grow":``,density:`comfortable`,"hide-details":``,label:`Project requirements (optional)`,placeholder:`For example: use Australian English.`,rows:`6`,"max-rows":`18`,variant:`outlined`},null,8,[`modelValue`,`disabled`])]),createBaseVNode(`div`,_hoisted_28,[!unref(collaborationAvailable)?(openBlock(),createElementBlock(`p`,_hoisted_29,toDisplayString(unref(collaborationUnavailableReason)),1)):!unref(collaborationCanEdit)?(openBlock(),createElementBlock(`p`,_hoisted_30,` Only the project owner can change these controls in Settings. Anyone who can edit this source can change genesis/collaboration.md directly. `)):(openBlock(),createElementBlock(`p`,_hoisted_31,` Applies when a conversation next starts or refreshes its context. Existing history and instructions in an active Codex conversation stay as they are. `)),createVNode(VBtn,{disabled:!unref(collaborationChanged)||!unref(collaborationAvailable)||!unref(collaborationCanEdit)||unref(collaborationSaving),color:unref(collaborationChanged)?`primary`:void 0,type:`button`,variant:`flat`,onClick:unref(saveCollaboration)},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(collaborationSaving)?`Saving…`:`Save collaboration`),1)]),_:1},8,[`disabled`,`color`,`onClick`])])])]),createBaseVNode(`section`,_hoisted_32,[_cache[19]||(_cache[19]=createBaseVNode(`div`,{class:`project-settings__section-copy text-body-medium`},[createBaseVNode(`h2`,{id:`prompt-suggestions-title`,class:`text-title-medium font-weight-bold`},`Prompt suggestions`),createBaseVNode(`p`,null,`Get ideas for what to ask next. This Vibe64 setting does not change your AI's instructions.`)],-1)),createBaseVNode(`div`,_hoisted_33,[createVNode(VSwitch,{modelValue:promptHintsDraft.value,"onUpdate:modelValue":_cache[9]||(_cache[9]=$event=>promptHintsDraft.value=$event),class:`project-settings__ai-hints`,color:`primary`,disabled:!promptHintsCanEdit.value||promptHintsSaving.value,"hide-details":``,label:`Suggest useful next prompts`},null,8,[`modelValue`,`disabled`]),createBaseVNode(`div`,_hoisted_34,[createVNode(VBtn,{disabled:!promptHintsChanged.value||!promptHintsCanEdit.value||promptHintsSaving.value,color:promptHintsChanged.value?`primary`:void 0,type:`button`,variant:`flat`,onClick:savePromptHints},{default:withCtx(()=>[createTextVNode(toDisplayString(promptHintsSaving.value?`Saving…`:`Save prompt suggestions`),1)]),_:1},8,[`disabled`,`color`])])])]),repositoryWorkflow.value.available?(openBlock(),createElementBlock(`section`,_hoisted_35,[_cache[22]||(_cache[22]=createBaseVNode(`div`,{class:`project-settings__section-copy text-body-medium`},[createBaseVNode(`h2`,{id:`repository-workflow-title`,class:`text-title-medium font-weight-bold`},`Git workflow`),createBaseVNode(`p`,null,`Choose how Vibe64 saves changes to this repository.`)],-1)),createBaseVNode(`div`,_hoisted_36,[createVNode(VRadioGroup,{modelValue:requirePullRequest.value,"onUpdate:modelValue":_cache[10]||(_cache[10]=$event=>requirePullRequest.value=$event),label:`GitHub save workflow`,color:`primary`,"hide-details":``,disabled:!repositoryWorkflow.value.canEdit||unref(repositoryWorkflowCommand).isRunning},{default:withCtx(()=>[createVNode(VRadio,{label:`Allow direct commits and pushes`,value:false,class:`py-1`}),createVNode(VRadio,{label:`Require pull requests`,value:true,class:`py-1`})]),_:1},8,[`modelValue`,`disabled`]),_cache[20]||(_cache[20]=createBaseVNode(`p`,null,`GitHub branch rules still apply. Requiring pull requests makes Create draft PR the main Save action until a session is attached to a PR.`,-1)),_cache[21]||(_cache[21]=createBaseVNode(`p`,null,`This setting controls Vibe64's Save actions. GitHub rules control pushes from terminals and other tools.`,-1)),createBaseVNode(`div`,_hoisted_37,[createVNode(VBtn,{color:requirePullRequest.value!==repositoryWorkflow.value.requirePullRequest?`primary`:void 0,variant:`flat`,disabled:!repositoryWorkflow.value.canEdit||unref(repositoryWorkflowCommand).isRunning||requirePullRequest.value===repositoryWorkflow.value.requirePullRequest,onClick:saveRepositoryWorkflow},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(repositoryWorkflowCommand).isRunning?`Saving…`:`Save repository workflow`),1)]),_:1},8,[`color`,`disabled`])])])])):createCommentVNode(``,true)],64))])}}};var ProjectSettingsPanel_default=_plugin_vue_export_helper_default(_sfc_main$1,[[`__scopeId`,`data-v-aebab399`]]);var _hoisted_1={class:`vibe64-dashboard-page`};var _sfc_main={__name:`index`,setup(__props){return(_ctx,_cache)=>{return openBlock(),createElementBlock(`section`,_hoisted_1,[createVNode(ProjectSettingsPanel_default)])}}};var settings_default=_plugin_vue_export_helper_default(_sfc_main,[[`__scopeId`,`data-v-d998a641`]]);export{settings_default as default};
@@ -1,2 +0,0 @@
1
- import{p as toText,s as normalizeObject}from"./normalize-BD25VwNK.js";import{t as AppError}from"./errors-D17nJYne.js";var VIBE64_ASSISTANT_ENGINE_IDS=Object.freeze({CLAUDE:`claude`,CODEX:`codex`,OPENCODE:`opencode`});var VIBE64_ASSISTANT_TRANSPORT_IDS=Object.freeze({CLAUDE_STREAM_JSON:`claude_stream_json`,CODEX_APP_SERVER:`codex_app_server`,OPENCODE_SERVER:`opencode_server`});var VIBE64_ASSISTANT_SELECTION_SCHEMA=`vibe64.assistant-selection.v1`;var VIBE64_ASSISTANT_CATALOG_REVISION_PATTERN=/^sha256:[a-f0-9]{64}$/u;var VIBE64_ASSISTANT_ENGINE_ID_SET=new Set(Object.values(VIBE64_ASSISTANT_ENGINE_IDS));var VIBE64_ASSISTANT_SELECTION_ERROR_CODES=Object.freeze({CATALOG_STALE:`vibe64_assistant_catalog_stale`,CONNECTION_REQUIRED:`vibe64_assistant_connection_required`,ENGINE_IMMUTABLE:`vibe64_assistant_engine_immutable`,INVALID:`vibe64_assistant_selection_invalid`,TURN_ACTIVE:`vibe64_assistant_selection_turn_active`,UNAVAILABLE:`vibe64_assistant_selection_unavailable`});function selectionError(code,message,details={}){return new AppError(409,message,{code,details:Object.freeze({...details})})}function containsControlCharacter(value=``){return Array.from(value).some(character=>{const codePoint=character.codePointAt(0);return codePoint<=31||codePoint===127})}function boundedIdentifier(value,field,options={}){const{allowEmpty=false,maxLength=512}=options;const normalized=toText(value);if(!normalized&&!allowEmpty||normalized.length>maxLength||containsControlCharacter(normalized))throw selectionError(VIBE64_ASSISTANT_SELECTION_ERROR_CODES.INVALID,`Assistant ${field} is invalid.`,{field});return normalized}function catalogRevision(value,field=`catalogRevision`){const revision=toText(value);if(!VIBE64_ASSISTANT_CATALOG_REVISION_PATTERN.test(revision))throw selectionError(VIBE64_ASSISTANT_SELECTION_ERROR_CODES.INVALID,`Assistant catalog revision is invalid.`,{field});return revision}function defineVibe64AssistantSelection(value={}){const input=normalizeObject(value);const engineId=boundedIdentifier(input.engineId,`engineId`,{maxLength:64});if(!VIBE64_ASSISTANT_ENGINE_ID_SET.has(engineId))throw selectionError(VIBE64_ASSISTANT_SELECTION_ERROR_CODES.INVALID,`Unknown assistant engine: ${engineId}.`,{engineId,field:`engineId`});const schema=toText(input.schema)||VIBE64_ASSISTANT_SELECTION_SCHEMA;if(schema!==VIBE64_ASSISTANT_SELECTION_SCHEMA)throw selectionError(VIBE64_ASSISTANT_SELECTION_ERROR_CODES.INVALID,`Assistant selection schema is unsupported.`,{field:`schema`,schema});return Object.freeze({agentId:boundedIdentifier(input.agentId,`agentId`,{maxLength:256}),catalogRevision:catalogRevision(input.catalogRevision),engineId,modelId:boundedIdentifier(input.modelId,`modelId`),modelProviderId:boundedIdentifier(input.modelProviderId,`modelProviderId`,{maxLength:256}),schema,variantId:boundedIdentifier(input.variantId,`variantId`,{allowEmpty:true,maxLength:256})})}function assertVibe64AssistantSelectionUpdate(currentValue={},nextValue={},options={}){const{turnActive=false}=options;defineVibe64AssistantSelection(currentValue);const next=defineVibe64AssistantSelection(nextValue);if(turnActive===true)throw selectionError(VIBE64_ASSISTANT_SELECTION_ERROR_CODES.TURN_ACTIVE,`Wait for the active assistant turn to finish before changing its selection.`);return next}var VIBE64_ASSISTANT_SELECTION_IDENTITY_FIELDS=Object.freeze([`engineId`,`modelProviderId`,`modelId`,`agentId`,`variantId`]);function sameVibe64AssistantSelection(left,right){return VIBE64_ASSISTANT_SELECTION_IDENTITY_FIELDS.every(key=>String(left?.[key]??``).trim()===String(right?.[key]??``).trim())}var __testables$2=Object.freeze({assertVibe64AssistantSelectionUpdate,VIBE64_ASSISTANT_SELECTION_ERROR_CODES});var model=(id,contextWindow,variants,options={})=>Object.freeze({id,contextWindow,variants:Object.freeze(variants),...options});var NATIVE_AI_PROVIDERS=Object.freeze([Object.freeze({id:`deepseek`,baseUrl:`https://api.deepseek.com/`,claudeBaseUrl:`https://api.deepseek.com/anthropic`,claudeAutoCompactWindow:786432,webSearch:false,models:Object.freeze([model(`deepseek-flash`,1048576,[`low`,`high`,`max`],{images:true,freeformPatch:true,codexHistoryRouting:true}),model(`deepseek-v4-pro`,1048576,[`low`,`high`,`max`],{freeformPatch:true,codexHistoryRouting:true})])}),Object.freeze({id:`zai-coding-plan`,baseUrl:`https://api.z.ai/api/v1`,claudeBaseUrl:`https://api.z.ai/api/anthropic`,claudeAutoCompactWindow:1e6,webSearch:false,models:Object.freeze([model(`glm-5.3`,1048576,[`low`,`high`,`max`],{freeformPatch:true,codexHistoryRouting:true})])}),Object.freeze({id:`zai`,baseUrl:`https://api.z.ai/api/v1`,claudeBaseUrl:`https://api.z.ai/api/anthropic`,claudeAutoCompactWindow:1e6,webSearch:false,models:Object.freeze([model(`glm-5.3`,1048576,[`low`,`high`,`max`],{freeformPatch:true,codexHistoryRouting:true})])})]);var CUSTOM_AI_PROVIDER_ID=`custom`;function nativeAiProvider(id){return NATIVE_AI_PROVIDERS.find(provider=>provider.id===id)||null}function nativeAiModel(id,providerId=``){for(const provider of NATIVE_AI_PROVIDERS){if(providerId&&provider.id!==providerId)continue;const model=provider.models.find(candidate=>candidate.id===id);if(model)return{...model,modelProviderId:provider.id}}return null}var curatedModel=(providerId,id,label,defaultThinking)=>{const{modelProviderId:_provider,...definition}=nativeAiModel(id,providerId);return Object.freeze({...definition,label,defaultThinking})};var CURATED_CODEX_PROVIDERS=Object.freeze([Object.freeze({...nativeAiProvider(`deepseek`),label:`DeepSeek`,shortLabel:`DeepSeek`,description:`DeepSeek API key · usage-based billing`,keyUrl:`https://platform.deepseek.com/api_keys`,guideUrl:`https://api-docs.deepseek.com/quick_start/agent_integrations/codex/`,ownerOnly:false,models:Object.freeze([curatedModel(`deepseek`,`deepseek-flash`,`DeepSeek V4.1 Flash`,`high`),curatedModel(`deepseek`,`deepseek-v4-pro`,`DeepSeek V4 Pro`,`high`)])}),Object.freeze({...nativeAiProvider(`zai-coding-plan`),label:`GLM · Coding Plan`,shortLabel:`GLM`,description:`Z.AI Coding Plan key · uses your subscription quota`,keyUrl:`https://z.ai/manage-apikey/apikey-list`,guideUrl:`https://docs.z.ai/devpack/tool/codex`,ownerOnly:true,models:Object.freeze([curatedModel(`zai-coding-plan`,`glm-5.3`,`GLM 5.3`,`max`)])}),Object.freeze({...nativeAiProvider(`zai`),label:`GLM · Pay-as-you-go API`,shortLabel:`GLM`,description:`Z.AI API key · pay-as-you-go account`,keyUrl:`https://z.ai/manage-apikey/apikey-list`,guideUrl:`https://docs.z.ai/guides/overview/quick-start`,setupNote:`Use a key from a Z.AI account without a Coding Plan. Pay-as-you-go access through Codex and Claude Code still needs live verification; a successful check confirms model access, not billing.`,ownerOnly:false,models:Object.freeze([curatedModel(`zai`,`glm-5.3`,`GLM 5.3`,`max`)])}),Object.freeze({id:CUSTOM_AI_PROVIDER_ID,custom:true,label:`Custom endpoint`,shortLabel:`Custom`,description:`Your own model server · no Vibe64 billing`,ownerOnly:true,models:Object.freeze([])})]);function curatedCodexProvider(id){return CURATED_CODEX_PROVIDERS.find(provider=>provider.id===id)||null}function isPlainRecord(value){if(!value||typeof value!==`object`||Array.isArray(value))return false;const prototype=Object.getPrototypeOf(value);return prototype===Object.prototype||prototype===null}var VIBE64_AGENT_EXECUTION_PROFILE_IDS=Object.freeze({HELPER:`helper`});var VIBE64_AGENT_EXECUTION_WORKLOAD_IDS=Object.freeze({COMMIT_TITLE:`commit_title`,CONVERSATION_SUMMARY:`conversation_summary`,VOICE_TURN:`voice_turn`,DATABASE_ASSISTANT:`database_assistant`,LESSON_REVIEW:`lesson_review`,PROMPT_HINT:`prompt_hint`,REQUEST_ROUTING:`request_routing`,SESSION_TITLE:`session_title`,SOURCE_EXPLANATION:`source_explanation`});var VIBE64_AGENT_HELPER_WORKLOAD_LIMITS=Object.freeze({[VIBE64_AGENT_EXECUTION_WORKLOAD_IDS.COMMIT_TITLE]:Object.freeze({maxInputCharacters:24e3,maxOutputCharacters:512,timeoutMs:12e4}),[VIBE64_AGENT_EXECUTION_WORKLOAD_IDS.VOICE_TURN]:Object.freeze({maxInputCharacters:12e3,maxOutputCharacters:512,timeoutMs:1e4}),[VIBE64_AGENT_EXECUTION_WORKLOAD_IDS.CONVERSATION_SUMMARY]:Object.freeze({maxInputCharacters:2e5,maxOutputCharacters:16e3,timeoutMs:12e4}),[VIBE64_AGENT_EXECUTION_WORKLOAD_IDS.DATABASE_ASSISTANT]:Object.freeze({maxInputCharacters:5e5,maxOutputCharacters:16e3,timeoutMs:18e4}),[VIBE64_AGENT_EXECUTION_WORKLOAD_IDS.LESSON_REVIEW]:Object.freeze({maxInputCharacters:16e4,maxOutputCharacters:12e3,timeoutMs:18e4}),[VIBE64_AGENT_EXECUTION_WORKLOAD_IDS.PROMPT_HINT]:Object.freeze({maxInputCharacters:24e3,maxOutputCharacters:2500,timeoutMs:12e4}),[VIBE64_AGENT_EXECUTION_WORKLOAD_IDS.REQUEST_ROUTING]:Object.freeze({maxInputCharacters:128e3,maxOutputCharacters:8192,timeoutMs:6e4}),[VIBE64_AGENT_EXECUTION_WORKLOAD_IDS.SESSION_TITLE]:Object.freeze({maxInputCharacters:24e3,maxOutputCharacters:512,timeoutMs:3e4}),[VIBE64_AGENT_EXECUTION_WORKLOAD_IDS.SOURCE_EXPLANATION]:Object.freeze({maxInputCharacters:1e5,maxOutputCharacters:32e3,timeoutMs:18e4})});var VIBE64_AGENT_EXECUTION_TOOL_POLICIES=Object.freeze({NONE:`none`});var VIBE64_AGENT_EXECUTION_PROFILE_LIMIT_CEILINGS=Object.freeze({MAX_INPUT_CHARACTERS:5e5,MAX_OUTPUT_CHARACTERS:32e3,MAX_TIMEOUT_MS:3e5});var VIBE64_AGENT_EXECUTION_PROFILE_ERROR_CODES=Object.freeze({INVALID:`vibe64_agent_execution_profile_invalid`,MODEL_UNAVAILABLE:`vibe64_agent_execution_profile_model_unavailable`,POLICY_UNENFORCEABLE:`vibe64_agent_execution_profile_policy_unenforceable`,PROFILE_UNKNOWN:`vibe64_agent_execution_profile_unknown`,REASONING_UNSUPPORTED:`vibe64_agent_execution_profile_reasoning_unsupported`,UNBOUNDED:`vibe64_agent_execution_profile_unbounded`,UNSAFE:`vibe64_agent_execution_profile_unsafe`,WORKLOAD_UNSUPPORTED:`vibe64_agent_execution_profile_workload_unsupported`});var VIBE64_AGENT_EXECUTION_PROFILE_VALUES=new Set(Object.values(VIBE64_AGENT_EXECUTION_PROFILE_IDS));var VIBE64_AGENT_EXECUTION_WORKLOAD_VALUES=new Set(Object.values(VIBE64_AGENT_EXECUTION_WORKLOAD_IDS));var Vibe64AgentExecutionProfileError=class extends Error{constructor(code,message,details={}){super(message);this.name=`Vibe64AgentExecutionProfileError`;this.code=code;this.details=Object.freeze({...details});for(const[name,value]of Object.entries(this.details))if(![`code`,`details`,`message`,`name`].includes(name))this[name]=value}};function executionProfileError(code,message,details={}){return new Vibe64AgentExecutionProfileError(code,message,details)}function requiredRecord(value,fieldName){if(!isPlainRecord(value))throw executionProfileError(VIBE64_AGENT_EXECUTION_PROFILE_ERROR_CODES.INVALID,`Execution profile ${fieldName} must be an object.`,{field:fieldName});return value}function requireOnlyFields(value,allowedFields,fieldName){const allowed=new Set(allowedFields);const unexpected=Object.keys(value).find(name=>!allowed.has(name));if(unexpected)throw executionProfileError(VIBE64_AGENT_EXECUTION_PROFILE_ERROR_CODES.INVALID,`Execution profile ${fieldName} contains an unsupported field: ${unexpected}.`,{field:`${fieldName}.${unexpected}`})}function requiredText(value,fieldName,maximumLength=256){if(typeof value!==`string`)throw executionProfileError(VIBE64_AGENT_EXECUTION_PROFILE_ERROR_CODES.INVALID,`Execution profile ${fieldName} must be text.`,{field:fieldName});const normalized=value.trim();if(!normalized||normalized.length>maximumLength)throw executionProfileError(VIBE64_AGENT_EXECUTION_PROFILE_ERROR_CODES.INVALID,`Execution profile ${fieldName} is invalid.`,{field:fieldName});return normalized}function requiredBoolean(value,fieldName){if(typeof value!==`boolean`)throw executionProfileError(VIBE64_AGENT_EXECUTION_PROFILE_ERROR_CODES.INVALID,`Execution profile ${fieldName} must be a boolean.`,{field:fieldName});return value}function requireSafeFalse(value,fieldName){if(requiredBoolean(value,fieldName)!==false)throw executionProfileError(VIBE64_AGENT_EXECUTION_PROFILE_ERROR_CODES.UNSAFE,`Execution profile ${fieldName} must be disabled.`,{field:fieldName});return false}function boundedPositiveInteger(value,fieldName,maximum){if(!Number.isSafeInteger(value)||value<=0||value>maximum)throw executionProfileError(VIBE64_AGENT_EXECUTION_PROFILE_ERROR_CODES.UNBOUNDED,`Execution profile ${fieldName} must be a positive integer no greater than ${maximum}.`,{field:fieldName,maximum});return value}function requiredLimits(value){if(!isPlainRecord(value))throw executionProfileError(VIBE64_AGENT_EXECUTION_PROFILE_ERROR_CODES.UNBOUNDED,`Execution profile limits are required.`,{field:`limits`});return value}function normalizeProfileId(value){const profileId=requiredText(value,`profileId`,64);if(!VIBE64_AGENT_EXECUTION_PROFILE_VALUES.has(profileId))throw executionProfileError(VIBE64_AGENT_EXECUTION_PROFILE_ERROR_CODES.PROFILE_UNKNOWN,`Unknown execution profile: ${profileId}.`,{profileId});return profileId}function normalizeWorkloadId(value){const workloadId=requiredText(value,`workloadId`,64);if(!VIBE64_AGENT_EXECUTION_WORKLOAD_VALUES.has(workloadId))throw executionProfileError(VIBE64_AGENT_EXECUTION_PROFILE_ERROR_CODES.WORKLOAD_UNSUPPORTED,`Unsupported execution profile workload: ${workloadId}.`,{workloadId});return workloadId}function normalizedExecutionProfileRequest(input){return Object.freeze({profileId:normalizeProfileId(input.profileId),workloadId:normalizeWorkloadId(input.workloadId)})}function defineVibe64AgentExecutionProfileResolution(value){const input=requiredRecord(value,`resolution`);const executionProfile=normalizedExecutionProfileRequest(input);const request=requiredRecord(input.request,`request policy`);const policy=requiredRecord(input.policy,`tool policy`);const limits=requiredLimits(input.limits);requireOnlyFields(request,[`allowProviderModelFallback`,`reasoning`,`summary`],`request`);requireOnlyFields(policy,[`environmentAccess`,`networkAccess`,`repositoryWrite`,`tools`],`policy`);requireOnlyFields(limits,[`maxInputCharacters`,`maxOutputCharacters`,`timeoutMs`],`limits`);const reasoning=requiredBoolean(request.reasoning,`request.reasoning`);if(typeof input.thinking!==`string`)throw executionProfileError(VIBE64_AGENT_EXECUTION_PROFILE_ERROR_CODES.INVALID,`Execution profile thinking must be text.`,{field:`thinking`});const thinking=input.thinking.trim();if(reasoning&&!thinking||!reasoning&&thinking)throw executionProfileError(VIBE64_AGENT_EXECUTION_PROFILE_ERROR_CODES.UNSAFE,`Execution profile thinking must agree with its reasoning request.`,{field:`thinking`});if(thinking.length>64)throw executionProfileError(VIBE64_AGENT_EXECUTION_PROFILE_ERROR_CODES.INVALID,`Execution profile thinking is invalid.`,{field:`thinking`});if(policy.tools!==VIBE64_AGENT_EXECUTION_TOOL_POLICIES.NONE)throw executionProfileError(VIBE64_AGENT_EXECUTION_PROFILE_ERROR_CODES.UNSAFE,`Execution profile tools must be disabled.`,{field:`policy.tools`});return Object.freeze({limits:Object.freeze({maxInputCharacters:boundedPositiveInteger(limits.maxInputCharacters,`limits.maxInputCharacters`,VIBE64_AGENT_EXECUTION_PROFILE_LIMIT_CEILINGS.MAX_INPUT_CHARACTERS),maxOutputCharacters:boundedPositiveInteger(limits.maxOutputCharacters,`limits.maxOutputCharacters`,VIBE64_AGENT_EXECUTION_PROFILE_LIMIT_CEILINGS.MAX_OUTPUT_CHARACTERS),timeoutMs:boundedPositiveInteger(limits.timeoutMs,`limits.timeoutMs`,VIBE64_AGENT_EXECUTION_PROFILE_LIMIT_CEILINGS.MAX_TIMEOUT_MS)}),model:requiredText(input.model,`model`),policy:Object.freeze({environmentAccess:requireSafeFalse(policy.environmentAccess,`policy.environmentAccess`),networkAccess:requireSafeFalse(policy.networkAccess,`policy.networkAccess`),repositoryWrite:requireSafeFalse(policy.repositoryWrite,`policy.repositoryWrite`),tools:VIBE64_AGENT_EXECUTION_TOOL_POLICIES.NONE}),profileId:executionProfile.profileId,providerId:requiredText(input.providerId,`providerId`,64),request:Object.freeze({allowProviderModelFallback:requireSafeFalse(request.allowProviderModelFallback,`request.allowProviderModelFallback`),reasoning,summary:requireSafeFalse(request.summary,`request.summary`)}),revision:requiredText(input.revision,`revision`,128),thinking,workloadId:executionProfile.workloadId})}function vibe64AgentExecutionProfileAuditSnapshot(value){return defineVibe64AgentExecutionProfileResolution(value)}function vibe64AgentProviderSupportsExecutionProfile(provider,profileId){if(!isPlainRecord(provider)||typeof profileId!==`string`)return false;const normalizedProfileId=profileId.trim();return provider.implemented===true&&VIBE64_AGENT_EXECUTION_PROFILE_VALUES.has(normalizedProfileId)&&Array.isArray(provider.executionProfiles)&&provider.executionProfiles.includes(normalizedProfileId)}var __testables$1=Object.freeze({VIBE64_AGENT_EXECUTION_PROFILE_LIMIT_CEILINGS,VIBE64_AGENT_EXECUTION_TOOL_POLICIES,vibe64AgentProviderSupportsExecutionProfile});var VIBE64_AGENT_PROVIDER_UNKNOWN_CODE=`vibe64_agent_provider_unknown`;var VIBE64_AGENT_PARAMETER_IDS=Object.freeze({MODEL:`model`,THINKING:`thinking`});var VIBE64_DEFAULT_AGENT_PROVIDER_ID=VIBE64_ASSISTANT_ENGINE_IDS.CODEX;var VIBE64_CODEX_SOL_MODEL=`gpt-5.6-sol`;var VIBE64_CODEX_GPT_5_5_MODEL=`gpt-5.5`;var VIBE64_CODEX_DEFAULT_MODEL=VIBE64_CODEX_SOL_MODEL;var VIBE64_CODEX_DEFAULT_THINKING=`xhigh`;var VIBE64_CODEX_SPARK_MODEL=`gpt-5.3-codex-spark`;var VIBE64_CODEX_STANDARD_THINKING_VALUES=Object.freeze([`low`,`medium`,`high`,`xhigh`]);var VIBE64_CODEX_SOL_THINKING_VALUES=Object.freeze([...VIBE64_CODEX_STANDARD_THINKING_VALUES,`max`]);var VIBE64_AGENT_PROVIDERS=Object.freeze([Object.freeze({executionProfiles:Object.freeze([VIBE64_AGENT_EXECUTION_PROFILE_IDS.HELPER]),id:VIBE64_ASSISTANT_ENGINE_IDS.CODEX,implemented:true,label:`Codex`,accountLabel:`Codex (OpenAI)`,planUsage:Object.freeze({label:`Codex`,managementUrl:`https://chatgpt.com/codex/settings/usage`}),terminal:`codex`,terminalAttachments:false,parameters:Object.freeze([Object.freeze({id:VIBE64_AGENT_PARAMETER_IDS.MODEL,defaultValue:VIBE64_CODEX_DEFAULT_MODEL,label:`Model`,options:Object.freeze([Object.freeze({label:`Automatic (GPT-5.6 Sol)`,value:``}),Object.freeze({label:`GPT-5.6 Sol`,supportedThinking:VIBE64_CODEX_SOL_THINKING_VALUES,value:VIBE64_CODEX_DEFAULT_MODEL}),Object.freeze({label:`GPT-5.5`,supportedThinking:VIBE64_CODEX_STANDARD_THINKING_VALUES,value:VIBE64_CODEX_GPT_5_5_MODEL}),Object.freeze({label:`Codex Spark`,request:Object.freeze({summary:false}),supportedThinking:VIBE64_CODEX_STANDARD_THINKING_VALUES,value:VIBE64_CODEX_SPARK_MODEL})])}),Object.freeze({id:VIBE64_AGENT_PARAMETER_IDS.THINKING,defaultValue:VIBE64_CODEX_DEFAULT_THINKING,label:`Thinking`,options:Object.freeze([Object.freeze({label:`Automatic`,value:``}),Object.freeze({label:`Low`,value:`low`}),Object.freeze({label:`Medium`,value:`medium`}),Object.freeze({label:`High`,value:`high`}),Object.freeze({label:`X High`,value:`xhigh`}),Object.freeze({label:`Max`,value:`max`})])})])}),Object.freeze({executionProfiles:Object.freeze([VIBE64_AGENT_EXECUTION_PROFILE_IDS.HELPER]),id:VIBE64_ASSISTANT_ENGINE_IDS.CLAUDE,implemented:true,label:`Claude Code`,accountLabel:`Claude`,planUsage:Object.freeze({label:`Claude`,managementUrl:`https://claude.ai/settings/usage`}),parameters:Object.freeze([]),terminal:`native`,terminalAttachments:false}),Object.freeze({executionProfiles:Object.freeze([]),id:VIBE64_ASSISTANT_ENGINE_IDS.OPENCODE,implemented:false,label:`OpenCode`,parameters:Object.freeze([]),terminal:`native`,terminalAttachments:true})]);function findVibe64AgentProvider(engineId=``){const normalizedEngineId=normalizeAgentSettingText(engineId);return VIBE64_AGENT_PROVIDERS.find(candidate=>candidate.id===normalizedEngineId)||null}function agentProviderDefinition(providerId=``){const normalizedProviderId=normalizeAgentSettingText(providerId)||VIBE64_DEFAULT_AGENT_PROVIDER_ID;const provider=VIBE64_AGENT_PROVIDERS.find(candidate=>candidate.id===normalizedProviderId);if(provider)return provider;const error=new Error(`Unknown assistant provider: ${normalizedProviderId}.`);error.code=VIBE64_AGENT_PROVIDER_UNKNOWN_CODE;error.providerId=normalizedProviderId;throw error}function agentProviderParameter(provider={},parameterId=``){const normalizedParameterId=normalizeAgentSettingText(parameterId);return(Array.isArray(provider.parameters)?provider.parameters:[]).find(parameter=>parameter.id===normalizedParameterId)||null}function normalizeAgentSettingText(value=``){return String(value||``).trim()}function normalizeVibe64AgentSettings(value={}){const input=value&&typeof value===`object`&&!Array.isArray(value)?value:{};const provider=agentProviderDefinition(input.providerId||input.provider);const model=normalizeAgentSettingText(input.model);return{model,providerId:provider.id,thinking:normalizedAgentThinkingValue(provider,model,input.thinking)}}function defaultVibe64AgentSettings(providerId=VIBE64_DEFAULT_AGENT_PROVIDER_ID){return normalizeVibe64AgentSettings({providerId})}function effectiveAgentParameterValue(provider={},parameterId=``,value=``){const parameter=agentProviderParameter(provider,parameterId);return normalizeAgentSettingText(value)||normalizeAgentSettingText(parameter?.defaultValue)}function effectiveAgentParameterOption(provider={},parameterId=``,value=``){const parameter=agentProviderParameter(provider,parameterId);const effectiveValue=effectiveAgentParameterValue(provider,parameterId,value);return(Array.isArray(parameter?.options)?parameter.options:[]).find(option=>normalizeAgentSettingText(option.value)===effectiveValue)||null}function supportedAgentThinkingValues(provider={},model=``){const modelOption=effectiveAgentParameterOption(provider,VIBE64_AGENT_PARAMETER_IDS.MODEL,model);return Array.isArray(modelOption?.supportedThinking)?new Set(modelOption.supportedThinking.map(value=>normalizeAgentSettingText(value))):null}function normalizedAgentThinkingValue(provider={},model=``,value=``){const normalized=normalizeAgentSettingText(value);if(provider.id===VIBE64_ASSISTANT_ENGINE_IDS.CODEX)return normalized;const supported=supportedAgentThinkingValues(provider,model);if(!supported||!normalized||supported.has(normalized))return normalized;const fallback=normalizeAgentSettingText(agentProviderParameter(provider,VIBE64_AGENT_PARAMETER_IDS.THINKING)?.defaultValue);return supported.has(fallback)?fallback:``}function vibe64AgentSettingParameters(value={}){const normalized=normalizeVibe64AgentSettings(value);const provider=agentProviderDefinition(normalized.providerId);const requestsReasoning=agentOptionRequestValue(effectiveAgentParameterOption(provider,VIBE64_AGENT_PARAMETER_IDS.MODEL,normalized.model),`reasoning`,true);const supportedThinking=supportedAgentThinkingValues(provider,normalized.model);return(Array.isArray(provider.parameters)?provider.parameters:[]).flatMap(parameter=>{if(parameter.id===VIBE64_AGENT_PARAMETER_IDS.THINKING&&requestsReasoning===false)return[];if(parameter.id!==VIBE64_AGENT_PARAMETER_IDS.THINKING||!supportedThinking)return[parameter];return[{...parameter,options:parameter.options.filter(option=>!normalizeAgentSettingText(option.value)||supportedThinking.has(normalizeAgentSettingText(option.value)))}]})}function agentOptionRequestValue(option={},name=``,fallback=true){const request=option&&typeof option.request===`object`&&!Array.isArray(option.request)?option.request:{};return Object.hasOwn(request,name)?request[name]:fallback}function displayVibe64AgentSetting(providerId=``,parameterId=``,value=``){const parameter=agentProviderParameter(agentProviderDefinition(providerId),parameterId);const normalizedValue=normalizeAgentSettingText(value);return(Array.isArray(parameter?.options)?parameter.options:[]).find(candidate=>normalizeAgentSettingText(candidate.value)===normalizedValue)?.label||normalizedValue||`Automatic`}var __testables=Object.freeze({displayVibe64AgentSetting,VIBE64_AGENT_PROVIDER_UNKNOWN_CODE,VIBE64_CODEX_GPT_5_5_MODEL,VIBE64_CODEX_SOL_MODEL,VIBE64_CODEX_SPARK_MODEL,vibe64AgentSettingParameters});function vibe64AssistantSelectionLabel(selection,options={}){const{includeThinking=true}=options;const engine=VIBE64_AGENT_PROVIDERS.find(({id})=>id===selection.engineId)?.label||selection.engineId;if(!includeThinking)return`${engine} (${selection.modelId})`;const thinking=selection.variantId===``?`default`:selection.variantId||`not recorded`;return`${engine} (${selection.modelId} ${thinking})`}function vibe64ProviderPresentation(selection){const provider=curatedCodexProvider(selection?.modelProviderId);const commentaryAsThinking=Boolean(provider)&&[VIBE64_ASSISTANT_ENGINE_IDS.CODEX,VIBE64_ASSISTANT_ENGINE_IDS.CLAUDE].includes(selection?.engineId);return Object.freeze({label:provider?.shortLabel||findVibe64AgentProvider(selection?.engineId)?.label||``,keyUsage:Boolean(provider),commentaryAsThinking,thinkingParagraphUpdates:!commentaryAsThinking&&selection?.engineId===VIBE64_ASSISTANT_ENGINE_IDS.CLAUDE})}var VIBE64_AGENT_TASK_RESULT_KINDS=Object.freeze({COMPLETE:`complete`,CONTINUE:`continue`});var VIBE64_AGENT_TASK_RESULT_SCHEMA=Object.freeze({additionalProperties:false,properties:{kind:{enum:Object.values(VIBE64_AGENT_TASK_RESULT_KINDS),type:`string`},message:{description:`Normal Markdown shown to the user for this task turn.`,type:`string`},report:{description:`A concise factual handoff for the main conversation when the task is complete; otherwise an empty string.`,type:`string`}},required:[`kind`,`message`,`report`],type:`object`});var VIBE64_AI_TASK_RESULT_KINDS=Object.freeze({CANNOT:`cannot`,COMPLETE:`complete`,QUESTION:`question`});var VIBE64_AI_TASK_RESULT_SCHEMA=Object.freeze({additionalProperties:false,properties:{kind:{description:`complete when the work is ready for Vibe64 to check, question when you need the person's decision, cannot when you cannot finish this.`,enum:Object.values(VIBE64_AI_TASK_RESULT_KINDS),type:`string`},message:{description:`Normal Markdown shown to the user for this task turn. For question, the question. For cannot, why.`,type:`string`},report:{description:`What you did, in a few plain sentences, when the task is complete; otherwise an empty string.`,type:`string`}},required:[`kind`,`message`,`report`],type:`object`});var VIBE64_TASK_RESULT_KINDS=Object.freeze([...Object.values(VIBE64_AGENT_TASK_RESULT_KINDS),VIBE64_AI_TASK_RESULT_KINDS.QUESTION,VIBE64_AI_TASK_RESULT_KINDS.CANNOT]);var VIBE64_ASSISTANT_ACCESS_ERROR_CODES=Object.freeze({RESTRICTED:`vibe64_assistant_owner_required`,UNAVAILABLE:`vibe64_assistant_connection_unavailable`});var VIBE64_CONVERSATION_ATTACHMENT_MAX_ITEMS=10;var VIBE64_CONVERSATION_ATTACHMENT_FILE_NAME_MAX_CHARACTERS=160;var ATTACHMENT_ID_PATTERN=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/iu;var IMAGE_TYPES=Object.freeze({avif:`image/avif`,bmp:`image/bmp`,gif:`image/gif`,jpeg:`image/jpeg`,jpg:`image/jpeg`,png:`image/png`,webp:`image/webp`});function conversationAttachmentContentType(fileName=``){const extension=String(fileName).split(`.`).at(-1).toLowerCase();return Object.hasOwn(IMAGE_TYPES,extension)?IMAGE_TYPES[extension]:`application/octet-stream`}function conversationAttachmentReference(attachment={},number=1){return`[${conversationAttachmentContentType(attachment.fileName).startsWith(`image/`)?`Image`:`File`} #${number}]`}function conversationAttachmentFileName(value=``){const normalized=Array.from(String(value??``),character=>{const codePoint=character.codePointAt(0);return codePoint<=31||codePoint===127?` `:character}).join(``).trim();return Array.from(normalized).slice(0,VIBE64_CONVERSATION_ATTACHMENT_FILE_NAME_MAX_CHARACTERS).join(``)}function normalizeVibe64ConversationAttachments(value=[]){return(Array.isArray(value)?value:[]).slice(0,VIBE64_CONVERSATION_ATTACHMENT_MAX_ITEMS).map(candidate=>{if(!candidate||typeof candidate!==`object`||Array.isArray(candidate)||typeof candidate.fileName!==`string`)return null;const fileName=conversationAttachmentFileName(candidate.fileName);if(!fileName)return null;return{...ATTACHMENT_ID_PATTERN.test(String(candidate.attachmentId||``))?{attachmentId:candidate.attachmentId}:{},.../^\[(?:Image|File) #[1-9][0-9]{0,3}\]$/u.test(candidate.reference||``)?{reference:candidate.reference}:{},fileName,...Number.isSafeInteger(candidate.size)&&candidate.size>=0?{size:candidate.size}:{}}}).filter(Boolean)}var VIBE64_PROMPT_HINT_LABEL_MAX_CHARACTERS=24;var VIBE64_PROMPT_HINT_PROMPT_MAX_CHARACTERS=108;function normalizedPromptHintDraft(value=``){return Array.from(String(value??``).replace(/\r\n?/gu,`
2
- `).trim()).slice(-4e3).join(``)}var VIBE64_PROMPT_HINT_OUTPUT_SCHEMA=Object.freeze({additionalProperties:false,properties:Object.freeze({suggestions:Object.freeze({items:Object.freeze({additionalProperties:false,properties:Object.freeze({label:Object.freeze({maxLength:24,minLength:1,type:`string`}),prompt:Object.freeze({maxLength:108,minLength:1,type:`string`})}),required:Object.freeze([`label`,`prompt`]),type:`object`}),maxItems:3,minItems:3,type:`array`})}),required:Object.freeze([`suggestions`]),type:`object`});var VIBE64_PROMPT_HINT_STATIC_STARTERS=Object.freeze({existingProject:Object.freeze([Object.freeze({label:`Tour this project`,prompt:`Give me a quick tour of this project`}),Object.freeze({label:`Find first improvement`,prompt:`What should I improve first?`}),Object.freeze({label:`Plan safe change`,prompt:`Help me plan a small safe change`})]),greenfield:Object.freeze([Object.freeze({label:`Shape app idea`,prompt:`Help me shape my app idea`}),Object.freeze({label:`Plan first version`,prompt:`Show me the simplest useful first version`}),Object.freeze({label:`Decide first steps`,prompt:`What should we decide first?`})])});function normalizedPromptHintSuggestion(suggestion={}){if(!suggestion||typeof suggestion!==`object`||Array.isArray(suggestion)||Object.keys(suggestion).length!==2||!Object.hasOwn(suggestion,`label`)||!Object.hasOwn(suggestion,`prompt`)||typeof suggestion.label!==`string`||typeof suggestion.prompt!==`string`||[suggestion.label,suggestion.prompt].some(text=>Array.from(text).some(character=>{const codePoint=character.codePointAt(0);return codePoint<=31||codePoint===127})))return null;const label=suggestion.label.trim().replace(/[\t ]+/gu,` `);const prompt=suggestion.prompt.trim().replace(/[\t ]+/gu,` `);const labelWordCount=label?label.split(/\s+/u).length:0;return label&&prompt&&Array.from(label).length<=24&&Array.from(prompt).length<=108&&labelWordCount>=2&&labelWordCount<=4?{label,prompt}:null}function normalizedPromptHintSuggestions(value=[]){if(!Array.isArray(value)||value.length!==3)return[];const suggestions=value.map(normalizedPromptHintSuggestion).filter(Boolean);return suggestions.length===3&&new Set(suggestions.map(({label})=>label.toLocaleLowerCase())).size===3&&new Set(suggestions.map(({prompt})=>prompt.toLocaleLowerCase())).size===3?suggestions:[]}export{curatedCodexProvider as _,conversationAttachmentReference as a,sameVibe64AssistantSelection as b,vibe64AssistantSelectionLabel as c,VIBE64_DEFAULT_AGENT_PROVIDER_ID as d,defaultVibe64AgentSettings as f,CURATED_CODEX_PROVIDERS as g,vibe64AgentExecutionProfileAuditSnapshot as h,conversationAttachmentContentType as i,vibe64ProviderPresentation as l,normalizeVibe64AgentSettings as m,normalizedPromptHintSuggestion as n,normalizeVibe64ConversationAttachments as o,findVibe64AgentProvider as p,normalizedPromptHintSuggestions as r,VIBE64_ASSISTANT_ACCESS_ERROR_CODES as s,normalizedPromptHintDraft as t,VIBE64_AGENT_PROVIDERS as u,CUSTOM_AI_PROVIDER_ID as v,defineVibe64AssistantSelection as y};
@@ -1 +0,0 @@
1
- import"./normalize-BD25VwNK.js";var DEFAULT_VIBE64_LOG_LEVEL=`warn`;var VIBE64_LOG_LEVEL_ENV=`VIBE64_LOG_LEVEL`;var STANDARD_LOG_LEVEL_ENV=`LOG_LEVEL`;var VIBE64_LOG_LEVELS=Object.freeze([`fatal`,`error`,`warn`,`info`,`debug`,`trace`,`silent`]);var VIBE64_LOG_LEVEL_SEVERITY=Object.freeze({trace:10,debug:20,info:30,warn:40,error:50,fatal:60,silent:Infinity});function runtimeEnv(globalObject=globalThis){return globalObject?.process?.env||{}}function isTruthyEnvValue(value=``){const normalized=String(value||``).trim().toLowerCase();return Boolean(normalized)&&![`0`,`false`,`no`,`off`].includes(normalized)}function normalizeVibe64LogLevel(value=``,fallback=DEFAULT_VIBE64_LOG_LEVEL){const normalized=String(value||``).trim().toLowerCase();if(VIBE64_LOG_LEVELS.includes(normalized))return normalized;return fallback}function resolveVibe64LogLevel({defaultLevel=DEFAULT_VIBE64_LOG_LEVEL,env=runtimeEnv(),level=``}={}){const fallback=normalizeVibe64LogLevel(defaultLevel,DEFAULT_VIBE64_LOG_LEVEL);const explicitLevel=String(level||``).trim();const envLevel=String(env?.[VIBE64_LOG_LEVEL_ENV]||``).trim();const standardEnvLevel=String(env?.[STANDARD_LOG_LEVEL_ENV]||``).trim();const requestedLevel=explicitLevel||envLevel||standardEnvLevel;const source=explicitLevel?`option`:envLevel?VIBE64_LOG_LEVEL_ENV:standardEnvLevel?STANDARD_LOG_LEVEL_ENV:`default`;return{defaultLevel:fallback,level:normalizeVibe64LogLevel(requestedLevel,fallback),requestedLevel,source,valid:!requestedLevel||VIBE64_LOG_LEVELS.includes(String(requestedLevel).trim().toLowerCase())}}function isVibe64LogLevelEnabled(messageLevel=`info`,configuredLevel=DEFAULT_VIBE64_LOG_LEVEL){const normalizedMessageLevel=normalizeVibe64LogLevel(messageLevel,``);const normalizedConfiguredLevel=normalizeVibe64LogLevel(configuredLevel,DEFAULT_VIBE64_LOG_LEVEL);if(!normalizedMessageLevel||normalizedConfiguredLevel===`silent`)return false;return VIBE64_LOG_LEVEL_SEVERITY[normalizedMessageLevel]>=VIBE64_LOG_LEVEL_SEVERITY[normalizedConfiguredLevel]}function isVibe64DebugLoggingEnabled({env=runtimeEnv(),flagName=``,level=``}={}){if(flagName&&isTruthyEnvValue(env?.[flagName]))return true;const resolvedLevel=resolveVibe64LogLevel({env,level}).level;return isVibe64LogLevelEnabled(`debug`,resolvedLevel)}function browserSearchParamEnabled(search=``,paramName=``){if(!paramName)return false;const params=new URLSearchParams(String(search||``).replace(/^\?/,``));if(!params.has(paramName))return false;const value=params.get(paramName);return value===``||isTruthyEnvValue(value)}function browserStorageFlagEnabled(storage,key=``){if(!storage||!key)return false;try{return isTruthyEnvValue(storage.getItem(key))}catch{return false}}function isVibe64BrowserFlagEnabled({globalObject=globalThis,queryParam=``,storageKey=``}={}){if(browserSearchParamEnabled((globalObject?.location||globalObject?.window?.location)?.search||``,queryParam))return true;return browserStorageFlagEnabled(globalObject?.localStorage||globalObject?.window?.localStorage,storageKey)}var __testables=Object.freeze({isVibe64LogLevelEnabled});function nonnegativeInteger(value){const number=Number(value);return Number.isSafeInteger(number)&&number>=0?number:0}function repositoryUpdateRelationship(aheadValue=0,behindValue=0){const ahead=nonnegativeInteger(aheadValue);const behind=nonnegativeInteger(behindValue);if(ahead>0&&behind>0)return`diverged`;if(behind>0)return`behind`;if(ahead>0)return`ahead`;return`current`}export{isVibe64BrowserFlagEnabled as n,isVibe64DebugLoggingEnabled as r,repositoryUpdateRelationship as t};
@@ -1 +0,0 @@
1
- import{s as vibe64ProjectQueryScope}from"./vibe64ProjectScope.local-B9ZpdYlf.js";import{a as studioApiPath}from"./studioUrls-BR4ZL-TN.js";var VIBE64_PROJECT_CREATE_API_SUFFIX=`/vibe64/projects`;var VIBE64_ENV_SECRET_REVEAL_API_SUFFIX=`/vibe64/env/reveal`;var VIBE64_ENV_DOWNLOAD_API_SUFFIX=`/vibe64/env/download`;var VIBE64_DEVELOPMENT_DATABASE_API_SUFFIX=`/vibe64/settings/development-database`;var VIBE64_ENGINEERING_API_SUFFIX=`/vibe64/settings/engineering`;var VIBE64_COLLABORATION_API_SUFFIX=`/vibe64/settings/collaboration`;var VIBE64_PROMPT_HINTS_SETTINGS_API_SUFFIX=`/vibe64/settings/prompt-hints`;var VIBE64_ENV_USER_VALUES_API_SUFFIX=`/vibe64/env/user-values`;var VIBE64_PREVIEW_IDENTITIES_API_SUFFIX=`/vibe64/preview-identities`;var VIBE64_PROJECT_SELECT_API_SUFFIX=`/vibe64/projects/select`;var VIBE64_CONNECTIONS_CHANGED_EVENT=`vibe64.connections.changed`;var VIBE64_PROJECT_CHANGED_EVENT=`vibe64.project.changed`;var TARGET_PROJECT_ENDPOINT=studioApiPath(`studio/current-app`);var STUDIO_HEALTH_ENDPOINT=studioApiPath(`studio/health`);var STUDIO_TOOLS_ENDPOINT=studioApiPath(`studio/health/tools`);var VIBE64_ENDPOINT=studioApiPath(`vibe64`);var PROJECT_SELECTION_ENDPOINT=`${VIBE64_ENDPOINT}/projects`;var ENV_ENDPOINT=`${VIBE64_ENDPOINT}/env`;var ENV_SECRET_REVEAL_ENDPOINT=`${ENV_ENDPOINT}/reveal`;var ENV_DOWNLOAD_ENDPOINT=`${ENV_ENDPOINT}/download`;var PROJECT_SETTINGS_ENDPOINT=`${VIBE64_ENDPOINT}/settings`;var DEVELOPMENT_DATABASE_ENDPOINT=`${PROJECT_SETTINGS_ENDPOINT}/development-database`;var ENGINEERING_ENDPOINT=`${PROJECT_SETTINGS_ENDPOINT}/engineering`;var COLLABORATION_ENDPOINT=`${PROJECT_SETTINGS_ENDPOINT}/collaboration`;var PROMPT_HINTS_SETTINGS_ENDPOINT=`${PROJECT_SETTINGS_ENDPOINT}/prompt-hints`;var ENV_USER_VALUES_ENDPOINT=`${ENV_ENDPOINT}/user-values`;var PREVIEW_IDENTITIES_ENDPOINT=`${VIBE64_ENDPOINT}/preview-identities`;function projectSelectionQueryKey(surfaceId,ownershipFilter,projectSlug){return[`vibe64`,...vibe64ProjectQueryScope(projectSlug),surfaceId,ownershipFilter,`projects`]}function envQueryKey(surfaceId,ownershipFilter,projectSlug){return[`vibe64`,...vibe64ProjectQueryScope(projectSlug),surfaceId,ownershipFilter,`env`]}function projectSettingsQueryKey(surfaceId,ownershipFilter,projectSlug,sessionId=``){return[`vibe64`,...vibe64ProjectQueryScope(projectSlug),surfaceId,ownershipFilter,`settings`,String(sessionId||``).trim()||`selected-source`]}function engineeringSettingsQueryKey(surfaceId,ownershipFilter,projectSlug,sessionId=``){return[`vibe64`,...vibe64ProjectQueryScope(projectSlug),surfaceId,ownershipFilter,`engineering`,String(sessionId||``).trim()||`selected-source`]}function previewIdentitiesQueryKey(surfaceId,ownershipFilter,projectSlug){return[`vibe64`,...vibe64ProjectQueryScope(projectSlug),surfaceId,ownershipFilter,`preview-identities`]}function studioHealthQueryKey(surfaceId,ownershipFilter){return[`vibe64`,surfaceId,ownershipFilter,`studio-health`]}export{projectSettingsQueryKey as A,VIBE64_PROJECT_CREATE_API_SUFFIX as C,envQueryKey as D,engineeringSettingsQueryKey as E,previewIdentitiesQueryKey as O,VIBE64_PROJECT_CHANGED_EVENT as S,VIBE64_PROMPT_HINTS_SETTINGS_API_SUFFIX as T,VIBE64_ENGINEERING_API_SUFFIX as _,ENV_ENDPOINT as a,VIBE64_ENV_USER_VALUES_API_SUFFIX as b,PREVIEW_IDENTITIES_ENDPOINT as c,PROMPT_HINTS_SETTINGS_ENDPOINT as d,STUDIO_HEALTH_ENDPOINT as f,VIBE64_DEVELOPMENT_DATABASE_API_SUFFIX as g,VIBE64_CONNECTIONS_CHANGED_EVENT as h,ENV_DOWNLOAD_ENDPOINT as i,studioHealthQueryKey as j,projectSelectionQueryKey as k,PROJECT_SELECTION_ENDPOINT as l,VIBE64_COLLABORATION_API_SUFFIX as m,DEVELOPMENT_DATABASE_ENDPOINT as n,ENV_SECRET_REVEAL_ENDPOINT as o,STUDIO_TOOLS_ENDPOINT as p,ENGINEERING_ENDPOINT as r,ENV_USER_VALUES_ENDPOINT as s,COLLABORATION_ENDPOINT as t,PROJECT_SETTINGS_ENDPOINT as u,VIBE64_ENV_DOWNLOAD_API_SUFFIX as v,VIBE64_PROJECT_SELECT_API_SUFFIX as w,VIBE64_PREVIEW_IDENTITIES_API_SUFFIX as x,VIBE64_ENV_SECRET_REVEAL_API_SUFFIX as y};
@@ -1 +0,0 @@
1
- import{t as currentProjectSlugFromLocation}from"./vibe64ProjectScope.local-B9ZpdYlf.js";import{n as getHttpWebClient}from"./httpClient-C71X5grL.js";import{t as resolveScopedApiBasePath}from"./surface-CBlx7sF_.js";function studioApiPath(relativePath){return resolveScopedApiBasePath({routeBase:`/`,relativePath,strictParams:false})}function resolveStudioRequestUrl(url){return scopedDevelopmentApiUrl(url,currentProjectSlugFromLocation())}function requestStudio(url,options){return getHttpWebClient().request(resolveStudioRequestUrl(url),options)}function scopedDevelopmentApiUrl(url,slug=currentProjectSlugFromLocation(),{scopeGlobalPaths=false}={}){const projectSlug=String(slug||``).trim();if(!projectSlug)return url;const source=String(url||``).trim();if(!source)return url;const absolute=/^[a-z][a-z0-9+.-]*:\/\//iu.test(source);const base=typeof window===`undefined`?`http://vibe64.local`:window.location.origin;const parsed=new URL(source,base);const pathname=scopedDevelopmentApiPathname(parsed.pathname,projectSlug,{scopeGlobalPaths});if(pathname===parsed.pathname)return url;parsed.pathname=pathname;return absolute?parsed.toString():`${parsed.pathname}${parsed.search}${parsed.hash}`}function scopedDevelopmentApiPathname(pathname=``,slug=``,{scopeGlobalPaths=false}={}){const normalizedPathname=String(pathname||``).trim();if(!slug||normalizedPathname.startsWith(`/api/app/`)||!scopeGlobalPaths&&isGlobalApiPathname(normalizedPathname)||!isDevelopmentApiPathname(normalizedPathname))return normalizedPathname;return`/api/app/${encodeURIComponent(slug)}${normalizedPathname.slice(4)}`}function isGlobalApiPathname(pathname=``){return pathname===`/api/studio/health`||pathname.startsWith(`/api/studio/health/`)||pathname===`/api/studio/browser-lifecycle/ws`||pathname===`/api/vibe64/projects`||pathname.startsWith(`/api/vibe64/projects/`)||pathname===`/api/vibe64/colleague`||pathname.startsWith(`/api/vibe64/colleague/`)||pathname===`/api/vibe64/training`||pathname.startsWith(`/api/vibe64/training/`)||pathname===`/api/vibe64/voice`||pathname.startsWith(`/api/vibe64/voice/`)||pathname===`/api/vibe64/launcher`||pathname.startsWith(`/api/vibe64/launcher/`)||pathname===`/api/vibe64/github`||pathname.startsWith(`/api/vibe64/github/`)}function isDevelopmentApiPathname(pathname=``){return pathname===`/api/studio`||pathname.startsWith(`/api/studio/`)||pathname===`/api/vibe64`||pathname.startsWith(`/api/vibe64/`)}function resolveWebSocketUrl(pathname,browserWindow=window){const protocol=browserWindow.location.protocol===`https:`?`wss:`:`ws:`;const scopedPathname=scopedDevelopmentApiUrl(pathname,currentProjectSlugFromLocation());return`${protocol}//${browserWindow.location.host}${scopedPathname}`}export{studioApiPath as a,scopedDevelopmentApiUrl as i,resolveStudioRequestUrl as n,resolveWebSocketUrl as r,requestStudio as t};
@@ -1 +0,0 @@
1
- import{i as normalizePathname,t as API_BASE_PATH}from"./returnToPath-CILshEkc.js";import{r as isRecord}from"./normalize-BD25VwNK.js";function normalizeRouteTemplateParams(params=null){if(!isRecord(params))return{};return params}function materializeRouteTemplate(routeTemplate=`/`,{params={},strictParams=true,context=`materializeRouteTemplate`}={}){const normalizedTemplate=normalizePathname(routeTemplate);const normalizedParams=normalizeRouteTemplateParams(params);const missingParams=new Set;const outputPath=String(normalizedTemplate||`/`).replace(/:([A-Za-z0-9_]+)/g,(_full,rawName)=>{const paramName=String(rawName||``).trim();const rawValue=normalizedParams[paramName];const paramValue=String(Array.isArray(rawValue)?rawValue[0]:rawValue??``).trim();if(!paramValue){missingParams.add(paramName);return`:${paramName}`}return encodeURIComponent(paramValue)});if(strictParams&&missingParams.size>0)throw new Error(`${context} missing required route params: ${[...missingParams].sort().join(`, `)}.`);return outputPath}function resolveScopedRouteBase(routeBase=`/`){const segments=normalizePathname(routeBase).split(`/`).filter(Boolean);let lastDynamicIndex=-1;for(let index=0;index<segments.length;index+=1){const segment=segments[index];if(segment.startsWith(`:`)&&segment.length>1)lastDynamicIndex=index}if(lastDynamicIndex<0)return`/`;return`/${segments.slice(0,lastDynamicIndex+1).join(`/`)}`}function resolveScopedApiBasePath({routeBase=`/`,relativePath=`/`,params={},strictParams=true}={}){const materializedScopeBase=materializeRouteTemplate(resolveScopedRouteBase(routeBase),{params,strictParams,context:`resolveScopedApiBasePath`});const basePath=materializedScopeBase===`/`?API_BASE_PATH:`${API_BASE_PATH}${materializedScopeBase}`;const normalizedRelativePath=normalizePathname(relativePath||`/`);if(normalizedRelativePath===`/`)return basePath;return`${basePath}${normalizedRelativePath}`}export{resolveScopedRouteBase as n,resolveScopedApiBasePath as t};