@lovrabet/rabetbase-cli 2.5.1-beta.6 → 2.5.2-beta.1

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 (319) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/api/generate-sdk-config-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/delete.js +1 -1
  53. package/lib/commands/config/get.js +1 -1
  54. package/lib/commands/config/index.js +1 -1
  55. package/lib/commands/config/init.js +1 -1
  56. package/lib/commands/config/list.js +1 -1
  57. package/lib/commands/config/set.js +1 -1
  58. package/lib/commands/config/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/business-groups.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-restore.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  80. package/lib/commands/db/analysis-batching.js +1 -1
  81. package/lib/commands/db/analyze-batch-plan.js +1 -1
  82. package/lib/commands/db/analyze-cancel.js +1 -1
  83. package/lib/commands/db/analyze-start.js +1 -1
  84. package/lib/commands/db/analyze-status.js +1 -1
  85. package/lib/commands/db/create.js +1 -1
  86. package/lib/commands/db/delete.js +1 -1
  87. package/lib/commands/db/detail.js +1 -1
  88. package/lib/commands/db/diff-refresh-start.js +1 -1
  89. package/lib/commands/db/diff-refresh-status.js +1 -1
  90. package/lib/commands/db/diff.js +1 -1
  91. package/lib/commands/db/index.js +1 -1
  92. package/lib/commands/db/list.js +1 -1
  93. package/lib/commands/db/shared.js +1 -1
  94. package/lib/commands/db/table-diff-shared.js +1 -1
  95. package/lib/commands/db/tables.js +1 -1
  96. package/lib/commands/db/test.js +1 -1
  97. package/lib/commands/db/update.js +1 -1
  98. package/lib/commands/deployment/auto-sync.d.ts +3 -11
  99. package/lib/commands/deployment/auto-sync.js +1 -1
  100. package/lib/commands/deployment/index.js +1 -1
  101. package/lib/commands/deployment/sync.js +1 -1
  102. package/lib/commands/doctor.js +1 -1
  103. package/lib/commands/file/index.js +1 -1
  104. package/lib/commands/issue/index.js +1 -1
  105. package/lib/commands/issue/nudge.js +1 -1
  106. package/lib/commands/issue/report.js +1 -1
  107. package/lib/commands/issue/shared.js +1 -1
  108. package/lib/commands/kb/create.js +1 -1
  109. package/lib/commands/kb/delete.js +1 -1
  110. package/lib/commands/kb/detail.js +1 -1
  111. package/lib/commands/kb/index.js +1 -1
  112. package/lib/commands/kb/list.js +1 -1
  113. package/lib/commands/kb/search.js +1 -1
  114. package/lib/commands/kb/shared.js +1 -1
  115. package/lib/commands/kb/update.js +1 -1
  116. package/lib/commands/logs/index.js +1 -1
  117. package/lib/commands/menu/asset-update.js +1 -1
  118. package/lib/commands/menu/delete.js +1 -1
  119. package/lib/commands/menu/external-link-create.js +1 -1
  120. package/lib/commands/menu/external-link-update.js +1 -1
  121. package/lib/commands/menu/group-create.js +1 -1
  122. package/lib/commands/menu/group-update.js +1 -1
  123. package/lib/commands/menu/index.js +1 -1
  124. package/lib/commands/menu/list.js +1 -1
  125. package/lib/commands/menu/move.js +1 -1
  126. package/lib/commands/menu/regroup-start.js +1 -1
  127. package/lib/commands/menu/rename.js +1 -1
  128. package/lib/commands/menu/shared/compare-table.js +1 -1
  129. package/lib/commands/menu/shared/delete-plan.js +1 -1
  130. package/lib/commands/menu/shared/facts.js +1 -1
  131. package/lib/commands/menu/shared/index.js +1 -1
  132. package/lib/commands/menu/shared/inquirer.js +1 -1
  133. package/lib/commands/menu/shared/local-pages.js +1 -1
  134. package/lib/commands/menu/shared/logic.js +1 -1
  135. package/lib/commands/menu/shared/mutations.js +1 -1
  136. package/lib/commands/menu/shared/service.js +1 -1
  137. package/lib/commands/menu/shared/sync-core.js +1 -1
  138. package/lib/commands/menu/shared/update-core.js +1 -1
  139. package/lib/commands/menu/shared/valid-url.js +1 -1
  140. package/lib/commands/menu/sync.js +1 -1
  141. package/lib/commands/menu/visibility-update.js +1 -1
  142. package/lib/commands/notification/config-create.js +1 -1
  143. package/lib/commands/notification/config-delete.js +1 -1
  144. package/lib/commands/notification/config-list.js +1 -1
  145. package/lib/commands/notification/config-update.js +1 -1
  146. package/lib/commands/notification/index.js +1 -1
  147. package/lib/commands/notification/shared.js +1 -1
  148. package/lib/commands/ocr/index.js +1 -1
  149. package/lib/commands/page/create.js +1 -1
  150. package/lib/commands/page/custom/detail.js +1 -1
  151. package/lib/commands/page/custom/list.js +1 -1
  152. package/lib/commands/page/custom/publish.js +1 -1
  153. package/lib/commands/page/custom/shared.js +1 -1
  154. package/lib/commands/page/custom/syntax.js +1 -1
  155. package/lib/commands/page/custom/template.js +1 -1
  156. package/lib/commands/page/custom/update.js +1 -1
  157. package/lib/commands/page/data-list-status.js +1 -1
  158. package/lib/commands/page/generate-start.js +1 -1
  159. package/lib/commands/page/generate-status.js +1 -1
  160. package/lib/commands/page/index.js +1 -1
  161. package/lib/commands/page/pull.js +1 -1
  162. package/lib/commands/page/push.js +1 -1
  163. package/lib/commands/page/relation-audit.js +1 -1
  164. package/lib/commands/page/restore.js +1 -1
  165. package/lib/commands/page/shared.js +1 -1
  166. package/lib/commands/page/sync.js +1 -1
  167. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  168. package/lib/commands/project/create/format-elapsed.js +1 -1
  169. package/lib/commands/project/create/main.js +1 -1
  170. package/lib/commands/project/create/materialize-project-template.js +1 -1
  171. package/lib/commands/project/create/project-name.js +1 -1
  172. package/lib/commands/project/create/project-template-archive.js +1 -1
  173. package/lib/commands/project/create/project-template-path.js +1 -1
  174. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  175. package/lib/commands/project/create/use-format-code.js +1 -1
  176. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  177. package/lib/commands/project/domain-routing-sync.js +1 -1
  178. package/lib/commands/project/index.js +1 -1
  179. package/lib/commands/project/upgrade.js +1 -1
  180. package/lib/commands/registry.js +1 -1
  181. package/lib/commands/role/delete.js +1 -1
  182. package/lib/commands/role/detail.js +1 -1
  183. package/lib/commands/role/index.js +1 -1
  184. package/lib/commands/role/list.js +1 -1
  185. package/lib/commands/role/shared.js +1 -1
  186. package/lib/commands/role/update.js +1 -1
  187. package/lib/commands/role/user-add.js +1 -1
  188. package/lib/commands/role/user-remove.js +1 -1
  189. package/lib/commands/role/user-resolve.js +1 -1
  190. package/lib/commands/rule/get.js +1 -1
  191. package/lib/commands/rule/index.js +1 -1
  192. package/lib/commands/rule/list.js +1 -1
  193. package/lib/commands/rule/set.js +1 -1
  194. package/lib/commands/rule/shared.js +1 -1
  195. package/lib/commands/run/index.js +1 -1
  196. package/lib/commands/schema.js +1 -1
  197. package/lib/commands/sql/create.js +1 -1
  198. package/lib/commands/sql/delete.js +1 -1
  199. package/lib/commands/sql/detail.js +1 -1
  200. package/lib/commands/sql/exec.js +1 -1
  201. package/lib/commands/sql/index.js +1 -1
  202. package/lib/commands/sql/list.js +1 -1
  203. package/lib/commands/sql/pull.js +1 -1
  204. package/lib/commands/sql/push.js +1 -1
  205. package/lib/commands/sql/shared.js +1 -1
  206. package/lib/commands/sql/status.js +1 -1
  207. package/lib/commands/sql/validate.js +1 -1
  208. package/lib/commands/task/index.js +1 -1
  209. package/lib/commands/task/status.js +1 -1
  210. package/lib/commands/tenant/index.js +1 -1
  211. package/lib/commands/tenant/members-list.js +1 -1
  212. package/lib/commands/tenant/shared.js +1 -1
  213. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  214. package/lib/commands/user-account/index.js +1 -1
  215. package/lib/commands/workspace/add.js +1 -1
  216. package/lib/commands/workspace/index.js +1 -1
  217. package/lib/commands/workspace/remove.js +1 -1
  218. package/lib/config/domain-config.js +1 -1
  219. package/lib/config/project-domain-routing.js +1 -1
  220. package/lib/config/schema.js +1 -1
  221. package/lib/constant/cdn.js +1 -1
  222. package/lib/constant/cli.js +1 -1
  223. package/lib/constant/defaults.js +1 -1
  224. package/lib/constant/domain.js +1 -1
  225. package/lib/constant/env.js +1 -1
  226. package/lib/constant/output.js +1 -1
  227. package/lib/constant/paths.js +1 -1
  228. package/lib/constant/region.js +1 -1
  229. package/lib/constant/risk.js +1 -1
  230. package/lib/constant/routing-profile.js +1 -1
  231. package/lib/context/app-resolver.d.ts +0 -2
  232. package/lib/context/app-resolver.js +1 -1
  233. package/lib/context/auth-resolver.js +1 -1
  234. package/lib/context/config-loader.js +1 -1
  235. package/lib/context.js +1 -1
  236. package/lib/core/alias-resolver.js +1 -1
  237. package/lib/core/api-client.d.ts +0 -2
  238. package/lib/core/api-client.js +1 -1
  239. package/lib/core/bff/config.js +1 -1
  240. package/lib/core/bff/file-system.js +1 -1
  241. package/lib/core/bff/hash.js +1 -1
  242. package/lib/core/bff/lock.js +1 -1
  243. package/lib/core/bff/utils.js +1 -1
  244. package/lib/core/db-resolver.js +1 -1
  245. package/lib/core/kb-search-client.js +1 -1
  246. package/lib/core/page/file-system.js +1 -1
  247. package/lib/core/page/hash.js +1 -1
  248. package/lib/core/page/lock.js +1 -1
  249. package/lib/core/sql-index-auditor.js +1 -1
  250. package/lib/core/sql-sync/config.js +1 -1
  251. package/lib/core/sql-sync/file-system.js +1 -1
  252. package/lib/core/sql-sync/hash.js +1 -1
  253. package/lib/core/sql-sync/lock.js +1 -1
  254. package/lib/core/sql-sync/utils.js +1 -1
  255. package/lib/core/sql-validator.js +1 -1
  256. package/lib/errors.js +1 -1
  257. package/lib/framework/build-all-flags.js +1 -1
  258. package/lib/framework/error-output.js +1 -1
  259. package/lib/framework/explicit-yes.js +1 -1
  260. package/lib/framework/flags.js +1 -1
  261. package/lib/framework/help.js +1 -1
  262. package/lib/framework/index.js +1 -1
  263. package/lib/framework/output.js +1 -1
  264. package/lib/framework/response.js +1 -1
  265. package/lib/framework/runner-alias.js +1 -1
  266. package/lib/framework/runner.js +1 -1
  267. package/lib/framework/schema-export.js +1 -1
  268. package/lib/framework/supported-flags.d.ts +2 -0
  269. package/lib/framework/supported-flags.js +1 -0
  270. package/lib/framework/types.d.ts +2 -4
  271. package/lib/framework/types.js +1 -1
  272. package/lib/generated/build-info.d.ts +4 -4
  273. package/lib/generated/build-info.js +1 -1
  274. package/lib/generated/official-routing.js +1 -1
  275. package/lib/generated/routing-contract.js +1 -1
  276. package/lib/help.js +1 -1
  277. package/lib/postinstall.js +1 -1
  278. package/lib/runtime/confirmation.js +1 -1
  279. package/lib/runtime/event.js +1 -1
  280. package/lib/runtime/index.js +1 -1
  281. package/lib/runtime/queue.js +1 -1
  282. package/lib/runtime/resolve.js +1 -1
  283. package/lib/skills/builtin-skill.js +1 -1
  284. package/lib/skills/main.js +1 -1
  285. package/lib/skills/npx-skills-add.js +1 -1
  286. package/lib/skills/skill-presence.js +1 -1
  287. package/lib/telemetry/cli-command-trace.js +1 -1
  288. package/lib/telemetry/cli-help-trace.js +1 -1
  289. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  290. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  291. package/lib/telemetry/send-cli-trace-log.js +1 -1
  292. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  293. package/lib/utils/ai_config.js +1 -1
  294. package/lib/utils/apply-jq-filter.js +1 -1
  295. package/lib/utils/cdn-config.js +1 -1
  296. package/lib/utils/check-sdk-version.js +1 -1
  297. package/lib/utils/cli-version-check.js +1 -1
  298. package/lib/utils/cli-version-policy.js +1 -1
  299. package/lib/utils/config.js +1 -1
  300. package/lib/utils/entity-with-id.js +1 -1
  301. package/lib/utils/file-utils.js +1 -1
  302. package/lib/utils/guides-cdn.js +1 -1
  303. package/lib/utils/http-client.js +1 -1
  304. package/lib/utils/is-non-interactive.js +1 -1
  305. package/lib/utils/logger.js +1 -1
  306. package/lib/utils/params.js +1 -1
  307. package/lib/utils/platform.js +1 -1
  308. package/lib/utils/sleep.js +1 -1
  309. package/lib/utils/template-replacer.js +1 -1
  310. package/lib/utils/update-notice.js +1 -1
  311. package/lib/utils/version.js +1 -1
  312. package/lib/utils/with-active-cookie.js +1 -1
  313. package/lib/utils/write-cli-side-channel.js +1 -1
  314. package/package.json +1 -1
  315. package/skills/rabetbase/SKILL.md +3 -3
  316. package/skills/rabetbase/references/rabetbase-deployment-sync.md +16 -44
  317. package/skills/rabetbase.manifest.json +3 -3
  318. package/lib/config/deployment-sync.d.ts +0 -10
  319. package/lib/config/deployment-sync.js +0 -1
@@ -1 +1 @@
1
- const a140_0x5d1117=a140_0x44a9;(function(_0x1de7af,_0xf1e56f){const _0x13ae7f=a140_0x44a9,_0x3c575e=_0x1de7af();while(!![]){try{const _0x1dba2d=parseInt(_0x13ae7f(0x1cf))/0x1*(-parseInt(_0x13ae7f(0x1f7))/0x2)+-parseInt(_0x13ae7f(0x1b7))/0x3+-parseInt(_0x13ae7f(0x1b9))/0x4*(parseInt(_0x13ae7f(0x1c9))/0x5)+parseInt(_0x13ae7f(0x19f))/0x6+parseInt(_0x13ae7f(0x1ae))/0x7*(parseInt(_0x13ae7f(0x1b4))/0x8)+-parseInt(_0x13ae7f(0x1f0))/0x9+-parseInt(_0x13ae7f(0x1e9))/0xa;if(_0x1dba2d===_0xf1e56f)break;else _0x3c575e['push'](_0x3c575e['shift']());}catch(_0x28d451){_0x3c575e['push'](_0x3c575e['shift']());}}}(a140_0x13a2,0xedb84));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../commands/menu/shared/facts.js';import{asVerificationError,assertVerified,describeMenuErrorCause,fetchMutationSnapshot,hasFlag,isMenuResponseLoss,mapMenuApiError,menuDryRunResult,menuError,menuFailure,mutationResult,recheckMutationSnapshot,requireExplicitYes}from'../../commands/menu/shared/mutations.js';import{updateMenuEntity}from'../../commands/menu/shared/service.js';import{CliErrors}from'../../errors.js';const BACKEND=[{'method':a140_0x5d1117(0x1d2),'path':a140_0x5d1117(0x1b0)}];export const menuVisibilityUpdate={'service':a140_0x5d1117(0x1c2),'command':a140_0x5d1117(0x1cc),'description':a140_0x5d1117(0x1ab),'risk':'high-risk-write','structuredErrors':!![],'flags':[{'name':a140_0x5d1117(0x208),'type':a140_0x5d1117(0x209),'description':'Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update'},{'name':a140_0x5d1117(0x1ce),'type':a140_0x5d1117(0x209),'description':a140_0x5d1117(0x205)},{'name':a140_0x5d1117(0x1c3),'type':a140_0x5d1117(0x206),'required':!![],'description':'Requested\x20menu\x20visibility'},{'name':a140_0x5d1117(0x1d6),'type':a140_0x5d1117(0x206),'description':a140_0x5d1117(0x1e3)},{'name':'expected-count','type':a140_0x5d1117(0x1d7),'description':a140_0x5d1117(0x1f9)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3d9379){parseInput(_0x3d9379),requireExplicitYes(_0x3d9379);},async 'dryRun'(_0x4f8af6){const _0x582556=a140_0x5d1117,_0x423f02=await buildPlan(_0x4f8af6,!![]),_0x3a0a26=_0x423f02[_0x582556(0x202)][_0x582556(0x1a6)]?.[_0x582556(0x1b5)]??0x0,_0x52c7ab=_0x423f02[_0x582556(0x202)][_0x582556(0x1a9)][_0x582556(0x1b5)]-_0x3a0a26;return menuDryRunResult(_0x423f02[_0x582556(0x202)],{'method':_0x582556(0x1d2),'url':_0x582556(0x1b0),'body':{'updates':_0x423f02[_0x582556(0x202)][_0x582556(0x1a6)]?.[_0x582556(0x1ea)](_0xb0a928=>_0xb0a928[_0x582556(0x1da)])??[]},'description':'Would\x20update\x20visibility\x20for\x20'+_0x3a0a26+'\x20menu(s);\x20skip\x20'+_0x52c7ab+_0x582556(0x1e7)});},async 'execute'(_0x246122){const _0x1c6d50=a140_0x5d1117;requireExplicitYes(_0x246122);const _0x5a5f53=await buildPlan(_0x246122,![]);await recheckMutationSnapshot(_0x246122,_0x5a5f53['plan'],'update\x20menu\x20visibility');const _0x5ced5d=[],_0x79045f=[],_0x40d90f=[];for(const _0x9dc4eb of _0x5a5f53[_0x1c6d50(0x202)][_0x1c6d50(0x1a9)]){if(_0x9dc4eb[_0x1c6d50(0x1e1)][_0x1c6d50(0x1c3)]===_0x5a5f53[_0x1c6d50(0x202)]['requestedVisible']){_0x5ced5d['push']({'id':_0x9dc4eb['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x246122[_0x1c6d50(0x1f4)],_0x246122[_0x1c6d50(0x198)],{'id':_0x9dc4eb['id'],'visible':_0x5a5f53[_0x1c6d50(0x202)][_0x1c6d50(0x1f8)]}),_0x5ced5d[_0x1c6d50(0x20b)]({'id':_0x9dc4eb['id'],'updated':!![],'skipped':![]});}catch(_0x16f95e){const _0x2eeb1a=mapMenuApiError(_0x16f95e,_0x1c6d50(0x1f5),_0x9dc4eb['id']);if(isMenuResponseLoss(_0x16f95e)&&_0x2eeb1a['code']!==_0x1c6d50(0x1df)){_0x40d90f[_0x1c6d50(0x20b)](_0x9dc4eb['id']);continue;}_0x79045f[_0x1c6d50(0x20b)]({'id':_0x9dc4eb['id'],'stage':_0x1c6d50(0x195),'code':_0x2eeb1a[_0x1c6d50(0x1c8)],'message':_0x2eeb1a[_0x1c6d50(0x19a)]});}}let _0x46d3f0;try{_0x46d3f0=await fetchMenuSnapshot(_0x246122['appCode'],_0x246122[_0x1c6d50(0x198)]);}catch(_0x3eccd4){const _0x4702b9=describeMenuErrorCause(_0x3eccd4,_0x1c6d50(0x1ee)),_0x2a0777=_0x40d90f[_0x1c6d50(0x1ea)](_0x57f09c=>({'id':_0x57f09c,'stage':_0x1c6d50(0x197),'code':_0x1c6d50(0x1a0),'message':'Response\x20was\x20lost\x20for\x20menu\x20'+_0x57f09c+_0x1c6d50(0x1d3),'requestedStateConfirmed':![],'recovered':![]})),_0x21fd86={'stage':'verification','code':_0x1c6d50(0x1a0),'message':_0x1c6d50(0x1aa),'targetIds':_0x5a5f53[_0x1c6d50(0x202)][_0x1c6d50(0x1a9)][_0x1c6d50(0x1ea)](_0xe897aa=>_0xe897aa['id']),'requestedStateConfirmed':![],..._0x4702b9};throw menuFailure(asVerificationError(_0x3eccd4,_0x1c6d50(0x19e)),_0x5a5f53['plan'],{'stage':'verification','succeeded':_0x5ced5d,'failedRecords':[..._0x79045f,..._0x2a0777,_0x21fd86],'warnings':[_0x1c6d50(0x1d4)],'verification':{'status':_0x1c6d50(0x1ed),'recoveredCount':0x0,'lookupCommand':'rabetbase\x20menu\x20list\x20--format\x20compress'}});}const _0x452dc9=[];for(const _0x2aaa07 of _0x5ced5d){const _0x50d44d=Number(_0x2aaa07['id']),_0x3693f8=_0x5a5f53[_0x1c6d50(0x1f2)]['get'](_0x50d44d),_0x233344=_0x46d3f0[_0x1c6d50(0x1fa)][_0x1c6d50(0x1ca)](_0x50d44d);try{verifyVisibilityUpdate(_0x3693f8,_0x233344,_0x5a5f53['plan'][_0x1c6d50(0x1f8)]);}catch(_0x1b457e){const _0x16fbc8=asVerificationError(_0x1b457e,_0x1c6d50(0x1e8)+_0x50d44d+_0x1c6d50(0x212));_0x452dc9['push']({'id':_0x50d44d,'stage':_0x1c6d50(0x1c0),'code':_0x16fbc8[_0x1c6d50(0x1c8)],'message':_0x16fbc8[_0x1c6d50(0x19a)],'requestedStateConfirmed':![]});}}for(const _0x5a19a1 of _0x40d90f){const _0x25e56d=_0x5a5f53[_0x1c6d50(0x1f2)][_0x1c6d50(0x1ca)](_0x5a19a1),_0x3740df=_0x46d3f0['byId'][_0x1c6d50(0x1ca)](_0x5a19a1);try{verifyVisibilityUpdate(_0x25e56d,_0x3740df,_0x5a5f53['plan'][_0x1c6d50(0x1f8)]),_0x5ced5d['push']({'id':_0x5a19a1,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x4ded5d){const _0x3af5b0=asVerificationError(_0x4ded5d,_0x1c6d50(0x210)+_0x5a19a1+_0x1c6d50(0x1bd));_0x452dc9[_0x1c6d50(0x20b)]({'id':_0x5a19a1,'stage':_0x1c6d50(0x197),'code':_0x3af5b0['code'],'message':_0x3af5b0[_0x1c6d50(0x19a)],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x452dc9['length']>0x0){const _0x4321d9=_0x452dc9[_0x1c6d50(0x1ea)](_0x5e4a24=>Number(_0x5e4a24['id'])),_0x5e654b=_0x5ced5d[_0x1c6d50(0x1fe)](_0x40b4d6=>_0x40b4d6['recovered']===!![])[_0x1c6d50(0x1b5)],_0x278385=menuError('menu_verification_failed',_0x1c6d50(0x1a1)+_0x4321d9[_0x1c6d50(0x19c)](',\x20')+'.',_0x1c6d50(0x1af));throw menuFailure(_0x278385,_0x5a5f53['plan'],{'stage':_0x1c6d50(0x1c0),'succeeded':_0x5ced5d,'failedRecords':[..._0x79045f,..._0x452dc9],'warnings':[_0x1c6d50(0x1c7)],'verification':{'status':_0x1c6d50(0x1ed),..._0x4321d9[_0x1c6d50(0x1b5)]===0x1?{'targetId':_0x4321d9[0x0]}:{'targetIds':_0x4321d9},'recoveredCount':_0x5e654b,'lookupCommand':'rabetbase\x20menu\x20list\x20--format\x20compress'}});}const _0xd88611=_0x5ced5d[_0x1c6d50(0x1fe)](_0x3ae585=>_0x3ae585[_0x1c6d50(0x20e)]===!![])[_0x1c6d50(0x1b5)],_0x3db7a7=_0x5ced5d[_0x1c6d50(0x1b5)]-_0xd88611,_0x2a3eda={..._0x5a5f53[_0x1c6d50(0x202)],'succeeded':_0x5ced5d,'failed':_0x79045f,'warnings':_0x79045f[_0x1c6d50(0x1b5)]>0x0?[..._0x5a5f53[_0x1c6d50(0x202)][_0x1c6d50(0x1ff)],_0x1c6d50(0x1db)]:_0x5a5f53[_0x1c6d50(0x202)][_0x1c6d50(0x1ff)],'verification':{'checkedBy':_0x1c6d50(0x1bc),'snapshotHash':_0x46d3f0['hash'],'matchesRequestedState':_0x79045f[_0x1c6d50(0x1b5)]===0x0,'recoveredCount':_0x40d90f[_0x1c6d50(0x1b5)]}};return{'ok':_0x79045f[_0x1c6d50(0x1b5)]===0x0,'data':_0x2a3eda,'message':_0x79045f[_0x1c6d50(0x1b5)]===0x0?_0x1c6d50(0x20c)+_0xd88611+_0x1c6d50(0x1d0)+_0x3db7a7+_0x1c6d50(0x1e7):_0x1c6d50(0x1ac)+_0xd88611+_0x1c6d50(0x1ef)+_0x3db7a7+_0x1c6d50(0x1d1)+_0x79045f['length']+_0x1c6d50(0x1a4)};}};function a140_0x13a2(){const _0x4316be=['\x20menu(s);\x20skipped\x20','\x20skipped,\x20','POST','\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.','menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.','expect-visible','number','childrenIds','has','body','Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','update-menu-visibility','url','str','menu_permission_denied','Menu\x20path\x20selector\x20not\x20found:\x20','before','modelType','Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','menu_expected_count_mismatch','childrenCount','\x20unchanged\x20menu(s).','Menu\x20','4204340vGYSMX','map','split','validation','failed','verify\x20menu\x20visibility\x20update','\x20updated,\x20','557883ZJznyv','resources','beforeById','type','appCode','update\x20visibility\x20for','expected-count','6hDmHkk','requestedVisible','Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches','byId','stringify','trim','Menu\x20id\x20selector(s)\x20not\x20found:\x20','filter','warnings','pageId','parentId','plan','values','datasetCode','Exact\x20comma-separated\x20menu\x20paths\x20to\x20update','boolean','true','menu-ids','string','expectVisible','push','Updated\x20visibility\x20for\x20','menu_state_drift','updated','flagMissing','Response\x20was\x20lost\x20and\x20menu\x20','Selected\x20','\x20visibility\x20update\x20could\x20not\x20be\x20verified','set','false','path','update','resourcesValid','update-recovery','cookie','menu_selector_ambiguous','message','update\x20menu\x20visibility','join','num','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','8544456WCaEIb','menu_verification_failed','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','depth','pageType','\x20failed.','Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.','plannedActions','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20','isArray','targets','Final\x20menu\x20visibility\x20readback\x20failed.','Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','Menu\x20visibility\x20update\x20completed:\x20','label','346073bDalmf','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.','/smartapi/menu/update','sort','Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20','expectedCount','80ZAoExS','length','\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.','842721wOjtRb','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.','15356kbHmqh','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.','menu_selector_not_found','menu\x20list','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','datasetId','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.','verification','some','menu','visible','\x20must\x20be\x20true\x20or\x20false.','hash','menuIds','One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','code','40GFIJPj','get','Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20','visibility-update','\x20menu(s),\x20expected\x20','paths','50242yOhrYh'];a140_0x13a2=function(){return _0x4316be;};return a140_0x13a2();}function parseInput(_0x4ec343){const _0x2ec8da=a140_0x5d1117,_0x114fa9=parseMenuIds(_0x4ec343[_0x2ec8da(0x1de)](_0x2ec8da(0x208))),_0x4f1236=parseCsv(_0x4ec343[_0x2ec8da(0x1de)](_0x2ec8da(0x1ce)));if(_0x114fa9[_0x2ec8da(0x1b5)]===0x0&&_0x4f1236['length']===0x0)throw CliErrors[_0x2ec8da(0x1ec)](_0x2ec8da(0x1d5));const _0x1b0cc6=parseBooleanFlag(_0x4ec343,_0x2ec8da(0x1c3),!![]),_0x1f4e09=parseBooleanFlag(_0x4ec343,_0x2ec8da(0x1d6),![]);let _0x2addc1;if(hasFlag(_0x4ec343,_0x2ec8da(0x1f6))){_0x2addc1=_0x4ec343[_0x2ec8da(0x19d)](_0x2ec8da(0x1f6));if(!Number['isSafeInteger'](_0x2addc1)||_0x2addc1<0x0)throw CliErrors[_0x2ec8da(0x1ec)]('--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.');}return{'menuIds':_0x114fa9,'paths':_0x4f1236,'visible':_0x1b0cc6,'expectVisible':_0x1f4e09,'expectedCount':_0x2addc1};}async function buildPlan(_0x21793b,_0x5748d2){const _0x412e12=a140_0x5d1117,_0x17fdac=parseInput(_0x21793b),_0x228408=await fetchMutationSnapshot(_0x21793b,_0x412e12(0x19b)),_0x4734f5=selectTargets(_0x228408['menus'],_0x17fdac[_0x412e12(0x1c6)],_0x17fdac[_0x412e12(0x1ce)]);if(_0x17fdac[_0x412e12(0x1b3)]!==undefined&&_0x4734f5[_0x412e12(0x1b5)]!==_0x17fdac[_0x412e12(0x1b3)])throw menuError(_0x412e12(0x1e5),_0x412e12(0x211)+_0x4734f5[_0x412e12(0x1b5)]+_0x412e12(0x1cd)+_0x17fdac['expectedCount']+'.',_0x412e12(0x1bf));if(_0x17fdac[_0x412e12(0x20a)]!==undefined){const _0x415db9=_0x4734f5[_0x412e12(0x1fe)](_0x3d9066=>_0x3d9066[_0x412e12(0x1c3)]!==_0x17fdac['expectVisible']);if(_0x415db9['length']>0x0)throw menuError(_0x412e12(0x20d),_0x412e12(0x1b2)+_0x415db9[_0x412e12(0x1ea)](_0x4ce78c=>_0x4ce78c['id'])[_0x412e12(0x19c)](',\x20')+'.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.');}const _0x377e76=_0x4734f5[_0x412e12(0x1ea)](_0x4e0870=>({'id':_0x4e0870['id'],'label':_0x4e0870[_0x412e12(0x1ad)],'path':_0x4e0870[_0x412e12(0x194)],'before':{'visible':_0x4e0870[_0x412e12(0x1c3)]},'after':{'visible':_0x17fdac[_0x412e12(0x1c3)]}})),_0x3c1846=_0x377e76[_0x412e12(0x1fe)](_0xa85402=>_0xa85402[_0x412e12(0x1e1)][_0x412e12(0x1c3)]!==_0x17fdac[_0x412e12(0x1c3)])[_0x412e12(0x1ea)](_0x1492c3=>({'stage':_0x412e12(0x1dc),'method':_0x412e12(0x1d2),'path':_0x412e12(0x1b0),'body':{'appCode':_0x21793b[_0x412e12(0x1f4)],'id':_0x1492c3['id'],'visible':_0x17fdac[_0x412e12(0x1c3)]}})),_0x24614b=mutationResult({'operation':_0x412e12(0x1cc),'selector':{'menuIds':_0x17fdac[_0x412e12(0x1c6)],'paths':_0x17fdac[_0x412e12(0x1ce)]},'before':{'menus':_0x4734f5['map'](_0x57385f=>({'id':_0x57385f['id'],'path':_0x57385f[_0x412e12(0x194)],'visible':_0x57385f[_0x412e12(0x1c3)]}))},'after':{'menus':_0x4734f5['map'](_0x279768=>({'id':_0x279768['id'],'path':_0x279768[_0x412e12(0x194)],'visible':_0x17fdac[_0x412e12(0x1c3)]}))},'dryRun':_0x5748d2,'backend':[...BACKEND],'plannedActions':_0x3c1846,'snapshotHash':_0x228408[_0x412e12(0x1c5)],'warnings':_0x3c1846[_0x412e12(0x1b5)]===0x0?[_0x412e12(0x1a5)]:[]});return{'plan':{..._0x24614b,'requestedVisible':_0x17fdac['visible'],'targets':_0x377e76},'beforeById':new Map(_0x4734f5[_0x412e12(0x1ea)](_0x97ec1e=>[_0x97ec1e['id'],_0x97ec1e]))};}function selectTargets(_0x5a61a6,_0x323cb2,_0x60df6d){const _0x48c4f5=a140_0x5d1117,_0x337880=new Map(_0x5a61a6[_0x48c4f5(0x1ea)](_0x5e3e8a=>[_0x5e3e8a['id'],_0x5e3e8a])),_0x185e26=new Map(),_0x377046=_0x323cb2['filter'](_0x1a1d89=>!_0x337880[_0x48c4f5(0x1d9)](_0x1a1d89));if(_0x377046['length']>0x0)throw menuError(_0x48c4f5(0x1bb),_0x48c4f5(0x1fd)+_0x377046['join'](',\x20')+'.',_0x48c4f5(0x1ba));for(const _0x284210 of _0x323cb2){_0x185e26[_0x48c4f5(0x192)](_0x284210,_0x337880[_0x48c4f5(0x1ca)](_0x284210));}for(const _0x35ab95 of _0x60df6d){const _0x17ad38=_0x5a61a6[_0x48c4f5(0x1fe)](_0x4865f2=>_0x4865f2[_0x48c4f5(0x194)]===_0x35ab95);if(_0x17ad38['length']===0x0)throw menuError('menu_selector_not_found',_0x48c4f5(0x1e0)+JSON['stringify'](_0x35ab95)+'.',_0x48c4f5(0x1b8));if(_0x17ad38['length']>0x1)throw menuError(_0x48c4f5(0x199),_0x48c4f5(0x1cb)+JSON['stringify'](_0x35ab95)+'.',_0x48c4f5(0x1a7)+_0x17ad38['map'](_0x141a8e=>_0x141a8e['id'])[_0x48c4f5(0x19c)](',\x20')+'.');const _0x5566e0=_0x17ad38[0x0];_0x185e26[_0x48c4f5(0x192)](_0x5566e0['id'],_0x5566e0);}return[..._0x185e26[_0x48c4f5(0x203)]()];}function a140_0x44a9(_0x4cec2e,_0x1f0f93){_0x4cec2e=_0x4cec2e-0x192;const _0x13a280=a140_0x13a2();let _0x44a92a=_0x13a280[_0x4cec2e];return _0x44a92a;}function parseMenuIds(_0xdd5064){const _0x3071f9=a140_0x5d1117,_0x65b629=parseCsv(_0xdd5064),_0x210e60=_0x65b629['map'](Number);if(_0x210e60[_0x3071f9(0x1c1)](_0x2b69c3=>!Number['isSafeInteger'](_0x2b69c3)||_0x2b69c3<=0x0))throw CliErrors[_0x3071f9(0x1ec)](_0x3071f9(0x1e4));return[...new Set(_0x210e60)];}function parseCsv(_0x35e414){const _0x1fcebb=a140_0x5d1117;return[...new Set(_0x35e414[_0x1fcebb(0x1eb)](',')['map'](_0x23a1aa=>_0x23a1aa[_0x1fcebb(0x1fc)]())[_0x1fcebb(0x1fe)](Boolean))];}function parseBooleanFlag(_0x2b07c9,_0x3ca27b,_0x46a676){const _0x33b7f0=a140_0x5d1117;if(!hasFlag(_0x2b07c9,_0x3ca27b)){if(_0x46a676)throw CliErrors[_0x33b7f0(0x20f)](_0x3ca27b);return undefined;}const _0x4a2b9c=_0x2b07c9['rawFlags'][_0x3ca27b];if(_0x4a2b9c===!![]||_0x4a2b9c===![])return _0x4a2b9c;if(_0x4a2b9c===_0x33b7f0(0x207))return!![];if(_0x4a2b9c===_0x33b7f0(0x193))return![];throw CliErrors[_0x33b7f0(0x1ec)]('--'+_0x3ca27b+_0x33b7f0(0x1c4));}function verifyVisibilityUpdate(_0x4edee8,_0x36247d,_0x33d41e){const _0x21d2c3=a140_0x5d1117;assertVerified(!!_0x36247d,_0x21d2c3(0x1e8)+_0x4edee8['id']+'\x20was\x20not\x20found\x20during\x20visibility\x20verification.'),assertVerified(_0x36247d[_0x21d2c3(0x1c3)]===_0x33d41e,_0x21d2c3(0x1e8)+_0x4edee8['id']+_0x21d2c3(0x1b6));const _0x29a2b4=[['id',_0x36247d['id'],_0x4edee8['id']],[_0x21d2c3(0x201),_0x36247d['parentId'],_0x4edee8[_0x21d2c3(0x201)]],[_0x21d2c3(0x1a2),_0x36247d[_0x21d2c3(0x1a2)],_0x4edee8[_0x21d2c3(0x1a2)]],[_0x21d2c3(0x1ad),_0x36247d[_0x21d2c3(0x1ad)],_0x4edee8[_0x21d2c3(0x1ad)]],[_0x21d2c3(0x194),_0x36247d[_0x21d2c3(0x194)],_0x4edee8[_0x21d2c3(0x194)]],['url',_0x36247d[_0x21d2c3(0x1dd)],_0x4edee8[_0x21d2c3(0x1dd)]],[_0x21d2c3(0x1f3),_0x36247d[_0x21d2c3(0x1f3)],_0x4edee8[_0x21d2c3(0x1f3)]],['sort',_0x36247d[_0x21d2c3(0x1b1)],_0x4edee8[_0x21d2c3(0x1b1)]],['resources',_0x36247d[_0x21d2c3(0x1f1)],_0x4edee8[_0x21d2c3(0x1f1)]],[_0x21d2c3(0x196),_0x36247d['resourcesValid'],_0x4edee8['resourcesValid']],[_0x21d2c3(0x1d8),_0x36247d[_0x21d2c3(0x1d8)],_0x4edee8[_0x21d2c3(0x1d8)]],[_0x21d2c3(0x1e6),_0x36247d['childrenCount'],_0x4edee8[_0x21d2c3(0x1e6)]],[_0x21d2c3(0x200),_0x36247d['pageId'],_0x4edee8[_0x21d2c3(0x200)]],[_0x21d2c3(0x1a3),_0x36247d[_0x21d2c3(0x1a3)],_0x4edee8['pageType']],[_0x21d2c3(0x1e2),_0x36247d[_0x21d2c3(0x1e2)],_0x4edee8[_0x21d2c3(0x1e2)]],[_0x21d2c3(0x1be),_0x36247d[_0x21d2c3(0x1be)],_0x4edee8[_0x21d2c3(0x1be)]],['datasetCode',_0x36247d[_0x21d2c3(0x204)],_0x4edee8[_0x21d2c3(0x204)]]];for(const [_0x3e716d,_0x23327f,_0xf5b816]of _0x29a2b4){assertVerified(sameValue(_0x23327f,_0xf5b816),_0x21d2c3(0x1e8)+_0x4edee8['id']+'\x20'+_0x3e716d+'\x20changed\x20unexpectedly.');}}function sameValue(_0x1af3a0,_0x1ad27b){const _0x20aa4d=a140_0x5d1117;if(Array[_0x20aa4d(0x1a8)](_0x1af3a0)||Array[_0x20aa4d(0x1a8)](_0x1ad27b))return JSON[_0x20aa4d(0x1fb)](_0x1af3a0)===JSON[_0x20aa4d(0x1fb)](_0x1ad27b);return _0x1af3a0===_0x1ad27b;}
1
+ const a140_0x564b38=a140_0x1a27;(function(_0x2ca418,_0x2bef85){const _0x409a1f=a140_0x1a27,_0x1f2f78=_0x2ca418();while(!![]){try{const _0x42d06e=parseInt(_0x409a1f(0x1e4))/0x1+-parseInt(_0x409a1f(0x1e1))/0x2+-parseInt(_0x409a1f(0x21f))/0x3*(-parseInt(_0x409a1f(0x1ef))/0x4)+-parseInt(_0x409a1f(0x232))/0x5+-parseInt(_0x409a1f(0x1f3))/0x6+-parseInt(_0x409a1f(0x236))/0x7+-parseInt(_0x409a1f(0x1c2))/0x8*(-parseInt(_0x409a1f(0x1de))/0x9);if(_0x42d06e===_0x2bef85)break;else _0x1f2f78['push'](_0x1f2f78['shift']());}catch(_0x32e0db){_0x1f2f78['push'](_0x1f2f78['shift']());}}}(a140_0x358e,0x23c15));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../commands/menu/shared/facts.js';import{asVerificationError,assertVerified,describeMenuErrorCause,fetchMutationSnapshot,hasFlag,isMenuResponseLoss,mapMenuApiError,menuDryRunResult,menuError,menuFailure,mutationResult,recheckMutationSnapshot,requireExplicitYes}from'../../commands/menu/shared/mutations.js';import{updateMenuEntity}from'../../commands/menu/shared/service.js';import{CliErrors}from'../../errors.js';const BACKEND=[{'method':a140_0x564b38(0x1ce),'path':a140_0x564b38(0x1fb)}];export const menuVisibilityUpdate={'service':'menu','command':a140_0x564b38(0x209),'description':a140_0x564b38(0x1e7),'risk':a140_0x564b38(0x1f0),'structuredErrors':!![],'flags':[{'name':a140_0x564b38(0x21c),'type':a140_0x564b38(0x1f1),'description':a140_0x564b38(0x1d4)},{'name':'paths','type':a140_0x564b38(0x1f1),'description':a140_0x564b38(0x20f)},{'name':a140_0x564b38(0x1eb),'type':a140_0x564b38(0x22c),'required':!![],'description':a140_0x564b38(0x22b)},{'name':'expect-visible','type':a140_0x564b38(0x22c),'description':a140_0x564b38(0x1ee)},{'name':a140_0x564b38(0x1c4),'type':'number','description':'Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x304194){parseInput(_0x304194),requireExplicitYes(_0x304194);},async 'dryRun'(_0x202596){const _0x3ea5e3=a140_0x564b38,_0x5e32b8=await buildPlan(_0x202596,!![]),_0x5790c8=_0x5e32b8[_0x3ea5e3(0x216)][_0x3ea5e3(0x206)]?.[_0x3ea5e3(0x1d8)]??0x0,_0x5e855f=_0x5e32b8[_0x3ea5e3(0x216)][_0x3ea5e3(0x1d5)][_0x3ea5e3(0x1d8)]-_0x5790c8;return menuDryRunResult(_0x5e32b8[_0x3ea5e3(0x216)],{'method':_0x3ea5e3(0x1ce),'url':'/smartapi/menu/update','body':{'updates':_0x5e32b8[_0x3ea5e3(0x216)]['plannedActions']?.[_0x3ea5e3(0x204)](_0x489927=>_0x489927['body'])??[]},'description':'Would\x20update\x20visibility\x20for\x20'+_0x5790c8+_0x3ea5e3(0x1be)+_0x5e855f+'\x20unchanged\x20menu(s).'});},async 'execute'(_0x4fb306){const _0x596fe2=a140_0x564b38;requireExplicitYes(_0x4fb306);const _0x295b8e=await buildPlan(_0x4fb306,![]);await recheckMutationSnapshot(_0x4fb306,_0x295b8e['plan'],_0x596fe2(0x1ed));const _0x2d3c9e=[],_0x3e64b5=[],_0x2a4ea5=[];for(const _0x3c2e2b of _0x295b8e[_0x596fe2(0x216)]['targets']){if(_0x3c2e2b[_0x596fe2(0x234)][_0x596fe2(0x1eb)]===_0x295b8e[_0x596fe2(0x216)][_0x596fe2(0x207)]){_0x2d3c9e[_0x596fe2(0x1cb)]({'id':_0x3c2e2b['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x4fb306['appCode'],_0x4fb306['cookie'],{'id':_0x3c2e2b['id'],'visible':_0x295b8e['plan'][_0x596fe2(0x207)]}),_0x2d3c9e[_0x596fe2(0x1cb)]({'id':_0x3c2e2b['id'],'updated':!![],'skipped':![]});}catch(_0x2c988d){const _0xce0566=mapMenuApiError(_0x2c988d,_0x596fe2(0x1e6),_0x3c2e2b['id']);if(isMenuResponseLoss(_0x2c988d)&&_0xce0566[_0x596fe2(0x1d7)]!==_0x596fe2(0x22d)){_0x2a4ea5[_0x596fe2(0x1cb)](_0x3c2e2b['id']);continue;}_0x3e64b5[_0x596fe2(0x1cb)]({'id':_0x3c2e2b['id'],'stage':_0x596fe2(0x1d6),'code':_0xce0566[_0x596fe2(0x1d7)],'message':_0xce0566['message']});}}let _0x4d5893;try{_0x4d5893=await fetchMenuSnapshot(_0x4fb306['appCode'],_0x4fb306[_0x596fe2(0x226)]);}catch(_0x1364eb){const _0x6956a7=describeMenuErrorCause(_0x1364eb,_0x596fe2(0x21b)),_0x1354b5=_0x2a4ea5['map'](_0x25b447=>({'id':_0x25b447,'stage':_0x596fe2(0x1c1),'code':_0x596fe2(0x1dc),'message':_0x596fe2(0x230)+_0x25b447+_0x596fe2(0x1fa),'requestedStateConfirmed':![],'recovered':![]})),_0x34d77f={'stage':'verification','code':_0x596fe2(0x1dc),'message':_0x596fe2(0x208),'targetIds':_0x295b8e['plan'][_0x596fe2(0x1d5)][_0x596fe2(0x204)](_0x2a9348=>_0x2a9348['id']),'requestedStateConfirmed':![],..._0x6956a7};throw menuFailure(asVerificationError(_0x1364eb,_0x596fe2(0x1c6)),_0x295b8e[_0x596fe2(0x216)],{'stage':_0x596fe2(0x1c3),'succeeded':_0x2d3c9e,'failedRecords':[..._0x3e64b5,..._0x1354b5,_0x34d77f],'warnings':[_0x596fe2(0x1f8)],'verification':{'status':_0x596fe2(0x20c),'recoveredCount':0x0,'lookupCommand':_0x596fe2(0x223)}});}const _0x599a1e=[];for(const _0x3038f2 of _0x2d3c9e){const _0x2e8136=Number(_0x3038f2['id']),_0x1d5813=_0x295b8e[_0x596fe2(0x224)][_0x596fe2(0x1f6)](_0x2e8136),_0x4f9735=_0x4d5893[_0x596fe2(0x1f7)][_0x596fe2(0x1f6)](_0x2e8136);try{verifyVisibilityUpdate(_0x1d5813,_0x4f9735,_0x295b8e[_0x596fe2(0x216)][_0x596fe2(0x207)]);}catch(_0x21d7fb){const _0x4b8949=asVerificationError(_0x21d7fb,'Menu\x20'+_0x2e8136+_0x596fe2(0x217));_0x599a1e[_0x596fe2(0x1cb)]({'id':_0x2e8136,'stage':_0x596fe2(0x1c3),'code':_0x4b8949['code'],'message':_0x4b8949[_0x596fe2(0x1cc)],'requestedStateConfirmed':![]});}}for(const _0x30e42a of _0x2a4ea5){const _0x7437a7=_0x295b8e[_0x596fe2(0x224)][_0x596fe2(0x1f6)](_0x30e42a),_0x196255=_0x4d5893[_0x596fe2(0x1f7)][_0x596fe2(0x1f6)](_0x30e42a);try{verifyVisibilityUpdate(_0x7437a7,_0x196255,_0x295b8e[_0x596fe2(0x216)][_0x596fe2(0x207)]),_0x2d3c9e[_0x596fe2(0x1cb)]({'id':_0x30e42a,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x50df2){const _0x9397dc=asVerificationError(_0x50df2,_0x596fe2(0x1f5)+_0x30e42a+_0x596fe2(0x20b));_0x599a1e[_0x596fe2(0x1cb)]({'id':_0x30e42a,'stage':_0x596fe2(0x1c1),'code':_0x9397dc[_0x596fe2(0x1d7)],'message':_0x9397dc[_0x596fe2(0x1cc)],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x599a1e[_0x596fe2(0x1d8)]>0x0){const _0x124c7e=_0x599a1e[_0x596fe2(0x204)](_0x11578d=>Number(_0x11578d['id'])),_0xd792b2=_0x2d3c9e[_0x596fe2(0x1bf)](_0x27b0b2=>_0x27b0b2[_0x596fe2(0x22e)]===!![])['length'],_0x5212e8=menuError(_0x596fe2(0x1dc),_0x596fe2(0x1da)+_0x124c7e[_0x596fe2(0x1ea)](',\x20')+'.',_0x596fe2(0x22f));throw menuFailure(_0x5212e8,_0x295b8e['plan'],{'stage':_0x596fe2(0x1c3),'succeeded':_0x2d3c9e,'failedRecords':[..._0x3e64b5,..._0x599a1e],'warnings':[_0x596fe2(0x222)],'verification':{'status':_0x596fe2(0x20c),..._0x124c7e[_0x596fe2(0x1d8)]===0x1?{'targetId':_0x124c7e[0x0]}:{'targetIds':_0x124c7e},'recoveredCount':_0xd792b2,'lookupCommand':_0x596fe2(0x223)}});}const _0x519438=_0x2d3c9e[_0x596fe2(0x1bf)](_0x45eb77=>_0x45eb77[_0x596fe2(0x1c9)]===!![])[_0x596fe2(0x1d8)],_0x1bc7f7=_0x2d3c9e[_0x596fe2(0x1d8)]-_0x519438,_0x16a356={..._0x295b8e[_0x596fe2(0x216)],'succeeded':_0x2d3c9e,'failed':_0x3e64b5,'warnings':_0x3e64b5[_0x596fe2(0x1d8)]>0x0?[..._0x295b8e['plan'][_0x596fe2(0x1ca)],'Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.']:_0x295b8e['plan']['warnings'],'verification':{'checkedBy':_0x596fe2(0x20e),'snapshotHash':_0x4d5893[_0x596fe2(0x22a)],'matchesRequestedState':_0x3e64b5[_0x596fe2(0x1d8)]===0x0,'recoveredCount':_0x2a4ea5[_0x596fe2(0x1d8)]}};return{'ok':_0x3e64b5[_0x596fe2(0x1d8)]===0x0,'data':_0x16a356,'message':_0x3e64b5[_0x596fe2(0x1d8)]===0x0?_0x596fe2(0x227)+_0x519438+_0x596fe2(0x1fd)+_0x1bc7f7+'\x20unchanged\x20menu(s).':_0x596fe2(0x1e0)+_0x519438+_0x596fe2(0x221)+_0x1bc7f7+_0x596fe2(0x21a)+_0x3e64b5[_0x596fe2(0x1d8)]+_0x596fe2(0x1ff)};}};function parseInput(_0x50cfa0){const _0x46e9f0=a140_0x564b38,_0x3f6d5a=parseMenuIds(_0x50cfa0['str'](_0x46e9f0(0x21c))),_0x5870e6=parseCsv(_0x50cfa0[_0x46e9f0(0x1d0)](_0x46e9f0(0x1f2)));if(_0x3f6d5a[_0x46e9f0(0x1d8)]===0x0&&_0x5870e6[_0x46e9f0(0x1d8)]===0x0)throw CliErrors[_0x46e9f0(0x21e)](_0x46e9f0(0x21d));const _0x24612b=parseBooleanFlag(_0x50cfa0,_0x46e9f0(0x1eb),!![]),_0x709b6b=parseBooleanFlag(_0x50cfa0,_0x46e9f0(0x1bc),![]);let _0x514da4;if(hasFlag(_0x50cfa0,_0x46e9f0(0x1c4))){_0x514da4=_0x50cfa0['num'](_0x46e9f0(0x1c4));if(!Number['isSafeInteger'](_0x514da4)||_0x514da4<0x0)throw CliErrors['validation'](_0x46e9f0(0x225));}return{'menuIds':_0x3f6d5a,'paths':_0x5870e6,'visible':_0x24612b,'expectVisible':_0x709b6b,'expectedCount':_0x514da4};}async function buildPlan(_0x49802f,_0x2c1725){const _0x524806=a140_0x564b38,_0x149b42=parseInput(_0x49802f),_0x50b05c=await fetchMutationSnapshot(_0x49802f,_0x524806(0x1ed)),_0x4d5128=selectTargets(_0x50b05c[_0x524806(0x1e5)],_0x149b42['menuIds'],_0x149b42[_0x524806(0x1f2)]);if(_0x149b42[_0x524806(0x1ec)]!==undefined&&_0x4d5128[_0x524806(0x1d8)]!==_0x149b42[_0x524806(0x1ec)])throw menuError(_0x524806(0x1bd),_0x524806(0x210)+_0x4d5128[_0x524806(0x1d8)]+'\x20menu(s),\x20expected\x20'+_0x149b42[_0x524806(0x1ec)]+'.',_0x524806(0x1c7));if(_0x149b42['expectVisible']!==undefined){const _0x59a9a4=_0x4d5128[_0x524806(0x1bf)](_0x5e455d=>_0x5e455d[_0x524806(0x1eb)]!==_0x149b42[_0x524806(0x201)]);if(_0x59a9a4[_0x524806(0x1d8)]>0x0)throw menuError('menu_state_drift',_0x524806(0x233)+_0x59a9a4[_0x524806(0x204)](_0x152a93=>_0x152a93['id'])[_0x524806(0x1ea)](',\x20')+'.',_0x524806(0x1e8));}const _0x4a1ac4=_0x4d5128[_0x524806(0x204)](_0x4a134a=>({'id':_0x4a134a['id'],'label':_0x4a134a[_0x524806(0x1d2)],'path':_0x4a134a[_0x524806(0x237)],'before':{'visible':_0x4a134a[_0x524806(0x1eb)]},'after':{'visible':_0x149b42[_0x524806(0x1eb)]}})),_0x309fe0=_0x4a1ac4[_0x524806(0x1bf)](_0x13e343=>_0x13e343['before'][_0x524806(0x1eb)]!==_0x149b42[_0x524806(0x1eb)])['map'](_0x1b5b7c=>({'stage':_0x524806(0x231),'method':'POST','path':_0x524806(0x1fb),'body':{'appCode':_0x49802f[_0x524806(0x215)],'id':_0x1b5b7c['id'],'visible':_0x149b42[_0x524806(0x1eb)]}})),_0x31cbe1=mutationResult({'operation':_0x524806(0x209),'selector':{'menuIds':_0x149b42[_0x524806(0x212)],'paths':_0x149b42[_0x524806(0x1f2)]},'before':{'menus':_0x4d5128[_0x524806(0x204)](_0x163325=>({'id':_0x163325['id'],'path':_0x163325[_0x524806(0x237)],'visible':_0x163325[_0x524806(0x1eb)]}))},'after':{'menus':_0x4d5128[_0x524806(0x204)](_0x2188e3=>({'id':_0x2188e3['id'],'path':_0x2188e3[_0x524806(0x237)],'visible':_0x149b42[_0x524806(0x1eb)]}))},'dryRun':_0x2c1725,'backend':[...BACKEND],'plannedActions':_0x309fe0,'snapshotHash':_0x50b05c[_0x524806(0x22a)],'warnings':_0x309fe0['length']===0x0?[_0x524806(0x1df)]:[]});return{'plan':{..._0x31cbe1,'requestedVisible':_0x149b42['visible'],'targets':_0x4a1ac4},'beforeById':new Map(_0x4d5128[_0x524806(0x204)](_0x91efb5=>[_0x91efb5['id'],_0x91efb5]))};}function selectTargets(_0x316522,_0x336815,_0xa205b3){const _0x2b670d=a140_0x564b38,_0x5bf3d6=new Map(_0x316522[_0x2b670d(0x204)](_0x5f3419=>[_0x5f3419['id'],_0x5f3419])),_0x3bff6c=new Map(),_0x1aad63=_0x336815[_0x2b670d(0x1bf)](_0x26dd6c=>!_0x5bf3d6['has'](_0x26dd6c));if(_0x1aad63[_0x2b670d(0x1d8)]>0x0)throw menuError(_0x2b670d(0x218),_0x2b670d(0x229)+_0x1aad63[_0x2b670d(0x1ea)](',\x20')+'.','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.');for(const _0xe53b10 of _0x336815){_0x3bff6c[_0x2b670d(0x1c0)](_0xe53b10,_0x5bf3d6['get'](_0xe53b10));}for(const _0x5d332f of _0xa205b3){const _0x43a684=_0x316522['filter'](_0x4e2690=>_0x4e2690[_0x2b670d(0x237)]===_0x5d332f);if(_0x43a684[_0x2b670d(0x1d8)]===0x0)throw menuError('menu_selector_not_found',_0x2b670d(0x205)+JSON['stringify'](_0x5d332f)+'.',_0x2b670d(0x1db));if(_0x43a684['length']>0x1)throw menuError(_0x2b670d(0x200),_0x2b670d(0x1fc)+JSON[_0x2b670d(0x214)](_0x5d332f)+'.',_0x2b670d(0x1c5)+_0x43a684['map'](_0xd0db32=>_0xd0db32['id'])[_0x2b670d(0x1ea)](',\x20')+'.');const _0x405ba3=_0x43a684[0x0];_0x3bff6c[_0x2b670d(0x1c0)](_0x405ba3['id'],_0x405ba3);}return[..._0x3bff6c[_0x2b670d(0x1d3)]()];}function a140_0x1a27(_0x4ce665,_0x2d1928){_0x4ce665=_0x4ce665-0x1bc;const _0x358ed9=a140_0x358e();let _0x1a2736=_0x358ed9[_0x4ce665];return _0x1a2736;}function parseMenuIds(_0x3b72e7){const _0x4cbc7d=a140_0x564b38,_0x6a199a=parseCsv(_0x3b72e7),_0x404bd7=_0x6a199a['map'](Number);if(_0x404bd7[_0x4cbc7d(0x220)](_0x308187=>!Number[_0x4cbc7d(0x20a)](_0x308187)||_0x308187<=0x0))throw CliErrors[_0x4cbc7d(0x21e)](_0x4cbc7d(0x228));return[...new Set(_0x404bd7)];}function parseCsv(_0x28f018){const _0x25f561=a140_0x564b38;return[...new Set(_0x28f018['split'](',')[_0x25f561(0x204)](_0x5a69e5=>_0x5a69e5[_0x25f561(0x1d9)]())['filter'](Boolean))];}function parseBooleanFlag(_0x3cb5f0,_0x6b21a7,_0x555a0c){const _0x4310da=a140_0x564b38;if(!hasFlag(_0x3cb5f0,_0x6b21a7)){if(_0x555a0c)throw CliErrors[_0x4310da(0x235)](_0x6b21a7);return undefined;}const _0x32908a=_0x3cb5f0['rawFlags'][_0x6b21a7];if(_0x32908a===!![]||_0x32908a===![])return _0x32908a;if(_0x32908a===_0x4310da(0x1f4))return!![];if(_0x32908a===_0x4310da(0x1f9))return![];throw CliErrors[_0x4310da(0x21e)]('--'+_0x6b21a7+'\x20must\x20be\x20true\x20or\x20false.');}function verifyVisibilityUpdate(_0x3b8ddc,_0x3d9055,_0x2ffa6a){const _0x5a8235=a140_0x564b38;assertVerified(!!_0x3d9055,_0x5a8235(0x1cf)+_0x3b8ddc['id']+'\x20was\x20not\x20found\x20during\x20visibility\x20verification.'),assertVerified(_0x3d9055[_0x5a8235(0x1eb)]===_0x2ffa6a,'Menu\x20'+_0x3b8ddc['id']+_0x5a8235(0x213));const _0x115246=[['id',_0x3d9055['id'],_0x3b8ddc['id']],['parentId',_0x3d9055['parentId'],_0x3b8ddc['parentId']],['depth',_0x3d9055['depth'],_0x3b8ddc[_0x5a8235(0x1fe)]],[_0x5a8235(0x1d2),_0x3d9055[_0x5a8235(0x1d2)],_0x3b8ddc[_0x5a8235(0x1d2)]],['path',_0x3d9055[_0x5a8235(0x237)],_0x3b8ddc['path']],[_0x5a8235(0x1c8),_0x3d9055[_0x5a8235(0x1c8)],_0x3b8ddc[_0x5a8235(0x1c8)]],[_0x5a8235(0x203),_0x3d9055['type'],_0x3b8ddc[_0x5a8235(0x203)]],[_0x5a8235(0x20d),_0x3d9055['sort'],_0x3b8ddc[_0x5a8235(0x20d)]],[_0x5a8235(0x1e2),_0x3d9055['resources'],_0x3b8ddc['resources']],[_0x5a8235(0x1e9),_0x3d9055['resourcesValid'],_0x3b8ddc[_0x5a8235(0x1e9)]],[_0x5a8235(0x238),_0x3d9055[_0x5a8235(0x238)],_0x3b8ddc['childrenIds']],[_0x5a8235(0x1cd),_0x3d9055[_0x5a8235(0x1cd)],_0x3b8ddc[_0x5a8235(0x1cd)]],[_0x5a8235(0x1d1),_0x3d9055['pageId'],_0x3b8ddc[_0x5a8235(0x1d1)]],['pageType',_0x3d9055[_0x5a8235(0x211)],_0x3b8ddc[_0x5a8235(0x211)]],['modelType',_0x3d9055['modelType'],_0x3b8ddc['modelType']],[_0x5a8235(0x219),_0x3d9055[_0x5a8235(0x219)],_0x3b8ddc[_0x5a8235(0x219)]],[_0x5a8235(0x1dd),_0x3d9055[_0x5a8235(0x1dd)],_0x3b8ddc[_0x5a8235(0x1dd)]]];for(const [_0x3b330e,_0x2e8f81,_0xc6bf5e]of _0x115246){assertVerified(sameValue(_0x2e8f81,_0xc6bf5e),_0x5a8235(0x1cf)+_0x3b8ddc['id']+'\x20'+_0x3b330e+_0x5a8235(0x202));}}function sameValue(_0x41fc9d,_0x1efb10){const _0x19c8fd=a140_0x564b38;if(Array['isArray'](_0x41fc9d)||Array[_0x19c8fd(0x1e3)](_0x1efb10))return JSON['stringify'](_0x41fc9d)===JSON[_0x19c8fd(0x214)](_0x1efb10);return _0x41fc9d===_0x1efb10;}function a140_0x358e(){const _0x59f857=['filter','set','update-recovery','2621096HZccto','verification','expected-count','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.','url','updated','warnings','push','message','childrenCount','POST','Menu\x20','str','pageId','label','values','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','targets','update','code','length','trim','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.','menu_verification_failed','datasetCode','18iDywNU','Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.','Menu\x20visibility\x20update\x20completed:\x20','513494tKvwRk','resources','isArray','218498ZUcTOj','menus','update\x20visibility\x20for','Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.','resourcesValid','join','visible','expectedCount','update\x20menu\x20visibility','Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility','7636wZhJVj','high-risk-write','string','paths','1445652NYUBpf','true','Response\x20was\x20lost\x20and\x20menu\x20','get','byId','The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.','false','\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','/smartapi/menu/update','Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20','\x20menu(s);\x20skipped\x20','depth','\x20failed.','menu_selector_ambiguous','expectVisible','\x20changed\x20unexpectedly.','type','map','Menu\x20path\x20selector\x20not\x20found:\x20','plannedActions','requestedVisible','Final\x20menu\x20visibility\x20readback\x20failed.','visibility-update','isSafeInteger','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','failed','sort','menu\x20list','Exact\x20comma-separated\x20menu\x20paths\x20to\x20update','Selected\x20','pageType','menuIds','\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.','stringify','appCode','plan','\x20visibility\x20update\x20could\x20not\x20be\x20verified','menu_selector_not_found','datasetId','\x20skipped,\x20','verify\x20menu\x20visibility\x20update','menu-ids','menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.','validation','243EIohNB','some','\x20updated,\x20','One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','rabetbase\x20menu\x20list\x20--format\x20compress','beforeById','--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.','cookie','Updated\x20visibility\x20for\x20','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','Menu\x20id\x20selector(s)\x20not\x20found:\x20','hash','Requested\x20menu\x20visibility','boolean','menu_permission_denied','recovered','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.','Response\x20was\x20lost\x20for\x20menu\x20','update-menu-visibility','813930chbLvA','Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20','before','flagMissing','1550311phksMF','path','childrenIds','expect-visible','menu_expected_count_mismatch','\x20menu(s);\x20skip\x20'];a140_0x358e=function(){return _0x59f857;};return a140_0x358e();}
@@ -1 +1 @@
1
- const a141_0x277ff9=a141_0x2629;(function(_0x5c30aa,_0x533ac1){const _0x864a39=a141_0x2629,_0x1b6ea9=_0x5c30aa();while(!![]){try{const _0x233b05=-parseInt(_0x864a39(0x1bc))/0x1*(-parseInt(_0x864a39(0x1a6))/0x2)+parseInt(_0x864a39(0x19f))/0x3+-parseInt(_0x864a39(0x1bf))/0x4+-parseInt(_0x864a39(0x1ad))/0x5+parseInt(_0x864a39(0x1a7))/0x6*(parseInt(_0x864a39(0x1a4))/0x7)+-parseInt(_0x864a39(0x1b6))/0x8*(parseInt(_0x864a39(0x1af))/0x9)+parseInt(_0x864a39(0x1b7))/0xa;if(_0x233b05===_0x533ac1)break;else _0x1b6ea9['push'](_0x1b6ea9['shift']());}catch(_0x2a10f0){_0x1b6ea9['push'](_0x1b6ea9['shift']());}}}(a141_0x8e97,0x80c9e));import{asDryRunResult}from'../../commands/common/dry-run.js';import{createNotificationChannelConfig,getNotificationChannelConfig,isPlatformTransportFailure}from'../../core/api-client.js';function a141_0x2629(_0x2b3352,_0x5799e3){_0x2b3352=_0x2b3352-0x19e;const _0x8e978b=a141_0x8e97();let _0x262944=_0x8e978b[_0x2b3352];return _0x262944;}import{assertSingleNotificationSource,createMutationInput,DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,DEFAULT_NOTIFICATION_READ_TIMEOUT,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,NOTIFICATION_APP_FLAG,NOTIFICATION_INPUT_FLAGS,projectNotificationConfig,readNotificationDocument,safeApiFailure}from'../../commands/notification/shared.js';const CREATE_PATH=a141_0x277ff9(0x1ab);async function prepareCreate(_0x4a44ac){const _0x4eaad8=a141_0x277ff9,_0x280212=await readNotificationDocument(_0x4a44ac,_0x4eaad8(0x1b4)),_0x138af0=createMutationInput(_0x4a44ac[_0x4eaad8(0x1b5)],_0x280212);return{'document':_0x280212,'input':_0x138af0,'planned':projectNotificationConfig({'appCode':_0x4a44ac[_0x4eaad8(0x1b5)],'configName':_0x280212[_0x4eaad8(0x1c0)],'channelType':_0x280212[_0x4eaad8(0x1b2)],'endpointUrl':_0x280212[_0x4eaad8(0x1a8)],'channelConfig':_0x280212[_0x4eaad8(0x1a2)],'description':_0x280212[_0x4eaad8(0x19e)],'connectTimeout':_0x280212[_0x4eaad8(0x1a5)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0x280212[_0x4eaad8(0x1a1)]??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':a141_0x277ff9(0x1b1),'command':a141_0x277ff9(0x1b9),'description':'Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','risk':a141_0x277ff9(0x1b0),'requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x58e22a){assertSingleNotificationSource(_0x58e22a);},async 'dryRun'(_0x55d989){const _0x4067f0=a141_0x277ff9,_0x1c04e7=await prepareCreate(_0x55d989),_0x4c7341=notificationLookupCommand(_0x55d989[_0x4067f0(0x1b5)],_0x1c04e7[_0x4067f0(0x1ba)][_0x4067f0(0x1b2)]);return asDryRunResult({'operation':'create','selector':{'appCode':_0x55d989['appCode'],'configName':_0x1c04e7[_0x4067f0(0x1ba)][_0x4067f0(0x1c0)],'channelType':_0x1c04e7[_0x4067f0(0x1ba)][_0x4067f0(0x1b2)]},'before':null,'after':_0x1c04e7[_0x4067f0(0x1a0)],'dryRun':!![],'backend':{'method':_0x4067f0(0x1a3),'path':CREATE_PATH},'warnings':[],'verification':{'status':'planned','lookupCommand':_0x4c7341}},{'method':'POST','url':CREATE_PATH});},async 'execute'(_0x1e6cf){const _0x3d6e2a=a141_0x277ff9,_0x40e809=await prepareCreate(_0x1e6cf),_0x4f11c6=notificationLookupCommand(_0x1e6cf[_0x3d6e2a(0x1b5)],_0x40e809[_0x3d6e2a(0x1ba)]['channelType']);let _0x122108;try{_0x122108=await createNotificationChannelConfig(_0x40e809[_0x3d6e2a(0x1a9)]);}catch(_0x151145){if(isPlatformTransportFailure(_0x151145))throw notificationError(_0x3d6e2a(0x1ae),_0x3d6e2a(0x1b3),_0x3d6e2a(0x1b8)+_0x4f11c6+';\x20do\x20not\x20resubmit.');throw safeApiFailure(_0x3d6e2a(0x1b4),'mutation',_0x3d6e2a(0x1b8)+_0x4f11c6+';\x20no\x20automatic\x20retry\x20was\x20attempted.');}if(!Number[_0x3d6e2a(0x1bd)](_0x122108)||_0x122108<=0x0)throw notificationError(_0x3d6e2a(0x1ae),'Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.',_0x3d6e2a(0x1b8)+_0x4f11c6+';\x20do\x20not\x20resubmit.');let _0x4274f4;try{const _0x78463d=await getNotificationChannelConfig(_0x122108,_0x1e6cf[_0x3d6e2a(0x1b5)]);_0x4274f4=normalizeExactNotificationConfig(_0x78463d,_0x122108,_0x1e6cf[_0x3d6e2a(0x1b5)]);}catch{throw safeApiFailure(_0x3d6e2a(0x1b4),_0x3d6e2a(0x1be),'Inspect\x20with\x20'+_0x4f11c6+_0x3d6e2a(0x1aa));}return{'ok':!![],'data':{'operation':_0x3d6e2a(0x1b4),'selector':{'appCode':_0x4274f4[_0x3d6e2a(0x1b5)],'id':_0x4274f4['id'],'configCode':_0x4274f4[_0x3d6e2a(0x1ac)],'configName':_0x4274f4['configName'],'channelType':_0x4274f4[_0x3d6e2a(0x1b2)]},'before':null,'after':projectNotificationConfig(_0x4274f4),'dryRun':![],'backend':{'method':_0x3d6e2a(0x1a3),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x3d6e2a(0x1bb),'lookupCommand':_0x4f11c6}},'message':'Created\x20notification\x20config\x20'+_0x4274f4['id']};}};function a141_0x8e97(){const _0x113006=['write','notification','channelType','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','create','appCode','16belbFV','6065840KupfIW','Inspect\x20with\x20','config-create','document','verified','1866EnNMYh','isSafeInteger','verification','1231072vVYHFM','configName','description','1077006RpVcNe','planned','readTimeout','channelConfig','POST','7jKfNaJ','connectTimeout','298Ltgroo','585030grPimS','endpointUrl','input',';\x20do\x20not\x20resubmit\x20automatically.','/notification/channel-config/create','configCode','371385dZnBMi','notification_config_create_outcome_unknown','1942029wuZdif'];a141_0x8e97=function(){return _0x113006;};return a141_0x8e97();}
1
+ const a141_0x55cbb5=a141_0x45cf;(function(_0x377c0c,_0x5bd9c3){const _0x1e2ab6=a141_0x45cf,_0xb89255=_0x377c0c();while(!![]){try{const _0x37a8c5=parseInt(_0x1e2ab6(0xc6))/0x1+parseInt(_0x1e2ab6(0xc3))/0x2*(-parseInt(_0x1e2ab6(0xc5))/0x3)+parseInt(_0x1e2ab6(0xd7))/0x4+-parseInt(_0x1e2ab6(0xd6))/0x5*(parseInt(_0x1e2ab6(0xc0))/0x6)+-parseInt(_0x1e2ab6(0xcd))/0x7+parseInt(_0x1e2ab6(0xcb))/0x8*(parseInt(_0x1e2ab6(0xd0))/0x9)+-parseInt(_0x1e2ab6(0xc7))/0xa*(-parseInt(_0x1e2ab6(0xcf))/0xb);if(_0x37a8c5===_0x5bd9c3)break;else _0xb89255['push'](_0xb89255['shift']());}catch(_0x1d6556){_0xb89255['push'](_0xb89255['shift']());}}}(a141_0x3f1d,0x9fa6a));import{asDryRunResult}from'../../commands/common/dry-run.js';function a141_0x45cf(_0xd2fe52,_0x8014e2){_0xd2fe52=_0xd2fe52-0xc0;const _0x3f1d94=a141_0x3f1d();let _0x45cf3f=_0x3f1d94[_0xd2fe52];return _0x45cf3f;}import{createNotificationChannelConfig,getNotificationChannelConfig,isPlatformTransportFailure}from'../../core/api-client.js';import{assertSingleNotificationSource,createMutationInput,DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,DEFAULT_NOTIFICATION_READ_TIMEOUT,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,NOTIFICATION_APP_FLAG,NOTIFICATION_INPUT_FLAGS,projectNotificationConfig,readNotificationDocument,safeApiFailure}from'../../commands/notification/shared.js';const CREATE_PATH='/notification/channel-config/create';async function prepareCreate(_0xd4faba){const _0x44ea8b=a141_0x45cf,_0xcf4e3c=await readNotificationDocument(_0xd4faba,_0x44ea8b(0xc2)),_0x35830d=createMutationInput(_0xd4faba[_0x44ea8b(0xd1)],_0xcf4e3c);return{'document':_0xcf4e3c,'input':_0x35830d,'planned':projectNotificationConfig({'appCode':_0xd4faba[_0x44ea8b(0xd1)],'configName':_0xcf4e3c[_0x44ea8b(0xe0)],'channelType':_0xcf4e3c[_0x44ea8b(0xd8)],'endpointUrl':_0xcf4e3c['endpointUrl'],'channelConfig':_0xcf4e3c[_0x44ea8b(0xde)],'description':_0xcf4e3c[_0x44ea8b(0xd9)],'connectTimeout':_0xcf4e3c[_0x44ea8b(0xca)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0xcf4e3c[_0x44ea8b(0xd4)]??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}function a141_0x3f1d(){const _0x18de93=['24irKhwA','configCode','5179125GkkGvz','Created\x20notification\x20config\x20','801834NJiuJy','656901fjmBsm','appCode','document','Inspect\x20with\x20','readTimeout','Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.','105dvlhMl','4063560irNAoT','channelType','description',';\x20no\x20automatic\x20retry\x20was\x20attempted.','verification','planned',';\x20do\x20not\x20resubmit.','channelConfig','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','configName','197718JPEbZv','notification_config_create_outcome_unknown','create','10zYMtLA','POST','10068FPGQAY','576165LXfCAY','40aUKqzf','config-create',';\x20do\x20not\x20resubmit\x20automatically.','connectTimeout'];a141_0x3f1d=function(){return _0x18de93;};return a141_0x3f1d();}export const notificationConfigCreate={'service':'notification','command':a141_0x55cbb5(0xc8),'description':'Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','risk':'write','requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x3e7386){assertSingleNotificationSource(_0x3e7386);},async 'dryRun'(_0x5c89cd){const _0x1fca7c=a141_0x55cbb5,_0x4f2cf9=await prepareCreate(_0x5c89cd),_0x3784a6=notificationLookupCommand(_0x5c89cd[_0x1fca7c(0xd1)],_0x4f2cf9[_0x1fca7c(0xd2)][_0x1fca7c(0xd8)]);return asDryRunResult({'operation':_0x1fca7c(0xc2),'selector':{'appCode':_0x5c89cd[_0x1fca7c(0xd1)],'configName':_0x4f2cf9[_0x1fca7c(0xd2)][_0x1fca7c(0xe0)],'channelType':_0x4f2cf9[_0x1fca7c(0xd2)]['channelType']},'before':null,'after':_0x4f2cf9['planned'],'dryRun':!![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':[],'verification':{'status':_0x1fca7c(0xdc),'lookupCommand':_0x3784a6}},{'method':_0x1fca7c(0xc4),'url':CREATE_PATH});},async 'execute'(_0x465f6d){const _0x38ac7b=a141_0x55cbb5,_0x25faf0=await prepareCreate(_0x465f6d),_0xce819e=notificationLookupCommand(_0x465f6d[_0x38ac7b(0xd1)],_0x25faf0[_0x38ac7b(0xd2)][_0x38ac7b(0xd8)]);let _0x3e453b;try{_0x3e453b=await createNotificationChannelConfig(_0x25faf0['input']);}catch(_0x84665f){if(isPlatformTransportFailure(_0x84665f))throw notificationError(_0x38ac7b(0xc1),_0x38ac7b(0xdf),_0x38ac7b(0xd3)+_0xce819e+_0x38ac7b(0xdd));throw safeApiFailure(_0x38ac7b(0xc2),'mutation',_0x38ac7b(0xd3)+_0xce819e+_0x38ac7b(0xda));}if(!Number['isSafeInteger'](_0x3e453b)||_0x3e453b<=0x0)throw notificationError(_0x38ac7b(0xc1),_0x38ac7b(0xd5),_0x38ac7b(0xd3)+_0xce819e+_0x38ac7b(0xdd));let _0x199f5e;try{const _0x4198fd=await getNotificationChannelConfig(_0x3e453b,_0x465f6d[_0x38ac7b(0xd1)]);_0x199f5e=normalizeExactNotificationConfig(_0x4198fd,_0x3e453b,_0x465f6d[_0x38ac7b(0xd1)]);}catch{throw safeApiFailure(_0x38ac7b(0xc2),_0x38ac7b(0xdb),_0x38ac7b(0xd3)+_0xce819e+_0x38ac7b(0xc9));}return{'ok':!![],'data':{'operation':_0x38ac7b(0xc2),'selector':{'appCode':_0x199f5e[_0x38ac7b(0xd1)],'id':_0x199f5e['id'],'configCode':_0x199f5e[_0x38ac7b(0xcc)],'configName':_0x199f5e[_0x38ac7b(0xe0)],'channelType':_0x199f5e[_0x38ac7b(0xd8)]},'before':null,'after':projectNotificationConfig(_0x199f5e),'dryRun':![],'backend':{'method':_0x38ac7b(0xc4),'path':CREATE_PATH},'warnings':[],'verification':{'status':'verified','lookupCommand':_0xce819e}},'message':_0x38ac7b(0xce)+_0x199f5e['id']};}};
@@ -1 +1 @@
1
- const a142_0x20f33b=a142_0x493b;(function(_0x55c354,_0x57c580){const _0x5ecd53=a142_0x493b,_0x45735e=_0x55c354();while(!![]){try{const _0x5391d9=-parseInt(_0x5ecd53(0x16c))/0x1+parseInt(_0x5ecd53(0x16e))/0x2+-parseInt(_0x5ecd53(0x16f))/0x3+-parseInt(_0x5ecd53(0x168))/0x4+parseInt(_0x5ecd53(0x16d))/0x5*(-parseInt(_0x5ecd53(0x174))/0x6)+parseInt(_0x5ecd53(0x179))/0x7+parseInt(_0x5ecd53(0x162))/0x8;if(_0x5391d9===_0x57c580)break;else _0x45735e['push'](_0x45735e['shift']());}catch(_0x3ed773){_0x45735e['push'](_0x45735e['shift']());}}}(a142_0x3fa8,0x712a0));import{asDryRunResult}from'../../commands/common/dry-run.js';import{deleteNotificationChannelConfig,isPlatformTransportFailure,listNotificationChannelConfigs}from'../../core/api-client.js';import{notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,projectNotificationConfig,readNotificationId,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure,validateNotificationDeleteReadback}from'../../commands/notification/shared.js';function a142_0x493b(_0x1bf6f4,_0xf34bfe){_0x1bf6f4=_0x1bf6f4-0x161;const _0x3fa819=a142_0x3fa8();let _0x493b0f=_0x3fa819[_0x1bf6f4];return _0x493b0f;}const DELETE_PATH='/notification/channel-config/delete',REFERENCE_WARNING=a142_0x20f33b(0x171);function a142_0x3fa8(){const _0x34c7b4=['channelType','11002952yYgmEK','Deleted\x20notification\x20config\x20','POST',';\x20do\x20not\x20resubmit\x20automatically.','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','Notification\x20config\x20','1134608akTyej','mutation','high-risk-write','verified','587931ibGthf','25HRuKTk','696490UyxkIw','310122wkdhAz','\x20remains\x20present\x20after\x20delete.','Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.','before','appCode','680934lyIQWu','some','config-delete','notification_config_delete_verification_failed','Inspect\x20with\x20','1976156TsCzTV','delete','notification'];a142_0x3fa8=function(){return _0x34c7b4;};return a142_0x3fa8();}async function prepareDelete(_0x5b7611){const _0x5befc2=a142_0x20f33b,_0x38fa47=readNotificationId(_0x5b7611),_0x2f0bfc=await requireExactNotificationConfig(_0x5b7611[_0x5befc2(0x173)],_0x38fa47,'delete');return{'id':_0x38fa47,'before':_0x2f0bfc};}export const notificationConfigDelete={'service':a142_0x20f33b(0x17b),'command':a142_0x20f33b(0x176),'description':a142_0x20f33b(0x166),'risk':a142_0x20f33b(0x16a),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x56caab){readNotificationId(_0x56caab),requireNotificationExplicitYes(_0x56caab);},async 'dryRun'(_0x3e7a24){const _0x5ec578=a142_0x20f33b,_0x5c40de=await prepareDelete(_0x3e7a24),_0x382977=notificationLookupCommand(_0x3e7a24[_0x5ec578(0x173)],_0x5c40de[_0x5ec578(0x172)][_0x5ec578(0x161)]);return asDryRunResult({'operation':_0x5ec578(0x17a),'selector':notificationSelector(_0x5c40de[_0x5ec578(0x172)]),'before':projectNotificationConfig(_0x5c40de[_0x5ec578(0x172)]),'after':null,'dryRun':!![],'backend':{'method':_0x5ec578(0x164),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':'planned','lookupCommand':_0x382977}},{'method':_0x5ec578(0x164),'url':DELETE_PATH});},async 'execute'(_0x2fc10f){const _0x1364e2=a142_0x20f33b;requireNotificationExplicitYes(_0x2fc10f);const _0x21615f=await prepareDelete(_0x2fc10f),_0x27e17a=notificationLookupCommand(_0x2fc10f[_0x1364e2(0x173)],_0x21615f['before']['channelType']);let _0x3a1989=![];try{await deleteNotificationChannelConfig(_0x21615f['id'],_0x2fc10f[_0x1364e2(0x173)]);}catch(_0x508808){if(!isPlatformTransportFailure(_0x508808))throw safeApiFailure('delete',_0x1364e2(0x169),_0x1364e2(0x178)+_0x27e17a+';\x20no\x20automatic\x20retry\x20was\x20attempted.');_0x3a1989=!![];}let _0x1effb0;try{_0x1effb0=await listNotificationChannelConfigs(_0x2fc10f[_0x1364e2(0x173)],_0x21615f[_0x1364e2(0x172)][_0x1364e2(0x161)]),validateNotificationDeleteReadback(_0x1effb0,_0x2fc10f[_0x1364e2(0x173)],_0x21615f[_0x1364e2(0x172)]['channelType']);}catch{throw notificationError(_0x3a1989?'notification_config_delete_outcome_unknown':'notification_config_delete_verification_unavailable',_0x1364e2(0x167)+_0x21615f['id']+'\x20delete\x20could\x20not\x20be\x20verified.','Inspect\x20with\x20'+_0x27e17a+';\x20do\x20not\x20resubmit\x20automatically.');}if(_0x1effb0[_0x1364e2(0x175)](_0x5bd600=>_0x5bd600['id']===_0x21615f['id']))throw notificationError(_0x3a1989?'notification_config_delete_outcome_unknown':_0x1364e2(0x177),_0x1364e2(0x167)+_0x21615f['id']+_0x1364e2(0x170),_0x1364e2(0x178)+_0x27e17a+_0x1364e2(0x165));const _0x7ba80d=[REFERENCE_WARNING];return _0x3a1989&&_0x7ba80d['unshift']('Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':_0x1364e2(0x17a),'selector':notificationSelector(_0x21615f['before']),'before':projectNotificationConfig(_0x21615f[_0x1364e2(0x172)]),'after':null,'dryRun':![],'backend':{'method':_0x1364e2(0x164),'path':DELETE_PATH},'warnings':_0x7ba80d,'verification':{'status':_0x1364e2(0x16b),'absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x3a1989,'lookupCommand':_0x27e17a}},'message':_0x1364e2(0x163)+_0x21615f['id']};}};
1
+ function a142_0x3490(_0x158a9d,_0x3d5279){_0x158a9d=_0x158a9d-0x10c;const _0x8fc45d=a142_0x8fc4();let _0x34901e=_0x8fc45d[_0x158a9d];return _0x34901e;}const a142_0x289447=a142_0x3490;(function(_0x4c52ca,_0x3e9d9c){const _0x51d2be=a142_0x3490,_0x3a5a5c=_0x4c52ca();while(!![]){try{const _0x3b9dc7=parseInt(_0x51d2be(0x125))/0x1+-parseInt(_0x51d2be(0x10e))/0x2*(-parseInt(_0x51d2be(0x120))/0x3)+parseInt(_0x51d2be(0x11e))/0x4*(parseInt(_0x51d2be(0x10d))/0x5)+parseInt(_0x51d2be(0x118))/0x6+parseInt(_0x51d2be(0x113))/0x7+parseInt(_0x51d2be(0x128))/0x8*(-parseInt(_0x51d2be(0x114))/0x9)+-parseInt(_0x51d2be(0x110))/0xa;if(_0x3b9dc7===_0x3e9d9c)break;else _0x3a5a5c['push'](_0x3a5a5c['shift']());}catch(_0x537854){_0x3a5a5c['push'](_0x3a5a5c['shift']());}}}(a142_0x8fc4,0x8ace8));import{asDryRunResult}from'../../commands/common/dry-run.js';import{deleteNotificationChannelConfig,isPlatformTransportFailure,listNotificationChannelConfigs}from'../../core/api-client.js';import{notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,projectNotificationConfig,readNotificationId,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure,validateNotificationDeleteReadback}from'../../commands/notification/shared.js';const DELETE_PATH=a142_0x289447(0x117),REFERENCE_WARNING=a142_0x289447(0x11d);function a142_0x8fc4(){const _0x5c72e1=['unshift','Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.','config-delete','Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.','17636eODyUV','notification_config_delete_verification_unavailable','897IfMhGg','verified','high-risk-write',';\x20do\x20not\x20resubmit\x20automatically.','Inspect\x20with\x20','964958CJJRgw','some','delete','473512ITLDnk','appCode','\x20delete\x20could\x20not\x20be\x20verified.','notification_config_delete_outcome_unknown','Notification\x20config\x20','POST','875ObfPmM','5204zEyGVi','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','12427610pQYiFS','\x20remains\x20present\x20after\x20delete.','channelType','1225875grzWLb','153DNfZLQ','planned','before','/notification/channel-config/delete','767220GpULdd','mutation'];a142_0x8fc4=function(){return _0x5c72e1;};return a142_0x8fc4();}async function prepareDelete(_0x526e9c){const _0x350469=a142_0x289447,_0x267112=readNotificationId(_0x526e9c),_0x51e8c2=await requireExactNotificationConfig(_0x526e9c[_0x350469(0x129)],_0x267112,_0x350469(0x127));return{'id':_0x267112,'before':_0x51e8c2};}export const notificationConfigDelete={'service':'notification','command':a142_0x289447(0x11c),'description':a142_0x289447(0x10f),'risk':a142_0x289447(0x122),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x49d817){readNotificationId(_0x49d817),requireNotificationExplicitYes(_0x49d817);},async 'dryRun'(_0xb2bab6){const _0x4813ce=a142_0x289447,_0xd14826=await prepareDelete(_0xb2bab6),_0x442d8c=notificationLookupCommand(_0xb2bab6[_0x4813ce(0x129)],_0xd14826[_0x4813ce(0x116)]['channelType']);return asDryRunResult({'operation':_0x4813ce(0x127),'selector':notificationSelector(_0xd14826[_0x4813ce(0x116)]),'before':projectNotificationConfig(_0xd14826['before']),'after':null,'dryRun':!![],'backend':{'method':_0x4813ce(0x10c),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':_0x4813ce(0x115),'lookupCommand':_0x442d8c}},{'method':_0x4813ce(0x10c),'url':DELETE_PATH});},async 'execute'(_0x2729a3){const _0x450d16=a142_0x289447;requireNotificationExplicitYes(_0x2729a3);const _0xa48b93=await prepareDelete(_0x2729a3),_0x45c118=notificationLookupCommand(_0x2729a3[_0x450d16(0x129)],_0xa48b93[_0x450d16(0x116)][_0x450d16(0x112)]);let _0x1f38fe=![];try{await deleteNotificationChannelConfig(_0xa48b93['id'],_0x2729a3[_0x450d16(0x129)]);}catch(_0x1592f4){if(!isPlatformTransportFailure(_0x1592f4))throw safeApiFailure(_0x450d16(0x127),_0x450d16(0x119),_0x450d16(0x124)+_0x45c118+';\x20no\x20automatic\x20retry\x20was\x20attempted.');_0x1f38fe=!![];}let _0x42f7c7;try{_0x42f7c7=await listNotificationChannelConfigs(_0x2729a3['appCode'],_0xa48b93[_0x450d16(0x116)][_0x450d16(0x112)]),validateNotificationDeleteReadback(_0x42f7c7,_0x2729a3[_0x450d16(0x129)],_0xa48b93[_0x450d16(0x116)][_0x450d16(0x112)]);}catch{throw notificationError(_0x1f38fe?_0x450d16(0x12b):_0x450d16(0x11f),_0x450d16(0x12c)+_0xa48b93['id']+_0x450d16(0x12a),_0x450d16(0x124)+_0x45c118+_0x450d16(0x123));}if(_0x42f7c7[_0x450d16(0x126)](_0x330981=>_0x330981['id']===_0xa48b93['id']))throw notificationError(_0x1f38fe?'notification_config_delete_outcome_unknown':'notification_config_delete_verification_failed',_0x450d16(0x12c)+_0xa48b93['id']+_0x450d16(0x111),_0x450d16(0x124)+_0x45c118+';\x20do\x20not\x20resubmit\x20automatically.');const _0x2b78cb=[REFERENCE_WARNING];return _0x1f38fe&&_0x2b78cb[_0x450d16(0x11a)](_0x450d16(0x11b)),{'ok':!![],'data':{'operation':_0x450d16(0x127),'selector':notificationSelector(_0xa48b93['before']),'before':projectNotificationConfig(_0xa48b93[_0x450d16(0x116)]),'after':null,'dryRun':![],'backend':{'method':_0x450d16(0x10c),'path':DELETE_PATH},'warnings':_0x2b78cb,'verification':{'status':_0x450d16(0x121),'absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x1f38fe,'lookupCommand':_0x45c118}},'message':'Deleted\x20notification\x20config\x20'+_0xa48b93['id']};}};
@@ -1 +1 @@
1
- const a143_0x2acb3d=a143_0x7e12;function a143_0x30f8(){const _0x28a0dc=['3gkTUXD','3374vTPNSL','10648854xSsyQp','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','11wEIIyk','\x20notification\x20config(s)','18761090eNZEcu','985XncUXT','50239HeRRHq','6410358WPcUqp','571ixgcQM','notification','config-list','896ALfQZe','map','2457772UxcFcX','Notification\x20channel\x20type','appCode','type'];a143_0x30f8=function(){return _0x28a0dc;};return a143_0x30f8();}(function(_0x32d32d,_0x3fb047){const _0x5a1289=a143_0x7e12,_0x54057a=_0x32d32d();while(!![]){try{const _0x4fa1cb=-parseInt(_0x5a1289(0x8e))/0x1*(parseInt(_0x5a1289(0x85))/0x2)+parseInt(_0x5a1289(0x84))/0x3*(parseInt(_0x5a1289(0x93))/0x4)+parseInt(_0x5a1289(0x8b))/0x5+parseInt(_0x5a1289(0x8d))/0x6+parseInt(_0x5a1289(0x8c))/0x7*(parseInt(_0x5a1289(0x91))/0x8)+parseInt(_0x5a1289(0x86))/0x9+parseInt(_0x5a1289(0x8a))/0xa*(-parseInt(_0x5a1289(0x88))/0xb);if(_0x4fa1cb===_0x3fb047)break;else _0x54057a['push'](_0x54057a['shift']());}catch(_0x6f4661){_0x54057a['push'](_0x54057a['shift']());}}}(a143_0x30f8,0xcacd5));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listNotificationChannelConfigs}from'../../core/api-client.js';function a143_0x7e12(_0x2f2b1c,_0x14bf24){_0x2f2b1c=_0x2f2b1c-0x81;const _0x30f8a9=a143_0x30f8();let _0x7e128=_0x30f8a9[_0x2f2b1c];return _0x7e128;}import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a143_0x2acb3d(0x8f),'command':a143_0x2acb3d(0x90),'description':a143_0x2acb3d(0x87),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a143_0x2acb3d(0x83),'type':'string','description':a143_0x2acb3d(0x81),'enum':NOTIFICATION_CHANNEL_TYPES,'default':'EMAIL'}],async 'validate'(_0x582145){readNotificationChannelType(_0x582145);},async 'execute'(_0xc8e69a){const _0x177df3=a143_0x2acb3d,_0x4f33d5=readNotificationChannelType(_0xc8e69a),_0x229f89=await listNotificationChannelConfigs(_0xc8e69a[_0x177df3(0x82)],_0x4f33d5),_0x5aa4a3=_0x229f89[_0x177df3(0x92)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0xc8e69a[_0x177df3(0x82)],'channelType':_0x4f33d5,'count':_0x5aa4a3['length'],'configs':_0x5aa4a3},'message':'Found\x20'+_0x5aa4a3['length']+'\x20'+_0x4f33d5+_0x177df3(0x89)};}};
1
+ const a143_0xf3aa4f=a143_0x143e;(function(_0x33e1e0,_0x154598){const _0x3cd2cc=a143_0x143e,_0x164523=_0x33e1e0();while(!![]){try{const _0x2e8de3=-parseInt(_0x3cd2cc(0xec))/0x1+-parseInt(_0x3cd2cc(0xf9))/0x2+-parseInt(_0x3cd2cc(0xe9))/0x3*(parseInt(_0x3cd2cc(0xf4))/0x4)+parseInt(_0x3cd2cc(0xf3))/0x5+parseInt(_0x3cd2cc(0xf7))/0x6+-parseInt(_0x3cd2cc(0xed))/0x7+parseInt(_0x3cd2cc(0xf8))/0x8;if(_0x2e8de3===_0x154598)break;else _0x164523['push'](_0x164523['shift']());}catch(_0x39e88f){_0x164523['push'](_0x164523['shift']());}}}(a143_0x2c46,0xa8152));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listNotificationChannelConfigs}from'../../core/api-client.js';function a143_0x143e(_0x5f12f1,_0x1816eb){_0x5f12f1=_0x5f12f1-0xe8;const _0x2c4653=a143_0x2c46();let _0x143e15=_0x2c4653[_0x5f12f1];return _0x143e15;}function a143_0x2c46(){const _0xadacda=['15GcpNPc','map','\x20notification\x20config(s)','1268086uaMSll','5096231KoGLUs','config-list','type','length','notification','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','5532395HjFWNc','704516RzHWMb','Found\x20','string','4876890spKxAp','17002456mVVaro','958742kuLFsx','appCode'];a143_0x2c46=function(){return _0xadacda;};return a143_0x2c46();}import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a143_0xf3aa4f(0xf1),'command':a143_0xf3aa4f(0xee),'description':a143_0xf3aa4f(0xf2),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a143_0xf3aa4f(0xef),'type':a143_0xf3aa4f(0xf6),'description':'Notification\x20channel\x20type','enum':NOTIFICATION_CHANNEL_TYPES,'default':'EMAIL'}],async 'validate'(_0x582d72){readNotificationChannelType(_0x582d72);},async 'execute'(_0x6099fc){const _0x1d8da2=a143_0xf3aa4f,_0x36b86f=readNotificationChannelType(_0x6099fc),_0x4da035=await listNotificationChannelConfigs(_0x6099fc[_0x1d8da2(0xe8)],_0x36b86f),_0x1609d9=_0x4da035[_0x1d8da2(0xea)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x6099fc[_0x1d8da2(0xe8)],'channelType':_0x36b86f,'count':_0x1609d9[_0x1d8da2(0xf0)],'configs':_0x1609d9},'message':_0x1d8da2(0xf5)+_0x1609d9[_0x1d8da2(0xf0)]+'\x20'+_0x36b86f+_0x1d8da2(0xeb)};}};
@@ -1 +1 @@
1
- const a144_0x228206=a144_0x1130;(function(_0x1b95b4,_0x3f6e93){const _0x11af45=a144_0x1130,_0x3dffd3=_0x1b95b4();while(!![]){try{const _0xa6bc80=-parseInt(_0x11af45(0x76))/0x1+parseInt(_0x11af45(0x95))/0x2*(-parseInt(_0x11af45(0x96))/0x3)+parseInt(_0x11af45(0x7b))/0x4*(parseInt(_0x11af45(0x88))/0x5)+-parseInt(_0x11af45(0x8c))/0x6*(parseInt(_0x11af45(0x8e))/0x7)+-parseInt(_0x11af45(0x8f))/0x8+parseInt(_0x11af45(0x7f))/0x9*(parseInt(_0x11af45(0x73))/0xa)+-parseInt(_0x11af45(0x6f))/0xb*(-parseInt(_0x11af45(0x74))/0xc);if(_0xa6bc80===_0x3f6e93)break;else _0x3dffd3['push'](_0x3dffd3['shift']());}catch(_0x538f1f){_0x3dffd3['push'](_0x3dffd3['shift']());}}}(a144_0x4520,0x97678));import{asDryRunResult}from'../../commands/common/dry-run.js';import{getNotificationChannelConfig,isPlatformTransportFailure,updateNotificationChannelConfig}from'../../core/api-client.js';function a144_0x4520(){const _0x10a6dc=['update','config-update','Inspect\x20with\x20--id\x20','6DMkHbI','\x20with\x20','3119606fQZtgf','971920jRFoNl','verifiedFields','channelType','/notification/channel-config/update','high-risk-write','appCode','6OgWTVH','762417BIOjYo','4886321kThvQa','notification_config_update_outcome_unknown','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','notification','471430OcyVTc','48tzTzrG','verified','212213VGEcmg','POST','allMatch','before','notification_config_update_verification_failed','220340prPQgr','provesChange','planned','mutation','63Algzpv','Updated\x20notification\x20config\x20','Notification\x20config\x20','Inspect\x20ID\x20',';\x20do\x20not\x20resubmit\x20automatically.',';\x20no\x20automatic\x20retry\x20was\x20attempted.','\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.','\x20via\x20','\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.','5BNasfn'];a144_0x4520=function(){return _0x10a6dc;};return a144_0x4520();}import{assertSingleNotificationSource,mergeUpdateInput,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,NOTIFICATION_INPUT_FLAGS,plannedUpdateProjection,projectNotificationConfig,readNotificationDocument,readNotificationId,requestedSafeFieldsMatch,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure}from'../../commands/notification/shared.js';const UPDATE_PATH=a144_0x228206(0x92);async function prepareUpdate(_0x195cf2){const _0xa9240=a144_0x228206,_0x49e4d3=readNotificationId(_0x195cf2),_0x4bc4fb=await readNotificationDocument(_0x195cf2,_0xa9240(0x89)),_0x1de596=await requireExactNotificationConfig(_0x195cf2['appCode'],_0x49e4d3,_0xa9240(0x89));return{'id':_0x49e4d3,'patch':_0x4bc4fb,'before':_0x1de596,'payload':mergeUpdateInput(_0x1de596,_0x4bc4fb),'planned':plannedUpdateProjection(_0x1de596,_0x4bc4fb)};}function a144_0x1130(_0x3bb410,_0x293353){_0x3bb410=_0x3bb410-0x6f;const _0x45202f=a144_0x4520();let _0x1130cf=_0x45202f[_0x3bb410];return _0x1130cf;}export const notificationConfigUpdate={'service':a144_0x228206(0x72),'command':a144_0x228206(0x8a),'description':a144_0x228206(0x71),'risk':a144_0x228206(0x93),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x38adf6){readNotificationId(_0x38adf6),assertSingleNotificationSource(_0x38adf6),requireNotificationExplicitYes(_0x38adf6);},async 'dryRun'(_0x40f60d){const _0x43eaa3=a144_0x228206,_0x22facc=await prepareUpdate(_0x40f60d),_0xd2b8aa=notificationLookupCommand(_0x40f60d[_0x43eaa3(0x94)],_0x22facc[_0x43eaa3(0x79)][_0x43eaa3(0x91)]);return asDryRunResult({'operation':_0x43eaa3(0x89),'selector':notificationSelector(_0x22facc[_0x43eaa3(0x79)]),'before':projectNotificationConfig(_0x22facc['before']),'after':_0x22facc['planned'],'dryRun':!![],'backend':{'method':'POST','path':UPDATE_PATH},'warnings':[],'verification':{'status':_0x43eaa3(0x7d),'lookupCommand':_0xd2b8aa}},{'method':_0x43eaa3(0x77),'url':UPDATE_PATH});},async 'execute'(_0x1e65b3){const _0x21f8f7=a144_0x228206;requireNotificationExplicitYes(_0x1e65b3);const _0x704222=await prepareUpdate(_0x1e65b3),_0x3f1413=notificationLookupCommand(_0x1e65b3[_0x21f8f7(0x94)],_0x704222[_0x21f8f7(0x79)][_0x21f8f7(0x91)]);let _0x599a02=![];try{await updateNotificationChannelConfig(_0x704222['payload']);}catch(_0x5368e9){if(!isPlatformTransportFailure(_0x5368e9))throw safeApiFailure('update',_0x21f8f7(0x7e),_0x21f8f7(0x82)+_0x704222['id']+_0x21f8f7(0x8d)+_0x3f1413+_0x21f8f7(0x84));_0x599a02=!![];}let _0x549950;try{const _0x3c09c2=await getNotificationChannelConfig(_0x704222['id'],_0x1e65b3[_0x21f8f7(0x94)]);_0x549950=normalizeExactNotificationConfig(_0x3c09c2,_0x704222['id'],_0x1e65b3[_0x21f8f7(0x94)]);}catch{throw notificationError(_0x599a02?'notification_config_update_outcome_unknown':'notification_config_update_verification_unavailable',_0x21f8f7(0x81)+_0x704222['id']+_0x21f8f7(0x87),_0x21f8f7(0x8b)+_0x704222['id']+_0x21f8f7(0x86)+_0x3f1413+_0x21f8f7(0x83));}const _0x16ce88=requestedSafeFieldsMatch(_0x704222['before'],_0x549950,_0x704222['patch']);if(!_0x16ce88[_0x21f8f7(0x78)]||_0x599a02&&!_0x16ce88[_0x21f8f7(0x7c)])throw notificationError(_0x599a02?_0x21f8f7(0x70):_0x21f8f7(0x7a),'Notification\x20config\x20'+_0x704222['id']+_0x21f8f7(0x85),'Inspect\x20with\x20--id\x20'+_0x704222['id']+'\x20via\x20'+_0x3f1413+_0x21f8f7(0x83));const _0x40a1a1=_0x599a02?['Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.']:[];return{'ok':!![],'data':{'operation':_0x21f8f7(0x89),'selector':notificationSelector(_0x549950),'before':projectNotificationConfig(_0x704222[_0x21f8f7(0x79)]),'after':projectNotificationConfig(_0x549950),'dryRun':![],'backend':{'method':'POST','path':UPDATE_PATH},'warnings':_0x40a1a1,'verification':{'status':_0x21f8f7(0x75),'recoveredAfterUnknownResponse':_0x599a02,'verifiedFields':_0x16ce88[_0x21f8f7(0x90)],'lookupCommand':_0x3f1413}},'message':_0x21f8f7(0x80)+_0x549950['id']};}};
1
+ const a144_0x12f4a4=a144_0x3d60;(function(_0x31d1ca,_0x8585d8){const _0x1f56a1=a144_0x3d60,_0x28c4aa=_0x31d1ca();while(!![]){try{const _0x549abe=parseInt(_0x1f56a1(0x137))/0x1*(-parseInt(_0x1f56a1(0x146))/0x2)+parseInt(_0x1f56a1(0x149))/0x3*(-parseInt(_0x1f56a1(0x12d))/0x4)+-parseInt(_0x1f56a1(0x139))/0x5+-parseInt(_0x1f56a1(0x130))/0x6*(parseInt(_0x1f56a1(0x147))/0x7)+parseInt(_0x1f56a1(0x131))/0x8+parseInt(_0x1f56a1(0x12e))/0x9+parseInt(_0x1f56a1(0x127))/0xa;if(_0x549abe===_0x8585d8)break;else _0x28c4aa['push'](_0x28c4aa['shift']());}catch(_0x245351){_0x28c4aa['push'](_0x28c4aa['shift']());}}}(a144_0x737e,0x56c61));import{asDryRunResult}from'../../commands/common/dry-run.js';import{getNotificationChannelConfig,isPlatformTransportFailure,updateNotificationChannelConfig}from'../../core/api-client.js';import{assertSingleNotificationSource,mergeUpdateInput,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,NOTIFICATION_INPUT_FLAGS,plannedUpdateProjection,projectNotificationConfig,readNotificationDocument,readNotificationId,requestedSafeFieldsMatch,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure}from'../../commands/notification/shared.js';function a144_0x737e(){const _0x31c7be=['\x20via\x20','mutation','config-update','planned','patch','1pluBAF','\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.','1485660mWNkrH','notification_config_update_verification_failed','/notification/channel-config/update','\x20with\x20',';\x20do\x20not\x20resubmit\x20automatically.','POST','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','high-risk-write','Notification\x20config\x20','notification_config_update_verification_unavailable','update','verifiedFields','\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.','881350HTqsRu','7JoqNaJ','Inspect\x20with\x20--id\x20','1824VAgmpk','appCode','channelType','payload','12833180ntsIcF','notification_config_update_outcome_unknown','before','Updated\x20notification\x20config\x20','notification',';\x20no\x20automatic\x20retry\x20was\x20attempted.','2740KOGXtI','27783KxxzDq','verified','2487258UdenwH','5102800tSylBJ'];a144_0x737e=function(){return _0x31c7be;};return a144_0x737e();}function a144_0x3d60(_0xc8f040,_0x586133){_0xc8f040=_0xc8f040-0x124;const _0x737ea9=a144_0x737e();let _0x3d6080=_0x737ea9[_0xc8f040];return _0x3d6080;}const UPDATE_PATH=a144_0x12f4a4(0x13b);async function prepareUpdate(_0x198f00){const _0x3202ae=a144_0x12f4a4,_0x52f572=readNotificationId(_0x198f00),_0x66e21c=await readNotificationDocument(_0x198f00,'update'),_0x224cd8=await requireExactNotificationConfig(_0x198f00['appCode'],_0x52f572,_0x3202ae(0x143));return{'id':_0x52f572,'patch':_0x66e21c,'before':_0x224cd8,'payload':mergeUpdateInput(_0x224cd8,_0x66e21c),'planned':plannedUpdateProjection(_0x224cd8,_0x66e21c)};}export const notificationConfigUpdate={'service':a144_0x12f4a4(0x12b),'command':a144_0x12f4a4(0x134),'description':a144_0x12f4a4(0x13f),'risk':a144_0x12f4a4(0x140),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x1be192){readNotificationId(_0x1be192),assertSingleNotificationSource(_0x1be192),requireNotificationExplicitYes(_0x1be192);},async 'dryRun'(_0x1e6e7f){const _0x1ab6d1=a144_0x12f4a4,_0x39e762=await prepareUpdate(_0x1e6e7f),_0x4b0354=notificationLookupCommand(_0x1e6e7f[_0x1ab6d1(0x124)],_0x39e762[_0x1ab6d1(0x129)]['channelType']);return asDryRunResult({'operation':'update','selector':notificationSelector(_0x39e762[_0x1ab6d1(0x129)]),'before':projectNotificationConfig(_0x39e762[_0x1ab6d1(0x129)]),'after':_0x39e762[_0x1ab6d1(0x135)],'dryRun':!![],'backend':{'method':'POST','path':UPDATE_PATH},'warnings':[],'verification':{'status':_0x1ab6d1(0x135),'lookupCommand':_0x4b0354}},{'method':_0x1ab6d1(0x13e),'url':UPDATE_PATH});},async 'execute'(_0x1f67b5){const _0x38c65e=a144_0x12f4a4;requireNotificationExplicitYes(_0x1f67b5);const _0x28e322=await prepareUpdate(_0x1f67b5),_0x48daac=notificationLookupCommand(_0x1f67b5['appCode'],_0x28e322['before'][_0x38c65e(0x125)]);let _0x316881=![];try{await updateNotificationChannelConfig(_0x28e322[_0x38c65e(0x126)]);}catch(_0x4c62d9){if(!isPlatformTransportFailure(_0x4c62d9))throw safeApiFailure(_0x38c65e(0x143),_0x38c65e(0x133),'Inspect\x20ID\x20'+_0x28e322['id']+_0x38c65e(0x13c)+_0x48daac+_0x38c65e(0x12c));_0x316881=!![];}let _0x56d6dd;try{const _0x1b78d1=await getNotificationChannelConfig(_0x28e322['id'],_0x1f67b5[_0x38c65e(0x124)]);_0x56d6dd=normalizeExactNotificationConfig(_0x1b78d1,_0x28e322['id'],_0x1f67b5['appCode']);}catch{throw notificationError(_0x316881?'notification_config_update_outcome_unknown':_0x38c65e(0x142),_0x38c65e(0x141)+_0x28e322['id']+_0x38c65e(0x138),_0x38c65e(0x148)+_0x28e322['id']+_0x38c65e(0x132)+_0x48daac+_0x38c65e(0x13d));}const _0x1f7c8d=requestedSafeFieldsMatch(_0x28e322[_0x38c65e(0x129)],_0x56d6dd,_0x28e322[_0x38c65e(0x136)]);if(!_0x1f7c8d['allMatch']||_0x316881&&!_0x1f7c8d['provesChange'])throw notificationError(_0x316881?_0x38c65e(0x128):_0x38c65e(0x13a),'Notification\x20config\x20'+_0x28e322['id']+_0x38c65e(0x145),'Inspect\x20with\x20--id\x20'+_0x28e322['id']+_0x38c65e(0x132)+_0x48daac+_0x38c65e(0x13d));const _0x59a79f=_0x316881?['Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.']:[];return{'ok':!![],'data':{'operation':_0x38c65e(0x143),'selector':notificationSelector(_0x56d6dd),'before':projectNotificationConfig(_0x28e322['before']),'after':projectNotificationConfig(_0x56d6dd),'dryRun':![],'backend':{'method':'POST','path':UPDATE_PATH},'warnings':_0x59a79f,'verification':{'status':_0x38c65e(0x12f),'recoveredAfterUnknownResponse':_0x316881,'verifiedFields':_0x1f7c8d[_0x38c65e(0x144)],'lookupCommand':_0x48daac}},'message':_0x38c65e(0x12a)+_0x56d6dd['id']};}};
@@ -1 +1 @@
1
- function a145_0x2c97(){const _0x121da9=['7oKUCuX','1722743UyxWHW','4831450qYaLOj','9llZyvw','128AgRSaK','5759862ZjSYQX','2556584YLLOmB','23396TDIESU','7325336NsonfF','20elXCvz','681144gGsbyX'];a145_0x2c97=function(){return _0x121da9;};return a145_0x2c97();}(function(_0x117370,_0x2dcb41){const _0x2b2f0f=a145_0x31b6,_0x151433=_0x117370();while(!![]){try{const _0x32aa12=parseInt(_0x2b2f0f(0x13b))/0x1*(-parseInt(_0x2b2f0f(0x13e))/0x2)+-parseInt(_0x2b2f0f(0x136))/0x3+-parseInt(_0x2b2f0f(0x13d))/0x4+parseInt(_0x2b2f0f(0x139))/0x5+-parseInt(_0x2b2f0f(0x13c))/0x6*(-parseInt(_0x2b2f0f(0x137))/0x7)+parseInt(_0x2b2f0f(0x13f))/0x8*(parseInt(_0x2b2f0f(0x13a))/0x9)+parseInt(_0x2b2f0f(0x140))/0xa*(parseInt(_0x2b2f0f(0x138))/0xb);if(_0x32aa12===_0x2dcb41)break;else _0x151433['push'](_0x151433['shift']());}catch(_0x39bd10){_0x151433['push'](_0x151433['shift']());}}}(a145_0x2c97,0xc1446));import{notificationConfigList}from'../../commands/notification/config-list.js';import{notificationConfigCreate}from'../../commands/notification/config-create.js';import{notificationConfigUpdate}from'../../commands/notification/config-update.js';function a145_0x31b6(_0x12df74,_0x4692b8){_0x12df74=_0x12df74-0x136;const _0x2c973d=a145_0x2c97();let _0x31b683=_0x2c973d[_0x12df74];return _0x31b683;}import{notificationConfigDelete}from'../../commands/notification/config-delete.js';export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];
1
+ (function(_0x8d48bc,_0x53d661){const _0x1a8a50=a145_0x1713,_0xfdfaf7=_0x8d48bc();while(!![]){try{const _0x17bd16=parseInt(_0x1a8a50(0x96))/0x1*(parseInt(_0x1a8a50(0x92))/0x2)+-parseInt(_0x1a8a50(0x99))/0x3+-parseInt(_0x1a8a50(0x97))/0x4*(-parseInt(_0x1a8a50(0x91))/0x5)+-parseInt(_0x1a8a50(0x90))/0x6*(-parseInt(_0x1a8a50(0x94))/0x7)+parseInt(_0x1a8a50(0x95))/0x8+-parseInt(_0x1a8a50(0x98))/0x9+-parseInt(_0x1a8a50(0x93))/0xa;if(_0x17bd16===_0x53d661)break;else _0xfdfaf7['push'](_0xfdfaf7['shift']());}catch(_0x1e3903){_0xfdfaf7['push'](_0xfdfaf7['shift']());}}}(a145_0x300e,0x2241a));import{notificationConfigList}from'../../commands/notification/config-list.js';import{notificationConfigCreate}from'../../commands/notification/config-create.js';import{notificationConfigUpdate}from'../../commands/notification/config-update.js';import{notificationConfigDelete}from'../../commands/notification/config-delete.js';function a145_0x1713(_0x37481a,_0x7dc4a9){_0x37481a=_0x37481a-0x90;const _0x300e19=a145_0x300e();let _0x171321=_0x300e19[_0x37481a];return _0x171321;}export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];function a145_0x300e(){const _0x281ca5=['14ohCakI','1012816nHcAxf','1QxOcuV','304brPBPl','87345IgTHRd','354405LudZme','162726MPROpc','16410WxIVZw','347962ZaqtdB','3361030deeGGv'];a145_0x300e=function(){return _0x281ca5;};return a145_0x300e();}
@@ -1 +1 @@
1
- const a146_0xff8015=a146_0x4049;(function(_0x35bb52,_0xebc772){const _0x248931=a146_0x4049,_0x93dee4=_0x35bb52();while(!![]){try{const _0x1bc83d=-parseInt(_0x248931(0x173))/0x1*(-parseInt(_0x248931(0x152))/0x2)+-parseInt(_0x248931(0x185))/0x3*(parseInt(_0x248931(0x17a))/0x4)+-parseInt(_0x248931(0x17b))/0x5*(parseInt(_0x248931(0x166))/0x6)+parseInt(_0x248931(0x183))/0x7*(parseInt(_0x248931(0x174))/0x8)+-parseInt(_0x248931(0x194))/0x9*(parseInt(_0x248931(0x17c))/0xa)+-parseInt(_0x248931(0x15f))/0xb*(parseInt(_0x248931(0x134))/0xc)+parseInt(_0x248931(0x14b))/0xd*(parseInt(_0x248931(0x130))/0xe);if(_0x1bc83d===_0xebc772)break;else _0x93dee4['push'](_0x93dee4['shift']());}catch(_0x21e7a9){_0x93dee4['push'](_0x93dee4['shift']());}}}(a146_0x36c1,0x3e0fa));import{readFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getNotificationChannelConfig}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a146_0xff8015(0x188),'FEISHU','DINGTALK',a146_0xff8015(0x150),a146_0xff8015(0x167)];export const DEFAULT_NOTIFICATION_CONNECT_TIMEOUT=0x1388;export const DEFAULT_NOTIFICATION_READ_TIMEOUT=0x2710;const ALLOWED_INPUT_FIELDS=new Set([a146_0xff8015(0x165),'channelType',a146_0xff8015(0x148),a146_0xff8015(0x161),a146_0xff8015(0x184),a146_0xff8015(0x15c),'readTimeout']),FORBIDDEN_IDENTITY_FIELDS=new Set(['id',a146_0xff8015(0x12a),a146_0xff8015(0x182),a146_0xff8015(0x15a)]),EMAIL_RECIPIENT_FIELDS=new Set(['emailTargets',a146_0xff8015(0x19e),'ccList',a146_0xff8015(0x18d),'replyTo','subjectPrefix',a146_0xff8015(0x16a),'to','cc']);export const NOTIFICATION_INPUT_FLAGS=[{'name':a146_0xff8015(0x18f),'type':a146_0xff8015(0x13f),'required':![],'description':a146_0xff8015(0x151)},{'name':'stdin','type':a146_0xff8015(0x125),'required':![],'default':![],'description':a146_0xff8015(0x120)},{'name':'from-env','type':a146_0xff8015(0x13f),'required':![],'description':a146_0xff8015(0x129)}];export const NOTIFICATION_ID_FLAG={'name':'id','type':a146_0xff8015(0x195),'required':!![],'description':a146_0xff8015(0x18a)};export const NOTIFICATION_APP_FLAG=APPCODE_FLAG_OPTIONAL;export function notificationError(_0x3b37b9,_0xa441fe,_0x23c4c8){return new CliError(_0x3b37b9,0x1,_0xa441fe,_0x23c4c8);}export function readNotificationId(_0x3680ad){const _0x24c0c0=a146_0xff8015,_0x4c452c=_0x3680ad[_0x24c0c0(0x180)]('id');if(!Number['isSafeInteger'](_0x4c452c)||_0x4c452c<=0x0)throw notificationError(_0x24c0c0(0x131),_0x24c0c0(0x11e));return _0x4c452c;}export function requireNotificationExplicitYes(_0x1928e5){const _0x5c6492=a146_0xff8015;if(_0x1928e5['bool'](_0x5c6492(0x11f))||_0x1928e5[_0x5c6492(0x191)](_0x5c6492(0x17d)))return;throw notificationError(_0x5c6492(0x177),'This\x20notification\x20config\x20mutation\x20requires\x20explicit\x20--yes.','Run\x20the\x20command\x20with\x20--dry-run\x20first,\x20then\x20add\x20--yes\x20after\x20reviewing\x20the\x20plan.');}export function readNotificationChannelType(_0x37c25d,_0x513997=a146_0xff8015(0x16f),_0x251c6f=a146_0xff8015(0x188)){const _0x22355b=a146_0xff8015,_0x558fa7=_0x37c25d['str'](_0x513997)['trim']()||_0x251c6f;if(!NOTIFICATION_CHANNEL_TYPES[_0x22355b(0x171)](_0x558fa7))throw CliErrors[_0x22355b(0x189)](_0x22355b(0x132)+_0x513997+':\x20'+_0x558fa7,_0x22355b(0x179)+NOTIFICATION_CHANNEL_TYPES['join'](',\x20')+'.');return _0x558fa7;}export function assertSingleNotificationSource(_0x2fd9ee){const _0x4cf4e1=a146_0xff8015,_0x2b1de1=[],_0x4ceac2=_0x2fd9ee[_0x4cf4e1(0x157)](_0x4cf4e1(0x18f))[_0x4cf4e1(0x123)]();if(_0x4ceac2)_0x2b1de1[_0x4cf4e1(0x156)]({'kind':_0x4cf4e1(0x18f),'path':_0x4ceac2});if(_0x2fd9ee[_0x4cf4e1(0x191)](_0x4cf4e1(0x122)))_0x2b1de1['push']({'kind':'stdin'});const _0x4af7c0=_0x2fd9ee[_0x4cf4e1(0x157)](_0x4cf4e1(0x14c))[_0x4cf4e1(0x123)]();if(_0x4af7c0)_0x2b1de1[_0x4cf4e1(0x156)]({'kind':'env','name':_0x4af7c0});if(_0x2b1de1[_0x4cf4e1(0x199)]===0x0)throw CliErrors['validation'](_0x4cf4e1(0x121),'Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.');if(_0x2b1de1[_0x4cf4e1(0x199)]>0x1)throw CliErrors[_0x4cf4e1(0x189)]('Notification\x20JSON\x20source\x20is\x20ambiguous.','Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.');return _0x2b1de1[0x0];}export async function readNotificationDocument(_0x49f958,_0x2e8f95){const _0x1b489b=a146_0xff8015,_0x33697d=assertSingleNotificationSource(_0x49f958),_0x959fb2=_0x33697d['kind']===_0x1b489b(0x18f)?_0x1b489b(0x140)+_0x33697d[_0x1b489b(0x17f)]:_0x33697d[_0x1b489b(0x136)]===_0x1b489b(0x14a)?_0x1b489b(0x187)+_0x33697d[_0x1b489b(0x13a)]:_0x1b489b(0x122);let _0x2fb1b1;try{if(_0x33697d['kind']==='file')_0x2fb1b1=await readFile(_0x33697d[_0x1b489b(0x17f)],_0x1b489b(0x137));else{if(_0x33697d['kind']==='env'){if(!(_0x33697d[_0x1b489b(0x13a)]in process.env))throw notificationError('notification_config_source_unavailable',_0x1b489b(0x149)+_0x33697d[_0x1b489b(0x13a)]);_0x2fb1b1=process.env[_0x33697d.name]??'';}else _0x2fb1b1=await readStdin();}}catch(_0x515fd0){if(_0x515fd0 instanceof CliError)throw _0x515fd0;throw notificationError(_0x1b489b(0x146),'Unable\x20to\x20read\x20notification\x20JSON\x20from\x20'+_0x959fb2+'.');}let _0x14ae77;try{_0x14ae77=JSON['parse'](_0x2fb1b1);}catch{throw notificationError(_0x1b489b(0x176),_0x1b489b(0x126)+_0x959fb2+_0x1b489b(0x162),'Provide\x20one\x20valid\x20JSON\x20object;\x20source\x20contents\x20are\x20not\x20included\x20in\x20errors.');}if(!isJsonObject(_0x14ae77))throw notificationError(_0x1b489b(0x176),_0x1b489b(0x126)+_0x959fb2+_0x1b489b(0x16b));return validateNotificationDocument(_0x14ae77,_0x2e8f95);}export function projectNotificationListConfig(_0xdc5262,_0x2bee26){const _0x12ff3b=a146_0xff8015;return{'id':typeof _0xdc5262['id']===_0x12ff3b(0x195)?_0xdc5262['id']:null,'configCode':requireResponseString(_0xdc5262[_0x12ff3b(0x182)],_0x12ff3b(0x182),_0x2bee26),'configName':requireResponseString(_0xdc5262[_0x12ff3b(0x165)],_0x12ff3b(0x165),_0x2bee26),'channelType':requireResponseString(_0xdc5262[_0x12ff3b(0x13b)],_0x12ff3b(0x13b),_0x2bee26),'description':normalizeNullableString(_0xdc5262['description']),'createTime':normalizeNullableString(_0xdc5262[_0x12ff3b(0x193)]),'updateTime':normalizeNullableString(_0xdc5262['updateTime'])};}export function normalizeExactNotificationConfig(_0x4ebe85,_0x3ade1c,_0x147283){const _0x1daebe=a146_0xff8015;if(!Number['isSafeInteger'](_0x4ebe85['id'])||_0x4ebe85['id']!==_0x3ade1c)throw notificationError('notification_config_response_invalid','Notification\x20config\x20detail\x20did\x20not\x20contain\x20the\x20requested\x20ID\x20'+_0x3ade1c+'.');if(_0x4ebe85[_0x1daebe(0x12a)]!==_0x147283)throw notificationError(_0x1daebe(0x154),_0x1daebe(0x19b)+_0x3ade1c+_0x1daebe(0x128));const _0xf213a9=requireExactString(_0x4ebe85[_0x1daebe(0x165)],_0x1daebe(0x165),_0x3ade1c),_0x5a4db3=requireExactString(_0x4ebe85[_0x1daebe(0x182)],_0x1daebe(0x182),_0x3ade1c),_0x151840=requireExactString(_0x4ebe85[_0x1daebe(0x13b)],_0x1daebe(0x13b),_0x3ade1c);if(!NOTIFICATION_CHANNEL_TYPES[_0x1daebe(0x171)](_0x151840))throw notificationError(_0x1daebe(0x154),_0x1daebe(0x19b)+_0x3ade1c+_0x1daebe(0x141));const _0x4e6fe5=responseNullableString(_0x4ebe85['endpointUrl'],'endpointUrl',_0x3ade1c),_0x3179b6=responseNullableString(_0x4ebe85[_0x1daebe(0x161)],'channelConfig',_0x3ade1c),_0x1afc95=responseNullableString(_0x4ebe85[_0x1daebe(0x184)],_0x1daebe(0x184),_0x3ade1c),_0x1d5bed=responseNullableTimeout(_0x4ebe85[_0x1daebe(0x15c)],'connectTimeout',_0x3ade1c),_0x50870c=responseNullableTimeout(_0x4ebe85['readTimeout'],'readTimeout',_0x3ade1c);return{'id':_0x3ade1c,'appCode':_0x147283,'configCode':_0x5a4db3,'configName':_0xf213a9,'channelType':_0x151840,'endpointUrl':redactSensitive(_0x4e6fe5),'channelConfig':redactSensitive(_0x3179b6),'description':_0x1afc95,'connectTimeout':_0x1d5bed,'readTimeout':_0x50870c,'endpointUrlRaw':_0x4e6fe5,'channelConfigRaw':_0x3179b6};}export async function requireExactNotificationConfig(_0x18233b,_0x4d8a82,_0x465775){const _0x313b55=a146_0xff8015;let _0x51ed58;try{_0x51ed58=await getNotificationChannelConfig(_0x4d8a82,_0x18233b);}catch{throw safeApiFailure(_0x465775,'preflight','Inspect\x20with\x20rabetbase\x20notification\x20config-list\x20--appcode\x20'+_0x18233b+_0x313b55(0x186));}return normalizeExactNotificationConfig(_0x51ed58,_0x4d8a82,_0x18233b);}export function projectNotificationConfig(_0x374e03){const _0x3bcb08=a146_0xff8015;return{'id':_0x374e03['id']??null,'appCode':_0x374e03[_0x3bcb08(0x12a)],'configCode':_0x374e03['configCode']??null,'configName':_0x374e03[_0x3bcb08(0x165)],'channelType':_0x374e03[_0x3bcb08(0x13b)],'endpointUrl':redactSensitive(_0x374e03[_0x3bcb08(0x148)]),'channelConfig':redactSensitive(_0x374e03[_0x3bcb08(0x161)]),'description':_0x374e03[_0x3bcb08(0x184)]??null,'connectTimeout':_0x374e03[_0x3bcb08(0x15c)]??null,'readTimeout':_0x374e03[_0x3bcb08(0x16c)]??null};}export function notificationSelector(_0x37e08f){const _0x3a9a8a=a146_0xff8015;return{'appCode':_0x37e08f[_0x3a9a8a(0x12a)],'id':_0x37e08f['id'],'configCode':_0x37e08f['configCode'],'configName':_0x37e08f[_0x3a9a8a(0x165)],'channelType':_0x37e08f[_0x3a9a8a(0x13b)]};}export function createMutationInput(_0x74b72a,_0x3c40e9){const _0x270204=a146_0xff8015;return{'appCode':_0x74b72a,'configName':_0x3c40e9[_0x270204(0x165)],'channelType':_0x3c40e9['channelType'],...hasOwn(_0x3c40e9,_0x270204(0x148))?{'endpointUrl':_0x3c40e9[_0x270204(0x148)]}:{},...hasOwn(_0x3c40e9,_0x270204(0x161))?{'channelConfig':serializeChannelConfig(_0x3c40e9[_0x270204(0x161)])}:{},...hasOwn(_0x3c40e9,'description')?{'description':_0x3c40e9[_0x270204(0x184)]}:{},...hasOwn(_0x3c40e9,_0x270204(0x15c))?{'connectTimeout':_0x3c40e9['connectTimeout']}:{},...hasOwn(_0x3c40e9,_0x270204(0x16c))?{'readTimeout':_0x3c40e9[_0x270204(0x16c)]}:{}};}export function mergeUpdateInput(_0x59eddd,_0x58648a){const _0x116365=a146_0xff8015;return{'id':_0x59eddd['id'],'appCode':_0x59eddd[_0x116365(0x12a)],'configName':_0x58648a[_0x116365(0x165)]??_0x59eddd['configName'],'channelType':_0x58648a['channelType']??_0x59eddd[_0x116365(0x13b)],'endpointUrl':hasOwn(_0x58648a,_0x116365(0x148))?_0x58648a['endpointUrl']:_0x59eddd[_0x116365(0x196)],'channelConfig':hasOwn(_0x58648a,_0x116365(0x161))?serializeChannelConfig(_0x58648a['channelConfig']):_0x59eddd[_0x116365(0x175)],'description':hasOwn(_0x58648a,'description')?_0x58648a[_0x116365(0x184)]:_0x59eddd[_0x116365(0x184)],'connectTimeout':hasOwn(_0x58648a,_0x116365(0x15c))?_0x58648a[_0x116365(0x15c)]:_0x59eddd[_0x116365(0x15c)],'readTimeout':hasOwn(_0x58648a,_0x116365(0x16c))?_0x58648a[_0x116365(0x16c)]:_0x59eddd[_0x116365(0x16c)]};}export function plannedUpdateProjection(_0x3250f2,_0x29a47d){const _0x595f67=a146_0xff8015;return projectNotificationConfig({'id':_0x3250f2['id'],'appCode':_0x3250f2[_0x595f67(0x12a)],'configCode':_0x3250f2[_0x595f67(0x182)],'configName':_0x29a47d[_0x595f67(0x165)]??_0x3250f2['configName'],'channelType':_0x29a47d[_0x595f67(0x13b)]??_0x3250f2[_0x595f67(0x13b)],'endpointUrl':hasOwn(_0x29a47d,_0x595f67(0x148))?_0x29a47d[_0x595f67(0x148)]:_0x3250f2[_0x595f67(0x196)],'channelConfig':hasOwn(_0x29a47d,_0x595f67(0x161))?_0x29a47d[_0x595f67(0x161)]:_0x3250f2[_0x595f67(0x175)],'description':hasOwn(_0x29a47d,'description')?_0x29a47d[_0x595f67(0x184)]:_0x3250f2['description'],'connectTimeout':hasOwn(_0x29a47d,_0x595f67(0x15c))?_0x29a47d[_0x595f67(0x15c)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:_0x3250f2[_0x595f67(0x15c)],'readTimeout':hasOwn(_0x29a47d,_0x595f67(0x16c))?_0x29a47d[_0x595f67(0x16c)]??DEFAULT_NOTIFICATION_READ_TIMEOUT:_0x3250f2['readTimeout']});}export function requestedSafeFieldsMatch(_0x80f8ef,_0x143af1,_0x2da8e9){const _0x219c7a=a146_0xff8015,_0x1208f2=[],_0x32fc40=[],_0x207bb5=[];for(const _0x1c48c2 of[_0x219c7a(0x165),_0x219c7a(0x13b),_0x219c7a(0x184)]){if(!hasOwn(_0x2da8e9,_0x1c48c2))continue;_0x207bb5[_0x219c7a(0x156)](_0x1c48c2),_0x1208f2[_0x219c7a(0x156)](_0x143af1[_0x1c48c2]===_0x2da8e9[_0x1c48c2]),_0x32fc40[_0x219c7a(0x156)](_0x80f8ef[_0x1c48c2]!==_0x2da8e9[_0x1c48c2]&&_0x143af1[_0x1c48c2]===_0x2da8e9[_0x1c48c2]);}for(const _0x2d0e25 of[_0x219c7a(0x15c),_0x219c7a(0x16c)]){if(!hasOwn(_0x2da8e9,_0x2d0e25))continue;const _0x2a7fd6=_0x2da8e9[_0x2d0e25]??(_0x2d0e25===_0x219c7a(0x15c)?DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:DEFAULT_NOTIFICATION_READ_TIMEOUT);_0x207bb5[_0x219c7a(0x156)](_0x2d0e25),_0x1208f2['push'](_0x143af1[_0x2d0e25]===_0x2a7fd6),_0x32fc40['push'](_0x80f8ef[_0x2d0e25]!==_0x2a7fd6&&_0x143af1[_0x2d0e25]===_0x2a7fd6);}return hasOwn(_0x2da8e9,_0x219c7a(0x148))&&_0x2da8e9[_0x219c7a(0x148)]===null&&(_0x207bb5[_0x219c7a(0x156)](_0x219c7a(0x11d)),_0x1208f2[_0x219c7a(0x156)](_0x143af1[_0x219c7a(0x196)]===null||_0x143af1['endpointUrlRaw']===''),_0x32fc40['push'](_0x80f8ef[_0x219c7a(0x196)]!==null&&_0x80f8ef[_0x219c7a(0x196)]!==''&&(_0x143af1[_0x219c7a(0x196)]===null||_0x143af1[_0x219c7a(0x196)]===''))),{'allMatch':_0x1208f2[_0x219c7a(0x14f)](Boolean),'provesChange':_0x32fc40['some'](Boolean),'verifiedFields':_0x207bb5};}function a146_0x4049(_0x41ff87,_0x446c97){_0x41ff87=_0x41ff87-0x11c;const _0x36c149=a146_0x36c1();let _0x404924=_0x36c149[_0x41ff87];return _0x404924;}export function validateNotificationDeleteReadback(_0x176c00,_0x33c1a2,_0x1dec1e){const _0x2c30aa=a146_0xff8015;for(const [_0x19de13,_0x593e1f]of _0x176c00[_0x2c30aa(0x19a)]()){if(!Number[_0x2c30aa(0x14d)](_0x593e1f['id'])||_0x593e1f['id']<=0x0)throw notificationError(_0x2c30aa(0x154),_0x2c30aa(0x135)+(_0x19de13+0x1)+_0x2c30aa(0x1a0));if(_0x593e1f[_0x2c30aa(0x12a)]!==_0x33c1a2)throw notificationError(_0x2c30aa(0x154),_0x2c30aa(0x135)+(_0x19de13+0x1)+_0x2c30aa(0x164));if(_0x593e1f[_0x2c30aa(0x13b)]!==_0x1dec1e)throw notificationError('notification_config_response_invalid',_0x2c30aa(0x135)+(_0x19de13+0x1)+'\x20has\x20an\x20invalid\x20channelType.');}}export function safeApiFailure(_0x535810,_0x16bc25,_0x4e66c8){const _0x10c12c=a146_0xff8015;return notificationError(_0x10c12c(0x12d)+_0x535810+'_'+(_0x16bc25===_0x10c12c(0x145)?_0x10c12c(0x138):_0x16bc25+_0x10c12c(0x139)),_0x10c12c(0x19b)+_0x535810+'\x20'+_0x16bc25+_0x10c12c(0x15d),_0x4e66c8);}export function notificationLookupCommand(_0x4b6b9a,_0x2f1499){const _0x1632e1=a146_0xff8015;return _0x1632e1(0x127)+_0x4b6b9a+_0x1632e1(0x178)+_0x2f1499+_0x1632e1(0x19d);}function validateNotificationDocument(_0x437acd,_0x569a02){const _0x15857d=a146_0xff8015;for(const _0x35e912 of Object[_0x15857d(0x11c)](_0x437acd)){if(FORBIDDEN_IDENTITY_FIELDS[_0x15857d(0x168)](_0x35e912))throw notificationError(_0x15857d(0x15b),'Notification\x20JSON\x20field\x20\x22'+_0x35e912+_0x15857d(0x147));if(!ALLOWED_INPUT_FIELDS[_0x15857d(0x168)](_0x35e912))throw notificationError(_0x15857d(0x192),_0x15857d(0x19f)+_0x35e912+'\x22.');}if(_0x569a02===_0x15857d(0x190)&&Object['keys'](_0x437acd)[_0x15857d(0x199)]===0x0)throw notificationError('notification_config_update_empty',_0x15857d(0x12e));const _0x53e9cc={};if(hasOwn(_0x437acd,_0x15857d(0x165)))_0x53e9cc[_0x15857d(0x165)]=validateRequiredString(_0x437acd[_0x15857d(0x165)],_0x15857d(0x165),0x80);else{if(_0x569a02==='create')throw notificationError(_0x15857d(0x14e),_0x15857d(0x163)+_0x15857d(0x133));}if(hasOwn(_0x437acd,'channelType')){if(typeof _0x437acd['channelType']!==_0x15857d(0x13f))throw invalidFieldType(_0x15857d(0x13b),_0x15857d(0x13c));const _0x3c00f3=_0x437acd[_0x15857d(0x13b)][_0x15857d(0x123)]();if(!NOTIFICATION_CHANNEL_TYPES[_0x15857d(0x171)](_0x3c00f3))throw notificationError(_0x15857d(0x18c),'Notification\x20JSON\x20field\x20\x22channelType\x22\x20is\x20unsupported.','Allowed\x20values:\x20'+NOTIFICATION_CHANNEL_TYPES[_0x15857d(0x169)](',\x20')+'.');_0x53e9cc[_0x15857d(0x13b)]=_0x3c00f3;}else{if(_0x569a02===_0x15857d(0x170))throw notificationError(_0x15857d(0x14e),_0x15857d(0x163)+_0x15857d(0x13e));}for(const [_0x22a075,_0x6e1cca]of[['endpointUrl',0x200],[_0x15857d(0x184),0x100]]){if(!hasOwn(_0x437acd,_0x22a075))continue;const _0x19e029=_0x437acd[_0x22a075];if(_0x19e029!==null&&typeof _0x19e029!==_0x15857d(0x13f))throw invalidFieldType(_0x22a075,_0x15857d(0x142));if(typeof _0x19e029==='string'&&_0x19e029[_0x15857d(0x199)]>_0x6e1cca)throw notificationError(_0x15857d(0x18c),_0x15857d(0x12c)+_0x22a075+_0x15857d(0x124)+_0x6e1cca+_0x15857d(0x172));_0x53e9cc[_0x22a075]=_0x19e029;}if(hasOwn(_0x437acd,'channelConfig')){const _0x53fe48=_0x437acd[_0x15857d(0x161)];if(_0x53fe48===null&&_0x569a02===_0x15857d(0x170))throw invalidFieldType(_0x15857d(0x161),'a\x20JSON\x20object');if(_0x53fe48!==null&&!isJsonObject(_0x53fe48))throw invalidFieldType(_0x15857d(0x161),_0x569a02===_0x15857d(0x190)?_0x15857d(0x17e):_0x15857d(0x13d));_0x53fe48!==null&&validateChannelConfigFields(_0x53e9cc[_0x15857d(0x13b)],_0x53fe48),_0x53e9cc[_0x15857d(0x161)]=_0x53fe48;}for(const _0x264000 of[_0x15857d(0x15c),'readTimeout']){if(!hasOwn(_0x437acd,_0x264000))continue;const _0x1f7d88=_0x437acd[_0x264000];if(_0x1f7d88!==null&&(!Number[_0x15857d(0x14d)](_0x1f7d88)||_0x1f7d88<0x0))throw notificationError('notification_config_field_invalid',_0x15857d(0x12c)+_0x264000+_0x15857d(0x153));_0x53e9cc[_0x264000]=_0x1f7d88;}return _0x53e9cc;}function validateRequiredString(_0x3268bd,_0x2985de,_0x25d941){const _0x547add=a146_0xff8015;if(typeof _0x3268bd!==_0x547add(0x13f))throw invalidFieldType(_0x2985de,_0x547add(0x19c));const _0xf64dda=_0x3268bd[_0x547add(0x123)]();if(!_0xf64dda)throw notificationError(_0x547add(0x18c),'Notification\x20JSON\x20field\x20\x22'+_0x2985de+_0x547add(0x197));if(_0xf64dda['length']>_0x25d941)throw notificationError('notification_config_field_invalid',_0x547add(0x12c)+_0x2985de+_0x547add(0x124)+_0x25d941+_0x547add(0x172));return _0xf64dda;}function a146_0x36c1(){const _0x4b0742=['\x22\x20must\x20be\x20a\x20non-negative\x20safe\x20integer\x20or\x20null.','notification_config_response_invalid','hasOwnProperty','push','str','stringify','messageTemplate','channelCode','notification_config_field_forbidden','connectTimeout','\x20failed.','apiError','2687729BdFtmx','\x20has\x20invalid\x20field\x20\x22','channelConfig','\x20is\x20invalid.','Create\x20JSON\x20requires\x20field\x20','\x20has\x20an\x20invalid\x20appCode.','configName','6IcpTGh','WEBHOOK','has','join','fromName','\x20must\x20be\x20an\x20object.','readTimeout','object','notification_config_channel_field_forbidden','type','create','includes','\x20characters.','2272ipZnzZ','1294152Fjprsd','channelConfigRaw','notification_config_json_invalid','notification_config_confirmation_required','\x20--type\x20','Allowed\x20values:\x20','1938688eroDFj','2200235hGtYiT','129830XgFuyt','yes','a\x20JSON\x20object\x20or\x20null','path','num','setEncoding','configCode','14JVsbgT','description','3lspwQa','\x20--type\x20<CHANNEL_TYPE>\x20--format\x20compress;\x20no\x20mutation\x20was\x20submitted.','environment\x20variable\x20','EMAIL','validation','Application-level\x20notification\x20config\x20ID','call','notification_config_field_invalid','bccList','\x20is\x20missing\x20required\x20field\x20\x22','file','update','bool','notification_config_field_unknown','createTime','153wWbYeK','number','endpointUrlRaw','\x22\x20must\x20be\x20a\x20non-empty\x20string.','Item\x20','length','entries','Notification\x20config\x20','a\x20non-empty\x20string','\x20--format\x20compress','recipients','Unknown\x20notification\x20JSON\x20field\x20\x22','\x20has\x20an\x20invalid\x20id.','keys','endpointUrl:null','--id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','dry-run','Read\x20the\x20notification\x20JSON\x20document\x20from\x20stdin','Missing\x20notification\x20JSON\x20source.','stdin','trim','\x22\x20cannot\x20exceed\x20','boolean','Notification\x20JSON\x20from\x20','rabetbase\x20notification\x20config-list\x20--appcode\x20','\x20does\x20not\x20belong\x20to\x20the\x20resolved\x20app.','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20named\x20environment\x20variable','appCode','Notification\x20JSON\x20channelConfig\x20field\x20\x22','Notification\x20JSON\x20field\x20\x22','notification_config_','Update\x20JSON\x20must\x20contain\x20at\x20least\x20one\x20allowed\x20field.','\x22\x20must\x20be\x20','322dIUxOB','notification_config_id_invalid','Invalid\x20--','\x22configName\x22.','12kxpnOq','Notification\x20config\x20list\x20item\x20','kind','utf8','failed','_unavailable','name','channelType','a\x20supported\x20string','a\x20JSON\x20object','\x22channelType\x22.','string','file\x20','\x20has\x20an\x20unsupported\x20channelType.','a\x20string\x20or\x20null','\x22\x20is\x20forbidden.','<redacted>','mutation','notification_config_source_unavailable','\x22\x20is\x20controlled\x20by\x20the\x20CLI\x20or\x20server\x20and\x20is\x20forbidden.','endpointUrl','Notification\x20JSON\x20environment\x20variable\x20is\x20not\x20set:\x20','env','563979Fbqmvj','from-env','isSafeInteger','notification_config_field_required','every','WECOM','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20UTF-8\x20file','284gPpKZb'];a146_0x36c1=function(){return _0x4b0742;};return a146_0x36c1();}function validateChannelConfigFields(_0x59ab90,_0x566c51){const _0x4a62e1=a146_0xff8015;if(hasOwn(_0x566c51,_0x4a62e1(0x159)))throw forbiddenChannelConfigField('messageTemplate');if(_0x59ab90===_0x4a62e1(0x188))for(const _0x386b3f of EMAIL_RECIPIENT_FIELDS){if(hasOwn(_0x566c51,_0x386b3f))throw forbiddenChannelConfigField(_0x386b3f);}}function forbiddenChannelConfigField(_0x4607ba){const _0x28ae20=a146_0xff8015;return notificationError(_0x28ae20(0x16e),_0x28ae20(0x12b)+_0x4607ba+_0x28ae20(0x143));}function invalidFieldType(_0x49d718,_0x31acc9){const _0xae7fae=a146_0xff8015;return notificationError(_0xae7fae(0x18c),'Notification\x20JSON\x20field\x20\x22'+_0x49d718+_0xae7fae(0x12f)+_0x31acc9+'.');}function serializeChannelConfig(_0x36a005){const _0x1bb80f=a146_0xff8015;return _0x36a005===null||_0x36a005===undefined?null:JSON[_0x1bb80f(0x158)](_0x36a005);}function redactSensitive(_0x1fc64c){const _0x325839=a146_0xff8015;return _0x1fc64c===null||_0x1fc64c===undefined||_0x1fc64c===''?null:_0x325839(0x144);}function requireResponseString(_0x2df60b,_0x4a8005,_0x798535){const _0x5d9755=a146_0xff8015;if(typeof _0x2df60b!=='string'||_0x2df60b[_0x5d9755(0x123)]()==='')throw CliErrors[_0x5d9755(0x15e)]('Invalid\x20notification\x20config\x20response.',_0x5d9755(0x198)+(_0x798535+0x1)+'\x20is\x20missing\x20required\x20field\x20\x22'+_0x4a8005+'\x22.');return _0x2df60b[_0x5d9755(0x123)]();}function requireExactString(_0x35e7fb,_0x1f86f6,_0x271420){const _0x23eb7a=a146_0xff8015;if(typeof _0x35e7fb!==_0x23eb7a(0x13f)||_0x35e7fb['trim']()==='')throw notificationError(_0x23eb7a(0x154),'Notification\x20config\x20'+_0x271420+_0x23eb7a(0x18e)+_0x1f86f6+'\x22.');return _0x35e7fb[_0x23eb7a(0x123)]();}function responseNullableString(_0x4c1f6b,_0x3034b1,_0x38de6a){const _0x1667a6=a146_0xff8015;if(_0x4c1f6b===undefined||_0x4c1f6b===null)return null;if(typeof _0x4c1f6b!==_0x1667a6(0x13f))throw notificationError(_0x1667a6(0x154),_0x1667a6(0x19b)+_0x38de6a+_0x1667a6(0x160)+_0x3034b1+'\x22.');return _0x4c1f6b;}function responseNullableTimeout(_0x3d8900,_0x1b7741,_0x309596){const _0x132dbf=a146_0xff8015;if(_0x3d8900===undefined||_0x3d8900===null)return null;if(!Number[_0x132dbf(0x14d)](_0x3d8900)||_0x3d8900<0x0)throw notificationError(_0x132dbf(0x154),'Notification\x20config\x20'+_0x309596+_0x132dbf(0x160)+_0x1b7741+'\x22.');return _0x3d8900;}function normalizeNullableString(_0x97ab0){const _0x386e20=a146_0xff8015;return typeof _0x97ab0===_0x386e20(0x13f)?_0x97ab0:null;}function isJsonObject(_0x14d53d){const _0x2fe518=a146_0xff8015;return _0x14d53d!==null&&typeof _0x14d53d===_0x2fe518(0x16d)&&!Array['isArray'](_0x14d53d);}function hasOwn(_0x2b39f8,_0x3955f1){const _0x5cd38d=a146_0xff8015;return Object['prototype'][_0x5cd38d(0x155)][_0x5cd38d(0x18b)](_0x2b39f8,_0x3955f1);}async function readStdin(){const _0x28daf5=a146_0xff8015;let _0x7b8d2c='';process[_0x28daf5(0x122)][_0x28daf5(0x181)]('utf8');for await(const _0x3cf4e2 of process[_0x28daf5(0x122)])_0x7b8d2c+=_0x3cf4e2;return _0x7b8d2c;}
1
+ const a146_0x4de633=a146_0x49f4;(function(_0x4fc32e,_0x18493f){const _0x6fa3e8=a146_0x49f4,_0x11717f=_0x4fc32e();while(!![]){try{const _0x301cb8=-parseInt(_0x6fa3e8(0xd5))/0x1*(-parseInt(_0x6fa3e8(0xde))/0x2)+parseInt(_0x6fa3e8(0xe7))/0x3*(-parseInt(_0x6fa3e8(0xb4))/0x4)+parseInt(_0x6fa3e8(0x106))/0x5+-parseInt(_0x6fa3e8(0xe4))/0x6*(-parseInt(_0x6fa3e8(0xfd))/0x7)+-parseInt(_0x6fa3e8(0xb6))/0x8*(-parseInt(_0x6fa3e8(0xb9))/0x9)+parseInt(_0x6fa3e8(0xf6))/0xa*(-parseInt(_0x6fa3e8(0xf3))/0xb)+-parseInt(_0x6fa3e8(0xdd))/0xc;if(_0x301cb8===_0x18493f)break;else _0x11717f['push'](_0x11717f['shift']());}catch(_0xcd9f75){_0x11717f['push'](_0x11717f['shift']());}}}(a146_0x3bf9,0x38fc4));import{readFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getNotificationChannelConfig}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=['EMAIL',a146_0x4de633(0xa8),a146_0x4de633(0xea),a146_0x4de633(0x103),a146_0x4de633(0x11e)];export const DEFAULT_NOTIFICATION_CONNECT_TIMEOUT=0x1388;export const DEFAULT_NOTIFICATION_READ_TIMEOUT=0x2710;const ALLOWED_INPUT_FIELDS=new Set([a146_0x4de633(0xc9),'channelType',a146_0x4de633(0xcf),a146_0x4de633(0x10c),'description',a146_0x4de633(0xee),a146_0x4de633(0xa1)]),FORBIDDEN_IDENTITY_FIELDS=new Set(['id',a146_0x4de633(0xc4),'configCode',a146_0x4de633(0xf1)]),EMAIL_RECIPIENT_FIELDS=new Set([a146_0x4de633(0xbf),a146_0x4de633(0x10b),a146_0x4de633(0xd2),a146_0x4de633(0x11d),a146_0x4de633(0x117),a146_0x4de633(0xc2),a146_0x4de633(0xc3),'to','cc']);export const NOTIFICATION_INPUT_FLAGS=[{'name':a146_0x4de633(0xf0),'type':a146_0x4de633(0xa7),'required':![],'description':a146_0x4de633(0xa6)},{'name':'stdin','type':a146_0x4de633(0xef),'required':![],'default':![],'description':'Read\x20the\x20notification\x20JSON\x20document\x20from\x20stdin'},{'name':a146_0x4de633(0xf2),'type':a146_0x4de633(0xa7),'required':![],'description':a146_0x4de633(0xfb)}];export const NOTIFICATION_ID_FLAG={'name':'id','type':a146_0x4de633(0x121),'required':!![],'description':a146_0x4de633(0xb8)};export const NOTIFICATION_APP_FLAG=APPCODE_FLAG_OPTIONAL;export function notificationError(_0x4586d0,_0xd7726a,_0x4d7935){return new CliError(_0x4586d0,0x1,_0xd7726a,_0x4d7935);}export function readNotificationId(_0x40faf6){const _0x303bc2=a146_0x4de633,_0x3e227a=_0x40faf6['num']('id');if(!Number[_0x303bc2(0xc6)](_0x3e227a)||_0x3e227a<=0x0)throw notificationError('notification_config_id_invalid',_0x303bc2(0x122));return _0x3e227a;}export function requireNotificationExplicitYes(_0x2bf1f4){const _0x11c354=a146_0x4de633;if(_0x2bf1f4['bool'](_0x11c354(0xeb))||_0x2bf1f4[_0x11c354(0xa3)](_0x11c354(0xba)))return;throw notificationError(_0x11c354(0xaf),_0x11c354(0xff),_0x11c354(0xf7));}export function readNotificationChannelType(_0x28a97c,_0x212820=a146_0x4de633(0xe9),_0x3c8f51=a146_0x4de633(0x102)){const _0x153368=a146_0x4de633,_0x162564=_0x28a97c[_0x153368(0xbe)](_0x212820)[_0x153368(0x114)]()||_0x3c8f51;if(!NOTIFICATION_CHANNEL_TYPES['includes'](_0x162564))throw CliErrors[_0x153368(0xe1)]('Invalid\x20--'+_0x212820+':\x20'+_0x162564,_0x153368(0x9f)+NOTIFICATION_CHANNEL_TYPES[_0x153368(0xac)](',\x20')+'.');return _0x162564;}function a146_0x3bf9(){const _0x13a714=['stdin','configCode','24CLPOGm','environment\x20variable\x20','type','DINGTALK','dry-run','\x22channelType\x22.','\x22\x20must\x20be\x20a\x20non-negative\x20safe\x20integer\x20or\x20null.','connectTimeout','boolean','file','channelCode','from-env','827662uxseQj','Unknown\x20notification\x20JSON\x20field\x20\x22','keys','40hGYitU','Run\x20the\x20command\x20with\x20--dry-run\x20first,\x20then\x20add\x20--yes\x20after\x20reviewing\x20the\x20plan.','Notification\x20JSON\x20environment\x20variable\x20is\x20not\x20set:\x20','<redacted>','endpointUrl:null','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20named\x20environment\x20variable','parse','791ICGSDk','\x22\x20must\x20be\x20a\x20non-empty\x20string.','This\x20notification\x20config\x20mutation\x20requires\x20explicit\x20--yes.','entries','isArray','EMAIL','WECOM','Invalid\x20notification\x20config\x20response.','update','1898405SdvrUQ','\x22\x20cannot\x20exceed\x20','Notification\x20JSON\x20source\x20is\x20ambiguous.','Notification\x20config\x20list\x20item\x20','notification_config_field_unknown','recipients','channelConfig','hasOwnProperty','notification_config_field_invalid','notification_config_field_required','Notification\x20JSON\x20from\x20','Notification\x20config\x20detail\x20did\x20not\x20contain\x20the\x20requested\x20ID\x20','notification_config_channel_field_forbidden','create','trim','updateTime','utf8','replyTo','preflight','includes','channelType','\x20has\x20invalid\x20field\x20\x22','\x20is\x20missing\x20required\x20field\x20\x22','bccList','WEBHOOK','\x22\x20must\x20be\x20','name','number','--id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','every','notification_config_update_empty','rabetbase\x20notification\x20config-list\x20--appcode\x20','Allowed\x20values:\x20','messageTemplate','readTimeout','\x20has\x20an\x20unsupported\x20channelType.','bool','notification_config_source_unavailable','\x20is\x20invalid.','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20UTF-8\x20file','string','FEISHU','length','push','endpointUrlRaw','join','Update\x20JSON\x20must\x20contain\x20at\x20least\x20one\x20allowed\x20field.','\x20has\x20an\x20invalid\x20id.','notification_config_confirmation_required','notification_config_json_invalid','Notification\x20config\x20','\x20has\x20an\x20invalid\x20appCode.','\x20--type\x20','16800ffzlPS','\x22\x20is\x20controlled\x20by\x20the\x20CLI\x20or\x20server\x20and\x20is\x20forbidden.','8sPpNjF','channelConfigRaw','Application-level\x20notification\x20config\x20ID','957123xQKFaS','yes','Notification\x20JSON\x20field\x20\x22','Missing\x20notification\x20JSON\x20source.','apiError','str','emailTargets','Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.','path','subjectPrefix','fromName','appCode','Inspect\x20with\x20rabetbase\x20notification\x20config-list\x20--appcode\x20','isSafeInteger','prototype','\x20does\x20not\x20belong\x20to\x20the\x20resolved\x20app.','configName','some','_unavailable','\x20characters.','has','Unable\x20to\x20read\x20notification\x20JSON\x20from\x20','endpointUrl','a\x20string\x20or\x20null','description','ccList','\x20must\x20be\x20an\x20object.','object','22wsrjEp','kind','a\x20non-empty\x20string','notification_config_field_forbidden','a\x20JSON\x20object','Provide\x20one\x20valid\x20JSON\x20object;\x20source\x20contents\x20are\x20not\x20included\x20in\x20errors.','env','stringify','2639652uHkZal','14884IaCWvf','\x22\x20is\x20forbidden.','notification_config_response_invalid','validation','Notification\x20JSON\x20channelConfig\x20field\x20\x22','Create\x20JSON\x20requires\x20field\x20','7338dqbqoZ'];a146_0x3bf9=function(){return _0x13a714;};return a146_0x3bf9();}export function assertSingleNotificationSource(_0x138bc6){const _0x2da31d=a146_0x4de633,_0x362df7=[],_0xa76a7a=_0x138bc6[_0x2da31d(0xbe)](_0x2da31d(0xf0))[_0x2da31d(0x114)]();if(_0xa76a7a)_0x362df7[_0x2da31d(0xaa)]({'kind':_0x2da31d(0xf0),'path':_0xa76a7a});if(_0x138bc6[_0x2da31d(0xa3)]('stdin'))_0x362df7['push']({'kind':_0x2da31d(0xe5)});const _0x5a8fb6=_0x138bc6[_0x2da31d(0xbe)](_0x2da31d(0xf2))[_0x2da31d(0x114)]();if(_0x5a8fb6)_0x362df7['push']({'kind':_0x2da31d(0xdb),'name':_0x5a8fb6});if(_0x362df7['length']===0x0)throw CliErrors['validation'](_0x2da31d(0xbc),'Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.');if(_0x362df7[_0x2da31d(0xa9)]>0x1)throw CliErrors[_0x2da31d(0xe1)](_0x2da31d(0x108),_0x2da31d(0xc0));return _0x362df7[0x0];}function a146_0x49f4(_0x286a16,_0xe62a5b){_0x286a16=_0x286a16-0x9f;const _0x3bf9a6=a146_0x3bf9();let _0x49f479=_0x3bf9a6[_0x286a16];return _0x49f479;}export async function readNotificationDocument(_0x3f5981,_0x58d762){const _0x5028e3=a146_0x4de633,_0x272e8d=assertSingleNotificationSource(_0x3f5981),_0x1b0d9d=_0x272e8d['kind']===_0x5028e3(0xf0)?'file\x20'+_0x272e8d[_0x5028e3(0xc1)]:_0x272e8d[_0x5028e3(0xd6)]===_0x5028e3(0xdb)?_0x5028e3(0xe8)+_0x272e8d['name']:_0x5028e3(0xe5);let _0x606655;try{if(_0x272e8d['kind']===_0x5028e3(0xf0))_0x606655=await readFile(_0x272e8d[_0x5028e3(0xc1)],'utf8');else{if(_0x272e8d[_0x5028e3(0xd6)]===_0x5028e3(0xdb)){if(!(_0x272e8d[_0x5028e3(0x120)]in process.env))throw notificationError(_0x5028e3(0xa4),_0x5028e3(0xf8)+_0x272e8d[_0x5028e3(0x120)]);_0x606655=process.env[_0x272e8d.name]??'';}else _0x606655=await readStdin();}}catch(_0x5e6707){if(_0x5e6707 instanceof CliError)throw _0x5e6707;throw notificationError(_0x5028e3(0xa4),_0x5028e3(0xce)+_0x1b0d9d+'.');}let _0x5a6ead;try{_0x5a6ead=JSON[_0x5028e3(0xfc)](_0x606655);}catch{throw notificationError(_0x5028e3(0xb0),'Notification\x20JSON\x20from\x20'+_0x1b0d9d+_0x5028e3(0xa5),_0x5028e3(0xda));}if(!isJsonObject(_0x5a6ead))throw notificationError(_0x5028e3(0xb0),_0x5028e3(0x110)+_0x1b0d9d+_0x5028e3(0xd3));return validateNotificationDocument(_0x5a6ead,_0x58d762);}export function projectNotificationListConfig(_0x15c05b,_0x2490f2){const _0x3b2f9c=a146_0x4de633;return{'id':typeof _0x15c05b['id']===_0x3b2f9c(0x121)?_0x15c05b['id']:null,'configCode':requireResponseString(_0x15c05b[_0x3b2f9c(0xe6)],_0x3b2f9c(0xe6),_0x2490f2),'configName':requireResponseString(_0x15c05b['configName'],'configName',_0x2490f2),'channelType':requireResponseString(_0x15c05b['channelType'],'channelType',_0x2490f2),'description':normalizeNullableString(_0x15c05b[_0x3b2f9c(0xd1)]),'createTime':normalizeNullableString(_0x15c05b['createTime']),'updateTime':normalizeNullableString(_0x15c05b[_0x3b2f9c(0x115)])};}export function normalizeExactNotificationConfig(_0x3ba245,_0x484a96,_0x47b045){const _0x51de37=a146_0x4de633;if(!Number['isSafeInteger'](_0x3ba245['id'])||_0x3ba245['id']!==_0x484a96)throw notificationError('notification_config_response_invalid',_0x51de37(0x111)+_0x484a96+'.');if(_0x3ba245[_0x51de37(0xc4)]!==_0x47b045)throw notificationError('notification_config_response_invalid',_0x51de37(0xb1)+_0x484a96+_0x51de37(0xc8));const _0x1c910f=requireExactString(_0x3ba245[_0x51de37(0xc9)],_0x51de37(0xc9),_0x484a96),_0x3e0227=requireExactString(_0x3ba245[_0x51de37(0xe6)],_0x51de37(0xe6),_0x484a96),_0x3b8f7b=requireExactString(_0x3ba245[_0x51de37(0x11a)],_0x51de37(0x11a),_0x484a96);if(!NOTIFICATION_CHANNEL_TYPES[_0x51de37(0x119)](_0x3b8f7b))throw notificationError(_0x51de37(0xe0),_0x51de37(0xb1)+_0x484a96+_0x51de37(0xa2));const _0x1487f9=responseNullableString(_0x3ba245['endpointUrl'],_0x51de37(0xcf),_0x484a96),_0x24bed2=responseNullableString(_0x3ba245[_0x51de37(0x10c)],_0x51de37(0x10c),_0x484a96),_0x2b2b1f=responseNullableString(_0x3ba245['description'],_0x51de37(0xd1),_0x484a96),_0x2b8dd3=responseNullableTimeout(_0x3ba245[_0x51de37(0xee)],'connectTimeout',_0x484a96),_0x39aacb=responseNullableTimeout(_0x3ba245[_0x51de37(0xa1)],_0x51de37(0xa1),_0x484a96);return{'id':_0x484a96,'appCode':_0x47b045,'configCode':_0x3e0227,'configName':_0x1c910f,'channelType':_0x3b8f7b,'endpointUrl':redactSensitive(_0x1487f9),'channelConfig':redactSensitive(_0x24bed2),'description':_0x2b2b1f,'connectTimeout':_0x2b8dd3,'readTimeout':_0x39aacb,'endpointUrlRaw':_0x1487f9,'channelConfigRaw':_0x24bed2};}export async function requireExactNotificationConfig(_0x4b6cdc,_0x2882c0,_0x3065be){const _0x3ad2c0=a146_0x4de633;let _0x1e1c7c;try{_0x1e1c7c=await getNotificationChannelConfig(_0x2882c0,_0x4b6cdc);}catch{throw safeApiFailure(_0x3065be,_0x3ad2c0(0x118),_0x3ad2c0(0xc5)+_0x4b6cdc+'\x20--type\x20<CHANNEL_TYPE>\x20--format\x20compress;\x20no\x20mutation\x20was\x20submitted.');}return normalizeExactNotificationConfig(_0x1e1c7c,_0x2882c0,_0x4b6cdc);}export function projectNotificationConfig(_0x10f180){const _0xfe4f52=a146_0x4de633;return{'id':_0x10f180['id']??null,'appCode':_0x10f180[_0xfe4f52(0xc4)],'configCode':_0x10f180['configCode']??null,'configName':_0x10f180[_0xfe4f52(0xc9)],'channelType':_0x10f180[_0xfe4f52(0x11a)],'endpointUrl':redactSensitive(_0x10f180[_0xfe4f52(0xcf)]),'channelConfig':redactSensitive(_0x10f180['channelConfig']),'description':_0x10f180[_0xfe4f52(0xd1)]??null,'connectTimeout':_0x10f180[_0xfe4f52(0xee)]??null,'readTimeout':_0x10f180['readTimeout']??null};}export function notificationSelector(_0x1fad25){const _0x78b6f5=a146_0x4de633;return{'appCode':_0x1fad25['appCode'],'id':_0x1fad25['id'],'configCode':_0x1fad25['configCode'],'configName':_0x1fad25[_0x78b6f5(0xc9)],'channelType':_0x1fad25[_0x78b6f5(0x11a)]};}export function createMutationInput(_0x42f816,_0x4474d5){const _0x2fec16=a146_0x4de633;return{'appCode':_0x42f816,'configName':_0x4474d5['configName'],'channelType':_0x4474d5[_0x2fec16(0x11a)],...hasOwn(_0x4474d5,_0x2fec16(0xcf))?{'endpointUrl':_0x4474d5[_0x2fec16(0xcf)]}:{},...hasOwn(_0x4474d5,_0x2fec16(0x10c))?{'channelConfig':serializeChannelConfig(_0x4474d5['channelConfig'])}:{},...hasOwn(_0x4474d5,'description')?{'description':_0x4474d5[_0x2fec16(0xd1)]}:{},...hasOwn(_0x4474d5,_0x2fec16(0xee))?{'connectTimeout':_0x4474d5[_0x2fec16(0xee)]}:{},...hasOwn(_0x4474d5,_0x2fec16(0xa1))?{'readTimeout':_0x4474d5['readTimeout']}:{}};}export function mergeUpdateInput(_0xa0f6e3,_0x2b0c6e){const _0x4408fd=a146_0x4de633;return{'id':_0xa0f6e3['id'],'appCode':_0xa0f6e3[_0x4408fd(0xc4)],'configName':_0x2b0c6e[_0x4408fd(0xc9)]??_0xa0f6e3[_0x4408fd(0xc9)],'channelType':_0x2b0c6e[_0x4408fd(0x11a)]??_0xa0f6e3[_0x4408fd(0x11a)],'endpointUrl':hasOwn(_0x2b0c6e,_0x4408fd(0xcf))?_0x2b0c6e[_0x4408fd(0xcf)]:_0xa0f6e3[_0x4408fd(0xab)],'channelConfig':hasOwn(_0x2b0c6e,'channelConfig')?serializeChannelConfig(_0x2b0c6e['channelConfig']):_0xa0f6e3[_0x4408fd(0xb7)],'description':hasOwn(_0x2b0c6e,_0x4408fd(0xd1))?_0x2b0c6e[_0x4408fd(0xd1)]:_0xa0f6e3['description'],'connectTimeout':hasOwn(_0x2b0c6e,_0x4408fd(0xee))?_0x2b0c6e[_0x4408fd(0xee)]:_0xa0f6e3[_0x4408fd(0xee)],'readTimeout':hasOwn(_0x2b0c6e,_0x4408fd(0xa1))?_0x2b0c6e[_0x4408fd(0xa1)]:_0xa0f6e3[_0x4408fd(0xa1)]};}export function plannedUpdateProjection(_0x5339f0,_0x5d5d9c){const _0x4de016=a146_0x4de633;return projectNotificationConfig({'id':_0x5339f0['id'],'appCode':_0x5339f0[_0x4de016(0xc4)],'configCode':_0x5339f0[_0x4de016(0xe6)],'configName':_0x5d5d9c['configName']??_0x5339f0['configName'],'channelType':_0x5d5d9c[_0x4de016(0x11a)]??_0x5339f0[_0x4de016(0x11a)],'endpointUrl':hasOwn(_0x5d5d9c,_0x4de016(0xcf))?_0x5d5d9c['endpointUrl']:_0x5339f0[_0x4de016(0xab)],'channelConfig':hasOwn(_0x5d5d9c,'channelConfig')?_0x5d5d9c[_0x4de016(0x10c)]:_0x5339f0[_0x4de016(0xb7)],'description':hasOwn(_0x5d5d9c,_0x4de016(0xd1))?_0x5d5d9c[_0x4de016(0xd1)]:_0x5339f0[_0x4de016(0xd1)],'connectTimeout':hasOwn(_0x5d5d9c,'connectTimeout')?_0x5d5d9c[_0x4de016(0xee)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:_0x5339f0[_0x4de016(0xee)],'readTimeout':hasOwn(_0x5d5d9c,_0x4de016(0xa1))?_0x5d5d9c[_0x4de016(0xa1)]??DEFAULT_NOTIFICATION_READ_TIMEOUT:_0x5339f0[_0x4de016(0xa1)]});}export function requestedSafeFieldsMatch(_0xfce139,_0x4327b6,_0x52eeec){const _0xaf7776=a146_0x4de633,_0x294d92=[],_0x2147e0=[],_0xae386=[];for(const _0x2b5420 of[_0xaf7776(0xc9),'channelType',_0xaf7776(0xd1)]){if(!hasOwn(_0x52eeec,_0x2b5420))continue;_0xae386[_0xaf7776(0xaa)](_0x2b5420),_0x294d92[_0xaf7776(0xaa)](_0x4327b6[_0x2b5420]===_0x52eeec[_0x2b5420]),_0x2147e0[_0xaf7776(0xaa)](_0xfce139[_0x2b5420]!==_0x52eeec[_0x2b5420]&&_0x4327b6[_0x2b5420]===_0x52eeec[_0x2b5420]);}for(const _0x230081 of[_0xaf7776(0xee),_0xaf7776(0xa1)]){if(!hasOwn(_0x52eeec,_0x230081))continue;const _0x5af703=_0x52eeec[_0x230081]??(_0x230081===_0xaf7776(0xee)?DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:DEFAULT_NOTIFICATION_READ_TIMEOUT);_0xae386[_0xaf7776(0xaa)](_0x230081),_0x294d92[_0xaf7776(0xaa)](_0x4327b6[_0x230081]===_0x5af703),_0x2147e0['push'](_0xfce139[_0x230081]!==_0x5af703&&_0x4327b6[_0x230081]===_0x5af703);}return hasOwn(_0x52eeec,'endpointUrl')&&_0x52eeec['endpointUrl']===null&&(_0xae386[_0xaf7776(0xaa)](_0xaf7776(0xfa)),_0x294d92[_0xaf7776(0xaa)](_0x4327b6['endpointUrlRaw']===null||_0x4327b6[_0xaf7776(0xab)]===''),_0x2147e0['push'](_0xfce139[_0xaf7776(0xab)]!==null&&_0xfce139[_0xaf7776(0xab)]!==''&&(_0x4327b6[_0xaf7776(0xab)]===null||_0x4327b6[_0xaf7776(0xab)]===''))),{'allMatch':_0x294d92[_0xaf7776(0x123)](Boolean),'provesChange':_0x2147e0[_0xaf7776(0xca)](Boolean),'verifiedFields':_0xae386};}export function validateNotificationDeleteReadback(_0x2d4037,_0x3511f2,_0xf8f690){const _0x2efe2c=a146_0x4de633;for(const [_0x40d6a6,_0x48e47b]of _0x2d4037[_0x2efe2c(0x100)]()){if(!Number[_0x2efe2c(0xc6)](_0x48e47b['id'])||_0x48e47b['id']<=0x0)throw notificationError(_0x2efe2c(0xe0),_0x2efe2c(0x109)+(_0x40d6a6+0x1)+_0x2efe2c(0xae));if(_0x48e47b[_0x2efe2c(0xc4)]!==_0x3511f2)throw notificationError(_0x2efe2c(0xe0),_0x2efe2c(0x109)+(_0x40d6a6+0x1)+_0x2efe2c(0xb2));if(_0x48e47b[_0x2efe2c(0x11a)]!==_0xf8f690)throw notificationError(_0x2efe2c(0xe0),_0x2efe2c(0x109)+(_0x40d6a6+0x1)+'\x20has\x20an\x20invalid\x20channelType.');}}export function safeApiFailure(_0x2252a1,_0x503490,_0x1bb407){const _0x3345d5=a146_0x4de633;return notificationError('notification_config_'+_0x2252a1+'_'+(_0x503490==='mutation'?'failed':_0x503490+_0x3345d5(0xcb)),_0x3345d5(0xb1)+_0x2252a1+'\x20'+_0x503490+'\x20failed.',_0x1bb407);}export function notificationLookupCommand(_0x3d0239,_0x58577b){const _0x517b00=a146_0x4de633;return _0x517b00(0x125)+_0x3d0239+_0x517b00(0xb3)+_0x58577b+'\x20--format\x20compress';}function validateNotificationDocument(_0x297825,_0x45bde7){const _0x34a775=a146_0x4de633;for(const _0x2accfb of Object['keys'](_0x297825)){if(FORBIDDEN_IDENTITY_FIELDS[_0x34a775(0xcd)](_0x2accfb))throw notificationError(_0x34a775(0xd8),_0x34a775(0xbb)+_0x2accfb+_0x34a775(0xb5));if(!ALLOWED_INPUT_FIELDS[_0x34a775(0xcd)](_0x2accfb))throw notificationError(_0x34a775(0x10a),_0x34a775(0xf4)+_0x2accfb+'\x22.');}if(_0x45bde7===_0x34a775(0x105)&&Object[_0x34a775(0xf5)](_0x297825)[_0x34a775(0xa9)]===0x0)throw notificationError(_0x34a775(0x124),_0x34a775(0xad));const _0x158823={};if(hasOwn(_0x297825,_0x34a775(0xc9)))_0x158823[_0x34a775(0xc9)]=validateRequiredString(_0x297825['configName'],_0x34a775(0xc9),0x80);else{if(_0x45bde7===_0x34a775(0x113))throw notificationError(_0x34a775(0x10f),_0x34a775(0xe3)+'\x22configName\x22.');}if(hasOwn(_0x297825,_0x34a775(0x11a))){if(typeof _0x297825[_0x34a775(0x11a)]!=='string')throw invalidFieldType(_0x34a775(0x11a),'a\x20supported\x20string');const _0x475be8=_0x297825['channelType']['trim']();if(!NOTIFICATION_CHANNEL_TYPES['includes'](_0x475be8))throw notificationError(_0x34a775(0x10e),'Notification\x20JSON\x20field\x20\x22channelType\x22\x20is\x20unsupported.',_0x34a775(0x9f)+NOTIFICATION_CHANNEL_TYPES[_0x34a775(0xac)](',\x20')+'.');_0x158823[_0x34a775(0x11a)]=_0x475be8;}else{if(_0x45bde7===_0x34a775(0x113))throw notificationError(_0x34a775(0x10f),'Create\x20JSON\x20requires\x20field\x20'+_0x34a775(0xec));}for(const [_0x5c61db,_0x2eb546]of[[_0x34a775(0xcf),0x200],[_0x34a775(0xd1),0x100]]){if(!hasOwn(_0x297825,_0x5c61db))continue;const _0x2d4cbb=_0x297825[_0x5c61db];if(_0x2d4cbb!==null&&typeof _0x2d4cbb!=='string')throw invalidFieldType(_0x5c61db,_0x34a775(0xd0));if(typeof _0x2d4cbb==='string'&&_0x2d4cbb[_0x34a775(0xa9)]>_0x2eb546)throw notificationError(_0x34a775(0x10e),'Notification\x20JSON\x20field\x20\x22'+_0x5c61db+_0x34a775(0x107)+_0x2eb546+'\x20characters.');_0x158823[_0x5c61db]=_0x2d4cbb;}if(hasOwn(_0x297825,_0x34a775(0x10c))){const _0x314055=_0x297825[_0x34a775(0x10c)];if(_0x314055===null&&_0x45bde7===_0x34a775(0x113))throw invalidFieldType('channelConfig',_0x34a775(0xd9));if(_0x314055!==null&&!isJsonObject(_0x314055))throw invalidFieldType(_0x34a775(0x10c),_0x45bde7===_0x34a775(0x105)?'a\x20JSON\x20object\x20or\x20null':_0x34a775(0xd9));_0x314055!==null&&validateChannelConfigFields(_0x158823[_0x34a775(0x11a)],_0x314055),_0x158823[_0x34a775(0x10c)]=_0x314055;}for(const _0x526370 of['connectTimeout',_0x34a775(0xa1)]){if(!hasOwn(_0x297825,_0x526370))continue;const _0x50c220=_0x297825[_0x526370];if(_0x50c220!==null&&(!Number[_0x34a775(0xc6)](_0x50c220)||_0x50c220<0x0))throw notificationError(_0x34a775(0x10e),_0x34a775(0xbb)+_0x526370+_0x34a775(0xed));_0x158823[_0x526370]=_0x50c220;}return _0x158823;}function validateRequiredString(_0x32e39d,_0x4f51fb,_0x92ed9c){const _0xc0ed33=a146_0x4de633;if(typeof _0x32e39d!==_0xc0ed33(0xa7))throw invalidFieldType(_0x4f51fb,_0xc0ed33(0xd7));const _0x281bc0=_0x32e39d[_0xc0ed33(0x114)]();if(!_0x281bc0)throw notificationError(_0xc0ed33(0x10e),_0xc0ed33(0xbb)+_0x4f51fb+_0xc0ed33(0xfe));if(_0x281bc0[_0xc0ed33(0xa9)]>_0x92ed9c)throw notificationError(_0xc0ed33(0x10e),'Notification\x20JSON\x20field\x20\x22'+_0x4f51fb+_0xc0ed33(0x107)+_0x92ed9c+_0xc0ed33(0xcc));return _0x281bc0;}function validateChannelConfigFields(_0x2b8937,_0x522701){const _0x1997fb=a146_0x4de633;if(hasOwn(_0x522701,'messageTemplate'))throw forbiddenChannelConfigField(_0x1997fb(0xa0));if(_0x2b8937==='EMAIL')for(const _0x293d70 of EMAIL_RECIPIENT_FIELDS){if(hasOwn(_0x522701,_0x293d70))throw forbiddenChannelConfigField(_0x293d70);}}function forbiddenChannelConfigField(_0x1cb26c){const _0x1a33f8=a146_0x4de633;return notificationError(_0x1a33f8(0x112),_0x1a33f8(0xe2)+_0x1cb26c+_0x1a33f8(0xdf));}function invalidFieldType(_0x58c79f,_0x5bd539){const _0x180288=a146_0x4de633;return notificationError('notification_config_field_invalid',_0x180288(0xbb)+_0x58c79f+_0x180288(0x11f)+_0x5bd539+'.');}function serializeChannelConfig(_0x48b07f){const _0x104f89=a146_0x4de633;return _0x48b07f===null||_0x48b07f===undefined?null:JSON[_0x104f89(0xdc)](_0x48b07f);}function redactSensitive(_0x1d666c){const _0x248775=a146_0x4de633;return _0x1d666c===null||_0x1d666c===undefined||_0x1d666c===''?null:_0x248775(0xf9);}function requireResponseString(_0x3ba707,_0x520068,_0x5478ea){const _0x4d1bb3=a146_0x4de633;if(typeof _0x3ba707!==_0x4d1bb3(0xa7)||_0x3ba707['trim']()==='')throw CliErrors[_0x4d1bb3(0xbd)](_0x4d1bb3(0x104),'Item\x20'+(_0x5478ea+0x1)+_0x4d1bb3(0x11c)+_0x520068+'\x22.');return _0x3ba707[_0x4d1bb3(0x114)]();}function requireExactString(_0xa2e31,_0x51a250,_0x1794ba){const _0x189b46=a146_0x4de633;if(typeof _0xa2e31!==_0x189b46(0xa7)||_0xa2e31[_0x189b46(0x114)]()==='')throw notificationError(_0x189b46(0xe0),'Notification\x20config\x20'+_0x1794ba+'\x20is\x20missing\x20required\x20field\x20\x22'+_0x51a250+'\x22.');return _0xa2e31[_0x189b46(0x114)]();}function responseNullableString(_0x596458,_0x4ef08e,_0x54fefe){const _0x4da756=a146_0x4de633;if(_0x596458===undefined||_0x596458===null)return null;if(typeof _0x596458!==_0x4da756(0xa7))throw notificationError(_0x4da756(0xe0),_0x4da756(0xb1)+_0x54fefe+_0x4da756(0x11b)+_0x4ef08e+'\x22.');return _0x596458;}function responseNullableTimeout(_0x1f2621,_0xfdf4fa,_0x7666b3){const _0x231029=a146_0x4de633;if(_0x1f2621===undefined||_0x1f2621===null)return null;if(!Number[_0x231029(0xc6)](_0x1f2621)||_0x1f2621<0x0)throw notificationError(_0x231029(0xe0),'Notification\x20config\x20'+_0x7666b3+_0x231029(0x11b)+_0xfdf4fa+'\x22.');return _0x1f2621;}function normalizeNullableString(_0x2a7b67){const _0x594670=a146_0x4de633;return typeof _0x2a7b67===_0x594670(0xa7)?_0x2a7b67:null;}function isJsonObject(_0x2e5e73){const _0x3f948c=a146_0x4de633;return _0x2e5e73!==null&&typeof _0x2e5e73===_0x3f948c(0xd4)&&!Array[_0x3f948c(0x101)](_0x2e5e73);}function hasOwn(_0x3008cc,_0x397282){const _0x12aca4=a146_0x4de633;return Object[_0x12aca4(0xc7)][_0x12aca4(0x10d)]['call'](_0x3008cc,_0x397282);}async function readStdin(){const _0x1b60a4=a146_0x4de633;let _0x226f8a='';process[_0x1b60a4(0xe5)]['setEncoding'](_0x1b60a4(0x116));for await(const _0x20e60d of process[_0x1b60a4(0xe5)])_0x226f8a+=_0x20e60d;return _0x226f8a;}
@@ -1 +1 @@
1
- const a147_0x4886ce=a147_0xfc4a;function a147_0xfc4a(_0x3394c9,_0x140d4e){_0x3394c9=_0x3394c9-0x86;const _0x5d66f9=a147_0x5d66();let _0xfc4aee=_0x5d66f9[_0x3394c9];return _0xfc4aee;}(function(_0x1e676b,_0x46bf10){const _0x3e252b=a147_0xfc4a,_0x222ccf=_0x1e676b();while(!![]){try{const _0xb5a2be=parseInt(_0x3e252b(0xa3))/0x1*(parseInt(_0x3e252b(0xbd))/0x2)+-parseInt(_0x3e252b(0x8d))/0x3*(parseInt(_0x3e252b(0x8e))/0x4)+parseInt(_0x3e252b(0x95))/0x5*(-parseInt(_0x3e252b(0x86))/0x6)+parseInt(_0x3e252b(0xb5))/0x7+parseInt(_0x3e252b(0xa2))/0x8+-parseInt(_0x3e252b(0xb8))/0x9+parseInt(_0x3e252b(0xb6))/0xa;if(_0xb5a2be===_0x46bf10)break;else _0x222ccf['push'](_0x222ccf['shift']());}catch(_0x22db16){_0x222ccf['push'](_0x222ccf['shift']());}}}(a147_0x5d66,0x5618e));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,recognizeDevelopmentOcr,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const SUPPORTED_SCENES=['invoice',a147_0x4886ce(0xbb),a147_0x4886ce(0xae),a147_0x4886ce(0xa9)],SCENE_TO_LEGACY_TYPE={'invoice':a147_0x4886ce(0x9e),'general':'General','form':a147_0x4886ce(0xb1),'idCard':'IdCard'},SCENE_FLAG={'name':a147_0x4886ce(0x8c),'type':a147_0x4886ce(0xbc),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a147_0x4886ce(0xa4)},IMAGE_FILE_FLAG={'name':a147_0x4886ce(0xad),'type':a147_0x4886ce(0xbc),'description':'Local\x20image\x20or\x20PDF\x20file;\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR'},IMAGE_URL_FLAG={'name':a147_0x4886ce(0x98),'type':a147_0x4886ce(0xbc),'description':a147_0x4886ce(0x88)};function normalizeScene(_0x2f5d3){const _0xe482c3=a147_0x4886ce,_0x5dbc05=_0x2f5d3[_0xe482c3(0xb0)]()[_0xe482c3(0x8a)]();if(_0x5dbc05===_0xe482c3(0x8f))return _0xe482c3(0xa9);if(_0x5dbc05===_0xe482c3(0x89)||_0x5dbc05===_0xe482c3(0xbb)||_0x5dbc05===_0xe482c3(0xae))return _0x5dbc05;throw CliErrors['validation'](_0xe482c3(0x91)+_0x2f5d3+'.\x20Supported\x20scenes:\x20'+SUPPORTED_SCENES[_0xe482c3(0x9d)](',\x20'));}function selectedInputs(_0x548cab){const _0x4c6152=a147_0x4886ce,_0x319856=_0x548cab[_0x4c6152(0x8b)]('image-file')['trim'](),_0x5ae06a=_0x548cab[_0x4c6152(0x8b)](_0x4c6152(0x98))[_0x4c6152(0xb0)]();return{'imageFile':_0x319856,'imageUrl':_0x5ae06a,'count':[_0x319856,_0x5ae06a][_0x4c6152(0xab)](Boolean)[_0x4c6152(0x9f)]};}function a147_0x5d66(){const _0x2f2363=['45gtEfRn','88052FmOYdc','idcard','\x20OCR','Unsupported\x20OCR\x20scene:\x20','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','File\x20upload\x20response\x20missing\x20filePath.','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','215uTWhmd','GET','fileName','image-url','fileUrl','/smartapi/ocr/recognize-text?','/smartapi/common/uploadFile','toString','join','Invoice','length','imageFile','imageUrl','1791944JcYZBh','240575UnBefE','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','<filePath\x20returned\x20by\x20/smartapi/common/uploadFile>','filePath','appCode','path','idCard','validation','filter','<fileUrl\x20returned\x20by\x20/smartapi/common/queryFileUrl>','image-file','form','\x20OCR\x20from\x20URL','trim','Table','apiError','recognize','POST','2389107kXQQFi','5102230dESrQz','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','4204980yVbzIJ','/smartapi/ocr/recognize-text','Preview:\x20recognize\x20','general','string','2MsEerD','23166eaAatL','read','Publicly\x20accessible\x20image\x20or\x20file\x20URL','invoice','toLowerCase','str','scene'];a147_0x5d66=function(){return _0x2f2363;};return a147_0x5d66();}function validateInputSelection(_0x317980){const _0x5a1ba3=a147_0x4886ce,_0x32b1c6=selectedInputs(_0x317980);if(_0x32b1c6['count']!==0x1)throw CliErrors[_0x5a1ba3(0xaa)](_0x5a1ba3(0x92));return _0x32b1c6;}function withScene(_0x31b1c6,_0x1b3142,_0x2358f4){const _0x2c4b58=a147_0x4886ce;return{..._0x31b1c6,'scene':_0x1b3142,..._0x2358f4?{'sourceFile':{'fileName':_0x2358f4[_0x2c4b58(0x97)],'filePath':_0x2358f4[_0x2c4b58(0xa6)]}}:{}};}const ocrRecognize={'service':'ocr','command':a147_0x4886ce(0xb3),'description':a147_0x4886ce(0x94),'risk':a147_0x4886ce(0x87),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x56ed17){const _0x5447f5=a147_0x4886ce,_0x49fcf4=normalizeScene(_0x56ed17[_0x5447f5(0x8b)](_0x5447f5(0x8c))),_0x3d028e=SCENE_TO_LEGACY_TYPE[_0x49fcf4],_0x24a4c3=validateInputSelection(_0x56ed17);if(_0x24a4c3[_0x5447f5(0xa1)]){const _0x2b74ff=new URLSearchParams({'url':_0x24a4c3[_0x5447f5(0xa1)],'type':_0x3d028e,'appCode':_0x56ed17['appCode']});return{'method':_0x5447f5(0x96),'url':_0x5447f5(0x9a)+_0x2b74ff[_0x5447f5(0x9c)](),'description':_0x5447f5(0xba)+_0x49fcf4+_0x5447f5(0xaf)};}const _0x471210=requireDevelopmentUploadFile(_0x24a4c3[_0x5447f5(0xa0)],_0x5447f5(0xad));return{'method':_0x5447f5(0xb4),'url':_0x5447f5(0x9b),'body':{'steps':[{'method':'POST','url':_0x5447f5(0x9b),'body':{'appCode':_0x56ed17[_0x5447f5(0xa7)],'multipart':{'file':_0x471210}}},{'method':'POST','url':'/smartapi/common/queryFileUrl','body':{'filePath':_0x5447f5(0xa5),'downloadFlag':![]}},{'method':_0x5447f5(0x96),'url':_0x5447f5(0xb9),'query':{'appCode':_0x56ed17['appCode'],'url':_0x5447f5(0xac),'type':_0x3d028e}}]},'description':_0x5447f5(0xb7)+_0x49fcf4+_0x5447f5(0x90)};},async 'execute'(_0x5cfa5c){const _0x3fe296=a147_0x4886ce,_0x57b100=normalizeScene(_0x5cfa5c[_0x3fe296(0x8b)](_0x3fe296(0x8c))),_0x46ca41=SCENE_TO_LEGACY_TYPE[_0x57b100],_0x4b7a45=validateInputSelection(_0x5cfa5c);if(_0x4b7a45[_0x3fe296(0xa1)]){const _0x1bdeef=await recognizeDevelopmentOcr(_0x5cfa5c[_0x3fe296(0xa7)],{'url':_0x4b7a45['imageUrl'],'type':_0x46ca41});return{'ok':!![],'data':withScene(_0x1bdeef,_0x57b100)};}const _0x54e497=requireDevelopmentUploadFile(_0x4b7a45[_0x3fe296(0xa0)],_0x3fe296(0xad)),_0x507247=await uploadDevelopmentFile(_0x5cfa5c[_0x3fe296(0xa7)],_0x54e497[_0x3fe296(0xa8)]);if(!_0x507247[_0x3fe296(0xa6)])throw CliErrors[_0x3fe296(0xb2)](_0x3fe296(0x93));const _0x6afdc0=await queryDevelopmentFileUrl(_0x507247[_0x3fe296(0xa6)],{'download':![]});if(!_0x6afdc0[_0x3fe296(0x99)])throw CliErrors[_0x3fe296(0xb2)]('File\x20URL\x20response\x20missing\x20fileUrl.');const _0x47e789=await recognizeDevelopmentOcr(_0x5cfa5c[_0x3fe296(0xa7)],{'url':_0x6afdc0['fileUrl'],'type':_0x46ca41});return{'ok':!![],'data':withScene(_0x47e789,_0x57b100,_0x507247)};}};export const ocrDefinitions=[ocrRecognize];
1
+ const a147_0x180acd=a147_0x21d8;(function(_0x4c5768,_0x1d7680){const _0x256f33=a147_0x21d8,_0x15d5a4=_0x4c5768();while(!![]){try{const _0xa90fd=-parseInt(_0x256f33(0x14e))/0x1*(-parseInt(_0x256f33(0x160))/0x2)+parseInt(_0x256f33(0x15a))/0x3*(parseInt(_0x256f33(0x165))/0x4)+-parseInt(_0x256f33(0x15f))/0x5*(-parseInt(_0x256f33(0x16a))/0x6)+parseInt(_0x256f33(0x156))/0x7+-parseInt(_0x256f33(0x142))/0x8*(-parseInt(_0x256f33(0x157))/0x9)+-parseInt(_0x256f33(0x150))/0xa+-parseInt(_0x256f33(0x14b))/0xb;if(_0xa90fd===_0x1d7680)break;else _0x15d5a4['push'](_0x15d5a4['shift']());}catch(_0x5ba4dd){_0x15d5a4['push'](_0x15d5a4['shift']());}}}(a147_0x2600,0x1c166));function a147_0x21d8(_0x98c236,_0x11e45e){_0x98c236=_0x98c236-0x13f;const _0x2600f8=a147_0x2600();let _0x21d89c=_0x2600f8[_0x98c236];return _0x21d89c;}import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,recognizeDevelopmentOcr,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const SUPPORTED_SCENES=[a147_0x180acd(0x147),a147_0x180acd(0x171),a147_0x180acd(0x15b),a147_0x180acd(0x162)],SCENE_TO_LEGACY_TYPE={'invoice':a147_0x180acd(0x161),'general':a147_0x180acd(0x151),'form':a147_0x180acd(0x144),'idCard':a147_0x180acd(0x16e)},SCENE_FLAG={'name':a147_0x180acd(0x14d),'type':'string','required':!![],'enum':[...SUPPORTED_SCENES],'description':'OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard'},IMAGE_FILE_FLAG={'name':'image-file','type':a147_0x180acd(0x152),'description':a147_0x180acd(0x166)},IMAGE_URL_FLAG={'name':'image-url','type':a147_0x180acd(0x152),'description':a147_0x180acd(0x148)};function normalizeScene(_0x56fd3f){const _0xbf0a6a=a147_0x180acd,_0x27541b=_0x56fd3f[_0xbf0a6a(0x158)]()[_0xbf0a6a(0x159)]();if(_0x27541b==='idcard')return _0xbf0a6a(0x162);if(_0x27541b===_0xbf0a6a(0x147)||_0x27541b===_0xbf0a6a(0x171)||_0x27541b==='form')return _0x27541b;throw CliErrors['validation'](_0xbf0a6a(0x163)+_0x56fd3f+'.\x20Supported\x20scenes:\x20'+SUPPORTED_SCENES[_0xbf0a6a(0x146)](',\x20'));}function selectedInputs(_0x354b95){const _0x33bf7d=a147_0x180acd,_0x5bed83=_0x354b95[_0x33bf7d(0x170)](_0x33bf7d(0x176))[_0x33bf7d(0x158)](),_0x3c1c31=_0x354b95[_0x33bf7d(0x170)](_0x33bf7d(0x168))[_0x33bf7d(0x158)]();return{'imageFile':_0x5bed83,'imageUrl':_0x3c1c31,'count':[_0x5bed83,_0x3c1c31]['filter'](Boolean)[_0x33bf7d(0x141)]};}function validateInputSelection(_0xa92c11){const _0x2c1bcc=a147_0x180acd,_0x46d62d=selectedInputs(_0xa92c11);if(_0x46d62d[_0x2c1bcc(0x16b)]!==0x1)throw CliErrors['validation'](_0x2c1bcc(0x16f));return _0x46d62d;}function withScene(_0x2ef9c6,_0x167a86,_0x59ffa1){const _0x315ed9=a147_0x180acd;return{..._0x2ef9c6,'scene':_0x167a86,..._0x59ffa1?{'sourceFile':{'fileName':_0x59ffa1[_0x315ed9(0x155)],'filePath':_0x59ffa1[_0x315ed9(0x169)]}}:{}};}const ocrRecognize={'service':a147_0x180acd(0x15e),'command':'recognize','description':'Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','risk':a147_0x180acd(0x175),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x48bfee){const _0xd61e79=a147_0x180acd,_0x1f77b2=normalizeScene(_0x48bfee[_0xd61e79(0x170)](_0xd61e79(0x14d))),_0x3cd50a=SCENE_TO_LEGACY_TYPE[_0x1f77b2],_0x19fb78=validateInputSelection(_0x48bfee);if(_0x19fb78[_0xd61e79(0x153)]){const _0xfe3a07=new URLSearchParams({'url':_0x19fb78['imageUrl'],'type':_0x3cd50a,'appCode':_0x48bfee[_0xd61e79(0x140)]});return{'method':_0xd61e79(0x164),'url':_0xd61e79(0x15d)+_0xfe3a07[_0xd61e79(0x16c)](),'description':'Preview:\x20recognize\x20'+_0x1f77b2+'\x20OCR\x20from\x20URL'};}const _0x2e5db3=requireDevelopmentUploadFile(_0x19fb78[_0xd61e79(0x174)],_0xd61e79(0x176));return{'method':_0xd61e79(0x16d),'url':_0xd61e79(0x154),'body':{'steps':[{'method':_0xd61e79(0x16d),'url':'/smartapi/common/uploadFile','body':{'appCode':_0x48bfee[_0xd61e79(0x140)],'multipart':{'file':_0x2e5db3}}},{'method':_0xd61e79(0x16d),'url':_0xd61e79(0x172),'body':{'filePath':_0xd61e79(0x143),'downloadFlag':![]}},{'method':_0xd61e79(0x164),'url':_0xd61e79(0x167),'query':{'appCode':_0x48bfee[_0xd61e79(0x140)],'url':_0xd61e79(0x173),'type':_0x3cd50a}}]},'description':_0xd61e79(0x15c)+_0x1f77b2+_0xd61e79(0x149)};},async 'execute'(_0x4520bc){const _0x30b1af=a147_0x180acd,_0x3b0130=normalizeScene(_0x4520bc[_0x30b1af(0x170)](_0x30b1af(0x14d))),_0x48c6d1=SCENE_TO_LEGACY_TYPE[_0x3b0130],_0x6f3e4=validateInputSelection(_0x4520bc);if(_0x6f3e4[_0x30b1af(0x153)]){const _0x1d6734=await recognizeDevelopmentOcr(_0x4520bc['appCode'],{'url':_0x6f3e4[_0x30b1af(0x153)],'type':_0x48c6d1});return{'ok':!![],'data':withScene(_0x1d6734,_0x3b0130)};}const _0x4abbe2=requireDevelopmentUploadFile(_0x6f3e4['imageFile'],_0x30b1af(0x176)),_0x455f1d=await uploadDevelopmentFile(_0x4520bc['appCode'],_0x4abbe2[_0x30b1af(0x14a)]);if(!_0x455f1d[_0x30b1af(0x169)])throw CliErrors['apiError'](_0x30b1af(0x13f));const _0x3070fd=await queryDevelopmentFileUrl(_0x455f1d[_0x30b1af(0x169)],{'download':![]});if(!_0x3070fd[_0x30b1af(0x14f)])throw CliErrors[_0x30b1af(0x145)](_0x30b1af(0x14c));const _0x4c774e=await recognizeDevelopmentOcr(_0x4520bc['appCode'],{'url':_0x3070fd[_0x30b1af(0x14f)],'type':_0x48c6d1});return{'ok':!![],'data':withScene(_0x4c774e,_0x3b0130,_0x455f1d)};}};export const ocrDefinitions=[ocrRecognize];function a147_0x2600(){const _0x14b1fe=['filePath','12LqRiWG','count','toString','POST','IdCard','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','str','general','/smartapi/common/queryFileUrl','<fileUrl\x20returned\x20by\x20/smartapi/common/queryFileUrl>','imageFile','read','image-file','File\x20upload\x20response\x20missing\x20filePath.','appCode','length','1102328kIeXsF','<filePath\x20returned\x20by\x20/smartapi/common/uploadFile>','Table','apiError','join','invoice','Publicly\x20accessible\x20image\x20or\x20file\x20URL','\x20OCR','path','3516007UaWxeE','File\x20URL\x20response\x20missing\x20fileUrl.','scene','49ryQKES','fileUrl','2174090bBDDGD','General','string','imageUrl','/smartapi/common/uploadFile','fileName','1035930GbnHNT','9vsAVqB','trim','toLowerCase','27DSJfLn','form','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','/smartapi/ocr/recognize-text?','ocr','263185nGyyBH','7034VTNZsB','Invoice','idCard','Unsupported\x20OCR\x20scene:\x20','GET','39424TacXpV','Local\x20image\x20or\x20PDF\x20file;\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','/smartapi/ocr/recognize-text','image-url'];a147_0x2600=function(){return _0x14b1fe;};return a147_0x2600();}
@@ -1 +1 @@
1
- function a148_0x1b77(){const _0x47e2b8=['page-pattern','Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','createMenu','1911552NhwLRY','version','warnings','790951FTvBRF','11118PiTuRe','langs','1850ORNBPD','compress','string','page-content','appCode','--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.','isInteger','menuPath','This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK\x20or\x20--page-content.','number','Custom_page_','Would\x20create\x20Custom\x20Page\x20','/smartapi/webcode/page/create','3715390sOiNFe','page','1995064NXCcNT','pageName\x20cannot\x20exceed\x20100\x20characters.','write','page.create','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','parent-menu-id','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','193yYSeOJ','Created\x20Custom\x20Page\x20','create','Provide\x20--page-pattern\x20BLANK\x20or\x20--page-content.','isNaN','\x20and\x20its\x20menu\x20entry.','num','page\x20create\x20does\x20not\x20accept\x20--page-type.','now','POST','apiError','--page-pattern\x20currently\x20supports\x20only\x20BLANK.','files','stringify','length','BLANK','input','en-US','name','52LrjePG','9vRpRag','menuId','--page-pattern\x20and\x20--page-content\x20cannot\x20be\x20used\x20together.','pageId','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20complete\x20files','pageName','validation','page-type','1702590DQEELp','trim','str','parentMenuId','enableI18n'];a148_0x1b77=function(){return _0x47e2b8;};return a148_0x1b77();}const a148_0x158077=a148_0x2b4b;(function(_0x253d6c,_0x46e46c){const _0x4406cc=a148_0x2b4b,_0x3b6648=_0x253d6c();while(!![]){try{const _0x1dff4e=-parseInt(_0x4406cc(0x100))/0x1*(-parseInt(_0x4406cc(0xea))/0x2)+-parseInt(_0x4406cc(0xe8))/0x3*(-parseInt(_0x4406cc(0xd3))/0x4)+-parseInt(_0x4406cc(0xdc))/0x5+parseInt(_0x4406cc(0xe4))/0x6+parseInt(_0x4406cc(0xe7))/0x7+-parseInt(_0x4406cc(0xf9))/0x8*(-parseInt(_0x4406cc(0xd4))/0x9)+-parseInt(_0x4406cc(0xf7))/0xa;if(_0x1dff4e===_0x46e46c)break;else _0x3b6648['push'](_0x3b6648['shift']());}catch(_0x5e8233){_0x3b6648['push'](_0x3b6648['shift']());}}}(a148_0x1b77,0x2fc1e));import{APPCODE_FLAG}from'../../commands/common/flags.js';import{buildInitialFiles}from'../../commands/page/custom/template.js';import{createCustomPage,getI18nInfo}from'../../core/api-client.js';function a148_0x2b4b(_0x3f2b53,_0x52ea68){_0x3f2b53=_0x3f2b53-0xd3;const _0x1b7726=a148_0x1b77();let _0x2b4bb4=_0x1b7726[_0x3f2b53];return _0x2b4bb4;}import{CliErrors}from'../../errors.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,parseCustomPageContent,validateCustomPageContent}from'./custom/shared.js';const DEFAULT_CUSTOM_PAGE_LANGUAGES=['zh-CN',a148_0x158077(0x111)];export const pageCreate={'service':a148_0x158077(0xf8),'command':a148_0x158077(0x102),'description':a148_0x158077(0xd8),'risk':a148_0x158077(0xfb),'defaultOutputFormat':a148_0x158077(0xeb),'structuredErrors':!![],'rejectedFlags':[{'name':a148_0x158077(0xdb),'message':a148_0x158077(0x107),'hint':a148_0x158077(0xf2)}],'flags':[{'name':a148_0x158077(0x112),'type':a148_0x158077(0xec),'description':a148_0x158077(0xfd)},{'name':a148_0x158077(0xfe),'type':a148_0x158077(0xf3),'description':a148_0x158077(0xff)},{'name':a148_0x158077(0xe1),'type':a148_0x158077(0xec),'description':'Custom\x20Page\x20pattern\x20(currently\x20BLANK;\x20conflicts\x20with\x20--page-content)','enum':[a148_0x158077(0x10f)]},{'name':a148_0x158077(0xed),'type':a148_0x158077(0xec),'description':'Complete\x20page\x20files\x20as\x20JSON\x20(conflicts\x20with\x20--page-pattern)'},APPCODE_FLAG],async 'validate'(_0x58fdfb){const _0x487856=a148_0x158077,_0x11f181=readPagePattern(_0x58fdfb);await validateCustomPageContent(readInput(_0x58fdfb,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x11f181)[_0x487856(0x10c)]);},async 'dryRun'(_0x2415cf){const _0x5b036f=a148_0x158077,{input:_0x131181}=await prepare(_0x2415cf);return{'method':_0x5b036f(0x109),'url':_0x5b036f(0xf6),'body':{'appCode':_0x131181[_0x5b036f(0xee)],'pageName':_0x131181[_0x5b036f(0xd9)],..._0x131181[_0x5b036f(0xdf)]!=null?{'parentMenuId':_0x131181[_0x5b036f(0xdf)]}:{},'createMenu':_0x131181[_0x5b036f(0xe3)],'codeContent':_0x131181[_0x5b036f(0x10c)]},'description':_0x5b036f(0xf5)+JSON[_0x5b036f(0x10d)](_0x131181[_0x5b036f(0xd9)])+_0x5b036f(0x105)};},async 'execute'(_0x1942a3){const _0x45f7aa=a148_0x158077,_0x4f5c79=await prepare(_0x1942a3),_0x13dbb3=await createCustomPage(_0x4f5c79[_0x45f7aa(0x110)]);if(!Number[_0x45f7aa(0xf0)](_0x13dbb3[_0x45f7aa(0xd7)])||_0x13dbb3['pageId']<=0x0)throw CliErrors[_0x45f7aa(0x10a)]('Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.');return{'ok':!![],'data':buildMutationData(_0x4f5c79,_0x13dbb3),'message':_0x45f7aa(0x101)+_0x13dbb3['pageId']+'.'};}};async function prepare(_0x453a58){const _0x2431df=a148_0x158077,_0x5de267=readPagePattern(_0x453a58);if(_0x5de267===null)return{'input':readInput(_0x453a58,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x5de267),'warnings':[],'pagePattern':_0x5de267};let _0x5f5168=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x3ebc91=[];try{const _0x5c1824=await getI18nInfo(_0x453a58[_0x2431df(0xee)]);_0x5c1824[_0x2431df(0xe0)]&&_0x5c1824[_0x2431df(0xe9)]?.['length']&&(_0x5f5168=_0x5c1824[_0x2431df(0xe9)]);}catch{_0x3ebc91=['Application\x20language\x20settings\x20could\x20not\x20be\x20read;\x20default\x20Chinese\x20and\x20English\x20language\x20files\x20were\x20generated.'];}return{'input':readInput(_0x453a58,_0x5f5168,_0x5de267),'warnings':_0x3ebc91,'pagePattern':_0x5de267};}function readPagePattern(_0x16075a){const _0x375786=a148_0x158077,_0x3b6e87=_0x16075a[_0x375786(0xde)](_0x375786(0xe1))[_0x375786(0xdd)](),_0x210d11=_0x16075a['str'](_0x375786(0xed))[_0x375786(0xdd)]()['length']>0x0;if(_0x3b6e87&&_0x210d11)throw CliErrors[_0x375786(0xda)](_0x375786(0xd6));if(_0x210d11)return null;if(!_0x3b6e87)throw CliErrors[_0x375786(0xda)](_0x375786(0x103));if(_0x3b6e87!==_0x375786(0x10f))throw CliErrors[_0x375786(0xda)](_0x375786(0x10b));return _0x3b6e87;}function readInput(_0xb2837e,_0x21373b=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x25768a=readPagePattern(_0xb2837e)){const _0x268800=a148_0x158077,_0x491f03=_0xb2837e['str'](_0x268800(0x112))['trim']()||_0x268800(0xf4)+Date[_0x268800(0x108)]();if(_0x491f03[_0x268800(0x10e)]>0x64)throw CliErrors[_0x268800(0xda)](_0x268800(0xfa));const _0x992bd7=_0xb2837e[_0x268800(0x106)](_0x268800(0xfe),NaN),_0x76f5c8=!Number[_0x268800(0x104)](_0x992bd7);if(_0x76f5c8&&(!Number[_0x268800(0xf0)](_0x992bd7)||_0x992bd7<=0x0))throw CliErrors[_0x268800(0xda)](_0x268800(0xef));return{'appCode':_0xb2837e[_0x268800(0xee)],'pageName':_0x491f03,..._0x76f5c8?{'parentMenuId':_0x992bd7}:{},'createMenu':!![],'files':_0x25768a===null?parseCustomPageContent(_0xb2837e['str']('page-content')):buildInitialFiles(_0x491f03,_0x21373b)};}function buildMutationData(_0x146835,_0x31ef28){const _0x46c6af=a148_0x158077,{input:_0x2c7658}=_0x146835,_0x15c3bc=_0x31ef28&&buildCustomPageDevelopmentUrl(_0x2c7658[_0x46c6af(0xee)],_0x31ef28[_0x46c6af(0xf1)]),_0x528150=_0x31ef28&&buildCustomPageEditUrl(_0x2c7658['appCode'],_0x31ef28[_0x46c6af(0xd7)]);return{'operation':_0x46c6af(0xfc),'pageType':'CUSTOM','pagePattern':_0x146835['pagePattern'],'selector':{'appCode':_0x2c7658['appCode'],'pageName':_0x2c7658[_0x46c6af(0xd9)]},'before':null,'after':{'pageId':_0x31ef28?.['pageId']??null,'pageName':_0x31ef28?.['pageName']??_0x2c7658[_0x46c6af(0xd9)],'appCode':_0x31ef28?.[_0x46c6af(0xee)]??_0x2c7658['appCode'],'version':_0x31ef28?.[_0x46c6af(0xe5)]??null,'menuId':_0x31ef28?.[_0x46c6af(0xd5)]??null,'menuPath':_0x31ef28?.['menuPath']??null,'files':_0x31ef28?.[_0x46c6af(0x10c)]??Object['keys'](_0x2c7658['files'])},'dryRun':_0x31ef28===undefined,'request':_0x2c7658,..._0x15c3bc?{'pageUrl':_0x15c3bc}:{},..._0x528150?{'editPageUrl':_0x528150}:{},'warnings':[..._0x146835[_0x46c6af(0xe6)],..._0x31ef28&&!_0x15c3bc?[_0x46c6af(0xe2)]:[]]};}
1
+ const a148_0x411d5b=a148_0x9800;function a148_0x29fc(){const _0x4d161b=['length','parent-menu-id','10hUfkHJ','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20complete\x20files','stringify','create','string','name','num','1706058fsxPYe','createMenu','86935mYcltK','isNaN','page','Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','trim','18643806laQeoE','Custom\x20Page\x20pattern\x20(currently\x20BLANK;\x20conflicts\x20with\x20--page-content)','Application\x20language\x20settings\x20could\x20not\x20be\x20read;\x20default\x20Chinese\x20and\x20English\x20language\x20files\x20were\x20generated.','en-US','page-type','page-content','--page-pattern\x20and\x20--page-content\x20cannot\x20be\x20used\x20together.','BLANK','keys','1747832LqDeER','351LLwqWf','\x20and\x20its\x20menu\x20entry.','pageId','parentMenuId','Would\x20create\x20Custom\x20Page\x20','validation','page-pattern','--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.','appCode','Custom_page_','files','str','POST','Provide\x20--page-pattern\x20BLANK\x20or\x20--page-content.','isInteger','CUSTOM','pageName','620350rzHLGs','6551405pWFORJ','write','2DhCAxN','warnings','menuPath','apiError','pagePattern','Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.','page\x20create\x20does\x20not\x20accept\x20--page-type.','36408eHKVlN'];a148_0x29fc=function(){return _0x4d161b;};return a148_0x29fc();}(function(_0x168d0f,_0x3c7689){const _0x499a58=a148_0x9800,_0x19a765=_0x168d0f();while(!![]){try{const _0xc68f5a=parseInt(_0x499a58(0x105))/0x1*(parseInt(_0x499a58(0xf2))/0x2)+-parseInt(_0x499a58(0x114))/0x3*(parseInt(_0x499a58(0xf9))/0x4)+-parseInt(_0x499a58(0xef))/0x5+parseInt(_0x499a58(0x103))/0x6+-parseInt(_0x499a58(0xf0))/0x7+parseInt(_0x499a58(0x113))/0x8+-parseInt(_0x499a58(0x10a))/0x9*(-parseInt(_0x499a58(0xfc))/0xa);if(_0xc68f5a===_0x3c7689)break;else _0x19a765['push'](_0x19a765['shift']());}catch(_0x4ec1bd){_0x19a765['push'](_0x19a765['shift']());}}}(a148_0x29fc,0x82f34));import{APPCODE_FLAG}from'../../commands/common/flags.js';import{buildInitialFiles}from'../../commands/page/custom/template.js';import{createCustomPage,getI18nInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,parseCustomPageContent,validateCustomPageContent}from'./custom/shared.js';const DEFAULT_CUSTOM_PAGE_LANGUAGES=['zh-CN',a148_0x411d5b(0x10d)];function a148_0x9800(_0x9c2518,_0x57ee43){_0x9c2518=_0x9c2518-0xeb;const _0x29fcd4=a148_0x29fc();let _0x980037=_0x29fcd4[_0x9c2518];return _0x980037;}export const pageCreate={'service':a148_0x411d5b(0x107),'command':a148_0x411d5b(0xff),'description':a148_0x411d5b(0xfd),'risk':a148_0x411d5b(0xf1),'defaultOutputFormat':'compress','structuredErrors':!![],'rejectedFlags':[{'name':a148_0x411d5b(0x10e),'message':a148_0x411d5b(0xf8),'hint':'This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK\x20or\x20--page-content.'}],'flags':[{'name':'name','type':'string','description':'Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)'},{'name':a148_0x411d5b(0xfb),'type':'number','description':'Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry'},{'name':a148_0x411d5b(0x11a),'type':a148_0x411d5b(0x100),'description':a148_0x411d5b(0x10b),'enum':[a148_0x411d5b(0x111)]},{'name':a148_0x411d5b(0x10f),'type':a148_0x411d5b(0x100),'description':'Complete\x20page\x20files\x20as\x20JSON\x20(conflicts\x20with\x20--page-pattern)'},APPCODE_FLAG],async 'validate'(_0x6bcfcb){const _0x115a0b=a148_0x411d5b,_0x5e770d=readPagePattern(_0x6bcfcb);await validateCustomPageContent(readInput(_0x6bcfcb,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x5e770d)[_0x115a0b(0x11e)]);},async 'dryRun'(_0x34769c){const _0x52402e=a148_0x411d5b,{input:_0x14f1a0}=await prepare(_0x34769c);return{'method':_0x52402e(0x120),'url':'/smartapi/webcode/page/create','body':{'appCode':_0x14f1a0[_0x52402e(0x11c)],'pageName':_0x14f1a0['pageName'],..._0x14f1a0[_0x52402e(0x117)]!=null?{'parentMenuId':_0x14f1a0[_0x52402e(0x117)]}:{},'createMenu':_0x14f1a0[_0x52402e(0x104)],'codeContent':_0x14f1a0[_0x52402e(0x11e)]},'description':_0x52402e(0x118)+JSON[_0x52402e(0xfe)](_0x14f1a0[_0x52402e(0xee)])+_0x52402e(0x115)};},async 'execute'(_0x261049){const _0x5ede0f=a148_0x411d5b,_0x555b7e=await prepare(_0x261049),_0x5c92bc=await createCustomPage(_0x555b7e['input']);if(!Number[_0x5ede0f(0xec)](_0x5c92bc[_0x5ede0f(0x116)])||_0x5c92bc[_0x5ede0f(0x116)]<=0x0)throw CliErrors[_0x5ede0f(0xf5)](_0x5ede0f(0xf7));return{'ok':!![],'data':buildMutationData(_0x555b7e,_0x5c92bc),'message':'Created\x20Custom\x20Page\x20'+_0x5c92bc[_0x5ede0f(0x116)]+'.'};}};async function prepare(_0x426ca3){const _0x54b10b=a148_0x411d5b,_0xd9d22b=readPagePattern(_0x426ca3);if(_0xd9d22b===null)return{'input':readInput(_0x426ca3,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0xd9d22b),'warnings':[],'pagePattern':_0xd9d22b};let _0x438183=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x3023da=[];try{const _0x18ac59=await getI18nInfo(_0x426ca3['appCode']);_0x18ac59['enableI18n']&&_0x18ac59['langs']?.[_0x54b10b(0xfa)]&&(_0x438183=_0x18ac59['langs']);}catch{_0x3023da=[_0x54b10b(0x10c)];}return{'input':readInput(_0x426ca3,_0x438183,_0xd9d22b),'warnings':_0x3023da,'pagePattern':_0xd9d22b};}function readPagePattern(_0x30c48e){const _0x288077=a148_0x411d5b,_0x25b9e0=_0x30c48e['str'](_0x288077(0x11a))[_0x288077(0x109)](),_0x14ee0c=_0x30c48e[_0x288077(0x11f)](_0x288077(0x10f))['trim']()['length']>0x0;if(_0x25b9e0&&_0x14ee0c)throw CliErrors['validation'](_0x288077(0x110));if(_0x14ee0c)return null;if(!_0x25b9e0)throw CliErrors['validation'](_0x288077(0xeb));if(_0x25b9e0!==_0x288077(0x111))throw CliErrors[_0x288077(0x119)]('--page-pattern\x20currently\x20supports\x20only\x20BLANK.');return _0x25b9e0;}function readInput(_0x2dca46,_0x1f49d5=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0xcd6b48=readPagePattern(_0x2dca46)){const _0x199b76=a148_0x411d5b,_0x4328ce=_0x2dca46[_0x199b76(0x11f)](_0x199b76(0x101))['trim']()||_0x199b76(0x11d)+Date['now']();if(_0x4328ce[_0x199b76(0xfa)]>0x64)throw CliErrors[_0x199b76(0x119)]('pageName\x20cannot\x20exceed\x20100\x20characters.');const _0x37be61=_0x2dca46[_0x199b76(0x102)]('parent-menu-id',NaN),_0x35a98d=!Number[_0x199b76(0x106)](_0x37be61);if(_0x35a98d&&(!Number[_0x199b76(0xec)](_0x37be61)||_0x37be61<=0x0))throw CliErrors['validation'](_0x199b76(0x11b));return{'appCode':_0x2dca46['appCode'],'pageName':_0x4328ce,..._0x35a98d?{'parentMenuId':_0x37be61}:{},'createMenu':!![],'files':_0xcd6b48===null?parseCustomPageContent(_0x2dca46[_0x199b76(0x11f)]('page-content')):buildInitialFiles(_0x4328ce,_0x1f49d5)};}function buildMutationData(_0x1ea52a,_0x1ee59b){const _0x111f38=a148_0x411d5b,{input:_0x27dc8e}=_0x1ea52a,_0x32c83d=_0x1ee59b&&buildCustomPageDevelopmentUrl(_0x27dc8e[_0x111f38(0x11c)],_0x1ee59b[_0x111f38(0xf4)]),_0x50282c=_0x1ee59b&&buildCustomPageEditUrl(_0x27dc8e[_0x111f38(0x11c)],_0x1ee59b[_0x111f38(0x116)]);return{'operation':'page.create','pageType':_0x111f38(0xed),'pagePattern':_0x1ea52a[_0x111f38(0xf6)],'selector':{'appCode':_0x27dc8e['appCode'],'pageName':_0x27dc8e[_0x111f38(0xee)]},'before':null,'after':{'pageId':_0x1ee59b?.[_0x111f38(0x116)]??null,'pageName':_0x1ee59b?.[_0x111f38(0xee)]??_0x27dc8e[_0x111f38(0xee)],'appCode':_0x1ee59b?.[_0x111f38(0x11c)]??_0x27dc8e[_0x111f38(0x11c)],'version':_0x1ee59b?.['version']??null,'menuId':_0x1ee59b?.['menuId']??null,'menuPath':_0x1ee59b?.['menuPath']??null,'files':_0x1ee59b?.[_0x111f38(0x11e)]??Object[_0x111f38(0x112)](_0x27dc8e[_0x111f38(0x11e)])},'dryRun':_0x1ee59b===undefined,'request':_0x27dc8e,..._0x32c83d?{'pageUrl':_0x32c83d}:{},..._0x50282c?{'editPageUrl':_0x50282c}:{},'warnings':[..._0x1ea52a[_0x111f38(0xf3)],..._0x1ee59b&&!_0x32c83d?[_0x111f38(0x108)]:[]]};}
@@ -1 +1 @@
1
- function a149_0x4a22(_0x1d22bf,_0x21799e){_0x1d22bf=_0x1d22bf-0x14b;const _0x4d2f2c=a149_0x4d2f();let _0x4a2255=_0x4d2f2c[_0x1d22bf];return _0x4a2255;}const a149_0x129cdb=a149_0x4a22;function a149_0x4d2f(){const _0x4793f5=['trim','isNaN','getTime','336279SRtiBn','getFullYear','str','appCode','Custom\x20Page\x20ID','352296cOeSMA','compress','number','Retrieved\x20Custom\x20Page\x20','getSeconds','custom-detail','getHours','716fglKQb','cookie','878166mghpAI','1112SPsPRZ','994165KRrNLx','21035lpsrKX','page','pageCode','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','getMinutes','getDate','read','538236aEuKPs','padStart','5490SAEeFf','join'];a149_0x4d2f=function(){return _0x4793f5;};return a149_0x4d2f();}(function(_0x43b22a,_0x434d92){const _0x5c3506=a149_0x4a22,_0x163f26=_0x43b22a();while(!![]){try{const _0x2c9587=-parseInt(_0x5c3506(0x165))/0x1+parseInt(_0x5c3506(0x15e))/0x2+-parseInt(_0x5c3506(0x160))/0x3*(-parseInt(_0x5c3506(0x152))/0x4)+parseInt(_0x5c3506(0x156))/0x5+parseInt(_0x5c3506(0x154))/0x6+parseInt(_0x5c3506(0x157))/0x7*(-parseInt(_0x5c3506(0x155))/0x8)+parseInt(_0x5c3506(0x14b))/0x9;if(_0x2c9587===_0x434d92)break;else _0x163f26['push'](_0x163f26['shift']());}catch(_0x410f58){_0x163f26['push'](_0x163f26['shift']());}}}(a149_0x4d2f,0x376ec));import{getCustomPageSource}from'../../../core/api-client.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':a149_0x129cdb(0x158),'command':a149_0x129cdb(0x150),'description':a149_0x129cdb(0x15a),'risk':a149_0x129cdb(0x15d),'defaultOutputFormat':a149_0x129cdb(0x14c),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a149_0x129cdb(0x14d),'required':!![],'description':a149_0x129cdb(0x169)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x45fb21){readCustomPageId(_0x45fb21);},async 'execute'(_0x16608d){const _0x28d804=a149_0x129cdb,_0x5a200b=readCustomPageId(_0x16608d),_0x510b3e=await getCustomPageSource(_0x5a200b),{bundle:_0x1a6b05,createTime:_0x424ca3,updateTime:_0x5951d5,..._0x9e00e}=_0x510b3e,_0x492c94=_0x510b3e['id']??_0x5a200b,_0xb54f69=_0x510b3e[_0x28d804(0x168)]?.[_0x28d804(0x162)]()||_0x16608d[_0x28d804(0x167)]('appcode')[_0x28d804(0x162)](),_0x130e6f=buildCustomPageRuntimeUrl(_0xb54f69,_0x510b3e[_0x28d804(0x159)]),_0x1d8015=buildCustomPageEditUrl(_0xb54f69,_0x492c94),_0x2237a2=await resolveCustomPageDevelopmentUrl(_0xb54f69,_0x492c94,_0x16608d[_0x28d804(0x153)]);return{'ok':!![],'data':{..._0x9e00e,..._0x130e6f?{'runtimePageUrl':_0x130e6f}:{},..._0x2237a2?{'pageUrl':_0x2237a2}:{},..._0x1d8015?{'editPageUrl':_0x1d8015}:{},..._0x424ca3==null?{}:{'createTime':formatTime(_0x424ca3)},..._0x5951d5==null?{}:{'updateTime':formatTime(_0x5951d5)}},'message':_0x28d804(0x14e)+_0x5a200b+'.'};}};function formatTime(_0x34d7ac){const _0x4dd70c=a149_0x129cdb,_0x4d0c1e=new Date(_0x34d7ac);if(Number[_0x4dd70c(0x163)](_0x4d0c1e[_0x4dd70c(0x164)]()))return String(_0x34d7ac);const _0x436e58=[_0x4d0c1e[_0x4dd70c(0x166)](),String(_0x4d0c1e['getMonth']()+0x1)[_0x4dd70c(0x15f)](0x2,'0'),String(_0x4d0c1e[_0x4dd70c(0x15c)]())['padStart'](0x2,'0')][_0x4dd70c(0x161)]('-'),_0x32f7f0=[String(_0x4d0c1e[_0x4dd70c(0x151)]())[_0x4dd70c(0x15f)](0x2,'0'),String(_0x4d0c1e[_0x4dd70c(0x15b)]())[_0x4dd70c(0x15f)](0x2,'0'),String(_0x4d0c1e[_0x4dd70c(0x14f)]())['padStart'](0x2,'0')][_0x4dd70c(0x161)](':');return _0x436e58+'\x20'+_0x32f7f0;}
1
+ const a149_0x2fcc16=a149_0xb76b;(function(_0x1dfb48,_0x1beb44){const _0xb5066f=a149_0xb76b,_0x1241ee=_0x1dfb48();while(!![]){try{const _0x36c83e=-parseInt(_0xb5066f(0xbb))/0x1*(-parseInt(_0xb5066f(0xad))/0x2)+parseInt(_0xb5066f(0xbe))/0x3+-parseInt(_0xb5066f(0xa9))/0x4+-parseInt(_0xb5066f(0xc2))/0x5*(parseInt(_0xb5066f(0xbc))/0x6)+-parseInt(_0xb5066f(0xa5))/0x7*(parseInt(_0xb5066f(0xaf))/0x8)+parseInt(_0xb5066f(0xc3))/0x9*(-parseInt(_0xb5066f(0xb9))/0xa)+parseInt(_0xb5066f(0xb4))/0xb;if(_0x36c83e===_0x1beb44)break;else _0x1241ee['push'](_0x1241ee['shift']());}catch(_0xd7cd12){_0x1241ee['push'](_0x1241ee['shift']());}}}(a149_0x1474,0x9ac77));function a149_0x1474(){const _0x1db19d=['appcode','getTime','cookie','2189644ATQLDl','read','compress','Custom\x20Page\x20ID','2xPwHRE','getDate','104iImLag','getHours','padStart','getMinutes','custom-detail','7533229YXzcPk','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','number','isNaN','appCode','20kHSplO','getFullYear','603419VeFZbY','2311032jWjenx','getSeconds','3233511XqJywE','getMonth','join','trim','5tqkRLo','1580661alZMQs','Retrieved\x20Custom\x20Page\x20','pageCode','241381yJFwwN'];a149_0x1474=function(){return _0x1db19d;};return a149_0x1474();}import{getCustomPageSource}from'../../../core/api-client.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';function a149_0xb76b(_0x319b1f,_0x44c763){_0x319b1f=_0x319b1f-0xa4;const _0x147403=a149_0x1474();let _0xb76b85=_0x147403[_0x319b1f];return _0xb76b85;}export const pageCustomDetail={'service':'page','command':a149_0x2fcc16(0xb3),'description':a149_0x2fcc16(0xb5),'risk':a149_0x2fcc16(0xaa),'defaultOutputFormat':a149_0x2fcc16(0xab),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a149_0x2fcc16(0xb6),'required':!![],'description':a149_0x2fcc16(0xac)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0xc45065){readCustomPageId(_0xc45065);},async 'execute'(_0x28dc3a){const _0x2f9e5f=a149_0x2fcc16,_0x4502d0=readCustomPageId(_0x28dc3a),_0x51dfaf=await getCustomPageSource(_0x4502d0),{bundle:_0xc32c37,createTime:_0x3c5148,updateTime:_0x336f7a,..._0x2c9c5a}=_0x51dfaf,_0xb0bc60=_0x51dfaf['id']??_0x4502d0,_0x505e44=_0x51dfaf[_0x2f9e5f(0xb8)]?.[_0x2f9e5f(0xc1)]()||_0x28dc3a['str'](_0x2f9e5f(0xa6))[_0x2f9e5f(0xc1)](),_0x298b39=buildCustomPageRuntimeUrl(_0x505e44,_0x51dfaf[_0x2f9e5f(0xa4)]),_0xa812d9=buildCustomPageEditUrl(_0x505e44,_0xb0bc60),_0x18dee6=await resolveCustomPageDevelopmentUrl(_0x505e44,_0xb0bc60,_0x28dc3a[_0x2f9e5f(0xa8)]);return{'ok':!![],'data':{..._0x2c9c5a,..._0x298b39?{'runtimePageUrl':_0x298b39}:{},..._0x18dee6?{'pageUrl':_0x18dee6}:{},..._0xa812d9?{'editPageUrl':_0xa812d9}:{},..._0x3c5148==null?{}:{'createTime':formatTime(_0x3c5148)},..._0x336f7a==null?{}:{'updateTime':formatTime(_0x336f7a)}},'message':_0x2f9e5f(0xc4)+_0x4502d0+'.'};}};function formatTime(_0x48c378){const _0x278c1c=a149_0x2fcc16,_0x39748a=new Date(_0x48c378);if(Number[_0x278c1c(0xb7)](_0x39748a[_0x278c1c(0xa7)]()))return String(_0x48c378);const _0x120028=[_0x39748a[_0x278c1c(0xba)](),String(_0x39748a[_0x278c1c(0xbf)]()+0x1)['padStart'](0x2,'0'),String(_0x39748a[_0x278c1c(0xae)]())[_0x278c1c(0xb1)](0x2,'0')][_0x278c1c(0xc0)]('-'),_0x2517fb=[String(_0x39748a[_0x278c1c(0xb0)]())[_0x278c1c(0xb1)](0x2,'0'),String(_0x39748a[_0x278c1c(0xb2)]())['padStart'](0x2,'0'),String(_0x39748a[_0x278c1c(0xbd)]())[_0x278c1c(0xb1)](0x2,'0')][_0x278c1c(0xc0)](':');return _0x120028+'\x20'+_0x2517fb;}