zenml-nightly 0.58.2.dev20240626__py3-none-any.whl → 0.61.0.dev20240710__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 (213) hide show
  1. README.md +30 -9
  2. RELEASE_NOTES.md +240 -0
  3. zenml/VERSION +1 -1
  4. zenml/analytics/enums.py +3 -0
  5. zenml/cli/__init__.py +28 -0
  6. zenml/cli/artifact.py +1 -2
  7. zenml/cli/integration.py +9 -8
  8. zenml/cli/server.py +6 -0
  9. zenml/cli/stack.py +797 -39
  10. zenml/cli/stack_components.py +7 -0
  11. zenml/cli/text_utils.py +35 -1
  12. zenml/cli/utils.py +127 -10
  13. zenml/client.py +23 -14
  14. zenml/config/docker_settings.py +8 -5
  15. zenml/constants.py +5 -1
  16. zenml/container_registries/base_container_registry.py +1 -0
  17. zenml/enums.py +6 -0
  18. zenml/event_hub/event_hub.py +5 -8
  19. zenml/integrations/aws/__init__.py +1 -0
  20. zenml/integrations/azure/__init__.py +1 -0
  21. zenml/integrations/deepchecks/__init__.py +1 -0
  22. zenml/integrations/discord/__init__.py +1 -0
  23. zenml/integrations/evidently/__init__.py +1 -0
  24. zenml/integrations/facets/__init__.py +1 -0
  25. zenml/integrations/feast/__init__.py +1 -0
  26. zenml/integrations/gcp/__init__.py +3 -1
  27. zenml/integrations/gcp/google_credentials_mixin.py +1 -1
  28. zenml/integrations/gcp/service_connectors/gcp_service_connector.py +266 -58
  29. zenml/integrations/huggingface/__init__.py +1 -0
  30. zenml/integrations/integration.py +24 -0
  31. zenml/integrations/kubeflow/__init__.py +3 -0
  32. zenml/integrations/kubeflow/flavors/kubeflow_orchestrator_flavor.py +1 -1
  33. zenml/integrations/kubeflow/orchestrators/kubeflow_orchestrator.py +0 -1
  34. zenml/integrations/kubernetes/__init__.py +3 -1
  35. zenml/integrations/kubernetes/orchestrators/kube_utils.py +4 -1
  36. zenml/integrations/label_studio/annotators/label_studio_annotator.py +1 -0
  37. zenml/integrations/langchain/__init__.py +1 -0
  38. zenml/integrations/mlflow/__init__.py +3 -1
  39. zenml/integrations/neural_prophet/__init__.py +1 -0
  40. zenml/integrations/polars/__init__.py +1 -0
  41. zenml/integrations/prodigy/__init__.py +1 -0
  42. zenml/integrations/pycaret/__init__.py +6 -0
  43. zenml/integrations/registry.py +37 -0
  44. zenml/integrations/s3/artifact_stores/s3_artifact_store.py +17 -6
  45. zenml/integrations/seldon/__init__.py +1 -0
  46. zenml/integrations/seldon/model_deployers/seldon_model_deployer.py +1 -0
  47. zenml/integrations/skypilot/flavors/skypilot_orchestrator_base_vm_config.py +2 -2
  48. zenml/integrations/skypilot/orchestrators/skypilot_base_vm_orchestrator.py +1 -1
  49. zenml/integrations/skypilot/orchestrators/skypilot_orchestrator_entrypoint.py +2 -2
  50. zenml/integrations/skypilot_aws/__init__.py +2 -1
  51. zenml/integrations/skypilot_azure/__init__.py +1 -1
  52. zenml/integrations/skypilot_gcp/__init__.py +1 -1
  53. zenml/integrations/skypilot_lambda/__init__.py +1 -1
  54. zenml/integrations/skypilot_lambda/flavors/skypilot_orchestrator_lambda_vm_flavor.py +1 -1
  55. zenml/integrations/slack/__init__.py +1 -0
  56. zenml/integrations/tekton/__init__.py +1 -0
  57. zenml/integrations/tensorboard/__init__.py +0 -1
  58. zenml/integrations/tensorflow/__init__.py +18 -6
  59. zenml/integrations/wandb/__init__.py +1 -0
  60. zenml/models/__init__.py +9 -0
  61. zenml/models/v2/core/component.py +18 -0
  62. zenml/models/v2/core/model.py +1 -2
  63. zenml/models/v2/core/service_connector.py +17 -0
  64. zenml/models/v2/core/stack.py +31 -0
  65. zenml/models/v2/misc/full_stack.py +97 -0
  66. zenml/models/v2/misc/stack_deployment.py +66 -0
  67. zenml/new/pipelines/pipeline.py +1 -1
  68. zenml/orchestrators/input_utils.py +3 -6
  69. zenml/stack/stack.py +3 -6
  70. zenml/stack_deployments/__init__.py +14 -0
  71. zenml/stack_deployments/aws_stack_deployment.py +289 -0
  72. zenml/stack_deployments/stack_deployment.py +130 -0
  73. zenml/stack_deployments/utils.py +40 -0
  74. zenml/utils/function_utils.py +1 -1
  75. zenml/utils/pagination_utils.py +7 -5
  76. zenml/utils/pipeline_docker_image_builder.py +97 -68
  77. zenml/utils/pydantic_utils.py +6 -5
  78. zenml/zen_server/cloud_utils.py +18 -3
  79. zenml/zen_server/dashboard/assets/{404-CDPQCl4D.js → 404-DpJaNHKF.js} +1 -1
  80. zenml/zen_server/dashboard/assets/@radix-CFOkMR_E.js +85 -0
  81. zenml/zen_server/dashboard/assets/{@react-router-DYovave8.js → @react-router-CO-OsFwI.js} +2 -2
  82. zenml/zen_server/dashboard/assets/{@reactflow-CHBapDaj.js → @reactflow-DJfzkHO1.js} +2 -2
  83. zenml/zen_server/dashboard/assets/@tanstack-DYiOyJUL.js +22 -0
  84. zenml/zen_server/dashboard/assets/AwarenessChannel-BYDLT2xC.js +1 -0
  85. zenml/zen_server/dashboard/assets/{CodeSnippet-BidtnWOi.js → CodeSnippet-BkOuRmyq.js} +2 -2
  86. zenml/zen_server/dashboard/assets/Commands-ZvWR1BRs.js +1 -0
  87. zenml/zen_server/dashboard/assets/CopyButton-DVwLkafa.js +2 -0
  88. zenml/zen_server/dashboard/assets/{CsvVizualization-BOuez-fG.js → CsvVizualization-C2IiqX4I.js} +7 -7
  89. zenml/zen_server/dashboard/assets/DisplayDate-DYgIjlDF.js +1 -0
  90. zenml/zen_server/dashboard/assets/EmptyState-BMLnFVlB.js +1 -0
  91. zenml/zen_server/dashboard/assets/Error-CqX0VqW_.js +1 -0
  92. zenml/zen_server/dashboard/assets/ExecutionStatus-BoLUXR9t.js +1 -0
  93. zenml/zen_server/dashboard/assets/Helpbox-LFydyVwh.js +1 -0
  94. zenml/zen_server/dashboard/assets/Infobox-DnENC0sh.js +1 -0
  95. zenml/zen_server/dashboard/assets/InlineAvatar-CbJtYr0t.js +1 -0
  96. zenml/zen_server/dashboard/assets/{MarkdownVisualization-DsB2QZiK.js → MarkdownVisualization-xp3hhULl.js} +2 -2
  97. zenml/zen_server/dashboard/assets/Pagination-DEbVUupy.js +1 -0
  98. zenml/zen_server/dashboard/assets/PasswordChecker-DUveqlva.js +1 -0
  99. zenml/zen_server/dashboard/assets/SetPassword-BYBdbQDo.js +1 -0
  100. zenml/zen_server/dashboard/assets/SuccessStep-Nx743hll.js +1 -0
  101. zenml/zen_server/dashboard/assets/{UpdatePasswordSchemas-DnM-c11H.js → UpdatePasswordSchemas-DF9gSzE0.js} +1 -1
  102. zenml/zen_server/dashboard/assets/{aws-t0gKCj_R.js → aws-BgKTfTfx.js} +1 -1
  103. zenml/zen_server/dashboard/assets/{check-circle-BVvhm5dy.js → check-circle-i56092KI.js} +1 -1
  104. zenml/zen_server/dashboard/assets/{chevron-down-zcvCWmyP.js → chevron-down-D_ZlKMqH.js} +1 -1
  105. zenml/zen_server/dashboard/assets/{chevron-right-double-CJ50E9Gr.js → chevron-right-double-BiEMg7rd.js} +1 -1
  106. zenml/zen_server/dashboard/assets/cloud-only-DVbIeckv.js +1 -0
  107. zenml/zen_server/dashboard/assets/{copy-BRhQz3j-.js → copy-BXNk6BjL.js} +1 -1
  108. zenml/zen_server/dashboard/assets/{database-CRRnyFWh.js → database-1xWSgZfO.js} +1 -1
  109. zenml/zen_server/dashboard/assets/{docker-BAonhm6G.js → docker-CQMVm_4d.js} +1 -1
  110. zenml/zen_server/dashboard/assets/{file-text-CbVERUON.js → file-text-CqD_iu6l.js} +1 -1
  111. zenml/zen_server/dashboard/assets/{help-B8rqCvqn.js → help-bu_DgLKI.js} +1 -1
  112. zenml/zen_server/dashboard/assets/index-C_CrU4vI.js +1 -0
  113. zenml/zen_server/dashboard/assets/index-DK1ynKjA.js +55 -0
  114. zenml/zen_server/dashboard/assets/index-inApY3KQ.css +1 -0
  115. zenml/zen_server/dashboard/assets/index-rK_Wuy2W.js +1 -0
  116. zenml/zen_server/dashboard/assets/index.esm-Corw4lXQ.js +1 -0
  117. zenml/zen_server/dashboard/assets/{login-mutation-wzzl23C6.js → login-mutation-BUnVASxp.js} +1 -1
  118. zenml/zen_server/dashboard/assets/not-found-B4VnX8gK.js +1 -0
  119. zenml/zen_server/dashboard/assets/package-CsUhPmou.js +1 -0
  120. zenml/zen_server/dashboard/assets/{page-BmkSiYeQ.js → page-3efNCDeb.js} +2 -2
  121. zenml/zen_server/dashboard/assets/page-7zTHbhhI.js +1 -0
  122. zenml/zen_server/dashboard/assets/page-BEs6jK71.js +1 -0
  123. zenml/zen_server/dashboard/assets/page-BpSqIf4B.js +1 -0
  124. zenml/zen_server/dashboard/assets/{page-AQKopn_4.js → page-Bx6o0ARS.js} +1 -1
  125. zenml/zen_server/dashboard/assets/page-C43QGHTt.js +9 -0
  126. zenml/zen_server/dashboard/assets/page-CR0OG7ss.js +1 -0
  127. zenml/zen_server/dashboard/assets/page-CRTJ0UuR.js +1 -0
  128. zenml/zen_server/dashboard/assets/page-CUZIGO-3.js +1 -0
  129. zenml/zen_server/dashboard/assets/page-CaopxiU1.js +1 -0
  130. zenml/zen_server/dashboard/assets/{page-CuT1SUik.js → page-Cx67M0QT.js} +1 -1
  131. zenml/zen_server/dashboard/assets/page-D7Z399xy.js +1 -0
  132. zenml/zen_server/dashboard/assets/page-D93kd7Xj.js +1 -0
  133. zenml/zen_server/dashboard/assets/{page-BzVZGExK.js → page-DKlIdAe5.js} +1 -1
  134. zenml/zen_server/dashboard/assets/{page-Bi5AI0S7.js → page-DMOYZppS.js} +1 -1
  135. zenml/zen_server/dashboard/assets/page-DMsSn3dv.js +2 -0
  136. zenml/zen_server/dashboard/assets/{page-BW6Ket3a.js → page-Dc_7KMQE.js} +1 -1
  137. zenml/zen_server/dashboard/assets/page-DvCvroOM.js +1 -0
  138. zenml/zen_server/dashboard/assets/page-Hus2pr9T.js +1 -0
  139. zenml/zen_server/dashboard/assets/page-JyfeDUfu.js +1 -0
  140. zenml/zen_server/dashboard/assets/{page-yN4rZ-ZS.js → page-Sxn82W-5.js} +1 -1
  141. zenml/zen_server/dashboard/assets/page-TKXERe16.js +1 -0
  142. zenml/zen_server/dashboard/assets/page-Xu8JEjSU.js +1 -0
  143. zenml/zen_server/dashboard/assets/{play-circle-DK5QMJyp.js → play-circle-CNtZKDnW.js} +1 -1
  144. zenml/zen_server/dashboard/assets/plus-DOeLmm7C.js +1 -0
  145. zenml/zen_server/dashboard/assets/{terminal-B2ovgWuz.js → terminal-By9cErXc.js} +1 -1
  146. zenml/zen_server/dashboard/assets/{update-server-settings-mutation-0Wgz8pUE.js → update-server-settings-mutation-CR8e3Sir.js} +1 -1
  147. zenml/zen_server/dashboard/assets/{url-6_xv0WJS.js → url-DuQMeqYA.js} +1 -1
  148. zenml/zen_server/dashboard/assets/{zod-DrZvVLjd.js → zod-BhoGpZ63.js} +1 -1
  149. zenml/zen_server/dashboard/index.html +7 -7
  150. zenml/zen_server/dashboard_legacy/asset-manifest.json +4 -4
  151. zenml/zen_server/dashboard_legacy/index.html +1 -1
  152. zenml/zen_server/dashboard_legacy/{precache-manifest.f4abc5b7cfa7d90c1caf5521918e29a8.js → precache-manifest.c8c57fb0d2132b1d3c2119e776b7dfb3.js} +4 -4
  153. zenml/zen_server/dashboard_legacy/service-worker.js +1 -1
  154. zenml/zen_server/dashboard_legacy/static/js/{main.ac2f17d0.chunk.js → main.382439a7.chunk.js} +2 -2
  155. zenml/zen_server/dashboard_legacy/static/js/{main.ac2f17d0.chunk.js.map → main.382439a7.chunk.js.map} +1 -1
  156. zenml/zen_server/deploy/helm/Chart.yaml +1 -1
  157. zenml/zen_server/deploy/helm/README.md +2 -2
  158. zenml/zen_server/feature_gate/zenml_cloud_feature_gate.py +11 -5
  159. zenml/zen_server/pipeline_deployment/utils.py +57 -44
  160. zenml/zen_server/rbac/zenml_cloud_rbac.py +11 -5
  161. zenml/zen_server/routers/stack_deployment_endpoints.py +144 -0
  162. zenml/zen_server/routers/workspaces_endpoints.py +64 -0
  163. zenml/zen_server/zen_server_api.py +2 -0
  164. zenml/zen_stores/migrations/utils.py +1 -1
  165. zenml/zen_stores/migrations/versions/0.60.0_release.py +23 -0
  166. zenml/zen_stores/migrations/versions/0.61.0_release.py +23 -0
  167. zenml/zen_stores/migrations/versions/0d707865f404_adding_labels_to_stacks.py +30 -0
  168. zenml/zen_stores/rest_zen_store.py +117 -0
  169. zenml/zen_stores/schemas/stack_schemas.py +10 -0
  170. zenml/zen_stores/schemas/step_run_schemas.py +27 -11
  171. zenml/zen_stores/sql_zen_store.py +283 -0
  172. zenml/zen_stores/zen_store_interface.py +79 -0
  173. {zenml_nightly-0.58.2.dev20240626.dist-info → zenml_nightly-0.61.0.dev20240710.dist-info}/METADATA +32 -10
  174. {zenml_nightly-0.58.2.dev20240626.dist-info → zenml_nightly-0.61.0.dev20240710.dist-info}/RECORD +177 -162
  175. zenml/zen_server/dashboard/assets/@radix-C9DBgJhe.js +0 -77
  176. zenml/zen_server/dashboard/assets/@tanstack-CEbkxrhX.js +0 -30
  177. zenml/zen_server/dashboard/assets/AwarenessChannel-nXGpmj_f.js +0 -1
  178. zenml/zen_server/dashboard/assets/Cards-nwsvQLVS.js +0 -1
  179. zenml/zen_server/dashboard/assets/Commands-DuIWKg_Q.js +0 -1
  180. zenml/zen_server/dashboard/assets/CopyButton-B_YSm-Ds.js +0 -2
  181. zenml/zen_server/dashboard/assets/DisplayDate-BdguISQF.js +0 -1
  182. zenml/zen_server/dashboard/assets/EmptyState-BkooiGtL.js +0 -1
  183. zenml/zen_server/dashboard/assets/Error-B6M0dPph.js +0 -1
  184. zenml/zen_server/dashboard/assets/Helpbox-BQoqCm04.js +0 -1
  185. zenml/zen_server/dashboard/assets/Infobox-Ce9mefqU.js +0 -1
  186. zenml/zen_server/dashboard/assets/InlineAvatar-DGf3dVhV.js +0 -1
  187. zenml/zen_server/dashboard/assets/PageHeader-DGaemzjc.js +0 -1
  188. zenml/zen_server/dashboard/assets/Pagination-DVYfBCCc.js +0 -1
  189. zenml/zen_server/dashboard/assets/PasswordChecker-DSLBp7Vl.js +0 -1
  190. zenml/zen_server/dashboard/assets/SetPassword-B5s7DJug.js +0 -1
  191. zenml/zen_server/dashboard/assets/SuccessStep-ZzczaM7g.js +0 -1
  192. zenml/zen_server/dashboard/assets/cloud-only-Ba_ShBR5.js +0 -1
  193. zenml/zen_server/dashboard/assets/index-CWJ3xbIf.css +0 -1
  194. zenml/zen_server/dashboard/assets/index-QORVVTMN.js +0 -55
  195. zenml/zen_server/dashboard/assets/index.esm-F7nqy9zY.js +0 -1
  196. zenml/zen_server/dashboard/assets/not-found-Dh2la7kh.js +0 -1
  197. zenml/zen_server/dashboard/assets/page-B-5jAKoO.js +0 -1
  198. zenml/zen_server/dashboard/assets/page-B-vWk8a6.js +0 -1
  199. zenml/zen_server/dashboard/assets/page-B0BrqfS8.js +0 -1
  200. zenml/zen_server/dashboard/assets/page-BQxVFlUl.js +0 -1
  201. zenml/zen_server/dashboard/assets/page-ByrHy6Ss.js +0 -1
  202. zenml/zen_server/dashboard/assets/page-CPtY4Kv_.js +0 -1
  203. zenml/zen_server/dashboard/assets/page-CmmukLsl.js +0 -1
  204. zenml/zen_server/dashboard/assets/page-D2D-7qyr.js +0 -9
  205. zenml/zen_server/dashboard/assets/page-DAQQyLxT.js +0 -1
  206. zenml/zen_server/dashboard/assets/page-DHkUMl_E.js +0 -1
  207. zenml/zen_server/dashboard/assets/page-DZCbwOEs.js +0 -2
  208. zenml/zen_server/dashboard/assets/page-DdaIt20-.js +0 -1
  209. zenml/zen_server/dashboard/assets/page-LqLs24Ot.js +0 -1
  210. zenml/zen_server/dashboard/assets/page-lebv0c7C.js +0 -1
  211. {zenml_nightly-0.58.2.dev20240626.dist-info → zenml_nightly-0.61.0.dev20240710.dist-info}/LICENSE +0 -0
  212. {zenml_nightly-0.58.2.dev20240626.dist-info → zenml_nightly-0.61.0.dev20240710.dist-info}/WHEEL +0 -0
  213. {zenml_nightly-0.58.2.dev20240626.dist-info → zenml_nightly-0.61.0.dev20240710.dist-info}/entry_points.txt +0 -0
@@ -1,9 +0,0 @@
1
- const __vite__fileDeps=["assets/CsvVizualization-BOuez-fG.js","assets/@tanstack-CEbkxrhX.js","assets/@radix-C9DBgJhe.js","assets/index-QORVVTMN.js","assets/@react-router-DYovave8.js","assets/@reactflow-CHBapDaj.js","assets/@reactflow-C26Olbza.css","assets/index-CWJ3xbIf.css","assets/MarkdownVisualization-DsB2QZiK.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
- var sr=Object.defineProperty;var ar=(e,t,r)=>t in e?sr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var v=(e,t,r)=>(ar(e,typeof t!="symbol"?t+"":t,r),r);import{j as s,a as P,c as ir}from"./@tanstack-CEbkxrhX.js";import{q as Pe,j as Z,n as ne,F as O,k as I,l as V,s as Ie,C as se,t as J,v as ae,w as ie,S as x,T as E,x as or,y as lr,E as dr,G as cr,H as tt,_ as rt,i as we,h as L,J as Ve,K as ur,L as nt,p as re,M as Me,N as $e,O as M,P as Re,Q as $,R as st,U as at,V as it,W as hr,r as Ae,m as ot,X as fr,Y as k1,Z as mr,o as pr,z as L1}from"./index-QORVVTMN.js";import{r as p,g as Cr}from"./@radix-C9DBgJhe.js";import{S as xr}from"./database-CRRnyFWh.js";import{H as O1,P as S1,u as De,a as gr,g as br,p as wr,S as vr,b as lt,c as yr,d as jr,e as Er}from"./@reactflow-CHBapDaj.js";import{D as dt}from"./chevron-right-double-CJ50E9Gr.js";import{E as q}from"./Error-B6M0dPph.js";import{D as ue}from"./DisplayDate-BdguISQF.js";import{I as He}from"./InlineAvatar-DGf3dVhV.js";import{C as T}from"./CodeSnippet-BidtnWOi.js";import{S as oe}from"./chevron-down-zcvCWmyP.js";import{a as Fe,C as Q,E as fe,b as ct,R as Nr,g as _r}from"./CopyButton-B_YSm-Ds.js";import{E as X}from"./EmptyState-BkooiGtL.js";import{s as kr}from"./url-6_xv0WJS.js";import{I as Lr}from"./Infobox-Ce9mefqU.js";import{S as Or}from"./docker-BAonhm6G.js";import{g as Y,L as ze,b as ut,a as ht}from"./@react-router-DYovave8.js";import{S as Sr}from"./terminal-B2ovgWuz.js";import{P as Tr}from"./PageHeader-DGaemzjc.js";import"./copy-BRhQz3j-.js";import"./check-circle-BVvhm5dy.js";const Pr=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"})),Ir=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"})),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:"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"})),T1=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 Ge({artifactType:e,className:t}){switch(e){case"DataAnalysisArtifact":return s.jsx(Pr,{className:t});case"DataArtifact":return s.jsx(xr,{className:t});case"ModelArtifact":return s.jsx(Ir,{className:t});case"SchemaArtifact":return s.jsx(Vr,{className:t});case"ServiceArtifact":return s.jsx(T1,{className:t});case"StatisticsArtifact":return s.jsx(T1,{className:t});default:return s.jsx(Pe,{className:t})}}function ft({children:e}){return s.jsxs(s.Fragment,{children:[s.jsx(O1,{style:{border:"transparent",top:0,background:"transparent",width:0,height:0},type:"target",position:S1.Top}),s.jsx("div",{className:"flex w-[300px] items-center justify-center",children:e}),s.jsx(O1,{isConnectable:!1,type:"source",style:{border:"transparent",bottom:0,background:"transparent",width:0,height:0},position:S1.Bottom})]})}const Le=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"})),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:"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"})),mt=p.createContext(null);function $r({children:e}){const[t,r]=p.useState(!1);return s.jsx(mt.Provider,{value:{isVisualizationConfirmed:t,setVisualizationConfirmed:r},children:e})}function Rr(){const e=p.useContext(mt);if(!e)throw new Error("useArtifactLoadConfirmationContext must be used within a VisualizationConfirmProvider");return e}function Ar({versionId:e}){return["artifact_versions",e]}async function Dr({versionId:e}){const t=I(V.artifactVersions.detail(e)),r=await Z(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(r.status===404&&ne(),!r.ok)throw new O({message:`Error while fetching artifact version ${e}`,status:r.status,statusText:r.statusText});return r.json()}function le(e,t){return P({queryKey:Ar(e),queryFn:()=>Dr(e),...t})}const P1=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"}));function G({children:e,className:t,...r}){return s.jsx("dt",{...r,className:Ie("col-span-1 flex min-w-0 items-center truncate text-theme-text-secondary",t),children:e})}function B({children:e,className:t,...r}){return s.jsx("dd",{...r,className:Ie("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(G,{children:e}),s.jsx(B,{children:t})]})}function Hr({componentId:e}){return["components",e]}async function Fr({componentId:e}){const t=I(V.components.detail(e)),r=await Z(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(r.status===404&&ne(),!r.ok)throw new O({message:`Error while fetching component ${e}`,status:r.status,statusText:r.statusText});return r.json()}function zr(e,t){return P({queryKey:Hr(e),queryFn:()=>Fr(e),...t})}function Gr({stepId:e}){return["steps",e]}async function Br({stepId:e}){const t=I(V.steps.detail(e)),r=await Z(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(r.status===404&&ne(),!r.ok)throw new O({message:`Error while fetching step ${e}`,status:r.status,statusText:r.statusText});return r.json()}function me(e,t){return P({queryKey:Gr(e),queryFn:()=>Br(e),...t})}function _({title:e,children:t,initialOpen:r=!1,className:n,contentClassName:a,intent:i="primary"}){const[o,l]=p.useState(r);return s.jsxs(se,{className:n,open:o,onOpenChange:l,children:[s.jsx(J,{intent:i,children:s.jsxs(ae,{className:"flex w-full items-center gap-[10px]",children:[s.jsx(oe,{className:` ${o?"":"-rotate-90"} h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`}),e]})}),s.jsx(ie,{className:Ie("space-y-3 border-t border-theme-border-moderate bg-theme-surface-primary px-5 py-3",a),children:t})]})}const Zr=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 qr({artifactVersionId:e}){var l,d,c,u,h,f,m,C,b,w,j;const{data:t,isPending:r,isError:n,error:a}=le({versionId:e}),i=(l=t==null?void 0:t.metadata)==null?void 0:l.producer_step_run_id,{data:o}=me({stepId:i},{enabled:!!i});return r?s.jsx(x,{className:"h-[500px] w-full"}):n?s.jsx(q,{err:a}):s.jsx(_,{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:[((d=t.metadata)==null?void 0:d.producer_step_run_id)&&s.jsx(g,{label:"Producer Step",value:s.jsxs(E,{color:"grey",className:"inline-flex items-center gap-0.5",rounded:!1,emphasis:"subtle",children:[((c=o==null?void 0:o.body)==null?void 0:c.status)==="running"?s.jsx(P1,{className:"mr-1 h-4 w-4 border-[2px]"}):s.jsx(Ge,{artifactType:(u=t.body)==null?void 0:u.type,className:"mr-1 h-4 w-4 fill-current"}),o?o==null?void 0:o.name:s.jsx(x,{className:"h-5 w-5"})]})}),((h=t.body)==null?void 0:h.producer_pipeline_run_id)&&s.jsx(g,{label:"Producer Run",value:s.jsxs(E,{color:Fe((f=o==null?void 0:o.body)==null?void 0:f.status),className:"inline-flex items-center gap-0.5",rounded:!1,emphasis:"subtle",children:[((m=o==null?void 0:o.body)==null?void 0:m.status)==="running"?s.jsx(P1,{className:"mr-1 h-4 w-4 border-[2px]"}):s.jsx(Zr,{className:"mr-1 h-4 w-4 fill-current"}),(C=t.body)==null?void 0:C.producer_pipeline_run_id]})}),s.jsx(g,{label:"Type",value:(b=t.body)==null?void 0:b.type}),s.jsx(g,{label:"Author",value:s.jsx("div",{className:"inline-flex items-center gap-1",children:s.jsx(He,{username:((j=(w=t.body)==null?void 0:w.user)==null?void 0:j.name)||""})})}),s.jsx(g,{label:"Updated",value:s.jsx(ue,{dateString:t.body.updated||""})})]})})}function Yr({artifactVersionId:e}){var d,c,u,h,f,m;const{data:t,isPending:r,isError:n,error:a}=le({versionId:e}),i=(d=t==null?void 0:t.metadata)==null?void 0:d.artifact_store_id,{data:o,isSuccess:l}=zr({componentId:i},{enabled:!!i});return n?s.jsx(q,{err:a}):r?s.jsx(x,{className:"h-[500px] w-full"}):s.jsx(_,{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(G,{className:"col-span-3",children:"URI"}),s.jsx(B,{className:"col-span-3 h-auto",children:s.jsx(T,{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(x,{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(or,{children:s.jsxs(lr,{children:[s.jsx(dr,{className:"cursor-auto",children:(h=t.body)==null?void 0:h.data_type.attribute}),s.jsxs(cr,{children:[(f=t.body)==null?void 0:f.data_type.module,".",(m=t.body)==null?void 0:m.data_type.attribute," "]})]})})})})]})})}function Kr({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(_,{initialOpen:!0,title:"Code",children:s.jsx(T,{fullWidth:!0,highlightCode:!0,wrap:!0,code:t(e)})})}function Wr({artifactVersionId:e}){const{data:t,isError:r,error:n}=le({versionId:e});return r?s.jsx(q,{err:n}):s.jsxs("div",{className:"space-y-5",children:[t?s.jsx(qr,{artifactVersionId:t.id}):s.jsx(x,{className:"h-[500px] rounded-md lg:col-span-2"}),t?s.jsx(Yr,{artifactVersionId:t.id}):s.jsx(x,{className:"h-[500px] rounded-md lg:col-span-2"}),t?s.jsx(Kr,{artifactVersionId:t.id}):s.jsx(x,{className:"h-[500px] rounded-md lg:col-span-2"})]})}function R({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(_,{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(T,{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(Ur,{title:h,value:f},h)),Object.entries(o).map(([h,f])=>s.jsx(R,{intent:"secondary",title:h,data:f},h))]})})}function Ur({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(_,{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:tt(i)})},a))}),n.length>0&&s.jsx("ul",{className:"space-y-4",children:n.map((a,i)=>s.jsx("li",{children:s.jsx(R,{intent:"secondary",title:i,data:a},i)},i))})]},e)})}function Qr(){return s.jsx(_,{initialOpen:!0,title:"Metadata",children:s.jsx(X,{icon:s.jsx(Pe,{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 pt({metadata:e}){const t=Object.values(e||{}).filter(r=>r.body.type==="dict");return s.jsx(s.Fragment,{children:t.map(r=>s.jsx(R,{data:r.body.value,title:r.body.key},r.id))})}function Ct({metadata:e}){const t=Object.entries(e||{}),r=/^<class\s+'.*'>$/,n=t.filter(([i,o])=>o.body.type!=="dict");if(n.length===0)return null;n.sort((i,o)=>i[0].localeCompare(o[0]));const a=i=>i<1024?i+" bytes":i<Math.pow(1024,2)?(i/1024).toFixed(2)+" KB":i<Math.pow(1024,3)?(i/Math.pow(1024,2)).toFixed(2)+" MB":(i/Math.pow(1024,3)).toFixed(2)+" GB";return s.jsx("div",{children:s.jsx(_,{initialOpen:!0,title:"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:n.map(([i,o])=>s.jsx(g,{label:o.body.key,value:s.jsx(s.Fragment,{children:r.test(o.body.value)?s.jsx(T,{className:"py-1",highlightCode:!0,code:o.body.value}):o.body.type==="StorageSize"?s.jsx("div",{className:"py-1",children:a(o.body.value)}):o.body.type==="Uri"?s.jsx("a",{className:"py-1 underline transition-all duration-200 hover:decoration-transparent",rel:"noopener noreferrer",target:"_blank",href:o.body.value,children:o.body.value}):s.jsx("div",{className:"py-1",children:o.body.value})})},o.id))})})})}function Xr({artifactVersionId:e}){var a,i;const{data:t,isError:r,error:n}=le({versionId:e});return r?s.jsx(q,{err:n}):t!=null&&t.metadata?s.jsxs("div",{className:"flex flex-col gap-5",children:[t?s.jsx(Ct,{metadata:(a=t.metadata)==null?void 0:a.run_metadata}):s.jsx(x,{className:"h-9 w-full"}),t?s.jsx(pt,{metadata:(i=t.metadata)==null?void 0:i.run_metadata}):s.jsx(x,{className:"h-9 w-full"})]}):s.jsx(X,{icon:s.jsx(Pe,{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 xt({versionId:e}){return["artifact_versions",e,"visualize"]}async function Jr({versionId:e},t){const r=I(V.artifactVersions.visualize(e)),n=await Z(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 O({message:a[1]||"Failed to fetch artifact visualization",status:n.status,statusText:n.statusText})}if(!n.ok)throw new O({message:`Error while fetching artifact visualization for version ${e}`,status:n.status,statusText:n.statusText});return n.json()}function en(e,t){return P({queryKey:xt(e),queryFn:({signal:r})=>Jr(e,r),...t})}function tn({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 rn({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 nn=p.lazy(()=>rt(()=>import("./CsvVizualization-BOuez-fG.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),sn=p.lazy(()=>rt(()=>import("./MarkdownVisualization-DsB2QZiK.js"),__vite__mapDeps([8,1,2])));function an({artifactVersionId:e,artifactName:t}){const[r,n]=p.useState(!1),{isVisualizationConfirmed:a,setVisualizationConfirmed:i}=Rr(),o=ir(),{data:l,isError:d,error:c,isPending:u}=en({versionId:e},{retry:!1,enabled:!r});return r?s.jsx(X,{icon:s.jsx(we,{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(L,{size:"md",onClick:()=>n(!1),children:"Load Visualization"})]})}):d?c.status===501?s.jsxs(X,{icon:s.jsx(we,{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(X,{icon:s.jsx(we,{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(Ve,{}),s.jsxs("div",{className:"flex flex-col items-center",children:[s.jsx("p",{className:"mb-5 text-display-xs",children:"Loading Visualization"}),s.jsx(L,{onClick:()=>{o.cancelQueries({queryKey:xt({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(gt,{artifactName:t,...l})}),s.jsxs("div",{children:[l.type==="image"&&s.jsx(rn,{content:l.value}),l.type==="html"&&s.jsx(tn,{content:l.value}),l.type==="markdown"&&s.jsx(sn,{content:l.value}),l.type==="csv"&&s.jsx(nn,{content:l.value})]})]}):s.jsx(on,{artifactName:t,setConfirmed:i,...l})}function on({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(L,{size:"md",onClick:()=>t(!0),children:"Load Preview"}),s.jsx(gt,{...r,buttonIntent:"secondary",artifactName:e})]})]})}function gt({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(L,{intent:n,size:"md",className:"mb-4",onClick:l,children:"Download"})}function ln({artifactVersionId:e}){var d,c,u,h,f,m;const[t,r]=p.useState(!1),{data:n,isPending:a,isError:i,error:o}=le({versionId:e});if(i)return s.jsx(X,{icon:s.jsx(Le,{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(x,{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(X,{icon:s.jsx(Le,{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<ur||t?s.jsx(an,{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(L,{onClick:()=>r(!0),size:"md",children:"Confirm"})]})})}function dn({artifactVersionId:e}){var n,a,i;const{data:t}=le({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(nt,{className:"focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none",children:[s.jsx(dt,{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(x,{className:"w-9"}),t?s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx(Ge,{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(x,{className:"h-6 w-7"})]}),s.jsx("div",{className:"p-5",children:s.jsx($r,{children:s.jsxs(Me,{defaultValue:"overview",children:[s.jsxs($e,{children:[s.jsxs(M,{className:"flex items-center gap-2 text-text-md",value:"overview",children:[s.jsx(Re,{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(M,{className:"flex items-center gap-2 truncate text-text-md",value:"metadata",children:[s.jsx(Mr,{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(M,{className:"flex items-center gap-2 text-text-md",value:"visualization",children:[s.jsx(Le,{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($,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"overview",children:s.jsx(Wr,{artifactVersionId:e})}),s.jsx($,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"metadata",children:s.jsx(Xr,{artifactVersionId:e})}),s.jsx($,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"visualization",children:s.jsx(ln,{artifactVersionId:e})})]})})})]})}function cn({children:e,artifactVersionId:t,onOpenChange:r}){return s.jsxs(st,{onOpenChange:r,children:[s.jsx(at,{asChild:!0,children:e}),s.jsx(it,{className:"w-[1000px] overflow-y-auto",children:s.jsx(dn,{artifactVersionId:t})})]})}function un({data:e,selected:t}){const{unselectNodesAndEdges:r}=De(a=>({unselectNodesAndEdges:a.unselectNodesAndEdges}));function n(a){a||setTimeout(()=>{r()},100)}return s.jsx(ft,{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(Ge,{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 I1=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function hn(e,t,r,n){const a=Math.min(I1(e,t)/2,I1(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 ve(e){return{x:e[0],y:e[1]}}const fn=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=hn(ve(n[c-1]),ve(d),ve(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 mn(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:fn({borderRadius:10}),generatePath:wr,gridRatio:t.length>20?6:t.length>10?3:2}});return r===null?s.jsx(vr,{...e}):s.jsx(s.Fragment,{children:s.jsx("path",{className:"react-flow__edge-path",d:r.svgPathString,markerEnd:e.markerEnd,markerStart:e.markerStart})})}const pn=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"})),bt=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 Cn({stepId:e}){var i;const{data:t,isPending:r,isError:n,error:a}=me({stepId:e});return n?s.jsx(q,{err:a}):r?s.jsx(x,{className:"h-[300px] w-full"}):s.jsx(_,{initialOpen:!0,title:"Code",children:s.jsx(T,{fullWidth:!0,highlightCode:!0,wrap:!0,code:((i=t==null?void 0:t.metadata)==null?void 0:i.source_code)||""})})}const xn=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 wt({data:e}){const[t,r]=p.useState(!0);return s.jsxs(se,{open:t,onOpenChange:r,children:[s.jsx(J,{intent:"primary",className:"flex items-center gap-[10px]",children:s.jsxs(ae,{className:"flex w-full items-center gap-[10px]",children:[s.jsx(oe,{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(ie,{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"}),hr(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(xn,{className:"mr-1 mt-0.5 h-5 w-5 fill-theme-text-tertiary"})}),s.jsx(Q,{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(T,{fullWidth:!0,highlightCode:!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(T,{fullWidth:!0,highlightCode:!0,wrap:!0,code:e.requirements})]})]})]})}function gn({buildId:e}){return["pipeline-builds",e]}async function bn({buildId:e},t){const r=I(V.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 O({message:`Error while fetching pipeline build ${e}`,status:n.status,statusText:n.statusText});return n.json()}function vt(e,t){return P({queryKey:gn(e),queryFn:()=>bn(e),...t})}function wn({runId:e}){return["runs",e]}async function vn({runId:e}){const t=I(V.runs.detail(e)),r=await Z(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(r.status===404&&ne(),!r.ok)throw new O({message:`Error while fetching pipeline run ${e}`,status:r.status,statusText:r.statusText});return r.json()}function K(e,t){return P({queryKey:wn(e),queryFn:()=>vn(e),...t})}function yn({stepId:e}){var f,m,C,b,w,j,A,D,H,F;const{data:t,isPending:r,isError:n,error:a}=me({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}=Y(),{data:l}=K({runId:o},{throwOnError:!0,enabled:!!o}),{data:d}=vt({buildId:(b=(C=l==null?void 0:l.body)==null?void 0:C.build)==null?void 0:b.id},{enabled:!!((j=(w=l==null?void 0:l.body)==null?void 0:w.build)!=null&&j.id)}),u=(()=>{var z;const k=(z=d==null?void 0:d.metadata)==null?void 0:z.images;if(!k)return null;if(Object.keys(k).length===1&&Object.keys(k)[0]!=="orchestrator")return Object.keys(k)[0];for(const W in k)if(W!=="orchestrator"&&W.split(".")[1]!=="orchestrator")return W;return"orchestrator"})(),h=u&&((D=(A=d==null?void 0:d.metadata)==null?void 0:A.images)==null?void 0:D[u]);return n?s.jsx(q,{err:a}):r?s.jsxs("div",{className:"space-y-5",children:[s.jsx(x,{className:"h-[200]"}),s.jsx(x,{className:"h-[200px]"}),s.jsx(x,{className:"h-[200px]"})]}):s.jsxs("div",{className:"space-y-5",children:[s.jsx(V1,{data:(F=(H=t.metadata)==null?void 0:H.config)==null?void 0:F.parameters,title:"Parameters"}),h?s.jsx(wt,{data:h}):null,s.jsx(jn,{id:t.id}),i.length>0?s.jsx(V1,{data:i,title:"Extra"}):null]})}function V1({data:e,title:t}){return s.jsx(_,{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:tt(n)})},r))})})}function jn({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(_,{initialOpen:!0,title:"Code",children:[s.jsx("h2",{className:"mb-2 text-text-md text-theme-text-secondary",children:"Get config programmatically"}),s.jsx(T,{fullWidth:!0,highlightCode:!0,wrap:!0,code:t(e)})]})}function En(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 Nn=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 _n({repositoryId:e}){return["code_repositories",e]}async function kn({repositoryId:e}){const t=I(V.code_repositories.detail(e)),r=await fetch(t,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"}});if(r.status===404&&ne(),!r.ok)throw new O({message:`Error while fetching code repository ${e}`,status:r.status,statusText:r.statusText});return r.json()}function Ln(e,t){return P({queryKey:_n(e),queryFn:()=>kn(e),...t})}function On({stepId:e,runId:t}){var w,j,A,D,H,F,k,z,W,te,pe,We,Ue,Qe,Xe,Je,e1,t1,r1,n1,s1,a1,i1,o1,l1,d1,c1,u1,h1,f1,m1,p1,C1,x1,g1,b1,w1,v1,y1;const{data:r,isError:n,isPending:a,error:i}=me({stepId:e}),{data:o}=K({runId:t}),l=(A=(j=(w=o==null?void 0:o.body)==null?void 0:w.code_reference)==null?void 0:j.body)==null?void 0:A.code_repository,{data:d}=Ln({repositoryId:l==null?void 0:l.id},{throwOnError:!0,enabled:!!(l!=null&&l.id)}),c=(D=d==null?void 0:d.metadata)==null?void 0:D.config;if(n)return s.jsx(q,{err:i});if(a)return s.jsx(x,{className:"h-[300px] w-full"});const u=(F=(H=r.metadata)==null?void 0:H.config)==null?void 0:F.enable_cache,h=(k=o==null?void 0:o.metadata)==null?void 0:k.orchestrator_url,f=(z=o==null?void 0:o.metadata)==null?void 0:z.orchestrator_run_id,m=(te=(W=r.metadata)==null?void 0:W.config)==null?void 0:te.enable_artifact_metadata,C=(We=(pe=r.metadata)==null?void 0:pe.config)==null?void 0:We.enable_artifact_visualization,b=()=>{var j1,E1,N1,_1;let de=l==null?void 0:l.name,Ce="";return((E1=(j1=l==null?void 0:l.body)==null?void 0:j1.source)==null?void 0:E1.attribute)==="GitHubCodeRepository"?(de=`${c==null?void 0:c.owner}/${c==null?void 0:c.repository}`,Ce=`https://www.github.com/${de}`):((_1=(N1=l==null?void 0:l.body)==null?void 0:N1.source)==null?void 0:_1.attribute)==="GitLabCodeRepository"&&(de=`${c==null?void 0:c.group}/${c==null?void 0:c.project}`,Ce=`https://www.gitlab.com/${de}`),s.jsxs("a",{target:"_blank",rel:"noopener noreferrer",className:`flex items-center ${Ce?"":"pointer-events-none"}`,onClick:nr=>nr.stopPropagation(),href:Ce,children:[s.jsx(Nn,{className:"mr-1 h-5 w-5 fill-theme-text-brand"}),de]})};return s.jsx(_,{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(Q,{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(Q,{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(Q,{copyText:r.id})]})}),s.jsx(g,{label:"Status",value:s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsxs(E,{color:Fe((Ue=r.body)==null?void 0:Ue.status),rounded:!0,emphasis:"subtle",className:"flex w-fit items-center gap-1 capitalize",children:[s.jsx(fe,{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(ze,{to:Ae.pipelines.namespace(encodeURIComponent((e1=(Je=o.body)==null?void 0:Je.pipeline)==null?void 0:e1.name)),children:s.jsxs(E,{color:"purple",className:"inline-flex items-center gap-0.5",rounded:!1,emphasis:"subtle",children:[s.jsx(ot,{className:"mr-1 h-4 w-4 fill-theme-text-brand"}),(r1=(t1=o.body)==null?void 0:t1.pipeline)==null?void 0:r1.name,s.jsx("div",{className:"rounded-sm bg-primary-50 px-1 py-0.25",children:(a1=(s1=(n1=o.body)==null?void 0:n1.pipeline)==null?void 0:s1.body)==null?void 0:a1.version})]})})}),((i1=o.body)==null?void 0:i1.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:fr((d1=(l1=(o1=o==null?void 0:o.body)==null?void 0:o1.code_reference)==null?void 0:l1.body)==null?void 0:d1.commit,10)})]}),s.jsx(Q,{copyText:(h1=(u1=(c1=o==null?void 0:o.body)==null?void 0:c1.code_reference)==null?void 0:u1.body)==null?void 0:h1.commit})]})})]}):s.jsx(x,{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:[(f1=r.metadata)==null?void 0:f1.cache_key,s.jsx(Q,{copyText:(m1=r.metadata)==null?void 0:m1.cache_key})]})}),s.jsx(g,{label:"Author",value:s.jsx("div",{className:"inline-flex items-center gap-1",children:s.jsx(He,{username:(C1=(p1=r.body)==null?void 0:p1.user)==null?void 0:C1.name})})}),s.jsx(g,{label:"Start Time",value:(x1=r.metadata)!=null&&x1.start_time?s.jsx(ue,{dateString:(g1=r.metadata)==null?void 0:g1.start_time}):"Not available"}),s.jsx(g,{label:"End Time",value:(b1=r.metadata)!=null&&b1.end_time?s.jsx(ue,{dateString:(w1=r.metadata)==null?void 0:w1.end_time}):"Not available"}),s.jsx(g,{label:"Duration",value:En(((v1=r.metadata)==null?void 0:v1.start_time)||"",((y1=r.metadata)==null?void 0:y1.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:C?"green":"grey",children:C?"Enable":"Disabled"})})]})})}function Sn({stepId:e}){return["logs",e]}async function Tn({stepId:e}){const t=I(V.steps.logs(e)),r=await Z(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(!r.ok){const n=await r.json().catch(()=>({}));throw new O({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 Pn(e,t){return P({queryKey:Sn(e),queryFn:()=>Tn(e),...t})}const yt=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:"M14.2242 3.0552C14.0208 3.00637 13.7931 2.99994 13.0118 2.99994H8.5C8.00379 2.99994 7.85253 3.0021 7.73895 3.01705C6.84148 3.13521 6.13526 3.84142 6.01711 4.73889C6.00216 4.85247 6 5.00373 6 5.49994C6 6.05223 5.55228 6.49994 5 6.49994C4.44772 6.49994 4 6.05223 4 5.49994C4 5.47668 3.99999 5.45376 3.99999 5.43118C3.99988 5.03374 3.9998 4.73929 4.03422 4.47784C4.27053 2.6829 5.68296 1.27047 7.4779 1.03416C7.73935 0.99974 8.0338 0.99982 8.43124 0.999929C8.45382 0.999935 8.47674 0.999941 8.5 0.999941H13.0118C13.0462 0.999941 13.0801 0.999925 13.1137 0.999909C13.7487 0.999607 14.2284 0.999378 14.6911 1.11046C15.0993 1.20845 15.4895 1.37007 15.8474 1.58938C16.2531 1.83801 16.5922 2.17744 17.041 2.62667C17.0647 2.65038 17.0887 2.6744 17.113 2.69872L20.3012 5.88695C20.3255 5.91126 20.3495 5.93525 20.3732 5.95893C20.8225 6.40774 21.1619 6.74686 21.4106 7.15259C21.6299 7.51048 21.7915 7.90065 21.8895 8.3088C22.0006 8.77149 22.0003 9.25128 22 9.88627C22 9.9198 22 9.95375 22 9.98817V17.2413C22 18.0462 22 18.7106 21.9558 19.2518C21.9099 19.8139 21.8113 20.3306 21.564 20.8159C21.1805 21.5686 20.5686 22.1805 19.816 22.564C19.3306 22.8113 18.8139 22.9098 18.2518 22.9557C17.7106 23 17.0463 23 16.2413 22.9999H8.5C8.47673 22.9999 8.45381 22.9999 8.43122 23C8.03379 23.0001 7.73935 23.0001 7.4779 22.9657C5.68296 22.7294 4.27053 21.317 4.03422 19.522C3.9998 19.2606 3.99988 18.9661 3.99999 18.5687C3.99999 18.5461 4 18.5232 4 18.4999C4 17.9477 4.44772 17.4999 5 17.4999C5.55228 17.4999 6 17.9477 6 18.4999C6 18.9961 6.00216 19.1474 6.01711 19.261C6.13526 20.1585 6.84148 20.8647 7.73895 20.9828C7.85253 20.9978 8.00379 20.9999 8.5 20.9999H16.2C17.0566 20.9999 17.6389 20.9992 18.089 20.9624C18.5274 20.9266 18.7516 20.8616 18.908 20.782C19.2843 20.5902 19.5903 20.2842 19.782 19.9079C19.8617 19.7515 19.9266 19.5273 19.9624 19.0889C19.9992 18.6388 20 18.0565 20 17.1999V9.98817C20 9.20679 19.9936 8.9791 19.9447 8.77569C19.8957 8.57162 19.8149 8.37653 19.7053 8.19758C19.596 8.01923 19.4395 7.85366 18.887 7.30116L15.6988 4.11294C15.1463 3.56042 14.9807 3.40396 14.8024 3.29466C14.6234 3.185 14.4283 3.10419 14.2242 3.0552ZM5.70711 8.79283C6.09763 9.18336 6.09763 9.81652 5.70711 10.207L3.91421 11.9999L5.70711 13.7928C6.09763 14.1834 6.09763 14.8165 5.70711 15.207C5.31658 15.5976 4.68342 15.5976 4.29289 15.207L1.79289 12.707C1.40237 12.3165 1.40237 11.6834 1.79289 11.2928L4.29289 8.79283C4.68342 8.40231 5.31658 8.40231 5.70711 8.79283ZM8.29289 8.79283C8.68342 8.40231 9.31658 8.40231 9.70711 8.79283L12.2071 11.2928C12.5976 11.6834 12.5976 12.3165 12.2071 12.707L9.70711 15.207C9.31658 15.5976 8.68342 15.5976 8.29289 15.207C7.90237 14.8165 7.90237 14.1834 8.29289 13.7928L10.0858 11.9999L8.29289 10.207C7.90237 9.81652 7.90237 9.18336 8.29289 8.79283Z"})),In=()=>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(Ve,{className:"h-[120px] w-[120px]"}),s.jsx(Mn,{})]}),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 Vn({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}=Pn({stepId:e});return i?s.jsx(q,{err:o}):a?s.jsx(In,{}):s.jsx(_,{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(T,{fullWidth:!0,wrap:!0,code:n||""})})}function Mn(){return s.jsx("div",{className:"absolute rounded-rounded bg-primary-25 p-3",children:s.jsx(yt,{className:"h-7 w-7 fill-primary-400"})})}function $n({stackId:e}){return["stacks",e]}async function Rn({stackId:e}){const t=I(V.stacks.detail(e)),r=await Z(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(r.status===404&&ne(),!r.ok)throw new O({message:`Error while fetching stack ${e}`,status:r.status,statusText:r.statusText});return r.json()}function An(e,t){return P({queryKey:$n(e),queryFn:()=>Rn(e),...t})}function Dn({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(J,{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:k1((d=e.body)==null?void 0:d.type)}),s.jsx("div",{children:e.name})]}):s.jsx(R,{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:k1((c=e.body)==null?void 0:c.type)}),s.jsx("div",{children:e.name})]})})}function jt(){var l,d,c,u;const[e,t]=p.useState(!0),{runId:r}=Y(),{data:n,isError:a,isPending:i}=K({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(x,{className:"h-[250px] w-full"}):a?null:s.jsxs(se,{open:e,onOpenChange:t,children:[s.jsxs(J,{className:"flex justify-between",children:[s.jsx(ae,{className:" flex w-full items-center justify-between",children:s.jsxs("div",{className:"flex items-center gap-[10px]",children:[s.jsx(oe,{className:` ${e?"":"-rotate-90"} h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`}),"Stack"]})}),s.jsx(ze,{to:Ae.stacks.overview,children:s.jsxs(E,{rounded:!1,className:"inline-flex items-center gap-0.5",color:"turquoise",emphasis:"subtle",children:[s.jsx(mr,{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(ie,{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}=An({stackId:e});return n?null:a?s.jsx("div",{className:"space-y-5",children:Array.from({length:3}).map((o,l)=>s.jsx(x,{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(Dn,{component:o[0],run:t})},o[0].id))})}function Fn(e){if(!e)return"light-grey";switch(e){case"completed":return"green";default:return"light-grey"}}function zn({stepId:e}){var i,o,l;const{runId:t}=Y(),{data:r}=me({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(nt,{className:"focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none",children:[s.jsx(dt,{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 ${ct(n)}`,children:s.jsx(fe,{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:Fn(n),children:n||"None"}),typeof a=="boolean"&&s.jsx(re,{size:"sm",color:a?"green":"grey",children:a?"Enable cache":"Disabled cache"})]}):s.jsx(x,{className:"h-6 w-7"})})}),s.jsx("div",{className:"p-5",children:s.jsxs(Me,{defaultValue:"overview",children:[s.jsxs($e,{children:[s.jsxs(M,{className:"flex items-center gap-2 truncate text-text-md",value:"overview",children:[s.jsx(Re,{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(M,{className:"flex items-center gap-2 truncate text-text-md",value:"code",children:[s.jsx(pn,{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(M,{className:"flex items-center gap-2 truncate text-text-md",value:"logs",children:[s.jsx(yt,{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(M,{className:"flex items-center gap-2 truncate text-text-md",value:"config",children:[s.jsx(bt,{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($,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"overview",children:[s.jsx(On,{runId:t,stepId:e}),s.jsx("div",{className:"mt-5",children:s.jsx(jt,{})})]}),s.jsx($,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"code",children:s.jsx(Cn,{stepId:e})}),s.jsx($,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"logs",children:s.jsx(Vn,{stepId:e,stepDetail:r})}),s.jsx($,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"config",children:s.jsx(yn,{stepId:e})})]})})]})}function Gn({children:e,stepId:t,onOpenChange:r}){return s.jsxs(st,{onOpenChange:r,children:[s.jsx(at,{asChild:!0,children:e}),s.jsx(it,{className:"w-[1000px] overflow-y-auto",children:s.jsx(zn,{stepId:t})})]})}const Bn=e=>({unselectAll:e.unselectNodesAndEdges});function Zn({data:e,selected:t}){const{unselectAll:r}=De(Bn);function n(a){a||setTimeout(()=>{r()},100)}return s.jsx(ft,{children:s.jsx(Gn,{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 ${ct(e.status)}`,children:s.jsx(fe,{status:e.status,className:"h-4 w-4"})}),s.jsx("p",{className:"truncate font-semibold",children:e.name})]})})})})}var qn="\0",U="\0",M1="";let Yn=class{constructor(t){v(this,"_isDirected",!0);v(this,"_isMultigraph",!1);v(this,"_isCompound",!1);v(this,"_label");v(this,"_defaultNodeLabelFn",()=>{});v(this,"_defaultEdgeLabelFn",()=>{});v(this,"_nodes",{});v(this,"_in",{});v(this,"_preds",{});v(this,"_out",{});v(this,"_sucs",{});v(this,"_edgeObjs",{});v(this,"_edgeLabels",{});v(this,"_nodeCount",0);v(this,"_edgeCount",0);v(this,"_parent");v(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[U]={})}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]=U,this._children[t]={},this._children[U][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=U;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!==U)return r}}children(t=U){if(this._isCompound){var r=this._children[t];if(r)return Object.keys(r)}else{if(t===U)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=ce(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=Kn(this._isDirected,t,r,n);return t=d.v,r=d.w,Object.freeze(d),this._edgeObjs[l]=d,$1(this._preds[r],t),$1(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?ye(this._isDirected,arguments[0]):ce(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?ye(this._isDirected,arguments[0]):ce(this._isDirected,t,r,n);return this._edgeLabels.hasOwnProperty(a)}removeEdge(t,r,n){var a=arguments.length===1?ye(this._isDirected,arguments[0]):ce(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],R1(this._preds[r],t),R1(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 $1(e,t){e[t]?e[t]++:e[t]=1}function R1(e,t){--e[t]||delete e[t]}function ce(e,t,r,n){var a=""+t,i=""+r;if(!e&&a>i){var o=a;a=i,i=o}return a+M1+i+M1+(n===void 0?qn:n)}function Kn(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 ye(e,t){return ce(e,t.v,t.w,t.name)}var Be=Yn,Wn="2.2.2",Un={Graph:Be,version:Wn},Qn=Be,Xn={write:Jn,read:rs};function Jn(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:es(e),edges:ts(e)};return e.graph()!==void 0&&(t.value=structuredClone(e.graph())),t}function es(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 ts(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 rs(e){var t=new Qn(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 ns=ss;function ss(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 as=class{constructor(){v(this,"_arr",[]);v(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 Et=as,is=Et,Nt=ls,os=()=>1;function ls(e,t,r,n){return ds(e,String(t),r||os,n||function(a){return e.outEdges(a)})}function ds(e,t,r,n){var a={},i=new is,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 cs=Nt,us=hs;function hs(e,t,r){return e.nodes().reduce(function(n,a){return n[a]=cs(e,a,t,r),n},{})}var _t=fs;function fs(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 ms=_t,ps=Cs;function Cs(e){return ms(e).filter(function(t){return t.length>1||t.length===1&&e.hasEdge(t[0],t[0])})}var xs=bs,gs=()=>1;function bs(e,t,r){return ws(e,t||gs,r||function(n){return e.outEdges(n)})}function ws(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 kt(e){var t={},r={},n=[];function a(i){if(r.hasOwnProperty(i))throw new Oe;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 Oe;return n}class Oe extends Error{constructor(){super(...arguments)}}var Lt=kt;kt.CycleException=Oe;var A1=Lt,vs=ys;function ys(e){try{A1(e)}catch(t){if(t instanceof A1.CycleException)return!1;throw t}return!0}var Ot=js;function js(e,t,r){Array.isArray(t)||(t=[t]);var n=e.isDirected()?l=>e.successors(l):l=>e.neighbors(l),a=r==="post"?Es:Ns,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 Es(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]),St(t(i[0]),o=>a.push([o,!1])))}}function Ns(e,t,r,n){for(var a=[e];a.length>0;){var i=a.pop();r.hasOwnProperty(i)||(r[i]=!0,n.push(i),St(t(i),o=>a.push(o)))}}function St(e,t){for(var r=e.length;r--;)t(e[r],r,e);return e}var _s=Ot,ks=Ls;function Ls(e,t){return _s(e,t,"post")}var Os=Ot,Ss=Ts;function Ts(e,t){return Os(e,t,"pre")}var Ps=Be,Is=Et,Vs=Ms;function Ms(e,t){var r=new Ps,n={},a=new Is,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 $s={components:ns,dijkstra:Nt,dijkstraAll:us,findCycles:ps,floydWarshall:xs,isAcyclic:vs,postorder:ks,preorder:Ss,prim:Vs,tarjan:_t,topsort:Lt},D1=Un,S={Graph:D1.Graph,json:Xn,alg:$s,version:D1.version};let Rs=class{constructor(){let t={};t._next=t._prev=t,this._sentinel=t}dequeue(){let t=this._sentinel,r=t._prev;if(r!==t)return H1(r),r}enqueue(t){let r=this._sentinel;t._prev&&t._next&&H1(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,As)),n=n._prev;return"["+t.join(", ")+"]"}};function H1(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function As(e,t){if(e!=="_next"&&e!=="_prev")return t}var Ds=Rs;let Hs=S.Graph,Fs=Ds;var zs=Bs;let Gs=()=>1;function Bs(e,t){if(e.nodeCount()<=1)return[];let r=qs(e,t||Gs);return Zs(r.graph,r.buckets,r.zeroIdx).flatMap(a=>e.outEdges(a.v,a.w))}function Zs(e,t,r){let n=[],a=t[t.length-1],i=t[0],o;for(;e.nodeCount();){for(;o=i.dequeue();)je(e,t,r,o);for(;o=a.dequeue();)je(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(je(e,t,r,o,!0));break}}}return n}function je(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,Se(t,r,d)}),e.outEdges(n.v).forEach(o=>{let l=e.edge(o),d=o.w,c=e.node(d);c.in-=l,Se(t,r,c)}),e.removeNode(n.v),i}function qs(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=Ys(a+n+3).map(()=>new Fs),o=n+1;return r.nodes().forEach(l=>{Se(i,o,r.node(l))}),{graph:r,buckets:i,zeroIdx:o}}function Se(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 Ys(e){const t=[];for(let r=0;r<e;r++)t.push(r);return t}let Tt=S.Graph;var y={addBorderNode:ra,addDummyNode:Pt,asNonCompoundGraph:Ws,buildLayerMatrix:Js,intersectRect:Xs,mapValues:la,maxRank:It,normalizeRanks:ea,notime:aa,partition:na,pick:oa,predecessorWeights:Qs,range:Mt,removeEmptyRanks:ta,simplify:Ks,successorWeights:Us,time:sa,uniqueId:Vt,zipObject:Ze};function Pt(e,t,r,n){let a;do a=Vt(n);while(e.hasNode(a));return r.dummy=t,e.setNode(a,r),a}function Ks(e){let t=new Tt().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 Ws(e){let t=new Tt({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 Us(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 Ze(e.nodes(),t)}function Qs(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 Ze(e.nodes(),t)}function Xs(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 Js(e){let t=Mt(It(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 ea(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 ta(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 ra(e,t,r,n){let a={width:0,height:0};return arguments.length>=4&&(a.rank=r,a.order=n),Pt(e,"border",a,t)}function It(e){return Math.max(...e.nodes().map(t=>{let r=e.node(t).rank;return r===void 0?Number.MIN_VALUE:r}))}function na(e,t){let r={lhs:[],rhs:[]};return e.forEach(n=>{t(n)?r.lhs.push(n):r.rhs.push(n)}),r}function sa(e,t){let r=Date.now();try{return t()}finally{console.log(e+" time: "+(Date.now()-r)+"ms")}}function aa(e,t){return t()}let ia=0;function Vt(e){var t=++ia;return toString(e)+t}function Mt(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 oa(e,t){const r={};for(const n of t)e[n]!==void 0&&(r[n]=e[n]);return r}function la(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 Ze(e,t){return e.reduce((r,n,a)=>(r[n]=t[a],r),{})}let da=zs,ca=y.uniqueId;var ua={run:ha,undo:ma};function ha(e){(e.graph().acyclicer==="greedy"?da(e,r(e)):fa(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,ca("rev"))});function r(n){return a=>n.edge(a).weight}}function fa(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 ma(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 pa=y;var Ca={run:xa,undo:ba};function xa(e){e.graph().dummyChains=[],e.edges().forEach(t=>ga(e,t))}function ga(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=pa.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 ba(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 be={longestPath:wa,slack:va};function wa(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 va(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}var ya=S.Graph,ge=be.slack,$t=ja;function ja(e){var t=new ya({directed:!1}),r=e.nodes()[0],n=e.nodeCount();t.setNode(r,{});for(var a,i;Ea(t,e)<n;)a=Na(t,e),i=t.hasNode(a.v)?ge(e,a):-ge(e,a),_a(t,e,i);return t}function Ea(e,t){function r(n){t.nodeEdges(n).forEach(a=>{var i=a.v,o=n===i?a.w:i;!e.hasNode(o)&&!ge(t,a)&&(e.setNode(o,{}),e.setEdge(n,o,{}),r(o))})}return e.nodes().forEach(r),e.nodeCount()}function Na(e,t){return t.edges().reduce((n,a)=>{let i=Number.POSITIVE_INFINITY;return e.hasNode(a.v)!==e.hasNode(a.w)&&(i=ge(t,a)),i<n[0]?[i,a]:n},[Number.POSITIVE_INFINITY,null])[1]}function _a(e,t,r){e.nodes().forEach(n=>t.node(n).rank+=r)}var ka=$t,F1=be.slack,La=be.longestPath,Oa=S.alg.preorder,Sa=S.alg.postorder,Ta=y.simplify,Pa=ee;ee.initLowLimValues=Ye;ee.initCutValues=qe;ee.calcCutValue=Rt;ee.leaveEdge=Dt;ee.enterEdge=Ht;ee.exchangeEdges=Ft;function ee(e){e=Ta(e),La(e);var t=ka(e);Ye(t),qe(t,e);for(var r,n;r=Dt(t);)n=Ht(t,e,r),Ft(t,e,r,n)}function qe(e,t){var r=Sa(e,e.nodes());r=r.slice(0,r.length-1),r.forEach(n=>Ia(e,t,n))}function Ia(e,t,r){var n=e.node(r),a=n.parent;e.edge(r,a).cutvalue=Rt(e,t,r)}function Rt(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,Ma(e,r,u)){var m=e.edge(r,u).cutvalue;l+=h?-m:m}}}),l}function Ye(e,t){arguments.length<2&&(t=e.nodes()[0]),At(e,{},1,t)}function At(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=At(e,t,r,l,n))}),o.low=i,o.lim=r++,a?o.parent=a:delete o.parent,r}function Dt(e){return e.edges().find(t=>e.edge(t).cutvalue<0)}function Ht(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===z1(e,e.node(u.v),l)&&d!==z1(e,e.node(u.w),l));return c.reduce((u,h)=>F1(t,h)<F1(t,u)?h:u)}function Ft(e,t,r,n){var a=r.v,i=r.w;e.removeEdge(a,i),e.setEdge(n.v,n.w,{}),Ye(e),qe(e,t),Va(e,t)}function Va(e,t){var r=e.nodes().find(a=>!t.node(a).parent),n=Oa(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 Ma(e,t,r){return e.hasEdge(t,r)}function z1(e,t,r){return r.low<=t.lim&&t.lim<=r.lim}var $a=be,zt=$a.longestPath,Ra=$t,Aa=Pa,Da=Ha;function Ha(e){switch(e.graph().ranker){case"network-simplex":G1(e);break;case"tight-tree":za(e);break;case"longest-path":Fa(e);break;default:G1(e)}}var Fa=zt;function za(e){zt(e),Ra(e)}function G1(e){Aa(e)}var Ga=Ba;function Ba(e){let t=qa(e);e.graph().dummyChains.forEach(r=>{let n=e.node(r),a=n.edgeObj,i=Za(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 Za(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 qa(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 Te=y;var Ya={run:Ka,cleanup:Qa};function Ka(e){let t=Te.addDummyNode(e,"root",{},"_root"),r=Wa(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=Ua(e)+1;e.children().forEach(o=>Gt(e,t,a,i,n,r,o)),e.graph().nodeRankFactor=a}function Gt(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=Te.addBorderNode(e,"_bt"),c=Te.addBorderNode(e,"_bb"),u=e.node(o);e.setParent(d,o),u.borderTop=d,e.setParent(c,o),u.borderBottom=c,l.forEach(h=>{Gt(e,t,r,n,a,i,h);let f=e.node(h),m=f.borderTop?f.borderTop:h,C=f.borderBottom?f.borderBottom:h,b=f.borderTop?n:2*n,w=m!==C?1:a-i[o]+1;e.setEdge(d,m,{weight:b,minlen:w,nestingEdge:!0}),e.setEdge(C,c,{weight:b,minlen:w,nestingEdge:!0})}),e.parent(o)||e.setEdge(t,d,{weight:0,minlen:a+i[o]})}function Wa(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 Ua(e){return e.edges().reduce((t,r)=>t+e.edge(r).weight,0)}function Qa(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 Xa=y;var Ja=ei;function ei(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)B1(e,"borderLeft","_bl",r,a,i),B1(e,"borderRight","_br",r,a,i)}}e.children().forEach(t)}function B1(e,t,r,n,a,i){let o={width:0,height:0,rank:i,borderType:t},l=a[t][i-1],d=Xa.addDummyNode(e,"border",o,r);a[t][i]=d,e.setParent(d,n),l&&e.setEdge(l,d,{weight:1})}var ti={adjust:ri,undo:ni};function ri(e){let t=e.graph().rankdir.toLowerCase();(t==="lr"||t==="rl")&&Bt(e)}function ni(e){let t=e.graph().rankdir.toLowerCase();(t==="bt"||t==="rl")&&si(e),(t==="lr"||t==="rl")&&(ai(e),Bt(e))}function Bt(e){e.nodes().forEach(t=>Z1(e.node(t))),e.edges().forEach(t=>Z1(e.edge(t)))}function Z1(e){let t=e.width;e.width=e.height,e.height=t}function si(e){e.nodes().forEach(t=>Ee(e.node(t))),e.edges().forEach(t=>{let r=e.edge(t);r.points.forEach(Ee),r.hasOwnProperty("y")&&Ee(r)})}function Ee(e){e.y=-e.y}function ai(e){e.nodes().forEach(t=>Ne(e.node(t))),e.edges().forEach(t=>{let r=e.edge(t);r.points.forEach(Ne),r.hasOwnProperty("x")&&Ne(r)})}function Ne(e){let t=e.x;e.x=e.y,e.y=t}let ii=y;var oi=li;function li(e){let t={},r=e.nodes().filter(l=>!e.children(l).length),n=Math.max(...r.map(l=>e.node(l).rank)),a=ii.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 di=y.zipObject;var ci=ui;function ui(e,t){let r=0;for(let n=1;n<t.length;++n)r+=hi(e,t[n-1],t[n]);return r}function hi(e,t,r){let n=di(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 fi=mi;function mi(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 pi=y;var Ci=xi;function xi(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 gi(n)}function gi(e){let t=[];function r(a){return i=>{i.merged||(i.barycenter===void 0||a.barycenter===void 0||i.barycenter>=a.barycenter)&&bi(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=>pi.pick(a,["vs","i","barycenter","weight"]))}function bi(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 wi=y;var vi=yi;function yi(e,t){let r=wi.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(ji(!!t)),d=q1(i,a,d),n.forEach(u=>{d+=u.vs.length,i.push(u.vs),o+=u.barycenter*u.weight,l+=u.weight,d=q1(i,a,d)});let c={vs:i.flat(!0)};return l&&(c.barycenter=o/l,c.weight=l),c}function q1(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 ji(e){return(t,r)=>t.barycenter<r.barycenter?-1:t.barycenter>r.barycenter?1:e?r.i-t.i:t.i-r.i}let Ei=fi,Ni=Ci,_i=vi;var ki=Zt;function Zt(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=Ei(e,a);c.forEach(f=>{if(e.children(f.v).length){let m=Zt(e,f.v,r,n);d[f.v]=m,m.hasOwnProperty("barycenter")&&Oi(f,m)}});let u=Ni(c,r);Li(u,d);let h=_i(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 Li(e,t){e.forEach(r=>{r.vs=r.vs.flatMap(n=>t[n]?t[n].vs:n)})}function Oi(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 Si=S.Graph,Ti=y;var Pi=Ii;function Ii(e,t,r){let n=Vi(e),a=new Si({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 Vi(e){for(var t;e.hasNode(t=Ti.uniqueId("_root")););return t}var Mi=$i;function $i(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 Ri=oi,Ai=ci,Di=ki,Hi=Pi,Fi=Mi,zi=S.Graph,xe=y;var Gi=qt;function qt(e,t){if(t&&typeof t.customOrder=="function"){t.customOrder(e,qt);return}let r=xe.maxRank(e),n=Y1(e,xe.range(1,r+1),"inEdges"),a=Y1(e,xe.range(r-1,-1,-1),"outEdges"),i=Ri(e);if(K1(e,i),t&&t.disableOptimalOrderHeuristic)return;let o=Number.POSITIVE_INFINITY,l;for(let d=0,c=0;c<4;++d,++c){Bi(d%2?n:a,d%4>=2),i=xe.buildLayerMatrix(e);let u=Ai(e,i);u<o&&(c=0,l=Object.assign({},i),o=u)}K1(e,l)}function Y1(e,t,r){return t.map(function(n){return Hi(e,n,r)})}function Bi(e,t){let r=new zi;e.forEach(function(n){let a=n.graph().root,i=Di(n,a,r,t);i.vs.forEach((o,l)=>n.node(o).order=l),Fi(n,r,i.vs)})}function K1(e,t){Object.values(t).forEach(r=>r.forEach((n,a)=>e.node(n).order=a))}let Zi=S.Graph,he=y;var qi={positionX:Wi,findType1Conflicts:Yt,findType2Conflicts:Kt,addConflict:Ke,hasConflict:Wt,verticalAlignment:Ut,horizontalCompaction:Qt,alignCoordinates:Jt,findSmallestWidthAlignment:Xt,balance:er};function Yt(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=Yi(e,u),m=f?e.node(f).order:d;(f||u===c)&&(i.slice(l,h+1).forEach(C=>{e.predecessors(C).forEach(b=>{let w=e.node(b),j=w.order;(j<o||m<j)&&!(w.dummy&&e.node(C).dummy)&&Ke(r,b,C)})}),l=h+1,o=m)}),i}return t.length&&t.reduce(n),r}function Kt(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)&&Ke(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 Yi(e,t){if(e.node(t).dummy)return e.predecessors(t).find(r=>e.node(r).dummy)}function Ke(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 Wt(e,t,r){if(t>r){let n=t;t=r,r=n}return!!e[t]&&e[t].hasOwnProperty(r)}function Ut(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 C=u[f];i[c]===c&&d<o[C]&&!Wt(r,c,C)&&(i[C]=c,i[c]=a[c]=a[C],d=o[C])}}})}),{root:a,align:i}}function Qt(e,t,r,n,a){let i={},o=Ki(e,t,r,a),l=a?"borderLeft":"borderRight";function d(h,f){let m=o.nodes(),C=m.pop(),b={};for(;C;)b[C]?h(C):(b[C]=!0,m.push(C),m=m.concat(f(C))),C=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((C,b)=>Math.min(C,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 Ki(e,t,r,n){let a=new Zi,i=e.graph(),o=Ui(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 Xt(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=Qi(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 Jt(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 er(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 Wi(e){let t=he.buildLayerMatrix(e),r=Object.assign(Yt(e,t),Kt(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=Ut(e,a,r,d),u=Qt(e,a,c.root,c.align,l==="r");l==="r"&&(u=he.mapValues(u,h=>-h)),n[o+l]=u})});let i=Xt(e,n);return Jt(n,i),er(n,e.graph().align)}function Ui(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 Qi(e,t){return e.node(t).width}let tr=y,Xi=qi.positionX;var Ji=e2;function e2(e){e=tr.asNonCompoundGraph(e),t2(e),Object.entries(Xi(e)).forEach(([t,r])=>e.node(t).x=r)}function t2(e){let t=tr.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 W1=ua,U1=Ca,r2=Da,n2=y.normalizeRanks,s2=Ga,a2=y.removeEmptyRanks,Q1=Ya,i2=Ja,X1=ti,o2=Gi,l2=Ji,N=y,d2=S.Graph;var c2=u2;function u2(e,t){let r=t&&t.debugTiming?N.time:N.notime;r("layout",()=>{let n=r(" buildLayoutGraph",()=>v2(e));r(" runLayout",()=>h2(n,r)),r(" updateInputGraph",()=>f2(e,n))})}function h2(e,t){t(" makeSpaceForEdgeLabels",()=>y2(e)),t(" removeSelfEdges",()=>T2(e)),t(" acyclic",()=>W1.run(e)),t(" nestingGraph.run",()=>Q1.run(e)),t(" rank",()=>r2(N.asNonCompoundGraph(e))),t(" injectEdgeLabelProxies",()=>j2(e)),t(" removeEmptyRanks",()=>a2(e)),t(" nestingGraph.cleanup",()=>Q1.cleanup(e)),t(" normalizeRanks",()=>n2(e)),t(" assignRankMinMax",()=>E2(e)),t(" removeEdgeLabelProxies",()=>N2(e)),t(" normalize.run",()=>U1.run(e)),t(" parentDummyChains",()=>s2(e)),t(" addBorderSegments",()=>i2(e)),t(" order",()=>o2(e)),t(" insertSelfEdges",()=>P2(e)),t(" adjustCoordinateSystem",()=>X1.adjust(e)),t(" position",()=>l2(e)),t(" positionSelfEdges",()=>I2(e)),t(" removeBorderNodes",()=>S2(e)),t(" normalize.undo",()=>U1.undo(e)),t(" fixupEdgeLabelCoords",()=>L2(e)),t(" undoCoordinateSystem",()=>X1.undo(e)),t(" translateGraph",()=>_2(e)),t(" assignNodeIntersects",()=>k2(e)),t(" reversePoints",()=>O2(e)),t(" acyclic.undo",()=>W1.undo(e))}function f2(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 m2=["nodesep","edgesep","ranksep","marginx","marginy"],p2={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},C2=["acyclicer","ranker","rankdir","align"],x2=["width","height"],J1={width:0,height:0},g2=["minlen","weight","width","height","labeloffset"],b2={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},w2=["labelpos"];function v2(e){let t=new d2({multigraph:!0,compound:!0}),r=ke(e.graph());return t.setGraph(Object.assign({},p2,_e(r,m2),N.pick(r,C2))),e.nodes().forEach(n=>{let a=ke(e.node(n));const i=_e(a,x2);Object.keys(J1).forEach(o=>{i[o]===void 0&&(i[o]=J1[o])}),t.setNode(n,i),t.setParent(n,e.parent(n))}),e.edges().forEach(n=>{let a=ke(e.edge(n));t.setEdge(n,Object.assign({},b2,_e(a,g2),N.pick(a,w2)))}),t}function y2(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 j2(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};N.addDummyNode(e,"edge-proxy",i,"_ep")}})}function E2(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 N2(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 _2(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 k2(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(N.intersectRect(n,i)),r.points.push(N.intersectRect(a,o))})}function L2(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 O2(e){e.edges().forEach(t=>{let r=e.edge(t);r.reversed&&r.points.reverse()})}function S2(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 T2(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 P2(e){var t=N.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=>{N.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 I2(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 _e(e,t){return N.mapValues(N.pick(e,t),Number)}function ke(e){var t={};return e&&Object.entries(e).forEach(([r,n])=>{typeof r=="string"&&(r=r.toLowerCase()),t[r]=n}),t}let V2=y,M2=S.Graph;var $2={debugOrdering:R2};function R2(e){let t=V2.buildLayerMatrix(e),r=new M2({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 A2="1.1.2",D2={graphlib:S,layout:c2,debug:$2,util:{time:y.time,notime:y.notime},version:A2};const et=Cr(D2),H2=300,F2=44,z2=50;function G2(e,t){const r=new et.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"?z2:F2})}),et.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 B2({runId:e}){return["runs",e,"graph"]}async function Z2({runId:e}){const t=I(V.runs.graph(e)),r=await Z(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(!r.ok)throw new O({message:`Error while fetching pipeline run graph for ${e}`,status:r.status,statusText:r.statusText});return r.json()}function rr(e,t){return P({queryKey:B2(e),queryFn:()=>Z2(e),...t})}const q2=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.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"})),Y2=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"})),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:"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}=lt(),a=K({runId:e}),i=rr({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(L,{onClick:()=>r(),emphasis:"subtle",className:"rounded-sharp border-none p-0.5",intent:"secondary",children:s.jsx(q2,{className:"h-5 w-5 bg-theme-surface-primary fill-theme-text-primary"})})}),s.jsx("div",{children:s.jsx(L,{onClick:()=>n(),emphasis:"subtle",className:"rounded-sharp border-none bg-theme-surface-primary p-0.5",intent:"secondary",children:s.jsx(Y2,{className:"h-5 w-5 fill-theme-text-primary"})})})]}),s.jsx(L,{className:"h-6 w-6 bg-theme-surface-primary p-0.5",onClick:()=>t(),emphasis:"subtle",intent:"secondary",children:s.jsx(K2,{className:"h-5 w-5 fill-theme-text-primary"})}),s.jsxs(L,{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(Nr,{className:"h-5 w-5 fill-theme-text-primary"})]})]})}const U2={step:Zn,artifact:un},Q2={smart:mn};function X2(){const{runId:e}=Y(),{data:t,isPending:r,isError:n}=rr({runId:e}),{fitView:a}=lt(),{width:i,height:o}=De(C=>({width:C.width,height:C.height})),[l,d,c]=yr([]),[u,h,f]=jr([]),m=p.useCallback(()=>{const C=G2(t==null?void 0:t.nodes,t==null?void 0:t.edges);d([...C.nodes]),h([...C.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 C=setTimeout(()=>{a({duration:200})},100);return()=>{clearTimeout(C)}},[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(Ve,{}),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:Q2,nodeTypes:U2,nodes:l,edges:u,edgesFocusable:!1,multiSelectionKeyCode:null,onNodesChange:c,onEdgesChange:f,fitView:!0,children:s.jsx(W2,{runId:e})})}function J2(){var a,i;const{runId:e}=Y(),{setCurrentBreadcrumbData:t}=pr(),{data:r,isSuccess:n}=K({runId:e},{throwOnError:!0});return p.useEffect(()=>{r&&t({segment:"runs",data:r})},[r]),s.jsx(Tr,{children:s.jsx("div",{className:"flex items-center gap-1",children:n?s.jsxs(s.Fragment,{children:[s.jsx(Sr,{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(fe,{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(x,{className:"h-5 w-5"}),s.jsx(x,{className:"h-6 w-[250px]"}),s.jsx(x,{className:"h-5 w-5"})]})})})}const e0=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 t0({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(se,{open:t,onOpenChange:r,children:[s.jsx(J,{className:"flex items-center gap-[10px]",children:s.jsxs(ae,{className:"flex w-full items-center gap-[10px]",children:[s.jsx(oe,{className:` ${t?"":"-rotate-90"} h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`}),"Code"]})}),s.jsxs(ie,{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(T,{fullWidth:!0,highlightCode:!0,wrap:!0,code:n})]})]})}function r0({run:e}){var n,a;const[t,r]=p.useState(!1);return s.jsxs(se,{open:t,onOpenChange:r,children:[s.jsx(J,{intent:"primary",className:"flex items-center gap-[10px]",children:s.jsxs(ae,{className:"flex w-full items-center gap-[10px]",children:[s.jsx(oe,{className:` ${t?"":"-rotate-90"} h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`}),"Environment"]})}),s.jsxs(ie,{className:"space-y-3 border-t border-theme-border-moderate bg-theme-surface-primary px-5 py-3",children:[s.jsx(R,{isInitialOpen:!0,intent:"secondary",title:"Client Environment",data:(n=e.metadata)==null?void 0:n.client_environment}),s.jsx(R,{isInitialOpen:!0,intent:"secondary",title:"Orchestrator Environment",data:(a=e.metadata)==null?void 0:a.orchestrator_environment})]})]})}function n0(){var i,o,l,d,c,u,h,f,m,C,b,w;const{runId:e}=Y(),{data:t,isError:r,isPending:n}=K({runId:e},{throwOnError:!0}),{data:a}=vt({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(x,{className:"h-[56px] w-full"}),s.jsx(x,{className:"h-[56px] w-full"}),s.jsx(x,{className:"h-[56px] w-full"}),s.jsx(x,{className:"h-[56px] w-full"})]}):s.jsxs("div",{className:"grid grid-cols-1 gap-5",children:[s.jsx(R,{title:"Parameters",data:(c=t.metadata)==null?void 0:c.config.parameters}),((h=(u=a==null?void 0:a.metadata)==null?void 0:u.images)==null?void 0:h.orchestrator)&&s.jsx(wt,{data:(m=(f=a==null?void 0:a.metadata)==null?void 0:f.images)==null?void 0:m.orchestrator}),s.jsx(t0,{runId:e}),s.jsx(r0,{run:t}),s.jsx(R,{title:"Extra",data:(C=t.metadata)==null?void 0:C.config.extra}),s.jsx(R,{title:"Resources",data:((w=(b=t.metadata)==null?void 0:b.config.settings)==null?void 0:w.resources)||{}})]})}function s0(){var d,c,u,h,f,m,C,b,w,j,A,D,H,F,k,z;const{runId:e}=Y(),[t,r]=p.useState(!0),[n]=ut(),a=ht(),{data:i,isError:o,isPending:l}=K({runId:e},{throwOnError:!0});return p.useEffect(()=>{if(!n.get("tab")){const te=new URL(window.location.href);te.searchParams.set("tab","overview");const pe=`${te.pathname}${te.search}`;a(pe,{replace:!0})}},[n,a]),o?null:l?s.jsx(x,{className:"h-[200px] w-full"}):s.jsxs(se,{open:t,onOpenChange:r,children:[s.jsx(J,{className:"flex items-center gap-[10px]",children:s.jsxs(ae,{className:"flex w-full items-center gap-[10px]",children:[s.jsx(oe,{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(ie,{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,{children:"Id"}),s.jsx(B,{children:s.jsxs("div",{className:"group/copybutton flex items-center gap-0.5",children:[i.id,s.jsx(Q,{copyText:i.id})]})}),s.jsx(G,{children:"Status"}),s.jsx(B,{children:s.jsxs(E,{className:"inline-flex items-center gap-0.5",emphasis:"subtle",color:Fe((d=i.body)==null?void 0:d.status),children:[s.jsx(fe,{className:"fill-current",status:(c=i.body)==null?void 0:c.status}),(u=i.body)==null?void 0:u.status]})}),s.jsx(G,{children:"Pipeline"}),s.jsx(B,{children:s.jsx(ze,{to:Ae.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(ot,{className:"h-4 w-4 fill-theme-text-brand"}),(C=(m=i.body)==null?void 0:m.pipeline)==null?void 0:C.name,s.jsx("div",{className:"rounded-sm bg-primary-50 px-1 py-0.25",children:(j=(w=(b=i.body)==null?void 0:b.pipeline)==null?void 0:w.body)==null?void 0:j.version})]})})}),s.jsx(G,{children:"Author"}),s.jsx(B,{children:s.jsx("div",{className:"inline-flex items-center gap-1",children:s.jsx(He,{username:((D=(A=i.body)==null?void 0:A.user)==null?void 0:D.name)||""})})}),s.jsx(G,{children:"Start Time"}),s.jsx(B,{children:(H=i.metadata)!=null&&H.start_time?s.jsx(ue,{dateString:(F=i.metadata)==null?void 0:F.start_time}):"Not available"}),s.jsx(G,{children:"End Time"}),s.jsx(B,{children:(k=i.metadata)!=null&&k.end_time?s.jsx(ue,{dateString:(z=i.metadata)==null?void 0:z.end_time}):"Not available"})]})})]})}function a0(){var a,i,o;const{runId:e}=Y(),{data:t,isError:r,isPending:n}=K({runId:e},{throwOnError:!0});return r?null:n?s.jsx(x,{className:"h-[200px] w-full"}):!((a=t.metadata)!=null&&a.run_metadata)||Object.keys(t.metadata.run_metadata).length===0?s.jsx(Qr,{}):s.jsxs("div",{className:"flex flex-col gap-5",children:[s.jsx(Ct,{metadata:(i=t.metadata)==null?void 0:i.run_metadata}),s.jsx(pt,{metadata:(o=t.metadata)==null?void 0:o.run_metadata})]})}function i0(){return s.jsxs("div",{className:"grid grid-cols-1 gap-5",children:[s.jsx(s0,{}),s.jsx(jt,{}),s.jsx(a0,{})]})}const o0=L1.object({tab:L1.enum(["overview","configuration"]).optional().default("overview").catch("overview")});function l0(){const[e]=ut(),{tab:t}=o0.parse({tab:e.get("tab")||void 0});return t}function d0({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(L,{className:"flex h-6 w-6 items-center justify-center bg-transparent p-0.5",intent:"secondary",onClick:()=>e(!1),children:s.jsx(e0,{className:"h-5 w-5 fill-theme-text-secondary"})}),s.jsx("span",{className:"text-text-xl",children:"Run Insights"})]})}function c0(){const e=l0(),t=ht();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(Me,{value:e,onValueChange:r,children:[s.jsxs($e,{children:[s.jsxs(M,{className:"flex items-center gap-2 truncate text-text-md",value:"overview",children:[s.jsx(Re,{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(M,{className:"flex items-center gap-2 truncate text-text-md",value:"configuration",children:[s.jsx(bt,{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($,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"overview",children:s.jsx(i0,{})}),s.jsx($,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"configuration",children:s.jsx(n0,{})})]})})}const u0=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"}));function A0(){const[e,t]=p.useState(!0);return s.jsxs("div",{children:[s.jsx(J2,{}),s.jsxs("div",{className:"flex h-[calc(100vh_-_4rem_-_4rem_-_2px)] w-full",children:[s.jsxs("div",{className:`relative bg-white/40 transition-all duration-500 ${e?"w-1/2":"w-full"}`,children:[s.jsx(X2,{}),s.jsx(h0,{isPanelOpen:e,setIsPanelOpen:t})]}),s.jsxs("div",{"aria-hidden":!e,className:`h-full min-w-0 overflow-x-hidden text-ellipsis whitespace-nowrap bg-theme-surface-secondary transition-all duration-500 ${e?"w-1/2 border-l border-theme-border-moderate":"w-0 overflow-x-hidden border-transparent"}`,children:[s.jsx(d0,{setIsPanelOpen:t}),s.jsx(c0,{})]})]})]})}function h0({isPanelOpen:e,setIsPanelOpen:t}){return s.jsx(L,{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(u0,{className:"h-5 w-5 fill-theme-text-primary"})})}export{A0 as default};
@@ -1 +0,0 @@
1
- import{j as s,c as D}from"./@tanstack-CEbkxrhX.js";import{$ as E,a0 as k,h as f,a1 as z,a2 as M,a3 as A,f as v,ao as P,a8 as b,i as S,I as o,a6 as T,a7 as B,z as a,am as L,B as q,S as C,A as Q,b as R,al as V}from"./index-QORVVTMN.js";import{r as l}from"./@radix-C9DBgJhe.js";import{u as F}from"./index.esm-F7nqy9zY.js";import{t as U}from"./zod-DrZvVLjd.js";import{P as Z}from"./PasswordChecker-DSLBp7Vl.js";import{u as _}from"./UpdatePasswordSchemas-DnM-c11H.js";import{D as K}from"./DisplayDate-BdguISQF.js";import"./@react-router-DYovave8.js";import"./@reactflow-CHBapDaj.js";const O=e=>l.createElement("svg",{viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 5.5C15.5736 5.5 5.5 15.5736 5.5 28C5.5 40.4264 15.5736 50.5 28 50.5C40.4264 50.5 50.5 40.4264 50.5 28C50.5 15.5736 40.4264 5.5 28 5.5ZM0.5 28C0.5 12.8122 12.8122 0.5 28 0.5C43.1878 0.5 55.5 12.8122 55.5 28C55.5 43.1878 43.1878 55.5 28 55.5C12.8122 55.5 0.5 43.1878 0.5 28ZM41.0178 18.7322C41.9941 19.7085 41.9941 21.2915 41.0178 22.2678L26.0178 37.2678C25.0415 38.2441 23.4585 38.2441 22.4822 37.2678L14.9822 29.7678C14.0059 28.7915 14.0059 27.2085 14.9822 26.2322C15.9585 25.2559 17.5415 25.2559 18.5178 26.2322L24.25 31.9645L37.4822 18.7322C38.4585 17.7559 40.0415 17.7559 41.0178 18.7322Z"}));function H(){const[e,t]=l.useState(!1);return s.jsxs(E,{onOpenChange:()=>{t(!1)},children:[s.jsx(k,{asChild:!0,children:s.jsx(f,{size:"md",className:"shrink-0",intent:"primary",emphasis:"subtle",children:"Change Password"})}),s.jsxs(z,{children:[s.jsx(M,{children:s.jsx(A,{children:" Update Credentials"})}),e?s.jsx(G,{}):s.jsx($,{setSuccess:t})]})]})}function $({setSuccess:e}){var u;const t=l.useId(),n=l.useId(),d=l.useId(),{toast:x}=v(),{mutate:p,isPending:j}=P({onSuccess(){e(!0)},onError(i){b(i)&&x({status:"error",emphasis:"subtle",icon:s.jsx(S,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:i.message,rounded:!0})}}),{register:c,handleSubmit:m,watch:w,formState:{isValid:N,errors:g}}=F({resolver:U(_),mode:"onChange",criteriaMode:"all"});function y(i){p({old_password:i.oldPassword,password:i.newPassword})}const h=(u=g.newPassword)==null?void 0:u.types;return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"space-y-5 p-7",children:[s.jsx("form",{id:"update-password-form",onSubmit:m(y),children:s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{htmlFor:t,className:"text-text-sm",children:"Old Password"}),s.jsx(o,{...c("oldPassword"),type:"password",id:t,className:"w-full"})]}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{htmlFor:n,className:"text-text-sm",children:"New Password"}),s.jsx(o,{...c("newPassword"),type:"password",id:n,className:"w-full"})]}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{htmlFor:d,className:"text-text-sm",children:"Confirm Password"}),s.jsx(o,{...c("confirmPassword"),type:"password",id:d,className:"w-full"})]})]})}),s.jsx(Z,{val:w("newPassword"),errors:h||[]})]}),s.jsxs(T,{className:"gap-[10px]",children:[s.jsx(B,{asChild:!0,children:s.jsx(f,{size:"sm",intent:"secondary",children:"Cancel"})}),s.jsx(f,{disabled:!N||j,form:"update-password-form",size:"sm",children:"Update Password"})]})]})}function G(){return s.jsxs("div",{className:"space-y-5 p-7 text-center",children:[s.jsx(O,{className:"mx-auto h-[110px] w-[110px] fill-success-500"}),s.jsx("p",{className:"text-text-lg font-semibold text-theme-text-primary",children:"The password was updated successfully!"})]})}const J=a.object({fullName:a.union([a.string(),a.literal("")]),username:a.union([a.string(),a.literal("")]),email:a.union([a.string().email(),a.literal("")])}).refine(e=>e.fullName!==""||e.username!==""||e.email!=="");function W({user:e}){var h,u,i;const t=D(),{toast:n}=v(),d=l.useId(),x=l.useId(),p=l.useId(),{isPending:j,mutate:c}=P({onError(r){b(r)&&n({status:"error",emphasis:"subtle",icon:s.jsx(S,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:r.message,rounded:!0})},onSuccess:()=>{t.invalidateQueries({queryKey:["current-user"]}),t.invalidateQueries({queryKey:["users"]}),w(),n({status:"success",emphasis:"subtle",rounded:!0,description:"User updated successfully"})}}),{register:m,reset:w,handleSubmit:N,formState:{isValid:g}}=F({resolver:U(J),defaultValues:{email:void 0,fullName:void 0,username:void 0}});function y(r){const I={...r.fullName&&{full_name:r.fullName},...r.username&&{name:r.username},...r.email&&{email:r.email}};c(I)}return s.jsxs("div",{className:"w-full max-w-[600px]",children:[s.jsx("form",{onSubmit:N(y),children:s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{htmlFor:d,className:"text-text-sm",children:"Full Name"}),s.jsx(o,{placeholder:(h=e.body)==null?void 0:h.full_name,...m("fullName"),id:d,className:"w-full"})]}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{htmlFor:x,className:"text-text-sm",children:"Username"}),s.jsx(o,{...m("username"),placeholder:e.name,id:x,className:"w-full"})]}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{htmlFor:p,className:"text-text-sm",children:"Email"}),s.jsx(o,{placeholder:(u=e.metadata)==null?void 0:u.email,...m("email"),id:p,className:"w-full"})]}),s.jsx("div",{className:"flex justify-end",children:s.jsx(f,{disabled:j||!g,size:"md",intent:"primary",children:"Update"})})]})}),s.jsx(H,{}),s.jsxs("p",{className:"mt-5 text-text-sm text-theme-text-secondary",children:["Created on ",s.jsx(K,{dateString:((i=e.body)==null?void 0:i.created)||""})]})]})}function ns(){const{data:e}=L();return s.jsxs(q,{className:"flex flex-col gap-5 p-5",children:[s.jsx("h1",{className:"text-text-xl font-semibold",children:"Profile"}),s.jsxs("div",{className:"flex justify-between",children:[e?s.jsx(W,{user:e}):s.jsx(C,{className:"h-[350px] w-full"}),e?s.jsx(Q,{size:"xxl",className:"ml-5 h-[140px] w-[140px]",type:"rounded",children:s.jsx(R,{className:"text-display-lg",size:"xxl",children:V(e)[0]})}):s.jsx(C,{className:"h-[140px] w-[140px] rounded-rounded"})]})]})}export{ns as default};
@@ -1 +0,0 @@
1
- import{c as v,j as e}from"./@tanstack-CEbkxrhX.js";import{z as o,f as S,a5 as y,ap as j,a8 as C,i as k,u as w,B as E,S as F}from"./index-QORVVTMN.js";import{u as q}from"./update-server-settings-mutation-0Wgz8pUE.js";import{t as A}from"./zod-DrZvVLjd.js";import{r as i}from"./@radix-C9DBgJhe.js";import{u as I,C as b}from"./index.esm-F7nqy9zY.js";import"./@react-router-DYovave8.js";import"./@reactflow-CHBapDaj.js";const _=o.object({announcements:o.boolean(),updates:o.boolean()});function K({settings:t}){var h,f;const c=i.useId(),d=i.useId(),{toast:l}=S(),u=v(),{mutate:g}=q({onError:s=>{u.invalidateQueries({queryKey:j()}),C(s)&&l({status:"error",emphasis:"subtle",icon:e.jsx(k,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:s.message,rounded:!0})},onSuccess:()=>{u.invalidateQueries({queryKey:j()}),l({status:"success",emphasis:"subtle",rounded:!0,description:"Settings updated successfully"})}}),{control:m,handleSubmit:p,watch:x}=I({resolver:A(_),defaultValues:{announcements:(h=t.body)==null?void 0:h.display_announcements,updates:(f=t.body)==null?void 0:f.display_updates}});function N({announcements:s,updates:a}){g({display_announcements:s,display_updates:a})}return i.useEffect(()=>{const s=x(()=>p(N)());return()=>s.unsubscribe()},[p,x]),e.jsx("form",{id:"create-user-form",className:"space-y-5",children:e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"flex items-center gap-5",children:[e.jsx(b,{control:m,name:"announcements",render:({field:{value:s,onChange:a,ref:n}})=>e.jsx(y,{ref:n,checked:s,onCheckedChange:r=>{a(!!r)},id:c})}),e.jsxs("label",{htmlFor:c,className:"text-text-md",children:[e.jsx("p",{className:"font-semibold",children:"Announcements"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Enable Announcements for important ZenML updates, surveys, and feedback opportunities."})]})]}),e.jsx("hr",{}),e.jsxs("div",{className:"flex items-center gap-5",children:[e.jsx(b,{control:m,name:"updates",render:({field:{value:s,onChange:a,ref:n}})=>e.jsx(y,{ref:n,checked:s,onCheckedChange:r=>{a(!!r)},id:d})}),e.jsxs("label",{htmlFor:d,className:"text-text-md",children:[e.jsx("p",{className:"font-semibold",children:"Updates"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Activate Updates to receive the latest ZenML news and feature releases."})]})]})]})})}function P(){const{data:t}=w({throwOnError:!0});return e.jsxs(E,{className:"flex flex-col gap-5 p-5",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsx("h1",{className:"text-text-xl font-semibold",children:"Notifications"}),e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"ZenML comes equipped with default widgets designed to enhance your experience by analyzing usage patterns, gathering your feedback, and ensuring you stay informed about our latest updates and features."})]}),e.jsx("div",{className:"",children:t?e.jsx(K,{settings:t}):e.jsx(F,{className:"h-[250px] w-full"})})]})}export{P as default};
@@ -1,2 +0,0 @@
1
- import{j as e,c as D}from"./@tanstack-CEbkxrhX.js";import{F as q,R as G}from"./Cards-nwsvQLVS.js";import{B as L,aC as W,s as P,u as C,ap as B,aD as S,av as $,v as y,h as U,w as k,aq as V,ar as J,as as K,at as Q,au as N,ay as h,aE as u,c as z,S as _,aF as A,aG as R,aH as v,aI as b,aJ as w,aK as T,aw as Y}from"./index-QORVVTMN.js";import{S as I}from"./chevron-down-zcvCWmyP.js";import{r as d}from"./@radix-C9DBgJhe.js";import{u as X}from"./update-server-settings-mutation-0Wgz8pUE.js";import{b as ee,S as te,a as se}from"./aws-t0gKCj_R.js";import{H as f}from"./Helpbox-BQoqCm04.js";import{C as n}from"./CodeSnippet-BidtnWOi.js";import{H as re}from"./help-B8rqCvqn.js";import"./file-text-CbVERUON.js";import"./terminal-B2ovgWuz.js";import"./@react-router-DYovave8.js";import"./@reactflow-CHBapDaj.js";import"./copy-BRhQz3j-.js";function ae(){return e.jsx(L,{className:"flex flex-col-reverse items-stretch overflow-hidden md:flex-row",children:e.jsxs("div",{className:"w-full px-7 py-5 md:w-2/3",children:[e.jsx("h2",{className:"text-display-xs font-semibold",children:"Welcome to ZenML"}),e.jsx("p",{className:"mt-2 text-text-lg text-theme-text-secondary",children:"You successfully installed the ZenML dashboard. Now you can get started with your new ZenML server."})]})})}const M=t=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.7071 5.29289C21.0976 5.68342 21.0976 6.31658 20.7071 6.70711L9.70711 17.7071C9.31658 18.0976 8.68342 18.0976 8.29289 17.7071L3.29289 12.7071C2.90237 12.3166 2.90237 11.6834 3.29289 11.2929C3.68342 10.9024 4.31658 10.9024 4.70711 11.2929L9 15.5858L19.2929 5.29289C19.6834 4.90237 20.3166 4.90237 20.7071 5.29289Z"}));function E({tickClasses:t,...r}){return e.jsx(W,{...r,children:e.jsx(M,{className:P("h-4 w-4 fill-success-300",t)})})}function j({completed:t,title:r,children:s,itemName:a,active:c=!0}){const[o,x]=d.useState(!1),i=D(),{data:l}=C({throwOnError:!0}),{mutate:p}=X({onSuccess:()=>{i.invalidateQueries({queryKey:B()})}});function g(Z){var O;const H={...(O=l==null?void 0:l.metadata)==null?void 0:O.onboarding_state,[a]:Z};p({onboarding_state:H})}return e.jsx(S,{open:o,onOpenChange:x,children:e.jsxs("div",{className:"flex w-full flex-col gap-3",children:[e.jsxs("div",{className:"flex w-full justify-between gap-2",children:[t?e.jsx("button",{onClick:()=>g(!1),children:e.jsx(E,{className:"shrink-0"})}):e.jsx($,{className:"shrink-0"}),e.jsx(y,{className:"w-full",children:e.jsx(ne,{title:r,completed:t})}),e.jsxs("div",{className:"flex items-center gap-1",children:[!t&&c&&e.jsxs(U,{onClick:()=>g(!0),className:"items-center whitespace-nowrap",intent:"primary",emphasis:"subtle",children:[e.jsx(M,{className:"h-5 w-5 fill-primary-600"})," ",e.jsx("span",{children:"Mark as done"})]}),e.jsx(y,{children:e.jsx(I,{className:` ${o?"":"-rotate-90"} h-5 w-5 shrink-0 rounded-md fill-neutral-500`})})]})]}),s&&e.jsx(k,{children:e.jsxs("div",{className:"flex w-full items-center gap-2",children:[e.jsx("div",{className:"w-[28px] shrink-0"}),e.jsx("div",{className:"w-full min-w-0 flex-1",children:s})]})})]})})}function ne({completed:t,title:r}){return e.jsx("div",{className:"flex w-full items-center justify-between gap-2",children:e.jsx("div",{className:"flex w-full items-center",children:e.jsx("div",{className:`font-semibold ${t?"text-theme-text-tertiary line-through decoration-theme-text-tertiary":""}
2
- `,children:r})})})}const ce=t=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.24923 9.14303C6.0632 6.17816 8.7764 4 12 4C15.2236 4 17.9368 6.17816 18.7508 9.14303C21.1861 9.70961 23 11.8925 23 14.5C23 17.5376 20.5376 20 17.5 20H6.5C3.46243 20 1 17.5376 1 14.5C1 11.8925 2.8139 9.70961 5.24923 9.14303ZM12 6C9.51785 6 7.45643 7.80968 7.0665 10.1816C6.99268 10.6306 6.62505 10.9731 6.17196 11.0151C4.39329 11.1798 3 12.6778 3 14.5C3 16.433 4.567 18 6.5 18H17.5C19.433 18 21 16.433 21 14.5C21 12.6778 19.6067 11.1798 17.828 11.0151C17.375 10.9731 17.0073 10.6306 16.9335 10.1816C16.5436 7.80968 14.4822 6 12 6Z"}));function F({displayOther:t=!1,setValue:r,value:s,id:a}){return e.jsxs(V,{value:s,onValueChange:r,children:[e.jsx(J,{id:a,className:"w-[125px] border border-neutral-300 px-2 text-left text-text-md",children:e.jsx(K,{placeholder:"Select your Provider"})}),e.jsxs(Q,{className:"",children:[e.jsx(N,{value:"aws",children:e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(ee,{className:"h-5 w-5"}),"AWS"]})}),e.jsxs(N,{value:"gcp",children:[" ",e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(te,{className:"h-5 w-5"}),"GCP"]})]}),e.jsx(N,{value:"azure",children:e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(se,{className:"h-5 w-5"}),"Azure"]})}),t&&e.jsx(N,{value:"other",children:e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(ce,{className:"h-5 w-5 stroke-neutral-400"}),"Other"]})})]})]})}function ie(){return e.jsx(e.Fragment,{children:e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"text-text-sm text-theme-text-secondary",children:["Create a AWS service connector using the IAM Method"," ",e.jsx(m,{href:"https://docs.zenml.io/how-to/auth-management/aws-service-connector#aws-iam-role"})]}),e.jsx(n,{wrap:!0,codeClasses:"whitespace-pre-wrap",code:"AWS_PROFILE=<AWS_PROFILE> zenml service-connector register cloud_connector --type aws --auto-configure"})]})})}function le(){return e.jsx(e.Fragment,{children:e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"text-text-sm text-theme-text-secondary",children:["Create a GCP service connector using the Service Account Method"," ",e.jsx(m,{href:"https://docs.zenml.io/how-to/auth-management/gcp-service-connector#gcp-service-account"})]}),e.jsx(n,{wrap:!0,codeClasses:"whitespace-pre-wrap",code:"zenml service-connector register cloud_connector --type gcp --auth-method service-account --service_account_json=@<PATH_TO_SERVICE_ACCOUNT_JSON> --project-id=<PROJECT_ID> --generate_temporary_tokens=False"})]})})}function oe(){return e.jsx(e.Fragment,{children:e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"text-text-sm text-theme-text-secondary",children:["Create an Azure service connector using the Service Principal Method"," ",e.jsx(m,{href:"https://docs.zenml.io/how-to/auth-management/azure-service-connector#azure-service-principal"})]}),e.jsx(n,{wrap:!0,codeClasses:"whitespace-pre-wrap",code:"zenml service-connector register cloud_connector --type azure --auth-method service-principal --tenant_id=<TENANT_ID> --client_id=<CLIENT_ID> --client_secret=<CLIENT_SECRET>"})]})})}function de(t){switch(t){case"gcp":return e.jsx(le,{});case"aws":return e.jsx(ie,{});case"azure":return e.jsx(oe,{})}}function me(){return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"Install the AWS CLI on your machine"}),e.jsx("div",{className:"inline-block",children:e.jsx("a",{target:"_blank",rel:"noopener noreferrer",className:h({intent:"primary",emphasis:"subtle",size:"md"}),href:"https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html",children:"How to install the AWS CLI"})})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"text-text-sm text-theme-text-secondary",children:["Create a AWS bucket or identify an existing one"," ",e.jsx("span",{className:"text-theme-text-tertiary",children:"(Optional)"})," ",e.jsx(m,{href:"https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3api/create-bucket.html"})]}),e.jsx(n,{wrap:!0,codeClasses:"whitespace-pre-wrap",code:"aws s3api create-bucket --bucket your-bucket-name --region your-region-name"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"Install the S3 ZenML integration"}),e.jsx(n,{wrap:!0,codeClasses:"whitespace-pre-wrap",code:"zenml integration install s3 -y"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"Register the artifact store"}),e.jsx(n,{wrap:!0,codeClasses:"whitespace-pre-wrap",code:"zenml artifact-store register cloud_artifact_store -f s3 --path=s3://bucket-name --connector <CONNECTOR_ID>"})]})]})}function xe(){return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"Install the Google Cloud CLI on your machine"}),e.jsx("div",{className:"inline-block",children:e.jsx("a",{target:"_blank",rel:"noopener noreferrer",className:h({intent:"primary",emphasis:"subtle",size:"md"}),href:"https://cloud.google.com/sdk/docs/install-sdk",children:"How to install the Google Cloud CLI"})})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"text-text-sm text-theme-text-secondary",children:["Create a GCP bucket or identify an existing one"," ",e.jsx("span",{className:"text-theme-text-tertiary",children:"(Optional)"})," ",e.jsx(m,{href:"https://cloud.google.com/storage/docs/creating-buckets"})]}),e.jsx(n,{wrap:!0,codeClasses:"whitespace-pre-wrap",code:"gsutil mb gs://your-bucket-name"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"Install the GCP ZenML integration "}),e.jsx(n,{wrap:!0,codeClasses:"whitespace-pre-wrap",code:"zenml integration install gcp -y"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"Register the artifact store"}),e.jsx(n,{wrap:!0,codeClasses:"whitespace-pre-wrap",code:"zenml artifact-store register cloud_artifact_store -f gcp --path=gs://bucket-name --connector <CONNECTOR_ID>"})]})]})}function pe(){return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"Install the Azure CLI on your machine"}),e.jsx("div",{className:"inline-block",children:e.jsx("a",{target:"_blank",rel:"noopener noreferrer",className:h({intent:"primary",emphasis:"subtle",size:"md"}),href:"https://learn.microsoft.com/en-us/cli/azure/install-azure-cli",children:"How to install the Azure CLI"})})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"text-text-sm text-theme-text-secondary",children:["Create a Azure bucket or identify an existing one"," ",e.jsx("span",{className:"text-theme-text-tertiary",children:"(Optional)"})," ",e.jsx(m,{href:"https://learn.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-portal"})]}),e.jsx(n,{wrap:!0,codeClasses:"truncate",code:"az storage container create --name your-bucket-name --account-name your-storage-account"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"text-text-sm text-theme-text-secondary",children:["Install the Azure ZenML integration"," "]}),e.jsx(n,{wrap:!0,codeClasses:"whitespace-pre-wrap",code:"zenml integration install azure -y"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"Register the artifact store"}),e.jsx(n,{wrap:!0,codeClasses:"whitespace-pre-wrap",code:"zenml artifact-store register cloud_artifact_store -f azure --path=az://container-name --connector <CONNECTOR_ID>"})]})]})}function he(){return e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"Create a remote artifact in any environment following our guides."}),e.jsx("div",{className:"inline-block",children:e.jsx("a",{target:"_blank",rel:"noopener noreferrer",className:h({intent:"primary",emphasis:"subtle",size:"md"}),href:"https://docs.zenml.io/how-to/stack-deployment/implement-a-custom-stack-component",children:"How to create a custom artifact store"})})]})}function ue(t){switch(t){case"gcp":return e.jsx(xe,{});case"aws":return e.jsx(me,{});case"azure":return e.jsx(pe,{});case"other":return e.jsx(he,{})}}function je({onboardingState:t,active:r}){const[s,a]=d.useState("aws"),c="create_service_connector",o=u(t||{},c);return e.jsxs(j,{active:r,completed:!!o,title:"Create a service connector",itemName:c,children:[e.jsxs("p",{className:"mb-3",children:["A service connector grants users of your ZenML tenant the ability to access components like your artifact store"," ",e.jsx(m,{href:"https://docs.zenml.io/user-guide/production-guide/remote-storage#configuring-permissions-with-your-first-service-connector"})]}),e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{htmlFor:"artifact-store-provider",className:"text-text-sm text-theme-text-secondary",children:"Select your cloud provider"}),e.jsx(F,{id:"artifact-store-provider",value:s,setValue:a})]}),de(s),e.jsx("div",{children:e.jsx(f,{link:"https://docs.zenml.io/user-guide/production-guide/remote-storage#configuring-permissions-with-your-first-service-connector"})})]})]})}function ge({onboardingState:t,active:r}){const[s,a]=d.useState("aws"),c="create_remote_artifact_store",o=u(t||{},c);return e.jsxs(j,{itemName:c,completed:!!o,title:"Create an artifact store",active:r,children:[e.jsxs("p",{className:"mb-3",children:["Configuring a remote artifact store will version your pipeline's data directly in your cloud provider"," ",e.jsx(m,{href:"https://docs.zenml.io/user-guide/production-guide/remote-storage"})]}),e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{htmlFor:"artifact-store-provider",className:"text-text-sm text-theme-text-secondary",children:"Select your cloud provider"}),e.jsx(F,{displayOther:!0,id:"artifact-store-provider",value:s,setValue:a})]}),ue(s),e.jsx("div",{children:e.jsx(f,{link:"https://docs.zenml.io/user-guide/production-guide/remote-storage"})})]})]})}function fe({onboardingState:t,active:r}){const s="create_remote_stack",a=u(t||{},s);return e.jsxs(j,{itemName:s,completed:!!a,title:"Create a new stack",active:r,children:[e.jsxs("p",{className:"mb-3",children:["A stack configures how a pipeline is executed"," ",e.jsx(m,{href:"https://docs.zenml.io/user-guide/production-guide/understand-stacks"})]}),e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:"Download the quickstart example to your local machine"}),e.jsx(n,{codeClasses:"whitespace-pre-wrap",code:"zenml stack register local_with_remote_storage -o default -a cloud_artifact_store"})]}),e.jsx(f,{link:"https://docs.zenml.io/user-guide/production-guide/understand-stacks"})]})]})}function Ne({active:t,onboardingState:r}){const s="run_remote_pipeline",a=u(r||{},s);return e.jsx(j,{itemName:s,completed:!!a,title:"Run the pipeline in the new stack",active:t,children:e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"Set the new stack"}),e.jsx(n,{wrap:!0,codeClasses:"whitespace-pre-wrap",code:"zenml stack set local_with_remote_storage"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"Run the pipeline"}),e.jsx(n,{wrap:!0,codeClasses:"whitespace-pre-wrap",code:"python run.py --training-pipeline"})]}),e.jsx("div",{children:e.jsx(f,{link:"https://docs.zenml.io/user-guide/production-guide/understand-stacks"})})]})})}function m({href:t}){return e.jsx("a",{href:t,rel:"noopener noreferrer",target:"_blank",className:"link text-text-sm font-semibold text-theme-text-brand",children:"Learn more"})}function ve(){const{isError:t,isPending:r,data:s}=C({throwOnError:!0}),a=z(),[c,o]=d.useState(!0);if(r||a.isPending)return e.jsx(_,{className:"h-[200px] w-full"});if(t||a.isError)return null;const x=A(R(a.data.deployment_type||"other")),i=v(s),l=b(i,x)===x.length,p=b(i,w),g=p/w.length*100;return e.jsx(e.Fragment,{children:e.jsxs(S,{onOpenChange:o,open:c,className:P("rounded-md border border-theme-border-moderate bg-theme-surface-primary"),children:[e.jsxs(y,{className:"flex w-full items-center justify-between gap-[10px] p-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[g>=100?e.jsx(E,{className:"h-7 w-7",tickClasses:"w-[28px] h-[28px]"}):e.jsx(T,{value:g,children:e.jsxs("span",{className:"absolute text-text-xs font-semibold",children:[p,"/",w.length]})}),e.jsxs("div",{className:"text-left",children:[e.jsxs("p",{className:"text-text-md font-semibold",children:["Production Setup"," ",e.jsx("span",{className:"text-text-md font-medium text-theme-text-secondary",children:"(10 min)"})]}),e.jsx("p",{className:"text-theme-text-secondary",children:l?"Level up your skills in a production setting.":e.jsx("span",{className:"text-primary-400",children:"Complete the Starter Setup to enable the production setup."})})]})]}),e.jsx(I,{className:` ${c?"":"-rotate-90"} h-5 w-5 shrink-0 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`})]}),e.jsx(k,{className:"border-t border-theme-border-moderate p-5",children:e.jsxs("ul",{className:"divide-y divide-theme-border-moderate",children:[e.jsx("li",{className:"py-5 first:pt-0 last:pb-0",children:e.jsx(je,{onboardingState:i,active:l})}),e.jsx("li",{className:"py-5 first:pt-0 last:pb-0",children:e.jsx(ge,{onboardingState:i,active:l})}),e.jsx("li",{className:"py-5 first:pt-0 last:pb-0",children:e.jsx(fe,{onboardingState:i,active:l})}),e.jsx("li",{className:"py-5 first:pt-0 last:pb-0",children:e.jsx(Ne,{onboardingState:i,active:l})})]})})]})})}function ye({onboardingState:t}){const{data:r}=z({throwOnError:!0}),s="connect_zenml",a=u(t||{},s);return e.jsx(j,{itemName:s,completed:!!a,title:"Connect to ZenML",children:e.jsxs("div",{className:"flex flex-col gap-5",children:[e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:"Install ZenML"}),e.jsx(n,{code:`pip install "zenml==${r?r.version:e.jsx(_,{className:"w-7"})}"`})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:"Login to your ZenML Cloud tenant"}),e.jsx(n,{code:`zenml connect --url ${window.location.origin}`})]}),e.jsx(f,{link:"https://docs.zenml.io/user-guide/production-guide/deploying-zenml#connecting-to-a-deployed-zenml"})]})})}function we({onboardingState:t}){const r="run_first_pipeline",s=u(t||{},r);return e.jsx(j,{itemName:r,completed:!!s,title:"Run your first pipeline",children:e.jsxs("div",{className:"flex flex-col gap-5",children:[e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:"Download the quickstart example to your local machine"}),e.jsx(n,{code:"git clone --depth 1 https://github.com/zenml-io/zenml.git && cd zenml/examples/quickstart"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:"Initialize ZenML in the current directory"}),e.jsx(n,{code:"zenml init"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:"Install the remaining requirements apart from ZenML"}),e.jsx(n,{code:"pip install -r requirements.txt"})]}),e.jsxs("div",{children:[e.jsxs("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:["Run the training pipeline.",e.jsx("br",{}),"Once it is running, your dashboard will show all the details of the associated run, models, and artifacts."]}),e.jsx(n,{code:"python run.py --training-pipeline"})]}),e.jsxs(L,{className:"flex w-full flex-wrap items-center justify-between gap-y-1 p-2",children:[e.jsxs("div",{className:"flex items-center gap-[10px]",children:[e.jsx("div",{className:"flex h-7 w-7 items-center justify-center rounded-sm bg-teal-25",children:e.jsx(re,{className:"h-5 w-5 fill-teal-400"})}),e.jsx("p",{children:"Do you need help?"})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("a",{target:"_blank",rel:"noopener noreferrer",className:h({intent:"secondary",emphasis:"subtle",size:"md"}),href:"https://github.com/zenml-io/zenml/blob/main/examples/quickstart/README.md",children:"Open the Readme"}),e.jsx("a",{target:"_blank",rel:"noopener noreferrer",className:h({intent:"primary",emphasis:"subtle",size:"md"}),href:"https://docs.zenml.io/user-guide/starter-guide/create-an-ml-pipeline",children:"Browse our docs"})]})]})]})})}function be(){const{isError:t,isPending:r,data:s}=C({throwOnError:!0}),a=z(),[c,o]=d.useState(!0);if(r||a.isPending)return e.jsx(_,{className:"h-[200px] w-full"});if(t||a.isError)return null;const x=R(a.data.deployment_type||"other"),i=A(x),l=b(v(s),i),p=l/i.length*100;return e.jsxs(S,{open:c,onOpenChange:o,className:"rounded-md border border-theme-border-moderate bg-theme-surface-primary",children:[e.jsxs(y,{className:"flex w-full items-center justify-between gap-[10px] p-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[p>=100?e.jsx(E,{className:"h-7 w-7",tickClasses:"w-[28px] h-[28px]"}):e.jsx(T,{value:p,children:e.jsxs("span",{className:"absolute text-text-xs font-semibold",children:[l,"/",i.length]})}),e.jsxs("div",{className:"text-left",children:[e.jsxs("p",{className:"text-text-xl font-semibold",children:["Starter Setup"," ",e.jsx("span",{className:"text-text-md font-medium text-theme-text-secondary",children:"(2 min)"})]}),e.jsx("p",{className:"text-theme-text-secondary",children:"Follow these steps to make sure your client is connected and run your first MLOps pipeline with ZenML"})]})]}),e.jsx(I,{className:` ${c?"":"-rotate-90"} h-5 w-5 shrink-0 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`})]}),e.jsx(k,{className:"border-t border-theme-border-moderate p-5",children:e.jsxs("ul",{className:"divide-y divide-theme-border-moderate",children:[!x&&e.jsx("li",{className:"py-5 first:pt-0 last:pb-0",children:e.jsx(ye,{onboardingState:v(s)})}),e.jsx("li",{className:"py-5 first:pt-0 last:pb-0",children:e.jsx(we,{onboardingState:v(s)})})]})})]})}function Ze(){const{setTourState:t,tourState:{tourActive:r}}=Y();return d.useEffect(()=>{r&&t(s=>({...s,run:!0,stepIndex:s.stepIndex}))},[r]),e.jsxs("div",{className:"layout-container grid grid-cols-4 gap-5 py-5",children:[e.jsxs("div",{className:"col-span-4 space-y-5 lg:col-span-3",children:[e.jsx(ae,{}),e.jsx(be,{}),e.jsx(ve,{})]}),e.jsxs("div",{className:"col-span-4 space-y-5 lg:col-span-1",children:[e.jsx(q,{}),e.jsx(G,{})]})]})}export{Ze as default};
@@ -1 +0,0 @@
1
- import{j as a,a as f}from"./@tanstack-CEbkxrhX.js";import{m as j,z as o,k as y,l as g,j as b,n as P,F as N,r as i,p as v,T as u,h as S,D as k,S as p,o as R}from"./index-QORVVTMN.js";import{P as T}from"./PageHeader-DGaemzjc.js";import{b as E,L as c,g as h}from"./@react-router-DYovave8.js";import{g as F,E as C,C as x,R as _}from"./CopyButton-B_YSm-Ds.js";import{o as w}from"./url-6_xv0WJS.js";import{S as D,P as A}from"./Pagination-DVYfBCCc.js";import{S as B}from"./terminal-B2ovgWuz.js";import{D as I}from"./DisplayDate-BdguISQF.js";import{I as q}from"./InlineAvatar-DGf3dVhV.js";import{r as z}from"./@radix-C9DBgJhe.js";import"./@reactflow-CHBapDaj.js";import"./check-circle-BVvhm5dy.js";import"./copy-BRhQz3j-.js";import"./chevron-right-double-CJ50E9Gr.js";function L({namespace:e}){return a.jsx(T,{children:a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx(j,{className:"h-5 w-5 fill-neutral-400"}),a.jsx("h1",{className:"text-display-xs font-semibold",children:decodeURIComponent(e)})]})})}const l=1,U=o.object({page:o.coerce.number().min(l).optional().default(l).catch(l),name:o.string().optional(),operator:o.enum(["and","or"]).optional()});function G(){const[e]=E(),{page:s,name:t,operator:r}=U.parse({page:e.get("page")||void 0,name:e.get("name")||void 0});return{page:s,name:t,logical_operator:r}}function H({params:e}){return["runs",e]}async function K({params:e}){const s=y(g.runs.all+"?"+w(e)),t=await b(s,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&P(),!t.ok)throw new N({message:"Error while fetching pipeline runs",status:t.status,statusText:t.statusText});return t.json()}function Q(e,s){return f({queryKey:H(e),queryFn:()=>K(e),...s})}function O(){return[{id:"run",header:"Run",accessorFn:e=>{var s;return{name:e.name,id:e.id,status:(s=e.body)==null?void 0:s.status}},cell:({getValue:e})=>{const{name:s,status:t,id:r}=e();return a.jsxs("div",{className:"group/copybutton flex items-center gap-2",children:[a.jsx(B,{className:`h-5 w-5 shrink-0 ${F(t)}`}),a.jsxs("div",{children:[a.jsxs(c,{to:i.runs.detail(r),className:"flex items-center gap-1",children:[a.jsx("h2",{className:"text-text-md font-semibold",children:s}),a.jsx(C,{status:t}),a.jsx(x,{copyText:s})]}),a.jsxs(c,{to:i.runs.detail(r),className:"flex items-center gap-1",children:[a.jsx("p",{className:"text-text-xs text-theme-text-secondary",children:r.split("-")[0]}),a.jsx(x,{copyText:r})]})]})]})}},{id:"version",header:"Version",accessorFn:e=>{var s,t,r;return(r=(t=(s=e.body)==null?void 0:s.pipeline)==null?void 0:t.body)==null?void 0:r.version},cell:({getValue:e})=>{const s=e();return a.jsx(v,{color:"purple",className:"inline-flex",size:"sm",children:s})}},{id:"stack",header:"Stack",accessorFn:e=>{var s,t,r,n;return{name:(t=(s=e.body)==null?void 0:s.stack)==null?void 0:t.name,id:(n=(r=e.body)==null?void 0:r.stack)==null?void 0:n.id}},cell:({getValue:e})=>{const{name:s,id:t}=e();return!s||!t?null:a.jsx(c,{to:i.stacks.overview,children:a.jsx(u,{rounded:!1,className:"inline-block",color:"turquoise",emphasis:"subtle",children:s})})}},{id:"repository",header:"Repository",accessorFn:e=>{var s,t,r,n,m,d;return{name:(r=(t=(s=e.body)==null?void 0:s.code_reference)==null?void 0:t.body)==null?void 0:r.code_repository.name,id:(d=(m=(n=e.body)==null?void 0:n.code_reference)==null?void 0:m.body)==null?void 0:d.code_repository.id}},cell:({getValue:e})=>{const{name:s,id:t}=e();return!s||!t?null:a.jsx("div",{children:a.jsx(u,{rounded:!1,className:"inline-block",color:"grey",emphasis:"subtle",children:s})})}},{id:"created",header:"Created at",accessorFn:e=>{var s;return(s=e.body)==null?void 0:s.created},cell:({getValue:e})=>a.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:a.jsx(I,{dateString:e()})})},{id:"author",header:"Author",accessorFn:e=>{var s;return{author:(s=e.body)==null?void 0:s.user}},cell:({getValue:e})=>{const{author:s}=e();return a.jsx(q,{username:s.name})}}]}function V(){const{namespace:e}=h(),s=G(),t=O(),{data:r,refetch:n}=Q({params:{pipeline_name:decodeURIComponent(e),...s,sort_by:"desc:updated"}},{throwOnError:!0});return a.jsxs("div",{className:"flex flex-col gap-5 p-5",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx(D,{searchParams:s}),a.jsxs(S,{intent:"primary",emphasis:"subtle",size:"md",onClick:()=>n(),children:[a.jsx(_,{className:"h-5 w-5 fill-theme-text-brand"}),"Refresh"]})]}),a.jsxs("div",{className:"flex flex-col items-center gap-5",children:[a.jsx("div",{className:"w-full",children:r?a.jsx(k,{columns:t,data:r.items}):a.jsx(p,{className:"h-[500px] w-full"})}),r?r.total_pages>1&&a.jsx(A,{searchParams:s,paginate:r}):a.jsx(p,{className:"h-[36px] w-[300px]"})]})]})}function ce(){const{namespace:e}=h(),{setCurrentBreadcrumbData:s}=R();return z.useEffect(()=>{e&&s({segment:"pipeline_detail",data:{name:e}})},[e]),a.jsxs("div",{children:[a.jsx(L,{namespace:e}),a.jsx(V,{})]})}export{ce as default};
@@ -1 +0,0 @@
1
- import{j as e}from"./@tanstack-CEbkxrhX.js";import{aq as g,ar as f,as as b,at as v,au as L,B as p,av as y}from"./index-QORVVTMN.js";import{I as C}from"./Infobox-Ce9mefqU.js";import{V as d,g as m}from"./Commands-DuIWKg_Q.js";import{H as S}from"./Helpbox-BQoqCm04.js";import{S as w,a as j,b as k}from"./aws-t0gKCj_R.js";import{r as a}from"./@radix-C9DBgJhe.js";import{S as A}from"./docker-BAonhm6G.js";import"./@react-router-DYovave8.js";import"./@reactflow-CHBapDaj.js";import"./play-circle-DK5QMJyp.js";import"./CodeSnippet-BidtnWOi.js";import"./copy-BRhQz3j-.js";import"./help-B8rqCvqn.js";const z="/assets/connectors-video-C9qY4syJ.svg",T=t=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},a.createElement("path",{d:"M20.2524 6.30383C20.1382 5.93755 19.864 5.63994 19.5213 5.4568L12.5537 2.11446C12.3709 2.02289 12.1653 2 11.9826 2C11.7998 2 11.5942 2 11.4115 2.04579L4.4438 5.41102C4.10113 5.57126 3.84984 5.86887 3.75846 6.25805L2.02226 13.7898C1.95372 14.1789 2.0451 14.5681 2.27355 14.8886L7.09379 20.8636C7.36793 21.1383 7.75629 21.3215 8.14465 21.3444H15.8433C16.2545 21.3901 16.6429 21.207 16.8942 20.8636L21.7144 14.8886C21.9429 14.5681 22.0343 14.1789 21.9886 13.7898L20.2524 6.30383Z",fill:"#326DE6"}),a.createElement("path",{d:"M19.1559 13.4921C19.133 13.4921 19.133 13.4921 19.1559 13.4921C19.133 13.4464 19.0645 13.4464 19.0416 13.4464C18.9503 13.4235 18.8589 13.4235 18.7675 13.4235C18.7218 13.4235 18.6761 13.4235 18.6304 13.4006H18.6076C18.3563 13.3777 18.0822 13.3319 17.8309 13.2632C17.7623 13.2403 17.6938 13.1716 17.671 13.103C17.671 13.0801 17.6481 13.0801 17.6481 13.0801L17.4654 13.0343C17.5567 12.3704 17.5111 11.6836 17.374 11.0197C17.2141 10.3558 16.9399 9.71485 16.5744 9.14253L16.7115 9.00517V8.98228C16.7115 8.9136 16.7343 8.82203 16.78 8.77624C16.9856 8.61599 17.1912 8.45575 17.4197 8.34128C17.4654 8.31839 17.5111 8.2955 17.5567 8.2726C17.6481 8.22682 17.7167 8.18103 17.808 8.13525C17.8309 8.11235 17.8537 8.11235 17.8766 8.08946C17.8994 8.06657 17.8994 8.06657 17.8994 8.06657C18.105 7.90632 18.1507 7.63161 17.9908 7.42557C17.9223 7.334 17.7852 7.26532 17.671 7.26532C17.5567 7.26532 17.4425 7.31111 17.3511 7.37979L17.3283 7.40268C17.3054 7.42557 17.2826 7.44847 17.2598 7.44847C17.1912 7.51714 17.1227 7.58582 17.077 7.6545C17.0542 7.70029 17.0085 7.72318 16.9856 7.74607C16.8029 7.92921 16.6201 8.11235 16.4145 8.24971C16.3688 8.2726 16.3231 8.2955 16.2774 8.2955C16.2546 8.2955 16.2089 8.2955 16.1861 8.2726L16.0033 8.40996C15.8205 8.22682 15.6149 8.04368 15.4322 7.86054C14.5869 7.19665 13.5361 6.78458 12.4624 6.67011L12.4395 6.48697L12.4167 6.46408C12.3481 6.41829 12.3253 6.34962 12.3024 6.28094C12.3024 6.02912 12.3024 5.7773 12.3481 5.50258V5.47969C12.3481 5.43391 12.371 5.38812 12.371 5.34234C12.3938 5.25076 12.3938 5.15919 12.4167 5.06762V4.93027C12.4395 4.70134 12.2568 4.47241 12.0283 4.47241C11.8912 4.47241 11.7542 4.5182 11.6628 4.60977C11.5714 4.70134 11.5257 4.8158 11.5257 4.93027V5.04473C11.5257 5.1363 11.5486 5.22787 11.5714 5.31944C11.5943 5.36523 11.5943 5.41101 11.5943 5.4568V5.47969C11.6399 5.73151 11.6399 5.98333 11.6399 6.25804C11.6171 6.32672 11.5943 6.3954 11.5257 6.44119L11.5029 6.46408L11.48 6.64722C11.2287 6.67011 10.9774 6.7159 10.7033 6.76168C9.62961 6.99061 8.64728 7.56293 7.89341 8.36417L7.75634 8.2726H7.73349C7.71065 8.2726 7.68781 8.2955 7.64212 8.2955C7.59643 8.2955 7.52789 8.2726 7.50505 8.24971C7.29944 8.08946 7.11669 7.90632 6.93393 7.72318C6.91108 7.67739 6.86539 7.6545 6.84255 7.63161C6.77401 7.56293 6.72833 7.49425 6.65979 7.42557C6.63695 7.40268 6.6141 7.40268 6.59126 7.37979C6.56841 7.3569 6.56841 7.35689 6.56841 7.35689C6.47703 7.28822 6.36281 7.24243 6.24859 7.24243C6.11152 7.24243 5.99729 7.28822 5.90591 7.40268C5.76885 7.60872 5.81454 7.88343 5.99729 8.04368C6.02014 8.04368 6.02014 8.06657 6.02014 8.06657C6.02014 8.06657 6.06583 8.11236 6.08867 8.11236C6.15721 8.15814 6.24859 8.20393 6.33996 8.24971C6.38565 8.2726 6.43134 8.2955 6.47703 8.31839C6.70548 8.45575 6.91108 8.5931 7.11669 8.75335C7.16238 8.79914 7.20807 8.89071 7.18522 8.95939V8.98228L7.32229 9.11963C7.29944 9.16542 7.2766 9.18831 7.25375 9.2341C6.54557 10.3558 6.27143 11.6836 6.47703 12.9885L6.29427 13.0343C6.29427 13.0572 6.27143 13.0572 6.27143 13.0572C6.24859 13.1259 6.18005 13.1716 6.11152 13.2174C5.86022 13.2861 5.60893 13.3319 5.3348 13.3548H5.31195C5.26626 13.3548 5.22057 13.3548 5.17488 13.3777C5.0835 13.3777 4.99212 13.4006 4.90074 13.4006C4.8779 13.4006 4.85506 13.4235 4.80937 13.4235C4.78652 13.4235 4.78652 13.4235 4.76368 13.4464C4.51238 13.4921 4.35247 13.7211 4.39816 13.9729C4.44385 14.1789 4.64945 14.3163 4.85506 14.2934C4.90074 14.2934 4.92359 14.2934 4.96928 14.2705C4.99212 14.2705 4.99212 14.2705 4.99212 14.2476C4.99212 14.2247 5.03781 14.2247 5.0835 14.2247C5.17488 14.2018 5.26626 14.156 5.3348 14.1331C5.38048 14.1102 5.42617 14.0874 5.47186 14.0874H5.49471C5.72316 13.9958 5.97445 13.9271 6.22574 13.8813H6.24859C6.31712 13.8813 6.38565 13.9042 6.43134 13.95C6.45419 13.95 6.45419 13.9729 6.45419 13.9729L6.65979 13.95C7.00246 15.0031 7.64212 15.9417 8.53306 16.6284C8.73866 16.7887 8.92142 16.9261 9.14987 17.0405L9.05849 17.2237C9.05849 17.2466 9.08134 17.2466 9.08134 17.2466C9.12703 17.3152 9.12703 17.4068 9.10418 17.4755C9.0128 17.7044 8.87573 17.9333 8.73866 18.1394V18.1623C8.71582 18.208 8.69297 18.2309 8.64729 18.2767C8.6016 18.3225 8.55591 18.4141 8.48737 18.5057C8.46453 18.5285 8.46453 18.5514 8.44168 18.5743C8.44168 18.5743 8.44168 18.5972 8.41884 18.5972C8.30461 18.8261 8.39599 19.1009 8.6016 19.2153C8.64728 19.2382 8.71582 19.2611 8.78435 19.2611C8.96711 19.2611 9.12703 19.1466 9.2184 18.9864C9.2184 18.9864 9.2184 18.9635 9.24125 18.9635C9.24125 18.9406 9.26409 18.9177 9.28694 18.8948C9.30978 18.8033 9.35547 18.7346 9.37832 18.643L9.42401 18.5057C9.49254 18.2538 9.60676 18.0249 9.72099 17.796C9.76668 17.7273 9.83521 17.6815 9.90375 17.6586C9.92659 17.6586 9.92659 17.6586 9.92659 17.6357L10.018 17.4526C10.6576 17.7044 11.3201 17.8189 12.0055 17.8189C12.4167 17.8189 12.8279 17.7731 13.2391 17.6815C13.4904 17.6357 13.7417 17.5442 13.9701 17.4755L14.0615 17.6357C14.0843 17.6357 14.0843 17.6357 14.0843 17.6586C14.1529 17.6815 14.2214 17.7273 14.2671 17.796C14.3813 18.0249 14.4727 18.2538 14.5641 18.4828V18.5057L14.6098 18.643C14.6326 18.7346 14.6555 18.8261 14.7011 18.8948C14.724 18.9177 14.724 18.9406 14.7468 18.9635C14.7468 18.9635 14.7468 18.9864 14.7697 18.9864C14.8611 19.1466 15.021 19.2611 15.2037 19.2611C15.2723 19.2611 15.318 19.2382 15.3865 19.2153C15.4779 19.1695 15.5692 19.078 15.5921 18.9635C15.6149 18.849 15.6149 18.7117 15.5692 18.5972C15.5692 18.5743 15.5464 18.5743 15.5464 18.5743C15.5464 18.5514 15.5236 18.5285 15.5007 18.5057C15.455 18.4141 15.4093 18.3454 15.3408 18.2767C15.318 18.2309 15.2951 18.208 15.2494 18.1623V18.1394C15.0895 17.9333 14.9753 17.7044 14.8839 17.4755C14.8611 17.4068 14.8611 17.3152 14.9067 17.2466C14.9067 17.2237 14.9296 17.2237 14.9296 17.2237L14.8611 17.0405C16.049 16.3308 16.9171 15.232 17.3511 13.9271L17.5339 13.95C17.5567 13.95 17.5567 13.9271 17.5567 13.9271C17.6024 13.8813 17.671 13.8584 17.7395 13.8584H17.7623C18.0136 13.9042 18.2649 13.9729 18.4934 14.0645H18.5162C18.5619 14.0874 18.6076 14.1102 18.6533 14.1102C18.7447 14.156 18.8132 14.1789 18.9046 14.2018C18.9274 14.2018 18.9503 14.2247 18.996 14.2247C19.0188 14.2247 19.0188 14.2247 19.0416 14.2476C19.0873 14.2705 19.1102 14.2705 19.1559 14.2705C19.3615 14.2705 19.5442 14.1331 19.6128 13.95C19.5442 13.7211 19.3843 13.5379 19.1559 13.4921ZM12.5766 12.7825L11.9598 13.0801L11.343 12.7825L11.1602 12.1186L11.5943 11.5692H12.3024L12.7365 12.1186L12.5766 12.7825ZM16.3003 11.2944C16.4145 11.7752 16.4373 12.2559 16.3917 12.7367L14.2214 12.1186C14.0158 12.0728 13.9016 11.8668 13.9473 11.6607C13.9701 11.592 13.993 11.5463 14.0386 11.5005L15.752 9.94377C16.0033 10.3558 16.1861 10.8137 16.3003 11.2944ZM15.0667 9.09674L13.2162 10.4245C13.0563 10.5161 12.8279 10.4932 12.7137 10.3329C12.668 10.2872 12.6451 10.2414 12.6451 10.1727L12.508 7.86054C13.4675 7.975 14.3813 8.40996 15.0667 9.09674ZM10.9318 7.92921L11.3887 7.83764L11.2516 10.1269C11.2516 10.3329 11.0688 10.4932 10.8632 10.4932C10.7947 10.4932 10.749 10.4703 10.6805 10.4474L8.83004 9.09674C9.40116 8.52442 10.1322 8.11235 10.9318 7.92921ZM8.1447 9.94377L9.83521 11.4547C9.99513 11.592 10.018 11.821 9.8809 11.9812C9.83521 12.0499 9.78952 12.0728 9.69814 12.0957L7.50505 12.7367C7.41367 11.7752 7.64212 10.7908 8.1447 9.94377ZM7.75634 13.8126L10.018 13.4235C10.2007 13.4235 10.3835 13.5379 10.4063 13.7211C10.4292 13.7898 10.4292 13.8813 10.3835 13.95L9.51539 16.0561C8.71582 15.5296 8.07617 14.7284 7.75634 13.8126ZM12.9421 16.6513C12.6223 16.72 12.2796 16.7658 11.9369 16.7658C11.4572 16.7658 10.9546 16.6742 10.4977 16.5369L11.6171 14.4994C11.7313 14.3621 11.9141 14.3163 12.074 14.4079C12.1425 14.4536 12.1882 14.4994 12.2568 14.5681L13.3533 16.5598C13.2391 16.5827 13.102 16.6056 12.9421 16.6513ZM15.7292 14.6597C15.3865 15.2091 14.9067 15.6898 14.3585 16.0332L13.4675 13.9042C13.4218 13.7211 13.4904 13.5379 13.6731 13.4464C13.7417 13.4235 13.8102 13.4006 13.8787 13.4006L16.1632 13.7898C16.049 14.1102 15.9119 14.4079 15.7292 14.6597Z",fill:"white"})),s="w-5 h-5",N=[{label:"Kubernetes",value:"kubernetes",icon:e.jsx(T,{className:s})},{label:"GCP",value:"gcp",icon:e.jsx(w,{className:s})},{label:"Docker",value:"docker",icon:e.jsx(A,{className:s})},{label:"Azure",value:"azure",icon:e.jsx(j,{className:s})},{label:"AWS",value:"aws",icon:e.jsx(k,{className:s})}],P={help:{href:"https://docs.zenml.io/how-to/auth-management/kubernetes-service-connector",text:"Use the complete guide to set up your Kubernetes Service Connector."},prerequisites:c("kubernetes","Kubernetes"),listCommand:i("kubernetes","Kubernetes"),topInfobox:"The ZenML Kubernetes service connector facilitates authenticating and connecting to a Kubernetes cluster. The connector can be used to access to any generic Kubernetes cluster by providing pre-authenticated Kubernetes python clients to Stack Components that are linked to it and also allows configuring the local Kubernetes CLI (i.e. kubectl).",bottomInfobox:"Upon completion of the installation of the required prerequisites and integration, our documentation provides you with a comprehensive list of resource types that can be employed to establish your connector. Please refer to the documentation to explore all available options."},I={help:{text:"Use the complete guide to set up your GCP Service Connector.",href:"https://docs.zenml.io/how-to/auth-management/gcp-service-connector"},prerequisites:c("gcp","GCP"),listCommand:i("gcp","GCP"),bottomInfobox:"Upon completion of the installation of the required prerequisites and integration, our documentation will guide you with a comprehensive list of all the resource types that can be employed to establish your GCP connector. Please refer to the documentation to explore all available options.",topInfobox:"The ZenML GCP Service Connector facilitates the authentication and access to managed GCP services and resources. These encompass a range of resources, including GCS buckets, GCR container repositories, and GKE clusters. The connector provides support for various authentication methods, including GCP user accounts, service accounts, short-lived OAuth 2.0 tokens, and implicit authentication."},M={help:{text:"Use the complete guide to set up your Docker Service Connector.",href:"https://docs.zenml.io/how-to/auth-management/docker-service-connector"},listCommand:i("docker","Docker"),topInfobox:"The ZenML Docker Service Connector allows authenticating with a Docker or OCI container registry and managing Docker clients for the registry. This connector provides pre-authenticated python-docker Python clients to Stack Components that are linked to it.",bottomInfobox:"No Python packages are required for this Service Connector. All prerequisites are included in the base ZenML Python package. Docker needs to be installed on environments where container images are built and pushed to the target container registry. Please refer to the documentation to explore all available options."},q={help:{text:"Use the complete guide to set up your Azure Service Connector.",href:"https://docs.zenml.io/how-to/auth-management/azure-service-connector"},listCommand:i("azure","Azure"),prerequisites:c("azure","Azure"),topInfobox:"The ZenML Azure Service Connector facilitates the authentication and access to managed Azure services and resources. These encompass a range of resources, including blob storage containers, ACR repositories, and AKS clusters.",bottomInfobox:"Upon completion of the installation of the required prerequisites and integration, our documentation will guide you with a comprehensive list of all the resource types that can be employed to establish your Azure connector. Please refer to the documentation to explore all available options."},Z={help:{text:"Use the complete guide to set up your AWS Service Connector.",href:"https://docs.zenml.io/how-to/auth-management/aws-service-connector"},listCommand:i("aws","AWS"),prerequisites:c("aws","AWS"),topInfobox:"The ZenML AWS Service Connector facilitates the authentication and access to managed AWS services and resources. These encompass a range of resources, including S3 buckets, ECR container repositories, and EKS clusters. The connector provides support for various authentication methods, including explicit long-lived AWS secret keys, IAM roles, short-lived STS tokens, and implicit authentication.",bottomInfobox:"Upon completion of the installation of the required prerequisites and integration, our documentation will guide you with a comprehensive list of all the resource types that can be employed to establish your AWS connector. Please refer to the documentation to explore all available options."};function i(t,o){return{command:`zenml service-connector list-types --type ${t}`,description:`List ${o} Connector Types`}}function c(t,o){return[{description:"Install the prerequisites",command:`pip install "zenml[connectors-${t}]"`},{description:`Install the entire ${o} ZenML integration`,command:`zenml integration install ${t}`}]}function V({id:t,selectedType:o,onTypeChange:l}){return e.jsxs(g,{value:o,onValueChange:n=>l(n),children:[e.jsx(f,{id:t,className:"w-[250px] border border-neutral-300 px-2 text-left text-text-md",children:e.jsx(b,{placeholder:"Select Connector Type"})}),e.jsx(v,{className:"",children:N.map(n=>e.jsx(L,{value:n.value,children:e.jsxs("div",{className:"flex items-center gap-1",children:[n.icon,n.label]})},n.value))})]})}function G(){return e.jsx(C,{children:e.jsxs("div",{className:"flex w-full flex-wrap items-center gap-x-2 gap-y-0.5 text-text-md",children:[e.jsx("p",{className:"font-semibold",children:"We are creating a new Connectors experience"}),e.jsx("p",{children:"In the meanwhile you can use the CLI to add and manage your connectors."})]})})}function K(){const t="https://zenml.portal.trainn.co/share/V6magMJZZvMptz1wdnUmPA/embed?autoplay=false";return e.jsxs(p,{className:"flex flex-col-reverse items-stretch overflow-hidden lg:flex-row",children:[e.jsxs("div",{className:"w-full p-7 lg:w-2/3",children:[e.jsx("h2",{className:"text-display-xs font-semibold",children:"Learn More about Connectors"}),e.jsx("p",{className:"mt-2 text-text-lg text-theme-text-secondary",children:"Dive into Service Connector Types for a documented approach to secure authentication and authorization practices."}),e.jsx(d,{videoLink:t,buttonText:"Watch the Starter Guide (2 min)"})]}),e.jsx("div",{className:"flex w-full items-center justify-center bg-primary-50 lg:w-1/3",children:e.jsx(d,{fallbackImage:e.jsx("img",{src:z,alt:"Purple squares with text indicating a starter guide for secrets",className:"h-full w-full"}),videoLink:t,isButton:!1})})]})}function H(){const[t,o]=a.useState("kubernetes");return e.jsxs("section",{className:"space-y-5 pl-8 pr-5",children:[e.jsx(V,{selectedType:t,onTypeChange:o,id:"connector-select"}),D(t)]})}function r({topInfobox:t,bottomInfobox:o,listCommand:l,prerequisites:n,help:u}){return e.jsxs(e.Fragment,{children:[e.jsx(C,{className:"text-text-md",intent:"neutral",children:t}),m(l),n&&e.jsxs(e.Fragment,{children:[e.jsx("p",{children:"Prerequisites"}),n.map((h,x)=>e.jsx(a.Fragment,{children:m(h)},x))]}),e.jsx(C,{className:"text-text-md",intent:"neutral",children:o}),e.jsx(S,{text:u.text,link:u.href})]})}function D(t){switch(t){case"kubernetes":return r(P);case"gcp":return r(I);case"docker":return r(M);case"azure":return r(q);case"aws":return r(Z)}}function t1(){return e.jsxs(p,{className:"space-y-4 p-5",children:[e.jsx("h1",{className:"text-text-xl font-semibold",children:"Secrets"}),e.jsx(G,{}),e.jsx(K,{}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(y,{}),"Administering your Connectors"]}),e.jsx(H,{})]})}export{t1 as default};
@@ -1 +0,0 @@
1
- import{j as s}from"./@tanstack-CEbkxrhX.js";import{z as t,e as j,f as N,I as i,h as w,i as y,r as b,B as v}from"./index-QORVVTMN.js";import{u as S}from"./login-mutation-wzzl23C6.js";import{t as I}from"./zod-DrZvVLjd.js";import{r as l}from"./@radix-C9DBgJhe.js";import{u as L}from"./index.esm-F7nqy9zY.js";import{a as F,b as P}from"./@react-router-DYovave8.js";import"./@reactflow-CHBapDaj.js";const E=t.object({username:t.string().min(1),password:t.string().optional()});function A(){const c=F(),{setAuthState:m}=j(),{toast:u}=N(),a=l.useId(),r=l.useId(),[o]=P(),d=o.get("redirect"),x=o.get("username")??void 0,{register:n,handleSubmit:p,formState:{isValid:f}}=L({resolver:I(E),defaultValues:{username:x}}),h=S({onError:e=>{e instanceof Error&&u({status:"error",emphasis:"subtle",icon:s.jsx(y,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:e.message,rounded:!0})},onSuccess:async()=>{m("true"),c(d||b.home)}});function g(e){h.mutate({username:e.username.trim(),password:e.password})}return s.jsxs("form",{onSubmit:p(g),className:"space-y-5",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{htmlFor:a,className:"text-text-sm",children:"Username"}),s.jsx(i,{...n("username"),id:a,className:"w-full"})]}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{htmlFor:r,className:"text-text-sm",children:"Password"}),s.jsx(i,{...n("password"),id:r,type:"password",className:"w-full"})]})]}),s.jsx(w,{disabled:!f,className:"w-full text-center",size:"md",children:s.jsx("span",{className:"w-full",children:"Login"})})]})}function U(){return s.jsxs(v,{className:"flex w-full max-w-[540px] flex-col gap-5 p-7",children:[s.jsxs("div",{className:"text-center",children:[s.jsx("h1",{className:"mb-0.5 text-display-xs font-semibold",children:"Log in to your account"}),s.jsx("p",{className:"text-theme-text-secondary",children:"Please, fill in your details to log in to your ZenML account."})]}),s.jsx(A,{})]})}export{U as default};