@lovrabet/rabetbase-cli 2.5.2-beta.7 → 2.5.3-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (348) 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.d.ts +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.d.ts +2 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/auth/auth-server-ui.js +1 -1
  8. package/lib/auth/auth-server.js +1 -1
  9. package/lib/auth/constant.js +1 -1
  10. package/lib/auth/get-cookie.js +1 -1
  11. package/lib/auth/get-session-user.js +1 -1
  12. package/lib/auth/is-session-valid.js +1 -1
  13. package/lib/auth/login-success-html.js +1 -1
  14. package/lib/auth/logout.js +1 -1
  15. package/lib/cli-flags.js +1 -1
  16. package/lib/cli.js +1 -1
  17. package/lib/commands/api/generate.js +1 -1
  18. package/lib/commands/api/index.js +1 -1
  19. package/lib/commands/api/list.js +1 -1
  20. package/lib/commands/api/pull.js +1 -1
  21. package/lib/commands/api/shared.js +1 -1
  22. package/lib/commands/app/index.js +1 -1
  23. package/lib/commands/app/list.js +1 -1
  24. package/lib/commands/app/members-list.js +1 -1
  25. package/lib/commands/app/remote-directory.js +1 -1
  26. package/lib/commands/app/shared.js +1 -1
  27. package/lib/commands/app-config/delete.js +1 -1
  28. package/lib/commands/app-config/get.js +1 -1
  29. package/lib/commands/app-config/index.js +1 -1
  30. package/lib/commands/app-config/list.js +1 -1
  31. package/lib/commands/app-config/set.js +1 -1
  32. package/lib/commands/app-config/shared.js +1 -1
  33. package/lib/commands/auth/index.js +1 -1
  34. package/lib/commands/bff/create.js +1 -1
  35. package/lib/commands/bff/delete.js +1 -1
  36. package/lib/commands/bff/detail.js +1 -1
  37. package/lib/commands/bff/index.js +1 -1
  38. package/lib/commands/bff/list.js +1 -1
  39. package/lib/commands/bff/pull.js +1 -1
  40. package/lib/commands/bff/push.js +1 -1
  41. package/lib/commands/bff/status.js +1 -1
  42. package/lib/commands/cli-skill/index.js +1 -1
  43. package/lib/commands/cli-update.js +1 -1
  44. package/lib/commands/codegen/index.js +1 -1
  45. package/lib/commands/codegen/sdk.js +1 -1
  46. package/lib/commands/codegen/sql.js +1 -1
  47. package/lib/commands/common/app-registry.js +1 -1
  48. package/lib/commands/common/app-selector.js +1 -1
  49. package/lib/commands/common/async-task.js +1 -1
  50. package/lib/commands/common/dry-run.js +1 -1
  51. package/lib/commands/common/flags.js +1 -1
  52. package/lib/commands/common/local-file.js +1 -1
  53. package/lib/commands/common/validate.js +1 -1
  54. package/lib/commands/config/delete.js +1 -1
  55. package/lib/commands/config/get.js +1 -1
  56. package/lib/commands/config/index.js +1 -1
  57. package/lib/commands/config/init.js +1 -1
  58. package/lib/commands/config/list.js +1 -1
  59. package/lib/commands/config/set.js +1 -1
  60. package/lib/commands/config/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/business-groups.js +1 -1
  63. package/lib/commands/dataset/capability.js +1 -1
  64. package/lib/commands/dataset/delete.js +1 -1
  65. package/lib/commands/dataset/detail.js +1 -1
  66. package/lib/commands/dataset/extend-update.js +1 -1
  67. package/lib/commands/dataset/field-restore.js +1 -1
  68. package/lib/commands/dataset/field-update.js +1 -1
  69. package/lib/commands/dataset/generate.js +1 -1
  70. package/lib/commands/dataset/index.js +1 -1
  71. package/lib/commands/dataset/list.js +1 -1
  72. package/lib/commands/dataset/operations.js +1 -1
  73. package/lib/commands/dataset/relation-audit.js +1 -1
  74. package/lib/commands/dataset/relation-create.js +1 -1
  75. package/lib/commands/dataset/relation-delete.js +1 -1
  76. package/lib/commands/dataset/relation-shared.js +1 -1
  77. package/lib/commands/dataset/relation-update.js +1 -1
  78. package/lib/commands/dataset/relations.js +1 -1
  79. package/lib/commands/dataset/rename.js +1 -1
  80. package/lib/commands/dataset/restore.js +1 -1
  81. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  82. package/lib/commands/db/analysis-batching.js +1 -1
  83. package/lib/commands/db/analyze-batch-plan.js +1 -1
  84. package/lib/commands/db/analyze-cancel.js +1 -1
  85. package/lib/commands/db/analyze-start.js +1 -1
  86. package/lib/commands/db/analyze-status.js +1 -1
  87. package/lib/commands/db/create.js +1 -1
  88. package/lib/commands/db/delete.js +1 -1
  89. package/lib/commands/db/detail.js +1 -1
  90. package/lib/commands/db/diff-refresh-start.js +1 -1
  91. package/lib/commands/db/diff-refresh-status.js +1 -1
  92. package/lib/commands/db/diff.js +1 -1
  93. package/lib/commands/db/index.js +1 -1
  94. package/lib/commands/db/list.js +1 -1
  95. package/lib/commands/db/shared.js +1 -1
  96. package/lib/commands/db/table-diff-shared.js +1 -1
  97. package/lib/commands/db/tables.js +1 -1
  98. package/lib/commands/db/test.js +1 -1
  99. package/lib/commands/db/update.js +1 -1
  100. package/lib/commands/deployment/index.js +1 -1
  101. package/lib/commands/deployment/sync-all.js +1 -1
  102. package/lib/commands/deployment/sync-jobs.js +1 -1
  103. package/lib/commands/deployment/sync-status.js +1 -1
  104. package/lib/commands/doctor.js +1 -1
  105. package/lib/commands/file/index.js +1 -1
  106. package/lib/commands/instant-api-policy/current.js +1 -1
  107. package/lib/commands/instant-api-policy/index.js +1 -1
  108. package/lib/commands/instant-api-policy/init.js +1 -1
  109. package/lib/commands/instant-api-policy/publish.js +1 -1
  110. package/lib/commands/instant-api-policy/pull.js +1 -1
  111. package/lib/commands/instant-api-policy/revision.js +1 -1
  112. package/lib/commands/instant-api-policy/revisions.js +1 -1
  113. package/lib/commands/instant-api-policy/rollback.js +1 -1
  114. package/lib/commands/instant-api-policy/shared.js +1 -1
  115. package/lib/commands/instant-api-policy/validate.js +1 -1
  116. package/lib/commands/issue/index.js +1 -1
  117. package/lib/commands/issue/nudge.js +1 -1
  118. package/lib/commands/issue/report.js +1 -1
  119. package/lib/commands/issue/shared.js +1 -1
  120. package/lib/commands/kb/create.js +1 -1
  121. package/lib/commands/kb/delete.js +1 -1
  122. package/lib/commands/kb/detail.js +1 -1
  123. package/lib/commands/kb/index.js +1 -1
  124. package/lib/commands/kb/list.js +1 -1
  125. package/lib/commands/kb/search.js +1 -1
  126. package/lib/commands/kb/shared.js +1 -1
  127. package/lib/commands/kb/update.js +1 -1
  128. package/lib/commands/logs/index.js +1 -1
  129. package/lib/commands/menu/asset-update.js +1 -1
  130. package/lib/commands/menu/delete.js +1 -1
  131. package/lib/commands/menu/external-link-create.js +1 -1
  132. package/lib/commands/menu/external-link-update.js +1 -1
  133. package/lib/commands/menu/group-create.js +1 -1
  134. package/lib/commands/menu/group-update.js +1 -1
  135. package/lib/commands/menu/index.js +1 -1
  136. package/lib/commands/menu/list.js +1 -1
  137. package/lib/commands/menu/move.js +1 -1
  138. package/lib/commands/menu/regroup-start.js +1 -1
  139. package/lib/commands/menu/rename.js +1 -1
  140. package/lib/commands/menu/shared/compare-table.js +1 -1
  141. package/lib/commands/menu/shared/delete-plan.js +1 -1
  142. package/lib/commands/menu/shared/facts.js +1 -1
  143. package/lib/commands/menu/shared/index.js +1 -1
  144. package/lib/commands/menu/shared/inquirer.js +1 -1
  145. package/lib/commands/menu/shared/local-pages.js +1 -1
  146. package/lib/commands/menu/shared/logic.js +1 -1
  147. package/lib/commands/menu/shared/mutations.js +1 -1
  148. package/lib/commands/menu/shared/service.js +1 -1
  149. package/lib/commands/menu/shared/sync-core.js +1 -1
  150. package/lib/commands/menu/shared/update-core.js +1 -1
  151. package/lib/commands/menu/shared/valid-url.js +1 -1
  152. package/lib/commands/menu/sync.js +1 -1
  153. package/lib/commands/menu/visibility-update.js +1 -1
  154. package/lib/commands/notification/config-create.js +1 -1
  155. package/lib/commands/notification/config-delete.js +1 -1
  156. package/lib/commands/notification/config-list.js +1 -1
  157. package/lib/commands/notification/config-update.js +1 -1
  158. package/lib/commands/notification/index.js +1 -1
  159. package/lib/commands/notification/shared.js +1 -1
  160. package/lib/commands/ocr/index.js +1 -1
  161. package/lib/commands/page/create.js +1 -1
  162. package/lib/commands/page/custom/detail.js +1 -1
  163. package/lib/commands/page/custom/list.js +1 -1
  164. package/lib/commands/page/custom/publish.js +1 -1
  165. package/lib/commands/page/custom/shared.js +1 -1
  166. package/lib/commands/page/custom/syntax.js +1 -1
  167. package/lib/commands/page/custom/update.js +1 -1
  168. package/lib/commands/page/data-list-status.js +1 -1
  169. package/lib/commands/page/generate-start.js +1 -1
  170. package/lib/commands/page/generate-status.js +1 -1
  171. package/lib/commands/page/index.js +1 -1
  172. package/lib/commands/page/pull.js +1 -1
  173. package/lib/commands/page/push.js +1 -1
  174. package/lib/commands/page/relation-audit.js +1 -1
  175. package/lib/commands/page/restore.js +1 -1
  176. package/lib/commands/page/shared.js +1 -1
  177. package/lib/commands/page/sync.js +1 -1
  178. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  179. package/lib/commands/project/create/format-elapsed.js +1 -1
  180. package/lib/commands/project/create/main.js +1 -1
  181. package/lib/commands/project/create/materialize-project-template.js +1 -1
  182. package/lib/commands/project/create/project-name.js +1 -1
  183. package/lib/commands/project/create/project-template-archive.js +1 -1
  184. package/lib/commands/project/create/project-template-path.js +1 -1
  185. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  186. package/lib/commands/project/create/use-format-code.js +1 -1
  187. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  188. package/lib/commands/project/domain-routing-sync.js +1 -1
  189. package/lib/commands/project/index.js +1 -1
  190. package/lib/commands/project/upgrade.js +1 -1
  191. package/lib/commands/registry.js +1 -1
  192. package/lib/commands/role/delete.js +1 -1
  193. package/lib/commands/role/detail.js +1 -1
  194. package/lib/commands/role/index.js +1 -1
  195. package/lib/commands/role/list.js +1 -1
  196. package/lib/commands/role/shared.js +1 -1
  197. package/lib/commands/role/update.js +1 -1
  198. package/lib/commands/role/user-add.js +1 -1
  199. package/lib/commands/role/user-remove.js +1 -1
  200. package/lib/commands/role/user-resolve.js +1 -1
  201. package/lib/commands/rule/get.js +1 -1
  202. package/lib/commands/rule/index.js +1 -1
  203. package/lib/commands/rule/list.js +1 -1
  204. package/lib/commands/rule/set.js +1 -1
  205. package/lib/commands/rule/shared.js +1 -1
  206. package/lib/commands/run/index.js +1 -1
  207. package/lib/commands/schema.js +1 -1
  208. package/lib/commands/sql/create.js +1 -1
  209. package/lib/commands/sql/delete.js +1 -1
  210. package/lib/commands/sql/detail.js +1 -1
  211. package/lib/commands/sql/exec.js +1 -1
  212. package/lib/commands/sql/index.js +1 -1
  213. package/lib/commands/sql/list.js +1 -1
  214. package/lib/commands/sql/pull.js +1 -1
  215. package/lib/commands/sql/push.js +1 -1
  216. package/lib/commands/sql/shared.js +1 -1
  217. package/lib/commands/sql/status.js +1 -1
  218. package/lib/commands/sql/validate.js +1 -1
  219. package/lib/commands/task/index.js +1 -1
  220. package/lib/commands/task/status.js +1 -1
  221. package/lib/commands/tenant/index.js +1 -1
  222. package/lib/commands/tenant/members-list.js +1 -1
  223. package/lib/commands/tenant/shared.js +1 -1
  224. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  225. package/lib/commands/user-account/index.js +1 -1
  226. package/lib/commands/workspace/add.js +1 -1
  227. package/lib/commands/workspace/index.js +1 -1
  228. package/lib/commands/workspace/remove.js +1 -1
  229. package/lib/config/domain-config.js +1 -1
  230. package/lib/config/project-domain-routing.js +1 -1
  231. package/lib/config/region-config.d.ts +23 -0
  232. package/lib/config/region-config.js +1 -0
  233. package/lib/config/schema.d.ts +15 -0
  234. package/lib/config/schema.js +1 -1
  235. package/lib/constant/cdn.js +1 -1
  236. package/lib/constant/cli.js +1 -1
  237. package/lib/constant/defaults.js +1 -1
  238. package/lib/constant/domain.js +1 -1
  239. package/lib/constant/env.js +1 -1
  240. package/lib/constant/output.js +1 -1
  241. package/lib/constant/paths.js +1 -1
  242. package/lib/constant/region.js +1 -1
  243. package/lib/constant/risk.js +1 -1
  244. package/lib/constant/routing-profile.js +1 -1
  245. package/lib/context/app-resolver.d.ts +6 -0
  246. package/lib/context/app-resolver.js +1 -1
  247. package/lib/context/auth-resolver.js +1 -1
  248. package/lib/context/config-loader.js +1 -1
  249. package/lib/context.d.ts +13 -0
  250. package/lib/context.js +1 -1
  251. package/lib/core/alias-resolver.js +1 -1
  252. package/lib/core/api-client.d.ts +2 -0
  253. package/lib/core/api-client.js +1 -1
  254. package/lib/core/bff/config.js +1 -1
  255. package/lib/core/bff/file-system.js +1 -1
  256. package/lib/core/bff/hash.js +1 -1
  257. package/lib/core/bff/lock.js +1 -1
  258. package/lib/core/bff/utils.js +1 -1
  259. package/lib/core/db-resolver.js +1 -1
  260. package/lib/core/instant-api-policy/config.js +1 -1
  261. package/lib/core/kb-search-client.js +1 -1
  262. package/lib/core/page/file-system.js +1 -1
  263. package/lib/core/page/hash.js +1 -1
  264. package/lib/core/page/lock.js +1 -1
  265. package/lib/core/page/lr-smart-jsx.d.ts +6 -0
  266. package/lib/core/page/lr-smart-jsx.js +1 -0
  267. package/lib/core/sql-index-auditor.js +1 -1
  268. package/lib/core/sql-sync/config.js +1 -1
  269. package/lib/core/sql-sync/file-system.js +1 -1
  270. package/lib/core/sql-sync/hash.js +1 -1
  271. package/lib/core/sql-sync/lock.js +1 -1
  272. package/lib/core/sql-sync/utils.js +1 -1
  273. package/lib/core/sql-validator.js +1 -1
  274. package/lib/errors.js +1 -1
  275. package/lib/framework/build-all-flags.js +1 -1
  276. package/lib/framework/error-output.js +1 -1
  277. package/lib/framework/explicit-yes.js +1 -1
  278. package/lib/framework/flags.js +1 -1
  279. package/lib/framework/help.js +1 -1
  280. package/lib/framework/index.js +1 -1
  281. package/lib/framework/output.js +1 -1
  282. package/lib/framework/response.js +1 -1
  283. package/lib/framework/runner-alias.js +1 -1
  284. package/lib/framework/runner.js +1 -1
  285. package/lib/framework/schema-export.js +1 -1
  286. package/lib/framework/supported-flags.js +1 -1
  287. package/lib/framework/types.js +1 -1
  288. package/lib/generated/build-info.d.ts +4 -4
  289. package/lib/generated/build-info.js +1 -1
  290. package/lib/generated/official-routing.js +1 -1
  291. package/lib/generated/routing-contract.js +1 -1
  292. package/lib/help.js +1 -1
  293. package/lib/postinstall.js +1 -1
  294. package/lib/runtime/confirmation.js +1 -1
  295. package/lib/runtime/event.js +1 -1
  296. package/lib/runtime/index.js +1 -1
  297. package/lib/runtime/queue.js +1 -1
  298. package/lib/runtime/resolve.js +1 -1
  299. package/lib/skills/builtin-skill.js +1 -1
  300. package/lib/skills/main.js +1 -1
  301. package/lib/skills/npx-skills-add.js +1 -1
  302. package/lib/skills/skill-presence.js +1 -1
  303. package/lib/telemetry/cli-command-trace.js +1 -1
  304. package/lib/telemetry/cli-help-trace.js +1 -1
  305. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  306. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  307. package/lib/telemetry/send-cli-trace-log.js +1 -1
  308. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  309. package/lib/types/index.d.ts +1 -1
  310. package/lib/utils/ai_config.js +1 -1
  311. package/lib/utils/apply-jq-filter.js +1 -1
  312. package/lib/utils/cdn-config.js +1 -1
  313. package/lib/utils/check-sdk-version.js +1 -1
  314. package/lib/utils/cli-version-check.js +1 -1
  315. package/lib/utils/cli-version-policy.js +1 -1
  316. package/lib/utils/config.d.ts +2 -8
  317. package/lib/utils/config.js +1 -1
  318. package/lib/utils/entity-with-id.js +1 -1
  319. package/lib/utils/file-utils.js +1 -1
  320. package/lib/utils/guides-cdn.js +1 -1
  321. package/lib/utils/http-client.js +1 -1
  322. package/lib/utils/is-non-interactive.js +1 -1
  323. package/lib/utils/logger.js +1 -1
  324. package/lib/utils/params.js +1 -1
  325. package/lib/utils/platform.js +1 -1
  326. package/lib/utils/sleep.js +1 -1
  327. package/lib/utils/template-replacer.d.ts +2 -1
  328. package/lib/utils/template-replacer.js +1 -1
  329. package/lib/utils/update-notice.js +1 -1
  330. package/lib/utils/version.js +1 -1
  331. package/lib/utils/with-active-cookie.js +1 -1
  332. package/lib/utils/write-cli-side-channel.js +1 -1
  333. package/package.json +1 -1
  334. package/skills/rabetbase/SKILL.md +6 -5
  335. package/skills/rabetbase/guides/page-development-workflow.md +3 -0
  336. package/skills/rabetbase/guides/sdk-client-generation.md +5 -5
  337. package/skills/rabetbase/knowledge/page-schema/LrSmartJsx.md +11 -3
  338. package/skills/rabetbase/references/rabetbase-api-pull.md +5 -4
  339. package/skills/rabetbase/references/rabetbase-app-list.md +3 -0
  340. package/skills/rabetbase/references/rabetbase-bff-list.md +1 -1
  341. package/skills/rabetbase/references/rabetbase-bff-pull.md +2 -0
  342. package/skills/rabetbase/references/rabetbase-bff-status.md +2 -0
  343. package/skills/rabetbase/references/rabetbase-config.md +10 -9
  344. package/skills/rabetbase/references/rabetbase-doctor.md +2 -2
  345. package/skills/rabetbase/references/rabetbase-page-push.md +5 -1
  346. package/skills/rabetbase/references/rabetbase-workspace.md +4 -2
  347. package/skills/rabetbase.manifest.json +3 -3
  348. package/templates/generate-api/client.ts.tpl +1 -1
@@ -19,11 +19,16 @@ export declare function getAppProfileFlagDefs(): FlagDef[];
19
19
  export declare function collectAppProfileOverrides(getFlagValue: (name: string) => string): Record<string, any>;
20
20
  export declare function buildAppProfileListFields(profile: Record<string, any>): Record<string, unknown>;
21
21
  export declare function buildAppDoctorFields(profile: Record<string, any>, effective: {
22
+ region: string;
22
23
  env: string;
23
24
  apiDir: string;
24
25
  cookie?: string;
25
26
  accessKey?: string;
26
27
  }): {
28
+ region: {
29
+ value: string;
30
+ source: "app" | "inherit";
31
+ };
27
32
  env: {
28
33
  value: string;
29
34
  source: "app" | "inherit";
@@ -49,4 +54,14 @@ export declare function buildCanonicalProjectConfig(base: Record<string, unknown
49
54
  env?: string;
50
55
  metadata?: ConfigMetadataFields;
51
56
  }): Record<string, any>;
57
+ /**
58
+ * Return the public on-disk configuration without persisting the default
59
+ * internal routing mode. Historical files remain readable; every CLI write
60
+ * converges them to the minimal representation.
61
+ *
62
+ * When a non-default top-level value coexists with an explicit default app
63
+ * override, move the inherited value into the other profiles first. This
64
+ * preserves effective routing while still removing every default marker.
65
+ */
66
+ export declare function normalizeConfigForWrite(input: Record<string, any>): Record<string, any>;
52
67
  export declare function normalizeLocale(value: string): "zh-CN" | "en-US" | null;
@@ -1 +1 @@
1
- const a229_0x10c975=a229_0x5535;(function(_0xe3655d,_0x141c3c){const _0x4f089d=a229_0x5535,_0x141a5a=_0xe3655d();while(!![]){try{const _0x47345c=-parseInt(_0x4f089d(0x168))/0x1*(-parseInt(_0x4f089d(0x173))/0x2)+parseInt(_0x4f089d(0x183))/0x3*(parseInt(_0x4f089d(0x179))/0x4)+-parseInt(_0x4f089d(0x191))/0x5*(-parseInt(_0x4f089d(0x169))/0x6)+-parseInt(_0x4f089d(0x19b))/0x7+parseInt(_0x4f089d(0x166))/0x8*(-parseInt(_0x4f089d(0x16b))/0x9)+parseInt(_0x4f089d(0x19e))/0xa+-parseInt(_0x4f089d(0x18c))/0xb;if(_0x47345c===_0x141c3c)break;else _0x141a5a['push'](_0x141a5a['shift']());}catch(_0x208c1f){_0x141a5a['push'](_0x141a5a['shift']());}}}(a229_0x5ea0,0x482cb));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=['cookie','accessKey',a229_0x10c975(0x194),a229_0x10c975(0x199),'riskLevel',a229_0x10c975(0x167),a229_0x10c975(0x195),a229_0x10c975(0x188),a229_0x10c975(0x178),'runtimeDomain',a229_0x10c975(0x17c),'kbDomain',a229_0x10c975(0x185),'localDomain',a229_0x10c975(0x176)];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode',a229_0x10c975(0x19c),a229_0x10c975(0x194),a229_0x10c975(0x199),a229_0x10c975(0x17b),a229_0x10c975(0x198),a229_0x10c975(0x187),a229_0x10c975(0x167),a229_0x10c975(0x188),a229_0x10c975(0x178),a229_0x10c975(0x16a),'skillDomain',a229_0x10c975(0x177),a229_0x10c975(0x185),a229_0x10c975(0x16c),a229_0x10c975(0x176)]);function a229_0x5ea0(){const _0x2f82fa=['defaultApp','object','inherit','Target\x20environment','2LqEzKS','zh-CN','API\x20directory\x20path','certificateDomain','kbDomain','apiDomain','928684iMCbAo','app','cookie','skillDomain','has','apps','number','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','appcode','en-US','3xEJDDJ','entries','appDomain','Auth\x20cookie','apiDir','userDomain','length','string','filter','4239279QKQqPb','keys','Access\x20key','Config\x20key\x20(','toLowerCase','13655XWAHWm','join','riskLevel','locale','routing','trim','Risk\x20level','accessKey','format','Default\x20page\x20size','1089837RLkyhP','env','map','3696490DYTaFl','2892872rCDMAS','region','205963KGMWly','858vpRmfy','runtimeDomain','9alZjaT','localDomain','defaultFormat','pageSize'];a229_0x5ea0=function(){return _0x2f82fa;};return a229_0x5ea0();}export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x1ea405){const _0x357957=a229_0x10c975;return[..._0x1ea405][_0x357957(0x192)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}function a229_0x5535(_0x2e8815,_0x488040){_0x2e8815=_0x2e8815-0x166;const _0x5ea0bb=a229_0x5ea0();let _0x55359a=_0x5ea0bb[_0x2e8815];return _0x55359a;}export function isTopLevelConfigKey(_0x33dfbb){const _0x3fbdc0=a229_0x10c975;return TOP_LEVEL_CONFIG_KEYS[_0x3fbdc0(0x17d)](_0x33dfbb);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x302180=a229_0x10c975;return _0x302180(0x18f)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a229_0x10c975(0x19c),'apiDir':'apiDir','cookie':a229_0x10c975(0x17b),'accessKey':'accessKey','defaultFormat':'format','pageSize':a229_0x10c975(0x16e),'riskLevel':a229_0x10c975(0x193),'locale':a229_0x10c975(0x194)};export function getAppProfileFlagDefs(){const _0x447bda=a229_0x10c975;return[{'name':'env','type':_0x447bda(0x18a),'description':_0x447bda(0x172),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x447bda(0x187),'type':_0x447bda(0x18a),'description':_0x447bda(0x175)},{'name':_0x447bda(0x17b),'type':'string','description':_0x447bda(0x186),'hidden':!![]},{'name':_0x447bda(0x198),'type':_0x447bda(0x18a),'description':_0x447bda(0x18e),'hidden':!![]},{'name':_0x447bda(0x16d),'type':_0x447bda(0x18a),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':_0x447bda(0x17f),'description':_0x447bda(0x19a)},{'name':'riskLevel','type':_0x447bda(0x18a),'description':_0x447bda(0x197),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x447bda(0x18a),'description':_0x447bda(0x180)}];}export function collectAppProfileOverrides(_0x2a2255){const _0x474434=a229_0x10c975,_0x17773a={};for(const [_0x4f5a43,_0x459abe]of Object[_0x474434(0x184)](APP_PROFILE_FLAG_KEY_MAP)){const _0x51de24=_0x2a2255(_0x4f5a43);if(!_0x51de24)continue;_0x17773a[_0x459abe]=_0x459abe===_0x474434(0x16e)?Number(_0x51de24):_0x51de24;}return _0x17773a;}export function buildAppProfileListFields(_0x4ee517){const _0x36133=a229_0x10c975;return{'env':_0x4ee517[_0x36133(0x19c)]??null,'apiDir':_0x4ee517[_0x36133(0x187)]??null,'hasCookie':!!_0x4ee517[_0x36133(0x17b)],'hasAccessKey':!!_0x4ee517['accessKey'],'format':_0x4ee517['format']??null,'pageSize':_0x4ee517['pageSize']??null,'riskLevel':_0x4ee517[_0x36133(0x193)]??null,'locale':_0x4ee517['locale']??null};}export function buildAppDoctorFields(_0x31c798,_0x248527){const _0x4c9db5=a229_0x10c975;return{'env':{'value':_0x31c798[_0x4c9db5(0x19c)]||_0x248527[_0x4c9db5(0x19c)],'source':_0x31c798[_0x4c9db5(0x19c)]?_0x4c9db5(0x17a):_0x4c9db5(0x171)},'apiDir':{'value':_0x31c798[_0x4c9db5(0x187)]||_0x248527['apiDir'],'source':_0x31c798[_0x4c9db5(0x187)]?_0x4c9db5(0x17a):'inherit'},'cookie':{'value':_0x31c798[_0x4c9db5(0x17b)]||_0x248527[_0x4c9db5(0x17b)],'source':_0x31c798[_0x4c9db5(0x17b)]?_0x4c9db5(0x17a):'inherit'},'accessKey':{'value':_0x31c798[_0x4c9db5(0x198)]||_0x248527['accessKey'],'source':_0x31c798[_0x4c9db5(0x198)]?_0x4c9db5(0x17a):_0x4c9db5(0x171)}};}export function buildCanonicalAppConfig(_0x19768e,_0x35ef88){const _0x60d905=a229_0x10c975,_0x404923=_0x19768e[_0x60d905(0x19d)](_0x4de79e=>String(_0x4de79e||'')[_0x60d905(0x196)]())[_0x60d905(0x18b)](Boolean);if(_0x404923[_0x60d905(0x189)]===0x0)return{};const _0x130ac3={};for(const _0x3cdd55 of _0x404923){_0x130ac3[_0x3cdd55]=_0x35ef88?{'appcode':_0x3cdd55,'env':_0x35ef88}:{'appcode':_0x3cdd55};}return _0x404923[_0x60d905(0x189)]>0x1?{'apps':_0x130ac3,'defaultApp':_0x404923[0x0]}:{'apps':_0x130ac3};}export function normalizeStoredDefaultApp(_0x213ff3,_0x376c21){const _0x11136a=a229_0x10c975,_0x364bcd=_0x213ff3[_0x11136a(0x17e)]&&typeof _0x213ff3[_0x11136a(0x17e)]===_0x11136a(0x170)?_0x213ff3[_0x11136a(0x17e)]:{},_0x5caa17=Object['keys'](_0x364bcd);if(_0x5caa17[_0x11136a(0x189)]<=0x1)return delete _0x213ff3[_0x11136a(0x16f)],undefined;const _0x305f58=typeof _0x213ff3[_0x11136a(0x16f)]===_0x11136a(0x18a)&&_0x364bcd[_0x213ff3['defaultApp']]?_0x213ff3[_0x11136a(0x16f)]:undefined,_0x5fb24d=_0x376c21&&_0x364bcd[_0x376c21]?_0x376c21:_0x305f58;if(_0x5fb24d)return _0x213ff3[_0x11136a(0x16f)]=_0x5fb24d,_0x5fb24d;return delete _0x213ff3[_0x11136a(0x16f)],undefined;}export function buildCanonicalProjectConfig(_0x2832e6,_0x2b9981){const _0x4431b8=a229_0x10c975,{appCodes:appCodes=[],env:_0x3e0da4,metadata:_0x879b5e}=_0x2b9981,_0x3f2212={..._0x2832e6,..._0x879b5e||{}};delete _0x3f2212[_0x4431b8(0x181)],delete _0x3f2212[_0x4431b8(0x17a)];if(_0x3e0da4)_0x3f2212[_0x4431b8(0x19c)]=_0x3e0da4;else!_0x3f2212['env']&&(_0x3f2212[_0x4431b8(0x19c)]=DEFAULT_CONFIG_VALUES[_0x4431b8(0x19c)]);const _0x49e21a=buildCanonicalAppConfig(appCodes,_0x3f2212[_0x4431b8(0x19c)]);if(Object[_0x4431b8(0x18d)](_0x49e21a)[_0x4431b8(0x189)]>0x0){_0x3f2212[_0x4431b8(0x17e)]=_0x49e21a['apps'];if(_0x49e21a[_0x4431b8(0x16f)])_0x3f2212[_0x4431b8(0x16f)]=_0x49e21a[_0x4431b8(0x16f)];else delete _0x3f2212['defaultApp'];}return _0x3f2212;}const LOCALE_MAP={'zh':a229_0x10c975(0x174),'zh-cn':a229_0x10c975(0x174),'zh_cn':a229_0x10c975(0x174),'en':a229_0x10c975(0x182),'en-us':a229_0x10c975(0x182),'en_us':'en-US'};export function normalizeLocale(_0x563a8c){const _0x533d75=a229_0x10c975;if(!_0x563a8c)return null;return LOCALE_MAP[_0x563a8c[_0x533d75(0x190)]()]??null;}
1
+ const a230_0xa77104=a230_0x4ff9;(function(_0x4c83f2,_0xd2be60){const _0x3795bf=a230_0x4ff9,_0x2a46a7=_0x4c83f2();while(!![]){try{const _0x309952=parseInt(_0x3795bf(0x1bf))/0x1+parseInt(_0x3795bf(0x1b3))/0x2+parseInt(_0x3795bf(0x1bd))/0x3+-parseInt(_0x3795bf(0x1a0))/0x4+parseInt(_0x3795bf(0x1ba))/0x5+-parseInt(_0x3795bf(0x190))/0x6+-parseInt(_0x3795bf(0x1c4))/0x7;if(_0x309952===_0xd2be60)break;else _0x2a46a7['push'](_0x2a46a7['shift']());}catch(_0xb8a6a2){_0x2a46a7['push'](_0x2a46a7['shift']());}}}(a230_0x1c90,0xbef5c));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,isProduction,RABETBASE_ENV_VALUES}from'../constant/env.js';function a230_0x1c90(){const _0x2b83e6=['number','en-US','867020rtPaxl','pageSize','Target\x20environment','8434830OUUUSo','kbDomain','string','env','riskLevel','join','cookie','entries','some','inherit','toLowerCase','trim','app','isArray','object','certificateDomain','2925468EMTPVW','defaultApp','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','Auth\x20cookie','zh-CN','appDomain','accessKey','length','region','userDomain','format','map','API\x20directory\x20path','Config\x20key\x20(','Risk\x20level','apps','skillDomain','keys','Access\x20key','1167828Mynlqq','runtimeDomain','values','apiDomain','filter','Default\x20page\x20size','localDomain','6570745VMIddl','has','defaultFormat','2817321EekmXr','apiDir','206034SfJqKw','fromEntries','locale'];a230_0x1c90=function(){return _0x2b83e6;};return a230_0x1c90();}import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=['cookie',a230_0xa77104(0x1a6),a230_0xa77104(0x1c1),a230_0xa77104(0x1aa),'riskLevel',a230_0xa77104(0x1a8),'routing',a230_0xa77104(0x1a9),'apiDomain',a230_0xa77104(0x1b4),a230_0xa77104(0x1b0),'kbDomain','appDomain',a230_0xa77104(0x1b9),a230_0xa77104(0x19f)];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode','env',a230_0xa77104(0x1c1),a230_0xa77104(0x1aa),'cookie',a230_0xa77104(0x1a6),a230_0xa77104(0x1be),'region','userDomain',a230_0xa77104(0x1b6),a230_0xa77104(0x1b4),a230_0xa77104(0x1b0),a230_0xa77104(0x191),a230_0xa77104(0x1a5),a230_0xa77104(0x1b9),a230_0xa77104(0x19f)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x25f9f6){const _0x498d24=a230_0xa77104;return[..._0x25f9f6][_0x498d24(0x195)](',\x20');}function a230_0x4ff9(_0x3dc027,_0x2fbadb){_0x3dc027=_0x3dc027-0x18e;const _0x1c908d=a230_0x1c90();let _0x4ff954=_0x1c908d[_0x3dc027];return _0x4ff954;}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x276069){const _0x6fe5be=a230_0xa77104;return TOP_LEVEL_CONFIG_KEYS[_0x6fe5be(0x1bb)](_0x276069);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x1faac2=a230_0xa77104;return _0x1faac2(0x1ad)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'region':'region','env':a230_0xa77104(0x193),'apiDir':a230_0xa77104(0x1be),'cookie':a230_0xa77104(0x196),'accessKey':'accessKey','defaultFormat':'format','pageSize':a230_0xa77104(0x18e),'riskLevel':a230_0xa77104(0x194),'locale':a230_0xa77104(0x1c1)};export function getAppProfileFlagDefs(){const _0x33769c=a230_0xa77104;return[{'name':_0x33769c(0x1a8),'type':_0x33769c(0x192),'description':'Country/region\x20for\x20this\x20app\x20profile','enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':'env','type':_0x33769c(0x192),'description':_0x33769c(0x18f),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x33769c(0x1be),'type':_0x33769c(0x192),'description':_0x33769c(0x1ac)},{'name':'cookie','type':'string','description':_0x33769c(0x1a3),'hidden':!![]},{'name':_0x33769c(0x1a6),'type':'string','description':_0x33769c(0x1b2),'hidden':!![]},{'name':_0x33769c(0x1bc),'type':_0x33769c(0x192),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x33769c(0x18e),'type':_0x33769c(0x1c2),'description':_0x33769c(0x1b8)},{'name':_0x33769c(0x194),'type':_0x33769c(0x192),'description':_0x33769c(0x1ae),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x33769c(0x192),'description':_0x33769c(0x1a2)}];}export function collectAppProfileOverrides(_0x1536b0){const _0x44aae8=a230_0xa77104,_0x8cfa19={};for(const [_0x37e8b1,_0x4412e4]of Object[_0x44aae8(0x197)](APP_PROFILE_FLAG_KEY_MAP)){const _0x3e4756=_0x1536b0(_0x37e8b1);if(!_0x3e4756)continue;_0x8cfa19[_0x4412e4]=_0x4412e4==='pageSize'?Number(_0x3e4756):_0x3e4756;}return _0x8cfa19;}export function buildAppProfileListFields(_0x53278d){const _0x317944=a230_0xa77104;return{'region':_0x53278d[_0x317944(0x1a8)]??null,'env':_0x53278d['env']??null,'apiDir':_0x53278d[_0x317944(0x1be)]??null,'hasCookie':!!_0x53278d['cookie'],'hasAccessKey':!!_0x53278d[_0x317944(0x1a6)],'format':_0x53278d[_0x317944(0x1aa)]??null,'pageSize':_0x53278d['pageSize']??null,'riskLevel':_0x53278d[_0x317944(0x194)]??null,'locale':_0x53278d[_0x317944(0x1c1)]??null};}export function buildAppDoctorFields(_0x40442e,_0x209e8f){const _0x5a873d=a230_0xa77104;return{'region':{'value':_0x40442e[_0x5a873d(0x1a8)]||_0x209e8f[_0x5a873d(0x1a8)],'source':_0x40442e[_0x5a873d(0x1a8)]?'app':_0x5a873d(0x199)},'env':{'value':_0x40442e[_0x5a873d(0x193)]||_0x209e8f[_0x5a873d(0x193)],'source':_0x40442e[_0x5a873d(0x193)]?_0x5a873d(0x19c):_0x5a873d(0x199)},'apiDir':{'value':_0x40442e['apiDir']||_0x209e8f[_0x5a873d(0x1be)],'source':_0x40442e[_0x5a873d(0x1be)]?_0x5a873d(0x19c):_0x5a873d(0x199)},'cookie':{'value':_0x40442e[_0x5a873d(0x196)]||_0x209e8f[_0x5a873d(0x196)],'source':_0x40442e[_0x5a873d(0x196)]?_0x5a873d(0x19c):_0x5a873d(0x199)},'accessKey':{'value':_0x40442e[_0x5a873d(0x1a6)]||_0x209e8f[_0x5a873d(0x1a6)],'source':_0x40442e[_0x5a873d(0x1a6)]?_0x5a873d(0x19c):_0x5a873d(0x199)}};}export function buildCanonicalAppConfig(_0x421625,_0x59e579){const _0xb0df4a=a230_0xa77104,_0x2c7559=_0x421625['map'](_0x28a78f=>String(_0x28a78f||'')[_0xb0df4a(0x19b)]())[_0xb0df4a(0x1b7)](Boolean);if(_0x2c7559[_0xb0df4a(0x1a7)]===0x0)return{};const _0x4bc7d3={};for(const _0xae9f3 of _0x2c7559){_0x4bc7d3[_0xae9f3]=_0x59e579&&!isProduction(_0x59e579)?{'appcode':_0xae9f3,'env':_0x59e579}:{'appcode':_0xae9f3};}return _0x2c7559[_0xb0df4a(0x1a7)]>0x1?{'apps':_0x4bc7d3,'defaultApp':_0x2c7559[0x0]}:{'apps':_0x4bc7d3};}export function normalizeStoredDefaultApp(_0x1ceee3,_0x26d3c0){const _0x2bb82e=a230_0xa77104,_0x11af60=_0x1ceee3[_0x2bb82e(0x1af)]&&typeof _0x1ceee3[_0x2bb82e(0x1af)]===_0x2bb82e(0x19e)?_0x1ceee3[_0x2bb82e(0x1af)]:{},_0x446d9d=Object[_0x2bb82e(0x1b1)](_0x11af60);if(_0x446d9d['length']<=0x1)return delete _0x1ceee3[_0x2bb82e(0x1a1)],undefined;const _0xcc543c=typeof _0x1ceee3['defaultApp']===_0x2bb82e(0x192)&&_0x11af60[_0x1ceee3[_0x2bb82e(0x1a1)]]?_0x1ceee3[_0x2bb82e(0x1a1)]:undefined,_0x4948d8=_0x26d3c0&&_0x11af60[_0x26d3c0]?_0x26d3c0:_0xcc543c;if(_0x4948d8)return _0x1ceee3[_0x2bb82e(0x1a1)]=_0x4948d8,_0x4948d8;return delete _0x1ceee3[_0x2bb82e(0x1a1)],undefined;}export function buildCanonicalProjectConfig(_0x5e5e1d,_0x397eec){const _0x5b4687=a230_0xa77104,{appCodes:appCodes=[],env:_0x5734c2,metadata:_0x18963f}=_0x397eec,_0xba0724={..._0x5e5e1d,..._0x18963f||{}};delete _0xba0724['appcode'],delete _0xba0724['app'];const _0x189f8d=_0x5734c2||(typeof _0xba0724[_0x5b4687(0x193)]===_0x5b4687(0x192)?_0xba0724[_0x5b4687(0x193)]:'')||DEFAULT_CONFIG_VALUES['env'];if(isProduction(_0x189f8d))delete _0xba0724[_0x5b4687(0x193)];else _0xba0724['env']=_0x189f8d;const _0x2ea018=buildCanonicalAppConfig(appCodes,_0x189f8d);if(Object[_0x5b4687(0x1b1)](_0x2ea018)['length']>0x0){_0xba0724['apps']=_0x2ea018[_0x5b4687(0x1af)];if(_0x2ea018['defaultApp'])_0xba0724[_0x5b4687(0x1a1)]=_0x2ea018['defaultApp'];else delete _0xba0724['defaultApp'];}return normalizeConfigForWrite(_0xba0724);}function isRecord(_0x185de6){const _0xce06a9=a230_0xa77104;return!!_0x185de6&&typeof _0x185de6===_0xce06a9(0x19e)&&!Array[_0xce06a9(0x19d)](_0x185de6);}export function normalizeConfigForWrite(_0x55e1ac){const _0xfd7fe0=a230_0xa77104,_0x34e03d={..._0x55e1ac},_0xe95c70=isRecord(_0x55e1ac[_0xfd7fe0(0x1af)])?_0x55e1ac['apps']:undefined,_0x421f14=_0xe95c70?Object[_0xfd7fe0(0x1c0)](Object['entries'](_0xe95c70)[_0xfd7fe0(0x1ab)](([_0x1f4a83,_0x1dc2be])=>[_0x1f4a83,isRecord(_0x1dc2be)?{..._0x1dc2be}:_0x1dc2be])):undefined;if(_0x421f14){const _0x552a50=typeof _0x34e03d[_0xfd7fe0(0x193)]===_0xfd7fe0(0x192)?_0x34e03d[_0xfd7fe0(0x193)]:undefined,_0x34f05c=Object[_0xfd7fe0(0x1b5)](_0x421f14)[_0xfd7fe0(0x198)](_0x3478fb=>isRecord(_0x3478fb)&&typeof _0x3478fb[_0xfd7fe0(0x193)]===_0xfd7fe0(0x192)&&isProduction(_0x3478fb[_0xfd7fe0(0x193)]));if(_0x552a50&&isDaily(_0x552a50)&&_0x34f05c){for(const _0x468e0f of Object[_0xfd7fe0(0x1b5)](_0x421f14)){if(!isRecord(_0x468e0f))continue;if(_0x468e0f[_0xfd7fe0(0x193)]===undefined)_0x468e0f[_0xfd7fe0(0x193)]=_0x552a50;}delete _0x34e03d['env'];}for(const _0x33bbfb of Object[_0xfd7fe0(0x1b5)](_0x421f14)){isRecord(_0x33bbfb)&&typeof _0x33bbfb[_0xfd7fe0(0x193)]==='string'&&isProduction(_0x33bbfb[_0xfd7fe0(0x193)])&&delete _0x33bbfb[_0xfd7fe0(0x193)];}_0x34e03d[_0xfd7fe0(0x1af)]=_0x421f14;}return typeof _0x34e03d[_0xfd7fe0(0x193)]===_0xfd7fe0(0x192)&&isProduction(_0x34e03d[_0xfd7fe0(0x193)])&&delete _0x34e03d['env'],_0x34e03d;}const LOCALE_MAP={'zh':a230_0xa77104(0x1a4),'zh-cn':a230_0xa77104(0x1a4),'zh_cn':a230_0xa77104(0x1a4),'en':'en-US','en-us':a230_0xa77104(0x1c3),'en_us':a230_0xa77104(0x1c3)};export function normalizeLocale(_0x235ecc){const _0x5902d9=a230_0xa77104;if(!_0x235ecc)return null;return LOCALE_MAP[_0x235ecc[_0x5902d9(0x19a)]()]??null;}
@@ -1 +1 @@
1
- const a230_0x38825e=a230_0x18af;function a230_0x18af(_0x26090c,_0x21ffea){_0x26090c=_0x26090c-0x138;const _0x5ab3ce=a230_0x5ab3();let _0x18af03=_0x5ab3ce[_0x26090c];return _0x18af03;}(function(_0x131f74,_0x1302b5){const _0x10c495=a230_0x18af,_0x791791=_0x131f74();while(!![]){try{const _0x5a6677=parseInt(_0x10c495(0x138))/0x1+parseInt(_0x10c495(0x13e))/0x2*(-parseInt(_0x10c495(0x139))/0x3)+-parseInt(_0x10c495(0x13a))/0x4*(parseInt(_0x10c495(0x142))/0x5)+parseInt(_0x10c495(0x140))/0x6+-parseInt(_0x10c495(0x13f))/0x7+parseInt(_0x10c495(0x13d))/0x8*(parseInt(_0x10c495(0x141))/0x9)+-parseInt(_0x10c495(0x13c))/0xa;if(_0x5a6677===_0x1302b5)break;else _0x791791['push'](_0x791791['shift']());}catch(_0x2e8dc4){_0x791791['push'](_0x791791['shift']());}}}(a230_0x5ab3,0x50778));export const RABETBASE_CDN_BASE_URL='https://g.lovrabet.com/dist/rabetbase-cli';function a230_0x5ab3(){const _0x58b6ad=['91527mrvdOf','12YahqgM','/config/index.json','8273450pNMJGa','8RmKyql','2bpKNEj','429177mGcYIE','1701822ZxzpWC','5061861RSCldn','301050LjnodB','583321juLTXB'];a230_0x5ab3=function(){return _0x58b6ad;};return a230_0x5ab3();}export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a230_0x38825e(0x13b);export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+'/templates/projects';
1
+ const a231_0x242356=a231_0x254b;function a231_0x254b(_0x2ce6a9,_0x410b0c){_0x2ce6a9=_0x2ce6a9-0x6d;const _0x17e7ec=a231_0x17e7();let _0x254be8=_0x17e7ec[_0x2ce6a9];return _0x254be8;}function a231_0x17e7(){const _0x1fac67=['19540kjUymr','1OlehoX','102zwrcFy','30926HvneVd','3660428IWkYvX','2195457jrwyyW','/templates/projects','3088owzSZg','47739288wEJXCG','152270YbKdtk','36zeGkqo','3TELRQU','1434234nTwwPt'];a231_0x17e7=function(){return _0x1fac67;};return a231_0x17e7();}(function(_0x1c0f7f,_0x3485d7){const _0x399abb=a231_0x254b,_0x42dda9=_0x1c0f7f();while(!![]){try{const _0x3eb204=-parseInt(_0x399abb(0x6f))/0x1*(parseInt(_0x399abb(0x6d))/0x2)+parseInt(_0x399abb(0x79))/0x3*(-parseInt(_0x399abb(0x72))/0x4)+-parseInt(_0x399abb(0x6e))/0x5*(-parseInt(_0x399abb(0x70))/0x6)+parseInt(_0x399abb(0x71))/0x7*(-parseInt(_0x399abb(0x75))/0x8)+parseInt(_0x399abb(0x78))/0x9*(parseInt(_0x399abb(0x77))/0xa)+parseInt(_0x399abb(0x73))/0xb+parseInt(_0x399abb(0x76))/0xc;if(_0x3eb204===_0x3485d7)break;else _0x42dda9['push'](_0x42dda9['shift']());}catch(_0x1a8b96){_0x42dda9['push'](_0x42dda9['shift']());}}}(a231_0x17e7,0xec3d1));export const RABETBASE_CDN_BASE_URL='https://g.lovrabet.com/dist/rabetbase-cli';export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+'/config/index.json';export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+a231_0x242356(0x74);
@@ -1 +1 @@
1
- const a231_0xa710e9=a231_0x1820;(function(_0x2ad82a,_0x461bc0){const _0x3efc2d=a231_0x1820,_0xcc4f24=_0x2ad82a();while(!![]){try{const _0x3cebf9=-parseInt(_0x3efc2d(0x1eb))/0x1+-parseInt(_0x3efc2d(0x208))/0x2*(-parseInt(_0x3efc2d(0x24c))/0x3)+-parseInt(_0x3efc2d(0x1ef))/0x4+parseInt(_0x3efc2d(0x23d))/0x5+parseInt(_0x3efc2d(0x25b))/0x6+-parseInt(_0x3efc2d(0x26b))/0x7*(-parseInt(_0x3efc2d(0x1fd))/0x8)+parseInt(_0x3efc2d(0x201))/0x9;if(_0x3cebf9===_0x461bc0)break;else _0xcc4f24['push'](_0xcc4f24['shift']());}catch(_0x410592){_0xcc4f24['push'](_0xcc4f24['shift']());}}}(a231_0x40cc,0x4f293));function a231_0x1820(_0x3717ec,_0x3a87f7){_0x3717ec=_0x3717ec-0x1e2;const _0x40cc71=a231_0x40cc();let _0x18202f=_0x40cc71[_0x3717ec];return _0x18202f;}export const CLI_BIN_NAME=a231_0xa710e9(0x22a);export const CLI_DISPLAY_NAME=a231_0xa710e9(0x22c);function a231_0x40cc(){const _0x2745ac=['JSON\x20params','string','name','Function\x20node','expected-count','Name','env','Override\x20appcode','keyword','sqlName','query','fromEnv','Watch\x20mode','Type\x20filter','sqlname','10330OiaDpi','confirm','dryRun','reveal','Read\x20value\x20from\x20environment\x20variable','expectedCount','Search\x20query','project','skipImports','type','Preview\x20operation\x20without\x20executing','sqlcode','watch','Output\x20format','@lovrabet/rabetbase-cli','6AWgkLc','Description\x20file','Page\x20number','expect-path','Skip\x20import\x20generation','Expected\x20current\x20menu\x20path','non-interactive','locale','force','SQL\x20code','taskId','target','Config\x20value','Dataset\x20code','title','3661158ZJlgsx','topk','function-node','yes','params','nonInteractive','map','Expected\x20affected\x20count','Expected\x20current\x20child\x20count','boolean','operationType','sql-name','format','Comma-separated\x20menu\x20IDs','sort','Use\x20project\x20config\x20scope','1083467REUpKY','tags','key','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','Target\x20path','appcode','pagesize','Alias\x20for\x20--non-interactive','Asynchronous\x20task\x20ID','Reveal\x20sensitive\x20value','app','307541wXrsuC','Menu\x20label','Confirm\x20destructive\x20action','parentId','2441692cdUpAP','Menu\x20sort\x20value','help','dry-run','Expected\x20current\x20parent\x20menu\x20id','Keyword\x20filter','Clear','Config\x20key','<code>','code','DB\x20ID','Force\x20overwrite','dbid','menuIds','8jkdvib','production\x20|\x20daily','Verbose\x20output','Use\x20remote','2903301ZBAZBO','description-file','Force\x20non-interactive\x20mode\x20(CI)','Select\x20app\x20profile\x20by\x20name','page','Operation\x20type','<expr>','152578TGTVNa','clear','file','operation','enableBffSave','sql','Show\x20help','Read\x20value\x20from\x20stdin','<name>','descriptionFile','label','Comma-separated\x20metadata\x20codes','fromEntries','Schemas','description','json\x20|\x20pretty\x20|\x20compress','Record\x20ID','operation-type','Code\x20filter','schemas','Environment','value','output','remote','expectedChildrenCount','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','functionNode','expected-children-count','Apply\x20to\x20all','Maximum\x20search\x20hits','expectParentId','SQL\x20string','verbose','all','rabetbase','datasetcode','Rabetbase\x20CLI','stdin'];a231_0x40cc=function(){return _0x2745ac;};return a231_0x40cc();}export const NPM_PACKAGE_NAME=a231_0xa710e9(0x24b);export const GLOBAL_FLAGS=[{'name':a231_0xa710e9(0x1e5),'meowKey':a231_0xa710e9(0x1e5),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x235),'hint':a231_0xa710e9(0x1f7)},{'name':a231_0xa710e9(0x1ea),'meowKey':a231_0xa710e9(0x1ea),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x204),'hint':a231_0xa710e9(0x210)},{'name':a231_0xa710e9(0x234),'meowKey':a231_0xa710e9(0x234),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x21c),'hint':a231_0xa710e9(0x1fe)},{'name':'format','meowKey':a231_0xa710e9(0x267),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x24a),'hint':a231_0xa710e9(0x217)},{'name':'jq','meowKey':'jq','type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x221),'hint':a231_0xa710e9(0x207)},{'name':'dry-run','meowKey':a231_0xa710e9(0x23f),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x247)},{'name':a231_0xa710e9(0x25e),'meowKey':a231_0xa710e9(0x25e),'type':a231_0xa710e9(0x264),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':'non-interactive','meowKey':a231_0xa710e9(0x260),'type':'boolean','description':a231_0xa710e9(0x203)},{'name':'global','meowKey':'global','type':a231_0xa710e9(0x264),'description':'Use\x20global\x20config\x20scope'},{'name':a231_0xa710e9(0x244),'meowKey':'project','type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x26a)},{'name':'ci','meowKey':'ci','type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x1e7),'hidden':!![]},{'name':a231_0xa710e9(0x1f1),'meowKey':'help','type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x20e)},{'name':'locale','meowKey':a231_0xa710e9(0x253),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x1e3),'hidden':!![],'hint':'zh-CN\x20|\x20en-US'},{'name':a231_0xa710e9(0x230),'meowKey':a231_0xa710e9(0x230),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x233),'hidden':!![]},{'name':'title','meowKey':a231_0xa710e9(0x25a),'type':a231_0xa710e9(0x22f),'description':'Title','hidden':!![]},{'name':a231_0xa710e9(0x238),'meowKey':a231_0xa710e9(0x238),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x243),'hidden':!![]},{'name':a231_0xa710e9(0x25c),'meowKey':'topk','type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x225),'hidden':!![]},{'name':a231_0xa710e9(0x209),'meowKey':a231_0xa710e9(0x209),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x1f5),'hidden':!![]},{'name':a231_0xa710e9(0x249),'meowKey':a231_0xa710e9(0x249),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x23a),'hidden':!![]},{'name':a231_0xa710e9(0x21e),'meowKey':a231_0xa710e9(0x21e),'type':a231_0xa710e9(0x22f),'description':'Output\x20path','hidden':!![]},{'name':a231_0xa710e9(0x25f),'meowKey':'params','type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x22e),'hidden':!![]},{'name':a231_0xa710e9(0x22b),'meowKey':a231_0xa710e9(0x22b),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x259),'hidden':!![]},{'name':a231_0xa710e9(0x229),'meowKey':a231_0xa710e9(0x229),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x224),'hidden':!![]},{'name':'enable-bff-save','meowKey':a231_0xa710e9(0x20c),'type':a231_0xa710e9(0x264),'description':'Enable\x20Backend\x20Function\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x218),'hidden':!![]},{'name':a231_0xa710e9(0x246),'meowKey':a231_0xa710e9(0x246),'type':'string','description':a231_0xa710e9(0x23b),'hidden':!![]},{'name':a231_0xa710e9(0x20a),'meowKey':'file','type':'string','description':'File\x20path','hidden':!![]},{'name':a231_0xa710e9(0x248),'meowKey':a231_0xa710e9(0x248),'type':'string','description':a231_0xa710e9(0x255),'hidden':!![]},{'name':a231_0xa710e9(0x266),'meowKey':a231_0xa710e9(0x237),'type':a231_0xa710e9(0x22f),'description':'SQL\x20name','hidden':!![]},{'name':a231_0xa710e9(0x23c),'meowKey':a231_0xa710e9(0x23c),'type':a231_0xa710e9(0x22f),'description':'SQL\x20name','hidden':!![]},{'name':'db-id','meowKey':'dbId','type':'string','description':a231_0xa710e9(0x1f9),'hidden':!![]},{'name':a231_0xa710e9(0x1fb),'meowKey':a231_0xa710e9(0x1fb),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x1f9),'hidden':!![]},{'name':a231_0xa710e9(0x216),'meowKey':'description','type':'string','description':'Description','hidden':!![]},{'name':a231_0xa710e9(0x202),'meowKey':a231_0xa710e9(0x211),'type':'string','description':a231_0xa710e9(0x24d),'hidden':!![]},{'name':a231_0xa710e9(0x205),'meowKey':'page','type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x24e),'hidden':!![]},{'name':a231_0xa710e9(0x1e6),'meowKey':a231_0xa710e9(0x1e6),'type':a231_0xa710e9(0x22f),'description':'Page\x20size','hidden':!![]},{'name':'keyword','meowKey':a231_0xa710e9(0x236),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x1f4),'hidden':!![]},{'name':a231_0xa710e9(0x1f8),'meowKey':a231_0xa710e9(0x1f8),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x21a),'hidden':!![]},{'name':a231_0xa710e9(0x20d),'meowKey':a231_0xa710e9(0x20d),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x227),'hidden':!![]},{'name':a231_0xa710e9(0x21b),'meowKey':a231_0xa710e9(0x21b),'type':'string','description':a231_0xa710e9(0x215),'hidden':!![]},{'name':a231_0xa710e9(0x20b),'meowKey':'operation','type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x206),'hidden':!![]},{'name':a231_0xa710e9(0x257),'meowKey':a231_0xa710e9(0x257),'type':'string','description':a231_0xa710e9(0x1e4),'hidden':!![]},{'name':'skip-imports','meowKey':a231_0xa710e9(0x245),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x250),'hidden':!![]},{'name':a231_0xa710e9(0x1e2),'meowKey':'key','type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x1f6),'hidden':!![]},{'name':a231_0xa710e9(0x21d),'meowKey':a231_0xa710e9(0x21d),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x258),'hidden':!![]},{'name':a231_0xa710e9(0x26c),'meowKey':a231_0xa710e9(0x26c),'type':a231_0xa710e9(0x22f),'description':'Tags','hidden':!![]},{'name':a231_0xa710e9(0x22d),'meowKey':a231_0xa710e9(0x22d),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x20f),'hidden':!![]},{'name':'from-env','meowKey':a231_0xa710e9(0x239),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x241),'hidden':!![]},{'name':a231_0xa710e9(0x240),'meowKey':a231_0xa710e9(0x240),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x1e9),'hidden':!![]},{'name':a231_0xa710e9(0x254),'meowKey':a231_0xa710e9(0x254),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x1fa),'hidden':!![]},{'name':a231_0xa710e9(0x23e),'meowKey':a231_0xa710e9(0x23e),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x1ed),'hidden':!![]},{'name':a231_0xa710e9(0x21f),'meowKey':a231_0xa710e9(0x21f),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x200),'hidden':!![]},{'name':a231_0xa710e9(0x228),'meowKey':a231_0xa710e9(0x228),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x1ff),'hidden':!![]},{'name':a231_0xa710e9(0x232),'meowKey':a231_0xa710e9(0x242),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x262),'hidden':!![]},{'name':a231_0xa710e9(0x212),'meowKey':a231_0xa710e9(0x212),'type':'string','description':a231_0xa710e9(0x1ec),'hidden':!![]},{'name':'parent-id','meowKey':a231_0xa710e9(0x1ee),'type':'string','description':'Parent\x20menu\x20id','hidden':!![]},{'name':a231_0xa710e9(0x269),'meowKey':a231_0xa710e9(0x269),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x1f0),'hidden':!![]},{'name':'expect-parent-id','meowKey':a231_0xa710e9(0x226),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x1f3),'hidden':!![]},{'name':a231_0xa710e9(0x24f),'meowKey':'expectPath','type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x251),'hidden':!![]},{'name':a231_0xa710e9(0x223),'meowKey':a231_0xa710e9(0x220),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x263),'hidden':!![]},{'name':'menu-ids','meowKey':a231_0xa710e9(0x1fc),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x268),'hidden':!![]},{'name':'task-id','meowKey':a231_0xa710e9(0x256),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x1e8),'hidden':!![]},{'name':a231_0xa710e9(0x219),'meowKey':a231_0xa710e9(0x265),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x206),'hidden':!![]},{'name':a231_0xa710e9(0x25d),'meowKey':a231_0xa710e9(0x222),'type':'string','description':a231_0xa710e9(0x231),'hidden':!![]},{'name':'codes','meowKey':'codes','type':'string','description':a231_0xa710e9(0x213),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a231_0xa710e9(0x1e5),a231_0xa710e9(0x1ea),a231_0xa710e9(0x234),a231_0xa710e9(0x267),'jq',a231_0xa710e9(0x1f2),a231_0xa710e9(0x25e),a231_0xa710e9(0x252),'ci']);export function buildMeowFlags(){const _0x559b23=a231_0xa710e9;return Object[_0x559b23(0x214)](GLOBAL_FLAGS[_0x559b23(0x261)](_0x379c55=>[_0x379c55['meowKey'],{'type':_0x379c55['type']}]));}
1
+ const a232_0x2b9595=a232_0x1de7;(function(_0x117159,_0x1ca3af){const _0x587e8c=a232_0x1de7,_0x430905=_0x117159();while(!![]){try{const _0x1b5a73=parseInt(_0x587e8c(0x10d))/0x1*(parseInt(_0x587e8c(0x103))/0x2)+parseInt(_0x587e8c(0xd5))/0x3+parseInt(_0x587e8c(0xe5))/0x4+-parseInt(_0x587e8c(0xb1))/0x5+parseInt(_0x587e8c(0xcf))/0x6+parseInt(_0x587e8c(0xf1))/0x7+parseInt(_0x587e8c(0xce))/0x8*(-parseInt(_0x587e8c(0x9e))/0x9);if(_0x1b5a73===_0x1ca3af)break;else _0x430905['push'](_0x430905['shift']());}catch(_0x145ac8){_0x430905['push'](_0x430905['shift']());}}}(a232_0x2d7e,0x19a82));export const CLI_BIN_NAME=a232_0x2b9595(0xab);function a232_0x2d7e(){const _0x1ed8b7=['550671cMwRGM','yes','Enable\x20Backend\x20Function\x20save','Force\x20non-interactive\x20mode\x20(CI)','Read\x20value\x20from\x20environment\x20variable','project','Target\x20path','description','type','confirm','Skip\x20confirmation\x20for\x20high-risk\x20writes','datasetcode','Use\x20project\x20config\x20scope','DB\x20ID','Config\x20key','schemas','447824txCGAa','file','boolean','Reveal\x20sensitive\x20value','dryRun','Expected\x20current\x20menu\x20path','operationType','Confirm\x20destructive\x20action','Expected\x20current\x20child\x20count','Force\x20overwrite','params','target','451612evFDln','Expected\x20current\x20parent\x20menu\x20id','key','page','Operation\x20type','skip-imports','enableBffSave','sqlname','menuIds','Search\x20query','Type\x20filter','db-id','operation-type','functionNode','expectParentId','clear','fromEntries','@lovrabet/rabetbase-cli','9782kgrlDr','menu-ids','topk','expectedChildrenCount','tags','expectedCount','Record\x20ID','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','<code>','production\x20|\x20daily','5owCnIe','skipImports','name','env','title','Schemas','remote','string','verbose','<expr>','locale','Verbose\x20output','sqlcode','SQL\x20code','sort','map','help','description-file','operation','from-env','meowKey','code','2453643rupiVH','Use\x20remote','keyword','format','value','Override\x20appcode','Tags','zh-CN\x20|\x20en-US','Keyword\x20filter','Clear','stdin','sqlName','sql-name','rabetbase','Menu\x20sort\x20value','Config\x20value','app','global','SQL\x20name','345825OzQosT','output','dbid','Environment','Skip\x20import\x20generation','appcode','parentId','label','expected-children-count','force','Output\x20format','Description\x20file','Comma-separated\x20menu\x20IDs','pagesize','Use\x20global\x20config\x20scope','Code\x20filter','Menu\x20label','<name>','expected-count','Preview\x20operation\x20without\x20executing','nonInteractive','all','Maximum\x20search\x20hits','Name','Function\x20node','Title','Page\x20number','Apply\x20to\x20all','json\x20|\x20pretty\x20|\x20compress','8pgrQgL','374388CGZGXU','sql','Page\x20size','reveal','Read\x20value\x20from\x20stdin','query'];a232_0x2d7e=function(){return _0x1ed8b7;};return a232_0x2d7e();}export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME=a232_0x2b9595(0x102);export const GLOBAL_FLAGS=[{'name':a232_0x2b9595(0xb6),'meowKey':a232_0x2b9595(0xb6),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xa3),'hint':a232_0x2b9595(0x10b)},{'name':'app','meowKey':'app','type':a232_0x2b9595(0x114),'description':'Select\x20app\x20profile\x20by\x20name','hint':a232_0x2b9595(0xc2)},{'name':a232_0x2b9595(0x110),'meowKey':a232_0x2b9595(0x110),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xb4),'hint':a232_0x2b9595(0x10c)},{'name':a232_0x2b9595(0xa1),'meowKey':'format','type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xbb),'hint':a232_0x2b9595(0xcd)},{'name':'jq','meowKey':'jq','type':a232_0x2b9595(0x114),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a232_0x2b9595(0x116)},{'name':'dry-run','meowKey':a232_0x2b9595(0xe9),'type':a232_0x2b9595(0xe7),'description':a232_0x2b9595(0xc4)},{'name':'yes','meowKey':a232_0x2b9595(0xd6),'type':a232_0x2b9595(0xe7),'description':a232_0x2b9595(0xdf)},{'name':'non-interactive','meowKey':a232_0x2b9595(0xc5),'type':'boolean','description':a232_0x2b9595(0xd8)},{'name':a232_0x2b9595(0xaf),'meowKey':a232_0x2b9595(0xaf),'type':a232_0x2b9595(0xe7),'description':a232_0x2b9595(0xbf)},{'name':a232_0x2b9595(0xda),'meowKey':a232_0x2b9595(0xda),'type':'boolean','description':a232_0x2b9595(0xe1)},{'name':'ci','meowKey':'ci','type':'boolean','description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a232_0x2b9595(0x11d),'meowKey':a232_0x2b9595(0x11d),'type':a232_0x2b9595(0xe7),'description':'Show\x20help'},{'name':a232_0x2b9595(0x117),'meowKey':a232_0x2b9595(0x117),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0x10a),'hidden':!![],'hint':a232_0x2b9595(0xa5)},{'name':'name','meowKey':a232_0x2b9595(0x10f),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xc8),'hidden':!![]},{'name':a232_0x2b9595(0x111),'meowKey':a232_0x2b9595(0x111),'type':'string','description':a232_0x2b9595(0xca),'hidden':!![]},{'name':a232_0x2b9595(0xd4),'meowKey':'query','type':'string','description':a232_0x2b9595(0xfa),'hidden':!![]},{'name':'topk','meowKey':a232_0x2b9595(0x105),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xc7),'hidden':!![]},{'name':'clear','meowKey':a232_0x2b9595(0x100),'type':a232_0x2b9595(0xe7),'description':a232_0x2b9595(0xa7),'hidden':!![]},{'name':'watch','meowKey':'watch','type':'boolean','description':'Watch\x20mode','hidden':!![]},{'name':'output','meowKey':a232_0x2b9595(0xb2),'type':'string','description':'Output\x20path','hidden':!![]},{'name':a232_0x2b9595(0xef),'meowKey':a232_0x2b9595(0xef),'type':a232_0x2b9595(0x114),'description':'JSON\x20params','hidden':!![]},{'name':a232_0x2b9595(0xe0),'meowKey':'datasetcode','type':a232_0x2b9595(0x114),'description':'Dataset\x20code','hidden':!![]},{'name':a232_0x2b9595(0xc6),'meowKey':a232_0x2b9595(0xc6),'type':a232_0x2b9595(0xe7),'description':a232_0x2b9595(0xcc),'hidden':!![]},{'name':'enable-bff-save','meowKey':a232_0x2b9595(0xf7),'type':'boolean','description':a232_0x2b9595(0xd7),'hidden':!![]},{'name':'id','meowKey':'id','type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0x109),'hidden':!![]},{'name':'type','meowKey':a232_0x2b9595(0xdd),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xfb),'hidden':!![]},{'name':'file','meowKey':a232_0x2b9595(0xe6),'type':a232_0x2b9595(0x114),'description':'File\x20path','hidden':!![]},{'name':a232_0x2b9595(0x119),'meowKey':a232_0x2b9595(0x119),'type':'string','description':a232_0x2b9595(0x11a),'hidden':!![]},{'name':a232_0x2b9595(0xaa),'meowKey':a232_0x2b9595(0xa9),'type':a232_0x2b9595(0x114),'description':'SQL\x20name','hidden':!![]},{'name':a232_0x2b9595(0xf8),'meowKey':a232_0x2b9595(0xf8),'type':'string','description':a232_0x2b9595(0xb0),'hidden':!![]},{'name':a232_0x2b9595(0xfc),'meowKey':'dbId','type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xe2),'hidden':!![]},{'name':a232_0x2b9595(0xb3),'meowKey':a232_0x2b9595(0xb3),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xe2),'hidden':!![]},{'name':a232_0x2b9595(0xdc),'meowKey':'description','type':'string','description':'Description','hidden':!![]},{'name':a232_0x2b9595(0x11e),'meowKey':'descriptionFile','type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xbc),'hidden':!![]},{'name':'page','meowKey':a232_0x2b9595(0xf4),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xcb),'hidden':!![]},{'name':a232_0x2b9595(0xbe),'meowKey':'pagesize','type':'string','description':a232_0x2b9595(0xd1),'hidden':!![]},{'name':a232_0x2b9595(0xa0),'meowKey':a232_0x2b9595(0xa0),'type':'string','description':a232_0x2b9595(0xa6),'hidden':!![]},{'name':a232_0x2b9595(0x9d),'meowKey':a232_0x2b9595(0x9d),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xc0),'hidden':!![]},{'name':a232_0x2b9595(0xd0),'meowKey':'sql','type':'string','description':'SQL\x20string','hidden':!![]},{'name':a232_0x2b9595(0xe4),'meowKey':a232_0x2b9595(0xe4),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0x112),'hidden':!![]},{'name':a232_0x2b9595(0x9a),'meowKey':a232_0x2b9595(0x9a),'type':'string','description':a232_0x2b9595(0xf5),'hidden':!![]},{'name':a232_0x2b9595(0xf0),'meowKey':a232_0x2b9595(0xf0),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xdb),'hidden':!![]},{'name':a232_0x2b9595(0xf6),'meowKey':a232_0x2b9595(0x10e),'type':a232_0x2b9595(0xe7),'description':a232_0x2b9595(0xb5),'hidden':!![]},{'name':a232_0x2b9595(0xf3),'meowKey':a232_0x2b9595(0xf3),'type':'string','description':a232_0x2b9595(0xe3),'hidden':!![]},{'name':a232_0x2b9595(0xa2),'meowKey':a232_0x2b9595(0xa2),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xad),'hidden':!![]},{'name':a232_0x2b9595(0x107),'meowKey':a232_0x2b9595(0x107),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xa4),'hidden':!![]},{'name':a232_0x2b9595(0xa8),'meowKey':a232_0x2b9595(0xa8),'type':a232_0x2b9595(0xe7),'description':a232_0x2b9595(0xd3),'hidden':!![]},{'name':a232_0x2b9595(0x9b),'meowKey':'fromEnv','type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xd9),'hidden':!![]},{'name':a232_0x2b9595(0xd2),'meowKey':a232_0x2b9595(0xd2),'type':'boolean','description':a232_0x2b9595(0xe8),'hidden':!![]},{'name':'force','meowKey':a232_0x2b9595(0xba),'type':a232_0x2b9595(0xe7),'description':a232_0x2b9595(0xee),'hidden':!![]},{'name':a232_0x2b9595(0xde),'meowKey':a232_0x2b9595(0xde),'type':a232_0x2b9595(0xe7),'description':a232_0x2b9595(0xec),'hidden':!![]},{'name':a232_0x2b9595(0x113),'meowKey':'remote','type':'boolean','description':a232_0x2b9595(0x9f),'hidden':!![]},{'name':a232_0x2b9595(0x115),'meowKey':a232_0x2b9595(0x115),'type':a232_0x2b9595(0xe7),'description':a232_0x2b9595(0x118),'hidden':!![]},{'name':a232_0x2b9595(0xc3),'meowKey':a232_0x2b9595(0x108),'type':a232_0x2b9595(0x114),'description':'Expected\x20affected\x20count','hidden':!![]},{'name':a232_0x2b9595(0xb8),'meowKey':a232_0x2b9595(0xb8),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xc1),'hidden':!![]},{'name':'parent-id','meowKey':a232_0x2b9595(0xb7),'type':a232_0x2b9595(0x114),'description':'Parent\x20menu\x20id','hidden':!![]},{'name':a232_0x2b9595(0x11b),'meowKey':a232_0x2b9595(0x11b),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xac),'hidden':!![]},{'name':'expect-parent-id','meowKey':a232_0x2b9595(0xff),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xf2),'hidden':!![]},{'name':'expect-path','meowKey':'expectPath','type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xea),'hidden':!![]},{'name':a232_0x2b9595(0xb9),'meowKey':a232_0x2b9595(0x106),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xed),'hidden':!![]},{'name':a232_0x2b9595(0x104),'meowKey':a232_0x2b9595(0xf9),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xbd),'hidden':!![]},{'name':'task-id','meowKey':'taskId','type':a232_0x2b9595(0x114),'description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':a232_0x2b9595(0xfd),'meowKey':a232_0x2b9595(0xeb),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xf5),'hidden':!![]},{'name':'function-node','meowKey':a232_0x2b9595(0xfe),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xc9),'hidden':!![]},{'name':'codes','meowKey':'codes','type':'string','description':'Comma-separated\x20metadata\x20codes','hidden':!![]}];function a232_0x1de7(_0x2e034,_0x1d4707){_0x2e034=_0x2e034-0x9a;const _0x2d7e05=a232_0x2d7e();let _0x1de74f=_0x2d7e05[_0x2e034];return _0x1de74f;}export const PIPELINE_FLAG_NAMES=new Set([a232_0x2b9595(0xb6),a232_0x2b9595(0xae),a232_0x2b9595(0x110),'format','jq','dry-run','yes','non-interactive','ci']);export function buildMeowFlags(){const _0x53522d=a232_0x2b9595;return Object[_0x53522d(0x101)](GLOBAL_FLAGS[_0x53522d(0x11c)](_0x52076e=>[_0x52076e[_0x53522d(0x9c)],{'type':_0x52076e['type']}]));}
@@ -1 +1 @@
1
- const a232_0x2da290=a232_0x5ccc;function a232_0x5ccc(_0x5658c6,_0x4b5798){_0x5658c6=_0x5658c6-0xc7;const _0x5bbc54=a232_0x5bbc();let _0x5ccc4c=_0x5bbc54[_0x5658c6];return _0x5ccc4c;}(function(_0x40c867,_0x3ac1a4){const _0x1b1c94=a232_0x5ccc,_0x235f6b=_0x40c867();while(!![]){try{const _0x4f51c0=-parseInt(_0x1b1c94(0xc8))/0x1*(-parseInt(_0x1b1c94(0xcb))/0x2)+parseInt(_0x1b1c94(0xd4))/0x3*(-parseInt(_0x1b1c94(0xd2))/0x4)+parseInt(_0x1b1c94(0xca))/0x5*(-parseInt(_0x1b1c94(0xcf))/0x6)+parseInt(_0x1b1c94(0xcc))/0x7+-parseInt(_0x1b1c94(0xce))/0x8*(parseInt(_0x1b1c94(0xc9))/0x9)+-parseInt(_0x1b1c94(0xc7))/0xa+-parseInt(_0x1b1c94(0xd3))/0xb*(-parseInt(_0x1b1c94(0xd5))/0xc);if(_0x4f51c0===_0x3ac1a4)break;else _0x235f6b['push'](_0x235f6b['shift']());}catch(_0x1c8fdb){_0x235f6b['push'](_0x235f6b['shift']());}}}(a232_0x5bbc,0x4fe69));import{DEFAULT_API_DIR}from'../constant/paths.js';function a232_0x5bbc(){const _0x2edea3=['3LmBqYg','1428DNScRP','production','1240480vdfkhz','243659xVmdJQ','1365930xQZNPZ','5TmKJiZ','2emBQmW','94045uGvzRf','compress','32vbbYoQ','3879258EEJwfK','write','en-US','20084GpMcSA','134299qVwlcl'];a232_0x5bbc=function(){return _0x2edea3;};return a232_0x5bbc();}export const DEFAULT_CONFIG_VALUES={'env':a232_0x2da290(0xd6),'format':'compress','locale':a232_0x2da290(0xd1),'riskLevel':a232_0x2da290(0xd0),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a232_0x2da290(0xcd);
1
+ const a233_0x394e1a=a233_0x4a9e;function a233_0x4a9e(_0x51513c,_0x778ffb){_0x51513c=_0x51513c-0x1ed;const _0x4c176d=a233_0x4c17();let _0x4a9e43=_0x4c176d[_0x51513c];return _0x4a9e43;}(function(_0xd46fa2,_0x124e6b){const _0x2de9b2=a233_0x4a9e,_0x503fab=_0xd46fa2();while(!![]){try{const _0x12aa5c=parseInt(_0x2de9b2(0x1f5))/0x1+parseInt(_0x2de9b2(0x1f8))/0x2+parseInt(_0x2de9b2(0x1ef))/0x3+parseInt(_0x2de9b2(0x1f0))/0x4+-parseInt(_0x2de9b2(0x1f1))/0x5*(-parseInt(_0x2de9b2(0x1f2))/0x6)+parseInt(_0x2de9b2(0x1ee))/0x7*(parseInt(_0x2de9b2(0x1f7))/0x8)+-parseInt(_0x2de9b2(0x1ed))/0x9*(parseInt(_0x2de9b2(0x1f4))/0xa);if(_0x12aa5c===_0x124e6b)break;else _0x503fab['push'](_0x503fab['shift']());}catch(_0x4e0780){_0x503fab['push'](_0x503fab['shift']());}}}(a233_0x4c17,0x644ef));function a233_0x4c17(){const _0x2e47f1=['583537yVPMTh','compress','7120zALCBB','1094214WYcSny','512478dUDCRu','4858GYOyic','2365287ByFBht','2599460DNbHhU','5LmgOQx','3161406heHdft','production','580AaUpZN'];a233_0x4c17=function(){return _0x2e47f1;};return a233_0x4c17();}import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a233_0x394e1a(0x1f3),'format':a233_0x394e1a(0x1f6),'locale':'en-US','riskLevel':'write','apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a233_0x394e1a(0x1f6);
@@ -1 +1 @@
1
- function a233_0x356e(_0x345282,_0x3bc8cb){_0x345282=_0x345282-0x170;const _0x14658d=a233_0x1465();let _0x356ea3=_0x14658d[_0x345282];return _0x356ea3;}const a233_0x283173=a233_0x356e;(function(_0x594696,_0x16e937){const _0x537f4e=a233_0x356e,_0x4f5a4f=_0x594696();while(!![]){try{const _0x14932f=-parseInt(_0x537f4e(0x172))/0x1+parseInt(_0x537f4e(0x181))/0x2*(-parseInt(_0x537f4e(0x186))/0x3)+-parseInt(_0x537f4e(0x173))/0x4+-parseInt(_0x537f4e(0x182))/0x5+-parseInt(_0x537f4e(0x176))/0x6+parseInt(_0x537f4e(0x185))/0x7*(parseInt(_0x537f4e(0x177))/0x8)+-parseInt(_0x537f4e(0x17e))/0x9*(-parseInt(_0x537f4e(0x184))/0xa);if(_0x14932f===_0x16e937)break;else _0x4f5a4f['push'](_0x4f5a4f['shift']());}catch(_0x2bbf4a){_0x4f5a4f['push'](_0x4f5a4f['shift']());}}}(a233_0x1465,0xd4e51));import{getEnv,isProduction}from'../constant/env.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';import{getOfficialRoutingCdn,getOfficialRoutingProfile}from'../constant/routing-profile.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customAppDomain,customLocalDomain,customCertificateDomain,customCdn,activeRegion=DEFAULT_LOVRABET_REGION;function a233_0x1465(){const _0x3678c4=['hostname','1296846mhQwZf','2884956aaNlfy','region','runtime','1123830jELIFJ','1648688DygSfN','trim','serviceDomains','/app/','user','/web-app/app/','apiDomain','81bsZMVD','skill','runtimeDomain','206526VNugsL','4129410rEuJBF','skillDomain','5943790KozWWB','7IITsyh','48vhOTvV','kbDomain','userDomain','appDomain'];a233_0x1465=function(){return _0x3678c4;};return a233_0x1465();}function getActiveRegionDomains(){const _0x219024=a233_0x356e,_0x169bfe=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0x169bfe[_0x219024(0x179)]['production']:_0x169bfe[_0x219024(0x179)]['daily']??_0x169bfe[_0x219024(0x179)]['production'];}export function initDomains(_0x258b33){const _0x4a94ad=a233_0x356e;customApiDomain=_0x258b33?.[_0x4a94ad(0x17d)],customUserDomain=_0x258b33?.[_0x4a94ad(0x188)],customRuntimeDomain=_0x258b33?.[_0x4a94ad(0x180)],customSkillDomain=_0x258b33?.[_0x4a94ad(0x183)],customKbDomain=_0x258b33?.[_0x4a94ad(0x187)],customAppDomain=_0x258b33?.[_0x4a94ad(0x170)],customLocalDomain=_0x258b33?.['localDomain'],customCertificateDomain=_0x258b33?.['certificateDomain'],customCdn=_0x258b33?.['cdn'],activeRegion=_0x258b33?.[_0x4a94ad(0x174)]??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a233_0x283173(0x17b)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()['api'];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a233_0x283173(0x175)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a233_0x283173(0x17f)];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()['app'];export const getActiveRegion=()=>activeRegion;export const getLocalDomain=()=>customLocalDomain;export const getCertificateDomain=()=>customCertificateDomain;export const getActiveCdn=()=>customCdn||getOfficialRoutingCdn(activeRegion);export function isIndependentDeployment(){return!!(customApiDomain||customUserDomain||customRuntimeDomain||customSkillDomain||customKbDomain||customAppDomain||customLocalDomain||customCertificateDomain);}export function getSdkClientRoutingConfig(){const _0x41293a=a233_0x283173;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x41293a(0x175)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0xa6b009=>{const _0x18542f=a233_0x283173,_0x4199f6=encodeURIComponent(_0xa6b009['trim']());return isProduction(getEnv())?getAppDomain()+_0x18542f(0x17a)+_0x4199f6:getAppDomain()+_0x18542f(0x17c)+_0x4199f6;};export const getPublishedAppDomain=_0xeecff2=>{const _0x49e24a=a233_0x283173,_0x28b6d1=new URL(getAppDomain());return _0x28b6d1[_0x49e24a(0x171)]=_0xeecff2[_0x49e24a(0x178)]()+'.'+_0x28b6d1[_0x49e24a(0x171)],_0x28b6d1['origin'];};
1
+ const a234_0x64577c=a234_0x34f1;(function(_0x55b80a,_0xf29d02){const _0x16c4fd=a234_0x34f1,_0x1dea66=_0x55b80a();while(!![]){try{const _0x2e56a9=-parseInt(_0x16c4fd(0x1e6))/0x1*(parseInt(_0x16c4fd(0x1ec))/0x2)+parseInt(_0x16c4fd(0x1f4))/0x3+-parseInt(_0x16c4fd(0x1ed))/0x4+parseInt(_0x16c4fd(0x1f9))/0x5+-parseInt(_0x16c4fd(0x1e9))/0x6+parseInt(_0x16c4fd(0x1fa))/0x7+parseInt(_0x16c4fd(0x1ea))/0x8;if(_0x2e56a9===_0xf29d02)break;else _0x1dea66['push'](_0x1dea66['shift']());}catch(_0x385c96){_0x1dea66['push'](_0x1dea66['shift']());}}}(a234_0x24cb,0x9a557));import{getEnv,isProduction}from'../constant/env.js';function a234_0x34f1(_0x343724,_0x2d86c1){_0x343724=_0x343724-0x1e3;const _0x24cb6a=a234_0x24cb();let _0x34f1cf=_0x24cb6a[_0x343724];return _0x34f1cf;}import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';import{getOfficialRoutingCdn,getOfficialRoutingProfile}from'../constant/routing-profile.js';function a234_0x24cb(){const _0x1d4aa6=['2299484gHelmX','localDomain','skill','/app/','hostname','apiDomain','production','3345168fCbKkP','region','trim','runtime','/web-app/app/','3425385HGMxer','140287hIIAIq','kbDomain','serviceDomains','app','userDomain','skillDomain','157363tnmWrP','runtimeDomain','api','6489756UVGyUF','12560120PmfjDc','user','14LzeSPP'];a234_0x24cb=function(){return _0x1d4aa6;};return a234_0x24cb();}let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customAppDomain,customLocalDomain,customCertificateDomain,customCdn,activeRegion=DEFAULT_LOVRABET_REGION;function getActiveRegionDomains(){const _0x2fcc6f=a234_0x34f1,_0x2311ba=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0x2311ba[_0x2fcc6f(0x1fc)][_0x2fcc6f(0x1f3)]:_0x2311ba['serviceDomains']['daily']??_0x2311ba['serviceDomains'][_0x2fcc6f(0x1f3)];}export function initDomains(_0x1516af){const _0x191f5a=a234_0x34f1;customApiDomain=_0x1516af?.[_0x191f5a(0x1f2)],customUserDomain=_0x1516af?.[_0x191f5a(0x1e4)],customRuntimeDomain=_0x1516af?.[_0x191f5a(0x1e7)],customSkillDomain=_0x1516af?.[_0x191f5a(0x1e5)],customKbDomain=_0x1516af?.[_0x191f5a(0x1fb)],customAppDomain=_0x1516af?.['appDomain'],customLocalDomain=_0x1516af?.[_0x191f5a(0x1ee)],customCertificateDomain=_0x1516af?.['certificateDomain'],customCdn=_0x1516af?.['cdn'],activeRegion=_0x1516af?.[_0x191f5a(0x1f5)]??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a234_0x64577c(0x1eb)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a234_0x64577c(0x1e8)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a234_0x64577c(0x1f7)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a234_0x64577c(0x1ef)];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a234_0x64577c(0x1e3)];export const getActiveRegion=()=>activeRegion;export const getLocalDomain=()=>customLocalDomain;export const getCertificateDomain=()=>customCertificateDomain;export const getActiveCdn=()=>customCdn||getOfficialRoutingCdn(activeRegion);export function isIndependentDeployment(){return!!(customApiDomain||customUserDomain||customRuntimeDomain||customSkillDomain||customKbDomain||customAppDomain||customLocalDomain||customCertificateDomain);}export function getSdkClientRoutingConfig(){if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()['runtime'])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x3f3a8d=>{const _0x3edc60=a234_0x64577c,_0x554ddf=encodeURIComponent(_0x3f3a8d[_0x3edc60(0x1f6)]());return isProduction(getEnv())?getAppDomain()+_0x3edc60(0x1f0)+_0x554ddf:getAppDomain()+_0x3edc60(0x1f8)+_0x554ddf;};export const getPublishedAppDomain=_0x5b8895=>{const _0x583d8d=a234_0x64577c,_0x2212f8=new URL(getAppDomain());return _0x2212f8[_0x583d8d(0x1f1)]=_0x5b8895[_0x583d8d(0x1f6)]()+'.'+_0x2212f8['hostname'],_0x2212f8['origin'];};
@@ -1 +1 @@
1
- const a234_0x9f10c4=a234_0x469b;(function(_0x413f4f,_0x2f8f61){const _0x4aba3f=a234_0x469b,_0x186200=_0x413f4f();while(!![]){try{const _0x129656=-parseInt(_0x4aba3f(0x183))/0x1+-parseInt(_0x4aba3f(0x182))/0x2+-parseInt(_0x4aba3f(0x18f))/0x3+-parseInt(_0x4aba3f(0x18d))/0x4+parseInt(_0x4aba3f(0x18e))/0x5*(-parseInt(_0x4aba3f(0x186))/0x6)+-parseInt(_0x4aba3f(0x189))/0x7*(parseInt(_0x4aba3f(0x187))/0x8)+-parseInt(_0x4aba3f(0x18c))/0x9*(-parseInt(_0x4aba3f(0x190))/0xa);if(_0x129656===_0x2f8f61)break;else _0x186200['push'](_0x186200['shift']());}catch(_0x405ec0){_0x186200['push'](_0x186200['shift']());}}}(a234_0xd219,0xa4b35));export const RABETBASE_ENV_VALUES=[a234_0x9f10c4(0x18b),a234_0x9f10c4(0x185)];export function normalizeEnv(_0xfbe606){const _0x2a2fb9=a234_0x9f10c4;return _0xfbe606===_0x2a2fb9(0x18a)?'production':_0xfbe606;}function a234_0x469b(_0x9d5bc,_0x2cb44a){_0x9d5bc=_0x9d5bc-0x182;const _0xd2191d=a234_0xd219();let _0x469bcd=_0xd2191d[_0x9d5bc];return _0x469bcd;}function a234_0xd219(){const _0x10cae7=['3001776XrDJRV','60460uqQKdX','2545660tGUAGQ','206481DYMqQu','development','daily','4542150itTsXp','8WbeLYl','dev','3441431GXAtQC','online','production','7902GPRwGS','3620856GJtfoj','5ZlRVPl'];a234_0xd219=function(){return _0x10cae7;};return a234_0xd219();}export function isProduction(_0x551131){return normalizeEnv(_0x551131)==='production';}export function isDaily(_0x35630c){const _0x34bec0=a234_0x9f10c4;return normalizeEnv(_0x35630c)===_0x34bec0(0x185);}export function isDev(_0x1866f7){const _0x1cf9a1=a234_0x9f10c4,_0x5368c9=normalizeEnv(_0x1866f7);return _0x5368c9===_0x1cf9a1(0x184)||_0x5368c9===_0x1cf9a1(0x188);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||'production');export function getEnv(){return env;}export function initEnv(_0x5beca4){env=normalizeEnv(_0x5beca4);}
1
+ const a235_0xf0d3e3=a235_0x4d96;(function(_0x11c4a7,_0x530160){const _0x4d8712=a235_0x4d96,_0x235a8f=_0x11c4a7();while(!![]){try{const _0x4eb9f4=-parseInt(_0x4d8712(0x116))/0x1+-parseInt(_0x4d8712(0x10e))/0x2*(-parseInt(_0x4d8712(0x117))/0x3)+-parseInt(_0x4d8712(0x114))/0x4+parseInt(_0x4d8712(0x10f))/0x5*(-parseInt(_0x4d8712(0x113))/0x6)+parseInt(_0x4d8712(0x11b))/0x7*(-parseInt(_0x4d8712(0x10c))/0x8)+-parseInt(_0x4d8712(0x118))/0x9*(parseInt(_0x4d8712(0x111))/0xa)+parseInt(_0x4d8712(0x11a))/0xb;if(_0x4eb9f4===_0x530160)break;else _0x235a8f['push'](_0x235a8f['shift']());}catch(_0x19f3af){_0x235a8f['push'](_0x235a8f['shift']());}}}(a235_0x5a77,0x49c69));function a235_0x5a77(){const _0x472a98=['dev','8766846zOLyQb','35CRhOcq','614960EgWjgx','production','86murOis','62530bcrDBP','development','145210GsaRZh','daily','18rSxoLr','129816sSlHmA','online','53862PtzWUN','15117NhJmIh','126SfbDSV'];a235_0x5a77=function(){return _0x472a98;};return a235_0x5a77();}function a235_0x4d96(_0x46e69f,_0x359d1e){_0x46e69f=_0x46e69f-0x10c;const _0x5a7774=a235_0x5a77();let _0x4d9631=_0x5a7774[_0x46e69f];return _0x4d9631;}export const RABETBASE_ENV_VALUES=[a235_0xf0d3e3(0x10d),a235_0xf0d3e3(0x112)];export function normalizeEnv(_0x215b36){const _0x8e5c7b=a235_0xf0d3e3;return _0x215b36===_0x8e5c7b(0x115)?_0x8e5c7b(0x10d):_0x215b36;}export function isProduction(_0x51062e){return normalizeEnv(_0x51062e)==='production';}export function isDaily(_0x85d605){const _0x2e05ff=a235_0xf0d3e3;return normalizeEnv(_0x85d605)===_0x2e05ff(0x112);}export function isDev(_0x4bee6c){const _0x5bfc68=a235_0xf0d3e3,_0x53897d=normalizeEnv(_0x4bee6c);return _0x53897d===_0x5bfc68(0x110)||_0x53897d===_0x5bfc68(0x119);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a235_0xf0d3e3(0x10d));export function getEnv(){return env;}export function initEnv(_0x4cd0f6){env=normalizeEnv(_0x4cd0f6);}
@@ -1 +1 @@
1
- const a235_0x5e99ed=a235_0x2528;function a235_0x2528(_0x2eb044,_0x380f25){_0x2eb044=_0x2eb044-0x1ef;const _0x5a32d6=a235_0x5a32();let _0x25282e=_0x5a32d6[_0x2eb044];return _0x25282e;}(function(_0xd7e0eb,_0x2bb6aa){const _0xc60ad8=a235_0x2528,_0x74d66b=_0xd7e0eb();while(!![]){try{const _0x36a090=parseInt(_0xc60ad8(0x1f8))/0x1+parseInt(_0xc60ad8(0x1f9))/0x2*(parseInt(_0xc60ad8(0x1f7))/0x3)+parseInt(_0xc60ad8(0x1f6))/0x4+parseInt(_0xc60ad8(0x1f3))/0x5+-parseInt(_0xc60ad8(0x1f4))/0x6+-parseInt(_0xc60ad8(0x1ef))/0x7+-parseInt(_0xc60ad8(0x1f2))/0x8;if(_0x36a090===_0x2bb6aa)break;else _0x74d66b['push'](_0x74d66b['shift']());}catch(_0x48fabf){_0x74d66b['push'](_0x74d66b['shift']());}}}(a235_0x5a32,0x61506));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a235_0x5e99ed(0x1f1),a235_0x5e99ed(0x1f5),a235_0x5e99ed(0x1f0)];function a235_0x5a32(){const _0x480d38=['pretty','1696188mKxrWW','37299eFLuCA','560917MJmQRo','52KjYGcx','2441166sMfylj','compress','json','1662464PPGUdU','1241640vkdJxR','3608436NjxPqv'];a235_0x5a32=function(){return _0x480d38;};return a235_0x5a32();}
1
+ const a236_0x431cfa=a236_0x1772;function a236_0x362a(){const _0x374df6=['2378598aiGcNM','1642vdyTkN','compress','4fJTQRb','2824lDlGDD','219810UcczqP','2107854ufQtnW','json','6182405VmdpZf','36756VkCdEX','1596vkGuiW','pretty','388066ipOqef'];a236_0x362a=function(){return _0x374df6;};return a236_0x362a();}function a236_0x1772(_0x32d9ce,_0x4e0534){_0x32d9ce=_0x32d9ce-0x131;const _0x362acc=a236_0x362a();let _0x17726d=_0x362acc[_0x32d9ce];return _0x17726d;}(function(_0x4f3a16,_0x44ccdc){const _0x12250f=a236_0x1772,_0x49fd63=_0x4f3a16();while(!![]){try{const _0x48e5ac=-parseInt(_0x12250f(0x139))/0x1*(-parseInt(_0x12250f(0x135))/0x2)+-parseInt(_0x12250f(0x131))/0x3+parseInt(_0x12250f(0x13b))/0x4*(parseInt(_0x12250f(0x133))/0x5)+parseInt(_0x12250f(0x138))/0x6+parseInt(_0x12250f(0x137))/0x7+parseInt(_0x12250f(0x13c))/0x8*(-parseInt(_0x12250f(0x134))/0x9)+parseInt(_0x12250f(0x13d))/0xa;if(_0x48e5ac===_0x44ccdc)break;else _0x49fd63['push'](_0x49fd63['shift']());}catch(_0x54a884){_0x49fd63['push'](_0x49fd63['shift']());}}}(a236_0x362a,0xd5f5b));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a236_0x431cfa(0x132),a236_0x431cfa(0x136),a236_0x431cfa(0x13a)];
@@ -1 +1 @@
1
- function a236_0xd9e6(){const _0x1f0b4c=['40512PgShYp','149322gYhLbN','193566DWsteS','1108359hacwiD','1245016cgsRXr','80yvFFar','163730qBCieg','474612gFAsAs'];a236_0xd9e6=function(){return _0x1f0b4c;};return a236_0xd9e6();}function a236_0x2c0d(_0x54435a,_0x4cfee3){_0x54435a=_0x54435a-0x1d3;const _0xd9e6fb=a236_0xd9e6();let _0x2c0df3=_0xd9e6fb[_0x54435a];return _0x2c0df3;}(function(_0x23b4d6,_0x392230){const _0x5d5f17=a236_0x2c0d,_0x19df95=_0x23b4d6();while(!![]){try{const _0x3f66c9=parseInt(_0x5d5f17(0x1d8))/0x1+-parseInt(_0x5d5f17(0x1d3))/0x2+-parseInt(_0x5d5f17(0x1d4))/0x3+-parseInt(_0x5d5f17(0x1d9))/0x4+parseInt(_0x5d5f17(0x1d7))/0x5*(-parseInt(_0x5d5f17(0x1da))/0x6)+parseInt(_0x5d5f17(0x1d5))/0x7+parseInt(_0x5d5f17(0x1d6))/0x8;if(_0x3f66c9===_0x392230)break;else _0x19df95['push'](_0x19df95['shift']());}catch(_0x476f9f){_0x19df95['push'](_0x19df95['shift']());}}}(a236_0xd9e6,0x1b4d2));export const DEFAULT_API_DIR='./src/api';
1
+ function a237_0x312f(){const _0x315289=['288612fUXHax','172420PqPYRr','110vPHcyb','1954lSiTeF','3EhPFcg','4193jxuRad','1382224mcjuiC','82686PgfARp','5gKGeMK','329zrIrRp','./src/api','1037124bUeFlc','4400aAoIIb'];a237_0x312f=function(){return _0x315289;};return a237_0x312f();}function a237_0x2490(_0x50a7fb,_0x64028f){_0x50a7fb=_0x50a7fb-0x111;const _0x312f3a=a237_0x312f();let _0x24909c=_0x312f3a[_0x50a7fb];return _0x24909c;}const a237_0x51742d=a237_0x2490;(function(_0x236768,_0x2ab5bd){const _0x20abb3=a237_0x2490,_0x582b7c=_0x236768();while(!![]){try{const _0x2b4dc4=-parseInt(_0x20abb3(0x115))/0x1*(-parseInt(_0x20abb3(0x11c))/0x2)+-parseInt(_0x20abb3(0x11d))/0x3*(-parseInt(_0x20abb3(0x112))/0x4)+parseInt(_0x20abb3(0x114))/0x5*(parseInt(_0x20abb3(0x113))/0x6)+parseInt(_0x20abb3(0x111))/0x7*(-parseInt(_0x20abb3(0x118))/0x8)+parseInt(_0x20abb3(0x117))/0x9+parseInt(_0x20abb3(0x11a))/0xa+-parseInt(_0x20abb3(0x11b))/0xb*(parseInt(_0x20abb3(0x119))/0xc);if(_0x2b4dc4===_0x2ab5bd)break;else _0x582b7c['push'](_0x582b7c['shift']());}catch(_0x5e8b9c){_0x582b7c['push'](_0x582b7c['shift']());}}}(a237_0x312f,0x3b658));export const DEFAULT_API_DIR=a237_0x51742d(0x116);
@@ -1 +1 @@
1
- (function(_0x1093ab,_0x35cbdd){const _0x428496=a237_0x471a,_0x6694f3=_0x1093ab();while(!![]){try{const _0x1f0333=-parseInt(_0x428496(0xe4))/0x1+-parseInt(_0x428496(0xea))/0x2*(parseInt(_0x428496(0xe6))/0x3)+-parseInt(_0x428496(0xe7))/0x4*(-parseInt(_0x428496(0xf0))/0x5)+parseInt(_0x428496(0xee))/0x6+parseInt(_0x428496(0xef))/0x7+parseInt(_0x428496(0xe5))/0x8*(parseInt(_0x428496(0xed))/0x9)+parseInt(_0x428496(0xe8))/0xa*(parseInt(_0x428496(0xeb))/0xb);if(_0x1f0333===_0x35cbdd)break;else _0x6694f3['push'](_0x6694f3['shift']());}catch(_0x44706c){_0x6694f3['push'](_0x6694f3['shift']());}}}(a237_0x1be0,0xd00a9));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;function a237_0x1be0(){const _0x1399ac=['835272QHwGkT','5318870CaKiPk','includes','834314ngfOmv','11wmkTCO','string','621spdjzD','313020GUgUNy','6082111RwiuQU','30kJtEoY','1154851ekoZrz','64072LXKOjq','9LFPUfm'];a237_0x1be0=function(){return _0x1399ac;};return a237_0x1be0();}export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x50b837){const _0x911d44=a237_0x471a;return typeof _0x50b837===_0x911d44(0xec)&&LOVRABET_REGION_VALUES['includes'](_0x50b837);}export function isEnabledLovrabetRegion(_0x5761d9){const _0x1adb54=a237_0x471a;return typeof _0x5761d9==='string'&&ENABLED_LOVRABET_REGION_VALUES[_0x1adb54(0xe9)](_0x5761d9);}export function normalizeLovrabetRegion(_0x356fd0){const _0x1938d1=a237_0x471a;if(typeof _0x356fd0!==_0x1938d1(0xec))return undefined;const _0x468a29=REGION_ALIASES[_0x356fd0]??_0x356fd0;return isLovrabetRegion(_0x468a29)?_0x468a29:undefined;}function a237_0x471a(_0x2d375e,_0x19ddb7){_0x2d375e=_0x2d375e-0xe4;const _0x1be004=a237_0x1be0();let _0x471a6a=_0x1be004[_0x2d375e];return _0x471a6a;}export function isInvalidLovrabetRegion(_0x2ce3cb){return _0x2ce3cb!==undefined&&_0x2ce3cb!==null&&_0x2ce3cb!==''&&normalizeLovrabetRegion(_0x2ce3cb)===undefined;}
1
+ (function(_0x1d87aa,_0x39bd8c){const _0x3ac097=a238_0x143f,_0x18599b=_0x1d87aa();while(!![]){try{const _0x33a498=parseInt(_0x3ac097(0x15b))/0x1+parseInt(_0x3ac097(0x154))/0x2+-parseInt(_0x3ac097(0x15f))/0x3*(parseInt(_0x3ac097(0x15c))/0x4)+parseInt(_0x3ac097(0x157))/0x5*(parseInt(_0x3ac097(0x160))/0x6)+-parseInt(_0x3ac097(0x15e))/0x7+parseInt(_0x3ac097(0x156))/0x8*(-parseInt(_0x3ac097(0x15d))/0x9)+parseInt(_0x3ac097(0x155))/0xa*(parseInt(_0x3ac097(0x158))/0xb);if(_0x33a498===_0x39bd8c)break;else _0x18599b['push'](_0x18599b['shift']());}catch(_0xa591f2){_0x18599b['push'](_0x18599b['shift']());}}}(a238_0x5c30,0xc622a));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;function a238_0x5c30(){const _0x4411d9=['106827oXeBcI','39366oBYLRS','355408eVJFIy','1220amnWSw','32sLbBvS','775nsQGyb','25014fGnSUj','includes','string','1449853FUKYBC','76DOTBvn','1904706ibKQeN','4110897OWDKUH'];a238_0x5c30=function(){return _0x4411d9;};return a238_0x5c30();}export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;function a238_0x143f(_0x1bdb7f,_0x2d6f4b){_0x1bdb7f=_0x1bdb7f-0x154;const _0x5c30aa=a238_0x5c30();let _0x143f7e=_0x5c30aa[_0x1bdb7f];return _0x143f7e;}export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0xcad9a1){const _0x54f17c=a238_0x143f;return typeof _0xcad9a1===_0x54f17c(0x15a)&&LOVRABET_REGION_VALUES[_0x54f17c(0x159)](_0xcad9a1);}export function isEnabledLovrabetRegion(_0x27e234){const _0x44b13f=a238_0x143f;return typeof _0x27e234===_0x44b13f(0x15a)&&ENABLED_LOVRABET_REGION_VALUES['includes'](_0x27e234);}export function normalizeLovrabetRegion(_0x51eb65){const _0x337c19=a238_0x143f;if(typeof _0x51eb65!==_0x337c19(0x15a))return undefined;const _0x112fa3=REGION_ALIASES[_0x51eb65]??_0x51eb65;return isLovrabetRegion(_0x112fa3)?_0x112fa3:undefined;}export function isInvalidLovrabetRegion(_0x20625f){return _0x20625f!==undefined&&_0x20625f!==null&&_0x20625f!==''&&normalizeLovrabetRegion(_0x20625f)===undefined;}
@@ -1 +1 @@
1
- function a238_0x5453(){const _0x5535f4=['5353564KrJITv','1488246JirslX','read','1186364xUKvJA','2538455fovLaE','3103618vTRHDh','4256985zLBnvN','6170376qAtDDe','high-risk-write','write'];a238_0x5453=function(){return _0x5535f4;};return a238_0x5453();}const a238_0x5272b3=a238_0x439d;(function(_0x5f398a,_0x4223d3){const _0x3486cd=a238_0x439d,_0x25867f=_0x5f398a();while(!![]){try{const _0x543f76=-parseInt(_0x3486cd(0x15d))/0x1+parseInt(_0x3486cd(0x15b))/0x2+parseInt(_0x3486cd(0x160))/0x3+-parseInt(_0x3486cd(0x15a))/0x4+parseInt(_0x3486cd(0x15e))/0x5+parseInt(_0x3486cd(0x157))/0x6+-parseInt(_0x3486cd(0x15f))/0x7;if(_0x543f76===_0x4223d3)break;else _0x25867f['push'](_0x25867f['shift']());}catch(_0x142885){_0x25867f['push'](_0x25867f['shift']());}}}(a238_0x5453,0xb27c4));function a238_0x439d(_0x3af9cc,_0x393602){_0x3af9cc=_0x3af9cc-0x157;const _0x54531d=a238_0x5453();let _0x439d28=_0x54531d[_0x3af9cc];return _0x439d28;}export const RISK_LEVEL_VALUES=[a238_0x5272b3(0x15c),a238_0x5272b3(0x159),a238_0x5272b3(0x158)];
1
+ const a239_0x2122ec=a239_0x5561;(function(_0x10cde5,_0x5ebca8){const _0x51d9fe=a239_0x5561,_0x368734=_0x10cde5();while(!![]){try{const _0x16c8d6=-parseInt(_0x51d9fe(0x97))/0x1*(parseInt(_0x51d9fe(0x98))/0x2)+parseInt(_0x51d9fe(0x90))/0x3*(-parseInt(_0x51d9fe(0x95))/0x4)+parseInt(_0x51d9fe(0x9a))/0x5*(-parseInt(_0x51d9fe(0x93))/0x6)+parseInt(_0x51d9fe(0x99))/0x7+parseInt(_0x51d9fe(0x96))/0x8*(parseInt(_0x51d9fe(0x91))/0x9)+parseInt(_0x51d9fe(0x92))/0xa+parseInt(_0x51d9fe(0x94))/0xb;if(_0x16c8d6===_0x5ebca8)break;else _0x368734['push'](_0x368734['shift']());}catch(_0x10ef49){_0x368734['push'](_0x368734['shift']());}}}(a239_0x37d5,0xbc33a));export const RISK_LEVEL_VALUES=[a239_0x2122ec(0x9b),'write',a239_0x2122ec(0x9c)];function a239_0x5561(_0x566f3e,_0x2346da){_0x566f3e=_0x566f3e-0x90;const _0x37d523=a239_0x37d5();let _0x556192=_0x37d523[_0x566f3e];return _0x556192;}function a239_0x37d5(){const _0x28e9dc=['6691212UXuNSy','107572ROqTea','5923784Yusshe','1mzRRdM','1806230nZqCqs','2272018Yivxtg','584110rZXmoQ','read','high-risk-write','165mntPTq','18AHEOUR','13234020hJaLvl','30bciRSu'];a239_0x37d5=function(){return _0x28e9dc;};return a239_0x37d5();}
@@ -1 +1 @@
1
- (function(_0x2dfffc,_0x5750da){const _0x447241=a239_0x5302,_0x42a692=_0x2dfffc();while(!![]){try{const _0x3d62a0=parseInt(_0x447241(0x7e))/0x1*(-parseInt(_0x447241(0x7c))/0x2)+parseInt(_0x447241(0x81))/0x3*(parseInt(_0x447241(0x80))/0x4)+parseInt(_0x447241(0x7a))/0x5*(parseInt(_0x447241(0x84))/0x6)+-parseInt(_0x447241(0x89))/0x7+parseInt(_0x447241(0x7d))/0x8+parseInt(_0x447241(0x7f))/0x9*(-parseInt(_0x447241(0x82))/0xa)+-parseInt(_0x447241(0x85))/0xb*(-parseInt(_0x447241(0x86))/0xc);if(_0x3d62a0===_0x5750da)break;else _0x42a692['push'](_0x42a692['shift']());}catch(_0x4c691c){_0x42a692['push'](_0x42a692['shift']());}}}(a239_0x4d67,0xc0580));import{OFFICIAL_ROUTING_PROFILES as a239_0x9b0836,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';export const OFFICIAL_ROUTING_PROFILES=a239_0x9b0836;export{ROUTING_CATALOG_DIGEST};export function getOfficialRoutingProfile(_0x154482){return OFFICIAL_ROUTING_PROFILES[_0x154482];}function a239_0x5302(_0x728e93,_0x35bb91){_0x728e93=_0x728e93-0x7a;const _0x4d67de=a239_0x4d67();let _0x530225=_0x4d67de[_0x728e93];return _0x530225;}export function getOfficialRoutingCdn(_0x50df19){const _0x4853e7=a239_0x5302,_0x26a22b=getOfficialRoutingProfile(_0x50df19)[_0x4853e7(0x87)];if(!_0x26a22b[_0x4853e7(0x83)])throw new Error(_0x4853e7(0x88)+_0x50df19+'\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.');return{'libraries':_0x26a22b[_0x4853e7(0x7b)],'lovrabet':_0x26a22b[_0x4853e7(0x83)]};}function a239_0x4d67(){const _0x3946df=['9539894eEhkVW','7870rneVvC','libraries','73004FngFBq','533016bxDVuf','40exCTii','270EAqweE','1689236DkXUNQ','6qAdJUb','378470pZiRXZ','lovrabet','2190srkCEA','35864587acfUgR','12MMieNI','cdn','Official\x20routing\x20for\x20region\x20\x22'];a239_0x4d67=function(){return _0x3946df;};return a239_0x4d67();}
1
+ (function(_0x4c98ac,_0x2d16d7){const _0x208800=a240_0x19aa,_0x45905e=_0x4c98ac();while(!![]){try{const _0x24c581=-parseInt(_0x208800(0x9a))/0x1+parseInt(_0x208800(0x9c))/0x2+parseInt(_0x208800(0x9f))/0x3*(parseInt(_0x208800(0xa0))/0x4)+-parseInt(_0x208800(0x97))/0x5+parseInt(_0x208800(0x9d))/0x6+-parseInt(_0x208800(0x96))/0x7*(-parseInt(_0x208800(0x98))/0x8)+-parseInt(_0x208800(0x95))/0x9;if(_0x24c581===_0x2d16d7)break;else _0x45905e['push'](_0x45905e['shift']());}catch(_0x129bbc){_0x45905e['push'](_0x45905e['shift']());}}}(a240_0x4f25,0x83347));import{OFFICIAL_ROUTING_PROFILES as a240_0x24f77e,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';export const OFFICIAL_ROUTING_PROFILES=a240_0x24f77e;export{ROUTING_CATALOG_DIGEST};function a240_0x4f25(){const _0x45f6ce=['lovrabet','1786018TCTEVR','812106UJsaQi','libraries','63aFxbHA','37968pSOmdJ','841626zxxlUn','1145977JaUNpz','4894710WMpjVe','24QbXdeE','Official\x20routing\x20for\x20region\x20\x22','108954WQNNYi'];a240_0x4f25=function(){return _0x45f6ce;};return a240_0x4f25();}function a240_0x19aa(_0x2c8fae,_0x544434){_0x2c8fae=_0x2c8fae-0x95;const _0x4f25df=a240_0x4f25();let _0x19aa2c=_0x4f25df[_0x2c8fae];return _0x19aa2c;}export function getOfficialRoutingProfile(_0x4677ec){return OFFICIAL_ROUTING_PROFILES[_0x4677ec];}export function getOfficialRoutingCdn(_0x12a6b3){const _0x135e12=a240_0x19aa,_0x416b95=getOfficialRoutingProfile(_0x12a6b3)['cdn'];if(!_0x416b95[_0x135e12(0x9b)])throw new Error(_0x135e12(0x99)+_0x12a6b3+'\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.');return{'libraries':_0x416b95[_0x135e12(0x9e)],'lovrabet':_0x416b95[_0x135e12(0x9b)]};}
@@ -1,7 +1,10 @@
1
1
  import { type OutputFormat, type Risk } from "../framework/types.js";
2
2
  import type { RawConfigLayers } from "../context/config-loader.js";
3
+ import { type LovrabetRegion } from "../constant/region.js";
4
+ import { type RegionConfigSource } from "../config/region-config.js";
3
5
  export interface AppProfile {
4
6
  appcode: string;
7
+ region?: LovrabetRegion;
5
8
  env?: "production" | "daily";
6
9
  apiDir?: string;
7
10
  cookie?: string;
@@ -13,6 +16,9 @@ export interface AppProfile {
13
16
  }
14
17
  export interface ResolvedAppConfig {
15
18
  appCode: string | undefined;
19
+ region: LovrabetRegion;
20
+ regionConfiguredValue: unknown;
21
+ regionSource: RegionConfigSource;
16
22
  env: "production" | "daily";
17
23
  locale: string;
18
24
  cookie: string | undefined;
@@ -1 +1 @@
1
- (function(_0x167ed8,_0x49a791){const _0x5d597a=a240_0x41d2,_0x200bdd=_0x167ed8();while(!![]){try{const _0x58d57e=-parseInt(_0x5d597a(0x1c6))/0x1*(parseInt(_0x5d597a(0x1ac))/0x2)+parseInt(_0x5d597a(0x19c))/0x3+parseInt(_0x5d597a(0x1b9))/0x4*(parseInt(_0x5d597a(0x1b4))/0x5)+parseInt(_0x5d597a(0x19d))/0x6+parseInt(_0x5d597a(0x1ae))/0x7*(parseInt(_0x5d597a(0x1c2))/0x8)+parseInt(_0x5d597a(0x1a2))/0x9+parseInt(_0x5d597a(0x1b3))/0xa*(-parseInt(_0x5d597a(0x1bb))/0xb);if(_0x58d57e===_0x49a791)break;else _0x200bdd['push'](_0x200bdd['shift']());}catch(_0xb9cb68){_0x200bdd['push'](_0x200bdd['shift']());}}}(a240_0x1ea2,0xf189a));function a240_0x1ea2(){const _0x41a457=['32dPMHUl','object','read','projectConfig','144503TjnIQa','2994048DIpYMO','11550978qWxZjc','projectPath','apps','pageSize','riskLevel','7081389LyOJOb','apiDir','string','locale','production','appcode','PAGE_SIZE','trim','find','accessKey','16qLNDLm','format','917063iSWYwV','keys','daily','entries','cookie','10NFrTnF','15htCfpR','length','VERBOSE','globalConfig','env','1659772qIYynM','ENV','36668533ClWyhO','APP','ACCESS_KEY','app','high-risk-write','RISK_LEVEL','write'];a240_0x1ea2=function(){return _0x41a457;};return a240_0x1ea2();}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a240_0x41d2(_0x496fe4,_0x2292a3){_0x496fe4=_0x496fe4-0x19c;const _0x1ea2a1=a240_0x1ea2();let _0x41d2dd=_0x1ea2a1[_0x496fe4];return _0x41d2dd;}import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x16e83b){const _0x4cb512=a240_0x41d2;return typeof _0x16e83b==='string'&&_0x16e83b[_0x4cb512(0x1a9)]()?_0x16e83b[_0x4cb512(0x1a9)]():undefined;}function appProfiles(_0x395ae6){const _0x465073=a240_0x41d2;return _0x395ae6[_0x465073(0x19f)]&&typeof _0x395ae6['apps']===_0x465073(0x1c3)?_0x395ae6['apps']:{};}function resolveDefaultAppName(_0x34339c){const _0x34bc69=a240_0x41d2,_0x143924=stringConfigValue(_0x34339c['defaultApp']);if(_0x143924)return _0x143924;const _0x2d1e5d=Object[_0x34bc69(0x1af)](appProfiles(_0x34339c));return _0x2d1e5d[_0x34bc69(0x1b5)]===0x1?_0x2d1e5d[0x0]:undefined;}function resolveTopLevelAppCode(_0x5c0351){const _0x2390c1=a240_0x41d2;return stringConfigValue(_0x5c0351[_0x2390c1(0x1a7)])||stringConfigValue(_0x5c0351[_0x2390c1(0x1be)]);}function normalizeRiskCeiling(_0x32d8cc){const _0x29efcf=a240_0x41d2;if(_0x32d8cc===undefined||_0x32d8cc===null)return undefined;if(_0x32d8cc===_0x29efcf(0x1c4)||_0x32d8cc===_0x29efcf(0x1c1)||_0x32d8cc===_0x29efcf(0x1bf))return _0x32d8cc;return _0x29efcf(0x1c4);}function resolveRiskCeiling(..._0xa4f5a9){const _0x5b4c39=a240_0x41d2;let _0x1a682e;for(const _0x3f107d of _0xa4f5a9){const _0xc8de03=normalizeRiskCeiling(_0x3f107d);_0xc8de03&&(!_0x1a682e||riskLevelOrder(_0xc8de03)<riskLevelOrder(_0x1a682e))&&(_0x1a682e=_0xc8de03);}return _0x1a682e??DEFAULT_CONFIG_VALUES[_0x5b4c39(0x1a1)];}export function resolveAppConfig({raw:_0x5380e6,flags:_0x505e7a,layers:_0x75ef0c,readEnv:_0x26af99}){const _0x26a365=a240_0x41d2,_0x3a6d76=_0x75ef0c?.[_0x26a365(0x1c5)]??{},_0x15edfc=_0x75ef0c?.[_0x26a365(0x1b7)]??{},_0x34e4e4=!!_0x75ef0c?.[_0x26a365(0x19e)]||Object[_0x26a365(0x1af)](_0x3a6d76)[_0x26a365(0x1b5)]>0x0,_0x5d4d72=!_0x34e4e4,_0x34501c=_0x34e4e4?resolveDefaultAppName(_0x3a6d76):undefined,_0x45212f=_0x5d4d72?resolveDefaultAppName(_0x15edfc):undefined,_0x45a605=stringConfigValue(_0x505e7a[_0x26a365(0x1be)]),_0x5e0af1=_0x26af99(_0x26a365(0x1bc)),_0x300c10={};if(_0x5380e6[_0x26a365(0x19f)]&&typeof _0x5380e6[_0x26a365(0x19f)]==='object')for(const [_0x233793,_0x36c6b7]of Object[_0x26a365(0x1b1)](_0x5380e6['apps'])){_0x36c6b7&&typeof _0x36c6b7===_0x26a365(0x1c3)&&_0x36c6b7['appcode']&&(_0x300c10[_0x233793]=_0x36c6b7);}const _0x5b584c=_0x34501c||_0x45212f||resolveDefaultAppName(_0x5380e6),_0x59bbc1=Object[_0x26a365(0x1af)](_0x300c10)['length']>0x0,_0xbf691a=_0x45a605||_0x34501c||_0x5e0af1||_0x45212f||_0x5b584c||undefined,_0x485f68=stringConfigValue(_0x505e7a[_0x26a365(0x1a7)]),_0x3cc724=_0x485f68?Object['entries'](_0x300c10)[_0x26a365(0x1aa)](([,_0x1ec621])=>_0x1ec621?.[_0x26a365(0x1a7)]===_0x485f68):undefined,_0x5595c7=_0x3cc724?.[0x0],_0x1cdf9e=_0x3cc724?.[0x1],_0xa4459b=_0x485f68?_0x5595c7:_0xbf691a;let _0x5bbf0a=_0xa4459b&&_0x300c10[_0xa4459b]?_0x300c10[_0xa4459b]:undefined;_0x485f68&&_0x1cdf9e&&(_0x5bbf0a=_0x1cdf9e);const _0x3b368d=_0x485f68?_0x1cdf9e??_0x5bbf0a:_0x5bbf0a,_0x173ed7=!_0x45a605&&!_0x34501c&&_0x5e0af1&&_0xa4459b===_0x5e0af1,_0x460474=_0x45a605||(_0x173ed7?_0x5e0af1:undefined)||(_0x485f68?_0x5595c7:undefined),_0x34992f=_0x3b368d?.['appcode'],_0x5462bf=_0x34e4e4?resolveTopLevelAppCode(_0x3a6d76):undefined,_0x1d5785=_0x5d4d72?resolveTopLevelAppCode(_0x15edfc):undefined,_0x2d84c5=_0x45a605||_0x34501c?_0x34992f:undefined,_0x5b9409=!_0x45a605&&!_0x34501c?_0x34992f:undefined,_0x35b8f8=_0x485f68||_0x2d84c5||_0x5462bf||_0x5b9409||_0x1d5785||undefined,_0x213f17=_0x34e4e4?stringConfigValue(_0x3a6d76['env']):undefined,_0x221971=_0x5d4d72?stringConfigValue(_0x15edfc['env']):undefined,_0x2cb8bd=_0x505e7a[_0x26a365(0x1b8)]||_0x3b368d?.['env']||_0x213f17||_0x26af99(_0x26a365(0x1ba))||_0x221971||_0x5380e6[_0x26a365(0x1b8)]||DEFAULT_CONFIG_VALUES[_0x26a365(0x1b8)],_0x4cc5fb=_0x3b368d?.['locale']||_0x5380e6[_0x26a365(0x1a5)]||DEFAULT_CONFIG_VALUES[_0x26a365(0x1a5)],_0x3ed1d8=_0x26af99('COOKIE')||_0x3b368d?.[_0x26a365(0x1b2)]||_0x5380e6['cookie']||undefined,_0x1abe1c=_0x26af99(_0x26a365(0x1bd))||_0x3b368d?.['accessKey']||_0x5380e6[_0x26a365(0x1ab)]||undefined,_0x45ecd1=_0x505e7a[_0x26a365(0x1ad)]||_0x26af99('FORMAT')||_0x3b368d?.['format']||_0x5380e6[_0x26a365(0x1ad)],_0x3e29f4=normalizeLegacyOutputFormat(_0x45ecd1),_0x12bbc4=_0x26af99(_0x26a365(0x1a8))||_0x3b368d?.[_0x26a365(0x1a0)]||_0x5380e6['pageSize'],_0x10c547=_0x12bbc4?Number(_0x12bbc4)||undefined:undefined,_0x1c9ec0=_0x75ef0c?[_0x75ef0c[_0x26a365(0x1b7)]['riskLevel'],_0x75ef0c[_0x26a365(0x1c5)][_0x26a365(0x1a1)]]:[_0x5380e6[_0x26a365(0x1a1)]],_0x2b13e8=resolveRiskCeiling(..._0x1c9ec0,_0x3b368d?.[_0x26a365(0x1a1)]),_0x451b5e=resolveRiskCeiling(_0x2b13e8,_0x26af99(_0x26a365(0x1c0))),_0x483cff=_0x26af99(_0x26a365(0x1b6)),_0x309171=_0x483cff==='1'||_0x483cff==='true',_0x4cd442=_0x3b368d?.[_0x26a365(0x1a3)]||_0x5380e6[_0x26a365(0x1a3)]||DEFAULT_CONFIG_VALUES[_0x26a365(0x1a3)],_0x4f1cec=isDaily(normalizeEnv(String(_0x2cb8bd)))?_0x26a365(0x1b0):_0x26a365(0x1a6);return{'appCode':typeof _0x35b8f8===_0x26a365(0x1a4)&&_0x35b8f8['trim']()?_0x35b8f8[_0x26a365(0x1a9)]():undefined,'env':_0x4f1cec,'locale':_0x4cc5fb,'cookie':_0x3ed1d8,'accessKey':_0x1abe1c,'format':_0x3e29f4,'pageSize':_0x10c547,'riskLevel':_0x451b5e,'verbose':_0x309171,'apiDir':_0x4cd442,'apps':_0x300c10,'defaultApp':_0x5b584c,'currentApp':_0x59bbc1?_0xa4459b:undefined,'explicitAppName':_0x460474};}
1
+ (function(_0x25a0ab,_0x19fc0b){const _0x2a1a08=a241_0x9925,_0x5d6494=_0x25a0ab();while(!![]){try{const _0x287964=parseInt(_0x2a1a08(0x1f1))/0x1+parseInt(_0x2a1a08(0x1f9))/0x2+-parseInt(_0x2a1a08(0x204))/0x3+parseInt(_0x2a1a08(0x1ec))/0x4*(parseInt(_0x2a1a08(0x1f7))/0x5)+-parseInt(_0x2a1a08(0x205))/0x6+parseInt(_0x2a1a08(0x1e8))/0x7*(parseInt(_0x2a1a08(0x1fc))/0x8)+-parseInt(_0x2a1a08(0x211))/0x9*(parseInt(_0x2a1a08(0x1ff))/0xa);if(_0x287964===_0x19fc0b)break;else _0x5d6494['push'](_0x5d6494['shift']());}catch(_0x5ebb21){_0x5d6494['push'](_0x5d6494['shift']());}}}(a241_0x28ab,0x561cc));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';import{DEFAULT_LOVRABET_REGION,normalizeLovrabetRegion}from'../constant/region.js';import{selectConfiguredRegion}from'../config/region-config.js';function stringConfigValue(_0x47b221){const _0x47ef22=a241_0x9925;return typeof _0x47b221===_0x47ef22(0x202)&&_0x47b221[_0x47ef22(0x20b)]()?_0x47b221[_0x47ef22(0x20b)]():undefined;}function appProfiles(_0x1e2573){const _0x3eec2=a241_0x9925;return _0x1e2573[_0x3eec2(0x1ee)]&&typeof _0x1e2573[_0x3eec2(0x1ee)]==='object'?_0x1e2573[_0x3eec2(0x1ee)]:{};}function resolveDefaultAppName(_0x469443){const _0x45d64f=a241_0x9925,_0xf138a5=stringConfigValue(_0x469443[_0x45d64f(0x209)]);if(_0xf138a5)return _0xf138a5;const _0xf0c653=Object[_0x45d64f(0x1ed)](appProfiles(_0x469443));return _0xf0c653[_0x45d64f(0x20c)]===0x1?_0xf0c653[0x0]:undefined;}function a241_0x9925(_0x420a5d,_0x3b53bb){_0x420a5d=_0x420a5d-0x1e7;const _0x28ab63=a241_0x28ab();let _0x9925b1=_0x28ab63[_0x420a5d];return _0x9925b1;}function resolveTopLevelAppCode(_0x8b558d){const _0x494144=a241_0x9925;return stringConfigValue(_0x8b558d[_0x494144(0x20d)])||stringConfigValue(_0x8b558d['app']);}function normalizeRiskCeiling(_0x4de670){const _0x13a143=a241_0x9925;if(_0x4de670===undefined||_0x4de670===null)return undefined;if(_0x4de670===_0x13a143(0x20e)||_0x4de670===_0x13a143(0x1e9)||_0x4de670===_0x13a143(0x1fd))return _0x4de670;return _0x13a143(0x20e);}function a241_0x28ab(){const _0x3eb76b=['length','appcode','read','format','object','36EAyOTE','accessKey','ENV','true','1400441hGWKiP','write','COOKIE','projectConfig','8oxaoWW','keys','apps','app','source','654911vsZFSM','RISK_LEVEL','pageSize','locale','entries','APP','384945KRqnVJ','value','883090uSMHcD','apiDir','daily','16LJEGvp','high-risk-write','production','2191660qWqTkp','cookie','globalConfig','string','riskLevel','668277eniAmJ','1190526xBpORz','projectPath','region','env','defaultApp','VERBOSE','trim'];a241_0x28ab=function(){return _0x3eb76b;};return a241_0x28ab();}function resolveRiskCeiling(..._0x20f25f){const _0x46258e=a241_0x9925;let _0x36a63c;for(const _0x1ff560 of _0x20f25f){const _0x3ba821=normalizeRiskCeiling(_0x1ff560);_0x3ba821&&(!_0x36a63c||riskLevelOrder(_0x3ba821)<riskLevelOrder(_0x36a63c))&&(_0x36a63c=_0x3ba821);}return _0x36a63c??DEFAULT_CONFIG_VALUES[_0x46258e(0x203)];}export function resolveAppConfig({raw:_0x102dd1,flags:_0x4adcbb,layers:_0x125e47,readEnv:_0x15fd6c}){const _0x9b42c6=a241_0x9925,_0x307b83=_0x125e47?.[_0x9b42c6(0x1eb)]??{},_0x401357=_0x125e47?.['globalConfig']??{},_0x3dc1ae=!!_0x125e47?.[_0x9b42c6(0x206)]||Object[_0x9b42c6(0x1ed)](_0x307b83)[_0x9b42c6(0x20c)]>0x0,_0xc8bec8=!_0x3dc1ae,_0x13a2ad=_0x3dc1ae?resolveDefaultAppName(_0x307b83):undefined,_0x5aff99=_0xc8bec8?resolveDefaultAppName(_0x401357):undefined,_0x556d17=stringConfigValue(_0x4adcbb[_0x9b42c6(0x1ef)]),_0x2da9fc=_0x15fd6c(_0x9b42c6(0x1f6)),_0x579b82={};if(_0x102dd1[_0x9b42c6(0x1ee)]&&typeof _0x102dd1['apps']==='object')for(const [_0x507ccf,_0x298704]of Object[_0x9b42c6(0x1f5)](_0x102dd1['apps'])){_0x298704&&typeof _0x298704===_0x9b42c6(0x210)&&_0x298704[_0x9b42c6(0x20d)]&&(_0x579b82[_0x507ccf]=_0x298704);}const _0x302d8f=_0x13a2ad||_0x5aff99||resolveDefaultAppName(_0x102dd1),_0x5e54f7=Object[_0x9b42c6(0x1ed)](_0x579b82)[_0x9b42c6(0x20c)]>0x0,_0x2f849=_0x556d17||_0x13a2ad||_0x2da9fc||_0x5aff99||_0x302d8f||undefined,_0x17a934=stringConfigValue(_0x4adcbb['appcode']),_0xc95b06=_0x17a934?Object[_0x9b42c6(0x1f5)](_0x579b82)['find'](([,_0x56e99f])=>_0x56e99f?.[_0x9b42c6(0x20d)]===_0x17a934):undefined,_0x307165=_0xc95b06?.[0x0],_0x34d823=_0xc95b06?.[0x1],_0x54d9aa=_0x17a934?_0x307165:_0x2f849;let _0x499ee8=_0x54d9aa&&_0x579b82[_0x54d9aa]?_0x579b82[_0x54d9aa]:undefined;_0x17a934&&_0x34d823&&(_0x499ee8=_0x34d823);const _0x53fb26=_0x17a934?_0x34d823??_0x499ee8:_0x499ee8,_0x285dd9=!_0x556d17&&!_0x13a2ad&&_0x2da9fc&&_0x54d9aa===_0x2da9fc,_0x11fd59=_0x556d17||(_0x285dd9?_0x2da9fc:undefined)||(_0x17a934?_0x307165:undefined),_0x189b9c=_0x53fb26?.[_0x9b42c6(0x20d)],_0x3f7e4b=_0x3dc1ae?resolveTopLevelAppCode(_0x307b83):undefined,_0x48faf1=_0xc8bec8?resolveTopLevelAppCode(_0x401357):undefined,_0x362623=_0x556d17||_0x13a2ad?_0x189b9c:undefined,_0x56e1d2=!_0x556d17&&!_0x13a2ad?_0x189b9c:undefined,_0x3d2f4f=_0x17a934||_0x362623||_0x3f7e4b||_0x56e1d2||_0x48faf1||undefined,_0x4db0eb=_0x3dc1ae?stringConfigValue(_0x307b83[_0x9b42c6(0x208)]):undefined,_0x2de782=_0xc8bec8?stringConfigValue(_0x401357[_0x9b42c6(0x208)]):undefined,_0x105366=_0x4adcbb[_0x9b42c6(0x208)]||_0x53fb26?.[_0x9b42c6(0x208)]||_0x4db0eb||_0x15fd6c(_0x9b42c6(0x213))||_0x2de782||_0x102dd1[_0x9b42c6(0x208)]||DEFAULT_CONFIG_VALUES[_0x9b42c6(0x208)],_0x83e4cd=_0x53fb26?.['locale']||_0x102dd1[_0x9b42c6(0x1f4)]||DEFAULT_CONFIG_VALUES[_0x9b42c6(0x1f4)],_0x4eed5b=_0x15fd6c(_0x9b42c6(0x1ea))||_0x53fb26?.['cookie']||_0x102dd1[_0x9b42c6(0x200)]||undefined,_0x198b07=_0x15fd6c('ACCESS_KEY')||_0x53fb26?.[_0x9b42c6(0x212)]||_0x102dd1['accessKey']||undefined,_0xf7e8c=_0x4adcbb[_0x9b42c6(0x20f)]||_0x15fd6c('FORMAT')||_0x53fb26?.[_0x9b42c6(0x20f)]||_0x102dd1[_0x9b42c6(0x20f)],_0x8a59dc=normalizeLegacyOutputFormat(_0xf7e8c),_0x40634d=_0x15fd6c('PAGE_SIZE')||_0x53fb26?.[_0x9b42c6(0x1f3)]||_0x102dd1[_0x9b42c6(0x1f3)],_0x4e2757=_0x40634d?Number(_0x40634d)||undefined:undefined,_0x44fcb2=_0x125e47?[_0x125e47[_0x9b42c6(0x201)][_0x9b42c6(0x203)],_0x125e47['projectConfig'][_0x9b42c6(0x203)]]:[_0x102dd1['riskLevel']],_0xa4a837=resolveRiskCeiling(..._0x44fcb2,_0x53fb26?.[_0x9b42c6(0x203)]),_0x44d3c3=resolveRiskCeiling(_0xa4a837,_0x15fd6c(_0x9b42c6(0x1f2))),_0xd5b4e4=_0x15fd6c(_0x9b42c6(0x20a)),_0x320e86=_0xd5b4e4==='1'||_0xd5b4e4===_0x9b42c6(0x1e7),_0x64d052=_0x53fb26?.[_0x9b42c6(0x1fa)]||_0x102dd1[_0x9b42c6(0x1fa)]||DEFAULT_CONFIG_VALUES[_0x9b42c6(0x1fa)],_0x284c6f=selectConfiguredRegion({'appRegion':_0x53fb26?.['region'],'projectRegion':_0x3dc1ae?_0x307b83[_0x9b42c6(0x207)]:undefined,'globalRegion':_0x3dc1ae||_0xc8bec8?_0x401357['region']:undefined,'mergedRegion':_0x102dd1['region']}),_0x2a0335=normalizeLovrabetRegion(_0x284c6f[_0x9b42c6(0x1f8)])??DEFAULT_LOVRABET_REGION,_0x2d25b5=isDaily(normalizeEnv(String(_0x105366)))?_0x9b42c6(0x1fb):_0x9b42c6(0x1fe);return{'appCode':typeof _0x3d2f4f==='string'&&_0x3d2f4f[_0x9b42c6(0x20b)]()?_0x3d2f4f[_0x9b42c6(0x20b)]():undefined,'region':_0x2a0335,'regionConfiguredValue':_0x284c6f['value'],'regionSource':_0x284c6f[_0x9b42c6(0x1f0)],'env':_0x2d25b5,'locale':_0x83e4cd,'cookie':_0x4eed5b,'accessKey':_0x198b07,'format':_0x8a59dc,'pageSize':_0x4e2757,'riskLevel':_0x44d3c3,'verbose':_0x320e86,'apiDir':_0x64d052,'apps':_0x579b82,'defaultApp':_0x302d8f,'currentApp':_0x5e54f7?_0x54d9aa:undefined,'explicitAppName':_0x11fd59};}
@@ -1 +1 @@
1
- (function(_0x761a9a,_0x48f304){const _0x4d7313=a241_0x582b,_0x5f110b=_0x761a9a();while(!![]){try{const _0xdd0754=parseInt(_0x4d7313(0x6b))/0x1+-parseInt(_0x4d7313(0x6a))/0x2+parseInt(_0x4d7313(0x70))/0x3+-parseInt(_0x4d7313(0x68))/0x4*(-parseInt(_0x4d7313(0x6f))/0x5)+parseInt(_0x4d7313(0x6c))/0x6*(-parseInt(_0x4d7313(0x6d))/0x7)+-parseInt(_0x4d7313(0x67))/0x8+-parseInt(_0x4d7313(0x6e))/0x9;if(_0xdd0754===_0x48f304)break;else _0x5f110b['push'](_0x5f110b['shift']());}catch(_0x38b138){_0x5f110b['push'](_0x5f110b['shift']());}}}(a241_0x46c0,0xe3c92));function a241_0x582b(_0x329c75,_0x327600){_0x329c75=_0x329c75-0x67;const _0x46c093=a241_0x46c0();let _0x582bae=_0x46c093[_0x329c75];return _0x582bae;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x19f31b){const _0x71de8e=a241_0x582b,{getCookie:_0x386b90}=await import(_0x71de8e(0x69)),_0xfd0afe=_0x19f31b['cookie']||_0x386b90(),_0x4a2631=_0xfd0afe?await getIsSessionValid():![];return{'cookie':_0xfd0afe,'isLoggedIn':_0x4a2631,async 'getOrLogin'(){if(_0xfd0afe&&_0x4a2631)return _0xfd0afe;throw CliErrors['authRequired']();}};}function a241_0x46c0(){const _0x410563=['364BEfdNQ','430461jbEYUw','55CmdKHp','3642909aVMfhG','6237808qGrNPu','498436ZtZTqH','../auth/get-cookie.js','2588120FhAsXe','1486691ISTlNQ','117354YZaomj'];a241_0x46c0=function(){return _0x410563;};return a241_0x46c0();}
1
+ (function(_0x57a91b,_0x4b50de){const _0x54aeb0=a242_0x1e1c,_0xe00e0a=_0x57a91b();while(!![]){try{const _0x498c98=parseInt(_0x54aeb0(0x177))/0x1+-parseInt(_0x54aeb0(0x17a))/0x2+parseInt(_0x54aeb0(0x17b))/0x3+-parseInt(_0x54aeb0(0x178))/0x4*(-parseInt(_0x54aeb0(0x17c))/0x5)+-parseInt(_0x54aeb0(0x172))/0x6+-parseInt(_0x54aeb0(0x176))/0x7+parseInt(_0x54aeb0(0x173))/0x8;if(_0x498c98===_0x4b50de)break;else _0xe00e0a['push'](_0xe00e0a['shift']());}catch(_0x34f072){_0xe00e0a['push'](_0xe00e0a['shift']());}}}(a242_0x7073,0xc1fd6));function a242_0x1e1c(_0x2c74a9,_0x379e4d){_0x2c74a9=_0x2c74a9-0x172;const _0x707368=a242_0x7073();let _0x1e1c46=_0x707368[_0x2c74a9];return _0x1e1c46;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x4c4fa1){const _0x5c7795=a242_0x1e1c,{getCookie:_0x277bd8}=await import(_0x5c7795(0x174)),_0x11041e=_0x4c4fa1[_0x5c7795(0x175)]||_0x277bd8(),_0xa64a17=_0x11041e?await getIsSessionValid():![];return{'cookie':_0x11041e,'isLoggedIn':_0xa64a17,async 'getOrLogin'(){const _0x12947d=_0x5c7795;if(_0x11041e&&_0xa64a17)return _0x11041e;throw CliErrors[_0x12947d(0x179)]();}};}function a242_0x7073(){const _0x1a36e7=['1028868dmSuGI','authRequired','1061774pJxYVe','959943AwKasr','10zuMwsZ','1029804DsDMkv','7519248xRpNoX','../auth/get-cookie.js','cookie','10987319hHZHOw','1292399wavWYV'];a242_0x7073=function(){return _0x1a36e7;};return a242_0x7073();}
@@ -1 +1 @@
1
- const a242_0x357cf0=a242_0x56ef;(function(_0x8ec9e5,_0x2e6ebd){const _0x28b038=a242_0x56ef,_0x2106c1=_0x8ec9e5();while(!![]){try{const _0x370b63=parseInt(_0x28b038(0x132))/0x1+-parseInt(_0x28b038(0x144))/0x2+parseInt(_0x28b038(0x13e))/0x3+-parseInt(_0x28b038(0x12e))/0x4+parseInt(_0x28b038(0x11d))/0x5+-parseInt(_0x28b038(0x125))/0x6*(-parseInt(_0x28b038(0x136))/0x7)+parseInt(_0x28b038(0x124))/0x8*(-parseInt(_0x28b038(0x14b))/0x9);if(_0x370b63===_0x2e6ebd)break;else _0x2106c1['push'](_0x2106c1['shift']());}catch(_0x3f8d88){_0x2106c1['push'](_0x2106c1['shift']());}}}(a242_0xbc5b,0x2ce98));function a242_0x56ef(_0x2b1ce9,_0x26600c){_0x2b1ce9=_0x2b1ce9-0x119;const _0xbc5b6f=a242_0xbc5b();let _0x56efcf=_0xbc5b6f[_0x2b1ce9];return _0x56efcf;}function a242_0xbc5b(){const _0x196089=['silent','appcode','object','region','4918ouSvdl','userDomain','pageSize','length','project','skillDomain','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','9WWTNuA','apiDomain','Global','config','cookie','accessKey','1566460xsvWYB','runtimeDomain','kbDomain','stringify','status','error','inherit','5939816YLPbHj','40908kjHVLR','cwd','message','migrated','set','localDomain','format','app','keys','152680ZlCxHK','locale','warn','projectPath','342896rmBusw','trim','missing','defaultApp','119qbuaZz','data','appDomain','empty','utf8','riskLevel','\x0a\x20\x20','parse','584916VIbDGy','apps'];a242_0xbc5b=function(){return _0x196089;};return a242_0xbc5b();}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='.rabetbase.json';export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x512203){for(const _0x16754d of CONFIG_NAMES){const _0x32e2a2=resolve(_0x512203,_0x16754d);if(existsSync(_0x32e2a2))return _0x32e2a2;}return undefined;}export function findProjectRootDirectory(_0x5f15ea=process['cwd']()){let _0x22b3a6=resolve(_0x5f15ea);const {root:_0x3d3557}=parse(_0x22b3a6),_0x1d3621=homedir();while(!![]){if(resolveConfigPath(_0x22b3a6)){if(_0x22b3a6===_0x1d3621)break;return _0x22b3a6;}if(_0x22b3a6===_0x3d3557||_0x22b3a6===_0x1d3621)break;const _0x490b9e=dirname(_0x22b3a6);if(_0x490b9e===_0x22b3a6)break;_0x22b3a6=_0x490b9e;}return resolve(_0x5f15ea);}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x505dfc){const _0x531879=a242_0x56ef;if(!existsSync(_0x505dfc))return{'status':_0x531879(0x134)};try{const _0xd24713=readFileSync(_0x505dfc,{'encoding':'utf8'});if(!_0xd24713?.[_0x531879(0x133)]())return{'status':_0x531879(0x139)};const _0x26ea12=JSON[_0x531879(0x13d)](_0xd24713);return{'status':'ok','data':_0x26ea12};}catch(_0x3d1eee){return{'status':_0x531879(0x122),'message':_0x3d1eee instanceof Error?_0x3d1eee[_0x531879(0x127)]:String(_0x3d1eee)};}}function parseCliConfigJsonFile(_0x14d673,_0x118da2,_0x4a764d){const _0x56ee07=a242_0x56ef,_0x59e66e=inspectCliConfigJsonFile(_0x14d673);if(_0x59e66e[_0x56ee07(0x121)]===_0x56ee07(0x134)||_0x59e66e[_0x56ee07(0x121)]===_0x56ee07(0x139))return{};if(_0x59e66e['status']==='ok')return _0x59e66e[_0x56ee07(0x137)];return _0x118da2===_0x56ee07(0x130)&&_0x4a764d&&console['error'](CLI_BIN_NAME+':\x20'+_0x4a764d+_0x56ee07(0x14a)+_0x14d673+_0x56ee07(0x13c)+_0x59e66e[_0x56ee07(0x127)]),{};}function normalizeLegacyConfigShape(_0x2151ca){const _0x1831fc=a242_0x56ef;if(!_0x2151ca||typeof _0x2151ca!==_0x1831fc(0x142))return{'config':{},'migrated':![]};const _0x4355e2={..._0x2151ca},_0x55a4ac=_0x4355e2[_0x1831fc(0x13f)]&&typeof _0x4355e2[_0x1831fc(0x13f)]===_0x1831fc(0x142)?{..._0x4355e2[_0x1831fc(0x13f)]}:{},_0x30f8b3=Object[_0x1831fc(0x12d)](_0x55a4ac)[_0x1831fc(0x147)],_0x40b974=_0x4355e2[_0x1831fc(0x141)]||_0x4355e2[_0x1831fc(0x12c)];let _0xf253f7=![];if(_0x40b974&&_0x30f8b3===0x0){const _0x2cf4e7=typeof _0x4355e2['defaultApp']==='string'&&_0x4355e2[_0x1831fc(0x135)][_0x1831fc(0x133)]()?_0x4355e2[_0x1831fc(0x135)]:String(_0x40b974)['trim']();_0x55a4ac[_0x2cf4e7]={'appcode':String(_0x40b974)[_0x1831fc(0x133)](),..._0x4355e2['env']!=null?{'env':_0x4355e2['env']}:{},..._0x4355e2['apiDir']!=null?{'apiDir':_0x4355e2['apiDir']}:{},..._0x4355e2[_0x1831fc(0x11b)]!=null?{'cookie':_0x4355e2[_0x1831fc(0x11b)]}:{},..._0x4355e2[_0x1831fc(0x11c)]!=null?{'accessKey':_0x4355e2[_0x1831fc(0x11c)]}:{},..._0x4355e2[_0x1831fc(0x12b)]!=null?{'format':_0x4355e2[_0x1831fc(0x12b)]}:{},..._0x4355e2[_0x1831fc(0x146)]!=null?{'pageSize':_0x4355e2[_0x1831fc(0x146)]}:{},..._0x4355e2[_0x1831fc(0x13b)]!=null?{'riskLevel':_0x4355e2[_0x1831fc(0x13b)]}:{},..._0x4355e2[_0x1831fc(0x12f)]!=null?{'locale':_0x4355e2[_0x1831fc(0x12f)]}:{}},_0x4355e2[_0x1831fc(0x13f)]=_0x55a4ac,delete _0x4355e2[_0x1831fc(0x135)],_0xf253f7=!![];}return(_0x1831fc(0x141)in _0x4355e2||_0x1831fc(0x12c)in _0x4355e2)&&(delete _0x4355e2[_0x1831fc(0x141)],delete _0x4355e2[_0x1831fc(0x12c)],_0xf253f7=!![]),{'config':_0x4355e2,'migrated':_0xf253f7};}function writeNormalizedConfigIfNeeded(_0x31b185,_0x468f6b){const _0x58c777=a242_0x56ef,_0x4096c6=JSON[_0x58c777(0x120)](_0x468f6b,null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x31b185)===_0x4096c6)return;writeConfigFile(_0x31b185,_0x468f6b),normalizedWriteCache[_0x58c777(0x129)](_0x31b185,_0x4096c6);}function parseAndNormalizeConfig(_0x27c00d,_0x25ebd7,_0x3d2522){const _0x275e00=a242_0x56ef,_0x3089eb=parseCliConfigJsonFile(_0x27c00d,_0x25ebd7,_0x3d2522),_0x283795=normalizeLegacyConfigShape(_0x3089eb);if(_0x283795[_0x275e00(0x128)])try{writeNormalizedConfigIfNeeded(_0x27c00d,_0x283795[_0x275e00(0x11a)]);}catch{}return _0x283795[_0x275e00(0x11a)];}export function loadRawConfigLayers(_0x261acb){const _0x19720f=a242_0x56ef;let _0x171e0c={},_0x411898={};const _0x40a28c=resolveConfigPath(homedir());_0x40a28c&&(_0x171e0c=parseAndNormalizeConfig(_0x40a28c,'warn',_0x19720f(0x119)));const _0x3a9747=_0x261acb??findProjectRootDirectory(),_0x522142=resolveConfigPath(_0x3a9747);return _0x522142&&(_0x411898=parseAndNormalizeConfig(_0x522142,_0x19720f(0x130),'Project')),{'globalPath':_0x40a28c,'projectPath':_0x522142,'globalConfig':_0x171e0c,'projectConfig':_0x411898};}const INHERIT_WHITELIST=['cookie',a242_0x357cf0(0x11c),'locale',a242_0x357cf0(0x12b),a242_0x357cf0(0x13b),'pageSize',a242_0x357cf0(0x143),'routing',a242_0x357cf0(0x145),a242_0x357cf0(0x14c),a242_0x357cf0(0x11e),a242_0x357cf0(0x149),a242_0x357cf0(0x11f),a242_0x357cf0(0x138),a242_0x357cf0(0x12a),'certificateDomain'];export function mergeRawConfigLayers(_0x35ec65){const _0x5b2ed1=a242_0x357cf0,{globalConfig:_0x221e44,projectConfig:_0x7d661f}=_0x35ec65,_0xe41b8=!!_0x35ec65[_0x5b2ed1(0x131)]||Object['keys'](_0x7d661f)['length']>0x0;if(!_0xe41b8)return mergeGlobalOnly(_0x221e44);return mergeProjectFirst(_0x221e44,_0x7d661f);}function mergeGlobalOnly(_0x31a413){const _0x321d2a=a242_0x357cf0,_0x50db48={..._0x31a413};delete _0x50db48[_0x321d2a(0x123)];const _0x46e4ea=_0x31a413[_0x321d2a(0x13f)]&&typeof _0x31a413['apps']===_0x321d2a(0x142)?_0x31a413[_0x321d2a(0x13f)]:{};if(Object[_0x321d2a(0x12d)](_0x46e4ea)[_0x321d2a(0x147)]>0x0)_0x50db48[_0x321d2a(0x13f)]=_0x46e4ea;if(_0x31a413[_0x321d2a(0x135)])_0x50db48[_0x321d2a(0x135)]=_0x31a413['defaultApp'];return _0x50db48;}function mergeProjectFirst(_0x2821ff,_0x265518){const _0x948fa2=a242_0x357cf0,_0x38fac4={..._0x265518};delete _0x38fac4[_0x948fa2(0x123)];for(const _0x5944f2 of INHERIT_WHITELIST){!(_0x5944f2 in _0x38fac4)&&_0x5944f2 in _0x2821ff&&(_0x38fac4[_0x5944f2]=_0x2821ff[_0x5944f2]);}const _0x4b3028=_0x265518[_0x948fa2(0x13f)]&&typeof _0x265518[_0x948fa2(0x13f)]===_0x948fa2(0x142)?_0x265518[_0x948fa2(0x13f)]:{};return Object[_0x948fa2(0x12d)](_0x4b3028)['length']>0x0?_0x38fac4[_0x948fa2(0x13f)]=_0x4b3028:delete _0x38fac4['apps'],_0x948fa2(0x135)in _0x265518?_0x38fac4[_0x948fa2(0x135)]=_0x265518['defaultApp']:delete _0x38fac4[_0x948fa2(0x135)],_0x38fac4;}export function readRawConfigWithLayers(_0x4fb1f6){const _0x569439=loadRawConfigLayers(_0x4fb1f6);return{'config':mergeRawConfigLayers(_0x569439),'layers':_0x569439};}export function readRawConfig(_0x4d7b8a){return mergeRawConfigLayers(loadRawConfigLayers(_0x4d7b8a));}export function readConfigFile(_0x2258bf){const _0x21c2ff=a242_0x357cf0;return parseAndNormalizeConfig(_0x2258bf,_0x21c2ff(0x140));}export function writeConfigFile(_0x12cc82,_0x5aeb1a){const _0x116ae2=a242_0x357cf0,_0x182000=dirname(_0x12cc82);!existsSync(_0x182000)&&mkdirSync(_0x182000,{'recursive':!![]});const _0x16287d=_0x12cc82+'.tmp';try{writeFileSync(_0x16287d,JSON[_0x116ae2(0x120)](_0x5aeb1a,null,0x2)+'\x0a',{'encoding':_0x116ae2(0x13a),'mode':0x180}),renameSync(_0x16287d,_0x12cc82);}catch(_0x23aad8){try{unlinkSync(_0x16287d);}catch{}throw _0x23aad8;}}export function resolveWriteConfigPath(_0x2302d5){const _0x6dcd6a=a242_0x357cf0,_0x5bb10b=_0x2302d5===_0x6dcd6a(0x148)?process[_0x6dcd6a(0x126)]():homedir(),_0x27f436=resolveConfigPath(_0x5bb10b);return _0x27f436??resolve(_0x5bb10b,NEW_CONFIG_NAME);}
1
+ const a243_0x124cd6=a243_0x2598;(function(_0x446979,_0x1c0817){const _0x3448f7=a243_0x2598,_0x54059c=_0x446979();while(!![]){try{const _0x4421f8=-parseInt(_0x3448f7(0x70))/0x1+-parseInt(_0x3448f7(0x68))/0x2+parseInt(_0x3448f7(0x66))/0x3+-parseInt(_0x3448f7(0x65))/0x4+parseInt(_0x3448f7(0x8e))/0x5+parseInt(_0x3448f7(0x7c))/0x6+-parseInt(_0x3448f7(0x7d))/0x7*(-parseInt(_0x3448f7(0x84))/0x8);if(_0x4421f8===_0x1c0817)break;else _0x54059c['push'](_0x54059c['shift']());}catch(_0x49868f){_0x54059c['push'](_0x54059c['shift']());}}}(a243_0x55bd,0x5a30f));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';import{normalizeConfigForWrite}from'../config/schema.js';export const NEW_CONFIG_NAME=a243_0x124cd6(0x7b);function a243_0x55bd(){const _0x30c6c8=['appcode','object','apiDomain','apiDir','inherit','.rabetbase.json','2963346ImTCqO','2779RyUeJl','cwd','message','Global','utf8','migrated','routing','12088BpJsSE','string','warn','project','region','config','parse','locale','status','length','2483325NHFELu','error','keys','silent','appDomain','set','format','Project','skillDomain','pageSize','empty','1465960Spkzrg','588042HNJrav','apps','1052182bsHTUt','localDomain','userDomain','stringify','.tmp','data','riskLevel','projectPath','524433WTwEyy','accessKey','cookie','trim','app','defaultApp'];a243_0x55bd=function(){return _0x30c6c8;};return a243_0x55bd();}export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x4ff5b2){for(const _0x529521 of CONFIG_NAMES){const _0x15d093=resolve(_0x4ff5b2,_0x529521);if(existsSync(_0x15d093))return _0x15d093;}return undefined;}export function findProjectRootDirectory(_0x5cf2ba=process[a243_0x124cd6(0x7e)]()){let _0x678389=resolve(_0x5cf2ba);const {root:_0x28bce4}=parse(_0x678389),_0x3c8705=homedir();while(!![]){if(resolveConfigPath(_0x678389)){if(_0x678389===_0x3c8705)break;return _0x678389;}if(_0x678389===_0x28bce4||_0x678389===_0x3c8705)break;const _0xbbf2f0=dirname(_0x678389);if(_0xbbf2f0===_0x678389)break;_0x678389=_0xbbf2f0;}return resolve(_0x5cf2ba);}export function getProjectConfigPath(){const _0x3b6bfa=a243_0x124cd6;return resolveConfigPath(process[_0x3b6bfa(0x7e)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}function a243_0x2598(_0x1cf3f2,_0x716d60){_0x1cf3f2=_0x1cf3f2-0x65;const _0x55bd03=a243_0x55bd();let _0x259885=_0x55bd03[_0x1cf3f2];return _0x259885;}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x142118){const _0x518ce9=a243_0x124cd6;if(!existsSync(_0x142118))return{'status':'missing'};try{const _0x5acd11=readFileSync(_0x142118,{'encoding':_0x518ce9(0x81)});if(!_0x5acd11?.[_0x518ce9(0x73)]())return{'status':'empty'};const _0x21088a=JSON[_0x518ce9(0x8a)](_0x5acd11);return{'status':'ok','data':_0x21088a};}catch(_0x1cd941){return{'status':_0x518ce9(0x8f),'message':_0x1cd941 instanceof Error?_0x1cd941['message']:String(_0x1cd941)};}}function parseCliConfigJsonFile(_0x527dc7,_0x427891,_0x5f0b29){const _0x4233c8=a243_0x124cd6,_0x8d00be=inspectCliConfigJsonFile(_0x527dc7);if(_0x8d00be[_0x4233c8(0x8c)]==='missing'||_0x8d00be[_0x4233c8(0x8c)]===_0x4233c8(0x98))return{};if(_0x8d00be['status']==='ok')return _0x8d00be[_0x4233c8(0x6d)];return _0x427891===_0x4233c8(0x86)&&_0x5f0b29&&console['error'](CLI_BIN_NAME+':\x20'+_0x5f0b29+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x527dc7+'\x0a\x20\x20'+_0x8d00be[_0x4233c8(0x7f)]),{};}function normalizeLegacyConfigShape(_0x1f98b9){const _0x52e601=a243_0x124cd6;if(!_0x1f98b9||typeof _0x1f98b9!==_0x52e601(0x77))return{'config':{},'migrated':![]};const _0x431613={..._0x1f98b9},_0x58c143=_0x431613['apps']&&typeof _0x431613[_0x52e601(0x67)]===_0x52e601(0x77)?{..._0x431613[_0x52e601(0x67)]}:{},_0x49001f=Object['keys'](_0x58c143)['length'],_0x2fe96c=_0x431613[_0x52e601(0x76)]||_0x431613[_0x52e601(0x74)];let _0x38c536=![];if(_0x2fe96c&&_0x49001f===0x0){const _0x262bd4=typeof _0x431613['defaultApp']===_0x52e601(0x85)&&_0x431613[_0x52e601(0x75)][_0x52e601(0x73)]()?_0x431613[_0x52e601(0x75)]:String(_0x2fe96c)[_0x52e601(0x73)]();_0x58c143[_0x262bd4]={'appcode':String(_0x2fe96c)[_0x52e601(0x73)](),..._0x431613['env']!=null?{'env':_0x431613['env']}:{},..._0x431613[_0x52e601(0x79)]!=null?{'apiDir':_0x431613[_0x52e601(0x79)]}:{},..._0x431613[_0x52e601(0x72)]!=null?{'cookie':_0x431613['cookie']}:{},..._0x431613[_0x52e601(0x71)]!=null?{'accessKey':_0x431613[_0x52e601(0x71)]}:{},..._0x431613[_0x52e601(0x94)]!=null?{'format':_0x431613[_0x52e601(0x94)]}:{},..._0x431613[_0x52e601(0x97)]!=null?{'pageSize':_0x431613[_0x52e601(0x97)]}:{},..._0x431613['riskLevel']!=null?{'riskLevel':_0x431613[_0x52e601(0x6e)]}:{},..._0x431613[_0x52e601(0x8b)]!=null?{'locale':_0x431613[_0x52e601(0x8b)]}:{}},_0x431613['apps']=_0x58c143,delete _0x431613['defaultApp'],_0x38c536=!![];}return(_0x52e601(0x76)in _0x431613||'app'in _0x431613)&&(delete _0x431613[_0x52e601(0x76)],delete _0x431613[_0x52e601(0x74)],_0x38c536=!![]),{'config':_0x431613,'migrated':_0x38c536};}function writeNormalizedConfigIfNeeded(_0x4ecdcc,_0x314ca8){const _0x3783a3=a243_0x124cd6,_0x21b32d=JSON[_0x3783a3(0x6b)](normalizeConfigForWrite(_0x314ca8),null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x4ecdcc)===_0x21b32d)return;writeConfigFile(_0x4ecdcc,_0x314ca8),normalizedWriteCache[_0x3783a3(0x93)](_0x4ecdcc,_0x21b32d);}function parseAndNormalizeConfig(_0xebf1a5,_0x657e01,_0x2295df){const _0x394bc6=a243_0x124cd6,_0x4f3122=parseCliConfigJsonFile(_0xebf1a5,_0x657e01,_0x2295df),_0x59d55f=normalizeLegacyConfigShape(_0x4f3122);if(_0x59d55f[_0x394bc6(0x82)])try{writeNormalizedConfigIfNeeded(_0xebf1a5,_0x59d55f[_0x394bc6(0x89)]);}catch{}return _0x59d55f[_0x394bc6(0x89)];}export function loadRawConfigLayers(_0x3252c4){const _0x4d287f=a243_0x124cd6;let _0x21392f={},_0x1cf747={};const _0x1b2b80=resolveConfigPath(homedir());_0x1b2b80&&(_0x21392f=parseAndNormalizeConfig(_0x1b2b80,'warn',_0x4d287f(0x80)));const _0xaf544e=_0x3252c4??findProjectRootDirectory(),_0xee8c91=resolveConfigPath(_0xaf544e);return _0xee8c91&&(_0x1cf747=parseAndNormalizeConfig(_0xee8c91,_0x4d287f(0x86),_0x4d287f(0x95))),{'globalPath':_0x1b2b80,'projectPath':_0xee8c91,'globalConfig':_0x21392f,'projectConfig':_0x1cf747};}const INHERIT_WHITELIST=['cookie',a243_0x124cd6(0x71),a243_0x124cd6(0x8b),a243_0x124cd6(0x94),'riskLevel',a243_0x124cd6(0x97),a243_0x124cd6(0x88),a243_0x124cd6(0x83),a243_0x124cd6(0x6a),a243_0x124cd6(0x78),'runtimeDomain',a243_0x124cd6(0x96),'kbDomain',a243_0x124cd6(0x92),a243_0x124cd6(0x69),'certificateDomain'];export function mergeRawConfigLayers(_0x75b351){const _0x5d489d=a243_0x124cd6,{globalConfig:_0x30d0c7,projectConfig:_0x1d695a}=_0x75b351,_0x28c294=!!_0x75b351[_0x5d489d(0x6f)]||Object[_0x5d489d(0x90)](_0x1d695a)[_0x5d489d(0x8d)]>0x0;if(!_0x28c294)return mergeGlobalOnly(_0x30d0c7);return mergeProjectFirst(_0x30d0c7,_0x1d695a);}function mergeGlobalOnly(_0x5ce961){const _0x1e2de0=a243_0x124cd6,_0x1e575b={..._0x5ce961};delete _0x1e575b['inherit'];const _0x259359=_0x5ce961['apps']&&typeof _0x5ce961['apps']===_0x1e2de0(0x77)?_0x5ce961[_0x1e2de0(0x67)]:{};if(Object[_0x1e2de0(0x90)](_0x259359)[_0x1e2de0(0x8d)]>0x0)_0x1e575b['apps']=_0x259359;if(_0x5ce961[_0x1e2de0(0x75)])_0x1e575b['defaultApp']=_0x5ce961[_0x1e2de0(0x75)];return _0x1e575b;}function mergeProjectFirst(_0x2a730f,_0x484b0f){const _0x386d56=a243_0x124cd6,_0xe7ed14={..._0x484b0f};delete _0xe7ed14[_0x386d56(0x7a)];for(const _0x424f34 of INHERIT_WHITELIST){!(_0x424f34 in _0xe7ed14)&&_0x424f34 in _0x2a730f&&(_0xe7ed14[_0x424f34]=_0x2a730f[_0x424f34]);}const _0x27ff41=_0x484b0f[_0x386d56(0x67)]&&typeof _0x484b0f[_0x386d56(0x67)]==='object'?_0x484b0f['apps']:{};return Object[_0x386d56(0x90)](_0x27ff41)[_0x386d56(0x8d)]>0x0?_0xe7ed14[_0x386d56(0x67)]=_0x27ff41:delete _0xe7ed14[_0x386d56(0x67)],'defaultApp'in _0x484b0f?_0xe7ed14[_0x386d56(0x75)]=_0x484b0f['defaultApp']:delete _0xe7ed14[_0x386d56(0x75)],_0xe7ed14;}export function readRawConfigWithLayers(_0x4176fb){const _0x44fc7c=loadRawConfigLayers(_0x4176fb);return{'config':mergeRawConfigLayers(_0x44fc7c),'layers':_0x44fc7c};}export function readRawConfig(_0x1b1c15){return mergeRawConfigLayers(loadRawConfigLayers(_0x1b1c15));}export function readConfigFile(_0xfecc93){const _0x516264=a243_0x124cd6;return parseAndNormalizeConfig(_0xfecc93,_0x516264(0x91));}export function writeConfigFile(_0x4e2981,_0xec49c9){const _0x28376c=a243_0x124cd6,_0x5df883=dirname(_0x4e2981);!existsSync(_0x5df883)&&mkdirSync(_0x5df883,{'recursive':!![]});const _0x3ea229=_0x4e2981+_0x28376c(0x6c);try{const _0x120cba=normalizeConfigForWrite(_0xec49c9);writeFileSync(_0x3ea229,JSON[_0x28376c(0x6b)](_0x120cba,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180}),renameSync(_0x3ea229,_0x4e2981);}catch(_0x4a6d12){try{unlinkSync(_0x3ea229);}catch{}throw _0x4a6d12;}}export function resolveWriteConfigPath(_0x37de11){const _0xf84f60=a243_0x124cd6,_0x523772=_0x37de11===_0xf84f60(0x87)?process['cwd']():homedir(),_0xee8e54=resolveConfigPath(_0x523772);return _0xee8e54??resolve(_0x523772,NEW_CONFIG_NAME);}
package/lib/context.d.ts CHANGED
@@ -8,10 +8,17 @@
8
8
  import { type AppProfile } from "./context/app-resolver.js";
9
9
  import { CONFIG_NAMES, NEW_CONFIG_NAME, findProjectRootDirectory, getGlobalConfigPath, getProjectConfigPath, inspectCliConfigJsonFile, isInProject, loadRawConfigLayers, mergeRawConfigLayers, readConfigFile, readRawConfig, readRawConfigWithLayers, resolveConfigPath, resolveWriteConfigPath, writeConfigFile, type CliConfigJsonInspect, type RawConfigLayers } from "./context/config-loader.js";
10
10
  import type { OutputFormat, Risk } from "./framework/types.js";
11
+ import { type LovrabetRegion } from "./constant/region.js";
12
+ import { type RegionConfigSource } from "./config/region-config.js";
11
13
  import { logger } from "./utils/logger.js";
12
14
  export { CONFIG_NAMES, NEW_CONFIG_NAME, findProjectRootDirectory, getGlobalConfigPath, getProjectConfigPath, inspectCliConfigJsonFile, isInProject, loadRawConfigLayers, mergeRawConfigLayers, readConfigFile, readRawConfig, readRawConfigWithLayers, resolveConfigPath, resolveWriteConfigPath, writeConfigFile, type AppProfile, type CliConfigJsonInspect, type RawConfigLayers, };
13
15
  export interface CLIConfig {
14
16
  appCode: string | undefined;
17
+ /** Effective country/region after the selected app profile override. */
18
+ region?: LovrabetRegion;
19
+ /** Raw selected value retained so doctor can report invalid manual edits. */
20
+ regionConfiguredValue?: unknown;
21
+ regionSource?: RegionConfigSource;
15
22
  env: "production" | "daily";
16
23
  locale: string;
17
24
  /** 内联 cookie,优先于 ~/.lovrabet/cookie 文件 */
@@ -58,9 +65,13 @@ export interface MultiAppConfig {
58
65
  name: string;
59
66
  appcode: string;
60
67
  isDefault: boolean;
68
+ region: LovrabetRegion;
69
+ regionSource: RegionConfigSource;
61
70
  env?: string;
62
71
  apiDir?: string;
63
72
  cookie?: string;
73
+ /** Effective top-level connection settings for this app's defining layer. */
74
+ routingConfig: Record<string, any>;
64
75
  }
65
76
  export interface CLIContext {
66
77
  config: CLIConfig;
@@ -87,6 +98,8 @@ export declare function buildConfigFromFlags(flags: Record<string, any>): CLICon
87
98
  * 终端 CLI 与嵌入式 runtime 共用该入口,避免 env/domain 初始化语义漂移。
88
99
  */
89
100
  export declare function initGlobalEnvironment(config: CLIConfig): Promise<void>;
101
+ /** Switch process-wide routing before a multi-app operation. Callers must run apps sequentially. */
102
+ export declare function initMultiAppEnvironment(app: MultiAppConfig): Promise<void>;
90
103
  export declare function getConfigAppCode(projectRoot?: string): string | undefined;
91
104
  export type MultiAppConfigScope = "project" | "merged";
92
105
  export declare function getMultiAppConfigs(scope?: MultiAppConfigScope, projectRoot?: string): MultiAppConfig[] | null;