@lovrabet/rabetbase-cli 2.5.5-beta.2 → 2.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (363) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/detail.js +1 -1
  77. package/lib/commands/dataset/extend-update.js +1 -1
  78. package/lib/commands/dataset/field-restore.js +1 -1
  79. package/lib/commands/dataset/field-update.js +1 -1
  80. package/lib/commands/dataset/generate.js +1 -1
  81. package/lib/commands/dataset/index.js +1 -1
  82. package/lib/commands/dataset/list.js +1 -1
  83. package/lib/commands/dataset/operations.js +1 -1
  84. package/lib/commands/dataset/relation-audit.js +1 -1
  85. package/lib/commands/dataset/relation-create.js +1 -1
  86. package/lib/commands/dataset/relation-delete.js +1 -1
  87. package/lib/commands/dataset/relation-shared.js +1 -1
  88. package/lib/commands/dataset/relation-update.js +1 -1
  89. package/lib/commands/dataset/relations.js +1 -1
  90. package/lib/commands/dataset/rename.js +1 -1
  91. package/lib/commands/dataset/restore.js +1 -1
  92. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  93. package/lib/commands/db/analysis-batching.js +1 -1
  94. package/lib/commands/db/analyze-batch-plan.js +1 -1
  95. package/lib/commands/db/analyze-cancel.js +1 -1
  96. package/lib/commands/db/analyze-start.js +1 -1
  97. package/lib/commands/db/analyze-status.js +1 -1
  98. package/lib/commands/db/create.js +1 -1
  99. package/lib/commands/db/delete.js +1 -1
  100. package/lib/commands/db/detail.js +1 -1
  101. package/lib/commands/db/diff-refresh-start.js +1 -1
  102. package/lib/commands/db/diff-refresh-status.js +1 -1
  103. package/lib/commands/db/diff.js +1 -1
  104. package/lib/commands/db/index.js +1 -1
  105. package/lib/commands/db/list.js +1 -1
  106. package/lib/commands/db/shared.js +1 -1
  107. package/lib/commands/db/table-diff-shared.js +1 -1
  108. package/lib/commands/db/tables.js +1 -1
  109. package/lib/commands/db/test.js +1 -1
  110. package/lib/commands/db/update.js +1 -1
  111. package/lib/commands/deployment/index.js +1 -1
  112. package/lib/commands/deployment/sync-all.js +1 -1
  113. package/lib/commands/deployment/sync-jobs.js +1 -1
  114. package/lib/commands/deployment/sync-status.js +1 -1
  115. package/lib/commands/doctor.js +1 -1
  116. package/lib/commands/file/index.js +1 -1
  117. package/lib/commands/flow/create.js +1 -1
  118. package/lib/commands/flow/detail.js +1 -1
  119. package/lib/commands/flow/index.js +1 -1
  120. package/lib/commands/flow/list.js +1 -1
  121. package/lib/commands/flow/publish.js +1 -1
  122. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  123. package/lib/commands/flow/runtime-role-list.js +1 -1
  124. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  125. package/lib/commands/flow/runtime-user-search.js +1 -1
  126. package/lib/commands/flow/shared.js +1 -1
  127. package/lib/commands/flow/update.js +1 -1
  128. package/lib/commands/flow/validate.js +1 -1
  129. package/lib/commands/instant-api-policy/current.js +1 -1
  130. package/lib/commands/instant-api-policy/index.js +1 -1
  131. package/lib/commands/instant-api-policy/init.js +1 -1
  132. package/lib/commands/instant-api-policy/publish.js +1 -1
  133. package/lib/commands/instant-api-policy/pull.js +1 -1
  134. package/lib/commands/instant-api-policy/revision.js +1 -1
  135. package/lib/commands/instant-api-policy/revisions.js +1 -1
  136. package/lib/commands/instant-api-policy/rollback.js +1 -1
  137. package/lib/commands/instant-api-policy/shared.js +1 -1
  138. package/lib/commands/instant-api-policy/validate.js +1 -1
  139. package/lib/commands/issue/index.js +1 -1
  140. package/lib/commands/issue/nudge.js +1 -1
  141. package/lib/commands/issue/report.js +1 -1
  142. package/lib/commands/issue/shared.js +1 -1
  143. package/lib/commands/kb/create.js +1 -1
  144. package/lib/commands/kb/delete.js +1 -1
  145. package/lib/commands/kb/detail.js +1 -1
  146. package/lib/commands/kb/index.js +1 -1
  147. package/lib/commands/kb/list.js +1 -1
  148. package/lib/commands/kb/search.js +1 -1
  149. package/lib/commands/kb/shared.js +1 -1
  150. package/lib/commands/kb/update.js +1 -1
  151. package/lib/commands/logs/index.js +1 -1
  152. package/lib/commands/menu/asset-update.js +1 -1
  153. package/lib/commands/menu/delete.js +1 -1
  154. package/lib/commands/menu/external-link-create.js +1 -1
  155. package/lib/commands/menu/external-link-update.js +1 -1
  156. package/lib/commands/menu/group-create.js +1 -1
  157. package/lib/commands/menu/group-update.js +1 -1
  158. package/lib/commands/menu/index.js +1 -1
  159. package/lib/commands/menu/list.js +1 -1
  160. package/lib/commands/menu/move.js +1 -1
  161. package/lib/commands/menu/regroup-start.js +1 -1
  162. package/lib/commands/menu/rename.js +1 -1
  163. package/lib/commands/menu/shared/compare-table.js +1 -1
  164. package/lib/commands/menu/shared/delete-plan.js +1 -1
  165. package/lib/commands/menu/shared/facts.js +1 -1
  166. package/lib/commands/menu/shared/index.js +1 -1
  167. package/lib/commands/menu/shared/inquirer.js +1 -1
  168. package/lib/commands/menu/shared/local-pages.js +1 -1
  169. package/lib/commands/menu/shared/logic.js +1 -1
  170. package/lib/commands/menu/shared/mutations.js +1 -1
  171. package/lib/commands/menu/shared/path.js +1 -1
  172. package/lib/commands/menu/shared/service.js +1 -1
  173. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  174. package/lib/commands/menu/shared/sync-core.js +1 -1
  175. package/lib/commands/menu/shared/update-core.js +1 -1
  176. package/lib/commands/menu/shared/valid-url.js +1 -1
  177. package/lib/commands/menu/subapp-assets-status.js +1 -1
  178. package/lib/commands/menu/subapp-assets-update.js +1 -1
  179. package/lib/commands/menu/sync.js +1 -1
  180. package/lib/commands/menu/visibility-update.js +1 -1
  181. package/lib/commands/notification/config-create.js +1 -1
  182. package/lib/commands/notification/config-delete.js +1 -1
  183. package/lib/commands/notification/config-list.js +1 -1
  184. package/lib/commands/notification/config-update.js +1 -1
  185. package/lib/commands/notification/index.js +1 -1
  186. package/lib/commands/notification/shared.js +1 -1
  187. package/lib/commands/ocr/index.js +1 -1
  188. package/lib/commands/page/create.js +1 -1
  189. package/lib/commands/page/custom/detail.js +1 -1
  190. package/lib/commands/page/custom/list.js +1 -1
  191. package/lib/commands/page/custom/publish.js +1 -1
  192. package/lib/commands/page/custom/shared.js +1 -1
  193. package/lib/commands/page/custom/syntax.js +1 -1
  194. package/lib/commands/page/custom/update.js +1 -1
  195. package/lib/commands/page/data-list-status.js +1 -1
  196. package/lib/commands/page/generate-start.js +1 -1
  197. package/lib/commands/page/generate-status.js +1 -1
  198. package/lib/commands/page/index.js +1 -1
  199. package/lib/commands/page/pull.js +1 -1
  200. package/lib/commands/page/push.js +1 -1
  201. package/lib/commands/page/relation-audit.js +1 -1
  202. package/lib/commands/page/restore.js +1 -1
  203. package/lib/commands/page/shared.js +1 -1
  204. package/lib/commands/page/sync.js +1 -1
  205. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  206. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  207. package/lib/commands/project/create/format-elapsed.js +1 -1
  208. package/lib/commands/project/create/main.js +1 -1
  209. package/lib/commands/project/create/materialize-project-template.js +1 -1
  210. package/lib/commands/project/create/project-name.js +1 -1
  211. package/lib/commands/project/create/project-template-archive.js +1 -1
  212. package/lib/commands/project/create/project-template-path.js +1 -1
  213. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  214. package/lib/commands/project/create/use-format-code.js +1 -1
  215. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  216. package/lib/commands/project/domain-routing-sync.js +1 -1
  217. package/lib/commands/project/index.js +1 -1
  218. package/lib/commands/project/upgrade.js +1 -1
  219. package/lib/commands/registry.js +1 -1
  220. package/lib/commands/role/delete.js +1 -1
  221. package/lib/commands/role/detail.js +1 -1
  222. package/lib/commands/role/index.js +1 -1
  223. package/lib/commands/role/list.js +1 -1
  224. package/lib/commands/role/shared.js +1 -1
  225. package/lib/commands/role/update.js +1 -1
  226. package/lib/commands/role/user-add.js +1 -1
  227. package/lib/commands/role/user-remove.js +1 -1
  228. package/lib/commands/role/user-resolve.js +1 -1
  229. package/lib/commands/rule/get.js +1 -1
  230. package/lib/commands/rule/index.js +1 -1
  231. package/lib/commands/rule/list.js +1 -1
  232. package/lib/commands/rule/set.js +1 -1
  233. package/lib/commands/rule/shared.js +1 -1
  234. package/lib/commands/run/index.js +1 -1
  235. package/lib/commands/schema.js +1 -1
  236. package/lib/commands/sql/create.js +1 -1
  237. package/lib/commands/sql/delete.js +1 -1
  238. package/lib/commands/sql/detail.js +1 -1
  239. package/lib/commands/sql/exec.js +1 -1
  240. package/lib/commands/sql/index.js +1 -1
  241. package/lib/commands/sql/list.js +1 -1
  242. package/lib/commands/sql/pull.js +1 -1
  243. package/lib/commands/sql/push.js +1 -1
  244. package/lib/commands/sql/shared.js +1 -1
  245. package/lib/commands/sql/status.js +1 -1
  246. package/lib/commands/sql/validate.js +1 -1
  247. package/lib/commands/task/index.js +1 -1
  248. package/lib/commands/task/status.js +1 -1
  249. package/lib/commands/tenant/index.js +1 -1
  250. package/lib/commands/tenant/members-list.js +1 -1
  251. package/lib/commands/tenant/shared.js +1 -1
  252. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  253. package/lib/commands/user-account/feishu-bind.js +1 -1
  254. package/lib/commands/user-account/index.js +1 -1
  255. package/lib/commands/workspace/add.js +1 -1
  256. package/lib/commands/workspace/index.js +1 -1
  257. package/lib/commands/workspace/remove.js +1 -1
  258. package/lib/config/domain-config.js +1 -1
  259. package/lib/config/project-domain-routing.js +1 -1
  260. package/lib/config/region-config.js +1 -1
  261. package/lib/config/schema.js +1 -1
  262. package/lib/constant/cdn.js +1 -1
  263. package/lib/constant/cli.js +1 -1
  264. package/lib/constant/defaults.js +1 -1
  265. package/lib/constant/domain.js +1 -1
  266. package/lib/constant/env.js +1 -1
  267. package/lib/constant/output.js +1 -1
  268. package/lib/constant/paths.js +1 -1
  269. package/lib/constant/region.js +1 -1
  270. package/lib/constant/risk.js +1 -1
  271. package/lib/constant/routing-profile.js +1 -1
  272. package/lib/context/app-resolver.js +1 -1
  273. package/lib/context/auth-resolver.js +1 -1
  274. package/lib/context/config-loader.js +1 -1
  275. package/lib/context.js +1 -1
  276. package/lib/core/alias-resolver.js +1 -1
  277. package/lib/core/api-client.js +1 -1
  278. package/lib/core/bff/config.js +1 -1
  279. package/lib/core/bff/file-system.js +1 -1
  280. package/lib/core/bff/hash.js +1 -1
  281. package/lib/core/bff/hook-directory.js +1 -1
  282. package/lib/core/bff/lock.js +1 -1
  283. package/lib/core/bff/utils.js +1 -1
  284. package/lib/core/cross-db-relation.js +1 -1
  285. package/lib/core/db-resolver.js +1 -1
  286. package/lib/core/flow-config.js +1 -1
  287. package/lib/core/instant-api-policy/config.js +1 -1
  288. package/lib/core/kb-search-client.js +1 -1
  289. package/lib/core/page/file-system.js +1 -1
  290. package/lib/core/page/hash.js +1 -1
  291. package/lib/core/page/lock.js +1 -1
  292. package/lib/core/page/lr-smart-jsx.js +1 -1
  293. package/lib/core/sql-index-auditor.js +1 -1
  294. package/lib/core/sql-sync/config.js +1 -1
  295. package/lib/core/sql-sync/file-system.js +1 -1
  296. package/lib/core/sql-sync/hash.js +1 -1
  297. package/lib/core/sql-sync/lock.js +1 -1
  298. package/lib/core/sql-sync/utils.js +1 -1
  299. package/lib/core/sql-validator.js +1 -1
  300. package/lib/errors.js +1 -1
  301. package/lib/framework/build-all-flags.js +1 -1
  302. package/lib/framework/error-output.js +1 -1
  303. package/lib/framework/explicit-yes.js +1 -1
  304. package/lib/framework/flags.js +1 -1
  305. package/lib/framework/help.js +1 -1
  306. package/lib/framework/index.js +1 -1
  307. package/lib/framework/output.js +1 -1
  308. package/lib/framework/response.js +1 -1
  309. package/lib/framework/runner-alias.js +1 -1
  310. package/lib/framework/runner.js +1 -1
  311. package/lib/framework/schema-export.js +1 -1
  312. package/lib/framework/supported-flags.js +1 -1
  313. package/lib/framework/types.js +1 -1
  314. package/lib/generated/build-info.d.ts +4 -4
  315. package/lib/generated/build-info.js +1 -1
  316. package/lib/generated/official-routing.js +1 -1
  317. package/lib/generated/routing-contract.js +1 -1
  318. package/lib/help.js +1 -1
  319. package/lib/postinstall.js +1 -1
  320. package/lib/runtime/confirmation.js +1 -1
  321. package/lib/runtime/event.js +1 -1
  322. package/lib/runtime/index.js +1 -1
  323. package/lib/runtime/queue.js +1 -1
  324. package/lib/runtime/resolve.js +1 -1
  325. package/lib/skills/builtin-skill.js +1 -1
  326. package/lib/skills/main.js +1 -1
  327. package/lib/skills/npx-skills-add.js +1 -1
  328. package/lib/skills/skill-presence.js +1 -1
  329. package/lib/telemetry/cli-command-trace.js +1 -1
  330. package/lib/telemetry/cli-help-trace.js +1 -1
  331. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  332. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  333. package/lib/telemetry/send-cli-trace-log.js +1 -1
  334. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  335. package/lib/utils/ai_config.js +1 -1
  336. package/lib/utils/apply-jq-filter.js +1 -1
  337. package/lib/utils/cdn-config.js +1 -1
  338. package/lib/utils/check-sdk-version.js +1 -1
  339. package/lib/utils/cli-version-check.js +1 -1
  340. package/lib/utils/cli-version-policy.js +1 -1
  341. package/lib/utils/config.js +1 -1
  342. package/lib/utils/entity-with-id.js +1 -1
  343. package/lib/utils/file-utils.js +1 -1
  344. package/lib/utils/guides-cdn.js +1 -1
  345. package/lib/utils/http-client.js +1 -1
  346. package/lib/utils/is-non-interactive.js +1 -1
  347. package/lib/utils/logger.js +1 -1
  348. package/lib/utils/params.js +1 -1
  349. package/lib/utils/platform.js +1 -1
  350. package/lib/utils/sleep.js +1 -1
  351. package/lib/utils/template-replacer.js +1 -1
  352. package/lib/utils/update-notice.js +1 -1
  353. package/lib/utils/version.js +1 -1
  354. package/lib/utils/with-active-cookie.js +1 -1
  355. package/lib/utils/write-cli-side-channel.js +1 -1
  356. package/package.json +1 -1
  357. package/skills/rabetbase/SKILL.md +3 -3
  358. package/skills/rabetbase/guides/independent-deployment.md +11 -1
  359. package/skills/rabetbase/references/rabetbase-config.md +16 -19
  360. package/skills/rabetbase/references/rabetbase-menu-visibility-update.md +5 -4
  361. package/skills/rabetbase/references/rabetbase-workspace.md +3 -1
  362. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  363. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x9131fc,_0x5a12dd){const _0x307f54=a281_0x1a59,_0x397708=_0x9131fc();while(!![]){try{const _0x17ba3d=parseInt(_0x307f54(0x1f3))/0x1+parseInt(_0x307f54(0x203))/0x2+parseInt(_0x307f54(0x1ed))/0x3+parseInt(_0x307f54(0x1fa))/0x4*(-parseInt(_0x307f54(0x1f9))/0x5)+parseInt(_0x307f54(0x20d))/0x6*(parseInt(_0x307f54(0x1f6))/0x7)+-parseInt(_0x307f54(0x211))/0x8+parseInt(_0x307f54(0x1fd))/0x9*(-parseInt(_0x307f54(0x209))/0xa);if(_0x17ba3d===_0x5a12dd)break;else _0x397708['push'](_0x397708['shift']());}catch(_0x36ccf4){_0x397708['push'](_0x397708['shift']());}}}(a281_0x4877,0x37458));import{CliError}from'../../errors.js';export function trackedHookDirectoryMappings(_0x2b23f3){const _0xc85569=a281_0x1a59,_0x4fc523=[];for(const [_0x38df81,_0x370bb4]of Object['entries'](_0x2b23f3[_0xc85569(0x202)])){const [_0x440529,_0x3e2e98]=_0x38df81[_0xc85569(0x208)]('/');if(_0x440529!=='HOOK'||!_0x3e2e98||!_0x370bb4[_0xc85569(0x1f2)])continue;_0x4fc523[_0xc85569(0x20c)]({'alias':_0x3e2e98,'datasetCode':_0x370bb4['datasetCode']});}return _0x4fc523;}export function uniqueTrackedHookDirectoryByDataset(_0xbbe718){const _0x13f720=a281_0x1a59,_0x27c67b=new Map();for(const _0x26824e of trackedHookDirectoryMappings(_0xbbe718)){const _0x429403=directoryIdentity(_0x26824e[_0x13f720(0x1f2)]),_0x2769cb=_0x27c67b[_0x13f720(0x200)](_0x429403)??new Map();_0x2769cb[_0x13f720(0x1f4)](directoryIdentity(_0x26824e[_0x13f720(0x216)]),_0x26824e[_0x13f720(0x216)]),_0x27c67b[_0x13f720(0x1f4)](_0x429403,_0x2769cb);}const _0x377551=new Map();for(const [_0x5f2559,_0x326963]of _0x27c67b){if(_0x326963[_0x13f720(0x215)]>0x1)throw hookDirectoryError(_0x13f720(0x217),'Dataset\x20\x22'+_0x5f2559+'\x22\x20has\x20multiple\x20tracked\x20HOOK\x20directories:\x20'+[..._0x326963[_0x13f720(0x1e7)]()]['join'](',\x20')+'.',{'datasetCode':_0x5f2559,'directories':[..._0x326963[_0x13f720(0x1e7)]()]});_0x377551[_0x13f720(0x1f4)](_0x5f2559,[..._0x326963['values']()][0x0]);}return _0x377551;}export function assertUnambiguousHookDirectoryMappings(_0x49dc7f){const _0x4bd9d4=a281_0x1a59,_0x2922df=new Map();for(const {alias:_0x108a78,datasetCode:_0x437d43}of _0x49dc7f){const _0x7612f4=directoryIdentity(_0x108a78),_0xa42f1f=_0x2922df[_0x4bd9d4(0x200)](_0x7612f4)??new Set();_0xa42f1f[_0x4bd9d4(0x20f)](_0x437d43),_0x2922df[_0x4bd9d4(0x1f4)](_0x7612f4,_0xa42f1f);}for(const [_0x2ec0d9,_0x164c73]of _0x2922df){if(_0x164c73[_0x4bd9d4(0x215)]>0x1)throw hookDirectoryError(_0x4bd9d4(0x206),_0x4bd9d4(0x20e)+_0x2ec0d9+'\x22\x20resolves\x20to\x20multiple\x20Datasets.',{'directoryName':_0x2ec0d9,'datasetCodes':[..._0x164c73]});}}export function assertUnambiguousHookAliases(_0x496a93){const _0x33c35e=a281_0x1a59,_0x549869=[..._0x496a93],_0x22376b=new Map(),_0x2644d2=new Map();for(const {alias:_0x21bbda,datasetCode:_0x2eefb7}of _0x549869){const _0x680147=directoryIdentity(_0x21bbda),_0x27963e=directoryIdentity(_0x2eefb7),_0x7e9bc4=_0x22376b[_0x33c35e(0x200)](_0x680147)??new Set();_0x7e9bc4[_0x33c35e(0x20f)](_0x2eefb7),_0x22376b[_0x33c35e(0x1f4)](_0x680147,_0x7e9bc4);const _0x4b9904=_0x2644d2[_0x33c35e(0x200)](_0x27963e)??new Set();_0x4b9904[_0x33c35e(0x20f)](_0x21bbda),_0x2644d2[_0x33c35e(0x1f4)](_0x27963e,_0x4b9904);}for(const [_0x59d4e4,_0x592753]of _0x22376b){if(_0x592753['size']>0x1)throw hookDirectoryError(_0x33c35e(0x205),_0x33c35e(0x213)+_0x59d4e4+_0x33c35e(0x1ef),{'alias':_0x59d4e4,'datasetCodes':[..._0x592753]});}for(const [_0x5c100c,_0x9492f6]of _0x2644d2){if(_0x9492f6[_0x33c35e(0x215)]>0x1)throw hookDirectoryError('HOOK_ALIAS_AMBIGUOUS',_0x33c35e(0x1e8)+_0x5c100c+_0x33c35e(0x207),{'datasetCode':_0x5c100c,'aliases':[..._0x9492f6]});}}export function buildHookDirectoryIndexes(_0x1786d2,_0x44f6a3=[]){const _0x18a434=a281_0x1a59,_0x4bd7ea=[..._0x44f6a3];assertUnambiguousHookDirectoryMappings(_0x4bd7ea[_0x18a434(0x20b)](([_0x262f17,_0x15744b])=>({'alias':_0x262f17,'datasetCode':_0x15744b})));const _0x575aa8=new Map(),_0x41ed42=new Map();for(const _0x437168 of _0x1786d2){appendUnique(_0x575aa8,directoryIdentity(_0x437168[_0x18a434(0x1f7)]),_0x437168,_0x2505c5=>_0x2505c5['code']);}for(const [_0x47cd6f,_0xf72ed6]of _0x4bd7ea){appendUnique(_0x41ed42,directoryIdentity(_0x47cd6f),_0xf72ed6,_0x58bcf8=>_0x58bcf8);}return{'datasetCodeToDatasets':_0x575aa8,'aliasToDatasetCodes':_0x41ed42};}export function resolvePushHookDirectory(_0xdc45ca,_0x3f5c6c,_0x1efa61){const _0x268a46=a281_0x1a59,_0x1ee120=directoryIdentity(_0xdc45ca),_0x5ea025=_0x1efa61[_0x268a46(0x1e3)][_0x268a46(0x200)](_0x1ee120)??[],_0x5220ef=_0x1efa61[_0x268a46(0x1ff)][_0x268a46(0x200)](_0x1ee120)??[],_0x2044ce=new Set([..._0x5ea025[_0x268a46(0x20b)](_0x5aa95f=>_0x5aa95f[_0x268a46(0x1f7)]),..._0x5220ef]);if(_0x2044ce[_0x268a46(0x215)]>0x1)throw hookDirectoryError(_0x268a46(0x206),_0x268a46(0x20e)+_0xdc45ca+_0x268a46(0x1e4),{'directoryName':_0xdc45ca,'datasetCodes':[..._0x2044ce]});const _0x3b157c=[..._0x2044ce][0x0];if(_0x3b157c&&_0x3f5c6c?.[_0x268a46(0x1f2)]&&_0x3b157c!==_0x3f5c6c[_0x268a46(0x1f2)])throw hookDirectoryError(_0x268a46(0x1fb),'HOOK\x20directory\x20\x22'+_0xdc45ca+_0x268a46(0x204)+_0x3f5c6c[_0x268a46(0x1f2)]+_0x268a46(0x1f5)+_0x3b157c+'\x22.',{'directoryName':_0xdc45ca,'datasetCode':_0x3b157c,'lockedDatasetCode':_0x3f5c6c[_0x268a46(0x1f2)]});const _0x4bb60b=_0x3b157c?findDatasetByCode(_0x1efa61,_0x3b157c):undefined,_0x17bed8=!!_0x3b157c&&_0x5220ef[_0x268a46(0x1e6)](_0x3b157c);if(_0x4bb60b)return{'dataset':_0x4bb60b,'datasetCode':_0x4bb60b[_0x268a46(0x1f7)],..._0x17bed8?{'alias':_0xdc45ca}:{},'directoryProtocol':_0x17bed8?'alias':_0x268a46(0x1f2),'warnings':[]};const _0x58451e=_0x3f5c6c?.['datasetCode'];if(_0x58451e){const _0x540c36=findDatasetByCode(_0x1efa61,_0x58451e);if(_0x540c36)return{'dataset':_0x540c36,'datasetCode':_0x540c36[_0x268a46(0x1f7)],..._0x3f5c6c[_0x268a46(0x216)]?{'alias':_0x3f5c6c[_0x268a46(0x216)]}:{},'directoryProtocol':_0x3f5c6c['alias']?'alias':_0x268a46(0x1f2),'warnings':[]};}if(_0x3b157c||_0x58451e){const _0x3fc222=_0x3b157c??_0x58451e;throw hookDirectoryError(_0x268a46(0x210),_0x268a46(0x20e)+_0xdc45ca+_0x268a46(0x201),{'directoryName':_0xdc45ca,'datasetCode':_0x3fc222});}throw hookDirectoryError(_0x268a46(0x1e5),_0x268a46(0x1fc)+_0xdc45ca+'\x22\x20to\x20a\x20Dataset\x20alias\x20or\x20datasetCode.',{'directoryName':_0xdc45ca});}function a281_0x4877(){const _0x56c83b=['lockKey','map','push','6LyPYYQ','HOOK\x20directory\x20\x22','add','HOOK_DATASET_NOT_FOUND','957880BNtoJs','some','SDK\x20alias\x20\x22','HOOK','size','alias','HOOK_DUPLICATE_DIRECTORIES','message','type','datasetCodeToDatasets','\x22\x20collides\x20across\x20datasetCode\x20and\x20alias\x20namespaces.','HOOK_DIRECTORY_UNRESOLVED','includes','values','Dataset\x20\x22','Incomplete\x20HOOK\x20path:\x20','\x22\x20is\x20represented\x20by\x20multiple\x20HOOK\x20directories:\x20','\x22\x20differs\x20only\x20by\x20case\x20from\x20another\x20Dataset\x20code.','toLowerCase','571494VVCUBd','NFC','\x22\x20resolves\x20to\x20multiple\x20Datasets.','join','details','datasetCode','310214KMHcDb','set','\x22\x20to\x20\x22','132993vIScEC','code','normalize','2555YYdYBX','668NMdmBT','HOOK_MAPPING_DRIFT','Cannot\x20resolve\x20HOOK\x20directory\x20\x22','126wEZUyY','length','aliasToDatasetCodes','get','\x22\x20points\x20to\x20a\x20Dataset\x20that\x20is\x20absent\x20from\x20current\x20platform\x20metadata.','functions','763662QhHkGa','\x22\x20changed\x20mapping\x20from\x20Dataset\x20\x22','HOOK_ALIAS_AMBIGUOUS','HOOK_DIRECTORY_AMBIGUOUS','\x22\x20has\x20multiple\x20SDK\x20aliases\x20and\x20has\x20no\x20unique\x20HOOK\x20directory.','split','335770Qwaiti'];a281_0x4877=function(){return _0x56c83b;};return a281_0x4877();}export function preflightPushHookDirectories(_0x46bb77,_0x48790b,_0x335728,_0x5eda79){const _0x30c6cd=a281_0x1a59,_0x21c263=new Map(),_0x10357e=new Map();for(const _0x3522d4 of _0x46bb77){if(_0x3522d4[_0x30c6cd(0x1e2)]!==_0x30c6cd(0x214))continue;const _0x263063=_0x3522d4['alias'];if(!_0x263063)throw hookDirectoryError(_0x30c6cd(0x1e5),_0x30c6cd(0x1e9)+_0x3522d4['lockKey'],{'lockKey':_0x3522d4[_0x30c6cd(0x20a)]});let _0x25dae4;try{_0x25dae4=resolvePushHookDirectory(_0x263063,_0x48790b['functions'][_0x3522d4['lockKey']],_0x335728);}catch(_0x460aa0){if(_0x5eda79&&_0x460aa0 instanceof CliError&&[_0x30c6cd(0x210),_0x30c6cd(0x1e5)]['includes'](_0x460aa0[_0x30c6cd(0x1f7)])){_0x5eda79[_0x30c6cd(0x1f4)](_0x3522d4['lockKey'],_0x460aa0[_0x30c6cd(0x218)]);continue;}throw _0x460aa0;}_0x21c263[_0x30c6cd(0x1f4)](_0x3522d4[_0x30c6cd(0x20a)],_0x25dae4);const _0x5c7731=_0x10357e[_0x30c6cd(0x200)](_0x25dae4[_0x30c6cd(0x1f2)])??new Set();_0x5c7731['add'](_0x263063),_0x10357e[_0x30c6cd(0x1f4)](_0x25dae4[_0x30c6cd(0x1f2)],_0x5c7731);}for(const [_0x379a52,_0xfc945d]of _0x10357e){if(_0xfc945d[_0x30c6cd(0x215)]>0x1)throw hookDirectoryError(_0x30c6cd(0x217),_0x30c6cd(0x1e8)+_0x379a52+_0x30c6cd(0x1ea)+[..._0xfc945d][_0x30c6cd(0x1f0)](',\x20')+'.',{'datasetCode':_0x379a52,'directories':[..._0xfc945d]});}return _0x21c263;}export function hookDirectoryError(_0x3dcbd8,_0x31d22f,_0x2d8e84){const _0x21f94f=a281_0x1a59,_0x3f8c71=new CliError(_0x3dcbd8,0x2,_0x3dcbd8+':\x20'+_0x31d22f);return _0x3f8c71[_0x21f94f(0x1f1)]=_0x2d8e84,_0x3f8c71;}function a281_0x1a59(_0x1528f6,_0x429e55){_0x1528f6=_0x1528f6-0x1e2;const _0x4877e2=a281_0x4877();let _0x1a599d=_0x4877e2[_0x1528f6];return _0x1a599d;}function findDatasetByCode(_0x46d6e2,_0x403d3e){const _0x2dcfb9=a281_0x1a59,_0x44ea96=_0x46d6e2[_0x2dcfb9(0x1e3)][_0x2dcfb9(0x200)](directoryIdentity(_0x403d3e))??[];if(_0x44ea96[_0x2dcfb9(0x1fe)]>0x1)throw hookDirectoryError('HOOK_DATASET_CODE_AMBIGUOUS','Dataset\x20code\x20\x22'+_0x403d3e+_0x2dcfb9(0x1eb),{'datasetCode':_0x403d3e,'candidates':_0x44ea96[_0x2dcfb9(0x20b)](datasetFact)});return _0x44ea96[0x0];}function directoryIdentity(_0x3be7d0){const _0x1ede5e=a281_0x1a59;return _0x3be7d0[_0x1ede5e(0x1f8)](_0x1ede5e(0x1ee))[_0x1ede5e(0x1ec)]();}function appendUnique(_0x28c504,_0x5affe7,_0x4f6047,_0x44baf0){const _0x457e74=a281_0x1a59,_0x58254d=_0x28c504[_0x457e74(0x200)](_0x5affe7)??[];!_0x58254d[_0x457e74(0x212)](_0x17d659=>_0x44baf0(_0x17d659)===_0x44baf0(_0x4f6047))&&_0x58254d[_0x457e74(0x20c)](_0x4f6047),_0x28c504[_0x457e74(0x1f4)](_0x5affe7,_0x58254d);}function datasetFact(_0x33040a){const _0x3fc4de=a281_0x1a59;return{'id':_0x33040a['id'],'name':_0x33040a['name'],'datasetCode':_0x33040a[_0x3fc4de(0x1f7)]};}
1
+ (function(_0x59625e,_0x45ee02){const _0x4494d6=a281_0x188d,_0x184402=_0x59625e();while(!![]){try{const _0x43c3d1=-parseInt(_0x4494d6(0xf1))/0x1*(parseInt(_0x4494d6(0xf0))/0x2)+parseInt(_0x4494d6(0x113))/0x3*(parseInt(_0x4494d6(0x104))/0x4)+-parseInt(_0x4494d6(0x10c))/0x5*(-parseInt(_0x4494d6(0x117))/0x6)+parseInt(_0x4494d6(0x10f))/0x7*(parseInt(_0x4494d6(0x116))/0x8)+parseInt(_0x4494d6(0x101))/0x9+-parseInt(_0x4494d6(0xf9))/0xa+parseInt(_0x4494d6(0xf7))/0xb*(-parseInt(_0x4494d6(0x107))/0xc);if(_0x43c3d1===_0x45ee02)break;else _0x184402['push'](_0x184402['shift']());}catch(_0x45bd10){_0x184402['push'](_0x184402['shift']());}}}(a281_0x279a,0xb5e51));import{CliError}from'../../errors.js';function a281_0x188d(_0x473fcc,_0x2b2f11){_0x473fcc=_0x473fcc-0xe1;const _0x279a34=a281_0x279a();let _0x188dc6=_0x279a34[_0x473fcc];return _0x188dc6;}export function trackedHookDirectoryMappings(_0x4c2571){const _0x5132f5=a281_0x188d,_0x4e460a=[];for(const [_0x24786b,_0x9c0581]of Object[_0x5132f5(0x114)](_0x4c2571[_0x5132f5(0x109)])){const [_0x27634e,_0x3ca0d0]=_0x24786b[_0x5132f5(0xe4)]('/');if(_0x27634e!==_0x5132f5(0xe6)||!_0x3ca0d0||!_0x9c0581['datasetCode'])continue;_0x4e460a['push']({'alias':_0x3ca0d0,'datasetCode':_0x9c0581[_0x5132f5(0x112)]});}return _0x4e460a;}export function uniqueTrackedHookDirectoryByDataset(_0x3f0efb){const _0x5bf8b8=a281_0x188d,_0x3cbb7d=new Map();for(const _0x3d2505 of trackedHookDirectoryMappings(_0x3f0efb)){const _0x19b6c8=directoryIdentity(_0x3d2505[_0x5bf8b8(0x112)]),_0x4c52b7=_0x3cbb7d[_0x5bf8b8(0xf6)](_0x19b6c8)??new Map();_0x4c52b7[_0x5bf8b8(0xfb)](directoryIdentity(_0x3d2505['alias']),_0x3d2505['alias']),_0x3cbb7d[_0x5bf8b8(0xfb)](_0x19b6c8,_0x4c52b7);}const _0x4ecce8=new Map();for(const [_0x574155,_0x4bef6e]of _0x3cbb7d){if(_0x4bef6e['size']>0x1)throw hookDirectoryError(_0x5bf8b8(0xff),_0x5bf8b8(0xeb)+_0x574155+'\x22\x20has\x20multiple\x20tracked\x20HOOK\x20directories:\x20'+[..._0x4bef6e[_0x5bf8b8(0xe5)]()][_0x5bf8b8(0x103)](',\x20')+'.',{'datasetCode':_0x574155,'directories':[..._0x4bef6e['values']()]});_0x4ecce8[_0x5bf8b8(0xfb)](_0x574155,[..._0x4bef6e[_0x5bf8b8(0xe5)]()][0x0]);}return _0x4ecce8;}export function assertUnambiguousHookDirectoryMappings(_0x41a0f3){const _0x2e5479=a281_0x188d,_0x572b01=new Map();for(const {alias:_0x1bbdfd,datasetCode:_0x5e23b0}of _0x41a0f3){const _0x1da132=directoryIdentity(_0x1bbdfd),_0x67d4b3=_0x572b01['get'](_0x1da132)??new Set();_0x67d4b3[_0x2e5479(0xf2)](_0x5e23b0),_0x572b01[_0x2e5479(0xfb)](_0x1da132,_0x67d4b3);}for(const [_0x5ddadd,_0x19c650]of _0x572b01){if(_0x19c650['size']>0x1)throw hookDirectoryError('HOOK_DIRECTORY_AMBIGUOUS','HOOK\x20directory\x20\x22'+_0x5ddadd+_0x2e5479(0xed),{'directoryName':_0x5ddadd,'datasetCodes':[..._0x19c650]});}}export function assertUnambiguousHookAliases(_0x42d6f5){const _0x5dced4=a281_0x188d,_0x2e4863=[..._0x42d6f5],_0x2ef44e=new Map(),_0x22ec1f=new Map();for(const {alias:_0x4131f5,datasetCode:_0x3d5551}of _0x2e4863){const _0x194224=directoryIdentity(_0x4131f5),_0x1dbc12=directoryIdentity(_0x3d5551),_0x387cfd=_0x2ef44e[_0x5dced4(0xf6)](_0x194224)??new Set();_0x387cfd['add'](_0x3d5551),_0x2ef44e['set'](_0x194224,_0x387cfd);const _0x26faaf=_0x22ec1f[_0x5dced4(0xf6)](_0x1dbc12)??new Set();_0x26faaf[_0x5dced4(0xf2)](_0x4131f5),_0x22ec1f['set'](_0x1dbc12,_0x26faaf);}for(const [_0x301638,_0xb6eb9c]of _0x2ef44e){if(_0xb6eb9c['size']>0x1)throw hookDirectoryError('HOOK_ALIAS_AMBIGUOUS',_0x5dced4(0xe2)+_0x301638+'\x22\x20resolves\x20to\x20multiple\x20Datasets.',{'alias':_0x301638,'datasetCodes':[..._0xb6eb9c]});}for(const [_0x44cfd9,_0x34c6f6]of _0x22ec1f){if(_0x34c6f6['size']>0x1)throw hookDirectoryError('HOOK_ALIAS_AMBIGUOUS',_0x5dced4(0xeb)+_0x44cfd9+'\x22\x20has\x20multiple\x20SDK\x20aliases\x20and\x20has\x20no\x20unique\x20HOOK\x20directory.',{'datasetCode':_0x44cfd9,'aliases':[..._0x34c6f6]});}}function a281_0x279a(){const _0x3bcdb1=['aliasToDatasetCodes','NFC','Dataset\x20code\x20\x22','Dataset\x20\x22','includes','\x22\x20resolves\x20to\x20multiple\x20Datasets.','\x22\x20collides\x20across\x20datasetCode\x20and\x20alias\x20namespaces.','\x22\x20points\x20to\x20a\x20Dataset\x20that\x20is\x20absent\x20from\x20current\x20platform\x20metadata.','4434sMTNcq','331XfyfWJ','add','lockKey','HOOK_MAPPING_DRIFT','map','get','11JQTKEd','push','5756120PwgVBH','\x22\x20changed\x20mapping\x20from\x20Dataset\x20\x22','set','toLowerCase','Cannot\x20resolve\x20HOOK\x20directory\x20\x22','HOOK_DATASET_CODE_AMBIGUOUS','HOOK_DUPLICATE_DIRECTORIES','\x22\x20to\x20a\x20Dataset\x20alias\x20or\x20datasetCode.','3039804giCFRQ','some','join','1165160eXMCIT','length','normalize','3665448QFmIzA','name','functions','Incomplete\x20HOOK\x20path:\x20','HOOK\x20directory\x20\x22','339685AzuGhw','size','HOOK_DATASET_NOT_FOUND','49HcGTEQ','alias','\x22\x20differs\x20only\x20by\x20case\x20from\x20another\x20Dataset\x20code.','datasetCode','6inEezB','entries','HOOK_DIRECTORY_UNRESOLVED','1412328uIHxOe','18kZKJQR','code','SDK\x20alias\x20\x22','message','split','values','HOOK','\x22\x20is\x20represented\x20by\x20multiple\x20HOOK\x20directories:\x20'];a281_0x279a=function(){return _0x3bcdb1;};return a281_0x279a();}export function buildHookDirectoryIndexes(_0x4433cf,_0x2d04cf=[]){const _0x3f36a8=a281_0x188d,_0x4ba95b=[..._0x2d04cf];assertUnambiguousHookDirectoryMappings(_0x4ba95b[_0x3f36a8(0xf5)](([_0xc56e5f,_0x2bc8ff])=>({'alias':_0xc56e5f,'datasetCode':_0x2bc8ff})));const _0x565700=new Map(),_0x2ed8b6=new Map();for(const _0xe638fb of _0x4433cf){appendUnique(_0x565700,directoryIdentity(_0xe638fb[_0x3f36a8(0xe1)]),_0xe638fb,_0x3ce1e9=>_0x3ce1e9[_0x3f36a8(0xe1)]);}for(const [_0x3ebd3d,_0x191f39]of _0x4ba95b){appendUnique(_0x2ed8b6,directoryIdentity(_0x3ebd3d),_0x191f39,_0x4a9659=>_0x4a9659);}return{'datasetCodeToDatasets':_0x565700,'aliasToDatasetCodes':_0x2ed8b6};}export function resolvePushHookDirectory(_0x5d20bb,_0x3945b3,_0x11bc14){const _0x482bb8=a281_0x188d,_0x213290=directoryIdentity(_0x5d20bb),_0x3f1ff9=_0x11bc14['datasetCodeToDatasets']['get'](_0x213290)??[],_0x3de0d4=_0x11bc14[_0x482bb8(0xe8)]['get'](_0x213290)??[],_0xc84cc5=new Set([..._0x3f1ff9[_0x482bb8(0xf5)](_0x54167e=>_0x54167e[_0x482bb8(0xe1)]),..._0x3de0d4]);if(_0xc84cc5[_0x482bb8(0x10d)]>0x1)throw hookDirectoryError('HOOK_DIRECTORY_AMBIGUOUS',_0x482bb8(0x10b)+_0x5d20bb+_0x482bb8(0xee),{'directoryName':_0x5d20bb,'datasetCodes':[..._0xc84cc5]});const _0x253a45=[..._0xc84cc5][0x0];if(_0x253a45&&_0x3945b3?.['datasetCode']&&_0x253a45!==_0x3945b3['datasetCode'])throw hookDirectoryError(_0x482bb8(0xf4),'HOOK\x20directory\x20\x22'+_0x5d20bb+_0x482bb8(0xfa)+_0x3945b3[_0x482bb8(0x112)]+'\x22\x20to\x20\x22'+_0x253a45+'\x22.',{'directoryName':_0x5d20bb,'datasetCode':_0x253a45,'lockedDatasetCode':_0x3945b3['datasetCode']});const _0x3e641b=_0x253a45?findDatasetByCode(_0x11bc14,_0x253a45):undefined,_0x1b8b6c=!!_0x253a45&&_0x3de0d4[_0x482bb8(0xec)](_0x253a45);if(_0x3e641b)return{'dataset':_0x3e641b,'datasetCode':_0x3e641b['code'],..._0x1b8b6c?{'alias':_0x5d20bb}:{},'directoryProtocol':_0x1b8b6c?_0x482bb8(0x110):_0x482bb8(0x112),'warnings':[]};const _0x9bf236=_0x3945b3?.['datasetCode'];if(_0x9bf236){const _0x262ffb=findDatasetByCode(_0x11bc14,_0x9bf236);if(_0x262ffb)return{'dataset':_0x262ffb,'datasetCode':_0x262ffb[_0x482bb8(0xe1)],..._0x3945b3[_0x482bb8(0x110)]?{'alias':_0x3945b3[_0x482bb8(0x110)]}:{},'directoryProtocol':_0x3945b3[_0x482bb8(0x110)]?_0x482bb8(0x110):_0x482bb8(0x112),'warnings':[]};}if(_0x253a45||_0x9bf236){const _0x23a156=_0x253a45??_0x9bf236;throw hookDirectoryError(_0x482bb8(0x10e),'HOOK\x20directory\x20\x22'+_0x5d20bb+_0x482bb8(0xef),{'directoryName':_0x5d20bb,'datasetCode':_0x23a156});}throw hookDirectoryError(_0x482bb8(0x115),_0x482bb8(0xfd)+_0x5d20bb+_0x482bb8(0x100),{'directoryName':_0x5d20bb});}export function preflightPushHookDirectories(_0x499190,_0x37a948,_0x1cbd06,_0x4a7259){const _0x2374cb=a281_0x188d,_0x26dbe5=new Map(),_0x2fd1c2=new Map();for(const _0x48d58b of _0x499190){if(_0x48d58b['type']!==_0x2374cb(0xe6))continue;const _0x3ad0ed=_0x48d58b[_0x2374cb(0x110)];if(!_0x3ad0ed)throw hookDirectoryError('HOOK_DIRECTORY_UNRESOLVED',_0x2374cb(0x10a)+_0x48d58b[_0x2374cb(0xf3)],{'lockKey':_0x48d58b['lockKey']});let _0x5eebeb;try{_0x5eebeb=resolvePushHookDirectory(_0x3ad0ed,_0x37a948[_0x2374cb(0x109)][_0x48d58b[_0x2374cb(0xf3)]],_0x1cbd06);}catch(_0x460b8a){if(_0x4a7259&&_0x460b8a instanceof CliError&&['HOOK_DATASET_NOT_FOUND','HOOK_DIRECTORY_UNRESOLVED'][_0x2374cb(0xec)](_0x460b8a[_0x2374cb(0xe1)])){_0x4a7259['set'](_0x48d58b[_0x2374cb(0xf3)],_0x460b8a[_0x2374cb(0xe3)]);continue;}throw _0x460b8a;}_0x26dbe5['set'](_0x48d58b['lockKey'],_0x5eebeb);const _0x10f61e=_0x2fd1c2['get'](_0x5eebeb[_0x2374cb(0x112)])??new Set();_0x10f61e[_0x2374cb(0xf2)](_0x3ad0ed),_0x2fd1c2[_0x2374cb(0xfb)](_0x5eebeb['datasetCode'],_0x10f61e);}for(const [_0x1b6eb9,_0x1303f3]of _0x2fd1c2){if(_0x1303f3[_0x2374cb(0x10d)]>0x1)throw hookDirectoryError(_0x2374cb(0xff),_0x2374cb(0xeb)+_0x1b6eb9+_0x2374cb(0xe7)+[..._0x1303f3]['join'](',\x20')+'.',{'datasetCode':_0x1b6eb9,'directories':[..._0x1303f3]});}return _0x26dbe5;}export function hookDirectoryError(_0x340d87,_0x1e9ae1,_0xa9e5c6){const _0x2cf00a=new CliError(_0x340d87,0x2,_0x340d87+':\x20'+_0x1e9ae1);return _0x2cf00a['details']=_0xa9e5c6,_0x2cf00a;}function findDatasetByCode(_0x5b5037,_0x43c741){const _0x58e51d=a281_0x188d,_0x507980=_0x5b5037['datasetCodeToDatasets'][_0x58e51d(0xf6)](directoryIdentity(_0x43c741))??[];if(_0x507980[_0x58e51d(0x105)]>0x1)throw hookDirectoryError(_0x58e51d(0xfe),_0x58e51d(0xea)+_0x43c741+_0x58e51d(0x111),{'datasetCode':_0x43c741,'candidates':_0x507980[_0x58e51d(0xf5)](datasetFact)});return _0x507980[0x0];}function directoryIdentity(_0x7c610d){const _0x3734fe=a281_0x188d;return _0x7c610d[_0x3734fe(0x106)](_0x3734fe(0xe9))[_0x3734fe(0xfc)]();}function appendUnique(_0x1a6e33,_0x29d2d9,_0x4b30b4,_0x5aacb2){const _0x53d1c2=a281_0x188d,_0x5a4f02=_0x1a6e33[_0x53d1c2(0xf6)](_0x29d2d9)??[];!_0x5a4f02[_0x53d1c2(0x102)](_0x1d966f=>_0x5aacb2(_0x1d966f)===_0x5aacb2(_0x4b30b4))&&_0x5a4f02[_0x53d1c2(0xf8)](_0x4b30b4),_0x1a6e33[_0x53d1c2(0xfb)](_0x29d2d9,_0x5a4f02);}function datasetFact(_0x221490){const _0x110d10=a281_0x188d;return{'id':_0x221490['id'],'name':_0x221490[_0x110d10(0x108)],'datasetCode':_0x221490[_0x110d10(0xe1)]};}
@@ -1 +1 @@
1
- (function(_0x61fa9e,_0x186e26){const _0x236a82=a282_0x50be,_0x4687a4=_0x61fa9e();while(!![]){try{const _0x1d2880=parseInt(_0x236a82(0xb1))/0x1+-parseInt(_0x236a82(0xbe))/0x2+parseInt(_0x236a82(0xb8))/0x3*(parseInt(_0x236a82(0xc2))/0x4)+parseInt(_0x236a82(0xb2))/0x5*(parseInt(_0x236a82(0xb9))/0x6)+-parseInt(_0x236a82(0xc4))/0x7*(parseInt(_0x236a82(0xc0))/0x8)+parseInt(_0x236a82(0xbf))/0x9*(parseInt(_0x236a82(0xbc))/0xa)+-parseInt(_0x236a82(0xc1))/0xb*(parseInt(_0x236a82(0xb6))/0xc);if(_0x1d2880===_0x186e26)break;else _0x4687a4['push'](_0x4687a4['shift']());}catch(_0x35c36b){_0x4687a4['push'](_0x4687a4['shift']());}}}(a282_0x36fc,0x46d21));function a282_0x50be(_0x450661,_0x1dd1f7){_0x450661=_0x450661-0xad;const _0x36fcc6=a282_0x36fc();let _0x50be14=_0x36fcc6[_0x450661];return _0x50be14;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x535d04,_0x210ac0,_0x4a62b1,_0x4f27a8){const _0x304473=a282_0x50be,_0x302f53={'apps':_0x535d04[_0x304473(0xbd)]&&typeof _0x535d04[_0x304473(0xbd)]===_0x304473(0xbb)?_0x535d04['apps']:{}};let _0x413a7f=_0x302f53[_0x304473(0xbd)][_0x210ac0];if(!_0x413a7f)return _0x413a7f={'scriptsRoot':_0x4a62b1,'lastSync':'','functions':{}},_0x302f53[_0x304473(0xbd)][_0x210ac0]=_0x413a7f,{'lockData':_0x302f53,'appLock':_0x413a7f};if(!_0x413a7f[_0x304473(0xae)])_0x413a7f[_0x304473(0xae)]=_0x4a62b1;else{if(_0x413a7f[_0x304473(0xae)]!==_0x4a62b1)throw new Error(_0x4f27a8+_0x304473(0xc3)+(_0x304473(0xb0)+_0x4a62b1+_0x304473(0xb5)+_0x413a7f['scriptsRoot']+'\x22.\x20')+_0x304473(0xb7));}return!_0x413a7f[_0x304473(0xad)]&&(_0x413a7f[_0x304473(0xad)]={}),!_0x413a7f[_0x304473(0xb4)]&&(_0x413a7f[_0x304473(0xb4)]=''),{'lockData':_0x302f53,'appLock':_0x413a7f};}export async function readBffLockFile(_0x541345){const _0x336aee=a282_0x50be;try{const _0x4588ff=await readFile(_0x541345,_0x336aee(0xb3)),_0x1aefde=JSON[_0x336aee(0xba)](_0x4588ff);return{'apps':_0x1aefde[_0x336aee(0xbd)]&&typeof _0x1aefde['apps']===_0x336aee(0xbb)?_0x1aefde[_0x336aee(0xbd)]:{}};}catch(_0xfff890){if(_0xfff890['code']===_0x336aee(0xc5))return null;throw new Error('Failed\x20to\x20read\x20Backend\x20Function\x20lock\x20file:\x20'+String(_0xfff890));}}function a282_0x36fc(){const _0x13beac=['12edTyAE','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','3aAgKjE','414uYzVOB','parse','object','890rPHrzI','apps','477306MVpNBc','57465lLulZL','974392ZyUCMh','2835569LWczIE','858068wWXrAc',':\x20scriptsRoot\x20mismatch\x20—\x20','7yxTyfc','ENOENT','functions','scriptsRoot','stringify','current\x20\x22','77299YsHuaD','3495ANExol','utf8','lastSync','\x22\x20vs\x20lock\x20\x22'];a282_0x36fc=function(){return _0x13beac;};return a282_0x36fc();}export async function writeBffLockFile(_0x181d18,_0x31d2de){const _0x14aab2=a282_0x50be;await mkdir(dirname(_0x181d18),{'recursive':!![]}),await writeFile(_0x181d18,JSON[_0x14aab2(0xaf)](_0x31d2de,null,0x2),_0x14aab2(0xb3));}
1
+ (function(_0x2b6a66,_0x55895e){const _0x18477f=a282_0xb7cb,_0x3d7f91=_0x2b6a66();while(!![]){try{const _0x31f3c7=-parseInt(_0x18477f(0xe1))/0x1*(-parseInt(_0x18477f(0xf0))/0x2)+parseInt(_0x18477f(0xe7))/0x3*(-parseInt(_0x18477f(0xed))/0x4)+parseInt(_0x18477f(0xe2))/0x5+parseInt(_0x18477f(0xe9))/0x6*(-parseInt(_0x18477f(0xf3))/0x7)+-parseInt(_0x18477f(0xea))/0x8+parseInt(_0x18477f(0xe3))/0x9+parseInt(_0x18477f(0xef))/0xa;if(_0x31f3c7===_0x55895e)break;else _0x3d7f91['push'](_0x3d7f91['shift']());}catch(_0xd2fce2){_0x3d7f91['push'](_0x3d7f91['shift']());}}}(a282_0x1563,0xf168c));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a282_0xb7cb(_0xeca187,_0x50ffc0){_0xeca187=_0xeca187-0xde;const _0x15633e=a282_0x1563();let _0xb7cb74=_0x15633e[_0xeca187];return _0xb7cb74;}export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x21d04b,_0x56b87b,_0x7a144e,_0x1db5cb){const _0x5c781c=a282_0xb7cb,_0x54c839={'apps':_0x21d04b['apps']&&typeof _0x21d04b[_0x5c781c(0xdf)]==='object'?_0x21d04b[_0x5c781c(0xdf)]:{}};let _0x4e841c=_0x54c839['apps'][_0x56b87b];if(!_0x4e841c)return _0x4e841c={'scriptsRoot':_0x7a144e,'lastSync':'','functions':{}},_0x54c839['apps'][_0x56b87b]=_0x4e841c,{'lockData':_0x54c839,'appLock':_0x4e841c};if(!_0x4e841c['scriptsRoot'])_0x4e841c[_0x5c781c(0xf1)]=_0x7a144e;else{if(_0x4e841c['scriptsRoot']!==_0x7a144e)throw new Error(_0x1db5cb+':\x20scriptsRoot\x20mismatch\x20—\x20'+(_0x5c781c(0xde)+_0x7a144e+'\x22\x20vs\x20lock\x20\x22'+_0x4e841c['scriptsRoot']+_0x5c781c(0xec))+'Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x4e841c['functions']&&(_0x4e841c[_0x5c781c(0xe6)]={}),!_0x4e841c[_0x5c781c(0xf2)]&&(_0x4e841c[_0x5c781c(0xf2)]=''),{'lockData':_0x54c839,'appLock':_0x4e841c};}export async function readBffLockFile(_0x2afa4f){const _0x260f93=a282_0xb7cb;try{const _0x20f043=await readFile(_0x2afa4f,'utf8'),_0x4161f6=JSON[_0x260f93(0xe0)](_0x20f043);return{'apps':_0x4161f6[_0x260f93(0xdf)]&&typeof _0x4161f6['apps']==='object'?_0x4161f6[_0x260f93(0xdf)]:{}};}catch(_0x4784d4){if(_0x4784d4[_0x260f93(0xeb)]===_0x260f93(0xee))return null;throw new Error(_0x260f93(0xe4)+String(_0x4784d4));}}function a282_0x1563(){const _0x31762e=['140NsKLsG','ENOENT','21017240HZydiK','5378pwjWpm','scriptsRoot','lastSync','8148637tyQddG','current\x20\x22','apps','parse','131esKevh','4751370LnZUxo','330975cKkvBn','Failed\x20to\x20read\x20Backend\x20Function\x20lock\x20file:\x20','stringify','functions','47373WutfCQ','utf8','6aFGmUp','5883552FrpuYl','code','\x22.\x20'];a282_0x1563=function(){return _0x31762e;};return a282_0x1563();}export async function writeBffLockFile(_0x43d960,_0x5413b7){const _0x1b3713=a282_0xb7cb;await mkdir(dirname(_0x43d960),{'recursive':!![]}),await writeFile(_0x43d960,JSON[_0x1b3713(0xe5)](_0x5413b7,null,0x2),_0x1b3713(0xe8));}
@@ -1 +1 @@
1
- const a284_0x5dcd14=a284_0x1405;(function(_0x39b706,_0x4658b5){const _0x40219f=a284_0x1405,_0x125f10=_0x39b706();while(!![]){try{const _0x3c8342=parseInt(_0x40219f(0x1da))/0x1+-parseInt(_0x40219f(0x1e3))/0x2*(parseInt(_0x40219f(0x1ef))/0x3)+parseInt(_0x40219f(0x1d9))/0x4*(-parseInt(_0x40219f(0x1e1))/0x5)+parseInt(_0x40219f(0x1eb))/0x6+parseInt(_0x40219f(0x1d5))/0x7*(-parseInt(_0x40219f(0x1e6))/0x8)+-parseInt(_0x40219f(0x1e4))/0x9*(-parseInt(_0x40219f(0x1e9))/0xa)+parseInt(_0x40219f(0x1ea))/0xb;if(_0x3c8342===_0x4658b5)break;else _0x125f10['push'](_0x125f10['shift']());}catch(_0x1eb1f9){_0x125f10['push'](_0x125f10['shift']());}}}(a284_0x1492,0x752e0));export const DEFAULT_BFF_SCRIPT_DESCRIPTION='TODO:\x20补充脚本功能描述';const LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION=a284_0x5dcd14(0x1ee);function a284_0x1492(){const _0x21fe66=['toLowerCase','374952IZGEtH','entries','before','10HxafsQ','153615AMSCEb','3863940DThMJc','alias','after','TODO:\x20add\x20script\x20description','1096521eKEqsr','datasetCode','operationType','21xKxVbT','some','split','startsWith','660316EaqOxz','89962FkxjXo','test','map','replace','functionNode','match','remoteId','15LYEeny','trim','2CkESCj','6600618xJvVUT'];a284_0x1492=function(){return _0x21fe66;};return a284_0x1492();}export function snakeToCamel(_0x26c48f){const _0x413ade=a284_0x5dcd14;return _0x26c48f[_0x413ade(0x1e5)]()[_0x413ade(0x1dd)](/_([a-z])/g,(_0x5b5e76,_0x34bb77)=>_0x34bb77['toUpperCase']());}function a284_0x1405(_0x38bf00,_0x621b1a){_0x38bf00=_0x38bf00-0x1d4;const _0x14929f=a284_0x1492();let _0x140541=_0x14929f[_0x38bf00];return _0x140541;}export function findHookLocationByRemoteId(_0x49278d,_0x15bb4a){const _0x5de1a1=a284_0x5dcd14;if(!_0x15bb4a)return undefined;for(const [_0x2701c3,_0xa08c65]of Object[_0x5de1a1(0x1e7)](_0x49278d)){if(_0xa08c65[_0x5de1a1(0x1e0)]===_0x15bb4a&&_0xa08c65['datasetCode']&&_0xa08c65[_0x5de1a1(0x1d4)]&&_0xa08c65[_0x5de1a1(0x1de)]){const _0x56a09b=_0x2701c3['split']('/')[0x1];return{'alias':_0x56a09b||_0xa08c65[_0x5de1a1(0x1ec)],'datasetCode':_0xa08c65[_0x5de1a1(0x1f0)],'operationType':_0xa08c65[_0x5de1a1(0x1d4)],'functionNode':_0xa08c65[_0x5de1a1(0x1de)]};}}return undefined;}export function extractScriptDescription(_0x3d3c0d){const _0x2e21e0=a284_0x5dcd14,_0x330157=_0x3d3c0d[_0x2e21e0(0x1df)](/^\s*\/\*\*([\s\S]*?)\*\//);if(!_0x330157?.[0x1])return undefined;const _0x2fa619=_0x330157[0x1],_0x5783b4=_0x2e743b=>{const _0x141219=_0x2e21e0,_0xbdea69=_0x2e743b?.[_0x141219(0x1e2)]();if(!_0xbdea69||_0xbdea69===DEFAULT_BFF_SCRIPT_DESCRIPTION||_0xbdea69===LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION)return undefined;return _0xbdea69;},_0x30e1d0=_0x2fa619[_0x2e21e0(0x1df)](/^\s*\*\s*\[\s*脚本描述\s*]\s*(.+)$/m);if(_0x30e1d0)return _0x5783b4(_0x30e1d0[0x1]);const _0x1be93a=_0x2fa619[_0x2e21e0(0x1d7)](/\r?\n/)[_0x2e21e0(0x1dc)](_0x547395=>_0x547395[_0x2e21e0(0x1dd)](/^\s*\*\s?/,'')[_0x2e21e0(0x1e2)]()),_0x4202ca=_0x1be93a[_0x2e21e0(0x1d6)](_0x478547=>/^\[\s*脚本类型\s*]\s*\S+/[_0x2e21e0(0x1db)](_0x478547))&&_0x1be93a[_0x2e21e0(0x1d6)](_0x123fe8=>/^\[\s*脚本名称\s*]\s*\S+/[_0x2e21e0(0x1db)](_0x123fe8));if(!_0x4202ca)return undefined;for(const _0xb03f61 of _0x1be93a){if(!_0xb03f61||_0xb03f61[_0x2e21e0(0x1d8)]('@')||/^\[[^\]]+]\s*/[_0x2e21e0(0x1db)](_0xb03f61))continue;return _0x5783b4(_0xb03f61);}return undefined;}export function isValidBffFunctionName(_0x3cc744){const _0x8b7f7b=a284_0x5dcd14;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x8b7f7b(0x1db)](_0x3cc744);}export function normalizeHookFunctionNode(_0x591aec){const _0x517836=a284_0x5dcd14;if(!_0x591aec)return undefined;const _0x475c6e=_0x591aec[_0x517836(0x1e2)]()[_0x517836(0x1e5)]();if(_0x475c6e===_0x517836(0x1e8)||_0x475c6e===_0x517836(0x1ed))return _0x475c6e;return undefined;}
1
+ const a284_0x4a683e=a284_0x4c6c;(function(_0x4d52ed,_0x3d775c){const _0xf5ef71=a284_0x4c6c,_0x2a66be=_0x4d52ed();while(!![]){try{const _0x358308=-parseInt(_0xf5ef71(0x174))/0x1+parseInt(_0xf5ef71(0x16f))/0x2+-parseInt(_0xf5ef71(0x172))/0x3*(-parseInt(_0xf5ef71(0x17d))/0x4)+-parseInt(_0xf5ef71(0x169))/0x5*(parseInt(_0xf5ef71(0x16d))/0x6)+parseInt(_0xf5ef71(0x16e))/0x7+-parseInt(_0xf5ef71(0x16b))/0x8+parseInt(_0xf5ef71(0x162))/0x9*(parseInt(_0xf5ef71(0x170))/0xa);if(_0x358308===_0x3d775c)break;else _0x2a66be['push'](_0x2a66be['shift']());}catch(_0x3b0f39){_0x2a66be['push'](_0x2a66be['shift']());}}}(a284_0x4f25,0xa1f12));function a284_0x4f25(){const _0x5e4b42=['alias','toUpperCase','some','trim','match','20EoYMFT','before','9403640ehAstk','functionNode','1486284qqDKEw','4469535jDJaGO','330930rSItQf','30RcYSwX','startsWith','78aDzAgs','split','1040388HRWauB','remoteId','TODO:\x20add\x20script\x20description','map','after','entries','operationType','toLowerCase','replace','130412rSDtPB','test','6655095FHzzYR','datasetCode'];a284_0x4f25=function(){return _0x5e4b42;};return a284_0x4f25();}export const DEFAULT_BFF_SCRIPT_DESCRIPTION='TODO:\x20补充脚本功能描述';const LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION=a284_0x4a683e(0x176);export function snakeToCamel(_0x4a0ee2){const _0x38f561=a284_0x4a683e;return _0x4a0ee2[_0x38f561(0x17b)]()[_0x38f561(0x17c)](/_([a-z])/g,(_0x47fe56,_0x4db4c3)=>_0x4db4c3[_0x38f561(0x165)]());}function a284_0x4c6c(_0x3493bf,_0x4319ef){_0x3493bf=_0x3493bf-0x161;const _0x4f25d5=a284_0x4f25();let _0x4c6c73=_0x4f25d5[_0x3493bf];return _0x4c6c73;}export function findHookLocationByRemoteId(_0x5076c4,_0x20faa8){const _0x6e5ca9=a284_0x4a683e;if(!_0x20faa8)return undefined;for(const [_0x1304f8,_0x2504ed]of Object[_0x6e5ca9(0x179)](_0x5076c4)){if(_0x2504ed[_0x6e5ca9(0x175)]===_0x20faa8&&_0x2504ed[_0x6e5ca9(0x163)]&&_0x2504ed[_0x6e5ca9(0x17a)]&&_0x2504ed[_0x6e5ca9(0x16c)]){const _0x14e9d8=_0x1304f8['split']('/')[0x1];return{'alias':_0x14e9d8||_0x2504ed[_0x6e5ca9(0x164)],'datasetCode':_0x2504ed[_0x6e5ca9(0x163)],'operationType':_0x2504ed[_0x6e5ca9(0x17a)],'functionNode':_0x2504ed[_0x6e5ca9(0x16c)]};}}return undefined;}export function extractScriptDescription(_0x1ce677){const _0x3dee50=a284_0x4a683e,_0x42f36c=_0x1ce677[_0x3dee50(0x168)](/^\s*\/\*\*([\s\S]*?)\*\//);if(!_0x42f36c?.[0x1])return undefined;const _0x1121d8=_0x42f36c[0x1],_0x640fec=_0x1729af=>{const _0x23683f=_0x3dee50,_0x22ee7c=_0x1729af?.[_0x23683f(0x167)]();if(!_0x22ee7c||_0x22ee7c===DEFAULT_BFF_SCRIPT_DESCRIPTION||_0x22ee7c===LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION)return undefined;return _0x22ee7c;},_0x5d8660=_0x1121d8[_0x3dee50(0x168)](/^\s*\*\s*\[\s*脚本描述\s*]\s*(.+)$/m);if(_0x5d8660)return _0x640fec(_0x5d8660[0x1]);const _0x140a6a=_0x1121d8[_0x3dee50(0x173)](/\r?\n/)[_0x3dee50(0x177)](_0x4f3746=>_0x4f3746['replace'](/^\s*\*\s?/,'')[_0x3dee50(0x167)]()),_0x216dcb=_0x140a6a[_0x3dee50(0x166)](_0x480e7b=>/^\[\s*脚本类型\s*]\s*\S+/[_0x3dee50(0x161)](_0x480e7b))&&_0x140a6a['some'](_0x55cc4a=>/^\[\s*脚本名称\s*]\s*\S+/[_0x3dee50(0x161)](_0x55cc4a));if(!_0x216dcb)return undefined;for(const _0x16171e of _0x140a6a){if(!_0x16171e||_0x16171e[_0x3dee50(0x171)]('@')||/^\[[^\]]+]\s*/[_0x3dee50(0x161)](_0x16171e))continue;return _0x640fec(_0x16171e);}return undefined;}export function isValidBffFunctionName(_0xc2ce55){return/^[A-Za-z_$][A-Za-z0-9_$]*$/['test'](_0xc2ce55);}export function normalizeHookFunctionNode(_0x40bf59){const _0x4e5863=a284_0x4a683e;if(!_0x40bf59)return undefined;const _0x52aad7=_0x40bf59[_0x4e5863(0x167)]()[_0x4e5863(0x17b)]();if(_0x52aad7===_0x4e5863(0x16a)||_0x52aad7===_0x4e5863(0x178))return _0x52aad7;return undefined;}
@@ -1 +1 @@
1
- function a285_0x56bd(){const _0x1f312f=['1521937pZxpnA','78hnFKNd','1379mKgqiY','1479687dFdLFH','31528sguPhX','695gSuODA','4779290VoeVWF','/smartapi/cross-db-relation/delete','/smartapi/cross-db-relation/update','/smartapi/cross-db-relation/create','686652qeKbep','45yxLgWy','1991450LmMasg'];a285_0x56bd=function(){return _0x1f312f;};return a285_0x56bd();}const a285_0x58e930=a285_0x564f;(function(_0x3b586b,_0x21b961){const _0x400350=a285_0x564f,_0x265751=_0x3b586b();while(!![]){try{const _0x127738=-parseInt(_0x400350(0x1e3))/0x1+parseInt(_0x400350(0x1e2))/0x2+-parseInt(_0x400350(0x1e6))/0x3+parseInt(_0x400350(0x1e0))/0x4+-parseInt(_0x400350(0x1e8))/0x5*(-parseInt(_0x400350(0x1e4))/0x6)+-parseInt(_0x400350(0x1e5))/0x7*(parseInt(_0x400350(0x1e7))/0x8)+parseInt(_0x400350(0x1e1))/0x9*(parseInt(_0x400350(0x1e9))/0xa);if(_0x127738===_0x21b961)break;else _0x265751['push'](_0x265751['shift']());}catch(_0x315198){_0x265751['push'](_0x265751['shift']());}}}(a285_0x56bd,0xbb541));function a285_0x564f(_0x4bfe46,_0x34f3ad){_0x4bfe46=_0x4bfe46-0x1e0;const _0x56bd56=a285_0x56bd();let _0x564f11=_0x56bd56[_0x4bfe46];return _0x564f11;}export const CROSS_DB_RELATION_PATHS={'list':'/smartapi/cross-db-relation/query','create':a285_0x58e930(0x1ec),'update':a285_0x58e930(0x1eb),'delete':a285_0x58e930(0x1ea)};
1
+ function a285_0x2308(_0x40d870,_0x374ffd){_0x40d870=_0x40d870-0xa5;const _0x583195=a285_0x5831();let _0x23085a=_0x583195[_0x40d870];return _0x23085a;}const a285_0x194ec5=a285_0x2308;(function(_0x3c63f4,_0x2bade4){const _0x1ea375=a285_0x2308,_0x4bcd41=_0x3c63f4();while(!![]){try{const _0x300cbd=-parseInt(_0x1ea375(0xae))/0x1+-parseInt(_0x1ea375(0xaf))/0x2*(parseInt(_0x1ea375(0xa8))/0x3)+parseInt(_0x1ea375(0xaa))/0x4+-parseInt(_0x1ea375(0xa6))/0x5+-parseInt(_0x1ea375(0xa5))/0x6+-parseInt(_0x1ea375(0xac))/0x7+parseInt(_0x1ea375(0xab))/0x8;if(_0x300cbd===_0x2bade4)break;else _0x4bcd41['push'](_0x4bcd41['shift']());}catch(_0x2ae18d){_0x4bcd41['push'](_0x4bcd41['shift']());}}}(a285_0x5831,0xe0c3f));function a285_0x5831(){const _0x2e851a=['5323690aPeILO','/smartapi/cross-db-relation/delete','438dDGtcJ','/smartapi/cross-db-relation/update','1519416thitoD','20658264EMdzKx','3261853HCrvyx','/smartapi/cross-db-relation/query','422519MiHvyj','668DoSUMe','236988UXStaE'];a285_0x5831=function(){return _0x2e851a;};return a285_0x5831();}export const CROSS_DB_RELATION_PATHS={'list':a285_0x194ec5(0xad),'create':'/smartapi/cross-db-relation/create','update':a285_0x194ec5(0xa9),'delete':a285_0x194ec5(0xa7)};
@@ -1 +1 @@
1
- (function(_0x5b2e32,_0x585f76){const _0x2e6cae=a286_0x32b8,_0x25c5cb=_0x5b2e32();while(!![]){try{const _0x115465=parseInt(_0x2e6cae(0x82))/0x1*(parseInt(_0x2e6cae(0x90))/0x2)+-parseInt(_0x2e6cae(0x93))/0x3*(parseInt(_0x2e6cae(0x7a))/0x4)+-parseInt(_0x2e6cae(0x8b))/0x5+parseInt(_0x2e6cae(0x7c))/0x6*(parseInt(_0x2e6cae(0x95))/0x7)+-parseInt(_0x2e6cae(0x85))/0x8+-parseInt(_0x2e6cae(0x84))/0x9+parseInt(_0x2e6cae(0x7b))/0xa*(parseInt(_0x2e6cae(0x8d))/0xb);if(_0x115465===_0x585f76)break;else _0x25c5cb['push'](_0x25c5cb['shift']());}catch(_0x283a29){_0x25c5cb['push'](_0x25c5cb['shift']());}}}(a286_0x7ba2,0x9c7a1));import{listDatasets}from'../core/api-client.js';function a286_0x7ba2(){const _0x4e2f89=['685169DwpxWB','toLowerCase','3402657wdkAio','7681200JIuhbo','set','get','map','join','has','6068100TMnzaY','No\x20database\x20matching\x20\x22','2755379LnNxlI','dbId','isNaN','2XVGKet','length','\x22\x20under\x20app\x20\x22','41274VlhRQx','filter','1232vPEIUD','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','.\x20Be\x20more\x20specific.','dbName','196ZNBpOB','90TIYTbo','31614VsOrZc','\x22\x20matches\x20multiple\x20databases:\x20','find','\x22.\x20Available:\x20','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','includes'];a286_0x7ba2=function(){return _0x4e2f89;};return a286_0x7ba2();}const cache=new Map();function a286_0x32b8(_0x575511,_0xcd1624){_0x575511=_0x575511-0x79;const _0x7ba28e=a286_0x7ba2();let _0x32b8a2=_0x7ba28e[_0x575511];return _0x32b8a2;}export async function listDatabases(_0x10a14e){const _0x5c673c=a286_0x32b8;if(cache[_0x5c673c(0x8a)](_0x10a14e))return cache[_0x5c673c(0x87)](_0x10a14e);const _0x40a19f=await listDatasets(_0x10a14e),_0x1a4e21=new Map();for(const _0x5eeac6 of _0x40a19f){const _0x353260=_0x5eeac6['dbtableConfig'];_0x353260?.['dbId']!=null&&_0x1a4e21[_0x5c673c(0x86)](_0x353260[_0x5c673c(0x8e)],_0x353260['dbName']??'db-'+_0x353260['dbId']);}const _0x30f2c8=[..._0x1a4e21['entries']()]['map'](([_0x57d730,_0x842acd])=>({'dbId':_0x57d730,'dbName':_0x842acd}));return cache[_0x5c673c(0x86)](_0x10a14e,_0x30f2c8),_0x30f2c8;}export async function resolveDb(_0x5e57dd,_0x5a944e){const _0x452531=a286_0x32b8,_0x1ec4e7=await listDatabases(_0x5e57dd);if(_0x1ec4e7['length']===0x0)return{'resolved':[],'error':_0x452531(0x80)+_0x5e57dd+_0x452531(0x96)};if(!_0x5a944e)return{'resolved':_0x1ec4e7};const _0x4adb24=Number(_0x5a944e);if(!Number[_0x452531(0x8f)](_0x4adb24)){const _0x381e2a=_0x1ec4e7[_0x452531(0x7e)](_0x52be1d=>_0x52be1d['dbId']===_0x4adb24);if(_0x381e2a)return{'resolved':[_0x381e2a]};}const _0x598045=_0x5a944e['toLowerCase'](),_0x5872b4=_0x1ec4e7[_0x452531(0x94)](_0x297bc0=>_0x297bc0[_0x452531(0x79)][_0x452531(0x83)]()[_0x452531(0x81)](_0x598045));if(_0x5872b4[_0x452531(0x91)]>0x0)return{'resolved':_0x5872b4};const _0x41c8de=_0x1ec4e7[_0x452531(0x88)](_0x4a35de=>_0x4a35de['dbName']+'\x20('+_0x4a35de['dbId']+')')[_0x452531(0x89)](',\x20');return{'resolved':[],'error':_0x452531(0x8c)+_0x5a944e+_0x452531(0x92)+_0x5e57dd+_0x452531(0x7f)+_0x41c8de+'.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.'};}export async function resolveOneDb(_0x1df336,_0x6a7486){const _0x39b665=a286_0x32b8,{resolved:_0x38392c,error:_0x447c05}=await resolveDb(_0x1df336,_0x6a7486);if(_0x447c05)return{'db':null,'error':_0x447c05};if(_0x38392c[_0x39b665(0x91)]===0x1)return{'db':_0x38392c[0x0]};if(!_0x6a7486){const _0x5edef7=_0x38392c['map'](_0x205843=>_0x205843['dbName']+'\x20('+_0x205843[_0x39b665(0x8e)]+')')[_0x39b665(0x89)](',\x20');return{'db':null,'error':'Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20'+_0x5edef7};}const _0x549d1a=_0x38392c['map'](_0x5cc4e3=>_0x5cc4e3[_0x39b665(0x79)]+'\x20('+_0x5cc4e3['dbId']+')')[_0x39b665(0x89)](',\x20');return{'db':null,'error':'\x22'+_0x6a7486+_0x39b665(0x7d)+_0x549d1a+_0x39b665(0x97)};}export async function getDbName(_0x263b34,_0xf2aeb9){const _0x2051a0=a286_0x32b8,_0x19abca=await listDatabases(_0x263b34);return _0x19abca[_0x2051a0(0x7e)](_0x385dc6=>_0x385dc6[_0x2051a0(0x8e)]===_0xf2aeb9)?.[_0x2051a0(0x79)];}
1
+ (function(_0x207b14,_0x16c7ca){const _0x14be98=a286_0x5897,_0x1e38ba=_0x207b14();while(!![]){try{const _0x40ec5b=parseInt(_0x14be98(0x91))/0x1*(-parseInt(_0x14be98(0x9c))/0x2)+-parseInt(_0x14be98(0x8d))/0x3*(parseInt(_0x14be98(0x97))/0x4)+-parseInt(_0x14be98(0x98))/0x5*(parseInt(_0x14be98(0x8e))/0x6)+parseInt(_0x14be98(0xa1))/0x7*(-parseInt(_0x14be98(0xa6))/0x8)+-parseInt(_0x14be98(0x90))/0x9+-parseInt(_0x14be98(0xab))/0xa+parseInt(_0x14be98(0x99))/0xb;if(_0x40ec5b===_0x16c7ca)break;else _0x1e38ba['push'](_0x1e38ba['shift']());}catch(_0x45979d){_0x1e38ba['push'](_0x1e38ba['shift']());}}}(a286_0x25f4,0xdcbb8));function a286_0x25f4(){const _0xcf793=['dbId','isNaN','toLowerCase','10793200BYsFMo','map','1041xrVEmH','360348ETzRBE','db-','9830088LvBpAn','9SGyaJp','dbtableConfig','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','has','entries','\x22.\x20Available:\x20','7236xpzgGc','95IDUjIL','76923583jILIrL','filter','set','80026RwulwN','includes','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','dbName','find','12519073pecUdz','length','get','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','8XNazdy','join'];a286_0x25f4=function(){return _0xcf793;};return a286_0x25f4();}import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x1356e5){const _0x28d1c6=a286_0x5897;if(cache[_0x28d1c6(0x94)](_0x1356e5))return cache[_0x28d1c6(0xa3)](_0x1356e5);const _0x51c6d0=await listDatasets(_0x1356e5),_0x5a79e2=new Map();for(const _0x53fffb of _0x51c6d0){const _0x2968b1=_0x53fffb[_0x28d1c6(0x92)];_0x2968b1?.[_0x28d1c6(0xa8)]!=null&&_0x5a79e2[_0x28d1c6(0x9b)](_0x2968b1[_0x28d1c6(0xa8)],_0x2968b1[_0x28d1c6(0x9f)]??_0x28d1c6(0x8f)+_0x2968b1[_0x28d1c6(0xa8)]);}const _0x442f3e=[..._0x5a79e2[_0x28d1c6(0x95)]()][_0x28d1c6(0x8c)](([_0x43b48f,_0xb35d8])=>({'dbId':_0x43b48f,'dbName':_0xb35d8}));return cache[_0x28d1c6(0x9b)](_0x1356e5,_0x442f3e),_0x442f3e;}function a286_0x5897(_0x4071f6,_0x416b6c){_0x4071f6=_0x4071f6-0x8c;const _0x25f466=a286_0x25f4();let _0x589766=_0x25f466[_0x4071f6];return _0x589766;}export async function resolveDb(_0xd9bf53,_0x28f963){const _0x58763f=a286_0x5897,_0x27e5c6=await listDatabases(_0xd9bf53);if(_0x27e5c6[_0x58763f(0xa2)]===0x0)return{'resolved':[],'error':_0x58763f(0xa4)+_0xd9bf53+_0x58763f(0x93)};if(!_0x28f963)return{'resolved':_0x27e5c6};const _0x26ec21=Number(_0x28f963);if(!Number[_0x58763f(0xa9)](_0x26ec21)){const _0x1a797d=_0x27e5c6[_0x58763f(0xa0)](_0xbf4676=>_0xbf4676['dbId']===_0x26ec21);if(_0x1a797d)return{'resolved':[_0x1a797d]};}const _0x1f8aca=_0x28f963['toLowerCase'](),_0x43f703=_0x27e5c6[_0x58763f(0x9a)](_0x539f0b=>_0x539f0b[_0x58763f(0x9f)][_0x58763f(0xaa)]()[_0x58763f(0x9d)](_0x1f8aca));if(_0x43f703[_0x58763f(0xa2)]>0x0)return{'resolved':_0x43f703};const _0x1ae193=_0x27e5c6['map'](_0x319327=>_0x319327[_0x58763f(0x9f)]+'\x20('+_0x319327['dbId']+')')['join'](',\x20');return{'resolved':[],'error':'No\x20database\x20matching\x20\x22'+_0x28f963+'\x22\x20under\x20app\x20\x22'+_0xd9bf53+_0x58763f(0x96)+_0x1ae193+_0x58763f(0xa5)};}export async function resolveOneDb(_0x4f152d,_0x6e077){const _0x1e23a2=a286_0x5897,{resolved:_0x308528,error:_0xa996cc}=await resolveDb(_0x4f152d,_0x6e077);if(_0xa996cc)return{'db':null,'error':_0xa996cc};if(_0x308528['length']===0x1)return{'db':_0x308528[0x0]};if(!_0x6e077){const _0x3fc8ab=_0x308528[_0x1e23a2(0x8c)](_0x566c62=>_0x566c62[_0x1e23a2(0x9f)]+'\x20('+_0x566c62['dbId']+')')[_0x1e23a2(0xa7)](',\x20');return{'db':null,'error':_0x1e23a2(0x9e)+_0x3fc8ab};}const _0x3c376a=_0x308528[_0x1e23a2(0x8c)](_0x393623=>_0x393623[_0x1e23a2(0x9f)]+'\x20('+_0x393623[_0x1e23a2(0xa8)]+')')['join'](',\x20');return{'db':null,'error':'\x22'+_0x6e077+'\x22\x20matches\x20multiple\x20databases:\x20'+_0x3c376a+'.\x20Be\x20more\x20specific.'};}export async function getDbName(_0x1e26e7,_0x113834){const _0x5f2ff0=a286_0x5897,_0x244db3=await listDatabases(_0x1e26e7);return _0x244db3[_0x5f2ff0(0xa0)](_0x431040=>_0x431040[_0x5f2ff0(0xa8)]===_0x113834)?.[_0x5f2ff0(0x9f)];}
@@ -1 +1 @@
1
- function a287_0x12ee(){const _0x4e3f44=['version','5hPCinr','sequential','.assignee.userIds[','waypoint\x20must\x20contain\x20numeric\x20x\x20and\x20y\x20coordinates.','value\x20must\x20be\x20a\x20non-empty\x20string.','utf8','PLATFORM_FORM\x20is\x20not\x20supported\x20by\x20this\x20rabetbase\x20version;\x20use\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','.url','keys','Notification\x20fact\x20must\x20be\x20an\x20object.','role','pageMode\x20applies\x20only\x20to\x20INDEPENDENT_FLOW.','.facts','flowJson.startPath','duration\x20requires\x20value\x20and\x20unit.','PLATFORM_FORM','assignee.strategy\x20must\x20be\x20FIXED\x20or\x20ROLE.','.timeout.duration','Duplicate\x20BPMN\x20element\x20id:\x20','test','Duplicate\x20edge\x20route:\x20','warnings','name','SECONDS','taskMode','value','#/$defs/flowEdge','sequential\x20must\x20be\x20a\x20boolean.','async\x20must\x20be\x20an\x20object.','object','number','transferCandidates\x20must\x20be\x20an\x20object.','.tmp','findIndex','target','schemaVersion','.assignee','CONDITION','unit','expression','6539630cABVOM','nodes','visible','catch','\x20->\x20','timeout\x20must\x20be\x20an\x20object.','Notification\x20recipient.type\x20is\x20required.','flowName\x20is\x20required.','.cc.recipientUserIds[','approval_sys_initiatorUsername','title','isSafeInteger','edges','mode','edge\x20target\x20is\x20required.','scriptName','Unsupported\x20schemaVersion:\x20','CONDITION\x20node\x20requires\x20exactly\x20one\x20default\x20outgoing\x20edge.','#/$defs/flowNode','position','ROLE\x20assignee\x20requires\x20a\x20positive\x20integer\x20roleId.','userIds','size','flowName','datasetCode','strategy','Duplicate\x20resultVariable:\x20','timeout.interrupting\x20must\x20be\x20a\x20boolean.','empty_metadata_removed','^[1-9][0-9]*$','\x20must\x20be\x20a\x20finite\x20number.','position.','type','Flow\x20must\x20contain\x20exactly\x20one\x20START\x20node.','Approval\x20flow\x20requires\x20an\x20END\x20node\x20with\x20result\x20','EXECUTE_BFF','forEach','resultVariable','variables','recipientUserIds','.cc.readSources','ALL','Notification\x20recipient.role\x20must\x20be\x20TO,\x20CC,\x20or\x20BCC.','edge\x20source\x20is\x20required.','actions','NOTIFICATION','push','startPath\x20must\x20be\x20a\x20non-empty\x20string.','Default\x20cc\x20is\x20only\x20supported\x20by\x20APPROVAL\x20or\x20END\x20node.','transferCandidates','NOTIFICATION\x20node\x20requires\x20config.','.value','every','approval_sys_dataId','failurePolicy','END\x20node\x20must\x20not\x20have\x20outgoing\x20edges.','ROLE','defaultFlow','approval_sys_datasetCode','has','flowDesc\x20must\x20be\x20a\x20string.','array','.position','CONDITION\x20non-default\x20edge\x20requires\x20a\x20non-empty\x20expression.','transferCandidates\x20currently\x20supports\x20FIXED\x20only.','flowJson','edge\x20id\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','result','approved','timeout.enabled\x20must\x20be\x20a\x20boolean.','flowType\x20is\x20required.','delete','conditionType','.unit','.pageId','^[A-Za-z_][A-Za-z0-9_]*$','filter','ALWAYS','source','.transferCandidates','templateName','value\x20must\x20be\x20an\x20array.','assignee','Notification\x20template\x20supports\x20at\x20most\x20','Notification\x20configCode\x20is\x20required.','.recipients','flowDesc','summary','flowJson.pageMode','.timeout','.async.enabled','718962nIdBer','cc\x20recipient\x20userId\x20must\x20be\x20a\x20non-empty\x20string.','includes','SCRIPT','123zAbUKQ','.actions','approval_sys_','flowJson.nodes.','START\x20node\x20must\x20not\x20have\x20incoming\x20edges.','overwrite','flowType','startPath','message','Notification\x20configCode\x20must\x20be\x20a\x20fixed\x20value.','USER','HOURS','boolean','\x20timeout\x20must\x20interrupt\x20the\x20approval\x20task.','pageMode','2GBiTpp','START','action','parse','.template','pid','duration\x20unit\x20must\x20be\x20SECONDS,\x20MINUTES,\x20HOURS,\x20or\x20DAYS.','Node\x20cannot\x20reach\x20any\x20END.','.async','SCRIPT\x20node\x20requires\x20scriptName.','Flow\x20must\x20contain\x20at\x20least\x20one\x20END\x20node.','approval.simple-flow.v1','async\x20execution\x20is\x20only\x20supported\x20by\x20SCRIPT\x20node.','Notification\x20recipient.value\x20is\x20required.','enabled','.conditionType','pageId','get','FIXED\x20transferCandidates\x20requires\x20non-empty\x20userIds.','.waypoints[','APPROVED','\x20is\x20not\x20part\x20of\x20the\x20portable\x20FlowConfig\x20and\x20was\x20removed.','Unsupported\x20flowType:\x20','node\x20id\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','\x20value\x20and\x20was\x20removed\x20from\x20the\x20portable\x20FlowConfig.','slice','Unsupported\x20node\x20type:\x20','bindDatasetCode','CONTINUE','startsWith','NaN','roleId','.async.retryCount','CONDITION\x20non-default\x20edge\x20must\x20use\x20conditionType\x20EXPRESSION.','Edge\x20target\x20node\x20not\x20found:\x20','config','APPROVAL\x20node\x20requires\x20exactly\x20one\x20REJECTED\x20outgoing\x20edge.','integer','Notification\x20action.text\x20is\x20required.','interrupting','label','.timeout.scriptName','indexOf','.sequential','add','HANDLE\x20task\x20timeout\x20only\x20supports\x20EXECUTE_BFF.','matchAll','HANDLE\x20task\x20outgoing\x20edge\x20must\x20use\x20ALWAYS\x20without\x20defaultFlow\x20or\x20expression.','\x20is\x20not\x20on\x20every\x20upstream\x20path\x20to\x20','EMAIL','CONDITION\x20default\x20edge\x20must\x20use\x20conditionType\x20ALWAYS.','#/$defs/position','.detailMarkdown','1684755zkrdmz','927087cbJTye','Unsupported\x20approval\x20mode:\x20','.name','.timeout.enabled','58060NonLfK','Rabetbase\x20FlowConfig','.async.retryInterval','.configCode','.config','SINGLE','node\x20path\x20must\x20be\x20a\x20non-empty\x20string.','\x20actions.','failurePolicy\x20must\x20be\x20a\x20string.','retryCount','.\x20This\x20CLI\x20supports\x20only\x20','appCode','approval_sys_operationType','isInteger','AUTO_REJECT','EXPRESSION\x20edge\x20requires\x20expression.','.position.','duration\x20value\x20must\x20be\x20a\x20positive\x20integer.','map','timeout.action\x20must\x20be\x20AUTO_APPROVE,\x20AUTO_REJECT,\x20or\x20EXECUTE_BFF.','hasOwnProperty','.assignee.roleId','datasetCode\x20must\x20be\x20a\x20string.','Node\x20is\x20not\x20reachable\x20from\x20START.','FORM_FLOW','Node\x20has\x20no\x20incoming\x20edge.','prototype','Every\x20node\x20requires\x20position.x\x20and\x20position.y.','recipients','EXPRESSION','detailMarkdown','.text','.transferCandidates.userIds[','text','edge\x20must\x20be\x20an\x20object.','path','\x20is\x20required.','flowJson.edges','INDEPENDENT_FLOW\x20cannot\x20bind\x20datasetCode.','length','formPermission','.expression','APPROVAL','END','NOTIFICATION\x20node\x20requires\x20template.','MINUTES','REJECTED','async.enabled\x20must\x20be\x20a\x20boolean.','sourceNodeId','2561112FXfttw','.cc','string','transfer\x20candidate\x20userId\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20positive\x20integer.','.id','Notification\x20recipients\x20must\x20be\x20an\x20array.','entries','resultVariable\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','configCode','__rabetbase_local_validation__','toUpperCase','node\x20path\x20is\x20supported\x20only\x20on\x20APPROVAL\x20or\x20END\x20nodes.','.path','event','.taskMode','replace','INDEPENDENT_FLOW\x20cannot\x20bind\x20pageId.','flowJson.nodes','nodes\x20must\x20be\x20an\x20array.','cc.recipientUserIds\x20supports\x20at\x20most\x20','flowJson.schemaVersion','Custom\x20form\x20configuration\x20is\x20not\x20supported\x20by\x20this\x20rabetbase\x20version;\x20use\x20a\x20business\x20custom\x20page\x20instead.','formData','Notification\x20recipient.role\x20must\x20be\x20a\x20string.','facts','Notification\x20template.actions\x20must\x20be\x20an\x20array.','A\x20default\x20flow\x20must\x20use\x20conditionType\x20ALWAYS.','legacy_field_removed','flowKey','.timeout.resultVariable','waypoint.','.waypoints','waypoints','.scriptName','.transferCandidates.userIds','SINGLE\x20approval\x20supports\x20only\x20one\x20fixed\x20user.','flowJson.edges[','https://json-schema.org/draft/2020-12/schema','cc\x20must\x20be\x20an\x20object.','trim','Notification\x20recipient\x20must\x20be\x20an\x20object.','INDEPENDENT_FLOW','.resultVariable','stringify','Notification\x20action.url\x20must\x20use\x20http/https\x20or\x20a\x20complete\x20supported\x20placeholder.','targetNodeId','Duplicate\x20cc\x20recipient\x20userId:\x20','FIXED','flowJson.nodes[','.assignee.strategy','.defaultFlow','call','fixed\x20assignee\x20userId\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20positive\x20integer.','DAYS','Reserved\x20resultVariable:\x20','\x20must\x20be\x20a\x20finite\x20number\x20greater\x20than\x20or\x20equal\x20to\x200.','.timeout.interrupting','Notification\x20template.detailMarkdown\x20must\x20be\x20a\x20string.',',\x20but\x20node\x20','async','template','.type','startPageId','timeout','CONDITION\x20default\x20edge\x20must\x20not\x20define\x20expression.','FAIL','url','CONDITION\x20node\x20requires\x20at\x20least\x20two\x20outgoing\x20edges.','set','279260SxGooN','AUTO_APPROVE','retryInterval','edges\x20must\x20be\x20an\x20array.','Node\x20has\x20no\x20outgoing\x20edge.','.role','some','.cc.visible','startPageId\x20is\x20no\x20longer\x20supported;\x20use\x20startPath\x20instead.','BCC','Edge\x20source\x20node\x20not\x20found:\x20','Unsupported\x20pageMode:\x20','approval_sys_processInstanceId','HANDLE\x20task\x20requires\x20exactly\x20one\x20outgoing\x20edge.','SCRIPT\x20async\x20retryCount\x20must\x20be\x20between\x201\x20and\x20','Notification\x20template.','.transferCandidates.strategy','.version','approval_sys_initiatorUserId','.source','.assignee.userIds','CUSTOM_PAGE','HANDLE','Notification\x20version\x20must\x20be\x20a\x20string.','isArray','ANY','.cc.recipientUserIds','\x20users.','flowJson.','.approvalMode','waypoints\x20must\x20be\x20an\x20array.','Unsupported\x20condition\x20type:\x20','Duplicate\x20value:\x20','approval_sys_pageId','Every\x20node\x20requires\x20a\x20non-empty\x20name.','.timeout.action','Notification\x20recipient.type\x20must\x20be\x20USER,\x20ROLE,\x20or\x20EMAIL.','Unsupported\x20task\x20mode:\x20','A\x20default\x20flow\x20must\x20not\x20have\x20an\x20expression.','flowJson.startPageId'];a287_0x12ee=function(){return _0x4e3f44;};return a287_0x12ee();}const a287_0x4050df=a287_0x4188;(function(_0x36291e,_0x7391b6){const _0x345fd0=a287_0x4188,_0x14a23b=_0x36291e();while(!![]){try{const _0x2ae8a7=-parseInt(_0x345fd0(0x22d))/0x1*(parseInt(_0x345fd0(0x16e))/0x2)+parseInt(_0x345fd0(0x21e))/0x3*(parseInt(_0x345fd0(0x267))/0x4)+parseInt(_0x345fd0(0x197))/0x5*(parseInt(_0x345fd0(0x21a))/0x6)+parseInt(_0x345fd0(0x263))/0x7+parseInt(_0x345fd0(0x298))/0x8+parseInt(_0x345fd0(0x262))/0x9+-parseInt(_0x345fd0(0x1bf))/0xa;if(_0x2ae8a7===_0x7391b6)break;else _0x14a23b['push'](_0x14a23b['shift']());}catch(_0x4e3e47){_0x14a23b['push'](_0x14a23b['shift']());}}}(a287_0x12ee,0x66e76));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':a287_0x4050df(0x2bd),'$id':'https://lovrabet.com/schema/rabetbase-flow-config.json','title':a287_0x4050df(0x268),'type':a287_0x4050df(0x1b4),'required':[a287_0x4050df(0x1d6),a287_0x4050df(0x224),'flowJson'],'$defs':{'userId':{'anyOf':[{'type':a287_0x4050df(0x29a),'minLength':0x1},{'type':a287_0x4050df(0x252),'minimum':0x1}]},'position':{'type':a287_0x4050df(0x1b4),'required':['x','y'],'properties':{'x':{'type':a287_0x4050df(0x1b5),'minimum':0x0},'y':{'type':'number','minimum':0x0}},'additionalProperties':!![]},'timeAmount':{'type':a287_0x4050df(0x1b4),'required':[a287_0x4050df(0x1b0),a287_0x4050df(0x1bd)],'properties':{'value':{'type':a287_0x4050df(0x252),'minimum':0x1},'unit':{'enum':[a287_0x4050df(0x1ae),a287_0x4050df(0x294),a287_0x4050df(0x229),a287_0x4050df(0x15e)]}},'additionalProperties':!![]},'flowNode':{'type':a287_0x4050df(0x1b4),'required':['id','type','name',a287_0x4050df(0x1d2)],'properties':{'id':{'type':a287_0x4050df(0x29a),'pattern':'^[A-Za-z_][A-Za-z0-9_]*$'},'type':{'enum':['START','END',a287_0x4050df(0x291),'CONDITION',a287_0x4050df(0x21d),'NOTIFICATION']},'name':{'type':a287_0x4050df(0x29a),'minLength':0x1},'path':{'type':a287_0x4050df(0x29a),'minLength':0x1},'position':{'$ref':'#/$defs/position'},'approvalMode':{'enum':[a287_0x4050df(0x26c),a287_0x4050df(0x1e8),a287_0x4050df(0x187)]},'taskMode':{'enum':['APPROVAL','HANDLE']},'assignee':{'type':a287_0x4050df(0x1b4),'required':[a287_0x4050df(0x1d8)],'properties':{'strategy':{'enum':[a287_0x4050df(0x158),a287_0x4050df(0x1f7)]},'userIds':{'type':a287_0x4050df(0x1fc),'minItems':0x1,'items':{'$ref':'#/$defs/userId'}},'roleId':{'anyOf':[{'type':a287_0x4050df(0x252),'minimum':0x1},{'type':a287_0x4050df(0x29a),'pattern':a287_0x4050df(0x1dc)}]}},'additionalProperties':!![]},'transferCandidates':{'type':'object','required':[a287_0x4050df(0x1d8),a287_0x4050df(0x1d4)],'properties':{'strategy':{'const':a287_0x4050df(0x158)},'userIds':{'type':a287_0x4050df(0x1fc),'minItems':0x1,'items':{'$ref':'#/$defs/userId'}}},'additionalProperties':!![]},'sequential':{'type':a287_0x4050df(0x22a)},'result':{'enum':[a287_0x4050df(0x241),a287_0x4050df(0x295)]},'scriptName':{'type':'string','minLength':0x1},'resultVariable':{'type':a287_0x4050df(0x29a),'pattern':a287_0x4050df(0x20a)},'async':{'type':a287_0x4050df(0x1b4),'properties':{'enabled':{'type':a287_0x4050df(0x22a)},'retryCount':{'type':'integer','minimum':0x1,'maximum':0xa},'retryInterval':{'$ref':'#/$defs/timeAmount'}},'additionalProperties':!![]},'timeout':{'type':'object','properties':{'enabled':{'type':a287_0x4050df(0x22a)},'duration':{'$ref':'#/$defs/timeAmount'},'action':{'enum':[a287_0x4050df(0x16f),a287_0x4050df(0x275),a287_0x4050df(0x1e2)]},'interrupting':{'type':'boolean'},'scriptName':{'type':a287_0x4050df(0x29a),'minLength':0x1},'resultVariable':{'type':a287_0x4050df(0x29a),'pattern':a287_0x4050df(0x20a)}},'additionalProperties':!![]},'cc':{'type':'object','required':[a287_0x4050df(0x1e6)],'properties':{'recipientUserIds':{'type':a287_0x4050df(0x1fc),'minItems':0x1,'maxItems':0x64,'uniqueItems':!![],'items':{'type':a287_0x4050df(0x29a),'minLength':0x1}},'visible':{'type':a287_0x4050df(0x1fc),'uniqueItems':!![],'items':{'type':a287_0x4050df(0x29a),'minLength':0x1}},'readSources':![]},'additionalProperties':!![]},'config':{'type':a287_0x4050df(0x1b4),'required':[a287_0x4050df(0x2a0),'template'],'properties':{'version':{'enum':['v1']},'configCode':{'type':a287_0x4050df(0x29a),'minLength':0x1},'failurePolicy':{'enum':[a287_0x4050df(0x249),a287_0x4050df(0x16a)]},'template':{'type':'object','required':['title',a287_0x4050df(0x216)],'properties':{'title':{'type':a287_0x4050df(0x29a),'minLength':0x1},'summary':{'type':a287_0x4050df(0x29a),'minLength':0x1},'detailMarkdown':{'type':'string'},'facts':{'type':a287_0x4050df(0x1fc),'maxItems':0x8,'items':{'type':'object','required':[a287_0x4050df(0x255),'value'],'properties':{'label':{'type':'string','minLength':0x1},'value':{'type':'string','minLength':0x1}},'additionalProperties':!![]}},'actions':{'type':a287_0x4050df(0x1fc),'maxItems':0x2,'items':{'type':a287_0x4050df(0x1b4),'required':['text','url'],'properties':{'text':{'type':a287_0x4050df(0x29a),'minLength':0x1},'url':{'type':a287_0x4050df(0x29a),'minLength':0x1}},'additionalProperties':!![]}}},'additionalProperties':!![]},'recipients':{'type':'array','items':{'type':a287_0x4050df(0x1b4),'required':[a287_0x4050df(0x1df),a287_0x4050df(0x1b0)],'properties':{'type':{'enum':['USER',a287_0x4050df(0x1f7),a287_0x4050df(0x25e)]},'value':{'type':a287_0x4050df(0x29a),'minLength':0x1},'role':{'enum':['TO','CC','BCC']}},'additionalProperties':!![]}}},'additionalProperties':!![]},'form':![],'formPermission':![]},'additionalProperties':!![]},'flowEdge':{'type':a287_0x4050df(0x1b4),'properties':{'id':{'type':'string','pattern':'^[A-Za-z_][A-Za-z0-9_]*$'},'source':{'type':a287_0x4050df(0x29a),'minLength':0x1},'target':{'type':a287_0x4050df(0x29a),'minLength':0x1},'sourceNodeId':{'type':a287_0x4050df(0x29a),'minLength':0x1},'targetNodeId':{'type':a287_0x4050df(0x29a),'minLength':0x1},'conditionType':{'enum':[a287_0x4050df(0x20c),a287_0x4050df(0x241),a287_0x4050df(0x295),a287_0x4050df(0x284)]},'expression':{'type':'string'},'defaultFlow':{'type':a287_0x4050df(0x22a)},'name':{'type':a287_0x4050df(0x29a)},'waypoints':{'type':'array','items':{'$ref':a287_0x4050df(0x260)}}},'allOf':[{'anyOf':[{'required':['source']},{'required':[a287_0x4050df(0x297)]}]},{'anyOf':[{'required':['target']},{'required':[a287_0x4050df(0x156)]}]}],'additionalProperties':!![]}},'properties':{'id':![],'appCode':![],'flowName':{'type':a287_0x4050df(0x29a),'minLength':0x1},'flowDesc':{'type':a287_0x4050df(0x29a)},'flowType':{'enum':['FORM_FLOW',a287_0x4050df(0x152)]},'datasetCode':{'type':a287_0x4050df(0x29a),'minLength':0x1},'pageId':{'type':a287_0x4050df(0x252)},'templateName':![],'flowJson':{'type':a287_0x4050df(0x1b4),'required':[a287_0x4050df(0x1c0),a287_0x4050df(0x1cb)],'properties':{'flowKey':![],'flowCode':![],'flowName':![],'bindDatasetCode':![],'datasetCode':![],'appCode':![],'pageId':![],'templateName':![],'schemaVersion':{'type':a287_0x4050df(0x29a),'const':'approval.simple-flow.v1','description':'Accepted\x20as\x20legacy\x20input\x20and\x20removed\x20during\x20normalization;\x20other\x20versions\x20are\x20unsupported.'},'formSchema':![],'formDefinitions':![],'formPermissions':![],'pageMode':{'const':a287_0x4050df(0x183)},'startPageId':![],'startPath':{'type':a287_0x4050df(0x29a),'minLength':0x1},'nodes':{'type':a287_0x4050df(0x1fc),'minItems':0x1,'items':{'$ref':a287_0x4050df(0x1d1)}},'edges':{'type':a287_0x4050df(0x1fc),'minItems':0x1,'items':{'$ref':a287_0x4050df(0x1b1)}}},'additionalProperties':!![]}},'additionalProperties':!![]};const REMOVED_FLOW_JSON_FIELDS=[a287_0x4050df(0x2b4),'flowCode','flowName',a287_0x4050df(0x248),a287_0x4050df(0x1d7),a287_0x4050df(0x272),a287_0x4050df(0x23d),a287_0x4050df(0x20f)],REMOVED_ROOT_FIELDS=['id',a287_0x4050df(0x272),a287_0x4050df(0x20f)],DEFAULT_FLOW_SCHEMA_VERSION=a287_0x4050df(0x238),NODE_TYPES=new Set([a287_0x4050df(0x22e),'END',a287_0x4050df(0x291),'CONDITION',a287_0x4050df(0x21d),a287_0x4050df(0x1ec)]),CONDITION_TYPES=new Set([a287_0x4050df(0x20c),a287_0x4050df(0x241),a287_0x4050df(0x295),'EXPRESSION']),APPROVAL_MODES=new Set([a287_0x4050df(0x26c),'ALL',a287_0x4050df(0x187)]),APPROVAL_TASK_MODES=new Set([a287_0x4050df(0x291),a287_0x4050df(0x184)]),FLOW_TIME_UNITS=new Set([a287_0x4050df(0x1ae),a287_0x4050df(0x294),'HOURS',a287_0x4050df(0x15e)]),APPROVAL_TIMEOUT_ACTIONS=new Set([a287_0x4050df(0x16f),a287_0x4050df(0x275),a287_0x4050df(0x1e2)]),FLOW_TYPES=new Set([a287_0x4050df(0x27f),a287_0x4050df(0x152)]),FLOW_PAGE_MODES=new Set(['CUSTOM_PAGE',a287_0x4050df(0x1a6)]),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(['CONTINUE','FAIL']),NOTIFICATION_RECIPIENT_TYPES=new Set([a287_0x4050df(0x228),'ROLE',a287_0x4050df(0x25e)]),NOTIFICATION_RECIPIENT_ROLES=new Set(['TO','CC',a287_0x4050df(0x177)]),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=a287_0x4050df(0x2ad),UNSUPPORTED_PLATFORM_FORM_MESSAGE=a287_0x4050df(0x19d),RESERVED_RESULT_VARIABLES=new Set([a287_0x4050df(0x2ae),a287_0x4050df(0x203),'approval_sys_appCode',a287_0x4050df(0x17a),a287_0x4050df(0x180),a287_0x4050df(0x1c8),a287_0x4050df(0x1f9),a287_0x4050df(0x18f),a287_0x4050df(0x273),a287_0x4050df(0x1f4)]);export function normalizeFlowConfig(_0x57a407){const _0x341294=a287_0x4050df;if(!isRecord(_0x57a407))throw new TypeError('FlowConfig\x20must\x20be\x20a\x20JSON\x20object.');const _0x5ac29b=cloneJsonValue(_0x57a407),_0x5eda6b=_0x5ac29b[_0x341294(0x200)],_0xcefde9=isRecord(_0x5eda6b)?cloneJsonValue(_0x5eda6b):{},_0xb4e4f9=[],_0x8fed57=[];for(const _0x3aafb5 of REMOVED_ROOT_FIELDS){if(!Object['prototype']['hasOwnProperty'][_0x341294(0x15c)](_0x5ac29b,_0x3aafb5))continue;delete _0x5ac29b[_0x3aafb5],_0x8fed57[_0x341294(0x1ed)](_0x3aafb5),_0xb4e4f9[_0x341294(0x1ed)]({'code':_0x341294(0x2b3),'path':_0x3aafb5,'message':_0x3aafb5+_0x341294(0x242)});}for(const _0x1ae957 of REMOVED_FLOW_JSON_FIELDS){if(!Object['prototype'][_0x341294(0x27b)][_0x341294(0x15c)](_0xcefde9,_0x1ae957))continue;const _0x452d5a='flowJson.'+_0x1ae957;delete _0xcefde9[_0x1ae957],_0x8fed57[_0x341294(0x1ed)](_0x452d5a),_0xb4e4f9[_0x341294(0x1ed)]({'code':_0x341294(0x2b3),'path':_0x452d5a,'message':_0x452d5a+_0x341294(0x242)});}if(Object[_0x341294(0x281)][_0x341294(0x27b)][_0x341294(0x15c)](_0xcefde9,_0x341294(0x1ba))){const _0x2efd0c=_0xcefde9[_0x341294(0x1ba)],_0x4b66c5=typeof _0x2efd0c==='string'?_0x2efd0c['trim']():_0x2efd0c;if(isEmptyJsonValue(_0x2efd0c)||_0x4b66c5===DEFAULT_FLOW_SCHEMA_VERSION){const _0x195605=_0x341294(0x2ac);delete _0xcefde9[_0x341294(0x1ba)],_0x8fed57['push'](_0x195605),_0xb4e4f9[_0x341294(0x1ed)]({'code':'legacy_field_removed','path':_0x195605,'message':_0x195605+'\x20was\x20empty\x20or\x20used\x20the\x20default\x20'+DEFAULT_FLOW_SCHEMA_VERSION+_0x341294(0x245)});}}removeEmptyMetadata(_0xcefde9,_0x341294(0x200),_0xb4e4f9,_0x8fed57);_0x5ac29b[_0x341294(0x224)]===_0x341294(0x152)&&!Object[_0x341294(0x281)]['hasOwnProperty'][_0x341294(0x15c)](_0xcefde9,_0x341294(0x22c))&&(_0xcefde9[_0x341294(0x22c)]='CUSTOM_PAGE');_0x5ac29b[_0x341294(0x200)]=_0xcefde9;if(typeof _0x5ac29b[_0x341294(0x1d6)]==='string')_0x5ac29b['flowName']=_0x5ac29b[_0x341294(0x1d6)][_0x341294(0x2bf)]();return{'config':_0x5ac29b,'warnings':_0xb4e4f9,'removedPaths':_0x8fed57};}export function validateFlowConfig(_0x159010){const _0x47c346=a287_0x4050df;let _0xf49239;try{_0xf49239=normalizeFlowConfig(_0x159010);}catch(_0x3885e5){const _0x2019d9=_0x3885e5 instanceof Error?_0x3885e5[_0x47c346(0x226)]:String(_0x3885e5),_0x33b36c={'flowJson':{}};return{'valid':![],'errors':[{'path':'$','message':_0x2019d9}],'warnings':[],'normalized':_0x33b36c,'validationConfig':_0x33b36c};}const _0x11b532=_0xf49239[_0x47c346(0x250)],_0x305b36=cloneJsonValue(_0x11b532),_0x57cd23=_0x305b36['flowJson'];_0x57cd23[_0x47c346(0x2b4)]=_0x47c346(0x2a1),_0x57cd23['flowName']=_0x11b532[_0x47c346(0x1d6)];typeof _0x11b532[_0x47c346(0x1d7)]===_0x47c346(0x29a)&&_0x11b532[_0x47c346(0x1d7)][_0x47c346(0x2bf)]()&&(_0x57cd23[_0x47c346(0x248)]=_0x11b532['datasetCode'][_0x47c346(0x2bf)]());const _0x315782=[];return validateOuterMetadata(_0x11b532,_0x315782),validateFlowClassification(_0x11b532,_0x315782),validateGraph(_0x11b532['flowJson'],_0x315782),{'valid':_0x315782[_0x47c346(0x28e)]===0x0,'errors':_0x315782,'warnings':_0xf49239[_0x47c346(0x1ac)],'normalized':_0x11b532,'validationConfig':_0x305b36};}function validateFlowClassification(_0x57e8f9,_0x73eff8){const _0x2b27d1=a287_0x4050df;if(!isRecord(_0x57e8f9[_0x2b27d1(0x200)]))return;const _0x5717fe=_0x57e8f9[_0x2b27d1(0x224)],_0x508166=_0x57e8f9[_0x2b27d1(0x200)]['pageMode'];_0x508166!==undefined&&(typeof _0x508166!=='string'||!FLOW_PAGE_MODES[_0x2b27d1(0x1fa)](_0x508166))&&_0x73eff8[_0x2b27d1(0x1ed)]({'path':_0x2b27d1(0x217),'message':_0x2b27d1(0x179)+String(_0x508166)+'.'});_0x5717fe===_0x2b27d1(0x27f)&&_0x508166!==undefined&&_0x73eff8[_0x2b27d1(0x1ed)]({'path':_0x2b27d1(0x217),'message':_0x2b27d1(0x1a2)});_0x5717fe===_0x2b27d1(0x152)&&_0x508166===_0x2b27d1(0x1a6)&&_0x73eff8[_0x2b27d1(0x1ed)]({'path':_0x2b27d1(0x217),'message':UNSUPPORTED_PLATFORM_FORM_MESSAGE});(_0x5717fe===_0x2b27d1(0x27f)||_0x5717fe===_0x2b27d1(0x152))&&validateCustomPageNavigation(_0x57e8f9,_0x5717fe,_0x508166,_0x73eff8);if(_0x5717fe!=='FORM_FLOW'||!Array[_0x2b27d1(0x186)](_0x57e8f9[_0x2b27d1(0x200)]['nodes']))return;_0x57e8f9[_0x2b27d1(0x200)][_0x2b27d1(0x1c0)][_0x2b27d1(0x1e3)]((_0x16301f,_0x5d3677)=>{const _0x7e2c89=_0x2b27d1;isRecord(_0x16301f)&&_0x16301f[_0x7e2c89(0x1df)]===_0x7e2c89(0x291)&&_0x16301f[_0x7e2c89(0x1af)]==='HANDLE'&&_0x73eff8[_0x7e2c89(0x1ed)]({'path':_0x7e2c89(0x159)+_0x5d3677+'].taskMode','message':'FORM_FLOW\x20is\x20an\x20approval\x20flow\x20and\x20cannot\x20contain\x20HANDLE\x20tasks;\x20use\x20INDEPENDENT_FLOW\x20for\x20workflows.'});});}function validateCustomPageNavigation(_0x4409a6,_0x39e716,_0x1d6f2c,_0x4535e6){const _0x30d8a9=a287_0x4050df,_0x2e09cf=_0x4409a6[_0x30d8a9(0x200)][_0x30d8a9(0x167)];_0x2e09cf!==undefined&&_0x4535e6[_0x30d8a9(0x1ed)]({'path':_0x30d8a9(0x195),'message':_0x30d8a9(0x176)});const _0x1fbc11=_0x4409a6[_0x30d8a9(0x200)][_0x30d8a9(0x225)];_0x1fbc11!==undefined&&(typeof _0x1fbc11!==_0x30d8a9(0x29a)||_0x1fbc11['trim']()==='')&&_0x4535e6[_0x30d8a9(0x1ed)]({'path':_0x30d8a9(0x1a4),'message':_0x30d8a9(0x1ee)});const _0x68dd93=Array[_0x30d8a9(0x186)](_0x4409a6['flowJson']['nodes'])?_0x4409a6['flowJson'][_0x30d8a9(0x1c0)]['map']((_0x357db3,_0x2cc618)=>({'node':_0x357db3,'index':_0x2cc618}))['filter'](({node:_0x351782})=>isRecord(_0x351782)&&_0x351782[_0x30d8a9(0x28a)]!==undefined):[],_0x2a1df9=_0x1fbc11!==undefined||_0x68dd93[_0x30d8a9(0x28e)]>0x0,_0x23c71b=_0x1d6f2c===undefined&&_0x39e716===_0x30d8a9(0x152)?'CUSTOM_PAGE':_0x1d6f2c;_0x2a1df9&&(_0x39e716!==_0x30d8a9(0x152)||_0x23c71b!=='CUSTOM_PAGE')&&(_0x1fbc11!==undefined&&_0x4535e6[_0x30d8a9(0x1ed)]({'path':'flowJson.startPath','message':'startPath\x20applies\x20only\x20to\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.'}),_0x68dd93['forEach'](({index:_0x52e055})=>{const _0x58f6fd=_0x30d8a9;_0x4535e6[_0x58f6fd(0x1ed)]({'path':_0x58f6fd(0x159)+_0x52e055+'].path','message':'node\x20path\x20applies\x20only\x20to\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.'});}));}export async function writeNormalizedFlowConfig(_0x5c5b7b,_0x43e4eb,_0x5dab23={}){const _0x4f5fd1=a287_0x4050df,_0x2f8d5c=resolve(_0x5c5b7b),_0x6f9016=_0x2f8d5c+'.'+process[_0x4f5fd1(0x232)]+'.'+randomUUID()+_0x4f5fd1(0x1b7),_0x395365=JSON[_0x4f5fd1(0x154)](_0x43e4eb,null,0x2)+'\x0a';let _0x3d8be7;try{try{_0x3d8be7=(await stat(_0x2f8d5c))[_0x4f5fd1(0x1cc)]&0x1ff;}catch{_0x3d8be7=undefined;}await writeFile(_0x6f9016,_0x395365,{'encoding':_0x4f5fd1(0x19c),'flag':'wx','mode':_0x3d8be7??0x1a4});if(_0x3d8be7!==undefined)await chmod(_0x6f9016,_0x3d8be7);_0x5dab23[_0x4f5fd1(0x223)]===![]?(await link(_0x6f9016,_0x2f8d5c),await unlink(_0x6f9016)):await rename(_0x6f9016,_0x2f8d5c);}finally{await unlink(_0x6f9016)[_0x4f5fd1(0x1c2)](()=>undefined);}}function validateOuterMetadata(_0x3c0802,_0xe040fe){const _0x463a50=a287_0x4050df;(typeof _0x3c0802[_0x463a50(0x1d6)]!==_0x463a50(0x29a)||_0x3c0802[_0x463a50(0x1d6)][_0x463a50(0x2bf)]()==='')&&_0xe040fe[_0x463a50(0x1ed)]({'path':_0x463a50(0x1d6),'message':_0x463a50(0x1c6)});_0x3c0802[_0x463a50(0x215)]!==undefined&&typeof _0x3c0802[_0x463a50(0x215)]!==_0x463a50(0x29a)&&_0xe040fe[_0x463a50(0x1ed)]({'path':'flowDesc','message':_0x463a50(0x1fb)});if(_0x3c0802[_0x463a50(0x224)]===undefined||_0x3c0802['flowType']===null)_0xe040fe[_0x463a50(0x1ed)]({'path':_0x463a50(0x224),'message':_0x463a50(0x205)});else(typeof _0x3c0802[_0x463a50(0x224)]!==_0x463a50(0x29a)||!FLOW_TYPES[_0x463a50(0x1fa)](_0x3c0802[_0x463a50(0x224)]))&&_0xe040fe[_0x463a50(0x1ed)]({'path':_0x463a50(0x224),'message':_0x463a50(0x243)+String(_0x3c0802[_0x463a50(0x224)])+'.'});_0x3c0802[_0x463a50(0x1d7)]!==undefined&&typeof _0x3c0802[_0x463a50(0x1d7)]!==_0x463a50(0x29a)&&_0xe040fe[_0x463a50(0x1ed)]({'path':_0x463a50(0x1d7),'message':_0x463a50(0x27d)}),_0x3c0802[_0x463a50(0x23d)]!==undefined&&(!Number['isInteger'](_0x3c0802['pageId'])||_0x3c0802[_0x463a50(0x23d)]<0x0)&&_0xe040fe[_0x463a50(0x1ed)]({'path':_0x463a50(0x23d),'message':'pageId\x20must\x20be\x20a\x20non-negative\x20integer.'}),_0x3c0802[_0x463a50(0x224)]===_0x463a50(0x152)&&_0x3c0802[_0x463a50(0x1d7)]!==undefined&&_0xe040fe[_0x463a50(0x1ed)]({'path':_0x463a50(0x1d7),'message':_0x463a50(0x28d)}),_0x3c0802['flowType']===_0x463a50(0x152)&&_0x3c0802['pageId']!==undefined&&_0xe040fe[_0x463a50(0x1ed)]({'path':_0x463a50(0x23d),'message':_0x463a50(0x2a8)});}function validateGraph(_0x1aa8bc,_0x3a9a5e){const _0x1eee28=a287_0x4050df;if(!isRecord(_0x1aa8bc)){_0x3a9a5e[_0x1eee28(0x1ed)]({'path':_0x1eee28(0x200),'message':'flowJson\x20must\x20be\x20an\x20object.'});return;}!Array[_0x1eee28(0x186)](_0x1aa8bc[_0x1eee28(0x1c0)])&&_0x3a9a5e[_0x1eee28(0x1ed)]({'path':'flowJson.nodes','message':_0x1eee28(0x2aa)});!Array['isArray'](_0x1aa8bc[_0x1eee28(0x1cb)])&&_0x3a9a5e[_0x1eee28(0x1ed)]({'path':'flowJson.edges','message':_0x1eee28(0x171)});Object[_0x1eee28(0x281)][_0x1eee28(0x27b)][_0x1eee28(0x15c)](_0x1aa8bc,'schemaVersion')&&_0x3a9a5e[_0x1eee28(0x1ed)]({'path':_0x1eee28(0x2ac),'message':_0x1eee28(0x1cf)+String(_0x1aa8bc[_0x1eee28(0x1ba)])+_0x1eee28(0x271)+DEFAULT_FLOW_SCHEMA_VERSION+'.'});for(const _0x995cd6 of['formSchema','formDefinitions','formPermissions']){Object[_0x1eee28(0x281)][_0x1eee28(0x27b)][_0x1eee28(0x15c)](_0x1aa8bc,_0x995cd6)&&_0x3a9a5e['push']({'path':_0x1eee28(0x18a)+_0x995cd6,'message':UNSUPPORTED_FORM_MESSAGE});}if(!Array[_0x1eee28(0x186)](_0x1aa8bc[_0x1eee28(0x1c0)])||!Array['isArray'](_0x1aa8bc[_0x1eee28(0x1cb)]))return;const _0x273413=new Map(),_0x729ed=[],_0x1036a5=[],_0x1100d9=new Map(),_0x2c3e29=new Map(),_0x4ef1cf=new Set();let _0x4fa55c=0x0;_0x1aa8bc[_0x1eee28(0x1c0)][_0x1eee28(0x1e3)]((_0x2b4cfc,_0x22d864)=>{const _0x33d582=_0x1eee28,_0xedbde3=_0x33d582(0x159)+_0x22d864+']';if(!isRecord(_0x2b4cfc)){_0x3a9a5e['push']({'path':_0xedbde3,'message':'node\x20must\x20be\x20an\x20object.'});return;}const _0x4cdd79=_0x2b4cfc;if(typeof _0x4cdd79['id']!=='string'||!BPMN_ID_PATTERN[_0x33d582(0x1aa)](_0x4cdd79['id']))_0x3a9a5e[_0x33d582(0x1ed)]({'path':_0xedbde3+_0x33d582(0x29c),'message':_0x33d582(0x244)});else _0x273413[_0x33d582(0x1fa)](_0x4cdd79['id'])?_0x3a9a5e['push']({'path':_0xedbde3+_0x33d582(0x29c),'message':'Duplicate\x20node\x20id:\x20'+_0x4cdd79['id']+'.'}):(_0x273413[_0x33d582(0x16d)](_0x4cdd79['id'],_0x4cdd79),_0x4ef1cf[_0x33d582(0x259)](_0x4cdd79['id']));if(!NODE_TYPES[_0x33d582(0x1fa)](_0x4cdd79['type']))_0x3a9a5e[_0x33d582(0x1ed)]({'path':_0xedbde3+_0x33d582(0x166),'message':_0x33d582(0x247)+String(_0x4cdd79[_0x33d582(0x1df)])+'.'});else{if(_0x4cdd79[_0x33d582(0x1df)]===_0x33d582(0x22e))_0x729ed['push'](_0x4cdd79['id']);else _0x4cdd79[_0x33d582(0x1df)]==='END'&&_0x1036a5['push'](_0x4cdd79['id']);}_0x4cdd79[_0x33d582(0x1df)]===_0x33d582(0x291)&&(_0x4cdd79['taskMode']===undefined||_0x4cdd79[_0x33d582(0x1af)]===_0x33d582(0x291))&&(_0x4fa55c+=0x1);validateNode(_0x4cdd79,_0xedbde3,_0x3a9a5e);if(_0x4cdd79[_0x33d582(0x1df)]===_0x33d582(0x21d)){const _0x59b7d1=resolveEffectiveResultVariable(_0x4cdd79[_0x33d582(0x1e4)],![]);_0x59b7d1&&(registerResultVariableOwner(_0x2c3e29,_0x59b7d1,_0x4cdd79['id'],_0x3a9a5e),!_0x1100d9[_0x33d582(0x1fa)](_0x59b7d1)&&_0x1100d9[_0x33d582(0x16d)](_0x59b7d1,_0x4cdd79['id']));}if(_0x4cdd79[_0x33d582(0x1df)]===_0x33d582(0x291)&&isRecord(_0x4cdd79[_0x33d582(0x168)])&&_0x4cdd79[_0x33d582(0x168)][_0x33d582(0x23b)]===!![]&&_0x4cdd79[_0x33d582(0x168)][_0x33d582(0x22f)]===_0x33d582(0x1e2)){const _0x151542=resolveEffectiveResultVariable(_0x4cdd79[_0x33d582(0x168)][_0x33d582(0x1e4)],!![]);_0x151542&&registerResultVariableOwner(_0x2c3e29,_0x151542,_0x4cdd79['id']+_0x33d582(0x218),_0x3a9a5e);}});_0x729ed[_0x1eee28(0x28e)]!==0x1&&_0x3a9a5e[_0x1eee28(0x1ed)]({'path':_0x1eee28(0x2a9),'message':_0x1eee28(0x1e0)});_0x1036a5[_0x1eee28(0x28e)]===0x0&&_0x3a9a5e['push']({'path':_0x1eee28(0x2a9),'message':_0x1eee28(0x237)});const _0x77f7e8=new Map(),_0x14c30d=new Map(),_0x20577e=new Map(),_0x5f0778=new Set();_0x1aa8bc['edges'][_0x1eee28(0x1e3)]((_0xbdaa05,_0x1c5272)=>{const _0x33b3cf=_0x1eee28,_0x3d4ecd=_0x33b3cf(0x2bc)+_0x1c5272+']';if(!isRecord(_0xbdaa05)){_0x3a9a5e['push']({'path':_0x3d4ecd,'message':_0x33b3cf(0x289)});return;}const _0x132ba9=_0xbdaa05;_0x20577e[_0x33b3cf(0x16d)](_0x132ba9,_0x3d4ecd);const _0x40dc4f=resolveEdgeEndpoint(_0x132ba9[_0x33b3cf(0x20d)],_0x132ba9[_0x33b3cf(0x297)]),_0x49d8fa=resolveEdgeEndpoint(_0x132ba9[_0x33b3cf(0x1b9)],_0x132ba9[_0x33b3cf(0x156)]);if(!_0x40dc4f)_0x3a9a5e[_0x33b3cf(0x1ed)]({'path':_0x3d4ecd+'.source','message':_0x33b3cf(0x1ea)});if(!_0x49d8fa)_0x3a9a5e[_0x33b3cf(0x1ed)]({'path':_0x3d4ecd+'.target','message':_0x33b3cf(0x1cd)});_0x40dc4f&&!_0x273413[_0x33b3cf(0x1fa)](_0x40dc4f)&&_0x3a9a5e[_0x33b3cf(0x1ed)]({'path':_0x3d4ecd+_0x33b3cf(0x181),'message':_0x33b3cf(0x178)+_0x40dc4f+'.'});_0x49d8fa&&!_0x273413[_0x33b3cf(0x1fa)](_0x49d8fa)&&_0x3a9a5e['push']({'path':_0x3d4ecd+'.target','message':_0x33b3cf(0x24f)+_0x49d8fa+'.'});if(_0x132ba9['id']!==undefined){if(typeof _0x132ba9['id']!==_0x33b3cf(0x29a)||!BPMN_ID_PATTERN[_0x33b3cf(0x1aa)](_0x132ba9['id']))_0x3a9a5e[_0x33b3cf(0x1ed)]({'path':_0x3d4ecd+'.id','message':_0x33b3cf(0x201)});else{if(_0x4ef1cf['has'](_0x132ba9['id']))_0x3a9a5e[_0x33b3cf(0x1ed)]({'path':_0x3d4ecd+'.id','message':_0x33b3cf(0x1a9)+_0x132ba9['id']+'.'});else!_0x4ef1cf['has'](_0x132ba9['id'])&&_0x4ef1cf[_0x33b3cf(0x259)](_0x132ba9['id']);}}if(_0x40dc4f&&_0x49d8fa){const _0x4f8aab=_0x40dc4f+'\x00'+_0x49d8fa+'\x00'+(_0x132ba9[_0x33b3cf(0x207)]??_0x33b3cf(0x20c));_0x5f0778['has'](_0x4f8aab)?_0x3a9a5e['push']({'path':_0x3d4ecd,'message':_0x33b3cf(0x1ab)+_0x40dc4f+_0x33b3cf(0x1c3)+_0x49d8fa+'\x20('+(_0x132ba9[_0x33b3cf(0x207)]??_0x33b3cf(0x20c))+').'}):_0x5f0778['add'](_0x4f8aab);}validateEdge(_0x132ba9,_0x3d4ecd,_0x3a9a5e),_0x40dc4f&&_0x49d8fa&&(_0x77f7e8[_0x33b3cf(0x23e)](_0x40dc4f)?.[_0x33b3cf(0x1ed)](_0x132ba9)??_0x77f7e8[_0x33b3cf(0x16d)](_0x40dc4f,[_0x132ba9]),_0x14c30d[_0x33b3cf(0x23e)](_0x49d8fa)?.['push'](_0x132ba9)??_0x14c30d['set'](_0x49d8fa,[_0x132ba9]));});if(_0x729ed['length']!==0x1)return;validateGraphShape(_0x273413,_0x729ed[0x0],_0x1036a5,_0x77f7e8,_0x14c30d,_0x20577e,_0x3a9a5e),validateScriptResultReferences(_0x273413,_0x729ed[0x0],_0x77f7e8,_0x14c30d,_0x20577e,_0x1100d9,_0x3a9a5e),validateApprovalResults(_0x273413,_0x4fa55c,_0x1036a5,_0x3a9a5e);}function validateNode(_0x4a243b,_0x5931ed,_0x4b0bae){const _0xfebd41=a287_0x4050df;for(const _0x718b57 of['form',_0xfebd41(0x28f)]){Object[_0xfebd41(0x281)][_0xfebd41(0x27b)][_0xfebd41(0x15c)](_0x4a243b,_0x718b57)&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+'.'+_0x718b57,'message':UNSUPPORTED_FORM_MESSAGE});}if(!NODE_TYPES['has'](_0x4a243b[_0xfebd41(0x1df)]))return;(typeof _0x4a243b['name']!=='string'||_0x4a243b[_0xfebd41(0x1ad)][_0xfebd41(0x2bf)]()==='')&&_0x4b0bae['push']({'path':_0x5931ed+_0xfebd41(0x265),'message':_0xfebd41(0x190)});_0x4a243b[_0xfebd41(0x23d)]!==undefined&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x209),'message':'node\x20pageId\x20is\x20no\x20longer\x20supported;\x20use\x20node\x20path\x20instead.'});if(_0x4a243b[_0xfebd41(0x28a)]!==undefined){if(typeof _0x4a243b[_0xfebd41(0x28a)]!==_0xfebd41(0x29a)||_0x4a243b[_0xfebd41(0x28a)][_0xfebd41(0x2bf)]()==='')_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x2a4),'message':_0xfebd41(0x26d)});else _0x4a243b['type']!==_0xfebd41(0x291)&&_0x4a243b[_0xfebd41(0x1df)]!==_0xfebd41(0x292)&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x2a4),'message':_0xfebd41(0x2a3)});}const _0x1b397f=_0x4a243b[_0xfebd41(0x1d2)];if(!isRecord(_0x1b397f))_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x1fd),'message':_0xfebd41(0x282)});else for(const _0x26c60f of['x','y']){const _0x52e647=_0x1b397f[_0x26c60f];(typeof _0x52e647!==_0xfebd41(0x1b5)||!Number['isFinite'](_0x52e647)||_0x52e647<0x0)&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x277)+_0x26c60f,'message':_0xfebd41(0x1de)+_0x26c60f+_0xfebd41(0x160)});}if(_0x4a243b[_0xfebd41(0x1df)]===_0xfebd41(0x291)){const _0xc100cb=_0x4a243b['approvalMode']??'SINGLE',_0x4d0eef=_0x4a243b[_0xfebd41(0x1af)]??_0xfebd41(0x291);!APPROVAL_TASK_MODES[_0xfebd41(0x1fa)](_0x4d0eef)&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x2a6),'message':_0xfebd41(0x193)+String(_0x4d0eef)+'.'});!APPROVAL_MODES[_0xfebd41(0x1fa)](_0xc100cb)&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x18b),'message':_0xfebd41(0x264)+String(_0xc100cb)+'.'});if(!isRecord(_0x4a243b[_0xfebd41(0x211)]))_0x4b0bae['push']({'path':_0x5931ed+_0xfebd41(0x1bb),'message':'APPROVAL\x20node\x20requires\x20assignee.'});else{const _0x37cf86=_0x4a243b[_0xfebd41(0x211)][_0xfebd41(0x1d8)];_0x37cf86!=='FIXED'&&_0x37cf86!==_0xfebd41(0x1f7)&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x15a),'message':_0xfebd41(0x1a7)});if(_0x37cf86===_0xfebd41(0x158)){const _0x594402=_0x4a243b[_0xfebd41(0x211)][_0xfebd41(0x1d4)];if(!Array[_0xfebd41(0x186)](_0x594402)||_0x594402['length']===0x0)_0x4b0bae['push']({'path':_0x5931ed+'.assignee.userIds','message':'FIXED\x20assignee\x20requires\x20userIds.'});else{const _0x1401f6=_0x594402[_0xfebd41(0x1b8)](_0x9f385b=>!isValidUserId(_0x9f385b));_0x1401f6>=0x0&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x199)+_0x1401f6+']','message':_0xfebd41(0x15d)});const _0x9a0f2a=new Set(_0x594402[_0xfebd41(0x20b)](isValidUserId)['map'](_0x402237=>String(_0x402237)[_0xfebd41(0x2bf)]()));_0xc100cb===_0xfebd41(0x26c)&&_0x9a0f2a[_0xfebd41(0x1d5)]>0x1&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x182),'message':_0xfebd41(0x2bb)});}}if(_0x37cf86===_0xfebd41(0x1f7)){const _0x5dc415=_0x4a243b[_0xfebd41(0x211)][_0xfebd41(0x24c)],_0x5316a9=typeof _0x5dc415==='number'||typeof _0x5dc415===_0xfebd41(0x29a)?Number(String(_0x5dc415)[_0xfebd41(0x2bf)]()):Number[_0xfebd41(0x24b)];(!Number[_0xfebd41(0x1ca)](_0x5316a9)||_0x5316a9<=0x0)&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x27c),'message':_0xfebd41(0x1d3)});}}if(_0x4a243b[_0xfebd41(0x1f0)]!==undefined){if(!isRecord(_0x4a243b['transferCandidates']))_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x20e),'message':_0xfebd41(0x1b6)});else{if(_0x4a243b[_0xfebd41(0x1f0)][_0xfebd41(0x1d8)]!=='FIXED')_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x17e),'message':_0xfebd41(0x1ff)});else{const _0x31dfc4=_0x4a243b[_0xfebd41(0x1f0)][_0xfebd41(0x1d4)];if(!Array[_0xfebd41(0x186)](_0x31dfc4)||_0x31dfc4[_0xfebd41(0x28e)]===0x0)_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x2ba),'message':_0xfebd41(0x23f)});else{const _0x4d0008=_0x31dfc4[_0xfebd41(0x1b8)](_0x43d070=>!isValidUserId(_0x43d070));_0x4d0008>=0x0&&_0x4b0bae['push']({'path':_0x5931ed+_0xfebd41(0x287)+_0x4d0008+']','message':_0xfebd41(0x29b)});}}}}}_0x4a243b[_0xfebd41(0x198)]!==undefined&&typeof _0x4a243b['sequential']!==_0xfebd41(0x22a)&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x258),'message':_0xfebd41(0x1b2)});if(_0x4a243b[_0xfebd41(0x1df)]===_0xfebd41(0x21d)){(typeof _0x4a243b[_0xfebd41(0x1ce)]!==_0xfebd41(0x29a)||_0x4a243b[_0xfebd41(0x1ce)]['trim']()==='')&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x2b9),'message':_0xfebd41(0x236)});if(_0x4a243b['resultVariable']!==undefined){if(typeof _0x4a243b[_0xfebd41(0x1e4)]!==_0xfebd41(0x29a)||!VARIABLE_PATTERN[_0xfebd41(0x1aa)](_0x4a243b['resultVariable']))_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x153),'message':_0xfebd41(0x29f)});else(RESERVED_RESULT_VARIABLES[_0xfebd41(0x1fa)](_0x4a243b['resultVariable'])||_0x4a243b['resultVariable']['startsWith']('approval_sys_'))&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+'.resultVariable','message':_0xfebd41(0x15f)+_0x4a243b['resultVariable']+'.'});}}validateAsyncExecution(_0x4a243b,_0x5931ed,_0x4b0bae),validateApprovalTimeout(_0x4a243b,_0x5931ed,_0x4b0bae),validateCcConfig(_0x4a243b,_0x5931ed,_0x4b0bae),_0x4a243b['type']==='NOTIFICATION'&&validateNotificationConfig(_0x4a243b[_0xfebd41(0x250)],_0x5931ed+_0xfebd41(0x26b),_0x4b0bae);}function validateAsyncExecution(_0x562c13,_0x324735,_0x4bcf8b){const _0x2400e9=a287_0x4050df;if(_0x562c13[_0x2400e9(0x164)]===undefined)return;if(!isRecord(_0x562c13[_0x2400e9(0x164)])){_0x4bcf8b[_0x2400e9(0x1ed)]({'path':_0x324735+_0x2400e9(0x235),'message':_0x2400e9(0x1b3)});return;}if(_0x562c13[_0x2400e9(0x164)][_0x2400e9(0x23b)]!==undefined&&typeof _0x562c13[_0x2400e9(0x164)][_0x2400e9(0x23b)]!==_0x2400e9(0x22a)){_0x4bcf8b['push']({'path':_0x324735+_0x2400e9(0x219),'message':_0x2400e9(0x296)});return;}if(_0x562c13[_0x2400e9(0x164)][_0x2400e9(0x23b)]!==!![])return;_0x562c13['type']!==_0x2400e9(0x21d)&&_0x4bcf8b['push']({'path':_0x324735+'.async','message':_0x2400e9(0x239)});const _0x19b9df=_0x562c13[_0x2400e9(0x164)][_0x2400e9(0x270)]??0x3;(!Number['isInteger'](_0x19b9df)||_0x19b9df<0x1||_0x19b9df>MAX_ASYNC_RETRY_COUNT)&&_0x4bcf8b[_0x2400e9(0x1ed)]({'path':_0x324735+_0x2400e9(0x24d),'message':_0x2400e9(0x17c)+MAX_ASYNC_RETRY_COUNT+'.'}),_0x562c13['async'][_0x2400e9(0x170)]!==undefined&&validateTimeAmount(_0x562c13['async']['retryInterval'],_0x324735+_0x2400e9(0x269),_0x4bcf8b);}function validateApprovalTimeout(_0x356be2,_0x296576,_0x2a7f43){const _0x25860f=a287_0x4050df;if(_0x356be2[_0x25860f(0x168)]===undefined)return;if(!isRecord(_0x356be2['timeout'])){_0x2a7f43[_0x25860f(0x1ed)]({'path':_0x296576+'.timeout','message':_0x25860f(0x1c4)});return;}if(_0x356be2[_0x25860f(0x168)][_0x25860f(0x23b)]!==undefined&&typeof _0x356be2[_0x25860f(0x168)][_0x25860f(0x23b)]!=='boolean'){_0x2a7f43[_0x25860f(0x1ed)]({'path':_0x296576+_0x25860f(0x266),'message':_0x25860f(0x204)});return;}if(_0x356be2[_0x25860f(0x168)][_0x25860f(0x23b)]!==!![])return;if(_0x356be2[_0x25860f(0x168)][_0x25860f(0x254)]!==undefined&&typeof _0x356be2[_0x25860f(0x168)][_0x25860f(0x254)]!=='boolean'){_0x2a7f43[_0x25860f(0x1ed)]({'path':_0x296576+'.timeout.interrupting','message':_0x25860f(0x1da)});return;}_0x356be2[_0x25860f(0x1df)]!==_0x25860f(0x291)&&_0x2a7f43['push']({'path':_0x296576+_0x25860f(0x218),'message':'timeout\x20is\x20only\x20supported\x20by\x20APPROVAL\x20node.'});validateTimeAmount(_0x356be2[_0x25860f(0x168)]['duration'],_0x296576+_0x25860f(0x1a8),_0x2a7f43);const _0x543d87=_0x356be2[_0x25860f(0x168)]['action'];if(!APPROVAL_TIMEOUT_ACTIONS[_0x25860f(0x1fa)](_0x543d87)){_0x2a7f43[_0x25860f(0x1ed)]({'path':_0x296576+_0x25860f(0x191),'message':_0x25860f(0x27a)});return;}(_0x356be2['taskMode']??'APPROVAL')===_0x25860f(0x184)&&_0x543d87!==_0x25860f(0x1e2)&&_0x2a7f43['push']({'path':_0x296576+_0x25860f(0x191),'message':_0x25860f(0x25a)});const _0x46d31e=_0x356be2[_0x25860f(0x168)]['interrupting']??_0x543d87!==_0x25860f(0x1e2);if(_0x543d87===_0x25860f(0x1e2))_0x46d31e&&_0x2a7f43[_0x25860f(0x1ed)]({'path':_0x296576+'.timeout.interrupting','message':'EXECUTE_BFF\x20timeout\x20must\x20not\x20interrupt\x20the\x20approval\x20task.'}),(typeof _0x356be2[_0x25860f(0x168)][_0x25860f(0x1ce)]!==_0x25860f(0x29a)||_0x356be2[_0x25860f(0x168)]['scriptName'][_0x25860f(0x2bf)]()==='')&&_0x2a7f43['push']({'path':_0x296576+_0x25860f(0x256),'message':'EXECUTE_BFF\x20timeout\x20requires\x20scriptName.'}),validateOptionalResultVariable(_0x356be2[_0x25860f(0x168)][_0x25860f(0x1e4)],_0x296576+_0x25860f(0x2b5),_0x2a7f43);else!_0x46d31e&&_0x2a7f43[_0x25860f(0x1ed)]({'path':_0x296576+_0x25860f(0x161),'message':_0x543d87+_0x25860f(0x22b)});}function validateTimeAmount(_0x3c5083,_0x22b165,_0x54d0d4){const _0x229d1b=a287_0x4050df;if(!isRecord(_0x3c5083)){_0x54d0d4[_0x229d1b(0x1ed)]({'path':_0x22b165,'message':_0x229d1b(0x1a5)});return;}(!Number[_0x229d1b(0x274)](_0x3c5083[_0x229d1b(0x1b0)])||Number(_0x3c5083[_0x229d1b(0x1b0)])<=0x0)&&_0x54d0d4[_0x229d1b(0x1ed)]({'path':_0x22b165+'.value','message':_0x229d1b(0x278)}),!FLOW_TIME_UNITS[_0x229d1b(0x1fa)](_0x3c5083[_0x229d1b(0x1bd)])&&_0x54d0d4[_0x229d1b(0x1ed)]({'path':_0x22b165+_0x229d1b(0x208),'message':_0x229d1b(0x233)});}function validateOptionalResultVariable(_0x560631,_0xcd1311,_0x18c66b){const _0x37a99b=a287_0x4050df;if(_0x560631===undefined||_0x560631===null||_0x560631==='')return;if(typeof _0x560631!=='string'||!VARIABLE_PATTERN[_0x37a99b(0x1aa)](_0x560631))_0x18c66b[_0x37a99b(0x1ed)]({'path':_0xcd1311,'message':_0x37a99b(0x29f)});else(RESERVED_RESULT_VARIABLES[_0x37a99b(0x1fa)](_0x560631)||_0x560631['startsWith'](_0x37a99b(0x220)))&&_0x18c66b['push']({'path':_0xcd1311,'message':_0x37a99b(0x15f)+_0x560631+'.'});}function validateCcConfig(_0x1e001f,_0x11d8be,_0x308dd0){const _0x1c44c3=a287_0x4050df;if(_0x1e001f['cc']===undefined)return;if(!isRecord(_0x1e001f['cc'])){_0x308dd0[_0x1c44c3(0x1ed)]({'path':_0x11d8be+_0x1c44c3(0x299),'message':_0x1c44c3(0x2be)});return;}_0x1e001f[_0x1c44c3(0x1df)]!==_0x1c44c3(0x292)&&_0x1e001f[_0x1c44c3(0x1df)]!==_0x1c44c3(0x291)&&_0x308dd0[_0x1c44c3(0x1ed)]({'path':_0x11d8be+_0x1c44c3(0x299),'message':_0x1c44c3(0x1ef)});Object[_0x1c44c3(0x281)]['hasOwnProperty']['call'](_0x1e001f['cc'],'readSources')&&_0x308dd0['push']({'path':_0x11d8be+_0x1c44c3(0x1e7),'message':UNSUPPORTED_FORM_MESSAGE});const _0x2d9631=_0x1e001f['cc'][_0x1c44c3(0x1e6)];if(!Array['isArray'](_0x2d9631)||_0x2d9631['length']===0x0)_0x308dd0[_0x1c44c3(0x1ed)]({'path':_0x11d8be+_0x1c44c3(0x188),'message':'cc.recipientUserIds\x20must\x20be\x20a\x20non-empty\x20array.'});else{_0x2d9631[_0x1c44c3(0x28e)]>MAX_CC_RECIPIENTS&&_0x308dd0['push']({'path':_0x11d8be+_0x1c44c3(0x188),'message':_0x1c44c3(0x2ab)+MAX_CC_RECIPIENTS+_0x1c44c3(0x189)});const _0xbabcea=new Set();_0x2d9631[_0x1c44c3(0x1e3)]((_0x9f8311,_0x135d93)=>{const _0x4abd7b=_0x1c44c3;if(typeof _0x9f8311!==_0x4abd7b(0x29a)||_0x9f8311['trim']()==='')_0x308dd0[_0x4abd7b(0x1ed)]({'path':_0x11d8be+_0x4abd7b(0x1c7)+_0x135d93+']','message':_0x4abd7b(0x21b)});else _0xbabcea[_0x4abd7b(0x1fa)](_0x9f8311['trim']())?_0x308dd0[_0x4abd7b(0x1ed)]({'path':_0x11d8be+'.cc.recipientUserIds['+_0x135d93+']','message':_0x4abd7b(0x157)+_0x9f8311[_0x4abd7b(0x2bf)]()+'.'}):_0xbabcea['add'](_0x9f8311[_0x4abd7b(0x2bf)]());});}validateStringArray(_0x1e001f['cc'][_0x1c44c3(0x1c1)],_0x11d8be+_0x1c44c3(0x175),_0x308dd0);}function validateStringArray(_0x7af822,_0x16fc1d,_0x5db98e){const _0x11165d=a287_0x4050df;if(_0x7af822===undefined)return;if(!Array[_0x11165d(0x186)](_0x7af822)){_0x5db98e[_0x11165d(0x1ed)]({'path':_0x16fc1d,'message':_0x11165d(0x210)});return;}const _0x483027=new Set();_0x7af822[_0x11165d(0x1e3)]((_0x364fcc,_0x405a18)=>{const _0x4281ec=_0x11165d;if(typeof _0x364fcc!==_0x4281ec(0x29a)||_0x364fcc['trim']()==='')_0x5db98e[_0x4281ec(0x1ed)]({'path':_0x16fc1d+'['+_0x405a18+']','message':_0x4281ec(0x19b)});else _0x483027[_0x4281ec(0x1fa)](_0x364fcc[_0x4281ec(0x2bf)]())?_0x5db98e[_0x4281ec(0x1ed)]({'path':_0x16fc1d+'['+_0x405a18+']','message':_0x4281ec(0x18e)+_0x364fcc['trim']()+'.'}):_0x483027[_0x4281ec(0x259)](_0x364fcc[_0x4281ec(0x2bf)]());});}function validateNotificationConfig(_0x27ceeb,_0x1db262,_0x496180){const _0x471568=a287_0x4050df;if(!isRecord(_0x27ceeb)){_0x496180[_0x471568(0x1ed)]({'path':_0x1db262,'message':_0x471568(0x1f1)});return;}if(_0x27ceeb[_0x471568(0x196)]!==undefined&&_0x27ceeb['version']!==null){if(typeof _0x27ceeb[_0x471568(0x196)]!==_0x471568(0x29a))_0x496180[_0x471568(0x1ed)]({'path':_0x1db262+_0x471568(0x17f),'message':_0x471568(0x185)});else _0x27ceeb[_0x471568(0x196)][_0x471568(0x2bf)]()&&_0x27ceeb['version'][_0x471568(0x2bf)]()!=='v1'&&_0x496180[_0x471568(0x1ed)]({'path':_0x1db262+'.version','message':'Unsupported\x20notification\x20version:\x20'+_0x27ceeb[_0x471568(0x196)]+'.'});}const _0x4cf92b=requireNotificationString(_0x27ceeb[_0x471568(0x2a0)],_0x1db262+_0x471568(0x26a),_0x471568(0x213),_0x496180);_0x4cf92b?.[_0x471568(0x21c)]('${')&&_0x496180[_0x471568(0x1ed)]({'path':_0x1db262+_0x471568(0x26a),'message':_0x471568(0x227)});if(_0x27ceeb[_0x471568(0x1f5)]!==undefined&&_0x27ceeb['failurePolicy']!==null){if(typeof _0x27ceeb['failurePolicy']!=='string')_0x496180['push']({'path':_0x1db262+'.failurePolicy','message':_0x471568(0x26f)});else!NOTIFICATION_FAILURE_POLICIES[_0x471568(0x1fa)](_0x27ceeb[_0x471568(0x1f5)][_0x471568(0x2bf)]()[_0x471568(0x2a2)]())&&_0x496180[_0x471568(0x1ed)]({'path':_0x1db262+'.failurePolicy','message':'failurePolicy\x20must\x20be\x20CONTINUE\x20or\x20FAIL.'});}!isRecord(_0x27ceeb['template'])?_0x496180[_0x471568(0x1ed)]({'path':_0x1db262+_0x471568(0x231),'message':_0x471568(0x293)}):validateNotificationTemplate(_0x27ceeb[_0x471568(0x165)],_0x1db262+'.template',_0x496180),validateNotificationRecipients(_0x27ceeb[_0x471568(0x283)],_0x1db262+_0x471568(0x214),_0x496180);}function validateNotificationTemplate(_0xb706f9,_0x3a3452,_0x765113){const _0x4e1bad=a287_0x4050df;for(const _0x1fe815 of[_0x4e1bad(0x1c9),_0x4e1bad(0x216)]){const _0x53d795=requireNotificationString(_0xb706f9[_0x1fe815],_0x3a3452+'.'+_0x1fe815,_0x4e1bad(0x17d)+_0x1fe815+_0x4e1bad(0x28b),_0x765113);if(_0x53d795)validateNotificationPlaceholders(_0x53d795,_0x3a3452+'.'+_0x1fe815,_0x765113);}_0xb706f9[_0x4e1bad(0x285)]!==undefined&&_0xb706f9['detailMarkdown']!==null&&(typeof _0xb706f9[_0x4e1bad(0x285)]!=='string'?_0x765113[_0x4e1bad(0x1ed)]({'path':_0x3a3452+'.detailMarkdown','message':_0x4e1bad(0x162)}):validateNotificationPlaceholders(_0xb706f9['detailMarkdown'],_0x3a3452+_0x4e1bad(0x261),_0x765113)),validateNotificationFacts(_0xb706f9[_0x4e1bad(0x2b0)],_0x3a3452+_0x4e1bad(0x1a3),_0x765113),validateNotificationActions(_0xb706f9[_0x4e1bad(0x1eb)],_0x3a3452+_0x4e1bad(0x21f),_0x765113);}function validateNotificationFacts(_0x117196,_0x1473fd,_0xa14372){const _0x127a92=a287_0x4050df;if(_0x117196===undefined||_0x117196===null)return;if(!Array[_0x127a92(0x186)](_0x117196)){_0xa14372[_0x127a92(0x1ed)]({'path':_0x1473fd,'message':'Notification\x20template.facts\x20must\x20be\x20an\x20array.'});return;}_0x117196[_0x127a92(0x28e)]>MAX_NOTIFICATION_FACTS&&_0xa14372['push']({'path':_0x1473fd,'message':_0x127a92(0x212)+MAX_NOTIFICATION_FACTS+'\x20facts.'}),_0x117196[_0x127a92(0x1e3)]((_0x5da81,_0x142f95)=>{const _0x16bdf2=_0x127a92,_0x1f1402=_0x1473fd+'['+_0x142f95+']';if(!isRecord(_0x5da81)){_0xa14372[_0x16bdf2(0x1ed)]({'path':_0x1f1402,'message':_0x16bdf2(0x1a0)});return;}for(const _0x243124 of[_0x16bdf2(0x255),_0x16bdf2(0x1b0)]){const _0x5061db=requireNotificationString(_0x5da81[_0x243124],_0x1f1402+'.'+_0x243124,'Notification\x20fact.'+_0x243124+_0x16bdf2(0x28b),_0xa14372);_0x5061db&&validateNotificationPlaceholders(_0x5061db,_0x1f1402+'.'+_0x243124,_0xa14372);}});}function validateNotificationActions(_0x17b4e2,_0x58bbb6,_0x62ba45){const _0x3315e2=a287_0x4050df;if(_0x17b4e2===undefined||_0x17b4e2===null)return;if(!Array[_0x3315e2(0x186)](_0x17b4e2)){_0x62ba45['push']({'path':_0x58bbb6,'message':_0x3315e2(0x2b1)});return;}_0x17b4e2['length']>MAX_NOTIFICATION_ACTIONS&&_0x62ba45['push']({'path':_0x58bbb6,'message':_0x3315e2(0x212)+MAX_NOTIFICATION_ACTIONS+_0x3315e2(0x26e)}),_0x17b4e2[_0x3315e2(0x1e3)]((_0x57c4d9,_0x14f4b6)=>{const _0x450bc2=_0x3315e2,_0xaab032=_0x58bbb6+'['+_0x14f4b6+']';if(!isRecord(_0x57c4d9)){_0x62ba45[_0x450bc2(0x1ed)]({'path':_0xaab032,'message':'Notification\x20action\x20must\x20be\x20an\x20object.'});return;}const _0x2ed115=requireNotificationString(_0x57c4d9[_0x450bc2(0x288)],_0xaab032+_0x450bc2(0x286),_0x450bc2(0x253),_0x62ba45);if(_0x2ed115)validateNotificationPlaceholders(_0x2ed115,_0xaab032+_0x450bc2(0x286),_0x62ba45);const _0x138951=requireNotificationString(_0x57c4d9[_0x450bc2(0x16b)],_0xaab032+_0x450bc2(0x19e),'Notification\x20action.url\x20is\x20required.',_0x62ba45);if(!_0x138951)return;validateNotificationPlaceholders(_0x138951,_0xaab032+_0x450bc2(0x19e),_0x62ba45),!/^https?:\/\//i['test'](_0x138951)&&!NOTIFICATION_ACTION_URL_PLACEHOLDER_PATTERN[_0x450bc2(0x1aa)](_0x138951)&&_0x62ba45['push']({'path':_0xaab032+_0x450bc2(0x19e),'message':_0x450bc2(0x155)});});}function validateNotificationRecipients(_0x5a2b26,_0x4f7f4c,_0x3561de){const _0xb24967=a287_0x4050df;if(_0x5a2b26===undefined||_0x5a2b26===null)return;if(!Array['isArray'](_0x5a2b26)){_0x3561de[_0xb24967(0x1ed)]({'path':_0x4f7f4c,'message':_0xb24967(0x29d)});return;}let _0x5025c4=![];_0x5a2b26['forEach']((_0x52ff25,_0x1d15b2)=>{const _0x3585d3=_0xb24967,_0x548ac6=_0x4f7f4c+'['+_0x1d15b2+']';if(!isRecord(_0x52ff25)){_0x3561de[_0x3585d3(0x1ed)]({'path':_0x548ac6,'message':_0x3585d3(0x151)});return;}const _0x53d34a=requireNotificationString(_0x52ff25['type'],_0x548ac6+_0x3585d3(0x166),_0x3585d3(0x1c5),_0x3561de);_0x53d34a&&!NOTIFICATION_RECIPIENT_TYPES['has'](_0x53d34a[_0x3585d3(0x2a2)]())&&_0x3561de[_0x3585d3(0x1ed)]({'path':_0x548ac6+_0x3585d3(0x166),'message':_0x3585d3(0x192)});let _0x1992be='TO';_0x52ff25['role']!==undefined&&_0x52ff25['role']!==null&&(typeof _0x52ff25[_0x3585d3(0x1a1)]!==_0x3585d3(0x29a)?(_0x3561de[_0x3585d3(0x1ed)]({'path':_0x548ac6+_0x3585d3(0x173),'message':_0x3585d3(0x2af)}),_0x1992be=''):(_0x1992be=_0x52ff25['role'][_0x3585d3(0x2bf)]()[_0x3585d3(0x2a2)](),!NOTIFICATION_RECIPIENT_ROLES[_0x3585d3(0x1fa)](_0x1992be)&&_0x3561de[_0x3585d3(0x1ed)]({'path':_0x548ac6+_0x3585d3(0x173),'message':_0x3585d3(0x1e9)})));if(_0x1992be==='TO')_0x5025c4=!![];const _0x559322=requireNotificationString(_0x52ff25['value'],_0x548ac6+_0x3585d3(0x1f2),_0x3585d3(0x23a),_0x3561de);_0x559322&&validateNotificationPlaceholders(_0x559322,_0x548ac6+_0x3585d3(0x1f2),_0x3561de);}),_0x5a2b26[_0xb24967(0x28e)]>0x0&&!_0x5025c4&&_0x3561de['push']({'path':_0x4f7f4c,'message':'Explicit\x20notification\x20recipients\x20require\x20at\x20least\x20one\x20TO.'});}function requireNotificationString(_0x18513b,_0x25c1fe,_0x233a8d,_0x5d04b7){const _0x34acda=a287_0x4050df;if(typeof _0x18513b!==_0x34acda(0x29a)||_0x18513b[_0x34acda(0x2bf)]()==='')return _0x5d04b7['push']({'path':_0x25c1fe,'message':_0x233a8d}),undefined;return _0x18513b['trim']();}function validateNotificationPlaceholders(_0x266e97,_0x233c94,_0x1433f8){const _0x2afd06=a287_0x4050df;for(const _0x7185cd of _0x266e97[_0x2afd06(0x25b)](NOTIFICATION_PLACEHOLDER_PATTERN)){const _0xcbd433=_0x7185cd[0x1]?.[_0x2afd06(0x2bf)]()??'',_0x1f2bc4=_0xcbd433[_0x2afd06(0x257)]('.'),_0x582c46=_0x1f2bc4>=0x0?_0xcbd433[_0x2afd06(0x246)](0x0,_0x1f2bc4):_0xcbd433,_0x2b2559=_0x1f2bc4>=0x0?_0xcbd433[_0x2afd06(0x246)](_0x1f2bc4+0x1)[_0x2afd06(0x2bf)]():'';(![_0x2afd06(0x2a5),'context',_0x2afd06(0x1e5)][_0x2afd06(0x21c)](_0x582c46)||_0x2b2559==='')&&_0x1433f8[_0x2afd06(0x1ed)]({'path':_0x233c94,'message':'Unsupported\x20notification\x20placeholder:\x20'+_0x7185cd[0x0]+'.'});}_0x266e97[_0x2afd06(0x2a7)](NOTIFICATION_PLACEHOLDER_PATTERN,'')[_0x2afd06(0x21c)]('${')&&_0x1433f8['push']({'path':_0x233c94,'message':'Notification\x20text\x20contains\x20a\x20malformed\x20placeholder.'});}function validateEdge(_0x476416,_0x543774,_0x1a8787){const _0x244c89=a287_0x4050df;_0x476416['name']!==undefined&&typeof _0x476416[_0x244c89(0x1ad)]!=='string'&&_0x1a8787['push']({'path':_0x543774+_0x244c89(0x265),'message':'edge\x20name\x20must\x20be\x20a\x20string.'}),_0x476416[_0x244c89(0x1f8)]!==undefined&&typeof _0x476416['defaultFlow']!==_0x244c89(0x22a)&&_0x1a8787[_0x244c89(0x1ed)]({'path':_0x543774+_0x244c89(0x15b),'message':'defaultFlow\x20must\x20be\x20a\x20boolean.'}),_0x476416[_0x244c89(0x2b8)]!==undefined&&(!Array[_0x244c89(0x186)](_0x476416[_0x244c89(0x2b8)])?_0x1a8787[_0x244c89(0x1ed)]({'path':_0x543774+_0x244c89(0x2b7),'message':_0x244c89(0x18c)}):_0x476416[_0x244c89(0x2b8)]['forEach']((_0x38ef33,_0x5f475e)=>{const _0x44682d=_0x244c89;if(!isRecord(_0x38ef33)){_0x1a8787[_0x44682d(0x1ed)]({'path':_0x543774+_0x44682d(0x240)+_0x5f475e+']','message':_0x44682d(0x19a)});return;}for(const _0xcdbae of['x','y']){const _0x1cc917=_0x38ef33[_0xcdbae];(typeof _0x1cc917!==_0x44682d(0x1b5)||!Number['isFinite'](_0x1cc917))&&_0x1a8787['push']({'path':_0x543774+_0x44682d(0x240)+_0x5f475e+'].'+_0xcdbae,'message':_0x44682d(0x2b6)+_0xcdbae+_0x44682d(0x1dd)});}})),_0x476416['conditionType']!==undefined&&!CONDITION_TYPES[_0x244c89(0x1fa)](_0x476416[_0x244c89(0x207)])&&_0x1a8787[_0x244c89(0x1ed)]({'path':_0x543774+'.conditionType','message':_0x244c89(0x18d)+String(_0x476416[_0x244c89(0x207)])+'.'}),_0x476416[_0x244c89(0x207)]===_0x244c89(0x284)&&(typeof _0x476416['expression']!==_0x244c89(0x29a)||_0x476416['expression'][_0x244c89(0x2bf)]()==='')&&_0x1a8787[_0x244c89(0x1ed)]({'path':_0x543774+'.expression','message':_0x244c89(0x276)}),_0x476416[_0x244c89(0x1f8)]===!![]&&_0x476416[_0x244c89(0x207)]!=='ALWAYS'&&_0x1a8787[_0x244c89(0x1ed)]({'path':_0x543774+_0x244c89(0x15b),'message':_0x244c89(0x2b2)}),_0x476416['defaultFlow']===!![]&&typeof _0x476416[_0x244c89(0x1be)]==='string'&&_0x476416[_0x244c89(0x1be)][_0x244c89(0x2bf)]()!==''&&_0x1a8787[_0x244c89(0x1ed)]({'path':_0x543774+_0x244c89(0x290),'message':_0x244c89(0x194)});}function validateGraphShape(_0x4815c7,_0x169d8f,_0x1fc7ba,_0x29a3f6,_0x12eb4d,_0x1dc437,_0x544ed7){const _0x490976=a287_0x4050df;for(const [_0x27ded6,_0x5d3aa8]of _0x4815c7){const _0x1c6652=_0x12eb4d['get'](_0x27ded6)??[],_0x5ab833=_0x29a3f6[_0x490976(0x23e)](_0x27ded6)??[];_0x5d3aa8['type']!=='START'&&_0x1c6652['length']===0x0&&_0x544ed7[_0x490976(0x1ed)]({'path':'flowJson.nodes.'+_0x27ded6,'message':_0x490976(0x280)});_0x5d3aa8[_0x490976(0x1df)]!==_0x490976(0x292)&&_0x5ab833[_0x490976(0x28e)]===0x0&&_0x544ed7[_0x490976(0x1ed)]({'path':'flowJson.nodes.'+_0x27ded6,'message':_0x490976(0x172)});_0x5d3aa8[_0x490976(0x1df)]===_0x490976(0x22e)&&_0x1c6652[_0x490976(0x28e)]>0x0&&_0x544ed7[_0x490976(0x1ed)]({'path':_0x490976(0x221)+_0x27ded6,'message':_0x490976(0x222)});_0x5d3aa8[_0x490976(0x1df)]==='END'&&_0x5ab833[_0x490976(0x28e)]>0x0&&_0x544ed7[_0x490976(0x1ed)]({'path':'flowJson.nodes.'+_0x27ded6,'message':_0x490976(0x1f6)});if(_0x5d3aa8[_0x490976(0x1df)]===_0x490976(0x1bc)){_0x5ab833[_0x490976(0x28e)]<0x2&&_0x544ed7['push']({'path':'flowJson.nodes.'+_0x27ded6,'message':_0x490976(0x16c)});const _0x463ab5=_0x5ab833[_0x490976(0x20b)](_0x2f790f=>_0x2f790f[_0x490976(0x1f8)]===!![]);_0x463ab5[_0x490976(0x28e)]!==0x1&&_0x544ed7[_0x490976(0x1ed)]({'path':_0x490976(0x221)+_0x27ded6,'message':_0x490976(0x1d0)});if(_0x463ab5['length']===0x1){const _0x173d33=_0x463ab5[0x0],_0x177b1a=_0x1dc437[_0x490976(0x23e)](_0x173d33)??_0x490976(0x28c);_0x173d33[_0x490976(0x207)]!=='ALWAYS'&&_0x544ed7[_0x490976(0x1ed)]({'path':_0x177b1a+_0x490976(0x23c),'message':_0x490976(0x25f)});_0x173d33[_0x490976(0x1be)]!==undefined&&_0x544ed7[_0x490976(0x1ed)]({'path':_0x177b1a+'.expression','message':_0x490976(0x169)});for(const _0x244119 of _0x5ab833){if(_0x244119===_0x173d33)continue;const _0x4277ca=_0x1dc437[_0x490976(0x23e)](_0x244119)??'flowJson.edges';if(_0x244119[_0x490976(0x207)]!=='EXPRESSION')_0x544ed7[_0x490976(0x1ed)]({'path':_0x4277ca+_0x490976(0x23c),'message':_0x490976(0x24e)});else(typeof _0x244119[_0x490976(0x1be)]!==_0x490976(0x29a)||_0x244119['expression'][_0x490976(0x2bf)]()==='')&&_0x544ed7['push']({'path':_0x4277ca+_0x490976(0x290),'message':_0x490976(0x1fe)});}}}if(_0x5d3aa8['type']==='APPROVAL'&&(_0x5d3aa8['taskMode']??_0x490976(0x291))===_0x490976(0x184)){if(_0x5ab833[_0x490976(0x28e)]!==0x1)_0x544ed7[_0x490976(0x1ed)]({'path':_0x490976(0x221)+_0x27ded6,'message':_0x490976(0x17b)});else{const _0x4f58ec=_0x5ab833[0x0];((_0x4f58ec[_0x490976(0x207)]??_0x490976(0x20c))!==_0x490976(0x20c)||_0x4f58ec['defaultFlow']===!![]||typeof _0x4f58ec[_0x490976(0x1be)]==='string'&&_0x4f58ec['expression']['trim']()!=='')&&_0x544ed7['push']({'path':_0x1dc437['get'](_0x4f58ec)??_0x490976(0x28c),'message':_0x490976(0x25c)});}}else{if(_0x5d3aa8['type']===_0x490976(0x291)){const _0x2162d1=_0x5ab833['map'](_0x3845e2=>_0x3845e2['conditionType']??'ALWAYS'),_0x3664fa=_0x2162d1['filter'](_0x1e587f=>_0x1e587f!==_0x490976(0x241)&&_0x1e587f!==_0x490976(0x295));_0x3664fa[_0x490976(0x28e)]>0x0&&_0x544ed7['push']({'path':_0x490976(0x221)+_0x27ded6,'message':'APPROVAL\x20node\x20outgoing\x20edges\x20must\x20use\x20APPROVED\x20or\x20REJECTED.'}),_0x2162d1[_0x490976(0x20b)](_0x1de8b5=>_0x1de8b5===_0x490976(0x241))[_0x490976(0x28e)]!==0x1&&_0x544ed7[_0x490976(0x1ed)]({'path':_0x490976(0x221)+_0x27ded6,'message':'APPROVAL\x20node\x20requires\x20exactly\x20one\x20APPROVED\x20outgoing\x20edge.'}),_0x2162d1[_0x490976(0x20b)](_0x52d174=>_0x52d174==='REJECTED')[_0x490976(0x28e)]!==0x1&&_0x544ed7[_0x490976(0x1ed)]({'path':_0x490976(0x221)+_0x27ded6,'message':_0x490976(0x251)}),_0x5ab833[_0x490976(0x174)](_0x12ab41=>_0x12ab41[_0x490976(0x1f8)]===!![])&&_0x544ed7[_0x490976(0x1ed)]({'path':_0x490976(0x221)+_0x27ded6,'message':'APPROVAL\x20task\x20decision\x20edges\x20must\x20not\x20be\x20default\x20flows.'});}}}const _0x2f75c3=new Set(),_0x1b929d=_0xc02850=>{const _0x5766b9=_0x490976;if(_0x2f75c3[_0x5766b9(0x1fa)](_0xc02850))return;_0x2f75c3[_0x5766b9(0x259)](_0xc02850);for(const _0x2ca981 of _0x29a3f6['get'](_0xc02850)??[]){const _0x2555dc=resolveEdgeEndpoint(_0x2ca981[_0x5766b9(0x1b9)],_0x2ca981['targetNodeId']);if(_0x2555dc&&_0x4815c7[_0x5766b9(0x1fa)](_0x2555dc))_0x1b929d(_0x2555dc);}};_0x1b929d(_0x169d8f);for(const _0x1f6c1c of _0x4815c7[_0x490976(0x19f)]()){!_0x2f75c3[_0x490976(0x1fa)](_0x1f6c1c)&&_0x544ed7[_0x490976(0x1ed)]({'path':'flowJson.nodes.'+_0x1f6c1c,'message':_0x490976(0x27e)});}const _0x1eb6f1=_0x1fc7ba[_0x490976(0x174)](_0x4d4512=>_0x2f75c3[_0x490976(0x1fa)](_0x4d4512));if(!_0x1eb6f1){_0x544ed7[_0x490976(0x1ed)]({'path':_0x490976(0x28c),'message':'No\x20END\x20node\x20is\x20reachable\x20from\x20START.'});return;}const _0xd5cafc=new Set(),_0x39c30e=_0x387d7b=>{const _0x3df02a=_0x490976;if(_0xd5cafc['has'](_0x387d7b))return;_0xd5cafc[_0x3df02a(0x259)](_0x387d7b);for(const _0x24e3fc of _0x12eb4d[_0x3df02a(0x23e)](_0x387d7b)??[]){const _0x22ac29=resolveEdgeEndpoint(_0x24e3fc[_0x3df02a(0x20d)],_0x24e3fc[_0x3df02a(0x297)]);if(_0x22ac29&&_0x4815c7['has'](_0x22ac29))_0x39c30e(_0x22ac29);}};for(const _0x36e7fc of _0x1fc7ba){if(_0x4815c7[_0x490976(0x1fa)](_0x36e7fc))_0x39c30e(_0x36e7fc);}for(const _0x287548 of _0x2f75c3){!_0xd5cafc[_0x490976(0x1fa)](_0x287548)&&_0x544ed7[_0x490976(0x1ed)]({'path':_0x490976(0x221)+_0x287548,'message':_0x490976(0x234)});}}function a287_0x4188(_0x6630f0,_0x2ccb55){_0x6630f0=_0x6630f0-0x151;const _0x12ee06=a287_0x12ee();let _0x418809=_0x12ee06[_0x6630f0];return _0x418809;}function validateApprovalResults(_0x3f3d6a,_0x427700,_0x15e474,_0x34d2b3){const _0x417a8e=a287_0x4050df;if(_0x427700===0x0)return;const _0x34ad05=new Set(_0x15e474[_0x417a8e(0x279)](_0x337497=>_0x3f3d6a[_0x417a8e(0x23e)](_0x337497)?.[_0x417a8e(0x202)])[_0x417a8e(0x20b)](_0x2fb3c0=>typeof _0x2fb3c0===_0x417a8e(0x29a)));for(const _0x4e9f06 of['APPROVED',_0x417a8e(0x295)]){!_0x34ad05[_0x417a8e(0x1fa)](_0x4e9f06)&&_0x34d2b3[_0x417a8e(0x1ed)]({'path':_0x417a8e(0x2a9),'message':_0x417a8e(0x1e1)+_0x4e9f06+'.'});}}function validateScriptResultReferences(_0x150673,_0x447548,_0xcba363,_0x1dacd6,_0x44ba20,_0xd2809a,_0xaca381){const _0x4c79bd=a287_0x4050df;if(_0xd2809a['size']===0x0)return;const _0x11aa96=new Set(),_0x5249f9=_0x4be36a=>{const _0x4bdeaa=a287_0x4188;if(!_0x11aa96[_0x4bdeaa(0x1fa)](_0x4be36a)&&_0x150673[_0x4bdeaa(0x1fa)](_0x4be36a)){_0x11aa96['add'](_0x4be36a);for(const _0x1b9f3f of _0xcba363[_0x4bdeaa(0x23e)](_0x4be36a)??[]){const _0x1f9908=resolveEdgeEndpoint(_0x1b9f3f['target'],_0x1b9f3f[_0x4bdeaa(0x156)]);if(_0x1f9908)_0x5249f9(_0x1f9908);}}};_0x5249f9(_0x447548);const _0x1fca99=new Map();for(const _0x18d3d1 of _0x11aa96){_0x1fca99['set'](_0x18d3d1,_0x18d3d1===_0x447548?new Set([_0x447548]):new Set(_0x11aa96));}let _0x4e07ef=!![];while(_0x4e07ef){_0x4e07ef=![];for(const _0x388701 of _0x11aa96){if(_0x388701===_0x447548)continue;const _0x2f3ea5=(_0x1dacd6['get'](_0x388701)??[])[_0x4c79bd(0x279)](_0x26290f=>resolveEdgeEndpoint(_0x26290f[_0x4c79bd(0x20d)],_0x26290f[_0x4c79bd(0x297)]))[_0x4c79bd(0x20b)](_0x3540a3=>Boolean(_0x3540a3&&_0x11aa96['has'](_0x3540a3)));if(_0x2f3ea5[_0x4c79bd(0x28e)]===0x0)continue;const _0xa63a71=new Set(_0x1fca99[_0x4c79bd(0x23e)](_0x2f3ea5[0x0])??[]);for(const _0x10efd4 of _0x2f3ea5[_0x4c79bd(0x246)](0x1)){const _0x150d65=_0x1fca99['get'](_0x10efd4)??new Set();for(const _0x475041 of _0xa63a71){if(!_0x150d65['has'](_0x475041))_0xa63a71[_0x4c79bd(0x206)](_0x475041);}}_0xa63a71[_0x4c79bd(0x259)](_0x388701);const _0x58239e=_0x1fca99['get'](_0x388701);!setsEqual(_0x58239e,_0xa63a71)&&(_0x1fca99['set'](_0x388701,_0xa63a71),_0x4e07ef=!![]);}}for(const [_0x55da67,_0x5f3703]of _0xcba363){const _0x29456a=_0x1fca99[_0x4c79bd(0x23e)](_0x55da67);if(!_0x29456a)continue;for(const _0x265818 of _0x5f3703){if(_0x265818[_0x4c79bd(0x207)]!==_0x4c79bd(0x284)||typeof _0x265818[_0x4c79bd(0x1be)]!==_0x4c79bd(0x29a))continue;for(const [_0x21b277,_0x36ef61]of _0xd2809a){expressionReferencesVariable(_0x265818[_0x4c79bd(0x1be)],_0x21b277)&&!_0x29456a[_0x4c79bd(0x1fa)](_0x36ef61)&&_0xaca381['push']({'path':(_0x44ba20[_0x4c79bd(0x23e)](_0x265818)??'flowJson.edges')+_0x4c79bd(0x290),'message':'Expression\x20references\x20SCRIPT\x20resultVariable\x20'+_0x21b277+_0x4c79bd(0x163)+_0x36ef61+_0x4c79bd(0x25d)+_0x55da67+'.'});}}}}function expressionReferencesVariable(_0x2ea3cb,_0x157426){const _0x12bf90=a287_0x4050df;let _0x59cee7=0x0;while(_0x59cee7<_0x2ea3cb[_0x12bf90(0x28e)]){const _0xa8b0af=_0x2ea3cb[_0x59cee7];if(_0xa8b0af==='\x27'||_0xa8b0af==='\x22'){_0x59cee7=skipQuotedExpressionSegment(_0x2ea3cb,_0x59cee7,_0xa8b0af);continue;}if(!/[A-Za-z_]/[_0x12bf90(0x1aa)](_0xa8b0af)){_0x59cee7+=0x1;continue;}const _0x1f59b3=_0x59cee7;_0x59cee7+=0x1;while(_0x59cee7<_0x2ea3cb[_0x12bf90(0x28e)]&&/[A-Za-z0-9_]/['test'](_0x2ea3cb[_0x59cee7])){_0x59cee7+=0x1;}if(_0x2ea3cb[_0x12bf90(0x246)](_0x1f59b3,_0x59cee7)!==_0x157426)continue;let _0x482337=_0x1f59b3-0x1;while(_0x482337>=0x0&&/\s/[_0x12bf90(0x1aa)](_0x2ea3cb[_0x482337])){_0x482337-=0x1;}if(_0x2ea3cb[_0x482337]!=='.')return!![];}return![];}function skipQuotedExpressionSegment(_0x253765,_0x2a38ca,_0x28b489){const _0x3c7704=a287_0x4050df;let _0x43bc59=_0x2a38ca+0x1;while(_0x43bc59<_0x253765[_0x3c7704(0x28e)]){if(_0x253765[_0x43bc59]==='\x5c'){_0x43bc59+=0x2;continue;}if(_0x253765[_0x43bc59]===_0x28b489)return _0x43bc59+0x1;_0x43bc59+=0x1;}return _0x43bc59;}function resolveEffectiveResultVariable(_0x1d9139,_0x37d40e){const _0x180f96=a287_0x4050df;if(_0x1d9139===undefined||_0x1d9139===null||_0x37d40e&&_0x1d9139==='')return DEFAULT_SCRIPT_RESULT_VARIABLE;if(typeof _0x1d9139!=='string'||!VARIABLE_PATTERN['test'](_0x1d9139)||RESERVED_RESULT_VARIABLES['has'](_0x1d9139)||_0x1d9139[_0x180f96(0x24a)](_0x180f96(0x220)))return undefined;return _0x1d9139;}function registerResultVariableOwner(_0x215393,_0x23f4f7,_0x38829d,_0x10796d){const _0x4d5856=a287_0x4050df;if(_0x215393[_0x4d5856(0x1fa)](_0x23f4f7)){_0x10796d[_0x4d5856(0x1ed)]({'path':'flowJson.nodes','message':_0x4d5856(0x1d9)+_0x23f4f7+'.'});return;}_0x215393[_0x4d5856(0x16d)](_0x23f4f7,_0x38829d);}function setsEqual(_0x45611c,_0x16b6cd){const _0x90230f=a287_0x4050df;return _0x45611c[_0x90230f(0x1d5)]===_0x16b6cd['size']&&[..._0x45611c][_0x90230f(0x1f3)](_0x19f233=>_0x16b6cd[_0x90230f(0x1fa)](_0x19f233));}function isValidUserId(_0x5872eb){const _0x3268c1=a287_0x4050df;if(typeof _0x5872eb===_0x3268c1(0x29a))return _0x5872eb[_0x3268c1(0x2bf)]()[_0x3268c1(0x28e)]>0x0;return Number[_0x3268c1(0x1ca)](_0x5872eb)&&Number(_0x5872eb)>0x0;}function resolveEdgeEndpoint(_0x4c3c15,_0x5a1bf7){const _0x48a015=a287_0x4050df;if(typeof _0x4c3c15===_0x48a015(0x29a)&&_0x4c3c15[_0x48a015(0x2bf)]())return _0x4c3c15[_0x48a015(0x2bf)]();if(typeof _0x5a1bf7===_0x48a015(0x29a)&&_0x5a1bf7['trim']())return _0x5a1bf7[_0x48a015(0x2bf)]();return undefined;}function removeEmptyMetadata(_0x53a3dc,_0x4cd14c,_0x13f8db,_0x539c13){const _0x5e067e=a287_0x4050df;if(Array[_0x5e067e(0x186)](_0x53a3dc)){_0x53a3dc['forEach']((_0x36e8ad,_0x53a866)=>removeEmptyMetadata(_0x36e8ad,_0x4cd14c+'['+_0x53a866+']',_0x13f8db,_0x539c13));return;}if(!isRecord(_0x53a3dc))return;for(const [_0x22f9a2,_0x25b5da]of Object[_0x5e067e(0x29e)](_0x53a3dc)){const _0x1d9d10=_0x4cd14c+'.'+_0x22f9a2;if(_0x22f9a2==='metadata'&&isEmptyJsonValue(_0x25b5da)){delete _0x53a3dc[_0x22f9a2],_0x539c13[_0x5e067e(0x1ed)](_0x1d9d10),_0x13f8db[_0x5e067e(0x1ed)]({'code':_0x5e067e(0x1db),'path':_0x1d9d10,'message':_0x1d9d10+'\x20was\x20empty\x20and\x20was\x20removed.'});continue;}removeEmptyMetadata(_0x25b5da,_0x1d9d10,_0x13f8db,_0x539c13);}}function isEmptyJsonValue(_0x5eee06){const _0x18cbbc=a287_0x4050df;if(_0x5eee06===null||_0x5eee06===undefined)return!![];if(typeof _0x5eee06===_0x18cbbc(0x29a))return _0x5eee06[_0x18cbbc(0x2bf)]()==='';if(Array[_0x18cbbc(0x186)](_0x5eee06))return _0x5eee06[_0x18cbbc(0x28e)]===0x0;return isRecord(_0x5eee06)&&Object[_0x18cbbc(0x19f)](_0x5eee06)[_0x18cbbc(0x28e)]===0x0;}function isRecord(_0xabc3bf){return typeof _0xabc3bf==='object'&&_0xabc3bf!==null&&!Array['isArray'](_0xabc3bf);}function cloneJsonValue(_0x469336){const _0x40c970=a287_0x4050df;return JSON[_0x40c970(0x230)](JSON[_0x40c970(0x154)](_0x469336));}export async function readFlowConfigFile(_0x4a7360){const _0x4373e5=a287_0x4050df,_0x2755b0=await readFile(resolve(_0x4a7360),_0x4373e5(0x19c));return JSON[_0x4373e5(0x230)](_0x2755b0);}
1
+ const a287_0x5e5514=a287_0x3fc4;(function(_0x5c0732,_0x282727){const _0x200328=a287_0x3fc4,_0x55ed27=_0x5c0732();while(!![]){try{const _0x531f92=parseInt(_0x200328(0x1ca))/0x1*(parseInt(_0x200328(0x1d8))/0x2)+-parseInt(_0x200328(0x1ac))/0x3+-parseInt(_0x200328(0x14b))/0x4*(parseInt(_0x200328(0x270))/0x5)+-parseInt(_0x200328(0x1b2))/0x6+-parseInt(_0x200328(0x1af))/0x7+parseInt(_0x200328(0x13e))/0x8*(-parseInt(_0x200328(0x286))/0x9)+parseInt(_0x200328(0x16b))/0xa*(parseInt(_0x200328(0x1aa))/0xb);if(_0x531f92===_0x282727)break;else _0x55ed27['push'](_0x55ed27['shift']());}catch(_0x272000){_0x55ed27['push'](_0x55ed27['shift']());}}}(a287_0x240c,0x61bbf));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':a287_0x5e5514(0x2b0),'$id':a287_0x5e5514(0x140),'title':a287_0x5e5514(0x1a1),'type':'object','required':[a287_0x5e5514(0x284),'flowType',a287_0x5e5514(0x189)],'$defs':{'userId':{'anyOf':[{'type':a287_0x5e5514(0x239),'minLength':0x1},{'type':a287_0x5e5514(0x26a),'minimum':0x1}]},'position':{'type':a287_0x5e5514(0x267),'required':['x','y'],'properties':{'x':{'type':a287_0x5e5514(0x1b5),'minimum':0x0},'y':{'type':a287_0x5e5514(0x1b5),'minimum':0x0}},'additionalProperties':!![]},'timeAmount':{'type':a287_0x5e5514(0x267),'required':[a287_0x5e5514(0x249),a287_0x5e5514(0x266)],'properties':{'value':{'type':a287_0x5e5514(0x26a),'minimum':0x1},'unit':{'enum':[a287_0x5e5514(0x289),a287_0x5e5514(0x1d2),a287_0x5e5514(0x20c),a287_0x5e5514(0x19c)]}},'additionalProperties':!![]},'flowNode':{'type':'object','required':['id','type',a287_0x5e5514(0x1fd),a287_0x5e5514(0x293)],'properties':{'id':{'type':a287_0x5e5514(0x239),'pattern':a287_0x5e5514(0x18b)},'type':{'enum':['START',a287_0x5e5514(0x243),a287_0x5e5514(0x22c),a287_0x5e5514(0x187),a287_0x5e5514(0x152),'NOTIFICATION']},'name':{'type':'string','minLength':0x1},'path':{'type':a287_0x5e5514(0x239),'minLength':0x1},'position':{'$ref':a287_0x5e5514(0x15a)},'approvalMode':{'enum':[a287_0x5e5514(0x279),a287_0x5e5514(0x17d),a287_0x5e5514(0x248)]},'taskMode':{'enum':[a287_0x5e5514(0x22c),a287_0x5e5514(0x1d0)]},'assignee':{'type':'object','required':[a287_0x5e5514(0x1e7)],'properties':{'strategy':{'enum':['FIXED',a287_0x5e5514(0x188)]},'userIds':{'type':'array','minItems':0x1,'items':{'$ref':'#/$defs/userId'}},'roleId':{'anyOf':[{'type':a287_0x5e5514(0x26a),'minimum':0x1},{'type':a287_0x5e5514(0x239),'pattern':a287_0x5e5514(0x28b)}]}},'additionalProperties':!![]},'transferCandidates':{'type':'object','required':[a287_0x5e5514(0x1e7),a287_0x5e5514(0x155)],'properties':{'strategy':{'const':a287_0x5e5514(0x141)},'userIds':{'type':a287_0x5e5514(0x1dc),'minItems':0x1,'items':{'$ref':a287_0x5e5514(0x1a6)}}},'additionalProperties':!![]},'sequential':{'type':'boolean'},'result':{'enum':[a287_0x5e5514(0x29f),'REJECTED']},'scriptName':{'type':a287_0x5e5514(0x239),'minLength':0x1},'resultVariable':{'type':a287_0x5e5514(0x239),'pattern':'^[A-Za-z_][A-Za-z0-9_]*$'},'async':{'type':a287_0x5e5514(0x267),'properties':{'enabled':{'type':a287_0x5e5514(0x27a)},'retryCount':{'type':a287_0x5e5514(0x26a),'minimum':0x1,'maximum':0xa},'retryInterval':{'$ref':a287_0x5e5514(0x13c)}},'additionalProperties':!![]},'timeout':{'type':a287_0x5e5514(0x267),'properties':{'enabled':{'type':a287_0x5e5514(0x27a)},'duration':{'$ref':a287_0x5e5514(0x13c)},'action':{'enum':[a287_0x5e5514(0x280),a287_0x5e5514(0x175),a287_0x5e5514(0x261)]},'interrupting':{'type':'boolean'},'scriptName':{'type':'string','minLength':0x1},'resultVariable':{'type':a287_0x5e5514(0x239),'pattern':a287_0x5e5514(0x18b)}},'additionalProperties':!![]},'cc':{'type':a287_0x5e5514(0x267),'required':[a287_0x5e5514(0x14f)],'properties':{'recipientUserIds':{'type':a287_0x5e5514(0x1dc),'minItems':0x1,'maxItems':0x64,'uniqueItems':!![],'items':{'type':a287_0x5e5514(0x239),'minLength':0x1}},'visible':{'type':a287_0x5e5514(0x1dc),'uniqueItems':!![],'items':{'type':'string','minLength':0x1}},'readSources':![]},'additionalProperties':!![]},'config':{'type':a287_0x5e5514(0x267),'required':['configCode','template'],'properties':{'version':{'enum':['v1']},'configCode':{'type':a287_0x5e5514(0x239),'minLength':0x1},'failurePolicy':{'enum':[a287_0x5e5514(0x165),a287_0x5e5514(0x1f4)]},'template':{'type':a287_0x5e5514(0x267),'required':['title','summary'],'properties':{'title':{'type':a287_0x5e5514(0x239),'minLength':0x1},'summary':{'type':'string','minLength':0x1},'detailMarkdown':{'type':a287_0x5e5514(0x239)},'facts':{'type':a287_0x5e5514(0x1dc),'maxItems':0x8,'items':{'type':'object','required':['label','value'],'properties':{'label':{'type':'string','minLength':0x1},'value':{'type':'string','minLength':0x1}},'additionalProperties':!![]}},'actions':{'type':a287_0x5e5514(0x1dc),'maxItems':0x2,'items':{'type':'object','required':[a287_0x5e5514(0x265),a287_0x5e5514(0x1f7)],'properties':{'text':{'type':a287_0x5e5514(0x239),'minLength':0x1},'url':{'type':'string','minLength':0x1}},'additionalProperties':!![]}}},'additionalProperties':!![]},'recipients':{'type':'array','items':{'type':'object','required':['type','value'],'properties':{'type':{'enum':[a287_0x5e5514(0x29d),a287_0x5e5514(0x188),a287_0x5e5514(0x246)]},'value':{'type':'string','minLength':0x1},'role':{'enum':['TO','CC','BCC']}},'additionalProperties':!![]}}},'additionalProperties':!![]},'form':![],'formPermission':![]},'additionalProperties':!![]},'flowEdge':{'type':'object','properties':{'id':{'type':a287_0x5e5514(0x239),'pattern':a287_0x5e5514(0x18b)},'source':{'type':a287_0x5e5514(0x239),'minLength':0x1},'target':{'type':'string','minLength':0x1},'sourceNodeId':{'type':a287_0x5e5514(0x239),'minLength':0x1},'targetNodeId':{'type':a287_0x5e5514(0x239),'minLength':0x1},'conditionType':{'enum':[a287_0x5e5514(0x212),a287_0x5e5514(0x29f),a287_0x5e5514(0x206),a287_0x5e5514(0x1a9)]},'expression':{'type':a287_0x5e5514(0x239)},'defaultFlow':{'type':a287_0x5e5514(0x27a)},'name':{'type':'string'},'waypoints':{'type':a287_0x5e5514(0x1dc),'items':{'$ref':a287_0x5e5514(0x15a)}}},'allOf':[{'anyOf':[{'required':[a287_0x5e5514(0x26c)]},{'required':[a287_0x5e5514(0x1d4)]}]},{'anyOf':[{'required':['target']},{'required':[a287_0x5e5514(0x1b9)]}]}],'additionalProperties':!![]}},'properties':{'id':![],'appCode':![],'flowName':{'type':'string','minLength':0x1},'flowDesc':{'type':a287_0x5e5514(0x239)},'flowType':{'enum':[a287_0x5e5514(0x1da),a287_0x5e5514(0x2ad)]},'datasetCode':{'type':a287_0x5e5514(0x239),'minLength':0x1},'pageId':{'type':'integer'},'templateName':![],'flowJson':{'type':a287_0x5e5514(0x267),'required':['nodes',a287_0x5e5514(0x14c)],'properties':{'flowKey':![],'flowCode':![],'flowName':![],'bindDatasetCode':![],'datasetCode':![],'appCode':![],'pageId':![],'templateName':![],'schemaVersion':{'type':'string','const':'approval.simple-flow.v1','description':a287_0x5e5514(0x23b)},'formSchema':![],'formDefinitions':![],'formPermissions':![],'pageMode':{'const':a287_0x5e5514(0x164)},'startPageId':![],'startPath':{'type':'string','minLength':0x1},'nodes':{'type':a287_0x5e5514(0x1dc),'minItems':0x1,'items':{'$ref':a287_0x5e5514(0x154)}},'edges':{'type':a287_0x5e5514(0x1dc),'minItems':0x1,'items':{'$ref':a287_0x5e5514(0x1ad)}}},'additionalProperties':!![]}},'additionalProperties':!![]};const REMOVED_FLOW_JSON_FIELDS=[a287_0x5e5514(0x1e9),'flowCode','flowName',a287_0x5e5514(0x1a3),a287_0x5e5514(0x2af),a287_0x5e5514(0x1c9),'pageId',a287_0x5e5514(0x28a)],REMOVED_ROOT_FIELDS=['id',a287_0x5e5514(0x1c9),'templateName'],DEFAULT_FLOW_SCHEMA_VERSION=a287_0x5e5514(0x151),NODE_TYPES=new Set([a287_0x5e5514(0x23e),a287_0x5e5514(0x243),a287_0x5e5514(0x22c),a287_0x5e5514(0x187),a287_0x5e5514(0x152),'NOTIFICATION']),CONDITION_TYPES=new Set([a287_0x5e5514(0x212),'APPROVED','REJECTED',a287_0x5e5514(0x1a9)]),APPROVAL_MODES=new Set([a287_0x5e5514(0x279),'ALL',a287_0x5e5514(0x248)]),APPROVAL_TASK_MODES=new Set([a287_0x5e5514(0x22c),a287_0x5e5514(0x1d0)]),FLOW_TIME_UNITS=new Set([a287_0x5e5514(0x289),'MINUTES',a287_0x5e5514(0x20c),'DAYS']),APPROVAL_TIMEOUT_ACTIONS=new Set([a287_0x5e5514(0x280),a287_0x5e5514(0x175),a287_0x5e5514(0x261)]),FLOW_TYPES=new Set([a287_0x5e5514(0x1da),a287_0x5e5514(0x2ad)]),FLOW_PAGE_MODES=new Set(['CUSTOM_PAGE',a287_0x5e5514(0x2a4)]),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([a287_0x5e5514(0x165),a287_0x5e5514(0x1f4)]),NOTIFICATION_RECIPIENT_TYPES=new Set([a287_0x5e5514(0x29d),a287_0x5e5514(0x188),a287_0x5e5514(0x246)]),NOTIFICATION_RECIPIENT_ROLES=new Set(['TO','CC',a287_0x5e5514(0x287)]),MAX_NOTIFICATION_FACTS=0x8,MAX_NOTIFICATION_ACTIONS=0x2,MAX_ASYNC_RETRY_COUNT=0xa,MAX_CC_RECIPIENTS=0x64,DEFAULT_SCRIPT_RESULT_VARIABLE=a287_0x5e5514(0x143),UNSUPPORTED_FORM_MESSAGE=a287_0x5e5514(0x214),UNSUPPORTED_PLATFORM_FORM_MESSAGE=a287_0x5e5514(0x159),RESERVED_RESULT_VARIABLES=new Set(['formData',a287_0x5e5514(0x292),a287_0x5e5514(0x18c),a287_0x5e5514(0x217),a287_0x5e5514(0x163),a287_0x5e5514(0x1f0),'approval_sys_datasetCode','approval_sys_pageId',a287_0x5e5514(0x297),a287_0x5e5514(0x1fa)]);export function normalizeFlowConfig(_0x51d853){const _0xb87f4f=a287_0x5e5514;if(!isRecord(_0x51d853))throw new TypeError(_0xb87f4f(0x213));const _0x3da2dc=cloneJsonValue(_0x51d853),_0x3472de=_0x3da2dc[_0xb87f4f(0x189)],_0x2019a5=isRecord(_0x3472de)?cloneJsonValue(_0x3472de):{},_0x368f1b=[],_0x392828=[];for(const _0x31206a of REMOVED_ROOT_FIELDS){if(!Object[_0xb87f4f(0x15e)][_0xb87f4f(0x264)][_0xb87f4f(0x156)](_0x3da2dc,_0x31206a))continue;delete _0x3da2dc[_0x31206a],_0x392828[_0xb87f4f(0x193)](_0x31206a),_0x368f1b[_0xb87f4f(0x193)]({'code':_0xb87f4f(0x197),'path':_0x31206a,'message':_0x31206a+_0xb87f4f(0x257)});}for(const _0x3a2c40 of REMOVED_FLOW_JSON_FIELDS){if(!Object['prototype'][_0xb87f4f(0x264)][_0xb87f4f(0x156)](_0x2019a5,_0x3a2c40))continue;const _0x5d13bc=_0xb87f4f(0x176)+_0x3a2c40;delete _0x2019a5[_0x3a2c40],_0x392828[_0xb87f4f(0x193)](_0x5d13bc),_0x368f1b[_0xb87f4f(0x193)]({'code':_0xb87f4f(0x197),'path':_0x5d13bc,'message':_0x5d13bc+_0xb87f4f(0x257)});}if(Object[_0xb87f4f(0x15e)]['hasOwnProperty'][_0xb87f4f(0x156)](_0x2019a5,_0xb87f4f(0x169))){const _0x490825=_0x2019a5['schemaVersion'],_0x2e0d5a=typeof _0x490825===_0xb87f4f(0x239)?_0x490825['trim']():_0x490825;if(isEmptyJsonValue(_0x490825)||_0x2e0d5a===DEFAULT_FLOW_SCHEMA_VERSION){const _0x468218=_0xb87f4f(0x242);delete _0x2019a5[_0xb87f4f(0x169)],_0x392828['push'](_0x468218),_0x368f1b['push']({'code':_0xb87f4f(0x197),'path':_0x468218,'message':_0x468218+_0xb87f4f(0x18e)+DEFAULT_FLOW_SCHEMA_VERSION+_0xb87f4f(0x1c0)});}}removeEmptyMetadata(_0x2019a5,_0xb87f4f(0x189),_0x368f1b,_0x392828);_0x3da2dc[_0xb87f4f(0x21f)]==='INDEPENDENT_FLOW'&&!Object[_0xb87f4f(0x15e)][_0xb87f4f(0x264)][_0xb87f4f(0x156)](_0x2019a5,_0xb87f4f(0x227))&&(_0x2019a5[_0xb87f4f(0x227)]=_0xb87f4f(0x164));_0x3da2dc['flowJson']=_0x2019a5;if(typeof _0x3da2dc[_0xb87f4f(0x284)]===_0xb87f4f(0x239))_0x3da2dc[_0xb87f4f(0x284)]=_0x3da2dc[_0xb87f4f(0x284)][_0xb87f4f(0x2aa)]();return{'config':_0x3da2dc,'warnings':_0x368f1b,'removedPaths':_0x392828};}export function validateFlowConfig(_0xde2b59){const _0xde3738=a287_0x5e5514;let _0x1b201f;try{_0x1b201f=normalizeFlowConfig(_0xde2b59);}catch(_0x33cbfc){const _0x58e279=_0x33cbfc instanceof Error?_0x33cbfc[_0xde3738(0x19d)]:String(_0x33cbfc),_0x30f146={'flowJson':{}};return{'valid':![],'errors':[{'path':'$','message':_0x58e279}],'warnings':[],'normalized':_0x30f146,'validationConfig':_0x30f146};}const _0x2cf4e3=_0x1b201f[_0xde3738(0x2a3)],_0x3136b3=cloneJsonValue(_0x2cf4e3),_0xb9ee5e=_0x3136b3[_0xde3738(0x189)];_0xb9ee5e[_0xde3738(0x1e9)]=_0xde3738(0x22e),_0xb9ee5e[_0xde3738(0x284)]=_0x2cf4e3['flowName'];typeof _0x2cf4e3['datasetCode']===_0xde3738(0x239)&&_0x2cf4e3['datasetCode'][_0xde3738(0x2aa)]()&&(_0xb9ee5e[_0xde3738(0x1a3)]=_0x2cf4e3[_0xde3738(0x2af)][_0xde3738(0x2aa)]());const _0x386f6d=[];return validateOuterMetadata(_0x2cf4e3,_0x386f6d),validateFlowClassification(_0x2cf4e3,_0x386f6d),validateGraph(_0x2cf4e3[_0xde3738(0x189)],_0x386f6d),{'valid':_0x386f6d['length']===0x0,'errors':_0x386f6d,'warnings':_0x1b201f[_0xde3738(0x232)],'normalized':_0x2cf4e3,'validationConfig':_0x3136b3};}function validateFlowClassification(_0x594ba3,_0x560f2c){const _0x41e67d=a287_0x5e5514;if(!isRecord(_0x594ba3[_0x41e67d(0x189)]))return;const _0x155020=_0x594ba3[_0x41e67d(0x21f)],_0x5177b2=_0x594ba3[_0x41e67d(0x189)]['pageMode'];_0x5177b2!==undefined&&(typeof _0x5177b2!==_0x41e67d(0x239)||!FLOW_PAGE_MODES[_0x41e67d(0x1d3)](_0x5177b2))&&_0x560f2c[_0x41e67d(0x193)]({'path':_0x41e67d(0x158),'message':_0x41e67d(0x203)+String(_0x5177b2)+'.'});_0x155020===_0x41e67d(0x1da)&&_0x5177b2!==undefined&&_0x560f2c[_0x41e67d(0x193)]({'path':_0x41e67d(0x158),'message':_0x41e67d(0x294)});_0x155020==='INDEPENDENT_FLOW'&&_0x5177b2===_0x41e67d(0x2a4)&&_0x560f2c[_0x41e67d(0x193)]({'path':_0x41e67d(0x158),'message':UNSUPPORTED_PLATFORM_FORM_MESSAGE});(_0x155020===_0x41e67d(0x1da)||_0x155020===_0x41e67d(0x2ad))&&validateCustomPageNavigation(_0x594ba3,_0x155020,_0x5177b2,_0x560f2c);if(_0x155020!==_0x41e67d(0x1da)||!Array[_0x41e67d(0x19a)](_0x594ba3[_0x41e67d(0x189)]['nodes']))return;_0x594ba3[_0x41e67d(0x189)]['nodes'][_0x41e67d(0x275)]((_0x1edd7,_0x177533)=>{const _0x40f32b=_0x41e67d;isRecord(_0x1edd7)&&_0x1edd7[_0x40f32b(0x199)]===_0x40f32b(0x22c)&&_0x1edd7['taskMode']===_0x40f32b(0x1d0)&&_0x560f2c[_0x40f32b(0x193)]({'path':_0x40f32b(0x1f5)+_0x177533+_0x40f32b(0x1f3),'message':_0x40f32b(0x25f)});});}function validateCustomPageNavigation(_0x4c6487,_0x43212c,_0x5e9f7e,_0xb01db8){const _0x18a4d5=a287_0x5e5514,_0x17cdd0=_0x4c6487[_0x18a4d5(0x189)][_0x18a4d5(0x222)];_0x17cdd0!==undefined&&_0xb01db8[_0x18a4d5(0x193)]({'path':_0x18a4d5(0x23c),'message':_0x18a4d5(0x256)});const _0x167869=_0x4c6487[_0x18a4d5(0x189)]['startPath'];_0x167869!==undefined&&(typeof _0x167869!=='string'||_0x167869['trim']()==='')&&_0xb01db8[_0x18a4d5(0x193)]({'path':'flowJson.startPath','message':'startPath\x20must\x20be\x20a\x20non-empty\x20string.'});const _0x50eaf9=Array['isArray'](_0x4c6487['flowJson'][_0x18a4d5(0x16d)])?_0x4c6487['flowJson'][_0x18a4d5(0x16d)][_0x18a4d5(0x26f)]((_0x5bbd54,_0x499373)=>({'node':_0x5bbd54,'index':_0x499373}))[_0x18a4d5(0x24f)](({node:_0x1fbf68})=>isRecord(_0x1fbf68)&&_0x1fbf68['path']!==undefined):[],_0x25183f=_0x167869!==undefined||_0x50eaf9[_0x18a4d5(0x196)]>0x0,_0x4f0c99=_0x5e9f7e===undefined&&_0x43212c===_0x18a4d5(0x2ad)?'CUSTOM_PAGE':_0x5e9f7e;_0x25183f&&(_0x43212c!==_0x18a4d5(0x2ad)||_0x4f0c99!==_0x18a4d5(0x164))&&(_0x167869!==undefined&&_0xb01db8['push']({'path':_0x18a4d5(0x22b),'message':_0x18a4d5(0x2a8)}),_0x50eaf9[_0x18a4d5(0x275)](({index:_0x118fd6})=>{const _0x1ca52f=_0x18a4d5;_0xb01db8['push']({'path':_0x1ca52f(0x1f5)+_0x118fd6+_0x1ca52f(0x145),'message':'node\x20path\x20applies\x20only\x20to\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.'});}));}export async function writeNormalizedFlowConfig(_0x48dacd,_0x1c72c7,_0x156fc9={}){const _0x670a8c=a287_0x5e5514,_0x517326=resolve(_0x48dacd),_0x3a9bb9=_0x517326+'.'+process[_0x670a8c(0x1b0)]+'.'+randomUUID()+_0x670a8c(0x24c),_0x4743c7=JSON['stringify'](_0x1c72c7,null,0x2)+'\x0a';let _0x1cb354;try{try{_0x1cb354=(await stat(_0x517326))[_0x670a8c(0x13f)]&0x1ff;}catch{_0x1cb354=undefined;}await writeFile(_0x3a9bb9,_0x4743c7,{'encoding':_0x670a8c(0x1a7),'flag':'wx','mode':_0x1cb354??0x1a4});if(_0x1cb354!==undefined)await chmod(_0x3a9bb9,_0x1cb354);_0x156fc9[_0x670a8c(0x277)]===![]?(await link(_0x3a9bb9,_0x517326),await unlink(_0x3a9bb9)):await rename(_0x3a9bb9,_0x517326);}finally{await unlink(_0x3a9bb9)[_0x670a8c(0x1c3)](()=>undefined);}}function validateOuterMetadata(_0xdb1fde,_0x40ca54){const _0x34f0b6=a287_0x5e5514;(typeof _0xdb1fde['flowName']!==_0x34f0b6(0x239)||_0xdb1fde[_0x34f0b6(0x284)][_0x34f0b6(0x2aa)]()==='')&&_0x40ca54[_0x34f0b6(0x193)]({'path':_0x34f0b6(0x284),'message':_0x34f0b6(0x228)});_0xdb1fde[_0x34f0b6(0x19e)]!==undefined&&typeof _0xdb1fde[_0x34f0b6(0x19e)]!==_0x34f0b6(0x239)&&_0x40ca54[_0x34f0b6(0x193)]({'path':_0x34f0b6(0x19e),'message':_0x34f0b6(0x259)});if(_0xdb1fde[_0x34f0b6(0x21f)]===undefined||_0xdb1fde[_0x34f0b6(0x21f)]===null)_0x40ca54[_0x34f0b6(0x193)]({'path':_0x34f0b6(0x21f),'message':_0x34f0b6(0x223)});else(typeof _0xdb1fde['flowType']!==_0x34f0b6(0x239)||!FLOW_TYPES[_0x34f0b6(0x1d3)](_0xdb1fde[_0x34f0b6(0x21f)]))&&_0x40ca54[_0x34f0b6(0x193)]({'path':'flowType','message':_0x34f0b6(0x27e)+String(_0xdb1fde[_0x34f0b6(0x21f)])+'.'});_0xdb1fde[_0x34f0b6(0x2af)]!==undefined&&typeof _0xdb1fde['datasetCode']!==_0x34f0b6(0x239)&&_0x40ca54[_0x34f0b6(0x193)]({'path':_0x34f0b6(0x2af),'message':_0x34f0b6(0x178)}),_0xdb1fde[_0x34f0b6(0x25d)]!==undefined&&(!Number[_0x34f0b6(0x278)](_0xdb1fde[_0x34f0b6(0x25d)])||_0xdb1fde[_0x34f0b6(0x25d)]<0x0)&&_0x40ca54['push']({'path':_0x34f0b6(0x25d),'message':_0x34f0b6(0x153)}),_0xdb1fde[_0x34f0b6(0x21f)]==='INDEPENDENT_FLOW'&&_0xdb1fde[_0x34f0b6(0x2af)]!==undefined&&_0x40ca54[_0x34f0b6(0x193)]({'path':_0x34f0b6(0x2af),'message':_0x34f0b6(0x26e)}),_0xdb1fde['flowType']===_0x34f0b6(0x2ad)&&_0xdb1fde[_0x34f0b6(0x25d)]!==undefined&&_0x40ca54[_0x34f0b6(0x193)]({'path':_0x34f0b6(0x25d),'message':_0x34f0b6(0x195)});}function validateGraph(_0x2fdd09,_0x26f258){const _0x23f377=a287_0x5e5514;if(!isRecord(_0x2fdd09)){_0x26f258['push']({'path':'flowJson','message':_0x23f377(0x20a)});return;}!Array[_0x23f377(0x19a)](_0x2fdd09[_0x23f377(0x16d)])&&_0x26f258[_0x23f377(0x193)]({'path':_0x23f377(0x1a8),'message':_0x23f377(0x24a)});!Array[_0x23f377(0x19a)](_0x2fdd09['edges'])&&_0x26f258[_0x23f377(0x193)]({'path':_0x23f377(0x1db),'message':_0x23f377(0x15f)});Object[_0x23f377(0x15e)][_0x23f377(0x264)][_0x23f377(0x156)](_0x2fdd09,_0x23f377(0x169))&&_0x26f258[_0x23f377(0x193)]({'path':_0x23f377(0x242),'message':_0x23f377(0x245)+String(_0x2fdd09['schemaVersion'])+'.\x20This\x20CLI\x20supports\x20only\x20'+DEFAULT_FLOW_SCHEMA_VERSION+'.'});for(const _0x355dcf of[_0x23f377(0x20e),_0x23f377(0x263),_0x23f377(0x21a)]){Object['prototype'][_0x23f377(0x264)][_0x23f377(0x156)](_0x2fdd09,_0x355dcf)&&_0x26f258[_0x23f377(0x193)]({'path':_0x23f377(0x176)+_0x355dcf,'message':UNSUPPORTED_FORM_MESSAGE});}if(!Array[_0x23f377(0x19a)](_0x2fdd09[_0x23f377(0x16d)])||!Array[_0x23f377(0x19a)](_0x2fdd09[_0x23f377(0x14c)]))return;const _0x1fb40b=new Map(),_0x4f3fe1=[],_0x2f2414=[],_0x363818=new Map(),_0x2fbfee=new Map(),_0x4248c4=new Set();let _0x98e59=0x0;_0x2fdd09[_0x23f377(0x16d)][_0x23f377(0x275)]((_0x367e01,_0x1729e4)=>{const _0x4de80a=_0x23f377,_0x46b5bc='flowJson.nodes['+_0x1729e4+']';if(!isRecord(_0x367e01)){_0x26f258['push']({'path':_0x46b5bc,'message':_0x4de80a(0x27b)});return;}const _0x5915df=_0x367e01;if(typeof _0x5915df['id']!==_0x4de80a(0x239)||!BPMN_ID_PATTERN[_0x4de80a(0x1e3)](_0x5915df['id']))_0x26f258[_0x4de80a(0x193)]({'path':_0x46b5bc+_0x4de80a(0x1d1),'message':_0x4de80a(0x268)});else _0x1fb40b[_0x4de80a(0x1d3)](_0x5915df['id'])?_0x26f258['push']({'path':_0x46b5bc+_0x4de80a(0x1d1),'message':_0x4de80a(0x190)+_0x5915df['id']+'.'}):(_0x1fb40b[_0x4de80a(0x194)](_0x5915df['id'],_0x5915df),_0x4248c4[_0x4de80a(0x1f2)](_0x5915df['id']));if(!NODE_TYPES[_0x4de80a(0x1d3)](_0x5915df[_0x4de80a(0x199)]))_0x26f258['push']({'path':_0x46b5bc+_0x4de80a(0x23d),'message':_0x4de80a(0x250)+String(_0x5915df[_0x4de80a(0x199)])+'.'});else{if(_0x5915df[_0x4de80a(0x199)]==='START')_0x4f3fe1[_0x4de80a(0x193)](_0x5915df['id']);else _0x5915df[_0x4de80a(0x199)]===_0x4de80a(0x243)&&_0x2f2414[_0x4de80a(0x193)](_0x5915df['id']);}_0x5915df[_0x4de80a(0x199)]==='APPROVAL'&&(_0x5915df[_0x4de80a(0x2a9)]===undefined||_0x5915df[_0x4de80a(0x2a9)]===_0x4de80a(0x22c))&&(_0x98e59+=0x1);validateNode(_0x5915df,_0x46b5bc,_0x26f258);if(_0x5915df[_0x4de80a(0x199)]===_0x4de80a(0x152)){const _0x4056dc=resolveEffectiveResultVariable(_0x5915df['resultVariable'],![]);_0x4056dc&&(registerResultVariableOwner(_0x2fbfee,_0x4056dc,_0x5915df['id'],_0x26f258),!_0x363818[_0x4de80a(0x1d3)](_0x4056dc)&&_0x363818[_0x4de80a(0x194)](_0x4056dc,_0x5915df['id']));}if(_0x5915df[_0x4de80a(0x199)]===_0x4de80a(0x22c)&&isRecord(_0x5915df[_0x4de80a(0x26d)])&&_0x5915df['timeout'][_0x4de80a(0x18f)]===!![]&&_0x5915df[_0x4de80a(0x26d)]['action']==='EXECUTE_BFF'){const _0xb170f3=resolveEffectiveResultVariable(_0x5915df['timeout'][_0x4de80a(0x191)],!![]);_0xb170f3&&registerResultVariableOwner(_0x2fbfee,_0xb170f3,_0x5915df['id']+_0x4de80a(0x21e),_0x26f258);}});_0x4f3fe1[_0x23f377(0x196)]!==0x1&&_0x26f258[_0x23f377(0x193)]({'path':'flowJson.nodes','message':_0x23f377(0x15b)});_0x2f2414[_0x23f377(0x196)]===0x0&&_0x26f258['push']({'path':'flowJson.nodes','message':_0x23f377(0x1bd)});const _0x46ec9e=new Map(),_0x5658e4=new Map(),_0x459c44=new Map(),_0x579218=new Set();_0x2fdd09[_0x23f377(0x14c)][_0x23f377(0x275)]((_0x41ac25,_0x52e4fc)=>{const _0x298349=_0x23f377,_0x3e327d=_0x298349(0x1c4)+_0x52e4fc+']';if(!isRecord(_0x41ac25)){_0x26f258[_0x298349(0x193)]({'path':_0x3e327d,'message':_0x298349(0x19b)});return;}const _0x489728=_0x41ac25;_0x459c44[_0x298349(0x194)](_0x489728,_0x3e327d);const _0x58183a=resolveEdgeEndpoint(_0x489728[_0x298349(0x26c)],_0x489728['sourceNodeId']),_0xe245b4=resolveEdgeEndpoint(_0x489728[_0x298349(0x1f6)],_0x489728[_0x298349(0x1b9)]);if(!_0x58183a)_0x26f258['push']({'path':_0x3e327d+_0x298349(0x21d),'message':_0x298349(0x1b1)});if(!_0xe245b4)_0x26f258[_0x298349(0x193)]({'path':_0x3e327d+_0x298349(0x299),'message':_0x298349(0x1de)});_0x58183a&&!_0x1fb40b[_0x298349(0x1d3)](_0x58183a)&&_0x26f258[_0x298349(0x193)]({'path':_0x3e327d+_0x298349(0x21d),'message':_0x298349(0x16a)+_0x58183a+'.'});_0xe245b4&&!_0x1fb40b['has'](_0xe245b4)&&_0x26f258[_0x298349(0x193)]({'path':_0x3e327d+'.target','message':_0x298349(0x21b)+_0xe245b4+'.'});if(_0x489728['id']!==undefined){if(typeof _0x489728['id']!=='string'||!BPMN_ID_PATTERN[_0x298349(0x1e3)](_0x489728['id']))_0x26f258['push']({'path':_0x3e327d+_0x298349(0x1d1),'message':_0x298349(0x224)});else{if(_0x4248c4[_0x298349(0x1d3)](_0x489728['id']))_0x26f258[_0x298349(0x193)]({'path':_0x3e327d+_0x298349(0x1d1),'message':'Duplicate\x20BPMN\x20element\x20id:\x20'+_0x489728['id']+'.'});else!_0x4248c4['has'](_0x489728['id'])&&_0x4248c4[_0x298349(0x1f2)](_0x489728['id']);}}if(_0x58183a&&_0xe245b4){const _0x5a2f57=_0x58183a+'\x00'+_0xe245b4+'\x00'+(_0x489728[_0x298349(0x273)]??_0x298349(0x212));_0x579218['has'](_0x5a2f57)?_0x26f258['push']({'path':_0x3e327d,'message':'Duplicate\x20edge\x20route:\x20'+_0x58183a+_0x298349(0x14d)+_0xe245b4+'\x20('+(_0x489728[_0x298349(0x273)]??_0x298349(0x212))+').'}):_0x579218[_0x298349(0x1f2)](_0x5a2f57);}validateEdge(_0x489728,_0x3e327d,_0x26f258),_0x58183a&&_0xe245b4&&(_0x46ec9e[_0x298349(0x146)](_0x58183a)?.['push'](_0x489728)??_0x46ec9e[_0x298349(0x194)](_0x58183a,[_0x489728]),_0x5658e4[_0x298349(0x146)](_0xe245b4)?.['push'](_0x489728)??_0x5658e4[_0x298349(0x194)](_0xe245b4,[_0x489728]));});if(_0x4f3fe1['length']!==0x1)return;validateGraphShape(_0x1fb40b,_0x4f3fe1[0x0],_0x2f2414,_0x46ec9e,_0x5658e4,_0x459c44,_0x26f258),validateScriptResultReferences(_0x1fb40b,_0x4f3fe1[0x0],_0x46ec9e,_0x5658e4,_0x459c44,_0x363818,_0x26f258),validateApprovalResults(_0x1fb40b,_0x98e59,_0x2f2414,_0x26f258);}function validateNode(_0x4bd08c,_0x3366a5,_0x4685bf){const _0x5a5077=a287_0x5e5514;for(const _0x203c23 of[_0x5a5077(0x1cb),_0x5a5077(0x1f1)]){Object[_0x5a5077(0x15e)][_0x5a5077(0x264)][_0x5a5077(0x156)](_0x4bd08c,_0x203c23)&&_0x4685bf[_0x5a5077(0x193)]({'path':_0x3366a5+'.'+_0x203c23,'message':UNSUPPORTED_FORM_MESSAGE});}if(!NODE_TYPES[_0x5a5077(0x1d3)](_0x4bd08c['type']))return;(typeof _0x4bd08c['name']!==_0x5a5077(0x239)||_0x4bd08c['name'][_0x5a5077(0x2aa)]()==='')&&_0x4685bf[_0x5a5077(0x193)]({'path':_0x3366a5+_0x5a5077(0x1d9),'message':_0x5a5077(0x148)});_0x4bd08c['pageId']!==undefined&&_0x4685bf[_0x5a5077(0x193)]({'path':_0x3366a5+_0x5a5077(0x28c),'message':_0x5a5077(0x1e2)});if(_0x4bd08c['path']!==undefined){if(typeof _0x4bd08c[_0x5a5077(0x1cd)]!==_0x5a5077(0x239)||_0x4bd08c['path']['trim']()==='')_0x4685bf['push']({'path':_0x3366a5+_0x5a5077(0x2a5),'message':_0x5a5077(0x179)});else _0x4bd08c['type']!==_0x5a5077(0x22c)&&_0x4bd08c[_0x5a5077(0x199)]!==_0x5a5077(0x243)&&_0x4685bf[_0x5a5077(0x193)]({'path':_0x3366a5+_0x5a5077(0x2a5),'message':_0x5a5077(0x233)});}const _0x16d015=_0x4bd08c[_0x5a5077(0x293)];if(!isRecord(_0x16d015))_0x4685bf['push']({'path':_0x3366a5+_0x5a5077(0x19f),'message':'Every\x20node\x20requires\x20position.x\x20and\x20position.y.'});else for(const _0x225eb5 of['x','y']){const _0x1bf0ea=_0x16d015[_0x225eb5];(typeof _0x1bf0ea!=='number'||!Number[_0x5a5077(0x200)](_0x1bf0ea)||_0x1bf0ea<0x0)&&_0x4685bf['push']({'path':_0x3366a5+_0x5a5077(0x1d6)+_0x225eb5,'message':_0x5a5077(0x1e4)+_0x225eb5+_0x5a5077(0x1bc)});}if(_0x4bd08c[_0x5a5077(0x199)]===_0x5a5077(0x22c)){const _0x23c075=_0x4bd08c[_0x5a5077(0x1c1)]??_0x5a5077(0x279),_0x5b9831=_0x4bd08c[_0x5a5077(0x2a9)]??'APPROVAL';!APPROVAL_TASK_MODES[_0x5a5077(0x1d3)](_0x5b9831)&&_0x4685bf[_0x5a5077(0x193)]({'path':_0x3366a5+_0x5a5077(0x17c),'message':_0x5a5077(0x1a0)+String(_0x5b9831)+'.'});!APPROVAL_MODES[_0x5a5077(0x1d3)](_0x23c075)&&_0x4685bf['push']({'path':_0x3366a5+_0x5a5077(0x147),'message':_0x5a5077(0x1b7)+String(_0x23c075)+'.'});if(!isRecord(_0x4bd08c['assignee']))_0x4685bf[_0x5a5077(0x193)]({'path':_0x3366a5+_0x5a5077(0x1ff),'message':_0x5a5077(0x180)});else{const _0x3439e0=_0x4bd08c[_0x5a5077(0x1fc)]['strategy'];_0x3439e0!==_0x5a5077(0x141)&&_0x3439e0!==_0x5a5077(0x188)&&_0x4685bf[_0x5a5077(0x193)]({'path':_0x3366a5+_0x5a5077(0x29c),'message':'assignee.strategy\x20must\x20be\x20FIXED\x20or\x20ROLE.'});if(_0x3439e0===_0x5a5077(0x141)){const _0x4000bd=_0x4bd08c[_0x5a5077(0x1fc)][_0x5a5077(0x155)];if(!Array[_0x5a5077(0x19a)](_0x4000bd)||_0x4000bd['length']===0x0)_0x4685bf[_0x5a5077(0x193)]({'path':_0x3366a5+'.assignee.userIds','message':_0x5a5077(0x251)});else{const _0x40d811=_0x4000bd[_0x5a5077(0x25c)](_0x1c0e20=>!isValidUserId(_0x1c0e20));_0x40d811>=0x0&&_0x4685bf['push']({'path':_0x3366a5+'.assignee.userIds['+_0x40d811+']','message':_0x5a5077(0x2a0)});const _0x4b076e=new Set(_0x4000bd[_0x5a5077(0x24f)](isValidUserId)[_0x5a5077(0x26f)](_0x342d28=>String(_0x342d28)[_0x5a5077(0x2aa)]()));_0x23c075==='SINGLE'&&_0x4b076e[_0x5a5077(0x26b)]>0x1&&_0x4685bf['push']({'path':_0x3366a5+_0x5a5077(0x18d),'message':_0x5a5077(0x29e)});}}if(_0x3439e0===_0x5a5077(0x188)){const _0x2973b6=_0x4bd08c['assignee'][_0x5a5077(0x25b)],_0x46e305=typeof _0x2973b6===_0x5a5077(0x1b5)||typeof _0x2973b6===_0x5a5077(0x239)?Number(String(_0x2973b6)[_0x5a5077(0x2aa)]()):Number[_0x5a5077(0x1df)];(!Number[_0x5a5077(0x1cc)](_0x46e305)||_0x46e305<=0x0)&&_0x4685bf[_0x5a5077(0x193)]({'path':_0x3366a5+_0x5a5077(0x24b),'message':_0x5a5077(0x157)});}}if(_0x4bd08c[_0x5a5077(0x216)]!==undefined){if(!isRecord(_0x4bd08c[_0x5a5077(0x216)]))_0x4685bf['push']({'path':_0x3366a5+_0x5a5077(0x204),'message':'transferCandidates\x20must\x20be\x20an\x20object.'});else{if(_0x4bd08c[_0x5a5077(0x216)][_0x5a5077(0x1e7)]!==_0x5a5077(0x141))_0x4685bf[_0x5a5077(0x193)]({'path':_0x3366a5+_0x5a5077(0x1cf),'message':_0x5a5077(0x244)});else{const _0x1f7214=_0x4bd08c[_0x5a5077(0x216)]['userIds'];if(!Array[_0x5a5077(0x19a)](_0x1f7214)||_0x1f7214['length']===0x0)_0x4685bf[_0x5a5077(0x193)]({'path':_0x3366a5+_0x5a5077(0x22f),'message':'FIXED\x20transferCandidates\x20requires\x20non-empty\x20userIds.'});else{const _0x32e872=_0x1f7214[_0x5a5077(0x25c)](_0x338025=>!isValidUserId(_0x338025));_0x32e872>=0x0&&_0x4685bf['push']({'path':_0x3366a5+'.transferCandidates.userIds['+_0x32e872+']','message':'transfer\x20candidate\x20userId\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20positive\x20integer.'});}}}}}_0x4bd08c[_0x5a5077(0x2a6)]!==undefined&&typeof _0x4bd08c[_0x5a5077(0x2a6)]!==_0x5a5077(0x27a)&&_0x4685bf['push']({'path':_0x3366a5+_0x5a5077(0x231),'message':_0x5a5077(0x185)});if(_0x4bd08c[_0x5a5077(0x199)]==='SCRIPT'){(typeof _0x4bd08c[_0x5a5077(0x1e1)]!==_0x5a5077(0x239)||_0x4bd08c[_0x5a5077(0x1e1)][_0x5a5077(0x2aa)]()==='')&&_0x4685bf['push']({'path':_0x3366a5+_0x5a5077(0x1b8),'message':'SCRIPT\x20node\x20requires\x20scriptName.'});if(_0x4bd08c[_0x5a5077(0x191)]!==undefined){if(typeof _0x4bd08c[_0x5a5077(0x191)]!==_0x5a5077(0x239)||!VARIABLE_PATTERN[_0x5a5077(0x1e3)](_0x4bd08c[_0x5a5077(0x191)]))_0x4685bf[_0x5a5077(0x193)]({'path':_0x3366a5+_0x5a5077(0x1bf),'message':'resultVariable\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.'});else(RESERVED_RESULT_VARIABLES[_0x5a5077(0x1d3)](_0x4bd08c[_0x5a5077(0x191)])||_0x4bd08c['resultVariable'][_0x5a5077(0x167)](_0x5a5077(0x1c5)))&&_0x4685bf[_0x5a5077(0x193)]({'path':_0x3366a5+'.resultVariable','message':_0x5a5077(0x247)+_0x4bd08c[_0x5a5077(0x191)]+'.'});}}validateAsyncExecution(_0x4bd08c,_0x3366a5,_0x4685bf),validateApprovalTimeout(_0x4bd08c,_0x3366a5,_0x4685bf),validateCcConfig(_0x4bd08c,_0x3366a5,_0x4685bf),_0x4bd08c[_0x5a5077(0x199)]===_0x5a5077(0x272)&&validateNotificationConfig(_0x4bd08c[_0x5a5077(0x2a3)],_0x3366a5+_0x5a5077(0x1b3),_0x4685bf);}function validateAsyncExecution(_0x1a9405,_0x45cb4f,_0x3793af){const _0x2b576a=a287_0x5e5514;if(_0x1a9405[_0x2b576a(0x20f)]===undefined)return;if(!isRecord(_0x1a9405['async'])){_0x3793af[_0x2b576a(0x193)]({'path':_0x45cb4f+_0x2b576a(0x1ae),'message':'async\x20must\x20be\x20an\x20object.'});return;}if(_0x1a9405['async'][_0x2b576a(0x18f)]!==undefined&&typeof _0x1a9405[_0x2b576a(0x20f)][_0x2b576a(0x18f)]!==_0x2b576a(0x27a)){_0x3793af['push']({'path':_0x45cb4f+_0x2b576a(0x1c2),'message':_0x2b576a(0x181)});return;}if(_0x1a9405[_0x2b576a(0x20f)][_0x2b576a(0x18f)]!==!![])return;_0x1a9405[_0x2b576a(0x199)]!==_0x2b576a(0x152)&&_0x3793af[_0x2b576a(0x193)]({'path':_0x45cb4f+_0x2b576a(0x1ae),'message':_0x2b576a(0x201)});const _0x3710b9=_0x1a9405[_0x2b576a(0x20f)][_0x2b576a(0x17f)]??0x3;(!Number[_0x2b576a(0x278)](_0x3710b9)||_0x3710b9<0x1||_0x3710b9>MAX_ASYNC_RETRY_COUNT)&&_0x3793af['push']({'path':_0x45cb4f+_0x2b576a(0x14e),'message':_0x2b576a(0x215)+MAX_ASYNC_RETRY_COUNT+'.'}),_0x1a9405[_0x2b576a(0x20f)][_0x2b576a(0x241)]!==undefined&&validateTimeAmount(_0x1a9405[_0x2b576a(0x20f)]['retryInterval'],_0x45cb4f+_0x2b576a(0x240),_0x3793af);}function validateApprovalTimeout(_0x3d84ed,_0xcd94e8,_0xf1482){const _0x2a36ce=a287_0x5e5514;if(_0x3d84ed[_0x2a36ce(0x26d)]===undefined)return;if(!isRecord(_0x3d84ed[_0x2a36ce(0x26d)])){_0xf1482[_0x2a36ce(0x193)]({'path':_0xcd94e8+'.timeout','message':_0x2a36ce(0x25a)});return;}if(_0x3d84ed['timeout']['enabled']!==undefined&&typeof _0x3d84ed['timeout'][_0x2a36ce(0x18f)]!==_0x2a36ce(0x27a)){_0xf1482[_0x2a36ce(0x193)]({'path':_0xcd94e8+'.timeout.enabled','message':_0x2a36ce(0x2ae)});return;}if(_0x3d84ed[_0x2a36ce(0x26d)]['enabled']!==!![])return;if(_0x3d84ed['timeout'][_0x2a36ce(0x1d5)]!==undefined&&typeof _0x3d84ed[_0x2a36ce(0x26d)]['interrupting']!==_0x2a36ce(0x27a)){_0xf1482[_0x2a36ce(0x193)]({'path':_0xcd94e8+_0x2a36ce(0x16f),'message':_0x2a36ce(0x1ce)});return;}_0x3d84ed[_0x2a36ce(0x199)]!=='APPROVAL'&&_0xf1482[_0x2a36ce(0x193)]({'path':_0xcd94e8+_0x2a36ce(0x21e),'message':'timeout\x20is\x20only\x20supported\x20by\x20APPROVAL\x20node.'});validateTimeAmount(_0x3d84ed[_0x2a36ce(0x26d)]['duration'],_0xcd94e8+_0x2a36ce(0x1b4),_0xf1482);const _0x186c04=_0x3d84ed[_0x2a36ce(0x26d)][_0x2a36ce(0x226)];if(!APPROVAL_TIMEOUT_ACTIONS[_0x2a36ce(0x1d3)](_0x186c04)){_0xf1482[_0x2a36ce(0x193)]({'path':_0xcd94e8+'.timeout.action','message':_0x2a36ce(0x22d)});return;}(_0x3d84ed[_0x2a36ce(0x2a9)]??_0x2a36ce(0x22c))==='HANDLE'&&_0x186c04!=='EXECUTE_BFF'&&_0xf1482[_0x2a36ce(0x193)]({'path':_0xcd94e8+_0x2a36ce(0x219),'message':_0x2a36ce(0x1bb)});const _0xf30b3b=_0x3d84ed[_0x2a36ce(0x26d)][_0x2a36ce(0x1d5)]??_0x186c04!==_0x2a36ce(0x261);if(_0x186c04==='EXECUTE_BFF')_0xf30b3b&&_0xf1482['push']({'path':_0xcd94e8+'.timeout.interrupting','message':'EXECUTE_BFF\x20timeout\x20must\x20not\x20interrupt\x20the\x20approval\x20task.'}),(typeof _0x3d84ed[_0x2a36ce(0x26d)][_0x2a36ce(0x1e1)]!==_0x2a36ce(0x239)||_0x3d84ed[_0x2a36ce(0x26d)][_0x2a36ce(0x1e1)][_0x2a36ce(0x2aa)]()==='')&&_0xf1482[_0x2a36ce(0x193)]({'path':_0xcd94e8+'.timeout.scriptName','message':_0x2a36ce(0x205)}),validateOptionalResultVariable(_0x3d84ed['timeout'][_0x2a36ce(0x191)],_0xcd94e8+_0x2a36ce(0x27f),_0xf1482);else!_0xf30b3b&&_0xf1482[_0x2a36ce(0x193)]({'path':_0xcd94e8+_0x2a36ce(0x16f),'message':_0x186c04+_0x2a36ce(0x13d)});}function validateTimeAmount(_0x240e10,_0xac9963,_0x3cc016){const _0x5f1207=a287_0x5e5514;if(!isRecord(_0x240e10)){_0x3cc016[_0x5f1207(0x193)]({'path':_0xac9963,'message':_0x5f1207(0x2ac)});return;}(!Number[_0x5f1207(0x278)](_0x240e10[_0x5f1207(0x249)])||Number(_0x240e10[_0x5f1207(0x249)])<=0x0)&&_0x3cc016['push']({'path':_0xac9963+'.value','message':_0x5f1207(0x22a)}),!FLOW_TIME_UNITS[_0x5f1207(0x1d3)](_0x240e10[_0x5f1207(0x266)])&&_0x3cc016[_0x5f1207(0x193)]({'path':_0xac9963+'.unit','message':_0x5f1207(0x15c)});}function validateOptionalResultVariable(_0x59ba81,_0x56fb62,_0x3a37a6){const _0x12253c=a287_0x5e5514;if(_0x59ba81===undefined||_0x59ba81===null||_0x59ba81==='')return;if(typeof _0x59ba81!==_0x12253c(0x239)||!VARIABLE_PATTERN['test'](_0x59ba81))_0x3a37a6[_0x12253c(0x193)]({'path':_0x56fb62,'message':_0x12253c(0x260)});else(RESERVED_RESULT_VARIABLES[_0x12253c(0x1d3)](_0x59ba81)||_0x59ba81[_0x12253c(0x167)]('approval_sys_'))&&_0x3a37a6[_0x12253c(0x193)]({'path':_0x56fb62,'message':_0x12253c(0x247)+_0x59ba81+'.'});}function validateCcConfig(_0x2adabd,_0x4ee0c5,_0xc498d8){const _0xad4a06=a287_0x5e5514;if(_0x2adabd['cc']===undefined)return;if(!isRecord(_0x2adabd['cc'])){_0xc498d8[_0xad4a06(0x193)]({'path':_0x4ee0c5+_0xad4a06(0x202),'message':_0xad4a06(0x1f8)});return;}_0x2adabd[_0xad4a06(0x199)]!==_0xad4a06(0x243)&&_0x2adabd[_0xad4a06(0x199)]!==_0xad4a06(0x22c)&&_0xc498d8[_0xad4a06(0x193)]({'path':_0x4ee0c5+_0xad4a06(0x202),'message':_0xad4a06(0x14a)});Object[_0xad4a06(0x15e)][_0xad4a06(0x264)][_0xad4a06(0x156)](_0x2adabd['cc'],_0xad4a06(0x27d))&&_0xc498d8[_0xad4a06(0x193)]({'path':_0x4ee0c5+'.cc.readSources','message':UNSUPPORTED_FORM_MESSAGE});const _0x243add=_0x2adabd['cc']['recipientUserIds'];if(!Array[_0xad4a06(0x19a)](_0x243add)||_0x243add[_0xad4a06(0x196)]===0x0)_0xc498d8[_0xad4a06(0x193)]({'path':_0x4ee0c5+_0xad4a06(0x1a5),'message':_0xad4a06(0x1c6)});else{_0x243add['length']>MAX_CC_RECIPIENTS&&_0xc498d8['push']({'path':_0x4ee0c5+_0xad4a06(0x1a5),'message':'cc.recipientUserIds\x20supports\x20at\x20most\x20'+MAX_CC_RECIPIENTS+_0xad4a06(0x23a)});const _0x429ff6=new Set();_0x243add['forEach']((_0x5049fd,_0x54a079)=>{const _0x351d13=_0xad4a06;if(typeof _0x5049fd!=='string'||_0x5049fd['trim']()==='')_0xc498d8[_0x351d13(0x193)]({'path':_0x4ee0c5+_0x351d13(0x2ab)+_0x54a079+']','message':'cc\x20recipient\x20userId\x20must\x20be\x20a\x20non-empty\x20string.'});else _0x429ff6[_0x351d13(0x1d3)](_0x5049fd[_0x351d13(0x2aa)]())?_0xc498d8[_0x351d13(0x193)]({'path':_0x4ee0c5+'.cc.recipientUserIds['+_0x54a079+']','message':_0x351d13(0x1e8)+_0x5049fd['trim']()+'.'}):_0x429ff6[_0x351d13(0x1f2)](_0x5049fd[_0x351d13(0x2aa)]());});}validateStringArray(_0x2adabd['cc']['visible'],_0x4ee0c5+_0xad4a06(0x282),_0xc498d8);}function validateStringArray(_0x4e84e5,_0x2fdc48,_0x124c31){const _0x36f90b=a287_0x5e5514;if(_0x4e84e5===undefined)return;if(!Array[_0x36f90b(0x19a)](_0x4e84e5)){_0x124c31[_0x36f90b(0x193)]({'path':_0x2fdc48,'message':_0x36f90b(0x254)});return;}const _0x1dd34f=new Set();_0x4e84e5[_0x36f90b(0x275)]((_0x50761b,_0x4b3feb)=>{const _0x4c2021=_0x36f90b;if(typeof _0x50761b!==_0x4c2021(0x239)||_0x50761b[_0x4c2021(0x2aa)]()==='')_0x124c31[_0x4c2021(0x193)]({'path':_0x2fdc48+'['+_0x4b3feb+']','message':_0x4c2021(0x234)});else _0x1dd34f[_0x4c2021(0x1d3)](_0x50761b['trim']())?_0x124c31[_0x4c2021(0x193)]({'path':_0x2fdc48+'['+_0x4b3feb+']','message':_0x4c2021(0x29b)+_0x50761b['trim']()+'.'}):_0x1dd34f['add'](_0x50761b[_0x4c2021(0x2aa)]());});}function validateNotificationConfig(_0x4af7b0,_0x4e4f32,_0x463ee2){const _0x468e82=a287_0x5e5514;if(!isRecord(_0x4af7b0)){_0x463ee2[_0x468e82(0x193)]({'path':_0x4e4f32,'message':_0x468e82(0x25e)});return;}if(_0x4af7b0[_0x468e82(0x2a2)]!==undefined&&_0x4af7b0['version']!==null){if(typeof _0x4af7b0['version']!==_0x468e82(0x239))_0x463ee2[_0x468e82(0x193)]({'path':_0x4e4f32+_0x468e82(0x192),'message':_0x468e82(0x271)});else _0x4af7b0['version'][_0x468e82(0x2aa)]()&&_0x4af7b0[_0x468e82(0x2a2)][_0x468e82(0x2aa)]()!=='v1'&&_0x463ee2[_0x468e82(0x193)]({'path':_0x4e4f32+'.version','message':_0x468e82(0x160)+_0x4af7b0[_0x468e82(0x2a2)]+'.'});}const _0x2e81f4=requireNotificationString(_0x4af7b0[_0x468e82(0x1ef)],_0x4e4f32+'.configCode',_0x468e82(0x171),_0x463ee2);_0x2e81f4?.['includes']('${')&&_0x463ee2['push']({'path':_0x4e4f32+'.configCode','message':_0x468e82(0x21c)});if(_0x4af7b0[_0x468e82(0x1f9)]!==undefined&&_0x4af7b0[_0x468e82(0x1f9)]!==null){if(typeof _0x4af7b0[_0x468e82(0x1f9)]!=='string')_0x463ee2[_0x468e82(0x193)]({'path':_0x4e4f32+_0x468e82(0x1c8),'message':_0x468e82(0x20d)});else!NOTIFICATION_FAILURE_POLICIES[_0x468e82(0x1d3)](_0x4af7b0['failurePolicy'][_0x468e82(0x2aa)]()[_0x468e82(0x1be)]())&&_0x463ee2[_0x468e82(0x193)]({'path':_0x4e4f32+_0x468e82(0x1c8),'message':_0x468e82(0x29a)});}!isRecord(_0x4af7b0['template'])?_0x463ee2[_0x468e82(0x193)]({'path':_0x4e4f32+_0x468e82(0x17a),'message':_0x468e82(0x162)}):validateNotificationTemplate(_0x4af7b0[_0x468e82(0x20b)],_0x4e4f32+_0x468e82(0x17a),_0x463ee2),validateNotificationRecipients(_0x4af7b0['recipients'],_0x4e4f32+_0x468e82(0x274),_0x463ee2);}function validateNotificationTemplate(_0x14da0e,_0x45a529,_0x3f1579){const _0xd30b77=a287_0x5e5514;for(const _0x3ac9d2 of[_0xd30b77(0x184),'summary']){const _0x224be4=requireNotificationString(_0x14da0e[_0x3ac9d2],_0x45a529+'.'+_0x3ac9d2,'Notification\x20template.'+_0x3ac9d2+_0xd30b77(0x16c),_0x3f1579);if(_0x224be4)validateNotificationPlaceholders(_0x224be4,_0x45a529+'.'+_0x3ac9d2,_0x3f1579);}_0x14da0e[_0xd30b77(0x17e)]!==undefined&&_0x14da0e[_0xd30b77(0x17e)]!==null&&(typeof _0x14da0e['detailMarkdown']!==_0xd30b77(0x239)?_0x3f1579['push']({'path':_0x45a529+_0xd30b77(0x166),'message':_0xd30b77(0x283)}):validateNotificationPlaceholders(_0x14da0e['detailMarkdown'],_0x45a529+'.detailMarkdown',_0x3f1579)),validateNotificationFacts(_0x14da0e['facts'],_0x45a529+_0xd30b77(0x238),_0x3f1579),validateNotificationActions(_0x14da0e[_0xd30b77(0x144)],_0x45a529+_0xd30b77(0x208),_0x3f1579);}function validateNotificationFacts(_0x3b9687,_0x130704,_0x2fcb6b){const _0x3373e4=a287_0x5e5514;if(_0x3b9687===undefined||_0x3b9687===null)return;if(!Array['isArray'](_0x3b9687)){_0x2fcb6b[_0x3373e4(0x193)]({'path':_0x130704,'message':_0x3373e4(0x17b)});return;}_0x3b9687[_0x3373e4(0x196)]>MAX_NOTIFICATION_FACTS&&_0x2fcb6b[_0x3373e4(0x193)]({'path':_0x130704,'message':'Notification\x20template\x20supports\x20at\x20most\x20'+MAX_NOTIFICATION_FACTS+_0x3373e4(0x235)}),_0x3b9687['forEach']((_0x52ad07,_0x962d6d)=>{const _0x5e6dac=_0x3373e4,_0x9368e8=_0x130704+'['+_0x962d6d+']';if(!isRecord(_0x52ad07)){_0x2fcb6b[_0x5e6dac(0x193)]({'path':_0x9368e8,'message':'Notification\x20fact\x20must\x20be\x20an\x20object.'});return;}for(const _0x11f4d2 of[_0x5e6dac(0x1c7),'value']){const _0x401f6b=requireNotificationString(_0x52ad07[_0x11f4d2],_0x9368e8+'.'+_0x11f4d2,'Notification\x20fact.'+_0x11f4d2+_0x5e6dac(0x16c),_0x2fcb6b);_0x401f6b&&validateNotificationPlaceholders(_0x401f6b,_0x9368e8+'.'+_0x11f4d2,_0x2fcb6b);}});}function validateNotificationActions(_0x3c0cf7,_0x3ea523,_0x49b752){const _0x528565=a287_0x5e5514;if(_0x3c0cf7===undefined||_0x3c0cf7===null)return;if(!Array['isArray'](_0x3c0cf7)){_0x49b752['push']({'path':_0x3ea523,'message':_0x528565(0x1ec)});return;}_0x3c0cf7[_0x528565(0x196)]>MAX_NOTIFICATION_ACTIONS&&_0x49b752[_0x528565(0x193)]({'path':_0x3ea523,'message':'Notification\x20template\x20supports\x20at\x20most\x20'+MAX_NOTIFICATION_ACTIONS+_0x528565(0x1ab)}),_0x3c0cf7[_0x528565(0x275)]((_0x3b86c1,_0x3fec75)=>{const _0x22be11=_0x528565,_0x292226=_0x3ea523+'['+_0x3fec75+']';if(!isRecord(_0x3b86c1)){_0x49b752['push']({'path':_0x292226,'message':_0x22be11(0x207)});return;}const _0x144431=requireNotificationString(_0x3b86c1['text'],_0x292226+_0x22be11(0x177),'Notification\x20action.text\x20is\x20required.',_0x49b752);if(_0x144431)validateNotificationPlaceholders(_0x144431,_0x292226+_0x22be11(0x177),_0x49b752);const _0x1ec518=requireNotificationString(_0x3b86c1[_0x22be11(0x1f7)],_0x292226+_0x22be11(0x211),_0x22be11(0x16e),_0x49b752);if(!_0x1ec518)return;validateNotificationPlaceholders(_0x1ec518,_0x292226+_0x22be11(0x211),_0x49b752),!/^https?:\/\//i['test'](_0x1ec518)&&!NOTIFICATION_ACTION_URL_PLACEHOLDER_PATTERN[_0x22be11(0x1e3)](_0x1ec518)&&_0x49b752[_0x22be11(0x193)]({'path':_0x292226+_0x22be11(0x211),'message':_0x22be11(0x229)});});}function validateNotificationRecipients(_0x2bcaba,_0x10bac8,_0x62ac15){const _0x23e112=a287_0x5e5514;if(_0x2bcaba===undefined||_0x2bcaba===null)return;if(!Array[_0x23e112(0x19a)](_0x2bcaba)){_0x62ac15[_0x23e112(0x193)]({'path':_0x10bac8,'message':_0x23e112(0x220)});return;}let _0x21fd1d=![];_0x2bcaba['forEach']((_0x4f5e3d,_0x1a909e)=>{const _0x3d8591=_0x23e112,_0x23cffb=_0x10bac8+'['+_0x1a909e+']';if(!isRecord(_0x4f5e3d)){_0x62ac15['push']({'path':_0x23cffb,'message':_0x3d8591(0x236)});return;}const _0x19ed7b=requireNotificationString(_0x4f5e3d['type'],_0x23cffb+_0x3d8591(0x23d),_0x3d8591(0x2a7),_0x62ac15);_0x19ed7b&&!NOTIFICATION_RECIPIENT_TYPES[_0x3d8591(0x1d3)](_0x19ed7b[_0x3d8591(0x1be)]())&&_0x62ac15['push']({'path':_0x23cffb+_0x3d8591(0x23d),'message':_0x3d8591(0x258)});let _0x3e9b5d='TO';_0x4f5e3d['role']!==undefined&&_0x4f5e3d[_0x3d8591(0x1e0)]!==null&&(typeof _0x4f5e3d[_0x3d8591(0x1e0)]!==_0x3d8591(0x239)?(_0x62ac15[_0x3d8591(0x193)]({'path':_0x23cffb+_0x3d8591(0x183),'message':_0x3d8591(0x296)}),_0x3e9b5d=''):(_0x3e9b5d=_0x4f5e3d['role'][_0x3d8591(0x2aa)]()['toUpperCase'](),!NOTIFICATION_RECIPIENT_ROLES[_0x3d8591(0x1d3)](_0x3e9b5d)&&_0x62ac15[_0x3d8591(0x193)]({'path':_0x23cffb+'.role','message':_0x3d8591(0x1e6)})));if(_0x3e9b5d==='TO')_0x21fd1d=!![];const _0x41b8c2=requireNotificationString(_0x4f5e3d[_0x3d8591(0x249)],_0x23cffb+_0x3d8591(0x18a),_0x3d8591(0x269),_0x62ac15);_0x41b8c2&&validateNotificationPlaceholders(_0x41b8c2,_0x23cffb+'.value',_0x62ac15);}),_0x2bcaba[_0x23e112(0x196)]>0x0&&!_0x21fd1d&&_0x62ac15[_0x23e112(0x193)]({'path':_0x10bac8,'message':_0x23e112(0x1a2)});}function requireNotificationString(_0xc585ea,_0x5df9d3,_0x2391b5,_0x322772){const _0x4908c3=a287_0x5e5514;if(typeof _0xc585ea!==_0x4908c3(0x239)||_0xc585ea[_0x4908c3(0x2aa)]()==='')return _0x322772[_0x4908c3(0x193)]({'path':_0x5df9d3,'message':_0x2391b5}),undefined;return _0xc585ea[_0x4908c3(0x2aa)]();}function validateNotificationPlaceholders(_0x22a9f0,_0x5f3688,_0xa3e4a9){const _0x182dc3=a287_0x5e5514;for(const _0xa4e110 of _0x22a9f0[_0x182dc3(0x1d7)](NOTIFICATION_PLACEHOLDER_PATTERN)){const _0x2102ef=_0xa4e110[0x1]?.[_0x182dc3(0x2aa)]()??'',_0x2583e5=_0x2102ef[_0x182dc3(0x291)]('.'),_0x14982a=_0x2583e5>=0x0?_0x2102ef[_0x182dc3(0x221)](0x0,_0x2583e5):_0x2102ef,_0x5625e1=_0x2583e5>=0x0?_0x2102ef[_0x182dc3(0x221)](_0x2583e5+0x1)['trim']():'';(!['event',_0x182dc3(0x1a4),_0x182dc3(0x142)]['includes'](_0x14982a)||_0x5625e1==='')&&_0xa3e4a9[_0x182dc3(0x193)]({'path':_0x5f3688,'message':_0x182dc3(0x262)+_0xa4e110[0x0]+'.'});}_0x22a9f0[_0x182dc3(0x1dd)](NOTIFICATION_PLACEHOLDER_PATTERN,'')[_0x182dc3(0x23f)]('${')&&_0xa3e4a9[_0x182dc3(0x193)]({'path':_0x5f3688,'message':_0x182dc3(0x27c)});}function validateEdge(_0x48372b,_0x4e3e01,_0x455a63){const _0x18e907=a287_0x5e5514;_0x48372b[_0x18e907(0x1fd)]!==undefined&&typeof _0x48372b[_0x18e907(0x1fd)]!==_0x18e907(0x239)&&_0x455a63[_0x18e907(0x193)]({'path':_0x4e3e01+'.name','message':_0x18e907(0x1ed)}),_0x48372b[_0x18e907(0x173)]!==undefined&&typeof _0x48372b[_0x18e907(0x173)]!==_0x18e907(0x27a)&&_0x455a63[_0x18e907(0x193)]({'path':_0x4e3e01+_0x18e907(0x1fb),'message':_0x18e907(0x24d)}),_0x48372b[_0x18e907(0x24e)]!==undefined&&(!Array[_0x18e907(0x19a)](_0x48372b[_0x18e907(0x24e)])?_0x455a63['push']({'path':_0x4e3e01+_0x18e907(0x28e),'message':'waypoints\x20must\x20be\x20an\x20array.'}):_0x48372b['waypoints'][_0x18e907(0x275)]((_0x313ac9,_0x5a3116)=>{const _0x56d119=_0x18e907;if(!isRecord(_0x313ac9)){_0x455a63[_0x56d119(0x193)]({'path':_0x4e3e01+_0x56d119(0x1ea)+_0x5a3116+']','message':_0x56d119(0x182)});return;}for(const _0x595fa1 of['x','y']){const _0x331e2f=_0x313ac9[_0x595fa1];(typeof _0x331e2f!==_0x56d119(0x1b5)||!Number[_0x56d119(0x200)](_0x331e2f))&&_0x455a63[_0x56d119(0x193)]({'path':_0x4e3e01+'.waypoints['+_0x5a3116+'].'+_0x595fa1,'message':_0x56d119(0x168)+_0x595fa1+'\x20must\x20be\x20a\x20finite\x20number.'});}})),_0x48372b['conditionType']!==undefined&&!CONDITION_TYPES[_0x18e907(0x1d3)](_0x48372b[_0x18e907(0x273)])&&_0x455a63[_0x18e907(0x193)]({'path':_0x4e3e01+_0x18e907(0x174),'message':_0x18e907(0x218)+String(_0x48372b[_0x18e907(0x273)])+'.'}),_0x48372b[_0x18e907(0x273)]===_0x18e907(0x1a9)&&(typeof _0x48372b[_0x18e907(0x295)]!==_0x18e907(0x239)||_0x48372b[_0x18e907(0x295)][_0x18e907(0x2aa)]()==='')&&_0x455a63[_0x18e907(0x193)]({'path':_0x4e3e01+_0x18e907(0x252),'message':_0x18e907(0x149)}),_0x48372b[_0x18e907(0x173)]===!![]&&_0x48372b[_0x18e907(0x273)]!==_0x18e907(0x212)&&_0x455a63['push']({'path':_0x4e3e01+_0x18e907(0x1fb),'message':_0x18e907(0x198)}),_0x48372b[_0x18e907(0x173)]===!![]&&typeof _0x48372b['expression']===_0x18e907(0x239)&&_0x48372b[_0x18e907(0x295)][_0x18e907(0x2aa)]()!==''&&_0x455a63[_0x18e907(0x193)]({'path':_0x4e3e01+'.expression','message':_0x18e907(0x170)});}function validateGraphShape(_0x2d718d,_0x2d3df0,_0x12abd4,_0x158f45,_0x5a13e2,_0x36117e,_0x5b300f){const _0x2f2fb2=a287_0x5e5514;for(const [_0x4a7e9b,_0x42b961]of _0x2d718d){const _0x514d2d=_0x5a13e2[_0x2f2fb2(0x146)](_0x4a7e9b)??[],_0xd29863=_0x158f45[_0x2f2fb2(0x146)](_0x4a7e9b)??[];_0x42b961['type']!==_0x2f2fb2(0x23e)&&_0x514d2d[_0x2f2fb2(0x196)]===0x0&&_0x5b300f[_0x2f2fb2(0x193)]({'path':_0x2f2fb2(0x150)+_0x4a7e9b,'message':'Node\x20has\x20no\x20incoming\x20edge.'});_0x42b961[_0x2f2fb2(0x199)]!==_0x2f2fb2(0x243)&&_0xd29863['length']===0x0&&_0x5b300f[_0x2f2fb2(0x193)]({'path':_0x2f2fb2(0x150)+_0x4a7e9b,'message':'Node\x20has\x20no\x20outgoing\x20edge.'});_0x42b961[_0x2f2fb2(0x199)]==='START'&&_0x514d2d[_0x2f2fb2(0x196)]>0x0&&_0x5b300f[_0x2f2fb2(0x193)]({'path':_0x2f2fb2(0x150)+_0x4a7e9b,'message':_0x2f2fb2(0x186)});_0x42b961[_0x2f2fb2(0x199)]==='END'&&_0xd29863[_0x2f2fb2(0x196)]>0x0&&_0x5b300f[_0x2f2fb2(0x193)]({'path':'flowJson.nodes.'+_0x4a7e9b,'message':_0x2f2fb2(0x290)});if(_0x42b961[_0x2f2fb2(0x199)]===_0x2f2fb2(0x187)){_0xd29863[_0x2f2fb2(0x196)]<0x2&&_0x5b300f[_0x2f2fb2(0x193)]({'path':'flowJson.nodes.'+_0x4a7e9b,'message':_0x2f2fb2(0x172)});const _0x2296a0=_0xd29863['filter'](_0x29689b=>_0x29689b[_0x2f2fb2(0x173)]===!![]);_0x2296a0[_0x2f2fb2(0x196)]!==0x1&&_0x5b300f[_0x2f2fb2(0x193)]({'path':'flowJson.nodes.'+_0x4a7e9b,'message':_0x2f2fb2(0x210)});if(_0x2296a0['length']===0x1){const _0x5a26fe=_0x2296a0[0x0],_0x5b3060=_0x36117e[_0x2f2fb2(0x146)](_0x5a26fe)??_0x2f2fb2(0x1db);_0x5a26fe[_0x2f2fb2(0x273)]!==_0x2f2fb2(0x212)&&_0x5b300f[_0x2f2fb2(0x193)]({'path':_0x5b3060+_0x2f2fb2(0x174),'message':_0x2f2fb2(0x1ba)});_0x5a26fe['expression']!==undefined&&_0x5b300f['push']({'path':_0x5b3060+_0x2f2fb2(0x252),'message':'CONDITION\x20default\x20edge\x20must\x20not\x20define\x20expression.'});for(const _0x56617f of _0xd29863){if(_0x56617f===_0x5a26fe)continue;const _0x57fefe=_0x36117e['get'](_0x56617f)??'flowJson.edges';if(_0x56617f[_0x2f2fb2(0x273)]!==_0x2f2fb2(0x1a9))_0x5b300f[_0x2f2fb2(0x193)]({'path':_0x57fefe+'.conditionType','message':_0x2f2fb2(0x255)});else(typeof _0x56617f[_0x2f2fb2(0x295)]!==_0x2f2fb2(0x239)||_0x56617f[_0x2f2fb2(0x295)][_0x2f2fb2(0x2aa)]()==='')&&_0x5b300f['push']({'path':_0x57fefe+'.expression','message':_0x2f2fb2(0x209)});}}}if(_0x42b961[_0x2f2fb2(0x199)]===_0x2f2fb2(0x22c)&&(_0x42b961[_0x2f2fb2(0x2a9)]??_0x2f2fb2(0x22c))===_0x2f2fb2(0x1d0)){if(_0xd29863[_0x2f2fb2(0x196)]!==0x1)_0x5b300f['push']({'path':_0x2f2fb2(0x150)+_0x4a7e9b,'message':'HANDLE\x20task\x20requires\x20exactly\x20one\x20outgoing\x20edge.'});else{const _0x2a2a6a=_0xd29863[0x0];((_0x2a2a6a[_0x2f2fb2(0x273)]??'ALWAYS')!==_0x2f2fb2(0x212)||_0x2a2a6a[_0x2f2fb2(0x173)]===!![]||typeof _0x2a2a6a[_0x2f2fb2(0x295)]===_0x2f2fb2(0x239)&&_0x2a2a6a['expression']['trim']()!=='')&&_0x5b300f[_0x2f2fb2(0x193)]({'path':_0x36117e['get'](_0x2a2a6a)??_0x2f2fb2(0x1db),'message':'HANDLE\x20task\x20outgoing\x20edge\x20must\x20use\x20ALWAYS\x20without\x20defaultFlow\x20or\x20expression.'});}}else{if(_0x42b961[_0x2f2fb2(0x199)]===_0x2f2fb2(0x22c)){const _0x481ffe=_0xd29863[_0x2f2fb2(0x26f)](_0x4b7e7f=>_0x4b7e7f[_0x2f2fb2(0x273)]??_0x2f2fb2(0x212)),_0x414d34=_0x481ffe['filter'](_0x363210=>_0x363210!=='APPROVED'&&_0x363210!==_0x2f2fb2(0x206));_0x414d34[_0x2f2fb2(0x196)]>0x0&&_0x5b300f['push']({'path':_0x2f2fb2(0x150)+_0x4a7e9b,'message':'APPROVAL\x20node\x20outgoing\x20edges\x20must\x20use\x20APPROVED\x20or\x20REJECTED.'}),_0x481ffe[_0x2f2fb2(0x24f)](_0x2e3c3c=>_0x2e3c3c===_0x2f2fb2(0x29f))[_0x2f2fb2(0x196)]!==0x1&&_0x5b300f[_0x2f2fb2(0x193)]({'path':'flowJson.nodes.'+_0x4a7e9b,'message':_0x2f2fb2(0x285)}),_0x481ffe[_0x2f2fb2(0x24f)](_0x591c66=>_0x591c66==='REJECTED')[_0x2f2fb2(0x196)]!==0x1&&_0x5b300f[_0x2f2fb2(0x193)]({'path':_0x2f2fb2(0x150)+_0x4a7e9b,'message':_0x2f2fb2(0x298)}),_0xd29863[_0x2f2fb2(0x28d)](_0x118039=>_0x118039[_0x2f2fb2(0x173)]===!![])&&_0x5b300f[_0x2f2fb2(0x193)]({'path':_0x2f2fb2(0x150)+_0x4a7e9b,'message':_0x2f2fb2(0x15d)});}}}const _0x1843c2=new Set(),_0x2932d2=_0x43d76e=>{const _0x5948dd=_0x2f2fb2;if(_0x1843c2[_0x5948dd(0x1d3)](_0x43d76e))return;_0x1843c2['add'](_0x43d76e);for(const _0xdfe074 of _0x158f45[_0x5948dd(0x146)](_0x43d76e)??[]){const _0x1ab74e=resolveEdgeEndpoint(_0xdfe074['target'],_0xdfe074['targetNodeId']);if(_0x1ab74e&&_0x2d718d['has'](_0x1ab74e))_0x2932d2(_0x1ab74e);}};_0x2932d2(_0x2d3df0);for(const _0x36a8d8 of _0x2d718d[_0x2f2fb2(0x161)]()){!_0x1843c2[_0x2f2fb2(0x1d3)](_0x36a8d8)&&_0x5b300f[_0x2f2fb2(0x193)]({'path':'flowJson.nodes.'+_0x36a8d8,'message':_0x2f2fb2(0x1b6)});}const _0x5b0277=_0x12abd4['some'](_0x48a2df=>_0x1843c2[_0x2f2fb2(0x1d3)](_0x48a2df));if(!_0x5b0277){_0x5b300f[_0x2f2fb2(0x193)]({'path':_0x2f2fb2(0x1db),'message':_0x2f2fb2(0x2a1)});return;}const _0x17c918=new Set(),_0x3f7e57=_0x2f355c=>{const _0xd68f61=_0x2f2fb2;if(_0x17c918['has'](_0x2f355c))return;_0x17c918['add'](_0x2f355c);for(const _0x142f3b of _0x5a13e2[_0xd68f61(0x146)](_0x2f355c)??[]){const _0x11202f=resolveEdgeEndpoint(_0x142f3b[_0xd68f61(0x26c)],_0x142f3b[_0xd68f61(0x1d4)]);if(_0x11202f&&_0x2d718d[_0xd68f61(0x1d3)](_0x11202f))_0x3f7e57(_0x11202f);}};for(const _0x1376b0 of _0x12abd4){if(_0x2d718d[_0x2f2fb2(0x1d3)](_0x1376b0))_0x3f7e57(_0x1376b0);}for(const _0x184cb9 of _0x1843c2){!_0x17c918[_0x2f2fb2(0x1d3)](_0x184cb9)&&_0x5b300f['push']({'path':_0x2f2fb2(0x150)+_0x184cb9,'message':_0x2f2fb2(0x237)});}}function validateApprovalResults(_0x33a4f5,_0x31b4f8,_0x378b0d,_0x3b5d61){const _0x5ac29c=a287_0x5e5514;if(_0x31b4f8===0x0)return;const _0x5d157b=new Set(_0x378b0d[_0x5ac29c(0x26f)](_0x561247=>_0x33a4f5[_0x5ac29c(0x146)](_0x561247)?.['result'])[_0x5ac29c(0x24f)](_0x40eaf9=>typeof _0x40eaf9==='string'));for(const _0x2af118 of['APPROVED',_0x5ac29c(0x206)]){!_0x5d157b[_0x5ac29c(0x1d3)](_0x2af118)&&_0x3b5d61[_0x5ac29c(0x193)]({'path':'flowJson.nodes','message':_0x5ac29c(0x1ee)+_0x2af118+'.'});}}function validateScriptResultReferences(_0x3268bb,_0x49f393,_0x4e5e96,_0x3274a8,_0xb0c6c2,_0x1b646e,_0x4b70d6){const _0x13a8a3=a287_0x5e5514;if(_0x1b646e[_0x13a8a3(0x26b)]===0x0)return;const _0x54d5a2=new Set(),_0xc487cf=_0x109287=>{const _0x328dd7=_0x13a8a3;if(!_0x54d5a2[_0x328dd7(0x1d3)](_0x109287)&&_0x3268bb[_0x328dd7(0x1d3)](_0x109287)){_0x54d5a2['add'](_0x109287);for(const _0x1a30e8 of _0x4e5e96['get'](_0x109287)??[]){const _0x4e6a08=resolveEdgeEndpoint(_0x1a30e8[_0x328dd7(0x1f6)],_0x1a30e8[_0x328dd7(0x1b9)]);if(_0x4e6a08)_0xc487cf(_0x4e6a08);}}};_0xc487cf(_0x49f393);const _0x51541d=new Map();for(const _0x219d22 of _0x54d5a2){_0x51541d['set'](_0x219d22,_0x219d22===_0x49f393?new Set([_0x49f393]):new Set(_0x54d5a2));}let _0x66ecc9=!![];while(_0x66ecc9){_0x66ecc9=![];for(const _0x52ee02 of _0x54d5a2){if(_0x52ee02===_0x49f393)continue;const _0x3000db=(_0x3274a8[_0x13a8a3(0x146)](_0x52ee02)??[])[_0x13a8a3(0x26f)](_0xbe65e0=>resolveEdgeEndpoint(_0xbe65e0[_0x13a8a3(0x26c)],_0xbe65e0[_0x13a8a3(0x1d4)]))[_0x13a8a3(0x24f)](_0x16366a=>Boolean(_0x16366a&&_0x54d5a2[_0x13a8a3(0x1d3)](_0x16366a)));if(_0x3000db[_0x13a8a3(0x196)]===0x0)continue;const _0x2c5684=new Set(_0x51541d[_0x13a8a3(0x146)](_0x3000db[0x0])??[]);for(const _0x43b18d of _0x3000db[_0x13a8a3(0x221)](0x1)){const _0x133157=_0x51541d['get'](_0x43b18d)??new Set();for(const _0x436f3f of _0x2c5684){if(!_0x133157[_0x13a8a3(0x1d3)](_0x436f3f))_0x2c5684[_0x13a8a3(0x1eb)](_0x436f3f);}}_0x2c5684['add'](_0x52ee02);const _0x351c3c=_0x51541d[_0x13a8a3(0x146)](_0x52ee02);!setsEqual(_0x351c3c,_0x2c5684)&&(_0x51541d[_0x13a8a3(0x194)](_0x52ee02,_0x2c5684),_0x66ecc9=!![]);}}for(const [_0x425758,_0x583820]of _0x4e5e96){const _0x421db3=_0x51541d[_0x13a8a3(0x146)](_0x425758);if(!_0x421db3)continue;for(const _0x275ffb of _0x583820){if(_0x275ffb['conditionType']!=='EXPRESSION'||typeof _0x275ffb['expression']!==_0x13a8a3(0x239))continue;for(const [_0x4c0e8b,_0x581cac]of _0x1b646e){expressionReferencesVariable(_0x275ffb[_0x13a8a3(0x295)],_0x4c0e8b)&&!_0x421db3[_0x13a8a3(0x1d3)](_0x581cac)&&_0x4b70d6[_0x13a8a3(0x193)]({'path':(_0xb0c6c2[_0x13a8a3(0x146)](_0x275ffb)??'flowJson.edges')+_0x13a8a3(0x252),'message':'Expression\x20references\x20SCRIPT\x20resultVariable\x20'+_0x4c0e8b+_0x13a8a3(0x230)+_0x581cac+_0x13a8a3(0x281)+_0x425758+'.'});}}}}function expressionReferencesVariable(_0x32413a,_0x1d612){const _0x2688c4=a287_0x5e5514;let _0x193da3=0x0;while(_0x193da3<_0x32413a[_0x2688c4(0x196)]){const _0x594b39=_0x32413a[_0x193da3];if(_0x594b39==='\x27'||_0x594b39==='\x22'){_0x193da3=skipQuotedExpressionSegment(_0x32413a,_0x193da3,_0x594b39);continue;}if(!/[A-Za-z_]/[_0x2688c4(0x1e3)](_0x594b39)){_0x193da3+=0x1;continue;}const _0x2b4323=_0x193da3;_0x193da3+=0x1;while(_0x193da3<_0x32413a['length']&&/[A-Za-z0-9_]/[_0x2688c4(0x1e3)](_0x32413a[_0x193da3])){_0x193da3+=0x1;}if(_0x32413a[_0x2688c4(0x221)](_0x2b4323,_0x193da3)!==_0x1d612)continue;let _0x306702=_0x2b4323-0x1;while(_0x306702>=0x0&&/\s/['test'](_0x32413a[_0x306702])){_0x306702-=0x1;}if(_0x32413a[_0x306702]!=='.')return!![];}return![];}function skipQuotedExpressionSegment(_0x390e0d,_0x3cf5f4,_0x56bddb){let _0x30ea1c=_0x3cf5f4+0x1;while(_0x30ea1c<_0x390e0d['length']){if(_0x390e0d[_0x30ea1c]==='\x5c'){_0x30ea1c+=0x2;continue;}if(_0x390e0d[_0x30ea1c]===_0x56bddb)return _0x30ea1c+0x1;_0x30ea1c+=0x1;}return _0x30ea1c;}function resolveEffectiveResultVariable(_0x7c629,_0x55ab45){const _0x36d544=a287_0x5e5514;if(_0x7c629===undefined||_0x7c629===null||_0x55ab45&&_0x7c629==='')return DEFAULT_SCRIPT_RESULT_VARIABLE;if(typeof _0x7c629!==_0x36d544(0x239)||!VARIABLE_PATTERN[_0x36d544(0x1e3)](_0x7c629)||RESERVED_RESULT_VARIABLES[_0x36d544(0x1d3)](_0x7c629)||_0x7c629[_0x36d544(0x167)](_0x36d544(0x1c5)))return undefined;return _0x7c629;}function registerResultVariableOwner(_0x218e00,_0x453d00,_0x252f99,_0x5d2aa8){const _0x30ecb4=a287_0x5e5514;if(_0x218e00[_0x30ecb4(0x1d3)](_0x453d00)){_0x5d2aa8['push']({'path':_0x30ecb4(0x1a8),'message':_0x30ecb4(0x253)+_0x453d00+'.'});return;}_0x218e00[_0x30ecb4(0x194)](_0x453d00,_0x252f99);}function a287_0x3fc4(_0x5bab47,_0x11f13d){_0x5bab47=_0x5bab47-0x13c;const _0x240cc0=a287_0x240c();let _0x3fc4eb=_0x240cc0[_0x5bab47];return _0x3fc4eb;}function setsEqual(_0x5c3280,_0x3553d4){const _0x34f378=a287_0x5e5514;return _0x5c3280[_0x34f378(0x26b)]===_0x3553d4[_0x34f378(0x26b)]&&[..._0x5c3280][_0x34f378(0x28f)](_0x5dd268=>_0x3553d4['has'](_0x5dd268));}function isValidUserId(_0x2f4b19){const _0x5c85a4=a287_0x5e5514;if(typeof _0x2f4b19===_0x5c85a4(0x239))return _0x2f4b19[_0x5c85a4(0x2aa)]()[_0x5c85a4(0x196)]>0x0;return Number[_0x5c85a4(0x1cc)](_0x2f4b19)&&Number(_0x2f4b19)>0x0;}function resolveEdgeEndpoint(_0x4b85eb,_0x33a38e){const _0x1ce7c8=a287_0x5e5514;if(typeof _0x4b85eb===_0x1ce7c8(0x239)&&_0x4b85eb[_0x1ce7c8(0x2aa)]())return _0x4b85eb[_0x1ce7c8(0x2aa)]();if(typeof _0x33a38e===_0x1ce7c8(0x239)&&_0x33a38e[_0x1ce7c8(0x2aa)]())return _0x33a38e[_0x1ce7c8(0x2aa)]();return undefined;}function removeEmptyMetadata(_0x2f01d4,_0x3357b0,_0x2d112e,_0x3a0b06){const _0x142e6b=a287_0x5e5514;if(Array[_0x142e6b(0x19a)](_0x2f01d4)){_0x2f01d4[_0x142e6b(0x275)]((_0x329978,_0x23f0ef)=>removeEmptyMetadata(_0x329978,_0x3357b0+'['+_0x23f0ef+']',_0x2d112e,_0x3a0b06));return;}if(!isRecord(_0x2f01d4))return;for(const [_0x3a7813,_0x307338]of Object[_0x142e6b(0x1fe)](_0x2f01d4)){const _0x514d37=_0x3357b0+'.'+_0x3a7813;if(_0x3a7813===_0x142e6b(0x276)&&isEmptyJsonValue(_0x307338)){delete _0x2f01d4[_0x3a7813],_0x3a0b06[_0x142e6b(0x193)](_0x514d37),_0x2d112e['push']({'code':'empty_metadata_removed','path':_0x514d37,'message':_0x514d37+_0x142e6b(0x288)});continue;}removeEmptyMetadata(_0x307338,_0x514d37,_0x2d112e,_0x3a0b06);}}function isEmptyJsonValue(_0x163bd5){const _0x631b93=a287_0x5e5514;if(_0x163bd5===null||_0x163bd5===undefined)return!![];if(typeof _0x163bd5==='string')return _0x163bd5['trim']()==='';if(Array[_0x631b93(0x19a)](_0x163bd5))return _0x163bd5['length']===0x0;return isRecord(_0x163bd5)&&Object[_0x631b93(0x161)](_0x163bd5)[_0x631b93(0x196)]===0x0;}function a287_0x240c(){const _0x14c04e=['path','timeout.interrupting\x20must\x20be\x20a\x20boolean.','.transferCandidates.strategy','HANDLE','.id','MINUTES','has','sourceNodeId','interrupting','.position.','matchAll','2TEQyUj','.name','FORM_FLOW','flowJson.edges','array','replace','edge\x20target\x20is\x20required.','NaN','role','scriptName','node\x20pageId\x20is\x20no\x20longer\x20supported;\x20use\x20node\x20path\x20instead.','test','position.','stringify','Notification\x20recipient.role\x20must\x20be\x20TO,\x20CC,\x20or\x20BCC.','strategy','Duplicate\x20cc\x20recipient\x20userId:\x20','flowKey','.waypoints[','delete','Notification\x20template.actions\x20must\x20be\x20an\x20array.','edge\x20name\x20must\x20be\x20a\x20string.','Approval\x20flow\x20requires\x20an\x20END\x20node\x20with\x20result\x20','configCode','approval_sys_initiatorUsername','formPermission','add','].taskMode','FAIL','flowJson.nodes[','target','url','cc\x20must\x20be\x20an\x20object.','failurePolicy','approval_sys_dataId','.defaultFlow','assignee','name','entries','.assignee','isFinite','async\x20execution\x20is\x20only\x20supported\x20by\x20SCRIPT\x20node.','.cc','Unsupported\x20pageMode:\x20','.transferCandidates','EXECUTE_BFF\x20timeout\x20requires\x20scriptName.','REJECTED','Notification\x20action\x20must\x20be\x20an\x20object.','.actions','CONDITION\x20non-default\x20edge\x20requires\x20a\x20non-empty\x20expression.','flowJson\x20must\x20be\x20an\x20object.','template','HOURS','failurePolicy\x20must\x20be\x20a\x20string.','formSchema','async','CONDITION\x20node\x20requires\x20exactly\x20one\x20default\x20outgoing\x20edge.','.url','ALWAYS','FlowConfig\x20must\x20be\x20a\x20JSON\x20object.','Custom\x20form\x20configuration\x20is\x20not\x20supported\x20by\x20this\x20rabetbase\x20version;\x20use\x20a\x20business\x20custom\x20page\x20instead.','SCRIPT\x20async\x20retryCount\x20must\x20be\x20between\x201\x20and\x20','transferCandidates','approval_sys_processInstanceId','Unsupported\x20condition\x20type:\x20','.timeout.action','formPermissions','Edge\x20target\x20node\x20not\x20found:\x20','Notification\x20configCode\x20must\x20be\x20a\x20fixed\x20value.','.source','.timeout','flowType','Notification\x20recipients\x20must\x20be\x20an\x20array.','slice','startPageId','flowType\x20is\x20required.','edge\x20id\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','parse','action','pageMode','flowName\x20is\x20required.','Notification\x20action.url\x20must\x20use\x20http/https\x20or\x20a\x20complete\x20supported\x20placeholder.','duration\x20value\x20must\x20be\x20a\x20positive\x20integer.','flowJson.startPath','APPROVAL','timeout.action\x20must\x20be\x20AUTO_APPROVE,\x20AUTO_REJECT,\x20or\x20EXECUTE_BFF.','__rabetbase_local_validation__','.transferCandidates.userIds',',\x20but\x20node\x20','.sequential','warnings','node\x20path\x20is\x20supported\x20only\x20on\x20APPROVAL\x20or\x20END\x20nodes.','value\x20must\x20be\x20a\x20non-empty\x20string.','\x20facts.','Notification\x20recipient\x20must\x20be\x20an\x20object.','Node\x20cannot\x20reach\x20any\x20END.','.facts','string','\x20users.','Accepted\x20as\x20legacy\x20input\x20and\x20removed\x20during\x20normalization;\x20other\x20versions\x20are\x20unsupported.','flowJson.startPageId','.type','START','includes','.async.retryInterval','retryInterval','flowJson.schemaVersion','END','transferCandidates\x20currently\x20supports\x20FIXED\x20only.','Unsupported\x20schemaVersion:\x20','EMAIL','Reserved\x20resultVariable:\x20','ANY','value','nodes\x20must\x20be\x20an\x20array.','.assignee.roleId','.tmp','defaultFlow\x20must\x20be\x20a\x20boolean.','waypoints','filter','Unsupported\x20node\x20type:\x20','FIXED\x20assignee\x20requires\x20userIds.','.expression','Duplicate\x20resultVariable:\x20','value\x20must\x20be\x20an\x20array.','CONDITION\x20non-default\x20edge\x20must\x20use\x20conditionType\x20EXPRESSION.','startPageId\x20is\x20no\x20longer\x20supported;\x20use\x20startPath\x20instead.','\x20is\x20not\x20part\x20of\x20the\x20portable\x20FlowConfig\x20and\x20was\x20removed.','Notification\x20recipient.type\x20must\x20be\x20USER,\x20ROLE,\x20or\x20EMAIL.','flowDesc\x20must\x20be\x20a\x20string.','timeout\x20must\x20be\x20an\x20object.','roleId','findIndex','pageId','NOTIFICATION\x20node\x20requires\x20config.','FORM_FLOW\x20is\x20an\x20approval\x20flow\x20and\x20cannot\x20contain\x20HANDLE\x20tasks;\x20use\x20INDEPENDENT_FLOW\x20for\x20workflows.','resultVariable\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','EXECUTE_BFF','Unsupported\x20notification\x20placeholder:\x20','formDefinitions','hasOwnProperty','text','unit','object','node\x20id\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','Notification\x20recipient.value\x20is\x20required.','integer','size','source','timeout','INDEPENDENT_FLOW\x20cannot\x20bind\x20datasetCode.','map','5LQXfzL','Notification\x20version\x20must\x20be\x20a\x20string.','NOTIFICATION','conditionType','.recipients','forEach','metadata','overwrite','isInteger','SINGLE','boolean','node\x20must\x20be\x20an\x20object.','Notification\x20text\x20contains\x20a\x20malformed\x20placeholder.','readSources','Unsupported\x20flowType:\x20','.timeout.resultVariable','AUTO_APPROVE','\x20is\x20not\x20on\x20every\x20upstream\x20path\x20to\x20','.cc.visible','Notification\x20template.detailMarkdown\x20must\x20be\x20a\x20string.','flowName','APPROVAL\x20node\x20requires\x20exactly\x20one\x20APPROVED\x20outgoing\x20edge.','45uvipCK','BCC','\x20was\x20empty\x20and\x20was\x20removed.','SECONDS','templateName','^[1-9][0-9]*$','.pageId','some','.waypoints','every','END\x20node\x20must\x20not\x20have\x20outgoing\x20edges.','indexOf','approved','position','pageMode\x20applies\x20only\x20to\x20INDEPENDENT_FLOW.','expression','Notification\x20recipient.role\x20must\x20be\x20a\x20string.','approval_sys_operationType','APPROVAL\x20node\x20requires\x20exactly\x20one\x20REJECTED\x20outgoing\x20edge.','.target','failurePolicy\x20must\x20be\x20CONTINUE\x20or\x20FAIL.','Duplicate\x20value:\x20','.assignee.strategy','USER','SINGLE\x20approval\x20supports\x20only\x20one\x20fixed\x20user.','APPROVED','fixed\x20assignee\x20userId\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20positive\x20integer.','No\x20END\x20node\x20is\x20reachable\x20from\x20START.','version','config','PLATFORM_FORM','.path','sequential','Notification\x20recipient.type\x20is\x20required.','startPath\x20applies\x20only\x20to\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','taskMode','trim','.cc.recipientUserIds[','duration\x20requires\x20value\x20and\x20unit.','INDEPENDENT_FLOW','timeout.enabled\x20must\x20be\x20a\x20boolean.','datasetCode','https://json-schema.org/draft/2020-12/schema','#/$defs/timeAmount','\x20timeout\x20must\x20interrupt\x20the\x20approval\x20task.','1178416LaRhza','mode','https://lovrabet.com/schema/rabetbase-flow-config.json','FIXED','variables','scriptResult','actions','].path','get','.approvalMode','Every\x20node\x20requires\x20a\x20non-empty\x20name.','EXPRESSION\x20edge\x20requires\x20expression.','Default\x20cc\x20is\x20only\x20supported\x20by\x20APPROVAL\x20or\x20END\x20node.','1383748GKoVcc','edges','\x20->\x20','.async.retryCount','recipientUserIds','flowJson.nodes.','approval.simple-flow.v1','SCRIPT','pageId\x20must\x20be\x20a\x20non-negative\x20integer.','#/$defs/flowNode','userIds','call','ROLE\x20assignee\x20requires\x20a\x20positive\x20integer\x20roleId.','flowJson.pageMode','PLATFORM_FORM\x20is\x20not\x20supported\x20by\x20this\x20rabetbase\x20version;\x20use\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','#/$defs/position','Flow\x20must\x20contain\x20exactly\x20one\x20START\x20node.','duration\x20unit\x20must\x20be\x20SECONDS,\x20MINUTES,\x20HOURS,\x20or\x20DAYS.','APPROVAL\x20task\x20decision\x20edges\x20must\x20not\x20be\x20default\x20flows.','prototype','edges\x20must\x20be\x20an\x20array.','Unsupported\x20notification\x20version:\x20','keys','NOTIFICATION\x20node\x20requires\x20template.','approval_sys_initiatorUserId','CUSTOM_PAGE','CONTINUE','.detailMarkdown','startsWith','waypoint.','schemaVersion','Edge\x20source\x20node\x20not\x20found:\x20','10153900Emvfdn','\x20is\x20required.','nodes','Notification\x20action.url\x20is\x20required.','.timeout.interrupting','A\x20default\x20flow\x20must\x20not\x20have\x20an\x20expression.','Notification\x20configCode\x20is\x20required.','CONDITION\x20node\x20requires\x20at\x20least\x20two\x20outgoing\x20edges.','defaultFlow','.conditionType','AUTO_REJECT','flowJson.','.text','datasetCode\x20must\x20be\x20a\x20string.','node\x20path\x20must\x20be\x20a\x20non-empty\x20string.','.template','Notification\x20template.facts\x20must\x20be\x20an\x20array.','.taskMode','ALL','detailMarkdown','retryCount','APPROVAL\x20node\x20requires\x20assignee.','async.enabled\x20must\x20be\x20a\x20boolean.','waypoint\x20must\x20contain\x20numeric\x20x\x20and\x20y\x20coordinates.','.role','title','sequential\x20must\x20be\x20a\x20boolean.','START\x20node\x20must\x20not\x20have\x20incoming\x20edges.','CONDITION','ROLE','flowJson','.value','^[A-Za-z_][A-Za-z0-9_]*$','approval_sys_appCode','.assignee.userIds','\x20was\x20empty\x20or\x20used\x20the\x20default\x20','enabled','Duplicate\x20node\x20id:\x20','resultVariable','.version','push','set','INDEPENDENT_FLOW\x20cannot\x20bind\x20pageId.','length','legacy_field_removed','A\x20default\x20flow\x20must\x20use\x20conditionType\x20ALWAYS.','type','isArray','edge\x20must\x20be\x20an\x20object.','DAYS','message','flowDesc','.position','Unsupported\x20task\x20mode:\x20','Rabetbase\x20FlowConfig','Explicit\x20notification\x20recipients\x20require\x20at\x20least\x20one\x20TO.','bindDatasetCode','context','.cc.recipientUserIds','#/$defs/userId','utf8','flowJson.nodes','EXPRESSION','22cPACbE','\x20actions.','1588443FylhEU','#/$defs/flowEdge','.async','3300997WEuVOD','pid','edge\x20source\x20is\x20required.','417768zgjUAf','.config','.timeout.duration','number','Node\x20is\x20not\x20reachable\x20from\x20START.','Unsupported\x20approval\x20mode:\x20','.scriptName','targetNodeId','CONDITION\x20default\x20edge\x20must\x20use\x20conditionType\x20ALWAYS.','HANDLE\x20task\x20timeout\x20only\x20supports\x20EXECUTE_BFF.','\x20must\x20be\x20a\x20finite\x20number\x20greater\x20than\x20or\x20equal\x20to\x200.','Flow\x20must\x20contain\x20at\x20least\x20one\x20END\x20node.','toUpperCase','.resultVariable','\x20value\x20and\x20was\x20removed\x20from\x20the\x20portable\x20FlowConfig.','approvalMode','.async.enabled','catch','flowJson.edges[','approval_sys_','cc.recipientUserIds\x20must\x20be\x20a\x20non-empty\x20array.','label','.failurePolicy','appCode','522666oLfXNw','form','isSafeInteger'];a287_0x240c=function(){return _0x14c04e;};return a287_0x240c();}function isRecord(_0x1664f1){const _0x956bca=a287_0x5e5514;return typeof _0x1664f1===_0x956bca(0x267)&&_0x1664f1!==null&&!Array[_0x956bca(0x19a)](_0x1664f1);}function cloneJsonValue(_0x40cbe9){const _0x58b43e=a287_0x5e5514;return JSON[_0x58b43e(0x225)](JSON[_0x58b43e(0x1e5)](_0x40cbe9));}export async function readFlowConfigFile(_0x3e5d23){const _0x1e3266=a287_0x5e5514,_0x1f7f78=await readFile(resolve(_0x3e5d23),'utf8');return JSON[_0x1e3266(0x225)](_0x1f7f78);}