@lovrabet/rabetbase-cli 2.5.3-beta.4 → 2.5.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 (352) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/index.js +1 -1
  26. package/lib/commands/app/list.js +1 -1
  27. package/lib/commands/app/members-list.js +1 -1
  28. package/lib/commands/app/remote-directory.js +1 -1
  29. package/lib/commands/app/shared.js +1 -1
  30. package/lib/commands/app-config/delete.js +1 -1
  31. package/lib/commands/app-config/get.js +1 -1
  32. package/lib/commands/app-config/index.js +1 -1
  33. package/lib/commands/app-config/list.js +1 -1
  34. package/lib/commands/app-config/set.js +1 -1
  35. package/lib/commands/app-config/shared.js +1 -1
  36. package/lib/commands/auth/index.js +1 -1
  37. package/lib/commands/bff/create.js +1 -1
  38. package/lib/commands/bff/delete.js +1 -1
  39. package/lib/commands/bff/detail.js +1 -1
  40. package/lib/commands/bff/index.js +1 -1
  41. package/lib/commands/bff/list.js +1 -1
  42. package/lib/commands/bff/logs.js +1 -1
  43. package/lib/commands/bff/pull.js +1 -1
  44. package/lib/commands/bff/push.js +1 -1
  45. package/lib/commands/bff/status.js +1 -1
  46. package/lib/commands/cli-skill/index.js +1 -1
  47. package/lib/commands/cli-update.js +1 -1
  48. package/lib/commands/codegen/index.js +1 -1
  49. package/lib/commands/codegen/sdk.js +1 -1
  50. package/lib/commands/codegen/sql.js +1 -1
  51. package/lib/commands/common/app-registry.js +1 -1
  52. package/lib/commands/common/app-selector.js +1 -1
  53. package/lib/commands/common/async-task.js +1 -1
  54. package/lib/commands/common/dry-run.js +1 -1
  55. package/lib/commands/common/flags.js +1 -1
  56. package/lib/commands/common/local-file.js +1 -1
  57. package/lib/commands/common/validate.js +1 -1
  58. package/lib/commands/config/delete.js +1 -1
  59. package/lib/commands/config/get.js +1 -1
  60. package/lib/commands/config/index.js +1 -1
  61. package/lib/commands/config/init.js +1 -1
  62. package/lib/commands/config/list.js +1 -1
  63. package/lib/commands/config/set.js +1 -1
  64. package/lib/commands/config/shared.js +1 -1
  65. package/lib/commands/dataset/batch-design.js +1 -1
  66. package/lib/commands/dataset/business-group-update.js +1 -1
  67. package/lib/commands/dataset/business-groups.js +1 -1
  68. package/lib/commands/dataset/capability.js +1 -1
  69. package/lib/commands/dataset/cross-relation-create.js +1 -1
  70. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  71. package/lib/commands/dataset/cross-relation-list.js +1 -1
  72. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  73. package/lib/commands/dataset/cross-relation-update.js +1 -1
  74. package/lib/commands/dataset/delete.js +1 -1
  75. package/lib/commands/dataset/detail.js +1 -1
  76. package/lib/commands/dataset/extend-update.js +1 -1
  77. package/lib/commands/dataset/field-restore.js +1 -1
  78. package/lib/commands/dataset/field-update.js +1 -1
  79. package/lib/commands/dataset/generate.js +1 -1
  80. package/lib/commands/dataset/index.js +1 -1
  81. package/lib/commands/dataset/list.js +1 -1
  82. package/lib/commands/dataset/operations.js +1 -1
  83. package/lib/commands/dataset/relation-audit.js +1 -1
  84. package/lib/commands/dataset/relation-create.js +1 -1
  85. package/lib/commands/dataset/relation-delete.js +1 -1
  86. package/lib/commands/dataset/relation-shared.js +1 -1
  87. package/lib/commands/dataset/relation-update.js +1 -1
  88. package/lib/commands/dataset/relations.js +1 -1
  89. package/lib/commands/dataset/rename.js +1 -1
  90. package/lib/commands/dataset/restore.js +1 -1
  91. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  92. package/lib/commands/db/analysis-batching.js +1 -1
  93. package/lib/commands/db/analyze-batch-plan.js +1 -1
  94. package/lib/commands/db/analyze-cancel.js +1 -1
  95. package/lib/commands/db/analyze-start.js +1 -1
  96. package/lib/commands/db/analyze-status.js +1 -1
  97. package/lib/commands/db/create.js +1 -1
  98. package/lib/commands/db/delete.js +1 -1
  99. package/lib/commands/db/detail.js +1 -1
  100. package/lib/commands/db/diff-refresh-start.js +1 -1
  101. package/lib/commands/db/diff-refresh-status.js +1 -1
  102. package/lib/commands/db/diff.js +1 -1
  103. package/lib/commands/db/index.js +1 -1
  104. package/lib/commands/db/list.js +1 -1
  105. package/lib/commands/db/shared.js +1 -1
  106. package/lib/commands/db/table-diff-shared.js +1 -1
  107. package/lib/commands/db/tables.js +1 -1
  108. package/lib/commands/db/test.js +1 -1
  109. package/lib/commands/db/update.js +1 -1
  110. package/lib/commands/deployment/index.js +1 -1
  111. package/lib/commands/deployment/sync-all.js +1 -1
  112. package/lib/commands/deployment/sync-jobs.js +1 -1
  113. package/lib/commands/deployment/sync-status.js +1 -1
  114. package/lib/commands/doctor.js +1 -1
  115. package/lib/commands/file/index.js +1 -1
  116. package/lib/commands/flow/create.js +1 -1
  117. package/lib/commands/flow/detail.js +1 -1
  118. package/lib/commands/flow/index.js +1 -1
  119. package/lib/commands/flow/list.js +1 -1
  120. package/lib/commands/flow/publish.js +1 -1
  121. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  122. package/lib/commands/flow/runtime-role-list.js +1 -1
  123. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  124. package/lib/commands/flow/runtime-user-search.js +1 -1
  125. package/lib/commands/flow/shared.js +1 -1
  126. package/lib/commands/flow/update.js +1 -1
  127. package/lib/commands/flow/validate.js +1 -1
  128. package/lib/commands/instant-api-policy/current.js +1 -1
  129. package/lib/commands/instant-api-policy/index.js +1 -1
  130. package/lib/commands/instant-api-policy/init.js +1 -1
  131. package/lib/commands/instant-api-policy/publish.js +1 -1
  132. package/lib/commands/instant-api-policy/pull.js +1 -1
  133. package/lib/commands/instant-api-policy/revision.js +1 -1
  134. package/lib/commands/instant-api-policy/revisions.js +1 -1
  135. package/lib/commands/instant-api-policy/rollback.js +1 -1
  136. package/lib/commands/instant-api-policy/shared.js +1 -1
  137. package/lib/commands/instant-api-policy/validate.js +1 -1
  138. package/lib/commands/issue/index.js +1 -1
  139. package/lib/commands/issue/nudge.js +1 -1
  140. package/lib/commands/issue/report.js +1 -1
  141. package/lib/commands/issue/shared.js +1 -1
  142. package/lib/commands/kb/create.js +1 -1
  143. package/lib/commands/kb/delete.js +1 -1
  144. package/lib/commands/kb/detail.js +1 -1
  145. package/lib/commands/kb/index.js +1 -1
  146. package/lib/commands/kb/list.js +1 -1
  147. package/lib/commands/kb/search.js +1 -1
  148. package/lib/commands/kb/shared.js +1 -1
  149. package/lib/commands/kb/update.js +1 -1
  150. package/lib/commands/logs/index.js +1 -1
  151. package/lib/commands/menu/asset-update.js +1 -1
  152. package/lib/commands/menu/delete.js +1 -1
  153. package/lib/commands/menu/external-link-create.js +1 -1
  154. package/lib/commands/menu/external-link-update.js +1 -1
  155. package/lib/commands/menu/group-create.js +1 -1
  156. package/lib/commands/menu/group-update.js +1 -1
  157. package/lib/commands/menu/index.js +1 -1
  158. package/lib/commands/menu/list.js +1 -1
  159. package/lib/commands/menu/move.js +1 -1
  160. package/lib/commands/menu/regroup-start.js +1 -1
  161. package/lib/commands/menu/rename.js +1 -1
  162. package/lib/commands/menu/shared/compare-table.js +1 -1
  163. package/lib/commands/menu/shared/delete-plan.js +1 -1
  164. package/lib/commands/menu/shared/facts.js +1 -1
  165. package/lib/commands/menu/shared/index.js +1 -1
  166. package/lib/commands/menu/shared/inquirer.js +1 -1
  167. package/lib/commands/menu/shared/local-pages.js +1 -1
  168. package/lib/commands/menu/shared/logic.js +1 -1
  169. package/lib/commands/menu/shared/mutations.js +1 -1
  170. package/lib/commands/menu/shared/service.js +1 -1
  171. package/lib/commands/menu/shared/sync-core.js +1 -1
  172. package/lib/commands/menu/shared/update-core.js +1 -1
  173. package/lib/commands/menu/shared/valid-url.js +1 -1
  174. package/lib/commands/menu/sync.js +1 -1
  175. package/lib/commands/menu/visibility-update.js +1 -1
  176. package/lib/commands/notification/config-create.js +1 -1
  177. package/lib/commands/notification/config-delete.js +1 -1
  178. package/lib/commands/notification/config-list.js +1 -1
  179. package/lib/commands/notification/config-update.js +1 -1
  180. package/lib/commands/notification/index.js +1 -1
  181. package/lib/commands/notification/shared.js +1 -1
  182. package/lib/commands/ocr/index.js +1 -1
  183. package/lib/commands/page/create.js +1 -1
  184. package/lib/commands/page/custom/detail.js +1 -1
  185. package/lib/commands/page/custom/list.js +1 -1
  186. package/lib/commands/page/custom/publish.js +1 -1
  187. package/lib/commands/page/custom/shared.js +1 -1
  188. package/lib/commands/page/custom/syntax.js +1 -1
  189. package/lib/commands/page/custom/update.js +1 -1
  190. package/lib/commands/page/data-list-status.js +1 -1
  191. package/lib/commands/page/generate-start.js +1 -1
  192. package/lib/commands/page/generate-status.js +1 -1
  193. package/lib/commands/page/index.js +1 -1
  194. package/lib/commands/page/pull.js +1 -1
  195. package/lib/commands/page/push.js +1 -1
  196. package/lib/commands/page/relation-audit.js +1 -1
  197. package/lib/commands/page/restore.js +1 -1
  198. package/lib/commands/page/shared.js +1 -1
  199. package/lib/commands/page/sync.js +1 -1
  200. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  201. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  202. package/lib/commands/project/create/format-elapsed.js +1 -1
  203. package/lib/commands/project/create/main.js +1 -1
  204. package/lib/commands/project/create/materialize-project-template.js +1 -1
  205. package/lib/commands/project/create/project-name.js +1 -1
  206. package/lib/commands/project/create/project-template-archive.js +1 -1
  207. package/lib/commands/project/create/project-template-path.js +1 -1
  208. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  209. package/lib/commands/project/create/use-format-code.js +1 -1
  210. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  211. package/lib/commands/project/domain-routing-sync.js +1 -1
  212. package/lib/commands/project/index.js +1 -1
  213. package/lib/commands/project/upgrade.js +1 -1
  214. package/lib/commands/registry.js +1 -1
  215. package/lib/commands/role/delete.js +1 -1
  216. package/lib/commands/role/detail.js +1 -1
  217. package/lib/commands/role/index.js +1 -1
  218. package/lib/commands/role/list.js +1 -1
  219. package/lib/commands/role/shared.js +1 -1
  220. package/lib/commands/role/update.js +1 -1
  221. package/lib/commands/role/user-add.js +1 -1
  222. package/lib/commands/role/user-remove.js +1 -1
  223. package/lib/commands/role/user-resolve.js +1 -1
  224. package/lib/commands/rule/get.js +1 -1
  225. package/lib/commands/rule/index.js +1 -1
  226. package/lib/commands/rule/list.js +1 -1
  227. package/lib/commands/rule/set.js +1 -1
  228. package/lib/commands/rule/shared.js +1 -1
  229. package/lib/commands/run/index.js +1 -1
  230. package/lib/commands/schema.js +1 -1
  231. package/lib/commands/sql/create.js +1 -1
  232. package/lib/commands/sql/delete.js +1 -1
  233. package/lib/commands/sql/detail.js +1 -1
  234. package/lib/commands/sql/exec.js +1 -1
  235. package/lib/commands/sql/index.js +1 -1
  236. package/lib/commands/sql/list.js +1 -1
  237. package/lib/commands/sql/pull.js +1 -1
  238. package/lib/commands/sql/push.js +1 -1
  239. package/lib/commands/sql/shared.js +1 -1
  240. package/lib/commands/sql/status.js +1 -1
  241. package/lib/commands/sql/validate.js +1 -1
  242. package/lib/commands/task/index.js +1 -1
  243. package/lib/commands/task/status.js +1 -1
  244. package/lib/commands/tenant/index.js +1 -1
  245. package/lib/commands/tenant/members-list.js +1 -1
  246. package/lib/commands/tenant/shared.js +1 -1
  247. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  248. package/lib/commands/user-account/index.js +1 -1
  249. package/lib/commands/workspace/add.js +1 -1
  250. package/lib/commands/workspace/index.js +1 -1
  251. package/lib/commands/workspace/remove.js +1 -1
  252. package/lib/config/domain-config.js +1 -1
  253. package/lib/config/project-domain-routing.js +1 -1
  254. package/lib/config/region-config.js +1 -1
  255. package/lib/config/schema.js +1 -1
  256. package/lib/constant/cdn.js +1 -1
  257. package/lib/constant/cli.js +1 -1
  258. package/lib/constant/defaults.js +1 -1
  259. package/lib/constant/domain.js +1 -1
  260. package/lib/constant/env.js +1 -1
  261. package/lib/constant/output.js +1 -1
  262. package/lib/constant/paths.js +1 -1
  263. package/lib/constant/region.js +1 -1
  264. package/lib/constant/risk.js +1 -1
  265. package/lib/constant/routing-profile.js +1 -1
  266. package/lib/context/app-resolver.js +1 -1
  267. package/lib/context/auth-resolver.js +1 -1
  268. package/lib/context/config-loader.js +1 -1
  269. package/lib/context.js +1 -1
  270. package/lib/core/alias-resolver.js +1 -1
  271. package/lib/core/api-client.js +1 -1
  272. package/lib/core/bff/config.js +1 -1
  273. package/lib/core/bff/file-system.js +1 -1
  274. package/lib/core/bff/hash.js +1 -1
  275. package/lib/core/bff/hook-directory.js +1 -1
  276. package/lib/core/bff/lock.js +1 -1
  277. package/lib/core/bff/utils.js +1 -1
  278. package/lib/core/cross-db-relation.js +1 -1
  279. package/lib/core/db-resolver.js +1 -1
  280. package/lib/core/flow-config.js +1 -1
  281. package/lib/core/instant-api-policy/config.js +1 -1
  282. package/lib/core/kb-search-client.js +1 -1
  283. package/lib/core/page/file-system.js +1 -1
  284. package/lib/core/page/hash.js +1 -1
  285. package/lib/core/page/lock.js +1 -1
  286. package/lib/core/page/lr-smart-jsx.js +1 -1
  287. package/lib/core/sql-index-auditor.js +1 -1
  288. package/lib/core/sql-sync/config.js +1 -1
  289. package/lib/core/sql-sync/file-system.js +1 -1
  290. package/lib/core/sql-sync/hash.js +1 -1
  291. package/lib/core/sql-sync/lock.js +1 -1
  292. package/lib/core/sql-sync/utils.js +1 -1
  293. package/lib/core/sql-validator.js +1 -1
  294. package/lib/errors.js +1 -1
  295. package/lib/framework/build-all-flags.js +1 -1
  296. package/lib/framework/error-output.js +1 -1
  297. package/lib/framework/explicit-yes.js +1 -1
  298. package/lib/framework/flags.js +1 -1
  299. package/lib/framework/help.js +1 -1
  300. package/lib/framework/index.js +1 -1
  301. package/lib/framework/output.js +1 -1
  302. package/lib/framework/response.js +1 -1
  303. package/lib/framework/runner-alias.js +1 -1
  304. package/lib/framework/runner.js +1 -1
  305. package/lib/framework/schema-export.js +1 -1
  306. package/lib/framework/supported-flags.js +1 -1
  307. package/lib/framework/types.js +1 -1
  308. package/lib/generated/build-info.d.ts +4 -4
  309. package/lib/generated/build-info.js +1 -1
  310. package/lib/generated/official-routing.js +1 -1
  311. package/lib/generated/routing-contract.js +1 -1
  312. package/lib/help.js +1 -1
  313. package/lib/postinstall.js +1 -1
  314. package/lib/runtime/confirmation.js +1 -1
  315. package/lib/runtime/event.js +1 -1
  316. package/lib/runtime/index.js +1 -1
  317. package/lib/runtime/queue.js +1 -1
  318. package/lib/runtime/resolve.js +1 -1
  319. package/lib/skills/builtin-skill.js +1 -1
  320. package/lib/skills/main.js +1 -1
  321. package/lib/skills/npx-skills-add.js +1 -1
  322. package/lib/skills/skill-presence.js +1 -1
  323. package/lib/telemetry/cli-command-trace.js +1 -1
  324. package/lib/telemetry/cli-help-trace.js +1 -1
  325. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  326. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  327. package/lib/telemetry/send-cli-trace-log.js +1 -1
  328. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  329. package/lib/utils/ai_config.js +1 -1
  330. package/lib/utils/apply-jq-filter.js +1 -1
  331. package/lib/utils/cdn-config.js +1 -1
  332. package/lib/utils/check-sdk-version.js +1 -1
  333. package/lib/utils/cli-version-check.js +1 -1
  334. package/lib/utils/cli-version-policy.js +1 -1
  335. package/lib/utils/config.js +1 -1
  336. package/lib/utils/entity-with-id.js +1 -1
  337. package/lib/utils/file-utils.js +1 -1
  338. package/lib/utils/guides-cdn.js +1 -1
  339. package/lib/utils/http-client.js +1 -1
  340. package/lib/utils/is-non-interactive.js +1 -1
  341. package/lib/utils/logger.js +1 -1
  342. package/lib/utils/params.js +1 -1
  343. package/lib/utils/platform.js +1 -1
  344. package/lib/utils/sleep.js +1 -1
  345. package/lib/utils/template-replacer.js +1 -1
  346. package/lib/utils/update-notice.js +1 -1
  347. package/lib/utils/version.js +1 -1
  348. package/lib/utils/with-active-cookie.js +1 -1
  349. package/lib/utils/write-cli-side-channel.js +1 -1
  350. package/package.json +1 -1
  351. package/skills/rabetbase/SKILL.md +1 -1
  352. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a0_0x53eb52=a0_0x39bc;(function(_0x3a2d37,_0x439dd9){const _0x3aa3bd=a0_0x39bc,_0x73d5b=_0x3a2d37();while(!![]){try{const _0x580f75=-parseInt(_0x3aa3bd(0x1ca))/0x1*(parseInt(_0x3aa3bd(0x1dc))/0x2)+-parseInt(_0x3aa3bd(0x1ce))/0x3*(parseInt(_0x3aa3bd(0x1d3))/0x4)+parseInt(_0x3aa3bd(0x1cc))/0x5*(parseInt(_0x3aa3bd(0x1db))/0x6)+parseInt(_0x3aa3bd(0x1d5))/0x7+parseInt(_0x3aa3bd(0x1d7))/0x8*(-parseInt(_0x3aa3bd(0x1e0))/0x9)+parseInt(_0x3aa3bd(0x1e6))/0xa*(-parseInt(_0x3aa3bd(0x1e5))/0xb)+-parseInt(_0x3aa3bd(0x1df))/0xc*(-parseInt(_0x3aa3bd(0x1dd))/0xd);if(_0x580f75===_0x439dd9)break;else _0x73d5b['push'](_0x73d5b['shift']());}catch(_0x26b7e2){_0x73d5b['push'](_0x73d5b['shift']());}}}(a0_0x28c5,0xa1614));function a0_0x28c5(){const _0x50dd1a=['✗\x20Failed:\x20','5coGtNU','Failed\x20to\x20generate\x20docs:\x20','3657261URZmgT','error','.md\x20-\x20','success','push','4RSDMxk','✓\x20Generated:\x20','7570003bMyQGm','length','8OZmbcX','log','./docs','Generated\x20docs\x20successfully:\x20','2512482DcPbZQ','3508WgskZp','1310777seADOO','api-doc','96UzZYyX','1221759pyMLSc','.md','datasetCode',']\x20Generating:\x20','utf8','121EsevSk','26920oleQji','.md\x20(','name','tableName','\x20datasets\x20to\x20generate\x20docs\x20for\x0a','149oIhtHA'];a0_0x28c5=function(){return _0x50dd1a;};return a0_0x28c5();}import{mkdirSync,writeFileSync}from'node:fs';import a0_0x1d00b8 from'node:path';import{fetchDatasetDoc}from'../core/api-client.js';import{logger}from'../utils/logger.js';export{fetchDatasetDoc}from'../core/api-client.js';function a0_0x39bc(_0x3daaaa,_0x239d7a){_0x3daaaa=_0x3daaaa-0x1c9;const _0x28c59f=a0_0x28c5();let _0x39bcda=_0x28c59f[_0x3daaaa];return _0x39bcda;}function delay(_0x40b997){return new Promise(_0x43be6b=>setTimeout(_0x43be6b,_0x40b997));}export async function generateDatasetDocs(_0x529e2b,_0x583289,_0x43e426,_0x28352f=a0_0x53eb52(0x1d9),_0x6f85c4,_0x340b58){const _0x40dd96=a0_0x53eb52;mkdirSync(_0x28352f,{'recursive':!![]});const _0x2f77eb=[],_0x32f6fa=_0x529e2b[_0x40dd96(0x1d6)];console['log']('\x0a'+_0x32f6fa+_0x40dd96(0x1c9));for(let _0x361908=0x0;_0x361908<_0x529e2b[_0x40dd96(0x1d6)];_0x361908++){const _0x33c543=_0x529e2b[_0x361908],_0x320d85=_0x361908+0x1,_0x56798f=_0x33c543[_0x40dd96(0x1e9)];try{console[_0x40dd96(0x1d8)]('['+_0x320d85+'/'+_0x32f6fa+_0x40dd96(0x1e3)+_0x56798f+_0x40dd96(0x1e7)+_0x33c543['name']+')');if(_0x6f85c4)_0x6f85c4(_0x320d85,_0x32f6fa,_0x56798f);const _0x2eed45=await fetchDatasetDoc({'appCode':_0x583289,'cookie':_0x43e426,'datasetCode':_0x33c543[_0x40dd96(0x1e2)],'datasetId':_0x33c543['id'],'enableAI':![],'extraParams':_0x340b58}),_0xe8d2d1=a0_0x1d00b8['join'](_0x28352f,_0x56798f+_0x40dd96(0x1e1));writeFileSync(_0xe8d2d1,_0x2eed45,{'encoding':_0x40dd96(0x1e4)}),console[_0x40dd96(0x1d8)](_0x40dd96(0x1d4)+_0x56798f+_0x40dd96(0x1e1)),logger[_0x40dd96(0x1d1)](_0x40dd96(0x1de),_0x40dd96(0x1da)+_0x56798f,undefined,{'datasetCode':_0x33c543[_0x40dd96(0x1e2)],'datasetName':_0x33c543['name'],'filePath':_0xe8d2d1,'progress':_0x320d85+'/'+_0x32f6fa}),_0x2f77eb[_0x40dd96(0x1d2)]({'datasetCode':_0x33c543[_0x40dd96(0x1e2)],'datasetName':_0x33c543[_0x40dd96(0x1e8)],'filePath':_0xe8d2d1,'success':!![]});if(_0x320d85<_0x32f6fa)await delay(0x1388);}catch(_0x38ab02){const _0x2145e9=_0x38ab02 instanceof Error?_0x38ab02['message']:String(_0x38ab02);console[_0x40dd96(0x1d8)](_0x40dd96(0x1cb)+_0x56798f+_0x40dd96(0x1d0)+_0x2145e9),logger[_0x40dd96(0x1cf)]('api-doc',_0x40dd96(0x1cd)+_0x33c543[_0x40dd96(0x1e2)],{'datasetCode':_0x33c543[_0x40dd96(0x1e2)],'datasetName':_0x33c543[_0x40dd96(0x1e8)],'error':_0x2145e9,'progress':_0x320d85+'/'+_0x32f6fa}),_0x2f77eb['push']({'datasetCode':_0x33c543[_0x40dd96(0x1e2)],'datasetName':_0x33c543[_0x40dd96(0x1e8)],'filePath':'','success':![],'error':_0x2145e9}),_0x320d85<_0x32f6fa&&(console[_0x40dd96(0x1d8)]('Waiting\x203\x20seconds...\x0a'),await delay(0xbb8));}}return _0x2f77eb;}
1
+ function a0_0x2320(){const _0x2433d5=['5ReWrYV','Failed\x20to\x20generate\x20docs:\x20','2muVlod','api-doc','error','16cjJgZd','✗\x20Failed:\x20','.md\x20-\x20','utf8','length','tableName','datasetCode','4810976LBuAIP','Waiting\x203\x20seconds...\x0a','message','1233550ecSzgs','4746192cTtBsq','.md\x20(','join','9Rjlaqa','log','push','1847964EFGhAJ','.md','name','./docs','3678633ZzpJXi','3713830FTNPYg','99jYqADc','987594iiIINM'];a0_0x2320=function(){return _0x2433d5;};return a0_0x2320();}const a0_0xefd7ba=a0_0x3c33;(function(_0x2fc285,_0x5b4dc6){const _0x5b0472=a0_0x3c33,_0x325015=_0x2fc285();while(!![]){try{const _0x4faa22=parseInt(_0x5b0472(0xe5))/0x1*(-parseInt(_0x5b0472(0xf6))/0x2)+-parseInt(_0x5b0472(0xf3))/0x3+parseInt(_0x5b0472(0xe2))/0x4+-parseInt(_0x5b0472(0xf4))/0x5*(parseInt(_0x5b0472(0xe6))/0x6)+-parseInt(_0x5b0472(0xf0))/0x7*(-parseInt(_0x5b0472(0xf9))/0x8)+parseInt(_0x5b0472(0xe9))/0x9*(-parseInt(_0x5b0472(0xf1))/0xa)+-parseInt(_0x5b0472(0xf2))/0xb*(-parseInt(_0x5b0472(0xec))/0xc);if(_0x4faa22===_0x5b4dc6)break;else _0x325015['push'](_0x325015['shift']());}catch(_0x26fbd8){_0x325015['push'](_0x325015['shift']());}}}(a0_0x2320,0xdf4a0));function a0_0x3c33(_0x357a6b,_0x1f87f7){_0x357a6b=_0x357a6b-0xdd;const _0x2320d4=a0_0x2320();let _0x3c338f=_0x2320d4[_0x357a6b];return _0x3c338f;}import{mkdirSync,writeFileSync}from'node:fs';import a0_0xbba073 from'node:path';import{fetchDatasetDoc}from'../core/api-client.js';import{logger}from'../utils/logger.js';export{fetchDatasetDoc}from'../core/api-client.js';function delay(_0x1a29ed){return new Promise(_0x29aec6=>setTimeout(_0x29aec6,_0x1a29ed));}export async function generateDatasetDocs(_0x4f5fd6,_0x5c486a,_0x90c8d2,_0x17cc89=a0_0xefd7ba(0xef),_0x2c4128,_0x2218f1){const _0x4cc01f=a0_0xefd7ba;mkdirSync(_0x17cc89,{'recursive':!![]});const _0x18b67e=[],_0xdd8176=_0x4f5fd6[_0x4cc01f(0xdf)];console[_0x4cc01f(0xea)]('\x0a'+_0xdd8176+'\x20datasets\x20to\x20generate\x20docs\x20for\x0a');for(let _0x362cb2=0x0;_0x362cb2<_0x4f5fd6[_0x4cc01f(0xdf)];_0x362cb2++){const _0x190bb0=_0x4f5fd6[_0x362cb2],_0x1d82a0=_0x362cb2+0x1,_0x267eb2=_0x190bb0[_0x4cc01f(0xe0)];try{console[_0x4cc01f(0xea)]('['+_0x1d82a0+'/'+_0xdd8176+']\x20Generating:\x20'+_0x267eb2+_0x4cc01f(0xe7)+_0x190bb0[_0x4cc01f(0xee)]+')');if(_0x2c4128)_0x2c4128(_0x1d82a0,_0xdd8176,_0x267eb2);const _0x21dcc0=await fetchDatasetDoc({'appCode':_0x5c486a,'cookie':_0x90c8d2,'datasetCode':_0x190bb0[_0x4cc01f(0xe1)],'datasetId':_0x190bb0['id'],'enableAI':![],'extraParams':_0x2218f1}),_0x28ef08=a0_0xbba073[_0x4cc01f(0xe8)](_0x17cc89,_0x267eb2+_0x4cc01f(0xed));writeFileSync(_0x28ef08,_0x21dcc0,{'encoding':_0x4cc01f(0xde)}),console[_0x4cc01f(0xea)]('✓\x20Generated:\x20'+_0x267eb2+_0x4cc01f(0xed)),logger['success'](_0x4cc01f(0xf7),'Generated\x20docs\x20successfully:\x20'+_0x267eb2,undefined,{'datasetCode':_0x190bb0[_0x4cc01f(0xe1)],'datasetName':_0x190bb0[_0x4cc01f(0xee)],'filePath':_0x28ef08,'progress':_0x1d82a0+'/'+_0xdd8176}),_0x18b67e['push']({'datasetCode':_0x190bb0['datasetCode'],'datasetName':_0x190bb0[_0x4cc01f(0xee)],'filePath':_0x28ef08,'success':!![]});if(_0x1d82a0<_0xdd8176)await delay(0x1388);}catch(_0x5e0c18){const _0x443eb0=_0x5e0c18 instanceof Error?_0x5e0c18[_0x4cc01f(0xe4)]:String(_0x5e0c18);console['log'](_0x4cc01f(0xfa)+_0x267eb2+_0x4cc01f(0xdd)+_0x443eb0),logger[_0x4cc01f(0xf8)]('api-doc',_0x4cc01f(0xf5)+_0x190bb0['datasetCode'],{'datasetCode':_0x190bb0[_0x4cc01f(0xe1)],'datasetName':_0x190bb0[_0x4cc01f(0xee)],'error':_0x443eb0,'progress':_0x1d82a0+'/'+_0xdd8176}),_0x18b67e[_0x4cc01f(0xeb)]({'datasetCode':_0x190bb0[_0x4cc01f(0xe1)],'datasetName':_0x190bb0[_0x4cc01f(0xee)],'filePath':'','success':![],'error':_0x443eb0}),_0x1d82a0<_0xdd8176&&(console['log'](_0x4cc01f(0xe3)),await delay(0xbb8));}}return _0x18b67e;}
@@ -1 +1 @@
1
- function a1_0x477e(_0x751f59,_0x4208ae){_0x751f59=_0x751f59-0xd8;const _0x2ca70a=a1_0x2ca7();let _0x477e6d=_0x2ca70a[_0x751f59];return _0x477e6d;}const a1_0x3b8c32=a1_0x477e;(function(_0x1863ff,_0x3d2dd8){const _0x54be66=a1_0x477e,_0x180244=_0x1863ff();while(!![]){try{const _0x1528ef=parseInt(_0x54be66(0xdb))/0x1+-parseInt(_0x54be66(0xe4))/0x2*(-parseInt(_0x54be66(0xee))/0x3)+parseInt(_0x54be66(0xe7))/0x4*(parseInt(_0x54be66(0xea))/0x5)+parseInt(_0x54be66(0xf5))/0x6+-parseInt(_0x54be66(0xec))/0x7+-parseInt(_0x54be66(0xeb))/0x8+parseInt(_0x54be66(0xde))/0x9;if(_0x1528ef===_0x3d2dd8)break;else _0x180244['push'](_0x180244['shift']());}catch(_0x341dbc){_0x180244['push'](_0x180244['shift']());}}}(a1_0x2ca7,0xdc0ac));import a1_0x536c3a from'node:path';import{CliErrors}from'../errors.js';export function normalizeApiDir(_0x540a1d,_0x180bf7=process[a1_0x3b8c32(0xf0)]()){return a1_0x536c3a['resolve'](_0x180bf7,_0x540a1d);}function normalizedApiGroup(_0x58361d){const _0x4fbe2c=a1_0x3b8c32,_0x35d77e=_0x58361d?.[_0x4fbe2c(0xf7)]();return _0x35d77e||undefined;}function a1_0x2ca7(){const _0x15b39a=['API\x20directory\x20\x22','Profiles\x20in\x20the\x20same\x20API\x20group\x20must\x20use\x20the\x20same\x20apiDir.','app','get','1739076OGeBaS','filter','trim','API\x20group\x20\x22','size','values','810641QsspDJ','add','name','14000571pgvyRt','\x22\x20is\x20assigned\x20to\x20incompatible\x20API\x20groups.','.\x20Use\x20a\x20different\x20apiDir\x20for\x20a\x20separate\x20API.','join','apiGroup','set','99802haCVyu','outputDir','\x22\x20resolves\x20to\x20multiple\x20API\x20directories.','3504wvWnFI','normalizedApiDir','map','210ohHohv','5513160qqQWjh','12258218DTNWIp','validation','39URaKuy','length','cwd'];a1_0x2ca7=function(){return _0x15b39a;};return a1_0x2ca7();}export function resolveApiProfileLayouts(_0x281f87,_0x518ddc,_0xd1adb2=process[a1_0x3b8c32(0xf0)]()){const _0x35bf29=a1_0x3b8c32,_0x4fa21d=_0x281f87[_0x35bf29(0xe9)](_0x97fb8a=>{const _0x57f3c8=_0x35bf29,_0xc9a82f=_0x518ddc(_0x97fb8a);return{'app':_0x97fb8a,'outputDir':_0xc9a82f,'normalizedApiDir':normalizeApiDir(_0xc9a82f,_0xd1adb2),'apiGroup':normalizedApiGroup(_0x97fb8a[_0x57f3c8(0xe2)])};}),_0x3e81f2=new Map();for(const _0x5594bb of _0x4fa21d){if(!_0x5594bb['apiGroup'])continue;const _0x5a271e=_0x3e81f2['get'](_0x5594bb[_0x35bf29(0xe2)])??new Set();_0x5a271e[_0x35bf29(0xdc)](_0x5594bb[_0x35bf29(0xe8)]),_0x3e81f2[_0x35bf29(0xe3)](_0x5594bb[_0x35bf29(0xe2)],_0x5a271e);}for(const [_0x544e9d,_0x1ead0b]of _0x3e81f2){if(_0x1ead0b[_0x35bf29(0xd9)]>0x1)throw CliErrors[_0x35bf29(0xed)](_0x35bf29(0xd8)+_0x544e9d+_0x35bf29(0xe6),_0x35bf29(0xf2));}const _0x2616e1=new Map();for(const _0x23bb25 of _0x4fa21d){const _0x307f17=_0x2616e1[_0x35bf29(0xf4)](_0x23bb25[_0x35bf29(0xe8)])??[];_0x307f17['push'](_0x23bb25),_0x2616e1[_0x35bf29(0xe3)](_0x23bb25['normalizedApiDir'],_0x307f17);}for(const _0x5b0908 of _0x2616e1[_0x35bf29(0xda)]()){const _0x4675a3=new Set(_0x5b0908['flatMap'](_0x1d740b=>_0x1d740b[_0x35bf29(0xe2)]?[_0x1d740b['apiGroup']]:[]));if(_0x4675a3[_0x35bf29(0xd9)]===0x0)continue;if(_0x4675a3[_0x35bf29(0xd9)]>0x1||_0x5b0908['some'](_0x21ede8=>!_0x21ede8['apiGroup'])){const _0x3e2a41=_0x5b0908['map'](_0x519599=>_0x519599[_0x35bf29(0xf3)][_0x35bf29(0xdd)])[_0x35bf29(0xe1)](',\x20');throw CliErrors[_0x35bf29(0xed)](_0x35bf29(0xf1)+_0x5b0908[0x0][_0x35bf29(0xe5)]+_0x35bf29(0xdf),'Profiles\x20sharing\x20one\x20apiDir\x20must\x20use\x20the\x20same\x20explicit\x20apiGroup.\x20Conflicting\x20profiles:\x20'+_0x3e2a41+_0x35bf29(0xe0));}}return _0x4fa21d;}export function getRegistryGroup(_0x160dbc,_0x5d1c0d){const _0x1bc182=a1_0x3b8c32;if(_0x5d1c0d[_0x1bc182(0xe2)])return _0x160dbc[_0x1bc182(0xf6)](_0x3cc7be=>_0x3cc7be['apiGroup']===_0x5d1c0d['apiGroup']);const _0x56f1df=_0x160dbc[_0x1bc182(0xf6)](_0x1b5d9e=>_0x1b5d9e['normalizedApiDir']===_0x5d1c0d[_0x1bc182(0xe8)]);return _0x56f1df[_0x1bc182(0xef)]===0x1?_0x56f1df:undefined;}
1
+ const a1_0x56f5fa=a1_0xfddb;(function(_0x6c89bb,_0x390e14){const _0x56e9cf=a1_0xfddb,_0xed00b6=_0x6c89bb();while(!![]){try{const _0x303fce=-parseInt(_0x56e9cf(0x193))/0x1+parseInt(_0x56e9cf(0x186))/0x2*(parseInt(_0x56e9cf(0x189))/0x3)+parseInt(_0x56e9cf(0x188))/0x4+-parseInt(_0x56e9cf(0x179))/0x5*(-parseInt(_0x56e9cf(0x177))/0x6)+-parseInt(_0x56e9cf(0x17e))/0x7+-parseInt(_0x56e9cf(0x18b))/0x8*(-parseInt(_0x56e9cf(0x192))/0x9)+parseInt(_0x56e9cf(0x180))/0xa*(-parseInt(_0x56e9cf(0x17b))/0xb);if(_0x303fce===_0x390e14)break;else _0xed00b6['push'](_0xed00b6['shift']());}catch(_0x401ac5){_0xed00b6['push'](_0xed00b6['shift']());}}}(a1_0x3c9c,0x30a9a));import a1_0x5ae861 from'node:path';import{CliErrors}from'../errors.js';export function normalizeApiDir(_0x4bd9b2,_0x87fc50=process[a1_0x56f5fa(0x176)]()){const _0x4254f9=a1_0x56f5fa;return a1_0x5ae861[_0x4254f9(0x191)](_0x87fc50,_0x4bd9b2);}function normalizedApiGroup(_0x282f34){const _0x3f1ff1=a1_0x56f5fa,_0x12ad06=_0x282f34?.[_0x3f1ff1(0x194)]();return _0x12ad06||undefined;}function a1_0x3c9c(){const _0xeae5fe=['app','validation','apiGroup','API\x20group\x20\x22','some','94hWgDIR','\x22\x20is\x20assigned\x20to\x20incompatible\x20API\x20groups.','491052xdJFyJ','17130mPPogs','add','2915560Ghyikr','filter','values','get','API\x20directory\x20\x22','push','resolve','9MMljUB','4345OxBSFx','trim','.\x20Use\x20a\x20different\x20apiDir\x20for\x20a\x20separate\x20API.','Profiles\x20in\x20the\x20same\x20API\x20group\x20must\x20use\x20the\x20same\x20apiDir.','size','name','length','cwd','17508uLfney','map','405XYAtnE','flatMap','33GiGkUS','set','\x22\x20resolves\x20to\x20multiple\x20API\x20directories.','1633492vWFEbj','normalizedApiDir','1849710NCXagP'];a1_0x3c9c=function(){return _0xeae5fe;};return a1_0x3c9c();}function a1_0xfddb(_0x366e5a,_0x35c0c3){_0x366e5a=_0x366e5a-0x172;const _0x3c9c2e=a1_0x3c9c();let _0xfddbe9=_0x3c9c2e[_0x366e5a];return _0xfddbe9;}export function resolveApiProfileLayouts(_0x5eae69,_0x29a344,_0x2fa40a=process[a1_0x56f5fa(0x176)]()){const _0x4dda0a=a1_0x56f5fa,_0x1386ed=_0x5eae69[_0x4dda0a(0x178)](_0xd55c67=>{const _0x398f60=_0x4dda0a,_0x2b4055=_0x29a344(_0xd55c67);return{'app':_0xd55c67,'outputDir':_0x2b4055,'normalizedApiDir':normalizeApiDir(_0x2b4055,_0x2fa40a),'apiGroup':normalizedApiGroup(_0xd55c67[_0x398f60(0x183)])};}),_0x19b0fc=new Map();for(const _0x4cd5a5 of _0x1386ed){if(!_0x4cd5a5[_0x4dda0a(0x183)])continue;const _0x1ff0b3=_0x19b0fc[_0x4dda0a(0x18e)](_0x4cd5a5[_0x4dda0a(0x183)])??new Set();_0x1ff0b3[_0x4dda0a(0x18a)](_0x4cd5a5[_0x4dda0a(0x17f)]),_0x19b0fc[_0x4dda0a(0x17c)](_0x4cd5a5[_0x4dda0a(0x183)],_0x1ff0b3);}for(const [_0xb0a678,_0x10e5da]of _0x19b0fc){if(_0x10e5da[_0x4dda0a(0x173)]>0x1)throw CliErrors[_0x4dda0a(0x182)](_0x4dda0a(0x184)+_0xb0a678+_0x4dda0a(0x17d),_0x4dda0a(0x172));}const _0x18536f=new Map();for(const _0x21873f of _0x1386ed){const _0x2e0a5f=_0x18536f[_0x4dda0a(0x18e)](_0x21873f[_0x4dda0a(0x17f)])??[];_0x2e0a5f[_0x4dda0a(0x190)](_0x21873f),_0x18536f['set'](_0x21873f[_0x4dda0a(0x17f)],_0x2e0a5f);}for(const _0x58cb21 of _0x18536f[_0x4dda0a(0x18d)]()){const _0x4be6dc=new Set(_0x58cb21[_0x4dda0a(0x17a)](_0x1cec4e=>_0x1cec4e[_0x4dda0a(0x183)]?[_0x1cec4e[_0x4dda0a(0x183)]]:[]));if(_0x4be6dc[_0x4dda0a(0x173)]===0x0)continue;if(_0x4be6dc['size']>0x1||_0x58cb21[_0x4dda0a(0x185)](_0x2b34ba=>!_0x2b34ba[_0x4dda0a(0x183)])){const _0x2691bb=_0x58cb21[_0x4dda0a(0x178)](_0x29bef2=>_0x29bef2[_0x4dda0a(0x181)][_0x4dda0a(0x174)])['join'](',\x20');throw CliErrors[_0x4dda0a(0x182)](_0x4dda0a(0x18f)+_0x58cb21[0x0]['outputDir']+_0x4dda0a(0x187),'Profiles\x20sharing\x20one\x20apiDir\x20must\x20use\x20the\x20same\x20explicit\x20apiGroup.\x20Conflicting\x20profiles:\x20'+_0x2691bb+_0x4dda0a(0x195));}}return _0x1386ed;}export function getRegistryGroup(_0xa5bfc5,_0x4267f3){const _0x4362b7=a1_0x56f5fa;if(_0x4267f3['apiGroup'])return _0xa5bfc5[_0x4362b7(0x18c)](_0x9394bd=>_0x9394bd[_0x4362b7(0x183)]===_0x4267f3[_0x4362b7(0x183)]);const _0x354705=_0xa5bfc5['filter'](_0x15c1ef=>_0x15c1ef[_0x4362b7(0x17f)]===_0x4267f3[_0x4362b7(0x17f)]);return _0x354705[_0x4362b7(0x175)]===0x1?_0x354705:undefined;}
@@ -1 +1 @@
1
- function a2_0x217a(_0xb11ba2,_0x3fb456){_0xb11ba2=_0xb11ba2-0x1d5;var _0x53c305=a2_0x53c3();var _0x217a9c=_0x53c305[_0xb11ba2];return _0x217a9c;}(function(_0x371952,_0x18e98a){var _0x135ad5=a2_0x217a,_0x5445f6=_0x371952();while(!![]){try{var _0x1a1af5=-parseInt(_0x135ad5(0x1dc))/0x1+-parseInt(_0x135ad5(0x1d8))/0x2+parseInt(_0x135ad5(0x1da))/0x3*(parseInt(_0x135ad5(0x1d9))/0x4)+-parseInt(_0x135ad5(0x1d7))/0x5+parseInt(_0x135ad5(0x1db))/0x6*(-parseInt(_0x135ad5(0x1d6))/0x7)+parseInt(_0x135ad5(0x1d5))/0x8+parseInt(_0x135ad5(0x1dd))/0x9;if(_0x1a1af5===_0x18e98a)break;else _0x5445f6['push'](_0x5445f6['shift']());}catch(_0x4c2ef8){_0x5445f6['push'](_0x5445f6['shift']());}}}(a2_0x53c3,0x9b2d7));function a2_0x53c3(){var _0x29ce39=['76AzSWfl','164163YMXqGj','4838868Yplxpf','804613MCqiEq','16317351hwdANA','2822152UOOtVt','7MBqjco','1278005MKUmZu','1406416uNrXZV'];a2_0x53c3=function(){return _0x29ce39;};return a2_0x53c3();}export{fetchModelList}from'../core/api-client.js';
1
+ (function(_0xa5982e,_0x1b5aa5){var _0x4c488f=a2_0x673b,_0xfc1efe=_0xa5982e();while(!![]){try{var _0x2e3c27=-parseInt(_0x4c488f(0xa4))/0x1+parseInt(_0x4c488f(0xa7))/0x2+parseInt(_0x4c488f(0xa5))/0x3*(-parseInt(_0x4c488f(0xa2))/0x4)+parseInt(_0x4c488f(0xa3))/0x5*(parseInt(_0x4c488f(0x9d))/0x6)+parseInt(_0x4c488f(0xa6))/0x7*(parseInt(_0x4c488f(0xa0))/0x8)+-parseInt(_0x4c488f(0x9e))/0x9+parseInt(_0x4c488f(0xa1))/0xa*(parseInt(_0x4c488f(0x9f))/0xb);if(_0x2e3c27===_0x1b5aa5)break;else _0xfc1efe['push'](_0xfc1efe['shift']());}catch(_0x1bd9e6){_0xfc1efe['push'](_0xfc1efe['shift']());}}}(a2_0x29fb,0x1cd8d));function a2_0x673b(_0x4e2e53,_0xcc6ae7){_0x4e2e53=_0x4e2e53-0x9d;var _0x29fbb6=a2_0x29fb();var _0x673b96=_0x29fbb6[_0x4e2e53];return _0x673b96;}export{fetchModelList}from'../core/api-client.js';function a2_0x29fb(){var _0x5be402=['148313YrRNoO','37616SxeUuz','10DFiLVd','84IKkhKQ','5455xEsDoF','179725xdLTQC','3444XIcuKW','56CMTYuB','421290ZIhjef','1266ekzyzu','1529595dtpAVs'];a2_0x29fb=function(){return _0x5be402;};return a2_0x29fb();}
@@ -1 +1 @@
1
- function a3_0x257d(){const _0x2d7a27=['overwriteTypescript','success','18617481pvXYER','allowEmptyModelReplacement','join','runtimeDomain','client.ts.tpl','api','{\x20apiConfigName:\x20','none','overwritten','Please\x20configure\x20app\x20code\x20first\x20via\x20`','2697870dVygsE','284168ntlDZT','modelProfile','-api','api.ts.tpl','init-api','datasetCode','preserved','4xfIJhA','utf8','../..','typescript','test','defaultName','LOVRABET','-client','10hmVHDC','resolve','\x20refreshed;\x20existing\x20TypeScript\x20left\x20unchanged.','map','length','.ts','384826sgZISr','created','\x20config\x20set\x20app\x20<value>`','replace','default','modelRuntime','APP_','stringify','dirname','path','28STPbDI',',\x20env:\x20','action','refreshed','scaffoldMode','toUpperCase','missing','2002776exKMkM','294158LHbdAM','client','name','replaceApiContent','format','includes','alias','API\x20scaffold\x20written.','basename','3777345dcftpx'];a3_0x257d=function(){return _0x2d7a27;};return a3_0x257d();}(function(_0x1795af,_0x348eb3){const _0x3b6308=a3_0x1543,_0x4b0ab8=_0x1795af();while(!![]){try{const _0x1174f8=parseInt(_0x3b6308(0x186))/0x1+parseInt(_0x3b6308(0x174))/0x2+parseInt(_0x3b6308(0x185))/0x3*(-parseInt(_0x3b6308(0x166))/0x4)+-parseInt(_0x3b6308(0x18f))/0x5+-parseInt(_0x3b6308(0x19c))/0x6+-parseInt(_0x3b6308(0x17e))/0x7*(parseInt(_0x3b6308(0x19d))/0x8)+-parseInt(_0x3b6308(0x192))/0x9*(-parseInt(_0x3b6308(0x16e))/0xa);if(_0x1174f8===_0x348eb3)break;else _0x4b0ab8['push'](_0x4b0ab8['shift']());}catch(_0x51cc7e){_0x4b0ab8['push'](_0x4b0ab8['shift']());}}}(a3_0x257d,0x83ee6));import a3_0x2a3982 from'prettier';import{existsSync,mkdirSync,writeFileSync,readFileSync}from'node:fs';import a3_0x9ff23e from'node:path';import{fileURLToPath}from'node:url';function a3_0x1543(_0x15c110,_0x457f01){_0x15c110=_0x15c110-0x161;const _0x257d2b=a3_0x257d();let _0x15436f=_0x257d2b[_0x15c110];return _0x15436f;}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';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(_0x503079,_0x45476f){const _0x363a7f=a3_0x1543;if(!_0x45476f)return _0x503079?_0x363a7f(0x165):_0x363a7f(0x184);return _0x503079?_0x363a7f(0x19a):'created';}export async function generateApiFile(_0xf4c136,_0x45ac3a,_0x30d6b8,_0x533aaf,_0x87548f,_0x402fb4,_0x556f0d,_0x3c5dbf={},_0x504d50={}){const _0x57abe5=a3_0x1543;if(!_0x30d6b8)throw new Error(_0x57abe5(0x19b)+CLI_BIN_NAME+_0x57abe5(0x176));const _0x456718=_0x533aaf&&!_0x556f0d,_0x251b3c=!!_0x504d50['modelProfile'],_0x1277c9=_0x251b3c||_0x456718,_0xa5d674=_0x556f0d||_0x30d6b8,_0x55180d=_0x251b3c||_0x456718?_0x57abe5(0x178):_0xa5d674,_0x4a5b08=_0x251b3c||_0x456718?'CONFIG_NAMES.DEFAULT':JSON[_0x57abe5(0x17b)](_0xa5d674),_0x320d52=!isProduction(_0x87548f),_0x15371e=_0x320d52?_0x57abe5(0x17f)+JSON[_0x57abe5(0x17b)](_0x87548f):'',_0x55cd24=_0x57abe5(0x198)+_0x4a5b08+_0x15371e+',\x20...LOVRABET_SDK_CONFIG\x20}',_0x28330b=_0x251b3c?'':_0x45ac3a,_0x1ad458=_0x28330b?_0x28330b+_0x57abe5(0x161):_0x57abe5(0x197),_0xe8e287=_0x28330b?_0x28330b+_0x57abe5(0x16d):'client',_0x359f8d=_0x28330b&&!/^app-[a-f0-9]+$/i['test'](_0x28330b)?_0x28330b[_0x57abe5(0x177)](/-/g,'_')[_0x57abe5(0x183)]():_0x57abe5(0x16c),_0x3cccad=/^\d/[_0x57abe5(0x16a)](_0x359f8d)?_0x57abe5(0x17a)+_0x359f8d:_0x359f8d,_0x434e15=_0xf4c136[_0x57abe5(0x171)](_0x49cf17=>({'datasetCode':_0x49cf17[_0x57abe5(0x164)],'tableName':_0x49cf17['tableName'],'name':_0x49cf17[_0x57abe5(0x188)]||'','alias':_0x49cf17[_0x57abe5(0x18c)]||_0x49cf17['key']})),_0x153ae3=fileURLToPath(import.meta.url),_0x5d8097=a3_0x9ff23e[_0x57abe5(0x16f)](a3_0x9ff23e[_0x57abe5(0x17c)](_0x153ae3),_0x57abe5(0x168)),_0x475d2e=a3_0x9ff23e[_0x57abe5(0x194)](_0x5d8097,'templates/generate-api'),_0x43bda0=a3_0x9ff23e['join'](_0x475d2e,_0x57abe5(0x162)),_0x3f7a03=a3_0x9ff23e[_0x57abe5(0x194)](_0x475d2e,_0x57abe5(0x196)),_0xcfcc2=_0x402fb4;mkdirSync(_0xcfcc2,{'recursive':!![]});const _0x37d55b=_0x251b3c?{}:_0x3c5dbf,_0x528189=await generateSdkConfigFile(_0xcfcc2,_0x37d55b,_0x28330b),_0x150a18=a3_0x9ff23e[_0x57abe5(0x18e)](_0x528189,_0x57abe5(0x173)),_0x37132b=a3_0x9ff23e[_0x57abe5(0x194)](_0xcfcc2,_0x1ad458+_0x57abe5(0x173)),_0x5dd382=a3_0x9ff23e['join'](_0xcfcc2,_0xe8e287+'.ts'),_0x2cf2d0=_0x504d50[_0x57abe5(0x190)]===!![],_0x17a4e7=existsSync(_0x37132b),_0x50a31a=existsSync(_0x5dd382),_0x4e61d6=_0x504d50[_0x57abe5(0x182)]??(_0x2cf2d0?_0x57abe5(0x177):_0x57abe5(0x184)),_0x4df1cb=_0x4e61d6===_0x57abe5(0x177)||_0x4e61d6===_0x57abe5(0x184)&&!_0x17a4e7,_0x4d715c=_0x4e61d6===_0x57abe5(0x177)||_0x4e61d6===_0x57abe5(0x184)&&!_0x50a31a,_0x355465=_0x504d50['modelProfile']?updateModelRegistry({'outputDir':_0xcfcc2,'profileName':_0x504d50[_0x57abe5(0x19e)][_0x57abe5(0x188)],'defaultProfile':_0x504d50['modelProfile'][_0x57abe5(0x16b)],'appCode':_0x30d6b8,'runtimeDomain':_0x504d50[_0x57abe5(0x19e)][_0x57abe5(0x195)],'models':_0x434e15,'allowEmptyReplacement':_0x504d50[_0x57abe5(0x193)]===!![]}):undefined,_0x21aca0=_0x355465?a3_0x9ff23e[_0x57abe5(0x194)](_0xcfcc2,MODEL_RUNTIME_FILE_NAME):undefined,_0x431414=_0x21aca0?existsSync(_0x21aca0):![],_0x23fbd1=_0x251b3c&&_0x4e61d6!==_0x57abe5(0x199)?await renderModelRegistryScaffold(_0xcfcc2):undefined;_0x21aca0&&_0x23fbd1&&writeFileSync(_0x21aca0,_0x23fbd1[_0x57abe5(0x179)],'utf8');const _0x552997=_0x434e15[0x0]?.[_0x57abe5(0x18c)];if(_0x4df1cb){const _0x352504=_0x23fbd1?.[_0x57abe5(0x197)]??readFileSync(_0x43bda0,_0x57abe5(0x167)),_0x5a3612=_0x251b3c?_0x352504:TemplateReplacer[_0x57abe5(0x189)](_0x352504,_0x30d6b8,_0x434e15,_0x552997,_0x1ad458,_0x4a5b08,undefined,_0x3cccad);writeFileSync(_0x37132b,await a3_0x2a3982[_0x57abe5(0x18a)](_0x5a3612,{'parser':_0x57abe5(0x169)}),{'encoding':_0x57abe5(0x167)});}if(_0x4d715c){const _0x2ca24f=_0x23fbd1?.[_0x57abe5(0x187)]??readFileSync(_0x3f7a03,_0x57abe5(0x167)),_0x57c5aa=_0x251b3c?_0x2ca24f:TemplateReplacer[_0x57abe5(0x189)](_0x2ca24f,_0x30d6b8,_0x434e15,_0x552997,_0x1ad458,_0x4a5b08,_0x55cd24,_0x3cccad,_0x150a18);writeFileSync(_0x5dd382,await a3_0x2a3982[_0x57abe5(0x18a)](_0x57c5aa,{'parser':_0x57abe5(0x169)}),{'encoding':'utf8'});}const _0x29b59c=_0x434e15[_0x57abe5(0x172)],_0x12d28a={'api':{'path':_0x37132b,'action':fileAction(_0x17a4e7,_0x4df1cb)},'client':{'path':_0x5dd382,'action':fileAction(_0x50a31a,_0x4d715c)},'sdkConfig':{'path':_0x528189,'action':_0x57abe5(0x181)},..._0x355465?{'modelRegistry':{'path':_0x355465[_0x57abe5(0x17d)],'action':_0x355465['existed']?_0x57abe5(0x181):_0x57abe5(0x175)},'modelRuntime':{'path':_0x21aca0,'action':_0x23fbd1?_0x431414?'refreshed':_0x57abe5(0x175):_0x431414?'preserved':_0x57abe5(0x184)}}:{}},_0x3e3b96=existsSync(_0x37132b)&&readFileSync(_0x37132b,_0x57abe5(0x167))[_0x57abe5(0x18b)](MODEL_REGISTRY_FILE_NAME['replace'](_0x57abe5(0x173),'')),_0x128969=existsSync(_0x5dd382)&&readFileSync(_0x5dd382,_0x57abe5(0x167))['includes']('LOVRABET_RUNTIME_DOMAIN'),_0x4cdc35=_0x251b3c?!_0x3e3b96||!_0x128969||!existsSync(_0x21aca0):![],_0x3b18e6=_0x251b3c?_0x4cdc35:_0x12d28a[_0x57abe5(0x197)][_0x57abe5(0x180)]==='preserved'||_0x12d28a[_0x57abe5(0x187)][_0x57abe5(0x180)]==='preserved';return logger[_0x57abe5(0x191)](_0x57abe5(0x163),_0x3b18e6?a3_0x9ff23e[_0x57abe5(0x18e)](_0x528189)+_0x57abe5(0x170):_0x251b3c?'Model\x20facts\x20refreshed.':_0x57abe5(0x18d),undefined,{'apiFile':_0x37132b,'clientFile':_0x5dd382,'sdkConfig':_0x528189,'modelCount':_0x29b59c,'configName':_0x55180d,'isDefaultConfig':_0x1277c9,'needsAgentMerge':_0x3b18e6,'needsProjectUpgrade':_0x4cdc35,'files':_0x12d28a}),{'appCode':_0x30d6b8,'modelCount':_0x29b59c,'models':_0x434e15,'apiFilePath':_0x37132b,'clientFilePath':_0x5dd382,'sdkConfigPath':_0x528189,'modelRegistryPath':_0x355465?.[_0x57abe5(0x17d)],'modelRuntimePath':_0x21aca0,'modelProfile':_0x504d50[_0x57abe5(0x19e)]?.[_0x57abe5(0x188)],'configName':_0x55180d,'isDefaultConfig':_0x1277c9,'sdkRouting':_0x37d55b,'files':_0x12d28a,'needsAgentMerge':_0x3b18e6,'needsProjectUpgrade':_0x4cdc35};}
1
+ (function(_0x1c6af6,_0xeb904d){const _0x7df8bc=a3_0x5db7,_0x5ce21d=_0x1c6af6();while(!![]){try{const _0x53c1fb=-parseInt(_0x7df8bc(0x192))/0x1*(-parseInt(_0x7df8bc(0x184))/0x2)+-parseInt(_0x7df8bc(0x18f))/0x3+-parseInt(_0x7df8bc(0x19b))/0x4*(-parseInt(_0x7df8bc(0x165))/0x5)+parseInt(_0x7df8bc(0x18d))/0x6*(-parseInt(_0x7df8bc(0x17c))/0x7)+parseInt(_0x7df8bc(0x194))/0x8*(parseInt(_0x7df8bc(0x181))/0x9)+-parseInt(_0x7df8bc(0x185))/0xa+parseInt(_0x7df8bc(0x187))/0xb;if(_0x53c1fb===_0xeb904d)break;else _0x5ce21d['push'](_0x5ce21d['shift']());}catch(_0x62a397){_0x5ce21d['push'](_0x5ce21d['shift']());}}}(a3_0x3bba,0x65d41));import a3_0x16e341 from'prettier';import{existsSync,mkdirSync,writeFileSync,readFileSync}from'node:fs';import a3_0x506ac1 from'node:path';function a3_0x5db7(_0x515581,_0x1cc0e1){_0x515581=_0x515581-0x163;const _0x3bba07=a3_0x3bba();let _0x5db7c4=_0x3bba07[_0x515581];return _0x5db7c4;}import{fileURLToPath}from'node:url';import{TemplateReplacer}from'../utils/template-replacer.js';function a3_0x3bba(){const _0xbc7ff5=['default','none','typescript','replaceApiContent','basename','resolve','client','LOVRABET','overwriteTypescript','toUpperCase',',\x20...LOVRABET_SDK_CONFIG\x20}','success','\x20refreshed;\x20existing\x20TypeScript\x20left\x20unchanged.','Please\x20configure\x20app\x20code\x20first\x20via\x20`','missing','templates/generate-api','action','join','format','7eKFxEs','api','created','preserved','modelProfile','27WclQvd','../..','utf8','26NTsvBM','7183070CIesaO','-client','4600035vlxnno','refreshed','api.ts.tpl','path','modelRuntime','defaultName','4819794BjpBQv','includes','370986ycBfkw','stringify',',\x20env:\x20','45908xkZLgO','-api','911152nNdjKZ','allowEmptyModelReplacement','map','replace','init-api','APP_','name','122728wmCBbj','length','tableName','runtimeDomain','115qztwDM','.ts','CONFIG_NAMES.DEFAULT','dirname'];a3_0x3bba=function(){return _0xbc7ff5;};return a3_0x3bba();}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(_0x43faba,_0x1c0215){const _0x25df46=a3_0x5db7;if(!_0x1c0215)return _0x43faba?'preserved':'missing';return _0x43faba?'overwritten':_0x25df46(0x17e);}export async function generateApiFile(_0x4e2440,_0x4fa776,_0x58172b,_0x503b58,_0xde1b43,_0x5f5c0f,_0x1faf9f,_0x1cc35a={},_0x99df0b={}){const _0x52c72c=a3_0x5db7;if(!_0x58172b)throw new Error(_0x52c72c(0x176)+CLI_BIN_NAME+'\x20config\x20set\x20app\x20<value>`');const _0x147986=_0x503b58&&!_0x1faf9f,_0x3b62c0=!!_0x99df0b['modelProfile'],_0x41b1da=_0x3b62c0||_0x147986,_0x398dff=_0x1faf9f||_0x58172b,_0x4af29e=_0x3b62c0||_0x147986?_0x52c72c(0x169):_0x398dff,_0x3bb112=_0x3b62c0||_0x147986?_0x52c72c(0x167):JSON[_0x52c72c(0x190)](_0x398dff),_0x4242af=!isProduction(_0xde1b43),_0x44a380=_0x4242af?_0x52c72c(0x191)+JSON[_0x52c72c(0x190)](_0xde1b43):'',_0x5ee510='{\x20apiConfigName:\x20'+_0x3bb112+_0x44a380+_0x52c72c(0x173),_0x2f9dac=_0x3b62c0?'':_0x4fa776,_0x366053=_0x2f9dac?_0x2f9dac+_0x52c72c(0x193):_0x52c72c(0x17d),_0x38e20e=_0x2f9dac?_0x2f9dac+_0x52c72c(0x186):_0x52c72c(0x16f),_0x28bbc1=_0x2f9dac&&!/^app-[a-f0-9]+$/i['test'](_0x2f9dac)?_0x2f9dac[_0x52c72c(0x197)](/-/g,'_')[_0x52c72c(0x172)]():_0x52c72c(0x170),_0x25683f=/^\d/['test'](_0x28bbc1)?_0x52c72c(0x199)+_0x28bbc1:_0x28bbc1,_0xb9f193=_0x4e2440[_0x52c72c(0x196)](_0x244b6b=>({'datasetCode':_0x244b6b['datasetCode'],'tableName':_0x244b6b[_0x52c72c(0x163)],'name':_0x244b6b[_0x52c72c(0x19a)]||'','alias':_0x244b6b['alias']||_0x244b6b['key']})),_0x32fbde=fileURLToPath(import.meta.url),_0x5c10b1=a3_0x506ac1[_0x52c72c(0x16e)](a3_0x506ac1[_0x52c72c(0x168)](_0x32fbde),_0x52c72c(0x182)),_0x3f2a18=a3_0x506ac1[_0x52c72c(0x17a)](_0x5c10b1,_0x52c72c(0x178)),_0x3eedf4=a3_0x506ac1['join'](_0x3f2a18,_0x52c72c(0x189)),_0x309447=a3_0x506ac1[_0x52c72c(0x17a)](_0x3f2a18,'client.ts.tpl'),_0x24a450=_0x5f5c0f;mkdirSync(_0x24a450,{'recursive':!![]});const _0x50dbf5=_0x3b62c0?{}:_0x1cc35a,_0x23cd87=await generateSdkConfigFile(_0x24a450,_0x50dbf5,_0x2f9dac),_0x14144a=a3_0x506ac1['basename'](_0x23cd87,_0x52c72c(0x166)),_0x35722f=a3_0x506ac1[_0x52c72c(0x17a)](_0x24a450,_0x366053+_0x52c72c(0x166)),_0x3ade50=a3_0x506ac1[_0x52c72c(0x17a)](_0x24a450,_0x38e20e+_0x52c72c(0x166)),_0x1ef161=_0x99df0b[_0x52c72c(0x171)]===!![],_0x40c0cf=existsSync(_0x35722f),_0x39352a=existsSync(_0x3ade50),_0x44dcf2=_0x99df0b['scaffoldMode']??(_0x1ef161?_0x52c72c(0x197):'missing'),_0x2e34be=_0x44dcf2==='replace'||_0x44dcf2===_0x52c72c(0x177)&&!_0x40c0cf,_0x38d697=_0x44dcf2==='replace'||_0x44dcf2==='missing'&&!_0x39352a,_0x260892=_0x99df0b[_0x52c72c(0x180)]?updateModelRegistry({'outputDir':_0x24a450,'profileName':_0x99df0b['modelProfile']['name'],'defaultProfile':_0x99df0b[_0x52c72c(0x180)][_0x52c72c(0x18c)],'appCode':_0x58172b,'runtimeDomain':_0x99df0b[_0x52c72c(0x180)][_0x52c72c(0x164)],'models':_0xb9f193,'allowEmptyReplacement':_0x99df0b[_0x52c72c(0x195)]===!![]}):undefined,_0x3a4f10=_0x260892?a3_0x506ac1[_0x52c72c(0x17a)](_0x24a450,MODEL_RUNTIME_FILE_NAME):undefined,_0x441e6b=_0x3a4f10?existsSync(_0x3a4f10):![],_0x8a2ad1=_0x3b62c0&&_0x44dcf2!==_0x52c72c(0x16a)?await renderModelRegistryScaffold(_0x24a450):undefined;_0x3a4f10&&_0x8a2ad1&&writeFileSync(_0x3a4f10,_0x8a2ad1[_0x52c72c(0x18b)],'utf8');const _0xc8735e=_0xb9f193[0x0]?.['alias'];if(_0x2e34be){const _0x4f19cc=_0x8a2ad1?.['api']??readFileSync(_0x3eedf4,_0x52c72c(0x183)),_0x14808f=_0x3b62c0?_0x4f19cc:TemplateReplacer[_0x52c72c(0x16c)](_0x4f19cc,_0x58172b,_0xb9f193,_0xc8735e,_0x366053,_0x3bb112,undefined,_0x25683f);writeFileSync(_0x35722f,await a3_0x16e341[_0x52c72c(0x17b)](_0x14808f,{'parser':_0x52c72c(0x16b)}),{'encoding':'utf8'});}if(_0x38d697){const _0x367917=_0x8a2ad1?.[_0x52c72c(0x16f)]??readFileSync(_0x309447,_0x52c72c(0x183)),_0x727243=_0x3b62c0?_0x367917:TemplateReplacer[_0x52c72c(0x16c)](_0x367917,_0x58172b,_0xb9f193,_0xc8735e,_0x366053,_0x3bb112,_0x5ee510,_0x25683f,_0x14144a);writeFileSync(_0x3ade50,await a3_0x16e341[_0x52c72c(0x17b)](_0x727243,{'parser':_0x52c72c(0x16b)}),{'encoding':_0x52c72c(0x183)});}const _0x7c2bb8=_0xb9f193[_0x52c72c(0x19c)],_0x15ae5c={'api':{'path':_0x35722f,'action':fileAction(_0x40c0cf,_0x2e34be)},'client':{'path':_0x3ade50,'action':fileAction(_0x39352a,_0x38d697)},'sdkConfig':{'path':_0x23cd87,'action':_0x52c72c(0x188)},..._0x260892?{'modelRegistry':{'path':_0x260892[_0x52c72c(0x18a)],'action':_0x260892['existed']?'refreshed':_0x52c72c(0x17e)},'modelRuntime':{'path':_0x3a4f10,'action':_0x8a2ad1?_0x441e6b?_0x52c72c(0x188):_0x52c72c(0x17e):_0x441e6b?_0x52c72c(0x17f):_0x52c72c(0x177)}}:{}},_0x52bb34=existsSync(_0x35722f)&&readFileSync(_0x35722f,_0x52c72c(0x183))[_0x52c72c(0x18e)](MODEL_REGISTRY_FILE_NAME[_0x52c72c(0x197)](_0x52c72c(0x166),'')),_0x57a5e8=existsSync(_0x3ade50)&&readFileSync(_0x3ade50,'utf8')[_0x52c72c(0x18e)]('LOVRABET_RUNTIME_DOMAIN'),_0x47dabb=_0x3b62c0?!_0x52bb34||!_0x57a5e8||!existsSync(_0x3a4f10):![],_0x5c1962=_0x3b62c0?_0x47dabb:_0x15ae5c[_0x52c72c(0x17d)][_0x52c72c(0x179)]===_0x52c72c(0x17f)||_0x15ae5c['client'][_0x52c72c(0x179)]==='preserved';return logger[_0x52c72c(0x174)](_0x52c72c(0x198),_0x5c1962?a3_0x506ac1[_0x52c72c(0x16d)](_0x23cd87)+_0x52c72c(0x175):_0x3b62c0?'Model\x20facts\x20refreshed.':'API\x20scaffold\x20written.',undefined,{'apiFile':_0x35722f,'clientFile':_0x3ade50,'sdkConfig':_0x23cd87,'modelCount':_0x7c2bb8,'configName':_0x4af29e,'isDefaultConfig':_0x41b1da,'needsAgentMerge':_0x5c1962,'needsProjectUpgrade':_0x47dabb,'files':_0x15ae5c}),{'appCode':_0x58172b,'modelCount':_0x7c2bb8,'models':_0xb9f193,'apiFilePath':_0x35722f,'clientFilePath':_0x3ade50,'sdkConfigPath':_0x23cd87,'modelRegistryPath':_0x260892?.['path'],'modelRuntimePath':_0x3a4f10,'modelProfile':_0x99df0b[_0x52c72c(0x180)]?.[_0x52c72c(0x19a)],'configName':_0x4af29e,'isDefaultConfig':_0x41b1da,'sdkRouting':_0x50dbf5,'files':_0x15ae5c,'needsAgentMerge':_0x5c1962,'needsProjectUpgrade':_0x47dabb};}
@@ -1 +1 @@
1
- const a4_0x49f463=a4_0xf286;(function(_0x42a4d6,_0x3b9e4a){const _0x12b5ef=a4_0xf286,_0x22607f=_0x42a4d6();while(!![]){try{const _0x5cdadc=-parseInt(_0x12b5ef(0x11c))/0x1+-parseInt(_0x12b5ef(0x116))/0x2+-parseInt(_0x12b5ef(0x128))/0x3+parseInt(_0x12b5ef(0x117))/0x4*(parseInt(_0x12b5ef(0x125))/0x5)+parseInt(_0x12b5ef(0x119))/0x6*(parseInt(_0x12b5ef(0x11d))/0x7)+parseInt(_0x12b5ef(0x114))/0x8*(parseInt(_0x12b5ef(0x121))/0x9)+-parseInt(_0x12b5ef(0x129))/0xa*(-parseInt(_0x12b5ef(0x126))/0xb);if(_0x5cdadc===_0x3b9e4a)break;else _0x22607f['push'](_0x22607f['shift']());}catch(_0x18c0de){_0x22607f['push'](_0x22607f['shift']());}}}(a4_0x4644,0xc5894));function a4_0x4644(){const _0x544b4f=['join','typescript','sdk-config.ts','239661HLmiiw','utf8','stringify','runtimeDomain','5BdrVhH','5181sUxLxC',',\x0a}','4358922tpWTye','52310YeMZBm',',\x0a\x20\x20','-sdk-config.ts','112ZuHxXo','{\x0a\x20\x20','2909894iuIrpH','2660568SzziIq','/**\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','42ZWOOeY','runtimeDomain:\x20','\x20as\x20const;\x0a','1263113LPpQYe','1478393NlqrHP'];a4_0x4644=function(){return _0x544b4f;};return a4_0x4644();}import{mkdirSync,writeFileSync}from'node:fs';import a4_0x2fce4f from'node:path';import a4_0x21f5ba from'prettier';function a4_0xf286(_0x4a9b82,_0x1fcb94){_0x4a9b82=_0x4a9b82-0x114;const _0x464472=a4_0x4644();let _0xf286c5=_0x464472[_0x4a9b82];return _0xf286c5;}export const SDK_CONFIG_FILE_NAME=a4_0x49f463(0x120);export function getSdkConfigFileName(_0x29a481=''){const _0x2efcb3=a4_0x49f463;return _0x29a481?_0x29a481+_0x2efcb3(0x12b):SDK_CONFIG_FILE_NAME;}export async function generateSdkConfigFile(_0x1d071d,_0x49dc9d={},_0xda51e=''){const _0x1d4f4b=a4_0x49f463,_0x21e78d=[];_0x49dc9d['runtimeDomain']&&_0x21e78d['push'](_0x1d4f4b(0x11a)+JSON[_0x1d4f4b(0x123)](_0x49dc9d[_0x1d4f4b(0x124)]));const _0x2a4f41=_0x21e78d['length']>0x0?_0x1d4f4b(0x115)+_0x21e78d[_0x1d4f4b(0x11e)](_0x1d4f4b(0x12a))+_0x1d4f4b(0x127):'{}',_0x123eea=_0x1d4f4b(0x118)+_0x2a4f41+_0x1d4f4b(0x11b);mkdirSync(_0x1d071d,{'recursive':!![]});const _0x1e00e5=a4_0x2fce4f['join'](_0x1d071d,getSdkConfigFileName(_0xda51e));return writeFileSync(_0x1e00e5,await a4_0x21f5ba['format'](_0x123eea,{'parser':_0x1d4f4b(0x11f)}),_0x1d4f4b(0x122)),_0x1e00e5;}
1
+ const a4_0xb9c75a=a4_0x5ca1;(function(_0x3dae01,_0x27b2bd){const _0x415fc4=a4_0x5ca1,_0x327dbb=_0x3dae01();while(!![]){try{const _0x306456=parseInt(_0x415fc4(0x130))/0x1+parseInt(_0x415fc4(0x138))/0x2*(parseInt(_0x415fc4(0x13e))/0x3)+-parseInt(_0x415fc4(0x12c))/0x4+parseInt(_0x415fc4(0x139))/0x5*(parseInt(_0x415fc4(0x13d))/0x6)+parseInt(_0x415fc4(0x12b))/0x7+parseInt(_0x415fc4(0x131))/0x8+-parseInt(_0x415fc4(0x135))/0x9*(parseInt(_0x415fc4(0x134))/0xa);if(_0x306456===_0x27b2bd)break;else _0x327dbb['push'](_0x327dbb['shift']());}catch(_0xf9a970){_0x327dbb['push'](_0x327dbb['shift']());}}}(a4_0x37ff,0x4fd67));import{mkdirSync,writeFileSync}from'node:fs';import a4_0x1ca004 from'node:path';import a4_0x32ad21 from'prettier';function a4_0x5ca1(_0xd8c6b,_0x5364f4){_0xd8c6b=_0xd8c6b-0x129;const _0x37ffa3=a4_0x37ff();let _0x5ca1f0=_0x37ffa3[_0xd8c6b];return _0x5ca1f0;}export const SDK_CONFIG_FILE_NAME=a4_0xb9c75a(0x129);function a4_0x37ff(){const _0x57235f=['length','runtimeDomain','-sdk-config.ts','64068xhyeOx','683979wIMmUo','typescript','sdk-config.ts','utf8','2373686iQNNxT','267380ssugQi','join','format','stringify','24133HsVGLs','2698632mXwWZN',',\x0a}','push','400YhSyeU','226863xQZSrY','runtimeDomain:\x20','\x20as\x20const;\x0a','4rvkSZg','115GgwgAN'];a4_0x37ff=function(){return _0x57235f;};return a4_0x37ff();}export function getSdkConfigFileName(_0x3085c6=''){const _0x2f06d1=a4_0xb9c75a;return _0x3085c6?_0x3085c6+_0x2f06d1(0x13c):SDK_CONFIG_FILE_NAME;}export async function generateSdkConfigFile(_0x2674f2,_0x453216={},_0x5f0102=''){const _0x23fc52=a4_0xb9c75a,_0x3942bf=[];_0x453216[_0x23fc52(0x13b)]&&_0x3942bf[_0x23fc52(0x133)](_0x23fc52(0x136)+JSON[_0x23fc52(0x12f)](_0x453216[_0x23fc52(0x13b)]));const _0x9b3c4a=_0x3942bf[_0x23fc52(0x13a)]>0x0?'{\x0a\x20\x20'+_0x3942bf[_0x23fc52(0x12d)](',\x0a\x20\x20')+_0x23fc52(0x132):'{}',_0x1a4fa1='/**\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'+_0x9b3c4a+_0x23fc52(0x137);mkdirSync(_0x2674f2,{'recursive':!![]});const _0x17b620=a4_0x1ca004[_0x23fc52(0x12d)](_0x2674f2,getSdkConfigFileName(_0x5f0102));return writeFileSync(_0x17b620,await a4_0x32ad21[_0x23fc52(0x12e)](_0x1a4fa1,{'parser':_0x23fc52(0x13f)}),_0x23fc52(0x12a)),_0x17b620;}
@@ -1 +1 @@
1
- function a5_0x1c6d(_0x4da006,_0xf9ac2b){_0x4da006=_0x4da006-0x108;const _0x18b738=a5_0x18b7();let _0x18b7b6=_0x18b738[_0x4da006];return _0x18b7b6;}function a5_0x18b7(){const _0x32b24d=['2119887KDFrEs','381366rqbQPB','endsWith','APP_CODE','some','Generated\x20by\x20Rabetbase\x20CLI','matchAll','4663925mbivoB','includes','1604016NVnBSb','length','334296lRwhSa','150KjRFPY','replace','exec','map','test','121866uwuNCA','MODELS_CONFIG','2127828UcXKmG'];a5_0x18b7=function(){return _0x32b24d;};return a5_0x18b7();}(function(_0x282323,_0x33863c){const _0x3e4fd4=a5_0x1c6d,_0x22847f=_0x282323();while(!![]){try{const _0x1600c4=parseInt(_0x3e4fd4(0x114))/0x1+parseInt(_0x3e4fd4(0x10a))/0x2+-parseInt(_0x3e4fd4(0x109))/0x3+-parseInt(_0x3e4fd4(0x108))/0x4+parseInt(_0x3e4fd4(0x115))/0x5*(parseInt(_0x3e4fd4(0x11a))/0x6)+parseInt(_0x3e4fd4(0x110))/0x7+-parseInt(_0x3e4fd4(0x112))/0x8;if(_0x1600c4===_0x33863c)break;else _0x22847f['push'](_0x22847f['shift']());}catch(_0x897e13){_0x22847f['push'](_0x22847f['shift']());}}}(a5_0x18b7,0x58418));export function parseLegacyApiModels(_0x54d710){const _0x57f7f4=a5_0x1c6d,_0x44e1a5=[],_0xc43ac0=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x2b7d66;while((_0x2b7d66=_0xc43ac0[_0x57f7f4(0x117)](_0x54d710))!==null){_0x44e1a5['push']({'datasetCode':_0x2b7d66[0x1],'tableName':_0x2b7d66[0x2],'name':_0x2b7d66[0x3],'alias':_0x2b7d66[0x4]});}return _0x44e1a5;}export function parseLegacyApiAppCode(_0x5f0047){return _0x5f0047['match'](/export\s+const\s+[A-Z0-9_]*APP_CODE(?:\s*:\s*string)?\s*=\s*["']([^"']+)["']/)?.[0x1];}function stripComments(_0x4d008c){const _0x81b9ae=a5_0x1c6d;return _0x4d008c[_0x81b9ae(0x116)](/\/\*[\s\S]*?\*\//g,'')[_0x81b9ae(0x116)](/\/\/.*$/gm,'');}export function isLegacyGeneratedApiScaffold(_0x5a1a9b){const _0x5159b6=a5_0x1c6d;if(!_0x5a1a9b[_0x5159b6(0x111)](_0x5159b6(0x10e)))return![];const _0x5e2e2b=stripComments(_0x5a1a9b),_0x28f8bd=[..._0x5e2e2b['matchAll'](/^import[\s\S]*?from\s+["']([^"']+)["'];?$/gm)][_0x5159b6(0x118)](_0x30f1dc=>_0x30f1dc[0x1]);if(_0x28f8bd['length']!==0x1||_0x28f8bd[0x0]!=='@lovrabet/sdk')return![];const _0x8f5a1d=[..._0x5e2e2b[_0x5159b6(0x10f)](/^(?:export\s+)?const\s+([A-Za-z_$][\w$]*)/gm)][_0x5159b6(0x118)](_0x5e311a=>_0x5e311a[0x1]);if(_0x8f5a1d[_0x5159b6(0x113)]!==0x2||!_0x8f5a1d['some'](_0x55931b=>_0x55931b[_0x5159b6(0x10b)](_0x5159b6(0x10c)))||!_0x8f5a1d[_0x5159b6(0x10d)](_0x546587=>_0x546587[_0x5159b6(0x10b)](_0x5159b6(0x11b))))return![];const _0x3d889e=[..._0x5e2e2b[_0x5159b6(0x10f)](/^([A-Za-z_$][\w$]*)\s*\(/gm)]['map'](_0x2c5f80=>_0x2c5f80[0x1]);return _0x3d889e[_0x5159b6(0x113)]===0x1&&_0x3d889e[0x0]==='registerModels';}export function isLegacyGeneratedClientScaffold(_0x58d896){const _0x597127=a5_0x1c6d;if(!_0x58d896[_0x597127(0x111)](_0x597127(0x10e)))return![];const _0x11d90e=stripComments(_0x58d896),_0x5b6337=[..._0x11d90e[_0x597127(0x10f)](/^(?:import[\s\S]*?from\s+|import\s+)["']([^"']+)["'];?$/gm)][_0x597127(0x118)](_0x546d08=>_0x546d08[0x1]);if(_0x5b6337['some'](_0x13ad0b=>_0x13ad0b!=='@lovrabet/sdk'&&!/^\.\/(?:[\w-]+-)?(?:api|sdk-config)$/[_0x597127(0x119)](_0x13ad0b??'')))return![];const _0x1d061a=[..._0x11d90e[_0x597127(0x10f)](/^(?:export\s+)?const\s+([A-Za-z_$][\w$]*)/gm)][_0x597127(0x118)](_0x4e6be5=>_0x4e6be5[0x1]);return _0x1d061a[_0x597127(0x113)]===0x1&&_0x1d061a[0x0]==='lovrabetClient';}
1
+ (function(_0x84fc18,_0x2e5fc6){const _0x35978d=a5_0x2f3b,_0x5de7d2=_0x84fc18();while(!![]){try{const _0x322a4f=-parseInt(_0x35978d(0x1e9))/0x1*(-parseInt(_0x35978d(0x1d9))/0x2)+-parseInt(_0x35978d(0x1e7))/0x3*(parseInt(_0x35978d(0x1e2))/0x4)+parseInt(_0x35978d(0x1d4))/0x5*(parseInt(_0x35978d(0x1e0))/0x6)+parseInt(_0x35978d(0x1e6))/0x7*(parseInt(_0x35978d(0x1e1))/0x8)+-parseInt(_0x35978d(0x1d6))/0x9*(parseInt(_0x35978d(0x1e3))/0xa)+-parseInt(_0x35978d(0x1d8))/0xb+-parseInt(_0x35978d(0x1d2))/0xc*(parseInt(_0x35978d(0x1ec))/0xd);if(_0x322a4f===_0x2e5fc6)break;else _0x5de7d2['push'](_0x5de7d2['shift']());}catch(_0x5886d9){_0x5de7d2['push'](_0x5de7d2['shift']());}}}(a5_0x40d1,0x89d89));export function parseLegacyApiModels(_0x143ca3){const _0x467006=a5_0x2f3b,_0x4c82bd=[],_0x1bbe15=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x3134fa;while((_0x3134fa=_0x1bbe15['exec'](_0x143ca3))!==null){_0x4c82bd[_0x467006(0x1eb)]({'datasetCode':_0x3134fa[0x1],'tableName':_0x3134fa[0x2],'name':_0x3134fa[0x3],'alias':_0x3134fa[0x4]});}return _0x4c82bd;}export function parseLegacyApiAppCode(_0x1f66e5){return _0x1f66e5['match'](/export\s+const\s+[A-Z0-9_]*APP_CODE(?:\s*:\s*string)?\s*=\s*["']([^"']+)["']/)?.[0x1];}function stripComments(_0x4fecfc){const _0x2e8b4a=a5_0x2f3b;return _0x4fecfc['replace'](/\/\*[\s\S]*?\*\//g,'')[_0x2e8b4a(0x1d5)](/\/\/.*$/gm,'');}function a5_0x40d1(){const _0x576a38=['some','@lovrabet/sdk','6Pwkizc','8SqJeZU','2948OpIYmY','73300xBhBwE','Generated\x20by\x20Rabetbase\x20CLI','matchAll','7399231dHwNci','3078VenyCZ','endsWith','751615XlRZYe','lovrabetClient','push','78uybpZV','427092qDuENV','includes','1063410cIzvyM','replace','324hEGKhq','map','2454375yjYizb','2aiSlji','registerModels','test','MODELS_CONFIG','length'];a5_0x40d1=function(){return _0x576a38;};return a5_0x40d1();}export function isLegacyGeneratedApiScaffold(_0x2eeb53){const _0x19a328=a5_0x2f3b;if(!_0x2eeb53[_0x19a328(0x1d3)](_0x19a328(0x1e4)))return![];const _0x5c37e3=stripComments(_0x2eeb53),_0x20a32f=[..._0x5c37e3['matchAll'](/^import[\s\S]*?from\s+["']([^"']+)["'];?$/gm)]['map'](_0x3c7293=>_0x3c7293[0x1]);if(_0x20a32f[_0x19a328(0x1dd)]!==0x1||_0x20a32f[0x0]!==_0x19a328(0x1df))return![];const _0x5057e0=[..._0x5c37e3[_0x19a328(0x1e5)](/^(?:export\s+)?const\s+([A-Za-z_$][\w$]*)/gm)][_0x19a328(0x1d7)](_0x1e4204=>_0x1e4204[0x1]);if(_0x5057e0['length']!==0x2||!_0x5057e0[_0x19a328(0x1de)](_0x1d3e78=>_0x1d3e78[_0x19a328(0x1e8)]('APP_CODE'))||!_0x5057e0[_0x19a328(0x1de)](_0x18ff10=>_0x18ff10['endsWith'](_0x19a328(0x1dc))))return![];const _0xa9f522=[..._0x5c37e3[_0x19a328(0x1e5)](/^([A-Za-z_$][\w$]*)\s*\(/gm)][_0x19a328(0x1d7)](_0x8dcf74=>_0x8dcf74[0x1]);return _0xa9f522[_0x19a328(0x1dd)]===0x1&&_0xa9f522[0x0]===_0x19a328(0x1da);}function a5_0x2f3b(_0x2bf65d,_0x2c2bb3){_0x2bf65d=_0x2bf65d-0x1d2;const _0x40d1ee=a5_0x40d1();let _0x2f3ba5=_0x40d1ee[_0x2bf65d];return _0x2f3ba5;}export function isLegacyGeneratedClientScaffold(_0x12c48f){const _0x3136b8=a5_0x2f3b;if(!_0x12c48f['includes'](_0x3136b8(0x1e4)))return![];const _0x11d34f=stripComments(_0x12c48f),_0x31a4d1=[..._0x11d34f[_0x3136b8(0x1e5)](/^(?:import[\s\S]*?from\s+|import\s+)["']([^"']+)["'];?$/gm)]['map'](_0x5ac1f0=>_0x5ac1f0[0x1]);if(_0x31a4d1['some'](_0x361c26=>_0x361c26!==_0x3136b8(0x1df)&&!/^\.\/(?:[\w-]+-)?(?:api|sdk-config)$/[_0x3136b8(0x1db)](_0x361c26??'')))return![];const _0x194037=[..._0x11d34f[_0x3136b8(0x1e5)](/^(?:export\s+)?const\s+([A-Za-z_$][\w$]*)/gm)]['map'](_0xce37a8=>_0xce37a8[0x1]);return _0x194037[_0x3136b8(0x1dd)]===0x1&&_0x194037[0x0]===_0x3136b8(0x1ea);}
@@ -1 +1 @@
1
- const a6_0x2ac0b6=a6_0x7971;(function(_0x5406ae,_0x39d1a8){const _0xff4cf2=a6_0x7971,_0x25f95f=_0x5406ae();while(!![]){try{const _0x5223a9=-parseInt(_0xff4cf2(0x6c))/0x1*(parseInt(_0xff4cf2(0x82))/0x2)+-parseInt(_0xff4cf2(0xa8))/0x3+-parseInt(_0xff4cf2(0x9e))/0x4+-parseInt(_0xff4cf2(0x6d))/0x5*(parseInt(_0xff4cf2(0x88))/0x6)+-parseInt(_0xff4cf2(0x91))/0x7+-parseInt(_0xff4cf2(0x9f))/0x8+-parseInt(_0xff4cf2(0x78))/0x9*(-parseInt(_0xff4cf2(0x6e))/0xa);if(_0x5223a9===_0x39d1a8)break;else _0x25f95f['push'](_0x25f95f['shift']());}catch(_0x4bc97c){_0x25f95f['push'](_0x25f95f['shift']());}}}(a6_0x5b9b,0xa3fdb));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a6_0x5b9b(){const _0x1c8348=['split','444havGZf','\x22\x20maps\x20to\x20alias\x20\x22','map','string','fromEntries','models','includes','\x22\x20in\x20the\x20registry\x20but\x20\x22','\x22\x20with\x20an\x20empty\x20result.\x20','1934513RnpAfz','utf8','keys','trim','slice','filter','\x20model(s)\x20in\x20profile\x20\x22','alias','outputDir','Table\x20\x22','key','runtimeDomain','length','558512QHNWAZ','7493040FNInuJ','profileName','push','profiles','Refusing\x20to\x20replace\x20','now','join','values','\x22\x20and\x20\x22','3740322DfdtCT','lovrabet-model-registry/v2','name','value','/**\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','NOT-SET','entries','isArray','\x22\x20in\x20profile\x20\x22','get','1WyQmon','52665KJYOSD','30JUsfJd','\x20is\x20not\x20a\x20valid\x20Rabetbase\x20generated\x20file.\x20Move\x20or\x20repair\x20it\x20before\x20pulling\x20models\x20again.','defaultProfile','datasetCode','lovrabet-model-registry/v1','stringify','replace','indexOf','tableName','object','12956742nmBCAl','\x20as\x20const\x20satisfies\x20LovrabetModelRegistry;\x0a','set','\x0aexport\x20const\x20LOVRABET_MODEL_REGISTRY\x20=\x0a\x20\x20','parse','appCode','\x22\x20maps\x20to\x20both\x20\x22','protocol','test','model-runtime.ts','536748LTBGRA','/*\x20rabetbase-model-registry:start\x20*/','find','datasetCodes','.tmp'];a6_0x5b9b=function(){return _0x1c8348;};return a6_0x5b9b();}import a6_0xeb4e8f from'node:path';export const MODEL_REGISTRY_FILE_NAME='models.generated.ts';export const MODEL_RUNTIME_FILE_NAME=a6_0x2ac0b6(0x81);export const MODEL_REGISTRY_VERSION_MARKER='/*\x20rabetbase-model-registry:v2\x20*/';const LEGACY_MODEL_REGISTRY_V2_PROTOCOL=a6_0x2ac0b6(0xa9),REGISTRY_START=a6_0x2ac0b6(0x83),REGISTRY_END='/*\x20rabetbase-model-registry:end\x20*/';function emptyRegistry(_0x4729b1){return{'defaultProfile':_0x4729b1,'profiles':{},'models':[]};}function extractRegistryJson(_0x2a44e7){const _0x116271=a6_0x2ac0b6,_0x4c3eb9=_0x2a44e7[_0x116271(0x75)](REGISTRY_START),_0x30be31=_0x2a44e7['indexOf'](REGISTRY_END);if(_0x4c3eb9<0x0||_0x30be31<=_0x4c3eb9)return undefined;return _0x2a44e7['slice'](_0x4c3eb9+REGISTRY_START[_0x116271(0x9d)],_0x30be31)[_0x116271(0x94)]()[_0x116271(0x74)](/\s+as const satisfies LovrabetModelRegistry;?$/,'')[_0x116271(0x74)](/;$/,'');}function migrateLegacyRegistry(_0x289530){const _0x396a0f=a6_0x2ac0b6,_0x2f52dc=emptyRegistry(_0x289530[_0x396a0f(0x70)]);for(const [_0x2c4d4c,_0x40f658]of Object[_0x396a0f(0xae)](_0x289530['profiles'])){_0x2f52dc[_0x396a0f(0xa2)][_0x2c4d4c]={'appCode':_0x40f658['appCode'],'runtimeDomain':_0x40f658['runtimeDomain']},mergeProfileModels(_0x2f52dc,_0x2c4d4c,_0x40f658[_0x396a0f(0x8d)]);}return _0x2f52dc;}function generatedObjectLiteralToJson(_0x3fa475){const _0x401560=a6_0x2ac0b6;let _0x4034e5='',_0x317e02,_0x5a82f3=![],_0x397aa;for(let _0x4c522d=0x0;_0x4c522d<_0x3fa475[_0x401560(0x9d)];_0x4c522d++){const _0xbfa5cc=_0x3fa475[_0x4c522d];if(_0x317e02){_0x4034e5+=_0xbfa5cc;if(_0x5a82f3)_0x5a82f3=![];else{if(_0xbfa5cc==='\x5c')_0x5a82f3=!![];else{if(_0xbfa5cc===_0x317e02)_0x317e02=undefined;}}continue;}if(_0xbfa5cc==='\x22'){_0x317e02=_0xbfa5cc,_0x4034e5+=_0xbfa5cc,_0x397aa='value';continue;}if(_0xbfa5cc===','){let _0x485948=_0x4c522d+0x1;while(/\s/[_0x401560(0x80)](_0x3fa475[_0x485948]??''))_0x485948++;if(_0x3fa475[_0x485948]==='}'||_0x3fa475[_0x485948]===']')continue;_0x4034e5+=_0xbfa5cc,_0x397aa=',';continue;}if(_0xbfa5cc==='{'||_0xbfa5cc==='['){_0x4034e5+=_0xbfa5cc,_0x397aa=_0xbfa5cc;continue;}if(_0xbfa5cc==='}'||_0xbfa5cc===']'){_0x4034e5+=_0xbfa5cc,_0x397aa=_0xbfa5cc;continue;}if((_0x397aa==='{'||_0x397aa===',')&&/[A-Za-z_$]/['test'](_0xbfa5cc)){let _0x54360f=_0x4c522d+0x1;while(/[A-Za-z0-9_$]/[_0x401560(0x80)](_0x3fa475[_0x54360f]??''))_0x54360f++;let _0x5cfed1=_0x54360f;while(/\s/['test'](_0x3fa475[_0x5cfed1]??''))_0x5cfed1++;if(_0x3fa475[_0x5cfed1]===':'){_0x4034e5+=JSON[_0x401560(0x73)](_0x3fa475[_0x401560(0x95)](_0x4c522d,_0x54360f)),_0x4c522d=_0x54360f-0x1,_0x397aa=_0x401560(0x9b);continue;}}_0x4034e5+=_0xbfa5cc;if(!/\s/[_0x401560(0x80)](_0xbfa5cc)&&_0xbfa5cc!==':')_0x397aa=_0x401560(0xab);}return _0x4034e5;}function parseGeneratedRegistryJson(_0x4597ec){const _0x202d51=a6_0x2ac0b6;try{return JSON['parse'](_0x4597ec);}catch{return JSON[_0x202d51(0x7c)](generatedObjectLiteralToJson(_0x4597ec));}}function normalizeModelEntries(_0xcda159,_0x579bc0){const _0xc25b66=a6_0x2ac0b6,_0x50a199=Object['keys'](_0xcda159),_0x142ed1=[];for(const _0x18f7a4 of _0x579bc0){if(!_0x18f7a4||typeof _0x18f7a4!==_0xc25b66(0x77)||Array[_0xc25b66(0xaf)](_0x18f7a4))return undefined;const _0x19e06e=_0x18f7a4;if(typeof _0x19e06e[_0xc25b66(0x98)]!==_0xc25b66(0x8b)||typeof _0x19e06e[_0xc25b66(0x76)]!=='string'||typeof _0x19e06e['name']!==_0xc25b66(0x8b))return undefined;let _0x173269;if(typeof _0x19e06e[_0xc25b66(0x71)]===_0xc25b66(0x8b)&&_0x19e06e[_0xc25b66(0x85)]===undefined)_0x173269=Object[_0xc25b66(0x8c)](_0x50a199[_0xc25b66(0x8a)](_0x256705=>[_0x256705,_0x19e06e['datasetCode']]));else{if(_0x19e06e['datasetCode']===undefined&&_0x19e06e[_0xc25b66(0x85)]&&typeof _0x19e06e[_0xc25b66(0x85)]===_0xc25b66(0x77)&&!Array['isArray'](_0x19e06e[_0xc25b66(0x85)])&&Object[_0xc25b66(0xa6)](_0x19e06e[_0xc25b66(0x85)])['every'](_0x11d3c3=>typeof _0x11d3c3==='string'))_0x173269={..._0x19e06e[_0xc25b66(0x85)]};else return undefined;}_0x142ed1[_0xc25b66(0xa1)]({'alias':_0x19e06e[_0xc25b66(0x98)],'tableName':_0x19e06e[_0xc25b66(0x76)],'name':_0x19e06e[_0xc25b66(0xaa)],'datasetCodes':_0x173269});}return _0x142ed1;}export function parseModelRegistry(_0x3051e8){const _0xa7d8dc=a6_0x2ac0b6,_0x30c9a8=extractRegistryJson(_0x3051e8);if(!_0x30c9a8)return undefined;try{const _0x190114=parseGeneratedRegistryJson(_0x30c9a8);if(typeof _0x190114[_0xa7d8dc(0x70)]!==_0xa7d8dc(0x8b)||!_0x190114[_0xa7d8dc(0xa2)]||typeof _0x190114[_0xa7d8dc(0xa2)]!=='object')return undefined;if(_0x190114[_0xa7d8dc(0x7f)]===_0xa7d8dc(0x72))return migrateLegacyRegistry(_0x190114);if(!(_0x190114[_0xa7d8dc(0x7f)]===LEGACY_MODEL_REGISTRY_V2_PROTOCOL||_0x190114[_0xa7d8dc(0x7f)]===undefined&&_0x3051e8[_0xa7d8dc(0x8e)](MODEL_REGISTRY_VERSION_MARKER))||!Array['isArray'](_0x190114['models']))return undefined;const _0x9e2ca7=_0x190114['profiles'],_0x17a354=normalizeModelEntries(_0x9e2ca7,_0x190114[_0xa7d8dc(0x8d)]);if(!_0x17a354)return undefined;return{'defaultProfile':_0x190114['defaultProfile'],'profiles':_0x9e2ca7,'models':_0x17a354};}catch{return undefined;}}export function readModelRegistry(_0x220713){if(!existsSync(_0x220713))return undefined;try{return parseModelRegistry(readFileSync(_0x220713,'utf8'));}catch{return undefined;}}function registrySource(_0x8955cf){const _0x142cf7=a6_0x2ac0b6,_0x44d539=Object['keys'](_0x8955cf['profiles']),_0x4f8fa9=_0x8955cf[_0x142cf7(0x8d)]['map'](_0x3c416b=>{const _0xaadaa1=_0x142cf7,_0x73ca1e=_0x44d539['map'](_0x485ef1=>_0x3c416b[_0xaadaa1(0x85)][_0x485ef1]),_0x3064a5=_0x73ca1e[0x0],_0x4179bf=_0x3064a5!==undefined&&_0x73ca1e['every'](_0x5467e5=>_0x5467e5===_0x3064a5),_0x417ed5={'alias':_0x3c416b[_0xaadaa1(0x98)],'tableName':_0x3c416b[_0xaadaa1(0x76)],'name':_0x3c416b['name']};return _0x4179bf?{..._0x417ed5,'datasetCode':_0x3064a5}:{..._0x417ed5,'datasetCodes':_0x3c416b[_0xaadaa1(0x85)]};}),_0x47bd4d=JSON['stringify']({'defaultProfile':_0x8955cf[_0x142cf7(0x70)],'profiles':_0x8955cf[_0x142cf7(0xa2)],'models':_0x4f8fa9},null,0x2)[_0x142cf7(0x87)]('\x0a')[_0x142cf7(0x8a)](_0x5f5425=>'\x20\x20'+_0x5f5425)[_0x142cf7(0xa5)]('\x0a');return _0x142cf7(0xac)+MODEL_REGISTRY_VERSION_MARKER+_0x142cf7(0x7b)+REGISTRY_START+'\x0a'+_0x47bd4d+_0x142cf7(0x79)+REGISTRY_END+'\x0a';}function mergeProfileModels(_0x1c77b0,_0x3a7ba9,_0x112536){const _0x415a4b=a6_0x2ac0b6,_0x7240ff=_0x112536[_0x415a4b(0x8a)](_0x5d3ea5=>({..._0x5d3ea5,'alias':_0x5d3ea5[_0x415a4b(0x98)]||_0x5d3ea5['tableName']})),_0x30c1de=new Map(),_0x4f1e37=new Map();for(const _0x3232d6 of _0x7240ff){const _0x43bc0b=_0x30c1de[_0x415a4b(0x6b)](_0x3232d6[_0x415a4b(0x98)]);if(_0x43bc0b&&_0x43bc0b!==_0x3232d6[_0x415a4b(0x76)])throw new Error('Model\x20alias\x20\x22'+_0x3232d6[_0x415a4b(0x98)]+_0x415a4b(0x7e)+_0x43bc0b+_0x415a4b(0xa7)+_0x3232d6[_0x415a4b(0x76)]+_0x415a4b(0xb0)+_0x3a7ba9+'\x22.');const _0x5cb9b3=_0x4f1e37[_0x415a4b(0x6b)](_0x3232d6['tableName']);if(_0x5cb9b3&&_0x5cb9b3!==_0x3232d6['alias'])throw new Error(_0x415a4b(0x9a)+_0x3232d6[_0x415a4b(0x76)]+'\x22\x20maps\x20to\x20both\x20aliases\x20\x22'+_0x5cb9b3+_0x415a4b(0xa7)+_0x3232d6[_0x415a4b(0x98)]+_0x415a4b(0xb0)+_0x3a7ba9+'\x22.');_0x30c1de[_0x415a4b(0x7a)](_0x3232d6['alias'],_0x3232d6['tableName']),_0x4f1e37[_0x415a4b(0x7a)](_0x3232d6[_0x415a4b(0x76)],_0x3232d6[_0x415a4b(0x98)]);const _0x158420=_0x1c77b0[_0x415a4b(0x8d)]['find'](_0x2092a4=>_0x2092a4[_0x415a4b(0x98)]===_0x3232d6['alias']);if(_0x158420&&_0x158420[_0x415a4b(0x76)]!==_0x3232d6['tableName'])throw new Error('Model\x20alias\x20\x22'+_0x3232d6[_0x415a4b(0x98)]+'\x22\x20maps\x20to\x20table\x20\x22'+_0x158420['tableName']+_0x415a4b(0x8f)+_0x3232d6['tableName']+'\x22\x20in\x20profile\x20\x22'+_0x3a7ba9+'\x22.');const _0xa6b104=_0x1c77b0['models'][_0x415a4b(0x84)](_0x273c7f=>_0x273c7f['tableName']===_0x3232d6['tableName']);if(_0xa6b104&&_0xa6b104['alias']!==_0x3232d6['alias'])throw new Error(_0x415a4b(0x9a)+_0x3232d6['tableName']+_0x415a4b(0x89)+_0xa6b104['alias']+_0x415a4b(0x8f)+_0x3232d6['alias']+_0x415a4b(0xb0)+_0x3a7ba9+'\x22.');}for(const _0x5180fb of _0x1c77b0[_0x415a4b(0x8d)]){delete _0x5180fb[_0x415a4b(0x85)][_0x3a7ba9];}for(const _0x4f035e of _0x7240ff){let _0x2d509f=_0x1c77b0[_0x415a4b(0x8d)][_0x415a4b(0x84)](_0x2e8044=>_0x2e8044[_0x415a4b(0x98)]===_0x4f035e[_0x415a4b(0x98)]);!_0x2d509f&&(_0x2d509f={'alias':_0x4f035e['alias'],'tableName':_0x4f035e[_0x415a4b(0x76)],'name':_0x4f035e[_0x415a4b(0xaa)],'datasetCodes':{}},_0x1c77b0[_0x415a4b(0x8d)][_0x415a4b(0xa1)](_0x2d509f)),(_0x3a7ba9===_0x1c77b0[_0x415a4b(0x70)]||!_0x2d509f[_0x415a4b(0x85)][_0x1c77b0[_0x415a4b(0x70)]])&&(_0x2d509f[_0x415a4b(0x98)]=_0x4f035e[_0x415a4b(0x98)],_0x2d509f[_0x415a4b(0x76)]=_0x4f035e[_0x415a4b(0x76)],_0x2d509f[_0x415a4b(0xaa)]=_0x4f035e[_0x415a4b(0xaa)]),_0x2d509f['datasetCodes'][_0x3a7ba9]=_0x4f035e[_0x415a4b(0x71)];}_0x1c77b0['models']=_0x1c77b0[_0x415a4b(0x8d)]['filter'](_0x361efd=>Object[_0x415a4b(0x93)](_0x361efd[_0x415a4b(0x85)])[_0x415a4b(0x9d)]>0x0);}function a6_0x7971(_0xd4df43,_0x18b9b4){_0xd4df43=_0xd4df43-0x6b;const _0x5b9bfc=a6_0x5b9b();let _0x79718a=_0x5b9bfc[_0xd4df43];return _0x79718a;}function removeUnboundProfiles(_0x2cbc47){const _0x459c4e=a6_0x2ac0b6,_0x510203=Object[_0x459c4e(0xae)](_0x2cbc47[_0x459c4e(0xa2)])[_0x459c4e(0x96)](([,_0x4128fb])=>_0x4128fb[_0x459c4e(0x7d)]===_0x459c4e(0xad))['map'](([_0x108225])=>_0x108225);if(_0x510203[_0x459c4e(0x9d)]===0x0)return;for(const _0x38a989 of _0x510203){delete _0x2cbc47[_0x459c4e(0xa2)][_0x38a989];for(const _0x428adb of _0x2cbc47[_0x459c4e(0x8d)]){delete _0x428adb[_0x459c4e(0x85)][_0x38a989];}}_0x2cbc47['models']=_0x2cbc47[_0x459c4e(0x8d)][_0x459c4e(0x96)](_0x43caf0=>Object['keys'](_0x43caf0[_0x459c4e(0x85)])[_0x459c4e(0x9d)]>0x0);}export function getProfileModels(_0x38e801,_0x164b93){const _0x31e0fe=a6_0x2ac0b6;return _0x38e801[_0x31e0fe(0x8d)]['flatMap'](_0x2c3e32=>{const _0x58d9a7=_0x31e0fe,_0x5623f7=_0x2c3e32['datasetCodes'][_0x164b93];return _0x5623f7?[{'datasetCode':_0x5623f7,'tableName':_0x2c3e32[_0x58d9a7(0x76)],'name':_0x2c3e32[_0x58d9a7(0xaa)],'alias':_0x2c3e32['alias']}]:[];});}export function updateModelRegistry(_0x4aad8f){const _0x23cb15=a6_0x2ac0b6,_0x467b60=a6_0xeb4e8f['join'](_0x4aad8f[_0x23cb15(0x99)],MODEL_REGISTRY_FILE_NAME),_0x4983a5=existsSync(_0x467b60),_0x2a5452=readModelRegistry(_0x467b60);if(_0x4983a5&&!_0x2a5452)throw new Error(MODEL_REGISTRY_FILE_NAME+_0x23cb15(0x6f));const _0x3a5864=_0x2a5452??emptyRegistry(_0x4aad8f[_0x23cb15(0x70)]);if(_0x4aad8f[_0x23cb15(0x7d)]!==_0x23cb15(0xad))removeUnboundProfiles(_0x3a5864);const _0x3860d1=_0x2a5452?getProfileModels(_0x2a5452,_0x4aad8f[_0x23cb15(0xa0)])['length']:0x0;if(_0x3860d1>0x0&&_0x4aad8f[_0x23cb15(0x8d)]['length']===0x0&&!_0x4aad8f['allowEmptyReplacement'])throw new Error(_0x23cb15(0xa3)+_0x3860d1+_0x23cb15(0x97)+_0x4aad8f[_0x23cb15(0xa0)]+_0x23cb15(0x90)+'Verify\x20the\x20selected\x20app\x20and\x20login,\x20or\x20rerun\x20with\x20--force\x20--yes\x20if\x20the\x20profile\x20is\x20intentionally\x20empty.');_0x3a5864[_0x23cb15(0x70)]=_0x4aad8f['defaultProfile'],_0x3a5864[_0x23cb15(0xa2)][_0x4aad8f[_0x23cb15(0xa0)]]={'appCode':_0x4aad8f[_0x23cb15(0x7d)],'runtimeDomain':_0x4aad8f[_0x23cb15(0x9c)]},mergeProfileModels(_0x3a5864,_0x4aad8f['profileName'],_0x4aad8f['models']),mkdirSync(_0x4aad8f[_0x23cb15(0x99)],{'recursive':!![]});const _0x20e8a7=_0x467b60+'.'+process['pid']+'.'+Date[_0x23cb15(0xa4)]()+_0x23cb15(0x86);try{writeFileSync(_0x20e8a7,registrySource(_0x3a5864),{'encoding':_0x23cb15(0x92),'mode':0x1a4}),renameSync(_0x20e8a7,_0x467b60);}catch(_0x3fd605){try{unlinkSync(_0x20e8a7);}catch{}throw _0x3fd605;}return{'path':_0x467b60,'registry':_0x3a5864,'existed':_0x4983a5};}
1
+ const a6_0xec9771=a6_0x143c;(function(_0xa46eb7,_0x703b8a){const _0x50d02c=a6_0x143c,_0x884f35=_0xa46eb7();while(!![]){try{const _0x458ac1=parseInt(_0x50d02c(0x124))/0x1*(parseInt(_0x50d02c(0x12c))/0x2)+parseInt(_0x50d02c(0x108))/0x3+parseInt(_0x50d02c(0x10f))/0x4+parseInt(_0x50d02c(0x129))/0x5*(-parseInt(_0x50d02c(0x11d))/0x6)+parseInt(_0x50d02c(0xee))/0x7*(-parseInt(_0x50d02c(0x12b))/0x8)+parseInt(_0x50d02c(0xfa))/0x9*(parseInt(_0x50d02c(0xf7))/0xa)+-parseInt(_0x50d02c(0xe7))/0xb*(-parseInt(_0x50d02c(0xf9))/0xc);if(_0x458ac1===_0x703b8a)break;else _0x884f35['push'](_0x884f35['shift']());}catch(_0x3ce7a8){_0x884f35['push'](_0x884f35['shift']());}}}(a6_0x3fa8,0xb90e6));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import a6_0x21525b from'node:path';export const MODEL_REGISTRY_FILE_NAME='models.generated.ts';export const MODEL_RUNTIME_FILE_NAME=a6_0xec9771(0xfd);export const MODEL_REGISTRY_VERSION_MARKER=a6_0xec9771(0xe6);const LEGACY_MODEL_REGISTRY_V2_PROTOCOL=a6_0xec9771(0x10b),REGISTRY_START='/*\x20rabetbase-model-registry:start\x20*/',REGISTRY_END='/*\x20rabetbase-model-registry:end\x20*/';function emptyRegistry(_0x11cc62){return{'defaultProfile':_0x11cc62,'profiles':{},'models':[]};}function extractRegistryJson(_0x549566){const _0x3d908c=a6_0xec9771,_0x5ea11d=_0x549566['indexOf'](REGISTRY_START),_0x14d632=_0x549566[_0x3d908c(0x121)](REGISTRY_END);if(_0x5ea11d<0x0||_0x14d632<=_0x5ea11d)return undefined;return _0x549566['slice'](_0x5ea11d+REGISTRY_START['length'],_0x14d632)['trim']()[_0x3d908c(0x111)](/\s+as const satisfies LovrabetModelRegistry;?$/,'')['replace'](/;$/,'');}function migrateLegacyRegistry(_0x930ea5){const _0x4f0abb=a6_0xec9771,_0x205bd2=emptyRegistry(_0x930ea5[_0x4f0abb(0x115)]);for(const [_0x1727b4,_0x4cdc03]of Object[_0x4f0abb(0x117)](_0x930ea5[_0x4f0abb(0xe8)])){_0x205bd2['profiles'][_0x1727b4]={'appCode':_0x4cdc03['appCode'],'runtimeDomain':_0x4cdc03[_0x4f0abb(0x104)]},mergeProfileModels(_0x205bd2,_0x1727b4,_0x4cdc03['models']);}return _0x205bd2;}function generatedObjectLiteralToJson(_0x25754d){const _0x547012=a6_0xec9771;let _0x14484f='',_0x362c3f,_0x5d5315=![],_0x96b8b4;for(let _0x25a4ce=0x0;_0x25a4ce<_0x25754d[_0x547012(0x11b)];_0x25a4ce++){const _0x26bf51=_0x25754d[_0x25a4ce];if(_0x362c3f){_0x14484f+=_0x26bf51;if(_0x5d5315)_0x5d5315=![];else{if(_0x26bf51==='\x5c')_0x5d5315=!![];else{if(_0x26bf51===_0x362c3f)_0x362c3f=undefined;}}continue;}if(_0x26bf51==='\x22'){_0x362c3f=_0x26bf51,_0x14484f+=_0x26bf51,_0x96b8b4='value';continue;}if(_0x26bf51===','){let _0x4a7f13=_0x25a4ce+0x1;while(/\s/[_0x547012(0xf1)](_0x25754d[_0x4a7f13]??''))_0x4a7f13++;if(_0x25754d[_0x4a7f13]==='}'||_0x25754d[_0x4a7f13]===']')continue;_0x14484f+=_0x26bf51,_0x96b8b4=',';continue;}if(_0x26bf51==='{'||_0x26bf51==='['){_0x14484f+=_0x26bf51,_0x96b8b4=_0x26bf51;continue;}if(_0x26bf51==='}'||_0x26bf51===']'){_0x14484f+=_0x26bf51,_0x96b8b4=_0x26bf51;continue;}if((_0x96b8b4==='{'||_0x96b8b4===',')&&/[A-Za-z_$]/[_0x547012(0xf1)](_0x26bf51)){let _0x30576c=_0x25a4ce+0x1;while(/[A-Za-z0-9_$]/[_0x547012(0xf1)](_0x25754d[_0x30576c]??''))_0x30576c++;let _0x460b0f=_0x30576c;while(/\s/[_0x547012(0xf1)](_0x25754d[_0x460b0f]??''))_0x460b0f++;if(_0x25754d[_0x460b0f]===':'){_0x14484f+=JSON[_0x547012(0x102)](_0x25754d['slice'](_0x25a4ce,_0x30576c)),_0x25a4ce=_0x30576c-0x1,_0x96b8b4=_0x547012(0x106);continue;}}_0x14484f+=_0x26bf51;if(!/\s/['test'](_0x26bf51)&&_0x26bf51!==':')_0x96b8b4='value';}return _0x14484f;}function parseGeneratedRegistryJson(_0x5d86d3){const _0x367618=a6_0xec9771;try{return JSON['parse'](_0x5d86d3);}catch{return JSON[_0x367618(0x118)](generatedObjectLiteralToJson(_0x5d86d3));}}function normalizeModelEntries(_0x7ef8d8,_0x1eb3d5){const _0x536860=a6_0xec9771,_0xfe15b2=Object[_0x536860(0x105)](_0x7ef8d8),_0x131811=[];for(const _0x5a8d46 of _0x1eb3d5){if(!_0x5a8d46||typeof _0x5a8d46!=='object'||Array['isArray'](_0x5a8d46))return undefined;const _0x48b90a=_0x5a8d46;if(typeof _0x48b90a[_0x536860(0x112)]!==_0x536860(0x110)||typeof _0x48b90a[_0x536860(0xf4)]!==_0x536860(0x110)||typeof _0x48b90a[_0x536860(0x101)]!==_0x536860(0x110))return undefined;let _0x36d214;if(typeof _0x48b90a[_0x536860(0x128)]==='string'&&_0x48b90a[_0x536860(0xf0)]===undefined)_0x36d214=Object[_0x536860(0xed)](_0xfe15b2[_0x536860(0x127)](_0x4ccf1d=>[_0x4ccf1d,_0x48b90a[_0x536860(0x128)]]));else{if(_0x48b90a['datasetCode']===undefined&&_0x48b90a[_0x536860(0xf0)]&&typeof _0x48b90a[_0x536860(0xf0)]===_0x536860(0x11c)&&!Array[_0x536860(0x109)](_0x48b90a['datasetCodes'])&&Object[_0x536860(0xe9)](_0x48b90a[_0x536860(0xf0)])[_0x536860(0xf5)](_0x1a3230=>typeof _0x1a3230==='string'))_0x36d214={..._0x48b90a[_0x536860(0xf0)]};else return undefined;}_0x131811[_0x536860(0xf6)]({'alias':_0x48b90a['alias'],'tableName':_0x48b90a[_0x536860(0xf4)],'name':_0x48b90a[_0x536860(0x101)],'datasetCodes':_0x36d214});}return _0x131811;}export function parseModelRegistry(_0x242a8e){const _0x1f0c57=a6_0xec9771,_0x5eab22=extractRegistryJson(_0x242a8e);if(!_0x5eab22)return undefined;try{const _0xf64a4c=parseGeneratedRegistryJson(_0x5eab22);if(typeof _0xf64a4c[_0x1f0c57(0x115)]!=='string'||!_0xf64a4c[_0x1f0c57(0xe8)]||typeof _0xf64a4c['profiles']!==_0x1f0c57(0x11c))return undefined;if(_0xf64a4c[_0x1f0c57(0xfe)]==='lovrabet-model-registry/v1')return migrateLegacyRegistry(_0xf64a4c);if(!(_0xf64a4c[_0x1f0c57(0xfe)]===LEGACY_MODEL_REGISTRY_V2_PROTOCOL||_0xf64a4c['protocol']===undefined&&_0x242a8e[_0x1f0c57(0x103)](MODEL_REGISTRY_VERSION_MARKER))||!Array[_0x1f0c57(0x109)](_0xf64a4c[_0x1f0c57(0xea)]))return undefined;const _0x3bdc46=_0xf64a4c['profiles'],_0x1c09b5=normalizeModelEntries(_0x3bdc46,_0xf64a4c['models']);if(!_0x1c09b5)return undefined;return{'defaultProfile':_0xf64a4c['defaultProfile'],'profiles':_0x3bdc46,'models':_0x1c09b5};}catch{return undefined;}}export function readModelRegistry(_0xc2e9de){const _0x233824=a6_0xec9771;if(!existsSync(_0xc2e9de))return undefined;try{return parseModelRegistry(readFileSync(_0xc2e9de,_0x233824(0xec)));}catch{return undefined;}}function a6_0x3fa8(){const _0x2dfb3b=['parse','flatMap','now','length','object','73056WfZMkx','set','Model\x20alias\x20\x22','\x22\x20with\x20an\x20empty\x20result.\x20','indexOf','Table\x20\x22','\x22\x20in\x20profile\x20\x22','28979chiPXB','\x20as\x20const\x20satisfies\x20LovrabetModelRegistry;\x0a','.tmp','map','datasetCode','545LsUuwn','filter','8UocqQj','26GXiqqM','/*\x20rabetbase-model-registry:v2\x20*/','11KUstLZ','profiles','values','models','allowEmptyReplacement','utf8','fromEntries','7748993nWHoKa','profileName','datasetCodes','test','\x22\x20maps\x20to\x20table\x20\x22','join','tableName','every','push','64570xjFUbr','Refusing\x20to\x20replace\x20','6122028yXwgHU','468cDiyyJ','split','pid','model-runtime.ts','protocol','NOT-SET','\x22\x20and\x20\x22','name','stringify','includes','runtimeDomain','keys','key','\x0aexport\x20const\x20LOVRABET_MODEL_REGISTRY\x20=\x0a\x20\x20','3234495WjmgMT','isArray','outputDir','lovrabet-model-registry/v2','appCode','find','get','3565392nzgsNH','string','replace','alias','\x22\x20maps\x20to\x20alias\x20\x22','\x22\x20in\x20the\x20registry\x20but\x20\x22','defaultProfile','\x22\x20maps\x20to\x20both\x20aliases\x20\x22','entries'];a6_0x3fa8=function(){return _0x2dfb3b;};return a6_0x3fa8();}function registrySource(_0x1dd483){const _0x457356=a6_0xec9771,_0x4f406f=Object[_0x457356(0x105)](_0x1dd483[_0x457356(0xe8)]),_0x38ce75=_0x1dd483[_0x457356(0xea)][_0x457356(0x127)](_0x4cfeb5=>{const _0x2e2f7a=_0x457356,_0x9cc296=_0x4f406f[_0x2e2f7a(0x127)](_0x36b86f=>_0x4cfeb5[_0x2e2f7a(0xf0)][_0x36b86f]),_0x438409=_0x9cc296[0x0],_0x138d0d=_0x438409!==undefined&&_0x9cc296['every'](_0x261395=>_0x261395===_0x438409),_0x163839={'alias':_0x4cfeb5[_0x2e2f7a(0x112)],'tableName':_0x4cfeb5[_0x2e2f7a(0xf4)],'name':_0x4cfeb5[_0x2e2f7a(0x101)]};return _0x138d0d?{..._0x163839,'datasetCode':_0x438409}:{..._0x163839,'datasetCodes':_0x4cfeb5[_0x2e2f7a(0xf0)]};}),_0x1a1115=JSON[_0x457356(0x102)]({'defaultProfile':_0x1dd483[_0x457356(0x115)],'profiles':_0x1dd483[_0x457356(0xe8)],'models':_0x38ce75},null,0x2)[_0x457356(0xfb)]('\x0a')[_0x457356(0x127)](_0x138ce2=>'\x20\x20'+_0x138ce2)[_0x457356(0xf3)]('\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+_0x457356(0x107)+REGISTRY_START+'\x0a'+_0x1a1115+_0x457356(0x125)+REGISTRY_END+'\x0a';}function mergeProfileModels(_0x22061d,_0x2306cd,_0x5c4e7b){const _0x3a390f=a6_0xec9771,_0xb1d577=_0x5c4e7b[_0x3a390f(0x127)](_0x11b207=>({..._0x11b207,'alias':_0x11b207[_0x3a390f(0x112)]||_0x11b207[_0x3a390f(0xf4)]})),_0x2c5d40=new Map(),_0x5eb472=new Map();for(const _0x3b29e4 of _0xb1d577){const _0x3229ee=_0x2c5d40[_0x3a390f(0x10e)](_0x3b29e4[_0x3a390f(0x112)]);if(_0x3229ee&&_0x3229ee!==_0x3b29e4[_0x3a390f(0xf4)])throw new Error(_0x3a390f(0x11f)+_0x3b29e4['alias']+'\x22\x20maps\x20to\x20both\x20\x22'+_0x3229ee+_0x3a390f(0x100)+_0x3b29e4['tableName']+'\x22\x20in\x20profile\x20\x22'+_0x2306cd+'\x22.');const _0x82addf=_0x5eb472[_0x3a390f(0x10e)](_0x3b29e4['tableName']);if(_0x82addf&&_0x82addf!==_0x3b29e4[_0x3a390f(0x112)])throw new Error(_0x3a390f(0x122)+_0x3b29e4['tableName']+_0x3a390f(0x116)+_0x82addf+_0x3a390f(0x100)+_0x3b29e4[_0x3a390f(0x112)]+'\x22\x20in\x20profile\x20\x22'+_0x2306cd+'\x22.');_0x2c5d40[_0x3a390f(0x11e)](_0x3b29e4[_0x3a390f(0x112)],_0x3b29e4[_0x3a390f(0xf4)]),_0x5eb472[_0x3a390f(0x11e)](_0x3b29e4[_0x3a390f(0xf4)],_0x3b29e4['alias']);const _0x4f77b1=_0x22061d[_0x3a390f(0xea)][_0x3a390f(0x10d)](_0x56aecf=>_0x56aecf[_0x3a390f(0x112)]===_0x3b29e4['alias']);if(_0x4f77b1&&_0x4f77b1[_0x3a390f(0xf4)]!==_0x3b29e4[_0x3a390f(0xf4)])throw new Error(_0x3a390f(0x11f)+_0x3b29e4[_0x3a390f(0x112)]+_0x3a390f(0xf2)+_0x4f77b1['tableName']+_0x3a390f(0x114)+_0x3b29e4['tableName']+_0x3a390f(0x123)+_0x2306cd+'\x22.');const _0x4f3894=_0x22061d[_0x3a390f(0xea)]['find'](_0x4171a7=>_0x4171a7[_0x3a390f(0xf4)]===_0x3b29e4[_0x3a390f(0xf4)]);if(_0x4f3894&&_0x4f3894['alias']!==_0x3b29e4[_0x3a390f(0x112)])throw new Error(_0x3a390f(0x122)+_0x3b29e4[_0x3a390f(0xf4)]+_0x3a390f(0x113)+_0x4f3894[_0x3a390f(0x112)]+_0x3a390f(0x114)+_0x3b29e4[_0x3a390f(0x112)]+_0x3a390f(0x123)+_0x2306cd+'\x22.');}for(const _0x35029a of _0x22061d['models']){delete _0x35029a[_0x3a390f(0xf0)][_0x2306cd];}for(const _0x119685 of _0xb1d577){let _0x6f5ef4=_0x22061d[_0x3a390f(0xea)][_0x3a390f(0x10d)](_0x5ef83f=>_0x5ef83f[_0x3a390f(0x112)]===_0x119685['alias']);!_0x6f5ef4&&(_0x6f5ef4={'alias':_0x119685[_0x3a390f(0x112)],'tableName':_0x119685['tableName'],'name':_0x119685[_0x3a390f(0x101)],'datasetCodes':{}},_0x22061d[_0x3a390f(0xea)][_0x3a390f(0xf6)](_0x6f5ef4)),(_0x2306cd===_0x22061d[_0x3a390f(0x115)]||!_0x6f5ef4[_0x3a390f(0xf0)][_0x22061d[_0x3a390f(0x115)]])&&(_0x6f5ef4[_0x3a390f(0x112)]=_0x119685['alias'],_0x6f5ef4['tableName']=_0x119685[_0x3a390f(0xf4)],_0x6f5ef4[_0x3a390f(0x101)]=_0x119685[_0x3a390f(0x101)]),_0x6f5ef4[_0x3a390f(0xf0)][_0x2306cd]=_0x119685[_0x3a390f(0x128)];}_0x22061d[_0x3a390f(0xea)]=_0x22061d[_0x3a390f(0xea)]['filter'](_0x12d3be=>Object[_0x3a390f(0x105)](_0x12d3be[_0x3a390f(0xf0)])['length']>0x0);}function a6_0x143c(_0x2447e6,_0x7caeb2){_0x2447e6=_0x2447e6-0xe6;const _0x3fa853=a6_0x3fa8();let _0x143cab=_0x3fa853[_0x2447e6];return _0x143cab;}function removeUnboundProfiles(_0x5078b8){const _0x3ec6f9=a6_0xec9771,_0x4f9d15=Object['entries'](_0x5078b8['profiles'])[_0x3ec6f9(0x12a)](([,_0x2eb828])=>_0x2eb828[_0x3ec6f9(0x10c)]===_0x3ec6f9(0xff))[_0x3ec6f9(0x127)](([_0x234ad9])=>_0x234ad9);if(_0x4f9d15['length']===0x0)return;for(const _0x1bc3a2 of _0x4f9d15){delete _0x5078b8['profiles'][_0x1bc3a2];for(const _0x16dc80 of _0x5078b8[_0x3ec6f9(0xea)]){delete _0x16dc80[_0x3ec6f9(0xf0)][_0x1bc3a2];}}_0x5078b8['models']=_0x5078b8[_0x3ec6f9(0xea)][_0x3ec6f9(0x12a)](_0x44c677=>Object[_0x3ec6f9(0x105)](_0x44c677['datasetCodes'])[_0x3ec6f9(0x11b)]>0x0);}export function getProfileModels(_0x13f32c,_0x13608f){const _0x206a00=a6_0xec9771;return _0x13f32c['models'][_0x206a00(0x119)](_0x50f847=>{const _0x32a5a6=_0x206a00,_0xfdbea9=_0x50f847[_0x32a5a6(0xf0)][_0x13608f];return _0xfdbea9?[{'datasetCode':_0xfdbea9,'tableName':_0x50f847[_0x32a5a6(0xf4)],'name':_0x50f847[_0x32a5a6(0x101)],'alias':_0x50f847['alias']}]:[];});}export function updateModelRegistry(_0x37deda){const _0xcf0a41=a6_0xec9771,_0xa9f8ce=a6_0x21525b[_0xcf0a41(0xf3)](_0x37deda['outputDir'],MODEL_REGISTRY_FILE_NAME),_0x4c21de=existsSync(_0xa9f8ce),_0x454066=readModelRegistry(_0xa9f8ce);if(_0x4c21de&&!_0x454066)throw new Error(MODEL_REGISTRY_FILE_NAME+'\x20is\x20not\x20a\x20valid\x20Rabetbase\x20generated\x20file.\x20Move\x20or\x20repair\x20it\x20before\x20pulling\x20models\x20again.');const _0x4a1907=_0x454066??emptyRegistry(_0x37deda['defaultProfile']);if(_0x37deda[_0xcf0a41(0x10c)]!==_0xcf0a41(0xff))removeUnboundProfiles(_0x4a1907);const _0x5044b7=_0x454066?getProfileModels(_0x454066,_0x37deda['profileName'])[_0xcf0a41(0x11b)]:0x0;if(_0x5044b7>0x0&&_0x37deda[_0xcf0a41(0xea)][_0xcf0a41(0x11b)]===0x0&&!_0x37deda[_0xcf0a41(0xeb)])throw new Error(_0xcf0a41(0xf8)+_0x5044b7+'\x20model(s)\x20in\x20profile\x20\x22'+_0x37deda[_0xcf0a41(0xef)]+_0xcf0a41(0x120)+'Verify\x20the\x20selected\x20app\x20and\x20login,\x20or\x20rerun\x20with\x20--force\x20--yes\x20if\x20the\x20profile\x20is\x20intentionally\x20empty.');_0x4a1907[_0xcf0a41(0x115)]=_0x37deda['defaultProfile'],_0x4a1907['profiles'][_0x37deda[_0xcf0a41(0xef)]]={'appCode':_0x37deda[_0xcf0a41(0x10c)],'runtimeDomain':_0x37deda[_0xcf0a41(0x104)]},mergeProfileModels(_0x4a1907,_0x37deda[_0xcf0a41(0xef)],_0x37deda[_0xcf0a41(0xea)]),mkdirSync(_0x37deda[_0xcf0a41(0x10a)],{'recursive':!![]});const _0x258f88=_0xa9f8ce+'.'+process[_0xcf0a41(0xfc)]+'.'+Date[_0xcf0a41(0x11a)]()+_0xcf0a41(0x126);try{writeFileSync(_0x258f88,registrySource(_0x4a1907),{'encoding':_0xcf0a41(0xec),'mode':0x1a4}),renameSync(_0x258f88,_0xa9f8ce);}catch(_0x5e3082){try{unlinkSync(_0x258f88);}catch{}throw _0x5e3082;}return{'path':_0xa9f8ce,'registry':_0x4a1907,'existed':_0x4c21de};}
@@ -1 +1 @@
1
- const a7_0x1e3e5a=a7_0x1394;(function(_0xd7b5ef,_0xf6cff4){const _0x3b822f=a7_0x1394,_0x48c8ac=_0xd7b5ef();while(!![]){try{const _0x36140f=-parseInt(_0x3b822f(0xf2))/0x1*(parseInt(_0x3b822f(0xe3))/0x2)+-parseInt(_0x3b822f(0xde))/0x3+-parseInt(_0x3b822f(0xe7))/0x4*(-parseInt(_0x3b822f(0xea))/0x5)+-parseInt(_0x3b822f(0xe6))/0x6+parseInt(_0x3b822f(0xe5))/0x7+parseInt(_0x3b822f(0xef))/0x8*(parseInt(_0x3b822f(0xda))/0x9)+parseInt(_0x3b822f(0xe0))/0xa*(parseInt(_0x3b822f(0xeb))/0xb);if(_0x36140f===_0xf6cff4)break;else _0x48c8ac['push'](_0x48c8ac['shift']());}catch(_0x538203){_0x48c8ac['push'](_0x48c8ac['shift']());}}}(a7_0x2d83,0xa29a4));import{readFileSync}from'node:fs';function a7_0x2d83(){const _0x6e80ff=['utf8','resolve','3776922PXnbHS','typescript','70qGWHHY','cwd','format','1793532hSbRnq','join','9193023NyqyLj','961872okrMIe','661988gnEsRL','all','model-runtime.ts.tpl','10EtNgbP','469491SnocOh','relative','../../templates/generate-api','profile-api.ts.tpl','328naDEEV','startsWith','replace','1xojdIr','228078sAkdgf','{ProjectRoutingImport}'];a7_0x2d83=function(){return _0x6e80ff;};return a7_0x2d83();}import a7_0x367ad4 from'node:path';function a7_0x1394(_0x426723,_0x433779){_0x426723=_0x426723-0xda;const _0x2d834b=a7_0x2d83();let _0x139486=_0x2d834b[_0x426723];return _0x139486;}import{fileURLToPath}from'node:url';import a7_0x33d088 from'prettier';import{PROJECT_DOMAIN_ROUTING_FILE_NAME}from'../config/project-domain-routing.js';function relativeImport(_0x298bc7,_0x1cb7d2){const _0xb2f58f=a7_0x1394;let _0x5b0270=a7_0x367ad4[_0xb2f58f(0xec)](_0x298bc7,_0x1cb7d2)['replace'](/\\/g,'/');if(!_0x5b0270[_0xb2f58f(0xf0)]('.'))_0x5b0270='./'+_0x5b0270;return _0x5b0270;}export async function renderModelRegistryScaffold(_0x169841,_0x48b2b9=process[a7_0x1e3e5a(0xe1)]()){const _0x50c5e0=a7_0x1e3e5a,_0x14718d=fileURLToPath(import.meta.url),_0x193d51=a7_0x367ad4[_0x50c5e0(0xdd)](a7_0x367ad4['dirname'](_0x14718d),_0x50c5e0(0xed)),_0x3ee028=relativeImport(a7_0x367ad4[_0x50c5e0(0xdd)](_0x169841),a7_0x367ad4[_0x50c5e0(0xdd)](_0x48b2b9,PROJECT_DOMAIN_ROUTING_FILE_NAME)),_0x28ddd9=readFileSync(a7_0x367ad4[_0x50c5e0(0xe4)](_0x193d51,_0x50c5e0(0xee)),_0x50c5e0(0xdc))[_0x50c5e0(0xf1)](_0x50c5e0(0xdb),_0x3ee028),[_0x2dd89b,_0x3839f6,_0x312e26]=await Promise[_0x50c5e0(0xe8)]([a7_0x33d088[_0x50c5e0(0xe2)](_0x28ddd9,{'parser':_0x50c5e0(0xdf)}),a7_0x33d088['format'](readFileSync(a7_0x367ad4[_0x50c5e0(0xe4)](_0x193d51,'profile-client.ts.tpl'),'utf8'),{'parser':_0x50c5e0(0xdf)}),a7_0x33d088['format'](readFileSync(a7_0x367ad4['join'](_0x193d51,_0x50c5e0(0xe9)),'utf8'),{'parser':'typescript'})]);return{'api':_0x2dd89b,'client':_0x3839f6,'modelRuntime':_0x312e26};}
1
+ const a7_0xfd8213=a7_0x415c;(function(_0x49b531,_0x4df126){const _0x2878f9=a7_0x415c,_0x58c1e2=_0x49b531();while(!![]){try{const _0x514fab=parseInt(_0x2878f9(0x75))/0x1+-parseInt(_0x2878f9(0x6c))/0x2+-parseInt(_0x2878f9(0x78))/0x3*(-parseInt(_0x2878f9(0x7c))/0x4)+-parseInt(_0x2878f9(0x71))/0x5+parseInt(_0x2878f9(0x79))/0x6+-parseInt(_0x2878f9(0x66))/0x7+-parseInt(_0x2878f9(0x6e))/0x8;if(_0x514fab===_0x4df126)break;else _0x58c1e2['push'](_0x58c1e2['shift']());}catch(_0x2ef53a){_0x58c1e2['push'](_0x58c1e2['shift']());}}}(a7_0x335a,0xc3288));import{readFileSync}from'node:fs';import a7_0x3cef62 from'node:path';function a7_0x415c(_0x2000f4,_0x1a539b){_0x2000f4=_0x2000f4-0x66;const _0x335aa9=a7_0x335a();let _0x415c67=_0x335aa9[_0x2000f4];return _0x415c67;}import{fileURLToPath}from'node:url';function a7_0x335a(){const _0x2c1001=['cwd','../../templates/generate-api','1419555rEZbWq','{ProjectRoutingImport}','format','9567eAlKVg','7858890bBdjdH','profile-api.ts.tpl','resolve','1796mUCJgN','9173521VOUNZI','relative','utf8','startsWith','join','replace','3050468cnrGiD','model-runtime.ts.tpl','1707912PyASlE','all','profile-client.ts.tpl','1563185YWKitZ','typescript'];a7_0x335a=function(){return _0x2c1001;};return a7_0x335a();}import a7_0x5c2eaf from'prettier';import{PROJECT_DOMAIN_ROUTING_FILE_NAME}from'../config/project-domain-routing.js';function relativeImport(_0x17bf7f,_0x241452){const _0x3a735f=a7_0x415c;let _0x32ae4c=a7_0x3cef62[_0x3a735f(0x67)](_0x17bf7f,_0x241452)[_0x3a735f(0x6b)](/\\/g,'/');if(!_0x32ae4c[_0x3a735f(0x69)]('.'))_0x32ae4c='./'+_0x32ae4c;return _0x32ae4c;}export async function renderModelRegistryScaffold(_0x88d3ef,_0xe1b74f=process[a7_0xfd8213(0x73)]()){const _0x3ec68=a7_0xfd8213,_0x3d35c4=fileURLToPath(import.meta.url),_0x427a71=a7_0x3cef62[_0x3ec68(0x7b)](a7_0x3cef62['dirname'](_0x3d35c4),_0x3ec68(0x74)),_0x3a7acf=relativeImport(a7_0x3cef62[_0x3ec68(0x7b)](_0x88d3ef),a7_0x3cef62[_0x3ec68(0x7b)](_0xe1b74f,PROJECT_DOMAIN_ROUTING_FILE_NAME)),_0x24b79b=readFileSync(a7_0x3cef62['join'](_0x427a71,_0x3ec68(0x7a)),_0x3ec68(0x68))[_0x3ec68(0x6b)](_0x3ec68(0x76),_0x3a7acf),[_0x214321,_0x26886d,_0x560b28]=await Promise[_0x3ec68(0x6f)]([a7_0x5c2eaf[_0x3ec68(0x77)](_0x24b79b,{'parser':_0x3ec68(0x72)}),a7_0x5c2eaf[_0x3ec68(0x77)](readFileSync(a7_0x3cef62[_0x3ec68(0x6a)](_0x427a71,_0x3ec68(0x70)),_0x3ec68(0x68)),{'parser':_0x3ec68(0x72)}),a7_0x5c2eaf[_0x3ec68(0x77)](readFileSync(a7_0x3cef62[_0x3ec68(0x6a)](_0x427a71,_0x3ec68(0x6d)),_0x3ec68(0x68)),{'parser':_0x3ec68(0x72)})]);return{'api':_0x214321,'client':_0x26886d,'modelRuntime':_0x560b28};}
@@ -1 +1 @@
1
- function a8_0x4037(){const _0x3e668c=['apiDir','api.ts','profiles','find','defaultApp','538376aVIpVs','8MrJsbE','cwd','10126930XmwYUc','\x22\x20is\x20missing\x20from\x20','string','map','\x20api\x20pull\x20--app\x20','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','entries','apps','AppCode\x20\x22','validation','appCode','length','\x22\x20belongs\x20to\x20multiple\x20model\x20profiles:\x20','515sZdDCv','46809zmSFfg','1028016NGkUFx','resolve','568vYLOqm','613635oSFRUc','-api.ts','defaultProfile','join','131256TpeWhB','27516kofhcv'];a8_0x4037=function(){return _0x3e668c;};return a8_0x4037();}(function(_0x35850d,_0x4a8fc1){const _0x3cbdfb=a8_0x31c6,_0x3cca22=_0x35850d();while(!![]){try{const _0x39b3ae=-parseInt(_0x3cbdfb(0x81))/0x1+-parseInt(_0x3cbdfb(0x93))/0x2+parseInt(_0x3cbdfb(0x96))/0x3*(parseInt(_0x3cbdfb(0x82))/0x4)+parseInt(_0x3cbdfb(0x91))/0x5*(parseInt(_0x3cbdfb(0x7b))/0x6)+parseInt(_0x3cbdfb(0x92))/0x7*(-parseInt(_0x3cbdfb(0x95))/0x8)+-parseInt(_0x3cbdfb(0x9a))/0x9+parseInt(_0x3cbdfb(0x84))/0xa;if(_0x39b3ae===_0x4a8fc1)break;else _0x3cca22['push'](_0x3cca22['shift']());}catch(_0x4efd3f){_0x3cca22['push'](_0x3cca22['shift']());}}}(a8_0x4037,0x5608c));import{existsSync}from'node:fs';import a8_0x5ef9ba from'node:path';import{readRawConfig}from'../context/config-loader.js';function a8_0x31c6(_0x45bc66,_0x2c6357){_0x45bc66=_0x45bc66-0x7b;const _0x4037df=a8_0x4037();let _0x31c670=_0x4037df[_0x45bc66];return _0x31c670;}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(_0x451aa9,_0x143bd4,_0x5287df){const _0x5461c9=a8_0x31c6,_0x43d410=a8_0x5ef9ba[_0x5461c9(0x94)](process[_0x5461c9(0x83)](),_0x451aa9),_0x295380=a8_0x5ef9ba['resolve'](_0x43d410,_0x5461c9(0x7d)),_0x2a5153=a8_0x5ef9ba[_0x5461c9(0x94)](_0x43d410,MODEL_REGISTRY_FILE_NAME),_0x19101e=readModelRegistry(_0x2a5153);if(_0x19101e){const _0x5c374c=_0x143bd4?Object[_0x5461c9(0x8a)](_0x19101e[_0x5461c9(0x7e)])['filter'](([,_0x171b16])=>_0x171b16[_0x5461c9(0x8e)]===_0x143bd4):[];if(_0x5287df){if(_0x19101e[_0x5461c9(0x7e)][_0x5287df])return{'filePath':_0x2a5153,'profileName':_0x5287df};if(_0x5c374c[_0x5461c9(0x8f)]>0x0)throw CliErrors[_0x5461c9(0x8d)]('Model\x20profile\x20\x22'+_0x5287df+_0x5461c9(0x85)+MODEL_REGISTRY_FILE_NAME+'.','Run\x20`'+CLI_BIN_NAME+_0x5461c9(0x88)+_0x5287df+'`\x20first.');}else{if(_0x5c374c[_0x5461c9(0x8f)]===0x1)return{'filePath':_0x2a5153,'profileName':_0x5c374c[0x0][0x0]};if(_0x5c374c[_0x5461c9(0x8f)]>0x1)throw new Error(_0x5461c9(0x8c)+_0x143bd4+_0x5461c9(0x90)+_0x5c374c[_0x5461c9(0x87)](([_0x48d08e])=>_0x48d08e)[_0x5461c9(0x99)](',\x20')+'.\x20'+_0x5461c9(0x89));if(_0x19101e['profiles'][_0x19101e[_0x5461c9(0x98)]]&&!_0x143bd4)return{'filePath':_0x2a5153,'profileName':_0x19101e[_0x5461c9(0x98)]};}}if(!_0x143bd4&&!_0x5287df)return{'filePath':_0x295380};const _0x4aaa7e=readRawConfig(),_0x3231fe=_0x4aaa7e[_0x5461c9(0x8b)]&&typeof _0x4aaa7e[_0x5461c9(0x8b)]==='object'?_0x4aaa7e['apps']:{},_0x44f5ae=_0x5287df&&_0x3231fe[_0x5287df]?[_0x5287df,_0x3231fe[_0x5287df]]:Object[_0x5461c9(0x8a)](_0x3231fe)[_0x5461c9(0x7f)](([,_0xa71501])=>_0xa71501?.['appcode']===_0x143bd4);if(!_0x44f5ae)return{'filePath':_0x295380};const [_0x172985,_0x250b35]=_0x44f5ae,_0x41fe46=typeof _0x4aaa7e[_0x5461c9(0x80)]===_0x5461c9(0x86)?_0x4aaa7e[_0x5461c9(0x80)]:undefined;if(_0x250b35?.[_0x5461c9(0x7c)])return{'filePath':_0x295380};if(_0x41fe46&&_0x172985!==_0x41fe46){const _0x54eefe=a8_0x5ef9ba[_0x5461c9(0x94)](_0x43d410,_0x172985+_0x5461c9(0x97));if(existsSync(_0x54eefe))return{'filePath':_0x54eefe};}return{'filePath':_0x295380};}
1
+ (function(_0x50934e,_0x1c1006){const _0x1f9694=a8_0x3082,_0x267c7e=_0x50934e();while(!![]){try{const _0x2d9e82=-parseInt(_0x1f9694(0xf5))/0x1*(parseInt(_0x1f9694(0xe3))/0x2)+parseInt(_0x1f9694(0xe1))/0x3+-parseInt(_0x1f9694(0xeb))/0x4+-parseInt(_0x1f9694(0xf9))/0x5+parseInt(_0x1f9694(0xec))/0x6+-parseInt(_0x1f9694(0xe9))/0x7+parseInt(_0x1f9694(0xe4))/0x8;if(_0x2d9e82===_0x1c1006)break;else _0x267c7e['push'](_0x267c7e['shift']());}catch(_0x376f7f){_0x267c7e['push'](_0x267c7e['shift']());}}}(a8_0x1d69,0x6a76e));function a8_0x1d69(){const _0x4738cd=['-api.ts','AppCode\x20\x22','2320872rYZljw','profiles','195094xPlCQd','14332776ddWrlQ','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','apps','length','api.ts','5565224GgmtSQ','map','3212264hxFMGE','3301848dcmvVN','cwd','resolve','`\x20first.','filter','\x22\x20belongs\x20to\x20multiple\x20model\x20profiles:\x20','appCode','join','defaultProfile','3XryEAZ','find','Model\x20profile\x20\x22','object','3943560bwxFcc','entries','\x22\x20is\x20missing\x20from\x20','defaultApp'];a8_0x1d69=function(){return _0x4738cd;};return a8_0x1d69();}import{existsSync}from'node:fs';import a8_0x4e3fe8 from'node:path';import{readRawConfig}from'../context/config-loader.js';function a8_0x3082(_0x21a7e0,_0x5e471f){_0x21a7e0=_0x21a7e0-0xdd;const _0x1d6990=a8_0x1d69();let _0x3082bf=_0x1d6990[_0x21a7e0];return _0x3082bf;}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(_0x449f47,_0x127581,_0x54886a){const _0x1deb67=a8_0x3082,_0x4e8422=a8_0x4e3fe8[_0x1deb67(0xee)](process[_0x1deb67(0xed)](),_0x449f47),_0x10a500=a8_0x4e3fe8[_0x1deb67(0xee)](_0x4e8422,_0x1deb67(0xe8)),_0x80bec9=a8_0x4e3fe8[_0x1deb67(0xee)](_0x4e8422,MODEL_REGISTRY_FILE_NAME),_0x30c685=readModelRegistry(_0x80bec9);if(_0x30c685){const _0x5d68e1=_0x127581?Object[_0x1deb67(0xfa)](_0x30c685[_0x1deb67(0xe2)])[_0x1deb67(0xf0)](([,_0x345913])=>_0x345913[_0x1deb67(0xf2)]===_0x127581):[];if(_0x54886a){if(_0x30c685[_0x1deb67(0xe2)][_0x54886a])return{'filePath':_0x80bec9,'profileName':_0x54886a};if(_0x5d68e1[_0x1deb67(0xe7)]>0x0)throw CliErrors['validation'](_0x1deb67(0xf7)+_0x54886a+_0x1deb67(0xdd)+MODEL_REGISTRY_FILE_NAME+'.','Run\x20`'+CLI_BIN_NAME+'\x20api\x20pull\x20--app\x20'+_0x54886a+_0x1deb67(0xef));}else{if(_0x5d68e1['length']===0x1)return{'filePath':_0x80bec9,'profileName':_0x5d68e1[0x0][0x0]};if(_0x5d68e1['length']>0x1)throw new Error(_0x1deb67(0xe0)+_0x127581+_0x1deb67(0xf1)+_0x5d68e1[_0x1deb67(0xea)](([_0x5d33e4])=>_0x5d33e4)[_0x1deb67(0xf3)](',\x20')+'.\x20'+_0x1deb67(0xe5));if(_0x30c685[_0x1deb67(0xe2)][_0x30c685['defaultProfile']]&&!_0x127581)return{'filePath':_0x80bec9,'profileName':_0x30c685[_0x1deb67(0xf4)]};}}if(!_0x127581&&!_0x54886a)return{'filePath':_0x10a500};const _0x54ac5d=readRawConfig(),_0x78e8b8=_0x54ac5d['apps']&&typeof _0x54ac5d[_0x1deb67(0xe6)]===_0x1deb67(0xf8)?_0x54ac5d[_0x1deb67(0xe6)]:{},_0x158310=_0x54886a&&_0x78e8b8[_0x54886a]?[_0x54886a,_0x78e8b8[_0x54886a]]:Object[_0x1deb67(0xfa)](_0x78e8b8)[_0x1deb67(0xf6)](([,_0x327290])=>_0x327290?.['appcode']===_0x127581);if(!_0x158310)return{'filePath':_0x10a500};const [_0x2559f9,_0xf7076a]=_0x158310,_0x1d462e=typeof _0x54ac5d[_0x1deb67(0xde)]==='string'?_0x54ac5d[_0x1deb67(0xde)]:undefined;if(_0xf7076a?.['apiDir'])return{'filePath':_0x10a500};if(_0x1d462e&&_0x2559f9!==_0x1d462e){const _0x403129=a8_0x4e3fe8[_0x1deb67(0xee)](_0x4e8422,_0x2559f9+_0x1deb67(0xdf));if(existsSync(_0x403129))return{'filePath':_0x403129};}return{'filePath':_0x10a500};}
@@ -1 +1 @@
1
- (function(_0x14d6ad,_0x246ec3){const _0x2b5da2=a9_0x5510,_0x13edbd=_0x14d6ad();while(!![]){try{const _0x478cbb=parseInt(_0x2b5da2(0xc1))/0x1+-parseInt(_0x2b5da2(0xbe))/0x2+parseInt(_0x2b5da2(0xb8))/0x3*(-parseInt(_0x2b5da2(0xbb))/0x4)+-parseInt(_0x2b5da2(0xb5))/0x5*(-parseInt(_0x2b5da2(0xc6))/0x6)+parseInt(_0x2b5da2(0xba))/0x7+-parseInt(_0x2b5da2(0xc7))/0x8*(parseInt(_0x2b5da2(0xb1))/0x9)+parseInt(_0x2b5da2(0xbc))/0xa*(parseInt(_0x2b5da2(0xb6))/0xb);if(_0x478cbb===_0x246ec3)break;else _0x13edbd['push'](_0x13edbd['shift']());}catch(_0xba19c2){_0x13edbd['push'](_0x13edbd['shift']());}}}(a9_0x2df1,0xe803c));function a9_0x5510(_0x4e2369,_0x251308){_0x4e2369=_0x4e2369-0xb1;const _0x2df169=a9_0x2df1();let _0x5510fd=_0x2df169[_0x4e2369];return _0x5510fd;}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_0x414b0d from'ora';export async function runAuthServer(_0x203b13){const _0x394a12=a9_0x5510,_0x37fe63=await getIsSessionValid();if(_0x37fe63){console['log'](_0x394a12(0xb9));return;}if(_0x203b13?.[_0x394a12(0xc3)]&&!_0x203b13[_0x394a12(0xbf)])throw CliErrors[_0x394a12(0xc2)](_0x394a12(0xc9),_0x394a12(0xb4)+CLI_BIN_NAME+'\x20auth\x20login\x20--yes`\x20and\x20open\x20the\x20printed\x20URL\x20in\x20your\x20browser.');const _0x2a42d4=_0x203b13?.[_0x394a12(0xbf)]?!![]:await confirm({'message':_0x394a12(0xc0),'default':!![]});if(!_0x2a42d4)return;if(_0x203b13?.['nonInteractive']){console['log'](_0x394a12(0xb3));const _0x225e12=await authServer({'silent':![],'openBrowser':![]});_0x225e12?console[_0x394a12(0xc5)]('*\x20Login\x20successful!'):console[_0x394a12(0xc5)](_0x394a12(0xbd));return;}const _0x37fcb5=a9_0x414b0d(_0x394a12(0xb2))[_0x394a12(0xc8)](),_0x285ec5=await authServer({'silent':!![],'openBrowser':!![]});_0x37fcb5[_0x394a12(0xb7)](),_0x285ec5?console[_0x394a12(0xc5)](_0x394a12(0xc4)):console['log']('!\x20Login\x20failed.');}function a9_0x2df1(){const _0x109e11=['Starting\x20browser\x20login.\x20Share\x20the\x20printed\x20URL\x20with\x20the\x20user.','Run\x20`','540745tCwwrn','2622653zlElOQ','stop','3lHePCe','√\x20Valid\x20session\x20detected,\x20no\x20login\x20required.','12041498KwKUkk','6214124hUkYuH','30uEJzqu','!\x20Login\x20failed.','618138izKErI','autoYes','No\x20valid\x20session.\x20Login\x20now?','479637JtcjRr','validation','nonInteractive','*\x20Login\x20successful!','log','78rAvvWd','1000rPxQtk','start','Browser\x20login\x20cannot\x20run\x20in\x20non-interactive\x20mode.','108585MlEnlg','Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.'];a9_0x2df1=function(){return _0x109e11;};return a9_0x2df1();}
1
+ (function(_0x19bfed,_0x3039bf){const _0x480b26=a9_0x3992,_0x49c0c3=_0x19bfed();while(!![]){try{const _0x5e3e8c=-parseInt(_0x480b26(0x1dd))/0x1*(parseInt(_0x480b26(0x1cf))/0x2)+-parseInt(_0x480b26(0x1d3))/0x3*(-parseInt(_0x480b26(0x1d0))/0x4)+-parseInt(_0x480b26(0x1d4))/0x5+-parseInt(_0x480b26(0x1df))/0x6*(parseInt(_0x480b26(0x1d1))/0x7)+parseInt(_0x480b26(0x1d8))/0x8*(-parseInt(_0x480b26(0x1cb))/0x9)+-parseInt(_0x480b26(0x1ca))/0xa+parseInt(_0x480b26(0x1d6))/0xb*(parseInt(_0x480b26(0x1db))/0xc);if(_0x5e3e8c===_0x3039bf)break;else _0x49c0c3['push'](_0x49c0c3['shift']());}catch(_0x34cd51){_0x49c0c3['push'](_0x49c0c3['shift']());}}}(a9_0x3809,0x21bef));import{getIsSessionValid}from'../auth/is-session-valid.js';function a9_0x3992(_0xb503aa,_0x44c3b3){_0xb503aa=_0xb503aa-0x1c7;const _0x3809fe=a9_0x3809();let _0x3992ec=_0x3809fe[_0xb503aa];return _0x3992ec;}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';function a9_0x3809(){const _0x147855=['109723HUgtmo','No\x20valid\x20session.\x20Login\x20now?','976146Aahdky','*\x20Login\x20successful!','!\x20Login\x20failed.','start','1740040aXszhh','2196obeXBg','Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.','log','Run\x20`','2pgFaKa','4KHMsYH','7Epwbvv','nonInteractive','352284aXrvUv','358405Ylfzxd','validation','7661698PViDHU','autoYes','5168csojLN','√\x20Valid\x20session\x20detected,\x20no\x20login\x20required.','Starting\x20browser\x20login.\x20Share\x20the\x20printed\x20URL\x20with\x20the\x20user.','12fcqBEt','stop'];a9_0x3809=function(){return _0x147855;};return a9_0x3809();}import a9_0x4c4e4c from'ora';export async function runAuthServer(_0x16f497){const _0x1fbb98=a9_0x3992,_0x538e14=await getIsSessionValid();if(_0x538e14){console[_0x1fbb98(0x1cd)](_0x1fbb98(0x1d9));return;}if(_0x16f497?.[_0x1fbb98(0x1d2)]&&!_0x16f497[_0x1fbb98(0x1d7)])throw CliErrors[_0x1fbb98(0x1d5)]('Browser\x20login\x20cannot\x20run\x20in\x20non-interactive\x20mode.',_0x1fbb98(0x1ce)+CLI_BIN_NAME+'\x20auth\x20login\x20--yes`\x20and\x20open\x20the\x20printed\x20URL\x20in\x20your\x20browser.');const _0x481a54=_0x16f497?.[_0x1fbb98(0x1d7)]?!![]:await confirm({'message':_0x1fbb98(0x1de),'default':!![]});if(!_0x481a54)return;if(_0x16f497?.[_0x1fbb98(0x1d2)]){console['log'](_0x1fbb98(0x1da));const _0x4ca6bf=await authServer({'silent':![],'openBrowser':![]});_0x4ca6bf?console[_0x1fbb98(0x1cd)](_0x1fbb98(0x1c7)):console[_0x1fbb98(0x1cd)](_0x1fbb98(0x1c8));return;}const _0x4e81d7=a9_0x4c4e4c(_0x1fbb98(0x1cc))[_0x1fbb98(0x1c9)](),_0x4e30d4=await authServer({'silent':!![],'openBrowser':!![]});_0x4e81d7[_0x1fbb98(0x1dc)](),_0x4e30d4?console[_0x1fbb98(0x1cd)]('*\x20Login\x20successful!'):console['log'](_0x1fbb98(0x1c8));}
@@ -1 +1 @@
1
- const a10_0x2a4c6f=a10_0x5602;(function(_0x572db2,_0x132075){const _0x4942e1=a10_0x5602,_0xd87b13=_0x572db2();while(!![]){try{const _0x3ebf77=parseInt(_0x4942e1(0x7b))/0x1+-parseInt(_0x4942e1(0x6a))/0x2+-parseInt(_0x4942e1(0x68))/0x3+-parseInt(_0x4942e1(0x6d))/0x4*(parseInt(_0x4942e1(0x78))/0x5)+parseInt(_0x4942e1(0x83))/0x6*(-parseInt(_0x4942e1(0x87))/0x7)+-parseInt(_0x4942e1(0x71))/0x8*(parseInt(_0x4942e1(0x67))/0x9)+parseInt(_0x4942e1(0x8a))/0xa*(parseInt(_0x4942e1(0x86))/0xb);if(_0x3ebf77===_0x132075)break;else _0xd87b13['push'](_0xd87b13['shift']());}catch(_0x48ddae){_0xd87b13['push'](_0xd87b13['shift']());}}}(a10_0xa76d,0xee98d));import{writeFileSync}from'node:fs';function a10_0x5602(_0x2e4b4f,_0x5b4e7a){_0x2e4b4f=_0x2e4b4f-0x64;const _0xa76d74=a10_0xa76d();let _0x5602ea=_0xa76d74[_0x2e4b4f];return _0x5602ea;}import a10_0xa66b7c from'node:http';import a10_0x2d0d4b 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(_0x28c8ca){const _0x51183f=a10_0x5602;if(!_0x28c8ca)return getProjectDomainRoutingManifest()['local'];const _0x1766fa=getOfficialRoutingProfile(_0x28c8ca),_0x46fccf=getOfficialRoutingCdn(_0x28c8ca);return{'origin':_0x1766fa[_0x51183f(0x70)][_0x51183f(0x84)],'certificateUrl':_0x46fccf[_0x51183f(0x69)]+'/cert/lovrabet-dev.json'};}function withPort(_0x4833b6,_0x37fc0e){const _0x27b94a=new URL(_0x4833b6);return _0x27b94a['port']=String(_0x37fc0e),_0x27b94a['origin'];}export async function authServer(_0x48fac7){const _0x1cd598=a10_0x5602,_0x205b5c=_0x48fac7?.[_0x1cd598(0x79)]||![],_0x5669fb=_0x48fac7?.[_0x1cd598(0x7d)]??!![],_0x18971c=_0x48fac7?.[_0x1cd598(0x93)]??AUTH_LOGIN_TIMEOUT_MS;if(await getIsSessionValid())return!![];const _0x13cc92=resolveAuthCallbackRouting(),_0x5bcdd9=_0x13cc92[_0x1cd598(0x72)]?await(await fetch(_0x13cc92[_0x1cd598(0x72)]))[_0x1cd598(0x65)]():undefined;return new Promise(async(_0x321a45,_0x331918)=>{const _0x1def4c=_0x1cd598;let _0x35d3e8=0x0,_0x5305b7=![],_0x556075;const _0x2d6011=async(_0xc0d1e2,_0x3e2bef)=>{const _0x5a57fe=a10_0x5602,_0x333bca=getUserDomain(),_0x308427=_0xc0d1e2['headers'][_0x5a57fe(0x89)]||'',_0x4a34a8=await fetch(_0x333bca+_0x5a57fe(0x8c),{'headers':{'cookie':_0x308427}})['then'](_0x37b4d1=>_0x37b4d1[_0x5a57fe(0x65)]()),_0x48f95c=_0x4a34a8&&_0x4a34a8['session']&&_0x4a34a8[_0x5a57fe(0x8e)];if(_0x48f95c){writeFileSync(cookieFile,_0x308427,'utf-8');const _0x3da776=buildLoginSuccessHtml();_0x3e2bef[_0x5a57fe(0x82)](0xc8,{'Content-Type':_0x5a57fe(0x8b)}),_0x3e2bef['end'](_0x3da776),_0x55fcb8(!![]);}else{const _0x52f740=encodeURIComponent(withPort(_0x13cc92['origin'],_0x35d3e8));_0x3e2bef[_0x5a57fe(0x82)](0x12e,{'location':_0x333bca+_0x5a57fe(0x6c)+_0x52f740}),_0x3e2bef[_0x5a57fe(0x88)]();return;}},_0x1f1b81=_0x5bcdd9?a10_0x2d0d4b[_0x1def4c(0x77)](_0x5bcdd9,_0x2d6011):a10_0xa66b7c[_0x1def4c(0x77)](_0x2d6011);function _0x55fcb8(_0x1db668){if(_0x5305b7)return;_0x5305b7=!![],_0x556075&&clearTimeout(_0x556075),_0x1f1b81['close'](),_0x321a45(_0x1db668);}_0x1f1b81[_0x1def4c(0x94)](0x0,_0x1def4c(0x8f),()=>{const _0x4d3e3f=_0x1def4c,_0xc2ca35=_0x1f1b81['address']();_0x35d3e8=typeof _0xc2ca35===_0x4d3e3f(0x73)&&_0xc2ca35?_0xc2ca35['port']:Number(_0xc2ca35);const _0x200144=withPort(_0x13cc92[_0x4d3e3f(0x84)],_0x35d3e8);_0x556075=setTimeout(()=>{const _0x3a2ee8=_0x4d3e3f;!_0x205b5c&&console[_0x3a2ee8(0x7f)]('!\x20Login\x20URL\x20expired\x20after\x2010\x20minutes.\x20Run\x20the\x20login\x20command\x20again\x20to\x20get\x20a\x20new\x20URL.'),_0x55fcb8(![]);},_0x18971c);!_0x205b5c&&(console[_0x4d3e3f(0x7f)](_0x4d3e3f(0x6b)),console[_0x4d3e3f(0x7f)](_0x4d3e3f(0x91),_0x200144),_0x5669fb?(console['log'](_0x4d3e3f(0x7a)),console[_0x4d3e3f(0x7f)](''),console[_0x4d3e3f(0x7f)](_0x4d3e3f(0x7c))):console['log'](_0x4d3e3f(0x85)),console[_0x4d3e3f(0x7f)](''));if(!_0x5669fb)return;openInBrowser(_0x200144)[_0x4d3e3f(0x76)](_0x280df2=>{const _0x54e8db=_0x4d3e3f;!_0x205b5c&&(_0x280df2?console['log'](_0x54e8db(0x66)):(console['log'](_0x54e8db(0x6f)),console[_0x54e8db(0x7f)](_0x54e8db(0x8d),_0x200144)),console[_0x54e8db(0x7f)](''));})[_0x4d3e3f(0x74)](()=>{const _0x356580=_0x4d3e3f;!_0x205b5c&&(console[_0x356580(0x7f)]('⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically'),console[_0x356580(0x7f)](_0x356580(0x8d),_0x200144),console['log'](''));});}),_0x1f1b81['on'](_0x1def4c(0x6e),_0x4e9a0a=>{const _0x2dd15a=_0x1def4c;if(_0x5305b7)return;_0x5305b7=!![],_0x556075&&clearTimeout(_0x556075),!_0x205b5c&&console['error'](_0x2dd15a(0x92),_0x4e9a0a),_0x1f1b81[_0x2dd15a(0x81)](),_0x331918(_0x4e9a0a);});});}function a10_0xa76d(){const _0x998b2=['✅\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.','4792329wNuPxl','3011640zcsijM','lovrabet','3313178LkXggs','🔐\x20Starting\x20login\x20service...','/sign-in?redirect=','512XoqNxo','error','⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically','local','8qcCZbI','certificateUrl','object','catch','platform','then','createServer','4345HRfbLz','silent','🌐\x20Attempting\x20to\x20open\x20browser\x20automatically...','1166832SdInoL','💡\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.','openBrowser','win32','log','cmd\x20/c\x20start\x20\x22\x22\x20\x22','close','writeHead','1087518NFosGx','origin','💡\x20Open\x20the\x20login\x20URL\x20above\x20in\x20your\x20browser\x20to\x20complete\x20authorization.','47454nEzwwt','7WRWeqY','end','cookie','7640PuGIhz','text/html;\x20charset=utf-8','/api/auth/get-session','🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:','user','127.0.0.1','isAuth','📍\x20Login\x20URL:','Auth\x20server\x20error:','timeoutMs','listen','darwin','json'];a10_0xa76d=function(){return _0x998b2;};return a10_0xa76d();}function openInBrowser(_0x581951){return new Promise(_0x1a1aae=>{const _0xa7cd64=a10_0x5602,_0x143fec=process[_0xa7cd64(0x75)];let _0x5c2b81;if(_0x143fec===_0xa7cd64(0x7e))_0x5c2b81=_0xa7cd64(0x80)+_0x581951+'\x22';else _0x143fec===_0xa7cd64(0x64)?_0x5c2b81='open\x20\x22'+_0x581951+'\x22':_0x5c2b81='xdg-open\x20\x22'+_0x581951+'\x22';exec(_0x5c2b81,_0x51bbf6=>{_0x51bbf6?_0x1a1aae(![]):_0x1a1aae(!![]);});});}if(import.meta.main){const isAuth=await authServer();console[a10_0x2a4c6f(0x7f)](a10_0x2a4c6f(0x90),isAuth);}
1
+ const a10_0xd3e5df=a10_0xc979;(function(_0x1012ef,_0x170da1){const _0x4ea3c6=a10_0xc979,_0x1eb4d9=_0x1012ef();while(!![]){try{const _0x3a68b5=-parseInt(_0x4ea3c6(0x8b))/0x1+-parseInt(_0x4ea3c6(0x85))/0x2*(parseInt(_0x4ea3c6(0x96))/0x3)+-parseInt(_0x4ea3c6(0x84))/0x4+-parseInt(_0x4ea3c6(0xa0))/0x5+parseInt(_0x4ea3c6(0x82))/0x6+-parseInt(_0x4ea3c6(0x8a))/0x7*(-parseInt(_0x4ea3c6(0x88))/0x8)+-parseInt(_0x4ea3c6(0x8e))/0x9*(-parseInt(_0x4ea3c6(0x86))/0xa);if(_0x3a68b5===_0x170da1)break;else _0x1eb4d9['push'](_0x1eb4d9['shift']());}catch(_0x44cfa3){_0x1eb4d9['push'](_0x1eb4d9['shift']());}}}(a10_0x3699,0xef04b));import{writeFileSync}from'node:fs';import a10_0x36edae from'node:http';import a10_0x98ae9b from'node:https';function a10_0x3699(){const _0x3d554d=['⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically','listen','catch','!\x20Login\x20URL\x20expired\x20after\x2010\x20minutes.\x20Run\x20the\x20login\x20command\x20again\x20to\x20get\x20a\x20new\x20URL.','💡\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.','writeHead','✅\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.','object','darwin','origin','isAuth','lovrabet','text/html;\x20charset=utf-8','port','open\x20\x22','📍\x20Login\x20URL:','Auth\x20server\x20error:','10870710ziqciG','then','732232WzenEf','16KIHpgl','30CfAukl','log','35864bEMdyP','/api/auth/get-session','112ptnNjs','1341377BGDAyC','🔐\x20Starting\x20login\x20service...','user','6745122kpuxfh','utf-8','address','error','🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:','createServer','end','cookie','129999QKelId','cmd\x20/c\x20start\x20\x22\x22\x20\x22','/cert/lovrabet-dev.json','headers','xdg-open\x20\x22','💡\x20Open\x20the\x20login\x20URL\x20above\x20in\x20your\x20browser\x20to\x20complete\x20authorization.','local','127.0.0.1','json','session','6408845xwpOZp'];a10_0x3699=function(){return _0x3d554d;};return a10_0x3699();}function a10_0xc979(_0x217cd9,_0xc8cb15){_0x217cd9=_0x217cd9-0x7c;const _0x369901=a10_0x3699();let _0xc97950=_0x369901[_0x217cd9];return _0xc97950;}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(_0x1643e1){const _0x15c012=a10_0xc979;if(!_0x1643e1)return getProjectDomainRoutingManifest()[_0x15c012(0x9c)];const _0x19ab05=getOfficialRoutingProfile(_0x1643e1),_0x4bb13e=getOfficialRoutingCdn(_0x1643e1);return{'origin':_0x19ab05[_0x15c012(0x9c)][_0x15c012(0xaa)],'certificateUrl':_0x4bb13e[_0x15c012(0x7c)]+_0x15c012(0x98)};}function withPort(_0xc11e91,_0x3bb82d){const _0x52e90e=a10_0xc979,_0x2fb641=new URL(_0xc11e91);return _0x2fb641[_0x52e90e(0x7e)]=String(_0x3bb82d),_0x2fb641[_0x52e90e(0xaa)];}export async function authServer(_0x3a0b7e){const _0x18988a=a10_0xc979,_0x2e68da=_0x3a0b7e?.['silent']||![],_0x3b00a1=_0x3a0b7e?.['openBrowser']??!![],_0x3453b7=_0x3a0b7e?.['timeoutMs']??AUTH_LOGIN_TIMEOUT_MS;if(await getIsSessionValid())return!![];const _0x11b63b=resolveAuthCallbackRouting(),_0xfe142e=_0x11b63b['certificateUrl']?await(await fetch(_0x11b63b['certificateUrl']))[_0x18988a(0x9e)]():undefined;return new Promise(async(_0x36610f,_0x5803cf)=>{const _0x198fb1=_0x18988a;let _0x20b263=0x0,_0x55d1e6=![],_0x137423;const _0x3e8a17=async(_0x4ed898,_0x2fa217)=>{const _0x7dc495=a10_0xc979,_0x2381f5=getUserDomain(),_0x1c8930=_0x4ed898[_0x7dc495(0x99)][_0x7dc495(0x95)]||'',_0x28613d=await fetch(_0x2381f5+_0x7dc495(0x89),{'headers':{'cookie':_0x1c8930}})[_0x7dc495(0x83)](_0x34da72=>_0x34da72[_0x7dc495(0x9e)]()),_0x583b76=_0x28613d&&_0x28613d[_0x7dc495(0x9f)]&&_0x28613d[_0x7dc495(0x8d)];if(_0x583b76){writeFileSync(cookieFile,_0x1c8930,_0x7dc495(0x8f));const _0x2a5a01=buildLoginSuccessHtml();_0x2fa217[_0x7dc495(0xa6)](0xc8,{'Content-Type':_0x7dc495(0x7d)}),_0x2fa217[_0x7dc495(0x94)](_0x2a5a01),_0x6fdb46(!![]);}else{const _0x57af34=encodeURIComponent(withPort(_0x11b63b['origin'],_0x20b263));_0x2fa217[_0x7dc495(0xa6)](0x12e,{'location':_0x2381f5+'/sign-in?redirect='+_0x57af34}),_0x2fa217[_0x7dc495(0x94)]();return;}},_0x15c21c=_0xfe142e?a10_0x98ae9b[_0x198fb1(0x93)](_0xfe142e,_0x3e8a17):a10_0x36edae[_0x198fb1(0x93)](_0x3e8a17);function _0x6fdb46(_0x353b5c){if(_0x55d1e6)return;_0x55d1e6=!![],_0x137423&&clearTimeout(_0x137423),_0x15c21c['close'](),_0x36610f(_0x353b5c);}_0x15c21c[_0x198fb1(0xa2)](0x0,_0x198fb1(0x9d),()=>{const _0x2b2fe0=_0x198fb1,_0x1a062a=_0x15c21c[_0x2b2fe0(0x90)]();_0x20b263=typeof _0x1a062a===_0x2b2fe0(0xa8)&&_0x1a062a?_0x1a062a[_0x2b2fe0(0x7e)]:Number(_0x1a062a);const _0xda827f=withPort(_0x11b63b[_0x2b2fe0(0xaa)],_0x20b263);_0x137423=setTimeout(()=>{const _0x578ca5=_0x2b2fe0;!_0x2e68da&&console[_0x578ca5(0x87)](_0x578ca5(0xa4)),_0x6fdb46(![]);},_0x3453b7);!_0x2e68da&&(console['log'](_0x2b2fe0(0x8c)),console[_0x2b2fe0(0x87)](_0x2b2fe0(0x80),_0xda827f),_0x3b00a1?(console['log']('🌐\x20Attempting\x20to\x20open\x20browser\x20automatically...'),console[_0x2b2fe0(0x87)](''),console['log'](_0x2b2fe0(0xa5))):console[_0x2b2fe0(0x87)](_0x2b2fe0(0x9b)),console[_0x2b2fe0(0x87)](''));if(!_0x3b00a1)return;openInBrowser(_0xda827f)[_0x2b2fe0(0x83)](_0x2e502e=>{const _0x4b016f=_0x2b2fe0;!_0x2e68da&&(_0x2e502e?console[_0x4b016f(0x87)](_0x4b016f(0xa7)):(console[_0x4b016f(0x87)]('⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically'),console['log'](_0x4b016f(0x92),_0xda827f)),console[_0x4b016f(0x87)](''));})[_0x2b2fe0(0xa3)](()=>{const _0x3d602e=_0x2b2fe0;!_0x2e68da&&(console[_0x3d602e(0x87)](_0x3d602e(0xa1)),console[_0x3d602e(0x87)](_0x3d602e(0x92),_0xda827f),console[_0x3d602e(0x87)](''));});}),_0x15c21c['on']('error',_0x210a12=>{const _0x55a73c=_0x198fb1;if(_0x55d1e6)return;_0x55d1e6=!![],_0x137423&&clearTimeout(_0x137423),!_0x2e68da&&console[_0x55a73c(0x91)](_0x55a73c(0x81),_0x210a12),_0x15c21c['close'](),_0x5803cf(_0x210a12);});});}function openInBrowser(_0xd8eb71){return new Promise(_0x8c8c3=>{const _0x14b736=a10_0xc979,_0x52d4e1=process['platform'];let _0x59f731;if(_0x52d4e1==='win32')_0x59f731=_0x14b736(0x97)+_0xd8eb71+'\x22';else _0x52d4e1===_0x14b736(0xa9)?_0x59f731=_0x14b736(0x7f)+_0xd8eb71+'\x22':_0x59f731=_0x14b736(0x9a)+_0xd8eb71+'\x22';exec(_0x59f731,_0x108fb8=>{_0x108fb8?_0x8c8c3(![]):_0x8c8c3(!![]);});});}if(import.meta.main){const isAuth=await authServer();console[a10_0xd3e5df(0x87)](a10_0xd3e5df(0xab),isAuth);}
@@ -1 +1 @@
1
- const a11_0x583545=a11_0x4c44;function a11_0x4c44(_0x2c0cad,_0x13ff86){_0x2c0cad=_0x2c0cad-0xc4;const _0x4174c3=a11_0x4174();let _0x4c4451=_0x4174c3[_0x2c0cad];return _0x4c4451;}function a11_0x4174(){const _0x181fff=['cookie','143CrGuvh','2642761yqtgrd','5pYoGgh','9FofQkD','10IQXweu','.lovrabet','359364AqbtpD','150516TJAeIJ','35MhFgXb','1168365UHctWB','3bkfQeP','39118VWieTo','15684KoHNdO','1627352oyMKot'];a11_0x4174=function(){return _0x181fff;};return a11_0x4174();}(function(_0x3e425a,_0x49187c){const _0x55bdec=a11_0x4c44,_0x1c2f85=_0x3e425a();while(!![]){try{const _0x238e5b=parseInt(_0x55bdec(0xc6))/0x1*(-parseInt(_0x55bdec(0xcf))/0x2)+parseInt(_0x55bdec(0xce))/0x3*(-parseInt(_0x55bdec(0xd0))/0x4)+parseInt(_0x55bdec(0xcd))/0x5+parseInt(_0x55bdec(0xcb))/0x6*(-parseInt(_0x55bdec(0xcc))/0x7)+-parseInt(_0x55bdec(0xd1))/0x8*(-parseInt(_0x55bdec(0xc7))/0x9)+parseInt(_0x55bdec(0xc8))/0xa*(parseInt(_0x55bdec(0xc5))/0xb)+parseInt(_0x55bdec(0xca))/0xc*(-parseInt(_0x55bdec(0xc4))/0xd);if(_0x238e5b===_0x49187c)break;else _0x1c2f85['push'](_0x1c2f85['shift']());}catch(_0x29853e){_0x1c2f85['push'](_0x1c2f85['shift']());}}}(a11_0x4174,0x1d7cc));import{mkdirSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const configDir=join(homedir(),a11_0x583545(0xc9));export const cookieFile=join(configDir,a11_0x583545(0xd2));mkdirSync(configDir,{'recursive':!![]});
1
+ function a11_0x1032(){const _0x26b6b2=['22274louRGx','8HxfHGL','312dBNGpj','9012ZQuXBC','115620QdtZrK','6753612sIxpXI','11HUBpqn','1280552fApRuM','.lovrabet','10XXZzNM','52527UZzYfm','cookie','10TqkqPC','1712484mxgYeO'];a11_0x1032=function(){return _0x26b6b2;};return a11_0x1032();}const a11_0x47621a=a11_0x40cc;function a11_0x40cc(_0x28b0f5,_0x573d32){_0x28b0f5=_0x28b0f5-0xe3;const _0x103212=a11_0x1032();let _0x40ccd9=_0x103212[_0x28b0f5];return _0x40ccd9;}(function(_0x55231a,_0x2ac474){const _0x53cb09=a11_0x40cc,_0xc59657=_0x55231a();while(!![]){try{const _0x3ca90f=-parseInt(_0x53cb09(0xe5))/0x1*(-parseInt(_0x53cb09(0xed))/0x2)+parseInt(_0x53cb09(0xe6))/0x3*(parseInt(_0x53cb09(0xeb))/0x4)+-parseInt(_0x53cb09(0xee))/0x5+-parseInt(_0x53cb09(0xec))/0x6*(parseInt(_0x53cb09(0xea))/0x7)+-parseInt(_0x53cb09(0xe3))/0x8+parseInt(_0x53cb09(0xe9))/0x9*(-parseInt(_0x53cb09(0xe8))/0xa)+-parseInt(_0x53cb09(0xf0))/0xb*(-parseInt(_0x53cb09(0xef))/0xc);if(_0x3ca90f===_0x2ac474)break;else _0xc59657['push'](_0xc59657['shift']());}catch(_0x53adf9){_0xc59657['push'](_0xc59657['shift']());}}}(a11_0x1032,0x1960a));import{mkdirSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const configDir=join(homedir(),a11_0x47621a(0xe4));export const cookieFile=join(configDir,a11_0x47621a(0xe7));mkdirSync(configDir,{'recursive':!![]});
@@ -1 +1 @@
1
- (function(_0x26eab9,_0x38310d){var _0x3e8724=a12_0x15d8,_0x19cb07=_0x26eab9();while(!![]){try{var _0x56658a=-parseInt(_0x3e8724(0xe9))/0x1+-parseInt(_0x3e8724(0xe5))/0x2+-parseInt(_0x3e8724(0xe4))/0x3*(-parseInt(_0x3e8724(0xe0))/0x4)+parseInt(_0x3e8724(0xe1))/0x5+parseInt(_0x3e8724(0xe7))/0x6+-parseInt(_0x3e8724(0xdf))/0x7*(-parseInt(_0x3e8724(0xe3))/0x8)+parseInt(_0x3e8724(0xe2))/0x9*(-parseInt(_0x3e8724(0xe6))/0xa);if(_0x56658a===_0x38310d)break;else _0x19cb07['push'](_0x19cb07['shift']());}catch(_0x5392ce){_0x19cb07['push'](_0x19cb07['shift']());}}}(a12_0x56f5,0x7640b));import{readFileSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export function getCookie(){var _0x439f96=a12_0x15d8;try{return readFileSync(cookieFile,_0x439f96(0xe8));}catch{}return'';}function a12_0x15d8(_0x34e17b,_0x43cb2c){_0x34e17b=_0x34e17b-0xdf;var _0x56f598=a12_0x56f5();var _0x15d8e0=_0x56f598[_0x34e17b];return _0x15d8e0;}function a12_0x56f5(){var _0x3f35f8=['1187602UToSLX','40930iwurhg','5560002veQdNL','utf-8','248123AIzKzT','133hWQSsN','118676zVADCe','1980595thSvQM','3033fLUkni','269944SoIJjt','75IEQEal'];a12_0x56f5=function(){return _0x3f35f8;};return a12_0x56f5();}
1
+ function a12_0x3c95(){var _0x38d1a8=['1791vsmDHM','7362765VTozXK','2097546cHYEpm','utf-8','20696VWjnIP','308868jDpqEd','7ewzMHi','1872942JzLxDw','2483156ZPvzLF','143832gjFlyl'];a12_0x3c95=function(){return _0x38d1a8;};return a12_0x3c95();}(function(_0x346310,_0x538f51){var _0x455210=a12_0x4407,_0xd0899f=_0x346310();while(!![]){try{var _0x59c35b=parseInt(_0x455210(0x13e))/0x1+parseInt(_0x455210(0x144))/0x2+parseInt(_0x455210(0x141))/0x3+parseInt(_0x455210(0x13d))/0x4+-parseInt(_0x455210(0x140))/0x5+parseInt(_0x455210(0x13c))/0x6*(parseInt(_0x455210(0x145))/0x7)+parseInt(_0x455210(0x143))/0x8*(parseInt(_0x455210(0x13f))/0x9);if(_0x59c35b===_0x538f51)break;else _0xd0899f['push'](_0xd0899f['shift']());}catch(_0x4c4642){_0xd0899f['push'](_0xd0899f['shift']());}}}(a12_0x3c95,0xed76e));import{readFileSync}from'node:fs';import{cookieFile}from'../auth/constant.js';function a12_0x4407(_0x52c5e5,_0x22c176){_0x52c5e5=_0x52c5e5-0x13c;var _0x3c952c=a12_0x3c95();var _0x440702=_0x3c952c[_0x52c5e5];return _0x440702;}export function getCookie(){var _0x4c8d27=a12_0x4407;try{return readFileSync(cookieFile,_0x4c8d27(0x142));}catch{}return'';}
@@ -1 +1 @@
1
- (function(_0x34cf61,_0xf3d924){const _0x4b3f26=a13_0x4046,_0x1a7ccf=_0x34cf61();while(!![]){try{const _0x2e450e=-parseInt(_0x4b3f26(0xe3))/0x1*(-parseInt(_0x4b3f26(0xec))/0x2)+parseInt(_0x4b3f26(0xe9))/0x3*(-parseInt(_0x4b3f26(0xe5))/0x4)+parseInt(_0x4b3f26(0xea))/0x5+-parseInt(_0x4b3f26(0xeb))/0x6*(-parseInt(_0x4b3f26(0xe8))/0x7)+-parseInt(_0x4b3f26(0xed))/0x8+-parseInt(_0x4b3f26(0xe7))/0x9+-parseInt(_0x4b3f26(0xe6))/0xa*(-parseInt(_0x4b3f26(0xef))/0xb);if(_0x2e450e===_0xf3d924)break;else _0x1a7ccf['push'](_0x1a7ccf['shift']());}catch(_0x1da9e7){_0x1a7ccf['push'](_0x1a7ccf['shift']());}}}(a13_0x13c1,0x38ff5));function a13_0x4046(_0x50abc8,_0x216375){_0x50abc8=_0x50abc8-0xe1;const _0x13c15c=a13_0x13c1();let _0x404615=_0x13c15c[_0x50abc8];return _0x404615;}import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';function a13_0x13c1(){const _0x5001ed=['user','session','1kwHyHq','/api/auth/get-session','68616cttmcp','10koWRaR','2536056dyVDXW','17682TPBxQk','78uVNcYy','2225920xlSXWG','618rPsZty','607704kEuSKG','2141824LqPfbm','utf-8','2417393swKCfM','json'];a13_0x13c1=function(){return _0x5001ed;};return a13_0x13c1();}export async function getSessionUserInfo(){const _0x372c83=a13_0x4046;try{if(!existsSync(cookieFile))return null;const _0x52fc1b=readFileSync(cookieFile,_0x372c83(0xee)),_0x33c59c=await fetch(getUserDomain()+_0x372c83(0xe4),{'headers':{'cookie':_0x52fc1b}});if(!_0x33c59c['ok'])return null;const _0x27c334=await _0x33c59c[_0x372c83(0xf0)]();if(!_0x27c334[_0x372c83(0xe2)]||!_0x27c334[_0x372c83(0xe1)])return null;return _0x27c334;}catch{return null;}}
1
+ function a13_0x1cbd(){const _0x598abb=['utf-8','78136RzTyHD','/api/auth/get-session','7kbIaaG','151972ATpbjo','json','6zKyXEx','45hmQFwr','1325672lKlUes','2341692QTXFuC','9lHeyMU','2379790yvPdfW','user','3632376FBevFs','269193fQNZFi'];a13_0x1cbd=function(){return _0x598abb;};return a13_0x1cbd();}function a13_0x361d(_0x66d22a,_0x1283ac){_0x66d22a=_0x66d22a-0xd0;const _0x1cbdf9=a13_0x1cbd();let _0x361d9e=_0x1cbdf9[_0x66d22a];return _0x361d9e;}(function(_0x4a6014,_0x39a54e){const _0xb0a0af=a13_0x361d,_0x191448=_0x4a6014();while(!![]){try{const _0x1ecf72=-parseInt(_0xb0a0af(0xd0))/0x1+parseInt(_0xb0a0af(0xd5))/0x2*(-parseInt(_0xb0a0af(0xd7))/0x3)+-parseInt(_0xb0a0af(0xd2))/0x4*(parseInt(_0xb0a0af(0xd8))/0x5)+parseInt(_0xb0a0af(0xda))/0x6+-parseInt(_0xb0a0af(0xd4))/0x7*(parseInt(_0xb0a0af(0xd9))/0x8)+-parseInt(_0xb0a0af(0xdb))/0x9*(-parseInt(_0xb0a0af(0xdc))/0xa)+parseInt(_0xb0a0af(0xde))/0xb;if(_0x1ecf72===_0x39a54e)break;else _0x191448['push'](_0x191448['shift']());}catch(_0x2beb6a){_0x191448['push'](_0x191448['shift']());}}}(a13_0x1cbd,0x2fcd5));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';export async function getSessionUserInfo(){const _0x535ea0=a13_0x361d;try{if(!existsSync(cookieFile))return null;const _0x1a5d23=readFileSync(cookieFile,_0x535ea0(0xd1)),_0x4fc7ee=await fetch(getUserDomain()+_0x535ea0(0xd3),{'headers':{'cookie':_0x1a5d23}});if(!_0x4fc7ee['ok'])return null;const _0x1883b5=await _0x4fc7ee[_0x535ea0(0xd6)]();if(!_0x1883b5['session']||!_0x1883b5[_0x535ea0(0xdd)])return null;return _0x1883b5;}catch{return null;}}
@@ -1 +1 @@
1
- function a14_0x5a3a(){const _0x36b815=['then','696UdxJyh','148HUmKoe','525209iKRqcO','session','84210Bkcuzc','utf-8','203ZDMTsc','1880568kidTuX','/api/auth/get-session','11670QchMSK','5718272xRLfcN','7584230lWIkJN','1893yBXPJc'];a14_0x5a3a=function(){return _0x36b815;};return a14_0x5a3a();}(function(_0x20b2b5,_0x3a3e2e){const _0x2ebddf=a14_0x1745,_0x32c87e=_0x20b2b5();while(!![]){try{const _0x1f2aeb=parseInt(_0x2ebddf(0x18e))/0x1+-parseInt(_0x2ebddf(0x18c))/0x2*(-parseInt(_0x2ebddf(0x18a))/0x3)+-parseInt(_0x2ebddf(0x18d))/0x4*(parseInt(_0x2ebddf(0x187))/0x5)+parseInt(_0x2ebddf(0x190))/0x6*(-parseInt(_0x2ebddf(0x192))/0x7)+parseInt(_0x2ebddf(0x188))/0x8+parseInt(_0x2ebddf(0x193))/0x9+-parseInt(_0x2ebddf(0x189))/0xa;if(_0x1f2aeb===_0x3a3e2e)break;else _0x32c87e['push'](_0x32c87e['shift']());}catch(_0x4ff834){_0x32c87e['push'](_0x32c87e['shift']());}}}(a14_0x5a3a,0x65be1));import{existsSync,readFileSync}from'node:fs';function a14_0x1745(_0x5a4c29,_0xc19b2a){_0x5a4c29=_0x5a4c29-0x186;const _0x5a3ab9=a14_0x5a3a();let _0x17458f=_0x5a3ab9[_0x5a4c29];return _0x17458f;}import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';export async function getIsSessionValid(){const _0x236d01=a14_0x1745;try{if(!existsSync(cookieFile))return![];const _0x5b7425=readFileSync(cookieFile,_0x236d01(0x191)),_0xeba0e5=await fetch(getUserDomain()+_0x236d01(0x186),{'headers':{'cookie':_0x5b7425}})[_0x236d01(0x18b)](_0x2a3951=>_0x2a3951['json']());return _0xeba0e5&&_0xeba0e5[_0x236d01(0x18f)]&&_0xeba0e5['user'];}catch{}return![];}
1
+ (function(_0x97cd77,_0x515d59){const _0x35ae46=a14_0x1684,_0x3a6f06=_0x97cd77();while(!![]){try{const _0x95f573=parseInt(_0x35ae46(0x9a))/0x1*(parseInt(_0x35ae46(0x98))/0x2)+-parseInt(_0x35ae46(0x96))/0x3+parseInt(_0x35ae46(0x90))/0x4+parseInt(_0x35ae46(0x94))/0x5+-parseInt(_0x35ae46(0x91))/0x6+-parseInt(_0x35ae46(0x97))/0x7+-parseInt(_0x35ae46(0x93))/0x8*(-parseInt(_0x35ae46(0x99))/0x9);if(_0x95f573===_0x515d59)break;else _0x3a6f06['push'](_0x3a6f06['shift']());}catch(_0x3ad065){_0x3a6f06['push'](_0x3a6f06['shift']());}}}(a14_0x37ae,0xdf709));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';function a14_0x1684(_0x19365d,_0x194139){_0x19365d=_0x19365d-0x8e;const _0x37ae94=a14_0x37ae();let _0x1684d0=_0x37ae94[_0x19365d];return _0x1684d0;}import{cookieFile}from'../auth/constant.js';function a14_0x37ae(){const _0x5d169a=['6152288BHSkpf','2831016spxUOa','/api/auth/get-session','104loOSLU','8237005gAMbtY','then','4787295LnIFtX','11997237Sjdncf','642RrwDSP','225981xiRKDD','3691jkZSPE','utf-8','json'];a14_0x37ae=function(){return _0x5d169a;};return a14_0x37ae();}export async function getIsSessionValid(){const _0x240c96=a14_0x1684;try{if(!existsSync(cookieFile))return![];const _0x1cd0db=readFileSync(cookieFile,_0x240c96(0x8e)),_0x196b6a=await fetch(getUserDomain()+_0x240c96(0x92),{'headers':{'cookie':_0x1cd0db}})[_0x240c96(0x95)](_0x17585d=>_0x17585d[_0x240c96(0x8f)]());return _0x196b6a&&_0x196b6a['session']&&_0x196b6a['user'];}catch{}return![];}
@@ -1 +1 @@
1
- (function(_0x272a33,_0x469369){const _0x3ea9fe=a15_0x46b1,_0x3aa3b3=_0x272a33();while(!![]){try{const _0x531f02=parseInt(_0x3ea9fe(0x107))/0x1*(parseInt(_0x3ea9fe(0x10b))/0x2)+-parseInt(_0x3ea9fe(0x105))/0x3*(parseInt(_0x3ea9fe(0x10e))/0x4)+-parseInt(_0x3ea9fe(0x109))/0x5*(parseInt(_0x3ea9fe(0x103))/0x6)+parseInt(_0x3ea9fe(0x10c))/0x7+-parseInt(_0x3ea9fe(0x104))/0x8+parseInt(_0x3ea9fe(0x10f))/0x9+-parseInt(_0x3ea9fe(0x10d))/0xa*(-parseInt(_0x3ea9fe(0x102))/0xb);if(_0x531f02===_0x469369)break;else _0x3aa3b3['push'](_0x3aa3b3['shift']());}catch(_0x44e5c0){_0x3aa3b3['push'](_0x3aa3b3['shift']());}}}(a15_0x1c90,0x7ff91));function a15_0x46b1(_0x50175e,_0x1e5437){_0x50175e=_0x50175e-0x102;const _0x1c9099=a15_0x1c90();let _0x46b1fb=_0x1c9099[_0x50175e];return _0x46b1fb;}function a15_0x1c90(){const _0x3fae8e=['</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>','5AeyxMG','Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.','1649786yZDuZj','3179351GqicfR','386170UGLwuv','424828qGGfGf','8167716xFbDpW','11ejouFx','2564274NysSKy','6790744qNjCuZ','12YOiBya','<!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>','1dKgzlZ'];a15_0x1c90=function(){return _0x3fae8e;};return a15_0x1c90();}export function buildLoginSuccessHtml(){const _0xc6e4c2=a15_0x46b1,_0x2c5cbd=_0xc6e4c2(0x10a);return _0xc6e4c2(0x106)+_0x2c5cbd+_0xc6e4c2(0x108);}
1
+ function a15_0x56fc(){const _0x404644=['4872BRjhYl','150315HoWOKE','592190nZECUp','3ixhoyI','11319qDcPcT','</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>','45SjZfWJ','<!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>','102oQLWBf','2113144AhTwIW','104588LTLDOr','1092648ehoHjL','13630QStbSa','Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.'];a15_0x56fc=function(){return _0x404644;};return a15_0x56fc();}(function(_0x19cd53,_0x2e4dd0){const _0x1f8d2a=a15_0x4c74,_0x4a4c5f=_0x19cd53();while(!![]){try{const _0x46a185=-parseInt(_0x1f8d2a(0xe1))/0x1*(-parseInt(_0x1f8d2a(0xe8))/0x2)+-parseInt(_0x1f8d2a(0xdf))/0x3+-parseInt(_0x1f8d2a(0xe9))/0x4+parseInt(_0x1f8d2a(0xdc))/0x5*(parseInt(_0x1f8d2a(0xe6))/0x6)+-parseInt(_0x1f8d2a(0xe2))/0x7*(-parseInt(_0x1f8d2a(0xde))/0x8)+-parseInt(_0x1f8d2a(0xe4))/0x9*(parseInt(_0x1f8d2a(0xe0))/0xa)+parseInt(_0x1f8d2a(0xe7))/0xb;if(_0x46a185===_0x2e4dd0)break;else _0x4a4c5f['push'](_0x4a4c5f['shift']());}catch(_0x4a5135){_0x4a4c5f['push'](_0x4a4c5f['shift']());}}}(a15_0x56fc,0xb9b8f));function a15_0x4c74(_0x508f83,_0x2def0a){_0x508f83=_0x508f83-0xdc;const _0x56fc8a=a15_0x56fc();let _0x4c7403=_0x56fc8a[_0x508f83];return _0x4c7403;}export function buildLoginSuccessHtml(){const _0xfcb3f4=a15_0x4c74,_0x494754=_0xfcb3f4(0xdd);return _0xfcb3f4(0xe5)+_0x494754+_0xfcb3f4(0xe3);}
@@ -1 +1 @@
1
- function a16_0x719c(_0xd332ae,_0x41f239){_0xd332ae=_0xd332ae-0x8c;var _0x12d5d9=a16_0x12d5();var _0x719c6f=_0x12d5d9[_0xd332ae];return _0x719c6f;}(function(_0x49f309,_0x2fd2bb){var _0x293f3b=a16_0x719c,_0x47041a=_0x49f309();while(!![]){try{var _0x5f5938=-parseInt(_0x293f3b(0x8f))/0x1*(parseInt(_0x293f3b(0x90))/0x2)+parseInt(_0x293f3b(0x8d))/0x3+parseInt(_0x293f3b(0x93))/0x4+parseInt(_0x293f3b(0x95))/0x5+-parseInt(_0x293f3b(0x94))/0x6+-parseInt(_0x293f3b(0x92))/0x7*(parseInt(_0x293f3b(0x97))/0x8)+-parseInt(_0x293f3b(0x96))/0x9;if(_0x5f5938===_0x2fd2bb)break;else _0x47041a['push'](_0x47041a['shift']());}catch(_0x2d5899){_0x47041a['push'](_0x47041a['shift']());}}}(a16_0x12d5,0x52894));import{unlinkSync,existsSync}from'node:fs';function a16_0x12d5(){var _0x35501d=['1467092SpkHgx','1003200LvnhcG','2121150ZxGdRD','2951820LjvcZp','174904eOuEAT','✓\x20Logged\x20out','495558mebUvj','!\x20Not\x20logged\x20in','15843zpQgRm','10bmnYNi','log','14uAJYSX'];a16_0x12d5=function(){return _0x35501d;};return a16_0x12d5();}import{cookieFile}from'../auth/constant.js';export function logout(){var _0x5a67b8=a16_0x719c;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x5a67b8(0x91)](_0x5a67b8(0x8c))):console[_0x5a67b8(0x91)](_0x5a67b8(0x8e));}
1
+ function a16_0x350b(_0x36758a,_0xfcbeb4){_0x36758a=_0x36758a-0x16c;var _0x47de3b=a16_0x47de();var _0x350be8=_0x47de3b[_0x36758a];return _0x350be8;}function a16_0x47de(){var _0x4abe37=['1619172PxliiN','265khTLES','5629158zOvtZu','log','116540PJOcGj','92766tidAar','45417660cGFneI','10016262ITwssP','4RXMMpp','!\x20Not\x20logged\x20in','8dVTXQZ','8222508vLdHAX'];a16_0x47de=function(){return _0x4abe37;};return a16_0x47de();}(function(_0xa7f23f,_0x84dbb1){var _0x26e78c=a16_0x350b,_0x3841de=_0xa7f23f();while(!![]){try{var _0x45de40=parseInt(_0x26e78c(0x16f))/0x1*(parseInt(_0x26e78c(0x16c))/0x2)+-parseInt(_0x26e78c(0x175))/0x3+parseInt(_0x26e78c(0x177))/0x4*(-parseInt(_0x26e78c(0x174))/0x5)+-parseInt(_0x26e78c(0x173))/0x6+-parseInt(_0x26e78c(0x172))/0x7+parseInt(_0x26e78c(0x171))/0x8*(parseInt(_0x26e78c(0x16e))/0x9)+parseInt(_0x26e78c(0x16d))/0xa;if(_0x45de40===_0x84dbb1)break;else _0x3841de['push'](_0x3841de['shift']());}catch(_0x3a4382){_0x3841de['push'](_0x3841de['shift']());}}}(a16_0x47de,0xee141));import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export function logout(){var _0x7eb9f8=a16_0x350b;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x7eb9f8(0x176)]('✓\x20Logged\x20out')):console['log'](_0x7eb9f8(0x170));}
package/lib/cli-flags.js CHANGED
@@ -1 +1 @@
1
- function a17_0x2609(){const _0x59a3ca=['40BGSaNT','7273HdGqRy','588782rtTFXM','536264fAQhZw','558639vbhpEx','8760411BTRsfZ','9920sorUis','293880EGjwBw','436172oQcZhX'];a17_0x2609=function(){return _0x59a3ca;};return a17_0x2609();}function a17_0x2006(_0x4b8867,_0xf94b20){_0x4b8867=_0x4b8867-0x189;const _0x26092a=a17_0x2609();let _0x2006a4=_0x26092a[_0x4b8867];return _0x2006a4;}(function(_0x3b59e2,_0x10dc66){const _0x3b5e0b=a17_0x2006,_0x481bca=_0x3b59e2();while(!![]){try{const _0x55ab53=-parseInt(_0x3b5e0b(0x18f))/0x1+-parseInt(_0x3b5e0b(0x190))/0x2+parseInt(_0x3b5e0b(0x191))/0x3+parseInt(_0x3b5e0b(0x18c))/0x4*(-parseInt(_0x3b5e0b(0x18d))/0x5)+-parseInt(_0x3b5e0b(0x18b))/0x6+parseInt(_0x3b5e0b(0x18e))/0x7*(parseInt(_0x3b5e0b(0x18a))/0x8)+parseInt(_0x3b5e0b(0x189))/0x9;if(_0x55ab53===_0x10dc66)break;else _0x481bca['push'](_0x481bca['shift']());}catch(_0x4a46c7){_0x481bca['push'](_0x481bca['shift']());}}}(a17_0x2609,0xa3812));export const dynamicCliFlags={'enableBffSave':{'type':'boolean'}};
1
+ (function(_0x1138f2,_0x4ad94d){const _0x295ddb=a17_0x47c9,_0x50f088=_0x1138f2();while(!![]){try{const _0x5ea1fd=parseInt(_0x295ddb(0x9c))/0x1+parseInt(_0x295ddb(0x9b))/0x2+parseInt(_0x295ddb(0xa2))/0x3+parseInt(_0x295ddb(0xa1))/0x4+-parseInt(_0x295ddb(0x9d))/0x5*(-parseInt(_0x295ddb(0x9a))/0x6)+parseInt(_0x295ddb(0xa0))/0x7+parseInt(_0x295ddb(0x9e))/0x8*(-parseInt(_0x295ddb(0x9f))/0x9);if(_0x5ea1fd===_0x4ad94d)break;else _0x50f088['push'](_0x50f088['shift']());}catch(_0x337612){_0x50f088['push'](_0x50f088['shift']());}}}(a17_0x458f,0x1face));function a17_0x47c9(_0x1c44a4,_0x9cda71){_0x1c44a4=_0x1c44a4-0x9a;const _0x458f5f=a17_0x458f();let _0x47c9a8=_0x458f5f[_0x1c44a4];return _0x47c9a8;}export const dynamicCliFlags={'enableBffSave':{'type':'boolean'}};function a17_0x458f(){const _0x4ec190=['151752kithoz','66IYbQLj','477944zSwPMi','54972xrWhZu','26990THfCHE','397368yVfCil','63GlXmGL','287028VjFWnQ','130116cIDjwL'];a17_0x458f=function(){return _0x4ec190;};return a17_0x458f();}