@serverlessworkflow/sdk 1.0.1 → 1.0.3-alpha2
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.
- package/README.md +410 -368
- package/index.cjs +13457 -0
- package/index.cjs.map +1 -0
- package/index.d.cts +9319 -0
- package/index.d.cts.map +1 -0
- package/index.d.mts +9318 -0
- package/index.d.mts.map +1 -0
- package/index.mjs +13235 -0
- package/index.mjs.map +1 -0
- package/index.umd.js +23533 -0
- package/index.umd.js.map +1 -0
- package/index.umd.min.js +54 -0
- package/index.umd.min.js.map +1 -0
- package/package.json +63 -93
- package/rolldown-runtime.mjs +13 -0
- package/esm/index.esm.js +0 -31288
- package/esm/index.esm.js.map +0 -1
- package/esm/index.esm.min.js +0 -10
- package/esm/index.esm.min.js.map +0 -1
- package/index.d.ts +0 -2
- package/index.d.ts.map +0 -1
- package/lib/builder.d.ts +0 -49
- package/lib/builder.d.ts.map +0 -1
- package/lib/generated/builders/all-event-consumption-strategy-builder.d.ts +0 -14
- package/lib/generated/builders/all-event-consumption-strategy-builder.d.ts.map +0 -1
- package/lib/generated/builders/all-event-consumption-strategy-configuration-builder.d.ts +0 -14
- package/lib/generated/builders/all-event-consumption-strategy-configuration-builder.d.ts.map +0 -1
- package/lib/generated/builders/any-event-consumption-strategy-builder.d.ts +0 -14
- package/lib/generated/builders/any-event-consumption-strategy-builder.d.ts.map +0 -1
- package/lib/generated/builders/any-event-consumption-strategy-configuration-builder.d.ts +0 -14
- package/lib/generated/builders/any-event-consumption-strategy-configuration-builder.d.ts.map +0 -1
- package/lib/generated/builders/any-event-consumption-strategy-until-builder.d.ts +0 -14
- package/lib/generated/builders/any-event-consumption-strategy-until-builder.d.ts.map +0 -1
- package/lib/generated/builders/any-event-until-consumed-builder.d.ts +0 -14
- package/lib/generated/builders/any-event-until-consumed-builder.d.ts.map +0 -1
- package/lib/generated/builders/async-api-arguments-builder.d.ts +0 -14
- package/lib/generated/builders/async-api-arguments-builder.d.ts.map +0 -1
- package/lib/generated/builders/authentication-policy-builder.d.ts +0 -14
- package/lib/generated/builders/authentication-policy-builder.d.ts.map +0 -1
- package/lib/generated/builders/authentication-policy-reference-builder.d.ts +0 -14
- package/lib/generated/builders/authentication-policy-reference-builder.d.ts.map +0 -1
- package/lib/generated/builders/basic-authentication-policy-builder.d.ts +0 -14
- package/lib/generated/builders/basic-authentication-policy-builder.d.ts.map +0 -1
- package/lib/generated/builders/basic-authentication-policy-configuration-builder.d.ts +0 -14
- package/lib/generated/builders/basic-authentication-policy-configuration-builder.d.ts.map +0 -1
- package/lib/generated/builders/basic-authentication-properties-builder.d.ts +0 -14
- package/lib/generated/builders/basic-authentication-properties-builder.d.ts.map +0 -1
- package/lib/generated/builders/bearer-authentication-policy-builder.d.ts +0 -14
- package/lib/generated/builders/bearer-authentication-policy-builder.d.ts.map +0 -1
- package/lib/generated/builders/bearer-authentication-policy-configuration-builder.d.ts +0 -14
- package/lib/generated/builders/bearer-authentication-policy-configuration-builder.d.ts.map +0 -1
- package/lib/generated/builders/bearer-authentication-properties-builder.d.ts +0 -14
- package/lib/generated/builders/bearer-authentication-properties-builder.d.ts.map +0 -1
- package/lib/generated/builders/call-async-api-builder.d.ts +0 -14
- package/lib/generated/builders/call-async-api-builder.d.ts.map +0 -1
- package/lib/generated/builders/call-function-builder.d.ts +0 -14
- package/lib/generated/builders/call-function-builder.d.ts.map +0 -1
- package/lib/generated/builders/call-grpc-builder.d.ts +0 -14
- package/lib/generated/builders/call-grpc-builder.d.ts.map +0 -1
- package/lib/generated/builders/call-http-builder.d.ts +0 -14
- package/lib/generated/builders/call-http-builder.d.ts.map +0 -1
- package/lib/generated/builders/call-open-api-builder.d.ts +0 -14
- package/lib/generated/builders/call-open-api-builder.d.ts.map +0 -1
- package/lib/generated/builders/call-task-builder.d.ts +0 -14
- package/lib/generated/builders/call-task-builder.d.ts.map +0 -1
- package/lib/generated/builders/catalog-builder.d.ts +0 -14
- package/lib/generated/builders/catalog-builder.d.ts.map +0 -1
- package/lib/generated/builders/catch-errors-builder.d.ts +0 -14
- package/lib/generated/builders/catch-errors-builder.d.ts.map +0 -1
- package/lib/generated/builders/constant-backoff-builder.d.ts +0 -14
- package/lib/generated/builders/constant-backoff-builder.d.ts.map +0 -1
- package/lib/generated/builders/container-builder.d.ts +0 -14
- package/lib/generated/builders/container-builder.d.ts.map +0 -1
- package/lib/generated/builders/container-environment-builder.d.ts +0 -14
- package/lib/generated/builders/container-environment-builder.d.ts.map +0 -1
- package/lib/generated/builders/container-lifetime-builder.d.ts +0 -14
- package/lib/generated/builders/container-lifetime-builder.d.ts.map +0 -1
- package/lib/generated/builders/container-ports-builder.d.ts +0 -14
- package/lib/generated/builders/container-ports-builder.d.ts.map +0 -1
- package/lib/generated/builders/container-volumes-builder.d.ts +0 -14
- package/lib/generated/builders/container-volumes-builder.d.ts.map +0 -1
- package/lib/generated/builders/digest-authentication-policy-builder.d.ts +0 -14
- package/lib/generated/builders/digest-authentication-policy-builder.d.ts.map +0 -1
- package/lib/generated/builders/digest-authentication-policy-configuration-builder.d.ts +0 -14
- package/lib/generated/builders/digest-authentication-policy-configuration-builder.d.ts.map +0 -1
- package/lib/generated/builders/digest-authentication-properties-builder.d.ts +0 -14
- package/lib/generated/builders/digest-authentication-properties-builder.d.ts.map +0 -1
- package/lib/generated/builders/do-task-builder.d.ts +0 -14
- package/lib/generated/builders/do-task-builder.d.ts.map +0 -1
- package/lib/generated/builders/document-builder.d.ts +0 -14
- package/lib/generated/builders/document-builder.d.ts.map +0 -1
- package/lib/generated/builders/duration-builder.d.ts +0 -14
- package/lib/generated/builders/duration-builder.d.ts.map +0 -1
- package/lib/generated/builders/duration-inline-builder.d.ts +0 -14
- package/lib/generated/builders/duration-inline-builder.d.ts.map +0 -1
- package/lib/generated/builders/emit-event-definition-builder.d.ts +0 -14
- package/lib/generated/builders/emit-event-definition-builder.d.ts.map +0 -1
- package/lib/generated/builders/emit-event-with-builder.d.ts +0 -14
- package/lib/generated/builders/emit-event-with-builder.d.ts.map +0 -1
- package/lib/generated/builders/emit-task-builder.d.ts +0 -14
- package/lib/generated/builders/emit-task-builder.d.ts.map +0 -1
- package/lib/generated/builders/emit-task-configuration-builder.d.ts +0 -14
- package/lib/generated/builders/emit-task-configuration-builder.d.ts.map +0 -1
- package/lib/generated/builders/endpoint-builder.d.ts +0 -14
- package/lib/generated/builders/endpoint-builder.d.ts.map +0 -1
- package/lib/generated/builders/endpoint-configuration-builder.d.ts +0 -14
- package/lib/generated/builders/endpoint-configuration-builder.d.ts.map +0 -1
- package/lib/generated/builders/endpoint-uri-builder.d.ts +0 -14
- package/lib/generated/builders/endpoint-uri-builder.d.ts.map +0 -1
- package/lib/generated/builders/error-builder.d.ts +0 -14
- package/lib/generated/builders/error-builder.d.ts.map +0 -1
- package/lib/generated/builders/error-filter-builder.d.ts +0 -14
- package/lib/generated/builders/error-filter-builder.d.ts.map +0 -1
- package/lib/generated/builders/error-instance-builder.d.ts +0 -14
- package/lib/generated/builders/error-instance-builder.d.ts.map +0 -1
- package/lib/generated/builders/error-type-builder.d.ts +0 -14
- package/lib/generated/builders/error-type-builder.d.ts.map +0 -1
- package/lib/generated/builders/event-consumption-strategy-builder.d.ts +0 -14
- package/lib/generated/builders/event-consumption-strategy-builder.d.ts.map +0 -1
- package/lib/generated/builders/event-data-builder.d.ts +0 -14
- package/lib/generated/builders/event-data-builder.d.ts.map +0 -1
- package/lib/generated/builders/event-dataschema-builder.d.ts +0 -14
- package/lib/generated/builders/event-dataschema-builder.d.ts.map +0 -1
- package/lib/generated/builders/event-filter-builder.d.ts +0 -14
- package/lib/generated/builders/event-filter-builder.d.ts.map +0 -1
- package/lib/generated/builders/event-filter-correlate-builder.d.ts +0 -14
- package/lib/generated/builders/event-filter-correlate-builder.d.ts.map +0 -1
- package/lib/generated/builders/event-source-builder.d.ts +0 -14
- package/lib/generated/builders/event-source-builder.d.ts.map +0 -1
- package/lib/generated/builders/event-time-builder.d.ts +0 -14
- package/lib/generated/builders/event-time-builder.d.ts.map +0 -1
- package/lib/generated/builders/exponential-back-off-builder.d.ts +0 -14
- package/lib/generated/builders/exponential-back-off-builder.d.ts.map +0 -1
- package/lib/generated/builders/export-as-builder.d.ts +0 -14
- package/lib/generated/builders/export-as-builder.d.ts.map +0 -1
- package/lib/generated/builders/export-builder.d.ts +0 -14
- package/lib/generated/builders/export-builder.d.ts.map +0 -1
- package/lib/generated/builders/extension-builder.d.ts +0 -14
- package/lib/generated/builders/extension-builder.d.ts.map +0 -1
- package/lib/generated/builders/extension-item-builder.d.ts +0 -14
- package/lib/generated/builders/extension-item-builder.d.ts.map +0 -1
- package/lib/generated/builders/external-resource-builder.d.ts +0 -14
- package/lib/generated/builders/external-resource-builder.d.ts.map +0 -1
- package/lib/generated/builders/external-script-builder.d.ts +0 -14
- package/lib/generated/builders/external-script-builder.d.ts.map +0 -1
- package/lib/generated/builders/flow-directive-builder.d.ts +0 -14
- package/lib/generated/builders/flow-directive-builder.d.ts.map +0 -1
- package/lib/generated/builders/for-task-builder.d.ts +0 -14
- package/lib/generated/builders/for-task-builder.d.ts.map +0 -1
- package/lib/generated/builders/for-task-configuration-builder.d.ts +0 -14
- package/lib/generated/builders/for-task-configuration-builder.d.ts.map +0 -1
- package/lib/generated/builders/fork-task-builder.d.ts +0 -14
- package/lib/generated/builders/fork-task-builder.d.ts.map +0 -1
- package/lib/generated/builders/fork-task-configuration-builder.d.ts +0 -14
- package/lib/generated/builders/fork-task-configuration-builder.d.ts.map +0 -1
- package/lib/generated/builders/function-arguments-builder.d.ts +0 -14
- package/lib/generated/builders/function-arguments-builder.d.ts.map +0 -1
- package/lib/generated/builders/grpc-arguments-builder.d.ts +0 -14
- package/lib/generated/builders/grpc-arguments-builder.d.ts.map +0 -1
- package/lib/generated/builders/http-arguments-builder.d.ts +0 -14
- package/lib/generated/builders/http-arguments-builder.d.ts.map +0 -1
- package/lib/generated/builders/http-body-builder.d.ts +0 -14
- package/lib/generated/builders/http-body-builder.d.ts.map +0 -1
- package/lib/generated/builders/http-headers-builder.d.ts +0 -14
- package/lib/generated/builders/http-headers-builder.d.ts.map +0 -1
- package/lib/generated/builders/http-query-builder.d.ts +0 -14
- package/lib/generated/builders/http-query-builder.d.ts.map +0 -1
- package/lib/generated/builders/index.d.ts +0 -161
- package/lib/generated/builders/index.d.ts.map +0 -1
- package/lib/generated/builders/inline-script-builder.d.ts +0 -14
- package/lib/generated/builders/inline-script-builder.d.ts.map +0 -1
- package/lib/generated/builders/input-builder.d.ts +0 -14
- package/lib/generated/builders/input-builder.d.ts.map +0 -1
- package/lib/generated/builders/input-from-builder.d.ts +0 -14
- package/lib/generated/builders/input-from-builder.d.ts.map +0 -1
- package/lib/generated/builders/linear-backoff-builder.d.ts +0 -14
- package/lib/generated/builders/linear-backoff-builder.d.ts.map +0 -1
- package/lib/generated/builders/listen-task-builder.d.ts +0 -14
- package/lib/generated/builders/listen-task-builder.d.ts.map +0 -1
- package/lib/generated/builders/listen-task-configuration-builder.d.ts +0 -14
- package/lib/generated/builders/listen-task-configuration-builder.d.ts.map +0 -1
- package/lib/generated/builders/oauth2-autenthication-data-audiences-builder.d.ts +0 -14
- package/lib/generated/builders/oauth2-autenthication-data-audiences-builder.d.ts.map +0 -1
- package/lib/generated/builders/oauth2-autenthication-data-builder.d.ts +0 -14
- package/lib/generated/builders/oauth2-autenthication-data-builder.d.ts.map +0 -1
- package/lib/generated/builders/oauth2-autenthication-data-client-builder.d.ts +0 -14
- package/lib/generated/builders/oauth2-autenthication-data-client-builder.d.ts.map +0 -1
- package/lib/generated/builders/oauth2-autenthication-data-scopes-builder.d.ts +0 -14
- package/lib/generated/builders/oauth2-autenthication-data-scopes-builder.d.ts.map +0 -1
- package/lib/generated/builders/oauth2-authentication-policy-builder.d.ts +0 -14
- package/lib/generated/builders/oauth2-authentication-policy-builder.d.ts.map +0 -1
- package/lib/generated/builders/oauth2-authentication-policy-configuration-builder.d.ts +0 -14
- package/lib/generated/builders/oauth2-authentication-policy-configuration-builder.d.ts.map +0 -1
- package/lib/generated/builders/oauth2-authentication-properties-endpoints-builder.d.ts +0 -14
- package/lib/generated/builders/oauth2-authentication-properties-endpoints-builder.d.ts.map +0 -1
- package/lib/generated/builders/oauth2-connect-authentication-properties-builder.d.ts +0 -14
- package/lib/generated/builders/oauth2-connect-authentication-properties-builder.d.ts.map +0 -1
- package/lib/generated/builders/oauth2-issuers-builder.d.ts +0 -14
- package/lib/generated/builders/oauth2-issuers-builder.d.ts.map +0 -1
- package/lib/generated/builders/oauth2-token-definition-builder.d.ts +0 -14
- package/lib/generated/builders/oauth2-token-definition-builder.d.ts.map +0 -1
- package/lib/generated/builders/oauth2-token-request-builder.d.ts +0 -14
- package/lib/generated/builders/oauth2-token-request-builder.d.ts.map +0 -1
- package/lib/generated/builders/one-event-consumption-strategy-builder.d.ts +0 -14
- package/lib/generated/builders/one-event-consumption-strategy-builder.d.ts.map +0 -1
- package/lib/generated/builders/open-api-arguments-builder.d.ts +0 -14
- package/lib/generated/builders/open-api-arguments-builder.d.ts.map +0 -1
- package/lib/generated/builders/open-id-connect-authentication-policy-builder.d.ts +0 -14
- package/lib/generated/builders/open-id-connect-authentication-policy-builder.d.ts.map +0 -1
- package/lib/generated/builders/open-id-connect-authentication-policy-configuration-builder.d.ts +0 -14
- package/lib/generated/builders/open-id-connect-authentication-policy-configuration-builder.d.ts.map +0 -1
- package/lib/generated/builders/open-id-connect-authentication-properties-builder.d.ts +0 -14
- package/lib/generated/builders/open-id-connect-authentication-properties-builder.d.ts.map +0 -1
- package/lib/generated/builders/output-as-builder.d.ts +0 -14
- package/lib/generated/builders/output-as-builder.d.ts.map +0 -1
- package/lib/generated/builders/output-builder.d.ts +0 -14
- package/lib/generated/builders/output-builder.d.ts.map +0 -1
- package/lib/generated/builders/raise-task-builder.d.ts +0 -14
- package/lib/generated/builders/raise-task-builder.d.ts.map +0 -1
- package/lib/generated/builders/raise-task-configuration-builder.d.ts +0 -14
- package/lib/generated/builders/raise-task-configuration-builder.d.ts.map +0 -1
- package/lib/generated/builders/raise-task-error-builder.d.ts +0 -14
- package/lib/generated/builders/raise-task-error-builder.d.ts.map +0 -1
- package/lib/generated/builders/referenceable-authentication-policy-builder.d.ts +0 -14
- package/lib/generated/builders/referenceable-authentication-policy-builder.d.ts.map +0 -1
- package/lib/generated/builders/retry-backoff-builder.d.ts +0 -14
- package/lib/generated/builders/retry-backoff-builder.d.ts.map +0 -1
- package/lib/generated/builders/retry-limit-attempt-builder.d.ts +0 -14
- package/lib/generated/builders/retry-limit-attempt-builder.d.ts.map +0 -1
- package/lib/generated/builders/retry-limit-builder.d.ts +0 -14
- package/lib/generated/builders/retry-limit-builder.d.ts.map +0 -1
- package/lib/generated/builders/retry-policy-builder.d.ts +0 -14
- package/lib/generated/builders/retry-policy-builder.d.ts.map +0 -1
- package/lib/generated/builders/retry-policy-jitter-builder.d.ts +0 -14
- package/lib/generated/builders/retry-policy-jitter-builder.d.ts.map +0 -1
- package/lib/generated/builders/run-container-builder.d.ts +0 -14
- package/lib/generated/builders/run-container-builder.d.ts.map +0 -1
- package/lib/generated/builders/run-script-builder.d.ts +0 -14
- package/lib/generated/builders/run-script-builder.d.ts.map +0 -1
- package/lib/generated/builders/run-shell-builder.d.ts +0 -14
- package/lib/generated/builders/run-shell-builder.d.ts.map +0 -1
- package/lib/generated/builders/run-task-builder.d.ts +0 -14
- package/lib/generated/builders/run-task-builder.d.ts.map +0 -1
- package/lib/generated/builders/run-task-configuration-builder.d.ts +0 -14
- package/lib/generated/builders/run-task-configuration-builder.d.ts.map +0 -1
- package/lib/generated/builders/run-workflow-builder.d.ts +0 -14
- package/lib/generated/builders/run-workflow-builder.d.ts.map +0 -1
- package/lib/generated/builders/runtime-expression-builder.d.ts +0 -14
- package/lib/generated/builders/runtime-expression-builder.d.ts.map +0 -1
- package/lib/generated/builders/schedule-builder.d.ts +0 -14
- package/lib/generated/builders/schedule-builder.d.ts.map +0 -1
- package/lib/generated/builders/schema-builder.d.ts +0 -14
- package/lib/generated/builders/schema-builder.d.ts.map +0 -1
- package/lib/generated/builders/schema-external-builder.d.ts +0 -14
- package/lib/generated/builders/schema-external-builder.d.ts.map +0 -1
- package/lib/generated/builders/schema-inline-builder.d.ts +0 -14
- package/lib/generated/builders/schema-inline-builder.d.ts.map +0 -1
- package/lib/generated/builders/script-builder.d.ts +0 -14
- package/lib/generated/builders/script-builder.d.ts.map +0 -1
- package/lib/generated/builders/secret-based-authentication-policy-builder.d.ts +0 -14
- package/lib/generated/builders/secret-based-authentication-policy-builder.d.ts.map +0 -1
- package/lib/generated/builders/set-task-builder.d.ts +0 -14
- package/lib/generated/builders/set-task-builder.d.ts.map +0 -1
- package/lib/generated/builders/set-task-configuration-builder.d.ts +0 -14
- package/lib/generated/builders/set-task-configuration-builder.d.ts.map +0 -1
- package/lib/generated/builders/shell-arguments-builder.d.ts +0 -14
- package/lib/generated/builders/shell-arguments-builder.d.ts.map +0 -1
- package/lib/generated/builders/shell-builder.d.ts +0 -14
- package/lib/generated/builders/shell-builder.d.ts.map +0 -1
- package/lib/generated/builders/shell-environment-builder.d.ts +0 -14
- package/lib/generated/builders/shell-environment-builder.d.ts.map +0 -1
- package/lib/generated/builders/subflow-configuration-builder.d.ts +0 -14
- package/lib/generated/builders/subflow-configuration-builder.d.ts.map +0 -1
- package/lib/generated/builders/subflow-input-builder.d.ts +0 -14
- package/lib/generated/builders/subflow-input-builder.d.ts.map +0 -1
- package/lib/generated/builders/subscription-iterator-builder.d.ts +0 -14
- package/lib/generated/builders/subscription-iterator-builder.d.ts.map +0 -1
- package/lib/generated/builders/switch-case-builder.d.ts +0 -14
- package/lib/generated/builders/switch-case-builder.d.ts.map +0 -1
- package/lib/generated/builders/switch-item-builder.d.ts +0 -14
- package/lib/generated/builders/switch-item-builder.d.ts.map +0 -1
- package/lib/generated/builders/switch-task-builder.d.ts +0 -14
- package/lib/generated/builders/switch-task-builder.d.ts.map +0 -1
- package/lib/generated/builders/switch-task-configuration-builder.d.ts +0 -14
- package/lib/generated/builders/switch-task-configuration-builder.d.ts.map +0 -1
- package/lib/generated/builders/task-base-builder.d.ts +0 -14
- package/lib/generated/builders/task-base-builder.d.ts.map +0 -1
- package/lib/generated/builders/task-base-if-builder.d.ts +0 -14
- package/lib/generated/builders/task-base-if-builder.d.ts.map +0 -1
- package/lib/generated/builders/task-builder.d.ts +0 -14
- package/lib/generated/builders/task-builder.d.ts.map +0 -1
- package/lib/generated/builders/task-item-builder.d.ts +0 -14
- package/lib/generated/builders/task-item-builder.d.ts.map +0 -1
- package/lib/generated/builders/task-list-builder.d.ts +0 -14
- package/lib/generated/builders/task-list-builder.d.ts.map +0 -1
- package/lib/generated/builders/task-metadata-builder.d.ts +0 -14
- package/lib/generated/builders/task-metadata-builder.d.ts.map +0 -1
- package/lib/generated/builders/task-timeout-builder.d.ts +0 -14
- package/lib/generated/builders/task-timeout-builder.d.ts.map +0 -1
- package/lib/generated/builders/timeout-builder.d.ts +0 -14
- package/lib/generated/builders/timeout-builder.d.ts.map +0 -1
- package/lib/generated/builders/try-task-builder.d.ts +0 -14
- package/lib/generated/builders/try-task-builder.d.ts.map +0 -1
- package/lib/generated/builders/try-task-catch-builder.d.ts +0 -14
- package/lib/generated/builders/try-task-catch-builder.d.ts.map +0 -1
- package/lib/generated/builders/try-task-catch-retry-builder.d.ts +0 -14
- package/lib/generated/builders/try-task-catch-retry-builder.d.ts.map +0 -1
- package/lib/generated/builders/uri-template-builder.d.ts +0 -14
- package/lib/generated/builders/uri-template-builder.d.ts.map +0 -1
- package/lib/generated/builders/use-authentications-builder.d.ts +0 -14
- package/lib/generated/builders/use-authentications-builder.d.ts.map +0 -1
- package/lib/generated/builders/use-builder.d.ts +0 -14
- package/lib/generated/builders/use-builder.d.ts.map +0 -1
- package/lib/generated/builders/use-catalogs-builder.d.ts +0 -14
- package/lib/generated/builders/use-catalogs-builder.d.ts.map +0 -1
- package/lib/generated/builders/use-errors-builder.d.ts +0 -14
- package/lib/generated/builders/use-errors-builder.d.ts.map +0 -1
- package/lib/generated/builders/use-extensions-builder.d.ts +0 -14
- package/lib/generated/builders/use-extensions-builder.d.ts.map +0 -1
- package/lib/generated/builders/use-functions-builder.d.ts +0 -14
- package/lib/generated/builders/use-functions-builder.d.ts.map +0 -1
- package/lib/generated/builders/use-retries-builder.d.ts +0 -14
- package/lib/generated/builders/use-retries-builder.d.ts.map +0 -1
- package/lib/generated/builders/use-secrets-builder.d.ts +0 -14
- package/lib/generated/builders/use-secrets-builder.d.ts.map +0 -1
- package/lib/generated/builders/use-timeouts-builder.d.ts +0 -14
- package/lib/generated/builders/use-timeouts-builder.d.ts.map +0 -1
- package/lib/generated/builders/wait-task-builder.d.ts +0 -14
- package/lib/generated/builders/wait-task-builder.d.ts.map +0 -1
- package/lib/generated/builders/with-event-builder.d.ts +0 -14
- package/lib/generated/builders/with-event-builder.d.ts.map +0 -1
- package/lib/generated/builders/with-grpc-arguments-builder.d.ts +0 -14
- package/lib/generated/builders/with-grpc-arguments-builder.d.ts.map +0 -1
- package/lib/generated/builders/with-grpc-service-builder.d.ts +0 -14
- package/lib/generated/builders/with-grpc-service-builder.d.ts.map +0 -1
- package/lib/generated/builders/with-open-api-parameters-builder.d.ts +0 -14
- package/lib/generated/builders/with-open-api-parameters-builder.d.ts.map +0 -1
- package/lib/generated/builders/workflow-builder.d.ts +0 -14
- package/lib/generated/builders/workflow-builder.d.ts.map +0 -1
- package/lib/generated/builders/workflow-metadata-builder.d.ts +0 -14
- package/lib/generated/builders/workflow-metadata-builder.d.ts.map +0 -1
- package/lib/generated/builders/workflow-tags-builder.d.ts +0 -14
- package/lib/generated/builders/workflow-tags-builder.d.ts.map +0 -1
- package/lib/generated/builders/workflow-timeout-builder.d.ts +0 -14
- package/lib/generated/builders/workflow-timeout-builder.d.ts.map +0 -1
- package/lib/generated/classes/all-event-consumption-strategy-configuration.d.ts +0 -38
- package/lib/generated/classes/all-event-consumption-strategy-configuration.d.ts.map +0 -1
- package/lib/generated/classes/all-event-consumption-strategy.d.ts +0 -39
- package/lib/generated/classes/all-event-consumption-strategy.d.ts.map +0 -1
- package/lib/generated/classes/any-event-consumption-strategy-configuration.d.ts +0 -38
- package/lib/generated/classes/any-event-consumption-strategy-configuration.d.ts.map +0 -1
- package/lib/generated/classes/any-event-consumption-strategy-until.d.ts +0 -39
- package/lib/generated/classes/any-event-consumption-strategy-until.d.ts.map +0 -1
- package/lib/generated/classes/any-event-consumption-strategy.d.ts +0 -39
- package/lib/generated/classes/any-event-consumption-strategy.d.ts.map +0 -1
- package/lib/generated/classes/any-event-until-consumed.d.ts +0 -39
- package/lib/generated/classes/any-event-until-consumed.d.ts.map +0 -1
- package/lib/generated/classes/async-api-arguments.d.ts +0 -44
- package/lib/generated/classes/async-api-arguments.d.ts.map +0 -1
- package/lib/generated/classes/authentication-policy-reference.d.ts +0 -44
- package/lib/generated/classes/authentication-policy-reference.d.ts.map +0 -1
- package/lib/generated/classes/authentication-policy.d.ts +0 -39
- package/lib/generated/classes/authentication-policy.d.ts.map +0 -1
- package/lib/generated/classes/basic-authentication-policy-configuration.d.ts +0 -44
- package/lib/generated/classes/basic-authentication-policy-configuration.d.ts.map +0 -1
- package/lib/generated/classes/basic-authentication-policy.d.ts +0 -39
- package/lib/generated/classes/basic-authentication-policy.d.ts.map +0 -1
- package/lib/generated/classes/basic-authentication-properties.d.ts +0 -44
- package/lib/generated/classes/basic-authentication-properties.d.ts.map +0 -1
- package/lib/generated/classes/bearer-authentication-policy-configuration.d.ts +0 -44
- package/lib/generated/classes/bearer-authentication-policy-configuration.d.ts.map +0 -1
- package/lib/generated/classes/bearer-authentication-policy.d.ts +0 -39
- package/lib/generated/classes/bearer-authentication-policy.d.ts.map +0 -1
- package/lib/generated/classes/bearer-authentication-properties.d.ts +0 -44
- package/lib/generated/classes/bearer-authentication-properties.d.ts.map +0 -1
- package/lib/generated/classes/call-async-api.d.ts +0 -39
- package/lib/generated/classes/call-async-api.d.ts.map +0 -1
- package/lib/generated/classes/call-function.d.ts +0 -39
- package/lib/generated/classes/call-function.d.ts.map +0 -1
- package/lib/generated/classes/call-grpc.d.ts +0 -39
- package/lib/generated/classes/call-grpc.d.ts.map +0 -1
- package/lib/generated/classes/call-http.d.ts +0 -39
- package/lib/generated/classes/call-http.d.ts.map +0 -1
- package/lib/generated/classes/call-open-api.d.ts +0 -39
- package/lib/generated/classes/call-open-api.d.ts.map +0 -1
- package/lib/generated/classes/call-task.d.ts +0 -39
- package/lib/generated/classes/call-task.d.ts.map +0 -1
- package/lib/generated/classes/catalog.d.ts +0 -39
- package/lib/generated/classes/catalog.d.ts.map +0 -1
- package/lib/generated/classes/catch-errors.d.ts +0 -39
- package/lib/generated/classes/catch-errors.d.ts.map +0 -1
- package/lib/generated/classes/constant-backoff.d.ts +0 -44
- package/lib/generated/classes/constant-backoff.d.ts.map +0 -1
- package/lib/generated/classes/container-environment.d.ts +0 -44
- package/lib/generated/classes/container-environment.d.ts.map +0 -1
- package/lib/generated/classes/container-lifetime.d.ts +0 -39
- package/lib/generated/classes/container-lifetime.d.ts.map +0 -1
- package/lib/generated/classes/container-ports.d.ts +0 -44
- package/lib/generated/classes/container-ports.d.ts.map +0 -1
- package/lib/generated/classes/container-volumes.d.ts +0 -44
- package/lib/generated/classes/container-volumes.d.ts.map +0 -1
- package/lib/generated/classes/container.d.ts +0 -39
- package/lib/generated/classes/container.d.ts.map +0 -1
- package/lib/generated/classes/digest-authentication-policy-configuration.d.ts +0 -44
- package/lib/generated/classes/digest-authentication-policy-configuration.d.ts.map +0 -1
- package/lib/generated/classes/digest-authentication-policy.d.ts +0 -39
- package/lib/generated/classes/digest-authentication-policy.d.ts.map +0 -1
- package/lib/generated/classes/digest-authentication-properties.d.ts +0 -44
- package/lib/generated/classes/digest-authentication-properties.d.ts.map +0 -1
- package/lib/generated/classes/do-task.d.ts +0 -39
- package/lib/generated/classes/do-task.d.ts.map +0 -1
- package/lib/generated/classes/document.d.ts +0 -39
- package/lib/generated/classes/document.d.ts.map +0 -1
- package/lib/generated/classes/duration-inline.d.ts +0 -44
- package/lib/generated/classes/duration-inline.d.ts.map +0 -1
- package/lib/generated/classes/duration.d.ts +0 -44
- package/lib/generated/classes/duration.d.ts.map +0 -1
- package/lib/generated/classes/emit-event-definition.d.ts +0 -39
- package/lib/generated/classes/emit-event-definition.d.ts.map +0 -1
- package/lib/generated/classes/emit-event-with.d.ts +0 -44
- package/lib/generated/classes/emit-event-with.d.ts.map +0 -1
- package/lib/generated/classes/emit-task-configuration.d.ts +0 -39
- package/lib/generated/classes/emit-task-configuration.d.ts.map +0 -1
- package/lib/generated/classes/emit-task.d.ts +0 -39
- package/lib/generated/classes/emit-task.d.ts.map +0 -1
- package/lib/generated/classes/endpoint-configuration.d.ts +0 -39
- package/lib/generated/classes/endpoint-configuration.d.ts.map +0 -1
- package/lib/generated/classes/endpoint-uri.d.ts +0 -44
- package/lib/generated/classes/endpoint-uri.d.ts.map +0 -1
- package/lib/generated/classes/endpoint.d.ts +0 -39
- package/lib/generated/classes/endpoint.d.ts.map +0 -1
- package/lib/generated/classes/error-filter.d.ts +0 -44
- package/lib/generated/classes/error-filter.d.ts.map +0 -1
- package/lib/generated/classes/error-instance.d.ts +0 -44
- package/lib/generated/classes/error-instance.d.ts.map +0 -1
- package/lib/generated/classes/error-type.d.ts +0 -44
- package/lib/generated/classes/error-type.d.ts.map +0 -1
- package/lib/generated/classes/error.d.ts +0 -44
- package/lib/generated/classes/error.d.ts.map +0 -1
- package/lib/generated/classes/event-consumption-strategy.d.ts +0 -39
- package/lib/generated/classes/event-consumption-strategy.d.ts.map +0 -1
- package/lib/generated/classes/event-data.d.ts +0 -44
- package/lib/generated/classes/event-data.d.ts.map +0 -1
- package/lib/generated/classes/event-dataschema.d.ts +0 -44
- package/lib/generated/classes/event-dataschema.d.ts.map +0 -1
- package/lib/generated/classes/event-filter-correlate.d.ts +0 -44
- package/lib/generated/classes/event-filter-correlate.d.ts.map +0 -1
- package/lib/generated/classes/event-filter.d.ts +0 -39
- package/lib/generated/classes/event-filter.d.ts.map +0 -1
- package/lib/generated/classes/event-source.d.ts +0 -44
- package/lib/generated/classes/event-source.d.ts.map +0 -1
- package/lib/generated/classes/event-time.d.ts +0 -44
- package/lib/generated/classes/event-time.d.ts.map +0 -1
- package/lib/generated/classes/exponential-back-off.d.ts +0 -44
- package/lib/generated/classes/exponential-back-off.d.ts.map +0 -1
- package/lib/generated/classes/export-as.d.ts +0 -44
- package/lib/generated/classes/export-as.d.ts.map +0 -1
- package/lib/generated/classes/export.d.ts +0 -39
- package/lib/generated/classes/export.d.ts.map +0 -1
- package/lib/generated/classes/extension-item.d.ts +0 -39
- package/lib/generated/classes/extension-item.d.ts.map +0 -1
- package/lib/generated/classes/extension.d.ts +0 -39
- package/lib/generated/classes/extension.d.ts.map +0 -1
- package/lib/generated/classes/external-resource.d.ts +0 -39
- package/lib/generated/classes/external-resource.d.ts.map +0 -1
- package/lib/generated/classes/external-script.d.ts +0 -39
- package/lib/generated/classes/external-script.d.ts.map +0 -1
- package/lib/generated/classes/flow-directive.d.ts +0 -44
- package/lib/generated/classes/flow-directive.d.ts.map +0 -1
- package/lib/generated/classes/for-task-configuration.d.ts +0 -44
- package/lib/generated/classes/for-task-configuration.d.ts.map +0 -1
- package/lib/generated/classes/for-task.d.ts +0 -39
- package/lib/generated/classes/for-task.d.ts.map +0 -1
- package/lib/generated/classes/fork-task-configuration.d.ts +0 -39
- package/lib/generated/classes/fork-task-configuration.d.ts.map +0 -1
- package/lib/generated/classes/fork-task.d.ts +0 -39
- package/lib/generated/classes/fork-task.d.ts.map +0 -1
- package/lib/generated/classes/function-arguments.d.ts +0 -44
- package/lib/generated/classes/function-arguments.d.ts.map +0 -1
- package/lib/generated/classes/grpc-arguments.d.ts +0 -39
- package/lib/generated/classes/grpc-arguments.d.ts.map +0 -1
- package/lib/generated/classes/http-arguments.d.ts +0 -39
- package/lib/generated/classes/http-arguments.d.ts.map +0 -1
- package/lib/generated/classes/http-body.d.ts +0 -44
- package/lib/generated/classes/http-body.d.ts.map +0 -1
- package/lib/generated/classes/http-headers.d.ts +0 -44
- package/lib/generated/classes/http-headers.d.ts.map +0 -1
- package/lib/generated/classes/http-query.d.ts +0 -44
- package/lib/generated/classes/http-query.d.ts.map +0 -1
- package/lib/generated/classes/index.d.ts +0 -168
- package/lib/generated/classes/index.d.ts.map +0 -1
- package/lib/generated/classes/inline-script.d.ts +0 -44
- package/lib/generated/classes/inline-script.d.ts.map +0 -1
- package/lib/generated/classes/input-from.d.ts +0 -44
- package/lib/generated/classes/input-from.d.ts.map +0 -1
- package/lib/generated/classes/input.d.ts +0 -39
- package/lib/generated/classes/input.d.ts.map +0 -1
- package/lib/generated/classes/linear-backoff.d.ts +0 -44
- package/lib/generated/classes/linear-backoff.d.ts.map +0 -1
- package/lib/generated/classes/listen-task-configuration.d.ts +0 -39
- package/lib/generated/classes/listen-task-configuration.d.ts.map +0 -1
- package/lib/generated/classes/listen-task.d.ts +0 -39
- package/lib/generated/classes/listen-task.d.ts.map +0 -1
- package/lib/generated/classes/oauth2-autenthication-data-audiences.d.ts +0 -43
- package/lib/generated/classes/oauth2-autenthication-data-audiences.d.ts.map +0 -1
- package/lib/generated/classes/oauth2-autenthication-data-client.d.ts +0 -44
- package/lib/generated/classes/oauth2-autenthication-data-client.d.ts.map +0 -1
- package/lib/generated/classes/oauth2-autenthication-data-scopes.d.ts +0 -43
- package/lib/generated/classes/oauth2-autenthication-data-scopes.d.ts.map +0 -1
- package/lib/generated/classes/oauth2-autenthication-data.d.ts +0 -39
- package/lib/generated/classes/oauth2-autenthication-data.d.ts.map +0 -1
- package/lib/generated/classes/oauth2-authentication-policy-configuration.d.ts +0 -39
- package/lib/generated/classes/oauth2-authentication-policy-configuration.d.ts.map +0 -1
- package/lib/generated/classes/oauth2-authentication-policy.d.ts +0 -39
- package/lib/generated/classes/oauth2-authentication-policy.d.ts.map +0 -1
- package/lib/generated/classes/oauth2-authentication-properties-endpoints.d.ts +0 -44
- package/lib/generated/classes/oauth2-authentication-properties-endpoints.d.ts.map +0 -1
- package/lib/generated/classes/oauth2-connect-authentication-properties.d.ts +0 -39
- package/lib/generated/classes/oauth2-connect-authentication-properties.d.ts.map +0 -1
- package/lib/generated/classes/oauth2-issuers.d.ts +0 -43
- package/lib/generated/classes/oauth2-issuers.d.ts.map +0 -1
- package/lib/generated/classes/oauth2-token-definition.d.ts +0 -44
- package/lib/generated/classes/oauth2-token-definition.d.ts.map +0 -1
- package/lib/generated/classes/oauth2-token-request.d.ts +0 -44
- package/lib/generated/classes/oauth2-token-request.d.ts.map +0 -1
- package/lib/generated/classes/one-event-consumption-strategy.d.ts +0 -39
- package/lib/generated/classes/one-event-consumption-strategy.d.ts.map +0 -1
- package/lib/generated/classes/open-api-arguments.d.ts +0 -39
- package/lib/generated/classes/open-api-arguments.d.ts.map +0 -1
- package/lib/generated/classes/open-id-connect-authentication-policy-configuration.d.ts +0 -39
- package/lib/generated/classes/open-id-connect-authentication-policy-configuration.d.ts.map +0 -1
- package/lib/generated/classes/open-id-connect-authentication-policy.d.ts +0 -39
- package/lib/generated/classes/open-id-connect-authentication-policy.d.ts.map +0 -1
- package/lib/generated/classes/open-id-connect-authentication-properties.d.ts +0 -39
- package/lib/generated/classes/open-id-connect-authentication-properties.d.ts.map +0 -1
- package/lib/generated/classes/output-as.d.ts +0 -44
- package/lib/generated/classes/output-as.d.ts.map +0 -1
- package/lib/generated/classes/output.d.ts +0 -39
- package/lib/generated/classes/output.d.ts.map +0 -1
- package/lib/generated/classes/raise-task-configuration.d.ts +0 -39
- package/lib/generated/classes/raise-task-configuration.d.ts.map +0 -1
- package/lib/generated/classes/raise-task-error.d.ts +0 -44
- package/lib/generated/classes/raise-task-error.d.ts.map +0 -1
- package/lib/generated/classes/raise-task.d.ts +0 -39
- package/lib/generated/classes/raise-task.d.ts.map +0 -1
- package/lib/generated/classes/referenceable-authentication-policy.d.ts +0 -39
- package/lib/generated/classes/referenceable-authentication-policy.d.ts.map +0 -1
- package/lib/generated/classes/retry-backoff.d.ts +0 -44
- package/lib/generated/classes/retry-backoff.d.ts.map +0 -1
- package/lib/generated/classes/retry-limit-attempt.d.ts +0 -39
- package/lib/generated/classes/retry-limit-attempt.d.ts.map +0 -1
- package/lib/generated/classes/retry-limit.d.ts +0 -39
- package/lib/generated/classes/retry-limit.d.ts.map +0 -1
- package/lib/generated/classes/retry-policy-jitter.d.ts +0 -39
- package/lib/generated/classes/retry-policy-jitter.d.ts.map +0 -1
- package/lib/generated/classes/retry-policy.d.ts +0 -39
- package/lib/generated/classes/retry-policy.d.ts.map +0 -1
- package/lib/generated/classes/run-container.d.ts +0 -39
- package/lib/generated/classes/run-container.d.ts.map +0 -1
- package/lib/generated/classes/run-script.d.ts +0 -39
- package/lib/generated/classes/run-script.d.ts.map +0 -1
- package/lib/generated/classes/run-shell.d.ts +0 -39
- package/lib/generated/classes/run-shell.d.ts.map +0 -1
- package/lib/generated/classes/run-task-configuration.d.ts +0 -39
- package/lib/generated/classes/run-task-configuration.d.ts.map +0 -1
- package/lib/generated/classes/run-task.d.ts +0 -39
- package/lib/generated/classes/run-task.d.ts.map +0 -1
- package/lib/generated/classes/run-workflow.d.ts +0 -39
- package/lib/generated/classes/run-workflow.d.ts.map +0 -1
- package/lib/generated/classes/runtime-expression.d.ts +0 -44
- package/lib/generated/classes/runtime-expression.d.ts.map +0 -1
- package/lib/generated/classes/schedule.d.ts +0 -39
- package/lib/generated/classes/schedule.d.ts.map +0 -1
- package/lib/generated/classes/schema-external.d.ts +0 -39
- package/lib/generated/classes/schema-external.d.ts.map +0 -1
- package/lib/generated/classes/schema-inline.d.ts +0 -44
- package/lib/generated/classes/schema-inline.d.ts.map +0 -1
- package/lib/generated/classes/schema.d.ts +0 -39
- package/lib/generated/classes/schema.d.ts.map +0 -1
- package/lib/generated/classes/script.d.ts +0 -39
- package/lib/generated/classes/script.d.ts.map +0 -1
- package/lib/generated/classes/secret-based-authentication-policy.d.ts +0 -44
- package/lib/generated/classes/secret-based-authentication-policy.d.ts.map +0 -1
- package/lib/generated/classes/set-task-configuration.d.ts +0 -44
- package/lib/generated/classes/set-task-configuration.d.ts.map +0 -1
- package/lib/generated/classes/set-task.d.ts +0 -39
- package/lib/generated/classes/set-task.d.ts.map +0 -1
- package/lib/generated/classes/shell-arguments.d.ts +0 -44
- package/lib/generated/classes/shell-arguments.d.ts.map +0 -1
- package/lib/generated/classes/shell-environment.d.ts +0 -44
- package/lib/generated/classes/shell-environment.d.ts.map +0 -1
- package/lib/generated/classes/shell.d.ts +0 -39
- package/lib/generated/classes/shell.d.ts.map +0 -1
- package/lib/generated/classes/subflow-configuration.d.ts +0 -39
- package/lib/generated/classes/subflow-configuration.d.ts.map +0 -1
- package/lib/generated/classes/subflow-input.d.ts +0 -44
- package/lib/generated/classes/subflow-input.d.ts.map +0 -1
- package/lib/generated/classes/subscription-iterator.d.ts +0 -39
- package/lib/generated/classes/subscription-iterator.d.ts.map +0 -1
- package/lib/generated/classes/switch-case.d.ts +0 -44
- package/lib/generated/classes/switch-case.d.ts.map +0 -1
- package/lib/generated/classes/switch-item.d.ts +0 -39
- package/lib/generated/classes/switch-item.d.ts.map +0 -1
- package/lib/generated/classes/switch-task-configuration.d.ts +0 -38
- package/lib/generated/classes/switch-task-configuration.d.ts.map +0 -1
- package/lib/generated/classes/switch-task.d.ts +0 -39
- package/lib/generated/classes/switch-task.d.ts.map +0 -1
- package/lib/generated/classes/task-base-if.d.ts +0 -44
- package/lib/generated/classes/task-base-if.d.ts.map +0 -1
- package/lib/generated/classes/task-base.d.ts +0 -39
- package/lib/generated/classes/task-base.d.ts.map +0 -1
- package/lib/generated/classes/task-item.d.ts +0 -39
- package/lib/generated/classes/task-item.d.ts.map +0 -1
- package/lib/generated/classes/task-list.d.ts +0 -38
- package/lib/generated/classes/task-list.d.ts.map +0 -1
- package/lib/generated/classes/task-metadata.d.ts +0 -44
- package/lib/generated/classes/task-metadata.d.ts.map +0 -1
- package/lib/generated/classes/task-timeout.d.ts +0 -39
- package/lib/generated/classes/task-timeout.d.ts.map +0 -1
- package/lib/generated/classes/task.d.ts +0 -39
- package/lib/generated/classes/task.d.ts.map +0 -1
- package/lib/generated/classes/timeout.d.ts +0 -39
- package/lib/generated/classes/timeout.d.ts.map +0 -1
- package/lib/generated/classes/try-task-catch-retry.d.ts +0 -39
- package/lib/generated/classes/try-task-catch-retry.d.ts.map +0 -1
- package/lib/generated/classes/try-task-catch.d.ts +0 -39
- package/lib/generated/classes/try-task-catch.d.ts.map +0 -1
- package/lib/generated/classes/try-task.d.ts +0 -39
- package/lib/generated/classes/try-task.d.ts.map +0 -1
- package/lib/generated/classes/uri-template.d.ts +0 -44
- package/lib/generated/classes/uri-template.d.ts.map +0 -1
- package/lib/generated/classes/use-authentications.d.ts +0 -39
- package/lib/generated/classes/use-authentications.d.ts.map +0 -1
- package/lib/generated/classes/use-catalogs.d.ts +0 -39
- package/lib/generated/classes/use-catalogs.d.ts.map +0 -1
- package/lib/generated/classes/use-errors.d.ts +0 -39
- package/lib/generated/classes/use-errors.d.ts.map +0 -1
- package/lib/generated/classes/use-extensions.d.ts +0 -38
- package/lib/generated/classes/use-extensions.d.ts.map +0 -1
- package/lib/generated/classes/use-functions.d.ts +0 -39
- package/lib/generated/classes/use-functions.d.ts.map +0 -1
- package/lib/generated/classes/use-retries.d.ts +0 -39
- package/lib/generated/classes/use-retries.d.ts.map +0 -1
- package/lib/generated/classes/use-secrets.d.ts +0 -43
- package/lib/generated/classes/use-secrets.d.ts.map +0 -1
- package/lib/generated/classes/use-timeouts.d.ts +0 -39
- package/lib/generated/classes/use-timeouts.d.ts.map +0 -1
- package/lib/generated/classes/use.d.ts +0 -39
- package/lib/generated/classes/use.d.ts.map +0 -1
- package/lib/generated/classes/wait-task.d.ts +0 -39
- package/lib/generated/classes/wait-task.d.ts.map +0 -1
- package/lib/generated/classes/with-event.d.ts +0 -44
- package/lib/generated/classes/with-event.d.ts.map +0 -1
- package/lib/generated/classes/with-grpc-arguments.d.ts +0 -44
- package/lib/generated/classes/with-grpc-arguments.d.ts.map +0 -1
- package/lib/generated/classes/with-grpc-service.d.ts +0 -39
- package/lib/generated/classes/with-grpc-service.d.ts.map +0 -1
- package/lib/generated/classes/with-open-api-parameters.d.ts +0 -44
- package/lib/generated/classes/with-open-api-parameters.d.ts.map +0 -1
- package/lib/generated/classes/workflow-metadata.d.ts +0 -44
- package/lib/generated/classes/workflow-metadata.d.ts.map +0 -1
- package/lib/generated/classes/workflow-tags.d.ts +0 -44
- package/lib/generated/classes/workflow-tags.d.ts.map +0 -1
- package/lib/generated/classes/workflow-timeout.d.ts +0 -39
- package/lib/generated/classes/workflow-timeout.d.ts.map +0 -1
- package/lib/generated/classes/workflow.d.ts +0 -88
- package/lib/generated/classes/workflow.d.ts.map +0 -1
- package/lib/generated/definitions/index.d.ts +0 -2
- package/lib/generated/definitions/index.d.ts.map +0 -1
- package/lib/generated/definitions/specification.d.ts +0 -1318
- package/lib/generated/definitions/specification.d.ts.map +0 -1
- package/lib/generated/validation/index.d.ts +0 -2
- package/lib/generated/validation/index.d.ts.map +0 -1
- package/lib/generated/validation/validation-pointers.d.ts +0 -171
- package/lib/generated/validation/validation-pointers.d.ts.map +0 -1
- package/lib/graph-builder.d.ts +0 -74
- package/lib/graph-builder.d.ts.map +0 -1
- package/lib/hooks/index.d.ts +0 -2
- package/lib/hooks/index.d.ts.map +0 -1
- package/lib/hooks/workflow-hooks.d.ts +0 -4
- package/lib/hooks/workflow-hooks.d.ts.map +0 -1
- package/lib/hydrator.d.ts +0 -13
- package/lib/hydrator.d.ts.map +0 -1
- package/lib/lifecycle-hooks.d.ts +0 -42
- package/lib/lifecycle-hooks.d.ts.map +0 -1
- package/lib/mermaid-converter.d.ts +0 -21
- package/lib/mermaid-converter.d.ts.map +0 -1
- package/lib/utils.d.ts +0 -19
- package/lib/utils.d.ts.map +0 -1
- package/lib/validation.d.ts +0 -10
- package/lib/validation.d.ts.map +0 -1
- package/serverless-workflow-sdk.d.ts +0 -7
- package/serverless-workflow-sdk.d.ts.map +0 -1
- package/systemjs/index.systemjs.js +0 -31301
- package/systemjs/index.systemjs.js.map +0 -1
- package/systemjs/index.systemjs.min.js +0 -10
- package/systemjs/index.systemjs.min.js.map +0 -1
- package/umd/index.umd.js +0 -31463
- package/umd/index.umd.js.map +0 -1
- package/umd/index.umd.min.js +0 -10
- package/umd/index.umd.min.js.map +0 -1
package/index.umd.min.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports):typeof define==`function`&&define.amd?define([`exports`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.serverWorkflowSdk={}))})(this,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,t)=>{let r={};for(var i in e)n(r,i,{get:e[i],enumerable:!0});return t||n(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},u=(e,r,i)=>(i=e==null?{}:t(a(e)),l(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e));function d(e,t){return t.validate??=!0,t.normalize??=!0,e}function f(e={},t=d){let n=new Proxy({},{get:(r,i)=>i===`build`?n=>(n||={},n.validate??=!0,n.normalize??=!0,t(e,n)):t=>(e[i.toString()]=t,n),set:()=>!1});return n}function p(e=[],t=d){if(e!=null&&!Array.isArray(e))throw Error(`The provided model should be an array`);let n=new Proxy({},{get:(r,i)=>{if(i===`build`)return n=>(n||={},n.validate??=!0,n.normalize??=!0,t(e,n));if(i===`push`)return t=>(e.push(t),n)},set:()=>!1});return n}let m=e=>e?typeof e==`object`&&!Array.isArray(e):!1,h=e=>JSON.parse(JSON.stringify(e));var g=class{constructor(e){m(e)&&Object.assign(this,h(e))}},_=class extends Array{constructor(e){if(!isNaN(e))super(e);else if(super(...e||[]),e||=[],!Array.isArray(e))throw Error(`The provided model should be an array`)}},v=s(((e,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),y=s(((e,t)=>{let n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),b=s(((e,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),x=s(((e,t)=>{t.exports=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),S=s(((e,t)=>{let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=b(),a=x();e=t.exports={};let o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},h=(e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};h(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),h(`NUMERICIDENTIFIERLOOSE`,`\\d+`),h(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),h(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),h(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),h(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),h(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h(`BUILDIDENTIFIER`,`${f}+`),h(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),h(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),h(`FULL`,`^${c[u.FULLPLAIN]}$`),h(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),h(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),h(`GTLT`,`((?:<|>)?=?)`),h(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),h(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),h(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),h(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),h(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),h(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),h(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),h(`COERCERTL`,c[u.COERCE],!0),h(`COERCERTLFULL`,c[u.COERCEFULL],!0),h(`LONETILDE`,`(?:~>?)`),h(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,h(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),h(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),h(`LONECARET`,`(?:\\^)`),h(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,h(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),h(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),h(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),h(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),h(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,h(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),h(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),h(`STAR`,`(<|>)?=?\\s*\\*`),h(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),h(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),C=s(((e,t)=>{let n=/^[0-9]+$/,r=(e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:e<t?-1:1;let r=n.test(e),i=n.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}})),w=s(((e,t)=>{let n=x(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=b(),{safeRe:a,t:o}=S(),s=y(),{compareIdentifiers:c}=C(),l=(e,t)=>{let n=t.split(`.`);if(n.length>e.length)return!1;for(let t=0;t<n.length;t++)if(c(e[t],n[t])!==0)return!1;return!0};t.exports=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);l[4]?this.prerelease=l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<i)return t}return e}):this.prerelease=[],this.build=l[5]?l[5].split(`.`):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(`.`)}`),this.version}toString(){return this.version}compare(t){if(n(`SemVer.compare`,this.version,this.options,t),!(t instanceof e)){if(typeof t==`string`&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:+(this.patch>t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=+!!Number(n);if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];if(n===!1&&(r=[t]),l(this.prerelease,t)){let e=this.prerelease[t.split(`.`).length];isNaN(e)&&(this.prerelease=r)}else this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),T=s(((e,t)=>{let n=w();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),E=s(((e,t)=>{let n=T();t.exports=(e,t,r)=>n(e,t,r)===0})),D=s(((e,t)=>{let n=T();t.exports=(e,t,r)=>n(e,t,r)!==0})),ee=s(((e,t)=>{let n=T();t.exports=(e,t,r)=>n(e,t,r)>0})),O=s(((e,t)=>{let n=T();t.exports=(e,t,r)=>n(e,t,r)>=0})),te=s(((e,t)=>{let n=T();t.exports=(e,t,r)=>n(e,t,r)<0})),ne=s(((e,t)=>{let n=T();t.exports=(e,t,r)=>n(e,t,r)<=0})),k=s(((e,t)=>{let n=E(),r=D(),i=ee(),a=O(),o=te(),s=ne();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),re=s(((e,t)=>{let n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),s(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.semver===n?this.value=``:this.value=this.operator+this.semver.version,s(`comp`,this)}parse(e){let t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(s(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new c(e,this.options)}catch{return!1}return o(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new l(t.value,n).test(this.value):t.operator===``?t.value===``?!0:new l(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||o(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||o(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};let r=y(),{safeRe:i,t:a}=S(),o=k(),s=x(),c=w(),l=A()})),A=s(((e,t)=>{let n=/\s+/g;t.exports=class e{constructor(t,r){if(r=i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!_(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&C(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(g,``);let t=((this.options.includePrerelease&&m)|(this.options.loose&&h))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,s=i?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];e=e.replace(s,oe(this.options.includePrerelease)),o(`hyphen replace`,e),e=e.replace(c[u.COMPARATORTRIM],d),o(`comparator trim`,e),e=e.replace(c[u.TILDETRIM],f),o(`tilde trim`,e),e=e.replace(c[u.CARETTRIM],p),o(`caret trim`,e);let l=e.split(` `).map(e=>E(e,this.options)).join(` `).split(/\s+/).map(e=>ae(e,this.options));i&&(l=l.filter(e=>(o(`loose invalid filter`,e,this.options),!!e.match(c[u.COMPARATORLOOSE])))),o(`range list`,l);let v=new Map,y=l.map(e=>new a(e,this.options));for(let e of y){if(_(e))return[e];v.set(e.value,e)}v.size>1&&v.has(``)&&v.delete(``);let b=[...v.values()];return r.set(t,b),b}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>T(e,n)&&t.set.some(t=>T(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new s(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(se(this.set[t],e,this.options))return!0;return!1}};let r=new(v()),i=y(),a=re(),o=x(),s=w(),{safeRe:c,src:l,t:u,comparatorTrimReplace:d,tildeTrimReplace:f,caretTrimReplace:p}=S(),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:h}=b(),g=new RegExp(l[u.BUILD],`g`),_=e=>e.value===`<0.0.0-0`,C=e=>e.value===``,T=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},E=(e,t)=>(e=e.replace(c[u.BUILD],``),o(`comp`,e,t),e=ne(e,t),o(`caret`,e),e=O(e,t),o(`tildes`,e),e=A(e,t),o(`xrange`,e),e=j(e,t),o(`stars`,e),e),D=e=>!e||e.toLowerCase()===`x`||e===`*`,ee=(e,t,n)=>D(e)&&!D(t)||D(t)&&n&&!D(n),O=(e,t)=>e.trim().split(/\s+/).map(e=>te(e,t)).join(` `),te=(e,t)=>{let n=t.loose?c[u.TILDELOOSE]:c[u.TILDE],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`tilde`,e,t,n,i,a,s);let c;return D(n)?c=``:D(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:D(a)?c=`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:s?(o(`replaceTilde pr`,s),c=`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`):c=`>=${n}.${i}.${a} <${n}.${+i+1}.0-0`,o(`tilde return`,c),c})},ne=(e,t)=>e.trim().split(/\s+/).map(e=>k(e,t)).join(` `),k=(e,t)=>{o(`caret`,e,t);let n=t.loose?c[u.CARETLOOSE]:c[u.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`caret`,e,t,n,i,a,s);let c;return D(n)?c=``:D(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:D(a)?c=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o(`replaceCaret pr`,s),c=n===`0`?i===`0`?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o(`no pr`),c=n===`0`?i===`0`?`>=${n}.${i}.${a} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o(`caret return`,c),c})},A=(e,t)=>(o(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>ie(e,t)).join(` `)),ie=(e,t)=>{e=e.trim();let n=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(n,(n,r,i,a,s,c)=>{if(o(`xRange`,e,n,r,i,a,s,c),ee(i,a,s))return e;let l=D(i),u=l||D(a),d=u||D(s),f=d;return r===`=`&&f&&(r=``),c=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(a=0),s=0,r===`>`?(r=`>=`,u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):r===`<=`&&(r=`<`,u?i=+i+1:a=+a+1),r===`<`&&(c=`-0`),n=`${r+i}.${a}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),o(`xRange return`,n),n})},j=(e,t)=>(o(`replaceStars`,e,t),e.trim().replace(c[u.STAR],``)),ae=(e,t)=>(o(`replaceGTE0`,e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],``)),oe=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=D(r)?``:D(i)?`>=${r}.0.0${e?`-0`:``}`:D(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=D(l)?``:D(u)?`<${+l+1}.0.0-0`:D(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),se=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==a.ANY&&e[n].semver.prerelease.length>0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),ie=s(((e,t)=>{let n=A();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}})),j=`>=1.0.0 <=1.0.3`,ae=u(ie());let oe={preValidation(e){let t=e?.document?.dsl;if(!(typeof t==`string`&&(0,ae.default)(t,j,{includePrerelease:!0})))throw Error(`'Workflow' is invalid - The DSL version of the workflow '${t}' does not saisfy the DSL version range supported by this SDK '${j}'.`)}},se=new Map,ce=(e,t)=>{se.set(e,t)},M=e=>se.get(e);ce(`Workflow`,oe);var le=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;var t=class{};e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var n=class extends t{constructor(t){if(super(),!e.IDENTIFIER.test(t))throw Error(`CodeGen: name must be a valid identifier`);this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};e.Name=n;var r=class extends t{constructor(e){super(),this._items=typeof e==`string`?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===``||e===`""`}get str(){return this._str??=this._items.reduce((e,t)=>`${e}${t}`,``)}get names(){return this._names??=this._items.reduce((e,t)=>(t instanceof n&&(e[t.str]=(e[t.str]||0)+1),e),{})}};e._Code=r,e.nil=new r(``);function i(e,...t){let n=[e[0]],i=0;for(;i<t.length;)s(n,t[i]),n.push(e[++i]);return new r(n)}e._=i;let a=new r(`+`);function o(e,...t){let n=[p(e[0])],i=0;for(;i<t.length;)n.push(a),s(n,t[i]),n.push(a,p(e[++i]));return c(n),new r(n)}e.str=o;function s(e,t){t instanceof r?e.push(...t._items):t instanceof n?e.push(t):e.push(d(t))}e.addCodeArg=s;function c(e){let t=1;for(;t<e.length-1;){if(e[t]===a){let n=l(e[t-1],e[t+1]);if(n!==void 0){e.splice(t-1,3,n);continue}e[t++]=`+`}t++}}function l(e,t){if(t===`""`)return e;if(e===`""`)return t;if(typeof e==`string`)return t instanceof n||e[e.length-1]!==`"`?void 0:typeof t==`string`?t[0]===`"`?e.slice(0,-1)+t.slice(1):void 0:`${e.slice(0,-1)}${t}"`;if(typeof t==`string`&&t[0]===`"`&&!(e instanceof n))return`"${e}${t.slice(1)}`}function u(e,t){return t.emptyStr()?e:e.emptyStr()?t:o`${e}${t}`}e.strConcat=u;function d(e){return typeof e==`number`||typeof e==`boolean`||e===null?e:p(Array.isArray(e)?e.join(`,`):e)}function f(e){return new r(p(e))}e.stringify=f;function p(e){return JSON.stringify(e).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`)}e.safeStringify=p;function m(t){return typeof t==`string`&&e.IDENTIFIER.test(t)?new r(`.${t}`):i`[${t}]`}e.getProperty=m;function h(t){if(typeof t==`string`&&e.IDENTIFIER.test(t))return new r(`${t}`);throw Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}e.getEsmExportName=h;function g(e){return new r(e.toString())}e.regexpCode=g})),N=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;let t=le();var n=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},r;(function(e){e[e.Started=0]=`Started`,e[e.Completed=1]=`Completed`})(r||(e.UsedValueState=r={})),e.varKinds={const:new t.Name(`const`),let:new t.Name(`let`),var:new t.Name(`var`)};var i=class{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){let t=this._names[e]||this._nameGroup(e);return`${e}${t.index++}`}_nameGroup(e){if((this._parent?._prefixes)?.has(e)||this._prefixes&&!this._prefixes.has(e))throw Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};e.Scope=i;var a=class extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:n,itemIndex:r}){this.value=e,this.scopePath=(0,t._)`.${new t.Name(n)}[${r}]`}};e.ValueScopeName=a;let o=(0,t._)`\n`;e.ValueScope=class extends i{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?o:t.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){if(t.ref===void 0)throw Error(`CodeGen: ref must be passed in value`);let n=this.toName(e),{prefix:r}=n,i=t.key??t.ref,a=this._values[r];if(a){let e=a.get(i);if(e)return e}else a=this._values[r]=new Map;a.set(i,n);let o=this._scope[r]||(this._scope[r]=[]),s=o.length;return o[s]=t.ref,n.setValue(t,{property:r,itemIndex:s}),n}getValue(e,t){let n=this._values[e];if(n)return n.get(t)}scopeRefs(e,n=this._values){return this._reduceValues(n,n=>{if(n.scopePath===void 0)throw Error(`CodeGen: name "${n}" has no value`);return(0,t._)`${e}${n.scopePath}`})}scopeCode(e=this._values,t,n){return this._reduceValues(e,e=>{if(e.value===void 0)throw Error(`CodeGen: name "${e}" has no value`);return e.value.code},t,n)}_reduceValues(i,a,o={},s){let c=t.nil;for(let l in i){let u=i[l];if(!u)continue;let d=o[l]=o[l]||new Map;u.forEach(i=>{if(d.has(i))return;d.set(i,r.Started);let o=a(i);if(o){let n=this.opts.es5?e.varKinds.var:e.varKinds.const;c=(0,t._)`${c}${n} ${i} = ${o};${this.opts._n}`}else if(o=s?.(i))c=(0,t._)`${c}${o}${this.opts._n}`;else throw new n(i);d.set(i,r.Completed)})}return c}}})),P=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;let t=le(),n=N();var r=le();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var i=N();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(`>`),GTE:new t._Code(`>=`),LT:new t._Code(`<`),LTE:new t._Code(`<=`),EQ:new t._Code(`===`),NEQ:new t._Code(`!==`),NOT:new t._Code(`!`),OR:new t._Code(`||`),AND:new t._Code(`&&`),ADD:new t._Code(`+`)};var a=class{optimizeNodes(){return this}optimizeNames(e,t){return this}},o=class extends a{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){let r=e?n.varKinds.var:this.varKind,i=this.rhs===void 0?``:` = ${this.rhs}`;return`${r} ${this.name}${i};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&=O(this.rhs,e,t),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}},s=class extends a{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,n){if(!(this.lhs instanceof t.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=O(this.rhs,e,n),this}get names(){return ee(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}},c=class extends s{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},l=class extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},u=class extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:``};`+e}},d=class extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},f=class extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=O(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}},p=class extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((t,n)=>t+n.render(e),``)}optimizeNodes(){let{nodes:e}=this,t=e.length;for(;t--;){let n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){let{nodes:n}=this,r=n.length;for(;r--;){let i=n[r];i.optimizeNames(e,t)||(te(e,i.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>D(e,t.names),{})}},m=class extends p{render(e){return`{`+e._n+super.render(e)+`}`+e._n}},h=class extends p{},g=class extends m{};g.kind=`else`;var _=class e extends m{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+=`else `+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let n=this.else;if(n){let e=n.optimizeNodes();n=this.else=Array.isArray(e)?new g(e):e}if(n)return t===!1?n instanceof e?n:n.nodes:this.nodes.length?this:new e(ne(t),n instanceof e?[n]:n.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(e,t){if(this.else=this.else?.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=O(this.condition,e,t),this}get names(){let e=super.names;return ee(e,this.condition),this.else&&D(e,this.else.names),e}};_.kind=`if`;var v=class extends m{};v.kind=`for`;var y=class extends v{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=O(this.iteration,e,t),this}get names(){return D(super.names,this.iteration.names)}},b=class extends v{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){let t=e.es5?n.varKinds.var:this.varKind,{name:r,from:i,to:a}=this;return`for(${t} ${r}=${i}; ${r}<${a}; ${r}++)`+super.render(e)}get names(){return ee(ee(super.names,this.from),this.to)}},x=class extends v{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=O(this.iterable,e,t),this}get names(){return D(super.names,this.iterable.names)}},S=class extends m{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?`async `:``}function ${this.name}(${this.args})`+super.render(e)}};S.kind=`func`;var C=class extends p{render(e){return`return `+super.render(e)}};C.kind=`return`;var w=class extends m{render(e){let t=`try`+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),(e=this.catch)==null||e.optimizeNodes(),(t=this.finally)==null||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),(n=this.catch)==null||n.optimizeNames(e,t),(r=this.finally)==null||r.optimizeNames(e,t),this}get names(){let e=super.names;return this.catch&&D(e,this.catch.names),this.finally&&D(e,this.finally.names),e}},T=class extends m{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};T.kind=`catch`;var E=class extends m{render(e){return`finally`+super.render(e)}};E.kind=`finally`,e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?`
|
|
2
|
+
`:``},this._extScope=e,this._scope=new n.Scope({parent:e}),this._nodes=[new h]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){let n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,r){let i=this._scope.toName(t);return n!==void 0&&r&&(this._constants[i.str]=n),this._leafNode(new o(e,i,n)),i}const(e,t,r){return this._def(n.varKinds.const,e,t,r)}let(e,t,r){return this._def(n.varKinds.let,e,t,r)}var(e,t,r){return this._def(n.varKinds.var,e,t,r)}assign(e,t,n){return this._leafNode(new s(e,t,n))}add(t,n){return this._leafNode(new c(t,e.operators.ADD,n))}code(e){return typeof e==`function`?e():e!==t.nil&&this._leafNode(new f(e)),this}object(...e){let n=[`{`];for(let[r,i]of e)n.length>1&&n.push(`,`),n.push(r),(r!==i||this.opts.es5)&&(n.push(`:`),(0,t.addCodeArg)(n,i));return n.push(`}`),new t._Code(n)}if(e,t,n){if(this._blockNode(new _(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw Error(`CodeGen: "else" body without "then" body`);return this}elseIf(e){return this._elseNode(new _(e))}else(){return this._elseNode(new g)}endIf(){return this._endBlockNode(_,g)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new y(e),t)}forRange(e,t,r,i,a=this.opts.es5?n.varKinds.var:n.varKinds.let){let o=this._scope.toName(e);return this._for(new b(a,o,t,r),()=>i(o))}forOf(e,r,i,a=n.varKinds.const){let o=this._scope.toName(e);if(this.opts.es5){let e=r instanceof t.Name?r:this.var(`_arr`,r);return this.forRange(`_i`,0,(0,t._)`${e}.length`,n=>{this.var(o,(0,t._)`${e}[${n}]`),i(o)})}return this._for(new x(`of`,a,o,r),()=>i(o))}forIn(e,r,i,a=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,t._)`Object.keys(${r})`,i);let o=this._scope.toName(e);return this._for(new x(`in`,a,o,r),()=>i(o))}endFor(){return this._endBlockNode(v)}label(e){return this._leafNode(new l(e))}break(e){return this._leafNode(new u(e))}return(e){let t=new C;if(this._blockNode(t),this.code(e),t.nodes.length!==1)throw Error(`CodeGen: "return" should have one node`);return this._endBlockNode(C)}try(e,t,n){if(!t&&!n)throw Error(`CodeGen: "try" without "catch" and "finally"`);let r=new w;if(this._blockNode(r),this.code(e),t){let e=this.name(`e`);this._currNode=r.catch=new T(e),t(e)}return n&&(this._currNode=r.finally=new E,this.code(n)),this._endBlockNode(T,E)}throw(e){return this._leafNode(new d(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){let t=this._blockStarts.pop();if(t===void 0)throw Error(`CodeGen: not in self-balancing block`);let n=this._nodes.length-t;if(n<0||e!==void 0&&n!==e)throw Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,n=t.nil,r,i){return this._blockNode(new S(e,n,r)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(S)}optimize(e=1){for(;e-->0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){let n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){let t=this._currNode;if(!(t instanceof _))throw Error(`CodeGen: "else" without "if"`);return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let t=this._nodes;t[t.length-1]=e}};function D(e,t){for(let n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function ee(e,n){return n instanceof t._CodeOrName?D(e,n.names):e}function O(e,n,r){if(e instanceof t.Name)return i(e);if(!a(e))return e;return new t._Code(e._items.reduce((e,n)=>(n instanceof t.Name&&(n=i(n)),n instanceof t._Code?e.push(...n._items):e.push(n),e),[]));function i(e){let t=r[e.str];return t===void 0||n[e.str]!==1?e:(delete n[e.str],t)}function a(e){return e instanceof t._Code&&e._items.some(e=>e instanceof t.Name&&n[e.str]===1&&r[e.str]!==void 0)}}function te(e,t){for(let n in t)e[n]=(e[n]||0)-(t[n]||0)}function ne(e){return typeof e==`boolean`||typeof e==`number`||e===null?!e:(0,t._)`!${ae(e)}`}e.not=ne;let k=j(e.operators.AND);function re(...e){return e.reduce(k)}e.and=re;let A=j(e.operators.OR);function ie(...e){return e.reduce(A)}e.or=ie;function j(e){return(n,r)=>n===t.nil?r:r===t.nil?n:(0,t._)`${ae(n)} ${e} ${ae(r)}`}function ae(e){return e instanceof t.Name?e:(0,t._)`(${e})`}})),F=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;let t=P(),n=le();function r(e){let t={};for(let n of e)t[n]=!0;return t}e.toHash=r;function i(e,t){return typeof t==`boolean`?t:Object.keys(t).length===0?!0:(a(e,t),!o(t,e.self.RULES.all))}e.alwaysValidSchema=i;function a(e,t=e.schema){let{opts:n,self:r}=e;if(!n.strictSchema||typeof t==`boolean`)return;let i=r.RULES.keywords;for(let n in t)i[n]||x(e,`unknown keyword: "${n}"`)}e.checkUnknownRules=a;function o(e,t){if(typeof e==`boolean`)return!e;for(let n in e)if(t[n])return!0;return!1}e.schemaHasRules=o;function s(e,t){if(typeof e==`boolean`)return!e;for(let n in e)if(n!==`$ref`&&t.all[n])return!0;return!1}e.schemaHasRulesButRef=s;function c({topSchemaRef:e,schemaPath:n},r,i,a){if(!a){if(typeof r==`number`||typeof r==`boolean`)return r;if(typeof r==`string`)return(0,t._)`${r}`}return(0,t._)`${e}${n}${(0,t.getProperty)(i)}`}e.schemaRefOrVal=c;function l(e){return f(decodeURIComponent(e))}e.unescapeFragment=l;function u(e){return encodeURIComponent(d(e))}e.escapeFragment=u;function d(e){return typeof e==`number`?`${e}`:e.replace(/~/g,`~0`).replace(/\//g,`~1`)}e.escapeJsonPointer=d;function f(e){return e.replace(/~1/g,`/`).replace(/~0/g,`~`)}e.unescapeJsonPointer=f;function p(e,t){if(Array.isArray(e))for(let n of e)t(n);else t(e)}e.eachItem=p;function m({mergeNames:e,mergeToName:n,mergeValues:r,resultToName:i}){return(a,o,s,c)=>{let l=s===void 0?o:s instanceof t.Name?(o instanceof t.Name?e(a,o,s):n(a,o,s),s):o instanceof t.Name?(n(a,s,o),o):r(o,s);return c===t.Name&&!(l instanceof t.Name)?i(a,l):l}}e.mergeEvaluated={props:m({mergeNames:(e,n,r)=>e.if((0,t._)`${r} !== true && ${n} !== undefined`,()=>{e.if((0,t._)`${n} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,t._)`${r} || {}`).code((0,t._)`Object.assign(${r}, ${n})`))}),mergeToName:(e,n,r)=>e.if((0,t._)`${r} !== true`,()=>{n===!0?e.assign(r,!0):(e.assign(r,(0,t._)`${r} || {}`),g(e,r,n))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:h}),items:m({mergeNames:(e,n,r)=>e.if((0,t._)`${r} !== true && ${n} !== undefined`,()=>e.assign(r,(0,t._)`${n} === true ? true : ${r} > ${n} ? ${r} : ${n}`)),mergeToName:(e,n,r)=>e.if((0,t._)`${r} !== true`,()=>e.assign(r,n===!0?!0:(0,t._)`${r} > ${n} ? ${r} : ${n}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var(`items`,t)})};function h(e,n){if(n===!0)return e.var(`props`,!0);let r=e.var(`props`,(0,t._)`{}`);return n!==void 0&&g(e,r,n),r}e.evaluatedPropsToName=h;function g(e,n,r){Object.keys(r).forEach(r=>e.assign((0,t._)`${n}${(0,t.getProperty)(r)}`,!0))}e.setEvaluated=g;let _={};function v(e,t){return e.scopeValue(`func`,{ref:t,code:_[t.code]||(_[t.code]=new n._Code(t.code))})}e.useFunc=v;var y;(function(e){e[e.Num=0]=`Num`,e[e.Str=1]=`Str`})(y||(e.Type=y={}));function b(e,n,r){if(e instanceof t.Name){let i=n===y.Num;return r?i?(0,t._)`"[" + ${e} + "]"`:(0,t._)`"['" + ${e} + "']"`:i?(0,t._)`"/" + ${e}`:(0,t._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,t.getProperty)(e).toString():`/`+d(e)}e.getErrorPath=b;function x(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,n===!0)throw Error(t);e.self.logger.warn(t)}}e.checkStrictMode=x})),I=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=P();e.default={data:new t.Name(`data`),valCxt:new t.Name(`valCxt`),instancePath:new t.Name(`instancePath`),parentData:new t.Name(`parentData`),parentDataProperty:new t.Name(`parentDataProperty`),rootData:new t.Name(`rootData`),dynamicAnchors:new t.Name(`dynamicAnchors`),vErrors:new t.Name(`vErrors`),errors:new t.Name(`errors`),this:new t.Name(`this`),self:new t.Name(`self`),scope:new t.Name(`scope`),json:new t.Name(`json`),jsonPos:new t.Name(`jsonPos`),jsonLen:new t.Name(`jsonLen`),jsonPart:new t.Name(`jsonPart`)}})),L=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;let t=P(),n=F(),r=I();e.keywordError={message:({keyword:e})=>(0,t.str)`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:n})=>n?(0,t.str)`"${e}" keyword must be ${n} ($data)`:(0,t.str)`"${e}" keyword is invalid ($data)`};function i(n,r=e.keywordError,i,a){let{it:o}=n,{gen:s,compositeRule:u,allErrors:f}=o,p=d(n,r,i);a??(u||f)?c(s,p):l(o,(0,t._)`[${p}]`)}e.reportError=i;function a(t,n=e.keywordError,i){let{it:a}=t,{gen:o,compositeRule:s,allErrors:u}=a;c(o,d(t,n,i)),s||u||l(a,r.default.vErrors)}e.reportExtraError=a;function o(e,n){e.assign(r.default.errors,n),e.if((0,t._)`${r.default.vErrors} !== null`,()=>e.if(n,()=>e.assign((0,t._)`${r.default.vErrors}.length`,n),()=>e.assign(r.default.vErrors,null)))}e.resetErrorsCount=o;function s({gen:e,keyword:n,schemaValue:i,data:a,errsCount:o,it:s}){if(o===void 0)throw Error(`ajv implementation error`);let c=e.name(`err`);e.forRange(`i`,o,r.default.errors,o=>{e.const(c,(0,t._)`${r.default.vErrors}[${o}]`),e.if((0,t._)`${c}.instancePath === undefined`,()=>e.assign((0,t._)`${c}.instancePath`,(0,t.strConcat)(r.default.instancePath,s.errorPath))),e.assign((0,t._)`${c}.schemaPath`,(0,t.str)`${s.errSchemaPath}/${n}`),s.opts.verbose&&(e.assign((0,t._)`${c}.schema`,i),e.assign((0,t._)`${c}.data`,a))})}e.extendErrors=s;function c(e,n){let i=e.const(`err`,n);e.if((0,t._)`${r.default.vErrors} === null`,()=>e.assign(r.default.vErrors,(0,t._)`[${i}]`),(0,t._)`${r.default.vErrors}.push(${i})`),e.code((0,t._)`${r.default.errors}++`)}function l(e,n){let{gen:r,validateName:i,schemaEnv:a}=e;a.$async?r.throw((0,t._)`new ${e.ValidationError}(${n})`):(r.assign((0,t._)`${i}.errors`,n),r.return(!1))}let u={keyword:new t.Name(`keyword`),schemaPath:new t.Name(`schemaPath`),params:new t.Name(`params`),propertyName:new t.Name(`propertyName`),message:new t.Name(`message`),schema:new t.Name(`schema`),parentSchema:new t.Name(`parentSchema`)};function d(e,n,r){let{createErrors:i}=e.it;return i===!1?(0,t._)`{}`:f(e,n,r)}function f(e,t,n={}){let{gen:r,it:i}=e,a=[p(i,n),m(e,n)];return h(e,t,a),r.object(...a)}function p({errorPath:e},{instancePath:i}){let a=i?(0,t.str)`${e}${(0,n.getErrorPath)(i,n.Type.Str)}`:e;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,a)]}function m({keyword:e,it:{errSchemaPath:r}},{schemaPath:i,parentSchema:a}){let o=a?r:(0,t.str)`${r}/${e}`;return i&&(o=(0,t.str)`${o}${(0,n.getErrorPath)(i,n.Type.Str)}`),[u.schemaPath,o]}function h(e,{params:n,message:i},a){let{keyword:o,data:s,schemaValue:c,it:l}=e,{opts:d,propertyName:f,topSchemaRef:p,schemaPath:m}=l;a.push([u.keyword,o],[u.params,typeof n==`function`?n(e):n||(0,t._)`{}`]),d.messages&&a.push([u.message,typeof i==`function`?i(e):i]),d.verbose&&a.push([u.schema,c],[u.parentSchema,(0,t._)`${p}${m}`],[r.default.data,s]),f&&a.push([u.propertyName,f])}})),ue=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.boolOrEmptySchema=e.topBoolOrEmptySchema=void 0;let t=L(),n=P(),r=I(),i={message:`boolean schema is false`};function a(e){let{gen:t,schema:i,validateName:a}=e;i===!1?s(e,!1):typeof i==`object`&&i.$async===!0?t.return(r.default.data):(t.assign((0,n._)`${a}.errors`,null),t.return(!0))}e.topBoolOrEmptySchema=a;function o(e,t){let{gen:n,schema:r}=e;r===!1?(n.var(t,!1),s(e)):n.var(t,!0)}e.boolOrEmptySchema=o;function s(e,n){let{gen:r,data:a}=e,o={gen:r,keyword:`false schema`,data:a,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,t.reportError)(o,i,void 0,n)}})),R=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getRules=e.isJSONType=void 0;let t=new Set([`string`,`number`,`integer`,`boolean`,`null`,`object`,`array`]);function n(e){return typeof e==`string`&&t.has(e)}e.isJSONType=n;function r(){let e={number:{type:`number`,rules:[]},string:{type:`string`,rules:[]},array:{type:`array`,rules:[]},object:{type:`object`,rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}e.getRules=r})),de=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.shouldUseRule=e.shouldUseGroup=e.schemaHasRulesForType=void 0;function t({schema:e,self:t},r){let i=t.RULES.types[r];return i&&i!==!0&&n(e,i)}e.schemaHasRulesForType=t;function n(e,t){return t.rules.some(t=>r(e,t))}e.shouldUseGroup=n;function r(e,t){return e[t.keyword]!==void 0||t.definition.implements?.some(t=>e[t]!==void 0)}e.shouldUseRule=r})),fe=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;let t=R(),n=de(),r=L(),i=P(),a=F();var o;(function(e){e[e.Correct=0]=`Correct`,e[e.Wrong=1]=`Wrong`})(o||(e.DataType=o={}));function s(e){let t=c(e.type);if(t.includes(`null`)){if(e.nullable===!1)throw Error(`type: null contradicts nullable: false`)}else{if(!t.length&&e.nullable!==void 0)throw Error(`"nullable" cannot be used without "type"`);e.nullable===!0&&t.push(`null`)}return t}e.getSchemaTypes=s;function c(e){let n=Array.isArray(e)?e:e?[e]:[];if(n.every(t.isJSONType))return n;throw Error(`type must be JSONType or JSONType[]: `+n.join(`,`))}e.getJSONTypes=c;function l(e,t){let{gen:r,data:i,opts:a}=e,s=d(t,a.coerceTypes),c=t.length>0&&!(s.length===0&&t.length===1&&(0,n.schemaHasRulesForType)(e,t[0]));if(c){let n=h(t,i,a.strictNumbers,o.Wrong);r.if(n,()=>{s.length?f(e,t,s):_(e)})}return c}e.coerceAndCheckDataType=l;let u=new Set([`string`,`number`,`integer`,`boolean`,`null`]);function d(e,t){return t?e.filter(e=>u.has(e)||t===`array`&&e===`array`):[]}function f(e,t,n){let{gen:r,data:a,opts:o}=e,s=r.let(`dataType`,(0,i._)`typeof ${a}`),c=r.let(`coerced`,(0,i._)`undefined`);o.coerceTypes===`array`&&r.if((0,i._)`${s} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,()=>r.assign(a,(0,i._)`${a}[0]`).assign(s,(0,i._)`typeof ${a}`).if(h(t,a,o.strictNumbers),()=>r.assign(c,a))),r.if((0,i._)`${c} !== undefined`);for(let e of n)(u.has(e)||e===`array`&&o.coerceTypes===`array`)&&l(e);r.else(),_(e),r.endIf(),r.if((0,i._)`${c} !== undefined`,()=>{r.assign(a,c),p(e,c)});function l(e){switch(e){case`string`:r.elseIf((0,i._)`${s} == "number" || ${s} == "boolean"`).assign(c,(0,i._)`"" + ${a}`).elseIf((0,i._)`${a} === null`).assign(c,(0,i._)`""`);return;case`number`:r.elseIf((0,i._)`${s} == "boolean" || ${a} === null
|
|
3
|
+
|| (${s} == "string" && ${a} && ${a} == +${a})`).assign(c,(0,i._)`+${a}`);return;case`integer`:r.elseIf((0,i._)`${s} === "boolean" || ${a} === null
|
|
4
|
+
|| (${s} === "string" && ${a} && ${a} == +${a} && !(${a} % 1))`).assign(c,(0,i._)`+${a}`);return;case`boolean`:r.elseIf((0,i._)`${a} === "false" || ${a} === 0 || ${a} === null`).assign(c,!1).elseIf((0,i._)`${a} === "true" || ${a} === 1`).assign(c,!0);return;case`null`:r.elseIf((0,i._)`${a} === "" || ${a} === 0 || ${a} === false`),r.assign(c,null);return;case`array`:r.elseIf((0,i._)`${s} === "string" || ${s} === "number"
|
|
5
|
+
|| ${s} === "boolean" || ${a} === null`).assign(c,(0,i._)`[${a}]`)}}}function p({gen:e,parentData:t,parentDataProperty:n},r){e.if((0,i._)`${t} !== undefined`,()=>e.assign((0,i._)`${t}[${n}]`,r))}function m(e,t,n,r=o.Correct){let a=r===o.Correct?i.operators.EQ:i.operators.NEQ,s;switch(e){case`null`:return(0,i._)`${t} ${a} null`;case`array`:s=(0,i._)`Array.isArray(${t})`;break;case`object`:s=(0,i._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case`integer`:s=c((0,i._)`!(${t} % 1) && !isNaN(${t})`);break;case`number`:s=c();break;default:return(0,i._)`typeof ${t} ${a} ${e}`}return r===o.Correct?s:(0,i.not)(s);function c(e=i.nil){return(0,i.and)((0,i._)`typeof ${t} == "number"`,e,n?(0,i._)`isFinite(${t})`:i.nil)}}e.checkDataType=m;function h(e,t,n,r){if(e.length===1)return m(e[0],t,n,r);let o,s=(0,a.toHash)(e);if(s.array&&s.object){let e=(0,i._)`typeof ${t} != "object"`;o=s.null?e:(0,i._)`!${t} || ${e}`,delete s.null,delete s.array,delete s.object}else o=i.nil;s.number&&delete s.integer;for(let e in s)o=(0,i.and)(o,m(e,t,n,r));return o}e.checkDataTypes=h;let g={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e==`string`?(0,i._)`{type: ${e}}`:(0,i._)`{type: ${t}}`};function _(e){let t=v(e);(0,r.reportError)(t,g)}e.reportTypeError=_;function v(e){let{gen:t,data:n,schema:r}=e,i=(0,a.schemaRefOrVal)(e,r,`type`);return{gen:t,keyword:`type`,data:n,schema:r.type,schemaCode:i,schemaValue:i,parentSchema:r,params:{},it:e}}})),pe=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.assignDefaults=void 0;let t=P(),n=F();function r(e,t){let{properties:n,items:r}=e.schema;if(t===`object`&&n)for(let t in n)i(e,t,n[t].default);else t===`array`&&Array.isArray(r)&&r.forEach((t,n)=>i(e,n,t.default))}e.assignDefaults=r;function i(e,r,i){let{gen:a,compositeRule:o,data:s,opts:c}=e;if(i===void 0)return;let l=(0,t._)`${s}${(0,t.getProperty)(r)}`;if(o){(0,n.checkStrictMode)(e,`default is ignored for: ${l}`);return}let u=(0,t._)`${l} === undefined`;c.useDefaults===`empty`&&(u=(0,t._)`${u} || ${l} === null || ${l} === ""`),a.if(u,(0,t._)`${l} = ${(0,t.stringify)(i)}`)}})),z=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateUnion=e.validateArray=e.usePattern=e.callValidateCode=e.schemaProperties=e.allSchemaProperties=e.noPropertyInData=e.propertyInData=e.isOwnProperty=e.hasPropFunc=e.reportMissingProp=e.checkMissingProp=e.checkReportMissingProp=void 0;let t=P(),n=F(),r=I(),i=F();function a(e,n){let{gen:r,data:i,it:a}=e;r.if(d(r,i,n,a.opts.ownProperties),()=>{e.setParams({missingProperty:(0,t._)`${n}`},!0),e.error()})}e.checkReportMissingProp=a;function o({gen:e,data:n,it:{opts:r}},i,a){return(0,t.or)(...i.map(i=>(0,t.and)(d(e,n,i,r.ownProperties),(0,t._)`${a} = ${i}`)))}e.checkMissingProp=o;function s(e,t){e.setParams({missingProperty:t},!0),e.error()}e.reportMissingProp=s;function c(e){return e.scopeValue(`func`,{ref:Object.prototype.hasOwnProperty,code:(0,t._)`Object.prototype.hasOwnProperty`})}e.hasPropFunc=c;function l(e,n,r){return(0,t._)`${c(e)}.call(${n}, ${r})`}e.isOwnProperty=l;function u(e,n,r,i){let a=(0,t._)`${n}${(0,t.getProperty)(r)} !== undefined`;return i?(0,t._)`${a} && ${l(e,n,r)}`:a}e.propertyInData=u;function d(e,n,r,i){let a=(0,t._)`${n}${(0,t.getProperty)(r)} === undefined`;return i?(0,t.or)(a,(0,t.not)(l(e,n,r))):a}e.noPropertyInData=d;function f(e){return e?Object.keys(e).filter(e=>e!==`__proto__`):[]}e.allSchemaProperties=f;function p(e,t){return f(t).filter(r=>!(0,n.alwaysValidSchema)(e,t[r]))}e.schemaProperties=p;function m({schemaCode:e,data:n,it:{gen:i,topSchemaRef:a,schemaPath:o,errorPath:s},it:c},l,u,d){let f=d?(0,t._)`${e}, ${n}, ${a}${o}`:n,p=[[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,s)],[r.default.parentData,c.parentData],[r.default.parentDataProperty,c.parentDataProperty],[r.default.rootData,r.default.rootData]];c.opts.dynamicRef&&p.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);let m=(0,t._)`${f}, ${i.object(...p)}`;return u===t.nil?(0,t._)`${l}(${m})`:(0,t._)`${l}.call(${u}, ${m})`}e.callValidateCode=m;let h=(0,t._)`new RegExp`;function g({gen:e,it:{opts:n}},r){let a=n.unicodeRegExp?`u`:``,{regExp:o}=n.code,s=o(r,a);return e.scopeValue(`pattern`,{key:s.toString(),ref:s,code:(0,t._)`${o.code===`new RegExp`?h:(0,i.useFunc)(e,o)}(${r}, ${a})`})}e.usePattern=g;function _(e){let{gen:r,data:i,keyword:a,it:o}=e,s=r.name(`valid`);if(o.allErrors){let e=r.let(`valid`,!0);return c(()=>r.assign(e,!1)),e}return r.var(s,!0),c(()=>r.break()),s;function c(o){let c=r.const(`len`,(0,t._)`${i}.length`);r.forRange(`i`,0,c,i=>{e.subschema({keyword:a,dataProp:i,dataPropType:n.Type.Num},s),r.if((0,t.not)(s),o)})}}e.validateArray=_;function v(e){let{gen:r,schema:i,keyword:a,it:o}=e;if(!Array.isArray(i))throw Error(`ajv implementation error`);if(i.some(e=>(0,n.alwaysValidSchema)(o,e))&&!o.opts.unevaluated)return;let s=r.let(`valid`,!1),c=r.name(`_valid`);r.block(()=>i.forEach((n,i)=>{let o=e.subschema({keyword:a,schemaProp:i,compositeRule:!0},c);r.assign(s,(0,t._)`${s} || ${c}`),e.mergeValidEvaluated(o,c)||r.if((0,t.not)(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}e.validateUnion=v})),me=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateKeywordUsage=e.validSchemaType=e.funcKeywordCode=e.macroKeywordCode=void 0;let t=P(),n=I(),r=z(),i=L();function a(e,n){let{gen:r,keyword:i,schema:a,parentSchema:o,it:s}=e,c=n.macro.call(s.self,a,o,s),l=u(r,i,c);s.opts.validateSchema!==!1&&s.self.validateSchema(c,!0);let d=r.name(`valid`);e.subschema({schema:c,schemaPath:t.nil,errSchemaPath:`${s.errSchemaPath}/${i}`,topSchemaRef:l,compositeRule:!0},d),e.pass(d,()=>e.error(!0))}e.macroKeywordCode=a;function o(e,i){let{gen:a,keyword:o,schema:d,parentSchema:f,$data:p,it:m}=e;l(m,i);let h=u(a,o,!p&&i.compile?i.compile.call(m.self,d,f,m):i.validate),g=a.let(`valid`);e.block$data(g,_),e.ok(i.valid??g);function _(){if(i.errors===!1)b(),i.modifying&&s(e),x(()=>e.error());else{let t=i.async?v():y();i.modifying&&s(e),x(()=>c(e,t))}}function v(){let e=a.let(`ruleErrs`,null);return a.try(()=>b((0,t._)`await `),n=>a.assign(g,!1).if((0,t._)`${n} instanceof ${m.ValidationError}`,()=>a.assign(e,(0,t._)`${n}.errors`),()=>a.throw(n))),e}function y(){let e=(0,t._)`${h}.errors`;return a.assign(e,null),b(t.nil),e}function b(o=i.async?(0,t._)`await `:t.nil){let s=m.opts.passContext?n.default.this:n.default.self,c=!(`compile`in i&&!p||i.schema===!1);a.assign(g,(0,t._)`${o}${(0,r.callValidateCode)(e,h,s,c)}`,i.modifying)}function x(e){a.if((0,t.not)(i.valid??g),e)}}e.funcKeywordCode=o;function s(e){let{gen:n,data:r,it:i}=e;n.if(i.parentData,()=>n.assign(r,(0,t._)`${i.parentData}[${i.parentDataProperty}]`))}function c(e,r){let{gen:a}=e;a.if((0,t._)`Array.isArray(${r})`,()=>{a.assign(n.default.vErrors,(0,t._)`${n.default.vErrors} === null ? ${r} : ${n.default.vErrors}.concat(${r})`).assign(n.default.errors,(0,t._)`${n.default.vErrors}.length`),(0,i.extendErrors)(e)},()=>e.error())}function l({schemaEnv:e},t){if(t.async&&!e.$async)throw Error(`async keyword in sync schema`)}function u(e,n,r){if(r===void 0)throw Error(`keyword "${n}" failed to compile`);return e.scopeValue(`keyword`,typeof r==`function`?{ref:r}:{ref:r,code:(0,t.stringify)(r)})}function d(e,t,n=!1){return!t.length||t.some(t=>t===`array`?Array.isArray(e):t===`object`?e&&typeof e==`object`&&!Array.isArray(e):typeof e==t||n&&e===void 0)}e.validSchemaType=d;function f({schema:e,opts:t,self:n,errSchemaPath:r},i,a){if(Array.isArray(i.keyword)?!i.keyword.includes(a):i.keyword!==a)throw Error(`ajv implementation error`);let o=i.dependencies;if(o?.some(t=>!Object.prototype.hasOwnProperty.call(e,t)))throw Error(`parent schema must have dependencies of ${a}: ${o.join(`,`)}`);if(i.validateSchema&&!i.validateSchema(e[a])){let e=`keyword "${a}" value is invalid at path "${r}": `+n.errorsText(i.validateSchema.errors);if(t.validateSchema===`log`)n.logger.error(e);else throw Error(e)}}e.validateKeywordUsage=f})),he=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.extendSubschemaMode=e.extendSubschemaData=e.getSubschema=void 0;let t=P(),n=F();function r(e,{keyword:r,schemaProp:i,schema:a,schemaPath:o,errSchemaPath:s,topSchemaRef:c}){if(r!==void 0&&a!==void 0)throw Error(`both "keyword" and "schema" passed, only one allowed`);if(r!==void 0){let a=e.schema[r];return i===void 0?{schema:a,schemaPath:(0,t._)`${e.schemaPath}${(0,t.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${r}`}:{schema:a[i],schemaPath:(0,t._)`${e.schemaPath}${(0,t.getProperty)(r)}${(0,t.getProperty)(i)}`,errSchemaPath:`${e.errSchemaPath}/${r}/${(0,n.escapeFragment)(i)}`}}if(a!==void 0){if(o===void 0||s===void 0||c===void 0)throw Error(`"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"`);return{schema:a,schemaPath:o,topSchemaRef:c,errSchemaPath:s}}throw Error(`either "keyword" or "schema" must be passed`)}e.getSubschema=r;function i(e,r,{dataProp:i,dataPropType:a,data:o,dataTypes:s,propertyName:c}){if(o!==void 0&&i!==void 0)throw Error(`both "data" and "dataProp" passed, only one allowed`);let{gen:l}=r;if(i!==void 0){let{errorPath:o,dataPathArr:s,opts:c}=r;u(l.let(`data`,(0,t._)`${r.data}${(0,t.getProperty)(i)}`,!0)),e.errorPath=(0,t.str)`${o}${(0,n.getErrorPath)(i,a,c.jsPropertySyntax)}`,e.parentDataProperty=(0,t._)`${i}`,e.dataPathArr=[...s,e.parentDataProperty]}o!==void 0&&(u(o instanceof t.Name?o:l.let(`data`,o,!0)),c!==void 0&&(e.propertyName=c)),s&&(e.dataTypes=s);function u(t){e.data=t,e.dataLevel=r.dataLevel+1,e.dataTypes=[],r.definedProperties=new Set,e.parentData=r.data,e.dataNames=[...r.dataNames,t]}}e.extendSubschemaData=i;function a(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:i,allErrors:a}){r!==void 0&&(e.compositeRule=r),i!==void 0&&(e.createErrors=i),a!==void 0&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=n}e.extendSubschemaMode=a})),ge=s(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}})),_e=s(((e,t)=>{var n=t.exports=function(e,t,n){typeof t==`function`&&(n=t,t={}),n=t.cb||n;var i=typeof n==`function`?n:n.pre||function(){},a=n.post||function(){};r(t,i,a,e,``,e)};n.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},n.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},n.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},n.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function r(e,t,a,o,s,c,l,u,d,f){if(o&&typeof o==`object`&&!Array.isArray(o)){for(var p in t(o,s,c,l,u,d,f),o){var m=o[p];if(Array.isArray(m)){if(p in n.arrayKeywords)for(var h=0;h<m.length;h++)r(e,t,a,m[h],s+`/`+p+`/`+h,c,s,p,o,h)}else if(p in n.propsKeywords){if(m&&typeof m==`object`)for(var g in m)r(e,t,a,m[g],s+`/`+p+`/`+i(g),c,s,p,o,g)}else(p in n.keywords||e.allKeys&&!(p in n.skipKeywords))&&r(e,t,a,m,s+`/`+p,c,s,p,o)}a(o,s,c,l,u,d,f)}}function i(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}})),ve=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getSchemaRefs=e.resolveUrl=e.normalizeId=e._getFullPath=e.getFullPath=e.inlineRef=void 0;let t=F(),n=ge(),r=_e(),i=new Set([`type`,`format`,`pattern`,`maxLength`,`minLength`,`maxProperties`,`minProperties`,`maxItems`,`minItems`,`maximum`,`minimum`,`uniqueItems`,`multipleOf`,`required`,`enum`,`const`]);function a(e,t=!0){return typeof e==`boolean`?!0:t===!0?!s(e):t?c(e)<=t:!1}e.inlineRef=a;let o=new Set([`$ref`,`$recursiveRef`,`$recursiveAnchor`,`$dynamicRef`,`$dynamicAnchor`]);function s(e){for(let t in e){if(o.has(t))return!0;let n=e[t];if(Array.isArray(n)&&n.some(s)||typeof n==`object`&&s(n))return!0}return!1}function c(e){let n=0;for(let r in e)if(r===`$ref`||(n++,!i.has(r)&&(typeof e[r]==`object`&&(0,t.eachItem)(e[r],e=>n+=c(e)),n===1/0)))return 1/0;return n}function l(e,t=``,n){return n!==!1&&(t=f(t)),u(e,e.parse(t))}e.getFullPath=l;function u(e,t){return e.serialize(t).split(`#`)[0]+`#`}e._getFullPath=u;let d=/#\/?$/;function f(e){return e?e.replace(d,``):``}e.normalizeId=f;function p(e,t,n){return n=f(n),e.resolve(t,n)}e.resolveUrl=p;let m=/^[a-z_][-a-z0-9._]*$/i;function h(e,t){if(typeof e==`boolean`)return{};let{schemaId:i,uriResolver:a}=this.opts,o=f(e[i]||t),s={"":o},c=l(a,o,!1),u={},d=new Set;return r(e,{allKeys:!0},(e,t,n,r)=>{if(r===void 0)return;let a=c+t,o=s[r];typeof e[i]==`string`&&(o=l.call(this,e[i])),g.call(this,e.$anchor),g.call(this,e.$dynamicAnchor),s[t]=o;function l(t){let n=this.opts.uriResolver.resolve;if(t=f(o?n(o,t):t),d.has(t))throw h(t);d.add(t);let r=this.refs[t];return typeof r==`string`&&(r=this.refs[r]),typeof r==`object`?p(e,r.schema,t):t!==f(a)&&(t[0]===`#`?(p(e,u[t],t),u[t]=e):this.refs[t]=a),t}function g(e){if(typeof e==`string`){if(!m.test(e))throw Error(`invalid anchor "${e}"`);l.call(this,`#${e}`)}}}),u;function p(e,t,r){if(t!==void 0&&!n(e,t))throw h(r)}function h(e){return Error(`reference "${e}" resolves to more than one schema`)}}e.getSchemaRefs=h})),ye=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getData=e.KeywordCxt=e.validateFunctionCode=void 0;let t=ue(),n=fe(),r=de(),i=fe(),a=pe(),o=me(),s=he(),c=P(),l=I(),u=ve(),d=F(),f=L();function p(e){if(S(e)&&(w(e),x(e))){_(e);return}m(e,()=>(0,t.topBoolOrEmptySchema)(e))}e.validateFunctionCode=p;function m({gen:e,validateName:t,schema:n,schemaEnv:r,opts:i},a){i.code.es5?e.func(t,(0,c._)`${l.default.data}, ${l.default.valCxt}`,r.$async,()=>{e.code((0,c._)`"use strict"; ${y(n,i)}`),g(e,i),e.code(a)}):e.func(t,(0,c._)`${l.default.data}, ${h(i)}`,r.$async,()=>e.code(y(n,i)).code(a))}function h(e){return(0,c._)`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${e.dynamicRef?(0,c._)`, ${l.default.dynamicAnchors}={}`:c.nil}}={}`}function g(e,t){e.if(l.default.valCxt,()=>{e.var(l.default.instancePath,(0,c._)`${l.default.valCxt}.${l.default.instancePath}`),e.var(l.default.parentData,(0,c._)`${l.default.valCxt}.${l.default.parentData}`),e.var(l.default.parentDataProperty,(0,c._)`${l.default.valCxt}.${l.default.parentDataProperty}`),e.var(l.default.rootData,(0,c._)`${l.default.valCxt}.${l.default.rootData}`),t.dynamicRef&&e.var(l.default.dynamicAnchors,(0,c._)`${l.default.valCxt}.${l.default.dynamicAnchors}`)},()=>{e.var(l.default.instancePath,(0,c._)`""`),e.var(l.default.parentData,(0,c._)`undefined`),e.var(l.default.parentDataProperty,(0,c._)`undefined`),e.var(l.default.rootData,l.default.data),t.dynamicRef&&e.var(l.default.dynamicAnchors,(0,c._)`{}`)})}function _(e){let{schema:t,opts:n,gen:r}=e;m(e,()=>{n.$comment&&t.$comment&&te(e),D(e),r.let(l.default.vErrors,null),r.let(l.default.errors,0),n.unevaluated&&v(e),T(e),ne(e)})}function v(e){let{gen:t,validateName:n}=e;e.evaluated=t.const(`evaluated`,(0,c._)`${n}.evaluated`),t.if((0,c._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,c._)`${e.evaluated}.props`,(0,c._)`undefined`)),t.if((0,c._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,c._)`${e.evaluated}.items`,(0,c._)`undefined`))}function y(e,t){let n=typeof e==`object`&&e[t.schemaId];return n&&(t.code.source||t.code.process)?(0,c._)`/*# sourceURL=${n} */`:c.nil}function b(e,n){if(S(e)&&(w(e),x(e))){C(e,n);return}(0,t.boolOrEmptySchema)(e,n)}function x({schema:e,self:t}){if(typeof e==`boolean`)return!e;for(let n in e)if(t.RULES.all[n])return!0;return!1}function S(e){return typeof e.schema!=`boolean`}function C(e,t){let{schema:n,gen:r,opts:i}=e;i.$comment&&n.$comment&&te(e),ee(e),O(e);let a=r.const(`_errs`,l.default.errors);T(e,a),r.var(t,(0,c._)`${a} === ${l.default.errors}`)}function w(e){(0,d.checkUnknownRules)(e),E(e)}function T(e,t){if(e.opts.jtd)return re(e,[],!1,t);let r=(0,n.getSchemaTypes)(e.schema);re(e,r,!(0,n.coerceAndCheckDataType)(e,r),t)}function E(e){let{schema:t,errSchemaPath:n,opts:r,self:i}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,d.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function D(e){let{schema:t,opts:n}=e;t.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,d.checkStrictMode)(e,`default is ignored in the schema root`)}function ee(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,u.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function O(e){if(e.schema.$async&&!e.schemaEnv.$async)throw Error(`async schema in sync schema`)}function te({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:i}){let a=n.$comment;if(i.$comment===!0)e.code((0,c._)`${l.default.self}.logger.log(${a})`);else if(typeof i.$comment==`function`){let n=(0,c.str)`${r}/$comment`,i=e.scopeValue(`root`,{ref:t.root});e.code((0,c._)`${l.default.self}.opts.$comment(${a}, ${n}, ${i}.schema)`)}}function ne(e){let{gen:t,schemaEnv:n,validateName:r,ValidationError:i,opts:a}=e;n.$async?t.if((0,c._)`${l.default.errors} === 0`,()=>t.return(l.default.data),()=>t.throw((0,c._)`new ${i}(${l.default.vErrors})`)):(t.assign((0,c._)`${r}.errors`,l.default.vErrors),a.unevaluated&&k(e),t.return((0,c._)`${l.default.errors} === 0`))}function k({gen:e,evaluated:t,props:n,items:r}){n instanceof c.Name&&e.assign((0,c._)`${t}.props`,n),r instanceof c.Name&&e.assign((0,c._)`${t}.items`,r)}function re(e,t,n,a){let{gen:o,schema:s,data:u,allErrors:f,opts:p,self:m}=e,{RULES:h}=m;if(s.$ref&&(p.ignoreKeywordsWithRef||!(0,d.schemaHasRulesButRef)(s,h))){o.block(()=>R(e,`$ref`,h.all.$ref.definition));return}p.jtd||ie(e,t),o.block(()=>{for(let e of h.rules)g(e);g(h.post)});function g(d){(0,r.shouldUseGroup)(s,d)&&(d.type?(o.if((0,i.checkDataType)(d.type,u,p.strictNumbers)),A(e,d),t.length===1&&t[0]===d.type&&n&&(o.else(),(0,i.reportTypeError)(e)),o.endIf()):A(e,d),f||o.if((0,c._)`${l.default.errors} === ${a||0}`))}}function A(e,t){let{gen:n,schema:i,opts:{useDefaults:o}}=e;o&&(0,a.assignDefaults)(e,t.type),n.block(()=>{for(let n of t.rules)(0,r.shouldUseRule)(i,n)&&R(e,n.keyword,n.definition,t.type)})}function ie(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(j(e,t),e.opts.allowUnionTypes||ae(e,t),oe(e,e.dataTypes))}function j(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(t=>{ce(e.dataTypes,t)||le(e,`type "${t}" not allowed by context "${e.dataTypes.join(`,`)}"`)}),M(e,t)}}function ae(e,t){t.length>1&&!(t.length===2&&t.includes(`null`))&&le(e,`use allowUnionTypes to allow union type keyword`)}function oe(e,t){let n=e.self.RULES.all;for(let i in n){let a=n[i];if(typeof a==`object`&&(0,r.shouldUseRule)(e.schema,a)){let{type:n}=a.definition;n.length&&!n.some(e=>se(t,e))&&le(e,`missing type "${n.join(`,`)}" for keyword "${i}"`)}}}function se(e,t){return e.includes(t)||t===`number`&&e.includes(`integer`)}function ce(e,t){return e.includes(t)||t===`integer`&&e.includes(`number`)}function M(e,t){let n=[];for(let r of e.dataTypes)ce(t,r)?n.push(r):t.includes(`integer`)&&r===`number`&&n.push(`integer`);e.dataTypes=n}function le(e,t){let n=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${n}" (strictTypes)`,(0,d.checkStrictMode)(e,t,e.opts.strictTypes)}var N=class{constructor(e,t,n){if((0,o.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,d.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const(`vSchema`,_e(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);(`code`in t?t.trackErrors:t.errors!==!1)&&(this.errsCount=e.gen.const(`_errs`,l.default.errors))}result(e,t,n){this.failResult((0,c.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,c.not)(e),void 0,t)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:t}=this;this.fail((0,c._)`${t} !== undefined && (${(0,c.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t){this.setParams(t),this._error(e,n),this.setParams({});return}this._error(e,n)}_error(e,t){(e?f.reportExtraError:f.reportError)(this,this.def.error,t)}$dataError(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}reset(){if(this.errsCount===void 0)throw Error(`add "trackErrors" to keyword definition`);(0,f.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=c.nil){this.gen.block(()=>{this.check$data(e,n),t()})}check$data(e=c.nil,t=c.nil){if(!this.$data)return;let{gen:n,schemaCode:r,schemaType:i,def:a}=this;n.if((0,c.or)((0,c._)`${r} === undefined`,t)),e!==c.nil&&n.assign(e,!0),(i.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==c.nil&&n.assign(e,!1)),n.else()}invalid$data(){let{gen:e,schemaCode:t,schemaType:n,def:r,it:a}=this;return(0,c.or)(o(),s());function o(){if(n.length){if(!(t instanceof c.Name))throw Error(`ajv implementation error`);let e=Array.isArray(n)?n:[n];return(0,c._)`${(0,i.checkDataTypes)(e,t,a.opts.strictNumbers,i.DataType.Wrong)}`}return c.nil}function s(){if(r.validateSchema){let n=e.scopeValue(`validate$data`,{ref:r.validateSchema});return(0,c._)`!${n}(${t})`}return c.nil}}subschema(e,t){let n=(0,s.getSubschema)(this.it,e);(0,s.extendSubschemaData)(n,this.it,e),(0,s.extendSubschemaMode)(n,e);let r={...this.it,...n,items:void 0,props:void 0};return b(r,t),r}mergeEvaluated(e,t){let{it:n,gen:r}=this;n.opts.unevaluated&&(n.props!==!0&&e.props!==void 0&&(n.props=d.mergeEvaluated.props(r,e.props,n.props,t)),n.items!==!0&&e.items!==void 0&&(n.items=d.mergeEvaluated.items(r,e.items,n.items,t)))}mergeValidEvaluated(e,t){let{it:n,gen:r}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return r.if(t,()=>this.mergeEvaluated(e,c.Name)),!0}};e.KeywordCxt=N;function R(e,t,n,r){let i=new N(e,n,t);`code`in n?n.code(i,r):i.$data&&n.validate?(0,o.funcKeywordCode)(i,n):`macro`in n?(0,o.macroKeywordCode)(i,n):(n.compile||n.validate)&&(0,o.funcKeywordCode)(i,n)}let z=/^\/(?:[^~]|~0|~1)*$/,ge=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function _e(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let i,a;if(e===``)return l.default.rootData;if(e[0]===`/`){if(!z.test(e))throw Error(`Invalid JSON-pointer: ${e}`);i=e,a=l.default.rootData}else{let o=ge.exec(e);if(!o)throw Error(`Invalid JSON-pointer: ${e}`);let s=+o[1];if(i=o[2],i===`#`){if(s>=t)throw Error(u(`property/index`,s));return r[t-s]}if(s>t)throw Error(u(`data`,s));if(a=n[t-s],!i)return a}let o=a,s=i.split(`/`);for(let e of s)e&&(a=(0,c._)`${a}${(0,c.getProperty)((0,d.unescapeJsonPointer)(e))}`,o=(0,c._)`${o} && ${a}`);return o;function u(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}e.getData=_e})),be=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=class extends Error{constructor(e){super(`validation failed`),this.errors=e,this.ajv=this.validation=!0}}})),B=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ve();e.default=class extends Error{constructor(e,n,r,i){super(i||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,t.resolveUrl)(e,n,r),this.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(e,this.missingRef))}}})),xe=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.resolveSchema=e.getCompilingSchema=e.resolveRef=e.compileSchema=e.SchemaEnv=void 0;let t=P(),n=be(),r=I(),i=ve(),a=F(),o=ye();var s=class{constructor(e){this.refs={},this.dynamicAnchors={};let t;typeof e.schema==`object`&&(t=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=e.baseId??(0,i.normalizeId)(t?.[e.schemaId||`$id`]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=t?.$async,this.refs={}}};e.SchemaEnv=s;function c(e){let a=d.call(this,e);if(a)return a;let s=(0,i.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:c,lines:l}=this.opts.code,{ownProperties:u}=this.opts,f=new t.CodeGen(this.scope,{es5:c,lines:l,ownProperties:u}),p;e.$async&&(p=f.scopeValue(`Error`,{ref:n.default,code:(0,t._)`require("ajv/dist/runtime/validation_error").default`}));let m=f.scopeName(`validate`);e.validateName=m;let h={gen:f,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[t.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:f.scopeValue(`schema`,this.opts.code.source===!0?{ref:e.schema,code:(0,t.stringify)(e.schema)}:{ref:e.schema}),validateName:m,ValidationError:p,schema:e.schema,schemaEnv:e,rootId:s,baseId:e.baseId||s,schemaPath:t.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?``:`#`),errorPath:(0,t._)`""`,opts:this.opts,self:this},g;try{this._compilations.add(e),(0,o.validateFunctionCode)(h),f.optimize(this.opts.code.optimize);let n=f.toString();g=`${f.scopeRefs(r.default.scope)}return ${n}`,this.opts.code.process&&(g=this.opts.code.process(g,e));let i=Function(`${r.default.self}`,`${r.default.scope}`,g)(this,this.scope.get());if(this.scope.value(m,{ref:i}),i.errors=null,i.schema=e.schema,i.schemaEnv=e,e.$async&&(i.$async=!0),this.opts.code.source===!0&&(i.source={validateName:m,validateCode:n,scopeValues:f._values}),this.opts.unevaluated){let{props:e,items:n}=h;i.evaluated={props:e instanceof t.Name?void 0:e,items:n instanceof t.Name?void 0:n,dynamicProps:e instanceof t.Name,dynamicItems:n instanceof t.Name},i.source&&(i.source.evaluated=(0,t.stringify)(i.evaluated))}return e.validate=i,e}catch(t){throw delete e.validate,delete e.validateName,g&&this.logger.error(`Error compiling schema, function code:`,g),t}finally{this._compilations.delete(e)}}e.compileSchema=c;function l(e,t,n){n=(0,i.resolveUrl)(this.opts.uriResolver,t,n);let r=e.refs[n];if(r)return r;let a=p.call(this,e,n);if(a===void 0){let r=e.localRefs?.[n],{schemaId:i}=this.opts;r&&(a=new s({schema:r,schemaId:i,root:e,baseId:t}))}if(a!==void 0)return e.refs[n]=u.call(this,a)}e.resolveRef=l;function u(e){return(0,i.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:c.call(this,e)}function d(e){for(let t of this._compilations)if(f(t,e))return t}e.getCompilingSchema=d;function f(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function p(e,t){let n;for(;typeof(n=this.refs[t])==`string`;)t=n;return n||this.schemas[t]||m.call(this,e,t)}function m(e,t){let n=this.opts.uriResolver.parse(t),r=(0,i._getFullPath)(this.opts.uriResolver,n),a=(0,i.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===a)return g.call(this,n,e);let o=(0,i.normalizeId)(r),l=this.refs[o]||this.schemas[o];if(typeof l==`string`){let t=m.call(this,e,l);return typeof t?.schema==`object`?g.call(this,n,t):void 0}if(typeof l?.schema==`object`){if(l.validate||c.call(this,l),o===(0,i.normalizeId)(t)){let{schema:t}=l,{schemaId:n}=this.opts,r=t[n];return r&&(a=(0,i.resolveUrl)(this.opts.uriResolver,a,r)),new s({schema:t,schemaId:n,root:e,baseId:a})}return g.call(this,n,l)}}e.resolveSchema=m;let h=new Set([`properties`,`patternProperties`,`enum`,`dependencies`,`definitions`]);function g(e,{baseId:t,schema:n,root:r}){if(e.fragment?.[0]!==`/`)return;for(let r of e.fragment.slice(1).split(`/`)){if(typeof n==`boolean`)return;let e=n[(0,a.unescapeFragment)(r)];if(e===void 0)return;n=e;let o=typeof n==`object`&&n[this.opts.schemaId];!h.has(r)&&o&&(t=(0,i.resolveUrl)(this.opts.uriResolver,t,o))}let o;if(typeof n!=`boolean`&&n.$ref&&!(0,a.schemaHasRulesButRef)(n,this.RULES)){let e=(0,i.resolveUrl)(this.opts.uriResolver,t,n.$ref);o=m.call(this,r,e)}let{schemaId:c}=this.opts;if(o||=new s({schema:n,schemaId:c,root:r,baseId:t}),o.schema!==o.root.schema)return o}})),Se=s(((e,t)=>{t.exports={$id:`https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#`,description:`Meta-schema for $data reference (JSON AnySchema extension proposal)`,type:`object`,required:[`$data`],properties:{$data:{type:`string`,anyOf:[{format:`relative-json-pointer`},{format:`json-pointer`}]}},additionalProperties:!1}})),Ce=s(((e,t)=>{let n=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),r=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),i=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),a=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),o=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function s(e){let t=``,n=0,r=0;for(r=0;r<e.length;r++)if(n=e[r].charCodeAt(0),n!==48){if(!(n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102))return``;t+=e[r];break}for(r+=1;r<e.length;r++){if(n=e[r].charCodeAt(0),!(n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102))return``;t+=e[r]}return t}let c=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function l(e){return e.length=0,!0}function u(e,t,n){if(e.length){let r=s(e);if(r!==``)t.push(r);else return n.error=!0,!1;e.length=0}return!0}function d(e){let t=0,n={error:!1,address:``,zone:``},r=[],i=[],a=!1,o=!1,c=u;for(let s=0;s<e.length;s++){let u=e[s];if(!(u===`[`||u===`]`))if(u===`:`){if(a===!0&&(o=!0),!c(i,r,n))break;if(++t>7){n.error=!0;break}s>0&&e[s-1]===`:`&&(a=!0),r.push(`:`);continue}else if(u===`%`){if(!c(i,r,n))break;c=l}else{i.push(u);continue}}return i.length&&(c===l?n.zone=i.join(``):o?r.push(i.join(``)):r.push(s(i))),n.address=r.join(``),n}function f(e){if(p(e,`:`)<2)return{host:e,isIPV6:!1};let t=d(e);if(t.error)return{host:e,isIPV6:!1};{let e=t.address,n=t.address;return t.zone&&(e+=`%`+t.zone,n+=`%25`+t.zone),{host:e,isIPV6:!0,escapedHost:n}}}function p(e,t){let n=0;for(let r=0;r<e.length;r++)e[r]===t&&n++;return n}function m(e){let t=e,n=[],r=-1,i=0;for(;i=t.length;){if(i===1){if(t===`.`)break;if(t===`/`){n.push(`/`);break}else{n.push(t);break}}else if(i===2){if(t[0]===`.`){if(t[1]===`.`)break;if(t[1]===`/`){t=t.slice(2);continue}}else if(t[0]===`/`&&(t[1]===`.`||t[1]===`/`)){n.push(`/`);break}}else if(i===3&&t===`/..`){n.length!==0&&n.pop(),n.push(`/`);break}if(t[0]===`.`){if(t[1]===`.`){if(t[2]===`/`){t=t.slice(3);continue}}else if(t[1]===`/`){t=t.slice(2);continue}}else if(t[0]===`/`&&t[1]===`.`){if(t[2]===`/`){t=t.slice(2);continue}else if(t[2]===`.`&&t[3]===`/`){t=t.slice(3),n.length!==0&&n.pop();continue}}if((r=t.indexOf(`/`,1))===-1){n.push(t);break}else n.push(t.slice(0,r)),t=t.slice(r)}return n.join(``)}let h={"@":`%40`,"/":`%2F`,"?":`%3F`,"#":`%23`,":":`%3A`},g=/[@/?#:]/g,_=/[@/?#]/g;function v(e,t){let n=t?_:g;return n.lastIndex=0,e.replace(n,e=>h[e])}function y(e,t=!1){if(e.indexOf(`%`)===-1)return e;let n=``;for(let r=0;r<e.length;r++){if(e[r]===`%`&&r+2<e.length){let o=e.slice(r+1,r+3);if(i(o)){let e=o.toUpperCase(),i=String.fromCharCode(parseInt(e,16));t&&a(i)?n+=i:n+=`%`+e,r+=2;continue}}n+=e[r]}return n}function b(e){let t=``;for(let n=0;n<e.length;n++){if(e[n]===`%`&&n+2<e.length){let r=e.slice(n+1,n+3);if(i(r)){let e=r.toUpperCase(),i=String.fromCharCode(parseInt(e,16));i!==`.`&&a(i)?t+=i:t+=`%`+e,n+=2;continue}}o(e[n])?t+=e[n]:t+=escape(e[n])}return t}function x(e){let t=``;for(let n=0;n<e.length;n++){if(e[n]===`%`&&n+2<e.length){let r=e.slice(n+1,n+3);if(i(r)){t+=`%`+r.toUpperCase(),n+=2;continue}}t+=escape(e[n])}return t}function S(e){let t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push(`@`)),e.host!==void 0){let n=unescape(e.host);if(!r(n)){let e=f(n);n=e.isIPV6===!0?`[${e.escapedHost}]`:v(n,!1)}t.push(n)}return(typeof e.port==`number`||typeof e.port==`string`)&&(t.push(`:`),t.push(String(e.port))),t.length?t.join(``):void 0}t.exports={nonSimpleDomain:c,recomposeAuthority:S,reescapeHostDelimiters:v,normalizePercentEncoding:y,normalizePathEncoding:b,escapePreservingEscapes:x,removeDotSegments:m,isIPv4:r,isUUID:n,normalizeIPv6:f,stringArrayToHexStripped:s}})),we=s(((e,t)=>{let{isUUID:n}=Ce(),r=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,i=[`http`,`https`,`ws`,`wss`,`urn`,`urn:uuid`];function a(e){return i.indexOf(e)!==-1}function o(e){return e.secure===!0?!0:e.secure===!1?!1:e.scheme?e.scheme.length===3&&(e.scheme[0]===`w`||e.scheme[0]===`W`)&&(e.scheme[1]===`s`||e.scheme[1]===`S`)&&(e.scheme[2]===`s`||e.scheme[2]===`S`):!1}function s(e){return e.host||(e.error=e.error||`HTTP URIs must have a host.`),e}function c(e){let t=String(e.scheme).toLowerCase()===`https`;return(e.port===(t?443:80)||e.port===``)&&(e.port=void 0),e.path||=`/`,e}function l(e){return e.secure=o(e),e.resourceName=(e.path||`/`)+(e.query?`?`+e.query:``),e.path=void 0,e.query=void 0,e}function u(e){if((e.port===(o(e)?443:80)||e.port===``)&&(e.port=void 0),typeof e.secure==`boolean`&&(e.scheme=e.secure?`wss`:`ws`,e.secure=void 0),e.resourceName){let[t,n]=e.resourceName.split(`?`);e.path=t&&t!==`/`?t:void 0,e.query=n,e.resourceName=void 0}return e.fragment=void 0,e}function d(e,t){if(!e.path)return e.error=`URN can not be parsed`,e;let n=e.path.match(r);if(n){let r=t.scheme||e.scheme||`urn`;e.nid=n[1].toLowerCase(),e.nss=n[2];let i=y(`${r}:${t.nid||e.nid}`);e.path=void 0,i&&(e=i.parse(e,t))}else e.error=e.error||`URN can not be parsed.`;return e}function f(e,t){if(e.nid===void 0)throw Error(`URN without nid cannot be serialized`);let n=t.scheme||e.scheme||`urn`,r=e.nid.toLowerCase(),i=y(`${n}:${t.nid||r}`);i&&(e=i.serialize(e,t));let a=e,o=e.nss;return a.path=`${r||t.nid}:${o}`,t.skipEscape=!0,a}function p(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!n(r.uuid))&&(r.error=r.error||`UUID is not valid.`),r}function m(e){let t=e;return t.nss=(e.uuid||``).toLowerCase(),t}let h={scheme:`http`,domainHost:!0,parse:s,serialize:c},g={scheme:`https`,domainHost:h.domainHost,parse:s,serialize:c},_={scheme:`ws`,domainHost:!0,parse:l,serialize:u},v={http:h,https:g,ws:_,wss:{scheme:`wss`,domainHost:_.domainHost,parse:_.parse,serialize:_.serialize},urn:{scheme:`urn`,parse:d,serialize:f,skipNormalize:!0},"urn:uuid":{scheme:`urn:uuid`,parse:p,serialize:m,skipNormalize:!0}};Object.setPrototypeOf(v,null);function y(e){return e&&(v[e]||v[e.toLowerCase()])||void 0}t.exports={wsIsSecure:o,SCHEMES:v,isValidSchemeName:a,getSchemeHandler:y}})),Te=s(((e,t)=>{let{normalizeIPv6:n,removeDotSegments:r,recomposeAuthority:i,normalizePercentEncoding:a,normalizePathEncoding:o,escapePreservingEscapes:s,reescapeHostDelimiters:c,isIPv4:l,nonSimpleDomain:u}=Ce(),{SCHEMES:d,getSchemeHandler:f}=we();function p(e,t){return typeof e==`string`?e=S(e,t):typeof e==`object`&&(e=x(_(e,t),t)),e}function m(e,t,n){let r=n?Object.assign({scheme:`null`},n):{scheme:`null`},i=h(x(e,r),x(t,r),r,!0);return r.skipEscape=!0,_(i,r)}function h(e,t,n,i){let a={};return i||(e=x(_(e,n),n),t=x(_(t,n),n)),n||={},!n.tolerant&&t.scheme?(a.scheme=t.scheme,a.userinfo=t.userinfo,a.host=t.host,a.port=t.port,a.path=r(t.path||``),a.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(a.userinfo=t.userinfo,a.host=t.host,a.port=t.port,a.path=r(t.path||``),a.query=t.query):(t.path?(t.path[0]===`/`?a.path=r(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?a.path=`/`+t.path:e.path?a.path=e.path.slice(0,e.path.lastIndexOf(`/`)+1)+t.path:a.path=t.path,a.path=r(a.path)),a.query=t.query):(a.path=e.path,t.query===void 0?a.query=e.query:a.query=t.query),a.userinfo=e.userinfo,a.host=e.host,a.port=e.port),a.scheme=e.scheme),a.fragment=t.fragment,a}function g(e,t,n){let r=w(e,n),i=w(t,n);return r!==void 0&&i!==void 0&&r.toLowerCase()===i.toLowerCase()}function _(e,t){let n={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:``},o=Object.assign({},t),c=[],l=f(o.scheme||n.scheme);l&&l.serialize&&l.serialize(n,o),n.path!==void 0&&(o.skipEscape?n.path=a(n.path):(n.path=s(n.path),n.scheme!==void 0&&(n.path=n.path.split(`%3A`).join(`:`)))),o.reference!==`suffix`&&n.scheme&&c.push(n.scheme,`:`);let u=i(n);if(u!==void 0&&(o.reference!==`suffix`&&c.push(`//`),c.push(u),n.path&&n.path[0]!==`/`&&c.push(`/`)),n.path!==void 0){let e=n.path;!o.absolutePath&&(!l||!l.absolutePath)&&(e=r(e)),u===void 0&&e[0]===`/`&&e[1]===`/`&&(e=`/%2F`+e.slice(2)),c.push(e)}return n.query!==void 0&&c.push(`?`,n.query),n.fragment!==void 0&&c.push(`#`,n.fragment),c.join(``)}let v=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function y(e,t){if(t[2]!==void 0&&e.path&&e.path[0]!==`/`)return`URI path must start with "/" when authority is present.`;if(typeof e.port==`number`&&(e.port<0||e.port>65535))return`URI port is malformed.`}function b(e,t){let r=Object.assign({},t),i={scheme:void 0,userinfo:void 0,host:``,port:void 0,path:``,query:void 0,fragment:void 0},a=!1,s=!1;r.reference===`suffix`&&(e=r.scheme?r.scheme+`:`+e:`//`+e);let d=e.match(v);if(d){i.scheme=d[1],i.userinfo=d[3],i.host=d[4],i.port=parseInt(d[5],10),i.path=d[6]||``,i.query=d[7],i.fragment=d[8],isNaN(i.port)&&(i.port=d[5]);let t=y(i,d);if(t!==void 0&&(i.error=i.error||t,a=!0),i.host)if(l(i.host)===!1){let e=n(i.host);i.host=e.host.toLowerCase(),s=e.isIPV6}else s=!0;i.scheme===void 0&&i.userinfo===void 0&&i.host===void 0&&i.port===void 0&&i.query===void 0&&!i.path?i.reference=`same-document`:i.scheme===void 0?i.reference=`relative`:i.fragment===void 0?i.reference=`absolute`:i.reference=`uri`,r.reference&&r.reference!==`suffix`&&r.reference!==i.reference&&(i.error=i.error||`URI is not a `+r.reference+` reference.`);let p=f(r.scheme||i.scheme);if(!r.unicodeSupport&&(!p||!p.unicodeSupport)&&i.host&&(r.domainHost||p&&p.domainHost)&&s===!1&&u(i.host))try{i.host=URL.domainToASCII(i.host.toLowerCase())}catch(e){i.error=i.error||`Host's domain name can not be converted to ASCII: `+e}if((!p||p&&!p.skipNormalize)&&(e.indexOf(`%`)!==-1&&(i.scheme!==void 0&&(i.scheme=unescape(i.scheme)),i.host!==void 0&&(i.host=c(unescape(i.host),s))),i.path&&=o(i.path),i.fragment))try{i.fragment=encodeURI(decodeURIComponent(i.fragment))}catch{i.error=i.error||`URI malformed`}p&&p.parse&&p.parse(i,r)}else i.error=i.error||`URI can not be parsed.`;return{parsed:i,malformedAuthorityOrPort:a}}function x(e,t){return b(e,t).parsed}function S(e,t){return C(e,t).normalized}function C(e,t){let{parsed:n,malformedAuthorityOrPort:r}=b(e,t);return{normalized:r?e:_(n,t),malformedAuthorityOrPort:r}}function w(e,t){if(typeof e==`string`){let{normalized:n,malformedAuthorityOrPort:r}=C(e,t);return r?void 0:n}if(typeof e==`object`)return _(e,t)}let T={SCHEMES:d,normalize:p,resolve:m,resolveComponent:h,equal:g,serialize:_,parse:x};t.exports=T,t.exports.default=T,t.exports.fastUri=T})),Ee=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Te();t.code=`require("ajv/dist/runtime/uri").default`,e.default=t})),V=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=ye();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var n=P();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});let r=be(),i=B(),a=R(),o=xe(),s=P(),c=ve(),l=fe(),u=F(),d=Se(),f=Ee(),p=(e,t)=>new RegExp(e,t);p.code=`new RegExp`;let m=[`removeAdditional`,`useDefaults`,`coerceTypes`],h=new Set([`validate`,`serialize`,`parse`,`wrapper`,`root`,`schema`,`keyword`,`pattern`,`formats`,`validate$data`,`func`,`obj`,`Error`]),g={errorDataPath:``,format:"`validateFormats: false` can be used instead.",nullable:`"nullable" keyword is supported by default.`,jsonPointers:`Deprecated jsPropertySyntax can be used instead.`,extendRefs:`Deprecated ignoreKeywordsWithRef can be used instead.`,missingRefs:`Pass empty schema with $id that should be ignored to ajv.addSchema.`,processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:`"uniqueItems" keyword is always validated.`,unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:`Map is used as cache, schema object as key.`,serialize:`Map is used as cache, schema object as key.`,ajvErrors:`It is default now.`},_={ignoreKeywordsWithRef:``,jsPropertySyntax:``,unicode:`"minLength"/"maxLength" account for unicode characters by default.`};function v(e){let t=e.strict,n=e.code?.optimize,r=n===!0||n===void 0?1:n||0,i=e.code?.regExp??p,a=e.uriResolver??f.default;return{strictSchema:e.strictSchema??t??!0,strictNumbers:e.strictNumbers??t??!0,strictTypes:e.strictTypes??t??`log`,strictTuples:e.strictTuples??t??`log`,strictRequired:e.strictRequired??t??!1,code:e.code?{...e.code,optimize:r,regExp:i}:{optimize:r,regExp:i},loopRequired:e.loopRequired??200,loopEnum:e.loopEnum??200,meta:e.meta??!0,messages:e.messages??!0,inlineRefs:e.inlineRefs??!0,schemaId:e.schemaId??`$id`,addUsedSchema:e.addUsedSchema??!0,validateSchema:e.validateSchema??!0,validateFormats:e.validateFormats??!0,unicodeRegExp:e.unicodeRegExp??!0,int32range:e.int32range??!0,uriResolver:a}}var y=class{constructor(e={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...v(e)};let{es5:t,lines:n}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:h,es5:t,lines:n}),this.logger=D(e.logger);let r=e.validateFormats;e.validateFormats=!1,this.RULES=(0,a.getRules)(),b.call(this,g,e,`NOT SUPPORTED`),b.call(this,_,e,`DEPRECATED`,`warn`),this._metaOpts=T.call(this),e.formats&&C.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&w.call(this,e.keywords),typeof e.meta==`object`&&this.addMetaSchema(e.meta),S.call(this),e.validateFormats=r}_addVocabularies(){this.addKeyword(`$async`)}_addDefaultMetaSchema(){let{$data:e,meta:t,schemaId:n}=this.opts,r=d;n===`id`&&(r={...d},r.id=r.$id,delete r.$id),t&&e&&this.addMetaSchema(r,r[n],!1)}defaultMeta(){let{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta=typeof e==`object`?e[t]||e:void 0}validate(e,t){let n;if(typeof e==`string`){if(n=this.getSchema(e),!n)throw Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);let r=n(t);return`$async`in n||(this.errors=n.errors),r}compile(e,t){let n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if(typeof this.opts.loadSchema!=`function`)throw Error(`options.loadSchema should be a function`);let{loadSchema:n}=this.opts;return r.call(this,e,t);async function r(e,t){await a.call(this,e.$schema);let n=this._addSchema(e,t);return n.validate||o.call(this,n)}async function a(e){e&&!this.getSchema(e)&&await r.call(this,{$ref:e},!0)}async function o(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof i.default))throw t;return s.call(this,t),await c.call(this,t.missingSchema),o.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){let n=await l.call(this,e);this.refs[e]||await a.call(this,n.$schema),this.refs[e]||this.addSchema(n,e,t)}async function l(e){let t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,n,r=this.opts.validateSchema){if(Array.isArray(e)){for(let t of e)this.addSchema(t,void 0,n,r);return this}let i;if(typeof e==`object`){let{schemaId:t}=this.opts;if(i=e[t],i!==void 0&&typeof i!=`string`)throw Error(`schema ${t} must be string`)}return t=(0,c.normalizeId)(t||i),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,r,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if(typeof e==`boolean`)return!0;let n;if(n=e.$schema,n!==void 0&&typeof n!=`string`)throw Error(`$schema must be a string`);if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn(`meta-schema not available`),this.errors=null,!0;let r=this.validate(n,e);if(!r&&t){let e=`schema is invalid: `+this.errorsText();if(this.opts.validateSchema===`log`)this.logger.error(e);else throw Error(e)}return r}getSchema(e){let t;for(;typeof(t=x.call(this,e))==`string`;)e=t;if(t===void 0){let{schemaId:n}=this.opts,r=new o.SchemaEnv({schema:{},schemaId:n});if(t=o.resolveSchema.call(this,r,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case`undefined`:return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case`string`:{let t=x.call(this,e);return typeof t==`object`&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case`object`:{let t=e;this._cache.delete(t);let n=e[this.opts.schemaId];return n&&(n=(0,c.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw Error(`ajv.removeSchema: invalid parameter`)}}addVocabulary(e){for(let t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if(typeof e==`string`)n=e,typeof t==`object`&&(this.logger.warn(`these parameters are deprecated, see docs for addKeyword`),t.keyword=n);else if(typeof e==`object`&&t===void 0){if(t=e,n=t.keyword,Array.isArray(n)&&!n.length)throw Error(`addKeywords: keyword must be string or non-empty array`)}else throw Error(`invalid addKeywords parameters`);if(O.call(this,n,t),!t)return(0,u.eachItem)(n,e=>te.call(this,e)),this;k.call(this,t);let r={...t,type:(0,l.getJSONTypes)(t.type),schemaType:(0,l.getJSONTypes)(t.schemaType)};return(0,u.eachItem)(n,r.type.length===0?e=>te.call(this,e,r):e=>r.type.forEach(t=>te.call(this,e,r,t))),this}getKeyword(e){let t=this.RULES.all[e];return typeof t==`object`?t.definition:!!t}removeKeyword(e){let{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(let n of t.rules){let t=n.rules.findIndex(t=>t.keyword===e);t>=0&&n.rules.splice(t,1)}return this}addFormat(e,t){return typeof t==`string`&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=`, `,dataVar:n=`data`}={}){return!e||e.length===0?`No errors`:e.map(e=>`${n}${e.instancePath} ${e.message}`).reduce((e,n)=>e+t+n)}$dataMetaSchema(e,t){let n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let r of t){let t=r.split(`/`).slice(1),i=e;for(let e of t)i=i[e];for(let e in n){let t=n[e];if(typeof t!=`object`)continue;let{$data:r}=t.definition,a=i[e];r&&a&&(i[e]=A(a))}}return e}_removeAllSchemas(e,t){for(let n in e){let r=e[n];(!t||t.test(n))&&(typeof r==`string`?delete e[n]:r&&!r.meta&&(this._cache.delete(r.schema),delete e[n]))}}_addSchema(e,t,n,r=this.opts.validateSchema,i=this.opts.addUsedSchema){let a,{schemaId:s}=this.opts;if(typeof e==`object`)a=e[s];else if(this.opts.jtd)throw Error(`schema must be object`);else if(typeof e!=`boolean`)throw Error(`schema must be object or boolean`);let l=this._cache.get(e);if(l!==void 0)return l;n=(0,c.normalizeId)(a||n);let u=c.getSchemaRefs.call(this,e,n);return l=new o.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:n,localRefs:u}),this._cache.set(l.schema,l),i&&!n.startsWith(`#`)&&(n&&this._checkUnique(n),this.refs[n]=l),r&&this.validateSchema(e,!0),l}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):o.compileSchema.call(this,e),!e.validate)throw Error(`ajv implementation error`);return e.validate}_compileMetaSchema(e){let t=this.opts;this.opts=this._metaOpts;try{o.compileSchema.call(this,e)}finally{this.opts=t}}};y.ValidationError=r.default,y.MissingRefError=i.default,e.default=y;function b(e,t,n,r=`error`){for(let i in e){let a=i;a in t&&this.logger[r](`${n}: option ${i}. ${e[a]}`)}}function x(e){return e=(0,c.normalizeId)(e),this.schemas[e]||this.refs[e]}function S(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function C(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function w(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn(`keywords option as map is deprecated, pass array`);for(let t in e){let n=e[t];n.keyword||=t,this.addKeyword(n)}}function T(){let e={...this.opts};for(let t of m)delete e[t];return e}let E={log(){},warn(){},error(){}};function D(e){if(e===!1)return E;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw Error(`logger must implement log, warn and error methods`)}let ee=/^[a-z_$][a-z0-9_$:-]*$/i;function O(e,t){let{RULES:n}=this;if((0,u.eachItem)(e,e=>{if(n.keywords[e])throw Error(`Keyword ${e} is already defined`);if(!ee.test(e))throw Error(`Keyword ${e} has invalid name`)}),t&&t.$data&&!(`code`in t||`validate`in t))throw Error(`$data keyword must have "code" or "validate" function`)}function te(e,t,n){var r;let i=t?.post;if(n&&i)throw Error(`keyword with "post" flag cannot have "type"`);let{RULES:a}=this,o=i?a.post:a.rules.find(({type:e})=>e===n);if(o||(o={type:n,rules:[]},a.rules.push(o)),a.keywords[e]=!0,!t)return;let s={keyword:e,definition:{...t,type:(0,l.getJSONTypes)(t.type),schemaType:(0,l.getJSONTypes)(t.schemaType)}};t.before?ne.call(this,o,s,t.before):o.rules.push(s),a.all[e]=s,(r=t.implements)==null||r.forEach(e=>this.addKeyword(e))}function ne(e,t,n){let r=e.rules.findIndex(e=>e.keyword===n);r>=0?e.rules.splice(r,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function k(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=A(t)),e.validateSchema=this.compile(t,!0))}let re={$ref:`https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#`};function A(e){return{anyOf:[e,re]}}})),De=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={keyword:`id`,code(){throw Error(`NOT SUPPORTED: keyword "id", use "$id" for schema ID`)}}})),Oe=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.callRef=e.getValidate=void 0;let t=B(),n=z(),r=P(),i=I(),a=xe(),o=F(),s={keyword:`$ref`,schemaType:`string`,code(e){let{gen:n,schema:i,it:o}=e,{baseId:s,schemaEnv:u,validateName:d,opts:f,self:p}=o,{root:m}=u;if((i===`#`||i===`#/`)&&s===m.baseId)return g();let h=a.resolveRef.call(p,m,s,i);if(h===void 0)throw new t.default(o.opts.uriResolver,s,i);if(h instanceof a.SchemaEnv)return _(h);return v(h);function g(){if(u===m)return l(e,d,u,u.$async);let t=n.scopeValue(`root`,{ref:m});return l(e,(0,r._)`${t}.validate`,m,m.$async)}function _(t){l(e,c(e,t),t,t.$async)}function v(t){let a=n.scopeValue(`schema`,f.code.source===!0?{ref:t,code:(0,r.stringify)(t)}:{ref:t}),o=n.name(`valid`),s=e.subschema({schema:t,dataTypes:[],schemaPath:r.nil,topSchemaRef:a,errSchemaPath:i},o);e.mergeEvaluated(s),e.ok(o)}}};function c(e,t){let{gen:n}=e;return t.validate?n.scopeValue(`validate`,{ref:t.validate}):(0,r._)`${n.scopeValue(`wrapper`,{ref:t})}.validate`}e.getValidate=c;function l(e,t,a,s){let{gen:c,it:l}=e,{allErrors:u,schemaEnv:d,opts:f}=l,p=f.passContext?i.default.this:r.nil;s?m():h();function m(){if(!d.$async)throw Error(`async schema referenced by sync schema`);let i=c.let(`valid`);c.try(()=>{c.code((0,r._)`await ${(0,n.callValidateCode)(e,t,p)}`),_(t),u||c.assign(i,!0)},e=>{c.if((0,r._)`!(${e} instanceof ${l.ValidationError})`,()=>c.throw(e)),g(e),u||c.assign(i,!1)}),e.ok(i)}function h(){e.result((0,n.callValidateCode)(e,t,p),()=>_(t),()=>g(t))}function g(e){let t=(0,r._)`${e}.errors`;c.assign(i.default.vErrors,(0,r._)`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`),c.assign(i.default.errors,(0,r._)`${i.default.vErrors}.length`)}function _(e){if(!l.opts.unevaluated)return;let t=a?.validate?.evaluated;if(l.props!==!0)if(t&&!t.dynamicProps)t.props!==void 0&&(l.props=o.mergeEvaluated.props(c,t.props,l.props));else{let t=c.var(`props`,(0,r._)`${e}.evaluated.props`);l.props=o.mergeEvaluated.props(c,t,l.props,r.Name)}if(l.items!==!0)if(t&&!t.dynamicItems)t.items!==void 0&&(l.items=o.mergeEvaluated.items(c,t.items,l.items));else{let t=c.var(`items`,(0,r._)`${e}.evaluated.items`);l.items=o.mergeEvaluated.items(c,t,l.items,r.Name)}}}e.callRef=l,e.default=s})),ke=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=De(),n=Oe();e.default=[`$schema`,`$id`,`$defs`,`$vocabulary`,{keyword:`$comment`},`definitions`,t.default,n.default]})),Ae=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=P(),n=t.operators,r={maximum:{okStr:`<=`,ok:n.LTE,fail:n.GT},minimum:{okStr:`>=`,ok:n.GTE,fail:n.LT},exclusiveMaximum:{okStr:`<`,ok:n.LT,fail:n.GTE},exclusiveMinimum:{okStr:`>`,ok:n.GT,fail:n.LTE}};e.default={keyword:Object.keys(r),type:`number`,schemaType:`number`,$data:!0,error:{message:({keyword:e,schemaCode:n})=>(0,t.str)`must be ${r[e].okStr} ${n}`,params:({keyword:e,schemaCode:n})=>(0,t._)`{comparison: ${r[e].okStr}, limit: ${n}}`},code(e){let{keyword:n,data:i,schemaCode:a}=e;e.fail$data((0,t._)`${i} ${r[n].fail} ${a} || isNaN(${i})`)}}})),je=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=P();e.default={keyword:`multipleOf`,type:`number`,schemaType:`number`,$data:!0,error:{message:({schemaCode:e})=>(0,t.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,t._)`{multipleOf: ${e}}`},code(e){let{gen:n,data:r,schemaCode:i,it:a}=e,o=a.opts.multipleOfPrecision,s=n.let(`res`),c=o?(0,t._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${o}`:(0,t._)`${s} !== parseInt(${s})`;e.fail$data((0,t._)`(${i} === 0 || (${s} = ${r}/${i}, ${c}))`)}}})),Me=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(e){let t=e.length,n=0,r=0,i;for(;r<t;)n++,i=e.charCodeAt(r++),i>=55296&&i<=56319&&r<t&&(i=e.charCodeAt(r),(i&64512)==56320&&r++);return n}e.default=t,t.code=`require("ajv/dist/runtime/ucs2length").default`})),Ne=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=P(),n=F(),r=Me();e.default={keyword:[`maxLength`,`minLength`],type:`string`,schemaType:`number`,$data:!0,error:{message({keyword:e,schemaCode:n}){let r=e===`maxLength`?`more`:`fewer`;return(0,t.str)`must NOT have ${r} than ${n} characters`},params:({schemaCode:e})=>(0,t._)`{limit: ${e}}`},code(e){let{keyword:i,data:a,schemaCode:o,it:s}=e,c=i===`maxLength`?t.operators.GT:t.operators.LT,l=s.opts.unicode===!1?(0,t._)`${a}.length`:(0,t._)`${(0,n.useFunc)(e.gen,r.default)}(${a})`;e.fail$data((0,t._)`${l} ${c} ${o}`)}}})),Pe=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=z(),n=F(),r=P();e.default={keyword:`pattern`,type:`string`,schemaType:`string`,$data:!0,error:{message:({schemaCode:e})=>(0,r.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,r._)`{pattern: ${e}}`},code(e){let{gen:i,data:a,$data:o,schema:s,schemaCode:c,it:l}=e,u=l.opts.unicodeRegExp?`u`:``;if(o){let{regExp:t}=l.opts.code,o=t.code===`new RegExp`?(0,r._)`new RegExp`:(0,n.useFunc)(i,t),s=i.let(`valid`);i.try(()=>i.assign(s,(0,r._)`${o}(${c}, ${u}).test(${a})`),()=>i.assign(s,!1)),e.fail$data((0,r._)`!${s}`)}else{let n=(0,t.usePattern)(e,s);e.fail$data((0,r._)`!${n}.test(${a})`)}}}})),Fe=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=P();e.default={keyword:[`maxProperties`,`minProperties`],type:`object`,schemaType:`number`,$data:!0,error:{message({keyword:e,schemaCode:n}){let r=e===`maxProperties`?`more`:`fewer`;return(0,t.str)`must NOT have ${r} than ${n} properties`},params:({schemaCode:e})=>(0,t._)`{limit: ${e}}`},code(e){let{keyword:n,data:r,schemaCode:i}=e,a=n===`maxProperties`?t.operators.GT:t.operators.LT;e.fail$data((0,t._)`Object.keys(${r}).length ${a} ${i}`)}}})),Ie=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=z(),n=P(),r=F();e.default={keyword:`required`,type:`object`,schemaType:`array`,$data:!0,error:{message:({params:{missingProperty:e}})=>(0,n.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,n._)`{missingProperty: ${e}}`},code(e){let{gen:i,schema:a,schemaCode:o,data:s,$data:c,it:l}=e,{opts:u}=l;if(!c&&a.length===0)return;let d=a.length>=u.loopRequired;if(l.allErrors?f():p(),u.strictRequired){let t=e.parentSchema.properties,{definedProperties:n}=e.it;for(let e of a)if(t?.[e]===void 0&&!n.has(e)){let t=`required property "${e}" is not defined at "${l.schemaEnv.baseId+l.errSchemaPath}" (strictRequired)`;(0,r.checkStrictMode)(l,t,l.opts.strictRequired)}}function f(){if(d||c)e.block$data(n.nil,m);else for(let n of a)(0,t.checkReportMissingProp)(e,n)}function p(){let n=i.let(`missing`);if(d||c){let t=i.let(`valid`,!0);e.block$data(t,()=>h(n,t)),e.ok(t)}else i.if((0,t.checkMissingProp)(e,a,n)),(0,t.reportMissingProp)(e,n),i.else()}function m(){i.forOf(`prop`,o,n=>{e.setParams({missingProperty:n}),i.if((0,t.noPropertyInData)(i,s,n,u.ownProperties),()=>e.error())})}function h(r,a){e.setParams({missingProperty:r}),i.forOf(r,o,()=>{i.assign(a,(0,t.propertyInData)(i,s,r,u.ownProperties)),i.if((0,n.not)(a),()=>{e.error(),i.break()})},n.nil)}}}})),Le=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=P();e.default={keyword:[`maxItems`,`minItems`],type:`array`,schemaType:`number`,$data:!0,error:{message({keyword:e,schemaCode:n}){let r=e===`maxItems`?`more`:`fewer`;return(0,t.str)`must NOT have ${r} than ${n} items`},params:({schemaCode:e})=>(0,t._)`{limit: ${e}}`},code(e){let{keyword:n,data:r,schemaCode:i}=e,a=n===`maxItems`?t.operators.GT:t.operators.LT;e.fail$data((0,t._)`${r}.length ${a} ${i}`)}}})),Re=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ge();t.code=`require("ajv/dist/runtime/equal").default`,e.default=t})),ze=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=fe(),n=P(),r=F(),i=Re();e.default={keyword:`uniqueItems`,type:`array`,schemaType:`boolean`,$data:!0,error:{message:({params:{i:e,j:t}})=>(0,n.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,n._)`{i: ${e}, j: ${t}}`},code(e){let{gen:a,data:o,$data:s,schema:c,parentSchema:l,schemaCode:u,it:d}=e;if(!s&&!c)return;let f=a.let(`valid`),p=l.items?(0,t.getSchemaTypes)(l.items):[];e.block$data(f,m,(0,n._)`${u} === false`),e.ok(f);function m(){let t=a.let(`i`,(0,n._)`${o}.length`),r=a.let(`j`);e.setParams({i:t,j:r}),a.assign(f,!0),a.if((0,n._)`${t} > 1`,()=>(h()?g:_)(t,r))}function h(){return p.length>0&&!p.some(e=>e===`object`||e===`array`)}function g(r,i){let s=a.name(`item`),c=(0,t.checkDataTypes)(p,s,d.opts.strictNumbers,t.DataType.Wrong),l=a.const(`indices`,(0,n._)`{}`);a.for((0,n._)`;${r}--;`,()=>{a.let(s,(0,n._)`${o}[${r}]`),a.if(c,(0,n._)`continue`),p.length>1&&a.if((0,n._)`typeof ${s} == "string"`,(0,n._)`${s} += "_"`),a.if((0,n._)`typeof ${l}[${s}] == "number"`,()=>{a.assign(i,(0,n._)`${l}[${s}]`),e.error(),a.assign(f,!1).break()}).code((0,n._)`${l}[${s}] = ${r}`)})}function _(t,s){let c=(0,r.useFunc)(a,i.default),l=a.name(`outer`);a.label(l).for((0,n._)`;${t}--;`,()=>a.for((0,n._)`${s} = ${t}; ${s}--;`,()=>a.if((0,n._)`${c}(${o}[${t}], ${o}[${s}])`,()=>{e.error(),a.assign(f,!1).break(l)})))}}}})),Be=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=P(),n=F(),r=Re();e.default={keyword:`const`,$data:!0,error:{message:`must be equal to constant`,params:({schemaCode:e})=>(0,t._)`{allowedValue: ${e}}`},code(e){let{gen:i,data:a,$data:o,schemaCode:s,schema:c}=e;o||c&&typeof c==`object`?e.fail$data((0,t._)`!${(0,n.useFunc)(i,r.default)}(${a}, ${s})`):e.fail((0,t._)`${c} !== ${a}`)}}})),Ve=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=P(),n=F(),r=Re();e.default={keyword:`enum`,schemaType:`array`,$data:!0,error:{message:`must be equal to one of the allowed values`,params:({schemaCode:e})=>(0,t._)`{allowedValues: ${e}}`},code(e){let{gen:i,data:a,$data:o,schema:s,schemaCode:c,it:l}=e;if(!o&&s.length===0)throw Error(`enum must have non-empty array`);let u=s.length>=l.opts.loopEnum,d,f=()=>d??=(0,n.useFunc)(i,r.default),p;if(u||o)p=i.let(`valid`),e.block$data(p,m);else{if(!Array.isArray(s))throw Error(`ajv implementation error`);let e=i.const(`vSchema`,c);p=(0,t.or)(...s.map((t,n)=>h(e,n)))}e.pass(p);function m(){i.assign(p,!1),i.forOf(`v`,c,e=>i.if((0,t._)`${f()}(${a}, ${e})`,()=>i.assign(p,!0).break()))}function h(e,n){let r=s[n];return typeof r==`object`&&r?(0,t._)`${f()}(${a}, ${e}[${n}])`:(0,t._)`${a} === ${r}`}}}})),He=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Ae(),n=je(),r=Ne(),i=Pe(),a=Fe(),o=Ie(),s=Le(),c=ze(),l=Be(),u=Ve();e.default=[t.default,n.default,r.default,i.default,a.default,o.default,s.default,c.default,{keyword:`type`,schemaType:[`string`,`array`]},{keyword:`nullable`,schemaType:`boolean`},l.default,u.default]})),Ue=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateAdditionalItems=void 0;let t=P(),n=F(),r={keyword:`additionalItems`,type:`array`,schemaType:[`boolean`,`object`],before:`uniqueItems`,error:{message:({params:{len:e}})=>(0,t.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,t._)`{limit: ${e}}`},code(e){let{parentSchema:t,it:r}=e,{items:a}=t;if(!Array.isArray(a)){(0,n.checkStrictMode)(r,`"additionalItems" is ignored when "items" is not an array of schemas`);return}i(e,a)}};function i(e,r){let{gen:i,schema:a,data:o,keyword:s,it:c}=e;c.items=!0;let l=i.const(`len`,(0,t._)`${o}.length`);if(a===!1)e.setParams({len:r.length}),e.pass((0,t._)`${l} <= ${r.length}`);else if(typeof a==`object`&&!(0,n.alwaysValidSchema)(c,a)){let n=i.var(`valid`,(0,t._)`${l} <= ${r.length}`);i.if((0,t.not)(n),()=>u(n)),e.ok(n)}function u(a){i.forRange(`i`,r.length,l,r=>{e.subschema({keyword:s,dataProp:r,dataPropType:n.Type.Num},a),c.allErrors||i.if((0,t.not)(a),()=>i.break())})}}e.validateAdditionalItems=i,e.default=r})),We=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateTuple=void 0;let t=P(),n=F(),r=z(),i={keyword:`items`,type:`array`,schemaType:[`object`,`array`,`boolean`],before:`uniqueItems`,code(e){let{schema:t,it:i}=e;if(Array.isArray(t))return a(e,`additionalItems`,t);i.items=!0,!(0,n.alwaysValidSchema)(i,t)&&e.ok((0,r.validateArray)(e))}};function a(e,r,i=e.schema){let{gen:a,parentSchema:o,data:s,keyword:c,it:l}=e;f(o),l.opts.unevaluated&&i.length&&l.items!==!0&&(l.items=n.mergeEvaluated.items(a,i.length,l.items));let u=a.name(`valid`),d=a.const(`len`,(0,t._)`${s}.length`);i.forEach((r,i)=>{(0,n.alwaysValidSchema)(l,r)||(a.if((0,t._)`${d} > ${i}`,()=>e.subschema({keyword:c,schemaProp:i,dataProp:i},u)),e.ok(u))});function f(e){let{opts:t,errSchemaPath:a}=l,o=i.length,s=o===e.minItems&&(o===e.maxItems||e[r]===!1);if(t.strictTuples&&!s){let e=`"${c}" is ${o}-tuple, but minItems or maxItems/${r} are not specified or different at path "${a}"`;(0,n.checkStrictMode)(l,e,t.strictTuples)}}}e.validateTuple=a,e.default=i})),Ge=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=We();e.default={keyword:`prefixItems`,type:`array`,schemaType:[`array`],before:`uniqueItems`,code:e=>(0,t.validateTuple)(e,`items`)}})),Ke=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=P(),n=F(),r=z(),i=Ue();e.default={keyword:`items`,type:`array`,schemaType:[`object`,`boolean`],before:`uniqueItems`,error:{message:({params:{len:e}})=>(0,t.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,t._)`{limit: ${e}}`},code(e){let{schema:t,parentSchema:a,it:o}=e,{prefixItems:s}=a;o.items=!0,!(0,n.alwaysValidSchema)(o,t)&&(s?(0,i.validateAdditionalItems)(e,s):e.ok((0,r.validateArray)(e)))}}})),qe=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=P(),n=F();e.default={keyword:`contains`,type:`array`,schemaType:[`object`,`boolean`],before:`uniqueItems`,trackErrors:!0,error:{message:({params:{min:e,max:n}})=>n===void 0?(0,t.str)`must contain at least ${e} valid item(s)`:(0,t.str)`must contain at least ${e} and no more than ${n} valid item(s)`,params:({params:{min:e,max:n}})=>n===void 0?(0,t._)`{minContains: ${e}}`:(0,t._)`{minContains: ${e}, maxContains: ${n}}`},code(e){let{gen:r,schema:i,parentSchema:a,data:o,it:s}=e,c,l,{minContains:u,maxContains:d}=a;s.opts.next?(c=u===void 0?1:u,l=d):c=1;let f=r.const(`len`,(0,t._)`${o}.length`);if(e.setParams({min:c,max:l}),l===void 0&&c===0){(0,n.checkStrictMode)(s,`"minContains" == 0 without "maxContains": "contains" keyword ignored`);return}if(l!==void 0&&c>l){(0,n.checkStrictMode)(s,`"minContains" > "maxContains" is always invalid`),e.fail();return}if((0,n.alwaysValidSchema)(s,i)){let n=(0,t._)`${f} >= ${c}`;l!==void 0&&(n=(0,t._)`${n} && ${f} <= ${l}`),e.pass(n);return}s.items=!0;let p=r.name(`valid`);l===void 0&&c===1?h(p,()=>r.if(p,()=>r.break())):c===0?(r.let(p,!0),l!==void 0&&r.if((0,t._)`${o}.length > 0`,m)):(r.let(p,!1),m()),e.result(p,()=>e.reset());function m(){let e=r.name(`_valid`),t=r.let(`count`,0);h(e,()=>r.if(e,()=>g(t)))}function h(t,i){r.forRange(`i`,0,f,r=>{e.subschema({keyword:`contains`,dataProp:r,dataPropType:n.Type.Num,compositeRule:!0},t),i()})}function g(e){r.code((0,t._)`${e}++`),l===void 0?r.if((0,t._)`${e} >= ${c}`,()=>r.assign(p,!0).break()):(r.if((0,t._)`${e} > ${l}`,()=>r.assign(p,!1).break()),c===1?r.assign(p,!0):r.if((0,t._)`${e} >= ${c}`,()=>r.assign(p,!0)))}}}})),Je=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;let t=P(),n=F(),r=z();e.error={message:({params:{property:e,depsCount:n,deps:r}})=>{let i=n===1?`property`:`properties`;return(0,t.str)`must have ${i} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:n,deps:r,missingProperty:i}})=>(0,t._)`{property: ${e},
|
|
6
|
+
missingProperty: ${i},
|
|
7
|
+
depsCount: ${n},
|
|
8
|
+
deps: ${r}}`};let i={keyword:`dependencies`,type:`object`,schemaType:`object`,error:e.error,code(e){let[t,n]=a(e);o(e,t),s(e,n)}};function a({schema:e}){let t={},n={};for(let r in e){if(r===`__proto__`)continue;let i=Array.isArray(e[r])?t:n;i[r]=e[r]}return[t,n]}function o(e,n=e.schema){let{gen:i,data:a,it:o}=e;if(Object.keys(n).length===0)return;let s=i.let(`missing`);for(let c in n){let l=n[c];if(l.length===0)continue;let u=(0,r.propertyInData)(i,a,c,o.opts.ownProperties);e.setParams({property:c,depsCount:l.length,deps:l.join(`, `)}),o.allErrors?i.if(u,()=>{for(let t of l)(0,r.checkReportMissingProp)(e,t)}):(i.if((0,t._)`${u} && (${(0,r.checkMissingProp)(e,l,s)})`),(0,r.reportMissingProp)(e,s),i.else())}}e.validatePropertyDeps=o;function s(e,t=e.schema){let{gen:i,data:a,keyword:o,it:s}=e,c=i.name(`valid`);for(let l in t)(0,n.alwaysValidSchema)(s,t[l])||(i.if((0,r.propertyInData)(i,a,l,s.opts.ownProperties),()=>{let t=e.subschema({keyword:o,schemaProp:l},c);e.mergeValidEvaluated(t,c)},()=>i.var(c,!0)),e.ok(c))}e.validateSchemaDeps=s,e.default=i})),Ye=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=P(),n=F();e.default={keyword:`propertyNames`,type:`object`,schemaType:[`object`,`boolean`],error:{message:`property name must be valid`,params:({params:e})=>(0,t._)`{propertyName: ${e.propertyName}}`},code(e){let{gen:r,schema:i,data:a,it:o}=e;if((0,n.alwaysValidSchema)(o,i))return;let s=r.name(`valid`);r.forIn(`key`,a,n=>{e.setParams({propertyName:n}),e.subschema({keyword:`propertyNames`,data:n,dataTypes:[`string`],propertyName:n,compositeRule:!0},s),r.if((0,t.not)(s),()=>{e.error(!0),o.allErrors||r.break()})}),e.ok(s)}}})),Xe=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=z(),n=P(),r=I(),i=F();e.default={keyword:`additionalProperties`,type:[`object`],schemaType:[`boolean`,`object`],allowUndefined:!0,trackErrors:!0,error:{message:`must NOT have additional properties`,params:({params:e})=>(0,n._)`{additionalProperty: ${e.additionalProperty}}`},code(e){let{gen:a,schema:o,parentSchema:s,data:c,errsCount:l,it:u}=e;if(!l)throw Error(`ajv implementation error`);let{allErrors:d,opts:f}=u;if(u.props=!0,f.removeAdditional!==`all`&&(0,i.alwaysValidSchema)(u,o))return;let p=(0,t.allSchemaProperties)(s.properties),m=(0,t.allSchemaProperties)(s.patternProperties);h(),e.ok((0,n._)`${l} === ${r.default.errors}`);function h(){a.forIn(`key`,c,e=>{!p.length&&!m.length?v(e):a.if(g(e),()=>v(e))})}function g(r){let o;if(p.length>8){let e=(0,i.schemaRefOrVal)(u,s.properties,`properties`);o=(0,t.isOwnProperty)(a,e,r)}else o=p.length?(0,n.or)(...p.map(e=>(0,n._)`${r} === ${e}`)):n.nil;return m.length&&(o=(0,n.or)(o,...m.map(i=>(0,n._)`${(0,t.usePattern)(e,i)}.test(${r})`))),(0,n.not)(o)}function _(e){a.code((0,n._)`delete ${c}[${e}]`)}function v(t){if(f.removeAdditional===`all`||f.removeAdditional&&o===!1){_(t);return}if(o===!1){e.setParams({additionalProperty:t}),e.error(),d||a.break();return}if(typeof o==`object`&&!(0,i.alwaysValidSchema)(u,o)){let r=a.name(`valid`);f.removeAdditional===`failing`?(y(t,r,!1),a.if((0,n.not)(r),()=>{e.reset(),_(t)})):(y(t,r),d||a.if((0,n.not)(r),()=>a.break()))}}function y(t,n,r){let a={keyword:`additionalProperties`,dataProp:t,dataPropType:i.Type.Str};r===!1&&Object.assign(a,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(a,n)}}}})),Ze=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ye(),n=z(),r=F(),i=Xe();e.default={keyword:`properties`,type:`object`,schemaType:`object`,code(e){let{gen:a,schema:o,parentSchema:s,data:c,it:l}=e;l.opts.removeAdditional===`all`&&s.additionalProperties===void 0&&i.default.code(new t.KeywordCxt(l,i.default,`additionalProperties`));let u=(0,n.allSchemaProperties)(o);for(let e of u)l.definedProperties.add(e);l.opts.unevaluated&&u.length&&l.props!==!0&&(l.props=r.mergeEvaluated.props(a,(0,r.toHash)(u),l.props));let d=u.filter(e=>!(0,r.alwaysValidSchema)(l,o[e]));if(d.length===0)return;let f=a.name(`valid`);for(let t of d)p(t)?m(t):(a.if((0,n.propertyInData)(a,c,t,l.opts.ownProperties)),m(t),l.allErrors||a.else().var(f,!0),a.endIf()),e.it.definedProperties.add(t),e.ok(f);function p(e){return l.opts.useDefaults&&!l.compositeRule&&o[e].default!==void 0}function m(t){e.subschema({keyword:`properties`,schemaProp:t,dataProp:t},f)}}}})),Qe=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=z(),n=P(),r=F(),i=F();e.default={keyword:`patternProperties`,type:`object`,schemaType:`object`,code(e){let{gen:a,schema:o,data:s,parentSchema:c,it:l}=e,{opts:u}=l,d=(0,t.allSchemaProperties)(o),f=d.filter(e=>(0,r.alwaysValidSchema)(l,o[e]));if(d.length===0||f.length===d.length&&(!l.opts.unevaluated||l.props===!0))return;let p=u.strictSchema&&!u.allowMatchingProperties&&c.properties,m=a.name(`valid`);l.props!==!0&&!(l.props instanceof n.Name)&&(l.props=(0,i.evaluatedPropsToName)(a,l.props));let{props:h}=l;g();function g(){for(let e of d)p&&_(e),l.allErrors?v(e):(a.var(m,!0),v(e),a.if(m))}function _(e){for(let t in p)new RegExp(e).test(t)&&(0,r.checkStrictMode)(l,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function v(r){a.forIn(`key`,s,o=>{a.if((0,n._)`${(0,t.usePattern)(e,r)}.test(${o})`,()=>{let t=f.includes(r);t||e.subschema({keyword:`patternProperties`,schemaProp:r,dataProp:o,dataPropType:i.Type.Str},m),l.opts.unevaluated&&h!==!0?a.assign((0,n._)`${h}[${o}]`,!0):!t&&!l.allErrors&&a.if((0,n.not)(m),()=>a.break())})})}}}})),$e=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=F();e.default={keyword:`not`,schemaType:[`object`,`boolean`],trackErrors:!0,code(e){let{gen:n,schema:r,it:i}=e;if((0,t.alwaysValidSchema)(i,r)){e.fail();return}let a=n.name(`valid`);e.subschema({keyword:`not`,compositeRule:!0,createErrors:!1,allErrors:!1},a),e.failResult(a,()=>e.reset(),()=>e.error())},error:{message:`must NOT be valid`}}})),et=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={keyword:`anyOf`,schemaType:`array`,trackErrors:!0,code:z().validateUnion,error:{message:`must match a schema in anyOf`}}})),tt=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=P(),n=F();e.default={keyword:`oneOf`,schemaType:`array`,trackErrors:!0,error:{message:`must match exactly one schema in oneOf`,params:({params:e})=>(0,t._)`{passingSchemas: ${e.passing}}`},code(e){let{gen:r,schema:i,parentSchema:a,it:o}=e;if(!Array.isArray(i))throw Error(`ajv implementation error`);if(o.opts.discriminator&&a.discriminator)return;let s=i,c=r.let(`valid`,!1),l=r.let(`passing`,null),u=r.name(`_valid`);e.setParams({passing:l}),r.block(d),e.result(c,()=>e.reset(),()=>e.error(!0));function d(){s.forEach((i,a)=>{let s;(0,n.alwaysValidSchema)(o,i)?r.var(u,!0):s=e.subschema({keyword:`oneOf`,schemaProp:a,compositeRule:!0},u),a>0&&r.if((0,t._)`${u} && ${c}`).assign(c,!1).assign(l,(0,t._)`[${l}, ${a}]`).else(),r.if(u,()=>{r.assign(c,!0),r.assign(l,a),s&&e.mergeEvaluated(s,t.Name)})})}}}})),nt=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=F();e.default={keyword:`allOf`,schemaType:`array`,code(e){let{gen:n,schema:r,it:i}=e;if(!Array.isArray(r))throw Error(`ajv implementation error`);let a=n.name(`valid`);r.forEach((n,r)=>{if((0,t.alwaysValidSchema)(i,n))return;let o=e.subschema({keyword:`allOf`,schemaProp:r},a);e.ok(a),e.mergeEvaluated(o)})}}})),rt=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=P(),n=F(),r={keyword:`if`,schemaType:[`object`,`boolean`],trackErrors:!0,error:{message:({params:e})=>(0,t.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,t._)`{failingKeyword: ${e.ifClause}}`},code(e){let{gen:r,parentSchema:a,it:o}=e;a.then===void 0&&a.else===void 0&&(0,n.checkStrictMode)(o,`"if" without "then" and "else" is ignored`);let s=i(o,`then`),c=i(o,`else`);if(!s&&!c)return;let l=r.let(`valid`,!0),u=r.name(`_valid`);if(d(),e.reset(),s&&c){let t=r.let(`ifClause`);e.setParams({ifClause:t}),r.if(u,f(`then`,t),f(`else`,t))}else s?r.if(u,f(`then`)):r.if((0,t.not)(u),f(`else`));e.pass(l,()=>e.error(!0));function d(){let t=e.subschema({keyword:`if`,compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(t)}function f(n,i){return()=>{let a=e.subschema({keyword:n},u);r.assign(l,u),e.mergeValidEvaluated(a,l),i?r.assign(i,(0,t._)`${n}`):e.setParams({ifClause:n})}}}};function i(e,t){let r=e.schema[t];return r!==void 0&&!(0,n.alwaysValidSchema)(e,r)}e.default=r})),it=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=F();e.default={keyword:[`then`,`else`],schemaType:[`object`,`boolean`],code({keyword:e,parentSchema:n,it:r}){n.if===void 0&&(0,t.checkStrictMode)(r,`"${e}" without "if" is ignored`)}}})),at=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Ue(),n=Ge(),r=We(),i=Ke(),a=qe(),o=Je(),s=Ye(),c=Xe(),l=Ze(),u=Qe(),d=$e(),f=et(),p=tt(),m=nt(),h=rt(),g=it();function _(e=!1){let _=[d.default,f.default,p.default,m.default,h.default,g.default,s.default,c.default,o.default,l.default,u.default];return e?_.push(n.default,i.default):_.push(t.default,r.default),_.push(a.default),_}e.default=_})),ot=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.dynamicAnchor=void 0;let t=P(),n=I(),r=xe(),i=Oe(),a={keyword:`$dynamicAnchor`,schemaType:`string`,code:e=>o(e,e.schema)};function o(e,r){let{gen:i,it:a}=e;a.schemaEnv.root.dynamicAnchors[r]=!0;let o=(0,t._)`${n.default.dynamicAnchors}${(0,t.getProperty)(r)}`,c=a.errSchemaPath===`#`?a.validateName:s(e);i.if((0,t._)`!${o}`,()=>i.assign(o,c))}e.dynamicAnchor=o;function s(e){let{schemaEnv:t,schema:n,self:a}=e.it,{root:o,baseId:s,localRefs:c,meta:l}=t.root,{schemaId:u}=a.opts,d=new r.SchemaEnv({schema:n,schemaId:u,root:o,baseId:s,localRefs:c,meta:l});return r.compileSchema.call(a,d),(0,i.getValidate)(e,d)}e.default=a})),st=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.dynamicRef=void 0;let t=P(),n=I(),r=Oe(),i={keyword:`$dynamicRef`,schemaType:`string`,code:e=>a(e,e.schema)};function a(e,i){let{gen:a,keyword:o,it:s}=e;if(i[0]!==`#`)throw Error(`"${o}" only supports hash fragment reference`);let c=i.slice(1);if(s.allErrors)l();else{let t=a.let(`valid`,!1);l(t),e.ok(t)}function l(e){if(s.schemaEnv.root.dynamicAnchors[c]){let r=a.let(`_v`,(0,t._)`${n.default.dynamicAnchors}${(0,t.getProperty)(c)}`);a.if(r,u(r,e),u(s.validateName,e))}else u(s.validateName,e)()}function u(t,n){return n?()=>a.block(()=>{(0,r.callRef)(e,t),a.let(n,!0)}):()=>(0,r.callRef)(e,t)}}e.dynamicRef=a,e.default=i})),ct=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ot(),n=F();e.default={keyword:`$recursiveAnchor`,schemaType:`boolean`,code(e){e.schema?(0,t.dynamicAnchor)(e,``):(0,n.checkStrictMode)(e.it,`$recursiveAnchor: false is ignored`)}}})),lt=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=st();e.default={keyword:`$recursiveRef`,schemaType:`string`,code:e=>(0,t.dynamicRef)(e,e.schema)}})),ut=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ot(),n=st(),r=ct(),i=lt();e.default=[t.default,n.default,r.default,i.default]})),dt=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Je();e.default={keyword:`dependentRequired`,type:`object`,schemaType:`object`,error:t.error,code:e=>(0,t.validatePropertyDeps)(e)}})),ft=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Je();e.default={keyword:`dependentSchemas`,type:`object`,schemaType:`object`,code:e=>(0,t.validateSchemaDeps)(e)}})),pt=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=F();e.default={keyword:[`maxContains`,`minContains`],type:`array`,schemaType:`number`,code({keyword:e,parentSchema:n,it:r}){n.contains===void 0&&(0,t.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}}})),mt=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=dt(),n=ft(),r=pt();e.default=[t.default,n.default,r.default]})),ht=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=P(),n=F(),r=I();e.default={keyword:`unevaluatedProperties`,type:`object`,schemaType:[`boolean`,`object`],trackErrors:!0,error:{message:`must NOT have unevaluated properties`,params:({params:e})=>(0,t._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`},code(e){let{gen:i,schema:a,data:o,errsCount:s,it:c}=e;if(!s)throw Error(`ajv implementation error`);let{allErrors:l,props:u}=c;u instanceof t.Name?i.if((0,t._)`${u} !== true`,()=>i.forIn(`key`,o,e=>i.if(f(u,e),()=>d(e)))):u!==!0&&i.forIn(`key`,o,e=>u===void 0?d(e):i.if(p(u,e),()=>d(e))),c.props=!0,e.ok((0,t._)`${s} === ${r.default.errors}`);function d(r){if(a===!1){e.setParams({unevaluatedProperty:r}),e.error(),l||i.break();return}if(!(0,n.alwaysValidSchema)(c,a)){let a=i.name(`valid`);e.subschema({keyword:`unevaluatedProperties`,dataProp:r,dataPropType:n.Type.Str},a),l||i.if((0,t.not)(a),()=>i.break())}}function f(e,n){return(0,t._)`!${e} || !${e}[${n}]`}function p(e,n){let r=[];for(let i in e)e[i]===!0&&r.push((0,t._)`${n} !== ${i}`);return(0,t.and)(...r)}}}})),gt=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=P(),n=F();e.default={keyword:`unevaluatedItems`,type:`array`,schemaType:[`boolean`,`object`],error:{message:({params:{len:e}})=>(0,t.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,t._)`{limit: ${e}}`},code(e){let{gen:r,schema:i,data:a,it:o}=e,s=o.items||0;if(s===!0)return;let c=r.const(`len`,(0,t._)`${a}.length`);if(i===!1)e.setParams({len:s}),e.fail((0,t._)`${c} > ${s}`);else if(typeof i==`object`&&!(0,n.alwaysValidSchema)(o,i)){let n=r.var(`valid`,(0,t._)`${c} <= ${s}`);r.if((0,t.not)(n),()=>l(n,s)),e.ok(n)}o.items=!0;function l(i,a){r.forRange(`i`,a,c,a=>{e.subschema({keyword:`unevaluatedItems`,dataProp:a,dataPropType:n.Type.Num},i),o.allErrors||r.if((0,t.not)(i),()=>r.break())})}}}})),_t=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ht(),n=gt();e.default=[t.default,n.default]})),vt=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=P();e.default={keyword:`format`,type:[`number`,`string`],schemaType:`string`,$data:!0,error:{message:({schemaCode:e})=>(0,t.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,t._)`{format: ${e}}`},code(e,n){let{gen:r,data:i,$data:a,schema:o,schemaCode:s,it:c}=e,{opts:l,errSchemaPath:u,schemaEnv:d,self:f}=c;if(!l.validateFormats)return;a?p():m();function p(){let a=r.scopeValue(`formats`,{ref:f.formats,code:l.code.formats}),o=r.const(`fDef`,(0,t._)`${a}[${s}]`),c=r.let(`fType`),u=r.let(`format`);r.if((0,t._)`typeof ${o} == "object" && !(${o} instanceof RegExp)`,()=>r.assign(c,(0,t._)`${o}.type || "string"`).assign(u,(0,t._)`${o}.validate`),()=>r.assign(c,(0,t._)`"string"`).assign(u,o)),e.fail$data((0,t.or)(p(),m()));function p(){return l.strictSchema===!1?t.nil:(0,t._)`${s} && !${u}`}function m(){let e=d.$async?(0,t._)`(${o}.async ? await ${u}(${i}) : ${u}(${i}))`:(0,t._)`${u}(${i})`,r=(0,t._)`(typeof ${u} == "function" ? ${e} : ${u}.test(${i}))`;return(0,t._)`${u} && ${u} !== true && ${c} === ${n} && !${r}`}}function m(){let a=f.formats[o];if(!a){m();return}if(a===!0)return;let[s,c,p]=h(a);s===n&&e.pass(g());function m(){if(l.strictSchema===!1){f.logger.warn(e());return}throw Error(e());function e(){return`unknown format "${o}" ignored in schema at path "${u}"`}}function h(e){let n=e instanceof RegExp?(0,t.regexpCode)(e):l.code.formats?(0,t._)`${l.code.formats}${(0,t.getProperty)(o)}`:void 0,i=r.scopeValue(`formats`,{key:o,ref:e,code:n});return typeof e==`object`&&!(e instanceof RegExp)?[e.type||`string`,e.validate,(0,t._)`${i}.validate`]:[`string`,e,i]}function g(){if(typeof a==`object`&&!(a instanceof RegExp)&&a.async){if(!d.$async)throw Error(`async format in sync schema`);return(0,t._)`await ${p}(${i})`}return typeof c==`function`?(0,t._)`${p}(${i})`:(0,t._)`${p}.test(${i})`}}}}})),yt=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=[vt().default]})),bt=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.contentVocabulary=e.metadataVocabulary=void 0,e.metadataVocabulary=[`title`,`description`,`default`,`deprecated`,`readOnly`,`writeOnly`,`examples`],e.contentVocabulary=[`contentMediaType`,`contentEncoding`,`contentSchema`]})),xt=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ke(),n=He(),r=at(),i=ut(),a=mt(),o=_t(),s=yt(),c=bt();e.default=[i.default,t.default,n.default,(0,r.default)(!0),s.default,c.metadataVocabulary,c.contentVocabulary,a.default,o.default]})),St=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0;var t;(function(e){e.Tag=`tag`,e.Mapping=`mapping`})(t||(e.DiscrError=t={}))})),Ct=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=P(),n=St(),r=xe(),i=B(),a=F();e.default={keyword:`discriminator`,type:`object`,schemaType:`object`,error:{message:({params:{discrError:e,tagName:t}})=>e===n.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:n,tagName:r}})=>(0,t._)`{error: ${e}, tag: ${r}, tagValue: ${n}}`},code(e){let{gen:o,data:s,schema:c,parentSchema:l,it:u}=e,{oneOf:d}=l;if(!u.opts.discriminator)throw Error(`discriminator: requires discriminator option`);let f=c.propertyName;if(typeof f!=`string`)throw Error(`discriminator: requires propertyName`);if(c.mapping)throw Error(`discriminator: mapping is not supported`);if(!d)throw Error(`discriminator: requires oneOf keyword`);let p=o.let(`valid`,!1),m=o.const(`tag`,(0,t._)`${s}${(0,t.getProperty)(f)}`);o.if((0,t._)`typeof ${m} == "string"`,()=>h(),()=>e.error(!1,{discrError:n.DiscrError.Tag,tag:m,tagName:f})),e.ok(p);function h(){let r=_();o.if(!1);for(let e in r)o.elseIf((0,t._)`${m} === ${e}`),o.assign(p,g(r[e]));o.else(),e.error(!1,{discrError:n.DiscrError.Mapping,tag:m,tagName:f}),o.endIf()}function g(n){let r=o.name(`valid`),i=e.subschema({keyword:`oneOf`,schemaProp:n},r);return e.mergeEvaluated(i,t.Name),r}function _(){let e={},t=o(l),n=!0;for(let e=0;e<d.length;e++){let c=d[e];if(c?.$ref&&!(0,a.schemaHasRulesButRef)(c,u.self.RULES)){let e=c.$ref;if(c=r.resolveRef.call(u.self,u.schemaEnv.root,u.baseId,e),c instanceof r.SchemaEnv&&(c=c.schema),c===void 0)throw new i.default(u.opts.uriResolver,u.baseId,e)}let l=c?.properties?.[f];if(typeof l!=`object`)throw Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${f}"`);n&&=t||o(c),s(l,e)}if(!n)throw Error(`discriminator: "${f}" must be required`);return e;function o({required:e}){return Array.isArray(e)&&e.includes(f)}function s(e,t){if(e.const)c(e.const,t);else if(e.enum)for(let n of e.enum)c(n,t);else throw Error(`discriminator: "properties/${f}" must have "const" or "enum"`)}function c(t,n){if(typeof t!=`string`||t in e)throw Error(`discriminator: "${f}" values must be unique strings`);e[t]=n}}}}})),wt=s(((e,t)=>{t.exports={$schema:`https://json-schema.org/draft/2020-12/schema`,$id:`https://json-schema.org/draft/2020-12/schema`,$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:`meta`,title:`Core and Validation specifications meta-schema`,allOf:[{$ref:`meta/core`},{$ref:`meta/applicator`},{$ref:`meta/unevaluated`},{$ref:`meta/validation`},{$ref:`meta/meta-data`},{$ref:`meta/format-annotation`},{$ref:`meta/content`}],type:[`object`,`boolean`],$comment:`This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.`,properties:{definitions:{$comment:`"definitions" has been replaced by "$defs".`,type:`object`,additionalProperties:{$dynamicRef:`#meta`},deprecated:!0,default:{}},dependencies:{$comment:`"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.`,type:`object`,additionalProperties:{anyOf:[{$dynamicRef:`#meta`},{$ref:`meta/validation#/$defs/stringArray`}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:`"$recursiveAnchor" has been replaced by "$dynamicAnchor".`,$ref:`meta/core#/$defs/anchorString`,deprecated:!0},$recursiveRef:{$comment:`"$recursiveRef" has been replaced by "$dynamicRef".`,$ref:`meta/core#/$defs/uriReferenceString`,deprecated:!0}}}})),Tt=s(((e,t)=>{t.exports={$schema:`https://json-schema.org/draft/2020-12/schema`,$id:`https://json-schema.org/draft/2020-12/meta/applicator`,$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:`meta`,title:`Applicator vocabulary meta-schema`,type:[`object`,`boolean`],properties:{prefixItems:{$ref:`#/$defs/schemaArray`},items:{$dynamicRef:`#meta`},contains:{$dynamicRef:`#meta`},additionalProperties:{$dynamicRef:`#meta`},properties:{type:`object`,additionalProperties:{$dynamicRef:`#meta`},default:{}},patternProperties:{type:`object`,additionalProperties:{$dynamicRef:`#meta`},propertyNames:{format:`regex`},default:{}},dependentSchemas:{type:`object`,additionalProperties:{$dynamicRef:`#meta`},default:{}},propertyNames:{$dynamicRef:`#meta`},if:{$dynamicRef:`#meta`},then:{$dynamicRef:`#meta`},else:{$dynamicRef:`#meta`},allOf:{$ref:`#/$defs/schemaArray`},anyOf:{$ref:`#/$defs/schemaArray`},oneOf:{$ref:`#/$defs/schemaArray`},not:{$dynamicRef:`#meta`}},$defs:{schemaArray:{type:`array`,minItems:1,items:{$dynamicRef:`#meta`}}}}})),Et=s(((e,t)=>{t.exports={$schema:`https://json-schema.org/draft/2020-12/schema`,$id:`https://json-schema.org/draft/2020-12/meta/unevaluated`,$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:`meta`,title:`Unevaluated applicator vocabulary meta-schema`,type:[`object`,`boolean`],properties:{unevaluatedItems:{$dynamicRef:`#meta`},unevaluatedProperties:{$dynamicRef:`#meta`}}}})),Dt=s(((e,t)=>{t.exports={$schema:`https://json-schema.org/draft/2020-12/schema`,$id:`https://json-schema.org/draft/2020-12/meta/content`,$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:`meta`,title:`Content vocabulary meta-schema`,type:[`object`,`boolean`],properties:{contentEncoding:{type:`string`},contentMediaType:{type:`string`},contentSchema:{$dynamicRef:`#meta`}}}})),Ot=s(((e,t)=>{t.exports={$schema:`https://json-schema.org/draft/2020-12/schema`,$id:`https://json-schema.org/draft/2020-12/meta/core`,$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:`meta`,title:`Core vocabulary meta-schema`,type:[`object`,`boolean`],properties:{$id:{$ref:`#/$defs/uriReferenceString`,$comment:`Non-empty fragments not allowed.`,pattern:`^[^#]*#?$`},$schema:{$ref:`#/$defs/uriString`},$ref:{$ref:`#/$defs/uriReferenceString`},$anchor:{$ref:`#/$defs/anchorString`},$dynamicRef:{$ref:`#/$defs/uriReferenceString`},$dynamicAnchor:{$ref:`#/$defs/anchorString`},$vocabulary:{type:`object`,propertyNames:{$ref:`#/$defs/uriString`},additionalProperties:{type:`boolean`}},$comment:{type:`string`},$defs:{type:`object`,additionalProperties:{$dynamicRef:`#meta`}}},$defs:{anchorString:{type:`string`,pattern:`^[A-Za-z_][-A-Za-z0-9._]*$`},uriString:{type:`string`,format:`uri`},uriReferenceString:{type:`string`,format:`uri-reference`}}}})),kt=s(((e,t)=>{t.exports={$schema:`https://json-schema.org/draft/2020-12/schema`,$id:`https://json-schema.org/draft/2020-12/meta/format-annotation`,$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:`meta`,title:`Format vocabulary meta-schema for annotation results`,type:[`object`,`boolean`],properties:{format:{type:`string`}}}})),At=s(((e,t)=>{t.exports={$schema:`https://json-schema.org/draft/2020-12/schema`,$id:`https://json-schema.org/draft/2020-12/meta/meta-data`,$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:`meta`,title:`Meta-data vocabulary meta-schema`,type:[`object`,`boolean`],properties:{title:{type:`string`},description:{type:`string`},default:!0,deprecated:{type:`boolean`,default:!1},readOnly:{type:`boolean`,default:!1},writeOnly:{type:`boolean`,default:!1},examples:{type:`array`,items:!0}}}})),jt=s(((e,t)=>{t.exports={$schema:`https://json-schema.org/draft/2020-12/schema`,$id:`https://json-schema.org/draft/2020-12/meta/validation`,$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:`meta`,title:`Validation vocabulary meta-schema`,type:[`object`,`boolean`],properties:{type:{anyOf:[{$ref:`#/$defs/simpleTypes`},{type:`array`,items:{$ref:`#/$defs/simpleTypes`},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:`array`,items:!0},multipleOf:{type:`number`,exclusiveMinimum:0},maximum:{type:`number`},exclusiveMaximum:{type:`number`},minimum:{type:`number`},exclusiveMinimum:{type:`number`},maxLength:{$ref:`#/$defs/nonNegativeInteger`},minLength:{$ref:`#/$defs/nonNegativeIntegerDefault0`},pattern:{type:`string`,format:`regex`},maxItems:{$ref:`#/$defs/nonNegativeInteger`},minItems:{$ref:`#/$defs/nonNegativeIntegerDefault0`},uniqueItems:{type:`boolean`,default:!1},maxContains:{$ref:`#/$defs/nonNegativeInteger`},minContains:{$ref:`#/$defs/nonNegativeInteger`,default:1},maxProperties:{$ref:`#/$defs/nonNegativeInteger`},minProperties:{$ref:`#/$defs/nonNegativeIntegerDefault0`},required:{$ref:`#/$defs/stringArray`},dependentRequired:{type:`object`,additionalProperties:{$ref:`#/$defs/stringArray`}}},$defs:{nonNegativeInteger:{type:`integer`,minimum:0},nonNegativeIntegerDefault0:{$ref:`#/$defs/nonNegativeInteger`,default:0},simpleTypes:{enum:[`array`,`boolean`,`integer`,`null`,`number`,`object`,`string`]},stringArray:{type:`array`,items:{type:`string`},uniqueItems:!0,default:[]}}}})),Mt=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=wt(),n=Tt(),r=Et(),i=Dt(),a=Ot(),o=kt(),s=At(),c=jt(),l=[`/properties`];function u(e){return[t,n,r,i,a,u(this,o),s,u(this,c)].forEach(e=>this.addMetaSchema(e,void 0,!1)),this;function u(t,n){return e?t.$dataMetaSchema(n,l):n}}e.default=u})),Nt=s(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv2020=void 0;let n=V(),r=xt(),i=Ct(),a=Mt(),o=`https://json-schema.org/draft/2020-12/schema`;var s=class extends n.default{constructor(e={}){super({...e,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),r.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:e,meta:t}=this.opts;t&&(a.default.call(this,e),this.refs[`http://json-schema.org/schema`]=o)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(o)?o:void 0)}};e.Ajv2020=s,t.exports=e=s,t.exports.Ajv2020=s,Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var c=ye();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var l=P();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var u=be();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return u.default}});var d=B();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return d.default}})})),Pt=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(e,t){return{validate:e,compare:t}}e.fullFormats={date:t(a,o),time:t(c(!0),l),"date-time":t(f(!0),p),"iso-time":t(c(),u),"iso-date-time":t(f(),m),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:_,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:E,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:y,int32:{type:`number`,validate:S},int64:{type:`number`,validate:C},float:{type:`number`,validate:w},double:{type:`number`,validate:w},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,o),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,l),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,p),"iso-time":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,u),"iso-date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,m),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(e){return e%4==0&&(e%100!=0||e%400==0)}let r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(e){let t=r.exec(e);if(!t)return!1;let a=+t[1],o=+t[2],s=+t[3];return o>=1&&o<=12&&s>=1&&s<=(o===2&&n(a)?29:i[o])}function o(e,t){if(e&&t)return e>t?1:e<t?-1:0}let s=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function c(e){return function(t){let n=s.exec(t);if(!n)return!1;let r=+n[1],i=+n[2],a=+n[3],o=n[4],c=n[5]===`-`?-1:1,l=+(n[6]||0),u=+(n[7]||0);if(l>23||u>59||e&&!o)return!1;if(r<=23&&i<=59&&a<60)return!0;let d=i-u*c,f=r-l*c-+(d<0);return(f===23||f===-1)&&(d===59||d===-1)&&a<61}}function l(e,t){if(!(e&&t))return;let n=new Date(`2020-01-01T`+e).valueOf(),r=new Date(`2020-01-01T`+t).valueOf();if(n&&r)return n-r}function u(e,t){if(!(e&&t))return;let n=s.exec(e),r=s.exec(t);if(n&&r)return e=n[1]+n[2]+n[3],t=r[1]+r[2]+r[3],e>t?1:e<t?-1:0}let d=/t|\s/i;function f(e){let t=c(e);return function(e){let n=e.split(d);return n.length===2&&a(n[0])&&t(n[1])}}function p(e,t){if(!(e&&t))return;let n=new Date(e).valueOf(),r=new Date(t).valueOf();if(n&&r)return n-r}function m(e,t){if(!(e&&t))return;let[n,r]=e.split(d),[i,a]=t.split(d),s=o(n,i);if(s!==void 0)return s||l(r,a)}let h=/\/|:/,g=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function _(e){return h.test(e)&&g.test(e)}let v=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function y(e){return v.lastIndex=0,v.test(e)}let b=-(2**31),x=2**31-1;function S(e){return Number.isInteger(e)&&e<=x&&e>=b}function C(e){return Number.isInteger(e)}function w(){return!0}let T=/[^\\]\\Z/;function E(e){if(T.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}})),Ft=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ke(),n=He(),r=at(),i=yt(),a=bt();e.default=[t.default,n.default,(0,r.default)(),i.default,a.metadataVocabulary,a.contentVocabulary]})),It=s(((e,t)=>{t.exports={$schema:`http://json-schema.org/draft-07/schema#`,$id:`http://json-schema.org/draft-07/schema#`,title:`Core schema meta-schema`,definitions:{schemaArray:{type:`array`,minItems:1,items:{$ref:`#`}},nonNegativeInteger:{type:`integer`,minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:`#/definitions/nonNegativeInteger`},{default:0}]},simpleTypes:{enum:[`array`,`boolean`,`integer`,`null`,`number`,`object`,`string`]},stringArray:{type:`array`,items:{type:`string`},uniqueItems:!0,default:[]}},type:[`object`,`boolean`],properties:{$id:{type:`string`,format:`uri-reference`},$schema:{type:`string`,format:`uri`},$ref:{type:`string`,format:`uri-reference`},$comment:{type:`string`},title:{type:`string`},description:{type:`string`},default:!0,readOnly:{type:`boolean`,default:!1},examples:{type:`array`,items:!0},multipleOf:{type:`number`,exclusiveMinimum:0},maximum:{type:`number`},exclusiveMaximum:{type:`number`},minimum:{type:`number`},exclusiveMinimum:{type:`number`},maxLength:{$ref:`#/definitions/nonNegativeInteger`},minLength:{$ref:`#/definitions/nonNegativeIntegerDefault0`},pattern:{type:`string`,format:`regex`},additionalItems:{$ref:`#`},items:{anyOf:[{$ref:`#`},{$ref:`#/definitions/schemaArray`}],default:!0},maxItems:{$ref:`#/definitions/nonNegativeInteger`},minItems:{$ref:`#/definitions/nonNegativeIntegerDefault0`},uniqueItems:{type:`boolean`,default:!1},contains:{$ref:`#`},maxProperties:{$ref:`#/definitions/nonNegativeInteger`},minProperties:{$ref:`#/definitions/nonNegativeIntegerDefault0`},required:{$ref:`#/definitions/stringArray`},additionalProperties:{$ref:`#`},definitions:{type:`object`,additionalProperties:{$ref:`#`},default:{}},properties:{type:`object`,additionalProperties:{$ref:`#`},default:{}},patternProperties:{type:`object`,additionalProperties:{$ref:`#`},propertyNames:{format:`regex`},default:{}},dependencies:{type:`object`,additionalProperties:{anyOf:[{$ref:`#`},{$ref:`#/definitions/stringArray`}]}},propertyNames:{$ref:`#`},const:!0,enum:{type:`array`,items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:`#/definitions/simpleTypes`},{type:`array`,items:{$ref:`#/definitions/simpleTypes`},minItems:1,uniqueItems:!0}]},format:{type:`string`},contentMediaType:{type:`string`},contentEncoding:{type:`string`},if:{$ref:`#`},then:{$ref:`#`},else:{$ref:`#`},allOf:{$ref:`#/definitions/schemaArray`},anyOf:{$ref:`#/definitions/schemaArray`},oneOf:{$ref:`#/definitions/schemaArray`},not:{$ref:`#`}},default:!0}})),Lt=s(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv=void 0;let n=V(),r=Ft(),i=Ct(),a=It(),o=[`/properties`],s=`http://json-schema.org/draft-07/schema`;var c=class extends n.default{_addVocabularies(){super._addVocabularies(),r.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(a,o):a;this.addMetaSchema(e,s,!1),this.refs[`http://json-schema.org/schema`]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}};e.Ajv=c,t.exports=e=c,t.exports.Ajv=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var l=ye();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=P();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var d=be();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=B();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})),Rt=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;let t=Lt(),n=P(),r=n.operators,i={formatMaximum:{okStr:`<=`,ok:r.LTE,fail:r.GT},formatMinimum:{okStr:`>=`,ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:`<`,ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:`>`,ok:r.GT,fail:r.LTE}};e.formatLimitDefinition={keyword:Object.keys(i),type:`string`,schemaType:`string`,$data:!0,error:{message:({keyword:e,schemaCode:t})=>(0,n.str)`should be ${i[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,n._)`{comparison: ${i[e].okStr}, limit: ${t}}`},code(e){let{gen:r,data:a,schemaCode:o,keyword:s,it:c}=e,{opts:l,self:u}=c;if(!l.validateFormats)return;let d=new t.KeywordCxt(c,u.RULES.all.format.definition,`format`);d.$data?f():p();function f(){let t=r.scopeValue(`formats`,{ref:u.formats,code:l.code.formats}),i=r.const(`fmt`,(0,n._)`${t}[${d.schemaCode}]`);e.fail$data((0,n.or)((0,n._)`typeof ${i} != "object"`,(0,n._)`${i} instanceof RegExp`,(0,n._)`typeof ${i}.compare != "function"`,m(i)))}function p(){let t=d.schema,i=u.formats[t];if(!i||i===!0)return;if(typeof i!=`object`||i instanceof RegExp||typeof i.compare!=`function`)throw Error(`"${s}": format "${t}" does not define "compare" function`);let a=r.scopeValue(`formats`,{key:t,ref:i,code:l.code.formats?(0,n._)`${l.code.formats}${(0,n.getProperty)(t)}`:void 0});e.fail$data(m(a))}function m(e){return(0,n._)`${e}.compare(${a}, ${o}) ${i[s].fail} 0`}},dependencies:[`format`]},e.default=t=>(t.addKeyword(e.formatLimitDefinition),t)})),zt=s(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});let n=Pt(),r=Rt(),i=P(),a=new i.Name(`fullFormats`),o=new i.Name(`fastFormats`),s=(e,t={keywords:!0})=>{if(Array.isArray(t))return c(e,t,n.fullFormats,a),e;let[i,s]=t.mode===`fast`?[n.fastFormats,o]:[n.fullFormats,a];return c(e,t.formats||n.formatNames,i,s),t.keywords&&(0,r.default)(e),e};s.get=(e,t=`full`)=>{let r=(t===`fast`?n.fastFormats:n.fullFormats)[e];if(!r)throw Error(`Unknown format "${e}"`);return r};function c(e,t,n,r){var a;(a=e.opts.code).formats??(a.formats=(0,i._)`require("ajv-formats/dist/formats").${r}`);for(let r of t)e.addFormat(r,n[r])}t.exports=e=s,Object.defineProperty(e,"__esModule",{value:!0}),e.default=s})),Bt={$id:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json`,$schema:`https://json-schema.org/draft/2020-12/schema`,description:`Serverless Workflow DSL - Workflow Schema.`,type:`object`,required:[`document`,`do`],properties:{document:{type:`object`,title:`Document`,description:`Documents the workflow.`,unevaluatedProperties:!1,properties:{dsl:{type:`string`,pattern:`^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$`,title:`WorkflowDSL`,description:`The version of the DSL used by the workflow.`},namespace:{type:`string`,pattern:`^[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$`,title:`WorkflowNamespace`,description:`The workflow's namespace.`},name:{type:`string`,pattern:`^[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$`,title:`WorkflowName`,description:`The workflow's name.`},version:{type:`string`,pattern:`^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$`,title:`WorkflowVersion`,description:`The workflow's semantic version.`},title:{type:`string`,title:`WorkflowTitle`,description:`The workflow's title.`},summary:{type:`string`,title:`WorkflowSummary`,description:`The workflow's Markdown summary.`},tags:{type:`object`,title:`WorkflowTags`,description:`A key/value mapping of the workflow's tags, if any.`,additionalProperties:!0},metadata:{type:`object`,title:`WorkflowMetadata`,description:`Holds additional information about the workflow.`,additionalProperties:!0}},required:[`dsl`,`namespace`,`name`,`version`]},input:{$ref:`#/$defs/input`,title:`Input`,description:`Configures the workflow's input.`},use:{type:`object`,title:`Use`,description:`Defines the workflow's reusable components.`,unevaluatedProperties:!1,properties:{authentications:{type:`object`,title:`UseAuthentications`,description:`The workflow's reusable authentication policies.`,additionalProperties:{$ref:`#/$defs/authenticationPolicy`}},errors:{type:`object`,title:`UseErrors`,description:`The workflow's reusable errors.`,additionalProperties:{$ref:`#/$defs/error`}},extensions:{type:`array`,title:`UseExtensions`,description:`The workflow's extensions.`,items:{type:`object`,title:`ExtensionItem`,minProperties:1,maxProperties:1,additionalProperties:{$ref:`#/$defs/extension`}}},functions:{type:`object`,title:`UseFunctions`,description:`The workflow's reusable functions.`,additionalProperties:{$ref:`#/$defs/task`}},retries:{type:`object`,title:`UseRetries`,description:`The workflow's reusable retry policies.`,additionalProperties:{$ref:`#/$defs/retryPolicy`}},secrets:{type:`array`,title:`UseSecrets`,description:`The workflow's reusable secrets.`,items:{type:`string`,description:`The workflow's secrets.`}},timeouts:{type:`object`,title:`UseTimeouts`,description:`The workflow's reusable timeouts.`,additionalProperties:{$ref:`#/$defs/timeout`}},catalogs:{type:`object`,title:`UseCatalogs`,description:`The workflow's reusable catalogs.`,additionalProperties:{$ref:`#/$defs/catalog`}}}},do:{$ref:`#/$defs/taskList`,title:`Do`,description:`Defines the task(s) the workflow must perform.`},timeout:{title:`DoTimeout`,oneOf:[{$ref:`#/$defs/timeout`,title:`TimeoutDefinition`,description:`The workflow's timeout configuration, if any.`},{type:`string`,title:`TimeoutReference`,description:`The name of the workflow's timeout, if any.`}]},output:{$ref:`#/$defs/output`,title:`Output`,description:`Configures the workflow's output.`},schedule:{type:`object`,title:`Schedule`,description:`Schedules the workflow.`,unevaluatedProperties:!1,properties:{every:{$ref:`#/$defs/duration`,title:`ScheduleEvery`,description:`Specifies the duration of the interval at which the workflow should be executed.`},cron:{type:`string`,title:`ScheduleCron`,description:`Specifies the schedule using a cron expression, e.g., '0 0 * * *' for daily at midnight.`},after:{$ref:`#/$defs/duration`,title:`ScheduleAfter`,description:`Specifies a delay duration that the workflow must wait before starting again after it completes.`},on:{$ref:`#/$defs/eventConsumptionStrategy`,title:`ScheduleOn`,description:`Specifies the events that trigger the workflow execution.`}}}},$defs:{taskList:{title:`TaskList`,description:`List of named tasks to perform.`,type:`array`,items:{type:`object`,title:`TaskItem`,minProperties:1,maxProperties:1,additionalProperties:{$ref:`#/$defs/task`}}},taskBase:{type:`object`,title:`TaskBase`,description:`An object inherited by all tasks.`,properties:{if:{type:`string`,title:`TaskBaseIf`,description:`A runtime expression, if any, used to determine whether or not the task should be run.`},input:{$ref:`#/$defs/input`,title:`TaskBaseInput`,description:`Configure the task's input.`},output:{$ref:`#/$defs/output`,title:`TaskBaseOutput`,description:`Configure the task's output.`},export:{$ref:`#/$defs/export`,title:`TaskBaseExport`,description:`Export task output to context.`},timeout:{title:`TaskTimeout`,oneOf:[{$ref:`#/$defs/timeout`,title:`TaskTimeoutDefinition`,description:`The task's timeout configuration, if any.`},{type:`string`,title:`TaskTimeoutReference`,description:`The name of the task's timeout, if any.`}]},then:{$ref:`#/$defs/flowDirective`,title:`TaskBaseThen`,description:`The flow directive to be performed upon completion of the task.`},metadata:{type:`object`,title:`TaskMetadata`,description:`Holds additional information about the task.`,additionalProperties:!0}}},task:{title:`Task`,description:`A discrete unit of work that contributes to achieving the overall objectives defined by the workflow.`,unevaluatedProperties:!1,oneOf:[{$ref:`#/$defs/callTask`},{$ref:`#/$defs/doTask`},{$ref:`#/$defs/forkTask`},{$ref:`#/$defs/emitTask`},{$ref:`#/$defs/forTask`},{$ref:`#/$defs/listenTask`},{$ref:`#/$defs/raiseTask`},{$ref:`#/$defs/runTask`},{$ref:`#/$defs/setTask`},{$ref:`#/$defs/switchTask`},{$ref:`#/$defs/tryTask`},{$ref:`#/$defs/waitTask`}]},callTask:{title:`CallTask`,description:`Defines the call to perform.`,oneOf:[{title:`CallAsyncAPI`,description:`Defines the AsyncAPI call to perform.`,type:`object`,required:[`call`,`with`],unevaluatedProperties:!1,allOf:[{$ref:`#/$defs/taskBase`},{properties:{call:{type:`string`,const:`asyncapi`},with:{type:`object`,title:`AsyncApiArguments`,description:`The Async API call arguments.`,properties:{document:{$ref:`#/$defs/externalResource`,title:`AsyncAPIDocument`,description:`The document that defines the AsyncAPI operation to call.`},channel:{type:`string`,title:`With`,description:`The name of the channel on which to perform the operation. Used only in case the referenced document uses AsyncAPI v2.6.0.`},operation:{type:`string`,title:`AsyncAPIOperation`,description:`A reference to the AsyncAPI operation to call.`},server:{$ref:`#/$defs/asyncApiServer`,title:`AsyncAPIServer`,description:`An object used to configure to the server to call the specified AsyncAPI operation on.`},protocol:{type:`string`,title:`AsyncApiProtocol`,description:`The protocol to use to select the target server.`,enum:[`amqp`,`amqp1`,`anypointmq`,`googlepubsub`,`http`,`ibmmq`,`jms`,`kafka`,`mercure`,`mqtt`,`mqtt5`,`nats`,`pulsar`,`redis`,`sns`,`solace`,`sqs`,`stomp`,`ws`]},message:{$ref:`#/$defs/asyncApiOutboundMessage`,title:`AsyncApiMessage`,description:`An object used to configure the message to publish using the target operation.`},subscription:{$ref:`#/$defs/asyncApiSubscription`,title:`AsyncApiSubscription`,description:`An object used to configure the subscription to messages consumed using the target operation.`},authentication:{$ref:`#/$defs/referenceableAuthenticationPolicy`,title:`AsyncAPIAuthentication`,description:`The authentication policy, if any, to use when calling the AsyncAPI operation.`}},oneOf:[{required:[`document`,`operation`,`message`]},{required:[`document`,`operation`,`subscription`]},{required:[`document`,`channel`,`message`]},{required:[`document`,`channel`,`subscription`]}],unevaluatedProperties:!1}}}]},{title:`CallGRPC`,description:`Defines the GRPC call to perform.`,type:`object`,unevaluatedProperties:!1,required:[`call`,`with`],allOf:[{$ref:`#/$defs/taskBase`},{properties:{call:{type:`string`,const:`grpc`},with:{type:`object`,title:`GRPCArguments`,description:`The GRPC call arguments.`,properties:{proto:{$ref:`#/$defs/externalResource`,title:`WithGRPCProto`,description:`The proto resource that describes the GRPC service to call.`},service:{type:`object`,title:`WithGRPCService`,unevaluatedProperties:!1,properties:{name:{type:`string`,title:`WithGRPCServiceName`,description:`The name of the GRPC service to call.`},host:{type:`string`,title:`WithGRPCServiceHost`,description:`The hostname of the GRPC service to call.`,pattern:`^[a-zA-Z0-9](?:[a-zA-Z0-9-.]{0,61}[a-zA-Z0-9])?$`},port:{type:`integer`,title:`WithGRPCServicePort`,description:`The port number of the GRPC service to call.`,minimum:0,maximum:65535},authentication:{$ref:`#/$defs/referenceableAuthenticationPolicy`,title:`WithGRPCServiceAuthentication`,description:`The endpoint's authentication policy, if any.`}},required:[`name`,`host`]},method:{type:`string`,title:`WithGRPCMethod`,description:`The name of the method to call on the defined GRPC service.`},arguments:{type:`object`,title:`WithGRPCArguments`,description:`The arguments, if any, to call the method with.`,additionalProperties:!0}},required:[`proto`,`service`,`method`],unevaluatedProperties:!1}}}]},{title:`CallHTTP`,description:`Defines the HTTP call to perform.`,type:`object`,unevaluatedProperties:!1,required:[`call`,`with`],allOf:[{$ref:`#/$defs/taskBase`},{properties:{call:{type:`string`,const:`http`},with:{type:`object`,title:`HTTPArguments`,description:`The HTTP call arguments.`,properties:{method:{type:`string`,title:`HTTPMethod`,description:`The HTTP method of the HTTP request to perform.`},endpoint:{title:`HTTPEndpoint`,description:`The HTTP endpoint to send the request to.`,$ref:`#/$defs/endpoint`},headers:{oneOf:[{type:`object`,additionalProperties:{type:`string`}},{$ref:`#/$defs/runtimeExpression`}],title:`HTTPHeaders`,description:`A name/value mapping of the headers, if any, of the HTTP request to perform.`},body:{title:`HTTPBody`,description:`The body, if any, of the HTTP request to perform.`},query:{oneOf:[{type:`object`,additionalProperties:{type:`string`}},{$ref:`#/$defs/runtimeExpression`}],title:`HTTPQuery`,description:`A name/value mapping of the query parameters, if any, of the HTTP request to perform.`,additionalProperties:!0},output:{type:`string`,title:`HTTPOutput`,description:`The http call output format. Defaults to 'content'.`,enum:[`raw`,`content`,`response`]},redirect:{type:`boolean`,title:`HttpRedirect`,description:"Specifies whether redirection status codes (`300–399`) should be treated as errors."}},required:[`method`,`endpoint`],unevaluatedProperties:!1}}}]},{title:`CallOpenAPI`,description:`Defines the OpenAPI call to perform.`,type:`object`,unevaluatedProperties:!1,required:[`call`,`with`],allOf:[{$ref:`#/$defs/taskBase`},{properties:{call:{type:`string`,const:`openapi`},with:{type:`object`,title:`OpenAPIArguments`,description:`The OpenAPI call arguments.`,properties:{document:{$ref:`#/$defs/externalResource`,title:`WithOpenAPIDocument`,description:`The document that defines the OpenAPI operation to call.`},operationId:{type:`string`,title:`WithOpenAPIOperation`,description:`The id of the OpenAPI operation to call.`},parameters:{type:`object`,title:`WithOpenAPIParameters`,description:`A name/value mapping of the parameters of the OpenAPI operation to call.`,additionalProperties:!0},authentication:{$ref:`#/$defs/referenceableAuthenticationPolicy`,title:`WithOpenAPIAuthentication`,description:`The authentication policy, if any, to use when calling the OpenAPI operation.`},output:{type:`string`,enum:[`raw`,`content`,`response`],title:`WithOpenAPIOutput`,description:`The http call output format. Defaults to 'content'.`},redirect:{type:`boolean`,title:`HttpRedirect`,description:"Specifies whether redirection status codes (`300–399`) should be treated as errors."}},required:[`document`,`operationId`],unevaluatedProperties:!1}}}]},{title:`CallA2A`,description:`Defines the A2A call to perform.`,type:`object`,unevaluatedProperties:!1,required:[`call`,`with`],allOf:[{$ref:`#/$defs/taskBase`},{properties:{call:{type:`string`,const:`a2a`},with:{type:`object`,title:`A2AArguments`,description:`The A2A call arguments.`,properties:{agentCard:{$ref:`#/$defs/externalResource`,title:`WithA2AAgentCard`,description:`The Agent Card that defines the agent to call.`},server:{title:`A2AServer`,description:`The server endpoint to send the request to.`,$ref:`#/$defs/endpoint`},method:{type:`string`,title:`WithA2AMethod`,description:`The A2A method to send.`,enum:[`message/send`,`message/stream`,`tasks/get`,`tasks/list`,`tasks/cancel`,`tasks/resubscribe`,`tasks/pushNotificationConfig/set`,`tasks/pushNotificationConfig/get`,`tasks/pushNotificationConfig/list`,`tasks/pushNotificationConfig/delete`,`agent/getAuthenticatedExtendedCard`]},parameters:{oneOf:[{type:`object`,minProperties:1,additionalProperties:!0},{type:`string`}],title:`WithA2AParameters`,description:`The parameters object to send with the A2A method.`}},required:[`method`],unevaluatedProperties:!1}}}]},{title:`CallMCP`,description:`Defines the MCP call to perform.`,type:`object`,unevaluatedProperties:!1,required:[`call`,`with`],allOf:[{$ref:`#/$defs/taskBase`},{properties:{call:{type:`string`,const:`mcp`},with:{type:`object`,title:`MCPArguments`,description:`The MCP call arguments.`,properties:{protocolVersion:{type:`string`,default:`2025-06-18`,title:`McpProtocolVersion`,description:`The version of the MCP protocol to use.`},method:{type:`string`,enum:[`tools/list`,`tools/call`,`prompts/list`,`prompts/get`,`resources/list`,`resources/read`,`resources/templates/list`],title:`McpMethod`,description:`The MCP method to call.`},parameters:{oneOf:[{type:`object`,additionalProperties:!0},{type:`string`}],title:`McpMethodParameters`,description:`The MCP method parameters.`},timeout:{$ref:`#/$defs/duration`,title:`McpCallTimeout`,description:`The duration after which the MCP call times out.`},transport:{type:`object`,title:`McpCallTransport`,description:`The transport to use to perform the MCP call.`,properties:{http:{type:`object`,title:`McpHttpTransport`,description:`The definition of the HTTP transport to use.`,properties:{endpoint:{$ref:`#/$defs/endpoint`,title:`McpHttpTransportEndpoint`,description:`The MCP server endpoint to connect to.`},headers:{type:`object`,additionalProperties:{type:`string`},title:`McpHttpTransportHeaders`,description:`A key/value mapping of the HTTP headers to send with requests, if any.`}},required:[`endpoint`]},stdio:{type:`object`,title:`McpStdioTransport`,description:`The definition of the STDIO transport to use.`,properties:{command:{type:`string`,title:`McpStdioTransportCommand`,description:`The command used to run the MCP server.`},arguments:{type:`array`,items:{type:`string`},title:`McpStdioTransportArguments`,description:`An optional list of arguments to pass to the command.`},environment:{type:`object`,additionalProperties:{type:`string`},title:`McpStdioTransportEnvironment`,description:`A key/value mapping, if any, of environment variables used to configure the MCP server.`}},required:[`command`]},options:{type:`object`,additionalProperties:{type:`string`}}},oneOf:[{required:[`http`]},{required:[`stdio`]}]},client:{type:`object`,title:`McpClient`,description:`Describes the client used to perform the MCP call.`,properties:{name:{type:`string`,title:`McpClientName`,description:`The name of the client used to connect to the MCP server.`},description:{type:`string`,title:`McpClientVersion`,description:`The version of the client used to connect to the MCP server.`}},required:[`name`,`version`]}},required:[`method`,`transport`]}}}]},{title:`CallFunction`,description:`Defines the function call to perform.`,type:`object`,unevaluatedProperties:!1,required:[`call`],allOf:[{$ref:`#/$defs/taskBase`},{properties:{call:{type:`string`,not:{enum:[`asyncapi`,`grpc`,`http`,`openapi`,`a2a`,`mcp`]},description:`The name of the function to call.`},with:{type:`object`,title:`FunctionArguments`,description:`A name/value mapping of the parameters, if any, to call the function with.`,additionalProperties:!0}}}]}]},forkTask:{type:`object`,title:`ForkTask`,description:`Allows workflows to execute multiple tasks concurrently and optionally race them against each other, with a single possible winner, which sets the task's output.`,unevaluatedProperties:!1,required:[`fork`],allOf:[{$ref:`#/$defs/taskBase`},{properties:{fork:{type:`object`,title:`ForkTaskConfiguration`,description:`The configuration of the branches to perform concurrently.`,unevaluatedProperties:!1,required:[`branches`],properties:{branches:{$ref:`#/$defs/taskList`,title:`ForkBranches`},compete:{type:`boolean`,title:`ForkCompete`,description:`Indicates whether or not the concurrent tasks are racing against each other, with a single possible winner, which sets the composite task's output.`,default:!1}}}}}]},doTask:{type:`object`,title:`DoTask`,description:`Allows to execute a list of tasks in sequence.`,unevaluatedProperties:!1,required:[`do`],allOf:[{$ref:`#/$defs/taskBase`},{properties:{do:{$ref:`#/$defs/taskList`,title:`DoTaskConfiguration`,description:`The configuration of the tasks to perform sequentially.`}}}]},emitTask:{type:`object`,title:`EmitTask`,description:`Allows workflows to publish events to event brokers or messaging systems, facilitating communication and coordination between different components and services.`,required:[`emit`],unevaluatedProperties:!1,allOf:[{$ref:`#/$defs/taskBase`},{properties:{emit:{type:`object`,title:`EmitTaskConfiguration`,description:`The configuration of an event's emission.`,unevaluatedProperties:!1,properties:{event:{type:`object`,title:`EmitEventDefinition`,description:`The definition of the event to emit.`,properties:{with:{$ref:`#/$defs/eventProperties`,title:`EmitEventWith`,description:`Defines the properties of event to emit.`,required:[`source`,`type`]}},additionalProperties:!0}},required:[`event`]}}}]},forTask:{type:`object`,title:`ForTask`,description:`Allows workflows to iterate over a collection of items, executing a defined set of subtasks for each item in the collection. This task type is instrumental in handling scenarios such as batch processing, data transformation, and repetitive operations across datasets.`,required:[`for`,`do`],unevaluatedProperties:!1,allOf:[{$ref:`#/$defs/taskBase`},{properties:{for:{type:`object`,title:`ForTaskConfiguration`,description:`The definition of the loop that iterates over a range of values.`,unevaluatedProperties:!1,properties:{each:{type:`string`,title:`ForEach`,description:`The name of the variable used to store the current item being enumerated.`,default:`item`},in:{type:`string`,title:`ForIn`,description:`A runtime expression used to get the collection to enumerate.`},at:{type:`string`,title:`ForAt`,description:`The name of the variable used to store the index of the current item being enumerated.`,default:`index`}},required:[`in`]},while:{type:`string`,title:`While`,description:`A runtime expression that represents the condition, if any, that must be met for the iteration to continue.`},do:{$ref:`#/$defs/taskList`,title:`ForTaskDo`}}}]},listenTask:{type:`object`,title:`ListenTask`,description:`Provides a mechanism for workflows to await and react to external events, enabling event-driven behavior within workflow systems.`,required:[`listen`],unevaluatedProperties:!1,allOf:[{$ref:`#/$defs/taskBase`},{properties:{listen:{type:`object`,title:`ListenTaskConfiguration`,description:`The configuration of the listener to use.`,unevaluatedProperties:!1,properties:{to:{$ref:`#/$defs/eventConsumptionStrategy`,title:`ListenTo`,description:`Defines the event(s) to listen to.`},read:{type:`string`,enum:[`data`,`envelope`,`raw`],default:`data`,title:`ListenAndReadAs`,description:`Specifies how events are read during the listen operation.`}},required:[`to`]},foreach:{$ref:`#/$defs/subscriptionIterator`,title:`ListenIterator`,description:`Configures the iterator, if any, for processing consumed event(s).`}}}]},raiseTask:{type:`object`,title:`RaiseTask`,description:`Intentionally triggers and propagates errors.`,required:[`raise`],unevaluatedProperties:!1,allOf:[{$ref:`#/$defs/taskBase`},{properties:{raise:{type:`object`,title:`RaiseTaskConfiguration`,description:`The definition of the error to raise.`,unevaluatedProperties:!1,properties:{error:{title:`RaiseTaskError`,oneOf:[{$ref:`#/$defs/error`,title:`RaiseErrorDefinition`,description:`Defines the error to raise.`},{type:`string`,title:`RaiseErrorReference`,description:`The name of the error to raise`}]}},required:[`error`]}}}]},runTask:{type:`object`,title:`RunTask`,description:`Provides the capability to execute external containers, shell commands, scripts, or workflows.`,required:[`run`],unevaluatedProperties:!1,allOf:[{$ref:`#/$defs/taskBase`},{properties:{run:{type:`object`,title:`RunTaskConfiguration`,description:`The configuration of the process to execute.`,unevaluatedProperties:!1,properties:{await:{type:`boolean`,default:!0,title:`AwaitProcessCompletion`,description:`Whether to await the process completion before continuing.`},return:{type:`string`,title:`ProcessReturnType`,description:`Configures the output of the process.`,enum:[`stdout`,`stderr`,`code`,`all`,`none`],default:`stdout`}},oneOf:[{title:`RunContainer`,description:`Enables the execution of external processes encapsulated within a containerized environment.`,properties:{container:{type:`object`,title:`Container`,description:`The configuration of the container to run.`,unevaluatedProperties:!1,properties:{image:{type:`string`,title:`ContainerImage`,description:`The name of the container image to run.`},name:{type:`string`,title:`ContainerName`,description:`A runtime expression, if any, used to give specific name to the container.`},command:{type:`string`,title:`ContainerCommand`,description:`The command, if any, to execute on the container.`},ports:{type:`object`,title:`ContainerPorts`,description:`The container's port mappings, if any.`},volumes:{type:`object`,title:`ContainerVolumes`,description:`The container's volume mappings, if any.`},environment:{type:`object`,title:`ContainerEnvironment`,description:`A key/value mapping of the environment variables, if any, to use when running the configured process.`},stdin:{type:`string`,title:`ContainerStdin`,description:`A runtime expression, if any, passed as standard input (stdin) to the command or default container CMD`},arguments:{type:`array`,title:`ContainerArguments`,description:`A list of the arguments, if any, passed as argv to the command or default container CMD`,items:{type:`string`}},lifetime:{$ref:`#/$defs/containerLifetime`,title:`ContainerLifetime`,description:`An object, if any, used to configure the container's lifetime`},pullPolicy:{type:`string`,title:`ContainerPullPolicy`,description:"Policy that controls how the container's image should be pulled from the registry. Defaults to `ifNotPresent`",enum:[`ifNotPresent`,`always`,`never`]}},required:[`image`]}},required:[`container`]},{title:`RunScript`,description:`Enables the execution of custom scripts or code within a workflow, empowering workflows to perform specialized logic, data processing, or integration tasks by executing user-defined scripts written in various programming languages.`,properties:{script:{type:`object`,title:`Script`,description:`The configuration of the script to run.`,unevaluatedProperties:!1,properties:{language:{type:`string`,title:`ScriptLanguage`,description:`The language of the script to run.`},stdin:{type:`string`,title:`ScriptStdin`,description:`A runtime expression, if any, to the script as standard input (stdin).`},arguments:{type:`array`,title:`ScriptArguments`,description:`A list of the arguments, if any, to the script as argv`,items:{type:`string`}},environment:{type:`object`,title:`ScriptEnvironment`,description:`A key/value mapping of the environment variables, if any, to use when running the configured script process.`,additionalProperties:!0}},oneOf:[{title:`InlineScript`,type:`object`,description:`The script's code.`,properties:{code:{type:`string`,title:`InlineScriptCode`}},required:[`code`]},{title:`ExternalScript`,type:`object`,description:`The script's resource.`,properties:{source:{$ref:`#/$defs/externalResource`,title:`ExternalScriptResource`}},required:[`source`]}],required:[`language`]}},required:[`script`]},{title:`RunShell`,description:`Enables the execution of shell commands within a workflow, enabling workflows to interact with the underlying operating system and perform system-level operations, such as file manipulation, environment configuration, or system administration tasks.`,properties:{shell:{type:`object`,title:`Shell`,description:`The configuration of the shell command to run.`,unevaluatedProperties:!1,properties:{command:{type:`string`,title:`ShellCommand`,description:`The shell command to run.`},stdin:{type:`string`,title:`ShellStdin`,description:`A runtime expression, if any, to the shell command as standard input (stdin).`},arguments:{type:`array`,title:`ShellArguments`,description:`A list of the arguments, if any, to the shell command as argv`,items:{type:`string`}},environment:{type:`object`,title:`ShellEnvironment`,description:`A key/value mapping of the environment variables, if any, to use when running the configured process.`,additionalProperties:!0}},required:[`command`]}},required:[`shell`]},{title:`RunWorkflow`,description:`Enables the invocation and execution of nested workflows within a parent workflow, facilitating modularization, reusability, and abstraction of complex logic or business processes by encapsulating them into standalone workflow units.`,properties:{workflow:{type:`object`,title:`SubflowConfiguration`,description:`The configuration of the workflow to run.`,unevaluatedProperties:!1,properties:{namespace:{type:`string`,title:`SubflowNamespace`,description:`The namespace the workflow to run belongs to.`},name:{type:`string`,title:`SubflowName`,description:`The name of the workflow to run.`},version:{type:`string`,default:`latest`,title:`SubflowVersion`,description:`The version of the workflow to run. Defaults to latest.`},input:{type:`object`,title:`SubflowInput`,description:`The data, if any, to pass as input to the workflow to execute. The value should be validated against the target workflow's input schema, if specified.`,additionalProperties:!0}},required:[`namespace`,`name`,`version`]}},required:[`workflow`]}]}}}]},setTask:{type:`object`,title:`SetTask`,description:`A task used to set data.`,required:[`set`],unevaluatedProperties:!1,allOf:[{$ref:`#/$defs/taskBase`},{properties:{set:{oneOf:[{type:`object`,minProperties:1,additionalProperties:!0},{type:`string`}],title:`SetTaskConfiguration`,description:`The data to set.`}}}]},switchTask:{type:`object`,title:`SwitchTask`,description:`Enables conditional branching within workflows, allowing them to dynamically select different paths based on specified conditions or criteria.`,required:[`switch`],unevaluatedProperties:!1,allOf:[{$ref:`#/$defs/taskBase`},{properties:{switch:{type:`array`,title:`SwitchTaskConfiguration`,description:`The definition of the switch to use.`,minItems:1,items:{type:`object`,title:`SwitchItem`,minProperties:1,maxProperties:1,additionalProperties:{type:`object`,title:`SwitchCase`,description:`The definition of a case within a switch task, defining a condition and corresponding tasks to execute if the condition is met.`,unevaluatedProperties:!1,required:[`then`],properties:{when:{type:`string`,title:`SwitchCaseCondition`,description:`A runtime expression used to determine whether or not the case matches.`},then:{$ref:`#/$defs/flowDirective`,title:`SwitchCaseOutcome`,description:`The flow directive to execute when the case matches.`}}}}}}}]},tryTask:{type:`object`,title:`TryTask`,description:`Serves as a mechanism within workflows to handle errors gracefully, potentially retrying failed tasks before proceeding with alternate ones.`,required:[`try`,`catch`],unevaluatedProperties:!1,allOf:[{$ref:`#/$defs/taskBase`},{properties:{try:{$ref:`#/$defs/taskList`,title:`TryTaskConfiguration`,description:`The task(s) to perform.`},catch:{type:`object`,title:`TryTaskCatch`,description:`The object used to define the errors to catch.`,unevaluatedProperties:!1,properties:{errors:{type:`object`,title:`CatchErrors`,properties:{with:{$ref:`#/$defs/errorFilter`}},description:`static error filter`},as:{type:`string`,title:`CatchAs`,description:`The name of the runtime expression variable to save the error as. Defaults to 'error'.`},when:{type:`string`,title:`CatchWhen`,description:`A runtime expression used to determine whether to catch the filtered error.`},exceptWhen:{type:`string`,title:`CatchExceptWhen`,description:`A runtime expression used to determine whether not to catch the filtered error.`},retry:{oneOf:[{$ref:`#/$defs/retryPolicy`,title:`RetryPolicyDefinition`,description:`The retry policy to use, if any, when catching errors.`},{type:`string`,title:`RetryPolicyReference`,description:`The name of the retry policy to use, if any, when catching errors.`}]},do:{$ref:`#/$defs/taskList`,title:`TryTaskCatchDo`,description:`The definition of the task(s) to run when catching an error.`}}}}}]},waitTask:{type:`object`,title:`WaitTask`,description:`Allows workflows to pause or delay their execution for a specified period of time.`,required:[`wait`],unevaluatedProperties:!1,allOf:[{$ref:`#/$defs/taskBase`},{properties:{wait:{$ref:`#/$defs/duration`,title:`WaitTaskConfiguration`,description:`The amount of time to wait.`}}}]},flowDirective:{title:`FlowDirective`,description:`Represents different transition options for a workflow.`,anyOf:[{title:`FlowDirectiveEnum`,type:`string`,enum:[`continue`,`exit`,`end`],default:`continue`},{type:`string`}]},referenceableAuthenticationPolicy:{type:`object`,title:`ReferenceableAuthenticationPolicy`,description:`Represents a referenceable authentication policy.`,unevaluatedProperties:!1,oneOf:[{title:`AuthenticationPolicyReference`,description:`The reference of the authentication policy to use.`,properties:{use:{type:`string`,minLength:1,title:`ReferenceableAuthenticationPolicyName`,description:`The name of the authentication policy to use.`}},required:[`use`]},{$ref:`#/$defs/authenticationPolicy`}]},secretBasedAuthenticationPolicy:{type:`object`,title:`SecretBasedAuthenticationPolicy`,description:`Represents an authentication policy based on secrets.`,unevaluatedProperties:!1,properties:{use:{type:`string`,minLength:1,title:`SecretBasedAuthenticationPolicyName`,description:`The name of the authentication policy to use.`}},required:[`use`]},authenticationPolicy:{type:`object`,title:`AuthenticationPolicy`,description:`Defines an authentication policy.`,oneOf:[{title:`BasicAuthenticationPolicy`,description:`Use basic authentication.`,properties:{basic:{type:`object`,title:`BasicAuthenticationPolicyConfiguration`,description:`The configuration of the basic authentication policy.`,unevaluatedProperties:!1,oneOf:[{title:`BasicAuthenticationProperties`,description:`Inline configuration of the basic authentication policy.`,properties:{username:{type:`string`,description:`The username to use.`},password:{type:`string`,description:`The password to use.`}},required:[`username`,`password`]},{$ref:`#/$defs/secretBasedAuthenticationPolicy`,title:`BasicAuthenticationPolicySecret`,description:`Secret based configuration of the basic authentication policy.`}]}},required:[`basic`]},{title:`BearerAuthenticationPolicy`,description:`Use bearer authentication.`,properties:{bearer:{type:`object`,title:`BearerAuthenticationPolicyConfiguration`,description:`The configuration of the bearer authentication policy.`,unevaluatedProperties:!1,oneOf:[{title:`BearerAuthenticationProperties`,description:`Inline configuration of the bearer authentication policy.`,properties:{token:{type:`string`,description:`The bearer token to use.`}},required:[`token`]},{$ref:`#/$defs/secretBasedAuthenticationPolicy`,title:`BearerAuthenticationPolicySecret`,description:`Secret based configuration of the bearer authentication policy.`}]}},required:[`bearer`]},{title:`DigestAuthenticationPolicy`,description:`Use digest authentication.`,properties:{digest:{type:`object`,title:`DigestAuthenticationPolicyConfiguration`,description:`The configuration of the digest authentication policy.`,unevaluatedProperties:!1,oneOf:[{title:`DigestAuthenticationProperties`,description:`Inline configuration of the digest authentication policy.`,properties:{username:{type:`string`,description:`The username to use.`},password:{type:`string`,description:`The password to use.`}},required:[`username`,`password`]},{$ref:`#/$defs/secretBasedAuthenticationPolicy`,title:`DigestAuthenticationPolicySecret`,description:`Secret based configuration of the digest authentication policy.`}]}},required:[`digest`]},{title:`OAuth2AuthenticationPolicy`,description:`Use OAuth2 authentication.`,properties:{oauth2:{type:`object`,title:`OAuth2AuthenticationPolicyConfiguration`,description:`The configuration of the OAuth2 authentication policy.`,unevaluatedProperties:!1,oneOf:[{$ref:`#/$defs/oauth2AuthenticationProperties`,type:`object`,title:`OAuth2ConnectAuthenticationProperties`,description:`The inline configuration of the OAuth2 authentication policy.`,unevaluatedProperties:!1,properties:{endpoints:{type:`object`,title:`OAuth2AuthenticationPropertiesEndpoints`,description:`The endpoint configurations for OAuth2.`,properties:{token:{type:`string`,format:`uri-template`,default:`/oauth2/token`,title:`OAuth2TokenEndpoint`,description:"The relative path to the token endpoint. Defaults to `/oauth2/token`."},revocation:{type:`string`,format:`uri-template`,default:`/oauth2/revoke`,title:`OAuth2RevocationEndpoint`,description:"The relative path to the revocation endpoint. Defaults to `/oauth2/revoke`."},introspection:{type:`string`,format:`uri-template`,default:`/oauth2/introspect`,title:`OAuth2IntrospectionEndpoint`,description:"The relative path to the introspection endpoint. Defaults to `/oauth2/introspect`."}}}}},{$ref:`#/$defs/secretBasedAuthenticationPolicy`,title:`OAuth2AuthenticationPolicySecret`,description:`Secret based configuration of the OAuth2 authentication policy.`}]}},required:[`oauth2`]},{title:`OpenIdConnectAuthenticationPolicy`,description:`Use OpenIdConnect authentication.`,properties:{oidc:{type:`object`,title:`OpenIdConnectAuthenticationPolicyConfiguration`,description:`The configuration of the OpenIdConnect authentication policy.`,unevaluatedProperties:!1,oneOf:[{$ref:`#/$defs/oauth2AuthenticationProperties`,title:`OpenIdConnectAuthenticationProperties`,description:`The inline configuration of the OpenIdConnect authentication policy.`,unevaluatedProperties:!1},{$ref:`#/$defs/secretBasedAuthenticationPolicy`,title:`OpenIdConnectAuthenticationPolicySecret`,description:`Secret based configuration of the OpenIdConnect authentication policy.`}]}},required:[`oidc`]}]},oauth2AuthenticationProperties:{type:`object`,title:`OAuth2AuthenticationData`,description:`Inline configuration of the OAuth2 authentication policy.`,properties:{authority:{$ref:`#/$defs/uriTemplate`,title:`OAuth2AuthenticationDataAuthority`,description:`The URI that references the OAuth2 authority to use.`},grant:{type:`string`,enum:[`authorization_code`,`client_credentials`,`password`,`refresh_token`,`urn:ietf:params:oauth:grant-type:token-exchange`],title:`OAuth2AuthenticationDataGrant`,description:`The grant type to use.`},client:{type:`object`,title:`OAuth2AuthenticationDataClient`,description:`The definition of an OAuth2 client.`,unevaluatedProperties:!1,properties:{id:{type:`string`,title:`ClientId`,description:`The client id to use.`},secret:{type:`string`,title:`ClientSecret`,description:`The client secret to use, if any.`},assertion:{type:`string`,title:`ClientAssertion`,description:`A JWT containing a signed assertion with your application credentials.`},authentication:{type:`string`,enum:[`client_secret_basic`,`client_secret_post`,`client_secret_jwt`,`private_key_jwt`,`none`],default:`client_secret_post`,title:`ClientAuthentication`,description:`The authentication method to use to authenticate the client.`}}},request:{type:`object`,title:`OAuth2TokenRequest`,description:`The configuration of an OAuth2 token request`,properties:{encoding:{type:`string`,enum:[`application/x-www-form-urlencoded`,`application/json`],default:`application/x-www-form-urlencoded`,title:`Oauth2TokenRequestEncoding`}}},issuers:{type:`array`,title:`OAuth2Issuers`,description:`A list that contains that contains valid issuers that will be used to check against the issuer of generated tokens.`,items:{type:`string`}},scopes:{type:`array`,title:`OAuth2AuthenticationDataScopes`,description:`The scopes, if any, to request the token for.`,items:{type:`string`}},audiences:{type:`array`,title:`OAuth2AuthenticationDataAudiences`,description:`The audiences, if any, to request the token for.`,items:{type:`string`}},username:{type:`string`,title:`OAuth2AuthenticationDataUsername`,description:`The username to use. Used only if the grant type is Password.`},password:{type:`string`,title:`OAuth2AuthenticationDataPassword`,description:`The password to use. Used only if the grant type is Password.`},subject:{$ref:`#/$defs/oauth2Token`,title:`OAuth2AuthenticationDataSubject`,description:`The security token that represents the identity of the party on behalf of whom the request is being made.`},actor:{$ref:`#/$defs/oauth2Token`,title:`OAuth2AuthenticationDataActor`,description:`The security token that represents the identity of the acting party.`}}},oauth2Token:{type:`object`,title:`OAuth2TokenDefinition`,description:`Represents an OAuth2 token.`,unevaluatedProperties:!1,properties:{token:{type:`string`,title:`OAuth2Token`,description:`The security token to use.`},type:{type:`string`,title:`OAuth2TokenType`,description:`The type of the security token to use.`}},required:[`token`,`type`]},duration:{oneOf:[{type:`object`,minProperties:1,unevaluatedProperties:!1,properties:{days:{type:`integer`,title:`DurationDays`,description:`Number of days, if any.`},hours:{type:`integer`,title:`DurationHours`,description:`Number of days, if any.`},minutes:{type:`integer`,title:`DurationMinutes`,description:`Number of minutes, if any.`},seconds:{type:`integer`,title:`DurationSeconds`,description:`Number of seconds, if any.`},milliseconds:{type:`integer`,title:`DurationMilliseconds`,description:`Number of milliseconds, if any.`}},title:`DurationInline`,description:`The inline definition of a duration.`},{$ref:`#/$defs/runtimeExpression`,title:`DurationExpression`,description:`Runtime expression that generates an ISO 8601`},{type:`string`,pattern:`^P(?!$)(\\d+(?:\\.\\d+)?Y)?(\\d+(?:\\.\\d+)?M)?(\\d+(?:\\.\\d+)?W)?(\\d+(?:\\.\\d+)?D)?(T(?=\\d)(\\d+(?:\\.\\d+)?H)?(\\d+(?:\\.\\d+)?M)?(\\d+(?:\\.\\d+)?S)?)?$`,title:`DurationLiteral`,description:`The Literal ISO 8601 representation of a duration.`}]},error:{type:`object`,title:`Error`,description:`Represents an error.`,unevaluatedProperties:!1,properties:{type:{title:`ErrorType`,description:`A URI reference that identifies the error type.`,oneOf:[{title:`LiteralErrorType`,$ref:`#/$defs/uriTemplate`,description:`The literal error type.`},{title:`ExpressionErrorType`,$ref:`#/$defs/runtimeExpression`,description:`An expression based error type.`}]},status:{type:`integer`,title:`ErrorStatus`,description:`The status code generated by the origin for this occurrence of the error.`},instance:{title:`ErrorInstance`,description:`A JSON Pointer used to reference the component the error originates from.`,oneOf:[{title:`LiteralErrorInstance`,description:`The literal error instance.`,type:`string`,format:`json-pointer`},{$ref:`#/$defs/runtimeExpression`,title:`ExpressionErrorInstance`,description:`An expression based error instance.`}]},title:{description:`A short, human-readable summary of the error.`,title:`ErrorTitle`,anyOf:[{$ref:`#/$defs/runtimeExpression`,title:`ExpressionErrorTitle`},{type:`string`,title:`LiteralErrorTitle`}]},detail:{title:`ErrorDetails`,description:`A human-readable explanation specific to this occurrence of the error.`,anyOf:[{$ref:`#/$defs/runtimeExpression`,title:`ExpressionErrorDetails`},{type:`string`,title:`LiteralErrorDetails`}]}},required:[`type`,`status`]},errorFilter:{type:`object`,title:`ErrorFilter`,description:`Error filtering base on static values. For error filtering on dynamic values, use catch.when property`,minProperties:1,properties:{type:{type:`string`,description:`if present, means this value should be used for filtering`},status:{type:`integer`,description:`if present, means this value should be used for filtering`},instance:{type:`string`,description:`if present, means this value should be used for filtering`},title:{type:`string`,description:`if present, means this value should be used for filtering`},details:{type:`string`,description:`if present, means this value should be used for filtering`}}},uriTemplate:{title:`UriTemplate`,anyOf:[{title:`LiteralUriTemplate`,type:`string`,format:`uri-template`,pattern:`^[A-Za-z][A-Za-z0-9+\\-.]*://.*`},{title:`LiteralUri`,type:`string`,format:`uri`,pattern:`^[A-Za-z][A-Za-z0-9+\\-.]*://.*`}]},endpoint:{title:`Endpoint`,description:`Represents an endpoint.`,oneOf:[{$ref:`#/$defs/runtimeExpression`},{$ref:`#/$defs/uriTemplate`},{title:`EndpointConfiguration`,type:`object`,unevaluatedProperties:!1,properties:{uri:{title:`EndpointUri`,description:`The endpoint's URI.`,oneOf:[{title:`LiteralEndpointURI`,description:`The literal endpoint's URI.`,$ref:`#/$defs/uriTemplate`},{title:`ExpressionEndpointURI`,$ref:`#/$defs/runtimeExpression`,description:`An expression based endpoint's URI.`}]},authentication:{$ref:`#/$defs/referenceableAuthenticationPolicy`,title:`EndpointAuthentication`,description:`The authentication policy to use.`}},required:[`uri`]}]},eventProperties:{type:`object`,title:`EventProperties`,description:`Describes the properties of an event.`,properties:{id:{type:`string`,title:`EventId`,description:`The event's unique identifier.`},source:{title:`EventSource`,description:`Identifies the context in which an event happened.`,oneOf:[{$ref:`#/$defs/uriTemplate`},{$ref:`#/$defs/runtimeExpression`}]},type:{type:`string`,title:`EventType`,description:`This attribute contains a value describing the type of event related to the originating occurrence.`},time:{title:`EventTime`,description:`When the event occured.`,oneOf:[{title:`LiteralTime`,type:`string`,format:`date-time`},{$ref:`#/$defs/runtimeExpression`}]},subject:{type:`string`,title:`EventSubject`,description:`The subject of the event.`},datacontenttype:{type:`string`,title:`EventDataContentType`,description:`Content type of data value. This attribute enables data to carry any type of content, whereby format and encoding might differ from that of the chosen event format.`},dataschema:{title:`EventDataschema`,description:`The schema describing the event format.`,oneOf:[{title:`LiteralDataSchema`,$ref:`#/$defs/uriTemplate`,description:`The literal event data schema.`},{title:`ExpressionDataSchema`,$ref:`#/$defs/runtimeExpression`,description:`An expression based event data schema.`}]},data:{title:`EventData`,description:`The event's payload data`,anyOf:[{$ref:`#/$defs/runtimeExpression`},{}]}},additionalProperties:!0},eventConsumptionStrategy:{type:`object`,title:`EventConsumptionStrategy`,description:`Describe the event consumption strategy to adopt.`,unevaluatedProperties:!1,oneOf:[{title:`AllEventConsumptionStrategy`,properties:{all:{type:`array`,title:`AllEventConsumptionStrategyConfiguration`,description:`A list containing all the events that must be consumed.`,items:{$ref:`#/$defs/eventFilter`}}},required:[`all`]},{title:`AnyEventConsumptionStrategy`,properties:{any:{type:`array`,title:`AnyEventConsumptionStrategyConfiguration`,description:`A list containing any of the events to consume.`,items:{$ref:`#/$defs/eventFilter`}},until:{oneOf:[{type:`string`,title:`AnyEventUntilCondition`,description:`A runtime expression condition evaluated after consuming an event and which determines whether or not to continue listening.`},{allOf:[{$ref:`#/$defs/eventConsumptionStrategy`,description:`The strategy that defines the event(s) to consume to stop listening.`},{properties:{until:!1}}],title:`AnyEventUntilConsumed`}]}},required:[`any`]},{title:`OneEventConsumptionStrategy`,properties:{one:{$ref:`#/$defs/eventFilter`,title:`OneEventConsumptionStrategyConfiguration`,description:`The single event to consume.`}},required:[`one`]}]},eventFilter:{type:`object`,title:`EventFilter`,description:`An event filter is a mechanism used to selectively process or handle events based on predefined criteria, such as event type, source, or specific attributes.`,unevaluatedProperties:!1,properties:{with:{$ref:`#/$defs/eventProperties`,minProperties:1,title:`WithEvent`,description:`An event filter is a mechanism used to selectively process or handle events based on predefined criteria, such as event type, source, or specific attributes.`},correlate:{type:`object`,title:`EventFilterCorrelate`,description:`A correlation is a link between events and data, established by mapping event attributes to specific data attributes, allowing for coordinated processing or handling based on event characteristics.`,additionalProperties:{type:`object`,properties:{from:{type:`string`,title:`CorrelateFrom`,description:`A runtime expression used to extract the correlation value from the filtered event.`},expect:{type:`string`,title:`CorrelateExpect`,description:`A constant or a runtime expression, if any, used to determine whether or not the extracted correlation value matches expectations. If not set, the first extracted value will be used as the correlation's expectation.`}},required:[`from`]}}},required:[`with`]},extension:{type:`object`,title:`Extension`,description:`The definition of an extension.`,unevaluatedProperties:!1,properties:{extend:{type:`string`,enum:[`call`,`composite`,`emit`,`for`,`listen`,`raise`,`run`,`set`,`switch`,`try`,`wait`,`all`],title:`ExtensionTarget`,description:`The type of task to extend.`},when:{type:`string`,title:`ExtensionCondition`,description:`A runtime expression, if any, used to determine whether or not the extension should apply in the specified context.`},before:{$ref:`#/$defs/taskList`,title:`ExtensionDoBefore`,description:`The task(s) to execute before the extended task, if any.`},after:{$ref:`#/$defs/taskList`,title:`ExtensionDoAfter`,description:`The task(s) to execute after the extended task, if any.`}},required:[`extend`]},externalResource:{type:`object`,title:`ExternalResource`,description:`Represents an external resource.`,unevaluatedProperties:!1,properties:{name:{type:`string`,title:`ExternalResourceName`,description:`The name of the external resource, if any.`},endpoint:{$ref:`#/$defs/endpoint`,title:`ExternalResourceEndpoint`,description:`The endpoint of the external resource.`}},required:[`endpoint`]},input:{type:`object`,title:`Input`,description:`Configures the input of a workflow or task.`,unevaluatedProperties:!1,properties:{schema:{$ref:`#/$defs/schema`,title:`InputSchema`,description:`The schema used to describe and validate the input of the workflow or task.`},from:{title:`InputFrom`,description:`A runtime expression, if any, used to mutate and/or filter the input of the workflow or task.`,oneOf:[{type:`string`},{type:`object`}]}}},output:{type:`object`,title:`Output`,description:`Configures the output of a workflow or task.`,unevaluatedProperties:!1,properties:{schema:{$ref:`#/$defs/schema`,title:`OutputSchema`,description:`The schema used to describe and validate the output of the workflow or task.`},as:{title:`OutputAs`,description:`A runtime expression, if any, used to mutate and/or filter the output of the workflow or task.`,oneOf:[{type:`string`},{type:`object`}]}}},export:{type:`object`,title:`Export`,description:`Set the content of the context. .`,unevaluatedProperties:!1,properties:{schema:{$ref:`#/$defs/schema`,title:`ExportSchema`,description:`The schema used to describe and validate the workflow context.`},as:{title:`ExportAs`,description:`A runtime expression, if any, used to export the output data to the context.`,oneOf:[{type:`string`},{type:`object`}]}}},retryPolicy:{type:`object`,title:`RetryPolicy`,description:`Defines a retry policy.`,unevaluatedProperties:!1,properties:{when:{type:`string`,title:`RetryWhen`,description:`A runtime expression, if any, used to determine whether or not to retry running the task, in a given context.`},exceptWhen:{type:`string`,title:`RetryExcepWhen`,description:`A runtime expression used to determine whether or not to retry running the task, in a given context.`},delay:{$ref:`#/$defs/duration`,title:`RetryDelay`,description:`The duration to wait between retry attempts.`},backoff:{type:`object`,title:`RetryBackoff`,description:`The retry duration backoff.`,unevaluatedProperties:!1,oneOf:[{title:`ConstantBackoff`,properties:{constant:{type:`object`,description:`The definition of the constant backoff to use, if any.`}},required:[`constant`]},{title:`ExponentialBackOff`,properties:{exponential:{type:`object`,description:`The definition of the exponential backoff to use, if any.`}},required:[`exponential`]},{title:`LinearBackoff`,properties:{linear:{type:`object`,description:`The definition of the linear backoff to use, if any.`}},required:[`linear`]}]},limit:{type:`object`,title:`RetryLimit`,unevaluatedProperties:!1,properties:{attempt:{type:`object`,title:`RetryLimitAttempt`,unevaluatedProperties:!1,properties:{count:{type:`integer`,title:`RetryLimitAttemptCount`,description:`The maximum amount of retry attempts, if any.`},duration:{$ref:`#/$defs/duration`,title:`RetryLimitAttemptDuration`,description:`The maximum duration for each retry attempt.`}}},duration:{$ref:`#/$defs/duration`,title:`RetryLimitDuration`,description:`The duration limit, if any, for all retry attempts.`}},description:`The retry limit, if any.`},jitter:{type:`object`,title:`RetryPolicyJitter`,description:`The parameters, if any, that control the randomness or variability of the delay between retry attempts.`,unevaluatedProperties:!1,properties:{from:{$ref:`#/$defs/duration`,title:`RetryPolicyJitterFrom`,description:`The minimum duration of the jitter range.`},to:{$ref:`#/$defs/duration`,title:`RetryPolicyJitterTo`,description:`The maximum duration of the jitter range.`}},required:[`from`,`to`]}}},schema:{type:`object`,title:`Schema`,description:`Represents the definition of a schema.`,unevaluatedProperties:!1,properties:{format:{type:`string`,default:`json`,title:`SchemaFormat`,description:"The schema's format. Defaults to 'json'. The (optional) version of the format can be set using `{format}:{version}`."}},oneOf:[{title:`SchemaInline`,properties:{document:{description:`The schema's inline definition.`}},required:[`document`]},{title:`SchemaExternal`,properties:{resource:{$ref:`#/$defs/externalResource`,title:`SchemaExternalResource`,description:`The schema's external resource.`}},required:[`resource`]}]},timeout:{type:`object`,title:`Timeout`,description:`The definition of a timeout.`,unevaluatedProperties:!1,properties:{after:{$ref:`#/$defs/duration`,title:`TimeoutAfter`,description:`The duration after which to timeout.`}},required:[`after`]},catalog:{type:`object`,title:`Catalog`,description:`The definition of a resource catalog.`,unevaluatedProperties:!1,properties:{endpoint:{$ref:`#/$defs/endpoint`,title:`CatalogEndpoint`,description:`The root URL where the catalog is hosted.`}},required:[`endpoint`]},runtimeExpression:{type:`string`,title:`RuntimeExpression`,description:`A runtime expression.`,pattern:`^\\s*\\$\\{.+\\}\\s*$`},containerLifetime:{type:`object`,title:`ContainerLifetime`,description:`The configuration of a container's lifetime`,unevaluatedProperties:!1,properties:{cleanup:{type:`string`,title:`ContainerCleanupPolicy`,description:`The container cleanup policy to use`,enum:[`always`,`never`,`eventually`],default:`never`},after:{$ref:`#/$defs/duration`,title:`ContainerLifetimeDuration`,description:`The duration after which to cleanup the container, in case the cleanup policy has been set to 'eventually'`}},required:[`cleanup`],if:{properties:{cleanup:{const:`eventually`}}},then:{required:[`after`]},else:{not:{required:[`after`]}}},processResult:{type:`object`,title:`ProcessResult`,description:`The object returned by a run task when its return type has been set 'all'.`,unevaluatedProperties:!1,properties:{code:{type:`integer`,title:`ProcessExitCode`,description:`The process's exit code.`},stdout:{type:`string`,title:`ProcessStandardOutput`,description:`The content of the process's STDOUT.`},stderr:{type:`string`,title:`ProcessStandardError`,description:`The content of the process's STDERR.`}},required:[`code`,`stdout`,`stderr`]},asyncApiServer:{type:`object`,title:`AsyncApiServer`,description:`Configures the target server of an AsyncAPI operation.`,unevaluatedProperties:!1,properties:{name:{type:`string`,title:`AsyncApiServerName`,description:`The target server's name.`},variables:{type:`object`,title:`AsyncApiServerVariables`,description:`The target server's variables, if any.`}},required:[`name`]},asyncApiOutboundMessage:{type:`object`,title:`AsyncApiOutboundMessage`,description:`An object used to configure the message to publish using the target operation.`,unevaluatedProperties:!1,properties:{payload:{type:`object`,title:`AsyncApiMessagePayload`,description:`The message's payload, if any.`},headers:{type:`object`,title:`AsyncApiMessageHeaders`,description:`The message's headers, if any.`}}},asyncApiInboundMessage:{title:`AsyncApiInboundMessage`,description:`Represents a message counsumed by an AsyncAPI subscription.`,allOf:[{$ref:`#/$defs/asyncApiOutboundMessage`},{properties:{correlationId:{type:`string`,title:`AsyncApiMessageCorrelationId`,description:`The message's correlation id, if any.`}}}]},asyncApiSubscription:{type:`object`,title:`AsyncApiSubscription`,description:`An object used to configure the subscription to messages consumed using the target operation.`,unevaluatedProperties:!1,properties:{filter:{$ref:`#/$defs/runtimeExpression`,title:`AsyncApiSubscriptionCorrelation`,description:`A runtime expression, if any, used to filter consumed messages.`},consume:{$ref:`#/$defs/asyncApiMessageConsumptionPolicy`,title:`AsyncApiMessageConsumptionPolicy`,description:`An object used to configure the subscription's message consumption policy.`},foreach:{$ref:`#/$defs/subscriptionIterator`,title:`AsyncApiSubscriptionIterator`,description:`Configures the iterator, if any, for processing consumed messages(s).`}},required:[`consume`]},asyncApiMessageConsumptionPolicy:{type:`object`,title:`AsyncApiMessageConsumptionPolicy`,description:`An object used to configure a subscription's message consumption policy.`,unevaluatedProperties:!1,properties:{for:{$ref:`#/$defs/duration`,title:`AsyncApiMessageConsumptionPolicyFor`,description:`Specifies the time period over which messages will be consumed.`}},oneOf:[{properties:{amount:{type:`integer`,description:`The amount of (filtered) messages to consume before disposing of the subscription.`}},title:`AsyncApiMessageConsumptionPolicyAmount`,required:[`amount`]},{properties:{while:{$ref:`#/$defs/runtimeExpression`,description:`A runtime expression evaluated after each consumed (filtered) message to decide if message consumption should continue.`}},title:`AsyncApiMessageConsumptionPolicyWhile`,required:[`while`]},{properties:{until:{$ref:`#/$defs/runtimeExpression`,description:`A runtime expression evaluated before each consumed (filtered) message to decide if message consumption should continue.`}},title:`AsyncApiMessageConsumptionPolicyUntil`,required:[`until`]}]},subscriptionIterator:{type:`object`,title:`SubscriptionIterator`,description:`Configures the iteration over each item (event or message) consumed by a subscription.`,unevaluatedProperties:!1,properties:{item:{type:`string`,title:`SubscriptionIteratorItem`,description:`The name of the variable used to store the current item being enumerated.`,default:`item`},at:{type:`string`,title:`SubscriptionIteratorIndex`,description:`The name of the variable used to store the index of the current item being enumerated.`,default:`index`},do:{$ref:`#/$defs/taskList`,title:`SubscriptionIteratorTasks`,description:`The tasks to perform for each consumed item.`},output:{$ref:`#/$defs/output`,title:`SubscriptionIteratorOutput`,description:`An object, if any, used to customize the item's output and to document its schema.`},export:{$ref:`#/$defs/export`,title:`SubscriptionIteratorExport`,description:`An object, if any, used to customize the content of the workflow context.`}}}}};let Vt={Workflow:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#`,A2AArguments:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/callTask/oneOf/4/allOf/1/properties/with`,AllEventConsumptionStrategy:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/eventConsumptionStrategy/oneOf/0`,AllEventConsumptionStrategyConfiguration:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/eventConsumptionStrategy/oneOf/0/properties/all`,AnyEventConsumptionStrategy:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/eventConsumptionStrategy/oneOf/1`,AnyEventConsumptionStrategyConfiguration:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/eventConsumptionStrategy/oneOf/1/properties/any`,AnyEventConsumptionStrategyUntil:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/eventConsumptionStrategy/oneOf/1/properties/until`,AnyEventUntilConsumed:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/eventConsumptionStrategy/oneOf/1/properties/until/oneOf/1`,AsyncApiArguments:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/callTask/oneOf/0/allOf/1/properties/with`,AuthenticationPolicy:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/authenticationPolicy`,AuthenticationPolicyReference:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/referenceableAuthenticationPolicy/oneOf/0`,BasicAuthenticationPolicy:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/authenticationPolicy/oneOf/0`,BasicAuthenticationPolicyConfiguration:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/authenticationPolicy/oneOf/0/properties/basic`,BasicAuthenticationProperties:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/authenticationPolicy/oneOf/0/properties/basic/oneOf/0`,BearerAuthenticationPolicy:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/authenticationPolicy/oneOf/1`,BearerAuthenticationPolicyConfiguration:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/authenticationPolicy/oneOf/1/properties/bearer`,BearerAuthenticationProperties:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/authenticationPolicy/oneOf/1/properties/bearer/oneOf/0`,CallA2A:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/callTask/oneOf/4`,CallAsyncAPI:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/callTask/oneOf/0`,CallFunction:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/callTask/oneOf/6`,CallGRPC:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/callTask/oneOf/1`,CallHTTP:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/callTask/oneOf/2`,CallMCP:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/callTask/oneOf/5`,CallOpenAPI:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/callTask/oneOf/3`,CallTask:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/callTask`,Catalog:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/catalog`,CatchErrors:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/tryTask/allOf/1/properties/catch/properties/errors`,ConstantBackoff:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/retryPolicy/properties/backoff/oneOf/0`,Container:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/runTask/allOf/1/properties/run/oneOf/0/properties/container`,ContainerArguments:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/runTask/allOf/1/properties/run/oneOf/0/properties/container/properties/arguments`,ContainerEnvironment:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/runTask/allOf/1/properties/run/oneOf/0/properties/container/properties/environment`,ContainerLifetime:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/runTask/allOf/1/properties/run/oneOf/0/properties/container/properties/lifetime`,ContainerPorts:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/runTask/allOf/1/properties/run/oneOf/0/properties/container/properties/ports`,ContainerVolumes:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/runTask/allOf/1/properties/run/oneOf/0/properties/container/properties/volumes`,DigestAuthenticationPolicy:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/authenticationPolicy/oneOf/2`,DigestAuthenticationPolicyConfiguration:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/authenticationPolicy/oneOf/2/properties/digest`,DigestAuthenticationProperties:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/authenticationPolicy/oneOf/2/properties/digest/oneOf/0`,Document:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/properties/document`,DoTask:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/doTask`,Duration:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/duration`,DurationInline:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/duration/oneOf/0`,EmitEventDefinition:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/emitTask/allOf/1/properties/emit/properties/event`,EmitEventWith:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/emitTask/allOf/1/properties/emit/properties/event/properties/with`,EmitTask:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/emitTask`,EmitTaskConfiguration:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/emitTask/allOf/1/properties/emit`,Endpoint:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/endpoint`,EndpointConfiguration:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/endpoint/oneOf/2`,EndpointUri:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/endpoint/oneOf/2/properties/uri`,Error:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/error`,ErrorDetails:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/error/properties/detail`,ErrorFilter:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/errorFilter`,ErrorInstance:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/error/properties/instance`,ErrorTitle:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/error/properties/title`,ErrorType:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/error/properties/type`,EventConsumptionStrategy:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/eventConsumptionStrategy`,EventData:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/eventProperties/properties/data`,EventDataschema:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/eventProperties/properties/dataschema`,EventFilter:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/eventFilter`,EventFilterCorrelate:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/eventFilter/properties/correlate`,EventSource:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/eventProperties/properties/source`,EventTime:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/eventProperties/properties/time`,ExponentialBackOff:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/retryPolicy/properties/backoff/oneOf/1`,Export:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/export`,ExportAs:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/export/properties/as`,Extension:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/extension`,ExtensionItem:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/properties/use/properties/extensions/items`,ExternalResource:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/externalResource`,ExternalScript:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/runTask/allOf/1/properties/run/oneOf/1/properties/script/oneOf/1`,FlowDirective:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/flowDirective`,ForkTask:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/forkTask`,ForkTaskConfiguration:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/forkTask/allOf/1/properties/fork`,ForTask:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/forTask`,ForTaskConfiguration:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/forTask/allOf/1/properties/for`,FunctionArguments:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/callTask/oneOf/6/allOf/1/properties/with`,GRPCArguments:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/callTask/oneOf/1/allOf/1/properties/with`,HTTPArguments:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/callTask/oneOf/2/allOf/1/properties/with`,HTTPBody:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/callTask/oneOf/2/allOf/1/properties/with/properties/body`,HTTPHeaders:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/callTask/oneOf/2/allOf/1/properties/with/properties/headers`,HTTPQuery:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/callTask/oneOf/2/allOf/1/properties/with/properties/query`,InlineScript:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/runTask/allOf/1/properties/run/oneOf/1/properties/script/oneOf/0`,Input:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/properties/input`,InputFrom:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/input/properties/from`,LinearBackoff:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/retryPolicy/properties/backoff/oneOf/2`,ListenTask:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/listenTask`,ListenTaskConfiguration:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/listenTask/allOf/1/properties/listen`,MCPArguments:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/callTask/oneOf/5/allOf/1/properties/with`,McpCallTransport:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/callTask/oneOf/5/allOf/1/properties/with/properties/transport`,McpClient:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/callTask/oneOf/5/allOf/1/properties/with/properties/client`,McpMethodParameters:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/callTask/oneOf/5/allOf/1/properties/with/properties/parameters`,OAuth2AuthenticationData:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/oauth2AuthenticationProperties`,OAuth2AuthenticationDataAudiences:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/oauth2AuthenticationProperties/properties/audiences`,OAuth2AuthenticationDataClient:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/oauth2AuthenticationProperties/properties/client`,OAuth2AuthenticationDataScopes:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/oauth2AuthenticationProperties/properties/scopes`,OAuth2AuthenticationPolicy:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/authenticationPolicy/oneOf/3`,OAuth2AuthenticationPolicyConfiguration:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/authenticationPolicy/oneOf/3/properties/oauth2`,OAuth2AuthenticationPropertiesEndpoints:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/authenticationPolicy/oneOf/3/properties/oauth2/oneOf/0/properties/endpoints`,OAuth2ConnectAuthenticationProperties:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/authenticationPolicy/oneOf/3/properties/oauth2/oneOf/0`,OAuth2Issuers:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/oauth2AuthenticationProperties/properties/issuers`,OAuth2TokenDefinition:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/oauth2Token`,OAuth2TokenRequest:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/oauth2AuthenticationProperties/properties/request`,OneEventConsumptionStrategy:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/eventConsumptionStrategy/oneOf/2`,OpenAPIArguments:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/callTask/oneOf/3/allOf/1/properties/with`,OpenIdConnectAuthenticationPolicy:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/authenticationPolicy/oneOf/4`,OpenIdConnectAuthenticationPolicyConfiguration:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/authenticationPolicy/oneOf/4/properties/oidc`,OpenIdConnectAuthenticationProperties:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/authenticationPolicy/oneOf/4/properties/oidc/oneOf/0`,Output:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/properties/output`,OutputAs:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/output/properties/as`,RaiseTask:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/raiseTask`,RaiseTaskConfiguration:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/raiseTask/allOf/1/properties/raise`,RaiseTaskError:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/raiseTask/allOf/1/properties/raise/properties/error`,ReferenceableAuthenticationPolicy:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/referenceableAuthenticationPolicy`,RetryBackoff:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/retryPolicy/properties/backoff`,RetryLimit:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/retryPolicy/properties/limit`,RetryLimitAttempt:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/retryPolicy/properties/limit/properties/attempt`,RetryPolicy:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/retryPolicy`,RetryPolicyJitter:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/retryPolicy/properties/jitter`,RunContainer:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/runTask/allOf/1/properties/run/oneOf/0`,RunScript:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/runTask/allOf/1/properties/run/oneOf/1`,RunShell:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/runTask/allOf/1/properties/run/oneOf/2`,RunTask:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/runTask`,RunTaskConfiguration:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/runTask/allOf/1/properties/run`,RuntimeExpression:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/runtimeExpression`,RunWorkflow:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/runTask/allOf/1/properties/run/oneOf/3`,Schedule:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/properties/schedule`,Schema:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/schema`,SchemaExternal:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/schema/oneOf/1`,SchemaInline:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/schema/oneOf/0`,Script:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/runTask/allOf/1/properties/run/oneOf/1/properties/script`,SecretBasedAuthenticationPolicy:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/secretBasedAuthenticationPolicy`,SetTask:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/setTask`,SetTaskConfiguration:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/setTask/allOf/1/properties/set`,Shell:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/runTask/allOf/1/properties/run/oneOf/2/properties/shell`,ShellArguments:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/runTask/allOf/1/properties/run/oneOf/2/properties/shell/properties/arguments`,ShellEnvironment:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/runTask/allOf/1/properties/run/oneOf/2/properties/shell/properties/environment`,SubflowConfiguration:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/runTask/allOf/1/properties/run/oneOf/3/properties/workflow`,SubflowInput:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/runTask/allOf/1/properties/run/oneOf/3/properties/workflow/properties/input`,SubscriptionIterator:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/subscriptionIterator`,SwitchCase:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/switchTask/allOf/1/properties/switch/items/additionalProperties`,SwitchItem:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/switchTask/allOf/1/properties/switch/items`,SwitchTask:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/switchTask`,SwitchTaskConfiguration:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/switchTask/allOf/1/properties/switch`,Task:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/task`,TaskBase:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/taskBase`,TaskBaseIf:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/taskBase/properties/if`,TaskItem:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/taskList/items`,TaskList:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/taskList`,TaskMetadata:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/taskBase/properties/metadata`,TaskTimeout:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/taskBase/properties/timeout`,Timeout:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/timeout`,TryTask:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/tryTask`,TryTaskCatch:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/tryTask/allOf/1/properties/catch`,TryTaskCatchRetry:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/tryTask/allOf/1/properties/catch/properties/retry`,UriTemplate:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/uriTemplate`,Use:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/properties/use`,UseAuthentications:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/properties/use/properties/authentications`,UseCatalogs:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/properties/use/properties/catalogs`,UseErrors:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/properties/use/properties/errors`,UseExtensions:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/properties/use/properties/extensions`,UseFunctions:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/properties/use/properties/functions`,UseRetries:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/properties/use/properties/retries`,UseSecrets:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/properties/use/properties/secrets`,UseTimeouts:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/properties/use/properties/timeouts`,WaitTask:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/waitTask`,WithA2AParameters:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/callTask/oneOf/4/allOf/1/properties/with/properties/parameters`,WithEvent:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/eventFilter/properties/with`,WithGRPCArguments:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/callTask/oneOf/1/allOf/1/properties/with/properties/arguments`,WithGRPCService:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/callTask/oneOf/1/allOf/1/properties/with/properties/service`,WithOpenAPIParameters:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/$defs/callTask/oneOf/3/allOf/1/properties/with/properties/parameters`,WorkflowMetadata:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/properties/document/properties/metadata`,WorkflowTags:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/properties/document/properties/tags`,WorkflowTimeout:`https://serverlessworkflow.io/schemas/1.0.3/workflow.json#/properties/timeout`};var Ht=u(Nt()),Ut=u(zt());let Wt=new Ht.default({schemas:[Bt],strict:!1});(0,Ut.default)(Wt);let Gt=new Map(Object.entries(Vt).map(([e,t])=>{if(!t)throw Error(`No JSON pointer provided for type '${e}'`);let n=Wt.getSchema(t);if(!n)throw Error(`Unable to find schema '${t}' for type '${e}'`);return[e,n]})),H=(e,t,n)=>{M(e)?.preValidation?.(t,n);let r=Gt.get(e);if(!r)throw Error(`Unable to find a validation function for '${e}'`);if(!r(h(t)))throw Error(`'${e}' is invalid:
|
|
9
|
+
${r.errors?.reduce((e,t)=>e+`- ${t.instancePath} | ${t.schemaPath} | ${t.message} | ${JSON.stringify(t.params)}\n`,``)??``}
|
|
10
|
+
|
|
11
|
+
data: ${JSON.stringify(t,null,4)}`);M(e)?.postValidation?.(t,n)},Kt=class e extends g{constructor(e){super(e),M(`BasicAuthenticationPolicyConfiguration`)?.constructor?.(this)}validate(t){H(`BasicAuthenticationPolicyConfiguration`,new e(this),t)}normalize(){let t=new e(this);return M(`BasicAuthenticationPolicyConfiguration`)?.normalize?.(t)||t}},qt=class e extends g{constructor(e){super(e),M(`BearerAuthenticationPolicyConfiguration`)?.constructor?.(this)}validate(t){H(`BearerAuthenticationPolicyConfiguration`,new e(this),t)}normalize(){let t=new e(this);return M(`BearerAuthenticationPolicyConfiguration`)?.normalize?.(t)||t}},Jt=class e extends g{constructor(e){super(e),M(`DigestAuthenticationPolicyConfiguration`)?.constructor?.(this)}validate(t){H(`DigestAuthenticationPolicyConfiguration`,new e(this),t)}normalize(){let t=new e(this);return M(`DigestAuthenticationPolicyConfiguration`)?.normalize?.(t)||t}},Yt=class e extends g{constructor(e){super(e),M(`OAuth2AuthenticationDataClient`)?.constructor?.(this)}validate(t){H(`OAuth2AuthenticationDataClient`,new e(this),t)}normalize(){let t=new e(this);return M(`OAuth2AuthenticationDataClient`)?.normalize?.(t)||t}},Xt=class e extends g{constructor(e){super(e),M(`OAuth2TokenRequest`)?.constructor?.(this)}validate(t){H(`OAuth2TokenRequest`,new e(this),t)}normalize(){let t=new e(this);return M(`OAuth2TokenRequest`)?.normalize?.(t)||t}},U=class e extends g{constructor(e){super(e),M(`OAuth2TokenDefinition`)?.constructor?.(this)}validate(t){H(`OAuth2TokenDefinition`,new e(this),t)}normalize(){let t=new e(this);return M(`OAuth2TokenDefinition`)?.normalize?.(t)||t}},Zt=class e extends g{constructor(e){super(e),M(`OAuth2AuthenticationPropertiesEndpoints`)?.constructor?.(this)}validate(t){H(`OAuth2AuthenticationPropertiesEndpoints`,new e(this),t)}normalize(){let t=new e(this);return M(`OAuth2AuthenticationPropertiesEndpoints`)?.normalize?.(t)||t}},Qt=class e extends g{constructor(e){super(e);let t=this;m(e)&&(typeof e.client==`object`&&(t.client=new Yt(e.client)),typeof e.request==`object`&&(t.request=new Xt(e.request)),typeof e.subject==`object`&&(t.subject=new U(e.subject)),typeof e.actor==`object`&&(t.actor=new U(e.actor)),typeof e.endpoints==`object`&&(t.endpoints=new Zt(e.endpoints))),M(`OAuth2AuthenticationPolicyConfiguration`)?.constructor?.(this)}validate(t){H(`OAuth2AuthenticationPolicyConfiguration`,new e(this),t)}normalize(){let t=new e(this);return M(`OAuth2AuthenticationPolicyConfiguration`)?.normalize?.(t)||t}},$t=class e extends g{constructor(e){super(e);let t=this;m(e)&&(typeof e.client==`object`&&(t.client=new Yt(e.client)),typeof e.request==`object`&&(t.request=new Xt(e.request)),typeof e.subject==`object`&&(t.subject=new U(e.subject)),typeof e.actor==`object`&&(t.actor=new U(e.actor))),M(`OpenIdConnectAuthenticationPolicyConfiguration`)?.constructor?.(this)}validate(t){H(`OpenIdConnectAuthenticationPolicyConfiguration`,new e(this),t)}normalize(){let t=new e(this);return M(`OpenIdConnectAuthenticationPolicyConfiguration`)?.normalize?.(t)||t}},en=class e extends g{constructor(e){super(e);let t=this;m(e)&&(typeof e.basic==`object`&&(t.basic=new Kt(e.basic)),typeof e.bearer==`object`&&(t.bearer=new qt(e.bearer)),typeof e.digest==`object`&&(t.digest=new Jt(e.digest)),typeof e.oauth2==`object`&&(t.oauth2=new Qt(e.oauth2)),typeof e.oidc==`object`&&(t.oidc=new $t(e.oidc))),M(`ReferenceableAuthenticationPolicy`)?.constructor?.(this)}validate(t){H(`ReferenceableAuthenticationPolicy`,new e(this),t)}normalize(){let t=new e(this);return M(`ReferenceableAuthenticationPolicy`)?.normalize?.(t)||t}},tn=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.authentication==`object`&&(t.authentication=new en(e.authentication)),M(`Endpoint`)?.constructor?.(this)}validate(t){H(`Endpoint`,new e(this),t)}normalize(){let t=new e(this);return M(`Endpoint`)?.normalize?.(t)||t}},nn=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.endpoint==`object`&&(t.endpoint=new tn(e.endpoint)),M(`ExternalResource`)?.constructor?.(this)}validate(t){H(`ExternalResource`,new e(this),t)}normalize(){let t=new e(this);return M(`ExternalResource`)?.normalize?.(t)||t}},rn=class e extends g{constructor(e){super(e);let t=this;m(e)&&(typeof e.agentCard==`object`&&(t.agentCard=new nn(e.agentCard)),typeof e.server==`object`&&(t.server=new tn(e.server))),M(`A2AArguments`)?.constructor?.(this)}validate(t){H(`A2AArguments`,new e(this),t)}normalize(){let t=new e(this);return M(`A2AArguments`)?.normalize?.(t)||t}},an=class e extends g{constructor(e){super(e),M(`WithEvent`)?.constructor?.(this)}validate(t){H(`WithEvent`,new e(this),t)}normalize(){let t=new e(this);return M(`WithEvent`)?.normalize?.(t)||t}},on=class e extends g{constructor(e){super(e),M(`EventFilterCorrelate`)?.constructor?.(this)}validate(t){H(`EventFilterCorrelate`,new e(this),t)}normalize(){let t=new e(this);return M(`EventFilterCorrelate`)?.normalize?.(t)||t}},sn=class e extends g{constructor(e){super(e);let t=this;m(e)&&(typeof e.with==`object`&&(t.with=new an(e.with)),typeof e.correlate==`object`&&(t.correlate=new on(e.correlate))),M(`EventFilter`)?.constructor?.(this)}validate(t){H(`EventFilter`,new e(this),t)}normalize(){let t=new e(this);return M(`EventFilter`)?.normalize?.(t)||t}},cn=class e extends _{constructor(t){super(t),Array.isArray(t)&&t?.length&&(this.splice(0,this.length),t.forEach(e=>this.push(new sn(e)))),Object.setPrototypeOf(this,Object.create(e.prototype)),M(`AllEventConsumptionStrategyConfiguration`)?.constructor?.(this)}validate(t){H(`AllEventConsumptionStrategyConfiguration`,new e(this),t)}normalize(){let t=new e(this);return M(`AllEventConsumptionStrategyConfiguration`)?.normalize?.(t)||t}},ln=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.all==`object`&&(t.all=new cn(e.all)),M(`AllEventConsumptionStrategy`)?.constructor?.(this)}validate(t){H(`AllEventConsumptionStrategy`,new e(this),t)}normalize(){let t=new e(this);return M(`AllEventConsumptionStrategy`)?.normalize?.(t)||t}},un=class e extends _{constructor(t){super(t),Array.isArray(t)&&t?.length&&(this.splice(0,this.length),t.forEach(e=>this.push(new sn(e)))),Object.setPrototypeOf(this,Object.create(e.prototype)),M(`AnyEventConsumptionStrategyConfiguration`)?.constructor?.(this)}validate(t){H(`AnyEventConsumptionStrategyConfiguration`,new e(this),t)}normalize(){let t=new e(this);return M(`AnyEventConsumptionStrategyConfiguration`)?.normalize?.(t)||t}},dn=class e extends g{constructor(e){super(e);let t=this;m(e)&&(typeof e.all==`object`&&(t.all=new cn(e.all)),typeof e.any==`object`&&(t.any=new un(e.any)),typeof e.one==`object`&&(t.one=new sn(e.one))),M(`AnyEventConsumptionStrategyUntil`)?.constructor?.(this)}validate(t){H(`AnyEventConsumptionStrategyUntil`,new e(this),t)}normalize(){let t=new e(this);return M(`AnyEventConsumptionStrategyUntil`)?.normalize?.(t)||t}},fn=class e extends g{constructor(e){super(e);let t=this;m(e)&&(typeof e.any==`object`&&(t.any=new un(e.any)),typeof e.until==`object`&&(t.until=new dn(e.until))),M(`AnyEventConsumptionStrategy`)?.constructor?.(this)}validate(t){H(`AnyEventConsumptionStrategy`,new e(this),t)}normalize(){let t=new e(this);return M(`AnyEventConsumptionStrategy`)?.normalize?.(t)||t}},pn=class e extends g{constructor(e){super(e);let t=this;m(e)&&(typeof e.all==`object`&&(t.all=new cn(e.all)),typeof e.any==`object`&&(t.any=new un(e.any)),typeof e.one==`object`&&(t.one=new sn(e.one))),M(`AnyEventUntilConsumed`)?.constructor?.(this)}validate(t){H(`AnyEventUntilConsumed`,new e(this),t)}normalize(){let t=new e(this);return M(`AnyEventUntilConsumed`)?.normalize?.(t)||t}},mn=class e extends g{constructor(e){super(e),M(`AsyncApiArguments`)?.constructor?.(this)}validate(t){H(`AsyncApiArguments`,new e(this),t)}normalize(){let t=new e(this);return M(`AsyncApiArguments`)?.normalize?.(t)||t}},hn=class e extends g{constructor(e){super(e);let t=this;m(e)&&(typeof e.basic==`object`&&(t.basic=new Kt(e.basic)),typeof e.bearer==`object`&&(t.bearer=new qt(e.bearer)),typeof e.digest==`object`&&(t.digest=new Jt(e.digest)),typeof e.oauth2==`object`&&(t.oauth2=new Qt(e.oauth2)),typeof e.oidc==`object`&&(t.oidc=new $t(e.oidc))),M(`AuthenticationPolicy`)?.constructor?.(this)}validate(t){H(`AuthenticationPolicy`,new e(this),t)}normalize(){let t=new e(this);return M(`AuthenticationPolicy`)?.normalize?.(t)||t}},gn=class e extends g{constructor(e){super(e),M(`AuthenticationPolicyReference`)?.constructor?.(this)}validate(t){H(`AuthenticationPolicyReference`,new e(this),t)}normalize(){let t=new e(this);return M(`AuthenticationPolicyReference`)?.normalize?.(t)||t}},_n=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.basic==`object`&&(t.basic=new Kt(e.basic)),M(`BasicAuthenticationPolicy`)?.constructor?.(this)}validate(t){H(`BasicAuthenticationPolicy`,new e(this),t)}normalize(){let t=new e(this);return M(`BasicAuthenticationPolicy`)?.normalize?.(t)||t}},vn=class e extends g{constructor(e){super(e),M(`BasicAuthenticationProperties`)?.constructor?.(this)}validate(t){H(`BasicAuthenticationProperties`,new e(this),t)}normalize(){let t=new e(this);return M(`BasicAuthenticationProperties`)?.normalize?.(t)||t}},yn=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.bearer==`object`&&(t.bearer=new qt(e.bearer)),M(`BearerAuthenticationPolicy`)?.constructor?.(this)}validate(t){H(`BearerAuthenticationPolicy`,new e(this),t)}normalize(){let t=new e(this);return M(`BearerAuthenticationPolicy`)?.normalize?.(t)||t}},bn=class e extends g{constructor(e){super(e),M(`BearerAuthenticationProperties`)?.constructor?.(this)}validate(t){H(`BearerAuthenticationProperties`,new e(this),t)}normalize(){let t=new e(this);return M(`BearerAuthenticationProperties`)?.normalize?.(t)||t}},xn=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.resource==`object`&&(t.resource=new nn(e.resource)),M(`Schema`)?.constructor?.(this)}validate(t){H(`Schema`,new e(this),t)}normalize(){let t=new e(this);return M(`Schema`)?.normalize?.(t)||t}},W=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.schema==`object`&&(t.schema=new xn(e.schema)),M(`Input`)?.constructor?.(this)}validate(t){H(`Input`,new e(this),t)}normalize(){let t=new e(this);return M(`Input`)?.normalize?.(t)||t}},G=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.schema==`object`&&(t.schema=new xn(e.schema)),M(`Output`)?.constructor?.(this)}validate(t){H(`Output`,new e(this),t)}normalize(){let t=new e(this);return M(`Output`)?.normalize?.(t)||t}},K=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.schema==`object`&&(t.schema=new xn(e.schema)),M(`Export`)?.constructor?.(this)}validate(t){H(`Export`,new e(this),t)}normalize(){let t=new e(this);return M(`Export`)?.normalize?.(t)||t}},q=class e extends g{constructor(e){super(e),M(`Duration`)?.constructor?.(this)}validate(t){H(`Duration`,new e(this),t)}normalize(){let t=new e(this);return M(`Duration`)?.normalize?.(t)||t}},J=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.after==`object`&&(t.after=new q(e.after)),M(`TaskTimeout`)?.constructor?.(this)}validate(t){H(`TaskTimeout`,new e(this),t)}normalize(){let t=new e(this);return M(`TaskTimeout`)?.normalize?.(t)||t}},Y=class e extends g{constructor(e){super(e),M(`TaskMetadata`)?.constructor?.(this)}validate(t){H(`TaskMetadata`,new e(this),t)}normalize(){let t=new e(this);return M(`TaskMetadata`)?.normalize?.(t)||t}},X=class e extends g{constructor(e){super(e);let t=this;m(e)&&(typeof e.input==`object`&&(t.input=new W(e.input)),typeof e.output==`object`&&(t.output=new G(e.output)),typeof e.export==`object`&&(t.export=new K(e.export)),typeof e.timeout==`object`&&(t.timeout=new J(e.timeout)),typeof e.metadata==`object`&&(t.metadata=new Y(e.metadata))),M(`TaskBase`)?.constructor?.(this)}validate(t){H(`TaskBase`,new e(this),t)}normalize(){let t=new e(this);return M(`TaskBase`)?.normalize?.(t)||t}},Sn=class e extends X{constructor(e){super(e);let t=this;m(e)&&(t.call=`a2a`,typeof e.input==`object`&&(t.input=new W(e.input)),typeof e.output==`object`&&(t.output=new G(e.output)),typeof e.export==`object`&&(t.export=new K(e.export)),typeof e.timeout==`object`&&(t.timeout=new J(e.timeout)),typeof e.metadata==`object`&&(t.metadata=new Y(e.metadata)),typeof e.with==`object`&&(t.with=new rn(e.with))),M(`CallA2A`)?.constructor?.(this)}validate(t){H(`CallA2A`,new e(this),t)}normalize(){let t=new e(this);return M(`CallA2A`)?.normalize?.(t)||t}},Cn=class e extends X{constructor(e){super(e);let t=this;m(e)&&(t.call=`asyncapi`,typeof e.input==`object`&&(t.input=new W(e.input)),typeof e.output==`object`&&(t.output=new G(e.output)),typeof e.export==`object`&&(t.export=new K(e.export)),typeof e.timeout==`object`&&(t.timeout=new J(e.timeout)),typeof e.metadata==`object`&&(t.metadata=new Y(e.metadata))),M(`CallAsyncAPI`)?.constructor?.(this)}validate(t){H(`CallAsyncAPI`,new e(this),t)}normalize(){let t=new e(this);return M(`CallAsyncAPI`)?.normalize?.(t)||t}},wn=class e extends g{constructor(e){super(e),M(`FunctionArguments`)?.constructor?.(this)}validate(t){H(`FunctionArguments`,new e(this),t)}normalize(){let t=new e(this);return M(`FunctionArguments`)?.normalize?.(t)||t}},Tn=class e extends X{constructor(e){super(e);let t=this;m(e)&&(typeof e.input==`object`&&(t.input=new W(e.input)),typeof e.output==`object`&&(t.output=new G(e.output)),typeof e.export==`object`&&(t.export=new K(e.export)),typeof e.timeout==`object`&&(t.timeout=new J(e.timeout)),typeof e.metadata==`object`&&(t.metadata=new Y(e.metadata)),typeof e.with==`object`&&(t.with=new wn(e.with))),M(`CallFunction`)?.constructor?.(this)}validate(t){H(`CallFunction`,new e(this),t)}normalize(){let t=new e(this);return M(`CallFunction`)?.normalize?.(t)||t}},En=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.authentication==`object`&&(t.authentication=new en(e.authentication)),M(`WithGRPCService`)?.constructor?.(this)}validate(t){H(`WithGRPCService`,new e(this),t)}normalize(){let t=new e(this);return M(`WithGRPCService`)?.normalize?.(t)||t}},Dn=class e extends g{constructor(e){super(e),M(`WithGRPCArguments`)?.constructor?.(this)}validate(t){H(`WithGRPCArguments`,new e(this),t)}normalize(){let t=new e(this);return M(`WithGRPCArguments`)?.normalize?.(t)||t}},On=class e extends g{constructor(e){super(e);let t=this;m(e)&&(typeof e.proto==`object`&&(t.proto=new nn(e.proto)),typeof e.service==`object`&&(t.service=new En(e.service)),typeof e.arguments==`object`&&(t.arguments=new Dn(e.arguments))),M(`GRPCArguments`)?.constructor?.(this)}validate(t){H(`GRPCArguments`,new e(this),t)}normalize(){let t=new e(this);return M(`GRPCArguments`)?.normalize?.(t)||t}},kn=class e extends X{constructor(e){super(e);let t=this;m(e)&&(t.call=`grpc`,typeof e.input==`object`&&(t.input=new W(e.input)),typeof e.output==`object`&&(t.output=new G(e.output)),typeof e.export==`object`&&(t.export=new K(e.export)),typeof e.timeout==`object`&&(t.timeout=new J(e.timeout)),typeof e.metadata==`object`&&(t.metadata=new Y(e.metadata)),typeof e.with==`object`&&(t.with=new On(e.with))),M(`CallGRPC`)?.constructor?.(this)}validate(t){H(`CallGRPC`,new e(this),t)}normalize(){let t=new e(this);return M(`CallGRPC`)?.normalize?.(t)||t}},An=class e extends g{constructor(e){super(e),M(`HTTPBody`)?.constructor?.(this)}validate(t){H(`HTTPBody`,new e(this),t)}normalize(){let t=new e(this);return M(`HTTPBody`)?.normalize?.(t)||t}},jn=class e extends g{constructor(e){super(e);let t=this;m(e)&&(typeof e.endpoint==`object`&&(t.endpoint=new tn(e.endpoint)),typeof e.body==`object`&&(t.body=new An(e.body))),M(`HTTPArguments`)?.constructor?.(this)}validate(t){H(`HTTPArguments`,new e(this),t)}normalize(){let t=new e(this);return M(`HTTPArguments`)?.normalize?.(t)||t}},Mn=class e extends X{constructor(e){super(e);let t=this;m(e)&&(t.call=`http`,typeof e.input==`object`&&(t.input=new W(e.input)),typeof e.output==`object`&&(t.output=new G(e.output)),typeof e.export==`object`&&(t.export=new K(e.export)),typeof e.timeout==`object`&&(t.timeout=new J(e.timeout)),typeof e.metadata==`object`&&(t.metadata=new Y(e.metadata)),typeof e.with==`object`&&(t.with=new jn(e.with))),M(`CallHTTP`)?.constructor?.(this)}validate(t){H(`CallHTTP`,new e(this),t)}normalize(){let t=new e(this);return M(`CallHTTP`)?.normalize?.(t)||t}},Nn=class e extends g{constructor(e){super(e),M(`McpClient`)?.constructor?.(this)}validate(t){H(`McpClient`,new e(this),t)}normalize(){let t=new e(this);return M(`McpClient`)?.normalize?.(t)||t}},Pn=class e extends g{constructor(e){super(e);let t=this;m(e)&&(typeof e.timeout==`object`&&(t.timeout=new q(e.timeout)),typeof e.client==`object`&&(t.client=new Nn(e.client))),M(`MCPArguments`)?.constructor?.(this)}validate(t){H(`MCPArguments`,new e(this),t)}normalize(){let t=new e(this);return M(`MCPArguments`)?.normalize?.(t)||t}},Fn=class e extends X{constructor(e){super(e);let t=this;m(e)&&(t.call=`mcp`,typeof e.input==`object`&&(t.input=new W(e.input)),typeof e.output==`object`&&(t.output=new G(e.output)),typeof e.export==`object`&&(t.export=new K(e.export)),typeof e.timeout==`object`&&(t.timeout=new J(e.timeout)),typeof e.metadata==`object`&&(t.metadata=new Y(e.metadata)),typeof e.with==`object`&&(t.with=new Pn(e.with))),M(`CallMCP`)?.constructor?.(this)}validate(t){H(`CallMCP`,new e(this),t)}normalize(){let t=new e(this);return M(`CallMCP`)?.normalize?.(t)||t}},In=class e extends g{constructor(e){super(e),M(`WithOpenAPIParameters`)?.constructor?.(this)}validate(t){H(`WithOpenAPIParameters`,new e(this),t)}normalize(){let t=new e(this);return M(`WithOpenAPIParameters`)?.normalize?.(t)||t}},Ln=class e extends g{constructor(e){super(e);let t=this;m(e)&&(typeof e.document==`object`&&(t.document=new nn(e.document)),typeof e.parameters==`object`&&(t.parameters=new In(e.parameters)),typeof e.authentication==`object`&&(t.authentication=new en(e.authentication))),M(`OpenAPIArguments`)?.constructor?.(this)}validate(t){H(`OpenAPIArguments`,new e(this),t)}normalize(){let t=new e(this);return M(`OpenAPIArguments`)?.normalize?.(t)||t}},Rn=class e extends X{constructor(e){super(e);let t=this;m(e)&&(t.call=`openapi`,typeof e.input==`object`&&(t.input=new W(e.input)),typeof e.output==`object`&&(t.output=new G(e.output)),typeof e.export==`object`&&(t.export=new K(e.export)),typeof e.timeout==`object`&&(t.timeout=new J(e.timeout)),typeof e.metadata==`object`&&(t.metadata=new Y(e.metadata)),typeof e.with==`object`&&(t.with=new Ln(e.with))),M(`CallOpenAPI`)?.constructor?.(this)}validate(t){H(`CallOpenAPI`,new e(this),t)}normalize(){let t=new e(this);return M(`CallOpenAPI`)?.normalize?.(t)||t}},zn=class e extends g{constructor(e){super(e);let t=this;m(e)&&(typeof e.input==`object`&&(t.input=new W(e.input)),typeof e.output==`object`&&(t.output=new G(e.output)),typeof e.export==`object`&&(t.export=new K(e.export)),typeof e.timeout==`object`&&(t.timeout=new J(e.timeout)),typeof e.metadata==`object`&&(t.metadata=new Y(e.metadata))),M(`CallTask`)?.constructor?.(this)}validate(t){H(`CallTask`,new e(this),t)}normalize(){let t=new e(this);return M(`CallTask`)?.normalize?.(t)||t}},Bn=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.endpoint==`object`&&(t.endpoint=new tn(e.endpoint)),M(`Catalog`)?.constructor?.(this)}validate(t){H(`Catalog`,new e(this),t)}normalize(){let t=new e(this);return M(`Catalog`)?.normalize?.(t)||t}},Vn=class e extends g{constructor(e){super(e),M(`ErrorFilter`)?.constructor?.(this)}validate(t){H(`ErrorFilter`,new e(this),t)}normalize(){let t=new e(this);return M(`ErrorFilter`)?.normalize?.(t)||t}},Hn=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.with==`object`&&(t.with=new Vn(e.with)),M(`CatchErrors`)?.constructor?.(this)}validate(t){H(`CatchErrors`,new e(this),t)}normalize(){let t=new e(this);return M(`CatchErrors`)?.normalize?.(t)||t}},Un=class e extends g{constructor(e){super(e),M(`ConstantBackoff`)?.constructor?.(this)}validate(t){H(`ConstantBackoff`,new e(this),t)}normalize(){let t=new e(this);return M(`ConstantBackoff`)?.normalize?.(t)||t}},Wn=class e extends g{constructor(e){super(e),M(`ContainerPorts`)?.constructor?.(this)}validate(t){H(`ContainerPorts`,new e(this),t)}normalize(){let t=new e(this);return M(`ContainerPorts`)?.normalize?.(t)||t}},Gn=class e extends g{constructor(e){super(e),M(`ContainerVolumes`)?.constructor?.(this)}validate(t){H(`ContainerVolumes`,new e(this),t)}normalize(){let t=new e(this);return M(`ContainerVolumes`)?.normalize?.(t)||t}},Kn=class e extends g{constructor(e){super(e),M(`ContainerEnvironment`)?.constructor?.(this)}validate(t){H(`ContainerEnvironment`,new e(this),t)}normalize(){let t=new e(this);return M(`ContainerEnvironment`)?.normalize?.(t)||t}},qn=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.after==`object`&&(t.after=new q(e.after)),M(`ContainerLifetime`)?.constructor?.(this)}validate(t){H(`ContainerLifetime`,new e(this),t)}normalize(){let t=new e(this);return M(`ContainerLifetime`)?.normalize?.(t)||t}},Jn=class e extends g{constructor(e){super(e);let t=this;m(e)&&(typeof e.ports==`object`&&(t.ports=new Wn(e.ports)),typeof e.volumes==`object`&&(t.volumes=new Gn(e.volumes)),typeof e.environment==`object`&&(t.environment=new Kn(e.environment)),typeof e.lifetime==`object`&&(t.lifetime=new qn(e.lifetime))),M(`Container`)?.constructor?.(this)}validate(t){H(`Container`,new e(this),t)}normalize(){let t=new e(this);return M(`Container`)?.normalize?.(t)||t}},Yn=class e extends _{constructor(t){super(t),Array.isArray(t)&&t?.length&&(this.splice(0,this.length),t.forEach(e=>this.push(e))),Object.setPrototypeOf(this,Object.create(e.prototype)),M(`ContainerArguments`)?.constructor?.(this)}validate(t){H(`ContainerArguments`,new e(this),t)}normalize(){let t=new e(this);return M(`ContainerArguments`)?.normalize?.(t)||t}},Xn=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.digest==`object`&&(t.digest=new Jt(e.digest)),M(`DigestAuthenticationPolicy`)?.constructor?.(this)}validate(t){H(`DigestAuthenticationPolicy`,new e(this),t)}normalize(){let t=new e(this);return M(`DigestAuthenticationPolicy`)?.normalize?.(t)||t}},Zn=class e extends g{constructor(e){super(e),M(`DigestAuthenticationProperties`)?.constructor?.(this)}validate(t){H(`DigestAuthenticationProperties`,new e(this),t)}normalize(){let t=new e(this);return M(`DigestAuthenticationProperties`)?.normalize?.(t)||t}},Qn=class e extends g{constructor(e){super(e),M(`WorkflowTags`)?.constructor?.(this)}validate(t){H(`WorkflowTags`,new e(this),t)}normalize(){let t=new e(this);return M(`WorkflowTags`)?.normalize?.(t)||t}},$n=class e extends g{constructor(e){super(e),M(`WorkflowMetadata`)?.constructor?.(this)}validate(t){H(`WorkflowMetadata`,new e(this),t)}normalize(){let t=new e(this);return M(`WorkflowMetadata`)?.normalize?.(t)||t}},er=class e extends g{constructor(e){super(e);let t=this;m(e)&&(typeof e.tags==`object`&&(t.tags=new Qn(e.tags)),typeof e.metadata==`object`&&(t.metadata=new $n(e.metadata))),M(`Document`)?.constructor?.(this)}validate(t){H(`Document`,new e(this),t)}normalize(){let t=new e(this);return M(`Document`)?.normalize?.(t)||t}},tr=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.branches==`object`&&(t.branches=new Or(e.branches)),M(`ForkTaskConfiguration`)?.constructor?.(this)}validate(t){H(`ForkTaskConfiguration`,new e(this),t)}normalize(){let t=new e(this);return M(`ForkTaskConfiguration`)?.normalize?.(t)||t}},nr=class e extends g{constructor(e){super(e),M(`EmitEventWith`)?.constructor?.(this)}validate(t){H(`EmitEventWith`,new e(this),t)}normalize(){let t=new e(this);return M(`EmitEventWith`)?.normalize?.(t)||t}},rr=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.with==`object`&&(t.with=new nr(e.with)),M(`EmitEventDefinition`)?.constructor?.(this)}validate(t){H(`EmitEventDefinition`,new e(this),t)}normalize(){let t=new e(this);return M(`EmitEventDefinition`)?.normalize?.(t)||t}},ir=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.event==`object`&&(t.event=new rr(e.event)),M(`EmitTaskConfiguration`)?.constructor?.(this)}validate(t){H(`EmitTaskConfiguration`,new e(this),t)}normalize(){let t=new e(this);return M(`EmitTaskConfiguration`)?.normalize?.(t)||t}},ar=class e extends g{constructor(e){super(e),M(`ForTaskConfiguration`)?.constructor?.(this)}validate(t){H(`ForTaskConfiguration`,new e(this),t)}normalize(){let t=new e(this);return M(`ForTaskConfiguration`)?.normalize?.(t)||t}},or=class e extends g{constructor(e){super(e);let t=this;m(e)&&(typeof e.all==`object`&&(t.all=new cn(e.all)),typeof e.any==`object`&&(t.any=new un(e.any)),typeof e.until==`object`&&(t.until=new dn(e.until)),typeof e.one==`object`&&(t.one=new sn(e.one))),M(`EventConsumptionStrategy`)?.constructor?.(this)}validate(t){H(`EventConsumptionStrategy`,new e(this),t)}normalize(){let t=new e(this);return M(`EventConsumptionStrategy`)?.normalize?.(t)||t}},sr=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.to==`object`&&(t.to=new or(e.to)),M(`ListenTaskConfiguration`)?.constructor?.(this)}validate(t){H(`ListenTaskConfiguration`,new e(this),t)}normalize(){let t=new e(this);return M(`ListenTaskConfiguration`)?.normalize?.(t)||t}},cr=class e extends g{constructor(e){super(e);let t=this;m(e)&&(typeof e.do==`object`&&(t.do=new Or(e.do)),typeof e.output==`object`&&(t.output=new G(e.output)),typeof e.export==`object`&&(t.export=new K(e.export))),M(`SubscriptionIterator`)?.constructor?.(this)}validate(t){H(`SubscriptionIterator`,new e(this),t)}normalize(){let t=new e(this);return M(`SubscriptionIterator`)?.normalize?.(t)||t}},lr=class e extends g{constructor(e){super(e),M(`RaiseTaskError`)?.constructor?.(this)}validate(t){H(`RaiseTaskError`,new e(this),t)}normalize(){let t=new e(this);return M(`RaiseTaskError`)?.normalize?.(t)||t}},ur=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.error==`object`&&(t.error=new lr(e.error)),M(`RaiseTaskConfiguration`)?.constructor?.(this)}validate(t){H(`RaiseTaskConfiguration`,new e(this),t)}normalize(){let t=new e(this);return M(`RaiseTaskConfiguration`)?.normalize?.(t)||t}},dr=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.source==`object`&&(t.source=new nn(e.source)),M(`Script`)?.constructor?.(this)}validate(t){H(`Script`,new e(this),t)}normalize(){let t=new e(this);return M(`Script`)?.normalize?.(t)||t}},fr=class e extends g{constructor(e){super(e),M(`ShellEnvironment`)?.constructor?.(this)}validate(t){H(`ShellEnvironment`,new e(this),t)}normalize(){let t=new e(this);return M(`ShellEnvironment`)?.normalize?.(t)||t}},pr=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.environment==`object`&&(t.environment=new fr(e.environment)),M(`Shell`)?.constructor?.(this)}validate(t){H(`Shell`,new e(this),t)}normalize(){let t=new e(this);return M(`Shell`)?.normalize?.(t)||t}},mr=class e extends g{constructor(e){super(e),M(`SubflowInput`)?.constructor?.(this)}validate(t){H(`SubflowInput`,new e(this),t)}normalize(){let t=new e(this);return M(`SubflowInput`)?.normalize?.(t)||t}},hr=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.input==`object`&&(t.input=new mr(e.input)),M(`SubflowConfiguration`)?.constructor?.(this)}validate(t){H(`SubflowConfiguration`,new e(this),t)}normalize(){let t=new e(this);return M(`SubflowConfiguration`)?.normalize?.(t)||t}},gr=class e extends g{constructor(e){super(e);let t=this;m(e)&&(typeof e.container==`object`&&(t.container=new Jn(e.container)),typeof e.script==`object`&&(t.script=new dr(e.script)),typeof e.shell==`object`&&(t.shell=new pr(e.shell)),typeof e.workflow==`object`&&(t.workflow=new hr(e.workflow))),M(`RunTaskConfiguration`)?.constructor?.(this)}validate(t){H(`RunTaskConfiguration`,new e(this),t)}normalize(){let t=new e(this);return M(`RunTaskConfiguration`)?.normalize?.(t)||t}},_r=class e extends g{constructor(e){super(e),M(`SwitchCase`)?.constructor?.(this)}validate(t){H(`SwitchCase`,new e(this),t)}normalize(){let t=new e(this);return M(`SwitchCase`)?.normalize?.(t)||t}},vr=class e extends g{constructor(e){super(e);let t=this;if(m(e)){let n=[];Object.entries(e).filter(([e])=>!n.includes(e)).forEach(([e,n])=>{t[e]=new _r(n)})}M(`SwitchItem`)?.constructor?.(this)}validate(t){H(`SwitchItem`,new e(this),t)}normalize(){let t=new e(this);return M(`SwitchItem`)?.normalize?.(t)||t}},yr=class e extends _{constructor(t){super(t),Array.isArray(t)&&t?.length&&(this.splice(0,this.length),t.forEach(e=>this.push(new vr(e)))),Object.setPrototypeOf(this,Object.create(e.prototype)),M(`SwitchTaskConfiguration`)?.constructor?.(this)}validate(t){H(`SwitchTaskConfiguration`,new e(this),t)}normalize(){let t=new e(this);return M(`SwitchTaskConfiguration`)?.normalize?.(t)||t}},br=class e extends g{constructor(e){super(e),M(`RetryBackoff`)?.constructor?.(this)}validate(t){H(`RetryBackoff`,new e(this),t)}normalize(){let t=new e(this);return M(`RetryBackoff`)?.normalize?.(t)||t}},xr=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.duration==`object`&&(t.duration=new q(e.duration)),M(`RetryLimitAttempt`)?.constructor?.(this)}validate(t){H(`RetryLimitAttempt`,new e(this),t)}normalize(){let t=new e(this);return M(`RetryLimitAttempt`)?.normalize?.(t)||t}},Sr=class e extends g{constructor(e){super(e);let t=this;m(e)&&(typeof e.attempt==`object`&&(t.attempt=new xr(e.attempt)),typeof e.duration==`object`&&(t.duration=new q(e.duration))),M(`RetryLimit`)?.constructor?.(this)}validate(t){H(`RetryLimit`,new e(this),t)}normalize(){let t=new e(this);return M(`RetryLimit`)?.normalize?.(t)||t}},Cr=class e extends g{constructor(e){super(e);let t=this;m(e)&&(typeof e.from==`object`&&(t.from=new q(e.from)),typeof e.to==`object`&&(t.to=new q(e.to))),M(`RetryPolicyJitter`)?.constructor?.(this)}validate(t){H(`RetryPolicyJitter`,new e(this),t)}normalize(){let t=new e(this);return M(`RetryPolicyJitter`)?.normalize?.(t)||t}},wr=class e extends g{constructor(e){super(e);let t=this;m(e)&&(typeof e.delay==`object`&&(t.delay=new q(e.delay)),typeof e.backoff==`object`&&(t.backoff=new br(e.backoff)),typeof e.limit==`object`&&(t.limit=new Sr(e.limit)),typeof e.jitter==`object`&&(t.jitter=new Cr(e.jitter))),M(`TryTaskCatchRetry`)?.constructor?.(this)}validate(t){H(`TryTaskCatchRetry`,new e(this),t)}normalize(){let t=new e(this);return M(`TryTaskCatchRetry`)?.normalize?.(t)||t}},Tr=class e extends g{constructor(e){super(e);let t=this;m(e)&&(typeof e.errors==`object`&&(t.errors=new Hn(e.errors)),typeof e.retry==`object`&&(t.retry=new wr(e.retry)),typeof e.do==`object`&&(t.do=new Or(e.do))),M(`TryTaskCatch`)?.constructor?.(this)}validate(t){H(`TryTaskCatch`,new e(this),t)}normalize(){let t=new e(this);return M(`TryTaskCatch`)?.normalize?.(t)||t}},Er=class e extends g{constructor(e){super(e);let t=this;m(e)&&(typeof e.input==`object`&&(t.input=new W(e.input)),typeof e.output==`object`&&(t.output=new G(e.output)),typeof e.export==`object`&&(t.export=new K(e.export)),typeof e.timeout==`object`&&(t.timeout=new J(e.timeout)),typeof e.metadata==`object`&&(t.metadata=new Y(e.metadata)),typeof e.fork==`object`&&(t.fork=new tr(e.fork)),typeof e.emit==`object`&&(t.emit=new ir(e.emit)),typeof e.for==`object`&&(t.for=new ar(e.for)),typeof e.listen==`object`&&(t.listen=new sr(e.listen)),typeof e.foreach==`object`&&(t.foreach=new cr(e.foreach)),typeof e.raise==`object`&&(t.raise=new ur(e.raise)),typeof e.run==`object`&&(t.run=new gr(e.run)),typeof e.switch==`object`&&(t.switch=new yr(e.switch)),typeof e.try==`object`&&(t.try=new Or(e.try)),typeof e.catch==`object`&&(t.catch=new Tr(e.catch)),typeof e.wait==`object`&&(t.wait=new q(e.wait))),M(`Task`)?.constructor?.(this)}validate(t){H(`Task`,new e(this),t)}normalize(){let t=new e(this);return M(`Task`)?.normalize?.(t)||t}},Dr=class e extends g{constructor(e){super(e);let t=this;if(m(e)){let n=[];Object.entries(e).filter(([e])=>!n.includes(e)).forEach(([e,n])=>{t[e]=new Er(n)})}M(`TaskItem`)?.constructor?.(this)}validate(t){H(`TaskItem`,new e(this),t)}normalize(){let t=new e(this);return M(`TaskItem`)?.normalize?.(t)||t}},Or=class e extends _{constructor(t){super(t),Array.isArray(t)&&t?.length&&(this.splice(0,this.length),t.forEach(e=>this.push(new Dr(e)))),Object.setPrototypeOf(this,Object.create(e.prototype)),M(`TaskList`)?.constructor?.(this)}validate(t){H(`TaskList`,new e(this),t)}normalize(){let t=new e(this);return M(`TaskList`)?.normalize?.(t)||t}},kr=class e extends X{constructor(e){super(e);let t=this;m(e)&&(typeof e.input==`object`&&(t.input=new W(e.input)),typeof e.output==`object`&&(t.output=new G(e.output)),typeof e.export==`object`&&(t.export=new K(e.export)),typeof e.timeout==`object`&&(t.timeout=new J(e.timeout)),typeof e.metadata==`object`&&(t.metadata=new Y(e.metadata)),typeof e.do==`object`&&(t.do=new Or(e.do))),M(`DoTask`)?.constructor?.(this)}validate(t){H(`DoTask`,new e(this),t)}normalize(){let t=new e(this);return M(`DoTask`)?.normalize?.(t)||t}},Ar=class e extends g{constructor(e){super(e),M(`DurationInline`)?.constructor?.(this)}validate(t){H(`DurationInline`,new e(this),t)}normalize(){let t=new e(this);return M(`DurationInline`)?.normalize?.(t)||t}},jr=class e extends X{constructor(e){super(e);let t=this;m(e)&&(typeof e.input==`object`&&(t.input=new W(e.input)),typeof e.output==`object`&&(t.output=new G(e.output)),typeof e.export==`object`&&(t.export=new K(e.export)),typeof e.timeout==`object`&&(t.timeout=new J(e.timeout)),typeof e.metadata==`object`&&(t.metadata=new Y(e.metadata)),typeof e.emit==`object`&&(t.emit=new ir(e.emit))),M(`EmitTask`)?.constructor?.(this)}validate(t){H(`EmitTask`,new e(this),t)}normalize(){let t=new e(this);return M(`EmitTask`)?.normalize?.(t)||t}},Mr=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.authentication==`object`&&(t.authentication=new en(e.authentication)),M(`EndpointConfiguration`)?.constructor?.(this)}validate(t){H(`EndpointConfiguration`,new e(this),t)}normalize(){let t=new e(this);return M(`EndpointConfiguration`)?.normalize?.(t)||t}},Nr=class e extends g{constructor(e){super(e),M(`EndpointUri`)?.constructor?.(this)}validate(t){H(`EndpointUri`,new e(this),t)}normalize(){let t=new e(this);return M(`EndpointUri`)?.normalize?.(t)||t}},Pr=class e extends g{constructor(e){super(e),M(`Error`)?.constructor?.(this)}validate(t){H(`Error`,new e(this),t)}normalize(){let t=new e(this);return M(`Error`)?.normalize?.(t)||t}},Fr=class e extends g{constructor(e){super(e),M(`ErrorDetails`)?.constructor?.(this)}validate(t){H(`ErrorDetails`,new e(this),t)}normalize(){let t=new e(this);return M(`ErrorDetails`)?.normalize?.(t)||t}},Ir=class e extends g{constructor(e){super(e),M(`ErrorInstance`)?.constructor?.(this)}validate(t){H(`ErrorInstance`,new e(this),t)}normalize(){let t=new e(this);return M(`ErrorInstance`)?.normalize?.(t)||t}},Lr=class e extends g{constructor(e){super(e),M(`ErrorTitle`)?.constructor?.(this)}validate(t){H(`ErrorTitle`,new e(this),t)}normalize(){let t=new e(this);return M(`ErrorTitle`)?.normalize?.(t)||t}},Rr=class e extends g{constructor(e){super(e),M(`ErrorType`)?.constructor?.(this)}validate(t){H(`ErrorType`,new e(this),t)}normalize(){let t=new e(this);return M(`ErrorType`)?.normalize?.(t)||t}},zr=class e extends g{constructor(e){super(e),M(`EventData`)?.constructor?.(this)}validate(t){H(`EventData`,new e(this),t)}normalize(){let t=new e(this);return M(`EventData`)?.normalize?.(t)||t}},Br=class e extends g{constructor(e){super(e),M(`EventDataschema`)?.constructor?.(this)}validate(t){H(`EventDataschema`,new e(this),t)}normalize(){let t=new e(this);return M(`EventDataschema`)?.normalize?.(t)||t}},Vr=class e extends g{constructor(e){super(e),M(`EventSource`)?.constructor?.(this)}validate(t){H(`EventSource`,new e(this),t)}normalize(){let t=new e(this);return M(`EventSource`)?.normalize?.(t)||t}},Hr=class e extends g{constructor(e){super(e),M(`EventTime`)?.constructor?.(this)}validate(t){H(`EventTime`,new e(this),t)}normalize(){let t=new e(this);return M(`EventTime`)?.normalize?.(t)||t}},Ur=class e extends g{constructor(e){super(e),M(`ExponentialBackOff`)?.constructor?.(this)}validate(t){H(`ExponentialBackOff`,new e(this),t)}normalize(){let t=new e(this);return M(`ExponentialBackOff`)?.normalize?.(t)||t}},Wr=class e extends g{constructor(e){super(e),M(`ExportAs`)?.constructor?.(this)}validate(t){H(`ExportAs`,new e(this),t)}normalize(){let t=new e(this);return M(`ExportAs`)?.normalize?.(t)||t}},Gr=class e extends g{constructor(e){super(e);let t=this;m(e)&&(typeof e.before==`object`&&(t.before=new Or(e.before)),typeof e.after==`object`&&(t.after=new Or(e.after))),M(`Extension`)?.constructor?.(this)}validate(t){H(`Extension`,new e(this),t)}normalize(){let t=new e(this);return M(`Extension`)?.normalize?.(t)||t}},Kr=class e extends g{constructor(e){super(e);let t=this;if(m(e)){let n=[];Object.entries(e).filter(([e])=>!n.includes(e)).forEach(([e,n])=>{t[e]=new Gr(n)})}M(`ExtensionItem`)?.constructor?.(this)}validate(t){H(`ExtensionItem`,new e(this),t)}normalize(){let t=new e(this);return M(`ExtensionItem`)?.normalize?.(t)||t}},qr=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.source==`object`&&(t.source=new nn(e.source)),M(`ExternalScript`)?.constructor?.(this)}validate(t){H(`ExternalScript`,new e(this),t)}normalize(){let t=new e(this);return M(`ExternalScript`)?.normalize?.(t)||t}},Jr=class e extends g{constructor(e){super(e),M(`FlowDirective`)?.constructor?.(this)}validate(t){H(`FlowDirective`,new e(this),t)}normalize(){let t=new e(this);return M(`FlowDirective`)?.normalize?.(t)||t}},Yr=class e extends X{constructor(e){super(e);let t=this;m(e)&&(typeof e.input==`object`&&(t.input=new W(e.input)),typeof e.output==`object`&&(t.output=new G(e.output)),typeof e.export==`object`&&(t.export=new K(e.export)),typeof e.timeout==`object`&&(t.timeout=new J(e.timeout)),typeof e.metadata==`object`&&(t.metadata=new Y(e.metadata)),typeof e.fork==`object`&&(t.fork=new tr(e.fork))),M(`ForkTask`)?.constructor?.(this)}validate(t){H(`ForkTask`,new e(this),t)}normalize(){let t=new e(this);return M(`ForkTask`)?.normalize?.(t)||t}},Xr=class e extends X{constructor(e){super(e);let t=this;m(e)&&(typeof e.input==`object`&&(t.input=new W(e.input)),typeof e.output==`object`&&(t.output=new G(e.output)),typeof e.export==`object`&&(t.export=new K(e.export)),typeof e.timeout==`object`&&(t.timeout=new J(e.timeout)),typeof e.metadata==`object`&&(t.metadata=new Y(e.metadata)),typeof e.for==`object`&&(t.for=new ar(e.for)),typeof e.do==`object`&&(t.do=new Or(e.do))),M(`ForTask`)?.constructor?.(this)}validate(t){H(`ForTask`,new e(this),t)}normalize(){let t=new e(this);return M(`ForTask`)?.normalize?.(t)||t}},Zr=class e extends g{constructor(e){super(e),M(`HTTPHeaders`)?.constructor?.(this)}validate(t){H(`HTTPHeaders`,new e(this),t)}normalize(){let t=new e(this);return M(`HTTPHeaders`)?.normalize?.(t)||t}},Qr=class e extends g{constructor(e){super(e),M(`HTTPQuery`)?.constructor?.(this)}validate(t){H(`HTTPQuery`,new e(this),t)}normalize(){let t=new e(this);return M(`HTTPQuery`)?.normalize?.(t)||t}},$r=class e extends g{constructor(e){super(e),M(`InlineScript`)?.constructor?.(this)}validate(t){H(`InlineScript`,new e(this),t)}normalize(){let t=new e(this);return M(`InlineScript`)?.normalize?.(t)||t}},ei=class e extends g{constructor(e){super(e),M(`InputFrom`)?.constructor?.(this)}validate(t){H(`InputFrom`,new e(this),t)}normalize(){let t=new e(this);return M(`InputFrom`)?.normalize?.(t)||t}},ti=class e extends g{constructor(e){super(e),M(`LinearBackoff`)?.constructor?.(this)}validate(t){H(`LinearBackoff`,new e(this),t)}normalize(){let t=new e(this);return M(`LinearBackoff`)?.normalize?.(t)||t}},ni=class e extends X{constructor(e){super(e);let t=this;m(e)&&(typeof e.input==`object`&&(t.input=new W(e.input)),typeof e.output==`object`&&(t.output=new G(e.output)),typeof e.export==`object`&&(t.export=new K(e.export)),typeof e.timeout==`object`&&(t.timeout=new J(e.timeout)),typeof e.metadata==`object`&&(t.metadata=new Y(e.metadata)),typeof e.listen==`object`&&(t.listen=new sr(e.listen)),typeof e.foreach==`object`&&(t.foreach=new cr(e.foreach))),M(`ListenTask`)?.constructor?.(this)}validate(t){H(`ListenTask`,new e(this),t)}normalize(){let t=new e(this);return M(`ListenTask`)?.normalize?.(t)||t}},ri=class e extends g{constructor(e){super(e),M(`McpCallTransport`)?.constructor?.(this)}validate(t){H(`McpCallTransport`,new e(this),t)}normalize(){let t=new e(this);return M(`McpCallTransport`)?.normalize?.(t)||t}},ii=class e extends g{constructor(e){super(e),M(`McpMethodParameters`)?.constructor?.(this)}validate(t){H(`McpMethodParameters`,new e(this),t)}normalize(){let t=new e(this);return M(`McpMethodParameters`)?.normalize?.(t)||t}},ai=class e extends g{constructor(e){super(e);let t=this;m(e)&&(typeof e.client==`object`&&(t.client=new Yt(e.client)),typeof e.request==`object`&&(t.request=new Xt(e.request)),typeof e.subject==`object`&&(t.subject=new U(e.subject)),typeof e.actor==`object`&&(t.actor=new U(e.actor))),M(`OAuth2AuthenticationData`)?.constructor?.(this)}validate(t){H(`OAuth2AuthenticationData`,new e(this),t)}normalize(){let t=new e(this);return M(`OAuth2AuthenticationData`)?.normalize?.(t)||t}},oi=class e extends _{constructor(t){super(t),Array.isArray(t)&&t?.length&&(this.splice(0,this.length),t.forEach(e=>this.push(e))),Object.setPrototypeOf(this,Object.create(e.prototype)),M(`OAuth2AuthenticationDataAudiences`)?.constructor?.(this)}validate(t){H(`OAuth2AuthenticationDataAudiences`,new e(this),t)}normalize(){let t=new e(this);return M(`OAuth2AuthenticationDataAudiences`)?.normalize?.(t)||t}},si=class e extends _{constructor(t){super(t),Array.isArray(t)&&t?.length&&(this.splice(0,this.length),t.forEach(e=>this.push(e))),Object.setPrototypeOf(this,Object.create(e.prototype)),M(`OAuth2AuthenticationDataScopes`)?.constructor?.(this)}validate(t){H(`OAuth2AuthenticationDataScopes`,new e(this),t)}normalize(){let t=new e(this);return M(`OAuth2AuthenticationDataScopes`)?.normalize?.(t)||t}},ci=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.oauth2==`object`&&(t.oauth2=new Qt(e.oauth2)),M(`OAuth2AuthenticationPolicy`)?.constructor?.(this)}validate(t){H(`OAuth2AuthenticationPolicy`,new e(this),t)}normalize(){let t=new e(this);return M(`OAuth2AuthenticationPolicy`)?.normalize?.(t)||t}},li=class e extends ai{constructor(e){super(e);let t=this;m(e)&&(typeof e.client==`object`&&(t.client=new Yt(e.client)),typeof e.request==`object`&&(t.request=new Xt(e.request)),typeof e.subject==`object`&&(t.subject=new U(e.subject)),typeof e.actor==`object`&&(t.actor=new U(e.actor)),typeof e.endpoints==`object`&&(t.endpoints=new Zt(e.endpoints))),M(`OAuth2ConnectAuthenticationProperties`)?.constructor?.(this)}validate(t){H(`OAuth2ConnectAuthenticationProperties`,new e(this),t)}normalize(){let t=new e(this);return M(`OAuth2ConnectAuthenticationProperties`)?.normalize?.(t)||t}},ui=class e extends _{constructor(t){super(t),Array.isArray(t)&&t?.length&&(this.splice(0,this.length),t.forEach(e=>this.push(e))),Object.setPrototypeOf(this,Object.create(e.prototype)),M(`OAuth2Issuers`)?.constructor?.(this)}validate(t){H(`OAuth2Issuers`,new e(this),t)}normalize(){let t=new e(this);return M(`OAuth2Issuers`)?.normalize?.(t)||t}},di=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.one==`object`&&(t.one=new sn(e.one)),M(`OneEventConsumptionStrategy`)?.constructor?.(this)}validate(t){H(`OneEventConsumptionStrategy`,new e(this),t)}normalize(){let t=new e(this);return M(`OneEventConsumptionStrategy`)?.normalize?.(t)||t}},fi=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.oidc==`object`&&(t.oidc=new $t(e.oidc)),M(`OpenIdConnectAuthenticationPolicy`)?.constructor?.(this)}validate(t){H(`OpenIdConnectAuthenticationPolicy`,new e(this),t)}normalize(){let t=new e(this);return M(`OpenIdConnectAuthenticationPolicy`)?.normalize?.(t)||t}},pi=class e extends g{constructor(e){super(e);let t=this;m(e)&&(typeof e.client==`object`&&(t.client=new Yt(e.client)),typeof e.request==`object`&&(t.request=new Xt(e.request)),typeof e.subject==`object`&&(t.subject=new U(e.subject)),typeof e.actor==`object`&&(t.actor=new U(e.actor))),M(`OpenIdConnectAuthenticationProperties`)?.constructor?.(this)}validate(t){H(`OpenIdConnectAuthenticationProperties`,new e(this),t)}normalize(){let t=new e(this);return M(`OpenIdConnectAuthenticationProperties`)?.normalize?.(t)||t}},mi=class e extends g{constructor(e){super(e),M(`OutputAs`)?.constructor?.(this)}validate(t){H(`OutputAs`,new e(this),t)}normalize(){let t=new e(this);return M(`OutputAs`)?.normalize?.(t)||t}},hi=class e extends X{constructor(e){super(e);let t=this;m(e)&&(typeof e.input==`object`&&(t.input=new W(e.input)),typeof e.output==`object`&&(t.output=new G(e.output)),typeof e.export==`object`&&(t.export=new K(e.export)),typeof e.timeout==`object`&&(t.timeout=new J(e.timeout)),typeof e.metadata==`object`&&(t.metadata=new Y(e.metadata)),typeof e.raise==`object`&&(t.raise=new ur(e.raise))),M(`RaiseTask`)?.constructor?.(this)}validate(t){H(`RaiseTask`,new e(this),t)}normalize(){let t=new e(this);return M(`RaiseTask`)?.normalize?.(t)||t}},gi=class e extends g{constructor(e){super(e);let t=this;m(e)&&(typeof e.delay==`object`&&(t.delay=new q(e.delay)),typeof e.backoff==`object`&&(t.backoff=new br(e.backoff)),typeof e.limit==`object`&&(t.limit=new Sr(e.limit)),typeof e.jitter==`object`&&(t.jitter=new Cr(e.jitter))),M(`RetryPolicy`)?.constructor?.(this)}validate(t){H(`RetryPolicy`,new e(this),t)}normalize(){let t=new e(this);return M(`RetryPolicy`)?.normalize?.(t)||t}},_i=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.container==`object`&&(t.container=new Jn(e.container)),M(`RunContainer`)?.constructor?.(this)}validate(t){H(`RunContainer`,new e(this),t)}normalize(){let t=new e(this);return M(`RunContainer`)?.normalize?.(t)||t}},vi=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.script==`object`&&(t.script=new dr(e.script)),M(`RunScript`)?.constructor?.(this)}validate(t){H(`RunScript`,new e(this),t)}normalize(){let t=new e(this);return M(`RunScript`)?.normalize?.(t)||t}},yi=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.shell==`object`&&(t.shell=new pr(e.shell)),M(`RunShell`)?.constructor?.(this)}validate(t){H(`RunShell`,new e(this),t)}normalize(){let t=new e(this);return M(`RunShell`)?.normalize?.(t)||t}},bi=class e extends X{constructor(e){super(e);let t=this;m(e)&&(typeof e.input==`object`&&(t.input=new W(e.input)),typeof e.output==`object`&&(t.output=new G(e.output)),typeof e.export==`object`&&(t.export=new K(e.export)),typeof e.timeout==`object`&&(t.timeout=new J(e.timeout)),typeof e.metadata==`object`&&(t.metadata=new Y(e.metadata)),typeof e.run==`object`&&(t.run=new gr(e.run))),M(`RunTask`)?.constructor?.(this)}validate(t){H(`RunTask`,new e(this),t)}normalize(){let t=new e(this);return M(`RunTask`)?.normalize?.(t)||t}},xi=class e extends g{constructor(e){super(e),M(`RuntimeExpression`)?.constructor?.(this)}validate(t){H(`RuntimeExpression`,new e(this),t)}normalize(){let t=new e(this);return M(`RuntimeExpression`)?.normalize?.(t)||t}},Si=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.workflow==`object`&&(t.workflow=new hr(e.workflow)),M(`RunWorkflow`)?.constructor?.(this)}validate(t){H(`RunWorkflow`,new e(this),t)}normalize(){let t=new e(this);return M(`RunWorkflow`)?.normalize?.(t)||t}},Ci=class e extends g{constructor(e){super(e);let t=this;m(e)&&(typeof e.every==`object`&&(t.every=new q(e.every)),typeof e.after==`object`&&(t.after=new q(e.after)),typeof e.on==`object`&&(t.on=new or(e.on))),M(`Schedule`)?.constructor?.(this)}validate(t){H(`Schedule`,new e(this),t)}normalize(){let t=new e(this);return M(`Schedule`)?.normalize?.(t)||t}},wi=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.resource==`object`&&(t.resource=new nn(e.resource)),M(`SchemaExternal`)?.constructor?.(this)}validate(t){H(`SchemaExternal`,new e(this),t)}normalize(){let t=new e(this);return M(`SchemaExternal`)?.normalize?.(t)||t}},Ti=class e extends g{constructor(e){super(e),M(`SchemaInline`)?.constructor?.(this)}validate(t){H(`SchemaInline`,new e(this),t)}normalize(){let t=new e(this);return M(`SchemaInline`)?.normalize?.(t)||t}},Ei=class e extends g{constructor(e){super(e),M(`SecretBasedAuthenticationPolicy`)?.constructor?.(this)}validate(t){H(`SecretBasedAuthenticationPolicy`,new e(this),t)}normalize(){let t=new e(this);return M(`SecretBasedAuthenticationPolicy`)?.normalize?.(t)||t}},Di=class e extends X{constructor(e){super(e);let t=this;m(e)&&(typeof e.input==`object`&&(t.input=new W(e.input)),typeof e.output==`object`&&(t.output=new G(e.output)),typeof e.export==`object`&&(t.export=new K(e.export)),typeof e.timeout==`object`&&(t.timeout=new J(e.timeout)),typeof e.metadata==`object`&&(t.metadata=new Y(e.metadata))),M(`SetTask`)?.constructor?.(this)}validate(t){H(`SetTask`,new e(this),t)}normalize(){let t=new e(this);return M(`SetTask`)?.normalize?.(t)||t}},Oi=class e extends g{constructor(e){super(e),M(`SetTaskConfiguration`)?.constructor?.(this)}validate(t){H(`SetTaskConfiguration`,new e(this),t)}normalize(){let t=new e(this);return M(`SetTaskConfiguration`)?.normalize?.(t)||t}},ki=class e extends _{constructor(t){super(t),Array.isArray(t)&&t?.length&&(this.splice(0,this.length),t.forEach(e=>this.push(e))),Object.setPrototypeOf(this,Object.create(e.prototype)),M(`ShellArguments`)?.constructor?.(this)}validate(t){H(`ShellArguments`,new e(this),t)}normalize(){let t=new e(this);return M(`ShellArguments`)?.normalize?.(t)||t}},Ai=class e extends X{constructor(e){super(e);let t=this;m(e)&&(typeof e.input==`object`&&(t.input=new W(e.input)),typeof e.output==`object`&&(t.output=new G(e.output)),typeof e.export==`object`&&(t.export=new K(e.export)),typeof e.timeout==`object`&&(t.timeout=new J(e.timeout)),typeof e.metadata==`object`&&(t.metadata=new Y(e.metadata)),typeof e.switch==`object`&&(t.switch=new yr(e.switch))),M(`SwitchTask`)?.constructor?.(this)}validate(t){H(`SwitchTask`,new e(this),t)}normalize(){let t=new e(this);return M(`SwitchTask`)?.normalize?.(t)||t}},ji=class e extends g{constructor(e){super(e),M(`TaskBaseIf`)?.constructor?.(this)}validate(t){H(`TaskBaseIf`,new e(this),t)}normalize(){let t=new e(this);return M(`TaskBaseIf`)?.normalize?.(t)||t}},Mi=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.after==`object`&&(t.after=new q(e.after)),M(`Timeout`)?.constructor?.(this)}validate(t){H(`Timeout`,new e(this),t)}normalize(){let t=new e(this);return M(`Timeout`)?.normalize?.(t)||t}},Ni=class e extends X{constructor(e){super(e);let t=this;m(e)&&(typeof e.input==`object`&&(t.input=new W(e.input)),typeof e.output==`object`&&(t.output=new G(e.output)),typeof e.export==`object`&&(t.export=new K(e.export)),typeof e.timeout==`object`&&(t.timeout=new J(e.timeout)),typeof e.metadata==`object`&&(t.metadata=new Y(e.metadata)),typeof e.try==`object`&&(t.try=new Or(e.try)),typeof e.catch==`object`&&(t.catch=new Tr(e.catch))),M(`TryTask`)?.constructor?.(this)}validate(t){H(`TryTask`,new e(this),t)}normalize(){let t=new e(this);return M(`TryTask`)?.normalize?.(t)||t}},Pi=class e extends g{constructor(e){super(e),M(`UriTemplate`)?.constructor?.(this)}validate(t){H(`UriTemplate`,new e(this),t)}normalize(){let t=new e(this);return M(`UriTemplate`)?.normalize?.(t)||t}},Fi=class e extends g{constructor(e){super(e);let t=this;if(m(e)){let n=[];Object.entries(e).filter(([e])=>!n.includes(e)).forEach(([e,n])=>{t[e]=new hn(n)})}M(`UseAuthentications`)?.constructor?.(this)}validate(t){H(`UseAuthentications`,new e(this),t)}normalize(){let t=new e(this);return M(`UseAuthentications`)?.normalize?.(t)||t}},Ii=class e extends g{constructor(e){super(e);let t=this;if(m(e)){let n=[];Object.entries(e).filter(([e])=>!n.includes(e)).forEach(([e,n])=>{t[e]=new Pr(n)})}M(`UseErrors`)?.constructor?.(this)}validate(t){H(`UseErrors`,new e(this),t)}normalize(){let t=new e(this);return M(`UseErrors`)?.normalize?.(t)||t}},Li=class e extends _{constructor(t){super(t),Array.isArray(t)&&t?.length&&(this.splice(0,this.length),t.forEach(e=>this.push(new Kr(e)))),Object.setPrototypeOf(this,Object.create(e.prototype)),M(`UseExtensions`)?.constructor?.(this)}validate(t){H(`UseExtensions`,new e(this),t)}normalize(){let t=new e(this);return M(`UseExtensions`)?.normalize?.(t)||t}},Ri=class e extends g{constructor(e){super(e);let t=this;if(m(e)){let n=[];Object.entries(e).filter(([e])=>!n.includes(e)).forEach(([e,n])=>{t[e]=new Er(n)})}M(`UseFunctions`)?.constructor?.(this)}validate(t){H(`UseFunctions`,new e(this),t)}normalize(){let t=new e(this);return M(`UseFunctions`)?.normalize?.(t)||t}},zi=class e extends g{constructor(e){super(e);let t=this;if(m(e)){let n=[];Object.entries(e).filter(([e])=>!n.includes(e)).forEach(([e,n])=>{t[e]=new gi(n)})}M(`UseRetries`)?.constructor?.(this)}validate(t){H(`UseRetries`,new e(this),t)}normalize(){let t=new e(this);return M(`UseRetries`)?.normalize?.(t)||t}},Bi=class e extends g{constructor(e){super(e);let t=this;if(m(e)){let n=[];Object.entries(e).filter(([e])=>!n.includes(e)).forEach(([e,n])=>{t[e]=new Mi(n)})}M(`UseTimeouts`)?.constructor?.(this)}validate(t){H(`UseTimeouts`,new e(this),t)}normalize(){let t=new e(this);return M(`UseTimeouts`)?.normalize?.(t)||t}},Vi=class e extends g{constructor(e){super(e);let t=this;if(m(e)){let n=[];Object.entries(e).filter(([e])=>!n.includes(e)).forEach(([e,n])=>{t[e]=new Bn(n)})}M(`UseCatalogs`)?.constructor?.(this)}validate(t){H(`UseCatalogs`,new e(this),t)}normalize(){let t=new e(this);return M(`UseCatalogs`)?.normalize?.(t)||t}},Hi=class e extends g{constructor(e){super(e);let t=this;m(e)&&(typeof e.authentications==`object`&&(t.authentications=new Fi(e.authentications)),typeof e.errors==`object`&&(t.errors=new Ii(e.errors)),typeof e.extensions==`object`&&(t.extensions=new Li(e.extensions)),typeof e.functions==`object`&&(t.functions=new Ri(e.functions)),typeof e.retries==`object`&&(t.retries=new zi(e.retries)),typeof e.timeouts==`object`&&(t.timeouts=new Bi(e.timeouts)),typeof e.catalogs==`object`&&(t.catalogs=new Vi(e.catalogs))),M(`Use`)?.constructor?.(this)}validate(t){H(`Use`,new e(this),t)}normalize(){let t=new e(this);return M(`Use`)?.normalize?.(t)||t}},Ui=class e extends _{constructor(t){super(t),Array.isArray(t)&&t?.length&&(this.splice(0,this.length),t.forEach(e=>this.push(e))),Object.setPrototypeOf(this,Object.create(e.prototype)),M(`UseSecrets`)?.constructor?.(this)}validate(t){H(`UseSecrets`,new e(this),t)}normalize(){let t=new e(this);return M(`UseSecrets`)?.normalize?.(t)||t}},Wi=class e extends X{constructor(e){super(e);let t=this;m(e)&&(typeof e.input==`object`&&(t.input=new W(e.input)),typeof e.output==`object`&&(t.output=new G(e.output)),typeof e.export==`object`&&(t.export=new K(e.export)),typeof e.timeout==`object`&&(t.timeout=new J(e.timeout)),typeof e.metadata==`object`&&(t.metadata=new Y(e.metadata)),typeof e.wait==`object`&&(t.wait=new q(e.wait))),M(`WaitTask`)?.constructor?.(this)}validate(t){H(`WaitTask`,new e(this),t)}normalize(){let t=new e(this);return M(`WaitTask`)?.normalize?.(t)||t}},Gi=class e extends g{constructor(e){super(e),M(`WithA2AParameters`)?.constructor?.(this)}validate(t){H(`WithA2AParameters`,new e(this),t)}normalize(){let t=new e(this);return M(`WithA2AParameters`)?.normalize?.(t)||t}},Ki=class e extends g{constructor(e){super(e);let t=this;m(e)&&typeof e.after==`object`&&(t.after=new q(e.after)),M(`WorkflowTimeout`)?.constructor?.(this)}validate(t){H(`WorkflowTimeout`,new e(this),t)}normalize(){let t=new e(this);return M(`WorkflowTimeout`)?.normalize?.(t)||t}};
|
|
12
|
+
/*! js-yaml 4.2.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
13
|
+
var qi=Object.create,Ji=Object.defineProperty,Yi=Object.getOwnPropertyDescriptor,Xi=Object.getOwnPropertyNames,Zi=Object.getPrototypeOf,Qi=Object.prototype.hasOwnProperty,Z=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),$i=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=Xi(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Qi.call(e,s)&&s!==n&&Ji(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Yi(t,s))||r.enumerable});return e},ea=(e,t,n)=>(n=e==null?{}:qi(Zi(e)),$i(t||!e||!e.__esModule?Ji(n,`default`,{value:e,enumerable:!0}):n,e)),ta=Z(((e,t)=>{function n(e){return e==null}function r(e){return typeof e==`object`&&!!e}function i(e){return Array.isArray(e)?e:n(e)?[]:[e]}function a(e,t){if(t){let n=Object.keys(t);for(let r=0,i=n.length;r<i;r+=1){let i=n[r];e[i]=t[i]}}return e}function o(e,t){let n=``;for(let r=0;r<t;r+=1)n+=e;return n}function s(e){return e===0&&1/e==-1/0}t.exports.isNothing=n,t.exports.isObject=r,t.exports.toArray=i,t.exports.repeat=o,t.exports.isNegativeZero=s,t.exports.extend=a})),na=Z(((e,t)=>{function n(e,t){let n=``,r=e.reason||`(unknown reason)`;return e.mark?(e.mark.name&&(n+=`in "`+e.mark.name+`" `),n+=`(`+(e.mark.line+1)+`:`+(e.mark.column+1)+`)`,!t&&e.mark.snippet&&(n+=`
|
|
14
|
+
|
|
15
|
+
`+e.mark.snippet),r+` `+n):r}function r(e,t){Error.call(this),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=n(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||``}r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r.prototype.toString=function(e){return this.name+`: `+n(this,e)},t.exports=r})),ra=Z(((e,t)=>{var n=ta();function r(e,t,n,r,i){let a=``,o=``,s=Math.floor(i/2)-1;return r-t>s&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}function i(e,t){return n.repeat(` `,t-e.length)+e}function a(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||=79,typeof t.indent!=`number`&&(t.indent=1),typeof t.linesBefore!=`number`&&(t.linesBefore=3),typeof t.linesAfter!=`number`&&(t.linesAfter=2);let a=/\r?\n|\r|\0/g,o=[0],s=[],c,l=-1;for(;c=a.exec(e.buffer);)s.push(c.index),o.push(c.index+c[0].length),e.position<=c.index&&l<0&&(l=o.length-2);l<0&&(l=o.length-1);let u=``,d=Math.min(e.line+t.linesAfter,s.length).toString().length,f=t.maxLength-(t.indent+d+3);for(let a=1;a<=t.linesBefore&&!(l-a<0);a++){let c=r(e.buffer,o[l-a],s[l-a],e.position-(o[l]-o[l-a]),f);u=n.repeat(` `,t.indent)+i((e.line-a+1).toString(),d)+` | `+c.str+`
|
|
16
|
+
`+u}let p=r(e.buffer,o[l],s[l],e.position,f);u+=n.repeat(` `,t.indent)+i((e.line+1).toString(),d)+` | `+p.str+`
|
|
17
|
+
`,u+=n.repeat(`-`,t.indent+d+3+p.pos)+`^
|
|
18
|
+
`;for(let a=1;a<=t.linesAfter&&!(l+a>=s.length);a++){let c=r(e.buffer,o[l+a],s[l+a],e.position-(o[l]-o[l+a]),f);u+=n.repeat(` `,t.indent)+i((e.line+a+1).toString(),d)+` | `+c.str+`
|
|
19
|
+
`}return u.replace(/\n$/,``)}t.exports=a})),Q=Z(((e,t)=>{var n=na(),r=[`kind`,`multi`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`representName`,`defaultStyle`,`styleAliases`],i=[`scalar`,`sequence`,`mapping`];function a(e){let t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}function o(e,t){if(t||={},Object.keys(t).forEach(function(t){if(r.indexOf(t)===-1)throw new n(`Unknown option "`+t+`" is met in definition of "`+e+`" YAML type.`)}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=a(t.styleAliases||null),i.indexOf(this.kind)===-1)throw new n(`Unknown kind "`+this.kind+`" is specified for "`+e+`" YAML type.`)}t.exports=o})),ia=Z(((e,t)=>{var n=na(),r=Q();function i(e,t){let n=[];return e[t].forEach(function(e){let t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function a(){let e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function t(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}for(let e=0,n=arguments.length;e<n;e+=1)arguments[e].forEach(t);return e}function o(e){return this.extend(e)}o.prototype.extend=function(e){let t=[],s=[];if(e instanceof r)s.push(e);else if(Array.isArray(e))s=s.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(s=s.concat(e.explicit));else throw new n(`Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })`);t.forEach(function(e){if(!(e instanceof r))throw new n(`Specified list of YAML types (or a single Type object) contains a non-Type object.`);if(e.loadKind&&e.loadKind!==`scalar`)throw new n(`There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.`);if(e.multi)throw new n(`There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.`)}),s.forEach(function(e){if(!(e instanceof r))throw new n(`Specified list of YAML types (or a single Type object) contains a non-Type object.`)});let c=Object.create(o.prototype);return c.implicit=(this.implicit||[]).concat(t),c.explicit=(this.explicit||[]).concat(s),c.compiledImplicit=i(c,`implicit`),c.compiledExplicit=i(c,`explicit`),c.compiledTypeMap=a(c.compiledImplicit,c.compiledExplicit),c},t.exports=o})),aa=Z(((e,t)=>{t.exports=new(Q())(`tag:yaml.org,2002:str`,{kind:`scalar`,construct:function(e){return e===null?``:e}})})),oa=Z(((e,t)=>{t.exports=new(Q())(`tag:yaml.org,2002:seq`,{kind:`sequence`,construct:function(e){return e===null?[]:e}})})),sa=Z(((e,t)=>{t.exports=new(Q())(`tag:yaml.org,2002:map`,{kind:`mapping`,construct:function(e){return e===null?{}:e}})})),ca=Z(((e,t)=>{t.exports=new(ia())({explicit:[aa(),oa(),sa()]})})),la=Z(((e,t)=>{var n=Q();function r(e){if(e===null)return!0;let t=e.length;return t===1&&e===`~`||t===4&&(e===`null`||e===`Null`||e===`NULL`)}function i(){return null}function a(e){return e===null}t.exports=new n(`tag:yaml.org,2002:null`,{kind:`scalar`,resolve:r,construct:i,predicate:a,represent:{canonical:function(){return`~`},lowercase:function(){return`null`},uppercase:function(){return`NULL`},camelcase:function(){return`Null`},empty:function(){return``}},defaultStyle:`lowercase`})})),ua=Z(((e,t)=>{var n=Q();function r(e){if(e===null)return!1;let t=e.length;return t===4&&(e===`true`||e===`True`||e===`TRUE`)||t===5&&(e===`false`||e===`False`||e===`FALSE`)}function i(e){return e===`true`||e===`True`||e===`TRUE`}function a(e){return Object.prototype.toString.call(e)===`[object Boolean]`}t.exports=new n(`tag:yaml.org,2002:bool`,{kind:`scalar`,resolve:r,construct:i,predicate:a,represent:{lowercase:function(e){return e?`true`:`false`},uppercase:function(e){return e?`TRUE`:`FALSE`},camelcase:function(e){return e?`True`:`False`}},defaultStyle:`lowercase`})})),da=Z(((e,t)=>{var n=ta(),r=Q();function i(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function a(e){return e>=48&&e<=55}function o(e){return e>=48&&e<=57}function s(e){if(e===null)return!1;let t=e.length,n=0,r=!1;if(!t)return!1;let s=e[n];if((s===`-`||s===`+`)&&(s=e[++n]),s===`0`){if(n+1===t)return!0;if(s=e[++n],s===`b`){for(n++;n<t;n++){if(s=e[n],s!==`0`&&s!==`1`)return!1;r=!0}return r&&Number.isFinite(c(e))}if(s===`x`){for(n++;n<t;n++){if(!i(e.charCodeAt(n)))return!1;r=!0}return r&&Number.isFinite(c(e))}if(s===`o`){for(n++;n<t;n++){if(!a(e.charCodeAt(n)))return!1;r=!0}return r&&Number.isFinite(c(e))}}for(;n<t;n++){if(!o(e.charCodeAt(n)))return!1;r=!0}return r?Number.isFinite(c(e)):!1}function c(e){let t=e,n=1,r=t[0];if((r===`-`||r===`+`)&&(r===`-`&&(n=-1),t=t.slice(1),r=t[0]),t===`0`)return 0;if(r===`0`){if(t[1]===`b`)return n*parseInt(t.slice(2),2);if(t[1]===`x`)return n*parseInt(t.slice(2),16);if(t[1]===`o`)return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function l(e){return c(e)}function u(e){return Object.prototype.toString.call(e)===`[object Number]`&&e%1==0&&!n.isNegativeZero(e)}t.exports=new r(`tag:yaml.org,2002:int`,{kind:`scalar`,resolve:s,construct:l,predicate:u,represent:{binary:function(e){return e>=0?`0b`+e.toString(2):`-0b`+e.toString(2).slice(1)},octal:function(e){return e>=0?`0o`+e.toString(8):`-0o`+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?`0x`+e.toString(16).toUpperCase():`-0x`+e.toString(16).toUpperCase().slice(1)}},defaultStyle:`decimal`,styleAliases:{binary:[2,`bin`],octal:[8,`oct`],decimal:[10,`dec`],hexadecimal:[16,`hex`]}})})),fa=Z(((e,t)=>{var n=ta(),r=Q(),i=RegExp(`^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),a=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function o(e){return e===null||!i.test(e)?!1:Number.isFinite(parseFloat(e,10))?!0:a.test(e)}function s(e){let t=e.toLowerCase(),n=t[0]===`-`?-1:1;return`+-`.indexOf(t[0])>=0&&(t=t.slice(1)),t===`.inf`?n===1?1/0:-1/0:t===`.nan`?NaN:n*parseFloat(t,10)}var c=/^[-+]?[0-9]+e/;function l(e,t){if(isNaN(e))switch(t){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(e===1/0)switch(t){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(e===-1/0)switch(t){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(n.isNegativeZero(e))return`-0.0`;let r=e.toString(10);return c.test(r)?r.replace(`e`,`.e`):r}function u(e){return Object.prototype.toString.call(e)===`[object Number]`&&(e%1!=0||n.isNegativeZero(e))}t.exports=new r(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:o,construct:s,predicate:u,represent:l,defaultStyle:`lowercase`})})),pa=Z(((e,t)=>{t.exports=ca().extend({implicit:[la(),ua(),da(),fa()]})})),ma=Z(((e,t)=>{t.exports=pa()})),ha=Z(((e,t)=>{var n=Q(),r=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),i=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`);function a(e){return e===null?!1:r.exec(e)!==null||i.exec(e)!==null}function o(e){let t=0,n=null,a=r.exec(e);if(a===null&&(a=i.exec(e)),a===null)throw Error(`Date resolve error`);let o=+a[1],s=a[2]-1,c=+a[3];if(!a[4])return new Date(Date.UTC(o,s,c));let l=+a[4],u=+a[5],d=+a[6];if(a[7]){for(t=a[7].slice(0,3);t.length<3;)t+=`0`;t=+t}if(a[9]){let e=+a[10],t=+(a[11]||0);n=(e*60+t)*6e4,a[9]===`-`&&(n=-n)}let f=new Date(Date.UTC(o,s,c,l,u,d,t));return n&&f.setTime(f.getTime()-n),f}function s(e){return e.toISOString()}t.exports=new n(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:a,construct:o,instanceOf:Date,represent:s})})),ga=Z(((e,t)=>{var n=Q();function r(e){return e===`<<`||e===null}t.exports=new n(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:r})})),_a=Z(((e,t)=>{var n=Q(),r=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
20
|
+
\r`;function i(e){if(e===null)return!1;let t=0,n=e.length,i=r;for(let r=0;r<n;r++){let n=i.indexOf(e.charAt(r));if(!(n>64)){if(n<0)return!1;t+=6}}return t%8==0}function a(e){let t=e.replace(/[\r\n=]/g,``),n=t.length,i=r,a=0,o=[];for(let e=0;e<n;e++)e%4==0&&e&&(o.push(a>>16&255),o.push(a>>8&255),o.push(a&255)),a=a<<6|i.indexOf(t.charAt(e));let s=n%4*6;return s===0?(o.push(a>>16&255),o.push(a>>8&255),o.push(a&255)):s===18?(o.push(a>>10&255),o.push(a>>2&255)):s===12&&o.push(a>>4&255),new Uint8Array(o)}function o(e){let t=``,n=0,i=e.length,a=r;for(let r=0;r<i;r++)r%3==0&&r&&(t+=a[n>>18&63],t+=a[n>>12&63],t+=a[n>>6&63],t+=a[n&63]),n=(n<<8)+e[r];let o=i%3;return o===0?(t+=a[n>>18&63],t+=a[n>>12&63],t+=a[n>>6&63],t+=a[n&63]):o===2?(t+=a[n>>10&63],t+=a[n>>4&63],t+=a[n<<2&63],t+=a[64]):o===1&&(t+=a[n>>2&63],t+=a[n<<4&63],t+=a[64],t+=a[64]),t}function s(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}t.exports=new n(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:i,construct:a,predicate:s,represent:o})})),va=Z(((e,t)=>{var n=Q(),r=Object.prototype.hasOwnProperty,i=Object.prototype.toString;function a(e){if(e===null)return!0;let t=[],n=e;for(let e=0,a=n.length;e<a;e+=1){let a=n[e],o=!1;if(i.call(a)!==`[object Object]`)return!1;let s;for(s in a)if(r.call(a,s))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function o(e){return e===null?[]:e}t.exports=new n(`tag:yaml.org,2002:omap`,{kind:`sequence`,resolve:a,construct:o})})),ya=Z(((e,t)=>{var n=Q(),r=Object.prototype.toString;function i(e){if(e===null)return!0;let t=e,n=Array(t.length);for(let e=0,i=t.length;e<i;e+=1){let i=t[e];if(r.call(i)!==`[object Object]`)return!1;let a=Object.keys(i);if(a.length!==1)return!1;n[e]=[a[0],i[a[0]]]}return!0}function a(e){if(e===null)return[];let t=e,n=Array(t.length);for(let e=0,r=t.length;e<r;e+=1){let r=t[e],i=Object.keys(r);n[e]=[i[0],r[i[0]]]}return n}t.exports=new n(`tag:yaml.org,2002:pairs`,{kind:`sequence`,resolve:i,construct:a})})),ba=Z(((e,t)=>{var n=Q(),r=Object.prototype.hasOwnProperty;function i(e){if(e===null)return!0;let t=e;for(let e in t)if(r.call(t,e)&&t[e]!==null)return!1;return!0}function a(e){return e===null?{}:e}t.exports=new n(`tag:yaml.org,2002:set`,{kind:`mapping`,resolve:i,construct:a})})),xa=Z(((e,t)=>{t.exports=ma().extend({implicit:[ha(),ga()],explicit:[_a(),va(),ya(),ba()]})})),Sa=Z(((e,t)=>{var n=ta(),r=na(),i=ra(),a=xa(),o=Object.prototype.hasOwnProperty,s=1,c=2,l=3,u=4,d=1,f=2,p=3,m=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,h=/[\x85\u2028\u2029]/,g=/[,\[\]{}]/,_=/^(?:!|!!|![0-9A-Za-z-]+!)$/,v=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function y(e){return Object.prototype.toString.call(e)}function b(e){return e===10||e===13}function x(e){return e===9||e===32}function S(e){return e===9||e===32||e===10||e===13}function C(e){return e===44||e===91||e===93||e===123||e===125}function w(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}function T(e){return e===120?2:e===117?4:e===85?8:0}function E(e){return e>=48&&e<=57?e-48:-1}function D(e){switch(e){case 48:return`\0`;case 97:return`\x07`;case 98:return`\b`;case 116:return` `;case 9:return` `;case 110:return`
|
|
21
|
+
`;case 118:return`\v`;case 102:return`\f`;case 114:return`\r`;case 101:return`\x1B`;case 32:return` `;case 34:return`"`;case 47:return`/`;case 92:return`\\`;case 78:return`
`;case 95:return`\xA0`;case 76:return`\u2028`;case 80:return`\u2029`;default:return``}}function ee(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function O(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}var te=Array(256),ne=Array(256);for(let e=0;e<256;e++)te[e]=+!!D(e),ne[e]=D(e);function k(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||a,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.maxDepth=typeof t.maxDepth==`number`?t.maxDepth:100,this.maxMergeSeqLength=typeof t.maxMergeSeqLength==`number`?t.maxMergeSeqLength:20,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function re(e,t){let n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=i(n),new r(t,n)}function A(e,t){throw re(e,t)}function ie(e,t){e.onWarning&&e.onWarning.call(null,re(e,t))}function j(e,t,n){let r=e.anchorMapTransactions;if(r.length!==0){let n=r[r.length-1];o.call(n,t)||(n[t]={existed:o.call(e.anchorMap,t),value:e.anchorMap[t]})}e.anchorMap[t]=n}function ae(e){e.anchorMapTransactions.push(Object.create(null))}function oe(e){let t=e.anchorMapTransactions.pop(),n=e.anchorMapTransactions;if(n.length===0)return;let r=n[n.length-1],i=Object.keys(t);for(let e=0,n=i.length;e<n;e+=1){let n=i[e];o.call(r,n)||(r[n]=t[n])}}function se(e){let t=e.anchorMapTransactions.pop(),n=Object.keys(t);for(let r=n.length-1;r>=0;--r){let i=t[n[r]];i.existed?e.anchorMap[n[r]]=i.value:delete e.anchorMap[n[r]]}}function ce(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}function M(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.tag=t.tag,e.anchor=t.anchor,e.kind=t.kind,e.result=t.result}var le={YAML:function(e,t,n){e.version!==null&&A(e,`duplication of %YAML directive`),n.length!==1&&A(e,`YAML directive accepts exactly one argument`);let r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);r===null&&A(e,`ill-formed argument of the YAML directive`);let i=parseInt(r[1],10),a=parseInt(r[2],10);i!==1&&A(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&ie(e,`unsupported YAML version of the document`)},TAG:function(e,t,n){let r;n.length!==2&&A(e,`TAG directive accepts exactly two arguments`);let i=n[0];r=n[1],_.test(i)||A(e,`ill-formed tag handle (first argument) of the TAG directive`),o.call(e.tagMap,i)&&A(e,`there is a previously declared suffix for "`+i+`" tag handle`),v.test(r)||A(e,`ill-formed tag prefix (second argument) of the TAG directive`);try{r=decodeURIComponent(r)}catch{A(e,`tag prefix is malformed: `+r)}e.tagMap[i]=r}};function N(e,t,n,r){if(t<n){let i=e.input.slice(t,n);if(r)for(let t=0,n=i.length;t<n;t+=1){let n=i.charCodeAt(t);n===9||n>=32&&n<=1114111||A(e,`expected valid JSON character`)}else m.test(i)&&A(e,`the stream contains non-printable characters`);e.result+=i}}function P(e,t,r,i){n.isObject(r)||A(e,`cannot merge mappings; the provided source object is unacceptable`);let a=Object.keys(r);for(let e=0,n=a.length;e<n;e+=1){let n=a[e];o.call(t,n)||(O(t,n,r[n]),i[n]=!0)}}function F(e,t,n,r,i,a,s,c,l){if(Array.isArray(i)){i=Array.prototype.slice.call(i);for(let t=0,n=i.length;t<n;t+=1)Array.isArray(i[t])&&A(e,`nested arrays are not supported inside keys`),typeof i==`object`&&y(i[t])===`[object Object]`&&(i[t]=`[object Object]`)}if(typeof i==`object`&&y(i)===`[object Object]`&&(i=`[object Object]`),i=String(i),t===null&&(t={}),r===`tag:yaml.org,2002:merge`)if(Array.isArray(a)){a.length>e.maxMergeSeqLength&&A(e,`merge sequence length exceeded maxMergeSeqLength (`+e.maxMergeSeqLength+`)`);let r=new Set;for(let i=0,o=a.length;i<o;i+=1){let o=a[i];r.has(o)||(r.add(o),P(e,t,o,n))}}else P(e,t,a,n);else!e.json&&!o.call(n,i)&&o.call(t,i)&&(e.line=s||e.line,e.lineStart=c||e.lineStart,e.position=l||e.position,A(e,`duplicated mapping key`)),O(t,i,a),delete n[i];return t}function I(e){let t=e.input.charCodeAt(e.position);t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):A(e,`a line break is expected`),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function L(e,t,n){let r=0,i=e.input.charCodeAt(e.position);for(;i!==0;){for(;x(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(b(i))for(I(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&ie(e,`deficient indentation`),r}function ue(e){let t=e.position,n=e.input.charCodeAt(t);return!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||S(n)))}function R(e,t){t===1?e.result+=` `:t>1&&(e.result+=n.repeat(`
|
|
22
|
+
`,t-1))}function de(e,t,n){let r,i,a,o,s,c,l=e.kind,u=e.result,d=e.input.charCodeAt(e.position);if(S(d)||C(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96)return!1;if(d===63||d===45){let t=e.input.charCodeAt(e.position+1);if(S(t)||n&&C(t))return!1}for(e.kind=`scalar`,e.result=``,r=i=e.position,a=!1;d!==0;){if(d===58){let t=e.input.charCodeAt(e.position+1);if(S(t)||n&&C(t))break}else if(d===35){if(S(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&ue(e)||n&&C(d))break;else if(b(d))if(o=e.line,s=e.lineStart,c=e.lineIndent,L(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=i,e.line=o,e.lineStart=s,e.lineIndent=c;break}a&&=(N(e,r,i,!1),R(e,e.line-o),r=i=e.position,!1),x(d)||(i=e.position+1),d=e.input.charCodeAt(++e.position)}return N(e,r,i,!1),e.result?!0:(e.kind=l,e.result=u,!1)}function fe(e,t){let n,r,i=e.input.charCodeAt(e.position);if(i!==39)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(i=e.input.charCodeAt(e.position))!==0;)if(i===39)if(N(e,n,e.position,!0),i=e.input.charCodeAt(++e.position),i===39)n=e.position,e.position++,r=e.position;else return!0;else b(i)?(N(e,n,r,!0),R(e,L(e,!1,t)),n=r=e.position):e.position===e.lineStart&&ue(e)?A(e,`unexpected end of the document within a single quoted scalar`):(e.position++,x(i)||(r=e.position));A(e,`unexpected end of the stream within a single quoted scalar`)}function pe(e,t){let n,r,i,a=e.input.charCodeAt(e.position);if(a!==34)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(a=e.input.charCodeAt(e.position))!==0;)if(a===34)return N(e,n,e.position,!0),e.position++,!0;else if(a===92){if(N(e,n,e.position,!0),a=e.input.charCodeAt(++e.position),b(a))L(e,!1,t);else if(a<256&&te[a])e.result+=ne[a],e.position++;else if((i=T(a))>0){let t=i,n=0;for(;t>0;t--)a=e.input.charCodeAt(++e.position),(i=w(a))>=0?n=(n<<4)+i:A(e,`expected hexadecimal character`);e.result+=ee(n),e.position++}else A(e,`unknown escape sequence`);n=r=e.position}else b(a)?(N(e,n,r,!0),R(e,L(e,!1,t)),n=r=e.position):e.position===e.lineStart&&ue(e)?A(e,`unexpected end of the document within a double quoted scalar`):(e.position++,x(a)||(r=e.position));A(e,`unexpected end of the stream within a double quoted scalar`)}function z(e,t){let n=!0,r,i,a,o=e.tag,c,l=e.anchor,u,d,f,p,m=Object.create(null),h,g,_,v=e.input.charCodeAt(e.position);if(v===91)u=93,p=!1,c=[];else if(v===123)u=125,p=!0,c={};else return!1;for(e.anchor!==null&&j(e,e.anchor,c),v=e.input.charCodeAt(++e.position);v!==0;){if(L(e,!0,t),v=e.input.charCodeAt(e.position),v===u)return e.position++,e.tag=o,e.anchor=l,e.kind=p?`mapping`:`sequence`,e.result=c,!0;n?v===44&&A(e,`expected the node content, but found ','`):A(e,`missed comma between flow collection entries`),g=h=_=null,d=f=!1,v===63&&S(e.input.charCodeAt(e.position+1))&&(d=f=!0,e.position++,L(e,!0,t)),r=e.line,i=e.lineStart,a=e.position,B(e,t,s,!1,!0),g=e.tag,h=e.result,L(e,!0,t),v=e.input.charCodeAt(e.position),(f||e.line===r)&&v===58&&(d=!0,v=e.input.charCodeAt(++e.position),L(e,!0,t),B(e,t,s,!1,!0),_=e.result),p?F(e,c,m,g,h,_,r,i,a):d?c.push(F(e,null,m,g,h,_,r,i,a)):c.push(h),L(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}A(e,`unexpected end of the stream within a flow collection`)}function me(e,t){let r,i=d,a=!1,o=!1,s=t,c=0,l=!1,u,m=e.input.charCodeAt(e.position);if(m===124)r=!1;else if(m===62)r=!0;else return!1;for(e.kind=`scalar`,e.result=``;m!==0;)if(m=e.input.charCodeAt(++e.position),m===43||m===45)d===i?i=m===43?p:f:A(e,`repeat of a chomping mode identifier`);else if((u=E(m))>=0)u===0?A(e,`bad explicit indentation width of a block scalar; it cannot be less than one`):o?A(e,`repeat of an indentation width identifier`):(s=t+u-1,o=!0);else break;if(x(m)){do m=e.input.charCodeAt(++e.position);while(x(m));if(m===35)do m=e.input.charCodeAt(++e.position);while(!b(m)&&m!==0)}for(;m!==0;){for(I(e),e.lineIndent=0,m=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&m===32;)e.lineIndent++,m=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),b(m)){c++;continue}if(!o&&s===0&&A(e,`missing indentation for block scalar`),e.lineIndent<s){i===p?e.result+=n.repeat(`
|
|
23
|
+
`,a?1+c:c):i===d&&a&&(e.result+=`
|
|
24
|
+
`);break}r?x(m)?(l=!0,e.result+=n.repeat(`
|
|
25
|
+
`,a?1+c:c)):l?(l=!1,e.result+=n.repeat(`
|
|
26
|
+
`,c+1)):c===0?a&&(e.result+=` `):e.result+=n.repeat(`
|
|
27
|
+
`,c):e.result+=n.repeat(`
|
|
28
|
+
`,a?1+c:c),a=!0,o=!0,c=0;let t=e.position;for(;!b(m)&&m!==0;)m=e.input.charCodeAt(++e.position);N(e,t,e.position,!1)}return!0}function he(e,t){let n=e.tag,r=e.anchor,i=[],a=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&j(e,e.anchor,i);let o=e.input.charCodeAt(e.position);for(;o!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,A(e,`tab characters must not be used in indentation`)),!(o!==45||!S(e.input.charCodeAt(e.position+1))));){if(a=!0,e.position++,L(e,!0,-1)&&e.lineIndent<=t){i.push(null),o=e.input.charCodeAt(e.position);continue}let n=e.line;if(B(e,t,l,!1,!0),i.push(e.result),L(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&o!==0)A(e,`bad indentation of a sequence entry`);else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=r,e.kind=`sequence`,e.result=i,!0):!1}function ge(e,t,n){let r,i,a,o,s=e.tag,l=e.anchor,d={},f=Object.create(null),p=null,m=null,h=null,g=!1,_=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&j(e,e.anchor,d);let v=e.input.charCodeAt(e.position);for(;v!==0;){!g&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,A(e,`tab characters must not be used in indentation`));let y=e.input.charCodeAt(e.position+1),b=e.line;if((v===63||v===58)&&S(y))v===63?(g&&(F(e,d,f,p,m,null,i,a,o),p=m=h=null),_=!0,g=!0,r=!0):g?(g=!1,r=!0):A(e,`incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line`),e.position+=1,v=y;else{if(i=e.line,a=e.lineStart,o=e.position,!B(e,n,c,!1,!0))break;if(e.line===b){for(v=e.input.charCodeAt(e.position);x(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),S(v)||A(e,`a whitespace character is expected after the key-value separator within a block mapping`),g&&(F(e,d,f,p,m,null,i,a,o),p=m=h=null),_=!0,g=!1,r=!1,p=e.tag,m=e.result;else if(_)A(e,`can not read an implicit mapping pair; a colon is missed`);else return e.tag=s,e.anchor=l,!0}else if(_)A(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return e.tag=s,e.anchor=l,!0}if((e.line===b||e.lineIndent>t)&&(g&&(i=e.line,a=e.lineStart,o=e.position),B(e,t,u,!0,r)&&(g?m=e.result:h=e.result),g||(F(e,d,f,p,m,h,i,a,o),p=m=h=null),L(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===b||e.lineIndent>t)&&v!==0)A(e,`bad indentation of a mapping entry`);else if(e.lineIndent<t)break}return g&&F(e,d,f,p,m,null,i,a,o),_&&(e.tag=s,e.anchor=l,e.kind=`mapping`,e.result=d),_}function _e(e){let t=!1,n=!1,r,i,a=e.input.charCodeAt(e.position);if(a!==33)return!1;e.tag!==null&&A(e,`duplication of a tag property`),a=e.input.charCodeAt(++e.position),a===60?(t=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,r=`!!`,a=e.input.charCodeAt(++e.position)):r=`!`;let s=e.position;if(t){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(i=e.input.slice(s,e.position),a=e.input.charCodeAt(++e.position)):A(e,`unexpected end of the stream within a verbatim tag`)}else{for(;a!==0&&!S(a);)a===33&&(n?A(e,`tag suffix cannot contain exclamation marks`):(r=e.input.slice(s-1,e.position+1),_.test(r)||A(e,`named tag handle cannot contain such characters`),n=!0,s=e.position+1)),a=e.input.charCodeAt(++e.position);i=e.input.slice(s,e.position),g.test(i)&&A(e,`tag suffix cannot contain flow indicator characters`)}i&&!v.test(i)&&A(e,`tag name cannot contain such characters: `+i);try{i=decodeURIComponent(i)}catch{A(e,`tag name is malformed: `+i)}return t?e.tag=i:o.call(e.tagMap,r)?e.tag=e.tagMap[r]+i:r===`!`?e.tag=`!`+i:r===`!!`?e.tag=`tag:yaml.org,2002:`+i:A(e,`undeclared tag handle "`+r+`"`),!0}function ve(e){let t=e.input.charCodeAt(e.position);if(t!==38)return!1;e.anchor!==null&&A(e,`duplication of an anchor property`),t=e.input.charCodeAt(++e.position);let n=e.position;for(;t!==0&&!S(t)&&!C(t);)t=e.input.charCodeAt(++e.position);return e.position===n&&A(e,`name of an anchor node must contain at least one character`),e.anchor=e.input.slice(n,e.position),!0}function ye(e){let t=e.input.charCodeAt(e.position);if(t!==42)return!1;t=e.input.charCodeAt(++e.position);let n=e.position;for(;t!==0&&!S(t)&&!C(t);)t=e.input.charCodeAt(++e.position);e.position===n&&A(e,`name of an alias node must contain at least one character`);let r=e.input.slice(n,e.position);return o.call(e.anchorMap,r)||A(e,`unidentified alias "`+r+`"`),e.result=e.anchorMap[r],L(e,!0,-1),!0}function be(e,t,n,r){let i=ce(e);return ae(e),M(e,t),e.tag=null,e.anchor=null,e.kind=null,e.result=null,ge(e,n,r)&&e.kind===`mapping`?(oe(e),!0):(se(e),M(e,i),!1)}function B(e,t,n,r,i){let a,d,f=1,p=!1,m=!1,h=null,g,_,v;e.depth>=e.maxDepth&&A(e,`nesting exceeded maxDepth (`+e.maxDepth+`)`),e.depth+=1,e.listener!==null&&e.listener(`open`,e),e.tag=null,e.anchor=null,e.kind=null,e.result=null;let y=a=d=u===n||l===n;if(r&&L(e,!0,-1)&&(p=!0,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)),f===1)for(;;){let n=e.input.charCodeAt(e.position),r=ce(e);if(p&&(n===33&&e.tag!==null||n===38&&e.anchor!==null)||!_e(e)&&!ve(e))break;h===null&&(h=r),L(e,!0,-1)?(p=!0,d=y,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)):d=!1}if(d&&=p||i,f===1||u===n)if(_=s===n||c===n?t:t+1,v=e.position-e.lineStart,f===1)if(d&&(he(e,v)||ge(e,v,_))||z(e,_))m=!0;else{let t=e.input.charCodeAt(e.position);h!==null&&y&&!d&&t!==124&&t!==62&&be(e,h,h.position-h.lineStart,_)||a&&me(e,_)||fe(e,_)||pe(e,_)?m=!0:ye(e)?(m=!0,(e.tag!==null||e.anchor!==null)&&A(e,`alias node should not have any properties`)):de(e,_,s===n)&&(m=!0,e.tag===null&&(e.tag=`?`)),e.anchor!==null&&j(e,e.anchor,e.result)}else f===0&&(m=d&&he(e,v));if(e.tag===null)e.anchor!==null&&j(e,e.anchor,e.result);else if(e.tag===`?`){e.result!==null&&e.kind!==`scalar`&&A(e,`unacceptable node kind for !<?> tag; it should be "scalar", not "`+e.kind+`"`);for(let t=0,n=e.implicitTypes.length;t<n;t+=1)if(g=e.implicitTypes[t],g.resolve(e.result)){e.result=g.construct(e.result),e.tag=g.tag,e.anchor!==null&&j(e,e.anchor,e.result);break}}else if(e.tag!==`!`){if(o.call(e.typeMap[e.kind||`fallback`],e.tag))g=e.typeMap[e.kind||`fallback`][e.tag];else{g=null;let t=e.typeMap.multi[e.kind||`fallback`];for(let n=0,r=t.length;n<r;n+=1)if(e.tag.slice(0,t[n].tag.length)===t[n].tag){g=t[n];break}}g||A(e,`unknown tag !<`+e.tag+`>`),e.result!==null&&g.kind!==e.kind&&A(e,`unacceptable node kind for !<`+e.tag+`> tag; it should be "`+g.kind+`", not "`+e.kind+`"`),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&j(e,e.anchor,e.result)):A(e,`cannot resolve a node with !<`+e.tag+`> explicit tag`)}return e.listener!==null&&e.listener(`close`,e),--e.depth,e.tag!==null||e.anchor!==null||m}function xe(e){let t=e.position,n=!1,r;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(r=e.input.charCodeAt(e.position))!==0&&(L(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||r!==37));){n=!0,r=e.input.charCodeAt(++e.position);let t=e.position;for(;r!==0&&!S(r);)r=e.input.charCodeAt(++e.position);let i=e.input.slice(t,e.position),a=[];for(i.length<1&&A(e,`directive name must not be less than one character in length`);r!==0;){for(;x(r);)r=e.input.charCodeAt(++e.position);if(r===35){do r=e.input.charCodeAt(++e.position);while(r!==0&&!b(r));break}if(b(r))break;for(t=e.position;r!==0&&!S(r);)r=e.input.charCodeAt(++e.position);a.push(e.input.slice(t,e.position))}r!==0&&I(e),o.call(le,i)?le[i](e,i,a):ie(e,`unknown document directive "`+i+`"`)}if(L(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,L(e,!0,-1)):n&&A(e,`directives end mark is expected`),B(e,e.lineIndent-1,u,!1,!0),L(e,!0,-1),e.checkLineBreaks&&h.test(e.input.slice(t,e.position))&&ie(e,`non-ASCII line breaks are interpreted as content`),e.documents.push(e.result),e.position===e.lineStart&&ue(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,L(e,!0,-1));return}e.position<e.length-1&&A(e,`end of the stream or a document separator is expected`)}function Se(e,t){e=String(e),t||={},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
29
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));let n=new k(e,t),r=e.indexOf(`\0`);for(r!==-1&&(n.position=r,A(n,`null byte is not allowed in input`)),n.input+=`\0`;n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)xe(n);return n.documents}function Ce(e,t,n){typeof t==`object`&&t&&n===void 0&&(n=t,t=null);let r=Se(e,n);if(typeof t!=`function`)return r;for(let e=0,n=r.length;e<n;e+=1)t(r[e])}function we(e,t){let n=Se(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new r(`expected a single document in the stream, but found more`)}}t.exports.loadAll=Ce,t.exports.load=we})),Ca=Z(((e,t)=>{var n=ta(),r=na(),i=xa(),a=Object.prototype.toString,o=Object.prototype.hasOwnProperty,s=65279,c=9,l=10,u=13,d=32,f=33,p=34,m=35,h=37,g=38,_=39,v=42,y=44,b=45,x=58,S=61,C=62,w=63,T=64,E=91,D=93,ee=96,O=123,te=124,ne=125,k={};k[0]=`\\0`,k[7]=`\\a`,k[8]=`\\b`,k[9]=`\\t`,k[10]=`\\n`,k[11]=`\\v`,k[12]=`\\f`,k[13]=`\\r`,k[27]=`\\e`,k[34]=`\\"`,k[92]=`\\\\`,k[133]=`\\N`,k[160]=`\\_`,k[8232]=`\\L`,k[8233]=`\\P`;var re=[`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],A=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function ie(e,t){if(t===null)return{};let n={},r=Object.keys(t);for(let i=0,a=r.length;i<a;i+=1){let a=r[i],s=String(t[a]);a.slice(0,2)===`!!`&&(a=`tag:yaml.org,2002:`+a.slice(2));let c=e.compiledTypeMap.fallback[a];c&&o.call(c.styleAliases,s)&&(s=c.styleAliases[s]),n[a]=s}return n}function j(e){let t,i,a=e.toString(16).toUpperCase();if(e<=255)t=`x`,i=2;else if(e<=65535)t=`u`,i=4;else if(e<=4294967295)t=`U`,i=8;else throw new r(`code point within a string may not be greater than 0xFFFFFFFF`);return`\\`+t+n.repeat(`0`,i-a.length)+a}var ae=1,oe=2;function se(e){this.schema=e.schema||i,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=n.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=ie(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType===`"`?oe:ae,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer==`function`?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result=``,this.duplicates=[],this.usedDuplicates=null}function ce(e,t){let r=n.repeat(` `,t),i=0,a=``,o=e.length;for(;i<o;){let t,n=e.indexOf(`
|
|
30
|
+
`,i);n===-1?(t=e.slice(i),i=o):(t=e.slice(i,n+1),i=n+1),t.length&&t!==`
|
|
31
|
+
`&&(a+=r),a+=t}return a}function M(e,t){return`
|
|
32
|
+
`+n.repeat(` `,e.indent*t)}function le(e,t){for(let n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}function N(e){return e===d||e===c}function P(e){return e>=32&&e<=126||e>=161&&e<=55295&&e!==8232&&e!==8233||e>=57344&&e<=65533&&e!==s||e>=65536&&e<=1114111}function F(e){return P(e)&&e!==s&&e!==u&&e!==l}function I(e,t,n){let r=F(e),i=r&&!N(e);return(n?r:r&&e!==y&&e!==E&&e!==D&&e!==O&&e!==ne)&&e!==m&&!(t===x&&!i)||F(t)&&!N(t)&&e===m||t===x&&i}function L(e){return P(e)&&e!==s&&!N(e)&&e!==b&&e!==w&&e!==x&&e!==y&&e!==E&&e!==D&&e!==O&&e!==ne&&e!==m&&e!==g&&e!==v&&e!==f&&e!==te&&e!==S&&e!==C&&e!==_&&e!==p&&e!==h&&e!==T&&e!==ee}function ue(e){return!N(e)&&e!==x}function R(e,t){let n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function de(e){return/^\n* /.test(e)}var fe=1,pe=2,z=3,me=4,he=5;function ge(e,t,n,r,i,a,o,s){let c,u=0,d=null,f=!1,p=!1,m=r!==-1,h=-1,g=L(R(e,0))&&ue(R(e,e.length-1));if(t||o)for(c=0;c<e.length;u>=65536?c+=2:c++){if(u=R(e,c),!P(u))return he;g&&=I(u,d,s),d=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if(u=R(e,c),u===l)f=!0,m&&(p||=c-h-1>r&&e[h+1]!==` `,h=c);else if(!P(u))return he;g&&=I(u,d,s),d=u}p||=m&&c-h-1>r&&e[h+1]!==` `}return!f&&!p?g&&!o&&!i(e)?fe:a===oe?he:pe:n>9&&de(e)?he:o?a===oe?he:pe:p?me:z}function _e(e,t,n,i,a){e.dump=function(){if(t.length===0)return e.quotingType===oe?`""`:`''`;if(!e.noCompatMode&&(re.indexOf(t)!==-1||A.test(t)))return e.quotingType===oe?`"`+t+`"`:`'`+t+`'`;let o=e.indent*Math.max(1,n),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),c=i||e.flowLevel>-1&&n>=e.flowLevel;function l(t){return le(e,t)}switch(ge(t,c,e.indent,s,l,e.quotingType,e.forceQuotes&&!i,a)){case fe:return t;case pe:return`'`+t.replace(/'/g,`''`)+`'`;case z:return`|`+ve(t,e.indent)+ye(ce(t,o));case me:return`>`+ve(t,e.indent)+ye(ce(be(t,s),o));case he:return`"`+xe(t,s)+`"`;default:throw new r(`impossible error: invalid scalar style`)}}()}function ve(e,t){let n=de(e)?String(t):``,r=e[e.length-1]===`
|
|
33
|
+
`;return n+(r&&(e[e.length-2]===`
|
|
34
|
+
`||e===`
|
|
35
|
+
`)?`+`:r?``:`-`)+`
|
|
36
|
+
`}function ye(e){return e[e.length-1]===`
|
|
37
|
+
`?e.slice(0,-1):e}function be(e,t){let n=/(\n+)([^\n]*)/g,r=function(){let r=e.indexOf(`
|
|
38
|
+
`);return r=r===-1?e.length:r,n.lastIndex=r,B(e.slice(0,r),t)}(),i=e[0]===`
|
|
39
|
+
`||e[0]===` `,a,o;for(;o=n.exec(e);){let e=o[1],n=o[2];a=n[0]===` `,r+=e+(!i&&!a&&n!==``?`
|
|
40
|
+
`:``)+B(n,t),i=a}return r}function B(e,t){if(e===``||e[0]===` `)return e;let n=/ [^ ]/g,r,i=0,a,o=0,s=0,c=``;for(;r=n.exec(e);)s=r.index,s-i>t&&(a=o>i?o:s,c+=`
|
|
41
|
+
`+e.slice(i,a),i=a+1),o=s;return c+=`
|
|
42
|
+
`,e.length-i>t&&o>i?c+=e.slice(i,o)+`
|
|
43
|
+
`+e.slice(o+1):c+=e.slice(i),c.slice(1)}function xe(e){let t=``,n=0;for(let r=0;r<e.length;n>=65536?r+=2:r++){n=R(e,r);let i=k[n];!i&&P(n)?(t+=e[r],n>=65536&&(t+=e[r+1])):t+=i||j(n)}return t}function Se(e,t,n){let r=``,i=e.tag;for(let i=0,a=n.length;i<a;i+=1){let a=n[i];e.replacer&&(a=e.replacer.call(n,String(i),a)),(V(e,t,a,!1,!1)||a===void 0&&V(e,t,null,!1,!1))&&(r!==``&&(r+=`,`+(e.condenseFlow?``:` `)),r+=e.dump)}e.tag=i,e.dump=`[`+r+`]`}function Ce(e,t,n,r){let i=``,a=e.tag;for(let a=0,o=n.length;a<o;a+=1){let o=n[a];e.replacer&&(o=e.replacer.call(n,String(a),o)),(V(e,t+1,o,!0,!0,!1,!0)||o===void 0&&V(e,t+1,null,!0,!0,!1,!0))&&((!r||i!==``)&&(i+=M(e,t)),e.dump&&l===e.dump.charCodeAt(0)?i+=`-`:i+=`- `,i+=e.dump)}e.tag=a,e.dump=i||`[]`}function we(e,t,n){let r=``,i=e.tag,a=Object.keys(n);for(let i=0,o=a.length;i<o;i+=1){let o=``;r!==``&&(o+=`, `),e.condenseFlow&&(o+=`"`);let s=a[i],c=n[s];e.replacer&&(c=e.replacer.call(n,s,c)),V(e,t,s,!1,!1)&&(e.dump.length>1024&&(o+=`? `),o+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),V(e,t,c,!1,!1)&&(o+=e.dump,r+=o))}e.tag=i,e.dump=`{`+r+`}`}function Te(e,t,n,i){let a=``,o=e.tag,s=Object.keys(n);if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys==`function`)s.sort(e.sortKeys);else if(e.sortKeys)throw new r(`sortKeys must be a boolean or a function`);for(let r=0,o=s.length;r<o;r+=1){let o=``;(!i||a!==``)&&(o+=M(e,t));let c=s[r],u=n[c];if(e.replacer&&(u=e.replacer.call(n,c,u)),!V(e,t+1,c,!0,!0,!0))continue;let d=e.tag!==null&&e.tag!==`?`||e.dump&&e.dump.length>1024;d&&(e.dump&&l===e.dump.charCodeAt(0)?o+=`?`:o+=`? `),o+=e.dump,d&&(o+=M(e,t)),V(e,t+1,u,!0,d)&&(e.dump&&l===e.dump.charCodeAt(0)?o+=`:`:o+=`: `,o+=e.dump,a+=o)}e.tag=o,e.dump=a||`{}`}function Ee(e,t,n){let i=n?e.explicitTypes:e.implicitTypes;for(let s=0,c=i.length;s<c;s+=1){let c=i[s];if((c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t==`object`&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(n?c.multi&&c.representName?e.tag=c.representName(t):e.tag=c.tag:e.tag=`?`,c.represent){let n=e.styleMap[c.tag]||c.defaultStyle,i;if(a.call(c.represent)===`[object Function]`)i=c.represent(t,n);else if(o.call(c.represent,n))i=c.represent[n](t,n);else throw new r(`!<`+c.tag+`> tag resolver accepts not "`+n+`" style`);e.dump=i}return!0}}return!1}function V(e,t,n,i,o,s,c){e.tag=null,e.dump=n,Ee(e,n,!1)||Ee(e,n,!0);let l=a.call(e.dump),u=i;i&&=e.flowLevel<0||e.flowLevel>t;let d=l===`[object Object]`||l===`[object Array]`,f,p;if(d&&(f=e.duplicates.indexOf(n),p=f!==-1),(e.tag!==null&&e.tag!==`?`||p||e.indent!==2&&t>0)&&(o=!1),p&&e.usedDuplicates[f])e.dump=`*ref_`+f;else{if(d&&p&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),l===`[object Object]`)i&&Object.keys(e.dump).length!==0?(Te(e,t,e.dump,o),p&&(e.dump=`&ref_`+f+e.dump)):(we(e,t,e.dump),p&&(e.dump=`&ref_`+f+` `+e.dump));else if(l===`[object Array]`)i&&e.dump.length!==0?(e.noArrayIndent&&!c&&t>0?Ce(e,t-1,e.dump,o):Ce(e,t,e.dump,o),p&&(e.dump=`&ref_`+f+e.dump)):(Se(e,t,e.dump),p&&(e.dump=`&ref_`+f+` `+e.dump));else if(l===`[object String]`)e.tag!==`?`&&_e(e,e.dump,t,s,u);else if(l===`[object Undefined]`)return!1;else{if(e.skipInvalid)return!1;throw new r(`unacceptable kind of an object to dump `+l)}if(e.tag!==null&&e.tag!==`?`){let t=encodeURI(e.tag[0]===`!`?e.tag.slice(1):e.tag).replace(/!/g,`%21`);t=e.tag[0]===`!`?`!`+t:t.slice(0,18)===`tag:yaml.org,2002:`?`!!`+t.slice(18):`!<`+t+`>`,e.dump=t+` `+e.dump}}return!0}function De(e,t){let n=[],r=[];Oe(e,n,r);let i=r.length;for(let e=0;e<i;e+=1)t.duplicates.push(n[r[e]]);t.usedDuplicates=Array(i)}function Oe(e,t,n){if(typeof e==`object`&&e){let r=t.indexOf(e);if(r!==-1)n.indexOf(r)===-1&&n.push(r);else if(t.push(e),Array.isArray(e))for(let r=0,i=e.length;r<i;r+=1)Oe(e[r],t,n);else{let r=Object.keys(e);for(let i=0,a=r.length;i<a;i+=1)Oe(e[r[i]],t,n)}}}function ke(e,t){t||={};let n=new se(t);n.noRefs||De(e,n);let r=e;return n.replacer&&(r=n.replacer.call({"":r},``,r)),V(n,0,r,!0,!0)?n.dump+`
|
|
44
|
+
`:``}t.exports.dump=ke})),wa=ea(Z(((e,t)=>{var n=Sa(),r=Ca();function i(e,t){return function(){throw Error(`Function yaml.`+e+` is removed in js-yaml 4. Use yaml.`+t+` instead, which is now safe by default.`)}}t.exports.Type=Q(),t.exports.Schema=ia(),t.exports.FAILSAFE_SCHEMA=ca(),t.exports.JSON_SCHEMA=pa(),t.exports.CORE_SCHEMA=ma(),t.exports.DEFAULT_SCHEMA=xa(),t.exports.load=n.load,t.exports.loadAll=n.loadAll,t.exports.dump=r.dump,t.exports.YAMLException=na(),t.exports.types={binary:_a(),float:fa(),map:sa(),null:la(),pairs:ya(),set:ba(),timestamp:ha(),bool:ua(),int:da(),merge:ga(),omap:va(),seq:oa(),str:aa()},t.exports.safeLoad=i(`safeLoad`,`load`),t.exports.safeLoadAll=i(`safeLoadAll`,`loadAll`),t.exports.safeDump=i(`safeDump`,`dump`)}))(),1),{Type:Ta,Schema:Ea,FAILSAFE_SCHEMA:Da,JSON_SCHEMA:Oa,CORE_SCHEMA:ka,DEFAULT_SCHEMA:Aa,load:ja,loadAll:Ma,dump:Na,YAMLException:Pa,types:Fa,safeLoad:Ia,safeLoadAll:La,safeDump:Ra}=wa.default;wa.default;let za=`root`,Ba=`/fork/branches`,Va=function(e){return e.Root=`root`,e.Start=`start`,e.End=`end`,e.Entry=`entry`,e.Exit=`exit`,e.Call=`call`,e.Catch=`catch`,e.Do=`do`,e.Emit=`emit`,e.For=`for`,e.Fork=`fork`,e.Listen=`listen`,e.Raise=`raise`,e.Run=`run`,e.Set=`set`,e.Switch=`switch`,e.Try=`try`,e.TryCatch=`try-catch`,e.Wait=`wait`,e}({});function Ha(e){return(e||[]).reduce((e,t)=>{let[n,r]=Object.entries(t)[0];return e.set(n,r),e},new Map)}function Ua(e,t=za,n=void 0,r=void 0,i=void 0){let a={id:t,label:r,type:e,parent:i,task:n,nodes:[],edges:[]},o={type:t===za?`start`:`entry`,id:`${t}-entry-node`,parent:a},s={type:t===za?`end`:`exit`,id:`${t}-exit-node`,parent:a};return a.entryNode=o,a.exitNode=s,a.nodes=[o,s],i&&i.nodes.push(a),a}function Wa(e,t=void 0,n=void 0){if(!e?.size)return{name:`exit`,index:-1};let r=e.get(t||``);if(n=n||r?.then||``,n==`end`||n==`exit`)return{name:n,index:-1};let i=0;if(n&&n!=`continue`){if(i=Array.from(e.keys()).indexOf(n),i===-1)throw Error(`Unable to find task to transition to '${n}' from '${t}'`)}else if(r&&(i=Array.from(e.values()).indexOf(r)+1,i>=e.size))return{name:`exit`,index:-1};let a=Array.from(e.entries())[i];return{index:i,name:a[0],task:a[1]}}function Ga(e){let t=e;for(;t.id!==za;){if(!t.parent)throw Error(`Unable to reach root graph from graph id '${e.id}'`);t=t.parent}if(!t.exitNode)throw Error(`The root graph should have an exit node.`);return t.exitNode}function Ka(e,t,n){let r=e.exitNode||e;if(t.index!=-1){let e=Ja({...n,taskReference:`${n.taskListReference}/${t.index}/${t.name}`,taskName:t.name});co(n.graph,n.knownEdges,r,e.entryNode||e,t.label)}else if(t.name===`exit`){if(!n.graph.exitNode)throw Error(`Missing exit node on graph id '${n.graph.id}'`);co(n.graph,n.knownEdges,r,n.graph.exitNode,t.label)}else if(t.name===`end`)co(n.graph,n.knownEdges,r,Ga(n.graph),t.label);else throw Error(`Invalid transition`)}function qa(e,t){let n=[],r=Wa(t.taskList,t.taskName);for(n.push(r);r?.task?.if;)r.label=r?.task?.if,r=Wa(t.taskList,r.name,`continue`),n.push(r);n.filter((e,t)=>n.findIndex(t=>t.index===e.index&&t.name===e.name&&t.task===e.task)===t).forEach(n=>Ka(e,n,t))}function Ja(e){let t=e.graph.nodes.find(t=>t.id===e.taskReference);if(t)return t;let n=e.taskList.get(e.taskName);if(!n)throw Error(`Unabled to find the task '${e.taskName}' in the current context`);if(n.call)return Xa(n,e);if(n.catch)return oo(n,e);if(n.emit)return Qa(n,e);if(n.for)return $a(n,e);if(n.fork)return eo(n,e);if(n.listen)return to(n,e);if(n.raise)return no(n,e);if(n.run)return ro(n,e);if(n.set)return io(n,e);if(n.switch)return ao(n,e);if(n.wait)return so(n,e);if(n.do)return Za(n,e);throw Error(`Unable to defined task type of task named '${e.taskName}'`)}function Ya(e,t,n){let r={task:e,type:t,parent:n.graph,id:n.taskReference,label:n.taskName};return n.graph.nodes.push(r),qa(r,n),r}function Xa(e,t){return Ya(e,`call`,t)}function Za(e,t){let n=Ua(`do`,t.taskReference,e,t.taskName,t.graph),r={...t,graph:n,taskListReference:t.taskReference+`/do`,taskList:Ha(e.do),taskName:void 0};if(!n.entryNode)throw Error(`Missing 'entryNode' on graph id '${n.id}'`);return qa(n.entryNode,r),qa(n,t),n}function Qa(e,t){return Ya(e,`emit`,t)}function $a(e,t){let n=Ua(`for`,t.taskReference,e,t.taskName,t.graph),r={...t,graph:n,taskListReference:n.id+`/for/do`,taskList:Ha(e.do),taskName:void 0};if(!n.entryNode)throw Error(`Missing 'entryNode' on graph id '${n.id}'`);return qa(n.entryNode,r),qa(n,t),n}function eo(e,t){let n=Ua(`fork`,t.taskReference,e,t.taskName,t.graph);for(let r=0,i=e.fork?.branches.length||0;r<i;r++){let i=e.fork?.branches[r];if(!i)continue;let[a]=Object.entries(i)[0],o=Ja({...t,graph:n,taskListReference:`${t.taskReference}${Ba}`,taskList:Ha([i]),taskReference:`${t.taskReference}${Ba}/${r}/${a}`,taskName:a});if(!n.entryNode)throw Error(`Missing 'entryNode' on graph id '${n.id}'`);if(!n.exitNode)throw Error(`Missing 'exitNode' on graph id '${n.id}'`);co(n,t.knownEdges,n.entryNode,o.entryNode||o),co(n,t.knownEdges,o.exitNode||o,n.exitNode)}return qa(n,t),n}function to(e,t){return Ya(e,`listen`,t)}function no(e,t){return Ya(e,`raise`,t)}function ro(e,t){return Ya(e,`run`,t)}function io(e,t){return Ya(e,`set`,t)}function ao(e,t){let n=Ya(e,`switch`,t),r=!1;return e.switch?.forEach(e=>{let[i,a]=Object.entries(e)[0];a.when||(r=!0);let o=Wa(t.taskList,t.taskName,a.then);o.label=i,Ka(n,o,t)}),r||qa(n,t),n}function oo(e,t){let n=Ua(`try-catch`,t.taskReference,e,t.taskName,t.graph),r=Ua(`try`,t.taskReference+`/try`,e,t.taskName+` (try)`,n);if(!n.entryNode)throw Error(`Missing 'entryNode' on graph id '${n.id}'`);if(!r.entryNode)throw Error(`Missing 'entryNode' on graph id '${r.id}'`);co(n,t.knownEdges,n.entryNode,r.entryNode);let i={...t,graph:r,taskListReference:r.id,taskList:Ha(e.try),taskName:void 0};if(!r.entryNode)throw Error(`Missing 'entryNode' on graph id '${r.id}'`);if(qa(r.entryNode,i),e.catch?.do?.length){let i=Ua(`catch`,t.taskReference+`/catch/do`,e,t.taskName+` (catch)`,n);if(!r.exitNode)throw Error(`Missing 'exitNode' on graph id '${r.id}'`);if(!i.entryNode)throw Error(`Missing 'entryNode' on graph id '${i.entryNode}'`);co(n,t.knownEdges,r.exitNode,i.entryNode);let a={...t,graph:i,taskListReference:i.id,taskList:Ha(e.catch.do),taskName:void 0};if(qa(i.entryNode,a),!i.exitNode)throw Error(`Missing 'exitNode' on graph id '${i.exitNode}'`);if(!n.exitNode)throw Error(`Missing 'exitNode' on graph id '${n.exitNode}'`);co(n,t.knownEdges,i.exitNode,n.exitNode)}else{let i={task:e,type:`catch`,parent:n,id:t.taskReference+`/catch`,label:t.taskName+` (catch)`};if(n.nodes.push(i),!r.exitNode)throw Error(`Missing 'exitNode' on graph id '${r.id}'`);if(!n.exitNode)throw Error(`Missing 'exitNode' on graph id '${n.id}'`);co(n,t.knownEdges,r.exitNode,i),co(n,t.knownEdges,i,n.exitNode)}return qa(n,t),n}function so(e,t){return Ya(e,`wait`,t)}function co(e,t,n,r,i=``){let a=t.find(e=>e.sourceId===n.id&&e.targetId===r.id);if(a)return i&&!a.label?.includes(i)&&(a.label=a.label+(a.label?` / `:``)+i,a.id=`${n.id}-${r.id}-${a.label}`),a;let o={label:i,id:`${n.id}-${r.id}${i?`-${i}`:``}`,sourceId:n.id,targetId:r.id};return e.edges.push(o),t.push(o),o}let lo=e=>{let t=[...e.map(e=>({...e}))],n=e=>e.targetId!==`root-exit-node`&&(e.targetId.endsWith(`-entry-node`)||e.targetId.endsWith(`-exit-node`)),r=e=>e.sourceId!==`root-entry-node`&&e.targetId!==`root-exit-node`&&(e.sourceId.endsWith(`-entry-node`)||e.sourceId.endsWith(`-exit-node`)),i=e.filter(e=>n(e)&&!r(e)),a=(r,i)=>{i.forEach(i=>{if(t=t.filter(e=>e.id!==i.id),n(i))a(r,e.filter(e=>e.sourceId===i.targetId));else{let e=r.sourceId,n=i.targetId,a=`${r.label}${r.label&&i.label?` / `:``}${i.label}`,o={id:`${e}-${n}${a?`-${a}`:``}`,sourceId:e,targetId:n,label:a};t.push(o)}})};return i.forEach(n=>{t=t.filter(e=>e.id!==n.id),a(n,e.filter(e=>e.sourceId===n.targetId))}),t},uo=e=>[...e.edges||[],...(e.nodes||[]).filter(e=>e.edges?.length).flatMap(uo)],fo=e=>[{id:e.id,label:e.label,type:e.type,task:e.task,parentId:e.parent?.id},...(e.nodes||[]).flatMap(fo)];function po(e,t=!1){let n={...e,edges:uo(e),nodes:e.nodes.flatMap(e=>fo(e))};return t?{...n,edges:lo(n.edges),nodes:n.nodes.filter(e=>e.type!==`entry`&&e.type!==`exit`)}:n}function mo(e){let t=Ua(`root`);if(!t.entryNode)throw Error(`The root graph should have an entry node.`);return qa(t.entryNode,{graph:t,taskListReference:`/do`,taskList:Ha(e.do),taskReference:`/do`,knownEdges:[]}),t}function ho(e,t=!1){return po(mo(e),t)}let go=e=>e.split(`
|
|
45
|
+
`).map(e=>` ${e}`).join(`
|
|
46
|
+
`);function _o(e,t){let n=t?e.nodes.filter(e=>e.parentId===t.id):e.nodes,r=t?[]:e.edges;return`${t?`subgraph ${t.id} ["${t.label||t.id}"]`:`flowchart TD`}
|
|
47
|
+
${go(n.map(t=>vo(e,t)).join(`
|
|
48
|
+
`))}
|
|
49
|
+
${go(r.map(e=>yo(e)).join(`
|
|
50
|
+
`))}
|
|
51
|
+
${t?`end`:``}`}function vo(e,t){let n=``;if(e.nodes.filter(e=>e.parentId===t.id).length)n=_o(e,t);else switch(n=t.id,t.type){case`entry`:case`exit`:n+=`[ ]:::hidden`;break;case`start`:n+=`(( ))`;break;case`end`:n+=`((( )))`;break;default:n+=`["${t.label||` `}"]`}return n}function yo(e){let t=!e.targetId.startsWith(`root`)&&(e.targetId.endsWith(`-entry-node`)||e.targetId.endsWith(`-exit-node`));return`${e.sourceId} ${e.label?`--"${e.label}"`:``}--${t?`-`:`>`} ${e.targetId}`}function bo(e){return _o(ho(e,!0))+`
|
|
52
|
+
|
|
53
|
+
classDef hidden width: 1px, height: 1px;`}var xo=class{workflow;constructor(e){this.workflow=e}sourceCode(){return bo(this.workflow)}};let $={A2AArguments:rn,AllEventConsumptionStrategy:ln,AllEventConsumptionStrategyConfiguration:cn,AnyEventConsumptionStrategy:fn,AnyEventConsumptionStrategyConfiguration:un,AnyEventConsumptionStrategyUntil:dn,AnyEventUntilConsumed:pn,AsyncApiArguments:mn,AuthenticationPolicy:hn,AuthenticationPolicyReference:gn,BasicAuthenticationPolicy:_n,BasicAuthenticationPolicyConfiguration:Kt,BasicAuthenticationProperties:vn,BearerAuthenticationPolicy:yn,BearerAuthenticationPolicyConfiguration:qt,BearerAuthenticationProperties:bn,CallA2A:Sn,CallAsyncAPI:Cn,CallFunction:Tn,CallGRPC:kn,CallHTTP:Mn,CallMCP:Fn,CallOpenAPI:Rn,CallTask:zn,Catalog:Bn,CatchErrors:Hn,ConstantBackoff:Un,Container:Jn,ContainerArguments:Yn,ContainerEnvironment:Kn,ContainerLifetime:qn,ContainerPorts:Wn,ContainerVolumes:Gn,DigestAuthenticationPolicy:Xn,DigestAuthenticationPolicyConfiguration:Jt,DigestAuthenticationProperties:Zn,Document:er,DoTask:kr,Duration:q,DurationInline:Ar,EmitEventDefinition:rr,EmitEventWith:nr,EmitTask:jr,EmitTaskConfiguration:ir,Endpoint:tn,EndpointConfiguration:Mr,EndpointUri:Nr,Error:Pr,ErrorDetails:Fr,ErrorFilter:Vn,ErrorInstance:Ir,ErrorTitle:Lr,ErrorType:Rr,EventConsumptionStrategy:or,EventData:zr,EventDataschema:Br,EventFilter:sn,EventFilterCorrelate:on,EventSource:Vr,EventTime:Hr,ExponentialBackOff:Ur,Export:K,ExportAs:Wr,Extension:Gr,ExtensionItem:Kr,ExternalResource:nn,ExternalScript:qr,FlowDirective:Jr,ForkTask:Yr,ForkTaskConfiguration:tr,ForTask:Xr,ForTaskConfiguration:ar,FunctionArguments:wn,GRPCArguments:On,HTTPArguments:jn,HTTPBody:An,HTTPHeaders:Zr,HTTPQuery:Qr,InlineScript:$r,Input:W,InputFrom:ei,LinearBackoff:ti,ListenTask:ni,ListenTaskConfiguration:sr,MCPArguments:Pn,McpCallTransport:ri,McpClient:Nn,McpMethodParameters:ii,OAuth2AuthenticationData:ai,OAuth2AuthenticationDataAudiences:oi,OAuth2AuthenticationDataClient:Yt,OAuth2AuthenticationDataScopes:si,OAuth2AuthenticationPolicy:ci,OAuth2AuthenticationPolicyConfiguration:Qt,OAuth2AuthenticationPropertiesEndpoints:Zt,OAuth2ConnectAuthenticationProperties:li,OAuth2Issuers:ui,OAuth2TokenDefinition:U,OAuth2TokenRequest:Xt,OneEventConsumptionStrategy:di,OpenAPIArguments:Ln,OpenIdConnectAuthenticationPolicy:fi,OpenIdConnectAuthenticationPolicyConfiguration:$t,OpenIdConnectAuthenticationProperties:pi,Output:G,OutputAs:mi,RaiseTask:hi,RaiseTaskConfiguration:ur,RaiseTaskError:lr,ReferenceableAuthenticationPolicy:en,RetryBackoff:br,RetryLimit:Sr,RetryLimitAttempt:xr,RetryPolicy:gi,RetryPolicyJitter:Cr,RunContainer:_i,RunScript:vi,RunShell:yi,RunTask:bi,RunTaskConfiguration:gr,RuntimeExpression:xi,RunWorkflow:Si,Schedule:Ci,Schema:xn,SchemaExternal:wi,SchemaInline:Ti,Script:dr,SecretBasedAuthenticationPolicy:Ei,SetTask:Di,SetTaskConfiguration:Oi,Shell:pr,ShellArguments:ki,ShellEnvironment:fr,SubflowConfiguration:hr,SubflowInput:mr,SubscriptionIterator:cr,SwitchCase:_r,SwitchItem:vr,SwitchTask:Ai,SwitchTaskConfiguration:yr,Task:Er,TaskBase:X,TaskBaseIf:ji,TaskItem:Dr,TaskList:Or,TaskMetadata:Y,TaskTimeout:J,Timeout:Mi,TryTask:Ni,TryTaskCatch:Tr,TryTaskCatchRetry:wr,UriTemplate:Pi,Use:Hi,UseAuthentications:Fi,UseCatalogs:Vi,UseErrors:Ii,UseExtensions:Li,UseFunctions:Ri,UseRetries:zi,UseSecrets:Ui,UseTimeouts:Bi,WaitTask:Wi,WithA2AParameters:Gi,WithEvent:an,WithGRPCArguments:Dn,WithGRPCService:En,WithOpenAPIParameters:In,Workflow:class e extends g{constructor(e){super(e);let t=this;m(e)&&(typeof e.document==`object`&&(t.document=new er(e.document)),typeof e.input==`object`&&(t.input=new W(e.input)),typeof e.use==`object`&&(t.use=new Hi(e.use)),typeof e.do==`object`&&(t.do=new Or(e.do)),typeof e.timeout==`object`&&(t.timeout=new Ki(e.timeout)),typeof e.output==`object`&&(t.output=new G(e.output)),typeof e.schedule==`object`&&(t.schedule=new Ci(e.schedule))),M(`Workflow`)?.constructor?.(this)}validate(t){H(`Workflow`,new e(this),t)}normalize(){let t=new e(this);return M(`Workflow`)?.normalize?.(t)||t}static deserialize(t){let n=ja(t);return H(`Workflow`,n),new e(n)}static serialize(t,n=`yaml`,r=!0){let i=new e(t);i.validate();let a=r?i.normalize():i;return n===`json`?JSON.stringify(a):Na(a)}static toGraph(e){return mo(e)}static toMermaidCode(e){return bo(e)}serialize(t=`yaml`,n=!0){return e.serialize(this,t,n)}toGraph(){return e.toGraph(this)}toMermaidCode(){return e.toMermaidCode(this)}},WorkflowMetadata:$n,WorkflowTags:Qn,WorkflowTimeout:Ki};function So(e,t){let n=new $.A2AArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Co=e=>f(e,So);function wo(e,t){let n=new $.AllEventConsumptionStrategy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let To=e=>f(e,wo);function Eo(e,t){let n=new $.AllEventConsumptionStrategyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Do=e=>p(e,Eo);function Oo(e,t){let n=new $.AnyEventConsumptionStrategy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let ko=e=>f(e,Oo);function Ao(e,t){let n=new $.AnyEventConsumptionStrategyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let jo=e=>p(e,Ao);function Mo(e,t){let n=new $.AnyEventConsumptionStrategyUntil(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let No=e=>f(e,Mo);function Po(e,t){let n=new $.AnyEventUntilConsumed(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Fo=e=>f(e,Po);function Io(e,t){let n=new $.AsyncApiArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Lo=e=>f(e,Io);function Ro(e,t){let n=new $.AuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let zo=e=>f(e,Ro);function Bo(e,t){let n=new $.AuthenticationPolicyReference(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Vo=e=>f(e,Bo);function Ho(e,t){let n=new $.BasicAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Uo=e=>f(e,Ho);function Wo(e,t){let n=new $.BasicAuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Go=e=>f(e,Wo);function Ko(e,t){let n=new $.BasicAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let qo=e=>f(e,Ko);function Jo(e,t){let n=new $.BearerAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Yo=e=>f(e,Jo);function Xo(e,t){let n=new $.BearerAuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Zo=e=>f(e,Xo);function Qo(e,t){let n=new $.BearerAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let $o=e=>f(e,Qo);function es(e,t){let n=new $.CallA2A(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let ts=e=>f(e,es);function ns(e,t){let n=new $.CallAsyncAPI(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let rs=e=>f(e,ns);function is(e,t){let n=new $.CallFunction(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let as=e=>f(e,is);function os(e,t){let n=new $.CallGRPC(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let ss=e=>f(e,os);function cs(e,t){let n=new $.CallHTTP(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let ls=e=>f(e,cs);function us(e,t){let n=new $.CallMCP(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let ds=e=>f(e,us);function fs(e,t){let n=new $.CallOpenAPI(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let ps=e=>f(e,fs);function ms(e,t){let n=new $.CallTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let hs=e=>f(e,ms);function gs(e,t){let n=new $.Catalog(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let _s=e=>f(e,gs);function vs(e,t){let n=new $.CatchErrors(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let ys=e=>f(e,vs);function bs(e,t){let n=new $.ConstantBackoff(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let xs=e=>f(e,bs);function Ss(e,t){let n=new $.Container(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Cs=e=>f(e,Ss);function ws(e,t){let n=new $.ContainerArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Ts=e=>p(e,ws);function Es(e,t){let n=new $.ContainerEnvironment(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Ds=e=>f(e,Es);function Os(e,t){let n=new $.ContainerLifetime(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let ks=e=>f(e,Os);function As(e,t){let n=new $.ContainerPorts(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let js=e=>f(e,As);function Ms(e,t){let n=new $.ContainerVolumes(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Ns=e=>f(e,Ms);function Ps(e,t){let n=new $.DigestAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Fs=e=>f(e,Ps);function Is(e,t){let n=new $.DigestAuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Ls=e=>f(e,Is);function Rs(e,t){let n=new $.DigestAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let zs=e=>f(e,Rs);function Bs(e,t){let n=new $.Document(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Vs=e=>f(e,Bs);function Hs(e,t){let n=new $.DoTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Us=e=>f(e,Hs);function Ws(e,t){let n=new $.Duration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Gs=e=>f(e,Ws);function Ks(e,t){let n=new $.DurationInline(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let qs=e=>f(e,Ks);function Js(e,t){let n=new $.EmitEventDefinition(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Ys=e=>f(e,Js);function Xs(e,t){let n=new $.EmitEventWith(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Zs=e=>f(e,Xs);function Qs(e,t){let n=new $.EmitTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let $s=e=>f(e,Qs);function ec(e,t){let n=new $.EmitTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let tc=e=>f(e,ec);function nc(e,t){let n=new $.Endpoint(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let rc=e=>f(e,nc);function ic(e,t){let n=new $.EndpointConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let ac=e=>f(e,ic);function oc(e,t){let n=new $.EndpointUri(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let sc=e=>f(e,oc);function cc(e,t){let n=new $.Error(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let lc=e=>f(e,cc);function uc(e,t){let n=new $.ErrorDetails(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let dc=e=>f(e,uc);function fc(e,t){let n=new $.ErrorFilter(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let pc=e=>f(e,fc);function mc(e,t){let n=new $.ErrorInstance(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let hc=e=>f(e,mc);function gc(e,t){let n=new $.ErrorTitle(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let _c=e=>f(e,gc);function vc(e,t){let n=new $.ErrorType(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let yc=e=>f(e,vc);function bc(e,t){let n=new $.EventConsumptionStrategy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let xc=e=>f(e,bc);function Sc(e,t){let n=new $.EventData(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Cc=e=>f(e,Sc);function wc(e,t){let n=new $.EventDataschema(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Tc=e=>f(e,wc);function Ec(e,t){let n=new $.EventFilter(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Dc=e=>f(e,Ec);function Oc(e,t){let n=new $.EventFilterCorrelate(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let kc=e=>f(e,Oc);function Ac(e,t){let n=new $.EventSource(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let jc=e=>f(e,Ac);function Mc(e,t){let n=new $.EventTime(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Nc=e=>f(e,Mc);function Pc(e,t){let n=new $.ExponentialBackOff(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Fc=e=>f(e,Pc);function Ic(e,t){let n=new $.Export(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Lc=e=>f(e,Ic);function Rc(e,t){let n=new $.ExportAs(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let zc=e=>f(e,Rc);function Bc(e,t){let n=new $.Extension(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Vc=e=>f(e,Bc);function Hc(e,t){let n=new $.ExtensionItem(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Uc=e=>f(e,Hc);function Wc(e,t){let n=new $.ExternalResource(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Gc=e=>f(e,Wc);function Kc(e,t){let n=new $.ExternalScript(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let qc=e=>f(e,Kc);function Jc(e,t){let n=new $.FlowDirective(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Yc=e=>f(e,Jc);function Xc(e,t){let n=new $.ForkTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Zc=e=>f(e,Xc);function Qc(e,t){let n=new $.ForkTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let $c=e=>f(e,Qc);function el(e,t){let n=new $.ForTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let tl=e=>f(e,el);function nl(e,t){let n=new $.ForTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let rl=e=>f(e,nl);function il(e,t){let n=new $.FunctionArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let al=e=>f(e,il);function ol(e,t){let n=new $.GRPCArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let sl=e=>f(e,ol);function cl(e,t){let n=new $.HTTPArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let ll=e=>f(e,cl);function ul(e,t){let n=new $.HTTPBody(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let dl=e=>f(e,ul);function fl(e,t){let n=new $.HTTPHeaders(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let pl=e=>f(e,fl);function ml(e,t){let n=new $.HTTPQuery(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let hl=e=>f(e,ml);function gl(e,t){let n=new $.InlineScript(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let _l=e=>f(e,gl);function vl(e,t){let n=new $.Input(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let yl=e=>f(e,vl);function bl(e,t){let n=new $.InputFrom(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let xl=e=>f(e,bl);function Sl(e,t){let n=new $.LinearBackoff(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Cl=e=>f(e,Sl);function wl(e,t){let n=new $.ListenTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Tl=e=>f(e,wl);function El(e,t){let n=new $.ListenTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Dl=e=>f(e,El);function Ol(e,t){let n=new $.MCPArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let kl=e=>f(e,Ol);function Al(e,t){let n=new $.McpCallTransport(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let jl=e=>f(e,Al);function Ml(e,t){let n=new $.McpClient(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Nl=e=>f(e,Ml);function Pl(e,t){let n=new $.McpMethodParameters(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Fl=e=>f(e,Pl);function Il(e,t){let n=new $.OAuth2AuthenticationData(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Ll=e=>f(e,Il);function Rl(e,t){let n=new $.OAuth2AuthenticationDataAudiences(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let zl=e=>p(e,Rl);function Bl(e,t){let n=new $.OAuth2AuthenticationDataClient(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Vl=e=>f(e,Bl);function Hl(e,t){let n=new $.OAuth2AuthenticationDataScopes(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Ul=e=>p(e,Hl);function Wl(e,t){let n=new $.OAuth2AuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Gl=e=>f(e,Wl);function Kl(e,t){let n=new $.OAuth2AuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let ql=e=>f(e,Kl);function Jl(e,t){let n=new $.OAuth2AuthenticationPropertiesEndpoints(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Yl=e=>f(e,Jl);function Xl(e,t){let n=new $.OAuth2ConnectAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Zl=e=>f(e,Xl);function Ql(e,t){let n=new $.OAuth2Issuers(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let $l=e=>p(e,Ql);function eu(e,t){let n=new $.OAuth2TokenDefinition(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let tu=e=>f(e,eu);function nu(e,t){let n=new $.OAuth2TokenRequest(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let ru=e=>f(e,nu);function iu(e,t){let n=new $.OneEventConsumptionStrategy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let au=e=>f(e,iu);function ou(e,t){let n=new $.OpenAPIArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let su=e=>f(e,ou);function cu(e,t){let n=new $.OpenIdConnectAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let lu=e=>f(e,cu);function uu(e,t){let n=new $.OpenIdConnectAuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let du=e=>f(e,uu);function fu(e,t){let n=new $.OpenIdConnectAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let pu=e=>f(e,fu);function mu(e,t){let n=new $.Output(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let hu=e=>f(e,mu);function gu(e,t){let n=new $.OutputAs(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let _u=e=>f(e,gu);function vu(e,t){let n=new $.RaiseTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let yu=e=>f(e,vu);function bu(e,t){let n=new $.RaiseTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let xu=e=>f(e,bu);function Su(e,t){let n=new $.RaiseTaskError(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Cu=e=>f(e,Su);function wu(e,t){let n=new $.ReferenceableAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Tu=e=>f(e,wu);function Eu(e,t){let n=new $.RetryBackoff(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Du=e=>f(e,Eu);function Ou(e,t){let n=new $.RetryLimit(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let ku=e=>f(e,Ou);function Au(e,t){let n=new $.RetryLimitAttempt(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let ju=e=>f(e,Au);function Mu(e,t){let n=new $.RetryPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Nu=e=>f(e,Mu);function Pu(e,t){let n=new $.RetryPolicyJitter(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Fu=e=>f(e,Pu);function Iu(e,t){let n=new $.RunContainer(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Lu=e=>f(e,Iu);function Ru(e,t){let n=new $.RunScript(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let zu=e=>f(e,Ru);function Bu(e,t){let n=new $.RunShell(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Vu=e=>f(e,Bu);function Hu(e,t){let n=new $.RunTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Uu=e=>f(e,Hu);function Wu(e,t){let n=new $.RunTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Gu=e=>f(e,Wu);function Ku(e,t){let n=new $.RuntimeExpression(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let qu=e=>f(e,Ku);function Ju(e,t){let n=new $.RunWorkflow(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Yu=e=>f(e,Ju);function Xu(e,t){let n=new $.Schedule(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Zu=e=>f(e,Xu);function Qu(e,t){let n=new $.Schema(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let $u=e=>f(e,Qu);function ed(e,t){let n=new $.SchemaExternal(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let td=e=>f(e,ed);function nd(e,t){let n=new $.SchemaInline(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let rd=e=>f(e,nd);function id(e,t){let n=new $.Script(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let ad=e=>f(e,id);function od(e,t){let n=new $.SecretBasedAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let sd=e=>f(e,od);function cd(e,t){let n=new $.SetTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let ld=e=>f(e,cd);function ud(e,t){let n=new $.SetTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let dd=e=>f(e,ud);function fd(e,t){let n=new $.Shell(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let pd=e=>f(e,fd);function md(e,t){let n=new $.ShellArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let hd=e=>p(e,md);function gd(e,t){let n=new $.ShellEnvironment(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let _d=e=>f(e,gd);function vd(e,t){let n=new $.SubflowConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let yd=e=>f(e,vd);function bd(e,t){let n=new $.SubflowInput(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let xd=e=>f(e,bd);function Sd(e,t){let n=new $.SubscriptionIterator(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Cd=e=>f(e,Sd);function wd(e,t){let n=new $.SwitchCase(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Td=e=>f(e,wd);function Ed(e,t){let n=new $.SwitchItem(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Dd=e=>f(e,Ed);function Od(e,t){let n=new $.SwitchTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let kd=e=>f(e,Od);function Ad(e,t){let n=new $.SwitchTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let jd=e=>f(e,Ad);function Md(e,t){let n=new $.Task(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Nd=e=>f(e,Md);function Pd(e,t){let n=new $.TaskBase(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Fd=e=>f(e,Pd);function Id(e,t){let n=new $.TaskBaseIf(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Ld=e=>f(e,Id);function Rd(e,t){let n=new $.TaskItem(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let zd=e=>f(e,Rd);function Bd(e,t){let n=new $.TaskList(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Vd=e=>p(e,Bd);function Hd(e,t){let n=new $.TaskMetadata(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Ud=e=>f(e,Hd);function Wd(e,t){let n=new $.TaskTimeout(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Gd=e=>f(e,Wd);function Kd(e,t){let n=new $.Timeout(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let qd=e=>f(e,Kd);function Jd(e,t){let n=new $.TryTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Yd=e=>f(e,Jd);function Xd(e,t){let n=new $.TryTaskCatch(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Zd=e=>f(e,Xd);function Qd(e,t){let n=new $.TryTaskCatchRetry(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let $d=e=>f(e,Qd);function ef(e,t){let n=new $.UriTemplate(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let tf=e=>f(e,ef);function nf(e,t){let n=new $.Use(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let rf=e=>f(e,nf);function af(e,t){let n=new $.UseAuthentications(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let of=e=>f(e,af);function sf(e,t){let n=new $.UseCatalogs(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let cf=e=>f(e,sf);function lf(e,t){let n=new $.UseErrors(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let uf=e=>f(e,lf);function df(e,t){let n=new $.UseExtensions(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let ff=e=>p(e,df);function pf(e,t){let n=new $.UseFunctions(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let mf=e=>f(e,pf);function hf(e,t){let n=new $.UseRetries(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let gf=e=>f(e,hf);function _f(e,t){let n=new $.UseSecrets(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let vf=e=>p(e,_f);function yf(e,t){let n=new $.UseTimeouts(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let bf=e=>f(e,yf);function xf(e,t){let n=new $.WaitTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Sf=e=>f(e,xf);function Cf(e,t){let n=new $.WithA2AParameters(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let wf=e=>f(e,Cf);function Tf(e,t){let n=new $.WithEvent(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Ef=e=>f(e,Tf);function Df(e,t){let n=new $.WithGRPCArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Of=e=>f(e,Df);function kf(e,t){let n=new $.WithGRPCService(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Af=e=>f(e,kf);function jf(e,t){let n=new $.WithOpenAPIParameters(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Mf=e=>f(e,jf);function Nf(e,t){let n=new $.Workflow(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Pf=e=>f(e,Nf);function Ff(e,t){let n=new $.WorkflowMetadata(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let If=e=>f(e,Ff);function Lf(e,t){let n=new $.WorkflowTags(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Rf=e=>f(e,Lf);function zf(e,t){let n=new $.WorkflowTimeout(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}let Bf=e=>f(e,zf);var Vf=c({});e.Classes=$,e.GraphNodeType=Va,e.MermaidDiagram=xo,Object.defineProperty(e,"Specification",{enumerable:!0,get:function(){return Vf}}),e.a2AArgumentsBuilder=Co,e.allEventConsumptionStrategyBuilder=To,e.allEventConsumptionStrategyConfigurationBuilder=Do,e.anyEventConsumptionStrategyBuilder=ko,e.anyEventConsumptionStrategyConfigurationBuilder=jo,e.anyEventConsumptionStrategyUntilBuilder=No,e.anyEventUntilConsumedBuilder=Fo,e.asyncApiArgumentsBuilder=Lo,e.authenticationPolicyBuilder=zo,e.authenticationPolicyReferenceBuilder=Vo,e.basicAuthenticationPolicyBuilder=Uo,e.basicAuthenticationPolicyConfigurationBuilder=Go,e.basicAuthenticationPropertiesBuilder=qo,e.bearerAuthenticationPolicyBuilder=Yo,e.bearerAuthenticationPolicyConfigurationBuilder=Zo,e.bearerAuthenticationPropertiesBuilder=$o,e.buildFlatGraph=ho,e.buildGraph=mo,e.callA2ABuilder=ts,e.callAsyncAPIBuilder=rs,e.callFunctionBuilder=as,e.callGRPCBuilder=ss,e.callHTTPBuilder=ls,e.callMCPBuilder=ds,e.callOpenAPIBuilder=ps,e.callTaskBuilder=hs,e.catalogBuilder=_s,e.catchErrorsBuilder=ys,e.constantBackoffBuilder=xs,e.containerArgumentsBuilder=Ts,e.containerBuilder=Cs,e.containerEnvironmentBuilder=Ds,e.containerLifetimeBuilder=ks,e.containerPortsBuilder=js,e.containerVolumesBuilder=Ns,e.convertToMermaidCode=bo,e.digestAuthenticationPolicyBuilder=Fs,e.digestAuthenticationPolicyConfigurationBuilder=Ls,e.digestAuthenticationPropertiesBuilder=zs,e.doTaskBuilder=Us,e.documentBuilder=Vs,e.durationBuilder=Gs,e.durationInlineBuilder=qs,e.emitEventDefinitionBuilder=Ys,e.emitEventWithBuilder=Zs,e.emitTaskBuilder=$s,e.emitTaskConfigurationBuilder=tc,e.endpointBuilder=rc,e.endpointConfigurationBuilder=ac,e.endpointUriBuilder=sc,e.errorBuilder=lc,e.errorDetailsBuilder=dc,e.errorFilterBuilder=pc,e.errorInstanceBuilder=hc,e.errorTitleBuilder=_c,e.errorTypeBuilder=yc,e.eventConsumptionStrategyBuilder=xc,e.eventDataBuilder=Cc,e.eventDataschemaBuilder=Tc,e.eventFilterBuilder=Dc,e.eventFilterCorrelateBuilder=kc,e.eventSourceBuilder=jc,e.eventTimeBuilder=Nc,e.exponentialBackOffBuilder=Fc,e.exportAsBuilder=zc,e.exportBuilder=Lc,e.extensionBuilder=Vc,e.extensionItemBuilder=Uc,e.externalResourceBuilder=Gc,e.externalScriptBuilder=qc,e.flattenEdges=uo,e.flattenGraph=po,e.flattenNodes=fo,e.flowDirectiveBuilder=Yc,e.forTaskBuilder=tl,e.forTaskConfigurationBuilder=rl,e.forkTaskBuilder=Zc,e.forkTaskConfigurationBuilder=$c,e.functionArgumentsBuilder=al,e.gRPCArgumentsBuilder=sl,e.hTTPArgumentsBuilder=ll,e.hTTPBodyBuilder=dl,e.hTTPHeadersBuilder=pl,e.hTTPQueryBuilder=hl,e.inlineScriptBuilder=_l,e.inputBuilder=yl,e.inputFromBuilder=xl,e.linearBackoffBuilder=Cl,e.listenTaskBuilder=Tl,e.listenTaskConfigurationBuilder=Dl,e.mCPArgumentsBuilder=kl,e.mcpCallTransportBuilder=jl,e.mcpClientBuilder=Nl,e.mcpMethodParametersBuilder=Fl,e.oAuth2AuthenticationDataAudiencesBuilder=zl,e.oAuth2AuthenticationDataBuilder=Ll,e.oAuth2AuthenticationDataClientBuilder=Vl,e.oAuth2AuthenticationDataScopesBuilder=Ul,e.oAuth2AuthenticationPolicyBuilder=Gl,e.oAuth2AuthenticationPolicyConfigurationBuilder=ql,e.oAuth2AuthenticationPropertiesEndpointsBuilder=Yl,e.oAuth2ConnectAuthenticationPropertiesBuilder=Zl,e.oAuth2IssuersBuilder=$l,e.oAuth2TokenDefinitionBuilder=tu,e.oAuth2TokenRequestBuilder=ru,e.oneEventConsumptionStrategyBuilder=au,e.openAPIArgumentsBuilder=su,e.openIdConnectAuthenticationPolicyBuilder=lu,e.openIdConnectAuthenticationPolicyConfigurationBuilder=du,e.openIdConnectAuthenticationPropertiesBuilder=pu,e.outputAsBuilder=_u,e.outputBuilder=hu,e.raiseTaskBuilder=yu,e.raiseTaskConfigurationBuilder=xu,e.raiseTaskErrorBuilder=Cu,e.referenceableAuthenticationPolicyBuilder=Tu,e.remapEdges=lo,e.retryBackoffBuilder=Du,e.retryLimitAttemptBuilder=ju,e.retryLimitBuilder=ku,e.retryPolicyBuilder=Nu,e.retryPolicyJitterBuilder=Fu,e.runContainerBuilder=Lu,e.runScriptBuilder=zu,e.runShellBuilder=Vu,e.runTaskBuilder=Uu,e.runTaskConfigurationBuilder=Gu,e.runWorkflowBuilder=Yu,e.runtimeExpressionBuilder=qu,e.scheduleBuilder=Zu,e.schemaBuilder=$u,e.schemaExternalBuilder=td,e.schemaInlineBuilder=rd,e.scriptBuilder=ad,e.secretBasedAuthenticationPolicyBuilder=sd,e.setTaskBuilder=ld,e.setTaskConfigurationBuilder=dd,e.shellArgumentsBuilder=hd,e.shellBuilder=pd,e.shellEnvironmentBuilder=_d,e.subflowConfigurationBuilder=yd,e.subflowInputBuilder=xd,e.subscriptionIteratorBuilder=Cd,e.switchCaseBuilder=Td,e.switchItemBuilder=Dd,e.switchTaskBuilder=kd,e.switchTaskConfigurationBuilder=jd,e.taskBaseBuilder=Fd,e.taskBaseIfBuilder=Ld,e.taskBuilder=Nd,e.taskItemBuilder=zd,e.taskListBuilder=Vd,e.taskMetadataBuilder=Ud,e.taskTimeoutBuilder=Gd,e.timeoutBuilder=qd,e.tryTaskBuilder=Yd,e.tryTaskCatchBuilder=Zd,e.tryTaskCatchRetryBuilder=$d,e.uriTemplateBuilder=tf,e.useAuthenticationsBuilder=of,e.useBuilder=rf,e.useCatalogsBuilder=cf,e.useErrorsBuilder=uf,e.useExtensionsBuilder=ff,e.useFunctionsBuilder=mf,e.useRetriesBuilder=gf,e.useSecretsBuilder=vf,e.useTimeoutsBuilder=bf,e.validate=H,e.waitTaskBuilder=Sf,e.withA2AParametersBuilder=wf,e.withEventBuilder=Ef,e.withGRPCArgumentsBuilder=Of,e.withGRPCServiceBuilder=Af,e.withOpenAPIParametersBuilder=Mf,e.workflowBuilder=Pf,e.workflowMetadataBuilder=If,e.workflowTagsBuilder=Rf,e.workflowTimeoutBuilder=Bf});
|
|
54
|
+
//# sourceMappingURL=index.umd.min.js.map
|