@lovrabet/rabetbase-cli 2.4.3-beta.1 → 2.4.3

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 (294) 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/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/members-list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app-config/delete.js +1 -1
  25. package/lib/commands/app-config/get.js +1 -1
  26. package/lib/commands/app-config/index.js +1 -1
  27. package/lib/commands/app-config/list.js +1 -1
  28. package/lib/commands/app-config/set.js +1 -1
  29. package/lib/commands/app-config/shared.js +1 -1
  30. package/lib/commands/auth/index.js +1 -1
  31. package/lib/commands/bff/create.js +1 -1
  32. package/lib/commands/bff/delete.js +1 -1
  33. package/lib/commands/bff/detail.js +1 -1
  34. package/lib/commands/bff/index.js +1 -1
  35. package/lib/commands/bff/list.js +1 -1
  36. package/lib/commands/bff/pull.js +1 -1
  37. package/lib/commands/bff/push.js +1 -1
  38. package/lib/commands/bff/status.js +1 -1
  39. package/lib/commands/cli-skill/index.js +1 -1
  40. package/lib/commands/cli-update.js +1 -1
  41. package/lib/commands/codegen/index.js +1 -1
  42. package/lib/commands/codegen/sdk.js +1 -1
  43. package/lib/commands/codegen/sql.js +1 -1
  44. package/lib/commands/common/app-registry.js +1 -1
  45. package/lib/commands/common/app-selector.js +1 -1
  46. package/lib/commands/common/async-task.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -1
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.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-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -1
  79. package/lib/commands/db/analyze-batch-plan.js +1 -1
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff.js +1 -1
  87. package/lib/commands/db/index.js +1 -1
  88. package/lib/commands/db/list.js +1 -1
  89. package/lib/commands/db/shared.js +1 -1
  90. package/lib/commands/db/tables.js +1 -1
  91. package/lib/commands/db/test.js +1 -1
  92. package/lib/commands/db/update.js +1 -1
  93. package/lib/commands/doctor.js +1 -1
  94. package/lib/commands/file/index.js +1 -1
  95. package/lib/commands/init/index.js +1 -1
  96. package/lib/commands/issue/index.js +1 -1
  97. package/lib/commands/issue/nudge.js +1 -1
  98. package/lib/commands/issue/report.js +1 -1
  99. package/lib/commands/issue/shared.js +1 -1
  100. package/lib/commands/kb/create.js +1 -1
  101. package/lib/commands/kb/delete.js +1 -1
  102. package/lib/commands/kb/detail.js +1 -1
  103. package/lib/commands/kb/index.js +1 -1
  104. package/lib/commands/kb/list.js +1 -1
  105. package/lib/commands/kb/shared.js +1 -1
  106. package/lib/commands/kb/update.js +1 -1
  107. package/lib/commands/logs/index.js +1 -1
  108. package/lib/commands/menu/asset-update.js +1 -1
  109. package/lib/commands/menu/delete.js +1 -1
  110. package/lib/commands/menu/external-link-create.js +1 -1
  111. package/lib/commands/menu/external-link-update.js +1 -1
  112. package/lib/commands/menu/group-create.js +1 -1
  113. package/lib/commands/menu/group-update.js +1 -1
  114. package/lib/commands/menu/index.js +1 -1
  115. package/lib/commands/menu/list.js +1 -1
  116. package/lib/commands/menu/move.js +1 -1
  117. package/lib/commands/menu/regroup-start.js +1 -1
  118. package/lib/commands/menu/rename.js +1 -1
  119. package/lib/commands/menu/shared/compare-table.js +1 -1
  120. package/lib/commands/menu/shared/delete-plan.js +1 -1
  121. package/lib/commands/menu/shared/facts.js +1 -1
  122. package/lib/commands/menu/shared/index.js +1 -1
  123. package/lib/commands/menu/shared/inquirer.js +1 -1
  124. package/lib/commands/menu/shared/local-pages.js +1 -1
  125. package/lib/commands/menu/shared/logic.js +1 -1
  126. package/lib/commands/menu/shared/mutations.js +1 -1
  127. package/lib/commands/menu/shared/service.js +1 -1
  128. package/lib/commands/menu/shared/sync-core.js +1 -1
  129. package/lib/commands/menu/shared/update-core.js +1 -1
  130. package/lib/commands/menu/shared/valid-url.js +1 -1
  131. package/lib/commands/menu/sync.js +1 -1
  132. package/lib/commands/notification/config-list.js +1 -1
  133. package/lib/commands/notification/index.js +1 -1
  134. package/lib/commands/ocr/index.js +1 -1
  135. package/lib/commands/page/generate-start.js +1 -1
  136. package/lib/commands/page/generate-status.js +1 -1
  137. package/lib/commands/page/index.js +1 -1
  138. package/lib/commands/page/pull.js +1 -1
  139. package/lib/commands/page/push.js +1 -1
  140. package/lib/commands/page/react/create.js +1 -1
  141. package/lib/commands/page/react/detail.js +1 -1
  142. package/lib/commands/page/react/list.js +1 -1
  143. package/lib/commands/page/react/publish.js +1 -1
  144. package/lib/commands/page/react/shared.js +1 -1
  145. package/lib/commands/page/react/syntax.js +1 -1
  146. package/lib/commands/page/react/template.js +1 -1
  147. package/lib/commands/page/react/update.js +1 -1
  148. package/lib/commands/page/relation-audit.js +1 -1
  149. package/lib/commands/page/restore.js +1 -1
  150. package/lib/commands/page/shared.js +1 -1
  151. package/lib/commands/page/standard-page-status.js +1 -1
  152. package/lib/commands/page/sync.js +1 -1
  153. package/lib/commands/permit/index.js +1 -1
  154. package/lib/commands/permit/page-get.js +1 -1
  155. package/lib/commands/permit/page-set.js +1 -1
  156. package/lib/commands/permit/role-apis-set.js +1 -1
  157. package/lib/commands/permit/role-menus-set.js +1 -1
  158. package/lib/commands/permit/role-menus.js +1 -1
  159. package/lib/commands/permit/shared.js +1 -1
  160. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  161. package/lib/commands/project/create/format-elapsed.js +1 -1
  162. package/lib/commands/project/create/main.js +1 -1
  163. package/lib/commands/project/create/non-interactive.js +1 -1
  164. package/lib/commands/project/create/project-template-path.js +1 -1
  165. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  166. package/lib/commands/project/create/use-format-code.js +1 -1
  167. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  168. package/lib/commands/project/index.js +1 -1
  169. package/lib/commands/project/upgrade.js +1 -1
  170. package/lib/commands/registry.js +1 -1
  171. package/lib/commands/role/create.js +1 -1
  172. package/lib/commands/role/delete.js +1 -1
  173. package/lib/commands/role/detail.js +1 -1
  174. package/lib/commands/role/index.js +1 -1
  175. package/lib/commands/role/list.js +1 -1
  176. package/lib/commands/role/shared.js +1 -1
  177. package/lib/commands/role/update.js +1 -1
  178. package/lib/commands/role/user-add.js +1 -1
  179. package/lib/commands/role/user-remove.js +1 -1
  180. package/lib/commands/role/user-resolve.js +1 -1
  181. package/lib/commands/run/index.js +1 -1
  182. package/lib/commands/schema.js +1 -1
  183. package/lib/commands/sql/create.js +1 -1
  184. package/lib/commands/sql/delete.js +1 -1
  185. package/lib/commands/sql/detail.js +1 -1
  186. package/lib/commands/sql/exec.js +1 -1
  187. package/lib/commands/sql/index.js +1 -1
  188. package/lib/commands/sql/list.js +1 -1
  189. package/lib/commands/sql/pull.js +1 -1
  190. package/lib/commands/sql/push.js +1 -1
  191. package/lib/commands/sql/shared.js +1 -1
  192. package/lib/commands/sql/status.js +1 -1
  193. package/lib/commands/sql/validate.js +1 -1
  194. package/lib/commands/task/index.js +1 -1
  195. package/lib/commands/task/status.js +1 -1
  196. package/lib/commands/tenant/index.js +1 -1
  197. package/lib/commands/tenant/members-list.js +1 -1
  198. package/lib/commands/tenant/shared.js +1 -1
  199. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  200. package/lib/commands/user-account/index.js +1 -1
  201. package/lib/commands/workspace/add.js +1 -1
  202. package/lib/commands/workspace/index.js +1 -1
  203. package/lib/commands/workspace/remove.js +1 -1
  204. package/lib/config/schema.js +1 -1
  205. package/lib/constant/cdn.js +1 -1
  206. package/lib/constant/cli.js +1 -1
  207. package/lib/constant/defaults.js +1 -1
  208. package/lib/constant/domain.js +1 -1
  209. package/lib/constant/env.js +1 -1
  210. package/lib/constant/output.js +1 -1
  211. package/lib/constant/paths.js +1 -1
  212. package/lib/constant/risk.js +1 -1
  213. package/lib/context/app-resolver.js +1 -1
  214. package/lib/context/auth-resolver.js +1 -1
  215. package/lib/context/config-loader.js +1 -1
  216. package/lib/context.js +1 -1
  217. package/lib/core/alias-resolver.js +1 -1
  218. package/lib/core/api-client.js +1 -1
  219. package/lib/core/bff/config.js +1 -1
  220. package/lib/core/bff/file-system.js +1 -1
  221. package/lib/core/bff/hash.js +1 -1
  222. package/lib/core/bff/lock.js +1 -1
  223. package/lib/core/bff/utils.js +1 -1
  224. package/lib/core/db-resolver.js +1 -1
  225. package/lib/core/page/file-system.js +1 -1
  226. package/lib/core/page/hash.js +1 -1
  227. package/lib/core/page/lock.js +1 -1
  228. package/lib/core/sql-index-auditor.js +1 -1
  229. package/lib/core/sql-sync/config.js +1 -1
  230. package/lib/core/sql-sync/file-system.js +1 -1
  231. package/lib/core/sql-sync/hash.js +1 -1
  232. package/lib/core/sql-sync/lock.js +1 -1
  233. package/lib/core/sql-sync/utils.js +1 -1
  234. package/lib/core/sql-validator.js +1 -1
  235. package/lib/errors.js +1 -1
  236. package/lib/framework/build-all-flags.js +1 -1
  237. package/lib/framework/error-output.js +1 -1
  238. package/lib/framework/explicit-yes.js +1 -1
  239. package/lib/framework/flags.js +1 -1
  240. package/lib/framework/help.js +1 -1
  241. package/lib/framework/index.js +1 -1
  242. package/lib/framework/output.js +1 -1
  243. package/lib/framework/response.js +1 -1
  244. package/lib/framework/runner-alias.js +1 -1
  245. package/lib/framework/runner.js +1 -1
  246. package/lib/framework/schema-export.js +1 -1
  247. package/lib/framework/types.js +1 -1
  248. package/lib/generated/build-info.d.ts +4 -4
  249. package/lib/generated/build-info.js +1 -1
  250. package/lib/help.js +1 -1
  251. package/lib/postinstall.js +1 -1
  252. package/lib/runtime/confirmation.js +1 -1
  253. package/lib/runtime/event.js +1 -1
  254. package/lib/runtime/index.js +1 -1
  255. package/lib/runtime/queue.js +1 -1
  256. package/lib/runtime/resolve.js +1 -1
  257. package/lib/skills/builtin-skill.js +1 -1
  258. package/lib/skills/main.js +1 -1
  259. package/lib/skills/npx-skills-add.js +1 -1
  260. package/lib/skills/skill-presence.js +1 -1
  261. package/lib/telemetry/cli-command-trace.js +1 -1
  262. package/lib/telemetry/cli-help-trace.js +1 -1
  263. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  264. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  265. package/lib/telemetry/send-cli-trace-log.js +1 -1
  266. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  267. package/lib/utils/ai_config.js +1 -1
  268. package/lib/utils/apply-jq-filter.js +1 -1
  269. package/lib/utils/cdn-config.js +1 -1
  270. package/lib/utils/check-sdk-version.js +1 -1
  271. package/lib/utils/cli-version-check.js +1 -1
  272. package/lib/utils/cli-version-policy.js +1 -1
  273. package/lib/utils/config.js +1 -1
  274. package/lib/utils/copy-directory.js +1 -1
  275. package/lib/utils/entity-with-id.js +1 -1
  276. package/lib/utils/file-utils.js +1 -1
  277. package/lib/utils/guides-cdn.js +1 -1
  278. package/lib/utils/http-client.js +1 -1
  279. package/lib/utils/is-non-interactive.js +1 -1
  280. package/lib/utils/logger.js +1 -1
  281. package/lib/utils/params.js +1 -1
  282. package/lib/utils/platform.js +1 -1
  283. package/lib/utils/rules-cdn.js +1 -1
  284. package/lib/utils/sleep.js +1 -1
  285. package/lib/utils/template-replacer.js +1 -1
  286. package/lib/utils/update-notice.js +1 -1
  287. package/lib/utils/version.js +1 -1
  288. package/lib/utils/with-active-cookie.js +1 -1
  289. package/lib/utils/write-cli-side-channel.js +1 -1
  290. package/package.json +1 -1
  291. package/skills/rabetbase/SKILL.md +1 -1
  292. package/skills/rabetbase/guides/react-custom-page-workflow.md +9 -3
  293. package/skills/rabetbase/knowledge/react-page/generation-standards.md +13 -2
  294. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x5e7000,_0x2223b2){const _0x1544db=a198_0x3b46,_0x4846e2=_0x5e7000();while(!![]){try{const _0x324f96=-parseInt(_0x1544db(0x115))/0x1*(parseInt(_0x1544db(0x11b))/0x2)+parseInt(_0x1544db(0x122))/0x3+-parseInt(_0x1544db(0x11f))/0x4*(parseInt(_0x1544db(0x118))/0x5)+parseInt(_0x1544db(0x123))/0x6+parseInt(_0x1544db(0x12b))/0x7+-parseInt(_0x1544db(0x127))/0x8+parseInt(_0x1544db(0x11c))/0x9;if(_0x324f96===_0x2223b2)break;else _0x4846e2['push'](_0x4846e2['shift']());}catch(_0x5b8004){_0x4846e2['push'](_0x4846e2['shift']());}}}(a198_0x1ba1,0x3937d));import{CliErrors}from'../../errors.js';function textOrNull(_0x33e24d){const _0x2fffee=a198_0x3b46,_0x17ec01=_0x33e24d?.[_0x2fffee(0x126)]();return _0x17ec01?_0x17ec01:null;}function a198_0x3b46(_0x1cd09b,_0x26f3d0){_0x1cd09b=_0x1cd09b-0x111;const _0x1ba1dd=a198_0x1ba1();let _0x3b46ff=_0x1ba1dd[_0x1cd09b];return _0x3b46ff;}export function projectTenantMembers(_0x4a0877){const _0x55fbb1=a198_0x3b46,_0x2c33bf=new Map();for(const _0x2e2a29 of _0x4a0877){const _0x5f4b96=Number(_0x2e2a29[_0x55fbb1(0x12a)]);if(!Number[_0x55fbb1(0x128)](_0x5f4b96)||_0x5f4b96<=0x0)continue;const _0xfe1064={'userId':_0x5f4b96,'username':textOrNull(_0x2e2a29[_0x55fbb1(0x11a)]),'displayName':textOrNull(_0x2e2a29['nickname']),'role':_0x2e2a29[_0x55fbb1(0x111)]===!![]?_0x55fbb1(0x119):'MEMBER','status':textOrNull(_0x2e2a29['status'])},_0x15f930=_0x2c33bf[_0x55fbb1(0x11e)](_0x5f4b96);if(!_0x15f930){_0x2c33bf['set'](_0x5f4b96,_0xfe1064);continue;}_0x15f930[_0x55fbb1(0x11a)]??=_0xfe1064[_0x55fbb1(0x11a)],_0x15f930['displayName']??=_0xfe1064[_0x55fbb1(0x121)],_0x15f930[_0x55fbb1(0x116)]??=_0xfe1064[_0x55fbb1(0x116)];if(_0xfe1064['role']==='ADMIN')_0x15f930[_0x55fbb1(0x129)]=_0x55fbb1(0x119);}return[..._0x2c33bf[_0x55fbb1(0x112)]()][_0x55fbb1(0x11d)]((_0x277715,_0x511115)=>_0x277715[_0x55fbb1(0x12a)]-_0x511115[_0x55fbb1(0x12a)]);}function a198_0x1ba1(){const _0x5d3529=['userId','1494269rWyTyw','adminFlag','values','some','validation','4006czFyxU','status','tenantCode','126235hmpBHW','ADMIN','username','226hEqftz','4547448lhgoMj','sort','get','48DbDyAY','Check\x20--tenant-code\x20or\x20login\x20with\x20an\x20account\x20that\x20belongs\x20to\x20this\x20tenant.','displayName','935454rguoYa','1798788CETJyy','Tenant\x20\x22','\x22\x20is\x20not\x20available\x20to\x20the\x20current\x20account.','trim','2722784vTiKpq','isFinite','role'];a198_0x1ba1=function(){return _0x5d3529;};return a198_0x1ba1();}export function assertTenantAccessible(_0x1c6184,_0x4e84f6){const _0x5aa0bf=a198_0x3b46;if(_0x4e84f6[_0x5aa0bf(0x113)](_0xf9a510=>_0xf9a510[_0x5aa0bf(0x117)]===_0x1c6184))return;throw CliErrors[_0x5aa0bf(0x114)](_0x5aa0bf(0x124)+_0x1c6184+_0x5aa0bf(0x125),_0x5aa0bf(0x120));}
1
+ (function(_0x56a17b,_0x28c9c9){const _0x4373bd=a198_0x1376,_0x3d4e0f=_0x56a17b();while(!![]){try{const _0x11006c=-parseInt(_0x4373bd(0x86))/0x1+parseInt(_0x4373bd(0x95))/0x2*(-parseInt(_0x4373bd(0x8e))/0x3)+-parseInt(_0x4373bd(0x96))/0x4+parseInt(_0x4373bd(0x91))/0x5*(-parseInt(_0x4373bd(0x8b))/0x6)+-parseInt(_0x4373bd(0x9b))/0x7*(-parseInt(_0x4373bd(0x9a))/0x8)+parseInt(_0x4373bd(0x94))/0x9+parseInt(_0x4373bd(0x8f))/0xa;if(_0x11006c===_0x28c9c9)break;else _0x3d4e0f['push'](_0x3d4e0f['shift']());}catch(_0x39c693){_0x3d4e0f['push'](_0x3d4e0f['shift']());}}}(a198_0x54a3,0x4854f));function a198_0x54a3(){const _0x539e40=['3440412bxobKU','218376hYjbDE','796260zjBiDQ','Tenant\x20\x22','get','displayName','56Ifqvkv','98665UVHZzX','\x22\x20is\x20not\x20available\x20to\x20the\x20current\x20account.','validation','MEMBER','role','tenantCode','81951OqbKfm','values','adminFlag','status','some','186kuWaFg','username','sort','12cIkkXx','7920490zgRbSQ','userId','41765UlUPMe','trim','ADMIN'];a198_0x54a3=function(){return _0x539e40;};return a198_0x54a3();}import{CliErrors}from'../../errors.js';function textOrNull(_0x77fc86){const _0x45452b=a198_0x1376,_0x3d91cc=_0x77fc86?.[_0x45452b(0x92)]();return _0x3d91cc?_0x3d91cc:null;}export function projectTenantMembers(_0x537b48){const _0x24b2f4=a198_0x1376,_0x19c42f=new Map();for(const _0x523c7e of _0x537b48){const _0xf726ba=Number(_0x523c7e['userId']);if(!Number['isFinite'](_0xf726ba)||_0xf726ba<=0x0)continue;const _0x330210={'userId':_0xf726ba,'username':textOrNull(_0x523c7e[_0x24b2f4(0x8c)]),'displayName':textOrNull(_0x523c7e['nickname']),'role':_0x523c7e[_0x24b2f4(0x88)]===!![]?'ADMIN':_0x24b2f4(0x9e),'status':textOrNull(_0x523c7e[_0x24b2f4(0x89)])},_0x5e76e8=_0x19c42f[_0x24b2f4(0x98)](_0xf726ba);if(!_0x5e76e8){_0x19c42f['set'](_0xf726ba,_0x330210);continue;}_0x5e76e8[_0x24b2f4(0x8c)]??=_0x330210[_0x24b2f4(0x8c)],_0x5e76e8[_0x24b2f4(0x99)]??=_0x330210[_0x24b2f4(0x99)],_0x5e76e8[_0x24b2f4(0x89)]??=_0x330210[_0x24b2f4(0x89)];if(_0x330210[_0x24b2f4(0x9f)]==='ADMIN')_0x5e76e8[_0x24b2f4(0x9f)]=_0x24b2f4(0x93);}return[..._0x19c42f[_0x24b2f4(0x87)]()][_0x24b2f4(0x8d)]((_0x1d3aa0,_0x3949d7)=>_0x1d3aa0[_0x24b2f4(0x90)]-_0x3949d7[_0x24b2f4(0x90)]);}function a198_0x1376(_0x51c580,_0x40f208){_0x51c580=_0x51c580-0x85;const _0x54a3c5=a198_0x54a3();let _0x137610=_0x54a3c5[_0x51c580];return _0x137610;}export function assertTenantAccessible(_0x148717,_0x541adc){const _0x104609=a198_0x1376;if(_0x541adc[_0x104609(0x8a)](_0x1ac5da=>_0x1ac5da[_0x104609(0x85)]===_0x148717))return;throw CliErrors[_0x104609(0x9d)](_0x104609(0x97)+_0x148717+_0x104609(0x9c),'Check\x20--tenant-code\x20or\x20login\x20with\x20an\x20account\x20that\x20belongs\x20to\x20this\x20tenant.');}
@@ -1 +1 @@
1
- const a199_0x239b97=a199_0x1041;function a199_0x466b(){const _0x18c839=['534aFvBNa','Pass\x20the\x20DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox.','222470wMhJKh','bind','POST','DingTalk\x20sandbox\x20account\x20binding\x20was\x20not\x20confirmed.','48643vwPgoF','183357QbMqVQ','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','validation','dingding-sandbox','trim','763880CfbNfU','2123RNuKeR','high-risk-write','Retry\x20with\x20the\x20same\x20--ding-talk-user-id\x20only\x20after\x20checking\x20the\x20current\x20platform\x20session.','DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox','3xzHOeg','585500qduhLo','apiError','5199844nWMGzl','--ding-talk-user-id\x20cannot\x20be\x20empty.','1375720OztxwF','216BCNLml','str'];a199_0x466b=function(){return _0x18c839;};return a199_0x466b();}function a199_0x1041(_0x325be1,_0x1da568){_0x325be1=_0x325be1-0x14b;const _0x466b31=a199_0x466b();let _0x104111=_0x466b31[_0x325be1];return _0x104111;}(function(_0x314e76,_0xf619b){const _0x3ce416=a199_0x1041,_0x162afa=_0x314e76();while(!![]){try{const _0x2c6754=-parseInt(_0x3ce416(0x153))/0x1+parseInt(_0x3ce416(0x157))/0x2*(-parseInt(_0x3ce416(0x152))/0x3)+-parseInt(_0x3ce416(0x155))/0x4+parseInt(_0x3ce416(0x14d))/0x5+-parseInt(_0x3ce416(0x15a))/0x6*(parseInt(_0x3ce416(0x160))/0x7)+parseInt(_0x3ce416(0x158))/0x8*(-parseInt(_0x3ce416(0x161))/0x9)+-parseInt(_0x3ce416(0x15c))/0xa*(-parseInt(_0x3ce416(0x14e))/0xb);if(_0x2c6754===_0xf619b)break;else _0x162afa['push'](_0x162afa['shift']());}catch(_0x482810){_0x162afa['push'](_0x162afa['shift']());}}}(a199_0x466b,0xac052));import{asDryRunResult}from'../../commands/common/dry-run.js';import{bindDingTalkSandboxAccount,DING_TALK_SANDBOX_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const PROVIDER_ID=a199_0x239b97(0x14b),CURRENT_BINDING_WARNING=a199_0x239b97(0x162);function readDingTalkUserId(_0x165f4e){const _0x25b2ae=a199_0x239b97,_0x46767c=_0x165f4e[_0x25b2ae(0x159)]('ding-talk-user-id')[_0x25b2ae(0x14c)]();if(!_0x46767c)throw CliErrors[_0x25b2ae(0x163)](_0x25b2ae(0x156),_0x25b2ae(0x15b));return _0x46767c;}function buildBindingData(_0x4d78d5,_0x17eb06){const _0x34d793=a199_0x239b97;return{'operation':_0x34d793(0x15d),'selector':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x4d78d5},'before':null,'after':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x4d78d5,'bound':!![]},'dryRun':_0x17eb06,'backend':{'method':_0x34d793(0x15e),'path':DING_TALK_SANDBOX_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}export const dingTalkSandboxBind={'service':'user-account','command':'dingding-sandbox-bind','description':'Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20DingTalk\x20sandbox\x20account','risk':a199_0x239b97(0x14f),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':'ding-talk-user-id','type':'string','required':!![],'description':a199_0x239b97(0x151)}],async 'validate'(_0x4d44d7){readDingTalkUserId(_0x4d44d7);},async 'dryRun'(_0x1ed96e){const _0x23cc96=readDingTalkUserId(_0x1ed96e);return asDryRunResult(buildBindingData(_0x23cc96,!![]),{'method':'POST','url':DING_TALK_SANDBOX_BIND_PATH});},async 'execute'(_0x53a9c2){const _0x4a2b65=a199_0x239b97,_0x44aa87=readDingTalkUserId(_0x53a9c2),_0x1cee5f=await bindDingTalkSandboxAccount(_0x44aa87);if(_0x1cee5f!==!![])throw CliErrors[_0x4a2b65(0x154)](_0x4a2b65(0x15f),_0x4a2b65(0x150));return{'ok':!![],'data':buildBindingData(_0x44aa87,![]),'message':'Bound\x20current\x20user\x20to\x20DingTalk\x20sandbox\x20account.'};}};
1
+ const a199_0x10ea0c=a199_0x3c0a;(function(_0x3e222f,_0x185b43){const _0x14290d=a199_0x3c0a,_0x529842=_0x3e222f();while(!![]){try{const _0x1400e2=parseInt(_0x14290d(0x192))/0x1+parseInt(_0x14290d(0x194))/0x2*(parseInt(_0x14290d(0x189))/0x3)+parseInt(_0x14290d(0x193))/0x4*(-parseInt(_0x14290d(0x188))/0x5)+parseInt(_0x14290d(0x185))/0x6+parseInt(_0x14290d(0x18e))/0x7+-parseInt(_0x14290d(0x17f))/0x8+-parseInt(_0x14290d(0x190))/0x9*(parseInt(_0x14290d(0x181))/0xa);if(_0x1400e2===_0x185b43)break;else _0x529842['push'](_0x529842['shift']());}catch(_0x398ae0){_0x529842['push'](_0x529842['shift']());}}}(a199_0x5262,0xb5467));import{asDryRunResult}from'../../commands/common/dry-run.js';import{bindDingTalkSandboxAccount,DING_TALK_SANDBOX_BIND_PATH}from'../../core/api-client.js';function a199_0x3c0a(_0x337a47,_0x28a6cf){_0x337a47=_0x337a47-0x17f;const _0x526261=a199_0x5262();let _0x3c0aee=_0x526261[_0x337a47];return _0x3c0aee;}import{CliErrors}from'../../errors.js';const PROVIDER_ID=a199_0x10ea0c(0x184),CURRENT_BINDING_WARNING='The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.';function readDingTalkUserId(_0x29e0db){const _0x3ae57e=a199_0x10ea0c,_0x2fd96f=_0x29e0db[_0x3ae57e(0x18d)]('ding-talk-user-id')[_0x3ae57e(0x182)]();if(!_0x2fd96f)throw CliErrors[_0x3ae57e(0x187)](_0x3ae57e(0x18a),'Pass\x20the\x20DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox.');return _0x2fd96f;}function a199_0x5262(){const _0x326461=['apiError','757014fBCyhl','4lOhuud','1129636zIcAEY','Bound\x20current\x20user\x20to\x20DingTalk\x20sandbox\x20account.','dingding-sandbox-bind','DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox','4346808drkGcH','Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20DingTalk\x20sandbox\x20account','650FNkafz','trim','string','dingding-sandbox','8335290gNszjj','POST','validation','2144335SVCxMp','3rBFMgK','--ding-talk-user-id\x20cannot\x20be\x20empty.','user-account','bind','str','2819593BIgRMO','ding-talk-user-id','193725TRwXjL'];a199_0x5262=function(){return _0x326461;};return a199_0x5262();}function buildBindingData(_0x5e61d5,_0x34d233){const _0x3f3a16=a199_0x10ea0c;return{'operation':_0x3f3a16(0x18c),'selector':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x5e61d5},'before':null,'after':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x5e61d5,'bound':!![]},'dryRun':_0x34d233,'backend':{'method':'POST','path':DING_TALK_SANDBOX_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}export const dingTalkSandboxBind={'service':a199_0x10ea0c(0x18b),'command':a199_0x10ea0c(0x196),'description':a199_0x10ea0c(0x180),'risk':'high-risk-write','requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a199_0x10ea0c(0x18f),'type':a199_0x10ea0c(0x183),'required':!![],'description':a199_0x10ea0c(0x197)}],async 'validate'(_0x137e94){readDingTalkUserId(_0x137e94);},async 'dryRun'(_0x19f517){const _0x553d35=a199_0x10ea0c,_0x23c656=readDingTalkUserId(_0x19f517);return asDryRunResult(buildBindingData(_0x23c656,!![]),{'method':_0x553d35(0x186),'url':DING_TALK_SANDBOX_BIND_PATH});},async 'execute'(_0x4269d8){const _0x30c323=a199_0x10ea0c,_0x339c36=readDingTalkUserId(_0x4269d8),_0x307eab=await bindDingTalkSandboxAccount(_0x339c36);if(_0x307eab!==!![])throw CliErrors[_0x30c323(0x191)]('DingTalk\x20sandbox\x20account\x20binding\x20was\x20not\x20confirmed.','Retry\x20with\x20the\x20same\x20--ding-talk-user-id\x20only\x20after\x20checking\x20the\x20current\x20platform\x20session.');return{'ok':!![],'data':buildBindingData(_0x339c36,![]),'message':_0x30c323(0x195)};}};
@@ -1 +1 @@
1
- function a200_0x58bb(){const _0x1598cd=['4556881gKMmOW','1755738lcvZIh','2867385BuIERu','1956222vkKWzV','158708hpRAGx','4759638EoYxgZ','8tTXaRe','104006qXXCSy'];a200_0x58bb=function(){return _0x1598cd;};return a200_0x58bb();}(function(_0x563185,_0x205dbc){const _0x4a8d8c=a200_0x3dc4,_0x3ce3b7=_0x563185();while(!![]){try{const _0x57df30=-parseInt(_0x4a8d8c(0x8e))/0x1+parseInt(_0x4a8d8c(0x90))/0x2+-parseInt(_0x4a8d8c(0x8a))/0x3+-parseInt(_0x4a8d8c(0x8b))/0x4+parseInt(_0x4a8d8c(0x91))/0x5+-parseInt(_0x4a8d8c(0x8c))/0x6+-parseInt(_0x4a8d8c(0x8f))/0x7*(-parseInt(_0x4a8d8c(0x8d))/0x8);if(_0x57df30===_0x205dbc)break;else _0x3ce3b7['push'](_0x3ce3b7['shift']());}catch(_0x4a678b){_0x3ce3b7['push'](_0x3ce3b7['shift']());}}}(a200_0x58bb,0x7d513));import{dingTalkSandboxBind}from'../../commands/user-account/dingding-sandbox-bind.js';function a200_0x3dc4(_0x25c558,_0x48e119){_0x25c558=_0x25c558-0x8a;const _0x58bb19=a200_0x58bb();let _0x3dc4ca=_0x58bb19[_0x25c558];return _0x3dc4ca;}export const userAccountDefinitions=[dingTalkSandboxBind];
1
+ function a200_0x3bba(_0x39ddc8,_0x595711){_0x39ddc8=_0x39ddc8-0x1d4;const _0x5be1a7=a200_0x5be1();let _0x3bba3b=_0x5be1a7[_0x39ddc8];return _0x3bba3b;}(function(_0x11d060,_0x4ca505){const _0x26f05c=a200_0x3bba,_0x88f777=_0x11d060();while(!![]){try{const _0x5c07cd=-parseInt(_0x26f05c(0x1dd))/0x1+parseInt(_0x26f05c(0x1de))/0x2*(parseInt(_0x26f05c(0x1db))/0x3)+parseInt(_0x26f05c(0x1d7))/0x4*(-parseInt(_0x26f05c(0x1d4))/0x5)+parseInt(_0x26f05c(0x1d9))/0x6*(-parseInt(_0x26f05c(0x1d6))/0x7)+parseInt(_0x26f05c(0x1d8))/0x8+parseInt(_0x26f05c(0x1df))/0x9*(-parseInt(_0x26f05c(0x1dc))/0xa)+parseInt(_0x26f05c(0x1da))/0xb*(parseInt(_0x26f05c(0x1d5))/0xc);if(_0x5c07cd===_0x4ca505)break;else _0x88f777['push'](_0x88f777['shift']());}catch(_0x2c6908){_0x88f777['push'](_0x88f777['shift']());}}}(a200_0x5be1,0x73da3));import{dingTalkSandboxBind}from'../../commands/user-account/dingding-sandbox-bind.js';export const userAccountDefinitions=[dingTalkSandboxBind];function a200_0x5be1(){const _0x5b4b81=['50OCRfkB','12DSevBs','349034zgbwlx','172060PacLVl','4385536NLtSnd','18PCNpeh','8564017oKtvFN','15ujbYZW','2672840wEWTCD','470698oDPfpa','186204fWZItx','9infhIG'];a200_0x5be1=function(){return _0x5b4b81;};return a200_0x5be1();}
@@ -1 +1 @@
1
- function a201_0x261b(_0x5e6474,_0x172e12){_0x5e6474=_0x5e6474-0x182;const _0x5c11ab=a201_0x5c11();let _0x261bdc=_0x5c11ab[_0x5e6474];return _0x261bdc;}const a201_0x138eb4=a201_0x261b;(function(_0x28df36,_0x419b3d){const _0x3a2982=a201_0x261b,_0x544bb2=_0x28df36();while(!![]){try{const _0x187dc6=parseInt(_0x3a2982(0x18b))/0x1+-parseInt(_0x3a2982(0x189))/0x2*(-parseInt(_0x3a2982(0x183))/0x3)+parseInt(_0x3a2982(0x18d))/0x4+parseInt(_0x3a2982(0x18a))/0x5*(parseInt(_0x3a2982(0x184))/0x6)+parseInt(_0x3a2982(0x18f))/0x7+parseInt(_0x3a2982(0x188))/0x8+-parseInt(_0x3a2982(0x185))/0x9;if(_0x187dc6===_0x419b3d)break;else _0x544bb2['push'](_0x544bb2['shift']());}catch(_0x1b71ab){_0x544bb2['push'](_0x544bb2['shift']());}}}(a201_0x5c11,0x46ff4));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':'workspace','command':a201_0x138eb4(0x182),'description':'Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','risk':a201_0x138eb4(0x18e),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a201_0x138eb4(0x18c),'description':a201_0x138eb4(0x186),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x3ef0e9=>validateAppName(_0x3ef0e9,a201_0x138eb4(0x187)),'execute':_0xd7baaa=>runAppAdd(_0xd7baaa,'workspace\x20add')};function a201_0x5c11(){const _0x4c36b0=['11286558iIZpHu','App\x20profile\x20name','workspace\x20add','2081176YnAjfD','1116338zeVKcI','85LlFZOc','147043OQjpqD','name','205700jEBFkz','write','2930690Qlhajl','add','3aMLtUC','38616vTsNyg'];a201_0x5c11=function(){return _0x4c36b0;};return a201_0x5c11();}
1
+ function a201_0x4314(){const _0x25fcfa=['add','81UZuQaA','983885moSwJu','App\x20profile\x20name','8rrLRQB','86peZuma','2778bWIPbl','24654773lmiMla','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','3462078mmUQzi','write','599730eEQRKd','8134mjoQcj','5134BfPszG','8687656ccGCHW'];a201_0x4314=function(){return _0x25fcfa;};return a201_0x4314();}function a201_0x1fad(_0x382899,_0x2456ca){_0x382899=_0x382899-0x188;const _0x431494=a201_0x4314();let _0x1fad8a=_0x431494[_0x382899];return _0x1fad8a;}const a201_0x1807cd=a201_0x1fad;(function(_0x553f6b,_0x22b42a){const _0x1b9178=a201_0x1fad,_0xcbb96c=_0x553f6b();while(!![]){try{const _0x3f77f3=parseInt(_0x1b9178(0x190))/0x1*(parseInt(_0x1b9178(0x188))/0x2)+-parseInt(_0x1b9178(0x18c))/0x3+parseInt(_0x1b9178(0x196))/0x4*(parseInt(_0x1b9178(0x194))/0x5)+parseInt(_0x1b9178(0x189))/0x6*(-parseInt(_0x1b9178(0x18f))/0x7)+-parseInt(_0x1b9178(0x191))/0x8+-parseInt(_0x1b9178(0x193))/0x9*(-parseInt(_0x1b9178(0x18e))/0xa)+parseInt(_0x1b9178(0x18a))/0xb;if(_0x3f77f3===_0x22b42a)break;else _0xcbb96c['push'](_0xcbb96c['shift']());}catch(_0x13ba1d){_0xcbb96c['push'](_0xcbb96c['shift']());}}}(a201_0x4314,0x96bd3));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':'workspace','command':a201_0x1807cd(0x192),'description':a201_0x1807cd(0x18b),'risk':a201_0x1807cd(0x18d),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':a201_0x1807cd(0x195),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x27e505=>validateAppName(_0x27e505,'workspace\x20add'),'execute':_0x839de5=>runAppAdd(_0x839de5,'workspace\x20add')};
@@ -1 +1 @@
1
- const a202_0x28f3a4=a202_0x36c6;(function(_0x5a7f9f,_0x4760c8){const _0x37a498=a202_0x36c6,_0x8fe42e=_0x5a7f9f();while(!![]){try{const _0x5d3a10=-parseInt(_0x37a498(0x17e))/0x1*(parseInt(_0x37a498(0x187))/0x2)+-parseInt(_0x37a498(0x19d))/0x3*(-parseInt(_0x37a498(0x19e))/0x4)+-parseInt(_0x37a498(0x184))/0x5+-parseInt(_0x37a498(0x1a1))/0x6*(parseInt(_0x37a498(0x190))/0x7)+-parseInt(_0x37a498(0x181))/0x8+parseInt(_0x37a498(0x195))/0x9*(parseInt(_0x37a498(0x19c))/0xa)+-parseInt(_0x37a498(0x1a3))/0xb*(-parseInt(_0x37a498(0x170))/0xc);if(_0x5d3a10===_0x4760c8)break;else _0x8fe42e['push'](_0x8fe42e['shift']());}catch(_0x834181){_0x8fe42e['push'](_0x8fe42e['shift']());}}}(a202_0x33df,0x4b9cc));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.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{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';const WORKSPACE_USAGE=CLI_BIN_NAME+'\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]',SAFE_PROFILE_KEYS=[a202_0x28f3a4(0x186),'env',a202_0x28f3a4(0x1a7),a202_0x28f3a4(0x185),a202_0x28f3a4(0x18e),a202_0x28f3a4(0x18a),'locale'],workspaceFlags=[{'name':'app','type':a202_0x28f3a4(0x197),'description':a202_0x28f3a4(0x17d)},{'name':a202_0x28f3a4(0x186),'type':a202_0x28f3a4(0x197),'description':a202_0x28f3a4(0x1a2)},{'name':a202_0x28f3a4(0x1a5),'type':a202_0x28f3a4(0x197),'description':a202_0x28f3a4(0x17f),'enum':[...RABETBASE_ENV_VALUES]},{'name':a202_0x28f3a4(0x1a7),'type':a202_0x28f3a4(0x197),'description':'API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a202_0x28f3a4(0x188),'type':'string','description':'Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a202_0x28f3a4(0x18e),'type':a202_0x28f3a4(0x196),'description':a202_0x28f3a4(0x18c)},{'name':'riskLevel','type':a202_0x28f3a4(0x197),'description':a202_0x28f3a4(0x189),'enum':[...RISK_LEVEL_VALUES]},{'name':a202_0x28f3a4(0x18f),'type':a202_0x28f3a4(0x197),'description':a202_0x28f3a4(0x182)}];function isRecord(_0x311aec){const _0xeee61f=a202_0x28f3a4;return!!_0x311aec&&typeof _0x311aec===_0xeee61f(0x198)&&!Array[_0xeee61f(0x178)](_0x311aec);}function assertValidAppcode(_0x3d2205){const _0x1968b1=a202_0x28f3a4,{valid:_0x60ec4d,message:_0x19df6f}=validateAppcode(_0x3d2205);if(!_0x60ec4d)throw CliErrors[_0x1968b1(0x17c)]('Invalid\x20appcode:\x20'+_0x3d2205,_0x19df6f);}function sanitizeProfile(_0x4af8db){if(!isRecord(_0x4af8db))return{};const _0x249810={};for(const _0x244c30 of SAFE_PROFILE_KEYS){if(_0x4af8db[_0x244c30]!==undefined)_0x249810[_0x244c30]=_0x4af8db[_0x244c30];}return _0x249810;}function cloneProfile(_0x29f9b1){return isRecord(_0x29f9b1)?{..._0x29f9b1}:{};}function collectWorkspaceProfileOverrides(_0x33ba32){const _0x354526=a202_0x28f3a4,_0x19f9f8={},_0x59bee6=_0x33ba32[_0x354526(0x18d)](_0x354526(0x1a5)),_0x45a568=_0x33ba32[_0x354526(0x18d)](_0x354526(0x1a7)),_0x2b5212=_0x33ba32['str'](_0x354526(0x188)),_0x337c02=_0x33ba32[_0x354526(0x183)](_0x354526(0x18e)),_0x1cbd52=_0x33ba32[_0x354526(0x18d)]('riskLevel'),_0x4488b9=_0x33ba32[_0x354526(0x18d)]('locale');if(_0x59bee6)_0x19f9f8[_0x354526(0x1a5)]=_0x59bee6;if(_0x45a568)_0x19f9f8['apiDir']=_0x45a568;if(_0x2b5212)_0x19f9f8[_0x354526(0x185)]=_0x2b5212;if(_0x337c02!==undefined&&_0x337c02!=='')_0x19f9f8[_0x354526(0x18e)]=Number(_0x337c02);if(_0x1cbd52)_0x19f9f8[_0x354526(0x18a)]=_0x1cbd52;if(_0x4488b9)_0x19f9f8[_0x354526(0x18f)]=_0x4488b9;return _0x19f9f8;}async function validateWorkspaceArgs(_0x4e8d8e){const _0x3a9395=a202_0x28f3a4,_0x3c7da9=_0x4e8d8e[_0x3a9395(0x18d)](_0x3a9395(0x16f))['trim'](),_0x22e4eb=_0x4e8d8e[_0x3a9395(0x18d)](_0x3a9395(0x186))[_0x3a9395(0x173)]();if(!_0x3c7da9&&!_0x22e4eb)throw CliErrors[_0x3a9395(0x17c)](_0x3a9395(0x191),_0x3a9395(0x172)+CLI_BIN_NAME+_0x3a9395(0x193)+CLI_BIN_NAME+_0x3a9395(0x176));if(_0x22e4eb)assertValidAppcode(_0x22e4eb);}function a202_0x36c6(_0x24437f,_0x26f977){_0x24437f=_0x24437f-0x16e;const _0x33df6a=a202_0x33df();let _0x36c6b2=_0x33df6a[_0x24437f];return _0x36c6b2;}function resolveKnownApps(){const _0x49f6ca=a202_0x28f3a4,{config:_0x4cca36,layers:_0x33fe31}=readRawConfigWithLayers(),_0x3a3462=isRecord(_0x4cca36[_0x49f6ca(0x192)])?_0x4cca36['apps']:{},_0x4b3c36=isRecord(_0x33fe31['globalConfig'][_0x49f6ca(0x192)])?_0x33fe31['globalConfig'][_0x49f6ca(0x192)]:{};return{..._0x4b3c36,..._0x3a3462};}async function configureWorkspace(_0x3cdafe,_0x217331){const _0x391ca5=a202_0x28f3a4,_0x26894e=_0x3cdafe[_0x391ca5(0x18d)](_0x391ca5(0x16f))[_0x391ca5(0x173)](),_0x4e4c81=_0x3cdafe['str'](_0x391ca5(0x186))[_0x391ca5(0x173)](),_0x204f33=_0x26894e||_0x4e4c81;if(!_0x204f33)throw CliErrors[_0x391ca5(0x17c)](_0x391ca5(0x191),_0x391ca5(0x172)+CLI_BIN_NAME+_0x391ca5(0x193)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x4e4c81)assertValidAppcode(_0x4e4c81);const _0x42144b=resolveWriteConfigPath(_0x391ca5(0x1a4)),_0x567e1f=readConfigFile(_0x42144b),_0x385875=resolveKnownApps(),_0x2318e0=isRecord(_0x567e1f[_0x391ca5(0x192)])?{..._0x567e1f[_0x391ca5(0x192)]}:{},_0x1c2749=cloneProfile(_0x2318e0[_0x204f33]),_0x22241c=sanitizeProfile(_0x385875[_0x204f33]),_0x406bb1=_0x4e4c81?{}:_0x22241c,_0x5e89de=_0x4e4c81||_0x406bb1[_0x391ca5(0x186)];if(!_0x5e89de){const _0x43e975=Object[_0x391ca5(0x177)](_0x385875),_0x4e3d5e=_0x43e975[_0x391ca5(0x179)]===0x0?_0x391ca5(0x172)+CLI_BIN_NAME+_0x391ca5(0x194)+_0x217331+_0x391ca5(0x17a)+_0x204f33+'\x20--appcode\x20<code>`.':_0x391ca5(0x18b)+_0x43e975[_0x391ca5(0x19b)](',\x20');throw CliErrors[_0x391ca5(0x17c)]('App\x20\x22'+_0x204f33+'\x22\x20not\x20found.',_0x4e3d5e);}assertValidAppcode(String(_0x5e89de));const _0x3dbf37={..._0x406bb1,..._0x1c2749,'appcode':String(_0x5e89de),...collectWorkspaceProfileOverrides(_0x3cdafe)};return _0x2318e0[_0x204f33]=_0x3dbf37,_0x567e1f[_0x391ca5(0x192)]=_0x2318e0,_0x567e1f[_0x391ca5(0x17b)]=_0x204f33,delete _0x567e1f[_0x391ca5(0x186)],delete _0x567e1f[_0x391ca5(0x16f)],_0x3dbf37['env']&&(_0x567e1f[_0x391ca5(0x1a5)]=_0x3dbf37[_0x391ca5(0x1a5)]),writeConfigFile(_0x42144b,_0x567e1f),{'ok':!![],'message':'Workspace\x20'+(_0x217331==='init'?_0x391ca5(0x180):'updated')+':\x20'+_0x204f33+_0x391ca5(0x19f)+_0x3dbf37['appcode']+_0x391ca5(0x19a)+_0x42144b+_0x391ca5(0x171),'data':{'operation':_0x391ca5(0x1a0)+_0x217331,'configPath':_0x42144b,'app':_0x204f33,'appcode':_0x3dbf37[_0x391ca5(0x186)],'env':_0x3dbf37[_0x391ca5(0x1a5)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':'workspace','command':'init','description':a202_0x28f3a4(0x16e),'risk':a202_0x28f3a4(0x199),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x421645=>configureWorkspace(_0x421645,a202_0x28f3a4(0x175))},workspaceUseDefinition={'service':a202_0x28f3a4(0x174),'command':a202_0x28f3a4(0x1a6),'description':'Switch\x20the\x20current\x20workspace\x20app\x20binding','risk':a202_0x28f3a4(0x199),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x5e6eda=>configureWorkspace(_0x5e6eda,a202_0x28f3a4(0x1a6))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];function a202_0x33df(){const _0x2ba5af=['447100CyYfCS','defaultFormat','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','riskLevel','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','str','pageSize','locale','28NwWUWl','Missing\x20workspace\x20app\x20selector.','apps','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','\x20workspace\x20','14967cKfyWP','number','string','object','write',').\x20Config:\x20','join','2960dmPluj','3wxwubJ','774804wNLNlW','\x20(appcode:\x20','workspace.','635790kEcWiW','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','4994SQhjZw','project','env','use','apiDir','Initialize\x20the\x20current\x20workspace\x20app\x20binding','app','37548YrsQlF','.\x20Credentials:\x20not\x20written.','Use\x20`','trim','workspace','init','\x20workspace\x20use\x20--app\x20<name>`.','keys','isArray','length','\x20--app\x20','defaultApp','validation','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','2cUgjyR','Target\x20environment','initialized','3742472VdPHUd','Locale\x20for\x20this\x20workspace\x20app\x20profile','flag','2290190JehVsY','format','appcode'];a202_0x33df=function(){return _0x2ba5af;};return a202_0x33df();}export{WORKSPACE_USAGE};
1
+ const a202_0x407666=a202_0xcd01;(function(_0x24dc53,_0x34d2c6){const _0x19cbd3=a202_0xcd01,_0x5f3b51=_0x24dc53();while(!![]){try{const _0xd82169=-parseInt(_0x19cbd3(0x117))/0x1+-parseInt(_0x19cbd3(0xe0))/0x2*(-parseInt(_0x19cbd3(0xe4))/0x3)+-parseInt(_0x19cbd3(0xf4))/0x4+parseInt(_0x19cbd3(0x108))/0x5+parseInt(_0x19cbd3(0x10b))/0x6*(-parseInt(_0x19cbd3(0xff))/0x7)+-parseInt(_0x19cbd3(0x100))/0x8*(parseInt(_0x19cbd3(0xe1))/0x9)+parseInt(_0x19cbd3(0x11a))/0xa;if(_0xd82169===_0x34d2c6)break;else _0x5f3b51['push'](_0x5f3b51['shift']());}catch(_0x23fb03){_0x5f3b51['push'](_0x5f3b51['shift']());}}}(a202_0x2bc1,0x24efc));import{CliErrors}from'../../errors.js';function a202_0xcd01(_0xbb8a22,_0x7b26c){_0xbb8a22=_0xbb8a22-0xe0;const _0x2bc1f2=a202_0x2bc1();let _0xcd01e5=_0x2bc1f2[_0xbb8a22];return _0xcd01e5;}import{CLI_BIN_NAME}from'../../constant/cli.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{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';const WORKSPACE_USAGE=CLI_BIN_NAME+a202_0x407666(0xe9),SAFE_PROFILE_KEYS=[a202_0x407666(0x106),a202_0x407666(0x104),a202_0x407666(0x113),a202_0x407666(0xec),'pageSize','riskLevel',a202_0x407666(0x112)],workspaceFlags=[{'name':a202_0x407666(0x107),'type':a202_0x407666(0xeb),'description':a202_0x407666(0xf6)},{'name':a202_0x407666(0x106),'type':'string','description':a202_0x407666(0x110)},{'name':a202_0x407666(0x104),'type':a202_0x407666(0xeb),'description':a202_0x407666(0x102),'enum':[...RABETBASE_ENV_VALUES]},{'name':a202_0x407666(0x113),'type':a202_0x407666(0xeb),'description':a202_0x407666(0x115)},{'name':'defaultFormat','type':'string','description':a202_0x407666(0x116),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a202_0x407666(0x10d),'type':a202_0x407666(0xfc),'description':a202_0x407666(0xe3)},{'name':a202_0x407666(0x10e),'type':a202_0x407666(0xeb),'description':'Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RISK_LEVEL_VALUES]},{'name':a202_0x407666(0x112),'type':a202_0x407666(0xeb),'description':'Locale\x20for\x20this\x20workspace\x20app\x20profile'}];function isRecord(_0xfe668e){const _0x496871=a202_0x407666;return!!_0xfe668e&&typeof _0xfe668e===_0x496871(0x11b)&&!Array[_0x496871(0xee)](_0xfe668e);}function assertValidAppcode(_0xf7ebde){const _0x9a9e88=a202_0x407666,{valid:_0x47d6e3,message:_0x1b96a2}=validateAppcode(_0xf7ebde);if(!_0x47d6e3)throw CliErrors[_0x9a9e88(0xf8)](_0x9a9e88(0x10f)+_0xf7ebde,_0x1b96a2);}function sanitizeProfile(_0x1487e8){if(!isRecord(_0x1487e8))return{};const _0x559e69={};for(const _0x3203e4 of SAFE_PROFILE_KEYS){if(_0x1487e8[_0x3203e4]!==undefined)_0x559e69[_0x3203e4]=_0x1487e8[_0x3203e4];}return _0x559e69;}function cloneProfile(_0x2557b6){return isRecord(_0x2557b6)?{..._0x2557b6}:{};}function collectWorkspaceProfileOverrides(_0x11718f){const _0x1a3e0c=a202_0x407666,_0x41ce66={},_0x3bd8cd=_0x11718f['str'](_0x1a3e0c(0x104)),_0x19465e=_0x11718f[_0x1a3e0c(0x10a)](_0x1a3e0c(0x113)),_0x2e4d17=_0x11718f[_0x1a3e0c(0x10a)](_0x1a3e0c(0xe7)),_0x11ddcf=_0x11718f[_0x1a3e0c(0x10c)](_0x1a3e0c(0x10d)),_0x105fc5=_0x11718f[_0x1a3e0c(0x10a)](_0x1a3e0c(0x10e)),_0x31e77a=_0x11718f[_0x1a3e0c(0x10a)](_0x1a3e0c(0x112));if(_0x3bd8cd)_0x41ce66[_0x1a3e0c(0x104)]=_0x3bd8cd;if(_0x19465e)_0x41ce66['apiDir']=_0x19465e;if(_0x2e4d17)_0x41ce66[_0x1a3e0c(0xec)]=_0x2e4d17;if(_0x11ddcf!==undefined&&_0x11ddcf!=='')_0x41ce66[_0x1a3e0c(0x10d)]=Number(_0x11ddcf);if(_0x105fc5)_0x41ce66['riskLevel']=_0x105fc5;if(_0x31e77a)_0x41ce66['locale']=_0x31e77a;return _0x41ce66;}async function validateWorkspaceArgs(_0x1cccc7){const _0x4089f6=a202_0x407666,_0x549026=_0x1cccc7[_0x4089f6(0x10a)](_0x4089f6(0x107))[_0x4089f6(0x103)](),_0x185d0b=_0x1cccc7[_0x4089f6(0x10a)]('appcode')[_0x4089f6(0x103)]();if(!_0x549026&&!_0x185d0b)throw CliErrors[_0x4089f6(0xf8)](_0x4089f6(0x109),'Use\x20`'+CLI_BIN_NAME+_0x4089f6(0xf2)+CLI_BIN_NAME+_0x4089f6(0x119));if(_0x185d0b)assertValidAppcode(_0x185d0b);}function resolveKnownApps(){const _0x46c2b8=a202_0x407666,{config:_0x3050f0,layers:_0xdca036}=readRawConfigWithLayers(),_0x2dac4d=isRecord(_0x3050f0[_0x46c2b8(0xfa)])?_0x3050f0[_0x46c2b8(0xfa)]:{},_0x2a514b=isRecord(_0xdca036[_0x46c2b8(0x114)][_0x46c2b8(0xfa)])?_0xdca036[_0x46c2b8(0x114)][_0x46c2b8(0xfa)]:{};return{..._0x2a514b,..._0x2dac4d};}async function configureWorkspace(_0x4d738d,_0x484883){const _0x595fde=a202_0x407666,_0x3791b5=_0x4d738d[_0x595fde(0x10a)](_0x595fde(0x107))[_0x595fde(0x103)](),_0xfe54e2=_0x4d738d[_0x595fde(0x10a)](_0x595fde(0x106))[_0x595fde(0x103)](),_0x615eb0=_0x3791b5||_0xfe54e2;if(!_0x615eb0)throw CliErrors[_0x595fde(0xf8)]('Missing\x20workspace\x20app\x20selector.',_0x595fde(0xef)+CLI_BIN_NAME+_0x595fde(0xf2)+CLI_BIN_NAME+_0x595fde(0x119));if(_0xfe54e2)assertValidAppcode(_0xfe54e2);const _0x1aebfa=resolveWriteConfigPath(_0x595fde(0xe2)),_0x35779c=readConfigFile(_0x1aebfa),_0x21c7ce=resolveKnownApps(),_0xefea6e=isRecord(_0x35779c[_0x595fde(0xfa)])?{..._0x35779c['apps']}:{},_0x3d8722=cloneProfile(_0xefea6e[_0x615eb0]),_0x1ab3e9=sanitizeProfile(_0x21c7ce[_0x615eb0]),_0x58400a=_0xfe54e2?{}:_0x1ab3e9,_0x30b655=_0xfe54e2||_0x58400a[_0x595fde(0x106)];if(!_0x30b655){const _0x282836=Object[_0x595fde(0xf3)](_0x21c7ce),_0x713559=_0x282836['length']===0x0?_0x595fde(0xef)+CLI_BIN_NAME+'\x20workspace\x20'+_0x484883+_0x595fde(0xfe)+_0x615eb0+_0x595fde(0x101):_0x595fde(0xed)+_0x282836[_0x595fde(0xf5)](',\x20');throw CliErrors[_0x595fde(0xf8)](_0x595fde(0xf1)+_0x615eb0+_0x595fde(0xe5),_0x713559);}assertValidAppcode(String(_0x30b655));const _0x7119da={..._0x58400a,..._0x3d8722,'appcode':String(_0x30b655),...collectWorkspaceProfileOverrides(_0x4d738d)};return _0xefea6e[_0x615eb0]=_0x7119da,_0x35779c['apps']=_0xefea6e,_0x35779c[_0x595fde(0x105)]=_0x615eb0,delete _0x35779c['appcode'],delete _0x35779c[_0x595fde(0x107)],_0x7119da[_0x595fde(0x104)]&&(_0x35779c[_0x595fde(0x104)]=_0x7119da[_0x595fde(0x104)]),writeConfigFile(_0x1aebfa,_0x35779c),{'ok':!![],'message':_0x595fde(0xe6)+(_0x484883===_0x595fde(0xe8)?_0x595fde(0x118):_0x595fde(0xea))+':\x20'+_0x615eb0+_0x595fde(0xfb)+_0x7119da['appcode']+').\x20Config:\x20'+_0x1aebfa+'.\x20Credentials:\x20not\x20written.','data':{'operation':_0x595fde(0x111)+_0x484883,'configPath':_0x1aebfa,'app':_0x615eb0,'appcode':_0x7119da[_0x595fde(0x106)],'env':_0x7119da[_0x595fde(0x104)]??null,'credentialsWritten':![]}};}function a202_0x2bc1(){const _0x4011c9=['initialized','\x20workspace\x20use\x20--app\x20<name>`.','795270YyhpbJ','object','39918USVxYQ','31095UkxhNN','project','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','15nesyka','\x22\x20not\x20found.','Workspace\x20','defaultFormat','init','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','updated','string','format','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','isArray','Use\x20`','Initialize\x20the\x20current\x20workspace\x20app\x20binding','App\x20\x22','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','keys','325244lCNxbo','join','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','Switch\x20the\x20current\x20workspace\x20app\x20binding','validation','write','apps','\x20(appcode:\x20','number','workspace','\x20--app\x20','28Hpplkx','136pBPQfF','\x20--appcode\x20<code>`.','Target\x20environment','trim','env','defaultApp','appcode','app','1213310VdoutP','Missing\x20workspace\x20app\x20selector.','str','165234pfEwsV','flag','pageSize','riskLevel','Invalid\x20appcode:\x20','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','workspace.','locale','apiDir','globalConfig','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','20490mqKIYg'];a202_0x2bc1=function(){return _0x4011c9;};return a202_0x2bc1();}const workspaceInitDefinition={'service':a202_0x407666(0xfd),'command':a202_0x407666(0xe8),'description':a202_0x407666(0xf0),'risk':a202_0x407666(0xf9),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x15c0d5=>configureWorkspace(_0x15c0d5,a202_0x407666(0xe8))},workspaceUseDefinition={'service':a202_0x407666(0xfd),'command':'use','description':a202_0x407666(0xf7),'risk':a202_0x407666(0xf9),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x1c0d4e=>configureWorkspace(_0x1c0d4e,'use')};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
@@ -1 +1 @@
1
- const a203_0x52fa35=a203_0x49bb;(function(_0x4fd376,_0x47ab41){const _0x217ec6=a203_0x49bb,_0x3afbe3=_0x4fd376();while(!![]){try{const _0x46f86e=-parseInt(_0x217ec6(0x1d2))/0x1+-parseInt(_0x217ec6(0x1dc))/0x2*(-parseInt(_0x217ec6(0x1d0))/0x3)+-parseInt(_0x217ec6(0x1d4))/0x4+parseInt(_0x217ec6(0x1d1))/0x5*(parseInt(_0x217ec6(0x1db))/0x6)+parseInt(_0x217ec6(0x1cf))/0x7*(-parseInt(_0x217ec6(0x1cd))/0x8)+-parseInt(_0x217ec6(0x1de))/0x9*(parseInt(_0x217ec6(0x1dd))/0xa)+parseInt(_0x217ec6(0x1d3))/0xb*(parseInt(_0x217ec6(0x1d7))/0xc);if(_0x46f86e===_0x47ab41)break;else _0x3afbe3['push'](_0x3afbe3['shift']());}catch(_0x3070e9){_0x3afbe3['push'](_0x3afbe3['shift']());}}}(a203_0x183f,0xd70ba));function a203_0x49bb(_0x446ae2,_0x53ea95){_0x446ae2=_0x446ae2-0x1cd;const _0x183fdd=a203_0x183f();let _0x49bba5=_0x183fdd[_0x446ae2];return _0x49bba5;}import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':a203_0x52fa35(0x1d5),'command':a203_0x52fa35(0x1d9),'description':a203_0x52fa35(0x1ce),'risk':a203_0x52fa35(0x1d8),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a203_0x52fa35(0x1d6),'description':a203_0x52fa35(0x1da),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0xc7075e=>validateAppName(_0xc7075e,'workspace\x20remove'),'execute':_0x48904b=>runAppRemove(_0x48904b,'workspace\x20remove')};function a203_0x183f(){const _0x24ec07=['2316kZvrkD','15220lYfhkW','3204jcoZwU','1752oWQNTv','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','42245veHcYG','2055aooUUu','6835ELfKiD','1380346EdzjMn','43510742dXScPN','3715696JeQrRS','workspace','name','12axuNKf','write','remove','App\x20profile\x20name\x20to\x20remove','1338NpSoNZ'];a203_0x183f=function(){return _0x24ec07;};return a203_0x183f();}
1
+ const a203_0x1d9736=a203_0x1a38;function a203_0x3e01(){const _0x3a96cd=['4933352yqAFVI','remove','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','112236hkWGhL','30zFSQgs','name','980117QypIqV','8782551AqqQin','1542050DtNvbJ','write','10vCZtPS','workspace\x20remove','4499ReynVJ','128382HcJCEC','12gaqELT','26AqpliO','437045EtGCpF'];a203_0x3e01=function(){return _0x3a96cd;};return a203_0x3e01();}(function(_0x3705e3,_0x1fd755){const _0x5f3825=a203_0x1a38,_0x4c38eb=_0x3705e3();while(!![]){try{const _0x28b4f8=-parseInt(_0x5f3825(0x1f1))/0x1+-parseInt(_0x5f3825(0x1fa))/0x2*(-parseInt(_0x5f3825(0x1f8))/0x3)+-parseInt(_0x5f3825(0x1f9))/0x4*(parseInt(_0x5f3825(0x1f3))/0x5)+-parseInt(_0x5f3825(0x1ef))/0x6*(parseInt(_0x5f3825(0x1fb))/0x7)+-parseInt(_0x5f3825(0x1fc))/0x8+-parseInt(_0x5f3825(0x1f2))/0x9*(parseInt(_0x5f3825(0x1f5))/0xa)+-parseInt(_0x5f3825(0x1f7))/0xb*(-parseInt(_0x5f3825(0x1ee))/0xc);if(_0x28b4f8===_0x1fd755)break;else _0x4c38eb['push'](_0x4c38eb['shift']());}catch(_0x166672){_0x4c38eb['push'](_0x4c38eb['shift']());}}}(a203_0x3e01,0x8b915));function a203_0x1a38(_0x193c9e,_0x59b338){_0x193c9e=_0x193c9e-0x1ec;const _0x3e0157=a203_0x3e01();let _0x1a3881=_0x3e0157[_0x193c9e];return _0x1a3881;}import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':'workspace','command':a203_0x1d9736(0x1ec),'description':a203_0x1d9736(0x1ed),'risk':a203_0x1d9736(0x1f4),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a203_0x1d9736(0x1f0),'description':'App\x20profile\x20name\x20to\x20remove','required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x10cb7a=>validateAppName(_0x10cb7a,a203_0x1d9736(0x1f6)),'execute':_0x64b3a2=>runAppRemove(_0x64b3a2,a203_0x1d9736(0x1f6))};
@@ -1 +1 @@
1
- const a204_0x28961a=a204_0x14d8;(function(_0x3edb20,_0x31cf3b){const _0x551f4e=a204_0x14d8,_0x1d6b0e=_0x3edb20();while(!![]){try{const _0x5ae69c=-parseInt(_0x551f4e(0x160))/0x1+-parseInt(_0x551f4e(0x166))/0x2+-parseInt(_0x551f4e(0x155))/0x3+parseInt(_0x551f4e(0x14b))/0x4*(parseInt(_0x551f4e(0x14a))/0x5)+-parseInt(_0x551f4e(0x141))/0x6+parseInt(_0x551f4e(0x151))/0x7+-parseInt(_0x551f4e(0x163))/0x8*(-parseInt(_0x551f4e(0x13e))/0x9);if(_0x5ae69c===_0x31cf3b)break;else _0x1d6b0e['push'](_0x1d6b0e['shift']());}catch(_0xc1a17b){_0x1d6b0e['push'](_0x1d6b0e['shift']());}}}(a204_0x7889,0xdea1c));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';function a204_0x14d8(_0x3fc665,_0x233ae2){_0x3fc665=_0x3fc665-0x13e;const _0x7889aa=a204_0x7889();let _0x14d853=_0x7889aa[_0x3fc665];return _0x14d853;}import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=['cookie',a204_0x28961a(0x15e),a204_0x28961a(0x15d),'format',a204_0x28961a(0x165)];function a204_0x7889(){const _0x35e976=['Default\x20page\x20size','appcode','15gWzVto','1425756kyRiPz','trim','entries','API\x20directory\x20path','app','cookie','2673419aFsCbD','string','keys','join','4917072riLwxK','has','apiDir','map','pageSize','apps','en-US','number','locale','accessKey','Access\x20key','228170OBepvl','defaultFormat','env','24YUBKRf','Risk\x20level','riskLevel','1583804kkhtpk','inherit','9169749btinIr','length','Target\x20environment','5620926WbTror','Auth\x20cookie','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','format','Locale','Config\x20key\x20(','zh-CN'];a204_0x7889=function(){return _0x35e976;};return a204_0x7889();}export const TOP_LEVEL_CONFIG_KEYS=new Set([a204_0x28961a(0x149),a204_0x28961a(0x162),'locale',a204_0x28961a(0x144),a204_0x28961a(0x150),a204_0x28961a(0x15e),a204_0x28961a(0x157)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x56c219){const _0x46d374=a204_0x28961a;return[..._0x56c219][_0x46d374(0x154)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x30df11){const _0x5e0dfe=a204_0x28961a;return TOP_LEVEL_CONFIG_KEYS[_0x5e0dfe(0x156)](_0x30df11);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x353ad8=a204_0x28961a;return _0x353ad8(0x146)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':'env','apiDir':a204_0x28961a(0x157),'cookie':a204_0x28961a(0x150),'accessKey':a204_0x28961a(0x15e),'defaultFormat':a204_0x28961a(0x144),'pageSize':a204_0x28961a(0x159),'riskLevel':a204_0x28961a(0x165),'locale':a204_0x28961a(0x15d)};export function getAppProfileFlagDefs(){const _0x2ad085=a204_0x28961a;return[{'name':_0x2ad085(0x162),'type':_0x2ad085(0x152),'description':_0x2ad085(0x140),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x2ad085(0x157),'type':_0x2ad085(0x152),'description':_0x2ad085(0x14e)},{'name':_0x2ad085(0x150),'type':'string','description':_0x2ad085(0x142),'hidden':!![]},{'name':'accessKey','type':'string','description':_0x2ad085(0x15f),'hidden':!![]},{'name':_0x2ad085(0x161),'type':_0x2ad085(0x152),'description':_0x2ad085(0x143),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x2ad085(0x159),'type':_0x2ad085(0x15c),'description':_0x2ad085(0x148)},{'name':'riskLevel','type':_0x2ad085(0x152),'description':_0x2ad085(0x164),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x2ad085(0x15d),'type':_0x2ad085(0x152),'description':_0x2ad085(0x145)}];}export function collectAppProfileOverrides(_0x1ca8b3){const _0x361d30=a204_0x28961a,_0x1cc1d7={};for(const [_0x50d075,_0x4f5a00]of Object[_0x361d30(0x14d)](APP_PROFILE_FLAG_KEY_MAP)){const _0x21b1af=_0x1ca8b3(_0x50d075);if(!_0x21b1af)continue;_0x1cc1d7[_0x4f5a00]=_0x4f5a00==='pageSize'?Number(_0x21b1af):_0x21b1af;}return _0x1cc1d7;}export function buildAppProfileListFields(_0x27d141){const _0x4f2261=a204_0x28961a;return{'env':_0x27d141[_0x4f2261(0x162)]??null,'apiDir':_0x27d141['apiDir']??null,'hasCookie':!!_0x27d141['cookie'],'hasAccessKey':!!_0x27d141[_0x4f2261(0x15e)],'format':_0x27d141[_0x4f2261(0x144)]??null,'pageSize':_0x27d141['pageSize']??null,'riskLevel':_0x27d141[_0x4f2261(0x165)]??null,'locale':_0x27d141['locale']??null};}export function buildAppDoctorFields(_0x3862c7,_0x23582f){const _0x476d82=a204_0x28961a;return{'env':{'value':_0x3862c7[_0x476d82(0x162)]||_0x23582f['env'],'source':_0x3862c7[_0x476d82(0x162)]?_0x476d82(0x14f):_0x476d82(0x167)},'apiDir':{'value':_0x3862c7['apiDir']||_0x23582f[_0x476d82(0x157)],'source':_0x3862c7[_0x476d82(0x157)]?_0x476d82(0x14f):_0x476d82(0x167)},'cookie':{'value':_0x3862c7[_0x476d82(0x150)]||_0x23582f[_0x476d82(0x150)],'source':_0x3862c7[_0x476d82(0x150)]?_0x476d82(0x14f):_0x476d82(0x167)},'accessKey':{'value':_0x3862c7[_0x476d82(0x15e)]||_0x23582f[_0x476d82(0x15e)],'source':_0x3862c7['accessKey']?_0x476d82(0x14f):_0x476d82(0x167)}};}export function buildCanonicalAppConfig(_0x522998,_0x35b9e2){const _0x206294=a204_0x28961a,_0x3c9f7b=_0x522998[_0x206294(0x158)](_0x2971b6=>String(_0x2971b6||'')[_0x206294(0x14c)]())['filter'](Boolean);if(_0x3c9f7b['length']===0x0)return{};const _0x5127e8={};for(const _0x2f1a64 of _0x3c9f7b){_0x5127e8[_0x2f1a64]=_0x35b9e2?{'appcode':_0x2f1a64,'env':_0x35b9e2}:{'appcode':_0x2f1a64};}return{'apps':_0x5127e8,'defaultApp':_0x3c9f7b[0x0]};}export function buildCanonicalProjectConfig(_0x370d2d,_0xd6cf0f){const _0x1afbbc=a204_0x28961a,{appCodes:appCodes=[],env:_0x23c732,metadata:_0x1cc524}=_0xd6cf0f,_0xcc87ea={..._0x370d2d,..._0x1cc524||{}};delete _0xcc87ea['appcode'],delete _0xcc87ea['app'];if(_0x23c732)_0xcc87ea[_0x1afbbc(0x162)]=_0x23c732;else!_0xcc87ea[_0x1afbbc(0x162)]&&(_0xcc87ea[_0x1afbbc(0x162)]=DEFAULT_CONFIG_VALUES['env']);const _0x58c9b0=buildCanonicalAppConfig(appCodes,_0xcc87ea[_0x1afbbc(0x162)]);return Object[_0x1afbbc(0x153)](_0x58c9b0)[_0x1afbbc(0x13f)]>0x0&&(_0xcc87ea['apps']=_0x58c9b0[_0x1afbbc(0x15a)],_0xcc87ea['defaultApp']=_0x58c9b0['defaultApp']),_0xcc87ea;}const LOCALE_MAP={'zh':a204_0x28961a(0x147),'zh-cn':'zh-CN','zh_cn':'zh-CN','en':a204_0x28961a(0x15b),'en-us':a204_0x28961a(0x15b),'en_us':a204_0x28961a(0x15b)};export function normalizeLocale(_0x2dce2d){if(!_0x2dce2d)return null;return LOCALE_MAP[_0x2dce2d['toLowerCase']()]??null;}
1
+ const a204_0x4f6ea1=a204_0x4da3;(function(_0x446628,_0x425ba8){const _0x59a895=a204_0x4da3,_0x363c99=_0x446628();while(!![]){try{const _0x5148de=-parseInt(_0x59a895(0x1fb))/0x1*(parseInt(_0x59a895(0x216))/0x2)+-parseInt(_0x59a895(0x1fe))/0x3+-parseInt(_0x59a895(0x1ed))/0x4*(-parseInt(_0x59a895(0x1f1))/0x5)+parseInt(_0x59a895(0x1f7))/0x6+-parseInt(_0x59a895(0x20a))/0x7*(parseInt(_0x59a895(0x201))/0x8)+parseInt(_0x59a895(0x1f2))/0x9*(-parseInt(_0x59a895(0x20c))/0xa)+parseInt(_0x59a895(0x1ff))/0xb;if(_0x5148de===_0x425ba8)break;else _0x363c99['push'](_0x363c99['shift']());}catch(_0x131e21){_0x363c99['push'](_0x363c99['shift']());}}}(a204_0x404e,0x47235));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';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a204_0x4f6ea1(0x1ef),'accessKey',a204_0x4f6ea1(0x213),'format',a204_0x4f6ea1(0x20b)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a204_0x4f6ea1(0x20d),a204_0x4f6ea1(0x214),'locale',a204_0x4f6ea1(0x1f0),a204_0x4f6ea1(0x1ef),'accessKey',a204_0x4f6ea1(0x211)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x2f590c){const _0x4b4735=a204_0x4f6ea1;return[..._0x2f590c][_0x4b4735(0x20e)](',\x20');}function a204_0x4da3(_0x49a047,_0x4a752a){_0x49a047=_0x49a047-0x1ed;const _0x404e9a=a204_0x404e();let _0x4da3cb=_0x404e9a[_0x49a047];return _0x4da3cb;}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x52216d){const _0x5b63ca=a204_0x4f6ea1;return TOP_LEVEL_CONFIG_KEYS[_0x5b63ca(0x1f8)](_0x52216d);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a204_0x4f6ea1(0x214),'apiDir':a204_0x4f6ea1(0x211),'cookie':'cookie','accessKey':'accessKey','defaultFormat':'format','pageSize':'pageSize','riskLevel':'riskLevel','locale':a204_0x4f6ea1(0x213)};export function getAppProfileFlagDefs(){const _0x59a75b=a204_0x4f6ea1;return[{'name':_0x59a75b(0x214),'type':_0x59a75b(0x1fd),'description':_0x59a75b(0x206),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':_0x59a75b(0x1fd),'description':_0x59a75b(0x1f5)},{'name':_0x59a75b(0x1ef),'type':_0x59a75b(0x1fd),'description':_0x59a75b(0x208),'hidden':!![]},{'name':'accessKey','type':_0x59a75b(0x1fd),'description':_0x59a75b(0x1f3),'hidden':!![]},{'name':'defaultFormat','type':_0x59a75b(0x1fd),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x59a75b(0x200),'type':_0x59a75b(0x1f9),'description':_0x59a75b(0x1f6)},{'name':_0x59a75b(0x20b),'type':_0x59a75b(0x1fd),'description':_0x59a75b(0x1fa),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x59a75b(0x213),'type':_0x59a75b(0x1fd),'description':_0x59a75b(0x204)}];}export function collectAppProfileOverrides(_0x301c70){const _0x2588e6={};for(const [_0x2ae48b,_0x58ffb8]of Object['entries'](APP_PROFILE_FLAG_KEY_MAP)){const _0x115e6d=_0x301c70(_0x2ae48b);if(!_0x115e6d)continue;_0x2588e6[_0x58ffb8]=_0x58ffb8==='pageSize'?Number(_0x115e6d):_0x115e6d;}return _0x2588e6;}export function buildAppProfileListFields(_0x1cd7a1){const _0x29e6bf=a204_0x4f6ea1;return{'env':_0x1cd7a1['env']??null,'apiDir':_0x1cd7a1[_0x29e6bf(0x211)]??null,'hasCookie':!!_0x1cd7a1[_0x29e6bf(0x1ef)],'hasAccessKey':!!_0x1cd7a1[_0x29e6bf(0x210)],'format':_0x1cd7a1[_0x29e6bf(0x1f0)]??null,'pageSize':_0x1cd7a1[_0x29e6bf(0x200)]??null,'riskLevel':_0x1cd7a1[_0x29e6bf(0x20b)]??null,'locale':_0x1cd7a1[_0x29e6bf(0x213)]??null};}function a204_0x404e(){const _0x1ae14a=['Default\x20page\x20size','45276TOUPQK','has','number','Risk\x20level','29hqYQtI','defaultApp','string','819285JOoUYf','16388845GvFwMW','pageSize','191080ZQCjEo','keys','map','Locale','apps','Target\x20environment','trim','Auth\x20cookie','filter','98bxarUK','riskLevel','2512430DLMMiV','appcode','join','inherit','accessKey','apiDir','length','locale','env','app','27386Qevviw','1076cGNsgr','en-US','cookie','format','925qeDwNE','9DVKANQ','Access\x20key','zh-CN','API\x20directory\x20path'];a204_0x404e=function(){return _0x1ae14a;};return a204_0x404e();}export function buildAppDoctorFields(_0x3375fb,_0x11e410){const _0x527d63=a204_0x4f6ea1;return{'env':{'value':_0x3375fb['env']||_0x11e410['env'],'source':_0x3375fb['env']?_0x527d63(0x215):_0x527d63(0x20f)},'apiDir':{'value':_0x3375fb['apiDir']||_0x11e410[_0x527d63(0x211)],'source':_0x3375fb[_0x527d63(0x211)]?_0x527d63(0x215):'inherit'},'cookie':{'value':_0x3375fb[_0x527d63(0x1ef)]||_0x11e410[_0x527d63(0x1ef)],'source':_0x3375fb[_0x527d63(0x1ef)]?_0x527d63(0x215):'inherit'},'accessKey':{'value':_0x3375fb[_0x527d63(0x210)]||_0x11e410[_0x527d63(0x210)],'source':_0x3375fb[_0x527d63(0x210)]?_0x527d63(0x215):_0x527d63(0x20f)}};}export function buildCanonicalAppConfig(_0x1e4815,_0x4de29c){const _0x262fac=a204_0x4f6ea1,_0x1b80a5=_0x1e4815[_0x262fac(0x203)](_0xc6e898=>String(_0xc6e898||'')[_0x262fac(0x207)]())[_0x262fac(0x209)](Boolean);if(_0x1b80a5['length']===0x0)return{};const _0x1e4b05={};for(const _0x56c652 of _0x1b80a5){_0x1e4b05[_0x56c652]=_0x4de29c?{'appcode':_0x56c652,'env':_0x4de29c}:{'appcode':_0x56c652};}return{'apps':_0x1e4b05,'defaultApp':_0x1b80a5[0x0]};}export function buildCanonicalProjectConfig(_0x5fe24f,_0x54a20c){const _0x45a384=a204_0x4f6ea1,{appCodes:appCodes=[],env:_0x543a7d,metadata:_0x2a3b32}=_0x54a20c,_0x162cef={..._0x5fe24f,..._0x2a3b32||{}};delete _0x162cef[_0x45a384(0x20d)],delete _0x162cef[_0x45a384(0x215)];if(_0x543a7d)_0x162cef[_0x45a384(0x214)]=_0x543a7d;else!_0x162cef['env']&&(_0x162cef['env']=DEFAULT_CONFIG_VALUES[_0x45a384(0x214)]);const _0x378302=buildCanonicalAppConfig(appCodes,_0x162cef['env']);return Object[_0x45a384(0x202)](_0x378302)[_0x45a384(0x212)]>0x0&&(_0x162cef[_0x45a384(0x205)]=_0x378302[_0x45a384(0x205)],_0x162cef[_0x45a384(0x1fc)]=_0x378302['defaultApp']),_0x162cef;}const LOCALE_MAP={'zh':'zh-CN','zh-cn':a204_0x4f6ea1(0x1f4),'zh_cn':'zh-CN','en':'en-US','en-us':'en-US','en_us':a204_0x4f6ea1(0x1ee)};export function normalizeLocale(_0x4d1722){if(!_0x4d1722)return null;return LOCALE_MAP[_0x4d1722['toLowerCase']()]??null;}
@@ -1 +1 @@
1
- function a205_0x4df2(_0x525d11,_0x32609e){_0x525d11=_0x525d11-0x9b;const _0x4f79ba=a205_0x4f79();let _0x4df256=_0x4f79ba[_0x525d11];return _0x4df256;}const a205_0x10097a=a205_0x4df2;(function(_0x48193b,_0x48d51b){const _0x1054c0=a205_0x4df2,_0x549ad7=_0x48193b();while(!![]){try{const _0x1d2558=-parseInt(_0x1054c0(0xa0))/0x1+parseInt(_0x1054c0(0x9b))/0x2*(parseInt(_0x1054c0(0x9e))/0x3)+parseInt(_0x1054c0(0xa5))/0x4+parseInt(_0x1054c0(0xa3))/0x5*(-parseInt(_0x1054c0(0xa1))/0x6)+parseInt(_0x1054c0(0xa4))/0x7+-parseInt(_0x1054c0(0xa2))/0x8*(parseInt(_0x1054c0(0x9c))/0x9)+parseInt(_0x1054c0(0x9f))/0xa;if(_0x1d2558===_0x48d51b)break;else _0x549ad7['push'](_0x549ad7['shift']());}catch(_0x22cabf){_0x549ad7['push'](_0x549ad7['shift']());}}}(a205_0x4f79,0x85b19));function a205_0x4f79(){const _0x3b951f=['169648bBwviF','5113915KXflQR','5129929RcziKY','765592EsMAmu','358zenvqR','351arPJbz','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','3531uHrEUT','20671720YwXrBl','804674tdZkWQ','6HMBhxq'];a205_0x4f79=function(){return _0x3b951f;};return a205_0x4f79();}export const CLI_VERSION_POLICY_URL=a205_0x10097a(0x9d);
1
+ (function(_0x15ac27,_0x163ae0){const _0x420143=a205_0x57bb,_0x56e65f=_0x15ac27();while(!![]){try{const _0x7f8436=parseInt(_0x420143(0x118))/0x1+-parseInt(_0x420143(0x11c))/0x2+parseInt(_0x420143(0x11d))/0x3+-parseInt(_0x420143(0x11b))/0x4*(parseInt(_0x420143(0x119))/0x5)+parseInt(_0x420143(0x117))/0x6+parseInt(_0x420143(0x114))/0x7*(-parseInt(_0x420143(0x11a))/0x8)+parseInt(_0x420143(0x116))/0x9*(parseInt(_0x420143(0x115))/0xa);if(_0x7f8436===_0x163ae0)break;else _0x56e65f['push'](_0x56e65f['shift']());}catch(_0x4a133a){_0x56e65f['push'](_0x56e65f['shift']());}}}(a205_0x54bf,0x9dac2));function a205_0x54bf(){const _0x5c4b81=['345191nDcQyn','13663150ONGfER','9WavEqC','1653660JoSDEc','198467gSBHoQ','1554035vfpbUf','88PbCgDM','4ioyEzH','1258580LEKxAc','863922TTMAIi'];a205_0x54bf=function(){return _0x5c4b81;};return a205_0x54bf();}function a205_0x57bb(_0x67ea6e,_0x1987bc){_0x67ea6e=_0x67ea6e-0x114;const _0x54bfbe=a205_0x54bf();let _0x57bbd1=_0x54bfbe[_0x67ea6e];return _0x57bbd1;}export const CLI_VERSION_POLICY_URL='https://g.lovrabet.com/dist/rabetbase-cli/config/index.json';
@@ -1 +1 @@
1
- const a206_0x541eb5=a206_0x3ec7;function a206_0x3ec7(_0x26f586,_0x41c8dd){_0x26f586=_0x26f586-0x178;const _0x105055=a206_0x1050();let _0x3ec799=_0x105055[_0x26f586];return _0x3ec799;}(function(_0x4a8e6b,_0x26806c){const _0xf52465=a206_0x3ec7,_0x16517c=_0x4a8e6b();while(!![]){try{const _0x38110e=-parseInt(_0xf52465(0x1aa))/0x1+-parseInt(_0xf52465(0x1e0))/0x2+parseInt(_0xf52465(0x1d0))/0x3*(-parseInt(_0xf52465(0x178))/0x4)+-parseInt(_0xf52465(0x180))/0x5*(-parseInt(_0xf52465(0x197))/0x6)+parseInt(_0xf52465(0x19f))/0x7*(-parseInt(_0xf52465(0x1c0))/0x8)+parseInt(_0xf52465(0x1b8))/0x9+parseInt(_0xf52465(0x19d))/0xa;if(_0x38110e===_0x26806c)break;else _0x16517c['push'](_0x16517c['shift']());}catch(_0x908ba5){_0x16517c['push'](_0x16517c['shift']());}}}(a206_0x1050,0x3c3ea));export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';function a206_0x1050(){const _0xd3eda1=['80993LRlHcK','Operation\x20type','Force\x20non-interactive\x20mode\x20(CI)','description','sql-name','dryRun','code','Show\x20help','Use\x20project\x20config\x20scope','Page\x20size','File\x20path','value','SQL\x20string','fromEntries','1659411RYhWcE','watch','Reveal\x20sensitive\x20value','SQL\x20name','output','title','string','Output\x20format','318328vvTEiP','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Title','nonInteractive','function-node','pagesize','production\x20|\x20daily','clear','sort','<code>','Record\x20ID','params','Use\x20global\x20config\x20scope','sqlname','Preview\x20operation\x20without\x20executing','dry-run','22440tXxFSE','Asynchronous\x20task\x20ID','label','boolean','Enable\x20BFF\x20save','task-id','Target\x20path','<expr>','descriptionFile','expectedChildrenCount','parentId','Config\x20key','Confirm\x20destructive\x20action','taskId','dbId','file','295450oENCSo','Name','yes','schemas','page','expectParentId','Config\x20value','from-env','Function\x20node','Comma-separated\x20menu\x20IDs','Force\x20overwrite','appcode','Description\x20file','sqlcode','env','global','DB\x20ID','Parent\x20menu\x20id','52oRpnOF','Code\x20filter','Menu\x20label','force','non-interactive','operation-type','Expected\x20current\x20child\x20count','Menu\x20sort\x20value','5MfTKfl','Use\x20remote','expected-children-count','expectPath','expect-parent-id','project','expected-count','SQL\x20code','all','remote','datasetcode','enableBffSave','Keyword\x20filter','confirm','sql','Alias\x20for\x20--non-interactive','operationType','Dataset\x20code','Skip\x20confirmation\x20for\x20high-risk\x20writes','keyword','verbose','stdin','Expected\x20current\x20parent\x20menu\x20id','341358diBoFI','JSON\x20params','skipImports','app','name','format','6895670wvPSYa','map','63QTLGAK','key','type','enable-bff-save','Output\x20path','parent-id','Environment','expectedCount','tags','reveal','target'];a206_0x1050=function(){return _0xd3eda1;};return a206_0x1050();}export const GLOBAL_FLAGS=[{'name':a206_0x541eb5(0x1eb),'meowKey':a206_0x541eb5(0x1eb),'type':'string','description':'Override\x20appcode','hint':a206_0x541eb5(0x1c9)},{'name':'app','meowKey':a206_0x541eb5(0x19a),'type':a206_0x541eb5(0x1be),'description':'Select\x20app\x20profile\x20by\x20name','hint':'<name>'},{'name':a206_0x541eb5(0x1ee),'meowKey':'env','type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1a5),'hint':a206_0x541eb5(0x1c6)},{'name':'format','meowKey':a206_0x541eb5(0x19c),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1bf),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':'string','description':a206_0x541eb5(0x1c1),'hint':a206_0x541eb5(0x1d7)},{'name':a206_0x541eb5(0x1cf),'meowKey':a206_0x541eb5(0x1af),'type':'boolean','description':a206_0x541eb5(0x1ce)},{'name':a206_0x541eb5(0x1e2),'meowKey':'yes','type':'boolean','description':a206_0x541eb5(0x192)},{'name':a206_0x541eb5(0x17c),'meowKey':a206_0x541eb5(0x1c3),'type':a206_0x541eb5(0x1d3),'description':a206_0x541eb5(0x1ac)},{'name':'global','meowKey':a206_0x541eb5(0x1ef),'type':'boolean','description':a206_0x541eb5(0x1cc)},{'name':a206_0x541eb5(0x185),'meowKey':a206_0x541eb5(0x185),'type':'boolean','description':a206_0x541eb5(0x1b2)},{'name':'ci','meowKey':'ci','type':a206_0x541eb5(0x1d3),'description':a206_0x541eb5(0x18f),'hidden':!![]},{'name':'help','meowKey':'help','type':a206_0x541eb5(0x1d3),'description':a206_0x541eb5(0x1b1)},{'name':a206_0x541eb5(0x19b),'meowKey':a206_0x541eb5(0x19b),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1e1),'hidden':!![]},{'name':a206_0x541eb5(0x1bd),'meowKey':a206_0x541eb5(0x1bd),'type':'string','description':a206_0x541eb5(0x1c2),'hidden':!![]},{'name':a206_0x541eb5(0x1c7),'meowKey':a206_0x541eb5(0x1c7),'type':a206_0x541eb5(0x1d3),'description':'Clear','hidden':!![]},{'name':a206_0x541eb5(0x1b9),'meowKey':a206_0x541eb5(0x1b9),'type':a206_0x541eb5(0x1d3),'description':'Watch\x20mode','hidden':!![]},{'name':a206_0x541eb5(0x1bc),'meowKey':a206_0x541eb5(0x1bc),'type':'string','description':a206_0x541eb5(0x1a3),'hidden':!![]},{'name':a206_0x541eb5(0x1cb),'meowKey':a206_0x541eb5(0x1cb),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x198),'hidden':!![]},{'name':'datasetcode','meowKey':a206_0x541eb5(0x18a),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x191),'hidden':!![]},{'name':a206_0x541eb5(0x188),'meowKey':a206_0x541eb5(0x188),'type':a206_0x541eb5(0x1d3),'description':'Apply\x20to\x20all','hidden':!![]},{'name':a206_0x541eb5(0x1a2),'meowKey':a206_0x541eb5(0x18b),'type':'boolean','description':a206_0x541eb5(0x1d4),'hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':a206_0x541eb5(0x1ca),'hidden':!![]},{'name':a206_0x541eb5(0x1a1),'meowKey':a206_0x541eb5(0x1a1),'type':a206_0x541eb5(0x1be),'description':'Type\x20filter','hidden':!![]},{'name':a206_0x541eb5(0x1df),'meowKey':a206_0x541eb5(0x1df),'type':'string','description':a206_0x541eb5(0x1b4),'hidden':!![]},{'name':'sqlcode','meowKey':a206_0x541eb5(0x1ed),'type':'string','description':a206_0x541eb5(0x187),'hidden':!![]},{'name':a206_0x541eb5(0x1ae),'meowKey':'sqlName','type':'string','description':a206_0x541eb5(0x1bb),'hidden':!![]},{'name':a206_0x541eb5(0x1cd),'meowKey':a206_0x541eb5(0x1cd),'type':a206_0x541eb5(0x1be),'description':'SQL\x20name','hidden':!![]},{'name':'db-id','meowKey':a206_0x541eb5(0x1de),'type':'string','description':'DB\x20ID','hidden':!![]},{'name':'dbid','meowKey':'dbid','type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1f0),'hidden':!![]},{'name':a206_0x541eb5(0x1ad),'meowKey':a206_0x541eb5(0x1ad),'type':a206_0x541eb5(0x1be),'description':'Description','hidden':!![]},{'name':'description-file','meowKey':a206_0x541eb5(0x1d8),'type':'string','description':a206_0x541eb5(0x1ec),'hidden':!![]},{'name':a206_0x541eb5(0x1e4),'meowKey':a206_0x541eb5(0x1e4),'type':a206_0x541eb5(0x1be),'description':'Page\x20number','hidden':!![]},{'name':a206_0x541eb5(0x1c5),'meowKey':'pagesize','type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1b3),'hidden':!![]},{'name':a206_0x541eb5(0x193),'meowKey':a206_0x541eb5(0x193),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x18c),'hidden':!![]},{'name':a206_0x541eb5(0x1b0),'meowKey':a206_0x541eb5(0x1b0),'type':'string','description':a206_0x541eb5(0x179),'hidden':!![]},{'name':'sql','meowKey':a206_0x541eb5(0x18e),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1b6),'hidden':!![]},{'name':a206_0x541eb5(0x1e3),'meowKey':a206_0x541eb5(0x1e3),'type':'string','description':'Schemas','hidden':!![]},{'name':'operation','meowKey':'operation','type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1ab),'hidden':!![]},{'name':a206_0x541eb5(0x1a9),'meowKey':a206_0x541eb5(0x1a9),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1d6),'hidden':!![]},{'name':'skip-imports','meowKey':a206_0x541eb5(0x199),'type':'boolean','description':'Skip\x20import\x20generation','hidden':!![]},{'name':a206_0x541eb5(0x1a0),'meowKey':'key','type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1db),'hidden':!![]},{'name':a206_0x541eb5(0x1b5),'meowKey':a206_0x541eb5(0x1b5),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1e6),'hidden':!![]},{'name':a206_0x541eb5(0x1a7),'meowKey':a206_0x541eb5(0x1a7),'type':a206_0x541eb5(0x1be),'description':'Tags','hidden':!![]},{'name':a206_0x541eb5(0x195),'meowKey':a206_0x541eb5(0x195),'type':a206_0x541eb5(0x1d3),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':a206_0x541eb5(0x1e7),'meowKey':'fromEnv','type':'string','description':'Read\x20value\x20from\x20environment\x20variable','hidden':!![]},{'name':a206_0x541eb5(0x1a8),'meowKey':'reveal','type':a206_0x541eb5(0x1d3),'description':a206_0x541eb5(0x1ba),'hidden':!![]},{'name':a206_0x541eb5(0x17b),'meowKey':a206_0x541eb5(0x17b),'type':a206_0x541eb5(0x1d3),'description':a206_0x541eb5(0x1ea),'hidden':!![]},{'name':a206_0x541eb5(0x18d),'meowKey':a206_0x541eb5(0x18d),'type':'boolean','description':a206_0x541eb5(0x1dc),'hidden':!![]},{'name':'remote','meowKey':a206_0x541eb5(0x189),'type':a206_0x541eb5(0x1d3),'description':a206_0x541eb5(0x181),'hidden':!![]},{'name':a206_0x541eb5(0x194),'meowKey':a206_0x541eb5(0x194),'type':a206_0x541eb5(0x1d3),'description':'Verbose\x20output','hidden':!![]},{'name':a206_0x541eb5(0x186),'meowKey':a206_0x541eb5(0x1a6),'type':a206_0x541eb5(0x1be),'description':'Expected\x20affected\x20count','hidden':!![]},{'name':a206_0x541eb5(0x1d2),'meowKey':a206_0x541eb5(0x1d2),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x17a),'hidden':!![]},{'name':a206_0x541eb5(0x1a4),'meowKey':a206_0x541eb5(0x1da),'type':'string','description':a206_0x541eb5(0x1f1),'hidden':!![]},{'name':'sort','meowKey':a206_0x541eb5(0x1c8),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x17f),'hidden':!![]},{'name':a206_0x541eb5(0x184),'meowKey':a206_0x541eb5(0x1e5),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x196),'hidden':!![]},{'name':'expect-path','meowKey':a206_0x541eb5(0x183),'type':a206_0x541eb5(0x1be),'description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':a206_0x541eb5(0x182),'meowKey':a206_0x541eb5(0x1d9),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x17e),'hidden':!![]},{'name':'menu-ids','meowKey':'menuIds','type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1e9),'hidden':!![]},{'name':a206_0x541eb5(0x1d5),'meowKey':a206_0x541eb5(0x1dd),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1d1),'hidden':!![]},{'name':a206_0x541eb5(0x17d),'meowKey':a206_0x541eb5(0x190),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1ab),'hidden':!![]},{'name':a206_0x541eb5(0x1c4),'meowKey':'functionNode','type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1e8),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a206_0x541eb5(0x19a),a206_0x541eb5(0x1ee),a206_0x541eb5(0x19c),'jq',a206_0x541eb5(0x1cf),a206_0x541eb5(0x1e2),'non-interactive','ci']);export function buildMeowFlags(){const _0x4eea7a=a206_0x541eb5;return Object[_0x4eea7a(0x1b7)](GLOBAL_FLAGS[_0x4eea7a(0x19e)](_0x4d30cf=>[_0x4d30cf['meowKey'],{'type':_0x4d30cf[_0x4eea7a(0x1a1)]}]));}
1
+ const a206_0x48fe87=a206_0x1174;(function(_0x4e5cfe,_0x3d4fb5){const _0x2297cc=a206_0x1174,_0x1bbad6=_0x4e5cfe();while(!![]){try{const _0x25cdc6=parseInt(_0x2297cc(0x1e4))/0x1+parseInt(_0x2297cc(0x1da))/0x2+-parseInt(_0x2297cc(0x22d))/0x3+parseInt(_0x2297cc(0x251))/0x4*(parseInt(_0x2297cc(0x216))/0x5)+-parseInt(_0x2297cc(0x254))/0x6+parseInt(_0x2297cc(0x237))/0x7*(-parseInt(_0x2297cc(0x243))/0x8)+parseInt(_0x2297cc(0x232))/0x9;if(_0x25cdc6===_0x3d4fb5)break;else _0x1bbad6['push'](_0x1bbad6['shift']());}catch(_0x389a39){_0x1bbad6['push'](_0x1bbad6['shift']());}}}(a206_0x1dd8,0x69eab));export const CLI_BIN_NAME=a206_0x48fe87(0x1dc);export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':a206_0x48fe87(0x1e7),'meowKey':a206_0x48fe87(0x1e7),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x231),'hint':a206_0x48fe87(0x203)},{'name':a206_0x48fe87(0x24f),'meowKey':'app','type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1e0),'hint':a206_0x48fe87(0x1db)},{'name':a206_0x48fe87(0x1f6),'meowKey':a206_0x48fe87(0x1f6),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x200),'hint':'production\x20|\x20daily'},{'name':a206_0x48fe87(0x23f),'meowKey':a206_0x48fe87(0x23f),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1f5),'hint':a206_0x48fe87(0x21c)},{'name':'jq','meowKey':'jq','type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x21a),'hint':a206_0x48fe87(0x202)},{'name':a206_0x48fe87(0x224),'meowKey':'dryRun','type':a206_0x48fe87(0x1ec),'description':'Preview\x20operation\x20without\x20executing'},{'name':a206_0x48fe87(0x20e),'meowKey':a206_0x48fe87(0x20e),'type':a206_0x48fe87(0x1ec),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a206_0x48fe87(0x1f8),'meowKey':a206_0x48fe87(0x223),'type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x1ef)},{'name':a206_0x48fe87(0x1f9),'meowKey':a206_0x48fe87(0x1f9),'type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x220)},{'name':a206_0x48fe87(0x238),'meowKey':a206_0x48fe87(0x238),'type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x1d6)},{'name':'ci','meowKey':'ci','type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x208),'hidden':!![]},{'name':'help','meowKey':a206_0x48fe87(0x1f7),'type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x222)},{'name':'name','meowKey':a206_0x48fe87(0x249),'type':'string','description':a206_0x48fe87(0x20f),'hidden':!![]},{'name':a206_0x48fe87(0x1d7),'meowKey':a206_0x48fe87(0x1d7),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x24d),'hidden':!![]},{'name':a206_0x48fe87(0x226),'meowKey':a206_0x48fe87(0x226),'type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x20c),'hidden':!![]},{'name':'watch','meowKey':a206_0x48fe87(0x1e8),'type':'boolean','description':a206_0x48fe87(0x210),'hidden':!![]},{'name':a206_0x48fe87(0x201),'meowKey':a206_0x48fe87(0x201),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1fd),'hidden':!![]},{'name':a206_0x48fe87(0x242),'meowKey':a206_0x48fe87(0x242),'type':'string','description':a206_0x48fe87(0x24a),'hidden':!![]},{'name':a206_0x48fe87(0x1de),'meowKey':a206_0x48fe87(0x1de),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x21d),'hidden':!![]},{'name':a206_0x48fe87(0x250),'meowKey':'all','type':a206_0x48fe87(0x1ec),'description':'Apply\x20to\x20all','hidden':!![]},{'name':a206_0x48fe87(0x253),'meowKey':a206_0x48fe87(0x1d5),'type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x24e),'hidden':!![]},{'name':'id','meowKey':'id','type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1fb),'hidden':!![]},{'name':'type','meowKey':a206_0x48fe87(0x1fe),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1e1),'hidden':!![]},{'name':a206_0x48fe87(0x228),'meowKey':'file','type':a206_0x48fe87(0x22c),'description':'File\x20path','hidden':!![]},{'name':'sqlcode','meowKey':a206_0x48fe87(0x255),'type':'string','description':a206_0x48fe87(0x1d4),'hidden':!![]},{'name':a206_0x48fe87(0x1ea),'meowKey':a206_0x48fe87(0x22f),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x233),'hidden':!![]},{'name':a206_0x48fe87(0x234),'meowKey':a206_0x48fe87(0x234),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x233),'hidden':!![]},{'name':a206_0x48fe87(0x215),'meowKey':a206_0x48fe87(0x212),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1fc),'hidden':!![]},{'name':a206_0x48fe87(0x225),'meowKey':a206_0x48fe87(0x225),'type':'string','description':a206_0x48fe87(0x1fc),'hidden':!![]},{'name':'description','meowKey':'description','type':'string','description':a206_0x48fe87(0x230),'hidden':!![]},{'name':a206_0x48fe87(0x20b),'meowKey':a206_0x48fe87(0x1f3),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1ff),'hidden':!![]},{'name':a206_0x48fe87(0x219),'meowKey':'page','type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x22a),'hidden':!![]},{'name':'pagesize','meowKey':a206_0x48fe87(0x1e2),'type':a206_0x48fe87(0x22c),'description':'Page\x20size','hidden':!![]},{'name':'keyword','meowKey':a206_0x48fe87(0x246),'type':'string','description':a206_0x48fe87(0x1ed),'hidden':!![]},{'name':'code','meowKey':a206_0x48fe87(0x248),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x23d),'hidden':!![]},{'name':a206_0x48fe87(0x1e9),'meowKey':a206_0x48fe87(0x1e9),'type':'string','description':a206_0x48fe87(0x23b),'hidden':!![]},{'name':'schemas','meowKey':a206_0x48fe87(0x20a),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x23a),'hidden':!![]},{'name':'operation','meowKey':a206_0x48fe87(0x213),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x227),'hidden':!![]},{'name':a206_0x48fe87(0x217),'meowKey':'target','type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1f4),'hidden':!![]},{'name':a206_0x48fe87(0x23c),'meowKey':a206_0x48fe87(0x239),'type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x241),'hidden':!![]},{'name':'key','meowKey':'key','type':a206_0x48fe87(0x22c),'description':'Config\x20key','hidden':!![]},{'name':'value','meowKey':a206_0x48fe87(0x22b),'type':'string','description':a206_0x48fe87(0x1dd),'hidden':!![]},{'name':a206_0x48fe87(0x1d8),'meowKey':a206_0x48fe87(0x1d8),'type':a206_0x48fe87(0x22c),'description':'Tags','hidden':!![]},{'name':a206_0x48fe87(0x236),'meowKey':a206_0x48fe87(0x236),'type':'boolean','description':a206_0x48fe87(0x1d9),'hidden':!![]},{'name':a206_0x48fe87(0x20d),'meowKey':a206_0x48fe87(0x207),'type':'string','description':a206_0x48fe87(0x1e5),'hidden':!![]},{'name':'reveal','meowKey':a206_0x48fe87(0x1eb),'type':'boolean','description':a206_0x48fe87(0x244),'hidden':!![]},{'name':a206_0x48fe87(0x211),'meowKey':'force','type':'boolean','description':a206_0x48fe87(0x1e6),'hidden':!![]},{'name':a206_0x48fe87(0x21f),'meowKey':a206_0x48fe87(0x21f),'type':a206_0x48fe87(0x1ec),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':'remote','meowKey':'remote','type':'boolean','description':a206_0x48fe87(0x21e),'hidden':!![]},{'name':a206_0x48fe87(0x1fa),'meowKey':a206_0x48fe87(0x1fa),'type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x209),'hidden':!![]},{'name':a206_0x48fe87(0x204),'meowKey':a206_0x48fe87(0x1ee),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x206),'hidden':!![]},{'name':a206_0x48fe87(0x21b),'meowKey':'label','type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x23e),'hidden':!![]},{'name':'parent-id','meowKey':a206_0x48fe87(0x22e),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x229),'hidden':!![]},{'name':a206_0x48fe87(0x252),'meowKey':'sort','type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x218),'hidden':!![]},{'name':a206_0x48fe87(0x247),'meowKey':a206_0x48fe87(0x24b),'type':'string','description':a206_0x48fe87(0x235),'hidden':!![]},{'name':'expect-path','meowKey':a206_0x48fe87(0x205),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1df),'hidden':!![]},{'name':a206_0x48fe87(0x24c),'meowKey':'expectedChildrenCount','type':a206_0x48fe87(0x22c),'description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':'menu-ids','meowKey':a206_0x48fe87(0x240),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x221),'hidden':!![]},{'name':a206_0x48fe87(0x1f2),'meowKey':'taskId','type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1f1),'hidden':!![]},{'name':a206_0x48fe87(0x245),'meowKey':a206_0x48fe87(0x1f0),'type':'string','description':a206_0x48fe87(0x227),'hidden':!![]},{'name':a206_0x48fe87(0x214),'meowKey':'functionNode','type':a206_0x48fe87(0x22c),'description':'Function\x20node','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a206_0x48fe87(0x1e7),a206_0x48fe87(0x24f),a206_0x48fe87(0x1f6),a206_0x48fe87(0x23f),'jq',a206_0x48fe87(0x224),a206_0x48fe87(0x20e),a206_0x48fe87(0x1f8),'ci']);function a206_0x1174(_0x4ca893,_0x143076){_0x4ca893=_0x4ca893-0x1d4;const _0x1dd899=a206_0x1dd8();let _0x1174e8=_0x1dd899[_0x4ca893];return _0x1174e8;}function a206_0x1dd8(){const _0x18507c=['expected-count','expectPath','Expected\x20affected\x20count','fromEnv','Alias\x20for\x20--non-interactive','Verbose\x20output','schemas','description-file','Clear','from-env','yes','Name','Watch\x20mode','force','dbId','operation','function-node','db-id','641440VJdTMa','target','Menu\x20sort\x20value','page','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','label','json\x20|\x20pretty\x20|\x20compress','Dataset\x20code','Use\x20remote','confirm','Use\x20global\x20config\x20scope','Comma-separated\x20menu\x20IDs','Show\x20help','nonInteractive','dry-run','dbid','clear','Operation\x20type','file','Parent\x20menu\x20id','Page\x20number','value','string','1624704VPFhOR','parentId','sqlName','Description','Override\x20appcode','940896vzcFFW','SQL\x20name','sqlname','Expected\x20current\x20parent\x20menu\x20id','stdin','14LedBnX','project','skipImports','Schemas','SQL\x20string','skip-imports','Code\x20filter','Menu\x20label','format','menuIds','Skip\x20import\x20generation','params','447096UDbZCh','Reveal\x20sensitive\x20value','operation-type','keyword','expect-parent-id','code','name','JSON\x20params','expectParentId','expected-children-count','Title','Enable\x20BFF\x20save','app','all','12uFKeJd','sort','enable-bff-save','3368850XUmKWA','sqlcode','SQL\x20code','enableBffSave','Use\x20project\x20config\x20scope','title','tags','Read\x20value\x20from\x20stdin','741278aGWgsi','<name>','rabetbase','Config\x20value','datasetcode','Expected\x20current\x20menu\x20path','Select\x20app\x20profile\x20by\x20name','Type\x20filter','pagesize','meowKey','788605SvBTYy','Read\x20value\x20from\x20environment\x20variable','Force\x20overwrite','appcode','watch','sql','sql-name','reveal','boolean','Keyword\x20filter','expectedCount','Force\x20non-interactive\x20mode\x20(CI)','operationType','Asynchronous\x20task\x20ID','task-id','descriptionFile','Target\x20path','Output\x20format','env','help','non-interactive','global','verbose','Record\x20ID','DB\x20ID','Output\x20path','type','Description\x20file','Environment','output','<expr>','<code>'];a206_0x1dd8=function(){return _0x18507c;};return a206_0x1dd8();}export function buildMeowFlags(){const _0x1a26d0=a206_0x48fe87;return Object['fromEntries'](GLOBAL_FLAGS['map'](_0x2e1f16=>[_0x2e1f16[_0x1a26d0(0x1e3)],{'type':_0x2e1f16[_0x1a26d0(0x1fe)]}]));}
@@ -1 +1 @@
1
- const a207_0x53414f=a207_0x23c9;function a207_0x2c41(){const _0x10a5f5=['24660AsCdhk','3198097TIajmo','4QFmlgc','8zqtCAj','2vtxsUj','1435743RvadQC','21922012MSlGoX','275470ZdTvJg','3443859cHlNVy','10qwLJNQ','compress','517hFXAvT','2526MLOUjV','13ATlzWL','high-risk-write','3735urTyGv'];a207_0x2c41=function(){return _0x10a5f5;};return a207_0x2c41();}(function(_0x2fe959,_0x4c5bae){const _0x375519=a207_0x23c9,_0x3f8a70=_0x2fe959();while(!![]){try{const _0x3a8fa2=parseInt(_0x375519(0xa0))/0x1*(-parseInt(_0x375519(0xa3))/0x2)+parseInt(_0x375519(0xa1))/0x3*(-parseInt(_0x375519(0x9e))/0x4)+parseInt(_0x375519(0x9b))/0x5*(-parseInt(_0x375519(0x98))/0x6)+parseInt(_0x375519(0x9d))/0x7*(-parseInt(_0x375519(0x9f))/0x8)+parseInt(_0x375519(0xa4))/0x9*(parseInt(_0x375519(0xa5))/0xa)+parseInt(_0x375519(0x97))/0xb*(parseInt(_0x375519(0x9c))/0xc)+-parseInt(_0x375519(0x99))/0xd*(-parseInt(_0x375519(0xa2))/0xe);if(_0x3a8fa2===_0x4c5bae)break;else _0x3f8a70['push'](_0x3f8a70['shift']());}catch(_0xe1e988){_0x3f8a70['push'](_0x3f8a70['shift']());}}}(a207_0x2c41,0x7ee05));import{DEFAULT_API_DIR}from'../constant/paths.js';function a207_0x23c9(_0x258729,_0x5518c7){_0x258729=_0x258729-0x96;const _0x2c4133=a207_0x2c41();let _0x23c9e0=_0x2c4133[_0x258729];return _0x23c9e0;}export const DEFAULT_CONFIG_VALUES={'env':'production','format':a207_0x53414f(0x96),'locale':'en-US','riskLevel':a207_0x53414f(0x9a),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a207_0x53414f(0x96);
1
+ const a207_0x3f8e81=a207_0x13b6;function a207_0x13b6(_0xec3587,_0x3cc591){_0xec3587=_0xec3587-0x139;const _0x5ed4f6=a207_0x5ed4();let _0x13b67a=_0x5ed4f6[_0xec3587];return _0x13b67a;}function a207_0x5ed4(){const _0x179bd8=['970128FJCXCu','14253970xbXfro','776yHwOgh','4602608pEKBvE','13206SuSlXL','11970396UBvzmu','en-US','1NYFbZR','compress','high-risk-write','14wCOtsH','6ZmkOLT','2218562mcIxlP','11Jtzyns','710755FLltsw','260KPhFBc'];a207_0x5ed4=function(){return _0x179bd8;};return a207_0x5ed4();}(function(_0x21f3ae,_0x5b9b5f){const _0x32be6a=a207_0x13b6,_0x1b0aed=_0x21f3ae();while(!![]){try{const _0x287dba=-parseInt(_0x32be6a(0x13d))/0x1*(parseInt(_0x32be6a(0x142))/0x2)+parseInt(_0x32be6a(0x13a))/0x3*(-parseInt(_0x32be6a(0x148))/0x4)+-parseInt(_0x32be6a(0x144))/0x5*(parseInt(_0x32be6a(0x141))/0x6)+-parseInt(_0x32be6a(0x140))/0x7*(-parseInt(_0x32be6a(0x139))/0x8)+-parseInt(_0x32be6a(0x13b))/0x9+-parseInt(_0x32be6a(0x147))/0xa*(-parseInt(_0x32be6a(0x143))/0xb)+-parseInt(_0x32be6a(0x146))/0xc*(-parseInt(_0x32be6a(0x145))/0xd);if(_0x287dba===_0x5b9b5f)break;else _0x1b0aed['push'](_0x1b0aed['shift']());}catch(_0x4fbed8){_0x1b0aed['push'](_0x1b0aed['shift']());}}}(a207_0x5ed4,0xb8ed9));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':'production','format':a207_0x3f8e81(0x13e),'locale':a207_0x3f8e81(0x13c),'riskLevel':a207_0x3f8e81(0x13f),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a207_0x3f8e81(0x13e);
@@ -1 +1 @@
1
- const a208_0x137891=a208_0x2630;(function(_0x4688d,_0x3f6a0d){const _0x3db64c=a208_0x2630,_0x4e9e28=_0x4688d();while(!![]){try{const _0x1135de=-parseInt(_0x3db64c(0x1d8))/0x1*(-parseInt(_0x3db64c(0x1c6))/0x2)+-parseInt(_0x3db64c(0x1cd))/0x3+parseInt(_0x3db64c(0x1ce))/0x4*(-parseInt(_0x3db64c(0x1d1))/0x5)+-parseInt(_0x3db64c(0x1cf))/0x6*(-parseInt(_0x3db64c(0x1d0))/0x7)+-parseInt(_0x3db64c(0x1cc))/0x8+parseInt(_0x3db64c(0x1d4))/0x9+parseInt(_0x3db64c(0x1d9))/0xa*(parseInt(_0x3db64c(0x1c7))/0xb);if(_0x1135de===_0x3f6a0d)break;else _0x4e9e28['push'](_0x4e9e28['shift']());}catch(_0x19ee86){_0x4e9e28['push'](_0x4e9e28['shift']());}}}(a208_0x3f98,0x96c34));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x2aee2c){const _0x528eaf=a208_0x2630;customApiDomain=_0x2aee2c?.[_0x528eaf(0x1c9)],customUserDomain=_0x2aee2c?.['userDomain'],customRuntimeDomain=_0x2aee2c?.[_0x528eaf(0x1c8)];}function a208_0x3f98(){const _0x32f30e=['14XFIJYo','240240FUpvdO','trim','https://user-daily.lovrabet.com','6093198KHOWlp','/app/','https://runtime.lovrabet.com','https://user.lovrabet.com','271742vQwPXG','3000evkXeT','6qNoDgp','9647SwuRZi','runtimeDomain','apiDomain','https://daily-runtime.lovrabet.com','https://api.lovrabet.com','2778576BQkbqy','2749068mrBQoa','24XAOIGR','1242426FSYXHN'];a208_0x3f98=function(){return _0x32f30e;};return a208_0x3f98();}function a208_0x2630(_0x48e5f5,_0x425bf9){_0x48e5f5=_0x48e5f5-0x1c6;const _0x3f983a=a208_0x3f98();let _0x26308e=_0x3f983a[_0x48e5f5];return _0x26308e;}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a208_0x137891(0x1d7):a208_0x137891(0x1d3));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a208_0x137891(0x1cb):'https://daily-api.lovrabet.com');export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a208_0x137891(0x1d6):a208_0x137891(0x1ca));export const getAppDomain=()=>isProduction(getEnv())?'https://app.lovrabet.com':'https://daily.lovrabet.com';export const getAppBaseUrl=_0xef85fd=>{const _0xc7a1f=a208_0x137891,_0xf36e79=encodeURIComponent(_0xef85fd[_0xc7a1f(0x1d2)]());return isProduction(getEnv())?getAppDomain()+_0xc7a1f(0x1d5)+_0xf36e79:getAppDomain()+'/web-app/app/'+_0xf36e79;};
1
+ const a208_0x4b4262=a208_0xf135;(function(_0x214949,_0x1e6487){const _0x5364bb=a208_0xf135,_0x4924c4=_0x214949();while(!![]){try{const _0x13f178=-parseInt(_0x5364bb(0x1d9))/0x1+parseInt(_0x5364bb(0x1cb))/0x2*(-parseInt(_0x5364bb(0x1d1))/0x3)+-parseInt(_0x5364bb(0x1d8))/0x4*(parseInt(_0x5364bb(0x1c9))/0x5)+parseInt(_0x5364bb(0x1d0))/0x6*(-parseInt(_0x5364bb(0x1d6))/0x7)+-parseInt(_0x5364bb(0x1ca))/0x8*(-parseInt(_0x5364bb(0x1dd))/0x9)+parseInt(_0x5364bb(0x1de))/0xa*(-parseInt(_0x5364bb(0x1ce))/0xb)+parseInt(_0x5364bb(0x1d2))/0xc*(parseInt(_0x5364bb(0x1d3))/0xd);if(_0x13f178===_0x1e6487)break;else _0x4924c4['push'](_0x4924c4['shift']());}catch(_0x42f781){_0x4924c4['push'](_0x4924c4['shift']());}}}(a208_0x51aa,0x8fe4e));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;function a208_0x51aa(){const _0x755987=['/app/','runtimeDomain','https://api.lovrabet.com','531OXixHO','470990aultYe','https://runtime.lovrabet.com','trim','/web-app/app/','2535015oepHIJ','57032yNPUFd','46QHtfWv','apiDomain','https://user.lovrabet.com','77AnkOQz','https://daily.lovrabet.com','984PWVjaZ','39429EwcEgF','13476HbwmxV','30979wvfExz','userDomain','https://daily-runtime.lovrabet.com','41909EiykDN','https://user-daily.lovrabet.com','4JiplaG','386477cakXLA'];a208_0x51aa=function(){return _0x755987;};return a208_0x51aa();}export function initDomains(_0x12369d){const _0x66ada9=a208_0xf135;customApiDomain=_0x12369d?.[_0x66ada9(0x1cc)],customUserDomain=_0x12369d?.[_0x66ada9(0x1d4)],customRuntimeDomain=_0x12369d?.[_0x66ada9(0x1db)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a208_0x4b4262(0x1cd):a208_0x4b4262(0x1d7));function a208_0xf135(_0x1b6994,_0x581462){_0x1b6994=_0x1b6994-0x1c7;const _0x51aa75=a208_0x51aa();let _0xf13579=_0x51aa75[_0x1b6994];return _0xf13579;}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a208_0x4b4262(0x1dc):'https://daily-api.lovrabet.com');export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a208_0x4b4262(0x1df):a208_0x4b4262(0x1d5));export const getAppDomain=()=>isProduction(getEnv())?'https://app.lovrabet.com':a208_0x4b4262(0x1cf);export const getAppBaseUrl=_0x1e70c1=>{const _0x3eaddc=a208_0x4b4262,_0x1e6b27=encodeURIComponent(_0x1e70c1[_0x3eaddc(0x1c7)]());return isProduction(getEnv())?getAppDomain()+_0x3eaddc(0x1da)+_0x1e6b27:getAppDomain()+_0x3eaddc(0x1c8)+_0x1e6b27;};
@@ -1 +1 @@
1
- function a209_0x2db2(){const _0x3e3b1f=['5801389MnCJla','2487160IGBnQX','1490JqxqUC','16722492zmjViV','dev','1631RflSzV','3128GqlQbW','606DvUzpt','134056YIOBWY','development','126dEhIzr','production','52484DIXVJX','8XCiWGg','daily','9vBxmjq','online'];a209_0x2db2=function(){return _0x3e3b1f;};return a209_0x2db2();}const a209_0x52a9ca=a209_0x3dd9;(function(_0x437cbd,_0x4ad5a8){const _0x5ab8a3=a209_0x3dd9,_0x4c9335=_0x437cbd();while(!![]){try{const _0x234281=parseInt(_0x5ab8a3(0x12f))/0x1*(parseInt(_0x5ab8a3(0x134))/0x2)+parseInt(_0x5ab8a3(0x131))/0x3*(parseInt(_0x5ab8a3(0x133))/0x4)+-parseInt(_0x5ab8a3(0x129))/0x5*(parseInt(_0x5ab8a3(0x12e))/0x6)+-parseInt(_0x5ab8a3(0x12c))/0x7*(parseInt(_0x5ab8a3(0x12d))/0x8)+-parseInt(_0x5ab8a3(0x136))/0x9*(-parseInt(_0x5ab8a3(0x139))/0xa)+parseInt(_0x5ab8a3(0x138))/0xb+-parseInt(_0x5ab8a3(0x12a))/0xc;if(_0x234281===_0x4ad5a8)break;else _0x4c9335['push'](_0x4c9335['shift']());}catch(_0x1e2603){_0x4c9335['push'](_0x4c9335['shift']());}}}(a209_0x2db2,0x55207));export const RABETBASE_ENV_VALUES=[a209_0x52a9ca(0x132),'daily'];export function normalizeEnv(_0x42e532){const _0x4d3501=a209_0x52a9ca;return _0x42e532===_0x4d3501(0x137)?'production':_0x42e532;}export function isProduction(_0x2bb79d){return normalizeEnv(_0x2bb79d)==='production';}export function isDaily(_0x41d1fb){const _0x57b9ba=a209_0x52a9ca;return normalizeEnv(_0x41d1fb)===_0x57b9ba(0x135);}export function isDev(_0x50bca3){const _0x59fb5e=a209_0x52a9ca,_0x211b95=normalizeEnv(_0x50bca3);return _0x211b95===_0x59fb5e(0x130)||_0x211b95===_0x59fb5e(0x12b);}function a209_0x3dd9(_0x3dfbdb,_0x2d2f13){_0x3dfbdb=_0x3dfbdb-0x129;const _0x2db2dc=a209_0x2db2();let _0x3dd91d=_0x2db2dc[_0x3dfbdb];return _0x3dd91d;}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a209_0x52a9ca(0x132));export function getEnv(){return env;}export function initEnv(_0x4cf270){env=normalizeEnv(_0x4cf270);}
1
+ function a209_0x3bd4(){const _0x2bc075=['4WxddSa','dev','536aMYFcj','production','daily','4501756RZBUJP','6730932ipMRVE','online','10972056GcMnjN','10UzBpMl','4175712aqvuxZ','63095kjsQji','48391875NDcLde','848143rahMBh'];a209_0x3bd4=function(){return _0x2bc075;};return a209_0x3bd4();}function a209_0xbefe(_0x12617f,_0x5e176a){_0x12617f=_0x12617f-0x102;const _0x3bd4bc=a209_0x3bd4();let _0xbefe48=_0x3bd4bc[_0x12617f];return _0xbefe48;}const a209_0x356b4e=a209_0xbefe;(function(_0xbe622,_0xfd30e1){const _0x15b395=a209_0xbefe,_0x5a6045=_0xbe622();while(!![]){try{const _0x23aaac=-parseInt(_0x15b395(0x107))/0x1*(parseInt(_0x15b395(0x108))/0x2)+-parseInt(_0x15b395(0x104))/0x3+parseInt(_0x15b395(0x10a))/0x4*(-parseInt(_0x15b395(0x105))/0x5)+parseInt(_0x15b395(0x10e))/0x6+parseInt(_0x15b395(0x10d))/0x7+-parseInt(_0x15b395(0x102))/0x8+-parseInt(_0x15b395(0x106))/0x9*(-parseInt(_0x15b395(0x103))/0xa);if(_0x23aaac===_0xfd30e1)break;else _0x5a6045['push'](_0x5a6045['shift']());}catch(_0x17d450){_0x5a6045['push'](_0x5a6045['shift']());}}}(a209_0x3bd4,0xf1fba));export const RABETBASE_ENV_VALUES=[a209_0x356b4e(0x10b),a209_0x356b4e(0x10c)];export function normalizeEnv(_0x43d223){const _0x31cc16=a209_0x356b4e;return _0x43d223===_0x31cc16(0x10f)?_0x31cc16(0x10b):_0x43d223;}export function isProduction(_0x2b8b62){return normalizeEnv(_0x2b8b62)==='production';}export function isDaily(_0x30554f){const _0x2c4139=a209_0x356b4e;return normalizeEnv(_0x30554f)===_0x2c4139(0x10c);}export function isDev(_0x42f39d){const _0x5d2258=a209_0x356b4e,_0x54c4c2=normalizeEnv(_0x42f39d);return _0x54c4c2==='development'||_0x54c4c2===_0x5d2258(0x109);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||'production');export function getEnv(){return env;}export function initEnv(_0x3189c1){env=normalizeEnv(_0x3189c1);}
@@ -1 +1 @@
1
- function a210_0x2904(){const _0xa3ae22=['66BUdaec','73115VUfGYC','627207KHwRqY','118358lkEtzc','821079vwdxEo','563300Nojtyp','40wuJJJQ','1130646dIBdWC','51328NShlbg','192mDMGJz','54oDwDBD'];a210_0x2904=function(){return _0xa3ae22;};return a210_0x2904();}function a210_0x1942(_0x17404d,_0x33592b){_0x17404d=_0x17404d-0x121;const _0x29042a=a210_0x2904();let _0x194276=_0x29042a[_0x17404d];return _0x194276;}(function(_0x1cd2e3,_0x110d64){const _0x4f1220=a210_0x1942,_0x3e7919=_0x1cd2e3();while(!![]){try{const _0x2eb9e5=-parseInt(_0x4f1220(0x12a))/0x1+parseInt(_0x4f1220(0x128))/0x2+parseInt(_0x4f1220(0x129))/0x3+-parseInt(_0x4f1220(0x123))/0x4*(parseInt(_0x4f1220(0x126))/0x5)+parseInt(_0x4f1220(0x125))/0x6*(parseInt(_0x4f1220(0x127))/0x7)+parseInt(_0x4f1220(0x122))/0x8*(parseInt(_0x4f1220(0x124))/0x9)+parseInt(_0x4f1220(0x12b))/0xa*(parseInt(_0x4f1220(0x121))/0xb);if(_0x2eb9e5===_0x110d64)break;else _0x3e7919['push'](_0x3e7919['shift']());}catch(_0x1dd2ca){_0x3e7919['push'](_0x3e7919['shift']());}}}(a210_0x2904,0x7ac87));export const RABETBASE_OUTPUT_FORMAT_VALUES=['json','pretty','compress'];
1
+ const a210_0x35db91=a210_0x96f2;function a210_0x96f2(_0x4af2d1,_0x5ab0f3){_0x4af2d1=_0x4af2d1-0x114;const _0x513e18=a210_0x513e();let _0x96f286=_0x513e18[_0x4af2d1];return _0x96f286;}function a210_0x513e(){const _0x184bdc=['8DWFGkL','4674PloZBG','compress','4tRcmmw','18qpApDt','2593602YktOgG','58902szxUoX','json','1379357vtEjcU','432751QyRkQj','1013700nPQrpK','252aAJHkI','4915285CLiNSX','pretty','20iKYqjQ'];a210_0x513e=function(){return _0x184bdc;};return a210_0x513e();}(function(_0x1e020a,_0x4c9ba2){const _0x391335=a210_0x96f2,_0x1d109f=_0x1e020a();while(!![]){try{const _0x54340d=-parseInt(_0x391335(0x116))/0x1+-parseInt(_0x391335(0x114))/0x2*(parseInt(_0x391335(0x120))/0x3)+-parseInt(_0x391335(0x122))/0x4*(-parseInt(_0x391335(0x11c))/0x5)+-parseInt(_0x391335(0x11a))/0x6+-parseInt(_0x391335(0x118))/0x7*(parseInt(_0x391335(0x11f))/0x8)+parseInt(_0x391335(0x115))/0x9*(-parseInt(_0x391335(0x11e))/0xa)+parseInt(_0x391335(0x119))/0xb*(parseInt(_0x391335(0x11b))/0xc);if(_0x54340d===_0x4c9ba2)break;else _0x1d109f['push'](_0x1d109f['shift']());}catch(_0x3c442d){_0x1d109f['push'](_0x1d109f['shift']());}}}(a210_0x513e,0xc1d51));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a210_0x35db91(0x117),a210_0x35db91(0x11d),a210_0x35db91(0x121)];
@@ -1 +1 @@
1
- function a211_0x36d0(){const _0x12bd60=['76728dZAEPh','180995Nqrvsi','56uUTwUN','595176tmWfrq','30FtPtkp','20352jhGAJA','981711qfcvDW','3538WDtCKj','4UlwTkB','301192dBJpFD'];a211_0x36d0=function(){return _0x12bd60;};return a211_0x36d0();}function a211_0x19cf(_0x45bd94,_0x24bc23){_0x45bd94=_0x45bd94-0xc6;const _0x36d07b=a211_0x36d0();let _0x19cf56=_0x36d07b[_0x45bd94];return _0x19cf56;}(function(_0x4c78b6,_0x17d531){const _0x117341=a211_0x19cf,_0x363803=_0x4c78b6();while(!![]){try{const _0x351acc=-parseInt(_0x117341(0xcf))/0x1+-parseInt(_0x117341(0xc7))/0x2+-parseInt(_0x117341(0xc8))/0x3+parseInt(_0x117341(0xc6))/0x4*(-parseInt(_0x117341(0xc9))/0x5)+parseInt(_0x117341(0xcd))/0x6*(-parseInt(_0x117341(0xca))/0x7)+parseInt(_0x117341(0xcb))/0x8+-parseInt(_0x117341(0xce))/0x9*(-parseInt(_0x117341(0xcc))/0xa);if(_0x351acc===_0x17d531)break;else _0x363803['push'](_0x363803['shift']());}catch(_0x53ecd0){_0x363803['push'](_0x363803['shift']());}}}(a211_0x36d0,0x26b7d));export const DEFAULT_API_DIR='./src/api';
1
+ function a211_0xaa05(_0x32ca32,_0x171e18){_0x32ca32=_0x32ca32-0x182;const _0x4fa6a6=a211_0x4fa6();let _0xaa050e=_0x4fa6a6[_0x32ca32];return _0xaa050e;}(function(_0x5d6c79,_0x3c89f4){const _0x1b8988=a211_0xaa05,_0x8bf578=_0x5d6c79();while(!![]){try{const _0xea5f3b=parseInt(_0x1b8988(0x186))/0x1*(-parseInt(_0x1b8988(0x188))/0x2)+-parseInt(_0x1b8988(0x182))/0x3+parseInt(_0x1b8988(0x18a))/0x4+parseInt(_0x1b8988(0x184))/0x5+parseInt(_0x1b8988(0x183))/0x6*(-parseInt(_0x1b8988(0x187))/0x7)+-parseInt(_0x1b8988(0x18b))/0x8*(-parseInt(_0x1b8988(0x185))/0x9)+-parseInt(_0x1b8988(0x189))/0xa;if(_0xea5f3b===_0x3c89f4)break;else _0x8bf578['push'](_0x8bf578['shift']());}catch(_0x1f3559){_0x8bf578['push'](_0x8bf578['shift']());}}}(a211_0x4fa6,0xe95b6));export const DEFAULT_API_DIR='./src/api';function a211_0x4fa6(){const _0x19794b=['66843ENavbO','8HmIEBZ','7mHLljp','4538shQskK','12812850UXSsJG','7337944RDKuhp','456ojwkvn','2058174uETuPi','6830754kCFUBV','9109795WjOhmW'];a211_0x4fa6=function(){return _0x19794b;};return a211_0x4fa6();}
@@ -1 +1 @@
1
- const a212_0x4ce135=a212_0x2d9f;function a212_0x2d9f(_0x3a55f5,_0x2dcf23){_0x3a55f5=_0x3a55f5-0x13f;const _0x256778=a212_0x2567();let _0x2d9f8f=_0x256778[_0x3a55f5];return _0x2d9f8f;}(function(_0x39a84c,_0x44b3f3){const _0x1dcefd=a212_0x2d9f,_0x5d0535=_0x39a84c();while(!![]){try{const _0x481082=-parseInt(_0x1dcefd(0x13f))/0x1+parseInt(_0x1dcefd(0x149))/0x2*(parseInt(_0x1dcefd(0x140))/0x3)+-parseInt(_0x1dcefd(0x14a))/0x4*(-parseInt(_0x1dcefd(0x145))/0x5)+parseInt(_0x1dcefd(0x148))/0x6+parseInt(_0x1dcefd(0x142))/0x7+-parseInt(_0x1dcefd(0x143))/0x8+-parseInt(_0x1dcefd(0x141))/0x9;if(_0x481082===_0x44b3f3)break;else _0x5d0535['push'](_0x5d0535['shift']());}catch(_0x362f3a){_0x5d0535['push'](_0x5d0535['shift']());}}}(a212_0x2567,0x4e75d));function a212_0x2567(){const _0x329eb0=['147jOoYeK','11108484kRKrmN','3638894vRjfXj','419256IjZshW','high-risk-write','1094090dYlacD','read','write','3053592lLcJrY','15026upRFyh','8vwRANA','226491ppObPp'];a212_0x2567=function(){return _0x329eb0;};return a212_0x2567();}export const RISK_LEVEL_VALUES=[a212_0x4ce135(0x146),a212_0x4ce135(0x147),a212_0x4ce135(0x144)];
1
+ const a212_0x4cdf9a=a212_0x3480;function a212_0x3480(_0xd9aa17,_0x3066e2){_0xd9aa17=_0xd9aa17-0xd7;const _0x42031e=a212_0x4203();let _0x3480c6=_0x42031e[_0xd9aa17];return _0x3480c6;}function a212_0x4203(){const _0xecfe73=['2915151HdrvJR','380816FpHZRh','4879284TmKJgV','745bmyMTj','603eWfRxH','16JVlbCy','8787702qBdZQJ','read','1532PrYMig','high-risk-write','153910UqXryg','382205hqRknb'];a212_0x4203=function(){return _0xecfe73;};return a212_0x4203();}(function(_0x493363,_0x3a380d){const _0x2eaf5a=a212_0x3480,_0x4f54be=_0x493363();while(!![]){try{const _0x3a55cd=parseInt(_0x2eaf5a(0xd8))/0x1*(parseInt(_0x2eaf5a(0xdd))/0x2)+-parseInt(_0x2eaf5a(0xe1))/0x3+parseInt(_0x2eaf5a(0xda))/0x4*(-parseInt(_0x2eaf5a(0xe0))/0x5)+-parseInt(_0x2eaf5a(0xd7))/0x6+parseInt(_0x2eaf5a(0xdb))/0x7+parseInt(_0x2eaf5a(0xe2))/0x8+parseInt(_0x2eaf5a(0xd9))/0x9*(parseInt(_0x2eaf5a(0xdf))/0xa);if(_0x3a55cd===_0x3a380d)break;else _0x4f54be['push'](_0x4f54be['shift']());}catch(_0x342679){_0x4f54be['push'](_0x4f54be['shift']());}}}(a212_0x4203,0xc6c50));export const RISK_LEVEL_VALUES=[a212_0x4cdf9a(0xdc),'write',a212_0x4cdf9a(0xde)];
@@ -1 +1 @@
1
- (function(_0xd7cfe0,_0x17bb0b){const _0x5434cc=a213_0x2f05,_0x424851=_0xd7cfe0();while(!![]){try{const _0x5eaf0e=-parseInt(_0x5434cc(0x13b))/0x1+parseInt(_0x5434cc(0x13c))/0x2*(parseInt(_0x5434cc(0x156))/0x3)+parseInt(_0x5434cc(0x143))/0x4*(parseInt(_0x5434cc(0x135))/0x5)+parseInt(_0x5434cc(0x140))/0x6*(parseInt(_0x5434cc(0x148))/0x7)+-parseInt(_0x5434cc(0x139))/0x8+-parseInt(_0x5434cc(0x14e))/0x9+-parseInt(_0x5434cc(0x13f))/0xa*(-parseInt(_0x5434cc(0x14f))/0xb);if(_0x5eaf0e===_0x17bb0b)break;else _0x424851['push'](_0x424851['shift']());}catch(_0x41e88b){_0x424851['push'](_0x424851['shift']());}}}(a213_0x59e0,0x2fbae));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x5d92b4){const _0x1ff409=a213_0x2f05;return typeof _0x5d92b4==='string'&&_0x5d92b4[_0x1ff409(0x157)]()?_0x5d92b4[_0x1ff409(0x157)]():undefined;}function appProfiles(_0x10c3c1){const _0x32c750=a213_0x2f05;return _0x10c3c1[_0x32c750(0x137)]&&typeof _0x10c3c1[_0x32c750(0x137)]==='object'?_0x10c3c1[_0x32c750(0x137)]:{};}function resolveDefaultAppName(_0x33c0f5){const _0x16487f=stringConfigValue(_0x33c0f5['defaultApp']);if(_0x16487f)return _0x16487f;return Object['keys'](appProfiles(_0x33c0f5))[0x0];}function resolveTopLevelAppCode(_0x4bd523){const _0x38ff19=a213_0x2f05;return stringConfigValue(_0x4bd523['appcode'])||stringConfigValue(_0x4bd523[_0x38ff19(0x131)]);}function a213_0x59e0(){const _0x2ae0ca=['1091928DkjXWC','call','303545DOsDxd','8thUJst','apiDir','VERBOSE','80HbPUbK','157512KMUaHP','daily','find','16YRzEuN','COOKIE','ACCESS_KEY','appcode','inherit','63DWwpxr','accessKey','write','length','keys','FORMAT','2249334anJttd','214698WHLAqm','true','high-risk-write','globalConfig','read','prototype','APP','84540DBsyBa','trim','MAX_RISK','projectConfig','riskLevel','hasOwnProperty','PAGE_SIZE','pageSize','cookie','app','defaultApp','env','format','475415qwJjQR','entries','apps','maxRisk'];a213_0x59e0=function(){return _0x2ae0ca;};return a213_0x59e0();}function a213_0x2f05(_0x3f452d,_0x15d9f7){_0x3f452d=_0x3f452d-0x12d;const _0x59e074=a213_0x59e0();let _0x2f0504=_0x59e074[_0x3f452d];return _0x2f0504;}function normalizeRiskCeiling(_0x539530){const _0x452055=a213_0x2f05;if(_0x539530===undefined||_0x539530===null)return undefined;if(_0x539530==='read'||_0x539530===_0x452055(0x14a)||_0x539530===_0x452055(0x151))return _0x539530;return _0x452055(0x153);}function resolveRiskCeiling(..._0x54cdeb){const _0x20b014=a213_0x2f05;let _0x2dea9a=DEFAULT_CONFIG_VALUES[_0x20b014(0x15a)];for(const _0x50c01f of _0x54cdeb){const _0x35c35b=normalizeRiskCeiling(_0x50c01f);_0x35c35b&&riskLevelOrder(_0x35c35b)<riskLevelOrder(_0x2dea9a)&&(_0x2dea9a=_0x35c35b);}return _0x2dea9a;}function configuredRiskCeilings(_0x4e5717){const _0x258a16=a213_0x2f05;return[...Object[_0x258a16(0x154)][_0x258a16(0x12d)][_0x258a16(0x13a)](_0x4e5717,_0x258a16(0x138))?[_0x4e5717[_0x258a16(0x138)]]:[],...Object[_0x258a16(0x154)][_0x258a16(0x12d)][_0x258a16(0x13a)](_0x4e5717,_0x258a16(0x15a))?[_0x4e5717[_0x258a16(0x15a)]]:[]];}export function resolveAppConfig({raw:_0x3b86d0,flags:_0x1d6263,layers:_0x1d967c,readEnv:_0x27eca2}){const _0x21d6f5=a213_0x2f05,_0x379b56=_0x1d967c?.[_0x21d6f5(0x159)]??{},_0x491d53=_0x1d967c?.[_0x21d6f5(0x152)]??{},_0x2626ec=Object[_0x21d6f5(0x14c)](_0x379b56)['length']>0x0,_0x368805=!_0x2626ec||_0x379b56[_0x21d6f5(0x147)]===!![],_0xb943eb=_0x2626ec?resolveDefaultAppName(_0x379b56):undefined,_0x58ba48=_0x368805?resolveDefaultAppName(_0x491d53):undefined,_0x14166c=stringConfigValue(_0x1d6263[_0x21d6f5(0x131)]),_0x5df152=_0x27eca2(_0x21d6f5(0x155)),_0x2b88f5={};if(_0x3b86d0[_0x21d6f5(0x137)]&&typeof _0x3b86d0[_0x21d6f5(0x137)]==='object')for(const [_0xb2e675,_0x481094]of Object[_0x21d6f5(0x136)](_0x3b86d0['apps'])){_0x481094&&typeof _0x481094==='object'&&_0x481094[_0x21d6f5(0x146)]&&(_0x2b88f5[_0xb2e675]=_0x481094);}const _0x10877a=_0x3b86d0[_0x21d6f5(0x132)]||undefined,_0x340198=Object['keys'](_0x2b88f5)[_0x21d6f5(0x14b)]>0x0,_0x4fbfaf=_0x14166c||_0xb943eb||_0x5df152||_0x58ba48||_0x10877a||undefined,_0x4f7d72=stringConfigValue(_0x1d6263[_0x21d6f5(0x146)]),_0x3f8e83=_0x4f7d72?Object['entries'](_0x2b88f5)[_0x21d6f5(0x142)](([,_0x4f45b9])=>_0x4f45b9?.[_0x21d6f5(0x146)]===_0x4f7d72):undefined,_0x1b9f4b=_0x3f8e83?.[0x0],_0x3db464=_0x3f8e83?.[0x1],_0x45e384=_0x4f7d72?_0x1b9f4b:_0x4fbfaf;let _0x1b9f70=_0x45e384&&_0x2b88f5[_0x45e384]?_0x2b88f5[_0x45e384]:undefined;_0x4f7d72&&_0x3db464&&(_0x1b9f70=_0x3db464);const _0x5e893e=_0x4f7d72?_0x3db464??_0x1b9f70:_0x1b9f70,_0x20ae7b=!_0x14166c&&!_0xb943eb&&_0x5df152&&_0x45e384===_0x5df152,_0x32806f=_0x14166c||(_0x20ae7b?_0x5df152:undefined)||(_0x4f7d72?_0x1b9f4b:undefined),_0x3061c9=_0x5e893e?.[_0x21d6f5(0x146)],_0x2ef0c3=_0x2626ec?resolveTopLevelAppCode(_0x379b56):undefined,_0x319c29=_0x368805?resolveTopLevelAppCode(_0x491d53):undefined,_0x27bb46=_0x14166c||_0xb943eb?_0x3061c9:undefined,_0x142c74=!_0x14166c&&!_0xb943eb?_0x3061c9:undefined,_0x1f8714=_0x4f7d72||_0x27bb46||_0x2ef0c3||_0x142c74||_0x319c29||undefined,_0x5f09c9=_0x2626ec?stringConfigValue(_0x379b56[_0x21d6f5(0x133)]):undefined,_0x382136=_0x368805?stringConfigValue(_0x491d53[_0x21d6f5(0x133)]):undefined,_0xea956c=_0x1d6263[_0x21d6f5(0x133)]||_0x5e893e?.['env']||_0x5f09c9||_0x27eca2('ENV')||_0x382136||_0x3b86d0[_0x21d6f5(0x133)]||DEFAULT_CONFIG_VALUES['env'],_0x494612=_0x5e893e?.['locale']||_0x3b86d0['locale']||DEFAULT_CONFIG_VALUES['locale'],_0x27dc09=_0x27eca2(_0x21d6f5(0x144))||_0x5e893e?.[_0x21d6f5(0x130)]||_0x3b86d0['cookie']||undefined,_0x9ce760=_0x27eca2(_0x21d6f5(0x145))||_0x5e893e?.[_0x21d6f5(0x149)]||_0x3b86d0[_0x21d6f5(0x149)]||undefined,_0xf3325c=_0x1d6263[_0x21d6f5(0x134)]||_0x27eca2(_0x21d6f5(0x14d))||_0x5e893e?.[_0x21d6f5(0x134)]||_0x3b86d0[_0x21d6f5(0x134)],_0x260d65=normalizeLegacyOutputFormat(_0xf3325c),_0x3882cf=_0x27eca2(_0x21d6f5(0x12e))||_0x5e893e?.[_0x21d6f5(0x12f)]||_0x3b86d0[_0x21d6f5(0x12f)],_0x171607=_0x3882cf?Number(_0x3882cf)||undefined:undefined,_0x529346=_0x1d967c?[...configuredRiskCeilings(_0x1d967c[_0x21d6f5(0x152)]),...configuredRiskCeilings(_0x1d967c[_0x21d6f5(0x159)])]:configuredRiskCeilings(_0x3b86d0),_0x3797c7=resolveRiskCeiling(..._0x529346,_0x5e893e?.[_0x21d6f5(0x15a)],_0x27eca2('RISK_LEVEL'),_0x27eca2(_0x21d6f5(0x158))),_0x411c70=_0x27eca2(_0x21d6f5(0x13e)),_0x5b2c6a=_0x411c70==='1'||_0x411c70===_0x21d6f5(0x150),_0x4fcfa3=_0x5e893e?.[_0x21d6f5(0x13d)]||_0x3b86d0[_0x21d6f5(0x13d)]||DEFAULT_CONFIG_VALUES[_0x21d6f5(0x13d)],_0x53541b=isDaily(normalizeEnv(String(_0xea956c)))?_0x21d6f5(0x141):'production';return{'appCode':typeof _0x1f8714==='string'&&_0x1f8714[_0x21d6f5(0x157)]()?_0x1f8714[_0x21d6f5(0x157)]():undefined,'env':_0x53541b,'locale':_0x494612,'cookie':_0x27dc09,'accessKey':_0x9ce760,'format':_0x260d65,'pageSize':_0x171607,'riskLevel':_0x3797c7,'verbose':_0x5b2c6a,'apiDir':_0x4fcfa3,'apps':_0x2b88f5,'defaultApp':_0x10877a,'currentApp':_0x340198?_0x45e384:undefined,'explicitAppName':_0x32806f};}
1
+ (function(_0x226338,_0x4f87e6){const _0x16c2b6=a213_0x574a,_0x1b775f=_0x226338();while(!![]){try{const _0x2c1912=-parseInt(_0x16c2b6(0x214))/0x1*(parseInt(_0x16c2b6(0x21b))/0x2)+parseInt(_0x16c2b6(0x21a))/0x3*(parseInt(_0x16c2b6(0x1ff))/0x4)+-parseInt(_0x16c2b6(0x200))/0x5+parseInt(_0x16c2b6(0x1fd))/0x6+-parseInt(_0x16c2b6(0x1ef))/0x7*(-parseInt(_0x16c2b6(0x1f6))/0x8)+parseInt(_0x16c2b6(0x1fa))/0x9*(parseInt(_0x16c2b6(0x203))/0xa)+-parseInt(_0x16c2b6(0x1f4))/0xb;if(_0x2c1912===_0x4f87e6)break;else _0x1b775f['push'](_0x1b775f['shift']());}catch(_0x1b1937){_0x1b775f['push'](_0x1b775f['shift']());}}}(a213_0x479c,0xe7ff8));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x63cb76){const _0x47ae22=a213_0x574a;return typeof _0x63cb76===_0x47ae22(0x212)&&_0x63cb76[_0x47ae22(0x20e)]()?_0x63cb76['trim']():undefined;}function appProfiles(_0x1787fe){const _0x30b30c=a213_0x574a;return _0x1787fe['apps']&&typeof _0x1787fe[_0x30b30c(0x208)]===_0x30b30c(0x207)?_0x1787fe[_0x30b30c(0x208)]:{};}function resolveDefaultAppName(_0x46a151){const _0x4e9933=a213_0x574a,_0x35e536=stringConfigValue(_0x46a151[_0x4e9933(0x1f5)]);if(_0x35e536)return _0x35e536;return Object['keys'](appProfiles(_0x46a151))[0x0];}function resolveTopLevelAppCode(_0x88bd8b){const _0x42e755=a213_0x574a;return stringConfigValue(_0x88bd8b['appcode'])||stringConfigValue(_0x88bd8b[_0x42e755(0x20d)]);}function normalizeRiskCeiling(_0x2bb383){const _0x21f3b9=a213_0x574a;if(_0x2bb383===undefined||_0x2bb383===null)return undefined;if(_0x2bb383==='read'||_0x2bb383===_0x21f3b9(0x20a)||_0x2bb383===_0x21f3b9(0x1f2))return _0x2bb383;return'read';}function resolveRiskCeiling(..._0x1b6d78){const _0x44a539=a213_0x574a;let _0x21452f=DEFAULT_CONFIG_VALUES[_0x44a539(0x205)];for(const _0x3984c1 of _0x1b6d78){const _0x4c9576=normalizeRiskCeiling(_0x3984c1);_0x4c9576&&riskLevelOrder(_0x4c9576)<riskLevelOrder(_0x21452f)&&(_0x21452f=_0x4c9576);}return _0x21452f;}function a213_0x479c(){const _0x1901a3=['FORMAT','locale','high-risk-write','globalConfig','28548740kwVrNH','defaultApp','12123512rgFtbN','env','call','ENV','211293wfPmkD','maxRisk','pageSize','11255838taNdLG','RISK_LEVEL','4odQyFK','7066705FiETFO','apiDir','prototype','660EAyYZw','PAGE_SIZE','riskLevel','find','object','apps','COOKIE','write','VERBOSE','cookie','app','trim','format','true','accessKey','string','hasOwnProperty','14VVbhrg','appcode','inherit','entries','APP','projectConfig','2064147petJxa','95714LUELev','keys','daily','MAX_RISK','production','7dCHZNz'];a213_0x479c=function(){return _0x1901a3;};return a213_0x479c();}function a213_0x574a(_0x31b24f,_0x1867c9){_0x31b24f=_0x31b24f-0x1ec;const _0x479cd0=a213_0x479c();let _0x574aa0=_0x479cd0[_0x31b24f];return _0x574aa0;}function configuredRiskCeilings(_0x28b1cb){const _0x5605cb=a213_0x574a;return[...Object[_0x5605cb(0x202)][_0x5605cb(0x213)][_0x5605cb(0x1f8)](_0x28b1cb,'maxRisk')?[_0x28b1cb[_0x5605cb(0x1fb)]]:[],...Object['prototype']['hasOwnProperty'][_0x5605cb(0x1f8)](_0x28b1cb,'riskLevel')?[_0x28b1cb[_0x5605cb(0x205)]]:[]];}export function resolveAppConfig({raw:_0x23a1ef,flags:_0x54a45e,layers:_0x729743,readEnv:_0x39939b}){const _0x56d013=a213_0x574a,_0x5a8dbd=_0x729743?.[_0x56d013(0x219)]??{},_0x1cb248=_0x729743?.[_0x56d013(0x1f3)]??{},_0x86d10b=Object[_0x56d013(0x21c)](_0x5a8dbd)['length']>0x0,_0x44ffd1=!_0x86d10b||_0x5a8dbd[_0x56d013(0x216)]===!![],_0x5b4083=_0x86d10b?resolveDefaultAppName(_0x5a8dbd):undefined,_0x405bba=_0x44ffd1?resolveDefaultAppName(_0x1cb248):undefined,_0x5e2690=stringConfigValue(_0x54a45e[_0x56d013(0x20d)]),_0x17b6d6=_0x39939b(_0x56d013(0x218)),_0x64bd73={};if(_0x23a1ef[_0x56d013(0x208)]&&typeof _0x23a1ef[_0x56d013(0x208)]===_0x56d013(0x207))for(const [_0x775204,_0x18f5cc]of Object['entries'](_0x23a1ef[_0x56d013(0x208)])){_0x18f5cc&&typeof _0x18f5cc===_0x56d013(0x207)&&_0x18f5cc['appcode']&&(_0x64bd73[_0x775204]=_0x18f5cc);}const _0x4cf593=_0x23a1ef['defaultApp']||undefined,_0x1fee01=Object['keys'](_0x64bd73)['length']>0x0,_0x4ae0f3=_0x5e2690||_0x5b4083||_0x17b6d6||_0x405bba||_0x4cf593||undefined,_0x552d81=stringConfigValue(_0x54a45e[_0x56d013(0x215)]),_0xe02ee7=_0x552d81?Object[_0x56d013(0x217)](_0x64bd73)[_0x56d013(0x206)](([,_0x5312e8])=>_0x5312e8?.['appcode']===_0x552d81):undefined,_0x187992=_0xe02ee7?.[0x0],_0x47421d=_0xe02ee7?.[0x1],_0x54861c=_0x552d81?_0x187992:_0x4ae0f3;let _0x430900=_0x54861c&&_0x64bd73[_0x54861c]?_0x64bd73[_0x54861c]:undefined;_0x552d81&&_0x47421d&&(_0x430900=_0x47421d);const _0x5ecfdc=_0x552d81?_0x47421d??_0x430900:_0x430900,_0x10d51a=!_0x5e2690&&!_0x5b4083&&_0x17b6d6&&_0x54861c===_0x17b6d6,_0x3079e7=_0x5e2690||(_0x10d51a?_0x17b6d6:undefined)||(_0x552d81?_0x187992:undefined),_0xfbbceb=_0x5ecfdc?.[_0x56d013(0x215)],_0x4386d4=_0x86d10b?resolveTopLevelAppCode(_0x5a8dbd):undefined,_0x1ea0a7=_0x44ffd1?resolveTopLevelAppCode(_0x1cb248):undefined,_0x22a8d5=_0x5e2690||_0x5b4083?_0xfbbceb:undefined,_0x1617fe=!_0x5e2690&&!_0x5b4083?_0xfbbceb:undefined,_0x42e066=_0x552d81||_0x22a8d5||_0x4386d4||_0x1617fe||_0x1ea0a7||undefined,_0x45decf=_0x86d10b?stringConfigValue(_0x5a8dbd[_0x56d013(0x1f7)]):undefined,_0x2403b5=_0x44ffd1?stringConfigValue(_0x1cb248[_0x56d013(0x1f7)]):undefined,_0x105d3a=_0x54a45e['env']||_0x5ecfdc?.['env']||_0x45decf||_0x39939b(_0x56d013(0x1f9))||_0x2403b5||_0x23a1ef['env']||DEFAULT_CONFIG_VALUES[_0x56d013(0x1f7)],_0x2e699b=_0x5ecfdc?.[_0x56d013(0x1f1)]||_0x23a1ef[_0x56d013(0x1f1)]||DEFAULT_CONFIG_VALUES[_0x56d013(0x1f1)],_0x517904=_0x39939b(_0x56d013(0x209))||_0x5ecfdc?.['cookie']||_0x23a1ef[_0x56d013(0x20c)]||undefined,_0x3f572a=_0x39939b('ACCESS_KEY')||_0x5ecfdc?.[_0x56d013(0x211)]||_0x23a1ef[_0x56d013(0x211)]||undefined,_0x58552b=_0x54a45e[_0x56d013(0x20f)]||_0x39939b(_0x56d013(0x1f0))||_0x5ecfdc?.['format']||_0x23a1ef[_0x56d013(0x20f)],_0x56c74a=normalizeLegacyOutputFormat(_0x58552b),_0x547a87=_0x39939b(_0x56d013(0x204))||_0x5ecfdc?.[_0x56d013(0x1fc)]||_0x23a1ef[_0x56d013(0x1fc)],_0x59f93f=_0x547a87?Number(_0x547a87)||undefined:undefined,_0x2404d2=_0x729743?[...configuredRiskCeilings(_0x729743['globalConfig']),...configuredRiskCeilings(_0x729743[_0x56d013(0x219)])]:configuredRiskCeilings(_0x23a1ef),_0x22e5af=resolveRiskCeiling(..._0x2404d2,_0x5ecfdc?.['riskLevel'],_0x39939b(_0x56d013(0x1fe)),_0x39939b(_0x56d013(0x1ed))),_0x55748d=_0x39939b(_0x56d013(0x20b)),_0x405e8e=_0x55748d==='1'||_0x55748d===_0x56d013(0x210),_0x47400c=_0x5ecfdc?.[_0x56d013(0x201)]||_0x23a1ef[_0x56d013(0x201)]||DEFAULT_CONFIG_VALUES['apiDir'],_0x463250=isDaily(normalizeEnv(String(_0x105d3a)))?_0x56d013(0x1ec):_0x56d013(0x1ee);return{'appCode':typeof _0x42e066===_0x56d013(0x212)&&_0x42e066[_0x56d013(0x20e)]()?_0x42e066['trim']():undefined,'env':_0x463250,'locale':_0x2e699b,'cookie':_0x517904,'accessKey':_0x3f572a,'format':_0x56c74a,'pageSize':_0x59f93f,'riskLevel':_0x22e5af,'verbose':_0x405e8e,'apiDir':_0x47400c,'apps':_0x64bd73,'defaultApp':_0x4cf593,'currentApp':_0x1fee01?_0x54861c:undefined,'explicitAppName':_0x3079e7};}
@@ -1 +1 @@
1
- function a214_0x2222(){const _0x429c91=['../auth/get-cookie.js','authRequired','130784SOeMuG','532251foEIax','431430coFwXP','451urdEMw','2872020akYheh','288zwsYeq','295791IQKwvq','2sHzpBO','178215cKgWKx','7847LMEMOD','80ATibhw','cookie'];a214_0x2222=function(){return _0x429c91;};return a214_0x2222();}(function(_0xf5fe71,_0x403ace){const _0x5835b5=a214_0x5d7e,_0xf27e02=_0xf5fe71();while(!![]){try{const _0x167d89=-parseInt(_0x5835b5(0xd5))/0x1+-parseInt(_0x5835b5(0xd4))/0x2*(parseInt(_0x5835b5(0xd3))/0x3)+parseInt(_0x5835b5(0xdb))/0x4*(-parseInt(_0x5835b5(0xd7))/0x5)+-parseInt(_0x5835b5(0xd1))/0x6+-parseInt(_0x5835b5(0xd6))/0x7*(parseInt(_0x5835b5(0xd2))/0x8)+-parseInt(_0x5835b5(0xdc))/0x9+-parseInt(_0x5835b5(0xdd))/0xa*(-parseInt(_0x5835b5(0xd0))/0xb);if(_0x167d89===_0x403ace)break;else _0xf27e02['push'](_0xf27e02['shift']());}catch(_0x44fb3f){_0xf27e02['push'](_0xf27e02['shift']());}}}(a214_0x2222,0x5f65e));function a214_0x5d7e(_0x48a158,_0x1f86ba){_0x48a158=_0x48a158-0xd0;const _0x222295=a214_0x2222();let _0x5d7e8b=_0x222295[_0x48a158];return _0x5d7e8b;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x408df6){const _0x29d3e6=a214_0x5d7e,{getCookie:_0x22b67b}=await import(_0x29d3e6(0xd9)),_0xbe8ca=_0x408df6[_0x29d3e6(0xd8)]||_0x22b67b(),_0x4db4bd=_0xbe8ca?await getIsSessionValid():![];return{'cookie':_0xbe8ca,'isLoggedIn':_0x4db4bd,async 'getOrLogin'(){const _0x2bcb9f=_0x29d3e6;if(_0xbe8ca&&_0x4db4bd)return _0xbe8ca;throw CliErrors[_0x2bcb9f(0xda)]();}};}
1
+ (function(_0xf3bbd,_0x59c772){const _0x3e5d8c=a214_0x366e,_0x7a552d=_0xf3bbd();while(!![]){try{const _0x31e5b5=parseInt(_0x3e5d8c(0x12e))/0x1*(parseInt(_0x3e5d8c(0x12b))/0x2)+parseInt(_0x3e5d8c(0x127))/0x3+parseInt(_0x3e5d8c(0x128))/0x4*(parseInt(_0x3e5d8c(0x12d))/0x5)+-parseInt(_0x3e5d8c(0x12a))/0x6+parseInt(_0x3e5d8c(0x129))/0x7*(parseInt(_0x3e5d8c(0x126))/0x8)+parseInt(_0x3e5d8c(0x12c))/0x9+parseInt(_0x3e5d8c(0x130))/0xa;if(_0x31e5b5===_0x59c772)break;else _0x7a552d['push'](_0x7a552d['shift']());}catch(_0x73363b){_0x7a552d['push'](_0x7a552d['shift']());}}}(a214_0x48aa,0x49d35));import{getIsSessionValid}from'../auth/is-session-valid.js';function a214_0x48aa(){const _0x12d30c=['14gYUrsB','3539766XnsSEq','697122llUJgP','351405wPkNii','5ufhXRC','1DvwWUY','authRequired','2083720qtVAgP','49232oNYyEH','475449CeqKrO','502324lslCYx'];a214_0x48aa=function(){return _0x12d30c;};return a214_0x48aa();}function a214_0x366e(_0x398114,_0x5d9080){_0x398114=_0x398114-0x126;const _0x48aaec=a214_0x48aa();let _0x366ea9=_0x48aaec[_0x398114];return _0x366ea9;}import{CliErrors}from'../errors.js';export async function buildAuth(_0x1631cf){const {getCookie:_0x82086b}=await import('../auth/get-cookie.js'),_0x57d8af=_0x1631cf['cookie']||_0x82086b(),_0x2bf673=_0x57d8af?await getIsSessionValid():![];return{'cookie':_0x57d8af,'isLoggedIn':_0x2bf673,async 'getOrLogin'(){const _0x14de19=a214_0x366e;if(_0x57d8af&&_0x2bf673)return _0x57d8af;throw CliErrors[_0x14de19(0x12f)]();}};}
@@ -1 +1 @@
1
- const a215_0x10f6e2=a215_0x162d;(function(_0x411282,_0x2baf7a){const _0x2c4cb7=a215_0x162d,_0x36514b=_0x411282();while(!![]){try{const _0x50093b=parseInt(_0x2c4cb7(0xe1))/0x1+-parseInt(_0x2c4cb7(0xd9))/0x2+-parseInt(_0x2c4cb7(0xf3))/0x3*(parseInt(_0x2c4cb7(0xfa))/0x4)+-parseInt(_0x2c4cb7(0xe6))/0x5*(-parseInt(_0x2c4cb7(0xf9))/0x6)+-parseInt(_0x2c4cb7(0xf7))/0x7+-parseInt(_0x2c4cb7(0xdb))/0x8*(-parseInt(_0x2c4cb7(0xd5))/0x9)+parseInt(_0x2c4cb7(0xed))/0xa*(parseInt(_0x2c4cb7(0xc7))/0xb);if(_0x50093b===_0x2baf7a)break;else _0x36514b['push'](_0x36514b['shift']());}catch(_0x72242c){_0x36514b['push'](_0x36514b['shift']());}}}(a215_0x2ca9,0x54325));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a215_0x10f6e2(0xcf);export const CONFIG_NAMES=[a215_0x10f6e2(0xcf),a215_0x10f6e2(0xd6),a215_0x10f6e2(0xca)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES['filter'](_0xbf3669=>_0xbf3669!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x34c200){for(const _0x5c4716 of CONFIG_NAMES){const _0x3ba6fc=resolve(_0x34c200,_0x5c4716);if(existsSync(_0x3ba6fc))return _0x3ba6fc;}return undefined;}export function findProjectRootDirectory(_0x104700=process[a215_0x10f6e2(0xe7)]()){let _0x128934=resolve(_0x104700);const {root:_0x38c496}=parse(_0x128934),_0x3c896b=homedir();while(!![]){if(resolveConfigPath(_0x128934)){if(_0x128934===_0x3c896b)break;return _0x128934;}if(_0x128934===_0x38c496||_0x128934===_0x3c896b)break;const _0x20dc92=dirname(_0x128934);if(_0x20dc92===_0x128934)break;_0x128934=_0x20dc92;}return resolve(_0x104700);}export function getProjectConfigPath(){const _0xf7cd4=a215_0x10f6e2;return resolveConfigPath(process[_0xf7cd4(0xe7)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}function a215_0x162d(_0x4c8de7,_0x5060de){_0x4c8de7=_0x4c8de7-0xc7;const _0x2ca942=a215_0x2ca9();let _0x162dcc=_0x2ca942[_0x4c8de7];return _0x162dcc;}export function isInProject(){return!!getProjectConfigPath();}function a215_0x2ca9(){const _0x25fc75=['apps','.lovrabetrc','riskLevel','utf8','pageSize','migrated','.rabetbase.json','inherit','silent','data','\x0a\x20\x20','defaultApp','18yrZIDB','.lovrabet.json','Global','missing','953050fdcThH','parse','1750264WHanaR','config','app','set','status','get','164475icBCiY','message','appcode','stringify','trim','5hyLDqx','cwd','apiDir','accessKey','keys','string','env','3005680iIawbC','project','format','empty','.tmp','Project','12333eOVpFH','warn','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','object','2116730uBVZgd','locale','3519534nawAJb','648QXgPIP','length','cookie','22xuDEzx','error'];a215_0x2ca9=function(){return _0x25fc75;};return a215_0x2ca9();}export function inspectCliConfigJsonFile(_0x552464){const _0x2a3628=a215_0x10f6e2;if(!existsSync(_0x552464))return{'status':_0x2a3628(0xd8)};try{const _0x3ba64d=readFileSync(_0x552464,{'encoding':_0x2a3628(0xcc)});if(!_0x3ba64d?.[_0x2a3628(0xe5)]())return{'status':_0x2a3628(0xf0)};const _0x11849f=JSON[_0x2a3628(0xda)](_0x3ba64d);return{'status':'ok','data':_0x11849f};}catch(_0x1fdad1){return{'status':_0x2a3628(0xc8),'message':_0x1fdad1 instanceof Error?_0x1fdad1[_0x2a3628(0xe2)]:String(_0x1fdad1)};}}function parseCliConfigJsonFile(_0x20ffe3,_0x72c002,_0x49ad52){const _0x548b8c=a215_0x10f6e2,_0x156e18=inspectCliConfigJsonFile(_0x20ffe3);if(_0x156e18['status']==='missing'||_0x156e18[_0x548b8c(0xdf)]===_0x548b8c(0xf0))return{};if(_0x156e18[_0x548b8c(0xdf)]==='ok')return _0x156e18[_0x548b8c(0xd2)];return _0x72c002===_0x548b8c(0xf4)&&_0x49ad52&&console[_0x548b8c(0xc8)](CLI_BIN_NAME+':\x20'+_0x49ad52+_0x548b8c(0xf5)+_0x20ffe3+_0x548b8c(0xd3)+_0x156e18['message']),{};}function normalizeLegacyConfigShape(_0xa7a672){const _0x3f0239=a215_0x10f6e2;if(!_0xa7a672||typeof _0xa7a672!==_0x3f0239(0xf6))return{'config':{},'migrated':![]};const _0x4eb9b4={..._0xa7a672},_0x1abda5=_0x4eb9b4[_0x3f0239(0xc9)]&&typeof _0x4eb9b4[_0x3f0239(0xc9)]==='object'?{..._0x4eb9b4['apps']}:{},_0x375778=Object[_0x3f0239(0xea)](_0x1abda5)[_0x3f0239(0xfb)],_0x29c7c5=_0x4eb9b4[_0x3f0239(0xe3)]||_0x4eb9b4[_0x3f0239(0xdd)];let _0x18610a=![];if(_0x29c7c5&&_0x375778===0x0){const _0xc2dd2b=typeof _0x4eb9b4[_0x3f0239(0xd4)]===_0x3f0239(0xeb)&&_0x4eb9b4[_0x3f0239(0xd4)]['trim']()?_0x4eb9b4[_0x3f0239(0xd4)]:String(_0x29c7c5)[_0x3f0239(0xe5)]();_0x1abda5[_0xc2dd2b]={'appcode':String(_0x29c7c5)[_0x3f0239(0xe5)](),..._0x4eb9b4[_0x3f0239(0xec)]!=null?{'env':_0x4eb9b4[_0x3f0239(0xec)]}:{},..._0x4eb9b4[_0x3f0239(0xe8)]!=null?{'apiDir':_0x4eb9b4[_0x3f0239(0xe8)]}:{},..._0x4eb9b4[_0x3f0239(0xfc)]!=null?{'cookie':_0x4eb9b4['cookie']}:{},..._0x4eb9b4[_0x3f0239(0xe9)]!=null?{'accessKey':_0x4eb9b4[_0x3f0239(0xe9)]}:{},..._0x4eb9b4[_0x3f0239(0xef)]!=null?{'format':_0x4eb9b4[_0x3f0239(0xef)]}:{},..._0x4eb9b4[_0x3f0239(0xcd)]!=null?{'pageSize':_0x4eb9b4[_0x3f0239(0xcd)]}:{},..._0x4eb9b4[_0x3f0239(0xcb)]!=null?{'riskLevel':_0x4eb9b4[_0x3f0239(0xcb)]}:{},..._0x4eb9b4['locale']!=null?{'locale':_0x4eb9b4[_0x3f0239(0xf8)]}:{}},_0x4eb9b4['apps']=_0x1abda5;if(!_0x4eb9b4[_0x3f0239(0xd4)])_0x4eb9b4[_0x3f0239(0xd4)]=_0xc2dd2b;_0x18610a=!![];}return('appcode'in _0x4eb9b4||'app'in _0x4eb9b4)&&(delete _0x4eb9b4[_0x3f0239(0xe3)],delete _0x4eb9b4[_0x3f0239(0xdd)],_0x18610a=!![]),{'config':_0x4eb9b4,'migrated':_0x18610a};}function writeNormalizedConfigIfNeeded(_0x1da4df,_0x343e83){const _0x4cfa6a=a215_0x10f6e2,_0x224a6a=JSON[_0x4cfa6a(0xe4)](_0x343e83,null,0x2)+'\x0a';if(normalizedWriteCache[_0x4cfa6a(0xe0)](_0x1da4df)===_0x224a6a)return;writeConfigFile(_0x1da4df,_0x343e83),normalizedWriteCache[_0x4cfa6a(0xde)](_0x1da4df,_0x224a6a);}function parseAndNormalizeConfig(_0x51339f,_0x1c6509,_0x151f4c){const _0x53a134=a215_0x10f6e2,_0x1b81db=parseCliConfigJsonFile(_0x51339f,_0x1c6509,_0x151f4c),_0x5a12e7=normalizeLegacyConfigShape(_0x1b81db);if(_0x5a12e7[_0x53a134(0xce)])try{writeNormalizedConfigIfNeeded(_0x51339f,_0x5a12e7['config']);}catch{}return _0x5a12e7[_0x53a134(0xdc)];}export function loadRawConfigLayers(_0x138266){const _0x4d602a=a215_0x10f6e2;let _0x5f3fb4={},_0x45957f={};const _0x78bb1c=resolveConfigPath(homedir());_0x78bb1c&&(_0x5f3fb4=parseAndNormalizeConfig(_0x78bb1c,_0x4d602a(0xf4),_0x4d602a(0xd7)));const _0x3ad69d=_0x138266??findProjectRootDirectory(),_0xe487fa=resolveConfigPath(_0x3ad69d);return _0xe487fa&&(_0x45957f=parseAndNormalizeConfig(_0xe487fa,_0x4d602a(0xf4),_0x4d602a(0xf2))),{'globalPath':_0x78bb1c,'projectPath':_0xe487fa,'globalConfig':_0x5f3fb4,'projectConfig':_0x45957f};}const INHERIT_WHITELIST=['cookie','accessKey','locale',a215_0x10f6e2(0xef),a215_0x10f6e2(0xcb),a215_0x10f6e2(0xcd)];export function mergeRawConfigLayers(_0x456d09){const _0x346f70=a215_0x10f6e2,{globalConfig:_0x51563c,projectConfig:_0x12a7d7}=_0x456d09,_0x150ed7=Object['keys'](_0x12a7d7)[_0x346f70(0xfb)]>0x0;if(!_0x150ed7)return mergeGlobalOnly(_0x51563c);if(_0x12a7d7['inherit']===!![])return mergeFullInherit(_0x51563c,_0x12a7d7);if(_0x12a7d7['inherit']===![])return mergeIsolated(_0x12a7d7);return mergeProjectFirst(_0x51563c,_0x12a7d7);}function mergeGlobalOnly(_0x4d5aad){const _0x574fa4=a215_0x10f6e2,_0x159854={..._0x4d5aad},_0xf02769=_0x4d5aad['apps']&&typeof _0x4d5aad[_0x574fa4(0xc9)]===_0x574fa4(0xf6)?_0x4d5aad[_0x574fa4(0xc9)]:{};if(Object[_0x574fa4(0xea)](_0xf02769)[_0x574fa4(0xfb)]>0x0)_0x159854[_0x574fa4(0xc9)]=_0xf02769;if(_0x4d5aad['defaultApp'])_0x159854[_0x574fa4(0xd4)]=_0x4d5aad[_0x574fa4(0xd4)];else{const _0x2b5a05=Object[_0x574fa4(0xea)](_0xf02769);if(_0x2b5a05[_0x574fa4(0xfb)]>0x0)_0x159854[_0x574fa4(0xd4)]=_0x2b5a05[0x0];}return _0x159854;}function mergeIsolated(_0x3eac2c){const _0xcc1e56=a215_0x10f6e2,_0xd63d4b={..._0x3eac2c};delete _0xd63d4b[_0xcc1e56(0xd0)];const _0x3622a4=_0x3eac2c['apps']&&typeof _0x3eac2c[_0xcc1e56(0xc9)]===_0xcc1e56(0xf6)?_0x3eac2c[_0xcc1e56(0xc9)]:{};Object[_0xcc1e56(0xea)](_0x3622a4)[_0xcc1e56(0xfb)]>0x0?_0xd63d4b[_0xcc1e56(0xc9)]=_0x3622a4:delete _0xd63d4b['apps'];if(_0xcc1e56(0xd4)in _0x3eac2c)_0xd63d4b[_0xcc1e56(0xd4)]=_0x3eac2c['defaultApp'];else Object[_0xcc1e56(0xea)](_0x3622a4)[_0xcc1e56(0xfb)]>0x0?_0xd63d4b[_0xcc1e56(0xd4)]=Object[_0xcc1e56(0xea)](_0x3622a4)[0x0]:delete _0xd63d4b['defaultApp'];return _0xd63d4b;}function mergeProjectFirst(_0x52399b,_0x4169ba){const _0x3ed900=a215_0x10f6e2,_0x38b158={..._0x4169ba};delete _0x38b158[_0x3ed900(0xd0)];for(const _0x354d5f of INHERIT_WHITELIST){!(_0x354d5f in _0x38b158)&&_0x354d5f in _0x52399b&&(_0x38b158[_0x354d5f]=_0x52399b[_0x354d5f]);}const _0x60363b=_0x4169ba[_0x3ed900(0xc9)]&&typeof _0x4169ba[_0x3ed900(0xc9)]==='object'?_0x4169ba[_0x3ed900(0xc9)]:{};Object['keys'](_0x60363b)['length']>0x0?_0x38b158[_0x3ed900(0xc9)]=_0x60363b:delete _0x38b158[_0x3ed900(0xc9)];if(_0x3ed900(0xd4)in _0x4169ba)_0x38b158[_0x3ed900(0xd4)]=_0x4169ba[_0x3ed900(0xd4)];else Object[_0x3ed900(0xea)](_0x60363b)['length']>0x0?_0x38b158[_0x3ed900(0xd4)]=Object[_0x3ed900(0xea)](_0x60363b)[0x0]:delete _0x38b158[_0x3ed900(0xd4)];return _0x38b158;}function mergeFullInherit(_0x1f8196,_0x50c414){const _0xc4f75e=a215_0x10f6e2,_0x118497=_0x1f8196[_0xc4f75e(0xc9)]&&typeof _0x1f8196[_0xc4f75e(0xc9)]==='object'?_0x1f8196['apps']:{},_0x2f429d=_0x50c414[_0xc4f75e(0xc9)]&&typeof _0x50c414['apps']===_0xc4f75e(0xf6)?_0x50c414[_0xc4f75e(0xc9)]:{},_0x29875c={..._0x118497,..._0x2f429d},_0x136848={..._0x1f8196,..._0x50c414};delete _0x136848[_0xc4f75e(0xd0)];if(Object[_0xc4f75e(0xea)](_0x29875c)[_0xc4f75e(0xfb)]>0x0)_0x136848['apps']=_0x29875c;if(_0xc4f75e(0xd4)in _0x50c414)_0x136848[_0xc4f75e(0xd4)]=_0x50c414['defaultApp'];else{if(Object[_0xc4f75e(0xea)](_0x2f429d)['length']>0x0)_0x136848[_0xc4f75e(0xd4)]=Object[_0xc4f75e(0xea)](_0x2f429d)[0x0];else{if(_0x1f8196[_0xc4f75e(0xd4)])_0x136848[_0xc4f75e(0xd4)]=_0x1f8196[_0xc4f75e(0xd4)];else{const _0x7fe3ac=Object[_0xc4f75e(0xea)](_0x118497);if(_0x7fe3ac['length']>0x0)_0x136848[_0xc4f75e(0xd4)]=_0x7fe3ac[0x0];}}}return _0x136848;}export function readRawConfigWithLayers(_0x140e82){const _0x424f9c=loadRawConfigLayers(_0x140e82);return{'config':mergeRawConfigLayers(_0x424f9c),'layers':_0x424f9c};}export function readRawConfig(_0x46e8a8){return mergeRawConfigLayers(loadRawConfigLayers(_0x46e8a8));}export function readConfigFile(_0x4fd43f){const _0x340bb4=a215_0x10f6e2;return parseAndNormalizeConfig(_0x4fd43f,_0x340bb4(0xd1));}export function writeConfigFile(_0x5b9a16,_0x4f8000){const _0x5a5037=a215_0x10f6e2,_0xb770c2=dirname(_0x5b9a16);!existsSync(_0xb770c2)&&mkdirSync(_0xb770c2,{'recursive':!![]});const _0x11cf62=_0x5b9a16+_0x5a5037(0xf1);try{writeFileSync(_0x11cf62,JSON[_0x5a5037(0xe4)](_0x4f8000,null,0x2)+'\x0a',{'encoding':_0x5a5037(0xcc),'mode':0x180}),renameSync(_0x11cf62,_0x5b9a16);}catch(_0x4f96a8){try{unlinkSync(_0x11cf62);}catch{}throw _0x4f96a8;}}export function resolveWriteConfigPath(_0x1ba96a){const _0x5b2de5=a215_0x10f6e2,_0x432631=_0x1ba96a===_0x5b2de5(0xee)?process[_0x5b2de5(0xe7)]():homedir(),_0x1c1da0=resolveConfigPath(_0x432631);return _0x1c1da0??resolve(_0x432631,NEW_CONFIG_NAME);}
1
+ const a215_0x41aea3=a215_0xa5fc;(function(_0x4a7746,_0x475ca9){const _0x175328=a215_0xa5fc,_0x3c0a9d=_0x4a7746();while(!![]){try{const _0x279dd5=-parseInt(_0x175328(0x1f7))/0x1+-parseInt(_0x175328(0x1f9))/0x2+parseInt(_0x175328(0x1fc))/0x3*(-parseInt(_0x175328(0x1dd))/0x4)+-parseInt(_0x175328(0x1dc))/0x5*(parseInt(_0x175328(0x1df))/0x6)+parseInt(_0x175328(0x1e1))/0x7+-parseInt(_0x175328(0x1f0))/0x8+-parseInt(_0x175328(0x1d9))/0x9*(-parseInt(_0x175328(0x1e2))/0xa);if(_0x279dd5===_0x475ca9)break;else _0x3c0a9d['push'](_0x3c0a9d['shift']());}catch(_0xc89a81){_0x3c0a9d['push'](_0x3c0a9d['shift']());}}}(a215_0x3ab2,0x26b5d));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a215_0x41aea3(0x1d2);export const CONFIG_NAMES=[a215_0x41aea3(0x1d2),'.lovrabet.json','.lovrabetrc'];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a215_0x41aea3(0x1ec)](_0x1df4eb=>_0x1df4eb!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x5da467){for(const _0x30cfa0 of CONFIG_NAMES){const _0x572cde=resolve(_0x5da467,_0x30cfa0);if(existsSync(_0x572cde))return _0x572cde;}return undefined;}export function findProjectRootDirectory(_0x522bdc=process[a215_0x41aea3(0x1ed)]()){let _0x1c8415=resolve(_0x522bdc);const {root:_0x3addf7}=parse(_0x1c8415),_0x32fadc=homedir();while(!![]){if(resolveConfigPath(_0x1c8415)){if(_0x1c8415===_0x32fadc)break;return _0x1c8415;}if(_0x1c8415===_0x3addf7||_0x1c8415===_0x32fadc)break;const _0x4235c2=dirname(_0x1c8415);if(_0x4235c2===_0x1c8415)break;_0x1c8415=_0x4235c2;}return resolve(_0x522bdc);}export function getProjectConfigPath(){const _0x56ca30=a215_0x41aea3;return resolveConfigPath(process[_0x56ca30(0x1ed)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x451049){const _0x39ca1a=a215_0x41aea3;if(!existsSync(_0x451049))return{'status':_0x39ca1a(0x1e4)};try{const _0x4daed7=readFileSync(_0x451049,{'encoding':'utf8'});if(!_0x4daed7?.[_0x39ca1a(0x1f4)]())return{'status':_0x39ca1a(0x1d8)};const _0xaee8b6=JSON[_0x39ca1a(0x1e3)](_0x4daed7);return{'status':'ok','data':_0xaee8b6};}catch(_0x49c987){return{'status':_0x39ca1a(0x1e7),'message':_0x49c987 instanceof Error?_0x49c987['message']:String(_0x49c987)};}}function parseCliConfigJsonFile(_0x16a1a5,_0x1202bf,_0x54480d){const _0x52484d=a215_0x41aea3,_0x79dce5=inspectCliConfigJsonFile(_0x16a1a5);if(_0x79dce5[_0x52484d(0x1d4)]==='missing'||_0x79dce5[_0x52484d(0x1d4)]==='empty')return{};if(_0x79dce5[_0x52484d(0x1d4)]==='ok')return _0x79dce5['data'];return _0x1202bf===_0x52484d(0x1d6)&&_0x54480d&&console[_0x52484d(0x1e7)](CLI_BIN_NAME+':\x20'+_0x54480d+_0x52484d(0x1fb)+_0x16a1a5+'\x0a\x20\x20'+_0x79dce5[_0x52484d(0x1de)]),{};}function a215_0x3ab2(){const _0x177303=['warn','set','empty','45ATLOmj','apiDir','apps','20oQRfRr','4iLrGfC','message','464874qoKDoV','pageSize','2016791UNjKHx','1467210FIUbaB','parse','missing','object','app','error','keys','appcode','format','accessKey','filter','cwd','config','cookie','2171064zjPcBM','defaultApp','length','inherit','trim','locale','stringify','8542GHIOqp','project','236334ggvmIV','env','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','465459cbKDQq','riskLevel','.rabetbase.json','.tmp','status','utf8'];a215_0x3ab2=function(){return _0x177303;};return a215_0x3ab2();}function normalizeLegacyConfigShape(_0x1e60ca){const _0x32feff=a215_0x41aea3;if(!_0x1e60ca||typeof _0x1e60ca!==_0x32feff(0x1e5))return{'config':{},'migrated':![]};const _0xf5936c={..._0x1e60ca},_0x3d1939=_0xf5936c['apps']&&typeof _0xf5936c[_0x32feff(0x1db)]===_0x32feff(0x1e5)?{..._0xf5936c[_0x32feff(0x1db)]}:{},_0x28cb8f=Object['keys'](_0x3d1939)[_0x32feff(0x1f2)],_0x41003a=_0xf5936c[_0x32feff(0x1e9)]||_0xf5936c[_0x32feff(0x1e6)];let _0x2dfd6e=![];if(_0x41003a&&_0x28cb8f===0x0){const _0x2c7f67=typeof _0xf5936c['defaultApp']==='string'&&_0xf5936c[_0x32feff(0x1f1)]['trim']()?_0xf5936c[_0x32feff(0x1f1)]:String(_0x41003a)['trim']();_0x3d1939[_0x2c7f67]={'appcode':String(_0x41003a)['trim'](),..._0xf5936c[_0x32feff(0x1fa)]!=null?{'env':_0xf5936c[_0x32feff(0x1fa)]}:{},..._0xf5936c[_0x32feff(0x1da)]!=null?{'apiDir':_0xf5936c[_0x32feff(0x1da)]}:{},..._0xf5936c[_0x32feff(0x1ef)]!=null?{'cookie':_0xf5936c[_0x32feff(0x1ef)]}:{},..._0xf5936c[_0x32feff(0x1eb)]!=null?{'accessKey':_0xf5936c[_0x32feff(0x1eb)]}:{},..._0xf5936c['format']!=null?{'format':_0xf5936c[_0x32feff(0x1ea)]}:{},..._0xf5936c[_0x32feff(0x1e0)]!=null?{'pageSize':_0xf5936c[_0x32feff(0x1e0)]}:{},..._0xf5936c[_0x32feff(0x1d1)]!=null?{'riskLevel':_0xf5936c[_0x32feff(0x1d1)]}:{},..._0xf5936c[_0x32feff(0x1f5)]!=null?{'locale':_0xf5936c[_0x32feff(0x1f5)]}:{}},_0xf5936c[_0x32feff(0x1db)]=_0x3d1939;if(!_0xf5936c[_0x32feff(0x1f1)])_0xf5936c['defaultApp']=_0x2c7f67;_0x2dfd6e=!![];}return(_0x32feff(0x1e9)in _0xf5936c||_0x32feff(0x1e6)in _0xf5936c)&&(delete _0xf5936c[_0x32feff(0x1e9)],delete _0xf5936c[_0x32feff(0x1e6)],_0x2dfd6e=!![]),{'config':_0xf5936c,'migrated':_0x2dfd6e};}function writeNormalizedConfigIfNeeded(_0x3cef50,_0xcdab44){const _0x18f29a=a215_0x41aea3,_0xa7502d=JSON[_0x18f29a(0x1f6)](_0xcdab44,null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x3cef50)===_0xa7502d)return;writeConfigFile(_0x3cef50,_0xcdab44),normalizedWriteCache[_0x18f29a(0x1d7)](_0x3cef50,_0xa7502d);}function a215_0xa5fc(_0x3493aa,_0x1e5884){_0x3493aa=_0x3493aa-0x1d1;const _0x3ab20e=a215_0x3ab2();let _0xa5fcb0=_0x3ab20e[_0x3493aa];return _0xa5fcb0;}function parseAndNormalizeConfig(_0x33b910,_0x355657,_0x104cbe){const _0x261d62=a215_0x41aea3,_0x2cb4f6=parseCliConfigJsonFile(_0x33b910,_0x355657,_0x104cbe),_0x30bc9c=normalizeLegacyConfigShape(_0x2cb4f6);if(_0x30bc9c['migrated'])try{writeNormalizedConfigIfNeeded(_0x33b910,_0x30bc9c[_0x261d62(0x1ee)]);}catch{}return _0x30bc9c[_0x261d62(0x1ee)];}export function loadRawConfigLayers(_0x414001){const _0x44b0b3=a215_0x41aea3;let _0x38a75a={},_0x5f0ec1={};const _0x23be89=resolveConfigPath(homedir());_0x23be89&&(_0x38a75a=parseAndNormalizeConfig(_0x23be89,_0x44b0b3(0x1d6),'Global'));const _0x1b39fd=_0x414001??findProjectRootDirectory(),_0x128a8d=resolveConfigPath(_0x1b39fd);return _0x128a8d&&(_0x5f0ec1=parseAndNormalizeConfig(_0x128a8d,'warn','Project')),{'globalPath':_0x23be89,'projectPath':_0x128a8d,'globalConfig':_0x38a75a,'projectConfig':_0x5f0ec1};}const INHERIT_WHITELIST=[a215_0x41aea3(0x1ef),a215_0x41aea3(0x1eb),a215_0x41aea3(0x1f5),a215_0x41aea3(0x1ea),a215_0x41aea3(0x1d1),'pageSize'];export function mergeRawConfigLayers(_0x5770a0){const _0x41a200=a215_0x41aea3,{globalConfig:_0x291bb0,projectConfig:_0x198f43}=_0x5770a0,_0x48e646=Object['keys'](_0x198f43)[_0x41a200(0x1f2)]>0x0;if(!_0x48e646)return mergeGlobalOnly(_0x291bb0);if(_0x198f43['inherit']===!![])return mergeFullInherit(_0x291bb0,_0x198f43);if(_0x198f43[_0x41a200(0x1f3)]===![])return mergeIsolated(_0x198f43);return mergeProjectFirst(_0x291bb0,_0x198f43);}function mergeGlobalOnly(_0x1ed769){const _0x2e014c=a215_0x41aea3,_0x4d4989={..._0x1ed769},_0x5596a0=_0x1ed769[_0x2e014c(0x1db)]&&typeof _0x1ed769[_0x2e014c(0x1db)]===_0x2e014c(0x1e5)?_0x1ed769[_0x2e014c(0x1db)]:{};if(Object[_0x2e014c(0x1e8)](_0x5596a0)[_0x2e014c(0x1f2)]>0x0)_0x4d4989[_0x2e014c(0x1db)]=_0x5596a0;if(_0x1ed769[_0x2e014c(0x1f1)])_0x4d4989[_0x2e014c(0x1f1)]=_0x1ed769[_0x2e014c(0x1f1)];else{const _0x6f9d9e=Object[_0x2e014c(0x1e8)](_0x5596a0);if(_0x6f9d9e[_0x2e014c(0x1f2)]>0x0)_0x4d4989[_0x2e014c(0x1f1)]=_0x6f9d9e[0x0];}return _0x4d4989;}function mergeIsolated(_0x4f0b9b){const _0xc241e8=a215_0x41aea3,_0x510018={..._0x4f0b9b};delete _0x510018['inherit'];const _0xb1b8f1=_0x4f0b9b['apps']&&typeof _0x4f0b9b['apps']===_0xc241e8(0x1e5)?_0x4f0b9b['apps']:{};Object[_0xc241e8(0x1e8)](_0xb1b8f1)['length']>0x0?_0x510018[_0xc241e8(0x1db)]=_0xb1b8f1:delete _0x510018['apps'];if(_0xc241e8(0x1f1)in _0x4f0b9b)_0x510018[_0xc241e8(0x1f1)]=_0x4f0b9b['defaultApp'];else Object[_0xc241e8(0x1e8)](_0xb1b8f1)[_0xc241e8(0x1f2)]>0x0?_0x510018[_0xc241e8(0x1f1)]=Object['keys'](_0xb1b8f1)[0x0]:delete _0x510018[_0xc241e8(0x1f1)];return _0x510018;}function mergeProjectFirst(_0x2f5fe8,_0x22d775){const _0x344764=a215_0x41aea3,_0x43e517={..._0x22d775};delete _0x43e517[_0x344764(0x1f3)];for(const _0x54deed of INHERIT_WHITELIST){!(_0x54deed in _0x43e517)&&_0x54deed in _0x2f5fe8&&(_0x43e517[_0x54deed]=_0x2f5fe8[_0x54deed]);}const _0x38ccba=_0x22d775[_0x344764(0x1db)]&&typeof _0x22d775[_0x344764(0x1db)]===_0x344764(0x1e5)?_0x22d775[_0x344764(0x1db)]:{};Object['keys'](_0x38ccba)['length']>0x0?_0x43e517[_0x344764(0x1db)]=_0x38ccba:delete _0x43e517['apps'];if(_0x344764(0x1f1)in _0x22d775)_0x43e517['defaultApp']=_0x22d775[_0x344764(0x1f1)];else Object['keys'](_0x38ccba)['length']>0x0?_0x43e517['defaultApp']=Object[_0x344764(0x1e8)](_0x38ccba)[0x0]:delete _0x43e517[_0x344764(0x1f1)];return _0x43e517;}function mergeFullInherit(_0x2888c8,_0x2c56ec){const _0xe0a350=a215_0x41aea3,_0x2d3ae4=_0x2888c8[_0xe0a350(0x1db)]&&typeof _0x2888c8[_0xe0a350(0x1db)]==='object'?_0x2888c8['apps']:{},_0x35b0ad=_0x2c56ec[_0xe0a350(0x1db)]&&typeof _0x2c56ec[_0xe0a350(0x1db)]==='object'?_0x2c56ec[_0xe0a350(0x1db)]:{},_0x1047d9={..._0x2d3ae4,..._0x35b0ad},_0x119db8={..._0x2888c8,..._0x2c56ec};delete _0x119db8['inherit'];if(Object[_0xe0a350(0x1e8)](_0x1047d9)[_0xe0a350(0x1f2)]>0x0)_0x119db8['apps']=_0x1047d9;if(_0xe0a350(0x1f1)in _0x2c56ec)_0x119db8['defaultApp']=_0x2c56ec[_0xe0a350(0x1f1)];else{if(Object[_0xe0a350(0x1e8)](_0x35b0ad)['length']>0x0)_0x119db8[_0xe0a350(0x1f1)]=Object['keys'](_0x35b0ad)[0x0];else{if(_0x2888c8[_0xe0a350(0x1f1)])_0x119db8[_0xe0a350(0x1f1)]=_0x2888c8['defaultApp'];else{const _0x3fa50b=Object[_0xe0a350(0x1e8)](_0x2d3ae4);if(_0x3fa50b[_0xe0a350(0x1f2)]>0x0)_0x119db8['defaultApp']=_0x3fa50b[0x0];}}}return _0x119db8;}export function readRawConfigWithLayers(_0x2ec146){const _0x1f0723=loadRawConfigLayers(_0x2ec146);return{'config':mergeRawConfigLayers(_0x1f0723),'layers':_0x1f0723};}export function readRawConfig(_0x1384f5){return mergeRawConfigLayers(loadRawConfigLayers(_0x1384f5));}export function readConfigFile(_0x4a4b49){return parseAndNormalizeConfig(_0x4a4b49,'silent');}export function writeConfigFile(_0xc02460,_0x3a7d6a){const _0x2413b1=a215_0x41aea3,_0x2af709=dirname(_0xc02460);!existsSync(_0x2af709)&&mkdirSync(_0x2af709,{'recursive':!![]});const _0x53ebd0=_0xc02460+_0x2413b1(0x1d3);try{writeFileSync(_0x53ebd0,JSON[_0x2413b1(0x1f6)](_0x3a7d6a,null,0x2)+'\x0a',{'encoding':_0x2413b1(0x1d5),'mode':0x180}),renameSync(_0x53ebd0,_0xc02460);}catch(_0x34316b){try{unlinkSync(_0x53ebd0);}catch{}throw _0x34316b;}}export function resolveWriteConfigPath(_0x2317f8){const _0x403ec3=a215_0x41aea3,_0x10f69c=_0x2317f8===_0x403ec3(0x1f8)?process[_0x403ec3(0x1ed)]():homedir(),_0x209733=resolveConfigPath(_0x10f69c);return _0x209733??resolve(_0x10f69c,NEW_CONFIG_NAME);}