@lovrabet/rabetbase-cli 2.5.1 → 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 a218_0xc8eac9=a218_0x26eb;(function(_0x254011,_0x421111){const _0x3996c5=a218_0x26eb,_0x4e1c0e=_0x254011();while(!![]){try{const _0x29a3ae=parseInt(_0x3996c5(0x171))/0x1*(-parseInt(_0x3996c5(0x166))/0x2)+-parseInt(_0x3996c5(0x156))/0x3+-parseInt(_0x3996c5(0x175))/0x4*(-parseInt(_0x3996c5(0x179))/0x5)+-parseInt(_0x3996c5(0x185))/0x6+parseInt(_0x3996c5(0x15a))/0x7+-parseInt(_0x3996c5(0x154))/0x8+parseInt(_0x3996c5(0x164))/0x9*(parseInt(_0x3996c5(0x15f))/0xa);if(_0x29a3ae===_0x421111)break;else _0x4e1c0e['push'](_0x4e1c0e['shift']());}catch(_0x4b43b6){_0x4e1c0e['push'](_0x4e1c0e['shift']());}}}(a218_0x5b2c,0x5ccbb));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';import{ENTERPRISE_ROUTING_CDN_FIELDS,ENTERPRISE_ROUTING_DOMAIN_FIELDS,ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL,ENTERPRISE_ROUTING_TOP_LEVEL_FIELDS,ENTERPRISE_ROUTING_CONSUMERS,REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS,REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS}from'../generated/routing-contract.js';function a218_0x5b2c(){const _0xdb8da9=['50nunOdh','Invalid\x20enterprise\x20routing\x20manifest:\x20cdn\x20must\x20be\x20an\x20object.','\x22\x20and\x20kind\x20\x22','mode','localDomain','3316725gPeTRN','skill-domain','707844DiexCH','protocol','str','cwd','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.','platformDomain','Invalid\x20','\x22\x20is\x20not\x20a\x20valid\x20URL.','local-domain','apiDomain','\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20','2rVcggM','trim','agentDomain','certificateDomain','1327304gvmHsY','href','origin',':\x20\x22','5AISfmF',':\x20consumer\x20Domain\x20object\x20cannot\x20be\x20empty.','skillHubDomain',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','certificate-domain','cdn','Unsupported\x20enterprise\x20Domain\x20field(s):\x20','Invalid\x20cdn.','appDomain','Unsupported\x20enterprise\x20routing\x20field(s):\x20','runtimeDomain',':\x20expected\x20an\x20HTTPS\x20','3208584muHite','Allowed\x20fields:\x20','app-domain','userDomain','\x20and\x20has\x20no\x20default.','skillDomain','Allowed\x20consumers:\x20','utf8','\x20without\x20credentials,\x20query,\x20or\x20fragment.','domains','object','api-domain','rabetbase-cli','Unsupported\x20enterprise\x20CDN\x20field(s):\x20','parse','Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22','string','filter','includes','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','Domain\x20config\x20file\x20not\x20found:\x20','validation','hash','isArray','https:','join','domain-config','Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.','user-domain','search','length','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','base\x20URL','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','legacy','lovrabet','Invalid\x20domain\x20config\x20JSON:\x20','5047232zxqJsS','pathname','673701zpYAuV',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','\x20consumer(s):\x20','password','2126033fGlBKx','kbDomain','keys','username','replace'];a218_0x5b2c=function(){return _0xdb8da9;};return a218_0x5b2c();}export const DOMAIN_CONFIG_FIELDS=[a218_0xc8eac9(0x188),a218_0xc8eac9(0x16f),a218_0xc8eac9(0x183),'skillDomain','kbDomain',a218_0xc8eac9(0x181),a218_0xc8eac9(0x163),a218_0xc8eac9(0x174)];const DOMAIN_FLAGS={'userDomain':a218_0xc8eac9(0x14b),'apiDomain':a218_0xc8eac9(0x13a),'runtimeDomain':'runtime-domain','skillDomain':a218_0xc8eac9(0x165),'kbDomain':'kb-domain','appDomain':a218_0xc8eac9(0x187),'localDomain':a218_0xc8eac9(0x16e),'certificateDomain':a218_0xc8eac9(0x17d)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a218_0xc8eac9(0x173),a218_0xc8eac9(0x16b),a218_0xc8eac9(0x17b)];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':a218_0xc8eac9(0x188),'apiDomain':'apiDomain','runtimeDomain':'runtimeDomain','skillDomain':a218_0xc8eac9(0x18a),'kbDomain':a218_0xc8eac9(0x15b),'appDomain':'appDomain','localDomain':'localDomain','certificateDomain':a218_0xc8eac9(0x174)},ROUTING_CONSUMER=a218_0xc8eac9(0x13b);export function normalizeDomainOrigin(_0x3fcdad,_0x361ec4){const _0x134221=a218_0xc8eac9;if(typeof _0x361ec4!==_0x134221(0x13f)||!_0x361ec4[_0x134221(0x172)]())throw CliErrors[_0x134221(0x144)](_0x134221(0x16c)+_0x3fcdad+_0x134221(0x17c));let _0x402668;try{_0x402668=new URL(_0x361ec4[_0x134221(0x172)]());}catch{throw CliErrors[_0x134221(0x144)](_0x134221(0x16c)+_0x3fcdad+_0x134221(0x178)+_0x361ec4+'\x22\x20is\x20not\x20a\x20valid\x20URL.');}if(_0x402668[_0x134221(0x167)]!==_0x134221(0x147)||_0x402668[_0x134221(0x15d)]||_0x402668[_0x134221(0x159)]||_0x402668[_0x134221(0x155)]!=='/'&&_0x402668[_0x134221(0x155)]!==''||_0x402668[_0x134221(0x14c)]||_0x402668[_0x134221(0x145)])throw CliErrors[_0x134221(0x144)](_0x134221(0x16c)+_0x3fcdad+_0x134221(0x157),_0x134221(0x14e));return _0x402668[_0x134221(0x177)];}export function normalizeRoutingDomainValue(_0x11b7ae,_0xa2ed41){const _0x22b09a=a218_0xc8eac9;if(typeof _0xa2ed41===_0x22b09a(0x13f))return normalizeDomainOrigin(_0x11b7ae,_0xa2ed41);if(!_0xa2ed41||typeof _0xa2ed41!==_0x22b09a(0x139)||Array['isArray'](_0xa2ed41))throw CliErrors[_0x22b09a(0x144)](_0x22b09a(0x16c)+_0x11b7ae+':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.');const _0x38bc72=_0xa2ed41,_0x35c3a7=Object[_0x22b09a(0x15c)](_0x38bc72),_0x2db828=['default',...ENTERPRISE_ROUTING_CONSUMERS],_0x2c383b=_0x35c3a7[_0x22b09a(0x140)](_0x545e41=>!_0x2db828[_0x22b09a(0x141)](_0x545e41));if(_0x2c383b['length']>0x0)throw CliErrors[_0x22b09a(0x144)]('Unsupported\x20'+_0x11b7ae+_0x22b09a(0x158)+_0x2c383b[_0x22b09a(0x148)](',\x20'),_0x22b09a(0x18b)+_0x2db828[_0x22b09a(0x148)](',\x20'));if(_0x35c3a7[_0x22b09a(0x14d)]===0x0)throw CliErrors[_0x22b09a(0x144)]('Invalid\x20'+_0x11b7ae+_0x22b09a(0x17a));const _0x549464={};for(const _0x5a718f of _0x35c3a7){const _0x233fe0=_0x5a718f;_0x549464[_0x233fe0]=normalizeDomainOrigin(_0x11b7ae,_0x38bc72[_0x5a718f]);}return _0x549464;}export function normalizeCdnBaseUrl(_0x1352cd,_0x6d7ec8){const _0x39700c=a218_0xc8eac9;if(typeof _0x6d7ec8!=='string'||!_0x6d7ec8[_0x39700c(0x172)]())throw CliErrors[_0x39700c(0x144)](_0x39700c(0x180)+_0x1352cd+':\x20expected\x20a\x20non-empty\x20HTTPS\x20URL.');const _0x2d5928=_0x6d7ec8[_0x39700c(0x172)]()[_0x39700c(0x15e)](/\/$/,'');let _0x1f4acd;try{_0x1f4acd=new URL(_0x2d5928);}catch{throw CliErrors[_0x39700c(0x144)](_0x39700c(0x180)+_0x1352cd+':\x20\x22'+_0x6d7ec8+_0x39700c(0x16d));}if(_0x1f4acd['protocol']!=='https:'||_0x1f4acd[_0x39700c(0x15d)]||_0x1f4acd[_0x39700c(0x159)]||_0x1f4acd[_0x39700c(0x14c)]||_0x1f4acd['hash']||_0x1f4acd[_0x39700c(0x176)]['replace'](/\/$/,'')!==_0x2d5928||_0x1352cd==='lovrabet'&&_0x1f4acd[_0x39700c(0x177)]!==_0x2d5928)throw CliErrors[_0x39700c(0x144)](_0x39700c(0x180)+_0x1352cd+_0x39700c(0x184)+(_0x1352cd===_0x39700c(0x152)?_0x39700c(0x177):_0x39700c(0x14f))+_0x39700c(0x137));return _0x2d5928;}function a218_0x26eb(_0x330853,_0x4b6c96){_0x330853=_0x330853-0x136;const _0x5b2cd9=a218_0x5b2c();let _0x26eb1a=_0x5b2cd9[_0x330853];return _0x26eb1a;}export function resolveEnterpriseRoutingConfig(_0x115ec9){const _0x6b9a01=a218_0xc8eac9;return resolveEnterpriseRoutingManifest(_0x115ec9)?.[_0x6b9a01(0x138)];}export function resolveEnterpriseRoutingManifest(_0x38ff48){const _0x2754e4=a218_0xc8eac9;if(_0x38ff48===undefined)return undefined;if(!_0x38ff48||typeof _0x38ff48!==_0x2754e4(0x139)||Array[_0x2754e4(0x146)](_0x38ff48))throw CliErrors[_0x2754e4(0x144)]('Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.');return parseEnterpriseRoutingManifest(_0x38ff48);}export function resolveRoutingDomainValue(_0x1dd99e,_0x137a88,_0x20c891){const _0x51c017=a218_0xc8eac9;if(typeof _0x137a88===_0x51c017(0x13f))return _0x137a88;const _0x46406b=_0x137a88[_0x20c891]??_0x137a88['default'];if(!_0x46406b)throw CliErrors[_0x51c017(0x144)]('Enterprise\x20'+_0x1dd99e+_0x51c017(0x170)+_0x20c891+_0x51c017(0x189));return _0x46406b;}export function readDomainConfigInput(_0x5aa8ad){const _0x17f5fc=a218_0xc8eac9,_0x44f2f7=isAbsolute(_0x5aa8ad)?_0x5aa8ad:resolve(process[_0x17f5fc(0x169)](),_0x5aa8ad);if(!existsSync(_0x44f2f7))throw CliErrors[_0x17f5fc(0x144)](_0x17f5fc(0x143)+_0x44f2f7);let _0x3a0349;try{_0x3a0349=JSON[_0x17f5fc(0x13d)](readFileSync(_0x44f2f7,_0x17f5fc(0x136)));}catch{throw CliErrors[_0x17f5fc(0x144)](_0x17f5fc(0x153)+_0x44f2f7);}if(!_0x3a0349||typeof _0x3a0349!=='object'||Array[_0x17f5fc(0x146)](_0x3a0349))throw CliErrors['validation'](_0x17f5fc(0x150));const _0x4ecbdf=_0x3a0349;if('protocol'in _0x4ecbdf)return parseEnterpriseRoutingManifest(_0x4ecbdf);const _0x3f540c=Object[_0x17f5fc(0x15c)](_0x4ecbdf)[_0x17f5fc(0x140)](_0x4ea01e=>!DOMAIN_CONFIG_FIELDS[_0x17f5fc(0x141)](_0x4ea01e));if(_0x3f540c['length']>0x0)throw CliErrors[_0x17f5fc(0x144)]('Unsupported\x20domain\x20config\x20field(s):\x20'+_0x3f540c[_0x17f5fc(0x148)](',\x20'),_0x17f5fc(0x186)+DOMAIN_CONFIG_FIELDS[_0x17f5fc(0x148)](',\x20'));const _0x608e0a={};for(const _0x57f987 of DOMAIN_CONFIG_FIELDS){_0x4ecbdf[_0x57f987]!==undefined&&(_0x608e0a[_0x57f987]=normalizeDomainOrigin(_0x57f987,_0x4ecbdf[_0x57f987]));}if(Object[_0x17f5fc(0x15c)](_0x608e0a)[_0x17f5fc(0x14d)]===0x0)throw CliErrors['validation']('Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.');return{'mode':_0x17f5fc(0x151),'domains':_0x608e0a};}export function readDomainConfig(_0x61105c){const _0x14a8dd=a218_0xc8eac9;return readDomainConfigInput(_0x61105c)[_0x14a8dd(0x138)];}export function resolveDomainConfigInput(_0x3be44a){const _0x5e3678=a218_0xc8eac9,_0x3a24d0=(_0x3be44a[_0x5e3678(0x168)](_0x5e3678(0x149))||'')[_0x5e3678(0x172)](),_0x53eb87=_0x3a24d0?readDomainConfigInput(_0x3a24d0):{'mode':_0x5e3678(0x151),'domains':{}},_0x2d58bf=DOMAIN_CONFIG_FIELDS['filter'](_0x181027=>Boolean((_0x3be44a['str'](DOMAIN_FLAGS[_0x181027])||'')[_0x5e3678(0x172)]()));if(_0x53eb87[_0x5e3678(0x162)]==='enterprise-v1'&&_0x2d58bf['length']>0x0)throw CliErrors[_0x5e3678(0x144)]('Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.',_0x5e3678(0x16a));for(const _0x27d309 of DOMAIN_CONFIG_FIELDS){const _0x57c7ab=(_0x3be44a[_0x5e3678(0x168)](DOMAIN_FLAGS[_0x27d309])||'')['trim']();if(_0x57c7ab)_0x53eb87['domains'][_0x27d309]=normalizeDomainOrigin(_0x27d309,_0x57c7ab);}return _0x53eb87;}export function resolveDomainFlags(_0x750fc6){return resolveDomainConfigInput(_0x750fc6)['domains'];}export function parseEnterpriseRoutingManifest(_0x190593){const _0x29dd88=a218_0xc8eac9,_0x1e45b7=Object['keys'](_0x190593)[_0x29dd88(0x140)](_0x170a52=>!ENTERPRISE_ROUTING_TOP_LEVEL_FIELDS[_0x29dd88(0x141)](_0x170a52));if(_0x1e45b7[_0x29dd88(0x14d)]>0x0)throw CliErrors['validation'](_0x29dd88(0x182)+_0x1e45b7[_0x29dd88(0x148)](',\x20'));if(_0x190593['protocol']!==ENTERPRISE_ROUTING_PROTOCOL||_0x190593['kind']!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x29dd88(0x144)](_0x29dd88(0x13e)+ENTERPRISE_ROUTING_PROTOCOL+_0x29dd88(0x161)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x190593[_0x29dd88(0x138)]||typeof _0x190593['domains']!=='object'||Array['isArray'](_0x190593[_0x29dd88(0x138)]))throw CliErrors[_0x29dd88(0x144)](_0x29dd88(0x14a));if(!_0x190593[_0x29dd88(0x17e)]||typeof _0x190593[_0x29dd88(0x17e)]!==_0x29dd88(0x139)||Array[_0x29dd88(0x146)](_0x190593[_0x29dd88(0x17e)]))throw CliErrors[_0x29dd88(0x144)](_0x29dd88(0x160));const _0x15c0fd=_0x190593[_0x29dd88(0x138)],_0x1372fe=Object[_0x29dd88(0x15c)](_0x15c0fd)['filter'](_0x42bd73=>!ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x29dd88(0x141)](_0x42bd73));if(_0x1372fe[_0x29dd88(0x14d)]>0x0)throw CliErrors['validation'](_0x29dd88(0x17f)+_0x1372fe[_0x29dd88(0x148)](',\x20'),_0x29dd88(0x186)+ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x29dd88(0x148)](',\x20'));const _0x545499=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x29dd88(0x140)](_0x5be6c8=>_0x15c0fd[_0x5be6c8]===undefined);if(_0x545499[_0x29dd88(0x14d)]>0x0)throw CliErrors[_0x29dd88(0x144)](_0x29dd88(0x142)+_0x545499['join'](',\x20'));if(_0x15c0fd['localDomain']===undefined!==(_0x15c0fd['certificateDomain']===undefined))throw CliErrors['validation']('Enterprise\x20routing\x20manifest\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.');const _0x300bb7=_0x190593[_0x29dd88(0x17e)],_0x307950=Object['keys'](_0x300bb7)[_0x29dd88(0x140)](_0x306b93=>!ENTERPRISE_ROUTING_CDN_FIELDS['includes'](_0x306b93));if(_0x307950[_0x29dd88(0x14d)]>0x0)throw CliErrors[_0x29dd88(0x144)](_0x29dd88(0x13c)+_0x307950[_0x29dd88(0x148)](',\x20'),_0x29dd88(0x186)+ENTERPRISE_ROUTING_CDN_FIELDS[_0x29dd88(0x148)](',\x20'));const _0x13cbee=REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS['filter'](_0x5cb1e7=>_0x300bb7[_0x5cb1e7]===undefined);if(_0x13cbee[_0x29dd88(0x14d)]>0x0)throw CliErrors[_0x29dd88(0x144)]('Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20CDN\x20field(s):\x20'+_0x13cbee[_0x29dd88(0x148)](',\x20'));const _0x89a4f6={};for(const _0x54c713 of ENTERPRISE_ROUTING_CDN_FIELDS){_0x89a4f6[_0x54c713]=normalizeCdnBaseUrl(_0x54c713,_0x300bb7[_0x54c713]);}const _0x1cd491={},_0x1a05b6={};for(const _0x1d043 of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x2ffd37=_0x15c0fd[_0x1d043];if(_0x2ffd37===undefined)continue;const _0x4c80c4=normalizeRoutingDomainValue(_0x1d043,_0x2ffd37);_0x1cd491[_0x1d043]=_0x4c80c4;const _0x568c29=ENTERPRISE_TO_LOCAL_FIELD[_0x1d043];_0x568c29&&(_0x1a05b6[_0x568c29]=resolveRoutingDomainValue(_0x1d043,_0x4c80c4,ROUTING_CONSUMER));}return{'mode':'enterprise-v1','domains':_0x1a05b6,'manifestDomains':_0x1cd491,'cdn':_0x89a4f6};}
1
+ const a217_0x1a17b2=a217_0x5513;(function(_0x4a4c9b,_0x33e751){const _0x1995ed=a217_0x5513,_0x360a4c=_0x4a4c9b();while(!![]){try{const _0x2fdfdd=-parseInt(_0x1995ed(0x1bf))/0x1+-parseInt(_0x1995ed(0x1be))/0x2+parseInt(_0x1995ed(0x1d9))/0x3+-parseInt(_0x1995ed(0x1d3))/0x4+parseInt(_0x1995ed(0x1c9))/0x5*(-parseInt(_0x1995ed(0x1d7))/0x6)+parseInt(_0x1995ed(0x1cd))/0x7*(-parseInt(_0x1995ed(0x1f4))/0x8)+parseInt(_0x1995ed(0x1fb))/0x9*(parseInt(_0x1995ed(0x1bb))/0xa);if(_0x2fdfdd===_0x33e751)break;else _0x360a4c['push'](_0x360a4c['shift']());}catch(_0x540884){_0x360a4c['push'](_0x360a4c['shift']());}}}(a217_0x2d2f,0xe35a0));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';import{ENTERPRISE_ROUTING_CDN_FIELDS,ENTERPRISE_ROUTING_DOMAIN_FIELDS,ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL,ENTERPRISE_ROUTING_TOP_LEVEL_FIELDS,ENTERPRISE_ROUTING_CONSUMERS,REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS,REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS}from'../generated/routing-contract.js';export const DOMAIN_CONFIG_FIELDS=[a217_0x1a17b2(0x1ba),'apiDomain','runtimeDomain',a217_0x1a17b2(0x1fc),a217_0x1a17b2(0x1b6),a217_0x1a17b2(0x1cc),a217_0x1a17b2(0x1b5),a217_0x1a17b2(0x1c5)];const DOMAIN_FLAGS={'userDomain':a217_0x1a17b2(0x1b2),'apiDomain':a217_0x1a17b2(0x1e6),'runtimeDomain':a217_0x1a17b2(0x1de),'skillDomain':a217_0x1a17b2(0x1ae),'kbDomain':'kb-domain','appDomain':a217_0x1a17b2(0x1ad),'localDomain':'local-domain','certificateDomain':a217_0x1a17b2(0x1da)};function a217_0x5513(_0x9594c7,_0x20a6ea){_0x9594c7=_0x9594c7-0x1ad;const _0x2d2f07=a217_0x2d2f();let _0x551354=_0x2d2f07[_0x9594c7];return _0x551354;}export const LEGACY_DOMAIN_CONFIG_FIELDS=[a217_0x1a17b2(0x1e1),a217_0x1a17b2(0x1f6),a217_0x1a17b2(0x1b0)];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':a217_0x1a17b2(0x1ba),'apiDomain':a217_0x1a17b2(0x200),'runtimeDomain':a217_0x1a17b2(0x1f5),'skillDomain':a217_0x1a17b2(0x1fc),'kbDomain':a217_0x1a17b2(0x1b6),'appDomain':a217_0x1a17b2(0x1cc),'localDomain':a217_0x1a17b2(0x1b5),'certificateDomain':a217_0x1a17b2(0x1c5)},ROUTING_CONSUMER=a217_0x1a17b2(0x1ca);export function normalizeDomainOrigin(_0x2c7ae8,_0x222d45){const _0x4289b5=a217_0x1a17b2;if(typeof _0x222d45!==_0x4289b5(0x1fe)||!_0x222d45[_0x4289b5(0x1b1)]())throw CliErrors[_0x4289b5(0x1e5)](_0x4289b5(0x1d8)+_0x2c7ae8+_0x4289b5(0x1ff));let _0x1e0260;try{_0x1e0260=new URL(_0x222d45['trim']());}catch{throw CliErrors[_0x4289b5(0x1e5)](_0x4289b5(0x1d8)+_0x2c7ae8+_0x4289b5(0x1db)+_0x222d45+_0x4289b5(0x1e3));}if(_0x1e0260[_0x4289b5(0x1e0)]!==_0x4289b5(0x1f9)||_0x1e0260[_0x4289b5(0x1e9)]||_0x1e0260['password']||_0x1e0260[_0x4289b5(0x1c4)]!=='/'&&_0x1e0260[_0x4289b5(0x1c4)]!==''||_0x1e0260[_0x4289b5(0x1b3)]||_0x1e0260[_0x4289b5(0x1c8)])throw CliErrors['validation'](_0x4289b5(0x1d8)+_0x2c7ae8+_0x4289b5(0x1d2),_0x4289b5(0x1d4));return _0x1e0260[_0x4289b5(0x1f0)];}export function normalizeRoutingDomainValue(_0x18c457,_0x17592b){const _0x3be6bb=a217_0x1a17b2;if(typeof _0x17592b===_0x3be6bb(0x1fe))return normalizeDomainOrigin(_0x18c457,_0x17592b);if(!_0x17592b||typeof _0x17592b!==_0x3be6bb(0x1c3)||Array['isArray'](_0x17592b))throw CliErrors[_0x3be6bb(0x1e5)](_0x3be6bb(0x1d8)+_0x18c457+_0x3be6bb(0x1f7));const _0x36fb75=_0x17592b,_0xaee8e3=Object['keys'](_0x36fb75),_0x1917ab=[_0x3be6bb(0x1cf),...ENTERPRISE_ROUTING_CONSUMERS],_0x4acd83=_0xaee8e3['filter'](_0x2ea4bb=>!_0x1917ab[_0x3be6bb(0x1ed)](_0x2ea4bb));if(_0x4acd83['length']>0x0)throw CliErrors[_0x3be6bb(0x1e5)]('Unsupported\x20'+_0x18c457+_0x3be6bb(0x1cb)+_0x4acd83['join'](',\x20'),_0x3be6bb(0x1dc)+_0x1917ab['join'](',\x20'));if(_0xaee8e3['length']===0x0)throw CliErrors[_0x3be6bb(0x1e5)](_0x3be6bb(0x1d8)+_0x18c457+_0x3be6bb(0x1eb));const _0x529b44={};for(const _0x3cfa33 of _0xaee8e3){const _0x49f64b=_0x3cfa33;_0x529b44[_0x49f64b]=normalizeDomainOrigin(_0x18c457,_0x36fb75[_0x3cfa33]);}return _0x529b44;}export function normalizeCdnBaseUrl(_0x25249a,_0x44788d){const _0x698760=a217_0x1a17b2;if(typeof _0x44788d!==_0x698760(0x1fe)||!_0x44788d[_0x698760(0x1b1)]())throw CliErrors['validation']('Invalid\x20cdn.'+_0x25249a+':\x20expected\x20a\x20non-empty\x20HTTPS\x20URL.');const _0x3d9f79=_0x44788d['trim']()[_0x698760(0x1bc)](/\/$/,'');let _0x5b96e4;try{_0x5b96e4=new URL(_0x3d9f79);}catch{throw CliErrors[_0x698760(0x1e5)](_0x698760(0x202)+_0x25249a+_0x698760(0x1db)+_0x44788d+'\x22\x20is\x20not\x20a\x20valid\x20URL.');}if(_0x5b96e4['protocol']!==_0x698760(0x1f9)||_0x5b96e4[_0x698760(0x1e9)]||_0x5b96e4[_0x698760(0x1af)]||_0x5b96e4[_0x698760(0x1b3)]||_0x5b96e4[_0x698760(0x1c8)]||_0x5b96e4['href'][_0x698760(0x1bc)](/\/$/,'')!==_0x3d9f79||_0x25249a==='lovrabet'&&_0x5b96e4[_0x698760(0x1f0)]!==_0x3d9f79)throw CliErrors['validation'](_0x698760(0x202)+_0x25249a+_0x698760(0x1e2)+(_0x25249a===_0x698760(0x1ef)?_0x698760(0x1f0):_0x698760(0x1f2))+_0x698760(0x1e4));return _0x3d9f79;}export function resolveEnterpriseRoutingConfig(_0x35eb4b){return resolveEnterpriseRoutingManifest(_0x35eb4b)?.['domains'];}export function resolveEnterpriseRoutingManifest(_0x3e0f3f){const _0x33c77c=a217_0x1a17b2;if(_0x3e0f3f===undefined)return undefined;if(!_0x3e0f3f||typeof _0x3e0f3f!=='object'||Array['isArray'](_0x3e0f3f))throw CliErrors[_0x33c77c(0x1e5)](_0x33c77c(0x1b9));return parseEnterpriseRoutingManifest(_0x3e0f3f);}export function resolveRoutingDomainValue(_0x16b793,_0x28bcca,_0x4fd0fa){const _0x18db5a=a217_0x1a17b2;if(typeof _0x28bcca===_0x18db5a(0x1fe))return _0x28bcca;const _0x2661be=_0x28bcca[_0x4fd0fa]??_0x28bcca['default'];if(!_0x2661be)throw CliErrors[_0x18db5a(0x1e5)](_0x18db5a(0x201)+_0x16b793+'\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20'+_0x4fd0fa+_0x18db5a(0x1b4));return _0x2661be;}function a217_0x2d2f(){const _0x563b82=['apiDomain','Enterprise\x20','Invalid\x20cdn.','app-domain','skill-domain','password','skillHubDomain','trim','user-domain','search','\x20and\x20has\x20no\x20default.','localDomain','kbDomain','domains','enterprise-v1','Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.','userDomain','65590wagjEa','replace','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','1638036lIJbsa','1372765SYeOsC','Unsupported\x20domain\x20config\x20field(s):\x20','legacy','cdn','object','pathname','certificateDomain','\x22\x20and\x20kind\x20\x22','isArray','hash','370uaEzjV','rabetbase-cli','\x20consumer(s):\x20','appDomain','100772ohaoDl','join','default','kind','Unsupported\x20enterprise\x20routing\x20field(s):\x20',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','338196ZKjhkb','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','keys','56412QVJjSE','Invalid\x20','2186109UUADLU','certificate-domain',':\x20\x22','Allowed\x20consumers:\x20','str','runtime-domain','filter','protocol','agentDomain',':\x20expected\x20an\x20HTTPS\x20','\x22\x20is\x20not\x20a\x20valid\x20URL.','\x20without\x20credentials,\x20query,\x20or\x20fragment.','validation','api-domain','length','domain-config','username','Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22',':\x20consumer\x20Domain\x20object\x20cannot\x20be\x20empty.','Enterprise\x20routing\x20manifest\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','includes','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.','lovrabet','origin','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20CDN\x20field(s):\x20','base\x20URL','Unsupported\x20enterprise\x20Domain\x20field(s):\x20','944ATGJak','runtimeDomain','platformDomain',':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.','utf8','https:','Allowed\x20fields:\x20','6687LWPJUL','skillDomain','Invalid\x20enterprise\x20routing\x20manifest:\x20cdn\x20must\x20be\x20an\x20object.','string',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.'];a217_0x2d2f=function(){return _0x563b82;};return a217_0x2d2f();}export function readDomainConfigInput(_0x4a4021){const _0x25a008=a217_0x1a17b2,_0x1bdb18=isAbsolute(_0x4a4021)?_0x4a4021:resolve(process['cwd'](),_0x4a4021);if(!existsSync(_0x1bdb18))throw CliErrors['validation']('Domain\x20config\x20file\x20not\x20found:\x20'+_0x1bdb18);let _0x2f490b;try{_0x2f490b=JSON['parse'](readFileSync(_0x1bdb18,_0x25a008(0x1f8)));}catch{throw CliErrors[_0x25a008(0x1e5)]('Invalid\x20domain\x20config\x20JSON:\x20'+_0x1bdb18);}if(!_0x2f490b||typeof _0x2f490b!==_0x25a008(0x1c3)||Array['isArray'](_0x2f490b))throw CliErrors[_0x25a008(0x1e5)]('Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.');const _0x37ddfa=_0x2f490b;if(_0x25a008(0x1e0)in _0x37ddfa)return parseEnterpriseRoutingManifest(_0x37ddfa);const _0x29952d=Object['keys'](_0x37ddfa)[_0x25a008(0x1df)](_0x1a431f=>!DOMAIN_CONFIG_FIELDS[_0x25a008(0x1ed)](_0x1a431f));if(_0x29952d[_0x25a008(0x1e7)]>0x0)throw CliErrors[_0x25a008(0x1e5)](_0x25a008(0x1c0)+_0x29952d['join'](',\x20'),_0x25a008(0x1fa)+DOMAIN_CONFIG_FIELDS[_0x25a008(0x1ce)](',\x20'));const _0x428eb8={};for(const _0x315e49 of DOMAIN_CONFIG_FIELDS){_0x37ddfa[_0x315e49]!==undefined&&(_0x428eb8[_0x315e49]=normalizeDomainOrigin(_0x315e49,_0x37ddfa[_0x315e49]));}if(Object['keys'](_0x428eb8)[_0x25a008(0x1e7)]===0x0)throw CliErrors['validation'](_0x25a008(0x1bd));return{'mode':_0x25a008(0x1c1),'domains':_0x428eb8};}export function readDomainConfig(_0x27a855){return readDomainConfigInput(_0x27a855)['domains'];}export function resolveDomainConfigInput(_0x1d0034){const _0x442237=a217_0x1a17b2,_0x14d5bd=(_0x1d0034[_0x442237(0x1dd)](_0x442237(0x1e8))||'')[_0x442237(0x1b1)](),_0x513239=_0x14d5bd?readDomainConfigInput(_0x14d5bd):{'mode':_0x442237(0x1c1),'domains':{}},_0x3ec4d8=DOMAIN_CONFIG_FIELDS[_0x442237(0x1df)](_0xeb6cfb=>Boolean((_0x1d0034[_0x442237(0x1dd)](DOMAIN_FLAGS[_0xeb6cfb])||'')[_0x442237(0x1b1)]()));if(_0x513239['mode']===_0x442237(0x1b8)&&_0x3ec4d8[_0x442237(0x1e7)]>0x0)throw CliErrors[_0x442237(0x1e5)](_0x442237(0x1d5),_0x442237(0x1ee));for(const _0x148655 of DOMAIN_CONFIG_FIELDS){const _0x2ff73d=(_0x1d0034['str'](DOMAIN_FLAGS[_0x148655])||'')['trim']();if(_0x2ff73d)_0x513239[_0x442237(0x1b7)][_0x148655]=normalizeDomainOrigin(_0x148655,_0x2ff73d);}return _0x513239;}export function resolveDomainFlags(_0xac7357){const _0x39d324=a217_0x1a17b2;return resolveDomainConfigInput(_0xac7357)[_0x39d324(0x1b7)];}export function parseEnterpriseRoutingManifest(_0x1c78b8){const _0x2158b0=a217_0x1a17b2,_0x30f198=Object[_0x2158b0(0x1d6)](_0x1c78b8)[_0x2158b0(0x1df)](_0x11e397=>!ENTERPRISE_ROUTING_TOP_LEVEL_FIELDS['includes'](_0x11e397));if(_0x30f198[_0x2158b0(0x1e7)]>0x0)throw CliErrors[_0x2158b0(0x1e5)](_0x2158b0(0x1d1)+_0x30f198[_0x2158b0(0x1ce)](',\x20'));if(_0x1c78b8[_0x2158b0(0x1e0)]!==ENTERPRISE_ROUTING_PROTOCOL||_0x1c78b8[_0x2158b0(0x1d0)]!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x2158b0(0x1e5)](_0x2158b0(0x1ea)+ENTERPRISE_ROUTING_PROTOCOL+_0x2158b0(0x1c6)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x1c78b8[_0x2158b0(0x1b7)]||typeof _0x1c78b8[_0x2158b0(0x1b7)]!==_0x2158b0(0x1c3)||Array[_0x2158b0(0x1c7)](_0x1c78b8['domains']))throw CliErrors[_0x2158b0(0x1e5)]('Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.');if(!_0x1c78b8[_0x2158b0(0x1c2)]||typeof _0x1c78b8[_0x2158b0(0x1c2)]!=='object'||Array[_0x2158b0(0x1c7)](_0x1c78b8[_0x2158b0(0x1c2)]))throw CliErrors[_0x2158b0(0x1e5)](_0x2158b0(0x1fd));const _0x3ed0f9=_0x1c78b8['domains'],_0x406fad=Object['keys'](_0x3ed0f9)[_0x2158b0(0x1df)](_0x309191=>!ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x2158b0(0x1ed)](_0x309191));if(_0x406fad[_0x2158b0(0x1e7)]>0x0)throw CliErrors[_0x2158b0(0x1e5)](_0x2158b0(0x1f3)+_0x406fad[_0x2158b0(0x1ce)](',\x20'),_0x2158b0(0x1fa)+ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x2158b0(0x1ce)](',\x20'));const _0x373c35=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x2158b0(0x1df)](_0x44c664=>_0x3ed0f9[_0x44c664]===undefined);if(_0x373c35[_0x2158b0(0x1e7)]>0x0)throw CliErrors[_0x2158b0(0x1e5)]('Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20'+_0x373c35['join'](',\x20'));if(_0x3ed0f9['localDomain']===undefined!==(_0x3ed0f9[_0x2158b0(0x1c5)]===undefined))throw CliErrors[_0x2158b0(0x1e5)](_0x2158b0(0x1ec));const _0x188b30=_0x1c78b8[_0x2158b0(0x1c2)],_0x10fc81=Object[_0x2158b0(0x1d6)](_0x188b30)[_0x2158b0(0x1df)](_0x5a2b2b=>!ENTERPRISE_ROUTING_CDN_FIELDS[_0x2158b0(0x1ed)](_0x5a2b2b));if(_0x10fc81[_0x2158b0(0x1e7)]>0x0)throw CliErrors['validation']('Unsupported\x20enterprise\x20CDN\x20field(s):\x20'+_0x10fc81[_0x2158b0(0x1ce)](',\x20'),_0x2158b0(0x1fa)+ENTERPRISE_ROUTING_CDN_FIELDS[_0x2158b0(0x1ce)](',\x20'));const _0x5c6000=REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS[_0x2158b0(0x1df)](_0x1e6969=>_0x188b30[_0x1e6969]===undefined);if(_0x5c6000[_0x2158b0(0x1e7)]>0x0)throw CliErrors[_0x2158b0(0x1e5)](_0x2158b0(0x1f1)+_0x5c6000[_0x2158b0(0x1ce)](',\x20'));const _0x1283aa={};for(const _0x183e2b of ENTERPRISE_ROUTING_CDN_FIELDS){_0x1283aa[_0x183e2b]=normalizeCdnBaseUrl(_0x183e2b,_0x188b30[_0x183e2b]);}const _0x2ed3b6={},_0x4d45fa={};for(const _0x46053c of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x73982e=_0x3ed0f9[_0x46053c];if(_0x73982e===undefined)continue;const _0x4d5539=normalizeRoutingDomainValue(_0x46053c,_0x73982e);_0x2ed3b6[_0x46053c]=_0x4d5539;const _0x3a5d05=ENTERPRISE_TO_LOCAL_FIELD[_0x46053c];_0x3a5d05&&(_0x4d45fa[_0x3a5d05]=resolveRoutingDomainValue(_0x46053c,_0x4d5539,ROUTING_CONSUMER));}return{'mode':_0x2158b0(0x1b8),'domains':_0x4d45fa,'manifestDomains':_0x2ed3b6,'cdn':_0x1283aa};}
@@ -1 +1 @@
1
- const a219_0x1e31f4=a219_0x3ea9;(function(_0x515b77,_0x5a34eb){const _0x43fb9f=a219_0x3ea9,_0x40a9=_0x515b77();while(!![]){try{const _0x171f31=parseInt(_0x43fb9f(0x8b))/0x1*(-parseInt(_0x43fb9f(0x90))/0x2)+-parseInt(_0x43fb9f(0x8f))/0x3*(-parseInt(_0x43fb9f(0x86))/0x4)+parseInt(_0x43fb9f(0x8c))/0x5+-parseInt(_0x43fb9f(0x85))/0x6+parseInt(_0x43fb9f(0x8d))/0x7+-parseInt(_0x43fb9f(0x93))/0x8*(parseInt(_0x43fb9f(0x8a))/0x9)+parseInt(_0x43fb9f(0x94))/0xa*(parseInt(_0x43fb9f(0x97))/0xb);if(_0x171f31===_0x5a34eb)break;else _0x40a9['push'](_0x40a9['shift']());}catch(_0x15296d){_0x40a9['push'](_0x40a9['shift']());}}}(a219_0x3a6f,0xc1f90));import{renameSync,unlinkSync,writeFileSync}from'node:fs';import{join}from'node:path';import{getActiveRegion,getActiveCdn,getAppDomain,getCertificateDomain,getLocalDomain,getRuntimeDomain,getUserDomain,isIndependentDeployment}from'../constant/domain.js';import{getOfficialRoutingProfile}from'../constant/routing-profile.js';export const PROJECT_DOMAIN_ROUTING_FILE_NAME='rabetbase.domain-routing.json';function a219_0x3ea9(_0x52746c,_0xc5306b){_0x52746c=_0x52746c-0x85;const _0x3a6ff8=a219_0x3a6f();let _0x3ea970=_0x3a6ff8[_0x52746c];return _0x3ea970;}export const PROJECT_DOMAIN_ROUTING_PROTOCOL=a219_0x1e31f4(0x95);function a219_0x3a6f(){const _0x1ed71c=['lovrabet','local','1736iHvnqe','3059180fsIcgZ','lovrabet-project-domain-routing/v1','utf8','44GZsYEl','pid','http://localhost','8317380RpKdwP','4BulyaC','stringify','official','.tmp','37602yKORPL','1gSIqrg','1587580GuwwwD','4722207ZgqVDX','origin','4032759LDbNYA','945348pbXLWs'];a219_0x3a6f=function(){return _0x1ed71c;};return a219_0x3a6f();}export function getProjectDomainRoutingManifest(){const _0x329c3e=a219_0x1e31f4,_0x2a2101=getActiveRegion(),_0x2148c4=isIndependentDeployment(),_0x1170a7=getOfficialRoutingProfile(_0x2a2101),_0x4b38fa=getLocalDomain(),_0x211cbf=getCertificateDomain(),_0xaadb53=getActiveCdn();if(!!_0x4b38fa!==!!_0x211cbf)throw new Error('Independent\x20deployment\x20routing\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.');return{'protocol':PROJECT_DOMAIN_ROUTING_PROTOCOL,'mode':_0x2148c4?'independent':_0x329c3e(0x88),'region':_0x2148c4?null:_0x2a2101,'domains':{'user':getUserDomain(),'app':getAppDomain(),'runtime':getRuntimeDomain()},'cdn':_0xaadb53,'local':_0x4b38fa&&_0x211cbf?{'origin':_0x4b38fa,'certificateUrl':_0x211cbf+'/cert/lovrabet-dev.json'}:_0x2148c4?{'origin':_0x329c3e(0x99)}:{'origin':_0x1170a7[_0x329c3e(0x92)][_0x329c3e(0x8e)],'certificateUrl':_0xaadb53[_0x329c3e(0x91)]+'/cert/lovrabet-dev.json'}};}export function writeProjectDomainRoutingManifest(_0x4b303f){const _0x2e8bfb=a219_0x1e31f4,_0x5afba2=getProjectDomainRoutingManifest(),_0xe72e00=join(_0x4b303f,PROJECT_DOMAIN_ROUTING_FILE_NAME),_0xb14ade=_0xe72e00+'.'+process[_0x2e8bfb(0x98)]+'.'+Date['now']()+_0x2e8bfb(0x89);try{writeFileSync(_0xb14ade,JSON[_0x2e8bfb(0x87)](_0x5afba2,null,0x2)+'\x0a',{'encoding':_0x2e8bfb(0x96),'mode':0x1a4}),renameSync(_0xb14ade,_0xe72e00);}catch(_0x310ad8){try{unlinkSync(_0xb14ade);}catch{}throw _0x310ad8;}return{'path':_0xe72e00,'manifest':_0x5afba2};}
1
+ function a218_0x4920(_0x13843e,_0x52c04d){_0x13843e=_0x13843e-0x84;const _0x580884=a218_0x5808();let _0x492065=_0x580884[_0x13843e];return _0x492065;}const a218_0x582def=a218_0x4920;(function(_0x1a31a0,_0x20d386){const _0xb7a8fe=a218_0x4920,_0x5fddc4=_0x1a31a0();while(!![]){try{const _0x5c53db=parseInt(_0xb7a8fe(0x87))/0x1*(parseInt(_0xb7a8fe(0x94))/0x2)+-parseInt(_0xb7a8fe(0x95))/0x3*(parseInt(_0xb7a8fe(0x97))/0x4)+parseInt(_0xb7a8fe(0x98))/0x5+-parseInt(_0xb7a8fe(0x88))/0x6*(parseInt(_0xb7a8fe(0x8a))/0x7)+-parseInt(_0xb7a8fe(0x90))/0x8*(parseInt(_0xb7a8fe(0x8b))/0x9)+-parseInt(_0xb7a8fe(0x86))/0xa+parseInt(_0xb7a8fe(0x96))/0xb;if(_0x5c53db===_0x20d386)break;else _0x5fddc4['push'](_0x5fddc4['shift']());}catch(_0x116885){_0x5fddc4['push'](_0x5fddc4['shift']());}}}(a218_0x5808,0x80c1a));import{renameSync,unlinkSync,writeFileSync}from'node:fs';import{join}from'node:path';function a218_0x5808(){const _0x1d522c=['Independent\x20deployment\x20routing\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','1090OTrXcP','111BIgQDT','16150871llSPVC','38524znwMYC','2854165jRdVOA','origin','utf8','stringify','5232250bTVMNk','1785YRKMzT','3468378nXMMnT','.tmp','7UGVAHs','249786ISiAUG','local','rabetbase.domain-routing.json','lovrabet-project-domain-routing/v1','/cert/lovrabet-dev.json','296sducId','official','now'];a218_0x5808=function(){return _0x1d522c;};return a218_0x5808();}import{getActiveRegion,getActiveCdn,getAppDomain,getCertificateDomain,getLocalDomain,getRuntimeDomain,getUserDomain,isIndependentDeployment}from'../constant/domain.js';import{getOfficialRoutingProfile}from'../constant/routing-profile.js';export const PROJECT_DOMAIN_ROUTING_FILE_NAME=a218_0x582def(0x8d);export const PROJECT_DOMAIN_ROUTING_PROTOCOL=a218_0x582def(0x8e);export function getProjectDomainRoutingManifest(){const _0x518a68=a218_0x582def,_0x27bfd6=getActiveRegion(),_0x515a70=isIndependentDeployment(),_0x28f270=getOfficialRoutingProfile(_0x27bfd6),_0x412a04=getLocalDomain(),_0x5e28f2=getCertificateDomain(),_0x26cc16=getActiveCdn();if(!!_0x412a04!==!!_0x5e28f2)throw new Error(_0x518a68(0x93));return{'protocol':PROJECT_DOMAIN_ROUTING_PROTOCOL,'mode':_0x515a70?'independent':_0x518a68(0x91),'region':_0x515a70?null:_0x27bfd6,'domains':{'user':getUserDomain(),'app':getAppDomain(),'runtime':getRuntimeDomain()},'cdn':_0x26cc16,'local':_0x412a04&&_0x5e28f2?{'origin':_0x412a04,'certificateUrl':_0x5e28f2+_0x518a68(0x8f)}:_0x515a70?{'origin':'http://localhost'}:{'origin':_0x28f270[_0x518a68(0x8c)][_0x518a68(0x99)],'certificateUrl':_0x26cc16['lovrabet']+'/cert/lovrabet-dev.json'}};}export function writeProjectDomainRoutingManifest(_0x3a149f){const _0xfff0a0=a218_0x582def,_0x4d5195=getProjectDomainRoutingManifest(),_0x3da1d4=join(_0x3a149f,PROJECT_DOMAIN_ROUTING_FILE_NAME),_0x88ce1f=_0x3da1d4+'.'+process['pid']+'.'+Date[_0xfff0a0(0x92)]()+_0xfff0a0(0x89);try{writeFileSync(_0x88ce1f,JSON[_0xfff0a0(0x85)](_0x4d5195,null,0x2)+'\x0a',{'encoding':_0xfff0a0(0x84),'mode':0x1a4}),renameSync(_0x88ce1f,_0x3da1d4);}catch(_0x141264){try{unlinkSync(_0x88ce1f);}catch{}throw _0x141264;}return{'path':_0x3da1d4,'manifest':_0x4d5195};}
@@ -1 +1 @@
1
- const a220_0x45f600=a220_0x2de9;(function(_0x57cf3f,_0x55038f){const _0x3d7c85=a220_0x2de9,_0x5c6982=_0x57cf3f();while(!![]){try{const _0x25e9f3=parseInt(_0x3d7c85(0x1af))/0x1*(parseInt(_0x3d7c85(0x1a7))/0x2)+-parseInt(_0x3d7c85(0x195))/0x3+parseInt(_0x3d7c85(0x194))/0x4*(parseInt(_0x3d7c85(0x1b3))/0x5)+-parseInt(_0x3d7c85(0x18f))/0x6+parseInt(_0x3d7c85(0x18d))/0x7+-parseInt(_0x3d7c85(0x196))/0x8+-parseInt(_0x3d7c85(0x1a6))/0x9*(-parseInt(_0x3d7c85(0x190))/0xa);if(_0x25e9f3===_0x55038f)break;else _0x5c6982['push'](_0x5c6982['shift']());}catch(_0x35a0a6){_0x5c6982['push'](_0x5c6982['shift']());}}}(a220_0x26df,0xddcb0));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';import{collectDeploymentSyncProfile,getDeploymentSyncProfileFlagDefs}from'../config/deployment-sync.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=['cookie',a220_0x45f600(0x189),a220_0x45f600(0x19d),a220_0x45f600(0x198),a220_0x45f600(0x18e),a220_0x45f600(0x1a9),a220_0x45f600(0x1a3),a220_0x45f600(0x1aa),a220_0x45f600(0x1a1),a220_0x45f600(0x1b0),a220_0x45f600(0x1ac),a220_0x45f600(0x1a2),a220_0x45f600(0x192),a220_0x45f600(0x1bb),'certificateDomain'];export const TOP_LEVEL_CONFIG_KEYS=new Set([a220_0x45f600(0x1b2),a220_0x45f600(0x19a),a220_0x45f600(0x19d),'format',a220_0x45f600(0x197),'accessKey','apiDir',a220_0x45f600(0x1a9),a220_0x45f600(0x1aa),a220_0x45f600(0x1a1),a220_0x45f600(0x1b0),'skillDomain',a220_0x45f600(0x1a2),a220_0x45f600(0x192),a220_0x45f600(0x1bb),'certificateDomain']);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x21626c){return[..._0x21626c]['join'](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x2c2042){const _0x93478f=a220_0x45f600;return TOP_LEVEL_CONFIG_KEYS[_0x93478f(0x1b9)](_0x2c2042);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x280c2f=a220_0x45f600;return _0x280c2f(0x1b7)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a220_0x45f600(0x19a),'apiDir':a220_0x45f600(0x19e),'cookie':a220_0x45f600(0x197),'accessKey':a220_0x45f600(0x189),'defaultFormat':a220_0x45f600(0x198),'pageSize':'pageSize','riskLevel':'riskLevel','locale':'locale'};export function getAppProfileFlagDefs(){const _0x27cd91=a220_0x45f600;return[{'name':_0x27cd91(0x19a),'type':'string','description':_0x27cd91(0x199),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x27cd91(0x19e),'type':_0x27cd91(0x1b8),'description':_0x27cd91(0x19c)},{'name':'cookie','type':_0x27cd91(0x1b8),'description':_0x27cd91(0x1bd),'hidden':!![]},{'name':_0x27cd91(0x189),'type':'string','description':_0x27cd91(0x1ad),'hidden':!![]},{'name':'defaultFormat','type':_0x27cd91(0x1b8),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x27cd91(0x18b),'type':_0x27cd91(0x1bc),'description':_0x27cd91(0x1b4)},{'name':'riskLevel','type':_0x27cd91(0x1b8),'description':_0x27cd91(0x1a5),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x27cd91(0x19d),'type':_0x27cd91(0x1b8),'description':_0x27cd91(0x1ab)},...getDeploymentSyncProfileFlagDefs()];}function a220_0x2de9(_0x36cbf3,_0x4d5495){_0x36cbf3=_0x36cbf3-0x189;const _0x26df2b=a220_0x26df();let _0x2de9c7=_0x26df2b[_0x36cbf3];return _0x2de9c7;}export function collectAppProfileOverrides(_0x32cea2){const _0x3f6c8c=a220_0x45f600,_0x57d47b={};for(const [_0xe705b3,_0xf51bff]of Object[_0x3f6c8c(0x191)](APP_PROFILE_FLAG_KEY_MAP)){const _0x4ce1a8=_0x32cea2(_0xe705b3);if(!_0x4ce1a8)continue;_0x57d47b[_0xf51bff]=_0xf51bff===_0x3f6c8c(0x18b)?Number(_0x4ce1a8):_0x4ce1a8;}const _0x4e24d4=collectDeploymentSyncProfile(_0x32cea2);if(_0x4e24d4)_0x57d47b[_0x3f6c8c(0x1ae)]=_0x4e24d4;return _0x57d47b;}export function buildAppProfileListFields(_0x52e934){const _0x27cdef=a220_0x45f600;return{'env':_0x52e934[_0x27cdef(0x19a)]??null,'apiDir':_0x52e934[_0x27cdef(0x19e)]??null,'hasCookie':!!_0x52e934['cookie'],'hasAccessKey':!!_0x52e934['accessKey'],'format':_0x52e934[_0x27cdef(0x198)]??null,'pageSize':_0x52e934['pageSize']??null,'riskLevel':_0x52e934[_0x27cdef(0x18e)]??null,'locale':_0x52e934[_0x27cdef(0x19d)]??null,'deploymentSync':_0x52e934['deploymentSync']??null};}export function buildAppDoctorFields(_0x162e2e,_0x220fa1){const _0x7fd356=a220_0x45f600;return{'env':{'value':_0x162e2e[_0x7fd356(0x19a)]||_0x220fa1[_0x7fd356(0x19a)],'source':_0x162e2e['env']?_0x7fd356(0x1a0):_0x7fd356(0x18c)},'apiDir':{'value':_0x162e2e[_0x7fd356(0x19e)]||_0x220fa1[_0x7fd356(0x19e)],'source':_0x162e2e['apiDir']?'app':_0x7fd356(0x18c)},'cookie':{'value':_0x162e2e[_0x7fd356(0x197)]||_0x220fa1['cookie'],'source':_0x162e2e[_0x7fd356(0x197)]?_0x7fd356(0x1a0):_0x7fd356(0x18c)},'accessKey':{'value':_0x162e2e[_0x7fd356(0x189)]||_0x220fa1[_0x7fd356(0x189)],'source':_0x162e2e[_0x7fd356(0x189)]?_0x7fd356(0x1a0):_0x7fd356(0x18c)}};}export function buildCanonicalAppConfig(_0x2ba9a8,_0x395552){const _0x35e1c1=a220_0x45f600,_0x37846d=_0x2ba9a8[_0x35e1c1(0x1ba)](_0x5dd03e=>String(_0x5dd03e||'')[_0x35e1c1(0x1a4)]())[_0x35e1c1(0x1a8)](Boolean);if(_0x37846d['length']===0x0)return{};const _0x4e4abf={};for(const _0x470520 of _0x37846d){_0x4e4abf[_0x470520]=_0x395552?{'appcode':_0x470520,'env':_0x395552}:{'appcode':_0x470520};}return _0x37846d[_0x35e1c1(0x1b6)]>0x1?{'apps':_0x4e4abf,'defaultApp':_0x37846d[0x0]}:{'apps':_0x4e4abf};}function a220_0x26df(){const _0x5c2459=['Risk\x20level','27MxJcFx','828560AYKszJ','filter','region','userDomain','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','skillDomain','Access\x20key','deploymentSync','2LLLTsP','runtimeDomain','apps','appcode','283850zzWXMd','Default\x20page\x20size','en-US','length','Config\x20key\x20(','string','has','map','localDomain','number','Auth\x20cookie','accessKey','keys','pageSize','inherit','2244816UTwpQN','riskLevel','7677984eHEYrC','4499570BIpRAn','entries','appDomain','zh-CN','28APkANR','1554348EOqIib','1522120CkgDbm','cookie','format','Target\x20environment','env','object','API\x20directory\x20path','locale','apiDir','defaultApp','app','apiDomain','kbDomain','routing','trim'];a220_0x26df=function(){return _0x5c2459;};return a220_0x26df();}export function normalizeStoredDefaultApp(_0x15034b,_0x295f1f){const _0x23937e=a220_0x45f600,_0xea4731=_0x15034b['apps']&&typeof _0x15034b[_0x23937e(0x1b1)]===_0x23937e(0x19b)?_0x15034b[_0x23937e(0x1b1)]:{},_0x25e470=Object[_0x23937e(0x18a)](_0xea4731);if(_0x25e470[_0x23937e(0x1b6)]<=0x1)return delete _0x15034b[_0x23937e(0x19f)],undefined;const _0x458d5f=typeof _0x15034b['defaultApp']===_0x23937e(0x1b8)&&_0xea4731[_0x15034b['defaultApp']]?_0x15034b[_0x23937e(0x19f)]:undefined,_0x470dea=_0x295f1f&&_0xea4731[_0x295f1f]?_0x295f1f:_0x458d5f;if(_0x470dea)return _0x15034b[_0x23937e(0x19f)]=_0x470dea,_0x470dea;return delete _0x15034b[_0x23937e(0x19f)],undefined;}export function buildCanonicalProjectConfig(_0x5b7a46,_0x1c7aad){const _0x516371=a220_0x45f600,{appCodes:appCodes=[],env:_0x4b3dd3,metadata:_0x2a077a}=_0x1c7aad,_0x28c0ee={..._0x5b7a46,..._0x2a077a||{}};delete _0x28c0ee[_0x516371(0x1b2)],delete _0x28c0ee['app'];if(_0x4b3dd3)_0x28c0ee[_0x516371(0x19a)]=_0x4b3dd3;else!_0x28c0ee['env']&&(_0x28c0ee[_0x516371(0x19a)]=DEFAULT_CONFIG_VALUES[_0x516371(0x19a)]);const _0x504f8d=buildCanonicalAppConfig(appCodes,_0x28c0ee[_0x516371(0x19a)]);if(Object[_0x516371(0x18a)](_0x504f8d)[_0x516371(0x1b6)]>0x0){_0x28c0ee[_0x516371(0x1b1)]=_0x504f8d[_0x516371(0x1b1)];if(_0x504f8d[_0x516371(0x19f)])_0x28c0ee[_0x516371(0x19f)]=_0x504f8d['defaultApp'];else delete _0x28c0ee[_0x516371(0x19f)];}return _0x28c0ee;}const LOCALE_MAP={'zh':a220_0x45f600(0x193),'zh-cn':'zh-CN','zh_cn':a220_0x45f600(0x193),'en':a220_0x45f600(0x1b5),'en-us':a220_0x45f600(0x1b5),'en_us':a220_0x45f600(0x1b5)};export function normalizeLocale(_0x43e61e){if(!_0x43e61e)return null;return LOCALE_MAP[_0x43e61e['toLowerCase']()]??null;}
1
+ const a219_0x327ff3=a219_0x5ba3;(function(_0x6f148e,_0x5cdeb5){const _0x552236=a219_0x5ba3,_0x46fa62=_0x6f148e();while(!![]){try{const _0x4ad61c=parseInt(_0x552236(0xfa))/0x1*(parseInt(_0x552236(0xfd))/0x2)+parseInt(_0x552236(0x120))/0x3*(-parseInt(_0x552236(0x108))/0x4)+parseInt(_0x552236(0x10d))/0x5*(-parseInt(_0x552236(0x10f))/0x6)+-parseInt(_0x552236(0x121))/0x7+parseInt(_0x552236(0x107))/0x8*(parseInt(_0x552236(0x124))/0x9)+parseInt(_0x552236(0x110))/0xa+parseInt(_0x552236(0x115))/0xb;if(_0x4ad61c===_0x5cdeb5)break;else _0x46fa62['push'](_0x46fa62['shift']());}catch(_0x182dc8){_0x46fa62['push'](_0x46fa62['shift']());}}}(a219_0x19e0,0x9db5e));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';function a219_0x19e0(){const _0x3aa07a=['6900180lSVwFK','join','app','1177308IfSMIj','number','cookie','accessKey','en-US','locale','API\x20directory\x20path','pageSize','runtimeDomain','inherit','format','env','245744FrLCHn','riskLevel','userDomain','8DrmIQM','has','appDomain','defaultApp','apps','map','certificateDomain','length','keys','localDomain','32VemUFr','97564wYMyRw','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','appcode','region','Target\x20environment','5406430mfuYcJ','kbDomain','6VCWzkf','3607000smahKy','entries','zh-CN','object','Access\x20key','21648770uOSMXy','apiDir','Config\x20key\x20(','Auth\x20cookie','Default\x20page\x20size','defaultFormat','apiDomain','string','trim','filter','skillDomain','138BIREIq'];a219_0x19e0=function(){return _0x3aa07a;};return a219_0x19e0();}import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a219_0x327ff3(0x126),a219_0x327ff3(0x127),'locale',a219_0x327ff3(0x12e),'riskLevel',a219_0x327ff3(0x10b),'routing',a219_0x327ff3(0xfc),a219_0x327ff3(0x11b),a219_0x327ff3(0x12c),a219_0x327ff3(0x11f),a219_0x327ff3(0x10e),a219_0x327ff3(0xff),a219_0x327ff3(0x106),a219_0x327ff3(0x103)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a219_0x327ff3(0x10a),a219_0x327ff3(0x12f),a219_0x327ff3(0x129),a219_0x327ff3(0x12e),a219_0x327ff3(0x126),'accessKey',a219_0x327ff3(0x116),a219_0x327ff3(0x10b),a219_0x327ff3(0xfc),a219_0x327ff3(0x11b),a219_0x327ff3(0x12c),a219_0x327ff3(0x11f),a219_0x327ff3(0x10e),a219_0x327ff3(0xff),a219_0x327ff3(0x106),a219_0x327ff3(0x103)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x25d343){const _0x4541e8=a219_0x327ff3;return[..._0x25d343][_0x4541e8(0x122)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x385938){const _0x11a63f=a219_0x327ff3;return TOP_LEVEL_CONFIG_KEYS[_0x11a63f(0xfe)](_0x385938);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x1cfab7=a219_0x327ff3;return _0x1cfab7(0x117)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a219_0x327ff3(0x12f),'apiDir':a219_0x327ff3(0x116),'cookie':a219_0x327ff3(0x126),'accessKey':a219_0x327ff3(0x127),'defaultFormat':a219_0x327ff3(0x12e),'pageSize':'pageSize','riskLevel':a219_0x327ff3(0xfb),'locale':a219_0x327ff3(0x129)};export function getAppProfileFlagDefs(){const _0x76fe06=a219_0x327ff3;return[{'name':'env','type':_0x76fe06(0x11c),'description':_0x76fe06(0x10c),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x76fe06(0x116),'type':_0x76fe06(0x11c),'description':_0x76fe06(0x12a)},{'name':'cookie','type':_0x76fe06(0x11c),'description':_0x76fe06(0x118),'hidden':!![]},{'name':_0x76fe06(0x127),'type':'string','description':_0x76fe06(0x114),'hidden':!![]},{'name':_0x76fe06(0x11a),'type':_0x76fe06(0x11c),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x76fe06(0x12b),'type':_0x76fe06(0x125),'description':_0x76fe06(0x119)},{'name':'riskLevel','type':_0x76fe06(0x11c),'description':'Risk\x20level','enum':[...RISK_LEVEL_VALUES]},{'name':_0x76fe06(0x129),'type':_0x76fe06(0x11c),'description':_0x76fe06(0x109)}];}export function collectAppProfileOverrides(_0x46fb06){const _0x4e6e68=a219_0x327ff3,_0x361d7a={};for(const [_0x3e07a8,_0x2964b1]of Object[_0x4e6e68(0x111)](APP_PROFILE_FLAG_KEY_MAP)){const _0x1d2365=_0x46fb06(_0x3e07a8);if(!_0x1d2365)continue;_0x361d7a[_0x2964b1]=_0x2964b1===_0x4e6e68(0x12b)?Number(_0x1d2365):_0x1d2365;}return _0x361d7a;}export function buildAppProfileListFields(_0x1f5c88){const _0x1c49a7=a219_0x327ff3;return{'env':_0x1f5c88['env']??null,'apiDir':_0x1f5c88[_0x1c49a7(0x116)]??null,'hasCookie':!!_0x1f5c88[_0x1c49a7(0x126)],'hasAccessKey':!!_0x1f5c88[_0x1c49a7(0x127)],'format':_0x1f5c88[_0x1c49a7(0x12e)]??null,'pageSize':_0x1f5c88[_0x1c49a7(0x12b)]??null,'riskLevel':_0x1f5c88[_0x1c49a7(0xfb)]??null,'locale':_0x1f5c88[_0x1c49a7(0x129)]??null};}export function buildAppDoctorFields(_0x46521a,_0x55c8dc){const _0x5d8071=a219_0x327ff3;return{'env':{'value':_0x46521a[_0x5d8071(0x12f)]||_0x55c8dc[_0x5d8071(0x12f)],'source':_0x46521a['env']?_0x5d8071(0x123):'inherit'},'apiDir':{'value':_0x46521a['apiDir']||_0x55c8dc[_0x5d8071(0x116)],'source':_0x46521a[_0x5d8071(0x116)]?_0x5d8071(0x123):_0x5d8071(0x12d)},'cookie':{'value':_0x46521a[_0x5d8071(0x126)]||_0x55c8dc[_0x5d8071(0x126)],'source':_0x46521a['cookie']?_0x5d8071(0x123):_0x5d8071(0x12d)},'accessKey':{'value':_0x46521a['accessKey']||_0x55c8dc[_0x5d8071(0x127)],'source':_0x46521a[_0x5d8071(0x127)]?_0x5d8071(0x123):_0x5d8071(0x12d)}};}export function buildCanonicalAppConfig(_0x7c984e,_0x333afa){const _0x2edaa1=a219_0x327ff3,_0x5304ff=_0x7c984e[_0x2edaa1(0x102)](_0x4e944e=>String(_0x4e944e||'')[_0x2edaa1(0x11d)]())[_0x2edaa1(0x11e)](Boolean);if(_0x5304ff[_0x2edaa1(0x104)]===0x0)return{};const _0x1eb12f={};for(const _0x1a6fa2 of _0x5304ff){_0x1eb12f[_0x1a6fa2]=_0x333afa?{'appcode':_0x1a6fa2,'env':_0x333afa}:{'appcode':_0x1a6fa2};}return _0x5304ff['length']>0x1?{'apps':_0x1eb12f,'defaultApp':_0x5304ff[0x0]}:{'apps':_0x1eb12f};}export function normalizeStoredDefaultApp(_0x4ec78f,_0x5a28c5){const _0x34592b=a219_0x327ff3,_0x3698e2=_0x4ec78f[_0x34592b(0x101)]&&typeof _0x4ec78f[_0x34592b(0x101)]===_0x34592b(0x113)?_0x4ec78f[_0x34592b(0x101)]:{},_0x4ef008=Object['keys'](_0x3698e2);if(_0x4ef008[_0x34592b(0x104)]<=0x1)return delete _0x4ec78f[_0x34592b(0x100)],undefined;const _0x4120aa=typeof _0x4ec78f[_0x34592b(0x100)]===_0x34592b(0x11c)&&_0x3698e2[_0x4ec78f[_0x34592b(0x100)]]?_0x4ec78f['defaultApp']:undefined,_0xd4fb3f=_0x5a28c5&&_0x3698e2[_0x5a28c5]?_0x5a28c5:_0x4120aa;if(_0xd4fb3f)return _0x4ec78f[_0x34592b(0x100)]=_0xd4fb3f,_0xd4fb3f;return delete _0x4ec78f['defaultApp'],undefined;}function a219_0x5ba3(_0x37eb6e,_0xce6f5e){_0x37eb6e=_0x37eb6e-0xfa;const _0x19e098=a219_0x19e0();let _0x5ba335=_0x19e098[_0x37eb6e];return _0x5ba335;}export function buildCanonicalProjectConfig(_0x15af9a,_0x4ff20a){const _0x52f3b9=a219_0x327ff3,{appCodes:appCodes=[],env:_0x53a162,metadata:_0x4c36c1}=_0x4ff20a,_0x29ddb0={..._0x15af9a,..._0x4c36c1||{}};delete _0x29ddb0['appcode'],delete _0x29ddb0[_0x52f3b9(0x123)];if(_0x53a162)_0x29ddb0[_0x52f3b9(0x12f)]=_0x53a162;else!_0x29ddb0[_0x52f3b9(0x12f)]&&(_0x29ddb0[_0x52f3b9(0x12f)]=DEFAULT_CONFIG_VALUES[_0x52f3b9(0x12f)]);const _0x3e05e5=buildCanonicalAppConfig(appCodes,_0x29ddb0[_0x52f3b9(0x12f)]);if(Object[_0x52f3b9(0x105)](_0x3e05e5)[_0x52f3b9(0x104)]>0x0){_0x29ddb0['apps']=_0x3e05e5['apps'];if(_0x3e05e5[_0x52f3b9(0x100)])_0x29ddb0[_0x52f3b9(0x100)]=_0x3e05e5['defaultApp'];else delete _0x29ddb0['defaultApp'];}return _0x29ddb0;}const LOCALE_MAP={'zh':a219_0x327ff3(0x112),'zh-cn':'zh-CN','zh_cn':a219_0x327ff3(0x112),'en':a219_0x327ff3(0x128),'en-us':a219_0x327ff3(0x128),'en_us':'en-US'};export function normalizeLocale(_0x14e5dc){if(!_0x14e5dc)return null;return LOCALE_MAP[_0x14e5dc['toLowerCase']()]??null;}
@@ -1 +1 @@
1
- const a221_0x32804b=a221_0x28fa;function a221_0x28fa(_0x76e65d,_0x2d8957){_0x76e65d=_0x76e65d-0x7a;const _0x17dc22=a221_0x17dc();let _0x28fa59=_0x17dc22[_0x76e65d];return _0x28fa59;}(function(_0x1fb9ba,_0x56e4b8){const _0xdf2925=a221_0x28fa,_0x51e650=_0x1fb9ba();while(!![]){try{const _0x2b53a2=-parseInt(_0xdf2925(0x80))/0x1*(-parseInt(_0xdf2925(0x7c))/0x2)+parseInt(_0xdf2925(0x85))/0x3+-parseInt(_0xdf2925(0x7f))/0x4*(-parseInt(_0xdf2925(0x7e))/0x5)+parseInt(_0xdf2925(0x7b))/0x6+-parseInt(_0xdf2925(0x82))/0x7+parseInt(_0xdf2925(0x86))/0x8+parseInt(_0xdf2925(0x7a))/0x9*(-parseInt(_0xdf2925(0x84))/0xa);if(_0x2b53a2===_0x56e4b8)break;else _0x51e650['push'](_0x51e650['shift']());}catch(_0x14f7b6){_0x51e650['push'](_0x51e650['shift']());}}}(a221_0x17dc,0x80d52));export const RABETBASE_CDN_BASE_URL=a221_0x32804b(0x83);export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a221_0x32804b(0x81);export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+a221_0x32804b(0x7d);function a221_0x17dc(){const _0x1dfbb0=['2367732AxUeam','2ZFuSre','/config/index.json','2938411ybowGn','https://g.lovrabet.com/dist/rabetbase-cli','13433980MlmKtF','183222sidoEf','5790712oBqGAP','9MgfUbq','4032846bEtGHq','241882UNcfLo','/templates/projects','5ORzwZy'];a221_0x17dc=function(){return _0x1dfbb0;};return a221_0x17dc();}
1
+ const a220_0x38d2f6=a220_0x483b;function a220_0x483b(_0x32fd0b,_0x23ab65){_0x32fd0b=_0x32fd0b-0xaf;const _0x802c3c=a220_0x802c();let _0x483bc0=_0x802c3c[_0x32fd0b];return _0x483bc0;}function a220_0x802c(){const _0xf01113=['2396430Bnwjyi','24141770gSJwsb','6901990OiafJI','7780990XKcmjQ','18531GWnHKX','1944465IBxdjy','4ibbReN','/templates/projects','249759nGxABU','150rVHdvb','88XLztAm'];a220_0x802c=function(){return _0xf01113;};return a220_0x802c();}(function(_0x54d21f,_0x17e5cb){const _0x172a47=a220_0x483b,_0x282bf2=_0x54d21f();while(!![]){try{const _0x57d6c5=-parseInt(_0x172a47(0xb7))/0x1*(-parseInt(_0x172a47(0xb1))/0x2)+-parseInt(_0x172a47(0xb8))/0x3*(parseInt(_0x172a47(0xb9))/0x4)+-parseInt(_0x172a47(0xb5))/0x5+parseInt(_0x172a47(0xb3))/0x6+-parseInt(_0x172a47(0xb6))/0x7+-parseInt(_0x172a47(0xb2))/0x8*(parseInt(_0x172a47(0xb0))/0x9)+parseInt(_0x172a47(0xb4))/0xa;if(_0x57d6c5===_0x17e5cb)break;else _0x282bf2['push'](_0x282bf2['shift']());}catch(_0x4e7651){_0x282bf2['push'](_0x282bf2['shift']());}}}(a220_0x802c,0xb9107));export const RABETBASE_CDN_BASE_URL='https://g.lovrabet.com/dist/rabetbase-cli';export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+'/config/index.json';export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+a220_0x38d2f6(0xaf);
@@ -1 +1 @@
1
- const a222_0x2b5b77=a222_0x232d;(function(_0x4aacbe,_0x25f101){const _0x352386=a222_0x232d,_0x23d956=_0x4aacbe();while(!![]){try{const _0x4bb385=parseInt(_0x352386(0x1a9))/0x1+-parseInt(_0x352386(0x1c4))/0x2+-parseInt(_0x352386(0x1d0))/0x3+parseInt(_0x352386(0x19c))/0x4*(-parseInt(_0x352386(0x158))/0x5)+parseInt(_0x352386(0x1b5))/0x6+parseInt(_0x352386(0x17a))/0x7*(parseInt(_0x352386(0x15e))/0x8)+parseInt(_0x352386(0x1ce))/0x9;if(_0x4bb385===_0x25f101)break;else _0x23d956['push'](_0x23d956['shift']());}catch(_0x458ff4){_0x23d956['push'](_0x23d956['shift']());}}}(a222_0x5a9e,0xb0151));export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME=a222_0x2b5b77(0x1cb);export const NPM_PACKAGE_NAME=a222_0x2b5b77(0x177);function a222_0x232d(_0x16b95a,_0x3400c2){_0x16b95a=_0x16b95a-0x14c;const _0x5a9ebc=a222_0x5a9e();let _0x232d91=_0x5a9ebc[_0x16b95a];return _0x232d91;}export const GLOBAL_FLAGS=[{'name':a222_0x2b5b77(0x1d6),'meowKey':a222_0x2b5b77(0x1d6),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x162),'hint':a222_0x2b5b77(0x1a8)},{'name':a222_0x2b5b77(0x181),'meowKey':a222_0x2b5b77(0x181),'type':a222_0x2b5b77(0x1a2),'description':'Select\x20app\x20profile\x20by\x20name','hint':a222_0x2b5b77(0x153)},{'name':a222_0x2b5b77(0x19d),'meowKey':a222_0x2b5b77(0x19d),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x170),'hint':'production\x20|\x20daily'},{'name':a222_0x2b5b77(0x1c6),'meowKey':a222_0x2b5b77(0x1c6),'type':'string','description':a222_0x2b5b77(0x1b6),'hint':a222_0x2b5b77(0x1d5)},{'name':'jq','meowKey':'jq','type':'string','description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a222_0x2b5b77(0x1af)},{'name':a222_0x2b5b77(0x1c8),'meowKey':a222_0x2b5b77(0x1dc),'type':a222_0x2b5b77(0x167),'description':a222_0x2b5b77(0x1ab)},{'name':a222_0x2b5b77(0x16f),'meowKey':a222_0x2b5b77(0x16f),'type':a222_0x2b5b77(0x167),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a222_0x2b5b77(0x1ac),'meowKey':a222_0x2b5b77(0x192),'type':a222_0x2b5b77(0x167),'description':a222_0x2b5b77(0x18e)},{'name':a222_0x2b5b77(0x165),'meowKey':a222_0x2b5b77(0x165),'type':a222_0x2b5b77(0x167),'description':a222_0x2b5b77(0x1d4)},{'name':a222_0x2b5b77(0x19b),'meowKey':'project','type':'boolean','description':a222_0x2b5b77(0x16b)},{'name':'ci','meowKey':'ci','type':a222_0x2b5b77(0x167),'description':a222_0x2b5b77(0x16a),'hidden':!![]},{'name':'help','meowKey':a222_0x2b5b77(0x15c),'type':'boolean','description':a222_0x2b5b77(0x1a6)},{'name':a222_0x2b5b77(0x15f),'meowKey':a222_0x2b5b77(0x15f),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x1c1),'hidden':!![],'hint':'zh-CN\x20|\x20en-US'},{'name':a222_0x2b5b77(0x1c9),'meowKey':a222_0x2b5b77(0x1c9),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x17e),'hidden':!![]},{'name':a222_0x2b5b77(0x187),'meowKey':a222_0x2b5b77(0x187),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x1b9),'hidden':!![]},{'name':'query','meowKey':a222_0x2b5b77(0x17c),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x1be),'hidden':!![]},{'name':a222_0x2b5b77(0x1ba),'meowKey':'topk','type':'string','description':a222_0x2b5b77(0x159),'hidden':!![]},{'name':a222_0x2b5b77(0x1da),'meowKey':'clear','type':a222_0x2b5b77(0x167),'description':a222_0x2b5b77(0x179),'hidden':!![]},{'name':'watch','meowKey':'watch','type':a222_0x2b5b77(0x167),'description':'Watch\x20mode','hidden':!![]},{'name':a222_0x2b5b77(0x1bb),'meowKey':'output','type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x1cd),'hidden':!![]},{'name':'params','meowKey':a222_0x2b5b77(0x191),'type':'string','description':a222_0x2b5b77(0x1b7),'hidden':!![]},{'name':a222_0x2b5b77(0x1a3),'meowKey':a222_0x2b5b77(0x1a3),'type':a222_0x2b5b77(0x1a2),'description':'Dataset\x20code','hidden':!![]},{'name':'all','meowKey':a222_0x2b5b77(0x18a),'type':a222_0x2b5b77(0x167),'description':a222_0x2b5b77(0x184),'hidden':!![]},{'name':'enable-bff-save','meowKey':a222_0x2b5b77(0x188),'type':a222_0x2b5b77(0x167),'description':'Enable\x20Backend\x20Function\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x14d),'hidden':!![]},{'name':a222_0x2b5b77(0x183),'meowKey':a222_0x2b5b77(0x183),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x166),'hidden':!![]},{'name':'file','meowKey':a222_0x2b5b77(0x190),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x19e),'hidden':!![]},{'name':a222_0x2b5b77(0x1d2),'meowKey':a222_0x2b5b77(0x1d2),'type':'string','description':a222_0x2b5b77(0x19f),'hidden':!![]},{'name':a222_0x2b5b77(0x155),'meowKey':a222_0x2b5b77(0x1d3),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x169),'hidden':!![]},{'name':a222_0x2b5b77(0x151),'meowKey':a222_0x2b5b77(0x151),'type':'string','description':a222_0x2b5b77(0x169),'hidden':!![]},{'name':'db-id','meowKey':a222_0x2b5b77(0x18f),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x178),'hidden':!![]},{'name':a222_0x2b5b77(0x157),'meowKey':'dbid','type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x178),'hidden':!![]},{'name':a222_0x2b5b77(0x1c3),'meowKey':'description','type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x152),'hidden':!![]},{'name':'description-file','meowKey':a222_0x2b5b77(0x1a7),'type':'string','description':a222_0x2b5b77(0x1c7),'hidden':!![]},{'name':'page','meowKey':'page','type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x1cc),'hidden':!![]},{'name':a222_0x2b5b77(0x1a1),'meowKey':a222_0x2b5b77(0x1a1),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x1b1),'hidden':!![]},{'name':a222_0x2b5b77(0x16c),'meowKey':a222_0x2b5b77(0x16c),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x164),'hidden':!![]},{'name':a222_0x2b5b77(0x1ae),'meowKey':a222_0x2b5b77(0x1ae),'type':'string','description':a222_0x2b5b77(0x1d1),'hidden':!![]},{'name':a222_0x2b5b77(0x15a),'meowKey':a222_0x2b5b77(0x15a),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x186),'hidden':!![]},{'name':a222_0x2b5b77(0x160),'meowKey':a222_0x2b5b77(0x160),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x14e),'hidden':!![]},{'name':a222_0x2b5b77(0x1bc),'meowKey':a222_0x2b5b77(0x1bc),'type':'string','description':'Operation\x20type','hidden':!![]},{'name':a222_0x2b5b77(0x17f),'meowKey':a222_0x2b5b77(0x17f),'type':a222_0x2b5b77(0x1a2),'description':'Target\x20path','hidden':!![]},{'name':a222_0x2b5b77(0x17d),'meowKey':a222_0x2b5b77(0x195),'type':a222_0x2b5b77(0x167),'description':a222_0x2b5b77(0x1c2),'hidden':!![]},{'name':a222_0x2b5b77(0x168),'meowKey':a222_0x2b5b77(0x168),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x199),'hidden':!![]},{'name':a222_0x2b5b77(0x196),'meowKey':a222_0x2b5b77(0x196),'type':'string','description':a222_0x2b5b77(0x15b),'hidden':!![]},{'name':a222_0x2b5b77(0x1b0),'meowKey':a222_0x2b5b77(0x1b0),'type':'string','description':a222_0x2b5b77(0x156),'hidden':!![]},{'name':'stdin','meowKey':'stdin','type':a222_0x2b5b77(0x167),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':a222_0x2b5b77(0x15d),'meowKey':a222_0x2b5b77(0x189),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x1b8),'hidden':!![]},{'name':a222_0x2b5b77(0x1cf),'meowKey':a222_0x2b5b77(0x1cf),'type':a222_0x2b5b77(0x167),'description':a222_0x2b5b77(0x1aa),'hidden':!![]},{'name':'force','meowKey':'force','type':a222_0x2b5b77(0x167),'description':a222_0x2b5b77(0x1d8),'hidden':!![]},{'name':'confirm','meowKey':a222_0x2b5b77(0x1c5),'type':a222_0x2b5b77(0x167),'description':a222_0x2b5b77(0x1bf),'hidden':!![]},{'name':a222_0x2b5b77(0x1ad),'meowKey':a222_0x2b5b77(0x1ad),'type':a222_0x2b5b77(0x167),'description':a222_0x2b5b77(0x1ca),'hidden':!![]},{'name':a222_0x2b5b77(0x185),'meowKey':a222_0x2b5b77(0x185),'type':a222_0x2b5b77(0x167),'description':'Verbose\x20output','hidden':!![]},{'name':a222_0x2b5b77(0x1d7),'meowKey':a222_0x2b5b77(0x163),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x172),'hidden':!![]},{'name':a222_0x2b5b77(0x16e),'meowKey':a222_0x2b5b77(0x16e),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x182),'hidden':!![]},{'name':a222_0x2b5b77(0x18d),'meowKey':a222_0x2b5b77(0x198),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x161),'hidden':!![]},{'name':a222_0x2b5b77(0x171),'meowKey':a222_0x2b5b77(0x171),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x1db),'hidden':!![]},{'name':a222_0x2b5b77(0x175),'meowKey':a222_0x2b5b77(0x1b2),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x1a4),'hidden':!![]},{'name':'expect-path','meowKey':a222_0x2b5b77(0x1bd),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x154),'hidden':!![]},{'name':a222_0x2b5b77(0x1a0),'meowKey':a222_0x2b5b77(0x18c),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x180),'hidden':!![]},{'name':a222_0x2b5b77(0x14c),'meowKey':a222_0x2b5b77(0x1b3),'type':'string','description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':'task-id','meowKey':a222_0x2b5b77(0x174),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x18b),'hidden':!![]},{'name':a222_0x2b5b77(0x193),'meowKey':a222_0x2b5b77(0x150),'type':'string','description':a222_0x2b5b77(0x197),'hidden':!![]},{'name':a222_0x2b5b77(0x176),'meowKey':a222_0x2b5b77(0x194),'type':a222_0x2b5b77(0x1a2),'description':'Function\x20node','hidden':!![]},{'name':a222_0x2b5b77(0x1c0),'meowKey':a222_0x2b5b77(0x17b),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x16d),'hidden':!![]},{'name':a222_0x2b5b77(0x14f),'meowKey':a222_0x2b5b77(0x14f),'type':a222_0x2b5b77(0x167),'description':a222_0x2b5b77(0x1a5),'hidden':!![]},{'name':a222_0x2b5b77(0x173),'meowKey':a222_0x2b5b77(0x173),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x1d9),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a222_0x2b5b77(0x1d6),a222_0x2b5b77(0x181),a222_0x2b5b77(0x19d),a222_0x2b5b77(0x1c6),'jq',a222_0x2b5b77(0x1c8),a222_0x2b5b77(0x16f),a222_0x2b5b77(0x1ac),'ci']);export function buildMeowFlags(){const _0x2d1aee=a222_0x2b5b77;return Object[_0x2d1aee(0x1b4)](GLOBAL_FLAGS['map'](_0x44f816=>[_0x44f816[_0x2d1aee(0x19a)],{'type':_0x44f816[_0x2d1aee(0x183)]}]));}function a222_0x5a9e(){const _0x16953c=['non-interactive','remote','code','<expr>','tags','Page\x20size','expectParentId','menuIds','fromEntries','4151262luOkAw','Output\x20format','JSON\x20params','Read\x20value\x20from\x20environment\x20variable','Title','topk','output','operation','expectPath','Search\x20query','Confirm\x20destructive\x20action','target-env','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','Skip\x20import\x20generation','description','1335174gQhJzr','confirm','format','Description\x20file','dry-run','name','Use\x20remote','Rabetbase\x20CLI','Page\x20number','Output\x20path','8978364bLTGeh','reveal','114819eWWnJu','Code\x20filter','sqlcode','sqlName','Use\x20global\x20config\x20scope','json\x20|\x20pretty\x20|\x20compress','appcode','expected-count','Force\x20overwrite','Comma-separated\x20metadata\x20codes','clear','Menu\x20sort\x20value','dryRun','menu-ids','Record\x20ID','Schemas','direct','operationType','sqlname','Description','<name>','Expected\x20current\x20menu\x20path','sql-name','Tags','dbid','5042765TTsrMw','Maximum\x20search\x20hits','sql','Config\x20value','help','from-env','40SUtdoj','locale','schemas','Parent\x20menu\x20id','Override\x20appcode','expectedCount','Keyword\x20filter','global','Type\x20filter','boolean','key','SQL\x20name','Alias\x20for\x20--non-interactive','Use\x20project\x20config\x20scope','keyword','Target\x20connection\x20environment','label','yes','Environment','sort','Expected\x20affected\x20count','codes','taskId','expect-parent-id','function-node','@lovrabet/rabetbase-cli','DB\x20ID','Clear','298893sJcGFS','targetEnv','query','skip-imports','Name','target','Expected\x20current\x20child\x20count','app','Menu\x20label','type','Apply\x20to\x20all','verbose','SQL\x20string','title','enableBffSave','fromEnv','all','Asynchronous\x20task\x20ID','expectedChildrenCount','parent-id','Force\x20non-interactive\x20mode\x20(CI)','dbId','file','params','nonInteractive','operation-type','functionNode','skipImports','value','Operation\x20type','parentId','Config\x20key','meowKey','project','4QzTbfc','env','File\x20path','SQL\x20code','expected-children-count','pagesize','string','datasetcode','Expected\x20current\x20parent\x20menu\x20id','Use\x20the\x20base\x20database\x20connection','Show\x20help','descriptionFile','<code>','532678dxRiVP','Reveal\x20sensitive\x20value','Preview\x20operation\x20without\x20executing'];a222_0x5a9e=function(){return _0x16953c;};return a222_0x5a9e();}
1
+ const a221_0x4d12be=a221_0x4ad7;(function(_0x260471,_0x3c1515){const _0x2c98cb=a221_0x4ad7,_0x5356c5=_0x260471();while(!![]){try{const _0x11ef8a=parseInt(_0x2c98cb(0x87))/0x1+parseInt(_0x2c98cb(0xa6))/0x2*(-parseInt(_0x2c98cb(0x101))/0x3)+-parseInt(_0x2c98cb(0xe0))/0x4*(parseInt(_0x2c98cb(0xad))/0x5)+parseInt(_0x2c98cb(0xa1))/0x6+parseInt(_0x2c98cb(0xf2))/0x7*(parseInt(_0x2c98cb(0xd4))/0x8)+parseInt(_0x2c98cb(0xe9))/0x9+parseInt(_0x2c98cb(0xd7))/0xa*(parseInt(_0x2c98cb(0xa0))/0xb);if(_0x11ef8a===_0x3c1515)break;else _0x5356c5['push'](_0x5356c5['shift']());}catch(_0x3a5e49){_0x5356c5['push'](_0x5356c5['shift']());}}}(a221_0x3a47,0xd5dfd));export const CLI_BIN_NAME=a221_0x4d12be(0xb9);export const CLI_DISPLAY_NAME=a221_0x4d12be(0x9f);function a221_0x3a47(){const _0x219529=['Description','expected-children-count','parent-id','appcode','SQL\x20string','sqlcode','Tags','Skip\x20confirmation\x20for\x20high-risk\x20writes','1456446zSNCuZ','yes','operation-type','DB\x20ID','Show\x20help','sort','params','name','@lovrabet/rabetbase-cli','sqlName','schemas','expectParentId','description','env','Expected\x20affected\x20count','meowKey','operation','expect-path','force','Confirm\x20destructive\x20action','Name','Alias\x20for\x20--non-interactive','Schemas','Preview\x20operation\x20without\x20executing','Rabetbase\x20CLI','16379hUbBrp','8133852VjoDAP','Use\x20remote','<expr>','Read\x20value\x20from\x20stdin','Skip\x20import\x20generation','11044awWNxh','Reveal\x20sensitive\x20value','Use\x20global\x20config\x20scope','zh-CN\x20|\x20en-US','Enable\x20Backend\x20Function\x20save','Code\x20filter','Output\x20format','7881145ORKLCH','Menu\x20label','enableBffSave','page','Environment','<name>','Use\x20project\x20config\x20scope','taskId','string','sqlname','codes','Expected\x20current\x20menu\x20path','rabetbase','Operation\x20type','tags','project','type','Target\x20path','output','map','keyword','pagesize','Menu\x20sort\x20value','value','Force\x20overwrite','Title','function-node','dry-run','skipImports','description-file','global','JSON\x20params','SQL\x20name','dryRun','Select\x20app\x20profile\x20by\x20name','confirm','dbid','enable-bff-save','SQL\x20code','352VyQMJR','Override\x20appcode','Record\x20ID','600nbWcSA','json\x20|\x20pretty\x20|\x20compress','Expected\x20current\x20child\x20count','menu-ids','key','boolean','watch','topk','Read\x20value\x20from\x20environment\x20variable','4Jmflhh','Watch\x20mode','remote','Config\x20key','datasetcode','nonInteractive','File\x20path','production\x20|\x20daily','expect-parent-id','2315052vbHWXO','stdin','menuIds','Comma-separated\x20menu\x20IDs','expectedChildrenCount','sql','title','file','format','34328LIzcup','code','Verbose\x20output','reveal','Function\x20node','verbose','target','Type\x20filter','Apply\x20to\x20all','Dataset\x20code','non-interactive','Output\x20path','Force\x20non-interactive\x20mode\x20(CI)','all','operationType','501zkTqUx','label','Expected\x20current\x20parent\x20menu\x20id','locale','<code>','skip-imports','Parent\x20menu\x20id','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Page\x20number','sql-name','functionNode','Comma-separated\x20metadata\x20codes','clear','query','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','app'];a221_0x3a47=function(){return _0x219529;};return a221_0x3a47();}export const NPM_PACKAGE_NAME=a221_0x4d12be(0x8f);function a221_0x4ad7(_0x3f449a,_0x479c57){_0x3f449a=_0x3f449a-0x7f;const _0x3a47f3=a221_0x3a47();let _0x4ad7fc=_0x3a47f3[_0x3f449a];return _0x4ad7fc;}export const GLOBAL_FLAGS=[{'name':a221_0x4d12be(0x82),'meowKey':'appcode','type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xd5),'hint':a221_0x4d12be(0x105)},{'name':a221_0x4d12be(0x110),'meowKey':a221_0x4d12be(0x110),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xcf),'hint':a221_0x4d12be(0xb2)},{'name':a221_0x4d12be(0x94),'meowKey':'env','type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xb1),'hint':a221_0x4d12be(0xe7)},{'name':a221_0x4d12be(0xf1),'meowKey':a221_0x4d12be(0xf1),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xac),'hint':a221_0x4d12be(0xd8)},{'name':'jq','meowKey':'jq','type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0x108),'hint':a221_0x4d12be(0xa3)},{'name':a221_0x4d12be(0xc8),'meowKey':a221_0x4d12be(0xce),'type':a221_0x4d12be(0xdc),'description':a221_0x4d12be(0x9e)},{'name':a221_0x4d12be(0x88),'meowKey':a221_0x4d12be(0x88),'type':a221_0x4d12be(0xdc),'description':a221_0x4d12be(0x86)},{'name':a221_0x4d12be(0xfc),'meowKey':a221_0x4d12be(0xe5),'type':a221_0x4d12be(0xdc),'description':a221_0x4d12be(0xfe)},{'name':a221_0x4d12be(0xcb),'meowKey':'global','type':a221_0x4d12be(0xdc),'description':a221_0x4d12be(0xa8)},{'name':a221_0x4d12be(0xbc),'meowKey':a221_0x4d12be(0xbc),'type':a221_0x4d12be(0xdc),'description':a221_0x4d12be(0xb3)},{'name':'ci','meowKey':'ci','type':a221_0x4d12be(0xdc),'description':a221_0x4d12be(0x9c),'hidden':!![]},{'name':'help','meowKey':'help','type':a221_0x4d12be(0xdc),'description':a221_0x4d12be(0x8b)},{'name':a221_0x4d12be(0x104),'meowKey':a221_0x4d12be(0x104),'type':'string','description':a221_0x4d12be(0x10f),'hidden':!![],'hint':a221_0x4d12be(0xa9)},{'name':a221_0x4d12be(0x8e),'meowKey':'name','type':'string','description':a221_0x4d12be(0x9b),'hidden':!![]},{'name':a221_0x4d12be(0xef),'meowKey':a221_0x4d12be(0xef),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xc6),'hidden':!![]},{'name':a221_0x4d12be(0x10e),'meowKey':a221_0x4d12be(0x10e),'type':'string','description':'Search\x20query','hidden':!![]},{'name':a221_0x4d12be(0xde),'meowKey':a221_0x4d12be(0xde),'type':a221_0x4d12be(0xb5),'description':'Maximum\x20search\x20hits','hidden':!![]},{'name':a221_0x4d12be(0x10d),'meowKey':a221_0x4d12be(0x10d),'type':'boolean','description':'Clear','hidden':!![]},{'name':'watch','meowKey':a221_0x4d12be(0xdd),'type':a221_0x4d12be(0xdc),'description':a221_0x4d12be(0xe1),'hidden':!![]},{'name':'output','meowKey':a221_0x4d12be(0xbf),'type':'string','description':a221_0x4d12be(0xfd),'hidden':!![]},{'name':a221_0x4d12be(0x8d),'meowKey':a221_0x4d12be(0x8d),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xcc),'hidden':!![]},{'name':a221_0x4d12be(0xe4),'meowKey':a221_0x4d12be(0xe4),'type':'string','description':a221_0x4d12be(0xfb),'hidden':!![]},{'name':'all','meowKey':a221_0x4d12be(0xff),'type':a221_0x4d12be(0xdc),'description':a221_0x4d12be(0xfa),'hidden':!![]},{'name':a221_0x4d12be(0xd2),'meowKey':a221_0x4d12be(0xaf),'type':a221_0x4d12be(0xdc),'description':a221_0x4d12be(0xaa),'hidden':!![]},{'name':'id','meowKey':'id','type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xd6),'hidden':!![]},{'name':a221_0x4d12be(0xbd),'meowKey':a221_0x4d12be(0xbd),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xf9),'hidden':!![]},{'name':a221_0x4d12be(0xf0),'meowKey':a221_0x4d12be(0xf0),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xe6),'hidden':!![]},{'name':a221_0x4d12be(0x84),'meowKey':a221_0x4d12be(0x84),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xd3),'hidden':!![]},{'name':a221_0x4d12be(0x10a),'meowKey':a221_0x4d12be(0x90),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xcd),'hidden':!![]},{'name':a221_0x4d12be(0xb6),'meowKey':a221_0x4d12be(0xb6),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xcd),'hidden':!![]},{'name':'db-id','meowKey':'dbId','type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0x8a),'hidden':!![]},{'name':a221_0x4d12be(0xd1),'meowKey':a221_0x4d12be(0xd1),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0x8a),'hidden':!![]},{'name':a221_0x4d12be(0x93),'meowKey':a221_0x4d12be(0x93),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0x7f),'hidden':!![]},{'name':a221_0x4d12be(0xca),'meowKey':'descriptionFile','type':'string','description':'Description\x20file','hidden':!![]},{'name':a221_0x4d12be(0xb0),'meowKey':a221_0x4d12be(0xb0),'type':'string','description':a221_0x4d12be(0x109),'hidden':!![]},{'name':a221_0x4d12be(0xc2),'meowKey':a221_0x4d12be(0xc2),'type':a221_0x4d12be(0xb5),'description':'Page\x20size','hidden':!![]},{'name':a221_0x4d12be(0xc1),'meowKey':a221_0x4d12be(0xc1),'type':'string','description':'Keyword\x20filter','hidden':!![]},{'name':a221_0x4d12be(0xf3),'meowKey':a221_0x4d12be(0xf3),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xab),'hidden':!![]},{'name':a221_0x4d12be(0xee),'meowKey':'sql','type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0x83),'hidden':!![]},{'name':a221_0x4d12be(0x91),'meowKey':a221_0x4d12be(0x91),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0x9d),'hidden':!![]},{'name':a221_0x4d12be(0x97),'meowKey':a221_0x4d12be(0x97),'type':'string','description':a221_0x4d12be(0xba),'hidden':!![]},{'name':a221_0x4d12be(0xf8),'meowKey':a221_0x4d12be(0xf8),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xbe),'hidden':!![]},{'name':a221_0x4d12be(0x106),'meowKey':a221_0x4d12be(0xc9),'type':a221_0x4d12be(0xdc),'description':a221_0x4d12be(0xa5),'hidden':!![]},{'name':a221_0x4d12be(0xdb),'meowKey':a221_0x4d12be(0xdb),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xe3),'hidden':!![]},{'name':a221_0x4d12be(0xc4),'meowKey':a221_0x4d12be(0xc4),'type':a221_0x4d12be(0xb5),'description':'Config\x20value','hidden':!![]},{'name':a221_0x4d12be(0xbb),'meowKey':a221_0x4d12be(0xbb),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0x85),'hidden':!![]},{'name':a221_0x4d12be(0xea),'meowKey':'stdin','type':a221_0x4d12be(0xdc),'description':a221_0x4d12be(0xa4),'hidden':!![]},{'name':'from-env','meowKey':'fromEnv','type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xdf),'hidden':!![]},{'name':a221_0x4d12be(0xf5),'meowKey':a221_0x4d12be(0xf5),'type':a221_0x4d12be(0xdc),'description':a221_0x4d12be(0xa7),'hidden':!![]},{'name':a221_0x4d12be(0x99),'meowKey':a221_0x4d12be(0x99),'type':'boolean','description':a221_0x4d12be(0xc5),'hidden':!![]},{'name':'confirm','meowKey':a221_0x4d12be(0xd0),'type':'boolean','description':a221_0x4d12be(0x9a),'hidden':!![]},{'name':a221_0x4d12be(0xe2),'meowKey':a221_0x4d12be(0xe2),'type':'boolean','description':a221_0x4d12be(0xa2),'hidden':!![]},{'name':a221_0x4d12be(0xf7),'meowKey':a221_0x4d12be(0xf7),'type':a221_0x4d12be(0xdc),'description':a221_0x4d12be(0xf4),'hidden':!![]},{'name':'expected-count','meowKey':'expectedCount','type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0x95),'hidden':!![]},{'name':a221_0x4d12be(0x102),'meowKey':'label','type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xae),'hidden':!![]},{'name':a221_0x4d12be(0x81),'meowKey':'parentId','type':'string','description':a221_0x4d12be(0x107),'hidden':!![]},{'name':a221_0x4d12be(0x8c),'meowKey':'sort','type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xc3),'hidden':!![]},{'name':a221_0x4d12be(0xe8),'meowKey':a221_0x4d12be(0x92),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0x103),'hidden':!![]},{'name':a221_0x4d12be(0x98),'meowKey':'expectPath','type':'string','description':a221_0x4d12be(0xb8),'hidden':!![]},{'name':a221_0x4d12be(0x80),'meowKey':a221_0x4d12be(0xed),'type':'string','description':a221_0x4d12be(0xd9),'hidden':!![]},{'name':a221_0x4d12be(0xda),'meowKey':a221_0x4d12be(0xeb),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xec),'hidden':!![]},{'name':'task-id','meowKey':a221_0x4d12be(0xb4),'type':a221_0x4d12be(0xb5),'description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':a221_0x4d12be(0x89),'meowKey':a221_0x4d12be(0x100),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xba),'hidden':!![]},{'name':a221_0x4d12be(0xc7),'meowKey':a221_0x4d12be(0x10b),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xf6),'hidden':!![]},{'name':a221_0x4d12be(0xb7),'meowKey':'codes','type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0x10c),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a221_0x4d12be(0x82),a221_0x4d12be(0x110),a221_0x4d12be(0x94),a221_0x4d12be(0xf1),'jq','dry-run','yes',a221_0x4d12be(0xfc),'ci']);export function buildMeowFlags(){const _0x2d396d=a221_0x4d12be;return Object['fromEntries'](GLOBAL_FLAGS[_0x2d396d(0xc0)](_0x4eb211=>[_0x4eb211[_0x2d396d(0x96)],{'type':_0x4eb211[_0x2d396d(0xbd)]}]));}
@@ -1 +1 @@
1
- const a223_0x291998=a223_0x27e9;function a223_0x27e9(_0x563703,_0x5d514e){_0x563703=_0x563703-0x169;const _0x57d4cd=a223_0x57d4();let _0x27e98b=_0x57d4cd[_0x563703];return _0x27e98b;}(function(_0xa16e6b,_0x5d7bc4){const _0x357870=a223_0x27e9,_0x222070=_0xa16e6b();while(!![]){try{const _0x4fce23=-parseInt(_0x357870(0x176))/0x1+-parseInt(_0x357870(0x173))/0x2*(parseInt(_0x357870(0x16f))/0x3)+-parseInt(_0x357870(0x172))/0x4*(parseInt(_0x357870(0x16a))/0x5)+-parseInt(_0x357870(0x169))/0x6+parseInt(_0x357870(0x16e))/0x7*(parseInt(_0x357870(0x16c))/0x8)+parseInt(_0x357870(0x177))/0x9*(-parseInt(_0x357870(0x170))/0xa)+parseInt(_0x357870(0x171))/0xb;if(_0x4fce23===_0x5d7bc4)break;else _0x222070['push'](_0x222070['shift']());}catch(_0x1b69e1){_0x222070['push'](_0x222070['shift']());}}}(a223_0x57d4,0x4597d));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a223_0x291998(0x16d),'format':a223_0x291998(0x174),'locale':a223_0x291998(0x175),'riskLevel':a223_0x291998(0x16b),'apiDir':DEFAULT_API_DIR};function a223_0x57d4(){const _0x11ebd6=['8iiguvK','production','892885icxoUL','1044hDVJxk','10FAKsfW','10580713gdXgeM','178348GtXNFa','454SLsPEa','compress','en-US','249728OTHooL','271971zxNqJL','2405130OVGLeX','5YDpuld','write'];a223_0x57d4=function(){return _0x11ebd6;};return a223_0x57d4();}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a223_0x291998(0x174);
1
+ function a222_0x58f4(_0x1a1114,_0x294e78){_0x1a1114=_0x1a1114-0x95;const _0x1d6255=a222_0x1d62();let _0x58f4de=_0x1d6255[_0x1a1114];return _0x58f4de;}const a222_0x43bb4f=a222_0x58f4;(function(_0x165029,_0x27638f){const _0x25d1e3=a222_0x58f4,_0x4602d1=_0x165029();while(!![]){try{const _0x12d4e9=-parseInt(_0x25d1e3(0x9b))/0x1*(parseInt(_0x25d1e3(0x95))/0x2)+parseInt(_0x25d1e3(0x9d))/0x3+parseInt(_0x25d1e3(0x9a))/0x4*(-parseInt(_0x25d1e3(0x96))/0x5)+-parseInt(_0x25d1e3(0xa0))/0x6+parseInt(_0x25d1e3(0x99))/0x7*(parseInt(_0x25d1e3(0x9e))/0x8)+-parseInt(_0x25d1e3(0x9c))/0x9+parseInt(_0x25d1e3(0xa2))/0xa*(parseInt(_0x25d1e3(0x9f))/0xb);if(_0x12d4e9===_0x27638f)break;else _0x4602d1['push'](_0x4602d1['shift']());}catch(_0x7555d7){_0x4602d1['push'](_0x4602d1['shift']());}}}(a222_0x1d62,0x3a274));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a222_0x43bb4f(0x98),'format':a222_0x43bb4f(0xa1),'locale':'en-US','riskLevel':a222_0x43bb4f(0x97),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a222_0x43bb4f(0xa1);function a222_0x1d62(){const _0x5e94e9=['1441413JpxxHH','747921pTJwfv','3411512xWOuBs','115709tOUGjL','2164272RfBvgk','compress','740tqKBFJ','2KxUEhV','25WDlKWt','write','production','7emiIQV','289436Cdfazy','333292ekRfaW'];a222_0x1d62=function(){return _0x5e94e9;};return a222_0x1d62();}
@@ -1 +1 @@
1
- function a224_0x5dba(_0x19543b,_0x27e9ba){_0x19543b=_0x19543b-0x139;const _0x907872=a224_0x9078();let _0x5dbacd=_0x907872[_0x19543b];return _0x5dbacd;}const a224_0x5494c2=a224_0x5dba;(function(_0x1a429d,_0x275ebd){const _0xd65451=a224_0x5dba,_0x5ebfdc=_0x1a429d();while(!![]){try{const _0x1d822a=-parseInt(_0xd65451(0x13b))/0x1*(parseInt(_0xd65451(0x14f))/0x2)+-parseInt(_0xd65451(0x154))/0x3+-parseInt(_0xd65451(0x13e))/0x4*(-parseInt(_0xd65451(0x13a))/0x5)+-parseInt(_0xd65451(0x14d))/0x6*(parseInt(_0xd65451(0x146))/0x7)+parseInt(_0xd65451(0x14b))/0x8*(-parseInt(_0xd65451(0x150))/0x9)+-parseInt(_0xd65451(0x143))/0xa+parseInt(_0xd65451(0x148))/0xb*(parseInt(_0xd65451(0x149))/0xc);if(_0x1d822a===_0x275ebd)break;else _0x5ebfdc['push'](_0x5ebfdc['shift']());}catch(_0x362570){_0x5ebfdc['push'](_0x5ebfdc['shift']());}}}(a224_0x9078,0x59146));import{getEnv,isProduction}from'../constant/env.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';import{getOfficialRoutingCdn,getOfficialRoutingProfile}from'../constant/routing-profile.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customAppDomain,customLocalDomain,customCertificateDomain,customCdn,activeRegion=DEFAULT_LOVRABET_REGION;function getActiveRegionDomains(){const _0x4f93f0=a224_0x5dba,_0x15864d=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0x15864d[_0x4f93f0(0x141)]['production']:_0x15864d[_0x4f93f0(0x141)][_0x4f93f0(0x153)]??_0x15864d[_0x4f93f0(0x141)][_0x4f93f0(0x14a)];}export function initDomains(_0x13d3ab){const _0x3f8886=a224_0x5dba;customApiDomain=_0x13d3ab?.[_0x3f8886(0x145)],customUserDomain=_0x13d3ab?.[_0x3f8886(0x139)],customRuntimeDomain=_0x13d3ab?.['runtimeDomain'],customSkillDomain=_0x13d3ab?.[_0x3f8886(0x151)],customKbDomain=_0x13d3ab?.[_0x3f8886(0x13f)],customAppDomain=_0x13d3ab?.[_0x3f8886(0x14c)],customLocalDomain=_0x13d3ab?.['localDomain'],customCertificateDomain=_0x13d3ab?.[_0x3f8886(0x13c)],customCdn=_0x13d3ab?.[_0x3f8886(0x152)],activeRegion=_0x13d3ab?.['region']??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()['user'];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a224_0x5494c2(0x140)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a224_0x5494c2(0x13d)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()['skill'];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a224_0x5494c2(0x144)];export const getActiveRegion=()=>activeRegion;function a224_0x9078(){const _0x4efc56=['107396DXKbzf','kbDomain','api','serviceDomains','/app/','431400eJcQHw','app','apiDomain','14MgEtsg','trim','11psSwKf','20133924ZJjPok','production','24KrYkOb','appDomain','781656uxpTeY','/web-app/app/','3644ODTHiT','1090017KgyfYf','skillDomain','cdn','daily','210216fjAUdb','userDomain','20WyzGpP','375gVVNOW','certificateDomain','runtime'];a224_0x9078=function(){return _0x4efc56;};return a224_0x9078();}export const getLocalDomain=()=>customLocalDomain;export const getCertificateDomain=()=>customCertificateDomain;export const getActiveCdn=()=>customCdn||getOfficialRoutingCdn(activeRegion);export function isIndependentDeployment(){return!!(customApiDomain||customUserDomain||customRuntimeDomain||customSkillDomain||customKbDomain||customAppDomain||customLocalDomain||customCertificateDomain);}export function getSdkClientRoutingConfig(){const _0x3a65f6=a224_0x5494c2;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x3a65f6(0x13d)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x808385=>{const _0xf2482a=a224_0x5494c2,_0x3007ac=encodeURIComponent(_0x808385[_0xf2482a(0x147)]());return isProduction(getEnv())?getAppDomain()+_0xf2482a(0x142)+_0x3007ac:getAppDomain()+_0xf2482a(0x14e)+_0x3007ac;};export const getPublishedAppDomain=_0x41769d=>{const _0x342c29=a224_0x5494c2,_0x79a9c8=new URL(getAppDomain());return _0x79a9c8['hostname']=_0x41769d[_0x342c29(0x147)]()+'.'+_0x79a9c8['hostname'],_0x79a9c8['origin'];};
1
+ const a223_0x3a83ec=a223_0x4969;(function(_0x550b40,_0x12e460){const _0x2d3ae9=a223_0x4969,_0x3f83a3=_0x550b40();while(!![]){try{const _0x3f1088=parseInt(_0x2d3ae9(0xed))/0x1+-parseInt(_0x2d3ae9(0xf6))/0x2*(parseInt(_0x2d3ae9(0xfa))/0x3)+-parseInt(_0x2d3ae9(0xf8))/0x4+parseInt(_0x2d3ae9(0xe9))/0x5*(-parseInt(_0x2d3ae9(0xf9))/0x6)+-parseInt(_0x2d3ae9(0xf4))/0x7+parseInt(_0x2d3ae9(0xfd))/0x8+-parseInt(_0x2d3ae9(0xe2))/0x9*(-parseInt(_0x2d3ae9(0xef))/0xa);if(_0x3f1088===_0x12e460)break;else _0x3f83a3['push'](_0x3f83a3['shift']());}catch(_0x4538ab){_0x3f83a3['push'](_0x3f83a3['shift']());}}}(a223_0x1a9a,0x71047));import{getEnv,isProduction}from'../constant/env.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';import{getOfficialRoutingCdn,getOfficialRoutingProfile}from'../constant/routing-profile.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customAppDomain,customLocalDomain,customCertificateDomain,customCdn,activeRegion=DEFAULT_LOVRABET_REGION;function getActiveRegionDomains(){const _0x355883=a223_0x4969,_0xd5eaad=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0xd5eaad[_0x355883(0xe3)][_0x355883(0xfc)]:_0xd5eaad['serviceDomains'][_0x355883(0xf7)]??_0xd5eaad[_0x355883(0xe3)][_0x355883(0xfc)];}export function initDomains(_0x5c289e){const _0x2876ac=a223_0x4969;customApiDomain=_0x5c289e?.['apiDomain'],customUserDomain=_0x5c289e?.['userDomain'],customRuntimeDomain=_0x5c289e?.[_0x2876ac(0xec)],customSkillDomain=_0x5c289e?.[_0x2876ac(0xe7)],customKbDomain=_0x5c289e?.['kbDomain'],customAppDomain=_0x5c289e?.[_0x2876ac(0xf5)],customLocalDomain=_0x5c289e?.[_0x2876ac(0xf0)],customCertificateDomain=_0x5c289e?.[_0x2876ac(0xe6)],customCdn=_0x5c289e?.[_0x2876ac(0xeb)],activeRegion=_0x5c289e?.[_0x2876ac(0xe5)]??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a223_0x3a83ec(0xfb)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a223_0x3a83ec(0xea)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a223_0x3a83ec(0xf2)];function a223_0x4969(_0x3bc661,_0x4de8e7){_0x3bc661=_0x3bc661-0xe2;const _0x1a9abc=a223_0x1a9a();let _0x496926=_0x1a9abc[_0x3bc661];return _0x496926;}export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()['skill'];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a223_0x3a83ec(0xf3)];export const getActiveRegion=()=>activeRegion;export const getLocalDomain=()=>customLocalDomain;export const getCertificateDomain=()=>customCertificateDomain;export const getActiveCdn=()=>customCdn||getOfficialRoutingCdn(activeRegion);export function isIndependentDeployment(){return!!(customApiDomain||customUserDomain||customRuntimeDomain||customSkillDomain||customKbDomain||customAppDomain||customLocalDomain||customCertificateDomain);}export function getSdkClientRoutingConfig(){const _0x51f79a=a223_0x3a83ec;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x51f79a(0xf2)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}function a223_0x1a9a(){const _0xfb218b=['632795LQvTwk','/app/','8134310gMQhzC','localDomain','/web-app/app/','runtime','app','5473188fEvItp','appDomain','22948tWCaUT','daily','3584320kjWEyn','172338SbwTxw','15tiTwgw','user','production','1576824UEmOTv','18TcmGRl','serviceDomains','hostname','region','certificateDomain','skillDomain','trim','45IUROwx','api','cdn','runtimeDomain'];a223_0x1a9a=function(){return _0xfb218b;};return a223_0x1a9a();}export const getAppBaseUrl=_0x28f46d=>{const _0xaa56a6=a223_0x3a83ec,_0x224965=encodeURIComponent(_0x28f46d[_0xaa56a6(0xe8)]());return isProduction(getEnv())?getAppDomain()+_0xaa56a6(0xee)+_0x224965:getAppDomain()+_0xaa56a6(0xf1)+_0x224965;};export const getPublishedAppDomain=_0x4f231f=>{const _0x57380f=a223_0x3a83ec,_0x4ceda6=new URL(getAppDomain());return _0x4ceda6[_0x57380f(0xe4)]=_0x4f231f[_0x57380f(0xe8)]()+'.'+_0x4ceda6[_0x57380f(0xe4)],_0x4ceda6['origin'];};
@@ -1 +1 @@
1
- const a225_0x5008d0=a225_0xd11b;function a225_0x795b(){const _0x582cfa=['3941932NEGlYP','61073748ughbjP','7028135DrIxty','3832hzeCEb','8519roiUAF','3WhMlpT','daily','9186222FYPWXc','1691965eBhbSN','dev','1620162ftdwmd','production','online','development'];a225_0x795b=function(){return _0x582cfa;};return a225_0x795b();}(function(_0x8b78c7,_0x354589){const _0x3f2b16=a225_0xd11b,_0xad26e=_0x8b78c7();while(!![]){try{const _0x5a784b=-parseInt(_0x3f2b16(0x134))/0x1+-parseInt(_0x3f2b16(0x136))/0x2+parseInt(_0x3f2b16(0x131))/0x3*(-parseInt(_0x3f2b16(0x12c))/0x4)+-parseInt(_0x3f2b16(0x12e))/0x5+-parseInt(_0x3f2b16(0x133))/0x6+parseInt(_0x3f2b16(0x130))/0x7*(parseInt(_0x3f2b16(0x12f))/0x8)+parseInt(_0x3f2b16(0x12d))/0x9;if(_0x5a784b===_0x354589)break;else _0xad26e['push'](_0xad26e['shift']());}catch(_0x172e6d){_0xad26e['push'](_0xad26e['shift']());}}}(a225_0x795b,0xe6a52));export const RABETBASE_ENV_VALUES=[a225_0x5008d0(0x137),a225_0x5008d0(0x132)];export function normalizeEnv(_0x563e3f){const _0x171c8e=a225_0x5008d0;return _0x563e3f===_0x171c8e(0x138)?_0x171c8e(0x137):_0x563e3f;}export function isProduction(_0x1399e0){return normalizeEnv(_0x1399e0)==='production';}function a225_0xd11b(_0x7516ea,_0x48cab4){_0x7516ea=_0x7516ea-0x12c;const _0x795b58=a225_0x795b();let _0xd11b4d=_0x795b58[_0x7516ea];return _0xd11b4d;}export function isDaily(_0x5258e4){return normalizeEnv(_0x5258e4)==='daily';}export function isDev(_0x193cb3){const _0x3fe6cd=a225_0x5008d0,_0x376184=normalizeEnv(_0x193cb3);return _0x376184===_0x3fe6cd(0x139)||_0x376184===_0x3fe6cd(0x135);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a225_0x5008d0(0x137));export function getEnv(){return env;}export function initEnv(_0x2539ad){env=normalizeEnv(_0x2539ad);}
1
+ const a224_0x468699=a224_0xfb1a;(function(_0x70e826,_0x226ded){const _0x2d910b=a224_0xfb1a,_0x54fc8a=_0x70e826();while(!![]){try{const _0x419869=-parseInt(_0x2d910b(0x1ca))/0x1*(-parseInt(_0x2d910b(0x1c6))/0x2)+-parseInt(_0x2d910b(0x1c7))/0x3+-parseInt(_0x2d910b(0x1c2))/0x4+parseInt(_0x2d910b(0x1cd))/0x5+-parseInt(_0x2d910b(0x1c8))/0x6+-parseInt(_0x2d910b(0x1c3))/0x7*(parseInt(_0x2d910b(0x1c4))/0x8)+parseInt(_0x2d910b(0x1cc))/0x9;if(_0x419869===_0x226ded)break;else _0x54fc8a['push'](_0x54fc8a['shift']());}catch(_0x580c82){_0x54fc8a['push'](_0x54fc8a['shift']());}}}(a224_0x18ad,0xb1620));export const RABETBASE_ENV_VALUES=['production',a224_0x468699(0x1ce)];export function normalizeEnv(_0x3fbe08){const _0x10a514=a224_0x468699;return _0x3fbe08===_0x10a514(0x1cb)?_0x10a514(0x1c5):_0x3fbe08;}export function isProduction(_0x5e832e){const _0x455632=a224_0x468699;return normalizeEnv(_0x5e832e)===_0x455632(0x1c5);}export function isDaily(_0x5102bf){const _0x5a09f6=a224_0x468699;return normalizeEnv(_0x5102bf)===_0x5a09f6(0x1ce);}export function isDev(_0x82bca9){const _0x3ec47f=a224_0x468699,_0x53e113=normalizeEnv(_0x82bca9);return _0x53e113===_0x3ec47f(0x1c9)||_0x53e113==='dev';}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||'production');export function getEnv(){return env;}function a224_0x18ad(){const _0x397247=['2176722yjRGNu','4092516NaheVx','development','4213XWzxRT','online','24331041YkWQJv','303850hCKPlD','daily','4537668TYlMLe','707BKvCrs','5096zABHIo','production','270NmWJkz'];a224_0x18ad=function(){return _0x397247;};return a224_0x18ad();}function a224_0xfb1a(_0x5040b5,_0xe5a366){_0x5040b5=_0x5040b5-0x1c2;const _0x18adc1=a224_0x18ad();let _0xfb1a3c=_0x18adc1[_0x5040b5];return _0xfb1a3c;}export function initEnv(_0x2b5298){env=normalizeEnv(_0x2b5298);}
@@ -1 +1 @@
1
- function a226_0x2997(){const _0x3f4227=['compress','pretty','294360vIqvSf','8NPOuxh','27351sdTEzg','78zHQhci','357574ZbGQKv','2175399RyFVvK','2806065EYeTNT','8770zEsLuX','140306iganVd','859222zpryoF'];a226_0x2997=function(){return _0x3f4227;};return a226_0x2997();}const a226_0x2e11cc=a226_0x1732;function a226_0x1732(_0x2c9c48,_0x4b3a60){_0x2c9c48=_0x2c9c48-0xd8;const _0x29977f=a226_0x2997();let _0x173297=_0x29977f[_0x2c9c48];return _0x173297;}(function(_0x47e4cf,_0x3415ea){const _0x513ca9=a226_0x1732,_0x5ec2d1=_0x47e4cf();while(!![]){try{const _0x4e2bbd=parseInt(_0x513ca9(0xd8))/0x1+-parseInt(_0x513ca9(0xe3))/0x2+-parseInt(_0x513ca9(0xe0))/0x3*(parseInt(_0x513ca9(0xdc))/0x4)+-parseInt(_0x513ca9(0xe1))/0x5+parseInt(_0x513ca9(0xde))/0x6*(-parseInt(_0x513ca9(0xdf))/0x7)+parseInt(_0x513ca9(0xdb))/0x8+parseInt(_0x513ca9(0xdd))/0x9*(parseInt(_0x513ca9(0xe2))/0xa);if(_0x4e2bbd===_0x3415ea)break;else _0x5ec2d1['push'](_0x5ec2d1['shift']());}catch(_0x4cc0e5){_0x5ec2d1['push'](_0x5ec2d1['shift']());}}}(a226_0x2997,0xc71a2));export const RABETBASE_OUTPUT_FORMAT_VALUES=['json',a226_0x2e11cc(0xda),a226_0x2e11cc(0xd9)];
1
+ const a225_0x172e43=a225_0x4732;(function(_0x52552d,_0x64d41c){const _0x42b124=a225_0x4732,_0x3c0601=_0x52552d();while(!![]){try{const _0x3573f9=parseInt(_0x42b124(0xf6))/0x1*(-parseInt(_0x42b124(0xf1))/0x2)+-parseInt(_0x42b124(0xf5))/0x3*(-parseInt(_0x42b124(0xf3))/0x4)+-parseInt(_0x42b124(0xf4))/0x5+parseInt(_0x42b124(0xfc))/0x6*(parseInt(_0x42b124(0xf2))/0x7)+parseInt(_0x42b124(0xf7))/0x8+-parseInt(_0x42b124(0xfb))/0x9*(-parseInt(_0x42b124(0xf0))/0xa)+-parseInt(_0x42b124(0xf8))/0xb;if(_0x3573f9===_0x64d41c)break;else _0x3c0601['push'](_0x3c0601['shift']());}catch(_0x14fdcf){_0x3c0601['push'](_0x3c0601['shift']());}}}(a225_0xf5a5,0x71427));function a225_0x4732(_0x1a0f1b,_0xfc19f1){_0x1a0f1b=_0x1a0f1b-0xef;const _0xf5a5bd=a225_0xf5a5();let _0x473299=_0xf5a5bd[_0x1a0f1b];return _0x473299;}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a225_0x172e43(0xef),a225_0x172e43(0xf9),a225_0x172e43(0xfa)];function a225_0xf5a5(){const _0x103242=['2540724fPPVAu','json','850LzaBrQ','34802FiEUjB','14dEYKYU','297196dOEaFn','588110UBDUaa','33knOMms','40TSpGGH','3890376Qsoqvv','12617506TEEzrr','pretty','compress','29025aOtuPG'];a225_0xf5a5=function(){return _0x103242;};return a225_0xf5a5();}
@@ -1 +1 @@
1
- function a227_0x39b2(_0x18b3d7,_0xcb9318){_0x18b3d7=_0x18b3d7-0x1e4;const _0x4a51b5=a227_0x4a51();let _0x39b273=_0x4a51b5[_0x18b3d7];return _0x39b273;}function a227_0x4a51(){const _0x2bd8c2=['300712HwpmPf','1077174jjSUuo','6817710yqplNK','7mYnoID','99jIWghi','493348YLmLJb','6psmagz','966652LslOlO','1379510dtGXPA','2032460vIvkiU','./src/api'];a227_0x4a51=function(){return _0x2bd8c2;};return a227_0x4a51();}const a227_0x16147f=a227_0x39b2;(function(_0x4310bf,_0x10e329){const _0x2d3a8f=a227_0x39b2,_0x212c50=_0x4310bf();while(!![]){try{const _0x4a540c=parseInt(_0x2d3a8f(0x1e9))/0x1+-parseInt(_0x2d3a8f(0x1e7))/0x2+-parseInt(_0x2d3a8f(0x1ee))/0x3+parseInt(_0x2d3a8f(0x1eb))/0x4+parseInt(_0x2d3a8f(0x1e4))/0x5*(parseInt(_0x2d3a8f(0x1e8))/0x6)+-parseInt(_0x2d3a8f(0x1e5))/0x7*(-parseInt(_0x2d3a8f(0x1ed))/0x8)+-parseInt(_0x2d3a8f(0x1e6))/0x9*(parseInt(_0x2d3a8f(0x1ea))/0xa);if(_0x4a540c===_0x10e329)break;else _0x212c50['push'](_0x212c50['shift']());}catch(_0x8ec3a7){_0x212c50['push'](_0x212c50['shift']());}}}(a227_0x4a51,0xb7c41));export const DEFAULT_API_DIR=a227_0x16147f(0x1ec);
1
+ function a226_0x1cd9(){const _0xfaa36b=['3gBtSZn','970186QuPcZs','9368776ynIjbt','2546148qrpivD','5382678QmWCRw','3476166nMEdlQ','./src/api','3042780iDzHEH','924142LaqUaa'];a226_0x1cd9=function(){return _0xfaa36b;};return a226_0x1cd9();}function a226_0x69b6(_0x342312,_0x1311b5){_0x342312=_0x342312-0x9d;const _0x1cd9ad=a226_0x1cd9();let _0x69b6bd=_0x1cd9ad[_0x342312];return _0x69b6bd;}const a226_0x3ffed7=a226_0x69b6;(function(_0x4812fc,_0x2facf6){const _0x56ea64=a226_0x69b6,_0x5830b4=_0x4812fc();while(!![]){try{const _0x50f121=parseInt(_0x56ea64(0xa0))/0x1+-parseInt(_0x56ea64(0xa2))/0x2+-parseInt(_0x56ea64(0xa1))/0x3*(parseInt(_0x56ea64(0xa4))/0x4)+parseInt(_0x56ea64(0x9f))/0x5+parseInt(_0x56ea64(0x9d))/0x6+parseInt(_0x56ea64(0xa5))/0x7+-parseInt(_0x56ea64(0xa3))/0x8;if(_0x50f121===_0x2facf6)break;else _0x5830b4['push'](_0x5830b4['shift']());}catch(_0xa3a2f7){_0x5830b4['push'](_0x5830b4['shift']());}}}(a226_0x1cd9,0x8f9fe));export const DEFAULT_API_DIR=a226_0x3ffed7(0x9e);
@@ -1 +1 @@
1
- (function(_0x34fecf,_0x399c13){const _0x5cf7e7=a228_0xe4a0,_0x49dc75=_0x34fecf();while(!![]){try{const _0x4c6484=parseInt(_0x5cf7e7(0x1ed))/0x1+parseInt(_0x5cf7e7(0x1f7))/0x2*(-parseInt(_0x5cf7e7(0x1f3))/0x3)+parseInt(_0x5cf7e7(0x1f9))/0x4+-parseInt(_0x5cf7e7(0x1f0))/0x5*(-parseInt(_0x5cf7e7(0x1f4))/0x6)+-parseInt(_0x5cf7e7(0x1ee))/0x7*(parseInt(_0x5cf7e7(0x1f2))/0x8)+-parseInt(_0x5cf7e7(0x1ef))/0x9+parseInt(_0x5cf7e7(0x1f6))/0xa*(parseInt(_0x5cf7e7(0x1f8))/0xb);if(_0x4c6484===_0x399c13)break;else _0x49dc75['push'](_0x49dc75['shift']());}catch(_0x512268){_0x49dc75['push'](_0x49dc75['shift']());}}}(a228_0x11fd,0x24172));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';function a228_0x11fd(){const _0x154f91=['29528NBYIzc','26079upRGeb','1261158DyBrrQ','string','280mHiAMP','28HJEsMQ','68398TGnZdX','312264yBfYaS','135924gyjUdG','196mVVckl','2028699NvhMIV','5BLvJZC','includes'];a228_0x11fd=function(){return _0x154f91;};return a228_0x11fd();}export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x4b3cc0){const _0x4a5e4c=a228_0xe4a0;return typeof _0x4b3cc0==='string'&&LOVRABET_REGION_VALUES[_0x4a5e4c(0x1f1)](_0x4b3cc0);}function a228_0xe4a0(_0x46b99f,_0x17c79f){_0x46b99f=_0x46b99f-0x1ed;const _0x11fd99=a228_0x11fd();let _0xe4a0e9=_0x11fd99[_0x46b99f];return _0xe4a0e9;}export function isEnabledLovrabetRegion(_0x441370){const _0x263112=a228_0xe4a0;return typeof _0x441370===_0x263112(0x1f5)&&ENABLED_LOVRABET_REGION_VALUES[_0x263112(0x1f1)](_0x441370);}export function normalizeLovrabetRegion(_0x4a4878){const _0x33bfb9=a228_0xe4a0;if(typeof _0x4a4878!==_0x33bfb9(0x1f5))return undefined;const _0x3cbf11=REGION_ALIASES[_0x4a4878]??_0x4a4878;return isLovrabetRegion(_0x3cbf11)?_0x3cbf11:undefined;}export function isInvalidLovrabetRegion(_0x805157){return _0x805157!==undefined&&_0x805157!==null&&_0x805157!==''&&normalizeLovrabetRegion(_0x805157)===undefined;}
1
+ function a227_0x4439(){const _0x1db415=['string','36968mdDAOp','1920GESvbz','5886rSEhyL','329002czjZyC','288190pPnyPl','includes','1314568ddWIhq','426054WbWqxG','44289wdEBPi','18zadgUC'];a227_0x4439=function(){return _0x1db415;};return a227_0x4439();}(function(_0x1e2767,_0x2e35d3){const _0x584387=a227_0x285b,_0x31d7d3=_0x1e2767();while(!![]){try{const _0xc47e55=-parseInt(_0x584387(0x192))/0x1+-parseInt(_0x584387(0x18f))/0x2*(parseInt(_0x584387(0x18d))/0x3)+parseInt(_0x584387(0x18a))/0x4+parseInt(_0x584387(0x188))/0x5+parseInt(_0x584387(0x18b))/0x6+-parseInt(_0x584387(0x18c))/0x7+parseInt(_0x584387(0x190))/0x8*(parseInt(_0x584387(0x191))/0x9);if(_0xc47e55===_0x2e35d3)break;else _0x31d7d3['push'](_0x31d7d3['shift']());}catch(_0x361a96){_0x31d7d3['push'](_0x31d7d3['shift']());}}}(a227_0x4439,0x29050));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x524ea){const _0x10cdb9=a227_0x285b;return typeof _0x524ea==='string'&&LOVRABET_REGION_VALUES[_0x10cdb9(0x189)](_0x524ea);}function a227_0x285b(_0x169af3,_0x1e31f5){_0x169af3=_0x169af3-0x188;const _0x443907=a227_0x4439();let _0x285ba7=_0x443907[_0x169af3];return _0x285ba7;}export function isEnabledLovrabetRegion(_0x5ef38c){const _0x1d0073=a227_0x285b;return typeof _0x5ef38c===_0x1d0073(0x18e)&&ENABLED_LOVRABET_REGION_VALUES[_0x1d0073(0x189)](_0x5ef38c);}export function normalizeLovrabetRegion(_0x3271d4){const _0x4d0d87=a227_0x285b;if(typeof _0x3271d4!==_0x4d0d87(0x18e))return undefined;const _0x16386d=REGION_ALIASES[_0x3271d4]??_0x3271d4;return isLovrabetRegion(_0x16386d)?_0x16386d:undefined;}export function isInvalidLovrabetRegion(_0x15981e){return _0x15981e!==undefined&&_0x15981e!==null&&_0x15981e!==''&&normalizeLovrabetRegion(_0x15981e)===undefined;}
@@ -1 +1 @@
1
- const a229_0x3b6002=a229_0x22bc;function a229_0x22bc(_0x39516b,_0x18ba93){_0x39516b=_0x39516b-0xff;const _0x3f5a26=a229_0x3f5a();let _0x22bc42=_0x3f5a26[_0x39516b];return _0x22bc42;}function a229_0x3f5a(){const _0x73623c=['671416gKNsVS','58686yNiXHi','30DPoamE','1769022cbHXzg','8OaqVca','118447HAGhjV','read','30DzZQFD','4TDvbpk','554995CgjCMa','write','52613HiIqpW','99888awzYSV','high-risk-write'];a229_0x3f5a=function(){return _0x73623c;};return a229_0x3f5a();}(function(_0x423e0c,_0x3d4f10){const _0x5639d5=a229_0x22bc,_0x408b43=_0x423e0c();while(!![]){try{const _0x3cd8db=-parseInt(_0x5639d5(0x107))/0x1+-parseInt(_0x5639d5(0x103))/0x2*(-parseInt(_0x5639d5(0x10a))/0x3)+parseInt(_0x5639d5(0x109))/0x4+parseInt(_0x5639d5(0x104))/0x5+parseInt(_0x5639d5(0x102))/0x6*(parseInt(_0x5639d5(0x100))/0x7)+-parseInt(_0x5639d5(0xff))/0x8*(parseInt(_0x5639d5(0x10c))/0x9)+parseInt(_0x5639d5(0x10b))/0xa*(parseInt(_0x5639d5(0x106))/0xb);if(_0x3cd8db===_0x3d4f10)break;else _0x408b43['push'](_0x408b43['shift']());}catch(_0x100f33){_0x408b43['push'](_0x408b43['shift']());}}}(a229_0x3f5a,0x1d6a5));export const RISK_LEVEL_VALUES=[a229_0x3b6002(0x101),a229_0x3b6002(0x105),a229_0x3b6002(0x108)];
1
+ const a228_0x24c30d=a228_0x10a3;function a228_0x10a3(_0x2c84dd,_0x5b380f){_0x2c84dd=_0x2c84dd-0x193;const _0xb1702=a228_0xb170();let _0x10a315=_0xb1702[_0x2c84dd];return _0x10a315;}(function(_0x169e62,_0x58280e){const _0x519959=a228_0x10a3,_0x403901=_0x169e62();while(!![]){try{const _0x2d5def=parseInt(_0x519959(0x196))/0x1+-parseInt(_0x519959(0x19d))/0x2*(-parseInt(_0x519959(0x19e))/0x3)+parseInt(_0x519959(0x197))/0x4*(-parseInt(_0x519959(0x19b))/0x5)+-parseInt(_0x519959(0x198))/0x6+parseInt(_0x519959(0x194))/0x7*(parseInt(_0x519959(0x19c))/0x8)+parseInt(_0x519959(0x19f))/0x9+-parseInt(_0x519959(0x193))/0xa;if(_0x2d5def===_0x58280e)break;else _0x403901['push'](_0x403901['shift']());}catch(_0xe8990d){_0x403901['push'](_0x403901['shift']());}}}(a228_0xb170,0x96293));export const RISK_LEVEL_VALUES=[a228_0x24c30d(0x199),a228_0x24c30d(0x19a),a228_0x24c30d(0x195)];function a228_0xb170(){const _0xeb12e5=['5503590zOeFGy','5928060QvgIIA','1407IVWXPf','high-risk-write','1108243KxyDBJ','4300eDNcLK','6952446gYjrwS','read','write','485QbwGXO','1952iFbuJJ','351042gGZOTq','12rXwgbX'];a228_0xb170=function(){return _0xeb12e5;};return a228_0xb170();}
@@ -1 +1 @@
1
- (function(_0x279695,_0x102241){const _0x49ce84=a230_0x6faa,_0x6e803b=_0x279695();while(!![]){try{const _0x2f629f=parseInt(_0x49ce84(0x134))/0x1+-parseInt(_0x49ce84(0x13b))/0x2+-parseInt(_0x49ce84(0x13a))/0x3*(-parseInt(_0x49ce84(0x13e))/0x4)+parseInt(_0x49ce84(0x133))/0x5+parseInt(_0x49ce84(0x137))/0x6*(parseInt(_0x49ce84(0x139))/0x7)+parseInt(_0x49ce84(0x140))/0x8*(-parseInt(_0x49ce84(0x132))/0x9)+-parseInt(_0x49ce84(0x13d))/0xa;if(_0x2f629f===_0x102241)break;else _0x6e803b['push'](_0x6e803b['shift']());}catch(_0x11f541){_0x6e803b['push'](_0x6e803b['shift']());}}}(a230_0x4aa2,0x3d449));import{OFFICIAL_ROUTING_PROFILES as a230_0x458f2c,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';export const OFFICIAL_ROUTING_PROFILES=a230_0x458f2c;export{ROUTING_CATALOG_DIGEST};function a230_0x6faa(_0x213fde,_0x245565){_0x213fde=_0x213fde-0x132;const _0x4aa274=a230_0x4aa2();let _0x6faa0b=_0x4aa274[_0x213fde];return _0x6faa0b;}function a230_0x4aa2(){const _0x13d8ac=['4AZAiyI','Official\x20routing\x20for\x20region\x20\x22','2346024OHjAod','9UQnIFe','1644700CoqiGx','471052ItyTaD','libraries','lovrabet','12sgrNbK','cdn','1355018lAFcvF','1450905uuAUil','442478KywePd','\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.','9053300kpzqth'];a230_0x4aa2=function(){return _0x13d8ac;};return a230_0x4aa2();}export function getOfficialRoutingProfile(_0x46200e){return OFFICIAL_ROUTING_PROFILES[_0x46200e];}export function getOfficialRoutingCdn(_0x5f1526){const _0x4576b2=a230_0x6faa,_0x196e3c=getOfficialRoutingProfile(_0x5f1526)[_0x4576b2(0x138)];if(!_0x196e3c[_0x4576b2(0x136)])throw new Error(_0x4576b2(0x13f)+_0x5f1526+_0x4576b2(0x13c));return{'libraries':_0x196e3c[_0x4576b2(0x135)],'lovrabet':_0x196e3c[_0x4576b2(0x136)]};}
1
+ (function(_0x5f41ab,_0x3d4ab4){const _0x3de477=a229_0x88e4,_0x178df8=_0x5f41ab();while(!![]){try{const _0x34adf6=parseInt(_0x3de477(0x192))/0x1*(-parseInt(_0x3de477(0x18b))/0x2)+-parseInt(_0x3de477(0x185))/0x3+-parseInt(_0x3de477(0x18a))/0x4*(parseInt(_0x3de477(0x191))/0x5)+-parseInt(_0x3de477(0x193))/0x6*(parseInt(_0x3de477(0x187))/0x7)+-parseInt(_0x3de477(0x189))/0x8+parseInt(_0x3de477(0x18c))/0x9*(-parseInt(_0x3de477(0x18d))/0xa)+parseInt(_0x3de477(0x190))/0xb;if(_0x34adf6===_0x3d4ab4)break;else _0x178df8['push'](_0x178df8['shift']());}catch(_0x3e8a98){_0x178df8['push'](_0x178df8['shift']());}}}(a229_0x14c4,0x5e606));import{OFFICIAL_ROUTING_PROFILES as a229_0xcccea6,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';function a229_0x14c4(){const _0x62fccb=['lovrabet','libraries','24854676BctvZI','5JlhNZc','399097qhTGDQ','204IDyLln','1423296YsJzoH','\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.','3738LPrrXd','cdn','3482728hqEtpn','1458420nnCnsf','2jiODar','9IqjdFe','1813190nrruaU'];a229_0x14c4=function(){return _0x62fccb;};return a229_0x14c4();}export const OFFICIAL_ROUTING_PROFILES=a229_0xcccea6;function a229_0x88e4(_0x59353c,_0x17ba4f){_0x59353c=_0x59353c-0x185;const _0x14c461=a229_0x14c4();let _0x88e464=_0x14c461[_0x59353c];return _0x88e464;}export{ROUTING_CATALOG_DIGEST};export function getOfficialRoutingProfile(_0x3a511d){return OFFICIAL_ROUTING_PROFILES[_0x3a511d];}export function getOfficialRoutingCdn(_0x3c7954){const _0x192351=a229_0x88e4,_0x488ef5=getOfficialRoutingProfile(_0x3c7954)[_0x192351(0x188)];if(!_0x488ef5[_0x192351(0x18e)])throw new Error('Official\x20routing\x20for\x20region\x20\x22'+_0x3c7954+_0x192351(0x186));return{'libraries':_0x488ef5[_0x192351(0x18f)],'lovrabet':_0x488ef5[_0x192351(0x18e)]};}
@@ -1,6 +1,5 @@
1
1
  import { type OutputFormat, type Risk } from "../framework/types.js";
2
2
  import type { RawConfigLayers } from "../context/config-loader.js";
3
- import type { DeploymentSyncProfile } from "../config/deployment-sync.js";
4
3
  export interface AppProfile {
5
4
  appcode: string;
6
5
  env?: "production" | "daily";
@@ -11,7 +10,6 @@ export interface AppProfile {
11
10
  pageSize?: number;
12
11
  riskLevel?: Risk;
13
12
  locale?: string;
14
- deploymentSync?: DeploymentSyncProfile;
15
13
  }
16
14
  export interface ResolvedAppConfig {
17
15
  appCode: string | undefined;
@@ -1 +1 @@
1
- (function(_0x57c8f8,_0x3e3469){const _0x1993f5=a231_0x484f,_0x38bc09=_0x57c8f8();while(!![]){try{const _0x573a90=parseInt(_0x1993f5(0x1e3))/0x1*(-parseInt(_0x1993f5(0x1e7))/0x2)+parseInt(_0x1993f5(0x1ef))/0x3+-parseInt(_0x1993f5(0x1e0))/0x4*(-parseInt(_0x1993f5(0x1e1))/0x5)+-parseInt(_0x1993f5(0x1ea))/0x6*(parseInt(_0x1993f5(0x1ed))/0x7)+-parseInt(_0x1993f5(0x1f8))/0x8*(-parseInt(_0x1993f5(0x1d1))/0x9)+parseInt(_0x1993f5(0x1e4))/0xa+-parseInt(_0x1993f5(0x1e8))/0xb*(parseInt(_0x1993f5(0x1dc))/0xc);if(_0x573a90===_0x3e3469)break;else _0x38bc09['push'](_0x38bc09['shift']());}catch(_0x544cef){_0x38bc09['push'](_0x38bc09['shift']());}}}(a231_0x4e15,0x48097));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function a231_0x4e15(){const _0x3d0940=['entries','projectPath','length','accessKey','cookie','object','true','apps','riskLevel','48YukehT','env','APP','RISK_LEVEL','4924fTuTsH','445WlSHtX','projectConfig','20008YtWpIv','1647430CgiAqc','keys','appcode','6wgUWad','1322882HmytEM','format','3190560gWZiJz','apiDir','globalConfig','7OFBLrs','COOKIE','1672338iMrjxW','write','find','PAGE_SIZE','daily','VERBOSE','string','read','production','8lWtzDv','FORMAT','ENV','locale','pageSize','trim','4825323UrradY','app'];a231_0x4e15=function(){return _0x3d0940;};return a231_0x4e15();}function a231_0x484f(_0x370ca2,_0x5b368b){_0x370ca2=_0x370ca2-0x1d0;const _0x4e15da=a231_0x4e15();let _0x484fef=_0x4e15da[_0x370ca2];return _0x484fef;}function stringConfigValue(_0x231902){const _0x25037c=a231_0x484f;return typeof _0x231902===_0x25037c(0x1f5)&&_0x231902[_0x25037c(0x1d0)]()?_0x231902['trim']():undefined;}function appProfiles(_0x2a2c7e){const _0x3fafc4=a231_0x484f;return _0x2a2c7e[_0x3fafc4(0x1da)]&&typeof _0x2a2c7e[_0x3fafc4(0x1da)]===_0x3fafc4(0x1d8)?_0x2a2c7e['apps']:{};}function resolveDefaultAppName(_0x1a85e8){const _0x14178f=a231_0x484f,_0x219194=stringConfigValue(_0x1a85e8['defaultApp']);if(_0x219194)return _0x219194;const _0x262c7d=Object[_0x14178f(0x1e5)](appProfiles(_0x1a85e8));return _0x262c7d[_0x14178f(0x1d5)]===0x1?_0x262c7d[0x0]:undefined;}function resolveTopLevelAppCode(_0x2896f2){const _0x54f09e=a231_0x484f;return stringConfigValue(_0x2896f2[_0x54f09e(0x1e6)])||stringConfigValue(_0x2896f2[_0x54f09e(0x1d2)]);}function normalizeRiskCeiling(_0x2e002d){const _0x379da1=a231_0x484f;if(_0x2e002d===undefined||_0x2e002d===null)return undefined;if(_0x2e002d==='read'||_0x2e002d===_0x379da1(0x1f0)||_0x2e002d==='high-risk-write')return _0x2e002d;return _0x379da1(0x1f6);}function resolveRiskCeiling(..._0x5959b1){const _0x5f2871=a231_0x484f;let _0x6707f3;for(const _0x5f0e25 of _0x5959b1){const _0x2cb7=normalizeRiskCeiling(_0x5f0e25);_0x2cb7&&(!_0x6707f3||riskLevelOrder(_0x2cb7)<riskLevelOrder(_0x6707f3))&&(_0x6707f3=_0x2cb7);}return _0x6707f3??DEFAULT_CONFIG_VALUES[_0x5f2871(0x1db)];}export function resolveAppConfig({raw:_0x10a16d,flags:_0x3a9bf0,layers:_0x55a7dd,readEnv:_0x31f854}){const _0x18d1bb=a231_0x484f,_0x4c4efe=_0x55a7dd?.[_0x18d1bb(0x1e2)]??{},_0x473857=_0x55a7dd?.[_0x18d1bb(0x1ec)]??{},_0x154832=!!_0x55a7dd?.[_0x18d1bb(0x1d4)]||Object['keys'](_0x4c4efe)[_0x18d1bb(0x1d5)]>0x0,_0x15bb57=!_0x154832,_0x62af98=_0x154832?resolveDefaultAppName(_0x4c4efe):undefined,_0xd4cf95=_0x15bb57?resolveDefaultAppName(_0x473857):undefined,_0x1783f8=stringConfigValue(_0x3a9bf0['app']),_0x5b926d=_0x31f854(_0x18d1bb(0x1de)),_0x5dbeaa={};if(_0x10a16d[_0x18d1bb(0x1da)]&&typeof _0x10a16d[_0x18d1bb(0x1da)]==='object')for(const [_0x11818b,_0x3bc191]of Object['entries'](_0x10a16d[_0x18d1bb(0x1da)])){_0x3bc191&&typeof _0x3bc191===_0x18d1bb(0x1d8)&&_0x3bc191[_0x18d1bb(0x1e6)]&&(_0x5dbeaa[_0x11818b]=_0x3bc191);}const _0x311a7b=_0x62af98||_0xd4cf95||resolveDefaultAppName(_0x10a16d),_0x135079=Object[_0x18d1bb(0x1e5)](_0x5dbeaa)['length']>0x0,_0x1c4b1f=_0x1783f8||_0x62af98||_0x5b926d||_0xd4cf95||_0x311a7b||undefined,_0x20f325=stringConfigValue(_0x3a9bf0[_0x18d1bb(0x1e6)]),_0x3f8561=_0x20f325?Object[_0x18d1bb(0x1d3)](_0x5dbeaa)[_0x18d1bb(0x1f1)](([,_0x9044b7])=>_0x9044b7?.['appcode']===_0x20f325):undefined,_0x2b3b13=_0x3f8561?.[0x0],_0x3868bf=_0x3f8561?.[0x1],_0x56c0f2=_0x20f325?_0x2b3b13:_0x1c4b1f;let _0x4b4f33=_0x56c0f2&&_0x5dbeaa[_0x56c0f2]?_0x5dbeaa[_0x56c0f2]:undefined;_0x20f325&&_0x3868bf&&(_0x4b4f33=_0x3868bf);const _0x2fe7c2=_0x20f325?_0x3868bf??_0x4b4f33:_0x4b4f33,_0xae73bb=!_0x1783f8&&!_0x62af98&&_0x5b926d&&_0x56c0f2===_0x5b926d,_0x246e52=_0x1783f8||(_0xae73bb?_0x5b926d:undefined)||(_0x20f325?_0x2b3b13:undefined),_0x2bdbdd=_0x2fe7c2?.[_0x18d1bb(0x1e6)],_0x1ce0ee=_0x154832?resolveTopLevelAppCode(_0x4c4efe):undefined,_0x33684d=_0x15bb57?resolveTopLevelAppCode(_0x473857):undefined,_0x33291d=_0x1783f8||_0x62af98?_0x2bdbdd:undefined,_0x14e043=!_0x1783f8&&!_0x62af98?_0x2bdbdd:undefined,_0x6e8770=_0x20f325||_0x33291d||_0x1ce0ee||_0x14e043||_0x33684d||undefined,_0x463278=_0x154832?stringConfigValue(_0x4c4efe[_0x18d1bb(0x1dd)]):undefined,_0x5dceb0=_0x15bb57?stringConfigValue(_0x473857[_0x18d1bb(0x1dd)]):undefined,_0x31e28f=_0x3a9bf0['env']||_0x2fe7c2?.[_0x18d1bb(0x1dd)]||_0x463278||_0x31f854(_0x18d1bb(0x1fa))||_0x5dceb0||_0x10a16d[_0x18d1bb(0x1dd)]||DEFAULT_CONFIG_VALUES[_0x18d1bb(0x1dd)],_0x59fd2a=_0x2fe7c2?.['locale']||_0x10a16d[_0x18d1bb(0x1fb)]||DEFAULT_CONFIG_VALUES['locale'],_0xae5673=_0x31f854(_0x18d1bb(0x1ee))||_0x2fe7c2?.[_0x18d1bb(0x1d7)]||_0x10a16d[_0x18d1bb(0x1d7)]||undefined,_0x1fe984=_0x31f854('ACCESS_KEY')||_0x2fe7c2?.[_0x18d1bb(0x1d6)]||_0x10a16d[_0x18d1bb(0x1d6)]||undefined,_0x17ba05=_0x3a9bf0[_0x18d1bb(0x1e9)]||_0x31f854(_0x18d1bb(0x1f9))||_0x2fe7c2?.['format']||_0x10a16d[_0x18d1bb(0x1e9)],_0x3fd3b3=normalizeLegacyOutputFormat(_0x17ba05),_0x4f0406=_0x31f854(_0x18d1bb(0x1f2))||_0x2fe7c2?.[_0x18d1bb(0x1fc)]||_0x10a16d[_0x18d1bb(0x1fc)],_0x59de2c=_0x4f0406?Number(_0x4f0406)||undefined:undefined,_0x30c16b=_0x55a7dd?[_0x55a7dd[_0x18d1bb(0x1ec)]['riskLevel'],_0x55a7dd[_0x18d1bb(0x1e2)]['riskLevel']]:[_0x10a16d[_0x18d1bb(0x1db)]],_0x29ec78=resolveRiskCeiling(..._0x30c16b,_0x2fe7c2?.['riskLevel']),_0x20fcb7=resolveRiskCeiling(_0x29ec78,_0x31f854(_0x18d1bb(0x1df))),_0x301bbe=_0x31f854(_0x18d1bb(0x1f4)),_0x1243c8=_0x301bbe==='1'||_0x301bbe===_0x18d1bb(0x1d9),_0x5e26bb=_0x2fe7c2?.[_0x18d1bb(0x1eb)]||_0x10a16d['apiDir']||DEFAULT_CONFIG_VALUES[_0x18d1bb(0x1eb)],_0x240f7e=isDaily(normalizeEnv(String(_0x31e28f)))?_0x18d1bb(0x1f3):_0x18d1bb(0x1f7);return{'appCode':typeof _0x6e8770===_0x18d1bb(0x1f5)&&_0x6e8770[_0x18d1bb(0x1d0)]()?_0x6e8770[_0x18d1bb(0x1d0)]():undefined,'env':_0x240f7e,'locale':_0x59fd2a,'cookie':_0xae5673,'accessKey':_0x1fe984,'format':_0x3fd3b3,'pageSize':_0x59de2c,'riskLevel':_0x20fcb7,'verbose':_0x1243c8,'apiDir':_0x5e26bb,'apps':_0x5dbeaa,'defaultApp':_0x311a7b,'currentApp':_0x135079?_0x56c0f2:undefined,'explicitAppName':_0x246e52};}
1
+ (function(_0x16f869,_0x51d927){const _0x31680a=a230_0x2e63,_0x4f5540=_0x16f869();while(!![]){try{const _0x200daa=-parseInt(_0x31680a(0xbb))/0x1*(parseInt(_0x31680a(0xa2))/0x2)+parseInt(_0x31680a(0xbc))/0x3*(parseInt(_0x31680a(0xa1))/0x4)+-parseInt(_0x31680a(0xa7))/0x5*(-parseInt(_0x31680a(0xa6))/0x6)+-parseInt(_0x31680a(0xb3))/0x7*(parseInt(_0x31680a(0xa0))/0x8)+-parseInt(_0x31680a(0xb8))/0x9*(parseInt(_0x31680a(0xa8))/0xa)+parseInt(_0x31680a(0xa4))/0xb*(parseInt(_0x31680a(0xa3))/0xc)+-parseInt(_0x31680a(0xba))/0xd;if(_0x200daa===_0x51d927)break;else _0x4f5540['push'](_0x4f5540['shift']());}catch(_0x1dd01c){_0x4f5540['push'](_0x4f5540['shift']());}}}(a230_0x528f,0x8e612));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function a230_0x528f(){const _0x3bb3b0=['apps','54xhjipJ','564540UIMsxS','543960hdlOFy','locale','riskLevel','app','object','true','appcode','string','globalConfig','write','projectPath','1360135PnEitQ','ACCESS_KEY','COOKIE','ENV','cookie','153gMhPqb','VERBOSE','1187212vhWdrS','5gJraet','846ciBBCE','projectConfig','length','production','apiDir','keys','APP','defaultApp','pageSize','read','env','format','daily','RISK_LEVEL','PAGE_SIZE','trim','high-risk-write','8Hwfidu','11956qMvgYG','401386NlVXYj','12ifDTut','10317362nDumjp'];a230_0x528f=function(){return _0x3bb3b0;};return a230_0x528f();}function stringConfigValue(_0x168263){return typeof _0x168263==='string'&&_0x168263['trim']()?_0x168263['trim']():undefined;}function appProfiles(_0x3d5530){const _0x468c04=a230_0x2e63;return _0x3d5530[_0x468c04(0xa5)]&&typeof _0x3d5530[_0x468c04(0xa5)]==='object'?_0x3d5530[_0x468c04(0xa5)]:{};}function resolveDefaultAppName(_0x56801a){const _0xe32b1=a230_0x2e63,_0xab41ee=stringConfigValue(_0x56801a[_0xe32b1(0x96)]);if(_0xab41ee)return _0xab41ee;const _0x3c945a=Object[_0xe32b1(0x94)](appProfiles(_0x56801a));return _0x3c945a[_0xe32b1(0xbe)]===0x1?_0x3c945a[0x0]:undefined;}function a230_0x2e63(_0x4fc7dd,_0x4c6b8a){_0x4fc7dd=_0x4fc7dd-0x92;const _0x528f48=a230_0x528f();let _0x2e637a=_0x528f48[_0x4fc7dd];return _0x2e637a;}function resolveTopLevelAppCode(_0xb0b5d3){return stringConfigValue(_0xb0b5d3['appcode'])||stringConfigValue(_0xb0b5d3['app']);}function normalizeRiskCeiling(_0x14df3d){const _0x285ae8=a230_0x2e63;if(_0x14df3d===undefined||_0x14df3d===null)return undefined;if(_0x14df3d===_0x285ae8(0x98)||_0x14df3d===_0x285ae8(0xb1)||_0x14df3d===_0x285ae8(0x9f))return _0x14df3d;return'read';}function resolveRiskCeiling(..._0x43ffa7){const _0x5be186=a230_0x2e63;let _0x48ea87;for(const _0x136d3e of _0x43ffa7){const _0x31d0e4=normalizeRiskCeiling(_0x136d3e);_0x31d0e4&&(!_0x48ea87||riskLevelOrder(_0x31d0e4)<riskLevelOrder(_0x48ea87))&&(_0x48ea87=_0x31d0e4);}return _0x48ea87??DEFAULT_CONFIG_VALUES[_0x5be186(0xaa)];}export function resolveAppConfig({raw:_0x9ad949,flags:_0x211a99,layers:_0x32629d,readEnv:_0x53fde8}){const _0xf058ba=a230_0x2e63,_0x569a52=_0x32629d?.[_0xf058ba(0xbd)]??{},_0x468c5b=_0x32629d?.[_0xf058ba(0xb0)]??{},_0x226b75=!!_0x32629d?.[_0xf058ba(0xb2)]||Object[_0xf058ba(0x94)](_0x569a52)[_0xf058ba(0xbe)]>0x0,_0x3f3eba=!_0x226b75,_0x33bc7f=_0x226b75?resolveDefaultAppName(_0x569a52):undefined,_0x5f4f9e=_0x3f3eba?resolveDefaultAppName(_0x468c5b):undefined,_0x227385=stringConfigValue(_0x211a99[_0xf058ba(0xab)]),_0x21aa80=_0x53fde8(_0xf058ba(0x95)),_0x42df6a={};if(_0x9ad949[_0xf058ba(0xa5)]&&typeof _0x9ad949[_0xf058ba(0xa5)]==='object')for(const [_0x1e9e87,_0x4126a8]of Object['entries'](_0x9ad949[_0xf058ba(0xa5)])){_0x4126a8&&typeof _0x4126a8===_0xf058ba(0xac)&&_0x4126a8[_0xf058ba(0xae)]&&(_0x42df6a[_0x1e9e87]=_0x4126a8);}const _0x376b4c=_0x33bc7f||_0x5f4f9e||resolveDefaultAppName(_0x9ad949),_0x41d0a0=Object[_0xf058ba(0x94)](_0x42df6a)[_0xf058ba(0xbe)]>0x0,_0x17965e=_0x227385||_0x33bc7f||_0x21aa80||_0x5f4f9e||_0x376b4c||undefined,_0x4f4af3=stringConfigValue(_0x211a99['appcode']),_0x1a93c5=_0x4f4af3?Object['entries'](_0x42df6a)['find'](([,_0x359ac7])=>_0x359ac7?.[_0xf058ba(0xae)]===_0x4f4af3):undefined,_0x5687f0=_0x1a93c5?.[0x0],_0x1c65e7=_0x1a93c5?.[0x1],_0x238973=_0x4f4af3?_0x5687f0:_0x17965e;let _0x54ae1e=_0x238973&&_0x42df6a[_0x238973]?_0x42df6a[_0x238973]:undefined;_0x4f4af3&&_0x1c65e7&&(_0x54ae1e=_0x1c65e7);const _0x78dce3=_0x4f4af3?_0x1c65e7??_0x54ae1e:_0x54ae1e,_0x19acae=!_0x227385&&!_0x33bc7f&&_0x21aa80&&_0x238973===_0x21aa80,_0xfaf01=_0x227385||(_0x19acae?_0x21aa80:undefined)||(_0x4f4af3?_0x5687f0:undefined),_0x454310=_0x78dce3?.[_0xf058ba(0xae)],_0x43500a=_0x226b75?resolveTopLevelAppCode(_0x569a52):undefined,_0xa817b6=_0x3f3eba?resolveTopLevelAppCode(_0x468c5b):undefined,_0x2cf832=_0x227385||_0x33bc7f?_0x454310:undefined,_0x4eb968=!_0x227385&&!_0x33bc7f?_0x454310:undefined,_0x237ee6=_0x4f4af3||_0x2cf832||_0x43500a||_0x4eb968||_0xa817b6||undefined,_0x3dcb06=_0x226b75?stringConfigValue(_0x569a52['env']):undefined,_0x4edc71=_0x3f3eba?stringConfigValue(_0x468c5b[_0xf058ba(0x99)]):undefined,_0x6857f5=_0x211a99['env']||_0x78dce3?.[_0xf058ba(0x99)]||_0x3dcb06||_0x53fde8(_0xf058ba(0xb6))||_0x4edc71||_0x9ad949[_0xf058ba(0x99)]||DEFAULT_CONFIG_VALUES[_0xf058ba(0x99)],_0x1c2eee=_0x78dce3?.[_0xf058ba(0xa9)]||_0x9ad949[_0xf058ba(0xa9)]||DEFAULT_CONFIG_VALUES[_0xf058ba(0xa9)],_0x2b2b1a=_0x53fde8(_0xf058ba(0xb5))||_0x78dce3?.[_0xf058ba(0xb7)]||_0x9ad949['cookie']||undefined,_0x41b73e=_0x53fde8(_0xf058ba(0xb4))||_0x78dce3?.['accessKey']||_0x9ad949['accessKey']||undefined,_0x1a9023=_0x211a99[_0xf058ba(0x9a)]||_0x53fde8('FORMAT')||_0x78dce3?.[_0xf058ba(0x9a)]||_0x9ad949[_0xf058ba(0x9a)],_0x1eb233=normalizeLegacyOutputFormat(_0x1a9023),_0x11171a=_0x53fde8(_0xf058ba(0x9d))||_0x78dce3?.[_0xf058ba(0x97)]||_0x9ad949[_0xf058ba(0x97)],_0x4b7380=_0x11171a?Number(_0x11171a)||undefined:undefined,_0x12d6ca=_0x32629d?[_0x32629d['globalConfig'][_0xf058ba(0xaa)],_0x32629d[_0xf058ba(0xbd)][_0xf058ba(0xaa)]]:[_0x9ad949[_0xf058ba(0xaa)]],_0x631b59=resolveRiskCeiling(..._0x12d6ca,_0x78dce3?.[_0xf058ba(0xaa)]),_0x3b3eeb=resolveRiskCeiling(_0x631b59,_0x53fde8(_0xf058ba(0x9c))),_0x6607bd=_0x53fde8(_0xf058ba(0xb9)),_0x445046=_0x6607bd==='1'||_0x6607bd===_0xf058ba(0xad),_0x32b6ca=_0x78dce3?.[_0xf058ba(0x93)]||_0x9ad949[_0xf058ba(0x93)]||DEFAULT_CONFIG_VALUES[_0xf058ba(0x93)],_0x28f576=isDaily(normalizeEnv(String(_0x6857f5)))?_0xf058ba(0x9b):_0xf058ba(0x92);return{'appCode':typeof _0x237ee6===_0xf058ba(0xaf)&&_0x237ee6[_0xf058ba(0x9e)]()?_0x237ee6[_0xf058ba(0x9e)]():undefined,'env':_0x28f576,'locale':_0x1c2eee,'cookie':_0x2b2b1a,'accessKey':_0x41b73e,'format':_0x1eb233,'pageSize':_0x4b7380,'riskLevel':_0x3b3eeb,'verbose':_0x445046,'apiDir':_0x32b6ca,'apps':_0x42df6a,'defaultApp':_0x376b4c,'currentApp':_0x41d0a0?_0x238973:undefined,'explicitAppName':_0xfaf01};}
@@ -1 +1 @@
1
- (function(_0x1e64d0,_0x538946){const _0x73df59=a232_0x7980,_0xa7c29d=_0x1e64d0();while(!![]){try{const _0x1e46d3=-parseInt(_0x73df59(0xa3))/0x1*(parseInt(_0x73df59(0x9d))/0x2)+parseInt(_0x73df59(0x9e))/0x3+parseInt(_0x73df59(0xa6))/0x4*(parseInt(_0x73df59(0xa5))/0x5)+-parseInt(_0x73df59(0xa0))/0x6*(-parseInt(_0x73df59(0xa2))/0x7)+parseInt(_0x73df59(0xa1))/0x8*(-parseInt(_0x73df59(0x9c))/0x9)+parseInt(_0x73df59(0xa7))/0xa+-parseInt(_0x73df59(0x9f))/0xb;if(_0x1e46d3===_0x538946)break;else _0xa7c29d['push'](_0xa7c29d['shift']());}catch(_0x44b4f8){_0xa7c29d['push'](_0xa7c29d['shift']());}}}(a232_0x51a6,0x904d2));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a232_0x7980(_0x3dcc9a,_0x488c63){_0x3dcc9a=_0x3dcc9a-0x9c;const _0x51a6ad=a232_0x51a6();let _0x7980cc=_0x51a6ad[_0x3dcc9a];return _0x7980cc;}export async function buildAuth(_0xa53cd4){const _0x52f509=a232_0x7980,{getCookie:_0x501943}=await import(_0x52f509(0xa4)),_0x267d59=_0xa53cd4['cookie']||_0x501943(),_0xfa7831=_0x267d59?await getIsSessionValid():![];return{'cookie':_0x267d59,'isLoggedIn':_0xfa7831,async 'getOrLogin'(){if(_0x267d59&&_0xfa7831)return _0x267d59;throw CliErrors['authRequired']();}};}function a232_0x51a6(){const _0x175576=['8757463tkzbnx','6VEtJCx','6021272mBReKz','867930mxCfUK','86642CRZcdd','../auth/get-cookie.js','65qRLazZ','286184clOmLu','4826430UMFvlD','9SCiTBF','12yKHvGc','3368913PtgDvO'];a232_0x51a6=function(){return _0x175576;};return a232_0x51a6();}
1
+ function a231_0x5b5b(_0x4451b0,_0x507117){_0x4451b0=_0x4451b0-0x6c;const _0x2dcfdd=a231_0x2dcf();let _0x5b5bf7=_0x2dcfdd[_0x4451b0];return _0x5b5bf7;}(function(_0x40b42c,_0xe3c22f){const _0x3eed90=a231_0x5b5b,_0x52df1c=_0x40b42c();while(!![]){try{const _0x5593d8=parseInt(_0x3eed90(0x78))/0x1*(-parseInt(_0x3eed90(0x74))/0x2)+parseInt(_0x3eed90(0x70))/0x3*(-parseInt(_0x3eed90(0x6c))/0x4)+parseInt(_0x3eed90(0x73))/0x5*(-parseInt(_0x3eed90(0x6d))/0x6)+-parseInt(_0x3eed90(0x7a))/0x7*(-parseInt(_0x3eed90(0x76))/0x8)+parseInt(_0x3eed90(0x75))/0x9*(-parseInt(_0x3eed90(0x79))/0xa)+-parseInt(_0x3eed90(0x72))/0xb+parseInt(_0x3eed90(0x77))/0xc*(parseInt(_0x3eed90(0x71))/0xd);if(_0x5593d8===_0xe3c22f)break;else _0x52df1c['push'](_0x52df1c['shift']());}catch(_0x2472cf){_0x52df1c['push'](_0x52df1c['shift']());}}}(a231_0x2dcf,0x81a7f));function a231_0x2dcf(){const _0x569fd1=['50991vyjFQj','5237843FwmacJ','3435861HuSGbh','3527360xNtQGg','1021624pesxDG','9tmTXSV','96jZLtSR','84CsirpS','2Vskxro','304890WKcoyb','10843ggtFZD','56uvcCCP','6uKLxhw','authRequired','cookie'];a231_0x2dcf=function(){return _0x569fd1;};return a231_0x2dcf();}import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x1f5841){const _0xfe16f6=a231_0x5b5b,{getCookie:_0x219acb}=await import('../auth/get-cookie.js'),_0x28b5b2=_0x1f5841[_0xfe16f6(0x6f)]||_0x219acb(),_0x11e922=_0x28b5b2?await getIsSessionValid():![];return{'cookie':_0x28b5b2,'isLoggedIn':_0x11e922,async 'getOrLogin'(){const _0x22935b=_0xfe16f6;if(_0x28b5b2&&_0x11e922)return _0x28b5b2;throw CliErrors[_0x22935b(0x6e)]();}};}
@@ -1 +1 @@
1
- const a233_0x1cb7ce=a233_0x57b4;(function(_0x1d95d6,_0x2a5f95){const _0x732177=a233_0x57b4,_0x495b8a=_0x1d95d6();while(!![]){try{const _0x309227=-parseInt(_0x732177(0x1c1))/0x1*(parseInt(_0x732177(0x1cf))/0x2)+parseInt(_0x732177(0x1e1))/0x3*(parseInt(_0x732177(0x1c7))/0x4)+-parseInt(_0x732177(0x1db))/0x5*(-parseInt(_0x732177(0x1f3))/0x6)+parseInt(_0x732177(0x1de))/0x7*(-parseInt(_0x732177(0x1cc))/0x8)+-parseInt(_0x732177(0x1d5))/0x9+parseInt(_0x732177(0x1eb))/0xa+-parseInt(_0x732177(0x1d0))/0xb*(-parseInt(_0x732177(0x1e6))/0xc);if(_0x309227===_0x2a5f95)break;else _0x495b8a['push'](_0x495b8a['shift']());}catch(_0x194ac9){_0x495b8a['push'](_0x495b8a['shift']());}}}(a233_0x1856,0x3a2ed));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a233_0x1cb7ce(0x1e9);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x20dfac){for(const _0x32ed39 of CONFIG_NAMES){const _0x276063=resolve(_0x20dfac,_0x32ed39);if(existsSync(_0x276063))return _0x276063;}return undefined;}export function findProjectRootDirectory(_0x27c1ff=process[a233_0x1cb7ce(0x1e5)]()){let _0xf7efe4=resolve(_0x27c1ff);const {root:_0x2d21c3}=parse(_0xf7efe4),_0x2ba2f3=homedir();while(!![]){if(resolveConfigPath(_0xf7efe4)){if(_0xf7efe4===_0x2ba2f3)break;return _0xf7efe4;}if(_0xf7efe4===_0x2d21c3||_0xf7efe4===_0x2ba2f3)break;const _0x48cad3=dirname(_0xf7efe4);if(_0x48cad3===_0xf7efe4)break;_0xf7efe4=_0x48cad3;}return resolve(_0x27c1ff);}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x55b5eb){const _0x1aa7ed=a233_0x1cb7ce;if(!existsSync(_0x55b5eb))return{'status':_0x1aa7ed(0x1e3)};try{const _0x3a43a5=readFileSync(_0x55b5eb,{'encoding':_0x1aa7ed(0x1ed)});if(!_0x3a43a5?.[_0x1aa7ed(0x1d2)]())return{'status':_0x1aa7ed(0x1ec)};const _0x3e89fc=JSON[_0x1aa7ed(0x1c8)](_0x3a43a5);return{'status':'ok','data':_0x3e89fc};}catch(_0x1ed77e){return{'status':'error','message':_0x1ed77e instanceof Error?_0x1ed77e[_0x1aa7ed(0x1e0)]:String(_0x1ed77e)};}}function parseCliConfigJsonFile(_0x36c1c8,_0x5b46d5,_0x45b175){const _0x13e17b=a233_0x1cb7ce,_0x7c3fcd=inspectCliConfigJsonFile(_0x36c1c8);if(_0x7c3fcd[_0x13e17b(0x1e2)]===_0x13e17b(0x1e3)||_0x7c3fcd[_0x13e17b(0x1e2)]===_0x13e17b(0x1ec))return{};if(_0x7c3fcd['status']==='ok')return _0x7c3fcd['data'];return _0x5b46d5===_0x13e17b(0x1d6)&&_0x45b175&&console[_0x13e17b(0x1c3)](CLI_BIN_NAME+':\x20'+_0x45b175+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x36c1c8+_0x13e17b(0x1c2)+_0x7c3fcd[_0x13e17b(0x1e0)]),{};}function normalizeLegacyConfigShape(_0x5e0879){const _0x73a2e=a233_0x1cb7ce;if(!_0x5e0879||typeof _0x5e0879!=='object')return{'config':{},'migrated':![]};const _0x3681a0={..._0x5e0879},_0x1a3cca=_0x3681a0[_0x73a2e(0x1dd)]&&typeof _0x3681a0[_0x73a2e(0x1dd)]===_0x73a2e(0x1f0)?{..._0x3681a0[_0x73a2e(0x1dd)]}:{},_0x8f37bb=Object[_0x73a2e(0x1d3)](_0x1a3cca)[_0x73a2e(0x1e4)],_0x5ec26b=_0x3681a0[_0x73a2e(0x1ef)]||_0x3681a0[_0x73a2e(0x1c9)];let _0x1e48b1=![];if(_0x5ec26b&&_0x8f37bb===0x0){const _0x25798c=typeof _0x3681a0['defaultApp']===_0x73a2e(0x1dc)&&_0x3681a0[_0x73a2e(0x1d8)][_0x73a2e(0x1d2)]()?_0x3681a0[_0x73a2e(0x1d8)]:String(_0x5ec26b)[_0x73a2e(0x1d2)]();_0x1a3cca[_0x25798c]={'appcode':String(_0x5ec26b)[_0x73a2e(0x1d2)](),..._0x3681a0[_0x73a2e(0x1c4)]!=null?{'env':_0x3681a0[_0x73a2e(0x1c4)]}:{},..._0x3681a0['apiDir']!=null?{'apiDir':_0x3681a0[_0x73a2e(0x1d9)]}:{},..._0x3681a0[_0x73a2e(0x1da)]!=null?{'cookie':_0x3681a0['cookie']}:{},..._0x3681a0['accessKey']!=null?{'accessKey':_0x3681a0[_0x73a2e(0x1cb)]}:{},..._0x3681a0['format']!=null?{'format':_0x3681a0[_0x73a2e(0x1d4)]}:{},..._0x3681a0[_0x73a2e(0x1d7)]!=null?{'pageSize':_0x3681a0['pageSize']}:{},..._0x3681a0[_0x73a2e(0x1e7)]!=null?{'riskLevel':_0x3681a0[_0x73a2e(0x1e7)]}:{},..._0x3681a0['locale']!=null?{'locale':_0x3681a0[_0x73a2e(0x1f2)]}:{}},_0x3681a0[_0x73a2e(0x1dd)]=_0x1a3cca,delete _0x3681a0[_0x73a2e(0x1d8)],_0x1e48b1=!![];}return(_0x73a2e(0x1ef)in _0x3681a0||_0x73a2e(0x1c9)in _0x3681a0)&&(delete _0x3681a0[_0x73a2e(0x1ef)],delete _0x3681a0[_0x73a2e(0x1c9)],_0x1e48b1=!![]),{'config':_0x3681a0,'migrated':_0x1e48b1};}function writeNormalizedConfigIfNeeded(_0x19674d,_0x4d79b0){const _0x6a1afe=a233_0x1cb7ce,_0x70bfe2=JSON['stringify'](_0x4d79b0,null,0x2)+'\x0a';if(normalizedWriteCache[_0x6a1afe(0x1d1)](_0x19674d)===_0x70bfe2)return;writeConfigFile(_0x19674d,_0x4d79b0),normalizedWriteCache['set'](_0x19674d,_0x70bfe2);}function parseAndNormalizeConfig(_0x500d33,_0x42013a,_0x49058c){const _0x5ea96a=a233_0x1cb7ce,_0x24c382=parseCliConfigJsonFile(_0x500d33,_0x42013a,_0x49058c),_0x122df2=normalizeLegacyConfigShape(_0x24c382);if(_0x122df2[_0x5ea96a(0x1ee)])try{writeNormalizedConfigIfNeeded(_0x500d33,_0x122df2[_0x5ea96a(0x1cd)]);}catch{}return _0x122df2[_0x5ea96a(0x1cd)];}export function loadRawConfigLayers(_0xf17dcf){const _0xb94e39=a233_0x1cb7ce;let _0x189dc5={},_0x280bbd={};const _0x62d94f=resolveConfigPath(homedir());_0x62d94f&&(_0x189dc5=parseAndNormalizeConfig(_0x62d94f,_0xb94e39(0x1d6),'Global'));const _0x1a81a7=_0xf17dcf??findProjectRootDirectory(),_0x47e806=resolveConfigPath(_0x1a81a7);return _0x47e806&&(_0x280bbd=parseAndNormalizeConfig(_0x47e806,_0xb94e39(0x1d6),'Project')),{'globalPath':_0x62d94f,'projectPath':_0x47e806,'globalConfig':_0x189dc5,'projectConfig':_0x280bbd};}const INHERIT_WHITELIST=[a233_0x1cb7ce(0x1da),a233_0x1cb7ce(0x1cb),a233_0x1cb7ce(0x1f2),a233_0x1cb7ce(0x1d4),'riskLevel',a233_0x1cb7ce(0x1d7),a233_0x1cb7ce(0x1ca),a233_0x1cb7ce(0x1f1),'userDomain','apiDomain',a233_0x1cb7ce(0x1c0),a233_0x1cb7ce(0x1c5),a233_0x1cb7ce(0x1ce),a233_0x1cb7ce(0x1ea),'localDomain','certificateDomain'];export function mergeRawConfigLayers(_0x128aac){const _0x803a74=a233_0x1cb7ce,{globalConfig:_0x4f80d1,projectConfig:_0x510bc8}=_0x128aac,_0x82b129=!!_0x128aac['projectPath']||Object[_0x803a74(0x1d3)](_0x510bc8)['length']>0x0;if(!_0x82b129)return mergeGlobalOnly(_0x4f80d1);return mergeProjectFirst(_0x4f80d1,_0x510bc8);}function mergeGlobalOnly(_0x43c5b6){const _0xa9bda9=a233_0x1cb7ce,_0xc630cf={..._0x43c5b6};delete _0xc630cf['inherit'];const _0x362883=_0x43c5b6[_0xa9bda9(0x1dd)]&&typeof _0x43c5b6[_0xa9bda9(0x1dd)]===_0xa9bda9(0x1f0)?_0x43c5b6[_0xa9bda9(0x1dd)]:{};if(Object[_0xa9bda9(0x1d3)](_0x362883)['length']>0x0)_0xc630cf[_0xa9bda9(0x1dd)]=_0x362883;if(_0x43c5b6[_0xa9bda9(0x1d8)])_0xc630cf['defaultApp']=_0x43c5b6['defaultApp'];return _0xc630cf;}function mergeProjectFirst(_0x3623e8,_0x2fb2dc){const _0x40fc86=a233_0x1cb7ce,_0x1b9faf={..._0x2fb2dc};delete _0x1b9faf[_0x40fc86(0x1e8)];for(const _0x5367af of INHERIT_WHITELIST){!(_0x5367af in _0x1b9faf)&&_0x5367af in _0x3623e8&&(_0x1b9faf[_0x5367af]=_0x3623e8[_0x5367af]);}const _0x341d3e=_0x2fb2dc['apps']&&typeof _0x2fb2dc[_0x40fc86(0x1dd)]===_0x40fc86(0x1f0)?_0x2fb2dc['apps']:{};return Object[_0x40fc86(0x1d3)](_0x341d3e)[_0x40fc86(0x1e4)]>0x0?_0x1b9faf[_0x40fc86(0x1dd)]=_0x341d3e:delete _0x1b9faf['apps'],_0x40fc86(0x1d8)in _0x2fb2dc?_0x1b9faf['defaultApp']=_0x2fb2dc[_0x40fc86(0x1d8)]:delete _0x1b9faf['defaultApp'],_0x1b9faf;}function a233_0x1856(){const _0x3fbcf7=['riskLevel','inherit','.rabetbase.json','appDomain','1393520yfsRkO','empty','utf8','migrated','appcode','object','routing','locale','12lNSUql','.tmp','runtimeDomain','7DXsPtA','\x0a\x20\x20','error','env','skillDomain','project','158344RaGItZ','parse','app','region','accessKey','136TFqicG','config','kbDomain','22934vWiAjQ','291027YuBAlO','get','trim','keys','format','1322388ZkFxux','warn','pageSize','defaultApp','apiDir','cookie','590710jwhVId','string','apps','164325uQZBCR','stringify','message','15YcaooM','status','missing','length','cwd','132rCjqeY'];a233_0x1856=function(){return _0x3fbcf7;};return a233_0x1856();}export function readRawConfigWithLayers(_0x5bdc6e){const _0xe78a3d=loadRawConfigLayers(_0x5bdc6e);return{'config':mergeRawConfigLayers(_0xe78a3d),'layers':_0xe78a3d};}export function readRawConfig(_0x59ca92){return mergeRawConfigLayers(loadRawConfigLayers(_0x59ca92));}function a233_0x57b4(_0x44e1b7,_0x341a59){_0x44e1b7=_0x44e1b7-0x1bf;const _0x185625=a233_0x1856();let _0x57b4be=_0x185625[_0x44e1b7];return _0x57b4be;}export function readConfigFile(_0x5f5df2){return parseAndNormalizeConfig(_0x5f5df2,'silent');}export function writeConfigFile(_0x3977df,_0x586090){const _0x25de28=a233_0x1cb7ce,_0x34d69a=dirname(_0x3977df);!existsSync(_0x34d69a)&&mkdirSync(_0x34d69a,{'recursive':!![]});const _0x31f58c=_0x3977df+_0x25de28(0x1bf);try{writeFileSync(_0x31f58c,JSON[_0x25de28(0x1df)](_0x586090,null,0x2)+'\x0a',{'encoding':_0x25de28(0x1ed),'mode':0x180}),renameSync(_0x31f58c,_0x3977df);}catch(_0x151ee4){try{unlinkSync(_0x31f58c);}catch{}throw _0x151ee4;}}export function resolveWriteConfigPath(_0x2aec82){const _0xaf908f=a233_0x1cb7ce,_0x1696d4=_0x2aec82===_0xaf908f(0x1c6)?process['cwd']():homedir(),_0x3b0bc0=resolveConfigPath(_0x1696d4);return _0x3b0bc0??resolve(_0x1696d4,NEW_CONFIG_NAME);}
1
+ const a232_0x101ccb=a232_0x5f27;function a232_0x5f27(_0x194c89,_0x561057){_0x194c89=_0x194c89-0xd3;const _0x2ad9b1=a232_0x2ad9();let _0x5f270d=_0x2ad9b1[_0x194c89];return _0x5f270d;}(function(_0x4ad5cd,_0x1a193b){const _0x32e201=a232_0x5f27,_0x2e3243=_0x4ad5cd();while(!![]){try{const _0x248380=parseInt(_0x32e201(0xd4))/0x1*(-parseInt(_0x32e201(0x108))/0x2)+parseInt(_0x32e201(0xd9))/0x3+parseInt(_0x32e201(0xd8))/0x4+parseInt(_0x32e201(0xfd))/0x5+-parseInt(_0x32e201(0xda))/0x6+parseInt(_0x32e201(0xfc))/0x7*(parseInt(_0x32e201(0x104))/0x8)+-parseInt(_0x32e201(0xe5))/0x9*(parseInt(_0x32e201(0xd5))/0xa);if(_0x248380===_0x1a193b)break;else _0x2e3243['push'](_0x2e3243['shift']());}catch(_0xf3a604){_0x2e3243['push'](_0x2e3243['shift']());}}}(a232_0x2ad9,0xb6312));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a232_0x101ccb(0xed);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x4b18c1){for(const _0x57c508 of CONFIG_NAMES){const _0x274039=resolve(_0x4b18c1,_0x57c508);if(existsSync(_0x274039))return _0x274039;}return undefined;}export function findProjectRootDirectory(_0x4e8054=process['cwd']()){let _0x13ee81=resolve(_0x4e8054);const {root:_0x345942}=parse(_0x13ee81),_0x546a26=homedir();while(!![]){if(resolveConfigPath(_0x13ee81)){if(_0x13ee81===_0x546a26)break;return _0x13ee81;}if(_0x13ee81===_0x345942||_0x13ee81===_0x546a26)break;const _0x2058b5=dirname(_0x13ee81);if(_0x2058b5===_0x13ee81)break;_0x13ee81=_0x2058b5;}return resolve(_0x4e8054);}export function getProjectConfigPath(){const _0x2a54ef=a232_0x101ccb;return resolveConfigPath(process[_0x2a54ef(0xef)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x3b8bfc){const _0x1a358f=a232_0x101ccb;if(!existsSync(_0x3b8bfc))return{'status':'missing'};try{const _0x5b5ca9=readFileSync(_0x3b8bfc,{'encoding':_0x1a358f(0xd6)});if(!_0x5b5ca9?.['trim']())return{'status':'empty'};const _0x596b23=JSON[_0x1a358f(0xe3)](_0x5b5ca9);return{'status':'ok','data':_0x596b23};}catch(_0x173469){return{'status':'error','message':_0x173469 instanceof Error?_0x173469[_0x1a358f(0xee)]:String(_0x173469)};}}function a232_0x2ad9(){const _0x35e6bc=['riskLevel','parse','warn','263979xWleSE','runtimeDomain','Project','apps','missing','project','\x0a\x20\x20','error','.rabetbase.json','message','cwd','keys','apiDir','skillDomain','apiDomain','.tmp','routing','string','app','env','appcode','cookie','locale','864451IIWAVI','5052180donPEY','length','stringify','format','object','trim','defaultApp','88xdxMhO','inherit','localDomain','config','118AXcoou','appDomain','migrated','accessKey','830ifJJzF','1180kwORPJ','utf8','pageSize','2483976EeOiOZ','4325838ypBNEN','1053078gukyrx','certificateDomain','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','set','empty','get','data','status'];a232_0x2ad9=function(){return _0x35e6bc;};return a232_0x2ad9();}function parseCliConfigJsonFile(_0x1acf91,_0x2f1aaa,_0x1b505f){const _0x2bcca3=a232_0x101ccb,_0x59a618=inspectCliConfigJsonFile(_0x1acf91);if(_0x59a618[_0x2bcca3(0xe1)]===_0x2bcca3(0xe9)||_0x59a618[_0x2bcca3(0xe1)]===_0x2bcca3(0xde))return{};if(_0x59a618[_0x2bcca3(0xe1)]==='ok')return _0x59a618[_0x2bcca3(0xe0)];return _0x2f1aaa===_0x2bcca3(0xe4)&&_0x1b505f&&console[_0x2bcca3(0xec)](CLI_BIN_NAME+':\x20'+_0x1b505f+_0x2bcca3(0xdc)+_0x1acf91+_0x2bcca3(0xeb)+_0x59a618[_0x2bcca3(0xee)]),{};}function normalizeLegacyConfigShape(_0x32feb9){const _0x221049=a232_0x101ccb;if(!_0x32feb9||typeof _0x32feb9!==_0x221049(0x101))return{'config':{},'migrated':![]};const _0x2c679b={..._0x32feb9},_0x3ed36f=_0x2c679b[_0x221049(0xe8)]&&typeof _0x2c679b['apps']===_0x221049(0x101)?{..._0x2c679b[_0x221049(0xe8)]}:{},_0x371073=Object[_0x221049(0xf0)](_0x3ed36f)['length'],_0x338e27=_0x2c679b['appcode']||_0x2c679b[_0x221049(0xf7)];let _0x2b1cfb=![];if(_0x338e27&&_0x371073===0x0){const _0x1f664a=typeof _0x2c679b['defaultApp']===_0x221049(0xf6)&&_0x2c679b[_0x221049(0x103)][_0x221049(0x102)]()?_0x2c679b[_0x221049(0x103)]:String(_0x338e27)[_0x221049(0x102)]();_0x3ed36f[_0x1f664a]={'appcode':String(_0x338e27)['trim'](),..._0x2c679b['env']!=null?{'env':_0x2c679b[_0x221049(0xf8)]}:{},..._0x2c679b[_0x221049(0xf1)]!=null?{'apiDir':_0x2c679b[_0x221049(0xf1)]}:{},..._0x2c679b[_0x221049(0xfa)]!=null?{'cookie':_0x2c679b[_0x221049(0xfa)]}:{},..._0x2c679b['accessKey']!=null?{'accessKey':_0x2c679b[_0x221049(0xd3)]}:{},..._0x2c679b['format']!=null?{'format':_0x2c679b[_0x221049(0x100)]}:{},..._0x2c679b[_0x221049(0xd7)]!=null?{'pageSize':_0x2c679b[_0x221049(0xd7)]}:{},..._0x2c679b[_0x221049(0xe2)]!=null?{'riskLevel':_0x2c679b['riskLevel']}:{},..._0x2c679b[_0x221049(0xfb)]!=null?{'locale':_0x2c679b[_0x221049(0xfb)]}:{}},_0x2c679b['apps']=_0x3ed36f,delete _0x2c679b[_0x221049(0x103)],_0x2b1cfb=!![];}return(_0x221049(0xf9)in _0x2c679b||'app'in _0x2c679b)&&(delete _0x2c679b[_0x221049(0xf9)],delete _0x2c679b[_0x221049(0xf7)],_0x2b1cfb=!![]),{'config':_0x2c679b,'migrated':_0x2b1cfb};}function writeNormalizedConfigIfNeeded(_0x2f84d6,_0x1a1652){const _0xf9a528=a232_0x101ccb,_0x87e383=JSON[_0xf9a528(0xff)](_0x1a1652,null,0x2)+'\x0a';if(normalizedWriteCache[_0xf9a528(0xdf)](_0x2f84d6)===_0x87e383)return;writeConfigFile(_0x2f84d6,_0x1a1652),normalizedWriteCache[_0xf9a528(0xdd)](_0x2f84d6,_0x87e383);}function parseAndNormalizeConfig(_0x40079e,_0xd8f89e,_0x591804){const _0x8b69ea=a232_0x101ccb,_0x2f95e7=parseCliConfigJsonFile(_0x40079e,_0xd8f89e,_0x591804),_0x341dce=normalizeLegacyConfigShape(_0x2f95e7);if(_0x341dce[_0x8b69ea(0x10a)])try{writeNormalizedConfigIfNeeded(_0x40079e,_0x341dce[_0x8b69ea(0x107)]);}catch{}return _0x341dce[_0x8b69ea(0x107)];}export function loadRawConfigLayers(_0x28ecd5){const _0x20202b=a232_0x101ccb;let _0x400ada={},_0x13f160={};const _0x222307=resolveConfigPath(homedir());_0x222307&&(_0x400ada=parseAndNormalizeConfig(_0x222307,_0x20202b(0xe4),'Global'));const _0xdd654d=_0x28ecd5??findProjectRootDirectory(),_0x2352fc=resolveConfigPath(_0xdd654d);return _0x2352fc&&(_0x13f160=parseAndNormalizeConfig(_0x2352fc,_0x20202b(0xe4),_0x20202b(0xe7))),{'globalPath':_0x222307,'projectPath':_0x2352fc,'globalConfig':_0x400ada,'projectConfig':_0x13f160};}const INHERIT_WHITELIST=[a232_0x101ccb(0xfa),'accessKey',a232_0x101ccb(0xfb),a232_0x101ccb(0x100),a232_0x101ccb(0xe2),'pageSize','region',a232_0x101ccb(0xf5),'userDomain',a232_0x101ccb(0xf3),a232_0x101ccb(0xe6),a232_0x101ccb(0xf2),'kbDomain',a232_0x101ccb(0x109),a232_0x101ccb(0x106),a232_0x101ccb(0xdb)];export function mergeRawConfigLayers(_0x46eb22){const _0x1f3c48=a232_0x101ccb,{globalConfig:_0x339df4,projectConfig:_0x355a1b}=_0x46eb22,_0x1a182f=!!_0x46eb22['projectPath']||Object[_0x1f3c48(0xf0)](_0x355a1b)[_0x1f3c48(0xfe)]>0x0;if(!_0x1a182f)return mergeGlobalOnly(_0x339df4);return mergeProjectFirst(_0x339df4,_0x355a1b);}function mergeGlobalOnly(_0xb540f){const _0x45c474=a232_0x101ccb,_0x3b8e54={..._0xb540f};delete _0x3b8e54[_0x45c474(0x105)];const _0x56bd99=_0xb540f[_0x45c474(0xe8)]&&typeof _0xb540f['apps']===_0x45c474(0x101)?_0xb540f[_0x45c474(0xe8)]:{};if(Object[_0x45c474(0xf0)](_0x56bd99)[_0x45c474(0xfe)]>0x0)_0x3b8e54[_0x45c474(0xe8)]=_0x56bd99;if(_0xb540f[_0x45c474(0x103)])_0x3b8e54[_0x45c474(0x103)]=_0xb540f['defaultApp'];return _0x3b8e54;}function mergeProjectFirst(_0x5c1c82,_0x318c38){const _0x213c83=a232_0x101ccb,_0x1a649a={..._0x318c38};delete _0x1a649a[_0x213c83(0x105)];for(const _0x1d5500 of INHERIT_WHITELIST){!(_0x1d5500 in _0x1a649a)&&_0x1d5500 in _0x5c1c82&&(_0x1a649a[_0x1d5500]=_0x5c1c82[_0x1d5500]);}const _0x27832e=_0x318c38[_0x213c83(0xe8)]&&typeof _0x318c38['apps']===_0x213c83(0x101)?_0x318c38[_0x213c83(0xe8)]:{};return Object[_0x213c83(0xf0)](_0x27832e)[_0x213c83(0xfe)]>0x0?_0x1a649a[_0x213c83(0xe8)]=_0x27832e:delete _0x1a649a[_0x213c83(0xe8)],_0x213c83(0x103)in _0x318c38?_0x1a649a['defaultApp']=_0x318c38[_0x213c83(0x103)]:delete _0x1a649a[_0x213c83(0x103)],_0x1a649a;}export function readRawConfigWithLayers(_0x17a1b6){const _0x32c1c9=loadRawConfigLayers(_0x17a1b6);return{'config':mergeRawConfigLayers(_0x32c1c9),'layers':_0x32c1c9};}export function readRawConfig(_0x141ce3){return mergeRawConfigLayers(loadRawConfigLayers(_0x141ce3));}export function readConfigFile(_0x59bef0){return parseAndNormalizeConfig(_0x59bef0,'silent');}export function writeConfigFile(_0x4f8047,_0x5c2da7){const _0x58ac81=a232_0x101ccb,_0xe88b2=dirname(_0x4f8047);!existsSync(_0xe88b2)&&mkdirSync(_0xe88b2,{'recursive':!![]});const _0x209cb8=_0x4f8047+_0x58ac81(0xf4);try{writeFileSync(_0x209cb8,JSON[_0x58ac81(0xff)](_0x5c2da7,null,0x2)+'\x0a',{'encoding':_0x58ac81(0xd6),'mode':0x180}),renameSync(_0x209cb8,_0x4f8047);}catch(_0x34116e){try{unlinkSync(_0x209cb8);}catch{}throw _0x34116e;}}export function resolveWriteConfigPath(_0x4c7a08){const _0x594133=a232_0x101ccb,_0xe065d4=_0x4c7a08===_0x594133(0xea)?process[_0x594133(0xef)]():homedir(),_0xde3496=resolveConfigPath(_0xe065d4);return _0xde3496??resolve(_0xe065d4,NEW_CONFIG_NAME);}