@lovrabet/rabetbase-cli 2.5.1-beta.5 → 2.5.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.js +1 -1
  99. package/lib/commands/deployment/index.js +1 -1
  100. package/lib/commands/deployment/sync.js +1 -1
  101. package/lib/commands/doctor.js +1 -1
  102. package/lib/commands/file/index.js +1 -1
  103. package/lib/commands/issue/index.js +1 -1
  104. package/lib/commands/issue/nudge.js +1 -1
  105. package/lib/commands/issue/report.js +1 -1
  106. package/lib/commands/issue/shared.js +1 -1
  107. package/lib/commands/kb/create.js +1 -1
  108. package/lib/commands/kb/delete.js +1 -1
  109. package/lib/commands/kb/detail.js +1 -1
  110. package/lib/commands/kb/index.js +1 -1
  111. package/lib/commands/kb/list.js +1 -1
  112. package/lib/commands/kb/search.js +1 -1
  113. package/lib/commands/kb/shared.js +1 -1
  114. package/lib/commands/kb/update.js +1 -1
  115. package/lib/commands/logs/index.js +1 -1
  116. package/lib/commands/menu/asset-update.js +1 -1
  117. package/lib/commands/menu/delete.js +1 -1
  118. package/lib/commands/menu/external-link-create.js +1 -1
  119. package/lib/commands/menu/external-link-update.js +1 -1
  120. package/lib/commands/menu/group-create.js +1 -1
  121. package/lib/commands/menu/group-update.js +1 -1
  122. package/lib/commands/menu/index.js +1 -1
  123. package/lib/commands/menu/list.js +1 -1
  124. package/lib/commands/menu/move.js +1 -1
  125. package/lib/commands/menu/regroup-start.js +1 -1
  126. package/lib/commands/menu/rename.js +1 -1
  127. package/lib/commands/menu/shared/compare-table.js +1 -1
  128. package/lib/commands/menu/shared/delete-plan.js +1 -1
  129. package/lib/commands/menu/shared/facts.js +1 -1
  130. package/lib/commands/menu/shared/index.js +1 -1
  131. package/lib/commands/menu/shared/inquirer.js +1 -1
  132. package/lib/commands/menu/shared/local-pages.js +1 -1
  133. package/lib/commands/menu/shared/logic.js +1 -1
  134. package/lib/commands/menu/shared/mutations.js +1 -1
  135. package/lib/commands/menu/shared/service.js +1 -1
  136. package/lib/commands/menu/shared/sync-core.js +1 -1
  137. package/lib/commands/menu/shared/update-core.js +1 -1
  138. package/lib/commands/menu/shared/valid-url.js +1 -1
  139. package/lib/commands/menu/sync.js +1 -1
  140. package/lib/commands/menu/visibility-update.js +1 -1
  141. package/lib/commands/notification/config-create.js +1 -1
  142. package/lib/commands/notification/config-delete.js +1 -1
  143. package/lib/commands/notification/config-list.js +1 -1
  144. package/lib/commands/notification/config-update.js +1 -1
  145. package/lib/commands/notification/index.js +1 -1
  146. package/lib/commands/notification/shared.js +1 -1
  147. package/lib/commands/ocr/index.js +1 -1
  148. package/lib/commands/page/create.js +1 -1
  149. package/lib/commands/page/custom/detail.js +1 -1
  150. package/lib/commands/page/custom/list.js +1 -1
  151. package/lib/commands/page/custom/publish.js +1 -1
  152. package/lib/commands/page/custom/shared.js +1 -1
  153. package/lib/commands/page/custom/syntax.js +1 -1
  154. package/lib/commands/page/custom/template.js +1 -1
  155. package/lib/commands/page/custom/update.js +1 -1
  156. package/lib/commands/page/data-list-status.js +1 -1
  157. package/lib/commands/page/generate-start.js +1 -1
  158. package/lib/commands/page/generate-status.js +1 -1
  159. package/lib/commands/page/index.js +1 -1
  160. package/lib/commands/page/pull.js +1 -1
  161. package/lib/commands/page/push.js +1 -1
  162. package/lib/commands/page/relation-audit.js +1 -1
  163. package/lib/commands/page/restore.js +1 -1
  164. package/lib/commands/page/shared.js +1 -1
  165. package/lib/commands/page/sync.js +1 -1
  166. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  167. package/lib/commands/project/create/format-elapsed.js +1 -1
  168. package/lib/commands/project/create/main.js +1 -1
  169. package/lib/commands/project/create/materialize-project-template.js +1 -1
  170. package/lib/commands/project/create/project-name.js +1 -1
  171. package/lib/commands/project/create/project-template-archive.js +1 -1
  172. package/lib/commands/project/create/project-template-path.js +1 -1
  173. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  174. package/lib/commands/project/create/use-format-code.js +1 -1
  175. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  176. package/lib/commands/project/domain-routing-sync.js +1 -1
  177. package/lib/commands/project/index.js +1 -1
  178. package/lib/commands/project/upgrade.js +1 -1
  179. package/lib/commands/registry.js +1 -1
  180. package/lib/commands/role/delete.js +1 -1
  181. package/lib/commands/role/detail.js +1 -1
  182. package/lib/commands/role/index.js +1 -1
  183. package/lib/commands/role/list.js +1 -1
  184. package/lib/commands/role/shared.js +1 -1
  185. package/lib/commands/role/update.js +1 -1
  186. package/lib/commands/role/user-add.js +1 -1
  187. package/lib/commands/role/user-remove.js +1 -1
  188. package/lib/commands/role/user-resolve.js +1 -1
  189. package/lib/commands/rule/get.js +1 -1
  190. package/lib/commands/rule/index.js +1 -1
  191. package/lib/commands/rule/list.js +1 -1
  192. package/lib/commands/rule/set.js +1 -1
  193. package/lib/commands/rule/shared.js +1 -1
  194. package/lib/commands/run/index.js +1 -1
  195. package/lib/commands/schema.js +1 -1
  196. package/lib/commands/sql/create.js +1 -1
  197. package/lib/commands/sql/delete.js +1 -1
  198. package/lib/commands/sql/detail.js +1 -1
  199. package/lib/commands/sql/exec.js +1 -1
  200. package/lib/commands/sql/index.js +1 -1
  201. package/lib/commands/sql/list.js +1 -1
  202. package/lib/commands/sql/pull.js +1 -1
  203. package/lib/commands/sql/push.js +1 -1
  204. package/lib/commands/sql/shared.js +1 -1
  205. package/lib/commands/sql/status.js +1 -1
  206. package/lib/commands/sql/validate.js +1 -1
  207. package/lib/commands/task/index.js +1 -1
  208. package/lib/commands/task/status.js +1 -1
  209. package/lib/commands/tenant/index.js +1 -1
  210. package/lib/commands/tenant/members-list.js +1 -1
  211. package/lib/commands/tenant/shared.js +1 -1
  212. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  213. package/lib/commands/user-account/index.js +1 -1
  214. package/lib/commands/workspace/add.js +1 -1
  215. package/lib/commands/workspace/index.js +1 -1
  216. package/lib/commands/workspace/remove.js +1 -1
  217. package/lib/config/deployment-sync.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.js +1 -1
  232. package/lib/context/auth-resolver.js +1 -1
  233. package/lib/context/config-loader.js +1 -1
  234. package/lib/context.js +1 -1
  235. package/lib/core/alias-resolver.js +1 -1
  236. package/lib/core/api-client.d.ts +0 -16
  237. package/lib/core/api-client.js +1 -1
  238. package/lib/core/bff/config.js +1 -1
  239. package/lib/core/bff/file-system.js +1 -1
  240. package/lib/core/bff/hash.js +1 -1
  241. package/lib/core/bff/lock.js +1 -1
  242. package/lib/core/bff/utils.js +1 -1
  243. package/lib/core/db-resolver.js +1 -1
  244. package/lib/core/kb-search-client.d.ts +30 -0
  245. package/lib/core/kb-search-client.js +1 -0
  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/types.d.ts +1 -0
  269. package/lib/framework/types.js +1 -1
  270. package/lib/generated/build-info.d.ts +4 -4
  271. package/lib/generated/build-info.js +1 -1
  272. package/lib/generated/official-routing.js +1 -1
  273. package/lib/generated/routing-contract.js +1 -1
  274. package/lib/help.js +1 -1
  275. package/lib/postinstall.js +1 -1
  276. package/lib/runtime/confirmation.js +1 -1
  277. package/lib/runtime/event.js +1 -1
  278. package/lib/runtime/index.js +1 -1
  279. package/lib/runtime/queue.js +1 -1
  280. package/lib/runtime/resolve.js +1 -1
  281. package/lib/skills/builtin-skill.js +1 -1
  282. package/lib/skills/main.js +1 -1
  283. package/lib/skills/npx-skills-add.js +1 -1
  284. package/lib/skills/skill-presence.js +1 -1
  285. package/lib/telemetry/cli-command-trace.js +1 -1
  286. package/lib/telemetry/cli-help-trace.js +1 -1
  287. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  288. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  289. package/lib/telemetry/send-cli-trace-log.js +1 -1
  290. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  291. package/lib/utils/ai_config.js +1 -1
  292. package/lib/utils/apply-jq-filter.js +1 -1
  293. package/lib/utils/cdn-config.js +1 -1
  294. package/lib/utils/check-sdk-version.js +1 -1
  295. package/lib/utils/cli-version-check.js +1 -1
  296. package/lib/utils/cli-version-policy.js +1 -1
  297. package/lib/utils/config.js +1 -1
  298. package/lib/utils/entity-with-id.js +1 -1
  299. package/lib/utils/file-utils.js +1 -1
  300. package/lib/utils/guides-cdn.js +1 -1
  301. package/lib/utils/http-client.js +1 -1
  302. package/lib/utils/is-non-interactive.js +1 -1
  303. package/lib/utils/logger.js +1 -1
  304. package/lib/utils/params.js +1 -1
  305. package/lib/utils/platform.js +1 -1
  306. package/lib/utils/sleep.js +1 -1
  307. package/lib/utils/template-replacer.js +1 -1
  308. package/lib/utils/update-notice.js +1 -1
  309. package/lib/utils/version.js +1 -1
  310. package/lib/utils/with-active-cookie.js +1 -1
  311. package/lib/utils/write-cli-side-channel.js +1 -1
  312. package/package.json +1 -1
  313. package/skills/rabetbase/SKILL.md +3 -3
  314. package/skills/rabetbase/references/rabetbase-config.md +1 -1
  315. package/skills/rabetbase/references/rabetbase-database-template.md +36 -0
  316. package/skills/rabetbase/references/rabetbase-doctor.md +1 -1
  317. package/skills/rabetbase/references/rabetbase-kb.md +8 -7
  318. package/skills/rabetbase/references/rabetbase-rule.md +15 -0
  319. package/skills/rabetbase.manifest.json +4 -3
@@ -1 +1 @@
1
- function a217_0x2b10(_0x26d5c4,_0x33791c){_0x26d5c4=_0x26d5c4-0x1a4;const _0x25a6c6=a217_0x25a6();let _0x2b1018=_0x25a6c6[_0x26d5c4];return _0x2b1018;}const a217_0x636b8e=a217_0x2b10;function a217_0x25a6(){const _0x3651dd=['Non-production\x20target\x20selected\x20by\x20the\x20server-side\x20environment\x20mapping','8Ctoujx','object','deployment-target-env','1960824MweATR','validation','--deployment-db-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','Production\x20and\x20direct\x20targets\x20must\x20use\x20`rabetbase\x20deployment\x20sync`\x20with\x20explicit\x20confirmation.','1425219QxjjuA','deploymentSync\x20must\x20contain\x20dbLinkId\x20and\x20targetEnv.','520352JBXyZd','Base\x20dblink\x20ID\x20whose\x20server-side\x20environment\x20mapping\x20selects\x20the\x20automatic\x20sync\x20target','trim','dev','714378DvlLsl','78YLRINn','targetEnv','includes','dbLinkId','27BknaQP','string','--deployment-target-env\x20must\x20be\x20one\x20of:\x20','9829150ztdOrA','pre','number','isSafeInteger','deployment-db-id','4147241iomQuq','81645CMKwkK'];a217_0x25a6=function(){return _0x3651dd;};return a217_0x25a6();}(function(_0x27e955,_0x1ef5c2){const _0x3bb660=a217_0x2b10,_0x1f5caa=_0x27e955();while(!![]){try{const _0x51e7fc=-parseInt(_0x3bb660(0x1aa))/0x1+-parseInt(_0x3bb660(0x1ae))/0x2+-parseInt(_0x3bb660(0x1a8))/0x3+-parseInt(_0x3bb660(0x1a4))/0x4+-parseInt(_0x3bb660(0x1bc))/0x5*(parseInt(_0x3bb660(0x1af))/0x6)+-parseInt(_0x3bb660(0x1bb))/0x7*(parseInt(_0x3bb660(0x1be))/0x8)+-parseInt(_0x3bb660(0x1b3))/0x9*(-parseInt(_0x3bb660(0x1b6))/0xa);if(_0x51e7fc===_0x1ef5c2)break;else _0x1f5caa['push'](_0x1f5caa['shift']());}catch(_0x4459ef){_0x1f5caa['push'](_0x1f5caa['shift']());}}}(a217_0x25a6,0x49881));import{CliErrors}from'../errors.js';export const AUTO_DEPLOYMENT_TARGET_ENVS=[a217_0x636b8e(0x1ad),'test',a217_0x636b8e(0x1b7)];export function getDeploymentSyncProfileFlagDefs(){const _0x3b8c66=a217_0x636b8e;return[{'name':_0x3b8c66(0x1ba),'type':_0x3b8c66(0x1b8),'description':_0x3b8c66(0x1ab)},{'name':_0x3b8c66(0x1c0),'type':_0x3b8c66(0x1b4),'enum':[...AUTO_DEPLOYMENT_TARGET_ENVS],'description':_0x3b8c66(0x1bd)}];}export function collectDeploymentSyncProfile(_0x2cfe67){const _0x466f79=a217_0x636b8e,_0x109fe9=_0x2cfe67('deployment-db-id')[_0x466f79(0x1ac)](),_0x9b5a2d=_0x2cfe67('deployment-target-env')[_0x466f79(0x1ac)]();if(!_0x109fe9&&!_0x9b5a2d)return undefined;return validateDeploymentSyncProfile({'dbLinkId':_0x109fe9?Number(_0x109fe9):undefined,'targetEnv':_0x9b5a2d||undefined});}export function validateDeploymentSyncProfile(_0x3050ea){const _0x4e51d3=a217_0x636b8e;if(!_0x3050ea||typeof _0x3050ea!==_0x4e51d3(0x1bf)||Array['isArray'](_0x3050ea))throw CliErrors['validation'](_0x4e51d3(0x1a9));const _0x1ed3ec=_0x3050ea,_0x2886d3=Number(_0x1ed3ec[_0x4e51d3(0x1b2)]);if(!Number[_0x4e51d3(0x1b9)](_0x2886d3)||_0x2886d3<=0x0)throw CliErrors['validation'](_0x4e51d3(0x1a6));const _0x5ba2b5=typeof _0x1ed3ec[_0x4e51d3(0x1b0)]===_0x4e51d3(0x1b4)?_0x1ed3ec[_0x4e51d3(0x1b0)][_0x4e51d3(0x1ac)]():'';if(!AUTO_DEPLOYMENT_TARGET_ENVS[_0x4e51d3(0x1b1)](_0x5ba2b5))throw CliErrors[_0x4e51d3(0x1a5)](_0x4e51d3(0x1b5)+AUTO_DEPLOYMENT_TARGET_ENVS['join'](',\x20')+'.',_0x4e51d3(0x1a7));return{'dbLinkId':_0x2886d3,'targetEnv':_0x5ba2b5};}
1
+ const a217_0x340a1c=a217_0x15a5;(function(_0x178fcf,_0x1bca70){const _0x28e996=a217_0x15a5,_0xf12f2=_0x178fcf();while(!![]){try{const _0x5282b0=parseInt(_0x28e996(0x158))/0x1*(parseInt(_0x28e996(0x14e))/0x2)+parseInt(_0x28e996(0x154))/0x3+-parseInt(_0x28e996(0x156))/0x4+parseInt(_0x28e996(0x14a))/0x5*(parseInt(_0x28e996(0x15a))/0x6)+parseInt(_0x28e996(0x157))/0x7+-parseInt(_0x28e996(0x15b))/0x8+-parseInt(_0x28e996(0x150))/0x9*(parseInt(_0x28e996(0x15e))/0xa);if(_0x5282b0===_0x1bca70)break;else _0xf12f2['push'](_0xf12f2['shift']());}catch(_0x4f0a61){_0xf12f2['push'](_0xf12f2['shift']());}}}(a217_0x4d10,0x9f67a));function a217_0x4d10(){const _0x15dca6=['isSafeInteger','deployment-db-id','1186029ALyMSK','dev','2006224pcWXau','7477323wOzRVU','634526vUBTuI','trim','1565796zSkHWL','6091248lTyhtZ','includes','deployment-target-env','30TmvdPA','Base\x20dblink\x20ID\x20whose\x20server-side\x20environment\x20mapping\x20selects\x20the\x20automatic\x20sync\x20target','targetEnv','object','validation','Non-production\x20target\x20selected\x20by\x20the\x20server-side\x20environment\x20mapping','20pPURDK','test','string','dbLinkId','4FtBmkU','deploymentSync\x20must\x20contain\x20dbLinkId\x20and\x20targetEnv.','5581692zUUipB','number'];a217_0x4d10=function(){return _0x15dca6;};return a217_0x4d10();}import{CliErrors}from'../errors.js';export const AUTO_DEPLOYMENT_TARGET_ENVS=[a217_0x340a1c(0x155),a217_0x340a1c(0x14b),'pre'];function a217_0x15a5(_0x3691e1,_0x1a519c){_0x3691e1=_0x3691e1-0x145;const _0x4d1098=a217_0x4d10();let _0x15a513=_0x4d1098[_0x3691e1];return _0x15a513;}export function getDeploymentSyncProfileFlagDefs(){const _0x539c5a=a217_0x340a1c;return[{'name':'deployment-db-id','type':_0x539c5a(0x151),'description':_0x539c5a(0x145)},{'name':_0x539c5a(0x15d),'type':_0x539c5a(0x14c),'enum':[...AUTO_DEPLOYMENT_TARGET_ENVS],'description':_0x539c5a(0x149)}];}export function collectDeploymentSyncProfile(_0x393fc1){const _0x261b59=a217_0x340a1c,_0x50f040=_0x393fc1(_0x261b59(0x153))['trim'](),_0x51b9f4=_0x393fc1(_0x261b59(0x15d))[_0x261b59(0x159)]();if(!_0x50f040&&!_0x51b9f4)return undefined;return validateDeploymentSyncProfile({'dbLinkId':_0x50f040?Number(_0x50f040):undefined,'targetEnv':_0x51b9f4||undefined});}export function validateDeploymentSyncProfile(_0x291bcf){const _0x349eb1=a217_0x340a1c;if(!_0x291bcf||typeof _0x291bcf!==_0x349eb1(0x147)||Array['isArray'](_0x291bcf))throw CliErrors[_0x349eb1(0x148)](_0x349eb1(0x14f));const _0x13975c=_0x291bcf,_0x1661d5=Number(_0x13975c[_0x349eb1(0x14d)]);if(!Number[_0x349eb1(0x152)](_0x1661d5)||_0x1661d5<=0x0)throw CliErrors[_0x349eb1(0x148)]('--deployment-db-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.');const _0xfe77b5=typeof _0x13975c['targetEnv']==='string'?_0x13975c[_0x349eb1(0x146)]['trim']():'';if(!AUTO_DEPLOYMENT_TARGET_ENVS[_0x349eb1(0x15c)](_0xfe77b5))throw CliErrors['validation']('--deployment-target-env\x20must\x20be\x20one\x20of:\x20'+AUTO_DEPLOYMENT_TARGET_ENVS['join'](',\x20')+'.','Production\x20and\x20direct\x20targets\x20must\x20use\x20`rabetbase\x20deployment\x20sync`\x20with\x20explicit\x20confirmation.');return{'dbLinkId':_0x1661d5,'targetEnv':_0xfe77b5};}
@@ -1 +1 @@
1
- const a218_0x2ce99b=a218_0x1229;function a218_0x1229(_0x48674f,_0x17f2ad){_0x48674f=_0x48674f-0x181;const _0x2949d3=a218_0x2949();let _0x12299e=_0x2949d3[_0x48674f];return _0x12299e;}(function(_0x4a57ab,_0x2ce08d){const _0x483d1c=a218_0x1229,_0x46f766=_0x4a57ab();while(!![]){try{const _0x133e2c=-parseInt(_0x483d1c(0x1c5))/0x1+parseInt(_0x483d1c(0x1d3))/0x2*(parseInt(_0x483d1c(0x184))/0x3)+parseInt(_0x483d1c(0x1b9))/0x4*(-parseInt(_0x483d1c(0x1ce))/0x5)+-parseInt(_0x483d1c(0x191))/0x6*(-parseInt(_0x483d1c(0x1d6))/0x7)+parseInt(_0x483d1c(0x194))/0x8*(-parseInt(_0x483d1c(0x1ab))/0x9)+-parseInt(_0x483d1c(0x1be))/0xa*(parseInt(_0x483d1c(0x198))/0xb)+parseInt(_0x483d1c(0x185))/0xc;if(_0x133e2c===_0x2ce08d)break;else _0x46f766['push'](_0x46f766['shift']());}catch(_0x205675){_0x46f766['push'](_0x46f766['shift']());}}}(a218_0x2949,0x53f48));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';function a218_0x2949(){const _0x49e064=['isArray','5117651reSkrK','utf8','certificate-domain','filter','password','Invalid\x20','Unsupported\x20domain\x20config\x20field(s):\x20','trim','Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.',':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.','Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.',':\x20\x22','userDomain','object','domain-config','cdn','parse',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','9USiUPj','enterprise-v1','kind','lovrabet','skill-domain','skillDomain','Unsupported\x20enterprise\x20CDN\x20field(s):\x20','agentDomain','\x22\x20and\x20kind\x20\x22','Invalid\x20cdn.','includes','str','certificateDomain','kbDomain','25268YNiLAw','cwd','api-domain','domains','local-domain','10zMRrST','length','join','skillHubDomain','user-domain','string','appDomain','424305lFysgc','mode',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','search','Enterprise\x20','keys','username','Enterprise\x20routing\x20manifest\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','default','5edlrHj','platformDomain','\x22\x20is\x20not\x20a\x20valid\x20URL.',':\x20expected\x20a\x20non-empty\x20HTTPS\x20URL.','https:','17084YBFdSU','\x20without\x20credentials,\x20query,\x20or\x20fragment.','href','21uCiACs','protocol','Allowed\x20fields:\x20','apiDomain','Unsupported\x20','origin','93uKAjgL','13856928nyCbwO','legacy','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','rabetbase-cli','Invalid\x20domain\x20config\x20JSON:\x20','hash','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','\x20and\x20has\x20no\x20default.','pathname',':\x20consumer\x20Domain\x20object\x20cannot\x20be\x20empty.','validation','196902Uxgxka','Unsupported\x20enterprise\x20Domain\x20field(s):\x20','runtimeDomain','2226032HWxkeR','app-domain','Allowed\x20consumers:\x20'];a218_0x2949=function(){return _0x49e064;};return a218_0x2949();}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=[a218_0x2ce99b(0x1a5),a218_0x2ce99b(0x181),'runtimeDomain',a218_0x2ce99b(0x1b0),a218_0x2ce99b(0x1b8),a218_0x2ce99b(0x1c4),'localDomain',a218_0x2ce99b(0x1b7)];const DOMAIN_FLAGS={'userDomain':a218_0x2ce99b(0x1c2),'apiDomain':a218_0x2ce99b(0x1bb),'runtimeDomain':'runtime-domain','skillDomain':a218_0x2ce99b(0x1af),'kbDomain':'kb-domain','appDomain':a218_0x2ce99b(0x195),'localDomain':a218_0x2ce99b(0x1bd),'certificateDomain':a218_0x2ce99b(0x19a)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a218_0x2ce99b(0x1b2),a218_0x2ce99b(0x1cf),a218_0x2ce99b(0x1c1)];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':a218_0x2ce99b(0x1a5),'apiDomain':'apiDomain','runtimeDomain':a218_0x2ce99b(0x193),'skillDomain':a218_0x2ce99b(0x1b0),'kbDomain':'kbDomain','appDomain':a218_0x2ce99b(0x1c4),'localDomain':'localDomain','certificateDomain':a218_0x2ce99b(0x1b7)},ROUTING_CONSUMER=a218_0x2ce99b(0x188);export function normalizeDomainOrigin(_0x426aec,_0x26f232){const _0xbdc7ad=a218_0x2ce99b;if(typeof _0x26f232!==_0xbdc7ad(0x1c3)||!_0x26f232[_0xbdc7ad(0x19f)]())throw CliErrors[_0xbdc7ad(0x190)]('Invalid\x20'+_0x426aec+_0xbdc7ad(0x1aa));let _0x272c8a;try{_0x272c8a=new URL(_0x26f232[_0xbdc7ad(0x19f)]());}catch{throw CliErrors[_0xbdc7ad(0x190)](_0xbdc7ad(0x19d)+_0x426aec+':\x20\x22'+_0x26f232+_0xbdc7ad(0x1d0));}if(_0x272c8a['protocol']!==_0xbdc7ad(0x1d2)||_0x272c8a['username']||_0x272c8a[_0xbdc7ad(0x19c)]||_0x272c8a[_0xbdc7ad(0x18e)]!=='/'&&_0x272c8a[_0xbdc7ad(0x18e)]!==''||_0x272c8a[_0xbdc7ad(0x1c8)]||_0x272c8a[_0xbdc7ad(0x18a)])throw CliErrors['validation'](_0xbdc7ad(0x19d)+_0x426aec+_0xbdc7ad(0x1c7),'For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.');return _0x272c8a[_0xbdc7ad(0x183)];}export function normalizeRoutingDomainValue(_0x55800c,_0x31fca3){const _0x34025c=a218_0x2ce99b;if(typeof _0x31fca3===_0x34025c(0x1c3))return normalizeDomainOrigin(_0x55800c,_0x31fca3);if(!_0x31fca3||typeof _0x31fca3!==_0x34025c(0x1a6)||Array[_0x34025c(0x197)](_0x31fca3))throw CliErrors[_0x34025c(0x190)](_0x34025c(0x19d)+_0x55800c+_0x34025c(0x1a2));const _0x340e51=_0x31fca3,_0x4d80de=Object[_0x34025c(0x1ca)](_0x340e51),_0x1a4575=[_0x34025c(0x1cd),...ENTERPRISE_ROUTING_CONSUMERS],_0x2d8703=_0x4d80de[_0x34025c(0x19b)](_0x4ba08b=>!_0x1a4575[_0x34025c(0x1b5)](_0x4ba08b));if(_0x2d8703[_0x34025c(0x1bf)]>0x0)throw CliErrors[_0x34025c(0x190)](_0x34025c(0x182)+_0x55800c+'\x20consumer(s):\x20'+_0x2d8703[_0x34025c(0x1c0)](',\x20'),_0x34025c(0x196)+_0x1a4575[_0x34025c(0x1c0)](',\x20'));if(_0x4d80de[_0x34025c(0x1bf)]===0x0)throw CliErrors['validation'](_0x34025c(0x19d)+_0x55800c+_0x34025c(0x18f));const _0x45aad5={};for(const _0x1e26c2 of _0x4d80de){const _0x434e15=_0x1e26c2;_0x45aad5[_0x434e15]=normalizeDomainOrigin(_0x55800c,_0x340e51[_0x1e26c2]);}return _0x45aad5;}export function normalizeCdnBaseUrl(_0x75633a,_0x44edf7){const _0x5bdfa0=a218_0x2ce99b;if(typeof _0x44edf7!==_0x5bdfa0(0x1c3)||!_0x44edf7[_0x5bdfa0(0x19f)]())throw CliErrors[_0x5bdfa0(0x190)](_0x5bdfa0(0x1b4)+_0x75633a+_0x5bdfa0(0x1d1));const _0x2557f0=_0x44edf7['trim']()['replace'](/\/$/,'');let _0x7ca09e;try{_0x7ca09e=new URL(_0x2557f0);}catch{throw CliErrors[_0x5bdfa0(0x190)](_0x5bdfa0(0x1b4)+_0x75633a+_0x5bdfa0(0x1a4)+_0x44edf7+_0x5bdfa0(0x1d0));}if(_0x7ca09e[_0x5bdfa0(0x1d7)]!==_0x5bdfa0(0x1d2)||_0x7ca09e[_0x5bdfa0(0x1cb)]||_0x7ca09e[_0x5bdfa0(0x19c)]||_0x7ca09e[_0x5bdfa0(0x1c8)]||_0x7ca09e[_0x5bdfa0(0x18a)]||_0x7ca09e[_0x5bdfa0(0x1d5)]['replace'](/\/$/,'')!==_0x2557f0||_0x75633a===_0x5bdfa0(0x1ae)&&_0x7ca09e[_0x5bdfa0(0x183)]!==_0x2557f0)throw CliErrors[_0x5bdfa0(0x190)](_0x5bdfa0(0x1b4)+_0x75633a+':\x20expected\x20an\x20HTTPS\x20'+(_0x75633a==='lovrabet'?_0x5bdfa0(0x183):'base\x20URL')+_0x5bdfa0(0x1d4));return _0x2557f0;}export function resolveEnterpriseRoutingConfig(_0x1c9569){return resolveEnterpriseRoutingManifest(_0x1c9569)?.['domains'];}export function resolveEnterpriseRoutingManifest(_0x513a4d){const _0x424d05=a218_0x2ce99b;if(_0x513a4d===undefined)return undefined;if(!_0x513a4d||typeof _0x513a4d!==_0x424d05(0x1a6)||Array['isArray'](_0x513a4d))throw CliErrors[_0x424d05(0x190)]('Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.');return parseEnterpriseRoutingManifest(_0x513a4d);}export function resolveRoutingDomainValue(_0x1061ba,_0x473ded,_0x43482b){const _0x68ff3f=a218_0x2ce99b;if(typeof _0x473ded==='string')return _0x473ded;const _0x43216a=_0x473ded[_0x43482b]??_0x473ded['default'];if(!_0x43216a)throw CliErrors[_0x68ff3f(0x190)](_0x68ff3f(0x1c9)+_0x1061ba+'\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20'+_0x43482b+_0x68ff3f(0x18d));return _0x43216a;}export function readDomainConfigInput(_0x239f2b){const _0x4c399e=a218_0x2ce99b,_0x2ea07d=isAbsolute(_0x239f2b)?_0x239f2b:resolve(process[_0x4c399e(0x1ba)](),_0x239f2b);if(!existsSync(_0x2ea07d))throw CliErrors['validation']('Domain\x20config\x20file\x20not\x20found:\x20'+_0x2ea07d);let _0x353a26;try{_0x353a26=JSON[_0x4c399e(0x1a9)](readFileSync(_0x2ea07d,_0x4c399e(0x199)));}catch{throw CliErrors['validation'](_0x4c399e(0x189)+_0x2ea07d);}if(!_0x353a26||typeof _0x353a26!==_0x4c399e(0x1a6)||Array[_0x4c399e(0x197)](_0x353a26))throw CliErrors[_0x4c399e(0x190)]('Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.');const _0x1f7635=_0x353a26;if(_0x4c399e(0x1d7)in _0x1f7635)return parseEnterpriseRoutingManifest(_0x1f7635);const _0x5a947c=Object[_0x4c399e(0x1ca)](_0x1f7635)[_0x4c399e(0x19b)](_0x17de15=>!DOMAIN_CONFIG_FIELDS[_0x4c399e(0x1b5)](_0x17de15));if(_0x5a947c[_0x4c399e(0x1bf)]>0x0)throw CliErrors[_0x4c399e(0x190)](_0x4c399e(0x19e)+_0x5a947c['join'](',\x20'),_0x4c399e(0x1d8)+DOMAIN_CONFIG_FIELDS[_0x4c399e(0x1c0)](',\x20'));const _0x16c84={};for(const _0x561796 of DOMAIN_CONFIG_FIELDS){_0x1f7635[_0x561796]!==undefined&&(_0x16c84[_0x561796]=normalizeDomainOrigin(_0x561796,_0x1f7635[_0x561796]));}if(Object[_0x4c399e(0x1ca)](_0x16c84)[_0x4c399e(0x1bf)]===0x0)throw CliErrors[_0x4c399e(0x190)](_0x4c399e(0x18c));return{'mode':_0x4c399e(0x186),'domains':_0x16c84};}export function readDomainConfig(_0x2caae5){const _0x44b4f0=a218_0x2ce99b;return readDomainConfigInput(_0x2caae5)[_0x44b4f0(0x1bc)];}export function resolveDomainConfigInput(_0x148c02){const _0x398235=a218_0x2ce99b,_0x45df49=(_0x148c02[_0x398235(0x1b6)](_0x398235(0x1a7))||'')[_0x398235(0x19f)](),_0x2d336a=_0x45df49?readDomainConfigInput(_0x45df49):{'mode':_0x398235(0x186),'domains':{}},_0x57f720=DOMAIN_CONFIG_FIELDS[_0x398235(0x19b)](_0x1da634=>Boolean((_0x148c02[_0x398235(0x1b6)](DOMAIN_FLAGS[_0x1da634])||'')['trim']()));if(_0x2d336a[_0x398235(0x1c6)]===_0x398235(0x1ac)&&_0x57f720[_0x398235(0x1bf)]>0x0)throw CliErrors[_0x398235(0x190)](_0x398235(0x187),_0x398235(0x1a1));for(const _0x45e623 of DOMAIN_CONFIG_FIELDS){const _0x44e8e7=(_0x148c02[_0x398235(0x1b6)](DOMAIN_FLAGS[_0x45e623])||'')['trim']();if(_0x44e8e7)_0x2d336a[_0x398235(0x1bc)][_0x45e623]=normalizeDomainOrigin(_0x45e623,_0x44e8e7);}return _0x2d336a;}export function resolveDomainFlags(_0x14bd66){const _0x266ce5=a218_0x2ce99b;return resolveDomainConfigInput(_0x14bd66)[_0x266ce5(0x1bc)];}export function parseEnterpriseRoutingManifest(_0x12cd4e){const _0x584657=a218_0x2ce99b,_0x4848aa=Object['keys'](_0x12cd4e)[_0x584657(0x19b)](_0x1aa799=>!ENTERPRISE_ROUTING_TOP_LEVEL_FIELDS['includes'](_0x1aa799));if(_0x4848aa[_0x584657(0x1bf)]>0x0)throw CliErrors[_0x584657(0x190)]('Unsupported\x20enterprise\x20routing\x20field(s):\x20'+_0x4848aa['join'](',\x20'));if(_0x12cd4e[_0x584657(0x1d7)]!==ENTERPRISE_ROUTING_PROTOCOL||_0x12cd4e[_0x584657(0x1ad)]!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x584657(0x190)](_0x584657(0x1a0)+ENTERPRISE_ROUTING_PROTOCOL+_0x584657(0x1b3)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x12cd4e['domains']||typeof _0x12cd4e[_0x584657(0x1bc)]!==_0x584657(0x1a6)||Array[_0x584657(0x197)](_0x12cd4e[_0x584657(0x1bc)]))throw CliErrors['validation'](_0x584657(0x1a3));if(!_0x12cd4e[_0x584657(0x1a8)]||typeof _0x12cd4e['cdn']!==_0x584657(0x1a6)||Array[_0x584657(0x197)](_0x12cd4e['cdn']))throw CliErrors[_0x584657(0x190)]('Invalid\x20enterprise\x20routing\x20manifest:\x20cdn\x20must\x20be\x20an\x20object.');const _0x7b3bec=_0x12cd4e[_0x584657(0x1bc)],_0x3d79aa=Object[_0x584657(0x1ca)](_0x7b3bec)['filter'](_0x37f60a=>!ENTERPRISE_ROUTING_DOMAIN_FIELDS['includes'](_0x37f60a));if(_0x3d79aa[_0x584657(0x1bf)]>0x0)throw CliErrors['validation'](_0x584657(0x192)+_0x3d79aa[_0x584657(0x1c0)](',\x20'),_0x584657(0x1d8)+ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x584657(0x1c0)](',\x20'));const _0x512564=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x584657(0x19b)](_0xc2ac3f=>_0x7b3bec[_0xc2ac3f]===undefined);if(_0x512564['length']>0x0)throw CliErrors[_0x584657(0x190)](_0x584657(0x18b)+_0x512564[_0x584657(0x1c0)](',\x20'));if(_0x7b3bec['localDomain']===undefined!==(_0x7b3bec['certificateDomain']===undefined))throw CliErrors[_0x584657(0x190)](_0x584657(0x1cc));const _0x3bcede=_0x12cd4e['cdn'],_0x3a9e82=Object['keys'](_0x3bcede)['filter'](_0x1b3ff2=>!ENTERPRISE_ROUTING_CDN_FIELDS[_0x584657(0x1b5)](_0x1b3ff2));if(_0x3a9e82[_0x584657(0x1bf)]>0x0)throw CliErrors[_0x584657(0x190)](_0x584657(0x1b1)+_0x3a9e82[_0x584657(0x1c0)](',\x20'),_0x584657(0x1d8)+ENTERPRISE_ROUTING_CDN_FIELDS[_0x584657(0x1c0)](',\x20'));const _0x58eac2=REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS[_0x584657(0x19b)](_0x2ed199=>_0x3bcede[_0x2ed199]===undefined);if(_0x58eac2[_0x584657(0x1bf)]>0x0)throw CliErrors['validation']('Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20CDN\x20field(s):\x20'+_0x58eac2[_0x584657(0x1c0)](',\x20'));const _0x28739b={};for(const _0x2de6c2 of ENTERPRISE_ROUTING_CDN_FIELDS){_0x28739b[_0x2de6c2]=normalizeCdnBaseUrl(_0x2de6c2,_0x3bcede[_0x2de6c2]);}const _0x255936={},_0x381704={};for(const _0x166807 of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x3aa46e=_0x7b3bec[_0x166807];if(_0x3aa46e===undefined)continue;const _0x3fced1=normalizeRoutingDomainValue(_0x166807,_0x3aa46e);_0x255936[_0x166807]=_0x3fced1;const _0x1d38e9=ENTERPRISE_TO_LOCAL_FIELD[_0x166807];_0x1d38e9&&(_0x381704[_0x1d38e9]=resolveRoutingDomainValue(_0x166807,_0x3fced1,ROUTING_CONSUMER));}return{'mode':_0x584657(0x1ac),'domains':_0x381704,'manifestDomains':_0x255936,'cdn':_0x28739b};}
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 +1 @@
1
- function a219_0x5370(_0x27abf2,_0x7d57b5){_0x27abf2=_0x27abf2-0x153;const _0x19d885=a219_0x19d8();let _0x53707f=_0x19d885[_0x27abf2];return _0x53707f;}const a219_0x2dd59d=a219_0x5370;(function(_0x15506f,_0x362e53){const _0x235475=a219_0x5370,_0x1056bf=_0x15506f();while(!![]){try{const _0x17b7e6=parseInt(_0x235475(0x15b))/0x1*(parseInt(_0x235475(0x168))/0x2)+parseInt(_0x235475(0x169))/0x3*(-parseInt(_0x235475(0x162))/0x4)+-parseInt(_0x235475(0x15f))/0x5*(parseInt(_0x235475(0x15c))/0x6)+parseInt(_0x235475(0x156))/0x7*(-parseInt(_0x235475(0x160))/0x8)+-parseInt(_0x235475(0x155))/0x9+parseInt(_0x235475(0x165))/0xa+parseInt(_0x235475(0x163))/0xb;if(_0x17b7e6===_0x362e53)break;else _0x1056bf['push'](_0x1056bf['shift']());}catch(_0x149049){_0x1056bf['push'](_0x1056bf['shift']());}}}(a219_0x19d8,0x4050c));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';function a219_0x19d8(){const _0x584880=['lovrabet-project-domain-routing/v1','origin','410knYJpB','18jQggHo','now','Independent\x20deployment\x20routing\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','/cert/lovrabet-dev.json','3549420gGxLwK','7DIaQfx','rabetbase.domain-routing.json','utf8','local','stringify','2434ztmZZw','17022dVsPgb','independent','.tmp','95cdFwGx','585008mxeVHA','lovrabet','130916kqFMef','2941851aVEqgt','official','2148080sEVHFW'];a219_0x19d8=function(){return _0x584880;};return a219_0x19d8();}import{getOfficialRoutingProfile}from'../constant/routing-profile.js';export const PROJECT_DOMAIN_ROUTING_FILE_NAME=a219_0x2dd59d(0x157);export const PROJECT_DOMAIN_ROUTING_PROTOCOL=a219_0x2dd59d(0x166);export function getProjectDomainRoutingManifest(){const _0x27de68=a219_0x2dd59d,_0xc3687f=getActiveRegion(),_0x5d77b1=isIndependentDeployment(),_0x5f4201=getOfficialRoutingProfile(_0xc3687f),_0x11e738=getLocalDomain(),_0x26ad09=getCertificateDomain(),_0x3b2d46=getActiveCdn();if(!!_0x11e738!==!!_0x26ad09)throw new Error(_0x27de68(0x153));return{'protocol':PROJECT_DOMAIN_ROUTING_PROTOCOL,'mode':_0x5d77b1?_0x27de68(0x15d):_0x27de68(0x164),'region':_0x5d77b1?null:_0xc3687f,'domains':{'user':getUserDomain(),'app':getAppDomain(),'runtime':getRuntimeDomain()},'cdn':_0x3b2d46,'local':_0x11e738&&_0x26ad09?{'origin':_0x11e738,'certificateUrl':_0x26ad09+_0x27de68(0x154)}:_0x5d77b1?{'origin':'http://localhost'}:{'origin':_0x5f4201[_0x27de68(0x159)][_0x27de68(0x167)],'certificateUrl':_0x3b2d46[_0x27de68(0x161)]+_0x27de68(0x154)}};}export function writeProjectDomainRoutingManifest(_0x954c6){const _0xf22a09=a219_0x2dd59d,_0x110bae=getProjectDomainRoutingManifest(),_0xb7b412=join(_0x954c6,PROJECT_DOMAIN_ROUTING_FILE_NAME),_0x5aaa09=_0xb7b412+'.'+process['pid']+'.'+Date[_0xf22a09(0x16a)]()+_0xf22a09(0x15e);try{writeFileSync(_0x5aaa09,JSON[_0xf22a09(0x15a)](_0x110bae,null,0x2)+'\x0a',{'encoding':_0xf22a09(0x158),'mode':0x1a4}),renameSync(_0x5aaa09,_0xb7b412);}catch(_0x4bddd4){try{unlinkSync(_0x5aaa09);}catch{}throw _0x4bddd4;}return{'path':_0xb7b412,'manifest':_0x110bae};}
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 +1 @@
1
- const a220_0x1c8a35=a220_0x4f87;(function(_0x4eda37,_0x2c7376){const _0x2aedea=a220_0x4f87,_0x552bda=_0x4eda37();while(!![]){try{const _0xd6a637=parseInt(_0x2aedea(0x210))/0x1+-parseInt(_0x2aedea(0x20e))/0x2+parseInt(_0x2aedea(0x200))/0x3*(-parseInt(_0x2aedea(0x1f4))/0x4)+parseInt(_0x2aedea(0x207))/0x5+parseInt(_0x2aedea(0x1ef))/0x6*(-parseInt(_0x2aedea(0x1ee))/0x7)+parseInt(_0x2aedea(0x213))/0x8+parseInt(_0x2aedea(0x214))/0x9;if(_0xd6a637===_0x2c7376)break;else _0x552bda['push'](_0x552bda['shift']());}catch(_0x4cd010){_0x552bda['push'](_0x552bda['shift']());}}}(a220_0xc06b,0x6296c));function a220_0x4f87(_0x5e2088,_0x379c6e){_0x5e2088=_0x5e2088-0x1e8;const _0xc06b0=a220_0xc06b();let _0x4f87c8=_0xc06b0[_0x5e2088];return _0x4f87c8;}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=[a220_0x1c8a35(0x20f),a220_0x1c8a35(0x208),'locale',a220_0x1c8a35(0x212),a220_0x1c8a35(0x1fa),a220_0x1c8a35(0x206),'routing','userDomain',a220_0x1c8a35(0x1fd),a220_0x1c8a35(0x216),'skillDomain','kbDomain',a220_0x1c8a35(0x201),a220_0x1c8a35(0x1ec),a220_0x1c8a35(0x1ff)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a220_0x1c8a35(0x1e9),'env',a220_0x1c8a35(0x202),a220_0x1c8a35(0x212),a220_0x1c8a35(0x20f),a220_0x1c8a35(0x208),a220_0x1c8a35(0x205),a220_0x1c8a35(0x206),a220_0x1c8a35(0x215),a220_0x1c8a35(0x1fd),a220_0x1c8a35(0x216),'skillDomain','kbDomain','appDomain','localDomain',a220_0x1c8a35(0x1ff)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};function a220_0xc06b(){const _0x3fcafc=['inherit','certificateDomain','72QgjavH','appDomain','locale','Config\x20key\x20(','filter','apiDir','region','1765775mtPfqy','accessKey','apps','keys','Default\x20page\x20size','entries','has','473224FlUujY','cookie','298225EQIpAT','defaultApp','format','3825760nubYmr','4462227uSJywI','userDomain','runtimeDomain','map','join','appcode','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','object','localDomain','pageSize','596435HEXQlf','42cWcPUe','zh-CN','length','env','string','64756GNWYyY','en-US','defaultFormat','number','deploymentSync','Auth\x20cookie','riskLevel','app','Access\x20key','apiDomain'];a220_0xc06b=function(){return _0x3fcafc;};return a220_0xc06b();}export function formatConfigKeyList(_0x2af389){const _0x34b3d7=a220_0x1c8a35;return[..._0x2af389][_0x34b3d7(0x1e8)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x42c087){const _0xe2577f=a220_0x1c8a35;return TOP_LEVEL_CONFIG_KEYS[_0xe2577f(0x20d)](_0x42c087);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x5ae079=a220_0x1c8a35;return _0x5ae079(0x203)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a220_0x1c8a35(0x1f2),'apiDir':a220_0x1c8a35(0x205),'cookie':a220_0x1c8a35(0x20f),'accessKey':a220_0x1c8a35(0x208),'defaultFormat':a220_0x1c8a35(0x212),'pageSize':'pageSize','riskLevel':a220_0x1c8a35(0x1fa),'locale':a220_0x1c8a35(0x202)};export function getAppProfileFlagDefs(){const _0x1509d8=a220_0x1c8a35;return[{'name':_0x1509d8(0x1f2),'type':_0x1509d8(0x1f3),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':'string','description':'API\x20directory\x20path'},{'name':_0x1509d8(0x20f),'type':_0x1509d8(0x1f3),'description':_0x1509d8(0x1f9),'hidden':!![]},{'name':_0x1509d8(0x208),'type':_0x1509d8(0x1f3),'description':_0x1509d8(0x1fc),'hidden':!![]},{'name':_0x1509d8(0x1f6),'type':_0x1509d8(0x1f3),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x1509d8(0x1ed),'type':_0x1509d8(0x1f7),'description':_0x1509d8(0x20b)},{'name':_0x1509d8(0x1fa),'type':_0x1509d8(0x1f3),'description':'Risk\x20level','enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x1509d8(0x1f3),'description':_0x1509d8(0x1ea)},...getDeploymentSyncProfileFlagDefs()];}export function collectAppProfileOverrides(_0xcc55d9){const _0x5e48ac=a220_0x1c8a35,_0x21a4d2={};for(const [_0x10fba2,_0x2f3205]of Object[_0x5e48ac(0x20c)](APP_PROFILE_FLAG_KEY_MAP)){const _0x11b749=_0xcc55d9(_0x10fba2);if(!_0x11b749)continue;_0x21a4d2[_0x2f3205]=_0x2f3205===_0x5e48ac(0x1ed)?Number(_0x11b749):_0x11b749;}const _0x383cbc=collectDeploymentSyncProfile(_0xcc55d9);if(_0x383cbc)_0x21a4d2[_0x5e48ac(0x1f8)]=_0x383cbc;return _0x21a4d2;}export function buildAppProfileListFields(_0x3bd86f){const _0x277e0c=a220_0x1c8a35;return{'env':_0x3bd86f[_0x277e0c(0x1f2)]??null,'apiDir':_0x3bd86f[_0x277e0c(0x205)]??null,'hasCookie':!!_0x3bd86f[_0x277e0c(0x20f)],'hasAccessKey':!!_0x3bd86f[_0x277e0c(0x208)],'format':_0x3bd86f['format']??null,'pageSize':_0x3bd86f[_0x277e0c(0x1ed)]??null,'riskLevel':_0x3bd86f['riskLevel']??null,'locale':_0x3bd86f[_0x277e0c(0x202)]??null,'deploymentSync':_0x3bd86f[_0x277e0c(0x1f8)]??null};}export function buildAppDoctorFields(_0x4cdc04,_0xfbde20){const _0x75ca7=a220_0x1c8a35;return{'env':{'value':_0x4cdc04[_0x75ca7(0x1f2)]||_0xfbde20[_0x75ca7(0x1f2)],'source':_0x4cdc04[_0x75ca7(0x1f2)]?'app':_0x75ca7(0x1fe)},'apiDir':{'value':_0x4cdc04['apiDir']||_0xfbde20[_0x75ca7(0x205)],'source':_0x4cdc04[_0x75ca7(0x205)]?'app':_0x75ca7(0x1fe)},'cookie':{'value':_0x4cdc04[_0x75ca7(0x20f)]||_0xfbde20[_0x75ca7(0x20f)],'source':_0x4cdc04[_0x75ca7(0x20f)]?_0x75ca7(0x1fb):_0x75ca7(0x1fe)},'accessKey':{'value':_0x4cdc04[_0x75ca7(0x208)]||_0xfbde20[_0x75ca7(0x208)],'source':_0x4cdc04[_0x75ca7(0x208)]?'app':_0x75ca7(0x1fe)}};}export function buildCanonicalAppConfig(_0x181e59,_0x505bfb){const _0x57af18=a220_0x1c8a35,_0x565247=_0x181e59[_0x57af18(0x217)](_0x4d86d0=>String(_0x4d86d0||'')['trim']())[_0x57af18(0x204)](Boolean);if(_0x565247[_0x57af18(0x1f1)]===0x0)return{};const _0x569d87={};for(const _0x425f7c of _0x565247){_0x569d87[_0x425f7c]=_0x505bfb?{'appcode':_0x425f7c,'env':_0x505bfb}:{'appcode':_0x425f7c};}return _0x565247[_0x57af18(0x1f1)]>0x1?{'apps':_0x569d87,'defaultApp':_0x565247[0x0]}:{'apps':_0x569d87};}export function normalizeStoredDefaultApp(_0x2a660e,_0x3f77c1){const _0x571aed=a220_0x1c8a35,_0x5f1e92=_0x2a660e[_0x571aed(0x209)]&&typeof _0x2a660e[_0x571aed(0x209)]===_0x571aed(0x1eb)?_0x2a660e[_0x571aed(0x209)]:{},_0xfdaf5d=Object[_0x571aed(0x20a)](_0x5f1e92);if(_0xfdaf5d[_0x571aed(0x1f1)]<=0x1)return delete _0x2a660e['defaultApp'],undefined;const _0x50f723=typeof _0x2a660e['defaultApp']===_0x571aed(0x1f3)&&_0x5f1e92[_0x2a660e[_0x571aed(0x211)]]?_0x2a660e[_0x571aed(0x211)]:undefined,_0x413a2f=_0x3f77c1&&_0x5f1e92[_0x3f77c1]?_0x3f77c1:_0x50f723;if(_0x413a2f)return _0x2a660e[_0x571aed(0x211)]=_0x413a2f,_0x413a2f;return delete _0x2a660e[_0x571aed(0x211)],undefined;}export function buildCanonicalProjectConfig(_0xfa5620,_0x351b54){const _0x17eac1=a220_0x1c8a35,{appCodes:appCodes=[],env:_0x1a823c,metadata:_0x3dfed8}=_0x351b54,_0x370072={..._0xfa5620,..._0x3dfed8||{}};delete _0x370072[_0x17eac1(0x1e9)],delete _0x370072[_0x17eac1(0x1fb)];if(_0x1a823c)_0x370072['env']=_0x1a823c;else!_0x370072[_0x17eac1(0x1f2)]&&(_0x370072[_0x17eac1(0x1f2)]=DEFAULT_CONFIG_VALUES[_0x17eac1(0x1f2)]);const _0x4006cd=buildCanonicalAppConfig(appCodes,_0x370072[_0x17eac1(0x1f2)]);if(Object[_0x17eac1(0x20a)](_0x4006cd)['length']>0x0){_0x370072[_0x17eac1(0x209)]=_0x4006cd[_0x17eac1(0x209)];if(_0x4006cd[_0x17eac1(0x211)])_0x370072[_0x17eac1(0x211)]=_0x4006cd[_0x17eac1(0x211)];else delete _0x370072['defaultApp'];}return _0x370072;}const LOCALE_MAP={'zh':a220_0x1c8a35(0x1f0),'zh-cn':'zh-CN','zh_cn':'zh-CN','en':'en-US','en-us':'en-US','en_us':a220_0x1c8a35(0x1f5)};export function normalizeLocale(_0x243c1c){if(!_0x243c1c)return null;return LOCALE_MAP[_0x243c1c['toLowerCase']()]??null;}
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 +1 @@
1
- const a221_0x4206c1=a221_0x54d8;function a221_0x54d8(_0x4707d2,_0x74f889){_0x4707d2=_0x4707d2-0x190;const _0x320041=a221_0x3200();let _0x54d8e3=_0x320041[_0x4707d2];return _0x54d8e3;}(function(_0x3fd446,_0xe0c9c6){const _0x191af4=a221_0x54d8,_0x4228fd=_0x3fd446();while(!![]){try{const _0x3f5e76=parseInt(_0x191af4(0x197))/0x1*(-parseInt(_0x191af4(0x191))/0x2)+parseInt(_0x191af4(0x199))/0x3+parseInt(_0x191af4(0x192))/0x4+-parseInt(_0x191af4(0x190))/0x5+-parseInt(_0x191af4(0x196))/0x6*(parseInt(_0x191af4(0x195))/0x7)+parseInt(_0x191af4(0x193))/0x8+parseInt(_0x191af4(0x198))/0x9;if(_0x3f5e76===_0xe0c9c6)break;else _0x4228fd['push'](_0x4228fd['shift']());}catch(_0x2d770c){_0x4228fd['push'](_0x4228fd['shift']());}}}(a221_0x3200,0xea555));function a221_0x3200(){const _0x198cd1=['927651GigsEO','30302901blwjsi','2845092jLyNkD','8136110tSrscJ','4oBcHJk','496576nKJHHx','9118208EejAsr','https://g.lovrabet.com/dist/rabetbase-cli','3010LaXBIi','15864xYetmY'];a221_0x3200=function(){return _0x198cd1;};return a221_0x3200();}export const RABETBASE_CDN_BASE_URL=a221_0x4206c1(0x194);export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+'/config/index.json';export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+'/templates/projects';
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 +1 @@
1
- function a222_0x8463(_0x210ff0,_0x494552){_0x210ff0=_0x210ff0-0x6b;const _0x4c0c8a=a222_0x4c0c();let _0x8463ef=_0x4c0c8a[_0x210ff0];return _0x8463ef;}function a222_0x4c0c(){const _0x1b497e=['label','sqlcode','4327370FJYTHE','menuIds','sort','global','Use\x20remote','Menu\x20label','expected-children-count','boolean','meowKey','stdin','function-node','<expr>','confirm','<code>','Use\x20project\x20config\x20scope','skipImports','page','parentId','Name','Schemas','tags','Reveal\x20sensitive\x20value','3048224qrjQQG','enableBffSave','Parent\x20menu\x20id','expectedChildrenCount','sqlName','Description','format','Expected\x20current\x20child\x20count','Skip\x20confirmation\x20for\x20high-risk\x20writes','watch','params','3627680VVVtqU','verbose','Expected\x20current\x20menu\x20path','string','keyword','target-env','rabetbase','schemas','functionNode','description-file','@lovrabet/rabetbase-cli','2VOdOLW','Use\x20the\x20base\x20database\x20connection','project','output','all','operationType','DB\x20ID','sql','menu-ids','Output\x20format','Force\x20non-interactive\x20mode\x20(CI)','Target\x20connection\x20environment','Expected\x20current\x20parent\x20menu\x20id','Page\x20size','Confirm\x20destructive\x20action','Menu\x20sort\x20value','dbid','title','expectParentId','description','4967315BRiaJW','Preview\x20operation\x20without\x20executing','app','File\x20path','Title','327444sbsRtU','Select\x20app\x20profile\x20by\x20name','Operation\x20type','339564zMfMkt','target','Config\x20value','taskId','clear','Comma-separated\x20menu\x20IDs','Clear','query','reveal','SQL\x20code','env','expect-parent-id','77wAGFdb','SQL\x20name','file','Target\x20path','9HCKaQD','task-id','expect-path','Keyword\x20filter','datasetcode','appcode','descriptionFile','non-interactive','Rabetbase\x20CLI','production\x20|\x20daily','yes','codes','locale','sqlname','pagesize','Function\x20node','zh-CN\x20|\x20en-US','parent-id','Code\x20filter','dry-run','<name>','SQL\x20string','Dataset\x20code','operation','key','force','dbId','type','Watch\x20mode','Apply\x20to\x20all','topk','1410039EuYqoE','expected-count','direct','code','name','Verbose\x20output','dryRun','help','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','Config\x20key','json\x20|\x20pretty\x20|\x20compress'];a222_0x4c0c=function(){return _0x1b497e;};return a222_0x4c0c();}const a222_0x3f0a8f=a222_0x8463;(function(_0x443270,_0x52dc96){const _0x5aa758=a222_0x8463,_0x5effc5=_0x443270();while(!![]){try{const _0x6a187=-parseInt(_0x5aa758(0x9a))/0x1+parseInt(_0x5aa758(0x7e))/0x2*(parseInt(_0x5aa758(0xc9))/0x3)+parseInt(_0x5aa758(0x73))/0x4+parseInt(_0x5aa758(0x92))/0x5+parseInt(_0x5aa758(0x97))/0x6*(-parseInt(_0x5aa758(0xa6))/0x7)+parseInt(_0x5aa758(0xec))/0x8*(-parseInt(_0x5aa758(0xaa))/0x9)+-parseInt(_0x5aa758(0xd6))/0xa;if(_0x6a187===_0x52dc96)break;else _0x5effc5['push'](_0x5effc5['shift']());}catch(_0xe5a36a){_0x5effc5['push'](_0x5effc5['shift']());}}}(a222_0x4c0c,0x96931));export const CLI_BIN_NAME=a222_0x3f0a8f(0x79);export const CLI_DISPLAY_NAME=a222_0x3f0a8f(0xb2);export const NPM_PACKAGE_NAME=a222_0x3f0a8f(0x7d);export const GLOBAL_FLAGS=[{'name':a222_0x3f0a8f(0xaf),'meowKey':a222_0x3f0a8f(0xaf),'type':a222_0x3f0a8f(0x76),'description':'Override\x20appcode','hint':a222_0x3f0a8f(0xe3)},{'name':a222_0x3f0a8f(0x94),'meowKey':a222_0x3f0a8f(0x94),'type':'string','description':a222_0x3f0a8f(0x98),'hint':a222_0x3f0a8f(0xbe)},{'name':a222_0x3f0a8f(0xa4),'meowKey':a222_0x3f0a8f(0xa4),'type':a222_0x3f0a8f(0x76),'description':'Environment','hint':a222_0x3f0a8f(0xb3)},{'name':'format','meowKey':'format','type':'string','description':a222_0x3f0a8f(0x87),'hint':a222_0x3f0a8f(0xd3)},{'name':'jq','meowKey':'jq','type':a222_0x3f0a8f(0x76),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a222_0x3f0a8f(0xe1)},{'name':'dry-run','meowKey':a222_0x3f0a8f(0xcf),'type':a222_0x3f0a8f(0xdd),'description':a222_0x3f0a8f(0x93)},{'name':a222_0x3f0a8f(0xb4),'meowKey':a222_0x3f0a8f(0xb4),'type':a222_0x3f0a8f(0xdd),'description':a222_0x3f0a8f(0x70)},{'name':a222_0x3f0a8f(0xb1),'meowKey':'nonInteractive','type':'boolean','description':a222_0x3f0a8f(0x88)},{'name':a222_0x3f0a8f(0xd9),'meowKey':a222_0x3f0a8f(0xd9),'type':a222_0x3f0a8f(0xdd),'description':'Use\x20global\x20config\x20scope'},{'name':a222_0x3f0a8f(0x80),'meowKey':a222_0x3f0a8f(0x80),'type':a222_0x3f0a8f(0xdd),'description':a222_0x3f0a8f(0xe4)},{'name':'ci','meowKey':'ci','type':'boolean','description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a222_0x3f0a8f(0xd0),'meowKey':a222_0x3f0a8f(0xd0),'type':'boolean','description':'Show\x20help'},{'name':'locale','meowKey':a222_0x3f0a8f(0xb6),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0xd1),'hidden':!![],'hint':a222_0x3f0a8f(0xba)},{'name':a222_0x3f0a8f(0xcd),'meowKey':a222_0x3f0a8f(0xcd),'type':'string','description':a222_0x3f0a8f(0xe8),'hidden':!![]},{'name':a222_0x3f0a8f(0x8f),'meowKey':a222_0x3f0a8f(0x8f),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0x96),'hidden':!![]},{'name':'query','meowKey':a222_0x3f0a8f(0xa1),'type':a222_0x3f0a8f(0x76),'description':'Search\x20query','hidden':!![]},{'name':a222_0x3f0a8f(0xc8),'meowKey':a222_0x3f0a8f(0xc8),'type':a222_0x3f0a8f(0x76),'description':'Maximum\x20search\x20hits','hidden':!![]},{'name':a222_0x3f0a8f(0x9e),'meowKey':a222_0x3f0a8f(0x9e),'type':a222_0x3f0a8f(0xdd),'description':a222_0x3f0a8f(0xa0),'hidden':!![]},{'name':a222_0x3f0a8f(0x71),'meowKey':a222_0x3f0a8f(0x71),'type':'boolean','description':a222_0x3f0a8f(0xc6),'hidden':!![]},{'name':a222_0x3f0a8f(0x81),'meowKey':a222_0x3f0a8f(0x81),'type':a222_0x3f0a8f(0x76),'description':'Output\x20path','hidden':!![]},{'name':a222_0x3f0a8f(0x72),'meowKey':a222_0x3f0a8f(0x72),'type':a222_0x3f0a8f(0x76),'description':'JSON\x20params','hidden':!![]},{'name':'datasetcode','meowKey':a222_0x3f0a8f(0xae),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0xc0),'hidden':!![]},{'name':a222_0x3f0a8f(0x82),'meowKey':a222_0x3f0a8f(0x82),'type':a222_0x3f0a8f(0xdd),'description':a222_0x3f0a8f(0xc7),'hidden':!![]},{'name':'enable-bff-save','meowKey':a222_0x3f0a8f(0xed),'type':a222_0x3f0a8f(0xdd),'description':'Enable\x20Backend\x20Function\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a222_0x3f0a8f(0x76),'description':'Record\x20ID','hidden':!![]},{'name':a222_0x3f0a8f(0xc5),'meowKey':a222_0x3f0a8f(0xc5),'type':a222_0x3f0a8f(0x76),'description':'Type\x20filter','hidden':!![]},{'name':a222_0x3f0a8f(0xa8),'meowKey':a222_0x3f0a8f(0xa8),'type':'string','description':a222_0x3f0a8f(0x95),'hidden':!![]},{'name':a222_0x3f0a8f(0xd5),'meowKey':a222_0x3f0a8f(0xd5),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0xa3),'hidden':!![]},{'name':'sql-name','meowKey':a222_0x3f0a8f(0x6c),'type':'string','description':a222_0x3f0a8f(0xa7),'hidden':!![]},{'name':a222_0x3f0a8f(0xb7),'meowKey':a222_0x3f0a8f(0xb7),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0xa7),'hidden':!![]},{'name':'db-id','meowKey':a222_0x3f0a8f(0xc4),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0x84),'hidden':!![]},{'name':a222_0x3f0a8f(0x8e),'meowKey':a222_0x3f0a8f(0x8e),'type':'string','description':a222_0x3f0a8f(0x84),'hidden':!![]},{'name':a222_0x3f0a8f(0x91),'meowKey':a222_0x3f0a8f(0x91),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0x6d),'hidden':!![]},{'name':a222_0x3f0a8f(0x7c),'meowKey':a222_0x3f0a8f(0xb0),'type':a222_0x3f0a8f(0x76),'description':'Description\x20file','hidden':!![]},{'name':a222_0x3f0a8f(0xe6),'meowKey':a222_0x3f0a8f(0xe6),'type':'string','description':'Page\x20number','hidden':!![]},{'name':a222_0x3f0a8f(0xb8),'meowKey':a222_0x3f0a8f(0xb8),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0x8b),'hidden':!![]},{'name':a222_0x3f0a8f(0x77),'meowKey':a222_0x3f0a8f(0x77),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0xad),'hidden':!![]},{'name':a222_0x3f0a8f(0xcc),'meowKey':'code','type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0xbc),'hidden':!![]},{'name':'sql','meowKey':a222_0x3f0a8f(0x85),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0xbf),'hidden':!![]},{'name':a222_0x3f0a8f(0x7a),'meowKey':'schemas','type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0xe9),'hidden':!![]},{'name':'operation','meowKey':a222_0x3f0a8f(0xc1),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0x99),'hidden':!![]},{'name':a222_0x3f0a8f(0x9b),'meowKey':a222_0x3f0a8f(0x9b),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0xa9),'hidden':!![]},{'name':'skip-imports','meowKey':a222_0x3f0a8f(0xe5),'type':a222_0x3f0a8f(0xdd),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':a222_0x3f0a8f(0xc2),'meowKey':a222_0x3f0a8f(0xc2),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0xd2),'hidden':!![]},{'name':'value','meowKey':'value','type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0x9c),'hidden':!![]},{'name':'tags','meowKey':a222_0x3f0a8f(0xea),'type':a222_0x3f0a8f(0x76),'description':'Tags','hidden':!![]},{'name':a222_0x3f0a8f(0xdf),'meowKey':'stdin','type':a222_0x3f0a8f(0xdd),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':'from-env','meowKey':'fromEnv','type':a222_0x3f0a8f(0x76),'description':'Read\x20value\x20from\x20environment\x20variable','hidden':!![]},{'name':'reveal','meowKey':a222_0x3f0a8f(0xa2),'type':'boolean','description':a222_0x3f0a8f(0xeb),'hidden':!![]},{'name':a222_0x3f0a8f(0xc3),'meowKey':'force','type':a222_0x3f0a8f(0xdd),'description':'Force\x20overwrite','hidden':!![]},{'name':'confirm','meowKey':a222_0x3f0a8f(0xe2),'type':'boolean','description':a222_0x3f0a8f(0x8c),'hidden':!![]},{'name':'remote','meowKey':'remote','type':a222_0x3f0a8f(0xdd),'description':a222_0x3f0a8f(0xda),'hidden':!![]},{'name':a222_0x3f0a8f(0x74),'meowKey':a222_0x3f0a8f(0x74),'type':a222_0x3f0a8f(0xdd),'description':a222_0x3f0a8f(0xce),'hidden':!![]},{'name':a222_0x3f0a8f(0xca),'meowKey':'expectedCount','type':'string','description':'Expected\x20affected\x20count','hidden':!![]},{'name':a222_0x3f0a8f(0xd4),'meowKey':a222_0x3f0a8f(0xd4),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0xdb),'hidden':!![]},{'name':a222_0x3f0a8f(0xbb),'meowKey':a222_0x3f0a8f(0xe7),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0xee),'hidden':!![]},{'name':a222_0x3f0a8f(0xd8),'meowKey':'sort','type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0x8d),'hidden':!![]},{'name':a222_0x3f0a8f(0xa5),'meowKey':a222_0x3f0a8f(0x90),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0x8a),'hidden':!![]},{'name':a222_0x3f0a8f(0xac),'meowKey':'expectPath','type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0x75),'hidden':!![]},{'name':a222_0x3f0a8f(0xdc),'meowKey':a222_0x3f0a8f(0x6b),'type':'string','description':a222_0x3f0a8f(0x6f),'hidden':!![]},{'name':a222_0x3f0a8f(0x86),'meowKey':a222_0x3f0a8f(0xd7),'type':'string','description':a222_0x3f0a8f(0x9f),'hidden':!![]},{'name':a222_0x3f0a8f(0xab),'meowKey':a222_0x3f0a8f(0x9d),'type':'string','description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':'operation-type','meowKey':a222_0x3f0a8f(0x83),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0x99),'hidden':!![]},{'name':a222_0x3f0a8f(0xe0),'meowKey':a222_0x3f0a8f(0x7b),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0xb9),'hidden':!![]},{'name':a222_0x3f0a8f(0x78),'meowKey':'targetEnv','type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0x89),'hidden':!![]},{'name':a222_0x3f0a8f(0xcb),'meowKey':a222_0x3f0a8f(0xcb),'type':a222_0x3f0a8f(0xdd),'description':a222_0x3f0a8f(0x7f),'hidden':!![]},{'name':'codes','meowKey':a222_0x3f0a8f(0xb5),'type':a222_0x3f0a8f(0x76),'description':'Comma-separated\x20metadata\x20codes','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a222_0x3f0a8f(0xaf),a222_0x3f0a8f(0x94),'env',a222_0x3f0a8f(0x6e),'jq',a222_0x3f0a8f(0xbd),'yes',a222_0x3f0a8f(0xb1),'ci']);export function buildMeowFlags(){const _0x268a89=a222_0x3f0a8f;return Object['fromEntries'](GLOBAL_FLAGS['map'](_0x106332=>[_0x106332[_0x268a89(0xde)],{'type':_0x106332[_0x268a89(0xc5)]}]));}
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 +1 @@
1
- const a223_0x420ab0=a223_0x283e;(function(_0x41a6d6,_0x2f8789){const _0x272377=a223_0x283e,_0x2e7839=_0x41a6d6();while(!![]){try{const _0x892456=parseInt(_0x272377(0xea))/0x1+parseInt(_0x272377(0xf4))/0x2*(parseInt(_0x272377(0xef))/0x3)+parseInt(_0x272377(0xec))/0x4*(-parseInt(_0x272377(0xf6))/0x5)+parseInt(_0x272377(0xf5))/0x6*(-parseInt(_0x272377(0xf3))/0x7)+parseInt(_0x272377(0xed))/0x8*(parseInt(_0x272377(0xeb))/0x9)+-parseInt(_0x272377(0xf2))/0xa*(parseInt(_0x272377(0xf0))/0xb)+parseInt(_0x272377(0xf8))/0xc;if(_0x892456===_0x2f8789)break;else _0x2e7839['push'](_0x2e7839['shift']());}catch(_0xeac796){_0x2e7839['push'](_0x2e7839['shift']());}}}(a223_0x34ea,0x8401f));function a223_0x34ea(){const _0x26694e=['18487272sElyHc','write','18924bWsKqY','1640889KegddI','4rUqAnw','24JFHcVc','production','229575TInBLk','342859JuuIWu','compress','40DadsgD','7iaAafu','4DjFuJP','5506506vPLmdb','3382065RRipzZ','en-US'];a223_0x34ea=function(){return _0x26694e;};return a223_0x34ea();}import{DEFAULT_API_DIR}from'../constant/paths.js';function a223_0x283e(_0x18ae0f,_0x3c0895){_0x18ae0f=_0x18ae0f-0xe9;const _0x34ea0d=a223_0x34ea();let _0x283e41=_0x34ea0d[_0x18ae0f];return _0x283e41;}export const DEFAULT_CONFIG_VALUES={'env':a223_0x420ab0(0xee),'format':a223_0x420ab0(0xf1),'locale':a223_0x420ab0(0xf7),'riskLevel':a223_0x420ab0(0xe9),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a223_0x420ab0(0xf1);
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 +1 @@
1
- const a224_0x37b967=a224_0x3153;(function(_0x3d75b9,_0x345009){const _0x35cad9=a224_0x3153,_0x2ac1cc=_0x3d75b9();while(!![]){try{const _0x380be3=parseInt(_0x35cad9(0x82))/0x1+-parseInt(_0x35cad9(0x72))/0x2+-parseInt(_0x35cad9(0x78))/0x3*(-parseInt(_0x35cad9(0x74))/0x4)+parseInt(_0x35cad9(0x89))/0x5+-parseInt(_0x35cad9(0x88))/0x6*(parseInt(_0x35cad9(0x7b))/0x7)+parseInt(_0x35cad9(0x85))/0x8+parseInt(_0x35cad9(0x79))/0x9*(parseInt(_0x35cad9(0x7c))/0xa);if(_0x380be3===_0x345009)break;else _0x2ac1cc['push'](_0x2ac1cc['shift']());}catch(_0x541c48){_0x2ac1cc['push'](_0x2ac1cc['shift']());}}}(a224_0x1e19,0x9d330));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 _0x3bfd59=a224_0x3153,_0x36f825=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0x36f825[_0x3bfd59(0x84)][_0x3bfd59(0x76)]:_0x36f825[_0x3bfd59(0x84)][_0x3bfd59(0x7f)]??_0x36f825['serviceDomains'][_0x3bfd59(0x76)];}export function initDomains(_0x309990){const _0x2af925=a224_0x3153;customApiDomain=_0x309990?.[_0x2af925(0x83)],customUserDomain=_0x309990?.[_0x2af925(0x8c)],customRuntimeDomain=_0x309990?.[_0x2af925(0x7a)],customSkillDomain=_0x309990?.['skillDomain'],customKbDomain=_0x309990?.[_0x2af925(0x86)],customAppDomain=_0x309990?.[_0x2af925(0x8a)],customLocalDomain=_0x309990?.[_0x2af925(0x81)],customCertificateDomain=_0x309990?.['certificateDomain'],customCdn=_0x309990?.[_0x2af925(0x7e)],activeRegion=_0x309990?.['region']??DEFAULT_LOVRABET_REGION;}function a224_0x3153(_0x44050,_0xbb6645){_0x44050=_0x44050-0x72;const _0x1e191c=a224_0x1e19();let _0x315332=_0x1e191c[_0x44050];return _0x315332;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a224_0x37b967(0x8b)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()['api'];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()['runtime'];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()['skill'];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a224_0x37b967(0x7d)];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 _0x399cff=a224_0x37b967;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x399cff(0x87)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}function a224_0x1e19(){const _0xfcfece=['11031cqDCIN','2763NoNNRI','runtimeDomain','777kbxXOM','35410BXdXKo','app','cdn','daily','/app/','localDomain','405268HBjjyV','apiDomain','serviceDomains','1308208teEykx','kbDomain','runtime','43584QnVJZQ','1726870AXWtlC','appDomain','user','userDomain','1374224mRXrZW','/web-app/app/','148eYLWuL','trim','production','hostname'];a224_0x1e19=function(){return _0xfcfece;};return a224_0x1e19();}export const getAppBaseUrl=_0x49ec57=>{const _0x234942=a224_0x37b967,_0x2b1d2c=encodeURIComponent(_0x49ec57[_0x234942(0x75)]());return isProduction(getEnv())?getAppDomain()+_0x234942(0x80)+_0x2b1d2c:getAppDomain()+_0x234942(0x73)+_0x2b1d2c;};export const getPublishedAppDomain=_0x40d22b=>{const _0x5d9f3a=a224_0x37b967,_0x4a4cdd=new URL(getAppDomain());return _0x4a4cdd[_0x5d9f3a(0x77)]=_0x40d22b['trim']()+'.'+_0x4a4cdd['hostname'],_0x4a4cdd['origin'];};
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 +1 @@
1
- const a225_0x19883c=a225_0x1faf;(function(_0xe08d84,_0x5c71f4){const _0x4a309d=a225_0x1faf,_0x55e96d=_0xe08d84();while(!![]){try{const _0x44eab6=parseInt(_0x4a309d(0x7a))/0x1+-parseInt(_0x4a309d(0x70))/0x2+parseInt(_0x4a309d(0x6e))/0x3+parseInt(_0x4a309d(0x71))/0x4+parseInt(_0x4a309d(0x79))/0x5*(-parseInt(_0x4a309d(0x73))/0x6)+parseInt(_0x4a309d(0x77))/0x7*(parseInt(_0x4a309d(0x75))/0x8)+parseInt(_0x4a309d(0x78))/0x9*(-parseInt(_0x4a309d(0x76))/0xa);if(_0x44eab6===_0x5c71f4)break;else _0x55e96d['push'](_0x55e96d['shift']());}catch(_0x5e6146){_0x55e96d['push'](_0x55e96d['shift']());}}}(a225_0x4598,0x4fced));export const RABETBASE_ENV_VALUES=[a225_0x19883c(0x74),'daily'];export function normalizeEnv(_0x1d7b6f){const _0x23ac6a=a225_0x19883c;return _0x1d7b6f==='online'?_0x23ac6a(0x74):_0x1d7b6f;}function a225_0x4598(){const _0x2e451b=['648111fceBbH','227466LJVLPP','daily','659764QLECqx','1795156OezjwF','development','312vftjzd','production','32OFWHYz','164530pBbrKp','273259LGKron','243wevHLQ','21910RCLlXX'];a225_0x4598=function(){return _0x2e451b;};return a225_0x4598();}export function isProduction(_0x37f16f){return normalizeEnv(_0x37f16f)==='production';}export function isDaily(_0x5ceb01){const _0x9a2fe2=a225_0x19883c;return normalizeEnv(_0x5ceb01)===_0x9a2fe2(0x6f);}function a225_0x1faf(_0x5029c7,_0x36627f){_0x5029c7=_0x5029c7-0x6e;const _0x459831=a225_0x4598();let _0x1fafa1=_0x459831[_0x5029c7];return _0x1fafa1;}export function isDev(_0x148798){const _0x50d1a7=a225_0x19883c,_0x4c8ab2=normalizeEnv(_0x148798);return _0x4c8ab2===_0x50d1a7(0x72)||_0x4c8ab2==='dev';}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a225_0x19883c(0x74));export function getEnv(){return env;}export function initEnv(_0x5d8ff0){env=normalizeEnv(_0x5d8ff0);}
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 +1 @@
1
- const a226_0x43bae5=a226_0x5487;(function(_0x515810,_0x6290d2){const _0x40a404=a226_0x5487,_0x1aa2b1=_0x515810();while(!![]){try{const _0x25b049=-parseInt(_0x40a404(0x16b))/0x1*(-parseInt(_0x40a404(0x16c))/0x2)+parseInt(_0x40a404(0x16e))/0x3+-parseInt(_0x40a404(0x166))/0x4+parseInt(_0x40a404(0x167))/0x5*(parseInt(_0x40a404(0x171))/0x6)+-parseInt(_0x40a404(0x170))/0x7+parseInt(_0x40a404(0x16a))/0x8*(parseInt(_0x40a404(0x16f))/0x9)+parseInt(_0x40a404(0x16d))/0xa*(-parseInt(_0x40a404(0x165))/0xb);if(_0x25b049===_0x6290d2)break;else _0x1aa2b1['push'](_0x1aa2b1['shift']());}catch(_0xaa5b25){_0x1aa2b1['push'](_0x1aa2b1['shift']());}}}(a226_0x3d5a,0x8849b));function a226_0x5487(_0x1b8e49,_0x346aeb){_0x1b8e49=_0x1b8e49-0x165;const _0x3d5a5f=a226_0x3d5a();let _0x5487b4=_0x3d5a5f[_0x1b8e49];return _0x5487b4;}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a226_0x43bae5(0x168),a226_0x43bae5(0x169),'compress'];function a226_0x3d5a(){const _0x4b7280=['5937253tJahfJ','1880586tFhjtS','2134649nlZCTz','470144YtontQ','5tykdPT','json','pretty','2354232lqOjCx','110441FgqoGU','2qprlgL','10xzdiaS','2999574UvEkLx','9renmOn'];a226_0x3d5a=function(){return _0x4b7280;};return a226_0x3d5a();}
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 +1 @@
1
- const a227_0x410e60=a227_0x4046;function a227_0x224f(){const _0x7d412f=['1153345iyATRm','13437528DiERmB','501NSbcpd','6237665pFJsQt','125522jMBjEH','1779402beXozu','8670pswiXu','./src/api','1861056wSpjmY'];a227_0x224f=function(){return _0x7d412f;};return a227_0x224f();}(function(_0x1e678f,_0x4eaf1b){const _0x469179=a227_0x4046,_0x24de79=_0x1e678f();while(!![]){try{const _0x55c346=parseInt(_0x469179(0x1dc))/0x1+-parseInt(_0x469179(0x1de))/0x2*(-parseInt(_0x469179(0x1da))/0x3)+parseInt(_0x469179(0x1e0))/0x4+parseInt(_0x469179(0x1d8))/0x5+-parseInt(_0x469179(0x1dd))/0x6+parseInt(_0x469179(0x1db))/0x7+-parseInt(_0x469179(0x1d9))/0x8;if(_0x55c346===_0x4eaf1b)break;else _0x24de79['push'](_0x24de79['shift']());}catch(_0x7d84a6){_0x24de79['push'](_0x24de79['shift']());}}}(a227_0x224f,0x705cd));function a227_0x4046(_0x1e3658,_0x2a34aa){_0x1e3658=_0x1e3658-0x1d8;const _0x224f0e=a227_0x224f();let _0x404622=_0x224f0e[_0x1e3658];return _0x404622;}export const DEFAULT_API_DIR=a227_0x410e60(0x1df);
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 +1 @@
1
- (function(_0x33376e,_0x4504e5){const _0x53702c=a228_0x19c8,_0x28688c=_0x33376e();while(!![]){try{const _0x36d1bd=-parseInt(_0x53702c(0x1f2))/0x1*(-parseInt(_0x53702c(0x1ee))/0x2)+-parseInt(_0x53702c(0x1eb))/0x3*(-parseInt(_0x53702c(0x1ec))/0x4)+parseInt(_0x53702c(0x1f3))/0x5+-parseInt(_0x53702c(0x1f5))/0x6+parseInt(_0x53702c(0x1f1))/0x7+parseInt(_0x53702c(0x1f4))/0x8+parseInt(_0x53702c(0x1ea))/0x9*(-parseInt(_0x53702c(0x1f0))/0xa);if(_0x36d1bd===_0x4504e5)break;else _0x28688c['push'](_0x28688c['shift']());}catch(_0x34e006){_0x28688c['push'](_0x28688c['shift']());}}}(a228_0x5f24,0x63959));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;function a228_0x19c8(_0x32d99b,_0x31ee34){_0x32d99b=_0x32d99b-0x1ea;const _0x5f2475=a228_0x5f24();let _0x19c8a0=_0x5f2475[_0x32d99b];return _0x19c8a0;}export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;function a228_0x5f24(){const _0x130b1d=['20FncSjt','includes','1726610qSrkJC','1999872tkfjjq','65915RAbJOU','2216140QvjgDB','3316808LrLyrz','4769280gDKeSW','72xqCdDN','2344170bByxYV','4BPAZlc','string'];a228_0x5f24=function(){return _0x130b1d;};return a228_0x5f24();}export function isLovrabetRegion(_0x968c65){return typeof _0x968c65==='string'&&LOVRABET_REGION_VALUES['includes'](_0x968c65);}export function isEnabledLovrabetRegion(_0x4c2a12){const _0x5df016=a228_0x19c8;return typeof _0x4c2a12===_0x5df016(0x1ed)&&ENABLED_LOVRABET_REGION_VALUES[_0x5df016(0x1ef)](_0x4c2a12);}export function normalizeLovrabetRegion(_0x8d2033){const _0x134c89=a228_0x19c8;if(typeof _0x8d2033!==_0x134c89(0x1ed))return undefined;const _0x3333e6=REGION_ALIASES[_0x8d2033]??_0x8d2033;return isLovrabetRegion(_0x3333e6)?_0x3333e6:undefined;}export function isInvalidLovrabetRegion(_0x5d5e0c){return _0x5d5e0c!==undefined&&_0x5d5e0c!==null&&_0x5d5e0c!==''&&normalizeLovrabetRegion(_0x5d5e0c)===undefined;}
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 +1 @@
1
- function a229_0x5a3b(){const _0x281047=['72qRfSEQ','26TiqMTG','1629906qpJONr','41727LrYuKm','write','1997233XJAaoI','330pDWfrb','16595kWxmlj','read','126520qptORe','64dGcDRL','67580DnfkmL','149140GAKxSD'];a229_0x5a3b=function(){return _0x281047;};return a229_0x5a3b();}const a229_0x4041ad=a229_0x1ddf;(function(_0x37235b,_0x3db17f){const _0x221bae=a229_0x1ddf,_0x560aac=_0x37235b();while(!![]){try{const _0x418a2b=-parseInt(_0x221bae(0xf6))/0x1+-parseInt(_0x221bae(0xec))/0x2*(-parseInt(_0x221bae(0xee))/0x3)+parseInt(_0x221bae(0xf5))/0x4*(parseInt(_0x221bae(0xf2))/0x5)+parseInt(_0x221bae(0xed))/0x6+parseInt(_0x221bae(0xf0))/0x7+-parseInt(_0x221bae(0xf4))/0x8*(parseInt(_0x221bae(0xf8))/0x9)+-parseInt(_0x221bae(0xf7))/0xa*(parseInt(_0x221bae(0xf1))/0xb);if(_0x418a2b===_0x3db17f)break;else _0x560aac['push'](_0x560aac['shift']());}catch(_0x28a657){_0x560aac['push'](_0x560aac['shift']());}}}(a229_0x5a3b,0x2477b));function a229_0x1ddf(_0x2c57d7,_0x51dc10){_0x2c57d7=_0x2c57d7-0xec;const _0x5a3bc1=a229_0x5a3b();let _0x1ddfd3=_0x5a3bc1[_0x2c57d7];return _0x1ddfd3;}export const RISK_LEVEL_VALUES=[a229_0x4041ad(0xf3),a229_0x4041ad(0xef),'high-risk-write'];
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 +1 @@
1
- function a230_0xae69(){const _0xec0cda=['14FBvaqa','311yhAjoj','11462580SzPhYl','22KacPxf','16251QVUNox','lovrabet','cdn','224EavykF','Official\x20routing\x20for\x20region\x20\x22','12417408eovwOw','\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.','1119573FbDVhC','8236245VNCTde','4552842ChBjYs','libraries','986zEMCpa'];a230_0xae69=function(){return _0xec0cda;};return a230_0xae69();}(function(_0x3633c1,_0x39e105){const _0x16fc2f=a230_0x4065,_0x2d9af0=_0x3633c1();while(!![]){try{const _0x22f1df=parseInt(_0x16fc2f(0x147))/0x1*(-parseInt(_0x16fc2f(0x145))/0x2)+parseInt(_0x16fc2f(0x14a))/0x3*(parseInt(_0x16fc2f(0x13d))/0x4)+parseInt(_0x16fc2f(0x142))/0x5+parseInt(_0x16fc2f(0x143))/0x6*(-parseInt(_0x16fc2f(0x146))/0x7)+-parseInt(_0x16fc2f(0x13f))/0x8+-parseInt(_0x16fc2f(0x141))/0x9+parseInt(_0x16fc2f(0x148))/0xa*(parseInt(_0x16fc2f(0x149))/0xb);if(_0x22f1df===_0x39e105)break;else _0x2d9af0['push'](_0x2d9af0['shift']());}catch(_0xf71b5){_0x2d9af0['push'](_0x2d9af0['shift']());}}}(a230_0xae69,0xdaa77));function a230_0x4065(_0x47d512,_0x200354){_0x47d512=_0x47d512-0x13b;const _0xae698d=a230_0xae69();let _0x406591=_0xae698d[_0x47d512];return _0x406591;}import{OFFICIAL_ROUTING_PROFILES as a230_0x4c7e3b,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';export const OFFICIAL_ROUTING_PROFILES=a230_0x4c7e3b;export{ROUTING_CATALOG_DIGEST};export function getOfficialRoutingProfile(_0xca9170){return OFFICIAL_ROUTING_PROFILES[_0xca9170];}export function getOfficialRoutingCdn(_0x579445){const _0x52f925=a230_0x4065,_0x55c005=getOfficialRoutingProfile(_0x579445)[_0x52f925(0x13c)];if(!_0x55c005[_0x52f925(0x13b)])throw new Error(_0x52f925(0x13e)+_0x579445+_0x52f925(0x140));return{'libraries':_0x55c005[_0x52f925(0x144)],'lovrabet':_0x55c005[_0x52f925(0x13b)]};}
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 +1 @@
1
- (function(_0x936cad,_0x3d525d){const _0x1e19c7=a231_0x38ef,_0x46684d=_0x936cad();while(!![]){try{const _0x55973e=-parseInt(_0x1e19c7(0x20c))/0x1+parseInt(_0x1e19c7(0x1ed))/0x2+parseInt(_0x1e19c7(0x1f6))/0x3+-parseInt(_0x1e19c7(0x208))/0x4+-parseInt(_0x1e19c7(0x1eb))/0x5*(-parseInt(_0x1e19c7(0x203))/0x6)+-parseInt(_0x1e19c7(0x1f3))/0x7+-parseInt(_0x1e19c7(0x207))/0x8*(-parseInt(_0x1e19c7(0x1ff))/0x9);if(_0x55973e===_0x3d525d)break;else _0x46684d['push'](_0x46684d['shift']());}catch(_0x416f98){_0x46684d['push'](_0x46684d['shift']());}}}(a231_0x5202,0x812dd));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x14eee7){const _0x27c9db=a231_0x38ef;return typeof _0x14eee7===_0x27c9db(0x1f5)&&_0x14eee7['trim']()?_0x14eee7[_0x27c9db(0x202)]():undefined;}function appProfiles(_0x468802){const _0x3546f8=a231_0x38ef;return _0x468802[_0x3546f8(0x1ec)]&&typeof _0x468802[_0x3546f8(0x1ec)]==='object'?_0x468802['apps']:{};}function resolveDefaultAppName(_0x5924aa){const _0x21ef3=a231_0x38ef,_0x583b4d=stringConfigValue(_0x5924aa[_0x21ef3(0x1fe)]);if(_0x583b4d)return _0x583b4d;const _0x55f7f2=Object[_0x21ef3(0x1ef)](appProfiles(_0x5924aa));return _0x55f7f2[_0x21ef3(0x20b)]===0x1?_0x55f7f2[0x0]:undefined;}function a231_0x38ef(_0x508210,_0xccbfad){_0x508210=_0x508210-0x1e5;const _0x5202d1=a231_0x5202();let _0x38ef26=_0x5202d1[_0x508210];return _0x38ef26;}function resolveTopLevelAppCode(_0x534ddf){const _0xe09625=a231_0x38ef;return stringConfigValue(_0x534ddf['appcode'])||stringConfigValue(_0x534ddf[_0xe09625(0x201)]);}function a231_0x5202(){const _0x223ef9=['accessKey','ACCESS_KEY','apiDir','RISK_LEVEL','APP','FORMAT','daily','PAGE_SIZE','65iuwduA','apps','852532JtTiNH','read','keys','pageSize','projectConfig','COOKIE','1824375dYDkgT','projectPath','string','196839DWYWGq','object','format','find','cookie','high-risk-write','write','globalConfig','defaultApp','9artanh','VERBOSE','app','trim','448128VsMlKc','env','locale','appcode','4467352aUTAGy','2267360VAoJny','riskLevel','entries','length','664660BpOBCm'];a231_0x5202=function(){return _0x223ef9;};return a231_0x5202();}function normalizeRiskCeiling(_0x17c599){const _0x17974d=a231_0x38ef;if(_0x17c599===undefined||_0x17c599===null)return undefined;if(_0x17c599===_0x17974d(0x1ee)||_0x17c599===_0x17974d(0x1fc)||_0x17c599===_0x17974d(0x1fb))return _0x17c599;return _0x17974d(0x1ee);}function resolveRiskCeiling(..._0x2c0d59){const _0x4e0318=a231_0x38ef;let _0x2be334;for(const _0x39922d of _0x2c0d59){const _0x263d2d=normalizeRiskCeiling(_0x39922d);_0x263d2d&&(!_0x2be334||riskLevelOrder(_0x263d2d)<riskLevelOrder(_0x2be334))&&(_0x2be334=_0x263d2d);}return _0x2be334??DEFAULT_CONFIG_VALUES[_0x4e0318(0x209)];}export function resolveAppConfig({raw:_0x29dd1f,flags:_0x2b71d4,layers:_0xdc1383,readEnv:_0x17cd4d}){const _0x3b1504=a231_0x38ef,_0x9c6b50=_0xdc1383?.['projectConfig']??{},_0xd7f163=_0xdc1383?.['globalConfig']??{},_0x29a235=!!_0xdc1383?.[_0x3b1504(0x1f4)]||Object[_0x3b1504(0x1ef)](_0x9c6b50)[_0x3b1504(0x20b)]>0x0,_0x1ddcf4=!_0x29a235,_0x109e6c=_0x29a235?resolveDefaultAppName(_0x9c6b50):undefined,_0x5063d2=_0x1ddcf4?resolveDefaultAppName(_0xd7f163):undefined,_0x1bb80f=stringConfigValue(_0x2b71d4[_0x3b1504(0x201)]),_0x2208a5=_0x17cd4d(_0x3b1504(0x1e7)),_0x3e104e={};if(_0x29dd1f[_0x3b1504(0x1ec)]&&typeof _0x29dd1f[_0x3b1504(0x1ec)]===_0x3b1504(0x1f7))for(const [_0x16490b,_0x52c730]of Object[_0x3b1504(0x20a)](_0x29dd1f[_0x3b1504(0x1ec)])){_0x52c730&&typeof _0x52c730==='object'&&_0x52c730['appcode']&&(_0x3e104e[_0x16490b]=_0x52c730);}const _0x553524=_0x109e6c||_0x5063d2||resolveDefaultAppName(_0x29dd1f),_0x40a34f=Object['keys'](_0x3e104e)[_0x3b1504(0x20b)]>0x0,_0x9756c1=_0x1bb80f||_0x109e6c||_0x2208a5||_0x5063d2||_0x553524||undefined,_0x24081b=stringConfigValue(_0x2b71d4['appcode']),_0x2f138e=_0x24081b?Object[_0x3b1504(0x20a)](_0x3e104e)[_0x3b1504(0x1f9)](([,_0x36d372])=>_0x36d372?.[_0x3b1504(0x206)]===_0x24081b):undefined,_0x12dac7=_0x2f138e?.[0x0],_0x396b33=_0x2f138e?.[0x1],_0x53da48=_0x24081b?_0x12dac7:_0x9756c1;let _0x5cfab4=_0x53da48&&_0x3e104e[_0x53da48]?_0x3e104e[_0x53da48]:undefined;_0x24081b&&_0x396b33&&(_0x5cfab4=_0x396b33);const _0x5aece3=_0x24081b?_0x396b33??_0x5cfab4:_0x5cfab4,_0x286e74=!_0x1bb80f&&!_0x109e6c&&_0x2208a5&&_0x53da48===_0x2208a5,_0x1377f2=_0x1bb80f||(_0x286e74?_0x2208a5:undefined)||(_0x24081b?_0x12dac7:undefined),_0x27efaa=_0x5aece3?.['appcode'],_0x420cb7=_0x29a235?resolveTopLevelAppCode(_0x9c6b50):undefined,_0x305d11=_0x1ddcf4?resolveTopLevelAppCode(_0xd7f163):undefined,_0x365ece=_0x1bb80f||_0x109e6c?_0x27efaa:undefined,_0x3f586a=!_0x1bb80f&&!_0x109e6c?_0x27efaa:undefined,_0x5560ea=_0x24081b||_0x365ece||_0x420cb7||_0x3f586a||_0x305d11||undefined,_0x33cc6e=_0x29a235?stringConfigValue(_0x9c6b50[_0x3b1504(0x204)]):undefined,_0x1d14c4=_0x1ddcf4?stringConfigValue(_0xd7f163['env']):undefined,_0x1b82b3=_0x2b71d4[_0x3b1504(0x204)]||_0x5aece3?.['env']||_0x33cc6e||_0x17cd4d('ENV')||_0x1d14c4||_0x29dd1f[_0x3b1504(0x204)]||DEFAULT_CONFIG_VALUES[_0x3b1504(0x204)],_0x3cb194=_0x5aece3?.[_0x3b1504(0x205)]||_0x29dd1f[_0x3b1504(0x205)]||DEFAULT_CONFIG_VALUES['locale'],_0x28dd3b=_0x17cd4d(_0x3b1504(0x1f2))||_0x5aece3?.['cookie']||_0x29dd1f[_0x3b1504(0x1fa)]||undefined,_0x570711=_0x17cd4d(_0x3b1504(0x20e))||_0x5aece3?.[_0x3b1504(0x20d)]||_0x29dd1f[_0x3b1504(0x20d)]||undefined,_0x9c2f9f=_0x2b71d4['format']||_0x17cd4d(_0x3b1504(0x1e8))||_0x5aece3?.[_0x3b1504(0x1f8)]||_0x29dd1f[_0x3b1504(0x1f8)],_0x12c0cf=normalizeLegacyOutputFormat(_0x9c2f9f),_0x4a60a8=_0x17cd4d(_0x3b1504(0x1ea))||_0x5aece3?.[_0x3b1504(0x1f0)]||_0x29dd1f[_0x3b1504(0x1f0)],_0x3208b3=_0x4a60a8?Number(_0x4a60a8)||undefined:undefined,_0x5c4bce=_0xdc1383?[_0xdc1383[_0x3b1504(0x1fd)]['riskLevel'],_0xdc1383[_0x3b1504(0x1f1)][_0x3b1504(0x209)]]:[_0x29dd1f[_0x3b1504(0x209)]],_0x447f4d=resolveRiskCeiling(..._0x5c4bce,_0x5aece3?.[_0x3b1504(0x209)]),_0x5a80be=resolveRiskCeiling(_0x447f4d,_0x17cd4d(_0x3b1504(0x1e6))),_0x2b3317=_0x17cd4d(_0x3b1504(0x200)),_0x3125ac=_0x2b3317==='1'||_0x2b3317==='true',_0x403106=_0x5aece3?.[_0x3b1504(0x1e5)]||_0x29dd1f['apiDir']||DEFAULT_CONFIG_VALUES[_0x3b1504(0x1e5)],_0x3dd9f1=isDaily(normalizeEnv(String(_0x1b82b3)))?_0x3b1504(0x1e9):'production';return{'appCode':typeof _0x5560ea==='string'&&_0x5560ea[_0x3b1504(0x202)]()?_0x5560ea[_0x3b1504(0x202)]():undefined,'env':_0x3dd9f1,'locale':_0x3cb194,'cookie':_0x28dd3b,'accessKey':_0x570711,'format':_0x12c0cf,'pageSize':_0x3208b3,'riskLevel':_0x5a80be,'verbose':_0x3125ac,'apiDir':_0x403106,'apps':_0x3e104e,'defaultApp':_0x553524,'currentApp':_0x40a34f?_0x53da48:undefined,'explicitAppName':_0x1377f2};}
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 +1 @@
1
- function a232_0x5f09(){const _0x17296=['1598507IjPdYP','1037403SRYPMp','3363296sTxYkD','11550344KkpXoF','3383502waReQx','1678lCvAxM','807NxqBbv','3242005AkzwVc','7gQgzTg','170sAzqlt'];a232_0x5f09=function(){return _0x17296;};return a232_0x5f09();}(function(_0x62210c,_0x561977){const _0x5a2efd=a232_0x2794,_0x48e0dc=_0x62210c();while(!![]){try{const _0x202646=-parseInt(_0x5a2efd(0xbf))/0x1+-parseInt(_0x5a2efd(0xc4))/0x2*(parseInt(_0x5a2efd(0xc5))/0x3)+-parseInt(_0x5a2efd(0xc1))/0x4+parseInt(_0x5a2efd(0xc6))/0x5+-parseInt(_0x5a2efd(0xc3))/0x6*(parseInt(_0x5a2efd(0xc7))/0x7)+parseInt(_0x5a2efd(0xc2))/0x8+-parseInt(_0x5a2efd(0xc0))/0x9*(-parseInt(_0x5a2efd(0xbe))/0xa);if(_0x202646===_0x561977)break;else _0x48e0dc['push'](_0x48e0dc['shift']());}catch(_0x4c91b8){_0x48e0dc['push'](_0x48e0dc['shift']());}}}(a232_0x5f09,0xc8e0a));import{getIsSessionValid}from'../auth/is-session-valid.js';function a232_0x2794(_0x1e5276,_0x5e1d9f){_0x1e5276=_0x1e5276-0xbe;const _0x5f0966=a232_0x5f09();let _0x2794cf=_0x5f0966[_0x1e5276];return _0x2794cf;}import{CliErrors}from'../errors.js';export async function buildAuth(_0x19b191){const {getCookie:_0x8cd804}=await import('../auth/get-cookie.js'),_0x5a895c=_0x19b191['cookie']||_0x8cd804(),_0x170d75=_0x5a895c?await getIsSessionValid():![];return{'cookie':_0x5a895c,'isLoggedIn':_0x170d75,async 'getOrLogin'(){if(_0x5a895c&&_0x170d75)return _0x5a895c;throw CliErrors['authRequired']();}};}
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();}