mage-ai 0.9.44__py3-none-any.whl → 0.9.46__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.
Potentially problematic release.
This version of mage-ai might be problematic. Click here for more details.
- mage_ai/api/constants.py +2 -0
- mage_ai/api/operations/base.py +208 -12
- mage_ai/api/policies/BasePolicy.py +3 -3
- mage_ai/api/policies/ComputeClusterPolicy.py +96 -0
- mage_ai/api/policies/ComputeConnectionPolicy.py +74 -0
- mage_ai/api/policies/ComputeServicePolicy.py +50 -0
- mage_ai/api/policies/DownloadPolicy.py +29 -0
- mage_ai/api/policies/GitCustomBranchPolicy.py +1 -0
- mage_ai/api/policies/GlobalHookPolicy.py +126 -0
- mage_ai/api/policies/OauthPolicy.py +56 -7
- mage_ai/api/policies/ProjectPolicy.py +1 -0
- mage_ai/api/policies/RolePolicy.py +12 -1
- mage_ai/api/presenters/ComputeClusterPresenter.py +19 -0
- mage_ai/api/presenters/ComputeConnectionPresenter.py +26 -0
- mage_ai/api/presenters/ComputeServicePresenter.py +15 -0
- mage_ai/api/presenters/DownloadPresenter.py +13 -0
- mage_ai/api/presenters/GlobalHookPresenter.py +74 -0
- mage_ai/api/presenters/OauthPresenter.py +1 -0
- mage_ai/api/presenters/PipelinePresenter.py +1 -0
- mage_ai/api/presenters/ProjectPresenter.py +1 -0
- mage_ai/api/presenters/SparkApplicationPresenter.py +2 -0
- mage_ai/api/presenters/WorkspacePresenter.py +22 -22
- mage_ai/api/resources/AsyncBaseResource.py +39 -0
- mage_ai/api/resources/BackfillResource.py +1 -0
- mage_ai/api/resources/BlockResource.py +57 -0
- mage_ai/api/resources/ClusterResource.py +1 -1
- mage_ai/api/resources/ComputeClusterResource.py +109 -0
- mage_ai/api/resources/ComputeConnectionResource.py +103 -0
- mage_ai/api/resources/ComputeServiceResource.py +35 -0
- mage_ai/api/resources/DownloadResource.py +56 -0
- mage_ai/api/resources/ExecutionStateResource.py +1 -1
- mage_ai/api/resources/GitBranchResource.py +35 -29
- mage_ai/api/resources/GitCustomBranchResource.py +9 -0
- mage_ai/api/resources/GlobalHookResource.py +192 -0
- mage_ai/api/resources/KernelResource.py +10 -0
- mage_ai/api/resources/OauthResource.py +60 -98
- mage_ai/api/resources/PipelineResource.py +4 -4
- mage_ai/api/resources/PipelineScheduleResource.py +37 -16
- mage_ai/api/resources/ProjectResource.py +5 -3
- mage_ai/api/resources/SessionResource.py +24 -9
- mage_ai/api/resources/SparkApplicationResource.py +5 -5
- mage_ai/api/resources/SparkEnvironmentResource.py +1 -2
- mage_ai/api/resources/SparkExecutorResource.py +1 -2
- mage_ai/api/resources/SparkJobResource.py +3 -6
- mage_ai/api/resources/SparkSqlResource.py +6 -11
- mage_ai/api/resources/SparkStageAttemptResource.py +2 -3
- mage_ai/api/resources/SparkStageAttemptTaskResource.py +1 -2
- mage_ai/api/resources/SparkStageAttemptTaskSummaryResource.py +1 -2
- mage_ai/api/resources/SparkStageResource.py +3 -6
- mage_ai/api/resources/SparkThreadResource.py +1 -2
- mage_ai/api/resources/UserResource.py +32 -31
- mage_ai/api/resources/mixins/spark.py +25 -4
- mage_ai/authentication/oauth/constants.py +4 -0
- mage_ai/authentication/oauth2.py +1 -3
- mage_ai/authentication/permissions/constants.py +4 -0
- mage_ai/authentication/providers/__init__.py +0 -0
- mage_ai/authentication/providers/active_directory.py +136 -0
- mage_ai/authentication/providers/constants.py +17 -0
- mage_ai/authentication/providers/ghe.py +81 -0
- mage_ai/authentication/providers/google.py +86 -0
- mage_ai/authentication/providers/oauth.py +60 -0
- mage_ai/authentication/providers/okta.py +101 -0
- mage_ai/authentication/providers/sso.py +20 -0
- mage_ai/authentication/providers/utils.py +12 -0
- mage_ai/cluster_manager/aws/emr_cluster_manager.py +2 -1
- mage_ai/cluster_manager/workspace/base.py +7 -3
- mage_ai/data_integrations/destinations/constants.py +2 -0
- mage_ai/data_preparation/executors/block_executor.py +3 -0
- mage_ai/data_preparation/executors/pipeline_executor.py +9 -0
- mage_ai/data_preparation/git/__init__.py +3 -3
- mage_ai/data_preparation/git/api.py +69 -35
- mage_ai/data_preparation/models/block/__init__.py +95 -60
- mage_ai/data_preparation/models/block/data_integration/data.py +1 -1
- mage_ai/data_preparation/models/block/dbt/block_sql.py +95 -1
- mage_ai/data_preparation/models/block/dbt/utils.py +6 -0
- mage_ai/data_preparation/models/block/spark/mixins.py +82 -34
- mage_ai/data_preparation/models/download/__init__.py +8 -0
- mage_ai/data_preparation/models/global_hooks/__init__.py +0 -0
- mage_ai/data_preparation/models/global_hooks/constants.py +44 -0
- mage_ai/data_preparation/models/global_hooks/models.py +928 -0
- mage_ai/data_preparation/models/global_hooks/utils.py +21 -0
- mage_ai/data_preparation/models/pipeline.py +82 -6
- mage_ai/data_preparation/models/pipelines/models.py +16 -0
- mage_ai/data_preparation/models/project/__init__.py +6 -0
- mage_ai/data_preparation/models/project/constants.py +1 -0
- mage_ai/data_preparation/models/project/models.py +12 -0
- mage_ai/data_preparation/repo_manager.py +23 -1
- mage_ai/data_preparation/templates/callbacks/base.jinja +4 -0
- mage_ai/data_preparation/templates/data_exporters/streaming/kafka.yaml +1 -0
- mage_ai/data_preparation/templates/data_loaders/streaming/activemq.yaml +6 -0
- mage_ai/data_preparation/templates/data_loaders/streaming/kafka.yaml +1 -0
- mage_ai/data_preparation/templates/data_loaders/streaming/nats.yaml +20 -0
- mage_ai/data_preparation/templates/repo/io_config.yaml +2 -2
- mage_ai/io/duckdb.py +0 -1
- mage_ai/orchestration/concurrency.py +8 -1
- mage_ai/orchestration/db/models/schedules.py +23 -2
- mage_ai/orchestration/pipeline_scheduler.py +168 -105
- mage_ai/orchestration/queue/process_queue.py +9 -1
- mage_ai/orchestration/triggers/api.py +11 -3
- mage_ai/orchestration/triggers/constants.py +1 -0
- mage_ai/orchestration/triggers/utils.py +23 -0
- mage_ai/server/active_kernel.py +37 -4
- mage_ai/server/api/downloads.py +76 -1
- mage_ai/server/api/triggers.py +1 -0
- mage_ai/server/constants.py +1 -1
- mage_ai/server/frontend_dist/404.html +2 -2
- mage_ai/server/frontend_dist/_next/static/9jB4XPuz6BzxBcG9VNao5/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/1749-9a6276b2918fdae1.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/7519-8c29bbb92e03cc77.js → frontend_dist/_next/static/chunks/1845-5ce774d5ab81ed57.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1952-ac7722e8b1ab88fe.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3419-f8d518d024e7b5c8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/4267-fd4d8049e83178de.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/4366-93e09e5a4a7e182c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5457-949640f4037bf12f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5499-76cf8f023c6b0985.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/553-7f7919e14392ca67.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5638-a65610405a70961c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5810-12eadc488265d55b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5820-28adeabb5cda2b96.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/595-0d174b1f9fbfce4f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/600-705fe234320ec5de.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/3122-f27de34d0b5426af.js → frontend_dist/_next/static/chunks/6285-e9b45335bfb9ccaf.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6333-bc1b433b428a9095.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{5397-b5f2e477acc6bd6b.js → 6965-c613d1834c8ed92d.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{7022-18fde36eb46e1d65.js → 7022-070ec0144a4d029c.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/722-a1584445357a276c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{7858-c83d25349d0e980f.js → 7858-d9df72e95e438284.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8264-0d582a6ca33c3dfa.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/3684-cbda680fd8927d07.js → frontend_dist/_next/static/chunks/8432-f191e39f9b5893f2.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/90-a7308bae028d7001.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/9264-1d4f0327d42fed91.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/9618-2c5045255ac5a6e7.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{976-27c4eed1c9b20c44.js → 976-18c98af60b76f1a7.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/framework-22b71764bf44ede4.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-ebef928183f9a3bb.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/block-layout-a24cb24b6f08bbc9.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-419775ca1293b354.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-0f2d4be6fdca86ca.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/{[...slug]-3f6fc312f67ff72e.js → [...slug]-cfd68e760ae00958.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{global-data-products-f4cd03036c3e8723.js → global-data-products-c3b79ef31007f95b.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-77edfa32d000e88b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-e561ae38cf5592e8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-449a022f2f0f2d94.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-60845f0b59142f32.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-1d9b298fdceabbf1.js → frontend_dist/_next/static/chunks/pages/manage/users/[user]-9384c5f1efa2ac18.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-abd8571907664fdf.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/{users-a7c970122a10afdc.js → users-28a930b148d99766.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-f83deb790548693b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/oauth-8bb62c4f6a511c43.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-f0c40645f385f23f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{pipeline-runs-c79819d6826e5416.js → pipeline-runs-b35d37bfba8fbccc.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-10e9a2d19541caa2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-c8d3a5289ab93f88.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-571c0962333b92f0.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-ff7e9108502f5716.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-a52d2d3e0c2978f4.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-ef680455ae54ccbe.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-ddddcddd2f74b4f6.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-4a238307feddb522.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-e051057d9fe94f23.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/{[run]-4977276c8f84b5f4.js → [run]-0691711636fa95c7.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-ce717786f31e8f04.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-2d20b2cd08907afd.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-2914e326a5f1ffe0.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-b75bf17498e87354.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-3a7500e6e53084d3.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-c0e551d265a8d467.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/{[pipeline]-35fe7762cb83a733.js → [pipeline]-02c843b9c8418bb5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-e47db5c3eaf683af.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-55ac955dfa9a5a8d.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-d6a62284c7c99cb3.js → [...slug]-b78b1be5b9ed84b9.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{permissions-b1389695f758c32b.js → permissions-37b78a436eeab258.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-29c92a9bc54ae5cd.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-0bdb66265286ab22.js → [...slug]-db05a80d18c168e5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{roles-e04e18fc295ca76a.js → roles-f55c77e4f46c8d33.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-2a1f8737561fdd94.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users/{[...slug]-0267358c91122109.js → [...slug]-e3bf6e5d8bb250c4.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{users-50fed18bb9b8d142.js → users-20f0a050a42a015d.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{settings-56f83205752b1323.js → settings-0f0121db7f5ff93d.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-99e2748e3c1d57a3.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-9370551ffa462144.js → frontend_dist/_next/static/chunks/pages/templates/[...slug]-f44ccd1499ffd23a.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/templates-3cff90df13a1a755.js → frontend_dist/_next/static/chunks/pages/templates-1bfaa1c50e844813.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-ed121e305169cf1c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/test-9ae68758102cc843.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{triggers-ffaab4c013e62ba1.js → triggers-572d82d6eb7a5d43.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-2d26d80370a2e481.js +1 -0
- mage_ai/server/frontend_dist/block-layout.html +2 -2
- mage_ai/server/frontend_dist/compute.html +5 -5
- mage_ai/server/frontend_dist/files.html +5 -5
- mage_ai/server/frontend_dist/global-data-products/[...slug].html +5 -5
- mage_ai/server/frontend_dist/global-data-products.html +5 -5
- mage_ai/server/frontend_dist/global-hooks/[...slug].html +24 -0
- mage_ai/server/frontend_dist/global-hooks.html +24 -0
- mage_ai/server/frontend_dist/index.html +2 -2
- mage_ai/server/frontend_dist/manage/files.html +5 -5
- mage_ai/server/frontend_dist/manage/settings.html +5 -5
- mage_ai/server/frontend_dist/manage/users/[user].html +5 -5
- mage_ai/server/frontend_dist/manage/users/new.html +5 -5
- mage_ai/server/frontend_dist/manage/users.html +5 -5
- mage_ai/server/frontend_dist/manage.html +5 -5
- mage_ai/server/frontend_dist/oauth.html +4 -4
- mage_ai/server/frontend_dist/overview.html +5 -5
- mage_ai/server/frontend_dist/pipeline-runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/dashboard.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist/pipelines.html +5 -5
- mage_ai/server/frontend_dist/settings/account/profile.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/permissions/[...slug].html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/permissions.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/roles/[...slug].html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/roles.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/sync-data.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/users/[...slug].html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/users.html +5 -5
- mage_ai/server/frontend_dist/settings.html +2 -2
- mage_ai/server/frontend_dist/sign-in.html +17 -17
- mage_ai/server/frontend_dist/templates/[...slug].html +5 -5
- mage_ai/server/frontend_dist/templates.html +5 -5
- mage_ai/server/frontend_dist/terminal.html +5 -5
- mage_ai/server/frontend_dist/test.html +15 -15
- mage_ai/server/frontend_dist/triggers.html +5 -5
- mage_ai/server/frontend_dist/version-control.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/404.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1749-9a6276b2918fdae1.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/7519-8c29bbb92e03cc77.js → frontend_dist_base_path_template/_next/static/chunks/1845-5ce774d5ab81ed57.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1952-ac7722e8b1ab88fe.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3419-f8d518d024e7b5c8.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4267-fd4d8049e83178de.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4366-93e09e5a4a7e182c.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5457-949640f4037bf12f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5499-76cf8f023c6b0985.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/553-7f7919e14392ca67.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5638-a65610405a70961c.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5810-12eadc488265d55b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5820-28adeabb5cda2b96.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/595-0d174b1f9fbfce4f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/600-705fe234320ec5de.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/3122-f27de34d0b5426af.js → frontend_dist_base_path_template/_next/static/chunks/6285-e9b45335bfb9ccaf.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6333-bc1b433b428a9095.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{5397-b5f2e477acc6bd6b.js → 6965-c613d1834c8ed92d.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{7022-18fde36eb46e1d65.js → 7022-070ec0144a4d029c.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/722-a1584445357a276c.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{7858-c83d25349d0e980f.js → 7858-d9df72e95e438284.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8264-0d582a6ca33c3dfa.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/3684-cbda680fd8927d07.js → frontend_dist_base_path_template/_next/static/chunks/8432-f191e39f9b5893f2.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/90-a7308bae028d7001.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9264-1d4f0327d42fed91.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9618-2c5045255ac5a6e7.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{976-27c4eed1c9b20c44.js → 976-18c98af60b76f1a7.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/framework-22b71764bf44ede4.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-ebef928183f9a3bb.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-a24cb24b6f08bbc9.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-419775ca1293b354.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-0f2d4be6fdca86ca.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/{[...slug]-3f6fc312f67ff72e.js → [...slug]-cfd68e760ae00958.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{global-data-products-f4cd03036c3e8723.js → global-data-products-c3b79ef31007f95b.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-77edfa32d000e88b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-e561ae38cf5592e8.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-449a022f2f0f2d94.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-60845f0b59142f32.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/manage/users/[user]-1d9b298fdceabbf1.js → frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-9384c5f1efa2ac18.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-abd8571907664fdf.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/{users-a7c970122a10afdc.js → users-28a930b148d99766.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-f83deb790548693b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/oauth-8bb62c4f6a511c43.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-f0c40645f385f23f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{pipeline-runs-c79819d6826e5416.js → pipeline-runs-b35d37bfba8fbccc.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-10e9a2d19541caa2.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-c8d3a5289ab93f88.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-571c0962333b92f0.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-ff7e9108502f5716.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-a52d2d3e0c2978f4.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-ef680455ae54ccbe.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-ddddcddd2f74b4f6.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-4a238307feddb522.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-e051057d9fe94f23.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/{[run]-4977276c8f84b5f4.js → [run]-0691711636fa95c7.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-ce717786f31e8f04.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-2d20b2cd08907afd.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-2914e326a5f1ffe0.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-b75bf17498e87354.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-3a7500e6e53084d3.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-c0e551d265a8d467.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/{[pipeline]-35fe7762cb83a733.js → [pipeline]-02c843b9c8418bb5.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-e47db5c3eaf683af.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-55ac955dfa9a5a8d.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-d6a62284c7c99cb3.js → [...slug]-b78b1be5b9ed84b9.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{permissions-b1389695f758c32b.js → permissions-37b78a436eeab258.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-29c92a9bc54ae5cd.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-0bdb66265286ab22.js → [...slug]-db05a80d18c168e5.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{roles-e04e18fc295ca76a.js → roles-f55c77e4f46c8d33.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-2a1f8737561fdd94.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users/{[...slug]-0267358c91122109.js → [...slug]-e3bf6e5d8bb250c4.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{users-50fed18bb9b8d142.js → users-20f0a050a42a015d.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{settings-56f83205752b1323.js → settings-0f0121db7f5ff93d.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-99e2748e3c1d57a3.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/templates/[...slug]-9370551ffa462144.js → frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-f44ccd1499ffd23a.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/templates-3cff90df13a1a755.js → frontend_dist_base_path_template/_next/static/chunks/pages/templates-1bfaa1c50e844813.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-ed121e305169cf1c.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-9ae68758102cc843.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{triggers-ffaab4c013e62ba1.js → triggers-572d82d6eb7a5d43.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-2d26d80370a2e481.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/uPDjJYpJMst1q6psbRyte/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/block-layout.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/compute.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/files.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/global-data-products.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/global-hooks/[...slug].html +24 -0
- mage_ai/server/frontend_dist_base_path_template/global-hooks.html +24 -0
- mage_ai/server/frontend_dist_base_path_template/index.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/files.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/settings.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/users.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/oauth.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/overview.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/dashboard.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/users/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/sign-in.html +9 -9
- mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/templates.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/terminal.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/test.html +14 -14
- mage_ai/server/frontend_dist_base_path_template/triggers.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/version-control.html +2 -2
- mage_ai/server/server.py +43 -15
- mage_ai/server/utils/output_display.py +6 -0
- mage_ai/server/websocket_server.py +14 -0
- mage_ai/services/aws/ecs/config.py +11 -8
- mage_ai/services/aws/emr/config.py +1 -0
- mage_ai/services/aws/emr/constants.py +1 -0
- mage_ai/services/aws/emr/emr.py +20 -7
- mage_ai/services/compute/__init__.py +0 -0
- mage_ai/services/compute/aws/__init__.py +0 -0
- mage_ai/services/compute/aws/constants.py +21 -0
- mage_ai/services/compute/aws/models.py +459 -0
- mage_ai/services/compute/aws/steps.py +482 -0
- mage_ai/services/compute/constants.py +27 -0
- mage_ai/services/compute/models.py +212 -0
- mage_ai/services/k8s/job_manager.py +3 -0
- mage_ai/services/spark/api/aws_emr.py +38 -0
- mage_ai/services/spark/api/base.py +7 -4
- mage_ai/services/spark/api/constants.py +4 -0
- mage_ai/services/spark/api/local.py +25 -24
- mage_ai/services/spark/api/service.py +15 -5
- mage_ai/services/spark/constants.py +1 -1
- mage_ai/services/spark/models/applications.py +45 -3
- mage_ai/services/spark/models/base.py +3 -19
- mage_ai/services/spark/models/environments.py +16 -11
- mage_ai/services/spark/models/executors.py +2 -2
- mage_ai/services/spark/models/sqls.py +46 -15
- mage_ai/services/spark/models/stages.py +55 -32
- mage_ai/services/spark/models/threads.py +2 -2
- mage_ai/services/spark/utils.py +22 -6
- mage_ai/services/ssh/__init__.py +0 -0
- mage_ai/services/ssh/aws/__init__.py +0 -0
- mage_ai/services/ssh/aws/emr/__init__.py +0 -0
- mage_ai/services/ssh/aws/emr/constants.py +10 -0
- mage_ai/services/ssh/aws/emr/models.py +326 -0
- mage_ai/services/ssh/aws/emr/utils.py +151 -0
- mage_ai/settings/__init__.py +16 -1
- mage_ai/settings/secret_generation.py +7 -0
- mage_ai/settings/sso.py +20 -0
- mage_ai/shared/hash.py +17 -1
- mage_ai/shared/models.py +253 -0
- mage_ai/streaming/constants.py +2 -0
- mage_ai/streaming/sources/activemq.py +89 -0
- mage_ai/streaming/sources/nats_js.py +182 -0
- mage_ai/streaming/sources/source_factory.py +8 -0
- mage_ai/tests/ai/test_ai_functions.py +53 -8
- mage_ai/tests/api/endpoints/test_oauths.py +33 -0
- mage_ai/tests/api/endpoints/test_projects.py +1 -0
- mage_ai/tests/api/endpoints/test_workspaces.py +55 -0
- mage_ai/tests/api/operations/test_base.py +7 -5
- mage_ai/tests/api/operations/test_operations.py +0 -1
- mage_ai/tests/api/operations/test_operations_with_hooks.py +577 -0
- mage_ai/tests/api/operations/test_syncs.py +0 -1
- mage_ai/tests/api/operations/test_users.py +13 -2
- mage_ai/tests/data_preparation/executors/test_block_executor.py +1 -0
- mage_ai/tests/data_preparation/models/global_hooks/__init__.py +0 -0
- mage_ai/tests/data_preparation/models/global_hooks/test_global_hooks.py +575 -0
- mage_ai/tests/data_preparation/models/global_hooks/test_hook.py +760 -0
- mage_ai/tests/data_preparation/models/global_hooks/test_utils.py +33 -0
- mage_ai/tests/data_preparation/models/test_pipeline.py +5 -0
- mage_ai/tests/data_preparation/test_repo_manager.py +11 -0
- mage_ai/tests/data_preparation/test_templates.py +1 -0
- mage_ai/tests/factory.py +132 -10
- mage_ai/tests/orchestration/queue/test_process_queue.py +15 -2
- mage_ai/tests/orchestration/test_pipeline_scheduler.py +447 -79
- mage_ai/tests/services/aws/ecs/__init__.py +0 -0
- mage_ai/tests/services/aws/ecs/test_config.py +144 -0
- mage_ai/tests/services/k8s/test_job_manager.py +22 -1
- mage_ai/tests/shared/mixins.py +291 -0
- mage_ai/tests/shared/test_hash.py +17 -1
- mage_ai/tests/streaming/sources/test_activemq.py +32 -0
- mage_ai/tests/streaming/sources/test_nats_js.py +32 -0
- mage_ai/tests/streaming/sources/test_source_factory.py +26 -1
- {mage_ai-0.9.44.dist-info → mage_ai-0.9.46.dist-info}/METADATA +28 -66
- {mage_ai-0.9.44.dist-info → mage_ai-0.9.46.dist-info}/RECORD +443 -364
- mage_ai/authentication/oauth/active_directory.py +0 -17
- mage_ai/server/frontend_dist/_next/static/RPXiX8RpZ7oO-yeaEtV2c/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1125-91d3ce33140ef041.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1749-607014ecf28268bf.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1952-573c7fc7ad84da6e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3004-231cad9039ae5dcb.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3419-0873e170ef7d6303.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3932-0ceca9599d6e6d00.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/4267-335766a915ee2fa9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5457-8be2e0a3fe0ba64b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5499-bca977f466e259e1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/553-edf533e634e85192.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5810-37c6091b29a1fe53.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/600-0733eb84f0a0a9e0.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6333-53b6ebbef95a3691.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/722-3fff38a9019369fe.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8224-39a93ee1058b6069.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8264-6ef8fdb195694807.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9264-1b5c4b071ed544c3.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/framework-7c365855dab1bf41.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-a4a660fa14cf05a9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/block-layout-c465c14d48392b11.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-b1f8d5a7a9a30f2d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-93c094bad0f299fb.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-891e5bd5935f7473.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-d2e4ee4e68d36807.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-4a49126fcfe8ced0.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-5f8c5d0bc6ad1113.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/oauth-09467512a85c96ed.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-31bde04718d0d3a8.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-96718f95103d7844.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-a9266d353f288e8c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-b5c29c852262312e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-5d525454ff7aeb3f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-883f4ae9a4a264c0.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-c65be964e6398cb7.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-1f5b4a974bd39740.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-074c32397d341de9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-50f5d8706ed0bc73.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-e151c1552fcb67bd.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-cc36f0f8c73fee4b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-8336c4326f1e7d96.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-01dd679e4a21e0d9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-4d9051c073a9b2ff.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-88d41c33b8fcb300.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-d859e07561eb9010.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-578d862f3e56e6e6.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/test-1c0588d685b909b9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-e284cf1535d93798.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1125-91d3ce33140ef041.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1749-607014ecf28268bf.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1952-573c7fc7ad84da6e.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3004-231cad9039ae5dcb.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3419-0873e170ef7d6303.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3932-0ceca9599d6e6d00.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4267-335766a915ee2fa9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5457-8be2e0a3fe0ba64b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5499-bca977f466e259e1.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/553-edf533e634e85192.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5810-37c6091b29a1fe53.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/600-0733eb84f0a0a9e0.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6333-53b6ebbef95a3691.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/722-3fff38a9019369fe.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8224-39a93ee1058b6069.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8264-6ef8fdb195694807.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9264-1b5c4b071ed544c3.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/framework-7c365855dab1bf41.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-a4a660fa14cf05a9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-c465c14d48392b11.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-b1f8d5a7a9a30f2d.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-93c094bad0f299fb.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-891e5bd5935f7473.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-d2e4ee4e68d36807.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-4a49126fcfe8ced0.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-5f8c5d0bc6ad1113.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/oauth-09467512a85c96ed.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-31bde04718d0d3a8.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-96718f95103d7844.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-a9266d353f288e8c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-b5c29c852262312e.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-5d525454ff7aeb3f.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-883f4ae9a4a264c0.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-c65be964e6398cb7.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-1f5b4a974bd39740.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-074c32397d341de9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-50f5d8706ed0bc73.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-e151c1552fcb67bd.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-cc36f0f8c73fee4b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-8336c4326f1e7d96.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-01dd679e4a21e0d9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-4d9051c073a9b2ff.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-88d41c33b8fcb300.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-d859e07561eb9010.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-578d862f3e56e6e6.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-1c0588d685b909b9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-e284cf1535d93798.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/rNR5JgSxO3eA2BWGa_i7U/_buildManifest.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{RPXiX8RpZ7oO-yeaEtV2c → 9jB4XPuz6BzxBcG9VNao5}/_ssgManifest.js +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/{rNR5JgSxO3eA2BWGa_i7U → uPDjJYpJMst1q6psbRyte}/_ssgManifest.js +0 -0
- {mage_ai-0.9.44.dist-info → mage_ai-0.9.46.dist-info}/LICENSE +0 -0
- {mage_ai-0.9.44.dist-info → mage_ai-0.9.46.dist-info}/WHEEL +0 -0
- {mage_ai-0.9.44.dist-info → mage_ai-0.9.46.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.9.44.dist-info → mage_ai-0.9.46.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[553],{46978:function(e,n,t){t.d(n,{Cl:function(){return u},Nk:function(){return c},ZG:function(){return l}});var o=t(38626),r=t(44897),i=t(70515),l=1.5*i.iI,u=1*l+i.iI/2,c=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-uvd91-0"})([".row:hover{","}"],(function(e){return"\n background-color: ".concat((e.theme.interactive||r.Z.interactive).hoverBackground,";\n ")}))},10553:function(e,n,t){t.d(n,{Z:function(){return he}});var o=t(82394),r=t(75582),i=t(26304),l=t(82684),u=t(38626),c=t(69864),a=t(44425),d=t(70374),s=t(39867),f=t(89706),p=t(97618),v=t(30160),h=t(72473),m=t(46978),b=t(70515),g=t(85385),j=t(53808),y=t(55283),C=t(53005),k=t(86735),w=t(81728),x=t(28598);function O(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function D(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?O(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Z="default_repo";var P=function e(n){var t=n.allowEmptyFolders,o=n.allowSelectingFolders,r=n.containerRef,i=n.disableContextMenu,u=n.file,c=n.isFileDisabled,d=n.level,O=n.onClickFile,P=n.onClickFolder,F=n.onSelectBlockFile,E=n.onlyShowChildren,_=n.openFile,I=n.openPipeline,S=n.openSidekickView,R=n.pipelineBlockUuids,T=n.renderAfterContent,N=n.selectFile,L=n.setContextItem,M=n.setCoordinates,A=n.setDraggingFile,U=n.setSelectedFile,B=n.theme,z=n.timeout,q=n.uncollapsed,W=n.useRootFolder,Y=u.children,$=u.disabled,G=u.name,H=u.parent;G||t||(u.name=Z);var Q,X=W?(0,C.a9)(u):(0,C.jN)(u),V=(null===H||void 0===H?void 0:H.name)===f.oy,J=(0,l.useMemo)((function(){return Y?(0,k.YC)(Y,(function(e){return e.children?0:1})):Y}),[Y]),K=c?c(X,J):$,ee=c?c(X,J):$,ne="".concat(d,"/").concat(G),te=!!(Array.isArray(J)&&(null===J||void 0===J?void 0:J.length)>0)&&(0,j.U2)(ne,d>1),oe=(0,l.useState)("undefined"===typeof q?te:!q),re=oe[0],ie=oe[1],le=h.iU;1===d&&G===f.oy?le=h.B_:G===f.PF?le=h.er:J?le=h.gt:!G&&t&&(le=h.mH),J&&a.$W.includes((0,w.C5)(G))&&(0,w.C5)(G)!==a.tf.CHART&&(Q=(0,y.qn)((0,w.C5)(G),{theme:B}).accent);var ue=(0,l.useMemo)((function(){return null===J||void 0===J?void 0:J.map((function(n){return(0,x.jsx)(e,{allowEmptyFolders:t,allowSelectingFolders:o,containerRef:r,disableContextMenu:i,file:D(D({},n),{},{parent:u}),isFileDisabled:c,level:E?d:d+1,onClickFile:O,onClickFolder:P,onSelectBlockFile:F,openFile:_,openPipeline:I,openSidekickView:S,pipelineBlockUuids:R,renderAfterContent:T,selectFile:N,setContextItem:L,setCoordinates:M,setDraggingFile:A,setSelectedFile:U,theme:B,timeout:z,uncollapsed:q,useRootFolder:W},"".concat(ne,"/").concat((null===n||void 0===n?void 0:n.name)||Z))}))}),[t,o,J,r,i,u,c,d,O,P,F,E,_,I,S,R,T,N,L,M,A,U,B,z,q,W,ne]),ce=(0,l.useMemo)((function(){var e=[];return(0,k.w6)(d).forEach((function(n,t){var o,r=m.Cl-1;e.push((0,x.jsx)("div",{style:{borderLeft:"1px solid ".concat(null===B||void 0===B||null===(o=B.content)||void 0===o?void 0:o.disabled),height:22,marginLeft:r/2-2,paddingLeft:r/2+2}},"line-".concat(ne,"-").concat(t)))})),e}),[d,B,ne]);return(0,x.jsxs)(x.Fragment,{children:[!E&&(0,x.jsxs)("div",{className:"row",onClick:function(e){if(e.preventDefault(),!ee){if((null===H||void 0===H?void 0:H.name)===f.PF){null===S||void 0===S||S(g.cH.CHARTS);var n=(0,C.lr)(u);n&&(null===F||void 0===F||F(n.uuid,n.type,(0,C.jN)(u)))}var t=(0,C.V3)(u);if(J)o?N(X):ie((function(e){return(0,j.t8)(ne,!e),!e})),null===P||void 0===P||P(X);else if(O)O(X);else if(t)null===F||void 0===F||F(t.uuid,t.type,(0,C.jN)(u));else if(G.match(f.xF))null===_||void 0===_||_(X);else{var r=(0,C.lr)(u);r&&(null===F||void 0===F||F(r.uuid,r.type,(0,C.jN)(u)))}}},onContextMenu:function(e){var n;clearTimeout(z.current),null!==r&&void 0!==r&&null!==(n=r.current)&&void 0!==n&&n.contains(e.target)&&!i&&(e.preventDefault(),M({x:e.pageX,y:e.pageY}),A(null),U(u))},onMouseDown:function(e){var n,t=u?(0,C.lr)(u,null,!0):null;null===r||void 0===r||null===(n=r.current)||void 0===n||!n.contains(e.target)||!t||(null===J||void 0===J?void 0:J.length)>=1||i||ee||V||(e.preventDefault(),clearTimeout(z.current),z.current=setTimeout((function(){M({x:e.pageX,y:e.pageY}),A(u),U(null)}),300))},style:{alignItems:"center",cursor:"default",display:"flex",minWidth:d*m.Cl+u.name.length*b.Fo+2*b.iI,paddingRight:b.iI/4},children:[(0,x.jsxs)(p.Z,{alignItems:"center",flex:1,children:[ce,J&&!re&&(0,x.jsx)(h._M,{muted:!0,size:m.ZG}),J&&re&&(0,x.jsx)(h._Q,{muted:!0,size:m.ZG}),!J&&(0,x.jsx)("div",{style:{width:m.ZG}}),(0,x.jsxs)("div",{style:{marginLeft:b.iI/2,marginRight:b.iI/2},children:[!Q&&(0,x.jsx)(le,{disabled:K,size:m.ZG}),Q&&(0,x.jsx)(s.Z,{color:Q,size:m.ZG,square:!0})]}),(0,x.jsx)(v.ZP,{color:Q,default:!Q&&!ee,disabled:ee,monospace:!0,small:!0,children:G})]}),T&&T(u)]}),(0,x.jsx)("div",{style:{display:re?"none":"block"},children:ue})]})},F=t(71180),E=t(55485),_=t(93369),I=t(65956),S=t(38276),R=t(17488),T=t(35686),N=t(42122),L=t(72619);var M=function(e){var n=e.fetchFileTree,t=e.file,o=e.moveFile,i=e.onCancel,u=e.onCreateFile,a=e.selectedFolder,d=e.setErrors,s=(0,l.useRef)(null),f=(0,N.Qr)(t)?null:t,p=(0,l.useState)(f?(0,C.jN)(f,null,!0):""),v=p[0],h=p[1],m=(0,l.useState)(f?null===f||void 0===f?void 0:f.name:""),b=m[0],g=m[1];(0,l.useEffect)((function(){var e;null===s||void 0===s||null===(e=s.current)||void 0===e||e.focus()}),[]),(0,l.useEffect)((function(){a&&h((0,C.jN)(a))}),[a]);var j=(0,c.Db)(T.ZP.files.useCreate(),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(e){var t=e.file;null===n||void 0===n||n(),i(),null===u||void 0===u||u(t)},onErrorCallback:function(e,n){return d({errors:n,response:e})}})}}),y=(0,r.Z)(j,1)[0],k=(0,c.Db)(T.ZP.files.useUpdate(f&&encodeURIComponent((0,C.jN)(f))),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){null===n||void 0===n||n(),i()},onErrorCallback:function(e,n){return d({errors:n,response:e})}})}}),w=(0,r.Z)(k,1)[0];return(0,x.jsxs)(I.Z,{footer:(0,x.jsxs)(E.ZP,{children:[(0,x.jsxs)(_.ZP,{bold:!0,disabled:!b,inline:!0,onClick:function(){return f?w({file:{dir_path:v,name:b},file_json_only:!0}):y({file:{dir_path:v,name:b,overwrite:!1},file_json_only:!0})},primary:!0,tabIndex:0,uuid:"NewFile/create_file",children:[f?o?"Move":"Rename":"Create"," file"]}),(0,x.jsx)(S.Z,{ml:1,children:(0,x.jsx)(F.ZP,{onClick:function(){return i()},tabIndex:0,children:"Cancel"})})]}),headerTitle:f?o?"Move file":"Rename file":"New file",children:[(0,x.jsx)(R.Z,{disabled:!!f&&!o,label:"Directory",monospace:!0,onChange:function(e){return h(e.target.value)},setContentOnMount:!0,value:v}),(0,x.jsx)(S.Z,{mt:2,children:(0,x.jsx)(R.Z,{disabled:!!o,label:"Filename",monospace:!0,onChange:function(e){return g(e.target.value)},ref:s,required:!0,value:b})})]})};var A=function(e){var n=e.fetchFileTree,t=e.file,o=e.moveFile,i=e.onCancel,u=e.onCreateFile,a=e.selectedFolder,d=e.setErrors,s=(0,l.useRef)(null),f=(0,N.Qr)(t)?null:t,p=(0,l.useState)(f?(0,C.jN)(f,null,!0):""),v=p[0],h=p[1],m=(0,l.useState)(f?null===f||void 0===f?void 0:f.name:""),b=m[0],g=m[1];(0,l.useEffect)((function(){var e;null===s||void 0===s||null===(e=s.current)||void 0===e||e.focus()}),[]),(0,l.useEffect)((function(){a&&h((0,C.jN)(a,null,!0))}),[a]);var j=(0,c.Db)(T.ZP.folders.useCreate(),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(e){var t=e.file;null===n||void 0===n||n(),i(),null===u||void 0===u||u(t)},onErrorCallback:function(e,n){return d({errors:n,response:e})}})}}),y=(0,r.Z)(j,1)[0],k=(0,c.Db)(T.ZP.folders.useUpdate(f&&encodeURIComponent((0,C.jN)(f))),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){null===n||void 0===n||n(),i()},onErrorCallback:function(e,n){return d({errors:n,response:e})}})}}),w=(0,r.Z)(k,1)[0];return(0,x.jsxs)(I.Z,{footer:(0,x.jsxs)(E.ZP,{children:[(0,x.jsxs)(_.ZP,{bold:!0,disabled:!b,inline:!0,onClick:function(){return f?w({folder:{name:b,path:v}}):y({folder:{name:b,overwrite:!1,path:v}})},primary:!0,tabIndex:0,uuid:"NewFolder/create_folder",children:[f?o?"Move":"Rename":"Create"," folder"]}),(0,x.jsx)(S.Z,{ml:1,children:(0,x.jsx)(F.ZP,{onClick:function(){return i()},tabIndex:0,children:"Cancel"})})]}),headerTitle:f?o?"Move folder":"Rename folder":"New folder",children:[(0,x.jsx)(R.Z,{disabled:!!f&&!o,label:"Directory",monospace:!0,onChange:function(e){return h(e.target.value)},setContentOnMount:!0,value:v}),(0,x.jsx)(S.Z,{mt:2,children:(0,x.jsx)(R.Z,{disabled:!!o,label:"Folder name",monospace:!0,onChange:function(e){return g(e.target.value)},ref:s,required:!0,value:b})})]})},U=t(57653),B=t(89515),z=t(17717),q=t(77011);function W(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function Y(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?W(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):W(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var $=u.default.div.withConfig({displayName:"MultiFileInput__DropzoneStyle",componentId:"sc-1l6yd2y-0"})(["&:hover{cursor:pointer;}"]);var G=function(e){var n=e.children,t=e.inputOnChange,o=e.inputProps,r=e.onDragActiveChange,i=e.setFiles,u=(0,l.useCallback)((function(e){i(e)}),[i]),c=(0,q.uI)({onDrop:u}),a=c.getInputProps,d=c.getRootProps,s=c.isDragActive,f=a(),p=f.accept,v=f.autoComplete,h=f.multiple,m=f.onChange,b=f.onClick,g=f.ref,j=f.style,y=f.tabIndex,C=f.type,k=Y(Y({},o),{},{accept:p,autoComplete:v,multiple:h,onChange:function(e){null===t||void 0===t||t(e),null===o||void 0===o||o.onChange(e),m(e)},onClick:b,ref:g,style:j,tabIndex:y,type:C});return(0,l.useEffect)((function(){null===r||void 0===r||r(s)}),[s,r]),(0,x.jsxs)($,Y(Y({},d()),{},{children:[(0,x.jsx)("input",Y(Y({},k),{},{directory:"",webkitdirectory:""})),n]}))};function H(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function Q(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?H(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):H(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var X=function(e){var n=e.children,t=e.directoryPath,i=e.onDragActiveChange,u=e.setFileUploadProgress,a=e.setUploadedFiles,d=(0,c.Db)(T.ZP.files.useCreate({onUploadProgress:function(e,n){var t,r=n.body,i=[null===r||void 0===r?void 0:r.dir_path,null===r||void 0===r||null===(t=r.file)||void 0===t?void 0:t.name].filter((function(e){return(null===e||void 0===e?void 0:e.length)>=1})).join(z.sep);null===u||void 0===u||u((function(n){return Q(Q({},n),{},(0,o.Z)({},i,e.loaded/e.total))}))}})),s=(0,r.Z)(d,1)[0],f=(0,l.useCallback)((function(e){e.forEach((function(e){var n=e.name,r=e.path,i=[t],l=r.split(z.sep).filter((function(e){return e&&e!==n})).join(z.sep);l&&i.push(l);var c=[],d=i.join(z.sep);(null===d||void 0===d?void 0:d.length)>=1&&i.push(d),c.push(n);var f=c.join(z.sep);s({dir_path:d,file:e,overwrite:!1}).then((function(e){var n=e.data,t=n.error,r=n.file;a((function(e){return Q(Q({},e),{},(0,o.Z)({},f,r||t))}))})),u((function(e){return Q(Q({},e),{},(0,o.Z)({},f,0))}))}))}),[s,t,u,a]);return(0,x.jsx)(G,{onDragActiveChange:i,setFiles:f,children:n})},V=t(35185),J=t(75499),K=t(44897),ee=t(42631),ne=(b.iI,u.default.div.withConfig({displayName:"indexstyle__DropZoneStyle",componentId:"sc-1g3zz7z-0"})(["border-radius:","px;padding:","px;max-width:","px;min-width:","px;",""],ee.n_,8*b.iI,100*b.iI,55*b.iI,(function(e){return"\n border: 1px dashed ".concat((e.theme.borders||K.Z.borders).contrast,";\n ")}))),te=u.default.div.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1g3zz7z-1"})(["max-width:","px;min-width:","px;"],100*b.iI,55*b.iI);var oe=function(e){var n=e.fetchFileTree,t=e.onCancel,o=e.selectedFolder,i=(0,l.useState)(!1),u=i[0],c=i[1],a=(0,l.useState)({}),d=a[0],s=a[1],f=(0,l.useState)({}),p=f[0],h=f[1],m=!(0,N.Qr)(d),b=(0,l.useMemo)((function(){var e=[];return(0,k.YC)(Object.entries(d),(function(e){var n=(0,r.Z)(e,2),t=n[0];n[1];return t})).forEach((function(n){var t=(0,r.Z)(n,2),o=t[0],i=t[1],l=p[o],u=null===l||void 0===l?void 0:l.message;e.push([(0,x.jsxs)("div",{children:[(0,x.jsx)(v.ZP,{overflowWrap:!0,preWrap:!0,children:o}),u&&(0,x.jsx)(S.Z,{mt:1,children:(0,x.jsx)(v.ZP,{danger:!0,small:!0,children:u})})]},"name-".concat(o)),(0,x.jsx)(V.Z,{danger:!!u,progress:100*i},"progress-".concat(o))])})),(0,x.jsx)(J.Z,{columnFlex:[1,4],columns:[{uuid:"Filename"},{uuid:"Upload progress"}],rows:e,uuid:"block-runs"})}),[d,p]);return(0,x.jsxs)(I.Z,{footer:(0,x.jsxs)(E.ZP,{fullWidth:!0,children:[(0,x.jsx)(F.ZP,{onClick:function(){return t()},children:"Close"}),m&&(0,x.jsx)(S.Z,{ml:1,children:(0,x.jsx)(F.ZP,{onClick:function(){s({}),h({})},children:"Clear files and retry"})})]}),headerTitle:"Upload files",children:[m&&(0,x.jsx)(te,{children:b}),!m&&(0,x.jsx)(X,{directoryPath:o?(0,C.jN)(o):"",onDragActiveChange:c,setFileUploadProgress:s,setUploadedFiles:function(e){h(e),null===n||void 0===n||n()},children:(0,x.jsx)(ne,{children:(0,x.jsxs)(v.ZP,{center:!0,children:[u&&"Drop to upload",!u&&"Click or drop files and folders to upload"]})})})]})},re=t(31353),ie=t(68669),le=t(85202),ue=t(89538),ce=t(44952),ae=["addNewBlock","blocks","deleteWidget","fetchAutocompleteItems","fetchFileTree","fetchPipeline","files","onCreateFile","pipeline","setErrors","setSelectedBlock","widgets"];function de(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function se(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?de(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):de(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var fe,pe=20*b.iI;function ve(e,n){var t=e.addNewBlock,o=e.blocks,s=void 0===o?[]:o,p=e.deleteWidget,h=e.fetchAutocompleteItems,g=e.fetchFileTree,j=e.fetchPipeline,y=e.files,w=e.onCreateFile,O=e.pipeline,D=e.setErrors,Z=e.setSelectedBlock,F=e.widgets,E=void 0===F?[]:F,_=(0,i.Z)(e,ae),I=(0,l.useRef)(null),S=(0,l.useContext)(u.ThemeContext),R=(0,l.useState)(null),N=R[0],z=R[1],q=(0,l.useState)(null),W=q[0],Y=q[1],$=(0,l.useState)(null),G=$[0],H=$[1],Q=T.ZP.statuses.list().data,X=(0,l.useMemo)((function(){var e,n;return null===Q||void 0===Q||null===(e=Q.statuses)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.repo_path}),[Q]),V=(0,c.Db)((function(e){return T.ZP.downloads.files.useCreate(e)()}),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){var n=e.data.download.token;(0,ce.K)(n)},onErrorCallback:function(e,n){return D({errors:n,response:e})}})}}),J=(0,r.Z)(V,1)[0],K=(0,c.Db)((function(e){return T.ZP.files.useDelete(e)()}),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){null===g||void 0===g||g()},onErrorCallback:function(e,n){return D({errors:n,response:e})}})}}),ee=(0,r.Z)(K,1)[0],ne=(0,c.Db)((function(e){return T.ZP.folders.useDelete(e)()}),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){null===g||void 0===g||g()},onErrorCallback:function(e,n){return D({errors:n,response:e})}})}}),te=(0,r.Z)(ne,1)[0],de=(0,ue.dd)((function(e){var n=e.block;return(0,x.jsx)(B.Z,{centerOnScreen:!0,danger:!0,onCancel:he,onClick:function(){return be({block:n,force:!0}).then((function(){return he()}))},subtitle:"Deleting this block file is dangerous. This block may have dependencies in active pipelines. Press confirm to delete this block anyway and remove it as a dependency from downstream blocks.",title:"Delete ".concat(n.uuid," anyway?"),width:34*b.iI})})),fe=(0,r.Z)(de,2),ve=fe[0],he=fe[1],me=(0,c.Db)((function(e){var n=e.block,t=n.language,o=n.type,r=n.uuid,i=e.force,l=void 0!==i&&i,u="".concat(o,"/").concat(r);return t&&f.JD[t]&&(u="".concat(u,".").concat(f.JD[t].toLowerCase())),T.ZP.blocks.useDelete(encodeURIComponent(u),{force:l})()}),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){h(),j(),g()},onErrorCallback:function(e){var n=e.error,t=n.exception;n.message.includes("raise HasDownstreamDependencies")&&ve({block:xe,exception:t})}})}}),be=(0,r.Z)(me,1)[0],ge=(0,k.sE)(null===O||void 0===O?void 0:O.blocks,(function(e){var n=e.type;return a.tf.DATA_EXPORTER===n})),je=(0,c.Db)(T.ZP.blocks.pipelines.useUpdate(null===O||void 0===O?void 0:O.uuid,null===ge||void 0===ge?void 0:ge.uuid),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){null===j||void 0===j||j()},onErrorCallback:function(e,n){return D({errors:n,response:e})}})}}),ye=(0,r.Z)(je,1)[0],Ce=(0,l.useCallback)((function(){return H(null)}),[H]);(0,l.useEffect)((function(){var e,o,r,i=function(e){if(clearTimeout(I.current),Y(null),W&&O&&t){var o,r,i=(null===n||void 0===n||null===(o=n.current)||void 0===o||null===(r=o.getBoundingClientRect)||void 0===r?void 0:r.call(o))||{},l=i.width,u=i.x;if(e.pageX>u+l){var c=(null===O||void 0===O?void 0:O.type)===U.qL.INTEGRATION,a=(0,ie.TU)(se(se({},W),{},{path:(0,C.jN)(W)}),X,O);null===t||void 0===t||t(se(se({},a),{},{require_unique_name:!1}),(function(e){c&&ge&&ye({block:se(se({},ge),{},{upstream_blocks:[e.uuid]})}),null===Z||void 0===Z||Z(e)}))}}},l=function(e){W&&z({x:e.pageX,y:e.pageY})};return null===(e=document)||void 0===e||e.addEventListener("click",Ce),null===(o=document)||void 0===o||o.addEventListener("mousemove",l),null===(r=document)||void 0===r||r.addEventListener("mouseup",i),function(){var e,n,t;null===(e=document)||void 0===e||e.removeEventListener("click",Ce),null===(n=document)||void 0===n||n.removeEventListener("mousemove",l),null===(t=document)||void 0===t||t.removeEventListener("mouseup",i)}}),[t,ge,W,Ce,O,n,X,Z,I,ye]);var ke=(0,l.useMemo)((function(){return s.concat(E).map((function(e){return e.uuid}))}),[s,E]),we=(0,l.useMemo)((function(){return null===y||void 0===y?void 0:y.map((function(e){return(0,l.createElement)(P,se(se({},_),{},{containerRef:n,file:e,key:e.name,level:0,pipelineBlockUuids:ke,setCoordinates:z,setDraggingFile:Y,setSelectedFile:H,theme:S,timeout:I}))}))}),[y,ke,_,n,S,I]),xe=(0,l.useMemo)((function(){return G&&(0,C.lr)(G)}),[G]),Oe=(0,l.useMemo)((function(){return W&&(0,C.lr)(W)}),[W]),De=(0,l.useMemo)((function(){return G&&"undefined"!==typeof(null===G||void 0===G?void 0:G.children)&&G}),[G]),Ze=(0,ue.dd)((function(){return(0,x.jsx)(oe,{fetchFileTree:g,onCancel:Ee,selectedFolder:De})}),{},[g,De],{background:!0,uuid:"upload_files"}),Pe=(0,r.Z)(Ze,2),Fe=Pe[0],Ee=Pe[1],_e=(0,ue.dd)((function(e){return(0,x.jsx)(M,{fetchFileTree:g,file:null===e||void 0===e?void 0:e.file,moveFile:null===e||void 0===e?void 0:e.moveFile,onCancel:Re,onCreateFile:w,selectedFolder:De,setErrors:D})}),{},[g,w,De,D],{background:!0,disableClickOutside:!0,uuid:"new_file"}),Ie=(0,r.Z)(_e,2),Se=Ie[0],Re=Ie[1],Te=(0,ue.dd)((function(e){return(0,x.jsx)(A,{fetchFileTree:g,file:null===e||void 0===e?void 0:e.file,moveFile:null===e||void 0===e?void 0:e.moveFile,onCancel:Me,selectedFolder:De,setErrors:D})}),{},[g,De,D],{background:!0,disableClickOutside:!0,uuid:"new_folder"}),Ne=(0,r.Z)(Te,2),Le=Ne[0],Me=Ne[1],Ae=(0,l.useMemo)((function(){var e;if(!xe&&!G&&!De)return(0,x.jsx)("div",{});var t=(null===n||void 0===n||null===(e=n.current)||void 0===e?void 0:e.getBoundingClientRect())||{},o=t.x,r=t.width,i=N||{},l=i.x,u=void 0===l?0:l,c=i.y,s=void 0===c?0:c,f=u+b.iI;u+pe>=o+r&&(f=o+r-(pe+b.iI)),f<0&&(f=0);var v=[];De?v.push.apply(v,[{label:function(){return"New folder"},onClick:function(){Le()},uuid:"new_folder"},{label:function(){return"Rename folder"},onClick:function(){Le({file:De})},uuid:"rename_folder"},{label:function(){return"Move folder"},onClick:function(){Le({file:De,moveFile:!0})},uuid:"Move_folder"},{label:function(){return"Delete folder"},onClick:function(){var e=(0,C.jN)(De);window.confirm("Are you sure you want to delete folder ".concat(e," and all its subfolders and files?"))&&te(encodeURIComponent(e))},uuid:"Delete_folder"},{label:function(){return"New file"},onClick:function(){Se({file:{}})},uuid:"new_file"},{label:function(){return"Upload files"},onClick:function(){Fe()},uuid:"upload_files"}]):G&&(v.push.apply(v,[{label:function(){return"Rename file"},onClick:function(){Se({file:G})},uuid:"rename_file"},{label:function(){return"Move file"},onClick:function(){Se({file:G,moveFile:!0})},uuid:"move_file"},{label:function(){return"Download file"},onClick:function(){var e=(0,C.jN)(G);J(encodeURIComponent(e))},uuid:"download_file"}]),xe?v.push({label:function(){return"Delete block file"},onClick:function(){xe.type===a.tf.CHART?window.confirm("Are you sure you want to delete widget ".concat(xe.uuid,"?"))&&p(xe):window.confirm("Are you sure you want to delete block ".concat(xe.uuid,"?"))&&be({block:xe})},uuid:"delete_block_file"}):v.push({label:function(){return"Delete file"},onClick:function(){var e=(0,C.jN)(G);window.confirm("Are you sure you want to delete file ".concat(e,"?"))&&ee(encodeURIComponent(e))},uuid:"delete_file"}));var h=s+b.iI/2,m=36*v.length;return s+m>=window.innerHeight&&(h=s-m),(0,le.createPortal)((0,x.jsx)("div",{style:{left:f,position:"fixed",top:h,zIndex:re.bf+100},children:(0,x.jsx)(d.Z,{items:v,open:!0,parentRef:void 0,uuid:"FileBrowser/ContextMenu",width:pe})}),document.body)}),[N,be,ee,te,p,J,n,Fe,Se,Le,xe,G,De]);return(0,x.jsxs)(m.Nk,{ref:n,children:[we,(xe||G||De)&&Ae,Oe&&(0,x.jsx)("div",{style:{left:(null===N||void 0===N?void 0:N.x)-b.iI,position:"fixed",top:(null===N||void 0===N?void 0:N.y)-b.iI,zIndex:re.bf+100},children:(0,x.jsx)(v.ZP,{cursor:"grabbing",monospace:!0,children:null===Oe||void 0===Oe?void 0:Oe.uuid})})]})}!function(e){e.BLOCK_FILE="block_file",e.DISABLED="disabled",e.FILE="file",e.FOLDER="folder",e.PIPELINE="pipeline"}(fe||(fe={}));var he=l.forwardRef(ve)},53005:function(e,n,t){t.d(n,{IO:function(){return f},V3:function(){return s},a9:function(){return u},jN:function(){return a},lr:function(){return d},u$:function(){return p}});var o=t(17717),r=t(44425),i=t(89706),l=t(81728);function u(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n||(t?null:null===e||void 0===e?void 0:e.name);if(null!==e&&void 0!==e&&e.parent){var i=[e.parent.name];return(null===r||void 0===r?void 0:r.length)>=1&&i.push(r),u(e.parent,i.join(o.sep))}return r}function c(e){return null===e||void 0===e?void 0:e.split(o.sep).slice(1).join(o.sep)}function a(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=u(e,n,t);return c(o)}function d(e){var n,t,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],d=u(e,c).split(o.sep);if(!d)return null;if(1===d.length)(d=null===e||void 0===e||null===(t=e.path)||void 0===t?void 0:t.split(o.sep))&&(n=d[0]===r.tf.CUSTOM?d[0]:(0,l.C5)(d[0]||""));else if(d[1]===r.tf.CUSTOM)n=d[1];else{var s=d[1];n=r.tf.DBT===s?s:(0,l.C5)(s||"")}if(!d||r.tf.DBT===n)return null;var f="";f=d.length>=3?d.slice(2,d.length).join(o.sep):d[d.length-1];var p=["\\.".concat(i.Lu.PY),"\\.".concat(i.Lu.R),"\\.".concat(i.Lu.SQL),"\\.".concat(i.Lu.YAML),"\\.".concat(i.Lu.YML)].join("|"),v=new RegExp("".concat(p,"$")),h=a?r.Q3:r.$W;if(h.concat(r.tf.DBT).includes(n)&&f.match(v)){var m=f.lastIndexOf("."),b=f.slice(m+1);return{language:i.nB[b],type:n,uuid:f.slice(0,m)}}}function s(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=u(e,n).split(o.sep);if(t[1]){var c=(0,l.C5)(t[n?0:1]);t[1]===r.tf.DBT&&(c=r.tf.DBT);var a=t[t.length-1],d=new RegExp(".".concat(i.Lu.YAML,"$")),s=new RegExp(".".concat(i.Lu.R,"$")),f=new RegExp(".".concat(i.Lu.SQL,"$")),p=new RegExp(".".concat(i.Lu.MD,"$"));if(a.match(d)&&r.VZ.includes(c))return{type:c,uuid:a.replace(d,"")};if(a.match(s)&&r.J8.includes(c))return{type:c,uuid:a.replace(s,"")};if(a.match(f)&&r.HX.includes(c)){var v=a.replace(/[.]/g,"_"),h=c===r.tf.DBT?t.slice(2,-1).join("_").concat("_".concat(v)):a.replace(f,"");return{type:c,uuid:h}}return a.match(p)&&c===r.tf.MARKDOWN?{type:c,uuid:a.replace(p,"")}:void 0}}function f(e,n){var t=e.split("."),r=t[t.length-1];i.n6.includes(r)&&t.pop();var l=t.join("").split(o.sep),u=l.slice(1,l.length).join("");return n.find((function(e){return e.uuid===u}))}function p(e){var n=e||{},t=n.language,o=n.name,u=n.type;if(o&&t&&u){var c=u===r.tf.CUSTOM?u:"".concat(u,"s"),a=i.JD[t],d=(0,l.kE)(o);return"".concat(c,"/").concat(d,".").concat(a)}}},68669:function(e,n,t){t.d(n,{TU:function(){return f},ck:function(){return d},lU:function(){return s}});var o=t(21831),r=t(17717),i=t(44425),l=t(57653),u=t(89706),c=t(86735),a=t(81728),d=function(e){var n=e[0];return n===i.tf.DBT||n===i.tf.CUSTOM?n:e[0].slice(0,-1)};function s(){return new RegExp(Object.keys(u.nB).map((function(e){return".(".concat(e,")$")})).join("|"))}function f(e,n,t){var f,p,v=null===e||void 0===e||null===(f=e.path.match(s())[0])||void 0===f?void 0:f.split(".")[1],h=t.type===l.qL.INTEGRATION,m=(0,c.sE)(null===t||void 0===t?void 0:t.blocks,(function(e){var n=e.type;return i.tf.DATA_EXPORTER===n})),b=e.path.replace(n,"").split(r.sep),g=e.path.split(r.sep)[0]===i.tf.DBT,j=(p=b)[0]===i.tf.DBT?p.slice(1).join(r.sep):function(e){return e.at(-1)}(p).split(".")[0];if(b.length>=3&&!g){var y=b.slice(1,b.length-1).join(r.sep);j="".concat(y,"/").concat(j)}var C=d(e.path.split(r.sep)),k={configuration:{file_path:g?j:null},language:u.nB[v],name:(0,a.wE)(j),type:C};if(C===i.tf.CUSTOM&&(k.color=i.Lq.TEAL),h){var w=(0,c.sE)(t.blocks,(function(e){var n=e.type;return i.tf.DATA_LOADER===n})),x=(0,c.sE)(t.blocks,(function(e){var n=e.type;return i.tf.TRANSFORMER===n})),O=[];x?O.push(x.uuid):null!==m&&void 0!==m&&m.upstream_blocks?O.push.apply(O,(0,o.Z)(m.upstream_blocks)):w&&O.push(w.uuid),k.upstream_blocks=O}return k}},44952:function(e,n,t){t.d(n,{K:function(){return r}});var o=t(4383);function r(e){var n=(0,o.ZP)("downloads",e),t=document.createElement("a");t.href=n,document.body.appendChild(t),t.click(),window.URL.revokeObjectURL(n),document.body.removeChild(t)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5638],{65557:function(n,e,t){var o=t(21831),r=t(75582),i=t(82684),c=t(80329);e.Z=function(n){var e=n.children,t=n.uuid,d=n.uuids,a=void 0===d?[]:d,l=(0,c.j)("apiReloads"),u=(0,r.Z)(l,1)[0],s=(0,o.Z)(a);t&&s.push(t);var f=s.map((function(n){return String(u[n])||"-"})).join("_");return i.cloneElement(e,{key:f})}},55283:function(n,e,t){t.d(e,{HC:function(){return w},HS:function(){return C},IN:function(){return f},Kf:function(){return m},Nk:function(){return g},PB:function(){return x},PY:function(){return y},WC:function(){return p},fk:function(){return j},gE:function(){return I},j1:function(){return O},jv:function(){return k},nz:function(){return v},oh:function(){return s},qn:function(){return b},t1:function(){return Z},u2:function(){return h},y9:function(){return _}});var o=t(38626),r=t(44897),i=t(44425),c=t(42631),d=t(8059),a=t(70515),l=t(47041),u=t(91437),s=68,f=1.5*a.iI,p=3*a.iI;function h(n){var e=d.eW;return i.tf.CALLBACK===n?e=d.J:i.tf.CHART===n||i.tf.CONDITIONAL===n?e=d.Hv:i.tf.CUSTOM===n?e=d.AK:i.tf.DATA_EXPORTER===n?e=d.Sr:i.tf.DATA_LOADER===n?e=d.R2:i.tf.DBT===n?e=d.J:i.tf.EXTENSION===n?e=d.FI:i.tf.GLOBAL_DATA_PRODUCT===n?e=d.yr:i.tf.SCRATCHPAD===n?e=d.Hv:i.tf.SENSOR===n?e=d.rK:i.tf.MARKDOWN===n?e=d.RK:i.tf.TRANSFORMER===n&&(e=d.eW),e}function b(n,e){var t,o,c=((null===e||void 0===e||null===(t=e.theme)||void 0===t?void 0:t.borders)||r.Z.borders).light,d=((null===e||void 0===e||null===(o=e.theme)||void 0===o?void 0:o.monotone)||r.Z.monotone).grey500,a=e||{},l=a.blockColor,u=a.isSelected,s=a.theme;return u?c=(s||r.Z).content.active:i.tf.TRANSFORMER===n||l===i.Lq.PURPLE?(c=(s||r.Z).accent.purple,d=(s||r.Z).accent.purpleLight):i.tf.DATA_EXPORTER===n||l===i.Lq.YELLOW?(c=(s||r.Z).accent.yellow,d=(s||r.Z).accent.yellowLight):i.tf.DATA_LOADER===n||l===i.Lq.BLUE?(c=(s||r.Z).accent.blue,d=(s||r.Z).accent.blueLight):i.tf.MARKDOWN===n?(c=(s||r.Z).accent.sky,d=(s||r.Z).accent.skyLight):i.tf.SENSOR===n||l===i.Lq.PINK?(c=(s||r.Z).accent.pink,d=(s||r.Z).accent.pinkLight):i.tf.DBT===n?(c=(s||r.Z).accent.dbt,d=(s||r.Z).accent.dbtLight):i.tf.EXTENSION===n||l===i.Lq.TEAL?(c=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).teal,d=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).tealLight):i.tf.CALLBACK===n?(c=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).rose,d=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).roseLight):i.tf.CONDITIONAL===n||i.tf.SCRATCHPAD===n||l===i.Lq.GREY||i.tf.CUSTOM===n&&!l?(c=(s||r.Z).content.default,d=(s||r.Z).accent.contentDefaultTransparent):i.tf.GLOBAL_DATA_PRODUCT!==n||l||(c=(s||r.Z).monotone.white,d=(s||r.Z).monotone.whiteTransparent),{accent:c,accentLight:d}}var m=(0,o.css)([""," "," "," "," "," "," ",""],(0,u.eR)(),(function(n){return!n.selected&&!n.hasError&&"\n border-color: ".concat(b(n.blockType,n).accentLight,";\n ")}),(function(n){return n.selected&&!n.hasError&&"\n border-color: ".concat(b(n.blockType,n).accent,";\n ")}),(function(n){return!n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.accent||r.Z.accent).negativeTransparent,";\n ")}),(function(n){return n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.borders||r.Z.borders).danger,";\n ")}),(function(n){return n.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(n){return n.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),g=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],c.n_),y=o.default.div.withConfig({displayName:"indexstyle__HiddenBlockContainerStyle",componentId:"sc-s5rj34-1"})([""," border-radius:","px;border-style:",";border-width:","px;",""],m,c.n_,c.M8,c.mP,(function(n){return"\n background-color: ".concat((n.theme||r.Z).background.content,";\n\n &:hover {\n border-color: ").concat(b(n.blockType,n).accent,";\n }\n ")})),x=o.default.div.withConfig({displayName:"indexstyle__HeaderHorizontalBorder",componentId:"sc-s5rj34-2"})(["",""],(function(n){return"\n border-bottom: 1px solid ".concat((n.theme||r.Z).borders.darkLight,";\n ")})),v=o.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-3"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;"," "," "," ",""],m,c.n_,c.n_,c.M8,c.mP,c.M8,c.mP,c.M8,c.mP,1*a.iI,1*a.iI,(function(n){return"\n background-color: ".concat((n.theme||r.Z).background.dashboard,";\n ")}),(function(n){return"undefined"!==typeof n.zIndex&&null!==n.zIndex&&"\n z-index: ".concat(6+(n.zIndex||0),";\n ")}),(function(n){return!n.noSticky&&"\n // This is to hide the horizontal scrollbar in the block header when sideBySide is enabled,\n // and the screen width is too small.\n position: sticky;\n top: -5px;\n "}),(function(n){return n.noSticky&&"\n ".concat((0,l.y$)(),"\n\n overflow-x: auto;\n overflow-y: visible;\n ")})),C=o.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-s5rj34-4"})([""," "," ",""],(function(n){return!n.darkBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||r.Z.borders).darkLight,";\n ")}),(function(n){return n.darkBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||r.Z.borders).medium,";\n ")}),(function(n){return!n.noBackground&&"\n background-color: ".concat((n.theme||r.Z).background.dashboard,";\n ")})),k=o.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-5"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;position:relative;"," "," "," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],m,c.M8,c.mP,c.M8,c.mP,(function(n){return"\n background-color: ".concat((n.theme.background||r.Z.background).codeTextarea,";\n ")}),(function(n){return!n.noPadding&&"\n padding-bottom: ".concat(a.iI,"px;\n padding-top: ").concat(a.iI,"px;\n ")}),(function(n){return n.lightBackground&&"\n background-color: ".concat((n.theme||r.Z).background.content,";\n ")}),(function(n){return!n.hideBorderBottom&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom-style: ").concat(c.M8,";\n border-bottom-width: ").concat(c.mP,"px;\n overflow: hidden;\n ")})),I=o.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-6"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;&:hover{"," .block-divider-inner{","}}"," "," "," ",""],2*a.iI,(function(n){return n.additionalZIndex>0&&"\n z-index: ".concat(8+n.additionalZIndex,";\n ")}),(function(n){return"\n background-color: ".concat((n.theme.text||r.Z.text).fileBrowser,";\n ")}),(function(n){return!n.height&&"\n height: ".concat(2*a.iI,"px;\n ")}),(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),(function(n){return!n.bottom&&"\n bottom: ".concat(.5*a.iI,"px;\n ")}),(function(n){return"undefined"!==typeof n.bottom&&"\n bottom: ".concat(n.bottom,"px;\n ")})),Z=o.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-7"})(["height 1px;width:100%;position:absolute;z-index:-1;"," ",""],(function(n){return!n.top&&"\n top: ".concat(1.5*a.iI,"px;\n ")}),(function(n){return"undefined"!==typeof n.top&&"\n top: ".concat(n.top,"px;\n ")})),_=o.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-8"})([""," ",""],(function(n){return"\n border-bottom: 1px solid ".concat((n.theme.borders||r.Z.borders).medium,";\n padding-left: ").concat(n.normalPadding?a.iI:s,"px;\n ")}),(function(n){return!n.noMargin&&"\n margin-bottom: ".concat(1*a.iI,"px;\n padding-bottom: ").concat(1*a.iI,"px;\n ")})),w=o.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-9"})(["bottom:","px;left:","px;position:absolute;"],1*a.iI,s),j=o.default.div.withConfig({displayName:"indexstyle__ScrollColunnsContainerStyle",componentId:"sc-s5rj34-10"})(["position:relative;",""],(function(n){return"\n z-index: ".concat((null===n||void 0===n?void 0:n.zIndex)||1,";\n ")})),O=o.default.div.attrs((function(n){var e=n.height,t=n.left,o=n.right,r=n.top;return{style:{position:"fixed",height:e,width:n.width,left:t,right:o,top:r,zIndex:(n.zIndex||0)+2}}})).withConfig({displayName:"indexstyle__ScrollColunnStyle",componentId:"sc-s5rj34-11"})([""])},90758:function(n,e,t){t.d(e,{Z:function(){return _}});var o=t(82394),r=t(26304),i=t(82684),c=t(38626),d=t(39867),a=t(55485),l=t(48670),u=t(38276),s=t(30160),f=t(12468),p=t(44897),h=t(72473),b=t(97133),m=t(70515),g=t(15610),y=t(3314),x=t(28598);var v=function(n){var e=n.filePath,t=n.filesTouched,o=void 0===t?{}:t,r=n.isLast,c=n.onClickTab,v=n.onClickTabClose,C=n.renderTabTitle,k=n.savePipelineContent,I=n.selected,Z=n.themeContext,_=(0,i.useState)(!1),w=_[0],j=_[1];return(0,x.jsx)(a.ZP,{flexDirection:"column",fullHeight:!0,onClick:function(n){n.preventDefault(),I||(c?c(e):(null===k||void 0===k||k(),(0,g.u7)({file_path:encodeURIComponent(e)})))},onMouseEnter:function(){return j(!0)},onMouseLeave:function(){return j(!1)},children:(0,x.jsx)(b.Gb,{last:r,selected:I,children:(0,x.jsxs)(a.ZP,{alignItems:"center",fullHeight:!0,children:[(0,x.jsx)(f.Z,{appearAbove:!0,appearBefore:!0,label:e,size:null,widthFitContent:!0,children:(0,x.jsxs)(a.ZP,{alignItems:"center",fullHeight:!0,children:[!o[e]&&(0,x.jsx)(h.iU,{muted:!I,size:1.5*m.iI}),o[e]&&(0,x.jsx)(f.Z,{label:"Unsaved changes",size:null,widthFitContent:!0,children:(0,x.jsx)("div",{style:{padding:1},children:(0,x.jsx)(d.Z,{borderColor:(Z||p.Z).borders.danger,size:1.25*m.iI})})}),(0,x.jsx)(u.Z,{mr:1}),(0,x.jsx)(s.ZP,{muted:!I,children:C?C(e):e})]})}),(0,x.jsx)(u.Z,{mr:2}),(0,x.jsx)(f.Z,{label:"Close",size:null,widthFitContent:!0,children:(0,x.jsxs)(l.Z,{autoHeight:!0,block:!0,noHoverUnderline:!0,noOutline:!0,onClick:function(n){(0,y.j)(n),null===v||void 0===v||v(e)},preventDefault:!0,children:[(w||I)&&(0,x.jsx)(h.x8,{muted:!I,size:1.25*m.iI}),!w&&!I&&(0,x.jsx)("div",{style:{width:1.25*m.iI}})]})})]})})})},C=t(86735),k=["filePaths","isSelectedFilePath","onClickTabClose","selectedFilePath"];function I(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function Z(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?I(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):I(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var _=function(n){var e=n.filePaths,t=n.isSelectedFilePath,o=n.onClickTabClose,d=n.selectedFilePath,l=(0,r.Z)(n,k),u=(0,i.useContext)(c.ThemeContext),s=(0,i.useMemo)((function(){return e.map((function(n){return decodeURIComponent(n)}))}),[e]),f=(0,i.useMemo)((function(){return null===s||void 0===s?void 0:s.length}),[s]);return(0,x.jsx)(a.ZP,{alignItems:"center",justifyContent:"flex-start",children:null===s||void 0===s?void 0:s.map((function(n,e){var r=t?t(n,d):d===encodeURIComponent(n);return(0,i.createElement)(v,Z(Z({},l),{},{filePath:n,isLast:e===f-1,key:n,onClickTabClose:function(n){if(o)o(n);else{var e=(0,C.Od)(s,(function(e){return e===n})).map((function(n){return encodeURIComponent(n)}));(0,g.u7)({file_path:e[e.length-1]||null,"file_paths[]":e},{pushHistory:!0})}},selected:r,themeContext:u}))}))})}},97133:function(n,e,t){t.d(e,{Gb:function(){return f},fm:function(){return u},lO:function(){return l},rK:function(){return s},zn:function(){return a}});var o=t(38626),r=t(44897),i=t(2842),c=t(70515),d=t(47041),a=300,l=o.default.div.withConfig({displayName:"indexstyle__PipelineContainerStyle",componentId:"sc-1sv9513-0"})([".pipeline-detail-enter-active{opacity:1;transition:opacity ","ms linear;}.pipeline-detail-enter-done{opacity:0;transition:opacity ","ms linear;}"],a,a),u=o.default.div.withConfig({displayName:"indexstyle__OverlayStyle",componentId:"sc-1sv9513-1"})(["height:100vh;opacity:1;position:fixed;width:100vw;z-index:9999;",""],(function(n){return"\n background-color: ".concat((n.theme.background||r.Z.background).codeArea,";\n ")})),s=o.default.div.withConfig({displayName:"indexstyle__PipelineHeaderStyle",componentId:"sc-1sv9513-2"})(["height:","px;position:sticky;top:","px;width:100%;z-index:5;"," "," "," ",""],i.Wi,i.Wi,(function(n){return"\n background-color: ".concat((n.theme.background||r.Z.background).panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||r.Z.borders).medium,";\n ")}),(function(n){return n.relativePosition&&"\n position: relative;\n "}),(function(n){return n.secondary&&"\n height: ".concat(37,"px;\n top: ").concat(i.Wi,"px;\n overflow-x: auto;\n z-index: 3;\n ")}),(0,d.y$)()),f=o.default.div.withConfig({displayName:"indexstyle__FileTabStyle",componentId:"sc-1sv9513-3"})(["border-right:1px solid transparent;height:100%;padding:","px ","px;"," "," ",""],c.iI,c.cd*c.iI,(function(n){return"\n &:hover {\n cursor: default;\n\n p {\n color: ".concat((n.theme.content||r.Z.content).active," !important;\n cursor: default;\n }\n }\n ")}),(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||r.Z.interactive).hoverBackground,";\n ")}),(function(n){return!n.selected&&!n.last&&"\n border-color: ".concat((n.theme.borders||r.Z.borders).light," !important;\n ")}));o.default.div.withConfig({displayName:"indexstyle__HeaderViewOptionsStyle",componentId:"sc-1sv9513-4"})(["left:50%;position:absolute;transform:translateX(-50%);"])}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5810],{7432:function(n,e,o){var t={"./Active4D.json":[266,266],"./All Hallows Eve.json":[4450,4450],"./Amy.json":[88849,8849],"./Birds of Paradise.json":[78097,8097],"./Blackboard.json":[88018,6115],"./Brilliance Black.json":[73835,3835],"./Brilliance Dull.json":[6507,6507],"./Chrome DevTools.json":[22508,2508],"./Clouds Midnight.json":[49566,9566],"./Clouds.json":[57951,7951],"./Cobalt.json":[80826,826],"./Cobalt2.json":[98256,8256],"./Dawn.json":[76958,6958],"./Dominion Day.json":[89307,9307],"./Dracula.json":[33453,3453],"./Dreamweaver.json":[19363,9363],"./Eiffel.json":[82481,2481],"./Espresso Libre.json":[44776,4776],"./GitHub Dark.json":[792,792],"./GitHub Light.json":[61450,1450],"./GitHub.json":[10739,739],"./IDLE.json":[67947,7947],"./Katzenmilch.json":[81240,1240],"./Kuroir Theme.json":[4388,4388],"./LAZY.json":[25164,5164],"./MagicWB (Amiga).json":[76443,6443],"./Merbivore Soft.json":[99361,9361],"./Merbivore.json":[86042,6042],"./Monokai Bright.json":[14883,4883],"./Monokai.json":[34454,4454],"./Night Owl.json":[60261,261],"./Nord.json":[59785,9785],"./Oceanic Next.json":[58920,8920],"./Pastels on Dark.json":[38901,8901],"./Slush and Poppies.json":[26434,6434],"./Solarized-dark.json":[36116,6116],"./Solarized-light.json":[5008,5008],"./SpaceCadet.json":[20440,440],"./Sunburst.json":[68018,8018],"./Textmate (Mac Classic).json":[15824,5824],"./Tomorrow-Night-Blue.json":[81150,1150],"./Tomorrow-Night-Bright.json":[8762,8762],"./Tomorrow-Night-Eighties.json":[82545,2545],"./Tomorrow-Night.json":[99855,9855],"./Tomorrow.json":[34092,4092],"./Twilight.json":[93898,3898],"./Upstream Sunburst.json":[98807,8807],"./Vibrant Ink.json":[89927,9927],"./Xcode_default.json":[64042,4042],"./Zenburnesque.json":[33467,3467],"./iPlastic.json":[88277,8277],"./idleFingers.json":[5104,5104],"./krTheme.json":[9633,9633],"./monoindustrial.json":[15729,5729],"./themelist.json":[79437,9437]};function i(n){if(!o.o(t,n))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+n+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=t[n],i=e[0];return o.e(e[1]).then((function(){return o.t(i,19)}))}i.keys=function(){return Object.keys(t)},i.id=7432,n.exports=i},89209:function(n,e,o){"use strict";o.d(e,{M4:function(){return d},S0:function(){return s},S_:function(){return c},Yn:function(){return f},rW:function(){return l}});var t=o(82394),i=o(21831),r=o(75582);function a(n,e){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.push.apply(o,t)}return o}function u(n){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?a(Object(o),!0).forEach((function(e){(0,t.Z)(n,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):a(Object(o)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}))}return n}function c(n,e){return Object.entries(e).map((function(e){var o=(0,r.Z)(e,2),t=o[0],i=o[1];return n.languages.registerCompletionItemProvider(t,{provideCompletionItems:i(n)})}))}function s(n){var e=function(n){var e="[\\w.]+",o=["import ".concat(e," as ").concat(e),"import ".concat(e),"from ".concat(e," import ").concat(e," as ").concat(e),"from ".concat(e," import ").concat(e)],t=new RegExp("(".concat(o.join("|"),")"),"g");return(0,i.Z)(n.matchAll(t)).map((function(n){return n[1]}))}(n),o="[\\w.]+",r=["from ".concat(o," import ").concat(o," as (").concat(o,")"),"from ".concat(o," import (").concat(o,")"),"import ".concat(o," as (").concat(o,")"),"import (".concat(o,")")],a=new RegExp("(".concat(r.join("|"),")"));return e.reduce((function(n,e){var o=e.match(a);if(!o)return n;var r=(0,i.Z)(o),c=r[2],s=r[3],l=r[4],d=r[5],f=c||s||l||d;return u(u({},n),{},(0,t.Z)({},f,e))}),{})}function l(n,e){var o=n;e&&(o=o.split(" as ".concat(e))[0]);var t="[\\w.]+",a=["from ".concat(t," import (").concat(t,")"),"import (".concat(t,")")],u=new RegExp("(".concat(a.join("|"),")"),"g"),c=(0,i.Z)(o.matchAll(u))[0];if(c){var s=(0,r.Z)(c,4),l=s[2],d=s[3];return l||d}}function d(n,e){return function(n,e){return n.split("\n")[e.startLineNumber-1]}(n,e).slice(0,e.startColumn-1)}function f(n){var e=new RegExp("([\\w_]+)[ ]*=[ ]*([\\w_]+)","g");return(0,i.Z)(n.matchAll(e)).map((function(n){return{assignmentValue:n[2],variableName:n[1]}}))}},89678:function(n,e,o){"use strict";o.d(e,{Ep:function(){return u},KT:function(){return l},Nk:function(){return s},aU:function(){return c}});var t=o(38626),i=o(44897),r=o(95363),a=o(70515),u=2,c=21,s=t.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-w2hta3-0"})(["font-family:",";"," ",""],r.ry,(function(n){return n.padding&&"\n padding-top: ".concat(2*a.iI,"px;\n background-color: ").concat((n.theme.background||i.Z.background).codeTextarea,";\n ")}),(function(n){return n.hideDuplicateMenuItems&&'\n /*\n * The (n + 10) assumes a specific number of items in the block editor context\n * menu. This includes "Run selected block", "Change All Occurrences", "Cut",\n * "Copy", "Paste", "Command Palette", and 3 dividers. The 10th item from the\n * bottom and higher are hidden to avoid duplicate shortcut items in the\n * context menu.\n */\n .monaco-menu li.action-item:nth-last-child(n + 10) {\n display: none;\n }\n '})),l=t.default.div.withConfig({displayName:"indexstyle__PlaceholderStyle",componentId:"sc-w2hta3-1"})(["padding-left:67px;position:absolute;z-index:1;"])},75810:function(n,e,o){"use strict";o.d(e,{Z:function(){return j}});var t=o(85202),i=o(66639),r=o(82684),a=o(4383),u=o(44425),c=o(30160),s=o(98464),l=o(95363),d=o(61896),f=o(89678),m=o(89209);function h(n,e,o){o.forEach((function(n){e.addAction(n)}))}var g=o(75582),p={"all-hallows-eve":"All Hallows Eve","birds-of-paradise":"Birds of Paradise","brilliance-black":"Brilliance Black","brilliance-dull":"Brilliance Dull","chrome-devtools":"Chrome DevTools","clouds-midnight":"Clouds Midnight","espresso-libre":"Espresso Libre","kuroir-theme":"Kuroir Theme","magicwb--amiga-":"MagicWB (Amiga)","merbivore-soft":"Merbivore Soft","monokai-bright":"Monokai Bright","night-owl":"Night Owl","oceanic-next":"Oceanic Next","pastels-on-dark":"Pastels on Dark","slush-and-poppies":"Slush and Poppies","solarized-dark":"Solarized-dark","solarized-light":"Solarized-light","textmate--mac-classic-":"Textmate (Mac Classic)","tomorrow-night":"Tomorrow-Night","tomorrow-night-blue":"Tomorrow-Night-Blue","tomorrow-night-bright":"Tomorrow-Night-Bright","tomorrow-night-eighties":"Tomorrow-Night-Eighties","upstream-sunburst":"Upstream Sunburst","vibrant-ink":"Vibrant Ink","xcode-default":"Xcode_default",active4d:"Active4D",amy:"Amy",blackboard:"Blackboard",clouds:"Clouds",cobalt:"Cobalt",dawn:"Dawn",dreamweaver:"Dreamweaver",eiffel:"Eiffel",github:"GitHub",idle:"IDLE",idlefingers:"idleFingers",iplastic:"iPlastic",katzenmilch:"Katzenmilch",krtheme:"krTheme",lazy:"LAZY",merbivore:"Merbivore",monoindustrial:"monoindustrial",monokai:"Monokai",spacecadet:"SpaceCadet",sunburst:"Sunburst",tomorrow:"Tomorrow",twilight:"Twilight",zenburnesque:"Zenburnesque"};var v=o(37529),b=o(28598);i._m.config({paths:{vs:"".concat((0,a.XF)(),"/monaco-editor/min/vs")}});var j=function(n){var e=n.autocompleteProviders,a=n.autoHeight,j=n.autoSave,w=n.block,k=n.fontSize,C=void 0===k?d.i3:k,y=n.height,S=n.language,E=n.onChange,O=n.onContentSizeChangeCallback,x=n.onDidChangeCursorPosition,D=n.onMountCallback,T=n.onSave,M=n.padding,N=n.placeholder,P=n.readOnly,_=n.selected,B=(n.setSelected,n.setTextareaFocused),Z=n.shortcuts,z=n.showLineNumbers,A=void 0===z||z,F=n.tabSize,I=void 0===F?4:F,L=n.textareaFocused,R=n.theme,K=void 0===R?"twilight":R,H=n.value,W=n.width,U=void 0===W?"100%":W,G=(0,r.useRef)(null),V=(0,r.useRef)(null),q=(0,r.useRef)(null),X=(0,r.useState)([]),Y=X[0],Q=X[1],J=(0,r.useState)(null),$=J[0],nn=J[1],en=(0,r.useState)(!1),on=en[0],tn=en[1],rn=(0,r.useState)(null),an=rn[0],un=rn[1],cn=(0,r.useCallback)((function(n){un((function(e){return e!==K&&function(n){return new Promise((function(e){Promise.all([i._m.init(),o(7432)("./".concat(p[n],".json"))]).then((function(o){var t=(0,g.Z)(o,2),i=t[0],r=t[1];r.colors["editor.background"]="#000000",r.colors["editor.foreground"]="#FFFFFF",i.editor.defineTheme(n,r),e(!0)})).catch((function(){e(!1)}))}))}(K).then((function(e){if(e)return n.editor.setTheme(K),K})),e}))}),[K]),sn=(0,r.useCallback)((function(n){n.languages.typescript.javascriptDefaults.setEagerModelSync(!0),nn(n),cn(n)}),[cn]),ln=(0,r.useCallback)((function(n,e){G.current=n,V.current=e;var o=[];null===Z||void 0===Z||Z.forEach((function(t){o.push(t(e,n))})),T&&o.push((0,v.e)(e,(function(){T(n.getValue())}))),h(0,n,o),n.getModel().updateOptions({tabSize:I}),a&&!y&&(n._domElement.style.height="".concat(((H||"").split("\n").length+f.Ep)*f.aU,"px")),n.onDidFocusEditorWidget((function(){null===B||void 0===B||B(!0)})),n.onDidContentSizeChange((function(e){var o=e.contentHeight,t=e.contentHeightChanged;a&&t&&(n._domElement.style.height="".concat(o+2*f.aU,"px")),O&&(null===O||void 0===O||O())})),_&&L&&setTimeout((function(){n.focus()}),1),x&&n.onDidChangeCursorPosition((function(e){var o=e.position.lineNumber,t=n._domElement.getBoundingClientRect(),i=t.height,r=t.top,a=n.getTopForLineNumber(o);x({editorRect:{height:Number(i),top:Number(r)},position:{lineNumberTop:a}})})),tn(!0),null===D||void 0===D||D()}),[a,y,O,x,D,T,_,tn,B,Z,I,L,H]);(0,r.useEffect)((function(){var n;return j&&T&&(n=setInterval((function(){T(G.current.getValue())}),5e3)),function(){j&&n&&clearInterval(n)}}),[j,G,T]);var dn=(0,s.Z)(_),fn=(0,s.Z)(L);return(0,r.useEffect)((function(){null!==G&&void 0!==G&&G.current&&(_&&L?setTimeout((function(){G.current.focus()}),1):t.findDOMNode(G.current._domElement).getElementsByClassName("inputarea")[0].blur())}),[G,_,dn,L,fn]),(0,r.useEffect)((function(){if(null!==V&&void 0!==V&&V.current&&null!==G&&void 0!==G&&G.current){var n=[];null===Z||void 0===Z||Z.forEach((function(e){n.push(e(null===V||void 0===V?void 0:V.current,null===G||void 0===G?void 0:G.current))})),h(null===V||void 0===V||V.current,null===G||void 0===G?void 0:G.current,n)}}),[null===w||void 0===w?void 0:w.downstream_blocks,null===w||void 0===w?void 0:w.upstream_blocks]),(0,r.useEffect)((function(){return function(){Y.map((function(n){return n.dispose()}))}}),[Y]),(0,r.useEffect)((function(){$&&e&&(0===Y.length&&L||!fn&&L?Q((0,m.S_)($,e)):fn&&!L&&Y.map((function(n){return n.dispose()})))}),[e,Y,$,L,fn]),(0,b.jsxs)(f.Nk,{hideDuplicateMenuItems:!0,padding:M,style:{display:on?null:"none"},children:[N&&!(null!==H&&void 0!==H&&H.length)&&(0,b.jsx)(f.KT,{children:(0,b.jsx)(c.ZP,{monospace:!0,muted:!0,children:N})}),(0,b.jsx)(i.ZP,{beforeMount:sn,height:y,language:S||"python",onChange:function(n){null===E||void 0===E||E(n)},onMount:ln,options:{domReadOnly:P,fontFamily:l.Vp,fontLigatures:!0,fontSize:C,hideCursorInOverviewRuler:!0,lineNumbers:A?"on":"off",minimap:{enabled:!1},overviewRulerBorder:!1,readOnly:P,renderLineHighlightOnlyWhenFocus:!0,scrollBeyondLastLine:!1,scrollbar:{alwaysConsumeMouseWheel:!1,vertical:"hidden"},useShadowDOM:!1,wordBasedSuggestions:!1,wordWrap:(null===w||void 0===w?void 0:w.type)===u.tf.MARKDOWN?"on":"off"},theme:an||"vs-dark",value:H,width:U}),(0,b.jsx)("div",{ref:q})]})}},37529:function(n,e,o){"use strict";function t(n,e){return{contextMenuGroupId:"navigation",contextMenuOrder:1.5,id:"saveCode",keybindingContext:null,keybindings:[n.KeyMod.CtrlCmd|n.KeyCode.KeyS],label:"Save",precondition:null,run:function(n){e()}}}function i(n,e){return{contextMenuGroupId:"navigation",contextMenuOrder:1.5,id:"executeCode",keybindingContext:null,keybindings:[n.KeyMod.CtrlCmd|n.KeyCode.Enter],label:"Run selected block",precondition:null,run:function(){return e()}}}o.d(e,{Q:function(){return i},e:function(){return t}})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5820],{80022:function(e,t,n){function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return s}})},15544:function(e,t,n){function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}n.d(t,{Z:function(){return s}})},13692:function(e,t,n){n.d(t,{Z:function(){return i}});var s=n(61049);function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&(0,s.Z)(e,t)}},93189:function(e,t,n){n.d(t,{Z:function(){return o}});var s=n(12539),i=n(80022);function o(e,t){if(t&&("object"===s(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}},61049:function(e,t,n){function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}n.d(t,{Z:function(){return s}})},4804:function(e,t,n){n.d(t,{Qc:function(){return wn},Pz:function(){return kn}});const s=Symbol.for("yaml.alias"),i=Symbol.for("yaml.document"),o=Symbol.for("yaml.map"),r=Symbol.for("yaml.pair"),a=Symbol.for("yaml.scalar"),c=Symbol.for("yaml.seq"),l=Symbol.for("yaml.node.type"),u=e=>!!e&&"object"===typeof e&&e[l]===s,f=e=>!!e&&"object"===typeof e&&e[l]===i,h=e=>!!e&&"object"===typeof e&&e[l]===o,d=e=>!!e&&"object"===typeof e&&e[l]===r,p=e=>!!e&&"object"===typeof e&&e[l]===a,m=e=>!!e&&"object"===typeof e&&e[l]===c;function y(e){if(e&&"object"===typeof e)switch(e[l]){case o:case c:return!0}return!1}function g(e){if(e&&"object"===typeof e)switch(e[l]){case s:case o:case a:case c:return!0}return!1}class b{constructor(e){Object.defineProperty(this,l,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}}const w=Symbol("break visit"),k=Symbol("skip children"),v=Symbol("remove node");function S(e,t){const n=A(t);if(f(e)){E(null,e.contents,n,Object.freeze([e]))===v&&(e.contents=null)}else E(null,e,n,Object.freeze([]))}function E(e,t,n,s){const i=I(e,t,n,s);if(g(i)||d(i))return T(e,s,i),E(e,i,n,s);if("symbol"!==typeof i)if(y(t)){s=Object.freeze(s.concat(t));for(let e=0;e<t.items.length;++e){const i=E(e,t.items[e],n,s);if("number"===typeof i)e=i-1;else{if(i===w)return w;i===v&&(t.items.splice(e,1),e-=1)}}}else if(d(t)){s=Object.freeze(s.concat(t));const e=E("key",t.key,n,s);if(e===w)return w;e===v&&(t.key=null);const i=E("value",t.value,n,s);if(i===w)return w;i===v&&(t.value=null)}return i}async function N(e,t){const n=A(t);if(f(e)){await O(null,e.contents,n,Object.freeze([e]))===v&&(e.contents=null)}else await O(null,e,n,Object.freeze([]))}async function O(e,t,n,s){const i=await I(e,t,n,s);if(g(i)||d(i))return T(e,s,i),O(e,i,n,s);if("symbol"!==typeof i)if(y(t)){s=Object.freeze(s.concat(t));for(let e=0;e<t.items.length;++e){const i=await O(e,t.items[e],n,s);if("number"===typeof i)e=i-1;else{if(i===w)return w;i===v&&(t.items.splice(e,1),e-=1)}}}else if(d(t)){s=Object.freeze(s.concat(t));const e=await O("key",t.key,n,s);if(e===w)return w;e===v&&(t.key=null);const i=await O("value",t.value,n,s);if(i===w)return w;i===v&&(t.value=null)}return i}function A(e){return"object"===typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function I(e,t,n,s){return"function"===typeof n?n(e,t,s):h(t)?n.Map?.(e,t,s):m(t)?n.Seq?.(e,t,s):d(t)?n.Pair?.(e,t,s):p(t)?n.Scalar?.(e,t,s):u(t)?n.Alias?.(e,t,s):void 0}function T(e,t,n){const s=t[t.length-1];if(y(s))s.items[e]=n;else if(d(s))"key"===e?s.key=n:s.value=n;else{if(!f(s)){const e=u(s)?"alias":"scalar";throw new Error(`Cannot replace node with ${e} parent`)}s.contents=n}}S.BREAK=w,S.SKIP=k,S.REMOVE=v,N.BREAK=w,N.SKIP=k,N.REMOVE=v;const L={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};class ${constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},$.defaultYaml,e),this.tags=Object.assign({},$.defaultTags,t)}clone(){const e=new $(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new $(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:$.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},$.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:$.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},$.defaultTags),this.atNextDocument=!1);const n=e.trim().split(/[ \t]+/),s=n.shift();switch(s){case"%TAG":{if(2!==n.length&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[e,s]=n;return this.tags[e]=s,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==n.length)return t(0,"%YAML directive should contain exactly one part"),!1;const[e]=n;if("1.1"===e||"1.2"===e)return this.yaml.version=e,!0;return t(6,`Unsupported YAML version ${e}`,/^\d+\.\d+$/.test(e)),!1}default:return t(0,`Unknown directive ${s}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){const n=e.slice(2,-1);return"!"===n||"!!"===n?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),n)}const[,n,s]=e.match(/^(.*!)([^!]*)$/);s||t(`The ${e} tag has no suffix`);const i=this.tags[n];return i?i+decodeURIComponent(s):"!"===n?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+e.substring(n.length).replace(/[!,[\]{}]/g,(e=>L[e]));return"!"===e[0]?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let s;if(e&&n.length>0&&g(e.contents)){const t={};S(e.contents,((e,n)=>{g(n)&&n.tag&&(t[n.tag]=!0)})),s=Object.keys(t)}else s=[];for(const[i,o]of n)"!!"===i&&"tag:yaml.org,2002:"===o||e&&!s.some((e=>e.startsWith(o)))||t.push(`%TAG ${i} ${o}`);return t.join("\n")}}function x(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);throw new Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0}function C(e){const t=new Set;return S(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function _(e,t){for(let n=1;;++n){const s=`${e}${n}`;if(!t.has(s))return s}}$.defaultYaml={explicit:!1,version:"1.2"},$.defaultTags={"!!":"tag:yaml.org,2002:"};class j extends b{constructor(e){super(s),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return S(e,{Node:(e,n)=>{if(n===this)return S.BREAK;n.anchor===this.source&&(t=n)}}),t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:n,doc:s,maxAliasCount:i}=t,o=this.resolve(s);if(!o){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}const r=n.get(o);if(!r||void 0===r.res){throw new ReferenceError("This should not happen: Alias anchor was not resolved?")}if(i>=0&&(r.count+=1,0===r.aliasCount&&(r.aliasCount=B(s,o,n)),r.count*r.aliasCount>i)){throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return r.res}toString(e,t,n){const s=`*${this.source}`;if(e){if(x(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${s} `}return s}}function B(e,t,n){if(u(t)){const s=t.resolve(e),i=n&&s&&n.get(s);return i?i.count*i.aliasCount:0}if(y(t)){let s=0;for(const i of t.items){const t=B(e,i,n);t>s&&(s=t)}return s}if(d(t)){const s=B(e,t.key,n),i=B(e,t.value,n);return Math.max(s,i)}return 1}function M(e,t,n){if(Array.isArray(e))return e.map(((e,t)=>M(e,String(t),n)));if(e&&"function"===typeof e.toJSON){if(!n||(!p(s=e)&&!y(s)||!s.anchor))return e.toJSON(t,n);const i={aliasCount:0,count:1,res:void 0};n.anchors.set(e,i),n.onCreate=e=>{i.res=e,delete n.onCreate};const o=e.toJSON(t,n);return n.onCreate&&n.onCreate(o),o}var s;return"bigint"!==typeof e||n?.keep?e:Number(e)}const D=e=>!e||"function"!==typeof e&&"object"!==typeof e;class K extends b{constructor(e){super(a),this.value=e}toJSON(e,t){return t?.keep?this.value:M(this.value,e,t)}toString(){return String(this.value)}}K.BLOCK_FOLDED="BLOCK_FOLDED",K.BLOCK_LITERAL="BLOCK_LITERAL",K.PLAIN="PLAIN",K.QUOTE_DOUBLE="QUOTE_DOUBLE",K.QUOTE_SINGLE="QUOTE_SINGLE";function P(e,t,n){if(f(e)&&(e=e.contents),g(e))return e;if(d(e)){const t=n.schema[o].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!==typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:s,onAnchor:i,onTagObj:r,schema:a,sourceObjects:l}=n;let u;if(s&&e&&"object"===typeof e){if(u=l.get(e),u)return u.anchor||(u.anchor=i(e)),new j(u.anchor);u={anchor:null,node:null},l.set(e,u)}t?.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let h=function(e,t,n){if(t){const e=n.filter((e=>e.tag===t)),s=e.find((e=>!e.format))??e[0];if(!s)throw new Error(`Tag ${t} not found`);return s}return n.find((t=>t.identify?.(e)&&!t.format))}(e,t,a.tags);if(!h){if(e&&"function"===typeof e.toJSON&&(e=e.toJSON()),!e||"object"!==typeof e){const t=new K(e);return u&&(u.node=t),t}h=e instanceof Map?a[o]:Symbol.iterator in Object(e)?a[c]:a[o]}r&&(r(h),delete n.onTagObj);const p=h?.createNode?h.createNode(n.schema,e,n):new K(e);return t&&(p.tag=t),u&&(u.node=p),p}function U(e,t,n){let s=n;for(let i=t.length-1;i>=0;--i){const e=t[i];if("number"===typeof e&&Number.isInteger(e)&&e>=0){const t=[];t[e]=s,s=t}else s=new Map([[e,s]])}return P(s,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const q=e=>null==e||"object"===typeof e&&!!e[Symbol.iterator]().next().done;class R extends b{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map((t=>g(t)||d(t)?t.clone(e):t)),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(q(e))this.add(t);else{const[n,...s]=e,i=this.get(n,!0);if(y(i))i.addIn(s,t);else{if(void 0!==i||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${s}`);this.set(n,U(this.schema,s,t))}}}deleteIn(e){const[t,...n]=e;if(0===n.length)return this.delete(t);const s=this.get(t,!0);if(y(s))return s.deleteIn(n);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){const[n,...s]=e,i=this.get(n,!0);return 0===s.length?!t&&p(i)?i.value:i:y(i)?i.getIn(s,t):void 0}hasAllNullValues(e){return this.items.every((t=>{if(!d(t))return!1;const n=t.value;return null==n||e&&p(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag}))}hasIn(e){const[t,...n]=e;if(0===n.length)return this.has(t);const s=this.get(t,!0);return!!y(s)&&s.hasIn(n)}setIn(e,t){const[n,...s]=e;if(0===s.length)this.set(n,t);else{const e=this.get(n,!0);if(y(e))e.setIn(s,t);else{if(void 0!==e||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${s}`);this.set(n,U(this.schema,s,t))}}}}R.maxFlowStringSingleLineLength=60;const F=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function V(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const J=(e,t,n)=>e.endsWith("\n")?V(n,t):n.includes("\n")?"\n"+V(n,t):(e.endsWith(" ")?"":" ")+n,Y="flow",G="block",W="quoted";function Q(e,t,n="flow",{indentAtStart:s,lineWidth:i=80,minContentWidth:o=20,onFold:r,onOverflow:a}={}){if(!i||i<0)return e;const c=Math.max(1+o,1+i-t.length);if(e.length<=c)return e;const l=[],u={};let f,h,d=i-t.length;"number"===typeof s&&(s>i-Math.max(2,o)?l.push(0):d=i-s);let p,m=!1,y=-1,g=-1,b=-1;for(n===G&&(y=H(e,y),-1!==y&&(d=y+c));p=e[y+=1];){if(n===W&&"\\"===p){switch(g=y,e[y+1]){case"x":y+=3;break;case"u":y+=5;break;case"U":y+=9;break;default:y+=1}b=y}if("\n"===p)n===G&&(y=H(e,y)),d=y+c,f=void 0;else{if(" "===p&&h&&" "!==h&&"\n"!==h&&"\t"!==h){const t=e[y+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(f=y)}if(y>=d)if(f)l.push(f),d=f+c,f=void 0;else if(n===W){for(;" "===h||"\t"===h;)h=p,p=e[y+=1],m=!0;const t=y>b+1?y-2:g-1;if(u[t])return e;l.push(t),u[t]=!0,d=t+c,f=void 0}else m=!0}h=p}if(m&&a&&a(),0===l.length)return e;r&&r();let w=e.slice(0,l[0]);for(let k=0;k<l.length;++k){const s=l[k],i=l[k+1]||e.length;0===s?w=`\n${t}${e.slice(0,i)}`:(n===W&&u[s]&&(w+=`${e[s]}\\`),w+=`\n${t}${e.slice(s+1,i)}`)}return w}function H(e,t){let n=e[t+1];for(;" "===n||"\t"===n;){do{n=e[t+=1]}while(n&&"\n"!==n);n=e[t+1]}return t}const X=e=>({indentAtStart:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),z=e=>/^(%|---|\.\.\.)/m.test(e);function Z(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:s}=t,i=t.options.doubleQuotedMinMultiLineLength,o=t.indent||(z(e)?" ":"");let r="",a=0;for(let c=0,l=n[c];l;l=n[++c])if(" "===l&&"\\"===n[c+1]&&"n"===n[c+2]&&(r+=n.slice(a,c)+"\\ ",c+=1,a=c,l="\\"),"\\"===l)switch(n[c+1]){case"u":{r+=n.slice(a,c);const e=n.substr(c+2,4);switch(e){case"0000":r+="\\0";break;case"0007":r+="\\a";break;case"000b":r+="\\v";break;case"001b":r+="\\e";break;case"0085":r+="\\N";break;case"00a0":r+="\\_";break;case"2028":r+="\\L";break;case"2029":r+="\\P";break;default:"00"===e.substr(0,2)?r+="\\x"+e.substr(2):r+=n.substr(c,6)}c+=5,a=c+1}break;case"n":if(s||'"'===n[c+2]||n.length<i)c+=1;else{for(r+=n.slice(a,c)+"\n\n";"\\"===n[c+2]&&"n"===n[c+3]&&'"'!==n[c+4];)r+="\n",c+=2;r+=o," "===n[c+2]&&(r+="\\"),c+=1,a=c+1}break;default:c+=1}return r=a?r+n.slice(a):n,s?r:Q(r,o,W,X(t))}function ee(e,t){if(!1===t.options.singleQuote||t.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return Z(e,t);const n=t.indent||(z(e)?" ":""),s="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&\n${n}`)+"'";return t.implicitKey?s:Q(s,n,Y,X(t))}function te(e,t){const{singleQuote:n}=t.options;let s;if(!1===n)s=Z;else{const t=e.includes('"'),i=e.includes("'");s=t&&!i?ee:i&&!t?Z:n?ee:Z}return s(e,t)}function ne({comment:e,type:t,value:n},s,i,o){const{blockQuote:r,commentString:a,lineWidth:c}=s.options;if(!r||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return te(n,s);const l=s.indent||(s.forceBlockIndent||z(n)?" ":""),u="literal"===r||"folded"!==r&&t!==K.BLOCK_FOLDED&&(t===K.BLOCK_LITERAL||!function(e,t,n){if(!t||t<0)return!1;const s=t-n,i=e.length;if(i<=s)return!1;for(let o=0,r=0;o<i;++o)if("\n"===e[o]){if(o-r>s)return!0;if(r=o+1,i-r<=s)return!1}return!0}(n,c,l.length));if(!n)return u?"|\n":">\n";let f,h;for(h=n.length;h>0;--h){const e=n[h-1];if("\n"!==e&&"\t"!==e&&" "!==e)break}let d=n.substring(h);const p=d.indexOf("\n");-1===p?f="-":n===d||p!==d.length-1?(f="+",o&&o()):f="",d&&(n=n.slice(0,-d.length),"\n"===d[d.length-1]&&(d=d.slice(0,-1)),d=d.replace(/\n+(?!\n|$)/g,`$&${l}`));let m,y=!1,g=-1;for(m=0;m<n.length;++m){const e=n[m];if(" "===e)y=!0;else{if("\n"!==e)break;g=m}}let b=n.substring(0,g<m?g+1:m);b&&(n=n.substring(b.length),b=b.replace(/\n+/g,`$&${l}`));let w=(u?"|":">")+(y?l?"2":"1":"")+f;if(e&&(w+=" "+a(e.replace(/ ?[\r\n]+/g," ")),i&&i()),u)return`${w}\n${l}${b}${n=n.replace(/\n+/g,`$&${l}`)}${d}`;return`${w}\n${l}${Q(`${b}${n=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${l}`)}${d}`,l,G,X(s))}`}function se(e,t,n,s){const{implicitKey:i,inFlow:o}=t,r="string"===typeof e.value?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;a!==K.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(r.value)&&(a=K.QUOTE_DOUBLE);const c=e=>{switch(e){case K.BLOCK_FOLDED:case K.BLOCK_LITERAL:return i||o?te(r.value,t):ne(r,t,n,s);case K.QUOTE_DOUBLE:return Z(r.value,t);case K.QUOTE_SINGLE:return ee(r.value,t);case K.PLAIN:return function(e,t,n,s){const{type:i,value:o}=e,{actualString:r,implicitKey:a,indent:c,inFlow:l}=t;if(a&&/[\n[\]{},]/.test(o)||l&&/[[\]{},]/.test(o))return te(o,t);if(!o||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return a||l||!o.includes("\n")?te(o,t):ne(e,t,n,s);if(!a&&!l&&i!==K.PLAIN&&o.includes("\n"))return ne(e,t,n,s);if(""===c&&z(o))return t.forceBlockIndent=!0,ne(e,t,n,s);const u=o.replace(/\n+/g,`$&\n${c}`);if(r){const e=e=>e.default&&"tag:yaml.org,2002:str"!==e.tag&&e.test?.test(u),{compat:n,tags:s}=t.doc.schema;if(s.some(e)||n?.some(e))return te(o,t)}return a?u:Q(u,c,Y,X(t))}(r,t,n,s);default:return null}};let l=c(a);if(null===l){const{defaultKeyType:e,defaultStringType:n}=t.options,s=i&&e||n;if(l=c(s),null===l)throw new Error(`Unsupported default string type ${s}`)}return l}function ie(e,t){const n=Object.assign({blockQuote:!0,commentString:F,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let s;switch(n.collectionStyle){case"block":s=!1;break;case"flow":s=!0;break;default:s=null}return{anchors:new Set,doc:e,indent:"",indentStep:"number"===typeof n.indent?" ".repeat(n.indent):" ",inFlow:s,options:n}}function oe(e,t,n,s){if(d(e))return e.toString(t,n,s);if(u(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i;const o=g(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i||(i=function(e,t){if(t.tag){const n=e.filter((e=>e.tag===t.tag));if(n.length>0)return n.find((e=>e.format===t.format))??n[0]}let n,s;if(p(t)){s=t.value;const i=e.filter((e=>e.identify?.(s)));n=i.find((e=>e.format===t.format))??i.find((e=>!e.format))}else s=t,n=e.find((e=>e.nodeClass&&s instanceof e.nodeClass));if(!n)throw new Error(`Tag not resolved for ${s?.constructor?.name??typeof s} value`);return n}(t.doc.schema.tags,o));const r=function(e,t,{anchors:n,doc:s}){if(!s.directives)return"";const i=[],o=(p(e)||y(e))&&e.anchor;o&&x(o)&&(n.add(o),i.push(`&${o}`));const r=e.tag?e.tag:t.default?null:t.tag;return r&&i.push(s.directives.tagString(r)),i.join(" ")}(o,i,t);r.length>0&&(t.indentAtStart=(t.indentAtStart??0)+r.length+1);const a="function"===typeof i.stringify?i.stringify(o,t,n,s):p(o)?se(o,t,n,s):o.toString(t,n,s);return r?p(o)||"{"===a[0]||"["===a[0]?`${r} ${a}`:`${r}\n${t.indent}${a}`:a}var re=n(554);function ae(e,t){"debug"!==e&&"warn"!==e||("undefined"!==typeof re&&re.emitWarning?re.emitWarning(t):console.warn(t))}function ce(e,t,{key:n,value:s}){if(e?.doc.schema.merge&&le(n))if(s=u(s)?s.resolve(e.doc):s,m(s))for(const i of s.items)ue(e,t,i);else if(Array.isArray(s))for(const i of s)ue(e,t,i);else ue(e,t,s);else{const i=M(n,"",e);if(t instanceof Map)t.set(i,M(s,i,e));else if(t instanceof Set)t.add(i);else{const o=function(e,t,n){if(null===t)return"";if("object"!==typeof t)return String(t);if(g(e)&&n&&n.doc){const t=ie(n.doc,{});t.anchors=new Set;for(const e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;const s=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(s);e.length>40&&(e=e.substring(0,36)+'..."'),ae(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return s}return JSON.stringify(t)}(n,i,e),r=M(s,o,e);o in t?Object.defineProperty(t,o,{value:r,writable:!0,enumerable:!0,configurable:!0}):t[o]=r}}return t}const le=e=>"<<"===e||p(e)&&"<<"===e.value&&(!e.type||e.type===K.PLAIN);function ue(e,t,n){const s=e&&u(n)?n.resolve(e.doc):n;if(!h(s))throw new Error("Merge sources must be maps or map aliases");const i=s.toJSON(null,e,Map);for(const[o,r]of i)t instanceof Map?t.has(o)||t.set(o,r):t instanceof Set?t.add(o):Object.prototype.hasOwnProperty.call(t,o)||Object.defineProperty(t,o,{value:r,writable:!0,enumerable:!0,configurable:!0});return t}function fe(e,t,n){const s=P(e,void 0,n),i=P(t,void 0,n);return new he(s,i)}class he{constructor(e,t=null){Object.defineProperty(this,l,{value:r}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return g(t)&&(t=t.clone(e)),g(n)&&(n=n.clone(e)),new he(t,n)}toJSON(e,t){return ce(t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?function({key:e,value:t},n,s,i){const{allNullValues:o,doc:r,indent:a,indentStep:c,options:{commentString:l,indentSeq:u,simpleKeys:f}}=n;let h=g(e)&&e.comment||null;if(f){if(h)throw new Error("With simple keys, key nodes cannot have comments");if(y(e))throw new Error("With simple keys, collection cannot be used as a key value")}let d=!f&&(!e||h&&null==t&&!n.inFlow||y(e)||(p(e)?e.type===K.BLOCK_FOLDED||e.type===K.BLOCK_LITERAL:"object"===typeof e));n=Object.assign({},n,{allNullValues:!1,implicitKey:!d&&(f||!o),indent:a+c});let b=!1,w=!1,k=oe(e,n,(()=>b=!0),(()=>w=!0));if(!d&&!n.inFlow&&k.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");d=!0}if(n.inFlow){if(o||null==t)return b&&s&&s(),""===k?"?":d?`? ${k}`:k}else if(o&&!f||null==t&&d)return k=`? ${k}`,h&&!b?k+=J(k,n.indent,l(h)):w&&i&&i(),k;b&&(h=null),d?(h&&(k+=J(k,n.indent,l(h))),k=`? ${k}\n${a}:`):(k=`${k}:`,h&&(k+=J(k,n.indent,l(h))));let v="",S=null;g(t)?(t.spaceBefore&&(v="\n"),t.commentBefore&&(v+=`\n${V(l(t.commentBefore),n.indent)}`),S=t.comment):t&&"object"===typeof t&&(t=r.createNode(t));n.implicitKey=!1,d||h||!p(t)||(n.indentAtStart=k.length+1),w=!1,u||!(c.length>=2)||n.inFlow||d||!m(t)||t.flow||t.tag||t.anchor||(n.indent=n.indent.substr(2));let E=!1;const N=oe(t,n,(()=>E=!0),(()=>w=!0));let O=" ";v||h?O=""!==N||n.inFlow?`${v}\n${n.indent}`:"\n"===v?"\n\n":v:!d&&y(t)?("["===N[0]||"{"===N[0])&&!N.includes("\n")||(O=`\n${n.indent}`):""!==N&&"\n"!==N[0]||(O="");return k+=O+N,n.inFlow?E&&s&&s():S&&!E?k+=J(k,n.indent,l(S)):w&&i&&i(),k}(this,e,t,n):JSON.stringify(this)}}function de(e,t,n){return(t.inFlow??e.flow?me:pe)(e,t,n)}function pe({comment:e,items:t},n,{blockItemPrefix:s,flowChars:i,itemIndent:o,onChompKeep:r,onComment:a}){const{indent:c,options:{commentString:l}}=n,u=Object.assign({},n,{indent:o,type:null});let f=!1;const h=[];for(let m=0;m<t.length;++m){const e=t[m];let i=null;if(g(e))!f&&e.spaceBefore&&h.push(""),ye(n,h,e.commentBefore,f),e.comment&&(i=e.comment);else if(d(e)){const t=g(e.key)?e.key:null;t&&(!f&&t.spaceBefore&&h.push(""),ye(n,h,t.commentBefore,f))}f=!1;let r=oe(e,u,(()=>i=null),(()=>f=!0));i&&(r+=J(r,o,l(i))),f&&i&&(f=!1),h.push(s+r)}let p;if(0===h.length)p=i.start+i.end;else{p=h[0];for(let e=1;e<h.length;++e){const t=h[e];p+=t?`\n${c}${t}`:"\n"}}return e?(p+="\n"+V(l(e),c),a&&a()):f&&r&&r(),p}function me({comment:e,items:t},n,{flowChars:s,itemIndent:i,onComment:o}){const{indent:r,indentStep:a,options:{commentString:c}}=n;i+=a;const l=Object.assign({},n,{indent:i,inFlow:!0,type:null});let u=!1,f=0;const h=[];for(let b=0;b<t.length;++b){const e=t[b];let s=null;if(g(e))e.spaceBefore&&h.push(""),ye(n,h,e.commentBefore,!1),e.comment&&(s=e.comment);else if(d(e)){const t=g(e.key)?e.key:null;t&&(t.spaceBefore&&h.push(""),ye(n,h,t.commentBefore,!1),t.comment&&(u=!0));const i=g(e.value)?e.value:null;i?(i.comment&&(s=i.comment),i.commentBefore&&(u=!0)):null==e.value&&t&&t.comment&&(s=t.comment)}s&&(u=!0);let o=oe(e,l,(()=>s=null));b<t.length-1&&(o+=","),s&&(o+=J(o,i,c(s))),!u&&(h.length>f||o.includes("\n"))&&(u=!0),h.push(o),f=h.length}let p;const{start:m,end:y}=s;if(0===h.length)p=m+y;else{if(!u){u=h.reduce(((e,t)=>e+t.length+2),2)>R.maxFlowStringSingleLineLength}if(u){p=m;for(const e of h)p+=e?`\n${a}${r}${e}`:"\n";p+=`\n${r}${y}`}else p=`${m} ${h.join(" ")} ${y}`}return e&&(p+=J(p,c(e),r),o&&o()),p}function ye({indent:e,options:{commentString:t}},n,s,i){if(s&&i&&(s=s.replace(/^\n+/,"")),s){const i=V(t(s),e);n.push(i.trimStart())}}function ge(e,t){const n=p(t)?t.value:t;for(const s of e)if(d(s)){if(s.key===t||s.key===n)return s;if(p(s.key)&&s.key.value===n)return s}}class be extends R{constructor(e){super(o,e),this.items=[]}static get tagName(){return"tag:yaml.org,2002:map"}add(e,t){let n;n=d(e)?e:e&&"object"===typeof e&&"key"in e?new he(e.key,e.value):new he(e,e?.value);const s=ge(this.items,n.key),i=this.schema?.sortMapEntries;if(s){if(!t)throw new Error(`Key ${n.key} already set`);p(s.value)&&D(n.value)?s.value.value=n.value:s.value=n.value}else if(i){const e=this.items.findIndex((e=>i(n,e)<0));-1===e?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){const t=ge(this.items,e);if(!t)return!1;return this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const n=ge(this.items,e)?.value;return(!t&&p(n)?n.value:n)??void 0}has(e){return!!ge(this.items,e)}set(e,t){this.add(new he(e,t),!0)}toJSON(e,t,n){const s=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(s);for(const i of this.items)ce(t,s,i);return s}toString(e,t,n){if(!e)return JSON.stringify(this);for(const s of this.items)if(!d(s))throw new Error(`Map items must all be pairs; found ${JSON.stringify(s)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),de(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}const we={collection:"map",createNode:function(e,t,n){const{keepUndefined:s,replacer:i}=n,o=new be(e),r=(e,r)=>{if("function"===typeof i)r=i.call(t,e,r);else if(Array.isArray(i)&&!i.includes(e))return;(void 0!==r||s)&&o.items.push(fe(e,r,n))};if(t instanceof Map)for(const[a,c]of t)r(a,c);else if(t&&"object"===typeof t)for(const a of Object.keys(t))r(a,t[a]);return"function"===typeof e.sortMapEntries&&o.items.sort(e.sortMapEntries),o},default:!0,nodeClass:be,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(h(e)||t("Expected a mapping for this tag"),e)};class ke extends R{constructor(e){super(c,e),this.items=[]}static get tagName(){return"tag:yaml.org,2002:seq"}add(e){this.items.push(e)}delete(e){const t=ve(e);if("number"!==typeof t)return!1;return this.items.splice(t,1).length>0}get(e,t){const n=ve(e);if("number"!==typeof n)return;const s=this.items[n];return!t&&p(s)?s.value:s}has(e){const t=ve(e);return"number"===typeof t&&t<this.items.length}set(e,t){const n=ve(e);if("number"!==typeof n)throw new Error(`Expected a valid index, not ${e}.`);const s=this.items[n];p(s)&&D(t)?s.value=t:this.items[n]=t}toJSON(e,t){const n=[];t?.onCreate&&t.onCreate(n);let s=0;for(const i of this.items)n.push(M(i,String(s++),t));return n}toString(e,t,n){return e?de(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t}):JSON.stringify(this)}}function ve(e){let t=p(e)?e.value:e;return t&&"string"===typeof t&&(t=Number(t)),"number"===typeof t&&Number.isInteger(t)&&t>=0?t:null}const Se={collection:"seq",createNode:function(e,t,n){const{replacer:s}=n,i=new ke(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let o of t){if("function"===typeof s){const n=t instanceof Set?o:String(e++);o=s.call(t,n,o)}i.items.push(P(o,void 0,n))}}return i},default:!0,nodeClass:ke,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(m(e)||t("Expected a sequence for this tag"),e)},Ee={identify:e=>"string"===typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,n,s)=>se(e,t=Object.assign({actualString:!0},t),n,s)},Ne={identify:e=>null==e,createNode:()=>new K(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new K(null),stringify:({source:e},t)=>"string"===typeof e&&Ne.test.test(e)?e:t.options.nullStr},Oe={identify:e=>"boolean"===typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new K("t"===e[0]||"T"===e[0]),stringify({source:e,value:t},n){if(e&&Oe.test.test(e)){if(t===("t"===e[0]||"T"===e[0]))return e}return t?n.options.trueStr:n.options.falseStr}};function Ae({format:e,minFractionDigits:t,tag:n,value:s}){if("bigint"===typeof s)return String(s);const i="number"===typeof s?s:Number(s);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let o=JSON.stringify(s);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(o)){let e=o.indexOf(".");e<0&&(e=o.length,o+=".");let n=t-(o.length-e-1);for(;n-- >0;)o+="0"}return o}const Ie={identify:e=>"number"===typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Ae},Te={identify:e=>"number"===typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():Ae(e)}},Le={identify:e=>"number"===typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new K(parseFloat(e)),n=e.indexOf(".");return-1!==n&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-n-1),t},stringify:Ae},$e=e=>"bigint"===typeof e||Number.isInteger(e),xe=(e,t,n,{intAsBigInt:s})=>s?BigInt(e):parseInt(e.substring(t),n);function Ce(e,t,n){const{value:s}=e;return $e(s)&&s>=0?n+s.toString(t):Ae(e)}const _e={identify:e=>$e(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>xe(e,2,8,n),stringify:e=>Ce(e,8,"0o")},je={identify:$e,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>xe(e,0,10,n),stringify:Ae},Be={identify:e=>$e(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>xe(e,2,16,n),stringify:e=>Ce(e,16,"0x")},Me=[we,Se,Ee,Ne,Oe,_e,je,Be,Ie,Te,Le];function De(e){return"bigint"===typeof e||Number.isInteger(e)}const Ke=({value:e})=>JSON.stringify(e),Pe=[we,Se].concat([{identify:e=>"string"===typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Ke},{identify:e=>null==e,createNode:()=>new K(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Ke},{identify:e=>"boolean"===typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:Ke},{identify:De,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>De(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"===typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:Ke}],{default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)});var Ue=n(80365).lW;const qe={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"===typeof Ue)return Ue.from(e,"base64");if("function"===typeof atob){const t=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},s,i,o){const r=n;let a;if("function"===typeof Ue)a=r instanceof Ue?r.toString("base64"):Ue.from(r.buffer).toString("base64");else{if("function"!==typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");{let e="";for(let t=0;t<r.length;++t)e+=String.fromCharCode(r[t]);a=btoa(e)}}if(t||(t=K.BLOCK_LITERAL),t!==K.QUOTE_DOUBLE){const e=Math.max(s.options.lineWidth-s.indent.length,s.options.minContentWidth),n=Math.ceil(a.length/e),i=new Array(n);for(let t=0,s=0;t<n;++t,s+=e)i[t]=a.substr(s,e);a=i.join(t===K.BLOCK_LITERAL?"\n":" ")}return se({comment:e,type:t,value:a},s,i,o)}};function Re(e,t){if(m(e))for(let n=0;n<e.items.length;++n){let s=e.items[n];if(!d(s)){if(h(s)){s.items.length>1&&t("Each pair must have its own sequence indicator");const e=s.items[0]||new he(new K(null));if(s.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${s.commentBefore}\n${e.key.commentBefore}`:s.commentBefore),s.comment){const t=e.value??e.key;t.comment=t.comment?`${s.comment}\n${t.comment}`:s.comment}s=e}e.items[n]=d(s)?s:new he(s)}}else t("Expected a sequence for this tag");return e}function Fe(e,t,n){const{replacer:s}=n,i=new ke(e);i.tag="tag:yaml.org,2002:pairs";let o=0;if(t&&Symbol.iterator in Object(t))for(let r of t){let e,a;if("function"===typeof s&&(r=s.call(t,String(o++),r)),Array.isArray(r)){if(2!==r.length)throw new TypeError(`Expected [key, value] tuple: ${r}`);e=r[0],a=r[1]}else if(r&&r instanceof Object){const t=Object.keys(r);if(1!==t.length)throw new TypeError(`Expected { key: value } tuple: ${r}`);e=t[0],a=r[e]}else e=r;i.items.push(fe(e,a,n))}return i}const Ve={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Re,createNode:Fe};class Je extends ke{constructor(){super(),this.add=be.prototype.add.bind(this),this.delete=be.prototype.delete.bind(this),this.get=be.prototype.get.bind(this),this.has=be.prototype.has.bind(this),this.set=be.prototype.set.bind(this),this.tag=Je.tag}toJSON(e,t){if(!t)return super.toJSON(e);const n=new Map;t?.onCreate&&t.onCreate(n);for(const s of this.items){let e,i;if(d(s)?(e=M(s.key,"",t),i=M(s.value,e,t)):e=M(s,"",t),n.has(e))throw new Error("Ordered maps must not include duplicate keys");n.set(e,i)}return n}}Je.tag="tag:yaml.org,2002:omap";const Ye={collection:"seq",identify:e=>e instanceof Map,nodeClass:Je,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=Re(e,t),s=[];for(const{key:i}of n.items)p(i)&&(s.includes(i.value)?t(`Ordered maps must not include duplicate keys: ${i.value}`):s.push(i.value));return Object.assign(new Je,n)},createNode(e,t,n){const s=Fe(e,t,n),i=new Je;return i.items=s.items,i}};function Ge({value:e,source:t},n){return t&&(e?We:Qe).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const We={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new K(!0),stringify:Ge},Qe={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new K(!1),stringify:Ge},He={identify:e=>"number"===typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Ae},Xe={identify:e=>"number"===typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():Ae(e)}},ze={identify:e=>"number"===typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new K(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(-1!==n){const s=e.substring(n+1).replace(/_/g,"");"0"===s[s.length-1]&&(t.minFractionDigits=s.length)}return t},stringify:Ae},Ze=e=>"bigint"===typeof e||Number.isInteger(e);function et(e,t,n,{intAsBigInt:s}){const i=e[0];if("-"!==i&&"+"!==i||(t+=1),e=e.substring(t).replace(/_/g,""),s){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}const t=BigInt(e);return"-"===i?BigInt(-1)*t:t}const o=parseInt(e,n);return"-"===i?-1*o:o}function tt(e,t,n){const{value:s}=e;if(Ze(s)){const e=s.toString(t);return s<0?"-"+n+e.substr(1):n+e}return Ae(e)}const nt={identify:Ze,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>et(e,2,2,n),stringify:e=>tt(e,2,"0b")},st={identify:Ze,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>et(e,1,8,n),stringify:e=>tt(e,8,"0")},it={identify:Ze,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>et(e,0,10,n),stringify:Ae},ot={identify:Ze,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>et(e,2,16,n),stringify:e=>tt(e,16,"0x")};class rt extends be{constructor(e){super(e),this.tag=rt.tag}add(e){let t;t=d(e)?e:e&&"object"===typeof e&&"key"in e&&"value"in e&&null===e.value?new he(e.key,null):new he(e,null);ge(this.items,t.key)||this.items.push(t)}get(e,t){const n=ge(this.items,e);return!t&&d(n)?p(n.key)?n.key.value:n.key:n}set(e,t){if("boolean"!==typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof t);const n=ge(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new he(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw new Error("Set items must all have null values")}}rt.tag="tag:yaml.org,2002:set";const at={collection:"map",identify:e=>e instanceof Set,nodeClass:rt,default:!1,tag:"tag:yaml.org,2002:set",resolve(e,t){if(h(e)){if(e.hasAllNullValues(!0))return Object.assign(new rt,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e},createNode(e,t,n){const{replacer:s}=n,i=new rt(e);if(t&&Symbol.iterator in Object(t))for(let o of t)"function"===typeof s&&(o=s.call(t,o,o)),i.items.push(fe(o,null,n));return i}};function ct(e,t){const n=e[0],s="-"===n||"+"===n?e.substring(1):e,i=e=>t?BigInt(e):Number(e),o=s.replace(/_/g,"").split(":").reduce(((e,t)=>e*i(60)+i(t)),i(0));return"-"===n?i(-1)*o:o}function lt(e){let{value:t}=e,n=e=>e;if("bigint"===typeof t)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return Ae(e);let s="";t<0&&(s="-",t*=n(-1));const i=n(60),o=[t%i];return t<60?o.unshift(0):(t=(t-o[0])/i,o.unshift(t%i),t>=60&&(t=(t-o[0])/i,o.unshift(t))),s+o.map((e=>e<10?"0"+String(e):String(e))).join(":").replace(/000000\d*$/,"")}const ut={identify:e=>"bigint"===typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>ct(e,n),stringify:lt},ft={identify:e=>"number"===typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>ct(e,!1),stringify:lt},ht={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(ht.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,s,i,o,r,a]=t.map(Number),c=t[7]?Number((t[7]+"00").substr(1,3)):0;let l=Date.UTC(n,s-1,i,o||0,r||0,a||0,c);const u=t[8];if(u&&"Z"!==u){let e=ct(u,!1);Math.abs(e)<30&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},dt=[we,Se,Ee,Ne,We,Qe,nt,st,it,ot,He,Xe,ze,qe,Ye,Ve,at,ut,ft,ht],pt=new Map([["core",Me],["failsafe",[we,Se,Ee]],["json",Pe],["yaml11",dt],["yaml-1.1",dt]]),mt={binary:qe,bool:Oe,float:Le,floatExp:Te,floatNaN:Ie,floatTime:ft,int:je,intHex:Be,intOct:_e,intTime:ut,map:we,null:Ne,omap:Ye,pairs:Ve,seq:Se,set:at,timestamp:ht},yt={"tag:yaml.org,2002:binary":qe,"tag:yaml.org,2002:omap":Ye,"tag:yaml.org,2002:pairs":Ve,"tag:yaml.org,2002:set":at,"tag:yaml.org,2002:timestamp":ht};function gt(e,t){let n=pt.get(t);if(!n){if(!Array.isArray(e)){const e=Array.from(pt.keys()).filter((e=>"yaml11"!==e)).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}n=[]}if(Array.isArray(e))for(const s of e)n=n.concat(s);else"function"===typeof e&&(n=e(n.slice()));return n.map((e=>{if("string"!==typeof e)return e;const t=mt[e];if(t)return t;const n=Object.keys(mt).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${n}`)}))}const bt=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class wt{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:s,schema:i,sortMapEntries:r,toStringDefaults:l}){this.compat=Array.isArray(e)?gt(e,"compat"):e?gt(null,e):null,this.merge=!!n,this.name="string"===typeof i&&i||"core",this.knownTags=s?yt:{},this.tags=gt(t,this.name),this.toStringOptions=l??null,Object.defineProperty(this,o,{value:we}),Object.defineProperty(this,a,{value:Ee}),Object.defineProperty(this,c,{value:Se}),this.sortMapEntries="function"===typeof r?r:!0===r?bt:null}clone(){const e=Object.create(wt.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}function kt(e,t,n,s){if(s&&"object"===typeof s)if(Array.isArray(s))for(let i=0,o=s.length;i<o;++i){const t=s[i],n=kt(e,s,String(i),t);void 0===n?delete s[i]:n!==t&&(s[i]=n)}else if(s instanceof Map)for(const i of Array.from(s.keys())){const t=s.get(i),n=kt(e,s,i,t);void 0===n?s.delete(i):n!==t&&s.set(i,n)}else if(s instanceof Set)for(const i of Array.from(s)){const t=kt(e,s,i,i);void 0===t?s.delete(i):t!==i&&(s.delete(i),s.add(t))}else for(const[i,o]of Object.entries(s)){const t=kt(e,s,i,o);void 0===t?delete s[i]:t!==o&&(s[i]=t)}return e.call(t,n,s)}class vt{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,l,{value:i});let s=null;"function"===typeof t||Array.isArray(t)?s=t:void 0===n&&t&&(n=t,t=void 0);const o=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},n);this.options=o;let{version:r}=o;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(r=this.directives.yaml.version)):this.directives=new $({version:r}),this.setSchema(r,n),this.contents=void 0===e?null:this.createNode(e,s,n)}clone(){const e=Object.create(vt.prototype,{[l]:{value:i}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=g(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){St(this.contents)&&this.contents.add(e)}addIn(e,t){St(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const n=C(this);e.anchor=!t||n.has(t)?_(t||"a",n):t}return new j(e.anchor)}createNode(e,t,n){let s;if("function"===typeof t)e=t.call({"":e},"",e),s=t;else if(Array.isArray(t)){const e=e=>"number"===typeof e||e instanceof String||e instanceof Number,n=t.filter(e).map(String);n.length>0&&(t=t.concat(n)),s=t}else void 0===n&&t&&(n=t,t=void 0);const{aliasDuplicateObjects:i,anchorPrefix:o,flow:r,keepUndefined:a,onTagObj:c,tag:l}=n??{},{onAnchor:u,setAnchors:f,sourceObjects:h}=function(e,t){const n=[],s=new Map;let i=null;return{onAnchor:s=>{n.push(s),i||(i=C(e));const o=_(t,i);return i.add(o),o},setAnchors:()=>{for(const e of n){const t=s.get(e);if("object"!==typeof t||!t.anchor||!p(t.node)&&!y(t.node)){const t=new Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}t.node.anchor=t.anchor}},sourceObjects:s}}(this,o||"a"),d=P(e,l,{aliasDuplicateObjects:i??!0,keepUndefined:a??!1,onAnchor:u,onTagObj:c,replacer:s,schema:this.schema,sourceObjects:h});return r&&y(d)&&(d.flow=!0),f(),d}createPair(e,t,n={}){const s=this.createNode(e,null,n),i=this.createNode(t,null,n);return new he(s,i)}delete(e){return!!St(this.contents)&&this.contents.delete(e)}deleteIn(e){return q(e)?null!=this.contents&&(this.contents=null,!0):!!St(this.contents)&&this.contents.deleteIn(e)}get(e,t){return y(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return q(e)?!t&&p(this.contents)?this.contents.value:this.contents:y(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!y(this.contents)&&this.contents.has(e)}hasIn(e){return q(e)?void 0!==this.contents:!!y(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=U(this.schema,[e],t):St(this.contents)&&this.contents.set(e,t)}setIn(e,t){q(e)?this.contents=t:null==this.contents?this.contents=U(this.schema,Array.from(e),t):St(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let n;switch("number"===typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new $({version:"1.1"}),n={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new $({version:e}),n={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else{if(!n)throw new Error("With a null YAML version, the { schema: Schema } option is required");this.schema=new wt(Object.assign(n,t))}}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:s,onAnchor:i,reviver:o}={}){const r={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"===typeof s?s:100,stringify:oe},a=M(this.contents,t??"",r);if("function"===typeof i)for(const{count:c,res:l}of r.anchors.values())i(l,c);return"function"===typeof o?kt(o,{"":a},"",a):a}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return function(e,t){const n=[];let s=!0===t.directives;if(!1!==t.directives&&e.directives){const t=e.directives.toString(e);t?(n.push(t),s=!0):e.directives.docStart&&(s=!0)}s&&n.push("---");const i=ie(e,t),{commentString:o}=i.options;if(e.commentBefore){1!==n.length&&n.unshift("");const t=o(e.commentBefore);n.unshift(V(t,""))}let r=!1,a=null;if(e.contents){if(g(e.contents)){if(e.contents.spaceBefore&&s&&n.push(""),e.contents.commentBefore){const t=o(e.contents.commentBefore);n.push(V(t,""))}i.forceBlockIndent=!!e.comment,a=e.contents.comment}const t=a?void 0:()=>r=!0;let c=oe(e.contents,i,(()=>a=null),t);a&&(c+=J(c,"",o(a))),"|"!==c[0]&&">"!==c[0]||"---"!==n[n.length-1]?n.push(c):n[n.length-1]=`--- ${c}`}else n.push(oe(e.contents,i));if(e.directives?.docEnd)if(e.comment){const t=o(e.comment);t.includes("\n")?(n.push("..."),n.push(V(t,""))):n.push(`... ${t}`)}else n.push("...");else{let t=e.comment;t&&r&&(t=t.replace(/^\n+/,"")),t&&(r&&!a||""===n[n.length-1]||n.push(""),n.push(V(o(t),"")))}return n.join("\n")+"\n"}(this,e)}}function St(e){if(y(e))return!0;throw new Error("Expected a YAML collection as document contents")}class Et extends Error{constructor(e,t,n,s){super(),this.name=e,this.code=n,this.message=s,this.pos=t}}class Nt extends Et{constructor(e,t,n){super("YAMLParseError",e,t,n)}}class Ot extends Et{constructor(e,t,n){super("YAMLWarning",e,t,n)}}const At=(e,t)=>n=>{if(-1===n.pos[0])return;n.linePos=n.pos.map((e=>t.linePos(e)));const{line:s,col:i}=n.linePos[0];n.message+=` at line ${s}, column ${i}`;let o=i-1,r=e.substring(t.lineStarts[s-1],t.lineStarts[s]).replace(/[\n\r]+$/,"");if(o>=60&&r.length>80){const e=Math.min(o-39,r.length-79);r="\u2026"+r.substring(e),o-=e-1}if(r.length>80&&(r=r.substring(0,79)+"\u2026"),s>1&&/^ *$/.test(r.substring(0,o))){let n=e.substring(t.lineStarts[s-2],t.lineStarts[s-1]);n.length>80&&(n=n.substring(0,79)+"\u2026\n"),r=n+r}if(/[^ ]/.test(r)){let e=1;const t=n.linePos[1];t&&t.line===s&&t.col>i&&(e=Math.min(t.col-i,80-o));const a=" ".repeat(o)+"^".repeat(e);n.message+=`:\n\n${r}\n${a}\n`}};function It(e,{flow:t,indicator:n,next:s,offset:i,onError:o,startOnNewline:r}){let a=!1,c=r,l=r,u="",f="",h=!1,d=!1,p=!1,m=null,y=null,g=null,b=null,w=null;for(const S of e)switch(p&&("space"!==S.type&&"newline"!==S.type&&"comma"!==S.type&&o(S.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),p=!1),S.type){case"space":!t&&c&&"doc-start"!==n&&"\t"===S.source[0]&&o(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),l=!0;break;case"comment":{l||o(S,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=S.source.substring(1)||" ";u?u+=f+e:u=e,f="",c=!1;break}case"newline":c?u?u+=S.source:a=!0:f+=S.source,c=!0,h=!0,(m||y)&&(d=!0),l=!0;break;case"anchor":m&&o(S,"MULTIPLE_ANCHORS","A node can have at most one anchor"),S.source.endsWith(":")&&o(S.offset+S.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),m=S,null===w&&(w=S.offset),c=!1,l=!1,p=!0;break;case"tag":y&&o(S,"MULTIPLE_TAGS","A node can have at most one tag"),y=S,null===w&&(w=S.offset),c=!1,l=!1,p=!0;break;case n:(m||y)&&o(S,"BAD_PROP_ORDER",`Anchors and tags must be after the ${S.source} indicator`),b&&o(S,"UNEXPECTED_TOKEN",`Unexpected ${S.source} in ${t??"collection"}`),b=S,c=!1,l=!1;break;case"comma":if(t){g&&o(S,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),g=S,c=!1,l=!1;break}default:o(S,"UNEXPECTED_TOKEN",`Unexpected ${S.type} token`),c=!1,l=!1}const k=e[e.length-1],v=k?k.offset+k.source.length:i;return p&&s&&"space"!==s.type&&"newline"!==s.type&&"comma"!==s.type&&("scalar"!==s.type||""!==s.source)&&o(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:g,found:b,spaceBefore:a,comment:u,hasNewline:h,hasNewlineAfterProp:d,anchor:m,tag:y,end:v,start:w??v}}function Tt(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return!0;if(e.end)for(const t of e.end)if("newline"===t.type)return!0;return!1;case"flow-collection":for(const t of e.items){for(const e of t.start)if("newline"===e.type)return!0;if(t.sep)for(const e of t.sep)if("newline"===e.type)return!0;if(Tt(t.key)||Tt(t.value))return!0}return!1;default:return!0}}function Lt(e,t,n){if("flow-collection"===t?.type){const s=t.end[0];if(s.indent===e&&("]"===s.source||"}"===s.source)&&Tt(t)){n(s,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}}function $t(e,t,n){const{uniqueKeys:s}=e.options;if(!1===s)return!1;const i="function"===typeof s?s:(t,n)=>t===n||p(t)&&p(n)&&t.value===n.value&&!("<<"===t.value&&e.schema.merge);return t.some((e=>i(e.key,n)))}const xt="All mapping items must start at the same column";function Ct(e,t,n,s){let i="";if(e){let o=!1,r="";for(const a of e){const{source:e,type:c}=a;switch(c){case"space":o=!0;break;case"comment":{n&&!o&&s(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";i?i+=r+t:i=t,r="";break}case"newline":i&&(r+=e),o=!0;break;default:s(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=e.length}}return{comment:i,offset:t}}const _t="Block collections are not allowed within flow collections",jt=e=>e&&("block-map"===e.type||"block-seq"===e.type);function Bt(e,t,n,s,i){let o;switch(n.type){case"block-map":o=function({composeNode:e,composeEmptyNode:t},n,s,i){const o=new be(n.schema);n.atRoot&&(n.atRoot=!1);let r=s.offset,a=null;for(const c of s.items){const{start:l,key:u,sep:f,value:h}=c,d=It(l,{indicator:"explicit-key-ind",next:u??f?.[0],offset:r,onError:i,startOnNewline:!0}),p=!d.found;if(p){if(u&&("block-seq"===u.type?i(r,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in u&&u.indent!==s.indent&&i(r,"BAD_INDENT",xt)),!d.anchor&&!d.tag&&!f){a=d.end,d.comment&&(o.comment?o.comment+="\n"+d.comment:o.comment=d.comment);continue}(d.hasNewlineAfterProp||Tt(u))&&i(u??l[l.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else d.found?.indent!==s.indent&&i(r,"BAD_INDENT",xt);const m=d.end,y=u?e(n,u,d,i):t(n,m,l,null,d,i);n.schema.compat&&Lt(s.indent,u,i),$t(n,o.items,y)&&i(m,"DUPLICATE_KEY","Map keys must be unique");const g=It(f??[],{indicator:"map-value-ind",next:h,offset:y.range[2],onError:i,startOnNewline:!u||"block-scalar"===u.type});if(r=g.end,g.found){p&&("block-map"!==h?.type||g.hasNewline||i(r,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&d.start<g.found.offset-1024&&i(y.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const a=h?e(n,h,g,i):t(n,r,f,null,g,i);n.schema.compat&&Lt(s.indent,h,i),r=a.range[2];const l=new he(y,a);n.options.keepSourceTokens&&(l.srcToken=c),o.items.push(l)}else{p&&i(y.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),g.comment&&(y.comment?y.comment+="\n"+g.comment:y.comment=g.comment);const e=new he(y);n.options.keepSourceTokens&&(e.srcToken=c),o.items.push(e)}}return a&&a<r&&i(a,"IMPOSSIBLE","Map comment with trailing content"),o.range=[s.offset,r,a??r],o}(e,t,n,i);break;case"block-seq":o=function({composeNode:e,composeEmptyNode:t},n,s,i){const o=new ke(n.schema);n.atRoot&&(n.atRoot=!1);let r=s.offset,a=null;for(const{start:c,value:l}of s.items){const u=It(c,{indicator:"seq-item-ind",next:l,offset:r,onError:i,startOnNewline:!0});if(!u.found){if(!(u.anchor||u.tag||l)){a=u.end,u.comment&&(o.comment=u.comment);continue}l&&"block-seq"===l.type?i(u.end,"BAD_INDENT","All sequence items must start at the same column"):i(r,"MISSING_CHAR","Sequence item without - indicator")}const f=l?e(n,l,u,i):t(n,u.end,c,null,u,i);n.schema.compat&&Lt(s.indent,l,i),r=f.range[2],o.items.push(f)}return o.range=[s.offset,r,a??r],o}(e,t,n,i);break;case"flow-collection":o=function({composeNode:e,composeEmptyNode:t},n,s,i){const o="{"===s.start.source,r=o?"flow map":"flow sequence",a=o?new be(n.schema):new ke(n.schema);a.flow=!0;const c=n.atRoot;c&&(n.atRoot=!1);let l=s.offset+s.start.source.length;for(let m=0;m<s.items.length;++m){const c=s.items[m],{start:u,key:f,sep:h,value:p}=c,y=It(u,{flow:r,indicator:"explicit-key-ind",next:f??h?.[0],offset:l,onError:i,startOnNewline:!1});if(!y.found){if(!y.anchor&&!y.tag&&!h&&!p){0===m&&y.comma?i(y.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${r}`):m<s.items.length-1&&i(y.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${r}`),y.comment&&(a.comment?a.comment+="\n"+y.comment:a.comment=y.comment),l=y.end;continue}!o&&n.options.strict&&Tt(f)&&i(f,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(0===m)y.comma&&i(y.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${r}`);else if(y.comma||i(y.start,"MISSING_CHAR",`Missing , between ${r} items`),y.comment){let e="";e:for(const t of u)switch(t.type){case"comma":case"space":break;case"comment":e=t.source.substring(1);break e;default:break e}if(e){let t=a.items[a.items.length-1];d(t)&&(t=t.value??t.key),t.comment?t.comment+="\n"+e:t.comment=e,y.comment=y.comment.substring(e.length+1)}}if(o||h||y.found){const s=y.end,d=f?e(n,f,y,i):t(n,s,u,null,y,i);jt(f)&&i(d.range,"BLOCK_IN_FLOW",_t);const m=It(h??[],{flow:r,indicator:"map-value-ind",next:p,offset:d.range[2],onError:i,startOnNewline:!1});if(m.found){if(!o&&!y.found&&n.options.strict){if(h)for(const e of h){if(e===m.found)break;if("newline"===e.type){i(e,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}y.start<m.found.offset-1024&&i(m.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else p&&("source"in p&&p.source&&":"===p.source[0]?i(p,"MISSING_CHAR",`Missing space after : in ${r}`):i(m.start,"MISSING_CHAR",`Missing , or : between ${r} items`));const g=p?e(n,p,m,i):m.found?t(n,m.end,h,null,m,i):null;g?jt(p)&&i(g.range,"BLOCK_IN_FLOW",_t):m.comment&&(d.comment?d.comment+="\n"+m.comment:d.comment=m.comment);const b=new he(d,g);if(n.options.keepSourceTokens&&(b.srcToken=c),o){const e=a;$t(n,e.items,d)&&i(s,"DUPLICATE_KEY","Map keys must be unique"),e.items.push(b)}else{const e=new be(n.schema);e.flow=!0,e.items.push(b),a.items.push(e)}l=g?g.range[2]:m.end}else{const s=p?e(n,p,y,i):t(n,y.end,h,null,y,i);a.items.push(s),l=s.range[2],jt(p)&&i(s.range,"BLOCK_IN_FLOW",_t)}}const u=o?"}":"]",[f,...h]=s.end;let p=l;if(f&&f.source===u)p=f.offset+f.source.length;else{const e=r[0].toUpperCase()+r.substring(1);i(l,c?"MISSING_CHAR":"BAD_INDENT",c?`${e} must end with a ${u}`:`${e} in block collection must be sufficiently indented and end with a ${u}`),f&&1!==f.source.length&&h.unshift(f)}if(h.length>0){const e=Ct(h,p,n.options.strict,i);e.comment&&(a.comment?a.comment+="\n"+e.comment:a.comment=e.comment),a.range=[s.offset,p,e.offset]}else a.range=[s.offset,p,p];return a}(e,t,n,i)}if(!s)return o;const r=t.directives.tagName(s.source,(e=>i(s,"TAG_RESOLVE_FAILED",e)));if(!r)return o;const a=o.constructor;if("!"===r||r===a.tagName)return o.tag=a.tagName,o;const c=h(o)?"map":"seq";let l=t.schema.tags.find((e=>e.collection===c&&e.tag===r));if(!l){const e=t.schema.knownTags[r];if(!e||e.collection!==c)return i(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,!0),o.tag=r,o;t.schema.tags.push(Object.assign({},e,{default:!1})),l=e}const u=l.resolve(o,(e=>i(s,"TAG_RESOLVE_FAILED",e)),t.options),f=g(u)?u:new K(u);return f.range=o.range,f.tag=r,l?.format&&(f.format=l.format),f}function Mt(e,t,n){const s=e.offset,i=function({offset:e,props:t},n,s){if("block-scalar-header"!==t[0].type)return s(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:i}=t[0],o=i[0];let r=0,a="",c=-1;for(let h=1;h<i.length;++h){const t=i[h];if(a||"-"!==t&&"+"!==t){const n=Number(t);!r&&n?r=n:-1===c&&(c=e+h)}else a=t}-1!==c&&s(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let l=!1,u="",f=i.length;for(let h=1;h<t.length;++h){const e=t[h];switch(e.type){case"space":l=!0;case"newline":f+=e.source.length;break;case"comment":if(n&&!l){s(e,"MISSING_CHAR","Comments must be separated from other tokens by white space characters")}f+=e.source.length,u=e.source.substring(1);break;case"error":s(e,"UNEXPECTED_TOKEN",e.message),f+=e.source.length;break;default:{s(e,"UNEXPECTED_TOKEN",`Unexpected token in block scalar header: ${e.type}`);const t=e.source;t&&"string"===typeof t&&(f+=t.length)}}}return{mode:o,indent:r,chomp:a,comment:u,length:f}}(e,t,n);if(!i)return{value:"",type:null,comment:"",range:[s,s,s]};const o=">"===i.mode?K.BLOCK_FOLDED:K.BLOCK_LITERAL,r=e.source?function(e){const t=e.split(/\n( *)/),n=t[0],s=n.match(/^( *)/),i=[s?.[1]?[s[1],n.slice(s[1].length)]:["",n]];for(let o=1;o<t.length;o+=2)i.push([t[o],t[o+1]]);return i}(e.source):[];let a=r.length;for(let m=r.length-1;m>=0;--m){const e=r[m][1];if(""!==e&&"\r"!==e)break;a=m}if(0===a){const t="+"===i.chomp&&r.length>0?"\n".repeat(Math.max(1,r.length-1)):"";let n=s+i.length;return e.source&&(n+=e.source.length),{value:t,type:o,comment:i.comment,range:[s,n,n]}}let c=e.indent+i.indent,l=e.offset+i.length,u=0;for(let m=0;m<a;++m){const[e,t]=r[m];if(""!==t&&"\r"!==t){if(e.length<c){const t="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";n(l+e.length,"MISSING_CHAR",t)}0===i.indent&&(c=e.length),u=m;break}0===i.indent&&e.length>c&&(c=e.length),l+=e.length+t.length+1}for(let m=r.length-1;m>=a;--m)r[m][0].length>c&&(a=m+1);let f="",h="",d=!1;for(let m=0;m<u;++m)f+=r[m][0].slice(c)+"\n";for(let m=u;m<a;++m){let[e,t]=r[m];l+=e.length+t.length+1;const s="\r"===t[t.length-1];if(s&&(t=t.slice(0,-1)),t&&e.length<c){const o=`Block scalar lines must not be less indented than their ${i.indent?"explicit indentation indicator":"first line"}`;n(l-t.length-(s?2:1),"BAD_INDENT",o),e=""}o===K.BLOCK_LITERAL?(f+=h+e.slice(c)+t,h="\n"):e.length>c||"\t"===t[0]?(" "===h?h="\n":d||"\n"!==h||(h="\n\n"),f+=h+e.slice(c)+t,h="\n",d=!0):""===t?"\n"===h?f+="\n":h="\n":(f+=h+t,h=" ",d=!1)}switch(i.chomp){case"-":break;case"+":for(let e=a;e<r.length;++e)f+="\n"+r[e][0].slice(c);"\n"!==f[f.length-1]&&(f+="\n");break;default:f+="\n"}const p=s+i.length+e.source.length;return{value:f,type:o,comment:i.comment,range:[s,p,p]}}function Dt(e,t,n){const{offset:s,type:i,source:o,end:r}=e;let a,c;const l=(e,t,i)=>n(s+e,t,i);switch(i){case"scalar":a=K.PLAIN,c=function(e,t){let n="";switch(e[0]){case"\t":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":n=`block scalar indicator ${e[0]}`;break;case"@":case"`":n=`reserved character ${e[0]}`}n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`);return Kt(e)}(o,l);break;case"single-quoted-scalar":a=K.QUOTE_SINGLE,c=function(e,t){"'"===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR","Missing closing 'quote");return Kt(e.slice(1,-1)).replace(/''/g,"'")}(o,l);break;case"double-quoted-scalar":a=K.QUOTE_DOUBLE,c=function(e,t){let n="";for(let s=1;s<e.length-1;++s){const i=e[s];if("\r"!==i||"\n"!==e[s+1])if("\n"===i){const{fold:t,offset:i}=Pt(e,s);n+=t,s=i}else if("\\"===i){let i=e[++s];const o=Ut[i];if(o)n+=o;else if("\n"===i)for(i=e[s+1];" "===i||"\t"===i;)i=e[1+ ++s];else if("\r"===i&&"\n"===e[s+1])for(i=e[1+ ++s];" "===i||"\t"===i;)i=e[1+ ++s];else if("x"===i||"u"===i||"U"===i){const o={x:2,u:4,U:8}[i];n+=qt(e,s+1,o,t),s+=o}else{const i=e.substr(s-1,2);t(s-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${i}`),n+=i}}else if(" "===i||"\t"===i){const t=s;let o=e[s+1];for(;" "===o||"\t"===o;)o=e[1+ ++s];"\n"===o||"\r"===o&&"\n"===e[s+2]||(n+=s>t?e.slice(t,s+1):i)}else n+=i}'"'===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR",'Missing closing "quote');return n}(o,l);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`),{value:"",type:null,comment:"",range:[s,s+o.length,s+o.length]}}const u=s+o.length,f=Ct(r,u,t,n);return{value:c,type:a,comment:f.comment,range:[s,u,f.offset]}}function Kt(e){let t,n;try{t=new RegExp("(.*?)(?<![ \t])[ \t]*\r?\n","sy"),n=new RegExp("[ \t]*(.*?)(?:(?<![ \t])[ \t]*)?\r?\n","sy")}catch(c){t=/(.*?)[ \t]*\r?\n/ys,n=/[ \t]*(.*?)[ \t]*\r?\n/ys}let s=t.exec(e);if(!s)return e;let i=s[1],o=" ",r=t.lastIndex;for(n.lastIndex=r;s=n.exec(e);)""===s[1]?"\n"===o?i+=o:o="\n":(i+=o+s[1],o=" "),r=n.lastIndex;const a=/[ \t]*(.*)/ys;return a.lastIndex=r,s=a.exec(e),i+o+(s?.[1]??"")}function Pt(e,t){let n="",s=e[t+1];for(;(" "===s||"\t"===s||"\n"===s||"\r"===s)&&("\r"!==s||"\n"===e[t+2]);)"\n"===s&&(n+="\n"),s=e[(t+=1)+1];return n||(n=" "),{fold:n,offset:t}}const Ut={0:"\0",a:"\x07",b:"\b",e:"\x1b",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"\x85",_:"\xa0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function qt(e,t,n,s){const i=e.substr(t,n),o=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;if(isNaN(o)){const i=e.substr(t-2,n+2);return s(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${i}`),i}return String.fromCodePoint(o)}function Rt(e,t,n,s){const{value:i,type:o,comment:r,range:c}="block-scalar"===t.type?Mt(t,e.options.strict,s):Dt(t,e.options.strict,s),l=n?e.directives.tagName(n.source,(e=>s(n,"TAG_RESOLVE_FAILED",e))):null,u=n&&l?function(e,t,n,s,i){if("!"===n)return e[a];const o=[];for(const a of e.tags)if(!a.collection&&a.tag===n){if(!a.default||!a.test)return a;o.push(a)}for(const a of o)if(a.test?.test(t))return a;const r=e.knownTags[n];if(r&&!r.collection)return e.tags.push(Object.assign({},r,{default:!1,test:void 0})),r;return i(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,"tag:yaml.org,2002:str"!==n),e[a]}(e.schema,i,l,n,s):"scalar"===t.type?function({directives:e,schema:t},n,s,i){const o=t.tags.find((e=>e.default&&e.test?.test(n)))||t[a];if(t.compat){const r=t.compat.find((e=>e.default&&e.test?.test(n)))??t[a];if(o.tag!==r.tag){i(s,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${e.tagString(o.tag)} or ${e.tagString(r.tag)}`,!0)}}return o}(e,i,t,s):e.schema[a];let f;try{const o=u.resolve(i,(e=>s(n??t,"TAG_RESOLVE_FAILED",e)),e.options);f=p(o)?o:new K(o)}catch(h){const e=h instanceof Error?h.message:String(h);s(n??t,"TAG_RESOLVE_FAILED",e),f=new K(i)}return f.range=c,f.source=i,o&&(f.type=o),l&&(f.tag=l),u.format&&(f.format=u.format),r&&(f.comment=r),f}function Ft(e,t,n){if(t){null===n&&(n=t.length);for(let s=n-1;s>=0;--s){let n=t[s];switch(n.type){case"space":case"comment":case"newline":e-=n.source.length;continue}for(n=t[++s];"space"===n?.type;)e+=n.source.length,n=t[++s];break}}return e}const Vt={composeNode:Jt,composeEmptyNode:Yt};function Jt(e,t,n,s){const{spaceBefore:i,comment:o,anchor:r,tag:a}=n;let c,l=!0;switch(t.type){case"alias":c=function({options:e},{offset:t,source:n,end:s},i){const o=new j(n.substring(1));""===o.source&&i(t,"BAD_ALIAS","Alias cannot be an empty string");o.source.endsWith(":")&&i(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const r=t+n.length,a=Ct(s,r,e.strict,i);o.range=[t,r,a.offset],a.comment&&(o.comment=a.comment);return o}(e,t,s),(r||a)&&s(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":c=Rt(e,t,a,s),r&&(c.anchor=r.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":c=Bt(Vt,e,t,a,s),r&&(c.anchor=r.source.substring(1));break;default:s(t,"UNEXPECTED_TOKEN","error"===t.type?t.message:`Unsupported token (type: ${t.type})`),c=Yt(e,t.offset,void 0,null,n,s),l=!1}return r&&""===c.anchor&&s(r,"BAD_ALIAS","Anchor cannot be an empty string"),i&&(c.spaceBefore=!0),o&&("scalar"===t.type&&""===t.source?c.comment=o:c.commentBefore=o),e.options.keepSourceTokens&&l&&(c.srcToken=t),c}function Yt(e,t,n,s,{spaceBefore:i,comment:o,anchor:r,tag:a,end:c},l){const u=Rt(e,{type:"scalar",offset:Ft(t,n,s),indent:-1,source:""},a,l);return r&&(u.anchor=r.source.substring(1),""===u.anchor&&l(r,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(u.spaceBefore=!0),o&&(u.comment=o,u.range[2]=c),u}function Gt(e){if("number"===typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+("string"===typeof n?n.length:1)]}function Wt(e){let t="",n=!1,s=!1;for(let i=0;i<e.length;++i){const o=e[i];switch(o[0]){case"#":t+=(""===t?"":s?"\n\n":"\n")+(o.substring(1)||" "),n=!0,s=!1;break;case"%":"#"!==e[i+1]?.[0]&&(i+=1),n=!1;break;default:n||(s=!0),n=!1}}return{comment:t,afterEmptyLine:s}}class Qt{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,s)=>{const i=Gt(e);s?this.warnings.push(new Ot(i,t,n)):this.errors.push(new Nt(i,t,n))},this.directives=new $({version:e.version||"1.2"}),this.options=e}decorate(e,t){const{comment:n,afterEmptyLine:s}=Wt(this.prelude);if(n){const i=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(s||e.directives.docStart||!i)e.commentBefore=n;else if(y(i)&&!i.flow&&i.items.length>0){let e=i.items[0];d(e)&&(e=e.key);const t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{const e=i.commentBefore;i.commentBefore=e?`${n}\n${e}`:n}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Wt(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(const s of e)yield*this.next(s);yield*this.end(t,n)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,((t,n,s)=>{const i=Gt(e);i[0]+=t,this.onError(i,"BAD_DIRECTIVE",n,s)})),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const t=function(e,t,{offset:n,start:s,value:i,end:o},r){const a=Object.assign({_directives:t},e),c=new vt(void 0,a),l={atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},u=It(s,{indicator:"doc-start",next:i??o?.[0],offset:n,onError:r,startOnNewline:!0});u.found&&(c.directives.docStart=!0,!i||"block-map"!==i.type&&"block-seq"!==i.type||u.hasNewline||r(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=i?Jt(l,i,u,r):Yt(l,u.end,s,null,u,r);const f=c.contents.range[2],h=Ct(o,f,!1,r);return h.comment&&(c.comment=h.comment),c.range=[n,f,h.offset],c}(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new Nt(Gt(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new Nt(Gt(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=!0;const t=Ct(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new Nt(Gt(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const e=Object.assign({_directives:this.directives},this.options),n=new vt(void 0,e);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),n.range=[0,t,t],this.decorate(n,!1),yield n}}}const Ht=Symbol("break visit"),Xt=Symbol("skip children"),zt=Symbol("remove item");function Zt(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),en(Object.freeze([]),e,t)}function en(e,t,n){let s=n(t,e);if("symbol"===typeof s)return s;for(const i of["key","value"]){const o=t[i];if(o&&"items"in o){for(let t=0;t<o.items.length;++t){const s=en(Object.freeze(e.concat([[i,t]])),o.items[t],n);if("number"===typeof s)t=s-1;else{if(s===Ht)return Ht;s===zt&&(o.items.splice(t,1),t-=1)}}"function"===typeof s&&"key"===i&&(s=s(t,e))}}return"function"===typeof s?s(t,e):s}Zt.BREAK=Ht,Zt.SKIP=Xt,Zt.REMOVE=zt,Zt.itemAtPath=(e,t)=>{let n=e;for(const[s,i]of t){const e=n?.[s];if(!e||!("items"in e))return;n=e.items[i]}return n},Zt.parentCollection=(e,t)=>{const n=Zt.itemAtPath(e,t.slice(0,-1))?.[t[t.length-1][0]];if(n&&"items"in n)return n;throw new Error("Parent collection not found")};const tn="\x1f";function nn(e){switch(e){case void 0:case" ":case"\n":case"\r":case"\t":return!0;default:return!1}}const sn="0123456789ABCDEFabcdef".split(""),on="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),rn=",[]{}".split(""),an=" ,[]{}\n\r\t".split(""),cn=e=>!e||an.includes(e);class ln{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){e&&(this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null),this.atEnd=!t;let n=this.next??"stream";for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;" "===t||"\t"===t;)t=this.buffer[++e];return!t||"#"===t||"\n"===t||"\r"===t&&"\n"===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;" "===t;)t=this.buffer[++n+e];if("\r"===t){const t=this.buffer[n+e+1];if("\n"===t||!t&&!this.atEnd)return e+n+1}return"\n"===t||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if("-"===t||"."===t){const t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&&nn(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return("number"!==typeof e||-1!==e&&e<this.pos)&&(e=this.buffer.indexOf("\n",this.pos),this.lineEndPos=e),-1===e?this.atEnd?this.buffer.substring(this.pos):null:("\r"===this.buffer[e-1]&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(null===e)return this.setNext("stream");if("\ufeff"===e[0]&&(yield*this.pushCount(1),e=e.substring(1)),"%"===e[0]){let t=e.length;const n=e.indexOf("#");if(-1!==n){const s=e[n-1];" "!==s&&"\t"!==s||(t=n-1)}for(;;){const n=e[t-1];if(" "!==n&&"\t"!==n)break;t-=1}const s=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-s),this.pushNewline(),"stream"}if(this.atLineEnd()){const t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield"\x02",yield*this.parseLineStart()}*parseLineStart(){const e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if("-"===e||"."===e){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const e=this.peek(3);if("---"===e&&nn(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if("..."===e&&nn(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!nn(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&&nn(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(null===e)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(cn),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=(yield*this.parseBlockScalarHeader()),t+=(yield*this.pushSpaces(!0)),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do{e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=(yield*this.pushSpaces(!0))}while(e+t>0);const s=this.getLine();if(null===s)return this.setNext("flow");if(-1!==n&&n<this.indentNext&&"#"!==s[0]||0===n&&(s.startsWith("---")||s.startsWith("..."))&&nn(s[3])){if(!(n===this.indentNext-1&&1===this.flowLevel&&("]"===s[0]||"}"===s[0])))return this.flowLevel=0,yield"\x18",yield*this.parseLineStart()}let i=0;for(;","===s[i];)i+=(yield*this.pushCount(1)),i+=(yield*this.pushSpaces(!0)),this.flowKey=!1;switch(i+=(yield*this.pushIndicators()),s[i]){case void 0:return"flow";case"#":return yield*this.pushCount(s.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(cn),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const e=this.charAt(1);if(this.flowKey||nn(e)||","===e)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const e=this.charAt(0);let t=this.buffer.indexOf(e,this.pos+1);if("'"===e)for(;-1!==t&&"'"===this.buffer[t+1];)t=this.buffer.indexOf("'",t+2);else for(;-1!==t;){let e=0;for(;"\\"===this.buffer[t-1-e];)e+=1;if(e%2===0)break;t=this.buffer.indexOf('"',t+1)}const n=this.buffer.substring(0,t);let s=n.indexOf("\n",this.pos);if(-1!==s){for(;-1!==s;){const e=this.continueScalar(s+1);if(-1===e)break;s=n.indexOf("\n",e)}-1!==s&&(t=s-("\r"===n[s-1]?2:1))}if(-1===t){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){const t=this.buffer[++e];if("+"===t)this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if("-"!==t)break}return yield*this.pushUntil((e=>nn(e)||"#"===e))}*parseBlockScalar(){let e,t=this.pos-1,n=0;e:for(let s=this.pos;e=this.buffer[s];++s)switch(e){case" ":n+=1;break;case"\n":t=s,n=0;break;case"\r":{const e=this.buffer[s+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break e}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=n:this.indentNext+=this.blockScalarIndent;do{const e=this.continueScalar(t+1);if(-1===e)break;t=this.buffer.indexOf("\n",e)}while(-1!==t);if(-1===t){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}if(!this.blockScalarKeep)for(;;){let e=t-1,s=this.buffer[e];"\r"===s&&(s=this.buffer[--e]);const i=e;for(;" "===s||"\t"===s;)s=this.buffer[--e];if(!("\n"===s&&e>=this.pos&&e+1+n>i))break;t=e}return yield tn,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t,n=this.pos-1,s=this.pos-1;for(;t=this.buffer[++s];)if(":"===t){const t=this.buffer[s+1];if(nn(t)||e&&","===t)break;n=s}else if(nn(t)){let i=this.buffer[s+1];if("\r"===t&&("\n"===i?(s+=1,t="\n",i=this.buffer[s+1]):n=s),"#"===i||e&&rn.includes(i))break;if("\n"===t){const e=this.continueScalar(s+1);if(-1===e)break;s=Math.max(s,e-2)}}else{if(e&&rn.includes(t))break;n=s}return t||this.atEnd?(yield tn,yield*this.pushToIndex(n+1,!0),e?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){const n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(cn))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0,t=this.charAt(1);if(nn(t)||e&&rn.includes(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e];for(;!nn(t)&&">"!==t;)t=this.buffer[++e];return yield*this.pushToIndex(">"===t?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(on.includes(t))t=this.buffer[++e];else{if("%"!==t||!sn.includes(this.buffer[e+1])||!sn.includes(this.buffer[e+2]))break;t=this.buffer[e+=3]}return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let t,n=this.pos-1;do{t=this.buffer[++n]}while(" "===t||e&&"\t"===t);const s=n-this.pos;return s>0&&(yield this.buffer.substr(this.pos,s),this.pos=n),s}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}function un(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function fn(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function hn(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function dn(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function pn(e){if(0===e.length)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;"space"===e[++t]?.type;);return e.splice(t,e.length)}function mn(e){if("flow-seq-start"===e.start.type)for(const t of e.items)!t.sep||t.value||un(t.start,"explicit-key-ind")||un(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,hn(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class yn{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new ln,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&0===this.offset&&this.onNewLine(0);for(const n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar)return this.atScalar=!1,yield*this.step(),void(this.offset+=e.length);const t=function(e){switch(e){case"\ufeff":return"byte-order-mark";case"\x02":return"doc-mode";case"\x18":return"flow-error-end";case tn:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}(e);if(t)if("scalar"===t)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if("doc-end"!==this.type||e&&"doc-end"===e.type){if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}else{for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source})}}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(t)if(0===this.stack.length)yield t;else{const e=this.peek(1);switch("block-scalar"===t.type?t.indent="indent"in e?e.indent:0:"flow-collection"===t.type&&"document"===e.type&&(t.indent=0),"flow-collection"===t.type&&mn(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const n=e.items[e.items.length-1];if(n.value)return e.items.push({start:[],key:t,sep:[]}),void(this.onKeyLine=!0);if(!n.sep)return Object.assign(n,{key:t,sep:[]}),void(this.onKeyLine=!un(n.start,"explicit-key-ind"));n.value=t;break}case"block-seq":{const n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case"flow-collection":{const n=e.items[e.items.length-1];return void(!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]}))}default:yield*this.pop(),yield*this.pop(t)}if(("document"===e.type||"block-map"===e.type||"block-seq"===e.type)&&("block-map"===t.type||"block-seq"===t.type)){const n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&-1===fn(n.start)&&(0===t.indent||n.start.every((e=>"comment"!==e.type||e.indent<t.indent)))&&("document"===e.type?e.end=n.start:e.items.push({start:n.start}),t.items.splice(-1,1))}}else{const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}}*stream(){switch(this.type){case"directive-line":return void(yield{type:"directive",offset:this.offset,source:this.source});case"byte-order-mark":case"space":case"comment":case"newline":return void(yield this.sourceToken);case"doc-mode":case"doc-start":{const e={type:"document",offset:this.offset,start:[]};return"doc-start"===this.type&&e.start.push(this.sourceToken),void this.stack.push(e)}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":return void(-1!==fn(e.start)?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken));case"anchor":case"tag":case"space":case"comment":case"newline":return void e.start.push(this.sourceToken)}const t=this.startBlockValue(e);t?this.stack.push(t):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if("map-value-ind"===this.type){const t=pn(dn(this.peek(2)));let n;e.end?(n=e.end,n.push(this.sourceToken),delete e.end):n=[this.sourceToken];const s={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":return void e.props.push(this.sourceToken);case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){const n="end"in t.value?t.value.end:void 0;"comment"===(Array.isArray(n)?n[n.length-1]:void 0)?.type?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){const n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n))return Array.prototype.push.apply(n,t.start),n.push(this.sourceToken),void e.items.pop()}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const n=!this.onKeyLine&&this.indent===e.indent&&t.sep;let s=[];if(n&&t.sep&&!t.value){const n=[];for(let s=0;s<t.sep.length;++s){const i=t.sep[s];switch(i.type){case"newline":n.push(s);break;case"space":break;case"comment":i.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(s=t.sep.splice(n[1]))}switch(this.type){case"anchor":case"tag":return void(n||t.value?(s.push(this.sourceToken),e.items.push({start:s}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"explicit-key-ind":return t.sep||un(t.start,"explicit-key-ind")?n||t.value?(s.push(this.sourceToken),e.items.push({start:s})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}):t.start.push(this.sourceToken),void(this.onKeyLine=!0);case"map-value-ind":if(un(t.start,"explicit-key-ind"))if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(un(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]});else if(hn(t.key)&&!un(t.sep,"newline")){const e=pn(t.start),n=t.key,s=t.sep;s.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:s}]})}else s.length>0?t.sep=t.sep.concat(s,this.sourceToken):t.sep.push(this.sourceToken);else if(un(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{const e=pn(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||n?e.items.push({start:s,key:null,sep:[this.sourceToken]}):un(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return void(this.onKeyLine=!0);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const i=this.flowScalar(this.type);return void(n||t.value?(e.items.push({start:s,key:i,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(i):(Object.assign(t,{key:i,sep:[]}),this.onKeyLine=!0))}default:{const i=this.startBlockValue(e);if(i)return n&&"block-seq"!==i.type&&un(t.start,"explicit-key-ind")&&e.items.push({start:s}),void this.stack.push(i)}}}yield*this.pop(),yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const n="end"in t.value?t.value.end:void 0;"comment"===(Array.isArray(n)?n[n.length-1]:void 0)?.type?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n))return Array.prototype.push.apply(n,t.start),n.push(this.sourceToken),void e.items.pop()}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;return void t.start.push(this.sourceToken);case"seq-item-ind":if(this.indent!==e.indent)break;return void(t.value||un(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken))}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t)return void this.stack.push(t)}yield*this.pop(),yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do{yield*this.pop(),e=this.peek(1)}while(e&&"flow-collection"===e.type)}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":return void(!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken));case"map-value-ind":return void(!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]}));case"space":case"comment":case"newline":case"anchor":case"tag":return void(!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const n=this.flowScalar(this.type);return void(!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]}))}case"flow-map-end":case"flow-seq-end":return void e.end.push(this.sourceToken)}const n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{const t=this.peek(2);if("block-map"===t.type&&("map-value-ind"===this.type&&t.indent===e.indent||"newline"===this.type&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if("map-value-ind"===this.type&&"flow-collection"!==t.type){const n=pn(dn(t));mn(e);const s=e.end.splice(1,e.end.length);s.push(this.sourceToken);const i={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const t=pn(dn(e));return t.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t}]}}case"map-value-ind":{this.onKeyLine=!0;const t=pn(dn(e));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return"comment"===this.type&&(!(this.indent<=t)&&e.every((e=>"newline"===e.type||"space"===e.type)))}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}class gn{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){const s=t+n>>1;this.lineStarts[s]<e?t=s+1:n=s}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(0===t)return{line:0,col:e};return{line:t,col:e-this.lineStarts[t-1]+1}}}}function bn(e){const t=!1!==e.prettyErrors;return{lineCounter:e.lineCounter||t&&new gn||null,prettyErrors:t}}function wn(e,t,n){let s;"function"===typeof t?s=t:void 0===n&&t&&"object"===typeof t&&(n=t);const i=function(e,t={}){const{lineCounter:n,prettyErrors:s}=bn(t),i=new yn(n?.addNewLine),o=new Qt(t);let r=null;for(const a of o.compose(i.parse(e),!0,e.length))if(r){if("silent"!==r.options.logLevel){r.errors.push(new Nt(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else r=a;return s&&n&&(r.errors.forEach(At(e,n)),r.warnings.forEach(At(e,n))),r}(e,n);if(!i)return null;if(i.warnings.forEach((e=>ae(i.options.logLevel,e))),i.errors.length>0){if("silent"!==i.options.logLevel)throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:s},n))}function kn(e,t,n){let s=null;if("function"===typeof t||Array.isArray(t)?s=t:void 0===n&&t&&(n=t),"string"===typeof n&&(n=n.length),"number"===typeof n){const e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){const{keepUndefined:e}=n??t??{};if(!e)return}return new vt(e,s,n).toString(n)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[595],{55283:function(e,n,t){t.d(n,{HC:function(){return O},HS:function(){return j},IN:function(){return h},Kf:function(){return g},Nk:function(){return m},PB:function(){return x},PY:function(){return b},WC:function(){return p},fk:function(){return S},gE:function(){return A},j1:function(){return C},jv:function(){return Z},nz:function(){return y},oh:function(){return s},qn:function(){return v},t1:function(){return k},u2:function(){return f},y9:function(){return _}});var o=t(38626),i=t(44897),r=t(44425),l=t(42631),d=t(8059),c=t(70515),u=t(47041),a=t(91437),s=68,h=1.5*c.iI,p=3*c.iI;function f(e){var n=d.eW;return r.tf.CALLBACK===e?n=d.J:r.tf.CHART===e||r.tf.CONDITIONAL===e?n=d.Hv:r.tf.CUSTOM===e?n=d.AK:r.tf.DATA_EXPORTER===e?n=d.Sr:r.tf.DATA_LOADER===e?n=d.R2:r.tf.DBT===e?n=d.J:r.tf.EXTENSION===e?n=d.FI:r.tf.GLOBAL_DATA_PRODUCT===e?n=d.yr:r.tf.SCRATCHPAD===e?n=d.Hv:r.tf.SENSOR===e?n=d.rK:r.tf.MARKDOWN===e?n=d.RK:r.tf.TRANSFORMER===e&&(n=d.eW),n}function v(e,n){var t,o,l=((null===n||void 0===n||null===(t=n.theme)||void 0===t?void 0:t.borders)||i.Z.borders).light,d=((null===n||void 0===n||null===(o=n.theme)||void 0===o?void 0:o.monotone)||i.Z.monotone).grey500,c=n||{},u=c.blockColor,a=c.isSelected,s=c.theme;return a?l=(s||i.Z).content.active:r.tf.TRANSFORMER===e||u===r.Lq.PURPLE?(l=(s||i.Z).accent.purple,d=(s||i.Z).accent.purpleLight):r.tf.DATA_EXPORTER===e||u===r.Lq.YELLOW?(l=(s||i.Z).accent.yellow,d=(s||i.Z).accent.yellowLight):r.tf.DATA_LOADER===e||u===r.Lq.BLUE?(l=(s||i.Z).accent.blue,d=(s||i.Z).accent.blueLight):r.tf.MARKDOWN===e?(l=(s||i.Z).accent.sky,d=(s||i.Z).accent.skyLight):r.tf.SENSOR===e||u===r.Lq.PINK?(l=(s||i.Z).accent.pink,d=(s||i.Z).accent.pinkLight):r.tf.DBT===e?(l=(s||i.Z).accent.dbt,d=(s||i.Z).accent.dbtLight):r.tf.EXTENSION===e||u===r.Lq.TEAL?(l=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).teal,d=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).tealLight):r.tf.CALLBACK===e?(l=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).rose,d=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).roseLight):r.tf.CONDITIONAL===e||r.tf.SCRATCHPAD===e||u===r.Lq.GREY||r.tf.CUSTOM===e&&!u?(l=(s||i.Z).content.default,d=(s||i.Z).accent.contentDefaultTransparent):r.tf.GLOBAL_DATA_PRODUCT!==e||u||(l=(s||i.Z).monotone.white,d=(s||i.Z).monotone.whiteTransparent),{accent:l,accentLight:d}}var g=(0,o.css)([""," "," "," "," "," "," ",""],(0,a.eR)(),(function(e){return!e.selected&&!e.hasError&&"\n border-color: ".concat(v(e.blockType,e).accentLight,";\n ")}),(function(e){return e.selected&&!e.hasError&&"\n border-color: ".concat(v(e.blockType,e).accent,";\n ")}),(function(e){return!e.selected&&e.hasError&&"\n border-color: ".concat((e.theme.accent||i.Z.accent).negativeTransparent,";\n ")}),(function(e){return e.selected&&e.hasError&&"\n border-color: ".concat((e.theme.borders||i.Z.borders).danger,";\n ")}),(function(e){return e.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(e){return e.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),m=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],l.n_),b=o.default.div.withConfig({displayName:"indexstyle__HiddenBlockContainerStyle",componentId:"sc-s5rj34-1"})([""," border-radius:","px;border-style:",";border-width:","px;",""],g,l.n_,l.M8,l.mP,(function(e){return"\n background-color: ".concat((e.theme||i.Z).background.content,";\n\n &:hover {\n border-color: ").concat(v(e.blockType,e).accent,";\n }\n ")})),x=o.default.div.withConfig({displayName:"indexstyle__HeaderHorizontalBorder",componentId:"sc-s5rj34-2"})(["",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme||i.Z).borders.darkLight,";\n ")})),y=o.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-3"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;"," "," "," ",""],g,l.n_,l.n_,l.M8,l.mP,l.M8,l.mP,l.M8,l.mP,1*c.iI,1*c.iI,(function(e){return"\n background-color: ".concat((e.theme||i.Z).background.dashboard,";\n ")}),(function(e){return"undefined"!==typeof e.zIndex&&null!==e.zIndex&&"\n z-index: ".concat(6+(e.zIndex||0),";\n ")}),(function(e){return!e.noSticky&&"\n // This is to hide the horizontal scrollbar in the block header when sideBySide is enabled,\n // and the screen width is too small.\n position: sticky;\n top: -5px;\n "}),(function(e){return e.noSticky&&"\n ".concat((0,u.y$)(),"\n\n overflow-x: auto;\n overflow-y: visible;\n ")})),j=o.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-s5rj34-4"})([""," "," ",""],(function(e){return!e.darkBorder&&"\n border-bottom: 1px solid ".concat((e.theme.borders||i.Z.borders).darkLight,";\n ")}),(function(e){return e.darkBorder&&"\n border-bottom: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}),(function(e){return!e.noBackground&&"\n background-color: ".concat((e.theme||i.Z).background.dashboard,";\n ")})),Z=o.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-5"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;position:relative;"," "," "," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],g,l.M8,l.mP,l.M8,l.mP,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).codeTextarea,";\n ")}),(function(e){return!e.noPadding&&"\n padding-bottom: ".concat(c.iI,"px;\n padding-top: ").concat(c.iI,"px;\n ")}),(function(e){return e.lightBackground&&"\n background-color: ".concat((e.theme||i.Z).background.content,";\n ")}),(function(e){return!e.hideBorderBottom&&"\n border-bottom-left-radius: ".concat(l.n_,"px;\n border-bottom-right-radius: ").concat(l.n_,"px;\n border-bottom-style: ").concat(l.M8,";\n border-bottom-width: ").concat(l.mP,"px;\n overflow: hidden;\n ")})),A=o.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-6"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;&:hover{"," .block-divider-inner{","}}"," "," "," ",""],2*c.iI,(function(e){return e.additionalZIndex>0&&"\n z-index: ".concat(8+e.additionalZIndex,";\n ")}),(function(e){return"\n background-color: ".concat((e.theme.text||i.Z.text).fileBrowser,";\n ")}),(function(e){return!e.height&&"\n height: ".concat(2*c.iI,"px;\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return!e.bottom&&"\n bottom: ".concat(.5*c.iI,"px;\n ")}),(function(e){return"undefined"!==typeof e.bottom&&"\n bottom: ".concat(e.bottom,"px;\n ")})),k=o.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-7"})(["height 1px;width:100%;position:absolute;z-index:-1;"," ",""],(function(e){return!e.top&&"\n top: ".concat(1.5*c.iI,"px;\n ")}),(function(e){return"undefined"!==typeof e.top&&"\n top: ".concat(e.top,"px;\n ")})),_=o.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-8"})([""," ",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n padding-left: ").concat(e.normalPadding?c.iI:s,"px;\n ")}),(function(e){return!e.noMargin&&"\n margin-bottom: ".concat(1*c.iI,"px;\n padding-bottom: ").concat(1*c.iI,"px;\n ")})),O=o.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-9"})(["bottom:","px;left:","px;position:absolute;"],1*c.iI,s),S=o.default.div.withConfig({displayName:"indexstyle__ScrollColunnsContainerStyle",componentId:"sc-s5rj34-10"})(["position:relative;",""],(function(e){return"\n z-index: ".concat((null===e||void 0===e?void 0:e.zIndex)||1,";\n ")})),C=o.default.div.attrs((function(e){var n=e.height,t=e.left,o=e.right,i=e.top;return{style:{position:"fixed",height:n,width:e.width,left:t,right:o,top:i,zIndex:(e.zIndex||0)+2}}})).withConfig({displayName:"indexstyle__ScrollColunnStyle",componentId:"sc-s5rj34-11"})([""])},94629:function(e,n,t){t.d(n,{Z:function(){return O}});var o=t(82394),i=t(21831),r=t(82684),l=t(50724),d=t(82555),c=t(97618),u=t(70613),a=t(68487),s=t(68899),h=t(28598);function p(e,n){var t=e.children,o=e.noPadding;return(0,h.jsx)(s.HS,{noPadding:o,ref:n,children:t})}var f=r.forwardRef(p),v=t(62547),g=t(82571),m=t(35686),b=t(98464),x=t(46684),y=t(70515),j=t(53808),Z=t(19183);function A(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function k(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?A(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):A(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function _(e,n){var t,o=e.addProjectBreadcrumbToCustomBreadcrumbs,p=e.after,A=e.afterHeader,_=e.afterHidden,O=e.afterWidth,S=e.afterWidthOverride,C=e.appendBreadcrumbs,R=e.before,E=e.beforeWidth,P=e.breadcrumbs,T=e.children,I=e.errors,w=e.headerMenuItems,D=e.headerOffset,L=e.hideAfterCompletely,N=e.mainContainerHeader,M=e.navigationItems,B=e.setAfterHidden,H=e.setErrors,U=e.subheaderChildren,W=e.subheaderNoPadding,F=e.title,K=e.uuid,z=(0,Z.i)().width,X="dashboard_after_width_".concat(K),Y="dashboard_before_width_".concat(K),G=(0,r.useRef)(null),V=(0,r.useState)(S?O:(0,j.U2)(X,O)),q=V[0],Q=V[1],J=(0,r.useState)(!1),$=J[0],ee=J[1],ne=(0,r.useState)(R?Math.max((0,j.U2)(Y,E),13*y.iI):null),te=ne[0],oe=ne[1],ie=(0,r.useState)(!1),re=ie[0],le=ie[1],de=(0,r.useState)(null)[1],ce=m.ZP.projects.list({},{revalidateOnFocus:!1}).data,ue=null===ce||void 0===ce?void 0:ce.projects,ae={label:function(){var e;return null===ue||void 0===ue||null===(e=ue[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},se=[];P&&(o&&se.push(ae),se.push.apply(se,(0,i.Z)(P))),(null===P||void 0===P||!P.length||C)&&(null===ue||void 0===ue?void 0:ue.length)>=1&&(null!==P&&void 0!==P&&P.length||se.unshift({bold:!C,label:function(){return F}}),se.unshift(ae)),(0,r.useEffect)((function(){null===G||void 0===G||!G.current||$||re||null===de||void 0===de||de(G.current.getBoundingClientRect().width)}),[$,q,re,te,G,de,z]),(0,r.useEffect)((function(){$||(0,j.t8)(X,q)}),[_,$,q,X]),(0,r.useEffect)((function(){re||(0,j.t8)(Y,te)}),[re,te,Y]);var he=(0,b.Z)(O);return(0,r.useEffect)((function(){S&&he!==O&&Q(O)}),[S,O,he]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(u.Z,{title:F}),(0,h.jsx)(a.Z,{breadcrumbs:se,menuItems:w,project:null===ue||void 0===ue?void 0:ue[0],version:null===ue||void 0===ue||null===(t=ue[0])||void 0===t?void 0:t.version}),(0,h.jsxs)(s.Nk,{ref:n,children:[0!==(null===M||void 0===M?void 0:M.length)&&(0,h.jsx)(s.lm,{showMore:!0,children:(0,h.jsx)(g.Z,{navigationItems:M,showMore:!0})}),(0,h.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,h.jsxs)(v.Z,{after:p,afterHeader:A,afterHeightOffset:x.Mz,afterHidden:_,afterMousedownActive:$,afterWidth:q,before:R,beforeHeightOffset:x.Mz,beforeMousedownActive:re,beforeWidth:s.k1+(R?te:0),headerOffset:D,hideAfterCompletely:!B||L,leftOffset:R?s.k1:null,mainContainerHeader:N,mainContainerRef:G,setAfterHidden:B,setAfterMousedownActive:ee,setAfterWidth:Q,setBeforeMousedownActive:le,setBeforeWidth:oe,children:[U&&(0,h.jsx)(f,{noPadding:W,children:U}),T]})})]}),I&&(0,h.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===H||void 0===H?void 0:H(null)},children:(0,h.jsx)(d.Z,k(k({},I),{},{onClose:function(){return null===H||void 0===H?void 0:H(null)}}))})]})}var O=r.forwardRef(_)},11364:function(e,n,t){t.d(n,{Z:function(){return Y}});var o=t(61049);function i(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,n,t){return r=i()?Reflect.construct:function(e,n,t){var i=[null];i.push.apply(i,n);var r=new(Function.bind.apply(e,i));return t&&(0,o.Z)(r,t.prototype),r},r.apply(null,arguments)}var l,d,c,u,a,s=t(21831),h=t(82394),p=t(75582),f=t(12691),v=t.n(f),g=t(38626),m=t(21764),b=t(82684),x=t(69864),y=t(34376),j=t(32013),Z=t(98777),A=t(71180),k=t(31882),_=t(97618),O=t(55485);!function(e){e.CREATE="create",e.DELETE="delete",e.DETAIL="detail",e.EXECUTE="execute",e.LIST="list",e.UPDATE="update",e.UPDATE_ANYWHERE="update_anywhere"}(l||(l={})),function(e){e.BREAK="break",e.CONTINUE="continue",e.RAISE="raise"}(d||(d={})),function(e){e.AFTER="after",e.BEFORE="before"}(c||(c={})),function(e){e.ERROR="error",e.META="meta",e.METADATA="metadata",e.PAYLOAD="payload",e.QUERY="query",e.RESOURCE="resource",e.RESOURCES="resources"}(u||(u={})),function(e){e.FAILURE="failure",e.SUCCESS="success"}(a||(a={}));var S=t(48670),C=t(57114),R=t(38276),E=t(30160),P=t(35686),T=t(72473),I=t(8193),w=t(70515),D=t(81728),L=t(3917),N=t(55283),M=t(50178),B=t(42122),H=t(86735),U=t(72619),W=t(70320),F=t(23780),K=t(28598);function z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function X(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?z(Object(t),!0).forEach((function(n){(0,h.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Y=function(e){var n,t,o,i,l,h,f,z,Y,G,V,q,Q,J,$,ee,ne,te,oe,ie,re,le,de=e.isNew,ce=e.operationType,ue=e.resourceType,ae=e.uuid,se=(0,W.q)(),he=(0,M.PR)(),pe=(0,y.useRouter)(),fe="GlobalHookDetail/".concat(ae),ve=(0,b.useContext)(g.ThemeContext),ge=(0,b.useState)(null),me=ge[0],be=ge[1],xe=(0,b.useState)(!1),ye=xe[0],je=xe[1],Ze=(0,b.useState)(ce),Ae=Ze[0],ke=(Ze[1],(0,b.useState)(ue)),_e=ke[0],Oe=(ke[1],(0,F.VI)(null,{},[],{uuid:fe})),Se=(0,p.Z)(Oe,1)[0],Ce=(0,b.useMemo)((function(){return(0,B.hB)({include_operation_types:1,include_resource_types:1,include_snapshot_validation:1,operation_type:"undefined"===typeof Ae?null:Ae,resource_type:"undefined"===typeof _e?null:_e})}),[Ae,_e]),Re=P.ZP.global_hooks.detail(de?"__new__":ae,Ce).data,Ee=(0,b.useMemo)((function(){return null===Re||void 0===Re?void 0:Re.global_hook}),[Re]),Pe=(0,b.useMemo)((function(){return{onErrorCallback:function(e){var n=e.error,t=n.errors,o=n.exception,i=n.message,r=n.type,l=e.response;return m.Am.error((null===t||void 0===t?void 0:t.error)||o||i,{position:m.Am.POSITION.BOTTOM_RIGHT,toastId:r}),Se({errors:t,response:l})}}}),[]),Te=(0,x.Db)(P.ZP.global_hooks.useCreate(),{onSuccess:function(e){return(0,U.wD)(e,X({callback:function(e){var n=e.global_hook;pe.replace("/global-hooks/".concat(n.uuid,"?operation_type=").concat(n.operation_type,"&resource_type=").concat(n.resource_type))}},Pe))}}),Ie=(0,p.Z)(Te,2),we=Ie[0],De=Ie[1].isLoading,Le=(0,x.Db)(P.ZP.global_hooks.useUpdate(null===Ee||void 0===Ee?void 0:Ee.uuid,Ce),{onSuccess:function(e){return(0,U.wD)(e,X({callback:function(e){var n=e.global_hook;Qe((function(e){return X(X({},e),n)})),m.Am.success("Global hook changes successfully saved.",{position:m.Am.POSITION.BOTTOM_RIGHT,toastId:"global-hooks-success-".concat(n.uuid)})}},Pe))}}),Ne=(0,p.Z)(Le,2),Me=Ne[0],Be=Ne[1].isLoading,He=(0,x.Db)((function(e){var n=e.pipeline;return P.ZP.global_hooks.useUpdate(null===Ee||void 0===Ee?void 0:Ee.uuid,Ce)({global_hook:{pipeline:n,snapshot:1}})}),{onSuccess:function(e){return(0,U.wD)(e,X({callback:function(e){var n=e.global_hook;Qe((function(e){return X(X({},e),{},{metadata:X(X({},null===e||void 0===e?void 0:e.metadata),null===n||void 0===n?void 0:n.metadata),pipeline:X(X({},null===e||void 0===e?void 0:e.pipeline),null===n||void 0===n?void 0:n.pipeline)})})),m.Am.success("Snapshot successfully created.",{position:m.Am.POSITION.BOTTOM_RIGHT,toastId:"global-hooks-snapshot-success-".concat(n.uuid)})}},Pe))}}),Ue=(0,p.Z)(He,2),We=Ue[0],Fe=Ue[1].isLoading,Ke=(0,x.Db)(P.ZP.global_hooks.useDelete(null===Ee||void 0===Ee?void 0:Ee.uuid,Ce),{onSuccess:function(e){return(0,U.wD)(e,X({callback:function(e){var n=e.global_hook;m.Am.success("Global hook changes successfully saved.",{position:m.Am.POSITION.BOTTOM_RIGHT,toastId:"global-hooks-success-".concat(n.uuid)}),pe.replace("/global-hooks")}},Pe))}}),ze=(0,p.Z)(Ke,2),Xe=ze[0],Ye=ze[1].isLoading,Ge=P.ZP.pipelines.list().data,Ve=(0,b.useMemo)((function(){return(0,H.YC)((null===Ge||void 0===Ge?void 0:Ge.pipelines)||[],(function(e){return e.name}))}),[Ge]),qe=(0,b.useMemo)((function(){return(0,H.HK)(Ve||[],(function(e){return e.uuid}))}),[Ve]),Qe=(0,b.useCallback)((function(e){be(e),je(!0)}),[be,je]);(0,b.useEffect)((function(){Ee&&!me&&be(Ee)}),[me,Ee,be]);var Je=(0,b.useMemo)((function(){return null!==me&&void 0!==me&&me.operation_type&&null!==me&&void 0!==me&&me.resource_type?"".concat((0,D.vg)(null===me||void 0===me?void 0:me.operation_type)," ").concat(null===me||void 0===me?void 0:me.resource_type," operation"):null!==me&&void 0!==me&&me.resource_type?"".concat(null===me||void 0===me?void 0:me.resource_type," operation"):null!==me&&void 0!==me&&me.operation_type?"".concat(null===me||void 0===me?void 0:me.operation_type," operation"):"operation"}),[me]),$e=(0,b.useMemo)((function(){var e;return null===qe||void 0===qe?void 0:qe[null===me||void 0===me||null===(e=me.pipeline)||void 0===e?void 0:e.uuid]}),[me,qe]),en=(0,b.useMemo)((function(){return(null===$e||void 0===$e?void 0:$e.blocks)||[]}),[$e]),nn=(0,b.useMemo)((function(){return(0,H.HK)(en||[],(function(e){return e.uuid}))}),[en]),tn=(0,b.useMemo)((function(){return(null===me||void 0===me?void 0:me.outputs)||[]}),[me]),on=(0,b.useCallback)((function(e,n){var t=(0,s.Z)(tn||[]);t[n]=e,Qe((function(e){return X(X({},e),{},{outputs:t})}))}),[tn,Qe]),rn=(0,b.useMemo)((function(){return(0,K.jsx)(A.ZP,{beforeIcon:(0,K.jsx)(T.mm,{}),compact:(null===tn||void 0===tn?void 0:tn.length)>=1,small:(null===tn||void 0===tn?void 0:tn.length)>=1,onClick:function(){return Qe((function(e){return X(X({},e),{},{outputs:((null===e||void 0===e?void 0:e.outputs)||[]).concat({block:{uuid:null},key:u.PAYLOAD})})}))},secondary:!0,children:"Add block output"})}),[tn,Qe]),ln=(0,b.useMemo)((function(){return null===tn||void 0===tn?void 0:tn.map((function(e,n){var t,o,i=e.block,r=e.key,l=e.keyMore,d=e.keys,c=null===nn||void 0===nn?void 0:nn[null===i||void 0===i?void 0:i.uuid];return o=c?(0,K.jsx)(v(),{as:"/pipelines/".concat(null===$e||void 0===$e?void 0:$e.uuid,"/edit?block_uuid=").concat(null===c||void 0===c?void 0:c.uuid),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,K.jsx)(S.Z,{block:!0,openNewWindow:!0,children:(0,K.jsx)(E.ZP,{color:(0,N.qn)(null===c||void 0===c?void 0:c.type,{blockColor:null===c||void 0===c?void 0:c.color,theme:ve}).accent,monospace:!0,children:(null===c||void 0===c?void 0:c.uuid)||"[select a block]"})})}):(0,K.jsx)(E.ZP,{default:!0,monospace:!0,children:(null===c||void 0===c?void 0:c.uuid)||(null===i||void 0===i?void 0:i.uuid)||"[select a block]"}),(0,K.jsxs)(Z.Z,{noBorderRadius:!0,noPaddingContent:!0,title:(0,K.jsxs)(O.ZP,{alignItems:"center",children:[o,(0,K.jsx)(R.Z,{mr:1}),(0,K.jsx)(T.Kw,{muted:!0}),(0,K.jsx)(R.Z,{mr:1}),(0,K.jsxs)(E.ZP,{default:!0,monospace:!0,children:[r||"{object}",(null===d||void 0===d?void 0:d.length)>=1&&(null===d||void 0===d?void 0:d.map((function(e){return(0,K.jsxs)(E.ZP,{default:!0,inline:!0,monospace:!0,children:["['",e,"']"]})})))]})]}),titleXPadding:w.cd*w.iI,titleYPadding:w.cd*w.iI,children:[(0,K.jsx)(C.S,{title:"Block to extract data from",description:"The output data from this block will be merged into the ".concat(Je,"\u2019s data."),selectInput:{monospace:!0,onChange:function(t){return on(X(X({},e),{},{block:X(X({},c),{},{uuid:t.target.value})}),n)},options:null===en||void 0===en?void 0:en.map((function(e){return{label:e.name,value:e.uuid}})),placeholder:"Select a block",value:null===c||void 0===c?void 0:c.uuid}},"block-uuid-".concat(n)),(0,K.jsx)(C.S,{title:"Object to merge block output data into",description:"Select the ".concat(Je," object to merge the block output data into."),selectInput:{monospace:!0,onChange:function(t){return on(X(X({},e),{},{key:t.target.value}),n)},options:null===(t=Object.values(u))||void 0===t?void 0:t.map((function(e){return{label:e,value:e}})),placeholder:"Select an object",value:r}},"key-".concat(n)),(0,K.jsxs)(C.S,{title:"Additional dictionary keys",description:(0,K.jsxs)(E.ZP,{muted:!0,small:!0,children:["If there is a nested object or value in the $",Je," data that you want to merge the block output data into,",(0,K.jsx)("br",{}),"use these additional keys to instruct the hook on how nested you want to merge the block output data."]}),textInput:{fullWidth:!1,monospace:!0,placeholder:"optional",onChange:function(t){return on(X(X({},e),{},{keyMore:t.target.value}),n)},value:l},children:[null===d||void 0===d?void 0:d.map((function(t){return(0,K.jsx)(R.Z,{ml:1,children:(0,K.jsx)(k.Z,{border:!0,label:t,monospace:!0,onClick:function(){on(X(X({},e),{},{keys:(d||[]).filter((function(e){return e!==t}))}),n)}})},"keys-".concat(n,"-").concat(t))})),(null===d||void 0===d?void 0:d.length)>=1&&(0,K.jsx)(R.Z,{mr:w.cd}),l&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(A.ZP,{compact:!0,small:!0,onClick:function(){on(X(X({},e),{},{keyMore:"",keys:(d||[]).concat(l)}),n)},children:["Add key ",l]}),(0,K.jsx)(R.Z,{mr:w.cd})]})]},"keys-".concat(n))]})}))}),[en,nn,tn,$e,on]),dn=(0,b.useMemo)((function(){return(0,B.GL)(me||{},["conditions","operation_type","outputs","pipeline","predicates","resource_type","run_settings","stages","strategies"])}),[me]),cn=(0,b.useMemo)((function(){return(null===me||void 0===me?void 0:me.metadata)||{created_at:null,snapshot_hash:null,snapshot_valid:!1,snapshotted_at:null,updated_at:null,user:{id:null}}}),[me]);return(0,K.jsxs)(R.Z,{mb:8,p:w.cd,children:[(0,K.jsxs)(C.Z,{title:"What to run hook for",children:[(0,K.jsx)(C.S,{description:"This hook\u2019s UUID must be unique across all hooks for the same resource type and operation type.",invalid:ye&&!(null!==me&&void 0!==me&&me.uuid),textInput:de?{monospace:!0,onChange:function(e){return Qe((function(n){return X(X({},n),{},{uuid:e.target.value})}))},placeholder:"e.g. bootstrap pipeline blocks",value:null===me||void 0===me?void 0:me.uuid}:null,title:"Hook UUID",children:!de&&(0,K.jsx)(R.Z,{px:w.cd,children:(0,K.jsx)(E.ZP,{large:!0,monospace:!0,children:ae})})}),(0,K.jsx)(C.S,{description:"Select the resource this hook should be attached to.",invalid:ye&&!(null!==me&&void 0!==me&&me.resource_type),selectInput:{monospace:!0,onChange:function(e){return Qe((function(n){return X(X({},n),{},{resource_type:e.target.value})}))},options:null===me||void 0===me||null===(n=me.resource_types)||void 0===n?void 0:n.map((function(e){return{label:(0,D.j3)(e),value:e}})),placeholder:"e.g. Pipeline",value:null===me||void 0===me?void 0:me.resource_type},title:"Resource type"}),(0,K.jsx)(C.S,{description:"When a specific operation occurs for a given resource, this hook will be invoked for that specific operation on the configured resource.",invalid:ye&&!(null!==me&&void 0!==me&&me.operation_type),selectInput:{monospace:!0,onChange:function(e){return Qe((function(n){return X(X({},n),{},{operation_type:e.target.value})}))},options:null===me||void 0===me||null===(t=me.operation_types)||void 0===t?void 0:t.map((function(e){return{label:(0,D.vg)(e),value:e}})),placeholder:"e.g. Update",value:null===me||void 0===me?void 0:me.operation_type},title:"Operation type"})]}),!de&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(R.Z,{mb:w.cd}),(0,K.jsxs)(C.Z,{title:"When to run hook",children:[(0,K.jsx)(C.S,{title:"Before operation starts",description:"If enabled, this hook will be invoked before the ".concat(Je," starts."),toggleSwitch:{checked:null===me||void 0===me||null===(o=me.stages)||void 0===o?void 0:o.includes(c.BEFORE),onCheck:function(e){return Qe((function(n){var t,o;return X(X({},n),{},{stages:e(null===n||void 0===n||null===(t=n.stages)||void 0===t?void 0:t.includes(c.BEFORE))?Array.from(r(Set,[((null===n||void 0===n?void 0:n.stages)||[]).concat(c.BEFORE)])):(null===n||void 0===n||null===(o=n.stages)||void 0===o?void 0:o.filter((function(e){return e!==c.BEFORE})))||[]})}))}}}),(0,K.jsx)(C.S,{title:"After operation completes",description:"If enabled, this hook will be invoked after the ".concat(Je," ends."),toggleSwitch:{checked:null===me||void 0===me||null===(i=me.stages)||void 0===i?void 0:i.includes(c.AFTER),onCheck:function(e){return Qe((function(n){var t,o;return X(X({},n),{},{stages:e(null===n||void 0===n||null===(t=n.stages)||void 0===t?void 0:t.includes(c.AFTER))?Array.from(r(Set,[((null===n||void 0===n?void 0:n.stages)||[]).concat(c.AFTER)])):(null===n||void 0===n||null===(o=n.stages)||void 0===o?void 0:o.filter((function(e){return e!==c.AFTER})))||[]})}))}}}),(0,K.jsx)(C.S,{title:"Run if ".concat(Je," succeeds"),description:"If enabled, this hook will be invoked if the ".concat(Je," is successful and doesn\u2019t error."),toggleSwitch:{checked:null===me||void 0===me||null===(l=me.conditions)||void 0===l?void 0:l.includes(a.SUCCESS),onCheck:function(e){return Qe((function(n){var t,o;return X(X({},n),{},{conditions:e(null===n||void 0===n||null===(t=n.conditions)||void 0===t?void 0:t.includes(a.SUCCESS))?Array.from(r(Set,[((null===n||void 0===n?void 0:n.conditions)||[]).concat(a.SUCCESS)])):(null===n||void 0===n||null===(o=n.conditions)||void 0===o?void 0:o.filter((function(e){return e!==a.SUCCESS})))||[]})}))}}}),(0,K.jsx)(C.S,{title:"Run if ".concat(Je," fails"),description:"If enabled, this hook will be invoked if the ".concat(Je," fails with an error."),toggleSwitch:{checked:null===me||void 0===me||null===(h=me.conditions)||void 0===h?void 0:h.includes(a.FAILURE),onCheck:function(e){return Qe((function(n){var t,o;return X(X({},n),{},{conditions:e(null===n||void 0===n||null===(t=n.conditions)||void 0===t?void 0:t.includes(a.FAILURE))?Array.from(r(Set,[((null===n||void 0===n?void 0:n.conditions)||[]).concat(a.FAILURE)])):(null===n||void 0===n||null===(o=n.conditions)||void 0===o?void 0:o.filter((function(e){return e!==a.FAILURE})))||[]})}))}}})]}),(0,K.jsx)(R.Z,{mb:w.cd}),(0,K.jsxs)(C.Z,{title:"Code to run",description:"When the current hook gets triggered, it will execute the associated pipeline.",children:[(0,K.jsx)(C.S,{title:"Pipeline to execute",description:"Select a pipeline that will be executed every time this hook is triggered.",invalid:ye&&!(null!==me&&void 0!==me&&null!==(f=me.pipeline)&&void 0!==f&&f.uuid),selectInput:{monospace:!0,onChange:function(e){return Qe((function(n){return X(X({},n),{},{pipeline:X(X({},null===n||void 0===n?void 0:n.pipeline),{},{uuid:e.target.value})})}))},options:null===Ve||void 0===Ve?void 0:Ve.map((function(e){var n=e.name,t=e.uuid;return{label:n||t,value:t}})),placeholder:"Select a pipeline",value:null===me||void 0===me||null===(z=me.pipeline)||void 0===z?void 0:z.uuid}}),(0,K.jsxs)(C.S,{title:null===me||void 0===me||null===(Y=me.pipeline)||void 0===Y||!Y.uuid||null!==cn&&void 0!==cn&&cn.snapshot_hash||null!==cn&&void 0!==cn&&cn.snapshot_valid?"Valid code snapshot":"Code snapshot hasn\u2019t been created yet",description:(0,K.jsx)(K.Fragment,{children:(0,K.jsxs)(E.ZP,{muted:!0,small:!0,children:["Take a snapshot of ",null!==me&&void 0!==me&&null!==(G=me.pipeline)&&void 0!==G&&G.uuid?(0,K.jsx)(E.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:null===me||void 0===me||null===(V=me.pipeline)||void 0===V?void 0:V.uuid}):"the associated pipeline","\u2019s code. The snapshot is used to validate the hook before it runs.",(0,K.jsx)("br",{}),"A hook cannot run if ",null!==me&&void 0!==me&&null!==(q=me.pipeline)&&void 0!==q&&q.uuid?(0,K.jsx)(E.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:null===me||void 0===me||null===(Q=me.pipeline)||void 0===Q?void 0:Q.uuid}):"the associated pipeline","\u2019s code has changed after the most recent snapshot has been made.",(0,K.jsx)("br",{}),"If the code changes, a new snapshot must be created."]})}),invalid:(null===me||void 0===me||null===(J=me.pipeline)||void 0===J?void 0:J.uuid)&&(null===cn||void 0===cn?void 0:cn.snapshot_hash)&&!(null!==cn&&void 0!==cn&&cn.snapshot_valid),warning:(null===me||void 0===me||null===($=me.pipeline)||void 0===$?void 0:$.uuid)&&!(null!==cn&&void 0!==cn&&cn.snapshot_hash)&&!(null!==cn&&void 0!==cn&&cn.snapshot_valid),children:[!(null!==cn&&void 0!==cn&&cn.snapshot_hash)&&(0,K.jsx)(E.ZP,{default:!0,large:!0,children:null!==me&&void 0!==me&&null!==(ee=me.pipeline)&&void 0!==ee&&ee.uuid?"No snapshot has been created":"Select a pipeline before taking a snapshot"}),(null===cn||void 0===cn?void 0:cn.snapshot_hash)&&(0,K.jsx)(O.ZP,{flexDirection:"column",children:(0,K.jsx)(E.ZP,{danger:!(null!==cn&&void 0!==cn&&cn.snapshot_valid),large:!0,rightAligned:!0,success:null===cn||void 0===cn?void 0:cn.snapshot_valid,children:null!==cn&&void 0!==cn&&cn.snapshot_valid?"Snapshot valid":"Snapshot outdated"})})]}),(0,K.jsx)(R.Z,{p:w.cd,children:(0,K.jsx)(O.ZP,{alignItems:"center",justifyContent:"flex-end",children:(0,K.jsxs)(O.ZP,{alignItems:"center",children:[(null===cn||void 0===cn?void 0:cn.snapshotted_at)&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(E.ZP,{muted:!0,rightAligned:!0,small:!0,children:["Last snapshot at ",(0,K.jsx)(E.ZP,{inline:!0,muted:!0,small:!0,monospace:!0,children:null===cn||void 0===cn?void 0:cn.snapshotted_at})]}),(0,K.jsx)(R.Z,{mr:w.cd})]}),(0,K.jsx)(A.ZP,{disabled:!(null!==me&&void 0!==me&&null!==(ne=me.pipeline)&&void 0!==ne&&ne.uuid),loading:Fe,onClick:function(){return We({pipeline:null===me||void 0===me?void 0:me.pipeline})},primary:!(null!==cn&&void 0!==cn&&cn.snapshot_valid),secondary:null===cn||void 0===cn?void 0:cn.snapshot_valid,children:null!==cn&&void 0!==cn&&cn.snapshot_hash?null!==cn&&void 0!==cn&&cn.snapshot_valid?"Update snapshot even though it\u2019s valid":"Update snapshot to make it valid":"Create snapshot of code"})]})})})]}),(0,K.jsx)(R.Z,{mb:w.cd}),(0,K.jsxs)(C.Z,{title:"How to run hook",children:[(0,K.jsx)(C.S,{title:"Stop operation if hook fails",description:"If enabled, the ".concat(Je," will be cancelled and an error will be raised."),toggleSwitch:{checked:null===me||void 0===me||null===(te=me.strategies)||void 0===te?void 0:te.includes(d.RAISE),onCheck:function(e){return Qe((function(n){var t,o;return X(X({},n),{},{strategies:e(null===n||void 0===n||null===(t=n.strategies)||void 0===t?void 0:t.includes(d.RAISE))?Array.from(r(Set,[((null===n||void 0===n?void 0:n.strategies)||[]).concat(d.RAISE)])):(null===n||void 0===n||null===(o=n.strategies)||void 0===o?void 0:o.filter((function(e){return e!==d.RAISE})))||[]})}))}}}),(0,K.jsx)(C.S,{title:"Execute hook with history and logging",description:(0,K.jsxs)(E.ZP,{muted:!0,small:!0,children:["If enabled, anytime this hook is executed an associated pipeline run and block runs will be created.",(0,K.jsx)("br",{}),"This will provide a history of the hook execution as well as logging for observability.",(0,K.jsx)("br",{}),"However, this will have a significant impact on the ",Je," resolution time.",(0,K.jsx)("br",{}),"This may cause very delayed API responsed and a degraded devloper experience."]}),toggleSwitch:{checked:!(null===me||void 0===me||null===(oe=me.run_settings)||void 0===oe||!oe.with_trigger),onCheck:function(e){return Qe((function(n){var t;return X(X({},n),{},{run_settings:X(X({},null===n||void 0===n?void 0:n.run_settings),{},{with_trigger:e(null===n||void 0===n||null===(t=n.run_settings)||void 0===t?void 0:t.with_trigger)})})}))}}})]}),(0,K.jsx)(R.Z,{mb:w.cd}),(0,K.jsxs)(C.Z,{title:"Block outputs ".concat((null===tn||void 0===tn?void 0:tn.length)>=1?"(".concat((null===tn||void 0===tn?void 0:tn.length)||0,")"):""),description:(0,K.jsx)(R.Z,{mt:1,children:(0,K.jsxs)(E.ZP,{muted:!0,children:["When a hook runs and executes a pipeline, the output from the pipeline\u2019s blocks",(0,K.jsx)("br",{}),"can optionally be used to mutate the ",Je," input and output data."]})}),headerChildren:(null===tn||void 0===tn?void 0:tn.length)>=1&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(R.Z,{ml:w.cd}),rn]}),children:[!(null!==tn&&void 0!==tn&&tn.length)&&(0,K.jsx)(R.Z,{p:w.cd,children:rn}),(null===tn||void 0===tn?void 0:tn.length)>=1&&(0,K.jsx)(j.Z,{noBorder:!0,noBoxShadow:!0,children:ln})]}),(0,K.jsx)(R.Z,{mb:w.cd}),(0,K.jsxs)(C.Z,{title:"Metadata",children:[(0,K.jsx)(C.S,{title:"Last updated",children:(0,K.jsxs)(_.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,K.jsx)(E.ZP,{large:!0,monospace:!0,muted:!0,children:null!==cn&&void 0!==cn&&cn.updated_at?(0,L.XG)(null===cn||void 0===cn?void 0:cn.updated_at,se):"-"}),(0,K.jsx)(R.Z,{mr:w.cd}),(0,K.jsx)(T.Pf,{muted:!0,size:I.Z}),(0,K.jsx)(R.Z,{mr:1})]})}),(0,K.jsx)(C.S,{title:"Created at",children:(0,K.jsxs)(_.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,K.jsx)(E.ZP,{large:!0,monospace:!0,muted:!0,children:null!==cn&&void 0!==cn&&cn.created_at?(0,L.XG)(null===cn||void 0===cn?void 0:cn.created_at,se):"-"}),(0,K.jsx)(R.Z,{mr:w.cd}),(0,K.jsx)(T.Pf,{muted:!0,size:I.Z}),(0,K.jsx)(R.Z,{mr:1})]})}),(0,K.jsx)(C.S,{title:"Snapshotted at",children:(0,K.jsxs)(_.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,K.jsx)(E.ZP,{large:!0,monospace:!0,muted:!0,children:null!==cn&&void 0!==cn&&cn.snapshotted_at?(0,L.XG)(null===cn||void 0===cn?void 0:cn.snapshotted_at,se):"-"}),(0,K.jsx)(R.Z,{mr:w.cd}),(0,K.jsx)(T.Pf,{muted:!0,size:I.Z}),(0,K.jsx)(R.Z,{mr:1})]})}),(0,K.jsx)(C.S,{title:"Snapshot valid",children:(0,K.jsxs)(_.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,K.jsx)(E.ZP,{large:!0,danger:!(null!==cn&&void 0!==cn&&cn.snapshot_valid),muted:null===cn||void 0===cn?void 0:cn.snapshot_valid,children:null!==cn&&void 0!==cn&&cn.snapshot_valid?"Valid":"Hook won\u2019t run until snapshot is valid"}),(0,K.jsx)(R.Z,{mr:w.cd}),null!==cn&&void 0!==cn&&cn.snapshot_valid?(0,K.jsx)(T.Jr,{size:I.Z,success:!0}):(0,K.jsx)(T.uy,{danger:!0,size:I.Z}),(0,K.jsx)(R.Z,{mr:1})]})}),(0,K.jsx)(C.S,{title:"Created by",children:(0,K.jsxs)(_.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,K.jsx)(E.ZP,{large:!0,monospace:!0,muted:!0,children:null!==cn&&void 0!==cn&&null!==(ie=cn.user)&&void 0!==ie&&ie.id?String(null===cn||void 0===cn||null===(re=cn.user)||void 0===re?void 0:re.id)===String(null===he||void 0===he?void 0:he.id)?"You created this hook":"User ID ".concat(null===cn||void 0===cn||null===(le=cn.user)||void 0===le?void 0:le.id):"-"}),(0,K.jsx)(R.Z,{mr:w.cd}),(0,K.jsx)(T.SC,{muted:!0,size:I.Z}),(0,K.jsx)(R.Z,{mr:1})]})})]})]}),(0,K.jsx)(R.Z,{mt:w.HN,children:(0,K.jsxs)(O.ZP,{alignItems:"center",justifyContent:"space-between",children:[!de&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(A.ZP,{compact:!0,danger:!0,loading:Ye,onClick:function(){window.confirm("Are you sure you wantt to delete this hook?")&&Xe()},small:!0,children:"Delete global hook"}),(0,K.jsx)(R.Z,{mr:w.cd})]}),(0,K.jsxs)(_.Z,{flex:1,justifyContent:"flex-end",children:[(0,K.jsx)(A.ZP,{beforeIcon:(0,K.jsx)(T.Hd,{}),disabled:De||Be||Ye,onClick:function(){return pe.push("/global-hooks")},secondary:!0,children:ye?"Cancel changes & go back":"Go back to all hooks"}),(0,K.jsx)(R.Z,{mr:w.cd}),(0,K.jsx)(A.ZP,{beforeIcon:(0,K.jsx)(T.vc,{}),disabled:Ye,loading:De||Be,onClick:function(){return(de?we:Me)({global_hook:X(X({},dn),de?{uuid:null===me||void 0===me?void 0:me.uuid}:{})})},primary:!0,children:de?"Create new global hook":"Save changes"})]})]})})]})}},70320:function(e,n,t){t.d(n,{h:function(){return l},q:function(){return r}});var o=t(78419),i=t(53808);function r(){return(0,i.U2)(o.am,null)||!1}function l(e){return"undefined"!==typeof e&&(0,i.t8)(o.am,e),e}},57114:function(e,n,t){t.d(n,{S:function(){return j},Z:function(){return Z}});var o=t(82684),i=t(15338),r=t(97618),l=t(55485),d=t(85854),c=t(65956),u=t(82394),a=t(44085),s=t(38276),h=t(30160),p=t(17488),f=t(69650),v=t(72473),g=t(8193),m=t(70515),b=t(28598);function x(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function y(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?x(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var j=function(e){var n,t=e.children,o=e.description,i=e.invalid,d=e.selectInput,c=e.textInput,u=e.title,x=e.toggleSwitch,j=e.warning;return(0,b.jsx)(s.Z,{p:m.cd,children:(0,b.jsxs)(l.ZP,{alignItems:"center",children:[(0,b.jsxs)(l.ZP,{flexDirection:"column",children:[(0,b.jsxs)(h.ZP,{danger:i,default:!0,large:!0,warning:j,children:[u," ",i&&(0,b.jsx)(h.ZP,{danger:!0,inline:!0,large:!0,children:"is required"})]}),o&&"string"===typeof o&&(0,b.jsx)(h.ZP,{muted:!0,small:!0,children:o}),o&&"string"!==typeof o&&o]}),(0,b.jsx)(s.Z,{mr:m.cd}),(0,b.jsxs)(r.Z,{flex:1,justifyContent:"flex-end",children:[t,c&&(0,b.jsx)(p.Z,y({afterIcon:(0,b.jsx)(v.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:g.Z,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,paddingHorizontal:0,paddingVertical:0,setContentOnMount:!0},c)),d&&(0,b.jsx)(a.Z,y(y({},d),{},{afterIcon:(0,b.jsx)(v._M,{}),afterIconSize:g.Z,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,paddingHorizontal:0,paddingVertical:0,setContentOnMount:!0,children:null===d||void 0===d||null===(n=d.options)||void 0===n?void 0:n.map((function(e){var n=e.label,t=e.value;return(0,b.jsx)("option",{value:t,children:n||t},t)}))})),x&&(0,b.jsx)(f.Z,{checked:!(null===x||void 0===x||!x.checked),compact:!0,onCheck:null===x||void 0===x?void 0:x.onCheck})]})]})})},Z=function(e){var n=e.children,t=e.description,u=e.headerChildren,a=e.title;return(0,b.jsxs)(c.Z,{noPadding:!0,children:[(0,b.jsx)(s.Z,{p:m.cd,children:(0,b.jsxs)(l.ZP,{alignItems:"center",children:[(0,b.jsxs)(r.Z,{flex:1,flexDirection:"column",children:[(0,b.jsx)(d.Z,{level:4,children:a}),t&&"string"===typeof t&&(0,b.jsx)(s.Z,{mt:1,children:(0,b.jsx)(h.ZP,{muted:!0,children:t})}),t&&"string"!==typeof t&&t]}),u]})}),o.Children.map(n,(function(e,n){return(0,b.jsxs)("div",{children:[(0,b.jsx)(i.Z,{light:!0}),e]},"".concat(a,"-").concat(n))}))]})}},8193:function(e,n,t){t.d(n,{N:function(){return c},Z:function(){return d}});var o=t(38626),i=t(44897),r=t(42631),l=t(70515),d=2*l.iI,c=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1ck7mzt-0"})(["border-radius:","px;padding:","px;",""],r.n_,l.cd*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).codeArea,";\n ")}))},44425:function(e,n,t){t.d(n,{$W:function(){return m},DA:function(){return v},HX:function(){return j},J8:function(){return y},L8:function(){return d},LE:function(){return h},Lk:function(){return k},Lq:function(){return p},M5:function(){return f},Q3:function(){return b},Qj:function(){return Z},Ut:function(){return S},V4:function(){return O},VZ:function(){return x},dO:function(){return s},f2:function(){return _},iZ:function(){return A},t6:function(){return c},tf:function(){return a}});var o,i,r,l,d,c,u=t(82394);!function(e){e.CONDITION="condition",e.DBT_SNAPSHOT="snapshot",e.DYNAMIC="dynamic",e.DYNAMIC_CHILD="dynamic_child",e.REDUCE_OUTPUT="reduce_output",e.REPLICA="replica"}(d||(d={})),function(e){e.MARKDOWN="markdown",e.PYTHON="python",e.R="r",e.SQL="sql",e.YAML="yaml"}(c||(c={}));var a,s=(o={},(0,u.Z)(o,c.MARKDOWN,"MD"),(0,u.Z)(o,c.PYTHON,"PY"),(0,u.Z)(o,c.R,"R"),(0,u.Z)(o,c.SQL,"SQL"),(0,u.Z)(o,c.YAML,"YAML"),o),h=(i={},(0,u.Z)(i,c.MARKDOWN,"Markdown"),(0,u.Z)(i,c.PYTHON,"Python"),(0,u.Z)(i,c.R,"R"),(0,u.Z)(i,c.SQL,"SQL"),(0,u.Z)(i,c.YAML,"YAML"),i);!function(e){e.CALLBACK="callback",e.CHART="chart",e.CONDITIONAL="conditional",e.CUSTOM="custom",e.DATA_EXPORTER="data_exporter",e.DATA_LOADER="data_loader",e.DBT="dbt",e.EXTENSION="extension",e.GLOBAL_DATA_PRODUCT="global_data_product",e.SCRATCHPAD="scratchpad",e.SENSOR="sensor",e.MARKDOWN="markdown",e.TRANSFORMER="transformer"}(a||(a={}));var p,f=[a.CALLBACK,a.CONDITIONAL,a.EXTENSION];!function(e){e.BLUE="blue",e.GREY="grey",e.PINK="pink",e.PURPLE="purple",e.TEAL="teal",e.YELLOW="yellow"}(p||(p={}));var v,g,m=[a.CHART,a.CUSTOM,a.DATA_EXPORTER,a.DATA_LOADER,a.SCRATCHPAD,a.SENSOR,a.MARKDOWN,a.TRANSFORMER],b=[a.CUSTOM,a.DATA_EXPORTER,a.DATA_LOADER,a.SCRATCHPAD,a.SENSOR,a.MARKDOWN,a.TRANSFORMER],x=[a.DATA_EXPORTER,a.DATA_LOADER],y=[a.DATA_EXPORTER,a.DATA_LOADER,a.TRANSFORMER],j=[a.DATA_EXPORTER,a.DATA_LOADER,a.DBT,a.TRANSFORMER],Z=[a.CHART,a.SCRATCHPAD,a.SENSOR,a.MARKDOWN],A=[a.CALLBACK,a.CHART,a.EXTENSION,a.SCRATCHPAD,a.MARKDOWN],k=[a.CUSTOM,a.DATA_EXPORTER,a.DATA_LOADER,a.SENSOR,a.TRANSFORMER];!function(e){e.EXECUTED="executed",e.FAILED="failed",e.NOT_EXECUTED="not_executed",e.UPDATED="updated"}(v||(v={})),function(e){e.BLOCK_FILE="block_file",e.CUSTOM_BLOCK_TEMPLATE="custom_block_template",e.MAGE_TEMPLATE="mage_template"}(g||(g={}));var _=[a.CUSTOM,a.DATA_EXPORTER,a.DATA_LOADER,a.TRANSFORMER],O=(r={},(0,u.Z)(r,a.CALLBACK,"Callback"),(0,u.Z)(r,a.CHART,"Chart"),(0,u.Z)(r,a.CONDITIONAL,"Conditional"),(0,u.Z)(r,a.CUSTOM,"Custom"),(0,u.Z)(r,a.DATA_EXPORTER,"Data exporter"),(0,u.Z)(r,a.DATA_LOADER,"Data loader"),(0,u.Z)(r,a.DBT,"DBT"),(0,u.Z)(r,a.EXTENSION,"Extension"),(0,u.Z)(r,a.GLOBAL_DATA_PRODUCT,"Global data product"),(0,u.Z)(r,a.MARKDOWN,"Markdown"),(0,u.Z)(r,a.SCRATCHPAD,"Scratchpad"),(0,u.Z)(r,a.SENSOR,"Sensor"),(0,u.Z)(r,a.TRANSFORMER,"Transformer"),r),S=[a.DATA_LOADER,a.TRANSFORMER,a.DATA_EXPORTER,a.SENSOR];l={},(0,u.Z)(l,a.DATA_EXPORTER,"DE"),(0,u.Z)(l,a.DATA_LOADER,"DL"),(0,u.Z)(l,a.SCRATCHPAD,"SP"),(0,u.Z)(l,a.SENSOR,"SR"),(0,u.Z)(l,a.MARKDOWN,"MD"),(0,u.Z)(l,a.TRANSFORMER,"TF")},31882:function(e,n,t){var o=t(38626),i=t(71180),r=t(55485),l=t(30160),d=t(44897),c=t(72473),u=t(70515),a=t(61896),s=t(28598),h=o.default.div.withConfig({displayName:"Chip__ChipStyle",componentId:"sc-1ok73g-0"})(["display:inline-block;"," "," "," "," "," ",""],(function(e){return!e.primary&&"\n background-color: ".concat((e.theme.background||d.Z.background).tag,";\n ")}),(function(e){return e.primary&&"\n background-color: ".concat((e.theme.chart||d.Z.chart).primary,";\n ")}),(function(e){return!e.small&&"\n border-radius: ".concat((u.iI+a.Al)/2,"px;\n height: ").concat(1.5*u.iI+a.Al,"px;\n padding: ").concat(u.iI/1.5,"px ").concat(1.25*u.iI,"px;\n ")}),(function(e){return e.small&&"\n border-radius: ".concat((u.iI/2+a.Al)/2,"px;\n height: ").concat(a.Al+u.iI/2+2,"px;\n padding: ").concat(u.iI/4,"px ").concat(u.iI,"px;\n ")}),(function(e){return e.xsmall&&"\n border-radius: ".concat((u.iI/1+a.Al)/1,"px;\n height: ").concat(20,"px;\n padding: 4px 6px;\n ")}),(function(e){return e.border&&"\n border: 1px solid ".concat((e.theme.content||d.Z.content).muted,";\n ")}));n.Z=function(e){var n=e.border,t=e.children,o=e.disabled,d=e.label,a=e.monospace,p=e.onClick,f=e.primary,v=e.small,g=e.xsmall;return(0,s.jsx)(h,{border:n,primary:f,small:v,xsmall:g,children:(0,s.jsx)(i.ZP,{basic:!0,disabled:o,noBackground:!0,noPadding:!0,onClick:p,transparent:!0,children:(0,s.jsxs)(r.ZP,{alignItems:"center",children:[t,d&&(0,s.jsx)(l.ZP,{monospace:a,small:v,xsmall:g,children:d}),!o&&p&&(0,s.jsx)("div",{style:{marginLeft:2}}),!o&&p&&(0,s.jsx)(c.x8,{default:f,muted:!f,size:v?u.iI:1.25*u.iI})]})})})}},65956:function(e,n,t){var o=t(38626),i=t(55485),r=t(38276),l=t(30160),d=t(44897),c=t(42631),u=t(47041),a=t(70515),s=t(28598),h=(0,o.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*a.iI,1.5*a.iI,1.5*a.iI),p=o.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],c.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return!e.borderless&&"\n border: 1px solid ".concat((e.theme.interactive||d.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||d.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||d.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||d.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||d.Z.background).content,";\n ")}),(function(e){return!e.fullHeight&&"\n height: fit-content;\n "}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,"px;\n ")}),(function(e){return e.minWidth&&"\n min-width: ".concat(e.minWidth,"px;\n\n @media (max-width: ").concat(e.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(e){return e.borderless&&"\n border: none;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),f=o.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],c.n_,c.n_,(function(e){return"\n background-color: ".concat((e.theme.background||d.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||d.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),h,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),v=o.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*a.iI,u.w5,(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: calc(".concat(e.maxHeight," - ").concat(15*a.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),g=o.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],c.M8,c.YF,1.75*a.iI);n.Z=function(e){var n=e.borderless,t=e.children,o=e.containerRef,d=e.contentContainerRef,c=e.dark,u=e.footer,a=e.fullHeight,h=void 0===a||a,m=e.fullWidth,b=void 0===m||m,x=e.header,y=e.headerHeight,j=e.headerIcon,Z=e.headerPaddingVertical,A=e.headerTitle,k=e.maxHeight,_=e.maxWidth,O=e.minWidth,S=e.noPadding,C=e.overflowVisible,R=e.subtitle,E=e.success;return(0,s.jsxs)(p,{borderless:n,dark:c,fullHeight:h,fullWidth:b,maxHeight:k,maxWidth:_,minWidth:O,overflowVisible:C,ref:o,success:E,children:[(x||A)&&(0,s.jsxs)(f,{headerPaddingVertical:Z,height:y,children:[x&&x,A&&(0,s.jsx)(i.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,s.jsxs)(i.ZP,{alignItems:"center",children:[j&&j,(0,s.jsx)(r.Z,{ml:j?1:0,children:(0,s.jsx)(l.ZP,{bold:!0,default:!0,children:A})})]})})]}),(0,s.jsxs)(v,{maxHeight:k,noPadding:S,overflowVisible:C,ref:d,children:[R&&(0,s.jsx)(r.Z,{mb:2,children:(0,s.jsx)(l.ZP,{default:!0,children:R})}),t]}),u&&(0,s.jsx)(g,{children:u})]})}},80022:function(e,n,t){function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.d(n,{Z:function(){return o}})},15544:function(e,n,t){function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}t.d(n,{Z:function(){return o}})},13692:function(e,n,t){t.d(n,{Z:function(){return i}});var o=t(61049);function i(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&(0,o.Z)(e,n)}},93189:function(e,n,t){t.d(n,{Z:function(){return r}});var o=t(12539),i=t(80022);function r(e,n){if(n&&("object"===o(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}},61049:function(e,n,t){function o(e,n){return o=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},o(e,n)}t.d(n,{Z:function(){return o}})}}]);
|