@lovrabet/rabetbase-cli 2.5.4-beta.1 → 2.5.4-beta.2
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 +4 -3
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.d.ts +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.d.ts +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.d.ts +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.d.ts +4 -0
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.d.ts +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.d.ts +14 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.d.ts +1 -0
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.d.ts +15 -3
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.d.ts +2 -2
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.d.ts +5 -0
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +2 -2
- package/skills/rabetbase/guides/sql-creation-workflow.md +1 -1
- package/skills/rabetbase/guides/sql-mybatis.md +12 -8
- package/skills/rabetbase/references/rabetbase-config.md +6 -4
- package/skills/rabetbase/references/rabetbase-init.md +7 -5
- package/skills/rabetbase/references/rabetbase-kb.md +8 -6
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x3957b4,_0x153dde){const _0x2c6cec=a275_0x3349,_0x29adf0=_0x3957b4();while(!![]){try{const _0x463ce8=-parseInt(_0x2c6cec(0x1a3))/0x1*(-parseInt(_0x2c6cec(0x1ce))/0x2)+-parseInt(_0x2c6cec(0x1c4))/0x3*(parseInt(_0x2c6cec(0x1c6))/0x4)+parseInt(_0x2c6cec(0x1b0))/0x5+-parseInt(_0x2c6cec(0x19e))/0x6+-parseInt(_0x2c6cec(0x1d2))/0x7+parseInt(_0x2c6cec(0x1af))/0x8*(parseInt(_0x2c6cec(0x1a5))/0x9)+parseInt(_0x2c6cec(0x1ae))/0xa*(parseInt(_0x2c6cec(0x1a7))/0xb);if(_0x463ce8===_0x153dde)break;else _0x29adf0['push'](_0x29adf0['shift']());}catch(_0x4f2be0){_0x29adf0['push'](_0x29adf0['shift']());}}}(a275_0x2292,0x6b87b));function a275_0x3349(_0x1b09b5,_0x5f139b){_0x1b09b5=_0x1b09b5-0x19e;const _0x229221=a275_0x2292();let _0x33496b=_0x229221[_0x1b09b5];return _0x33496b;}import{CliError}from'../../errors.js';export function trackedHookDirectoryMappings(_0x5dfa52){const _0x1b8438=a275_0x3349,_0x4f8a5b=[];for(const [_0x18ac05,_0x51e67c]of Object[_0x1b8438(0x1c1)](_0x5dfa52[_0x1b8438(0x1b9)])){const [_0x34b1ff,_0xcda320]=_0x18ac05[_0x1b8438(0x1d1)]('/');if(_0x34b1ff!==_0x1b8438(0x1cd)||!_0xcda320||!_0x51e67c[_0x1b8438(0x1a0)])continue;_0x4f8a5b['push']({'alias':_0xcda320,'datasetCode':_0x51e67c[_0x1b8438(0x1a0)]});}return _0x4f8a5b;}export function uniqueTrackedHookDirectoryByDataset(_0x40ec62){const _0x3ee131=a275_0x3349,_0xa875b1=new Map();for(const _0x159af0 of trackedHookDirectoryMappings(_0x40ec62)){const _0x537e88=directoryIdentity(_0x159af0[_0x3ee131(0x1a0)]),_0x5d6af3=_0xa875b1[_0x3ee131(0x1ac)](_0x537e88)??new Map();_0x5d6af3[_0x3ee131(0x1c7)](directoryIdentity(_0x159af0[_0x3ee131(0x1c5)]),_0x159af0[_0x3ee131(0x1c5)]),_0xa875b1[_0x3ee131(0x1c7)](_0x537e88,_0x5d6af3);}const _0x1d87d8=new Map();for(const [_0x41d500,_0x38c554]of _0xa875b1){if(_0x38c554[_0x3ee131(0x1a6)]>0x1)throw hookDirectoryError('HOOK_DUPLICATE_DIRECTORIES','Dataset\x20\x22'+_0x41d500+'\x22\x20has\x20multiple\x20tracked\x20HOOK\x20directories:\x20'+[..._0x38c554['values']()][_0x3ee131(0x1c3)](',\x20')+'.',{'datasetCode':_0x41d500,'directories':[..._0x38c554[_0x3ee131(0x1b4)]()]});_0x1d87d8[_0x3ee131(0x1c7)](_0x41d500,[..._0x38c554[_0x3ee131(0x1b4)]()][0x0]);}return _0x1d87d8;}export function assertUnambiguousHookDirectoryMappings(_0x389cab){const _0x103a21=a275_0x3349,_0x38a464=new Map();for(const {alias:_0x214d10,datasetCode:_0x1cb3f4}of _0x389cab){const _0x2674c2=directoryIdentity(_0x214d10),_0x56719d=_0x38a464[_0x103a21(0x1ac)](_0x2674c2)??new Set();_0x56719d[_0x103a21(0x1a8)](_0x1cb3f4),_0x38a464['set'](_0x2674c2,_0x56719d);}for(const [_0x42410d,_0x23f1be]of _0x38a464){if(_0x23f1be['size']>0x1)throw hookDirectoryError(_0x103a21(0x1c8),'HOOK\x20directory\x20\x22'+_0x42410d+'\x22\x20resolves\x20to\x20multiple\x20Datasets.',{'directoryName':_0x42410d,'datasetCodes':[..._0x23f1be]});}}export function assertUnambiguousHookAliases(_0x4b86e6){const _0x2068ea=a275_0x3349,_0x5a6cec=[..._0x4b86e6],_0x2d6cc8=new Map(),_0x45fa7e=new Map();for(const {alias:_0x358c39,datasetCode:_0x284af6}of _0x5a6cec){const _0x30515d=directoryIdentity(_0x358c39),_0xbdd0bb=directoryIdentity(_0x284af6),_0x19db4a=_0x2d6cc8['get'](_0x30515d)??new Set();_0x19db4a[_0x2068ea(0x1a8)](_0x284af6),_0x2d6cc8[_0x2068ea(0x1c7)](_0x30515d,_0x19db4a);const _0x52640d=_0x45fa7e[_0x2068ea(0x1ac)](_0xbdd0bb)??new Set();_0x52640d[_0x2068ea(0x1a8)](_0x358c39),_0x45fa7e[_0x2068ea(0x1c7)](_0xbdd0bb,_0x52640d);}for(const [_0x2ef74e,_0x5292ce]of _0x2d6cc8){if(_0x5292ce[_0x2068ea(0x1a6)]>0x1)throw hookDirectoryError(_0x2068ea(0x1d3),_0x2068ea(0x1cf)+_0x2ef74e+_0x2068ea(0x1b6),{'alias':_0x2ef74e,'datasetCodes':[..._0x5292ce]});}for(const [_0x388eb8,_0x332e0b]of _0x45fa7e){if(_0x332e0b[_0x2068ea(0x1a6)]>0x1)throw hookDirectoryError(_0x2068ea(0x1d3),_0x2068ea(0x1cb)+_0x388eb8+_0x2068ea(0x1ab),{'datasetCode':_0x388eb8,'aliases':[..._0x332e0b]});}}export function buildHookDirectoryIndexes(_0x2e5f3f,_0x3876de=[]){const _0x3a5b29=a275_0x3349,_0x12982e=[..._0x3876de];assertUnambiguousHookDirectoryMappings(_0x12982e[_0x3a5b29(0x1ad)](([_0x3005c4,_0x278fd7])=>({'alias':_0x3005c4,'datasetCode':_0x278fd7})));const _0x460d6b=new Map(),_0x20b8e0=new Map();for(const _0x259796 of _0x2e5f3f){appendUnique(_0x460d6b,directoryIdentity(_0x259796[_0x3a5b29(0x19f)]),_0x259796,_0x27cf61=>_0x27cf61['code']);}for(const [_0x1df394,_0x197610]of _0x12982e){appendUnique(_0x20b8e0,directoryIdentity(_0x1df394),_0x197610,_0x52ebb6=>_0x52ebb6);}return{'datasetCodeToDatasets':_0x460d6b,'aliasToDatasetCodes':_0x20b8e0};}export function resolvePushHookDirectory(_0x48a02d,_0x956692,_0x2d843b){const _0x5f2109=a275_0x3349,_0xa68849=directoryIdentity(_0x48a02d),_0x4b1c9f=_0x2d843b['datasetCodeToDatasets']['get'](_0xa68849)??[],_0xff43a3=_0x2d843b[_0x5f2109(0x1b2)]['get'](_0xa68849)??[],_0xd06064=new Set([..._0x4b1c9f['map'](_0x1c7284=>_0x1c7284[_0x5f2109(0x19f)]),..._0xff43a3]);if(_0xd06064['size']>0x1)throw hookDirectoryError(_0x5f2109(0x1c8),_0x5f2109(0x1b8)+_0x48a02d+'\x22\x20collides\x20across\x20datasetCode\x20and\x20alias\x20namespaces.',{'directoryName':_0x48a02d,'datasetCodes':[..._0xd06064]});const _0x165988=[..._0xd06064][0x0];if(_0x165988&&_0x956692?.['datasetCode']&&_0x165988!==_0x956692[_0x5f2109(0x1a0)])throw hookDirectoryError(_0x5f2109(0x1bd),_0x5f2109(0x1b8)+_0x48a02d+_0x5f2109(0x1c0)+_0x956692['datasetCode']+_0x5f2109(0x1b3)+_0x165988+'\x22.',{'directoryName':_0x48a02d,'datasetCode':_0x165988,'lockedDatasetCode':_0x956692[_0x5f2109(0x1a0)]});const _0x3a06dc=_0x165988?findDatasetByCode(_0x2d843b,_0x165988):undefined,_0x4ee5d7=!!_0x165988&&_0xff43a3['includes'](_0x165988);if(_0x3a06dc)return{'dataset':_0x3a06dc,'datasetCode':_0x3a06dc[_0x5f2109(0x19f)],..._0x4ee5d7?{'alias':_0x48a02d}:{},'directoryProtocol':_0x4ee5d7?_0x5f2109(0x1c5):_0x5f2109(0x1a0),'warnings':[]};const _0x1d6508=_0x956692?.[_0x5f2109(0x1a0)];if(_0x1d6508){const _0x297a71=findDatasetByCode(_0x2d843b,_0x1d6508);if(_0x297a71)return{'dataset':_0x297a71,'datasetCode':_0x297a71[_0x5f2109(0x19f)],..._0x956692[_0x5f2109(0x1c5)]?{'alias':_0x956692[_0x5f2109(0x1c5)]}:{},'directoryProtocol':_0x956692['alias']?_0x5f2109(0x1c5):_0x5f2109(0x1a0),'warnings':[]};}if(_0x165988||_0x1d6508){const _0x4091f3=_0x165988??_0x1d6508;throw hookDirectoryError('HOOK_DATASET_NOT_FOUND',_0x5f2109(0x1b8)+_0x48a02d+_0x5f2109(0x1bc),{'directoryName':_0x48a02d,'datasetCode':_0x4091f3});}throw hookDirectoryError(_0x5f2109(0x1d4),_0x5f2109(0x1be)+_0x48a02d+_0x5f2109(0x1b7),{'directoryName':_0x48a02d});}export function preflightPushHookDirectories(_0x46608d,_0x3bd3d1,_0x5da4a6,_0x11b380){const _0x1b3a13=a275_0x3349,_0x574af5=new Map(),_0x5778b5=new Map();for(const _0x2e98d8 of _0x46608d){if(_0x2e98d8[_0x1b3a13(0x1b1)]!==_0x1b3a13(0x1cd))continue;const _0x224c8d=_0x2e98d8['alias'];if(!_0x224c8d)throw hookDirectoryError(_0x1b3a13(0x1d4),_0x1b3a13(0x1cc)+_0x2e98d8[_0x1b3a13(0x1aa)],{'lockKey':_0x2e98d8[_0x1b3a13(0x1aa)]});let _0x3c9544;try{_0x3c9544=resolvePushHookDirectory(_0x224c8d,_0x3bd3d1[_0x1b3a13(0x1b9)][_0x2e98d8['lockKey']],_0x5da4a6);}catch(_0x3f668e){if(_0x11b380&&_0x3f668e instanceof CliError&&[_0x1b3a13(0x1d0),'HOOK_DIRECTORY_UNRESOLVED'][_0x1b3a13(0x1bb)](_0x3f668e[_0x1b3a13(0x19f)])){_0x11b380[_0x1b3a13(0x1c7)](_0x2e98d8[_0x1b3a13(0x1aa)],_0x3f668e['message']);continue;}throw _0x3f668e;}_0x574af5[_0x1b3a13(0x1c7)](_0x2e98d8[_0x1b3a13(0x1aa)],_0x3c9544);const _0x13faee=_0x5778b5[_0x1b3a13(0x1ac)](_0x3c9544['datasetCode'])??new Set();_0x13faee['add'](_0x224c8d),_0x5778b5[_0x1b3a13(0x1c7)](_0x3c9544[_0x1b3a13(0x1a0)],_0x13faee);}for(const [_0x3cf82b,_0x1c1195]of _0x5778b5){if(_0x1c1195['size']>0x1)throw hookDirectoryError(_0x1b3a13(0x1b5),_0x1b3a13(0x1cb)+_0x3cf82b+_0x1b3a13(0x1ca)+[..._0x1c1195][_0x1b3a13(0x1c3)](',\x20')+'.',{'datasetCode':_0x3cf82b,'directories':[..._0x1c1195]});}return _0x574af5;}export function hookDirectoryError(_0x53d23e,_0xbb2eb9,_0xf3f8f3){const _0x438e0a=a275_0x3349,_0x44021d=new CliError(_0x53d23e,0x2,_0x53d23e+':\x20'+_0xbb2eb9);return _0x44021d[_0x438e0a(0x1a1)]=_0xf3f8f3,_0x44021d;}function findDatasetByCode(_0x2c6936,_0x2af6da){const _0x2cb6c0=a275_0x3349,_0x460ec4=_0x2c6936[_0x2cb6c0(0x1bf)][_0x2cb6c0(0x1ac)](directoryIdentity(_0x2af6da))??[];if(_0x460ec4['length']>0x1)throw hookDirectoryError(_0x2cb6c0(0x1c9),'Dataset\x20code\x20\x22'+_0x2af6da+_0x2cb6c0(0x1a9),{'datasetCode':_0x2af6da,'candidates':_0x460ec4['map'](datasetFact)});return _0x460ec4[0x0];}function directoryIdentity(_0x30698a){const _0x4587c6=a275_0x3349;return _0x30698a['normalize'](_0x4587c6(0x1c2))[_0x4587c6(0x1a2)]();}function a275_0x2292(){const _0x3239b9=['Cannot\x20resolve\x20HOOK\x20directory\x20\x22','datasetCodeToDatasets','\x22\x20changed\x20mapping\x20from\x20Dataset\x20\x22','entries','NFC','join','3ECaNly','alias','2016792qPBUcQ','set','HOOK_DIRECTORY_AMBIGUOUS','HOOK_DATASET_CODE_AMBIGUOUS','\x22\x20is\x20represented\x20by\x20multiple\x20HOOK\x20directories:\x20','Dataset\x20\x22','Incomplete\x20HOOK\x20path:\x20','HOOK','136hoKNyR','SDK\x20alias\x20\x22','HOOK_DATASET_NOT_FOUND','split','825867XmKfQr','HOOK_ALIAS_AMBIGUOUS','HOOK_DIRECTORY_UNRESOLVED','1769832LPzejP','code','datasetCode','details','toLowerCase','6091woEWvS','name','18sbsJGQ','size','55AqxvUU','add','\x22\x20differs\x20only\x20by\x20case\x20from\x20another\x20Dataset\x20code.','lockKey','\x22\x20has\x20multiple\x20SDK\x20aliases\x20and\x20has\x20no\x20unique\x20HOOK\x20directory.','get','map','1174990xgqFOq','215672MmyDAg','1509965WZmMgF','type','aliasToDatasetCodes','\x22\x20to\x20\x22','values','HOOK_DUPLICATE_DIRECTORIES','\x22\x20resolves\x20to\x20multiple\x20Datasets.','\x22\x20to\x20a\x20Dataset\x20alias\x20or\x20datasetCode.','HOOK\x20directory\x20\x22','functions','some','includes','\x22\x20points\x20to\x20a\x20Dataset\x20that\x20is\x20absent\x20from\x20current\x20platform\x20metadata.','HOOK_MAPPING_DRIFT'];a275_0x2292=function(){return _0x3239b9;};return a275_0x2292();}function appendUnique(_0x2c1777,_0x2e86c2,_0x37289a,_0x46e645){const _0x23cb18=a275_0x3349,_0x12182c=_0x2c1777[_0x23cb18(0x1ac)](_0x2e86c2)??[];!_0x12182c[_0x23cb18(0x1ba)](_0x5b6c1f=>_0x46e645(_0x5b6c1f)===_0x46e645(_0x37289a))&&_0x12182c['push'](_0x37289a),_0x2c1777['set'](_0x2e86c2,_0x12182c);}function datasetFact(_0x2b9e3b){const _0x4f0372=a275_0x3349;return{'id':_0x2b9e3b['id'],'name':_0x2b9e3b[_0x4f0372(0x1a4)],'datasetCode':_0x2b9e3b[_0x4f0372(0x19f)]};}
|
|
1
|
+
(function(_0x14c73f,_0x20281e){const _0x3a4dd1=a275_0x241c,_0x502f18=_0x14c73f();while(!![]){try{const _0x3e2d60=parseInt(_0x3a4dd1(0x152))/0x1*(-parseInt(_0x3a4dd1(0x164))/0x2)+parseInt(_0x3a4dd1(0x156))/0x3*(-parseInt(_0x3a4dd1(0x17a))/0x4)+parseInt(_0x3a4dd1(0x16e))/0x5*(-parseInt(_0x3a4dd1(0x168))/0x6)+-parseInt(_0x3a4dd1(0x16f))/0x7+-parseInt(_0x3a4dd1(0x170))/0x8*(parseInt(_0x3a4dd1(0x185))/0x9)+parseInt(_0x3a4dd1(0x14d))/0xa+parseInt(_0x3a4dd1(0x187))/0xb;if(_0x3e2d60===_0x20281e)break;else _0x502f18['push'](_0x502f18['shift']());}catch(_0x5272ef){_0x502f18['push'](_0x502f18['shift']());}}}(a275_0x5e1b,0x21755));import{CliError}from'../../errors.js';export function trackedHookDirectoryMappings(_0x48896b){const _0x121fe6=a275_0x241c,_0x461c7c=[];for(const [_0x23608e,_0x320888]of Object[_0x121fe6(0x171)](_0x48896b[_0x121fe6(0x14f)])){const [_0x2a48a4,_0x4249e7]=_0x23608e[_0x121fe6(0x15b)]('/');if(_0x2a48a4!==_0x121fe6(0x15c)||!_0x4249e7||!_0x320888[_0x121fe6(0x16c)])continue;_0x461c7c['push']({'alias':_0x4249e7,'datasetCode':_0x320888[_0x121fe6(0x16c)]});}return _0x461c7c;}export function uniqueTrackedHookDirectoryByDataset(_0x2b27d2){const _0x2cc591=a275_0x241c,_0x3a2ad5=new Map();for(const _0x18ab0d of trackedHookDirectoryMappings(_0x2b27d2)){const _0x3cda11=directoryIdentity(_0x18ab0d['datasetCode']),_0x5330b3=_0x3a2ad5[_0x2cc591(0x16b)](_0x3cda11)??new Map();_0x5330b3['set'](directoryIdentity(_0x18ab0d['alias']),_0x18ab0d[_0x2cc591(0x17b)]),_0x3a2ad5['set'](_0x3cda11,_0x5330b3);}const _0x37757b=new Map();for(const [_0x1a187d,_0x2f8bee]of _0x3a2ad5){if(_0x2f8bee['size']>0x1)throw hookDirectoryError(_0x2cc591(0x159),_0x2cc591(0x184)+_0x1a187d+_0x2cc591(0x17f)+[..._0x2f8bee['values']()]['join'](',\x20')+'.',{'datasetCode':_0x1a187d,'directories':[..._0x2f8bee[_0x2cc591(0x151)]()]});_0x37757b[_0x2cc591(0x17e)](_0x1a187d,[..._0x2f8bee['values']()][0x0]);}return _0x37757b;}export function assertUnambiguousHookDirectoryMappings(_0x1e7147){const _0x5c0cfd=a275_0x241c,_0x1213a5=new Map();for(const {alias:_0x1bdfca,datasetCode:_0x37f1a1}of _0x1e7147){const _0x15726d=directoryIdentity(_0x1bdfca),_0x55be00=_0x1213a5[_0x5c0cfd(0x16b)](_0x15726d)??new Set();_0x55be00[_0x5c0cfd(0x155)](_0x37f1a1),_0x1213a5[_0x5c0cfd(0x17e)](_0x15726d,_0x55be00);}for(const [_0x51f413,_0x1bca78]of _0x1213a5){if(_0x1bca78[_0x5c0cfd(0x150)]>0x1)throw hookDirectoryError('HOOK_DIRECTORY_AMBIGUOUS',_0x5c0cfd(0x175)+_0x51f413+'\x22\x20resolves\x20to\x20multiple\x20Datasets.',{'directoryName':_0x51f413,'datasetCodes':[..._0x1bca78]});}}export function assertUnambiguousHookAliases(_0x4f592c){const _0x5e2240=a275_0x241c,_0x44ee80=[..._0x4f592c],_0x2fb12c=new Map(),_0x5853d7=new Map();for(const {alias:_0xebe7d3,datasetCode:_0x4a24d2}of _0x44ee80){const _0xd0573=directoryIdentity(_0xebe7d3),_0x38f639=directoryIdentity(_0x4a24d2),_0x18fc9d=_0x2fb12c[_0x5e2240(0x16b)](_0xd0573)??new Set();_0x18fc9d['add'](_0x4a24d2),_0x2fb12c[_0x5e2240(0x17e)](_0xd0573,_0x18fc9d);const _0x3e20aa=_0x5853d7[_0x5e2240(0x16b)](_0x38f639)??new Set();_0x3e20aa['add'](_0xebe7d3),_0x5853d7['set'](_0x38f639,_0x3e20aa);}for(const [_0xdd7c61,_0x5e6160]of _0x2fb12c){if(_0x5e6160[_0x5e2240(0x150)]>0x1)throw hookDirectoryError('HOOK_ALIAS_AMBIGUOUS',_0x5e2240(0x15a)+_0xdd7c61+_0x5e2240(0x16d),{'alias':_0xdd7c61,'datasetCodes':[..._0x5e6160]});}for(const [_0x152304,_0xaf481c]of _0x5853d7){if(_0xaf481c[_0x5e2240(0x150)]>0x1)throw hookDirectoryError(_0x5e2240(0x182),_0x5e2240(0x184)+_0x152304+'\x22\x20has\x20multiple\x20SDK\x20aliases\x20and\x20has\x20no\x20unique\x20HOOK\x20directory.',{'datasetCode':_0x152304,'aliases':[..._0xaf481c]});}}export function buildHookDirectoryIndexes(_0x1e95d0,_0x233d81=[]){const _0x3cbdfe=a275_0x241c,_0x4a79f8=[..._0x233d81];assertUnambiguousHookDirectoryMappings(_0x4a79f8[_0x3cbdfe(0x181)](([_0x1d6f0a,_0x1a83aa])=>({'alias':_0x1d6f0a,'datasetCode':_0x1a83aa})));const _0x44c464=new Map(),_0x36ad71=new Map();for(const _0x55aa9c of _0x1e95d0){appendUnique(_0x44c464,directoryIdentity(_0x55aa9c[_0x3cbdfe(0x17c)]),_0x55aa9c,_0xf3b962=>_0xf3b962[_0x3cbdfe(0x17c)]);}for(const [_0x24028b,_0x34df3c]of _0x4a79f8){appendUnique(_0x36ad71,directoryIdentity(_0x24028b),_0x34df3c,_0x3105d4=>_0x3105d4);}return{'datasetCodeToDatasets':_0x44c464,'aliasToDatasetCodes':_0x36ad71};}function a275_0x241c(_0x5e984b,_0x239487){_0x5e984b=_0x5e984b-0x14d;const _0x5e1b83=a275_0x5e1b();let _0x241c10=_0x5e1b83[_0x5e984b];return _0x241c10;}export function resolvePushHookDirectory(_0xbabc3e,_0x21e688,_0x3b6846){const _0x487e66=a275_0x241c,_0x253d03=directoryIdentity(_0xbabc3e),_0x59053e=_0x3b6846[_0x487e66(0x163)][_0x487e66(0x16b)](_0x253d03)??[],_0x29c46f=_0x3b6846[_0x487e66(0x172)][_0x487e66(0x16b)](_0x253d03)??[],_0x24e58b=new Set([..._0x59053e[_0x487e66(0x181)](_0x3ae0a6=>_0x3ae0a6[_0x487e66(0x17c)]),..._0x29c46f]);if(_0x24e58b['size']>0x1)throw hookDirectoryError(_0x487e66(0x176),'HOOK\x20directory\x20\x22'+_0xbabc3e+_0x487e66(0x169),{'directoryName':_0xbabc3e,'datasetCodes':[..._0x24e58b]});const _0x16d251=[..._0x24e58b][0x0];if(_0x16d251&&_0x21e688?.[_0x487e66(0x16c)]&&_0x16d251!==_0x21e688['datasetCode'])throw hookDirectoryError(_0x487e66(0x188),_0x487e66(0x175)+_0xbabc3e+'\x22\x20changed\x20mapping\x20from\x20Dataset\x20\x22'+_0x21e688[_0x487e66(0x16c)]+_0x487e66(0x16a)+_0x16d251+'\x22.',{'directoryName':_0xbabc3e,'datasetCode':_0x16d251,'lockedDatasetCode':_0x21e688[_0x487e66(0x16c)]});const _0x24cb5c=_0x16d251?findDatasetByCode(_0x3b6846,_0x16d251):undefined,_0x4bff43=!!_0x16d251&&_0x29c46f[_0x487e66(0x158)](_0x16d251);if(_0x24cb5c)return{'dataset':_0x24cb5c,'datasetCode':_0x24cb5c['code'],..._0x4bff43?{'alias':_0xbabc3e}:{},'directoryProtocol':_0x4bff43?'alias':_0x487e66(0x16c),'warnings':[]};const _0x223298=_0x21e688?.[_0x487e66(0x16c)];if(_0x223298){const _0x39e609=findDatasetByCode(_0x3b6846,_0x223298);if(_0x39e609)return{'dataset':_0x39e609,'datasetCode':_0x39e609[_0x487e66(0x17c)],..._0x21e688[_0x487e66(0x17b)]?{'alias':_0x21e688['alias']}:{},'directoryProtocol':_0x21e688['alias']?_0x487e66(0x17b):_0x487e66(0x16c),'warnings':[]};}if(_0x16d251||_0x223298){const _0x584b0f=_0x16d251??_0x223298;throw hookDirectoryError(_0x487e66(0x161),_0x487e66(0x175)+_0xbabc3e+_0x487e66(0x178),{'directoryName':_0xbabc3e,'datasetCode':_0x584b0f});}throw hookDirectoryError(_0x487e66(0x183),_0x487e66(0x166)+_0xbabc3e+_0x487e66(0x186),{'directoryName':_0xbabc3e});}export function preflightPushHookDirectories(_0x233402,_0x17c2a7,_0x2478f6,_0x4186a4){const _0x237510=a275_0x241c,_0x13785a=new Map(),_0x42682a=new Map();for(const _0x16dfa5 of _0x233402){if(_0x16dfa5[_0x237510(0x15e)]!==_0x237510(0x15c))continue;const _0x38b12a=_0x16dfa5[_0x237510(0x17b)];if(!_0x38b12a)throw hookDirectoryError(_0x237510(0x183),_0x237510(0x160)+_0x16dfa5[_0x237510(0x157)],{'lockKey':_0x16dfa5[_0x237510(0x157)]});let _0x186834;try{_0x186834=resolvePushHookDirectory(_0x38b12a,_0x17c2a7[_0x237510(0x14f)][_0x16dfa5[_0x237510(0x157)]],_0x2478f6);}catch(_0x4ddb01){if(_0x4186a4&&_0x4ddb01 instanceof CliError&&[_0x237510(0x161),_0x237510(0x183)][_0x237510(0x158)](_0x4ddb01[_0x237510(0x17c)])){_0x4186a4['set'](_0x16dfa5[_0x237510(0x157)],_0x4ddb01[_0x237510(0x14e)]);continue;}throw _0x4ddb01;}_0x13785a['set'](_0x16dfa5['lockKey'],_0x186834);const _0x3dd10a=_0x42682a[_0x237510(0x16b)](_0x186834[_0x237510(0x16c)])??new Set();_0x3dd10a[_0x237510(0x155)](_0x38b12a),_0x42682a[_0x237510(0x17e)](_0x186834[_0x237510(0x16c)],_0x3dd10a);}for(const [_0x7ac124,_0x45ebc5]of _0x42682a){if(_0x45ebc5[_0x237510(0x150)]>0x1)throw hookDirectoryError(_0x237510(0x159),_0x237510(0x184)+_0x7ac124+_0x237510(0x154)+[..._0x45ebc5][_0x237510(0x177)](',\x20')+'.',{'datasetCode':_0x7ac124,'directories':[..._0x45ebc5]});}return _0x13785a;}function a275_0x5e1b(){const _0x175068=['75weeNAr','427854qgJysZ','305344kiVOhR','entries','aliasToDatasetCodes','push','toLowerCase','HOOK\x20directory\x20\x22','HOOK_DIRECTORY_AMBIGUOUS','join','\x22\x20points\x20to\x20a\x20Dataset\x20that\x20is\x20absent\x20from\x20current\x20platform\x20metadata.','name','44WHZUxD','alias','code','some','set','\x22\x20has\x20multiple\x20tracked\x20HOOK\x20directories:\x20','\x22\x20differs\x20only\x20by\x20case\x20from\x20another\x20Dataset\x20code.','map','HOOK_ALIAS_AMBIGUOUS','HOOK_DIRECTORY_UNRESOLVED','Dataset\x20\x22','18rYSphk','\x22\x20to\x20a\x20Dataset\x20alias\x20or\x20datasetCode.','4124296NyWXHO','HOOK_MAPPING_DRIFT','2716110NqNRWq','message','functions','size','values','27376NnYpLp','NFC','\x22\x20is\x20represented\x20by\x20multiple\x20HOOK\x20directories:\x20','add','23259fkFSDx','lockKey','includes','HOOK_DUPLICATE_DIRECTORIES','SDK\x20alias\x20\x22','split','HOOK','Dataset\x20code\x20\x22','type','details','Incomplete\x20HOOK\x20path:\x20','HOOK_DATASET_NOT_FOUND','HOOK_DATASET_CODE_AMBIGUOUS','datasetCodeToDatasets','12gpptUc','normalize','Cannot\x20resolve\x20HOOK\x20directory\x20\x22','length','49002KeNpQK','\x22\x20collides\x20across\x20datasetCode\x20and\x20alias\x20namespaces.','\x22\x20to\x20\x22','get','datasetCode','\x22\x20resolves\x20to\x20multiple\x20Datasets.'];a275_0x5e1b=function(){return _0x175068;};return a275_0x5e1b();}export function hookDirectoryError(_0x335a3c,_0x3da091,_0x125486){const _0x10515a=a275_0x241c,_0xe41e84=new CliError(_0x335a3c,0x2,_0x335a3c+':\x20'+_0x3da091);return _0xe41e84[_0x10515a(0x15f)]=_0x125486,_0xe41e84;}function findDatasetByCode(_0x2fba41,_0xe8dc60){const _0x256926=a275_0x241c,_0x1987be=_0x2fba41['datasetCodeToDatasets'][_0x256926(0x16b)](directoryIdentity(_0xe8dc60))??[];if(_0x1987be[_0x256926(0x167)]>0x1)throw hookDirectoryError(_0x256926(0x162),_0x256926(0x15d)+_0xe8dc60+_0x256926(0x180),{'datasetCode':_0xe8dc60,'candidates':_0x1987be[_0x256926(0x181)](datasetFact)});return _0x1987be[0x0];}function directoryIdentity(_0x50ff33){const _0x27f577=a275_0x241c;return _0x50ff33[_0x27f577(0x165)](_0x27f577(0x153))[_0x27f577(0x174)]();}function appendUnique(_0x7ebd73,_0x55e3a7,_0x5b3c60,_0x29732c){const _0x5eac03=a275_0x241c,_0x8af5f4=_0x7ebd73[_0x5eac03(0x16b)](_0x55e3a7)??[];!_0x8af5f4[_0x5eac03(0x17d)](_0x19da03=>_0x29732c(_0x19da03)===_0x29732c(_0x5b3c60))&&_0x8af5f4[_0x5eac03(0x173)](_0x5b3c60),_0x7ebd73[_0x5eac03(0x17e)](_0x55e3a7,_0x8af5f4);}function datasetFact(_0x7ee948){const _0x57e86a=a275_0x241c;return{'id':_0x7ee948['id'],'name':_0x7ee948[_0x57e86a(0x179)],'datasetCode':_0x7ee948['code']};}
|
package/lib/core/bff/lock.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2c7731,_0x57577f){const _0x496d89=a276_0x42ad,_0x454afd=_0x2c7731();while(!![]){try{const _0x18cab1=parseInt(_0x496d89(0x12f))/0x1*(-parseInt(_0x496d89(0x138))/0x2)+parseInt(_0x496d89(0x130))/0x3+parseInt(_0x496d89(0x13c))/0x4+-parseInt(_0x496d89(0x135))/0x5+parseInt(_0x496d89(0x139))/0x6+-parseInt(_0x496d89(0x13d))/0x7*(-parseInt(_0x496d89(0x126))/0x8)+-parseInt(_0x496d89(0x12e))/0x9*(parseInt(_0x496d89(0x13a))/0xa);if(_0x18cab1===_0x57577f)break;else _0x454afd['push'](_0x454afd['shift']());}catch(_0x4aacb1){_0x454afd['push'](_0x454afd['shift']());}}}(a276_0x5d64,0x7e5de));function a276_0x5d64(){const _0x350e1d=['current\x20\x22','utf8','object','2084045AFkXKe','scriptsRoot',':\x20scriptsRoot\x20mismatch\x20—\x20','596bDNaVP','6078414ufhEnE','20914770EsBdxM','code','3435188YiqCXS','321916APsMIp','40QxMdVe','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','\x22\x20vs\x20lock\x20\x22','ENOENT','lastSync','apps','functions','Failed\x20to\x20read\x20Backend\x20Function\x20lock\x20file:\x20','9kbwBjA','364SJfyRf','3097650NXYAbC','parse'];a276_0x5d64=function(){return _0x350e1d;};return a276_0x5d64();}function a276_0x42ad(_0x1c3f9f,_0x321656){_0x1c3f9f=_0x1c3f9f-0x126;const _0x5d640e=a276_0x5d64();let _0x42ada7=_0x5d640e[_0x1c3f9f];return _0x42ada7;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x41e7cd,_0x10bd92,_0xa24ec0,_0x4b7d01){const _0x388ac9=a276_0x42ad,_0x5c1e8b={'apps':_0x41e7cd[_0x388ac9(0x12b)]&&typeof _0x41e7cd[_0x388ac9(0x12b)]==='object'?_0x41e7cd[_0x388ac9(0x12b)]:{}};let _0xfcda2f=_0x5c1e8b[_0x388ac9(0x12b)][_0x10bd92];if(!_0xfcda2f)return _0xfcda2f={'scriptsRoot':_0xa24ec0,'lastSync':'','functions':{}},_0x5c1e8b['apps'][_0x10bd92]=_0xfcda2f,{'lockData':_0x5c1e8b,'appLock':_0xfcda2f};if(!_0xfcda2f['scriptsRoot'])_0xfcda2f['scriptsRoot']=_0xa24ec0;else{if(_0xfcda2f[_0x388ac9(0x136)]!==_0xa24ec0)throw new Error(_0x4b7d01+_0x388ac9(0x137)+(_0x388ac9(0x132)+_0xa24ec0+_0x388ac9(0x128)+_0xfcda2f[_0x388ac9(0x136)]+'\x22.\x20')+_0x388ac9(0x127));}return!_0xfcda2f[_0x388ac9(0x12c)]&&(_0xfcda2f[_0x388ac9(0x12c)]={}),!_0xfcda2f[_0x388ac9(0x12a)]&&(_0xfcda2f[_0x388ac9(0x12a)]=''),{'lockData':_0x5c1e8b,'appLock':_0xfcda2f};}export async function readBffLockFile(_0x39cb0b){const _0x56c7e8=a276_0x42ad;try{const _0x2cfd3b=await readFile(_0x39cb0b,_0x56c7e8(0x133)),_0xe7555f=JSON[_0x56c7e8(0x131)](_0x2cfd3b);return{'apps':_0xe7555f[_0x56c7e8(0x12b)]&&typeof _0xe7555f[_0x56c7e8(0x12b)]===_0x56c7e8(0x134)?_0xe7555f[_0x56c7e8(0x12b)]:{}};}catch(_0x4a3c6b){if(_0x4a3c6b[_0x56c7e8(0x13b)]===_0x56c7e8(0x129))return null;throw new Error(_0x56c7e8(0x12d)+String(_0x4a3c6b));}}export async function writeBffLockFile(_0x204d9c,_0x4d4c74){const _0x551661=a276_0x42ad;await mkdir(dirname(_0x204d9c),{'recursive':!![]}),await writeFile(_0x204d9c,JSON['stringify'](_0x4d4c74,null,0x2),_0x551661(0x133));}
|
package/lib/core/bff/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a278_0x2b75e9=a278_0x4f58;(function(_0x31e6ad,_0x48aafa){const _0x115ace=a278_0x4f58,_0x46a9d8=_0x31e6ad();while(!![]){try{const _0x5c7870=-parseInt(_0x115ace(0x85))/0x1+-parseInt(_0x115ace(0x80))/0x2+-parseInt(_0x115ace(0x8b))/0x3+-parseInt(_0x115ace(0x8d))/0x4+-parseInt(_0x115ace(0x87))/0x5*(-parseInt(_0x115ace(0x98))/0x6)+-parseInt(_0x115ace(0x82))/0x7*(parseInt(_0x115ace(0x8e))/0x8)+parseInt(_0x115ace(0x7f))/0x9*(parseInt(_0x115ace(0x94))/0xa);if(_0x5c7870===_0x48aafa)break;else _0x46a9d8['push'](_0x46a9d8['shift']());}catch(_0x417a9e){_0x46a9d8['push'](_0x46a9d8['shift']());}}}(a278_0x1d90,0xefa97));export const DEFAULT_BFF_SCRIPT_DESCRIPTION='TODO:\x20补充脚本功能描述';function a278_0x4f58(_0x1f0780,_0xeb5cdd){_0x1f0780=_0x1f0780-0x7f;const _0x1d9086=a278_0x1d90();let _0x4f58e8=_0x1d9086[_0x1f0780];return _0x4f58e8;}const LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION=a278_0x2b75e9(0x86);export function snakeToCamel(_0x3ed616){const _0x5df705=a278_0x2b75e9;return _0x3ed616[_0x5df705(0x8f)]()['replace'](/_([a-z])/g,(_0x337121,_0xac0917)=>_0xac0917['toUpperCase']());}export function findHookLocationByRemoteId(_0x18845a,_0x567ff5){const _0x3e62e4=a278_0x2b75e9;if(!_0x567ff5)return undefined;for(const [_0x4eb341,_0x55c084]of Object[_0x3e62e4(0x8c)](_0x18845a)){if(_0x55c084[_0x3e62e4(0x88)]===_0x567ff5&&_0x55c084[_0x3e62e4(0x8a)]&&_0x55c084['operationType']&&_0x55c084[_0x3e62e4(0x96)]){const _0x4f3aab=_0x4eb341[_0x3e62e4(0x92)]('/')[0x1];return{'alias':_0x4f3aab||_0x55c084['alias'],'datasetCode':_0x55c084[_0x3e62e4(0x8a)],'operationType':_0x55c084[_0x3e62e4(0x89)],'functionNode':_0x55c084[_0x3e62e4(0x96)]};}}return undefined;}function a278_0x1d90(){const _0x8ce415=['1542454yNASEJ','TODO:\x20add\x20script\x20description','1103555RJgXPF','remoteId','operationType','datasetCode','2244051YyfFVI','entries','3426496VNJCWo','1375768vJNzeF','toLowerCase','before','after','split','match','20644620LlLFbp','startsWith','functionNode','trim','6gkleZv','27nCdova','2850984XFuCKS','test','35IzjesI','map','some'];a278_0x1d90=function(){return _0x8ce415;};return a278_0x1d90();}export function extractScriptDescription(_0x5d276d){const _0x51a8b1=a278_0x2b75e9,_0x31641d=_0x5d276d[_0x51a8b1(0x93)](/^\s*\/\*\*([\s\S]*?)\*\//);if(!_0x31641d?.[0x1])return undefined;const _0x20d8fe=_0x31641d[0x1],_0x29f25d=_0x5d90a5=>{const _0x222ee8=_0x5d90a5?.['trim']();if(!_0x222ee8||_0x222ee8===DEFAULT_BFF_SCRIPT_DESCRIPTION||_0x222ee8===LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION)return undefined;return _0x222ee8;},_0x30c565=_0x20d8fe['match'](/^\s*\*\s*\[\s*脚本描述\s*]\s*(.+)$/m);if(_0x30c565)return _0x29f25d(_0x30c565[0x1]);const _0x31615c=_0x20d8fe['split'](/\r?\n/)[_0x51a8b1(0x83)](_0x5efba2=>_0x5efba2['replace'](/^\s*\*\s?/,'')[_0x51a8b1(0x97)]()),_0x3dc1a5=_0x31615c[_0x51a8b1(0x84)](_0x28ce81=>/^\[\s*脚本类型\s*]\s*\S+/[_0x51a8b1(0x81)](_0x28ce81))&&_0x31615c[_0x51a8b1(0x84)](_0x462a33=>/^\[\s*脚本名称\s*]\s*\S+/['test'](_0x462a33));if(!_0x3dc1a5)return undefined;for(const _0x1f73f7 of _0x31615c){if(!_0x1f73f7||_0x1f73f7[_0x51a8b1(0x95)]('@')||/^\[[^\]]+]\s*/[_0x51a8b1(0x81)](_0x1f73f7))continue;return _0x29f25d(_0x1f73f7);}return undefined;}export function isValidBffFunctionName(_0x517817){const _0x3a4ce3=a278_0x2b75e9;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x3a4ce3(0x81)](_0x517817);}export function normalizeHookFunctionNode(_0x45719c){const _0x4457fb=a278_0x2b75e9;if(!_0x45719c)return undefined;const _0x5789f4=_0x45719c[_0x4457fb(0x97)]()[_0x4457fb(0x8f)]();if(_0x5789f4===_0x4457fb(0x90)||_0x5789f4===_0x4457fb(0x91))return _0x5789f4;return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a279_0xabc2(_0x5d532b,_0x5650c3){_0x5d532b=_0x5d532b-0x15c;const _0xfb3a68=a279_0xfb3a();let _0xabc24=_0xfb3a68[_0x5d532b];return _0xabc24;}const a279_0x4b4867=a279_0xabc2;(function(_0x3f9ebc,_0xa1109c){const _0x3a0d6a=a279_0xabc2,_0x5ef314=_0x3f9ebc();while(!![]){try{const _0x44b99c=-parseInt(_0x3a0d6a(0x168))/0x1*(parseInt(_0x3a0d6a(0x15e))/0x2)+parseInt(_0x3a0d6a(0x15d))/0x3*(-parseInt(_0x3a0d6a(0x166))/0x4)+parseInt(_0x3a0d6a(0x160))/0x5+parseInt(_0x3a0d6a(0x164))/0x6*(parseInt(_0x3a0d6a(0x15f))/0x7)+-parseInt(_0x3a0d6a(0x15c))/0x8+-parseInt(_0x3a0d6a(0x165))/0x9+-parseInt(_0x3a0d6a(0x163))/0xa*(-parseInt(_0x3a0d6a(0x162))/0xb);if(_0x44b99c===_0xa1109c)break;else _0x5ef314['push'](_0x5ef314['shift']());}catch(_0x562a68){_0x5ef314['push'](_0x5ef314['shift']());}}}(a279_0xfb3a,0xe549c));export const CROSS_DB_RELATION_PATHS={'list':a279_0x4b4867(0x167),'create':a279_0x4b4867(0x161),'update':'/smartapi/cross-db-relation/update','delete':'/smartapi/cross-db-relation/delete'};function a279_0xfb3a(){const _0x38894f=['4764044ZSNpoK','/smartapi/cross-db-relation/query','2161JTTCmc','6692232xZuutF','3QPBGQT','1120psQAPf','784iMsuaf','2501405BpBSGt','/smartapi/cross-db-relation/create','1111lFbNsd','408040bCKTOQ','25728tnqhcJ','8323893zChofw'];a279_0xfb3a=function(){return _0x38894f;};return a279_0xfb3a();}
|
package/lib/core/db-resolver.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xf52464,_0x3a04f7){const _0x23673a=a280_0x371d,_0x176761=_0xf52464();while(!![]){try{const _0x4b95dd=parseInt(_0x23673a(0x143))/0x1+parseInt(_0x23673a(0x152))/0x2+-parseInt(_0x23673a(0x156))/0x3+-parseInt(_0x23673a(0x15b))/0x4+-parseInt(_0x23673a(0x15f))/0x5*(parseInt(_0x23673a(0x15c))/0x6)+-parseInt(_0x23673a(0x149))/0x7+-parseInt(_0x23673a(0x150))/0x8*(-parseInt(_0x23673a(0x148))/0x9);if(_0x4b95dd===_0x3a04f7)break;else _0x176761['push'](_0x176761['shift']());}catch(_0x4eb00b){_0x176761['push'](_0x176761['shift']());}}}(a280_0x55c4,0x22f9c));import{listDatasets}from'../core/api-client.js';function a280_0x55c4(){const _0x87cb42=['db-','get','find','551772HfKJTF','filter','map','\x22.\x20Available:\x20','dbId','183336jowjnD','256458WgKrxp','includes','dbtableConfig','5SejeWv','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','108742zETdBq','join','.\x20Be\x20more\x20specific.','length','entries','63oQsEbU','628789zMmNOq','set','has','dbName','\x22\x20matches\x20multiple\x20databases:\x20','\x22\x20under\x20app\x20\x22','toLowerCase','275816vgEaTY','No\x20database\x20matching\x20\x22','311014DebpVb'];a280_0x55c4=function(){return _0x87cb42;};return a280_0x55c4();}const cache=new Map();export async function listDatabases(_0x3743bb){const _0x349bab=a280_0x371d;if(cache[_0x349bab(0x14b)](_0x3743bb))return cache[_0x349bab(0x154)](_0x3743bb);const _0x156291=await listDatasets(_0x3743bb),_0xc4482a=new Map();for(const _0x56ce03 of _0x156291){const _0x62da84=_0x56ce03[_0x349bab(0x15e)];_0x62da84?.['dbId']!=null&&_0xc4482a[_0x349bab(0x14a)](_0x62da84[_0x349bab(0x15a)],_0x62da84[_0x349bab(0x14c)]??_0x349bab(0x153)+_0x62da84[_0x349bab(0x15a)]);}const _0x242ece=[..._0xc4482a[_0x349bab(0x147)]()][_0x349bab(0x158)](([_0x5bb6a1,_0x41475c])=>({'dbId':_0x5bb6a1,'dbName':_0x41475c}));return cache['set'](_0x3743bb,_0x242ece),_0x242ece;}export async function resolveDb(_0x4cedb9,_0x4c9fd2){const _0x3a2b2d=a280_0x371d,_0x222864=await listDatabases(_0x4cedb9);if(_0x222864[_0x3a2b2d(0x146)]===0x0)return{'resolved':[],'error':'No\x20linked\x20databases\x20found\x20under\x20app\x20\x22'+_0x4cedb9+'\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.'};if(!_0x4c9fd2)return{'resolved':_0x222864};const _0x4547fd=Number(_0x4c9fd2);if(!Number['isNaN'](_0x4547fd)){const _0x198a8b=_0x222864['find'](_0xfd1d9=>_0xfd1d9[_0x3a2b2d(0x15a)]===_0x4547fd);if(_0x198a8b)return{'resolved':[_0x198a8b]};}const _0x556886=_0x4c9fd2['toLowerCase'](),_0x557ed3=_0x222864[_0x3a2b2d(0x157)](_0xab3142=>_0xab3142[_0x3a2b2d(0x14c)][_0x3a2b2d(0x14f)]()[_0x3a2b2d(0x15d)](_0x556886));if(_0x557ed3['length']>0x0)return{'resolved':_0x557ed3};const _0x1f07bd=_0x222864[_0x3a2b2d(0x158)](_0xb05558=>_0xb05558['dbName']+'\x20('+_0xb05558['dbId']+')')[_0x3a2b2d(0x144)](',\x20');return{'resolved':[],'error':_0x3a2b2d(0x151)+_0x4c9fd2+_0x3a2b2d(0x14e)+_0x4cedb9+_0x3a2b2d(0x159)+_0x1f07bd+'.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.'};}export async function resolveOneDb(_0x241fe0,_0x42d3e8){const _0x56e630=a280_0x371d,{resolved:_0x408006,error:_0x2ca84b}=await resolveDb(_0x241fe0,_0x42d3e8);if(_0x2ca84b)return{'db':null,'error':_0x2ca84b};if(_0x408006[_0x56e630(0x146)]===0x1)return{'db':_0x408006[0x0]};if(!_0x42d3e8){const _0x297403=_0x408006[_0x56e630(0x158)](_0x511493=>_0x511493[_0x56e630(0x14c)]+'\x20('+_0x511493[_0x56e630(0x15a)]+')')[_0x56e630(0x144)](',\x20');return{'db':null,'error':_0x56e630(0x160)+_0x297403};}const _0x50d8e0=_0x408006[_0x56e630(0x158)](_0x56e9c9=>_0x56e9c9[_0x56e630(0x14c)]+'\x20('+_0x56e9c9[_0x56e630(0x15a)]+')')[_0x56e630(0x144)](',\x20');return{'db':null,'error':'\x22'+_0x42d3e8+_0x56e630(0x14d)+_0x50d8e0+_0x56e630(0x145)};}function a280_0x371d(_0x359105,_0x195aec){_0x359105=_0x359105-0x143;const _0x55c45e=a280_0x55c4();let _0x371d12=_0x55c45e[_0x359105];return _0x371d12;}export async function getDbName(_0x2288f8,_0x1bf69a){const _0x16b773=a280_0x371d,_0x1e3c62=await listDatabases(_0x2288f8);return _0x1e3c62[_0x16b773(0x155)](_0x9889f2=>_0x9889f2['dbId']===_0x1bf69a)?.[_0x16b773(0x14c)];}
|
package/lib/core/flow-config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a281_0x202121=a281_0x3a76;(function(_0x2ef189,_0x301b01){const _0x14d854=a281_0x3a76,_0x1bed85=_0x2ef189();while(!![]){try{const _0x416852=-parseInt(_0x14d854(0x1d6))/0x1*(-parseInt(_0x14d854(0x1cb))/0x2)+parseInt(_0x14d854(0x1d8))/0x3*(parseInt(_0x14d854(0x1cf))/0x4)+parseInt(_0x14d854(0x249))/0x5+parseInt(_0x14d854(0x1e3))/0x6+-parseInt(_0x14d854(0x29b))/0x7*(parseInt(_0x14d854(0x306))/0x8)+parseInt(_0x14d854(0x257))/0x9*(-parseInt(_0x14d854(0x2b6))/0xa)+-parseInt(_0x14d854(0x2c7))/0xb;if(_0x416852===_0x301b01)break;else _0x1bed85['push'](_0x1bed85['shift']());}catch(_0x21ed11){_0x1bed85['push'](_0x1bed85['shift']());}}}(a281_0x462f,0x8ba68));import{randomUUID}from'node:crypto';import{chmod,link,readFile,rename,stat,unlink,writeFile}from'node:fs/promises';import{resolve}from'node:path';export const FLOW_CONFIG_JSON_SCHEMA={'$schema':a281_0x202121(0x1a8),'$id':a281_0x202121(0x1db),'title':a281_0x202121(0x207),'type':a281_0x202121(0x1bd),'required':[a281_0x202121(0x2ba),'flowType',a281_0x202121(0x23e)],'$defs':{'userId':{'anyOf':[{'type':'string','minLength':0x1},{'type':a281_0x202121(0x200),'minimum':0x1}]},'position':{'type':'object','required':['x','y'],'properties':{'x':{'type':a281_0x202121(0x259),'minimum':0x0},'y':{'type':a281_0x202121(0x259),'minimum':0x0}},'additionalProperties':!![]},'timeAmount':{'type':a281_0x202121(0x1bd),'required':[a281_0x202121(0x206),a281_0x202121(0x250)],'properties':{'value':{'type':a281_0x202121(0x200),'minimum':0x1},'unit':{'enum':[a281_0x202121(0x1a9),a281_0x202121(0x236),a281_0x202121(0x1fd),a281_0x202121(0x1c8)]}},'additionalProperties':!![]},'flowNode':{'type':'object','required':['id','type',a281_0x202121(0x2a1),a281_0x202121(0x1c2)],'properties':{'id':{'type':a281_0x202121(0x2a3),'pattern':'^[A-Za-z_][A-Za-z0-9_]*$'},'type':{'enum':[a281_0x202121(0x273),'END',a281_0x202121(0x2b0),a281_0x202121(0x2dc),a281_0x202121(0x1e8),a281_0x202121(0x237)]},'name':{'type':'string','minLength':0x1},'path':{'type':'string','minLength':0x1},'position':{'$ref':a281_0x202121(0x24b)},'approvalMode':{'enum':[a281_0x202121(0x2cd),a281_0x202121(0x1ee),a281_0x202121(0x233)]},'taskMode':{'enum':[a281_0x202121(0x2b0),'HANDLE']},'assignee':{'type':a281_0x202121(0x1bd),'required':[a281_0x202121(0x307)],'properties':{'strategy':{'enum':['FIXED','ROLE']},'userIds':{'type':a281_0x202121(0x1e5),'minItems':0x1,'items':{'$ref':a281_0x202121(0x255)}},'roleId':{'anyOf':[{'type':'integer','minimum':0x1},{'type':a281_0x202121(0x2a3),'pattern':'^[1-9][0-9]*$'}]}},'additionalProperties':!![]},'transferCandidates':{'type':a281_0x202121(0x1bd),'required':['strategy',a281_0x202121(0x2d9)],'properties':{'strategy':{'const':a281_0x202121(0x28d)},'userIds':{'type':a281_0x202121(0x1e5),'minItems':0x1,'items':{'$ref':a281_0x202121(0x255)}}},'additionalProperties':!![]},'sequential':{'type':a281_0x202121(0x2c0)},'result':{'enum':[a281_0x202121(0x1d4),a281_0x202121(0x22c)]},'scriptName':{'type':a281_0x202121(0x2a3),'minLength':0x1},'resultVariable':{'type':'string','pattern':a281_0x202121(0x1c0)},'async':{'type':a281_0x202121(0x1bd),'properties':{'enabled':{'type':'boolean'},'retryCount':{'type':a281_0x202121(0x200),'minimum':0x1,'maximum':0xa},'retryInterval':{'$ref':'#/$defs/timeAmount'}},'additionalProperties':!![]},'timeout':{'type':a281_0x202121(0x1bd),'properties':{'enabled':{'type':a281_0x202121(0x2c0)},'duration':{'$ref':a281_0x202121(0x231)},'action':{'enum':[a281_0x202121(0x1ca),a281_0x202121(0x2bc),a281_0x202121(0x246)]},'interrupting':{'type':a281_0x202121(0x2c0)},'scriptName':{'type':a281_0x202121(0x2a3),'minLength':0x1},'resultVariable':{'type':a281_0x202121(0x2a3),'pattern':a281_0x202121(0x1c0)}},'additionalProperties':!![]},'cc':{'type':a281_0x202121(0x1bd),'required':[a281_0x202121(0x1b2)],'properties':{'recipientUserIds':{'type':'array','minItems':0x1,'maxItems':0x64,'uniqueItems':!![],'items':{'type':a281_0x202121(0x2a3),'minLength':0x1}},'visible':{'type':'array','uniqueItems':!![],'items':{'type':'string','minLength':0x1}},'readSources':![]},'additionalProperties':!![]},'config':{'type':'object','required':[a281_0x202121(0x1af),'template'],'properties':{'version':{'enum':['v1']},'configCode':{'type':a281_0x202121(0x2a3),'minLength':0x1},'failurePolicy':{'enum':[a281_0x202121(0x2ef),a281_0x202121(0x22a)]},'template':{'type':a281_0x202121(0x1bd),'required':[a281_0x202121(0x2b3),a281_0x202121(0x1e9)],'properties':{'title':{'type':a281_0x202121(0x2a3),'minLength':0x1},'summary':{'type':a281_0x202121(0x2a3),'minLength':0x1},'detailMarkdown':{'type':'string'},'facts':{'type':a281_0x202121(0x1e5),'maxItems':0x8,'items':{'type':a281_0x202121(0x1bd),'required':['label',a281_0x202121(0x206)],'properties':{'label':{'type':a281_0x202121(0x2a3),'minLength':0x1},'value':{'type':a281_0x202121(0x2a3),'minLength':0x1}},'additionalProperties':!![]}},'actions':{'type':a281_0x202121(0x1e5),'maxItems':0x2,'items':{'type':a281_0x202121(0x1bd),'required':[a281_0x202121(0x2a9),a281_0x202121(0x22d)],'properties':{'text':{'type':a281_0x202121(0x2a3),'minLength':0x1},'url':{'type':a281_0x202121(0x2a3),'minLength':0x1}},'additionalProperties':!![]}}},'additionalProperties':!![]},'recipients':{'type':a281_0x202121(0x1e5),'items':{'type':a281_0x202121(0x1bd),'required':[a281_0x202121(0x213),a281_0x202121(0x206)],'properties':{'type':{'enum':[a281_0x202121(0x261),a281_0x202121(0x1e4),a281_0x202121(0x210)]},'value':{'type':'string','minLength':0x1},'role':{'enum':['TO','CC',a281_0x202121(0x2d3)]}},'additionalProperties':!![]}}},'additionalProperties':!![]},'form':![],'formPermission':![]},'additionalProperties':!![]},'flowEdge':{'type':a281_0x202121(0x1bd),'properties':{'id':{'type':'string','pattern':a281_0x202121(0x1c0)},'source':{'type':a281_0x202121(0x2a3),'minLength':0x1},'target':{'type':a281_0x202121(0x2a3),'minLength':0x1},'sourceNodeId':{'type':a281_0x202121(0x2a3),'minLength':0x1},'targetNodeId':{'type':a281_0x202121(0x2a3),'minLength':0x1},'conditionType':{'enum':['ALWAYS',a281_0x202121(0x1d4),a281_0x202121(0x22c),a281_0x202121(0x1cc)]},'expression':{'type':'string'},'defaultFlow':{'type':'boolean'},'name':{'type':a281_0x202121(0x2a3)},'waypoints':{'type':'array','items':{'$ref':'#/$defs/position'}}},'allOf':[{'anyOf':[{'required':['source']},{'required':['sourceNodeId']}]},{'anyOf':[{'required':[a281_0x202121(0x235)]},{'required':[a281_0x202121(0x2e8)]}]}],'additionalProperties':!![]}},'properties':{'id':![],'appCode':![],'flowName':{'type':'string','minLength':0x1},'flowDesc':{'type':a281_0x202121(0x2a3)},'flowType':{'enum':[a281_0x202121(0x1f5),'INDEPENDENT_FLOW']},'datasetCode':{'type':a281_0x202121(0x2a3),'minLength':0x1},'pageId':{'type':a281_0x202121(0x200)},'templateName':![],'flowJson':{'type':'object','required':[a281_0x202121(0x1b6),a281_0x202121(0x30b)],'properties':{'flowKey':![],'flowCode':![],'flowName':![],'bindDatasetCode':![],'datasetCode':![],'appCode':![],'pageId':![],'templateName':![],'schemaVersion':{'type':a281_0x202121(0x2a3),'const':a281_0x202121(0x205),'description':'Accepted\x20as\x20legacy\x20input\x20and\x20removed\x20during\x20normalization;\x20other\x20versions\x20are\x20unsupported.'},'formSchema':![],'formDefinitions':![],'formPermissions':![],'pageMode':{'const':'CUSTOM_PAGE'},'startPageId':![],'startPath':{'type':a281_0x202121(0x2a3),'minLength':0x1},'nodes':{'type':a281_0x202121(0x1e5),'minItems':0x1,'items':{'$ref':a281_0x202121(0x1be)}},'edges':{'type':'array','minItems':0x1,'items':{'$ref':'#/$defs/flowEdge'}}},'additionalProperties':!![]}},'additionalProperties':!![]};const REMOVED_FLOW_JSON_FIELDS=[a281_0x202121(0x1fe),a281_0x202121(0x28e),a281_0x202121(0x2ba),a281_0x202121(0x1d9),a281_0x202121(0x1d3),a281_0x202121(0x20f),a281_0x202121(0x2ac),a281_0x202121(0x1ed)],REMOVED_ROOT_FIELDS=['id',a281_0x202121(0x20f),a281_0x202121(0x1ed)],DEFAULT_FLOW_SCHEMA_VERSION=a281_0x202121(0x205),NODE_TYPES=new Set([a281_0x202121(0x273),a281_0x202121(0x289),a281_0x202121(0x2b0),a281_0x202121(0x2dc),a281_0x202121(0x1e8),a281_0x202121(0x237)]),CONDITION_TYPES=new Set([a281_0x202121(0x2ed),'APPROVED',a281_0x202121(0x22c),'EXPRESSION']),APPROVAL_MODES=new Set(['SINGLE','ALL',a281_0x202121(0x233)]),APPROVAL_TASK_MODES=new Set([a281_0x202121(0x2b0),'HANDLE']),FLOW_TIME_UNITS=new Set(['SECONDS',a281_0x202121(0x236),a281_0x202121(0x1fd),a281_0x202121(0x1c8)]),APPROVAL_TIMEOUT_ACTIONS=new Set([a281_0x202121(0x1ca),'AUTO_REJECT',a281_0x202121(0x246)]),FLOW_TYPES=new Set([a281_0x202121(0x1f5),a281_0x202121(0x20d)]),FLOW_PAGE_MODES=new Set([a281_0x202121(0x256),'PLATFORM_FORM']),BPMN_ID_PATTERN=/^[A-Za-z_][A-Za-z0-9_]*$/,VARIABLE_PATTERN=/^[A-Za-z_][A-Za-z0-9_]*$/,NOTIFICATION_PLACEHOLDER_PATTERN=/\$\{([^{}]+)\}/g,NOTIFICATION_ACTION_URL_PLACEHOLDER_PATTERN=/^\$\{(?:event|context|variables)\.[^{}]+\}$/,NOTIFICATION_FAILURE_POLICIES=new Set([a281_0x202121(0x2ef),a281_0x202121(0x22a)]),NOTIFICATION_RECIPIENT_TYPES=new Set([a281_0x202121(0x261),a281_0x202121(0x1e4),a281_0x202121(0x210)]),NOTIFICATION_RECIPIENT_ROLES=new Set(['TO','CC',a281_0x202121(0x2d3)]),MAX_NOTIFICATION_FACTS=0x8,MAX_NOTIFICATION_ACTIONS=0x2,MAX_ASYNC_RETRY_COUNT=0xa,MAX_CC_RECIPIENTS=0x64,DEFAULT_SCRIPT_RESULT_VARIABLE=a281_0x202121(0x29e),UNSUPPORTED_FORM_MESSAGE=a281_0x202121(0x203),UNSUPPORTED_PLATFORM_FORM_MESSAGE=a281_0x202121(0x263),RESERVED_RESULT_VARIABLES=new Set([a281_0x202121(0x2ad),a281_0x202121(0x1b0),a281_0x202121(0x1d1),a281_0x202121(0x1b9),'approval_sys_initiatorUserId',a281_0x202121(0x26c),a281_0x202121(0x1c4),'approval_sys_pageId',a281_0x202121(0x2fe),a281_0x202121(0x222)]);export function normalizeFlowConfig(_0x1e06eb){const _0x7c014c=a281_0x202121;if(!isRecord(_0x1e06eb))throw new TypeError(_0x7c014c(0x2d8));const _0x480bff=cloneJsonValue(_0x1e06eb),_0x59ad22=_0x480bff[_0x7c014c(0x23e)],_0x5539e3=isRecord(_0x59ad22)?cloneJsonValue(_0x59ad22):{},_0x54e068=[],_0x275199=[];for(const _0x10f767 of REMOVED_ROOT_FIELDS){if(!Object[_0x7c014c(0x1c3)][_0x7c014c(0x1fb)][_0x7c014c(0x291)](_0x480bff,_0x10f767))continue;delete _0x480bff[_0x10f767],_0x275199[_0x7c014c(0x26f)](_0x10f767),_0x54e068[_0x7c014c(0x26f)]({'code':_0x7c014c(0x2eb),'path':_0x10f767,'message':_0x10f767+_0x7c014c(0x2a0)});}for(const _0x9d9bce of REMOVED_FLOW_JSON_FIELDS){if(!Object[_0x7c014c(0x1c3)][_0x7c014c(0x1fb)][_0x7c014c(0x291)](_0x5539e3,_0x9d9bce))continue;const _0x407cc2=_0x7c014c(0x2c2)+_0x9d9bce;delete _0x5539e3[_0x9d9bce],_0x275199['push'](_0x407cc2),_0x54e068[_0x7c014c(0x26f)]({'code':_0x7c014c(0x2eb),'path':_0x407cc2,'message':_0x407cc2+_0x7c014c(0x2a0)});}if(Object[_0x7c014c(0x1c3)][_0x7c014c(0x1fb)]['call'](_0x5539e3,'schemaVersion')){const _0x6e04e0=_0x5539e3[_0x7c014c(0x1b8)],_0x5c2fce=typeof _0x6e04e0===_0x7c014c(0x2a3)?_0x6e04e0[_0x7c014c(0x226)]():_0x6e04e0;if(isEmptyJsonValue(_0x6e04e0)||_0x5c2fce===DEFAULT_FLOW_SCHEMA_VERSION){const _0x3c2910='flowJson.schemaVersion';delete _0x5539e3['schemaVersion'],_0x275199[_0x7c014c(0x26f)](_0x3c2910),_0x54e068['push']({'code':'legacy_field_removed','path':_0x3c2910,'message':_0x3c2910+_0x7c014c(0x301)+DEFAULT_FLOW_SCHEMA_VERSION+_0x7c014c(0x229)});}}removeEmptyMetadata(_0x5539e3,_0x7c014c(0x23e),_0x54e068,_0x275199);_0x480bff[_0x7c014c(0x286)]===_0x7c014c(0x20d)&&!Object[_0x7c014c(0x1c3)][_0x7c014c(0x1fb)][_0x7c014c(0x291)](_0x5539e3,_0x7c014c(0x238))&&(_0x5539e3[_0x7c014c(0x238)]='CUSTOM_PAGE');_0x480bff[_0x7c014c(0x23e)]=_0x5539e3;if(typeof _0x480bff[_0x7c014c(0x2ba)]===_0x7c014c(0x2a3))_0x480bff[_0x7c014c(0x2ba)]=_0x480bff[_0x7c014c(0x2ba)][_0x7c014c(0x226)]();return{'config':_0x480bff,'warnings':_0x54e068,'removedPaths':_0x275199};}export function validateFlowConfig(_0x14b86a){const _0x3277d1=a281_0x202121;let _0x50a266;try{_0x50a266=normalizeFlowConfig(_0x14b86a);}catch(_0x54c4a2){const _0x15b1b6=_0x54c4a2 instanceof Error?_0x54c4a2['message']:String(_0x54c4a2),_0x136b25={'flowJson':{}};return{'valid':![],'errors':[{'path':'$','message':_0x15b1b6}],'warnings':[],'normalized':_0x136b25,'validationConfig':_0x136b25};}const _0x2a7e4b=_0x50a266[_0x3277d1(0x2a5)],_0x35ad7e=cloneJsonValue(_0x2a7e4b),_0x4db50a=_0x35ad7e[_0x3277d1(0x23e)];_0x4db50a[_0x3277d1(0x1fe)]='__rabetbase_local_validation__',_0x4db50a['flowName']=_0x2a7e4b['flowName'];typeof _0x2a7e4b[_0x3277d1(0x1d3)]===_0x3277d1(0x2a3)&&_0x2a7e4b[_0x3277d1(0x1d3)][_0x3277d1(0x226)]()&&(_0x4db50a['bindDatasetCode']=_0x2a7e4b['datasetCode'][_0x3277d1(0x226)]());const _0x495f37=[];return validateOuterMetadata(_0x2a7e4b,_0x495f37),validateFlowClassification(_0x2a7e4b,_0x495f37),validateGraph(_0x2a7e4b[_0x3277d1(0x23e)],_0x495f37),{'valid':_0x495f37['length']===0x0,'errors':_0x495f37,'warnings':_0x50a266[_0x3277d1(0x223)],'normalized':_0x2a7e4b,'validationConfig':_0x35ad7e};}function validateFlowClassification(_0x332d42,_0x3ad9cf){const _0x47f2c1=a281_0x202121;if(!isRecord(_0x332d42['flowJson']))return;const _0x299172=_0x332d42[_0x47f2c1(0x286)],_0x568375=_0x332d42[_0x47f2c1(0x23e)][_0x47f2c1(0x238)];_0x568375!==undefined&&(typeof _0x568375!==_0x47f2c1(0x2a3)||!FLOW_PAGE_MODES[_0x47f2c1(0x217)](_0x568375))&&_0x3ad9cf[_0x47f2c1(0x26f)]({'path':'flowJson.pageMode','message':'Unsupported\x20pageMode:\x20'+String(_0x568375)+'.'});_0x299172===_0x47f2c1(0x1f5)&&_0x568375!==undefined&&_0x3ad9cf[_0x47f2c1(0x26f)]({'path':_0x47f2c1(0x1e6),'message':_0x47f2c1(0x305)});_0x299172===_0x47f2c1(0x20d)&&_0x568375===_0x47f2c1(0x23b)&&_0x3ad9cf[_0x47f2c1(0x26f)]({'path':_0x47f2c1(0x1e6),'message':UNSUPPORTED_PLATFORM_FORM_MESSAGE});(_0x299172===_0x47f2c1(0x1f5)||_0x299172===_0x47f2c1(0x20d))&&validateCustomPageNavigation(_0x332d42,_0x299172,_0x568375,_0x3ad9cf);if(_0x299172!=='FORM_FLOW'||!Array['isArray'](_0x332d42[_0x47f2c1(0x23e)][_0x47f2c1(0x1b6)]))return;_0x332d42[_0x47f2c1(0x23e)]['nodes'][_0x47f2c1(0x202)]((_0x3fda0b,_0x47bfe9)=>{const _0x233fba=_0x47f2c1;isRecord(_0x3fda0b)&&_0x3fda0b[_0x233fba(0x213)]==='APPROVAL'&&_0x3fda0b[_0x233fba(0x288)]==='HANDLE'&&_0x3ad9cf[_0x233fba(0x26f)]({'path':_0x233fba(0x281)+_0x47bfe9+_0x233fba(0x265),'message':_0x233fba(0x1e1)});});}function validateCustomPageNavigation(_0x142d04,_0x147b2c,_0x56abb7,_0x17f75b){const _0x22757f=a281_0x202121,_0x1ca355=_0x142d04['flowJson'][_0x22757f(0x26a)];_0x1ca355!==undefined&&_0x17f75b[_0x22757f(0x26f)]({'path':_0x22757f(0x2f6),'message':_0x22757f(0x1ce)});const _0x45b0a8=_0x142d04[_0x22757f(0x23e)][_0x22757f(0x1ae)];_0x45b0a8!==undefined&&(typeof _0x45b0a8!==_0x22757f(0x2a3)||_0x45b0a8[_0x22757f(0x226)]()==='')&&_0x17f75b[_0x22757f(0x26f)]({'path':'flowJson.startPath','message':_0x22757f(0x2c5)});const _0xae2ed=Array[_0x22757f(0x24c)](_0x142d04[_0x22757f(0x23e)][_0x22757f(0x1b6)])?_0x142d04[_0x22757f(0x23e)][_0x22757f(0x1b6)]['map']((_0x19988e,_0x4f3622)=>({'node':_0x19988e,'index':_0x4f3622}))[_0x22757f(0x232)](({node:_0xde9d28})=>isRecord(_0xde9d28)&&_0xde9d28['path']!==undefined):[],_0x300844=_0x45b0a8!==undefined||_0xae2ed[_0x22757f(0x309)]>0x0,_0x16b6df=_0x56abb7===undefined&&_0x147b2c===_0x22757f(0x20d)?_0x22757f(0x256):_0x56abb7;_0x300844&&(_0x147b2c!==_0x22757f(0x20d)||_0x16b6df!==_0x22757f(0x256))&&(_0x45b0a8!==undefined&&_0x17f75b[_0x22757f(0x26f)]({'path':_0x22757f(0x25b),'message':_0x22757f(0x227)}),_0xae2ed[_0x22757f(0x202)](({index:_0x10889b})=>{const _0x1a4ede=_0x22757f;_0x17f75b[_0x1a4ede(0x26f)]({'path':'flowJson.nodes['+_0x10889b+_0x1a4ede(0x26d),'message':_0x1a4ede(0x1f9)});}));}export async function writeNormalizedFlowConfig(_0x5c67ac,_0xdbb437,_0x3cdeb9={}){const _0x3fece6=a281_0x202121,_0x1bc6e5=resolve(_0x5c67ac),_0x1dc6d8=_0x1bc6e5+'.'+process[_0x3fece6(0x2e6)]+'.'+randomUUID()+_0x3fece6(0x221),_0x55726d=JSON['stringify'](_0xdbb437,null,0x2)+'\x0a';let _0x4cc7d0;try{try{_0x4cc7d0=(await stat(_0x1bc6e5))[_0x3fece6(0x1f7)]&0x1ff;}catch{_0x4cc7d0=undefined;}await writeFile(_0x1dc6d8,_0x55726d,{'encoding':_0x3fece6(0x29c),'flag':'wx','mode':_0x4cc7d0??0x1a4});if(_0x4cc7d0!==undefined)await chmod(_0x1dc6d8,_0x4cc7d0);_0x3cdeb9[_0x3fece6(0x1e7)]===![]?(await link(_0x1dc6d8,_0x1bc6e5),await unlink(_0x1dc6d8)):await rename(_0x1dc6d8,_0x1bc6e5);}finally{await unlink(_0x1dc6d8)['catch'](()=>undefined);}}function validateOuterMetadata(_0x1572bf,_0x14f1b8){const _0x117455=a281_0x202121;(typeof _0x1572bf[_0x117455(0x2ba)]!==_0x117455(0x2a3)||_0x1572bf['flowName'][_0x117455(0x226)]()==='')&&_0x14f1b8[_0x117455(0x26f)]({'path':'flowName','message':_0x117455(0x211)});_0x1572bf[_0x117455(0x285)]!==undefined&&typeof _0x1572bf[_0x117455(0x285)]!==_0x117455(0x2a3)&&_0x14f1b8[_0x117455(0x26f)]({'path':'flowDesc','message':'flowDesc\x20must\x20be\x20a\x20string.'});if(_0x1572bf[_0x117455(0x286)]===undefined||_0x1572bf[_0x117455(0x286)]===null)_0x14f1b8[_0x117455(0x26f)]({'path':_0x117455(0x286),'message':_0x117455(0x2e1)});else(typeof _0x1572bf[_0x117455(0x286)]!=='string'||!FLOW_TYPES[_0x117455(0x217)](_0x1572bf[_0x117455(0x286)]))&&_0x14f1b8[_0x117455(0x26f)]({'path':_0x117455(0x286),'message':_0x117455(0x209)+String(_0x1572bf[_0x117455(0x286)])+'.'});_0x1572bf[_0x117455(0x1d3)]!==undefined&&typeof _0x1572bf[_0x117455(0x1d3)]!=='string'&&_0x14f1b8['push']({'path':'datasetCode','message':_0x117455(0x228)}),_0x1572bf['pageId']!==undefined&&(!Number['isInteger'](_0x1572bf[_0x117455(0x2ac)])||_0x1572bf[_0x117455(0x2ac)]<0x0)&&_0x14f1b8[_0x117455(0x26f)]({'path':_0x117455(0x2ac),'message':_0x117455(0x2c6)}),_0x1572bf[_0x117455(0x286)]==='INDEPENDENT_FLOW'&&_0x1572bf['datasetCode']!==undefined&&_0x14f1b8[_0x117455(0x26f)]({'path':'datasetCode','message':'INDEPENDENT_FLOW\x20cannot\x20bind\x20datasetCode.'}),_0x1572bf['flowType']===_0x117455(0x20d)&&_0x1572bf['pageId']!==undefined&&_0x14f1b8[_0x117455(0x26f)]({'path':_0x117455(0x2ac),'message':'INDEPENDENT_FLOW\x20cannot\x20bind\x20pageId.'});}function validateGraph(_0xe95e12,_0x139062){const _0x5b2cd2=a281_0x202121;if(!isRecord(_0xe95e12)){_0x139062[_0x5b2cd2(0x26f)]({'path':_0x5b2cd2(0x23e),'message':_0x5b2cd2(0x1dd)});return;}!Array[_0x5b2cd2(0x24c)](_0xe95e12[_0x5b2cd2(0x1b6)])&&_0x139062['push']({'path':_0x5b2cd2(0x1ac),'message':'nodes\x20must\x20be\x20an\x20array.'});!Array[_0x5b2cd2(0x24c)](_0xe95e12[_0x5b2cd2(0x30b)])&&_0x139062[_0x5b2cd2(0x26f)]({'path':_0x5b2cd2(0x298),'message':_0x5b2cd2(0x24a)});Object[_0x5b2cd2(0x1c3)][_0x5b2cd2(0x1fb)][_0x5b2cd2(0x291)](_0xe95e12,'schemaVersion')&&_0x139062['push']({'path':'flowJson.schemaVersion','message':'Unsupported\x20schemaVersion:\x20'+String(_0xe95e12[_0x5b2cd2(0x1b8)])+_0x5b2cd2(0x1b4)+DEFAULT_FLOW_SCHEMA_VERSION+'.'});for(const _0x3c1e7c of['formSchema',_0x5b2cd2(0x264),_0x5b2cd2(0x24f)]){Object['prototype'][_0x5b2cd2(0x1fb)][_0x5b2cd2(0x291)](_0xe95e12,_0x3c1e7c)&&_0x139062[_0x5b2cd2(0x26f)]({'path':_0x5b2cd2(0x2c2)+_0x3c1e7c,'message':UNSUPPORTED_FORM_MESSAGE});}if(!Array['isArray'](_0xe95e12['nodes'])||!Array['isArray'](_0xe95e12['edges']))return;const _0x50403b=new Map(),_0x4756b8=[],_0x13828f=[],_0x28ff90=new Map(),_0x160ee1=new Map(),_0x400d72=new Set();let _0x560988=0x0;_0xe95e12[_0x5b2cd2(0x1b6)][_0x5b2cd2(0x202)]((_0xb4317f,_0x325e5c)=>{const _0x4f5b1f=_0x5b2cd2,_0x5c31d9=_0x4f5b1f(0x281)+_0x325e5c+']';if(!isRecord(_0xb4317f)){_0x139062['push']({'path':_0x5c31d9,'message':_0x4f5b1f(0x2ce)});return;}const _0x3e5db3=_0xb4317f;if(typeof _0x3e5db3['id']!=='string'||!BPMN_ID_PATTERN[_0x4f5b1f(0x2da)](_0x3e5db3['id']))_0x139062['push']({'path':_0x5c31d9+'.id','message':'node\x20id\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.'});else _0x50403b[_0x4f5b1f(0x217)](_0x3e5db3['id'])?_0x139062[_0x4f5b1f(0x26f)]({'path':_0x5c31d9+'.id','message':_0x4f5b1f(0x2d1)+_0x3e5db3['id']+'.'}):(_0x50403b[_0x4f5b1f(0x1e2)](_0x3e5db3['id'],_0x3e5db3),_0x400d72[_0x4f5b1f(0x22e)](_0x3e5db3['id']));if(!NODE_TYPES['has'](_0x3e5db3['type']))_0x139062['push']({'path':_0x5c31d9+_0x4f5b1f(0x2a2),'message':_0x4f5b1f(0x244)+String(_0x3e5db3[_0x4f5b1f(0x213)])+'.'});else{if(_0x3e5db3[_0x4f5b1f(0x213)]===_0x4f5b1f(0x273))_0x4756b8[_0x4f5b1f(0x26f)](_0x3e5db3['id']);else _0x3e5db3[_0x4f5b1f(0x213)]===_0x4f5b1f(0x289)&&_0x13828f[_0x4f5b1f(0x26f)](_0x3e5db3['id']);}_0x3e5db3['type']===_0x4f5b1f(0x2b0)&&(_0x3e5db3[_0x4f5b1f(0x288)]===undefined||_0x3e5db3[_0x4f5b1f(0x288)]==='APPROVAL')&&(_0x560988+=0x1);validateNode(_0x3e5db3,_0x5c31d9,_0x139062);if(_0x3e5db3['type']===_0x4f5b1f(0x1e8)){const _0x9fa675=resolveEffectiveResultVariable(_0x3e5db3[_0x4f5b1f(0x2d0)],![]);_0x9fa675&&(registerResultVariableOwner(_0x160ee1,_0x9fa675,_0x3e5db3['id'],_0x139062),!_0x28ff90[_0x4f5b1f(0x217)](_0x9fa675)&&_0x28ff90[_0x4f5b1f(0x1e2)](_0x9fa675,_0x3e5db3['id']));}if(_0x3e5db3[_0x4f5b1f(0x213)]===_0x4f5b1f(0x2b0)&&isRecord(_0x3e5db3[_0x4f5b1f(0x251)])&&_0x3e5db3[_0x4f5b1f(0x251)]['enabled']===!![]&&_0x3e5db3[_0x4f5b1f(0x251)][_0x4f5b1f(0x1d5)]==='EXECUTE_BFF'){const _0x413f2e=resolveEffectiveResultVariable(_0x3e5db3[_0x4f5b1f(0x251)]['resultVariable'],!![]);_0x413f2e&®isterResultVariableOwner(_0x160ee1,_0x413f2e,_0x3e5db3['id']+_0x4f5b1f(0x266),_0x139062);}});_0x4756b8[_0x5b2cd2(0x309)]!==0x1&&_0x139062[_0x5b2cd2(0x26f)]({'path':_0x5b2cd2(0x1ac),'message':_0x5b2cd2(0x28c)});_0x13828f[_0x5b2cd2(0x309)]===0x0&&_0x139062[_0x5b2cd2(0x26f)]({'path':_0x5b2cd2(0x1ac),'message':'Flow\x20must\x20contain\x20at\x20least\x20one\x20END\x20node.'});const _0x9c6f39=new Map(),_0x29cf2b=new Map(),_0x5c3c96=new Map(),_0x5eb319=new Set();_0xe95e12[_0x5b2cd2(0x30b)][_0x5b2cd2(0x202)]((_0x1fafa6,_0x47d0a8)=>{const _0x1eec11=_0x5b2cd2,_0x222248=_0x1eec11(0x1ec)+_0x47d0a8+']';if(!isRecord(_0x1fafa6)){_0x139062[_0x1eec11(0x26f)]({'path':_0x222248,'message':_0x1eec11(0x1f1)});return;}const _0x4c1420=_0x1fafa6;_0x5c3c96[_0x1eec11(0x1e2)](_0x4c1420,_0x222248);const _0x59cf50=resolveEdgeEndpoint(_0x4c1420[_0x1eec11(0x2e7)],_0x4c1420[_0x1eec11(0x2d6)]),_0x341ff6=resolveEdgeEndpoint(_0x4c1420[_0x1eec11(0x235)],_0x4c1420[_0x1eec11(0x2e8)]);if(!_0x59cf50)_0x139062['push']({'path':_0x222248+_0x1eec11(0x214),'message':_0x1eec11(0x2c9)});if(!_0x341ff6)_0x139062[_0x1eec11(0x26f)]({'path':_0x222248+_0x1eec11(0x22f),'message':'edge\x20target\x20is\x20required.'});_0x59cf50&&!_0x50403b['has'](_0x59cf50)&&_0x139062[_0x1eec11(0x26f)]({'path':_0x222248+_0x1eec11(0x214),'message':_0x1eec11(0x27b)+_0x59cf50+'.'});_0x341ff6&&!_0x50403b[_0x1eec11(0x217)](_0x341ff6)&&_0x139062[_0x1eec11(0x26f)]({'path':_0x222248+'.target','message':'Edge\x20target\x20node\x20not\x20found:\x20'+_0x341ff6+'.'});if(_0x4c1420['id']!==undefined){if(typeof _0x4c1420['id']!==_0x1eec11(0x2a3)||!BPMN_ID_PATTERN[_0x1eec11(0x2da)](_0x4c1420['id']))_0x139062['push']({'path':_0x222248+_0x1eec11(0x28f),'message':'edge\x20id\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.'});else{if(_0x400d72[_0x1eec11(0x217)](_0x4c1420['id']))_0x139062['push']({'path':_0x222248+_0x1eec11(0x28f),'message':_0x1eec11(0x2f7)+_0x4c1420['id']+'.'});else!_0x400d72[_0x1eec11(0x217)](_0x4c1420['id'])&&_0x400d72[_0x1eec11(0x22e)](_0x4c1420['id']);}}if(_0x59cf50&&_0x341ff6){const _0x45c1f9=_0x59cf50+'\x00'+_0x341ff6+'\x00'+(_0x4c1420[_0x1eec11(0x2b9)]??_0x1eec11(0x2ed));_0x5eb319[_0x1eec11(0x217)](_0x45c1f9)?_0x139062[_0x1eec11(0x26f)]({'path':_0x222248,'message':_0x1eec11(0x240)+_0x59cf50+'\x20->\x20'+_0x341ff6+'\x20('+(_0x4c1420[_0x1eec11(0x2b9)]??'ALWAYS')+').'}):_0x5eb319[_0x1eec11(0x22e)](_0x45c1f9);}validateEdge(_0x4c1420,_0x222248,_0x139062),_0x59cf50&&_0x341ff6&&(_0x9c6f39['get'](_0x59cf50)?.['push'](_0x4c1420)??_0x9c6f39[_0x1eec11(0x1e2)](_0x59cf50,[_0x4c1420]),_0x29cf2b['get'](_0x341ff6)?.[_0x1eec11(0x26f)](_0x4c1420)??_0x29cf2b[_0x1eec11(0x1e2)](_0x341ff6,[_0x4c1420]));});if(_0x4756b8[_0x5b2cd2(0x309)]!==0x1)return;validateGraphShape(_0x50403b,_0x4756b8[0x0],_0x13828f,_0x9c6f39,_0x29cf2b,_0x5c3c96,_0x139062),validateScriptResultReferences(_0x50403b,_0x4756b8[0x0],_0x9c6f39,_0x29cf2b,_0x5c3c96,_0x28ff90,_0x139062),validateApprovalResults(_0x50403b,_0x560988,_0x13828f,_0x139062);}function validateNode(_0x43af52,_0x476b42,_0x4a9929){const _0x3ae7f5=a281_0x202121;for(const _0xa747d0 of['form',_0x3ae7f5(0x219)]){Object['prototype'][_0x3ae7f5(0x1fb)][_0x3ae7f5(0x291)](_0x43af52,_0xa747d0)&&_0x4a9929[_0x3ae7f5(0x26f)]({'path':_0x476b42+'.'+_0xa747d0,'message':UNSUPPORTED_FORM_MESSAGE});}if(!NODE_TYPES[_0x3ae7f5(0x217)](_0x43af52[_0x3ae7f5(0x213)]))return;(typeof _0x43af52[_0x3ae7f5(0x2a1)]!=='string'||_0x43af52[_0x3ae7f5(0x2a1)][_0x3ae7f5(0x226)]()==='')&&_0x4a9929[_0x3ae7f5(0x26f)]({'path':_0x476b42+_0x3ae7f5(0x1ef),'message':'Every\x20node\x20requires\x20a\x20non-empty\x20name.'});_0x43af52['pageId']!==undefined&&_0x4a9929[_0x3ae7f5(0x26f)]({'path':_0x476b42+_0x3ae7f5(0x2dd),'message':'node\x20pageId\x20is\x20no\x20longer\x20supported;\x20use\x20node\x20path\x20instead.'});if(_0x43af52['path']!==undefined){if(typeof _0x43af52[_0x3ae7f5(0x269)]!==_0x3ae7f5(0x2a3)||_0x43af52['path'][_0x3ae7f5(0x226)]()==='')_0x4a9929[_0x3ae7f5(0x26f)]({'path':_0x476b42+'.path','message':'node\x20path\x20must\x20be\x20a\x20non-empty\x20string.'});else _0x43af52[_0x3ae7f5(0x213)]!==_0x3ae7f5(0x2b0)&&_0x43af52[_0x3ae7f5(0x213)]!==_0x3ae7f5(0x289)&&_0x4a9929[_0x3ae7f5(0x26f)]({'path':_0x476b42+_0x3ae7f5(0x1c5),'message':_0x3ae7f5(0x248)});}const _0x2bf739=_0x43af52['position'];if(!isRecord(_0x2bf739))_0x4a9929[_0x3ae7f5(0x26f)]({'path':_0x476b42+_0x3ae7f5(0x2fd),'message':_0x3ae7f5(0x21c)});else for(const _0x2054eb of['x','y']){const _0x1ae820=_0x2bf739[_0x2054eb];(typeof _0x1ae820!==_0x3ae7f5(0x259)||!Number[_0x3ae7f5(0x27f)](_0x1ae820)||_0x1ae820<0x0)&&_0x4a9929[_0x3ae7f5(0x26f)]({'path':_0x476b42+_0x3ae7f5(0x280)+_0x2054eb,'message':_0x3ae7f5(0x2f2)+_0x2054eb+_0x3ae7f5(0x272)});}if(_0x43af52[_0x3ae7f5(0x213)]===_0x3ae7f5(0x2b0)){const _0x1ebdf4=_0x43af52['approvalMode']??_0x3ae7f5(0x2cd),_0x48073e=_0x43af52[_0x3ae7f5(0x288)]??'APPROVAL';!APPROVAL_TASK_MODES[_0x3ae7f5(0x217)](_0x48073e)&&_0x4a9929['push']({'path':_0x476b42+_0x3ae7f5(0x2d2),'message':_0x3ae7f5(0x2ec)+String(_0x48073e)+'.'});!APPROVAL_MODES[_0x3ae7f5(0x217)](_0x1ebdf4)&&_0x4a9929[_0x3ae7f5(0x26f)]({'path':_0x476b42+'.approvalMode','message':_0x3ae7f5(0x2c1)+String(_0x1ebdf4)+'.'});if(!isRecord(_0x43af52[_0x3ae7f5(0x21d)]))_0x4a9929['push']({'path':_0x476b42+_0x3ae7f5(0x27e),'message':_0x3ae7f5(0x29a)});else{const _0x1c3d76=_0x43af52[_0x3ae7f5(0x21d)][_0x3ae7f5(0x307)];_0x1c3d76!==_0x3ae7f5(0x28d)&&_0x1c3d76!==_0x3ae7f5(0x1e4)&&_0x4a9929[_0x3ae7f5(0x26f)]({'path':_0x476b42+'.assignee.strategy','message':_0x3ae7f5(0x23d)});if(_0x1c3d76===_0x3ae7f5(0x28d)){const _0x45fd11=_0x43af52[_0x3ae7f5(0x21d)][_0x3ae7f5(0x2d9)];if(!Array[_0x3ae7f5(0x24c)](_0x45fd11)||_0x45fd11[_0x3ae7f5(0x309)]===0x0)_0x4a9929['push']({'path':_0x476b42+_0x3ae7f5(0x2e0),'message':_0x3ae7f5(0x2f1)});else{const _0x1933cc=_0x45fd11[_0x3ae7f5(0x297)](_0x244d51=>!isValidUserId(_0x244d51));_0x1933cc>=0x0&&_0x4a9929[_0x3ae7f5(0x26f)]({'path':_0x476b42+_0x3ae7f5(0x2b2)+_0x1933cc+']','message':_0x3ae7f5(0x220)});const _0x23328c=new Set(_0x45fd11[_0x3ae7f5(0x232)](isValidUserId)[_0x3ae7f5(0x1d2)](_0x599425=>String(_0x599425)[_0x3ae7f5(0x226)]()));_0x1ebdf4===_0x3ae7f5(0x2cd)&&_0x23328c[_0x3ae7f5(0x2ae)]>0x1&&_0x4a9929[_0x3ae7f5(0x26f)]({'path':_0x476b42+_0x3ae7f5(0x2e0),'message':_0x3ae7f5(0x2b7)});}}if(_0x1c3d76===_0x3ae7f5(0x1e4)){const _0xb17758=_0x43af52[_0x3ae7f5(0x21d)][_0x3ae7f5(0x1a6)],_0x59a077=typeof _0xb17758==='number'||typeof _0xb17758===_0x3ae7f5(0x2a3)?Number(String(_0xb17758)['trim']()):Number[_0x3ae7f5(0x27c)];(!Number['isSafeInteger'](_0x59a077)||_0x59a077<=0x0)&&_0x4a9929[_0x3ae7f5(0x26f)]({'path':_0x476b42+'.assignee.roleId','message':_0x3ae7f5(0x2c4)});}}if(_0x43af52['transferCandidates']!==undefined){if(!isRecord(_0x43af52[_0x3ae7f5(0x2aa)]))_0x4a9929[_0x3ae7f5(0x26f)]({'path':_0x476b42+'.transferCandidates','message':_0x3ae7f5(0x25c)});else{if(_0x43af52['transferCandidates']['strategy']!==_0x3ae7f5(0x28d))_0x4a9929[_0x3ae7f5(0x26f)]({'path':_0x476b42+_0x3ae7f5(0x2f8),'message':_0x3ae7f5(0x24e)});else{const _0x5bdb38=_0x43af52[_0x3ae7f5(0x2aa)]['userIds'];if(!Array[_0x3ae7f5(0x24c)](_0x5bdb38)||_0x5bdb38[_0x3ae7f5(0x309)]===0x0)_0x4a9929['push']({'path':_0x476b42+'.transferCandidates.userIds','message':_0x3ae7f5(0x2cf)});else{const _0x11f6c5=_0x5bdb38[_0x3ae7f5(0x297)](_0x39b6d3=>!isValidUserId(_0x39b6d3));_0x11f6c5>=0x0&&_0x4a9929[_0x3ae7f5(0x26f)]({'path':_0x476b42+_0x3ae7f5(0x2fa)+_0x11f6c5+']','message':_0x3ae7f5(0x26b)});}}}}}_0x43af52[_0x3ae7f5(0x2c8)]!==undefined&&typeof _0x43af52['sequential']!==_0x3ae7f5(0x2c0)&&_0x4a9929[_0x3ae7f5(0x26f)]({'path':_0x476b42+'.sequential','message':_0x3ae7f5(0x2b1)});if(_0x43af52['type']===_0x3ae7f5(0x1e8)){(typeof _0x43af52['scriptName']!==_0x3ae7f5(0x2a3)||_0x43af52[_0x3ae7f5(0x28a)][_0x3ae7f5(0x226)]()==='')&&_0x4a9929[_0x3ae7f5(0x26f)]({'path':_0x476b42+'.scriptName','message':_0x3ae7f5(0x21b)});if(_0x43af52[_0x3ae7f5(0x2d0)]!==undefined){if(typeof _0x43af52[_0x3ae7f5(0x2d0)]!==_0x3ae7f5(0x2a3)||!VARIABLE_PATTERN['test'](_0x43af52['resultVariable']))_0x4a9929[_0x3ae7f5(0x26f)]({'path':_0x476b42+'.resultVariable','message':_0x3ae7f5(0x300)});else(RESERVED_RESULT_VARIABLES[_0x3ae7f5(0x217)](_0x43af52['resultVariable'])||_0x43af52[_0x3ae7f5(0x2d0)]['startsWith']('approval_sys_'))&&_0x4a9929['push']({'path':_0x476b42+_0x3ae7f5(0x2fb),'message':_0x3ae7f5(0x2c3)+_0x43af52['resultVariable']+'.'});}}validateAsyncExecution(_0x43af52,_0x476b42,_0x4a9929),validateApprovalTimeout(_0x43af52,_0x476b42,_0x4a9929),validateCcConfig(_0x43af52,_0x476b42,_0x4a9929),_0x43af52[_0x3ae7f5(0x213)]===_0x3ae7f5(0x237)&&validateNotificationConfig(_0x43af52[_0x3ae7f5(0x2a5)],_0x476b42+_0x3ae7f5(0x25e),_0x4a9929);}function validateAsyncExecution(_0x41cc13,_0x72958d,_0x2a12ec){const _0x574e59=a281_0x202121;if(_0x41cc13[_0x574e59(0x1fc)]===undefined)return;if(!isRecord(_0x41cc13[_0x574e59(0x1fc)])){_0x2a12ec['push']({'path':_0x72958d+_0x574e59(0x2ca),'message':_0x574e59(0x23c)});return;}if(_0x41cc13[_0x574e59(0x1fc)][_0x574e59(0x274)]!==undefined&&typeof _0x41cc13[_0x574e59(0x1fc)]['enabled']!==_0x574e59(0x2c0)){_0x2a12ec[_0x574e59(0x26f)]({'path':_0x72958d+_0x574e59(0x225),'message':_0x574e59(0x290)});return;}if(_0x41cc13['async']['enabled']!==!![])return;_0x41cc13['type']!==_0x574e59(0x1e8)&&_0x2a12ec[_0x574e59(0x26f)]({'path':_0x72958d+'.async','message':'async\x20execution\x20is\x20only\x20supported\x20by\x20SCRIPT\x20node.'});const _0x6456cf=_0x41cc13['async'][_0x574e59(0x1c9)]??0x3;(!Number[_0x574e59(0x2bd)](_0x6456cf)||_0x6456cf<0x1||_0x6456cf>MAX_ASYNC_RETRY_COUNT)&&_0x2a12ec['push']({'path':_0x72958d+_0x574e59(0x1ff),'message':'SCRIPT\x20async\x20retryCount\x20must\x20be\x20between\x201\x20and\x20'+MAX_ASYNC_RETRY_COUNT+'.'}),_0x41cc13['async']['retryInterval']!==undefined&&validateTimeAmount(_0x41cc13['async'][_0x574e59(0x208)],_0x72958d+'.async.retryInterval',_0x2a12ec);}function validateApprovalTimeout(_0x5a0ea7,_0x3a34c1,_0x55164e){const _0x49448a=a281_0x202121;if(_0x5a0ea7[_0x49448a(0x251)]===undefined)return;if(!isRecord(_0x5a0ea7['timeout'])){_0x55164e[_0x49448a(0x26f)]({'path':_0x3a34c1+_0x49448a(0x266),'message':_0x49448a(0x1f8)});return;}if(_0x5a0ea7[_0x49448a(0x251)]['enabled']!==undefined&&typeof _0x5a0ea7[_0x49448a(0x251)][_0x49448a(0x274)]!==_0x49448a(0x2c0)){_0x55164e[_0x49448a(0x26f)]({'path':_0x3a34c1+'.timeout.enabled','message':_0x49448a(0x20b)});return;}if(_0x5a0ea7[_0x49448a(0x251)][_0x49448a(0x274)]!==!![])return;if(_0x5a0ea7['timeout']['interrupting']!==undefined&&typeof _0x5a0ea7[_0x49448a(0x251)]['interrupting']!==_0x49448a(0x2c0)){_0x55164e[_0x49448a(0x26f)]({'path':_0x3a34c1+_0x49448a(0x215),'message':'timeout.interrupting\x20must\x20be\x20a\x20boolean.'});return;}_0x5a0ea7[_0x49448a(0x213)]!==_0x49448a(0x2b0)&&_0x55164e[_0x49448a(0x26f)]({'path':_0x3a34c1+_0x49448a(0x266),'message':'timeout\x20is\x20only\x20supported\x20by\x20APPROVAL\x20node.'});validateTimeAmount(_0x5a0ea7[_0x49448a(0x251)][_0x49448a(0x242)],_0x3a34c1+_0x49448a(0x2a4),_0x55164e);const _0x3f7541=_0x5a0ea7['timeout']['action'];if(!APPROVAL_TIMEOUT_ACTIONS[_0x49448a(0x217)](_0x3f7541)){_0x55164e[_0x49448a(0x26f)]({'path':_0x3a34c1+_0x49448a(0x21a),'message':_0x49448a(0x2ee)});return;}(_0x5a0ea7[_0x49448a(0x288)]??_0x49448a(0x2b0))===_0x49448a(0x1ea)&&_0x3f7541!==_0x49448a(0x246)&&_0x55164e['push']({'path':_0x3a34c1+_0x49448a(0x21a),'message':_0x49448a(0x2af)});const _0x1fee8c=_0x5a0ea7[_0x49448a(0x251)][_0x49448a(0x1bf)]??_0x3f7541!=='EXECUTE_BFF';if(_0x3f7541==='EXECUTE_BFF')_0x1fee8c&&_0x55164e[_0x49448a(0x26f)]({'path':_0x3a34c1+_0x49448a(0x215),'message':'EXECUTE_BFF\x20timeout\x20must\x20not\x20interrupt\x20the\x20approval\x20task.'}),(typeof _0x5a0ea7[_0x49448a(0x251)][_0x49448a(0x28a)]!==_0x49448a(0x2a3)||_0x5a0ea7[_0x49448a(0x251)]['scriptName']['trim']()==='')&&_0x55164e[_0x49448a(0x26f)]({'path':_0x3a34c1+_0x49448a(0x247),'message':_0x49448a(0x308)}),validateOptionalResultVariable(_0x5a0ea7[_0x49448a(0x251)][_0x49448a(0x2d0)],_0x3a34c1+'.timeout.resultVariable',_0x55164e);else!_0x1fee8c&&_0x55164e[_0x49448a(0x26f)]({'path':_0x3a34c1+_0x49448a(0x215),'message':_0x3f7541+_0x49448a(0x1bc)});}function validateTimeAmount(_0x43f88c,_0x190f39,_0x468f64){const _0x373637=a281_0x202121;if(!isRecord(_0x43f88c)){_0x468f64[_0x373637(0x26f)]({'path':_0x190f39,'message':_0x373637(0x20e)});return;}(!Number[_0x373637(0x2bd)](_0x43f88c[_0x373637(0x206)])||Number(_0x43f88c[_0x373637(0x206)])<=0x0)&&_0x468f64['push']({'path':_0x190f39+_0x373637(0x2d4),'message':_0x373637(0x302)}),!FLOW_TIME_UNITS[_0x373637(0x217)](_0x43f88c['unit'])&&_0x468f64[_0x373637(0x26f)]({'path':_0x190f39+'.unit','message':_0x373637(0x1d7)});}function validateOptionalResultVariable(_0x1d76bf,_0x59e668,_0x40fdcc){const _0x3b216b=a281_0x202121;if(_0x1d76bf===undefined||_0x1d76bf===null||_0x1d76bf==='')return;if(typeof _0x1d76bf!==_0x3b216b(0x2a3)||!VARIABLE_PATTERN['test'](_0x1d76bf))_0x40fdcc[_0x3b216b(0x26f)]({'path':_0x59e668,'message':_0x3b216b(0x300)});else(RESERVED_RESULT_VARIABLES[_0x3b216b(0x217)](_0x1d76bf)||_0x1d76bf[_0x3b216b(0x293)]('approval_sys_'))&&_0x40fdcc[_0x3b216b(0x26f)]({'path':_0x59e668,'message':_0x3b216b(0x2c3)+_0x1d76bf+'.'});}function validateCcConfig(_0x13376f,_0x5638d6,_0x1e0910){const _0x449d32=a281_0x202121;if(_0x13376f['cc']===undefined)return;if(!isRecord(_0x13376f['cc'])){_0x1e0910['push']({'path':_0x5638d6+_0x449d32(0x1f4),'message':'cc\x20must\x20be\x20an\x20object.'});return;}_0x13376f[_0x449d32(0x213)]!==_0x449d32(0x289)&&_0x13376f['type']!=='APPROVAL'&&_0x1e0910['push']({'path':_0x5638d6+_0x449d32(0x1f4),'message':_0x449d32(0x287)});Object[_0x449d32(0x1c3)][_0x449d32(0x1fb)][_0x449d32(0x291)](_0x13376f['cc'],'readSources')&&_0x1e0910[_0x449d32(0x26f)]({'path':_0x5638d6+'.cc.readSources','message':UNSUPPORTED_FORM_MESSAGE});const _0x3c76c5=_0x13376f['cc'][_0x449d32(0x1b2)];if(!Array[_0x449d32(0x24c)](_0x3c76c5)||_0x3c76c5[_0x449d32(0x309)]===0x0)_0x1e0910[_0x449d32(0x26f)]({'path':_0x5638d6+_0x449d32(0x1df),'message':_0x449d32(0x2d7)});else{_0x3c76c5[_0x449d32(0x309)]>MAX_CC_RECIPIENTS&&_0x1e0910[_0x449d32(0x26f)]({'path':_0x5638d6+_0x449d32(0x1df),'message':_0x449d32(0x2b5)+MAX_CC_RECIPIENTS+_0x449d32(0x243)});const _0x21d3cb=new Set();_0x3c76c5['forEach']((_0x2cdbbb,_0x94ab3d)=>{const _0xe7180f=_0x449d32;if(typeof _0x2cdbbb!=='string'||_0x2cdbbb[_0xe7180f(0x226)]()==='')_0x1e0910[_0xe7180f(0x26f)]({'path':_0x5638d6+_0xe7180f(0x279)+_0x94ab3d+']','message':_0xe7180f(0x304)});else _0x21d3cb[_0xe7180f(0x217)](_0x2cdbbb[_0xe7180f(0x226)]())?_0x1e0910['push']({'path':_0x5638d6+_0xe7180f(0x279)+_0x94ab3d+']','message':_0xe7180f(0x1ab)+_0x2cdbbb[_0xe7180f(0x226)]()+'.'}):_0x21d3cb[_0xe7180f(0x22e)](_0x2cdbbb['trim']());});}validateStringArray(_0x13376f['cc'][_0x449d32(0x241)],_0x5638d6+_0x449d32(0x2e2),_0x1e0910);}function validateStringArray(_0x145621,_0x1e6af7,_0x13446d){const _0x2cd469=a281_0x202121;if(_0x145621===undefined)return;if(!Array['isArray'](_0x145621)){_0x13446d[_0x2cd469(0x26f)]({'path':_0x1e6af7,'message':'value\x20must\x20be\x20an\x20array.'});return;}const _0x4b28f1=new Set();_0x145621[_0x2cd469(0x202)]((_0x5cfc97,_0x256017)=>{const _0x36d286=_0x2cd469;if(typeof _0x5cfc97!=='string'||_0x5cfc97[_0x36d286(0x226)]()==='')_0x13446d[_0x36d286(0x26f)]({'path':_0x1e6af7+'['+_0x256017+']','message':_0x36d286(0x27d)});else _0x4b28f1[_0x36d286(0x217)](_0x5cfc97[_0x36d286(0x226)]())?_0x13446d[_0x36d286(0x26f)]({'path':_0x1e6af7+'['+_0x256017+']','message':_0x36d286(0x239)+_0x5cfc97[_0x36d286(0x226)]()+'.'}):_0x4b28f1['add'](_0x5cfc97['trim']());});}function a281_0x3a76(_0x180e60,_0x54df5c){_0x180e60=_0x180e60-0x1a6;const _0x462f21=a281_0x462f();let _0x3a765e=_0x462f21[_0x180e60];return _0x3a765e;}function validateNotificationConfig(_0x5de563,_0x585d9c,_0x257231){const _0xe4d172=a281_0x202121;if(!isRecord(_0x5de563)){_0x257231[_0xe4d172(0x26f)]({'path':_0x585d9c,'message':_0xe4d172(0x1f0)});return;}if(_0x5de563[_0xe4d172(0x2f4)]!==undefined&&_0x5de563[_0xe4d172(0x2f4)]!==null){if(typeof _0x5de563[_0xe4d172(0x2f4)]!==_0xe4d172(0x2a3))_0x257231[_0xe4d172(0x26f)]({'path':_0x585d9c+_0xe4d172(0x224),'message':'Notification\x20version\x20must\x20be\x20a\x20string.'});else _0x5de563[_0xe4d172(0x2f4)][_0xe4d172(0x226)]()&&_0x5de563['version'][_0xe4d172(0x226)]()!=='v1'&&_0x257231['push']({'path':_0x585d9c+'.version','message':_0xe4d172(0x21e)+_0x5de563[_0xe4d172(0x2f4)]+'.'});}const _0x4bdb8b=requireNotificationString(_0x5de563[_0xe4d172(0x1af)],_0x585d9c+_0xe4d172(0x1f6),_0xe4d172(0x29f),_0x257231);_0x4bdb8b?.['includes']('${')&&_0x257231[_0xe4d172(0x26f)]({'path':_0x585d9c+_0xe4d172(0x1f6),'message':_0xe4d172(0x294)});if(_0x5de563[_0xe4d172(0x299)]!==undefined&&_0x5de563[_0xe4d172(0x299)]!==null){if(typeof _0x5de563['failurePolicy']!==_0xe4d172(0x2a3))_0x257231[_0xe4d172(0x26f)]({'path':_0x585d9c+_0xe4d172(0x303),'message':_0xe4d172(0x218)});else!NOTIFICATION_FAILURE_POLICIES[_0xe4d172(0x217)](_0x5de563['failurePolicy'][_0xe4d172(0x226)]()[_0xe4d172(0x1aa)]())&&_0x257231[_0xe4d172(0x26f)]({'path':_0x585d9c+_0xe4d172(0x303),'message':_0xe4d172(0x28b)});}!isRecord(_0x5de563['template'])?_0x257231[_0xe4d172(0x26f)]({'path':_0x585d9c+_0xe4d172(0x1c7),'message':_0xe4d172(0x2bf)}):validateNotificationTemplate(_0x5de563[_0xe4d172(0x254)],_0x585d9c+_0xe4d172(0x1c7),_0x257231),validateNotificationRecipients(_0x5de563[_0xe4d172(0x25a)],_0x585d9c+'.recipients',_0x257231);}function validateNotificationTemplate(_0x266f66,_0x25e524,_0x4f5b67){const _0x17914b=a281_0x202121;for(const _0x1306e0 of[_0x17914b(0x2b3),_0x17914b(0x1e9)]){const _0x3dad6b=requireNotificationString(_0x266f66[_0x1306e0],_0x25e524+'.'+_0x1306e0,_0x17914b(0x1de)+_0x1306e0+_0x17914b(0x21f),_0x4f5b67);if(_0x3dad6b)validateNotificationPlaceholders(_0x3dad6b,_0x25e524+'.'+_0x1306e0,_0x4f5b67);}_0x266f66[_0x17914b(0x2e3)]!==undefined&&_0x266f66[_0x17914b(0x2e3)]!==null&&(typeof _0x266f66[_0x17914b(0x2e3)]!==_0x17914b(0x2a3)?_0x4f5b67['push']({'path':_0x25e524+_0x17914b(0x1f2),'message':_0x17914b(0x1ad)}):validateNotificationPlaceholders(_0x266f66[_0x17914b(0x2e3)],_0x25e524+'.detailMarkdown',_0x4f5b67)),validateNotificationFacts(_0x266f66[_0x17914b(0x1a7)],_0x25e524+_0x17914b(0x2a6),_0x4f5b67),validateNotificationActions(_0x266f66[_0x17914b(0x23a)],_0x25e524+_0x17914b(0x2e5),_0x4f5b67);}function validateNotificationFacts(_0x8c2ceb,_0x2b0eaf,_0x2c6082){const _0x42c74c=a281_0x202121;if(_0x8c2ceb===undefined||_0x8c2ceb===null)return;if(!Array[_0x42c74c(0x24c)](_0x8c2ceb)){_0x2c6082[_0x42c74c(0x26f)]({'path':_0x2b0eaf,'message':_0x42c74c(0x1b1)});return;}_0x8c2ceb['length']>MAX_NOTIFICATION_FACTS&&_0x2c6082['push']({'path':_0x2b0eaf,'message':'Notification\x20template\x20supports\x20at\x20most\x20'+MAX_NOTIFICATION_FACTS+'\x20facts.'}),_0x8c2ceb[_0x42c74c(0x202)]((_0x14d77a,_0x14184c)=>{const _0x479640=_0x42c74c,_0x5a79ba=_0x2b0eaf+'['+_0x14184c+']';if(!isRecord(_0x14d77a)){_0x2c6082[_0x479640(0x26f)]({'path':_0x5a79ba,'message':_0x479640(0x292)});return;}for(const _0x441046 of[_0x479640(0x258),_0x479640(0x206)]){const _0x38dc71=requireNotificationString(_0x14d77a[_0x441046],_0x5a79ba+'.'+_0x441046,_0x479640(0x2ea)+_0x441046+_0x479640(0x21f),_0x2c6082);_0x38dc71&&validateNotificationPlaceholders(_0x38dc71,_0x5a79ba+'.'+_0x441046,_0x2c6082);}});}function validateNotificationActions(_0x47b230,_0x1bba3d,_0x4bad05){const _0x1b5631=a281_0x202121;if(_0x47b230===undefined||_0x47b230===null)return;if(!Array[_0x1b5631(0x24c)](_0x47b230)){_0x4bad05['push']({'path':_0x1bba3d,'message':_0x1b5631(0x1c1)});return;}_0x47b230['length']>MAX_NOTIFICATION_ACTIONS&&_0x4bad05[_0x1b5631(0x26f)]({'path':_0x1bba3d,'message':'Notification\x20template\x20supports\x20at\x20most\x20'+MAX_NOTIFICATION_ACTIONS+'\x20actions.'}),_0x47b230[_0x1b5631(0x202)]((_0x7a8e86,_0x8bf6fd)=>{const _0x3af91e=_0x1b5631,_0x12c5cc=_0x1bba3d+'['+_0x8bf6fd+']';if(!isRecord(_0x7a8e86)){_0x4bad05[_0x3af91e(0x26f)]({'path':_0x12c5cc,'message':_0x3af91e(0x2f9)});return;}const _0x2bb6bb=requireNotificationString(_0x7a8e86[_0x3af91e(0x2a9)],_0x12c5cc+_0x3af91e(0x270),'Notification\x20action.text\x20is\x20required.',_0x4bad05);if(_0x2bb6bb)validateNotificationPlaceholders(_0x2bb6bb,_0x12c5cc+_0x3af91e(0x270),_0x4bad05);const _0x1db9c6=requireNotificationString(_0x7a8e86[_0x3af91e(0x22d)],_0x12c5cc+_0x3af91e(0x252),'Notification\x20action.url\x20is\x20required.',_0x4bad05);if(!_0x1db9c6)return;validateNotificationPlaceholders(_0x1db9c6,_0x12c5cc+_0x3af91e(0x252),_0x4bad05),!/^https?:\/\//i['test'](_0x1db9c6)&&!NOTIFICATION_ACTION_URL_PLACEHOLDER_PATTERN[_0x3af91e(0x2da)](_0x1db9c6)&&_0x4bad05[_0x3af91e(0x26f)]({'path':_0x12c5cc+_0x3af91e(0x252),'message':_0x3af91e(0x1bb)});});}function validateNotificationRecipients(_0x1aabae,_0x2f3b25,_0x42718f){const _0x5379f9=a281_0x202121;if(_0x1aabae===undefined||_0x1aabae===null)return;if(!Array[_0x5379f9(0x24c)](_0x1aabae)){_0x42718f[_0x5379f9(0x26f)]({'path':_0x2f3b25,'message':_0x5379f9(0x1da)});return;}let _0x3abeee=![];_0x1aabae['forEach']((_0x55f78c,_0x193d25)=>{const _0x507371=_0x5379f9,_0x177fc4=_0x2f3b25+'['+_0x193d25+']';if(!isRecord(_0x55f78c)){_0x42718f['push']({'path':_0x177fc4,'message':_0x507371(0x1b7)});return;}const _0x5b96d8=requireNotificationString(_0x55f78c[_0x507371(0x213)],_0x177fc4+_0x507371(0x2a2),_0x507371(0x260),_0x42718f);_0x5b96d8&&!NOTIFICATION_RECIPIENT_TYPES[_0x507371(0x217)](_0x5b96d8['toUpperCase']())&&_0x42718f[_0x507371(0x26f)]({'path':_0x177fc4+_0x507371(0x2a2),'message':_0x507371(0x282)});let _0x53e89e='TO';_0x55f78c[_0x507371(0x2e9)]!==undefined&&_0x55f78c[_0x507371(0x2e9)]!==null&&(typeof _0x55f78c[_0x507371(0x2e9)]!=='string'?(_0x42718f[_0x507371(0x26f)]({'path':_0x177fc4+_0x507371(0x216),'message':_0x507371(0x277)}),_0x53e89e=''):(_0x53e89e=_0x55f78c[_0x507371(0x2e9)][_0x507371(0x226)]()[_0x507371(0x1aa)](),!NOTIFICATION_RECIPIENT_ROLES[_0x507371(0x217)](_0x53e89e)&&_0x42718f[_0x507371(0x26f)]({'path':_0x177fc4+_0x507371(0x216),'message':_0x507371(0x2b8)})));if(_0x53e89e==='TO')_0x3abeee=!![];const _0x2a7591=requireNotificationString(_0x55f78c[_0x507371(0x206)],_0x177fc4+'.value',_0x507371(0x245),_0x42718f);_0x2a7591&&validateNotificationPlaceholders(_0x2a7591,_0x177fc4+_0x507371(0x2d4),_0x42718f);}),_0x1aabae[_0x5379f9(0x309)]>0x0&&!_0x3abeee&&_0x42718f['push']({'path':_0x2f3b25,'message':_0x5379f9(0x2de)});}function requireNotificationString(_0x203422,_0x52148f,_0x9a233,_0xf7f620){const _0x64aac8=a281_0x202121;if(typeof _0x203422!=='string'||_0x203422[_0x64aac8(0x226)]()==='')return _0xf7f620[_0x64aac8(0x26f)]({'path':_0x52148f,'message':_0x9a233}),undefined;return _0x203422[_0x64aac8(0x226)]();}function validateNotificationPlaceholders(_0x93f1dd,_0xa372a2,_0x3b1c8d){const _0x5872cb=a281_0x202121;for(const _0x175b31 of _0x93f1dd[_0x5872cb(0x23f)](NOTIFICATION_PLACEHOLDER_PATTERN)){const _0xb7f8ad=_0x175b31[0x1]?.[_0x5872cb(0x226)]()??'',_0x3a8819=_0xb7f8ad[_0x5872cb(0x295)]('.'),_0x58ef08=_0x3a8819>=0x0?_0xb7f8ad[_0x5872cb(0x22b)](0x0,_0x3a8819):_0xb7f8ad,_0x37c188=_0x3a8819>=0x0?_0xb7f8ad['slice'](_0x3a8819+0x1)[_0x5872cb(0x226)]():'';(![_0x5872cb(0x2b4),_0x5872cb(0x204),_0x5872cb(0x2ff)][_0x5872cb(0x1ba)](_0x58ef08)||_0x37c188==='')&&_0x3b1c8d['push']({'path':_0xa372a2,'message':_0x5872cb(0x1fa)+_0x175b31[0x0]+'.'});}_0x93f1dd[_0x5872cb(0x284)](NOTIFICATION_PLACEHOLDER_PATTERN,'')['includes']('${')&&_0x3b1c8d['push']({'path':_0xa372a2,'message':_0x5872cb(0x2a8)});}function validateEdge(_0x1865b7,_0x49d309,_0x497e81){const _0x1347b0=a281_0x202121;_0x1865b7[_0x1347b0(0x2a1)]!==undefined&&typeof _0x1865b7[_0x1347b0(0x2a1)]!==_0x1347b0(0x2a3)&&_0x497e81['push']({'path':_0x49d309+'.name','message':_0x1347b0(0x25d)}),_0x1865b7['defaultFlow']!==undefined&&typeof _0x1865b7['defaultFlow']!=='boolean'&&_0x497e81[_0x1347b0(0x26f)]({'path':_0x49d309+_0x1347b0(0x271),'message':_0x1347b0(0x278)}),_0x1865b7['waypoints']!==undefined&&(!Array['isArray'](_0x1865b7['waypoints'])?_0x497e81[_0x1347b0(0x26f)]({'path':_0x49d309+_0x1347b0(0x1f3),'message':_0x1347b0(0x268)}):_0x1865b7[_0x1347b0(0x20c)][_0x1347b0(0x202)]((_0x3e4cd7,_0x22df6e)=>{const _0x31453a=_0x1347b0;if(!isRecord(_0x3e4cd7)){_0x497e81[_0x31453a(0x26f)]({'path':_0x49d309+_0x31453a(0x2a7)+_0x22df6e+']','message':'waypoint\x20must\x20contain\x20numeric\x20x\x20and\x20y\x20coordinates.'});return;}for(const _0x2a0ade of['x','y']){const _0x4835c1=_0x3e4cd7[_0x2a0ade];(typeof _0x4835c1!==_0x31453a(0x259)||!Number[_0x31453a(0x27f)](_0x4835c1))&&_0x497e81['push']({'path':_0x49d309+'.waypoints['+_0x22df6e+'].'+_0x2a0ade,'message':_0x31453a(0x275)+_0x2a0ade+'\x20must\x20be\x20a\x20finite\x20number.'});}})),_0x1865b7[_0x1347b0(0x2b9)]!==undefined&&!CONDITION_TYPES[_0x1347b0(0x217)](_0x1865b7['conditionType'])&&_0x497e81[_0x1347b0(0x26f)]({'path':_0x49d309+_0x1347b0(0x20a),'message':_0x1347b0(0x201)+String(_0x1865b7['conditionType'])+'.'}),_0x1865b7['conditionType']==='EXPRESSION'&&(typeof _0x1865b7[_0x1347b0(0x24d)]!==_0x1347b0(0x2a3)||_0x1865b7[_0x1347b0(0x24d)]['trim']()==='')&&_0x497e81[_0x1347b0(0x26f)]({'path':_0x49d309+_0x1347b0(0x26e),'message':'EXPRESSION\x20edge\x20requires\x20expression.'}),_0x1865b7[_0x1347b0(0x30a)]===!![]&&_0x1865b7[_0x1347b0(0x2b9)]!==_0x1347b0(0x2ed)&&_0x497e81[_0x1347b0(0x26f)]({'path':_0x49d309+_0x1347b0(0x271),'message':_0x1347b0(0x262)}),_0x1865b7[_0x1347b0(0x30a)]===!![]&&typeof _0x1865b7[_0x1347b0(0x24d)]===_0x1347b0(0x2a3)&&_0x1865b7[_0x1347b0(0x24d)][_0x1347b0(0x226)]()!==''&&_0x497e81[_0x1347b0(0x26f)]({'path':_0x49d309+'.expression','message':_0x1347b0(0x2cc)});}function validateGraphShape(_0x5d5277,_0x52977f,_0xe1e9c,_0x4ef0a1,_0x2f221d,_0x1342a9,_0x1767fe){const _0x2cbe45=a281_0x202121;for(const [_0x40653a,_0x656b92]of _0x5d5277){const _0x5e9766=_0x2f221d[_0x2cbe45(0x1b3)](_0x40653a)??[],_0x50ddd3=_0x4ef0a1[_0x2cbe45(0x1b3)](_0x40653a)??[];_0x656b92['type']!==_0x2cbe45(0x273)&&_0x5e9766[_0x2cbe45(0x309)]===0x0&&_0x1767fe[_0x2cbe45(0x26f)]({'path':'flowJson.nodes.'+_0x40653a,'message':'Node\x20has\x20no\x20incoming\x20edge.'});_0x656b92[_0x2cbe45(0x213)]!==_0x2cbe45(0x289)&&_0x50ddd3['length']===0x0&&_0x1767fe[_0x2cbe45(0x26f)]({'path':'flowJson.nodes.'+_0x40653a,'message':_0x2cbe45(0x1e0)});_0x656b92[_0x2cbe45(0x213)]===_0x2cbe45(0x273)&&_0x5e9766[_0x2cbe45(0x309)]>0x0&&_0x1767fe['push']({'path':_0x2cbe45(0x27a)+_0x40653a,'message':_0x2cbe45(0x212)});_0x656b92[_0x2cbe45(0x213)]==='END'&&_0x50ddd3[_0x2cbe45(0x309)]>0x0&&_0x1767fe['push']({'path':_0x2cbe45(0x27a)+_0x40653a,'message':_0x2cbe45(0x2e4)});if(_0x656b92[_0x2cbe45(0x213)]===_0x2cbe45(0x2dc)){_0x50ddd3['length']<0x2&&_0x1767fe[_0x2cbe45(0x26f)]({'path':'flowJson.nodes.'+_0x40653a,'message':_0x2cbe45(0x1b5)});const _0x50f4d7=_0x50ddd3[_0x2cbe45(0x232)](_0xe05930=>_0xe05930[_0x2cbe45(0x30a)]===!![]);_0x50f4d7[_0x2cbe45(0x309)]!==0x1&&_0x1767fe['push']({'path':_0x2cbe45(0x27a)+_0x40653a,'message':_0x2cbe45(0x1dc)});if(_0x50f4d7['length']===0x1){const _0x227eae=_0x50f4d7[0x0],_0x5a5483=_0x1342a9[_0x2cbe45(0x1b3)](_0x227eae)??_0x2cbe45(0x298);_0x227eae[_0x2cbe45(0x2b9)]!==_0x2cbe45(0x2ed)&&_0x1767fe[_0x2cbe45(0x26f)]({'path':_0x5a5483+_0x2cbe45(0x20a),'message':_0x2cbe45(0x1d0)});_0x227eae[_0x2cbe45(0x24d)]!==undefined&&_0x1767fe[_0x2cbe45(0x26f)]({'path':_0x5a5483+_0x2cbe45(0x26e),'message':_0x2cbe45(0x253)});for(const _0x196c6a of _0x50ddd3){if(_0x196c6a===_0x227eae)continue;const _0x39faef=_0x1342a9[_0x2cbe45(0x1b3)](_0x196c6a)??_0x2cbe45(0x298);if(_0x196c6a[_0x2cbe45(0x2b9)]!==_0x2cbe45(0x1cc))_0x1767fe['push']({'path':_0x39faef+_0x2cbe45(0x20a),'message':_0x2cbe45(0x2df)});else(typeof _0x196c6a['expression']!=='string'||_0x196c6a[_0x2cbe45(0x24d)]['trim']()==='')&&_0x1767fe[_0x2cbe45(0x26f)]({'path':_0x39faef+_0x2cbe45(0x26e),'message':'CONDITION\x20non-default\x20edge\x20requires\x20a\x20non-empty\x20expression.'});}}}if(_0x656b92[_0x2cbe45(0x213)]===_0x2cbe45(0x2b0)&&(_0x656b92[_0x2cbe45(0x288)]??_0x2cbe45(0x2b0))===_0x2cbe45(0x1ea)){if(_0x50ddd3['length']!==0x1)_0x1767fe['push']({'path':_0x2cbe45(0x27a)+_0x40653a,'message':_0x2cbe45(0x2f5)});else{const _0x10646c=_0x50ddd3[0x0];((_0x10646c[_0x2cbe45(0x2b9)]??_0x2cbe45(0x2ed))!==_0x2cbe45(0x2ed)||_0x10646c[_0x2cbe45(0x30a)]===!![]||typeof _0x10646c[_0x2cbe45(0x24d)]==='string'&&_0x10646c[_0x2cbe45(0x24d)]['trim']()!=='')&&_0x1767fe[_0x2cbe45(0x26f)]({'path':_0x1342a9['get'](_0x10646c)??'flowJson.edges','message':_0x2cbe45(0x2db)});}}else{if(_0x656b92[_0x2cbe45(0x213)]===_0x2cbe45(0x2b0)){const _0x58f7d4=_0x50ddd3['map'](_0x564ba5=>_0x564ba5['conditionType']??'ALWAYS'),_0x5a2b07=_0x58f7d4[_0x2cbe45(0x232)](_0x2dc47a=>_0x2dc47a!==_0x2cbe45(0x1d4)&&_0x2dc47a!==_0x2cbe45(0x22c));_0x5a2b07[_0x2cbe45(0x309)]>0x0&&_0x1767fe[_0x2cbe45(0x26f)]({'path':_0x2cbe45(0x27a)+_0x40653a,'message':_0x2cbe45(0x283)}),_0x58f7d4['filter'](_0x1c9cbe=>_0x1c9cbe===_0x2cbe45(0x1d4))[_0x2cbe45(0x309)]!==0x1&&_0x1767fe[_0x2cbe45(0x26f)]({'path':'flowJson.nodes.'+_0x40653a,'message':_0x2cbe45(0x2bb)}),_0x58f7d4[_0x2cbe45(0x232)](_0x28b025=>_0x28b025===_0x2cbe45(0x22c))[_0x2cbe45(0x309)]!==0x1&&_0x1767fe[_0x2cbe45(0x26f)]({'path':_0x2cbe45(0x27a)+_0x40653a,'message':_0x2cbe45(0x267)}),_0x50ddd3[_0x2cbe45(0x25f)](_0x537169=>_0x537169[_0x2cbe45(0x30a)]===!![])&&_0x1767fe[_0x2cbe45(0x26f)]({'path':_0x2cbe45(0x27a)+_0x40653a,'message':_0x2cbe45(0x2be)});}}}const _0x34d25c=new Set(),_0x5a4928=_0x371246=>{const _0x1e7536=_0x2cbe45;if(_0x34d25c['has'](_0x371246))return;_0x34d25c['add'](_0x371246);for(const _0x41e9e3 of _0x4ef0a1[_0x1e7536(0x1b3)](_0x371246)??[]){const _0x1bbcbb=resolveEdgeEndpoint(_0x41e9e3[_0x1e7536(0x235)],_0x41e9e3['targetNodeId']);if(_0x1bbcbb&&_0x5d5277[_0x1e7536(0x217)](_0x1bbcbb))_0x5a4928(_0x1bbcbb);}};_0x5a4928(_0x52977f);for(const _0x46bec9 of _0x5d5277['keys']()){!_0x34d25c[_0x2cbe45(0x217)](_0x46bec9)&&_0x1767fe[_0x2cbe45(0x26f)]({'path':_0x2cbe45(0x27a)+_0x46bec9,'message':_0x2cbe45(0x1cd)});}const _0x3460e5=_0xe1e9c['some'](_0x1dc27e=>_0x34d25c[_0x2cbe45(0x217)](_0x1dc27e));if(!_0x3460e5){_0x1767fe[_0x2cbe45(0x26f)]({'path':_0x2cbe45(0x298),'message':_0x2cbe45(0x2f3)});return;}const _0x1c4920=new Set(),_0x565984=_0x1201d2=>{const _0x279128=_0x2cbe45;if(_0x1c4920[_0x279128(0x217)](_0x1201d2))return;_0x1c4920['add'](_0x1201d2);for(const _0x22f529 of _0x2f221d[_0x279128(0x1b3)](_0x1201d2)??[]){const _0x33354d=resolveEdgeEndpoint(_0x22f529[_0x279128(0x2e7)],_0x22f529[_0x279128(0x2d6)]);if(_0x33354d&&_0x5d5277[_0x279128(0x217)](_0x33354d))_0x565984(_0x33354d);}};for(const _0x3cf8fb of _0xe1e9c){if(_0x5d5277['has'](_0x3cf8fb))_0x565984(_0x3cf8fb);}for(const _0x3f1ba0 of _0x34d25c){!_0x1c4920[_0x2cbe45(0x217)](_0x3f1ba0)&&_0x1767fe[_0x2cbe45(0x26f)]({'path':_0x2cbe45(0x27a)+_0x3f1ba0,'message':'Node\x20cannot\x20reach\x20any\x20END.'});}}function validateApprovalResults(_0x4be3ae,_0x543495,_0x428a8a,_0x4e612c){const _0x4fad1b=a281_0x202121;if(_0x543495===0x0)return;const _0x23be73=new Set(_0x428a8a[_0x4fad1b(0x1d2)](_0x204e5d=>_0x4be3ae[_0x4fad1b(0x1b3)](_0x204e5d)?.[_0x4fad1b(0x2ab)])[_0x4fad1b(0x232)](_0x19e364=>typeof _0x19e364===_0x4fad1b(0x2a3)));for(const _0x250703 of[_0x4fad1b(0x1d4),_0x4fad1b(0x22c)]){!_0x23be73['has'](_0x250703)&&_0x4e612c[_0x4fad1b(0x26f)]({'path':_0x4fad1b(0x1ac),'message':_0x4fad1b(0x2f0)+_0x250703+'.'});}}function validateScriptResultReferences(_0x56d99a,_0xe5db37,_0x5beb14,_0x2dac67,_0x3b8d96,_0x2f2e25,_0x2c5339){const _0x5bb5ea=a281_0x202121;if(_0x2f2e25[_0x5bb5ea(0x2ae)]===0x0)return;const _0x4c14d6=new Set(),_0x461c7b=_0x7301e7=>{const _0x1b4034=_0x5bb5ea;if(!_0x4c14d6[_0x1b4034(0x217)](_0x7301e7)&&_0x56d99a[_0x1b4034(0x217)](_0x7301e7)){_0x4c14d6[_0x1b4034(0x22e)](_0x7301e7);for(const _0xb62a3f of _0x5beb14[_0x1b4034(0x1b3)](_0x7301e7)??[]){const _0x347839=resolveEdgeEndpoint(_0xb62a3f[_0x1b4034(0x235)],_0xb62a3f['targetNodeId']);if(_0x347839)_0x461c7b(_0x347839);}}};_0x461c7b(_0xe5db37);const _0x230f7e=new Map();for(const _0x354780 of _0x4c14d6){_0x230f7e['set'](_0x354780,_0x354780===_0xe5db37?new Set([_0xe5db37]):new Set(_0x4c14d6));}let _0x36d443=!![];while(_0x36d443){_0x36d443=![];for(const _0x3ac5be of _0x4c14d6){if(_0x3ac5be===_0xe5db37)continue;const _0xd9a5c8=(_0x2dac67[_0x5bb5ea(0x1b3)](_0x3ac5be)??[])[_0x5bb5ea(0x1d2)](_0x1dacf1=>resolveEdgeEndpoint(_0x1dacf1[_0x5bb5ea(0x2e7)],_0x1dacf1[_0x5bb5ea(0x2d6)]))[_0x5bb5ea(0x232)](_0x3a21e1=>Boolean(_0x3a21e1&&_0x4c14d6[_0x5bb5ea(0x217)](_0x3a21e1)));if(_0xd9a5c8['length']===0x0)continue;const _0x4946fb=new Set(_0x230f7e['get'](_0xd9a5c8[0x0])??[]);for(const _0x413a37 of _0xd9a5c8[_0x5bb5ea(0x22b)](0x1)){const _0x1c5aec=_0x230f7e[_0x5bb5ea(0x1b3)](_0x413a37)??new Set();for(const _0x2a6208 of _0x4946fb){if(!_0x1c5aec[_0x5bb5ea(0x217)](_0x2a6208))_0x4946fb[_0x5bb5ea(0x1c6)](_0x2a6208);}}_0x4946fb[_0x5bb5ea(0x22e)](_0x3ac5be);const _0x4691f9=_0x230f7e[_0x5bb5ea(0x1b3)](_0x3ac5be);!setsEqual(_0x4691f9,_0x4946fb)&&(_0x230f7e[_0x5bb5ea(0x1e2)](_0x3ac5be,_0x4946fb),_0x36d443=!![]);}}for(const [_0x2ef5b1,_0x1f3e89]of _0x5beb14){const _0x315195=_0x230f7e[_0x5bb5ea(0x1b3)](_0x2ef5b1);if(!_0x315195)continue;for(const _0xcc8db8 of _0x1f3e89){if(_0xcc8db8[_0x5bb5ea(0x2b9)]!==_0x5bb5ea(0x1cc)||typeof _0xcc8db8['expression']!==_0x5bb5ea(0x2a3))continue;for(const [_0x2e8d88,_0x1ada65]of _0x2f2e25){expressionReferencesVariable(_0xcc8db8['expression'],_0x2e8d88)&&!_0x315195[_0x5bb5ea(0x217)](_0x1ada65)&&_0x2c5339[_0x5bb5ea(0x26f)]({'path':(_0x3b8d96[_0x5bb5ea(0x1b3)](_0xcc8db8)??'flowJson.edges')+_0x5bb5ea(0x26e),'message':_0x5bb5ea(0x296)+_0x2e8d88+_0x5bb5ea(0x30c)+_0x1ada65+'\x20is\x20not\x20on\x20every\x20upstream\x20path\x20to\x20'+_0x2ef5b1+'.'});}}}}function expressionReferencesVariable(_0xb41f9b,_0x106feb){const _0x18b9f7=a281_0x202121;let _0x244666=0x0;while(_0x244666<_0xb41f9b['length']){const _0x2e6ec9=_0xb41f9b[_0x244666];if(_0x2e6ec9==='\x27'||_0x2e6ec9==='\x22'){_0x244666=skipQuotedExpressionSegment(_0xb41f9b,_0x244666,_0x2e6ec9);continue;}if(!/[A-Za-z_]/[_0x18b9f7(0x2da)](_0x2e6ec9)){_0x244666+=0x1;continue;}const _0x557e17=_0x244666;_0x244666+=0x1;while(_0x244666<_0xb41f9b[_0x18b9f7(0x309)]&&/[A-Za-z0-9_]/['test'](_0xb41f9b[_0x244666])){_0x244666+=0x1;}if(_0xb41f9b[_0x18b9f7(0x22b)](_0x557e17,_0x244666)!==_0x106feb)continue;let _0x3b8dad=_0x557e17-0x1;while(_0x3b8dad>=0x0&&/\s/[_0x18b9f7(0x2da)](_0xb41f9b[_0x3b8dad])){_0x3b8dad-=0x1;}if(_0xb41f9b[_0x3b8dad]!=='.')return!![];}return![];}function skipQuotedExpressionSegment(_0x281f94,_0x59536b,_0x360a54){const _0x3afafa=a281_0x202121;let _0x4c7375=_0x59536b+0x1;while(_0x4c7375<_0x281f94[_0x3afafa(0x309)]){if(_0x281f94[_0x4c7375]==='\x5c'){_0x4c7375+=0x2;continue;}if(_0x281f94[_0x4c7375]===_0x360a54)return _0x4c7375+0x1;_0x4c7375+=0x1;}return _0x4c7375;}function a281_0x462f(){const _0x46d787=['Unsupported\x20approval\x20mode:\x20','flowJson.','Reserved\x20resultVariable:\x20','ROLE\x20assignee\x20requires\x20a\x20positive\x20integer\x20roleId.','startPath\x20must\x20be\x20a\x20non-empty\x20string.','pageId\x20must\x20be\x20a\x20non-negative\x20integer.','7429565gQjShz','sequential','edge\x20source\x20is\x20required.','.async','approval_sys_','A\x20default\x20flow\x20must\x20not\x20have\x20an\x20expression.','SINGLE','node\x20must\x20be\x20an\x20object.','FIXED\x20transferCandidates\x20requires\x20non-empty\x20userIds.','resultVariable','Duplicate\x20node\x20id:\x20','.taskMode','BCC','.value','Duplicate\x20resultVariable:\x20','sourceNodeId','cc.recipientUserIds\x20must\x20be\x20a\x20non-empty\x20array.','FlowConfig\x20must\x20be\x20a\x20JSON\x20object.','userIds','test','HANDLE\x20task\x20outgoing\x20edge\x20must\x20use\x20ALWAYS\x20without\x20defaultFlow\x20or\x20expression.','CONDITION','.pageId','Explicit\x20notification\x20recipients\x20require\x20at\x20least\x20one\x20TO.','CONDITION\x20non-default\x20edge\x20must\x20use\x20conditionType\x20EXPRESSION.','.assignee.userIds','flowType\x20is\x20required.','.cc.visible','detailMarkdown','END\x20node\x20must\x20not\x20have\x20outgoing\x20edges.','.actions','pid','source','targetNodeId','role','Notification\x20fact.','legacy_field_removed','Unsupported\x20task\x20mode:\x20','ALWAYS','timeout.action\x20must\x20be\x20AUTO_APPROVE,\x20AUTO_REJECT,\x20or\x20EXECUTE_BFF.','CONTINUE','Approval\x20flow\x20requires\x20an\x20END\x20node\x20with\x20result\x20','FIXED\x20assignee\x20requires\x20userIds.','position.','No\x20END\x20node\x20is\x20reachable\x20from\x20START.','version','HANDLE\x20task\x20requires\x20exactly\x20one\x20outgoing\x20edge.','flowJson.startPageId','Duplicate\x20BPMN\x20element\x20id:\x20','.transferCandidates.strategy','Notification\x20action\x20must\x20be\x20an\x20object.','.transferCandidates.userIds[','.resultVariable','entries','.position','approval_sys_operationType','variables','resultVariable\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','\x20was\x20empty\x20or\x20used\x20the\x20default\x20','duration\x20value\x20must\x20be\x20a\x20positive\x20integer.','.failurePolicy','cc\x20recipient\x20userId\x20must\x20be\x20a\x20non-empty\x20string.','pageMode\x20applies\x20only\x20to\x20INDEPENDENT_FLOW.','32EMRLcV','strategy','EXECUTE_BFF\x20timeout\x20requires\x20scriptName.','length','defaultFlow','edges',',\x20but\x20node\x20','roleId','facts','https://json-schema.org/draft/2020-12/schema','SECONDS','toUpperCase','Duplicate\x20cc\x20recipient\x20userId:\x20','flowJson.nodes','Notification\x20template.detailMarkdown\x20must\x20be\x20a\x20string.','startPath','configCode','approved','Notification\x20template.facts\x20must\x20be\x20an\x20array.','recipientUserIds','get','.\x20This\x20CLI\x20supports\x20only\x20','CONDITION\x20node\x20requires\x20at\x20least\x20two\x20outgoing\x20edges.','nodes','Notification\x20recipient\x20must\x20be\x20an\x20object.','schemaVersion','approval_sys_processInstanceId','includes','Notification\x20action.url\x20must\x20use\x20http/https\x20or\x20a\x20complete\x20supported\x20placeholder.','\x20timeout\x20must\x20interrupt\x20the\x20approval\x20task.','object','#/$defs/flowNode','interrupting','^[A-Za-z_][A-Za-z0-9_]*$','Notification\x20template.actions\x20must\x20be\x20an\x20array.','position','prototype','approval_sys_datasetCode','.path','delete','.template','DAYS','retryCount','AUTO_APPROVE','14xUyGku','EXPRESSION','Node\x20is\x20not\x20reachable\x20from\x20START.','startPageId\x20is\x20no\x20longer\x20supported;\x20use\x20startPath\x20instead.','8cemGgx','CONDITION\x20default\x20edge\x20must\x20use\x20conditionType\x20ALWAYS.','approval_sys_appCode','map','datasetCode','APPROVED','action','43155Yeetio','duration\x20unit\x20must\x20be\x20SECONDS,\x20MINUTES,\x20HOURS,\x20or\x20DAYS.','1477122wKfykM','bindDatasetCode','Notification\x20recipients\x20must\x20be\x20an\x20array.','https://lovrabet.com/schema/rabetbase-flow-config.json','CONDITION\x20node\x20requires\x20exactly\x20one\x20default\x20outgoing\x20edge.','flowJson\x20must\x20be\x20an\x20object.','Notification\x20template.','.cc.recipientUserIds','Node\x20has\x20no\x20outgoing\x20edge.','FORM_FLOW\x20is\x20an\x20approval\x20flow\x20and\x20cannot\x20contain\x20HANDLE\x20tasks;\x20use\x20INDEPENDENT_FLOW\x20for\x20workflows.','set','3105066Ndcjpc','ROLE','array','flowJson.pageMode','overwrite','SCRIPT','summary','HANDLE','\x20was\x20empty\x20and\x20was\x20removed.','flowJson.edges[','templateName','ALL','.name','NOTIFICATION\x20node\x20requires\x20config.','edge\x20must\x20be\x20an\x20object.','.detailMarkdown','.waypoints','.cc','FORM_FLOW','.configCode','mode','timeout\x20must\x20be\x20an\x20object.','node\x20path\x20applies\x20only\x20to\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','Unsupported\x20notification\x20placeholder:\x20','hasOwnProperty','async','HOURS','flowKey','.async.retryCount','integer','Unsupported\x20condition\x20type:\x20','forEach','Custom\x20form\x20configuration\x20is\x20not\x20supported\x20by\x20this\x20rabetbase\x20version;\x20use\x20a\x20business\x20custom\x20page\x20instead.','context','approval.simple-flow.v1','value','Rabetbase\x20FlowConfig','retryInterval','Unsupported\x20flowType:\x20','.conditionType','timeout.enabled\x20must\x20be\x20a\x20boolean.','waypoints','INDEPENDENT_FLOW','duration\x20requires\x20value\x20and\x20unit.','appCode','EMAIL','flowName\x20is\x20required.','START\x20node\x20must\x20not\x20have\x20incoming\x20edges.','type','.source','.timeout.interrupting','.role','has','failurePolicy\x20must\x20be\x20a\x20string.','formPermission','.timeout.action','SCRIPT\x20node\x20requires\x20scriptName.','Every\x20node\x20requires\x20position.x\x20and\x20position.y.','assignee','Unsupported\x20notification\x20version:\x20','\x20is\x20required.','fixed\x20assignee\x20userId\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20positive\x20integer.','.tmp','approval_sys_dataId','warnings','.version','.async.enabled','trim','startPath\x20applies\x20only\x20to\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','datasetCode\x20must\x20be\x20a\x20string.','\x20value\x20and\x20was\x20removed\x20from\x20the\x20portable\x20FlowConfig.','FAIL','slice','REJECTED','url','add','.target','keys','#/$defs/timeAmount','filter','ANY','parse','target','MINUTES','NOTIFICATION','pageMode','Duplicate\x20value:\x20','actions','PLATFORM_FORM','async\x20must\x20be\x20an\x20object.','assignee.strategy\x20must\x20be\x20FIXED\x20or\x20ROLE.','flowJson','matchAll','Duplicate\x20edge\x20route:\x20','visible','duration','\x20users.','Unsupported\x20node\x20type:\x20','Notification\x20recipient.value\x20is\x20required.','EXECUTE_BFF','.timeout.scriptName','node\x20path\x20is\x20supported\x20only\x20on\x20APPROVAL\x20or\x20END\x20nodes.','624015dQNBCt','edges\x20must\x20be\x20an\x20array.','#/$defs/position','isArray','expression','transferCandidates\x20currently\x20supports\x20FIXED\x20only.','formPermissions','unit','timeout','.url','CONDITION\x20default\x20edge\x20must\x20not\x20define\x20expression.','template','#/$defs/userId','CUSTOM_PAGE','909WesIKu','label','number','recipients','flowJson.startPath','transferCandidates\x20must\x20be\x20an\x20object.','edge\x20name\x20must\x20be\x20a\x20string.','.config','some','Notification\x20recipient.type\x20is\x20required.','USER','A\x20default\x20flow\x20must\x20use\x20conditionType\x20ALWAYS.','PLATFORM_FORM\x20is\x20not\x20supported\x20by\x20this\x20rabetbase\x20version;\x20use\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','formDefinitions','].taskMode','.timeout','APPROVAL\x20node\x20requires\x20exactly\x20one\x20REJECTED\x20outgoing\x20edge.','waypoints\x20must\x20be\x20an\x20array.','path','startPageId','transfer\x20candidate\x20userId\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20positive\x20integer.','approval_sys_initiatorUsername','].path','.expression','push','.text','.defaultFlow','\x20must\x20be\x20a\x20finite\x20number\x20greater\x20than\x20or\x20equal\x20to\x200.','START','enabled','waypoint.','metadata','Notification\x20recipient.role\x20must\x20be\x20a\x20string.','defaultFlow\x20must\x20be\x20a\x20boolean.','.cc.recipientUserIds[','flowJson.nodes.','Edge\x20source\x20node\x20not\x20found:\x20','NaN','value\x20must\x20be\x20a\x20non-empty\x20string.','.assignee','isFinite','.position.','flowJson.nodes[','Notification\x20recipient.type\x20must\x20be\x20USER,\x20ROLE,\x20or\x20EMAIL.','APPROVAL\x20node\x20outgoing\x20edges\x20must\x20use\x20APPROVED\x20or\x20REJECTED.','replace','flowDesc','flowType','Default\x20cc\x20is\x20only\x20supported\x20by\x20APPROVAL\x20or\x20END\x20node.','taskMode','END','scriptName','failurePolicy\x20must\x20be\x20CONTINUE\x20or\x20FAIL.','Flow\x20must\x20contain\x20exactly\x20one\x20START\x20node.','FIXED','flowCode','.id','async.enabled\x20must\x20be\x20a\x20boolean.','call','Notification\x20fact\x20must\x20be\x20an\x20object.','startsWith','Notification\x20configCode\x20must\x20be\x20a\x20fixed\x20value.','indexOf','Expression\x20references\x20SCRIPT\x20resultVariable\x20','findIndex','flowJson.edges','failurePolicy','APPROVAL\x20node\x20requires\x20assignee.','1092623zzCtSY','utf8','isSafeInteger','scriptResult','Notification\x20configCode\x20is\x20required.','\x20is\x20not\x20part\x20of\x20the\x20portable\x20FlowConfig\x20and\x20was\x20removed.','name','.type','string','.timeout.duration','config','.facts','.waypoints[','Notification\x20text\x20contains\x20a\x20malformed\x20placeholder.','text','transferCandidates','result','pageId','formData','size','HANDLE\x20task\x20timeout\x20only\x20supports\x20EXECUTE_BFF.','APPROVAL','sequential\x20must\x20be\x20a\x20boolean.','.assignee.userIds[','title','event','cc.recipientUserIds\x20supports\x20at\x20most\x20','5680gZwEPJ','SINGLE\x20approval\x20supports\x20only\x20one\x20fixed\x20user.','Notification\x20recipient.role\x20must\x20be\x20TO,\x20CC,\x20or\x20BCC.','conditionType','flowName','APPROVAL\x20node\x20requires\x20exactly\x20one\x20APPROVED\x20outgoing\x20edge.','AUTO_REJECT','isInteger','APPROVAL\x20task\x20decision\x20edges\x20must\x20not\x20be\x20default\x20flows.','NOTIFICATION\x20node\x20requires\x20template.','boolean'];a281_0x462f=function(){return _0x46d787;};return a281_0x462f();}function resolveEffectiveResultVariable(_0x41fd86,_0x5e0ac1){const _0x457b67=a281_0x202121;if(_0x41fd86===undefined||_0x41fd86===null||_0x5e0ac1&&_0x41fd86==='')return DEFAULT_SCRIPT_RESULT_VARIABLE;if(typeof _0x41fd86!==_0x457b67(0x2a3)||!VARIABLE_PATTERN[_0x457b67(0x2da)](_0x41fd86)||RESERVED_RESULT_VARIABLES[_0x457b67(0x217)](_0x41fd86)||_0x41fd86['startsWith'](_0x457b67(0x2cb)))return undefined;return _0x41fd86;}function registerResultVariableOwner(_0x2ce185,_0x4df608,_0x44192f,_0x4b0f3c){const _0x28bd0a=a281_0x202121;if(_0x2ce185['has'](_0x4df608)){_0x4b0f3c[_0x28bd0a(0x26f)]({'path':_0x28bd0a(0x1ac),'message':_0x28bd0a(0x2d5)+_0x4df608+'.'});return;}_0x2ce185['set'](_0x4df608,_0x44192f);}function setsEqual(_0xd36263,_0x41f58d){const _0x35553a=a281_0x202121;return _0xd36263['size']===_0x41f58d['size']&&[..._0xd36263]['every'](_0x18563b=>_0x41f58d[_0x35553a(0x217)](_0x18563b));}function isValidUserId(_0x30b93c){const _0xc3be2a=a281_0x202121;if(typeof _0x30b93c===_0xc3be2a(0x2a3))return _0x30b93c['trim']()[_0xc3be2a(0x309)]>0x0;return Number[_0xc3be2a(0x29d)](_0x30b93c)&&Number(_0x30b93c)>0x0;}function resolveEdgeEndpoint(_0x17dd6b,_0x32862a){const _0x17f6d2=a281_0x202121;if(typeof _0x17dd6b==='string'&&_0x17dd6b[_0x17f6d2(0x226)]())return _0x17dd6b[_0x17f6d2(0x226)]();if(typeof _0x32862a===_0x17f6d2(0x2a3)&&_0x32862a['trim']())return _0x32862a[_0x17f6d2(0x226)]();return undefined;}function removeEmptyMetadata(_0x5c9c4f,_0x5e42fa,_0x52682c,_0x42d3e2){const _0x204c18=a281_0x202121;if(Array[_0x204c18(0x24c)](_0x5c9c4f)){_0x5c9c4f[_0x204c18(0x202)]((_0x50ac34,_0x32467a)=>removeEmptyMetadata(_0x50ac34,_0x5e42fa+'['+_0x32467a+']',_0x52682c,_0x42d3e2));return;}if(!isRecord(_0x5c9c4f))return;for(const [_0x19f5f0,_0x29261d]of Object[_0x204c18(0x2fc)](_0x5c9c4f)){const _0x18af03=_0x5e42fa+'.'+_0x19f5f0;if(_0x19f5f0===_0x204c18(0x276)&&isEmptyJsonValue(_0x29261d)){delete _0x5c9c4f[_0x19f5f0],_0x42d3e2[_0x204c18(0x26f)](_0x18af03),_0x52682c[_0x204c18(0x26f)]({'code':'empty_metadata_removed','path':_0x18af03,'message':_0x18af03+_0x204c18(0x1eb)});continue;}removeEmptyMetadata(_0x29261d,_0x18af03,_0x52682c,_0x42d3e2);}}function isEmptyJsonValue(_0x2062d6){const _0x5a45b8=a281_0x202121;if(_0x2062d6===null||_0x2062d6===undefined)return!![];if(typeof _0x2062d6===_0x5a45b8(0x2a3))return _0x2062d6['trim']()==='';if(Array[_0x5a45b8(0x24c)](_0x2062d6))return _0x2062d6[_0x5a45b8(0x309)]===0x0;return isRecord(_0x2062d6)&&Object[_0x5a45b8(0x230)](_0x2062d6)[_0x5a45b8(0x309)]===0x0;}function isRecord(_0x3e970e){const _0x330bbe=a281_0x202121;return typeof _0x3e970e===_0x330bbe(0x1bd)&&_0x3e970e!==null&&!Array[_0x330bbe(0x24c)](_0x3e970e);}function cloneJsonValue(_0x519b70){const _0x3b4c08=a281_0x202121;return JSON[_0x3b4c08(0x234)](JSON['stringify'](_0x519b70));}export async function readFlowConfigFile(_0x1f6738){const _0x6bde44=a281_0x202121,_0x384187=await readFile(resolve(_0x1f6738),_0x6bde44(0x29c));return JSON[_0x6bde44(0x234)](_0x384187);}
|
|
1
|
+
const a281_0x3406bd=a281_0x102f;(function(_0x34602a,_0x4d7cdd){const _0x3bc465=a281_0x102f,_0x1906d4=_0x34602a();while(!![]){try{const _0x3a6160=parseInt(_0x3bc465(0x179))/0x1*(-parseInt(_0x3bc465(0x1b9))/0x2)+-parseInt(_0x3bc465(0x234))/0x3*(parseInt(_0x3bc465(0x241))/0x4)+parseInt(_0x3bc465(0x23a))/0x5*(parseInt(_0x3bc465(0x22d))/0x6)+-parseInt(_0x3bc465(0x290))/0x7+-parseInt(_0x3bc465(0x1db))/0x8*(parseInt(_0x3bc465(0x172))/0x9)+-parseInt(_0x3bc465(0x142))/0xa*(-parseInt(_0x3bc465(0x239))/0xb)+-parseInt(_0x3bc465(0x1e4))/0xc*(-parseInt(_0x3bc465(0x1e9))/0xd);if(_0x3a6160===_0x4d7cdd)break;else _0x1906d4['push'](_0x1906d4['shift']());}catch(_0x1d4cf4){_0x1906d4['push'](_0x1906d4['shift']());}}}(a281_0x1c91,0x810d7));import{randomUUID}from'node:crypto';import{chmod,link,readFile,rename,stat,unlink,writeFile}from'node:fs/promises';import{resolve}from'node:path';export const FLOW_CONFIG_JSON_SCHEMA={'$schema':a281_0x3406bd(0x1cf),'$id':a281_0x3406bd(0x213),'title':a281_0x3406bd(0x195),'type':a281_0x3406bd(0x190),'required':['flowName',a281_0x3406bd(0x151),a281_0x3406bd(0x283)],'$defs':{'userId':{'anyOf':[{'type':a281_0x3406bd(0x1fe),'minLength':0x1},{'type':a281_0x3406bd(0x14a),'minimum':0x1}]},'position':{'type':a281_0x3406bd(0x190),'required':['x','y'],'properties':{'x':{'type':a281_0x3406bd(0x297),'minimum':0x0},'y':{'type':a281_0x3406bd(0x297),'minimum':0x0}},'additionalProperties':!![]},'timeAmount':{'type':a281_0x3406bd(0x190),'required':[a281_0x3406bd(0x21e),a281_0x3406bd(0x284)],'properties':{'value':{'type':a281_0x3406bd(0x14a),'minimum':0x1},'unit':{'enum':[a281_0x3406bd(0x194),a281_0x3406bd(0x24a),a281_0x3406bd(0x21d),a281_0x3406bd(0x25d)]}},'additionalProperties':!![]},'flowNode':{'type':a281_0x3406bd(0x190),'required':['id',a281_0x3406bd(0x279),a281_0x3406bd(0x206),a281_0x3406bd(0x23f)],'properties':{'id':{'type':a281_0x3406bd(0x1fe),'pattern':'^[A-Za-z_][A-Za-z0-9_]*$'},'type':{'enum':[a281_0x3406bd(0x286),a281_0x3406bd(0x1a4),a281_0x3406bd(0x271),a281_0x3406bd(0x281),a281_0x3406bd(0x215),'NOTIFICATION']},'name':{'type':a281_0x3406bd(0x1fe),'minLength':0x1},'path':{'type':a281_0x3406bd(0x1fe),'minLength':0x1},'position':{'$ref':'#/$defs/position'},'approvalMode':{'enum':[a281_0x3406bd(0x27b),'ALL','ANY']},'taskMode':{'enum':['APPROVAL','HANDLE']},'assignee':{'type':a281_0x3406bd(0x190),'required':[a281_0x3406bd(0x1b8)],'properties':{'strategy':{'enum':['FIXED','ROLE']},'userIds':{'type':a281_0x3406bd(0x27a),'minItems':0x1,'items':{'$ref':a281_0x3406bd(0x157)}},'roleId':{'anyOf':[{'type':a281_0x3406bd(0x14a),'minimum':0x1},{'type':a281_0x3406bd(0x1fe),'pattern':a281_0x3406bd(0x187)}]}},'additionalProperties':!![]},'transferCandidates':{'type':a281_0x3406bd(0x190),'required':[a281_0x3406bd(0x1b8),a281_0x3406bd(0x15d)],'properties':{'strategy':{'const':a281_0x3406bd(0x19a)},'userIds':{'type':a281_0x3406bd(0x27a),'minItems':0x1,'items':{'$ref':a281_0x3406bd(0x157)}}},'additionalProperties':!![]},'sequential':{'type':a281_0x3406bd(0x28f)},'result':{'enum':[a281_0x3406bd(0x293),a281_0x3406bd(0x1cd)]},'scriptName':{'type':a281_0x3406bd(0x1fe),'minLength':0x1},'resultVariable':{'type':'string','pattern':a281_0x3406bd(0x144)},'async':{'type':a281_0x3406bd(0x190),'properties':{'enabled':{'type':a281_0x3406bd(0x28f)},'retryCount':{'type':a281_0x3406bd(0x14a),'minimum':0x1,'maximum':0xa},'retryInterval':{'$ref':a281_0x3406bd(0x208)}},'additionalProperties':!![]},'timeout':{'type':a281_0x3406bd(0x190),'properties':{'enabled':{'type':a281_0x3406bd(0x28f)},'duration':{'$ref':a281_0x3406bd(0x208)},'action':{'enum':[a281_0x3406bd(0x1f4),a281_0x3406bd(0x1f6),a281_0x3406bd(0x1c8)]},'interrupting':{'type':a281_0x3406bd(0x28f)},'scriptName':{'type':'string','minLength':0x1},'resultVariable':{'type':a281_0x3406bd(0x1fe),'pattern':a281_0x3406bd(0x144)}},'additionalProperties':!![]},'cc':{'type':a281_0x3406bd(0x190),'required':['recipientUserIds'],'properties':{'recipientUserIds':{'type':a281_0x3406bd(0x27a),'minItems':0x1,'maxItems':0x64,'uniqueItems':!![],'items':{'type':a281_0x3406bd(0x1fe),'minLength':0x1}},'visible':{'type':a281_0x3406bd(0x27a),'uniqueItems':!![],'items':{'type':'string','minLength':0x1}},'readSources':![]},'additionalProperties':!![]},'config':{'type':'object','required':[a281_0x3406bd(0x1b2),a281_0x3406bd(0x2a6)],'properties':{'version':{'enum':['v1']},'configCode':{'type':'string','minLength':0x1},'failurePolicy':{'enum':[a281_0x3406bd(0x2af),a281_0x3406bd(0x292)]},'template':{'type':a281_0x3406bd(0x190),'required':[a281_0x3406bd(0x204),a281_0x3406bd(0x15e)],'properties':{'title':{'type':a281_0x3406bd(0x1fe),'minLength':0x1},'summary':{'type':'string','minLength':0x1},'detailMarkdown':{'type':a281_0x3406bd(0x1fe)},'facts':{'type':a281_0x3406bd(0x27a),'maxItems':0x8,'items':{'type':'object','required':[a281_0x3406bd(0x158),'value'],'properties':{'label':{'type':a281_0x3406bd(0x1fe),'minLength':0x1},'value':{'type':a281_0x3406bd(0x1fe),'minLength':0x1}},'additionalProperties':!![]}},'actions':{'type':a281_0x3406bd(0x27a),'maxItems':0x2,'items':{'type':'object','required':[a281_0x3406bd(0x1f1),a281_0x3406bd(0x209)],'properties':{'text':{'type':a281_0x3406bd(0x1fe),'minLength':0x1},'url':{'type':a281_0x3406bd(0x1fe),'minLength':0x1}},'additionalProperties':!![]}}},'additionalProperties':!![]},'recipients':{'type':'array','items':{'type':'object','required':[a281_0x3406bd(0x279),a281_0x3406bd(0x21e)],'properties':{'type':{'enum':[a281_0x3406bd(0x1e2),a281_0x3406bd(0x16f),a281_0x3406bd(0x1aa)]},'value':{'type':'string','minLength':0x1},'role':{'enum':['TO','CC',a281_0x3406bd(0x1da)]}},'additionalProperties':!![]}}},'additionalProperties':!![]},'form':![],'formPermission':![]},'additionalProperties':!![]},'flowEdge':{'type':a281_0x3406bd(0x190),'properties':{'id':{'type':'string','pattern':a281_0x3406bd(0x144)},'source':{'type':a281_0x3406bd(0x1fe),'minLength':0x1},'target':{'type':a281_0x3406bd(0x1fe),'minLength':0x1},'sourceNodeId':{'type':'string','minLength':0x1},'targetNodeId':{'type':a281_0x3406bd(0x1fe),'minLength':0x1},'conditionType':{'enum':[a281_0x3406bd(0x25e),a281_0x3406bd(0x293),a281_0x3406bd(0x1cd),a281_0x3406bd(0x171)]},'expression':{'type':a281_0x3406bd(0x1fe)},'defaultFlow':{'type':'boolean'},'name':{'type':a281_0x3406bd(0x1fe)},'waypoints':{'type':'array','items':{'$ref':a281_0x3406bd(0x162)}}},'allOf':[{'anyOf':[{'required':[a281_0x3406bd(0x199)]},{'required':[a281_0x3406bd(0x22b)]}]},{'anyOf':[{'required':[a281_0x3406bd(0x257)]},{'required':[a281_0x3406bd(0x1e6)]}]}],'additionalProperties':!![]}},'properties':{'id':![],'appCode':![],'flowName':{'type':'string','minLength':0x1},'flowDesc':{'type':a281_0x3406bd(0x1fe)},'flowType':{'enum':['FORM_FLOW',a281_0x3406bd(0x19e)]},'datasetCode':{'type':a281_0x3406bd(0x1fe),'minLength':0x1},'pageId':{'type':a281_0x3406bd(0x14a)},'templateName':![],'flowJson':{'type':'object','required':[a281_0x3406bd(0x1a0),a281_0x3406bd(0x22a)],'properties':{'flowKey':![],'flowCode':![],'flowName':![],'bindDatasetCode':![],'datasetCode':![],'appCode':![],'pageId':![],'templateName':![],'schemaVersion':{'type':a281_0x3406bd(0x1fe),'const':a281_0x3406bd(0x21f),'description':a281_0x3406bd(0x210)},'formSchema':![],'formDefinitions':![],'formPermissions':![],'pageMode':{'const':'CUSTOM_PAGE'},'startPageId':![],'startPath':{'type':a281_0x3406bd(0x1fe),'minLength':0x1},'nodes':{'type':a281_0x3406bd(0x27a),'minItems':0x1,'items':{'$ref':a281_0x3406bd(0x1a9)}},'edges':{'type':a281_0x3406bd(0x27a),'minItems':0x1,'items':{'$ref':a281_0x3406bd(0x25a)}}},'additionalProperties':!![]}},'additionalProperties':!![]};const REMOVED_FLOW_JSON_FIELDS=[a281_0x3406bd(0x20f),a281_0x3406bd(0x156),a281_0x3406bd(0x14f),a281_0x3406bd(0x1f5),a281_0x3406bd(0x201),a281_0x3406bd(0x177),a281_0x3406bd(0x1af),a281_0x3406bd(0x193)],REMOVED_ROOT_FIELDS=['id',a281_0x3406bd(0x177),a281_0x3406bd(0x193)],DEFAULT_FLOW_SCHEMA_VERSION=a281_0x3406bd(0x21f),NODE_TYPES=new Set([a281_0x3406bd(0x286),a281_0x3406bd(0x1a4),a281_0x3406bd(0x271),a281_0x3406bd(0x281),a281_0x3406bd(0x215),a281_0x3406bd(0x1d8)]),CONDITION_TYPES=new Set([a281_0x3406bd(0x25e),a281_0x3406bd(0x293),a281_0x3406bd(0x1cd),a281_0x3406bd(0x171)]),APPROVAL_MODES=new Set([a281_0x3406bd(0x27b),a281_0x3406bd(0x299),a281_0x3406bd(0x1c9)]),APPROVAL_TASK_MODES=new Set([a281_0x3406bd(0x271),'HANDLE']),FLOW_TIME_UNITS=new Set(['SECONDS',a281_0x3406bd(0x24a),a281_0x3406bd(0x21d),a281_0x3406bd(0x25d)]),APPROVAL_TIMEOUT_ACTIONS=new Set([a281_0x3406bd(0x1f4),a281_0x3406bd(0x1f6),a281_0x3406bd(0x1c8)]),FLOW_TYPES=new Set(['FORM_FLOW','INDEPENDENT_FLOW']),FLOW_PAGE_MODES=new Set(['CUSTOM_PAGE',a281_0x3406bd(0x2ac)]),BPMN_ID_PATTERN=/^[A-Za-z_][A-Za-z0-9_]*$/,VARIABLE_PATTERN=/^[A-Za-z_][A-Za-z0-9_]*$/,NOTIFICATION_PLACEHOLDER_PATTERN=/\$\{([^{}]+)\}/g,NOTIFICATION_ACTION_URL_PLACEHOLDER_PATTERN=/^\$\{(?:event|context|variables)\.[^{}]+\}$/,NOTIFICATION_FAILURE_POLICIES=new Set([a281_0x3406bd(0x2af),a281_0x3406bd(0x292)]),NOTIFICATION_RECIPIENT_TYPES=new Set(['USER',a281_0x3406bd(0x16f),a281_0x3406bd(0x1aa)]),NOTIFICATION_RECIPIENT_ROLES=new Set(['TO','CC',a281_0x3406bd(0x1da)]),MAX_NOTIFICATION_FACTS=0x8,MAX_NOTIFICATION_ACTIONS=0x2,MAX_ASYNC_RETRY_COUNT=0xa,MAX_CC_RECIPIENTS=0x64,DEFAULT_SCRIPT_RESULT_VARIABLE='scriptResult',UNSUPPORTED_FORM_MESSAGE='Custom\x20form\x20configuration\x20is\x20not\x20supported\x20by\x20this\x20rabetbase\x20version;\x20use\x20a\x20business\x20custom\x20page\x20instead.',UNSUPPORTED_PLATFORM_FORM_MESSAGE=a281_0x3406bd(0x1ac),RESERVED_RESULT_VARIABLES=new Set([a281_0x3406bd(0x176),a281_0x3406bd(0x147),'approval_sys_appCode',a281_0x3406bd(0x261),a281_0x3406bd(0x24b),'approval_sys_initiatorUsername',a281_0x3406bd(0x198),a281_0x3406bd(0x1ef),a281_0x3406bd(0x24c),a281_0x3406bd(0x196)]);export function normalizeFlowConfig(_0x540089){const _0x587928=a281_0x3406bd;if(!isRecord(_0x540089))throw new TypeError(_0x587928(0x1e0));const _0x139e2d=cloneJsonValue(_0x540089),_0x9d5e4a=_0x139e2d[_0x587928(0x283)],_0x55220b=isRecord(_0x9d5e4a)?cloneJsonValue(_0x9d5e4a):{},_0x52af1b=[],_0x15affb=[];for(const _0x1462d2 of REMOVED_ROOT_FIELDS){if(!Object[_0x587928(0x1f7)][_0x587928(0x1ed)][_0x587928(0x256)](_0x139e2d,_0x1462d2))continue;delete _0x139e2d[_0x1462d2],_0x15affb[_0x587928(0x262)](_0x1462d2),_0x52af1b[_0x587928(0x262)]({'code':_0x587928(0x24d),'path':_0x1462d2,'message':_0x1462d2+_0x587928(0x143)});}for(const _0x34a705 of REMOVED_FLOW_JSON_FIELDS){if(!Object[_0x587928(0x1f7)]['hasOwnProperty'][_0x587928(0x256)](_0x55220b,_0x34a705))continue;const _0x504ae6=_0x587928(0x237)+_0x34a705;delete _0x55220b[_0x34a705],_0x15affb['push'](_0x504ae6),_0x52af1b[_0x587928(0x262)]({'code':'legacy_field_removed','path':_0x504ae6,'message':_0x504ae6+_0x587928(0x143)});}if(Object['prototype'][_0x587928(0x1ed)][_0x587928(0x256)](_0x55220b,_0x587928(0x14d))){const _0x31667e=_0x55220b[_0x587928(0x14d)],_0x32c4ad=typeof _0x31667e===_0x587928(0x1fe)?_0x31667e[_0x587928(0x26a)]():_0x31667e;if(isEmptyJsonValue(_0x31667e)||_0x32c4ad===DEFAULT_FLOW_SCHEMA_VERSION){const _0x176150=_0x587928(0x1c5);delete _0x55220b[_0x587928(0x14d)],_0x15affb[_0x587928(0x262)](_0x176150),_0x52af1b[_0x587928(0x262)]({'code':'legacy_field_removed','path':_0x176150,'message':_0x176150+_0x587928(0x25b)+DEFAULT_FLOW_SCHEMA_VERSION+_0x587928(0x218)});}}removeEmptyMetadata(_0x55220b,_0x587928(0x283),_0x52af1b,_0x15affb);_0x139e2d[_0x587928(0x151)]==='INDEPENDENT_FLOW'&&!Object['prototype'][_0x587928(0x1ed)]['call'](_0x55220b,_0x587928(0x276))&&(_0x55220b[_0x587928(0x276)]=_0x587928(0x1c4));_0x139e2d[_0x587928(0x283)]=_0x55220b;if(typeof _0x139e2d[_0x587928(0x14f)]==='string')_0x139e2d['flowName']=_0x139e2d['flowName'][_0x587928(0x26a)]();return{'config':_0x139e2d,'warnings':_0x52af1b,'removedPaths':_0x15affb};}export function validateFlowConfig(_0x20ae3a){const _0x527f94=a281_0x3406bd;let _0x55ea6e;try{_0x55ea6e=normalizeFlowConfig(_0x20ae3a);}catch(_0xe60742){const _0x1accf3=_0xe60742 instanceof Error?_0xe60742['message']:String(_0xe60742),_0x10e2be={'flowJson':{}};return{'valid':![],'errors':[{'path':'$','message':_0x1accf3}],'warnings':[],'normalized':_0x10e2be,'validationConfig':_0x10e2be};}const _0x3f002d=_0x55ea6e[_0x527f94(0x1eb)],_0x59867a=cloneJsonValue(_0x3f002d),_0x1c24cb=_0x59867a[_0x527f94(0x283)];_0x1c24cb[_0x527f94(0x20f)]=_0x527f94(0x202),_0x1c24cb['flowName']=_0x3f002d['flowName'];typeof _0x3f002d[_0x527f94(0x201)]===_0x527f94(0x1fe)&&_0x3f002d[_0x527f94(0x201)][_0x527f94(0x26a)]()&&(_0x1c24cb['bindDatasetCode']=_0x3f002d[_0x527f94(0x201)][_0x527f94(0x26a)]());const _0x25ed8c=[];return validateOuterMetadata(_0x3f002d,_0x25ed8c),validateFlowClassification(_0x3f002d,_0x25ed8c),validateGraph(_0x3f002d[_0x527f94(0x283)],_0x25ed8c),{'valid':_0x25ed8c[_0x527f94(0x203)]===0x0,'errors':_0x25ed8c,'warnings':_0x55ea6e[_0x527f94(0x247)],'normalized':_0x3f002d,'validationConfig':_0x59867a};}function validateFlowClassification(_0x8b5121,_0x3b5f25){const _0x34bd52=a281_0x3406bd;if(!isRecord(_0x8b5121[_0x34bd52(0x283)]))return;const _0x1b0b4c=_0x8b5121[_0x34bd52(0x151)],_0x31f52a=_0x8b5121[_0x34bd52(0x283)][_0x34bd52(0x276)];_0x31f52a!==undefined&&(typeof _0x31f52a!==_0x34bd52(0x1fe)||!FLOW_PAGE_MODES[_0x34bd52(0x152)](_0x31f52a))&&_0x3b5f25['push']({'path':_0x34bd52(0x1d2),'message':_0x34bd52(0x272)+String(_0x31f52a)+'.'});_0x1b0b4c===_0x34bd52(0x17e)&&_0x31f52a!==undefined&&_0x3b5f25[_0x34bd52(0x262)]({'path':_0x34bd52(0x1d2),'message':_0x34bd52(0x188)});_0x1b0b4c==='INDEPENDENT_FLOW'&&_0x31f52a==='PLATFORM_FORM'&&_0x3b5f25[_0x34bd52(0x262)]({'path':_0x34bd52(0x1d2),'message':UNSUPPORTED_PLATFORM_FORM_MESSAGE});(_0x1b0b4c==='FORM_FLOW'||_0x1b0b4c===_0x34bd52(0x19e))&&validateCustomPageNavigation(_0x8b5121,_0x1b0b4c,_0x31f52a,_0x3b5f25);if(_0x1b0b4c!==_0x34bd52(0x17e)||!Array[_0x34bd52(0x1fb)](_0x8b5121[_0x34bd52(0x283)][_0x34bd52(0x1a0)]))return;_0x8b5121['flowJson'][_0x34bd52(0x1a0)][_0x34bd52(0x269)]((_0x5643f9,_0x52c9f6)=>{const _0x7fbedb=_0x34bd52;isRecord(_0x5643f9)&&_0x5643f9[_0x7fbedb(0x279)]===_0x7fbedb(0x271)&&_0x5643f9['taskMode']==='HANDLE'&&_0x3b5f25[_0x7fbedb(0x262)]({'path':'flowJson.nodes['+_0x52c9f6+_0x7fbedb(0x1ff),'message':_0x7fbedb(0x1bd)});});}function validateCustomPageNavigation(_0xb66e75,_0x2ee0af,_0x4aa555,_0x118143){const _0x48329e=a281_0x3406bd,_0x49a478=_0xb66e75[_0x48329e(0x283)]['startPageId'];_0x49a478!==undefined&&_0x118143['push']({'path':'flowJson.startPageId','message':_0x48329e(0x16d)});const _0x35ad31=_0xb66e75['flowJson'][_0x48329e(0x141)];_0x35ad31!==undefined&&(typeof _0x35ad31!==_0x48329e(0x1fe)||_0x35ad31['trim']()==='')&&_0x118143[_0x48329e(0x262)]({'path':_0x48329e(0x2a4),'message':_0x48329e(0x221)});const _0x300040=Array[_0x48329e(0x1fb)](_0xb66e75['flowJson'][_0x48329e(0x1a0)])?_0xb66e75['flowJson'][_0x48329e(0x1a0)][_0x48329e(0x1e5)]((_0x119f7b,_0x1c947b)=>({'node':_0x119f7b,'index':_0x1c947b}))['filter'](({node:_0x5e056a})=>isRecord(_0x5e056a)&&_0x5e056a[_0x48329e(0x223)]!==undefined):[],_0x9f3150=_0x35ad31!==undefined||_0x300040[_0x48329e(0x203)]>0x0,_0x556890=_0x4aa555===undefined&&_0x2ee0af==='INDEPENDENT_FLOW'?'CUSTOM_PAGE':_0x4aa555;_0x9f3150&&(_0x2ee0af!=='INDEPENDENT_FLOW'||_0x556890!==_0x48329e(0x1c4))&&(_0x35ad31!==undefined&&_0x118143[_0x48329e(0x262)]({'path':'flowJson.startPath','message':_0x48329e(0x220)}),_0x300040[_0x48329e(0x269)](({index:_0x4d4c6d})=>{const _0x5b21b9=_0x48329e;_0x118143[_0x5b21b9(0x262)]({'path':_0x5b21b9(0x1a5)+_0x4d4c6d+_0x5b21b9(0x255),'message':_0x5b21b9(0x164)});}));}export async function writeNormalizedFlowConfig(_0x2d056c,_0x42ea13,_0x1312f7={}){const _0x58183d=a281_0x3406bd,_0x83f354=resolve(_0x2d056c),_0x3e7799=_0x83f354+'.'+process['pid']+'.'+randomUUID()+_0x58183d(0x28a),_0x589649=JSON[_0x58183d(0x249)](_0x42ea13,null,0x2)+'\x0a';let _0x12d196;try{try{_0x12d196=(await stat(_0x83f354))['mode']&0x1ff;}catch{_0x12d196=undefined;}await writeFile(_0x3e7799,_0x589649,{'encoding':'utf8','flag':'wx','mode':_0x12d196??0x1a4});if(_0x12d196!==undefined)await chmod(_0x3e7799,_0x12d196);_0x1312f7[_0x58183d(0x1be)]===![]?(await link(_0x3e7799,_0x83f354),await unlink(_0x3e7799)):await rename(_0x3e7799,_0x83f354);}finally{await unlink(_0x3e7799)[_0x58183d(0x2ab)](()=>undefined);}}function validateOuterMetadata(_0x578105,_0x14f87f){const _0x5b4e25=a281_0x3406bd;(typeof _0x578105['flowName']!==_0x5b4e25(0x1fe)||_0x578105['flowName'][_0x5b4e25(0x26a)]()==='')&&_0x14f87f[_0x5b4e25(0x262)]({'path':'flowName','message':_0x5b4e25(0x20e)});_0x578105[_0x5b4e25(0x20a)]!==undefined&&typeof _0x578105[_0x5b4e25(0x20a)]!==_0x5b4e25(0x1fe)&&_0x14f87f[_0x5b4e25(0x262)]({'path':_0x5b4e25(0x20a),'message':_0x5b4e25(0x19d)});if(_0x578105['flowType']===undefined||_0x578105['flowType']===null)_0x14f87f[_0x5b4e25(0x262)]({'path':_0x5b4e25(0x151),'message':_0x5b4e25(0x1b4)});else(typeof _0x578105[_0x5b4e25(0x151)]!==_0x5b4e25(0x1fe)||!FLOW_TYPES[_0x5b4e25(0x152)](_0x578105[_0x5b4e25(0x151)]))&&_0x14f87f[_0x5b4e25(0x262)]({'path':_0x5b4e25(0x151),'message':_0x5b4e25(0x27d)+String(_0x578105[_0x5b4e25(0x151)])+'.'});_0x578105[_0x5b4e25(0x201)]!==undefined&&typeof _0x578105[_0x5b4e25(0x201)]!==_0x5b4e25(0x1fe)&&_0x14f87f[_0x5b4e25(0x262)]({'path':_0x5b4e25(0x201),'message':'datasetCode\x20must\x20be\x20a\x20string.'}),_0x578105[_0x5b4e25(0x1af)]!==undefined&&(!Number[_0x5b4e25(0x231)](_0x578105[_0x5b4e25(0x1af)])||_0x578105[_0x5b4e25(0x1af)]<0x0)&&_0x14f87f[_0x5b4e25(0x262)]({'path':_0x5b4e25(0x1af),'message':_0x5b4e25(0x1ce)}),_0x578105[_0x5b4e25(0x151)]===_0x5b4e25(0x19e)&&_0x578105[_0x5b4e25(0x201)]!==undefined&&_0x14f87f[_0x5b4e25(0x262)]({'path':_0x5b4e25(0x201),'message':_0x5b4e25(0x238)}),_0x578105[_0x5b4e25(0x151)]===_0x5b4e25(0x19e)&&_0x578105[_0x5b4e25(0x1af)]!==undefined&&_0x14f87f['push']({'path':_0x5b4e25(0x1af),'message':_0x5b4e25(0x28c)});}function validateGraph(_0x5a9cb9,_0xfb8c07){const _0x3b1569=a281_0x3406bd;if(!isRecord(_0x5a9cb9)){_0xfb8c07[_0x3b1569(0x262)]({'path':_0x3b1569(0x283),'message':_0x3b1569(0x1ae)});return;}!Array[_0x3b1569(0x1fb)](_0x5a9cb9[_0x3b1569(0x1a0)])&&_0xfb8c07[_0x3b1569(0x262)]({'path':_0x3b1569(0x291),'message':_0x3b1569(0x20b)});!Array[_0x3b1569(0x1fb)](_0x5a9cb9[_0x3b1569(0x22a)])&&_0xfb8c07[_0x3b1569(0x262)]({'path':_0x3b1569(0x167),'message':_0x3b1569(0x244)});Object[_0x3b1569(0x1f7)][_0x3b1569(0x1ed)][_0x3b1569(0x256)](_0x5a9cb9,_0x3b1569(0x14d))&&_0xfb8c07['push']({'path':_0x3b1569(0x1c5),'message':_0x3b1569(0x15f)+String(_0x5a9cb9[_0x3b1569(0x14d)])+'.\x20This\x20CLI\x20supports\x20only\x20'+DEFAULT_FLOW_SCHEMA_VERSION+'.'});for(const _0x53baf6 of[_0x3b1569(0x1ea),_0x3b1569(0x1d6),_0x3b1569(0x277)]){Object[_0x3b1569(0x1f7)][_0x3b1569(0x1ed)]['call'](_0x5a9cb9,_0x53baf6)&&_0xfb8c07['push']({'path':_0x3b1569(0x237)+_0x53baf6,'message':UNSUPPORTED_FORM_MESSAGE});}if(!Array[_0x3b1569(0x1fb)](_0x5a9cb9[_0x3b1569(0x1a0)])||!Array[_0x3b1569(0x1fb)](_0x5a9cb9[_0x3b1569(0x22a)]))return;const _0x33b12=new Map(),_0x55edf=[],_0x4bc0f2=[],_0x27d103=new Map(),_0x260011=new Map(),_0xc6d021=new Set();let _0x36de67=0x0;_0x5a9cb9['nodes']['forEach']((_0x22f65e,_0x2c2530)=>{const _0x190016=_0x3b1569,_0x52eab1=_0x190016(0x1a5)+_0x2c2530+']';if(!isRecord(_0x22f65e)){_0xfb8c07[_0x190016(0x262)]({'path':_0x52eab1,'message':'node\x20must\x20be\x20an\x20object.'});return;}const _0x243324=_0x22f65e;if(typeof _0x243324['id']!==_0x190016(0x1fe)||!BPMN_ID_PATTERN['test'](_0x243324['id']))_0xfb8c07['push']({'path':_0x52eab1+_0x190016(0x1a1),'message':'node\x20id\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.'});else _0x33b12[_0x190016(0x152)](_0x243324['id'])?_0xfb8c07[_0x190016(0x262)]({'path':_0x52eab1+_0x190016(0x1a1),'message':_0x190016(0x28d)+_0x243324['id']+'.'}):(_0x33b12[_0x190016(0x26b)](_0x243324['id'],_0x243324),_0xc6d021['add'](_0x243324['id']));if(!NODE_TYPES[_0x190016(0x152)](_0x243324['type']))_0xfb8c07[_0x190016(0x262)]({'path':_0x52eab1+_0x190016(0x267),'message':'Unsupported\x20node\x20type:\x20'+String(_0x243324[_0x190016(0x279)])+'.'});else{if(_0x243324[_0x190016(0x279)]==='START')_0x55edf['push'](_0x243324['id']);else _0x243324[_0x190016(0x279)]===_0x190016(0x1a4)&&_0x4bc0f2[_0x190016(0x262)](_0x243324['id']);}_0x243324['type']===_0x190016(0x271)&&(_0x243324[_0x190016(0x173)]===undefined||_0x243324['taskMode']===_0x190016(0x271))&&(_0x36de67+=0x1);validateNode(_0x243324,_0x52eab1,_0xfb8c07);if(_0x243324[_0x190016(0x279)]==='SCRIPT'){const _0x2256e8=resolveEffectiveResultVariable(_0x243324[_0x190016(0x28b)],![]);_0x2256e8&&(registerResultVariableOwner(_0x260011,_0x2256e8,_0x243324['id'],_0xfb8c07),!_0x27d103['has'](_0x2256e8)&&_0x27d103['set'](_0x2256e8,_0x243324['id']));}if(_0x243324['type']===_0x190016(0x271)&&isRecord(_0x243324[_0x190016(0x227)])&&_0x243324[_0x190016(0x227)]['enabled']===!![]&&_0x243324[_0x190016(0x227)][_0x190016(0x2a3)]===_0x190016(0x1c8)){const _0x4b6ce9=resolveEffectiveResultVariable(_0x243324[_0x190016(0x227)]['resultVariable'],!![]);_0x4b6ce9&®isterResultVariableOwner(_0x260011,_0x4b6ce9,_0x243324['id']+_0x190016(0x22c),_0xfb8c07);}});_0x55edf[_0x3b1569(0x203)]!==0x1&&_0xfb8c07[_0x3b1569(0x262)]({'path':'flowJson.nodes','message':_0x3b1569(0x1c2)});_0x4bc0f2[_0x3b1569(0x203)]===0x0&&_0xfb8c07['push']({'path':_0x3b1569(0x291),'message':_0x3b1569(0x25f)});const _0xbc5efb=new Map(),_0x49d431=new Map(),_0x69a235=new Map(),_0x381286=new Set();_0x5a9cb9[_0x3b1569(0x22a)][_0x3b1569(0x269)]((_0x422e96,_0x28cdba)=>{const _0x5c9427=_0x3b1569,_0x59176e=_0x5c9427(0x16c)+_0x28cdba+']';if(!isRecord(_0x422e96)){_0xfb8c07[_0x5c9427(0x262)]({'path':_0x59176e,'message':_0x5c9427(0x226)});return;}const _0x330e56=_0x422e96;_0x69a235['set'](_0x330e56,_0x59176e);const _0x5e1ab1=resolveEdgeEndpoint(_0x330e56[_0x5c9427(0x199)],_0x330e56[_0x5c9427(0x22b)]),_0x11448e=resolveEdgeEndpoint(_0x330e56[_0x5c9427(0x257)],_0x330e56[_0x5c9427(0x1e6)]);if(!_0x5e1ab1)_0xfb8c07[_0x5c9427(0x262)]({'path':_0x59176e+_0x5c9427(0x2a1),'message':_0x5c9427(0x1d7)});if(!_0x11448e)_0xfb8c07['push']({'path':_0x59176e+'.target','message':'edge\x20target\x20is\x20required.'});_0x5e1ab1&&!_0x33b12[_0x5c9427(0x152)](_0x5e1ab1)&&_0xfb8c07[_0x5c9427(0x262)]({'path':_0x59176e+'.source','message':_0x5c9427(0x233)+_0x5e1ab1+'.'});_0x11448e&&!_0x33b12[_0x5c9427(0x152)](_0x11448e)&&_0xfb8c07[_0x5c9427(0x262)]({'path':_0x59176e+_0x5c9427(0x236),'message':'Edge\x20target\x20node\x20not\x20found:\x20'+_0x11448e+'.'});if(_0x330e56['id']!==undefined){if(typeof _0x330e56['id']!==_0x5c9427(0x1fe)||!BPMN_ID_PATTERN['test'](_0x330e56['id']))_0xfb8c07[_0x5c9427(0x262)]({'path':_0x59176e+_0x5c9427(0x1a1),'message':_0x5c9427(0x1a8)});else{if(_0xc6d021[_0x5c9427(0x152)](_0x330e56['id']))_0xfb8c07[_0x5c9427(0x262)]({'path':_0x59176e+_0x5c9427(0x1a1),'message':_0x5c9427(0x20d)+_0x330e56['id']+'.'});else!_0xc6d021[_0x5c9427(0x152)](_0x330e56['id'])&&_0xc6d021[_0x5c9427(0x224)](_0x330e56['id']);}}if(_0x5e1ab1&&_0x11448e){const _0x32b517=_0x5e1ab1+'\x00'+_0x11448e+'\x00'+(_0x330e56[_0x5c9427(0x264)]??'ALWAYS');_0x381286[_0x5c9427(0x152)](_0x32b517)?_0xfb8c07[_0x5c9427(0x262)]({'path':_0x59176e,'message':_0x5c9427(0x216)+_0x5e1ab1+_0x5c9427(0x295)+_0x11448e+'\x20('+(_0x330e56[_0x5c9427(0x264)]??_0x5c9427(0x25e))+').'}):_0x381286[_0x5c9427(0x224)](_0x32b517);}validateEdge(_0x330e56,_0x59176e,_0xfb8c07),_0x5e1ab1&&_0x11448e&&(_0xbc5efb[_0x5c9427(0x1d9)](_0x5e1ab1)?.[_0x5c9427(0x262)](_0x330e56)??_0xbc5efb[_0x5c9427(0x26b)](_0x5e1ab1,[_0x330e56]),_0x49d431[_0x5c9427(0x1d9)](_0x11448e)?.['push'](_0x330e56)??_0x49d431[_0x5c9427(0x26b)](_0x11448e,[_0x330e56]));});if(_0x55edf[_0x3b1569(0x203)]!==0x1)return;validateGraphShape(_0x33b12,_0x55edf[0x0],_0x4bc0f2,_0xbc5efb,_0x49d431,_0x69a235,_0xfb8c07),validateScriptResultReferences(_0x33b12,_0x55edf[0x0],_0xbc5efb,_0x49d431,_0x69a235,_0x27d103,_0xfb8c07),validateApprovalResults(_0x33b12,_0x36de67,_0x4bc0f2,_0xfb8c07);}function validateNode(_0x418903,_0xab4347,_0x411380){const _0x17917d=a281_0x3406bd;for(const _0x4b4be5 of[_0x17917d(0x1f3),'formPermission']){Object[_0x17917d(0x1f7)][_0x17917d(0x1ed)]['call'](_0x418903,_0x4b4be5)&&_0x411380[_0x17917d(0x262)]({'path':_0xab4347+'.'+_0x4b4be5,'message':UNSUPPORTED_FORM_MESSAGE});}if(!NODE_TYPES[_0x17917d(0x152)](_0x418903[_0x17917d(0x279)]))return;(typeof _0x418903['name']!==_0x17917d(0x1fe)||_0x418903[_0x17917d(0x206)]['trim']()==='')&&_0x411380[_0x17917d(0x262)]({'path':_0xab4347+_0x17917d(0x19c),'message':'Every\x20node\x20requires\x20a\x20non-empty\x20name.'});_0x418903[_0x17917d(0x1af)]!==undefined&&_0x411380[_0x17917d(0x262)]({'path':_0xab4347+_0x17917d(0x165),'message':_0x17917d(0x214)});if(_0x418903[_0x17917d(0x223)]!==undefined){if(typeof _0x418903[_0x17917d(0x223)]!==_0x17917d(0x1fe)||_0x418903['path'][_0x17917d(0x26a)]()==='')_0x411380[_0x17917d(0x262)]({'path':_0xab4347+_0x17917d(0x2a5),'message':_0x17917d(0x170)});else _0x418903[_0x17917d(0x279)]!==_0x17917d(0x271)&&_0x418903[_0x17917d(0x279)]!==_0x17917d(0x1a4)&&_0x411380[_0x17917d(0x262)]({'path':_0xab4347+_0x17917d(0x2a5),'message':'node\x20path\x20is\x20supported\x20only\x20on\x20APPROVAL\x20or\x20END\x20nodes.'});}const _0x4ab451=_0x418903[_0x17917d(0x23f)];if(!isRecord(_0x4ab451))_0x411380[_0x17917d(0x262)]({'path':_0xab4347+_0x17917d(0x168),'message':_0x17917d(0x1e3)});else for(const _0x10de0a of['x','y']){const _0x4395b0=_0x4ab451[_0x10de0a];(typeof _0x4395b0!==_0x17917d(0x297)||!Number[_0x17917d(0x1a6)](_0x4395b0)||_0x4395b0<0x0)&&_0x411380[_0x17917d(0x262)]({'path':_0xab4347+_0x17917d(0x22f)+_0x10de0a,'message':_0x17917d(0x1ee)+_0x10de0a+_0x17917d(0x1c0)});}if(_0x418903['type']===_0x17917d(0x271)){const _0x445b18=_0x418903[_0x17917d(0x1bf)]??'SINGLE',_0x19f8ed=_0x418903[_0x17917d(0x173)]??_0x17917d(0x271);!APPROVAL_TASK_MODES[_0x17917d(0x152)](_0x19f8ed)&&_0x411380[_0x17917d(0x262)]({'path':_0xab4347+_0x17917d(0x296),'message':_0x17917d(0x24f)+String(_0x19f8ed)+'.'});!APPROVAL_MODES['has'](_0x445b18)&&_0x411380[_0x17917d(0x262)]({'path':_0xab4347+_0x17917d(0x1e1),'message':'Unsupported\x20approval\x20mode:\x20'+String(_0x445b18)+'.'});if(!isRecord(_0x418903[_0x17917d(0x26d)]))_0x411380['push']({'path':_0xab4347+'.assignee','message':_0x17917d(0x246)});else{const _0x8f24fd=_0x418903[_0x17917d(0x26d)][_0x17917d(0x1b8)];_0x8f24fd!==_0x17917d(0x19a)&&_0x8f24fd!==_0x17917d(0x16f)&&_0x411380[_0x17917d(0x262)]({'path':_0xab4347+_0x17917d(0x1ca),'message':'assignee.strategy\x20must\x20be\x20FIXED\x20or\x20ROLE.'});if(_0x8f24fd===_0x17917d(0x19a)){const _0x2290c4=_0x418903[_0x17917d(0x26d)]['userIds'];if(!Array[_0x17917d(0x1fb)](_0x2290c4)||_0x2290c4[_0x17917d(0x203)]===0x0)_0x411380[_0x17917d(0x262)]({'path':_0xab4347+'.assignee.userIds','message':_0x17917d(0x1ec)});else{const _0x43d521=_0x2290c4[_0x17917d(0x21b)](_0x46e5ec=>!isValidUserId(_0x46e5ec));_0x43d521>=0x0&&_0x411380[_0x17917d(0x262)]({'path':_0xab4347+'.assignee.userIds['+_0x43d521+']','message':_0x17917d(0x19b)});const _0x4f1dcc=new Set(_0x2290c4[_0x17917d(0x191)](isValidUserId)[_0x17917d(0x1e5)](_0x139f4b=>String(_0x139f4b)[_0x17917d(0x26a)]()));_0x445b18===_0x17917d(0x27b)&&_0x4f1dcc['size']>0x1&&_0x411380[_0x17917d(0x262)]({'path':_0xab4347+_0x17917d(0x178),'message':_0x17917d(0x14e)});}}if(_0x8f24fd===_0x17917d(0x16f)){const _0x1bb9ef=_0x418903['assignee'][_0x17917d(0x1bb)],_0x3517c4=typeof _0x1bb9ef===_0x17917d(0x297)||typeof _0x1bb9ef===_0x17917d(0x1fe)?Number(String(_0x1bb9ef)[_0x17917d(0x26a)]()):Number[_0x17917d(0x21a)];(!Number[_0x17917d(0x169)](_0x3517c4)||_0x3517c4<=0x0)&&_0x411380[_0x17917d(0x262)]({'path':_0xab4347+_0x17917d(0x24e),'message':_0x17917d(0x1a2)});}}if(_0x418903[_0x17917d(0x1e7)]!==undefined){if(!isRecord(_0x418903[_0x17917d(0x1e7)]))_0x411380[_0x17917d(0x262)]({'path':_0xab4347+'.transferCandidates','message':_0x17917d(0x14c)});else{if(_0x418903[_0x17917d(0x1e7)][_0x17917d(0x1b8)]!==_0x17917d(0x19a))_0x411380[_0x17917d(0x262)]({'path':_0xab4347+_0x17917d(0x280),'message':'transferCandidates\x20currently\x20supports\x20FIXED\x20only.'});else{const _0x427801=_0x418903[_0x17917d(0x1e7)]['userIds'];if(!Array[_0x17917d(0x1fb)](_0x427801)||_0x427801[_0x17917d(0x203)]===0x0)_0x411380['push']({'path':_0xab4347+_0x17917d(0x29f),'message':_0x17917d(0x16a)});else{const _0x47445e=_0x427801['findIndex'](_0x3899e4=>!isValidUserId(_0x3899e4));_0x47445e>=0x0&&_0x411380[_0x17917d(0x262)]({'path':_0xab4347+_0x17917d(0x27c)+_0x47445e+']','message':_0x17917d(0x260)});}}}}}_0x418903['sequential']!==undefined&&typeof _0x418903[_0x17917d(0x18d)]!==_0x17917d(0x28f)&&_0x411380[_0x17917d(0x262)]({'path':_0xab4347+'.sequential','message':_0x17917d(0x18f)});if(_0x418903[_0x17917d(0x279)]===_0x17917d(0x215)){(typeof _0x418903[_0x17917d(0x184)]!==_0x17917d(0x1fe)||_0x418903[_0x17917d(0x184)][_0x17917d(0x26a)]()==='')&&_0x411380[_0x17917d(0x262)]({'path':_0xab4347+_0x17917d(0x228),'message':_0x17917d(0x1a7)});if(_0x418903[_0x17917d(0x28b)]!==undefined){if(typeof _0x418903[_0x17917d(0x28b)]!==_0x17917d(0x1fe)||!VARIABLE_PATTERN[_0x17917d(0x285)](_0x418903[_0x17917d(0x28b)]))_0x411380[_0x17917d(0x262)]({'path':_0xab4347+_0x17917d(0x1f8),'message':_0x17917d(0x211)});else(RESERVED_RESULT_VARIABLES[_0x17917d(0x152)](_0x418903[_0x17917d(0x28b)])||_0x418903[_0x17917d(0x28b)]['startsWith'](_0x17917d(0x183)))&&_0x411380[_0x17917d(0x262)]({'path':_0xab4347+'.resultVariable','message':_0x17917d(0x1dd)+_0x418903['resultVariable']+'.'});}}validateAsyncExecution(_0x418903,_0xab4347,_0x411380),validateApprovalTimeout(_0x418903,_0xab4347,_0x411380),validateCcConfig(_0x418903,_0xab4347,_0x411380),_0x418903['type']===_0x17917d(0x1d8)&&validateNotificationConfig(_0x418903[_0x17917d(0x1eb)],_0xab4347+_0x17917d(0x29b),_0x411380);}function validateAsyncExecution(_0x191460,_0x2f8cc2,_0x57383e){const _0x45f10d=a281_0x3406bd;if(_0x191460[_0x45f10d(0x266)]===undefined)return;if(!isRecord(_0x191460['async'])){_0x57383e[_0x45f10d(0x262)]({'path':_0x2f8cc2+'.async','message':'async\x20must\x20be\x20an\x20object.'});return;}if(_0x191460[_0x45f10d(0x266)]['enabled']!==undefined&&typeof _0x191460['async']['enabled']!==_0x45f10d(0x28f)){_0x57383e['push']({'path':_0x2f8cc2+_0x45f10d(0x17b),'message':_0x45f10d(0x1d1)});return;}if(_0x191460[_0x45f10d(0x266)]['enabled']!==!![])return;_0x191460['type']!==_0x45f10d(0x215)&&_0x57383e[_0x45f10d(0x262)]({'path':_0x2f8cc2+_0x45f10d(0x275),'message':_0x45f10d(0x205)});const _0x5ba7cb=_0x191460[_0x45f10d(0x266)]['retryCount']??0x3;(!Number[_0x45f10d(0x231)](_0x5ba7cb)||_0x5ba7cb<0x1||_0x5ba7cb>MAX_ASYNC_RETRY_COUNT)&&_0x57383e[_0x45f10d(0x262)]({'path':_0x2f8cc2+'.async.retryCount','message':_0x45f10d(0x1f2)+MAX_ASYNC_RETRY_COUNT+'.'}),_0x191460['async'][_0x45f10d(0x207)]!==undefined&&validateTimeAmount(_0x191460[_0x45f10d(0x266)][_0x45f10d(0x207)],_0x2f8cc2+_0x45f10d(0x27f),_0x57383e);}function a281_0x102f(_0x2c7563,_0x917277){_0x2c7563=_0x2c7563-0x141;const _0x1c91b9=a281_0x1c91();let _0x102f71=_0x1c91b9[_0x2c7563];return _0x102f71;}function validateApprovalTimeout(_0x4d069d,_0x49374a,_0x328ff8){const _0x33af46=a281_0x3406bd;if(_0x4d069d['timeout']===undefined)return;if(!isRecord(_0x4d069d[_0x33af46(0x227)])){_0x328ff8[_0x33af46(0x262)]({'path':_0x49374a+_0x33af46(0x22c),'message':_0x33af46(0x254)});return;}if(_0x4d069d['timeout']['enabled']!==undefined&&typeof _0x4d069d[_0x33af46(0x227)][_0x33af46(0x2ad)]!=='boolean'){_0x328ff8[_0x33af46(0x262)]({'path':_0x49374a+'.timeout.enabled','message':'timeout.enabled\x20must\x20be\x20a\x20boolean.'});return;}if(_0x4d069d[_0x33af46(0x227)][_0x33af46(0x2ad)]!==!![])return;if(_0x4d069d[_0x33af46(0x227)]['interrupting']!==undefined&&typeof _0x4d069d[_0x33af46(0x227)]['interrupting']!==_0x33af46(0x28f)){_0x328ff8['push']({'path':_0x49374a+_0x33af46(0x1b7),'message':_0x33af46(0x258)});return;}_0x4d069d[_0x33af46(0x279)]!==_0x33af46(0x271)&&_0x328ff8['push']({'path':_0x49374a+'.timeout','message':_0x33af46(0x259)});validateTimeAmount(_0x4d069d[_0x33af46(0x227)]['duration'],_0x49374a+_0x33af46(0x252),_0x328ff8);const _0x12c6f2=_0x4d069d[_0x33af46(0x227)][_0x33af46(0x2a3)];if(!APPROVAL_TIMEOUT_ACTIONS[_0x33af46(0x152)](_0x12c6f2)){_0x328ff8[_0x33af46(0x262)]({'path':_0x49374a+_0x33af46(0x16b),'message':_0x33af46(0x1c6)});return;}(_0x4d069d[_0x33af46(0x173)]??_0x33af46(0x271))===_0x33af46(0x163)&&_0x12c6f2!==_0x33af46(0x1c8)&&_0x328ff8['push']({'path':_0x49374a+_0x33af46(0x16b),'message':_0x33af46(0x154)});const _0x2c2c40=_0x4d069d[_0x33af46(0x227)]['interrupting']??_0x12c6f2!==_0x33af46(0x1c8);if(_0x12c6f2===_0x33af46(0x1c8))_0x2c2c40&&_0x328ff8[_0x33af46(0x262)]({'path':_0x49374a+_0x33af46(0x1b7),'message':_0x33af46(0x1fd)}),(typeof _0x4d069d[_0x33af46(0x227)][_0x33af46(0x184)]!==_0x33af46(0x1fe)||_0x4d069d[_0x33af46(0x227)][_0x33af46(0x184)]['trim']()==='')&&_0x328ff8[_0x33af46(0x262)]({'path':_0x49374a+_0x33af46(0x268),'message':_0x33af46(0x160)}),validateOptionalResultVariable(_0x4d069d[_0x33af46(0x227)][_0x33af46(0x28b)],_0x49374a+_0x33af46(0x145),_0x328ff8);else!_0x2c2c40&&_0x328ff8[_0x33af46(0x262)]({'path':_0x49374a+_0x33af46(0x1b7),'message':_0x12c6f2+_0x33af46(0x175)});}function validateTimeAmount(_0x4e3e64,_0x559e19,_0x2e5919){const _0x4c3e0d=a281_0x3406bd;if(!isRecord(_0x4e3e64)){_0x2e5919[_0x4c3e0d(0x262)]({'path':_0x559e19,'message':_0x4c3e0d(0x2a2)});return;}(!Number[_0x4c3e0d(0x231)](_0x4e3e64[_0x4c3e0d(0x21e)])||Number(_0x4e3e64[_0x4c3e0d(0x21e)])<=0x0)&&_0x2e5919[_0x4c3e0d(0x262)]({'path':_0x559e19+'.value','message':_0x4c3e0d(0x161)}),!FLOW_TIME_UNITS[_0x4c3e0d(0x152)](_0x4e3e64['unit'])&&_0x2e5919[_0x4c3e0d(0x262)]({'path':_0x559e19+'.unit','message':_0x4c3e0d(0x242)});}function validateOptionalResultVariable(_0x25da3a,_0x3ceaec,_0x5abadd){const _0x461cf0=a281_0x3406bd;if(_0x25da3a===undefined||_0x25da3a===null||_0x25da3a==='')return;if(typeof _0x25da3a!==_0x461cf0(0x1fe)||!VARIABLE_PATTERN['test'](_0x25da3a))_0x5abadd[_0x461cf0(0x262)]({'path':_0x3ceaec,'message':_0x461cf0(0x211)});else(RESERVED_RESULT_VARIABLES[_0x461cf0(0x152)](_0x25da3a)||_0x25da3a[_0x461cf0(0x150)](_0x461cf0(0x183)))&&_0x5abadd[_0x461cf0(0x262)]({'path':_0x3ceaec,'message':'Reserved\x20resultVariable:\x20'+_0x25da3a+'.'});}function validateCcConfig(_0x2bf48c,_0x143ae4,_0x58516a){const _0x1e7ae2=a281_0x3406bd;if(_0x2bf48c['cc']===undefined)return;if(!isRecord(_0x2bf48c['cc'])){_0x58516a['push']({'path':_0x143ae4+_0x1e7ae2(0x21c),'message':_0x1e7ae2(0x18c)});return;}_0x2bf48c[_0x1e7ae2(0x279)]!==_0x1e7ae2(0x1a4)&&_0x2bf48c[_0x1e7ae2(0x279)]!==_0x1e7ae2(0x271)&&_0x58516a[_0x1e7ae2(0x262)]({'path':_0x143ae4+_0x1e7ae2(0x21c),'message':_0x1e7ae2(0x278)});Object[_0x1e7ae2(0x1f7)][_0x1e7ae2(0x1ed)][_0x1e7ae2(0x256)](_0x2bf48c['cc'],'readSources')&&_0x58516a[_0x1e7ae2(0x262)]({'path':_0x143ae4+_0x1e7ae2(0x23e),'message':UNSUPPORTED_FORM_MESSAGE});const _0x1ae637=_0x2bf48c['cc'][_0x1e7ae2(0x29e)];if(!Array[_0x1e7ae2(0x1fb)](_0x1ae637)||_0x1ae637[_0x1e7ae2(0x203)]===0x0)_0x58516a[_0x1e7ae2(0x262)]({'path':_0x143ae4+_0x1e7ae2(0x25c),'message':_0x1e7ae2(0x26c)});else{_0x1ae637[_0x1e7ae2(0x203)]>MAX_CC_RECIPIENTS&&_0x58516a[_0x1e7ae2(0x262)]({'path':_0x143ae4+'.cc.recipientUserIds','message':_0x1e7ae2(0x166)+MAX_CC_RECIPIENTS+_0x1e7ae2(0x22e)});const _0x38613d=new Set();_0x1ae637[_0x1e7ae2(0x269)]((_0x283db5,_0x21d1ea)=>{const _0x5b0736=_0x1e7ae2;if(typeof _0x283db5!=='string'||_0x283db5[_0x5b0736(0x26a)]()==='')_0x58516a[_0x5b0736(0x262)]({'path':_0x143ae4+'.cc.recipientUserIds['+_0x21d1ea+']','message':'cc\x20recipient\x20userId\x20must\x20be\x20a\x20non-empty\x20string.'});else _0x38613d[_0x5b0736(0x152)](_0x283db5[_0x5b0736(0x26a)]())?_0x58516a[_0x5b0736(0x262)]({'path':_0x143ae4+'.cc.recipientUserIds['+_0x21d1ea+']','message':_0x5b0736(0x240)+_0x283db5['trim']()+'.'}):_0x38613d[_0x5b0736(0x224)](_0x283db5[_0x5b0736(0x26a)]());});}validateStringArray(_0x2bf48c['cc']['visible'],_0x143ae4+_0x1e7ae2(0x146),_0x58516a);}function validateStringArray(_0x4a2125,_0x3a6aaf,_0x2366ad){const _0x62d0f4=a281_0x3406bd;if(_0x4a2125===undefined)return;if(!Array[_0x62d0f4(0x1fb)](_0x4a2125)){_0x2366ad['push']({'path':_0x3a6aaf,'message':'value\x20must\x20be\x20an\x20array.'});return;}const _0x19fdc5=new Set();_0x4a2125['forEach']((_0x3849d7,_0x202dcb)=>{const _0x591d64=_0x62d0f4;if(typeof _0x3849d7!==_0x591d64(0x1fe)||_0x3849d7[_0x591d64(0x26a)]()==='')_0x2366ad[_0x591d64(0x262)]({'path':_0x3a6aaf+'['+_0x202dcb+']','message':_0x591d64(0x263)});else _0x19fdc5[_0x591d64(0x152)](_0x3849d7[_0x591d64(0x26a)]())?_0x2366ad['push']({'path':_0x3a6aaf+'['+_0x202dcb+']','message':_0x591d64(0x29c)+_0x3849d7[_0x591d64(0x26a)]()+'.'}):_0x19fdc5[_0x591d64(0x224)](_0x3849d7['trim']());});}function validateNotificationConfig(_0x15591b,_0x3e1ce4,_0x238a7e){const _0x2cede1=a281_0x3406bd;if(!isRecord(_0x15591b)){_0x238a7e[_0x2cede1(0x262)]({'path':_0x3e1ce4,'message':_0x2cede1(0x155)});return;}if(_0x15591b[_0x2cede1(0x225)]!==undefined&&_0x15591b[_0x2cede1(0x225)]!==null){if(typeof _0x15591b[_0x2cede1(0x225)]!=='string')_0x238a7e[_0x2cede1(0x262)]({'path':_0x3e1ce4+_0x2cede1(0x230),'message':_0x2cede1(0x1fa)});else _0x15591b[_0x2cede1(0x225)][_0x2cede1(0x26a)]()&&_0x15591b[_0x2cede1(0x225)][_0x2cede1(0x26a)]()!=='v1'&&_0x238a7e[_0x2cede1(0x262)]({'path':_0x3e1ce4+'.version','message':_0x2cede1(0x15b)+_0x15591b[_0x2cede1(0x225)]+'.'});}const _0x221e92=requireNotificationString(_0x15591b[_0x2cede1(0x1b2)],_0x3e1ce4+_0x2cede1(0x1cb),_0x2cede1(0x294),_0x238a7e);_0x221e92?.['includes']('${')&&_0x238a7e[_0x2cede1(0x262)]({'path':_0x3e1ce4+'.configCode','message':'Notification\x20configCode\x20must\x20be\x20a\x20fixed\x20value.'});if(_0x15591b[_0x2cede1(0x1b0)]!==undefined&&_0x15591b[_0x2cede1(0x1b0)]!==null){if(typeof _0x15591b[_0x2cede1(0x1b0)]!==_0x2cede1(0x1fe))_0x238a7e['push']({'path':_0x3e1ce4+'.failurePolicy','message':'failurePolicy\x20must\x20be\x20a\x20string.'});else!NOTIFICATION_FAILURE_POLICIES[_0x2cede1(0x152)](_0x15591b[_0x2cede1(0x1b0)][_0x2cede1(0x26a)]()[_0x2cede1(0x273)]())&&_0x238a7e[_0x2cede1(0x262)]({'path':_0x3e1ce4+_0x2cede1(0x222),'message':'failurePolicy\x20must\x20be\x20CONTINUE\x20or\x20FAIL.'});}!isRecord(_0x15591b[_0x2cede1(0x2a6)])?_0x238a7e[_0x2cede1(0x262)]({'path':_0x3e1ce4+_0x2cede1(0x217),'message':_0x2cede1(0x16e)}):validateNotificationTemplate(_0x15591b[_0x2cede1(0x2a6)],_0x3e1ce4+'.template',_0x238a7e),validateNotificationRecipients(_0x15591b[_0x2cede1(0x253)],_0x3e1ce4+_0x2cede1(0x20c),_0x238a7e);}function validateNotificationTemplate(_0x20171b,_0x5cde72,_0x2fa6b5){const _0x4a2c43=a281_0x3406bd;for(const _0x5ac714 of['title','summary']){const _0x4bd61f=requireNotificationString(_0x20171b[_0x5ac714],_0x5cde72+'.'+_0x5ac714,_0x4a2c43(0x182)+_0x5ac714+_0x4a2c43(0x29a),_0x2fa6b5);if(_0x4bd61f)validateNotificationPlaceholders(_0x4bd61f,_0x5cde72+'.'+_0x5ac714,_0x2fa6b5);}_0x20171b['detailMarkdown']!==undefined&&_0x20171b[_0x4a2c43(0x200)]!==null&&(typeof _0x20171b['detailMarkdown']!==_0x4a2c43(0x1fe)?_0x2fa6b5[_0x4a2c43(0x262)]({'path':_0x5cde72+_0x4a2c43(0x1f0),'message':'Notification\x20template.detailMarkdown\x20must\x20be\x20a\x20string.'}):validateNotificationPlaceholders(_0x20171b['detailMarkdown'],_0x5cde72+_0x4a2c43(0x1f0),_0x2fa6b5)),validateNotificationFacts(_0x20171b[_0x4a2c43(0x197)],_0x5cde72+'.facts',_0x2fa6b5),validateNotificationActions(_0x20171b[_0x4a2c43(0x2a9)],_0x5cde72+_0x4a2c43(0x1f9),_0x2fa6b5);}function validateNotificationFacts(_0x177e4c,_0x20321a,_0x3568fd){const _0x4c1279=a281_0x3406bd;if(_0x177e4c===undefined||_0x177e4c===null)return;if(!Array[_0x4c1279(0x1fb)](_0x177e4c)){_0x3568fd['push']({'path':_0x20321a,'message':_0x4c1279(0x1fc)});return;}_0x177e4c[_0x4c1279(0x203)]>MAX_NOTIFICATION_FACTS&&_0x3568fd['push']({'path':_0x20321a,'message':_0x4c1279(0x15c)+MAX_NOTIFICATION_FACTS+'\x20facts.'}),_0x177e4c[_0x4c1279(0x269)]((_0x15687c,_0x1badff)=>{const _0x12de03=_0x4c1279,_0xef95cf=_0x20321a+'['+_0x1badff+']';if(!isRecord(_0x15687c)){_0x3568fd[_0x12de03(0x262)]({'path':_0xef95cf,'message':_0x12de03(0x1a3)});return;}for(const _0x3edf99 of[_0x12de03(0x158),'value']){const _0x55e495=requireNotificationString(_0x15687c[_0x3edf99],_0xef95cf+'.'+_0x3edf99,_0x12de03(0x153)+_0x3edf99+'\x20is\x20required.',_0x3568fd);_0x55e495&&validateNotificationPlaceholders(_0x55e495,_0xef95cf+'.'+_0x3edf99,_0x3568fd);}});}function validateNotificationActions(_0x513d7a,_0x68bb65,_0x41bbff){const _0x49418c=a281_0x3406bd;if(_0x513d7a===undefined||_0x513d7a===null)return;if(!Array[_0x49418c(0x1fb)](_0x513d7a)){_0x41bbff[_0x49418c(0x262)]({'path':_0x68bb65,'message':_0x49418c(0x2aa)});return;}_0x513d7a[_0x49418c(0x203)]>MAX_NOTIFICATION_ACTIONS&&_0x41bbff['push']({'path':_0x68bb65,'message':_0x49418c(0x15c)+MAX_NOTIFICATION_ACTIONS+_0x49418c(0x23d)}),_0x513d7a[_0x49418c(0x269)]((_0x18833f,_0x2c6137)=>{const _0xb0b077=_0x49418c,_0x23cc2c=_0x68bb65+'['+_0x2c6137+']';if(!isRecord(_0x18833f)){_0x41bbff[_0xb0b077(0x262)]({'path':_0x23cc2c,'message':_0xb0b077(0x18b)});return;}const _0x4ee48f=requireNotificationString(_0x18833f[_0xb0b077(0x1f1)],_0x23cc2c+_0xb0b077(0x1c7),_0xb0b077(0x243),_0x41bbff);if(_0x4ee48f)validateNotificationPlaceholders(_0x4ee48f,_0x23cc2c+_0xb0b077(0x1c7),_0x41bbff);const _0x29ccfc=requireNotificationString(_0x18833f[_0xb0b077(0x209)],_0x23cc2c+_0xb0b077(0x270),_0xb0b077(0x1b6),_0x41bbff);if(!_0x29ccfc)return;validateNotificationPlaceholders(_0x29ccfc,_0x23cc2c+_0xb0b077(0x270),_0x41bbff),!/^https?:\/\//i['test'](_0x29ccfc)&&!NOTIFICATION_ACTION_URL_PLACEHOLDER_PATTERN[_0xb0b077(0x285)](_0x29ccfc)&&_0x41bbff['push']({'path':_0x23cc2c+_0xb0b077(0x270),'message':_0xb0b077(0x2a8)});});}function validateNotificationRecipients(_0x13ccf6,_0x310e0f,_0x5e0dde){const _0x3d5fc1=a281_0x3406bd;if(_0x13ccf6===undefined||_0x13ccf6===null)return;if(!Array[_0x3d5fc1(0x1fb)](_0x13ccf6)){_0x5e0dde['push']({'path':_0x310e0f,'message':_0x3d5fc1(0x265)});return;}let _0x341f9a=![];_0x13ccf6['forEach']((_0x333e68,_0x249c1e)=>{const _0x4fc9bb=_0x3d5fc1,_0x2e4c90=_0x310e0f+'['+_0x249c1e+']';if(!isRecord(_0x333e68)){_0x5e0dde['push']({'path':_0x2e4c90,'message':_0x4fc9bb(0x149)});return;}const _0x16653a=requireNotificationString(_0x333e68[_0x4fc9bb(0x279)],_0x2e4c90+'.type','Notification\x20recipient.type\x20is\x20required.',_0x5e0dde);_0x16653a&&!NOTIFICATION_RECIPIENT_TYPES[_0x4fc9bb(0x152)](_0x16653a[_0x4fc9bb(0x273)]())&&_0x5e0dde['push']({'path':_0x2e4c90+_0x4fc9bb(0x267),'message':'Notification\x20recipient.type\x20must\x20be\x20USER,\x20ROLE,\x20or\x20EMAIL.'});let _0x22c59b='TO';_0x333e68[_0x4fc9bb(0x2ae)]!==undefined&&_0x333e68['role']!==null&&(typeof _0x333e68['role']!==_0x4fc9bb(0x1fe)?(_0x5e0dde[_0x4fc9bb(0x262)]({'path':_0x2e4c90+_0x4fc9bb(0x17d),'message':'Notification\x20recipient.role\x20must\x20be\x20a\x20string.'}),_0x22c59b=''):(_0x22c59b=_0x333e68[_0x4fc9bb(0x2ae)]['trim']()[_0x4fc9bb(0x273)](),!NOTIFICATION_RECIPIENT_ROLES[_0x4fc9bb(0x152)](_0x22c59b)&&_0x5e0dde[_0x4fc9bb(0x262)]({'path':_0x2e4c90+_0x4fc9bb(0x17d),'message':_0x4fc9bb(0x1b3)})));if(_0x22c59b==='TO')_0x341f9a=!![];const _0x5c609d=requireNotificationString(_0x333e68[_0x4fc9bb(0x21e)],_0x2e4c90+_0x4fc9bb(0x232),'Notification\x20recipient.value\x20is\x20required.',_0x5e0dde);_0x5c609d&&validateNotificationPlaceholders(_0x5c609d,_0x2e4c90+_0x4fc9bb(0x232),_0x5e0dde);}),_0x13ccf6['length']>0x0&&!_0x341f9a&&_0x5e0dde[_0x3d5fc1(0x262)]({'path':_0x310e0f,'message':_0x3d5fc1(0x1ad)});}function requireNotificationString(_0x4b9a24,_0x1d105e,_0x48a3f6,_0x2522ff){const _0x8022ca=a281_0x3406bd;if(typeof _0x4b9a24!==_0x8022ca(0x1fe)||_0x4b9a24[_0x8022ca(0x26a)]()==='')return _0x2522ff['push']({'path':_0x1d105e,'message':_0x48a3f6}),undefined;return _0x4b9a24[_0x8022ca(0x26a)]();}function validateNotificationPlaceholders(_0x9a737d,_0x5639c2,_0x20b62d){const _0x29fe29=a281_0x3406bd;for(const _0x21240d of _0x9a737d['matchAll'](NOTIFICATION_PLACEHOLDER_PATTERN)){const _0x4e53bf=_0x21240d[0x1]?.[_0x29fe29(0x26a)]()??'',_0x4e66d1=_0x4e53bf['indexOf']('.'),_0x1aa69=_0x4e66d1>=0x0?_0x4e53bf['slice'](0x0,_0x4e66d1):_0x4e53bf,_0x476fe6=_0x4e66d1>=0x0?_0x4e53bf['slice'](_0x4e66d1+0x1)[_0x29fe29(0x26a)]():'';(![_0x29fe29(0x181),'context',_0x29fe29(0x219)][_0x29fe29(0x28e)](_0x1aa69)||_0x476fe6==='')&&_0x20b62d[_0x29fe29(0x262)]({'path':_0x5639c2,'message':_0x29fe29(0x26f)+_0x21240d[0x0]+'.'});}_0x9a737d[_0x29fe29(0x18e)](NOTIFICATION_PLACEHOLDER_PATTERN,'')['includes']('${')&&_0x20b62d['push']({'path':_0x5639c2,'message':_0x29fe29(0x23c)});}function validateEdge(_0x26c40d,_0x2f8b07,_0x3f7fac){const _0x45f309=a281_0x3406bd;_0x26c40d[_0x45f309(0x206)]!==undefined&&typeof _0x26c40d[_0x45f309(0x206)]!==_0x45f309(0x1fe)&&_0x3f7fac[_0x45f309(0x262)]({'path':_0x2f8b07+'.name','message':_0x45f309(0x18a)}),_0x26c40d[_0x45f309(0x2a0)]!==undefined&&typeof _0x26c40d[_0x45f309(0x2a0)]!==_0x45f309(0x28f)&&_0x3f7fac[_0x45f309(0x262)]({'path':_0x2f8b07+_0x45f309(0x2a7),'message':_0x45f309(0x248)}),_0x26c40d[_0x45f309(0x235)]!==undefined&&(!Array[_0x45f309(0x1fb)](_0x26c40d[_0x45f309(0x235)])?_0x3f7fac[_0x45f309(0x262)]({'path':_0x2f8b07+_0x45f309(0x148),'message':_0x45f309(0x23b)}):_0x26c40d[_0x45f309(0x235)][_0x45f309(0x269)]((_0x44ab59,_0x2f3bd5)=>{const _0x1002b6=_0x45f309;if(!isRecord(_0x44ab59)){_0x3f7fac['push']({'path':_0x2f8b07+_0x1002b6(0x15a)+_0x2f3bd5+']','message':_0x1002b6(0x1b5)});return;}for(const _0x83f294 of['x','y']){const _0x1f6bb2=_0x44ab59[_0x83f294];(typeof _0x1f6bb2!==_0x1002b6(0x297)||!Number[_0x1002b6(0x1a6)](_0x1f6bb2))&&_0x3f7fac['push']({'path':_0x2f8b07+_0x1002b6(0x15a)+_0x2f3bd5+'].'+_0x83f294,'message':_0x1002b6(0x1dc)+_0x83f294+_0x1002b6(0x1bc)});}})),_0x26c40d[_0x45f309(0x264)]!==undefined&&!CONDITION_TYPES[_0x45f309(0x152)](_0x26c40d[_0x45f309(0x264)])&&_0x3f7fac[_0x45f309(0x262)]({'path':_0x2f8b07+'.conditionType','message':_0x45f309(0x1de)+String(_0x26c40d[_0x45f309(0x264)])+'.'}),_0x26c40d[_0x45f309(0x264)]===_0x45f309(0x171)&&(typeof _0x26c40d[_0x45f309(0x1ab)]!=='string'||_0x26c40d[_0x45f309(0x1ab)][_0x45f309(0x26a)]()==='')&&_0x3f7fac[_0x45f309(0x262)]({'path':_0x2f8b07+'.expression','message':_0x45f309(0x287)}),_0x26c40d['defaultFlow']===!![]&&_0x26c40d['conditionType']!==_0x45f309(0x25e)&&_0x3f7fac[_0x45f309(0x262)]({'path':_0x2f8b07+_0x45f309(0x2a7),'message':_0x45f309(0x1cc)}),_0x26c40d[_0x45f309(0x2a0)]===!![]&&typeof _0x26c40d[_0x45f309(0x1ab)]===_0x45f309(0x1fe)&&_0x26c40d[_0x45f309(0x1ab)][_0x45f309(0x26a)]()!==''&&_0x3f7fac[_0x45f309(0x262)]({'path':_0x2f8b07+_0x45f309(0x1d5),'message':'A\x20default\x20flow\x20must\x20not\x20have\x20an\x20expression.'});}function validateGraphShape(_0x8359e2,_0x83ecc1,_0x48e4c0,_0xf20880,_0x38c822,_0xa2728c,_0x3324f4){const _0x3475c1=a281_0x3406bd;for(const [_0x1b41dd,_0xdf86b0]of _0x8359e2){const _0x4fb8e5=_0x38c822[_0x3475c1(0x1d9)](_0x1b41dd)??[],_0xd050a=_0xf20880[_0x3475c1(0x1d9)](_0x1b41dd)??[];_0xdf86b0[_0x3475c1(0x279)]!==_0x3475c1(0x286)&&_0x4fb8e5[_0x3475c1(0x203)]===0x0&&_0x3324f4[_0x3475c1(0x262)]({'path':_0x3475c1(0x1df)+_0x1b41dd,'message':_0x3475c1(0x189)});_0xdf86b0[_0x3475c1(0x279)]!==_0x3475c1(0x1a4)&&_0xd050a[_0x3475c1(0x203)]===0x0&&_0x3324f4[_0x3475c1(0x262)]({'path':_0x3475c1(0x1df)+_0x1b41dd,'message':_0x3475c1(0x159)});_0xdf86b0['type']===_0x3475c1(0x286)&&_0x4fb8e5['length']>0x0&&_0x3324f4['push']({'path':_0x3475c1(0x1df)+_0x1b41dd,'message':_0x3475c1(0x1e8)});_0xdf86b0[_0x3475c1(0x279)]===_0x3475c1(0x1a4)&&_0xd050a['length']>0x0&&_0x3324f4['push']({'path':_0x3475c1(0x1df)+_0x1b41dd,'message':_0x3475c1(0x212)});if(_0xdf86b0[_0x3475c1(0x279)]==='CONDITION'){_0xd050a[_0x3475c1(0x203)]<0x2&&_0x3324f4['push']({'path':_0x3475c1(0x1df)+_0x1b41dd,'message':_0x3475c1(0x1b1)});const _0x445685=_0xd050a[_0x3475c1(0x191)](_0x7b2b86=>_0x7b2b86[_0x3475c1(0x2a0)]===!![]);_0x445685[_0x3475c1(0x203)]!==0x1&&_0x3324f4['push']({'path':'flowJson.nodes.'+_0x1b41dd,'message':_0x3475c1(0x180)});if(_0x445685[_0x3475c1(0x203)]===0x1){const _0xe6bb61=_0x445685[0x0],_0x92dc6f=_0xa2728c[_0x3475c1(0x1d9)](_0xe6bb61)??'flowJson.edges';_0xe6bb61[_0x3475c1(0x264)]!==_0x3475c1(0x25e)&&_0x3324f4[_0x3475c1(0x262)]({'path':_0x92dc6f+_0x3475c1(0x29d),'message':_0x3475c1(0x250)});_0xe6bb61[_0x3475c1(0x1ab)]!==undefined&&_0x3324f4[_0x3475c1(0x262)]({'path':_0x92dc6f+_0x3475c1(0x1d5),'message':_0x3475c1(0x282)});for(const _0x2f6b41 of _0xd050a){if(_0x2f6b41===_0xe6bb61)continue;const _0x34334b=_0xa2728c[_0x3475c1(0x1d9)](_0x2f6b41)??'flowJson.edges';if(_0x2f6b41[_0x3475c1(0x264)]!==_0x3475c1(0x171))_0x3324f4[_0x3475c1(0x262)]({'path':_0x34334b+_0x3475c1(0x29d),'message':_0x3475c1(0x298)});else(typeof _0x2f6b41[_0x3475c1(0x1ab)]!=='string'||_0x2f6b41['expression']['trim']()==='')&&_0x3324f4['push']({'path':_0x34334b+_0x3475c1(0x1d5),'message':_0x3475c1(0x17a)});}}}if(_0xdf86b0[_0x3475c1(0x279)]==='APPROVAL'&&(_0xdf86b0[_0x3475c1(0x173)]??_0x3475c1(0x271))===_0x3475c1(0x163)){if(_0xd050a['length']!==0x1)_0x3324f4[_0x3475c1(0x262)]({'path':'flowJson.nodes.'+_0x1b41dd,'message':_0x3475c1(0x1c3)});else{const _0x5453d6=_0xd050a[0x0];((_0x5453d6[_0x3475c1(0x264)]??'ALWAYS')!==_0x3475c1(0x25e)||_0x5453d6[_0x3475c1(0x2a0)]===!![]||typeof _0x5453d6[_0x3475c1(0x1ab)]===_0x3475c1(0x1fe)&&_0x5453d6[_0x3475c1(0x1ab)]['trim']()!=='')&&_0x3324f4[_0x3475c1(0x262)]({'path':_0xa2728c[_0x3475c1(0x1d9)](_0x5453d6)??_0x3475c1(0x167),'message':'HANDLE\x20task\x20outgoing\x20edge\x20must\x20use\x20ALWAYS\x20without\x20defaultFlow\x20or\x20expression.'});}}else{if(_0xdf86b0[_0x3475c1(0x279)]===_0x3475c1(0x271)){const _0x28232d=_0xd050a[_0x3475c1(0x1e5)](_0x5859a0=>_0x5859a0[_0x3475c1(0x264)]??_0x3475c1(0x25e)),_0x3be986=_0x28232d[_0x3475c1(0x191)](_0xd6215b=>_0xd6215b!=='APPROVED'&&_0xd6215b!=='REJECTED');_0x3be986[_0x3475c1(0x203)]>0x0&&_0x3324f4['push']({'path':_0x3475c1(0x1df)+_0x1b41dd,'message':_0x3475c1(0x274)}),_0x28232d[_0x3475c1(0x191)](_0x589145=>_0x589145==='APPROVED')[_0x3475c1(0x203)]!==0x1&&_0x3324f4[_0x3475c1(0x262)]({'path':_0x3475c1(0x1df)+_0x1b41dd,'message':_0x3475c1(0x17f)}),_0x28232d['filter'](_0x2c94a3=>_0x2c94a3===_0x3475c1(0x1cd))[_0x3475c1(0x203)]!==0x1&&_0x3324f4[_0x3475c1(0x262)]({'path':_0x3475c1(0x1df)+_0x1b41dd,'message':_0x3475c1(0x251)}),_0xd050a[_0x3475c1(0x288)](_0x1ad248=>_0x1ad248[_0x3475c1(0x2a0)]===!![])&&_0x3324f4['push']({'path':_0x3475c1(0x1df)+_0x1b41dd,'message':_0x3475c1(0x1d4)});}}}const _0x501131=new Set(),_0x198d0a=_0xf1feed=>{const _0x597295=_0x3475c1;if(_0x501131[_0x597295(0x152)](_0xf1feed))return;_0x501131[_0x597295(0x224)](_0xf1feed);for(const _0x493e2c of _0xf20880[_0x597295(0x1d9)](_0xf1feed)??[]){const _0x8341d0=resolveEdgeEndpoint(_0x493e2c[_0x597295(0x257)],_0x493e2c['targetNodeId']);if(_0x8341d0&&_0x8359e2[_0x597295(0x152)](_0x8341d0))_0x198d0a(_0x8341d0);}};_0x198d0a(_0x83ecc1);for(const _0x6aaed1 of _0x8359e2[_0x3475c1(0x17c)]()){!_0x501131[_0x3475c1(0x152)](_0x6aaed1)&&_0x3324f4[_0x3475c1(0x262)]({'path':_0x3475c1(0x1df)+_0x6aaed1,'message':'Node\x20is\x20not\x20reachable\x20from\x20START.'});}const _0x34d205=_0x48e4c0[_0x3475c1(0x288)](_0x2c4ed7=>_0x501131[_0x3475c1(0x152)](_0x2c4ed7));if(!_0x34d205){_0x3324f4[_0x3475c1(0x262)]({'path':_0x3475c1(0x167),'message':_0x3475c1(0x1ba)});return;}const _0x1fcd99=new Set(),_0x2f024d=_0x577afc=>{const _0x271791=_0x3475c1;if(_0x1fcd99[_0x271791(0x152)](_0x577afc))return;_0x1fcd99[_0x271791(0x224)](_0x577afc);for(const _0x3f08fc of _0x38c822['get'](_0x577afc)??[]){const _0x5152cd=resolveEdgeEndpoint(_0x3f08fc['source'],_0x3f08fc[_0x271791(0x22b)]);if(_0x5152cd&&_0x8359e2[_0x271791(0x152)](_0x5152cd))_0x2f024d(_0x5152cd);}};for(const _0x129c30 of _0x48e4c0){if(_0x8359e2['has'](_0x129c30))_0x2f024d(_0x129c30);}for(const _0x379e51 of _0x501131){!_0x1fcd99[_0x3475c1(0x152)](_0x379e51)&&_0x3324f4[_0x3475c1(0x262)]({'path':'flowJson.nodes.'+_0x379e51,'message':_0x3475c1(0x245)});}}function validateApprovalResults(_0xc420e6,_0x404f4f,_0x1f17ad,_0xe708b3){const _0x21b9e0=a281_0x3406bd;if(_0x404f4f===0x0)return;const _0x264ada=new Set(_0x1f17ad[_0x21b9e0(0x1e5)](_0x1c6f10=>_0xc420e6[_0x21b9e0(0x1d9)](_0x1c6f10)?.[_0x21b9e0(0x192)])['filter'](_0x104065=>typeof _0x104065===_0x21b9e0(0x1fe)));for(const _0x40cb39 of[_0x21b9e0(0x293),_0x21b9e0(0x1cd)]){!_0x264ada[_0x21b9e0(0x152)](_0x40cb39)&&_0xe708b3[_0x21b9e0(0x262)]({'path':_0x21b9e0(0x291),'message':_0x21b9e0(0x174)+_0x40cb39+'.'});}}function validateScriptResultReferences(_0x5c2f81,_0x2a76cb,_0x1617c0,_0x531581,_0x4cb35d,_0xab24b3,_0x1f4ef3){const _0x3f7156=a281_0x3406bd;if(_0xab24b3[_0x3f7156(0x1c1)]===0x0)return;const _0x13d05c=new Set(),_0x421693=_0x2fd266=>{const _0x1b5252=_0x3f7156;if(!_0x13d05c['has'](_0x2fd266)&&_0x5c2f81[_0x1b5252(0x152)](_0x2fd266)){_0x13d05c[_0x1b5252(0x224)](_0x2fd266);for(const _0x33bab0 of _0x1617c0[_0x1b5252(0x1d9)](_0x2fd266)??[]){const _0x36636a=resolveEdgeEndpoint(_0x33bab0['target'],_0x33bab0['targetNodeId']);if(_0x36636a)_0x421693(_0x36636a);}}};_0x421693(_0x2a76cb);const _0x6a934e=new Map();for(const _0x4f223e of _0x13d05c){_0x6a934e[_0x3f7156(0x26b)](_0x4f223e,_0x4f223e===_0x2a76cb?new Set([_0x2a76cb]):new Set(_0x13d05c));}let _0x43f89e=!![];while(_0x43f89e){_0x43f89e=![];for(const _0x943ed8 of _0x13d05c){if(_0x943ed8===_0x2a76cb)continue;const _0x4026a2=(_0x531581[_0x3f7156(0x1d9)](_0x943ed8)??[])[_0x3f7156(0x1e5)](_0x59a8c3=>resolveEdgeEndpoint(_0x59a8c3[_0x3f7156(0x199)],_0x59a8c3[_0x3f7156(0x22b)]))[_0x3f7156(0x191)](_0x4aca58=>Boolean(_0x4aca58&&_0x13d05c[_0x3f7156(0x152)](_0x4aca58)));if(_0x4026a2[_0x3f7156(0x203)]===0x0)continue;const _0x73a7a1=new Set(_0x6a934e[_0x3f7156(0x1d9)](_0x4026a2[0x0])??[]);for(const _0x11c9da of _0x4026a2[_0x3f7156(0x1d0)](0x1)){const _0x3d0f55=_0x6a934e[_0x3f7156(0x1d9)](_0x11c9da)??new Set();for(const _0x416e92 of _0x73a7a1){if(!_0x3d0f55['has'](_0x416e92))_0x73a7a1[_0x3f7156(0x289)](_0x416e92);}}_0x73a7a1[_0x3f7156(0x224)](_0x943ed8);const _0x22615d=_0x6a934e[_0x3f7156(0x1d9)](_0x943ed8);!setsEqual(_0x22615d,_0x73a7a1)&&(_0x6a934e[_0x3f7156(0x26b)](_0x943ed8,_0x73a7a1),_0x43f89e=!![]);}}for(const [_0x35c398,_0x29e271]of _0x1617c0){const _0x180b26=_0x6a934e[_0x3f7156(0x1d9)](_0x35c398);if(!_0x180b26)continue;for(const _0x282d4c of _0x29e271){if(_0x282d4c[_0x3f7156(0x264)]!==_0x3f7156(0x171)||typeof _0x282d4c[_0x3f7156(0x1ab)]!==_0x3f7156(0x1fe))continue;for(const [_0x53eee7,_0x1f66d3]of _0xab24b3){expressionReferencesVariable(_0x282d4c[_0x3f7156(0x1ab)],_0x53eee7)&&!_0x180b26[_0x3f7156(0x152)](_0x1f66d3)&&_0x1f4ef3[_0x3f7156(0x262)]({'path':(_0x4cb35d[_0x3f7156(0x1d9)](_0x282d4c)??'flowJson.edges')+_0x3f7156(0x1d5),'message':_0x3f7156(0x1d3)+_0x53eee7+_0x3f7156(0x26e)+_0x1f66d3+'\x20is\x20not\x20on\x20every\x20upstream\x20path\x20to\x20'+_0x35c398+'.'});}}}}function expressionReferencesVariable(_0x5539e7,_0x6e796b){const _0x580400=a281_0x3406bd;let _0x2d59c5=0x0;while(_0x2d59c5<_0x5539e7[_0x580400(0x203)]){const _0x42a00c=_0x5539e7[_0x2d59c5];if(_0x42a00c==='\x27'||_0x42a00c==='\x22'){_0x2d59c5=skipQuotedExpressionSegment(_0x5539e7,_0x2d59c5,_0x42a00c);continue;}if(!/[A-Za-z_]/[_0x580400(0x285)](_0x42a00c)){_0x2d59c5+=0x1;continue;}const _0x1944de=_0x2d59c5;_0x2d59c5+=0x1;while(_0x2d59c5<_0x5539e7['length']&&/[A-Za-z0-9_]/[_0x580400(0x285)](_0x5539e7[_0x2d59c5])){_0x2d59c5+=0x1;}if(_0x5539e7[_0x580400(0x1d0)](_0x1944de,_0x2d59c5)!==_0x6e796b)continue;let _0x4cfc1c=_0x1944de-0x1;while(_0x4cfc1c>=0x0&&/\s/[_0x580400(0x285)](_0x5539e7[_0x4cfc1c])){_0x4cfc1c-=0x1;}if(_0x5539e7[_0x4cfc1c]!=='.')return!![];}return![];}function skipQuotedExpressionSegment(_0x347bb7,_0x14c03b,_0x2d3221){let _0x190537=_0x14c03b+0x1;while(_0x190537<_0x347bb7['length']){if(_0x347bb7[_0x190537]==='\x5c'){_0x190537+=0x2;continue;}if(_0x347bb7[_0x190537]===_0x2d3221)return _0x190537+0x1;_0x190537+=0x1;}return _0x190537;}function resolveEffectiveResultVariable(_0x3c9047,_0x1ff1bc){const _0x2134f1=a281_0x3406bd;if(_0x3c9047===undefined||_0x3c9047===null||_0x1ff1bc&&_0x3c9047==='')return DEFAULT_SCRIPT_RESULT_VARIABLE;if(typeof _0x3c9047!==_0x2134f1(0x1fe)||!VARIABLE_PATTERN['test'](_0x3c9047)||RESERVED_RESULT_VARIABLES['has'](_0x3c9047)||_0x3c9047['startsWith']('approval_sys_'))return undefined;return _0x3c9047;}function registerResultVariableOwner(_0x3fa43d,_0x55ff55,_0x528948,_0x11f336){const _0x51552d=a281_0x3406bd;if(_0x3fa43d[_0x51552d(0x152)](_0x55ff55)){_0x11f336[_0x51552d(0x262)]({'path':_0x51552d(0x291),'message':'Duplicate\x20resultVariable:\x20'+_0x55ff55+'.'});return;}_0x3fa43d[_0x51552d(0x26b)](_0x55ff55,_0x528948);}function setsEqual(_0x1a7aa2,_0x5e35e9){const _0x58c9f1=a281_0x3406bd;return _0x1a7aa2[_0x58c9f1(0x1c1)]===_0x5e35e9[_0x58c9f1(0x1c1)]&&[..._0x1a7aa2][_0x58c9f1(0x185)](_0x1572d9=>_0x5e35e9[_0x58c9f1(0x152)](_0x1572d9));}function isValidUserId(_0x580c0e){const _0x946f28=a281_0x3406bd;if(typeof _0x580c0e==='string')return _0x580c0e[_0x946f28(0x26a)]()[_0x946f28(0x203)]>0x0;return Number[_0x946f28(0x169)](_0x580c0e)&&Number(_0x580c0e)>0x0;}function a281_0x1c91(){const _0x48a035=['Node\x20has\x20no\x20incoming\x20edge.','edge\x20name\x20must\x20be\x20a\x20string.','Notification\x20action\x20must\x20be\x20an\x20object.','cc\x20must\x20be\x20an\x20object.','sequential','replace','sequential\x20must\x20be\x20a\x20boolean.','object','filter','result','templateName','SECONDS','Rabetbase\x20FlowConfig','approval_sys_dataId','facts','approval_sys_datasetCode','source','FIXED','fixed\x20assignee\x20userId\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20positive\x20integer.','.name','flowDesc\x20must\x20be\x20a\x20string.','INDEPENDENT_FLOW','utf8','nodes','.id','ROLE\x20assignee\x20requires\x20a\x20positive\x20integer\x20roleId.','Notification\x20fact\x20must\x20be\x20an\x20object.','END','flowJson.nodes[','isFinite','SCRIPT\x20node\x20requires\x20scriptName.','edge\x20id\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','#/$defs/flowNode','EMAIL','expression','PLATFORM_FORM\x20is\x20not\x20supported\x20by\x20this\x20rabetbase\x20version;\x20use\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','Explicit\x20notification\x20recipients\x20require\x20at\x20least\x20one\x20TO.','flowJson\x20must\x20be\x20an\x20object.','pageId','failurePolicy','CONDITION\x20node\x20requires\x20at\x20least\x20two\x20outgoing\x20edges.','configCode','Notification\x20recipient.role\x20must\x20be\x20TO,\x20CC,\x20or\x20BCC.','flowType\x20is\x20required.','waypoint\x20must\x20contain\x20numeric\x20x\x20and\x20y\x20coordinates.','Notification\x20action.url\x20is\x20required.','.timeout.interrupting','strategy','37438qFqGbP','No\x20END\x20node\x20is\x20reachable\x20from\x20START.','roleId','\x20must\x20be\x20a\x20finite\x20number.','FORM_FLOW\x20is\x20an\x20approval\x20flow\x20and\x20cannot\x20contain\x20HANDLE\x20tasks;\x20use\x20INDEPENDENT_FLOW\x20for\x20workflows.','overwrite','approvalMode','\x20must\x20be\x20a\x20finite\x20number\x20greater\x20than\x20or\x20equal\x20to\x200.','size','Flow\x20must\x20contain\x20exactly\x20one\x20START\x20node.','HANDLE\x20task\x20requires\x20exactly\x20one\x20outgoing\x20edge.','CUSTOM_PAGE','flowJson.schemaVersion','timeout.action\x20must\x20be\x20AUTO_APPROVE,\x20AUTO_REJECT,\x20or\x20EXECUTE_BFF.','.text','EXECUTE_BFF','ANY','.assignee.strategy','.configCode','A\x20default\x20flow\x20must\x20use\x20conditionType\x20ALWAYS.','REJECTED','pageId\x20must\x20be\x20a\x20non-negative\x20integer.','https://json-schema.org/draft/2020-12/schema','slice','async.enabled\x20must\x20be\x20a\x20boolean.','flowJson.pageMode','Expression\x20references\x20SCRIPT\x20resultVariable\x20','APPROVAL\x20task\x20decision\x20edges\x20must\x20not\x20be\x20default\x20flows.','.expression','formDefinitions','edge\x20source\x20is\x20required.','NOTIFICATION','get','BCC','384LJEnTq','waypoint.','Reserved\x20resultVariable:\x20','Unsupported\x20condition\x20type:\x20','flowJson.nodes.','FlowConfig\x20must\x20be\x20a\x20JSON\x20object.','.approvalMode','USER','Every\x20node\x20requires\x20position.x\x20and\x20position.y.','8476800DXSKPh','map','targetNodeId','transferCandidates','START\x20node\x20must\x20not\x20have\x20incoming\x20edges.','26sBzegH','formSchema','config','FIXED\x20assignee\x20requires\x20userIds.','hasOwnProperty','position.','approval_sys_pageId','.detailMarkdown','text','SCRIPT\x20async\x20retryCount\x20must\x20be\x20between\x201\x20and\x20','form','AUTO_APPROVE','bindDatasetCode','AUTO_REJECT','prototype','.resultVariable','.actions','Notification\x20version\x20must\x20be\x20a\x20string.','isArray','Notification\x20template.facts\x20must\x20be\x20an\x20array.','EXECUTE_BFF\x20timeout\x20must\x20not\x20interrupt\x20the\x20approval\x20task.','string','].taskMode','detailMarkdown','datasetCode','__rabetbase_local_validation__','length','title','async\x20execution\x20is\x20only\x20supported\x20by\x20SCRIPT\x20node.','name','retryInterval','#/$defs/timeAmount','url','flowDesc','nodes\x20must\x20be\x20an\x20array.','.recipients','Duplicate\x20BPMN\x20element\x20id:\x20','flowName\x20is\x20required.','flowKey','Accepted\x20as\x20legacy\x20input\x20and\x20removed\x20during\x20normalization;\x20other\x20versions\x20are\x20unsupported.','resultVariable\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','END\x20node\x20must\x20not\x20have\x20outgoing\x20edges.','https://lovrabet.com/schema/rabetbase-flow-config.json','node\x20pageId\x20is\x20no\x20longer\x20supported;\x20use\x20node\x20path\x20instead.','SCRIPT','Duplicate\x20edge\x20route:\x20','.template','\x20value\x20and\x20was\x20removed\x20from\x20the\x20portable\x20FlowConfig.','variables','NaN','findIndex','.cc','HOURS','value','approval.simple-flow.v1','startPath\x20applies\x20only\x20to\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','startPath\x20must\x20be\x20a\x20non-empty\x20string.','.failurePolicy','path','add','version','edge\x20must\x20be\x20an\x20object.','timeout','.scriptName','\x20was\x20empty\x20and\x20was\x20removed.','edges','sourceNodeId','.timeout','534nwwbZP','\x20users.','.position.','.version','isInteger','.value','Edge\x20source\x20node\x20not\x20found:\x20','102WDsggj','waypoints','.target','flowJson.','INDEPENDENT_FLOW\x20cannot\x20bind\x20datasetCode.','3187426NLYTeP','16305CoVPDq','waypoints\x20must\x20be\x20an\x20array.','Notification\x20text\x20contains\x20a\x20malformed\x20placeholder.','\x20actions.','.cc.readSources','position','Duplicate\x20cc\x20recipient\x20userId:\x20','13616LRHrwj','duration\x20unit\x20must\x20be\x20SECONDS,\x20MINUTES,\x20HOURS,\x20or\x20DAYS.','Notification\x20action.text\x20is\x20required.','edges\x20must\x20be\x20an\x20array.','Node\x20cannot\x20reach\x20any\x20END.','APPROVAL\x20node\x20requires\x20assignee.','warnings','defaultFlow\x20must\x20be\x20a\x20boolean.','stringify','MINUTES','approval_sys_initiatorUserId','approval_sys_operationType','legacy_field_removed','.assignee.roleId','Unsupported\x20task\x20mode:\x20','CONDITION\x20default\x20edge\x20must\x20use\x20conditionType\x20ALWAYS.','APPROVAL\x20node\x20requires\x20exactly\x20one\x20REJECTED\x20outgoing\x20edge.','.timeout.duration','recipients','timeout\x20must\x20be\x20an\x20object.','].path','call','target','timeout.interrupting\x20must\x20be\x20a\x20boolean.','timeout\x20is\x20only\x20supported\x20by\x20APPROVAL\x20node.','#/$defs/flowEdge','\x20was\x20empty\x20or\x20used\x20the\x20default\x20','.cc.recipientUserIds','DAYS','ALWAYS','Flow\x20must\x20contain\x20at\x20least\x20one\x20END\x20node.','transfer\x20candidate\x20userId\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20positive\x20integer.','approval_sys_processInstanceId','push','value\x20must\x20be\x20a\x20non-empty\x20string.','conditionType','Notification\x20recipients\x20must\x20be\x20an\x20array.','async','.type','.timeout.scriptName','forEach','trim','set','cc.recipientUserIds\x20must\x20be\x20a\x20non-empty\x20array.','assignee',',\x20but\x20node\x20','Unsupported\x20notification\x20placeholder:\x20','.url','APPROVAL','Unsupported\x20pageMode:\x20','toUpperCase','APPROVAL\x20node\x20outgoing\x20edges\x20must\x20use\x20APPROVED\x20or\x20REJECTED.','.async','pageMode','formPermissions','Default\x20cc\x20is\x20only\x20supported\x20by\x20APPROVAL\x20or\x20END\x20node.','type','array','SINGLE','.transferCandidates.userIds[','Unsupported\x20flowType:\x20','metadata','.async.retryInterval','.transferCandidates.strategy','CONDITION','CONDITION\x20default\x20edge\x20must\x20not\x20define\x20expression.','flowJson','unit','test','START','EXPRESSION\x20edge\x20requires\x20expression.','some','delete','.tmp','resultVariable','INDEPENDENT_FLOW\x20cannot\x20bind\x20pageId.','Duplicate\x20node\x20id:\x20','includes','boolean','6351310psiOfU','flowJson.nodes','FAIL','APPROVED','Notification\x20configCode\x20is\x20required.','\x20->\x20','.taskMode','number','CONDITION\x20non-default\x20edge\x20must\x20use\x20conditionType\x20EXPRESSION.','ALL','\x20is\x20required.','.config','Duplicate\x20value:\x20','.conditionType','recipientUserIds','.transferCandidates.userIds','defaultFlow','.source','duration\x20requires\x20value\x20and\x20unit.','action','flowJson.startPath','.path','template','.defaultFlow','Notification\x20action.url\x20must\x20use\x20http/https\x20or\x20a\x20complete\x20supported\x20placeholder.','actions','Notification\x20template.actions\x20must\x20be\x20an\x20array.','catch','PLATFORM_FORM','enabled','role','CONTINUE','startPath','30UBwtCw','\x20is\x20not\x20part\x20of\x20the\x20portable\x20FlowConfig\x20and\x20was\x20removed.','^[A-Za-z_][A-Za-z0-9_]*$','.timeout.resultVariable','.cc.visible','approved','.waypoints','Notification\x20recipient\x20must\x20be\x20an\x20object.','integer','entries','transferCandidates\x20must\x20be\x20an\x20object.','schemaVersion','SINGLE\x20approval\x20supports\x20only\x20one\x20fixed\x20user.','flowName','startsWith','flowType','has','Notification\x20fact.','HANDLE\x20task\x20timeout\x20only\x20supports\x20EXECUTE_BFF.','NOTIFICATION\x20node\x20requires\x20config.','flowCode','#/$defs/userId','label','Node\x20has\x20no\x20outgoing\x20edge.','.waypoints[','Unsupported\x20notification\x20version:\x20','Notification\x20template\x20supports\x20at\x20most\x20','userIds','summary','Unsupported\x20schemaVersion:\x20','EXECUTE_BFF\x20timeout\x20requires\x20scriptName.','duration\x20value\x20must\x20be\x20a\x20positive\x20integer.','#/$defs/position','HANDLE','node\x20path\x20applies\x20only\x20to\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','.pageId','cc.recipientUserIds\x20supports\x20at\x20most\x20','flowJson.edges','.position','isSafeInteger','FIXED\x20transferCandidates\x20requires\x20non-empty\x20userIds.','.timeout.action','flowJson.edges[','startPageId\x20is\x20no\x20longer\x20supported;\x20use\x20startPath\x20instead.','NOTIFICATION\x20node\x20requires\x20template.','ROLE','node\x20path\x20must\x20be\x20a\x20non-empty\x20string.','EXPRESSION','156276IRARKE','taskMode','Approval\x20flow\x20requires\x20an\x20END\x20node\x20with\x20result\x20','\x20timeout\x20must\x20interrupt\x20the\x20approval\x20task.','formData','appCode','.assignee.userIds','10pUYaub','CONDITION\x20non-default\x20edge\x20requires\x20a\x20non-empty\x20expression.','.async.enabled','keys','.role','FORM_FLOW','APPROVAL\x20node\x20requires\x20exactly\x20one\x20APPROVED\x20outgoing\x20edge.','CONDITION\x20node\x20requires\x20exactly\x20one\x20default\x20outgoing\x20edge.','event','Notification\x20template.','approval_sys_','scriptName','every','empty_metadata_removed','^[1-9][0-9]*$','pageMode\x20applies\x20only\x20to\x20INDEPENDENT_FLOW.'];a281_0x1c91=function(){return _0x48a035;};return a281_0x1c91();}function resolveEdgeEndpoint(_0x591a9a,_0x38e17c){const _0x44320c=a281_0x3406bd;if(typeof _0x591a9a==='string'&&_0x591a9a[_0x44320c(0x26a)]())return _0x591a9a['trim']();if(typeof _0x38e17c==='string'&&_0x38e17c['trim']())return _0x38e17c[_0x44320c(0x26a)]();return undefined;}function removeEmptyMetadata(_0x270fda,_0x458aae,_0x2ea90b,_0x7292e2){const _0x1093a7=a281_0x3406bd;if(Array[_0x1093a7(0x1fb)](_0x270fda)){_0x270fda[_0x1093a7(0x269)]((_0x415639,_0x24d666)=>removeEmptyMetadata(_0x415639,_0x458aae+'['+_0x24d666+']',_0x2ea90b,_0x7292e2));return;}if(!isRecord(_0x270fda))return;for(const [_0x2dcb2a,_0x5c23cf]of Object[_0x1093a7(0x14b)](_0x270fda)){const _0x4ab9c8=_0x458aae+'.'+_0x2dcb2a;if(_0x2dcb2a===_0x1093a7(0x27e)&&isEmptyJsonValue(_0x5c23cf)){delete _0x270fda[_0x2dcb2a],_0x7292e2[_0x1093a7(0x262)](_0x4ab9c8),_0x2ea90b[_0x1093a7(0x262)]({'code':_0x1093a7(0x186),'path':_0x4ab9c8,'message':_0x4ab9c8+_0x1093a7(0x229)});continue;}removeEmptyMetadata(_0x5c23cf,_0x4ab9c8,_0x2ea90b,_0x7292e2);}}function isEmptyJsonValue(_0x37f856){const _0x9f8954=a281_0x3406bd;if(_0x37f856===null||_0x37f856===undefined)return!![];if(typeof _0x37f856==='string')return _0x37f856[_0x9f8954(0x26a)]()==='';if(Array[_0x9f8954(0x1fb)](_0x37f856))return _0x37f856[_0x9f8954(0x203)]===0x0;return isRecord(_0x37f856)&&Object[_0x9f8954(0x17c)](_0x37f856)['length']===0x0;}function isRecord(_0x206d82){const _0x1c35a9=a281_0x3406bd;return typeof _0x206d82===_0x1c35a9(0x190)&&_0x206d82!==null&&!Array[_0x1c35a9(0x1fb)](_0x206d82);}function cloneJsonValue(_0x4f3362){return JSON['parse'](JSON['stringify'](_0x4f3362));}export async function readFlowConfigFile(_0x562aaf){const _0x593a54=a281_0x3406bd,_0x51896f=await readFile(resolve(_0x562aaf),_0x593a54(0x19f));return JSON['parse'](_0x51896f);}
|