abstra 3.24.0__py3-none-any.whl → 3.24.1__py3-none-any.whl

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 (235) hide show
  1. abstra/cli.py +8 -2
  2. {abstra-3.24.0.dist-info → abstra-3.24.1.dist-info}/METADATA +1 -2
  3. {abstra-3.24.0.dist-info → abstra-3.24.1.dist-info}/RECORD +178 -178
  4. abstra_internals/cloud_api/__init__.py +17 -8
  5. abstra_internals/contracts_generated.py +463 -453
  6. abstra_internals/controllers/ai.py +89 -1
  7. abstra_internals/controllers/git.py +2 -0
  8. abstra_internals/interface/cli/editor.py +2 -2
  9. abstra_internals/repositories/git/__init__.py +1 -14
  10. abstra_internals/repositories/git/git_test.py +4 -1214
  11. abstra_internals/repositories/git/native.py +2 -2
  12. abstra_internals/repositories/git/types.py +6 -0
  13. abstra_statics/dist/assets/AbstraButton.vue_vue_type_script_setup_true_lang.aefce2d3.js +2 -0
  14. abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.28bc9fc9.js +2 -0
  15. abstra_statics/dist/assets/ApiKeys.3c1e70dc.js +2 -0
  16. abstra_statics/dist/assets/App.9d8bd2aa.js +2 -0
  17. abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.a64c7cee.js +2 -0
  18. abstra_statics/dist/assets/BaseLayout.72a6c8f2.js +2 -0
  19. abstra_statics/dist/assets/{Billing.60adc9fa.js → Billing.6b07f282.js} +2 -2
  20. abstra_statics/dist/assets/{Breadcrumb.26dec5f7.js → Breadcrumb.5c786c09.js} +2 -2
  21. abstra_statics/dist/assets/{Builds.f86210bc.js → Builds.d8c5c61b.js} +2 -2
  22. abstra_statics/dist/assets/{Card.6cfffb80.js → Card.fc77085c.js} +2 -2
  23. abstra_statics/dist/assets/{CircularLoading.a13d6a76.js → CircularLoading.998b223a.js} +2 -2
  24. abstra_statics/dist/assets/{CloseCircleOutlined.30bc25a8.js → CloseCircleOutlined.9ff269cc.js} +2 -2
  25. abstra_statics/dist/assets/{ConnectorsView.eb4c769f.js → ConnectorsView.e670738b.js} +2 -2
  26. abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.3ca66327.js +2 -0
  27. abstra_statics/dist/assets/ContentLayout.0db8d7fb.js +2 -0
  28. abstra_statics/dist/assets/{CrudView.c0824225.js → CrudView.cc6aeaf0.js} +2 -2
  29. abstra_statics/dist/assets/DocsButton.vue_vue_type_script_setup_true_lang.689d8ce7.js +2 -0
  30. abstra_statics/dist/assets/{EditorLogin.46db248f.js → EditorLogin.691452b4.js} +2 -2
  31. abstra_statics/dist/assets/{EditorsView.e72621fa.js → EditorsView.fcdf0186.js} +2 -2
  32. abstra_statics/dist/assets/EnvVars.5519b4ce.js +2 -0
  33. abstra_statics/dist/assets/{Error.864f05b3.js → Error.11fd1f21.js} +2 -2
  34. abstra_statics/dist/assets/ExclamationCircleOutlined.d0aa47da.js +2 -0
  35. abstra_statics/dist/assets/Files.6ea18d46.js +2 -0
  36. abstra_statics/dist/assets/{Form.556d0de2.js → Form.09de384c.js} +2 -2
  37. abstra_statics/dist/assets/{FormRunner.7f56a8c6.js → FormRunner.15be6fa0.js} +2 -2
  38. abstra_statics/dist/assets/Home.782c5702.js +2 -0
  39. abstra_statics/dist/assets/Home.7c495aa9.js +2 -0
  40. abstra_statics/dist/assets/{Live.50bacfea.js → Live.48c10605.js} +2 -2
  41. abstra_statics/dist/assets/LoadingContainer.82ac3d44.js +2 -0
  42. abstra_statics/dist/assets/LoadingOutlined.66639b08.js +2 -0
  43. abstra_statics/dist/assets/Login.4a05f5c5.js +2 -0
  44. abstra_statics/dist/assets/{Login.536a3067.js → Login.4e852955.js} +2 -2
  45. abstra_statics/dist/assets/{Login.vue_vue_type_script_setup_true_lang.1c3f108d.js → Login.vue_vue_type_script_setup_true_lang.5161f328.js} +2 -2
  46. abstra_statics/dist/assets/Logo.65e0b37c.js +2 -0
  47. abstra_statics/dist/assets/{Logs.f6135084.js → Logs.7d1acf32.js} +2 -2
  48. abstra_statics/dist/assets/{LogsController.6b666816.js → LogsController.0eb2eb30.js} +2 -2
  49. abstra_statics/dist/assets/Main.0313f4fc.js +2 -0
  50. abstra_statics/dist/assets/{MockForm.deda9355.js → MockForm.0b819a52.js} +2 -2
  51. abstra_statics/dist/assets/Navbar.ef64aa09.js +2 -0
  52. abstra_statics/dist/assets/{NewEditor.5f84de86.css → NewEditor.b9c410fe.css} +1 -1
  53. abstra_statics/dist/assets/NewEditor.c928dbe9.js +8 -0
  54. abstra_statics/dist/assets/OidcLoginCallback.42a7c4f9.js +2 -0
  55. abstra_statics/dist/assets/OidcLogoutCallback.35931a68.js +2 -0
  56. abstra_statics/dist/assets/OmniChat.73d9f6bb.js +6 -0
  57. abstra_statics/dist/assets/OmniChat.a21fec40.css +1 -0
  58. abstra_statics/dist/assets/{OnboardingView.9413ee50.js → OnboardingView.25042384.js} +2 -2
  59. abstra_statics/dist/assets/{Organization.7203cc0b.js → Organization.66f64939.js} +2 -2
  60. abstra_statics/dist/assets/Organizations.47868beb.js +2 -0
  61. abstra_statics/dist/assets/{PhArrowCounterClockwise.vue.8090d021.js → PhArrowCounterClockwise.vue.78877a50.js} +2 -2
  62. abstra_statics/dist/assets/{PhArrowSquareOut.vue.26582195.js → PhArrowSquareOut.vue.2ddfc219.js} +2 -2
  63. abstra_statics/dist/assets/{PhBookBookmark.vue.5b7ab079.js → PhBookBookmark.vue.41108214.js} +2 -2
  64. abstra_statics/dist/assets/{PhChats.vue.b5df7174.js → PhChats.vue.71e5cb89.js} +2 -2
  65. abstra_statics/dist/assets/{PhClockCounterClockwise.vue.812311ad.js → PhClockCounterClockwise.vue.854c3cb5.js} +2 -2
  66. abstra_statics/dist/assets/{PhCopy.vue.59b0f1b4.js → PhCopy.vue.d116ddfb.js} +2 -2
  67. abstra_statics/dist/assets/PhCopySimple.vue.5d0f839d.js +2 -0
  68. abstra_statics/dist/assets/{PhCube.vue.63ae7d32.js → PhCube.vue.abf4a034.js} +2 -2
  69. abstra_statics/dist/assets/{PhDatabase.vue.edfcb96b.js → PhDatabase.vue.a94d95f6.js} +2 -2
  70. abstra_statics/dist/assets/{PhDotsThreeVertical.vue.ab4580a5.js → PhDotsThreeVertical.vue.5e8ae2a9.js} +2 -2
  71. abstra_statics/dist/assets/PhDownloadSimple.vue.e88f64f1.js +2 -0
  72. abstra_statics/dist/assets/{PhFolderPlus.vue.05ba4a5c.js → PhFolderPlus.vue.21d377a3.js} +2 -2
  73. abstra_statics/dist/assets/{PhGear.vue.0e4a6135.js → PhGear.vue.363dd83c.js} +2 -2
  74. abstra_statics/dist/assets/{PhKey.vue.b2c184d1.js → PhKey.vue.23f3a465.js} +2 -2
  75. abstra_statics/dist/assets/{PhPencil.vue.2f2fe576.js → PhPencil.vue.feb383e2.js} +2 -2
  76. abstra_statics/dist/assets/{PhPencilSimple.vue.cc8620ae.js → PhPencilSimple.vue.ec0eebb4.js} +2 -2
  77. abstra_statics/dist/assets/{PhRocket.vue.e397203c.js → PhRocket.vue.261a42b2.js} +2 -2
  78. abstra_statics/dist/assets/{PhSignOut.vue.a271f14b.js → PhSignOut.vue.d1d6498f.js} +2 -2
  79. abstra_statics/dist/assets/{PhSparkle.vue.726defa2.js → PhSparkle.vue.b6712d34.js} +2 -2
  80. abstra_statics/dist/assets/{PhUserList.vue.6a29f16d.js → PhUserList.vue.e0b8c21b.js} +2 -2
  81. abstra_statics/dist/assets/{PhUsersThree.vue.275d13ab.js → PhUsersThree.vue.8889f957.js} +2 -2
  82. abstra_statics/dist/assets/{PhWarningCircle.vue.3b1aca1b.js → PhWarningCircle.vue.2087be7d.js} +2 -2
  83. abstra_statics/dist/assets/{PhWebhooksLogo.vue.5e772aac.js → PhWebhooksLogo.vue.d164db1e.js} +2 -2
  84. abstra_statics/dist/assets/{PlayerConfigProvider.e90a2b41.js → PlayerConfigProvider.28e29025.js} +2 -2
  85. abstra_statics/dist/assets/{PlayerNavbar.11ec1844.js → PlayerNavbar.aaad1dfd.js} +2 -2
  86. abstra_statics/dist/assets/Project.2de506d7.js +2 -0
  87. abstra_statics/dist/assets/ProjectLogin.22c8b093.js +2 -0
  88. abstra_statics/dist/assets/{ProjectSettings.52c19693.js → ProjectSettings.d065c292.js} +2 -2
  89. abstra_statics/dist/assets/{ProjectsView.22fa7a8e.js → ProjectsView.cbd118ac.js} +2 -2
  90. abstra_statics/dist/assets/{SaveButton.719393d2.js → SaveButton.428227de.js} +2 -2
  91. abstra_statics/dist/assets/ScrollArea.vue_vue_type_script_setup_true_lang.6d724b05.js +2 -0
  92. abstra_statics/dist/assets/{Sidebar.5cb8e04e.js → Sidebar.41173d8e.js} +2 -2
  93. abstra_statics/dist/assets/{Sql.23d80bad.js → Sql.c070dd2c.js} +4 -4
  94. abstra_statics/dist/assets/Steps.dd51a108.js +2 -0
  95. abstra_statics/dist/assets/TableCard.c9a1cf41.js +2 -0
  96. abstra_statics/dist/assets/TableEditor.1bc47a95.js +2 -0
  97. abstra_statics/dist/assets/{Tables.44d953f7.js → Tables.eff119eb.js} +2 -2
  98. abstra_statics/dist/assets/{TablesDiagram.8e47383c.js → TablesDiagram.d633acaf.js} +3 -3
  99. abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.cf7e34c5.js +2 -0
  100. abstra_statics/dist/assets/{Tasks.09551b19.js → Tasks.c311b05f.js} +2 -2
  101. abstra_statics/dist/assets/{UploadOutlined.eab75eb0.js → UploadOutlined.9aa845de.js} +2 -2
  102. abstra_statics/dist/assets/{View.5fd7ddf0.js → View.dd7ba25a.js} +2 -2
  103. abstra_statics/dist/assets/{View.vue_vue_type_script_setup_true_lang.a904f400.js → View.vue_vue_type_script_setup_true_lang.e6563207.js} +2 -2
  104. abstra_statics/dist/assets/{Watermark.ab3d818f.js → Watermark.9c9358e3.js} +2 -2
  105. abstra_statics/dist/assets/{WebEditor.d6ec6392.js → WebEditor.83f2a960.js} +2 -2
  106. abstra_statics/dist/assets/WidgetPreview.7c6a231c.js +2 -0
  107. abstra_statics/dist/assets/ant-design.42419021.js +2 -0
  108. abstra_statics/dist/assets/{apiKey.72f497ca.js → apiKey.403049eb.js} +2 -2
  109. abstra_statics/dist/assets/{asyncComputed.cf5282fc.js → asyncComputed.47aec2b5.js} +2 -2
  110. abstra_statics/dist/assets/{build.df2d55cc.js → build.45b511b6.js} +2 -2
  111. abstra_statics/dist/assets/colorHelpers.50ced1e9.js +2 -0
  112. abstra_statics/dist/assets/{console.2bf7f04d.js → console.f0f09e6f.js} +2 -2
  113. abstra_statics/dist/assets/constants.d569f33d.js +2 -0
  114. abstra_statics/dist/assets/{contracts.generated.590b1102.js → contracts.generated.aefe8d0a.js} +2 -2
  115. abstra_statics/dist/assets/{cssMode.7133c7cb.js → cssMode.23271d4a.js} +2 -2
  116. abstra_statics/dist/assets/datetime.82608dfb.js +2 -0
  117. abstra_statics/dist/assets/dayjs.7f71c60a.js +2 -0
  118. abstra_statics/dist/assets/editor.02184ced.js +2 -0
  119. abstra_statics/dist/assets/editor.main.0f931e87.js +2 -0
  120. abstra_statics/dist/assets/fetch.1b3d01a0.js +2 -0
  121. abstra_statics/dist/assets/files.8b58ee7e.js +2 -0
  122. abstra_statics/dist/assets/{folder.d8e23009.js → folder.13d3acac.js} +2 -2
  123. abstra_statics/dist/assets/{freemarker2.6698d1ea.js → freemarker2.f79b510b.js} +2 -2
  124. abstra_statics/dist/assets/{handlebars.a6c42dc0.js → handlebars.07d5febe.js} +2 -2
  125. abstra_statics/dist/assets/{html.493a5410.js → html.7d6a59b4.js} +2 -2
  126. abstra_statics/dist/assets/{htmlMode.a28b2fca.js → htmlMode.7779ff94.js} +2 -2
  127. abstra_statics/dist/assets/{index.5d6b1e62.js → index.482df04a.js} +2 -2
  128. abstra_statics/dist/assets/{index.79ce3bf1.js → index.581e2edd.js} +2 -2
  129. abstra_statics/dist/assets/{index.fb182bd1.js → index.966ac1b9.js} +2 -2
  130. abstra_statics/dist/assets/{index.4176fe88.js → index.c7a996a6.js} +2 -2
  131. abstra_statics/dist/assets/{index.c34a405a.js → index.c8a56795.js} +2 -2
  132. abstra_statics/dist/assets/{index.fb49354b.js → index.d31da2c3.js} +2 -2
  133. abstra_statics/dist/assets/{index.2af3391c.js → index.d53182ed.js} +2 -2
  134. abstra_statics/dist/assets/{index.4d20c159.js → index.e71a5f84.js} +2 -2
  135. abstra_statics/dist/assets/{javascript.3a36cf17.js → javascript.4c528c2c.js} +3 -3
  136. abstra_statics/dist/assets/{jsonMode.bead6ac8.js → jsonMode.d6441e9d.js} +2 -2
  137. abstra_statics/dist/assets/{jwt-decode.esm.d4517a10.js → jwt-decode.esm.54a1ea22.js} +8 -8
  138. abstra_statics/dist/assets/{linters.2f3141cb.js → linters.a0f2aa84.js} +2 -2
  139. abstra_statics/dist/assets/{liquid.0c337fae.js → liquid.0c441ad2.js} +3 -3
  140. abstra_statics/dist/assets/member.2260c37e.js +2 -0
  141. abstra_statics/dist/assets/{metadata.c3aed6e1.js → metadata.0098e20c.js} +2 -2
  142. abstra_statics/dist/assets/omniChatStore.dd7a1c46.js +8 -0
  143. abstra_statics/dist/assets/{organization.928c9bef.js → organization.668d1b58.js} +2 -2
  144. abstra_statics/dist/assets/player.4ab4aed5.js +2 -0
  145. abstra_statics/dist/assets/{plotly.min.7225d3a0.js → plotly.min.2a87d7e2.js} +2 -2
  146. abstra_statics/dist/assets/polling.b5a32c22.js +2 -0
  147. abstra_statics/dist/assets/{project.619b7244.js → project.1b8374f4.js} +2 -2
  148. abstra_statics/dist/assets/{python.05764499.js → python.7ac27a56.js} +3 -3
  149. abstra_statics/dist/assets/{razor.81a45581.js → razor.860a0279.js} +3 -3
  150. abstra_statics/dist/assets/record.e83a2eb2.js +2 -0
  151. abstra_statics/dist/assets/{redirect.f028a879.js → redirect.586749f4.js} +2 -2
  152. abstra_statics/dist/assets/repository.3a331f0f.js +2 -0
  153. abstra_statics/dist/assets/repository.66c7567c.js +2 -0
  154. abstra_statics/dist/assets/router.06ee2b9d.js +2 -0
  155. abstra_statics/dist/assets/{router.424f7da9.js → router.4dfadf5d.js} +3 -3
  156. abstra_statics/dist/assets/string.61e11a30.js +2 -0
  157. abstra_statics/dist/assets/{tables.1f68ec62.js → tables.1bcb1140.js} +2 -2
  158. abstra_statics/dist/assets/{tasksController.371896de.js → tasksController.f3adf725.js} +2 -2
  159. abstra_statics/dist/assets/{toggleHighContrast.0d0e5662.js → toggleHighContrast.9535bf54.js} +7 -7
  160. abstra_statics/dist/assets/{tsMode.6eadbf06.js → tsMode.c0f9fe1a.js} +2 -2
  161. abstra_statics/dist/assets/{typescript.1670e287.js → typescript.310eae6d.js} +3 -3
  162. abstra_statics/dist/assets/url.f5664225.js +2 -0
  163. abstra_statics/dist/assets/{useCodebaseEvents.53dec1f2.js → useCodebaseEvents.276cc8f0.js} +2 -2
  164. abstra_statics/dist/assets/{useTables.4f034cf8.js → useTables.18fc3efd.js} +2 -2
  165. abstra_statics/dist/assets/userStore.6ab1e5ac.js +2 -0
  166. abstra_statics/dist/assets/uuid.5b8ba8af.js +2 -0
  167. abstra_statics/dist/assets/{vue-flow-background.818c7852.js → vue-flow-background.af096866.js} +2 -2
  168. abstra_statics/dist/assets/{vue-flow-core.1180ec83.js → vue-flow-core.6cb99d32.js} +3 -3
  169. abstra_statics/dist/assets/{vue-quill.esm-bundler.c4f04985.js → vue-quill.esm-bundler.e3d34d0e.js} +2 -2
  170. abstra_statics/dist/assets/{workspaceStore.6244d03d.js → workspaceStore.fac1e9a9.js} +2 -2
  171. abstra_statics/dist/assets/{xml.f2867af8.js → xml.04864db4.js} +3 -3
  172. abstra_statics/dist/assets/{yaml.5427bb1b.js → yaml.f30375fe.js} +3 -3
  173. abstra_statics/dist/console.html +14 -14
  174. abstra_statics/dist/editor.html +13 -13
  175. abstra_statics/dist/player.html +9 -9
  176. abstra_internals/repositories/git/dulwich.py +0 -1353
  177. abstra_statics/dist/assets/AbstraButton.vue_vue_type_script_setup_true_lang.eb8ccb64.js +0 -2
  178. abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.9f98292e.js +0 -2
  179. abstra_statics/dist/assets/ApiKeys.e975c4f3.js +0 -2
  180. abstra_statics/dist/assets/App.f62faff6.js +0 -2
  181. abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.5aa45ac1.js +0 -2
  182. abstra_statics/dist/assets/BaseLayout.1ec2c96d.js +0 -2
  183. abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.8d2e4672.js +0 -2
  184. abstra_statics/dist/assets/ContentLayout.d03fee5b.js +0 -2
  185. abstra_statics/dist/assets/DocsButton.vue_vue_type_script_setup_true_lang.3668aee4.js +0 -2
  186. abstra_statics/dist/assets/EnvVars.f9f9d61f.js +0 -2
  187. abstra_statics/dist/assets/ExclamationCircleOutlined.a489b996.js +0 -2
  188. abstra_statics/dist/assets/Files.afe615e1.js +0 -2
  189. abstra_statics/dist/assets/Home.287d17f8.js +0 -2
  190. abstra_statics/dist/assets/Home.5b7e9c23.js +0 -2
  191. abstra_statics/dist/assets/LoadingContainer.ebace8de.js +0 -2
  192. abstra_statics/dist/assets/LoadingOutlined.9e949112.js +0 -2
  193. abstra_statics/dist/assets/Login.bec408c9.js +0 -2
  194. abstra_statics/dist/assets/Logo.82d6ab70.js +0 -2
  195. abstra_statics/dist/assets/Main.77b115f8.js +0 -2
  196. abstra_statics/dist/assets/Navbar.4a6f2b09.js +0 -2
  197. abstra_statics/dist/assets/NewEditor.e558e47d.js +0 -8
  198. abstra_statics/dist/assets/OidcLoginCallback.7f514b45.js +0 -2
  199. abstra_statics/dist/assets/OidcLogoutCallback.038813a1.js +0 -2
  200. abstra_statics/dist/assets/OmniChat.05ba8d8a.css +0 -1
  201. abstra_statics/dist/assets/OmniChat.60d98deb.js +0 -6
  202. abstra_statics/dist/assets/Organizations.91220ca0.js +0 -2
  203. abstra_statics/dist/assets/PhCopySimple.vue.d41d9160.js +0 -2
  204. abstra_statics/dist/assets/PhDownloadSimple.vue.c2eaaad1.js +0 -2
  205. abstra_statics/dist/assets/Project.c16740fb.js +0 -2
  206. abstra_statics/dist/assets/ProjectLogin.e7a6f444.js +0 -2
  207. abstra_statics/dist/assets/ScrollArea.vue_vue_type_script_setup_true_lang.d4028954.js +0 -2
  208. abstra_statics/dist/assets/Steps.8e5d201a.js +0 -2
  209. abstra_statics/dist/assets/TableCard.59f95f8f.js +0 -2
  210. abstra_statics/dist/assets/TableEditor.8539f984.js +0 -2
  211. abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.6866fb32.js +0 -2
  212. abstra_statics/dist/assets/WidgetPreview.86b31dec.js +0 -2
  213. abstra_statics/dist/assets/ant-design.a865486e.js +0 -2
  214. abstra_statics/dist/assets/colorHelpers.37d9932b.js +0 -2
  215. abstra_statics/dist/assets/constants.7d38ec8b.js +0 -2
  216. abstra_statics/dist/assets/datetime.8de2ff28.js +0 -2
  217. abstra_statics/dist/assets/dayjs.f18bbbca.js +0 -2
  218. abstra_statics/dist/assets/editor.3a4714e3.js +0 -2
  219. abstra_statics/dist/assets/editor.main.9c635b9a.js +0 -2
  220. abstra_statics/dist/assets/fetch.89fd5b7b.js +0 -2
  221. abstra_statics/dist/assets/member.48d6f2cd.js +0 -2
  222. abstra_statics/dist/assets/omniChatStore.c53bcca2.js +0 -8
  223. abstra_statics/dist/assets/player.d3aeafc5.js +0 -2
  224. abstra_statics/dist/assets/polling.82ee6b45.js +0 -2
  225. abstra_statics/dist/assets/record.7f43486c.js +0 -2
  226. abstra_statics/dist/assets/repository.9534db4b.js +0 -2
  227. abstra_statics/dist/assets/repository.c15239ce.js +0 -2
  228. abstra_statics/dist/assets/router.262190ec.js +0 -2
  229. abstra_statics/dist/assets/string.0acf5572.js +0 -2
  230. abstra_statics/dist/assets/url.e8732f77.js +0 -2
  231. abstra_statics/dist/assets/userStore.31024da3.js +0 -2
  232. abstra_statics/dist/assets/uuid.bde15ce7.js +0 -2
  233. {abstra-3.24.0.dist-info → abstra-3.24.1.dist-info}/WHEEL +0 -0
  234. {abstra-3.24.0.dist-info → abstra-3.24.1.dist-info}/entry_points.txt +0 -0
  235. {abstra-3.24.0.dist-info → abstra-3.24.1.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
1
- import{_ as mn,d as pe}from"./vue-flow-background.818c7852.js";import{u as De,d as gn,h as pn,_ as vn,i as mt,a as yn,g as ve,e as wn}from"./vue-flow-core.1180ec83.js";import{d as Vt,eL as _n,eQ as Pe,r as Zt,a4 as kn,bz as Jt,c as Y,aK as bn,o as K,a as wt,b as zt,a5 as ct,u as V,ed as xn,h as Mn,aR as Xe,ec as $n,a6 as Fe,ea as It,e as Dt,am as Nn,eA as Cn,e6 as He,ef as En,f as lt,eb as Sn,i as zn,_ as Rn}from"./jwt-decode.esm.d4517a10.js";import{T as Tn}from"./TableCard.59f95f8f.js";import{_ as An}from"./TablesTabs.vue_vue_type_script_setup_true_lang.6866fb32.js";import{u as Bn}from"./useTables.4f034cf8.js";import"./AbstraButton.vue_vue_type_script_setup_true_lang.eb8ccb64.js";import"./PhKey.vue.b2c184d1.js";import"./PhPencil.vue.2f2fe576.js";import"./Card.6cfffb80.js";import"./router.424f7da9.js";import"./index.4176fe88.js";import"./tables.1f68ec62.js";import"./record.7f43486c.js";import"./string.0acf5572.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="c388fdf3-64f7-42ff-b400-7a178fc63086",t._sentryDebugIdIdentifier="sentry-dbid-c388fdf3-64f7-42ff-b400-7a178fc63086")}catch{}})();var In={value:()=>{}};function ue(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Rt(n)}function Rt(t){this._=t}function Dn(t,e){return t.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Rt.prototype=ue.prototype={constructor:Rt,on:function(t,e){var n=this._,r=Dn(t+"",n),i,s=-1,o=r.length;if(arguments.length<2){for(;++s<o;)if((i=(t=r[s]).type)&&(i=Pn(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++s<o;)if(i=(t=r[s]).type)n[i]=ye(n[i],t.name,e);else if(e==null)for(i in n)n[i]=ye(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Rt(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,s;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=this._[t],r=0,i=s.length;r<i;++r)s[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,s=r.length;i<s;++i)r[i].value.apply(e,n)}};function Pn(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function ye(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=In,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var jt="http://www.w3.org/1999/xhtml";const we={svg:"http://www.w3.org/2000/svg",xhtml:jt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function qt(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),we.hasOwnProperty(e)?{space:we[e],local:t}:t}function Xn(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===jt&&e.documentElement.namespaceURI===jt?e.createElement(t):e.createElementNS(n,t)}}function Fn(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ye(t){var e=qt(t);return(e.local?Fn:Xn)(e)}function Hn(){}function le(t){return t==null?Hn:function(){return this.querySelector(t)}}function Yn(t){typeof t!="function"&&(t=le(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var s=e[i],o=s.length,a=r[i]=new Array(o),u,l,h=0;h<o;++h)(u=s[h])&&(l=t.call(u,u.__data__,h,s))&&("__data__"in u&&(l.__data__=u.__data__),a[h]=l);return new q(r,this._parents)}function Ln(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Vn(){return[]}function Le(t){return t==null?Vn:function(){return this.querySelectorAll(t)}}function qn(t){return function(){return Ln(t.apply(this,arguments))}}function On(t){typeof t=="function"?t=qn(t):t=Le(t);for(var e=this._groups,n=e.length,r=[],i=[],s=0;s<n;++s)for(var o=e[s],a=o.length,u,l=0;l<a;++l)(u=o[l])&&(r.push(t.call(u,u.__data__,l,o)),i.push(u));return new q(r,i)}function Ve(t){return function(){return this.matches(t)}}function qe(t){return function(e){return e.matches(t)}}var Kn=Array.prototype.find;function Gn(t){return function(){return Kn.call(this.children,t)}}function Un(){return this.firstElementChild}function Wn(t){return this.select(t==null?Un:Gn(typeof t=="function"?t:qe(t)))}var Qn=Array.prototype.filter;function Zn(){return Array.from(this.children)}function Jn(t){return function(){return Qn.call(this.children,t)}}function jn(t){return this.selectAll(t==null?Zn:Jn(typeof t=="function"?t:qe(t)))}function tr(t){typeof t!="function"&&(t=Ve(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var s=e[i],o=s.length,a=r[i]=[],u,l=0;l<o;++l)(u=s[l])&&t.call(u,u.__data__,l,s)&&a.push(u);return new q(r,this._parents)}function Oe(t){return new Array(t.length)}function er(){return new q(this._enter||this._groups.map(Oe),this._parents)}function Pt(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Pt.prototype={constructor:Pt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function nr(t){return function(){return t}}function rr(t,e,n,r,i,s){for(var o=0,a,u=e.length,l=s.length;o<l;++o)(a=e[o])?(a.__data__=s[o],r[o]=a):n[o]=new Pt(t,s[o]);for(;o<u;++o)(a=e[o])&&(i[o]=a)}function ir(t,e,n,r,i,s,o){var a,u,l=new Map,h=e.length,f=s.length,p=new Array(h),y;for(a=0;a<h;++a)(u=e[a])&&(p[a]=y=o.call(u,u.__data__,a,e)+"",l.has(y)?i[a]=u:l.set(y,u));for(a=0;a<f;++a)y=o.call(t,s[a],a,s)+"",(u=l.get(y))?(r[a]=u,u.__data__=s[a],l.delete(y)):n[a]=new Pt(t,s[a]);for(a=0;a<h;++a)(u=e[a])&&l.get(p[a])===u&&(i[a]=u)}function or(t){return t.__data__}function sr(t,e){if(!arguments.length)return Array.from(this,or);var n=e?ir:rr,r=this._parents,i=this._groups;typeof t!="function"&&(t=nr(t));for(var s=i.length,o=new Array(s),a=new Array(s),u=new Array(s),l=0;l<s;++l){var h=r[l],f=i[l],p=f.length,y=ar(t.call(h,h&&h.__data__,l,r)),C=y.length,E=a[l]=new Array(C),R=o[l]=new Array(C),k=u[l]=new Array(p);n(h,f,E,R,k,y,e);for(var D=0,z=0,T,M;D<C;++D)if(T=E[D]){for(D>=z&&(z=D+1);!(M=R[z])&&++z<C;);T._next=M||null}}return o=new q(o,r),o._enter=a,o._exit=u,o}function ar(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function ur(){return new q(this._exit||this._groups.map(Oe),this._parents)}function lr(t,e,n){var r=this.enter(),i=this,s=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?s.remove():n(s),r&&i?r.merge(i).order():i}function cr(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,s=r.length,o=Math.min(i,s),a=new Array(i),u=0;u<o;++u)for(var l=n[u],h=r[u],f=l.length,p=a[u]=new Array(f),y,C=0;C<f;++C)(y=l[C]||h[C])&&(p[C]=y);for(;u<i;++u)a[u]=n[u];return new q(a,this._parents)}function hr(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,s=r[i],o;--i>=0;)(o=r[i])&&(s&&o.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(o,s),s=o);return this}function fr(t){t||(t=dr);function e(f,p){return f&&p?t(f.__data__,p.__data__):!f-!p}for(var n=this._groups,r=n.length,i=new Array(r),s=0;s<r;++s){for(var o=n[s],a=o.length,u=i[s]=new Array(a),l,h=0;h<a;++h)(l=o[h])&&(u[h]=l);u.sort(e)}return new q(i,this._parents).order()}function dr(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function mr(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function gr(){return Array.from(this)}function pr(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,s=r.length;i<s;++i){var o=r[i];if(o)return o}return null}function vr(){let t=0;for(const e of this)++t;return t}function yr(){return!this.node()}function wr(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],s=0,o=i.length,a;s<o;++s)(a=i[s])&&t.call(a,a.__data__,s,i);return this}function _r(t){return function(){this.removeAttribute(t)}}function kr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function br(t,e){return function(){this.setAttribute(t,e)}}function xr(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Mr(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function $r(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Nr(t,e){var n=qt(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?kr:_r:typeof e=="function"?n.local?$r:Mr:n.local?xr:br)(n,e))}function Ke(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Cr(t){return function(){this.style.removeProperty(t)}}function Er(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Sr(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function zr(t,e,n){return arguments.length>1?this.each((e==null?Cr:typeof e=="function"?Sr:Er)(t,e,n==null?"":n)):ft(this.node(),t)}function ft(t,e){return t.style.getPropertyValue(e)||Ke(t).getComputedStyle(t,null).getPropertyValue(e)}function Rr(t){return function(){delete this[t]}}function Tr(t,e){return function(){this[t]=e}}function Ar(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Br(t,e){return arguments.length>1?this.each((e==null?Rr:typeof e=="function"?Ar:Tr)(t,e)):this.node()[t]}function Ge(t){return t.trim().split(/^|\s+/)}function ce(t){return t.classList||new Ue(t)}function Ue(t){this._node=t,this._names=Ge(t.getAttribute("class")||"")}Ue.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function We(t,e){for(var n=ce(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function Qe(t,e){for(var n=ce(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function Ir(t){return function(){We(this,t)}}function Dr(t){return function(){Qe(this,t)}}function Pr(t,e){return function(){(e.apply(this,arguments)?We:Qe)(this,t)}}function Xr(t,e){var n=Ge(t+"");if(arguments.length<2){for(var r=ce(this.node()),i=-1,s=n.length;++i<s;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?Pr:e?Ir:Dr)(n,e))}function Fr(){this.textContent=""}function Hr(t){return function(){this.textContent=t}}function Yr(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function Lr(t){return arguments.length?this.each(t==null?Fr:(typeof t=="function"?Yr:Hr)(t)):this.node().textContent}function Vr(){this.innerHTML=""}function qr(t){return function(){this.innerHTML=t}}function Or(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function Kr(t){return arguments.length?this.each(t==null?Vr:(typeof t=="function"?Or:qr)(t)):this.node().innerHTML}function Gr(){this.nextSibling&&this.parentNode.appendChild(this)}function Ur(){return this.each(Gr)}function Wr(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Qr(){return this.each(Wr)}function Zr(t){var e=typeof t=="function"?t:Ye(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Jr(){return null}function jr(t,e){var n=typeof t=="function"?t:Ye(t),r=e==null?Jr:typeof e=="function"?e:le(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function ti(){var t=this.parentNode;t&&t.removeChild(this)}function ei(){return this.each(ti)}function ni(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ri(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ii(t){return this.select(t?ri:ni)}function oi(t){return arguments.length?this.property("__data__",t):this.node().__data__}function si(t){return function(e){t.call(this,e,this.__data__)}}function ai(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function ui(t){return function(){var e=this.__on;if(!!e){for(var n=0,r=-1,i=e.length,s;n<i;++n)s=e[n],(!t.type||s.type===t.type)&&s.name===t.name?this.removeEventListener(s.type,s.listener,s.options):e[++r]=s;++r?e.length=r:delete this.__on}}}function li(t,e,n){return function(){var r=this.__on,i,s=si(e);if(r){for(var o=0,a=r.length;o<a;++o)if((i=r[o]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=s,i.options=n),i.value=e;return}}this.addEventListener(t.type,s,n),i={type:t.type,name:t.name,value:e,listener:s,options:n},r?r.push(i):this.__on=[i]}}function ci(t,e,n){var r=ai(t+""),i,s=r.length,o;if(arguments.length<2){var a=this.node().__on;if(a){for(var u=0,l=a.length,h;u<l;++u)for(i=0,h=a[u];i<s;++i)if((o=r[i]).type===h.type&&o.name===h.name)return h.value}return}for(a=e?li:ui,i=0;i<s;++i)this.each(a(r[i],e,n));return this}function Ze(t,e,n){var r=Ke(t),i=r.CustomEvent;typeof i=="function"?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function hi(t,e){return function(){return Ze(this,t,e)}}function fi(t,e){return function(){return Ze(this,t,e.apply(this,arguments))}}function di(t,e){return this.each((typeof e=="function"?fi:hi)(t,e))}function*mi(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,s=r.length,o;i<s;++i)(o=r[i])&&(yield o)}var Je=[null];function q(t,e){this._groups=t,this._parents=e}function Mt(){return new q([[document.documentElement]],Je)}function gi(){return this}q.prototype=Mt.prototype={constructor:q,select:Yn,selectAll:On,selectChild:Wn,selectChildren:jn,filter:tr,data:sr,enter:er,exit:ur,join:lr,merge:cr,selection:gi,order:hr,sort:fr,call:mr,nodes:gr,node:pr,size:vr,empty:yr,each:wr,attr:Nr,style:zr,property:Br,classed:Xr,text:Lr,html:Kr,raise:Ur,lower:Qr,append:Zr,insert:jr,remove:ei,clone:ii,datum:oi,on:ci,dispatch:di,[Symbol.iterator]:mi};function ot(t){return typeof t=="string"?new q([[document.querySelector(t)]],[document.documentElement]):new q([[t]],Je)}function pi(t){let e;for(;e=t.sourceEvent;)t=e;return t}function rt(t,e){if(t=pi(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}const te={capture:!0,passive:!1};function ee(t){t.preventDefault(),t.stopImmediatePropagation()}function vi(t){var e=t.document.documentElement,n=ot(t).on("dragstart.drag",ee,te);"onselectstart"in e?n.on("selectstart.drag",ee,te):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function yi(t,e){var n=t.document.documentElement,r=ot(t).on("dragstart.drag",null);e&&(r.on("click.drag",ee,te),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function he(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function je(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function $t(){}var _t=.7,Xt=1/_t,ht="\\s*([+-]?\\d+)\\s*",kt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",W="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",wi=/^#([0-9a-f]{3,8})$/,_i=new RegExp(`^rgb\\(${ht},${ht},${ht}\\)$`),ki=new RegExp(`^rgb\\(${W},${W},${W}\\)$`),bi=new RegExp(`^rgba\\(${ht},${ht},${ht},${kt}\\)$`),xi=new RegExp(`^rgba\\(${W},${W},${W},${kt}\\)$`),Mi=new RegExp(`^hsl\\(${kt},${W},${W}\\)$`),$i=new RegExp(`^hsla\\(${kt},${W},${W},${kt}\\)$`),_e={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};he($t,bt,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:ke,formatHex:ke,formatHex8:Ni,formatHsl:Ci,formatRgb:be,toString:be});function ke(){return this.rgb().formatHex()}function Ni(){return this.rgb().formatHex8()}function Ci(){return tn(this).formatHsl()}function be(){return this.rgb().formatRgb()}function bt(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=wi.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?xe(e):n===3?new L(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?Nt(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?Nt(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=_i.exec(t))?new L(e[1],e[2],e[3],1):(e=ki.exec(t))?new L(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=bi.exec(t))?Nt(e[1],e[2],e[3],e[4]):(e=xi.exec(t))?Nt(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Mi.exec(t))?Ne(e[1],e[2]/100,e[3]/100,1):(e=$i.exec(t))?Ne(e[1],e[2]/100,e[3]/100,e[4]):_e.hasOwnProperty(t)?xe(_e[t]):t==="transparent"?new L(NaN,NaN,NaN,0):null}function xe(t){return new L(t>>16&255,t>>8&255,t&255,1)}function Nt(t,e,n,r){return r<=0&&(t=e=n=NaN),new L(t,e,n,r)}function Ei(t){return t instanceof $t||(t=bt(t)),t?(t=t.rgb(),new L(t.r,t.g,t.b,t.opacity)):new L}function ne(t,e,n,r){return arguments.length===1?Ei(t):new L(t,e,n,r==null?1:r)}function L(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}he(L,ne,je($t,{brighter(t){return t=t==null?Xt:Math.pow(Xt,t),new L(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?_t:Math.pow(_t,t),new L(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new L(at(this.r),at(this.g),at(this.b),Ft(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Me,formatHex:Me,formatHex8:Si,formatRgb:$e,toString:$e}));function Me(){return`#${st(this.r)}${st(this.g)}${st(this.b)}`}function Si(){return`#${st(this.r)}${st(this.g)}${st(this.b)}${st((isNaN(this.opacity)?1:this.opacity)*255)}`}function $e(){const t=Ft(this.opacity);return`${t===1?"rgb(":"rgba("}${at(this.r)}, ${at(this.g)}, ${at(this.b)}${t===1?")":`, ${t})`}`}function Ft(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function at(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function st(t){return t=at(t),(t<16?"0":"")+t.toString(16)}function Ne(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new G(t,e,n,r)}function tn(t){if(t instanceof G)return new G(t.h,t.s,t.l,t.opacity);if(t instanceof $t||(t=bt(t)),!t)return new G;if(t instanceof G)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),s=Math.max(e,n,r),o=NaN,a=s-i,u=(s+i)/2;return a?(e===s?o=(n-r)/a+(n<r)*6:n===s?o=(r-e)/a+2:o=(e-n)/a+4,a/=u<.5?s+i:2-s-i,o*=60):a=u>0&&u<1?0:o,new G(o,a,u,t.opacity)}function zi(t,e,n,r){return arguments.length===1?tn(t):new G(t,e,n,r==null?1:r)}function G(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}he(G,zi,je($t,{brighter(t){return t=t==null?Xt:Math.pow(Xt,t),new G(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?_t:Math.pow(_t,t),new G(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new L(Ut(t>=240?t-240:t+120,i,r),Ut(t,i,r),Ut(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new G(Ce(this.h),Ct(this.s),Ct(this.l),Ft(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Ft(this.opacity);return`${t===1?"hsl(":"hsla("}${Ce(this.h)}, ${Ct(this.s)*100}%, ${Ct(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Ce(t){return t=(t||0)%360,t<0?t+360:t}function Ct(t){return Math.max(0,Math.min(1,t||0))}function Ut(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const en=t=>()=>t;function Ri(t,e){return function(n){return t+n*e}}function Ti(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function Ai(t){return(t=+t)==1?nn:function(e,n){return n-e?Ti(e,n,t):en(isNaN(e)?n:e)}}function nn(t,e){var n=e-t;return n?Ri(t,n):en(isNaN(t)?e:t)}const Ee=function t(e){var n=Ai(e);function r(i,s){var o=n((i=ne(i)).r,(s=ne(s)).r),a=n(i.g,s.g),u=n(i.b,s.b),l=nn(i.opacity,s.opacity);return function(h){return i.r=o(h),i.g=a(h),i.b=u(h),i.opacity=l(h),i+""}}return r.gamma=t,r}(1);function it(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var re=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Wt=new RegExp(re.source,"g");function Bi(t){return function(){return t}}function Ii(t){return function(e){return t(e)+""}}function Di(t,e){var n=re.lastIndex=Wt.lastIndex=0,r,i,s,o=-1,a=[],u=[];for(t=t+"",e=e+"";(r=re.exec(t))&&(i=Wt.exec(e));)(s=i.index)>n&&(s=e.slice(n,s),a[o]?a[o]+=s:a[++o]=s),(r=r[0])===(i=i[0])?a[o]?a[o]+=i:a[++o]=i:(a[++o]=null,u.push({i:o,x:it(r,i)})),n=Wt.lastIndex;return n<e.length&&(s=e.slice(n),a[o]?a[o]+=s:a[++o]=s),a.length<2?u[0]?Ii(u[0].x):Bi(e):(e=u.length,function(l){for(var h=0,f;h<e;++h)a[(f=u[h]).i]=f.x(l);return a.join("")})}var Se=180/Math.PI,ie={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function rn(t,e,n,r,i,s){var o,a,u;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,u/=a),t*r<e*n&&(t=-t,e=-e,u=-u,o=-o),{translateX:i,translateY:s,rotate:Math.atan2(e,t)*Se,skewX:Math.atan(u)*Se,scaleX:o,scaleY:a}}var Et;function Pi(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?ie:rn(e.a,e.b,e.c,e.d,e.e,e.f)}function Xi(t){return t==null||(Et||(Et=document.createElementNS("http://www.w3.org/2000/svg","g")),Et.setAttribute("transform",t),!(t=Et.transform.baseVal.consolidate()))?ie:(t=t.matrix,rn(t.a,t.b,t.c,t.d,t.e,t.f))}function on(t,e,n,r){function i(l){return l.length?l.pop()+" ":""}function s(l,h,f,p,y,C){if(l!==f||h!==p){var E=y.push("translate(",null,e,null,n);C.push({i:E-4,x:it(l,f)},{i:E-2,x:it(h,p)})}else(f||p)&&y.push("translate("+f+e+p+n)}function o(l,h,f,p){l!==h?(l-h>180?h+=360:h-l>180&&(l+=360),p.push({i:f.push(i(f)+"rotate(",null,r)-2,x:it(l,h)})):h&&f.push(i(f)+"rotate("+h+r)}function a(l,h,f,p){l!==h?p.push({i:f.push(i(f)+"skewX(",null,r)-2,x:it(l,h)}):h&&f.push(i(f)+"skewX("+h+r)}function u(l,h,f,p,y,C){if(l!==f||h!==p){var E=y.push(i(y)+"scale(",null,",",null,")");C.push({i:E-4,x:it(l,f)},{i:E-2,x:it(h,p)})}else(f!==1||p!==1)&&y.push(i(y)+"scale("+f+","+p+")")}return function(l,h){var f=[],p=[];return l=t(l),h=t(h),s(l.translateX,l.translateY,h.translateX,h.translateY,f,p),o(l.rotate,h.rotate,f,p),a(l.skewX,h.skewX,f,p),u(l.scaleX,l.scaleY,h.scaleX,h.scaleY,f,p),l=h=null,function(y){for(var C=-1,E=p.length,R;++C<E;)f[(R=p[C]).i]=R.x(y);return f.join("")}}}var Fi=on(Pi,"px, ","px)","deg)"),Hi=on(Xi,", ",")",")"),Yi=1e-12;function ze(t){return((t=Math.exp(t))+1/t)/2}function Li(t){return((t=Math.exp(t))-1/t)/2}function Vi(t){return((t=Math.exp(2*t))-1)/(t+1)}const qi=function t(e,n,r){function i(s,o){var a=s[0],u=s[1],l=s[2],h=o[0],f=o[1],p=o[2],y=h-a,C=f-u,E=y*y+C*C,R,k;if(E<Yi)k=Math.log(p/l)/e,R=function(x){return[a+x*y,u+x*C,l*Math.exp(e*x*k)]};else{var D=Math.sqrt(E),z=(p*p-l*l+r*E)/(2*l*n*D),T=(p*p-l*l-r*E)/(2*p*n*D),M=Math.log(Math.sqrt(z*z+1)-z),$=Math.log(Math.sqrt(T*T+1)-T);k=($-M)/e,R=function(x){var b=x*k,A=ze(M),S=l/(n*D)*(A*Vi(e*b+M)-Li(M));return[a+S*y,u+S*C,l*A/ze(e*b+M)]}}return R.duration=k*1e3*e/Math.SQRT2,R}return i.rho=function(s){var o=Math.max(.001,+s),a=o*o,u=a*a;return t(o,a,u)},i}(Math.SQRT2,2,4);var dt=0,vt=0,gt=0,sn=1e3,Ht,yt,Yt=0,ut=0,Ot=0,xt=typeof performance=="object"&&performance.now?performance:Date,an=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function fe(){return ut||(an(Oi),ut=xt.now()+Ot)}function Oi(){ut=0}function Lt(){this._call=this._time=this._next=null}Lt.prototype=un.prototype={constructor:Lt,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?fe():+n)+(e==null?0:+e),!this._next&&yt!==this&&(yt?yt._next=this:Ht=this,yt=this),this._call=t,this._time=n,oe()},stop:function(){this._call&&(this._call=null,this._time=1/0,oe())}};function un(t,e,n){var r=new Lt;return r.restart(t,e,n),r}function Ki(){fe(),++dt;for(var t=Ht,e;t;)(e=ut-t._time)>=0&&t._call.call(void 0,e),t=t._next;--dt}function Re(){ut=(Yt=xt.now())+Ot,dt=vt=0;try{Ki()}finally{dt=0,Ui(),ut=0}}function Gi(){var t=xt.now(),e=t-Yt;e>sn&&(Ot-=e,Yt=t)}function Ui(){for(var t,e=Ht,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Ht=n);yt=t,oe(r)}function oe(t){if(!dt){vt&&(vt=clearTimeout(vt));var e=t-ut;e>24?(t<1/0&&(vt=setTimeout(Re,t-xt.now()-Ot)),gt&&(gt=clearInterval(gt))):(gt||(Yt=xt.now(),gt=setInterval(Gi,sn)),dt=1,an(Re))}}function Te(t,e,n){var r=new Lt;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var Wi=ue("start","end","cancel","interrupt"),Qi=[],ln=0,Ae=1,se=2,Tt=3,Be=4,ae=5,At=6;function Kt(t,e,n,r,i,s){var o=t.__transition;if(!o)t.__transition={};else if(n in o)return;Zi(t,n,{name:e,index:r,group:i,on:Wi,tween:Qi,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:ln})}function de(t,e){var n=U(t,e);if(n.state>ln)throw new Error("too late; already scheduled");return n}function Q(t,e){var n=U(t,e);if(n.state>Tt)throw new Error("too late; already running");return n}function U(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Zi(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=un(s,0,n.time);function s(l){n.state=Ae,n.timer.restart(o,n.delay,n.time),n.delay<=l&&o(l-n.delay)}function o(l){var h,f,p,y;if(n.state!==Ae)return u();for(h in r)if(y=r[h],y.name===n.name){if(y.state===Tt)return Te(o);y.state===Be?(y.state=At,y.timer.stop(),y.on.call("interrupt",t,t.__data__,y.index,y.group),delete r[h]):+h<e&&(y.state=At,y.timer.stop(),y.on.call("cancel",t,t.__data__,y.index,y.group),delete r[h])}if(Te(function(){n.state===Tt&&(n.state=Be,n.timer.restart(a,n.delay,n.time),a(l))}),n.state=se,n.on.call("start",t,t.__data__,n.index,n.group),n.state===se){for(n.state=Tt,i=new Array(p=n.tween.length),h=0,f=-1;h<p;++h)(y=n.tween[h].value.call(t,t.__data__,n.index,n.group))&&(i[++f]=y);i.length=f+1}}function a(l){for(var h=l<n.duration?n.ease.call(null,l/n.duration):(n.timer.restart(u),n.state=ae,1),f=-1,p=i.length;++f<p;)i[f].call(t,h);n.state===ae&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){n.state=At,n.timer.stop(),delete r[e];for(var l in r)return;delete t.__transition}}function Bt(t,e){var n=t.__transition,r,i,s=!0,o;if(!!n){e=e==null?null:e+"";for(o in n){if((r=n[o]).name!==e){s=!1;continue}i=r.state>se&&r.state<ae,r.state=At,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[o]}s&&delete t.__transition}}function Ji(t){return this.each(function(){Bt(this,t)})}function ji(t,e){var n,r;return function(){var i=Q(this,t),s=i.tween;if(s!==n){r=n=s;for(var o=0,a=r.length;o<a;++o)if(r[o].name===e){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function to(t,e,n){var r,i;if(typeof n!="function")throw new Error;return function(){var s=Q(this,t),o=s.tween;if(o!==r){i=(r=o).slice();for(var a={name:e,value:n},u=0,l=i.length;u<l;++u)if(i[u].name===e){i[u]=a;break}u===l&&i.push(a)}s.tween=i}}function eo(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=U(this.node(),n).tween,i=0,s=r.length,o;i<s;++i)if((o=r[i]).name===t)return o.value;return null}return this.each((e==null?ji:to)(n,t,e))}function me(t,e,n){var r=t._id;return t.each(function(){var i=Q(this,r);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return U(i,r).value[e]}}function cn(t,e){var n;return(typeof e=="number"?it:e instanceof bt?Ee:(n=bt(e))?(e=n,Ee):Di)(t,e)}function no(t){return function(){this.removeAttribute(t)}}function ro(t){return function(){this.removeAttributeNS(t.space,t.local)}}function io(t,e,n){var r,i=n+"",s;return function(){var o=this.getAttribute(t);return o===i?null:o===r?s:s=e(r=o,n)}}function oo(t,e,n){var r,i=n+"",s;return function(){var o=this.getAttributeNS(t.space,t.local);return o===i?null:o===r?s:s=e(r=o,n)}}function so(t,e,n){var r,i,s;return function(){var o,a=n(this),u;return a==null?void this.removeAttribute(t):(o=this.getAttribute(t),u=a+"",o===u?null:o===r&&u===i?s:(i=u,s=e(r=o,a)))}}function ao(t,e,n){var r,i,s;return function(){var o,a=n(this),u;return a==null?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local),u=a+"",o===u?null:o===r&&u===i?s:(i=u,s=e(r=o,a)))}}function uo(t,e){var n=qt(t),r=n==="transform"?Hi:cn;return this.attrTween(t,typeof e=="function"?(n.local?ao:so)(n,r,me(this,"attr."+t,e)):e==null?(n.local?ro:no)(n):(n.local?oo:io)(n,r,e))}function lo(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function co(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function ho(t,e){var n,r;function i(){var s=e.apply(this,arguments);return s!==r&&(n=(r=s)&&co(t,s)),n}return i._value=e,i}function fo(t,e){var n,r;function i(){var s=e.apply(this,arguments);return s!==r&&(n=(r=s)&&lo(t,s)),n}return i._value=e,i}function mo(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=qt(t);return this.tween(n,(r.local?ho:fo)(r,e))}function go(t,e){return function(){de(this,t).delay=+e.apply(this,arguments)}}function po(t,e){return e=+e,function(){de(this,t).delay=e}}function vo(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?go:po)(e,t)):U(this.node(),e).delay}function yo(t,e){return function(){Q(this,t).duration=+e.apply(this,arguments)}}function wo(t,e){return e=+e,function(){Q(this,t).duration=e}}function _o(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?yo:wo)(e,t)):U(this.node(),e).duration}function ko(t,e){if(typeof e!="function")throw new Error;return function(){Q(this,t).ease=e}}function bo(t){var e=this._id;return arguments.length?this.each(ko(e,t)):U(this.node(),e).ease}function xo(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;Q(this,t).ease=n}}function Mo(t){if(typeof t!="function")throw new Error;return this.each(xo(this._id,t))}function $o(t){typeof t!="function"&&(t=Ve(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var s=e[i],o=s.length,a=r[i]=[],u,l=0;l<o;++l)(u=s[l])&&t.call(u,u.__data__,l,s)&&a.push(u);return new nt(r,this._parents,this._name,this._id)}function No(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,s=Math.min(r,i),o=new Array(r),a=0;a<s;++a)for(var u=e[a],l=n[a],h=u.length,f=o[a]=new Array(h),p,y=0;y<h;++y)(p=u[y]||l[y])&&(f[y]=p);for(;a<r;++a)o[a]=e[a];return new nt(o,this._parents,this._name,this._id)}function Co(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function Eo(t,e,n){var r,i,s=Co(e)?de:Q;return function(){var o=s(this,t),a=o.on;a!==r&&(i=(r=a).copy()).on(e,n),o.on=i}}function So(t,e){var n=this._id;return arguments.length<2?U(this.node(),n).on.on(t):this.each(Eo(n,t,e))}function zo(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function Ro(){return this.on("end.remove",zo(this._id))}function To(t){var e=this._name,n=this._id;typeof t!="function"&&(t=le(t));for(var r=this._groups,i=r.length,s=new Array(i),o=0;o<i;++o)for(var a=r[o],u=a.length,l=s[o]=new Array(u),h,f,p=0;p<u;++p)(h=a[p])&&(f=t.call(h,h.__data__,p,a))&&("__data__"in h&&(f.__data__=h.__data__),l[p]=f,Kt(l[p],e,n,p,l,U(h,n)));return new nt(s,this._parents,e,n)}function Ao(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Le(t));for(var r=this._groups,i=r.length,s=[],o=[],a=0;a<i;++a)for(var u=r[a],l=u.length,h,f=0;f<l;++f)if(h=u[f]){for(var p=t.call(h,h.__data__,f,u),y,C=U(h,n),E=0,R=p.length;E<R;++E)(y=p[E])&&Kt(y,e,n,E,p,C);s.push(p),o.push(h)}return new nt(s,o,e,n)}var Bo=Mt.prototype.constructor;function Io(){return new Bo(this._groups,this._parents)}function Do(t,e){var n,r,i;return function(){var s=ft(this,t),o=(this.style.removeProperty(t),ft(this,t));return s===o?null:s===n&&o===r?i:i=e(n=s,r=o)}}function hn(t){return function(){this.style.removeProperty(t)}}function Po(t,e,n){var r,i=n+"",s;return function(){var o=ft(this,t);return o===i?null:o===r?s:s=e(r=o,n)}}function Xo(t,e,n){var r,i,s;return function(){var o=ft(this,t),a=n(this),u=a+"";return a==null&&(u=a=(this.style.removeProperty(t),ft(this,t))),o===u?null:o===r&&u===i?s:(i=u,s=e(r=o,a))}}function Fo(t,e){var n,r,i,s="style."+e,o="end."+s,a;return function(){var u=Q(this,t),l=u.on,h=u.value[s]==null?a||(a=hn(e)):void 0;(l!==n||i!==h)&&(r=(n=l).copy()).on(o,i=h),u.on=r}}function Ho(t,e,n){var r=(t+="")=="transform"?Fi:cn;return e==null?this.styleTween(t,Do(t,r)).on("end.style."+t,hn(t)):typeof e=="function"?this.styleTween(t,Xo(t,r,me(this,"style."+t,e))).each(Fo(this._id,t)):this.styleTween(t,Po(t,r,e),n).on("end.style."+t,null)}function Yo(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Lo(t,e,n){var r,i;function s(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&Yo(t,o,n)),r}return s._value=e,s}function Vo(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,Lo(t,e,n==null?"":n))}function qo(t){return function(){this.textContent=t}}function Oo(t){return function(){var e=t(this);this.textContent=e==null?"":e}}function Ko(t){return this.tween("text",typeof t=="function"?Oo(me(this,"text",t)):qo(t==null?"":t+""))}function Go(t){return function(e){this.textContent=t.call(this,e)}}function Uo(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&Go(i)),e}return r._value=t,r}function Wo(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Uo(t))}function Qo(){for(var t=this._name,e=this._id,n=fn(),r=this._groups,i=r.length,s=0;s<i;++s)for(var o=r[s],a=o.length,u,l=0;l<a;++l)if(u=o[l]){var h=U(u,e);Kt(u,t,n,l,o,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new nt(r,this._parents,t,n)}function Zo(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(s,o){var a={value:o},u={value:function(){--i===0&&s()}};n.each(function(){var l=Q(this,r),h=l.on;h!==t&&(e=(t=h).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(u)),l.on=e}),i===0&&s()})}var Jo=0;function nt(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function fn(){return++Jo}var tt=Mt.prototype;nt.prototype={constructor:nt,select:To,selectAll:Ao,selectChild:tt.selectChild,selectChildren:tt.selectChildren,filter:$o,merge:No,selection:Io,transition:Qo,call:tt.call,nodes:tt.nodes,node:tt.node,size:tt.size,empty:tt.empty,each:tt.each,on:So,attr:uo,attrTween:mo,style:Ho,styleTween:Vo,text:Ko,textTween:Wo,remove:Ro,tween:eo,delay:vo,duration:_o,ease:bo,easeVarying:Mo,end:Zo,[Symbol.iterator]:tt[Symbol.iterator]};function jo(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var ts={time:null,delay:0,duration:250,ease:jo};function es(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function ns(t){var e,n;t instanceof nt?(e=t._id,t=t._name):(e=fn(),(n=ts).time=fe(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,s=0;s<i;++s)for(var o=r[s],a=o.length,u,l=0;l<a;++l)(u=o[l])&&Kt(u,t,e,l,o,n||es(u,e));return new nt(r,this._parents,t,e)}Mt.prototype.interrupt=Ji;Mt.prototype.transition=ns;const St=t=>()=>t;function rs(t,{sourceEvent:e,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function et(t,e,n){this.k=t,this.x=e,this.y=n}et.prototype={constructor:et,scale:function(t){return t===1?this:new et(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new et(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ge=new et(1,0,0);et.prototype;function Qt(t){t.stopImmediatePropagation()}function pt(t){t.preventDefault(),t.stopImmediatePropagation()}function is(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function os(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function Ie(){return this.__zoom||ge}function ss(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function as(){return navigator.maxTouchPoints||"ontouchstart"in this}function us(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],s=t.invertY(e[0][1])-n[0][1],o=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>s?(s+o)/2:Math.min(0,s)||Math.max(0,o))}function ls(){var t=is,e=os,n=us,r=ss,i=as,s=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],a=250,u=qi,l=ue("start","zoom","end"),h,f,p,y=500,C=150,E=0,R=10;function k(c){c.property("__zoom",Ie).on("wheel.zoom",b,{passive:!1}).on("mousedown.zoom",A).on("dblclick.zoom",S).filter(i).on("touchstart.zoom",Z).on("touchmove.zoom",J).on("touchend.zoom touchcancel.zoom",j).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}k.transform=function(c,w,d,_){var g=c.selection?c.selection():c;g.property("__zoom",Ie),c!==g?M(c,w,d,_):g.interrupt().each(function(){$(this,arguments).event(_).start().zoom(null,typeof w=="function"?w.apply(this,arguments):w).end()})},k.scaleBy=function(c,w,d,_){k.scaleTo(c,function(){var g=this.__zoom.k,v=typeof w=="function"?w.apply(this,arguments):w;return g*v},d,_)},k.scaleTo=function(c,w,d,_){k.transform(c,function(){var g=e.apply(this,arguments),v=this.__zoom,m=d==null?T(g):typeof d=="function"?d.apply(this,arguments):d,N=v.invert(m),B=typeof w=="function"?w.apply(this,arguments):w;return n(z(D(v,B),m,N),g,o)},d,_)},k.translateBy=function(c,w,d,_){k.transform(c,function(){return n(this.__zoom.translate(typeof w=="function"?w.apply(this,arguments):w,typeof d=="function"?d.apply(this,arguments):d),e.apply(this,arguments),o)},null,_)},k.translateTo=function(c,w,d,_,g){k.transform(c,function(){var v=e.apply(this,arguments),m=this.__zoom,N=_==null?T(v):typeof _=="function"?_.apply(this,arguments):_;return n(ge.translate(N[0],N[1]).scale(m.k).translate(typeof w=="function"?-w.apply(this,arguments):-w,typeof d=="function"?-d.apply(this,arguments):-d),v,o)},_,g)};function D(c,w){return w=Math.max(s[0],Math.min(s[1],w)),w===c.k?c:new et(w,c.x,c.y)}function z(c,w,d){var _=w[0]-d[0]*c.k,g=w[1]-d[1]*c.k;return _===c.x&&g===c.y?c:new et(c.k,_,g)}function T(c){return[(+c[0][0]+ +c[1][0])/2,(+c[0][1]+ +c[1][1])/2]}function M(c,w,d,_){c.on("start.zoom",function(){$(this,arguments).event(_).start()}).on("interrupt.zoom end.zoom",function(){$(this,arguments).event(_).end()}).tween("zoom",function(){var g=this,v=arguments,m=$(g,v).event(_),N=e.apply(g,v),B=d==null?T(N):typeof d=="function"?d.apply(g,v):d,P=Math.max(N[1][0]-N[0][0],N[1][1]-N[0][1]),I=g.__zoom,X=typeof w=="function"?w.apply(g,v):w,H=u(I.invert(B).concat(P/I.k),X.invert(B).concat(P/X.k));return function(F){if(F===1)F=X;else{var O=H(F),Gt=P/O[2];F=new et(Gt,B[0]-O[0]*Gt,B[1]-O[1]*Gt)}m.zoom(null,F)}})}function $(c,w,d){return!d&&c.__zooming||new x(c,w)}function x(c,w){this.that=c,this.args=w,this.active=0,this.sourceEvent=null,this.extent=e.apply(c,w),this.taps=0}x.prototype={event:function(c){return c&&(this.sourceEvent=c),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(c,w){return this.mouse&&c!=="mouse"&&(this.mouse[1]=w.invert(this.mouse[0])),this.touch0&&c!=="touch"&&(this.touch0[1]=w.invert(this.touch0[0])),this.touch1&&c!=="touch"&&(this.touch1[1]=w.invert(this.touch1[0])),this.that.__zoom=w,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(c){var w=ot(this.that).datum();l.call(c,this.that,new rs(c,{sourceEvent:this.sourceEvent,target:k,type:c,transform:this.that.__zoom,dispatch:l}),w)}};function b(c,...w){if(!t.apply(this,arguments))return;var d=$(this,w).event(c),_=this.__zoom,g=Math.max(s[0],Math.min(s[1],_.k*Math.pow(2,r.apply(this,arguments)))),v=rt(c);if(d.wheel)(d.mouse[0][0]!==v[0]||d.mouse[0][1]!==v[1])&&(d.mouse[1]=_.invert(d.mouse[0]=v)),clearTimeout(d.wheel);else{if(_.k===g)return;d.mouse=[v,_.invert(v)],Bt(this),d.start()}pt(c),d.wheel=setTimeout(m,C),d.zoom("mouse",n(z(D(_,g),d.mouse[0],d.mouse[1]),d.extent,o));function m(){d.wheel=null,d.end()}}function A(c,...w){if(p||!t.apply(this,arguments))return;var d=c.currentTarget,_=$(this,w,!0).event(c),g=ot(c.view).on("mousemove.zoom",B,!0).on("mouseup.zoom",P,!0),v=rt(c,d),m=c.clientX,N=c.clientY;vi(c.view),Qt(c),_.mouse=[v,this.__zoom.invert(v)],Bt(this),_.start();function B(I){if(pt(I),!_.moved){var X=I.clientX-m,H=I.clientY-N;_.moved=X*X+H*H>E}_.event(I).zoom("mouse",n(z(_.that.__zoom,_.mouse[0]=rt(I,d),_.mouse[1]),_.extent,o))}function P(I){g.on("mousemove.zoom mouseup.zoom",null),yi(I.view,_.moved),pt(I),_.event(I).end()}}function S(c,...w){if(!!t.apply(this,arguments)){var d=this.__zoom,_=rt(c.changedTouches?c.changedTouches[0]:c,this),g=d.invert(_),v=d.k*(c.shiftKey?.5:2),m=n(z(D(d,v),_,g),e.apply(this,w),o);pt(c),a>0?ot(this).transition().duration(a).call(M,m,_,c):ot(this).call(k.transform,m,_,c)}}function Z(c,...w){if(!!t.apply(this,arguments)){var d=c.touches,_=d.length,g=$(this,w,c.changedTouches.length===_).event(c),v,m,N,B;for(Qt(c),m=0;m<_;++m)N=d[m],B=rt(N,this),B=[B,this.__zoom.invert(B),N.identifier],g.touch0?!g.touch1&&g.touch0[2]!==B[2]&&(g.touch1=B,g.taps=0):(g.touch0=B,v=!0,g.taps=1+!!h);h&&(h=clearTimeout(h)),v&&(g.taps<2&&(f=B[0],h=setTimeout(function(){h=null},y)),Bt(this),g.start())}}function J(c,...w){if(!!this.__zooming){var d=$(this,w).event(c),_=c.changedTouches,g=_.length,v,m,N,B;for(pt(c),v=0;v<g;++v)m=_[v],N=rt(m,this),d.touch0&&d.touch0[2]===m.identifier?d.touch0[0]=N:d.touch1&&d.touch1[2]===m.identifier&&(d.touch1[0]=N);if(m=d.that.__zoom,d.touch1){var P=d.touch0[0],I=d.touch0[1],X=d.touch1[0],H=d.touch1[1],F=(F=X[0]-P[0])*F+(F=X[1]-P[1])*F,O=(O=H[0]-I[0])*O+(O=H[1]-I[1])*O;m=D(m,Math.sqrt(F/O)),N=[(P[0]+X[0])/2,(P[1]+X[1])/2],B=[(I[0]+H[0])/2,(I[1]+H[1])/2]}else if(d.touch0)N=d.touch0[0],B=d.touch0[1];else return;d.zoom("touch",n(z(m,N,B),d.extent,o))}}function j(c,...w){if(!!this.__zooming){var d=$(this,w).event(c),_=c.changedTouches,g=_.length,v,m;for(Qt(c),p&&clearTimeout(p),p=setTimeout(function(){p=null},y),v=0;v<g;++v)m=_[v],d.touch0&&d.touch0[2]===m.identifier?delete d.touch0:d.touch1&&d.touch1[2]===m.identifier&&delete d.touch1;if(d.touch1&&!d.touch0&&(d.touch0=d.touch1,delete d.touch1),d.touch0)d.touch0[1]=this.__zoom.invert(d.touch0[0]);else if(d.end(),d.taps===2&&(m=rt(m,this),Math.hypot(f[0]-m[0],f[1]-m[1])<R)){var N=ot(this).on("dblclick.zoom");N&&N.apply(this,arguments)}}}return k.wheelDelta=function(c){return arguments.length?(r=typeof c=="function"?c:St(+c),k):r},k.filter=function(c){return arguments.length?(t=typeof c=="function"?c:St(!!c),k):t},k.touchable=function(c){return arguments.length?(i=typeof c=="function"?c:St(!!c),k):i},k.extent=function(c){return arguments.length?(e=typeof c=="function"?c:St([[+c[0][0],+c[0][1]],[+c[1][0],+c[1][1]]]),k):e},k.scaleExtent=function(c){return arguments.length?(s[0]=+c[0],s[1]=+c[1],k):[s[0],s[1]]},k.translateExtent=function(c){return arguments.length?(o[0][0]=+c[0][0],o[1][0]=+c[1][0],o[0][1]=+c[0][1],o[1][1]=+c[1][1],k):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},k.constrain=function(c){return arguments.length?(n=c,k):n},k.duration=function(c){return arguments.length?(a=+c,k):a},k.interpolate=function(c){return arguments.length?(u=c,k):u},k.on=function(){var c=l.on.apply(l,arguments);return c===l?k:c},k.clickDistance=function(c){return arguments.length?(E=(c=+c)*c,k):Math.sqrt(E)},k.tapDistance=function(c){return arguments.length?(R=+c,k):R},k}const dn=Symbol("MiniMapSlots"),cs=["id","x","y","rx","ry","width","height","fill","stroke","stroke-width","shape-rendering"],hs={name:"MiniMapNode",compatConfig:{MODE:3}},fs=Vt({...hs,props:{id:{},type:{},selected:{type:Boolean},dragging:{type:Boolean},position:{},dimensions:{},borderRadius:{},color:{},shapeRendering:{},strokeColor:{},strokeWidth:{}},emits:["click","dblclick","mouseenter","mousemove","mouseleave"],setup(t,{emit:e}){const n=t,r=Nn(dn),i=Pe(),s=Jt(()=>{var f;return(f=i.style)!=null?f:{}});function o(f){e("click",f)}function a(f){e("dblclick",f)}function u(f){e("mouseenter",f)}function l(f){e("mousemove",f)}function h(f){e("mouseleave",f)}return(f,p)=>V(r)[`node-${n.type}`]?(K(),wt(En(V(r)[`node-${n.type}`]),Cn(He({key:0},n)),null,16)):(K(),ct("rect",{key:1,id:f.id,class:It(["vue-flow__minimap-node",{selected:f.selected,dragging:f.dragging}]),x:f.position.x,y:f.position.y,rx:f.borderRadius,ry:f.borderRadius,width:f.dimensions.width,height:f.dimensions.height,fill:f.color||s.value.background||s.value.backgroundColor,stroke:f.strokeColor,"stroke-width":f.strokeWidth,"shape-rendering":f.shapeRendering,onClick:o,onDblclick:a,onMouseenter:u,onMousemove:l,onMouseleave:h},null,42,cs))}}),ds=["width","height","viewBox","aria-labelledby"],ms=["id"],gs=["d","fill","stroke","stroke-width"],ps={name:"MiniMap",compatConfig:{MODE:3}},vs=Vt({...ps,props:{nodeColor:{type:[String,Function],default:"#e2e2e2"},nodeStrokeColor:{type:[String,Function],default:"transparent"},nodeClassName:{type:[String,Function]},nodeBorderRadius:{default:5},nodeStrokeWidth:{default:2},maskColor:{default:"rgb(240, 240, 240, 0.6)"},maskStrokeColor:{default:"none"},maskStrokeWidth:{default:1},position:{default:"bottom-right"},pannable:{type:Boolean,default:!1},zoomable:{type:Boolean,default:!1},width:{},height:{},ariaLabel:{default:"Vue Flow mini map"},inversePan:{type:Boolean,default:!1},zoomStep:{default:10},offsetScale:{default:5},maskBorderRadius:{default:0}},emits:["click","nodeClick","nodeDblclick","nodeMouseenter","nodeMousemove","nodeMouseleave"],setup(t,{emit:e}){const n=_n(),r=Pe(),i=200,s=150,{id:o,edges:a,viewport:u,translateExtent:l,dimensions:h,emits:f,d3Selection:p,d3Zoom:y,getNodesInitialized:C}=De(),E=Zt();kn(dn,n);const R=Jt(()=>{var v,m;var g;return(m=(v=t.width)!=null?v:(g=r.style)==null?void 0:g.width)!=null?m:i}),k=Jt(()=>{var v,m;var g;return(m=(v=t.height)!=null?v:(g=r.style)==null?void 0:g.height)!=null?m:s}),D=typeof window>"u"||!!window.chrome?"crispEdges":"geometricPrecision",z=Y(()=>typeof t.nodeColor=="string"?()=>t.nodeColor:t.nodeColor),T=Y(()=>typeof t.nodeStrokeColor=="string"?()=>t.nodeStrokeColor:t.nodeStrokeColor),M=Y(()=>typeof t.nodeClassName=="string"?()=>t.nodeClassName:typeof t.nodeClassName=="function"?t.nodeClassName:()=>""),$=Y(()=>gn(C.value)),x=Y(()=>({x:-u.value.x/u.value.zoom,y:-u.value.y/u.value.zoom,width:h.value.width/u.value.zoom,height:h.value.height/u.value.zoom})),b=Y(()=>C.value&&C.value.length?pn($.value,x.value):x.value),A=Y(()=>{const g=b.value.width/R.value,v=b.value.height/k.value;return Math.max(g,v)}),S=Y(()=>{const g=A.value*R.value,v=A.value*k.value,m=t.offsetScale*A.value;return{offset:m,x:b.value.x-(g-b.value.width)/2-m,y:b.value.y-(v-b.value.height)/2-m,width:g+m*2,height:v+m*2}}),Z=Y(()=>!S.value.x||!S.value.y?"":`
1
+ import{_ as mn,d as pe}from"./vue-flow-background.af096866.js";import{u as De,d as gn,h as pn,_ as vn,i as mt,a as yn,g as ve,e as wn}from"./vue-flow-core.6cb99d32.js";import{d as qt,eM as _n,eR as Pe,r as Qt,a4 as kn,bz as Jt,c as Y,aK as bn,o as K,a as wt,b as zt,a5 as ct,u as q,ed as xn,h as Mn,aR as Xe,ec as $n,a6 as Fe,ea as It,e as Dt,am as Nn,eA as Cn,e6 as He,ef as En,f as lt,eb as Sn,i as zn,_ as Rn}from"./jwt-decode.esm.54a1ea22.js";import{T as Tn}from"./TableCard.c9a1cf41.js";import{_ as An}from"./TablesTabs.vue_vue_type_script_setup_true_lang.cf7e34c5.js";import{u as Bn}from"./useTables.18fc3efd.js";import"./AbstraButton.vue_vue_type_script_setup_true_lang.aefce2d3.js";import"./PhKey.vue.23f3a465.js";import"./PhPencil.vue.feb383e2.js";import"./Card.fc77085c.js";import"./router.4dfadf5d.js";import"./index.c7a996a6.js";import"./tables.1bcb1140.js";import"./record.e83a2eb2.js";import"./string.61e11a30.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="aed3eb36-ceb1-455a-b12b-ea3df940a8e3",t._sentryDebugIdIdentifier="sentry-dbid-aed3eb36-ceb1-455a-b12b-ea3df940a8e3")}catch{}})();var In={value:()=>{}};function ue(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Rt(n)}function Rt(t){this._=t}function Dn(t,e){return t.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Rt.prototype=ue.prototype={constructor:Rt,on:function(t,e){var n=this._,r=Dn(t+"",n),i,s=-1,o=r.length;if(arguments.length<2){for(;++s<o;)if((i=(t=r[s]).type)&&(i=Pn(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++s<o;)if(i=(t=r[s]).type)n[i]=ye(n[i],t.name,e);else if(e==null)for(i in n)n[i]=ye(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Rt(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,s;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=this._[t],r=0,i=s.length;r<i;++r)s[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,s=r.length;i<s;++i)r[i].value.apply(e,n)}};function Pn(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function ye(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=In,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var jt="http://www.w3.org/1999/xhtml";const we={svg:"http://www.w3.org/2000/svg",xhtml:jt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Lt(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),we.hasOwnProperty(e)?{space:we[e],local:t}:t}function Xn(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===jt&&e.documentElement.namespaceURI===jt?e.createElement(t):e.createElementNS(n,t)}}function Fn(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ye(t){var e=Lt(t);return(e.local?Fn:Xn)(e)}function Hn(){}function le(t){return t==null?Hn:function(){return this.querySelector(t)}}function Yn(t){typeof t!="function"&&(t=le(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var s=e[i],o=s.length,a=r[i]=new Array(o),u,l,h=0;h<o;++h)(u=s[h])&&(l=t.call(u,u.__data__,h,s))&&("__data__"in u&&(l.__data__=u.__data__),a[h]=l);return new L(r,this._parents)}function Vn(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function qn(){return[]}function Ve(t){return t==null?qn:function(){return this.querySelectorAll(t)}}function Ln(t){return function(){return Vn(t.apply(this,arguments))}}function On(t){typeof t=="function"?t=Ln(t):t=Ve(t);for(var e=this._groups,n=e.length,r=[],i=[],s=0;s<n;++s)for(var o=e[s],a=o.length,u,l=0;l<a;++l)(u=o[l])&&(r.push(t.call(u,u.__data__,l,o)),i.push(u));return new L(r,i)}function qe(t){return function(){return this.matches(t)}}function Le(t){return function(e){return e.matches(t)}}var Kn=Array.prototype.find;function Gn(t){return function(){return Kn.call(this.children,t)}}function Un(){return this.firstElementChild}function Wn(t){return this.select(t==null?Un:Gn(typeof t=="function"?t:Le(t)))}var Zn=Array.prototype.filter;function Qn(){return Array.from(this.children)}function Jn(t){return function(){return Zn.call(this.children,t)}}function jn(t){return this.selectAll(t==null?Qn:Jn(typeof t=="function"?t:Le(t)))}function tr(t){typeof t!="function"&&(t=qe(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var s=e[i],o=s.length,a=r[i]=[],u,l=0;l<o;++l)(u=s[l])&&t.call(u,u.__data__,l,s)&&a.push(u);return new L(r,this._parents)}function Oe(t){return new Array(t.length)}function er(){return new L(this._enter||this._groups.map(Oe),this._parents)}function Pt(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Pt.prototype={constructor:Pt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function nr(t){return function(){return t}}function rr(t,e,n,r,i,s){for(var o=0,a,u=e.length,l=s.length;o<l;++o)(a=e[o])?(a.__data__=s[o],r[o]=a):n[o]=new Pt(t,s[o]);for(;o<u;++o)(a=e[o])&&(i[o]=a)}function ir(t,e,n,r,i,s,o){var a,u,l=new Map,h=e.length,f=s.length,p=new Array(h),y;for(a=0;a<h;++a)(u=e[a])&&(p[a]=y=o.call(u,u.__data__,a,e)+"",l.has(y)?i[a]=u:l.set(y,u));for(a=0;a<f;++a)y=o.call(t,s[a],a,s)+"",(u=l.get(y))?(r[a]=u,u.__data__=s[a],l.delete(y)):n[a]=new Pt(t,s[a]);for(a=0;a<h;++a)(u=e[a])&&l.get(p[a])===u&&(i[a]=u)}function or(t){return t.__data__}function sr(t,e){if(!arguments.length)return Array.from(this,or);var n=e?ir:rr,r=this._parents,i=this._groups;typeof t!="function"&&(t=nr(t));for(var s=i.length,o=new Array(s),a=new Array(s),u=new Array(s),l=0;l<s;++l){var h=r[l],f=i[l],p=f.length,y=ar(t.call(h,h&&h.__data__,l,r)),C=y.length,E=a[l]=new Array(C),R=o[l]=new Array(C),k=u[l]=new Array(p);n(h,f,E,R,k,y,e);for(var D=0,z=0,T,M;D<C;++D)if(T=E[D]){for(D>=z&&(z=D+1);!(M=R[z])&&++z<C;);T._next=M||null}}return o=new L(o,r),o._enter=a,o._exit=u,o}function ar(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function ur(){return new L(this._exit||this._groups.map(Oe),this._parents)}function lr(t,e,n){var r=this.enter(),i=this,s=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?s.remove():n(s),r&&i?r.merge(i).order():i}function cr(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,s=r.length,o=Math.min(i,s),a=new Array(i),u=0;u<o;++u)for(var l=n[u],h=r[u],f=l.length,p=a[u]=new Array(f),y,C=0;C<f;++C)(y=l[C]||h[C])&&(p[C]=y);for(;u<i;++u)a[u]=n[u];return new L(a,this._parents)}function hr(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,s=r[i],o;--i>=0;)(o=r[i])&&(s&&o.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(o,s),s=o);return this}function fr(t){t||(t=dr);function e(f,p){return f&&p?t(f.__data__,p.__data__):!f-!p}for(var n=this._groups,r=n.length,i=new Array(r),s=0;s<r;++s){for(var o=n[s],a=o.length,u=i[s]=new Array(a),l,h=0;h<a;++h)(l=o[h])&&(u[h]=l);u.sort(e)}return new L(i,this._parents).order()}function dr(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function mr(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function gr(){return Array.from(this)}function pr(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,s=r.length;i<s;++i){var o=r[i];if(o)return o}return null}function vr(){let t=0;for(const e of this)++t;return t}function yr(){return!this.node()}function wr(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],s=0,o=i.length,a;s<o;++s)(a=i[s])&&t.call(a,a.__data__,s,i);return this}function _r(t){return function(){this.removeAttribute(t)}}function kr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function br(t,e){return function(){this.setAttribute(t,e)}}function xr(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Mr(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function $r(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Nr(t,e){var n=Lt(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?kr:_r:typeof e=="function"?n.local?$r:Mr:n.local?xr:br)(n,e))}function Ke(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Cr(t){return function(){this.style.removeProperty(t)}}function Er(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Sr(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function zr(t,e,n){return arguments.length>1?this.each((e==null?Cr:typeof e=="function"?Sr:Er)(t,e,n==null?"":n)):ft(this.node(),t)}function ft(t,e){return t.style.getPropertyValue(e)||Ke(t).getComputedStyle(t,null).getPropertyValue(e)}function Rr(t){return function(){delete this[t]}}function Tr(t,e){return function(){this[t]=e}}function Ar(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Br(t,e){return arguments.length>1?this.each((e==null?Rr:typeof e=="function"?Ar:Tr)(t,e)):this.node()[t]}function Ge(t){return t.trim().split(/^|\s+/)}function ce(t){return t.classList||new Ue(t)}function Ue(t){this._node=t,this._names=Ge(t.getAttribute("class")||"")}Ue.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function We(t,e){for(var n=ce(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function Ze(t,e){for(var n=ce(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function Ir(t){return function(){We(this,t)}}function Dr(t){return function(){Ze(this,t)}}function Pr(t,e){return function(){(e.apply(this,arguments)?We:Ze)(this,t)}}function Xr(t,e){var n=Ge(t+"");if(arguments.length<2){for(var r=ce(this.node()),i=-1,s=n.length;++i<s;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?Pr:e?Ir:Dr)(n,e))}function Fr(){this.textContent=""}function Hr(t){return function(){this.textContent=t}}function Yr(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function Vr(t){return arguments.length?this.each(t==null?Fr:(typeof t=="function"?Yr:Hr)(t)):this.node().textContent}function qr(){this.innerHTML=""}function Lr(t){return function(){this.innerHTML=t}}function Or(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function Kr(t){return arguments.length?this.each(t==null?qr:(typeof t=="function"?Or:Lr)(t)):this.node().innerHTML}function Gr(){this.nextSibling&&this.parentNode.appendChild(this)}function Ur(){return this.each(Gr)}function Wr(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Zr(){return this.each(Wr)}function Qr(t){var e=typeof t=="function"?t:Ye(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Jr(){return null}function jr(t,e){var n=typeof t=="function"?t:Ye(t),r=e==null?Jr:typeof e=="function"?e:le(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function ti(){var t=this.parentNode;t&&t.removeChild(this)}function ei(){return this.each(ti)}function ni(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ri(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ii(t){return this.select(t?ri:ni)}function oi(t){return arguments.length?this.property("__data__",t):this.node().__data__}function si(t){return function(e){t.call(this,e,this.__data__)}}function ai(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function ui(t){return function(){var e=this.__on;if(!!e){for(var n=0,r=-1,i=e.length,s;n<i;++n)s=e[n],(!t.type||s.type===t.type)&&s.name===t.name?this.removeEventListener(s.type,s.listener,s.options):e[++r]=s;++r?e.length=r:delete this.__on}}}function li(t,e,n){return function(){var r=this.__on,i,s=si(e);if(r){for(var o=0,a=r.length;o<a;++o)if((i=r[o]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=s,i.options=n),i.value=e;return}}this.addEventListener(t.type,s,n),i={type:t.type,name:t.name,value:e,listener:s,options:n},r?r.push(i):this.__on=[i]}}function ci(t,e,n){var r=ai(t+""),i,s=r.length,o;if(arguments.length<2){var a=this.node().__on;if(a){for(var u=0,l=a.length,h;u<l;++u)for(i=0,h=a[u];i<s;++i)if((o=r[i]).type===h.type&&o.name===h.name)return h.value}return}for(a=e?li:ui,i=0;i<s;++i)this.each(a(r[i],e,n));return this}function Qe(t,e,n){var r=Ke(t),i=r.CustomEvent;typeof i=="function"?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function hi(t,e){return function(){return Qe(this,t,e)}}function fi(t,e){return function(){return Qe(this,t,e.apply(this,arguments))}}function di(t,e){return this.each((typeof e=="function"?fi:hi)(t,e))}function*mi(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,s=r.length,o;i<s;++i)(o=r[i])&&(yield o)}var Je=[null];function L(t,e){this._groups=t,this._parents=e}function Mt(){return new L([[document.documentElement]],Je)}function gi(){return this}L.prototype=Mt.prototype={constructor:L,select:Yn,selectAll:On,selectChild:Wn,selectChildren:jn,filter:tr,data:sr,enter:er,exit:ur,join:lr,merge:cr,selection:gi,order:hr,sort:fr,call:mr,nodes:gr,node:pr,size:vr,empty:yr,each:wr,attr:Nr,style:zr,property:Br,classed:Xr,text:Vr,html:Kr,raise:Ur,lower:Zr,append:Qr,insert:jr,remove:ei,clone:ii,datum:oi,on:ci,dispatch:di,[Symbol.iterator]:mi};function ot(t){return typeof t=="string"?new L([[document.querySelector(t)]],[document.documentElement]):new L([[t]],Je)}function pi(t){let e;for(;e=t.sourceEvent;)t=e;return t}function rt(t,e){if(t=pi(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}const te={capture:!0,passive:!1};function ee(t){t.preventDefault(),t.stopImmediatePropagation()}function vi(t){var e=t.document.documentElement,n=ot(t).on("dragstart.drag",ee,te);"onselectstart"in e?n.on("selectstart.drag",ee,te):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function yi(t,e){var n=t.document.documentElement,r=ot(t).on("dragstart.drag",null);e&&(r.on("click.drag",ee,te),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function he(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function je(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function $t(){}var _t=.7,Xt=1/_t,ht="\\s*([+-]?\\d+)\\s*",kt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",W="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",wi=/^#([0-9a-f]{3,8})$/,_i=new RegExp(`^rgb\\(${ht},${ht},${ht}\\)$`),ki=new RegExp(`^rgb\\(${W},${W},${W}\\)$`),bi=new RegExp(`^rgba\\(${ht},${ht},${ht},${kt}\\)$`),xi=new RegExp(`^rgba\\(${W},${W},${W},${kt}\\)$`),Mi=new RegExp(`^hsl\\(${kt},${W},${W}\\)$`),$i=new RegExp(`^hsla\\(${kt},${W},${W},${kt}\\)$`),_e={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};he($t,bt,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:ke,formatHex:ke,formatHex8:Ni,formatHsl:Ci,formatRgb:be,toString:be});function ke(){return this.rgb().formatHex()}function Ni(){return this.rgb().formatHex8()}function Ci(){return tn(this).formatHsl()}function be(){return this.rgb().formatRgb()}function bt(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=wi.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?xe(e):n===3?new V(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?Nt(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?Nt(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=_i.exec(t))?new V(e[1],e[2],e[3],1):(e=ki.exec(t))?new V(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=bi.exec(t))?Nt(e[1],e[2],e[3],e[4]):(e=xi.exec(t))?Nt(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Mi.exec(t))?Ne(e[1],e[2]/100,e[3]/100,1):(e=$i.exec(t))?Ne(e[1],e[2]/100,e[3]/100,e[4]):_e.hasOwnProperty(t)?xe(_e[t]):t==="transparent"?new V(NaN,NaN,NaN,0):null}function xe(t){return new V(t>>16&255,t>>8&255,t&255,1)}function Nt(t,e,n,r){return r<=0&&(t=e=n=NaN),new V(t,e,n,r)}function Ei(t){return t instanceof $t||(t=bt(t)),t?(t=t.rgb(),new V(t.r,t.g,t.b,t.opacity)):new V}function ne(t,e,n,r){return arguments.length===1?Ei(t):new V(t,e,n,r==null?1:r)}function V(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}he(V,ne,je($t,{brighter(t){return t=t==null?Xt:Math.pow(Xt,t),new V(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?_t:Math.pow(_t,t),new V(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new V(at(this.r),at(this.g),at(this.b),Ft(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Me,formatHex:Me,formatHex8:Si,formatRgb:$e,toString:$e}));function Me(){return`#${st(this.r)}${st(this.g)}${st(this.b)}`}function Si(){return`#${st(this.r)}${st(this.g)}${st(this.b)}${st((isNaN(this.opacity)?1:this.opacity)*255)}`}function $e(){const t=Ft(this.opacity);return`${t===1?"rgb(":"rgba("}${at(this.r)}, ${at(this.g)}, ${at(this.b)}${t===1?")":`, ${t})`}`}function Ft(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function at(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function st(t){return t=at(t),(t<16?"0":"")+t.toString(16)}function Ne(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new G(t,e,n,r)}function tn(t){if(t instanceof G)return new G(t.h,t.s,t.l,t.opacity);if(t instanceof $t||(t=bt(t)),!t)return new G;if(t instanceof G)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),s=Math.max(e,n,r),o=NaN,a=s-i,u=(s+i)/2;return a?(e===s?o=(n-r)/a+(n<r)*6:n===s?o=(r-e)/a+2:o=(e-n)/a+4,a/=u<.5?s+i:2-s-i,o*=60):a=u>0&&u<1?0:o,new G(o,a,u,t.opacity)}function zi(t,e,n,r){return arguments.length===1?tn(t):new G(t,e,n,r==null?1:r)}function G(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}he(G,zi,je($t,{brighter(t){return t=t==null?Xt:Math.pow(Xt,t),new G(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?_t:Math.pow(_t,t),new G(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new V(Ut(t>=240?t-240:t+120,i,r),Ut(t,i,r),Ut(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new G(Ce(this.h),Ct(this.s),Ct(this.l),Ft(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Ft(this.opacity);return`${t===1?"hsl(":"hsla("}${Ce(this.h)}, ${Ct(this.s)*100}%, ${Ct(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Ce(t){return t=(t||0)%360,t<0?t+360:t}function Ct(t){return Math.max(0,Math.min(1,t||0))}function Ut(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const en=t=>()=>t;function Ri(t,e){return function(n){return t+n*e}}function Ti(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function Ai(t){return(t=+t)==1?nn:function(e,n){return n-e?Ti(e,n,t):en(isNaN(e)?n:e)}}function nn(t,e){var n=e-t;return n?Ri(t,n):en(isNaN(t)?e:t)}const Ee=function t(e){var n=Ai(e);function r(i,s){var o=n((i=ne(i)).r,(s=ne(s)).r),a=n(i.g,s.g),u=n(i.b,s.b),l=nn(i.opacity,s.opacity);return function(h){return i.r=o(h),i.g=a(h),i.b=u(h),i.opacity=l(h),i+""}}return r.gamma=t,r}(1);function it(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var re=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Wt=new RegExp(re.source,"g");function Bi(t){return function(){return t}}function Ii(t){return function(e){return t(e)+""}}function Di(t,e){var n=re.lastIndex=Wt.lastIndex=0,r,i,s,o=-1,a=[],u=[];for(t=t+"",e=e+"";(r=re.exec(t))&&(i=Wt.exec(e));)(s=i.index)>n&&(s=e.slice(n,s),a[o]?a[o]+=s:a[++o]=s),(r=r[0])===(i=i[0])?a[o]?a[o]+=i:a[++o]=i:(a[++o]=null,u.push({i:o,x:it(r,i)})),n=Wt.lastIndex;return n<e.length&&(s=e.slice(n),a[o]?a[o]+=s:a[++o]=s),a.length<2?u[0]?Ii(u[0].x):Bi(e):(e=u.length,function(l){for(var h=0,f;h<e;++h)a[(f=u[h]).i]=f.x(l);return a.join("")})}var Se=180/Math.PI,ie={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function rn(t,e,n,r,i,s){var o,a,u;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,u/=a),t*r<e*n&&(t=-t,e=-e,u=-u,o=-o),{translateX:i,translateY:s,rotate:Math.atan2(e,t)*Se,skewX:Math.atan(u)*Se,scaleX:o,scaleY:a}}var Et;function Pi(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?ie:rn(e.a,e.b,e.c,e.d,e.e,e.f)}function Xi(t){return t==null||(Et||(Et=document.createElementNS("http://www.w3.org/2000/svg","g")),Et.setAttribute("transform",t),!(t=Et.transform.baseVal.consolidate()))?ie:(t=t.matrix,rn(t.a,t.b,t.c,t.d,t.e,t.f))}function on(t,e,n,r){function i(l){return l.length?l.pop()+" ":""}function s(l,h,f,p,y,C){if(l!==f||h!==p){var E=y.push("translate(",null,e,null,n);C.push({i:E-4,x:it(l,f)},{i:E-2,x:it(h,p)})}else(f||p)&&y.push("translate("+f+e+p+n)}function o(l,h,f,p){l!==h?(l-h>180?h+=360:h-l>180&&(l+=360),p.push({i:f.push(i(f)+"rotate(",null,r)-2,x:it(l,h)})):h&&f.push(i(f)+"rotate("+h+r)}function a(l,h,f,p){l!==h?p.push({i:f.push(i(f)+"skewX(",null,r)-2,x:it(l,h)}):h&&f.push(i(f)+"skewX("+h+r)}function u(l,h,f,p,y,C){if(l!==f||h!==p){var E=y.push(i(y)+"scale(",null,",",null,")");C.push({i:E-4,x:it(l,f)},{i:E-2,x:it(h,p)})}else(f!==1||p!==1)&&y.push(i(y)+"scale("+f+","+p+")")}return function(l,h){var f=[],p=[];return l=t(l),h=t(h),s(l.translateX,l.translateY,h.translateX,h.translateY,f,p),o(l.rotate,h.rotate,f,p),a(l.skewX,h.skewX,f,p),u(l.scaleX,l.scaleY,h.scaleX,h.scaleY,f,p),l=h=null,function(y){for(var C=-1,E=p.length,R;++C<E;)f[(R=p[C]).i]=R.x(y);return f.join("")}}}var Fi=on(Pi,"px, ","px)","deg)"),Hi=on(Xi,", ",")",")"),Yi=1e-12;function ze(t){return((t=Math.exp(t))+1/t)/2}function Vi(t){return((t=Math.exp(t))-1/t)/2}function qi(t){return((t=Math.exp(2*t))-1)/(t+1)}const Li=function t(e,n,r){function i(s,o){var a=s[0],u=s[1],l=s[2],h=o[0],f=o[1],p=o[2],y=h-a,C=f-u,E=y*y+C*C,R,k;if(E<Yi)k=Math.log(p/l)/e,R=function(x){return[a+x*y,u+x*C,l*Math.exp(e*x*k)]};else{var D=Math.sqrt(E),z=(p*p-l*l+r*E)/(2*l*n*D),T=(p*p-l*l-r*E)/(2*p*n*D),M=Math.log(Math.sqrt(z*z+1)-z),$=Math.log(Math.sqrt(T*T+1)-T);k=($-M)/e,R=function(x){var b=x*k,A=ze(M),S=l/(n*D)*(A*qi(e*b+M)-Vi(M));return[a+S*y,u+S*C,l*A/ze(e*b+M)]}}return R.duration=k*1e3*e/Math.SQRT2,R}return i.rho=function(s){var o=Math.max(.001,+s),a=o*o,u=a*a;return t(o,a,u)},i}(Math.SQRT2,2,4);var dt=0,vt=0,gt=0,sn=1e3,Ht,yt,Yt=0,ut=0,Ot=0,xt=typeof performance=="object"&&performance.now?performance:Date,an=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function fe(){return ut||(an(Oi),ut=xt.now()+Ot)}function Oi(){ut=0}function Vt(){this._call=this._time=this._next=null}Vt.prototype=un.prototype={constructor:Vt,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?fe():+n)+(e==null?0:+e),!this._next&&yt!==this&&(yt?yt._next=this:Ht=this,yt=this),this._call=t,this._time=n,oe()},stop:function(){this._call&&(this._call=null,this._time=1/0,oe())}};function un(t,e,n){var r=new Vt;return r.restart(t,e,n),r}function Ki(){fe(),++dt;for(var t=Ht,e;t;)(e=ut-t._time)>=0&&t._call.call(void 0,e),t=t._next;--dt}function Re(){ut=(Yt=xt.now())+Ot,dt=vt=0;try{Ki()}finally{dt=0,Ui(),ut=0}}function Gi(){var t=xt.now(),e=t-Yt;e>sn&&(Ot-=e,Yt=t)}function Ui(){for(var t,e=Ht,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Ht=n);yt=t,oe(r)}function oe(t){if(!dt){vt&&(vt=clearTimeout(vt));var e=t-ut;e>24?(t<1/0&&(vt=setTimeout(Re,t-xt.now()-Ot)),gt&&(gt=clearInterval(gt))):(gt||(Yt=xt.now(),gt=setInterval(Gi,sn)),dt=1,an(Re))}}function Te(t,e,n){var r=new Vt;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var Wi=ue("start","end","cancel","interrupt"),Zi=[],ln=0,Ae=1,se=2,Tt=3,Be=4,ae=5,At=6;function Kt(t,e,n,r,i,s){var o=t.__transition;if(!o)t.__transition={};else if(n in o)return;Qi(t,n,{name:e,index:r,group:i,on:Wi,tween:Zi,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:ln})}function de(t,e){var n=U(t,e);if(n.state>ln)throw new Error("too late; already scheduled");return n}function Z(t,e){var n=U(t,e);if(n.state>Tt)throw new Error("too late; already running");return n}function U(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Qi(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=un(s,0,n.time);function s(l){n.state=Ae,n.timer.restart(o,n.delay,n.time),n.delay<=l&&o(l-n.delay)}function o(l){var h,f,p,y;if(n.state!==Ae)return u();for(h in r)if(y=r[h],y.name===n.name){if(y.state===Tt)return Te(o);y.state===Be?(y.state=At,y.timer.stop(),y.on.call("interrupt",t,t.__data__,y.index,y.group),delete r[h]):+h<e&&(y.state=At,y.timer.stop(),y.on.call("cancel",t,t.__data__,y.index,y.group),delete r[h])}if(Te(function(){n.state===Tt&&(n.state=Be,n.timer.restart(a,n.delay,n.time),a(l))}),n.state=se,n.on.call("start",t,t.__data__,n.index,n.group),n.state===se){for(n.state=Tt,i=new Array(p=n.tween.length),h=0,f=-1;h<p;++h)(y=n.tween[h].value.call(t,t.__data__,n.index,n.group))&&(i[++f]=y);i.length=f+1}}function a(l){for(var h=l<n.duration?n.ease.call(null,l/n.duration):(n.timer.restart(u),n.state=ae,1),f=-1,p=i.length;++f<p;)i[f].call(t,h);n.state===ae&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){n.state=At,n.timer.stop(),delete r[e];for(var l in r)return;delete t.__transition}}function Bt(t,e){var n=t.__transition,r,i,s=!0,o;if(!!n){e=e==null?null:e+"";for(o in n){if((r=n[o]).name!==e){s=!1;continue}i=r.state>se&&r.state<ae,r.state=At,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[o]}s&&delete t.__transition}}function Ji(t){return this.each(function(){Bt(this,t)})}function ji(t,e){var n,r;return function(){var i=Z(this,t),s=i.tween;if(s!==n){r=n=s;for(var o=0,a=r.length;o<a;++o)if(r[o].name===e){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function to(t,e,n){var r,i;if(typeof n!="function")throw new Error;return function(){var s=Z(this,t),o=s.tween;if(o!==r){i=(r=o).slice();for(var a={name:e,value:n},u=0,l=i.length;u<l;++u)if(i[u].name===e){i[u]=a;break}u===l&&i.push(a)}s.tween=i}}function eo(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=U(this.node(),n).tween,i=0,s=r.length,o;i<s;++i)if((o=r[i]).name===t)return o.value;return null}return this.each((e==null?ji:to)(n,t,e))}function me(t,e,n){var r=t._id;return t.each(function(){var i=Z(this,r);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return U(i,r).value[e]}}function cn(t,e){var n;return(typeof e=="number"?it:e instanceof bt?Ee:(n=bt(e))?(e=n,Ee):Di)(t,e)}function no(t){return function(){this.removeAttribute(t)}}function ro(t){return function(){this.removeAttributeNS(t.space,t.local)}}function io(t,e,n){var r,i=n+"",s;return function(){var o=this.getAttribute(t);return o===i?null:o===r?s:s=e(r=o,n)}}function oo(t,e,n){var r,i=n+"",s;return function(){var o=this.getAttributeNS(t.space,t.local);return o===i?null:o===r?s:s=e(r=o,n)}}function so(t,e,n){var r,i,s;return function(){var o,a=n(this),u;return a==null?void this.removeAttribute(t):(o=this.getAttribute(t),u=a+"",o===u?null:o===r&&u===i?s:(i=u,s=e(r=o,a)))}}function ao(t,e,n){var r,i,s;return function(){var o,a=n(this),u;return a==null?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local),u=a+"",o===u?null:o===r&&u===i?s:(i=u,s=e(r=o,a)))}}function uo(t,e){var n=Lt(t),r=n==="transform"?Hi:cn;return this.attrTween(t,typeof e=="function"?(n.local?ao:so)(n,r,me(this,"attr."+t,e)):e==null?(n.local?ro:no)(n):(n.local?oo:io)(n,r,e))}function lo(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function co(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function ho(t,e){var n,r;function i(){var s=e.apply(this,arguments);return s!==r&&(n=(r=s)&&co(t,s)),n}return i._value=e,i}function fo(t,e){var n,r;function i(){var s=e.apply(this,arguments);return s!==r&&(n=(r=s)&&lo(t,s)),n}return i._value=e,i}function mo(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=Lt(t);return this.tween(n,(r.local?ho:fo)(r,e))}function go(t,e){return function(){de(this,t).delay=+e.apply(this,arguments)}}function po(t,e){return e=+e,function(){de(this,t).delay=e}}function vo(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?go:po)(e,t)):U(this.node(),e).delay}function yo(t,e){return function(){Z(this,t).duration=+e.apply(this,arguments)}}function wo(t,e){return e=+e,function(){Z(this,t).duration=e}}function _o(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?yo:wo)(e,t)):U(this.node(),e).duration}function ko(t,e){if(typeof e!="function")throw new Error;return function(){Z(this,t).ease=e}}function bo(t){var e=this._id;return arguments.length?this.each(ko(e,t)):U(this.node(),e).ease}function xo(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;Z(this,t).ease=n}}function Mo(t){if(typeof t!="function")throw new Error;return this.each(xo(this._id,t))}function $o(t){typeof t!="function"&&(t=qe(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var s=e[i],o=s.length,a=r[i]=[],u,l=0;l<o;++l)(u=s[l])&&t.call(u,u.__data__,l,s)&&a.push(u);return new nt(r,this._parents,this._name,this._id)}function No(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,s=Math.min(r,i),o=new Array(r),a=0;a<s;++a)for(var u=e[a],l=n[a],h=u.length,f=o[a]=new Array(h),p,y=0;y<h;++y)(p=u[y]||l[y])&&(f[y]=p);for(;a<r;++a)o[a]=e[a];return new nt(o,this._parents,this._name,this._id)}function Co(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function Eo(t,e,n){var r,i,s=Co(e)?de:Z;return function(){var o=s(this,t),a=o.on;a!==r&&(i=(r=a).copy()).on(e,n),o.on=i}}function So(t,e){var n=this._id;return arguments.length<2?U(this.node(),n).on.on(t):this.each(Eo(n,t,e))}function zo(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function Ro(){return this.on("end.remove",zo(this._id))}function To(t){var e=this._name,n=this._id;typeof t!="function"&&(t=le(t));for(var r=this._groups,i=r.length,s=new Array(i),o=0;o<i;++o)for(var a=r[o],u=a.length,l=s[o]=new Array(u),h,f,p=0;p<u;++p)(h=a[p])&&(f=t.call(h,h.__data__,p,a))&&("__data__"in h&&(f.__data__=h.__data__),l[p]=f,Kt(l[p],e,n,p,l,U(h,n)));return new nt(s,this._parents,e,n)}function Ao(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Ve(t));for(var r=this._groups,i=r.length,s=[],o=[],a=0;a<i;++a)for(var u=r[a],l=u.length,h,f=0;f<l;++f)if(h=u[f]){for(var p=t.call(h,h.__data__,f,u),y,C=U(h,n),E=0,R=p.length;E<R;++E)(y=p[E])&&Kt(y,e,n,E,p,C);s.push(p),o.push(h)}return new nt(s,o,e,n)}var Bo=Mt.prototype.constructor;function Io(){return new Bo(this._groups,this._parents)}function Do(t,e){var n,r,i;return function(){var s=ft(this,t),o=(this.style.removeProperty(t),ft(this,t));return s===o?null:s===n&&o===r?i:i=e(n=s,r=o)}}function hn(t){return function(){this.style.removeProperty(t)}}function Po(t,e,n){var r,i=n+"",s;return function(){var o=ft(this,t);return o===i?null:o===r?s:s=e(r=o,n)}}function Xo(t,e,n){var r,i,s;return function(){var o=ft(this,t),a=n(this),u=a+"";return a==null&&(u=a=(this.style.removeProperty(t),ft(this,t))),o===u?null:o===r&&u===i?s:(i=u,s=e(r=o,a))}}function Fo(t,e){var n,r,i,s="style."+e,o="end."+s,a;return function(){var u=Z(this,t),l=u.on,h=u.value[s]==null?a||(a=hn(e)):void 0;(l!==n||i!==h)&&(r=(n=l).copy()).on(o,i=h),u.on=r}}function Ho(t,e,n){var r=(t+="")=="transform"?Fi:cn;return e==null?this.styleTween(t,Do(t,r)).on("end.style."+t,hn(t)):typeof e=="function"?this.styleTween(t,Xo(t,r,me(this,"style."+t,e))).each(Fo(this._id,t)):this.styleTween(t,Po(t,r,e),n).on("end.style."+t,null)}function Yo(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Vo(t,e,n){var r,i;function s(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&Yo(t,o,n)),r}return s._value=e,s}function qo(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,Vo(t,e,n==null?"":n))}function Lo(t){return function(){this.textContent=t}}function Oo(t){return function(){var e=t(this);this.textContent=e==null?"":e}}function Ko(t){return this.tween("text",typeof t=="function"?Oo(me(this,"text",t)):Lo(t==null?"":t+""))}function Go(t){return function(e){this.textContent=t.call(this,e)}}function Uo(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&Go(i)),e}return r._value=t,r}function Wo(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Uo(t))}function Zo(){for(var t=this._name,e=this._id,n=fn(),r=this._groups,i=r.length,s=0;s<i;++s)for(var o=r[s],a=o.length,u,l=0;l<a;++l)if(u=o[l]){var h=U(u,e);Kt(u,t,n,l,o,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new nt(r,this._parents,t,n)}function Qo(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(s,o){var a={value:o},u={value:function(){--i===0&&s()}};n.each(function(){var l=Z(this,r),h=l.on;h!==t&&(e=(t=h).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(u)),l.on=e}),i===0&&s()})}var Jo=0;function nt(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function fn(){return++Jo}var tt=Mt.prototype;nt.prototype={constructor:nt,select:To,selectAll:Ao,selectChild:tt.selectChild,selectChildren:tt.selectChildren,filter:$o,merge:No,selection:Io,transition:Zo,call:tt.call,nodes:tt.nodes,node:tt.node,size:tt.size,empty:tt.empty,each:tt.each,on:So,attr:uo,attrTween:mo,style:Ho,styleTween:qo,text:Ko,textTween:Wo,remove:Ro,tween:eo,delay:vo,duration:_o,ease:bo,easeVarying:Mo,end:Qo,[Symbol.iterator]:tt[Symbol.iterator]};function jo(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var ts={time:null,delay:0,duration:250,ease:jo};function es(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function ns(t){var e,n;t instanceof nt?(e=t._id,t=t._name):(e=fn(),(n=ts).time=fe(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,s=0;s<i;++s)for(var o=r[s],a=o.length,u,l=0;l<a;++l)(u=o[l])&&Kt(u,t,e,l,o,n||es(u,e));return new nt(r,this._parents,t,e)}Mt.prototype.interrupt=Ji;Mt.prototype.transition=ns;const St=t=>()=>t;function rs(t,{sourceEvent:e,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function et(t,e,n){this.k=t,this.x=e,this.y=n}et.prototype={constructor:et,scale:function(t){return t===1?this:new et(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new et(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ge=new et(1,0,0);et.prototype;function Zt(t){t.stopImmediatePropagation()}function pt(t){t.preventDefault(),t.stopImmediatePropagation()}function is(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function os(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function Ie(){return this.__zoom||ge}function ss(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function as(){return navigator.maxTouchPoints||"ontouchstart"in this}function us(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],s=t.invertY(e[0][1])-n[0][1],o=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>s?(s+o)/2:Math.min(0,s)||Math.max(0,o))}function ls(){var t=is,e=os,n=us,r=ss,i=as,s=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],a=250,u=Li,l=ue("start","zoom","end"),h,f,p,y=500,C=150,E=0,R=10;function k(c){c.property("__zoom",Ie).on("wheel.zoom",b,{passive:!1}).on("mousedown.zoom",A).on("dblclick.zoom",S).filter(i).on("touchstart.zoom",Q).on("touchmove.zoom",J).on("touchend.zoom touchcancel.zoom",j).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}k.transform=function(c,w,d,_){var g=c.selection?c.selection():c;g.property("__zoom",Ie),c!==g?M(c,w,d,_):g.interrupt().each(function(){$(this,arguments).event(_).start().zoom(null,typeof w=="function"?w.apply(this,arguments):w).end()})},k.scaleBy=function(c,w,d,_){k.scaleTo(c,function(){var g=this.__zoom.k,v=typeof w=="function"?w.apply(this,arguments):w;return g*v},d,_)},k.scaleTo=function(c,w,d,_){k.transform(c,function(){var g=e.apply(this,arguments),v=this.__zoom,m=d==null?T(g):typeof d=="function"?d.apply(this,arguments):d,N=v.invert(m),B=typeof w=="function"?w.apply(this,arguments):w;return n(z(D(v,B),m,N),g,o)},d,_)},k.translateBy=function(c,w,d,_){k.transform(c,function(){return n(this.__zoom.translate(typeof w=="function"?w.apply(this,arguments):w,typeof d=="function"?d.apply(this,arguments):d),e.apply(this,arguments),o)},null,_)},k.translateTo=function(c,w,d,_,g){k.transform(c,function(){var v=e.apply(this,arguments),m=this.__zoom,N=_==null?T(v):typeof _=="function"?_.apply(this,arguments):_;return n(ge.translate(N[0],N[1]).scale(m.k).translate(typeof w=="function"?-w.apply(this,arguments):-w,typeof d=="function"?-d.apply(this,arguments):-d),v,o)},_,g)};function D(c,w){return w=Math.max(s[0],Math.min(s[1],w)),w===c.k?c:new et(w,c.x,c.y)}function z(c,w,d){var _=w[0]-d[0]*c.k,g=w[1]-d[1]*c.k;return _===c.x&&g===c.y?c:new et(c.k,_,g)}function T(c){return[(+c[0][0]+ +c[1][0])/2,(+c[0][1]+ +c[1][1])/2]}function M(c,w,d,_){c.on("start.zoom",function(){$(this,arguments).event(_).start()}).on("interrupt.zoom end.zoom",function(){$(this,arguments).event(_).end()}).tween("zoom",function(){var g=this,v=arguments,m=$(g,v).event(_),N=e.apply(g,v),B=d==null?T(N):typeof d=="function"?d.apply(g,v):d,P=Math.max(N[1][0]-N[0][0],N[1][1]-N[0][1]),I=g.__zoom,X=typeof w=="function"?w.apply(g,v):w,H=u(I.invert(B).concat(P/I.k),X.invert(B).concat(P/X.k));return function(F){if(F===1)F=X;else{var O=H(F),Gt=P/O[2];F=new et(Gt,B[0]-O[0]*Gt,B[1]-O[1]*Gt)}m.zoom(null,F)}})}function $(c,w,d){return!d&&c.__zooming||new x(c,w)}function x(c,w){this.that=c,this.args=w,this.active=0,this.sourceEvent=null,this.extent=e.apply(c,w),this.taps=0}x.prototype={event:function(c){return c&&(this.sourceEvent=c),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(c,w){return this.mouse&&c!=="mouse"&&(this.mouse[1]=w.invert(this.mouse[0])),this.touch0&&c!=="touch"&&(this.touch0[1]=w.invert(this.touch0[0])),this.touch1&&c!=="touch"&&(this.touch1[1]=w.invert(this.touch1[0])),this.that.__zoom=w,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(c){var w=ot(this.that).datum();l.call(c,this.that,new rs(c,{sourceEvent:this.sourceEvent,target:k,type:c,transform:this.that.__zoom,dispatch:l}),w)}};function b(c,...w){if(!t.apply(this,arguments))return;var d=$(this,w).event(c),_=this.__zoom,g=Math.max(s[0],Math.min(s[1],_.k*Math.pow(2,r.apply(this,arguments)))),v=rt(c);if(d.wheel)(d.mouse[0][0]!==v[0]||d.mouse[0][1]!==v[1])&&(d.mouse[1]=_.invert(d.mouse[0]=v)),clearTimeout(d.wheel);else{if(_.k===g)return;d.mouse=[v,_.invert(v)],Bt(this),d.start()}pt(c),d.wheel=setTimeout(m,C),d.zoom("mouse",n(z(D(_,g),d.mouse[0],d.mouse[1]),d.extent,o));function m(){d.wheel=null,d.end()}}function A(c,...w){if(p||!t.apply(this,arguments))return;var d=c.currentTarget,_=$(this,w,!0).event(c),g=ot(c.view).on("mousemove.zoom",B,!0).on("mouseup.zoom",P,!0),v=rt(c,d),m=c.clientX,N=c.clientY;vi(c.view),Zt(c),_.mouse=[v,this.__zoom.invert(v)],Bt(this),_.start();function B(I){if(pt(I),!_.moved){var X=I.clientX-m,H=I.clientY-N;_.moved=X*X+H*H>E}_.event(I).zoom("mouse",n(z(_.that.__zoom,_.mouse[0]=rt(I,d),_.mouse[1]),_.extent,o))}function P(I){g.on("mousemove.zoom mouseup.zoom",null),yi(I.view,_.moved),pt(I),_.event(I).end()}}function S(c,...w){if(!!t.apply(this,arguments)){var d=this.__zoom,_=rt(c.changedTouches?c.changedTouches[0]:c,this),g=d.invert(_),v=d.k*(c.shiftKey?.5:2),m=n(z(D(d,v),_,g),e.apply(this,w),o);pt(c),a>0?ot(this).transition().duration(a).call(M,m,_,c):ot(this).call(k.transform,m,_,c)}}function Q(c,...w){if(!!t.apply(this,arguments)){var d=c.touches,_=d.length,g=$(this,w,c.changedTouches.length===_).event(c),v,m,N,B;for(Zt(c),m=0;m<_;++m)N=d[m],B=rt(N,this),B=[B,this.__zoom.invert(B),N.identifier],g.touch0?!g.touch1&&g.touch0[2]!==B[2]&&(g.touch1=B,g.taps=0):(g.touch0=B,v=!0,g.taps=1+!!h);h&&(h=clearTimeout(h)),v&&(g.taps<2&&(f=B[0],h=setTimeout(function(){h=null},y)),Bt(this),g.start())}}function J(c,...w){if(!!this.__zooming){var d=$(this,w).event(c),_=c.changedTouches,g=_.length,v,m,N,B;for(pt(c),v=0;v<g;++v)m=_[v],N=rt(m,this),d.touch0&&d.touch0[2]===m.identifier?d.touch0[0]=N:d.touch1&&d.touch1[2]===m.identifier&&(d.touch1[0]=N);if(m=d.that.__zoom,d.touch1){var P=d.touch0[0],I=d.touch0[1],X=d.touch1[0],H=d.touch1[1],F=(F=X[0]-P[0])*F+(F=X[1]-P[1])*F,O=(O=H[0]-I[0])*O+(O=H[1]-I[1])*O;m=D(m,Math.sqrt(F/O)),N=[(P[0]+X[0])/2,(P[1]+X[1])/2],B=[(I[0]+H[0])/2,(I[1]+H[1])/2]}else if(d.touch0)N=d.touch0[0],B=d.touch0[1];else return;d.zoom("touch",n(z(m,N,B),d.extent,o))}}function j(c,...w){if(!!this.__zooming){var d=$(this,w).event(c),_=c.changedTouches,g=_.length,v,m;for(Zt(c),p&&clearTimeout(p),p=setTimeout(function(){p=null},y),v=0;v<g;++v)m=_[v],d.touch0&&d.touch0[2]===m.identifier?delete d.touch0:d.touch1&&d.touch1[2]===m.identifier&&delete d.touch1;if(d.touch1&&!d.touch0&&(d.touch0=d.touch1,delete d.touch1),d.touch0)d.touch0[1]=this.__zoom.invert(d.touch0[0]);else if(d.end(),d.taps===2&&(m=rt(m,this),Math.hypot(f[0]-m[0],f[1]-m[1])<R)){var N=ot(this).on("dblclick.zoom");N&&N.apply(this,arguments)}}}return k.wheelDelta=function(c){return arguments.length?(r=typeof c=="function"?c:St(+c),k):r},k.filter=function(c){return arguments.length?(t=typeof c=="function"?c:St(!!c),k):t},k.touchable=function(c){return arguments.length?(i=typeof c=="function"?c:St(!!c),k):i},k.extent=function(c){return arguments.length?(e=typeof c=="function"?c:St([[+c[0][0],+c[0][1]],[+c[1][0],+c[1][1]]]),k):e},k.scaleExtent=function(c){return arguments.length?(s[0]=+c[0],s[1]=+c[1],k):[s[0],s[1]]},k.translateExtent=function(c){return arguments.length?(o[0][0]=+c[0][0],o[1][0]=+c[1][0],o[0][1]=+c[0][1],o[1][1]=+c[1][1],k):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},k.constrain=function(c){return arguments.length?(n=c,k):n},k.duration=function(c){return arguments.length?(a=+c,k):a},k.interpolate=function(c){return arguments.length?(u=c,k):u},k.on=function(){var c=l.on.apply(l,arguments);return c===l?k:c},k.clickDistance=function(c){return arguments.length?(E=(c=+c)*c,k):Math.sqrt(E)},k.tapDistance=function(c){return arguments.length?(R=+c,k):R},k}const dn=Symbol("MiniMapSlots"),cs=["id","x","y","rx","ry","width","height","fill","stroke","stroke-width","shape-rendering"],hs={name:"MiniMapNode",compatConfig:{MODE:3}},fs=qt({...hs,props:{id:{},type:{},selected:{type:Boolean},dragging:{type:Boolean},position:{},dimensions:{},borderRadius:{},color:{},shapeRendering:{},strokeColor:{},strokeWidth:{}},emits:["click","dblclick","mouseenter","mousemove","mouseleave"],setup(t,{emit:e}){const n=t,r=Nn(dn),i=Pe(),s=Jt(()=>{var f;return(f=i.style)!=null?f:{}});function o(f){e("click",f)}function a(f){e("dblclick",f)}function u(f){e("mouseenter",f)}function l(f){e("mousemove",f)}function h(f){e("mouseleave",f)}return(f,p)=>q(r)[`node-${n.type}`]?(K(),wt(En(q(r)[`node-${n.type}`]),Cn(He({key:0},n)),null,16)):(K(),ct("rect",{key:1,id:f.id,class:It(["vue-flow__minimap-node",{selected:f.selected,dragging:f.dragging}]),x:f.position.x,y:f.position.y,rx:f.borderRadius,ry:f.borderRadius,width:f.dimensions.width,height:f.dimensions.height,fill:f.color||s.value.background||s.value.backgroundColor,stroke:f.strokeColor,"stroke-width":f.strokeWidth,"shape-rendering":f.shapeRendering,onClick:o,onDblclick:a,onMouseenter:u,onMousemove:l,onMouseleave:h},null,42,cs))}}),ds=["width","height","viewBox","aria-labelledby"],ms=["id"],gs=["d","fill","stroke","stroke-width"],ps={name:"MiniMap",compatConfig:{MODE:3}},vs=qt({...ps,props:{nodeColor:{type:[String,Function],default:"#e2e2e2"},nodeStrokeColor:{type:[String,Function],default:"transparent"},nodeClassName:{type:[String,Function]},nodeBorderRadius:{default:5},nodeStrokeWidth:{default:2},maskColor:{default:"rgb(240, 240, 240, 0.6)"},maskStrokeColor:{default:"none"},maskStrokeWidth:{default:1},position:{default:"bottom-right"},pannable:{type:Boolean,default:!1},zoomable:{type:Boolean,default:!1},width:{},height:{},ariaLabel:{default:"Vue Flow mini map"},inversePan:{type:Boolean,default:!1},zoomStep:{default:10},offsetScale:{default:5},maskBorderRadius:{default:0}},emits:["click","nodeClick","nodeDblclick","nodeMouseenter","nodeMousemove","nodeMouseleave"],setup(t,{emit:e}){const n=_n(),r=Pe(),i=200,s=150,{id:o,edges:a,viewport:u,translateExtent:l,dimensions:h,emits:f,d3Selection:p,d3Zoom:y,getNodesInitialized:C}=De(),E=Qt();kn(dn,n);const R=Jt(()=>{var v,m;var g;return(m=(v=t.width)!=null?v:(g=r.style)==null?void 0:g.width)!=null?m:i}),k=Jt(()=>{var v,m;var g;return(m=(v=t.height)!=null?v:(g=r.style)==null?void 0:g.height)!=null?m:s}),D=typeof window>"u"||!!window.chrome?"crispEdges":"geometricPrecision",z=Y(()=>typeof t.nodeColor=="string"?()=>t.nodeColor:t.nodeColor),T=Y(()=>typeof t.nodeStrokeColor=="string"?()=>t.nodeStrokeColor:t.nodeStrokeColor),M=Y(()=>typeof t.nodeClassName=="string"?()=>t.nodeClassName:typeof t.nodeClassName=="function"?t.nodeClassName:()=>""),$=Y(()=>gn(C.value)),x=Y(()=>({x:-u.value.x/u.value.zoom,y:-u.value.y/u.value.zoom,width:h.value.width/u.value.zoom,height:h.value.height/u.value.zoom})),b=Y(()=>C.value&&C.value.length?pn($.value,x.value):x.value),A=Y(()=>{const g=b.value.width/R.value,v=b.value.height/k.value;return Math.max(g,v)}),S=Y(()=>{const g=A.value*R.value,v=A.value*k.value,m=t.offsetScale*A.value;return{offset:m,x:b.value.x-(g-b.value.width)/2-m,y:b.value.y-(v-b.value.height)/2-m,width:g+m*2,height:v+m*2}}),Q=Y(()=>!S.value.x||!S.value.y?"":`
2
2
  M${S.value.x-S.value.offset},${S.value.y-S.value.offset}
3
3
  h${S.value.width+S.value.offset*2}
4
4
  v${S.value.height+S.value.offset*2}
@@ -11,5 +11,5 @@ import{_ as mn,d as pe}from"./vue-flow-background.818c7852.js";import{u as De,d
11
11
  h${-(x.value.width-2*t.maskBorderRadius)}
12
12
  a${t.maskBorderRadius},${t.maskBorderRadius} 0 0 1 -${t.maskBorderRadius},-${t.maskBorderRadius}
13
13
  v${-(x.value.height-2*t.maskBorderRadius)}
14
- a${t.maskBorderRadius},${t.maskBorderRadius} 0 0 1 ${t.maskBorderRadius},-${t.maskBorderRadius}z`);bn(g=>{if(E.value){const v=ot(E.value),m=P=>{if(P.sourceEvent.type!=="wheel"||!p.value||!y.value)return;const I=-P.sourceEvent.deltaY*(P.sourceEvent.deltaMode===1?.05:P.sourceEvent.deltaMode?1:.002)*t.zoomStep,X=u.value.zoom*2**I;y.value.scaleTo(p.value,X)},N=P=>{if(P.sourceEvent.type!=="mousemove"||!p.value||!y.value)return;const I=A.value*Math.max(1,u.value.zoom)*(t.inversePan?-1:1),X={x:u.value.x-P.sourceEvent.movementX*I,y:u.value.y-P.sourceEvent.movementY*I},H=[[0,0],[h.value.width,h.value.height]],F=ge.translate(X.x,X.y).scale(u.value.zoom),O=y.value.constrain()(F,H,l.value);y.value.transform(p.value,O)},B=ls().on("zoom",t.pannable?N:()=>{}).on("zoom.wheel",t.zoomable?m:()=>{});v.call(B),g(()=>{v.on("zoom",null)})}},{flush:"post"});function J(g){const[v,m]=rt(g);e("click",{event:g,position:{x:v,y:m}})}function j(g,v){const m={event:g,node:v,connectedEdges:mt([v],a.value)};f.miniMapNodeClick(m),e("nodeClick",m)}function c(g,v){const m={event:g,node:v,connectedEdges:mt([v],a.value)};f.miniMapNodeDoubleClick(m),e("nodeDblclick",m)}function w(g,v){const m={event:g,node:v,connectedEdges:mt([v],a.value)};f.miniMapNodeMouseEnter(m),e("nodeMouseenter",m)}function d(g,v){const m={event:g,node:v,connectedEdges:mt([v],a.value)};f.miniMapNodeMouseMove(m),e("nodeMousemove",m)}function _(g,v){const m={event:g,node:v,connectedEdges:mt([v],a.value)};f.miniMapNodeMouseLeave(m),e("nodeMouseleave",m)}return(g,v)=>(K(),wt(V(vn),{position:g.position,class:It(["vue-flow__minimap",{pannable:g.pannable,zoomable:g.zoomable}])},{default:zt(()=>[(K(),ct("svg",{ref_key:"el",ref:E,width:R.value,height:k.value,viewBox:[S.value.x,S.value.y,S.value.width,S.value.height].join(" "),role:"img","aria-labelledby":`vue-flow__minimap-${V(o)}`,onClick:J},[g.ariaLabel?(K(),ct("title",{key:0,id:`vue-flow__minimap-${V(o)}`},xn(g.ariaLabel),9,ms)):Mn("",!0),(K(!0),ct(Xe,null,$n(V(C),m=>(K(),wt(fs,{id:m.id,key:m.id,position:m.computedPosition,dimensions:m.dimensions,selected:m.selected,dragging:m.dragging,style:Fe(m.style),class:It(M.value(m)),color:z.value(m),"border-radius":g.nodeBorderRadius,"stroke-color":T.value(m),"stroke-width":g.nodeStrokeWidth,"shape-rendering":V(D),type:m.type,onClick:N=>j(N,m),onDblclick:N=>c(N,m),onMouseenter:N=>w(N,m),onMousemove:N=>d(N,m),onMouseleave:N=>_(N,m)},null,8,["id","position","dimensions","selected","dragging","style","class","color","border-radius","stroke-color","stroke-width","shape-rendering","type","onClick","onDblclick","onMouseenter","onMousemove","onMouseleave"]))),128)),Dt("path",{class:"vue-flow__minimap-mask",d:Z.value,fill:g.maskColor,stroke:g.maskStrokeColor,"stroke-width":g.maskStrokeWidth,"fill-rule":"evenodd"},null,8,gs)],8,ds))]),_:1},8,["position","class"]))}}),ys=["d"],ws=Vt({__name:"TableEdge",props:{id:{},sourceNode:{},targetNode:{},source:{},target:{},type:{},label:{type:[String,Object,Function]},style:{},selected:{type:Boolean},sourcePosition:{},targetPosition:{},sourceHandleId:{},targetHandleId:{},animated:{type:Boolean},updatable:{type:Boolean},markerStart:{},markerEnd:{},curvature:{},interactionWidth:{},data:{},events:{},labelStyle:{},labelShowBg:{type:Boolean},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{},sourceX:{},sourceY:{},targetX:{},targetY:{},isHovered:{type:Boolean}},emits:["mouseenter","mouseleave","click"],setup(t,{emit:e}){const n=t,r=Y(()=>({type:"arrowclosed",width:20,height:20,color:n.isHovered?"#1890ff":"#b1b1b7"})),i=Y(()=>({stroke:n.isHovered?"#1890ff":"#b1b1b7",strokeWidth:n.isHovered?3:2,transition:"all 0.2s ease"}));function s(a,u,l,h,f,p,y,C){const E=a+l/2,R=u+h/2,k=f+y/2,D=p+C/2,z=k-E,T=D-R;let M=E,$=R;Math.abs(z)>Math.abs(T)?z>0?(M=a+l,$=R+T/z*(l/2)):(M=a,$=R+T/z*(-l/2)):T>0?($=u+h,M=E+z/T*(h/2)):($=u,M=E+z/T*(-h/2));let x=k,b=D;return Math.abs(z)>Math.abs(T)?z>0?(x=f,b=D-T/z*(y/2)):(x=f+y,b=D-T/z*(-y/2)):T>0?(b=p,x=k-z/T*(C/2)):(b=p+C,x=k-z/T*(-C/2)),{sourceX:M,sourceY:$,targetX:x,targetY:b}}const o=Y(()=>{const a=n.sourceNode,u=n.targetNode;if(!a||!u)return ve({sourceX:0,sourceY:0,targetX:0,targetY:0});const l=s(a.computedPosition.x,a.computedPosition.y,a.dimensions.width,a.dimensions.height,u.computedPosition.x,u.computedPosition.y,u.dimensions.width,u.dimensions.height);return ve(l)});return(a,u)=>(K(),ct("g",{style:{cursor:"pointer"},onMouseenter:u[0]||(u[0]=l=>e("mouseenter")),onMouseleave:u[1]||(u[1]=l=>e("mouseleave")),onClick:u[2]||(u[2]=l=>e("click"))},[lt(V(yn),{path:o.value[0],"marker-end":r.value,style:Fe(i.value)},null,8,["path","marker-end","style"]),Dt("path",{d:o.value[0],fill:"none",stroke:"transparent","stroke-width":"20",class:"hover-target"},null,8,ys)],32))}}),_s={class:"flow-container",style:{height:"calc(100vh - 160px)",width:"100%"}},ks={class:"diagram-table-card"},bs=Vt({__name:"TablesDiagram",setup(t){const e=(M,$)=>{const x=new pe.graphlib.Graph;return x.setGraph({rankdir:"TD",ranksep:150,nodesep:100,edgesep:30,ranker:"network-simplex",align:void 0}),x.setDefaultEdgeLabel(()=>({})),M.forEach(b=>{x.setNode(b.id,{width:300,height:320})}),$.forEach(b=>{x.setEdge(b.source,b.target)}),pe.layout(x),M.map(b=>({...b,position:{x:x.node(b.id).x,y:x.node(b.id).y}}))},r=Sn().params.projectId,{tables:i,loading:s}=Bn(r),o=Y(()=>{var M,$;return($=(M=i.value)==null?void 0:M.flatMap(x=>x.getColumns().filter(b=>b.foreignKey).map(b=>{const A=i.value.find(S=>S.getColumn(b.foreignKey.columnId));return{id:`${x.id}:${b.id}:${b.foreignKey.columnId}`,source:x.id,target:A.id,data:{sourceColumnId:b.id,targetColumnId:b.foreignKey.columnId}}})))!=null?$:[]}),a=Y(()=>s.value?[]:e(i.value.map(M=>({id:M.id,type:"table",data:M,position:{x:0,y:0}})),o.value)),u=Zt(null),l=M=>{u.value=M},h=M=>{var b,A;if(!u.value)return[];const $=o.value.find(S=>S.id===u.value);if(!$)return[];const x=[];return $.source===M&&((b=$.data)==null?void 0:b.sourceColumnId)&&x.push($.data.sourceColumnId),$.target===M&&((A=$.data)==null?void 0:A.targetColumnId)&&x.push($.data.targetColumnId),x},f=M=>{if(!u.value)return!1;const $=o.value.find(x=>x.id===u.value);return $?$.source===M||$.target===M:!1},p=M=>{var Z,J,j,c;const x=z.value.find(w=>w.id===M);if(!x)return;const b=(J=(Z=x.computedPosition)==null?void 0:Z.x)!=null?J:x.position.x,A=(c=(j=x.computedPosition)==null?void 0:j.y)!=null?c:x.position.y,S=200;D({x:b-S,y:A-S,width:400+S*2,height:420+S*2},{duration:800,padding:.1})},y=M=>{var v,m,N,B,P,I,X,H;const $=o.value.find(F=>F.id===M);if(!$)return;const x=z.value,b=x.find(F=>F.id===$.source),A=x.find(F=>F.id===$.target);if(!b||!A)return;const S=(m=(v=b.computedPosition)==null?void 0:v.x)!=null?m:b.position.x,Z=(B=(N=b.computedPosition)==null?void 0:N.y)!=null?B:b.position.y,J=(I=(P=A.computedPosition)==null?void 0:P.x)!=null?I:A.position.x,j=(H=(X=A.computedPosition)==null?void 0:X.y)!=null?H:A.position.y,c=Math.min(S,J),w=Math.min(Z,j),d=Math.max(S+300,J+300),_=Math.max(Z+320,j+320),g=50;D({x:c-g,y:w-g,width:d-c+g*2,height:_-w+g*2},{duration:800,padding:.1})},{onInit:C,onNodeDragStop:E,onConnect:R,addEdges:k,fitBounds:D,getNodes:z}=De(),T=Zt(!1);return C(M=>{M.fitView()}),E(({event:M,nodes:$,node:x})=>{console.log("Node Drag Stop",{event:M,nodes:$,node:x})}),R(M=>{k(M)}),(M,$)=>{const x=zn("AntSpin");return K(),ct(Xe,null,[lt(An),Dt("div",_s,[V(s)?(K(),wt(x,{key:0,style:{width:"100%"}})):(K(),wt(V(wn),{key:1,nodes:a.value,edges:o.value,class:It([{dark:T.value},"basic-flow"]),"default-viewport":{zoom:1.5},"fit-view-on-init":"","min-zoom":.01,"max-zoom":4,"pan-on-scroll":""},{"node-table":zt(b=>[Dt("div",ks,[lt(Tn,{table:b.data,"project-id":V(r),"show-handles":!1,"highlighted-columns":h(b.data.id),"is-highlighted":f(b.data.id),onDblclick:A=>p(b.data.id)},null,8,["table","project-id","highlighted-columns","is-highlighted","onDblclick"])])]),"edge-default":zt(b=>[lt(ws,He(b,{"is-hovered":u.value===b.id,onMouseenter:A=>l(b.id),onMouseleave:$[0]||($[0]=A=>l(null)),onClick:A=>y(b.id)}),null,16,["is-hovered","onMouseenter","onClick"])]),default:zt(()=>[lt(V(mn),{"pattern-color":"#aaa",gap:16}),lt(V(vs),{pannable:""})]),_:1},8,["nodes","edges","class"]))])],64)}}});const Xs=Rn(bs,[["__scopeId","data-v-4b7d90f2"]]);export{Xs as default};
15
- //# sourceMappingURL=TablesDiagram.8e47383c.js.map
14
+ a${t.maskBorderRadius},${t.maskBorderRadius} 0 0 1 ${t.maskBorderRadius},-${t.maskBorderRadius}z`);bn(g=>{if(E.value){const v=ot(E.value),m=P=>{if(P.sourceEvent.type!=="wheel"||!p.value||!y.value)return;const I=-P.sourceEvent.deltaY*(P.sourceEvent.deltaMode===1?.05:P.sourceEvent.deltaMode?1:.002)*t.zoomStep,X=u.value.zoom*2**I;y.value.scaleTo(p.value,X)},N=P=>{if(P.sourceEvent.type!=="mousemove"||!p.value||!y.value)return;const I=A.value*Math.max(1,u.value.zoom)*(t.inversePan?-1:1),X={x:u.value.x-P.sourceEvent.movementX*I,y:u.value.y-P.sourceEvent.movementY*I},H=[[0,0],[h.value.width,h.value.height]],F=ge.translate(X.x,X.y).scale(u.value.zoom),O=y.value.constrain()(F,H,l.value);y.value.transform(p.value,O)},B=ls().on("zoom",t.pannable?N:()=>{}).on("zoom.wheel",t.zoomable?m:()=>{});v.call(B),g(()=>{v.on("zoom",null)})}},{flush:"post"});function J(g){const[v,m]=rt(g);e("click",{event:g,position:{x:v,y:m}})}function j(g,v){const m={event:g,node:v,connectedEdges:mt([v],a.value)};f.miniMapNodeClick(m),e("nodeClick",m)}function c(g,v){const m={event:g,node:v,connectedEdges:mt([v],a.value)};f.miniMapNodeDoubleClick(m),e("nodeDblclick",m)}function w(g,v){const m={event:g,node:v,connectedEdges:mt([v],a.value)};f.miniMapNodeMouseEnter(m),e("nodeMouseenter",m)}function d(g,v){const m={event:g,node:v,connectedEdges:mt([v],a.value)};f.miniMapNodeMouseMove(m),e("nodeMousemove",m)}function _(g,v){const m={event:g,node:v,connectedEdges:mt([v],a.value)};f.miniMapNodeMouseLeave(m),e("nodeMouseleave",m)}return(g,v)=>(K(),wt(q(vn),{position:g.position,class:It(["vue-flow__minimap",{pannable:g.pannable,zoomable:g.zoomable}])},{default:zt(()=>[(K(),ct("svg",{ref_key:"el",ref:E,width:R.value,height:k.value,viewBox:[S.value.x,S.value.y,S.value.width,S.value.height].join(" "),role:"img","aria-labelledby":`vue-flow__minimap-${q(o)}`,onClick:J},[g.ariaLabel?(K(),ct("title",{key:0,id:`vue-flow__minimap-${q(o)}`},xn(g.ariaLabel),9,ms)):Mn("",!0),(K(!0),ct(Xe,null,$n(q(C),m=>(K(),wt(fs,{id:m.id,key:m.id,position:m.computedPosition,dimensions:m.dimensions,selected:m.selected,dragging:m.dragging,style:Fe(m.style),class:It(M.value(m)),color:z.value(m),"border-radius":g.nodeBorderRadius,"stroke-color":T.value(m),"stroke-width":g.nodeStrokeWidth,"shape-rendering":q(D),type:m.type,onClick:N=>j(N,m),onDblclick:N=>c(N,m),onMouseenter:N=>w(N,m),onMousemove:N=>d(N,m),onMouseleave:N=>_(N,m)},null,8,["id","position","dimensions","selected","dragging","style","class","color","border-radius","stroke-color","stroke-width","shape-rendering","type","onClick","onDblclick","onMouseenter","onMousemove","onMouseleave"]))),128)),Dt("path",{class:"vue-flow__minimap-mask",d:Q.value,fill:g.maskColor,stroke:g.maskStrokeColor,"stroke-width":g.maskStrokeWidth,"fill-rule":"evenodd"},null,8,gs)],8,ds))]),_:1},8,["position","class"]))}}),ys=["d"],ws=qt({__name:"TableEdge",props:{id:{},sourceNode:{},targetNode:{},source:{},target:{},type:{},label:{type:[String,Object,Function]},style:{},selected:{type:Boolean},sourcePosition:{},targetPosition:{},sourceHandleId:{},targetHandleId:{},animated:{type:Boolean},updatable:{type:Boolean},markerStart:{},markerEnd:{},curvature:{},interactionWidth:{},data:{},events:{},labelStyle:{},labelShowBg:{type:Boolean},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{},sourceX:{},sourceY:{},targetX:{},targetY:{},isHovered:{type:Boolean}},emits:["mouseenter","mouseleave","click"],setup(t,{emit:e}){const n=t,r=Y(()=>({type:"arrowclosed",width:20,height:20,color:n.isHovered?"#1890ff":"#b1b1b7"})),i=Y(()=>({stroke:n.isHovered?"#1890ff":"#b1b1b7",strokeWidth:n.isHovered?3:2,transition:"all 0.2s ease"}));function s(a,u,l,h,f,p,y,C){const E=a+l/2,R=u+h/2,k=f+y/2,D=p+C/2,z=k-E,T=D-R;let M=E,$=R;Math.abs(z)>Math.abs(T)?z>0?(M=a+l,$=R+T/z*(l/2)):(M=a,$=R+T/z*(-l/2)):T>0?($=u+h,M=E+z/T*(h/2)):($=u,M=E+z/T*(-h/2));let x=k,b=D;return Math.abs(z)>Math.abs(T)?z>0?(x=f,b=D-T/z*(y/2)):(x=f+y,b=D-T/z*(-y/2)):T>0?(b=p,x=k-z/T*(C/2)):(b=p+C,x=k-z/T*(-C/2)),{sourceX:M,sourceY:$,targetX:x,targetY:b}}const o=Y(()=>{const a=n.sourceNode,u=n.targetNode;if(!a||!u)return ve({sourceX:0,sourceY:0,targetX:0,targetY:0});const l=s(a.computedPosition.x,a.computedPosition.y,a.dimensions.width,a.dimensions.height,u.computedPosition.x,u.computedPosition.y,u.dimensions.width,u.dimensions.height);return ve(l)});return(a,u)=>(K(),ct("g",{style:{cursor:"pointer"},onMouseenter:u[0]||(u[0]=l=>e("mouseenter")),onMouseleave:u[1]||(u[1]=l=>e("mouseleave")),onClick:u[2]||(u[2]=l=>e("click"))},[lt(q(yn),{path:o.value[0],"marker-end":r.value,style:Fe(i.value)},null,8,["path","marker-end","style"]),Dt("path",{d:o.value[0],fill:"none",stroke:"transparent","stroke-width":"20",class:"hover-target"},null,8,ys)],32))}}),_s={class:"flow-container",style:{height:"calc(100vh - 160px)",width:"100%"}},ks={class:"diagram-table-card"},bs=qt({__name:"TablesDiagram",setup(t){const e=(M,$)=>{const x=new pe.graphlib.Graph;return x.setGraph({rankdir:"TD",ranksep:150,nodesep:100,edgesep:30,ranker:"network-simplex",align:void 0}),x.setDefaultEdgeLabel(()=>({})),M.forEach(b=>{x.setNode(b.id,{width:300,height:320})}),$.forEach(b=>{x.setEdge(b.source,b.target)}),pe.layout(x),M.map(b=>({...b,position:{x:x.node(b.id).x,y:x.node(b.id).y}}))},r=Sn().params.projectId,{tables:i,loading:s}=Bn(r),o=Y(()=>{var M,$;return($=(M=i.value)==null?void 0:M.flatMap(x=>x.getColumns().filter(b=>b.foreignKey).map(b=>{const A=i.value.find(S=>S.getColumn(b.foreignKey.columnId));return{id:`${x.id}:${b.id}:${b.foreignKey.columnId}`,source:x.id,target:A.id,data:{sourceColumnId:b.id,targetColumnId:b.foreignKey.columnId}}})))!=null?$:[]}),a=Y(()=>s.value?[]:e(i.value.map(M=>({id:M.id,type:"table",data:M,position:{x:0,y:0}})),o.value)),u=Qt(null),l=M=>{u.value=M},h=M=>{var b,A;if(!u.value)return[];const $=o.value.find(S=>S.id===u.value);if(!$)return[];const x=[];return $.source===M&&((b=$.data)==null?void 0:b.sourceColumnId)&&x.push($.data.sourceColumnId),$.target===M&&((A=$.data)==null?void 0:A.targetColumnId)&&x.push($.data.targetColumnId),x},f=M=>{if(!u.value)return!1;const $=o.value.find(x=>x.id===u.value);return $?$.source===M||$.target===M:!1},p=M=>{var Q,J,j,c;const x=z.value.find(w=>w.id===M);if(!x)return;const b=(J=(Q=x.computedPosition)==null?void 0:Q.x)!=null?J:x.position.x,A=(c=(j=x.computedPosition)==null?void 0:j.y)!=null?c:x.position.y,S=200;D({x:b-S,y:A-S,width:400+S*2,height:420+S*2},{duration:800,padding:.1})},y=M=>{var v,m,N,B,P,I,X,H;const $=o.value.find(F=>F.id===M);if(!$)return;const x=z.value,b=x.find(F=>F.id===$.source),A=x.find(F=>F.id===$.target);if(!b||!A)return;const S=(m=(v=b.computedPosition)==null?void 0:v.x)!=null?m:b.position.x,Q=(B=(N=b.computedPosition)==null?void 0:N.y)!=null?B:b.position.y,J=(I=(P=A.computedPosition)==null?void 0:P.x)!=null?I:A.position.x,j=(H=(X=A.computedPosition)==null?void 0:X.y)!=null?H:A.position.y,c=Math.min(S,J),w=Math.min(Q,j),d=Math.max(S+300,J+300),_=Math.max(Q+320,j+320),g=50;D({x:c-g,y:w-g,width:d-c+g*2,height:_-w+g*2},{duration:800,padding:.1})},{onInit:C,onNodeDragStop:E,onConnect:R,addEdges:k,fitBounds:D,getNodes:z}=De(),T=Qt(!1);return C(M=>{M.fitView()}),E(({event:M,nodes:$,node:x})=>{console.log("Node Drag Stop",{event:M,nodes:$,node:x})}),R(M=>{k(M)}),(M,$)=>{const x=zn("AntSpin");return K(),ct(Xe,null,[lt(An),Dt("div",_s,[q(s)?(K(),wt(x,{key:0,style:{width:"100%"}})):(K(),wt(q(wn),{key:1,nodes:a.value,edges:o.value,class:It([{dark:T.value},"basic-flow"]),"default-viewport":{zoom:1.5},"fit-view-on-init":"","min-zoom":.01,"max-zoom":4,"pan-on-scroll":""},{"node-table":zt(b=>[Dt("div",ks,[lt(Tn,{table:b.data,"project-id":q(r),"show-handles":!1,"highlighted-columns":h(b.data.id),"is-highlighted":f(b.data.id),onDblclick:A=>p(b.data.id)},null,8,["table","project-id","highlighted-columns","is-highlighted","onDblclick"])])]),"edge-default":zt(b=>[lt(ws,He(b,{"is-hovered":u.value===b.id,onMouseenter:A=>l(b.id),onMouseleave:$[0]||($[0]=A=>l(null)),onClick:A=>y(b.id)}),null,16,["is-hovered","onMouseenter","onClick"])]),default:zt(()=>[lt(q(mn),{"pattern-color":"#aaa",gap:16}),lt(q(vs),{pannable:""})]),_:1},8,["nodes","edges","class"]))])],64)}}});const Xs=Rn(bs,[["__scopeId","data-v-4b7d90f2"]]);export{Xs as default};
15
+ //# sourceMappingURL=TablesDiagram.d633acaf.js.map
@@ -0,0 +1,2 @@
1
+ import{d as i,e5 as f,eb as m,o as c,a as p,b as l,a5 as _,ec as g,f as y,e as v,ed as k,u as n,aR as w}from"./jwt-decode.esm.54a1ea22.js";import{A as I,T}from"./Card.fc77085c.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="c8571a30-96c1-4ee8-975c-ba9bbfc9d83e",e._sentryDebugIdIdentifier="sentry-dbid-c8571a30-96c1-4ee8-975c-ba9bbfc9d83e")}catch{}})();const R=i({__name:"TablesTabs",setup(e){const a=f(),t=m(),u=String(t.name),d=t.params.projectId,r=[{label:"Tables list",value:"tables"},{label:"Diagram view",value:"tables-diagram"},{label:"Run SQL",value:"sql"}],b=o=>{a.push({name:String(o),params:{projectId:d}})};return(o,D)=>(c(),p(n(T),{"active-key":n(u),options:r,"onUpdate:activeKey":b},{default:l(()=>[(c(),_(w,null,g(r,s=>y(n(I),{key:s.value,name:s.value},{tab:l(()=>[v("span",null,k(s.label),1)]),_:2},1032,["name"])),64))]),_:1},8,["active-key"]))}});export{R as _};
2
+ //# sourceMappingURL=TablesTabs.vue_vue_type_script_setup_true_lang.cf7e34c5.js.map
@@ -1,2 +1,2 @@
1
- import{f as l,e7 as E,d as L,c as N,J as M,I as U,a5 as T,b as a,u as e,aR as I,o as c,cx as C,aB as z,cw as J,a as f,c$ as q,g as S,d8 as k,ef as G,d6 as H,ed as x,dc as P,d2 as Q,h as O,el as W,S as X,cV as Y,cF as Z,eb as K,A as ee}from"./jwt-decode.esm.d4517a10.js";import{_ as te}from"./AbstraButton.vue_vue_type_script_setup_true_lang.eb8ccb64.js";import{I as ae}from"./PhCopy.vue.59b0f1b4.js";import{T as le,R as ne}from"./tasksController.371896de.js";import{s as se}from"./metadata.c3aed6e1.js";import{t as re}from"./ant-design.a865486e.js";import{c as oe}from"./string.0acf5572.js";import{R as ie}from"./dayjs.f18bbbca.js";import{g as R,a as v}from"./router.424f7da9.js";import{a as de,B as ce}from"./build.df2d55cc.js";import{a as ue}from"./project.619b7244.js";import"./tables.1f68ec62.js";import{a as pe}from"./asyncComputed.cf5282fc.js";import"./contracts.generated.590b1102.js";import"./record.7f43486c.js";import"./linters.2f3141cb.js";import"./polling.82ee6b45.js";import"./PhUserList.vue.6a29f16d.js";import"./PhWebhooksLogo.vue.5e772aac.js";import"./index.4176fe88.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[o]="28bc39fa-0624-4afc-9e70-ce8ab4e94d0c",r._sentryDebugIdIdentifier="sentry-dbid-28bc39fa-0624-4afc-9e70-ce8ab4e94d0c")}catch{}})();var fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"};const ge=fe;function B(r){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},g=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(g=g.concat(Object.getOwnPropertySymbols(n).filter(function(p){return Object.getOwnPropertyDescriptor(n,p).enumerable}))),g.forEach(function(p){me(r,p,n[p])})}return r}function me(r,o,n){return o in r?Object.defineProperty(r,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[o]=n,r}var D=function(o,n){var g=B({},o,n.attrs);return l(E,B({},g,{icon:ge}),null)};D.displayName="SyncOutlined";D.inheritAttrs=!1;const ye=D,Se={key:4,style:{"min-width":"100px"}},be=L({__name:"TasksView",props:{api:{},stages:{},editor:{type:Boolean}},setup(r,{expose:o}){const n=r,{setup:g,tearDown:p,state:s,getColumns:m,fetchTasks:b,clearAllTasks:w}=le({api:n.api,poll:!0,stages:n.stages}),A=t=>t.dataIndex===void 0&&"children"in t&&Array.isArray(t.children)&&t.children.length===0,h=N(()=>n.stages?s.tasks.map(t=>{var d,y,u;const i=(d=n.stages)==null?void 0:d.find(_=>_.id===t.targetStageId);return i?{...t,targetStageTitle:i.stageTitle,targetStageType:i.stageType,completedAt:(u=t.completed)!=null&&u.at?new Date(t.completed.at).toLocaleString():"Not completed",createdAt:new Date(t.created.at).toLocaleString(),deleted:!1}:{...t,targetStageTitle:null,targetStageType:null,completedAt:(y=t.completed)!=null&&y.at?new Date(t.completed.at).toLocaleString():"Not completed",createdAt:new Date(t.created.at).toLocaleString(),deleted:!0}}):s.tasks.map(t=>{var i;return{...t,deleted:!1,completedAt:(i=t.completed)!=null&&i.at?new Date(t.completed.at).toLocaleString():"Not completed",createdAt:new Date(t.created.at).toLocaleString()}})),$=(t,i,d)=>{var _,j;const y=(_=t.current)!=null?_:1,u=(j=t.pageSize)!=null?j:10;s.pagination.currentIndex=y-1,s.pagination.pageSize=u,b()},F=(t,i)=>`/_editor/${t}/${i}`,V=t=>{typeof t=="object"?navigator.clipboard.writeText(JSON.stringify(t)):navigator.clipboard.writeText(String(t)),Z.success({content:"Copied to clipboard"})};return o({clearAllTasks:w}),M(()=>g()),U(()=>p()),(t,i)=>(c(),T(I,null,[l(e(J),{layout:"vertical"},{default:a(()=>[l(e(R),{gutter:10},{default:a(()=>[l(e(v),{span:10},{default:a(()=>[l(e(C),{label:"Stage"},{default:a(()=>[l(e(z),{value:e(s).filters.stage,"onUpdate:value":i[0]||(i[0]=d=>e(s).filters.stage=d),options:e(s).filterOptions.stages,placeholder:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1}),l(e(v),{span:6},{default:a(()=>[l(e(C),{label:"Status"},{default:a(()=>[l(e(z),{value:e(s).filters.status,"onUpdate:value":i[1]||(i[1]=d=>e(s).filters.status=d),options:e(s).filterOptions.statuses,"option-label":"label","option-value":"value",filter:!1,placeholder:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1}),l(e(v),{span:8},{default:a(()=>[l(e(C),{label:"Created at date"},{default:a(()=>[l(e(ie),{value:e(s).filters.dateRange,"onUpdate:value":i[2]||(i[2]=d=>e(s).filters.dateRange=d),style:{width:"100%"}},null,8,["value"])]),_:1})]),_:1})]),_:1})]),_:1}),l(e(Y),{columns:e(m)(),"data-source":h.value,scroll:{x:"max-content",y:1e3},bordered:"",size:"small",pagination:{current:e(s).pagination.currentIndex+1,pageSize:e(s).pagination.pageSize,total:e(s).pagination.totalCount},onChange:$},{bodyCell:a(({column:d,text:y,record:u})=>[d.key==="payload"?(c(),f(e(q),{key:0,"tree-data":e(re)(u.payload),selectable:!1},null,8,["tree-data"])):d.key==="targetStageTitle"?(c(),T(I,{key:1},[u.deleted?(c(),f(e(k),{key:0},{default:a(()=>[S("Not found")]),_:1})):(c(),f(e(P),{key:1,gap:"small",justify:"center"},{default:a(()=>[(c(),f(G(e(se)(u.targetStageType)),{size:"20"})),t.editor?(c(),f(e(H),{key:0,href:F(u.targetStageType,u.targetStageId)},{default:a(()=>[S(x(u.targetStageTitle),1)]),_:2},1032,["href"])):(c(),f(e(k),{key:1},{default:a(()=>[S(x(u.targetStageTitle),1)]),_:2},1024))]),_:2},1024))],64)):d.dataIndex==="status"?(c(),f(e(P),{key:2,gap:"small",justify:"center"},{default:a(()=>[l(e(Q),null,{default:a(()=>[S(x(e(oe)(String(y)))+" ",1),y==="started"?(c(),f(e(ye),{key:0,spin:!0,style:{"margin-left":"4px"}})):O("",!0)]),_:2},1024)]),_:2},1024)):d.dataIndex==="actions"?(c(),f(te,{key:3,type:"text",size:"small",tooltip:"Copy Payload Data",onClick:W(_=>V(u.payload),["stop"])},{default:a(()=>[l(e(ae))]),_:2},1032,["onClick"])):A(d)?(c(),T("div",Se)):O("",!0)]),footer:a(()=>[l(e(R),{justify:"end",gutter:10},{default:a(()=>[l(e(v),null,{default:a(()=>[l(e(X),{size:"small"})]),_:1}),l(e(v),null,{default:a(()=>[l(e(k),null,{default:a(()=>[S(" auto updating ")]),_:1})]),_:1})]),_:1})]),_:1},8,["columns","data-source","pagination"])],64))}}),Fe=L({__name:"Tasks",setup(r){const n=K().params.projectId,g=new ne(n),{result:p}=pe(async()=>{const b=(await de.list(n)).find(h=>h.latest);if(!b)return null;const[w,A]=await Promise.all([ce.get(b.id),ue.get(n)]);return{buildSpec:w,project:A}}),s=N(()=>!p.value||!p.value.buildSpec?null:p.value.buildSpec.runtimes.map(m=>({id:m.id,stageTitle:m.title,stageType:m.type})));return(m,b)=>(c(),T(I,null,[l(e(ee),null,{default:a(()=>[S("Tasks")]),_:1}),s.value?(c(),f(be,{key:0,class:"tasks",api:e(g),stages:s.value},null,8,["api","stages"])):O("",!0)],64))}});export{Fe as default};
2
- //# sourceMappingURL=Tasks.09551b19.js.map
1
+ import{f as l,e7 as E,d as L,c as N,J as M,I as U,a5 as T,b as a,u as e,aR as I,o as u,cx as C,aB as z,cw as J,a as f,c$ as q,g as S,d8 as k,ef as G,d6 as H,ed as x,dc as P,d2 as Q,h as O,em as W,S as X,cV as Y,cF as Z,eb as K,A as ee}from"./jwt-decode.esm.54a1ea22.js";import{_ as te}from"./AbstraButton.vue_vue_type_script_setup_true_lang.aefce2d3.js";import{I as ae}from"./PhCopy.vue.d116ddfb.js";import{T as le,R as ne}from"./tasksController.f3adf725.js";import{s as se}from"./metadata.0098e20c.js";import{t as re}from"./ant-design.42419021.js";import{c as oe}from"./string.61e11a30.js";import{R as ie}from"./dayjs.7f71c60a.js";import{g as R,a as v}from"./router.4dfadf5d.js";import{a as de,B as ue}from"./build.45b511b6.js";import{a as ce}from"./project.1b8374f4.js";import"./tables.1bcb1140.js";import{a as pe}from"./asyncComputed.47aec2b5.js";import"./contracts.generated.aefe8d0a.js";import"./record.e83a2eb2.js";import"./linters.a0f2aa84.js";import"./polling.b5a32c22.js";import"./PhUserList.vue.e0b8c21b.js";import"./PhWebhooksLogo.vue.d164db1e.js";import"./index.c7a996a6.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[o]="e58ec688-3f5f-406b-8b22-98870c8bd63c",r._sentryDebugIdIdentifier="sentry-dbid-e58ec688-3f5f-406b-8b22-98870c8bd63c")}catch{}})();var fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"};const ge=fe;function B(r){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},g=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(g=g.concat(Object.getOwnPropertySymbols(n).filter(function(p){return Object.getOwnPropertyDescriptor(n,p).enumerable}))),g.forEach(function(p){me(r,p,n[p])})}return r}function me(r,o,n){return o in r?Object.defineProperty(r,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[o]=n,r}var D=function(o,n){var g=B({},o,n.attrs);return l(E,B({},g,{icon:ge}),null)};D.displayName="SyncOutlined";D.inheritAttrs=!1;const ye=D,Se={key:4,style:{"min-width":"100px"}},be=L({__name:"TasksView",props:{api:{},stages:{},editor:{type:Boolean}},setup(r,{expose:o}){const n=r,{setup:g,tearDown:p,state:s,getColumns:m,fetchTasks:b,clearAllTasks:w}=le({api:n.api,poll:!0,stages:n.stages}),A=t=>t.dataIndex===void 0&&"children"in t&&Array.isArray(t.children)&&t.children.length===0,h=N(()=>n.stages?s.tasks.map(t=>{var d,y,c;const i=(d=n.stages)==null?void 0:d.find(_=>_.id===t.targetStageId);return i?{...t,targetStageTitle:i.stageTitle,targetStageType:i.stageType,completedAt:(c=t.completed)!=null&&c.at?new Date(t.completed.at).toLocaleString():"Not completed",createdAt:new Date(t.created.at).toLocaleString(),deleted:!1}:{...t,targetStageTitle:null,targetStageType:null,completedAt:(y=t.completed)!=null&&y.at?new Date(t.completed.at).toLocaleString():"Not completed",createdAt:new Date(t.created.at).toLocaleString(),deleted:!0}}):s.tasks.map(t=>{var i;return{...t,deleted:!1,completedAt:(i=t.completed)!=null&&i.at?new Date(t.completed.at).toLocaleString():"Not completed",createdAt:new Date(t.created.at).toLocaleString()}})),$=(t,i,d)=>{var _,j;const y=(_=t.current)!=null?_:1,c=(j=t.pageSize)!=null?j:10;s.pagination.currentIndex=y-1,s.pagination.pageSize=c,b()},F=(t,i)=>`/_editor/${t}/${i}`,V=t=>{typeof t=="object"?navigator.clipboard.writeText(JSON.stringify(t)):navigator.clipboard.writeText(String(t)),Z.success({content:"Copied to clipboard"})};return o({clearAllTasks:w}),M(()=>g()),U(()=>p()),(t,i)=>(u(),T(I,null,[l(e(J),{layout:"vertical"},{default:a(()=>[l(e(R),{gutter:10},{default:a(()=>[l(e(v),{span:10},{default:a(()=>[l(e(C),{label:"Stage"},{default:a(()=>[l(e(z),{value:e(s).filters.stage,"onUpdate:value":i[0]||(i[0]=d=>e(s).filters.stage=d),options:e(s).filterOptions.stages,placeholder:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1}),l(e(v),{span:6},{default:a(()=>[l(e(C),{label:"Status"},{default:a(()=>[l(e(z),{value:e(s).filters.status,"onUpdate:value":i[1]||(i[1]=d=>e(s).filters.status=d),options:e(s).filterOptions.statuses,"option-label":"label","option-value":"value",filter:!1,placeholder:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1}),l(e(v),{span:8},{default:a(()=>[l(e(C),{label:"Created at date"},{default:a(()=>[l(e(ie),{value:e(s).filters.dateRange,"onUpdate:value":i[2]||(i[2]=d=>e(s).filters.dateRange=d),style:{width:"100%"}},null,8,["value"])]),_:1})]),_:1})]),_:1})]),_:1}),l(e(Y),{columns:e(m)(),"data-source":h.value,scroll:{x:"max-content",y:1e3},bordered:"",size:"small",pagination:{current:e(s).pagination.currentIndex+1,pageSize:e(s).pagination.pageSize,total:e(s).pagination.totalCount},onChange:$},{bodyCell:a(({column:d,text:y,record:c})=>[d.key==="payload"?(u(),f(e(q),{key:0,"tree-data":e(re)(c.payload),selectable:!1},null,8,["tree-data"])):d.key==="targetStageTitle"?(u(),T(I,{key:1},[c.deleted?(u(),f(e(k),{key:0},{default:a(()=>[S("Not found")]),_:1})):(u(),f(e(P),{key:1,gap:"small",justify:"center"},{default:a(()=>[(u(),f(G(e(se)(c.targetStageType)),{size:"20"})),t.editor?(u(),f(e(H),{key:0,href:F(c.targetStageType,c.targetStageId)},{default:a(()=>[S(x(c.targetStageTitle),1)]),_:2},1032,["href"])):(u(),f(e(k),{key:1},{default:a(()=>[S(x(c.targetStageTitle),1)]),_:2},1024))]),_:2},1024))],64)):d.dataIndex==="status"?(u(),f(e(P),{key:2,gap:"small",justify:"center"},{default:a(()=>[l(e(Q),null,{default:a(()=>[S(x(e(oe)(String(y)))+" ",1),y==="started"?(u(),f(e(ye),{key:0,spin:!0,style:{"margin-left":"4px"}})):O("",!0)]),_:2},1024)]),_:2},1024)):d.dataIndex==="actions"?(u(),f(te,{key:3,type:"text",size:"small",tooltip:"Copy Payload Data",onClick:W(_=>V(c.payload),["stop"])},{default:a(()=>[l(e(ae))]),_:2},1032,["onClick"])):A(d)?(u(),T("div",Se)):O("",!0)]),footer:a(()=>[l(e(R),{justify:"end",gutter:10},{default:a(()=>[l(e(v),null,{default:a(()=>[l(e(X),{size:"small"})]),_:1}),l(e(v),null,{default:a(()=>[l(e(k),null,{default:a(()=>[S(" auto updating ")]),_:1})]),_:1})]),_:1})]),_:1},8,["columns","data-source","pagination"])],64))}}),Fe=L({__name:"Tasks",setup(r){const n=K().params.projectId,g=new ne(n),{result:p}=pe(async()=>{const b=(await de.list(n)).find(h=>h.latest);if(!b)return null;const[w,A]=await Promise.all([ue.get(b.id),ce.get(n)]);return{buildSpec:w,project:A}}),s=N(()=>!p.value||!p.value.buildSpec?null:p.value.buildSpec.runtimes.map(m=>({id:m.id,stageTitle:m.title,stageType:m.type})));return(m,b)=>(u(),T(I,null,[l(e(ee),null,{default:a(()=>[S("Tasks")]),_:1}),s.value?(u(),f(be,{key:0,class:"tasks",api:e(g),stages:s.value},null,8,["api","stages"])):O("",!0)],64))}});export{Fe as default};
2
+ //# sourceMappingURL=Tasks.c311b05f.js.map
@@ -1,2 +1,2 @@
1
- import{f as d,e7 as l}from"./jwt-decode.esm.d4517a10.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="bc5e2124-aa79-4705-8d36-009fe3f28717",e._sentryDebugIdIdentifier="sentry-dbid-bc5e2124-aa79-4705-8d36-009fe3f28717")}catch{}})();var i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"};const u=i;function c(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){f(e,a,n[a])})}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=function(t,n){var r=c({},t,n.attrs);return d(l,c({},r,{icon:u}),null)};o.displayName="UploadOutlined";o.inheritAttrs=!1;const p=o;export{p as U};
2
- //# sourceMappingURL=UploadOutlined.eab75eb0.js.map
1
+ import{f as o,e7 as l}from"./jwt-decode.esm.54a1ea22.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d9ad2acc-697c-417c-a5fc-1ec63c4aa0a4",e._sentryDebugIdIdentifier="sentry-dbid-d9ad2acc-697c-417c-a5fc-1ec63c4aa0a4")}catch{}})();var i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"};const u=i;function d(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){f(e,a,n[a])})}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(t,n){var r=d({},t,n.attrs);return o(l,d({},r,{icon:u}),null)};c.displayName="UploadOutlined";c.inheritAttrs=!1;const p=c;export{p as U};
2
+ //# sourceMappingURL=UploadOutlined.9aa845de.js.map
@@ -1,2 +1,2 @@
1
- var me=Object.defineProperty;var fe=(s,e,a)=>e in s?me(s,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):s[e]=a;var U=(s,e,a)=>(fe(s,typeof e!="symbol"?e+"":e,a),a);import{a as q}from"./asyncComputed.cf5282fc.js";import{d as b,r as x,a as g,b as l,u as t,o as y,f as n,cN as J,g as h,aB as G,cP as ge,bR as _,dc as he,ae as S,cx as w,bJ as T,cw as B,c as H,a5 as Q,ec as ve,d2 as _e,ed as we,aR as W,em as X,cC as Y,eb as be,J as Ce,h as I,A as ke,d7 as Pe}from"./jwt-decode.esm.d4517a10.js";import{A as E}from"./index.fb182bd1.js";import{_ as Ue}from"./DocsButton.vue_vue_type_script_setup_true_lang.3668aee4.js";import{d as F,k as R,p as k}from"./router.424f7da9.js";import{C as ee}from"./CrudView.c0824225.js";import{G as te}from"./PhPencil.vue.2f2fe576.js";import{C as Re}from"./repository.9534db4b.js";import{E as ae}from"./record.7f43486c.js";import{a as M}from"./ant-design.a865486e.js";import{A as Z,T as Ee}from"./Card.6cfffb80.js";import"./constants.7d38ec8b.js";import"./index.4176fe88.js";import"./url.e8732f77.js";import"./PhDotsThreeVertical.vue.ab4580a5.js";import"./fetch.89fd5b7b.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="b2c6e265-d853-4b1f-be9a-2e40810f3d69",s._sentryDebugIdIdentifier="sentry-dbid-b2c6e265-d853-4b1f-be9a-2e40810f3d69")}catch{}})();const xe=b({__name:"View",props:{signupPolicy:{}},emits:["updated","save"],setup(s,{emit:e}){const a=s,o=x(a.signupPolicy.strategy),r=x(a.signupPolicy.strategy==="patternOnly"?a.signupPolicy.emailPatterns:[]),i=x(a.signupPolicy.strategy==="patternOnly"?a.signupPolicy.emailPatterns.map(c=>({label:c})):[]),m=c=>{const C=c;if(r.value=C,C.length===0){o.value="inviteOnly",f("inviteOnly");return}i.value=C.map(P=>({label:P})),a.signupPolicy.emailPatterns=c,e("updated",a.signupPolicy)},p=()=>{e("save")},f=c=>{o.value=c,c!=="patternOnly"&&(c==="inviteOnly"&&a.signupPolicy.allowOnlyInvited(),e("updated",a.signupPolicy))};return(c,C)=>(y(),g(t(he),{style:{"padding-top":"8px",width:"100%"},justify:"space-between",align:"flex-end"},{default:l(()=>[n(t(ge),{value:o.value,"onUpdate:value":f},{default:l(()=>[n(t(E),{direction:"vertical"},{default:l(()=>[n(t(J),{value:"inviteOnly"},{default:l(()=>[h("Allow listed users only")]),_:1}),n(t(E),null,{default:l(()=>[n(t(J),{value:"patternOnly"},{default:l(()=>[h("Allow everyone from this domain:")]),_:1}),n(t(G),{mode:"tags",value:c.signupPolicy.emailPatterns,style:{"min-width":"300px"},placeholder:"@domain.com or sub.domain.com",disabled:o.value!=="patternOnly",options:i.value,"dropdown-match-select-width":"",open:!1,"onUpdate:value":m},null,8,["value","disabled","options"])]),_:1})]),_:1})]),_:1},8,["value"]),n(t(_),{disabled:!c.signupPolicy.hasChanges,type:"primary",onClick:p},{default:l(()=>[h(" Save changes ")]),_:1},8,["disabled"])]),_:1}))}}),Ae=b({__name:"NewUser",props:{roleOptions:{}},emits:["created","cancel"],setup(s,{emit:e}){const o=s.roleOptions.map(p=>({label:p.name,value:p.name})),r=S({email:"",roles:[]});function i(){e("cancel")}function m(){!r.email||e("created",r)}return(p,f)=>(y(),g(t(F),{open:"",title:"New user",width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:i},{extra:l(()=>[n(t(E),null,{default:l(()=>[n(t(_),{onClick:i},{default:l(()=>[h("Cancel")]),_:1}),n(t(_),{type:"primary",onClick:m},{default:l(()=>[h("Submit")]),_:1})]),_:1})]),default:l(()=>[n(t(B),{model:r,layout:"vertical"},{default:l(()=>[n(t(w),{key:"email",label:"Email",required:!0},{default:l(()=>[n(t(T),{value:r.email,"onUpdate:value":f[0]||(f[0]=c=>r.email=c)},null,8,["value"])]),_:1}),n(t(w),{key:"role",label:"Role"},{default:l(()=>[n(t(G),{value:r.roles,"onUpdate:value":f[1]||(f[1]=c=>r.roles=c),mode:"multiple",options:t(o)},null,8,["value","options"])]),_:1})]),_:1},8,["model"])]),_:1}))}}),Oe=b({__name:"UpdateUser",props:{roleOptions:{},email:{},roles:{}},emits:["updated","cancel"],setup(s,{emit:e}){const a=s,o=a.roleOptions.map(p=>({label:p.name,value:p.name})),r=S({email:a.email,roles:a.roles});function i(){e("cancel")}function m(){e("updated",r)}return(p,f)=>(y(),g(t(F),{open:"",title:"Update user",width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:i},{extra:l(()=>[n(t(E),null,{default:l(()=>[n(t(_),{onClick:i},{default:l(()=>[h("Cancel")]),_:1}),n(t(_),{type:"primary",onClick:m},{default:l(()=>[h("Submit")]),_:1})]),_:1})]),default:l(()=>[n(t(B),{model:r,layout:"vertical"},{default:l(()=>[n(t(w),{key:"email",label:"Email"},{default:l(()=>[n(t(T),{value:r.email,"onUpdate:value":f[0]||(f[0]=c=>r.email=c)},null,8,["value"])]),_:1}),n(t(w),{key:"role",label:"Role"},{default:l(()=>[n(t(G),{value:r.roles,"onUpdate:value":f[1]||(f[1]=c=>r.roles=c),mode:"multiple",options:t(o)},null,8,["value","options"])]),_:1})]),_:1},8,["model"])]),_:1}))}}),$e=b({__name:"View",props:{loading:{type:Boolean},users:{},onCreate:{type:Function},onEdit:{type:Function},onDelete:{type:Function}},setup(s){const e=s,a=H(()=>{var o;return{columns:[{title:"Email"},{title:"Roles"},{title:"",align:"right"}],rows:(o=e.users.map(r=>({key:r.email,cells:[{type:"text",text:r.email},{type:"slot",key:"roles",payload:{roles:r.roles}},{type:"actions",actions:[{icon:te,label:"Edit",onClick:()=>e.onEdit(r)},{icon:X,label:"Delete",onClick:()=>e.onDelete(r)}]}]})))!=null?o:[]}});return(o,r)=>(y(),g(ee,{"entity-name":"users",title:"",loading:o.loading,description:"List all app users.","empty-title":"No users yet",table:a.value,"create-button-text":"Add users",create:o.onCreate},{roles:l(({payload:i})=>[(y(!0),Q(W,null,ve(i.roles,m=>(y(),g(t(_e),{key:m,bordered:""},{default:l(()=>[h(we(m),1)]),_:2},1024))),128))]),_:1},8,["loading","table","create"]))}}),De=b({__name:"NewRole",emits:["created","cancel"],setup(s,{emit:e}){const a=S({name:"",description:""});function o(){e("cancel")}function r(){!a.name||e("created",a)}return(i,m)=>(y(),g(t(F),{open:"",title:"New role",width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:o},{extra:l(()=>[n(t(E),null,{default:l(()=>[n(t(_),{onClick:o},{default:l(()=>[h("Cancel")]),_:1}),n(t(_),{type:"primary",onClick:r},{default:l(()=>[h("Submit")]),_:1})]),_:1})]),default:l(()=>[n(t(B),{model:a,layout:"vertical"},{default:l(()=>[n(t(w),{key:"name",label:"Name",required:!0},{default:l(()=>[n(t(T),{value:a.name,"onUpdate:value":m[0]||(m[0]=p=>a.name=p)},null,8,["value"])]),_:1}),n(t(w),{key:"description",label:"Description"},{default:l(()=>[n(t(Y),{value:a.description,"onUpdate:value":m[1]||(m[1]=p=>a.description=p),placeholder:"Optional description",rows:3},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1}))}}),Ie=b({__name:"UpdateRole",props:{name:{},description:{}},emits:["updated","cancel"],setup(s,{emit:e}){const a=s,o=S({description:a.description});function r(){e("cancel")}function i(){e("updated",o)}return(m,p)=>(y(),g(t(F),{open:"",title:"Update role",width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:r},{extra:l(()=>[n(t(E),null,{default:l(()=>[n(t(_),{onClick:r},{default:l(()=>[h("Cancel")]),_:1}),n(t(_),{type:"primary",onClick:i},{default:l(()=>[h("Submit")]),_:1})]),_:1})]),default:l(()=>[n(t(B),{model:o,layout:"vertical"},{default:l(()=>[n(t(w),{key:"name",label:"Name"},{default:l(()=>[n(t(T),{value:a.name,disabled:""},null,8,["value"])]),_:1}),n(t(w),{key:"role",label:"Role"},{default:l(()=>[n(t(Y),{value:o.description,"onUpdate:value":p[0]||(p[0]=f=>o.description=f),placeholder:"Optional description",rows:3},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1}))}}),je=b({__name:"View",props:{loading:{type:Boolean},roles:{},onCreate:{type:Function},onEdit:{type:Function},onDelete:{type:Function}},setup(s){const e=s,a=H(()=>{var o;return{columns:[{title:"Name"},{title:"Description"},{title:"",align:"right"}],rows:(o=e.roles.map(r=>({key:r.id,cells:[{type:"text",text:r.name},{type:"text",text:r.description},{type:"actions",actions:[{icon:te,label:"Edit",onClick:()=>e.onEdit(r)},{icon:X,label:"Delete",onClick:()=>e.onDelete(r)}]}]})))!=null?o:[]}});return(o,r)=>(y(),g(ee,{"entity-name":"roles",loading:o.loading,title:"",description:"List all app roles.","empty-title":"No roles yet",table:a.value,"create-button-text":"Add roles",create:o.onCreate},null,8,["loading","table","create"]))}}),N=class{constructor(e){U(this,"record");this.dto=e,this.record=ae.from(e)}static from(e){return new N(e)}toDTO(){return this.record.toDTO()}get id(){return this.record.get("id")}get projectId(){return this.record.get("projectId")}get emailPatterns(){return this.record.get("emailPatterns")}set emailPatterns(e){this.record.set("emailPatterns",e)}get hasChanges(){return this.record.hasChangesDeep("emailPatterns")}get strategy(){return this.dto.emailPatterns.length===0?"inviteOnly":"patternOnly"}get changes(){return this.record.changes}allowOnlyInvited(){this.record.set("emailPatterns",[])}static validate(e){return N.pattern.test(e)}};let A=N;U(A,"pattern",new RegExp("^@?(?!-)[A-Za-z0-9-]{1,}(?<!-)(\\.[A-Za-z]{2,})+$"));class Ne{constructor(){U(this,"urlPath","signup-policy")}async update(e,a){return R.patch(`projects/${e}/${this.urlPath}`,a)}async get(e){return R.get(`projects/${e}/${this.urlPath}`)}}const K=new Ne;class Se{constructor(e){this.projectId=e}async update(e){const{emailPatterns:a}=e.changes;if(!a)return e;const o=await K.update(this.projectId,{emailPatterns:a});return A.from(o)}async get(){const e=await K.get(this.projectId);return A.from(e)}}class z{constructor(e){U(this,"record");this.dto=e,this.record=ae.from(e)}static from(e){return new z(e)}toDTO(){return this.record.toDTO()}get changes(){return this.record.changes}get id(){return this.record.get("id")}get email(){return this.record.get("email")}set email(e){this.record.set("email",e)}get projectId(){return this.record.get("projectId")}get roles(){return this.record.get("roles")}set roles(e){this.record.set("roles",e)}update(e){this.record.update(e)}resetChanges(){this.record.resetChanges()}}class Te{constructor(){U(this,"urlPath","users")}async create(e,a){return R.post(`projects/${e}/${this.urlPath}`,a)}async delete(e,a){await R.delete(`projects/${e}/${this.urlPath}/${a}`)}async list(e,{limit:a,offset:o}){const r={};a&&(r.limit=a.toString()),o&&(r.offset=o.toString());const i=new URLSearchParams(r);return R.get(`projects/${e}/${this.urlPath}?${i.toString()}`)}async update(e,a,o){return R.patch(`projects/${e}/${this.urlPath}/${a}`,o)}}const j=new Te;class Be{constructor(e){this.projectId=e}async create(e){await j.create(this.projectId,e)}async update(e,a){await j.update(this.projectId,e,a)}async delete(e){await j.delete(this.projectId,e)}async list(e,a){return(await j.list(this.projectId,{limit:e,offset:a})).map(z.from)}}const at=b({__name:"View",setup(s){const a=be().params.projectId,o=x({type:"initial"}),r=x("users");Ce(()=>{const d=new URLSearchParams(location.search).get("selected-panel")||"users",v=["roles","users"].includes(d)?d:"users";d&&(r.value=v)});const i=()=>{o.value.type="initial"},m=()=>{o.value.type="creatingUser"},p=u=>{o.value={type:"editingUser",payload:u}},f=()=>{o.value.type="creatingRole"},c=u=>{o.value={type:"editingRole",payload:u}},C=new Se(a),{result:P,refetch:oe}=q(()=>C.get()),re=async()=>{if(!!P.value)try{await C.update(P.value),oe()}catch(u){u instanceof Error&&k("Update Error",u.message)}},O=new Be(a),{loading:ne,result:le,refetch:$}=q(()=>O.list(100,0)),D=new Re(a),{loading:se,result:V,refetch:L}=q(()=>D.list(100,0)),ie=async u=>{try{if(o.value.type!=="creatingUser")return;await O.create(u),i(),$()}catch(d){d instanceof Error&&k("Create Error",d.message)}},ce=async u=>{try{if(o.value.type!=="editingUser")return;await O.update(o.value.payload.id,u),i(),$()}catch(d){d instanceof Error&&k("Update Error",d.message)}},ue=async u=>{if(!!await M("Deleting users revoke their access to your application (in case they aren't allowed by a domain rule). Are you sure you want to continue?"))try{await O.delete(u.id),$()}catch(v){v instanceof Error&&k("Delete Error",v.message)}},de=async u=>{try{if(o.value.type!=="creatingRole")return;await D.create(u),i(),L()}catch(d){d instanceof Error&&k("Create Error",d.message)}},pe=async u=>{try{if(o.value.type!=="editingRole")return;await D.update(o.value.payload.id,u),i(),L()}catch(d){d instanceof Error&&k("Update Error",d.message)}},ye=async u=>{if(!!await M("Deleteing roles may revoke access to some features in your application. Are you sure you want to continue?"))try{await D.delete(u.id),L(),$()}catch(v){v instanceof Error&&k("Delete Error",v.message)}};return(u,d)=>(y(),Q(W,null,[n(t(ke),null,{default:l(()=>[h("Access Control")]),_:1}),n(t(Pe),null,{default:l(()=>[h(" Manage how your end users interect with your application. "),n(Ue,{path:"tools/access-control"})]),_:1}),n(t(Ee),{"active-key":r.value,"onUpdate:activeKey":d[0]||(d[0]=v=>r.value=v)},{default:l(()=>[n(t(Z),{key:"users",tab:"Users"}),n(t(Z),{key:"roles",tab:"Roles"})]),_:1},8,["active-key"]),r.value==="users"&&t(P)?(y(),g(xe,{key:0,"signup-policy":t(P),onSave:re},null,8,["signup-policy"])):I("",!0),r.value==="users"?(y(),g($e,{key:1,loading:t(ne),users:t(le)||[],onCreate:m,onEdit:p,onDelete:ue},null,8,["loading","users"])):I("",!0),r.value==="roles"?(y(),g(je,{key:2,loading:t(se),roles:t(V)||[],onCreate:f,onEdit:c,onDelete:ye},null,8,["loading","roles"])):I("",!0),o.value.type==="creatingUser"?(y(),g(Ae,{key:3,"role-options":t(V)||[],onCancel:i,onCreated:ie},null,8,["role-options"])):o.value.type==="editingUser"?(y(),g(Oe,{key:4,email:o.value.payload.email,roles:o.value.payload.roles||[],"role-options":t(V)||[],onUpdated:ce,onCancel:i},null,8,["email","roles","role-options"])):o.value.type==="creatingRole"?(y(),g(De,{key:5,onCancel:i,onCreated:de})):o.value.type==="editingRole"?(y(),g(Ie,{key:6,name:o.value.payload.name,description:o.value.payload.description,onUpdated:pe,onCancel:i},null,8,["name","description"])):I("",!0)],64))}});export{at as default};
2
- //# sourceMappingURL=View.5fd7ddf0.js.map
1
+ var me=Object.defineProperty;var fe=(s,e,a)=>e in s?me(s,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):s[e]=a;var U=(s,e,a)=>(fe(s,typeof e!="symbol"?e+"":e,a),a);import{a as q}from"./asyncComputed.47aec2b5.js";import{d as b,r as x,a as g,b as l,u as t,o as y,f as r,cN as J,g as h,aB as G,cP as ge,bR as _,dc as he,ae as S,cx as w,bJ as T,cw as B,c as H,a5 as Q,ec as ve,d2 as _e,ed as we,aR as W,en as X,cC as Y,eb as be,J as Ce,h as I,A as ke,d7 as Pe}from"./jwt-decode.esm.54a1ea22.js";import{A as E}from"./index.966ac1b9.js";import{_ as Ue}from"./DocsButton.vue_vue_type_script_setup_true_lang.689d8ce7.js";import{d as F,k as R,p as k}from"./router.4dfadf5d.js";import{C as ee}from"./CrudView.cc6aeaf0.js";import{G as te}from"./PhPencil.vue.feb383e2.js";import{C as Re}from"./repository.66c7567c.js";import{E as ae}from"./record.e83a2eb2.js";import{a as M}from"./ant-design.42419021.js";import{A as Z,T as Ee}from"./Card.fc77085c.js";import"./constants.d569f33d.js";import"./index.c7a996a6.js";import"./url.f5664225.js";import"./PhDotsThreeVertical.vue.5e8ae2a9.js";import"./fetch.1b3d01a0.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="e76bde38-a623-4d0e-9d72-775bd1c771f9",s._sentryDebugIdIdentifier="sentry-dbid-e76bde38-a623-4d0e-9d72-775bd1c771f9")}catch{}})();const xe=b({__name:"View",props:{signupPolicy:{}},emits:["updated","save"],setup(s,{emit:e}){const a=s,o=x(a.signupPolicy.strategy),n=x(a.signupPolicy.strategy==="patternOnly"?a.signupPolicy.emailPatterns:[]),i=x(a.signupPolicy.strategy==="patternOnly"?a.signupPolicy.emailPatterns.map(c=>({label:c})):[]),m=c=>{const C=c;if(n.value=C,C.length===0){o.value="inviteOnly",f("inviteOnly");return}i.value=C.map(P=>({label:P})),a.signupPolicy.emailPatterns=c,e("updated",a.signupPolicy)},p=()=>{e("save")},f=c=>{o.value=c,c!=="patternOnly"&&(c==="inviteOnly"&&a.signupPolicy.allowOnlyInvited(),e("updated",a.signupPolicy))};return(c,C)=>(y(),g(t(he),{style:{"padding-top":"8px",width:"100%"},justify:"space-between",align:"flex-end"},{default:l(()=>[r(t(ge),{value:o.value,"onUpdate:value":f},{default:l(()=>[r(t(E),{direction:"vertical"},{default:l(()=>[r(t(J),{value:"inviteOnly"},{default:l(()=>[h("Allow listed users only")]),_:1}),r(t(E),null,{default:l(()=>[r(t(J),{value:"patternOnly"},{default:l(()=>[h("Allow everyone from this domain:")]),_:1}),r(t(G),{mode:"tags",value:c.signupPolicy.emailPatterns,style:{"min-width":"300px"},placeholder:"@domain.com or sub.domain.com",disabled:o.value!=="patternOnly",options:i.value,"dropdown-match-select-width":"",open:!1,"onUpdate:value":m},null,8,["value","disabled","options"])]),_:1})]),_:1})]),_:1},8,["value"]),r(t(_),{disabled:!c.signupPolicy.hasChanges,type:"primary",onClick:p},{default:l(()=>[h(" Save changes ")]),_:1},8,["disabled"])]),_:1}))}}),Ae=b({__name:"NewUser",props:{roleOptions:{}},emits:["created","cancel"],setup(s,{emit:e}){const o=s.roleOptions.map(p=>({label:p.name,value:p.name})),n=S({email:"",roles:[]});function i(){e("cancel")}function m(){!n.email||e("created",n)}return(p,f)=>(y(),g(t(F),{open:"",title:"New user",width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:i},{extra:l(()=>[r(t(E),null,{default:l(()=>[r(t(_),{onClick:i},{default:l(()=>[h("Cancel")]),_:1}),r(t(_),{type:"primary",onClick:m},{default:l(()=>[h("Submit")]),_:1})]),_:1})]),default:l(()=>[r(t(B),{model:n,layout:"vertical"},{default:l(()=>[r(t(w),{key:"email",label:"Email",required:!0},{default:l(()=>[r(t(T),{value:n.email,"onUpdate:value":f[0]||(f[0]=c=>n.email=c)},null,8,["value"])]),_:1}),r(t(w),{key:"role",label:"Role"},{default:l(()=>[r(t(G),{value:n.roles,"onUpdate:value":f[1]||(f[1]=c=>n.roles=c),mode:"multiple",options:t(o)},null,8,["value","options"])]),_:1})]),_:1},8,["model"])]),_:1}))}}),Oe=b({__name:"UpdateUser",props:{roleOptions:{},email:{},roles:{}},emits:["updated","cancel"],setup(s,{emit:e}){const a=s,o=a.roleOptions.map(p=>({label:p.name,value:p.name})),n=S({email:a.email,roles:a.roles});function i(){e("cancel")}function m(){e("updated",n)}return(p,f)=>(y(),g(t(F),{open:"",title:"Update user",width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:i},{extra:l(()=>[r(t(E),null,{default:l(()=>[r(t(_),{onClick:i},{default:l(()=>[h("Cancel")]),_:1}),r(t(_),{type:"primary",onClick:m},{default:l(()=>[h("Submit")]),_:1})]),_:1})]),default:l(()=>[r(t(B),{model:n,layout:"vertical"},{default:l(()=>[r(t(w),{key:"email",label:"Email"},{default:l(()=>[r(t(T),{value:n.email,"onUpdate:value":f[0]||(f[0]=c=>n.email=c)},null,8,["value"])]),_:1}),r(t(w),{key:"role",label:"Role"},{default:l(()=>[r(t(G),{value:n.roles,"onUpdate:value":f[1]||(f[1]=c=>n.roles=c),mode:"multiple",options:t(o)},null,8,["value","options"])]),_:1})]),_:1},8,["model"])]),_:1}))}}),$e=b({__name:"View",props:{loading:{type:Boolean},users:{},onCreate:{type:Function},onEdit:{type:Function},onDelete:{type:Function}},setup(s){const e=s,a=H(()=>{var o;return{columns:[{title:"Email"},{title:"Roles"},{title:"",align:"right"}],rows:(o=e.users.map(n=>({key:n.email,cells:[{type:"text",text:n.email},{type:"slot",key:"roles",payload:{roles:n.roles}},{type:"actions",actions:[{icon:te,label:"Edit",onClick:()=>e.onEdit(n)},{icon:X,label:"Delete",onClick:()=>e.onDelete(n)}]}]})))!=null?o:[]}});return(o,n)=>(y(),g(ee,{"entity-name":"users",title:"",loading:o.loading,description:"List all app users.","empty-title":"No users yet",table:a.value,"create-button-text":"Add users",create:o.onCreate},{roles:l(({payload:i})=>[(y(!0),Q(W,null,ve(i.roles,m=>(y(),g(t(_e),{key:m,bordered:""},{default:l(()=>[h(we(m),1)]),_:2},1024))),128))]),_:1},8,["loading","table","create"]))}}),De=b({__name:"NewRole",emits:["created","cancel"],setup(s,{emit:e}){const a=S({name:"",description:""});function o(){e("cancel")}function n(){!a.name||e("created",a)}return(i,m)=>(y(),g(t(F),{open:"",title:"New role",width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:o},{extra:l(()=>[r(t(E),null,{default:l(()=>[r(t(_),{onClick:o},{default:l(()=>[h("Cancel")]),_:1}),r(t(_),{type:"primary",onClick:n},{default:l(()=>[h("Submit")]),_:1})]),_:1})]),default:l(()=>[r(t(B),{model:a,layout:"vertical"},{default:l(()=>[r(t(w),{key:"name",label:"Name",required:!0},{default:l(()=>[r(t(T),{value:a.name,"onUpdate:value":m[0]||(m[0]=p=>a.name=p)},null,8,["value"])]),_:1}),r(t(w),{key:"description",label:"Description"},{default:l(()=>[r(t(Y),{value:a.description,"onUpdate:value":m[1]||(m[1]=p=>a.description=p),placeholder:"Optional description",rows:3},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1}))}}),Ie=b({__name:"UpdateRole",props:{name:{},description:{}},emits:["updated","cancel"],setup(s,{emit:e}){const a=s,o=S({description:a.description});function n(){e("cancel")}function i(){e("updated",o)}return(m,p)=>(y(),g(t(F),{open:"",title:"Update role",width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:n},{extra:l(()=>[r(t(E),null,{default:l(()=>[r(t(_),{onClick:n},{default:l(()=>[h("Cancel")]),_:1}),r(t(_),{type:"primary",onClick:i},{default:l(()=>[h("Submit")]),_:1})]),_:1})]),default:l(()=>[r(t(B),{model:o,layout:"vertical"},{default:l(()=>[r(t(w),{key:"name",label:"Name"},{default:l(()=>[r(t(T),{value:a.name,disabled:""},null,8,["value"])]),_:1}),r(t(w),{key:"role",label:"Role"},{default:l(()=>[r(t(Y),{value:o.description,"onUpdate:value":p[0]||(p[0]=f=>o.description=f),placeholder:"Optional description",rows:3},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1}))}}),je=b({__name:"View",props:{loading:{type:Boolean},roles:{},onCreate:{type:Function},onEdit:{type:Function},onDelete:{type:Function}},setup(s){const e=s,a=H(()=>{var o;return{columns:[{title:"Name"},{title:"Description"},{title:"",align:"right"}],rows:(o=e.roles.map(n=>({key:n.id,cells:[{type:"text",text:n.name},{type:"text",text:n.description},{type:"actions",actions:[{icon:te,label:"Edit",onClick:()=>e.onEdit(n)},{icon:X,label:"Delete",onClick:()=>e.onDelete(n)}]}]})))!=null?o:[]}});return(o,n)=>(y(),g(ee,{"entity-name":"roles",loading:o.loading,title:"",description:"List all app roles.","empty-title":"No roles yet",table:a.value,"create-button-text":"Add roles",create:o.onCreate},null,8,["loading","table","create"]))}}),N=class{constructor(e){U(this,"record");this.dto=e,this.record=ae.from(e)}static from(e){return new N(e)}toDTO(){return this.record.toDTO()}get id(){return this.record.get("id")}get projectId(){return this.record.get("projectId")}get emailPatterns(){return this.record.get("emailPatterns")}set emailPatterns(e){this.record.set("emailPatterns",e)}get hasChanges(){return this.record.hasChangesDeep("emailPatterns")}get strategy(){return this.dto.emailPatterns.length===0?"inviteOnly":"patternOnly"}get changes(){return this.record.changes}allowOnlyInvited(){this.record.set("emailPatterns",[])}static validate(e){return N.pattern.test(e)}};let A=N;U(A,"pattern",new RegExp("^@?(?!-)[A-Za-z0-9-]{1,}(?<!-)(\\.[A-Za-z]{2,})+$"));class Ne{constructor(){U(this,"urlPath","signup-policy")}async update(e,a){return R.patch(`projects/${e}/${this.urlPath}`,a)}async get(e){return R.get(`projects/${e}/${this.urlPath}`)}}const K=new Ne;class Se{constructor(e){this.projectId=e}async update(e){const{emailPatterns:a}=e.changes;if(!a)return e;const o=await K.update(this.projectId,{emailPatterns:a});return A.from(o)}async get(){const e=await K.get(this.projectId);return A.from(e)}}class z{constructor(e){U(this,"record");this.dto=e,this.record=ae.from(e)}static from(e){return new z(e)}toDTO(){return this.record.toDTO()}get changes(){return this.record.changes}get id(){return this.record.get("id")}get email(){return this.record.get("email")}set email(e){this.record.set("email",e)}get projectId(){return this.record.get("projectId")}get roles(){return this.record.get("roles")}set roles(e){this.record.set("roles",e)}update(e){this.record.update(e)}resetChanges(){this.record.resetChanges()}}class Te{constructor(){U(this,"urlPath","users")}async create(e,a){return R.post(`projects/${e}/${this.urlPath}`,a)}async delete(e,a){await R.delete(`projects/${e}/${this.urlPath}/${a}`)}async list(e,{limit:a,offset:o}){const n={};a&&(n.limit=a.toString()),o&&(n.offset=o.toString());const i=new URLSearchParams(n);return R.get(`projects/${e}/${this.urlPath}?${i.toString()}`)}async update(e,a,o){return R.patch(`projects/${e}/${this.urlPath}/${a}`,o)}}const j=new Te;class Be{constructor(e){this.projectId=e}async create(e){await j.create(this.projectId,e)}async update(e,a){await j.update(this.projectId,e,a)}async delete(e){await j.delete(this.projectId,e)}async list(e,a){return(await j.list(this.projectId,{limit:e,offset:a})).map(z.from)}}const at=b({__name:"View",setup(s){const a=be().params.projectId,o=x({type:"initial"}),n=x("users");Ce(()=>{const d=new URLSearchParams(location.search).get("selected-panel")||"users",v=["roles","users"].includes(d)?d:"users";d&&(n.value=v)});const i=()=>{o.value.type="initial"},m=()=>{o.value.type="creatingUser"},p=u=>{o.value={type:"editingUser",payload:u}},f=()=>{o.value.type="creatingRole"},c=u=>{o.value={type:"editingRole",payload:u}},C=new Se(a),{result:P,refetch:oe}=q(()=>C.get()),ne=async()=>{if(!!P.value)try{await C.update(P.value),oe()}catch(u){u instanceof Error&&k("Update Error",u.message)}},O=new Be(a),{loading:re,result:le,refetch:$}=q(()=>O.list(100,0)),D=new Re(a),{loading:se,result:V,refetch:L}=q(()=>D.list(100,0)),ie=async u=>{try{if(o.value.type!=="creatingUser")return;await O.create(u),i(),$()}catch(d){d instanceof Error&&k("Create Error",d.message)}},ce=async u=>{try{if(o.value.type!=="editingUser")return;await O.update(o.value.payload.id,u),i(),$()}catch(d){d instanceof Error&&k("Update Error",d.message)}},ue=async u=>{if(!!await M("Deleting users revoke their access to your application (in case they aren't allowed by a domain rule). Are you sure you want to continue?"))try{await O.delete(u.id),$()}catch(v){v instanceof Error&&k("Delete Error",v.message)}},de=async u=>{try{if(o.value.type!=="creatingRole")return;await D.create(u),i(),L()}catch(d){d instanceof Error&&k("Create Error",d.message)}},pe=async u=>{try{if(o.value.type!=="editingRole")return;await D.update(o.value.payload.id,u),i(),L()}catch(d){d instanceof Error&&k("Update Error",d.message)}},ye=async u=>{if(!!await M("Deleteing roles may revoke access to some features in your application. Are you sure you want to continue?"))try{await D.delete(u.id),L(),$()}catch(v){v instanceof Error&&k("Delete Error",v.message)}};return(u,d)=>(y(),Q(W,null,[r(t(ke),null,{default:l(()=>[h("Access Control")]),_:1}),r(t(Pe),null,{default:l(()=>[h(" Manage how your end users interect with your application. "),r(Ue,{path:"tools/access-control"})]),_:1}),r(t(Ee),{"active-key":n.value,"onUpdate:activeKey":d[0]||(d[0]=v=>n.value=v)},{default:l(()=>[r(t(Z),{key:"users",tab:"Users"}),r(t(Z),{key:"roles",tab:"Roles"})]),_:1},8,["active-key"]),n.value==="users"&&t(P)?(y(),g(xe,{key:0,"signup-policy":t(P),onSave:ne},null,8,["signup-policy"])):I("",!0),n.value==="users"?(y(),g($e,{key:1,loading:t(re),users:t(le)||[],onCreate:m,onEdit:p,onDelete:ue},null,8,["loading","users"])):I("",!0),n.value==="roles"?(y(),g(je,{key:2,loading:t(se),roles:t(V)||[],onCreate:f,onEdit:c,onDelete:ye},null,8,["loading","roles"])):I("",!0),o.value.type==="creatingUser"?(y(),g(Ae,{key:3,"role-options":t(V)||[],onCancel:i,onCreated:ie},null,8,["role-options"])):o.value.type==="editingUser"?(y(),g(Oe,{key:4,email:o.value.payload.email,roles:o.value.payload.roles||[],"role-options":t(V)||[],onUpdated:ce,onCancel:i},null,8,["email","roles","role-options"])):o.value.type==="creatingRole"?(y(),g(De,{key:5,onCancel:i,onCreated:de})):o.value.type==="editingRole"?(y(),g(Ie,{key:6,name:o.value.payload.name,description:o.value.payload.description,onUpdated:pe,onCancel:i},null,8,["name","description"])):I("",!0)],64))}});export{at as default};
2
+ //# sourceMappingURL=View.dd7ba25a.js.map
@@ -1,2 +1,2 @@
1
- var x=Object.defineProperty;var _=(n,e,t)=>e in n?x(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var s=(n,e,t)=>(_(n,typeof e!="symbol"?e+"":e,t),t);import{k as C}from"./router.424f7da9.js";import{l as D}from"./fetch.89fd5b7b.js";import{E as U}from"./record.7f43486c.js";import{N as I,r as R,em as S,d as $,w as F,J as O,aq as B,a5 as L,u as a,a as h,eo as M,b as o,h as v,aR as N,o as c,g as m,ed as w,f as y,cw as P,d8 as G,cC as W,cx as z,M as J}from"./jwt-decode.esm.d4517a10.js";import{S as A}from"./SaveButton.719393d2.js";import{C as Z}from"./CrudView.c0824225.js";import{a as q}from"./asyncComputed.cf5282fc.js";import{o as f}from"./omniChatStore.c53bcca2.js";import{G as H}from"./PhPencil.vue.2f2fe576.js";import{u as K}from"./useCodebaseEvents.53dec1f2.js";import{A as Q}from"./index.2af3391c.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="917264e5-3d34-4dc0-a2e4-723ac6994403",n._sentryDebugIdIdentifier="sentry-dbid-917264e5-3d34-4dc0-a2e4-723ac6994403")}catch{}})();class g{constructor(e){s(this,"data");s(this,"deleted");s(this,"wasDeleted",e=>this.deleted.value.includes(e));s(this,"wasUpdated",e=>this.data.hasChangesDeep(e));s(this,"set",(e,t)=>{this.data.set(e,t),this.deleted.value=this.deleted.value.filter(i=>i!==e)});s(this,"get",e=>{if(!this.deleted.value.includes(e))return this.data.get(e)});s(this,"delete",e=>{this.deleted.value=[...this.deleted.value,e]});s(this,"values",()=>{const e={},t=Object.keys(this.data.changes).concat(Object.keys(this.data.initialState));for(const i of t)this.deleted.value.includes(i)||(e[i]=this.data.get(i));return e});s(this,"commit",()=>{this.data=U.from(this.values()),this.deleted.value=[]});this.data=U.from(e),this.deleted=I([])}static from(e){const t=e.reduce((i,{name:d,value:p})=>(i[d]=p,i),{});return new g(t)}get changes(){const e=this.deleted.value.map(t=>({name:t,change:"delete"}));for(const t of Object.keys(this.data.changes))if(!this.deleted.value.includes(t)){if(this.data.initialState[t]===void 0){e.push({name:t,value:this.data.get(t),change:"create"});continue}this.data.hasChangesDeep(t)&&e.push({name:t,value:this.data.get(t),change:"update"})}return e}}class X{constructor(){s(this,"urlPath","env-vars")}async list(e){return await C.get(`projects/${e}/${this.urlPath}`)}async update(e,t){await C.patch(`projects/${e}/${this.urlPath}`,t)}}const T=new X;class ue{constructor(e){this.projectId=e}async get(){const e=await T.list(this.projectId);return g.from(e.map(t=>({...t,value:""})))}async update(e){await T.update(this.projectId,e)}}class he{constructor(e=D){this.fetch=e}async get(){const e=await this.fetch("/_editor/api/env-vars");if(!e.ok)throw new Error("Failed to list env vars");const t=await e.json();return g.from(t)}async update(e){await this.fetch("/_editor/api/env-vars",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}}class b{constructor(e,t,i){s(this,"envVarRepo");s(this,"envVars");s(this,"state",R({type:"idle"}));s(this,"mode");s(this,"validate",e=>{const t=/^[A-Za-z_][A-Za-z0-9_]*$/,{key:i,value:d}=e;if(d.trim()!==d)throw new Error("Environment variable values cannot have leading or trailing whitespace.");if(!t.test(i))throw new Error(`Invalid key: \u2018${i}\u2019. A key must begin with a letter or an underscore, and may only include letters, numbers, and underscores.`)});s(this,"create",e=>{this.validate(e),this.envVars.set(e.key,e.value),this.state.value={type:"idle"}});s(this,"delete",e=>{this.envVars.delete(e),this.state.value={type:"idle"}});s(this,"startUpdating",e=>{this.state.value={type:"updating",name:e,value:this.envVars.get(e)||""}});s(this,"confirmUpdate",()=>{this.state.value.type==="updating"&&(this.envVars.set(this.state.value.name,this.state.value.value),this.state.value={type:"idle"})});s(this,"cancelUpdate",()=>{this.state.value={type:"idle"}});s(this,"refetch",async()=>{if(!this.isLocalEditor)return;const e=await this.envVarRepo.get();Object.entries(e.values()).forEach(([t,i])=>{this.envVars.wasDeleted(t)||this.envVars.get(t)===void 0&&this.envVars.set(t,i)})});s(this,"columns",()=>[{title:"Key"},{title:"Value"},{title:""}]);s(this,"rows",()=>Object.entries(this.envVars.values()).map(([e])=>({key:e,cells:[{type:"text",text:e,contentType:this.wasUpdated(e)?"warning":"default"},{type:"text",text:"*********",contentType:this.wasUpdated(e)?"warning":"default"},{type:"actions",actions:[{icon:S,label:"Delete",onClick:()=>this.delete(e),dangerous:!0},{icon:H,label:"Update",onClick:()=>this.startUpdating(e)}]}]})));s(this,"save",async()=>{await this.envVarRepo.update(this.envVars.changes),this.envVars.commit()});s(this,"hasChanges",()=>this.envVars.changes.length>0);s(this,"table",()=>({columns:this.columns(),rows:this.rows()}));this.envVarRepo=e,this.envVars=t,this.mode=i}static async create(e,t){const i=await e.get();return new b(e,i,t)}get isLocalEditor(){return this.mode==="editor"}get saveMessage(){return this.isLocalEditor?"Save":"Save and Apply"}get creationFields(){return[{label:"Variable name",key:"key"},{label:"Variable value",key:"value",type:"multiline-text"}]}get isUpdating(){return this.state.value.type==="updating"}wasUpdated(e){return this.envVars.wasUpdated(e)}}const ve=$({__name:"View",props:{envVarRepository:{},mode:{},hideTitle:{type:Boolean}},setup(n){const e=n,{result:t,loading:i,refetch:d}=q(async()=>await b.create(e.envVarRepository,e.mode)),p=K();F(p.lastEvent,async l=>{var r;l&&l.filepath&&l.filepath.endsWith(".env")&&await((r=t.value)==null?void 0:r.refetch())});const j={columns:[],rows:[]};return O(()=>{const l=f.subscribe("envVarCreated",()=>{d()}),r=f.subscribe("envVarEdited",()=>{d()});B(()=>{f.unsubscribe(l),f.unsubscribe(r)})}),(l,r)=>{var V,k;return c(),L(N,null,[a(t)?(c(),h(Z,{key:0,"entity-name":"Env var",loading:a(i),title:e.hideTitle?"":"Environment Variables",description:e.hideTitle?"":"Set environment variables for your project.","empty-title":"No environment variables set",table:a(t).table()||j,"create-button-text":"Add Environment Variable",create:a(t).create,fields:a(t).creationFields||[],live:a(t).isLocalEditor},M({_:2},[(V=a(t))!=null&&V.isLocalEditor?{name:"secondary",fn:o(()=>[l.mode=="editor"?(c(),h(A,{key:0,model:a(t),disabled:!a(t).hasChanges()},{"with-changes":o(()=>[m(w(a(t).saveMessage),1)]),_:1},8,["model","disabled"])):v("",!0)]),key:"0"}:void 0,(k=a(t))!=null&&k.isLocalEditor?{name:"extra",fn:o(()=>[y(a(Q),{"show-icon":"",style:{"margin-top":"20px"}},{message:o(()=>[m(" This is simply a helper to manage your environment variables locally. The variables set here will not be deployed to Cloud with your project. ")]),_:1})]),key:"1"}:void 0,a(t)?{name:"more",fn:o(()=>[l.mode=="console"?(c(),h(A,{key:0,model:a(t),disabled:!a(t).hasChanges()},{"with-changes":o(()=>[m(w(a(t).saveMessage),1)]),_:1},8,["model","disabled"])):v("",!0)]),key:"2"}:void 0]),1032,["loading","title","description","table","create","fields","live"])):v("",!0),a(t)?(c(),h(a(J),{key:1,open:a(t).isUpdating,title:"Update value",onCancel:r[1]||(r[1]=u=>{var E;return(E=a(t))==null?void 0:E.cancelUpdate()}),onOk:r[2]||(r[2]=()=>{var u;return(u=a(t))==null?void 0:u.confirmUpdate()})},{default:o(()=>[a(t).state.value.type==="updating"?(c(),h(a(P),{key:0,layout:"vertical"},{default:o(()=>[y(a(z),null,{default:o(()=>[y(a(G),null,{default:o(()=>[m(w(a(t).state.value.name),1)]),_:1}),y(a(W),{value:a(t).state.value.value,"onUpdate:value":r[0]||(r[0]=u=>a(t).state.value.value=u)},null,8,["value"])]),_:1})]),_:1})):v("",!0)]),_:1},8,["open"])):v("",!0)],64)}}});export{ue as C,he as E,ve as _};
2
- //# sourceMappingURL=View.vue_vue_type_script_setup_true_lang.a904f400.js.map
1
+ var x=Object.defineProperty;var _=(i,e,t)=>e in i?x(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var s=(i,e,t)=>(_(i,typeof e!="symbol"?e+"":e,t),t);import{k as C}from"./router.4dfadf5d.js";import{l as D}from"./fetch.1b3d01a0.js";import{E as U}from"./record.e83a2eb2.js";import{N as I,r as R,en as S,d as $,w as F,J as O,aq as B,a5 as L,u as a,a as h,ek as M,b as o,h as v,aR as N,o as u,g as f,ed as b,f as y,cw as P,d8 as G,cC as W,cx as z,M as J}from"./jwt-decode.esm.54a1ea22.js";import{S as A}from"./SaveButton.428227de.js";import{C as Z}from"./CrudView.cc6aeaf0.js";import{a as q}from"./asyncComputed.47aec2b5.js";import{o as m}from"./omniChatStore.dd7a1c46.js";import{G as H}from"./PhPencil.vue.feb383e2.js";import{u as K}from"./useCodebaseEvents.276cc8f0.js";import{A as Q}from"./index.d53182ed.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="868c0aff-9bbe-40e8-8fd0-e234bf0d0bd2",i._sentryDebugIdIdentifier="sentry-dbid-868c0aff-9bbe-40e8-8fd0-e234bf0d0bd2")}catch{}})();class g{constructor(e){s(this,"data");s(this,"deleted");s(this,"wasDeleted",e=>this.deleted.value.includes(e));s(this,"wasUpdated",e=>this.data.hasChangesDeep(e));s(this,"set",(e,t)=>{this.data.set(e,t),this.deleted.value=this.deleted.value.filter(n=>n!==e)});s(this,"get",e=>{if(!this.deleted.value.includes(e))return this.data.get(e)});s(this,"delete",e=>{this.deleted.value=[...this.deleted.value,e]});s(this,"values",()=>{const e={},t=Object.keys(this.data.changes).concat(Object.keys(this.data.initialState));for(const n of t)this.deleted.value.includes(n)||(e[n]=this.data.get(n));return e});s(this,"commit",()=>{this.data=U.from(this.values()),this.deleted.value=[]});this.data=U.from(e),this.deleted=I([])}static from(e){const t=e.reduce((n,{name:d,value:p})=>(n[d]=p,n),{});return new g(t)}get changes(){const e=this.deleted.value.map(t=>({name:t,change:"delete"}));for(const t of Object.keys(this.data.changes))if(!this.deleted.value.includes(t)){if(this.data.initialState[t]===void 0){e.push({name:t,value:this.data.get(t),change:"create"});continue}this.data.hasChangesDeep(t)&&e.push({name:t,value:this.data.get(t),change:"update"})}return e}}class X{constructor(){s(this,"urlPath","env-vars")}async list(e){return await C.get(`projects/${e}/${this.urlPath}`)}async update(e,t){await C.patch(`projects/${e}/${this.urlPath}`,t)}}const T=new X;class ce{constructor(e){this.projectId=e}async get(){const e=await T.list(this.projectId);return g.from(e.map(t=>({...t,value:""})))}async update(e){await T.update(this.projectId,e)}}class he{constructor(e=D){this.fetch=e}async get(){const e=await this.fetch("/_editor/api/env-vars");if(!e.ok)throw new Error("Failed to list env vars");const t=await e.json();return g.from(t)}async update(e){await this.fetch("/_editor/api/env-vars",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}}class w{constructor(e,t,n){s(this,"envVarRepo");s(this,"envVars");s(this,"state",R({type:"idle"}));s(this,"mode");s(this,"validate",e=>{const t=/^[A-Za-z_][A-Za-z0-9_]*$/,{key:n,value:d}=e;if(d.trim()!==d)throw new Error("Environment variable values cannot have leading or trailing whitespace.");if(!t.test(n))throw new Error(`Invalid key: \u2018${n}\u2019. A key must begin with a letter or an underscore, and may only include letters, numbers, and underscores.`)});s(this,"create",e=>{this.validate(e),this.envVars.set(e.key,e.value),this.state.value={type:"idle"}});s(this,"delete",e=>{this.envVars.delete(e),this.state.value={type:"idle"}});s(this,"startUpdating",e=>{this.state.value={type:"updating",name:e,value:this.envVars.get(e)||""}});s(this,"confirmUpdate",()=>{this.state.value.type==="updating"&&(this.envVars.set(this.state.value.name,this.state.value.value),this.state.value={type:"idle"})});s(this,"cancelUpdate",()=>{this.state.value={type:"idle"}});s(this,"refetch",async()=>{if(!this.isLocalEditor)return;const e=await this.envVarRepo.get();Object.entries(e.values()).forEach(([t,n])=>{this.envVars.wasDeleted(t)||this.envVars.get(t)===void 0&&this.envVars.set(t,n)})});s(this,"columns",()=>[{title:"Key"},{title:"Value"},{title:""}]);s(this,"rows",()=>Object.entries(this.envVars.values()).map(([e])=>({key:e,cells:[{type:"text",text:e,contentType:this.wasUpdated(e)?"warning":"default"},{type:"text",text:"*********",contentType:this.wasUpdated(e)?"warning":"default"},{type:"actions",actions:[{icon:S,label:"Delete",onClick:()=>this.delete(e),dangerous:!0},{icon:H,label:"Update",onClick:()=>this.startUpdating(e)}]}]})));s(this,"save",async()=>{await this.envVarRepo.update(this.envVars.changes),this.envVars.commit()});s(this,"hasChanges",()=>this.envVars.changes.length>0);s(this,"table",()=>({columns:this.columns(),rows:this.rows()}));this.envVarRepo=e,this.envVars=t,this.mode=n}static async create(e,t){const n=await e.get();return new w(e,n,t)}get isLocalEditor(){return this.mode==="editor"}get saveMessage(){return this.isLocalEditor?"Save":"Save and Apply"}get creationFields(){return[{label:"Variable name",key:"key"},{label:"Variable value",key:"value",type:"multiline-text"}]}get isUpdating(){return this.state.value.type==="updating"}wasUpdated(e){return this.envVars.wasUpdated(e)}}const ve=$({__name:"View",props:{envVarRepository:{},mode:{},hideTitle:{type:Boolean}},setup(i){const e=i,{result:t,loading:n,refetch:d}=q(async()=>await w.create(e.envVarRepository,e.mode)),p=K();F(p.lastEvent,async l=>{var r;l&&l.filepath&&l.filepath.endsWith(".env")&&await((r=t.value)==null?void 0:r.refetch())});const j={columns:[],rows:[]};return O(()=>{const l=m.subscribe("envVarCreated",()=>{d()}),r=m.subscribe("envVarEdited",()=>{d()});B(()=>{m.unsubscribe(l),m.unsubscribe(r)})}),(l,r)=>{var V,k;return u(),L(N,null,[a(t)?(u(),h(Z,{key:0,"entity-name":"Env var",loading:a(n),title:e.hideTitle?"":"Environment Variables",description:e.hideTitle?"":"Set environment variables for your project.","empty-title":"No environment variables set",table:a(t).table()||j,"create-button-text":"Add Environment Variable",create:a(t).create,fields:a(t).creationFields||[],live:a(t).isLocalEditor},M({_:2},[(V=a(t))!=null&&V.isLocalEditor?{name:"secondary",fn:o(()=>[l.mode=="editor"?(u(),h(A,{key:0,model:a(t),disabled:!a(t).hasChanges()},{"with-changes":o(()=>[f(b(a(t).saveMessage),1)]),_:1},8,["model","disabled"])):v("",!0)]),key:"0"}:void 0,(k=a(t))!=null&&k.isLocalEditor?{name:"extra",fn:o(()=>[y(a(Q),{"show-icon":"",style:{"margin-top":"20px"}},{message:o(()=>[f(" This is simply a helper to manage your environment variables locally. The variables set here will not be deployed to Cloud with your project. ")]),_:1})]),key:"1"}:void 0,a(t)?{name:"more",fn:o(()=>[l.mode=="console"?(u(),h(A,{key:0,model:a(t),disabled:!a(t).hasChanges()},{"with-changes":o(()=>[f(b(a(t).saveMessage),1)]),_:1},8,["model","disabled"])):v("",!0)]),key:"2"}:void 0]),1032,["loading","title","description","table","create","fields","live"])):v("",!0),a(t)?(u(),h(a(J),{key:1,open:a(t).isUpdating,title:"Update value",onCancel:r[1]||(r[1]=c=>{var E;return(E=a(t))==null?void 0:E.cancelUpdate()}),onOk:r[2]||(r[2]=()=>{var c;return(c=a(t))==null?void 0:c.confirmUpdate()})},{default:o(()=>[a(t).state.value.type==="updating"?(u(),h(a(P),{key:0,layout:"vertical"},{default:o(()=>[y(a(z),null,{default:o(()=>[y(a(G),null,{default:o(()=>[f(b(a(t).state.value.name),1)]),_:1}),y(a(W),{value:a(t).state.value.value,"onUpdate:value":r[0]||(r[0]=c=>a(t).state.value.value=c)},null,8,["value"])]),_:1})]),_:1})):v("",!0)]),_:1},8,["open"])):v("",!0)],64)}}});export{ce as C,he as E,ve as _};
2
+ //# sourceMappingURL=View.vue_vue_type_script_setup_true_lang.e6563207.js.map
@@ -1,2 +1,2 @@
1
- import{S as d}from"./workspaceStore.6244d03d.js";import{A as p}from"./constants.7d38ec8b.js";import{d as l,u as t,a5 as f,g as _,ed as c,h as C,eD as u,o as h,eG as m,_ as g}from"./jwt-decode.esm.d4517a10.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="5e585b03-9d10-4a8d-a1ab-d2d91abfc53c",a._sentryDebugIdIdentifier="sentry-dbid-5e585b03-9d10-4a8d-a1ab-d2d91abfc53c")}catch{}})();const v=["href"],b=u('<svg width="44" height="32" viewBox="0 0 256 256" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-e084ae6f><g clip-path="url(#clip0_405_116214)" data-v-e084ae6f><path d="M188.697 133.808L172.68 148.263C172.68 148.263 216.044 185.966 217.997 187.72C219.951 189.475 234.405 174.566 232.843 173.266C231.28 171.966 188.697 133.808 188.697 133.808Z" fill="#E36C7C" data-v-e084ae6f></path><path d="M188.697 133.808L172.68 148.263C172.68 148.263 216.044 185.966 217.997 187.72C219.951 189.475 234.405 174.566 232.843 173.266C231.28 171.966 188.697 133.808 188.697 133.808Z" fill="url(#paint0_linear_405_116214)" data-v-e084ae6f></path><path d="M218.387 91.2249L176.195 127.557L173.851 129.51C151.192 149.849 149.853 152.309 141.642 152.584L141.584 152.586C139.612 152.652 135.357 152.795 131.875 149.849C126.797 145.552 120.155 140.083 117.03 137.348C115.34 135.869 112.465 133.039 109.998 131.097C107.902 129.448 106.482 127.581 104.919 127.581C103.357 127.581 100.622 129.925 96.3246 133.832C92.0272 137.739 82.6511 146.333 82.6511 146.333L65.0712 161.569C65.0712 161.569 42.5857 180.688 36.7256 185.376C30.8656 190.064 16.5797 175.69 21.4895 171.703C21.9628 171.23 26.2429 167.755 29.7179 164.915C32.2165 162.84 34.2084 161.179 34.2084 161.179C34.9897 160.397 66.2433 133.051 66.2433 133.051L87.723 114.573C87.723 114.573 95.9339 106.094 105.701 106.094C108.826 106.094 112.83 106.485 126.015 118.205C129.531 121.33 131.485 122.542 135.782 126.409C137.345 127.816 139.852 130.316 140.861 130.316C141.882 130.316 143.986 128.363 145.549 127.023C145.549 127.023 195.897 84.4149 202.37 77.9421C207.839 72.4726 223.075 86.9273 218.387 91.2249Z" fill="url(#paint1_linear_405_116214)" data-v-e084ae6f></path><path d="M33.238 67.1372C31.2846 68.6564 23.9305 75.1737 22.2992 76.9039C19.3366 80.0417 21.3638 81.3905 25.6611 84.9065C29.9585 88.4225 57.8962 112.712 64.8542 118.963L79.9642 105.221L41.288 71.2331C36.5999 67.1372 35.1913 65.6179 33.238 67.1372Z" fill="url(#paint2_linear_405_116214)" data-v-e084ae6f></path></g><defs data-v-e084ae6f><linearGradient id="paint0_linear_405_116214" x1="172.68" y1="133.808" x2="183.059" y2="196.169" gradientUnits="userSpaceOnUse" data-v-e084ae6f><stop offset="0.114583" stop-color="#FF98A6" data-v-e084ae6f></stop><stop offset="1" stop-color="#E36C7C" data-v-e084ae6f></stop></linearGradient><linearGradient id="paint1_linear_405_116214" x1="219.271" y1="186.305" x2="206.115" y2="57.7298" gradientUnits="userSpaceOnUse" data-v-e084ae6f><stop stop-color="#E36C7C" data-v-e084ae6f></stop><stop offset="0.859375" stop-color="#FF98A6" data-v-e084ae6f></stop></linearGradient><linearGradient id="paint2_linear_405_116214" x1="20.8984" y1="66.56" x2="30.8589" y2="127.049" gradientUnits="userSpaceOnUse" data-v-e084ae6f><stop stop-color="#E36C7C" data-v-e084ae6f></stop><stop offset="0.859375" stop-color="#FF98A6" data-v-e084ae6f></stop></linearGradient><clipPath id="clip0_405_116214" data-v-e084ae6f><rect width="256" height="256" fill="white" data-v-e084ae6f></rect></clipPath></defs></svg><b data-v-e084ae6f>Abstra</b>',2),w=l({__name:"Watermark",props:{pageId:{},locale:{}},setup(a){var s;const e=a,r=window.location.hostname.split(".")[0],o=(s=d.instance)==null?void 0:s.showWatermark,n=new URLSearchParams({utm_source:"abstra_pages",utm_medium:"badge",utm_campaign:e.pageId,origin_subdomain:r});return(i,y)=>t(o)?(h(),f("a",{key:0,href:`${t(p).HOMEPAGE}?${t(n).toString()}`,target:"_blank",class:"watermark"},[_(c(t(m).translate("i18n_watermark_text",i.locale))+" ",1),b],8,v)):C("",!0)}});const S=g(w,[["__scopeId","data-v-e084ae6f"]]);export{S as W};
2
- //# sourceMappingURL=Watermark.ab3d818f.js.map
1
+ import{S as d}from"./workspaceStore.fac1e9a9.js";import{A as p}from"./constants.d569f33d.js";import{d as l,u as t,a5 as f,g as _,ed as c,h as C,eD as u,o as h,eH as m,_ as g}from"./jwt-decode.esm.54a1ea22.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="6b629705-a102-45ba-9f36-1bd72da3abd0",a._sentryDebugIdIdentifier="sentry-dbid-6b629705-a102-45ba-9f36-1bd72da3abd0")}catch{}})();const v=["href"],b=u('<svg width="44" height="32" viewBox="0 0 256 256" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-e084ae6f><g clip-path="url(#clip0_405_116214)" data-v-e084ae6f><path d="M188.697 133.808L172.68 148.263C172.68 148.263 216.044 185.966 217.997 187.72C219.951 189.475 234.405 174.566 232.843 173.266C231.28 171.966 188.697 133.808 188.697 133.808Z" fill="#E36C7C" data-v-e084ae6f></path><path d="M188.697 133.808L172.68 148.263C172.68 148.263 216.044 185.966 217.997 187.72C219.951 189.475 234.405 174.566 232.843 173.266C231.28 171.966 188.697 133.808 188.697 133.808Z" fill="url(#paint0_linear_405_116214)" data-v-e084ae6f></path><path d="M218.387 91.2249L176.195 127.557L173.851 129.51C151.192 149.849 149.853 152.309 141.642 152.584L141.584 152.586C139.612 152.652 135.357 152.795 131.875 149.849C126.797 145.552 120.155 140.083 117.03 137.348C115.34 135.869 112.465 133.039 109.998 131.097C107.902 129.448 106.482 127.581 104.919 127.581C103.357 127.581 100.622 129.925 96.3246 133.832C92.0272 137.739 82.6511 146.333 82.6511 146.333L65.0712 161.569C65.0712 161.569 42.5857 180.688 36.7256 185.376C30.8656 190.064 16.5797 175.69 21.4895 171.703C21.9628 171.23 26.2429 167.755 29.7179 164.915C32.2165 162.84 34.2084 161.179 34.2084 161.179C34.9897 160.397 66.2433 133.051 66.2433 133.051L87.723 114.573C87.723 114.573 95.9339 106.094 105.701 106.094C108.826 106.094 112.83 106.485 126.015 118.205C129.531 121.33 131.485 122.542 135.782 126.409C137.345 127.816 139.852 130.316 140.861 130.316C141.882 130.316 143.986 128.363 145.549 127.023C145.549 127.023 195.897 84.4149 202.37 77.9421C207.839 72.4726 223.075 86.9273 218.387 91.2249Z" fill="url(#paint1_linear_405_116214)" data-v-e084ae6f></path><path d="M33.238 67.1372C31.2846 68.6564 23.9305 75.1737 22.2992 76.9039C19.3366 80.0417 21.3638 81.3905 25.6611 84.9065C29.9585 88.4225 57.8962 112.712 64.8542 118.963L79.9642 105.221L41.288 71.2331C36.5999 67.1372 35.1913 65.6179 33.238 67.1372Z" fill="url(#paint2_linear_405_116214)" data-v-e084ae6f></path></g><defs data-v-e084ae6f><linearGradient id="paint0_linear_405_116214" x1="172.68" y1="133.808" x2="183.059" y2="196.169" gradientUnits="userSpaceOnUse" data-v-e084ae6f><stop offset="0.114583" stop-color="#FF98A6" data-v-e084ae6f></stop><stop offset="1" stop-color="#E36C7C" data-v-e084ae6f></stop></linearGradient><linearGradient id="paint1_linear_405_116214" x1="219.271" y1="186.305" x2="206.115" y2="57.7298" gradientUnits="userSpaceOnUse" data-v-e084ae6f><stop stop-color="#E36C7C" data-v-e084ae6f></stop><stop offset="0.859375" stop-color="#FF98A6" data-v-e084ae6f></stop></linearGradient><linearGradient id="paint2_linear_405_116214" x1="20.8984" y1="66.56" x2="30.8589" y2="127.049" gradientUnits="userSpaceOnUse" data-v-e084ae6f><stop stop-color="#E36C7C" data-v-e084ae6f></stop><stop offset="0.859375" stop-color="#FF98A6" data-v-e084ae6f></stop></linearGradient><clipPath id="clip0_405_116214" data-v-e084ae6f><rect width="256" height="256" fill="white" data-v-e084ae6f></rect></clipPath></defs></svg><b data-v-e084ae6f>Abstra</b>',2),w=l({__name:"Watermark",props:{pageId:{},locale:{}},setup(a){var s;const e=a,r=window.location.hostname.split(".")[0],o=(s=d.instance)==null?void 0:s.showWatermark,n=new URLSearchParams({utm_source:"abstra_pages",utm_medium:"badge",utm_campaign:e.pageId,origin_subdomain:r});return(i,y)=>t(o)?(h(),f("a",{key:0,href:`${t(p).HOMEPAGE}?${t(n).toString()}`,target:"_blank",class:"watermark"},[_(c(t(m).translate("i18n_watermark_text",i.locale))+" ",1),b],8,v)):C("",!0)}});const S=g(w,[["__scopeId","data-v-e084ae6f"]]);export{S as W};
2
+ //# sourceMappingURL=Watermark.9c9358e3.js.map
@@ -1,2 +1,2 @@
1
- var _=Object.defineProperty;var m=(e,t,n)=>t in e?_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var i=(e,t,n)=>(m(e,typeof t!="symbol"?t+"":t,n),n);import{d as g,J as v,I as y,a as c,b as s,o as d,f as o,u as r,dc as h,cM as w,A as I,g as p,d8 as u,_ as b,r as P,eb as x}from"./jwt-decode.esm.d4517a10.js";import{_ as W}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.9f98292e.js";import{B as j}from"./BaseLayout.1ec2c96d.js";import{l as f}from"./fetch.89fd5b7b.js";import"./router.424f7da9.js";import{a as A}from"./project.619b7244.js";import"./tables.1f68ec62.js";import"./Logo.82d6ab70.js";import"./index.4176fe88.js";import"./record.7f43486c.js";import"./string.0acf5572.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="72fea1b5-ce44-476c-a865-d26f93f89f8a",e._sentryDebugIdIdentifier="sentry-dbid-72fea1b5-ce44-476c-a865-d26f93f89f8a")}catch{}})();const E=g({__name:"View",props:{controller:{}},setup(e){const t=e,n=t.controller.loadingPercentage();return v(()=>{t.controller.start()}),y(()=>{t.controller.cleanUp()}),(a,l)=>(d(),c(j,null,{content:s(()=>[o(r(h),{align:"center",justify:"center",style:{width:"100vw",height:"100dvh"}},{default:s(()=>[o(r(h),{gap:"large",align:"center",justify:"space-evenly",vertical:"",style:{width:"45%","min-width":"600px",height:"100%"}},{default:s(()=>[o(W,{size:"large"}),o(r(w),{size:[10,10],"show-info":!1,percent:r(n),"stroke-color":"#EA576A"},null,8,["percent"]),o(r(I),{level:3},{default:s(()=>[p("Preparing your environment")]),_:1}),r(n)<100?(d(),c(r(u),{key:0},{default:s(()=>[p("We are setting things up... This may take up to 1 minute.")]),_:1})):(d(),c(r(u),{key:1},{default:s(()=>[p("You will be redirected soon")]),_:1}))]),_:1})]),_:1})]),_:1}))}});const T=b(E,[["__scopeId","data-v-0794e790"]]);function k(e,t){if(!e)return"";const n=t.toString();if(!n)return e;const l=e.includes("?")?"&":"?";return`${e}${l}${n}`}class R{constructor(t,n,a=f){i(this,"projectId");i(this,"loading");i(this,"fetch",f);i(this,"interval",null);i(this,"urls",null);i(this,"totalWaitTime");i(this,"poolingInterval");i(this,"pingResponded",!1);i(this,"redirectPath");this.projectId=t,this.loading=P(0),this.fetch=a,this.totalWaitTime=6e4,this.poolingInterval=2500,this.redirectPath=n}increment(){this.loading.value+=100/(this.totalWaitTime/this.poolingInterval)}speedUp(){this.totalWaitTime=5e3,this.poolingInterval=500,this.interval&&clearInterval(this.interval),this.interval=setInterval(async()=>{this.increment(),this.loading.value>=100&&this.navigate()},this.poolingInterval)}navigate(){if(this.urls){const t=new URLSearchParams;this.redirectPath&&t.set("redirect",this.redirectPath);const n=k(this.urls.redirect,t);window.location.replace(n)}this.cleanUp()}async ping(){if(!this.urls)return!1;if(this.pingResponded)return!0;const t=await this.fetch(this.urls.ping,{signal:AbortSignal.timeout(500)});return this.pingResponded=t.status===200,this.pingResponded}async start(){const t=await A.startWebEditor(this.projectId);this.urls=t,this.interval=setInterval(async()=>{this.increment(),this.pingResponded||await this.ping()&&this.speedUp(),this.loading.value>=100&&this.navigate()},this.poolingInterval)}cleanUp(){this.interval&&clearInterval(this.interval)}loadingPercentage(){return this.loading}}const Q=g({__name:"WebEditor",setup(e){const t=x(),n=t.params.projectId,a=t.query.redirect,l=new R(n,a);return(U,V)=>(d(),c(T,{controller:r(l)},null,8,["controller"]))}});export{Q as default};
2
- //# sourceMappingURL=WebEditor.d6ec6392.js.map
1
+ var _=Object.defineProperty;var m=(e,t,n)=>t in e?_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var i=(e,t,n)=>(m(e,typeof t!="symbol"?t+"":t,n),n);import{d as g,J as v,I as y,a as c,b as s,o as d,f as o,u as r,dc as h,cM as w,A as I,g as p,d8 as u,_ as b,r as P,eb as x}from"./jwt-decode.esm.54a1ea22.js";import{_ as W}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.28bc9fc9.js";import{B as j}from"./BaseLayout.72a6c8f2.js";import{l as f}from"./fetch.1b3d01a0.js";import"./router.4dfadf5d.js";import{a as A}from"./project.1b8374f4.js";import"./tables.1bcb1140.js";import"./Logo.65e0b37c.js";import"./index.c7a996a6.js";import"./record.e83a2eb2.js";import"./string.61e11a30.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="060a6435-faae-45a5-90c2-7acdf84029b4",e._sentryDebugIdIdentifier="sentry-dbid-060a6435-faae-45a5-90c2-7acdf84029b4")}catch{}})();const E=g({__name:"View",props:{controller:{}},setup(e){const t=e,n=t.controller.loadingPercentage();return v(()=>{t.controller.start()}),y(()=>{t.controller.cleanUp()}),(a,l)=>(d(),c(j,null,{content:s(()=>[o(r(h),{align:"center",justify:"center",style:{width:"100vw",height:"100dvh"}},{default:s(()=>[o(r(h),{gap:"large",align:"center",justify:"space-evenly",vertical:"",style:{width:"45%","min-width":"600px",height:"100%"}},{default:s(()=>[o(W,{size:"large"}),o(r(w),{size:[10,10],"show-info":!1,percent:r(n),"stroke-color":"#EA576A"},null,8,["percent"]),o(r(I),{level:3},{default:s(()=>[p("Preparing your environment")]),_:1}),r(n)<100?(d(),c(r(u),{key:0},{default:s(()=>[p("We are setting things up... This may take up to 1 minute.")]),_:1})):(d(),c(r(u),{key:1},{default:s(()=>[p("You will be redirected soon")]),_:1}))]),_:1})]),_:1})]),_:1}))}});const T=b(E,[["__scopeId","data-v-0794e790"]]);function k(e,t){if(!e)return"";const n=t.toString();if(!n)return e;const l=e.includes("?")?"&":"?";return`${e}${l}${n}`}class R{constructor(t,n,a=f){i(this,"projectId");i(this,"loading");i(this,"fetch",f);i(this,"interval",null);i(this,"urls",null);i(this,"totalWaitTime");i(this,"poolingInterval");i(this,"pingResponded",!1);i(this,"redirectPath");this.projectId=t,this.loading=P(0),this.fetch=a,this.totalWaitTime=6e4,this.poolingInterval=2500,this.redirectPath=n}increment(){this.loading.value+=100/(this.totalWaitTime/this.poolingInterval)}speedUp(){this.totalWaitTime=5e3,this.poolingInterval=500,this.interval&&clearInterval(this.interval),this.interval=setInterval(async()=>{this.increment(),this.loading.value>=100&&this.navigate()},this.poolingInterval)}navigate(){if(this.urls){const t=new URLSearchParams;this.redirectPath&&t.set("redirect",this.redirectPath);const n=k(this.urls.redirect,t);window.location.replace(n)}this.cleanUp()}async ping(){if(!this.urls)return!1;if(this.pingResponded)return!0;const t=await this.fetch(this.urls.ping,{signal:AbortSignal.timeout(500)});return this.pingResponded=t.status===200,this.pingResponded}async start(){const t=await A.startWebEditor(this.projectId);this.urls=t,this.interval=setInterval(async()=>{this.increment(),this.pingResponded||await this.ping()&&this.speedUp(),this.loading.value>=100&&this.navigate()},this.poolingInterval)}cleanUp(){this.interval&&clearInterval(this.interval)}loadingPercentage(){return this.loading}}const Q=g({__name:"WebEditor",setup(e){const t=x(),n=t.params.projectId,a=t.query.redirect,l=new R(n,a);return(U,V)=>(d(),c(T,{controller:r(l)},null,8,["controller"]))}});export{Q as default};
2
+ //# sourceMappingURL=WebEditor.83f2a960.js.map