zenml-nightly 0.62.0.dev20240729__py3-none-any.whl → 0.64.0.dev20240809__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 (240) hide show
  1. README.md +2 -2
  2. RELEASE_NOTES.md +120 -0
  3. zenml/VERSION +1 -1
  4. zenml/__init__.py +0 -4
  5. zenml/actions/pipeline_run/pipeline_run_action.py +19 -17
  6. zenml/analytics/enums.py +4 -6
  7. zenml/cli/__init__.py +28 -76
  8. zenml/cli/base.py +2 -2
  9. zenml/cli/pipeline.py +54 -61
  10. zenml/cli/stack.py +6 -8
  11. zenml/cli/web_login.py +8 -0
  12. zenml/client.py +232 -103
  13. zenml/config/build_configuration.py +43 -17
  14. zenml/config/compiler.py +14 -22
  15. zenml/config/docker_settings.py +80 -57
  16. zenml/config/pipeline_run_configuration.py +3 -0
  17. zenml/config/server_config.py +3 -0
  18. zenml/config/source.py +60 -1
  19. zenml/constants.py +11 -2
  20. zenml/entrypoints/base_entrypoint_configuration.py +53 -8
  21. zenml/enums.py +4 -1
  22. zenml/environment.py +25 -9
  23. zenml/image_builders/base_image_builder.py +1 -1
  24. zenml/image_builders/build_context.py +25 -72
  25. zenml/integrations/aws/orchestrators/sagemaker_orchestrator.py +13 -4
  26. zenml/integrations/azure/__init__.py +4 -0
  27. zenml/integrations/azure/flavors/__init__.py +11 -0
  28. zenml/integrations/azure/flavors/azureml_orchestrator_flavor.py +263 -0
  29. zenml/{_hub → integrations/azure/orchestrators}/__init__.py +7 -2
  30. zenml/integrations/azure/orchestrators/azureml_orchestrator.py +544 -0
  31. zenml/integrations/azure/orchestrators/azureml_orchestrator_entrypoint_config.py +86 -0
  32. zenml/integrations/azure/step_operators/azureml_step_operator.py +3 -0
  33. zenml/integrations/databricks/flavors/databricks_orchestrator_flavor.py +20 -2
  34. zenml/integrations/databricks/orchestrators/databricks_orchestrator.py +19 -13
  35. zenml/integrations/gcp/orchestrators/vertex_orchestrator.py +7 -2
  36. zenml/integrations/gcp/service_connectors/gcp_service_connector.py +123 -6
  37. zenml/integrations/kaniko/image_builders/kaniko_image_builder.py +1 -1
  38. zenml/integrations/mlflow/__init__.py +1 -1
  39. zenml/integrations/mlflow/experiment_trackers/mlflow_experiment_tracker.py +3 -1
  40. zenml/integrations/mlflow/flavors/mlflow_experiment_tracker_flavor.py +3 -0
  41. zenml/logger.py +13 -0
  42. zenml/models/__init__.py +26 -22
  43. zenml/models/v2/base/filter.py +32 -0
  44. zenml/models/v2/core/pipeline.py +73 -89
  45. zenml/models/v2/core/pipeline_build.py +15 -11
  46. zenml/models/v2/core/pipeline_deployment.py +72 -24
  47. zenml/models/v2/core/pipeline_run.py +65 -1
  48. zenml/models/v2/core/run_template.py +393 -0
  49. zenml/models/v2/core/server_settings.py +12 -0
  50. zenml/models/v2/core/user.py +0 -21
  51. zenml/models/v2/misc/server_models.py +7 -1
  52. zenml/models/v2/misc/stack_deployment.py +5 -0
  53. zenml/models/v2/misc/user_auth.py +0 -7
  54. zenml/new/pipelines/build_utils.py +220 -89
  55. zenml/new/pipelines/code_archive.py +157 -0
  56. zenml/new/pipelines/pipeline.py +46 -78
  57. zenml/new/pipelines/run_utils.py +79 -1
  58. zenml/post_execution/pipeline.py +1 -4
  59. zenml/service_connectors/service_connector_utils.py +18 -2
  60. zenml/stack_deployments/aws_stack_deployment.py +32 -8
  61. zenml/stack_deployments/azure_stack_deployment.py +122 -10
  62. zenml/stack_deployments/gcp_stack_deployment.py +36 -7
  63. zenml/stack_deployments/stack_deployment.py +23 -7
  64. zenml/steps/base_step.py +3 -0
  65. zenml/steps/utils.py +0 -4
  66. zenml/utils/archivable.py +149 -0
  67. zenml/utils/code_utils.py +244 -0
  68. zenml/utils/notebook_utils.py +122 -0
  69. zenml/utils/package_utils.py +39 -0
  70. zenml/utils/pipeline_docker_image_builder.py +3 -96
  71. zenml/utils/source_utils.py +109 -1
  72. zenml/zen_server/dashboard/assets/{404-B_YdvmwS.js → 404-CRAA_Lew.js} +1 -1
  73. zenml/zen_server/dashboard/assets/@radix-BXWm7HOa.js +85 -0
  74. zenml/zen_server/dashboard/assets/{@react-router-CO-OsFwI.js → @react-router-l3lMcXA2.js} +1 -1
  75. zenml/zen_server/dashboard/assets/{@reactflow-l_1hUr1S.js → @reactflow-CeVxyqYT.js} +2 -2
  76. zenml/zen_server/dashboard/assets/{@tanstack-DYiOyJUL.js → @tanstack-FmcYZMuX.js} +4 -4
  77. zenml/zen_server/dashboard/assets/AlertDialogDropdownItem-ErO9aOgK.js +1 -0
  78. zenml/zen_server/dashboard/assets/{AwarenessChannel-CFg5iX4Z.js → AwarenessChannel-CLXo5rKM.js} +1 -1
  79. zenml/zen_server/dashboard/assets/{CodeSnippet-Dvkx_82E.js → CodeSnippet-D0VLxT2A.js} +2 -2
  80. zenml/zen_server/dashboard/assets/CollapsibleCard-BaUPiVg0.js +1 -0
  81. zenml/zen_server/dashboard/assets/{Commands-DoN1xrEq.js → Commands-JrcZK-3j.js} +1 -1
  82. zenml/zen_server/dashboard/assets/CopyButton-Dbo52T1K.js +2 -0
  83. zenml/zen_server/dashboard/assets/{CsvVizualization-Ck-nZ43m.js → CsvVizualization-D3kAypDj.js} +3 -3
  84. zenml/zen_server/dashboard/assets/DisplayDate-DizbSeT-.js +1 -0
  85. zenml/zen_server/dashboard/assets/EditSecretDialog-Bd7mFLS4.js +1 -0
  86. zenml/zen_server/dashboard/assets/{EmptyState-BMLnFVlB.js → EmptyState-BHblM39I.js} +1 -1
  87. zenml/zen_server/dashboard/assets/{Error-kLtljEOM.js → Error-C6LeJSER.js} +1 -1
  88. zenml/zen_server/dashboard/assets/{ExecutionStatus-DguLLgTK.js → ExecutionStatus-jH4OrWBq.js} +1 -1
  89. zenml/zen_server/dashboard/assets/{Helpbox-BXUMP21n.js → Helpbox-aAB2XP-z.js} +1 -1
  90. zenml/zen_server/dashboard/assets/{Infobox-DSt0O-dm.js → Infobox-BQ0aty32.js} +1 -1
  91. zenml/zen_server/dashboard/assets/{InlineAvatar-xsrsIGE-.js → InlineAvatar-DpTLgM3Q.js} +1 -1
  92. zenml/zen_server/dashboard/assets/Lock-CNyJvf2r.js +1 -0
  93. zenml/zen_server/dashboard/assets/{MarkdownVisualization-xp3hhULl.js → MarkdownVisualization-Bajxn0HY.js} +1 -1
  94. zenml/zen_server/dashboard/assets/NumberBox-BmKE0qnO.js +1 -0
  95. zenml/zen_server/dashboard/assets/{PasswordChecker-DUveqlva.js → PasswordChecker-yGGoJSB-.js} +1 -1
  96. zenml/zen_server/dashboard/assets/ProviderRadio-BBqkIuTd.js +1 -0
  97. zenml/zen_server/dashboard/assets/RadioItem-xLhXoiFV.js +1 -0
  98. zenml/zen_server/dashboard/assets/SearchField-C9R0mdaX.js +1 -0
  99. zenml/zen_server/dashboard/assets/{SetPassword-BXGTWiwj.js → SetPassword-52sNxNiO.js} +1 -1
  100. zenml/zen_server/dashboard/assets/{SuccessStep-DZC60t0x.js → SuccessStep-DlkItqYG.js} +1 -1
  101. zenml/zen_server/dashboard/assets/Tick-uxv80Q6a.js +1 -0
  102. zenml/zen_server/dashboard/assets/{UpdatePasswordSchemas-DGvwFWO1.js → UpdatePasswordSchemas-oN4G3sKz.js} +1 -1
  103. zenml/zen_server/dashboard/assets/{aws-BgKTfTfx.js → aws-0_3UsPif.js} +1 -1
  104. zenml/zen_server/dashboard/assets/{check-circle-i56092KI.js → check-circle-1_I207rW.js} +1 -1
  105. zenml/zen_server/dashboard/assets/chevron-down-BpaF8JqM.js +1 -0
  106. zenml/zen_server/dashboard/assets/{chevron-right-double-CZBOf6JM.js → chevron-right-double-Dk8e2L99.js} +1 -1
  107. zenml/zen_server/dashboard/assets/{cloud-only-C_yFCAkP.js → cloud-only-BkUuI0lZ.js} +1 -1
  108. zenml/zen_server/dashboard/assets/components-Br2ezRib.js +1 -0
  109. zenml/zen_server/dashboard/assets/{copy-BXNk6BjL.js → copy-f3XGPPxt.js} +1 -1
  110. zenml/zen_server/dashboard/assets/{database-1xWSgZfO.js → database-cXYNX9tt.js} +1 -1
  111. zenml/zen_server/dashboard/assets/{docker-CQMVm_4d.js → docker-8uj__HHK.js} +1 -1
  112. zenml/zen_server/dashboard/assets/dots-horizontal-sKQlWEni.js +1 -0
  113. zenml/zen_server/dashboard/assets/edit-C0MVvPD2.js +1 -0
  114. zenml/zen_server/dashboard/assets/{file-text-CqD_iu6l.js → file-text-B9JibxTs.js} +1 -1
  115. zenml/zen_server/dashboard/assets/{help-bu_DgLKI.js → help-FuHlZwn0.js} +1 -1
  116. zenml/zen_server/dashboard/assets/{index-rK_Wuy2W.js → index-Bd1xgUQG.js} +1 -1
  117. zenml/zen_server/dashboard/assets/index-DaGknux4.css +1 -0
  118. zenml/zen_server/dashboard/assets/{index-BczVOqUf.js → index-DhIZtpxB.js} +5 -5
  119. zenml/zen_server/dashboard/assets/index.esm-DT4uyn2i.js +1 -0
  120. zenml/zen_server/dashboard/assets/layout-D6oiSbfd.js +1 -0
  121. zenml/zen_server/dashboard/assets/{login-mutation-CrHrndTI.js → login-mutation-13A_JSVA.js} +1 -1
  122. zenml/zen_server/dashboard/assets/{logs-D8k8BVFf.js → logs-CgeE2vZP.js} +1 -1
  123. zenml/zen_server/dashboard/assets/{not-found-DYa4pC-C.js → not-found-B0Mmb90p.js} +1 -1
  124. zenml/zen_server/dashboard/assets/package-DdkziX79.js +1 -0
  125. zenml/zen_server/dashboard/assets/page-7-v2OBm-.js +1 -0
  126. zenml/zen_server/dashboard/assets/{page-MFQyIJd3.js → page-B3ozwdD1.js} +1 -1
  127. zenml/zen_server/dashboard/assets/{page-BkuQDIf-.js → page-BGwA9B1M.js} +1 -1
  128. zenml/zen_server/dashboard/assets/{page-1iL8aMqs.js → page-BkjAUyTA.js} +1 -1
  129. zenml/zen_server/dashboard/assets/page-BnacgBiy.js +1 -0
  130. zenml/zen_server/dashboard/assets/page-BxF_KMQ3.js +2 -0
  131. zenml/zen_server/dashboard/assets/page-C4POHC0K.js +1 -0
  132. zenml/zen_server/dashboard/assets/page-C9kudd44.js +9 -0
  133. zenml/zen_server/dashboard/assets/page-CA1j3GpJ.js +1 -0
  134. zenml/zen_server/dashboard/assets/page-CCY6yfmu.js +1 -0
  135. zenml/zen_server/dashboard/assets/page-CgTe7Bme.js +1 -0
  136. zenml/zen_server/dashboard/assets/{page-8a4UMKXZ.js → page-Cgn-6v2Y.js} +1 -1
  137. zenml/zen_server/dashboard/assets/page-CxQmQqDw.js +1 -0
  138. zenml/zen_server/dashboard/assets/page-D2Goey3H.js +1 -0
  139. zenml/zen_server/dashboard/assets/page-DLpOnf7u.js +1 -0
  140. zenml/zen_server/dashboard/assets/{page-BhgCDInH.js → page-DSTQnBk-.js} +1 -1
  141. zenml/zen_server/dashboard/assets/{page-1h_sD1jz.js → page-DTysUGOy.js} +1 -1
  142. zenml/zen_server/dashboard/assets/{page-2grKx_MY.js → page-D_EXUFJb.js} +1 -1
  143. zenml/zen_server/dashboard/assets/page-Db15QzsM.js +1 -0
  144. zenml/zen_server/dashboard/assets/{page-BDns21Iz.js → page-DugsjcQ_.js} +1 -1
  145. zenml/zen_server/dashboard/assets/{page-C6-UGEbH.js → page-OFKSPyN7.js} +1 -1
  146. zenml/zen_server/dashboard/assets/{page-BkeAAYwp.js → page-RnG-qhv9.js} +1 -1
  147. zenml/zen_server/dashboard/assets/{page-CCNRIt_f.js → page-T2BtjwPl.js} +1 -1
  148. zenml/zen_server/dashboard/assets/page-TXe1Eo3Z.js +1 -0
  149. zenml/zen_server/dashboard/assets/{page-BnaevhnB.js → page-YiF_fNbe.js} +1 -1
  150. zenml/zen_server/dashboard/assets/{page-uA5prJGY.js → page-hQaiQXfg.js} +1 -1
  151. zenml/zen_server/dashboard/assets/persist-3-5nOJ6m.js +1 -0
  152. zenml/zen_server/dashboard/assets/{play-circle-CNtZKDnW.js → play-circle-XSkLR12B.js} +1 -1
  153. zenml/zen_server/dashboard/assets/plus-FB9-lEq_.js +1 -0
  154. zenml/zen_server/dashboard/assets/refresh-COb6KYDi.js +1 -0
  155. zenml/zen_server/dashboard/assets/sharedSchema-BoYx_B_L.js +14 -0
  156. zenml/zen_server/dashboard/assets/{stack-detail-query-Cficsl6d.js → stack-detail-query-B-US_-wa.js} +1 -1
  157. zenml/zen_server/dashboard/assets/{terminal-By9cErXc.js → terminal-grtjrIEJ.js} +1 -1
  158. zenml/zen_server/dashboard/assets/trash-Cd5CSFqA.js +1 -0
  159. zenml/zen_server/dashboard/assets/{update-server-settings-mutation-7d8xi1tS.js → update-server-settings-mutation-B8GB_ubU.js} +1 -1
  160. zenml/zen_server/dashboard/assets/{url-D7mAQGUM.js → url-hcMJkz8p.js} +1 -1
  161. zenml/zen_server/dashboard/assets/{zod-BhoGpZ63.js → zod-CnykDKJj.js} +1 -1
  162. zenml/zen_server/dashboard/index.html +7 -7
  163. zenml/zen_server/dashboard_legacy/asset-manifest.json +4 -4
  164. zenml/zen_server/dashboard_legacy/index.html +1 -1
  165. zenml/zen_server/dashboard_legacy/{precache-manifest.12246c7548e71e2c4438e496360de80c.js → precache-manifest.9c473c96a43298343a7ce1256183123b.js} +4 -4
  166. zenml/zen_server/dashboard_legacy/service-worker.js +1 -1
  167. zenml/zen_server/dashboard_legacy/static/js/{main.3b27024b.chunk.js → main.463c90b9.chunk.js} +2 -2
  168. zenml/zen_server/dashboard_legacy/static/js/{main.3b27024b.chunk.js.map → main.463c90b9.chunk.js.map} +1 -1
  169. zenml/zen_server/deploy/helm/Chart.yaml +1 -1
  170. zenml/zen_server/deploy/helm/README.md +2 -2
  171. zenml/zen_server/rbac/models.py +1 -0
  172. zenml/zen_server/rbac/utils.py +4 -0
  173. zenml/zen_server/routers/pipeline_builds_endpoints.py +2 -66
  174. zenml/zen_server/routers/pipeline_deployments_endpoints.py +2 -53
  175. zenml/zen_server/routers/pipelines_endpoints.py +1 -74
  176. zenml/zen_server/routers/run_templates_endpoints.py +212 -0
  177. zenml/zen_server/routers/stack_deployment_endpoints.py +6 -0
  178. zenml/zen_server/routers/users_endpoints.py +0 -7
  179. zenml/zen_server/routers/workspaces_endpoints.py +79 -0
  180. zenml/zen_server/{pipeline_deployment → template_execution}/runner_entrypoint_configuration.py +1 -8
  181. zenml/zen_server/{pipeline_deployment → template_execution}/utils.py +214 -92
  182. zenml/zen_server/utils.py +77 -2
  183. zenml/zen_server/zen_server_api.py +54 -2
  184. zenml/zen_stores/base_zen_store.py +7 -1
  185. zenml/zen_stores/migrations/versions/0.63.0_release.py +23 -0
  186. zenml/zen_stores/migrations/versions/0.64.0_release.py +23 -0
  187. zenml/zen_stores/migrations/versions/026d4577b6a0_add_code_path.py +39 -0
  188. zenml/zen_stores/migrations/versions/3dcc5d20e82f_add_last_user_activity.py +51 -0
  189. zenml/zen_stores/migrations/versions/7d1919bb1ef0_add_run_templates.py +100 -0
  190. zenml/zen_stores/migrations/versions/909550c7c4da_remove_user_hub_token.py +36 -0
  191. zenml/zen_stores/migrations/versions/b59aa68fdb1f_simplify_pipelines.py +139 -0
  192. zenml/zen_stores/rest_zen_store.py +112 -39
  193. zenml/zen_stores/schemas/__init__.py +2 -0
  194. zenml/zen_stores/schemas/pipeline_build_schemas.py +3 -3
  195. zenml/zen_stores/schemas/pipeline_deployment_schemas.py +32 -2
  196. zenml/zen_stores/schemas/pipeline_run_schemas.py +29 -3
  197. zenml/zen_stores/schemas/pipeline_schemas.py +29 -30
  198. zenml/zen_stores/schemas/run_template_schemas.py +264 -0
  199. zenml/zen_stores/schemas/server_settings_schemas.py +2 -0
  200. zenml/zen_stores/schemas/step_run_schemas.py +11 -4
  201. zenml/zen_stores/schemas/user_schemas.py +0 -2
  202. zenml/zen_stores/sql_zen_store.py +389 -151
  203. zenml/zen_stores/template_utils.py +261 -0
  204. zenml/zen_stores/zen_store_interface.py +93 -20
  205. {zenml_nightly-0.62.0.dev20240729.dist-info → zenml_nightly-0.64.0.dev20240809.dist-info}/METADATA +3 -3
  206. {zenml_nightly-0.62.0.dev20240729.dist-info → zenml_nightly-0.64.0.dev20240809.dist-info}/RECORD +211 -184
  207. zenml/_hub/client.py +0 -289
  208. zenml/_hub/constants.py +0 -21
  209. zenml/_hub/utils.py +0 -79
  210. zenml/cli/hub.py +0 -1116
  211. zenml/models/v2/core/pipeline_namespace.py +0 -113
  212. zenml/models/v2/misc/hub_plugin_models.py +0 -79
  213. zenml/new/pipelines/deserialization_utils.py +0 -292
  214. zenml/zen_server/dashboard/assets/@radix-CFOkMR_E.js +0 -85
  215. zenml/zen_server/dashboard/assets/CollapsibleCard-opiuBHHc.js +0 -1
  216. zenml/zen_server/dashboard/assets/CopyButton-Cr7xYEPb.js +0 -2
  217. zenml/zen_server/dashboard/assets/DisplayDate-DYgIjlDF.js +0 -1
  218. zenml/zen_server/dashboard/assets/Pagination-C6X-mifw.js +0 -1
  219. zenml/zen_server/dashboard/assets/index-EpMIKgrI.css +0 -1
  220. zenml/zen_server/dashboard/assets/index.esm-Corw4lXQ.js +0 -1
  221. zenml/zen_server/dashboard/assets/package-B3fWP-Dh.js +0 -1
  222. zenml/zen_server/dashboard/assets/page-5NCOHOsy.js +0 -1
  223. zenml/zen_server/dashboard/assets/page-B6h3iaHJ.js +0 -1
  224. zenml/zen_server/dashboard/assets/page-Bi-wtWiO.js +0 -5
  225. zenml/zen_server/dashboard/assets/page-Bq0YxkLV.js +0 -1
  226. zenml/zen_server/dashboard/assets/page-Bs2F4eoD.js +0 -2
  227. zenml/zen_server/dashboard/assets/page-CHNxpz3n.js +0 -1
  228. zenml/zen_server/dashboard/assets/page-DgorQFqi.js +0 -1
  229. zenml/zen_server/dashboard/assets/page-K8ebxVIs.js +0 -1
  230. zenml/zen_server/dashboard/assets/page-TgCF0P_U.js +0 -1
  231. zenml/zen_server/dashboard/assets/page-ZnCEe-eK.js +0 -9
  232. zenml/zen_server/dashboard/assets/persist-D7HJNBWx.js +0 -1
  233. zenml/zen_server/dashboard/assets/plus-C8WOyCzt.js +0 -1
  234. zenml/zen_server/dashboard/assets/secrets-video-OBJ6irhH.svg +0 -21
  235. zenml/zen_server/dashboard/assets/stacks-video-7gfxpAq4.svg +0 -21
  236. /zenml/zen_server/{pipeline_deployment → template_execution}/__init__.py +0 -0
  237. /zenml/zen_server/{pipeline_deployment → template_execution}/workload_manager_interface.py +0 -0
  238. {zenml_nightly-0.62.0.dev20240729.dist-info → zenml_nightly-0.64.0.dev20240809.dist-info}/LICENSE +0 -0
  239. {zenml_nightly-0.62.0.dev20240729.dist-info → zenml_nightly-0.64.0.dev20240809.dist-info}/WHEEL +0 -0
  240. {zenml_nightly-0.62.0.dev20240729.dist-info → zenml_nightly-0.64.0.dev20240809.dist-info}/entry_points.txt +0 -0
@@ -1 +0,0 @@
1
- import{j as e,r as c}from"./@radix-CFOkMR_E.js";import{P as V,a0 as L,a1 as R,ac as q,a2 as y,a3 as N,a4 as v,aj as D,ak as Q,al as W,E as G,k as K,l as Y,j as J,n as X,F as ee,Y as T,aw as C,ax as E,M as se,N as te,O as ae,S as m,A as P,b as M,B as re,h as g,r as A,z as p,D as ne,o as ce,ay as ie}from"./index-BczVOqUf.js";import{a as le}from"./plus-C8WOyCzt.js";import{C as b,R as oe}from"./CopyButton-Cr7xYEPb.js";import{a as de,S as xe,P as me}from"./Pagination-C6X-mifw.js";import{s as f,C as ue,p as z,c as he}from"./persist-D7HJNBWx.js";import{q as pe,a as h}from"./@tanstack-DYiOyJUL.js";import{L as H,c as fe}from"./@react-router-CO-OsFwI.js";import{D as je}from"./DisplayDate-DYgIjlDF.js";import{I as Ce}from"./InlineAvatar-xsrsIGE-.js";import{I as k}from"./Infobox-DSt0O-dm.js";import{C as u}from"./CodeSnippet-Dvkx_82E.js";import{C as ge}from"./CollapsibleCard-opiuBHHc.js";import{F as we}from"./chevron-right-double-CZBOf6JM.js";import{o as ye,s as Ne}from"./url-D7mAQGUM.js";import"./@reactflow-l_1hUr1S.js";import"./copy-BXNk6BjL.js";import"./index-rK_Wuy2W.js";import"./stack-detail-query-Cficsl6d.js";import"./database-1xWSgZfO.js";function ve(){return e.jsx(V,{children:e.jsx("h1",{className:"text-display-xs font-semibold",children:"Stacks"})})}const be=s=>c.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...s},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2929 2.29295C17.788 0.797857 20.212 0.797859 21.7071 2.29295C23.2022 3.78805 23.2022 6.21207 21.7071 7.70717L18.7097 10.7045C18.7088 10.7054 18.708 10.7063 18.7071 10.7072C18.7062 10.708 18.7053 10.7089 18.7044 10.7098L8.50078 20.9134C8.48402 20.9302 8.46741 20.9468 8.45093 20.9633C8.20603 21.2086 7.99001 21.425 7.73334 21.5943C7.50768 21.7431 7.26295 21.8607 7.00578 21.9439C6.71327 22.0386 6.40936 22.0722 6.06483 22.1102C6.04165 22.1127 6.01829 22.1153 5.99474 22.1179L2.61038 22.4939C2.30845 22.5275 2.00765 22.422 1.79284 22.2072C1.57803 21.9924 1.47251 21.6916 1.50606 21.3896L1.8821 18.0053C1.88472 17.9817 1.8873 17.9583 1.88985 17.9352C1.92786 17.5906 1.96138 17.2867 2.05607 16.9942C2.13932 16.7371 2.25695 16.4923 2.40576 16.2667C2.57501 16.01 2.79138 15.794 3.03667 15.5491C3.05317 15.5326 3.06981 15.516 3.08657 15.4992L16.2929 2.29295ZM14 7.41427L4.50078 16.9134C4.17827 17.2359 4.1184 17.3025 4.07541 17.3677C4.02581 17.4429 3.9866 17.5245 3.95885 17.6102C3.9348 17.6845 3.92024 17.7728 3.86987 18.2261L3.63187 20.3681L5.77388 20.1301C6.22718 20.0798 6.3155 20.0652 6.3898 20.0412C6.47553 20.0134 6.5571 19.9742 6.63232 19.9246C6.69752 19.8816 6.76406 19.8217 7.08657 19.4992L16.5858 10.0001L14 7.41427ZM18 8.58584L15.4142 6.00006L17.7071 3.70716C18.4211 2.99312 19.5788 2.99312 20.2929 3.70717C21.0069 4.42121 21.0069 5.57891 20.2929 6.29295L18 8.58584Z"})),ke=s=>c.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...s},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.1615 1H12.8385C13.3657 0.999983 13.8205 0.999967 14.195 1.03057C14.5904 1.06287 14.9836 1.13419 15.362 1.32698C15.9265 1.6146 16.3854 2.07354 16.673 2.63803C16.8658 3.01641 16.9371 3.40963 16.9694 3.80497C16.9969 4.14075 16.9997 4.54097 17 5H21C21.5523 5 22 5.44772 22 6C22 6.55229 21.5523 7 21 7H20V17.2413C20 18.0463 20 18.7106 19.9558 19.2518C19.9099 19.8139 19.8113 20.3306 19.564 20.816C19.1805 21.5686 18.5686 22.1805 17.816 22.564C17.3306 22.8113 16.8139 22.9099 16.2518 22.9558C15.7106 23 15.0463 23 14.2413 23H9.75868C8.95372 23 8.28936 23 7.74817 22.9558C7.18608 22.9099 6.66937 22.8113 6.18404 22.564C5.43139 22.1805 4.81947 21.5686 4.43597 20.816C4.18868 20.3306 4.09012 19.8139 4.04419 19.2518C3.99998 18.7106 3.99999 18.0463 4 17.2413L4 7H3C2.44772 7 2 6.55229 2 6C2 5.44772 2.44772 5 3 5H7.00003C7.00031 4.54097 7.00314 4.14075 7.03057 3.80497C7.06287 3.40963 7.13419 3.01641 7.32698 2.63803C7.6146 2.07354 8.07354 1.6146 8.63803 1.32698C9.01641 1.13419 9.40963 1.06287 9.80497 1.03057C10.1795 0.999967 10.6343 0.999983 11.1615 1ZM6 7V17.2C6 18.0566 6.00078 18.6389 6.03755 19.089C6.07337 19.5274 6.1383 19.7516 6.21799 19.908C6.40973 20.2843 6.71569 20.5903 7.09202 20.782C7.24842 20.8617 7.47262 20.9266 7.91104 20.9625C8.36113 20.9992 8.94342 21 9.8 21H14.2C15.0566 21 15.6389 20.9992 16.089 20.9625C16.5274 20.9266 16.7516 20.8617 16.908 20.782C17.2843 20.5903 17.5903 20.2843 17.782 19.908C17.8617 19.7516 17.9266 19.5274 17.9624 19.089C17.9992 18.6389 18 18.0566 18 17.2V7H6ZM14.9999 5H9.00007C9.00051 4.5349 9.00357 4.21698 9.02393 3.96784C9.04612 3.69617 9.0838 3.59546 9.10899 3.54601C9.20487 3.35785 9.35785 3.20487 9.54601 3.109C9.59545 3.0838 9.69617 3.04612 9.96784 3.02393C10.2512 3.00078 10.6234 3 11.2 3H12.8C13.3766 3 13.7488 3.00078 14.0322 3.02393C14.3038 3.04612 14.4045 3.0838 14.454 3.109C14.6422 3.20487 14.7951 3.35785 14.891 3.54601C14.9162 3.59546 14.9539 3.69617 14.9761 3.96784C14.9964 4.21698 14.9995 4.5349 14.9999 5ZM10 10.5C10.5523 10.5 11 10.9477 11 11.5V16.5C11 17.0523 10.5523 17.5 10 17.5C9.44772 17.5 9 17.0523 9 16.5V11.5C9 10.9477 9.44772 10.5 10 10.5ZM14 10.5C14.5523 10.5 15 10.9477 15 11.5V16.5C15 17.0523 14.5523 17.5 14 17.5C13.4477 17.5 13 17.0523 13 16.5V11.5C13 10.9477 13.4477 10.5 14 10.5Z"})),w=c.forwardRef((s,t)=>{const{triggerChildren:a,children:r,onSelect:n,onOpenChange:i,icon:l,open:x,...o}=s;return e.jsxs(L,{open:x,onOpenChange:i,children:[e.jsx(R,{asChild:!0,children:e.jsx(q,{...o,className:"hover:cursor-pointer",icon:s.icon,ref:t,onSelect:d=>{d.preventDefault(),n&&n()},children:a})}),r]})});w.displayName="DialogItem";const F=c.forwardRef(({closeModal:s,name:t,...a},r)=>e.jsxs(y,{...a,ref:r,children:[e.jsx(N,{children:e.jsx(v,{children:"Update Stack"})}),e.jsxs("div",{className:"space-y-5 p-7",children:[e.jsx(B,{action:"update"}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"Update a stack"}),e.jsx(u,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:`zenml stack update ${t} -o NEW_ORCHESTRATOR_NAME`})]})]})]}));F.displayName="UpdateStackDialog";const O=c.forwardRef(({closeModal:s,name:t,...a},r)=>e.jsxs(y,{...a,ref:r,children:[e.jsx(N,{children:e.jsx(v,{children:"Delete Stack"})}),e.jsxs("div",{className:"space-y-5 p-7",children:[e.jsx(B,{action:"delete"}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"Delete a stack"}),e.jsx(u,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:`zenml stack delete ${t}`})]})]})]}));O.displayName="DeleteStackDialog";function B({action:s}){function t(){switch(s){case"delete":return"delete";case"update":return"update";case"describe":return"get details of"}}return e.jsx(k,{children:e.jsx("div",{className:"flex w-full flex-wrap justify-between gap-2",children:e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"truncate text-text-sm font-semibold",children:"We are working on the new Stacks experience."}),e.jsxs("p",{className:"truncate text-text-sm",children:["Meanwhile you can use the CLI to ",t()," your stack."]})]})})})}function Se({name:s}){const[t,a]=c.useState(!1),[r,n]=c.useState(!1),i=c.useRef(null),l=c.useRef(null);function x(){l.current=i.current}function o(d){a(d),d===!1&&n(!1)}return e.jsx(D,{open:r,onOpenChange:n,children:e.jsxs(D,{children:[e.jsx(Q,{className:"z-10",ref:i,children:e.jsx(de,{className:"h-5 w-5 fill-theme-text-secondary"})}),e.jsxs(W,{hidden:t,onCloseAutoFocus:d=>{l.current&&(l.current.focus(),l.current=null,d.preventDefault())},className:"z-10",align:"end",sideOffset:1,children:[e.jsx(w,{onSelect:x,onOpenChange:o,icon:e.jsx(be,{className:"h-3 w-3 !fill-neutral-400"}),triggerChildren:"Update",children:e.jsx(F,{name:s,className:"lg:min-w-[600px]",closeModal:()=>o(!1)})}),e.jsx(w,{onSelect:x,onOpenChange:o,icon:e.jsx(ke,{className:"h-3 w-3 !fill-neutral-400"}),triggerChildren:"Delete",children:e.jsx(O,{name:s,className:"lg:min-w-[600px]",closeModal:()=>o(!1)})})]})]})})}function De(){return e.jsx("div",{className:"flex h-9 items-center border-b border-theme-border-moderate bg-theme-surface-primary px-4 py-3",children:e.jsxs(G,{className:"focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none",children:[e.jsx(we,{className:"h-5 w-5 fill-neutral-500"}),e.jsx("span",{className:"sr-only",children:"Close"})]})})}async function Ee(s){const t=K(Y.flavors.all)+(s?`?${ye(s)}`:""),a=await J(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(a.status===404&&X(),!a.ok){const r=await a.json().then(n=>Array.isArray(n.detail)?n.detail[1]:n.detail).catch(()=>"Error while fetching flavors");throw new ee({status:a.status,statusText:a.statusText,message:r})}return a.json()}const $={all:["flavors"],flavorList:s=>pe({queryKey:[...$.all,s],queryFn:async()=>Ee(s)})};function Ie(s){if(!s)return[];const t=[];for(const a in s)Array.isArray(s[a])&&t.push(...s[a]);return t}const _=c.forwardRef(({name:s,children:t,type:a,...r},n)=>e.jsxs(L,{children:[e.jsx(R,{asChild:!0,children:t}),e.jsxs(y,{className:"w-fit max-w-fit",...r,ref:n,children:[e.jsx(N,{children:e.jsx(v,{children:T(a||"")})}),e.jsxs("div",{className:"space-y-5 p-7",children:[e.jsx(Le,{type:a}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"text-text-sm text-theme-text-secondary",children:["Describe your ",C(a)]}),e.jsx(u,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:`zenml ${E(a)} describe ${s}`})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"text-text-sm text-theme-text-secondary",children:["Update your ",C(a)]}),e.jsx(u,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:`zenml ${E(a)} update ${s}`})]})]})]})]}));_.displayName="ComponentFallbackDialog";function Le({type:s}){return e.jsx(k,{children:e.jsx("div",{className:"flex w-full flex-wrap justify-between gap-2",children:e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"truncate text-text-sm font-semibold",children:"We are working on the new Stacks experience."}),e.jsxs("p",{className:"truncate text-text-sm",children:["Meanwhile you can use the CLI to manage your ",C(s),"."]})]})})})}const U=c.createContext(null);function Re({children:s}){const[t,a]=c.useState([]);return e.jsx(U.Provider,{value:{integrations:t,setIntegrations:a},children:s})}function Z(){const s=c.useContext(U);if(s===null)throw new Error("useIntegrationsContext must be used within an AuthProvider");return s}function Te({children:s,stackId:t,stackName:a}){return e.jsxs(se,{children:[e.jsx(te,{children:s}),e.jsx(ae,{className:"w-[1000px] overflow-y-auto",children:e.jsxs(Re,{children:[e.jsx(De,{}),e.jsx(Pe,{stackId:t}),e.jsx(He,{name:a}),e.jsx(Me,{stackId:t})]})})]})}function Pe({stackId:s}){const t=h({...f.stackDetail(s)});return t.isError?null:t.isPending?e.jsx("div",{className:"p-5",children:e.jsx(m,{className:"h-6 w-full"})}):e.jsxs("div",{className:"flex items-center space-x-2 border-b border-theme-border-moderate bg-theme-surface-primary p-5",children:[e.jsx(P,{type:"square",size:"lg",children:e.jsx(M,{size:"lg",children:t.data.name[0]})}),e.jsxs("div",{children:[e.jsxs("div",{className:"group/copybutton flex items-center gap-0.5",children:[e.jsx("p",{className:"mb-0.5 text-text-sm text-theme-text-secondary",children:t.data.id}),e.jsx(b,{copyText:t.data.id})]}),e.jsx("div",{className:"flex items-center gap-1",children:e.jsx("h2",{className:"text-display-xs font-semibold",children:t.data.name})})]})]})}function Me({stackId:s}){var r;const t=h({...f.stackDetail(s)});if(t.isError)return null;if(t.isPending)return e.jsx("div",{className:"p-5",children:e.jsx(m,{className:"h-[300px] w-full"})});const a=Ie((r=t.data.metadata)==null?void 0:r.components);return e.jsx("ul",{className:"space-y-5 p-5",children:a.map(n=>e.jsx("li",{children:e.jsx(Ae,{component:n})},n.id))})}function Ae({component:s}){var t,a,r,n,i;return e.jsxs(re,{className:"flex items-center justify-between p-5",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx(ze,{flavor:((t=s.body)==null?void 0:t.flavor)||"",type:((a=s.body)==null?void 0:a.type)||"orchestrator"}),e.jsxs("div",{children:[e.jsx(_,{type:((r=s.body)==null?void 0:r.type)||"orchestrator",name:s.name,children:e.jsx("button",{className:"text-text-xl",children:s.name})}),e.jsxs("div",{className:"group/copybutton flex items-center gap-0.5",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:s.id.split("-")[0]}),e.jsx(b,{copyText:s.id})]})]})]}),e.jsx(ue,{type:((n=s.body)==null?void 0:n.type)||"orchestrator",children:T(((i=s.body)==null?void 0:i.type)||"")})]})}function ze({flavor:s,type:t}){var n;const{setIntegrations:a}=Z(),r=h({...$.flavorList({name:s,type:t})});return c.useEffect(()=>{var i,l,x;(l=(i=r.data)==null?void 0:i.items)!=null&&l.length&&((x=r.data.items[0].body)!=null&&x.integration)&&r.data.items[0].body.integration!=="built-in"&&a(o=>{var S;const d=((S=r.data.items[0].body)==null?void 0:S.integration)||"";return Array.from(new Set([...o,d])).filter(Boolean)})},[a,r.data]),r.isError?null:r.isPending?e.jsx(m,{className:"h-6 w-6"}):e.jsx("img",{width:32,height:32,alt:`${s} logo`,src:Ne(((n=r.data.items[0].body)==null?void 0:n.logo_url)??"")})}function He({name:s}){const{integrations:t}=Z();return e.jsx("section",{className:"px-5 pt-5",children:e.jsx(ge,{title:e.jsx("span",{className:"text-text-lg",children:"Set this stack"}),children:e.jsxs("ul",{className:"space-y-5",children:[e.jsxs("li",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(I,{children:"1"}),e.jsx("p",{className:"font-semibold",children:"Set your stack"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"Set the stack as active on your client"}),e.jsx(u,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:`zenml stack set ${s}`})]})]}),t.length>=1&&e.jsxs("li",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(I,{children:"2"}),e.jsx("p",{className:"font-semibold",children:"Install the integrations"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"Install the required integrations to run pipelines in your stack"}),e.jsx(u,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:`zenml integration install ${t.join(" ")}`})]})]})]})})})}function I({children:s}){return e.jsx("div",{className:"flex h-7 w-7 items-center justify-center rounded-sm bg-primary-100 text-text-lg font-semibold text-theme-text-brand",children:s})}function Fe(){return[{id:"name",header:"Stack",accessorFn:s=>({name:s.name,id:s.id}),cell:({getValue:s})=>{const{name:t,id:a}=s();return e.jsxs("div",{className:"group/copybutton flex items-center gap-2",children:[e.jsx(P,{type:"square",size:"md",children:e.jsx(M,{size:"md",children:t[0]})}),e.jsxs("div",{children:[e.jsx("div",{className:"flex items-center gap-1",children:e.jsx(Te,{stackName:t,stackId:a,children:e.jsx("h2",{className:"text-text-md font-semibold",children:t})})}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("p",{className:"text-text-xs text-theme-text-secondary",children:a.split("-")[0]}),e.jsx(b,{copyText:a})]})]})]})}},{id:"created",header:"Created at",accessorFn:s=>{var t;return(t=s.body)==null?void 0:t.created},cell:({getValue:s})=>e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:e.jsx(je,{dateString:s()})})},{id:"author",header:"Author",accessorFn:s=>{var t;return{author:(t=s.body)==null?void 0:t.user}},cell:({getValue:s})=>{const{author:t}=s();return t?e.jsx(Ce,{username:t.name}):null}},{id:"actions",header:"",accessorKey:"name",cell:({getValue:s})=>e.jsx(Se,{name:s()})}]}function Oe({setHasResumeableStack:s}){const{success:t,data:a}=z(),r=h({...f.stackDeploymentStack({provider:(a==null?void 0:a.provider)||"aws",stack_name:(a==null?void 0:a.stackName)||"",date_start:a==null?void 0:a.timestamp}),enabled:t,throwOnError:!0});return c.useEffect(()=>{r.data&&(he(),s(!1))},[r.data]),!t||r.isError?null:r.isPending?e.jsx(m,{className:"h-[70px] w-full"}):e.jsx(k,{className:"w-full",children:e.jsxs("section",{className:"flex flex-wrap items-center justify-between gap-y-2",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("p",{className:"font-semibold",children:"You have a Stack provision incomplete"}),e.jsx("p",{className:"text-text-sm",children:"Return to the setup and finish the configuration on your cloud provider"})]}),e.jsx("div",{children:e.jsx(g,{className:"w-fit bg-theme-surface-primary",intent:"primary",emphasis:"subtle",asChild:!0,children:e.jsx(H,{to:A.stacks.create.newInfra,children:e.jsx("span",{children:"Review Stack"})})})})]})})}const j=1,Be=p.object({page:p.coerce.number().min(j).optional().default(j).catch(j),name:p.string().optional(),operator:p.enum(["and","or"]).optional()});function $e(){const[s]=fe(),{page:t,name:a,operator:r}=Be.parse({page:s.get("page")||void 0,name:s.get("name")||void 0});return{page:t,name:a,logical_operator:r}}function _e(){const[s,t]=c.useState(z().success),a=$e(),{refetch:r,data:n}=h({...f.stackList({...a,sort_by:"desc:updated"}),throwOnError:!0});return e.jsx("section",{className:"p-5",children:e.jsxs("div",{className:"flex flex-col gap-5",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-y-4",children:[e.jsx(xe,{searchParams:a}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs(g,{intent:"primary",emphasis:"subtle",size:"md",onClick:()=>r(),children:[e.jsx(oe,{className:"h-5 w-5 fill-theme-text-brand"}),"Refresh"]}),e.jsx(g,{size:"md",asChild:!0,children:e.jsxs(H,{to:A.stacks.create.index,children:[e.jsx(le,{className:"h-5 w-5 shrink-0 fill-white"}),e.jsx("span",{children:"New Stack"})]})})]})]}),e.jsxs("div",{className:"flex flex-col items-center gap-5",children:[s&&e.jsx(Oe,{setHasResumeableStack:t}),e.jsx("div",{className:"w-full",children:n?e.jsx(ne,{columns:Fe(),data:n.items}):e.jsx(m,{className:"h-[500px] w-full"})}),n?n.total_pages>1&&e.jsx(me,{searchParams:a,paginate:n}):e.jsx(m,{className:"h-[36px] w-[300px]"})]})]})})}function os(){const{setCurrentBreadcrumbData:s}=ce(),{setTourState:t,tourState:{tourActive:a}}=ie();return c.useEffect(()=>{a&&t(r=>({...r,run:!0,stepIndex:r.stepIndex}))},[a]),c.useEffect(()=>{s({segment:"stacks",data:null})},[]),e.jsxs("div",{children:[e.jsx(ve,{}),e.jsx(_e,{})]})}export{os as default};
@@ -1 +0,0 @@
1
- import{j as e}from"./@radix-CFOkMR_E.js";import{B as m,p as l,c as d,S as x,$ as u,r as f,aA as p}from"./index-BczVOqUf.js";import{S as h}from"./database-1xWSgZfO.js";import{c as j,L as g}from"./@react-router-CO-OsFwI.js";import"./@tanstack-DYiOyJUL.js";import"./@reactflow-l_1hUr1S.js";function n({icon:s,estimatedTime:t,subtitle:a,title:r,comingSoon:i=!1,isRecommended:c=!1}){return e.jsxs(m,{className:`h-full w-full space-y-1 px-6 py-5 ${i&&"bg-neutral-50"}`,children:[s,e.jsxs("div",{className:"flex flex-wrap items-center gap-1",children:[e.jsx("h2",{className:"text-text-lg font-semibold",children:r}),c&&e.jsx(l,{className:"font-semibold",color:"green",size:"sm",children:"Recommended"}),i&&e.jsx(l,{className:"font-semibold",color:"purple",size:"sm",children:"Coming Soon"})]}),e.jsx("p",{className:"text-theme-text-secondary",children:a}),e.jsxs("p",{className:"text-text-xs text-theme-text-tertiary",children:["Estimated time: ",t," mins"]})]})}function y(){const{isError:s,isPending:t,data:a}=d();if(t)return e.jsx(x,{className:"h-[200px] w-full"});if(s)return e.jsx("div",{children:"Failed to load server info"});const r=u(a.deployment_type||"other");return e.jsxs("section",{className:"w-full space-y-5",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-text-xl font-semibold",children:"Smart Stack Setup"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Use our smart tools to connect to your Cloud in a quick and simplified way."})]}),e.jsxs("div",{className:"grid w-full grid-cols-1 gap-6 md:grid-cols-2",children:[e.jsx(N,{isLocalDeployment:r}),e.jsx(v,{isLocalDeployment:r})]})]})}function N({isLocalDeployment:s}){const[t]=j(),a=f.stacks.create.newInfra+(t.size>=1?`?${t.toString()}`:"");return e.jsxs("div",{className:"relative",children:[s&&e.jsx(o,{}),e.jsx(g,{to:a,children:e.jsx(n,{title:"New Infrastructure",isRecommended:!0,subtitle:"Use a script to set a new cloud infrastructure from scratch",icon:e.jsx(h,{className:"h-6 w-6 fill-primary-400"}),estimatedTime:"3"})})]})}function v({isLocalDeployment:s}){return e.jsxs("div",{className:"relative",children:[s&&e.jsx(o,{}),e.jsx(n,{comingSoon:!0,title:"Use existing Cloud",subtitle:"Connect to your existing Cloud and configure your components manually.",icon:e.jsx(p,{className:"h-6 w-6 fill-primary-400"}),estimatedTime:"15"})]})}function o(){return e.jsx("div",{className:"group absolute flex h-full w-full items-center justify-center rounded-md border border-theme-border-moderate bg-white/70",children:e.jsx("div",{className:"hidden rounded-md bg-theme-text-primary px-3 py-2 text-text-xs text-theme-text-negative shadow-lg animate-in fade-in-0 fade-out-0 zoom-in-95 group-hover:block",children:"Smart Setup is not available for local deployments"})})}function I(){return e.jsx("section",{className:"layout-container flex gap-2 p-5",children:e.jsx(y,{})})}export{I as default};
@@ -1,9 +0,0 @@
1
- const __vite__fileDeps=["assets/CsvVizualization-Ck-nZ43m.js","assets/@radix-CFOkMR_E.js","assets/index-BczVOqUf.js","assets/@tanstack-DYiOyJUL.js","assets/@react-router-CO-OsFwI.js","assets/@reactflow-l_1hUr1S.js","assets/@reactflow-C26Olbza.css","assets/index-EpMIKgrI.css","assets/MarkdownVisualization-xp3hhULl.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
- var nr=Object.defineProperty;var sr=(e,t,r)=>t in e?nr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var w=(e,t,r)=>(sr(e,typeof t!="symbol"?t+"":t,r),r);import{r as p,j as s,g as ar}from"./@radix-CFOkMR_E.js";import{q as $e,j as ee,n as fe,F as A,k as G,l as B,s as e1,S as C,r as de,T as E,m as Re,t as ir,v as or,w as lr,x as dr,y as t1,_ as r1,i as Ee,h as $,C as Ae,E as n1,p as re,G as De,H as Fe,J as F,K as ze,L as z,M as s1,N as a1,O as i1,Q as me,R as ne,U as pe,V as xe,W as cr,X as ur,Y as kt,Z as hr,o as fr,P as mr,z as Lt,c as pr,$ as xr}from"./index-BczVOqUf.js";import{S as Cr}from"./database-1xWSgZfO.js";import{H as St,P as Ot,u as He,a as gr,g as br,p as vr,S as wr,b as o1,c as yr,d as jr,e as Er}from"./@reactflow-l_1hUr1S.js";import{F as l1}from"./chevron-right-double-CZBOf6JM.js";import{a as Z,c as Nr}from"./@tanstack-DYiOyJUL.js";import{E as U}from"./Error-kLtljEOM.js";import{D as ce}from"./DisplayDate-DYgIjlDF.js";import{a as we,E as se,b as d1,g as _r}from"./ExecutionStatus-DguLLgTK.js";import{I as Ge}from"./InlineAvatar-xsrsIGE-.js";import{L as ue,g as W,c as c1,b as u1}from"./@react-router-CO-OsFwI.js";import{C as D}from"./CodeSnippet-Dvkx_82E.js";import{C as L}from"./CollapsibleCard-opiuBHHc.js";import{E as J}from"./EmptyState-BMLnFVlB.js";import{s as kr}from"./url-D7mAQGUM.js";import{I as Lr}from"./Infobox-DSt0O-dm.js";import{S as Ce,a as Sr}from"./plus-C8WOyCzt.js";import{S as Or}from"./docker-CQMVm_4d.js";import{C as X,R as Tr}from"./CopyButton-Cr7xYEPb.js";import{S as h1}from"./logs-D8k8BVFf.js";import{u as Ir}from"./stack-detail-query-Cficsl6d.js";import{S as Pr}from"./terminal-By9cErXc.js";import"./check-circle-i56092KI.js";import"./copy-BXNk6BjL.js";const Mr=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 2C3.55228 2 4 2.44772 4 3V21C4 21.5523 3.55228 22 3 22C2.44772 22 2 21.5523 2 21V3C2 2.44772 2.44772 2 3 2ZM14.7071 4.29289C15.0976 4.68342 15.0976 5.31658 14.7071 5.70711L9.41421 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H9.41421L14.7071 18.2929C15.0976 18.6834 15.0976 19.3166 14.7071 19.7071C14.3166 20.0976 13.6834 20.0976 13.2929 19.7071L6.29289 12.7071C5.90237 12.3166 5.90237 11.6834 6.29289 11.2929L13.2929 4.29289C13.6834 3.90237 14.3166 3.90237 14.7071 4.29289Z"})),Vr=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5971 1.18505C11.8629 1.13038 12.1371 1.13038 12.4029 1.18505C12.7102 1.24824 12.9848 1.40207 13.2032 1.52436C13.2235 1.53575 13.2433 1.54687 13.2627 1.55761L12.7846 2.41823L13.2627 1.55761L20.6627 5.66872C20.6831 5.68009 20.7042 5.6917 20.7258 5.70359C20.9569 5.8309 21.2476 5.99097 21.4707 6.23315L21.1563 6.52296L21.4707 6.23315C21.6637 6.44253 21.8097 6.6907 21.899 6.96105C22.0024 7.27375 22.0011 7.60553 22.0002 7.8694C22.0001 7.89406 22 7.91813 22 7.94153V12.0001C22 12.5524 21.5523 13.0001 21 13.0001C20.4477 13.0001 20 12.5524 20 12.0001V8.69955L17.0029 10.3646C16.992 10.3709 16.9811 10.377 16.9701 10.3829L13 12.5885L13 20.4443C13.3511 20.4447 13.6916 20.6302 13.8742 20.9589C14.1424 21.4417 13.9684 22.0505 13.4856 22.3187L13.2627 22.4426C13.2433 22.4533 13.2235 22.4644 13.2032 22.4758C12.9848 22.5981 12.7102 22.7519 12.4029 22.8151C12.1371 22.8698 11.8629 22.8698 11.5971 22.8151C11.2898 22.7519 11.0152 22.5981 10.7968 22.4758C10.7765 22.4644 10.7567 22.4533 10.7373 22.4426L3.33733 18.3314C3.31688 18.3201 3.2958 18.3085 3.27421 18.2966C3.04308 18.1693 2.75245 18.0092 2.52927 17.767C2.33632 17.5576 2.1903 17.3095 2.10097 17.0391C1.99765 16.7264 1.99886 16.3946 1.99982 16.1308C1.99991 16.1061 2 16.082 2 16.0586V7.94153C2 7.91813 1.99991 7.89406 1.99982 7.8694C1.99886 7.60553 1.99765 7.27375 2.10097 6.96105C2.1903 6.69069 2.33632 6.44253 2.52927 6.23315C2.75244 5.99098 3.04306 5.8309 3.27419 5.7036C3.29579 5.6917 3.31687 5.68009 3.33733 5.66872L3.33733 5.66872L6.99904 3.63444C7.00862 3.62891 7.01828 3.62354 7.02802 3.61834L10.7373 1.55761C10.7567 1.54687 10.7765 1.53575 10.7968 1.52437C11.0152 1.40207 11.2898 1.24824 11.5971 1.18505ZM7.5 5.64404L5.05914 7.00008L12 10.8561L14.4408 9.50006L7.5 5.64404ZM16.5 8.3561L9.55913 4.50008L11.7086 3.30592C11.8602 3.22174 11.9375 3.1792 11.9952 3.15136C11.9969 3.15056 11.9985 3.1498 12 3.14907C12.0015 3.1498 12.0031 3.15056 12.0048 3.15136C12.0625 3.1792 12.1398 3.22173 12.2914 3.30592L18.9408 7.00006L16.5 8.3561ZM11 12.5885L4 8.69959V16.0586C4 16.2416 4.00042 16.3353 4.0045 16.4031C4.00462 16.4051 4.00475 16.407 4.00487 16.4088C4.0064 16.4098 4.00802 16.4108 4.00971 16.4119C4.067 16.4484 4.14867 16.4943 4.30862 16.5831L3.82297 17.4573L4.30862 16.5831L11 20.3006L11 12.5885ZM19 16.0001C17.8954 16.0001 17 16.8955 17 18.0001C17 19.1047 17.8954 20.0001 19 20.0001C20.1046 20.0001 21 19.1047 21 18.0001C21 16.8955 20.1046 16.0001 19 16.0001ZM15 18.0001C15 15.7909 16.7909 14.0001 19 14.0001C21.2091 14.0001 23 15.7909 23 18.0001C23 18.8713 22.7215 19.6775 22.2486 20.3344L22.7071 20.793C23.0976 21.1835 23.0976 21.8167 22.7071 22.2072C22.3166 22.5977 21.6834 22.5977 21.2929 22.2072L20.7052 21.6195C20.1879 21.8636 19.6099 22.0001 19 22.0001C16.7909 22.0001 15 20.2092 15 18.0001Z"})),$r=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.77687 1.00001C2.78469 1.00001 2.79241 1.00001 2.80001 1.00001H6.20001C6.20762 1.00001 6.21533 1.00001 6.22315 1.00001C6.34227 0.999961 6.48452 0.999906 6.60984 1.01015C6.75506 1.02201 6.96305 1.05245 7.181 1.1635C7.46324 1.30731 7.69271 1.53678 7.83652 1.81903C7.94757 2.03697 7.97801 2.24496 7.98988 2.39018C8.00012 2.5155 8.00006 2.65776 8.00002 2.77687C8.00001 2.78469 8.00001 2.79241 8.00001 2.80001V6.20001C8.00001 6.20762 8.00001 6.21533 8.00002 6.22315C8.00006 6.34227 8.00012 6.48452 7.98988 6.60984C7.97801 6.75506 7.94757 6.96305 7.83652 7.181C7.69271 7.46324 7.46324 7.69271 7.181 7.83652C6.96305 7.94757 6.75506 7.97801 6.60984 7.98988C6.48452 8.00012 6.34227 8.00006 6.22315 8.00002C6.21533 8.00001 6.20762 8.00001 6.20001 8.00001H2.80001C2.79241 8.00001 2.78469 8.00001 2.77687 8.00002C2.65776 8.00006 2.5155 8.00012 2.39018 7.98988C2.24496 7.97801 2.03697 7.94757 1.81903 7.83652C1.53678 7.69271 1.30731 7.46324 1.1635 7.181C1.05245 6.96305 1.02201 6.75506 1.01015 6.60984C0.999906 6.48452 0.999961 6.34227 1.00001 6.22315C1.00001 6.21533 1.00001 6.20762 1.00001 6.20001V2.80001C1.00001 2.79241 1.00001 2.78469 1.00001 2.77687C0.999961 2.65776 0.999906 2.5155 1.01015 2.39018C1.02201 2.24496 1.05245 2.03697 1.1635 1.81903C1.30731 1.53678 1.53678 1.30731 1.81903 1.1635C2.03697 1.05245 2.24496 1.02201 2.39018 1.01015C2.5155 0.999906 2.65776 0.999961 2.77687 1.00001ZM3.00001 3.00001V6.00001H6.00001V3.00001H3.00001ZM19.5322 5.52394C19.2488 5.50079 18.8766 5.50001 18.3 5.50001H11C10.4477 5.50001 10 5.0523 10 4.50001C10 3.94773 10.4477 3.50001 11 3.50001L18.3386 3.50001C18.8657 3.49999 19.3205 3.49998 19.695 3.53058C20.0904 3.56288 20.4836 3.6342 20.862 3.82699C21.4265 4.11461 21.8854 4.57356 22.173 5.13804C22.3658 5.51642 22.4371 5.90964 22.4694 6.30498C22.5 6.67955 22.5 7.13431 22.5 7.66145V9.032C22.5 9.47065 22.5 9.84914 22.4787 10.1624C22.4562 10.4922 22.4067 10.8221 22.2717 11.1481C21.9672 11.8832 21.3831 12.4672 20.6481 12.7717C20.3221 12.9067 19.9922 12.9562 19.6624 12.9787C19.3491 13 18.9706 13 18.532 13H18.5C17.9477 13 17.5 12.5523 17.5 12C17.5 11.4477 17.9477 11 18.5 11C18.9796 11 19.2893 10.9995 19.5263 10.9833C19.7542 10.9677 19.8411 10.9411 19.8827 10.9239C20.1277 10.8224 20.3224 10.6277 20.4239 10.3827C20.4411 10.3411 20.4677 10.2543 20.4833 10.0263C20.4995 9.78927 20.5 9.47964 20.5 9.00001V7.70001C20.5 7.12346 20.4992 6.75118 20.4761 6.46785C20.4539 6.19618 20.4162 6.09547 20.391 6.04602C20.2951 5.85786 20.1422 5.70488 19.954 5.60901C19.9046 5.58381 19.8038 5.54613 19.5322 5.52394ZM10.2769 8.50001C10.2847 8.50001 10.2924 8.50001 10.3 8.50001H13.7C13.7076 8.50001 13.7153 8.50001 13.7232 8.50001C13.8423 8.49996 13.9845 8.49991 14.1098 8.51015C14.2551 8.52201 14.4631 8.55245 14.681 8.6635C14.9632 8.80731 15.1927 9.03678 15.3365 9.31903C15.4476 9.53697 15.478 9.74496 15.4899 9.89018C15.5001 10.0155 15.5001 10.1578 15.5 10.2769C15.5 10.2847 15.5 10.2924 15.5 10.3V13.7C15.5 13.7076 15.5 13.7153 15.5 13.7231C15.5001 13.8423 15.5001 13.9845 15.4899 14.1098C15.478 14.2551 15.4476 14.4631 15.3365 14.681C15.1927 14.9632 14.9632 15.1927 14.681 15.3365C14.4631 15.4476 14.2551 15.478 14.1098 15.4899C13.9845 15.5001 13.8423 15.5001 13.7231 15.5C13.7153 15.5 13.7076 15.5 13.7 15.5H10.3C10.2924 15.5 10.2847 15.5 10.2769 15.5C10.1578 15.5001 10.0155 15.5001 9.89018 15.4899C9.74496 15.478 9.53697 15.4476 9.31903 15.3365C9.03678 15.1927 8.80731 14.9632 8.6635 14.681C8.55245 14.4631 8.52201 14.2551 8.51015 14.1098C8.49991 13.9845 8.49996 13.8423 8.50001 13.7232C8.50001 13.7153 8.50001 13.7076 8.50001 13.7V10.3C8.50001 10.2924 8.50001 10.2847 8.50001 10.2769C8.49996 10.1578 8.49991 10.0155 8.51015 9.89018C8.52201 9.74496 8.55245 9.53697 8.6635 9.31903C8.80731 9.03678 9.03678 8.80731 9.31903 8.6635C9.53697 8.55245 9.74496 8.52201 9.89018 8.51015C10.0155 8.49991 10.1578 8.49996 10.2769 8.50001ZM10.5 10.5V13.5H13.5V10.5H10.5ZM5.46802 11H5.50001C6.0523 11 6.50001 11.4477 6.50001 12C6.50001 12.5523 6.0523 13 5.50001 13C5.02039 13 4.71075 13.0006 4.47377 13.0167C4.24577 13.0323 4.15894 13.0589 4.11733 13.0761C3.8723 13.1776 3.67763 13.3723 3.57613 13.6173C3.5589 13.6589 3.53228 13.7458 3.51672 13.9738C3.50055 14.2108 3.50001 14.5204 3.50001 15V16.3C3.50001 16.8766 3.50079 17.2488 3.52394 17.5322C3.54614 17.8038 3.58381 17.9046 3.60901 17.954C3.70488 18.1422 3.85786 18.2951 4.04602 18.391C4.09547 18.4162 4.19618 18.4539 4.46785 18.4761C4.75119 18.4992 5.12346 18.5 5.70001 18.5H13C13.5523 18.5 14 18.9477 14 19.5C14 20.0523 13.5523 20.5 13 20.5H5.66145C5.13431 20.5 4.67955 20.5 4.30498 20.4694C3.90964 20.4371 3.51642 20.3658 3.13804 20.173C2.57356 19.8854 2.11461 19.4265 1.82699 18.862C1.6342 18.4836 1.56288 18.0904 1.53058 17.695C1.49998 17.3205 1.49999 16.8657 1.50001 16.3386L1.50001 14.968C1.5 14.5294 1.49999 14.1509 1.52136 13.8376C1.54387 13.5078 1.59337 13.1779 1.72837 12.852C2.03286 12.1169 2.61688 11.5329 3.35196 11.2284C3.67789 11.0934 4.0078 11.0439 4.33763 11.0214C4.65089 11 5.02937 11 5.46802 11ZM17.7769 16H21.2231C21.3423 16 21.4845 15.9999 21.6098 16.0101C21.7551 16.022 21.9631 16.0525 22.181 16.1635C22.4632 16.3073 22.6927 16.5368 22.8365 16.819C22.9476 17.037 22.978 17.245 22.9899 17.3902C23.0001 17.5155 23.0001 17.6577 23 17.7769C23 17.7847 23 17.7924 23 17.8V21.2C23 21.2076 23 21.2153 23 21.2232C23.0001 21.3423 23.0001 21.4845 22.9899 21.6098C22.978 21.7551 22.9476 21.9631 22.8365 22.181C22.6927 22.4632 22.4632 22.6927 22.181 22.8365C21.9631 22.9476 21.7551 22.978 21.6098 22.9899C21.4845 23.0001 21.3423 23.0001 21.2232 23C21.2153 23 21.2076 23 21.2 23H17.8C17.7924 23 17.7847 23 17.7769 23C17.6577 23.0001 17.5155 23.0001 17.3902 22.9899C17.245 22.978 17.037 22.9476 16.819 22.8365C16.5368 22.6927 16.3073 22.4632 16.1635 22.181C16.0525 21.9631 16.022 21.7551 16.0101 21.6098C15.9999 21.4845 16 21.3423 16 21.2231V17.7769C16 17.6578 15.9999 17.5155 16.0101 17.3902C16.022 17.245 16.0525 17.037 16.1635 16.819C16.3073 16.5368 16.5368 16.3073 16.819 16.1635C17.037 16.0525 17.245 16.022 17.3902 16.0101C17.5155 15.9999 17.6578 16 17.7769 16ZM18 18V21H21V18H18Z"})),Rr=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 3C3.89543 3 3 3.89543 3 5C3 6.10457 3.89543 7 5 7C6.10457 7 7 6.10457 7 5C7 3.89543 6.10457 3 5 3ZM1 5C1 2.79086 2.79086 1 5 1C7.20914 1 9 2.79086 9 5C9 7.20914 7.20914 9 5 9C2.79086 9 1 7.20914 1 5ZM15.3531 6.06506C14.5699 6.00083 13.4768 6 11.9344 6H11.5C10.9477 6 10.5 5.55228 10.5 5C10.5 4.44772 10.9477 4 11.5 4L11.9846 4C13.4658 3.99999 14.6415 3.99998 15.5166 4.07176C15.9623 4.10831 16.3749 4.16645 16.736 4.26872C17.0962 4.37071 17.4673 4.53362 17.771 4.82093C18.5209 5.53055 18.8532 6.57592 18.6507 7.58832C18.5688 7.99821 18.3599 8.34552 18.1247 8.63678C17.8889 8.92882 17.5856 9.21455 17.2429 9.50177C16.5699 10.0657 15.61 10.7447 14.4007 11.6L10.2952 14.5039C9.0359 15.3946 8.14402 16.0264 7.54167 16.5312C7.24297 16.7815 7.0505 16.9721 6.9314 17.1196C6.83281 17.2417 6.81191 17.3009 6.80978 17.3071C6.74385 17.6425 6.8538 17.9884 7.1013 18.2241C7.10663 18.2279 7.15787 18.2642 7.30887 18.3069C7.49129 18.3586 7.75849 18.4031 8.1469 18.4349C8.93013 18.4992 10.0232 18.5 11.5656 18.5H12.5C13.0523 18.5 13.5 18.9477 13.5 19.5C13.5 20.0523 13.0523 20.5 12.5 20.5H11.5154C10.0343 20.5 8.85853 20.5 7.98341 20.4282C7.53771 20.3917 7.12511 20.3335 6.76395 20.2313C6.40378 20.1293 6.03267 19.9664 5.72904 19.6791C4.97912 18.9694 4.64679 17.9241 4.84925 16.9117C4.93123 16.5018 5.14013 16.1545 5.37529 15.8632C5.61108 15.5712 5.91437 15.2854 6.25714 14.9982C6.93015 14.4343 7.89004 13.7553 9.09927 12.9L13.2048 9.99611C14.4641 9.1054 15.356 8.47355 15.9583 7.96881C16.257 7.71851 16.4495 7.5279 16.5686 7.38039C16.6672 7.25833 16.6881 7.19915 16.6902 7.1929C16.7562 6.85751 16.6462 6.51165 16.3987 6.2759C16.3934 6.27206 16.3421 6.23581 16.1911 6.19305C16.0087 6.1414 15.7415 6.09692 15.3531 6.06506ZM19 17C17.8954 17 17 17.8954 17 19C17 20.1046 17.8954 21 19 21C20.1046 21 21 20.1046 21 19C21 17.8954 20.1046 17 19 17ZM15 19C15 16.7909 16.7909 15 19 15C21.2091 15 23 16.7909 23 19C23 21.2091 21.2091 23 19 23C16.7909 23 15 21.2091 15 19Z"})),Tt=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.16146 2H17.8385C18.3657 1.99998 18.8205 1.99997 19.195 2.03057C19.5904 2.06287 19.9836 2.13419 20.362 2.32698C20.9265 2.6146 21.3854 3.07354 21.673 3.63803C21.8658 4.01641 21.9371 4.40963 21.9694 4.80497C22 5.17954 22 5.6343 22 6.16144V17.8386C22 18.3657 22 18.8205 21.9694 19.195C21.9371 19.5904 21.8658 19.9836 21.673 20.362C21.3854 20.9265 20.9265 21.3854 20.362 21.673C19.9836 21.8658 19.5904 21.9371 19.195 21.9694C18.8205 22 18.3657 22 17.8386 22H6.16144C5.6343 22 5.17954 22 4.80497 21.9694C4.40963 21.9371 4.01641 21.8658 3.63803 21.673C3.07354 21.3854 2.6146 20.9265 2.32698 20.362C2.13419 19.9836 2.06287 19.5904 2.03057 19.195C1.99997 18.8205 1.99998 18.3657 2 17.8385V6.16146C1.99998 5.63431 1.99997 5.17955 2.03057 4.80497C2.06287 4.40963 2.13419 4.01641 2.32698 3.63803C2.6146 3.07354 3.07354 2.6146 3.63803 2.32698C4.01641 2.13419 4.40963 2.06287 4.80497 2.03057C5.17955 1.99997 5.63431 1.99998 6.16146 2ZM4 10.4649V17.8C4 18.3766 4.00078 18.7488 4.02393 19.0322C4.04612 19.3038 4.0838 19.4045 4.109 19.454C4.20487 19.6422 4.35785 19.7951 4.54601 19.891C4.59546 19.9162 4.69617 19.9539 4.96784 19.9761C5.25117 19.9992 5.62345 20 6.2 20H8L8 15.5681C7.99997 15.3157 7.99994 15.0699 8.01695 14.8618C8.03562 14.6332 8.07969 14.3634 8.21799 14.092C8.40974 13.7157 8.7157 13.4097 9.09202 13.218C9.36344 13.0797 9.63318 13.0356 9.86177 13.0169C10.0699 12.9999 10.3157 13 10.5681 13H13.4319C13.6843 13 13.9301 12.9999 14.1382 13.0169C14.3668 13.0356 14.6366 13.0797 14.908 13.218C15.2843 13.4097 15.5903 13.7157 15.782 14.092C15.9203 14.3634 15.9644 14.6332 15.9831 14.8618C16.0001 15.0699 16 15.3157 16 15.5681L16 20H17.8C18.3766 20 18.7488 19.9992 19.0322 19.9761C19.3038 19.9539 19.4045 19.9162 19.454 19.891C19.6422 19.7951 19.7951 19.6422 19.891 19.454C19.9162 19.4045 19.9539 19.3038 19.9761 19.0322C19.9992 18.7488 20 18.3766 20 17.8V10.4649C19.4117 10.8052 18.7286 11 18 11C16.8053 11 15.7329 10.4762 15 9.64583C14.2671 10.4762 13.1947 11 12 11C10.8053 11 9.73295 10.4762 9 9.64582C8.26706 10.4762 7.19469 11 6 11C5.27143 11 4.58835 10.8052 4 10.4649ZM10 7C10 8.10457 10.8954 9 12 9C13.1046 9 14 8.10457 14 7C14 6.44772 14.4477 6 15 6C15.5523 6 16 6.44772 16 7C16 8.10457 16.8954 9 18 9C19.1046 9 20 8.10457 20 7V6.2C20 5.62345 19.9992 5.25118 19.9761 4.96784C19.9539 4.69617 19.9162 4.59546 19.891 4.54601C19.7951 4.35785 19.6422 4.20487 19.454 4.109C19.4045 4.0838 19.3038 4.04612 19.0322 4.02393C18.7488 4.00078 18.3766 4 17.8 4H6.2C5.62345 4 5.25117 4.00078 4.96784 4.02393C4.69617 4.04612 4.59546 4.0838 4.54601 4.109C4.35785 4.20487 4.20487 4.35785 4.109 4.54601C4.0838 4.59546 4.04612 4.69617 4.02393 4.96784C4.00078 5.25117 4 5.62345 4 6.2V7C4 8.10457 4.89543 9 6 9C7.10457 9 8 8.10457 8 7C8 6.44772 8.44772 6 9 6C9.55229 6 10 6.44772 10 7ZM14 20V15.6C14 15.3035 13.9992 15.1412 13.9897 15.0246C13.9893 15.02 13.9889 15.0156 13.9886 15.0115C13.9844 15.0111 13.98 15.0107 13.9754 15.0103C13.8588 15.0008 13.6965 15 13.4 15H10.6C10.3035 15 10.1412 15.0008 10.0246 15.0103C10.02 15.0107 10.0156 15.0111 10.0114 15.0115C10.0111 15.0156 10.0107 15.02 10.0103 15.0246C10.0008 15.1412 10 15.3035 10 15.6V20H14Z"}));function f1({artifactType:e,className:t}){switch(e){case"DataAnalysisArtifact":return s.jsx(Vr,{className:t});case"DataArtifact":return s.jsx(Cr,{className:t});case"ModelArtifact":return s.jsx($r,{className:t});case"SchemaArtifact":return s.jsx(Rr,{className:t});case"ServiceArtifact":return s.jsx(Tt,{className:t});case"StatisticsArtifact":return s.jsx(Tt,{className:t});default:return s.jsx($e,{className:t})}}function m1({children:e}){return s.jsxs(s.Fragment,{children:[s.jsx(St,{style:{border:"transparent",top:0,background:"transparent",width:0,height:0},type:"target",position:Ot.Top}),s.jsx("div",{className:"flex w-[300px] items-center justify-center",children:e}),s.jsx(St,{isConnectable:!1,type:"source",style:{border:"transparent",bottom:0,background:"transparent",width:0,height:0},position:Ot.Bottom})]})}const Ie=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7587 2H16.2413C17.0463 1.99999 17.7106 1.99998 18.2518 2.04419C18.8139 2.09012 19.3306 2.18868 19.816 2.43597C20.5686 2.81947 21.1805 3.43139 21.564 4.18404C21.8113 4.66937 21.9099 5.18608 21.9558 5.74817C22 6.28936 22 6.95372 22 7.75868V16.2413C22 17.0463 22 17.7106 21.9558 18.2518C21.9099 18.8139 21.8113 19.3306 21.564 19.816C21.1805 20.5686 20.5686 21.1805 19.816 21.564C19.3306 21.8113 18.8139 21.9099 18.2518 21.9558C17.7106 22 17.0463 22 16.2413 22H7.75868C6.95372 22 6.28936 22 5.74817 21.9558C5.18608 21.9099 4.66937 21.8113 4.18404 21.564C3.43139 21.1805 2.81947 20.5686 2.43597 19.816C2.18868 19.3306 2.09012 18.8139 2.04419 18.2518C1.99998 17.7106 1.99999 17.0463 2 16.2413V7.7587C1.99999 6.95373 1.99998 6.28937 2.04419 5.74817C2.09012 5.18608 2.18868 4.66937 2.43597 4.18404C2.81947 3.43139 3.43139 2.81947 4.18404 2.43597C4.66937 2.18868 5.18608 2.09012 5.74817 2.04419C6.28937 1.99998 6.95373 1.99999 7.7587 2ZM5.91104 4.03755C5.47262 4.07337 5.24842 4.1383 5.09202 4.21799C4.7157 4.40973 4.40973 4.7157 4.21799 5.09202C4.1383 5.24842 4.07337 5.47262 4.03755 5.91104C4.00078 6.36113 4 6.94342 4 7.8V16.2C4 17.0566 4.00078 17.6389 4.03755 18.089C4.07337 18.5274 4.1383 18.7516 4.21799 18.908C4.40973 19.2843 4.7157 19.5903 5.09202 19.782C5.24842 19.8617 5.47262 19.9266 5.91104 19.9624C6.36113 19.9992 6.94342 20 7.8 20H16.2C17.0566 20 17.6389 19.9992 18.089 19.9624C18.5274 19.9266 18.7516 19.8617 18.908 19.782C19.2843 19.5903 19.5903 19.2843 19.782 18.908C19.8617 18.7516 19.9266 18.5274 19.9624 18.089C19.9992 17.6389 20 17.0566 20 16.2V7.8C20 6.94342 19.9992 6.36113 19.9624 5.91104C19.9266 5.47262 19.8617 5.24842 19.782 5.09202C19.5903 4.7157 19.2843 4.40973 18.908 4.21799C18.7516 4.1383 18.5274 4.07337 18.089 4.03755C17.6389 4.00078 17.0566 4 16.2 4H7.8C6.94342 4 6.36113 4.00078 5.91104 4.03755ZM12 6C12.5523 6 13 6.44772 13 7V17C13 17.5523 12.5523 18 12 18C11.4477 18 11 17.5523 11 17V7C11 6.44772 11.4477 6 12 6ZM16 10C16.5523 10 17 10.4477 17 11V17C17 17.5523 16.5523 18 16 18C15.4477 18 15 17.5523 15 17V11C15 10.4477 15.4477 10 16 10ZM8 12C8.55229 12 9 12.4477 9 13V17C9 17.5523 8.55229 18 8 18C7.44772 18 7 17.5523 7 17V13C7 12.4477 7.44772 12 8 12Z"})),Ar=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7587 2H16.2413C17.0463 1.99999 17.7106 1.99998 18.2518 2.04419C18.8139 2.09012 19.3306 2.18868 19.816 2.43597C20.5686 2.81947 21.1805 3.43139 21.564 4.18404C21.8113 4.66937 21.9099 5.18608 21.9558 5.74817C22 6.28936 22 6.95372 22 7.75868V16.2413C22 17.0463 22 17.7106 21.9558 18.2518C21.9099 18.8139 21.8113 19.3306 21.564 19.816C21.1805 20.5686 20.5686 21.1805 19.816 21.564C19.3306 21.8113 18.8139 21.9099 18.2518 21.9558C17.7106 22 17.0463 22 16.2413 22H7.75868C6.95372 22 6.28936 22 5.74817 21.9558C5.18608 21.9099 4.66937 21.8113 4.18404 21.564C3.43139 21.1805 2.81947 20.5686 2.43597 19.816C2.18868 19.3306 2.09012 18.8139 2.04419 18.2518C1.99998 17.7106 1.99999 17.0463 2 16.2413V7.7587C1.99999 6.95373 1.99998 6.28937 2.04419 5.74817C2.09012 5.18608 2.18868 4.66937 2.43597 4.18404C2.81947 3.43139 3.43139 2.81947 4.18404 2.43597C4.66937 2.18868 5.18608 2.09012 5.74817 2.04419C6.28937 1.99998 6.95373 1.99999 7.7587 2ZM5.91104 4.03755C5.47262 4.07337 5.24842 4.1383 5.09202 4.21799C4.7157 4.40973 4.40973 4.7157 4.21799 5.09202C4.1383 5.24842 4.07337 5.47262 4.03755 5.91104C4.00078 6.36113 4 6.94342 4 7.8V16.2C4 17.0566 4.00078 17.6389 4.03755 18.089C4.07337 18.5274 4.1383 18.7516 4.21799 18.908C4.40973 19.2843 4.7157 19.5903 5.09202 19.782C5.24842 19.8617 5.47262 19.9266 5.91104 19.9624C6.36113 19.9992 6.94342 20 7.8 20H16.2C17.0566 20 17.6389 19.9992 18.089 19.9624C18.5274 19.9266 18.7516 19.8617 18.908 19.782C19.2843 19.5903 19.5903 19.2843 19.782 18.908C19.8617 18.7516 19.9266 18.5274 19.9624 18.089C19.9992 17.6389 20 17.0566 20 16.2V7.8C20 6.94342 19.9992 6.36113 19.9624 5.91104C19.9266 5.47262 19.8617 5.24842 19.782 5.09202C19.5903 4.7157 19.2843 4.40973 18.908 4.21799C18.7516 4.1383 18.5274 4.07337 18.089 4.03755C17.6389 4.00078 17.0566 4 16.2 4H7.8C6.94342 4 6.36113 4.00078 5.91104 4.03755ZM10.2071 8.29289C10.5976 8.68342 10.5976 9.31658 10.2071 9.70711L7.91421 12L10.2071 14.2929C10.5976 14.6834 10.5976 15.3166 10.2071 15.7071C9.81658 16.0976 9.18342 16.0976 8.79289 15.7071L5.79289 12.7071C5.40237 12.3166 5.40237 11.6834 5.79289 11.2929L8.79289 8.29289C9.18342 7.90237 9.81658 7.90237 10.2071 8.29289ZM13.7929 8.29289C14.1834 7.90237 14.8166 7.90237 15.2071 8.29289L18.2071 11.2929C18.5976 11.6834 18.5976 12.3166 18.2071 12.7071L15.2071 15.7071C14.8166 16.0976 14.1834 16.0976 13.7929 15.7071C13.4024 15.3166 13.4024 14.6834 13.7929 14.2929L16.0858 12L13.7929 9.70711C13.4024 9.31658 13.4024 8.68342 13.7929 8.29289Z"})),p1=p.createContext(null);function Dr({children:e}){const[t,r]=p.useState(!1);return s.jsx(p1.Provider,{value:{isVisualizationConfirmed:t,setVisualizationConfirmed:r},children:e})}function Fr(){const e=p.useContext(p1);if(!e)throw new Error("useArtifactLoadConfirmationContext must be used within a VisualizationConfirmProvider");return e}function zr({versionId:e}){return["artifact_versions",e]}async function Hr({versionId:e}){const t=G(B.artifactVersions.detail(e)),r=await ee(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(r.status===404&&fe(),!r.ok)throw new A({message:`Error while fetching artifact version ${e}`,status:r.status,statusText:r.statusText});return r.json()}function ae(e,t){return Z({queryKey:zr(e),queryFn:()=>Hr(e),...t})}const Gr=e=>p.createElement("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 2.22222C5.70445 2.22222 2.22222 5.70445 2.22222 10C2.22222 14.2955 5.70445 17.7778 10 17.7778C14.2955 17.7778 17.7778 14.2955 17.7778 10C17.7778 5.70445 14.2955 2.22222 10 2.22222ZM0 10C0 4.47715 4.47715 0 10 0C15.5228 0 20 4.47715 20 10C20 15.5228 15.5228 20 10 20C4.47715 20 0 15.5228 0 10Z",fill:"#D1D5DB"}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7778 10C17.7778 5.70445 14.2955 2.22222 10 2.22222V0C15.5228 0 20 4.47715 20 10H17.7778Z",fill:"#7A3EF4"})),Br=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7587 2H16.2413C17.0463 1.99999 17.7106 1.99998 18.2518 2.04419C18.8139 2.09012 19.3306 2.18868 19.816 2.43597C20.5686 2.81947 21.1805 3.43139 21.564 4.18404C21.8113 4.66937 21.9099 5.18608 21.9558 5.74817C22 6.28936 22 6.95372 22 7.75868V16.2413C22 17.0463 22 17.7106 21.9558 18.2518C21.9099 18.8139 21.8113 19.3306 21.564 19.816C21.1805 20.5686 20.5686 21.1805 19.816 21.564C19.3306 21.8113 18.8139 21.9099 18.2518 21.9558C17.7106 22 17.0463 22 16.2413 22H7.75868C6.95372 22 6.28936 22 5.74817 21.9558C5.18608 21.9099 4.66937 21.8113 4.18404 21.564C3.43139 21.1805 2.81947 20.5686 2.43597 19.816C2.18868 19.3306 2.09012 18.8139 2.04419 18.2518C1.99998 17.7106 1.99999 17.0463 2 16.2413V7.7587C1.99999 6.95373 1.99998 6.28937 2.04419 5.74817C2.09012 5.18608 2.18868 4.66937 2.43597 4.18404C2.81947 3.43139 3.43139 2.81947 4.18404 2.43597C4.66937 2.18868 5.18608 2.09012 5.74817 2.04419C6.28937 1.99998 6.95373 1.99999 7.7587 2ZM5.91104 4.03755C5.47262 4.07337 5.24842 4.1383 5.09202 4.21799C4.7157 4.40973 4.40973 4.7157 4.21799 5.09202C4.1383 5.24842 4.07337 5.47262 4.03755 5.91104C4.00078 6.36113 4 6.94342 4 7.8V16.2C4 17.0566 4.00078 17.6389 4.03755 18.089C4.07337 18.5274 4.1383 18.7516 4.21799 18.908C4.40973 19.2843 4.7157 19.5903 5.09202 19.782C5.24842 19.8617 5.47262 19.9266 5.91104 19.9624C6.36113 19.9992 6.94342 20 7.8 20H16.2C17.0566 20 17.6389 19.9992 18.089 19.9624C18.5274 19.9266 18.7516 19.8617 18.908 19.782C19.2843 19.5903 19.5903 19.2843 19.782 18.908C19.8617 18.7516 19.9266 18.5274 19.9624 18.089C19.9992 17.6389 20 17.0566 20 16.2V7.8C20 6.94342 19.9992 6.36113 19.9624 5.91104C19.9266 5.47262 19.8617 5.24842 19.782 5.09202C19.5903 4.7157 19.2843 4.40973 18.908 4.21799C18.7516 4.1383 18.5274 4.07337 18.089 4.03755C17.6389 4.00078 17.0566 4 16.2 4H7.8C6.94342 4 6.36113 4.00078 5.91104 4.03755ZM6.29289 8.29289C6.68342 7.90237 7.31658 7.90237 7.70711 8.29289L10.7071 11.2929C11.0976 11.6834 11.0976 12.3166 10.7071 12.7071L7.70711 15.7071C7.31658 16.0976 6.68342 16.0976 6.29289 15.7071C5.90237 15.3166 5.90237 14.6834 6.29289 14.2929L8.58579 12L6.29289 9.70711C5.90237 9.31658 5.90237 8.68342 6.29289 8.29289ZM12 15C12 14.4477 12.4477 14 13 14H17C17.5523 14 18 14.4477 18 15C18 15.5523 17.5523 16 17 16H13C12.4477 16 12 15.5523 12 15Z"}));function Y({children:e,className:t,...r}){return s.jsx("dt",{...r,className:e1("col-span-1 flex min-w-0 items-center truncate text-theme-text-secondary",t),children:e})}function K({children:e,className:t,...r}){return s.jsx("dd",{...r,className:e1("col-span-2 flex h-6 w-full min-w-0 items-center truncate text-neutral-700",t),children:e})}function g({label:e,value:t}){return s.jsxs(s.Fragment,{children:[s.jsx(Y,{children:e}),s.jsx(K,{children:t})]})}function Zr({componentId:e}){return["components",e]}async function qr({componentId:e}){const t=G(B.components.detail(e)),r=await ee(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(r.status===404&&fe(),!r.ok)throw new A({message:`Error while fetching component ${e}`,status:r.status,statusText:r.statusText});return r.json()}function Yr(e,t){return Z({queryKey:Zr(e),queryFn:()=>qr(e),...t})}function Kr({runId:e}){return["runs",e]}async function Ur({runId:e}){const t=G(B.runs.detail(e)),r=await ee(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(r.status===404&&fe(),!r.ok)throw new A({message:`Error while fetching pipeline run ${e}`,status:r.status,statusText:r.statusText});return r.json()}function q(e,t){return Z({queryKey:Kr(e),queryFn:()=>Ur(e),...t})}function Wr({stepId:e}){return["steps",e]}async function Qr({stepId:e}){const t=G(B.steps.detail(e)),r=await ee(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(r.status===404&&fe(),!r.ok)throw new A({message:`Error while fetching step ${e}`,status:r.status,statusText:r.statusText});return r.json()}function ge(e,t){return Z({queryKey:Wr(e),queryFn:()=>Qr(e),...t})}function Xr({artifactVersionId:e}){var o,l,d,c,u,h,f,m,x,b,v,j,S,O,T,I,P,M,N,_,V,ie;const t=ae({versionId:e}),r=(l=(o=t.data)==null?void 0:o.body)==null?void 0:l.producer_pipeline_run_id,n=q({runId:r},{throwOnError:!0,enabled:!!r}),a=(c=(d=t.data)==null?void 0:d.metadata)==null?void 0:c.producer_step_run_id,i=ge({stepId:a},{enabled:!!a});return t.isPending||n.isPending?s.jsx(C,{className:"h-[500px] w-full"}):t.isError||n.isError?s.jsx(U,{err:t.error||n.error}):s.jsx(L,{initialOpen:!0,title:"Details",children:s.jsxs("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 md:grid-cols-3 md:gap-y-4",children:[s.jsx(g,{label:"Pipeline",value:s.jsx(ue,{to:de.pipelines.namespace(encodeURIComponent((h=(u=n.data.body)==null?void 0:u.pipeline)==null?void 0:h.name)),children:s.jsxs(E,{color:"purple",className:"inline-flex items-center gap-0.5",rounded:!1,emphasis:"subtle",children:[s.jsx(Re,{className:"mr-1 h-4 w-4 fill-theme-text-brand"}),(m=(f=n.data.body)==null?void 0:f.pipeline)==null?void 0:m.name,s.jsx("div",{className:"rounded-sm bg-primary-50 px-1 py-0.25",children:(v=(b=(x=n.data.body)==null?void 0:x.pipeline)==null?void 0:b.body)==null?void 0:v.version})]})})}),((j=t.data.body)==null?void 0:j.producer_pipeline_run_id)&&((S=n.data.body)==null?void 0:S.status)&&s.jsx(g,{label:"Producer Run",value:s.jsx(ue,{to:de.runs.detail((O=t.data.body)==null?void 0:O.producer_pipeline_run_id),children:s.jsxs(E,{color:we((T=n.data.body)==null?void 0:T.status),className:"inline-flex items-center gap-0.5",rounded:!1,emphasis:"subtle",children:[((I=n.data.body)==null?void 0:I.status)==="running"?s.jsx(Gr,{className:"mr-1 h-4 w-4 border-[2px]"}):s.jsx(Br,{className:"mr-1 h-4 w-4 fill-current"}),(P=t.data.body)==null?void 0:P.producer_pipeline_run_id]})})}),((M=t.data.body)==null?void 0:M.artifact.id)&&s.jsx(g,{label:"Producer Step",value:s.jsx(s.Fragment,{children:i.data?s.jsxs(E,{color:we("completed"),className:"inline-flex items-center gap-0.5",rounded:!1,emphasis:"subtle",children:[s.jsx(se,{className:"mr-1 fill-current",status:"completed"}),i.data.name]}):s.jsx(C,{className:"h-full w-[150px]"})})}),s.jsx(g,{label:"Type",value:(N=t.data.body)==null?void 0:N.type}),s.jsx(g,{label:"Author",value:s.jsx("div",{className:"inline-flex items-center gap-1",children:s.jsx(Ge,{username:((V=(_=t.data.body)==null?void 0:_.user)==null?void 0:V.name)||""})})}),s.jsx(g,{label:"Updated",value:s.jsx(ce,{dateString:((ie=t.data.body)==null?void 0:ie.updated)||""})})]})})}function Jr({artifactVersionId:e}){var d,c,u,h,f,m;const{data:t,isPending:r,isError:n,error:a}=ae({versionId:e}),i=(d=t==null?void 0:t.metadata)==null?void 0:d.artifact_store_id,{data:o,isSuccess:l}=Yr({componentId:i},{enabled:!!i});return n?s.jsx(U,{err:a}):r?s.jsx(C,{className:"h-[500px] w-full"}):s.jsx(L,{initialOpen:!0,title:"Data",children:s.jsxs("dl",{className:"grid w-full grid-cols-1 gap-x-[10px] gap-y-2 md:grid-cols-3 md:gap-y-4",children:[s.jsx(Y,{className:"col-span-3",children:"URI"}),s.jsx(K,{className:"col-span-3 h-auto",children:s.jsx(D,{fullWidth:!0,codeClasses:"truncate",code:((c=t.body)==null?void 0:c.uri)||""})}),((u=t.metadata)==null?void 0:u.artifact_store_id)&&s.jsx(g,{label:"Artifact Store",value:s.jsx(s.Fragment,{children:l?s.jsx(E,{emphasis:"subtle",rounded:!1,color:"grey",className:"text-theme-text-primary",children:o==null?void 0:o.name}):s.jsx(C,{className:"h-6 w-12"})})}),s.jsx(g,{label:"Data Type",value:s.jsx(E,{className:"flex w-fit items-center text-theme-text-primary",color:"grey",emphasis:"subtle",rounded:!1,children:s.jsx(ir,{children:s.jsxs(or,{children:[s.jsx(lr,{className:"cursor-auto",children:(h=t.body)==null?void 0:h.data_type.attribute}),s.jsxs(dr,{children:[(f=t.body)==null?void 0:f.data_type.module,".",(m=t.body)==null?void 0:m.data_type.attribute," "]})]})})})})]})})}function en({artifactVersionId:e}){function t(r){return`from zenml.client import Client
3
-
4
- artifact = Client().get_artifact_version('${r}')
5
- loaded_artifact = artifact.load()`}return s.jsx(L,{initialOpen:!0,title:"Code",children:s.jsx(D,{fullWidth:!0,highlightCode:!0,wrap:!0,code:t(e)})})}function tn({artifactVersionId:e}){const{data:t,isError:r,error:n}=ae({versionId:e});return r?s.jsx(U,{err:n}):s.jsxs("div",{className:"space-y-5",children:[t?s.jsx(Xr,{artifactVersionId:t.id}):s.jsx(C,{className:"h-[500px] rounded-md lg:col-span-2"}),t?s.jsx(Jr,{artifactVersionId:t.id}):s.jsx(C,{className:"h-[500px] rounded-md lg:col-span-2"}),t?s.jsx(en,{artifactVersionId:t.id}):s.jsx(C,{className:"h-[500px] rounded-md lg:col-span-2"})]})}function H({title:e,data:t,intent:r="primary",isInitialOpen:n=!1,contentClassName:a,className:i}){const o={},l={},d={},c=/^<class\s+'.*'>$/;for(const[h,f]of Object.entries(t||{}))typeof f=="object"&&!Array.isArray(f)?o[h]=f:Array.isArray(f)?d[h]=f:l[h]=f;if(Object.keys(t||{}).length===0)return null;const u=Object.entries(l);return u.sort((h,f)=>h[0].localeCompare(f[0])),s.jsx(L,{contentClassName:a,className:i,initialOpen:n,intent:r,title:e,children:s.jsxs("div",{className:"flex flex-col gap-3",children:[s.jsx("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 md:grid-cols-3 md:gap-y-4",children:u.map(([h,f])=>s.jsx(g,{label:h,value:s.jsx(s.Fragment,{children:typeof f=="boolean"?s.jsx("div",{className:"py-1",children:JSON.stringify(f)}):c.test(f)?s.jsx(D,{className:"py-1",highlightCode:!0,code:f}):s.jsx("div",{className:"overflow-x-auto py-1",children:f})})},h))}),Object.entries(d).map(([h,f])=>s.jsx(rn,{title:h,value:f},h)),Object.entries(o).map(([h,f])=>s.jsx(H,{intent:"secondary",title:h,data:f},h))]})})}function rn({title:e,value:t}){const r=t.filter(a=>!Array.isArray(a)&&typeof a!="object"||a===null),n=t.filter(a=>Array.isArray(a)||typeof a=="object");return s.jsx(s.Fragment,{children:s.jsxs(L,{intent:"secondary",title:e,children:[r.length>0&&s.jsx("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 truncate md:grid-cols-3 md:gap-y-4",children:Object.entries(r).map(([a,i])=>s.jsx(g,{label:a,value:s.jsx("div",{className:"py-1",children:t1(i)})},a))}),n.length>0&&s.jsx("ul",{className:"space-y-4",children:n.map((a,i)=>s.jsx("li",{children:s.jsx(H,{intent:"secondary",title:i,data:a},i)},i))})]},e)})}function nn(){return s.jsx(L,{initialOpen:!0,title:"Metadata",children:s.jsx(J,{icon:s.jsx($e,{className:"h-[120px] w-[120px] fill-neutral-300"}),children:s.jsxs("div",{className:"text-center",children:[s.jsx("p",{className:"mb-2 text-display-xs font-semibold",children:"No metadata found"}),s.jsx("p",{className:"text-text-lg text-theme-text-secondary",children:"There are no metadata available."})]})})})}function x1({metadata:e}){const t=Object.values(e||{}).filter(r=>r.body.type==="dict");return s.jsx(s.Fragment,{children:t.map(r=>s.jsx(H,{data:r.body.value,title:r.body.key},r.id))})}function Be({metadata:e,title:t}){const r=Object.entries(e||{}),n=/^<class\s+'.*'>$/,a=r.filter(([o,l])=>l.body.type!=="dict");if(a.length===0)return null;a.sort((o,l)=>o[0].localeCompare(l[0]));const i=o=>o<1024?o+" bytes":o<Math.pow(1024,2)?(o/1024).toFixed(2)+" KB":o<Math.pow(1024,3)?(o/Math.pow(1024,2)).toFixed(2)+" MB":(o/Math.pow(1024,3)).toFixed(2)+" GB";return s.jsx("div",{children:s.jsx(L,{initialOpen:!0,title:t||"Uncategorized",children:s.jsx("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 md:grid-cols-3 md:gap-y-4",children:a.map(([o,l])=>s.jsx(g,{label:l.body.key,value:s.jsx(s.Fragment,{children:n.test(l.body.value)?s.jsx(D,{className:"py-1",highlightCode:!0,code:l.body.value}):l.body.type==="StorageSize"?s.jsx("div",{className:"py-1",children:i(l.body.value)}):l.body.type==="Uri"?s.jsx("a",{className:"py-1 underline transition-all duration-200 hover:decoration-transparent",rel:"noopener noreferrer",target:"_blank",href:l.body.value,children:l.body.value}):s.jsx("div",{className:"py-1",children:l.body.value})})},l.id))})})})}function sn({artifactVersionId:e}){var a,i;const{data:t,isError:r,error:n}=ae({versionId:e});return r?s.jsx(U,{err:n}):t!=null&&t.metadata?s.jsxs("div",{className:"flex flex-col gap-5",children:[t?s.jsx(Be,{metadata:(a=t.metadata)==null?void 0:a.run_metadata}):s.jsx(C,{className:"h-9 w-full"}),t?s.jsx(x1,{metadata:(i=t.metadata)==null?void 0:i.run_metadata}):s.jsx(C,{className:"h-9 w-full"})]}):s.jsx(J,{icon:s.jsx($e,{className:"h-[120px] w-[120px] fill-neutral-300"}),children:s.jsx("div",{className:"text-center",children:s.jsx("h1",{className:"mb-2 text-display-xs font-semibold",children:"No Metadata Found for this Artifact"})})})}function C1({versionId:e}){return["artifact_versions",e,"visualize"]}async function an({versionId:e},t){const r=G(B.artifactVersions.visualize(e)),n=await ee(r,{method:"GET",headers:{"Content-Type":"application/json"},signal:t});if(n.status===404){const a=await n.json().then(i=>i.detail).catch(()=>["","Failed to fetch artifact visualization"]);throw new A({message:a[1]||"Failed to fetch artifact visualization",status:n.status,statusText:n.statusText})}if(!n.ok)throw new A({message:`Error while fetching artifact visualization for version ${e}`,status:n.status,statusText:n.statusText});return n.json()}function on(e,t){return Z({queryKey:C1(e),queryFn:({signal:r})=>an(e,r),...t})}function ln({content:e}){const t=p.useRef(null),r=()=>{var n;if(t.current){const a=(n=t.current.contentWindow)==null?void 0:n.document.documentElement.scrollHeight;t.current.height=a?`${a}px`:"100%"}};return p.useEffect(()=>(r(),window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}),[]),s.jsx("div",{children:s.jsx("iframe",{className:"w-full",title:"Secure HTML Content",ref:t,srcDoc:e,onLoad:r})})}function dn({content:e}){return s.jsx("div",{className:"flex items-center justify-center",children:s.jsx("img",{src:kr("data:image/png;base64,"+e),alt:"Visualization for artifact"})})}const cn=p.lazy(()=>r1(()=>import("./CsvVizualization-Ck-nZ43m.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),un=p.lazy(()=>r1(()=>import("./MarkdownVisualization-xp3hhULl.js"),__vite__mapDeps([8,1])));function hn({artifactVersionId:e,artifactName:t}){const[r,n]=p.useState(!1),{isVisualizationConfirmed:a,setVisualizationConfirmed:i}=Fr(),o=Nr(),{data:l,isError:d,error:c,isPending:u}=on({versionId:e},{retry:!1,enabled:!r});return r?s.jsx(J,{icon:s.jsx(Ee,{className:"h-[120px] w-[120px] fill-neutral-300"}),children:s.jsxs("div",{className:"flex flex-col items-center text-center",children:[s.jsx("p",{className:"mb-5 text-text-lg text-theme-text-secondary",children:"Loading the visualization cancelled"}),s.jsx($,{size:"md",onClick:()=>n(!1),children:"Load Visualization"})]})}):d?c.status===501?s.jsxs(J,{icon:s.jsx(Ee,{className:"h-[120px] w-[120px] fill-neutral-300"}),children:[s.jsx("p",{children:"This artifact cannot be visualized because it cannot be loaded from the artifact store. This might happen if your ZenML server does not have the artifact stores dependencies installed or if the server is not authenticated to access it. For more information, see our"}),s.jsx("a",{rel:"noopener noreferrer",target:"_blank",href:"https://docs.zenml.io/stack-components/artifact-stores/custom",children:"docs"})]}):s.jsx(J,{icon:s.jsx(Ee,{className:"h-[120px] w-[120px] fill-neutral-300"}),children:s.jsx("div",{className:"text-center",children:s.jsx("p",{className:"text-text-lg text-theme-text-secondary",children:c.message})})}):u?s.jsxs("div",{className:"flex flex-col items-center gap-7 py-12",children:[s.jsx(Ae,{}),s.jsxs("div",{className:"flex flex-col items-center",children:[s.jsx("p",{className:"mb-5 text-display-xs",children:"Loading Visualization"}),s.jsx($,{onClick:()=>{o.cancelQueries({queryKey:C1({versionId:e})}),n(!0)},intent:"secondary",size:"md",children:"Cancel"})]})]}):a?s.jsxs("div",{children:[s.jsx("div",{className:"flex justify-end",children:s.jsx(g1,{artifactName:t,...l})}),s.jsxs("div",{children:[l.type==="image"&&s.jsx(dn,{content:l.value}),l.type==="html"&&s.jsx(ln,{content:l.value}),l.type==="markdown"&&s.jsx(un,{content:l.value}),l.type==="csv"&&s.jsx(cn,{content:l.value})]})]}):s.jsx(fn,{artifactName:t,setConfirmed:i,...l})}function fn({artifactName:e,setConfirmed:t,...r}){return s.jsxs("div",{className:"flex flex-col items-center justify-center gap-8",children:[s.jsx(Lr,{children:"This preview may contain harmful code. Only proceed if you trust the source. Loading content from untrusted sources can pose risks. If unsure, avoid loading."}),s.jsxs("div",{className:"flex justify-center gap-4",children:[s.jsx($,{size:"md",onClick:()=>t(!0),children:"Load Preview"}),s.jsx(g1,{...r,buttonIntent:"secondary",artifactName:e})]})]})}function g1({type:e,value:t,artifactName:r,buttonIntent:n="primary"}){const a={image:"png",html:"html",markdown:"md",csv:"csv"},i={image:"image/png",html:"text/html",markdown:"text/markdown",csv:"text/csv"};function o(){const d=atob(t),c=new Array(d.length);for(let h=0;h<d.length;h++)c[h]=d.charCodeAt(h);return new Uint8Array(c)}function l(){try{const d=new Blob([e==="image"?o():t],{type:i[e]}),c=window.URL.createObjectURL(d),u=document.createElement("a");u.href=c,u.download=`${r}.`+a[e],u.click()}catch(d){console.error(d)}}return s.jsx($,{intent:n,size:"md",className:"mb-4",onClick:l,children:"Download"})}const mn=5*1024*1024;function pn({artifactVersionId:e}){var d,c,u,h,f,m;const[t,r]=p.useState(!1),{data:n,isPending:a,isError:i,error:o}=ae({versionId:e});if(i)return s.jsx(J,{icon:s.jsx(Ie,{className:"h-[120px] w-[120px] fill-neutral-300"}),children:s.jsx("div",{className:"text-center",children:s.jsx("p",{className:"text-text-lg text-theme-text-secondary",children:o.message})})});if(a)return s.jsx(C,{className:"h-[300px] w-full"});const l=(h=(u=(c=(d=n.metadata)==null?void 0:d.run_metadata)==null?void 0:c.storage_size)==null?void 0:u.body)==null?void 0:h.value;return(f=n.metadata)!=null&&f.visualizations&&n.metadata.visualizations.length<1?s.jsx(J,{icon:s.jsx(Ie,{className:"h-[120px] w-[120px] fill-neutral-300"}),children:s.jsxs("div",{className:"text-center",children:[s.jsx("p",{className:"mb-2 text-display-xs font-semibold",children:"No visualizations found"}),s.jsx("p",{className:"text-text-lg text-theme-text-secondary",children:"There are no visualizations available for this artifact version."})]})}):s.jsx("div",{children:l<mn||t?s.jsx(hn,{artifactName:((m=n.body)==null?void 0:m.artifact.name)||"artifact",artifactVersionId:e}):s.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center",children:[s.jsx("p",{className:"mb-4",children:"Artifact Visualization is larger than 5MB. Confirm to proceed:"}),s.jsx($,{onClick:()=>r(!0),size:"md",children:"Confirm"})]})})}function xn({artifactVersionId:e}){var n,a,i;const{data:t}=ae({versionId:e}),r=(n=t==null?void 0:t.body)==null?void 0:n.version;return s.jsxs("div",{children:[s.jsx("div",{className:"flex h-9 items-center border-b border-theme-border-moderate bg-theme-surface-primary px-4 py-3",children:s.jsxs(n1,{className:"focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none",children:[s.jsx(l1,{className:"h-5 w-5 fill-neutral-500"}),s.jsx("span",{className:"sr-only",children:"Close"})]})}),s.jsxs("div",{className:"border-b border-theme-border-moderate bg-theme-surface-primary p-5",children:[t?s.jsx("p",{className:"mb-0.5 text-text-sm text-theme-text-secondary",children:e}):s.jsx(C,{className:"w-9"}),t?s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx(f1,{artifactType:((a=t.body)==null?void 0:a.type)||"BaseArtifact",className:"h-5 w-5 fill-theme-surface-strong"}),s.jsx("h2",{className:"text-display-xs font-semibold",children:(i=t.body)==null?void 0:i.artifact.name}),s.jsx(re,{color:r?"light-purple":"light-grey",rounded:!1,children:r||"None"})]}):s.jsx(C,{className:"h-6 w-7"})]}),s.jsx("div",{className:"p-5",children:s.jsx(Dr,{children:s.jsxs(De,{defaultValue:"overview",children:[s.jsxs(Fe,{children:[s.jsxs(F,{className:"flex items-center gap-2 text-text-md",value:"overview",children:[s.jsx(ze,{className:"h-5 w-5 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),s.jsx("span",{children:"Overview"})]}),s.jsxs(F,{className:"flex items-center gap-2 truncate text-text-md",value:"metadata",children:[s.jsx(Ar,{className:"h-5 w-5 shrink-0 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),s.jsx("span",{children:"Metadata"})]}),s.jsxs(F,{className:"flex items-center gap-2 text-text-md",value:"visualization",children:[s.jsx(Ie,{className:"h-5 w-5 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),s.jsx("span",{children:"Visualization"})]})]}),s.jsx(z,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"overview",children:s.jsx(tn,{artifactVersionId:e})}),s.jsx(z,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"metadata",children:s.jsx(sn,{artifactVersionId:e})}),s.jsx(z,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"visualization",children:s.jsx(pn,{artifactVersionId:e})})]})})})]})}function Cn({children:e,artifactVersionId:t,onOpenChange:r}){return s.jsxs(s1,{onOpenChange:r,children:[s.jsx(a1,{asChild:!0,children:e}),s.jsx(i1,{className:"w-[1000px] overflow-y-auto",children:s.jsx(xn,{artifactVersionId:t})})]})}function gn({data:e,selected:t}){const{unselectNodesAndEdges:r}=He(a=>({unselectNodesAndEdges:a.unselectNodesAndEdges}));function n(a){a||setTimeout(()=>{r()},100)}return s.jsx(m1,{children:s.jsx(Cn,{onOpenChange:n,artifactVersionId:e.execution_id,children:s.jsxs("button",{"data-selected":!!t,className:"group flex h-[50px] min-w-0 max-w-[300px] items-center justify-center gap-1 rounded-rounded border border-primary-100 bg-primary-25 py-1 pl-1 pr-2 transition-all duration-200 hover:border-primary-400 data-[selected=true]:border-primary-500 data-[selected=true]:bg-primary-500",children:[s.jsx("div",{className:"rounded-rounded bg-primary-50 p-0.5 group-data-[selected=true]:bg-white/20",children:s.jsx(f1,{className:"h-4 w-4 fill-primary-400 group-data-[selected=true]:fill-theme-text-negative",artifactType:e.artifact_type})}),s.jsxs("div",{className:"min-w-0 text-left",children:[s.jsx("p",{className:"truncate text-text-sm font-semibold text-theme-text-brand group-data-[selected=true]:text-theme-text-negative",children:e.name}),s.jsx("p",{className:"truncate text-text-xs text-theme-text-secondary group-data-[selected=true]:text-white/70",children:e.artifact_data_type})]})]})})})}const It=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function bn(e,t,r,n){const a=Math.min(It(e,t)/2,It(t,r)/2,n),{x:i,y:o}=t;if(e.x===i&&i===r.x||e.y===o&&o===r.y)return`L${i} ${o}`;if(e.y===o){const c=e.x<r.x?-1:1,u=e.y<r.y?1:-1;return`L ${i+a*c},${o}Q ${i},${o} ${i},${o+a*u}`}const l=e.x<r.x?1:-1,d=e.y<r.y?-1:1;return`L ${i},${o+a*d}Q ${i},${o} ${i+a*l},${o}`}function Ne(e){return{x:e[0],y:e[1]}}const vn=e=>(t,r,n)=>{const a=e.borderRadius;let i=`M ${t.x}, ${t.y} `;const o=n.reduce((l,d,c)=>{let u="";if(c>0&&c<n.length-1)u=bn(Ne(n[c-1]),Ne(d),Ne(n[c+1]),a);else{const[h,f]=d;u=`${c===0?"M":"L"}${h} ${f}`}return l+=u,l},"");return i+=o,i+=`L ${r.x}, ${r.y} `,i};function wn(e){const t=gr(),r=br({nodes:t,sourcePosition:e.sourcePosition,targetPosition:e.targetPosition,sourceX:e.sourceX,sourceY:e.sourceY,targetX:e.targetX,targetY:e.targetY,options:{drawEdge:vn({borderRadius:10}),generatePath:vr,gridRatio:t.length>20?6:t.length>10?3:2}});return r===null?s.jsx(wr,{...e}):s.jsx(s.Fragment,{children:s.jsx("path",{className:"react-flow__edge-path",d:r.svgPathString,markerEnd:e.markerEnd,markerStart:e.markerStart})})}const yn=e=>p.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.75871 2L17.2413 2C18.0463 1.99999 18.7106 1.99998 19.2518 2.0442C19.8139 2.09012 20.3306 2.18869 20.816 2.43598C21.5686 2.81947 22.1805 3.43139 22.564 4.18404C22.8113 4.66938 22.9099 5.18608 22.9558 5.74818C23 6.28937 23 6.95372 23 7.75868V16.2413C23 17.0463 23 17.7106 22.9558 18.2518C22.9099 18.8139 22.8113 19.3306 22.564 19.816C22.1805 20.5686 21.5686 21.1805 20.816 21.564C20.3306 21.8113 19.8139 21.9099 19.2518 21.9558C18.7106 22 18.0463 22 17.2413 22H6.75877C5.95377 22 5.28939 22 4.74817 21.9558C4.18608 21.9099 3.66937 21.8113 3.18404 21.564C2.43139 21.1805 1.81947 20.5686 1.43597 19.816C1.18868 19.3306 1.09012 18.8139 1.04419 18.2518C0.999977 17.7106 0.999988 17.0463 1 16.2413L1 9.00066C1 9.00088 1 9.00044 1 9.00066C1 9.00044 1 8.99956 1 8.99934L1 7.7587C0.999988 6.95373 0.999977 6.28937 1.04419 5.74818C1.09012 5.18608 1.18868 4.66937 1.43598 4.18404C1.81947 3.43139 2.43139 2.81947 3.18404 2.43597C3.66938 2.18868 4.18608 2.09012 4.74818 2.04419C5.28937 1.99998 5.95374 1.99999 6.75871 2ZM3 10V16.2C3 17.0566 3.00078 17.6389 3.03755 18.089C3.07337 18.5274 3.1383 18.7516 3.21799 18.908C3.40973 19.2843 3.7157 19.5903 4.09202 19.782C4.24842 19.8617 4.47262 19.9266 4.91104 19.9624C5.36113 19.9992 5.94342 20 6.8 20H17.2C18.0566 20 18.6389 19.9992 19.089 19.9625C19.5274 19.9266 19.7516 19.8617 19.908 19.782C20.2843 19.5903 20.5903 19.2843 20.782 18.908C20.8617 18.7516 20.9266 18.5274 20.9625 18.089C20.9992 17.6389 21 17.0566 21 16.2V10H3ZM21 8H3V7.8C3 6.94342 3.00078 6.36113 3.03755 5.91104C3.07337 5.47262 3.1383 5.24842 3.21799 5.09202C3.40974 4.7157 3.7157 4.40973 4.09202 4.21799C4.24842 4.1383 4.47262 4.07337 4.91104 4.03755C5.36113 4.00078 5.94342 4 6.8 4L17.2 4C18.0566 4 18.6389 4.00078 19.089 4.03755C19.5274 4.07337 19.7516 4.1383 19.908 4.21799C20.2843 4.40974 20.5903 4.7157 20.782 5.09202C20.8617 5.24842 20.9266 5.47262 20.9625 5.91104C20.9992 6.36113 21 6.94342 21 7.8V8ZM10.7071 11.7929C11.0976 12.1834 11.0976 12.8166 10.7071 13.2071L8.91422 15L10.7071 16.7929C11.0976 17.1834 11.0976 17.8166 10.7071 18.2071C10.3166 18.5976 9.68342 18.5976 9.2929 18.2071L6.7929 15.7071C6.40237 15.3166 6.40237 14.6834 6.7929 14.2929L9.2929 11.7929C9.68342 11.4024 10.3166 11.4024 10.7071 11.7929ZM13.2929 11.7929C13.6834 11.4024 14.3166 11.4024 14.7071 11.7929L17.2071 14.2929C17.5976 14.6834 17.5976 15.3166 17.2071 15.7071L14.7071 18.2071C14.3166 18.5976 13.6834 18.5976 13.2929 18.2071C12.9024 17.8166 12.9024 17.1834 13.2929 16.7929L15.0858 15L13.2929 13.2071C12.9024 12.8166 12.9024 12.1834 13.2929 11.7929Z"})),b1=e=>p.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.29292 1.29292C2.56075 1.02509 2.95692 0.931566 3.31625 1.05134L6.31626 2.05134C6.7246 2.18746 7.00003 2.5696 7.00003 3.00003V5.58581L10.11 8.69574C10.0377 8.30745 10 7.9077 10 7.50003C10 3.91018 12.9102 1.00003 16.5 1.00003C17.6867 1.00003 18.8019 1.31894 19.7614 1.87638C20.0298 2.03232 20.2105 2.30406 20.2506 2.61187C20.2907 2.91968 20.1856 3.22865 19.9661 3.44815L17.3385 6.07576C17.1288 6.28544 17.0146 6.40072 16.9389 6.48989C16.9359 6.49344 16.9331 6.49682 16.9304 6.50003C16.9331 6.50323 16.9359 6.50661 16.9389 6.51016C17.0146 6.59933 17.1288 6.71461 17.3385 6.92429L17.5758 7.16155C17.7854 7.37123 17.9007 7.48541 17.9899 7.56111C17.9934 7.56412 17.9968 7.56696 18 7.56962C18.0032 7.56696 18.0066 7.56412 18.0102 7.56111C18.0993 7.48541 18.2146 7.37123 18.4243 7.16155L20.8822 4.70364C21.1187 4.46713 21.4578 4.36452 21.7858 4.43023C22.1137 4.49594 22.3871 4.72126 22.5142 5.03063C22.8277 5.7933 23 6.62779 23 7.50003C23 10.5046 20.9614 13.0331 18.1919 13.7777L21.2071 16.7928C22.4261 18.0117 22.4261 19.9881 21.2071 21.207C19.9882 22.426 18.0119 22.426 16.7929 21.207L12.0001 16.4142L7.20713 21.2071C5.98818 22.4261 4.01187 22.4261 2.79292 21.2071C1.57397 19.9882 1.57397 18.0119 2.79292 16.7929L9.08581 10.5L5.58581 7.00003H3.00003C2.5696 7.00003 2.18746 6.7246 2.05134 6.31626L1.05134 3.31625C0.931566 2.95692 1.02509 2.56075 1.29292 2.29292L2.29292 1.29292ZM5.00003 5.00003V3.72079L3.27012 3.14415L3.14415 3.27012L3.72079 5.00003H5.00003ZM11.2062 11.2081L4.20714 18.2071C3.76923 18.645 3.76923 19.355 4.20714 19.7929C4.64504 20.2308 5.35502 20.2308 5.79292 19.7929L12.9499 12.6359C12.9689 12.617 12.9882 12.5975 13.0079 12.5776C13.0487 12.5366 13.0913 12.4937 13.1355 12.4504L13.2326 12.3533C13.3452 12.2406 13.4665 12.1456 13.5937 12.0668C13.6314 12.0423 13.6697 12.0194 13.7087 11.9985C13.8064 11.9462 13.9249 11.8887 14.0691 11.8448C14.2133 11.8009 14.3438 11.7827 14.4541 11.7718C14.4756 11.7696 14.497 11.768 14.5184 11.7668C14.7885 11.7445 15.0574 11.7719 15.3055 11.84C15.4095 11.8686 15.515 11.8935 15.622 11.9146C15.6224 11.9147 15.6228 11.9148 15.6233 11.9149C15.6427 11.9187 15.6621 11.9224 15.6816 11.926C15.8091 11.9493 15.9384 11.9674 16.0696 11.9798C16.211 11.9932 16.3546 12 16.5 12C18.9853 12 21 9.98531 21 7.50003C21 7.47163 20.9998 7.44329 20.9992 7.41502L19.816 8.5983C19.6375 8.77679 19.4637 8.95062 19.3045 9.08579C19.1297 9.23422 18.9078 9.39379 18.6181 9.48793C18.2164 9.61844 17.7837 9.61844 17.382 9.48793C17.0923 9.39379 16.8704 9.23422 16.6955 9.08579C16.5363 8.95062 16.3625 8.7768 16.1841 8.59832L15.9017 8.31596C15.7233 8.13751 15.5494 7.96373 15.4143 7.80452C15.2658 7.62967 15.1063 7.40778 15.0121 7.11806C14.8816 6.71637 14.8816 6.28368 15.0121 5.88199C15.1063 5.59228 15.2658 5.37038 15.4143 5.19554C15.5494 5.03633 15.7232 4.86255 15.9017 4.68412L17.4792 3.10665C17.1643 3.03685 16.8367 3.00003 16.5 3.00003C14.0147 3.00003 12 5.01475 12 7.50003C12 7.80093 12.0294 8.09398 12.0852 8.37677L12.0888 8.39527C12.1337 8.62253 12.1727 8.82052 12.1978 8.97939C12.2214 9.12834 12.2493 9.33506 12.2283 9.54599C12.2173 9.65623 12.1991 9.78675 12.1552 9.93093C12.1114 10.0751 12.0538 10.1937 12.0015 10.2913C11.8581 10.5594 11.6197 10.7962 11.4224 10.9921C11.4025 11.0119 11.3831 11.0312 11.3642 11.0501L11.2081 11.2062C11.2078 11.2065 11.2074 11.2068 11.2071 11.2071C11.2068 11.2074 11.2065 11.2078 11.2062 11.2081ZM13.4143 15L18.2071 19.7928C18.645 20.2307 19.355 20.2307 19.7929 19.7928C20.2308 19.3549 20.2308 18.6449 19.7929 18.207L15.5109 13.9251C15.4187 13.911 15.3272 13.895 15.2363 13.8771C14.9852 13.8275 14.825 13.7961 14.7082 13.7777C14.6855 13.7741 14.667 13.7714 14.652 13.7694C14.6484 13.7726 14.6444 13.7762 14.64 13.7802C14.5816 13.8331 14.5053 13.9089 14.3727 14.0416C14.3699 14.0444 14.367 14.0472 14.3642 14.0501L13.4143 15Z"}));function jn({stepId:e}){var i;const{data:t,isPending:r,isError:n,error:a}=ge({stepId:e});return n?s.jsx(U,{err:a}):r?s.jsx(C,{className:"h-[300px] w-full"}):s.jsx(L,{initialOpen:!0,title:"Code",children:s.jsx(D,{fullWidth:!0,highlightCode:!0,wrap:!0,code:((i=t==null?void 0:t.metadata)==null?void 0:i.source_code)||""})})}const En=e=>p.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.7587 4.31292e-07L8 9.08129e-07C8.55229 9.08129e-07 9 0.447716 9 1C9 1.55229 8.55229 2 8 2H5.8C4.94342 2 4.36113 2.00078 3.91104 2.03755C3.47262 2.07337 3.24842 2.1383 3.09202 2.21799C2.7157 2.40973 2.40973 2.7157 2.21799 3.09202C2.1383 3.24842 2.07337 3.47262 2.03755 3.91104C2.00078 4.36113 2 4.94342 2 5.8V14.2C2 15.0566 2.00078 15.6389 2.03755 16.089C2.07337 16.5274 2.1383 16.7516 2.21799 16.908C2.40973 17.2843 2.7157 17.5903 3.09202 17.782C3.24842 17.8617 3.47262 17.9266 3.91104 17.9624C4.36113 17.9992 4.94342 18 5.8 18H14.2C15.0566 18 15.6389 17.9992 16.089 17.9624C16.5274 17.9266 16.7516 17.8617 16.908 17.782C17.2843 17.5903 17.5903 17.2843 17.782 16.908C17.8617 16.7516 17.9266 16.5274 17.9624 16.089C17.9992 15.6389 18 15.0566 18 14.2V12C18 11.4477 18.4477 11 19 11C19.5523 11 20 11.4477 20 12V14.2413C20 15.0463 20 15.7106 19.9558 16.2518C19.9099 16.8139 19.8113 17.3306 19.564 17.816C19.1805 18.5686 18.5686 19.1805 17.816 19.564C17.3306 19.8113 16.8139 19.9099 16.2518 19.9558C15.7106 20 15.0463 20 14.2413 20H5.75868C4.95372 20 4.28936 20 3.74817 19.9558C3.18608 19.9099 2.66937 19.8113 2.18404 19.564C1.43139 19.1805 0.819468 18.5686 0.435975 17.816C0.188684 17.3306 0.0901197 16.8139 0.0441945 16.2518C-2.28137e-05 15.7106 -1.23241e-05 15.0463 4.31292e-07 14.2413V5.7587C-1.23241e-05 4.95373 -2.28137e-05 4.28937 0.0441945 3.74817C0.0901197 3.18608 0.188684 2.66937 0.435975 2.18404C0.819468 1.43139 1.43139 0.819468 2.18404 0.435975C2.66937 0.188684 3.18608 0.0901197 3.74817 0.0441945C4.28937 -2.28137e-05 4.95373 -1.23241e-05 5.7587 4.31292e-07ZM12 1.00001C12 0.447726 12.4477 1.04449e-05 13 1.04449e-05H19C19.5523 1.04449e-05 20 0.447725 20 1.00001L20 7.00001C20 7.55229 19.5523 8.00001 19 8.00001C18.4477 8.00001 18 7.5523 18 7.00001L18 3.41422L10.7071 10.7071C10.3166 11.0976 9.68342 11.0976 9.29289 10.7071C8.90237 10.3166 8.90237 9.68342 9.29289 9.29289L16.5858 2.00001H13C12.4477 2.00001 12 1.5523 12 1.00001Z"}));function v1({data:e}){const[t,r]=p.useState(!0);return s.jsxs(me,{open:t,onOpenChange:r,children:[s.jsx(ne,{intent:"primary",className:"flex items-center gap-[10px]",children:s.jsxs(pe,{className:"flex w-full items-center gap-[10px]",children:[s.jsx(Ce,{className:` ${t?"":"-rotate-90"} h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`}),"Docker Image"]})}),s.jsxs(xe,{className:"border-t border-theme-border-moderate bg-theme-surface-primary px-5 py-3",children:[s.jsxs("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 md:grid-cols-3 md:gap-y-4",children:[s.jsx(g,{label:"Docker Image",value:s.jsxs("div",{className:"flex justify-between",children:[s.jsxs(E,{className:"inline-flex items-center gap-0.5",rounded:!1,emphasis:"subtle",children:[s.jsx(Or,{className:"mr-1 h-4 w-4 fill-theme-text-brand"}),cr(e.image)]}),s.jsxs("div",{className:"align-center mr-1 flex",children:[s.jsx("a",{className:"cursor-pointer",rel:"noopener noreferrer",target:"_blank",href:`https://${e.image}`,children:s.jsx(En,{className:"mr-1 mt-0.5 h-5 w-5 fill-theme-text-tertiary"})}),s.jsx(X,{copyText:e.image,isVisible:!0,copyTitle:"Copy url"})]})]})}),s.jsx(g,{label:"Contains Code",value:s.jsx(E,{color:e.contains_code?"green":"grey",className:"inline-flex items-center gap-0.5",rounded:!1,emphasis:"subtle",children:e.contains_code?"Available":"None"})})]}),e.dockerfile&&s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"mb-2 mt-5 text-theme-text-secondary",children:"Dockerfile"}),s.jsx(D,{fullWidth:!0,wrap:!0,code:e.dockerfile})]}),e.requirements&&s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"mb-2 mt-5 text-theme-text-secondary",children:"Requirements"}),s.jsx(D,{fullWidth:!0,wrap:!0,code:e.requirements})]})]})]})}function Nn({buildId:e}){return["pipeline-builds",e]}async function _n({buildId:e},t){const r=G(B.runs.detail(e)),n=await fetch(r,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json",...t&&{Authorization:`Bearer ${t}`}}});if(!n.ok)throw new A({message:`Error while fetching pipeline build ${e}`,status:n.status,statusText:n.statusText});return n.json()}function w1(e,t){return Z({queryKey:Nn(e),queryFn:()=>_n(e),...t})}function kn({stepId:e}){var f,m,x,b,v,j,S,O,T,I,P,M;const{data:t,isPending:r,isError:n,error:a}=ge({stepId:e}),i=Object.values(((m=(f=t==null?void 0:t.metadata)==null?void 0:f.config)==null?void 0:m.extra)||{}),{runId:o}=W(),{data:l}=q({runId:o},{throwOnError:!0,enabled:!!o}),{data:d}=w1({buildId:(b=(x=l==null?void 0:l.body)==null?void 0:x.build)==null?void 0:b.id},{enabled:!!((j=(v=l==null?void 0:l.body)==null?void 0:v.build)!=null&&j.id)}),u=(()=>{var _;const N=(_=d==null?void 0:d.metadata)==null?void 0:_.images;if(!N)return null;if(Object.keys(N).length===1&&Object.keys(N)[0]!=="orchestrator")return Object.keys(N)[0];for(const V in N)if(V!=="orchestrator"&&V.split(".")[1]!=="orchestrator")return V;return"orchestrator"})(),h=u&&((O=(S=d==null?void 0:d.metadata)==null?void 0:S.images)==null?void 0:O[u]);return n?s.jsx(U,{err:a}):r?s.jsxs("div",{className:"space-y-5",children:[s.jsx(C,{className:"h-[200]"}),s.jsx(C,{className:"h-[200px]"}),s.jsx(C,{className:"h-[200px]"})]}):s.jsxs("div",{className:"space-y-5",children:[((T=t.metadata)==null?void 0:T.run_metadata)&&s.jsx(Be,{title:"Metadata",metadata:(I=t.metadata)==null?void 0:I.run_metadata}),s.jsx(Pt,{data:(M=(P=t.metadata)==null?void 0:P.config)==null?void 0:M.parameters,title:"Parameters"}),h?s.jsx(v1,{data:h}):null,s.jsx(Ln,{id:t.id}),i.length>0?s.jsx(Pt,{data:i,title:"Extra"}):null]})}function Pt({data:e,title:t}){return s.jsx(L,{initialOpen:!0,title:t,children:s.jsx("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 md:grid-cols-3 md:gap-y-4",children:Object.entries(e).map(([r,n])=>typeof n!="object"&&s.jsx(g,{label:r,value:s.jsx("div",{children:t1(n)})},r))})})}function Ln({id:e}){function t(r){return`from zenml.client import Client
6
- artifact = Client().get_pipeline_run('${r}')
7
- config = run.config()`}return s.jsxs(L,{initialOpen:!0,title:"Code",children:[s.jsx("h2",{className:"mb-2 text-text-md text-theme-text-secondary",children:"Get config programmatically"}),s.jsx(D,{fullWidth:!0,highlightCode:!0,wrap:!0,code:t(e)})]})}function Sn(e,t){if(!e||!t)return"";const r=new Date(e),n=new Date(t);if(isNaN(r.getTime())||isNaN(n.getTime()))return"";const a=Math.abs(n.getTime()-r.getTime()),i=Math.floor(a/(1e3*60)),o=Math.floor(a%(1e3*60)/1e3);return`${i}min ${o}s`}const On=e=>p.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0083 2C6.47396 2 2 6.58331 2 12.2535C2 16.786 4.86662 20.6226 8.84338 21.9805C9.34058 22.0826 9.5227 21.7599 9.5227 21.4885C9.5227 21.2508 9.50631 20.436 9.50631 19.587C6.72225 20.1983 6.14249 18.3647 6.14249 18.3647C5.69508 17.1764 5.03215 16.871 5.03215 16.871C4.12092 16.2429 5.09852 16.2429 5.09852 16.2429C6.1093 16.3108 6.63969 17.2954 6.63969 17.2954C7.53432 18.857 8.97592 18.4158 9.55588 18.1441C9.63865 17.482 9.90394 17.0237 10.1856 16.7691C7.96514 16.5314 5.62891 15.6487 5.62891 11.7102C5.62891 10.5898 6.02634 9.67309 6.65608 8.96018C6.55672 8.7056 6.20866 7.65289 6.75564 6.24394C6.75564 6.24394 7.60069 5.97228 9.5061 7.29644C10.3219 7.07199 11.1632 6.95782 12.0083 6.95685C12.8533 6.95685 13.7148 7.07581 14.5102 7.29644C16.4159 5.97228 17.2609 6.24394 17.2609 6.24394C17.8079 7.65289 17.4596 8.7056 17.3603 8.96018C18.0066 9.67309 18.3876 10.5898 18.3876 11.7102C18.3876 15.6487 16.0514 16.5143 13.8143 16.7691C14.179 17.0916 14.4936 17.7026 14.4936 18.6703C14.4936 20.0453 14.4773 21.1489 14.4773 21.4883C14.4773 21.7599 14.6596 22.0826 15.1566 21.9808C19.1333 20.6224 22 16.786 22 12.2535C22.0163 6.58331 17.526 2 12.0083 2Z",fill:"#0D061D"}));function Tn({repositoryId:e}){return["code_repositories",e]}async function In({repositoryId:e}){const t=G(B.code_repositories.detail(e)),r=await fetch(t,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"}});if(r.status===404&&fe(),!r.ok)throw new A({message:`Error while fetching code repository ${e}`,status:r.status,statusText:r.statusText});return r.json()}function Pn(e,t){return Z({queryKey:Tn(e),queryFn:()=>In(e),...t})}function Mn({stepId:e,runId:t}){var v,j,S,O,T,I,P,M,N,_,V,ie,We,Qe,Xe,Je,et,tt,rt,nt,st,at,it,ot,lt,dt,ct,ut,ht,ft,mt,pt,xt,Ct,gt,bt,vt,wt,yt;const{data:r,isError:n,isPending:a,error:i}=ge({stepId:e}),{data:o}=q({runId:t}),l=(S=(j=(v=o==null?void 0:o.body)==null?void 0:v.code_reference)==null?void 0:j.body)==null?void 0:S.code_repository,{data:d}=Pn({repositoryId:l==null?void 0:l.id},{throwOnError:!0,enabled:!!(l!=null&&l.id)}),c=(O=d==null?void 0:d.metadata)==null?void 0:O.config;if(n)return s.jsx(U,{err:i});if(a)return s.jsx(C,{className:"h-[300px] w-full"});const u=(I=(T=r.metadata)==null?void 0:T.config)==null?void 0:I.enable_cache,h=(P=o==null?void 0:o.metadata)==null?void 0:P.orchestrator_url,f=(M=o==null?void 0:o.metadata)==null?void 0:M.orchestrator_run_id,m=(_=(N=r.metadata)==null?void 0:N.config)==null?void 0:_.enable_artifact_metadata,x=(ie=(V=r.metadata)==null?void 0:V.config)==null?void 0:ie.enable_artifact_visualization,b=()=>{var jt,Et,Nt,_t;let oe=l==null?void 0:l.name,be="";return((Et=(jt=l==null?void 0:l.body)==null?void 0:jt.source)==null?void 0:Et.attribute)==="GitHubCodeRepository"?(oe=`${c==null?void 0:c.owner}/${c==null?void 0:c.repository}`,be=`https://www.github.com/${oe}`):((_t=(Nt=l==null?void 0:l.body)==null?void 0:Nt.source)==null?void 0:_t.attribute)==="GitLabCodeRepository"&&(oe=`${c==null?void 0:c.group}/${c==null?void 0:c.project}`,be=`https://www.gitlab.com/${oe}`),s.jsxs("a",{target:"_blank",rel:"noopener noreferrer",className:`flex items-center ${be?"":"pointer-events-none"}`,onClick:rr=>rr.stopPropagation(),href:be,children:[s.jsx(On,{className:"mr-1 h-5 w-5 fill-theme-text-brand"}),oe]})};return s.jsx(L,{initialOpen:!0,title:"Details",children:s.jsxs("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 md:grid-cols-3 md:gap-y-4",children:[s.jsx(g,{label:"Orchestrator url",value:h?s.jsxs("div",{className:"group/copybutton flex items-center gap-0.5",children:[h,s.jsx(X,{copyText:h})]}):"Not available"}),s.jsx(g,{label:"Orchestrator run Id",value:f?s.jsxs("div",{className:"group/copybutton flex items-center gap-0.5",children:[f,s.jsx(X,{copyText:f})]}):"Not available"}),s.jsx(g,{label:"Id",value:s.jsxs("div",{className:"group/copybutton flex items-center gap-0.5",children:[r.id,s.jsx(X,{copyText:r.id})]})}),s.jsx(g,{label:"Status",value:s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsxs(E,{color:we((We=r.body)==null?void 0:We.status),rounded:!0,emphasis:"subtle",className:"flex w-fit items-center gap-1 capitalize",children:[s.jsx(se,{className:"fill-current",status:(Qe=r.body)==null?void 0:Qe.status}),(Xe=r.body)==null?void 0:Xe.status]}),typeof u=="boolean"&&s.jsx(re,{size:"sm",color:u?"green":"grey",children:u?"Enable cache":"Disabled cache"})]})}),o?s.jsxs(s.Fragment,{children:[s.jsx(g,{label:"Pipeline",value:s.jsx(ue,{to:de.pipelines.namespace(encodeURIComponent((et=(Je=o.body)==null?void 0:Je.pipeline)==null?void 0:et.name)),children:s.jsxs(E,{color:"purple",className:"inline-flex items-center gap-0.5",rounded:!1,emphasis:"subtle",children:[s.jsx(Re,{className:"mr-1 h-4 w-4 fill-theme-text-brand"}),(rt=(tt=o.body)==null?void 0:tt.pipeline)==null?void 0:rt.name,s.jsx("div",{className:"rounded-sm bg-primary-50 px-1 py-0.25",children:(at=(st=(nt=o.body)==null?void 0:nt.pipeline)==null?void 0:st.body)==null?void 0:at.version})]})})}),((it=o.body)==null?void 0:it.code_reference)&&c&&s.jsx(g,{label:"Repository/Commit",value:s.jsxs("div",{className:"group/copybutton mr-1",children:[s.jsxs(E,{color:"grey",className:"inline-flex items-center font-semibold text-neutral-900",rounded:!1,emphasis:"subtle",children:[b(),s.jsx("div",{className:"ml-1 rounded-sm bg-neutral-200 px-1 py-0.25",children:ur((dt=(lt=(ot=o==null?void 0:o.body)==null?void 0:ot.code_reference)==null?void 0:lt.body)==null?void 0:dt.commit,10)})]}),s.jsx(X,{copyText:(ht=(ut=(ct=o==null?void 0:o.body)==null?void 0:ct.code_reference)==null?void 0:ut.body)==null?void 0:ht.commit})]})})]}):s.jsx(C,{className:"h-6 w-full"}),s.jsx(g,{label:"Cache key",value:s.jsxs("div",{className:"group/copybutton flex items-center gap-0.5",children:[(ft=r.metadata)==null?void 0:ft.cache_key,s.jsx(X,{copyText:(mt=r.metadata)==null?void 0:mt.cache_key})]})}),s.jsx(g,{label:"Author",value:s.jsx("div",{className:"inline-flex items-center gap-1",children:s.jsx(Ge,{username:(xt=(pt=r.body)==null?void 0:pt.user)==null?void 0:xt.name})})}),s.jsx(g,{label:"Start Time",value:(Ct=r.metadata)!=null&&Ct.start_time?s.jsx(ce,{dateString:(gt=r.metadata)==null?void 0:gt.start_time}):"Not available"}),s.jsx(g,{label:"End Time",value:(bt=r.metadata)!=null&&bt.end_time?s.jsx(ce,{dateString:(vt=r.metadata)==null?void 0:vt.end_time}):"Not available"}),s.jsx(g,{label:"Duration",value:Sn(((wt=r.metadata)==null?void 0:wt.start_time)||"",((yt=r.metadata)==null?void 0:yt.end_time)||"")}),s.jsx(g,{label:"Artifact metadata",value:s.jsx(re,{size:"sm",color:m?"green":"grey",children:m?"Enable":"Disabled"})}),s.jsx(g,{label:"Artifact visualization",value:s.jsx(re,{size:"sm",color:x?"green":"grey",children:x?"Enable":"Disabled"})})]})})}function Vn({stepId:e}){return["logs",e]}async function $n({stepId:e}){const t=G(B.steps.logs(e)),r=await ee(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(!r.ok){const n=await r.json().catch(()=>({}));throw new A({message:n.detail[1].includes("File")&&n.detail[1]||`The logs for step ${e} cannot be fetched or this pipeline run ran locally and logs were not tracked`,status:r.status,statusText:r.statusText})}return r.json()}function Rn(e,t){return Z({queryKey:Vn(e),queryFn:()=>$n(e),...t})}const An=()=>s.jsx("section",{className:"flex h-[calc(100vh_-_270px)] items-center justify-center",children:s.jsxs("div",{className:"flex flex-col items-center justify-center",children:[s.jsxs("div",{className:"relative mb-2 flex items-center justify-center",children:[s.jsx(Ae,{className:"h-[120px] w-[120px]"}),s.jsx(Fn,{})]}),s.jsx("h2",{className:"my-3 text-center text-display-xs font-semibold",children:"Loading the Logs"}),s.jsxs("p",{className:"text-center text-text-lg text-theme-text-secondary",children:["It can take up to a few minutes. ",s.jsx("br",{})," Please wait while we fetch logs from the artifact store."]})]})});function Dn({stepId:e,stepDetail:t}){var l,d;const r=(d=(l=t==null?void 0:t.metadata)==null?void 0:l.config)==null?void 0:d.enable_step_logs,{data:n,isPending:a,isError:i,error:o}=Rn({stepId:e});return i?s.jsx(U,{err:o}):a?s.jsx(An,{}):s.jsx(L,{initialOpen:!0,title:"Logs",children:typeof r=="boolean"&&r===!1?s.jsx("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 md:grid-cols-3 md:gap-y-4",children:s.jsx(g,{label:"Enable logs",value:"Disabled"})}):s.jsx(D,{codeClasses:"whitespace-pre-line",fullWidth:!0,wrap:!0,code:n||""})})}function Fn(){return s.jsx("div",{className:"absolute rounded-rounded bg-primary-25 p-3",children:s.jsx(h1,{className:"h-7 w-7 fill-primary-400"})})}function zn({component:e,run:t}){var a,i,o,l,d,c;const r=`${(a=e.body)==null?void 0:a.type}.${(i=e.body)==null?void 0:i.flavor}`,n=((l=(o=t.metadata)==null?void 0:o.config.settings)==null?void 0:l[r])??"";return!n||Object.keys(n).length===0?s.jsxs(ne,{intent:"secondary",className:"grid w-full grid-cols-2 gap-2 rounded-md border border-theme-border-moderate pl-[60px]",children:[s.jsx("span",{children:kt((d=e.body)==null?void 0:d.type)}),s.jsx("div",{children:e.name})]}):s.jsx(H,{intent:"secondary",contentClassName:"pl-[60px]",className:"w-full",isInitialOpen:!1,data:n,title:s.jsxs("div",{className:"grid w-full grid-cols-2 gap-2 text-left",children:[s.jsx("span",{children:kt((c=e.body)==null?void 0:c.type)}),s.jsx("div",{children:e.name})]})})}function y1(){var l,d,c,u;const[e,t]=p.useState(!0),{runId:r}=W(),{data:n,isError:a,isPending:i}=q({runId:r},{throwOnError:!0}),o=(d=(l=n==null?void 0:n.body)==null?void 0:l.stack)==null?void 0:d.id;return i?s.jsx(C,{className:"h-[250px] w-full"}):a?null:s.jsxs(me,{open:e,onOpenChange:t,children:[s.jsxs(ne,{className:"flex justify-between",children:[s.jsx(pe,{className:" flex w-full items-center justify-between",children:s.jsxs("div",{className:"flex items-center gap-[10px]",children:[s.jsx(Ce,{className:` ${e?"":"-rotate-90"} h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`}),"Stack"]})}),s.jsx(ue,{to:de.stacks.overview,children:s.jsxs(E,{rounded:!1,className:"inline-flex items-center gap-0.5",color:"turquoise",emphasis:"subtle",children:[s.jsx(hr,{className:"h-4 w-4 fill-current"}),s.jsx("span",{children:(u=(c=n==null?void 0:n.body)==null?void 0:c.stack)==null?void 0:u.name})]})})]}),s.jsx(xe,{className:"border-t border-theme-border-moderate bg-theme-surface-primary px-5 py-3",children:s.jsx(Hn,{stackId:o,run:n})})]})}function Hn({stackId:e,run:t}){var i;const{data:r,isError:n,isPending:a}=Ir({stackId:e});return n?null:a?s.jsx("div",{className:"space-y-5",children:Array.from({length:3}).map((o,l)=>s.jsx(C,{className:"h-8 w-full"},l))}):s.jsx("ul",{className:"space-y-5",children:Object.values(((i=r==null?void 0:r.metadata)==null?void 0:i.components)||{}).map(o=>s.jsx("li",{className:"flex w-full items-center justify-between",children:s.jsx(zn,{component:o[0],run:t})},o[0].id))})}function Gn(e){if(!e)return"light-grey";switch(e){case"completed":return"green";default:return"light-grey"}}function Bn({stepId:e}){var i,o,l;const{runId:t}=W(),{data:r}=ge({stepId:e}),n=(i=r==null?void 0:r.body)==null?void 0:i.status,a=(l=(o=r==null?void 0:r.metadata)==null?void 0:o.config)==null?void 0:l.enable_cache;return s.jsxs("div",{children:[s.jsx("div",{className:"flex h-9 items-center border-b border-theme-border-moderate bg-theme-surface-primary px-4 py-3",children:s.jsxs(n1,{className:"focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none",children:[s.jsx(l1,{className:"h-5 w-5 fill-neutral-500"}),s.jsx("span",{className:"sr-only",children:"Close"})]})}),s.jsx("div",{className:"flex justify-between border-b border-theme-border-moderate bg-theme-surface-primary p-5",children:s.jsx("div",{children:r?s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("div",{className:`rounded-sm p-0.5 ${d1(n)}`,children:s.jsx(se,{status:n,className:"h-4 w-4"})}),s.jsx("h2",{className:"text-display-xs font-semibold",children:r.name}),s.jsx(re,{size:"sm",color:Gn(n),children:n||"None"}),typeof a=="boolean"&&s.jsx(re,{size:"sm",color:a?"green":"grey",children:a?"Enable cache":"Disabled cache"})]}):s.jsx(C,{className:"h-6 w-7"})})}),s.jsx("div",{className:"p-5",children:s.jsxs(De,{defaultValue:"overview",children:[s.jsxs(Fe,{children:[s.jsxs(F,{className:"flex items-center gap-2 truncate text-text-md",value:"overview",children:[s.jsx(ze,{className:"h-5 w-5 shrink-0 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),s.jsx("span",{children:"Overview"})]}),s.jsxs(F,{className:"flex items-center gap-2 truncate text-text-md",value:"code",children:[s.jsx(yn,{className:"h-5 w-5 shrink-0 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),s.jsx("span",{children:"Code"})]}),s.jsxs(F,{className:"flex items-center gap-2 truncate text-text-md",value:"logs",children:[s.jsx(h1,{className:"h-5 w-5 shrink-0 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),s.jsx("span",{children:"Logs"})]}),s.jsxs(F,{className:"flex items-center gap-2 truncate text-text-md",value:"config",children:[s.jsx(b1,{className:"h-5 w-5 shrink-0 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),s.jsx("span",{children:"Configuration"})]})]}),s.jsxs(z,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"overview",children:[s.jsx(Mn,{runId:t,stepId:e}),s.jsx("div",{className:"mt-5",children:s.jsx(y1,{})})]}),s.jsx(z,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"code",children:s.jsx(jn,{stepId:e})}),s.jsx(z,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"logs",children:s.jsx(Dn,{stepId:e,stepDetail:r})}),s.jsx(z,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"config",children:s.jsx(kn,{stepId:e})})]})})]})}function Zn({children:e,stepId:t,onOpenChange:r}){return s.jsxs(s1,{onOpenChange:r,children:[s.jsx(a1,{asChild:!0,children:e}),s.jsx(i1,{className:"w-[1000px] overflow-y-auto",children:s.jsx(Bn,{stepId:t})})]})}const qn=e=>({unselectAll:e.unselectNodesAndEdges});function Yn({data:e,selected:t}){const{unselectAll:r}=He(qn);function n(a){a||setTimeout(()=>{r()},100)}return s.jsx(m1,{children:s.jsx(Zn,{onOpenChange:n,stepId:e.execution_id,children:s.jsx("button",{"data-selected":!!t,className:"h-[44px] max-w-[300px] overflow-hidden rounded-md border border-theme-border-moderate bg-theme-surface-primary transition-all duration-200 hover:border-neutral-400 hover:shadow-md data-[selected=true]:border-theme-border-bold data-[selected=true]:shadow-md",children:s.jsxs("div",{className:"flex items-center gap-1 py-1 pl-1 pr-2",children:[s.jsx("div",{className:`rounded-sm p-0.5 ${d1(e.status)}`,children:s.jsx(se,{status:e.status,className:"h-4 w-4"})}),s.jsx("p",{className:"truncate font-semibold",children:e.name})]})})})})}var Kn="\0",Q="\0",Mt="";let Un=class{constructor(t){w(this,"_isDirected",!0);w(this,"_isMultigraph",!1);w(this,"_isCompound",!1);w(this,"_label");w(this,"_defaultNodeLabelFn",()=>{});w(this,"_defaultEdgeLabelFn",()=>{});w(this,"_nodes",{});w(this,"_in",{});w(this,"_preds",{});w(this,"_out",{});w(this,"_sucs",{});w(this,"_edgeObjs",{});w(this,"_edgeLabels",{});w(this,"_nodeCount",0);w(this,"_edgeCount",0);w(this,"_parent");w(this,"_children");t&&(this._isDirected=t.hasOwnProperty("directed")?t.directed:!0,this._isMultigraph=t.hasOwnProperty("multigraph")?t.multigraph:!1,this._isCompound=t.hasOwnProperty("compound")?t.compound:!1),this._isCompound&&(this._parent={},this._children={},this._children[Q]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return this._defaultNodeLabelFn=t,typeof t!="function"&&(this._defaultNodeLabelFn=()=>t),this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){var t=this;return this.nodes().filter(r=>Object.keys(t._in[r]).length===0)}sinks(){var t=this;return this.nodes().filter(r=>Object.keys(t._out[r]).length===0)}setNodes(t,r){var n=arguments,a=this;return t.forEach(function(i){n.length>1?a.setNode(i,r):a.setNode(i)}),this}setNode(t,r){return this._nodes.hasOwnProperty(t)?(arguments.length>1&&(this._nodes[t]=r),this):(this._nodes[t]=arguments.length>1?r:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=Q,this._children[t]={},this._children[Q][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return this._nodes.hasOwnProperty(t)}removeNode(t){var r=this;if(this._nodes.hasOwnProperty(t)){var n=a=>r.removeEdge(r._edgeObjs[a]);delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],this.children(t).forEach(function(a){r.setParent(a)}),delete this._children[t]),Object.keys(this._in[t]).forEach(n),delete this._in[t],delete this._preds[t],Object.keys(this._out[t]).forEach(n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r===void 0)r=Q;else{r+="";for(var n=r;n!==void 0;n=this.parent(n))if(n===t)throw new Error("Setting "+r+" as parent of "+t+" would create a cycle");this.setNode(r)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=r,this._children[r][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var r=this._parent[t];if(r!==Q)return r}}children(t=Q){if(this._isCompound){var r=this._children[t];if(r)return Object.keys(r)}else{if(t===Q)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var r=this._preds[t];if(r)return Object.keys(r)}successors(t){var r=this._sucs[t];if(r)return Object.keys(r)}neighbors(t){var r=this.predecessors(t);if(r){const a=new Set(r);for(var n of this.successors(t))a.add(n);return Array.from(a.values())}}isLeaf(t){var r;return this.isDirected()?r=this.successors(t):r=this.neighbors(t),r.length===0}filterNodes(t){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var n=this;Object.entries(this._nodes).forEach(function([o,l]){t(o)&&r.setNode(o,l)}),Object.values(this._edgeObjs).forEach(function(o){r.hasNode(o.v)&&r.hasNode(o.w)&&r.setEdge(o,n.edge(o))});var a={};function i(o){var l=n.parent(o);return l===void 0||r.hasNode(l)?(a[o]=l,l):l in a?a[l]:i(l)}return this._isCompound&&r.nodes().forEach(o=>r.setParent(o,i(o))),r}setDefaultEdgeLabel(t){return this._defaultEdgeLabelFn=t,typeof t!="function"&&(this._defaultEdgeLabelFn=()=>t),this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(t,r){var n=this,a=arguments;return t.reduce(function(i,o){return a.length>1?n.setEdge(i,o,r):n.setEdge(i,o),o}),this}setEdge(){var t,r,n,a,i=!1,o=arguments[0];typeof o=="object"&&o!==null&&"v"in o?(t=o.v,r=o.w,n=o.name,arguments.length===2&&(a=arguments[1],i=!0)):(t=o,r=arguments[1],n=arguments[3],arguments.length>2&&(a=arguments[2],i=!0)),t=""+t,r=""+r,n!==void 0&&(n=""+n);var l=le(this._isDirected,t,r,n);if(this._edgeLabels.hasOwnProperty(l))return i&&(this._edgeLabels[l]=a),this;if(n!==void 0&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(r),this._edgeLabels[l]=i?a:this._defaultEdgeLabelFn(t,r,n);var d=Wn(this._isDirected,t,r,n);return t=d.v,r=d.w,Object.freeze(d),this._edgeObjs[l]=d,Vt(this._preds[r],t),Vt(this._sucs[t],r),this._in[r][l]=d,this._out[t][l]=d,this._edgeCount++,this}edge(t,r,n){var a=arguments.length===1?_e(this._isDirected,arguments[0]):le(this._isDirected,t,r,n);return this._edgeLabels[a]}edgeAsObj(){const t=this.edge(...arguments);return typeof t!="object"?{label:t}:t}hasEdge(t,r,n){var a=arguments.length===1?_e(this._isDirected,arguments[0]):le(this._isDirected,t,r,n);return this._edgeLabels.hasOwnProperty(a)}removeEdge(t,r,n){var a=arguments.length===1?_e(this._isDirected,arguments[0]):le(this._isDirected,t,r,n),i=this._edgeObjs[a];return i&&(t=i.v,r=i.w,delete this._edgeLabels[a],delete this._edgeObjs[a],$t(this._preds[r],t),$t(this._sucs[t],r),delete this._in[r][a],delete this._out[t][a],this._edgeCount--),this}inEdges(t,r){var n=this._in[t];if(n){var a=Object.values(n);return r?a.filter(i=>i.v===r):a}}outEdges(t,r){var n=this._out[t];if(n){var a=Object.values(n);return r?a.filter(i=>i.w===r):a}}nodeEdges(t,r){var n=this.inEdges(t,r);if(n)return n.concat(this.outEdges(t,r))}};function Vt(e,t){e[t]?e[t]++:e[t]=1}function $t(e,t){--e[t]||delete e[t]}function le(e,t,r,n){var a=""+t,i=""+r;if(!e&&a>i){var o=a;a=i,i=o}return a+Mt+i+Mt+(n===void 0?Kn:n)}function Wn(e,t,r,n){var a=""+t,i=""+r;if(!e&&a>i){var o=a;a=i,i=o}var l={v:a,w:i};return n&&(l.name=n),l}function _e(e,t){return le(e,t.v,t.w,t.name)}var Ze=Un,Qn="2.2.2",Xn={Graph:Ze,version:Qn},Jn=Ze,es={write:ts,read:ss};function ts(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:rs(e),edges:ns(e)};return e.graph()!==void 0&&(t.value=structuredClone(e.graph())),t}function rs(e){return e.nodes().map(function(t){var r=e.node(t),n=e.parent(t),a={v:t};return r!==void 0&&(a.value=r),n!==void 0&&(a.parent=n),a})}function ns(e){return e.edges().map(function(t){var r=e.edge(t),n={v:t.v,w:t.w};return t.name!==void 0&&(n.name=t.name),r!==void 0&&(n.value=r),n})}function ss(e){var t=new Jn(e.options).setGraph(e.value);return e.nodes.forEach(function(r){t.setNode(r.v,r.value),r.parent&&t.setParent(r.v,r.parent)}),e.edges.forEach(function(r){t.setEdge({v:r.v,w:r.w,name:r.name},r.value)}),t}var as=is;function is(e){var t={},r=[],n;function a(i){t.hasOwnProperty(i)||(t[i]=!0,n.push(i),e.successors(i).forEach(a),e.predecessors(i).forEach(a))}return e.nodes().forEach(function(i){n=[],a(i),n.length&&r.push(n)}),r}let os=class{constructor(){w(this,"_arr",[]);w(this,"_keyIndices",{})}size(){return this._arr.length}keys(){return this._arr.map(function(t){return t.key})}has(t){return this._keyIndices.hasOwnProperty(t)}priority(t){var r=this._keyIndices[t];if(r!==void 0)return this._arr[r].priority}min(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key}add(t,r){var n=this._keyIndices;if(t=String(t),!n.hasOwnProperty(t)){var a=this._arr,i=a.length;return n[t]=i,a.push({key:t,priority:r}),this._decrease(i),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key}decrease(t,r){var n=this._keyIndices[t];if(r>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+r);this._arr[n].priority=r,this._decrease(n)}_heapify(t){var r=this._arr,n=2*t,a=n+1,i=t;n<r.length&&(i=r[n].priority<r[i].priority?n:i,a<r.length&&(i=r[a].priority<r[i].priority?a:i),i!==t&&(this._swap(t,i),this._heapify(i)))}_decrease(t){for(var r=this._arr,n=r[t].priority,a;t!==0&&(a=t>>1,!(r[a].priority<n));)this._swap(t,a),t=a}_swap(t,r){var n=this._arr,a=this._keyIndices,i=n[t],o=n[r];n[t]=o,n[r]=i,a[o.key]=t,a[i.key]=r}};var j1=os,ls=j1,E1=cs,ds=()=>1;function cs(e,t,r,n){return us(e,String(t),r||ds,n||function(a){return e.outEdges(a)})}function us(e,t,r,n){var a={},i=new ls,o,l,d=function(c){var u=c.v!==o?c.v:c.w,h=a[u],f=r(c),m=l.distance+f;if(f<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+c+" Weight: "+f);m<h.distance&&(h.distance=m,h.predecessor=o,i.decrease(u,m))};for(e.nodes().forEach(function(c){var u=c===t?0:Number.POSITIVE_INFINITY;a[c]={distance:u},i.add(c,u)});i.size()>0&&(o=i.removeMin(),l=a[o],l.distance!==Number.POSITIVE_INFINITY);)n(o).forEach(d);return a}var hs=E1,fs=ms;function ms(e,t,r){return e.nodes().reduce(function(n,a){return n[a]=hs(e,a,t,r),n},{})}var N1=ps;function ps(e){var t=0,r=[],n={},a=[];function i(o){var l=n[o]={onStack:!0,lowlink:t,index:t++};if(r.push(o),e.successors(o).forEach(function(u){n.hasOwnProperty(u)?n[u].onStack&&(l.lowlink=Math.min(l.lowlink,n[u].index)):(i(u),l.lowlink=Math.min(l.lowlink,n[u].lowlink))}),l.lowlink===l.index){var d=[],c;do c=r.pop(),n[c].onStack=!1,d.push(c);while(o!==c);a.push(d)}}return e.nodes().forEach(function(o){n.hasOwnProperty(o)||i(o)}),a}var xs=N1,Cs=gs;function gs(e){return xs(e).filter(function(t){return t.length>1||t.length===1&&e.hasEdge(t[0],t[0])})}var bs=ws,vs=()=>1;function ws(e,t,r){return ys(e,t||vs,r||function(n){return e.outEdges(n)})}function ys(e,t,r){var n={},a=e.nodes();return a.forEach(function(i){n[i]={},n[i][i]={distance:0},a.forEach(function(o){i!==o&&(n[i][o]={distance:Number.POSITIVE_INFINITY})}),r(i).forEach(function(o){var l=o.v===i?o.w:o.v,d=t(o);n[i][l]={distance:d,predecessor:i}})}),a.forEach(function(i){var o=n[i];a.forEach(function(l){var d=n[l];a.forEach(function(c){var u=d[i],h=o[c],f=d[c],m=u.distance+h.distance;m<f.distance&&(f.distance=m,f.predecessor=h.predecessor)})})}),n}function _1(e){var t={},r={},n=[];function a(i){if(r.hasOwnProperty(i))throw new Pe;t.hasOwnProperty(i)||(r[i]=!0,t[i]=!0,e.predecessors(i).forEach(a),delete r[i],n.push(i))}if(e.sinks().forEach(a),Object.keys(t).length!==e.nodeCount())throw new Pe;return n}class Pe extends Error{constructor(){super(...arguments)}}var k1=_1;_1.CycleException=Pe;var Rt=k1,js=Es;function Es(e){try{Rt(e)}catch(t){if(t instanceof Rt.CycleException)return!1;throw t}return!0}var L1=Ns;function Ns(e,t,r){Array.isArray(t)||(t=[t]);var n=e.isDirected()?l=>e.successors(l):l=>e.neighbors(l),a=r==="post"?_s:ks,i=[],o={};return t.forEach(l=>{if(!e.hasNode(l))throw new Error("Graph does not have node: "+l);a(l,n,o,i)}),i}function _s(e,t,r,n){for(var a=[[e,!1]];a.length>0;){var i=a.pop();i[1]?n.push(i[0]):r.hasOwnProperty(i[0])||(r[i[0]]=!0,a.push([i[0],!0]),S1(t(i[0]),o=>a.push([o,!1])))}}function ks(e,t,r,n){for(var a=[e];a.length>0;){var i=a.pop();r.hasOwnProperty(i)||(r[i]=!0,n.push(i),S1(t(i),o=>a.push(o)))}}function S1(e,t){for(var r=e.length;r--;)t(e[r],r,e);return e}var Ls=L1,Ss=Os;function Os(e,t){return Ls(e,t,"post")}var Ts=L1,Is=Ps;function Ps(e,t){return Ts(e,t,"pre")}var Ms=Ze,Vs=j1,$s=Rs;function Rs(e,t){var r=new Ms,n={},a=new Vs,i;function o(d){var c=d.v===i?d.w:d.v,u=a.priority(c);if(u!==void 0){var h=t(d);h<u&&(n[c]=i,a.decrease(c,h))}}if(e.nodeCount()===0)return r;e.nodes().forEach(function(d){a.add(d,Number.POSITIVE_INFINITY),r.setNode(d)}),a.decrease(e.nodes()[0],0);for(var l=!1;a.size()>0;){if(i=a.removeMin(),n.hasOwnProperty(i))r.setEdge(i,n[i]);else{if(l)throw new Error("Input graph is not connected: "+e);l=!0}e.nodeEdges(i).forEach(o)}return r}var As={components:as,dijkstra:E1,dijkstraAll:fs,findCycles:Cs,floydWarshall:bs,isAcyclic:js,postorder:Ss,preorder:Is,prim:$s,tarjan:N1,topsort:k1},At=Xn,R={Graph:At.Graph,json:es,alg:As,version:At.version};let Ds=class{constructor(){let t={};t._next=t._prev=t,this._sentinel=t}dequeue(){let t=this._sentinel,r=t._prev;if(r!==t)return Dt(r),r}enqueue(t){let r=this._sentinel;t._prev&&t._next&&Dt(t),t._next=r._next,r._next._prev=t,r._next=t,t._prev=r}toString(){let t=[],r=this._sentinel,n=r._prev;for(;n!==r;)t.push(JSON.stringify(n,Fs)),n=n._prev;return"["+t.join(", ")+"]"}};function Dt(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function Fs(e,t){if(e!=="_next"&&e!=="_prev")return t}var zs=Ds;let Hs=R.Graph,Gs=zs;var Bs=qs;let Zs=()=>1;function qs(e,t){if(e.nodeCount()<=1)return[];let r=Ks(e,t||Zs);return Ys(r.graph,r.buckets,r.zeroIdx).flatMap(a=>e.outEdges(a.v,a.w))}function Ys(e,t,r){let n=[],a=t[t.length-1],i=t[0],o;for(;e.nodeCount();){for(;o=i.dequeue();)ke(e,t,r,o);for(;o=a.dequeue();)ke(e,t,r,o);if(e.nodeCount()){for(let l=t.length-2;l>0;--l)if(o=t[l].dequeue(),o){n=n.concat(ke(e,t,r,o,!0));break}}}return n}function ke(e,t,r,n,a){let i=a?[]:void 0;return e.inEdges(n.v).forEach(o=>{let l=e.edge(o),d=e.node(o.v);a&&i.push({v:o.v,w:o.w}),d.out-=l,Me(t,r,d)}),e.outEdges(n.v).forEach(o=>{let l=e.edge(o),d=o.w,c=e.node(d);c.in-=l,Me(t,r,c)}),e.removeNode(n.v),i}function Ks(e,t){let r=new Hs,n=0,a=0;e.nodes().forEach(l=>{r.setNode(l,{v:l,in:0,out:0})}),e.edges().forEach(l=>{let d=r.edge(l.v,l.w)||0,c=t(l),u=d+c;r.setEdge(l.v,l.w,u),a=Math.max(a,r.node(l.v).out+=c),n=Math.max(n,r.node(l.w).in+=c)});let i=Us(a+n+3).map(()=>new Gs),o=n+1;return r.nodes().forEach(l=>{Me(i,o,r.node(l))}),{graph:r,buckets:i,zeroIdx:o}}function Me(e,t,r){r.out?r.in?e[r.out-r.in+t].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function Us(e){const t=[];for(let r=0;r<e;r++)t.push(r);return t}let O1=R.Graph;var y={addBorderNode:sa,addDummyNode:T1,asNonCompoundGraph:Qs,buildLayerMatrix:ta,intersectRect:ea,mapValues:ca,maxRank:I1,normalizeRanks:ra,notime:oa,partition:aa,pick:da,predecessorWeights:Js,range:M1,removeEmptyRanks:na,simplify:Ws,successorWeights:Xs,time:ia,uniqueId:P1,zipObject:qe};function T1(e,t,r,n){let a;do a=P1(n);while(e.hasNode(a));return r.dummy=t,e.setNode(a,r),a}function Ws(e){let t=new O1().setGraph(e.graph());return e.nodes().forEach(r=>t.setNode(r,e.node(r))),e.edges().forEach(r=>{let n=t.edge(r.v,r.w)||{weight:0,minlen:1},a=e.edge(r);t.setEdge(r.v,r.w,{weight:n.weight+a.weight,minlen:Math.max(n.minlen,a.minlen)})}),t}function Qs(e){let t=new O1({multigraph:e.isMultigraph()}).setGraph(e.graph());return e.nodes().forEach(r=>{e.children(r).length||t.setNode(r,e.node(r))}),e.edges().forEach(r=>{t.setEdge(r,e.edge(r))}),t}function Xs(e){let t=e.nodes().map(r=>{let n={};return e.outEdges(r).forEach(a=>{n[a.w]=(n[a.w]||0)+e.edge(a).weight}),n});return qe(e.nodes(),t)}function Js(e){let t=e.nodes().map(r=>{let n={};return e.inEdges(r).forEach(a=>{n[a.v]=(n[a.v]||0)+e.edge(a).weight}),n});return qe(e.nodes(),t)}function ea(e,t){let r=e.x,n=e.y,a=t.x-r,i=t.y-n,o=e.width/2,l=e.height/2;if(!a&&!i)throw new Error("Not possible to find intersection inside of the rectangle");let d,c;return Math.abs(i)*o>Math.abs(a)*l?(i<0&&(l=-l),d=l*a/i,c=l):(a<0&&(o=-o),d=o,c=o*i/a),{x:r+d,y:n+c}}function ta(e){let t=M1(I1(e)+1).map(()=>[]);return e.nodes().forEach(r=>{let n=e.node(r),a=n.rank;a!==void 0&&(t[a][n.order]=r)}),t}function ra(e){let t=Math.min(...e.nodes().map(r=>{let n=e.node(r).rank;return n===void 0?Number.MAX_VALUE:n}));e.nodes().forEach(r=>{let n=e.node(r);n.hasOwnProperty("rank")&&(n.rank-=t)})}function na(e){let t=Math.min(...e.nodes().map(i=>e.node(i).rank)),r=[];e.nodes().forEach(i=>{let o=e.node(i).rank-t;r[o]||(r[o]=[]),r[o].push(i)});let n=0,a=e.graph().nodeRankFactor;Array.from(r).forEach((i,o)=>{i===void 0&&o%a!==0?--n:i!==void 0&&n&&i.forEach(l=>e.node(l).rank+=n)})}function sa(e,t,r,n){let a={width:0,height:0};return arguments.length>=4&&(a.rank=r,a.order=n),T1(e,"border",a,t)}function I1(e){return Math.max(...e.nodes().map(t=>{let r=e.node(t).rank;return r===void 0?Number.MIN_VALUE:r}))}function aa(e,t){let r={lhs:[],rhs:[]};return e.forEach(n=>{t(n)?r.lhs.push(n):r.rhs.push(n)}),r}function ia(e,t){let r=Date.now();try{return t()}finally{console.log(e+" time: "+(Date.now()-r)+"ms")}}function oa(e,t){return t()}let la=0;function P1(e){var t=++la;return toString(e)+t}function M1(e,t,r=1){t==null&&(t=e,e=0);let n=i=>i<t;r<0&&(n=i=>t<i);const a=[];for(let i=e;n(i);i+=r)a.push(i);return a}function da(e,t){const r={};for(const n of t)e[n]!==void 0&&(r[n]=e[n]);return r}function ca(e,t){let r=t;return typeof t=="string"&&(r=n=>n[t]),Object.entries(e).reduce((n,[a,i])=>(n[a]=r(i,a),n),{})}function qe(e,t){return e.reduce((r,n,a)=>(r[n]=t[a],r),{})}let ua=Bs,ha=y.uniqueId;var fa={run:ma,undo:xa};function ma(e){(e.graph().acyclicer==="greedy"?ua(e,r(e)):pa(e)).forEach(n=>{let a=e.edge(n);e.removeEdge(n),a.forwardName=n.name,a.reversed=!0,e.setEdge(n.w,n.v,a,ha("rev"))});function r(n){return a=>n.edge(a).weight}}function pa(e){let t=[],r={},n={};function a(i){n.hasOwnProperty(i)||(n[i]=!0,r[i]=!0,e.outEdges(i).forEach(o=>{r.hasOwnProperty(o.w)?t.push(o):a(o.w)}),delete r[i])}return e.nodes().forEach(a),t}function xa(e){e.edges().forEach(t=>{let r=e.edge(t);if(r.reversed){e.removeEdge(t);let n=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(t.w,t.v,r,n)}})}let Ca=y;var ga={run:ba,undo:wa};function ba(e){e.graph().dummyChains=[],e.edges().forEach(t=>va(e,t))}function va(e,t){let r=t.v,n=e.node(r).rank,a=t.w,i=e.node(a).rank,o=t.name,l=e.edge(t),d=l.labelRank;if(i===n+1)return;e.removeEdge(t);let c,u,h;for(h=0,++n;n<i;++h,++n)l.points=[],u={width:0,height:0,edgeLabel:l,edgeObj:t,rank:n},c=Ca.addDummyNode(e,"edge",u,"_d"),n===d&&(u.width=l.width,u.height=l.height,u.dummy="edge-label",u.labelpos=l.labelpos),e.setEdge(r,c,{weight:l.weight},o),h===0&&e.graph().dummyChains.push(c),r=c;e.setEdge(r,a,{weight:l.weight},o)}function wa(e){e.graph().dummyChains.forEach(t=>{let r=e.node(t),n=r.edgeLabel,a;for(e.setEdge(r.edgeObj,n);r.dummy;)a=e.successors(t)[0],e.removeNode(t),n.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(n.x=r.x,n.y=r.y,n.width=r.width,n.height=r.height),t=a,r=e.node(t)})}var je={longestPath:ya,slack:ja};function ya(e){var t={};function r(n){var a=e.node(n);if(t.hasOwnProperty(n))return a.rank;t[n]=!0;var i=Math.min(...e.outEdges(n).map(o=>o==null?Number.POSITIVE_INFINITY:r(o.w)-e.edge(o).minlen));return i===Number.POSITIVE_INFINITY&&(i=0),a.rank=i}e.sources().forEach(r)}function ja(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}var Ea=R.Graph,ye=je.slack,V1=Na;function Na(e){var t=new Ea({directed:!1}),r=e.nodes()[0],n=e.nodeCount();t.setNode(r,{});for(var a,i;_a(t,e)<n;)a=ka(t,e),i=t.hasNode(a.v)?ye(e,a):-ye(e,a),La(t,e,i);return t}function _a(e,t){function r(n){t.nodeEdges(n).forEach(a=>{var i=a.v,o=n===i?a.w:i;!e.hasNode(o)&&!ye(t,a)&&(e.setNode(o,{}),e.setEdge(n,o,{}),r(o))})}return e.nodes().forEach(r),e.nodeCount()}function ka(e,t){return t.edges().reduce((n,a)=>{let i=Number.POSITIVE_INFINITY;return e.hasNode(a.v)!==e.hasNode(a.w)&&(i=ye(t,a)),i<n[0]?[i,a]:n},[Number.POSITIVE_INFINITY,null])[1]}function La(e,t,r){e.nodes().forEach(n=>t.node(n).rank+=r)}var Sa=V1,Ft=je.slack,Oa=je.longestPath,Ta=R.alg.preorder,Ia=R.alg.postorder,Pa=y.simplify,Ma=te;te.initLowLimValues=Ke;te.initCutValues=Ye;te.calcCutValue=$1;te.leaveEdge=A1;te.enterEdge=D1;te.exchangeEdges=F1;function te(e){e=Pa(e),Oa(e);var t=Sa(e);Ke(t),Ye(t,e);for(var r,n;r=A1(t);)n=D1(t,e,r),F1(t,e,r,n)}function Ye(e,t){var r=Ia(e,e.nodes());r=r.slice(0,r.length-1),r.forEach(n=>Va(e,t,n))}function Va(e,t,r){var n=e.node(r),a=n.parent;e.edge(r,a).cutvalue=$1(e,t,r)}function $1(e,t,r){var n=e.node(r),a=n.parent,i=!0,o=t.edge(r,a),l=0;return o||(i=!1,o=t.edge(a,r)),l=o.weight,t.nodeEdges(r).forEach(d=>{var c=d.v===r,u=c?d.w:d.v;if(u!==a){var h=c===i,f=t.edge(d).weight;if(l+=h?f:-f,Ra(e,r,u)){var m=e.edge(r,u).cutvalue;l+=h?-m:m}}}),l}function Ke(e,t){arguments.length<2&&(t=e.nodes()[0]),R1(e,{},1,t)}function R1(e,t,r,n,a){var i=r,o=e.node(n);return t[n]=!0,e.neighbors(n).forEach(l=>{t.hasOwnProperty(l)||(r=R1(e,t,r,l,n))}),o.low=i,o.lim=r++,a?o.parent=a:delete o.parent,r}function A1(e){return e.edges().find(t=>e.edge(t).cutvalue<0)}function D1(e,t,r){var n=r.v,a=r.w;t.hasEdge(n,a)||(n=r.w,a=r.v);var i=e.node(n),o=e.node(a),l=i,d=!1;i.lim>o.lim&&(l=o,d=!0);var c=t.edges().filter(u=>d===zt(e,e.node(u.v),l)&&d!==zt(e,e.node(u.w),l));return c.reduce((u,h)=>Ft(t,h)<Ft(t,u)?h:u)}function F1(e,t,r,n){var a=r.v,i=r.w;e.removeEdge(a,i),e.setEdge(n.v,n.w,{}),Ke(e),Ye(e,t),$a(e,t)}function $a(e,t){var r=e.nodes().find(a=>!t.node(a).parent),n=Ta(e,r);n=n.slice(1),n.forEach(a=>{var i=e.node(a).parent,o=t.edge(a,i),l=!1;o||(o=t.edge(i,a),l=!0),t.node(a).rank=t.node(i).rank+(l?o.minlen:-o.minlen)})}function Ra(e,t,r){return e.hasEdge(t,r)}function zt(e,t,r){return r.low<=t.lim&&t.lim<=r.lim}var Aa=je,z1=Aa.longestPath,Da=V1,Fa=Ma,za=Ha;function Ha(e){switch(e.graph().ranker){case"network-simplex":Ht(e);break;case"tight-tree":Ba(e);break;case"longest-path":Ga(e);break;default:Ht(e)}}var Ga=z1;function Ba(e){z1(e),Da(e)}function Ht(e){Fa(e)}var Za=qa;function qa(e){let t=Ka(e);e.graph().dummyChains.forEach(r=>{let n=e.node(r),a=n.edgeObj,i=Ya(e,t,a.v,a.w),o=i.path,l=i.lca,d=0,c=o[d],u=!0;for(;r!==a.w;){if(n=e.node(r),u){for(;(c=o[d])!==l&&e.node(c).maxRank<n.rank;)d++;c===l&&(u=!1)}if(!u){for(;d<o.length-1&&e.node(c=o[d+1]).minRank<=n.rank;)d++;c=o[d]}e.setParent(r,c),r=e.successors(r)[0]}})}function Ya(e,t,r,n){let a=[],i=[],o=Math.min(t[r].low,t[n].low),l=Math.max(t[r].lim,t[n].lim),d,c;d=r;do d=e.parent(d),a.push(d);while(d&&(t[d].low>o||l>t[d].lim));for(c=d,d=n;(d=e.parent(d))!==c;)i.push(d);return{path:a.concat(i.reverse()),lca:c}}function Ka(e){let t={},r=0;function n(a){let i=r;e.children(a).forEach(n),t[a]={low:i,lim:r++}}return e.children().forEach(n),t}let Ve=y;var Ua={run:Wa,cleanup:Ja};function Wa(e){let t=Ve.addDummyNode(e,"root",{},"_root"),r=Qa(e),n=Math.max(...Object.values(r))-1,a=2*n+1;e.graph().nestingRoot=t,e.edges().forEach(o=>e.edge(o).minlen*=a);let i=Xa(e)+1;e.children().forEach(o=>H1(e,t,a,i,n,r,o)),e.graph().nodeRankFactor=a}function H1(e,t,r,n,a,i,o){let l=e.children(o);if(!l.length){o!==t&&e.setEdge(t,o,{weight:0,minlen:r});return}let d=Ve.addBorderNode(e,"_bt"),c=Ve.addBorderNode(e,"_bb"),u=e.node(o);e.setParent(d,o),u.borderTop=d,e.setParent(c,o),u.borderBottom=c,l.forEach(h=>{H1(e,t,r,n,a,i,h);let f=e.node(h),m=f.borderTop?f.borderTop:h,x=f.borderBottom?f.borderBottom:h,b=f.borderTop?n:2*n,v=m!==x?1:a-i[o]+1;e.setEdge(d,m,{weight:b,minlen:v,nestingEdge:!0}),e.setEdge(x,c,{weight:b,minlen:v,nestingEdge:!0})}),e.parent(o)||e.setEdge(t,d,{weight:0,minlen:a+i[o]})}function Qa(e){var t={};function r(n,a){var i=e.children(n);i&&i.length&&i.forEach(o=>r(o,a+1)),t[n]=a}return e.children().forEach(n=>r(n,1)),t}function Xa(e){return e.edges().reduce((t,r)=>t+e.edge(r).weight,0)}function Ja(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,e.edges().forEach(r=>{var n=e.edge(r);n.nestingEdge&&e.removeEdge(r)})}let ei=y;var ti=ri;function ri(e){function t(r){let n=e.children(r),a=e.node(r);if(n.length&&n.forEach(t),a.hasOwnProperty("minRank")){a.borderLeft=[],a.borderRight=[];for(let i=a.minRank,o=a.maxRank+1;i<o;++i)Gt(e,"borderLeft","_bl",r,a,i),Gt(e,"borderRight","_br",r,a,i)}}e.children().forEach(t)}function Gt(e,t,r,n,a,i){let o={width:0,height:0,rank:i,borderType:t},l=a[t][i-1],d=ei.addDummyNode(e,"border",o,r);a[t][i]=d,e.setParent(d,n),l&&e.setEdge(l,d,{weight:1})}var ni={adjust:si,undo:ai};function si(e){let t=e.graph().rankdir.toLowerCase();(t==="lr"||t==="rl")&&G1(e)}function ai(e){let t=e.graph().rankdir.toLowerCase();(t==="bt"||t==="rl")&&ii(e),(t==="lr"||t==="rl")&&(oi(e),G1(e))}function G1(e){e.nodes().forEach(t=>Bt(e.node(t))),e.edges().forEach(t=>Bt(e.edge(t)))}function Bt(e){let t=e.width;e.width=e.height,e.height=t}function ii(e){e.nodes().forEach(t=>Le(e.node(t))),e.edges().forEach(t=>{let r=e.edge(t);r.points.forEach(Le),r.hasOwnProperty("y")&&Le(r)})}function Le(e){e.y=-e.y}function oi(e){e.nodes().forEach(t=>Se(e.node(t))),e.edges().forEach(t=>{let r=e.edge(t);r.points.forEach(Se),r.hasOwnProperty("x")&&Se(r)})}function Se(e){let t=e.x;e.x=e.y,e.y=t}let li=y;var di=ci;function ci(e){let t={},r=e.nodes().filter(l=>!e.children(l).length),n=Math.max(...r.map(l=>e.node(l).rank)),a=li.range(n+1).map(()=>[]);function i(l){if(t[l])return;t[l]=!0;let d=e.node(l);a[d.rank].push(l),e.successors(l).forEach(i)}return r.sort((l,d)=>e.node(l).rank-e.node(d).rank).forEach(i),a}let ui=y.zipObject;var hi=fi;function fi(e,t){let r=0;for(let n=1;n<t.length;++n)r+=mi(e,t[n-1],t[n]);return r}function mi(e,t,r){let n=ui(r,r.map((c,u)=>u)),a=t.flatMap(c=>e.outEdges(c).map(u=>({pos:n[u.w],weight:e.edge(u).weight})).sort((u,h)=>u.pos-h.pos)),i=1;for(;i<r.length;)i<<=1;let o=2*i-1;i-=1;let l=new Array(o).fill(0),d=0;return a.forEach(c=>{let u=c.pos+i;l[u]+=c.weight;let h=0;for(;u>0;)u%2&&(h+=l[u+1]),u=u-1>>1,l[u]+=c.weight;d+=c.weight*h}),d}var pi=xi;function xi(e,t=[]){return t.map(r=>{let n=e.inEdges(r);if(n.length){let a=n.reduce((i,o)=>{let l=e.edge(o),d=e.node(o.v);return{sum:i.sum+l.weight*d.order,weight:i.weight+l.weight}},{sum:0,weight:0});return{v:r,barycenter:a.sum/a.weight,weight:a.weight}}else return{v:r}})}let Ci=y;var gi=bi;function bi(e,t){let r={};e.forEach((a,i)=>{let o=r[a.v]={indegree:0,in:[],out:[],vs:[a.v],i};a.barycenter!==void 0&&(o.barycenter=a.barycenter,o.weight=a.weight)}),t.edges().forEach(a=>{let i=r[a.v],o=r[a.w];i!==void 0&&o!==void 0&&(o.indegree++,i.out.push(r[a.w]))});let n=Object.values(r).filter(a=>!a.indegree);return vi(n)}function vi(e){let t=[];function r(a){return i=>{i.merged||(i.barycenter===void 0||a.barycenter===void 0||i.barycenter>=a.barycenter)&&wi(a,i)}}function n(a){return i=>{i.in.push(a),--i.indegree===0&&e.push(i)}}for(;e.length;){let a=e.pop();t.push(a),a.in.reverse().forEach(r(a)),a.out.forEach(n(a))}return t.filter(a=>!a.merged).map(a=>Ci.pick(a,["vs","i","barycenter","weight"]))}function wi(e,t){let r=0,n=0;e.weight&&(r+=e.barycenter*e.weight,n+=e.weight),t.weight&&(r+=t.barycenter*t.weight,n+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=r/n,e.weight=n,e.i=Math.min(t.i,e.i),t.merged=!0}let yi=y;var ji=Ei;function Ei(e,t){let r=yi.partition(e,u=>u.hasOwnProperty("barycenter")),n=r.lhs,a=r.rhs.sort((u,h)=>h.i-u.i),i=[],o=0,l=0,d=0;n.sort(Ni(!!t)),d=Zt(i,a,d),n.forEach(u=>{d+=u.vs.length,i.push(u.vs),o+=u.barycenter*u.weight,l+=u.weight,d=Zt(i,a,d)});let c={vs:i.flat(!0)};return l&&(c.barycenter=o/l,c.weight=l),c}function Zt(e,t,r){let n;for(;t.length&&(n=t[t.length-1]).i<=r;)t.pop(),e.push(n.vs),r++;return r}function Ni(e){return(t,r)=>t.barycenter<r.barycenter?-1:t.barycenter>r.barycenter?1:e?r.i-t.i:t.i-r.i}let _i=pi,ki=gi,Li=ji;var Si=B1;function B1(e,t,r,n){let a=e.children(t),i=e.node(t),o=i?i.borderLeft:void 0,l=i?i.borderRight:void 0,d={};o&&(a=a.filter(f=>f!==o&&f!==l));let c=_i(e,a);c.forEach(f=>{if(e.children(f.v).length){let m=B1(e,f.v,r,n);d[f.v]=m,m.hasOwnProperty("barycenter")&&Ti(f,m)}});let u=ki(c,r);Oi(u,d);let h=Li(u,n);if(o&&(h.vs=[o,h.vs,l].flat(!0),e.predecessors(o).length)){let f=e.node(e.predecessors(o)[0]),m=e.node(e.predecessors(l)[0]);h.hasOwnProperty("barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+f.order+m.order)/(h.weight+2),h.weight+=2}return h}function Oi(e,t){e.forEach(r=>{r.vs=r.vs.flatMap(n=>t[n]?t[n].vs:n)})}function Ti(e,t){e.barycenter!==void 0?(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight):(e.barycenter=t.barycenter,e.weight=t.weight)}let Ii=R.Graph,Pi=y;var Mi=Vi;function Vi(e,t,r){let n=$i(e),a=new Ii({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(i=>e.node(i));return e.nodes().forEach(i=>{let o=e.node(i),l=e.parent(i);(o.rank===t||o.minRank<=t&&t<=o.maxRank)&&(a.setNode(i),a.setParent(i,l||n),e[r](i).forEach(d=>{let c=d.v===i?d.w:d.v,u=a.edge(c,i),h=u!==void 0?u.weight:0;a.setEdge(c,i,{weight:e.edge(d).weight+h})}),o.hasOwnProperty("minRank")&&a.setNode(i,{borderLeft:o.borderLeft[t],borderRight:o.borderRight[t]}))}),a}function $i(e){for(var t;e.hasNode(t=Pi.uniqueId("_root")););return t}var Ri=Ai;function Ai(e,t,r){let n={},a;r.forEach(i=>{let o=e.parent(i),l,d;for(;o;){if(l=e.parent(o),l?(d=n[l],n[l]=o):(d=a,a=o),d&&d!==o){t.setEdge(d,o);return}o=l}})}let Di=di,Fi=hi,zi=Si,Hi=Mi,Gi=Ri,Bi=R.Graph,ve=y;var Zi=Z1;function Z1(e,t){if(t&&typeof t.customOrder=="function"){t.customOrder(e,Z1);return}let r=ve.maxRank(e),n=qt(e,ve.range(1,r+1),"inEdges"),a=qt(e,ve.range(r-1,-1,-1),"outEdges"),i=Di(e);if(Yt(e,i),t&&t.disableOptimalOrderHeuristic)return;let o=Number.POSITIVE_INFINITY,l;for(let d=0,c=0;c<4;++d,++c){qi(d%2?n:a,d%4>=2),i=ve.buildLayerMatrix(e);let u=Fi(e,i);u<o&&(c=0,l=Object.assign({},i),o=u)}Yt(e,l)}function qt(e,t,r){return t.map(function(n){return Hi(e,n,r)})}function qi(e,t){let r=new Bi;e.forEach(function(n){let a=n.graph().root,i=zi(n,a,r,t);i.vs.forEach((o,l)=>n.node(o).order=l),Gi(n,r,i.vs)})}function Yt(e,t){Object.values(t).forEach(r=>r.forEach((n,a)=>e.node(n).order=a))}let Yi=R.Graph,he=y;var Ki={positionX:Qi,findType1Conflicts:q1,findType2Conflicts:Y1,addConflict:Ue,hasConflict:K1,verticalAlignment:U1,horizontalCompaction:W1,alignCoordinates:X1,findSmallestWidthAlignment:Q1,balance:J1};function q1(e,t){let r={};function n(a,i){let o=0,l=0,d=a.length,c=i[i.length-1];return i.forEach((u,h)=>{let f=Ui(e,u),m=f?e.node(f).order:d;(f||u===c)&&(i.slice(l,h+1).forEach(x=>{e.predecessors(x).forEach(b=>{let v=e.node(b),j=v.order;(j<o||m<j)&&!(v.dummy&&e.node(x).dummy)&&Ue(r,b,x)})}),l=h+1,o=m)}),i}return t.length&&t.reduce(n),r}function Y1(e,t){let r={};function n(i,o,l,d,c){let u;he.range(o,l).forEach(h=>{u=i[h],e.node(u).dummy&&e.predecessors(u).forEach(f=>{let m=e.node(f);m.dummy&&(m.order<d||m.order>c)&&Ue(r,f,u)})})}function a(i,o){let l=-1,d,c=0;return o.forEach((u,h)=>{if(e.node(u).dummy==="border"){let f=e.predecessors(u);f.length&&(d=e.node(f[0]).order,n(o,c,h,l,d),c=h,l=d)}n(o,c,o.length,d,i.length)}),o}return t.length&&t.reduce(a),r}function Ui(e,t){if(e.node(t).dummy)return e.predecessors(t).find(r=>e.node(r).dummy)}function Ue(e,t,r){if(t>r){let a=t;t=r,r=a}let n=e[t];n||(e[t]=n={}),n[r]=!0}function K1(e,t,r){if(t>r){let n=t;t=r,r=n}return!!e[t]&&e[t].hasOwnProperty(r)}function U1(e,t,r,n){let a={},i={},o={};return t.forEach(l=>{l.forEach((d,c)=>{a[d]=d,i[d]=d,o[d]=c})}),t.forEach(l=>{let d=-1;l.forEach(c=>{let u=n(c);if(u.length){u=u.sort((f,m)=>o[f]-o[m]);let h=(u.length-1)/2;for(let f=Math.floor(h),m=Math.ceil(h);f<=m;++f){let x=u[f];i[c]===c&&d<o[x]&&!K1(r,c,x)&&(i[x]=c,i[c]=a[c]=a[x],d=o[x])}}})}),{root:a,align:i}}function W1(e,t,r,n,a){let i={},o=Wi(e,t,r,a),l=a?"borderLeft":"borderRight";function d(h,f){let m=o.nodes(),x=m.pop(),b={};for(;x;)b[x]?h(x):(b[x]=!0,m.push(x),m=m.concat(f(x))),x=m.pop()}function c(h){i[h]=o.inEdges(h).reduce((f,m)=>Math.max(f,i[m.v]+o.edge(m)),0)}function u(h){let f=o.outEdges(h).reduce((x,b)=>Math.min(x,i[b.w]-o.edge(b)),Number.POSITIVE_INFINITY),m=e.node(h);f!==Number.POSITIVE_INFINITY&&m.borderType!==l&&(i[h]=Math.max(i[h],f))}return d(c,o.predecessors.bind(o)),d(u,o.successors.bind(o)),Object.keys(n).forEach(h=>i[h]=i[r[h]]),i}function Wi(e,t,r,n){let a=new Yi,i=e.graph(),o=Xi(i.nodesep,i.edgesep,n);return t.forEach(l=>{let d;l.forEach(c=>{let u=r[c];if(a.setNode(u),d){var h=r[d],f=a.edge(h,u);a.setEdge(h,u,Math.max(o(e,c,d),f||0))}d=c})}),a}function Q1(e,t){return Object.values(t).reduce((r,n)=>{let a=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;Object.entries(n).forEach(([l,d])=>{let c=Ji(e,l)/2;a=Math.max(d+c,a),i=Math.min(d-c,i)});const o=a-i;return o<r[0]&&(r=[o,n]),r},[Number.POSITIVE_INFINITY,null])[1]}function X1(e,t){let r=Object.values(t),n=Math.min(...r),a=Math.max(...r);["u","d"].forEach(i=>{["l","r"].forEach(o=>{let l=i+o,d=e[l];if(d===t)return;let c=Object.values(d),u=n-Math.min(...c);o!=="l"&&(u=a-Math.max(...c)),u&&(e[l]=he.mapValues(d,h=>h+u))})})}function J1(e,t){return he.mapValues(e.ul,(r,n)=>{if(t)return e[t.toLowerCase()][n];{let a=Object.values(e).map(i=>i[n]).sort((i,o)=>i-o);return(a[1]+a[2])/2}})}function Qi(e){let t=he.buildLayerMatrix(e),r=Object.assign(q1(e,t),Y1(e,t)),n={},a;["u","d"].forEach(o=>{a=o==="u"?t:Object.values(t).reverse(),["l","r"].forEach(l=>{l==="r"&&(a=a.map(h=>Object.values(h).reverse()));let d=(o==="u"?e.predecessors:e.successors).bind(e),c=U1(e,a,r,d),u=W1(e,a,c.root,c.align,l==="r");l==="r"&&(u=he.mapValues(u,h=>-h)),n[o+l]=u})});let i=Q1(e,n);return X1(n,i),J1(n,e.graph().align)}function Xi(e,t,r){return(n,a,i)=>{let o=n.node(a),l=n.node(i),d=0,c;if(d+=o.width/2,o.hasOwnProperty("labelpos"))switch(o.labelpos.toLowerCase()){case"l":c=-o.width/2;break;case"r":c=o.width/2;break}if(c&&(d+=r?c:-c),c=0,d+=(o.dummy?t:e)/2,d+=(l.dummy?t:e)/2,d+=l.width/2,l.hasOwnProperty("labelpos"))switch(l.labelpos.toLowerCase()){case"l":c=l.width/2;break;case"r":c=-l.width/2;break}return c&&(d+=r?c:-c),c=0,d}}function Ji(e,t){return e.node(t).width}let er=y,e2=Ki.positionX;var t2=r2;function r2(e){e=er.asNonCompoundGraph(e),n2(e),Object.entries(e2(e)).forEach(([t,r])=>e.node(t).x=r)}function n2(e){let t=er.buildLayerMatrix(e),r=e.graph().ranksep,n=0;t.forEach(a=>{const i=a.reduce((o,l)=>{const d=e.node(l).height;return o>d?o:d},0);a.forEach(o=>e.node(o).y=n+i/2),n+=i+r})}let Kt=fa,Ut=ga,s2=za,a2=y.normalizeRanks,i2=Za,o2=y.removeEmptyRanks,Wt=Ua,l2=ti,Qt=ni,d2=Zi,c2=t2,k=y,u2=R.Graph;var h2=f2;function f2(e,t){let r=t&&t.debugTiming?k.time:k.notime;r("layout",()=>{let n=r(" buildLayoutGraph",()=>j2(e));r(" runLayout",()=>m2(n,r)),r(" updateInputGraph",()=>p2(e,n))})}function m2(e,t){t(" makeSpaceForEdgeLabels",()=>E2(e)),t(" removeSelfEdges",()=>P2(e)),t(" acyclic",()=>Kt.run(e)),t(" nestingGraph.run",()=>Wt.run(e)),t(" rank",()=>s2(k.asNonCompoundGraph(e))),t(" injectEdgeLabelProxies",()=>N2(e)),t(" removeEmptyRanks",()=>o2(e)),t(" nestingGraph.cleanup",()=>Wt.cleanup(e)),t(" normalizeRanks",()=>a2(e)),t(" assignRankMinMax",()=>_2(e)),t(" removeEdgeLabelProxies",()=>k2(e)),t(" normalize.run",()=>Ut.run(e)),t(" parentDummyChains",()=>i2(e)),t(" addBorderSegments",()=>l2(e)),t(" order",()=>d2(e)),t(" insertSelfEdges",()=>M2(e)),t(" adjustCoordinateSystem",()=>Qt.adjust(e)),t(" position",()=>c2(e)),t(" positionSelfEdges",()=>V2(e)),t(" removeBorderNodes",()=>I2(e)),t(" normalize.undo",()=>Ut.undo(e)),t(" fixupEdgeLabelCoords",()=>O2(e)),t(" undoCoordinateSystem",()=>Qt.undo(e)),t(" translateGraph",()=>L2(e)),t(" assignNodeIntersects",()=>S2(e)),t(" reversePoints",()=>T2(e)),t(" acyclic.undo",()=>Kt.undo(e))}function p2(e,t){e.nodes().forEach(r=>{let n=e.node(r),a=t.node(r);n&&(n.x=a.x,n.y=a.y,n.rank=a.rank,t.children(r).length&&(n.width=a.width,n.height=a.height))}),e.edges().forEach(r=>{let n=e.edge(r),a=t.edge(r);n.points=a.points,a.hasOwnProperty("x")&&(n.x=a.x,n.y=a.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}let x2=["nodesep","edgesep","ranksep","marginx","marginy"],C2={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},g2=["acyclicer","ranker","rankdir","align"],b2=["width","height"],Xt={width:0,height:0},v2=["minlen","weight","width","height","labeloffset"],w2={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},y2=["labelpos"];function j2(e){let t=new u2({multigraph:!0,compound:!0}),r=Te(e.graph());return t.setGraph(Object.assign({},C2,Oe(r,x2),k.pick(r,g2))),e.nodes().forEach(n=>{let a=Te(e.node(n));const i=Oe(a,b2);Object.keys(Xt).forEach(o=>{i[o]===void 0&&(i[o]=Xt[o])}),t.setNode(n,i),t.setParent(n,e.parent(n))}),e.edges().forEach(n=>{let a=Te(e.edge(n));t.setEdge(n,Object.assign({},w2,Oe(a,v2),k.pick(a,y2)))}),t}function E2(e){let t=e.graph();t.ranksep/=2,e.edges().forEach(r=>{let n=e.edge(r);n.minlen*=2,n.labelpos.toLowerCase()!=="c"&&(t.rankdir==="TB"||t.rankdir==="BT"?n.width+=n.labeloffset:n.height+=n.labeloffset)})}function N2(e){e.edges().forEach(t=>{let r=e.edge(t);if(r.width&&r.height){let n=e.node(t.v),i={rank:(e.node(t.w).rank-n.rank)/2+n.rank,e:t};k.addDummyNode(e,"edge-proxy",i,"_ep")}})}function _2(e){let t=0;e.nodes().forEach(r=>{let n=e.node(r);n.borderTop&&(n.minRank=e.node(n.borderTop).rank,n.maxRank=e.node(n.borderBottom).rank,t=Math.max(t,n.maxRank))}),e.graph().maxRank=t}function k2(e){e.nodes().forEach(t=>{let r=e.node(t);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(t))})}function L2(e){let t=Number.POSITIVE_INFINITY,r=0,n=Number.POSITIVE_INFINITY,a=0,i=e.graph(),o=i.marginx||0,l=i.marginy||0;function d(c){let u=c.x,h=c.y,f=c.width,m=c.height;t=Math.min(t,u-f/2),r=Math.max(r,u+f/2),n=Math.min(n,h-m/2),a=Math.max(a,h+m/2)}e.nodes().forEach(c=>d(e.node(c))),e.edges().forEach(c=>{let u=e.edge(c);u.hasOwnProperty("x")&&d(u)}),t-=o,n-=l,e.nodes().forEach(c=>{let u=e.node(c);u.x-=t,u.y-=n}),e.edges().forEach(c=>{let u=e.edge(c);u.points.forEach(h=>{h.x-=t,h.y-=n}),u.hasOwnProperty("x")&&(u.x-=t),u.hasOwnProperty("y")&&(u.y-=n)}),i.width=r-t+o,i.height=a-n+l}function S2(e){e.edges().forEach(t=>{let r=e.edge(t),n=e.node(t.v),a=e.node(t.w),i,o;r.points?(i=r.points[0],o=r.points[r.points.length-1]):(r.points=[],i=a,o=n),r.points.unshift(k.intersectRect(n,i)),r.points.push(k.intersectRect(a,o))})}function O2(e){e.edges().forEach(t=>{let r=e.edge(t);if(r.hasOwnProperty("x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function T2(e){e.edges().forEach(t=>{let r=e.edge(t);r.reversed&&r.points.reverse()})}function I2(e){e.nodes().forEach(t=>{if(e.children(t).length){let r=e.node(t),n=e.node(r.borderTop),a=e.node(r.borderBottom),i=e.node(r.borderLeft[r.borderLeft.length-1]),o=e.node(r.borderRight[r.borderRight.length-1]);r.width=Math.abs(o.x-i.x),r.height=Math.abs(a.y-n.y),r.x=i.x+r.width/2,r.y=n.y+r.height/2}}),e.nodes().forEach(t=>{e.node(t).dummy==="border"&&e.removeNode(t)})}function P2(e){e.edges().forEach(t=>{if(t.v===t.w){var r=e.node(t.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}function M2(e){var t=k.buildLayerMatrix(e);t.forEach(r=>{var n=0;r.forEach((a,i)=>{var o=e.node(a);o.order=i+n,(o.selfEdges||[]).forEach(l=>{k.addDummyNode(e,"selfedge",{width:l.label.width,height:l.label.height,rank:o.rank,order:i+ ++n,e:l.e,label:l.label},"_se")}),delete o.selfEdges})})}function V2(e){e.nodes().forEach(t=>{var r=e.node(t);if(r.dummy==="selfedge"){var n=e.node(r.e.v),a=n.x+n.width/2,i=n.y,o=r.x-a,l=n.height/2;e.setEdge(r.e,r.label),e.removeNode(t),r.label.points=[{x:a+2*o/3,y:i-l},{x:a+5*o/6,y:i-l},{x:a+o,y:i},{x:a+5*o/6,y:i+l},{x:a+2*o/3,y:i+l}],r.label.x=r.x,r.label.y=r.y}})}function Oe(e,t){return k.mapValues(k.pick(e,t),Number)}function Te(e){var t={};return e&&Object.entries(e).forEach(([r,n])=>{typeof r=="string"&&(r=r.toLowerCase()),t[r]=n}),t}let $2=y,R2=R.Graph;var A2={debugOrdering:D2};function D2(e){let t=$2.buildLayerMatrix(e),r=new R2({compound:!0,multigraph:!0}).setGraph({});return e.nodes().forEach(n=>{r.setNode(n,{label:n}),r.setParent(n,"layer"+e.node(n).rank)}),e.edges().forEach(n=>r.setEdge(n.v,n.w,{},n.name)),t.forEach((n,a)=>{let i="layer"+a;r.setNode(i,{rank:"same"}),n.reduce((o,l)=>(r.setEdge(o,l,{style:"invis"}),l))}),r}var F2="1.1.2",z2={graphlib:R,layout:h2,debug:A2,util:{time:y.time,notime:y.notime},version:F2};const Jt=ar(z2),H2=300,G2=44,B2=50;function Z2(e,t){const r=new Jt.graphlib.Graph().setDefaultEdgeLabel(()=>({}));return r.setGraph({rankdir:"TB",ranksep:35,nodesep:5}),!e||!t?{nodes:[],edges:[]}:e.length<1?{nodes:[],edges:[]}:(t.forEach(n=>{r.setEdge(n.source,n.target)}),e.forEach(n=>{r.setNode(n.id,{width:H2,height:n.type==="step"?B2:G2})}),Jt.layout(r),{nodes:e.map(n=>{const{x:a,y:i}=r.node(n.id);return{...n,position:{x:a,y:i}}}),edges:t.map(n=>({...n,type:e.length>30?"smoothstep":"smart"}))})}function q2({runId:e}){return["runs",e,"graph"]}async function Y2({runId:e}){const t=G(B.runs.graph(e)),r=await ee(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(!r.ok)throw new A({message:`Error while fetching pipeline run graph for ${e}`,status:r.status,statusText:r.statusText});return r.json()}function tr(e,t){return Z({queryKey:q2(e),queryFn:()=>Y2(e),...t})}const K2=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 12C4 11.4477 4.44772 11 5 11H19C19.5523 11 20 11.4477 20 12C20 12.5523 19.5523 13 19 13H5C4.44772 13 4 12.5523 4 12Z"})),U2=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7587 2L8 2C8.55229 2 9 2.44772 9 3C9 3.55229 8.55229 4 8 4H7.8C6.94342 4 6.36113 4.00078 5.91104 4.03755C5.47262 4.07337 5.24842 4.1383 5.09202 4.21799C4.7157 4.40973 4.40973 4.7157 4.21799 5.09202C4.1383 5.24842 4.07337 5.47262 4.03755 5.91104C4.00078 6.36113 4 6.94342 4 7.8V8C4 8.55229 3.55229 9 3 9C2.44772 9 2 8.55229 2 8L2 7.7587C1.99999 6.95373 1.99998 6.28937 2.04419 5.74817C2.09012 5.18608 2.18868 4.66937 2.43597 4.18404C2.81947 3.43139 3.43139 2.81947 4.18404 2.43597C4.66937 2.18868 5.18608 2.09012 5.74817 2.04419C6.28937 1.99998 6.95373 1.99999 7.7587 2ZM18.089 4.03755C17.6389 4.00078 17.0566 4 16.2 4H16C15.4477 4 15 3.55229 15 3C15 2.44772 15.4477 2 16 2L16.2413 2C17.0463 1.99999 17.7106 1.99998 18.2518 2.04419C18.8139 2.09012 19.3306 2.18868 19.816 2.43598C20.5686 2.81947 21.1805 3.43139 21.564 4.18404C21.8113 4.66937 21.9099 5.18608 21.9558 5.74817C22 6.28936 22 6.95372 22 7.75868V8C22 8.55229 21.5523 9 21 9C20.4477 9 20 8.55229 20 8V7.8C20 6.94342 19.9992 6.36113 19.9624 5.91104C19.9266 5.47262 19.8617 5.24842 19.782 5.09202C19.5903 4.7157 19.2843 4.40973 18.908 4.21799C18.7516 4.1383 18.5274 4.07337 18.089 4.03755ZM3 15C3.55229 15 4 15.4477 4 16V16.2C4 17.0566 4.00078 17.6389 4.03755 18.089C4.07337 18.5274 4.1383 18.7516 4.21799 18.908C4.40973 19.2843 4.7157 19.5903 5.09202 19.782C5.24842 19.8617 5.47262 19.9266 5.91104 19.9624C6.36113 19.9992 6.94342 20 7.8 20H8C8.55229 20 9 20.4477 9 21C9 21.5523 8.55229 22 8 22H7.75868C6.95372 22 6.28936 22 5.74817 21.9558C5.18608 21.9099 4.66937 21.8113 4.18404 21.564C3.43139 21.1805 2.81947 20.5686 2.43597 19.816C2.18868 19.3306 2.09012 18.8139 2.04419 18.2518C1.99998 17.7106 1.99999 17.0463 2 16.2413L2 16C2 15.4477 2.44772 15 3 15ZM21 15C21.5523 15 22 15.4477 22 16V16.2413C22 17.0463 22 17.7106 21.9558 18.2518C21.9099 18.8139 21.8113 19.3306 21.564 19.816C21.1805 20.5686 20.5686 21.1805 19.816 21.564C19.3306 21.8113 18.8139 21.9099 18.2518 21.9558C17.7106 22 17.0463 22 16.2413 22H16C15.4477 22 15 21.5523 15 21C15 20.4477 15.4477 20 16 20H16.2C17.0566 20 17.6389 19.9992 18.089 19.9624C18.5274 19.9266 18.7516 19.8617 18.908 19.782C19.2843 19.5903 19.5903 19.2843 19.782 18.908C19.8617 18.7516 19.9266 18.5274 19.9624 18.089C19.9992 17.6389 20 17.0566 20 16.2V16C20 15.4477 20.4477 15 21 15Z"}));function W2({runId:e}){const{fitView:t,zoomIn:r,zoomOut:n}=o1(),a=q({runId:e}),i=tr({runId:e});return s.jsxs("div",{"aria-label":"Dag Controls",className:"absolute left-4 top-4 z-10 flex flex-col gap-1",children:[s.jsxs("div",{className:"divide-y divide-neutral-300 overflow-hidden rounded-md border border-neutral-300",children:[s.jsx("div",{children:s.jsx($,{onClick:()=>r(),emphasis:"subtle",className:"rounded-sharp border-none p-0.5",intent:"secondary",children:s.jsx(Sr,{className:"h-5 w-5 bg-theme-surface-primary fill-theme-text-primary"})})}),s.jsx("div",{children:s.jsx($,{onClick:()=>n(),emphasis:"subtle",className:"rounded-sharp border-none bg-theme-surface-primary p-0.5",intent:"secondary",children:s.jsx(K2,{className:"h-5 w-5 fill-theme-text-primary"})})})]}),s.jsx($,{className:"h-6 w-6 bg-theme-surface-primary p-0.5",onClick:()=>t(),emphasis:"subtle",intent:"secondary",children:s.jsx(U2,{className:"h-5 w-5 fill-theme-text-primary"})}),s.jsxs($,{className:"h-6 w-6 bg-theme-surface-primary p-0.5",onClick:()=>{a.refetch(),i.refetch()},emphasis:"subtle",intent:"secondary",children:[s.jsx("span",{className:"sr-only",children:"Refresh"}),s.jsx(Tr,{className:"h-5 w-5 fill-theme-text-primary"})]})]})}const Q2={step:Yn,artifact:gn},X2={smart:wn};function J2(){const{runId:e}=W(),{data:t,isPending:r,isError:n}=tr({runId:e}),{fitView:a}=o1(),{width:i,height:o}=He(x=>({width:x.width,height:x.height})),[l,d,c]=yr([]),[u,h,f]=jr([]),m=p.useCallback(()=>{const x=Z2(t==null?void 0:t.nodes,t==null?void 0:t.edges);d([...x.nodes]),h([...x.edges]),window.requestAnimationFrame(()=>{a()})},[t==null?void 0:t.nodes,t==null?void 0:t.edges]);return p.useEffect(()=>{a()},[i,o]),p.useEffect(()=>{const x=setTimeout(()=>{a({duration:200})},100);return()=>{clearTimeout(x)}},[t]),p.useLayoutEffect(()=>{m()},[t==null?void 0:t.nodes,t==null?void 0:t.edges,m]),n?null:r?s.jsxs("div",{className:"flex h-full flex-col items-center justify-center",children:[s.jsx(Ae,{}),s.jsx("div",{className:"mt-4 flex flex-col items-center",children:s.jsx("p",{className:"mb-5 text-display-xs",children:"Loading DAG Visualization"})})]}):s.jsx(Er,{minZoom:-2,connectOnClick:!1,nodesDraggable:!1,nodesConnectable:!1,edgeTypes:X2,nodeTypes:Q2,nodes:l,edges:u,edgesFocusable:!1,multiSelectionKeyCode:null,onNodesChange:c,onEdgesChange:f,fitView:!0,children:s.jsx(W2,{runId:e})})}function eo(){var a,i;const{runId:e}=W(),{setCurrentBreadcrumbData:t}=fr(),{data:r,isSuccess:n}=q({runId:e},{throwOnError:!0});return p.useEffect(()=>{r&&t({segment:"runs",data:r})},[r]),s.jsx(mr,{children:s.jsx("div",{className:"flex items-center gap-1",children:n?s.jsxs(s.Fragment,{children:[s.jsx(Pr,{className:`h-5 w-5 shrink-0 ${_r((a=r==null?void 0:r.body)==null?void 0:a.status)}`}),s.jsx("h1",{className:"min-w-0 truncate text-display-xs font-semibold",children:r==null?void 0:r.name}),s.jsx(se,{className:"h-5 w-5 shrink-0",status:(i=r==null?void 0:r.body)==null?void 0:i.status})]}):s.jsxs(s.Fragment,{children:[s.jsx(C,{className:"h-5 w-5"}),s.jsx(C,{className:"h-6 w-[250px]"}),s.jsx(C,{className:"h-5 w-5"})]})})})}const to=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 2C21.5523 2 22 2.44772 22 3V21C22 21.5523 21.5523 22 21 22C20.4477 22 20 21.5523 20 21V3C20 2.44772 20.4477 2 21 2ZM9.29289 4.29289C9.68342 3.90237 10.3166 3.90237 10.7071 4.29289L17.7071 11.2929C17.8946 11.4804 18 11.7348 18 12C18 12.2652 17.8946 12.5196 17.7071 12.7071L10.7071 19.7071C10.3166 20.0976 9.68342 20.0976 9.29289 19.7071C8.90237 19.3166 8.90237 18.6834 9.29289 18.2929L14.5858 13H3C2.44772 13 2 12.5523 2 12C2 11.4477 2.44772 11 3 11H14.5858L9.29289 5.70711C8.90237 5.31658 8.90237 4.68342 9.29289 4.29289Z"}));function ro({runId:e}){const[t,r]=p.useState(!1),n=`from zenml.client import Client
8
- run = Client().get_pipeline_run('${e}')
9
- config = run.config`;return s.jsxs(me,{open:t,onOpenChange:r,children:[s.jsx(ne,{className:"flex items-center gap-[10px]",children:s.jsxs(pe,{className:"flex w-full items-center gap-[10px]",children:[s.jsx(Ce,{className:` ${t?"":"-rotate-90"} h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`}),"Code"]})}),s.jsxs(xe,{className:"border-t border-theme-border-moderate bg-theme-surface-primary px-5 py-3",children:[s.jsx("p",{className:"mb-2 text-theme-text-secondary",children:"Get config programmatically"}),s.jsx(D,{fullWidth:!0,highlightCode:!0,wrap:!0,code:n})]})]})}function no({run:e}){var n,a;const[t,r]=p.useState(!1);return s.jsxs(me,{open:t,onOpenChange:r,children:[s.jsx(ne,{intent:"primary",className:"flex items-center gap-[10px]",children:s.jsxs(pe,{className:"flex w-full items-center gap-[10px]",children:[s.jsx(Ce,{className:` ${t?"":"-rotate-90"} h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`}),"Environment"]})}),s.jsxs(xe,{className:"space-y-3 border-t border-theme-border-moderate bg-theme-surface-primary px-5 py-3",children:[s.jsx(H,{isInitialOpen:!0,intent:"secondary",title:"Client Environment",data:(n=e.metadata)==null?void 0:n.client_environment}),s.jsx(H,{isInitialOpen:!0,intent:"secondary",title:"Orchestrator Environment",data:(a=e.metadata)==null?void 0:a.orchestrator_environment})]})]})}function so(){var i,o,l,d,c,u,h,f,m,x,b,v;const{runId:e}=W(),{data:t,isError:r,isPending:n}=q({runId:e},{throwOnError:!0}),{data:a}=w1({buildId:(o=(i=t==null?void 0:t.body)==null?void 0:i.build)==null?void 0:o.id},{enabled:!!((d=(l=t==null?void 0:t.body)==null?void 0:l.build)!=null&&d.id)});return r?null:n?s.jsxs("div",{className:"space-y-5",children:[s.jsx(C,{className:"h-[56px] w-full"}),s.jsx(C,{className:"h-[56px] w-full"}),s.jsx(C,{className:"h-[56px] w-full"}),s.jsx(C,{className:"h-[56px] w-full"})]}):s.jsxs("div",{className:"grid grid-cols-1 gap-5",children:[s.jsx(H,{title:"Parameters",data:((c=t.metadata)==null?void 0:c.config.parameters)??void 0}),((h=(u=a==null?void 0:a.metadata)==null?void 0:u.images)==null?void 0:h.orchestrator)&&s.jsx(v1,{data:(m=(f=a==null?void 0:a.metadata)==null?void 0:f.images)==null?void 0:m.orchestrator}),s.jsx(ro,{runId:e}),s.jsx(no,{run:t}),s.jsx(H,{title:"Extra",data:(x=t.metadata)==null?void 0:x.config.extra}),s.jsx(H,{title:"Resources",data:((v=(b=t.metadata)==null?void 0:b.config.settings)==null?void 0:v.resources)||{}})]})}function ao(){var d,c,u,h,f,m,x,b,v,j,S,O,T,I,P,M;const{runId:e}=W(),[t,r]=p.useState(!0),[n]=c1(),a=u1(),{data:i,isError:o,isPending:l}=q({runId:e},{throwOnError:!0});return p.useEffect(()=>{if(!n.get("tab")){const _=new URL(window.location.href);_.searchParams.set("tab","overview");const V=`${_.pathname}${_.search}`;a(V,{replace:!0})}},[n,a]),o?null:l?s.jsx(C,{className:"h-[200px] w-full"}):s.jsxs(me,{open:t,onOpenChange:r,children:[s.jsx(ne,{className:"flex items-center gap-[10px]",children:s.jsxs(pe,{className:"flex w-full items-center gap-[10px]",children:[s.jsx(Ce,{className:` ${t?"":"-rotate-90"} h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`}),s.jsx("span",{children:"Details"})]})}),s.jsx(xe,{className:"border-t border-theme-border-moderate bg-theme-surface-primary px-5 py-3",children:s.jsxs("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 md:grid-cols-3 md:gap-y-4",children:[s.jsx(Y,{children:"Id"}),s.jsx(K,{children:s.jsxs("div",{className:"group/copybutton flex items-center gap-0.5",children:[i.id,s.jsx(X,{copyText:i.id})]})}),s.jsx(Y,{children:"Status"}),s.jsx(K,{children:s.jsxs(E,{className:"inline-flex items-center gap-0.5",emphasis:"subtle",color:we((d=i.body)==null?void 0:d.status),children:[s.jsx(se,{className:"fill-current",status:(c=i.body)==null?void 0:c.status}),(u=i.body)==null?void 0:u.status]})}),s.jsx(Y,{children:"Pipeline"}),s.jsx(K,{children:s.jsx(ue,{to:de.pipelines.namespace(encodeURIComponent((f=(h=i.body)==null?void 0:h.pipeline)==null?void 0:f.name)),children:s.jsxs(E,{color:"purple",className:"inline-flex items-center gap-0.5",rounded:!1,emphasis:"subtle",children:[s.jsx(Re,{className:"h-4 w-4 fill-theme-text-brand"}),(x=(m=i.body)==null?void 0:m.pipeline)==null?void 0:x.name,s.jsx("div",{className:"rounded-sm bg-primary-50 px-1 py-0.25",children:(j=(v=(b=i.body)==null?void 0:b.pipeline)==null?void 0:v.body)==null?void 0:j.version})]})})}),s.jsx(Y,{children:"Author"}),s.jsx(K,{children:s.jsx("div",{className:"inline-flex items-center gap-1",children:s.jsx(Ge,{username:((O=(S=i.body)==null?void 0:S.user)==null?void 0:O.name)||""})})}),s.jsx(Y,{children:"Start Time"}),s.jsx(K,{children:(T=i.metadata)!=null&&T.start_time?s.jsx(ce,{dateString:(I=i.metadata)==null?void 0:I.start_time}):"Not available"}),s.jsx(Y,{children:"End Time"}),s.jsx(K,{children:(P=i.metadata)!=null&&P.end_time?s.jsx(ce,{dateString:(M=i.metadata)==null?void 0:M.end_time}):"Not available"})]})})]})}function io(){var a,i,o;const{runId:e}=W(),{data:t,isError:r,isPending:n}=q({runId:e},{throwOnError:!0});return r?null:n?s.jsx(C,{className:"h-[200px] w-full"}):!((a=t.metadata)!=null&&a.run_metadata)||Object.keys(t.metadata.run_metadata).length===0?s.jsx(nn,{}):s.jsxs("div",{className:"flex flex-col gap-5",children:[s.jsx(Be,{metadata:(i=t.metadata)==null?void 0:i.run_metadata}),s.jsx(x1,{metadata:(o=t.metadata)==null?void 0:o.run_metadata})]})}function oo(){return s.jsxs("div",{className:"grid grid-cols-1 gap-5",children:[s.jsx(ao,{}),s.jsx(y1,{}),s.jsx(io,{})]})}const lo=Lt.object({tab:Lt.enum(["overview","configuration"]).optional().default("overview").catch("overview")});function co(){const[e]=c1(),{tab:t}=lo.parse({tab:e.get("tab")||void 0});return t}function uo({setIsPanelOpen:e}){return s.jsxs("div",{className:"flex items-center gap-4 border-b border-theme-border-moderate bg-theme-surface-primary px-5 py-4",children:[s.jsx($,{className:"flex h-6 w-6 items-center justify-center bg-transparent p-0.5",intent:"secondary",onClick:()=>e(!1),children:s.jsx(to,{className:"h-5 w-5 fill-theme-text-secondary"})}),s.jsx("span",{className:"text-text-xl",children:"Run Insights"})]})}function ho(){const e=co(),t=u1();function r(n){const a=new URLSearchParams;a.set("tab",n),t(`?${a.toString()}`)}return s.jsx("div",{className:"flex flex-col gap-5 p-5",children:s.jsxs(De,{value:e,onValueChange:r,children:[s.jsxs(Fe,{children:[s.jsxs(F,{className:"flex items-center gap-2 truncate text-text-md",value:"overview",children:[s.jsx(ze,{className:"h-5 w-5 shrink-0 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),s.jsx("span",{children:"Overview"})]}),s.jsxs(F,{className:"flex items-center gap-2 truncate text-text-md",value:"configuration",children:[s.jsx(b1,{className:"h-5 w-5 shrink-0 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),s.jsx("span",{children:"Configuration"})]})]}),s.jsx(z,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"overview",children:s.jsx(oo,{})}),s.jsx(z,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"configuration",children:s.jsx(so,{})})]})})}function Ho(){var a;const e=pr(),t=xr(((a=e.data)==null?void 0:a.deployment_type)||"other"),[r,n]=p.useState(!0);return s.jsxs("div",{children:[s.jsx(eo,{}),s.jsxs("div",{className:`flex ${t?"h-[calc(100vh_-_4rem_-_4rem_-_4rem_-_2px)]":"h-[calc(100vh_-_4rem_-_4rem_-_2px)]"} w-full`,children:[s.jsxs("div",{className:`relative bg-white/40 transition-all duration-500 ${r?"w-1/2":"w-full"}`,children:[s.jsx(J2,{}),s.jsx(fo,{isPanelOpen:r,setIsPanelOpen:n})]}),s.jsxs("div",{"aria-hidden":!r,className:`h-full min-w-0 overflow-x-hidden text-ellipsis whitespace-nowrap bg-theme-surface-secondary transition-all duration-500 ${r?"w-1/2 border-l border-theme-border-moderate":"w-0 overflow-x-hidden border-transparent"}`,children:[s.jsx(uo,{setIsPanelOpen:n}),s.jsx(ho,{})]})]})]})}function fo({isPanelOpen:e,setIsPanelOpen:t}){return s.jsx($,{intent:"secondary",className:`absolute right-4 top-4 h-7 w-7 items-center justify-center border border-neutral-300 bg-transparent p-0.5 ${e?"hidden":"flex"}`,onClick:()=>t(!0),children:s.jsx(Mr,{className:"h-5 w-5 fill-theme-text-primary"})})}export{Ho as default};
@@ -1 +0,0 @@
1
- import{q as c}from"./@tanstack-DYiOyJUL.js";import{k as i,l as L,j as m,n as u,F as d,T as v,z as r}from"./index-BczVOqUf.js";import{o as p}from"./url-D7mAQGUM.js";import{f as H}from"./stack-detail-query-Cficsl6d.js";import{r as a,j as s}from"./@radix-CFOkMR_E.js";import{S as y}from"./database-1xWSgZfO.js";async function x(C){const t=i(L.stackDeployment.config)+(C?`?${p(C)}`:""),e=await m(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(e.status===404&&u(),!e.ok){const o=await e.json().then(n=>Array.isArray(n.detail)?n.detail[1]:n.detail).catch(()=>"Error while fetching stack deployment config");throw new d({status:e.status,statusText:e.statusText,message:o})}return e.json()}async function V(C){const t=i(L.stackDeployment.info)+(C?`?${p(C)}`:""),e=await m(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(e.status===404&&u(),!e.ok){const o=await e.json().then(n=>Array.isArray(n.detail)?n.detail[1]:n.detail).catch(()=>"Error while fetching stack deployment info");throw new d({status:e.status,statusText:e.statusText,message:o})}return e.json()}async function k(C){const t=i(L.stackDeployment.stack)+(C?`?${p(C)}`:""),e=await m(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(e.status===404&&u(),!e.ok){const o=await e.json().then(n=>Array.isArray(n.detail)?n.detail[1]:n.detail).catch(()=>"Error while fetching the deployed stack");throw new d({status:e.status,statusText:e.statusText,message:o})}return e.json()}async function M(C){const t=i(L.stacks.all)+(C?`?${p(C)}`:""),e=await m(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(e.status===404&&u(),!e.ok){const o=await e.json().then(n=>Array.isArray(n.detail)?n.detail[1]:n.detail).catch(()=>"Error while fetching stacks");throw new d({status:e.status,statusText:e.statusText,message:o})}return e.json()}const l={all:["stacks"],stackDeployment:["stack-deployment"],stackList:C=>c({queryKey:[...l.all,C],queryFn:async()=>M(C)}),stackDetail:C=>c({queryKey:[...l.all,C],queryFn:async()=>H({stackId:C})}),stackDeploymentInfo:C=>c({queryKey:[...l.stackDeployment,"info",C],queryFn:async()=>V(C)}),stackDeploymentStack:C=>c({queryKey:[...l.stackDeployment,"stack",C],queryFn:async()=>k(C)}),stackDeploymentConfig:C=>c({queryKey:[...l.stackDeployment,"config",C],queryFn:async()=>x(C)})},Z=C=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...C},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7587 2H16.2413C17.0463 1.99999 17.7106 1.99998 18.2518 2.04419C18.8139 2.09012 19.3306 2.18868 19.816 2.43597C20.5686 2.81947 21.1805 3.43139 21.564 4.18404C21.8113 4.66937 21.9099 5.18608 21.9558 5.74817C22 6.28936 22 6.95372 22 7.75868V13.5343C22 14.2041 22 14.7569 21.9691 15.2095C21.9371 15.6788 21.8686 16.1129 21.6955 16.5307C21.2895 17.5108 20.5108 18.2895 19.5307 18.6955C19.1129 18.8686 18.6788 18.9371 18.2095 18.9691C17.7569 19 17.2041 19 16.5343 19H16.5C15.9634 19 15.8569 19.0063 15.7702 19.0268C15.6192 19.0624 15.4784 19.1328 15.3593 19.2322C15.2909 19.2893 15.2219 19.3707 14.9 19.8L13.4231 21.7693C13.3297 21.8938 13.2242 22.0346 13.1226 22.1476C13.0106 22.2721 12.8244 22.4555 12.5437 22.5647C12.194 22.7007 11.806 22.7007 11.4563 22.5647C11.1756 22.4555 10.9894 22.2721 10.8774 22.1476C10.7758 22.0346 10.6703 21.8938 10.577 21.7693L9.1 19.8C8.77806 19.3708 8.70913 19.2893 8.64075 19.2322C8.52156 19.1328 8.38085 19.0624 8.22975 19.0268C8.14307 19.0063 8.03656 19 7.5 19H7.46573C6.79594 19 6.24307 19 5.79046 18.9691C5.32118 18.9371 4.88708 18.8686 4.46927 18.6955C3.48915 18.2895 2.71046 17.5108 2.30448 16.5307C2.13142 16.1129 2.06288 15.6788 2.03087 15.2095C1.99998 14.7569 1.99999 14.2041 2 13.5343L2 7.7587C1.99999 6.95373 1.99998 6.28937 2.04419 5.74817C2.09012 5.18608 2.18868 4.66937 2.43597 4.18404C2.81947 3.43139 3.43139 2.81947 4.18404 2.43597C4.66937 2.18868 5.18608 2.09012 5.74817 2.04419C6.28937 1.99998 6.95373 1.99999 7.7587 2ZM5.91104 4.03755C5.47262 4.07337 5.24842 4.1383 5.09202 4.21799C4.7157 4.40973 4.40973 4.7157 4.21799 5.09202C4.1383 5.24842 4.07337 5.47262 4.03755 5.91104C4.00078 6.36113 4 6.94342 4 7.8V13.5C4 14.2126 4.00054 14.697 4.02623 15.0734C4.0513 15.4409 4.09694 15.6319 4.15224 15.7654C4.35523 16.2554 4.74458 16.6448 5.23463 16.8478C5.36813 16.9031 5.55915 16.9487 5.9266 16.9738C6.30304 16.9995 6.78741 17 7.5 17C7.52818 17 7.55611 17 7.58382 16.9999C7.9894 16.9996 8.34611 16.9992 8.68926 17.0803C9.14254 17.1873 9.56467 17.3983 9.92224 17.6967C10.1929 17.9227 10.4067 18.2082 10.6497 18.5329C10.6663 18.5551 10.6831 18.5775 10.7 18.6L12 20.3333L13.3 18.6C13.3169 18.5775 13.3337 18.5551 13.3503 18.5329C13.5933 18.2082 13.8071 17.9227 14.0778 17.6967C14.4353 17.3983 14.8575 17.1873 15.3107 17.0803C15.6539 16.9992 16.0106 16.9996 16.4162 16.9999C16.4439 17 16.4718 17 16.5 17C17.2126 17 17.697 16.9995 18.0734 16.9738C18.4409 16.9487 18.6319 16.9031 18.7654 16.8478C19.2554 16.6448 19.6448 16.2554 19.8478 15.7654C19.9031 15.6319 19.9487 15.4409 19.9738 15.0734C19.9995 14.697 20 14.2126 20 13.5V7.8C20 6.94342 19.9992 6.36113 19.9624 5.91104C19.9266 5.47262 19.8617 5.24842 19.782 5.09202C19.5903 4.7157 19.2843 4.40973 18.908 4.21799C18.7516 4.1383 18.5274 4.07337 18.089 4.03755C17.6389 4.00078 17.0566 4 16.2 4H7.8C6.94342 4 6.36113 4.00078 5.91104 4.03755ZM12 6C12.5523 6 13 6.44772 13 7V10.5C13 11.0523 12.5523 11.5 12 11.5C11.4477 11.5 11 11.0523 11 10.5V7C11 6.44772 11.4477 6 12 6ZM11 14C11 13.4477 11.4477 13 12 13H12.01C12.5623 13 13.01 13.4477 13.01 14C13.01 14.5523 12.5623 15 12.01 15H12C11.4477 15 11 14.5523 11 14Z"})),j=C=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...C},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.089 4.03755C17.6389 4.00078 17.0566 4 16.2 4H12C11.4477 4 11 3.55229 11 3C11 2.44772 11.4477 2 12 2L16.2413 2C17.0463 1.99999 17.7106 1.99998 18.2518 2.04419C18.8139 2.09012 19.3306 2.18868 19.816 2.43598C20.5686 2.81947 21.1805 3.43139 21.564 4.18404C21.8113 4.66937 21.9099 5.18608 21.9558 5.74817C22 6.28936 22 6.95372 22 7.75868V16.2413C22 17.0463 22 17.7106 21.9558 18.2518C21.9099 18.8139 21.8113 19.3306 21.564 19.816C21.1805 20.5686 20.5686 21.1805 19.816 21.564C19.3306 21.8113 18.8139 21.9099 18.2518 21.9558C17.7106 22 17.0463 22 16.2413 22H7.75868C6.95372 22 6.28936 22 5.74817 21.9558C5.18608 21.9099 4.66937 21.8113 4.18404 21.564C3.43139 21.1805 2.81947 20.5686 2.43597 19.816C2.18868 19.3306 2.09012 18.8139 2.04419 18.2518C1.99998 17.7106 1.99999 17.0463 2 16.2413L2 12C2 11.4477 2.44772 11 3 11C3.55228 11 4 11.4477 4 12V16.2C4 17.0566 4.00078 17.6389 4.03755 18.089C4.07337 18.5274 4.1383 18.7516 4.21799 18.908C4.40973 19.2843 4.71569 19.5903 5.09202 19.782C5.24842 19.8617 5.47262 19.9266 5.91104 19.9624C6.36113 19.9992 6.94342 20 7.8 20H16.2C17.0566 20 17.6389 19.9992 18.089 19.9624C18.5274 19.9266 18.7516 19.8617 18.908 19.782C19.2843 19.5903 19.5903 19.2843 19.782 18.908C19.8617 18.7516 19.9266 18.5274 19.9624 18.089C19.9992 17.6389 20 17.0566 20 16.2V7.8C20 6.94342 19.9992 6.36113 19.9624 5.91104C19.9266 5.47262 19.8617 5.24842 19.782 5.09202C19.5903 4.7157 19.2843 4.40973 18.908 4.21799C18.7516 4.1383 18.5274 4.07337 18.089 4.03755ZM12 6C12.5523 6 13 6.44772 13 7V17C13 17.5523 12.5523 18 12 18C11.4477 18 11 17.5523 11 17V7C11 6.44772 11.4477 6 12 6ZM16 10C16.5523 10 17 10.4477 17 11V17C17 17.5523 16.5523 18 16 18C15.4477 18 15 17.5523 15 17V11C15 10.4477 15.4477 10 16 10ZM8 12C8.55228 12 9 12.4477 9 13V17C9 17.5523 8.55228 18 8 18C7.44772 18 7 17.5523 7 17V13C7 12.4477 7.44772 12 8 12Z"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.70711 3.29289C9.09763 3.68342 9.09763 4.31658 8.70711 4.70711L4.70711 8.70711C4.31658 9.09763 3.68342 9.09763 3.29289 8.70711L1.29289 6.70711C0.902369 6.31658 0.902369 5.68342 1.29289 5.29289C1.68342 4.90237 2.31658 4.90237 2.70711 5.29289L4 6.58579L7.29289 3.29289C7.68342 2.90237 8.31658 2.90237 8.70711 3.29289Z"})),E=C=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...C},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.56808 1C9.5787 1 9.58933 1.00001 9.59997 1.00001L14.4319 1C14.6843 0.999973 14.93 0.999943 15.1382 1.01695C15.3668 1.03563 15.6365 1.07969 15.908 1.21799C16.2843 1.40974 16.5902 1.7157 16.782 2.09202C16.9203 2.36345 16.9644 2.63318 16.983 2.86178C16.9869 2.90871 16.9898 2.95756 16.9921 3.00797C17.3873 3.02072 17.7257 3.05337 18.0353 3.1363C19.4156 3.50617 20.4938 4.58436 20.8637 5.96473C21.0008 6.47638 21.0005 7.06704 21 7.86243C21 7.90762 21 7.95347 21 8.00001V17.2413C21 18.0463 21 18.7106 20.9558 19.2518C20.9099 19.8139 20.8113 20.3306 20.564 20.816C20.1805 21.5686 19.5686 22.1805 18.8159 22.564C18.3306 22.8113 17.8139 22.9099 17.2518 22.9558C16.7106 23 16.0463 23 15.2413 23H8.75865C7.95369 23 7.28934 23 6.74815 22.9558C6.18605 22.9099 5.66935 22.8113 5.18401 22.564C4.43136 22.1805 3.81944 21.5686 3.43595 20.816C3.18866 20.3306 3.09009 19.8139 3.04417 19.2518C2.99995 18.7106 2.99996 18.0463 2.99997 17.2413L2.99997 8.00001C2.99997 7.95347 2.99995 7.90762 2.99993 7.86242C2.99949 7.06704 2.99917 6.47638 3.13627 5.96473C3.50614 4.58436 4.58433 3.50617 5.9647 3.1363C6.27421 3.05337 6.61264 3.02072 7.00782 3.00796C7.01012 2.95756 7.01308 2.90871 7.01692 2.86178C7.0356 2.63318 7.07966 2.36345 7.21796 2.09202C7.40971 1.7157 7.71567 1.40974 8.09199 1.21799C8.36342 1.07969 8.63315 1.03563 8.86174 1.01695C9.0699 0.999943 9.31569 0.999973 9.56808 1ZM7.00865 5.00956C6.74556 5.01867 6.60245 5.03597 6.48234 5.06815C5.79215 5.25309 5.25306 5.79218 5.06812 6.48237C5.00856 6.70465 4.99997 7.00565 4.99997 8.00001V17.2C4.99997 18.0566 5.00075 18.6389 5.03753 19.089C5.07335 19.5274 5.13827 19.7516 5.21796 19.908C5.40971 20.2843 5.71567 20.5903 6.09199 20.782C6.24839 20.8617 6.4726 20.9266 6.91101 20.9625C7.3611 20.9992 7.94339 21 8.79997 21H15.2C16.0566 21 16.6388 20.9992 17.0889 20.9625C17.5274 20.9266 17.7516 20.8617 17.908 20.782C18.2843 20.5903 18.5902 20.2843 18.782 19.908C18.8617 19.7516 18.9266 19.5274 18.9624 19.089C18.9992 18.6389 19 18.0566 19 17.2V8.00001C19 7.00565 18.9914 6.70465 18.9318 6.48237C18.7469 5.79218 18.2078 5.25309 17.5176 5.06815C17.3975 5.03597 17.2544 5.01867 16.9913 5.00956C16.9891 5.05378 16.9864 5.09676 16.983 5.13824C16.9644 5.36683 16.9203 5.63656 16.782 5.90799C16.5902 6.28431 16.2843 6.59027 15.908 6.78202C15.6365 6.92032 15.3668 6.96438 15.1382 6.98306C14.93 7.00007 14.6843 7.00004 14.4319 7.00001L9.59997 7.00001C9.58933 7.00001 9.5787 7.00001 9.56808 7.00001C9.31569 7.00004 9.0699 7.00007 8.86174 6.98306C8.63315 6.96438 8.36342 6.92032 8.09199 6.78202C7.71567 6.59027 7.40971 6.28431 7.21796 5.90799C7.07966 5.63656 7.0356 5.36683 7.01692 5.13824C7.01353 5.09676 7.01082 5.05378 7.00865 5.00956ZM15 3.60001C15 3.30348 14.9992 3.14122 14.9897 3.02464C14.9893 3.02 14.9889 3.0156 14.9885 3.01145C14.9844 3.01107 14.98 3.01069 14.9753 3.01031C14.8588 3.00078 14.6965 3.00001 14.4 3.00001H9.59997C9.30345 3.00001 9.14119 3.00078 9.02461 3.01031C9.01997 3.01069 9.01557 3.01107 9.01142 3.01145C9.01104 3.0156 9.01066 3.02 9.01028 3.02464C9.00075 3.14122 8.99997 3.30348 8.99997 3.60001V4.40001C8.99997 4.69653 9.00075 4.85879 9.01028 4.97537C9.01066 4.98001 9.01104 4.98441 9.01142 4.98856C9.01557 4.98894 9.01997 4.98932 9.02461 4.9897C9.14119 4.99923 9.30345 5.00001 9.59997 5.00001H14.4C14.6965 5.00001 14.8588 4.99923 14.9753 4.9897C14.98 4.98932 14.9844 4.98894 14.9885 4.98856C14.9889 4.98441 14.9893 4.98001 14.9897 4.97537C14.9992 4.85879 15 4.69653 15 4.40001V3.60001Z"})),h=C=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...C},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5971 1.18505C11.8629 1.13038 12.1371 1.13038 12.4029 1.18505C12.7102 1.24824 12.9848 1.40207 13.2032 1.52436C13.2235 1.53575 13.2433 1.54687 13.2627 1.55761L20.6627 5.66872C20.6831 5.68009 20.7042 5.6917 20.7258 5.70359C20.9569 5.8309 21.2476 5.99097 21.4707 6.23315C21.6637 6.44253 21.8097 6.6907 21.899 6.96105C22.0024 7.27375 22.0011 7.60553 22.0002 7.8694C22.0001 7.89406 22 7.91813 22 7.94153V16.0586C22 16.082 22.0001 16.1061 22.0002 16.1308C22.0011 16.3946 22.0024 16.7264 21.899 17.0391C21.8097 17.3095 21.6637 17.5576 21.4707 17.767C21.2476 18.0092 20.9569 18.1693 20.7258 18.2966C20.7042 18.3085 20.6831 18.3201 20.6627 18.3314L13.2627 22.4426C13.2433 22.4533 13.2235 22.4644 13.2032 22.4758C12.9848 22.5981 12.7102 22.7519 12.4029 22.8151C12.1371 22.8698 11.8629 22.8698 11.5971 22.8151C11.2898 22.7519 11.0152 22.5981 10.7968 22.4758C10.7765 22.4644 10.7567 22.4533 10.7373 22.4426L3.33733 18.3314C3.31688 18.3201 3.2958 18.3085 3.2742 18.2966C3.04307 18.1693 2.75245 18.0092 2.52927 17.767C2.33632 17.5576 2.1903 17.3095 2.10097 17.0391C1.99765 16.7264 1.99886 16.3946 1.99982 16.1308C1.99991 16.1061 2 16.082 2 16.0586V7.94153C2 7.91813 1.99991 7.89406 1.99982 7.8694C1.99886 7.60553 1.99765 7.27375 2.10097 6.96105C2.1903 6.6907 2.33632 6.44253 2.52927 6.23315C2.75244 5.99097 3.04306 5.8309 3.27419 5.7036C3.29579 5.6917 3.31687 5.68009 3.33733 5.66872L10.7373 1.55761C10.7567 1.54687 10.7765 1.53575 10.7968 1.52436C11.0152 1.40207 11.2898 1.24824 11.5971 1.18505ZM12 3.14907C11.9985 3.1498 11.9969 3.15056 11.9952 3.15136C11.9375 3.1792 11.8602 3.22173 11.7086 3.30592L5.05914 7.00008L12 10.8561L18.9408 7.00006L12.2914 3.30592C12.1398 3.22173 12.0625 3.1792 12.0048 3.15136C12.0031 3.15056 12.0015 3.1498 12 3.14907ZM20 8.69955V16.0586C20 16.2416 19.9996 16.3353 19.9955 16.4031C19.9954 16.4051 19.9953 16.407 19.9951 16.4088C19.9936 16.4098 19.992 16.4108 19.9903 16.4119C19.933 16.4484 19.8513 16.4943 19.6914 16.5831L13 20.3006L13 12.5885L20 8.69955ZM11 12.5885L4 8.69959V16.0586C4 16.2416 4.00042 16.3353 4.0045 16.4031C4.00462 16.4051 4.00475 16.407 4.00487 16.4088C4.0064 16.4098 4.00802 16.4108 4.0097 16.4119C4.067 16.4484 4.14866 16.4943 4.30862 16.5831L11 20.3006L11 12.5885Z"})),S=C=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...C},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.09 4.05463C9.96938 4.01302 9.8127 3.99997 9.02229 3.99997H5.2C4.62345 3.99997 4.25117 4.00075 3.96784 4.0239C3.69617 4.04609 3.59546 4.08377 3.54601 4.10896C3.35785 4.20484 3.20487 4.35782 3.109 4.54598C3.0838 4.59542 3.04612 4.69614 3.02393 4.96781C3.00357 5.21695 3.00052 5.53487 3.00007 5.99997H11.382L10.99 5.2161C10.6366 4.50915 10.5548 4.37484 10.4637 4.28555C10.3578 4.18184 10.2301 4.10296 10.09 4.05463ZM13.618 5.99997L12.7789 4.32168C12.7602 4.28429 12.7417 4.24719 12.7234 4.2104C12.4586 3.67916 12.2258 3.21196 11.8631 2.85672C11.5454 2.54557 11.1625 2.30893 10.7421 2.16394C10.2622 1.99839 9.74022 1.99908 9.14666 1.99986C9.10555 1.99992 9.0641 1.99997 9.02229 1.99997L5.16146 1.99997C4.63431 1.99995 4.17955 1.99994 3.80497 2.03054C3.40963 2.06284 3.01641 2.13416 2.63803 2.32695C2.07354 2.61457 1.6146 3.07351 1.32698 3.638C1.13419 4.01638 1.06287 4.4096 1.03057 4.80494C0.999967 5.17952 0.999983 5.63428 1 6.16143L1 16.2413C0.999989 17.0462 0.999978 17.7106 1.0442 18.2518C1.09012 18.8139 1.18868 19.3306 1.43598 19.8159C1.81947 20.5686 2.43139 21.1805 3.18404 21.564C3.66938 21.8113 4.18608 21.9099 4.74818 21.9558C5.28937 22 5.95372 22 6.75868 22H17.2413C18.0463 22 18.7106 22 19.2518 21.9558C19.8139 21.9099 20.3306 21.8113 20.816 21.564C21.5686 21.1805 22.1805 20.5686 22.564 19.8159C22.8113 19.3306 22.9099 18.8139 22.9558 18.2518C23 17.7106 23 17.0463 23 16.2413V11.7586C23 10.9537 23 10.2893 22.9558 9.74815C22.9099 9.18605 22.8113 8.66934 22.564 8.18401C22.1805 7.43136 21.5686 6.81944 20.816 6.43595C20.3306 6.18865 19.8139 6.09009 19.2518 6.04417C18.7106 5.99995 18.0463 5.99996 17.2413 5.99997L13.618 5.99997ZM12.9799 7.99997C12.9938 8.00026 13.0077 8.00026 13.0217 7.99997H17.2C18.0566 7.99997 18.6389 8.00075 19.089 8.03752C19.5274 8.07334 19.7516 8.13827 19.908 8.21796C20.2843 8.40971 20.5903 8.71567 20.782 9.09199C20.8617 9.24839 20.9266 9.47259 20.9625 9.91101C20.9992 10.3611 21 10.9434 21 11.8V16.2C21 17.0566 20.9992 17.6388 20.9625 18.0889C20.9266 18.5273 20.8617 18.7516 20.782 18.908C20.5903 19.2843 20.2843 19.5902 19.908 19.782C19.7516 19.8617 19.5274 19.9266 19.089 19.9624C18.6389 19.9992 18.0566 20 17.2 20H6.8C5.94342 20 5.36113 19.9992 4.91104 19.9624C4.47262 19.9266 4.24842 19.8617 4.09202 19.782C3.7157 19.5902 3.40974 19.2843 3.21799 18.908C3.1383 18.7516 3.07337 18.5273 3.03755 18.0889C3.00078 17.6388 3 17.0566 3 16.2V7.99997H12.9799Z"})),R=C=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...C},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7587 2H16.2413C17.0463 1.99999 17.7106 1.99998 18.2518 2.04419C18.8139 2.09012 19.3306 2.18868 19.816 2.43598C20.5686 2.81947 21.1805 3.43139 21.564 4.18404C21.8113 4.66937 21.9099 5.18608 21.9558 5.74817C22 6.28936 22 6.95372 22 7.75868V16.2413C22 17.0463 22 17.7106 21.9558 18.2518C21.9099 18.8139 21.8113 19.3306 21.564 19.816C21.1805 20.5686 20.5686 21.1805 19.816 21.564C19.3306 21.8113 18.8139 21.9099 18.2518 21.9558C17.7106 22 17.0463 22 16.2413 22H7.75868C6.95372 22 6.28936 22 5.74817 21.9558C5.18608 21.9099 4.66937 21.8113 4.18404 21.564C3.43139 21.1805 2.81947 20.5686 2.43598 19.816C2.18868 19.3306 2.09012 18.8139 2.04419 18.2518C1.99998 17.7106 1.99999 17.0463 2 16.2413V7.7587C1.99999 6.95373 1.99998 6.28937 2.04419 5.74817C2.09012 5.18608 2.18868 4.66937 2.43597 4.18404C2.81947 3.43139 3.43139 2.81947 4.18404 2.43597C4.66937 2.18868 5.18608 2.09012 5.74817 2.04419C6.28937 1.99998 6.95373 1.99999 7.7587 2ZM10 20H16.2C17.0566 20 17.6389 19.9992 18.089 19.9624C18.5274 19.9266 18.7516 19.8617 18.908 19.782C19.2843 19.5903 19.5903 19.2843 19.782 18.908C19.8617 18.7516 19.9266 18.5274 19.9624 18.089C19.9992 17.6389 20 17.0566 20 16.2V7.8C20 6.94342 19.9992 6.36113 19.9624 5.91104C19.9266 5.47262 19.8617 5.24842 19.782 5.09202C19.5903 4.7157 19.2843 4.40973 18.908 4.21799C18.7516 4.1383 18.5274 4.07337 18.089 4.03755C17.6389 4.00078 17.0566 4 16.2 4H10L10 20ZM8 4L8 20H7.8C6.94342 20 6.36113 19.9992 5.91104 19.9624C5.47262 19.9266 5.24842 19.8617 5.09202 19.782C4.7157 19.5903 4.40973 19.2843 4.21799 18.908C4.1383 18.7516 4.07337 18.5274 4.03755 18.089C4.00078 17.6389 4 17.0566 4 16.2V7.8C4 6.94342 4.00078 6.36113 4.03755 5.91104C4.07337 5.47262 4.1383 5.24842 4.21799 5.09202C4.40973 4.7157 4.7157 4.40973 5.09202 4.21799C5.24842 4.1383 5.47262 4.07337 5.91104 4.03755C6.36113 4.00078 6.94342 4 7.8 4H8ZM11.5 7C11.5 6.44772 11.9477 6 12.5 6H17.5C18.0523 6 18.5 6.44772 18.5 7C18.5 7.55229 18.0523 8 17.5 8H12.5C11.9477 8 11.5 7.55229 11.5 7ZM11.5 11C11.5 10.4477 11.9477 10 12.5 10H17.5C18.0523 10 18.5 10.4477 18.5 11C18.5 11.5523 18.0523 12 17.5 12H12.5C11.9477 12 11.5 11.5523 11.5 11ZM11.5 15C11.5 14.4477 11.9477 14 12.5 14H17.5C18.0523 14 18.5 14.4477 18.5 15C18.5 15.5523 18.0523 16 17.5 16H12.5C11.9477 16 11.5 15.5523 11.5 15Z"})),D=C=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...C},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.0331 3.55266C16.2491 2.10798 17.4952 1 19 1C20.6569 1 22 2.34315 22 4C22 5.65685 20.6569 7 19 7C18.0222 7 17.1537 6.53221 16.606 5.80823L14.7071 7.70711C14.5196 7.89464 14.2652 8 14 8H11.3028L8.5547 9.83205C8.39043 9.94156 8.19742 10 8 10H6C5.44772 10 5 9.55228 5 9C5 8.44772 5.44772 8 6 8H7.69722L10.4453 6.16795C10.6096 6.05844 10.8026 6 11 6H13.5858L16.0331 3.55266ZM19 3C18.4477 3 18 3.44771 18 4C18 4.55228 18.4477 5 19 5C19.5523 5 20 4.55228 20 4C20 3.44772 19.5523 3 19 3ZM4.62228 2.69442C6.62277 1.19905 9.25414 1.36395 11.3162 2.05132C11.8402 2.22596 12.1233 2.79228 11.9487 3.31623C11.774 3.84017 11.2077 4.12333 10.6838 3.94868C8.90412 3.35547 7.06274 3.36718 5.81971 4.29634C4.46575 5.30843 3 7.24435 3 12C3 12.9382 3.05705 13.7667 3.15904 14.5H4.99576C5.16125 14.5 5.32416 14.4589 5.46986 14.3805L11.7479 11H16.1707C16.5825 9.83481 17.6938 9 19 9C20.6569 9 22 10.3431 22 12C22 13.6569 20.6569 15 19 15C17.6938 15 16.5825 14.1652 16.1707 13H12.2521L6.41806 16.1414C5.98094 16.3768 5.49223 16.5 4.99576 16.5H3.61096C4.1633 18.166 5.01143 19.0995 5.81971 19.7037C7.06274 20.6328 8.90412 20.6445 10.6838 20.0513C11.2077 19.8767 11.774 20.1598 11.9487 20.6838C12.1233 21.2077 11.8402 21.774 11.3162 21.9487C9.25414 22.636 6.62277 22.8009 4.62228 21.3056C2.65716 19.8367 1 17.241 1 12C1 6.75899 2.65716 4.16335 4.62228 2.69442ZM19 11C18.4477 11 18 11.4477 18 12C18 12.5523 18.4477 13 19 13C19.5523 13 20 12.5523 20 12C20 11.4477 19.5523 11 19 11ZM8.79289 16.2929C8.98043 16.1054 9.23478 16 9.5 16H14C14.2652 16 14.5196 16.1054 14.7071 16.2929L16.606 18.1918C17.1537 17.4678 18.0222 17 19 17C20.6569 17 22 18.3431 22 20C22 21.6569 20.6569 23 19 23C17.4952 23 16.2491 21.892 16.0331 20.4473L13.5858 18H9.91421L9.20711 18.7071C8.81658 19.0976 8.18342 19.0976 7.79289 18.7071C7.40237 18.3166 7.40237 17.6834 7.79289 17.2929L8.79289 16.2929ZM19 19C18.4477 19 18 19.4477 18 20C18 20.5523 18.4477 21 19 21C19.5523 21 20 20.5523 20 20C20 19.4477 19.5523 19 19 19Z"})),T=C=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...C},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5971 1.18505C11.8629 1.13038 12.1371 1.13038 12.4029 1.18505C12.7102 1.24824 12.9848 1.40207 13.2032 1.52436C13.2235 1.53575 13.2433 1.54687 13.2627 1.55761L12.7846 2.41823L13.2627 1.55761L20.6627 5.66872C20.6831 5.68009 20.7042 5.6917 20.7258 5.70359C20.9569 5.8309 21.2476 5.99097 21.4707 6.23315L21.1563 6.52296L21.4707 6.23315C21.6637 6.44253 21.8097 6.6907 21.899 6.96105C22.0024 7.27375 22.0011 7.60553 22.0002 7.8694C22.0001 7.89406 22 7.91813 22 7.94153L22 12.5001C22 13.0524 21.5523 13.5001 21 13.5001C20.4477 13.5001 20 13.0524 20 12.5001L20 8.69955L17.0029 10.3646C16.992 10.3709 16.9811 10.377 16.9701 10.3829L13 12.5885L13 20.3006L13.5144 20.0148C13.9971 19.7466 14.6059 19.9205 14.8742 20.4033C15.1424 20.8861 14.9684 21.4949 14.4856 21.7631L13.2627 22.4426C13.2433 22.4533 13.2235 22.4644 13.2032 22.4758C12.9848 22.5981 12.7102 22.7519 12.4029 22.8151C12.1371 22.8698 11.8629 22.8698 11.5971 22.8151C11.2898 22.7519 11.0152 22.5981 10.7968 22.4758C10.7765 22.4644 10.7567 22.4533 10.7373 22.4426L3.33733 18.3314C3.31688 18.3201 3.2958 18.3085 3.27421 18.2966C3.04308 18.1693 2.75245 18.0092 2.52927 17.767C2.33632 17.5576 2.1903 17.3095 2.10097 17.0391C1.99765 16.7264 1.99886 16.3946 1.99982 16.1308C1.99991 16.1061 2 16.082 2 16.0586V7.94153C2 7.91813 1.99991 7.89406 1.99982 7.8694C1.99886 7.60553 1.99765 7.27375 2.10097 6.96105C2.1903 6.69069 2.33632 6.44253 2.52927 6.23315C2.75244 5.99098 3.04306 5.8309 3.27419 5.7036C3.29579 5.6917 3.31687 5.68009 3.33733 5.66872L3.33733 5.66872L6.99904 3.63444C7.00862 3.62891 7.01828 3.62354 7.02802 3.61834L10.7373 1.55761C10.7567 1.54687 10.7765 1.53575 10.7968 1.52437C11.0152 1.40207 11.2898 1.24824 11.5971 1.18505ZM7.5 5.64404L5.05914 7.00008L12 10.8561L14.4408 9.50006L7.5 5.64404ZM16.5 8.3561L9.55913 4.50008L11.7086 3.30592C11.8602 3.22174 11.9375 3.1792 11.9952 3.15136C11.9969 3.15056 11.9985 3.1498 12 3.14907C12.0015 3.1498 12.0031 3.15056 12.0048 3.15136C12.0625 3.1792 12.1398 3.22173 12.2914 3.30592L18.9408 7.00006L16.5 8.3561ZM11 12.5885L4 8.69959V16.0586C4 16.2416 4.00042 16.3353 4.0045 16.4031C4.00462 16.4051 4.00475 16.407 4.00487 16.4088C4.0064 16.4098 4.00802 16.4108 4.00971 16.4119C4.067 16.4484 4.14867 16.4943 4.30862 16.5831L3.82297 17.4573L4.30862 16.5831L11 20.3006L11 12.5885ZM19 14.0001C19.5523 14.0001 20 14.4478 20 15.0001V17.0001H22C22.5523 17.0001 23 17.4478 23 18.0001C23 18.5524 22.5523 19.0001 22 19.0001H20V21.0001C20 21.5524 19.5523 22.0001 19 22.0001C18.4477 22.0001 18 21.5524 18 21.0001V19.0001H16C15.4477 19.0001 15 18.5524 15 18.0001C15 17.4478 15.4477 17.0001 16 17.0001H18V15.0001C18 14.4478 18.4477 14.0001 19 14.0001Z"})),b=C=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...C},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.6634 4.40771C20.7762 3.73089 20.1894 3.14411 19.5126 3.25691L16.114 3.82335C16.8361 4.39318 17.5361 5.01441 18.2079 5.68618C18.8896 6.36789 19.5193 7.07869 20.096 7.81215L20.6634 4.40771ZM19.3551 10.1804C18.6205 9.10701 17.7659 8.07266 16.7937 7.10039C15.8308 6.13747 14.8069 5.29004 13.7446 4.56019L9.9976 8.56559C9.98958 8.57449 9.9814 8.58322 9.97309 8.5918L7.17626 11.5815C6.05341 12.7818 5.89351 14.5446 6.68049 15.9047L12.2925 10.2927C12.683 9.90216 13.3162 9.90216 13.7067 10.2927C14.0973 10.6832 14.0973 11.3164 13.7067 11.7069L8.11719 17.2965C9.46251 18.0183 11.1682 17.8391 12.3388 16.7441L15.3245 13.9509C15.3357 13.94 15.3472 13.9293 15.3589 13.9188L19.3551 10.1804ZM17.1759 14.9578L20.7743 11.5915C21.327 11.0744 21.694 10.3896 21.8184 9.64298L22.6362 4.7365C22.9746 2.70604 21.2143 0.945715 19.1838 1.28413L14.2773 2.10187C13.5307 2.22631 12.8459 2.59329 12.3288 3.14605L8.96251 6.74448L6.69595 5.98896C6.03378 5.76824 5.30444 5.9087 4.77161 6.35955L1.91445 8.77715C0.744598 9.76702 1.07695 11.6508 2.51492 12.1806L4.32557 12.8477C3.98551 14.3806 4.29093 16.0249 5.23466 17.3505L2.79252 19.7927C2.402 20.1832 2.402 20.8164 2.79252 21.2069C3.18305 21.5974 3.81621 21.5974 4.20674 21.2069L6.66301 18.7506C7.97201 19.6433 9.57553 19.9269 11.0727 19.5947L11.7397 21.4052C12.2695 22.8432 14.1533 23.1756 15.1432 22.0057L17.5608 19.1485C18.0116 18.6157 18.1521 17.8864 17.9314 17.2242L17.1759 14.9578ZM15.5688 16.4611L13.7051 18.2046C13.4573 18.4364 13.1941 18.6417 12.9189 18.8205L13.6164 20.7138L16.034 17.8567L15.5688 16.4611ZM5.09979 11.0015C5.27862 10.7263 5.48391 10.463 5.71572 10.2152L7.45914 8.35154L6.06349 7.88633L3.20634 10.3039L5.09979 11.0015Z"})),A=C=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...C},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.56811 2C4.57873 2 4.58936 2.00001 4.60001 2.00001H5.40001C5.41065 2.00001 5.42128 2 5.4319 2C5.68429 1.99997 5.93008 1.99994 6.13824 2.01695C6.36683 2.03563 6.63656 2.07969 6.90799 2.21799C7.28431 2.40974 7.59027 2.7157 7.78202 3.09202C7.92032 3.36345 7.96438 3.63318 7.98306 3.86178C7.98669 3.90624 7.98955 3.95241 7.99179 4.00001L16.0082 4.00001C16.0105 3.95241 16.0133 3.90624 16.0169 3.86178C16.0356 3.63318 16.0797 3.36345 16.218 3.09202C16.4097 2.7157 16.7157 2.40974 17.092 2.21799C17.3634 2.07969 17.6332 2.03563 17.8618 2.01695C18.0699 1.99994 18.3157 1.99997 18.5681 2H19.4319C19.6843 1.99997 19.9301 1.99994 20.1382 2.01695C20.3668 2.03563 20.6366 2.07969 20.908 2.21799C21.2843 2.40974 21.5903 2.7157 21.782 3.09202C21.9203 3.36345 21.9644 3.63318 21.9831 3.86178C22.0001 4.06993 22 4.31571 22 4.56809V5.43192C22 5.6843 22.0001 5.93008 21.9831 6.13824C21.9644 6.36683 21.9203 6.63656 21.782 6.90799C21.5903 7.28431 21.2843 7.59027 20.908 7.78202C20.6366 7.92032 20.3668 7.96438 20.1382 7.98306C20.0938 7.98669 20.0476 7.98955 20 7.99179V16.0082C20.0476 16.0105 20.0938 16.0133 20.1382 16.0169C20.3668 16.0356 20.6366 16.0797 20.908 16.218C21.2843 16.4097 21.5903 16.7157 21.782 17.092C21.9203 17.3634 21.9644 17.6332 21.9831 17.8618C22.0001 18.0699 22 18.3157 22 18.5681V19.4319C22 19.6843 22.0001 19.9301 21.9831 20.1382C21.9644 20.3668 21.9203 20.6366 21.782 20.908C21.5903 21.2843 21.2843 21.5903 20.908 21.782C20.6366 21.9203 20.3668 21.9644 20.1382 21.9831C19.9301 22.0001 19.6843 22 19.4319 22H18.5681C18.3157 22 18.0699 22.0001 17.8618 21.9831C17.6332 21.9644 17.3634 21.9203 17.092 21.782C16.7157 21.5903 16.4097 21.2843 16.218 20.908C16.0797 20.6366 16.0356 20.3668 16.0169 20.1382C16.0133 20.0938 16.0105 20.0476 16.0082 20H7.99179C7.98955 20.0476 7.98669 20.0938 7.98306 20.1382C7.96438 20.3668 7.92032 20.6366 7.78202 20.908C7.59027 21.2843 7.28431 21.5903 6.90799 21.782C6.63656 21.9203 6.36683 21.9644 6.13824 21.9831C5.93008 22.0001 5.6843 22 5.43192 22H4.56809C4.31571 22 4.06993 22.0001 3.86178 21.9831C3.63318 21.9644 3.36345 21.9203 3.09202 21.782C2.7157 21.5903 2.40974 21.2843 2.21799 20.908C2.07969 20.6366 2.03563 20.3668 2.01695 20.1382C1.99994 19.9301 1.99997 19.6843 2 19.4319V18.5681C1.99997 18.3157 1.99994 18.0699 2.01695 17.8618C2.03563 17.6332 2.07969 17.3634 2.21799 17.092C2.40974 16.7157 2.7157 16.4097 3.09202 16.218C3.36345 16.0797 3.63318 16.0356 3.86178 16.0169C3.90624 16.0133 3.95241 16.0105 4.00001 16.0082V7.99179C3.95241 7.98955 3.90624 7.98669 3.86178 7.98306C3.63318 7.96438 3.36345 7.92032 3.09202 7.78202C2.7157 7.59027 2.40974 7.28431 2.21799 6.90799C2.07969 6.63656 2.03563 6.36683 2.01695 6.13824C1.99994 5.93008 1.99997 5.68429 2 5.4319C2 5.42128 2.00001 5.41065 2.00001 5.40001V4.60001C2.00001 4.58936 2 4.57873 2 4.56811C1.99997 4.31572 1.99994 4.06993 2.01695 3.86178C2.03563 3.63318 2.07969 3.36345 2.21799 3.09202C2.40974 2.7157 2.7157 2.40974 3.09202 2.21799C3.36345 2.07969 3.63318 2.03563 3.86178 2.01695C4.06993 1.99994 4.31572 1.99997 4.56811 2ZM6.00001 7.99179V16.0082C6.0476 16.0105 6.09377 16.0133 6.13824 16.0169C6.36683 16.0356 6.63656 16.0797 6.90799 16.218C7.28431 16.4097 7.59027 16.7157 7.78202 17.092C7.92032 17.3634 7.96438 17.6332 7.98306 17.8618C7.98669 17.9062 7.98955 17.9524 7.99179 18H16.0082C16.0105 17.9524 16.0133 17.9062 16.0169 17.8618C16.0356 17.6332 16.0797 17.3634 16.218 17.092C16.4097 16.7157 16.7157 16.4097 17.092 16.218C17.3634 16.0797 17.6332 16.0356 17.8618 16.0169C17.9062 16.0133 17.9524 16.0105 18 16.0082V7.99179C17.9524 7.98955 17.9062 7.98669 17.8618 7.98306C17.6332 7.96438 17.3634 7.92032 17.092 7.78202C16.7157 7.59027 16.4097 7.28431 16.218 6.90799C16.0797 6.63656 16.0356 6.36683 16.0169 6.13824C16.0133 6.09377 16.0105 6.0476 16.0082 6.00001L7.99179 6.00001C7.98955 6.0476 7.98669 6.09377 7.98306 6.13824C7.96438 6.36683 7.92032 6.63656 7.78202 6.90799C7.59027 7.28431 7.28431 7.59027 6.90799 7.78202C6.63656 7.92032 6.36683 7.96438 6.13824 7.98306C6.09377 7.98669 6.0476 7.98955 6.00001 7.99179ZM6.00001 4.60001C6.00001 4.30348 5.99923 4.14122 5.9897 4.02464C5.98932 4.02 5.98894 4.0156 5.98856 4.01145C5.98441 4.01107 5.98001 4.01069 5.97537 4.01031C5.85879 4.00078 5.69653 4.00001 5.40001 4.00001H4.60001C4.30348 4.00001 4.14122 4.00078 4.02464 4.01031C4.02 4.01069 4.0156 4.01107 4.01145 4.01145C4.01107 4.0156 4.01069 4.02 4.01031 4.02464C4.00078 4.14122 4.00001 4.30348 4.00001 4.60001V5.40001C4.00001 5.69653 4.00078 5.85879 4.01031 5.97537C4.01069 5.98001 4.01107 5.98441 4.01145 5.98856C4.0156 5.98894 4.02 5.98932 4.02464 5.9897C4.14122 5.99923 4.30348 6.00001 4.60001 6.00001H5.40001C5.69653 6.00001 5.85879 5.99923 5.97537 5.9897C5.98001 5.98932 5.98441 5.98894 5.98856 5.98856C5.98894 5.98441 5.98932 5.98001 5.9897 5.97537C5.99923 5.85879 6.00001 5.69653 6.00001 5.40001V4.60001ZM18 5.40001C18 5.69653 18.0008 5.85879 18.0103 5.97537C18.0107 5.98001 18.0111 5.98441 18.0115 5.98856C18.0156 5.98894 18.02 5.98932 18.0246 5.9897C18.1412 5.99923 18.3035 6.00001 18.6 6.00001H19.4C19.6965 6.00001 19.8588 5.99923 19.9754 5.9897C19.98 5.98932 19.9844 5.98893 19.9886 5.98855C19.9889 5.9844 19.9893 5.98001 19.9897 5.97537C19.9992 5.85879 20 5.69653 20 5.40001V4.60001C20 4.30348 19.9992 4.14122 19.9897 4.02464C19.9893 4.02 19.9889 4.0156 19.9885 4.01145C19.9844 4.01107 19.98 4.01069 19.9754 4.01031C19.8588 4.00078 19.6965 4.00001 19.4 4.00001H18.6C18.3035 4.00001 18.1412 4.00078 18.0246 4.01031C18.02 4.01069 18.0156 4.01107 18.0115 4.01145C18.0111 4.0156 18.0107 4.02 18.0103 4.02464C18.0008 4.14122 18 4.30348 18 4.60001V5.40001ZM18.6 18C18.3035 18 18.1412 18.0008 18.0246 18.0103C18.02 18.0107 18.0156 18.0111 18.0115 18.0115C18.0111 18.0156 18.0107 18.02 18.0103 18.0246C18.0008 18.1412 18 18.3035 18 18.6V19.4C18 19.6965 18.0008 19.8588 18.0103 19.9754C18.0107 19.98 18.0111 19.9844 18.0115 19.9885C18.0156 19.9889 18.02 19.9893 18.0246 19.9897C18.1412 19.9992 18.3035 20 18.6 20H19.4C19.6965 20 19.8588 19.9992 19.9754 19.9897C19.98 19.9893 19.9844 19.9889 19.9886 19.9885C19.9889 19.9844 19.9893 19.98 19.9897 19.9754C19.9992 19.8588 20 19.6965 20 19.4V18.6C20 18.3035 19.9992 18.1412 19.9897 18.0246C19.9893 18.02 19.9889 18.0156 19.9885 18.0115C19.9844 18.0111 19.98 18.0107 19.9754 18.0103C19.8588 18.0008 19.6965 18 19.4 18H18.6ZM6.00001 18.6C6.00001 18.3035 5.99923 18.1412 5.9897 18.0246C5.98932 18.02 5.98894 18.0156 5.98856 18.0115C5.98441 18.0111 5.98001 18.0107 5.97537 18.0103C5.85879 18.0008 5.69653 18 5.40001 18H4.60001C4.30348 18 4.14122 18.0008 4.02464 18.0103C4.02 18.0107 4.0156 18.0111 4.01145 18.0115C4.01107 18.0156 4.01069 18.02 4.01031 18.0246C4.00078 18.1412 4.00001 18.3035 4.00001 18.6V19.4C4.00001 19.6965 4.00078 19.8588 4.01031 19.9754C4.01069 19.98 4.01107 19.9844 4.01145 19.9885C4.0156 19.9889 4.02 19.9893 4.02464 19.9897C4.14122 19.9992 4.30348 20 4.60001 20H5.40001C5.69653 20 5.85879 19.9992 5.97537 19.9897C5.98001 19.9893 5.98441 19.9889 5.98856 19.9885C5.98894 19.9844 5.98932 19.98 5.9897 19.9754C5.99923 19.8588 6.00001 19.6965 6.00001 19.4V18.6Z"}));function B({type:C,...t}){switch(C){case"orchestrator":return s.jsx(D,{...t});case"artifact_store":return s.jsx(S,{...t});case"container_registry":return s.jsx(h,{...t});case"step_operator":return s.jsx(h,{...t});case"model_deployer":return s.jsx(b,{...t});case"feature_store":return s.jsx(y,{...t});case"experiment_tracker":return s.jsx(E,{...t});case"alerter":return s.jsx(Z,{...t});case"annotator":return s.jsx(A,{...t});case"data_validator":return s.jsx(j,{...t});case"image_builder":return s.jsx(T,{...t});case"model_registry":return s.jsx(R,{...t})}}function $({type:C,children:t}){return s.jsxs(v,{rounded:!1,className:"inline-flex items-center gap-0.5 text-text-sm",color:"purple",emphasis:"minimal",children:[s.jsx(B,{type:C,className:"h-4 w-4 fill-current"}),s.jsx("span",{children:t})]})}const w=r.enum(["aws","gcp"]),G=r.object({provider:w}),W=r.object({region:r.string().trim().min(1),stackName:r.string().trim().min(1,"Stack name is required").max(32,"Stack name must be less than 32 characters").regex(/^[a-zA-Z0-9-]+$/,"Stack name can only contain alphanumeric characters and hyphens")}),f="new-infra-data",g=r.object({provider:w,stackName:r.string().min(1).trim(),location:r.string().min(1).trim(),timestamp:r.string().min(1).trim()});function O(C){localStorage.setItem(f,JSON.stringify(C))}function J(){try{const C=localStorage.getItem(f),t=C?JSON.parse(C):{};return g.safeParse(t)}catch{return F(),g.safeParse({})}}function F(){localStorage.removeItem(f)}export{$ as C,W as a,O as b,F as c,G as d,M as f,J as p,l as s};
@@ -1 +0,0 @@
1
- import{r as e}from"./@radix-CFOkMR_E.js";const o=l=>e.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...l},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.29289 8.29289C5.68342 7.90237 6.31658 7.90237 6.70711 8.29289L12 13.5858L17.2929 8.29289C17.6834 7.90237 18.3166 7.90237 18.7071 8.29289C19.0976 8.68342 19.0976 9.31658 18.7071 9.70711L12.7071 15.7071C12.3166 16.0976 11.6834 16.0976 11.2929 15.7071L5.29289 9.70711C4.90237 9.31658 4.90237 8.68342 5.29289 8.29289Z"})),n=l=>e.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C12.5523 4 13 4.44772 13 5V11H19C19.5523 11 20 11.4477 20 12C20 12.5523 19.5523 13 19 13H13V19C13 19.5523 12.5523 20 12 20C11.4477 20 11 19.5523 11 19V13H5C4.44772 13 4 12.5523 4 12C4 11.4477 4.44772 11 5 11H11V5C11 4.44772 11.4477 4 12 4Z"}));export{o as S,n as a};
@@ -1,21 +0,0 @@
1
- <svg width="350" height="240" viewBox="0 0 350 240" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path
3
- d="M20 28C20 23.5817 23.5817 20 28 20H64C68.4183 20 72 23.5817 72 28V64C72 68.4183 68.4183 72 64 72H28C23.5817 72 20 68.4183 20 64V28Z"
4
- fill="#AF8BF8" />
5
- <path fill-rule="evenodd" clip-rule="evenodd"
6
- d="M39 41.3334C39 37.4674 42.134 34.3334 46 34.3334C49.866 34.3334 53 37.4674 53 41.3334V42.6754C53.3297 42.7477 53.6462 42.8529 53.952 43.0087C54.83 43.4561 55.544 44.17 55.9914 45.0481C56.2799 45.6143 56.3949 46.2171 56.4484 46.8729C56.5 47.5043 56.5 48.2794 56.5 49.2185V50.9483C56.5 51.8874 56.5 52.6624 56.4484 53.2938C56.3949 53.9496 56.2799 54.5524 55.9914 55.1187C55.544 55.9968 54.83 56.7107 53.952 57.1581C53.3857 57.4466 52.7829 57.5616 52.1271 57.6151C51.4957 57.6667 50.7207 57.6667 49.7815 57.6667H42.2185C41.2793 57.6667 40.5043 57.6667 39.8729 57.6151C39.2171 57.5616 38.6143 57.4466 38.048 57.1581C37.17 56.7107 36.456 55.9968 36.0086 55.1187C35.7201 54.5524 35.6051 53.9496 35.5516 53.2938C35.5 52.6624 35.5 51.8874 35.5 50.9482V49.2185C35.5 48.2794 35.5 47.5043 35.5516 46.8729C35.6051 46.2171 35.7201 45.6143 36.0086 45.0481C36.456 44.17 37.17 43.4561 38.048 43.0087C38.3538 42.8529 38.6703 42.7477 39 42.6754V41.3334ZM41.3333 42.5019C41.6107 42.5 41.9055 42.5 42.2185 42.5H49.7815C50.0945 42.5 50.3893 42.5 50.6667 42.5019V41.3334C50.6667 38.756 48.5773 36.6667 46 36.6667C43.4227 36.6667 41.3333 38.756 41.3333 41.3334V42.5019ZM40.0629 44.8772C39.5514 44.919 39.2898 44.9947 39.1074 45.0877C38.6683 45.3114 38.3114 45.6684 38.0877 46.1074C37.9947 46.2899 37.9189 46.5514 37.8771 47.0629C37.8342 47.588 37.8333 48.2674 37.8333 49.2667V50.9C37.8333 51.8994 37.8342 52.5787 37.8771 53.1038C37.9189 53.6153 37.9947 53.8769 38.0877 54.0593C38.3114 54.4984 38.6683 54.8554 39.1074 55.0791C39.2898 55.172 39.5514 55.2478 40.0629 55.2896C40.588 55.3325 41.2673 55.3334 42.2667 55.3334H49.7333C50.7327 55.3334 51.412 55.3325 51.9371 55.2896C52.4486 55.2478 52.7102 55.172 52.8926 55.0791C53.3317 54.8554 53.6886 54.4984 53.9124 54.0593C54.0053 53.8769 54.0811 53.6153 54.1229 53.1038C54.1658 52.5787 54.1667 51.8994 54.1667 50.9V49.2667C54.1667 48.2674 54.1658 47.588 54.1229 47.0629C54.0811 46.5514 54.0053 46.2899 53.9124 46.1074C53.6886 45.6684 53.3317 45.3114 52.8926 45.0877C52.7102 44.9947 52.4486 44.919 51.9371 44.8772C51.412 44.8343 50.7327 44.8334 49.7333 44.8334H42.2667C41.2673 44.8334 40.588 44.8343 40.0629 44.8772ZM46 47.75C46.6443 47.75 47.1667 48.2724 47.1667 48.9167V51.25C47.1667 51.8944 46.6443 52.4167 46 52.4167C45.3557 52.4167 44.8333 51.8944 44.8333 51.25V48.9167C44.8333 48.2724 45.3557 47.75 46 47.75Z"
7
- fill="white" />
8
- <path
9
- d="M93.816 59.384C92.3227 59.384 90.936 59.1067 89.656 58.552C88.376 57.976 87.288 57.1973 86.392 56.216C85.496 55.2347 84.8347 54.104 84.408 52.824L87.608 51.48C88.184 52.952 89.0267 54.0827 90.136 54.872C91.2453 55.6613 92.5253 56.056 93.976 56.056C94.8293 56.056 95.576 55.928 96.216 55.672C96.856 55.3947 97.3467 55.0107 97.688 54.52C98.0507 54.0293 98.232 53.464 98.232 52.824C98.232 51.9493 97.9867 51.256 97.496 50.744C97.0053 50.232 96.28 49.8267 95.32 49.528L90.84 48.12C89.048 47.5653 87.6827 46.7227 86.744 45.592C85.8053 44.44 85.336 43.096 85.336 41.56C85.336 40.216 85.6667 39.0427 86.328 38.04C86.9893 37.016 87.896 36.216 89.048 35.64C90.2213 35.064 91.5547 34.776 93.048 34.776C94.4773 34.776 95.7787 35.032 96.952 35.544C98.1253 36.0347 99.128 36.7173 99.96 37.592C100.813 38.4667 101.432 39.48 101.816 40.632L98.68 42.008C98.2107 40.7493 97.4747 39.7787 96.472 39.096C95.4907 38.4133 94.3493 38.072 93.048 38.072C92.2587 38.072 91.5653 38.2107 90.968 38.488C90.3707 38.744 89.9013 39.128 89.56 39.64C89.24 40.1307 89.08 40.7067 89.08 41.368C89.08 42.136 89.3253 42.8187 89.816 43.416C90.3067 44.0133 91.0533 44.4613 92.056 44.76L96.216 46.072C98.1147 46.648 99.544 47.48 100.504 48.568C101.464 49.6347 101.944 50.968 101.944 52.568C101.944 53.8907 101.592 55.064 100.888 56.088C100.205 57.112 99.256 57.9227 98.04 58.52C96.824 59.096 95.416 59.384 93.816 59.384ZM112.999 59.384C111.271 59.384 109.735 58.9893 108.391 58.2C107.068 57.3893 106.033 56.3013 105.287 54.936C104.54 53.5493 104.167 52.0027 104.167 50.296C104.167 48.5467 104.54 47 105.287 45.656C106.055 44.312 107.079 43.256 108.359 42.488C109.639 41.6987 111.089 41.304 112.711 41.304C114.012 41.304 115.175 41.528 116.199 41.976C117.223 42.424 118.087 43.0427 118.791 43.832C119.495 44.6 120.028 45.4853 120.391 46.488C120.775 47.4907 120.967 48.5573 120.967 49.688C120.967 49.9653 120.956 50.2533 120.935 50.552C120.913 50.8507 120.871 51.128 120.807 51.384H107.015V48.504H118.759L117.031 49.816C117.244 48.7707 117.169 47.8427 116.807 47.032C116.465 46.2 115.932 45.5493 115.207 45.08C114.503 44.5893 113.671 44.344 112.711 44.344C111.751 44.344 110.897 44.5893 110.151 45.08C109.404 45.5493 108.828 46.232 108.423 47.128C108.017 48.0027 107.857 49.0693 107.943 50.328C107.836 51.5013 107.996 52.5253 108.423 53.4C108.871 54.2747 109.489 54.9573 110.279 55.448C111.089 55.9387 112.007 56.184 113.031 56.184C114.076 56.184 114.961 55.9493 115.687 55.48C116.433 55.0107 117.02 54.4027 117.447 53.656L120.391 55.096C120.049 55.9067 119.516 56.6427 118.791 57.304C118.087 57.944 117.233 58.456 116.231 58.84C115.249 59.2027 114.172 59.384 112.999 59.384ZM131.76 59.384C130.032 59.384 128.496 58.9893 127.152 58.2C125.829 57.3893 124.773 56.3013 123.984 54.936C123.216 53.5707 122.832 52.024 122.832 50.296C122.832 48.5893 123.216 47.0533 123.984 45.688C124.752 44.3227 125.808 43.256 127.152 42.488C128.496 41.6987 130.032 41.304 131.76 41.304C132.933 41.304 134.032 41.5173 135.056 41.944C136.08 42.3493 136.965 42.9147 137.712 43.64C138.48 44.3653 139.045 45.208 139.408 46.168L136.24 47.64C135.877 46.744 135.29 46.0293 134.48 45.496C133.69 44.9413 132.784 44.664 131.76 44.664C130.778 44.664 129.893 44.9093 129.104 45.4C128.336 45.8693 127.728 46.5413 127.28 47.416C126.832 48.2693 126.608 49.24 126.608 50.328C126.608 51.416 126.832 52.3973 127.28 53.272C127.728 54.1253 128.336 54.7973 129.104 55.288C129.893 55.7787 130.778 56.024 131.76 56.024C132.805 56.024 133.712 55.7573 134.48 55.224C135.269 54.6693 135.856 53.9333 136.24 53.016L139.408 54.52C139.066 55.4373 138.512 56.2693 137.744 57.016C136.997 57.7413 136.112 58.3173 135.088 58.744C134.064 59.1707 132.954 59.384 131.76 59.384ZM141.982 59V41.688H145.438V45.176L145.118 44.664C145.502 43.5333 146.121 42.7227 146.974 42.232C147.827 41.72 148.851 41.464 150.046 41.464H151.102V44.76H149.598C148.403 44.76 147.433 45.1333 146.686 45.88C145.961 46.6053 145.598 47.6507 145.598 49.016V59H141.982ZM160.744 59.384C159.016 59.384 157.48 58.9893 156.136 58.2C154.813 57.3893 153.778 56.3013 153.032 54.936C152.285 53.5493 151.912 52.0027 151.912 50.296C151.912 48.5467 152.285 47 153.032 45.656C153.8 44.312 154.824 43.256 156.104 42.488C157.384 41.6987 158.834 41.304 160.456 41.304C161.757 41.304 162.92 41.528 163.944 41.976C164.968 42.424 165.832 43.0427 166.536 43.832C167.24 44.6 167.773 45.4853 168.136 46.488C168.52 47.4907 168.712 48.5573 168.712 49.688C168.712 49.9653 168.701 50.2533 168.68 50.552C168.658 50.8507 168.616 51.128 168.552 51.384H154.76V48.504H166.504L164.776 49.816C164.989 48.7707 164.914 47.8427 164.552 47.032C164.21 46.2 163.677 45.5493 162.952 45.08C162.248 44.5893 161.416 44.344 160.456 44.344C159.496 44.344 158.642 44.5893 157.896 45.08C157.149 45.5493 156.573 46.232 156.168 47.128C155.762 48.0027 155.602 49.0693 155.688 50.328C155.581 51.5013 155.741 52.5253 156.168 53.4C156.616 54.2747 157.234 54.9573 158.024 55.448C158.834 55.9387 159.752 56.184 160.776 56.184C161.821 56.184 162.706 55.9493 163.432 55.48C164.178 55.0107 164.765 54.4027 165.192 53.656L168.136 55.096C167.794 55.9067 167.261 56.6427 166.536 57.304C165.832 57.944 164.978 58.456 163.976 58.84C162.994 59.2027 161.917 59.384 160.744 59.384ZM178.769 59.192C176.955 59.192 175.547 58.68 174.545 57.656C173.542 56.632 173.041 55.192 173.041 53.336V44.952H170.001V41.688H170.481C171.291 41.688 171.921 41.4533 172.369 40.984C172.817 40.5147 173.041 39.8747 173.041 39.064V37.72H176.657V41.688H180.593V44.952H176.657V53.176C176.657 53.7733 176.753 54.2853 176.945 54.712C177.137 55.1173 177.446 55.4373 177.873 55.672C178.299 55.8853 178.854 55.992 179.537 55.992C179.707 55.992 179.899 55.9813 180.113 55.96C180.326 55.9387 180.529 55.9173 180.721 55.896V59C180.422 59.0427 180.091 59.0853 179.729 59.128C179.366 59.1707 179.046 59.192 178.769 59.192ZM189.689 59.384C187.919 59.384 186.361 58.9467 185.017 58.072C183.695 57.1973 182.767 56.024 182.233 54.552L185.017 53.24C185.487 54.2213 186.127 55 186.937 55.576C187.769 56.152 188.687 56.44 189.689 56.44C190.543 56.44 191.236 56.248 191.769 55.864C192.303 55.48 192.569 54.9573 192.569 54.296C192.569 53.8693 192.452 53.528 192.217 53.272C191.983 52.9947 191.684 52.7707 191.321 52.6C190.98 52.4293 190.628 52.3013 190.265 52.216L187.545 51.448C186.052 51.0213 184.932 50.3813 184.185 49.528C183.46 48.6533 183.097 47.64 183.097 46.488C183.097 45.4427 183.364 44.536 183.897 43.768C184.431 42.9787 185.167 42.3707 186.105 41.944C187.044 41.5173 188.1 41.304 189.273 41.304C190.852 41.304 192.26 41.6987 193.497 42.488C194.735 43.256 195.609 44.3333 196.121 45.72L193.337 47.032C192.996 46.2 192.452 45.5387 191.705 45.048C190.98 44.5573 190.159 44.312 189.241 44.312C188.452 44.312 187.823 44.504 187.353 44.888C186.884 45.2507 186.649 45.7307 186.649 46.328C186.649 46.7333 186.756 47.0747 186.969 47.352C187.183 47.608 187.46 47.8213 187.801 47.992C188.143 48.1413 188.495 48.2693 188.857 48.376L191.673 49.208C193.103 49.6133 194.201 50.2533 194.969 51.128C195.737 51.9813 196.121 53.0053 196.121 54.2C196.121 55.224 195.844 56.1307 195.289 56.92C194.756 57.688 194.009 58.296 193.049 58.744C192.089 59.1707 190.969 59.384 189.689 59.384Z"
10
- fill="#431D93" />
11
- <path
12
- d="M184.408 207.192C183.661 207.192 182.968 207.053 182.328 206.776C181.688 206.488 181.144 206.099 180.696 205.608C180.248 205.117 179.917 204.552 179.704 203.912L181.304 203.24C181.592 203.976 182.013 204.541 182.568 204.936C183.123 205.331 183.763 205.528 184.488 205.528C184.915 205.528 185.288 205.464 185.608 205.336C185.928 205.197 186.173 205.005 186.344 204.76C186.525 204.515 186.616 204.232 186.616 203.912C186.616 203.475 186.493 203.128 186.248 202.872C186.003 202.616 185.64 202.413 185.16 202.264L182.92 201.56C182.024 201.283 181.341 200.861 180.872 200.296C180.403 199.72 180.168 199.048 180.168 198.28C180.168 197.608 180.333 197.021 180.664 196.52C180.995 196.008 181.448 195.608 182.024 195.32C182.611 195.032 183.277 194.888 184.024 194.888C184.739 194.888 185.389 195.016 185.976 195.272C186.563 195.517 187.064 195.859 187.48 196.296C187.907 196.733 188.216 197.24 188.408 197.816L186.84 198.504C186.605 197.875 186.237 197.389 185.736 197.048C185.245 196.707 184.675 196.536 184.024 196.536C183.629 196.536 183.283 196.605 182.984 196.744C182.685 196.872 182.451 197.064 182.28 197.32C182.12 197.565 182.04 197.853 182.04 198.184C182.04 198.568 182.163 198.909 182.408 199.208C182.653 199.507 183.027 199.731 183.528 199.88L185.608 200.536C186.557 200.824 187.272 201.24 187.752 201.784C188.232 202.317 188.472 202.984 188.472 203.784C188.472 204.445 188.296 205.032 187.944 205.544C187.603 206.056 187.128 206.461 186.52 206.76C185.912 207.048 185.208 207.192 184.408 207.192ZM193.999 207.096C193.093 207.096 192.389 206.84 191.887 206.328C191.386 205.816 191.135 205.096 191.135 204.168V199.976H189.615V198.344H189.855C190.261 198.344 190.575 198.227 190.799 197.992C191.023 197.757 191.135 197.437 191.135 197.032V196.36H192.943V198.344H194.911V199.976H192.943V204.088C192.943 204.387 192.991 204.643 193.087 204.856C193.183 205.059 193.338 205.219 193.551 205.336C193.765 205.443 194.042 205.496 194.383 205.496C194.469 205.496 194.565 205.491 194.671 205.48C194.778 205.469 194.879 205.459 194.975 205.448V207C194.826 207.021 194.661 207.043 194.479 207.064C194.298 207.085 194.138 207.096 193.999 207.096ZM199.094 207.192C198.507 207.192 197.99 207.091 197.542 206.888C197.104 206.675 196.763 206.387 196.518 206.024C196.272 205.651 196.15 205.213 196.15 204.712C196.15 204.243 196.251 203.821 196.454 203.448C196.667 203.075 196.992 202.76 197.43 202.504C197.867 202.248 198.416 202.067 199.078 201.96L202.086 201.464V202.888L199.43 203.352C198.95 203.437 198.598 203.592 198.374 203.816C198.15 204.029 198.038 204.307 198.038 204.648C198.038 204.979 198.16 205.251 198.406 205.464C198.662 205.667 198.987 205.768 199.382 205.768C199.872 205.768 200.299 205.661 200.662 205.448C201.035 205.235 201.323 204.952 201.526 204.6C201.728 204.237 201.83 203.837 201.83 203.4V201.176C201.83 200.749 201.67 200.403 201.35 200.136C201.04 199.859 200.624 199.72 200.102 199.72C199.622 199.72 199.2 199.848 198.838 200.104C198.486 200.349 198.224 200.669 198.054 201.064L196.55 200.312C196.71 199.885 196.971 199.512 197.334 199.192C197.696 198.861 198.118 198.605 198.598 198.424C199.088 198.243 199.606 198.152 200.15 198.152C200.832 198.152 201.435 198.28 201.958 198.536C202.491 198.792 202.902 199.149 203.19 199.608C203.488 200.056 203.638 200.579 203.638 201.176V207H201.91V205.432L202.278 205.48C202.075 205.832 201.814 206.136 201.494 206.392C201.184 206.648 200.827 206.845 200.422 206.984C200.027 207.123 199.584 207.192 199.094 207.192ZM205.592 207V198.344H207.32V200.088L207.16 199.832C207.352 199.267 207.661 198.861 208.088 198.616C208.514 198.36 209.026 198.232 209.624 198.232H210.152V199.88H209.4C208.802 199.88 208.317 200.067 207.944 200.44C207.581 200.803 207.4 201.325 207.4 202.008V207H205.592ZM215.129 207.096C214.222 207.096 213.518 206.84 213.017 206.328C212.515 205.816 212.265 205.096 212.265 204.168V199.976H210.745V198.344H210.985C211.39 198.344 211.705 198.227 211.929 197.992C212.153 197.757 212.265 197.437 212.265 197.032V196.36H214.073V198.344H216.041V199.976H214.073V204.088C214.073 204.387 214.121 204.643 214.217 204.856C214.313 205.059 214.467 205.219 214.681 205.336C214.894 205.443 215.171 205.496 215.513 205.496C215.598 205.496 215.694 205.491 215.801 205.48C215.907 205.469 216.009 205.459 216.105 205.448V207C215.955 207.021 215.79 207.043 215.609 207.064C215.427 207.085 215.267 207.096 215.129 207.096ZM221.617 207.192C220.753 207.192 219.985 206.995 219.313 206.6C218.652 206.195 218.134 205.651 217.761 204.968C217.388 204.275 217.201 203.501 217.201 202.648C217.201 201.773 217.388 201 217.761 200.328C218.145 199.656 218.657 199.128 219.297 198.744C219.937 198.349 220.662 198.152 221.473 198.152C222.124 198.152 222.705 198.264 223.217 198.488C223.729 198.712 224.161 199.021 224.513 199.416C224.865 199.8 225.132 200.243 225.313 200.744C225.505 201.245 225.601 201.779 225.601 202.344C225.601 202.483 225.596 202.627 225.585 202.776C225.574 202.925 225.553 203.064 225.521 203.192H218.625V201.752H224.497L223.633 202.408C223.74 201.885 223.702 201.421 223.521 201.016C223.35 200.6 223.084 200.275 222.721 200.04C222.369 199.795 221.953 199.672 221.473 199.672C220.993 199.672 220.566 199.795 220.193 200.04C219.82 200.275 219.532 200.616 219.329 201.064C219.126 201.501 219.046 202.035 219.089 202.664C219.036 203.251 219.116 203.763 219.329 204.2C219.553 204.637 219.862 204.979 220.257 205.224C220.662 205.469 221.121 205.592 221.633 205.592C222.156 205.592 222.598 205.475 222.961 205.24C223.334 205.005 223.628 204.701 223.841 204.328L225.313 205.048C225.142 205.453 224.876 205.821 224.513 206.152C224.161 206.472 223.734 206.728 223.233 206.92C222.742 207.101 222.204 207.192 221.617 207.192ZM227.205 207V198.344H228.933V200.088L228.773 199.832C228.965 199.267 229.275 198.861 229.701 198.616C230.128 198.36 230.64 198.232 231.237 198.232H231.765V199.88H231.013C230.416 199.88 229.931 200.067 229.557 200.44C229.195 200.803 229.013 201.325 229.013 202.008V207H227.205ZM241.239 207.192C240.396 207.192 239.612 207.037 238.887 206.728C238.172 206.419 237.543 205.992 236.999 205.448C236.466 204.893 236.05 204.243 235.751 203.496C235.452 202.749 235.303 201.928 235.303 201.032C235.303 200.147 235.447 199.331 235.735 198.584C236.034 197.827 236.45 197.176 236.983 196.632C237.516 196.077 238.14 195.651 238.855 195.352C239.57 195.043 240.354 194.888 241.207 194.888C242.05 194.888 242.802 195.032 243.463 195.32C244.135 195.608 244.7 195.987 245.159 196.456C245.618 196.915 245.948 197.416 246.151 197.96L244.471 198.776C244.226 198.125 243.82 197.603 243.255 197.208C242.69 196.803 242.007 196.6 241.207 196.6C240.418 196.6 239.719 196.787 239.111 197.16C238.503 197.533 238.028 198.051 237.687 198.712C237.356 199.373 237.191 200.147 237.191 201.032C237.191 201.917 237.362 202.696 237.703 203.368C238.055 204.029 238.535 204.547 239.143 204.92C239.751 205.283 240.45 205.464 241.239 205.464C241.9 205.464 242.503 205.331 243.047 205.064C243.602 204.787 244.044 204.403 244.375 203.912C244.706 203.411 244.871 202.829 244.871 202.168V201.352L245.719 202.12H241.207V200.52H246.743V201.64C246.743 202.515 246.594 203.299 246.295 203.992C245.996 204.675 245.591 205.256 245.079 205.736C244.567 206.216 243.98 206.579 243.319 206.824C242.658 207.069 241.964 207.192 241.239 207.192ZM251.423 207.192C250.772 207.192 250.201 207.048 249.711 206.76C249.22 206.461 248.836 206.051 248.559 205.528C248.292 204.995 248.159 204.381 248.159 203.688V198.344H249.967V203.528C249.967 203.923 250.047 204.269 250.207 204.568C250.367 204.867 250.591 205.101 250.879 205.272C251.167 205.432 251.497 205.512 251.871 205.512C252.255 205.512 252.591 205.427 252.879 205.256C253.167 205.085 253.391 204.845 253.551 204.536C253.721 204.227 253.807 203.864 253.807 203.448V198.344H255.599V207H253.887V205.304L254.079 205.528C253.876 206.061 253.54 206.472 253.071 206.76C252.601 207.048 252.052 207.192 251.423 207.192ZM257.55 207V198.344H259.358V207H257.55ZM257.55 197.16V195.08H259.358V197.16H257.55ZM265.312 207.192C264.48 207.192 263.733 206.995 263.072 206.6C262.421 206.195 261.904 205.651 261.52 204.968C261.146 204.285 260.96 203.517 260.96 202.664C260.96 201.811 261.152 201.043 261.536 200.36C261.92 199.677 262.437 199.139 263.088 198.744C263.738 198.349 264.474 198.152 265.296 198.152C265.989 198.152 266.602 198.291 267.136 198.568C267.669 198.845 268.09 199.229 268.4 199.72L268.128 200.136V194.888H269.92V207H268.208V205.24L268.416 205.576C268.117 206.099 267.69 206.499 267.136 206.776C266.581 207.053 265.973 207.192 265.312 207.192ZM265.488 205.512C265.989 205.512 266.437 205.389 266.832 205.144C267.237 204.899 267.552 204.563 267.776 204.136C268.01 203.699 268.128 203.208 268.128 202.664C268.128 202.12 268.01 201.635 267.776 201.208C267.552 200.781 267.237 200.445 266.832 200.2C266.437 199.955 265.989 199.832 265.488 199.832C264.986 199.832 264.533 199.955 264.128 200.2C263.722 200.445 263.408 200.781 263.184 201.208C262.96 201.635 262.848 202.12 262.848 202.664C262.848 203.208 262.96 203.699 263.184 204.136C263.408 204.563 263.717 204.899 264.112 205.144C264.517 205.389 264.976 205.512 265.488 205.512ZM275.934 207.192C275.07 207.192 274.302 206.995 273.63 206.6C272.969 206.195 272.452 205.651 272.078 204.968C271.705 204.275 271.518 203.501 271.518 202.648C271.518 201.773 271.705 201 272.078 200.328C272.462 199.656 272.974 199.128 273.614 198.744C274.254 198.349 274.98 198.152 275.79 198.152C276.441 198.152 277.022 198.264 277.534 198.488C278.046 198.712 278.478 199.021 278.83 199.416C279.182 199.8 279.449 200.243 279.63 200.744C279.822 201.245 279.918 201.779 279.918 202.344C279.918 202.483 279.913 202.627 279.902 202.776C279.892 202.925 279.87 203.064 279.838 203.192H272.942V201.752H278.814L277.95 202.408C278.057 201.885 278.02 201.421 277.838 201.016C277.668 200.6 277.401 200.275 277.038 200.04C276.686 199.795 276.27 199.672 275.79 199.672C275.31 199.672 274.884 199.795 274.51 200.04C274.137 200.275 273.849 200.616 273.646 201.064C273.444 201.501 273.364 202.035 273.406 202.664C273.353 203.251 273.433 203.763 273.646 204.2C273.87 204.637 274.18 204.979 274.574 205.224C274.98 205.469 275.438 205.592 275.95 205.592C276.473 205.592 276.916 205.475 277.278 205.24C277.652 205.005 277.945 204.701 278.158 204.328L279.63 205.048C279.46 205.453 279.193 205.821 278.83 206.152C278.478 206.472 278.052 206.728 277.55 206.92C277.06 207.101 276.521 207.192 275.934 207.192Z"
13
- fill="#7A3EF4" />
14
- <path
15
- d="M175 150C191.569 150 205 136.569 205 120C205 103.431 191.569 90 175 90C158.431 90 145 103.431 145 120C145 136.569 158.431 150 175 150Z"
16
- fill="#431D93" />
17
- <path d="M167.047 132.996V109.203L186.703 121.099L167.047 132.996Z" fill="white" />
18
- <path
19
- d="M325.834 205.218C326.558 203.009 326.814 200.674 326.586 198.361C326.357 196.049 325.649 193.809 324.506 191.785L313.04 191.495V191.351L324.076 191.072C322.743 188.974 320.96 187.198 318.856 185.874L310 185.652V185.509L317.871 185.31C314.646 183.581 310.941 182.962 307.329 183.549C303.717 184.136 300.398 185.895 297.886 188.556L307.791 188.807V188.95L297.294 189.213C294.732 192.223 293.328 196.048 293.334 200C293.334 200.179 293.334 200.353 293.342 200.528C293.342 200.54 293.342 200.552 293.342 200.563L297.299 200.664V200.807L293.356 200.907C293.356 200.919 293.356 200.931 293.356 200.942C293.5 203.543 294.255 206.073 295.56 208.328L302.154 208.495V208.638L295.842 208.798C297.39 211.284 299.563 213.319 302.145 214.702C302.35 214.814 302.558 214.919 302.769 215.021V201.176H304.368C304.429 201.176 304.49 201.188 304.547 201.212C304.604 201.235 304.656 201.27 304.699 201.313C304.743 201.357 304.777 201.409 304.801 201.465C304.824 201.522 304.836 201.583 304.836 201.645V215.851C308.193 216.939 311.807 216.939 315.164 215.851V201.645C315.164 201.583 315.176 201.522 315.2 201.465C315.223 201.409 315.258 201.357 315.301 201.313C315.345 201.27 315.396 201.235 315.453 201.212C315.51 201.188 315.571 201.176 315.633 201.176H317.23V215.023C317.438 214.922 317.645 214.817 317.848 214.708C319.478 213.837 320.952 212.702 322.209 211.347L318.07 211.242V211.099L322.536 210.986C323.906 209.425 324.972 207.622 325.678 205.669L319.718 205.517V205.374L325.834 205.218ZM319.542 200.737H300.458L300.113 199.359H302.769V197.882H303.311C303.505 197.882 303.697 197.92 303.876 197.995C304.055 198.069 304.217 198.177 304.354 198.314C304.491 198.451 304.599 198.614 304.673 198.793C304.747 198.972 304.785 199.164 304.785 199.357H308.967V197.39H298.836C298.638 195.816 297.704 194.587 297.704 194.587C300.458 195.225 310 195.275 310 195.275C310 195.275 319.542 195.225 322.295 194.587C322.295 194.587 321.362 195.816 321.164 197.39H311.033V199.358H315.216C315.216 199.164 315.254 198.972 315.328 198.793C315.402 198.614 315.511 198.452 315.648 198.315C315.785 198.178 315.948 198.069 316.127 197.995C316.306 197.921 316.497 197.883 316.691 197.883H317.233V199.358H319.889L319.542 200.737Z"
20
- fill="#431D93" />
21
- </svg>