@lovrabet/rabetbase-cli 2.5.10-beta.4 → 2.5.10-beta.5

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 (376) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/design-context.js +1 -1
  77. package/lib/commands/dataset/design-start.js +1 -1
  78. package/lib/commands/dataset/design-status.js +1 -1
  79. package/lib/commands/dataset/design-sync-retry.js +1 -1
  80. package/lib/commands/dataset/design-sync-status.js +1 -1
  81. package/lib/commands/dataset/design-validate.js +1 -1
  82. package/lib/commands/dataset/detail.js +1 -1
  83. package/lib/commands/dataset/extend-update.js +1 -1
  84. package/lib/commands/dataset/field-restore.js +1 -1
  85. package/lib/commands/dataset/field-update.js +1 -1
  86. package/lib/commands/dataset/generate.js +1 -1
  87. package/lib/commands/dataset/index.js +1 -1
  88. package/lib/commands/dataset/list.js +1 -1
  89. package/lib/commands/dataset/operations.js +1 -1
  90. package/lib/commands/dataset/relation-audit.js +1 -1
  91. package/lib/commands/dataset/relation-create.js +1 -1
  92. package/lib/commands/dataset/relation-delete.js +1 -1
  93. package/lib/commands/dataset/relation-shared.js +1 -1
  94. package/lib/commands/dataset/relation-update.js +1 -1
  95. package/lib/commands/dataset/relations.js +1 -1
  96. package/lib/commands/dataset/rename.js +1 -1
  97. package/lib/commands/dataset/restore.js +1 -1
  98. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  99. package/lib/commands/db/analysis-batching.js +1 -1
  100. package/lib/commands/db/analyze-batch-plan.js +1 -1
  101. package/lib/commands/db/analyze-cancel.js +1 -1
  102. package/lib/commands/db/analyze-start.js +1 -1
  103. package/lib/commands/db/analyze-status.js +1 -1
  104. package/lib/commands/db/create.js +1 -1
  105. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  106. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  109. package/lib/commands/db/delete.js +1 -1
  110. package/lib/commands/db/detail.js +1 -1
  111. package/lib/commands/db/diff-refresh-start.js +1 -1
  112. package/lib/commands/db/diff-refresh-status.js +1 -1
  113. package/lib/commands/db/diff.js +1 -1
  114. package/lib/commands/db/index.js +1 -1
  115. package/lib/commands/db/list.js +1 -1
  116. package/lib/commands/db/shared.js +1 -1
  117. package/lib/commands/db/table-diff-shared.js +1 -1
  118. package/lib/commands/db/tables.js +1 -1
  119. package/lib/commands/db/test.js +1 -1
  120. package/lib/commands/db/update.js +1 -1
  121. package/lib/commands/deployment/index.js +1 -1
  122. package/lib/commands/deployment/sync-all.js +1 -1
  123. package/lib/commands/deployment/sync-jobs.js +1 -1
  124. package/lib/commands/deployment/sync-status.js +1 -1
  125. package/lib/commands/doctor.js +1 -1
  126. package/lib/commands/file/index.js +1 -1
  127. package/lib/commands/flow/create.js +1 -1
  128. package/lib/commands/flow/detail.js +1 -1
  129. package/lib/commands/flow/index.js +1 -1
  130. package/lib/commands/flow/list.js +1 -1
  131. package/lib/commands/flow/page-list.js +1 -1
  132. package/lib/commands/flow/publish.js +1 -1
  133. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  134. package/lib/commands/flow/runtime-role-list.js +1 -1
  135. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  136. package/lib/commands/flow/runtime-user-search.js +1 -1
  137. package/lib/commands/flow/shared.js +1 -1
  138. package/lib/commands/flow/update.js +1 -1
  139. package/lib/commands/flow/validate.js +1 -1
  140. package/lib/commands/instant-api-policy/current.js +1 -1
  141. package/lib/commands/instant-api-policy/index.js +1 -1
  142. package/lib/commands/instant-api-policy/init.js +1 -1
  143. package/lib/commands/instant-api-policy/publish.js +1 -1
  144. package/lib/commands/instant-api-policy/pull.js +1 -1
  145. package/lib/commands/instant-api-policy/revision.js +1 -1
  146. package/lib/commands/instant-api-policy/revisions.js +1 -1
  147. package/lib/commands/instant-api-policy/rollback.js +1 -1
  148. package/lib/commands/instant-api-policy/shared.js +1 -1
  149. package/lib/commands/instant-api-policy/validate.js +1 -1
  150. package/lib/commands/issue/context.js +1 -1
  151. package/lib/commands/issue/index.js +1 -1
  152. package/lib/commands/issue/nudge.js +1 -1
  153. package/lib/commands/issue/report.js +1 -1
  154. package/lib/commands/kb/create.js +1 -1
  155. package/lib/commands/kb/delete.js +1 -1
  156. package/lib/commands/kb/detail.js +1 -1
  157. package/lib/commands/kb/index.js +1 -1
  158. package/lib/commands/kb/list.js +1 -1
  159. package/lib/commands/kb/search.js +1 -1
  160. package/lib/commands/kb/shared.js +1 -1
  161. package/lib/commands/kb/update.js +1 -1
  162. package/lib/commands/logs/index.js +1 -1
  163. package/lib/commands/menu/asset-update.js +1 -1
  164. package/lib/commands/menu/delete.js +1 -1
  165. package/lib/commands/menu/external-link-create.js +1 -1
  166. package/lib/commands/menu/external-link-update.js +1 -1
  167. package/lib/commands/menu/group-create.js +1 -1
  168. package/lib/commands/menu/group-update.js +1 -1
  169. package/lib/commands/menu/index.js +1 -1
  170. package/lib/commands/menu/list.js +1 -1
  171. package/lib/commands/menu/move.js +1 -1
  172. package/lib/commands/menu/regroup-start.js +1 -1
  173. package/lib/commands/menu/rename.js +1 -1
  174. package/lib/commands/menu/shared/compare-table.js +1 -1
  175. package/lib/commands/menu/shared/delete-plan.js +1 -1
  176. package/lib/commands/menu/shared/facts.js +1 -1
  177. package/lib/commands/menu/shared/index.js +1 -1
  178. package/lib/commands/menu/shared/inquirer.js +1 -1
  179. package/lib/commands/menu/shared/local-pages.js +1 -1
  180. package/lib/commands/menu/shared/logic.js +1 -1
  181. package/lib/commands/menu/shared/mutations.js +1 -1
  182. package/lib/commands/menu/shared/path.js +1 -1
  183. package/lib/commands/menu/shared/service.js +1 -1
  184. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  185. package/lib/commands/menu/shared/sync-core.js +1 -1
  186. package/lib/commands/menu/shared/update-core.js +1 -1
  187. package/lib/commands/menu/shared/valid-url.js +1 -1
  188. package/lib/commands/menu/subapp-assets-status.js +1 -1
  189. package/lib/commands/menu/subapp-assets-update.js +1 -1
  190. package/lib/commands/menu/sync.js +1 -1
  191. package/lib/commands/menu/visibility-update.js +1 -1
  192. package/lib/commands/notification/config-create.js +1 -1
  193. package/lib/commands/notification/config-delete.js +1 -1
  194. package/lib/commands/notification/config-list.js +1 -1
  195. package/lib/commands/notification/config-update.js +1 -1
  196. package/lib/commands/notification/index.js +1 -1
  197. package/lib/commands/notification/shared.js +1 -1
  198. package/lib/commands/ocr/index.js +1 -1
  199. package/lib/commands/page/create.js +1 -1
  200. package/lib/commands/page/custom/detail.js +1 -1
  201. package/lib/commands/page/custom/list.js +1 -1
  202. package/lib/commands/page/custom/publish.js +1 -1
  203. package/lib/commands/page/custom/shared.js +1 -1
  204. package/lib/commands/page/custom/syntax.js +1 -1
  205. package/lib/commands/page/custom/update.js +1 -1
  206. package/lib/commands/page/data-list-status.js +1 -1
  207. package/lib/commands/page/generate-start.js +1 -1
  208. package/lib/commands/page/generate-status.js +1 -1
  209. package/lib/commands/page/index.js +1 -1
  210. package/lib/commands/page/pull.js +1 -1
  211. package/lib/commands/page/push.js +1 -1
  212. package/lib/commands/page/relation-audit.js +1 -1
  213. package/lib/commands/page/restore.js +1 -1
  214. package/lib/commands/page/shared.js +1 -1
  215. package/lib/commands/page/sync.js +1 -1
  216. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  217. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  218. package/lib/commands/project/create/format-elapsed.js +1 -1
  219. package/lib/commands/project/create/main.js +1 -1
  220. package/lib/commands/project/create/materialize-project-template.js +1 -1
  221. package/lib/commands/project/create/project-name.js +1 -1
  222. package/lib/commands/project/create/project-template-archive.js +1 -1
  223. package/lib/commands/project/create/project-template-path.js +1 -1
  224. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  225. package/lib/commands/project/create/use-format-code.js +1 -1
  226. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  227. package/lib/commands/project/domain-routing-sync.js +1 -1
  228. package/lib/commands/project/index.js +1 -1
  229. package/lib/commands/project/upgrade.js +1 -1
  230. package/lib/commands/registry.js +1 -1
  231. package/lib/commands/role/delete.js +1 -1
  232. package/lib/commands/role/detail.js +1 -1
  233. package/lib/commands/role/index.js +1 -1
  234. package/lib/commands/role/list.js +1 -1
  235. package/lib/commands/role/shared.js +1 -1
  236. package/lib/commands/role/update.js +1 -1
  237. package/lib/commands/role/user-add.js +1 -1
  238. package/lib/commands/role/user-remove.js +1 -1
  239. package/lib/commands/role/user-resolve.js +1 -1
  240. package/lib/commands/rule/get.js +1 -1
  241. package/lib/commands/rule/index.js +1 -1
  242. package/lib/commands/rule/list.js +1 -1
  243. package/lib/commands/rule/set.js +1 -1
  244. package/lib/commands/rule/shared.js +1 -1
  245. package/lib/commands/run/index.js +1 -1
  246. package/lib/commands/schema.js +1 -1
  247. package/lib/commands/sql/create.js +1 -1
  248. package/lib/commands/sql/delete.js +1 -1
  249. package/lib/commands/sql/detail.js +1 -1
  250. package/lib/commands/sql/exec.js +1 -1
  251. package/lib/commands/sql/index.js +1 -1
  252. package/lib/commands/sql/list.js +1 -1
  253. package/lib/commands/sql/pull.js +1 -1
  254. package/lib/commands/sql/push.js +1 -1
  255. package/lib/commands/sql/shared.js +1 -1
  256. package/lib/commands/sql/status.js +1 -1
  257. package/lib/commands/sql/validate.js +1 -1
  258. package/lib/commands/task/index.js +1 -1
  259. package/lib/commands/task/status.js +1 -1
  260. package/lib/commands/tenant/index.js +1 -1
  261. package/lib/commands/tenant/members-list.js +1 -1
  262. package/lib/commands/tenant/shared.js +1 -1
  263. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  264. package/lib/commands/user-account/feishu-bind.js +1 -1
  265. package/lib/commands/user-account/index.js +1 -1
  266. package/lib/commands/workspace/add.js +1 -1
  267. package/lib/commands/workspace/index.js +1 -1
  268. package/lib/commands/workspace/remove.js +1 -1
  269. package/lib/config/domain-config.js +1 -1
  270. package/lib/config/project-domain-routing.js +1 -1
  271. package/lib/config/region-config.js +1 -1
  272. package/lib/config/schema.js +1 -1
  273. package/lib/constant/cdn.js +1 -1
  274. package/lib/constant/cli.js +1 -1
  275. package/lib/constant/defaults.js +1 -1
  276. package/lib/constant/domain.js +1 -1
  277. package/lib/constant/env.js +1 -1
  278. package/lib/constant/output.js +1 -1
  279. package/lib/constant/paths.js +1 -1
  280. package/lib/constant/region.js +1 -1
  281. package/lib/constant/risk.js +1 -1
  282. package/lib/constant/routing-profile.js +1 -1
  283. package/lib/context/app-resolver.js +1 -1
  284. package/lib/context/auth-resolver.js +1 -1
  285. package/lib/context/config-loader.js +1 -1
  286. package/lib/context.js +1 -1
  287. package/lib/core/alias-resolver.js +1 -1
  288. package/lib/core/api-client.js +1 -1
  289. package/lib/core/bff/config.js +1 -1
  290. package/lib/core/bff/file-system.js +1 -1
  291. package/lib/core/bff/hash.js +1 -1
  292. package/lib/core/bff/hook-directory.js +1 -1
  293. package/lib/core/bff/lock.js +1 -1
  294. package/lib/core/bff/utils.js +1 -1
  295. package/lib/core/cross-db-analysis.js +1 -1
  296. package/lib/core/cross-db-relation.js +1 -1
  297. package/lib/core/db-resolver.js +1 -1
  298. package/lib/core/flow-config.js +1 -1
  299. package/lib/core/instant-api-policy/config.js +1 -1
  300. package/lib/core/instant-api-policy/endpoints.js +1 -1
  301. package/lib/core/kb-management-client.js +1 -1
  302. package/lib/core/kb-search-client.js +1 -1
  303. package/lib/core/page/file-system.js +1 -1
  304. package/lib/core/page/hash.js +1 -1
  305. package/lib/core/page/lock.js +1 -1
  306. package/lib/core/page/lr-smart-jsx.js +1 -1
  307. package/lib/core/sql-index-auditor.js +1 -1
  308. package/lib/core/sql-sync/config.js +1 -1
  309. package/lib/core/sql-sync/file-system.js +1 -1
  310. package/lib/core/sql-sync/hash.js +1 -1
  311. package/lib/core/sql-sync/lock.js +1 -1
  312. package/lib/core/sql-sync/utils.js +1 -1
  313. package/lib/core/sql-validator.js +1 -1
  314. package/lib/errors.js +1 -1
  315. package/lib/framework/build-all-flags.js +1 -1
  316. package/lib/framework/error-output.js +1 -1
  317. package/lib/framework/explicit-yes.js +1 -1
  318. package/lib/framework/flags.js +1 -1
  319. package/lib/framework/help.js +1 -1
  320. package/lib/framework/index.js +1 -1
  321. package/lib/framework/output.js +1 -1
  322. package/lib/framework/response.js +1 -1
  323. package/lib/framework/runner-alias.js +1 -1
  324. package/lib/framework/runner.js +1 -1
  325. package/lib/framework/schema-export.js +1 -1
  326. package/lib/framework/supported-flags.js +1 -1
  327. package/lib/framework/types.js +1 -1
  328. package/lib/generated/build-info.d.ts +4 -4
  329. package/lib/generated/build-info.js +1 -1
  330. package/lib/generated/official-routing.js +1 -1
  331. package/lib/generated/routing-contract.js +1 -1
  332. package/lib/help.js +1 -1
  333. package/lib/postinstall.js +1 -1
  334. package/lib/runtime/confirmation.js +1 -1
  335. package/lib/runtime/event.js +1 -1
  336. package/lib/runtime/index.js +1 -1
  337. package/lib/runtime/queue.js +1 -1
  338. package/lib/runtime/resolve.js +1 -1
  339. package/lib/services/dataset-design/checkpoint.js +1 -1
  340. package/lib/services/dataset-design/commands.js +1 -1
  341. package/lib/services/dataset-design/contract.js +1 -1
  342. package/lib/skills/builtin-skill.js +1 -1
  343. package/lib/skills/main.js +1 -1
  344. package/lib/skills/npx-skills-add.js +1 -1
  345. package/lib/skills/skill-presence.js +1 -1
  346. package/lib/telemetry/cli-command-trace.js +1 -1
  347. package/lib/telemetry/cli-help-trace.js +1 -1
  348. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  349. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  350. package/lib/telemetry/send-cli-trace-log.js +1 -1
  351. package/lib/utils/ai_config.js +1 -1
  352. package/lib/utils/apply-jq-filter.js +1 -1
  353. package/lib/utils/cdn-config.js +1 -1
  354. package/lib/utils/check-sdk-version.js +1 -1
  355. package/lib/utils/cli-version-check.js +1 -1
  356. package/lib/utils/cli-version-policy.js +1 -1
  357. package/lib/utils/config.js +1 -1
  358. package/lib/utils/entity-with-id.js +1 -1
  359. package/lib/utils/file-utils.js +1 -1
  360. package/lib/utils/guides-cdn.js +1 -1
  361. package/lib/utils/http-client.js +1 -1
  362. package/lib/utils/is-non-interactive.js +1 -1
  363. package/lib/utils/logger.js +1 -1
  364. package/lib/utils/params.js +1 -1
  365. package/lib/utils/platform.js +1 -1
  366. package/lib/utils/sleep.js +1 -1
  367. package/lib/utils/template-replacer.js +1 -1
  368. package/lib/utils/update-notice.js +1 -1
  369. package/lib/utils/version.js +1 -1
  370. package/lib/utils/with-active-cookie.js +1 -1
  371. package/lib/utils/write-cli-side-channel.js +1 -1
  372. package/package.json +4 -4
  373. package/skills/rabetbase/SKILL.md +1 -1
  374. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  375. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  376. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- function a279_0x101b(_0xe04122,_0x1877f6){_0xe04122=_0xe04122-0xf0;const _0x54fd94=a279_0x54fd();let _0x101b54=_0x54fd94[_0xe04122];return _0x101b54;}(function(_0x1d7ca9,_0x5ec5fe){const _0x5017fa=a279_0x101b,_0xfed605=_0x1d7ca9();while(!![]){try{const _0x47e0ab=parseInt(_0x5017fa(0xf7))/0x1*(parseInt(_0x5017fa(0xf3))/0x2)+-parseInt(_0x5017fa(0xf5))/0x3*(parseInt(_0x5017fa(0xf1))/0x4)+-parseInt(_0x5017fa(0xf8))/0x5*(parseInt(_0x5017fa(0xfa))/0x6)+parseInt(_0x5017fa(0xf4))/0x7*(parseInt(_0x5017fa(0xf9))/0x8)+parseInt(_0x5017fa(0xf2))/0x9+parseInt(_0x5017fa(0xf6))/0xa+-parseInt(_0x5017fa(0xf0))/0xb;if(_0x47e0ab===_0x5ec5fe)break;else _0xfed605['push'](_0xfed605['shift']());}catch(_0x41a6b3){_0xfed605['push'](_0xfed605['shift']());}}}(a279_0x54fd,0x54b3e));export const DEFAULT_API_DIR='./src/api';function a279_0x54fd(){const _0x529e13=['5302098bdkQyL','6ICoflK','2063586KTzAqL','262929NcUcHk','1895510mGLtuo','124927fXZtRx','990gBvJhL','8atogpk','17676PiPHkD','4733949wBHTiw','4tVMrQQ'];a279_0x54fd=function(){return _0x529e13;};return a279_0x54fd();}
1
+ const a279_0x5d5b32=a279_0x4d70;function a279_0x4d70(_0x1c47ca,_0x504252){_0x1c47ca=_0x1c47ca-0x15e;const _0x2ec0f4=a279_0x2ec0();let _0x4d702a=_0x2ec0f4[_0x1c47ca];return _0x4d702a;}(function(_0x5a6139,_0x10f399){const _0x16ed21=a279_0x4d70,_0x383fc4=_0x5a6139();while(!![]){try{const _0x5bfaaa=-parseInt(_0x16ed21(0x15f))/0x1+-parseInt(_0x16ed21(0x166))/0x2+parseInt(_0x16ed21(0x160))/0x3+parseInt(_0x16ed21(0x15e))/0x4*(-parseInt(_0x16ed21(0x161))/0x5)+parseInt(_0x16ed21(0x167))/0x6+-parseInt(_0x16ed21(0x168))/0x7*(parseInt(_0x16ed21(0x165))/0x8)+parseInt(_0x16ed21(0x162))/0x9*(parseInt(_0x16ed21(0x164))/0xa);if(_0x5bfaaa===_0x10f399)break;else _0x383fc4['push'](_0x383fc4['shift']());}catch(_0x5e893a){_0x383fc4['push'](_0x383fc4['shift']());}}}(a279_0x2ec0,0xcdbe0));export const DEFAULT_API_DIR=a279_0x5d5b32(0x163);function a279_0x2ec0(){const _0xf999f5=['261jasOmE','./src/api','1070590ocNkbt','24952HaOTis','66310NZMvyi','3174714eqNcZH','1757ehNGjR','230232qMWfgX','1460914viHJVT','1738290HjGDDt','95YCxpUR'];a279_0x2ec0=function(){return _0xf999f5;};return a279_0x2ec0();}
@@ -1 +1 @@
1
- (function(_0xda08a3,_0x4edede){const _0x4e5bba=a280_0x2ffa,_0x26e081=_0xda08a3();while(!![]){try{const _0x2815fe=-parseInt(_0x4e5bba(0x12d))/0x1*(-parseInt(_0x4e5bba(0x12b))/0x2)+-parseInt(_0x4e5bba(0x121))/0x3*(-parseInt(_0x4e5bba(0x128))/0x4)+-parseInt(_0x4e5bba(0x12c))/0x5+parseInt(_0x4e5bba(0x12e))/0x6*(parseInt(_0x4e5bba(0x124))/0x7)+-parseInt(_0x4e5bba(0x123))/0x8*(parseInt(_0x4e5bba(0x122))/0x9)+parseInt(_0x4e5bba(0x125))/0xa+-parseInt(_0x4e5bba(0x129))/0xb*(parseInt(_0x4e5bba(0x127))/0xc);if(_0x2815fe===_0x4edede)break;else _0x26e081['push'](_0x26e081['shift']());}catch(_0x290c17){_0x26e081['push'](_0x26e081['shift']());}}}(a280_0x1d66,0xc0012));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;function a280_0x2ffa(_0x48340d,_0x1afcc0){_0x48340d=_0x48340d-0x121;const _0x1d669a=a280_0x1d66();let _0x2ffaab=_0x1d669a[_0x48340d];return _0x2ffaab;}export function isLovrabetRegion(_0x9302ad){const _0x1a09dd=a280_0x2ffa;return typeof _0x9302ad===_0x1a09dd(0x126)&&LOVRABET_REGION_VALUES[_0x1a09dd(0x12a)](_0x9302ad);}export function isEnabledLovrabetRegion(_0x2a0a34){const _0x5d9d74=a280_0x2ffa;return typeof _0x2a0a34===_0x5d9d74(0x126)&&ENABLED_LOVRABET_REGION_VALUES[_0x5d9d74(0x12a)](_0x2a0a34);}export function normalizeLovrabetRegion(_0x55ca7e){const _0x511655=a280_0x2ffa;if(typeof _0x55ca7e!==_0x511655(0x126))return undefined;const _0x4bd4fc=REGION_ALIASES[_0x55ca7e]??_0x55ca7e;return isLovrabetRegion(_0x4bd4fc)?_0x4bd4fc:undefined;}export function isInvalidLovrabetRegion(_0x598aa2){return _0x598aa2!==undefined&&_0x598aa2!==null&&_0x598aa2!==''&&normalizeLovrabetRegion(_0x598aa2)===undefined;}function a280_0x1d66(){const _0x36839a=['507717Vnjrlu','126vMnqyK','1359234lTEGwA','9FmtKFl','381824SGRPEd','308021jnphQq','12610000RPsKav','string','412812cGwrGd','8aubFDv','869zTKJOd','includes','2VaULZr','235395qbCfie'];a280_0x1d66=function(){return _0x36839a;};return a280_0x1d66();}
1
+ (function(_0xae7623,_0x331ed8){const _0x1b6e08=a280_0x4ed7,_0x453f90=_0xae7623();while(!![]){try{const _0xcfc867=parseInt(_0x1b6e08(0x10c))/0x1+parseInt(_0x1b6e08(0x10f))/0x2+parseInt(_0x1b6e08(0x113))/0x3*(parseInt(_0x1b6e08(0x10d))/0x4)+parseInt(_0x1b6e08(0x115))/0x5+parseInt(_0x1b6e08(0x112))/0x6*(-parseInt(_0x1b6e08(0x111))/0x7)+parseInt(_0x1b6e08(0x10e))/0x8+parseInt(_0x1b6e08(0x10b))/0x9*(-parseInt(_0x1b6e08(0x110))/0xa);if(_0xcfc867===_0x331ed8)break;else _0x453f90['push'](_0x453f90['shift']());}catch(_0x29583c){_0x453f90['push'](_0x453f90['shift']());}}}(a280_0x563a,0x8ad0a));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x23fe71){return typeof _0x23fe71==='string'&&LOVRABET_REGION_VALUES['includes'](_0x23fe71);}export function isEnabledLovrabetRegion(_0x4fdc5c){const _0xa98881=a280_0x4ed7;return typeof _0x4fdc5c==='string'&&ENABLED_LOVRABET_REGION_VALUES[_0xa98881(0x114)](_0x4fdc5c);}export function normalizeLovrabetRegion(_0x7df172){const _0x417187=a280_0x4ed7;if(typeof _0x7df172!==_0x417187(0x10a))return undefined;const _0x2b260d=REGION_ALIASES[_0x7df172]??_0x7df172;return isLovrabetRegion(_0x2b260d)?_0x2b260d:undefined;}export function isInvalidLovrabetRegion(_0x102ec6){return _0x102ec6!==undefined&&_0x102ec6!==null&&_0x102ec6!==''&&normalizeLovrabetRegion(_0x102ec6)===undefined;}function a280_0x4ed7(_0x45b611,_0x278955){_0x45b611=_0x45b611-0x10a;const _0x563abb=a280_0x563a();let _0x4ed787=_0x563abb[_0x45b611];return _0x4ed787;}function a280_0x563a(){const _0x48b1b4=['102906naTmsr','includes','364150ShmXgS','string','9MVOVKb','27651NRRAAD','116oUUABm','4056376hXUbQP','1410636ThTEOZ','8190180EyufWR','32200vxwcbr','1200kNZdMr'];a280_0x563a=function(){return _0x48b1b4;};return a280_0x563a();}
@@ -1 +1 @@
1
- const a281_0x20846a=a281_0x56f6;(function(_0x1586a8,_0x3a4436){const _0x57fe9d=a281_0x56f6,_0x4c3ce5=_0x1586a8();while(!![]){try{const _0x52fbe7=parseInt(_0x57fe9d(0x91))/0x1*(-parseInt(_0x57fe9d(0x93))/0x2)+parseInt(_0x57fe9d(0x92))/0x3*(-parseInt(_0x57fe9d(0x8f))/0x4)+parseInt(_0x57fe9d(0x9c))/0x5*(-parseInt(_0x57fe9d(0x9d))/0x6)+parseInt(_0x57fe9d(0x98))/0x7*(parseInt(_0x57fe9d(0x97))/0x8)+-parseInt(_0x57fe9d(0x9e))/0x9*(-parseInt(_0x57fe9d(0x9b))/0xa)+-parseInt(_0x57fe9d(0x90))/0xb*(parseInt(_0x57fe9d(0x96))/0xc)+parseInt(_0x57fe9d(0x99))/0xd;if(_0x52fbe7===_0x3a4436)break;else _0x4c3ce5['push'](_0x4c3ce5['shift']());}catch(_0x32c266){_0x4c3ce5['push'](_0x4c3ce5['shift']());}}}(a281_0x3264,0x590f1));function a281_0x3264(){const _0x4ee282=['write','712212cavgON','8LjqBkg','4594198EWeWld','18321329VaalmF','read','19400aKydpj','5KHdBKJ','3945234rIvzRT','360BcxCRU','1172660yJSZTg','88dKvwwh','3BexFQo','3XdYlng','235300zzOriY','high-risk-write'];a281_0x3264=function(){return _0x4ee282;};return a281_0x3264();}function a281_0x56f6(_0x59417e,_0x4b74a6){_0x59417e=_0x59417e-0x8f;const _0x3264a1=a281_0x3264();let _0x56f636=_0x3264a1[_0x59417e];return _0x56f636;}export const RISK_LEVEL_VALUES=[a281_0x20846a(0x9a),a281_0x20846a(0x95),a281_0x20846a(0x94)];
1
+ const a281_0x45a19e=a281_0xfb62;(function(_0x3883b1,_0x534aca){const _0x224527=a281_0xfb62,_0x9f8dc7=_0x3883b1();while(!![]){try{const _0x167294=parseInt(_0x224527(0xba))/0x1+-parseInt(_0x224527(0xb3))/0x2+-parseInt(_0x224527(0xbc))/0x3+parseInt(_0x224527(0xb7))/0x4*(-parseInt(_0x224527(0xb4))/0x5)+-parseInt(_0x224527(0xbb))/0x6+parseInt(_0x224527(0xb8))/0x7*(parseInt(_0x224527(0xb6))/0x8)+parseInt(_0x224527(0xb9))/0x9;if(_0x167294===_0x534aca)break;else _0x9f8dc7['push'](_0x9f8dc7['shift']());}catch(_0x13bf8b){_0x9f8dc7['push'](_0x9f8dc7['shift']());}}}(a281_0x47e1,0x95dbc));function a281_0x47e1(){const _0x20b1a4=['read','1868488vNbovr','552412HHxxXY','14TgsNuG','13811337AYfxLu','955251cJorrV','914670MLuQni','2023215YHeUBA','1099150putjUy','35YAujxu'];a281_0x47e1=function(){return _0x20b1a4;};return a281_0x47e1();}function a281_0xfb62(_0x33d4d8,_0x1b8789){_0x33d4d8=_0x33d4d8-0xb3;const _0x47e155=a281_0x47e1();let _0xfb6249=_0x47e155[_0x33d4d8];return _0xfb6249;}export const RISK_LEVEL_VALUES=[a281_0x45a19e(0xb5),'write','high-risk-write'];
@@ -1 +1 @@
1
- (function(_0x3e2411,_0x1ac22f){const _0x9e1a69=a282_0xdea9,_0x25d1e3=_0x3e2411();while(!![]){try{const _0x22c89b=-parseInt(_0x9e1a69(0xdf))/0x1*(parseInt(_0x9e1a69(0xda))/0x2)+parseInt(_0x9e1a69(0xd9))/0x3+-parseInt(_0x9e1a69(0xe1))/0x4*(parseInt(_0x9e1a69(0xd6))/0x5)+-parseInt(_0x9e1a69(0xd7))/0x6+-parseInt(_0x9e1a69(0xde))/0x7+parseInt(_0x9e1a69(0xd8))/0x8+-parseInt(_0x9e1a69(0xe2))/0x9*(-parseInt(_0x9e1a69(0xe0))/0xa);if(_0x22c89b===_0x1ac22f)break;else _0x25d1e3['push'](_0x25d1e3['shift']());}catch(_0x41730a){_0x25d1e3['push'](_0x25d1e3['shift']());}}}(a282_0x5672,0x8ef89));function a282_0x5672(){const _0x5cdc47=['436lNBeRV','20439207PoMrAq','42095KFdMbi','6068154GAbYhn','6029432KLKQwm','656832HVWWbn','149134vZhRcs','libraries','lovrabet','cdn','3537142mAOKfk','3hHxyqV','10ztmEID'];a282_0x5672=function(){return _0x5cdc47;};return a282_0x5672();}import{OFFICIAL_ROUTING_PROFILES as a282_0x1735cf,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';export const OFFICIAL_ROUTING_PROFILES=a282_0x1735cf;function a282_0xdea9(_0x185d33,_0x2ee660){_0x185d33=_0x185d33-0xd6;const _0x567277=a282_0x5672();let _0xdea93f=_0x567277[_0x185d33];return _0xdea93f;}export{ROUTING_CATALOG_DIGEST};export function getOfficialRoutingProfile(_0x12c52c){return OFFICIAL_ROUTING_PROFILES[_0x12c52c];}export function getOfficialRoutingCdn(_0x50fd98){const _0x3b915c=a282_0xdea9,_0x5ab4e7=getOfficialRoutingProfile(_0x50fd98)[_0x3b915c(0xdd)];if(!_0x5ab4e7[_0x3b915c(0xdc)])throw new Error('Official\x20routing\x20for\x20region\x20\x22'+_0x50fd98+'\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.');return{'libraries':_0x5ab4e7[_0x3b915c(0xdb)],'lovrabet':_0x5ab4e7[_0x3b915c(0xdc)]};}
1
+ (function(_0x2c5758,_0x2c54e3){const _0x29c51d=a282_0x2c7f,_0x3ef31e=_0x2c5758();while(!![]){try{const _0xfe7cd=parseInt(_0x29c51d(0x15d))/0x1+-parseInt(_0x29c51d(0x164))/0x2*(-parseInt(_0x29c51d(0x165))/0x3)+-parseInt(_0x29c51d(0x158))/0x4*(-parseInt(_0x29c51d(0x161))/0x5)+parseInt(_0x29c51d(0x15f))/0x6*(parseInt(_0x29c51d(0x15e))/0x7)+parseInt(_0x29c51d(0x15a))/0x8*(-parseInt(_0x29c51d(0x163))/0x9)+-parseInt(_0x29c51d(0x160))/0xa*(-parseInt(_0x29c51d(0x159))/0xb)+-parseInt(_0x29c51d(0x162))/0xc;if(_0xfe7cd===_0x2c54e3)break;else _0x3ef31e['push'](_0x3ef31e['shift']());}catch(_0x552a85){_0x3ef31e['push'](_0x3ef31e['shift']());}}}(a282_0x3101,0x88296));import{OFFICIAL_ROUTING_PROFILES as a282_0x3f6435,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';function a282_0x3101(){const _0x45c974=['1121585KxVcBS','13571112QssoUL','216tKrRVu','3650sbnvLp','183WvLawv','lovrabet','4AMjntz','8412778OVGxhk','280840aILGTh','\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.','cdn','996337rctBJU','7bMjrVs','2606322hthNOI','10sQJAZc'];a282_0x3101=function(){return _0x45c974;};return a282_0x3101();}export const OFFICIAL_ROUTING_PROFILES=a282_0x3f6435;function a282_0x2c7f(_0x1fc2be,_0xa93f0c){_0x1fc2be=_0x1fc2be-0x158;const _0x310194=a282_0x3101();let _0x2c7f9d=_0x310194[_0x1fc2be];return _0x2c7f9d;}export{ROUTING_CATALOG_DIGEST};export function getOfficialRoutingProfile(_0x327bd0){return OFFICIAL_ROUTING_PROFILES[_0x327bd0];}export function getOfficialRoutingCdn(_0x464605){const _0x301d9f=a282_0x2c7f,_0x3e75aa=getOfficialRoutingProfile(_0x464605)[_0x301d9f(0x15c)];if(!_0x3e75aa[_0x301d9f(0x166)])throw new Error('Official\x20routing\x20for\x20region\x20\x22'+_0x464605+_0x301d9f(0x15b));return{'libraries':_0x3e75aa['libraries'],'lovrabet':_0x3e75aa[_0x301d9f(0x166)]};}
@@ -1 +1 @@
1
- (function(_0x385ec2,_0x24d1e6){const _0x59dbb5=a283_0x2ddc,_0x5e4985=_0x385ec2();while(!![]){try{const _0x5c3f7b=-parseInt(_0x59dbb5(0x15f))/0x1+-parseInt(_0x59dbb5(0x165))/0x2+parseInt(_0x59dbb5(0x164))/0x3*(parseInt(_0x59dbb5(0x152))/0x4)+-parseInt(_0x59dbb5(0x155))/0x5+-parseInt(_0x59dbb5(0x13f))/0x6*(-parseInt(_0x59dbb5(0x14e))/0x7)+parseInt(_0x59dbb5(0x163))/0x8+parseInt(_0x59dbb5(0x160))/0x9*(parseInt(_0x59dbb5(0x15b))/0xa);if(_0x5c3f7b===_0x24d1e6)break;else _0x5e4985['push'](_0x5e4985['shift']());}catch(_0x34bc77){_0x5e4985['push'](_0x5e4985['shift']());}}}(a283_0x57cb,0x2a4e5));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(_0x4d909d){const _0x2b4196=a283_0x2ddc;return typeof _0x4d909d===_0x2b4196(0x154)&&_0x4d909d[_0x2b4196(0x148)]()?_0x4d909d[_0x2b4196(0x148)]():undefined;}function appProfiles(_0x53eed3){const _0x394285=a283_0x2ddc;return _0x53eed3[_0x394285(0x13e)]&&typeof _0x53eed3[_0x394285(0x13e)]===_0x394285(0x156)?_0x53eed3[_0x394285(0x13e)]:{};}function resolveDefaultAppName(_0x674cc9){const _0x3428c8=a283_0x2ddc,_0x44e532=stringConfigValue(_0x674cc9['defaultApp']);if(_0x44e532)return _0x44e532;const _0x301a3b=Object['keys'](appProfiles(_0x674cc9));return _0x301a3b[_0x3428c8(0x15c)]===0x1?_0x301a3b[0x0]:undefined;}function a283_0x2ddc(_0x595a6f,_0x36aa41){_0x595a6f=_0x595a6f-0x13b;const _0x57cbb3=a283_0x57cb();let _0x2ddcf7=_0x57cbb3[_0x595a6f];return _0x2ddcf7;}function resolveTopLevelAppCode(_0x41a0ef){const _0x70ee63=a283_0x2ddc;return stringConfigValue(_0x41a0ef[_0x70ee63(0x145)])||stringConfigValue(_0x41a0ef[_0x70ee63(0x15e)]);}function normalizeRiskCeiling(_0x25fbb8){const _0x58a1ef=a283_0x2ddc;if(_0x25fbb8===undefined||_0x25fbb8===null)return undefined;if(_0x25fbb8==='read'||_0x25fbb8===_0x58a1ef(0x14b)||_0x25fbb8===_0x58a1ef(0x13b))return _0x25fbb8;return _0x58a1ef(0x141);}function resolveRiskCeiling(..._0x31964c){const _0x2f3002=a283_0x2ddc;let _0x4392b8;for(const _0x30c177 of _0x31964c){const _0x58f10d=normalizeRiskCeiling(_0x30c177);_0x58f10d&&(!_0x4392b8||riskLevelOrder(_0x58f10d)<riskLevelOrder(_0x4392b8))&&(_0x4392b8=_0x58f10d);}return _0x4392b8??DEFAULT_CONFIG_VALUES[_0x2f3002(0x13d)];}export function resolveAppConfig({raw:_0x201d98,flags:_0x3f0a37,layers:_0x1e4420,readEnv:_0xb3a13e}){const _0x3ceec4=a283_0x2ddc,_0x500ffd=_0x1e4420?.[_0x3ceec4(0x14d)]??{},_0x1d83a7=_0x1e4420?.['globalConfig']??{},_0x151aa5=!!_0x1e4420?.[_0x3ceec4(0x15a)]||Object[_0x3ceec4(0x153)](_0x500ffd)[_0x3ceec4(0x15c)]>0x0,_0x2e8539=!_0x151aa5,_0x2afca0=_0x151aa5?resolveDefaultAppName(_0x500ffd):undefined,_0x390a1b=_0x2e8539?resolveDefaultAppName(_0x1d83a7):undefined,_0x4f900f=stringConfigValue(_0x3f0a37[_0x3ceec4(0x15e)]),_0x18d163=_0xb3a13e(_0x3ceec4(0x149)),_0x39da52={};if(_0x201d98[_0x3ceec4(0x13e)]&&typeof _0x201d98[_0x3ceec4(0x13e)]===_0x3ceec4(0x156))for(const [_0x2dc923,_0x4f0e04]of Object['entries'](_0x201d98['apps'])){_0x4f0e04&&typeof _0x4f0e04===_0x3ceec4(0x156)&&_0x4f0e04['appcode']&&(_0x39da52[_0x2dc923]=_0x4f0e04);}const _0xae2edc=_0x2afca0||_0x390a1b||resolveDefaultAppName(_0x201d98),_0x115713=Object[_0x3ceec4(0x153)](_0x39da52)[_0x3ceec4(0x15c)]>0x0,_0x3ca2dd=_0x4f900f||_0x2afca0||_0x18d163||_0x390a1b||_0xae2edc||undefined,_0x6f116d=stringConfigValue(_0x3f0a37[_0x3ceec4(0x145)]),_0x22308f=_0x6f116d?Object[_0x3ceec4(0x13c)](_0x39da52)[_0x3ceec4(0x157)](([,_0xedaed])=>_0xedaed?.[_0x3ceec4(0x145)]===_0x6f116d):[],_0x40ccf0=_0x4f900f&&_0x39da52[_0x4f900f]?.[_0x3ceec4(0x145)]===_0x6f116d?[_0x4f900f,_0x39da52[_0x4f900f]]:undefined,_0x811d65=_0x40ccf0??(_0x22308f[_0x3ceec4(0x15c)]===0x1?_0x22308f[0x0]:undefined),_0x45df4e=_0x811d65?.[0x0],_0x58c6db=_0x811d65?.[0x1],_0x42342e=_0x6f116d?_0x45df4e:_0x3ca2dd;let _0x54235e=_0x42342e&&_0x39da52[_0x42342e]?_0x39da52[_0x42342e]:undefined;_0x6f116d&&_0x58c6db&&(_0x54235e=_0x58c6db);const _0x566135=_0x6f116d?_0x58c6db??_0x54235e:_0x54235e,_0x24fc4c=!_0x4f900f&&!_0x2afca0&&_0x18d163&&_0x42342e===_0x18d163,_0x2a1cf1=_0x4f900f||(_0x24fc4c?_0x18d163:undefined)||(_0x6f116d?_0x45df4e:undefined),_0x5cef90=_0x566135?.[_0x3ceec4(0x145)],_0xde9431=_0x151aa5?resolveTopLevelAppCode(_0x500ffd):undefined,_0x563787=_0x2e8539?resolveTopLevelAppCode(_0x1d83a7):undefined,_0x3ed2a7=_0x4f900f||_0x2afca0?_0x5cef90:undefined,_0x55fc91=!_0x4f900f&&!_0x2afca0?_0x5cef90:undefined,_0x3655e6=_0x6f116d||_0x3ed2a7||_0xde9431||_0x55fc91||_0x563787||undefined,_0xc0ba6b=_0x151aa5?stringConfigValue(_0x500ffd[_0x3ceec4(0x14f)]):undefined,_0x53326f=_0x2e8539?stringConfigValue(_0x1d83a7[_0x3ceec4(0x14f)]):undefined,_0xa4c82e=_0x3f0a37[_0x3ceec4(0x14f)]||_0x566135?.['env']||_0xc0ba6b||_0xb3a13e(_0x3ceec4(0x142))||_0x53326f||_0x201d98[_0x3ceec4(0x14f)]||DEFAULT_CONFIG_VALUES[_0x3ceec4(0x14f)],_0x22e455=_0x566135?.[_0x3ceec4(0x161)]||_0x201d98[_0x3ceec4(0x161)]||DEFAULT_CONFIG_VALUES['locale'],_0x1fdd53=_0xb3a13e(_0x3ceec4(0x159))||_0x566135?.['cookie']||_0x201d98[_0x3ceec4(0x151)]||undefined,_0x280d40=_0xb3a13e('ACCESS_KEY')||_0x566135?.[_0x3ceec4(0x143)]||_0x201d98[_0x3ceec4(0x143)]||undefined,_0x21f4cd=_0x3f0a37['format']||_0xb3a13e('FORMAT')||_0x566135?.[_0x3ceec4(0x144)]||_0x201d98[_0x3ceec4(0x144)],_0xeaf388=normalizeLegacyOutputFormat(_0x21f4cd),_0x5e9492=_0xb3a13e(_0x3ceec4(0x147))||_0x566135?.[_0x3ceec4(0x15d)]||_0x201d98[_0x3ceec4(0x15d)],_0x273115=_0x5e9492?Number(_0x5e9492)||undefined:undefined,_0x3ee3d3=_0x1e4420?[_0x1e4420['globalConfig'][_0x3ceec4(0x13d)],_0x1e4420['projectConfig']['riskLevel']]:[_0x201d98['riskLevel']],_0x5b9bf1=resolveRiskCeiling(..._0x3ee3d3,_0x566135?.[_0x3ceec4(0x13d)]),_0x521f5a=resolveRiskCeiling(_0x5b9bf1,_0xb3a13e(_0x3ceec4(0x140))),_0x81fea8=_0xb3a13e(_0x3ceec4(0x158)),_0x106b30=_0x81fea8==='1'||_0x81fea8==='true',_0x32a326=_0x566135?.[_0x3ceec4(0x14c)]||_0x201d98[_0x3ceec4(0x14c)]||DEFAULT_CONFIG_VALUES[_0x3ceec4(0x14c)],_0x129cee=selectConfiguredRegion({'appRegion':_0x566135?.[_0x3ceec4(0x146)],'projectRegion':_0x151aa5?_0x500ffd[_0x3ceec4(0x146)]:undefined,'globalRegion':_0x151aa5||_0x2e8539?_0x1d83a7[_0x3ceec4(0x146)]:undefined,'mergedRegion':_0x201d98[_0x3ceec4(0x146)]}),_0x446b7f=normalizeLovrabetRegion(_0x129cee[_0x3ceec4(0x162)])??DEFAULT_LOVRABET_REGION,_0x491bee=isDaily(normalizeEnv(String(_0xa4c82e)))?_0x3ceec4(0x150):_0x3ceec4(0x14a);return{'appCode':typeof _0x3655e6===_0x3ceec4(0x154)&&_0x3655e6[_0x3ceec4(0x148)]()?_0x3655e6[_0x3ceec4(0x148)]():undefined,'region':_0x446b7f,'regionConfiguredValue':_0x129cee[_0x3ceec4(0x162)],'regionSource':_0x129cee['source'],'env':_0x491bee,'locale':_0x22e455,'cookie':_0x1fdd53,'accessKey':_0x280d40,'format':_0xeaf388,'pageSize':_0x273115,'riskLevel':_0x521f5a,'verbose':_0x106b30,'apiDir':_0x32a326,'apps':_0x39da52,'defaultApp':_0xae2edc,'currentApp':_0x115713?_0x42342e:undefined,'explicitAppName':_0x2a1cf1};}function a283_0x57cb(){const _0x2bce1b=['value','10600SzDPnJ','3eBFXeV','443956YgVtao','high-risk-write','entries','riskLevel','apps','348864eZfdVg','RISK_LEVEL','read','ENV','accessKey','format','appcode','region','PAGE_SIZE','trim','APP','production','write','apiDir','projectConfig','28UhmzuA','env','daily','cookie','658504VDaxMR','keys','string','715305uBZNZt','object','filter','VERBOSE','COOKIE','projectPath','4090XqbEGg','length','pageSize','app','6625xQNQTW','3222kRqWXf','locale'];a283_0x57cb=function(){return _0x2bce1b;};return a283_0x57cb();}
1
+ (function(_0x477a01,_0x1eda9e){const _0x4cfca7=a283_0x35dc,_0x5119b9=_0x477a01();while(!![]){try{const _0x50d38c=parseInt(_0x4cfca7(0xb9))/0x1*(parseInt(_0x4cfca7(0xc3))/0x2)+-parseInt(_0x4cfca7(0xdc))/0x3+parseInt(_0x4cfca7(0xd8))/0x4+parseInt(_0x4cfca7(0xd7))/0x5+-parseInt(_0x4cfca7(0xd0))/0x6+parseInt(_0x4cfca7(0xc5))/0x7+parseInt(_0x4cfca7(0xdb))/0x8*(-parseInt(_0x4cfca7(0xc0))/0x9);if(_0x50d38c===_0x1eda9e)break;else _0x5119b9['push'](_0x5119b9['shift']());}catch(_0x430508){_0x5119b9['push'](_0x5119b9['shift']());}}}(a283_0x4222,0x7cd7c));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';function a283_0x4222(){const _0x465b05=['6bOhIJK','VERBOSE','6390111lkuWyq','string','high-risk-write','projectConfig','locale','globalConfig','length','env','true','entries','ENV','1630848bTqPqS','apiDir','object','source','appcode','write','read','4656370vEUgIw','3384808ZXwQuZ','keys','trim','16953560rSQPbI','1475820FuBCaW','projectPath','riskLevel','value','region','234650ElaItI','pageSize','format','apps','cookie','accessKey','ACCESS_KEY','9XlqJgB','RISK_LEVEL','COOKIE'];a283_0x4222=function(){return _0x465b05;};return a283_0x4222();}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(_0x279c61){const _0x55d18f=a283_0x35dc;return typeof _0x279c61===_0x55d18f(0xc6)&&_0x279c61[_0x55d18f(0xda)]()?_0x279c61[_0x55d18f(0xda)]():undefined;}function appProfiles(_0x4fcd35){const _0x5616f5=a283_0x35dc;return _0x4fcd35['apps']&&typeof _0x4fcd35[_0x5616f5(0xbc)]===_0x5616f5(0xd2)?_0x4fcd35[_0x5616f5(0xbc)]:{};}function resolveDefaultAppName(_0x309039){const _0x27f3d2=a283_0x35dc,_0x304be1=stringConfigValue(_0x309039['defaultApp']);if(_0x304be1)return _0x304be1;const _0x52f24f=Object[_0x27f3d2(0xd9)](appProfiles(_0x309039));return _0x52f24f['length']===0x1?_0x52f24f[0x0]:undefined;}function resolveTopLevelAppCode(_0x2b0dc0){const _0x580705=a283_0x35dc;return stringConfigValue(_0x2b0dc0[_0x580705(0xd4)])||stringConfigValue(_0x2b0dc0['app']);}function normalizeRiskCeiling(_0x4b7caf){const _0xebaa54=a283_0x35dc;if(_0x4b7caf===undefined||_0x4b7caf===null)return undefined;if(_0x4b7caf===_0xebaa54(0xd6)||_0x4b7caf===_0xebaa54(0xd5)||_0x4b7caf===_0xebaa54(0xc7))return _0x4b7caf;return _0xebaa54(0xd6);}function a283_0x35dc(_0x56f95c,_0x1a2040){_0x56f95c=_0x56f95c-0xb9;const _0x422217=a283_0x4222();let _0x35dc05=_0x422217[_0x56f95c];return _0x35dc05;}function resolveRiskCeiling(..._0xd90f6b){const _0x32d760=a283_0x35dc;let _0x44ea6a;for(const _0x575729 of _0xd90f6b){const _0x32ac3f=normalizeRiskCeiling(_0x575729);_0x32ac3f&&(!_0x44ea6a||riskLevelOrder(_0x32ac3f)<riskLevelOrder(_0x44ea6a))&&(_0x44ea6a=_0x32ac3f);}return _0x44ea6a??DEFAULT_CONFIG_VALUES[_0x32d760(0xde)];}export function resolveAppConfig({raw:_0x139ecb,flags:_0x18fac7,layers:_0x4bd126,readEnv:_0x2f8af3}){const _0x36708c=a283_0x35dc,_0x15f3a4=_0x4bd126?.[_0x36708c(0xc8)]??{},_0x32e09b=_0x4bd126?.[_0x36708c(0xca)]??{},_0x871346=!!_0x4bd126?.[_0x36708c(0xdd)]||Object[_0x36708c(0xd9)](_0x15f3a4)['length']>0x0,_0x1bdad5=!_0x871346,_0x2e2c79=_0x871346?resolveDefaultAppName(_0x15f3a4):undefined,_0x56d9e4=_0x1bdad5?resolveDefaultAppName(_0x32e09b):undefined,_0x575018=stringConfigValue(_0x18fac7['app']),_0x248079=_0x2f8af3('APP'),_0x4a985d={};if(_0x139ecb[_0x36708c(0xbc)]&&typeof _0x139ecb[_0x36708c(0xbc)]===_0x36708c(0xd2))for(const [_0x390728,_0x32d12d]of Object[_0x36708c(0xce)](_0x139ecb[_0x36708c(0xbc)])){_0x32d12d&&typeof _0x32d12d===_0x36708c(0xd2)&&_0x32d12d[_0x36708c(0xd4)]&&(_0x4a985d[_0x390728]=_0x32d12d);}const _0x1e160c=_0x2e2c79||_0x56d9e4||resolveDefaultAppName(_0x139ecb),_0x4f4cea=Object[_0x36708c(0xd9)](_0x4a985d)[_0x36708c(0xcb)]>0x0,_0x336a3d=_0x575018||_0x2e2c79||_0x248079||_0x56d9e4||_0x1e160c||undefined,_0x3f09e5=stringConfigValue(_0x18fac7[_0x36708c(0xd4)]),_0x43c1d1=_0x3f09e5?Object['entries'](_0x4a985d)['filter'](([,_0x3e8478])=>_0x3e8478?.['appcode']===_0x3f09e5):[],_0x1a06d5=_0x575018&&_0x4a985d[_0x575018]?.[_0x36708c(0xd4)]===_0x3f09e5?[_0x575018,_0x4a985d[_0x575018]]:undefined,_0xc75083=_0x1a06d5??(_0x43c1d1[_0x36708c(0xcb)]===0x1?_0x43c1d1[0x0]:undefined),_0x1715a5=_0xc75083?.[0x0],_0xebe2e5=_0xc75083?.[0x1],_0x292bc6=_0x3f09e5?_0x1715a5:_0x336a3d;let _0x851295=_0x292bc6&&_0x4a985d[_0x292bc6]?_0x4a985d[_0x292bc6]:undefined;_0x3f09e5&&_0xebe2e5&&(_0x851295=_0xebe2e5);const _0x36871a=_0x3f09e5?_0xebe2e5??_0x851295:_0x851295,_0x47f283=!_0x575018&&!_0x2e2c79&&_0x248079&&_0x292bc6===_0x248079,_0x475c9b=_0x575018||(_0x47f283?_0x248079:undefined)||(_0x3f09e5?_0x1715a5:undefined),_0x2f0978=_0x36871a?.['appcode'],_0x5b5041=_0x871346?resolveTopLevelAppCode(_0x15f3a4):undefined,_0x4877b3=_0x1bdad5?resolveTopLevelAppCode(_0x32e09b):undefined,_0x15a35d=_0x575018||_0x2e2c79?_0x2f0978:undefined,_0x3d5a51=!_0x575018&&!_0x2e2c79?_0x2f0978:undefined,_0x2d48dc=_0x3f09e5||_0x15a35d||_0x5b5041||_0x3d5a51||_0x4877b3||undefined,_0x13e763=_0x871346?stringConfigValue(_0x15f3a4['env']):undefined,_0x597ca7=_0x1bdad5?stringConfigValue(_0x32e09b[_0x36708c(0xcc)]):undefined,_0x606a66=_0x18fac7[_0x36708c(0xcc)]||_0x36871a?.[_0x36708c(0xcc)]||_0x13e763||_0x2f8af3(_0x36708c(0xcf))||_0x597ca7||_0x139ecb[_0x36708c(0xcc)]||DEFAULT_CONFIG_VALUES[_0x36708c(0xcc)],_0x325722=_0x36871a?.[_0x36708c(0xc9)]||_0x139ecb['locale']||DEFAULT_CONFIG_VALUES[_0x36708c(0xc9)],_0x42a27d=_0x2f8af3(_0x36708c(0xc2))||_0x36871a?.[_0x36708c(0xbd)]||_0x139ecb[_0x36708c(0xbd)]||undefined,_0x507da8=_0x2f8af3(_0x36708c(0xbf))||_0x36871a?.[_0x36708c(0xbe)]||_0x139ecb['accessKey']||undefined,_0x3dd6db=_0x18fac7[_0x36708c(0xbb)]||_0x2f8af3('FORMAT')||_0x36871a?.[_0x36708c(0xbb)]||_0x139ecb[_0x36708c(0xbb)],_0x45b4cd=normalizeLegacyOutputFormat(_0x3dd6db),_0x3a17a5=_0x2f8af3('PAGE_SIZE')||_0x36871a?.[_0x36708c(0xba)]||_0x139ecb[_0x36708c(0xba)],_0x2550cd=_0x3a17a5?Number(_0x3a17a5)||undefined:undefined,_0x47c72c=_0x4bd126?[_0x4bd126[_0x36708c(0xca)][_0x36708c(0xde)],_0x4bd126[_0x36708c(0xc8)][_0x36708c(0xde)]]:[_0x139ecb['riskLevel']],_0x5bf87a=resolveRiskCeiling(..._0x47c72c,_0x36871a?.['riskLevel']),_0x305e2f=resolveRiskCeiling(_0x5bf87a,_0x2f8af3(_0x36708c(0xc1))),_0x6adbee=_0x2f8af3(_0x36708c(0xc4)),_0x1613da=_0x6adbee==='1'||_0x6adbee===_0x36708c(0xcd),_0x84eba4=_0x36871a?.[_0x36708c(0xd1)]||_0x139ecb[_0x36708c(0xd1)]||DEFAULT_CONFIG_VALUES[_0x36708c(0xd1)],_0x3dd7fa=selectConfiguredRegion({'appRegion':_0x36871a?.[_0x36708c(0xe0)],'projectRegion':_0x871346?_0x15f3a4[_0x36708c(0xe0)]:undefined,'globalRegion':_0x871346||_0x1bdad5?_0x32e09b[_0x36708c(0xe0)]:undefined,'mergedRegion':_0x139ecb[_0x36708c(0xe0)]}),_0x393b99=normalizeLovrabetRegion(_0x3dd7fa['value'])??DEFAULT_LOVRABET_REGION,_0x4332bf=isDaily(normalizeEnv(String(_0x606a66)))?'daily':'production';return{'appCode':typeof _0x2d48dc===_0x36708c(0xc6)&&_0x2d48dc[_0x36708c(0xda)]()?_0x2d48dc[_0x36708c(0xda)]():undefined,'region':_0x393b99,'regionConfiguredValue':_0x3dd7fa[_0x36708c(0xdf)],'regionSource':_0x3dd7fa[_0x36708c(0xd3)],'env':_0x4332bf,'locale':_0x325722,'cookie':_0x42a27d,'accessKey':_0x507da8,'format':_0x45b4cd,'pageSize':_0x2550cd,'riskLevel':_0x305e2f,'verbose':_0x1613da,'apiDir':_0x84eba4,'apps':_0x4a985d,'defaultApp':_0x1e160c,'currentApp':_0x4f4cea?_0x292bc6:undefined,'explicitAppName':_0x475c9b};}
@@ -1 +1 @@
1
- (function(_0x4fbe30,_0x8cd03f){const _0x307860=a284_0x5b17,_0x31b45a=_0x4fbe30();while(!![]){try{const _0x3616ec=-parseInt(_0x307860(0xf0))/0x1*(-parseInt(_0x307860(0xf4))/0x2)+parseInt(_0x307860(0xf7))/0x3*(-parseInt(_0x307860(0xf1))/0x4)+-parseInt(_0x307860(0xf3))/0x5+-parseInt(_0x307860(0xf2))/0x6+-parseInt(_0x307860(0xf8))/0x7+parseInt(_0x307860(0xf5))/0x8+parseInt(_0x307860(0xf6))/0x9;if(_0x3616ec===_0x8cd03f)break;else _0x31b45a['push'](_0x31b45a['shift']());}catch(_0x10b663){_0x31b45a['push'](_0x31b45a['shift']());}}}(a284_0x4267,0x776d3));import{getIsSessionValid}from'../auth/is-session-valid.js';function a284_0x5b17(_0x2906ef,_0x397e63){_0x2906ef=_0x2906ef-0xef;const _0x426725=a284_0x4267();let _0x5b17c3=_0x426725[_0x2906ef];return _0x5b17c3;}import{CliErrors}from'../errors.js';function a284_0x4267(){const _0x5ccb4b=['4646432oWbFTK','authRequired','347alGCgy','2156548XEdIxf','3877650tEPUKW','2965985OVrHRJ','3966MgjCfs','6598808IEQngA','12767436VVOEZo','3OPpTWE'];a284_0x4267=function(){return _0x5ccb4b;};return a284_0x4267();}export async function buildAuth(_0x5f4c2b){const {getCookie:_0x4fae59}=await import('../auth/get-cookie.js'),_0x1d3557=_0x5f4c2b['cookie']||_0x4fae59(),_0x59cdc7=_0x1d3557?await getIsSessionValid():![];return{'cookie':_0x1d3557,'isLoggedIn':_0x59cdc7,async 'getOrLogin'(){const _0x85164b=a284_0x5b17;if(_0x1d3557&&_0x59cdc7)return _0x1d3557;throw CliErrors[_0x85164b(0xef)]();}};}
1
+ (function(_0x38b966,_0x34381d){const _0x22badd=a284_0x1593,_0x1c8708=_0x38b966();while(!![]){try{const _0x30e7e3=parseInt(_0x22badd(0xf7))/0x1*(parseInt(_0x22badd(0xf6))/0x2)+parseInt(_0x22badd(0xfb))/0x3*(parseInt(_0x22badd(0xf4))/0x4)+-parseInt(_0x22badd(0xed))/0x5*(-parseInt(_0x22badd(0xf0))/0x6)+parseInt(_0x22badd(0xf2))/0x7*(parseInt(_0x22badd(0xfa))/0x8)+-parseInt(_0x22badd(0xf3))/0x9*(parseInt(_0x22badd(0xf5))/0xa)+parseInt(_0x22badd(0xf1))/0xb+-parseInt(_0x22badd(0xf8))/0xc;if(_0x30e7e3===_0x34381d)break;else _0x1c8708['push'](_0x1c8708['shift']());}catch(_0x54772b){_0x1c8708['push'](_0x1c8708['shift']());}}}(a284_0x2caa,0x8d753));import{getIsSessionValid}from'../auth/is-session-valid.js';function a284_0x2caa(){const _0x2610b1=['cookie','11464dKffPP','6363aSkVAb','1195OkzBbj','authRequired','../auth/get-cookie.js','4614AeCrtw','9858090fidfHl','4270pnsjma','480690pVWdur','164TFZjdo','80zDiOYj','543642CIiQJz','2yRRyEw','18936276KrPpDM'];a284_0x2caa=function(){return _0x2610b1;};return a284_0x2caa();}import{CliErrors}from'../errors.js';function a284_0x1593(_0x7d6e02,_0x5fe506){_0x7d6e02=_0x7d6e02-0xed;const _0x2caac2=a284_0x2caa();let _0x1593b9=_0x2caac2[_0x7d6e02];return _0x1593b9;}export async function buildAuth(_0x480d98){const _0x25b223=a284_0x1593,{getCookie:_0x40199a}=await import(_0x25b223(0xef)),_0x5b8d90=_0x480d98[_0x25b223(0xf9)]||_0x40199a(),_0x3667df=_0x5b8d90?await getIsSessionValid():![];return{'cookie':_0x5b8d90,'isLoggedIn':_0x3667df,async 'getOrLogin'(){const _0x269e1a=_0x25b223;if(_0x5b8d90&&_0x3667df)return _0x5b8d90;throw CliErrors[_0x269e1a(0xee)]();}};}
@@ -1 +1 @@
1
- const a285_0x475e72=a285_0x24f1;(function(_0x46380d,_0x1cbff8){const _0x4be5ce=a285_0x24f1,_0x49d299=_0x46380d();while(!![]){try{const _0xb81fd1=parseInt(_0x4be5ce(0xdb))/0x1*(parseInt(_0x4be5ce(0xd3))/0x2)+-parseInt(_0x4be5ce(0xce))/0x3*(-parseInt(_0x4be5ce(0x100))/0x4)+parseInt(_0x4be5ce(0x101))/0x5+parseInt(_0x4be5ce(0xe8))/0x6*(parseInt(_0x4be5ce(0x103))/0x7)+-parseInt(_0x4be5ce(0xe5))/0x8*(-parseInt(_0x4be5ce(0xd2))/0x9)+-parseInt(_0x4be5ce(0xd8))/0xa+-parseInt(_0x4be5ce(0xde))/0xb;if(_0xb81fd1===_0x1cbff8)break;else _0x49d299['push'](_0x49d299['shift']());}catch(_0x2326b0){_0x49d299['push'](_0x49d299['shift']());}}}(a285_0x28d2,0xc11bb));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=a285_0x475e72(0xf7);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x151fb0){for(const _0x475676 of CONFIG_NAMES){const _0x208647=resolve(_0x151fb0,_0x475676);if(existsSync(_0x208647))return _0x208647;}return undefined;}export function findProjectRootDirectory(_0x6ff512=process['cwd']()){let _0x330215=resolve(_0x6ff512);const {root:_0x54f963}=parse(_0x330215),_0x4005a2=homedir();while(!![]){if(resolveConfigPath(_0x330215)){if(_0x330215===_0x4005a2)break;return _0x330215;}if(_0x330215===_0x54f963||_0x330215===_0x4005a2)break;const _0x381e22=dirname(_0x330215);if(_0x381e22===_0x330215)break;_0x330215=_0x381e22;}return resolve(_0x6ff512);}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x1a454a){const _0x7a3d06=a285_0x475e72;if(!existsSync(_0x1a454a))return{'status':'missing'};try{const _0x595b0e=readFileSync(_0x1a454a,{'encoding':_0x7a3d06(0xf4)});if(!_0x595b0e?.[_0x7a3d06(0xd0)]())return{'status':_0x7a3d06(0xf5)};const _0x1ead41=JSON['parse'](_0x595b0e);return{'status':'ok','data':_0x1ead41};}catch(_0x3afd3b){return{'status':_0x7a3d06(0x102),'message':_0x3afd3b instanceof Error?_0x3afd3b[_0x7a3d06(0xe4)]:String(_0x3afd3b)};}}function parseCliConfigJsonFile(_0x277b54,_0x45ebcd,_0x4b78dc){const _0x5e19d7=a285_0x475e72,_0x4ea6c8=inspectCliConfigJsonFile(_0x277b54);if(_0x4ea6c8['status']===_0x5e19d7(0xe7)||_0x4ea6c8[_0x5e19d7(0xdd)]===_0x5e19d7(0xf5))return{};if(_0x4ea6c8['status']==='ok')return _0x4ea6c8['data'];return _0x45ebcd==='warn'&&_0x4b78dc&&console[_0x5e19d7(0x102)](CLI_BIN_NAME+':\x20'+_0x4b78dc+_0x5e19d7(0xdf)+_0x277b54+'\x0a\x20\x20'+_0x4ea6c8['message']),{};}function normalizeLegacyConfigShape(_0x4fe49e){const _0x636d47=a285_0x475e72;if(!_0x4fe49e||typeof _0x4fe49e!==_0x636d47(0xfc))return{'config':{},'migrated':![]};const _0x97eb32={..._0x4fe49e},_0x38f0f1=_0x97eb32['apps']&&typeof _0x97eb32[_0x636d47(0xea)]==='object'?{..._0x97eb32[_0x636d47(0xea)]}:{},_0x39b00f=Object[_0x636d47(0xeb)](_0x38f0f1)[_0x636d47(0xe1)],_0x2a5dc7=_0x97eb32[_0x636d47(0xf9)]||_0x97eb32[_0x636d47(0x104)];let _0x2e96c0=![];if(_0x2a5dc7&&_0x39b00f===0x0){const _0x59ddac=typeof _0x97eb32[_0x636d47(0xf3)]===_0x636d47(0xee)&&_0x97eb32[_0x636d47(0xf3)][_0x636d47(0xd0)]()?_0x97eb32[_0x636d47(0xf3)]:String(_0x2a5dc7)[_0x636d47(0xd0)]();_0x38f0f1[_0x59ddac]={'appcode':String(_0x2a5dc7)[_0x636d47(0xd0)](),..._0x97eb32[_0x636d47(0xd4)]!=null?{'env':_0x97eb32[_0x636d47(0xd4)]}:{},..._0x97eb32[_0x636d47(0xf2)]!=null?{'apiDir':_0x97eb32[_0x636d47(0xf2)]}:{},..._0x97eb32[_0x636d47(0xec)]!=null?{'cookie':_0x97eb32[_0x636d47(0xec)]}:{},..._0x97eb32[_0x636d47(0xf0)]!=null?{'accessKey':_0x97eb32[_0x636d47(0xf0)]}:{},..._0x97eb32[_0x636d47(0xe2)]!=null?{'format':_0x97eb32[_0x636d47(0xe2)]}:{},..._0x97eb32['pageSize']!=null?{'pageSize':_0x97eb32[_0x636d47(0xe6)]}:{},..._0x97eb32[_0x636d47(0xf1)]!=null?{'riskLevel':_0x97eb32[_0x636d47(0xf1)]}:{},..._0x97eb32[_0x636d47(0xe3)]!=null?{'locale':_0x97eb32[_0x636d47(0xe3)]}:{}},_0x97eb32['apps']=_0x38f0f1,delete _0x97eb32['defaultApp'],_0x2e96c0=!![];}return(_0x636d47(0xf9)in _0x97eb32||_0x636d47(0x104)in _0x97eb32)&&(delete _0x97eb32[_0x636d47(0xf9)],delete _0x97eb32[_0x636d47(0x104)],_0x2e96c0=!![]),{'config':_0x97eb32,'migrated':_0x2e96c0};}function writeNormalizedConfigIfNeeded(_0x3a1131,_0x3bbb88){const _0x390daa=a285_0x475e72,_0x23261c=JSON[_0x390daa(0xd6)](normalizeConfigForWrite(_0x3bbb88),null,0x2)+'\x0a';if(normalizedWriteCache[_0x390daa(0xef)](_0x3a1131)===_0x23261c)return;writeConfigFile(_0x3a1131,_0x3bbb88),normalizedWriteCache[_0x390daa(0xfd)](_0x3a1131,_0x23261c);}function parseAndNormalizeConfig(_0x24643c,_0x3b3531,_0x1586e5){const _0x4f171d=a285_0x475e72,_0x417b65=parseCliConfigJsonFile(_0x24643c,_0x3b3531,_0x1586e5),_0x52a632=normalizeLegacyConfigShape(_0x417b65);if(_0x52a632['migrated'])try{writeNormalizedConfigIfNeeded(_0x24643c,_0x52a632[_0x4f171d(0xfb)]);}catch{}return _0x52a632['config'];}export function loadRawConfigLayers(_0x1dab9c){const _0x1e28de=a285_0x475e72;let _0x452ed8={},_0x1d8ad2={};const _0xbd46bd=resolveConfigPath(homedir());_0xbd46bd&&(_0x452ed8=parseAndNormalizeConfig(_0xbd46bd,_0x1e28de(0xcf),'Global'));const _0x5baab3=_0x1dab9c??findProjectRootDirectory(),_0x5a813f=resolveConfigPath(_0x5baab3);return _0x5a813f&&(_0x1d8ad2=parseAndNormalizeConfig(_0x5a813f,_0x1e28de(0xcf),_0x1e28de(0xf8))),{'globalPath':_0xbd46bd,'projectPath':_0x5a813f,'globalConfig':_0x452ed8,'projectConfig':_0x1d8ad2};}const INHERIT_WHITELIST=[a285_0x475e72(0xec),a285_0x475e72(0xf0),a285_0x475e72(0xe3),'format',a285_0x475e72(0xf1),a285_0x475e72(0xe6),a285_0x475e72(0xd9),a285_0x475e72(0xe0),a285_0x475e72(0xd7),a285_0x475e72(0xff),'runtimeDomain',a285_0x475e72(0xfe),a285_0x475e72(0xd5),a285_0x475e72(0xda),a285_0x475e72(0xd1),a285_0x475e72(0xfa),'certificateDomain'];export function mergeRawConfigLayers(_0xd2534f){const _0x577b6d=a285_0x475e72,{globalConfig:_0x23a5ac,projectConfig:_0x42b9a2}=_0xd2534f,_0x56cb4c=!!_0xd2534f['projectPath']||Object['keys'](_0x42b9a2)[_0x577b6d(0xe1)]>0x0;if(!_0x56cb4c)return mergeGlobalOnly(_0x23a5ac);return mergeProjectFirst(_0x23a5ac,_0x42b9a2);}function mergeGlobalOnly(_0x350a0a){const _0x53bac3=a285_0x475e72,_0x223cfe={..._0x350a0a};delete _0x223cfe[_0x53bac3(0xf6)];const _0x313798=_0x350a0a[_0x53bac3(0xea)]&&typeof _0x350a0a['apps']==='object'?_0x350a0a[_0x53bac3(0xea)]:{};if(Object[_0x53bac3(0xeb)](_0x313798)[_0x53bac3(0xe1)]>0x0)_0x223cfe['apps']=_0x313798;if(_0x350a0a[_0x53bac3(0xf3)])_0x223cfe['defaultApp']=_0x350a0a[_0x53bac3(0xf3)];return _0x223cfe;}function mergeProjectFirst(_0x4e0c02,_0x212f7c){const _0x3eb061=a285_0x475e72,_0x5401cf={..._0x212f7c};delete _0x5401cf[_0x3eb061(0xf6)];for(const _0x2541e0 of INHERIT_WHITELIST){!(_0x2541e0 in _0x5401cf)&&_0x2541e0 in _0x4e0c02&&(_0x5401cf[_0x2541e0]=_0x4e0c02[_0x2541e0]);}const _0x3cf94c=_0x212f7c['apps']&&typeof _0x212f7c[_0x3eb061(0xea)]==='object'?_0x212f7c[_0x3eb061(0xea)]:{};return Object[_0x3eb061(0xeb)](_0x3cf94c)[_0x3eb061(0xe1)]>0x0?_0x5401cf[_0x3eb061(0xea)]=_0x3cf94c:delete _0x5401cf['apps'],'defaultApp'in _0x212f7c?_0x5401cf['defaultApp']=_0x212f7c[_0x3eb061(0xf3)]:delete _0x5401cf['defaultApp'],_0x5401cf;}export function readRawConfigWithLayers(_0x38c4c5){const _0x2acd97=loadRawConfigLayers(_0x38c4c5);return{'config':mergeRawConfigLayers(_0x2acd97),'layers':_0x2acd97};}function a285_0x24f1(_0x54af28,_0x5636d1){_0x54af28=_0x54af28-0xce;const _0x28d2c9=a285_0x28d2();let _0x24f133=_0x28d2c9[_0x54af28];return _0x24f133;}export function readRawConfig(_0x29d9b3){return mergeRawConfigLayers(loadRawConfigLayers(_0x29d9b3));}export function readConfigFile(_0x1dcac1){const _0x4fe59b=a285_0x475e72;return parseAndNormalizeConfig(_0x1dcac1,_0x4fe59b(0xdc));}export function writeConfigFile(_0x25ce49,_0x2d7ecb){const _0x13f260=a285_0x475e72,_0x29fb0e=dirname(_0x25ce49);!existsSync(_0x29fb0e)&&mkdirSync(_0x29fb0e,{'recursive':!![]});const _0x3adad5=_0x25ce49+_0x13f260(0xe9);try{const _0x27f7c8=normalizeConfigForWrite(_0x2d7ecb);writeFileSync(_0x3adad5,JSON[_0x13f260(0xd6)](_0x27f7c8,null,0x2)+'\x0a',{'encoding':_0x13f260(0xf4),'mode':0x180}),renameSync(_0x3adad5,_0x25ce49);}catch(_0x3dcefe){try{unlinkSync(_0x3adad5);}catch{}throw _0x3dcefe;}}export function resolveWriteConfigPath(_0x579ae8){const _0x57e325=a285_0x475e72,_0x4e9382=_0x579ae8==='project'?process[_0x57e325(0xed)]():homedir(),_0x2808d9=resolveConfigPath(_0x4e9382);return _0x2808d9??resolve(_0x4e9382,NEW_CONFIG_NAME);}function a285_0x28d2(){const _0x1300fa=['object','set','skillDomain','apiDomain','433948CHZciZ','3908995AvmwMm','error','6034063OTEeQE','app','24yWnXxY','warn','trim','appDomain','19863zLgeyk','2125806VueJYx','env','kbDomain','stringify','userDomain','8141940NLHJXX','region','kbServiceDomain','1rkztLg','silent','status','32685620AoRhoi','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','routing','length','format','locale','message','3632Uzpsae','pageSize','missing','6AKkhdY','.tmp','apps','keys','cookie','cwd','string','get','accessKey','riskLevel','apiDir','defaultApp','utf8','empty','inherit','.rabetbase.json','Project','appcode','localDomain','config'];a285_0x28d2=function(){return _0x1300fa;};return a285_0x28d2();}
1
+ const a285_0x47d4bf=a285_0x424c;(function(_0x57bebe,_0xf1c577){const _0x4c91a9=a285_0x424c,_0x160928=_0x57bebe();while(!![]){try{const _0x348c35=-parseInt(_0x4c91a9(0x132))/0x1*(parseInt(_0x4c91a9(0x10f))/0x2)+parseInt(_0x4c91a9(0x123))/0x3+-parseInt(_0x4c91a9(0x13a))/0x4*(-parseInt(_0x4c91a9(0x12e))/0x5)+parseInt(_0x4c91a9(0x114))/0x6+-parseInt(_0x4c91a9(0x127))/0x7+parseInt(_0x4c91a9(0x129))/0x8+-parseInt(_0x4c91a9(0x139))/0x9;if(_0x348c35===_0xf1c577)break;else _0x160928['push'](_0x160928['shift']());}catch(_0x4c17a3){_0x160928['push'](_0x160928['shift']());}}}(a285_0x3a1c,0x425b5));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=a285_0x47d4bf(0x11b);function a285_0x3a1c(){const _0x2f8a1f=['runtimeDomain','empty','format','1431829RkYuSF','stringify','3902320owdDyN','defaultApp','data','certificateDomain','.tmp','62765ZLVabC','status','riskLevel','appDomain','1xciTpB','silent','migrated','apiDir','accessKey','inherit','warn','4540617sZIxTv','124cvlUGT','keys','appcode','trim','locale','length','set','Global','Project','string','userDomain','332042KmuBXE','utf8','\x0a\x20\x20','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','object','501060sxVvCM','missing','app','project','config','env','pageSize','.rabetbase.json','cookie','message','apps','error','routing','cwd','apiDomain','559305tBExcb'];a285_0x3a1c=function(){return _0x2f8a1f;};return a285_0x3a1c();}export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x29f60e){for(const _0x864cf6 of CONFIG_NAMES){const _0x3670a7=resolve(_0x29f60e,_0x864cf6);if(existsSync(_0x3670a7))return _0x3670a7;}return undefined;}export function findProjectRootDirectory(_0x2513a6=process[a285_0x47d4bf(0x121)]()){let _0x2a9e3c=resolve(_0x2513a6);const {root:_0x19ce51}=parse(_0x2a9e3c),_0x2fb0ef=homedir();while(!![]){if(resolveConfigPath(_0x2a9e3c)){if(_0x2a9e3c===_0x2fb0ef)break;return _0x2a9e3c;}if(_0x2a9e3c===_0x19ce51||_0x2a9e3c===_0x2fb0ef)break;const _0x5f4c56=dirname(_0x2a9e3c);if(_0x5f4c56===_0x2a9e3c)break;_0x2a9e3c=_0x5f4c56;}return resolve(_0x2513a6);}export function getProjectConfigPath(){const _0x29cf5d=a285_0x47d4bf;return resolveConfigPath(process[_0x29cf5d(0x121)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x2775c1){const _0x19388c=a285_0x47d4bf;if(!existsSync(_0x2775c1))return{'status':_0x19388c(0x115)};try{const _0x2c6b35=readFileSync(_0x2775c1,{'encoding':_0x19388c(0x110)});if(!_0x2c6b35?.[_0x19388c(0x13d)]())return{'status':_0x19388c(0x125)};const _0x2efb6a=JSON['parse'](_0x2c6b35);return{'status':'ok','data':_0x2efb6a};}catch(_0x516e2e){return{'status':_0x19388c(0x11f),'message':_0x516e2e instanceof Error?_0x516e2e[_0x19388c(0x11d)]:String(_0x516e2e)};}}function parseCliConfigJsonFile(_0x419600,_0x436bcc,_0x2fef6d){const _0x3ae8ed=a285_0x47d4bf,_0x489ee8=inspectCliConfigJsonFile(_0x419600);if(_0x489ee8['status']===_0x3ae8ed(0x115)||_0x489ee8['status']===_0x3ae8ed(0x125))return{};if(_0x489ee8[_0x3ae8ed(0x12f)]==='ok')return _0x489ee8[_0x3ae8ed(0x12b)];return _0x436bcc===_0x3ae8ed(0x138)&&_0x2fef6d&&console[_0x3ae8ed(0x11f)](CLI_BIN_NAME+':\x20'+_0x2fef6d+_0x3ae8ed(0x112)+_0x419600+_0x3ae8ed(0x111)+_0x489ee8[_0x3ae8ed(0x11d)]),{};}function normalizeLegacyConfigShape(_0x59c449){const _0x1af16e=a285_0x47d4bf;if(!_0x59c449||typeof _0x59c449!==_0x1af16e(0x113))return{'config':{},'migrated':![]};const _0x3221b3={..._0x59c449},_0x1a3050=_0x3221b3[_0x1af16e(0x11e)]&&typeof _0x3221b3['apps']===_0x1af16e(0x113)?{..._0x3221b3['apps']}:{},_0x17a22a=Object[_0x1af16e(0x13b)](_0x1a3050)[_0x1af16e(0x13f)],_0x468377=_0x3221b3[_0x1af16e(0x13c)]||_0x3221b3[_0x1af16e(0x116)];let _0x20f5e7=![];if(_0x468377&&_0x17a22a===0x0){const _0x559359=typeof _0x3221b3['defaultApp']===_0x1af16e(0x143)&&_0x3221b3[_0x1af16e(0x12a)][_0x1af16e(0x13d)]()?_0x3221b3['defaultApp']:String(_0x468377)[_0x1af16e(0x13d)]();_0x1a3050[_0x559359]={'appcode':String(_0x468377)[_0x1af16e(0x13d)](),..._0x3221b3[_0x1af16e(0x119)]!=null?{'env':_0x3221b3['env']}:{},..._0x3221b3[_0x1af16e(0x135)]!=null?{'apiDir':_0x3221b3[_0x1af16e(0x135)]}:{},..._0x3221b3['cookie']!=null?{'cookie':_0x3221b3['cookie']}:{},..._0x3221b3[_0x1af16e(0x136)]!=null?{'accessKey':_0x3221b3['accessKey']}:{},..._0x3221b3[_0x1af16e(0x126)]!=null?{'format':_0x3221b3['format']}:{},..._0x3221b3[_0x1af16e(0x11a)]!=null?{'pageSize':_0x3221b3[_0x1af16e(0x11a)]}:{},..._0x3221b3[_0x1af16e(0x130)]!=null?{'riskLevel':_0x3221b3['riskLevel']}:{},..._0x3221b3[_0x1af16e(0x13e)]!=null?{'locale':_0x3221b3[_0x1af16e(0x13e)]}:{}},_0x3221b3['apps']=_0x1a3050,delete _0x3221b3[_0x1af16e(0x12a)],_0x20f5e7=!![];}return(_0x1af16e(0x13c)in _0x3221b3||_0x1af16e(0x116)in _0x3221b3)&&(delete _0x3221b3[_0x1af16e(0x13c)],delete _0x3221b3[_0x1af16e(0x116)],_0x20f5e7=!![]),{'config':_0x3221b3,'migrated':_0x20f5e7};}function writeNormalizedConfigIfNeeded(_0x3f29b9,_0x1188cd){const _0x331d7c=a285_0x47d4bf,_0x13472f=JSON[_0x331d7c(0x128)](normalizeConfigForWrite(_0x1188cd),null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x3f29b9)===_0x13472f)return;writeConfigFile(_0x3f29b9,_0x1188cd),normalizedWriteCache[_0x331d7c(0x140)](_0x3f29b9,_0x13472f);}function parseAndNormalizeConfig(_0x24cde0,_0x40124a,_0xa059ca){const _0x2aa8c3=a285_0x47d4bf,_0x29cfd4=parseCliConfigJsonFile(_0x24cde0,_0x40124a,_0xa059ca),_0xf87a2=normalizeLegacyConfigShape(_0x29cfd4);if(_0xf87a2[_0x2aa8c3(0x134)])try{writeNormalizedConfigIfNeeded(_0x24cde0,_0xf87a2[_0x2aa8c3(0x118)]);}catch{}return _0xf87a2[_0x2aa8c3(0x118)];}export function loadRawConfigLayers(_0x26a060){const _0x4b28c8=a285_0x47d4bf;let _0x410637={},_0xbcdaa1={};const _0x51f43c=resolveConfigPath(homedir());_0x51f43c&&(_0x410637=parseAndNormalizeConfig(_0x51f43c,_0x4b28c8(0x138),_0x4b28c8(0x141)));const _0x18e9e2=_0x26a060??findProjectRootDirectory(),_0x27e965=resolveConfigPath(_0x18e9e2);return _0x27e965&&(_0xbcdaa1=parseAndNormalizeConfig(_0x27e965,_0x4b28c8(0x138),_0x4b28c8(0x142))),{'globalPath':_0x51f43c,'projectPath':_0x27e965,'globalConfig':_0x410637,'projectConfig':_0xbcdaa1};}const INHERIT_WHITELIST=[a285_0x47d4bf(0x11c),a285_0x47d4bf(0x136),a285_0x47d4bf(0x13e),'format',a285_0x47d4bf(0x130),a285_0x47d4bf(0x11a),'region',a285_0x47d4bf(0x120),a285_0x47d4bf(0x144),a285_0x47d4bf(0x122),a285_0x47d4bf(0x124),'skillDomain','kbDomain','kbServiceDomain',a285_0x47d4bf(0x131),'localDomain',a285_0x47d4bf(0x12c)];export function mergeRawConfigLayers(_0x51c73a){const _0x5b17dc=a285_0x47d4bf,{globalConfig:_0x3dc95e,projectConfig:_0x5c424d}=_0x51c73a,_0x256a32=!!_0x51c73a['projectPath']||Object[_0x5b17dc(0x13b)](_0x5c424d)[_0x5b17dc(0x13f)]>0x0;if(!_0x256a32)return mergeGlobalOnly(_0x3dc95e);return mergeProjectFirst(_0x3dc95e,_0x5c424d);}function mergeGlobalOnly(_0x3c2421){const _0x38427f=a285_0x47d4bf,_0x38d95b={..._0x3c2421};delete _0x38d95b['inherit'];const _0x3ea16c=_0x3c2421[_0x38427f(0x11e)]&&typeof _0x3c2421[_0x38427f(0x11e)]==='object'?_0x3c2421[_0x38427f(0x11e)]:{};if(Object[_0x38427f(0x13b)](_0x3ea16c)[_0x38427f(0x13f)]>0x0)_0x38d95b[_0x38427f(0x11e)]=_0x3ea16c;if(_0x3c2421[_0x38427f(0x12a)])_0x38d95b[_0x38427f(0x12a)]=_0x3c2421[_0x38427f(0x12a)];return _0x38d95b;}function a285_0x424c(_0x5d76e3,_0xfe0220){_0x5d76e3=_0x5d76e3-0x10f;const _0x3a1c99=a285_0x3a1c();let _0x424cf1=_0x3a1c99[_0x5d76e3];return _0x424cf1;}function mergeProjectFirst(_0x16605a,_0x3349e0){const _0x48267c=a285_0x47d4bf,_0x27ccdc={..._0x3349e0};delete _0x27ccdc[_0x48267c(0x137)];for(const _0x559d60 of INHERIT_WHITELIST){!(_0x559d60 in _0x27ccdc)&&_0x559d60 in _0x16605a&&(_0x27ccdc[_0x559d60]=_0x16605a[_0x559d60]);}const _0x5ddd5f=_0x3349e0[_0x48267c(0x11e)]&&typeof _0x3349e0['apps']==='object'?_0x3349e0[_0x48267c(0x11e)]:{};return Object[_0x48267c(0x13b)](_0x5ddd5f)[_0x48267c(0x13f)]>0x0?_0x27ccdc[_0x48267c(0x11e)]=_0x5ddd5f:delete _0x27ccdc['apps'],_0x48267c(0x12a)in _0x3349e0?_0x27ccdc[_0x48267c(0x12a)]=_0x3349e0[_0x48267c(0x12a)]:delete _0x27ccdc[_0x48267c(0x12a)],_0x27ccdc;}export function readRawConfigWithLayers(_0x55e76d){const _0x1449f3=loadRawConfigLayers(_0x55e76d);return{'config':mergeRawConfigLayers(_0x1449f3),'layers':_0x1449f3};}export function readRawConfig(_0x4d8a3f){return mergeRawConfigLayers(loadRawConfigLayers(_0x4d8a3f));}export function readConfigFile(_0x846325){const _0x10c57d=a285_0x47d4bf;return parseAndNormalizeConfig(_0x846325,_0x10c57d(0x133));}export function writeConfigFile(_0x34445b,_0x3495f7){const _0x18b77e=a285_0x47d4bf,_0x55fcef=dirname(_0x34445b);!existsSync(_0x55fcef)&&mkdirSync(_0x55fcef,{'recursive':!![]});const _0x4cb994=_0x34445b+_0x18b77e(0x12d);try{const _0x59eb93=normalizeConfigForWrite(_0x3495f7);writeFileSync(_0x4cb994,JSON[_0x18b77e(0x128)](_0x59eb93,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180}),renameSync(_0x4cb994,_0x34445b);}catch(_0x4bef81){try{unlinkSync(_0x4cb994);}catch{}throw _0x4bef81;}}export function resolveWriteConfigPath(_0x2ba1ae){const _0xf3753=a285_0x47d4bf,_0x41bdc3=_0x2ba1ae===_0xf3753(0x117)?process['cwd']():homedir(),_0x3ffdf4=resolveConfigPath(_0x41bdc3);return _0x3ffdf4??resolve(_0x41bdc3,NEW_CONFIG_NAME);}
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a286_0x26a0f0=a286_0x37af;(function(_0x291a3b,_0x5d1e1e){const _0x30ce9a=a286_0x37af,_0x153c3f=_0x291a3b();while(!![]){try{const _0x3c52ac=-parseInt(_0x30ce9a(0x1e0))/0x1+-parseInt(_0x30ce9a(0x1ca))/0x2+parseInt(_0x30ce9a(0x1de))/0x3+-parseInt(_0x30ce9a(0x1b1))/0x4+parseInt(_0x30ce9a(0x1bb))/0x5*(parseInt(_0x30ce9a(0x1d8))/0x6)+parseInt(_0x30ce9a(0x1c5))/0x7*(-parseInt(_0x30ce9a(0x1e9))/0x8)+parseInt(_0x30ce9a(0x1b0))/0x9;if(_0x3c52ac===_0x5d1e1e)break;else _0x153c3f['push'](_0x153c3f['shift']());}catch(_0x4e45bc){_0x153c3f['push'](_0x153c3f['shift']());}}}(a286_0x5122,0xa15eb));import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{resolveConfiguredRegion,resolveEffectiveRegion}from'./config/region-config.js';import{resolveEnterpriseRoutingManifest}from'./config/domain-config.js';import{logger}from'./utils/logger.js';import{resolveApiModelSource}from'./api/model-source.js';export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x3c6731){return process.env[`RABETBASE_${_0x3c6731}`]||process.env[`LOVRABET_${_0x3c6731}`]||undefined;}function a286_0x5122(){const _0x572e01=['kbDomain','values','apps','region','defaultApp','26357724qEzAOs','613960MgVawT','projectConfig','trim','some','globalConfig','agentDomain','doctor','routingConfig','join','entries','125AOuVJI','apiDir','appcode','daily','filePath','configuredRegion','app','filter','config','platformDomain','4680025DmnHGu','runtimeDomain','Rabetbase\x20configuration','app\x20profile\x20\x22','regionConfiguredValue','2066974FrTfyC','kbServiceDomain','./constant/env.js','prototype','string','domains','template_base_url','length','localDomain','userDomain','routing','source','global\x20Rabetbase\x20configuration','cwd','51132uHudWc','certificateDomain','appDomain','targetEnv','slice','raw','991056CtcdyQ','hasOwnProperty','955515chlkoL','env','regionSource','./utils/is-non-interactive.js','skillDomain','./constant/domain.js','keys','call','apiGroup','8iQgtbC','apiDomain','name','skillHubDomain','setRawCommand','object','https://g.lovrabet.com/dist/lovrabet-skill','global','currentApp','project'];a286_0x5122=function(){return _0x572e01;};return a286_0x5122();}function optionalString(_0x4abda9){const _0x10fdab=a286_0x37af;return typeof _0x4abda9===_0x10fdab(0x1ce)&&_0x4abda9[_0x10fdab(0x1b3)]()?_0x4abda9[_0x10fdab(0x1b3)]():undefined;}export function isRoutingRecoveryService(_0x162bdb){const _0x4abb2c=a286_0x37af;return _0x162bdb===_0x4abb2c(0x1c3)||_0x162bdb===_0x4abb2c(0x1b7);}function a286_0x37af(_0x3d217d,_0x23611c){_0x3d217d=_0x3d217d-0x1a3;const _0x512285=a286_0x5122();let _0x37af20=_0x512285[_0x3d217d];return _0x37af20;}export async function createContext(_0x539f0c){const _0x3a026d=a286_0x37af,{config:_0xf0b149,layers:_0x1ae201}=readRawConfigWithLayers(),_0x4e242e=buildConfig(_0xf0b149,_0x539f0c,_0x1ae201);await initGlobalEnvironment(_0x4e242e);const {getUserDomain:_0x3c0b24,getApiDomain:_0xf644d7}=await import(_0x3a026d(0x1e5)),_0x85181d={'apiDomain':_0xf644d7(),'userDomain':_0x3c0b24()},_0x51ce63=await buildAuth(_0x4e242e);logger['setLogPath'](process[_0x3a026d(0x1d7)]());const _0x5be315=(CLI_BIN_NAME+'\x20'+process['argv'][_0x3a026d(0x1dc)](0x2)[_0x3a026d(0x1b9)]('\x20'))[_0x3a026d(0x1b3)]();logger[_0x3a026d(0x1a5)](_0x5be315);const {isNonInteractive:_0x1fb1f7}=await import(_0x3a026d(0x1e3)),_0x59bc27=_0x1fb1f7(_0x539f0c);return{'config':_0x4e242e,'auth':_0x51ce63,'logger':logger,'env':_0x85181d,'nonInteractive':_0x59bc27};}export function buildConfigFromFlags(_0x8a9e95){const {config:_0x27db01,layers:_0x31a704}=readRawConfigWithLayers();return buildConfig(_0x27db01,_0x8a9e95,_0x31a704);}export async function initGlobalEnvironment(_0x28a98d){const _0x9a7062=a286_0x37af,_0x5b6c62=_0x28a98d['regionSource']===_0x9a7062(0x1c1)&&_0x28a98d[_0x9a7062(0x1a9)]?'app\x20profile\x20\x22'+_0x28a98d[_0x9a7062(0x1a9)]+'\x22':_0x28a98d[_0x9a7062(0x1e2)]===_0x9a7062(0x1aa)?'project\x20Rabetbase\x20configuration':_0x28a98d[_0x9a7062(0x1e2)]===_0x9a7062(0x1a8)?_0x9a7062(0x1d6):_0x9a7062(0x1c7);await initConfiguredEnvironment({'raw':_0x28a98d['raw'],'configuredRegion':_0x28a98d[_0x9a7062(0x1c9)]??_0x28a98d[_0x9a7062(0x1dd)]?.[_0x9a7062(0x1ae)]??_0x28a98d[_0x9a7062(0x1ae)],'regionLocation':_0x5b6c62,'targetEnv':_0x28a98d[_0x9a7062(0x1e1)]});}async function initConfiguredEnvironment(_0x8cc95c){const _0x320d09=a286_0x37af,_0x4931d0=resolveConfiguredRegion(_0x8cc95c[_0x320d09(0x1c0)],_0x8cc95c['regionLocation']),_0x31cf80=resolveEnterpriseRoutingManifest(_0x8cc95c[_0x320d09(0x1dd)]?.[_0x320d09(0x1d4)]),_0x1d02b5={'region':_0x4931d0,'apiDomain':_0x31cf80?_0x31cf80['domains'][_0x320d09(0x1ea)]:optionalString(_0x8cc95c['raw']?.['apiDomain']),'userDomain':_0x31cf80?_0x31cf80[_0x320d09(0x1cf)][_0x320d09(0x1d3)]:optionalString(_0x8cc95c[_0x320d09(0x1dd)]?.[_0x320d09(0x1d3)]),'runtimeDomain':_0x31cf80?_0x31cf80[_0x320d09(0x1cf)]['runtimeDomain']:optionalString(_0x8cc95c['raw']?.[_0x320d09(0x1c6)]),'skillDomain':_0x31cf80?_0x31cf80['domains'][_0x320d09(0x1e4)]:optionalString(_0x8cc95c[_0x320d09(0x1dd)]?.['skillDomain'])||optionalString(_0x8cc95c[_0x320d09(0x1dd)]?.[_0x320d09(0x1a4)])||optionalString(_0x8cc95c[_0x320d09(0x1dd)]?.[_0x320d09(0x1b6)])||optionalString(_0x8cc95c[_0x320d09(0x1dd)]?.[_0x320d09(0x1c4)]),'kbDomain':_0x31cf80?_0x31cf80[_0x320d09(0x1cf)][_0x320d09(0x1ab)]:optionalString(_0x8cc95c[_0x320d09(0x1dd)]?.['kbDomain'])||optionalString(_0x8cc95c[_0x320d09(0x1dd)]?.[_0x320d09(0x1b6)])||optionalString(_0x8cc95c['raw']?.[_0x320d09(0x1c4)]),'kbServiceDomain':_0x31cf80?_0x31cf80['domains'][_0x320d09(0x1cb)]:optionalString(_0x8cc95c[_0x320d09(0x1dd)]?.[_0x320d09(0x1cb)]),'appDomain':_0x31cf80?_0x31cf80[_0x320d09(0x1cf)][_0x320d09(0x1da)]:optionalString(_0x8cc95c[_0x320d09(0x1dd)]?.[_0x320d09(0x1da)]),'localDomain':_0x31cf80?_0x31cf80[_0x320d09(0x1cf)][_0x320d09(0x1d2)]:optionalString(_0x8cc95c['raw']?.['localDomain']),'certificateDomain':_0x31cf80?_0x31cf80[_0x320d09(0x1cf)][_0x320d09(0x1d9)]:optionalString(_0x8cc95c[_0x320d09(0x1dd)]?.[_0x320d09(0x1d9)]),'cdn':_0x31cf80?.['cdn'],'allowOfficialKbServiceDefault':!(_0x31cf80!==undefined||['apiDomain',_0x320d09(0x1d3),_0x320d09(0x1c6),_0x320d09(0x1e4),'skillHubDomain',_0x320d09(0x1ab),'kbServiceDomain',_0x320d09(0x1b6),_0x320d09(0x1c4),'appDomain','localDomain',_0x320d09(0x1d9)][_0x320d09(0x1b4)](_0x4a0b33=>Object[_0x320d09(0x1cd)]['hasOwnProperty'][_0x320d09(0x1e7)](_0x8cc95c[_0x320d09(0x1dd)]??{},_0x4a0b33)))},{initEnv:_0x70cf76}=await import(_0x320d09(0x1cc)),{initDomains:_0x22d3a0}=await import('./constant/domain.js');_0x70cf76(_0x8cc95c[_0x320d09(0x1db)]),_0x22d3a0(_0x1d02b5);}export async function initMultiAppEnvironment(_0x3b00d2){const _0x4ff057=a286_0x37af;await initConfiguredEnvironment({'raw':_0x3b00d2[_0x4ff057(0x1b8)],'configuredRegion':_0x3b00d2[_0x4ff057(0x1ae)],'regionLocation':_0x4ff057(0x1c8)+_0x3b00d2[_0x4ff057(0x1a3)]+'\x22','targetEnv':_0x3b00d2['env']===_0x4ff057(0x1be)?_0x4ff057(0x1be):'production'});}export function getConfigAppCode(_0x41eef8){const _0x4d0262=a286_0x37af,_0x26092f=readRawConfig(_0x41eef8);if(_0x26092f['apps']&&typeof _0x26092f[_0x4d0262(0x1ad)]===_0x4d0262(0x1a6)){const _0x32664a=_0x26092f[_0x4d0262(0x1af)];if(_0x32664a)return _0x26092f[_0x4d0262(0x1ad)][_0x32664a]?.[_0x4d0262(0x1bd)]?String(_0x26092f[_0x4d0262(0x1ad)][_0x32664a][_0x4d0262(0x1bd)])[_0x4d0262(0x1b3)]():undefined;const _0x27992a=Object[_0x4d0262(0x1ac)](_0x26092f[_0x4d0262(0x1ad)]);if(_0x27992a['length']===0x1&&_0x27992a[0x0]?.[_0x4d0262(0x1bd)])return String(_0x27992a[0x0][_0x4d0262(0x1bd)])[_0x4d0262(0x1b3)]();}const _0x46702b=_0x26092f[_0x4d0262(0x1bd)]||_0x26092f[_0x4d0262(0x1c1)];if(typeof _0x46702b!==_0x4d0262(0x1ce)||_0x46702b[_0x4d0262(0x1b3)]()==='')return undefined;return _0x46702b[_0x4d0262(0x1b3)]();}const CONNECTION_ROUTING_KEYS=[a286_0x26a0f0(0x1d4),a286_0x26a0f0(0x1ea),a286_0x26a0f0(0x1d3),'runtimeDomain',a286_0x26a0f0(0x1e4),a286_0x26a0f0(0x1a4),a286_0x26a0f0(0x1ab),a286_0x26a0f0(0x1cb),a286_0x26a0f0(0x1b6),'platformDomain','appDomain','localDomain',a286_0x26a0f0(0x1d9)];function withAppProfileRouting(_0x57f0c4,_0x330132){const _0x1b9d52=a286_0x26a0f0;if(!_0x330132||_0x330132[_0x1b9d52(0x1cb)]===undefined)return _0x57f0c4;return{..._0x57f0c4,'kbServiceDomain':_0x330132['kbServiceDomain']};}function pickConnectionRoutingConfig(_0x413fb3,_0x36963b){const _0x234cb7={'region':_0x36963b};for(const _0x3ba3d2 of CONNECTION_ROUTING_KEYS){if(_0x413fb3[_0x3ba3d2]!==undefined)_0x234cb7[_0x3ba3d2]=_0x413fb3[_0x3ba3d2];}return _0x234cb7;}export function getMultiAppConfigs(_0x21aa30=a286_0x26a0f0(0x1aa),_0x2020e8){const _0x2165a9=a286_0x26a0f0,_0x8eb897=loadRawConfigLayers(_0x2020e8);let _0x26acb0,_0x1f919f;const _0x17de40=mergeRawConfigLayers(_0x8eb897),_0xd0348=_0x8eb897[_0x2165a9(0x1b5)][_0x2165a9(0x1ad)]&&typeof _0x8eb897[_0x2165a9(0x1b5)]['apps']==='object'?_0x8eb897[_0x2165a9(0x1b5)]['apps']:{},_0x1dff50=_0x8eb897[_0x2165a9(0x1b2)][_0x2165a9(0x1ad)]&&typeof _0x8eb897['projectConfig'][_0x2165a9(0x1ad)]===_0x2165a9(0x1a6)?_0x8eb897[_0x2165a9(0x1b2)][_0x2165a9(0x1ad)]:{};_0x21aa30==='merged'?(_0x26acb0={..._0xd0348,..._0x1dff50},_0x1f919f=_0x17de40[_0x2165a9(0x1af)]):(_0x26acb0=_0x8eb897[_0x2165a9(0x1b2)][_0x2165a9(0x1ad)],_0x1f919f=_0x8eb897[_0x2165a9(0x1b2)]['defaultApp']);!_0x1f919f&&_0x26acb0&&typeof _0x26acb0===_0x2165a9(0x1a6)&&Object[_0x2165a9(0x1e6)](_0x26acb0)['length']===0x1&&(_0x1f919f=Object['keys'](_0x26acb0)[0x0]);if(!_0x26acb0||typeof _0x26acb0!==_0x2165a9(0x1a6)||Object[_0x2165a9(0x1e6)](_0x26acb0)[_0x2165a9(0x1d1)]===0x0)return null;return Object[_0x2165a9(0x1ba)](_0x26acb0)['map'](([_0x3ed7b4,_0x2042c6])=>{const _0x5218c3=_0x2165a9,_0x25fe09=_0x21aa30===_0x5218c3(0x1aa)||Object[_0x5218c3(0x1cd)][_0x5218c3(0x1df)][_0x5218c3(0x1e7)](_0x1dff50,_0x3ed7b4),_0x5ee0a8=withAppProfileRouting(_0x25fe09?_0x17de40:_0x8eb897['globalConfig'],_0x2042c6),_0x2eb19a=resolveEffectiveRegion({'appRegion':_0x2042c6?.['region'],'projectRegion':_0x25fe09?_0x8eb897[_0x5218c3(0x1b2)][_0x5218c3(0x1ae)]:undefined,'globalRegion':_0x8eb897['globalConfig'][_0x5218c3(0x1ae)],'mergedRegion':_0x5ee0a8[_0x5218c3(0x1ae)],'appName':_0x3ed7b4});return{'name':_0x3ed7b4,'appcode':_0x2042c6?.[_0x5218c3(0x1bd)]||'','apiGroup':optionalString(_0x2042c6?.[_0x5218c3(0x1e8)]),'isDefault':_0x3ed7b4===_0x1f919f,'region':_0x2eb19a[_0x5218c3(0x1ae)],'regionSource':_0x2eb19a[_0x5218c3(0x1d5)],'env':_0x2042c6?.[_0x5218c3(0x1e1)],'apiDir':optionalString(_0x2042c6?.[_0x5218c3(0x1bc)])||optionalString(_0x5ee0a8[_0x5218c3(0x1bc)]),'cookie':_0x2042c6?.['cookie']||undefined,'routingConfig':pickConnectionRoutingConfig(_0x5ee0a8,_0x2eb19a['region'])};})[_0x2165a9(0x1c2)](_0x1237db=>_0x1237db[_0x2165a9(0x1bd)]);}export function getTemplateBaseUrl(_0x3b530e){const _0x33cd41=a286_0x26a0f0,_0x3092e5=readRawConfig(_0x3b530e);if(_0x3092e5[_0x33cd41(0x1d0)]&&typeof _0x3092e5['template_base_url']==='string')return _0x3092e5['template_base_url']['replace'](/\/$/,'');return _0x33cd41(0x1a7);}function buildConfig(_0x23466d,_0x46c6b1,_0x26e3f4){const _0x14cdaa=a286_0x26a0f0,_0x11cbd9=resolveAppConfig({'raw':_0x23466d,'flags':_0x46c6b1,'layers':_0x26e3f4,'readEnv':env}),_0x13a1a7=_0x11cbd9[_0x14cdaa(0x1a9)]?_0x11cbd9[_0x14cdaa(0x1ad)][_0x11cbd9['currentApp']]:undefined;return{..._0x11cbd9,'raw':withAppProfileRouting(_0x23466d,_0x13a1a7)};}export function resolveApiFilePath(_0x202506,_0x1bd35a,_0x3817dc){const _0xab835b=a286_0x26a0f0;return resolveApiModelSource(_0x202506,_0x1bd35a,_0x3817dc)[_0xab835b(0x1bf)];}
1
+ const a286_0x58056b=a286_0x3875;(function(_0x5cbd15,_0x352890){const _0x1bfa71=a286_0x3875,_0x5e32a3=_0x5cbd15();while(!![]){try{const _0x283b33=parseInt(_0x1bfa71(0x214))/0x1+-parseInt(_0x1bfa71(0x1df))/0x2+parseInt(_0x1bfa71(0x1e9))/0x3+-parseInt(_0x1bfa71(0x1e8))/0x4+parseInt(_0x1bfa71(0x1e0))/0x5*(parseInt(_0x1bfa71(0x1e7))/0x6)+parseInt(_0x1bfa71(0x1f0))/0x7+-parseInt(_0x1bfa71(0x204))/0x8*(parseInt(_0x1bfa71(0x1ed))/0x9);if(_0x283b33===_0x352890)break;else _0x5e32a3['push'](_0x5e32a3['shift']());}catch(_0x3452fd){_0x5e32a3['push'](_0x5e32a3['shift']());}}}(a286_0x386c,0x3a3a7));import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{resolveConfiguredRegion,resolveEffectiveRegion}from'./config/region-config.js';import{resolveEnterpriseRoutingManifest}from'./config/domain-config.js';import{logger}from'./utils/logger.js';function a286_0x386c(){const _0xcf7411=['routing','raw','95466NkcuAz','1019640zVHQzh','1082619UbiAlA','filePath','appDomain','apiGroup','861453dKjtrV','setRawCommand','values','1928710scqQxC','replace','project','keys','hasOwnProperty','./utils/is-non-interactive.js','env','apps','configuredRegion','cookie','cwd','globalConfig','app\x20profile\x20\x22','regionConfiguredValue','config','prototype','filter','length','doctor','agentDomain','16OlgaGV','argv','name','merged','join','daily','Rabetbase\x20configuration','global\x20Rabetbase\x20configuration','call','currentApp','some','./constant/env.js','apiDomain','routingConfig','./constant/domain.js','object','34420lLmzTa','kbServiceDomain','domains','regionSource','userDomain','certificateDomain','source','skillHubDomain','entries','appcode','string','slice','https://g.lovrabet.com/dist/lovrabet-skill','setLogPath','project\x20Rabetbase\x20configuration','region','trim','map','localDomain','platformDomain','kbDomain','skillDomain','global','regionLocation','template_base_url','apiDir','projectConfig','67418grUlqX','15ZAHLym','targetEnv','defaultApp','app','runtimeDomain'];a286_0x386c=function(){return _0xcf7411;};return a286_0x386c();}import{resolveApiModelSource}from'./api/model-source.js';export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x42716f){return process.env[`RABETBASE_${_0x42716f}`]||process.env[`LOVRABET_${_0x42716f}`]||undefined;}function optionalString(_0x458196){const _0x58e2b9=a286_0x3875;return typeof _0x458196==='string'&&_0x458196['trim']()?_0x458196[_0x58e2b9(0x224)]():undefined;}export function isRoutingRecoveryService(_0x20b96f){const _0x3cfdd7=a286_0x3875;return _0x20b96f===_0x3cfdd7(0x1fe)||_0x20b96f===_0x3cfdd7(0x202);}export async function createContext(_0x313af7){const _0x376150=a286_0x3875,{config:_0x5d2666,layers:_0x3a39d8}=readRawConfigWithLayers(),_0x2f5160=buildConfig(_0x5d2666,_0x313af7,_0x3a39d8);await initGlobalEnvironment(_0x2f5160);const {getUserDomain:_0x24e575,getApiDomain:_0x8a17e8}=await import(_0x376150(0x212)),_0x4cf558={'apiDomain':_0x8a17e8(),'userDomain':_0x24e575()},_0x49464a=await buildAuth(_0x2f5160);logger[_0x376150(0x221)](process[_0x376150(0x1fa)]());const _0x21adf7=(CLI_BIN_NAME+'\x20'+process[_0x376150(0x205)][_0x376150(0x21f)](0x2)[_0x376150(0x208)]('\x20'))[_0x376150(0x224)]();logger[_0x376150(0x1ee)](_0x21adf7);const {isNonInteractive:_0x4c2715}=await import(_0x376150(0x1f5)),_0x2c9073=_0x4c2715(_0x313af7);return{'config':_0x2f5160,'auth':_0x49464a,'logger':logger,'env':_0x4cf558,'nonInteractive':_0x2c9073};}export function buildConfigFromFlags(_0x2e9165){const {config:_0x41da2d,layers:_0x9c3e15}=readRawConfigWithLayers();return buildConfig(_0x41da2d,_0x2e9165,_0x9c3e15);}export async function initGlobalEnvironment(_0x1f75b2){const _0x542dc9=a286_0x3875,_0x5e75f2=_0x1f75b2[_0x542dc9(0x217)]===_0x542dc9(0x1e3)&&_0x1f75b2['currentApp']?_0x542dc9(0x1fc)+_0x1f75b2[_0x542dc9(0x20d)]+'\x22':_0x1f75b2[_0x542dc9(0x217)]==='project'?_0x542dc9(0x222):_0x1f75b2['regionSource']===_0x542dc9(0x1da)?_0x542dc9(0x20b):_0x542dc9(0x20a);await initConfiguredEnvironment({'raw':_0x1f75b2[_0x542dc9(0x1e6)],'configuredRegion':_0x1f75b2[_0x542dc9(0x1fd)]??_0x1f75b2[_0x542dc9(0x1e6)]?.[_0x542dc9(0x223)]??_0x1f75b2[_0x542dc9(0x223)],'regionLocation':_0x5e75f2,'targetEnv':_0x1f75b2[_0x542dc9(0x1f6)]});}async function initConfiguredEnvironment(_0x4be705){const _0x2de10b=a286_0x3875,_0x53743e=resolveConfiguredRegion(_0x4be705[_0x2de10b(0x1f8)],_0x4be705[_0x2de10b(0x1db)]),_0x557e0a=resolveEnterpriseRoutingManifest(_0x4be705[_0x2de10b(0x1e6)]?.[_0x2de10b(0x1e5)]),_0x137591={'region':_0x53743e,'apiDomain':_0x557e0a?_0x557e0a['domains'][_0x2de10b(0x210)]:optionalString(_0x4be705[_0x2de10b(0x1e6)]?.[_0x2de10b(0x210)]),'userDomain':_0x557e0a?_0x557e0a[_0x2de10b(0x216)][_0x2de10b(0x218)]:optionalString(_0x4be705[_0x2de10b(0x1e6)]?.[_0x2de10b(0x218)]),'runtimeDomain':_0x557e0a?_0x557e0a[_0x2de10b(0x216)][_0x2de10b(0x1e4)]:optionalString(_0x4be705['raw']?.['runtimeDomain']),'skillDomain':_0x557e0a?_0x557e0a['domains'][_0x2de10b(0x1d9)]:optionalString(_0x4be705[_0x2de10b(0x1e6)]?.[_0x2de10b(0x1d9)])||optionalString(_0x4be705['raw']?.[_0x2de10b(0x21b)])||optionalString(_0x4be705[_0x2de10b(0x1e6)]?.[_0x2de10b(0x203)])||optionalString(_0x4be705['raw']?.[_0x2de10b(0x1d7)]),'kbDomain':_0x557e0a?_0x557e0a[_0x2de10b(0x216)][_0x2de10b(0x1d8)]:optionalString(_0x4be705[_0x2de10b(0x1e6)]?.[_0x2de10b(0x1d8)])||optionalString(_0x4be705['raw']?.[_0x2de10b(0x203)])||optionalString(_0x4be705[_0x2de10b(0x1e6)]?.[_0x2de10b(0x1d7)]),'kbServiceDomain':_0x557e0a?_0x557e0a['domains']['kbServiceDomain']:optionalString(_0x4be705[_0x2de10b(0x1e6)]?.[_0x2de10b(0x215)]),'appDomain':_0x557e0a?_0x557e0a['domains'][_0x2de10b(0x1eb)]:optionalString(_0x4be705[_0x2de10b(0x1e6)]?.[_0x2de10b(0x1eb)]),'localDomain':_0x557e0a?_0x557e0a[_0x2de10b(0x216)][_0x2de10b(0x226)]:optionalString(_0x4be705[_0x2de10b(0x1e6)]?.[_0x2de10b(0x226)]),'certificateDomain':_0x557e0a?_0x557e0a[_0x2de10b(0x216)][_0x2de10b(0x219)]:optionalString(_0x4be705['raw']?.[_0x2de10b(0x219)]),'cdn':_0x557e0a?.['cdn'],'allowOfficialKbServiceDefault':!(_0x557e0a!==undefined||['apiDomain','userDomain',_0x2de10b(0x1e4),_0x2de10b(0x1d9),_0x2de10b(0x21b),_0x2de10b(0x1d8),'kbServiceDomain',_0x2de10b(0x203),'platformDomain','appDomain',_0x2de10b(0x226),_0x2de10b(0x219)][_0x2de10b(0x20e)](_0x3b7571=>Object['prototype'][_0x2de10b(0x1f4)][_0x2de10b(0x20c)](_0x4be705[_0x2de10b(0x1e6)]??{},_0x3b7571)))},{initEnv:_0x5956ea}=await import(_0x2de10b(0x20f)),{initDomains:_0x4c63fc}=await import(_0x2de10b(0x212));_0x5956ea(_0x4be705[_0x2de10b(0x1e1)]),_0x4c63fc(_0x137591);}export async function initMultiAppEnvironment(_0xd6552e){const _0x4268d0=a286_0x3875;await initConfiguredEnvironment({'raw':_0xd6552e[_0x4268d0(0x211)],'configuredRegion':_0xd6552e['region'],'regionLocation':_0x4268d0(0x1fc)+_0xd6552e[_0x4268d0(0x206)]+'\x22','targetEnv':_0xd6552e[_0x4268d0(0x1f6)]===_0x4268d0(0x209)?'daily':'production'});}function a286_0x3875(_0x11b9e2,_0x4a21b7){_0x11b9e2=_0x11b9e2-0x1d7;const _0x386c2e=a286_0x386c();let _0x38756c=_0x386c2e[_0x11b9e2];return _0x38756c;}export function getConfigAppCode(_0x23c632){const _0xf0b178=a286_0x3875,_0x4cb317=readRawConfig(_0x23c632);if(_0x4cb317[_0xf0b178(0x1f7)]&&typeof _0x4cb317['apps']===_0xf0b178(0x213)){const _0xc30b6a=_0x4cb317[_0xf0b178(0x1e2)];if(_0xc30b6a)return _0x4cb317['apps'][_0xc30b6a]?.[_0xf0b178(0x21d)]?String(_0x4cb317[_0xf0b178(0x1f7)][_0xc30b6a][_0xf0b178(0x21d)])[_0xf0b178(0x224)]():undefined;const _0x4585ba=Object[_0xf0b178(0x1ef)](_0x4cb317[_0xf0b178(0x1f7)]);if(_0x4585ba[_0xf0b178(0x201)]===0x1&&_0x4585ba[0x0]?.['appcode'])return String(_0x4585ba[0x0][_0xf0b178(0x21d)])[_0xf0b178(0x224)]();}const _0x10715d=_0x4cb317[_0xf0b178(0x21d)]||_0x4cb317[_0xf0b178(0x1e3)];if(typeof _0x10715d!=='string'||_0x10715d['trim']()==='')return undefined;return _0x10715d[_0xf0b178(0x224)]();}const CONNECTION_ROUTING_KEYS=[a286_0x58056b(0x1e5),a286_0x58056b(0x210),a286_0x58056b(0x218),'runtimeDomain','skillDomain','skillHubDomain',a286_0x58056b(0x1d8),a286_0x58056b(0x215),a286_0x58056b(0x203),a286_0x58056b(0x1d7),a286_0x58056b(0x1eb),a286_0x58056b(0x226),a286_0x58056b(0x219)];function withAppProfileRouting(_0x22d70d,_0x1665a4){const _0x478b30=a286_0x58056b;if(!_0x1665a4||_0x1665a4[_0x478b30(0x215)]===undefined)return _0x22d70d;return{..._0x22d70d,'kbServiceDomain':_0x1665a4['kbServiceDomain']};}function pickConnectionRoutingConfig(_0x48c64b,_0xd0c9b6){const _0x38c979={'region':_0xd0c9b6};for(const _0x5dc60e of CONNECTION_ROUTING_KEYS){if(_0x48c64b[_0x5dc60e]!==undefined)_0x38c979[_0x5dc60e]=_0x48c64b[_0x5dc60e];}return _0x38c979;}export function getMultiAppConfigs(_0x54a399='project',_0x22b201){const _0x4be8c0=a286_0x58056b,_0x2f0885=loadRawConfigLayers(_0x22b201);let _0xcaded9,_0x4924fa;const _0x237fc4=mergeRawConfigLayers(_0x2f0885),_0xdac43f=_0x2f0885[_0x4be8c0(0x1fb)]['apps']&&typeof _0x2f0885[_0x4be8c0(0x1fb)][_0x4be8c0(0x1f7)]===_0x4be8c0(0x213)?_0x2f0885[_0x4be8c0(0x1fb)][_0x4be8c0(0x1f7)]:{},_0x52baa2=_0x2f0885['projectConfig'][_0x4be8c0(0x1f7)]&&typeof _0x2f0885[_0x4be8c0(0x1de)][_0x4be8c0(0x1f7)]===_0x4be8c0(0x213)?_0x2f0885['projectConfig'][_0x4be8c0(0x1f7)]:{};_0x54a399===_0x4be8c0(0x207)?(_0xcaded9={..._0xdac43f,..._0x52baa2},_0x4924fa=_0x237fc4['defaultApp']):(_0xcaded9=_0x2f0885[_0x4be8c0(0x1de)][_0x4be8c0(0x1f7)],_0x4924fa=_0x2f0885[_0x4be8c0(0x1de)][_0x4be8c0(0x1e2)]);!_0x4924fa&&_0xcaded9&&typeof _0xcaded9===_0x4be8c0(0x213)&&Object[_0x4be8c0(0x1f3)](_0xcaded9)[_0x4be8c0(0x201)]===0x1&&(_0x4924fa=Object[_0x4be8c0(0x1f3)](_0xcaded9)[0x0]);if(!_0xcaded9||typeof _0xcaded9!==_0x4be8c0(0x213)||Object[_0x4be8c0(0x1f3)](_0xcaded9)['length']===0x0)return null;return Object[_0x4be8c0(0x21c)](_0xcaded9)[_0x4be8c0(0x225)](([_0x1612e8,_0x415345])=>{const _0x2d129e=_0x4be8c0,_0x5ed445=_0x54a399===_0x2d129e(0x1f2)||Object[_0x2d129e(0x1ff)]['hasOwnProperty'][_0x2d129e(0x20c)](_0x52baa2,_0x1612e8),_0x2fa872=withAppProfileRouting(_0x5ed445?_0x237fc4:_0x2f0885[_0x2d129e(0x1fb)],_0x415345),_0x4b7afe=resolveEffectiveRegion({'appRegion':_0x415345?.[_0x2d129e(0x223)],'projectRegion':_0x5ed445?_0x2f0885[_0x2d129e(0x1de)]['region']:undefined,'globalRegion':_0x2f0885[_0x2d129e(0x1fb)][_0x2d129e(0x223)],'mergedRegion':_0x2fa872[_0x2d129e(0x223)],'appName':_0x1612e8});return{'name':_0x1612e8,'appcode':_0x415345?.[_0x2d129e(0x21d)]||'','apiGroup':optionalString(_0x415345?.[_0x2d129e(0x1ec)]),'isDefault':_0x1612e8===_0x4924fa,'region':_0x4b7afe[_0x2d129e(0x223)],'regionSource':_0x4b7afe[_0x2d129e(0x21a)],'env':_0x415345?.[_0x2d129e(0x1f6)],'apiDir':optionalString(_0x415345?.[_0x2d129e(0x1dd)])||optionalString(_0x2fa872[_0x2d129e(0x1dd)]),'cookie':_0x415345?.[_0x2d129e(0x1f9)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x2fa872,_0x4b7afe[_0x2d129e(0x223)])};})[_0x4be8c0(0x200)](_0x2e938=>_0x2e938[_0x4be8c0(0x21d)]);}export function getTemplateBaseUrl(_0x2ee6bf){const _0x447938=a286_0x58056b,_0x57c66e=readRawConfig(_0x2ee6bf);if(_0x57c66e['template_base_url']&&typeof _0x57c66e[_0x447938(0x1dc)]===_0x447938(0x21e))return _0x57c66e['template_base_url'][_0x447938(0x1f1)](/\/$/,'');return _0x447938(0x220);}function buildConfig(_0x29bc38,_0x57586f,_0x34313e){const _0x3753fa=a286_0x58056b,_0x1620f4=resolveAppConfig({'raw':_0x29bc38,'flags':_0x57586f,'layers':_0x34313e,'readEnv':env}),_0x542238=_0x1620f4[_0x3753fa(0x20d)]?_0x1620f4[_0x3753fa(0x1f7)][_0x1620f4['currentApp']]:undefined;return{..._0x1620f4,'raw':withAppProfileRouting(_0x29bc38,_0x542238)};}export function resolveApiFilePath(_0x4b910d,_0x1f66d4,_0x2ef621){const _0x40d2fc=a286_0x58056b;return resolveApiModelSource(_0x4b910d,_0x1f66d4,_0x2ef621)[_0x40d2fc(0x1ea)];}
@@ -1 +1 @@
1
- const a287_0x957179=a287_0x45f6;(function(_0x12b7ea,_0x552eb9){const _0x45953e=a287_0x45f6,_0x96f30d=_0x12b7ea();while(!![]){try{const _0x5673eb=-parseInt(_0x45953e(0xc3))/0x1*(parseInt(_0x45953e(0xb6))/0x2)+-parseInt(_0x45953e(0xa9))/0x3*(-parseInt(_0x45953e(0xb9))/0x4)+parseInt(_0x45953e(0xbe))/0x5*(parseInt(_0x45953e(0xb1))/0x6)+parseInt(_0x45953e(0xa5))/0x7*(parseInt(_0x45953e(0xa8))/0x8)+-parseInt(_0x45953e(0xa3))/0x9+parseInt(_0x45953e(0xae))/0xa+-parseInt(_0x45953e(0xaf))/0xb*(-parseInt(_0x45953e(0xb8))/0xc);if(_0x5673eb===_0x552eb9)break;else _0x96f30d['push'](_0x96f30d['shift']());}catch(_0x593549){_0x96f30d['push'](_0x96f30d['shift']());}}}(a287_0x5d29,0xa9436));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{dirname,extname,isAbsolute,relative,resolve}from'node:path';import{MODEL_REGISTRY_FILE_NAME,getProfileModels,readModelRegistry}from'../api/model-registry-file.js';import{parseLegacyApiModels}from'../api/legacy-api-file.js';import{findProjectRootDirectory}from'../context/config-loader.js';const cache=new Map(),MAX_LOCAL_REEXPORT_DEPTH=0x8,SOURCE_FILE_EXTENSIONS=['.ts',a287_0x957179(0xa0),a287_0x957179(0xc7),a287_0x957179(0xb7),a287_0x957179(0xac),a287_0x957179(0x9f),a287_0x957179(0xc5),a287_0x957179(0xc6)],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':[a287_0x957179(0xbf),a287_0x957179(0xa0)],'.jsx':[a287_0x957179(0xa0)],'.mjs':[a287_0x957179(0xc7)],'.cjs':[a287_0x957179(0xb7)]};function parseApiFile(_0x186f11){const _0x1367a9=a287_0x957179;return parseLegacyApiModels(_0x186f11)[_0x1367a9(0xb0)](_0x20d8ac=>_0x20d8ac[_0x1367a9(0xc4)]?[{'alias':_0x20d8ac['alias'],'datasetCode':_0x20d8ac[_0x1367a9(0xc2)],'tableName':_0x20d8ac['tableName'],'name':_0x20d8ac[_0x1367a9(0xa1)]}]:[]);}function isWithinRoot(_0x124e57,_0x5db911){const _0x55912b=a287_0x957179,_0x19438d=relative(_0x124e57,_0x5db911);return _0x19438d===''||!_0x19438d[_0x55912b(0xa4)]('..')&&!isAbsolute(_0x19438d);}function resolveExistingFile(_0x3f8433){if(!existsSync(_0x3f8433))return undefined;try{return statSync(_0x3f8433)['isFile']()?realpathSync(_0x3f8433):undefined;}catch{return undefined;}}function reexportCandidatePaths(_0x20ccb5){const _0x10b398=a287_0x957179,_0x45fc3b=extname(_0x20ccb5);if(!_0x45fc3b)return[...SOURCE_FILE_EXTENSIONS[_0x10b398(0xa2)](_0x3ed894=>''+_0x20ccb5+_0x3ed894),...SOURCE_FILE_EXTENSIONS[_0x10b398(0xa2)](_0x3c9f00=>resolve(_0x20ccb5,'index'+_0x3c9f00))];const _0x4bb245=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x45fc3b];if(!_0x4bb245)return[_0x20ccb5];const _0x1aca96=_0x20ccb5[_0x10b398(0xad)](0x0,-_0x45fc3b[_0x10b398(0xb5)]);return[..._0x4bb245[_0x10b398(0xa2)](_0x1a6160=>''+_0x1aca96+_0x1a6160),_0x20ccb5];}function resolveLocalReexport(_0x7f02b0,_0xd34697,_0x2893ba){const _0x4394ec=a287_0x957179;if(!_0xd34697[_0x4394ec(0xa4)]('./')&&!_0xd34697[_0x4394ec(0xa4)](_0x4394ec(0xa7)))return undefined;const _0xe10fdd=resolve(dirname(_0x7f02b0),_0xd34697);if(!isWithinRoot(_0x2893ba,_0xe10fdd))return undefined;for(const _0x2f132a of reexportCandidatePaths(_0xe10fdd)){const _0x4e092b=resolveExistingFile(_0x2f132a);if(_0x4e092b&&isWithinRoot(_0x2893ba,_0x4e092b))return _0x4e092b;}return undefined;}function a287_0x45f6(_0x5eb091,_0x266488){_0x5eb091=_0x5eb091-0x9e;const _0x5d29cd=a287_0x5d29();let _0x45f642=_0x5d29cd[_0x5eb091];return _0x45f642;}function parseApiFileTree(_0x23b005,_0x43182c,_0x4e4225,_0x5a6694){const _0x1178d0=a287_0x957179,_0x47bcdb=resolveExistingFile(_0x23b005);if(!_0x47bcdb)return[];const _0x303dbb=_0x4e4225['get'](_0x47bcdb);if(_0x303dbb!==undefined&&_0x303dbb<=_0x5a6694)return[];_0x4e4225[_0x1178d0(0xc1)](_0x47bcdb,_0x5a6694);const _0x569bf4=readFileSync(_0x47bcdb,_0x1178d0(0xbb)),_0x28edf5=parseApiFile(_0x569bf4);if(_0x5a6694>=MAX_LOCAL_REEXPORT_DEPTH)return _0x28edf5;const _0x2cbfcb=new RegExp(LOCAL_REEXPORT_RE[_0x1178d0(0xb4)],LOCAL_REEXPORT_RE[_0x1178d0(0xbc)]);let _0x1795a3;while((_0x1795a3=_0x2cbfcb[_0x1178d0(0xb2)](_0x569bf4))!==null){const _0x4d5634=resolveLocalReexport(_0x47bcdb,_0x1795a3[0x1],_0x43182c);_0x4d5634&&_0x28edf5[_0x1178d0(0xab)](...parseApiFileTree(_0x4d5634,_0x43182c,_0x4e4225,_0x5a6694+0x1));}return _0x28edf5;}function aliasProjectRoot(_0x5dcd39){const _0x4112b0=findProjectRootDirectory(dirname(_0x5dcd39));try{return realpathSync(_0x4112b0);}catch{return _0x4112b0;}}function a287_0x5d29(){const _0x3ccf9a=['alias','.mjs','.cjs','.mts','defaultProfile','.jsx','.tsx','name','map','7483419GCiNFH','startsWith','6026769KmLpPS','endsWith','../','8utWOxJ','9YxWmai','api.ts','push','.js','slice','2335190imGjKb','44LMzNCW','flatMap','28488tIasoX','exec','size','source','length','4wVUaPM','.cts','1810812bueYPf','1202948YRWKUT','stringify','utf-8','flags','tableName','80KDhKBo','.ts','filter','set','datasetCode','575738IDrtZv'];a287_0x5d29=function(){return _0x3ccf9a;};return a287_0x5d29();}function uniqueAliasEntries(_0x4b3ffa){const _0x28a1d2=a287_0x957179,_0x67d68d=new Set();return _0x4b3ffa[_0x28a1d2(0xc0)](_0x12b215=>{const _0x72384=_0x28a1d2,_0x16f240=JSON[_0x72384(0xba)](_0x12b215);if(_0x67d68d['has'](_0x16f240))return![];return _0x67d68d['add'](_0x16f240),!![];});}export function loadAliasMap(_0x811f51,_0x553cb9,_0x1aa788,_0x3baf03){const _0x570397=a287_0x957179,_0x2a2c07=resolve(_0x1aa788??resolve(process['cwd'](),_0x811f51,_0x570397(0xaa))),_0x290567=_0x3baf03?_0x2a2c07+'#'+_0x3baf03:_0x2a2c07;if(cache['has'](_0x290567))return cache['get'](_0x290567);if(!existsSync(_0x2a2c07))return cache[_0x570397(0xc1)](_0x290567,[]),[];try{if(_0x2a2c07[_0x570397(0xa6)](MODEL_REGISTRY_FILE_NAME)){const _0x531903=readModelRegistry(_0x2a2c07),_0x455a64=_0x3baf03??_0x531903?.[_0x570397(0x9e)],_0x2d150d=_0x455a64&&_0x531903?getProfileModels(_0x531903,_0x455a64):[],_0x5553fc=uniqueAliasEntries(_0x2d150d[_0x570397(0xb0)](_0x28b12e=>_0x28b12e[_0x570397(0xc4)]?[{'alias':_0x28b12e[_0x570397(0xc4)],'datasetCode':_0x28b12e[_0x570397(0xc2)],'tableName':_0x28b12e[_0x570397(0xbd)],'name':_0x28b12e[_0x570397(0xa1)]}]:[]));return cache['set'](_0x290567,_0x5553fc),_0x5553fc;}const _0x5e8925=uniqueAliasEntries(parseApiFileTree(_0x2a2c07,aliasProjectRoot(_0x2a2c07),new Map(),0x0));return cache['set'](_0x290567,_0x5e8925),_0x5e8925;}catch{return cache['set'](_0x290567,[]),[];}}export function resolveAlias(_0x327364,_0x41148e,_0x4592e9,_0x52f444,_0x536e25){const _0x149790=a287_0x957179;if(!_0x41148e)return undefined;const _0x39041e=loadAliasMap(_0x327364,_0x4592e9,_0x52f444,_0x536e25),_0xf05a9=new Set(_0x39041e[_0x149790(0xc0)](_0x372bb3=>_0x372bb3[_0x149790(0xc4)]===_0x41148e)[_0x149790(0xa2)](_0x16771c=>_0x16771c['datasetCode']));return _0xf05a9[_0x149790(0xb3)]===0x1?[..._0xf05a9][0x0]:undefined;}export function listAliases(_0x20cc5e,_0x49d79b,_0x58be58,_0x455859){return loadAliasMap(_0x20cc5e,_0x49d79b,_0x58be58,_0x455859);}
1
+ const a287_0xc86663=a287_0x825a;function a287_0x825a(_0x5194e3,_0x55e09c){_0x5194e3=_0x5194e3-0x8d;const _0x385b4f=a287_0x385b();let _0x825a94=_0x385b4f[_0x5194e3];return _0x825a94;}function a287_0x385b(){const _0x45c48c=['isFile','.mts','29113aJAPct','has','flags','map','flatMap','.ts','alias','8dmWkbS','1237680kNSzMC','size','2989323UWyXvt','11159KDdQNF','stringify','cwd','.tsx','set','name','24400IptsVF','3BmhTPW','../','defaultProfile','startsWith','172082wRyoQn','574340OhVtMU','utf-8','.cts','get','tableName','filter','endsWith','api.ts','source','index','exec','.mjs','datasetCode'];a287_0x385b=function(){return _0x45c48c;};return a287_0x385b();}(function(_0x1d0de2,_0x2168ef){const _0x5b2442=a287_0x825a,_0x349aef=_0x1d0de2();while(!![]){try{const _0x1f9c56=parseInt(_0x5b2442(0xa4))/0x1+parseInt(_0x5b2442(0xaf))/0x2*(parseInt(_0x5b2442(0xab))/0x3)+parseInt(_0x5b2442(0xaa))/0x4+-parseInt(_0x5b2442(0xb0))/0x5+-parseInt(_0x5b2442(0xa1))/0x6+-parseInt(_0x5b2442(0x99))/0x7*(parseInt(_0x5b2442(0xa0))/0x8)+parseInt(_0x5b2442(0xa3))/0x9;if(_0x1f9c56===_0x2168ef)break;else _0x349aef['push'](_0x349aef['shift']());}catch(_0x3f6fb2){_0x349aef['push'](_0x349aef['shift']());}}}(a287_0x385b,0x1ae3c));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{dirname,extname,isAbsolute,relative,resolve}from'node:path';import{MODEL_REGISTRY_FILE_NAME,getProfileModels,readModelRegistry}from'../api/model-registry-file.js';import{parseLegacyApiModels}from'../api/legacy-api-file.js';import{findProjectRootDirectory}from'../context/config-loader.js';const cache=new Map(),MAX_LOCAL_REEXPORT_DEPTH=0x8,SOURCE_FILE_EXTENSIONS=['.ts',a287_0xc86663(0xa7),a287_0xc86663(0x98),a287_0xc86663(0xb2),'.js','.jsx',a287_0xc86663(0x95),'.cjs'],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':[a287_0xc86663(0x9e),a287_0xc86663(0xa7)],'.jsx':[a287_0xc86663(0xa7)],'.mjs':['.mts'],'.cjs':[a287_0xc86663(0xb2)]};function parseApiFile(_0x3844f0){const _0x34651a=a287_0xc86663;return parseLegacyApiModels(_0x3844f0)['flatMap'](_0x3fbb41=>_0x3fbb41[_0x34651a(0x9f)]?[{'alias':_0x3fbb41[_0x34651a(0x9f)],'datasetCode':_0x3fbb41[_0x34651a(0x96)],'tableName':_0x3fbb41[_0x34651a(0x8e)],'name':_0x3fbb41[_0x34651a(0xa9)]}]:[]);}function isWithinRoot(_0x141ce5,_0x5e048b){const _0x3c6382=relative(_0x141ce5,_0x5e048b);return _0x3c6382===''||!_0x3c6382['startsWith']('..')&&!isAbsolute(_0x3c6382);}function resolveExistingFile(_0x46ad2c){const _0x153d3c=a287_0xc86663;if(!existsSync(_0x46ad2c))return undefined;try{return statSync(_0x46ad2c)[_0x153d3c(0x97)]()?realpathSync(_0x46ad2c):undefined;}catch{return undefined;}}function reexportCandidatePaths(_0x5c5505){const _0x3000ef=a287_0xc86663,_0x161592=extname(_0x5c5505);if(!_0x161592)return[...SOURCE_FILE_EXTENSIONS[_0x3000ef(0x9c)](_0x1d51f4=>''+_0x5c5505+_0x1d51f4),...SOURCE_FILE_EXTENSIONS[_0x3000ef(0x9c)](_0x195f93=>resolve(_0x5c5505,_0x3000ef(0x93)+_0x195f93))];const _0x49c179=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x161592];if(!_0x49c179)return[_0x5c5505];const _0x5273a7=_0x5c5505['slice'](0x0,-_0x161592['length']);return[..._0x49c179[_0x3000ef(0x9c)](_0x560b6e=>''+_0x5273a7+_0x560b6e),_0x5c5505];}function resolveLocalReexport(_0x24ba69,_0x22a7df,_0x552f68){const _0x1c4532=a287_0xc86663;if(!_0x22a7df[_0x1c4532(0xae)]('./')&&!_0x22a7df['startsWith'](_0x1c4532(0xac)))return undefined;const _0x38f562=resolve(dirname(_0x24ba69),_0x22a7df);if(!isWithinRoot(_0x552f68,_0x38f562))return undefined;for(const _0x141b57 of reexportCandidatePaths(_0x38f562)){const _0x1967f7=resolveExistingFile(_0x141b57);if(_0x1967f7&&isWithinRoot(_0x552f68,_0x1967f7))return _0x1967f7;}return undefined;}function parseApiFileTree(_0x422123,_0x1e5afb,_0x329253,_0x5e5dd1){const _0x19a7d0=a287_0xc86663,_0x4bba29=resolveExistingFile(_0x422123);if(!_0x4bba29)return[];const _0x80b49b=_0x329253['get'](_0x4bba29);if(_0x80b49b!==undefined&&_0x80b49b<=_0x5e5dd1)return[];_0x329253[_0x19a7d0(0xa8)](_0x4bba29,_0x5e5dd1);const _0x2ae20c=readFileSync(_0x4bba29,_0x19a7d0(0xb1)),_0x31f4e8=parseApiFile(_0x2ae20c);if(_0x5e5dd1>=MAX_LOCAL_REEXPORT_DEPTH)return _0x31f4e8;const _0x6c59ae=new RegExp(LOCAL_REEXPORT_RE[_0x19a7d0(0x92)],LOCAL_REEXPORT_RE[_0x19a7d0(0x9b)]);let _0x3311d9;while((_0x3311d9=_0x6c59ae[_0x19a7d0(0x94)](_0x2ae20c))!==null){const _0x3315a5=resolveLocalReexport(_0x4bba29,_0x3311d9[0x1],_0x1e5afb);_0x3315a5&&_0x31f4e8['push'](...parseApiFileTree(_0x3315a5,_0x1e5afb,_0x329253,_0x5e5dd1+0x1));}return _0x31f4e8;}function aliasProjectRoot(_0x5a4ba1){const _0xc8589f=findProjectRootDirectory(dirname(_0x5a4ba1));try{return realpathSync(_0xc8589f);}catch{return _0xc8589f;}}function uniqueAliasEntries(_0x270618){const _0x4de776=a287_0xc86663,_0x28d434=new Set();return _0x270618[_0x4de776(0x8f)](_0x2c8da9=>{const _0x4a6a8c=_0x4de776,_0x173212=JSON[_0x4a6a8c(0xa5)](_0x2c8da9);if(_0x28d434['has'](_0x173212))return![];return _0x28d434['add'](_0x173212),!![];});}export function loadAliasMap(_0xf3907c,_0x22c25f,_0x5e7dd9,_0x2265bc){const _0x23e37a=a287_0xc86663,_0xfe2a2f=resolve(_0x5e7dd9??resolve(process[_0x23e37a(0xa6)](),_0xf3907c,_0x23e37a(0x91))),_0x2831f3=_0x2265bc?_0xfe2a2f+'#'+_0x2265bc:_0xfe2a2f;if(cache[_0x23e37a(0x9a)](_0x2831f3))return cache[_0x23e37a(0x8d)](_0x2831f3);if(!existsSync(_0xfe2a2f))return cache[_0x23e37a(0xa8)](_0x2831f3,[]),[];try{if(_0xfe2a2f[_0x23e37a(0x90)](MODEL_REGISTRY_FILE_NAME)){const _0x75de47=readModelRegistry(_0xfe2a2f),_0x20938d=_0x2265bc??_0x75de47?.[_0x23e37a(0xad)],_0x4fa0ef=_0x20938d&&_0x75de47?getProfileModels(_0x75de47,_0x20938d):[],_0x1aca42=uniqueAliasEntries(_0x4fa0ef[_0x23e37a(0x9d)](_0x6831cd=>_0x6831cd['alias']?[{'alias':_0x6831cd[_0x23e37a(0x9f)],'datasetCode':_0x6831cd[_0x23e37a(0x96)],'tableName':_0x6831cd['tableName'],'name':_0x6831cd[_0x23e37a(0xa9)]}]:[]));return cache[_0x23e37a(0xa8)](_0x2831f3,_0x1aca42),_0x1aca42;}const _0xbde8c5=uniqueAliasEntries(parseApiFileTree(_0xfe2a2f,aliasProjectRoot(_0xfe2a2f),new Map(),0x0));return cache['set'](_0x2831f3,_0xbde8c5),_0xbde8c5;}catch{return cache[_0x23e37a(0xa8)](_0x2831f3,[]),[];}}export function resolveAlias(_0x5235f8,_0x12cbbf,_0x101862,_0x2afa9c,_0x2db9d){const _0x4bc32c=a287_0xc86663;if(!_0x12cbbf)return undefined;const _0x37f3a9=loadAliasMap(_0x5235f8,_0x101862,_0x2afa9c,_0x2db9d),_0x421845=new Set(_0x37f3a9[_0x4bc32c(0x8f)](_0x4db3f8=>_0x4db3f8[_0x4bc32c(0x9f)]===_0x12cbbf)[_0x4bc32c(0x9c)](_0x5b15b2=>_0x5b15b2[_0x4bc32c(0x96)]));return _0x421845[_0x4bc32c(0xa2)]===0x1?[..._0x421845][0x0]:undefined;}export function listAliases(_0x1f1456,_0x5f06bd,_0x3c3869,_0x53fc95){return loadAliasMap(_0x1f1456,_0x5f06bd,_0x3c3869,_0x53fc95);}