abstra 3.24.5__py3-none-any.whl → 3.24.7__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 (219) hide show
  1. {abstra-3.24.5.dist-info → abstra-3.24.7.dist-info}/METADATA +1 -1
  2. {abstra-3.24.5.dist-info → abstra-3.24.7.dist-info}/RECORD +173 -172
  3. abstra_internals/tasks_watcher.py +16 -1
  4. abstra_internals/tasks_watcher_test.py +254 -0
  5. abstra_statics/dist/assets/{AbstraButton.vue_vue_type_script_setup_true_lang.6c541630.js → AbstraButton.vue_vue_type_script_setup_true_lang.865dcbf3.js} +2 -2
  6. abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.8204f8e4.js +2 -0
  7. abstra_statics/dist/assets/{ApiKeys.96f96fe2.js → ApiKeys.0ebb0b5f.js} +2 -2
  8. abstra_statics/dist/assets/App.fa5bd988.js +2 -0
  9. abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.35b9297a.js +2 -0
  10. abstra_statics/dist/assets/{BaseLayout.2a82be24.js → BaseLayout.31267389.js} +2 -2
  11. abstra_statics/dist/assets/Billing.44f40d95.js +2 -0
  12. abstra_statics/dist/assets/{Breadcrumb.c8da3019.js → Breadcrumb.bc48ca6d.js} +2 -2
  13. abstra_statics/dist/assets/{Builds.366d6ceb.js → Builds.5c884494.js} +2 -2
  14. abstra_statics/dist/assets/{Card.0d56c597.js → Card.eab9832f.js} +2 -2
  15. abstra_statics/dist/assets/{CircularLoading.daf759d9.js → CircularLoading.a4bd5a70.js} +2 -2
  16. abstra_statics/dist/assets/CloseCircleOutlined.87d100e7.js +2 -0
  17. abstra_statics/dist/assets/{ConnectorsView.904ff1c0.js → ConnectorsView.89e278ce.js} +2 -2
  18. abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.b3c015f9.js +2 -0
  19. abstra_statics/dist/assets/ContentLayout.8cfadb43.js +2 -0
  20. abstra_statics/dist/assets/CrudView.f8f7347d.js +2 -0
  21. abstra_statics/dist/assets/{DocsButton.vue_vue_type_script_setup_true_lang.a2b3eeb7.js → DocsButton.vue_vue_type_script_setup_true_lang.264a92d9.js} +2 -2
  22. abstra_statics/dist/assets/{EditorLogin.cac0ed52.js → EditorLogin.b8cbc772.js} +2 -2
  23. abstra_statics/dist/assets/EditorsView.580cabb0.js +2 -0
  24. abstra_statics/dist/assets/EnvVars.8f5b7bdb.js +2 -0
  25. abstra_statics/dist/assets/{Error.c7f25d1b.js → Error.ee721fce.js} +2 -2
  26. abstra_statics/dist/assets/ExclamationCircleOutlined.40ff37b4.js +2 -0
  27. abstra_statics/dist/assets/{ExecutionContext.91c0e0db.js → ExecutionContext.3f4e1ec7.js} +2 -2
  28. abstra_statics/dist/assets/{ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.31b499a5.js → ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.4f510b9a.js} +2 -2
  29. abstra_statics/dist/assets/{Files.4ec90b9a.js → Files.db0a38ea.js} +2 -2
  30. abstra_statics/dist/assets/{Form.5a5cac5f.js → Form.7ffaca31.js} +2 -2
  31. abstra_statics/dist/assets/{FormRunner.4a5270dc.js → FormRunner.eae15d54.js} +2 -2
  32. abstra_statics/dist/assets/{Home.1271fb51.js → Home.31aa421b.js} +2 -2
  33. abstra_statics/dist/assets/Home.5a499863.js +2 -0
  34. abstra_statics/dist/assets/LoadingContainer.6b2e55a8.js +2 -0
  35. abstra_statics/dist/assets/LoadingOutlined.bcf2a831.js +2 -0
  36. abstra_statics/dist/assets/Login.53d97380.js +2 -0
  37. abstra_statics/dist/assets/{Login.180d7b1c.js → Login.779e9007.js} +2 -2
  38. abstra_statics/dist/assets/{Login.vue_vue_type_script_setup_true_lang.ab4402e7.js → Login.vue_vue_type_script_setup_true_lang.f1a48ab2.js} +2 -2
  39. abstra_statics/dist/assets/Logo.c4ca8242.js +2 -0
  40. abstra_statics/dist/assets/{Logs.03931b09.js → Logs.ef6eb243.js} +2 -2
  41. abstra_statics/dist/assets/Main.b3e5d5fe.js +2 -0
  42. abstra_statics/dist/assets/{MockForm.1fa371d2.js → MockForm.2aa4fc17.js} +2 -2
  43. abstra_statics/dist/assets/Navbar.89b7a1da.js +2 -0
  44. abstra_statics/dist/assets/{NewEditor.dc0e868f.js → NewEditor.0cd895fd.js} +5 -5
  45. abstra_statics/dist/assets/{NewEditor.d2ee5048.css → NewEditor.46862924.css} +1 -1
  46. abstra_statics/dist/assets/OidcLoginCallback.9dd86a22.js +2 -0
  47. abstra_statics/dist/assets/OidcLogoutCallback.a60b6160.js +2 -0
  48. abstra_statics/dist/assets/{OmniChat.be2d3d92.js → OmniChat.00da5ca5.js} +2 -2
  49. abstra_statics/dist/assets/{OnboardingView.4957b5f8.js → OnboardingView.86178ead.js} +2 -2
  50. abstra_statics/dist/assets/Organization.9bf814e7.js +2 -0
  51. abstra_statics/dist/assets/Organizations.7473e524.js +2 -0
  52. abstra_statics/dist/assets/{PhArrowCounterClockwise.vue.9ad742bf.js → PhArrowCounterClockwise.vue.9a0ef441.js} +2 -2
  53. abstra_statics/dist/assets/{PhArrowSquareOut.vue.2a07a9b3.js → PhArrowSquareOut.vue.e64bebdd.js} +2 -2
  54. abstra_statics/dist/assets/{PhClockCounterClockwise.vue.b4dc22ed.js → PhClockCounterClockwise.vue.090be995.js} +2 -2
  55. abstra_statics/dist/assets/{PhCopy.vue.17ec4184.js → PhCopy.vue.2163dc9b.js} +2 -2
  56. abstra_statics/dist/assets/PhCopySimple.vue.df39762b.js +2 -0
  57. abstra_statics/dist/assets/{PhCube.vue.027246a6.js → PhCube.vue.099137c1.js} +2 -2
  58. abstra_statics/dist/assets/{PhDatabase.vue.a188015f.js → PhDatabase.vue.33681014.js} +2 -2
  59. abstra_statics/dist/assets/{PhDotsThreeVertical.vue.e9c6f787.js → PhDotsThreeVertical.vue.e9b1faec.js} +2 -2
  60. abstra_statics/dist/assets/{PhDownloadSimple.vue.9ba8ac6f.js → PhDownloadSimple.vue.cba09010.js} +2 -2
  61. abstra_statics/dist/assets/{PhFileArrowUp.vue.cd3d3139.js → PhFileArrowUp.vue.8f2790df.js} +2 -2
  62. abstra_statics/dist/assets/{PhFilePlus.vue.2464bbea.js → PhFilePlus.vue.18b183d7.js} +2 -2
  63. abstra_statics/dist/assets/{PhFolderPlus.vue.696aab26.js → PhFolderPlus.vue.8dc4e304.js} +2 -2
  64. abstra_statics/dist/assets/{PhGear.vue.c247e86d.js → PhGear.vue.15aaccf5.js} +2 -2
  65. abstra_statics/dist/assets/{PhKey.vue.1a84e5d0.js → PhKey.vue.55642d36.js} +2 -2
  66. abstra_statics/dist/assets/{PhPencil.vue.3586175f.js → PhPencil.vue.ea9f0def.js} +2 -2
  67. abstra_statics/dist/assets/{PhPencilSimple.vue.e88b8fd0.js → PhPencilSimple.vue.2d6e76ca.js} +2 -2
  68. abstra_statics/dist/assets/{PhRocket.vue.8b8080c3.js → PhRocket.vue.ec0249c6.js} +2 -2
  69. abstra_statics/dist/assets/{PhSignOut.vue.9eb21b1c.js → PhSignOut.vue.1cca1af4.js} +2 -2
  70. abstra_statics/dist/assets/{PhSparkle.vue.70bce97e.js → PhSparkle.vue.5ff46bd3.js} +2 -2
  71. abstra_statics/dist/assets/{PhTranslate.vue.e579c286.js → PhTranslate.vue.077070e7.js} +2 -2
  72. abstra_statics/dist/assets/{PhUsersThree.vue.65e9b349.js → PhUsersThree.vue.a78365b2.js} +2 -2
  73. abstra_statics/dist/assets/{PhWarningCircle.vue.3134c1fb.js → PhWarningCircle.vue.40ea25aa.js} +2 -2
  74. abstra_statics/dist/assets/{PhWebhooksLogo.vue.e7321653.js → PhWebhooksLogo.vue.a73cf99c.js} +2 -2
  75. abstra_statics/dist/assets/{PlayerConfigProvider.f0eaf9f3.js → PlayerConfigProvider.8a1d38e8.js} +2 -2
  76. abstra_statics/dist/assets/{PlayerNavbar.7c0453f2.js → PlayerNavbar.53f81c7f.js} +2 -2
  77. abstra_statics/dist/assets/Project.1b9b8eee.js +2 -0
  78. abstra_statics/dist/assets/{ProjectLogin.83ae9c4c.js → ProjectLogin.972cff72.js} +2 -2
  79. abstra_statics/dist/assets/ProjectSettings.183e39d3.js +2 -0
  80. abstra_statics/dist/assets/{ProjectsView.c4e3053a.js → ProjectsView.31637152.js} +2 -2
  81. abstra_statics/dist/assets/{SaveButton.986667ef.js → SaveButton.8e4a5fbe.js} +2 -2
  82. abstra_statics/dist/assets/{ScrollArea.vue_vue_type_script_setup_true_lang.077a2088.js → ScrollArea.vue_vue_type_script_setup_true_lang.2a9a82d1.js} +2 -2
  83. abstra_statics/dist/assets/{Sidebar.b1e6ca23.js → Sidebar.adfed738.js} +2 -2
  84. abstra_statics/dist/assets/{Sql.24116fa0.js → Sql.bf31b294.js} +4 -4
  85. abstra_statics/dist/assets/Steps.a55d381b.js +2 -0
  86. abstra_statics/dist/assets/{TableCard.981d88c4.js → TableCard.f71238a1.js} +2 -2
  87. abstra_statics/dist/assets/{TableEditor.a74fc9f4.js → TableEditor.1f5f6b45.js} +2 -2
  88. abstra_statics/dist/assets/{Tables.870957e7.js → Tables.ae22a918.js} +2 -2
  89. abstra_statics/dist/assets/{TablesDiagram.6a217e62.js → TablesDiagram.29966818.js} +2 -2
  90. abstra_statics/dist/assets/{TablesTabs.vue_vue_type_script_setup_true_lang.983777c7.js → TablesTabs.vue_vue_type_script_setup_true_lang.9567dc60.js} +2 -2
  91. abstra_statics/dist/assets/{Tasks.8fbc0cc0.js → Tasks.db070216.js} +2 -2
  92. abstra_statics/dist/assets/{UploadOutlined.e2352877.js → UploadOutlined.654fb655.js} +2 -2
  93. abstra_statics/dist/assets/{View.fd9cb47e.js → View.64f7c00a.js} +2 -2
  94. abstra_statics/dist/assets/{View.vue_vue_type_script_setup_true_lang.69e51c6f.js → View.vue_vue_type_script_setup_true_lang.8892f80d.js} +2 -2
  95. abstra_statics/dist/assets/{Watermark.b1fed4a7.js → Watermark.2b4d030d.js} +2 -2
  96. abstra_statics/dist/assets/{WebEditor.75ce5bd6.js → WebEditor.a5e97d7a.js} +2 -2
  97. abstra_statics/dist/assets/{WidgetPreview.5b0abaab.js → WidgetPreview.40cbebe3.js} +2 -2
  98. abstra_statics/dist/assets/{WorkflowViewer.6f38d23f.js → WorkflowViewer.b9f96c37.js} +2 -2
  99. abstra_statics/dist/assets/{ant-design.5bd7ec4d.js → ant-design.5ec0b6b3.js} +2 -2
  100. abstra_statics/dist/assets/{apiKey.7cf16e08.js → apiKey.1bb9c6d2.js} +2 -2
  101. abstra_statics/dist/assets/asyncComputed.7ddee0b0.js +2 -0
  102. abstra_statics/dist/assets/{build.db7d8668.js → build.bfc699c6.js} +2 -2
  103. abstra_statics/dist/assets/colorHelpers.53158244.js +2 -0
  104. abstra_statics/dist/assets/{console.f402574a.js → console.21189c1b.js} +2 -2
  105. abstra_statics/dist/assets/constants.0deee127.js +2 -0
  106. abstra_statics/dist/assets/{contracts.generated.3f22c968.js → contracts.generated.0a04f0c8.js} +2 -2
  107. abstra_statics/dist/assets/{cssMode.d0c8e26e.js → cssMode.766de8eb.js} +2 -2
  108. abstra_statics/dist/assets/datetime.0048a7b9.js +2 -0
  109. abstra_statics/dist/assets/dayjs.618c5367.js +2 -0
  110. abstra_statics/dist/assets/editor.64e4d209.js +2 -0
  111. abstra_statics/dist/assets/editor.main.08984606.js +2 -0
  112. abstra_statics/dist/assets/fetch.7b0def40.js +2 -0
  113. abstra_statics/dist/assets/{files.59b464cc.js → files.8583d431.js} +2 -2
  114. abstra_statics/dist/assets/folder.c07afb46.js +2 -0
  115. abstra_statics/dist/assets/{freemarker2.03629ab6.js → freemarker2.a1e074e9.js} +2 -2
  116. abstra_statics/dist/assets/{handlebars.1163d9ba.js → handlebars.ef746198.js} +2 -2
  117. abstra_statics/dist/assets/{html.ef74c7bd.js → html.36bc618f.js} +2 -2
  118. abstra_statics/dist/assets/{htmlMode.8829acd3.js → htmlMode.2557714f.js} +2 -2
  119. abstra_statics/dist/assets/{index.d408b03e.js → index.0389f2ff.js} +2 -2
  120. abstra_statics/dist/assets/index.36af13ac.js +2 -0
  121. abstra_statics/dist/assets/{index.63e70668.js → index.6a5e28c0.js} +2 -2
  122. abstra_statics/dist/assets/{index.2aa34d4f.js → index.8391f105.js} +5 -5
  123. abstra_statics/dist/assets/{index.5eeedb69.js → index.88a43c5d.js} +2 -2
  124. abstra_statics/dist/assets/{index.07e9309d.js → index.95966207.js} +2 -2
  125. abstra_statics/dist/assets/index.b57ea477.js +2 -0
  126. abstra_statics/dist/assets/{index.8995a499.js → index.cb46e99b.js} +2 -2
  127. abstra_statics/dist/assets/{index.76cbd30f.js → index.cfbca287.js} +2 -2
  128. abstra_statics/dist/assets/{javascript.0dfeb7bb.js → javascript.3ef3ca8e.js} +3 -3
  129. abstra_statics/dist/assets/{jsonMode.179b6695.js → jsonMode.bc3f9dc2.js} +2 -2
  130. abstra_statics/dist/assets/{jwt-decode.cfe2994b.css → jwt-decode.aa5b9ed3.css} +1 -1
  131. abstra_statics/dist/assets/{jwt-decode.esm.47f59010.js → jwt-decode.esm.b9bb33e7.js} +9 -8
  132. abstra_statics/dist/assets/{linters.9f818fd6.js → linters.f033aedb.js} +2 -2
  133. abstra_statics/dist/assets/{liquid.0627704b.js → liquid.b8dbec9f.js} +3 -3
  134. abstra_statics/dist/assets/{member.689a99e8.js → member.a66ab498.js} +2 -2
  135. abstra_statics/dist/assets/{metadata.69e468d6.js → metadata.17375f25.js} +2 -2
  136. abstra_statics/dist/assets/{omniChatStore.07f62bd5.js → omniChatStore.c81c7dd1.js} +4 -4
  137. abstra_statics/dist/assets/{organization.298987a0.js → organization.31d7490b.js} +2 -2
  138. abstra_statics/dist/assets/{os.faa277a9.js → os.cc382050.js} +2 -2
  139. abstra_statics/dist/assets/player.4ba2218c.js +2 -0
  140. abstra_statics/dist/assets/{plotly.min.16914e67.js → plotly.min.e2ba2e19.js} +2 -2
  141. abstra_statics/dist/assets/polling.bdac3134.js +2 -0
  142. abstra_statics/dist/assets/{project.8a5a3632.js → project.f3f1cd2e.js} +2 -2
  143. abstra_statics/dist/assets/{python.3bf17d7f.js → python.ca19a8f2.js} +3 -3
  144. abstra_statics/dist/assets/{razor.ea162aec.js → razor.b73e652a.js} +3 -3
  145. abstra_statics/dist/assets/{record.30ff6eef.js → record.c01e7f08.js} +2 -2
  146. abstra_statics/dist/assets/redirect.9d08109f.js +2 -0
  147. abstra_statics/dist/assets/repository.819ee626.js +2 -0
  148. abstra_statics/dist/assets/{repository.5c0cd878.js → repository.88fdba21.js} +2 -2
  149. abstra_statics/dist/assets/{router.cfb03f89.js → router.135b49e3.js} +5 -5
  150. abstra_statics/dist/assets/router.d8fe262e.js +2 -0
  151. abstra_statics/dist/assets/{string.39c8a903.js → string.04644599.js} +2 -2
  152. abstra_statics/dist/assets/{tables.34208b7c.js → tables.d6f8baad.js} +2 -2
  153. abstra_statics/dist/assets/{tasksController.04461f1a.js → tasksController.866fa385.js} +3 -3
  154. abstra_statics/dist/assets/{toggleHighContrast.fa77fdf8.js → toggleHighContrast.5c061b5e.js} +7 -7
  155. abstra_statics/dist/assets/{tsMode.a5869619.js → tsMode.75ac2754.js} +2 -2
  156. abstra_statics/dist/assets/{typescript.f2aa2c4b.js → typescript.3c9ee25c.js} +3 -3
  157. abstra_statics/dist/assets/url.7fa35693.js +2 -0
  158. abstra_statics/dist/assets/{useCodebaseEvents.3542d20f.js → useCodebaseEvents.fd37c61f.js} +2 -2
  159. abstra_statics/dist/assets/useTables.1d5bf2b4.js +2 -0
  160. abstra_statics/dist/assets/userStore.3a2d2697.js +2 -0
  161. abstra_statics/dist/assets/uuid.40423699.js +2 -0
  162. abstra_statics/dist/assets/{vue-flow-background.32950d16.js → vue-flow-background.6bb2a806.js} +2 -2
  163. abstra_statics/dist/assets/{vue-flow-core.d96b7b33.js → vue-flow-core.0cbcaed0.js} +2 -2
  164. abstra_statics/dist/assets/{vue-quill.esm-bundler.42450ff3.js → vue-quill.esm-bundler.6713b0a3.js} +2 -2
  165. abstra_statics/dist/assets/{workspaceStore.9693f43b.js → workspaceStore.583d9afd.js} +2 -2
  166. abstra_statics/dist/assets/{xml.a1244cf9.js → xml.046c0d24.js} +3 -3
  167. abstra_statics/dist/assets/{yaml.759fa896.js → yaml.ebe5a918.js} +3 -3
  168. abstra_statics/dist/console.html +15 -15
  169. abstra_statics/dist/editor.html +14 -14
  170. abstra_statics/dist/player.html +10 -10
  171. abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.e1cfa824.js +0 -2
  172. abstra_statics/dist/assets/App.6b1b6a94.js +0 -2
  173. abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.08210ecb.js +0 -2
  174. abstra_statics/dist/assets/Billing.24199f3a.js +0 -2
  175. abstra_statics/dist/assets/CloseCircleOutlined.2be0ee6c.js +0 -2
  176. abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.17fc3e62.js +0 -2
  177. abstra_statics/dist/assets/ContentLayout.c133929b.js +0 -2
  178. abstra_statics/dist/assets/CrudView.789b533f.js +0 -2
  179. abstra_statics/dist/assets/EditorsView.4b74b13b.js +0 -2
  180. abstra_statics/dist/assets/EnvVars.0dfba770.js +0 -2
  181. abstra_statics/dist/assets/ExclamationCircleOutlined.ad66211a.js +0 -2
  182. abstra_statics/dist/assets/Home.f82c1587.js +0 -2
  183. abstra_statics/dist/assets/LoadingContainer.4430af86.js +0 -2
  184. abstra_statics/dist/assets/LoadingOutlined.2d29f0e1.js +0 -2
  185. abstra_statics/dist/assets/Login.8e13b15d.js +0 -2
  186. abstra_statics/dist/assets/Logo.e86b6b23.js +0 -2
  187. abstra_statics/dist/assets/Main.3afc4ba4.js +0 -2
  188. abstra_statics/dist/assets/Navbar.2d7490c1.js +0 -2
  189. abstra_statics/dist/assets/OidcLoginCallback.8216e341.js +0 -2
  190. abstra_statics/dist/assets/OidcLogoutCallback.f471ecec.js +0 -2
  191. abstra_statics/dist/assets/Organization.27e529a7.js +0 -2
  192. abstra_statics/dist/assets/Organizations.88897e55.js +0 -2
  193. abstra_statics/dist/assets/PhCopySimple.vue.d9213ca9.js +0 -2
  194. abstra_statics/dist/assets/Project.fad3c835.js +0 -2
  195. abstra_statics/dist/assets/ProjectSettings.f4e91391.js +0 -2
  196. abstra_statics/dist/assets/Steps.95771774.js +0 -2
  197. abstra_statics/dist/assets/asyncComputed.febe2b11.js +0 -2
  198. abstra_statics/dist/assets/colorHelpers.939427f5.js +0 -2
  199. abstra_statics/dist/assets/constants.bbfdfb21.js +0 -2
  200. abstra_statics/dist/assets/datetime.d5fe62ba.js +0 -2
  201. abstra_statics/dist/assets/dayjs.8c9480e7.js +0 -2
  202. abstra_statics/dist/assets/editor.11a4f0cf.js +0 -2
  203. abstra_statics/dist/assets/editor.main.2f21f781.js +0 -2
  204. abstra_statics/dist/assets/fetch.e0dfa394.js +0 -2
  205. abstra_statics/dist/assets/folder.5b0f3179.js +0 -2
  206. abstra_statics/dist/assets/index.12e6cfe2.js +0 -2
  207. abstra_statics/dist/assets/index.75a16b09.js +0 -2
  208. abstra_statics/dist/assets/player.ebf3133f.js +0 -2
  209. abstra_statics/dist/assets/polling.96dd15ee.js +0 -2
  210. abstra_statics/dist/assets/redirect.d0ca2136.js +0 -2
  211. abstra_statics/dist/assets/repository.b1c27c35.js +0 -2
  212. abstra_statics/dist/assets/router.ae5c14de.js +0 -2
  213. abstra_statics/dist/assets/url.4ba49005.js +0 -2
  214. abstra_statics/dist/assets/useTables.3e387cf0.js +0 -2
  215. abstra_statics/dist/assets/userStore.e8304ebc.js +0 -2
  216. abstra_statics/dist/assets/uuid.2075c158.js +0 -2
  217. {abstra-3.24.5.dist-info → abstra-3.24.7.dist-info}/WHEEL +0 -0
  218. {abstra-3.24.5.dist-info → abstra-3.24.7.dist-info}/entry_points.txt +0 -0
  219. {abstra-3.24.5.dist-info → abstra-3.24.7.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
1
- import{_ as mn}from"./vue-flow-background.32950d16.js";import{u as De,d as gn,h as pn,_ as vn,i as mt,a as yn,g as pe,e as wn}from"./vue-flow-core.d96b7b33.js";import{d as qt,eR as _n,eW as Pe,r as Qt,ab as kn,bG as Jt,c as Y,aR as bn,o as G,a as wt,b as zt,ac as ct,u as q,t as xn,h as Mn,aY as Xe,ej as $n,ad as Fe,eh as It,e as Dt,at as Nn,eG as Cn,ed as He,el as En,f as lt,ei as Sn,j as zn,_ as Rn}from"./jwt-decode.esm.47f59010.js";import{d as ve}from"./index.07e9309d.js";import{T as Tn}from"./TableCard.981d88c4.js";import{_ as An}from"./TablesTabs.vue_vue_type_script_setup_true_lang.983777c7.js";import{u as Bn}from"./useTables.3e387cf0.js";import"./AbstraButton.vue_vue_type_script_setup_true_lang.6c541630.js";import"./PhKey.vue.1a84e5d0.js";import"./PhPencil.vue.3586175f.js";import"./Card.0d56c597.js";import"./router.cfb03f89.js";import"./index.8995a499.js";import"./tables.34208b7c.js";import"./record.30ff6eef.js";import"./string.39c8a903.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]="7175376a-d608-418f-8eff-f5dca9bebb06",t._sentryDebugIdIdentifier="sentry-dbid-7175376a-d608-418f-8eff-f5dca9bebb06")}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 Gn=Array.prototype.find;function Kn(t){return function(){return Gn.call(this.children,t)}}function Wn(){return this.firstElementChild}function Un(t){return this.select(t==null?Wn:Kn(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 Ge(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)||Ge(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 Ke(t){return t.trim().split(/^|\s+/)}function ce(t){return t.classList||new We(t)}function We(t){this._node=t,this._names=Ke(t.getAttribute("class")||"")}We.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 Ue(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(){Ue(this,t)}}function Dr(t){return function(){Ze(this,t)}}function Pr(t,e){return function(){(e.apply(this,arguments)?Ue:Ze)(this,t)}}function Xr(t,e){var n=Ke(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 Gr(t){return arguments.length?this.each(t==null?qr:(typeof t=="function"?Or:Lr)(t)):this.node().innerHTML}function Kr(){this.nextSibling&&this.parentNode.appendChild(this)}function Wr(){return this.each(Kr)}function Ur(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Zr(){return this.each(Ur)}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=Ge(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:Un,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:Gr,raise:Wr,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*",U="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",wi=/^#([0-9a-f]{3,8})$/,_i=new RegExp(`^rgb\\(${ht},${ht},${ht}\\)$`),ki=new RegExp(`^rgb\\(${U},${U},${U}\\)$`),bi=new RegExp(`^rgba\\(${ht},${ht},${ht},${kt}\\)$`),xi=new RegExp(`^rgba\\(${U},${U},${U},${kt}\\)$`),Mi=new RegExp(`^hsl\\(${kt},${U},${U}\\)$`),$i=new RegExp(`^hsla\\(${kt},${U},${U},${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 K(t,e,n,r)}function tn(t){if(t instanceof K)return new K(t.h,t.s,t.l,t.opacity);if(t instanceof $t||(t=bt(t)),!t)return new K;if(t instanceof K)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 K(o,a,u,t.opacity)}function zi(t,e,n,r){return arguments.length===1?tn(t):new K(t,e,n,r==null?1:r)}function K(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}he(K,zi,je($t,{brighter(t){return t=t==null?Xt:Math.pow(Xt,t),new K(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?_t:Math.pow(_t,t),new K(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(Wt(t>=240?t-240:t+120,i,r),Wt(t,i,r),Wt(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new K(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 Wt(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,Ut=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=Ut.lastIndex=0,r,i,s,o=-1,a=[],u=[];for(t=t+"",e=e+"";(r=re.exec(t))&&(i=Ut.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=Ut.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 Gi(){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{Gi()}finally{dt=0,Wi(),ut=0}}function Ki(){var t=xt.now(),e=t-Yt;e>sn&&(Ot-=e,Yt=t)}function Wi(){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(Ki,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 Ui=ue("start","end","cancel","interrupt"),Zi=[],ln=0,Ae=1,se=2,Tt=3,Be=4,ae=5,At=6;function Gt(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:Ui,tween:Zi,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:ln})}function de(t,e){var n=W(t,e);if(n.state>ln)throw new Error("too late; already scheduled");return n}function Z(t,e){var n=W(t,e);if(n.state>Tt)throw new Error("too late; already running");return n}function W(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=W(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 W(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)):W(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)):W(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)):W(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?W(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,Gt(l[p],e,n,p,l,W(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=W(h,n),E=0,R=p.length;E<R;++E)(y=p[E])&&Gt(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 Go(t){return this.tween("text",typeof t=="function"?Oo(me(this,"text",t)):Lo(t==null?"":t+""))}function Ko(t){return function(e){this.textContent=t.call(this,e)}}function Wo(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&Ko(i)),e}return r._value=t,r}function Uo(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,Wo(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=W(u,e);Gt(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:Go,textTween:Uo,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])&&Gt(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),Kt=P/O[2];F=new et(Kt,B[0]-O[0]*Kt,B[1]-O[1]*Kt)}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}`]?(G(),wt(En(q(r)[`node-${n.type}`]),Cn(He({key:0},n)),null,16)):(G(),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?"":`
1
+ import{_ as mn}from"./vue-flow-background.6bb2a806.js";import{u as De,d as gn,h as pn,_ as vn,i as mt,a as yn,g as pe,e as wn}from"./vue-flow-core.0cbcaed0.js";import{d as qt,eR as _n,eW as Pe,r as Qt,ab as kn,bG as Jt,c as Y,aR as bn,o as G,a as wt,b as zt,ac as ct,u as q,t as xn,h as Mn,aY as Xe,ej as $n,ad as Fe,eh as It,e as Dt,at as Nn,eG as Cn,ed as He,el as En,f as lt,ei as Sn,j as zn,_ as Rn}from"./jwt-decode.esm.b9bb33e7.js";import{d as ve}from"./index.95966207.js";import{T as Tn}from"./TableCard.f71238a1.js";import{_ as An}from"./TablesTabs.vue_vue_type_script_setup_true_lang.9567dc60.js";import{u as Bn}from"./useTables.1d5bf2b4.js";import"./AbstraButton.vue_vue_type_script_setup_true_lang.865dcbf3.js";import"./PhKey.vue.55642d36.js";import"./PhPencil.vue.ea9f0def.js";import"./Card.eab9832f.js";import"./router.135b49e3.js";import"./index.cb46e99b.js";import"./tables.d6f8baad.js";import"./record.c01e7f08.js";import"./string.04644599.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]="e64fc3b6-1c2f-4153-96f0-632283478985",t._sentryDebugIdIdentifier="sentry-dbid-e64fc3b6-1c2f-4153-96f0-632283478985")}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 Gn=Array.prototype.find;function Kn(t){return function(){return Gn.call(this.children,t)}}function Wn(){return this.firstElementChild}function Un(t){return this.select(t==null?Wn:Kn(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 Ge(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)||Ge(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 Ke(t){return t.trim().split(/^|\s+/)}function ce(t){return t.classList||new We(t)}function We(t){this._node=t,this._names=Ke(t.getAttribute("class")||"")}We.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 Ue(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(){Ue(this,t)}}function Dr(t){return function(){Ze(this,t)}}function Pr(t,e){return function(){(e.apply(this,arguments)?Ue:Ze)(this,t)}}function Xr(t,e){var n=Ke(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 Gr(t){return arguments.length?this.each(t==null?qr:(typeof t=="function"?Or:Lr)(t)):this.node().innerHTML}function Kr(){this.nextSibling&&this.parentNode.appendChild(this)}function Wr(){return this.each(Kr)}function Ur(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Zr(){return this.each(Ur)}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=Ge(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:Un,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:Gr,raise:Wr,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*",U="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",wi=/^#([0-9a-f]{3,8})$/,_i=new RegExp(`^rgb\\(${ht},${ht},${ht}\\)$`),ki=new RegExp(`^rgb\\(${U},${U},${U}\\)$`),bi=new RegExp(`^rgba\\(${ht},${ht},${ht},${kt}\\)$`),xi=new RegExp(`^rgba\\(${U},${U},${U},${kt}\\)$`),Mi=new RegExp(`^hsl\\(${kt},${U},${U}\\)$`),$i=new RegExp(`^hsla\\(${kt},${U},${U},${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 K(t,e,n,r)}function tn(t){if(t instanceof K)return new K(t.h,t.s,t.l,t.opacity);if(t instanceof $t||(t=bt(t)),!t)return new K;if(t instanceof K)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 K(o,a,u,t.opacity)}function zi(t,e,n,r){return arguments.length===1?tn(t):new K(t,e,n,r==null?1:r)}function K(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}he(K,zi,je($t,{brighter(t){return t=t==null?Xt:Math.pow(Xt,t),new K(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?_t:Math.pow(_t,t),new K(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(Wt(t>=240?t-240:t+120,i,r),Wt(t,i,r),Wt(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new K(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 Wt(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,Ut=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=Ut.lastIndex=0,r,i,s,o=-1,a=[],u=[];for(t=t+"",e=e+"";(r=re.exec(t))&&(i=Ut.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=Ut.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 Gi(){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{Gi()}finally{dt=0,Wi(),ut=0}}function Ki(){var t=xt.now(),e=t-Yt;e>sn&&(Ot-=e,Yt=t)}function Wi(){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(Ki,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 Ui=ue("start","end","cancel","interrupt"),Zi=[],ln=0,Ae=1,se=2,Tt=3,Be=4,ae=5,At=6;function Gt(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:Ui,tween:Zi,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:ln})}function de(t,e){var n=W(t,e);if(n.state>ln)throw new Error("too late; already scheduled");return n}function Z(t,e){var n=W(t,e);if(n.state>Tt)throw new Error("too late; already running");return n}function W(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=W(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 W(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)):W(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)):W(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)):W(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?W(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,Gt(l[p],e,n,p,l,W(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=W(h,n),E=0,R=p.length;E<R;++E)(y=p[E])&&Gt(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 Go(t){return this.tween("text",typeof t=="function"?Oo(me(this,"text",t)):Lo(t==null?"":t+""))}function Ko(t){return function(e){this.textContent=t.call(this,e)}}function Wo(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&Ko(i)),e}return r._value=t,r}function Uo(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,Wo(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=W(u,e);Gt(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:Go,textTween:Uo,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])&&Gt(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),Kt=P/O[2];F=new et(Kt,B[0]-O[0]*Kt,B[1]-O[1]*Kt)}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}`]?(G(),wt(En(q(r)[`node-${n.type}`]),Cn(He({key:0},n)),null,16)):(G(),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}
@@ -12,4 +12,4 @@ import{_ as mn}from"./vue-flow-background.32950d16.js";import{u as De,d as gn,h
12
12
  a${t.maskBorderRadius},${t.maskBorderRadius} 0 0 1 -${t.maskBorderRadius},-${t.maskBorderRadius}
13
13
  v${-(x.value.height-2*t.maskBorderRadius)}
14
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)=>(G(),wt(q(vn),{position:g.position,class:It(["vue-flow__minimap",{pannable:g.pannable,zoomable:g.zoomable}])},{default:zt(()=>[(G(),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?(G(),ct("title",{key:0,id:`vue-flow__minimap-${q(o)}`},xn(g.ariaLabel),9,ms)):Mn("",!0),(G(!0),ct(Xe,null,$n(q(C),m=>(G(),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(()=>"arrowclosed"),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 pe({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 pe(l)});return(a,u)=>(G(),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 ve.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)}),ve.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 G(),ct(Xe,null,[lt(An),Dt("div",_s,[q(s)?(G(),wt(x,{key:0,style:{width:"100%"}})):(G(),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 Fs=Rn(bs,[["__scopeId","data-v-4b7d90f2"]]);export{Fs as default};
15
- //# sourceMappingURL=TablesDiagram.6a217e62.js.map
15
+ //# sourceMappingURL=TablesDiagram.29966818.js.map
@@ -1,2 +1,2 @@
1
- import{d as _,ec as f,ei as m,i as n,o as d,a as p,b as i,ac as g,ej as y,f as v,e as k,t as w,u as r,aY as I}from"./jwt-decode.esm.47f59010.js";import{A as T,T as D}from"./Card.0d56c597.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]="07961f99-3ec0-44d2-8964-f7a8fa77dd13",e._sentryDebugIdIdentifier="sentry-dbid-07961f99-3ec0-44d2-8964-f7a8fa77dd13")}catch{}})();const x=_({__name:"TablesTabs",setup(e){const a=f(),t=m(),c=String(t.name),u=t.params.projectId,l=[{label:n.translate("i18n_tablestabs_tables_list"),value:"tables"},{label:n.translate("i18n_tablestabs_diagram_view"),value:"tables-diagram"},{label:n.translate("i18n_tablestabs_run_sql"),value:"sql"}],b=o=>{a.push({name:String(o),params:{projectId:u}})};return(o,h)=>(d(),p(r(D),{"active-key":r(c),options:l,"onUpdate:activeKey":b},{default:i(()=>[(d(),g(I,null,y(l,s=>v(r(T),{key:s.value,name:s.value},{tab:i(()=>[k("span",null,w(s.label),1)]),_:2},1032,["name"])),64))]),_:1},8,["active-key"]))}});export{x as _};
2
- //# sourceMappingURL=TablesTabs.vue_vue_type_script_setup_true_lang.983777c7.js.map
1
+ import{d as _,ec as f,ei as m,i as n,o as c,a as p,b as i,ac as g,ej as y,f as v,e as k,t as w,u as r,aY as I}from"./jwt-decode.esm.b9bb33e7.js";import{A as T,T as D}from"./Card.eab9832f.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]="1aa700a2-0c61-4748-a21e-3512cc92fd59",e._sentryDebugIdIdentifier="sentry-dbid-1aa700a2-0c61-4748-a21e-3512cc92fd59")}catch{}})();const x=_({__name:"TablesTabs",setup(e){const a=f(),t=m(),u=String(t.name),d=t.params.projectId,l=[{label:n.translate("i18n_tablestabs_tables_list"),value:"tables"},{label:n.translate("i18n_tablestabs_diagram_view"),value:"tables-diagram"},{label:n.translate("i18n_tablestabs_run_sql"),value:"sql"}],b=o=>{a.push({name:String(o),params:{projectId:d}})};return(o,h)=>(c(),p(r(D),{"active-key":r(u),options:l,"onUpdate:activeKey":b},{default:i(()=>[(c(),g(I,null,y(l,s=>v(r(T),{key:s.value,name:s.value},{tab:i(()=>[k("span",null,w(s.label),1)]),_:2},1032,["name"])),64))]),_:1},8,["active-key"]))}});export{x as _};
2
+ //# sourceMappingURL=TablesTabs.vue_vue_type_script_setup_true_lang.9567dc60.js.map
@@ -1,2 +1,2 @@
1
- import{f as s,ee as J,d as L,c as N,U as H,R as Y,ac as U,b as n,u as t,aY as E,o as p,cE as C,i as c,aI as P,cD as G,a as g,df as D,g as y,t as f,d9 as $,h as j,dj as k,el as Q,dd as W,d6 as X,eq as Z,S as K,d0 as tt,cM as et,ei as at,A as nt}from"./jwt-decode.esm.47f59010.js";import{_ as lt}from"./AbstraButton.vue_vue_type_script_setup_true_lang.6c541630.js";import{I as st}from"./PhCopy.vue.17ec4184.js";import{T as rt}from"./tasksController.04461f1a.js";import{s as ot}from"./metadata.69e468d6.js";import{t as it}from"./ant-design.5bd7ec4d.js";import{R as ut}from"./dayjs.8c9480e7.js";import{g as R,a as A}from"./router.cfb03f89.js";import{R as dt}from"./repository.5c0cd878.js";import{a as ct,B as pt}from"./build.db7d8668.js";import{a as gt}from"./project.8a5a3632.js";import"./tables.34208b7c.js";import{a as ft}from"./asyncComputed.febe2b11.js";import"./contracts.generated.3f22c968.js";import"./record.30ff6eef.js";import"./linters.9f818fd6.js";import"./polling.96dd15ee.js";import"./PhWebhooksLogo.vue.e7321653.js";import"./index.8995a499.js";import"./string.39c8a903.js";(function(){try{var d=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[i]="15ce4b93-6d6e-481d-aa97-b0859059f655",d._sentryDebugIdIdentifier="sentry-dbid-15ce4b93-6d6e-481d-aa97-b0859059f655")}catch{}})();var mt={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 _t=mt;function B(d){for(var i=1;i<arguments.length;i++){var o=arguments[i]!=null?Object(arguments[i]):{},b=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(b=b.concat(Object.getOwnPropertySymbols(o).filter(function(v){return Object.getOwnPropertyDescriptor(o,v).enumerable}))),b.forEach(function(v){yt(d,v,o[v])})}return d}function yt(d,i,o){return i in d?Object.defineProperty(d,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):d[i]=o,d}var z=function(i,o){var b=B({},i,o.attrs);return s(J,B({},b,{icon:_t}),null)};z.displayName="SyncOutlined";z.inheritAttrs=!1;const bt=z,vt=L({__name:"TasksView",props:{api:{},stages:{},editor:{type:Boolean},stageId:{},status:{}},setup(d,{expose:i}){const o=d,{setup:b,tearDown:v,state:u,getColumns:T,fetchTasks:I,clearAllTasks:w}=rt({api:o.api,poll:!0,stages:o.stages,stageId:o.stageId,status:o.status}),S=e=>{var a,m;if(!((a=e.completed)!=null&&a.at)||!((m=e.created)!=null&&m.at))return null;const l=new Date(e.created.at).getTime(),r=new Date(e.completed.at).getTime();return Math.round((r-l)/1e3)},h=e=>{var a;if(!((a=e.created)!=null&&a.at))return null;const l=new Date(e.created.at).getTime(),r=Date.now();return Math.round((r-l)/1e3)},x=e=>{if(e<60)return`${e}s`;const l=Math.floor(e/60);if(l<60){const _=e%60;return _>0?`${l}m ${_}s`:`${l}m`}const r=Math.floor(l/60);if(r<24){const _=l%60;return _>0?`${r}h ${_}m`:`${r}h`}const a=Math.floor(r/24),m=r%24;return m>0?`${a}d ${m}h`:`${a}d`},O=N(()=>o.stages?u.tasks.map(e=>{var r,a,m;const l=(r=o.stages)==null?void 0:r.find(_=>_.id===e.targetStageId);return l?{...e,targetStageTitle:l.stageTitle,targetStageType:l.stageType,completedAt:(m=e.completed)!=null&&m.at?new Date(e.completed.at).toLocaleString():"Not completed",createdAt:new Date(e.created.at).toLocaleString(),deleted:!1,duration:S(e),pendingDuration:h(e)}:{...e,targetStageTitle:null,targetStageType:null,completedAt:(a=e.completed)!=null&&a.at?new Date(e.completed.at).toLocaleString():c.translate("i18n_tasksview_not_completed"),createdAt:new Date(e.created.at).toLocaleString(),deleted:!0,duration:S(e),pendingDuration:h(e)}}):u.tasks.map(e=>{var l;return{...e,deleted:!1,completedAt:(l=e.completed)!=null&&l.at?new Date(e.completed.at).toLocaleString():c.translate("i18n_tasksview_not_completed"),createdAt:new Date(e.created.at).toLocaleString(),duration:S(e),pendingDuration:h(e)}})),F=(e,l,r)=>{var _,M;const a=(_=e.current)!=null?_:1,m=(M=e.pageSize)!=null?M:10;u.pagination.currentIndex=a-1,u.pagination.pageSize=m,I()},V=(e,l)=>`/_editor/${e}/${l}`,q=e=>{typeof e=="object"?navigator.clipboard.writeText(JSON.stringify(e)):navigator.clipboard.writeText(String(e)),et.success({content:c.translate("i18n_tasksview_copied_to_clipboard")})};return i({clearAllTasks:w}),H(()=>b()),Y(()=>v()),(e,l)=>(p(),U(E,null,[s(t(G),{layout:"vertical"},{default:n(()=>[s(t(R),{gutter:10},{default:n(()=>[s(t(A),{span:10},{default:n(()=>[s(t(C),{label:t(c).translate("i18n_tasksview_stage_label")},{default:n(()=>[s(t(P),{value:t(u).filters.stage,"onUpdate:value":l[0]||(l[0]=r=>t(u).filters.stage=r),options:t(u).filterOptions.stages,placeholder:t(c).translate("i18n_tasksview_all_placeholder"),"allow-clear":""},null,8,["value","options","placeholder"])]),_:1},8,["label"])]),_:1}),s(t(A),{span:6},{default:n(()=>[s(t(C),{label:t(c).translate("i18n_tasksview_status_label")},{default:n(()=>[s(t(P),{value:t(u).filters.status,"onUpdate:value":l[1]||(l[1]=r=>t(u).filters.status=r),options:t(u).filterOptions.statuses,"option-label":"label","option-value":"value",filter:!1,placeholder:t(c).translate("i18n_tasksview_all_placeholder"),"allow-clear":""},null,8,["value","options","placeholder"])]),_:1},8,["label"])]),_:1}),s(t(A),{span:8},{default:n(()=>[s(t(C),{label:t(c).translate("i18n_tasksview_created_at_date_label")},{default:n(()=>[s(t(ut),{value:t(u).filters.dateRange,"onUpdate:value":l[2]||(l[2]=r=>t(u).filters.dateRange=r),style:{width:"100%"}},null,8,["value"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1}),s(t(tt),{columns:t(T)(),"data-source":O.value,scroll:{x:"max-content",y:1e3},bordered:"",size:"small",pagination:{current:t(u).pagination.currentIndex+1,pageSize:t(u).pagination.pageSize,total:t(u).pagination.totalCount},onChange:F},{bodyCell:n(({column:r,record:a})=>[r.key==="timeInfo"?(p(),g(t(k),{key:0,vertical:"",gap:4},{default:n(()=>[s(t(D),null,{default:n(()=>[y(f(a.createdAt),1)]),_:2},1024),a.status==="pending"&&a.pendingDuration?(p(),g(t($),{key:0,color:"orange"},{default:n(()=>[y(f(t(c).translate("i18n_tasksview_pending_for"))+" "+f(x(a.pendingDuration)),1)]),_:2},1024)):a.status==="started"?(p(),g(t($),{key:1,color:"blue"},{default:n(()=>[y(f(t(c).translate("i18n_tasksview_status_running"))+" ",1),s(t(bt),{spin:!0,style:{"margin-left":"4px"}})]),_:1})):a.duration?(p(),g(t($),{key:2,color:"green"},{default:n(()=>[y(f(t(c).translate("i18n_tasksview_completed_in"))+" "+f(x(a.duration)),1)]),_:2},1024)):j("",!0)]),_:2},1024)):r.key==="stageInfo"?(p(),g(t(k),{key:1,vertical:"",gap:4},{default:n(()=>[a.deleted?(p(),g(t(D),{key:0},{default:n(()=>[y(f(t(c).translate("i18n_tasksview_not_found")),1)]),_:1})):(p(),g(t(k),{key:1,gap:8,align:"center"},{default:n(()=>[(p(),g(Q(t(ot)(a.targetStageType)),{size:20})),s(t(k),{vertical:"",gap:0},{default:n(()=>[e.editor?(p(),g(t(W),{key:0,href:V(a.targetStageType,a.targetStageId)},{default:n(()=>[y(f(a.targetStageTitle),1)]),_:2},1032,["href"])):(p(),g(t(D),{key:1},{default:n(()=>[y(f(a.targetStageTitle),1)]),_:2},1024)),s(t(D),{type:"secondary",style:{fontSize:"12px"}},{default:n(()=>[y(f(a.type),1)]),_:2},1024)]),_:2},1024)]),_:2},1024))]),_:2},1024)):r.key==="payloadInfo"?(p(),g(t(k),{key:2,gap:8,align:"start",justify:"space-between"},{default:n(()=>[s(t(X),{"tree-data":t(it)(a.payload),selectable:!1,style:{flex:"1"}},null,8,["tree-data"]),s(lt,{type:"text",size:"small",tooltip:t(c).translate("i18n_tasksview_copy_payload_tooltip"),onClick:Z(m=>q(a.payload),["stop"])},{default:n(()=>[s(t(st))]),_:2},1032,["tooltip","onClick"])]),_:2},1024)):j("",!0)]),footer:n(()=>[s(t(R),{justify:"end",gutter:10},{default:n(()=>[s(t(A),null,{default:n(()=>[s(t(K),{size:"small"})]),_:1}),s(t(A),null,{default:n(()=>[s(t(D),null,{default:n(()=>[y(f(t(c).translate("i18n_tasksview_auto_updating")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["columns","data-source","pagination"])],64))}}),Ut=L({__name:"Tasks",setup(d){const i=at(),o=i.params.projectId,b=i.query.stage,v=i.query.status,u=new dt(o),{result:T}=ft(async()=>{const S=(await ct.list(o)).find(O=>O.latest);if(!S)return null;const[h,x]=await Promise.all([pt.get(S.id),gt.get(o)]);return{buildSpec:h,project:x}}),I=N(()=>!T.value||!T.value.buildSpec?null:T.value.buildSpec.runtimes.map(w=>({id:w.id,stageTitle:w.title,stageType:w.type})));return(w,S)=>(p(),U(E,null,[s(t(nt),null,{default:n(()=>[y(f(t(c).translate("i18n_tasksview_title")),1)]),_:1}),I.value?(p(),g(vt,{key:0,class:"tasks",api:t(u),stages:I.value,"stage-id":t(b),status:t(v)},null,8,["api","stages","stage-id","status"])):j("",!0)],64))}});export{Ut as default};
2
- //# sourceMappingURL=Tasks.8fbc0cc0.js.map
1
+ import{f as s,ee as J,d as L,c as N,U as H,R as Y,ac as U,b as n,u as t,aY as E,o as p,cE as C,i as c,aI as P,cD as G,a as g,df as D,g as y,t as f,d9 as $,h as j,dj as k,el as Q,dd as W,d6 as X,eq as Z,S as K,d0 as tt,cM as et,ei as at,A as nt}from"./jwt-decode.esm.b9bb33e7.js";import{_ as lt}from"./AbstraButton.vue_vue_type_script_setup_true_lang.865dcbf3.js";import{I as st}from"./PhCopy.vue.2163dc9b.js";import{T as rt}from"./tasksController.866fa385.js";import{s as ot}from"./metadata.17375f25.js";import{t as it}from"./ant-design.5ec0b6b3.js";import{R as ut}from"./dayjs.618c5367.js";import{g as R,a as A}from"./router.135b49e3.js";import{R as dt}from"./repository.88fdba21.js";import{a as ct,B as pt}from"./build.bfc699c6.js";import{a as gt}from"./project.f3f1cd2e.js";import"./tables.d6f8baad.js";import{a as ft}from"./asyncComputed.7ddee0b0.js";import"./contracts.generated.0a04f0c8.js";import"./record.c01e7f08.js";import"./linters.f033aedb.js";import"./polling.bdac3134.js";import"./PhWebhooksLogo.vue.a73cf99c.js";import"./index.cb46e99b.js";import"./string.04644599.js";(function(){try{var d=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[i]="142d4d55-e64a-4d3a-9612-27295a52b048",d._sentryDebugIdIdentifier="sentry-dbid-142d4d55-e64a-4d3a-9612-27295a52b048")}catch{}})();var mt={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 _t=mt;function B(d){for(var i=1;i<arguments.length;i++){var o=arguments[i]!=null?Object(arguments[i]):{},b=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(b=b.concat(Object.getOwnPropertySymbols(o).filter(function(v){return Object.getOwnPropertyDescriptor(o,v).enumerable}))),b.forEach(function(v){yt(d,v,o[v])})}return d}function yt(d,i,o){return i in d?Object.defineProperty(d,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):d[i]=o,d}var z=function(i,o){var b=B({},i,o.attrs);return s(J,B({},b,{icon:_t}),null)};z.displayName="SyncOutlined";z.inheritAttrs=!1;const bt=z,vt=L({__name:"TasksView",props:{api:{},stages:{},editor:{type:Boolean},stageId:{},status:{}},setup(d,{expose:i}){const o=d,{setup:b,tearDown:v,state:u,getColumns:T,fetchTasks:I,clearAllTasks:w}=rt({api:o.api,poll:!0,stages:o.stages,stageId:o.stageId,status:o.status}),S=e=>{var a,m;if(!((a=e.completed)!=null&&a.at)||!((m=e.created)!=null&&m.at))return null;const l=new Date(e.created.at).getTime(),r=new Date(e.completed.at).getTime();return Math.round((r-l)/1e3)},h=e=>{var a;if(!((a=e.created)!=null&&a.at))return null;const l=new Date(e.created.at).getTime(),r=Date.now();return Math.round((r-l)/1e3)},x=e=>{if(e<60)return`${e}s`;const l=Math.floor(e/60);if(l<60){const _=e%60;return _>0?`${l}m ${_}s`:`${l}m`}const r=Math.floor(l/60);if(r<24){const _=l%60;return _>0?`${r}h ${_}m`:`${r}h`}const a=Math.floor(r/24),m=r%24;return m>0?`${a}d ${m}h`:`${a}d`},O=N(()=>o.stages?u.tasks.map(e=>{var r,a,m;const l=(r=o.stages)==null?void 0:r.find(_=>_.id===e.targetStageId);return l?{...e,targetStageTitle:l.stageTitle,targetStageType:l.stageType,completedAt:(m=e.completed)!=null&&m.at?new Date(e.completed.at).toLocaleString():"Not completed",createdAt:new Date(e.created.at).toLocaleString(),deleted:!1,duration:S(e),pendingDuration:h(e)}:{...e,targetStageTitle:null,targetStageType:null,completedAt:(a=e.completed)!=null&&a.at?new Date(e.completed.at).toLocaleString():c.translate("i18n_tasksview_not_completed"),createdAt:new Date(e.created.at).toLocaleString(),deleted:!0,duration:S(e),pendingDuration:h(e)}}):u.tasks.map(e=>{var l;return{...e,deleted:!1,completedAt:(l=e.completed)!=null&&l.at?new Date(e.completed.at).toLocaleString():c.translate("i18n_tasksview_not_completed"),createdAt:new Date(e.created.at).toLocaleString(),duration:S(e),pendingDuration:h(e)}})),F=(e,l,r)=>{var _,M;const a=(_=e.current)!=null?_:1,m=(M=e.pageSize)!=null?M:10;u.pagination.currentIndex=a-1,u.pagination.pageSize=m,I()},V=(e,l)=>`/_editor/${e}/${l}`,q=e=>{typeof e=="object"?navigator.clipboard.writeText(JSON.stringify(e)):navigator.clipboard.writeText(String(e)),et.success({content:c.translate("i18n_tasksview_copied_to_clipboard")})};return i({clearAllTasks:w}),H(()=>b()),Y(()=>v()),(e,l)=>(p(),U(E,null,[s(t(G),{layout:"vertical"},{default:n(()=>[s(t(R),{gutter:10},{default:n(()=>[s(t(A),{span:10},{default:n(()=>[s(t(C),{label:t(c).translate("i18n_tasksview_stage_label")},{default:n(()=>[s(t(P),{value:t(u).filters.stage,"onUpdate:value":l[0]||(l[0]=r=>t(u).filters.stage=r),options:t(u).filterOptions.stages,placeholder:t(c).translate("i18n_tasksview_all_placeholder"),"allow-clear":""},null,8,["value","options","placeholder"])]),_:1},8,["label"])]),_:1}),s(t(A),{span:6},{default:n(()=>[s(t(C),{label:t(c).translate("i18n_tasksview_status_label")},{default:n(()=>[s(t(P),{value:t(u).filters.status,"onUpdate:value":l[1]||(l[1]=r=>t(u).filters.status=r),options:t(u).filterOptions.statuses,"option-label":"label","option-value":"value",filter:!1,placeholder:t(c).translate("i18n_tasksview_all_placeholder"),"allow-clear":""},null,8,["value","options","placeholder"])]),_:1},8,["label"])]),_:1}),s(t(A),{span:8},{default:n(()=>[s(t(C),{label:t(c).translate("i18n_tasksview_created_at_date_label")},{default:n(()=>[s(t(ut),{value:t(u).filters.dateRange,"onUpdate:value":l[2]||(l[2]=r=>t(u).filters.dateRange=r),style:{width:"100%"}},null,8,["value"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1}),s(t(tt),{columns:t(T)(),"data-source":O.value,scroll:{x:"max-content",y:1e3},bordered:"",size:"small",pagination:{current:t(u).pagination.currentIndex+1,pageSize:t(u).pagination.pageSize,total:t(u).pagination.totalCount},onChange:F},{bodyCell:n(({column:r,record:a})=>[r.key==="timeInfo"?(p(),g(t(k),{key:0,vertical:"",gap:4},{default:n(()=>[s(t(D),null,{default:n(()=>[y(f(a.createdAt),1)]),_:2},1024),a.status==="pending"&&a.pendingDuration?(p(),g(t($),{key:0,color:"orange"},{default:n(()=>[y(f(t(c).translate("i18n_tasksview_pending_for"))+" "+f(x(a.pendingDuration)),1)]),_:2},1024)):a.status==="started"?(p(),g(t($),{key:1,color:"blue"},{default:n(()=>[y(f(t(c).translate("i18n_tasksview_status_running"))+" ",1),s(t(bt),{spin:!0,style:{"margin-left":"4px"}})]),_:1})):a.duration?(p(),g(t($),{key:2,color:"green"},{default:n(()=>[y(f(t(c).translate("i18n_tasksview_completed_in"))+" "+f(x(a.duration)),1)]),_:2},1024)):j("",!0)]),_:2},1024)):r.key==="stageInfo"?(p(),g(t(k),{key:1,vertical:"",gap:4},{default:n(()=>[a.deleted?(p(),g(t(D),{key:0},{default:n(()=>[y(f(t(c).translate("i18n_tasksview_not_found")),1)]),_:1})):(p(),g(t(k),{key:1,gap:8,align:"center"},{default:n(()=>[(p(),g(Q(t(ot)(a.targetStageType)),{size:20})),s(t(k),{vertical:"",gap:0},{default:n(()=>[e.editor?(p(),g(t(W),{key:0,href:V(a.targetStageType,a.targetStageId)},{default:n(()=>[y(f(a.targetStageTitle),1)]),_:2},1032,["href"])):(p(),g(t(D),{key:1},{default:n(()=>[y(f(a.targetStageTitle),1)]),_:2},1024)),s(t(D),{type:"secondary",style:{fontSize:"12px"}},{default:n(()=>[y(f(a.type),1)]),_:2},1024)]),_:2},1024)]),_:2},1024))]),_:2},1024)):r.key==="payloadInfo"?(p(),g(t(k),{key:2,gap:8,align:"start",justify:"space-between"},{default:n(()=>[s(t(X),{"tree-data":t(it)(a.payload),selectable:!1,style:{flex:"1"}},null,8,["tree-data"]),s(lt,{type:"text",size:"small",tooltip:t(c).translate("i18n_tasksview_copy_payload_tooltip"),onClick:Z(m=>q(a.payload),["stop"])},{default:n(()=>[s(t(st))]),_:2},1032,["tooltip","onClick"])]),_:2},1024)):j("",!0)]),footer:n(()=>[s(t(R),{justify:"end",gutter:10},{default:n(()=>[s(t(A),null,{default:n(()=>[s(t(K),{size:"small"})]),_:1}),s(t(A),null,{default:n(()=>[s(t(D),null,{default:n(()=>[y(f(t(c).translate("i18n_tasksview_auto_updating")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["columns","data-source","pagination"])],64))}}),Ut=L({__name:"Tasks",setup(d){const i=at(),o=i.params.projectId,b=i.query.stage,v=i.query.status,u=new dt(o),{result:T}=ft(async()=>{const S=(await ct.list(o)).find(O=>O.latest);if(!S)return null;const[h,x]=await Promise.all([pt.get(S.id),gt.get(o)]);return{buildSpec:h,project:x}}),I=N(()=>!T.value||!T.value.buildSpec?null:T.value.buildSpec.runtimes.map(w=>({id:w.id,stageTitle:w.title,stageType:w.type})));return(w,S)=>(p(),U(E,null,[s(t(nt),null,{default:n(()=>[y(f(t(c).translate("i18n_tasksview_title")),1)]),_:1}),I.value?(p(),g(vt,{key:0,class:"tasks",api:t(u),stages:I.value,"stage-id":t(b),status:t(v)},null,8,["api","stages","stage-id","status"])):j("",!0)],64))}});export{Ut as default};
2
+ //# sourceMappingURL=Tasks.db070216.js.map
@@ -1,2 +1,2 @@
1
- import{f as l,ee as d}from"./jwt-decode.esm.47f59010.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]="8f83f683-1cf7-41c1-9436-eeee01e91536",e._sentryDebugIdIdentifier="sentry-dbid-8f83f683-1cf7-41c1-9436-eeee01e91536")}catch{}})();var f={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 i=f;function o(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){u(e,a,n[a])})}return e}function u(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=o({},t,n.attrs);return l(d,o({},r,{icon:i}),null)};c.displayName="UploadOutlined";c.inheritAttrs=!1;const p=c;export{p as U};
2
- //# sourceMappingURL=UploadOutlined.e2352877.js.map
1
+ import{f as o,ee as l}from"./jwt-decode.esm.b9bb33e7.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]="d49c005a-5414-431c-9dc5-94046d994bcb",e._sentryDebugIdIdentifier="sentry-dbid-d49c005a-5414-431c-9dc5-94046d994bcb")}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.654fb655.js.map
@@ -1,2 +1,2 @@
1
- var fe=Object.defineProperty;var ge=(i,t,l)=>t in i?fe(i,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):i[t]=l;var R=(i,t,l)=>(ge(i,typeof t!="symbol"?t+"":t,l),l);import{a as z}from"./asyncComputed.febe2b11.js";import{d as k,r as O,a as g,b as s,u as e,o as m,f as o,cU as J,g as h,t as v,i as n,aI as Y,cW as he,bY as w,dj as ve,al as S,cE as C,bQ as V,cD as N,c as W,ac as H,ej as be,d9 as we,aY as X,er as ee,cJ as te,ei as Ce,U as ke,h as T,A as Pe,de as Ue}from"./jwt-decode.esm.47f59010.js";import{A as $}from"./index.12e6cfe2.js";import{_ as xe}from"./DocsButton.vue_vue_type_script_setup_true_lang.a2b3eeb7.js";import{d as L,k as I,p as U}from"./router.cfb03f89.js";import{C as le}from"./CrudView.789b533f.js";import{G as ae}from"./PhPencil.vue.3586175f.js";import{C as Re}from"./repository.b1c27c35.js";import{E as ne}from"./record.30ff6eef.js";import{a as K}from"./ant-design.5bd7ec4d.js";import{A as M,T as Ie}from"./Card.0d56c597.js";import"./constants.bbfdfb21.js";import"./index.8995a499.js";import"./url.4ba49005.js";import"./PhDotsThreeVertical.vue.e9c6f787.js";import"./fetch.e0dfa394.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[t]="f44a77f5-6e61-47e0-a6ca-886fb7c71e94",i._sentryDebugIdIdentifier="sentry-dbid-f44a77f5-6e61-47e0-a6ca-886fb7c71e94")}catch{}})();const $e=k({__name:"View",props:{signupPolicy:{}},emits:["updated","save"],setup(i,{emit:t}){const l=i,a=O(l.signupPolicy.strategy),r=O(l.signupPolicy.strategy==="patternOnly"?l.signupPolicy.emailPatterns:[]),c=O(l.signupPolicy.strategy==="patternOnly"?l.signupPolicy.emailPatterns.map(u=>({label:u})):[]),y=u=>{const P=u;if(r.value=P,P.length===0){a.value="inviteOnly",f("inviteOnly");return}c.value=P.map(x=>({label:x})),l.signupPolicy.emailPatterns=u,t("updated",l.signupPolicy)},_=()=>{t("save")},f=u=>{a.value=u,u!=="patternOnly"&&(u==="inviteOnly"&&l.signupPolicy.allowOnlyInvited(),t("updated",l.signupPolicy))};return(u,P)=>(m(),g(e(ve),{style:{"padding-top":"8px",width:"100%"},justify:"space-between",align:"flex-end"},{default:s(()=>[o(e(he),{value:a.value,"onUpdate:value":f},{default:s(()=>[o(e($),{direction:"vertical"},{default:s(()=>[o(e(J),{value:"inviteOnly"},{default:s(()=>[h(v(e(n).translate("i18n_signup_policy_invite_only",null)),1)]),_:1}),o(e($),null,{default:s(()=>[o(e(J),{value:"patternOnly"},{default:s(()=>[h(v(e(n).translate("i18n_signup_policy_pattern_only",null)),1)]),_:1}),o(e(Y),{mode:"tags",value:u.signupPolicy.emailPatterns,style:{"min-width":"300px"},placeholder:e(n).translate("i18n_signup_policy_domain_placeholder",null),disabled:a.value!=="patternOnly",options:c.value,"dropdown-match-select-width":"",open:!1,"onUpdate:value":y},null,8,["value","placeholder","disabled","options"])]),_:1})]),_:1})]),_:1},8,["value"]),o(e(w),{disabled:!u.signupPolicy.hasChanges,type:"primary",onClick:_},{default:s(()=>[h(v(e(n).translate("i18n_signup_policy_save_changes",null)),1)]),_:1},8,["disabled"])]),_:1}))}}),Oe=k({__name:"NewUser",props:{roleOptions:{}},emits:["created","cancel"],setup(i,{emit:t}){const a=i.roleOptions.map(_=>({label:_.name,value:_.name})),r=S({email:"",roles:[]});function c(){t("cancel")}function y(){!r.email||t("created",r)}return(_,f)=>(m(),g(e(L),{open:"",title:e(n).translate("i18n_user_editor_new_title",null),width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:c},{extra:s(()=>[o(e($),null,{default:s(()=>[o(e(w),{onClick:c},{default:s(()=>[h(v(e(n).translate("i18n_user_editor_cancel",null)),1)]),_:1}),o(e(w),{type:"primary",onClick:y},{default:s(()=>[h(v(e(n).translate("i18n_user_editor_submit",null)),1)]),_:1})]),_:1})]),default:s(()=>[o(e(N),{model:r,layout:"vertical"},{default:s(()=>[o(e(C),{key:"email",label:e(n).translate("i18n_user_editor_email_label",null),required:!0},{default:s(()=>[o(e(V),{value:r.email,"onUpdate:value":f[0]||(f[0]=u=>r.email=u)},null,8,["value"])]),_:1},8,["label"]),o(e(C),{key:"role",label:e(n).translate("i18n_user_editor_role_label",null)},{default:s(()=>[o(e(Y),{value:r.roles,"onUpdate:value":f[1]||(f[1]=u=>r.roles=u),mode:"multiple",options:e(a)},null,8,["value","options"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["title"]))}}),je=k({__name:"UpdateUser",props:{roleOptions:{},email:{},roles:{}},emits:["updated","cancel"],setup(i,{emit:t}){const l=i,a=l.roleOptions.map(_=>({label:_.name,value:_.name})),r=S({email:l.email,roles:l.roles});function c(){t("cancel")}function y(){t("updated",r)}return(_,f)=>(m(),g(e(L),{open:"",title:e(n).translate("i18n_user_editor_update_title",null),width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:c},{extra:s(()=>[o(e($),null,{default:s(()=>[o(e(w),{onClick:c},{default:s(()=>[h(v(e(n).translate("i18n_user_editor_cancel",null)),1)]),_:1}),o(e(w),{type:"primary",onClick:y},{default:s(()=>[h(v(e(n).translate("i18n_user_editor_submit",null)),1)]),_:1})]),_:1})]),default:s(()=>[o(e(N),{model:r,layout:"vertical"},{default:s(()=>[o(e(C),{key:"email",label:e(n).translate("i18n_user_editor_email_label",null)},{default:s(()=>[o(e(V),{value:r.email,"onUpdate:value":f[0]||(f[0]=u=>r.email=u)},null,8,["value"])]),_:1},8,["label"]),o(e(C),{key:"role",label:e(n).translate("i18n_user_editor_role_label",null)},{default:s(()=>[o(e(Y),{value:r.roles,"onUpdate:value":f[1]||(f[1]=u=>r.roles=u),mode:"multiple",options:e(a)},null,8,["value","options"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["title"]))}}),Ae=k({__name:"View",props:{loading:{type:Boolean},users:{},onCreate:{type:Function},onEdit:{type:Function},onDelete:{type:Function}},setup(i){const t=i,l=W(()=>{var a;return{columns:[{title:n.translate("i18n_user_editor_email_label",null)},{title:n.translate("i18n_user_editor_roles_column",null)},{title:"",align:"right"}],rows:(a=t.users.map(r=>({key:r.email,cells:[{type:"text",text:r.email},{type:"slot",key:"roles",payload:{roles:r.roles}},{type:"actions",actions:[{icon:ae,label:n.translate("i18n_user_editor_edit",null),onClick:()=>t.onEdit(r)},{icon:ee,label:n.translate("i18n_user_editor_delete",null),onClick:()=>t.onDelete(r)}]}]})))!=null?a:[]}});return(a,r)=>(m(),g(le,{"entity-name":"users",title:"",loading:a.loading,description:e(n).translate("i18n_user_editor_view_description",null),"empty-title":e(n).translate("i18n_user_editor_empty_title",null),table:l.value,"create-button-text":e(n).translate("i18n_user_editor_add_button",null),create:a.onCreate},{roles:s(({payload:c})=>[(m(!0),H(X,null,be(c.roles,y=>(m(),g(e(we),{key:y,bordered:""},{default:s(()=>[h(v(y),1)]),_:2},1024))),128))]),_:1},8,["loading","description","empty-title","table","create-button-text","create"]))}}),Ee=k({__name:"NewRole",emits:["created","cancel"],setup(i,{emit:t}){const l=S({name:"",description:""});function a(){t("cancel")}function r(){!l.name||t("created",l)}return(c,y)=>(m(),g(e(L),{open:"",title:e(n).translate("i18n_role_editor_new_title",null),width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:a},{extra:s(()=>[o(e($),null,{default:s(()=>[o(e(w),{onClick:a},{default:s(()=>[h(v(e(n).translate("i18n_role_editor_cancel",null)),1)]),_:1}),o(e(w),{type:"primary",onClick:r},{default:s(()=>[h(v(e(n).translate("i18n_role_editor_submit",null)),1)]),_:1})]),_:1})]),default:s(()=>[o(e(N),{model:l,layout:"vertical"},{default:s(()=>[o(e(C),{key:"name",label:e(n).translate("i18n_role_editor_name_label",null),required:!0},{default:s(()=>[o(e(V),{value:l.name,"onUpdate:value":y[0]||(y[0]=_=>l.name=_)},null,8,["value"])]),_:1},8,["label"]),o(e(C),{key:"description",label:e(n).translate("i18n_role_editor_description_label",null)},{default:s(()=>[o(e(te),{value:l.description,"onUpdate:value":y[1]||(y[1]=_=>l.description=_),placeholder:e(n).translate("i18n_role_editor_description_placeholder",null),rows:3},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["title"]))}}),De=k({__name:"UpdateRole",props:{name:{},description:{}},emits:["updated","cancel"],setup(i,{emit:t}){const l=i,a=S({description:l.description});function r(){t("cancel")}function c(){t("updated",a)}return(y,_)=>(m(),g(e(L),{open:"",title:e(n).translate("i18n_role_editor_update_title",null),width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:r},{extra:s(()=>[o(e($),null,{default:s(()=>[o(e(w),{onClick:r},{default:s(()=>[h(v(e(n).translate("i18n_role_editor_cancel",null)),1)]),_:1}),o(e(w),{type:"primary",onClick:c},{default:s(()=>[h(v(e(n).translate("i18n_role_editor_submit",null)),1)]),_:1})]),_:1})]),default:s(()=>[o(e(N),{model:a,layout:"vertical"},{default:s(()=>[o(e(C),{key:"name",label:e(n).translate("i18n_role_editor_name_label",null)},{default:s(()=>[o(e(V),{value:l.name,disabled:""},null,8,["value"])]),_:1},8,["label"]),o(e(C),{key:"role",label:e(n).translate("i18n_role_editor_description_label",null)},{default:s(()=>[o(e(te),{value:a.description,"onUpdate:value":_[0]||(_[0]=f=>a.description=f),placeholder:e(n).translate("i18n_role_editor_description_placeholder",null),rows:3},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["title"]))}}),Te=k({__name:"View",props:{loading:{type:Boolean},roles:{},onCreate:{type:Function},onEdit:{type:Function},onDelete:{type:Function}},setup(i){const t=i,l=W(()=>{var a;return{columns:[{title:n.translate("i18n_role_editor_name_label",null)},{title:n.translate("i18n_role_editor_description_label",null)},{title:"",align:"right"}],rows:(a=t.roles.map(r=>({key:r.id,cells:[{type:"text",text:r.name},{type:"text",text:r.description},{type:"actions",actions:[{icon:ae,label:n.translate("i18n_role_editor_edit",null),onClick:()=>t.onEdit(r)},{icon:ee,label:n.translate("i18n_role_editor_delete",null),onClick:()=>t.onDelete(r)}]}]})))!=null?a:[]}});return(a,r)=>(m(),g(le,{"entity-name":"roles",loading:a.loading,title:"",description:e(n).translate("i18n_role_editor_view_description",null),"empty-title":e(n).translate("i18n_role_editor_empty_title",null),table:l.value,"create-button-text":e(n).translate("i18n_role_editor_add_button",null),create:a.onCreate},null,8,["loading","description","empty-title","table","create-button-text","create"]))}}),B=class{constructor(t){R(this,"record");this.dto=t,this.record=ne.from(t)}static from(t){return new B(t)}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(t){this.record.set("emailPatterns",t)}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(t){return B.pattern.test(t)}};let j=B;R(j,"pattern",new RegExp("^@?(?!-)[A-Za-z0-9-]{1,}(?<!-)(\\.[A-Za-z]{2,})+$"));class Fe{constructor(){R(this,"urlPath","signup-policy")}async update(t,l){return I.patch(`projects/${t}/${this.urlPath}`,l)}async get(t){return I.get(`projects/${t}/${this.urlPath}`)}}const Q=new Fe;class Be{constructor(t){this.projectId=t}async update(t){const{emailPatterns:l}=t.changes;if(!l)return t;const a=await Q.update(this.projectId,{emailPatterns:l});return j.from(a)}async get(){const t=await Q.get(this.projectId);return j.from(t)}}class Z{constructor(t){R(this,"record");this.dto=t,this.record=ne.from(t)}static from(t){return new Z(t)}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(t){this.record.set("email",t)}get projectId(){return this.record.get("projectId")}get roles(){return this.record.get("roles")}set roles(t){this.record.set("roles",t)}update(t){this.record.update(t)}resetChanges(){this.record.resetChanges()}}class Se{constructor(){R(this,"urlPath","users")}async create(t,l){return I.post(`projects/${t}/${this.urlPath}`,l)}async delete(t,l){await I.delete(`projects/${t}/${this.urlPath}/${l}`)}async list(t,{limit:l,offset:a}){const r={};l&&(r.limit=l.toString()),a&&(r.offset=a.toString());const c=new URLSearchParams(r);return I.get(`projects/${t}/${this.urlPath}?${c.toString()}`)}async update(t,l,a){return I.patch(`projects/${t}/${this.urlPath}/${l}`,a)}}const F=new Se;class Ve{constructor(t){this.projectId=t}async create(t){await F.create(this.projectId,t)}async update(t,l){await F.update(this.projectId,t,l)}async delete(t){await F.delete(this.projectId,t)}async list(t,l){return(await F.list(this.projectId,{limit:t,offset:l})).map(Z.from)}}const at=k({__name:"View",setup(i){const l=Ce().params.projectId,a=O({type:"initial"}),r=O("users");ke(()=>{const p=new URLSearchParams(location.search).get("selected-panel")||"users",b=["roles","users"].includes(p)?p:"users";p&&(r.value=b)});const c=()=>{a.value.type="initial"},y=()=>{a.value.type="creatingUser"},_=d=>{a.value={type:"editingUser",payload:d}},f=()=>{a.value.type="creatingRole"},u=d=>{a.value={type:"editingRole",payload:d}},P=new Be(l),{result:x,refetch:re}=z(()=>P.get()),oe=async()=>{if(!!x.value)try{await P.update(x.value),re()}catch(d){d instanceof Error&&U(n.translate("i18n_access_control_update_error",null),d.message)}},A=new Ve(l),{loading:se,result:ie,refetch:E}=z(()=>A.list(100,0)),D=new Re(l),{loading:ce,result:q,refetch:G}=z(()=>D.list(100,0)),ue=async d=>{try{if(a.value.type!=="creatingUser")return;await A.create(d),c(),E()}catch(p){p instanceof Error&&U(n.translate("i18n_access_control_create_error",null),p.message)}},de=async d=>{try{if(a.value.type!=="editingUser")return;await A.update(a.value.payload.id,d),c(),E()}catch(p){p instanceof Error&&U(n.translate("i18n_access_control_update_error",null),p.message)}},pe=async d=>{if(!!await K(n.translate("i18n_access_control_delete_user_confirm",null)))try{await A.delete(d.id),E()}catch(b){b instanceof Error&&U(n.translate("i18n_access_control_delete_error",null),b.message)}},_e=async d=>{try{if(a.value.type!=="creatingRole")return;await D.create(d),c(),G()}catch(p){p instanceof Error&&U(n.translate("i18n_access_control_create_error",null),p.message)}},me=async d=>{try{if(a.value.type!=="editingRole")return;await D.update(a.value.payload.id,d),c(),G()}catch(p){p instanceof Error&&U(n.translate("i18n_access_control_update_error",null),p.message)}},ye=async d=>{if(!!await K(n.translate("i18n_access_control_delete_role_confirm",null)))try{await D.delete(d.id),G(),E()}catch(b){b instanceof Error&&U(n.translate("i18n_access_control_delete_error",null),b.message)}};return(d,p)=>(m(),H(X,null,[o(e(Pe),null,{default:s(()=>[h(v(e(n).translate("i18n_access_control_title",null)),1)]),_:1}),o(e(Ue),null,{default:s(()=>[h(v(e(n).translate("i18n_access_control_description",null))+" ",1),o(xe,{path:"tools/access-control"})]),_:1}),o(e(Ie),{"active-key":r.value,"onUpdate:activeKey":p[0]||(p[0]=b=>r.value=b)},{default:s(()=>[o(e(M),{key:"users",tab:e(n).translate("i18n_access_control_users_tab",null)},null,8,["tab"]),o(e(M),{key:"roles",tab:e(n).translate("i18n_access_control_roles_tab",null)},null,8,["tab"])]),_:1},8,["active-key"]),r.value==="users"&&e(x)?(m(),g($e,{key:0,"signup-policy":e(x),onSave:oe},null,8,["signup-policy"])):T("",!0),r.value==="users"?(m(),g(Ae,{key:1,loading:e(se),users:e(ie)||[],onCreate:y,onEdit:_,onDelete:pe},null,8,["loading","users"])):T("",!0),r.value==="roles"?(m(),g(Te,{key:2,loading:e(ce),roles:e(q)||[],onCreate:f,onEdit:u,onDelete:ye},null,8,["loading","roles"])):T("",!0),a.value.type==="creatingUser"?(m(),g(Oe,{key:3,"role-options":e(q)||[],onCancel:c,onCreated:ue},null,8,["role-options"])):a.value.type==="editingUser"?(m(),g(je,{key:4,email:a.value.payload.email,roles:a.value.payload.roles||[],"role-options":e(q)||[],onUpdated:de,onCancel:c},null,8,["email","roles","role-options"])):a.value.type==="creatingRole"?(m(),g(Ee,{key:5,onCancel:c,onCreated:_e})):a.value.type==="editingRole"?(m(),g(De,{key:6,name:a.value.payload.name,description:a.value.payload.description,onUpdated:me,onCancel:c},null,8,["name","description"])):T("",!0)],64))}});export{at as default};
2
- //# sourceMappingURL=View.fd9cb47e.js.map
1
+ var fe=Object.defineProperty;var ge=(i,t,l)=>t in i?fe(i,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):i[t]=l;var R=(i,t,l)=>(ge(i,typeof t!="symbol"?t+"":t,l),l);import{a as z}from"./asyncComputed.7ddee0b0.js";import{d as k,r as O,a as g,b as s,u as e,o as m,f as o,cU as J,g as h,t as b,i as n,aI as Y,cW as he,bY as w,dj as be,al as S,cE as C,bQ as V,cD as N,c as W,ac as H,ej as ve,d9 as we,aY as X,er as ee,cJ as te,ei as Ce,U as ke,h as T,A as Pe,de as Ue}from"./jwt-decode.esm.b9bb33e7.js";import{A as $}from"./index.b57ea477.js";import{_ as xe}from"./DocsButton.vue_vue_type_script_setup_true_lang.264a92d9.js";import{d as L,k as I,p as U}from"./router.135b49e3.js";import{C as le}from"./CrudView.f8f7347d.js";import{G as ae}from"./PhPencil.vue.ea9f0def.js";import{C as Re}from"./repository.819ee626.js";import{E as ne}from"./record.c01e7f08.js";import{a as K}from"./ant-design.5ec0b6b3.js";import{A as M,T as Ie}from"./Card.eab9832f.js";import"./constants.0deee127.js";import"./index.cb46e99b.js";import"./url.7fa35693.js";import"./PhDotsThreeVertical.vue.e9b1faec.js";import"./fetch.7b0def40.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[t]="b4742d16-62a0-484b-9048-9d9bbb873308",i._sentryDebugIdIdentifier="sentry-dbid-b4742d16-62a0-484b-9048-9d9bbb873308")}catch{}})();const $e=k({__name:"View",props:{signupPolicy:{}},emits:["updated","save"],setup(i,{emit:t}){const l=i,a=O(l.signupPolicy.strategy),r=O(l.signupPolicy.strategy==="patternOnly"?l.signupPolicy.emailPatterns:[]),c=O(l.signupPolicy.strategy==="patternOnly"?l.signupPolicy.emailPatterns.map(u=>({label:u})):[]),y=u=>{const P=u;if(r.value=P,P.length===0){a.value="inviteOnly",f("inviteOnly");return}c.value=P.map(x=>({label:x})),l.signupPolicy.emailPatterns=u,t("updated",l.signupPolicy)},_=()=>{t("save")},f=u=>{a.value=u,u!=="patternOnly"&&(u==="inviteOnly"&&l.signupPolicy.allowOnlyInvited(),t("updated",l.signupPolicy))};return(u,P)=>(m(),g(e(be),{style:{"padding-top":"8px",width:"100%"},justify:"space-between",align:"flex-end"},{default:s(()=>[o(e(he),{value:a.value,"onUpdate:value":f},{default:s(()=>[o(e($),{direction:"vertical"},{default:s(()=>[o(e(J),{value:"inviteOnly"},{default:s(()=>[h(b(e(n).translate("i18n_signup_policy_invite_only",null)),1)]),_:1}),o(e($),null,{default:s(()=>[o(e(J),{value:"patternOnly"},{default:s(()=>[h(b(e(n).translate("i18n_signup_policy_pattern_only",null)),1)]),_:1}),o(e(Y),{mode:"tags",value:u.signupPolicy.emailPatterns,style:{"min-width":"300px"},placeholder:e(n).translate("i18n_signup_policy_domain_placeholder",null),disabled:a.value!=="patternOnly",options:c.value,"dropdown-match-select-width":"",open:!1,"onUpdate:value":y},null,8,["value","placeholder","disabled","options"])]),_:1})]),_:1})]),_:1},8,["value"]),o(e(w),{disabled:!u.signupPolicy.hasChanges,type:"primary",onClick:_},{default:s(()=>[h(b(e(n).translate("i18n_signup_policy_save_changes",null)),1)]),_:1},8,["disabled"])]),_:1}))}}),Oe=k({__name:"NewUser",props:{roleOptions:{}},emits:["created","cancel"],setup(i,{emit:t}){const a=i.roleOptions.map(_=>({label:_.name,value:_.name})),r=S({email:"",roles:[]});function c(){t("cancel")}function y(){!r.email||t("created",r)}return(_,f)=>(m(),g(e(L),{open:"",title:e(n).translate("i18n_user_editor_new_title",null),width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:c},{extra:s(()=>[o(e($),null,{default:s(()=>[o(e(w),{onClick:c},{default:s(()=>[h(b(e(n).translate("i18n_user_editor_cancel",null)),1)]),_:1}),o(e(w),{type:"primary",onClick:y},{default:s(()=>[h(b(e(n).translate("i18n_user_editor_submit",null)),1)]),_:1})]),_:1})]),default:s(()=>[o(e(N),{model:r,layout:"vertical"},{default:s(()=>[o(e(C),{key:"email",label:e(n).translate("i18n_user_editor_email_label",null),required:!0},{default:s(()=>[o(e(V),{value:r.email,"onUpdate:value":f[0]||(f[0]=u=>r.email=u)},null,8,["value"])]),_:1},8,["label"]),o(e(C),{key:"role",label:e(n).translate("i18n_user_editor_role_label",null)},{default:s(()=>[o(e(Y),{value:r.roles,"onUpdate:value":f[1]||(f[1]=u=>r.roles=u),mode:"multiple",options:e(a)},null,8,["value","options"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["title"]))}}),je=k({__name:"UpdateUser",props:{roleOptions:{},email:{},roles:{}},emits:["updated","cancel"],setup(i,{emit:t}){const l=i,a=l.roleOptions.map(_=>({label:_.name,value:_.name})),r=S({email:l.email,roles:l.roles});function c(){t("cancel")}function y(){t("updated",r)}return(_,f)=>(m(),g(e(L),{open:"",title:e(n).translate("i18n_user_editor_update_title",null),width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:c},{extra:s(()=>[o(e($),null,{default:s(()=>[o(e(w),{onClick:c},{default:s(()=>[h(b(e(n).translate("i18n_user_editor_cancel",null)),1)]),_:1}),o(e(w),{type:"primary",onClick:y},{default:s(()=>[h(b(e(n).translate("i18n_user_editor_submit",null)),1)]),_:1})]),_:1})]),default:s(()=>[o(e(N),{model:r,layout:"vertical"},{default:s(()=>[o(e(C),{key:"email",label:e(n).translate("i18n_user_editor_email_label",null)},{default:s(()=>[o(e(V),{value:r.email,"onUpdate:value":f[0]||(f[0]=u=>r.email=u)},null,8,["value"])]),_:1},8,["label"]),o(e(C),{key:"role",label:e(n).translate("i18n_user_editor_role_label",null)},{default:s(()=>[o(e(Y),{value:r.roles,"onUpdate:value":f[1]||(f[1]=u=>r.roles=u),mode:"multiple",options:e(a)},null,8,["value","options"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["title"]))}}),Ae=k({__name:"View",props:{loading:{type:Boolean},users:{},onCreate:{type:Function},onEdit:{type:Function},onDelete:{type:Function}},setup(i){const t=i,l=W(()=>{var a;return{columns:[{title:n.translate("i18n_user_editor_email_label",null)},{title:n.translate("i18n_user_editor_roles_column",null)},{title:"",align:"right"}],rows:(a=t.users.map(r=>({key:r.email,cells:[{type:"text",text:r.email},{type:"slot",key:"roles",payload:{roles:r.roles}},{type:"actions",actions:[{icon:ae,label:n.translate("i18n_user_editor_edit",null),onClick:()=>t.onEdit(r)},{icon:ee,label:n.translate("i18n_user_editor_delete",null),onClick:()=>t.onDelete(r)}]}]})))!=null?a:[]}});return(a,r)=>(m(),g(le,{"entity-name":"users",title:"",loading:a.loading,description:e(n).translate("i18n_user_editor_view_description",null),"empty-title":e(n).translate("i18n_user_editor_empty_title",null),table:l.value,"create-button-text":e(n).translate("i18n_user_editor_add_button",null),create:a.onCreate},{roles:s(({payload:c})=>[(m(!0),H(X,null,ve(c.roles,y=>(m(),g(e(we),{key:y,bordered:""},{default:s(()=>[h(b(y),1)]),_:2},1024))),128))]),_:1},8,["loading","description","empty-title","table","create-button-text","create"]))}}),Ee=k({__name:"NewRole",emits:["created","cancel"],setup(i,{emit:t}){const l=S({name:"",description:""});function a(){t("cancel")}function r(){!l.name||t("created",l)}return(c,y)=>(m(),g(e(L),{open:"",title:e(n).translate("i18n_role_editor_new_title",null),width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:a},{extra:s(()=>[o(e($),null,{default:s(()=>[o(e(w),{onClick:a},{default:s(()=>[h(b(e(n).translate("i18n_role_editor_cancel",null)),1)]),_:1}),o(e(w),{type:"primary",onClick:r},{default:s(()=>[h(b(e(n).translate("i18n_role_editor_submit",null)),1)]),_:1})]),_:1})]),default:s(()=>[o(e(N),{model:l,layout:"vertical"},{default:s(()=>[o(e(C),{key:"name",label:e(n).translate("i18n_role_editor_name_label",null),required:!0},{default:s(()=>[o(e(V),{value:l.name,"onUpdate:value":y[0]||(y[0]=_=>l.name=_)},null,8,["value"])]),_:1},8,["label"]),o(e(C),{key:"description",label:e(n).translate("i18n_role_editor_description_label",null)},{default:s(()=>[o(e(te),{value:l.description,"onUpdate:value":y[1]||(y[1]=_=>l.description=_),placeholder:e(n).translate("i18n_role_editor_description_placeholder",null),rows:3},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["title"]))}}),De=k({__name:"UpdateRole",props:{name:{},description:{}},emits:["updated","cancel"],setup(i,{emit:t}){const l=i,a=S({description:l.description});function r(){t("cancel")}function c(){t("updated",a)}return(y,_)=>(m(),g(e(L),{open:"",title:e(n).translate("i18n_role_editor_update_title",null),width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:r},{extra:s(()=>[o(e($),null,{default:s(()=>[o(e(w),{onClick:r},{default:s(()=>[h(b(e(n).translate("i18n_role_editor_cancel",null)),1)]),_:1}),o(e(w),{type:"primary",onClick:c},{default:s(()=>[h(b(e(n).translate("i18n_role_editor_submit",null)),1)]),_:1})]),_:1})]),default:s(()=>[o(e(N),{model:a,layout:"vertical"},{default:s(()=>[o(e(C),{key:"name",label:e(n).translate("i18n_role_editor_name_label",null)},{default:s(()=>[o(e(V),{value:l.name,disabled:""},null,8,["value"])]),_:1},8,["label"]),o(e(C),{key:"role",label:e(n).translate("i18n_role_editor_description_label",null)},{default:s(()=>[o(e(te),{value:a.description,"onUpdate:value":_[0]||(_[0]=f=>a.description=f),placeholder:e(n).translate("i18n_role_editor_description_placeholder",null),rows:3},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["title"]))}}),Te=k({__name:"View",props:{loading:{type:Boolean},roles:{},onCreate:{type:Function},onEdit:{type:Function},onDelete:{type:Function}},setup(i){const t=i,l=W(()=>{var a;return{columns:[{title:n.translate("i18n_role_editor_name_label",null)},{title:n.translate("i18n_role_editor_description_label",null)},{title:"",align:"right"}],rows:(a=t.roles.map(r=>({key:r.id,cells:[{type:"text",text:r.name},{type:"text",text:r.description},{type:"actions",actions:[{icon:ae,label:n.translate("i18n_role_editor_edit",null),onClick:()=>t.onEdit(r)},{icon:ee,label:n.translate("i18n_role_editor_delete",null),onClick:()=>t.onDelete(r)}]}]})))!=null?a:[]}});return(a,r)=>(m(),g(le,{"entity-name":"roles",loading:a.loading,title:"",description:e(n).translate("i18n_role_editor_view_description",null),"empty-title":e(n).translate("i18n_role_editor_empty_title",null),table:l.value,"create-button-text":e(n).translate("i18n_role_editor_add_button",null),create:a.onCreate},null,8,["loading","description","empty-title","table","create-button-text","create"]))}}),B=class{constructor(t){R(this,"record");this.dto=t,this.record=ne.from(t)}static from(t){return new B(t)}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(t){this.record.set("emailPatterns",t)}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(t){return B.pattern.test(t)}};let j=B;R(j,"pattern",new RegExp("^@?(?!-)[A-Za-z0-9-]{1,}(?<!-)(\\.[A-Za-z]{2,})+$"));class Fe{constructor(){R(this,"urlPath","signup-policy")}async update(t,l){return I.patch(`projects/${t}/${this.urlPath}`,l)}async get(t){return I.get(`projects/${t}/${this.urlPath}`)}}const Q=new Fe;class Be{constructor(t){this.projectId=t}async update(t){const{emailPatterns:l}=t.changes;if(!l)return t;const a=await Q.update(this.projectId,{emailPatterns:l});return j.from(a)}async get(){const t=await Q.get(this.projectId);return j.from(t)}}class Z{constructor(t){R(this,"record");this.dto=t,this.record=ne.from(t)}static from(t){return new Z(t)}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(t){this.record.set("email",t)}get projectId(){return this.record.get("projectId")}get roles(){return this.record.get("roles")}set roles(t){this.record.set("roles",t)}update(t){this.record.update(t)}resetChanges(){this.record.resetChanges()}}class Se{constructor(){R(this,"urlPath","users")}async create(t,l){return I.post(`projects/${t}/${this.urlPath}`,l)}async delete(t,l){await I.delete(`projects/${t}/${this.urlPath}/${l}`)}async list(t,{limit:l,offset:a}){const r={};l&&(r.limit=l.toString()),a&&(r.offset=a.toString());const c=new URLSearchParams(r);return I.get(`projects/${t}/${this.urlPath}?${c.toString()}`)}async update(t,l,a){return I.patch(`projects/${t}/${this.urlPath}/${l}`,a)}}const F=new Se;class Ve{constructor(t){this.projectId=t}async create(t){await F.create(this.projectId,t)}async update(t,l){await F.update(this.projectId,t,l)}async delete(t){await F.delete(this.projectId,t)}async list(t,l){return(await F.list(this.projectId,{limit:t,offset:l})).map(Z.from)}}const at=k({__name:"View",setup(i){const l=Ce().params.projectId,a=O({type:"initial"}),r=O("users");ke(()=>{const p=new URLSearchParams(location.search).get("selected-panel")||"users",v=["roles","users"].includes(p)?p:"users";p&&(r.value=v)});const c=()=>{a.value.type="initial"},y=()=>{a.value.type="creatingUser"},_=d=>{a.value={type:"editingUser",payload:d}},f=()=>{a.value.type="creatingRole"},u=d=>{a.value={type:"editingRole",payload:d}},P=new Be(l),{result:x,refetch:re}=z(()=>P.get()),oe=async()=>{if(!!x.value)try{await P.update(x.value),re()}catch(d){d instanceof Error&&U(n.translate("i18n_access_control_update_error",null),d.message)}},A=new Ve(l),{loading:se,result:ie,refetch:E}=z(()=>A.list(100,0)),D=new Re(l),{loading:ce,result:q,refetch:G}=z(()=>D.list(100,0)),ue=async d=>{try{if(a.value.type!=="creatingUser")return;await A.create(d),c(),E()}catch(p){p instanceof Error&&U(n.translate("i18n_access_control_create_error",null),p.message)}},de=async d=>{try{if(a.value.type!=="editingUser")return;await A.update(a.value.payload.id,d),c(),E()}catch(p){p instanceof Error&&U(n.translate("i18n_access_control_update_error",null),p.message)}},pe=async d=>{if(!!await K(n.translate("i18n_access_control_delete_user_confirm",null)))try{await A.delete(d.id),E()}catch(v){v instanceof Error&&U(n.translate("i18n_access_control_delete_error",null),v.message)}},_e=async d=>{try{if(a.value.type!=="creatingRole")return;await D.create(d),c(),G()}catch(p){p instanceof Error&&U(n.translate("i18n_access_control_create_error",null),p.message)}},me=async d=>{try{if(a.value.type!=="editingRole")return;await D.update(a.value.payload.id,d),c(),G()}catch(p){p instanceof Error&&U(n.translate("i18n_access_control_update_error",null),p.message)}},ye=async d=>{if(!!await K(n.translate("i18n_access_control_delete_role_confirm",null)))try{await D.delete(d.id),G(),E()}catch(v){v instanceof Error&&U(n.translate("i18n_access_control_delete_error",null),v.message)}};return(d,p)=>(m(),H(X,null,[o(e(Pe),null,{default:s(()=>[h(b(e(n).translate("i18n_access_control_title",null)),1)]),_:1}),o(e(Ue),null,{default:s(()=>[h(b(e(n).translate("i18n_access_control_description",null))+" ",1),o(xe,{path:"tools/access-control"})]),_:1}),o(e(Ie),{"active-key":r.value,"onUpdate:activeKey":p[0]||(p[0]=v=>r.value=v)},{default:s(()=>[o(e(M),{key:"users",tab:e(n).translate("i18n_access_control_users_tab",null)},null,8,["tab"]),o(e(M),{key:"roles",tab:e(n).translate("i18n_access_control_roles_tab",null)},null,8,["tab"])]),_:1},8,["active-key"]),r.value==="users"&&e(x)?(m(),g($e,{key:0,"signup-policy":e(x),onSave:oe},null,8,["signup-policy"])):T("",!0),r.value==="users"?(m(),g(Ae,{key:1,loading:e(se),users:e(ie)||[],onCreate:y,onEdit:_,onDelete:pe},null,8,["loading","users"])):T("",!0),r.value==="roles"?(m(),g(Te,{key:2,loading:e(ce),roles:e(q)||[],onCreate:f,onEdit:u,onDelete:ye},null,8,["loading","roles"])):T("",!0),a.value.type==="creatingUser"?(m(),g(Oe,{key:3,"role-options":e(q)||[],onCancel:c,onCreated:ue},null,8,["role-options"])):a.value.type==="editingUser"?(m(),g(je,{key:4,email:a.value.payload.email,roles:a.value.payload.roles||[],"role-options":e(q)||[],onUpdated:de,onCancel:c},null,8,["email","roles","role-options"])):a.value.type==="creatingRole"?(m(),g(Ee,{key:5,onCancel:c,onCreated:_e})):a.value.type==="editingRole"?(m(),g(De,{key:6,name:a.value.payload.name,description:a.value.payload.description,onUpdated:me,onCancel:c},null,8,["name","description"])):T("",!0)],64))}});export{at as default};
2
+ //# sourceMappingURL=View.64f7c00a.js.map
@@ -1,2 +1,2 @@
1
- var T=Object.defineProperty;var j=(i,e,t)=>e in i?T(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var s=(i,e,t)=>(j(i,typeof e!="symbol"?e+"":e,t),t);import{k as C}from"./router.cfb03f89.js";import{l as I}from"./fetch.e0dfa394.js";import{E as U}from"./record.30ff6eef.js";import{$ as R,r as S,er as $,d as F,w as O,U as P,ax as B,ac as L,u as a,a as v,eo as M,b as o,h as p,aY as G,o as u,g as m,t as y,f as g,i as c,cD as N,df as W,cJ as z,cE as J,M as Z}from"./jwt-decode.esm.47f59010.js";import{S as x}from"./SaveButton.986667ef.js";import{C as H}from"./CrudView.789b533f.js";import{a as K}from"./asyncComputed.febe2b11.js";import{o as w}from"./omniChatStore.07f62bd5.js";import{G as Y}from"./PhPencil.vue.3586175f.js";import{u as q}from"./useCodebaseEvents.3542d20f.js";import{A as Q}from"./index.76cbd30f.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]="0f664f41-d588-4013-bffb-187d6c40e137",i._sentryDebugIdIdentifier="sentry-dbid-0f664f41-d588-4013-bffb-187d6c40e137")}catch{}})();class b{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=R([])}static from(e){const t=e.reduce((n,{name:d,value:f})=>(n[d]=f,n),{});return new b(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 A=new X;class he{constructor(e){this.projectId=e}async get(){const e=await A.list(this.projectId);return b.from(e.map(t=>({...t,value:""})))}async update(e){await A.update(this.projectId,e)}}class ve{constructor(e=I){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 b.from(t)}async update(e){await this.fetch("/_editor/api/env-vars",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}}class _{constructor(e,t,n){s(this,"envVarRepo");s(this,"envVars");s(this,"state",S({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:$,label:"Delete",onClick:()=>this.delete(e),dangerous:!0},{icon:Y,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 _(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 pe=F({__name:"View",props:{envVarRepository:{},mode:{},hideTitle:{type:Boolean}},setup(i){const e=i,{result:t,loading:n,refetch:d}=K(async()=>await _.create(e.envVarRepository,e.mode)),f=q();O(f.lastEvent,async l=>{var r;l&&l.filepath&&l.filepath.endsWith(".env")&&await((r=t.value)==null?void 0:r.refetch())});const D={columns:[],rows:[]};return P(()=>{const l=w.subscribe("envVarCreated",()=>{d()}),r=w.subscribe("envVarEdited",()=>{d()});B(()=>{w.unsubscribe(l),w.unsubscribe(r)})}),(l,r)=>{var V,k;return u(),L(G,null,[a(t)?(u(),v(H,{key:0,"entity-name":a(c).translate("i18n_envvarsview_entity_name"),loading:a(n),title:e.hideTitle?"":a(c).translate("i18n_envvarsview_title"),description:e.hideTitle?"":a(c).translate("i18n_envvarsview_description"),"empty-title":a(c).translate("i18n_envvarsview_empty_title"),table:a(t).table()||D,"create-button-text":a(c).translate("i18n_envvarsview_create_button"),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(),v(x,{key:0,model:a(t),disabled:!a(t).hasChanges()},{"with-changes":o(()=>[m(y(a(t).saveMessage),1)]),_:1},8,["model","disabled"])):p("",!0)]),key:"0"}:void 0,(k=a(t))!=null&&k.isLocalEditor?{name:"extra",fn:o(()=>[g(a(Q),{"show-icon":"",style:{"margin-top":"20px"}},{message:o(()=>[m(y(a(c).translate("i18n_envvarsview_local_helper_message")),1)]),_:1})]),key:"1"}:void 0,a(t)?{name:"more",fn:o(()=>[l.mode=="console"?(u(),v(x,{key:0,model:a(t),disabled:!a(t).hasChanges()},{"with-changes":o(()=>[m(y(a(t).saveMessage),1)]),_:1},8,["model","disabled"])):p("",!0)]),key:"2"}:void 0]),1032,["entity-name","loading","title","description","empty-title","table","create-button-text","create","fields","live"])):p("",!0),a(t)?(u(),v(a(Z),{key:1,open:a(t).isUpdating,title:a(c).translate("i18n_envvarsview_update_modal_title"),onCancel:r[1]||(r[1]=h=>{var E;return(E=a(t))==null?void 0:E.cancelUpdate()}),onOk:r[2]||(r[2]=()=>{var h;return(h=a(t))==null?void 0:h.confirmUpdate()})},{default:o(()=>[a(t).state.value.type==="updating"?(u(),v(a(N),{key:0,layout:"vertical"},{default:o(()=>[g(a(J),null,{default:o(()=>[g(a(W),null,{default:o(()=>[m(y(a(t).state.value.name),1)]),_:1}),g(a(z),{value:a(t).state.value.value,"onUpdate:value":r[0]||(r[0]=h=>a(t).state.value.value=h)},null,8,["value"])]),_:1})]),_:1})):p("",!0)]),_:1},8,["open","title"])):p("",!0)],64)}}});export{he as C,ve as E,pe as _};
2
- //# sourceMappingURL=View.vue_vue_type_script_setup_true_lang.69e51c6f.js.map
1
+ var T=Object.defineProperty;var j=(i,e,t)=>e in i?T(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var s=(i,e,t)=>(j(i,typeof e!="symbol"?e+"":e,t),t);import{k as C}from"./router.135b49e3.js";import{l as I}from"./fetch.7b0def40.js";import{E as U}from"./record.c01e7f08.js";import{$ as R,r as S,er as $,d as F,w as O,U as P,ax as B,ac as L,u as a,a as v,eo as M,b as o,h as p,aY as G,o as u,g as m,t as y,f as g,i as c,cD as N,df as W,cJ as z,cE as J,M as Z}from"./jwt-decode.esm.b9bb33e7.js";import{S as x}from"./SaveButton.8e4a5fbe.js";import{C as H}from"./CrudView.f8f7347d.js";import{a as K}from"./asyncComputed.7ddee0b0.js";import{o as w}from"./omniChatStore.c81c7dd1.js";import{G as Y}from"./PhPencil.vue.ea9f0def.js";import{u as q}from"./useCodebaseEvents.fd37c61f.js";import{A as Q}from"./index.cfbca287.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]="16dd1df7-a96a-49e5-be13-16e4fcf99b2d",i._sentryDebugIdIdentifier="sentry-dbid-16dd1df7-a96a-49e5-be13-16e4fcf99b2d")}catch{}})();class b{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=R([])}static from(e){const t=e.reduce((n,{name:d,value:f})=>(n[d]=f,n),{});return new b(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 A=new X;class he{constructor(e){this.projectId=e}async get(){const e=await A.list(this.projectId);return b.from(e.map(t=>({...t,value:""})))}async update(e){await A.update(this.projectId,e)}}class ve{constructor(e=I){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 b.from(t)}async update(e){await this.fetch("/_editor/api/env-vars",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}}class _{constructor(e,t,n){s(this,"envVarRepo");s(this,"envVars");s(this,"state",S({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:$,label:"Delete",onClick:()=>this.delete(e),dangerous:!0},{icon:Y,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 _(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 pe=F({__name:"View",props:{envVarRepository:{},mode:{},hideTitle:{type:Boolean}},setup(i){const e=i,{result:t,loading:n,refetch:d}=K(async()=>await _.create(e.envVarRepository,e.mode)),f=q();O(f.lastEvent,async l=>{var r;l&&l.filepath&&l.filepath.endsWith(".env")&&await((r=t.value)==null?void 0:r.refetch())});const D={columns:[],rows:[]};return P(()=>{const l=w.subscribe("envVarCreated",()=>{d()}),r=w.subscribe("envVarEdited",()=>{d()});B(()=>{w.unsubscribe(l),w.unsubscribe(r)})}),(l,r)=>{var V,k;return u(),L(G,null,[a(t)?(u(),v(H,{key:0,"entity-name":a(c).translate("i18n_envvarsview_entity_name"),loading:a(n),title:e.hideTitle?"":a(c).translate("i18n_envvarsview_title"),description:e.hideTitle?"":a(c).translate("i18n_envvarsview_description"),"empty-title":a(c).translate("i18n_envvarsview_empty_title"),table:a(t).table()||D,"create-button-text":a(c).translate("i18n_envvarsview_create_button"),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(),v(x,{key:0,model:a(t),disabled:!a(t).hasChanges()},{"with-changes":o(()=>[m(y(a(t).saveMessage),1)]),_:1},8,["model","disabled"])):p("",!0)]),key:"0"}:void 0,(k=a(t))!=null&&k.isLocalEditor?{name:"extra",fn:o(()=>[g(a(Q),{"show-icon":"",style:{"margin-top":"20px"}},{message:o(()=>[m(y(a(c).translate("i18n_envvarsview_local_helper_message")),1)]),_:1})]),key:"1"}:void 0,a(t)?{name:"more",fn:o(()=>[l.mode=="console"?(u(),v(x,{key:0,model:a(t),disabled:!a(t).hasChanges()},{"with-changes":o(()=>[m(y(a(t).saveMessage),1)]),_:1},8,["model","disabled"])):p("",!0)]),key:"2"}:void 0]),1032,["entity-name","loading","title","description","empty-title","table","create-button-text","create","fields","live"])):p("",!0),a(t)?(u(),v(a(Z),{key:1,open:a(t).isUpdating,title:a(c).translate("i18n_envvarsview_update_modal_title"),onCancel:r[1]||(r[1]=h=>{var E;return(E=a(t))==null?void 0:E.cancelUpdate()}),onOk:r[2]||(r[2]=()=>{var h;return(h=a(t))==null?void 0:h.confirmUpdate()})},{default:o(()=>[a(t).state.value.type==="updating"?(u(),v(a(N),{key:0,layout:"vertical"},{default:o(()=>[g(a(J),null,{default:o(()=>[g(a(W),null,{default:o(()=>[m(y(a(t).state.value.name),1)]),_:1}),g(a(z),{value:a(t).state.value.value,"onUpdate:value":r[0]||(r[0]=h=>a(t).state.value.value=h)},null,8,["value"])]),_:1})]),_:1})):p("",!0)]),_:1},8,["open","title"])):p("",!0)],64)}}});export{he as C,ve as E,pe as _};
2
+ //# sourceMappingURL=View.vue_vue_type_script_setup_true_lang.8892f80d.js.map
@@ -1,2 +1,2 @@
1
- import{S as d}from"./workspaceStore.9693f43b.js";import{A as f}from"./constants.bbfdfb21.js";import{d as p,u as t,ac as l,g as _,t as c,h as C,eJ as u,o as h,i as m,_ as g}from"./jwt-decode.esm.47f59010.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]="48c5fcb6-bdb3-47bf-80b5-0f7f5ffa0127",e._sentryDebugIdIdentifier="sentry-dbid-48c5fcb6-bdb3-47bf-80b5-0f7f5ffa0127")}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=p({__name:"Watermark",props:{pageId:{},locale:{}},setup(e){var s;const a=e,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:a.pageId,origin_subdomain:r});return(i,y)=>t(o)?(h(),l("a",{key:0,href:`${t(f).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.b1fed4a7.js.map
1
+ import{S as d}from"./workspaceStore.583d9afd.js";import{A as p}from"./constants.0deee127.js";import{d as l,u as t,ac as f,g as _,t as c,h as C,eJ as u,o as h,i as m,_ as g}from"./jwt-decode.esm.b9bb33e7.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]="69e452da-b4eb-4fd4-b056-d161242deca8",e._sentryDebugIdIdentifier="sentry-dbid-69e452da-b4eb-4fd4-b056-d161242deca8")}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(e){var s;const a=e,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:a.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.2b4d030d.js.map
@@ -1,2 +1,2 @@
1
- var v=Object.defineProperty;var y=(e,t,i)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var r=(e,t,i)=>(y(e,typeof t!="symbol"?t+"":t,i),i);import{d as m,U as w,R as I,a as c,b as s,o as d,f as o,u as n,dj as f,cT as b,A as P,g as p,t as h,i as u,df as g,_ as x,r as j,ei as A}from"./jwt-decode.esm.47f59010.js";import{_ as E}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.e1cfa824.js";import{B as R}from"./BaseLayout.2a82be24.js";import{l as _}from"./fetch.e0dfa394.js";import"./router.cfb03f89.js";import{a as T}from"./project.8a5a3632.js";import"./tables.34208b7c.js";import"./Logo.e86b6b23.js";import"./index.8995a499.js";import"./record.30ff6eef.js";import"./string.39c8a903.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]="8de535c1-748c-4c14-9325-c0d178b63ad4",e._sentryDebugIdIdentifier="sentry-dbid-8de535c1-748c-4c14-9325-c0d178b63ad4")}catch{}})();const W=m({__name:"View",props:{controller:{}},setup(e){const t=e,i=t.controller.loadingPercentage();return w(()=>{t.controller.start()}),I(()=>{t.controller.cleanUp()}),(a,l)=>(d(),c(R,null,{content:s(()=>[o(n(f),{align:"center",justify:"center",style:{width:"100vw",height:"100dvh"}},{default:s(()=>[o(n(f),{gap:"large",align:"center",justify:"space-evenly",vertical:"",style:{width:"45%","min-width":"600px",height:"100%"}},{default:s(()=>[o(E,{size:"large"}),o(n(b),{size:[10,10],"show-info":!1,percent:n(i),"stroke-color":"#EA576A"},null,8,["percent"]),o(n(P),{level:3},{default:s(()=>[p(h(n(u).translate("i18n_webeditorview_preparing_environment")),1)]),_:1}),n(i)<100?(d(),c(n(g),{key:0},{default:s(()=>[p(h(n(u).translate("i18n_webeditorview_setting_up")),1)]),_:1})):(d(),c(n(g),{key:1},{default:s(()=>[p(h(n(u).translate("i18n_webeditorview_redirecting_soon")),1)]),_:1}))]),_:1})]),_:1})]),_:1}))}});const k=x(W,[["__scopeId","data-v-5fd653ca"]]);function U(e,t){if(!e)return"";const i=t.toString();if(!i)return e;const l=e.includes("?")?"&":"?";return`${e}${l}${i}`}class D{constructor(t,i,a=_){r(this,"projectId");r(this,"loading");r(this,"fetch",_);r(this,"interval",null);r(this,"urls",null);r(this,"totalWaitTime");r(this,"poolingInterval");r(this,"pingResponded",!1);r(this,"redirectPath");this.projectId=t,this.loading=j(0),this.fetch=a,this.totalWaitTime=6e4,this.poolingInterval=2500,this.redirectPath=i}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 i=U(this.urls.redirect,t);window.location.replace(i)}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 T.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 J=m({__name:"WebEditor",setup(e){const t=A(),i=t.params.projectId,a=t.query.redirect,l=new D(i,a);return(S,V)=>(d(),c(k,{controller:n(l)},null,8,["controller"]))}});export{J as default};
2
- //# sourceMappingURL=WebEditor.75ce5bd6.js.map
1
+ var v=Object.defineProperty;var y=(e,t,i)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var r=(e,t,i)=>(y(e,typeof t!="symbol"?t+"":t,i),i);import{d as m,U as w,R as I,a as c,b as s,o as d,f as o,u as n,dj as f,cT as b,A as P,g as p,t as h,i as u,df as g,_ as x,r as j,ei as A}from"./jwt-decode.esm.b9bb33e7.js";import{_ as E}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.8204f8e4.js";import{B as R}from"./BaseLayout.31267389.js";import{l as _}from"./fetch.7b0def40.js";import"./router.135b49e3.js";import{a as T}from"./project.f3f1cd2e.js";import"./tables.d6f8baad.js";import"./Logo.c4ca8242.js";import"./index.cb46e99b.js";import"./record.c01e7f08.js";import"./string.04644599.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]="0102dd6f-25af-4fec-904b-545041e1eef8",e._sentryDebugIdIdentifier="sentry-dbid-0102dd6f-25af-4fec-904b-545041e1eef8")}catch{}})();const W=m({__name:"View",props:{controller:{}},setup(e){const t=e,i=t.controller.loadingPercentage();return w(()=>{t.controller.start()}),I(()=>{t.controller.cleanUp()}),(a,l)=>(d(),c(R,null,{content:s(()=>[o(n(f),{align:"center",justify:"center",style:{width:"100vw",height:"100dvh"}},{default:s(()=>[o(n(f),{gap:"large",align:"center",justify:"space-evenly",vertical:"",style:{width:"45%","min-width":"600px",height:"100%"}},{default:s(()=>[o(E,{size:"large"}),o(n(b),{size:[10,10],"show-info":!1,percent:n(i),"stroke-color":"#EA576A"},null,8,["percent"]),o(n(P),{level:3},{default:s(()=>[p(h(n(u).translate("i18n_webeditorview_preparing_environment")),1)]),_:1}),n(i)<100?(d(),c(n(g),{key:0},{default:s(()=>[p(h(n(u).translate("i18n_webeditorview_setting_up")),1)]),_:1})):(d(),c(n(g),{key:1},{default:s(()=>[p(h(n(u).translate("i18n_webeditorview_redirecting_soon")),1)]),_:1}))]),_:1})]),_:1})]),_:1}))}});const k=x(W,[["__scopeId","data-v-5fd653ca"]]);function U(e,t){if(!e)return"";const i=t.toString();if(!i)return e;const l=e.includes("?")?"&":"?";return`${e}${l}${i}`}class D{constructor(t,i,a=_){r(this,"projectId");r(this,"loading");r(this,"fetch",_);r(this,"interval",null);r(this,"urls",null);r(this,"totalWaitTime");r(this,"poolingInterval");r(this,"pingResponded",!1);r(this,"redirectPath");this.projectId=t,this.loading=j(0),this.fetch=a,this.totalWaitTime=6e4,this.poolingInterval=2500,this.redirectPath=i}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 i=U(this.urls.redirect,t);window.location.replace(i)}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 T.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 J=m({__name:"WebEditor",setup(e){const t=A(),i=t.params.projectId,a=t.query.redirect,l=new D(i,a);return(S,V)=>(d(),c(k,{controller:n(l)},null,8,["controller"]))}});export{J as default};
2
+ //# sourceMappingURL=WebEditor.a5e97d7a.js.map