@lovrabet/rabetbase-cli 2.5.4-beta.1 โ†’ 2.5.4-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (372) hide show
  1. package/README.md +4 -3
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/api-group.js +1 -1
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.js +1 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/api/legacy-api-file.js +1 -1
  8. package/lib/api/model-registry-file.js +1 -1
  9. package/lib/api/model-registry-scaffold.js +1 -1
  10. package/lib/api/model-source.js +1 -1
  11. package/lib/auth/auth-server-ui.js +1 -1
  12. package/lib/auth/auth-server.js +1 -1
  13. package/lib/auth/constant.js +1 -1
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.js +1 -1
  16. package/lib/auth/is-session-valid.js +1 -1
  17. package/lib/auth/login-success-html.js +1 -1
  18. package/lib/auth/logout.js +1 -1
  19. package/lib/cli-flags.js +1 -1
  20. package/lib/cli.js +1 -1
  21. package/lib/commands/api/generate.js +1 -1
  22. package/lib/commands/api/index.js +1 -1
  23. package/lib/commands/api/list.js +1 -1
  24. package/lib/commands/api/pull.js +1 -1
  25. package/lib/commands/api/shared.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.d.ts +1 -1
  63. package/lib/commands/config/init.js +1 -1
  64. package/lib/commands/config/list.js +1 -1
  65. package/lib/commands/config/set.js +1 -1
  66. package/lib/commands/config/shared.js +1 -1
  67. package/lib/commands/dataset/batch-design.js +1 -1
  68. package/lib/commands/dataset/business-group-update.js +1 -1
  69. package/lib/commands/dataset/business-groups.js +1 -1
  70. package/lib/commands/dataset/capability.js +1 -1
  71. package/lib/commands/dataset/cross-relation-create.js +1 -1
  72. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  73. package/lib/commands/dataset/cross-relation-list.js +1 -1
  74. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  75. package/lib/commands/dataset/cross-relation-update.js +1 -1
  76. package/lib/commands/dataset/delete.js +1 -1
  77. package/lib/commands/dataset/detail.js +1 -1
  78. package/lib/commands/dataset/extend-update.js +1 -1
  79. package/lib/commands/dataset/field-restore.js +1 -1
  80. package/lib/commands/dataset/field-update.js +1 -1
  81. package/lib/commands/dataset/generate.js +1 -1
  82. package/lib/commands/dataset/index.js +1 -1
  83. package/lib/commands/dataset/list.js +1 -1
  84. package/lib/commands/dataset/operations.js +1 -1
  85. package/lib/commands/dataset/relation-audit.js +1 -1
  86. package/lib/commands/dataset/relation-create.js +1 -1
  87. package/lib/commands/dataset/relation-delete.js +1 -1
  88. package/lib/commands/dataset/relation-shared.js +1 -1
  89. package/lib/commands/dataset/relation-update.js +1 -1
  90. package/lib/commands/dataset/relations.js +1 -1
  91. package/lib/commands/dataset/rename.js +1 -1
  92. package/lib/commands/dataset/restore.js +1 -1
  93. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  94. package/lib/commands/db/analysis-batching.js +1 -1
  95. package/lib/commands/db/analyze-batch-plan.js +1 -1
  96. package/lib/commands/db/analyze-cancel.js +1 -1
  97. package/lib/commands/db/analyze-start.js +1 -1
  98. package/lib/commands/db/analyze-status.js +1 -1
  99. package/lib/commands/db/create.js +1 -1
  100. package/lib/commands/db/delete.js +1 -1
  101. package/lib/commands/db/detail.js +1 -1
  102. package/lib/commands/db/diff-refresh-start.js +1 -1
  103. package/lib/commands/db/diff-refresh-status.js +1 -1
  104. package/lib/commands/db/diff.js +1 -1
  105. package/lib/commands/db/index.js +1 -1
  106. package/lib/commands/db/list.js +1 -1
  107. package/lib/commands/db/shared.js +1 -1
  108. package/lib/commands/db/table-diff-shared.js +1 -1
  109. package/lib/commands/db/tables.js +1 -1
  110. package/lib/commands/db/test.js +1 -1
  111. package/lib/commands/db/update.js +1 -1
  112. package/lib/commands/deployment/index.js +1 -1
  113. package/lib/commands/deployment/sync-all.js +1 -1
  114. package/lib/commands/deployment/sync-jobs.js +1 -1
  115. package/lib/commands/deployment/sync-status.js +1 -1
  116. package/lib/commands/doctor.js +1 -1
  117. package/lib/commands/file/index.js +1 -1
  118. package/lib/commands/flow/create.js +1 -1
  119. package/lib/commands/flow/detail.js +1 -1
  120. package/lib/commands/flow/index.js +1 -1
  121. package/lib/commands/flow/list.js +1 -1
  122. package/lib/commands/flow/publish.js +1 -1
  123. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  124. package/lib/commands/flow/runtime-role-list.js +1 -1
  125. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  126. package/lib/commands/flow/runtime-user-search.js +1 -1
  127. package/lib/commands/flow/shared.js +1 -1
  128. package/lib/commands/flow/update.js +1 -1
  129. package/lib/commands/flow/validate.js +1 -1
  130. package/lib/commands/instant-api-policy/current.js +1 -1
  131. package/lib/commands/instant-api-policy/index.js +1 -1
  132. package/lib/commands/instant-api-policy/init.js +1 -1
  133. package/lib/commands/instant-api-policy/publish.js +1 -1
  134. package/lib/commands/instant-api-policy/pull.js +1 -1
  135. package/lib/commands/instant-api-policy/revision.js +1 -1
  136. package/lib/commands/instant-api-policy/revisions.js +1 -1
  137. package/lib/commands/instant-api-policy/rollback.js +1 -1
  138. package/lib/commands/instant-api-policy/shared.js +1 -1
  139. package/lib/commands/instant-api-policy/validate.js +1 -1
  140. package/lib/commands/issue/index.js +1 -1
  141. package/lib/commands/issue/nudge.js +1 -1
  142. package/lib/commands/issue/report.js +1 -1
  143. package/lib/commands/issue/shared.js +1 -1
  144. package/lib/commands/kb/create.js +1 -1
  145. package/lib/commands/kb/delete.js +1 -1
  146. package/lib/commands/kb/detail.js +1 -1
  147. package/lib/commands/kb/index.js +1 -1
  148. package/lib/commands/kb/list.js +1 -1
  149. package/lib/commands/kb/search.js +1 -1
  150. package/lib/commands/kb/shared.js +1 -1
  151. package/lib/commands/kb/update.js +1 -1
  152. package/lib/commands/logs/index.js +1 -1
  153. package/lib/commands/menu/asset-update.js +1 -1
  154. package/lib/commands/menu/delete.js +1 -1
  155. package/lib/commands/menu/external-link-create.js +1 -1
  156. package/lib/commands/menu/external-link-update.js +1 -1
  157. package/lib/commands/menu/group-create.js +1 -1
  158. package/lib/commands/menu/group-update.js +1 -1
  159. package/lib/commands/menu/index.js +1 -1
  160. package/lib/commands/menu/list.js +1 -1
  161. package/lib/commands/menu/move.js +1 -1
  162. package/lib/commands/menu/regroup-start.js +1 -1
  163. package/lib/commands/menu/rename.js +1 -1
  164. package/lib/commands/menu/shared/compare-table.js +1 -1
  165. package/lib/commands/menu/shared/delete-plan.js +1 -1
  166. package/lib/commands/menu/shared/facts.js +1 -1
  167. package/lib/commands/menu/shared/index.js +1 -1
  168. package/lib/commands/menu/shared/inquirer.js +1 -1
  169. package/lib/commands/menu/shared/local-pages.js +1 -1
  170. package/lib/commands/menu/shared/logic.js +1 -1
  171. package/lib/commands/menu/shared/mutations.js +1 -1
  172. package/lib/commands/menu/shared/service.js +1 -1
  173. package/lib/commands/menu/shared/sync-core.js +1 -1
  174. package/lib/commands/menu/shared/update-core.js +1 -1
  175. package/lib/commands/menu/shared/valid-url.js +1 -1
  176. package/lib/commands/menu/sync.js +1 -1
  177. package/lib/commands/menu/visibility-update.js +1 -1
  178. package/lib/commands/notification/config-create.js +1 -1
  179. package/lib/commands/notification/config-delete.js +1 -1
  180. package/lib/commands/notification/config-list.js +1 -1
  181. package/lib/commands/notification/config-update.js +1 -1
  182. package/lib/commands/notification/index.js +1 -1
  183. package/lib/commands/notification/shared.js +1 -1
  184. package/lib/commands/ocr/index.js +1 -1
  185. package/lib/commands/page/create.js +1 -1
  186. package/lib/commands/page/custom/detail.js +1 -1
  187. package/lib/commands/page/custom/list.js +1 -1
  188. package/lib/commands/page/custom/publish.js +1 -1
  189. package/lib/commands/page/custom/shared.js +1 -1
  190. package/lib/commands/page/custom/syntax.js +1 -1
  191. package/lib/commands/page/custom/update.js +1 -1
  192. package/lib/commands/page/data-list-status.js +1 -1
  193. package/lib/commands/page/generate-start.js +1 -1
  194. package/lib/commands/page/generate-status.js +1 -1
  195. package/lib/commands/page/index.js +1 -1
  196. package/lib/commands/page/pull.js +1 -1
  197. package/lib/commands/page/push.js +1 -1
  198. package/lib/commands/page/relation-audit.js +1 -1
  199. package/lib/commands/page/restore.js +1 -1
  200. package/lib/commands/page/shared.js +1 -1
  201. package/lib/commands/page/sync.js +1 -1
  202. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  203. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  204. package/lib/commands/project/create/format-elapsed.js +1 -1
  205. package/lib/commands/project/create/main.js +1 -1
  206. package/lib/commands/project/create/materialize-project-template.js +1 -1
  207. package/lib/commands/project/create/project-name.js +1 -1
  208. package/lib/commands/project/create/project-template-archive.js +1 -1
  209. package/lib/commands/project/create/project-template-path.js +1 -1
  210. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  211. package/lib/commands/project/create/use-format-code.js +1 -1
  212. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  213. package/lib/commands/project/domain-routing-sync.js +1 -1
  214. package/lib/commands/project/index.js +1 -1
  215. package/lib/commands/project/upgrade.js +1 -1
  216. package/lib/commands/registry.js +1 -1
  217. package/lib/commands/role/delete.js +1 -1
  218. package/lib/commands/role/detail.js +1 -1
  219. package/lib/commands/role/index.js +1 -1
  220. package/lib/commands/role/list.js +1 -1
  221. package/lib/commands/role/shared.js +1 -1
  222. package/lib/commands/role/update.js +1 -1
  223. package/lib/commands/role/user-add.js +1 -1
  224. package/lib/commands/role/user-remove.js +1 -1
  225. package/lib/commands/role/user-resolve.js +1 -1
  226. package/lib/commands/rule/get.js +1 -1
  227. package/lib/commands/rule/index.js +1 -1
  228. package/lib/commands/rule/list.js +1 -1
  229. package/lib/commands/rule/set.js +1 -1
  230. package/lib/commands/rule/shared.js +1 -1
  231. package/lib/commands/run/index.js +1 -1
  232. package/lib/commands/schema.js +1 -1
  233. package/lib/commands/sql/create.js +1 -1
  234. package/lib/commands/sql/delete.js +1 -1
  235. package/lib/commands/sql/detail.js +1 -1
  236. package/lib/commands/sql/exec.js +1 -1
  237. package/lib/commands/sql/index.js +1 -1
  238. package/lib/commands/sql/list.js +1 -1
  239. package/lib/commands/sql/pull.js +1 -1
  240. package/lib/commands/sql/push.js +1 -1
  241. package/lib/commands/sql/shared.js +1 -1
  242. package/lib/commands/sql/status.js +1 -1
  243. package/lib/commands/sql/validate.js +1 -1
  244. package/lib/commands/task/index.js +1 -1
  245. package/lib/commands/task/status.js +1 -1
  246. package/lib/commands/tenant/index.js +1 -1
  247. package/lib/commands/tenant/members-list.js +1 -1
  248. package/lib/commands/tenant/shared.js +1 -1
  249. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  250. package/lib/commands/user-account/feishu-bind.d.ts +2 -0
  251. package/lib/commands/user-account/feishu-bind.js +1 -0
  252. package/lib/commands/user-account/index.js +1 -1
  253. package/lib/commands/workspace/add.js +1 -1
  254. package/lib/commands/workspace/index.js +1 -1
  255. package/lib/commands/workspace/remove.js +1 -1
  256. package/lib/config/domain-config.d.ts +1 -1
  257. package/lib/config/domain-config.js +1 -1
  258. package/lib/config/project-domain-routing.js +1 -1
  259. package/lib/config/region-config.js +1 -1
  260. package/lib/config/schema.d.ts +1 -1
  261. package/lib/config/schema.js +1 -1
  262. package/lib/constant/cdn.js +1 -1
  263. package/lib/constant/cli.js +1 -1
  264. package/lib/constant/defaults.js +1 -1
  265. package/lib/constant/domain.d.ts +4 -0
  266. package/lib/constant/domain.js +1 -1
  267. package/lib/constant/env.js +1 -1
  268. package/lib/constant/output.js +1 -1
  269. package/lib/constant/paths.js +1 -1
  270. package/lib/constant/region.d.ts +1 -1
  271. package/lib/constant/region.js +1 -1
  272. package/lib/constant/risk.js +1 -1
  273. package/lib/constant/routing-profile.d.ts +14 -1
  274. package/lib/constant/routing-profile.js +1 -1
  275. package/lib/context/app-resolver.d.ts +1 -0
  276. package/lib/context/app-resolver.js +1 -1
  277. package/lib/context/auth-resolver.js +1 -1
  278. package/lib/context/config-loader.js +1 -1
  279. package/lib/context.js +1 -1
  280. package/lib/core/alias-resolver.js +1 -1
  281. package/lib/core/api-client.d.ts +2 -0
  282. package/lib/core/api-client.js +1 -1
  283. package/lib/core/bff/config.js +1 -1
  284. package/lib/core/bff/file-system.js +1 -1
  285. package/lib/core/bff/hash.js +1 -1
  286. package/lib/core/bff/hook-directory.js +1 -1
  287. package/lib/core/bff/lock.js +1 -1
  288. package/lib/core/bff/utils.js +1 -1
  289. package/lib/core/cross-db-relation.js +1 -1
  290. package/lib/core/db-resolver.js +1 -1
  291. package/lib/core/flow-config.js +1 -1
  292. package/lib/core/instant-api-policy/config.js +1 -1
  293. package/lib/core/kb-search-client.js +1 -1
  294. package/lib/core/page/file-system.js +1 -1
  295. package/lib/core/page/hash.js +1 -1
  296. package/lib/core/page/lock.js +1 -1
  297. package/lib/core/page/lr-smart-jsx.js +1 -1
  298. package/lib/core/sql-index-auditor.js +1 -1
  299. package/lib/core/sql-sync/config.js +1 -1
  300. package/lib/core/sql-sync/file-system.js +1 -1
  301. package/lib/core/sql-sync/hash.js +1 -1
  302. package/lib/core/sql-sync/lock.js +1 -1
  303. package/lib/core/sql-sync/utils.js +1 -1
  304. package/lib/core/sql-validator.js +1 -1
  305. package/lib/errors.js +1 -1
  306. package/lib/framework/build-all-flags.js +1 -1
  307. package/lib/framework/error-output.js +1 -1
  308. package/lib/framework/explicit-yes.js +1 -1
  309. package/lib/framework/flags.js +1 -1
  310. package/lib/framework/help.js +1 -1
  311. package/lib/framework/index.js +1 -1
  312. package/lib/framework/output.js +1 -1
  313. package/lib/framework/response.js +1 -1
  314. package/lib/framework/runner-alias.js +1 -1
  315. package/lib/framework/runner.js +1 -1
  316. package/lib/framework/schema-export.js +1 -1
  317. package/lib/framework/supported-flags.js +1 -1
  318. package/lib/framework/types.js +1 -1
  319. package/lib/generated/build-info.d.ts +4 -4
  320. package/lib/generated/build-info.js +1 -1
  321. package/lib/generated/official-routing.d.ts +15 -3
  322. package/lib/generated/official-routing.js +1 -1
  323. package/lib/generated/routing-contract.d.ts +2 -2
  324. package/lib/generated/routing-contract.js +1 -1
  325. package/lib/help.js +1 -1
  326. package/lib/postinstall.js +1 -1
  327. package/lib/runtime/confirmation.js +1 -1
  328. package/lib/runtime/event.js +1 -1
  329. package/lib/runtime/index.js +1 -1
  330. package/lib/runtime/queue.js +1 -1
  331. package/lib/runtime/resolve.js +1 -1
  332. package/lib/skills/builtin-skill.js +1 -1
  333. package/lib/skills/main.js +1 -1
  334. package/lib/skills/npx-skills-add.d.ts +5 -0
  335. package/lib/skills/npx-skills-add.js +1 -1
  336. package/lib/skills/skill-presence.js +1 -1
  337. package/lib/telemetry/cli-command-trace.js +1 -1
  338. package/lib/telemetry/cli-help-trace.js +1 -1
  339. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  340. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  341. package/lib/telemetry/send-cli-trace-log.js +1 -1
  342. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  343. package/lib/utils/ai_config.js +1 -1
  344. package/lib/utils/apply-jq-filter.js +1 -1
  345. package/lib/utils/cdn-config.js +1 -1
  346. package/lib/utils/check-sdk-version.js +1 -1
  347. package/lib/utils/cli-version-check.js +1 -1
  348. package/lib/utils/cli-version-policy.js +1 -1
  349. package/lib/utils/config.js +1 -1
  350. package/lib/utils/entity-with-id.js +1 -1
  351. package/lib/utils/file-utils.js +1 -1
  352. package/lib/utils/guides-cdn.js +1 -1
  353. package/lib/utils/http-client.js +1 -1
  354. package/lib/utils/is-non-interactive.js +1 -1
  355. package/lib/utils/logger.js +1 -1
  356. package/lib/utils/params.js +1 -1
  357. package/lib/utils/platform.js +1 -1
  358. package/lib/utils/sleep.js +1 -1
  359. package/lib/utils/template-replacer.js +1 -1
  360. package/lib/utils/update-notice.js +1 -1
  361. package/lib/utils/version.js +1 -1
  362. package/lib/utils/with-active-cookie.js +1 -1
  363. package/lib/utils/write-cli-side-channel.js +1 -1
  364. package/package.json +1 -1
  365. package/skills/rabetbase/SKILL.md +4 -3
  366. package/skills/rabetbase/guides/sql-creation-workflow.md +1 -1
  367. package/skills/rabetbase/guides/sql-mybatis.md +12 -8
  368. package/skills/rabetbase/references/rabetbase-config.md +6 -4
  369. package/skills/rabetbase/references/rabetbase-init.md +7 -5
  370. package/skills/rabetbase/references/rabetbase-kb.md +8 -6
  371. package/skills/rabetbase/references/rabetbase-user-account.md +20 -2
  372. package/skills/rabetbase.manifest.json +3 -3
package/README.md CHANGED
@@ -133,6 +133,7 @@ rabetbase config init --domain-config ./lovrabet-domains.json
133
133
  "default": "https://kb.customer.example.com",
134
134
  "rabetbase-cli": "https://kb-admin.customer.example.com"
135
135
  },
136
+ "kbServiceDomain": "https://kb-service.customer.example.com",
136
137
  "appDomain": "https://app.customer.example.com"
137
138
  }
138
139
  }
@@ -269,10 +270,10 @@ Licensed under the terms in `LICENSE`.
269
270
 
270
271
  ### Direct knowledge search (V2)
271
272
 
272
- `rabetbase kb search` calls KB Service V2 directly and requires an explicit trusted HTTPS origin:
273
+ `rabetbase kb search` calls KB Service V2 directly. Official Mainland China and Indonesia connections resolve the endpoint automatically; independent deployments use their configured `kbServiceDomain`:
273
274
 
274
275
  ```sh
275
- rabetbase kb search --appcode app-xxxxx --query "business rules" --kb-service-url https://kb.example.com --format json
276
+ rabetbase kb search --appcode app-xxxxx --query "business rules" --format json
276
277
  ```
277
278
 
278
- V2 sends the current developer Cookie directly to `/v2/development/apps/{appCode}/knowledge/search` and returns public/company knowledge in the existing development result format. The explicit HTTPS origin must match the Cookie environment. Redirects and automatic endpoint fallback are disabled. KB management commands keep their existing routing. See [KB workflow](skills/rabetbase/references/rabetbase-kb.md).
279
+ V2 sends the current developer Cookie directly to `/v2/development/apps/{appCode}/knowledge/search` and returns public/company knowledge. `--kb-service-url` can override the trusted HTTPS origin for one request without persisting it. Global has no registered KB endpoint and does not borrow another region's address. Missing routes fail closed; redirects and switching endpoints after request failures are disabled. KB management commands keep their existing `kbDomain` routing. See [KB workflow](skills/rabetbase/references/rabetbase-kb.md).
@@ -1 +1 @@
1
- const a0_0x361323=a0_0x56b2;(function(_0x3e86c6,_0x3d29ad){const _0x3c07b6=a0_0x56b2,_0x146b77=_0x3e86c6();while(!![]){try{const _0x4f8f00=-parseInt(_0x3c07b6(0x186))/0x1*(-parseInt(_0x3c07b6(0x179))/0x2)+-parseInt(_0x3c07b6(0x181))/0x3+parseInt(_0x3c07b6(0x17a))/0x4+parseInt(_0x3c07b6(0x170))/0x5*(-parseInt(_0x3c07b6(0x178))/0x6)+parseInt(_0x3c07b6(0x172))/0x7+parseInt(_0x3c07b6(0x16c))/0x8*(-parseInt(_0x3c07b6(0x180))/0x9)+parseInt(_0x3c07b6(0x16d))/0xa*(parseInt(_0x3c07b6(0x16a))/0xb);if(_0x4f8f00===_0x3d29ad)break;else _0x146b77['push'](_0x146b77['shift']());}catch(_0x341246){_0x146b77['push'](_0x146b77['shift']());}}}(a0_0x5bc5,0x94b17));import{mkdirSync,writeFileSync}from'node:fs';import a0_0x4c5891 from'node:path';function a0_0x56b2(_0x265b64,_0x498ade){_0x265b64=_0x265b64-0x169;const _0x5bc50f=a0_0x5bc5();let _0x56b25a=_0x5bc50f[_0x265b64];return _0x56b25a;}import{fetchDatasetDoc}from'../core/api-client.js';function a0_0x5bc5(){const _0x562428=['tableName','.md\x20(','Generated\x20docs\x20successfully:\x20','log','12665ETWFKo','name','datasetCode','./docs','6998717GzrJee','utf8','6217976MNADAs','10twHLTz','push','.md','15260xkGrRa','โœ—\x20Failed:\x20','4263189snJOFN','Failed\x20to\x20generate\x20docs:\x20','api-doc','success','error','โœ“\x20Generated:\x20','1032seeGJa','180ThIvrA','2157932ovZDUK','.md\x20-\x20','length','join','\x20datasets\x20to\x20generate\x20docs\x20for\x0a','message','9FmoEPl','3040107IkwVgc'];a0_0x5bc5=function(){return _0x562428;};return a0_0x5bc5();}import{logger}from'../utils/logger.js';export{fetchDatasetDoc}from'../core/api-client.js';function delay(_0x2e456a){return new Promise(_0x5cdc28=>setTimeout(_0x5cdc28,_0x2e456a));}export async function generateDatasetDocs(_0x29f63e,_0x1e7f65,_0x591840,_0x17c931=a0_0x361323(0x169),_0x1c697a,_0x4a9384){const _0x1583b6=a0_0x361323;mkdirSync(_0x17c931,{'recursive':!![]});const _0x108a00=[],_0x331610=_0x29f63e[_0x1583b6(0x17c)];console[_0x1583b6(0x185)]('\x0a'+_0x331610+_0x1583b6(0x17e));for(let _0x3fa035=0x0;_0x3fa035<_0x29f63e[_0x1583b6(0x17c)];_0x3fa035++){const _0x3f8520=_0x29f63e[_0x3fa035],_0x51b5b0=_0x3fa035+0x1,_0x241f05=_0x3f8520[_0x1583b6(0x182)];try{console[_0x1583b6(0x185)]('['+_0x51b5b0+'/'+_0x331610+']\x20Generating:\x20'+_0x241f05+_0x1583b6(0x183)+_0x3f8520[_0x1583b6(0x187)]+')');if(_0x1c697a)_0x1c697a(_0x51b5b0,_0x331610,_0x241f05);const _0x3909bd=await fetchDatasetDoc({'appCode':_0x1e7f65,'cookie':_0x591840,'datasetCode':_0x3f8520[_0x1583b6(0x188)],'datasetId':_0x3f8520['id'],'enableAI':![],'extraParams':_0x4a9384}),_0x2ce0f0=a0_0x4c5891[_0x1583b6(0x17d)](_0x17c931,_0x241f05+_0x1583b6(0x16f));writeFileSync(_0x2ce0f0,_0x3909bd,{'encoding':_0x1583b6(0x16b)}),console[_0x1583b6(0x185)](_0x1583b6(0x177)+_0x241f05+_0x1583b6(0x16f)),logger[_0x1583b6(0x175)](_0x1583b6(0x174),_0x1583b6(0x184)+_0x241f05,undefined,{'datasetCode':_0x3f8520['datasetCode'],'datasetName':_0x3f8520[_0x1583b6(0x187)],'filePath':_0x2ce0f0,'progress':_0x51b5b0+'/'+_0x331610}),_0x108a00[_0x1583b6(0x16e)]({'datasetCode':_0x3f8520[_0x1583b6(0x188)],'datasetName':_0x3f8520[_0x1583b6(0x187)],'filePath':_0x2ce0f0,'success':!![]});if(_0x51b5b0<_0x331610)await delay(0x1388);}catch(_0x273a7d){const _0x11e073=_0x273a7d instanceof Error?_0x273a7d[_0x1583b6(0x17f)]:String(_0x273a7d);console[_0x1583b6(0x185)](_0x1583b6(0x171)+_0x241f05+_0x1583b6(0x17b)+_0x11e073),logger[_0x1583b6(0x176)](_0x1583b6(0x174),_0x1583b6(0x173)+_0x3f8520['datasetCode'],{'datasetCode':_0x3f8520['datasetCode'],'datasetName':_0x3f8520[_0x1583b6(0x187)],'error':_0x11e073,'progress':_0x51b5b0+'/'+_0x331610}),_0x108a00[_0x1583b6(0x16e)]({'datasetCode':_0x3f8520['datasetCode'],'datasetName':_0x3f8520[_0x1583b6(0x187)],'filePath':'','success':![],'error':_0x11e073}),_0x51b5b0<_0x331610&&(console[_0x1583b6(0x185)]('Waiting\x203\x20seconds...\x0a'),await delay(0xbb8));}}return _0x108a00;}
1
+ const a0_0x4edf06=a0_0x544b;(function(_0x2ebe02,_0x567bde){const _0x28def6=a0_0x544b,_0x2221e6=_0x2ebe02();while(!![]){try{const _0x17703d=-parseInt(_0x28def6(0x14e))/0x1*(-parseInt(_0x28def6(0x14b))/0x2)+parseInt(_0x28def6(0x160))/0x3+-parseInt(_0x28def6(0x145))/0x4*(-parseInt(_0x28def6(0x161))/0x5)+parseInt(_0x28def6(0x157))/0x6+-parseInt(_0x28def6(0x148))/0x7+-parseInt(_0x28def6(0x158))/0x8+parseInt(_0x28def6(0x14a))/0x9;if(_0x17703d===_0x567bde)break;else _0x2221e6['push'](_0x2221e6['shift']());}catch(_0x4b4014){_0x2221e6['push'](_0x2221e6['shift']());}}}(a0_0x1849,0xc35bb));function a0_0x544b(_0x57eb28,_0x49acbe){_0x57eb28=_0x57eb28-0x145;const _0x1849d7=a0_0x1849();let _0x544b35=_0x1849d7[_0x57eb28];return _0x544b35;}import{mkdirSync,writeFileSync}from'node:fs';import a0_0x3f97e5 from'node:path';import{fetchDatasetDoc}from'../core/api-client.js';import{logger}from'../utils/logger.js';function a0_0x1849(){const _0x21904f=['utf8','.md','278434uBZxZq','Failed\x20to\x20generate\x20docs:\x20','name','length','datasetCode','โœ—\x20Failed:\x20','Waiting\x203\x20seconds...\x0a','join','.md\x20(','1902504uypCVd','3109200DhceHV','error','api-doc','\x20datasets\x20to\x20generate\x20docs\x20for\x0a','log','tableName','./docs','โœ“\x20Generated:\x20','537726jUQKDB','103445giJLAQ','136TMQWgo','push',']\x20Generating:\x20','8566271nHYOMo','message','8409636PdPuyZ','2VZfTDJ'];a0_0x1849=function(){return _0x21904f;};return a0_0x1849();}export{fetchDatasetDoc}from'../core/api-client.js';function delay(_0x3d0e14){return new Promise(_0x25aa00=>setTimeout(_0x25aa00,_0x3d0e14));}export async function generateDatasetDocs(_0x6bf5a2,_0x18b9c4,_0x4bb3a6,_0x2a79df=a0_0x4edf06(0x15e),_0x395b9d,_0x14d762){const _0x158762=a0_0x4edf06;mkdirSync(_0x2a79df,{'recursive':!![]});const _0x448eef=[],_0x223f53=_0x6bf5a2[_0x158762(0x151)];console['log']('\x0a'+_0x223f53+_0x158762(0x15b));for(let _0x3c5a1f=0x0;_0x3c5a1f<_0x6bf5a2['length'];_0x3c5a1f++){const _0x595a79=_0x6bf5a2[_0x3c5a1f],_0x37e649=_0x3c5a1f+0x1,_0x41a843=_0x595a79[_0x158762(0x15d)];try{console[_0x158762(0x15c)]('['+_0x37e649+'/'+_0x223f53+_0x158762(0x147)+_0x41a843+_0x158762(0x156)+_0x595a79[_0x158762(0x150)]+')');if(_0x395b9d)_0x395b9d(_0x37e649,_0x223f53,_0x41a843);const _0x17ced0=await fetchDatasetDoc({'appCode':_0x18b9c4,'cookie':_0x4bb3a6,'datasetCode':_0x595a79['datasetCode'],'datasetId':_0x595a79['id'],'enableAI':![],'extraParams':_0x14d762}),_0x59d0ec=a0_0x3f97e5[_0x158762(0x155)](_0x2a79df,_0x41a843+_0x158762(0x14d));writeFileSync(_0x59d0ec,_0x17ced0,{'encoding':_0x158762(0x14c)}),console[_0x158762(0x15c)](_0x158762(0x15f)+_0x41a843+_0x158762(0x14d)),logger['success'](_0x158762(0x15a),'Generated\x20docs\x20successfully:\x20'+_0x41a843,undefined,{'datasetCode':_0x595a79[_0x158762(0x152)],'datasetName':_0x595a79[_0x158762(0x150)],'filePath':_0x59d0ec,'progress':_0x37e649+'/'+_0x223f53}),_0x448eef[_0x158762(0x146)]({'datasetCode':_0x595a79[_0x158762(0x152)],'datasetName':_0x595a79['name'],'filePath':_0x59d0ec,'success':!![]});if(_0x37e649<_0x223f53)await delay(0x1388);}catch(_0x58225c){const _0xc1dd6d=_0x58225c instanceof Error?_0x58225c[_0x158762(0x149)]:String(_0x58225c);console[_0x158762(0x15c)](_0x158762(0x153)+_0x41a843+'.md\x20-\x20'+_0xc1dd6d),logger[_0x158762(0x159)](_0x158762(0x15a),_0x158762(0x14f)+_0x595a79[_0x158762(0x152)],{'datasetCode':_0x595a79[_0x158762(0x152)],'datasetName':_0x595a79[_0x158762(0x150)],'error':_0xc1dd6d,'progress':_0x37e649+'/'+_0x223f53}),_0x448eef['push']({'datasetCode':_0x595a79['datasetCode'],'datasetName':_0x595a79['name'],'filePath':'','success':![],'error':_0xc1dd6d}),_0x37e649<_0x223f53&&(console[_0x158762(0x15c)](_0x158762(0x154)),await delay(0xbb8));}}return _0x448eef;}
@@ -1 +1 @@
1
- function a1_0x42e9(){const _0x38c2db=['get','app','validation','7qhXElK','normalizedApiDir','apiGroup','\x22\x20resolves\x20to\x20multiple\x20API\x20directories.','942585UCPEGq','.\x20Use\x20a\x20different\x20apiDir\x20for\x20a\x20separate\x20API.','map','filter','13188lAPWbW','1355iczKDo','length','3140IOJbCa','32239108nKlXHw','4949160DwjChd','API\x20group\x20\x22','Profiles\x20sharing\x20one\x20apiDir\x20must\x20use\x20the\x20same\x20explicit\x20apiGroup.\x20Conflicting\x20profiles:\x20','flatMap','12NDIkYI','resolve','trim','some','Profiles\x20in\x20the\x20same\x20API\x20group\x20must\x20use\x20the\x20same\x20apiDir.','set','\x22\x20is\x20assigned\x20to\x20incompatible\x20API\x20groups.','outputDir','1275890cCznph','cwd','push','size','6eJuUqo','11744152HeZnCH','38277eMcltl'];a1_0x42e9=function(){return _0x38c2db;};return a1_0x42e9();}const a1_0x101367=a1_0x1c2a;(function(_0x188f13,_0x4db4d0){const _0x3cd5a1=a1_0x1c2a,_0x477413=_0x188f13();while(!![]){try{const _0x3608f1=parseInt(_0x3cd5a1(0x1e5))/0x1+parseInt(_0x3cd5a1(0x1e9))/0x2*(parseInt(_0x3cd5a1(0x1f3))/0x3)+-parseInt(_0x3cd5a1(0x1d4))/0x4*(-parseInt(_0x3cd5a1(0x1d5))/0x5)+-parseInt(_0x3cd5a1(0x1d9))/0x6*(-parseInt(_0x3cd5a1(0x1ef))/0x7)+-parseInt(_0x3cd5a1(0x1ea))/0x8+-parseInt(_0x3cd5a1(0x1eb))/0x9*(-parseInt(_0x3cd5a1(0x1d7))/0xa)+-parseInt(_0x3cd5a1(0x1d8))/0xb*(parseInt(_0x3cd5a1(0x1dd))/0xc);if(_0x3608f1===_0x4db4d0)break;else _0x477413['push'](_0x477413['shift']());}catch(_0x1bc366){_0x477413['push'](_0x477413['shift']());}}}(a1_0x42e9,0xd53c9));import a1_0x5471c9 from'node:path';import{CliErrors}from'../errors.js';export function normalizeApiDir(_0x3ff356,_0x142b44=process[a1_0x101367(0x1e6)]()){const _0x56d43a=a1_0x101367;return a1_0x5471c9[_0x56d43a(0x1de)](_0x142b44,_0x3ff356);}function normalizedApiGroup(_0x52e5c5){const _0x34abfa=a1_0x101367,_0x5c01e8=_0x52e5c5?.[_0x34abfa(0x1df)]();return _0x5c01e8||undefined;}function a1_0x1c2a(_0x171747,_0x1fb771){_0x171747=_0x171747-0x1d4;const _0x42e9c3=a1_0x42e9();let _0x1c2ab7=_0x42e9c3[_0x171747];return _0x1c2ab7;}export function resolveApiProfileLayouts(_0x30d441,_0x261915,_0x140e1d=process['cwd']()){const _0x36432b=a1_0x101367,_0x2e4eb9=_0x30d441[_0x36432b(0x1f5)](_0x1f5f03=>{const _0xaaa7c8=_0x36432b,_0x7bfcd6=_0x261915(_0x1f5f03);return{'app':_0x1f5f03,'outputDir':_0x7bfcd6,'normalizedApiDir':normalizeApiDir(_0x7bfcd6,_0x140e1d),'apiGroup':normalizedApiGroup(_0x1f5f03[_0xaaa7c8(0x1f1)])};}),_0xcc6ff1=new Map();for(const _0x19a74a of _0x2e4eb9){if(!_0x19a74a[_0x36432b(0x1f1)])continue;const _0xa28748=_0xcc6ff1[_0x36432b(0x1ec)](_0x19a74a[_0x36432b(0x1f1)])??new Set();_0xa28748['add'](_0x19a74a[_0x36432b(0x1f0)]),_0xcc6ff1[_0x36432b(0x1e2)](_0x19a74a[_0x36432b(0x1f1)],_0xa28748);}for(const [_0x57ec70,_0x5719af]of _0xcc6ff1){if(_0x5719af[_0x36432b(0x1e8)]>0x1)throw CliErrors[_0x36432b(0x1ee)](_0x36432b(0x1da)+_0x57ec70+_0x36432b(0x1f2),_0x36432b(0x1e1));}const _0x524b7e=new Map();for(const _0x6531d2 of _0x2e4eb9){const _0x1faac6=_0x524b7e[_0x36432b(0x1ec)](_0x6531d2[_0x36432b(0x1f0)])??[];_0x1faac6[_0x36432b(0x1e7)](_0x6531d2),_0x524b7e[_0x36432b(0x1e2)](_0x6531d2[_0x36432b(0x1f0)],_0x1faac6);}for(const _0x41aedd of _0x524b7e['values']()){const _0x1f9c6d=new Set(_0x41aedd[_0x36432b(0x1dc)](_0x481fa9=>_0x481fa9[_0x36432b(0x1f1)]?[_0x481fa9['apiGroup']]:[]));if(_0x1f9c6d['size']===0x0)continue;if(_0x1f9c6d['size']>0x1||_0x41aedd[_0x36432b(0x1e0)](_0x946f2d=>!_0x946f2d['apiGroup'])){const _0xff5c4=_0x41aedd[_0x36432b(0x1f5)](_0x5a8bb5=>_0x5a8bb5[_0x36432b(0x1ed)]['name'])['join'](',\x20');throw CliErrors['validation']('API\x20directory\x20\x22'+_0x41aedd[0x0][_0x36432b(0x1e4)]+_0x36432b(0x1e3),_0x36432b(0x1db)+_0xff5c4+_0x36432b(0x1f4));}}return _0x2e4eb9;}export function getRegistryGroup(_0x5961e5,_0x3aa64d){const _0x20e494=a1_0x101367;if(_0x3aa64d[_0x20e494(0x1f1)])return _0x5961e5[_0x20e494(0x1f6)](_0x468bf1=>_0x468bf1[_0x20e494(0x1f1)]===_0x3aa64d['apiGroup']);const _0x515ce1=_0x5961e5[_0x20e494(0x1f6)](_0x331458=>_0x331458[_0x20e494(0x1f0)]===_0x3aa64d['normalizedApiDir']);return _0x515ce1[_0x20e494(0x1d6)]===0x1?_0x515ce1:undefined;}
1
+ const a1_0x4759f1=a1_0x9dad;(function(_0x7a26aa,_0x54fcc0){const _0x1a32ca=a1_0x9dad,_0x165c15=_0x7a26aa();while(!![]){try{const _0x217d19=parseInt(_0x1a32ca(0x1f7))/0x1*(-parseInt(_0x1a32ca(0x1de))/0x2)+-parseInt(_0x1a32ca(0x1ea))/0x3*(parseInt(_0x1a32ca(0x1f6))/0x4)+-parseInt(_0x1a32ca(0x1f1))/0x5*(-parseInt(_0x1a32ca(0x1f2))/0x6)+-parseInt(_0x1a32ca(0x1e2))/0x7+-parseInt(_0x1a32ca(0x1f9))/0x8*(parseInt(_0x1a32ca(0x1e9))/0x9)+parseInt(_0x1a32ca(0x1e5))/0xa+parseInt(_0x1a32ca(0x1fa))/0xb;if(_0x217d19===_0x54fcc0)break;else _0x165c15['push'](_0x165c15['shift']());}catch(_0x3ba4f6){_0x165c15['push'](_0x165c15['shift']());}}}(a1_0x1410,0xa0374));function a1_0x1410(){const _0x112586=['add','map','2744919ywRoBu','354531jorODC','apiGroup','cwd','get','push','filter','Profiles\x20in\x20the\x20same\x20API\x20group\x20must\x20use\x20the\x20same\x20apiDir.','1143155ZAOfQR','12oQozhl','name','validation','Profiles\x20sharing\x20one\x20apiDir\x20must\x20use\x20the\x20same\x20explicit\x20apiGroup.\x20Conflicting\x20profiles:\x20','20REfOox','1KBivwQ','app','8pdGXdp','13927782mOlUYn','flatMap','length','\x22\x20resolves\x20to\x20multiple\x20API\x20directories.','set','trim','305804koYnqp','\x22\x20is\x20assigned\x20to\x20incompatible\x20API\x20groups.','values','normalizedApiDir','2516710iPrHix','outputDir','API\x20group\x20\x22','3411280UujTNW','size'];a1_0x1410=function(){return _0x112586;};return a1_0x1410();}import a1_0x28302b from'node:path';function a1_0x9dad(_0x36c1bd,_0x4f2b57){_0x36c1bd=_0x36c1bd-0x1db;const _0x14108f=a1_0x1410();let _0x9dad0e=_0x14108f[_0x36c1bd];return _0x9dad0e;}import{CliErrors}from'../errors.js';export function normalizeApiDir(_0x3c81a4,_0x315f90=process[a1_0x4759f1(0x1ec)]()){return a1_0x28302b['resolve'](_0x315f90,_0x3c81a4);}function normalizedApiGroup(_0x206600){const _0x389224=a1_0x4759f1,_0x521507=_0x206600?.[_0x389224(0x1dd)]();return _0x521507||undefined;}export function resolveApiProfileLayouts(_0x102230,_0x2ff6c4,_0x3e88d7=process[a1_0x4759f1(0x1ec)]()){const _0x392053=a1_0x4759f1,_0x222f25=_0x102230[_0x392053(0x1e8)](_0x59dd72=>{const _0x5173cb=_0x392053,_0x2c5b35=_0x2ff6c4(_0x59dd72);return{'app':_0x59dd72,'outputDir':_0x2c5b35,'normalizedApiDir':normalizeApiDir(_0x2c5b35,_0x3e88d7),'apiGroup':normalizedApiGroup(_0x59dd72[_0x5173cb(0x1eb)])};}),_0x1d9586=new Map();for(const _0x3e71ce of _0x222f25){if(!_0x3e71ce[_0x392053(0x1eb)])continue;const _0x14ece0=_0x1d9586[_0x392053(0x1ed)](_0x3e71ce[_0x392053(0x1eb)])??new Set();_0x14ece0[_0x392053(0x1e7)](_0x3e71ce[_0x392053(0x1e1)]),_0x1d9586['set'](_0x3e71ce[_0x392053(0x1eb)],_0x14ece0);}for(const [_0x2996d9,_0x520f74]of _0x1d9586){if(_0x520f74[_0x392053(0x1e6)]>0x1)throw CliErrors[_0x392053(0x1f4)](_0x392053(0x1e4)+_0x2996d9+_0x392053(0x1db),_0x392053(0x1f0));}const _0x3caa22=new Map();for(const _0x321f01 of _0x222f25){const _0x34bcb2=_0x3caa22[_0x392053(0x1ed)](_0x321f01[_0x392053(0x1e1)])??[];_0x34bcb2[_0x392053(0x1ee)](_0x321f01),_0x3caa22[_0x392053(0x1dc)](_0x321f01['normalizedApiDir'],_0x34bcb2);}for(const _0x1d0316 of _0x3caa22[_0x392053(0x1e0)]()){const _0x1c56c0=new Set(_0x1d0316[_0x392053(0x1fb)](_0x222a9d=>_0x222a9d[_0x392053(0x1eb)]?[_0x222a9d[_0x392053(0x1eb)]]:[]));if(_0x1c56c0['size']===0x0)continue;if(_0x1c56c0['size']>0x1||_0x1d0316['some'](_0x2c1926=>!_0x2c1926['apiGroup'])){const _0x57a719=_0x1d0316[_0x392053(0x1e8)](_0x51eaae=>_0x51eaae[_0x392053(0x1f8)][_0x392053(0x1f3)])['join'](',\x20');throw CliErrors[_0x392053(0x1f4)]('API\x20directory\x20\x22'+_0x1d0316[0x0][_0x392053(0x1e3)]+_0x392053(0x1df),_0x392053(0x1f5)+_0x57a719+'.\x20Use\x20a\x20different\x20apiDir\x20for\x20a\x20separate\x20API.');}}return _0x222f25;}export function getRegistryGroup(_0x27dc41,_0x1e35f6){const _0x18fdb2=a1_0x4759f1;if(_0x1e35f6['apiGroup'])return _0x27dc41[_0x18fdb2(0x1ef)](_0x447d8f=>_0x447d8f[_0x18fdb2(0x1eb)]===_0x1e35f6[_0x18fdb2(0x1eb)]);const _0x2b44ba=_0x27dc41[_0x18fdb2(0x1ef)](_0x8c9850=>_0x8c9850[_0x18fdb2(0x1e1)]===_0x1e35f6['normalizedApiDir']);return _0x2b44ba[_0x18fdb2(0x1fc)]===0x1?_0x2b44ba:undefined;}
@@ -1 +1 @@
1
- function a2_0x6a04(){var _0x41c9b3=['6889736LKWeng','2277852bhXsUy','461924VcPKLq','721440AXXJJx','8704890AygQnS','5578715bYEkbw','1444117ivGPid','3PNFFvO'];a2_0x6a04=function(){return _0x41c9b3;};return a2_0x6a04();}function a2_0x59ef(_0x545099,_0x9966b5){_0x545099=_0x545099-0x10c;var _0x6a0458=a2_0x6a04();var _0x59ef13=_0x6a0458[_0x545099];return _0x59ef13;}(function(_0x123bad,_0xb66293){var _0x54b433=a2_0x59ef,_0x13c0a5=_0x123bad();while(!![]){try{var _0x380410=parseInt(_0x54b433(0x112))/0x1+-parseInt(_0x54b433(0x10e))/0x2*(-parseInt(_0x54b433(0x113))/0x3)+parseInt(_0x54b433(0x10d))/0x4+-parseInt(_0x54b433(0x111))/0x5+-parseInt(_0x54b433(0x110))/0x6+parseInt(_0x54b433(0x10c))/0x7+parseInt(_0x54b433(0x10f))/0x8;if(_0x380410===_0xb66293)break;else _0x13c0a5['push'](_0x13c0a5['shift']());}catch(_0xb6e669){_0x13c0a5['push'](_0x13c0a5['shift']());}}}(a2_0x6a04,0xb7b1c));export{fetchModelList}from'../core/api-client.js';
1
+ function a2_0x1bbe(){var _0x46026a=['1416268ayWQVN','23466843oGYYPv','5587875pHWhnK','2566020pbaqVj','338UmHFLy','882RpUUov','15459OHwGkB','48Hqsdeg','90559XMVxqA'];a2_0x1bbe=function(){return _0x46026a;};return a2_0x1bbe();}function a2_0x57b7(_0x4f6baa,_0x238dfb){_0x4f6baa=_0x4f6baa-0x193;var _0x1bbe5e=a2_0x1bbe();var _0x57b72e=_0x1bbe5e[_0x4f6baa];return _0x57b72e;}(function(_0x7be4e1,_0x3a355c){var _0x58ded6=a2_0x57b7,_0x3b96d6=_0x7be4e1();while(!![]){try{var _0x5343c3=-parseInt(_0x58ded6(0x198))/0x1+parseInt(_0x58ded6(0x197))/0x2*(-parseInt(_0x58ded6(0x199))/0x3)+-parseInt(_0x58ded6(0x193))/0x4+-parseInt(_0x58ded6(0x195))/0x5+parseInt(_0x58ded6(0x196))/0x6+parseInt(_0x58ded6(0x19b))/0x7*(-parseInt(_0x58ded6(0x19a))/0x8)+parseInt(_0x58ded6(0x194))/0x9;if(_0x5343c3===_0x3a355c)break;else _0x3b96d6['push'](_0x3b96d6['shift']());}catch(_0x3e384f){_0x3b96d6['push'](_0x3b96d6['shift']());}}}(a2_0x1bbe,0x95ece));export{fetchModelList}from'../core/api-client.js';
@@ -1 +1 @@
1
- (function(_0x53529d,_0x3ccbd8){const _0x586ec1=a3_0x4bd6,_0x1c08c0=_0x53529d();while(!![]){try{const _0x376e79=parseInt(_0x586ec1(0x18d))/0x1+-parseInt(_0x586ec1(0x16b))/0x2*(-parseInt(_0x586ec1(0x182))/0x3)+-parseInt(_0x586ec1(0x15d))/0x4*(-parseInt(_0x586ec1(0x16a))/0x5)+-parseInt(_0x586ec1(0x17d))/0x6+parseInt(_0x586ec1(0x17c))/0x7+parseInt(_0x586ec1(0x17f))/0x8+-parseInt(_0x586ec1(0x18a))/0x9;if(_0x376e79===_0x3ccbd8)break;else _0x1c08c0['push'](_0x1c08c0['shift']());}catch(_0x2bf108){_0x1c08c0['push'](_0x1c08c0['shift']());}}}(a3_0x2d85,0x81a84));function a3_0x2d85(){const _0x51e507=['action','.ts','resolve','modelProfile','120YlrKIh','98DxDvHb','default','{\x20apiConfigName:\x20','overwriteTypescript','modelRuntime','test','overwritten','length','API\x20scaffold\x20written.','join','dirname','preserved','basename','toUpperCase','missing','replace','defaultName','3927511BiARxZ','5217474FISpGE','scaffoldMode','6629728cKMPAZ','created','refreshed','9474cmxcqN','utf8','templates/generate-api','replaceApiContent','includes',',\x20...LOVRABET_SDK_CONFIG\x20}',',\x20env:\x20','client.ts.tpl','12710322FALBKf','none','Please\x20configure\x20app\x20code\x20first\x20via\x20`','739278IZZKMh','format','LOVRABET_RUNTIME_DOMAIN','typescript','stringify','alias','path','datasetCode','map','-api','key','name','api','LOVRABET','\x20config\x20set\x20app\x20<value>`','88184VDWKHV','existed','success','../..','APP_','api.ts.tpl','allowEmptyModelReplacement','client','\x20refreshed;\x20existing\x20TypeScript\x20left\x20unchanged.'];a3_0x2d85=function(){return _0x51e507;};return a3_0x2d85();}import a3_0x454a2c from'prettier';import{existsSync,mkdirSync,writeFileSync,readFileSync}from'node:fs';import a3_0x1bd520 from'node:path';import{fileURLToPath}from'node:url';import{TemplateReplacer}from'../utils/template-replacer.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{logger}from'../utils/logger.js';import{isProduction}from'../constant/env.js';import{generateSdkConfigFile}from'../api/generate-sdk-config-file.js';function a3_0x4bd6(_0x45c444,_0xa1bc89){_0x45c444=_0x45c444-0x151;const _0x2d85a8=a3_0x2d85();let _0x4bd6c9=_0x2d85a8[_0x45c444];return _0x4bd6c9;}import{MODEL_REGISTRY_FILE_NAME,MODEL_RUNTIME_FILE_NAME,updateModelRegistry}from'../api/model-registry-file.js';import{renderModelRegistryScaffold}from'../api/model-registry-scaffold.js';function fileAction(_0xb43898,_0x3a3086){const _0xb4064d=a3_0x4bd6;if(!_0x3a3086)return _0xb43898?_0xb4064d(0x176):_0xb4064d(0x179);return _0xb43898?_0xb4064d(0x171):_0xb4064d(0x180);}export async function generateApiFile(_0x5a333f,_0x270870,_0x45adee,_0x1e441d,_0x5b6ee9,_0x445722,_0x34ac3d,_0x43d79a={},_0x5643b={}){const _0x2db1ae=a3_0x4bd6;if(!_0x45adee)throw new Error(_0x2db1ae(0x18c)+CLI_BIN_NAME+_0x2db1ae(0x15c));const _0x30871e=_0x1e441d&&!_0x34ac3d,_0x22d182=!!_0x5643b[_0x2db1ae(0x169)],_0x2d4b98=_0x22d182||_0x30871e,_0x154b83=_0x34ac3d||_0x45adee,_0x5516e4=_0x22d182||_0x30871e?_0x2db1ae(0x16c):_0x154b83,_0x125d65=_0x22d182||_0x30871e?'CONFIG_NAMES.DEFAULT':JSON[_0x2db1ae(0x152)](_0x154b83),_0x10233b=!isProduction(_0x5b6ee9),_0x3385a9=_0x10233b?_0x2db1ae(0x188)+JSON['stringify'](_0x5b6ee9):'',_0x155477=_0x2db1ae(0x16d)+_0x125d65+_0x3385a9+_0x2db1ae(0x187),_0x16b83c=_0x22d182?'':_0x270870,_0x13e1d4=_0x16b83c?_0x16b83c+_0x2db1ae(0x157):_0x2db1ae(0x15a),_0x2ca134=_0x16b83c?_0x16b83c+'-client':_0x2db1ae(0x164),_0x46f3d1=_0x16b83c&&!/^app-[a-f0-9]+$/i[_0x2db1ae(0x170)](_0x16b83c)?_0x16b83c['replace'](/-/g,'_')[_0x2db1ae(0x178)]():_0x2db1ae(0x15b),_0x5b61d8=/^\d/[_0x2db1ae(0x170)](_0x46f3d1)?_0x2db1ae(0x161)+_0x46f3d1:_0x46f3d1,_0x38628b=_0x5a333f[_0x2db1ae(0x156)](_0x3da22f=>({'datasetCode':_0x3da22f[_0x2db1ae(0x155)],'tableName':_0x3da22f['tableName'],'name':_0x3da22f[_0x2db1ae(0x159)]||'','alias':_0x3da22f[_0x2db1ae(0x153)]||_0x3da22f[_0x2db1ae(0x158)]})),_0x220bff=fileURLToPath(import.meta.url),_0x1eb55f=a3_0x1bd520[_0x2db1ae(0x168)](a3_0x1bd520[_0x2db1ae(0x175)](_0x220bff),_0x2db1ae(0x160)),_0x410972=a3_0x1bd520[_0x2db1ae(0x174)](_0x1eb55f,_0x2db1ae(0x184)),_0x2a0fbf=a3_0x1bd520['join'](_0x410972,_0x2db1ae(0x162)),_0xf1068f=a3_0x1bd520[_0x2db1ae(0x174)](_0x410972,_0x2db1ae(0x189)),_0x129625=_0x445722;mkdirSync(_0x129625,{'recursive':!![]});const _0x18b669=_0x22d182?{}:_0x43d79a,_0x43707c=await generateSdkConfigFile(_0x129625,_0x18b669,_0x16b83c),_0x58f077=a3_0x1bd520['basename'](_0x43707c,_0x2db1ae(0x167)),_0x19c1de=a3_0x1bd520[_0x2db1ae(0x174)](_0x129625,_0x13e1d4+_0x2db1ae(0x167)),_0x4d8dc4=a3_0x1bd520[_0x2db1ae(0x174)](_0x129625,_0x2ca134+_0x2db1ae(0x167)),_0x441073=_0x5643b[_0x2db1ae(0x16e)]===!![],_0x323d9f=existsSync(_0x19c1de),_0x488d45=existsSync(_0x4d8dc4),_0x4b67e9=_0x5643b[_0x2db1ae(0x17e)]??(_0x441073?_0x2db1ae(0x17a):_0x2db1ae(0x179)),_0xe072ec=_0x4b67e9==='replace'||_0x4b67e9===_0x2db1ae(0x179)&&!_0x323d9f,_0xe1d2ea=_0x4b67e9===_0x2db1ae(0x17a)||_0x4b67e9===_0x2db1ae(0x179)&&!_0x488d45,_0x486542=_0x5643b['modelProfile']?updateModelRegistry({'outputDir':_0x129625,'profileName':_0x5643b[_0x2db1ae(0x169)]['name'],'defaultProfile':_0x5643b[_0x2db1ae(0x169)][_0x2db1ae(0x17b)],'appCode':_0x45adee,'runtimeDomain':_0x5643b[_0x2db1ae(0x169)]['runtimeDomain'],'models':_0x38628b,'allowEmptyReplacement':_0x5643b[_0x2db1ae(0x163)]===!![]}):undefined,_0x20d82d=_0x486542?a3_0x1bd520[_0x2db1ae(0x174)](_0x129625,MODEL_RUNTIME_FILE_NAME):undefined,_0x208c23=_0x20d82d?existsSync(_0x20d82d):![],_0x5757c3=_0x22d182&&_0x4b67e9!==_0x2db1ae(0x18b)?await renderModelRegistryScaffold(_0x129625):undefined;_0x20d82d&&_0x5757c3&&writeFileSync(_0x20d82d,_0x5757c3[_0x2db1ae(0x16f)],'utf8');const _0x4c9d21=_0x38628b[0x0]?.['alias'];if(_0xe072ec){const _0x360335=_0x5757c3?.[_0x2db1ae(0x15a)]??readFileSync(_0x2a0fbf,'utf8'),_0x3b2a40=_0x22d182?_0x360335:TemplateReplacer[_0x2db1ae(0x185)](_0x360335,_0x45adee,_0x38628b,_0x4c9d21,_0x13e1d4,_0x125d65,undefined,_0x5b61d8);writeFileSync(_0x19c1de,await a3_0x454a2c['format'](_0x3b2a40,{'parser':'typescript'}),{'encoding':_0x2db1ae(0x183)});}if(_0xe1d2ea){const _0xfcb0ed=_0x5757c3?.['client']??readFileSync(_0xf1068f,_0x2db1ae(0x183)),_0x819728=_0x22d182?_0xfcb0ed:TemplateReplacer[_0x2db1ae(0x185)](_0xfcb0ed,_0x45adee,_0x38628b,_0x4c9d21,_0x13e1d4,_0x125d65,_0x155477,_0x5b61d8,_0x58f077);writeFileSync(_0x4d8dc4,await a3_0x454a2c[_0x2db1ae(0x18e)](_0x819728,{'parser':_0x2db1ae(0x151)}),{'encoding':'utf8'});}const _0x35220a=_0x38628b[_0x2db1ae(0x172)],_0x13aa99={'api':{'path':_0x19c1de,'action':fileAction(_0x323d9f,_0xe072ec)},'client':{'path':_0x4d8dc4,'action':fileAction(_0x488d45,_0xe1d2ea)},'sdkConfig':{'path':_0x43707c,'action':_0x2db1ae(0x181)},..._0x486542?{'modelRegistry':{'path':_0x486542['path'],'action':_0x486542[_0x2db1ae(0x15e)]?_0x2db1ae(0x181):'created'},'modelRuntime':{'path':_0x20d82d,'action':_0x5757c3?_0x208c23?_0x2db1ae(0x181):_0x2db1ae(0x180):_0x208c23?_0x2db1ae(0x176):'missing'}}:{}},_0x4906d1=existsSync(_0x19c1de)&&readFileSync(_0x19c1de,'utf8')[_0x2db1ae(0x186)](MODEL_REGISTRY_FILE_NAME['replace'](_0x2db1ae(0x167),'')),_0x4c3c46=existsSync(_0x4d8dc4)&&readFileSync(_0x4d8dc4,_0x2db1ae(0x183))[_0x2db1ae(0x186)](_0x2db1ae(0x18f)),_0x31b1ed=_0x22d182?!_0x4906d1||!_0x4c3c46||!existsSync(_0x20d82d):![],_0x116953=_0x22d182?_0x31b1ed:_0x13aa99[_0x2db1ae(0x15a)][_0x2db1ae(0x166)]===_0x2db1ae(0x176)||_0x13aa99[_0x2db1ae(0x164)]['action']===_0x2db1ae(0x176);return logger[_0x2db1ae(0x15f)]('init-api',_0x116953?a3_0x1bd520[_0x2db1ae(0x177)](_0x43707c)+_0x2db1ae(0x165):_0x22d182?'Model\x20facts\x20refreshed.':_0x2db1ae(0x173),undefined,{'apiFile':_0x19c1de,'clientFile':_0x4d8dc4,'sdkConfig':_0x43707c,'modelCount':_0x35220a,'configName':_0x5516e4,'isDefaultConfig':_0x2d4b98,'needsAgentMerge':_0x116953,'needsProjectUpgrade':_0x31b1ed,'files':_0x13aa99}),{'appCode':_0x45adee,'modelCount':_0x35220a,'models':_0x38628b,'apiFilePath':_0x19c1de,'clientFilePath':_0x4d8dc4,'sdkConfigPath':_0x43707c,'modelRegistryPath':_0x486542?.[_0x2db1ae(0x154)],'modelRuntimePath':_0x20d82d,'modelProfile':_0x5643b[_0x2db1ae(0x169)]?.['name'],'configName':_0x5516e4,'isDefaultConfig':_0x2d4b98,'sdkRouting':_0x18b669,'files':_0x13aa99,'needsAgentMerge':_0x116953,'needsProjectUpgrade':_0x31b1ed};}
1
+ (function(_0xa5eb2,_0x57bcfc){const _0x59edbf=a3_0x50fc,_0x1fae16=_0xa5eb2();while(!![]){try{const _0x1d2918=parseInt(_0x59edbf(0xd3))/0x1+-parseInt(_0x59edbf(0xd0))/0x2+-parseInt(_0x59edbf(0xcb))/0x3+parseInt(_0x59edbf(0xf1))/0x4*(-parseInt(_0x59edbf(0xd1))/0x5)+-parseInt(_0x59edbf(0xcd))/0x6*(parseInt(_0x59edbf(0xed))/0x7)+-parseInt(_0x59edbf(0xcf))/0x8*(-parseInt(_0x59edbf(0xe1))/0x9)+parseInt(_0x59edbf(0xe3))/0xa;if(_0x1d2918===_0x57bcfc)break;else _0x1fae16['push'](_0x1fae16['shift']());}catch(_0x4d1649){_0x1fae16['push'](_0x1fae16['shift']());}}}(a3_0x6be2,0xb2df1));function a3_0x50fc(_0xd40d1a,_0x283f79){_0xd40d1a=_0xd40d1a-0xba;const _0x6be2f9=a3_0x6be2();let _0x50fc53=_0x6be2f9[_0xd40d1a];return _0x50fc53;}import a3_0x5b51a0 from'prettier';import{existsSync,mkdirSync,writeFileSync,readFileSync}from'node:fs';import a3_0x4a9c5a from'node:path';import{fileURLToPath}from'node:url';import{TemplateReplacer}from'../utils/template-replacer.js';function a3_0x6be2(){const _0x1a7369=['overwriteTypescript','LOVRABET','2662227xXeYWp','client','11330510dPmNwn','CONFIG_NAMES.DEFAULT','replace','api','name','\x20refreshed;\x20existing\x20TypeScript\x20left\x20unchanged.','allowEmptyModelReplacement','datasetCode','preserved','none','7rrbCkn','Please\x20configure\x20app\x20code\x20first\x20via\x20`','default','key','1260gmvxXX','stringify','replaceApiContent','missing','join','APP_','refreshed','basename','api.ts.tpl','includes','\x20config\x20set\x20app\x20<value>`','resolve','.ts','alias','LOVRABET_RUNTIME_DOMAIN','dirname',',\x20...LOVRABET_SDK_CONFIG\x20}','{\x20apiConfigName:\x20','action','-client','test','683031dCyrYZ','utf8','2056926ujodpf',',\x20env:\x20','8MdIEBJ','641350lwUuEz','12490ElHrPg','templates/generate-api','981846eRXhCc','runtimeDomain','existed','length','overwritten','created','format','init-api','modelProfile','client.ts.tpl','API\x20scaffold\x20written.','path'];a3_0x6be2=function(){return _0x1a7369;};return a3_0x6be2();}import{CLI_BIN_NAME}from'../constant/cli.js';import{logger}from'../utils/logger.js';import{isProduction}from'../constant/env.js';import{generateSdkConfigFile}from'../api/generate-sdk-config-file.js';import{MODEL_REGISTRY_FILE_NAME,MODEL_RUNTIME_FILE_NAME,updateModelRegistry}from'../api/model-registry-file.js';import{renderModelRegistryScaffold}from'../api/model-registry-scaffold.js';function fileAction(_0x10b4a3,_0x21afb9){const _0x27a16c=a3_0x50fc;if(!_0x21afb9)return _0x10b4a3?_0x27a16c(0xeb):'missing';return _0x10b4a3?_0x27a16c(0xd7):'created';}export async function generateApiFile(_0x2f40ea,_0x129a20,_0x1c4cb5,_0x485320,_0x3536cc,_0x11a610,_0x5dd886,_0x673608={},_0x146727={}){const _0x3bce31=a3_0x50fc;if(!_0x1c4cb5)throw new Error(_0x3bce31(0xee)+CLI_BIN_NAME+_0x3bce31(0xc0));const _0xf2eb99=_0x485320&&!_0x5dd886,_0x42cd2c=!!_0x146727['modelProfile'],_0xafcb83=_0x42cd2c||_0xf2eb99,_0x1ec6df=_0x5dd886||_0x1c4cb5,_0x534041=_0x42cd2c||_0xf2eb99?_0x3bce31(0xef):_0x1ec6df,_0x31a7e1=_0x42cd2c||_0xf2eb99?_0x3bce31(0xe4):JSON[_0x3bce31(0xf2)](_0x1ec6df),_0x3dd17f=!isProduction(_0x3536cc),_0x2f8200=_0x3dd17f?_0x3bce31(0xce)+JSON[_0x3bce31(0xf2)](_0x3536cc):'',_0x357cc8=_0x3bce31(0xc7)+_0x31a7e1+_0x2f8200+_0x3bce31(0xc6),_0x37c9a0=_0x42cd2c?'':_0x129a20,_0x224c89=_0x37c9a0?_0x37c9a0+'-api':_0x3bce31(0xe6),_0x16cdce=_0x37c9a0?_0x37c9a0+_0x3bce31(0xc9):_0x3bce31(0xe2),_0x34dccf=_0x37c9a0&&!/^app-[a-f0-9]+$/i[_0x3bce31(0xca)](_0x37c9a0)?_0x37c9a0[_0x3bce31(0xe5)](/-/g,'_')['toUpperCase']():_0x3bce31(0xe0),_0x38f9ab=/^\d/[_0x3bce31(0xca)](_0x34dccf)?_0x3bce31(0xbb)+_0x34dccf:_0x34dccf,_0x190219=_0x2f40ea['map'](_0x1fa39e=>({'datasetCode':_0x1fa39e[_0x3bce31(0xea)],'tableName':_0x1fa39e['tableName'],'name':_0x1fa39e[_0x3bce31(0xe7)]||'','alias':_0x1fa39e['alias']||_0x1fa39e[_0x3bce31(0xf0)]})),_0x3d0e95=fileURLToPath(import.meta.url),_0x3956c6=a3_0x4a9c5a[_0x3bce31(0xc1)](a3_0x4a9c5a[_0x3bce31(0xc5)](_0x3d0e95),'../..'),_0xa8f6f=a3_0x4a9c5a[_0x3bce31(0xba)](_0x3956c6,_0x3bce31(0xd2)),_0x39c779=a3_0x4a9c5a['join'](_0xa8f6f,_0x3bce31(0xbe)),_0x3854e4=a3_0x4a9c5a[_0x3bce31(0xba)](_0xa8f6f,_0x3bce31(0xdc)),_0x3898a8=_0x11a610;mkdirSync(_0x3898a8,{'recursive':!![]});const _0x12186f=_0x42cd2c?{}:_0x673608,_0x5bb904=await generateSdkConfigFile(_0x3898a8,_0x12186f,_0x37c9a0),_0x4d152e=a3_0x4a9c5a[_0x3bce31(0xbd)](_0x5bb904,_0x3bce31(0xc2)),_0x4de11d=a3_0x4a9c5a[_0x3bce31(0xba)](_0x3898a8,_0x224c89+'.ts'),_0xfbaa2f=a3_0x4a9c5a[_0x3bce31(0xba)](_0x3898a8,_0x16cdce+_0x3bce31(0xc2)),_0x60048b=_0x146727[_0x3bce31(0xdf)]===!![],_0xd5d3=existsSync(_0x4de11d),_0x430a5e=existsSync(_0xfbaa2f),_0xd6c713=_0x146727['scaffoldMode']??(_0x60048b?_0x3bce31(0xe5):'missing'),_0x4f4f10=_0xd6c713===_0x3bce31(0xe5)||_0xd6c713==='missing'&&!_0xd5d3,_0x207f7a=_0xd6c713===_0x3bce31(0xe5)||_0xd6c713===_0x3bce31(0xf4)&&!_0x430a5e,_0x227937=_0x146727[_0x3bce31(0xdb)]?updateModelRegistry({'outputDir':_0x3898a8,'profileName':_0x146727[_0x3bce31(0xdb)][_0x3bce31(0xe7)],'defaultProfile':_0x146727['modelProfile']['defaultName'],'appCode':_0x1c4cb5,'runtimeDomain':_0x146727[_0x3bce31(0xdb)][_0x3bce31(0xd4)],'models':_0x190219,'allowEmptyReplacement':_0x146727[_0x3bce31(0xe9)]===!![]}):undefined,_0x44cd85=_0x227937?a3_0x4a9c5a['join'](_0x3898a8,MODEL_RUNTIME_FILE_NAME):undefined,_0x11f30f=_0x44cd85?existsSync(_0x44cd85):![],_0x5b98ef=_0x42cd2c&&_0xd6c713!==_0x3bce31(0xec)?await renderModelRegistryScaffold(_0x3898a8):undefined;_0x44cd85&&_0x5b98ef&&writeFileSync(_0x44cd85,_0x5b98ef['modelRuntime'],_0x3bce31(0xcc));const _0x512c9a=_0x190219[0x0]?.[_0x3bce31(0xc3)];if(_0x4f4f10){const _0x3bc995=_0x5b98ef?.[_0x3bce31(0xe6)]??readFileSync(_0x39c779,_0x3bce31(0xcc)),_0x5903c6=_0x42cd2c?_0x3bc995:TemplateReplacer[_0x3bce31(0xf3)](_0x3bc995,_0x1c4cb5,_0x190219,_0x512c9a,_0x224c89,_0x31a7e1,undefined,_0x38f9ab);writeFileSync(_0x4de11d,await a3_0x5b51a0[_0x3bce31(0xd9)](_0x5903c6,{'parser':'typescript'}),{'encoding':_0x3bce31(0xcc)});}if(_0x207f7a){const _0x46ab47=_0x5b98ef?.[_0x3bce31(0xe2)]??readFileSync(_0x3854e4,_0x3bce31(0xcc)),_0x217567=_0x42cd2c?_0x46ab47:TemplateReplacer[_0x3bce31(0xf3)](_0x46ab47,_0x1c4cb5,_0x190219,_0x512c9a,_0x224c89,_0x31a7e1,_0x357cc8,_0x38f9ab,_0x4d152e);writeFileSync(_0xfbaa2f,await a3_0x5b51a0[_0x3bce31(0xd9)](_0x217567,{'parser':'typescript'}),{'encoding':_0x3bce31(0xcc)});}const _0x476d9a=_0x190219[_0x3bce31(0xd6)],_0x5a9891={'api':{'path':_0x4de11d,'action':fileAction(_0xd5d3,_0x4f4f10)},'client':{'path':_0xfbaa2f,'action':fileAction(_0x430a5e,_0x207f7a)},'sdkConfig':{'path':_0x5bb904,'action':_0x3bce31(0xbc)},..._0x227937?{'modelRegistry':{'path':_0x227937[_0x3bce31(0xde)],'action':_0x227937[_0x3bce31(0xd5)]?'refreshed':_0x3bce31(0xd8)},'modelRuntime':{'path':_0x44cd85,'action':_0x5b98ef?_0x11f30f?_0x3bce31(0xbc):'created':_0x11f30f?_0x3bce31(0xeb):'missing'}}:{}},_0x564985=existsSync(_0x4de11d)&&readFileSync(_0x4de11d,'utf8')['includes'](MODEL_REGISTRY_FILE_NAME[_0x3bce31(0xe5)](_0x3bce31(0xc2),'')),_0x317dfd=existsSync(_0xfbaa2f)&&readFileSync(_0xfbaa2f,_0x3bce31(0xcc))[_0x3bce31(0xbf)](_0x3bce31(0xc4)),_0x26dd0d=_0x42cd2c?!_0x564985||!_0x317dfd||!existsSync(_0x44cd85):![],_0x2c7264=_0x42cd2c?_0x26dd0d:_0x5a9891[_0x3bce31(0xe6)][_0x3bce31(0xc8)]===_0x3bce31(0xeb)||_0x5a9891['client'][_0x3bce31(0xc8)]===_0x3bce31(0xeb);return logger['success'](_0x3bce31(0xda),_0x2c7264?a3_0x4a9c5a['basename'](_0x5bb904)+_0x3bce31(0xe8):_0x42cd2c?'Model\x20facts\x20refreshed.':_0x3bce31(0xdd),undefined,{'apiFile':_0x4de11d,'clientFile':_0xfbaa2f,'sdkConfig':_0x5bb904,'modelCount':_0x476d9a,'configName':_0x534041,'isDefaultConfig':_0xafcb83,'needsAgentMerge':_0x2c7264,'needsProjectUpgrade':_0x26dd0d,'files':_0x5a9891}),{'appCode':_0x1c4cb5,'modelCount':_0x476d9a,'models':_0x190219,'apiFilePath':_0x4de11d,'clientFilePath':_0xfbaa2f,'sdkConfigPath':_0x5bb904,'modelRegistryPath':_0x227937?.['path'],'modelRuntimePath':_0x44cd85,'modelProfile':_0x146727[_0x3bce31(0xdb)]?.[_0x3bce31(0xe7)],'configName':_0x534041,'isDefaultConfig':_0xafcb83,'sdkRouting':_0x12186f,'files':_0x5a9891,'needsAgentMerge':_0x2c7264,'needsProjectUpgrade':_0x26dd0d};}
@@ -1 +1 @@
1
- const a4_0x18f323=a4_0x38e4;(function(_0x31fe03,_0x2bbd47){const _0x4b8348=a4_0x38e4,_0x708ef0=_0x31fe03();while(!![]){try{const _0x35c7ab=parseInt(_0x4b8348(0x178))/0x1*(parseInt(_0x4b8348(0x179))/0x2)+parseInt(_0x4b8348(0x17b))/0x3*(-parseInt(_0x4b8348(0x176))/0x4)+parseInt(_0x4b8348(0x180))/0x5*(parseInt(_0x4b8348(0x17f))/0x6)+-parseInt(_0x4b8348(0x172))/0x7+parseInt(_0x4b8348(0x17d))/0x8*(-parseInt(_0x4b8348(0x16c))/0x9)+-parseInt(_0x4b8348(0x173))/0xa*(parseInt(_0x4b8348(0x16e))/0xb)+parseInt(_0x4b8348(0x16d))/0xc;if(_0x35c7ab===_0x2bbd47)break;else _0x708ef0['push'](_0x708ef0['shift']());}catch(_0x4a7d0c){_0x708ef0['push'](_0x708ef0['shift']());}}}(a4_0x4424,0x5ca48));import{mkdirSync,writeFileSync}from'node:fs';function a4_0x38e4(_0x2913e7,_0x546c8e){_0x2913e7=_0x2913e7-0x16b;const _0x442463=a4_0x4424();let _0x38e4f5=_0x442463[_0x2913e7];return _0x38e4f5;}import a4_0x356d53 from'node:path';function a4_0x4424(){const _0x4ef32e=['runtimeDomain:\x20','184816rrTrWB',',\x0a}','1503126HRQsMa','5OHvnKB','runtimeDomain','format','45DjJwZD','12643248OnhvxQ','253GcGonm','stringify','-sdk-config.ts','/**\x0a\x20*\x20Lovrabet\x20SDK\x20runtime\x20routing.\x0a\x20*\x20Generated\x20by\x20Rabetbase\x20CLI.\x20Do\x20not\x20add\x20credentials\x20to\x20this\x20file.\x0a\x20*/\x0aexport\x20const\x20LOVRABET_SDK_CONFIG\x20=\x20','2237683wZVcet','151520oNrjCn','join','{\x0a\x20\x20','109356jpHuIW','sdk-config.ts','378455UpzHKt','2DJwkIt','typescript','57CdjUDg'];a4_0x4424=function(){return _0x4ef32e;};return a4_0x4424();}import a4_0x51aca4 from'prettier';export const SDK_CONFIG_FILE_NAME=a4_0x18f323(0x177);export function getSdkConfigFileName(_0x3e05e7=''){const _0xad577f=a4_0x18f323;return _0x3e05e7?_0x3e05e7+_0xad577f(0x170):SDK_CONFIG_FILE_NAME;}export async function generateSdkConfigFile(_0x243a7a,_0x1a3c9b={},_0x5a02d9=''){const _0x14f787=a4_0x18f323,_0x5da1fe=[];_0x1a3c9b[_0x14f787(0x181)]&&_0x5da1fe['push'](_0x14f787(0x17c)+JSON[_0x14f787(0x16f)](_0x1a3c9b[_0x14f787(0x181)]));const _0x3e959b=_0x5da1fe['length']>0x0?_0x14f787(0x175)+_0x5da1fe[_0x14f787(0x174)](',\x0a\x20\x20')+_0x14f787(0x17e):'{}',_0x5d7dbd=_0x14f787(0x171)+_0x3e959b+'\x20as\x20const;\x0a';mkdirSync(_0x243a7a,{'recursive':!![]});const _0x18d3fe=a4_0x356d53[_0x14f787(0x174)](_0x243a7a,getSdkConfigFileName(_0x5a02d9));return writeFileSync(_0x18d3fe,await a4_0x51aca4[_0x14f787(0x16b)](_0x5d7dbd,{'parser':_0x14f787(0x17a)}),'utf8'),_0x18d3fe;}
1
+ const a4_0x9752bc=a4_0x4b7b;(function(_0x53fb4e,_0x2040c8){const _0x3558f2=a4_0x4b7b,_0x5aa4f1=_0x53fb4e();while(!![]){try{const _0x5914df=-parseInt(_0x3558f2(0x1b1))/0x1+-parseInt(_0x3558f2(0x19f))/0x2*(-parseInt(_0x3558f2(0x19e))/0x3)+-parseInt(_0x3558f2(0x1a7))/0x4+parseInt(_0x3558f2(0x1a1))/0x5*(parseInt(_0x3558f2(0x1a3))/0x6)+parseInt(_0x3558f2(0x1a4))/0x7*(-parseInt(_0x3558f2(0x1ac))/0x8)+-parseInt(_0x3558f2(0x1a8))/0x9+-parseInt(_0x3558f2(0x1ab))/0xa*(-parseInt(_0x3558f2(0x1ad))/0xb);if(_0x5914df===_0x2040c8)break;else _0x5aa4f1['push'](_0x5aa4f1['shift']());}catch(_0xb10184){_0x5aa4f1['push'](_0x5aa4f1['shift']());}}}(a4_0x4af4,0xd1fd2));import{mkdirSync,writeFileSync}from'node:fs';import a4_0x53d0be from'node:path';import a4_0x4d2f13 from'prettier';function a4_0x4b7b(_0x540b46,_0x32854a){_0x540b46=_0x540b46-0x19e;const _0x4af443=a4_0x4af4();let _0x4b7bbf=_0x4af443[_0x540b46];return _0x4b7bbf;}export const SDK_CONFIG_FILE_NAME=a4_0x9752bc(0x1a9);function a4_0x4af4(){const _0x855905=['length','1323568BJZbaB','9712242yvRWlk','sdk-config.ts','join','147990kQSmxa','157592NHuDzq','1958HXMHFx','\x20as\x20const;\x0a','format','-sdk-config.ts','907819UBKhiv','/**\x0a\x20*\x20Lovrabet\x20SDK\x20runtime\x20routing.\x0a\x20*\x20Generated\x20by\x20Rabetbase\x20CLI.\x20Do\x20not\x20add\x20credentials\x20to\x20this\x20file.\x0a\x20*/\x0aexport\x20const\x20LOVRABET_SDK_CONFIG\x20=\x20','runtimeDomain:\x20','runtimeDomain','typescript','575952keNzmt','4rgWmve','push','657845XRWjat','{\x0a\x20\x20','54rVqgVI','364oosklT','stringify'];a4_0x4af4=function(){return _0x855905;};return a4_0x4af4();}export function getSdkConfigFileName(_0x93c639=''){const _0x3b0202=a4_0x9752bc;return _0x93c639?_0x93c639+_0x3b0202(0x1b0):SDK_CONFIG_FILE_NAME;}export async function generateSdkConfigFile(_0x273600,_0x252e34={},_0x2ff3f2=''){const _0x309ad8=a4_0x9752bc,_0x517a7f=[];_0x252e34[_0x309ad8(0x1b4)]&&_0x517a7f[_0x309ad8(0x1a0)](_0x309ad8(0x1b3)+JSON[_0x309ad8(0x1a5)](_0x252e34[_0x309ad8(0x1b4)]));const _0x4aae20=_0x517a7f[_0x309ad8(0x1a6)]>0x0?_0x309ad8(0x1a2)+_0x517a7f[_0x309ad8(0x1aa)](',\x0a\x20\x20')+',\x0a}':'{}',_0x3b3329=_0x309ad8(0x1b2)+_0x4aae20+_0x309ad8(0x1ae);mkdirSync(_0x273600,{'recursive':!![]});const _0x3b6922=a4_0x53d0be['join'](_0x273600,getSdkConfigFileName(_0x2ff3f2));return writeFileSync(_0x3b6922,await a4_0x4d2f13[_0x309ad8(0x1af)](_0x3b3329,{'parser':_0x309ad8(0x1b5)}),'utf8'),_0x3b6922;}
@@ -1 +1 @@
1
- (function(_0x59025f,_0x252729){const _0x2ada7f=a5_0x1df4,_0x11e724=_0x59025f();while(!![]){try{const _0x5dc704=parseInt(_0x2ada7f(0x169))/0x1+-parseInt(_0x2ada7f(0x176))/0x2+-parseInt(_0x2ada7f(0x165))/0x3+-parseInt(_0x2ada7f(0x17b))/0x4*(parseInt(_0x2ada7f(0x17a))/0x5)+parseInt(_0x2ada7f(0x163))/0x6*(-parseInt(_0x2ada7f(0x16f))/0x7)+-parseInt(_0x2ada7f(0x177))/0x8*(-parseInt(_0x2ada7f(0x179))/0x9)+parseInt(_0x2ada7f(0x171))/0xa;if(_0x5dc704===_0x252729)break;else _0x11e724['push'](_0x11e724['shift']());}catch(_0x276ec0){_0x11e724['push'](_0x11e724['shift']());}}}(a5_0x39c5,0x4cce7));export function parseLegacyApiModels(_0x15d893){const _0x93e629=a5_0x1df4,_0x327a8e=[],_0x281f3e=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x5bc4e1;while((_0x5bc4e1=_0x281f3e[_0x93e629(0x16a)](_0x15d893))!==null){_0x327a8e['push']({'datasetCode':_0x5bc4e1[0x1],'tableName':_0x5bc4e1[0x2],'name':_0x5bc4e1[0x3],'alias':_0x5bc4e1[0x4]});}return _0x327a8e;}export function parseLegacyApiAppCode(_0x58e2e3){const _0x1a05ae=a5_0x1df4;return _0x58e2e3[_0x1a05ae(0x167)](/export\s+const\s+[A-Z0-9_]*APP_CODE(?:\s*:\s*string)?\s*=\s*["']([^"']+)["']/)?.[0x1];}function a5_0x1df4(_0x17fe9e,_0x5d1b8b){_0x17fe9e=_0x17fe9e-0x163;const _0x39c50f=a5_0x39c5();let _0x1df4a6=_0x39c50f[_0x17fe9e];return _0x1df4a6;}function stripComments(_0x1ac813){const _0x5c4fea=a5_0x1df4;return _0x1ac813[_0x5c4fea(0x166)](/\/\*[\s\S]*?\*\//g,'')[_0x5c4fea(0x166)](/\/\/.*$/gm,'');}export function isLegacyGeneratedApiScaffold(_0x57ed5b){const _0x19bf74=a5_0x1df4;if(!_0x57ed5b[_0x19bf74(0x172)]('Generated\x20by\x20Rabetbase\x20CLI'))return![];const _0x3817ca=stripComments(_0x57ed5b),_0x2d19a8=[..._0x3817ca[_0x19bf74(0x173)](/^import[\s\S]*?from\s+["']([^"']+)["'];?$/gm)][_0x19bf74(0x175)](_0x3604bf=>_0x3604bf[0x1]);if(_0x2d19a8[_0x19bf74(0x178)]!==0x1||_0x2d19a8[0x0]!==_0x19bf74(0x16b))return![];const _0xa0aa5a=[..._0x3817ca['matchAll'](/^(?:export\s+)?const\s+([A-Za-z_$][\w$]*)/gm)]['map'](_0x3b6605=>_0x3b6605[0x1]);if(_0xa0aa5a[_0x19bf74(0x178)]!==0x2||!_0xa0aa5a[_0x19bf74(0x168)](_0x552cd2=>_0x552cd2[_0x19bf74(0x16c)](_0x19bf74(0x16e)))||!_0xa0aa5a[_0x19bf74(0x168)](_0x1504c9=>_0x1504c9[_0x19bf74(0x16c)](_0x19bf74(0x16d))))return![];const _0x4eeab3=[..._0x3817ca[_0x19bf74(0x173)](/^([A-Za-z_$][\w$]*)\s*\(/gm)][_0x19bf74(0x175)](_0x4473e7=>_0x4473e7[0x1]);return _0x4eeab3[_0x19bf74(0x178)]===0x1&&_0x4eeab3[0x0]===_0x19bf74(0x174);}function a5_0x39c5(){const _0x2d8436=['310520AGTgzf','760136LxnKLI','length','36CyrXfc','5lJfsEe','406668qAgMwo','30OzfiUo','Generated\x20by\x20Rabetbase\x20CLI','1614927gngLqU','replace','match','some','258670gtmxcf','exec','@lovrabet/sdk','endsWith','MODELS_CONFIG','APP_CODE','170611xTNPHy','test','5929620UTwvdE','includes','matchAll','registerModels','map'];a5_0x39c5=function(){return _0x2d8436;};return a5_0x39c5();}export function isLegacyGeneratedClientScaffold(_0x1cbe13){const _0x18ad56=a5_0x1df4;if(!_0x1cbe13[_0x18ad56(0x172)](_0x18ad56(0x164)))return![];const _0x1e3d9c=stripComments(_0x1cbe13),_0x1ee126=[..._0x1e3d9c[_0x18ad56(0x173)](/^(?:import[\s\S]*?from\s+|import\s+)["']([^"']+)["'];?$/gm)][_0x18ad56(0x175)](_0x36010d=>_0x36010d[0x1]);if(_0x1ee126['some'](_0x4a4f2c=>_0x4a4f2c!==_0x18ad56(0x16b)&&!/^\.\/(?:[\w-]+-)?(?:api|sdk-config)$/[_0x18ad56(0x170)](_0x4a4f2c??'')))return![];const _0x5e3dc7=[..._0x1e3d9c[_0x18ad56(0x173)](/^(?:export\s+)?const\s+([A-Za-z_$][\w$]*)/gm)][_0x18ad56(0x175)](_0x2f23eb=>_0x2f23eb[0x1]);return _0x5e3dc7[_0x18ad56(0x178)]===0x1&&_0x5e3dc7[0x0]==='lovrabetClient';}
1
+ function a5_0x5502(_0x5ddcf5,_0x67afd9){_0x5ddcf5=_0x5ddcf5-0x1b9;const _0x26f8b6=a5_0x26f8();let _0x55027f=_0x26f8b6[_0x5ddcf5];return _0x55027f;}(function(_0x3be65e,_0xa414d9){const _0x161da3=a5_0x5502,_0x48950d=_0x3be65e();while(!![]){try{const _0x21e32b=-parseInt(_0x161da3(0x1b9))/0x1+-parseInt(_0x161da3(0x1bb))/0x2*(-parseInt(_0x161da3(0x1c5))/0x3)+-parseInt(_0x161da3(0x1cd))/0x4*(parseInt(_0x161da3(0x1cc))/0x5)+parseInt(_0x161da3(0x1be))/0x6*(-parseInt(_0x161da3(0x1c1))/0x7)+parseInt(_0x161da3(0x1c9))/0x8+parseInt(_0x161da3(0x1c7))/0x9*(parseInt(_0x161da3(0x1ba))/0xa)+parseInt(_0x161da3(0x1cf))/0xb;if(_0x21e32b===_0xa414d9)break;else _0x48950d['push'](_0x48950d['shift']());}catch(_0x12074e){_0x48950d['push'](_0x48950d['shift']());}}}(a5_0x26f8,0x9c430));export function parseLegacyApiModels(_0x5ee4b6){const _0x377988=a5_0x5502,_0x4a4f00=[],_0x1b17ca=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x14cd73;while((_0x14cd73=_0x1b17ca['exec'](_0x5ee4b6))!==null){_0x4a4f00[_0x377988(0x1ca)]({'datasetCode':_0x14cd73[0x1],'tableName':_0x14cd73[0x2],'name':_0x14cd73[0x3],'alias':_0x14cd73[0x4]});}return _0x4a4f00;}function a5_0x26f8(){const _0x454a31=['1147513EmsAro','1134890gWrwWH','40422IBTpDf','APP_CODE','length','6iuypHP','match','some','8752870QTdulJ','Generated\x20by\x20Rabetbase\x20CLI','lovrabetClient','endsWith','111ZnlSef','includes','63xDaSrT','matchAll','5528744PGNEou','push','replace','3135805yCUIdk','8NLCoJe','registerModels','22648670dWIKxP','map'];a5_0x26f8=function(){return _0x454a31;};return a5_0x26f8();}export function parseLegacyApiAppCode(_0xac6556){const _0x3c22f2=a5_0x5502;return _0xac6556[_0x3c22f2(0x1bf)](/export\s+const\s+[A-Z0-9_]*APP_CODE(?:\s*:\s*string)?\s*=\s*["']([^"']+)["']/)?.[0x1];}function stripComments(_0x371474){const _0x30b6d7=a5_0x5502;return _0x371474[_0x30b6d7(0x1cb)](/\/\*[\s\S]*?\*\//g,'')['replace'](/\/\/.*$/gm,'');}export function isLegacyGeneratedApiScaffold(_0x4f6feb){const _0x243595=a5_0x5502;if(!_0x4f6feb[_0x243595(0x1c6)](_0x243595(0x1c2)))return![];const _0x5034fc=stripComments(_0x4f6feb),_0x23cc95=[..._0x5034fc[_0x243595(0x1c8)](/^import[\s\S]*?from\s+["']([^"']+)["'];?$/gm)][_0x243595(0x1d0)](_0x57cbc9=>_0x57cbc9[0x1]);if(_0x23cc95[_0x243595(0x1bd)]!==0x1||_0x23cc95[0x0]!=='@lovrabet/sdk')return![];const _0x5955f7=[..._0x5034fc[_0x243595(0x1c8)](/^(?:export\s+)?const\s+([A-Za-z_$][\w$]*)/gm)][_0x243595(0x1d0)](_0x70f348=>_0x70f348[0x1]);if(_0x5955f7[_0x243595(0x1bd)]!==0x2||!_0x5955f7[_0x243595(0x1c0)](_0x33c192=>_0x33c192[_0x243595(0x1c4)](_0x243595(0x1bc)))||!_0x5955f7[_0x243595(0x1c0)](_0x433290=>_0x433290[_0x243595(0x1c4)]('MODELS_CONFIG')))return![];const _0x5765e0=[..._0x5034fc[_0x243595(0x1c8)](/^([A-Za-z_$][\w$]*)\s*\(/gm)][_0x243595(0x1d0)](_0x69e495=>_0x69e495[0x1]);return _0x5765e0['length']===0x1&&_0x5765e0[0x0]===_0x243595(0x1ce);}export function isLegacyGeneratedClientScaffold(_0x1ccff7){const _0x5bb97a=a5_0x5502;if(!_0x1ccff7[_0x5bb97a(0x1c6)]('Generated\x20by\x20Rabetbase\x20CLI'))return![];const _0x43dcea=stripComments(_0x1ccff7),_0x562e89=[..._0x43dcea[_0x5bb97a(0x1c8)](/^(?:import[\s\S]*?from\s+|import\s+)["']([^"']+)["'];?$/gm)][_0x5bb97a(0x1d0)](_0x2fedfa=>_0x2fedfa[0x1]);if(_0x562e89['some'](_0x311005=>_0x311005!=='@lovrabet/sdk'&&!/^\.\/(?:[\w-]+-)?(?:api|sdk-config)$/['test'](_0x311005??'')))return![];const _0x15d0b9=[..._0x43dcea[_0x5bb97a(0x1c8)](/^(?:export\s+)?const\s+([A-Za-z_$][\w$]*)/gm)][_0x5bb97a(0x1d0)](_0x33167c=>_0x33167c[0x1]);return _0x15d0b9[_0x5bb97a(0x1bd)]===0x1&&_0x15d0b9[0x0]===_0x5bb97a(0x1c3);}
@@ -1 +1 @@
1
- const a6_0x522a84=a6_0x175f;(function(_0x186692,_0x3eafb6){const _0x51b060=a6_0x175f,_0x7a74d7=_0x186692();while(!![]){try{const _0x3794da=parseInt(_0x51b060(0xd0))/0x1+-parseInt(_0x51b060(0x9d))/0x2*(-parseInt(_0x51b060(0xb9))/0x3)+parseInt(_0x51b060(0x94))/0x4*(-parseInt(_0x51b060(0xc0))/0x5)+-parseInt(_0x51b060(0x99))/0x6+-parseInt(_0x51b060(0xa4))/0x7+-parseInt(_0x51b060(0xc2))/0x8+-parseInt(_0x51b060(0x9b))/0x9*(-parseInt(_0x51b060(0xba))/0xa);if(_0x3794da===_0x3eafb6)break;else _0x7a74d7['push'](_0x7a74d7['shift']());}catch(_0x344bcb){_0x7a74d7['push'](_0x7a74d7['shift']());}}}(a6_0x3937,0xc5ea4));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a6_0x175f(_0x2bf0c6,_0x50b7d4){_0x2bf0c6=_0x2bf0c6-0x8b;const _0x393734=a6_0x3937();let _0x175f3f=_0x393734[_0x2bf0c6];return _0x175f3f;}import a6_0xab590b from'node:path';export const MODEL_REGISTRY_FILE_NAME=a6_0x522a84(0xc5);export const MODEL_RUNTIME_FILE_NAME=a6_0x522a84(0x93);export const MODEL_REGISTRY_VERSION_MARKER='/*\x20rabetbase-model-registry:v2\x20*/';const LEGACY_MODEL_REGISTRY_V2_PROTOCOL=a6_0x522a84(0xac),REGISTRY_START=a6_0x522a84(0xb5),REGISTRY_END='/*\x20rabetbase-model-registry:end\x20*/';function emptyRegistry(_0x3cbcfa){return{'defaultProfile':_0x3cbcfa,'profiles':{},'models':[]};}function extractRegistryJson(_0x3cfbe0){const _0x1c8163=a6_0x522a84,_0x25528d=_0x3cfbe0['indexOf'](REGISTRY_START),_0x6ec82e=_0x3cfbe0[_0x1c8163(0xb0)](REGISTRY_END);if(_0x25528d<0x0||_0x6ec82e<=_0x25528d)return undefined;return _0x3cfbe0[_0x1c8163(0x96)](_0x25528d+REGISTRY_START['length'],_0x6ec82e)[_0x1c8163(0x97)]()[_0x1c8163(0xa7)](/\s+as const satisfies LovrabetModelRegistry;?$/,'')['replace'](/;$/,'');}function migrateLegacyRegistry(_0x4d71fe){const _0x3d18cb=a6_0x522a84,_0x278156=emptyRegistry(_0x4d71fe['defaultProfile']);for(const [_0x9e303,_0x331cc2]of Object['entries'](_0x4d71fe[_0x3d18cb(0xbe)])){_0x278156[_0x3d18cb(0xbe)][_0x9e303]={'appCode':_0x331cc2['appCode'],'runtimeDomain':_0x331cc2[_0x3d18cb(0xd1)]},mergeProfileModels(_0x278156,_0x9e303,_0x331cc2[_0x3d18cb(0xb2)]);}return _0x278156;}function generatedObjectLiteralToJson(_0x402bdf){const _0x18473a=a6_0x522a84;let _0x5a30c3='',_0x144510,_0x334f3b=![],_0x2e87d0;for(let _0x2cdd33=0x0;_0x2cdd33<_0x402bdf[_0x18473a(0xb8)];_0x2cdd33++){const _0x4eaaae=_0x402bdf[_0x2cdd33];if(_0x144510){_0x5a30c3+=_0x4eaaae;if(_0x334f3b)_0x334f3b=![];else{if(_0x4eaaae==='\x5c')_0x334f3b=!![];else{if(_0x4eaaae===_0x144510)_0x144510=undefined;}}continue;}if(_0x4eaaae==='\x22'){_0x144510=_0x4eaaae,_0x5a30c3+=_0x4eaaae,_0x2e87d0=_0x18473a(0xa3);continue;}if(_0x4eaaae===','){let _0x447d6a=_0x2cdd33+0x1;while(/\s/['test'](_0x402bdf[_0x447d6a]??''))_0x447d6a++;if(_0x402bdf[_0x447d6a]==='}'||_0x402bdf[_0x447d6a]===']')continue;_0x5a30c3+=_0x4eaaae,_0x2e87d0=',';continue;}if(_0x4eaaae==='{'||_0x4eaaae==='['){_0x5a30c3+=_0x4eaaae,_0x2e87d0=_0x4eaaae;continue;}if(_0x4eaaae==='}'||_0x4eaaae===']'){_0x5a30c3+=_0x4eaaae,_0x2e87d0=_0x4eaaae;continue;}if((_0x2e87d0==='{'||_0x2e87d0===',')&&/[A-Za-z_$]/[_0x18473a(0x9c)](_0x4eaaae)){let _0x4c9de9=_0x2cdd33+0x1;while(/[A-Za-z0-9_$]/['test'](_0x402bdf[_0x4c9de9]??''))_0x4c9de9++;let _0x2d2f1f=_0x4c9de9;while(/\s/[_0x18473a(0x9c)](_0x402bdf[_0x2d2f1f]??''))_0x2d2f1f++;if(_0x402bdf[_0x2d2f1f]===':'){_0x5a30c3+=JSON['stringify'](_0x402bdf[_0x18473a(0x96)](_0x2cdd33,_0x4c9de9)),_0x2cdd33=_0x4c9de9-0x1,_0x2e87d0=_0x18473a(0xb3);continue;}}_0x5a30c3+=_0x4eaaae;if(!/\s/[_0x18473a(0x9c)](_0x4eaaae)&&_0x4eaaae!==':')_0x2e87d0='value';}return _0x5a30c3;}function a6_0x3937(){const _0x284d8f=['/**\x0a\x20*\x20Dataset\x20model\x20facts\x20generated\x20by\x20Rabetbase\x20CLI.\x0a\x20*\x0a\x20*\x20This\x20file\x20is\x20safe\x20to\x20commit.\x20Do\x20not\x20edit\x20it\x20manually\x20and\x20never\x20add\x20credentials.\x0a\x20*/\x0a\x0aexport\x20interface\x20LovrabetModelProfile\x20{\x0a\x20\x20appCode:\x20string;\x0a\x20\x20runtimeDomain:\x20string;\x0a}\x0a\x0aexport\x20interface\x20LovrabetModelEntryMetadata\x20{\x0a\x20\x20alias:\x20string;\x0a\x20\x20tableName:\x20string;\x0a\x20\x20name:\x20string;\x0a}\x0a\x0aexport\x20type\x20LovrabetModelEntry\x20=\x20LovrabetModelEntryMetadata\x20&\x20(\x0a\x20\x20|\x20{\x20datasetCode:\x20string;\x20datasetCodes?:\x20never\x20}\x0a\x20\x20|\x20{\x20datasetCode?:\x20never;\x20datasetCodes:\x20Record<string,\x20string>\x20}\x0a);\x0a\x0aexport\x20interface\x20LovrabetModelRegistry\x20{\x0a\x20\x20defaultProfile:\x20string;\x0a\x20\x20profiles:\x20Record<string,\x20LovrabetModelProfile>;\x0a\x20\x20models:\x20LovrabetModelEntry[];\x0a}\x0a\x0a','4281445cwGAZk','values','766264SPsuKt','set','split','models.generated.ts','\x22\x20maps\x20to\x20alias\x20\x22','\x22\x20in\x20profile\x20\x22','string','join','isArray','name','push','outputDir','stringify','Refusing\x20to\x20replace\x20','1190616FgJXne','runtimeDomain','flatMap','map','utf8','keys','NOT-SET','profileName','\x22\x20with\x20an\x20empty\x20result.\x20','filter','Table\x20\x22','.tmp','fromEntries','model-runtime.ts','4cjociy','find','slice','trim','\x20as\x20const\x20satisfies\x20LovrabetModelRegistry;\x0a','6234828fnkyxx','allowEmptyReplacement','2005398xGweMp','test','1701776wVSQUl','get','pid','\x22\x20maps\x20to\x20both\x20aliases\x20\x22','Model\x20alias\x20\x22','protocol','value','4035962uSoBIq','\x22\x20maps\x20to\x20table\x20\x22','tableName','replace','alias','\x22\x20and\x20\x22','lovrabet-model-registry/v1','appCode','lovrabet-model-registry/v2','datasetCode','\x22\x20maps\x20to\x20both\x20\x22','object','indexOf','includes','models','key','now','/*\x20rabetbase-model-registry:start\x20*/','datasetCodes','parse','length','3CNsUQQ','60hWdmom','defaultProfile','every','\x22\x20in\x20the\x20registry\x20but\x20\x22','profiles'];a6_0x3937=function(){return _0x284d8f;};return a6_0x3937();}function parseGeneratedRegistryJson(_0x2ed676){const _0x52cddb=a6_0x522a84;try{return JSON[_0x52cddb(0xb7)](_0x2ed676);}catch{return JSON[_0x52cddb(0xb7)](generatedObjectLiteralToJson(_0x2ed676));}}function normalizeModelEntries(_0x2ee3b6,_0x203ffa){const _0x2d1eaa=a6_0x522a84,_0x50c014=Object[_0x2d1eaa(0x8b)](_0x2ee3b6),_0x504139=[];for(const _0x910e37 of _0x203ffa){if(!_0x910e37||typeof _0x910e37!==_0x2d1eaa(0xaf)||Array['isArray'](_0x910e37))return undefined;const _0x37b86f=_0x910e37;if(typeof _0x37b86f[_0x2d1eaa(0xa8)]!==_0x2d1eaa(0xc8)||typeof _0x37b86f['tableName']!==_0x2d1eaa(0xc8)||typeof _0x37b86f[_0x2d1eaa(0xcb)]!==_0x2d1eaa(0xc8))return undefined;let _0x1c6c35;if(typeof _0x37b86f['datasetCode']===_0x2d1eaa(0xc8)&&_0x37b86f['datasetCodes']===undefined)_0x1c6c35=Object[_0x2d1eaa(0x92)](_0x50c014[_0x2d1eaa(0xd3)](_0x309fe5=>[_0x309fe5,_0x37b86f[_0x2d1eaa(0xad)]]));else{if(_0x37b86f[_0x2d1eaa(0xad)]===undefined&&_0x37b86f['datasetCodes']&&typeof _0x37b86f[_0x2d1eaa(0xb6)]===_0x2d1eaa(0xaf)&&!Array[_0x2d1eaa(0xca)](_0x37b86f[_0x2d1eaa(0xb6)])&&Object[_0x2d1eaa(0xc1)](_0x37b86f[_0x2d1eaa(0xb6)])[_0x2d1eaa(0xbc)](_0x985ca8=>typeof _0x985ca8==='string'))_0x1c6c35={..._0x37b86f[_0x2d1eaa(0xb6)]};else return undefined;}_0x504139[_0x2d1eaa(0xcc)]({'alias':_0x37b86f[_0x2d1eaa(0xa8)],'tableName':_0x37b86f['tableName'],'name':_0x37b86f[_0x2d1eaa(0xcb)],'datasetCodes':_0x1c6c35});}return _0x504139;}export function parseModelRegistry(_0x39e6be){const _0x42e6a5=a6_0x522a84,_0x2d8d71=extractRegistryJson(_0x39e6be);if(!_0x2d8d71)return undefined;try{const _0x56e29b=parseGeneratedRegistryJson(_0x2d8d71);if(typeof _0x56e29b[_0x42e6a5(0xbb)]!==_0x42e6a5(0xc8)||!_0x56e29b[_0x42e6a5(0xbe)]||typeof _0x56e29b['profiles']!=='object')return undefined;if(_0x56e29b[_0x42e6a5(0xa2)]===_0x42e6a5(0xaa))return migrateLegacyRegistry(_0x56e29b);if(!(_0x56e29b[_0x42e6a5(0xa2)]===LEGACY_MODEL_REGISTRY_V2_PROTOCOL||_0x56e29b[_0x42e6a5(0xa2)]===undefined&&_0x39e6be[_0x42e6a5(0xb1)](MODEL_REGISTRY_VERSION_MARKER))||!Array[_0x42e6a5(0xca)](_0x56e29b[_0x42e6a5(0xb2)]))return undefined;const _0x57fd14=_0x56e29b[_0x42e6a5(0xbe)],_0x41328c=normalizeModelEntries(_0x57fd14,_0x56e29b[_0x42e6a5(0xb2)]);if(!_0x41328c)return undefined;return{'defaultProfile':_0x56e29b[_0x42e6a5(0xbb)],'profiles':_0x57fd14,'models':_0x41328c};}catch{return undefined;}}export function readModelRegistry(_0x459613){const _0x413ecc=a6_0x522a84;if(!existsSync(_0x459613))return undefined;try{return parseModelRegistry(readFileSync(_0x459613,_0x413ecc(0xd4)));}catch{return undefined;}}function registrySource(_0x1cf33d){const _0x5a3288=a6_0x522a84,_0x31283c=Object[_0x5a3288(0x8b)](_0x1cf33d[_0x5a3288(0xbe)]),_0x43e49f=_0x1cf33d['models'][_0x5a3288(0xd3)](_0x44e0af=>{const _0x4a6a42=_0x5a3288,_0x5e229f=_0x31283c['map'](_0xc51127=>_0x44e0af[_0x4a6a42(0xb6)][_0xc51127]),_0x247922=_0x5e229f[0x0],_0x53220b=_0x247922!==undefined&&_0x5e229f[_0x4a6a42(0xbc)](_0x244184=>_0x244184===_0x247922),_0x4f82a1={'alias':_0x44e0af[_0x4a6a42(0xa8)],'tableName':_0x44e0af['tableName'],'name':_0x44e0af[_0x4a6a42(0xcb)]};return _0x53220b?{..._0x4f82a1,'datasetCode':_0x247922}:{..._0x4f82a1,'datasetCodes':_0x44e0af['datasetCodes']};}),_0x319303=JSON[_0x5a3288(0xce)]({'defaultProfile':_0x1cf33d[_0x5a3288(0xbb)],'profiles':_0x1cf33d[_0x5a3288(0xbe)],'models':_0x43e49f},null,0x2)[_0x5a3288(0xc4)]('\x0a')[_0x5a3288(0xd3)](_0x50acd3=>'\x20\x20'+_0x50acd3)[_0x5a3288(0xc9)]('\x0a');return _0x5a3288(0xbf)+MODEL_REGISTRY_VERSION_MARKER+'\x0aexport\x20const\x20LOVRABET_MODEL_REGISTRY\x20=\x0a\x20\x20'+REGISTRY_START+'\x0a'+_0x319303+_0x5a3288(0x98)+REGISTRY_END+'\x0a';}function mergeProfileModels(_0x363e5c,_0x45fb03,_0xb8d10c){const _0x52dd18=a6_0x522a84,_0x42ac94=_0xb8d10c[_0x52dd18(0xd3)](_0x2a8377=>({..._0x2a8377,'alias':_0x2a8377[_0x52dd18(0xa8)]||_0x2a8377[_0x52dd18(0xa6)]})),_0x3b0c1a=new Map(),_0x2d2a67=new Map();for(const _0x4e750e of _0x42ac94){const _0xc370f2=_0x3b0c1a['get'](_0x4e750e[_0x52dd18(0xa8)]);if(_0xc370f2&&_0xc370f2!==_0x4e750e[_0x52dd18(0xa6)])throw new Error(_0x52dd18(0xa1)+_0x4e750e[_0x52dd18(0xa8)]+_0x52dd18(0xae)+_0xc370f2+_0x52dd18(0xa9)+_0x4e750e[_0x52dd18(0xa6)]+_0x52dd18(0xc7)+_0x45fb03+'\x22.');const _0x33836f=_0x2d2a67[_0x52dd18(0x9e)](_0x4e750e[_0x52dd18(0xa6)]);if(_0x33836f&&_0x33836f!==_0x4e750e[_0x52dd18(0xa8)])throw new Error(_0x52dd18(0x90)+_0x4e750e[_0x52dd18(0xa6)]+_0x52dd18(0xa0)+_0x33836f+_0x52dd18(0xa9)+_0x4e750e[_0x52dd18(0xa8)]+'\x22\x20in\x20profile\x20\x22'+_0x45fb03+'\x22.');_0x3b0c1a['set'](_0x4e750e[_0x52dd18(0xa8)],_0x4e750e[_0x52dd18(0xa6)]),_0x2d2a67[_0x52dd18(0xc3)](_0x4e750e['tableName'],_0x4e750e[_0x52dd18(0xa8)]);const _0x2a898f=_0x363e5c['models'][_0x52dd18(0x95)](_0x586656=>_0x586656[_0x52dd18(0xa8)]===_0x4e750e[_0x52dd18(0xa8)]);if(_0x2a898f&&_0x2a898f[_0x52dd18(0xa6)]!==_0x4e750e[_0x52dd18(0xa6)])throw new Error('Model\x20alias\x20\x22'+_0x4e750e[_0x52dd18(0xa8)]+_0x52dd18(0xa5)+_0x2a898f['tableName']+_0x52dd18(0xbd)+_0x4e750e['tableName']+_0x52dd18(0xc7)+_0x45fb03+'\x22.');const _0x4d18cd=_0x363e5c[_0x52dd18(0xb2)]['find'](_0xb569da=>_0xb569da[_0x52dd18(0xa6)]===_0x4e750e[_0x52dd18(0xa6)]);if(_0x4d18cd&&_0x4d18cd[_0x52dd18(0xa8)]!==_0x4e750e[_0x52dd18(0xa8)])throw new Error(_0x52dd18(0x90)+_0x4e750e['tableName']+_0x52dd18(0xc6)+_0x4d18cd[_0x52dd18(0xa8)]+_0x52dd18(0xbd)+_0x4e750e[_0x52dd18(0xa8)]+'\x22\x20in\x20profile\x20\x22'+_0x45fb03+'\x22.');}for(const _0x33fa34 of _0x363e5c[_0x52dd18(0xb2)]){delete _0x33fa34['datasetCodes'][_0x45fb03];}for(const _0x440ee1 of _0x42ac94){let _0x257402=_0x363e5c[_0x52dd18(0xb2)][_0x52dd18(0x95)](_0x5b4a22=>_0x5b4a22[_0x52dd18(0xa8)]===_0x440ee1[_0x52dd18(0xa8)]);!_0x257402&&(_0x257402={'alias':_0x440ee1[_0x52dd18(0xa8)],'tableName':_0x440ee1[_0x52dd18(0xa6)],'name':_0x440ee1[_0x52dd18(0xcb)],'datasetCodes':{}},_0x363e5c[_0x52dd18(0xb2)][_0x52dd18(0xcc)](_0x257402)),(_0x45fb03===_0x363e5c[_0x52dd18(0xbb)]||!_0x257402[_0x52dd18(0xb6)][_0x363e5c['defaultProfile']])&&(_0x257402[_0x52dd18(0xa8)]=_0x440ee1[_0x52dd18(0xa8)],_0x257402[_0x52dd18(0xa6)]=_0x440ee1[_0x52dd18(0xa6)],_0x257402['name']=_0x440ee1[_0x52dd18(0xcb)]),_0x257402['datasetCodes'][_0x45fb03]=_0x440ee1[_0x52dd18(0xad)];}_0x363e5c[_0x52dd18(0xb2)]=_0x363e5c['models'][_0x52dd18(0x8f)](_0x38583f=>Object['keys'](_0x38583f[_0x52dd18(0xb6)])[_0x52dd18(0xb8)]>0x0);}function removeUnboundProfiles(_0x3dde7e){const _0x1a20d5=a6_0x522a84,_0x10b109=Object['entries'](_0x3dde7e['profiles'])[_0x1a20d5(0x8f)](([,_0x3b1fb0])=>_0x3b1fb0[_0x1a20d5(0xab)]===_0x1a20d5(0x8c))['map'](([_0x41f11f])=>_0x41f11f);if(_0x10b109['length']===0x0)return;for(const _0x28f1e9 of _0x10b109){delete _0x3dde7e['profiles'][_0x28f1e9];for(const _0x341a66 of _0x3dde7e[_0x1a20d5(0xb2)]){delete _0x341a66[_0x1a20d5(0xb6)][_0x28f1e9];}}_0x3dde7e[_0x1a20d5(0xb2)]=_0x3dde7e[_0x1a20d5(0xb2)][_0x1a20d5(0x8f)](_0x27900c=>Object[_0x1a20d5(0x8b)](_0x27900c['datasetCodes'])['length']>0x0);}export function getProfileModels(_0x10eae2,_0x2c404e){const _0x4dd874=a6_0x522a84;return _0x10eae2['models'][_0x4dd874(0xd2)](_0x4c0e8c=>{const _0x2d029e=_0x4dd874,_0xdde35b=_0x4c0e8c['datasetCodes'][_0x2c404e];return _0xdde35b?[{'datasetCode':_0xdde35b,'tableName':_0x4c0e8c[_0x2d029e(0xa6)],'name':_0x4c0e8c[_0x2d029e(0xcb)],'alias':_0x4c0e8c['alias']}]:[];});}export function updateModelRegistry(_0x257859){const _0x2029d4=a6_0x522a84,_0x37eb13=a6_0xab590b[_0x2029d4(0xc9)](_0x257859[_0x2029d4(0xcd)],MODEL_REGISTRY_FILE_NAME),_0x1fa7c3=existsSync(_0x37eb13),_0x166d25=readModelRegistry(_0x37eb13);if(_0x1fa7c3&&!_0x166d25)throw new Error(MODEL_REGISTRY_FILE_NAME+'\x20is\x20not\x20a\x20valid\x20Rabetbase\x20generated\x20file.\x20Move\x20or\x20repair\x20it\x20before\x20pulling\x20models\x20again.');const _0x21e5ec=_0x166d25??emptyRegistry(_0x257859[_0x2029d4(0xbb)]);if(_0x257859['appCode']!==_0x2029d4(0x8c))removeUnboundProfiles(_0x21e5ec);const _0x4f1d92=_0x166d25?getProfileModels(_0x166d25,_0x257859[_0x2029d4(0x8d)])['length']:0x0;if(_0x4f1d92>0x0&&_0x257859[_0x2029d4(0xb2)]['length']===0x0&&!_0x257859[_0x2029d4(0x9a)])throw new Error(_0x2029d4(0xcf)+_0x4f1d92+'\x20model(s)\x20in\x20profile\x20\x22'+_0x257859[_0x2029d4(0x8d)]+_0x2029d4(0x8e)+'Verify\x20the\x20selected\x20app\x20and\x20login,\x20or\x20rerun\x20with\x20--force\x20--yes\x20if\x20the\x20profile\x20is\x20intentionally\x20empty.');_0x21e5ec[_0x2029d4(0xbb)]=_0x257859['defaultProfile'],_0x21e5ec[_0x2029d4(0xbe)][_0x257859[_0x2029d4(0x8d)]]={'appCode':_0x257859[_0x2029d4(0xab)],'runtimeDomain':_0x257859['runtimeDomain']},mergeProfileModels(_0x21e5ec,_0x257859[_0x2029d4(0x8d)],_0x257859[_0x2029d4(0xb2)]),mkdirSync(_0x257859['outputDir'],{'recursive':!![]});const _0x3c2fac=_0x37eb13+'.'+process[_0x2029d4(0x9f)]+'.'+Date[_0x2029d4(0xb4)]()+_0x2029d4(0x91);try{writeFileSync(_0x3c2fac,registrySource(_0x21e5ec),{'encoding':_0x2029d4(0xd4),'mode':0x1a4}),renameSync(_0x3c2fac,_0x37eb13);}catch(_0x2a533c){try{unlinkSync(_0x3c2fac);}catch{}throw _0x2a533c;}return{'path':_0x37eb13,'registry':_0x21e5ec,'existed':_0x1fa7c3};}
1
+ const a6_0x1c9924=a6_0x204c;(function(_0x340823,_0x5e77fb){const _0x1e3851=a6_0x204c,_0x3e72b7=_0x340823();while(!![]){try{const _0x54259c=-parseInt(_0x1e3851(0x12f))/0x1*(-parseInt(_0x1e3851(0x112))/0x2)+-parseInt(_0x1e3851(0x11a))/0x3+parseInt(_0x1e3851(0x10f))/0x4*(parseInt(_0x1e3851(0x108))/0x5)+parseInt(_0x1e3851(0x117))/0x6*(parseInt(_0x1e3851(0x109))/0x7)+-parseInt(_0x1e3851(0x134))/0x8*(parseInt(_0x1e3851(0x118))/0x9)+-parseInt(_0x1e3851(0x12c))/0xa+parseInt(_0x1e3851(0x10e))/0xb;if(_0x54259c===_0x5e77fb)break;else _0x3e72b7['push'](_0x3e72b7['shift']());}catch(_0x6c1c82){_0x3e72b7['push'](_0x3e72b7['shift']());}}}(a6_0x3b77,0x5de15));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import a6_0x444cb9 from'node:path';export const MODEL_REGISTRY_FILE_NAME=a6_0x1c9924(0x114);function a6_0x204c(_0x36ba92,_0x2a6c3c){_0x36ba92=_0x36ba92-0x101;const _0x3b77aa=a6_0x3b77();let _0x204c54=_0x3b77aa[_0x36ba92];return _0x204c54;}function a6_0x3b77(){const _0x114068=['models.generated.ts','Verify\x20the\x20selected\x20app\x20and\x20login,\x20or\x20rerun\x20with\x20--force\x20--yes\x20if\x20the\x20profile\x20is\x20intentionally\x20empty.','isArray','20070hOWmQr','156042aIrRaI','\x20as\x20const\x20satisfies\x20LovrabetModelRegistry;\x0a','1247304runEhH','datasetCodes','profileName','\x22\x20and\x20\x22','profiles','\x20model(s)\x20in\x20profile\x20\x22','Refusing\x20to\x20replace\x20','.tmp','string','Model\x20alias\x20\x22','name','map','length','slice','\x22\x20maps\x20to\x20both\x20aliases\x20\x22','key','set','object','4556080SXQjDh','\x0aexport\x20const\x20LOVRABET_MODEL_REGISTRY\x20=\x0a\x20\x20','filter','40446MbFBZC','trim','datasetCode','appCode','value','344dDraVY','indexOf','Table\x20\x22','push','entries','runtimeDomain','get','find','protocol','replace','join','\x22\x20in\x20profile\x20\x22','alias','tableName','keys','/*\x20rabetbase-model-registry:v2\x20*/','test','now','models','\x22\x20maps\x20to\x20alias\x20\x22','3446110OvEoUf','1358gwTniX','parse','stringify','\x22\x20in\x20the\x20registry\x20but\x20\x22','split','622611rNcAzt','4jFDBQW','every','\x22\x20with\x20an\x20empty\x20result.\x20','30SaUiam','defaultProfile'];a6_0x3b77=function(){return _0x114068;};return a6_0x3b77();}export const MODEL_RUNTIME_FILE_NAME='model-runtime.ts';export const MODEL_REGISTRY_VERSION_MARKER=a6_0x1c9924(0x103);const LEGACY_MODEL_REGISTRY_V2_PROTOCOL='lovrabet-model-registry/v2',REGISTRY_START='/*\x20rabetbase-model-registry:start\x20*/',REGISTRY_END='/*\x20rabetbase-model-registry:end\x20*/';function emptyRegistry(_0x1284f3){return{'defaultProfile':_0x1284f3,'profiles':{},'models':[]};}function extractRegistryJson(_0x1bfbab){const _0x36fb7e=a6_0x1c9924,_0x5325e1=_0x1bfbab['indexOf'](REGISTRY_START),_0x5aaa7b=_0x1bfbab[_0x36fb7e(0x135)](REGISTRY_END);if(_0x5325e1<0x0||_0x5aaa7b<=_0x5325e1)return undefined;return _0x1bfbab[_0x36fb7e(0x127)](_0x5325e1+REGISTRY_START[_0x36fb7e(0x126)],_0x5aaa7b)[_0x36fb7e(0x130)]()[_0x36fb7e(0x13d)](/\s+as const satisfies LovrabetModelRegistry;?$/,'')[_0x36fb7e(0x13d)](/;$/,'');}function migrateLegacyRegistry(_0x3713e1){const _0x573332=a6_0x1c9924,_0x3f349c=emptyRegistry(_0x3713e1[_0x573332(0x113)]);for(const [_0x1efab1,_0x311b82]of Object[_0x573332(0x138)](_0x3713e1[_0x573332(0x11e)])){_0x3f349c[_0x573332(0x11e)][_0x1efab1]={'appCode':_0x311b82[_0x573332(0x132)],'runtimeDomain':_0x311b82[_0x573332(0x139)]},mergeProfileModels(_0x3f349c,_0x1efab1,_0x311b82['models']);}return _0x3f349c;}function generatedObjectLiteralToJson(_0x1f528f){const _0x5c6833=a6_0x1c9924;let _0x3d394d='',_0x9b1429,_0x475b43=![],_0x5a6a5e;for(let _0xa387b5=0x0;_0xa387b5<_0x1f528f[_0x5c6833(0x126)];_0xa387b5++){const _0x4728a0=_0x1f528f[_0xa387b5];if(_0x9b1429){_0x3d394d+=_0x4728a0;if(_0x475b43)_0x475b43=![];else{if(_0x4728a0==='\x5c')_0x475b43=!![];else{if(_0x4728a0===_0x9b1429)_0x9b1429=undefined;}}continue;}if(_0x4728a0==='\x22'){_0x9b1429=_0x4728a0,_0x3d394d+=_0x4728a0,_0x5a6a5e=_0x5c6833(0x133);continue;}if(_0x4728a0===','){let _0x514f38=_0xa387b5+0x1;while(/\s/['test'](_0x1f528f[_0x514f38]??''))_0x514f38++;if(_0x1f528f[_0x514f38]==='}'||_0x1f528f[_0x514f38]===']')continue;_0x3d394d+=_0x4728a0,_0x5a6a5e=',';continue;}if(_0x4728a0==='{'||_0x4728a0==='['){_0x3d394d+=_0x4728a0,_0x5a6a5e=_0x4728a0;continue;}if(_0x4728a0==='}'||_0x4728a0===']'){_0x3d394d+=_0x4728a0,_0x5a6a5e=_0x4728a0;continue;}if((_0x5a6a5e==='{'||_0x5a6a5e===',')&&/[A-Za-z_$]/[_0x5c6833(0x104)](_0x4728a0)){let _0xcb3f58=_0xa387b5+0x1;while(/[A-Za-z0-9_$]/[_0x5c6833(0x104)](_0x1f528f[_0xcb3f58]??''))_0xcb3f58++;let _0x3b3fc8=_0xcb3f58;while(/\s/[_0x5c6833(0x104)](_0x1f528f[_0x3b3fc8]??''))_0x3b3fc8++;if(_0x1f528f[_0x3b3fc8]===':'){_0x3d394d+=JSON[_0x5c6833(0x10b)](_0x1f528f[_0x5c6833(0x127)](_0xa387b5,_0xcb3f58)),_0xa387b5=_0xcb3f58-0x1,_0x5a6a5e=_0x5c6833(0x129);continue;}}_0x3d394d+=_0x4728a0;if(!/\s/['test'](_0x4728a0)&&_0x4728a0!==':')_0x5a6a5e=_0x5c6833(0x133);}return _0x3d394d;}function parseGeneratedRegistryJson(_0x2b994f){const _0x3c42d4=a6_0x1c9924;try{return JSON[_0x3c42d4(0x10a)](_0x2b994f);}catch{return JSON[_0x3c42d4(0x10a)](generatedObjectLiteralToJson(_0x2b994f));}}function normalizeModelEntries(_0x5e3fd2,_0x27d77f){const _0x3ab6bb=a6_0x1c9924,_0x516bcb=Object[_0x3ab6bb(0x102)](_0x5e3fd2),_0x541a71=[];for(const _0xd38fef of _0x27d77f){if(!_0xd38fef||typeof _0xd38fef!=='object'||Array[_0x3ab6bb(0x116)](_0xd38fef))return undefined;const _0x224983=_0xd38fef;if(typeof _0x224983[_0x3ab6bb(0x140)]!==_0x3ab6bb(0x122)||typeof _0x224983[_0x3ab6bb(0x101)]!==_0x3ab6bb(0x122)||typeof _0x224983[_0x3ab6bb(0x124)]!==_0x3ab6bb(0x122))return undefined;let _0x2d6016;if(typeof _0x224983[_0x3ab6bb(0x131)]===_0x3ab6bb(0x122)&&_0x224983['datasetCodes']===undefined)_0x2d6016=Object['fromEntries'](_0x516bcb[_0x3ab6bb(0x125)](_0x5a97b7=>[_0x5a97b7,_0x224983['datasetCode']]));else{if(_0x224983[_0x3ab6bb(0x131)]===undefined&&_0x224983[_0x3ab6bb(0x11b)]&&typeof _0x224983[_0x3ab6bb(0x11b)]==='object'&&!Array['isArray'](_0x224983[_0x3ab6bb(0x11b)])&&Object['values'](_0x224983['datasetCodes'])['every'](_0x48a360=>typeof _0x48a360===_0x3ab6bb(0x122)))_0x2d6016={..._0x224983[_0x3ab6bb(0x11b)]};else return undefined;}_0x541a71[_0x3ab6bb(0x137)]({'alias':_0x224983[_0x3ab6bb(0x140)],'tableName':_0x224983[_0x3ab6bb(0x101)],'name':_0x224983[_0x3ab6bb(0x124)],'datasetCodes':_0x2d6016});}return _0x541a71;}export function parseModelRegistry(_0x4314d9){const _0x43f6d4=a6_0x1c9924,_0x36f8f7=extractRegistryJson(_0x4314d9);if(!_0x36f8f7)return undefined;try{const _0x10afd1=parseGeneratedRegistryJson(_0x36f8f7);if(typeof _0x10afd1[_0x43f6d4(0x113)]!==_0x43f6d4(0x122)||!_0x10afd1[_0x43f6d4(0x11e)]||typeof _0x10afd1[_0x43f6d4(0x11e)]!==_0x43f6d4(0x12b))return undefined;if(_0x10afd1[_0x43f6d4(0x13c)]==='lovrabet-model-registry/v1')return migrateLegacyRegistry(_0x10afd1);if(!(_0x10afd1[_0x43f6d4(0x13c)]===LEGACY_MODEL_REGISTRY_V2_PROTOCOL||_0x10afd1['protocol']===undefined&&_0x4314d9['includes'](MODEL_REGISTRY_VERSION_MARKER))||!Array[_0x43f6d4(0x116)](_0x10afd1[_0x43f6d4(0x106)]))return undefined;const _0x544e25=_0x10afd1[_0x43f6d4(0x11e)],_0x5dbfc3=normalizeModelEntries(_0x544e25,_0x10afd1[_0x43f6d4(0x106)]);if(!_0x5dbfc3)return undefined;return{'defaultProfile':_0x10afd1[_0x43f6d4(0x113)],'profiles':_0x544e25,'models':_0x5dbfc3};}catch{return undefined;}}export function readModelRegistry(_0x21e460){if(!existsSync(_0x21e460))return undefined;try{return parseModelRegistry(readFileSync(_0x21e460,'utf8'));}catch{return undefined;}}function registrySource(_0x598f6e){const _0x4310b7=a6_0x1c9924,_0x445376=Object[_0x4310b7(0x102)](_0x598f6e['profiles']),_0x3ab4f3=_0x598f6e[_0x4310b7(0x106)][_0x4310b7(0x125)](_0x203852=>{const _0x51149d=_0x4310b7,_0x2b3207=_0x445376['map'](_0x30c800=>_0x203852['datasetCodes'][_0x30c800]),_0x16b65f=_0x2b3207[0x0],_0x3e595f=_0x16b65f!==undefined&&_0x2b3207[_0x51149d(0x110)](_0x10bed8=>_0x10bed8===_0x16b65f),_0x3bf6c9={'alias':_0x203852[_0x51149d(0x140)],'tableName':_0x203852[_0x51149d(0x101)],'name':_0x203852['name']};return _0x3e595f?{..._0x3bf6c9,'datasetCode':_0x16b65f}:{..._0x3bf6c9,'datasetCodes':_0x203852[_0x51149d(0x11b)]};}),_0x29a101=JSON[_0x4310b7(0x10b)]({'defaultProfile':_0x598f6e['defaultProfile'],'profiles':_0x598f6e['profiles'],'models':_0x3ab4f3},null,0x2)[_0x4310b7(0x10d)]('\x0a')['map'](_0x3f1919=>'\x20\x20'+_0x3f1919)[_0x4310b7(0x13e)]('\x0a');return'/**\x0a\x20*\x20Dataset\x20model\x20facts\x20generated\x20by\x20Rabetbase\x20CLI.\x0a\x20*\x0a\x20*\x20This\x20file\x20is\x20safe\x20to\x20commit.\x20Do\x20not\x20edit\x20it\x20manually\x20and\x20never\x20add\x20credentials.\x0a\x20*/\x0a\x0aexport\x20interface\x20LovrabetModelProfile\x20{\x0a\x20\x20appCode:\x20string;\x0a\x20\x20runtimeDomain:\x20string;\x0a}\x0a\x0aexport\x20interface\x20LovrabetModelEntryMetadata\x20{\x0a\x20\x20alias:\x20string;\x0a\x20\x20tableName:\x20string;\x0a\x20\x20name:\x20string;\x0a}\x0a\x0aexport\x20type\x20LovrabetModelEntry\x20=\x20LovrabetModelEntryMetadata\x20&\x20(\x0a\x20\x20|\x20{\x20datasetCode:\x20string;\x20datasetCodes?:\x20never\x20}\x0a\x20\x20|\x20{\x20datasetCode?:\x20never;\x20datasetCodes:\x20Record<string,\x20string>\x20}\x0a);\x0a\x0aexport\x20interface\x20LovrabetModelRegistry\x20{\x0a\x20\x20defaultProfile:\x20string;\x0a\x20\x20profiles:\x20Record<string,\x20LovrabetModelProfile>;\x0a\x20\x20models:\x20LovrabetModelEntry[];\x0a}\x0a\x0a'+MODEL_REGISTRY_VERSION_MARKER+_0x4310b7(0x12d)+REGISTRY_START+'\x0a'+_0x29a101+_0x4310b7(0x119)+REGISTRY_END+'\x0a';}function mergeProfileModels(_0x862fe5,_0x13faa2,_0x263c32){const _0x47d098=a6_0x1c9924,_0x25e117=_0x263c32[_0x47d098(0x125)](_0x57cb67=>({..._0x57cb67,'alias':_0x57cb67[_0x47d098(0x140)]||_0x57cb67[_0x47d098(0x101)]})),_0xc4b4c6=new Map(),_0x516230=new Map();for(const _0x3ff684 of _0x25e117){const _0x12b232=_0xc4b4c6[_0x47d098(0x13a)](_0x3ff684[_0x47d098(0x140)]);if(_0x12b232&&_0x12b232!==_0x3ff684[_0x47d098(0x101)])throw new Error(_0x47d098(0x123)+_0x3ff684[_0x47d098(0x140)]+'\x22\x20maps\x20to\x20both\x20\x22'+_0x12b232+_0x47d098(0x11d)+_0x3ff684[_0x47d098(0x101)]+'\x22\x20in\x20profile\x20\x22'+_0x13faa2+'\x22.');const _0x12d4d2=_0x516230[_0x47d098(0x13a)](_0x3ff684['tableName']);if(_0x12d4d2&&_0x12d4d2!==_0x3ff684['alias'])throw new Error(_0x47d098(0x136)+_0x3ff684['tableName']+_0x47d098(0x128)+_0x12d4d2+'\x22\x20and\x20\x22'+_0x3ff684[_0x47d098(0x140)]+_0x47d098(0x13f)+_0x13faa2+'\x22.');_0xc4b4c6[_0x47d098(0x12a)](_0x3ff684[_0x47d098(0x140)],_0x3ff684[_0x47d098(0x101)]),_0x516230['set'](_0x3ff684[_0x47d098(0x101)],_0x3ff684[_0x47d098(0x140)]);const _0x49f22f=_0x862fe5[_0x47d098(0x106)][_0x47d098(0x13b)](_0x10bbf1=>_0x10bbf1[_0x47d098(0x140)]===_0x3ff684['alias']);if(_0x49f22f&&_0x49f22f[_0x47d098(0x101)]!==_0x3ff684[_0x47d098(0x101)])throw new Error('Model\x20alias\x20\x22'+_0x3ff684[_0x47d098(0x140)]+'\x22\x20maps\x20to\x20table\x20\x22'+_0x49f22f[_0x47d098(0x101)]+_0x47d098(0x10c)+_0x3ff684['tableName']+_0x47d098(0x13f)+_0x13faa2+'\x22.');const _0x66ae1f=_0x862fe5[_0x47d098(0x106)][_0x47d098(0x13b)](_0x354779=>_0x354779[_0x47d098(0x101)]===_0x3ff684['tableName']);if(_0x66ae1f&&_0x66ae1f[_0x47d098(0x140)]!==_0x3ff684[_0x47d098(0x140)])throw new Error('Table\x20\x22'+_0x3ff684[_0x47d098(0x101)]+_0x47d098(0x107)+_0x66ae1f[_0x47d098(0x140)]+'\x22\x20in\x20the\x20registry\x20but\x20\x22'+_0x3ff684[_0x47d098(0x140)]+_0x47d098(0x13f)+_0x13faa2+'\x22.');}for(const _0x4c6ed8 of _0x862fe5[_0x47d098(0x106)]){delete _0x4c6ed8[_0x47d098(0x11b)][_0x13faa2];}for(const _0x201367 of _0x25e117){let _0x27df5e=_0x862fe5[_0x47d098(0x106)]['find'](_0x12749c=>_0x12749c[_0x47d098(0x140)]===_0x201367['alias']);!_0x27df5e&&(_0x27df5e={'alias':_0x201367['alias'],'tableName':_0x201367[_0x47d098(0x101)],'name':_0x201367[_0x47d098(0x124)],'datasetCodes':{}},_0x862fe5['models'][_0x47d098(0x137)](_0x27df5e)),(_0x13faa2===_0x862fe5[_0x47d098(0x113)]||!_0x27df5e[_0x47d098(0x11b)][_0x862fe5[_0x47d098(0x113)]])&&(_0x27df5e['alias']=_0x201367[_0x47d098(0x140)],_0x27df5e[_0x47d098(0x101)]=_0x201367[_0x47d098(0x101)],_0x27df5e['name']=_0x201367[_0x47d098(0x124)]),_0x27df5e[_0x47d098(0x11b)][_0x13faa2]=_0x201367[_0x47d098(0x131)];}_0x862fe5['models']=_0x862fe5[_0x47d098(0x106)][_0x47d098(0x12e)](_0x31ea20=>Object['keys'](_0x31ea20[_0x47d098(0x11b)])['length']>0x0);}function removeUnboundProfiles(_0x2e4c8a){const _0x1b8a7a=a6_0x1c9924,_0x5c2acf=Object['entries'](_0x2e4c8a[_0x1b8a7a(0x11e)])[_0x1b8a7a(0x12e)](([,_0x5e770e])=>_0x5e770e[_0x1b8a7a(0x132)]==='NOT-SET')[_0x1b8a7a(0x125)](([_0x408dfc])=>_0x408dfc);if(_0x5c2acf['length']===0x0)return;for(const _0xc3f4 of _0x5c2acf){delete _0x2e4c8a['profiles'][_0xc3f4];for(const _0x97df8a of _0x2e4c8a['models']){delete _0x97df8a[_0x1b8a7a(0x11b)][_0xc3f4];}}_0x2e4c8a[_0x1b8a7a(0x106)]=_0x2e4c8a[_0x1b8a7a(0x106)][_0x1b8a7a(0x12e)](_0x253af5=>Object[_0x1b8a7a(0x102)](_0x253af5[_0x1b8a7a(0x11b)])[_0x1b8a7a(0x126)]>0x0);}export function getProfileModels(_0x400c0f,_0x2ef35c){const _0x9d1d3f=a6_0x1c9924;return _0x400c0f[_0x9d1d3f(0x106)]['flatMap'](_0x24206a=>{const _0x109f96=_0x9d1d3f,_0x21935c=_0x24206a['datasetCodes'][_0x2ef35c];return _0x21935c?[{'datasetCode':_0x21935c,'tableName':_0x24206a[_0x109f96(0x101)],'name':_0x24206a[_0x109f96(0x124)],'alias':_0x24206a['alias']}]:[];});}export function updateModelRegistry(_0x23d2d1){const _0x18cb35=a6_0x1c9924,_0x334bed=a6_0x444cb9[_0x18cb35(0x13e)](_0x23d2d1['outputDir'],MODEL_REGISTRY_FILE_NAME),_0x206b4d=existsSync(_0x334bed),_0x3433e9=readModelRegistry(_0x334bed);if(_0x206b4d&&!_0x3433e9)throw new Error(MODEL_REGISTRY_FILE_NAME+'\x20is\x20not\x20a\x20valid\x20Rabetbase\x20generated\x20file.\x20Move\x20or\x20repair\x20it\x20before\x20pulling\x20models\x20again.');const _0x484d2b=_0x3433e9??emptyRegistry(_0x23d2d1[_0x18cb35(0x113)]);if(_0x23d2d1['appCode']!=='NOT-SET')removeUnboundProfiles(_0x484d2b);const _0x49ea56=_0x3433e9?getProfileModels(_0x3433e9,_0x23d2d1[_0x18cb35(0x11c)])[_0x18cb35(0x126)]:0x0;if(_0x49ea56>0x0&&_0x23d2d1['models'][_0x18cb35(0x126)]===0x0&&!_0x23d2d1['allowEmptyReplacement'])throw new Error(_0x18cb35(0x120)+_0x49ea56+_0x18cb35(0x11f)+_0x23d2d1['profileName']+_0x18cb35(0x111)+_0x18cb35(0x115));_0x484d2b['defaultProfile']=_0x23d2d1[_0x18cb35(0x113)],_0x484d2b[_0x18cb35(0x11e)][_0x23d2d1[_0x18cb35(0x11c)]]={'appCode':_0x23d2d1[_0x18cb35(0x132)],'runtimeDomain':_0x23d2d1['runtimeDomain']},mergeProfileModels(_0x484d2b,_0x23d2d1[_0x18cb35(0x11c)],_0x23d2d1[_0x18cb35(0x106)]),mkdirSync(_0x23d2d1['outputDir'],{'recursive':!![]});const _0x2b65a4=_0x334bed+'.'+process['pid']+'.'+Date[_0x18cb35(0x105)]()+_0x18cb35(0x121);try{writeFileSync(_0x2b65a4,registrySource(_0x484d2b),{'encoding':'utf8','mode':0x1a4}),renameSync(_0x2b65a4,_0x334bed);}catch(_0x2355e4){try{unlinkSync(_0x2b65a4);}catch{}throw _0x2355e4;}return{'path':_0x334bed,'registry':_0x484d2b,'existed':_0x206b4d};}
@@ -1 +1 @@
1
- (function(_0x550e08,_0x19bce0){const _0x5f38fc=a7_0x3a6d,_0x39ee60=_0x550e08();while(!![]){try{const _0x212e46=parseInt(_0x5f38fc(0x10e))/0x1+parseInt(_0x5f38fc(0x100))/0x2*(-parseInt(_0x5f38fc(0x102))/0x3)+-parseInt(_0x5f38fc(0x107))/0x4+parseInt(_0x5f38fc(0x10f))/0x5*(-parseInt(_0x5f38fc(0xfe))/0x6)+-parseInt(_0x5f38fc(0x104))/0x7*(-parseInt(_0x5f38fc(0x103))/0x8)+parseInt(_0x5f38fc(0x101))/0x9*(-parseInt(_0x5f38fc(0xf6))/0xa)+-parseInt(_0x5f38fc(0x108))/0xb*(-parseInt(_0x5f38fc(0xf9))/0xc);if(_0x212e46===_0x19bce0)break;else _0x39ee60['push'](_0x39ee60['shift']());}catch(_0x502b30){_0x39ee60['push'](_0x39ee60['shift']());}}}(a7_0x5ad7,0x6c633));import{readFileSync}from'node:fs';function a7_0x5ad7(){const _0x103f8f=['60HhkxFv','join','../../templates/generate-api','startsWith','profile-client.ts.tpl','6dRYcYY','{ProjectRoutingImport}','4690CwMfMm','5058SDYRon','426jTEYiD','4991032spUfXI','7DmaiyS','all','utf8','2560832hmBiKF','3059375PFhumN','format','replace','model-runtime.ts.tpl','dirname','resolve','265502fqGKhL','2912075sxmBwA','typescript','4990qRdqdJ','profile-api.ts.tpl','relative'];a7_0x5ad7=function(){return _0x103f8f;};return a7_0x5ad7();}import a7_0x35aeea from'node:path';import{fileURLToPath}from'node:url';import a7_0x563274 from'prettier';import{PROJECT_DOMAIN_ROUTING_FILE_NAME}from'../config/project-domain-routing.js';function a7_0x3a6d(_0x23fbfa,_0x3141ed){_0x23fbfa=_0x23fbfa-0xf6;const _0x5ad70b=a7_0x5ad7();let _0x3a6d46=_0x5ad70b[_0x23fbfa];return _0x3a6d46;}function relativeImport(_0x81d8df,_0x143c21){const _0x102bbc=a7_0x3a6d;let _0x4d2003=a7_0x35aeea[_0x102bbc(0xf8)](_0x81d8df,_0x143c21)[_0x102bbc(0x10a)](/\\/g,'/');if(!_0x4d2003[_0x102bbc(0xfc)]('.'))_0x4d2003='./'+_0x4d2003;return _0x4d2003;}export async function renderModelRegistryScaffold(_0x3a6550,_0xbd55d3=process['cwd']()){const _0x9b4ec3=a7_0x3a6d,_0x259d18=fileURLToPath(import.meta.url),_0x3cf995=a7_0x35aeea[_0x9b4ec3(0x10d)](a7_0x35aeea[_0x9b4ec3(0x10c)](_0x259d18),_0x9b4ec3(0xfb)),_0xdb6734=relativeImport(a7_0x35aeea[_0x9b4ec3(0x10d)](_0x3a6550),a7_0x35aeea[_0x9b4ec3(0x10d)](_0xbd55d3,PROJECT_DOMAIN_ROUTING_FILE_NAME)),_0x37374e=readFileSync(a7_0x35aeea[_0x9b4ec3(0xfa)](_0x3cf995,_0x9b4ec3(0xf7)),_0x9b4ec3(0x106))[_0x9b4ec3(0x10a)](_0x9b4ec3(0xff),_0xdb6734),[_0x3a866a,_0x464687,_0x47318e]=await Promise[_0x9b4ec3(0x105)]([a7_0x563274[_0x9b4ec3(0x109)](_0x37374e,{'parser':_0x9b4ec3(0x110)}),a7_0x563274[_0x9b4ec3(0x109)](readFileSync(a7_0x35aeea[_0x9b4ec3(0xfa)](_0x3cf995,_0x9b4ec3(0xfd)),_0x9b4ec3(0x106)),{'parser':_0x9b4ec3(0x110)}),a7_0x563274[_0x9b4ec3(0x109)](readFileSync(a7_0x35aeea[_0x9b4ec3(0xfa)](_0x3cf995,_0x9b4ec3(0x10b)),_0x9b4ec3(0x106)),{'parser':_0x9b4ec3(0x110)})]);return{'api':_0x3a866a,'client':_0x464687,'modelRuntime':_0x47318e};}
1
+ const a7_0x39269c=a7_0x6045;(function(_0x361a6a,_0x2f6111){const _0x41db79=a7_0x6045,_0x972259=_0x361a6a();while(!![]){try{const _0x20d751=parseInt(_0x41db79(0x155))/0x1*(-parseInt(_0x41db79(0x147))/0x2)+parseInt(_0x41db79(0x157))/0x3*(-parseInt(_0x41db79(0x158))/0x4)+parseInt(_0x41db79(0x14e))/0x5*(parseInt(_0x41db79(0x156))/0x6)+parseInt(_0x41db79(0x150))/0x7+parseInt(_0x41db79(0x14d))/0x8*(-parseInt(_0x41db79(0x15a))/0x9)+parseInt(_0x41db79(0x149))/0xa+-parseInt(_0x41db79(0x14f))/0xb;if(_0x20d751===_0x2f6111)break;else _0x972259['push'](_0x972259['shift']());}catch(_0x3aab65){_0x972259['push'](_0x972259['shift']());}}}(a7_0x2fd3,0x6d733));import{readFileSync}from'node:fs';function a7_0x2fd3(){const _0x59bc50=['startsWith','typescript','dirname','24gagqcy','5YOFHVu','2983915VphcIW','3305064oZwWqA','profile-api.ts.tpl','replace','resolve','{ProjectRoutingImport}','37wqEKmP','5115390xnlGOL','21594aplzuN','220ntbCls','utf8','1141416btBCbu','../../templates/generate-api','cwd','join','format','7022yneyJu','profile-client.ts.tpl','3011240BQszET'];a7_0x2fd3=function(){return _0x59bc50;};return a7_0x2fd3();}import a7_0x37fcd5 from'node:path';import{fileURLToPath}from'node:url';function a7_0x6045(_0x34d0a2,_0x45e7c9){_0x34d0a2=_0x34d0a2-0x143;const _0x2fd3f4=a7_0x2fd3();let _0x60458d=_0x2fd3f4[_0x34d0a2];return _0x60458d;}import a7_0x2912dc from'prettier';import{PROJECT_DOMAIN_ROUTING_FILE_NAME}from'../config/project-domain-routing.js';function relativeImport(_0x1d920a,_0x5818e3){const _0x179f79=a7_0x6045;let _0x5d6c7f=a7_0x37fcd5['relative'](_0x1d920a,_0x5818e3)[_0x179f79(0x152)](/\\/g,'/');if(!_0x5d6c7f[_0x179f79(0x14a)]('.'))_0x5d6c7f='./'+_0x5d6c7f;return _0x5d6c7f;}export async function renderModelRegistryScaffold(_0x26ef1e,_0x2501b4=process[a7_0x39269c(0x144)]()){const _0xeac782=a7_0x39269c,_0x33f088=fileURLToPath(import.meta.url),_0x7d2742=a7_0x37fcd5[_0xeac782(0x153)](a7_0x37fcd5[_0xeac782(0x14c)](_0x33f088),_0xeac782(0x143)),_0xdeac14=relativeImport(a7_0x37fcd5[_0xeac782(0x153)](_0x26ef1e),a7_0x37fcd5[_0xeac782(0x153)](_0x2501b4,PROJECT_DOMAIN_ROUTING_FILE_NAME)),_0x1db3dd=readFileSync(a7_0x37fcd5[_0xeac782(0x145)](_0x7d2742,_0xeac782(0x151)),_0xeac782(0x159))[_0xeac782(0x152)](_0xeac782(0x154),_0xdeac14),[_0xb20f7d,_0x2ab14e,_0x6f8455]=await Promise['all']([a7_0x2912dc[_0xeac782(0x146)](_0x1db3dd,{'parser':_0xeac782(0x14b)}),a7_0x2912dc['format'](readFileSync(a7_0x37fcd5['join'](_0x7d2742,_0xeac782(0x148)),_0xeac782(0x159)),{'parser':_0xeac782(0x14b)}),a7_0x2912dc[_0xeac782(0x146)](readFileSync(a7_0x37fcd5[_0xeac782(0x145)](_0x7d2742,'model-runtime.ts.tpl'),'utf8'),{'parser':'typescript'})]);return{'api':_0xb20f7d,'client':_0x2ab14e,'modelRuntime':_0x6f8455};}
@@ -1 +1 @@
1
- function a8_0x328b(){const _0x17c368=['AppCode\x20\x22','\x22\x20belongs\x20to\x20multiple\x20model\x20profiles:\x20','21fJpYWz','16698fviNCF','cwd','validation','entries','Run\x20`','string','9okYANU','-api.ts','360fWqXLP','length','find','appcode','join','profiles','3873660aEqpRl','apps','41110GxZHKl','object','593196SqqKMt','apiDir','\x22\x20is\x20missing\x20from\x20','198038tmILdH','defaultProfile','defaultApp','`\x20first.','appCode','filter','Model\x20profile\x20\x22','resolve','1047984PvvCPK','1060984TbhdHa','\x20api\x20pull\x20--app\x20','map'];a8_0x328b=function(){return _0x17c368;};return a8_0x328b();}(function(_0x7dc009,_0x4f9390){const _0x345910=a8_0x3772,_0x42df10=_0x7dc009();while(!![]){try{const _0x285d2f=-parseInt(_0x345910(0x12c))/0x1+parseInt(_0x345910(0x127))/0x2*(parseInt(_0x345910(0x13a))/0x3)+-parseInt(_0x345910(0x129))/0x4+parseInt(_0x345910(0x11f))/0x5*(parseInt(_0x345910(0x13b))/0x6)+-parseInt(_0x345910(0x134))/0x7+parseInt(_0x345910(0x135))/0x8*(-parseInt(_0x345910(0x141))/0x9)+parseInt(_0x345910(0x125))/0xa;if(_0x285d2f===_0x4f9390)break;else _0x42df10['push'](_0x42df10['shift']());}catch(_0x3d50c5){_0x42df10['push'](_0x42df10['shift']());}}}(a8_0x328b,0x1922b));import{existsSync}from'node:fs';import a8_0x15d6b7 from'node:path';import{readRawConfig}from'../context/config-loader.js';import{MODEL_REGISTRY_FILE_NAME,readModelRegistry}from'../api/model-registry-file.js';function a8_0x3772(_0x5f1a15,_0x1be8aa){_0x5f1a15=_0x5f1a15-0x11f;const _0x328bf9=a8_0x328b();let _0x377279=_0x328bf9[_0x5f1a15];return _0x377279;}import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveApiModelSource(_0x1624cb,_0x299f26,_0x6a0c42){const _0x4e3794=a8_0x3772,_0x16fee3=a8_0x15d6b7[_0x4e3794(0x133)](process[_0x4e3794(0x13c)](),_0x1624cb),_0x353473=a8_0x15d6b7['resolve'](_0x16fee3,'api.ts'),_0x5ba3c2=a8_0x15d6b7[_0x4e3794(0x133)](_0x16fee3,MODEL_REGISTRY_FILE_NAME),_0x1bdb36=readModelRegistry(_0x5ba3c2);if(_0x1bdb36){const _0x1b0c5b=_0x299f26?Object['entries'](_0x1bdb36[_0x4e3794(0x124)])[_0x4e3794(0x131)](([,_0x38299d])=>_0x38299d[_0x4e3794(0x130)]===_0x299f26):[];if(_0x6a0c42){if(_0x1bdb36[_0x4e3794(0x124)][_0x6a0c42])return{'filePath':_0x5ba3c2,'profileName':_0x6a0c42};if(_0x1b0c5b[_0x4e3794(0x120)]>0x0)throw CliErrors[_0x4e3794(0x13d)](_0x4e3794(0x132)+_0x6a0c42+_0x4e3794(0x12b)+MODEL_REGISTRY_FILE_NAME+'.',_0x4e3794(0x13f)+CLI_BIN_NAME+_0x4e3794(0x136)+_0x6a0c42+_0x4e3794(0x12f));}else{if(_0x1b0c5b[_0x4e3794(0x120)]===0x1)return{'filePath':_0x5ba3c2,'profileName':_0x1b0c5b[0x0][0x0]};if(_0x1b0c5b[_0x4e3794(0x120)]>0x1)throw new Error(_0x4e3794(0x138)+_0x299f26+_0x4e3794(0x139)+_0x1b0c5b[_0x4e3794(0x137)](([_0x5d8ecd])=>_0x5d8ecd)[_0x4e3794(0x123)](',\x20')+'.\x20'+'Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.');if(_0x1bdb36[_0x4e3794(0x124)][_0x1bdb36[_0x4e3794(0x12d)]]&&!_0x299f26)return{'filePath':_0x5ba3c2,'profileName':_0x1bdb36[_0x4e3794(0x12d)]};}}if(!_0x299f26&&!_0x6a0c42)return{'filePath':_0x353473};const _0x2fc9a2=readRawConfig(),_0x5aba17=_0x2fc9a2[_0x4e3794(0x126)]&&typeof _0x2fc9a2[_0x4e3794(0x126)]===_0x4e3794(0x128)?_0x2fc9a2[_0x4e3794(0x126)]:{},_0x57a788=_0x6a0c42&&_0x5aba17[_0x6a0c42]?[_0x6a0c42,_0x5aba17[_0x6a0c42]]:Object[_0x4e3794(0x13e)](_0x5aba17)[_0x4e3794(0x121)](([,_0x478103])=>_0x478103?.[_0x4e3794(0x122)]===_0x299f26);if(!_0x57a788)return{'filePath':_0x353473};const [_0x334891,_0x371625]=_0x57a788,_0x4a2773=typeof _0x2fc9a2[_0x4e3794(0x12e)]===_0x4e3794(0x140)?_0x2fc9a2[_0x4e3794(0x12e)]:undefined;if(_0x371625?.[_0x4e3794(0x12a)])return{'filePath':_0x353473};if(_0x4a2773&&_0x334891!==_0x4a2773){const _0x4d0208=a8_0x15d6b7[_0x4e3794(0x133)](_0x16fee3,_0x334891+_0x4e3794(0x142));if(existsSync(_0x4d0208))return{'filePath':_0x4d0208};}return{'filePath':_0x353473};}
1
+ (function(_0x278f87,_0x13cebd){const _0x2f3608=a8_0x22f1,_0xe94fc6=_0x278f87();while(!![]){try{const _0x5e51c2=-parseInt(_0x2f3608(0x19a))/0x1+-parseInt(_0x2f3608(0x195))/0x2+-parseInt(_0x2f3608(0x19b))/0x3+parseInt(_0x2f3608(0x1a5))/0x4+parseInt(_0x2f3608(0x188))/0x5+parseInt(_0x2f3608(0x1a6))/0x6+parseInt(_0x2f3608(0x19d))/0x7*(-parseInt(_0x2f3608(0x18f))/0x8);if(_0x5e51c2===_0x13cebd)break;else _0xe94fc6['push'](_0xe94fc6['shift']());}catch(_0x3c29a5){_0xe94fc6['push'](_0xe94fc6['shift']());}}}(a8_0x384a,0x25de6));import{existsSync}from'node:fs';import a8_0x5f46f9 from'node:path';import{readRawConfig}from'../context/config-loader.js';function a8_0x22f1(_0x3a6d3e,_0x342092){_0x3a6d3e=_0x3a6d3e-0x188;const _0x384a48=a8_0x384a();let _0x22f11f=_0x384a48[_0x3a6d3e];return _0x22f11f;}import{MODEL_REGISTRY_FILE_NAME,readModelRegistry}from'../api/model-registry-file.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveApiModelSource(_0x32e878,_0x2f6960,_0x369843){const _0x102a45=a8_0x22f1,_0x2eb341=a8_0x5f46f9[_0x102a45(0x1a3)](process['cwd'](),_0x32e878),_0x3ab98c=a8_0x5f46f9[_0x102a45(0x1a3)](_0x2eb341,'api.ts'),_0x2a87b3=a8_0x5f46f9[_0x102a45(0x1a3)](_0x2eb341,MODEL_REGISTRY_FILE_NAME),_0x4fb64f=readModelRegistry(_0x2a87b3);if(_0x4fb64f){const _0x2f303b=_0x2f6960?Object[_0x102a45(0x18e)](_0x4fb64f['profiles'])[_0x102a45(0x190)](([,_0x3d560b])=>_0x3d560b[_0x102a45(0x18b)]===_0x2f6960):[];if(_0x369843){if(_0x4fb64f[_0x102a45(0x1a2)][_0x369843])return{'filePath':_0x2a87b3,'profileName':_0x369843};if(_0x2f303b[_0x102a45(0x199)]>0x0)throw CliErrors['validation'](_0x102a45(0x198)+_0x369843+_0x102a45(0x192)+MODEL_REGISTRY_FILE_NAME+'.',_0x102a45(0x1a1)+CLI_BIN_NAME+_0x102a45(0x196)+_0x369843+_0x102a45(0x191));}else{if(_0x2f303b[_0x102a45(0x199)]===0x1)return{'filePath':_0x2a87b3,'profileName':_0x2f303b[0x0][0x0]};if(_0x2f303b['length']>0x1)throw new Error(_0x102a45(0x1a4)+_0x2f6960+_0x102a45(0x19c)+_0x2f303b[_0x102a45(0x18c)](([_0x15ebf8])=>_0x15ebf8)[_0x102a45(0x18a)](',\x20')+'.\x20'+_0x102a45(0x194));if(_0x4fb64f['profiles'][_0x4fb64f[_0x102a45(0x193)]]&&!_0x2f6960)return{'filePath':_0x2a87b3,'profileName':_0x4fb64f[_0x102a45(0x193)]};}}if(!_0x2f6960&&!_0x369843)return{'filePath':_0x3ab98c};const _0x316b72=readRawConfig(),_0x476804=_0x316b72[_0x102a45(0x19e)]&&typeof _0x316b72[_0x102a45(0x19e)]==='object'?_0x316b72['apps']:{},_0x5e84a3=_0x369843&&_0x476804[_0x369843]?[_0x369843,_0x476804[_0x369843]]:Object['entries'](_0x476804)['find'](([,_0x54d6f8])=>_0x54d6f8?.[_0x102a45(0x1a0)]===_0x2f6960);if(!_0x5e84a3)return{'filePath':_0x3ab98c};const [_0x9fbc12,_0x294090]=_0x5e84a3,_0x435367=typeof _0x316b72[_0x102a45(0x197)]===_0x102a45(0x18d)?_0x316b72[_0x102a45(0x197)]:undefined;if(_0x294090?.[_0x102a45(0x189)])return{'filePath':_0x3ab98c};if(_0x435367&&_0x9fbc12!==_0x435367){const _0x5c5334=a8_0x5f46f9[_0x102a45(0x1a3)](_0x2eb341,_0x9fbc12+_0x102a45(0x19f));if(existsSync(_0x5c5334))return{'filePath':_0x5c5334};}return{'filePath':_0x3ab98c};}function a8_0x384a(){const _0x2b9815=['\x20api\x20pull\x20--app\x20','defaultApp','Model\x20profile\x20\x22','length','208392dFDaaj','308781xidmgM','\x22\x20belongs\x20to\x20multiple\x20model\x20profiles:\x20','35cZCtzA','apps','-api.ts','appcode','Run\x20`','profiles','resolve','AppCode\x20\x22','33804BgYQcp','1338312axkxpa','1484635tdekEq','apiDir','join','appCode','map','string','entries','7288ARSKhW','filter','`\x20first.','\x22\x20is\x20missing\x20from\x20','defaultProfile','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','114892bqOHsD'];a8_0x384a=function(){return _0x2b9815;};return a8_0x384a();}
@@ -1 +1 @@
1
- function a9_0x4701(_0x2dd424,_0x5af4fa){_0x2dd424=_0x2dd424-0x1bc;const _0x1c5d41=a9_0x1c5d();let _0x4701d7=_0x1c5d41[_0x2dd424];return _0x4701d7;}(function(_0x357338,_0x4082dc){const _0x1d1a4b=a9_0x4701,_0x55b9fa=_0x357338();while(!![]){try{const _0x4124d6=parseInt(_0x1d1a4b(0x1c9))/0x1+parseInt(_0x1d1a4b(0x1cb))/0x2*(-parseInt(_0x1d1a4b(0x1c2))/0x3)+-parseInt(_0x1d1a4b(0x1c5))/0x4+-parseInt(_0x1d1a4b(0x1bd))/0x5+-parseInt(_0x1d1a4b(0x1c4))/0x6+-parseInt(_0x1d1a4b(0x1c3))/0x7+parseInt(_0x1d1a4b(0x1ca))/0x8;if(_0x4124d6===_0x4082dc)break;else _0x55b9fa['push'](_0x55b9fa['shift']());}catch(_0x1483f6){_0x55b9fa['push'](_0x55b9fa['shift']());}}}(a9_0x1c5d,0x46960));function a9_0x1c5d(){const _0x5a9113=['stop','No\x20valid\x20session.\x20Login\x20now?','118167gtCBDK','9566376rFypyl','2bgbDJy','Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.','validation','31705dOsXee','*\x20Login\x20successful!','Browser\x20login\x20cannot\x20run\x20in\x20non-interactive\x20mode.','!\x20Login\x20failed.','log','1182993aUvPqi','77301CjjiDy','2390616qHVPMg','858772uvptNQ','autoYes'];a9_0x1c5d=function(){return _0x5a9113;};return a9_0x1c5d();}import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';import{confirm}from'@inquirer/prompts';import a9_0x1a8dac from'ora';export async function runAuthServer(_0x50ffc6){const _0x475a00=a9_0x4701,_0x5de337=await getIsSessionValid();if(_0x5de337){console[_0x475a00(0x1c1)]('โˆš\x20Valid\x20session\x20detected,\x20no\x20login\x20required.');return;}if(_0x50ffc6?.['nonInteractive']&&!_0x50ffc6[_0x475a00(0x1c6)])throw CliErrors[_0x475a00(0x1bc)](_0x475a00(0x1bf),'Run\x20`'+CLI_BIN_NAME+'\x20auth\x20login\x20--yes`\x20and\x20open\x20the\x20printed\x20URL\x20in\x20your\x20browser.');const _0x48105f=_0x50ffc6?.[_0x475a00(0x1c6)]?!![]:await confirm({'message':_0x475a00(0x1c8),'default':!![]});if(!_0x48105f)return;if(_0x50ffc6?.['nonInteractive']){console['log']('Starting\x20browser\x20login.\x20Share\x20the\x20printed\x20URL\x20with\x20the\x20user.');const _0x5596b4=await authServer({'silent':![],'openBrowser':![]});_0x5596b4?console[_0x475a00(0x1c1)](_0x475a00(0x1be)):console[_0x475a00(0x1c1)]('!\x20Login\x20failed.');return;}const _0x5b68b1=a9_0x1a8dac(_0x475a00(0x1cc))['start'](),_0x3297db=await authServer({'silent':!![],'openBrowser':!![]});_0x5b68b1[_0x475a00(0x1c7)](),_0x3297db?console[_0x475a00(0x1c1)](_0x475a00(0x1be)):console['log'](_0x475a00(0x1c0));}
1
+ (function(_0x3ec68c,_0xabcef8){const _0x37a289=a9_0x5a2c,_0x5dc17d=_0x3ec68c();while(!![]){try{const _0x221059=parseInt(_0x37a289(0x10e))/0x1+-parseInt(_0x37a289(0x103))/0x2*(-parseInt(_0x37a289(0x10d))/0x3)+parseInt(_0x37a289(0x112))/0x4*(-parseInt(_0x37a289(0x10b))/0x5)+-parseInt(_0x37a289(0x110))/0x6+parseInt(_0x37a289(0x113))/0x7+parseInt(_0x37a289(0x104))/0x8+parseInt(_0x37a289(0x102))/0x9*(-parseInt(_0x37a289(0x107))/0xa);if(_0x221059===_0xabcef8)break;else _0x5dc17d['push'](_0x5dc17d['shift']());}catch(_0x5ad888){_0x5dc17d['push'](_0x5dc17d['shift']());}}}(a9_0x35c9,0x4f917));function a9_0x5a2c(_0x13f5d2,_0x39084d){_0x13f5d2=_0x13f5d2-0x101;const _0x35c95a=a9_0x35c9();let _0x5a2c8c=_0x35c95a[_0x13f5d2];return _0x5a2c8c;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a9_0x35c9(){const _0x36c79c=['\x20auth\x20login\x20--yes`\x20and\x20open\x20the\x20printed\x20URL\x20in\x20your\x20browser.','83856tOIhwi','*\x20Login\x20successful!','8fGtHVi','1756916gxLHqY','No\x20valid\x20session.\x20Login\x20now?','stop','Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.','validation','9ILWNnS','84rSHmGT','584024QtmjIQ','Starting\x20browser\x20login.\x20Share\x20the\x20printed\x20URL\x20with\x20the\x20user.','!\x20Login\x20failed.','256150cQGXcj','Run\x20`','autoYes','nonInteractive','1540645WfUlsW','log','18801mmbHdd','394555iCTVDW'];a9_0x35c9=function(){return _0x36c79c;};return a9_0x35c9();}import{confirm}from'@inquirer/prompts';import a9_0x186b48 from'ora';export async function runAuthServer(_0x2d8d3c){const _0x41f14a=a9_0x5a2c,_0x50fd25=await getIsSessionValid();if(_0x50fd25){console['log']('โˆš\x20Valid\x20session\x20detected,\x20no\x20login\x20required.');return;}if(_0x2d8d3c?.['nonInteractive']&&!_0x2d8d3c[_0x41f14a(0x109)])throw CliErrors[_0x41f14a(0x101)]('Browser\x20login\x20cannot\x20run\x20in\x20non-interactive\x20mode.',_0x41f14a(0x108)+CLI_BIN_NAME+_0x41f14a(0x10f));const _0x53c1d8=_0x2d8d3c?.[_0x41f14a(0x109)]?!![]:await confirm({'message':_0x41f14a(0x114),'default':!![]});if(!_0x53c1d8)return;if(_0x2d8d3c?.[_0x41f14a(0x10a)]){console[_0x41f14a(0x10c)](_0x41f14a(0x105));const _0x590422=await authServer({'silent':![],'openBrowser':![]});_0x590422?console['log'](_0x41f14a(0x111)):console[_0x41f14a(0x10c)]('!\x20Login\x20failed.');return;}const _0x1f9a0f=a9_0x186b48(_0x41f14a(0x116))['start'](),_0x5b0089=await authServer({'silent':!![],'openBrowser':!![]});_0x1f9a0f[_0x41f14a(0x115)](),_0x5b0089?console[_0x41f14a(0x10c)](_0x41f14a(0x111)):console[_0x41f14a(0x10c)](_0x41f14a(0x106));}
@@ -1 +1 @@
1
- const a10_0x1f01f1=a10_0x458d;(function(_0x109919,_0x50f7cc){const _0x59ab4a=a10_0x458d,_0xbc4728=_0x109919();while(!![]){try{const _0x5b562e=parseInt(_0x59ab4a(0x107))/0x1*(-parseInt(_0x59ab4a(0xf8))/0x2)+parseInt(_0x59ab4a(0xed))/0x3*(-parseInt(_0x59ab4a(0x106))/0x4)+-parseInt(_0x59ab4a(0x105))/0x5+parseInt(_0x59ab4a(0xfc))/0x6+parseInt(_0x59ab4a(0x10f))/0x7+-parseInt(_0x59ab4a(0x111))/0x8+parseInt(_0x59ab4a(0xeb))/0x9*(parseInt(_0x59ab4a(0x113))/0xa);if(_0x5b562e===_0x50f7cc)break;else _0xbc4728['push'](_0xbc4728['shift']());}catch(_0x17bc20){_0xbc4728['push'](_0xbc4728['shift']());}}}(a10_0x1ed0,0x28b0c));import{writeFileSync}from'node:fs';function a10_0x458d(_0xf8692f,_0x16a3bf){_0xf8692f=_0xf8692f-0xe8;const _0x1ed096=a10_0x1ed0();let _0x458d30=_0x1ed096[_0xf8692f];return _0x458d30;}import a10_0x309d9f from'node:http';import a10_0x36e985 from'node:https';import{getUserDomain}from'../constant/domain.js';import{getOfficialRoutingCdn,getOfficialRoutingProfile}from'../constant/routing-profile.js';import{getProjectDomainRoutingManifest}from'../config/project-domain-routing.js';import{exec}from'node:child_process';import{getIsSessionValid}from'../auth/is-session-valid.js';import{cookieFile}from'../auth/constant.js';import{buildLoginSuccessHtml}from'../auth/login-success-html.js';export const AUTH_LOGIN_TIMEOUT_MS=0xa*0x3c*0x3e8;export function resolveAuthCallbackRouting(_0x2ee053){const _0x2d909a=a10_0x458d;if(!_0x2ee053)return getProjectDomainRoutingManifest()[_0x2d909a(0xef)];const _0x29d75e=getOfficialRoutingProfile(_0x2ee053),_0x35cd42=getOfficialRoutingCdn(_0x2ee053);return{'origin':_0x29d75e['local'][_0x2d909a(0x10b)],'certificateUrl':_0x35cd42[_0x2d909a(0x115)]+'/cert/lovrabet-dev.json'};}function a10_0x1ed0(){const _0x512f39=['โœ…\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.','๐Ÿ“\x20Login\x20URL:','utf-8','2134251KVaAmO','certificateUrl','2547400CtKVtN','isAuth','400ezMaET','โš ๏ธ\x20\x20Failed\x20to\x20open\x20browser\x20automatically','lovrabet','๐Ÿ’ก\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.','cmd\x20/c\x20start\x20\x22\x22\x20\x22','127.0.0.1','user','136764VdpOaS','createServer','18ZvhWeu','win32','local','headers','open\x20\x22','error','port','writeHead','/api/auth/get-session','close','json','2cCDvfg','log','/sign-in?redirect=','object','530976jUDCxG','๐ŸŒ\x20Attempting\x20to\x20open\x20browser\x20automatically...','๐Ÿ”\x20Starting\x20login\x20service...','platform','openBrowser','address','timeoutMs','catch','๐Ÿ”—\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:','832965CLcQzS','178476ypacbd','81829wEFOAG','then','end','silent','origin'];a10_0x1ed0=function(){return _0x512f39;};return a10_0x1ed0();}function withPort(_0x52537b,_0x4f22a5){const _0x376fa5=a10_0x458d,_0xcc784c=new URL(_0x52537b);return _0xcc784c['port']=String(_0x4f22a5),_0xcc784c[_0x376fa5(0x10b)];}export async function authServer(_0x477fef){const _0x414556=a10_0x458d,_0x8ab37b=_0x477fef?.[_0x414556(0x10a)]||![],_0x13a2c4=_0x477fef?.[_0x414556(0x100)]??!![],_0x2f818a=_0x477fef?.[_0x414556(0x102)]??AUTH_LOGIN_TIMEOUT_MS;if(await getIsSessionValid())return!![];const _0xf6585a=resolveAuthCallbackRouting(),_0x3f0634=_0xf6585a[_0x414556(0x110)]?await(await fetch(_0xf6585a[_0x414556(0x110)]))[_0x414556(0xf7)]():undefined;return new Promise(async(_0x4f6e8b,_0x2ee5d1)=>{const _0xc0feec=_0x414556;let _0x1e4210=0x0,_0x4a6d4b=![],_0x185c1e;const _0x380041=async(_0x45fcff,_0x466661)=>{const _0x258072=a10_0x458d,_0x4d57e7=getUserDomain(),_0x9cd31=_0x45fcff[_0x258072(0xf0)]['cookie']||'',_0x55a1a1=await fetch(_0x4d57e7+_0x258072(0xf5),{'headers':{'cookie':_0x9cd31}})[_0x258072(0x108)](_0x5e462e=>_0x5e462e[_0x258072(0xf7)]()),_0xafd5c4=_0x55a1a1&&_0x55a1a1['session']&&_0x55a1a1[_0x258072(0xea)];if(_0xafd5c4){writeFileSync(cookieFile,_0x9cd31,_0x258072(0x10e));const _0x59bb56=buildLoginSuccessHtml();_0x466661[_0x258072(0xf4)](0xc8,{'Content-Type':'text/html;\x20charset=utf-8'}),_0x466661[_0x258072(0x109)](_0x59bb56),_0x45b0a4(!![]);}else{const _0x3e98eb=encodeURIComponent(withPort(_0xf6585a[_0x258072(0x10b)],_0x1e4210));_0x466661['writeHead'](0x12e,{'location':_0x4d57e7+_0x258072(0xfa)+_0x3e98eb}),_0x466661[_0x258072(0x109)]();return;}},_0x4aa976=_0x3f0634?a10_0x36e985[_0xc0feec(0xec)](_0x3f0634,_0x380041):a10_0x309d9f[_0xc0feec(0xec)](_0x380041);function _0x45b0a4(_0x361420){const _0x107881=_0xc0feec;if(_0x4a6d4b)return;_0x4a6d4b=!![],_0x185c1e&&clearTimeout(_0x185c1e),_0x4aa976[_0x107881(0xf6)](),_0x4f6e8b(_0x361420);}_0x4aa976['listen'](0x0,_0xc0feec(0xe9),()=>{const _0x2be4c6=_0xc0feec,_0x38e9ad=_0x4aa976[_0x2be4c6(0x101)]();_0x1e4210=typeof _0x38e9ad===_0x2be4c6(0xfb)&&_0x38e9ad?_0x38e9ad[_0x2be4c6(0xf3)]:Number(_0x38e9ad);const _0x4fae31=withPort(_0xf6585a['origin'],_0x1e4210);_0x185c1e=setTimeout(()=>{const _0x14edf9=_0x2be4c6;!_0x8ab37b&&console[_0x14edf9(0xf9)]('!\x20Login\x20URL\x20expired\x20after\x2010\x20minutes.\x20Run\x20the\x20login\x20command\x20again\x20to\x20get\x20a\x20new\x20URL.'),_0x45b0a4(![]);},_0x2f818a);!_0x8ab37b&&(console[_0x2be4c6(0xf9)](_0x2be4c6(0xfe)),console[_0x2be4c6(0xf9)](_0x2be4c6(0x10d),_0x4fae31),_0x13a2c4?(console[_0x2be4c6(0xf9)](_0x2be4c6(0xfd)),console[_0x2be4c6(0xf9)](''),console[_0x2be4c6(0xf9)](_0x2be4c6(0x116))):console['log']('๐Ÿ’ก\x20Open\x20the\x20login\x20URL\x20above\x20in\x20your\x20browser\x20to\x20complete\x20authorization.'),console[_0x2be4c6(0xf9)](''));if(!_0x13a2c4)return;openInBrowser(_0x4fae31)[_0x2be4c6(0x108)](_0x15dc4a=>{const _0x52149f=_0x2be4c6;!_0x8ab37b&&(_0x15dc4a?console['log'](_0x52149f(0x10c)):(console[_0x52149f(0xf9)](_0x52149f(0x114)),console['log']('๐Ÿ”—\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:',_0x4fae31)),console[_0x52149f(0xf9)](''));})[_0x2be4c6(0x103)](()=>{const _0x457c42=_0x2be4c6;!_0x8ab37b&&(console['log'](_0x457c42(0x114)),console[_0x457c42(0xf9)](_0x457c42(0x104),_0x4fae31),console[_0x457c42(0xf9)](''));});}),_0x4aa976['on']('error',_0x4383e9=>{const _0x30908b=_0xc0feec;if(_0x4a6d4b)return;_0x4a6d4b=!![],_0x185c1e&&clearTimeout(_0x185c1e),!_0x8ab37b&&console[_0x30908b(0xf2)]('Auth\x20server\x20error:',_0x4383e9),_0x4aa976[_0x30908b(0xf6)](),_0x2ee5d1(_0x4383e9);});});}function openInBrowser(_0x38c23d){return new Promise(_0x117dbf=>{const _0x3e8e41=a10_0x458d,_0x51ad8c=process[_0x3e8e41(0xff)];let _0xc4d029;if(_0x51ad8c===_0x3e8e41(0xee))_0xc4d029=_0x3e8e41(0xe8)+_0x38c23d+'\x22';else _0x51ad8c==='darwin'?_0xc4d029=_0x3e8e41(0xf1)+_0x38c23d+'\x22':_0xc4d029='xdg-open\x20\x22'+_0x38c23d+'\x22';exec(_0xc4d029,_0x2c9236=>{_0x2c9236?_0x117dbf(![]):_0x117dbf(!![]);});});}if(import.meta.main){const isAuth=await authServer();console[a10_0x1f01f1(0xf9)](a10_0x1f01f1(0x112),isAuth);}
1
+ const a10_0x430002=a10_0x21fb;(function(_0x461e7c,_0x49ab8d){const _0x11b912=a10_0x21fb,_0x6cb650=_0x461e7c();while(!![]){try{const _0x4502bb=-parseInt(_0x11b912(0x93))/0x1*(parseInt(_0x11b912(0x82))/0x2)+parseInt(_0x11b912(0x7f))/0x3+-parseInt(_0x11b912(0x86))/0x4*(-parseInt(_0x11b912(0x92))/0x5)+parseInt(_0x11b912(0xa5))/0x6*(-parseInt(_0x11b912(0x9a))/0x7)+parseInt(_0x11b912(0xa1))/0x8+-parseInt(_0x11b912(0xa6))/0x9+parseInt(_0x11b912(0x80))/0xa*(parseInt(_0x11b912(0x8f))/0xb);if(_0x4502bb===_0x49ab8d)break;else _0x6cb650['push'](_0x6cb650['shift']());}catch(_0x3b546b){_0x6cb650['push'](_0x6cb650['shift']());}}}(a10_0x5bf2,0x5d039));import{writeFileSync}from'node:fs';import a10_0x18170c from'node:http';import a10_0x25255e from'node:https';import{getUserDomain}from'../constant/domain.js';import{getOfficialRoutingCdn,getOfficialRoutingProfile}from'../constant/routing-profile.js';import{getProjectDomainRoutingManifest}from'../config/project-domain-routing.js';function a10_0x21fb(_0x324bf5,_0x13d673){_0x324bf5=_0x324bf5-0x75;const _0x5bf25a=a10_0x5bf2();let _0x21fb95=_0x5bf25a[_0x324bf5];return _0x21fb95;}import{exec}from'node:child_process';import{getIsSessionValid}from'../auth/is-session-valid.js';import{cookieFile}from'../auth/constant.js';import{buildLoginSuccessHtml}from'../auth/login-success-html.js';export const AUTH_LOGIN_TIMEOUT_MS=0xa*0x3c*0x3e8;export function resolveAuthCallbackRouting(_0x19b2d2){const _0x259698=a10_0x21fb;if(!_0x19b2d2)return getProjectDomainRoutingManifest()['local'];const _0x1ae4c0=getOfficialRoutingProfile(_0x19b2d2),_0x1e9cee=getOfficialRoutingCdn(_0x19b2d2);return{'origin':_0x1ae4c0[_0x259698(0x91)][_0x259698(0x96)],'certificateUrl':_0x1e9cee['lovrabet']+_0x259698(0xa3)};}function withPort(_0x19a615,_0x1a977a){const _0x1b08ec=new URL(_0x19a615);return _0x1b08ec['port']=String(_0x1a977a),_0x1b08ec['origin'];}export async function authServer(_0x296dca){const _0x195611=a10_0x21fb,_0x20b7d3=_0x296dca?.[_0x195611(0x75)]||![],_0xba7119=_0x296dca?.[_0x195611(0x9e)]??!![],_0x1a618a=_0x296dca?.[_0x195611(0x77)]??AUTH_LOGIN_TIMEOUT_MS;if(await getIsSessionValid())return!![];const _0x16defa=resolveAuthCallbackRouting(),_0x34b855=_0x16defa['certificateUrl']?await(await fetch(_0x16defa['certificateUrl']))['json']():undefined;return new Promise(async(_0x2f5067,_0x37b62f)=>{const _0x23b180=_0x195611;let _0x22d9c1=0x0,_0x2a822b=![],_0x1114a2;const _0x4b3e53=async(_0xbc2f85,_0x156c62)=>{const _0x465514=a10_0x21fb,_0x56270a=getUserDomain(),_0x13e739=_0xbc2f85[_0x465514(0x87)][_0x465514(0x89)]||'',_0x492cae=await fetch(_0x56270a+_0x465514(0x79),{'headers':{'cookie':_0x13e739}})['then'](_0x26b569=>_0x26b569[_0x465514(0x83)]()),_0x1bbf22=_0x492cae&&_0x492cae[_0x465514(0x8e)]&&_0x492cae[_0x465514(0x9d)];if(_0x1bbf22){writeFileSync(cookieFile,_0x13e739,'utf-8');const _0x1b0f8b=buildLoginSuccessHtml();_0x156c62['writeHead'](0xc8,{'Content-Type':'text/html;\x20charset=utf-8'}),_0x156c62[_0x465514(0x9c)](_0x1b0f8b),_0x230a9b(!![]);}else{const _0x563464=encodeURIComponent(withPort(_0x16defa[_0x465514(0x96)],_0x22d9c1));_0x156c62[_0x465514(0x8d)](0x12e,{'location':_0x56270a+_0x465514(0x84)+_0x563464}),_0x156c62[_0x465514(0x9c)]();return;}},_0x5b15af=_0x34b855?a10_0x25255e['createServer'](_0x34b855,_0x4b3e53):a10_0x18170c[_0x23b180(0x7a)](_0x4b3e53);function _0x230a9b(_0x5d2e98){if(_0x2a822b)return;_0x2a822b=!![],_0x1114a2&&clearTimeout(_0x1114a2),_0x5b15af['close'](),_0x2f5067(_0x5d2e98);}_0x5b15af[_0x23b180(0x81)](0x0,'127.0.0.1',()=>{const _0x4b438c=_0x23b180,_0xfaed82=_0x5b15af[_0x4b438c(0xa7)]();_0x22d9c1=typeof _0xfaed82===_0x4b438c(0x7d)&&_0xfaed82?_0xfaed82[_0x4b438c(0xa0)]:Number(_0xfaed82);const _0x1f9561=withPort(_0x16defa['origin'],_0x22d9c1);_0x1114a2=setTimeout(()=>{const _0x5f3d96=_0x4b438c;!_0x20b7d3&&console[_0x5f3d96(0x8b)](_0x5f3d96(0x7e)),_0x230a9b(![]);},_0x1a618a);!_0x20b7d3&&(console['log'](_0x4b438c(0x9f)),console['log'](_0x4b438c(0x95),_0x1f9561),_0xba7119?(console[_0x4b438c(0x8b)](_0x4b438c(0x85)),console[_0x4b438c(0x8b)](''),console[_0x4b438c(0x8b)](_0x4b438c(0x7b))):console[_0x4b438c(0x8b)]('๐Ÿ’ก\x20Open\x20the\x20login\x20URL\x20above\x20in\x20your\x20browser\x20to\x20complete\x20authorization.'),console[_0x4b438c(0x8b)](''));if(!_0xba7119)return;openInBrowser(_0x1f9561)[_0x4b438c(0x90)](_0x5dcfab=>{const _0x1293fc=_0x4b438c;!_0x20b7d3&&(_0x5dcfab?console[_0x1293fc(0x8b)](_0x1293fc(0x99)):(console[_0x1293fc(0x8b)](_0x1293fc(0x98)),console['log'](_0x1293fc(0x7c),_0x1f9561)),console[_0x1293fc(0x8b)](''));})[_0x4b438c(0x94)](()=>{const _0x204ac6=_0x4b438c;!_0x20b7d3&&(console[_0x204ac6(0x8b)]('โš ๏ธ\x20\x20Failed\x20to\x20open\x20browser\x20automatically'),console[_0x204ac6(0x8b)]('๐Ÿ”—\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:',_0x1f9561),console['log'](''));});}),_0x5b15af['on']('error',_0x125289=>{const _0x21baa6=_0x23b180;if(_0x2a822b)return;_0x2a822b=!![],_0x1114a2&&clearTimeout(_0x1114a2),!_0x20b7d3&&console[_0x21baa6(0x97)](_0x21baa6(0x8c),_0x125289),_0x5b15af[_0x21baa6(0x88)](),_0x37b62f(_0x125289);});});}function openInBrowser(_0x2c3f6d){return new Promise(_0x127a7f=>{const _0x4ea41d=a10_0x21fb,_0x2e7233=process[_0x4ea41d(0xa4)];let _0x1293ca;if(_0x2e7233===_0x4ea41d(0x78))_0x1293ca=_0x4ea41d(0x76)+_0x2c3f6d+'\x22';else _0x2e7233===_0x4ea41d(0x8a)?_0x1293ca=_0x4ea41d(0x9b)+_0x2c3f6d+'\x22':_0x1293ca='xdg-open\x20\x22'+_0x2c3f6d+'\x22';exec(_0x1293ca,_0x5765ad=>{_0x5765ad?_0x127a7f(![]):_0x127a7f(!![]);});});}function a10_0x5bf2(){const _0x538067=['createServer','๐Ÿ’ก\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.','๐Ÿ”—\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:','object','!\x20Login\x20URL\x20expired\x20after\x2010\x20minutes.\x20Run\x20the\x20login\x20command\x20again\x20to\x20get\x20a\x20new\x20URL.','1104153nlAhRk','1020SYJYPM','listen','2OhhYDV','json','/sign-in?redirect=','๐ŸŒ\x20Attempting\x20to\x20open\x20browser\x20automatically...','2612EGOyrx','headers','close','cookie','darwin','log','Auth\x20server\x20error:','writeHead','session','74558hlZVbH','then','local','2745MSaTXp','460766iUBMTr','catch','๐Ÿ“\x20Login\x20URL:','origin','error','โš ๏ธ\x20\x20Failed\x20to\x20open\x20browser\x20automatically','โœ…\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.','7BXPFVv','open\x20\x22','end','user','openBrowser','๐Ÿ”\x20Starting\x20login\x20service...','port','776104XQVify','isAuth','/cert/lovrabet-dev.json','platform','3815562hLyiDB','335151zvXJwq','address','silent','cmd\x20/c\x20start\x20\x22\x22\x20\x22','timeoutMs','win32','/api/auth/get-session'];a10_0x5bf2=function(){return _0x538067;};return a10_0x5bf2();}if(import.meta.main){const isAuth=await authServer();console[a10_0x430002(0x8b)](a10_0x430002(0xa2),isAuth);}
@@ -1 +1 @@
1
- const a11_0x555469=a11_0x35ef;(function(_0x252728,_0x281056){const _0x234c94=a11_0x35ef,_0x2ef5e8=_0x252728();while(!![]){try{const _0x5449b1=parseInt(_0x234c94(0x7e))/0x1+-parseInt(_0x234c94(0x80))/0x2*(parseInt(_0x234c94(0x7d))/0x3)+-parseInt(_0x234c94(0x78))/0x4+parseInt(_0x234c94(0x77))/0x5+-parseInt(_0x234c94(0x7f))/0x6*(parseInt(_0x234c94(0x7a))/0x7)+parseInt(_0x234c94(0x76))/0x8+-parseInt(_0x234c94(0x7c))/0x9*(parseInt(_0x234c94(0x79))/0xa);if(_0x5449b1===_0x281056)break;else _0x2ef5e8['push'](_0x2ef5e8['shift']());}catch(_0x2bcbbf){_0x2ef5e8['push'](_0x2ef5e8['shift']());}}}(a11_0x3dd9,0xa1458));import{mkdirSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const configDir=join(homedir(),'.lovrabet');function a11_0x3dd9(){const _0x59b1b8=['534036MyWWlt','2MJcyYD','2048128IuoTWY','6210560HIvuZr','1515908niPzPX','930pHdLFC','14tFqurN','cookie','25983DMNYUx','3370629qayTyf','1111463ZdRRkV'];a11_0x3dd9=function(){return _0x59b1b8;};return a11_0x3dd9();}function a11_0x35ef(_0x4369f6,_0x2353b7){_0x4369f6=_0x4369f6-0x76;const _0x3dd990=a11_0x3dd9();let _0x35eff7=_0x3dd990[_0x4369f6];return _0x35eff7;}export const cookieFile=join(configDir,a11_0x555469(0x7b));mkdirSync(configDir,{'recursive':!![]});
1
+ const a11_0x21bbee=a11_0x5182;function a11_0x5182(_0x2ce61a,_0x11b447){_0x2ce61a=_0x2ce61a-0x19a;const _0x14e46c=a11_0x14e4();let _0x5182a0=_0x14e46c[_0x2ce61a];return _0x5182a0;}function a11_0x14e4(){const _0x62a1e0=['30wDgHUM','12214872VmtVkI','7383971qvxuXY','6QoVGbA','6918430tLZyJj','29229860zhaMfM','.lovrabet','357580ooCUzV','68hYAZeX','11950713EgmaQE','32138xGrrhr'];a11_0x14e4=function(){return _0x62a1e0;};return a11_0x14e4();}(function(_0xb44107,_0x422267){const _0x328b10=a11_0x5182,_0x26605e=_0xb44107();while(!![]){try{const _0x109239=-parseInt(_0x328b10(0x19e))/0x1*(parseInt(_0x328b10(0x19c))/0x2)+-parseInt(_0x328b10(0x19f))/0x3*(parseInt(_0x328b10(0x19b))/0x4)+-parseInt(_0x328b10(0x1a3))/0x5+-parseInt(_0x328b10(0x1a2))/0x6*(-parseInt(_0x328b10(0x1a1))/0x7)+parseInt(_0x328b10(0x1a0))/0x8+-parseInt(_0x328b10(0x19d))/0x9+parseInt(_0x328b10(0x1a4))/0xa;if(_0x109239===_0x422267)break;else _0x26605e['push'](_0x26605e['shift']());}catch(_0x32b4aa){_0x26605e['push'](_0x26605e['shift']());}}}(a11_0x14e4,0xc4e71));import{mkdirSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const configDir=join(homedir(),a11_0x21bbee(0x19a));export const cookieFile=join(configDir,'cookie');mkdirSync(configDir,{'recursive':!![]});
@@ -1 +1 @@
1
- (function(_0x2b4620,_0x57bdc8){var _0xbbcca3=a12_0x2347,_0x53ab2a=_0x2b4620();while(!![]){try{var _0x11943f=parseInt(_0xbbcca3(0x1b9))/0x1*(-parseInt(_0xbbcca3(0x1b0))/0x2)+-parseInt(_0xbbcca3(0x1b8))/0x3+parseInt(_0xbbcca3(0x1b1))/0x4+-parseInt(_0xbbcca3(0x1b6))/0x5*(parseInt(_0xbbcca3(0x1ba))/0x6)+parseInt(_0xbbcca3(0x1bb))/0x7+-parseInt(_0xbbcca3(0x1b7))/0x8*(parseInt(_0xbbcca3(0x1b4))/0x9)+-parseInt(_0xbbcca3(0x1b5))/0xa*(-parseInt(_0xbbcca3(0x1b2))/0xb);if(_0x11943f===_0x57bdc8)break;else _0x53ab2a['push'](_0x53ab2a['shift']());}catch(_0x410740){_0x53ab2a['push'](_0x53ab2a['shift']());}}}(a12_0x2e5f,0xe3e9c));import{readFileSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export function getCookie(){var _0x234f6c=a12_0x2347;try{return readFileSync(cookieFile,_0x234f6c(0x1b3));}catch{}return'';}function a12_0x2347(_0x28c663,_0x5d9a57){_0x28c663=_0x28c663-0x1b0;var _0x2e5fdd=a12_0x2e5f();var _0x234707=_0x2e5fdd[_0x28c663];return _0x234707;}function a12_0x2e5f(){var _0x35f439=['3962655MIXMYV','87AIaARK','14964EAPMjX','12455688IrLTEB','8630tCvYtK','4808816VWtRTD','534886AmquxC','utf-8','12942OEBRkk','520iLpNcE','2955AQQZES','7824svtACV'];a12_0x2e5f=function(){return _0x35f439;};return a12_0x2e5f();}
1
+ function a12_0x15e1(){var _0x1d6570=['758jnxYKG','438MDCrzM','9WoOuti','2629209PfPDQL','6716304hNFCos','42yWMsts','227224meUGSL','utf-8','49565vkkQMt','29905680gOlgEK','20OYlWJy','4564238hRtECq','373VMZZsX'];a12_0x15e1=function(){return _0x1d6570;};return a12_0x15e1();}(function(_0x5f47ae,_0x327775){var _0x3184b0=a12_0x1ac1,_0x57e772=_0x5f47ae();while(!![]){try{var _0x368ac2=parseInt(_0x3184b0(0x1f0))/0x1*(parseInt(_0x3184b0(0x1f1))/0x2)+parseInt(_0x3184b0(0x1f6))/0x3*(-parseInt(_0x3184b0(0x1ea))/0x4)+parseInt(_0x3184b0(0x1ec))/0x5*(-parseInt(_0x3184b0(0x1f2))/0x6)+parseInt(_0x3184b0(0x1ef))/0x7+parseInt(_0x3184b0(0x1f5))/0x8*(-parseInt(_0x3184b0(0x1f3))/0x9)+parseInt(_0x3184b0(0x1ee))/0xa*(-parseInt(_0x3184b0(0x1f4))/0xb)+parseInt(_0x3184b0(0x1ed))/0xc;if(_0x368ac2===_0x327775)break;else _0x57e772['push'](_0x57e772['shift']());}catch(_0x32be9e){_0x57e772['push'](_0x57e772['shift']());}}}(a12_0x15e1,0x6da08));import{readFileSync}from'node:fs';import{cookieFile}from'../auth/constant.js';function a12_0x1ac1(_0x229165,_0x214a4){_0x229165=_0x229165-0x1ea;var _0x15e1d2=a12_0x15e1();var _0x1ac118=_0x15e1d2[_0x229165];return _0x1ac118;}export function getCookie(){var _0x604a58=a12_0x1ac1;try{return readFileSync(cookieFile,_0x604a58(0x1eb));}catch{}return'';}
@@ -1 +1 @@
1
- (function(_0x273f78,_0x583e64){const _0x855de6=a13_0x4103,_0x400a50=_0x273f78();while(!![]){try{const _0x265052=parseInt(_0x855de6(0x136))/0x1*(parseInt(_0x855de6(0x13a))/0x2)+parseInt(_0x855de6(0x142))/0x3+-parseInt(_0x855de6(0x140))/0x4+parseInt(_0x855de6(0x135))/0x5+parseInt(_0x855de6(0x13e))/0x6*(-parseInt(_0x855de6(0x13b))/0x7)+parseInt(_0x855de6(0x141))/0x8+parseInt(_0x855de6(0x139))/0x9*(-parseInt(_0x855de6(0x138))/0xa);if(_0x265052===_0x583e64)break;else _0x400a50['push'](_0x400a50['shift']());}catch(_0x1c7f2c){_0x400a50['push'](_0x400a50['shift']());}}}(a13_0x1e87,0x6666b));import{existsSync,readFileSync}from'node:fs';function a13_0x4103(_0x4cb30d,_0x11b0be){_0x4cb30d=_0x4cb30d-0x135;const _0x1e8755=a13_0x1e87();let _0x41037a=_0x1e8755[_0x4cb30d];return _0x41037a;}import{getUserDomain}from'../constant/domain.js';function a13_0x1e87(){const _0x3fb342=['490584pPAvYB','2878175ptvWMJ','487fmgqBM','user','55630kUQZgg','2178EzCinH','1902XSFJOJ','57022dVoTch','utf-8','session','36ILwNsv','/api/auth/get-session','816036DacICC','6530128QWVVSv'];a13_0x1e87=function(){return _0x3fb342;};return a13_0x1e87();}import{cookieFile}from'../auth/constant.js';export async function getSessionUserInfo(){const _0x17551e=a13_0x4103;try{if(!existsSync(cookieFile))return null;const _0x5f044d=readFileSync(cookieFile,_0x17551e(0x13c)),_0x30e2da=await fetch(getUserDomain()+_0x17551e(0x13f),{'headers':{'cookie':_0x5f044d}});if(!_0x30e2da['ok'])return null;const _0x5ec540=await _0x30e2da['json']();if(!_0x5ec540[_0x17551e(0x13d)]||!_0x5ec540[_0x17551e(0x137)])return null;return _0x5ec540;}catch{return null;}}
1
+ function a13_0x2472(_0x4095a3,_0x1c943f){_0x4095a3=_0x4095a3-0x1d8;const _0x3fe1b5=a13_0x3fe1();let _0x24727c=_0x3fe1b5[_0x4095a3];return _0x24727c;}(function(_0x7b1bb0,_0x36a354){const _0x426c66=a13_0x2472,_0x153476=_0x7b1bb0();while(!![]){try{const _0x5d7b07=parseInt(_0x426c66(0x1db))/0x1+parseInt(_0x426c66(0x1da))/0x2+-parseInt(_0x426c66(0x1e3))/0x3+parseInt(_0x426c66(0x1df))/0x4+-parseInt(_0x426c66(0x1dd))/0x5+parseInt(_0x426c66(0x1de))/0x6+-parseInt(_0x426c66(0x1dc))/0x7*(parseInt(_0x426c66(0x1d9))/0x8);if(_0x5d7b07===_0x36a354)break;else _0x153476['push'](_0x153476['shift']());}catch(_0x25f7e9){_0x153476['push'](_0x153476['shift']());}}}(a13_0x3fe1,0x8382c));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';function a13_0x3fe1(){const _0x57b0a7=['session','1621650yBsOIJ','utf-8','39344MpHrdM','638448UyfQNE','796384uIRidX','1113MHBmnh','4357830TLrFTH','6057384zXsHCp','2430296eEyLzX','json','user'];a13_0x3fe1=function(){return _0x57b0a7;};return a13_0x3fe1();}export async function getSessionUserInfo(){const _0x162dd2=a13_0x2472;try{if(!existsSync(cookieFile))return null;const _0x399697=readFileSync(cookieFile,_0x162dd2(0x1d8)),_0x22651e=await fetch(getUserDomain()+'/api/auth/get-session',{'headers':{'cookie':_0x399697}});if(!_0x22651e['ok'])return null;const _0x14b2cc=await _0x22651e[_0x162dd2(0x1e0)]();if(!_0x14b2cc[_0x162dd2(0x1e2)]||!_0x14b2cc[_0x162dd2(0x1e1)])return null;return _0x14b2cc;}catch{return null;}}
@@ -1 +1 @@
1
- function a14_0x53e9(_0x9dc399,_0x528b81){_0x9dc399=_0x9dc399-0x71;const _0x239a75=a14_0x239a();let _0x53e936=_0x239a75[_0x9dc399];return _0x53e936;}(function(_0x55c35f,_0x106863){const _0x3f0c5a=a14_0x53e9,_0x55fff2=_0x55c35f();while(!![]){try{const _0xfe766a=-parseInt(_0x3f0c5a(0x78))/0x1+parseInt(_0x3f0c5a(0x79))/0x2+parseInt(_0x3f0c5a(0x73))/0x3*(-parseInt(_0x3f0c5a(0x74))/0x4)+-parseInt(_0x3f0c5a(0x72))/0x5+-parseInt(_0x3f0c5a(0x71))/0x6*(parseInt(_0x3f0c5a(0x7c))/0x7)+parseInt(_0x3f0c5a(0x7d))/0x8+parseInt(_0x3f0c5a(0x77))/0x9*(parseInt(_0x3f0c5a(0x75))/0xa);if(_0xfe766a===_0x106863)break;else _0x55fff2['push'](_0x55fff2['shift']());}catch(_0xc0d4bd){_0x55fff2['push'](_0x55fff2['shift']());}}}(a14_0x239a,0xcadc0));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';function a14_0x239a(){const _0x113b62=['/api/auth/get-session','1575927VcGRBm','1212474zGZviG','1637812mcTYNl','utf-8','user','2911951ImkOvA','13102664ZThLWy','6ywwcDU','1162765sqyYHL','1920966gLOfGV','4cVGhAa','50CFvoTV'];a14_0x239a=function(){return _0x113b62;};return a14_0x239a();}import{cookieFile}from'../auth/constant.js';export async function getIsSessionValid(){const _0x1f82a0=a14_0x53e9;try{if(!existsSync(cookieFile))return![];const _0x31695d=readFileSync(cookieFile,_0x1f82a0(0x7a)),_0xf69ccf=await fetch(getUserDomain()+_0x1f82a0(0x76),{'headers':{'cookie':_0x31695d}})['then'](_0x285a6e=>_0x285a6e['json']());return _0xf69ccf&&_0xf69ccf['session']&&_0xf69ccf[_0x1f82a0(0x7b)];}catch{}return![];}
1
+ (function(_0x1b5fd1,_0x4b7db5){const _0x309af3=a14_0x3159,_0x36b677=_0x1b5fd1();while(!![]){try{const _0x377c35=parseInt(_0x309af3(0x96))/0x1*(parseInt(_0x309af3(0x97))/0x2)+parseInt(_0x309af3(0x99))/0x3*(parseInt(_0x309af3(0x94))/0x4)+-parseInt(_0x309af3(0x98))/0x5+parseInt(_0x309af3(0x9c))/0x6+parseInt(_0x309af3(0x92))/0x7*(-parseInt(_0x309af3(0x93))/0x8)+-parseInt(_0x309af3(0x9b))/0x9+-parseInt(_0x309af3(0x9a))/0xa;if(_0x377c35===_0x4b7db5)break;else _0x36b677['push'](_0x36b677['shift']());}catch(_0xfafa4b){_0x36b677['push'](_0x36b677['shift']());}}}(a14_0x2d9c,0xb7e93));function a14_0x3159(_0x89772d,_0x2a36eb){_0x89772d=_0x89772d-0x91;const _0x2d9c71=a14_0x2d9c();let _0x3159ae=_0x2d9c71[_0x89772d];return _0x3159ae;}import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';export async function getIsSessionValid(){const _0x38f6a4=a14_0x3159;try{if(!existsSync(cookieFile))return![];const _0x5b5a40=readFileSync(cookieFile,'utf-8'),_0x8e9a76=await fetch(getUserDomain()+_0x38f6a4(0x95),{'headers':{'cookie':_0x5b5a40}})['then'](_0x547f9f=>_0x547f9f[_0x38f6a4(0x9d)]());return _0x8e9a76&&_0x8e9a76[_0x38f6a4(0x9e)]&&_0x8e9a76[_0x38f6a4(0x91)];}catch{}return![];}function a14_0x2d9c(){const _0x481bb3=['1141LZfyJl','71512iyfwdm','20qUBkKd','/api/auth/get-session','3kacQZL','722556zWkMHc','1339565YHxPxy','659577QpUcRe','1451020pgxFwC','2260251JEJpCd','4148286EcqQUl','json','session','user'];a14_0x2d9c=function(){return _0x481bb3;};return a14_0x2d9c();}
@@ -1 +1 @@
1
- function a15_0x1cd2(_0xcec1d6,_0xb67833){_0xcec1d6=_0xcec1d6-0x1c6;const _0x482556=a15_0x4825();let _0x1cd2e7=_0x482556[_0xcec1d6];return _0x1cd2e7;}function a15_0x4825(){const _0x58bb2b=['6655idqXTJ','Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.','87262SAteFO','7044kOyZtJ','81776pjfBXN','294ZocJwn','17237LOULRh','1016GzBLIn','81RGPqmP','7444120TuMxjm','7851qMCIgf','38QcsMnp','2144745NzaesL'];a15_0x4825=function(){return _0x58bb2b;};return a15_0x4825();}(function(_0xf64708,_0x2cf637){const _0x309860=a15_0x1cd2,_0x2f99b8=_0xf64708();while(!![]){try{const _0x1fd254=-parseInt(_0x309860(0x1c6))/0x1*(parseInt(_0x309860(0x1cb))/0x2)+parseInt(_0x309860(0x1ca))/0x3*(parseInt(_0x309860(0x1c7))/0x4)+parseInt(_0x309860(0x1cc))/0x5+parseInt(_0x309860(0x1d2))/0x6*(-parseInt(_0x309860(0x1cf))/0x7)+parseInt(_0x309860(0x1d1))/0x8*(-parseInt(_0x309860(0x1c8))/0x9)+parseInt(_0x309860(0x1c9))/0xa+parseInt(_0x309860(0x1cd))/0xb*(-parseInt(_0x309860(0x1d0))/0xc);if(_0x1fd254===_0x2cf637)break;else _0x2f99b8['push'](_0x2f99b8['shift']());}catch(_0x1afcb4){_0x2f99b8['push'](_0x2f99b8['shift']());}}}(a15_0x4825,0x6e801));export function buildLoginSuccessHtml(){const _0x2b8ff5=a15_0x1cd2,_0x49409f=_0x2b8ff5(0x1ce);return'<!doctype\x20html>\x0a<html\x20lang=\x22en\x22>\x0a<head>\x0a\x20\x20<meta\x20charset=\x22utf-8\x22>\x0a\x20\x20<meta\x20name=\x22viewport\x22\x20content=\x22width=device-width,\x20initial-scale=1\x22>\x0a\x20\x20<title>Login\x20successful\x20ยท\x20Rabetbase\x20CLI</title>\x0a\x20\x20<style>\x0a\x20\x20\x20\x20:root\x20{\x0a\x20\x20\x20\x20\x20\x20--bg0:\x20#0f1419;\x0a\x20\x20\x20\x20\x20\x20--bg1:\x20#1a2332;\x0a\x20\x20\x20\x20\x20\x20--card:\x20#ffffff;\x0a\x20\x20\x20\x20\x20\x20--text:\x20#1c2128;\x0a\x20\x20\x20\x20\x20\x20--muted:\x20#5c6570;\x0a\x20\x20\x20\x20\x20\x20--accent:\x20#2563eb;\x0a\x20\x20\x20\x20\x20\x20--accent-soft:\x20#eff6ff;\x0a\x20\x20\x20\x20\x20\x20--success:\x20#059669;\x0a\x20\x20\x20\x20\x20\x20--radius:\x2016px;\x0a\x20\x20\x20\x20\x20\x20--shadow:\x200\x2025px\x2050px\x20-12px\x20rgba(15,\x2020,\x2025,\x200.35);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20*\x20{\x20box-sizing:\x20border-box;\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20min-height:\x20100vh;\x0a\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20\x20\x20padding:\x2024px;\x0a\x20\x20\x20\x20\x20\x20font-family:\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20Roboto,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Helvetica\x20Neue\x22,\x20Arial,\x20\x22Noto\x20Sans\x22,\x20\x22PingFang\x20SC\x22,\x20\x22Microsoft\x20YaHei\x22,\x20sans-serif;\x0a\x20\x20\x20\x20\x20\x20background:\x20linear-gradient(160deg,\x20var(--bg0)\x200%,\x20var(--bg1)\x2045%,\x20#243047\x20100%);\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--text);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.card\x20{\x0a\x20\x20\x20\x20\x20\x20width:\x20100%;\x0a\x20\x20\x20\x20\x20\x20max-width:\x20420px;\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--card);\x0a\x20\x20\x20\x20\x20\x20border-radius:\x20var(--radius);\x0a\x20\x20\x20\x20\x20\x20box-shadow:\x20var(--shadow);\x0a\x20\x20\x20\x20\x20\x20padding:\x2040px\x2036px\x2032px;\x0a\x20\x20\x20\x20\x20\x20text-align:\x20center;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.icon\x20{\x0a\x20\x20\x20\x20\x20\x20width:\x2064px;\x0a\x20\x20\x20\x20\x20\x20height:\x2064px;\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x20auto\x2020px;\x0a\x20\x20\x20\x20\x20\x20border-radius:\x2050%;\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--accent-soft);\x0a\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.icon\x20svg\x20{\x20width:\x2036px;\x20height:\x2036px;\x20}\x0a\x20\x20\x20\x20h1\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x200\x2012px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x201.375rem;\x0a\x20\x20\x20\x20\x20\x20font-weight:\x20600;\x0a\x20\x20\x20\x20\x20\x20letter-spacing:\x20-0.02em;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20p.lead\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x200\x208px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.9375rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--muted);\x0a\x20\x20\x20\x20\x20\x20line-height:\x201.55;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.countdown\x20{\x0a\x20\x20\x20\x20\x20\x20display:\x20inline-flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20gap:\x206px;\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2016px;\x0a\x20\x20\x20\x20\x20\x20padding:\x208px\x2014px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.875rem;\x0a\x20\x20\x20\x20\x20\x20font-variant-numeric:\x20tabular-nums;\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--accent);\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--accent-soft);\x0a\x20\x20\x20\x20\x20\x20border-radius:\x20999px;\x0a\x20\x20\x20\x20\x20\x20font-weight:\x20500;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20#manualMsg\x20{\x0a\x20\x20\x20\x20\x20\x20display:\x20none;\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2020px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.8125rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20#b91c1c;\x0a\x20\x20\x20\x20\x20\x20line-height:\x201.45;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.cli-hint\x20{\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2028px;\x0a\x20\x20\x20\x20\x20\x20padding-top:\x2024px;\x0a\x20\x20\x20\x20\x20\x20border-top:\x201px\x20solid\x20#e8ecf0;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.75rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20#8b949e;\x0a\x20\x20\x20\x20}\x0a\x20\x20</style>\x0a</head>\x0a<body>\x0a\x20\x20<div\x20class=\x22card\x22\x20role=\x22status\x22\x20aria-live=\x22polite\x22>\x0a\x20\x20\x20\x20<div\x20class=\x22icon\x22\x20aria-hidden=\x22true\x22>\x0a\x20\x20\x20\x20\x20\x20<svg\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<circle\x20cx=\x2212\x22\x20cy=\x2212\x22\x20r=\x2210\x22\x20stroke=\x22#059669\x22\x20stroke-width=\x222\x22\x20fill=\x22none\x22/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<path\x20d=\x22M8\x2012.5l2.5\x202.5L16\x209\x22\x20stroke=\x22#059669\x22\x20stroke-width=\x222\x22\x20stroke-linecap=\x22round\x22\x20stroke-linejoin=\x22round\x22/>\x0a\x20\x20\x20\x20\x20\x20</svg>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<h1>Login\x20successful</h1>\x0a\x20\x20\x20\x20<p\x20class=\x22lead\x22>You\x20can\x20return\x20to\x20the\x20terminal\x20to\x20continue.\x20This\x20window\x20will\x20try\x20to\x20close\x20automatically.</p>\x0a\x20\x20\x20\x20<div\x20class=\x22countdown\x22>\x0a\x20\x20\x20\x20\x20\x20Closing\x20in\x20<span\x20id=\x22t\x22>5</span>s\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<div\x20id=\x22manualMsg\x22>'+_0x49409f+'</div>\x0a\x20\x20\x20\x20<p\x20class=\x22cli-hint\x22>Rabetbase\x20CLI\x20ยท\x20session\x20saved\x20locally</p>\x0a\x20\x20</div>\x0a\x20\x20<script>\x0a\x20\x20(function(){\x0a\x20\x20\x20\x20var\x20t\x20=\x205;\x0a\x20\x20\x20\x20var\x20el\x20=\x20document.getElementById(\x27t\x27);\x0a\x20\x20\x20\x20var\x20manual\x20=\x20document.getElementById(\x27manualMsg\x27);\x0a\x20\x20\x20\x20var\x20id\x20=\x20setInterval(function(){\x0a\x20\x20\x20\x20\x20\x20t--;\x0a\x20\x20\x20\x20\x20\x20if\x20(t\x20<=\x200)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20clearInterval(id);\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20\x270\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x20window.close();\x20}\x20catch(e)\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20setTimeout(function(){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(!window.closed)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20manual.style.display\x20=\x20\x27block\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20},\x20300);\x0a\x20\x20\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20String(t);\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20},\x201000);\x0a\x20\x20})();\x0a\x20\x20</script>\x0a</body>\x0a</html>';}
1
+ (function(_0x166d09,_0x4363bc){const _0x4d84da=a15_0x4a41,_0x23cb5f=_0x166d09();while(!![]){try{const _0x18dfbb=parseInt(_0x4d84da(0x7f))/0x1*(-parseInt(_0x4d84da(0x89))/0x2)+parseInt(_0x4d84da(0x83))/0x3+parseInt(_0x4d84da(0x88))/0x4*(-parseInt(_0x4d84da(0x8a))/0x5)+-parseInt(_0x4d84da(0x85))/0x6*(parseInt(_0x4d84da(0x82))/0x7)+parseInt(_0x4d84da(0x81))/0x8+-parseInt(_0x4d84da(0x84))/0x9+parseInt(_0x4d84da(0x86))/0xa;if(_0x18dfbb===_0x4363bc)break;else _0x23cb5f['push'](_0x23cb5f['shift']());}catch(_0x112622){_0x23cb5f['push'](_0x23cb5f['shift']());}}}(a15_0x70db,0xb5f55));export function buildLoginSuccessHtml(){const _0x2772d1=a15_0x4a41,_0x36d10c=_0x2772d1(0x80);return'<!doctype\x20html>\x0a<html\x20lang=\x22en\x22>\x0a<head>\x0a\x20\x20<meta\x20charset=\x22utf-8\x22>\x0a\x20\x20<meta\x20name=\x22viewport\x22\x20content=\x22width=device-width,\x20initial-scale=1\x22>\x0a\x20\x20<title>Login\x20successful\x20ยท\x20Rabetbase\x20CLI</title>\x0a\x20\x20<style>\x0a\x20\x20\x20\x20:root\x20{\x0a\x20\x20\x20\x20\x20\x20--bg0:\x20#0f1419;\x0a\x20\x20\x20\x20\x20\x20--bg1:\x20#1a2332;\x0a\x20\x20\x20\x20\x20\x20--card:\x20#ffffff;\x0a\x20\x20\x20\x20\x20\x20--text:\x20#1c2128;\x0a\x20\x20\x20\x20\x20\x20--muted:\x20#5c6570;\x0a\x20\x20\x20\x20\x20\x20--accent:\x20#2563eb;\x0a\x20\x20\x20\x20\x20\x20--accent-soft:\x20#eff6ff;\x0a\x20\x20\x20\x20\x20\x20--success:\x20#059669;\x0a\x20\x20\x20\x20\x20\x20--radius:\x2016px;\x0a\x20\x20\x20\x20\x20\x20--shadow:\x200\x2025px\x2050px\x20-12px\x20rgba(15,\x2020,\x2025,\x200.35);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20*\x20{\x20box-sizing:\x20border-box;\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20min-height:\x20100vh;\x0a\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20\x20\x20padding:\x2024px;\x0a\x20\x20\x20\x20\x20\x20font-family:\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20Roboto,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Helvetica\x20Neue\x22,\x20Arial,\x20\x22Noto\x20Sans\x22,\x20\x22PingFang\x20SC\x22,\x20\x22Microsoft\x20YaHei\x22,\x20sans-serif;\x0a\x20\x20\x20\x20\x20\x20background:\x20linear-gradient(160deg,\x20var(--bg0)\x200%,\x20var(--bg1)\x2045%,\x20#243047\x20100%);\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--text);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.card\x20{\x0a\x20\x20\x20\x20\x20\x20width:\x20100%;\x0a\x20\x20\x20\x20\x20\x20max-width:\x20420px;\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--card);\x0a\x20\x20\x20\x20\x20\x20border-radius:\x20var(--radius);\x0a\x20\x20\x20\x20\x20\x20box-shadow:\x20var(--shadow);\x0a\x20\x20\x20\x20\x20\x20padding:\x2040px\x2036px\x2032px;\x0a\x20\x20\x20\x20\x20\x20text-align:\x20center;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.icon\x20{\x0a\x20\x20\x20\x20\x20\x20width:\x2064px;\x0a\x20\x20\x20\x20\x20\x20height:\x2064px;\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x20auto\x2020px;\x0a\x20\x20\x20\x20\x20\x20border-radius:\x2050%;\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--accent-soft);\x0a\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.icon\x20svg\x20{\x20width:\x2036px;\x20height:\x2036px;\x20}\x0a\x20\x20\x20\x20h1\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x200\x2012px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x201.375rem;\x0a\x20\x20\x20\x20\x20\x20font-weight:\x20600;\x0a\x20\x20\x20\x20\x20\x20letter-spacing:\x20-0.02em;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20p.lead\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x200\x208px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.9375rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--muted);\x0a\x20\x20\x20\x20\x20\x20line-height:\x201.55;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.countdown\x20{\x0a\x20\x20\x20\x20\x20\x20display:\x20inline-flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20gap:\x206px;\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2016px;\x0a\x20\x20\x20\x20\x20\x20padding:\x208px\x2014px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.875rem;\x0a\x20\x20\x20\x20\x20\x20font-variant-numeric:\x20tabular-nums;\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--accent);\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--accent-soft);\x0a\x20\x20\x20\x20\x20\x20border-radius:\x20999px;\x0a\x20\x20\x20\x20\x20\x20font-weight:\x20500;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20#manualMsg\x20{\x0a\x20\x20\x20\x20\x20\x20display:\x20none;\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2020px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.8125rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20#b91c1c;\x0a\x20\x20\x20\x20\x20\x20line-height:\x201.45;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.cli-hint\x20{\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2028px;\x0a\x20\x20\x20\x20\x20\x20padding-top:\x2024px;\x0a\x20\x20\x20\x20\x20\x20border-top:\x201px\x20solid\x20#e8ecf0;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.75rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20#8b949e;\x0a\x20\x20\x20\x20}\x0a\x20\x20</style>\x0a</head>\x0a<body>\x0a\x20\x20<div\x20class=\x22card\x22\x20role=\x22status\x22\x20aria-live=\x22polite\x22>\x0a\x20\x20\x20\x20<div\x20class=\x22icon\x22\x20aria-hidden=\x22true\x22>\x0a\x20\x20\x20\x20\x20\x20<svg\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<circle\x20cx=\x2212\x22\x20cy=\x2212\x22\x20r=\x2210\x22\x20stroke=\x22#059669\x22\x20stroke-width=\x222\x22\x20fill=\x22none\x22/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<path\x20d=\x22M8\x2012.5l2.5\x202.5L16\x209\x22\x20stroke=\x22#059669\x22\x20stroke-width=\x222\x22\x20stroke-linecap=\x22round\x22\x20stroke-linejoin=\x22round\x22/>\x0a\x20\x20\x20\x20\x20\x20</svg>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<h1>Login\x20successful</h1>\x0a\x20\x20\x20\x20<p\x20class=\x22lead\x22>You\x20can\x20return\x20to\x20the\x20terminal\x20to\x20continue.\x20This\x20window\x20will\x20try\x20to\x20close\x20automatically.</p>\x0a\x20\x20\x20\x20<div\x20class=\x22countdown\x22>\x0a\x20\x20\x20\x20\x20\x20Closing\x20in\x20<span\x20id=\x22t\x22>5</span>s\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<div\x20id=\x22manualMsg\x22>'+_0x36d10c+_0x2772d1(0x87);}function a15_0x4a41(_0x328798,_0x2eb37f){_0x328798=_0x328798-0x7f;const _0x70db8c=a15_0x70db();let _0x4a4157=_0x70db8c[_0x328798];return _0x4a4157;}function a15_0x70db(){const _0x4e3a15=['59675wsuBCt','1380099kyEgZZ','9981801hnxKnL','192sFKfTy','33911910DWuVqF','</div>\x0a\x20\x20\x20\x20<p\x20class=\x22cli-hint\x22>Rabetbase\x20CLI\x20ยท\x20session\x20saved\x20locally</p>\x0a\x20\x20</div>\x0a\x20\x20<script>\x0a\x20\x20(function(){\x0a\x20\x20\x20\x20var\x20t\x20=\x205;\x0a\x20\x20\x20\x20var\x20el\x20=\x20document.getElementById(\x27t\x27);\x0a\x20\x20\x20\x20var\x20manual\x20=\x20document.getElementById(\x27manualMsg\x27);\x0a\x20\x20\x20\x20var\x20id\x20=\x20setInterval(function(){\x0a\x20\x20\x20\x20\x20\x20t--;\x0a\x20\x20\x20\x20\x20\x20if\x20(t\x20<=\x200)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20clearInterval(id);\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20\x270\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x20window.close();\x20}\x20catch(e)\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20setTimeout(function(){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(!window.closed)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20manual.style.display\x20=\x20\x27block\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20},\x20300);\x0a\x20\x20\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20String(t);\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20},\x201000);\x0a\x20\x20})();\x0a\x20\x20</script>\x0a</body>\x0a</html>','177048gwwyDw','1232AbJluW','50vtqnfg','2144jvAclR','Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.','314320BNnfEY'];a15_0x70db=function(){return _0x4e3a15;};return a15_0x70db();}
@@ -1 +1 @@
1
- (function(_0x224ac6,_0xe354a7){var _0x2b3f4c=a16_0x192d,_0x16e07d=_0x224ac6();while(!![]){try{var _0xc6a465=-parseInt(_0x2b3f4c(0x1e5))/0x1*(-parseInt(_0x2b3f4c(0x1e9))/0x2)+parseInt(_0x2b3f4c(0x1e3))/0x3+parseInt(_0x2b3f4c(0x1eb))/0x4+-parseInt(_0x2b3f4c(0x1e0))/0x5+-parseInt(_0x2b3f4c(0x1e1))/0x6*(-parseInt(_0x2b3f4c(0x1e2))/0x7)+-parseInt(_0x2b3f4c(0x1e6))/0x8*(-parseInt(_0x2b3f4c(0x1ec))/0x9)+parseInt(_0x2b3f4c(0x1e7))/0xa*(-parseInt(_0x2b3f4c(0x1df))/0xb);if(_0xc6a465===_0xe354a7)break;else _0x16e07d['push'](_0x16e07d['shift']());}catch(_0x14b6fb){_0x16e07d['push'](_0x16e07d['shift']());}}}(a16_0x2001,0x756af));import{unlinkSync,existsSync}from'node:fs';function a16_0x192d(_0x51ada1,_0x465bcb){_0x51ada1=_0x51ada1-0x1df;var _0x200110=a16_0x2001();var _0x192d5a=_0x200110[_0x51ada1];return _0x192d5a;}import{cookieFile}from'../auth/constant.js';export function logout(){var _0x1778b5=a16_0x192d;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x1778b5(0x1e4)](_0x1778b5(0x1e8))):console[_0x1778b5(0x1e4)](_0x1778b5(0x1ea));}function a16_0x2001(){var _0x580e84=['โœ“\x20Logged\x20out','2HHchka','!\x20Not\x20logged\x20in','2483676nPFWES','288ufBjeH','22toFAEy','3830195dlSjoD','6RKivEo','1675702PrrUGV','1517481OnWIis','log','759454ltkqRo','109336CEcONZ','6579740tTajqI'];a16_0x2001=function(){return _0x580e84;};return a16_0x2001();}
1
+ function a16_0x8952(){var _0x31878c=['198568ycrjCU','43317KZpfzr','140940PPjfwi','3gwngsh','980290qbnvma','573562FzAAne','โœ“\x20Logged\x20out','log','!\x20Not\x20logged\x20in','25148DtbFFz','21MJoJNw','181266UlZDbv','40BLesOx','1tLHTVA'];a16_0x8952=function(){return _0x31878c;};return a16_0x8952();}function a16_0x2832(_0x1b8da1,_0x52e3e3){_0x1b8da1=_0x1b8da1-0xa7;var _0x89525=a16_0x8952();var _0x2832e9=_0x89525[_0x1b8da1];return _0x2832e9;}(function(_0x245ad7,_0x1ed0bc){var _0xde6d12=a16_0x2832,_0x41b941=_0x245ad7();while(!![]){try{var _0x4ac168=parseInt(_0xde6d12(0xaa))/0x1*(parseInt(_0xde6d12(0xad))/0x2)+parseInt(_0xde6d12(0xae))/0x3*(-parseInt(_0xde6d12(0xb4))/0x4)+parseInt(_0xde6d12(0xaf))/0x5+parseInt(_0xde6d12(0xa8))/0x6*(-parseInt(_0xde6d12(0xa7))/0x7)+parseInt(_0xde6d12(0xab))/0x8+-parseInt(_0xde6d12(0xac))/0x9*(parseInt(_0xde6d12(0xa9))/0xa)+-parseInt(_0xde6d12(0xb0))/0xb;if(_0x4ac168===_0x1ed0bc)break;else _0x41b941['push'](_0x41b941['shift']());}catch(_0x5c33dd){_0x41b941['push'](_0x41b941['shift']());}}}(a16_0x8952,0x1e09b));import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export function logout(){var _0x1640a1=a16_0x2832;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x1640a1(0xb2)](_0x1640a1(0xb1))):console[_0x1640a1(0xb2)](_0x1640a1(0xb3));}