@lovrabet/rabetbase-cli 2.3.4-beta.2 → 2.3.4-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-selector.js +1 -1
  46. package/lib/commands/common/flags.js +1 -1
  47. package/lib/commands/common/validate.js +1 -1
  48. package/lib/commands/config/get.js +1 -1
  49. package/lib/commands/config/index.js +1 -1
  50. package/lib/commands/config/list.js +1 -1
  51. package/lib/commands/config/set.js +1 -1
  52. package/lib/commands/config/shared.js +1 -1
  53. package/lib/commands/data/filter.js +1 -1
  54. package/lib/commands/data/getOne.js +1 -1
  55. package/lib/commands/data/index.js +1 -1
  56. package/lib/commands/data/shared.js +1 -1
  57. package/lib/commands/dataset/business-group-update.js +1 -1
  58. package/lib/commands/dataset/capability.js +1 -1
  59. package/lib/commands/dataset/delete.js +1 -1
  60. package/lib/commands/dataset/detail.js +1 -1
  61. package/lib/commands/dataset/extend-update.js +1 -1
  62. package/lib/commands/dataset/field-update.js +1 -1
  63. package/lib/commands/dataset/generate.js +1 -1
  64. package/lib/commands/dataset/index.js +1 -1
  65. package/lib/commands/dataset/list.js +1 -1
  66. package/lib/commands/dataset/operations.js +1 -1
  67. package/lib/commands/dataset/relation-audit.js +1 -1
  68. package/lib/commands/dataset/relation-create.js +1 -1
  69. package/lib/commands/dataset/relation-delete.js +1 -1
  70. package/lib/commands/dataset/relation-shared.js +1 -1
  71. package/lib/commands/dataset/relation-update.js +1 -1
  72. package/lib/commands/dataset/relations.js +1 -1
  73. package/lib/commands/dataset/rename.js +1 -1
  74. package/lib/commands/dataset/restore.js +1 -1
  75. package/lib/commands/db/analyze-cancel.js +1 -1
  76. package/lib/commands/db/analyze-start.js +1 -1
  77. package/lib/commands/db/analyze-status.js +1 -1
  78. package/lib/commands/db/create.js +1 -1
  79. package/lib/commands/db/delete.js +1 -1
  80. package/lib/commands/db/detail.js +1 -1
  81. package/lib/commands/db/diff.js +1 -1
  82. package/lib/commands/db/index.js +1 -1
  83. package/lib/commands/db/list.js +1 -1
  84. package/lib/commands/db/shared.js +1 -1
  85. package/lib/commands/db/tables.js +1 -1
  86. package/lib/commands/db/test.js +1 -1
  87. package/lib/commands/db/update.js +1 -1
  88. package/lib/commands/doctor.js +1 -1
  89. package/lib/commands/init/index.js +1 -1
  90. package/lib/commands/issue/index.js +1 -1
  91. package/lib/commands/issue/nudge.js +1 -1
  92. package/lib/commands/issue/report.js +1 -1
  93. package/lib/commands/issue/shared.js +1 -1
  94. package/lib/commands/logs/index.js +1 -1
  95. package/lib/commands/menu/index.js +1 -1
  96. package/lib/commands/menu/list.js +1 -1
  97. package/lib/commands/menu/shared/compare-table.js +1 -1
  98. package/lib/commands/menu/shared/index.js +1 -1
  99. package/lib/commands/menu/shared/inquirer.js +1 -1
  100. package/lib/commands/menu/shared/local-pages.js +1 -1
  101. package/lib/commands/menu/shared/logic.js +1 -1
  102. package/lib/commands/menu/shared/service.js +1 -1
  103. package/lib/commands/menu/shared/sync-core.js +1 -1
  104. package/lib/commands/menu/shared/update-core.js +1 -1
  105. package/lib/commands/menu/shared/valid-url.js +1 -1
  106. package/lib/commands/menu/sync.js +1 -1
  107. package/lib/commands/menu/update.js +1 -1
  108. package/lib/commands/page/generate-start.js +1 -1
  109. package/lib/commands/page/generate-status.js +1 -1
  110. package/lib/commands/page/index.js +1 -1
  111. package/lib/commands/page/pull.js +1 -1
  112. package/lib/commands/page/push.js +1 -1
  113. package/lib/commands/page/relation-audit.js +1 -1
  114. package/lib/commands/page/shared.js +1 -1
  115. package/lib/commands/page/standard-page-status.js +1 -1
  116. package/lib/commands/page/sync.js +1 -1
  117. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  118. package/lib/commands/project/create/format-elapsed.js +1 -1
  119. package/lib/commands/project/create/main.js +1 -1
  120. package/lib/commands/project/create/non-interactive.js +1 -1
  121. package/lib/commands/project/create/project-template-path.js +1 -1
  122. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  123. package/lib/commands/project/create/use-format-code.js +1 -1
  124. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  125. package/lib/commands/project/index.js +1 -1
  126. package/lib/commands/project/init.js +1 -1
  127. package/lib/commands/project/upgrade.js +1 -1
  128. package/lib/commands/registry.js +1 -1
  129. package/lib/commands/run/index.js +1 -1
  130. package/lib/commands/schema.js +1 -1
  131. package/lib/commands/sql/create.js +1 -1
  132. package/lib/commands/sql/delete.js +1 -1
  133. package/lib/commands/sql/detail.js +1 -1
  134. package/lib/commands/sql/exec.js +1 -1
  135. package/lib/commands/sql/index.js +1 -1
  136. package/lib/commands/sql/list.js +1 -1
  137. package/lib/commands/sql/pull.js +1 -1
  138. package/lib/commands/sql/push.js +1 -1
  139. package/lib/commands/sql/save.js +1 -1
  140. package/lib/commands/sql/shared.js +1 -1
  141. package/lib/commands/sql/status.js +1 -1
  142. package/lib/commands/sql/validate.js +1 -1
  143. package/lib/commands/workspace/index.js +1 -1
  144. package/lib/config/schema.js +1 -1
  145. package/lib/constant/cdn.js +1 -1
  146. package/lib/constant/cli.js +1 -1
  147. package/lib/constant/defaults.js +1 -1
  148. package/lib/constant/domain.js +1 -1
  149. package/lib/constant/env.js +1 -1
  150. package/lib/constant/output.js +1 -1
  151. package/lib/constant/paths.js +1 -1
  152. package/lib/constant/risk.js +1 -1
  153. package/lib/context/app-resolver.js +1 -1
  154. package/lib/context/auth-resolver.js +1 -1
  155. package/lib/context/config-loader.js +1 -1
  156. package/lib/context.js +1 -1
  157. package/lib/core/alias-resolver.js +1 -1
  158. package/lib/core/api-client.js +1 -1
  159. package/lib/core/bff/config.js +1 -1
  160. package/lib/core/bff/file-system.js +1 -1
  161. package/lib/core/bff/hash.js +1 -1
  162. package/lib/core/bff/lock.js +1 -1
  163. package/lib/core/bff/utils.js +1 -1
  164. package/lib/core/db-resolver.js +1 -1
  165. package/lib/core/page/file-system.js +1 -1
  166. package/lib/core/page/hash.js +1 -1
  167. package/lib/core/page/lock.js +1 -1
  168. package/lib/core/sql-sync/config.js +1 -1
  169. package/lib/core/sql-sync/file-system.js +1 -1
  170. package/lib/core/sql-sync/hash.js +1 -1
  171. package/lib/core/sql-sync/lock.js +1 -1
  172. package/lib/core/sql-sync/utils.js +1 -1
  173. package/lib/core/sql-validator.js +1 -1
  174. package/lib/errors.js +1 -1
  175. package/lib/framework/build-all-flags.js +1 -1
  176. package/lib/framework/flags.js +1 -1
  177. package/lib/framework/help.js +1 -1
  178. package/lib/framework/index.js +1 -1
  179. package/lib/framework/output.js +1 -1
  180. package/lib/framework/response.js +1 -1
  181. package/lib/framework/runner-alias.js +1 -1
  182. package/lib/framework/runner.js +1 -1
  183. package/lib/framework/schema-export.js +1 -1
  184. package/lib/framework/types.js +1 -1
  185. package/lib/generated/build-info.js +1 -1
  186. package/lib/help.js +1 -1
  187. package/lib/skills/main.js +1 -1
  188. package/lib/skills/npx-skills-add.js +1 -1
  189. package/lib/telemetry/cli-command-trace.js +1 -1
  190. package/lib/telemetry/cli-help-trace.js +1 -1
  191. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  192. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  193. package/lib/telemetry/send-cli-trace-log.js +1 -1
  194. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  195. package/lib/utils/ai_config.js +1 -1
  196. package/lib/utils/apply-jq-filter.js +1 -1
  197. package/lib/utils/cdn-config.js +1 -1
  198. package/lib/utils/check-sdk-version.js +1 -1
  199. package/lib/utils/cli-version-check.js +1 -1
  200. package/lib/utils/cli-version-policy.js +1 -1
  201. package/lib/utils/config.js +1 -1
  202. package/lib/utils/copy-directory.js +1 -1
  203. package/lib/utils/entity-with-id.js +1 -1
  204. package/lib/utils/file-utils.js +1 -1
  205. package/lib/utils/guides-cdn.js +1 -1
  206. package/lib/utils/http-client.js +1 -1
  207. package/lib/utils/is-non-interactive.js +1 -1
  208. package/lib/utils/logger.js +1 -1
  209. package/lib/utils/params.js +1 -1
  210. package/lib/utils/platform.js +1 -1
  211. package/lib/utils/rules-cdn.js +1 -1
  212. package/lib/utils/sleep.js +1 -1
  213. package/lib/utils/template-replacer.js +1 -1
  214. package/lib/utils/update-notice.js +1 -1
  215. package/lib/utils/version.js +1 -1
  216. package/lib/utils/with-active-cookie.js +1 -1
  217. package/lib/utils/write-cli-side-channel.js +1 -1
  218. package/package.json +1 -1
@@ -1 +1 @@
1
- const a141_0x1e75de=a141_0x585f;(function(_0x282de2,_0x4788bf){const _0x3d42bb=a141_0x585f,_0x8332b=_0x282de2();while(!![]){try{const _0x35abc4=-parseInt(_0x3d42bb(0x1be))/0x1*(parseInt(_0x3d42bb(0x1b7))/0x2)+-parseInt(_0x3d42bb(0x1a3))/0x3+-parseInt(_0x3d42bb(0x1b6))/0x4+-parseInt(_0x3d42bb(0x1ba))/0x5+parseInt(_0x3d42bb(0x1a9))/0x6+-parseInt(_0x3d42bb(0x1b9))/0x7+parseInt(_0x3d42bb(0x1b1))/0x8;if(_0x35abc4===_0x4788bf)break;else _0x8332b['push'](_0x8332b['shift']());}catch(_0x2420d6){_0x8332b['push'](_0x8332b['shift']());}}}(a141_0x23be,0x21444));import{listSqlQueries}from'../../core/api-client.js';import{loadSqlProjectConfig}from'../../core/sql-sync/config.js';function a141_0x585f(_0x3637c5,_0xb7e9bd){_0x3637c5=_0x3637c5-0x1a2;const _0x23be19=a141_0x23be();let _0x585ffd=_0x23be19[_0x3637c5];return _0x585ffd;}import{scanLocalSqlQueries}from'../../core/sql-sync/file-system.js';import{computeSqlFileHash}from'../../core/sql-sync/hash.js';import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile}from'../../core/sql-sync/lock.js';function a141_0x23be(){const _0x5af411=['lockKey','tableData','has','\x20remote-only','remote','Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally','582594EDmTFs','length','lockFilePath','path','status','sqlCode','1597074skboDw','relativePath','paging','\x20missing,\x20','map','sqls','totalCount','sql','6078384DfBPTE','filePath','hash','bool','push','416688VHEHol','191038tbDqix','All\x20SQL\x20queries\x20are\x20in\x20sync.','1809521jPYGkv','709030nIXZJA','sqlName','keys','appCode','2gbjXZq'];a141_0x23be=function(){return _0x5af411;};return a141_0x23be();}const PAGE_SIZE=0x64;async function fetchAllSqlCodes(_0x282a05){const _0xb6495b=a141_0x585f,_0x5b8ef9=[];let _0x58a6b6=0x1;while(!![]){const _0x22e9ae=await listSqlQueries(_0x282a05,{'currentPage':_0x58a6b6,'pageSize':PAGE_SIZE}),_0x585363=_0x22e9ae[_0xb6495b(0x1c0)]??[];_0x5b8ef9[_0xb6495b(0x1b5)](..._0x585363[_0xb6495b(0x1ad)](_0x2415f1=>_0x2415f1[_0xb6495b(0x1a8)]));if(_0x585363[_0xb6495b(0x1a4)]===0x0)break;const _0x1e0953=_0x22e9ae[_0xb6495b(0x1ab)]?.[_0xb6495b(0x1af)];if(_0x1e0953!=null?_0x5b8ef9['length']>=_0x1e0953:_0x585363[_0xb6495b(0x1a4)]<PAGE_SIZE)break;_0x58a6b6++;}return _0x5b8ef9;}export const sqlStatus={'service':a141_0x1e75de(0x1b0),'command':a141_0x1e75de(0x1a7),'description':'Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','risk':'read','flags':[{'name':'remote','type':'boolean','description':a141_0x1e75de(0x1a2)}],async 'execute'(_0x4aa21c){const _0x10a73e=a141_0x1e75de,_0xbf2a4d=loadSqlProjectConfig(_0x4aa21c[_0x10a73e(0x1bd)]),_0x336ba6=await readSqlLockFile(_0xbf2a4d[_0x10a73e(0x1a5)]),{appLock:_0x273376}=ensureSqlLockScope(_0x336ba6??createEmptySqlLock(),_0xbf2a4d[_0x10a73e(0x1bd)],_0xbf2a4d['sqlRoot'],'status'),_0x2b82ee=await scanLocalSqlQueries(_0xbf2a4d),_0x5b74ff=[],_0x5dc30e=[],_0x5dedd1=[],_0x22ee82=[],_0x24e960=new Set(_0x2b82ee[_0x10a73e(0x1ad)](_0x1f4d88=>_0x1f4d88[_0x10a73e(0x1bf)]));for(const _0x1d73fa of _0x2b82ee){const _0x120bd7=await computeSqlFileHash(_0x1d73fa[_0x10a73e(0x1b2)]),_0x1343d4=_0x273376['sqls'][_0x1d73fa[_0x10a73e(0x1bf)]],_0x537e40=!!_0x1343d4&&_0x1343d4[_0x10a73e(0x1a6)]!==_0x1d73fa[_0x10a73e(0x1aa)],_0x41bcc9=!!_0x1343d4&&!!_0x1d73fa[_0x10a73e(0x1bb)]&&_0x1343d4[_0x10a73e(0x1bb)]!==_0x1d73fa['sqlName'];if(!_0x1343d4)_0x5b74ff[_0x10a73e(0x1b5)](_0x1d73fa['lockKey']);else _0x1343d4[_0x10a73e(0x1b3)]!==_0x120bd7||_0x537e40||_0x41bcc9?_0x5dc30e[_0x10a73e(0x1b5)](_0x1d73fa[_0x10a73e(0x1bf)]):_0x5dedd1['push'](_0x1d73fa[_0x10a73e(0x1bf)]);}for(const _0x276cc1 of Object[_0x10a73e(0x1bc)](_0x273376[_0x10a73e(0x1ae)])){!_0x24e960[_0x10a73e(0x1c1)](_0x276cc1)&&_0x22ee82[_0x10a73e(0x1b5)](_0x276cc1);}const _0x4e867c=[];if(_0x4aa21c[_0x10a73e(0x1b4)](_0x10a73e(0x1c3))){const _0x1e973b=await fetchAllSqlCodes(_0x4aa21c[_0x10a73e(0x1bd)]);for(const _0x5678bf of _0x1e973b){!_0x24e960[_0x10a73e(0x1c1)](_0x5678bf)&&!_0x273376[_0x10a73e(0x1ae)][_0x5678bf]&&_0x4e867c[_0x10a73e(0x1b5)](_0x5678bf);}}const _0x308809=_0x5b74ff['length']===0x0&&_0x5dc30e[_0x10a73e(0x1a4)]===0x0&&_0x22ee82[_0x10a73e(0x1a4)]===0x0&&_0x4e867c[_0x10a73e(0x1a4)]===0x0;return{'ok':!![],'data':{'added':_0x5b74ff,'modified':_0x5dc30e,'missing':_0x22ee82,'unchanged':_0x5dedd1,'remoteOnly':_0x4e867c},'message':_0x308809?_0x10a73e(0x1b8):_0x5b74ff[_0x10a73e(0x1a4)]+'\x20added,\x20'+_0x5dc30e[_0x10a73e(0x1a4)]+'\x20modified,\x20'+_0x22ee82[_0x10a73e(0x1a4)]+_0x10a73e(0x1ac)+_0x5dedd1[_0x10a73e(0x1a4)]+'\x20unchanged'+(_0x4e867c[_0x10a73e(0x1a4)]>0x0?',\x20'+_0x4e867c[_0x10a73e(0x1a4)]+_0x10a73e(0x1c2):'')};}};
1
+ const a141_0xd75d87=a141_0x2e87;(function(_0x59328d,_0x128c2d){const _0x446086=a141_0x2e87,_0x4aaede=_0x59328d();while(!![]){try{const _0x48b4b5=parseInt(_0x446086(0x88))/0x1+-parseInt(_0x446086(0x7e))/0x2*(parseInt(_0x446086(0x99))/0x3)+parseInt(_0x446086(0x92))/0x4*(parseInt(_0x446086(0x9d))/0x5)+parseInt(_0x446086(0x7d))/0x6+parseInt(_0x446086(0x78))/0x7+parseInt(_0x446086(0x8a))/0x8*(parseInt(_0x446086(0x93))/0x9)+-parseInt(_0x446086(0x7c))/0xa*(parseInt(_0x446086(0x7f))/0xb);if(_0x48b4b5===_0x128c2d)break;else _0x4aaede['push'](_0x4aaede['shift']());}catch(_0x4d1418){_0x4aaede['push'](_0x4aaede['shift']());}}}(a141_0x20ac,0x503dd));import{listSqlQueries}from'../../core/api-client.js';function a141_0x2e87(_0x5eccb4,_0x41a8b8){_0x5eccb4=_0x5eccb4-0x76;const _0x20ac48=a141_0x20ac();let _0x2e872e=_0x20ac48[_0x5eccb4];return _0x2e872e;}import{loadSqlProjectConfig}from'../../core/sql-sync/config.js';import{scanLocalSqlQueries}from'../../core/sql-sync/file-system.js';import{computeSqlFileHash}from'../../core/sql-sync/hash.js';import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile}from'../../core/sql-sync/lock.js';const PAGE_SIZE=0x64;async function fetchAllSqlCodes(_0x12836e){const _0xd2bb8=a141_0x2e87,_0xf912c6=[];let _0x5ccb48=0x1;while(!![]){const _0x902410=await listSqlQueries(_0x12836e,{'currentPage':_0x5ccb48,'pageSize':PAGE_SIZE}),_0x23aed1=_0x902410[_0xd2bb8(0x9b)]??[];_0xf912c6['push'](..._0x23aed1[_0xd2bb8(0x8f)](_0x15f192=>_0x15f192[_0xd2bb8(0x94)]));if(_0x23aed1[_0xd2bb8(0x96)]===0x0)break;const _0x3db859=_0x902410['paging']?.[_0xd2bb8(0x97)];if(_0x3db859!=null?_0xf912c6[_0xd2bb8(0x96)]>=_0x3db859:_0x23aed1[_0xd2bb8(0x96)]<PAGE_SIZE)break;_0x5ccb48++;}return _0xf912c6;}function a141_0x20ac(){const _0x40ebcb=['lockKey','path','map','sql','push','1430556vStBbR','9TmbvQO','sqlCode','has','length','totalCount','sqlName','292812GbCtjP','Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','tableData','All\x20SQL\x20queries\x20are\x20in\x20sync.','5yrppsf','\x20remote-only','filePath','2225468EbkfsY','\x20unchanged','lockFilePath','keys','4094890aZttiI','3862548xfTIJq','8AQFGwX','33LeaOUs','\x20added,\x20','\x20missing,\x20','appCode','status','boolean','bool','sqls','relativePath','173264cesXpB','\x20modified,\x20','3639736AgDcbU','hash','read'];a141_0x20ac=function(){return _0x40ebcb;};return a141_0x20ac();}export const sqlStatus={'service':a141_0xd75d87(0x90),'command':a141_0xd75d87(0x83),'description':a141_0xd75d87(0x9a),'risk':a141_0xd75d87(0x8c),'flags':[{'name':'remote','type':a141_0xd75d87(0x84),'description':'Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally'}],async 'execute'(_0xe4948c){const _0x5805f9=a141_0xd75d87,_0x170c82=loadSqlProjectConfig(_0xe4948c['appCode']),_0x358df3=await readSqlLockFile(_0x170c82[_0x5805f9(0x7a)]),{appLock:_0x19efd4}=ensureSqlLockScope(_0x358df3??createEmptySqlLock(),_0x170c82[_0x5805f9(0x82)],_0x170c82['sqlRoot'],_0x5805f9(0x83)),_0x18dd81=await scanLocalSqlQueries(_0x170c82),_0x68a9ed=[],_0x3a572d=[],_0x19468a=[],_0x2732c5=[],_0x4fff62=new Set(_0x18dd81['map'](_0x4fe2ad=>_0x4fe2ad['lockKey']));for(const _0x268b25 of _0x18dd81){const _0x542428=await computeSqlFileHash(_0x268b25[_0x5805f9(0x77)]),_0x568ea1=_0x19efd4[_0x5805f9(0x86)][_0x268b25[_0x5805f9(0x8d)]],_0x49e93e=!!_0x568ea1&&_0x568ea1[_0x5805f9(0x8e)]!==_0x268b25[_0x5805f9(0x87)],_0x3915fc=!!_0x568ea1&&!!_0x268b25[_0x5805f9(0x98)]&&_0x568ea1[_0x5805f9(0x98)]!==_0x268b25[_0x5805f9(0x98)];if(!_0x568ea1)_0x68a9ed['push'](_0x268b25[_0x5805f9(0x8d)]);else _0x568ea1[_0x5805f9(0x8b)]!==_0x542428||_0x49e93e||_0x3915fc?_0x3a572d[_0x5805f9(0x91)](_0x268b25['lockKey']):_0x19468a['push'](_0x268b25[_0x5805f9(0x8d)]);}for(const _0x2798a1 of Object[_0x5805f9(0x7b)](_0x19efd4[_0x5805f9(0x86)])){!_0x4fff62[_0x5805f9(0x95)](_0x2798a1)&&_0x2732c5[_0x5805f9(0x91)](_0x2798a1);}const _0x8ad84f=[];if(_0xe4948c[_0x5805f9(0x85)]('remote')){const _0x2762ab=await fetchAllSqlCodes(_0xe4948c[_0x5805f9(0x82)]);for(const _0x19a949 of _0x2762ab){!_0x4fff62[_0x5805f9(0x95)](_0x19a949)&&!_0x19efd4['sqls'][_0x19a949]&&_0x8ad84f['push'](_0x19a949);}}const _0x3b6ded=_0x68a9ed['length']===0x0&&_0x3a572d[_0x5805f9(0x96)]===0x0&&_0x2732c5[_0x5805f9(0x96)]===0x0&&_0x8ad84f[_0x5805f9(0x96)]===0x0;return{'ok':!![],'data':{'added':_0x68a9ed,'modified':_0x3a572d,'missing':_0x2732c5,'unchanged':_0x19468a,'remoteOnly':_0x8ad84f},'message':_0x3b6ded?_0x5805f9(0x9c):_0x68a9ed[_0x5805f9(0x96)]+_0x5805f9(0x80)+_0x3a572d[_0x5805f9(0x96)]+_0x5805f9(0x89)+_0x2732c5[_0x5805f9(0x96)]+_0x5805f9(0x81)+_0x19468a[_0x5805f9(0x96)]+_0x5805f9(0x79)+(_0x8ad84f['length']>0x0?',\x20'+_0x8ad84f[_0x5805f9(0x96)]+_0x5805f9(0x76):'')};}};
@@ -1 +1 @@
1
- const a142_0x3d3488=a142_0x2763;(function(_0x437b5f,_0x3006c2){const _0x7a4c43=a142_0x2763,_0x1b57bb=_0x437b5f();while(!![]){try{const _0x174791=-parseInt(_0x7a4c43(0x16e))/0x1*(parseInt(_0x7a4c43(0x14f))/0x2)+-parseInt(_0x7a4c43(0x171))/0x3+-parseInt(_0x7a4c43(0x174))/0x4*(-parseInt(_0x7a4c43(0x170))/0x5)+parseInt(_0x7a4c43(0x161))/0x6*(parseInt(_0x7a4c43(0x179))/0x7)+-parseInt(_0x7a4c43(0x17b))/0x8*(parseInt(_0x7a4c43(0x158))/0x9)+-parseInt(_0x7a4c43(0x15b))/0xa+parseInt(_0x7a4c43(0x15f))/0xb;if(_0x174791===_0x3006c2)break;else _0x1b57bb['push'](_0x1b57bb['shift']());}catch(_0x531d40){_0x1b57bb['push'](_0x1b57bb['shift']());}}}(a142_0x37d3,0x1f5b1));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';function a142_0x2763(_0x589d95,_0x35530c){_0x589d95=_0x589d95-0x14a;const _0x37d301=a142_0x37d3();let _0x276374=_0x37d301[_0x589d95];return _0x276374;}import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a142_0x37d3(){const _0x8e992e=['trim','message','102epDVJa','name','str','validation','length','fields','schemas','from','tableName','9DCgcBI','size','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','1669740fZGvtj','Provide\x20--file\x20or\x20--sql','isSelectOnly','tables','4404917DipPJH','SQL\x20schema\x20validation','9258rWQoMf','isArray','cwd','validate','Dataset\x20\x22','sql','File\x20not\x20found:\x20','schema:','appCode','map','schemaWarnings','\x22\x20not\x20found\x20or\x20not\x20accessible','push','941VGvCEH','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','187070QPpslS','742704oAyhor','isDangerous','Table\x20\x22','12IZzjQB','string','sqlType','file','read','497jIMmXi','valid','250208NTDFKW','toLowerCase','reason','flagMissing','\x22\x20not\x20found\x20in\x20any\x20dataset'];a142_0x37d3=function(){return _0x8e992e;};return a142_0x37d3();}import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a142_0x3d3488(0x166),'command':a142_0x3d3488(0x164),'description':'Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','risk':a142_0x3d3488(0x178),'flags':[{'name':a142_0x3d3488(0x177),'type':'string','description':'Path\x20to\x20the\x20SQL\x20file\x20to\x20validate'},{'name':a142_0x3d3488(0x166),'type':a142_0x3d3488(0x175),'description':a142_0x3d3488(0x16f)},{'name':a142_0x3d3488(0x155),'type':a142_0x3d3488(0x175),'description':a142_0x3d3488(0x15a)}],async 'execute'(_0x291db0){const _0x3b8d77=a142_0x3d3488,_0x172323=_0x291db0[_0x3b8d77(0x151)](_0x3b8d77(0x177)),_0x18e3a2=_0x291db0[_0x3b8d77(0x151)](_0x3b8d77(0x166));if(!_0x172323&&!_0x18e3a2)throw CliErrors[_0x3b8d77(0x14b)]('file',_0x3b8d77(0x15c));let _0x21daff;if(_0x172323){const _0xc49840=resolve(process[_0x3b8d77(0x163)](),_0x172323);if(!existsSync(_0xc49840))throw CliErrors[_0x3b8d77(0x152)](_0x3b8d77(0x167)+_0xc49840);_0x21daff=readFileSync(_0xc49840,'utf-8');}else _0x21daff=_0x18e3a2;const _0x5042a9=validateSql(_0x21daff),_0x512007={'valid':_0x5042a9[_0x3b8d77(0x17a)],'sqlType':_0x5042a9[_0x3b8d77(0x176)]['type'],'isSelectOnly':_0x5042a9['sqlType'][_0x3b8d77(0x15d)],'isDangerous':_0x5042a9[_0x3b8d77(0x176)][_0x3b8d77(0x172)],'tables':_0x5042a9[_0x3b8d77(0x15e)],'parameters':_0x5042a9['parameters'],'message':_0x5042a9[_0x3b8d77(0x14e)]};_0x5042a9[_0x3b8d77(0x176)]['reason']&&(_0x512007[_0x3b8d77(0x14a)]=_0x5042a9['sqlType']['reason']);const _0x1cae32=_0x291db0[_0x3b8d77(0x151)](_0x3b8d77(0x155));if(_0x1cae32&&_0x5042a9[_0x3b8d77(0x17a)]){const _0x4c5731=_0x1cae32['split'](',')[_0x3b8d77(0x16a)](_0x92fb05=>_0x92fb05[_0x3b8d77(0x14d)]())['filter'](Boolean),_0x177715=[],_0x3dad8=filterDbTableBackedDatasets(await listDatasets(_0x291db0[_0x3b8d77(0x169)])),_0x2e18d4=new Map(_0x3dad8[_0x3b8d77(0x16a)](_0x2e77d7=>[_0x2e77d7['dbtableConfig']?.['tableName']?.['toLowerCase'](),_0x2e77d7]));for(const _0x5ccfd9 of _0x5042a9['tables']){const _0x5d55b2=_0x2e18d4['get'](_0x5ccfd9[_0x3b8d77(0x17c)]());!_0x5d55b2&&_0x177715[_0x3b8d77(0x16d)](_0x3b8d77(0x173)+_0x5ccfd9+_0x3b8d77(0x14c));}for(const _0x43c722 of _0x4c5731){let _0x53de6d;try{_0x53de6d=await getDatasetDetail(_0x43c722);}catch{_0x177715[_0x3b8d77(0x16d)](_0x3b8d77(0x165)+_0x43c722+_0x3b8d77(0x16c));continue;}assertDatasetIsDbTableBacked(_0x53de6d,_0x3b8d77(0x160));const _0x12fbd2=Array[_0x3b8d77(0x162)](_0x53de6d['fields'])?_0x53de6d[_0x3b8d77(0x154)]:[],_0x104d3f=new Set(_0x12fbd2['map'](_0x5358a9=>_0x5358a9[_0x3b8d77(0x150)]?.[_0x3b8d77(0x17c)]())),_0x3d65d3=_0x53de6d['dbtableConfig']?.[_0x3b8d77(0x157)]||_0x53de6d[_0x3b8d77(0x157)]||_0x43c722;_0x512007[_0x3b8d77(0x168)+_0x3d65d3]={'code':_0x43c722,'tableName':_0x3d65d3,'fieldCount':_0x104d3f[_0x3b8d77(0x159)],'fields':Array[_0x3b8d77(0x156)](_0x104d3f)};}_0x177715[_0x3b8d77(0x153)]>0x0&&(_0x512007[_0x3b8d77(0x16b)]=_0x177715);}return{'ok':_0x5042a9[_0x3b8d77(0x17a)],'data':_0x512007,'message':_0x5042a9[_0x3b8d77(0x14e)]};}};
1
+ const a142_0x42d614=a142_0x2673;function a142_0x2673(_0x34019f,_0xe76028){_0x34019f=_0x34019f-0xab;const _0x34df23=a142_0x34df();let _0x2673f8=_0x34df23[_0x34019f];return _0x2673f8;}(function(_0x3dc05d,_0x6f43da){const _0x51d95c=a142_0x2673,_0x2b7572=_0x3dc05d();while(!![]){try{const _0x44a99c=-parseInt(_0x51d95c(0xd7))/0x1*(parseInt(_0x51d95c(0xc8))/0x2)+parseInt(_0x51d95c(0xb5))/0x3*(-parseInt(_0x51d95c(0xae))/0x4)+-parseInt(_0x51d95c(0xb4))/0x5+-parseInt(_0x51d95c(0xc6))/0x6+parseInt(_0x51d95c(0xd3))/0x7+-parseInt(_0x51d95c(0xce))/0x8*(parseInt(_0x51d95c(0xb1))/0x9)+parseInt(_0x51d95c(0xb9))/0xa*(parseInt(_0x51d95c(0xb2))/0xb);if(_0x44a99c===_0x6f43da)break;else _0x2b7572['push'](_0x2b7572['shift']());}catch(_0x310714){_0x2b7572['push'](_0x2b7572['shift']());}}}(a142_0x34df,0xeabe9));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';function a142_0x34df(){const _0x397ad8=['message','8827721GAjmhL','validate','toLowerCase','str','519253DGqFwE','utf-8','length','type','Dataset\x20\x22','tables','dbtableConfig','4QEuFDZ','schema:','File\x20not\x20found:\x20','192222OwruEO','11LlKSwc','valid','4642940BQSaNx','1422984NdNrIN','sqlType','string','size','23865810jYZYmv','file','Table\x20\x22','reason','read','map','sql','schemaWarnings','schemas','Provide\x20--file\x20or\x20--sql','from','filter','get','4455864obxIBD','fields','2UGmuLV','push','\x22\x20not\x20found\x20in\x20any\x20dataset','appCode','SQL\x20schema\x20validation','validation','8eLPWrl','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','tableName','parameters'];a142_0x34df=function(){return _0x397ad8;};return a142_0x34df();}import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a142_0x42d614(0xbf),'command':a142_0x42d614(0xd4),'description':'Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','risk':a142_0x42d614(0xbd),'flags':[{'name':a142_0x42d614(0xba),'type':'string','description':'Path\x20to\x20the\x20SQL\x20file\x20to\x20validate'},{'name':a142_0x42d614(0xbf),'type':a142_0x42d614(0xb7),'description':'Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)'},{'name':a142_0x42d614(0xc1),'type':a142_0x42d614(0xb7),'description':a142_0x42d614(0xcf)}],async 'execute'(_0x4bcc67){const _0x58bdb8=a142_0x42d614,_0x35ea0d=_0x4bcc67[_0x58bdb8(0xd6)](_0x58bdb8(0xba)),_0x59219b=_0x4bcc67[_0x58bdb8(0xd6)](_0x58bdb8(0xbf));if(!_0x35ea0d&&!_0x59219b)throw CliErrors['flagMissing'](_0x58bdb8(0xba),_0x58bdb8(0xc2));let _0x50a2cf;if(_0x35ea0d){const _0x45c67b=resolve(process['cwd'](),_0x35ea0d);if(!existsSync(_0x45c67b))throw CliErrors[_0x58bdb8(0xcd)](_0x58bdb8(0xb0)+_0x45c67b);_0x50a2cf=readFileSync(_0x45c67b,_0x58bdb8(0xd8));}else _0x50a2cf=_0x59219b;const _0x23f522=validateSql(_0x50a2cf),_0x3561cb={'valid':_0x23f522[_0x58bdb8(0xb3)],'sqlType':_0x23f522[_0x58bdb8(0xb6)][_0x58bdb8(0xda)],'isSelectOnly':_0x23f522[_0x58bdb8(0xb6)]['isSelectOnly'],'isDangerous':_0x23f522[_0x58bdb8(0xb6)]['isDangerous'],'tables':_0x23f522[_0x58bdb8(0xac)],'parameters':_0x23f522[_0x58bdb8(0xd1)],'message':_0x23f522[_0x58bdb8(0xd2)]};_0x23f522[_0x58bdb8(0xb6)]['reason']&&(_0x3561cb[_0x58bdb8(0xbc)]=_0x23f522[_0x58bdb8(0xb6)][_0x58bdb8(0xbc)]);const _0x24125c=_0x4bcc67[_0x58bdb8(0xd6)](_0x58bdb8(0xc1));if(_0x24125c&&_0x23f522['valid']){const _0x3778e8=_0x24125c['split'](',')['map'](_0x1c4380=>_0x1c4380['trim']())[_0x58bdb8(0xc4)](Boolean),_0x2bae0a=[],_0x2aac5a=filterDbTableBackedDatasets(await listDatasets(_0x4bcc67[_0x58bdb8(0xcb)])),_0x33818d=new Map(_0x2aac5a['map'](_0x24da82=>[_0x24da82[_0x58bdb8(0xad)]?.[_0x58bdb8(0xd0)]?.[_0x58bdb8(0xd5)](),_0x24da82]));for(const _0xeca2e5 of _0x23f522[_0x58bdb8(0xac)]){const _0x1092e2=_0x33818d[_0x58bdb8(0xc5)](_0xeca2e5[_0x58bdb8(0xd5)]());!_0x1092e2&&_0x2bae0a[_0x58bdb8(0xc9)](_0x58bdb8(0xbb)+_0xeca2e5+_0x58bdb8(0xca));}for(const _0x4341a9 of _0x3778e8){let _0x45c2ba;try{_0x45c2ba=await getDatasetDetail(_0x4341a9);}catch{_0x2bae0a[_0x58bdb8(0xc9)](_0x58bdb8(0xab)+_0x4341a9+'\x22\x20not\x20found\x20or\x20not\x20accessible');continue;}assertDatasetIsDbTableBacked(_0x45c2ba,_0x58bdb8(0xcc));const _0xaee56b=Array['isArray'](_0x45c2ba[_0x58bdb8(0xc7)])?_0x45c2ba['fields']:[],_0x5e50e4=new Set(_0xaee56b[_0x58bdb8(0xbe)](_0x2198a9=>_0x2198a9['name']?.[_0x58bdb8(0xd5)]())),_0x3e2f2f=_0x45c2ba[_0x58bdb8(0xad)]?.[_0x58bdb8(0xd0)]||_0x45c2ba[_0x58bdb8(0xd0)]||_0x4341a9;_0x3561cb[_0x58bdb8(0xaf)+_0x3e2f2f]={'code':_0x4341a9,'tableName':_0x3e2f2f,'fieldCount':_0x5e50e4[_0x58bdb8(0xb8)],'fields':Array[_0x58bdb8(0xc3)](_0x5e50e4)};}_0x2bae0a[_0x58bdb8(0xd9)]>0x0&&(_0x3561cb[_0x58bdb8(0xc0)]=_0x2bae0a);}return{'ok':_0x23f522['valid'],'data':_0x3561cb,'message':_0x23f522[_0x58bdb8(0xd2)]};}};
@@ -1 +1 @@
1
- const a143_0x1f5be5=a143_0x4699;(function(_0x3387cd,_0x160a24){const _0x4858b0=a143_0x4699,_0x2c95f2=_0x3387cd();while(!![]){try{const _0x6ba679=parseInt(_0x4858b0(0x1cb))/0x1*(parseInt(_0x4858b0(0x1b8))/0x2)+-parseInt(_0x4858b0(0x1cf))/0x3*(parseInt(_0x4858b0(0x1b1))/0x4)+parseInt(_0x4858b0(0x1d3))/0x5+parseInt(_0x4858b0(0x1c3))/0x6+parseInt(_0x4858b0(0x1e1))/0x7+parseInt(_0x4858b0(0x1be))/0x8+-parseInt(_0x4858b0(0x1e3))/0x9*(parseInt(_0x4858b0(0x1e7))/0xa);if(_0x6ba679===_0x160a24)break;else _0x2c95f2['push'](_0x2c95f2['shift']());}catch(_0x3a42a7){_0x2c95f2['push'](_0x2c95f2['shift']());}}}(a143_0x16cd,0x7726a));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';const WORKSPACE_USAGE=CLI_BIN_NAME+a143_0x1f5be5(0x1c1),SAFE_PROFILE_KEYS=[a143_0x1f5be5(0x1d2),'env','apiDir',a143_0x1f5be5(0x1ca),a143_0x1f5be5(0x1cd),a143_0x1f5be5(0x1b6),a143_0x1f5be5(0x1bb)],workspaceFlags=[{'name':'app','type':a143_0x1f5be5(0x1c2),'description':a143_0x1f5be5(0x1b7)},{'name':a143_0x1f5be5(0x1d2),'type':'string','description':a143_0x1f5be5(0x1c7)},{'name':a143_0x1f5be5(0x1c4),'type':'string','description':a143_0x1f5be5(0x1b4),'enum':[...RABETBASE_ENV_VALUES]},{'name':a143_0x1f5be5(0x1d8),'type':a143_0x1f5be5(0x1c2),'description':a143_0x1f5be5(0x1d0)},{'name':a143_0x1f5be5(0x1df),'type':a143_0x1f5be5(0x1c2),'description':a143_0x1f5be5(0x1e2),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a143_0x1f5be5(0x1cd),'type':a143_0x1f5be5(0x1d9),'description':a143_0x1f5be5(0x1d7)},{'name':a143_0x1f5be5(0x1b6),'type':a143_0x1f5be5(0x1c2),'description':a143_0x1f5be5(0x1e6),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':'string','description':a143_0x1f5be5(0x1d1)}];function a143_0x4699(_0x5017dd,_0x425746){_0x5017dd=_0x5017dd-0x1af;const _0x16cd2d=a143_0x16cd();let _0x4699a8=_0x16cd2d[_0x5017dd];return _0x4699a8;}function isRecord(_0x4900e8){const _0x396af3=a143_0x1f5be5;return!!_0x4900e8&&typeof _0x4900e8==='object'&&!Array[_0x396af3(0x1da)](_0x4900e8);}function assertValidAppcode(_0x5f01f1){const _0x579596=a143_0x1f5be5,{valid:_0x39a1bb,message:_0x5b4828}=validateAppcode(_0x5f01f1);if(!_0x39a1bb)throw CliErrors[_0x579596(0x1e4)](_0x579596(0x1bc)+_0x5f01f1,_0x5b4828);}function sanitizeProfile(_0x768cd3){if(!isRecord(_0x768cd3))return{};const _0x19efe4={};for(const _0x25f82b of SAFE_PROFILE_KEYS){if(_0x768cd3[_0x25f82b]!==undefined)_0x19efe4[_0x25f82b]=_0x768cd3[_0x25f82b];}return _0x19efe4;}function cloneProfile(_0x3688a9){return isRecord(_0x3688a9)?{..._0x3688a9}:{};}function collectWorkspaceProfileOverrides(_0x34f31f){const _0xb3b8b6=a143_0x1f5be5,_0x1d7bfd={},_0x2cfbdf=_0x34f31f['str'](_0xb3b8b6(0x1c4)),_0x1349d2=_0x34f31f[_0xb3b8b6(0x1ea)](_0xb3b8b6(0x1d8)),_0x19f1d1=_0x34f31f[_0xb3b8b6(0x1ea)](_0xb3b8b6(0x1df)),_0x2d3198=_0x34f31f[_0xb3b8b6(0x1e8)](_0xb3b8b6(0x1cd)),_0xd4d49=_0x34f31f[_0xb3b8b6(0x1ea)](_0xb3b8b6(0x1b6)),_0x5260ef=_0x34f31f[_0xb3b8b6(0x1ea)](_0xb3b8b6(0x1bb));if(_0x2cfbdf)_0x1d7bfd[_0xb3b8b6(0x1c4)]=_0x2cfbdf;if(_0x1349d2)_0x1d7bfd['apiDir']=_0x1349d2;if(_0x19f1d1)_0x1d7bfd[_0xb3b8b6(0x1ca)]=_0x19f1d1;if(_0x2d3198!==undefined&&_0x2d3198!=='')_0x1d7bfd[_0xb3b8b6(0x1cd)]=Number(_0x2d3198);if(_0xd4d49)_0x1d7bfd['riskLevel']=_0xd4d49;if(_0x5260ef)_0x1d7bfd[_0xb3b8b6(0x1bb)]=_0x5260ef;return _0x1d7bfd;}async function validateWorkspaceArgs(_0x4ed398){const _0x50bf00=a143_0x1f5be5,_0xe19e57=_0x4ed398[_0x50bf00(0x1ea)](_0x50bf00(0x1d6))[_0x50bf00(0x1ce)](),_0x3444bf=_0x4ed398[_0x50bf00(0x1ea)](_0x50bf00(0x1d2))[_0x50bf00(0x1ce)]();if(!_0xe19e57&&!_0x3444bf)throw CliErrors[_0x50bf00(0x1e4)](_0x50bf00(0x1c5),_0x50bf00(0x1e9)+CLI_BIN_NAME+_0x50bf00(0x1dc)+CLI_BIN_NAME+_0x50bf00(0x1e5));if(_0x3444bf)assertValidAppcode(_0x3444bf);}function a143_0x16cd(){const _0x4a1bef=['Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','8231211QumKwA','validation','\x20workspace\x20use\x20--app\x20<name>`.','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','10OthPWe','flag','Use\x20`','str','\x20(appcode:\x20','workspace','\x20--app\x20','3560444gYmUNP','apps','globalConfig','Target\x20environment','\x20--appcode\x20<code>`.','riskLevel','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','1834YbqHea','\x22\x20not\x20found.','use','locale','Invalid\x20appcode:\x20','init','3661848IBUASJ','Workspace\x20','workspace.','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','string','2785518lQQCbw','env','Missing\x20workspace\x20app\x20selector.','initialized','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','Initialize\x20the\x20current\x20workspace\x20app\x20binding','write','format','229srCZsr','App\x20\x22','pageSize','trim','3AMjwgE','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','Locale\x20for\x20this\x20workspace\x20app\x20profile','appcode','3584565qOLlke','Switch\x20the\x20current\x20workspace\x20app\x20binding',').\x20Config:\x20','app','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','apiDir','number','isArray','.\x20Credentials:\x20not\x20written.','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','join','keys','defaultFormat','project','3106894agpOQl'];a143_0x16cd=function(){return _0x4a1bef;};return a143_0x16cd();}function resolveKnownApps(){const _0x2698c9=a143_0x1f5be5,{config:_0x53b9bb,layers:_0x32819e}=readRawConfigWithLayers(),_0x3f375c=isRecord(_0x53b9bb[_0x2698c9(0x1b2)])?_0x53b9bb[_0x2698c9(0x1b2)]:{},_0x27a185=isRecord(_0x32819e[_0x2698c9(0x1b3)][_0x2698c9(0x1b2)])?_0x32819e['globalConfig'][_0x2698c9(0x1b2)]:{};return{..._0x27a185,..._0x3f375c};}async function configureWorkspace(_0x44b519,_0x15f0b2){const _0x21eefd=a143_0x1f5be5,_0x1de354=_0x44b519['str'](_0x21eefd(0x1d6))[_0x21eefd(0x1ce)](),_0x33b6c4=_0x44b519['str'](_0x21eefd(0x1d2))[_0x21eefd(0x1ce)](),_0x40f163=_0x1de354||_0x33b6c4;if(!_0x40f163)throw CliErrors['validation'](_0x21eefd(0x1c5),_0x21eefd(0x1e9)+CLI_BIN_NAME+_0x21eefd(0x1dc)+CLI_BIN_NAME+_0x21eefd(0x1e5));if(_0x33b6c4)assertValidAppcode(_0x33b6c4);const _0x120dc2=resolveWriteConfigPath(_0x21eefd(0x1e0)),_0x812e19=readConfigFile(_0x120dc2),_0x5cea33=resolveKnownApps(),_0x305161=isRecord(_0x812e19[_0x21eefd(0x1b2)])?{..._0x812e19[_0x21eefd(0x1b2)]}:{},_0x360d0e=cloneProfile(_0x305161[_0x40f163]),_0x67e191=sanitizeProfile(_0x5cea33[_0x40f163]),_0xe6414=_0x33b6c4?{}:_0x67e191,_0x2eed46=_0x33b6c4||_0xe6414['appcode'];if(!_0x2eed46){const _0x36e914=Object[_0x21eefd(0x1de)](_0x5cea33),_0x1474f8=_0x36e914['length']===0x0?_0x21eefd(0x1e9)+CLI_BIN_NAME+'\x20workspace\x20'+_0x15f0b2+_0x21eefd(0x1b0)+_0x40f163+_0x21eefd(0x1b5):'Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20'+_0x36e914[_0x21eefd(0x1dd)](',\x20');throw CliErrors[_0x21eefd(0x1e4)](_0x21eefd(0x1cc)+_0x40f163+_0x21eefd(0x1b9),_0x1474f8);}assertValidAppcode(String(_0x2eed46));const _0x44c87a={..._0xe6414,..._0x360d0e,'appcode':String(_0x2eed46),...collectWorkspaceProfileOverrides(_0x44b519)};return _0x305161[_0x40f163]=_0x44c87a,_0x812e19['apps']=_0x305161,_0x812e19['defaultApp']=_0x40f163,delete _0x812e19[_0x21eefd(0x1d2)],delete _0x812e19[_0x21eefd(0x1d6)],_0x44c87a[_0x21eefd(0x1c4)]&&(_0x812e19[_0x21eefd(0x1c4)]=_0x44c87a[_0x21eefd(0x1c4)]),writeConfigFile(_0x120dc2,_0x812e19),{'ok':!![],'message':_0x21eefd(0x1bf)+(_0x15f0b2===_0x21eefd(0x1bd)?_0x21eefd(0x1c6):'updated')+':\x20'+_0x40f163+_0x21eefd(0x1eb)+_0x44c87a[_0x21eefd(0x1d2)]+_0x21eefd(0x1d5)+_0x120dc2+_0x21eefd(0x1db),'data':{'operation':_0x21eefd(0x1c0)+_0x15f0b2,'configPath':_0x120dc2,'app':_0x40f163,'appcode':_0x44c87a[_0x21eefd(0x1d2)],'env':_0x44c87a[_0x21eefd(0x1c4)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a143_0x1f5be5(0x1af),'command':a143_0x1f5be5(0x1bd),'description':a143_0x1f5be5(0x1c8),'risk':a143_0x1f5be5(0x1c9),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x2ff5fa=>configureWorkspace(_0x2ff5fa,a143_0x1f5be5(0x1bd))},workspaceUseDefinition={'service':a143_0x1f5be5(0x1af),'command':a143_0x1f5be5(0x1ba),'description':a143_0x1f5be5(0x1d4),'risk':a143_0x1f5be5(0x1c9),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x3cd6e6=>configureWorkspace(_0x3cd6e6,a143_0x1f5be5(0x1ba))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition];export{WORKSPACE_USAGE};
1
+ const a143_0x5974de=a143_0x4532;(function(_0x3dac04,_0x3efe49){const _0x9201f8=a143_0x4532,_0x575d31=_0x3dac04();while(!![]){try{const _0x43b7cc=parseInt(_0x9201f8(0xec))/0x1+-parseInt(_0x9201f8(0xf0))/0x2*(parseInt(_0x9201f8(0xe7))/0x3)+parseInt(_0x9201f8(0x10c))/0x4+parseInt(_0x9201f8(0xe4))/0x5+parseInt(_0x9201f8(0xff))/0x6*(-parseInt(_0x9201f8(0xe5))/0x7)+parseInt(_0x9201f8(0x106))/0x8*(parseInt(_0x9201f8(0xf5))/0x9)+-parseInt(_0x9201f8(0xf7))/0xa;if(_0x43b7cc===_0x3efe49)break;else _0x575d31['push'](_0x575d31['shift']());}catch(_0x239c4c){_0x575d31['push'](_0x575d31['shift']());}}}(a143_0x4e81,0x1beac));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';const WORKSPACE_USAGE=CLI_BIN_NAME+'\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]',SAFE_PROFILE_KEYS=['appcode',a143_0x5974de(0xef),a143_0x5974de(0xe6),a143_0x5974de(0x10f),'pageSize',a143_0x5974de(0xdb),a143_0x5974de(0xf8)],workspaceFlags=[{'name':a143_0x5974de(0xf6),'type':'string','description':'App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace'},{'name':a143_0x5974de(0xe9),'type':a143_0x5974de(0xdf),'description':a143_0x5974de(0xfe)},{'name':a143_0x5974de(0xef),'type':a143_0x5974de(0xdf),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':a143_0x5974de(0xe6),'type':a143_0x5974de(0xdf),'description':a143_0x5974de(0x108)},{'name':a143_0x5974de(0xe3),'type':a143_0x5974de(0xdf),'description':a143_0x5974de(0xdc),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a143_0x5974de(0xf1),'type':'number','description':a143_0x5974de(0x10a)},{'name':a143_0x5974de(0xdb),'type':a143_0x5974de(0xdf),'description':'Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RISK_LEVEL_VALUES]},{'name':a143_0x5974de(0xf8),'type':a143_0x5974de(0xdf),'description':a143_0x5974de(0xfc)}];function isRecord(_0x1e2c31){const _0x5e5d95=a143_0x5974de;return!!_0x1e2c31&&typeof _0x1e2c31===_0x5e5d95(0x105)&&!Array[_0x5e5d95(0xf4)](_0x1e2c31);}function assertValidAppcode(_0x4141cd){const _0x1dba74=a143_0x5974de,{valid:_0x3cbd60,message:_0x5ed84a}=validateAppcode(_0x4141cd);if(!_0x3cbd60)throw CliErrors[_0x1dba74(0xfb)](_0x1dba74(0x104)+_0x4141cd,_0x5ed84a);}function sanitizeProfile(_0x10e08a){if(!isRecord(_0x10e08a))return{};const _0xbaeca9={};for(const _0x3a1058 of SAFE_PROFILE_KEYS){if(_0x10e08a[_0x3a1058]!==undefined)_0xbaeca9[_0x3a1058]=_0x10e08a[_0x3a1058];}return _0xbaeca9;}function cloneProfile(_0xcfc8c4){return isRecord(_0xcfc8c4)?{..._0xcfc8c4}:{};}function collectWorkspaceProfileOverrides(_0x382b0a){const _0x3d1124=a143_0x5974de,_0x3cffc5={},_0x5c0d20=_0x382b0a[_0x3d1124(0x10e)](_0x3d1124(0xef)),_0x8d908=_0x382b0a[_0x3d1124(0x10e)](_0x3d1124(0xe6)),_0x28e7cd=_0x382b0a[_0x3d1124(0x10e)](_0x3d1124(0xe3)),_0xf29f93=_0x382b0a[_0x3d1124(0x103)](_0x3d1124(0xf1)),_0x390b94=_0x382b0a[_0x3d1124(0x10e)](_0x3d1124(0xdb)),_0x36028b=_0x382b0a[_0x3d1124(0x10e)](_0x3d1124(0xf8));if(_0x5c0d20)_0x3cffc5[_0x3d1124(0xef)]=_0x5c0d20;if(_0x8d908)_0x3cffc5[_0x3d1124(0xe6)]=_0x8d908;if(_0x28e7cd)_0x3cffc5['format']=_0x28e7cd;if(_0xf29f93!==undefined&&_0xf29f93!=='')_0x3cffc5[_0x3d1124(0xf1)]=Number(_0xf29f93);if(_0x390b94)_0x3cffc5['riskLevel']=_0x390b94;if(_0x36028b)_0x3cffc5[_0x3d1124(0xf8)]=_0x36028b;return _0x3cffc5;}async function validateWorkspaceArgs(_0x122f55){const _0x5ead08=a143_0x5974de,_0x5802fa=_0x122f55[_0x5ead08(0x10e)](_0x5ead08(0xf6))['trim'](),_0x4cbadc=_0x122f55['str'](_0x5ead08(0xe9))['trim']();if(!_0x5802fa&&!_0x4cbadc)throw CliErrors['validation']('Missing\x20workspace\x20app\x20selector.','Use\x20`'+CLI_BIN_NAME+_0x5ead08(0xfd)+CLI_BIN_NAME+_0x5ead08(0x10b));if(_0x4cbadc)assertValidAppcode(_0x4cbadc);}function resolveKnownApps(){const _0x40fc64=a143_0x5974de,{config:_0x4961f4,layers:_0x21b3a9}=readRawConfigWithLayers(),_0x26c713=isRecord(_0x4961f4[_0x40fc64(0xfa)])?_0x4961f4[_0x40fc64(0xfa)]:{},_0x951e32=isRecord(_0x21b3a9[_0x40fc64(0xdd)][_0x40fc64(0xfa)])?_0x21b3a9[_0x40fc64(0xdd)]['apps']:{};return{..._0x951e32,..._0x26c713};}function a143_0x4532(_0x5ed7f4,_0x54188a){_0x5ed7f4=_0x5ed7f4-0xd8;const _0x4e8197=a143_0x4e81();let _0x453290=_0x4e8197[_0x5ed7f4];return _0x453290;}async function configureWorkspace(_0x11c277,_0x1375c7){const _0x5dd6cb=a143_0x5974de,_0x542900=_0x11c277['str'](_0x5dd6cb(0xf6))['trim'](),_0x23616a=_0x11c277[_0x5dd6cb(0x10e)](_0x5dd6cb(0xe9))[_0x5dd6cb(0xed)](),_0x5b647c=_0x542900||_0x23616a;if(!_0x5b647c)throw CliErrors[_0x5dd6cb(0xfb)](_0x5dd6cb(0xd9),'Use\x20`'+CLI_BIN_NAME+_0x5dd6cb(0xfd)+CLI_BIN_NAME+_0x5dd6cb(0x10b));if(_0x23616a)assertValidAppcode(_0x23616a);const _0x3c3bd9=resolveWriteConfigPath('project'),_0x31270e=readConfigFile(_0x3c3bd9),_0x2325b6=resolveKnownApps(),_0x33b442=isRecord(_0x31270e[_0x5dd6cb(0xfa)])?{..._0x31270e[_0x5dd6cb(0xfa)]}:{},_0x2ce6e7=cloneProfile(_0x33b442[_0x5b647c]),_0x27df65=sanitizeProfile(_0x2325b6[_0x5b647c]),_0xed1fed=_0x23616a?{}:_0x27df65,_0x4f3a50=_0x23616a||_0xed1fed[_0x5dd6cb(0xe9)];if(!_0x4f3a50){const _0x1793ad=Object['keys'](_0x2325b6),_0x4277b6=_0x1793ad[_0x5dd6cb(0xde)]===0x0?_0x5dd6cb(0xd8)+CLI_BIN_NAME+'\x20workspace\x20'+_0x1375c7+_0x5dd6cb(0xf3)+_0x5b647c+_0x5dd6cb(0xeb):_0x5dd6cb(0xe8)+_0x1793ad['join'](',\x20');throw CliErrors[_0x5dd6cb(0xfb)](_0x5dd6cb(0x102)+_0x5b647c+_0x5dd6cb(0xf2),_0x4277b6);}assertValidAppcode(String(_0x4f3a50));const _0x44ab50={..._0xed1fed,..._0x2ce6e7,'appcode':String(_0x4f3a50),...collectWorkspaceProfileOverrides(_0x11c277)};return _0x33b442[_0x5b647c]=_0x44ab50,_0x31270e['apps']=_0x33b442,_0x31270e['defaultApp']=_0x5b647c,delete _0x31270e[_0x5dd6cb(0xe9)],delete _0x31270e[_0x5dd6cb(0xf6)],_0x44ab50[_0x5dd6cb(0xef)]&&(_0x31270e['env']=_0x44ab50['env']),writeConfigFile(_0x3c3bd9,_0x31270e),{'ok':!![],'message':_0x5dd6cb(0x109)+(_0x1375c7===_0x5dd6cb(0x107)?_0x5dd6cb(0xe1):_0x5dd6cb(0x10d))+':\x20'+_0x5b647c+_0x5dd6cb(0x100)+_0x44ab50[_0x5dd6cb(0xe9)]+_0x5dd6cb(0xea)+_0x3c3bd9+_0x5dd6cb(0xee),'data':{'operation':'workspace.'+_0x1375c7,'configPath':_0x3c3bd9,'app':_0x5b647c,'appcode':_0x44ab50[_0x5dd6cb(0xe9)],'env':_0x44ab50[_0x5dd6cb(0xef)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':'workspace','command':a143_0x5974de(0x107),'description':a143_0x5974de(0xda),'risk':a143_0x5974de(0x101),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x49cb74=>configureWorkspace(_0x49cb74,a143_0x5974de(0x107))},workspaceUseDefinition={'service':a143_0x5974de(0xe2),'command':a143_0x5974de(0xf9),'description':a143_0x5974de(0xe0),'risk':a143_0x5974de(0x101),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x1f816f=>configureWorkspace(_0x1f816f,a143_0x5974de(0xf9))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition];function a143_0x4e81(){const _0xfe7438=['object','8fMTcOd','init','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','Workspace\x20','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','\x20workspace\x20use\x20--app\x20<name>`.','874420qxXFOT','updated','str','format','Use\x20`','Missing\x20workspace\x20app\x20selector.','Initialize\x20the\x20current\x20workspace\x20app\x20binding','riskLevel','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','globalConfig','length','string','Switch\x20the\x20current\x20workspace\x20app\x20binding','initialized','workspace','defaultFormat','994570GIjqOd','2023hvxYmu','apiDir','8973pZTwnw','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','appcode',').\x20Config:\x20','\x20--appcode\x20<code>`.','74953CkOOrw','trim','.\x20Credentials:\x20not\x20written.','env','130iqJrCf','pageSize','\x22\x20not\x20found.','\x20--app\x20','isArray','1087200boctkA','app','1348660UHLfTs','locale','use','apps','validation','Locale\x20for\x20this\x20workspace\x20app\x20profile','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','3522PSXTiX','\x20(appcode:\x20','write','App\x20\x22','flag','Invalid\x20appcode:\x20'];a143_0x4e81=function(){return _0xfe7438;};return a143_0x4e81();}export{WORKSPACE_USAGE};
@@ -1 +1 @@
1
- const a144_0x29cc8f=a144_0x1d2e;(function(_0x417e41,_0x5376ce){const _0x265b88=a144_0x1d2e,_0x10704c=_0x417e41();while(!![]){try{const _0x549ba1=-parseInt(_0x265b88(0x6d))/0x1*(-parseInt(_0x265b88(0x83))/0x2)+-parseInt(_0x265b88(0x8a))/0x3*(parseInt(_0x265b88(0x7c))/0x4)+-parseInt(_0x265b88(0x73))/0x5+parseInt(_0x265b88(0x79))/0x6+parseInt(_0x265b88(0x85))/0x7+parseInt(_0x265b88(0x86))/0x8*(parseInt(_0x265b88(0x8d))/0x9)+parseInt(_0x265b88(0x89))/0xa*(-parseInt(_0x265b88(0x8c))/0xb);if(_0x549ba1===_0x5376ce)break;else _0x10704c['push'](_0x10704c['shift']());}catch(_0x220eeb){_0x10704c['push'](_0x10704c['shift']());}}}(a144_0x402a,0x96be7));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=['cookie',a144_0x29cc8f(0x77),a144_0x29cc8f(0x87),a144_0x29cc8f(0x7e),a144_0x29cc8f(0x8f)];function a144_0x1d2e(_0x3a4faf,_0x1ed003){_0x3a4faf=_0x3a4faf-0x6b;const _0x402aa9=a144_0x402a();let _0x1d2ef8=_0x402aa9[_0x3a4faf];return _0x1d2ef8;}export const TOP_LEVEL_CONFIG_KEYS=new Set([a144_0x29cc8f(0x7b),a144_0x29cc8f(0x88),a144_0x29cc8f(0x87),a144_0x29cc8f(0x7e),a144_0x29cc8f(0x75),a144_0x29cc8f(0x77),a144_0x29cc8f(0x8e)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x457765){return[..._0x457765]['join'](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x3abc93){const _0x572da7=a144_0x29cc8f;return TOP_LEVEL_CONFIG_KEYS[_0x572da7(0x81)](_0x3abc93);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a144_0x29cc8f(0x88),'apiDir':a144_0x29cc8f(0x8e),'cookie':a144_0x29cc8f(0x75),'accessKey':a144_0x29cc8f(0x77),'defaultFormat':a144_0x29cc8f(0x7e),'pageSize':'pageSize','riskLevel':a144_0x29cc8f(0x8f),'locale':'locale'};export function getAppProfileFlagDefs(){const _0x1e2c74=a144_0x29cc8f;return[{'name':_0x1e2c74(0x88),'type':_0x1e2c74(0x78),'description':_0x1e2c74(0x76),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':'string','description':'API\x20directory\x20path'},{'name':_0x1e2c74(0x75),'type':_0x1e2c74(0x78),'description':_0x1e2c74(0x6c),'hidden':!![]},{'name':_0x1e2c74(0x77),'type':_0x1e2c74(0x78),'description':_0x1e2c74(0x7f),'hidden':!![]},{'name':_0x1e2c74(0x90),'type':'string','description':_0x1e2c74(0x74),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x1e2c74(0x8b),'type':'number','description':'Default\x20page\x20size'},{'name':'riskLevel','type':_0x1e2c74(0x78),'description':_0x1e2c74(0x80),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x1e2c74(0x78),'description':'Locale'}];}export function collectAppProfileOverrides(_0x33a031){const _0x4db2c4=a144_0x29cc8f,_0x332f69={};for(const [_0x5b726f,_0xf5464c]of Object['entries'](APP_PROFILE_FLAG_KEY_MAP)){const _0x29644=_0x33a031(_0x5b726f);if(!_0x29644)continue;_0x332f69[_0xf5464c]=_0xf5464c===_0x4db2c4(0x8b)?Number(_0x29644):_0x29644;}return _0x332f69;}export function buildAppProfileListFields(_0x31a2ba){const _0x1f48e0=a144_0x29cc8f;return{'env':_0x31a2ba[_0x1f48e0(0x88)]??null,'apiDir':_0x31a2ba['apiDir']??null,'hasCookie':!!_0x31a2ba[_0x1f48e0(0x75)],'hasAccessKey':!!_0x31a2ba[_0x1f48e0(0x77)],'format':_0x31a2ba[_0x1f48e0(0x7e)]??null,'pageSize':_0x31a2ba['pageSize']??null,'riskLevel':_0x31a2ba[_0x1f48e0(0x8f)]??null,'locale':_0x31a2ba['locale']??null};}export function buildAppDoctorFields(_0x228aa8,_0x353015){const _0x1c7647=a144_0x29cc8f;return{'env':{'value':_0x228aa8['env']||_0x353015[_0x1c7647(0x88)],'source':_0x228aa8['env']?_0x1c7647(0x84):'inherit'},'apiDir':{'value':_0x228aa8['apiDir']||_0x353015[_0x1c7647(0x8e)],'source':_0x228aa8['apiDir']?_0x1c7647(0x84):_0x1c7647(0x70)},'cookie':{'value':_0x228aa8[_0x1c7647(0x75)]||_0x353015[_0x1c7647(0x75)],'source':_0x228aa8[_0x1c7647(0x75)]?'app':_0x1c7647(0x70)},'accessKey':{'value':_0x228aa8[_0x1c7647(0x77)]||_0x353015[_0x1c7647(0x77)],'source':_0x228aa8[_0x1c7647(0x77)]?_0x1c7647(0x84):_0x1c7647(0x70)}};}export function buildCanonicalAppConfig(_0x2dfc26,_0x28fddf){const _0x3051cb=a144_0x29cc8f,_0x14ed1c=_0x2dfc26[_0x3051cb(0x82)](_0x3f4946=>String(_0x3f4946||'')['trim']())[_0x3051cb(0x7a)](Boolean);if(_0x14ed1c['length']===0x0)return{};const _0x491cad={};for(const _0x48b648 of _0x14ed1c){_0x491cad[_0x48b648]=_0x28fddf?{'appcode':_0x48b648,'env':_0x28fddf}:{'appcode':_0x48b648};}return{'apps':_0x491cad,'defaultApp':_0x14ed1c[0x0]};}export function buildCanonicalProjectConfig(_0x33734a,_0x176f40){const _0x1cf64a=a144_0x29cc8f,{appCodes:appCodes=[],env:_0xe7a691,metadata:_0x355311}=_0x176f40,_0x3973d1={..._0x33734a,..._0x355311||{}};delete _0x3973d1['appcode'],delete _0x3973d1[_0x1cf64a(0x84)];if(_0xe7a691)_0x3973d1[_0x1cf64a(0x88)]=_0xe7a691;else!_0x3973d1[_0x1cf64a(0x88)]&&(_0x3973d1[_0x1cf64a(0x88)]=DEFAULT_CONFIG_VALUES[_0x1cf64a(0x88)]);const _0x15a995=buildCanonicalAppConfig(appCodes,_0x3973d1['env']);return Object[_0x1cf64a(0x7d)](_0x15a995)[_0x1cf64a(0x6b)]>0x0&&(_0x3973d1[_0x1cf64a(0x6f)]=_0x15a995['apps'],_0x3973d1[_0x1cf64a(0x72)]=_0x15a995['defaultApp']),_0x3973d1;}function a144_0x402a(){const _0xeeda91=['zh-CN','length','Auth\x20cookie','5426lmzVXI','toLowerCase','apps','inherit','en-US','defaultApp','71995qSeXQt','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','cookie','Target\x20environment','accessKey','string','2374770xchtbj','filter','appcode','85868QJOfyL','keys','format','Access\x20key','Risk\x20level','has','map','454DclTwN','app','2507029avXWxZ','1624vljSKh','locale','env','28370dIFfLv','105zjYHSD','pageSize','3685QkToVS','15426jWDkVy','apiDir','riskLevel','defaultFormat'];a144_0x402a=function(){return _0xeeda91;};return a144_0x402a();}const LOCALE_MAP={'zh':a144_0x29cc8f(0x91),'zh-cn':'zh-CN','zh_cn':a144_0x29cc8f(0x91),'en':a144_0x29cc8f(0x71),'en-us':a144_0x29cc8f(0x71),'en_us':a144_0x29cc8f(0x71)};export function normalizeLocale(_0x108640){const _0x3f116f=a144_0x29cc8f;if(!_0x108640)return null;return LOCALE_MAP[_0x108640[_0x3f116f(0x6e)]()]??null;}
1
+ const a144_0x324a72=a144_0x15ac;(function(_0x43d602,_0x5d6298){const _0x23242f=a144_0x15ac,_0x3679db=_0x43d602();while(!![]){try{const _0xaa9ca6=-parseInt(_0x23242f(0x186))/0x1*(-parseInt(_0x23242f(0x185))/0x2)+parseInt(_0x23242f(0x1a4))/0x3*(parseInt(_0x23242f(0x195))/0x4)+-parseInt(_0x23242f(0x1aa))/0x5*(-parseInt(_0x23242f(0x18c))/0x6)+-parseInt(_0x23242f(0x1a7))/0x7+-parseInt(_0x23242f(0x199))/0x8*(-parseInt(_0x23242f(0x193))/0x9)+parseInt(_0x23242f(0x1a9))/0xa+-parseInt(_0x23242f(0x198))/0xb;if(_0xaa9ca6===_0x5d6298)break;else _0x3679db['push'](_0x3679db['shift']());}catch(_0x15c05f){_0x3679db['push'](_0x3679db['shift']());}}}(a144_0x14f9,0x3c8b6));function a144_0x14f9(){const _0x3e299=['riskLevel','Access\x20key','map','defaultApp','apps','57606JoxOQV','filter','number','env','string','inherit','length','1789110YXSWcr','entries','496676pJaSeH','appcode','en-US','7050076XHvXqw','16EuuQmK','accessKey','app','cookie','toLowerCase','apiDir','Target\x20environment','Risk\x20level','Default\x20page\x20size','Auth\x20cookie','zh-CN','3EHZtpa','join','format','3420011oZTubS','locale','3450370zyIQHF','245MSFiNj','pageSize','4uRzSLV','20122dpBdAB'];a144_0x14f9=function(){return _0x3e299;};return a144_0x14f9();}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a144_0x324a72(0x19c),'accessKey',a144_0x324a72(0x1a8),a144_0x324a72(0x1a6),'riskLevel'];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode',a144_0x324a72(0x18f),a144_0x324a72(0x1a8),a144_0x324a72(0x1a6),'cookie',a144_0x324a72(0x19a),a144_0x324a72(0x19e)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x582cb0){const _0x30eb37=a144_0x324a72;return[..._0x582cb0][_0x30eb37(0x1a5)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x32671e){return TOP_LEVEL_CONFIG_KEYS['has'](_0x32671e);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}function a144_0x15ac(_0xa43277,_0x4d24c7){_0xa43277=_0xa43277-0x184;const _0x14f90c=a144_0x14f9();let _0x15ac3d=_0x14f90c[_0xa43277];return _0x15ac3d;}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a144_0x324a72(0x18f),'apiDir':'apiDir','cookie':a144_0x324a72(0x19c),'accessKey':'accessKey','defaultFormat':'format','pageSize':a144_0x324a72(0x184),'riskLevel':'riskLevel','locale':a144_0x324a72(0x1a8)};export function getAppProfileFlagDefs(){const _0x4488e4=a144_0x324a72;return[{'name':_0x4488e4(0x18f),'type':'string','description':_0x4488e4(0x19f),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x4488e4(0x19e),'type':_0x4488e4(0x190),'description':'API\x20directory\x20path'},{'name':_0x4488e4(0x19c),'type':_0x4488e4(0x190),'description':_0x4488e4(0x1a2),'hidden':!![]},{'name':_0x4488e4(0x19a),'type':_0x4488e4(0x190),'description':_0x4488e4(0x188),'hidden':!![]},{'name':'defaultFormat','type':_0x4488e4(0x190),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':_0x4488e4(0x18e),'description':_0x4488e4(0x1a1)},{'name':_0x4488e4(0x187),'type':_0x4488e4(0x190),'description':_0x4488e4(0x1a0),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x4488e4(0x1a8),'type':_0x4488e4(0x190),'description':'Locale'}];}export function collectAppProfileOverrides(_0x4cce0f){const _0x38aed6=a144_0x324a72,_0x239114={};for(const [_0x375099,_0xf1ed4a]of Object[_0x38aed6(0x194)](APP_PROFILE_FLAG_KEY_MAP)){const _0x2384bf=_0x4cce0f(_0x375099);if(!_0x2384bf)continue;_0x239114[_0xf1ed4a]=_0xf1ed4a===_0x38aed6(0x184)?Number(_0x2384bf):_0x2384bf;}return _0x239114;}export function buildAppProfileListFields(_0x275dc3){const _0x1e08f1=a144_0x324a72;return{'env':_0x275dc3['env']??null,'apiDir':_0x275dc3[_0x1e08f1(0x19e)]??null,'hasCookie':!!_0x275dc3['cookie'],'hasAccessKey':!!_0x275dc3['accessKey'],'format':_0x275dc3[_0x1e08f1(0x1a6)]??null,'pageSize':_0x275dc3[_0x1e08f1(0x184)]??null,'riskLevel':_0x275dc3[_0x1e08f1(0x187)]??null,'locale':_0x275dc3[_0x1e08f1(0x1a8)]??null};}export function buildAppDoctorFields(_0x1148ed,_0x1c5792){const _0x482d30=a144_0x324a72;return{'env':{'value':_0x1148ed['env']||_0x1c5792[_0x482d30(0x18f)],'source':_0x1148ed[_0x482d30(0x18f)]?'app':_0x482d30(0x191)},'apiDir':{'value':_0x1148ed[_0x482d30(0x19e)]||_0x1c5792[_0x482d30(0x19e)],'source':_0x1148ed['apiDir']?'app':_0x482d30(0x191)},'cookie':{'value':_0x1148ed[_0x482d30(0x19c)]||_0x1c5792['cookie'],'source':_0x1148ed[_0x482d30(0x19c)]?_0x482d30(0x19b):_0x482d30(0x191)},'accessKey':{'value':_0x1148ed[_0x482d30(0x19a)]||_0x1c5792[_0x482d30(0x19a)],'source':_0x1148ed[_0x482d30(0x19a)]?_0x482d30(0x19b):'inherit'}};}export function buildCanonicalAppConfig(_0x1a0fa4,_0x185c01){const _0x3436f8=a144_0x324a72,_0x1855dc=_0x1a0fa4[_0x3436f8(0x189)](_0x2f321=>String(_0x2f321||'')['trim']())[_0x3436f8(0x18d)](Boolean);if(_0x1855dc['length']===0x0)return{};const _0x317322={};for(const _0xc8ba61 of _0x1855dc){_0x317322[_0xc8ba61]=_0x185c01?{'appcode':_0xc8ba61,'env':_0x185c01}:{'appcode':_0xc8ba61};}return{'apps':_0x317322,'defaultApp':_0x1855dc[0x0]};}export function buildCanonicalProjectConfig(_0x2e628f,_0x1bb3dc){const _0x3436c7=a144_0x324a72,{appCodes:appCodes=[],env:_0x5c0f88,metadata:_0x5f299b}=_0x1bb3dc,_0x2ccd22={..._0x2e628f,..._0x5f299b||{}};delete _0x2ccd22[_0x3436c7(0x196)],delete _0x2ccd22[_0x3436c7(0x19b)];if(_0x5c0f88)_0x2ccd22['env']=_0x5c0f88;else!_0x2ccd22[_0x3436c7(0x18f)]&&(_0x2ccd22['env']=DEFAULT_CONFIG_VALUES[_0x3436c7(0x18f)]);const _0x32f392=buildCanonicalAppConfig(appCodes,_0x2ccd22[_0x3436c7(0x18f)]);return Object['keys'](_0x32f392)[_0x3436c7(0x192)]>0x0&&(_0x2ccd22['apps']=_0x32f392[_0x3436c7(0x18b)],_0x2ccd22[_0x3436c7(0x18a)]=_0x32f392[_0x3436c7(0x18a)]),_0x2ccd22;}const LOCALE_MAP={'zh':a144_0x324a72(0x1a3),'zh-cn':a144_0x324a72(0x1a3),'zh_cn':a144_0x324a72(0x1a3),'en':a144_0x324a72(0x197),'en-us':a144_0x324a72(0x197),'en_us':a144_0x324a72(0x197)};export function normalizeLocale(_0x1e4839){const _0x1f44a6=a144_0x324a72;if(!_0x1e4839)return null;return LOCALE_MAP[_0x1e4839[_0x1f44a6(0x19d)]()]??null;}
@@ -1 +1 @@
1
- (function(_0x3f8c1b,_0x2ee71a){const _0x1650c2=a145_0x7672,_0x168be2=_0x3f8c1b();while(!![]){try{const _0x2aae9b=-parseInt(_0x1650c2(0xdb))/0x1*(parseInt(_0x1650c2(0xdc))/0x2)+parseInt(_0x1650c2(0xd9))/0x3*(parseInt(_0x1650c2(0xd6))/0x4)+parseInt(_0x1650c2(0xe0))/0x5+parseInt(_0x1650c2(0xdd))/0x6*(-parseInt(_0x1650c2(0xda))/0x7)+-parseInt(_0x1650c2(0xdf))/0x8+-parseInt(_0x1650c2(0xd7))/0x9+parseInt(_0x1650c2(0xde))/0xa*(parseInt(_0x1650c2(0xd8))/0xb);if(_0x2aae9b===_0x2ee71a)break;else _0x168be2['push'](_0x168be2['shift']());}catch(_0x10039d){_0x168be2['push'](_0x168be2['shift']());}}}(a145_0x5488,0xd3349));function a145_0x5488(){const _0x465583=['1580kNarkF','5617280bZSUkR','7426650gxkVXr','772oPpzGv','8152128ifcoUx','114301mDdJuj','14253zYPlxm','3074967bKCNPB','253159ipOnlG','2BtJyZT','18kbVlLd'];a145_0x5488=function(){return _0x465583;};return a145_0x5488();}function a145_0x7672(_0x4b24a9,_0x3da710){_0x4b24a9=_0x4b24a9-0xd6;const _0x54885d=a145_0x5488();let _0x7672b8=_0x54885d[_0x4b24a9];return _0x7672b8;}export const CLI_VERSION_POLICY_URL='https://g.lovrabet.com/dist/rabetbase-cli/config/index.json';
1
+ (function(_0xe1284b,_0x31bc14){const _0x5dcf3d=a145_0x53dc,_0x2f553e=_0xe1284b();while(!![]){try{const _0x4d2433=parseInt(_0x5dcf3d(0x1ce))/0x1*(-parseInt(_0x5dcf3d(0x1cc))/0x2)+-parseInt(_0x5dcf3d(0x1cf))/0x3*(parseInt(_0x5dcf3d(0x1cb))/0x4)+-parseInt(_0x5dcf3d(0x1d1))/0x5+parseInt(_0x5dcf3d(0x1d2))/0x6+-parseInt(_0x5dcf3d(0x1d0))/0x7*(parseInt(_0x5dcf3d(0x1d3))/0x8)+-parseInt(_0x5dcf3d(0x1ca))/0x9*(-parseInt(_0x5dcf3d(0x1cd))/0xa)+parseInt(_0x5dcf3d(0x1d4))/0xb;if(_0x4d2433===_0x31bc14)break;else _0x2f553e['push'](_0x2f553e['shift']());}catch(_0x2d3af6){_0x2f553e['push'](_0x2f553e['shift']());}}}(a145_0x10d3,0x2e7aa));function a145_0x53dc(_0x542dbe,_0x19da41){_0x542dbe=_0x542dbe-0x1ca;const _0x10d35b=a145_0x10d3();let _0x53dc55=_0x10d35b[_0x542dbe];return _0x53dc55;}export const CLI_VERSION_POLICY_URL='https://g.lovrabet.com/dist/rabetbase-cli/config/index.json';function a145_0x10d3(){const _0x272db7=['40fPpAJI','99350NmhlzW','2623kqdrhe','831wxMTkX','7217bZAHhv','86010kSzHNN','222918xnHpue','2664FLLpzm','5403398UlnKxX','153TAikBR','1356ieriLy'];a145_0x10d3=function(){return _0x272db7;};return a145_0x10d3();}
@@ -1 +1 @@
1
- const a146_0x144bf2=a146_0x4b5b;(function(_0x69e2e1,_0x2698bf){const _0x5dad7b=a146_0x4b5b,_0x35dd00=_0x69e2e1();while(!![]){try{const _0x4a4ef2=parseInt(_0x5dad7b(0x22a))/0x1*(-parseInt(_0x5dad7b(0x1de))/0x2)+parseInt(_0x5dad7b(0x20a))/0x3+parseInt(_0x5dad7b(0x1e3))/0x4+parseInt(_0x5dad7b(0x1fa))/0x5*(-parseInt(_0x5dad7b(0x209))/0x6)+-parseInt(_0x5dad7b(0x206))/0x7+-parseInt(_0x5dad7b(0x213))/0x8+parseInt(_0x5dad7b(0x204))/0x9;if(_0x4a4ef2===_0x2698bf)break;else _0x35dd00['push'](_0x35dd00['shift']());}catch(_0x128b98){_0x35dd00['push'](_0x35dd00['shift']());}}}(a146_0xb7b8,0xa49a8));export const CLI_BIN_NAME='rabetbase';function a146_0xb7b8(){const _0x19f141=['Schemas','10459448gWGsgr','non-interactive','sql','schemas','Show\x20help','expected-count','Confirm\x20destructive\x20action','help','code','SQL\x20name','Page\x20number','json\x20|\x20pretty\x20|\x20compress','confirm','Preview\x20operation\x20without\x20executing','sqlcode','Page\x20size','Function\x20node','type','Code\x20filter','Dataset\x20code','Use\x20remote','env','pagesize','1uHvOPJ','DB\x20ID','keyword','fromEntries','remote','Config\x20value','Apply\x20to\x20all','@lovrabet/rabetbase-cli','enableBffSave','stdin','boolean','Name','project','operation','Target\x20path','Reveal\x20sensitive\x20value','Output\x20path','target','title','skip-imports','tags','datasetcode','meowKey','fromEnv','Description\x20file','global','File\x20path','description-file','string','params','Description','Use\x20global\x20config\x20scope','descriptionFile','SQL\x20string','1965638ThbEQT','dryRun','key','<code>','reveal','4941356NpsJXd','expectedCount','all','skipImports','<expr>','Skip\x20confirmation\x20for\x20high-risk\x20writes','Tags','value','name','description','Title','Use\x20project\x20config\x20scope','watch','enable-bff-save','functionNode','Rabetbase\x20CLI','clear','page','Clear','format','Skip\x20import\x20generation','yes','<name>','15155qeHIUw','Read\x20value\x20from\x20environment\x20variable','file','verbose','production\x20|\x20daily','output','Output\x20format','Select\x20app\x20profile\x20by\x20name','dry-run','nonInteractive','29505393qUXVRg','app','5293323EgqLsa','Verbose\x20output','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','1968uchPGE','603321CPmNRQ','dbid','Config\x20key','Operation\x20type','Type\x20filter','SQL\x20code','appcode','force'];a146_0xb7b8=function(){return _0x19f141;};return a146_0xb7b8();}export const CLI_DISPLAY_NAME=a146_0x144bf2(0x1f2);export const NPM_PACKAGE_NAME=a146_0x144bf2(0x231);function a146_0x4b5b(_0x4ed5a2,_0x57404f){_0x4ed5a2=_0x4ed5a2-0x1c6;const _0xb7b84=a146_0xb7b8();let _0x4b5bde=_0xb7b84[_0x4ed5a2];return _0x4b5bde;}export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a146_0x144bf2(0x210),'type':a146_0x144bf2(0x1d8),'description':'Override\x20appcode','hint':a146_0x144bf2(0x1e1)},{'name':a146_0x144bf2(0x205),'meowKey':a146_0x144bf2(0x205),'type':a146_0x144bf2(0x1d8),'description':a146_0x144bf2(0x201),'hint':a146_0x144bf2(0x1f9)},{'name':'env','meowKey':a146_0x144bf2(0x228),'type':'string','description':'Environment','hint':a146_0x144bf2(0x1fe)},{'name':a146_0x144bf2(0x1f6),'meowKey':'format','type':a146_0x144bf2(0x1d8),'description':a146_0x144bf2(0x200),'hint':a146_0x144bf2(0x21e)},{'name':'jq','meowKey':'jq','type':a146_0x144bf2(0x1d8),'description':a146_0x144bf2(0x208),'hint':a146_0x144bf2(0x1e7)},{'name':a146_0x144bf2(0x202),'meowKey':a146_0x144bf2(0x1df),'type':a146_0x144bf2(0x1c6),'description':a146_0x144bf2(0x220)},{'name':a146_0x144bf2(0x1f8),'meowKey':a146_0x144bf2(0x1f8),'type':a146_0x144bf2(0x1c6),'description':a146_0x144bf2(0x1e8)},{'name':a146_0x144bf2(0x214),'meowKey':a146_0x144bf2(0x203),'type':a146_0x144bf2(0x1c6),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a146_0x144bf2(0x1d5),'meowKey':a146_0x144bf2(0x1d5),'type':'boolean','description':a146_0x144bf2(0x1db)},{'name':a146_0x144bf2(0x1c8),'meowKey':'project','type':a146_0x144bf2(0x1c6),'description':a146_0x144bf2(0x1ee)},{'name':'ci','meowKey':'ci','type':a146_0x144bf2(0x1c6),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a146_0x144bf2(0x21a),'meowKey':a146_0x144bf2(0x21a),'type':a146_0x144bf2(0x1c6),'description':a146_0x144bf2(0x217)},{'name':a146_0x144bf2(0x1eb),'meowKey':a146_0x144bf2(0x1eb),'type':a146_0x144bf2(0x1d8),'description':a146_0x144bf2(0x1c7),'hidden':!![]},{'name':a146_0x144bf2(0x1ce),'meowKey':a146_0x144bf2(0x1ce),'type':'string','description':a146_0x144bf2(0x1ed),'hidden':!![]},{'name':a146_0x144bf2(0x1f3),'meowKey':a146_0x144bf2(0x1f3),'type':a146_0x144bf2(0x1c6),'description':a146_0x144bf2(0x1f5),'hidden':!![]},{'name':a146_0x144bf2(0x1ef),'meowKey':a146_0x144bf2(0x1ef),'type':'boolean','description':'Watch\x20mode','hidden':!![]},{'name':a146_0x144bf2(0x1ff),'meowKey':a146_0x144bf2(0x1ff),'type':a146_0x144bf2(0x1d8),'description':a146_0x144bf2(0x1cc),'hidden':!![]},{'name':a146_0x144bf2(0x1d9),'meowKey':'params','type':a146_0x144bf2(0x1d8),'description':'JSON\x20params','hidden':!![]},{'name':a146_0x144bf2(0x1d1),'meowKey':a146_0x144bf2(0x1d1),'type':a146_0x144bf2(0x1d8),'description':a146_0x144bf2(0x226),'hidden':!![]},{'name':a146_0x144bf2(0x1e5),'meowKey':a146_0x144bf2(0x1e5),'type':a146_0x144bf2(0x1c6),'description':a146_0x144bf2(0x230),'hidden':!![]},{'name':a146_0x144bf2(0x1f0),'meowKey':a146_0x144bf2(0x232),'type':'boolean','description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a146_0x144bf2(0x1d8),'description':'Record\x20ID','hidden':!![]},{'name':a146_0x144bf2(0x224),'meowKey':'type','type':a146_0x144bf2(0x1d8),'description':a146_0x144bf2(0x20e),'hidden':!![]},{'name':'file','meowKey':a146_0x144bf2(0x1fc),'type':'string','description':a146_0x144bf2(0x1d6),'hidden':!![]},{'name':a146_0x144bf2(0x221),'meowKey':a146_0x144bf2(0x221),'type':'string','description':a146_0x144bf2(0x20f),'hidden':!![]},{'name':'sql-name','meowKey':'sqlName','type':a146_0x144bf2(0x1d8),'description':'SQL\x20name','hidden':!![]},{'name':'sqlname','meowKey':'sqlname','type':a146_0x144bf2(0x1d8),'description':a146_0x144bf2(0x21c),'hidden':!![]},{'name':'db-id','meowKey':'dbId','type':a146_0x144bf2(0x1d8),'description':a146_0x144bf2(0x22b),'hidden':!![]},{'name':'dbid','meowKey':a146_0x144bf2(0x20b),'type':'string','description':a146_0x144bf2(0x22b),'hidden':!![]},{'name':a146_0x144bf2(0x1ec),'meowKey':a146_0x144bf2(0x1ec),'type':a146_0x144bf2(0x1d8),'description':a146_0x144bf2(0x1da),'hidden':!![]},{'name':a146_0x144bf2(0x1d7),'meowKey':a146_0x144bf2(0x1dc),'type':'string','description':a146_0x144bf2(0x1d4),'hidden':!![]},{'name':a146_0x144bf2(0x1f4),'meowKey':'page','type':a146_0x144bf2(0x1d8),'description':a146_0x144bf2(0x21d),'hidden':!![]},{'name':a146_0x144bf2(0x229),'meowKey':a146_0x144bf2(0x229),'type':'string','description':a146_0x144bf2(0x222),'hidden':!![]},{'name':'keyword','meowKey':a146_0x144bf2(0x22c),'type':a146_0x144bf2(0x1d8),'description':'Keyword\x20filter','hidden':!![]},{'name':a146_0x144bf2(0x21b),'meowKey':a146_0x144bf2(0x21b),'type':a146_0x144bf2(0x1d8),'description':a146_0x144bf2(0x225),'hidden':!![]},{'name':a146_0x144bf2(0x215),'meowKey':'sql','type':a146_0x144bf2(0x1d8),'description':a146_0x144bf2(0x1dd),'hidden':!![]},{'name':a146_0x144bf2(0x216),'meowKey':a146_0x144bf2(0x216),'type':a146_0x144bf2(0x1d8),'description':a146_0x144bf2(0x212),'hidden':!![]},{'name':a146_0x144bf2(0x1c9),'meowKey':a146_0x144bf2(0x1c9),'type':'string','description':a146_0x144bf2(0x20d),'hidden':!![]},{'name':a146_0x144bf2(0x1cd),'meowKey':a146_0x144bf2(0x1cd),'type':'string','description':a146_0x144bf2(0x1ca),'hidden':!![]},{'name':a146_0x144bf2(0x1cf),'meowKey':a146_0x144bf2(0x1e6),'type':'boolean','description':a146_0x144bf2(0x1f7),'hidden':!![]},{'name':a146_0x144bf2(0x1e0),'meowKey':a146_0x144bf2(0x1e0),'type':'string','description':a146_0x144bf2(0x20c),'hidden':!![]},{'name':a146_0x144bf2(0x1ea),'meowKey':a146_0x144bf2(0x1ea),'type':'string','description':a146_0x144bf2(0x22f),'hidden':!![]},{'name':a146_0x144bf2(0x1d0),'meowKey':a146_0x144bf2(0x1d0),'type':a146_0x144bf2(0x1d8),'description':a146_0x144bf2(0x1e9),'hidden':!![]},{'name':a146_0x144bf2(0x233),'meowKey':a146_0x144bf2(0x233),'type':a146_0x144bf2(0x1c6),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':'from-env','meowKey':a146_0x144bf2(0x1d3),'type':'string','description':a146_0x144bf2(0x1fb),'hidden':!![]},{'name':a146_0x144bf2(0x1e2),'meowKey':a146_0x144bf2(0x1e2),'type':a146_0x144bf2(0x1c6),'description':a146_0x144bf2(0x1cb),'hidden':!![]},{'name':a146_0x144bf2(0x211),'meowKey':a146_0x144bf2(0x211),'type':a146_0x144bf2(0x1c6),'description':'Force\x20overwrite','hidden':!![]},{'name':a146_0x144bf2(0x21f),'meowKey':a146_0x144bf2(0x21f),'type':a146_0x144bf2(0x1c6),'description':a146_0x144bf2(0x219),'hidden':!![]},{'name':a146_0x144bf2(0x22e),'meowKey':a146_0x144bf2(0x22e),'type':a146_0x144bf2(0x1c6),'description':a146_0x144bf2(0x227),'hidden':!![]},{'name':'verbose','meowKey':a146_0x144bf2(0x1fd),'type':a146_0x144bf2(0x1c6),'description':a146_0x144bf2(0x207),'hidden':!![]},{'name':a146_0x144bf2(0x218),'meowKey':a146_0x144bf2(0x1e4),'type':'string','description':'Expected\x20affected\x20count','hidden':!![]},{'name':'operation-type','meowKey':'operationType','type':a146_0x144bf2(0x1d8),'description':a146_0x144bf2(0x20d),'hidden':!![]},{'name':'function-node','meowKey':a146_0x144bf2(0x1f1),'type':a146_0x144bf2(0x1d8),'description':a146_0x144bf2(0x223),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a146_0x144bf2(0x210),a146_0x144bf2(0x205),'env','format','jq',a146_0x144bf2(0x202),a146_0x144bf2(0x1f8),a146_0x144bf2(0x214),'ci']);export function buildMeowFlags(){const _0x2466d6=a146_0x144bf2;return Object[_0x2466d6(0x22d)](GLOBAL_FLAGS['map'](_0x4c8862=>[_0x4c8862[_0x2466d6(0x1d2)],{'type':_0x4c8862[_0x2466d6(0x224)]}]));}
1
+ const a146_0x490b77=a146_0x1d50;(function(_0x3c929e,_0x5ae70c){const _0x275b9e=a146_0x1d50,_0x6fd348=_0x3c929e();while(!![]){try{const _0x462e8b=parseInt(_0x275b9e(0x1d3))/0x1*(-parseInt(_0x275b9e(0x18f))/0x2)+parseInt(_0x275b9e(0x188))/0x3+parseInt(_0x275b9e(0x1b1))/0x4*(parseInt(_0x275b9e(0x1c2))/0x5)+parseInt(_0x275b9e(0x193))/0x6*(parseInt(_0x275b9e(0x1cb))/0x7)+parseInt(_0x275b9e(0x1ce))/0x8*(-parseInt(_0x275b9e(0x1d2))/0x9)+-parseInt(_0x275b9e(0x1cd))/0xa+parseInt(_0x275b9e(0x1c9))/0xb;if(_0x462e8b===_0x5ae70c)break;else _0x6fd348['push'](_0x6fd348['shift']());}catch(_0xfe5919){_0x6fd348['push'](_0x6fd348['shift']());}}}(a146_0x1ad3,0xeb459));export const CLI_BIN_NAME=a146_0x490b77(0x183);function a146_0x1d50(_0x73fbe6,_0x5d41b8){_0x73fbe6=_0x73fbe6-0x16f;const _0x1ad36d=a146_0x1ad3();let _0x1d50e8=_0x1ad36d[_0x73fbe6];return _0x1d50e8;}function a146_0x1ad3(){const _0x2c7a50=['<expr>','6cXWKlN','Reveal\x20sensitive\x20value','force','operation','code','clear','project','from-env','app','enableBffSave','operation-type','Skip\x20confirmation\x20for\x20high-risk\x20writes','type','Use\x20project\x20config\x20scope','Schemas','verbose','Tags','format','Keyword\x20filter','schemas','non-interactive','confirm','description-file','tags','Clear','DB\x20ID','stdin','Select\x20app\x20profile\x20by\x20name','keyword','Title','20oUrcKd','watch','help','datasetcode','Force\x20non-interactive\x20mode\x20(CI)','remote','db-id','Read\x20value\x20from\x20environment\x20variable','params','page','all','Output\x20path','expected-count','value','SQL\x20string','SQL\x20name','Target\x20path','974935OEOntx','sql','yes','Code\x20filter','appcode','Expected\x20affected\x20count','Verbose\x20output','20534756tiCCZF','file','2783333uendwR','Description\x20file','16007820xCwipn','11920DpUNtn','boolean','json\x20|\x20pretty\x20|\x20compress','Preview\x20operation\x20without\x20executing','5931eveVkt','26591cMjoec','Force\x20overwrite','Page\x20size','dryRun','Environment','pagesize','<name>','output','function-node','JSON\x20params','nonInteractive','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Apply\x20to\x20all','Function\x20node','descriptionFile','Enable\x20BFF\x20save','fromEnv','sqlcode','@lovrabet/rabetbase-cli','target','name','Name','Operation\x20type','Config\x20key','dbid','Output\x20format','Override\x20appcode','skip-imports','Confirm\x20destructive\x20action','global','Show\x20help','skipImports','dbId','description','Use\x20remote','fromEntries','rabetbase','Record\x20ID','expectedCount','Read\x20value\x20from\x20stdin','string','3394008krZbfw','Watch\x20mode','Description','enable-bff-save','Use\x20global\x20config\x20scope','Alias\x20for\x20--non-interactive','sqlname','62KytctE','sql-name','key'];a146_0x1ad3=function(){return _0x2c7a50;};return a146_0x1ad3();}export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME=a146_0x490b77(0x171);export const GLOBAL_FLAGS=[{'name':a146_0x490b77(0x1c6),'meowKey':a146_0x490b77(0x1c6),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x179),'hint':'<code>'},{'name':'app','meowKey':a146_0x490b77(0x19b),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x1ae),'hint':a146_0x490b77(0x1d9)},{'name':'env','meowKey':'env','type':a146_0x490b77(0x187),'description':a146_0x490b77(0x1d7),'hint':'production\x20|\x20daily'},{'name':a146_0x490b77(0x1a4),'meowKey':a146_0x490b77(0x1a4),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x178),'hint':a146_0x490b77(0x1d0)},{'name':'jq','meowKey':'jq','type':a146_0x490b77(0x187),'description':a146_0x490b77(0x1de),'hint':a146_0x490b77(0x192)},{'name':'dry-run','meowKey':a146_0x490b77(0x1d6),'type':a146_0x490b77(0x1cf),'description':a146_0x490b77(0x1d1)},{'name':a146_0x490b77(0x1c4),'meowKey':a146_0x490b77(0x1c4),'type':a146_0x490b77(0x1cf),'description':a146_0x490b77(0x19e)},{'name':a146_0x490b77(0x1a7),'meowKey':a146_0x490b77(0x1dd),'type':'boolean','description':a146_0x490b77(0x1b5)},{'name':'global','meowKey':a146_0x490b77(0x17c),'type':a146_0x490b77(0x1cf),'description':a146_0x490b77(0x18c)},{'name':a146_0x490b77(0x199),'meowKey':a146_0x490b77(0x199),'type':'boolean','description':a146_0x490b77(0x1a0)},{'name':'ci','meowKey':'ci','type':a146_0x490b77(0x1cf),'description':a146_0x490b77(0x18d),'hidden':!![]},{'name':a146_0x490b77(0x1b3),'meowKey':'help','type':a146_0x490b77(0x1cf),'description':a146_0x490b77(0x17d)},{'name':'name','meowKey':a146_0x490b77(0x173),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x174),'hidden':!![]},{'name':'title','meowKey':'title','type':a146_0x490b77(0x187),'description':a146_0x490b77(0x1b0),'hidden':!![]},{'name':a146_0x490b77(0x198),'meowKey':'clear','type':a146_0x490b77(0x1cf),'description':a146_0x490b77(0x1ab),'hidden':!![]},{'name':a146_0x490b77(0x1b2),'meowKey':a146_0x490b77(0x1b2),'type':a146_0x490b77(0x1cf),'description':a146_0x490b77(0x189),'hidden':!![]},{'name':a146_0x490b77(0x1da),'meowKey':a146_0x490b77(0x1da),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x1bc),'hidden':!![]},{'name':a146_0x490b77(0x1b9),'meowKey':a146_0x490b77(0x1b9),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x1dc),'hidden':!![]},{'name':a146_0x490b77(0x1b4),'meowKey':a146_0x490b77(0x1b4),'type':a146_0x490b77(0x187),'description':'Dataset\x20code','hidden':!![]},{'name':a146_0x490b77(0x1bb),'meowKey':a146_0x490b77(0x1bb),'type':a146_0x490b77(0x1cf),'description':a146_0x490b77(0x1df),'hidden':!![]},{'name':a146_0x490b77(0x18b),'meowKey':a146_0x490b77(0x19c),'type':a146_0x490b77(0x1cf),'description':a146_0x490b77(0x1e2),'hidden':!![]},{'name':'id','meowKey':'id','type':a146_0x490b77(0x187),'description':a146_0x490b77(0x184),'hidden':!![]},{'name':a146_0x490b77(0x19f),'meowKey':'type','type':'string','description':'Type\x20filter','hidden':!![]},{'name':a146_0x490b77(0x1ca),'meowKey':a146_0x490b77(0x1ca),'type':a146_0x490b77(0x187),'description':'File\x20path','hidden':!![]},{'name':a146_0x490b77(0x170),'meowKey':a146_0x490b77(0x170),'type':a146_0x490b77(0x187),'description':'SQL\x20code','hidden':!![]},{'name':a146_0x490b77(0x190),'meowKey':'sqlName','type':a146_0x490b77(0x187),'description':'SQL\x20name','hidden':!![]},{'name':a146_0x490b77(0x18e),'meowKey':a146_0x490b77(0x18e),'type':'string','description':a146_0x490b77(0x1c0),'hidden':!![]},{'name':a146_0x490b77(0x1b7),'meowKey':a146_0x490b77(0x17f),'type':a146_0x490b77(0x187),'description':'DB\x20ID','hidden':!![]},{'name':a146_0x490b77(0x177),'meowKey':a146_0x490b77(0x177),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x1ac),'hidden':!![]},{'name':a146_0x490b77(0x180),'meowKey':a146_0x490b77(0x180),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x18a),'hidden':!![]},{'name':a146_0x490b77(0x1a9),'meowKey':a146_0x490b77(0x1e1),'type':'string','description':a146_0x490b77(0x1cc),'hidden':!![]},{'name':a146_0x490b77(0x1ba),'meowKey':'page','type':'string','description':'Page\x20number','hidden':!![]},{'name':a146_0x490b77(0x1d8),'meowKey':a146_0x490b77(0x1d8),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x1d5),'hidden':!![]},{'name':a146_0x490b77(0x1af),'meowKey':a146_0x490b77(0x1af),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x1a5),'hidden':!![]},{'name':'code','meowKey':a146_0x490b77(0x197),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x1c5),'hidden':!![]},{'name':'sql','meowKey':a146_0x490b77(0x1c3),'type':'string','description':a146_0x490b77(0x1bf),'hidden':!![]},{'name':a146_0x490b77(0x1a6),'meowKey':'schemas','type':a146_0x490b77(0x187),'description':a146_0x490b77(0x1a1),'hidden':!![]},{'name':a146_0x490b77(0x196),'meowKey':a146_0x490b77(0x196),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x175),'hidden':!![]},{'name':a146_0x490b77(0x172),'meowKey':a146_0x490b77(0x172),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x1c1),'hidden':!![]},{'name':a146_0x490b77(0x17a),'meowKey':a146_0x490b77(0x17e),'type':a146_0x490b77(0x1cf),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':a146_0x490b77(0x191),'meowKey':a146_0x490b77(0x191),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x176),'hidden':!![]},{'name':a146_0x490b77(0x1be),'meowKey':'value','type':a146_0x490b77(0x187),'description':'Config\x20value','hidden':!![]},{'name':a146_0x490b77(0x1aa),'meowKey':a146_0x490b77(0x1aa),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x1a3),'hidden':!![]},{'name':a146_0x490b77(0x1ad),'meowKey':a146_0x490b77(0x1ad),'type':a146_0x490b77(0x1cf),'description':a146_0x490b77(0x186),'hidden':!![]},{'name':a146_0x490b77(0x19a),'meowKey':a146_0x490b77(0x16f),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x1b8),'hidden':!![]},{'name':'reveal','meowKey':'reveal','type':a146_0x490b77(0x1cf),'description':a146_0x490b77(0x194),'hidden':!![]},{'name':a146_0x490b77(0x195),'meowKey':a146_0x490b77(0x195),'type':'boolean','description':a146_0x490b77(0x1d4),'hidden':!![]},{'name':'confirm','meowKey':a146_0x490b77(0x1a8),'type':a146_0x490b77(0x1cf),'description':a146_0x490b77(0x17b),'hidden':!![]},{'name':a146_0x490b77(0x1b6),'meowKey':a146_0x490b77(0x1b6),'type':'boolean','description':a146_0x490b77(0x181),'hidden':!![]},{'name':a146_0x490b77(0x1a2),'meowKey':a146_0x490b77(0x1a2),'type':'boolean','description':a146_0x490b77(0x1c8),'hidden':!![]},{'name':a146_0x490b77(0x1bd),'meowKey':a146_0x490b77(0x185),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x1c7),'hidden':!![]},{'name':a146_0x490b77(0x19d),'meowKey':'operationType','type':'string','description':a146_0x490b77(0x175),'hidden':!![]},{'name':a146_0x490b77(0x1db),'meowKey':'functionNode','type':a146_0x490b77(0x187),'description':a146_0x490b77(0x1e0),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a146_0x490b77(0x1c6),'app','env',a146_0x490b77(0x1a4),'jq','dry-run',a146_0x490b77(0x1c4),a146_0x490b77(0x1a7),'ci']);export function buildMeowFlags(){const _0x2263eb=a146_0x490b77;return Object[_0x2263eb(0x182)](GLOBAL_FLAGS['map'](_0x27b1f7=>[_0x27b1f7['meowKey'],{'type':_0x27b1f7[_0x2263eb(0x19f)]}]));}
@@ -1 +1 @@
1
- function a147_0x2387(){const _0x175bea=['961820oOsPnb','95845ywLlsA','291EYxuCQ','10436lQtLvV','6sNheIM','en-US','342534HRULcQ','production','781670cjgGCN','1858262ylggFa','high-risk-write','25911zMVPCS','336zgYOFS','compress'];a147_0x2387=function(){return _0x175bea;};return a147_0x2387();}const a147_0x4fb1b0=a147_0xa536;function a147_0xa536(_0x1a4248,_0x593fcb){_0x1a4248=_0x1a4248-0x8a;const _0x238782=a147_0x2387();let _0xa53662=_0x238782[_0x1a4248];return _0xa53662;}(function(_0x243a48,_0x1168c3){const _0x6f6898=a147_0xa536,_0x2a2ea7=_0x243a48();while(!![]){try{const _0x387128=parseInt(_0x6f6898(0x97))/0x1+-parseInt(_0x6f6898(0x8e))/0x2+parseInt(_0x6f6898(0x8a))/0x3*(parseInt(_0x6f6898(0x8b))/0x4)+parseInt(_0x6f6898(0x96))/0x5*(parseInt(_0x6f6898(0x8c))/0x6)+-parseInt(_0x6f6898(0x91))/0x7+parseInt(_0x6f6898(0x94))/0x8*(parseInt(_0x6f6898(0x93))/0x9)+-parseInt(_0x6f6898(0x90))/0xa;if(_0x387128===_0x1168c3)break;else _0x2a2ea7['push'](_0x2a2ea7['shift']());}catch(_0x2d162f){_0x2a2ea7['push'](_0x2a2ea7['shift']());}}}(a147_0x2387,0x23f64));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a147_0x4fb1b0(0x8f),'format':a147_0x4fb1b0(0x95),'locale':a147_0x4fb1b0(0x8d),'riskLevel':a147_0x4fb1b0(0x92),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a147_0x4fb1b0(0x95);
1
+ function a147_0xf909(_0x42c223,_0x1a3f6f){_0x42c223=_0x42c223-0x93;const _0xb7ce55=a147_0xb7ce();let _0xf909a9=_0xb7ce55[_0x42c223];return _0xf909a9;}const a147_0xa81e9=a147_0xf909;(function(_0x5e6d6a,_0x19943b){const _0x35fab7=a147_0xf909,_0x1f0697=_0x5e6d6a();while(!![]){try{const _0x1012b9=-parseInt(_0x35fab7(0x97))/0x1*(-parseInt(_0x35fab7(0xa1))/0x2)+parseInt(_0x35fab7(0x9b))/0x3+-parseInt(_0x35fab7(0x9e))/0x4*(parseInt(_0x35fab7(0x94))/0x5)+-parseInt(_0x35fab7(0x9f))/0x6*(parseInt(_0x35fab7(0x99))/0x7)+parseInt(_0x35fab7(0x9a))/0x8*(parseInt(_0x35fab7(0x9c))/0x9)+-parseInt(_0x35fab7(0x95))/0xa+parseInt(_0x35fab7(0x93))/0xb;if(_0x1012b9===_0x19943b)break;else _0x1f0697['push'](_0x1f0697['shift']());}catch(_0x5cf200){_0x1f0697['push'](_0x1f0697['shift']());}}}(a147_0xb7ce,0xe7303));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a147_0xa81e9(0xa0),'format':a147_0xa81e9(0x98),'locale':a147_0xa81e9(0x96),'riskLevel':a147_0xa81e9(0x9d),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a147_0xa81e9(0x98);function a147_0xb7ce(){const _0x1575c2=['17081130hjaHZh','en-US','967026ECFtiu','compress','4613QbZoDP','16648bxMcAD','3584886yyyYTJ','1602iOtvBn','high-risk-write','5386300vcgqmQ','3594tkUUFL','production','2NpoOPa','20503670btMnKQ','5boOSnG'];a147_0xb7ce=function(){return _0x1575c2;};return a147_0xb7ce();}
@@ -1 +1 @@
1
- const a148_0x319a2c=a148_0xc2e6;(function(_0x585e82,_0x581c2a){const _0x556ca=a148_0xc2e6,_0x2e0bef=_0x585e82();while(!![]){try{const _0x1d190f=-parseInt(_0x556ca(0x1fc))/0x1*(-parseInt(_0x556ca(0x1fa))/0x2)+-parseInt(_0x556ca(0x1f9))/0x3*(-parseInt(_0x556ca(0x1fb))/0x4)+parseInt(_0x556ca(0x1f1))/0x5+-parseInt(_0x556ca(0x1f5))/0x6*(parseInt(_0x556ca(0x1ef))/0x7)+parseInt(_0x556ca(0x1e7))/0x8+parseInt(_0x556ca(0x1ea))/0x9+parseInt(_0x556ca(0x1e9))/0xa*(-parseInt(_0x556ca(0x1f4))/0xb);if(_0x1d190f===_0x581c2a)break;else _0x2e0bef['push'](_0x2e0bef['shift']());}catch(_0x410c72){_0x2e0bef['push'](_0x2e0bef['shift']());}}}(a148_0x39fa,0x79b15));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0xd7f5ba){const _0x4e2eac=a148_0xc2e6;customApiDomain=_0xd7f5ba?.[_0x4e2eac(0x1f6)],customUserDomain=_0xd7f5ba?.[_0x4e2eac(0x1f2)],customRuntimeDomain=_0xd7f5ba?.[_0x4e2eac(0x1f3)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a148_0x319a2c(0x1ec):a148_0x319a2c(0x1f8));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a148_0x319a2c(0x1f7):a148_0x319a2c(0x1ee));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?'https://runtime.lovrabet.com':a148_0x319a2c(0x1eb));export const getAppDomain=()=>isProduction(getEnv())?a148_0x319a2c(0x1e8):a148_0x319a2c(0x1f0);function a148_0xc2e6(_0xcaaee8,_0x3eb717){_0xcaaee8=_0xcaaee8-0x1e6;const _0x39fa1c=a148_0x39fa();let _0xc2e69e=_0x39fa1c[_0xcaaee8];return _0xc2e69e;}function a148_0x39fa(){const _0x56a4df=['3070215BfQcyT','userDomain','runtimeDomain','3381741ZNlvST','608196wVqEuN','apiDomain','https://api.lovrabet.com','https://user-daily.lovrabet.com','3HKqUGi','586748BmrhLh','824276wfQMWq','3Cbqjfe','/app/','2382320wzoSlu','https://app.lovrabet.com','40kJtKSH','4869729aomroN','https://daily-runtime.lovrabet.com','https://user.lovrabet.com','/web-app/app/','https://daily-api.lovrabet.com','56ouBXDY','https://daily.lovrabet.com'];a148_0x39fa=function(){return _0x56a4df;};return a148_0x39fa();}export const getAppBaseUrl=_0xd717e8=>{const _0x567ce7=a148_0x319a2c,_0x49cf85=encodeURIComponent(_0xd717e8['trim']());return isProduction(getEnv())?getAppDomain()+_0x567ce7(0x1e6)+_0x49cf85:getAppDomain()+_0x567ce7(0x1ed)+_0x49cf85;};
1
+ const a148_0x4a7336=a148_0xf4cc;function a148_0x1059(){const _0x4393e8=['https://daily-runtime.lovrabet.com','userDomain','210843YUAltl','/app/','2226880IFywmJ','446388CdGOpA','https://app.lovrabet.com','168744UwoZvh','179135ALsrDz','https://user.lovrabet.com','https://runtime.lovrabet.com','9tmmelI','43896ZduOMU','runtimeDomain','https://api.lovrabet.com','apiDomain','6lVfjcM','/web-app/app/','https://daily.lovrabet.com','9xnqUJc','547323PGtSev'];a148_0x1059=function(){return _0x4393e8;};return a148_0x1059();}(function(_0x29783e,_0x18290d){const _0x4f37bc=a148_0xf4cc,_0x560626=_0x29783e();while(!![]){try{const _0x4f056a=parseInt(_0x4f37bc(0x1e1))/0x1+parseInt(_0x4f37bc(0x1d6))/0x2*(-parseInt(_0x4f37bc(0x1dd))/0x3)+parseInt(_0x4f37bc(0x1e4))/0x4+parseInt(_0x4f37bc(0x1e7))/0x5+-parseInt(_0x4f37bc(0x1da))/0x6*(-parseInt(_0x4f37bc(0x1de))/0x7)+-parseInt(_0x4f37bc(0x1e6))/0x8*(parseInt(_0x4f37bc(0x1d5))/0x9)+-parseInt(_0x4f37bc(0x1e3))/0xa;if(_0x4f056a===_0x18290d)break;else _0x560626['push'](_0x560626['shift']());}catch(_0x2d89f3){_0x560626['push'](_0x560626['shift']());}}}(a148_0x1059,0x1ef6f));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x483c2b){const _0x2e7742=a148_0xf4cc;customApiDomain=_0x483c2b?.[_0x2e7742(0x1d9)],customUserDomain=_0x483c2b?.[_0x2e7742(0x1e0)],customRuntimeDomain=_0x483c2b?.[_0x2e7742(0x1d7)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a148_0x4a7336(0x1e8):'https://user-daily.lovrabet.com');function a148_0xf4cc(_0x4f0d86,_0x4755df){_0x4f0d86=_0x4f0d86-0x1d5;const _0x1059fa=a148_0x1059();let _0xf4cc3a=_0x1059fa[_0x4f0d86];return _0xf4cc3a;}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a148_0x4a7336(0x1d8):'https://daily-api.lovrabet.com');export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a148_0x4a7336(0x1e9):a148_0x4a7336(0x1df));export const getAppDomain=()=>isProduction(getEnv())?a148_0x4a7336(0x1e5):a148_0x4a7336(0x1dc);export const getAppBaseUrl=_0x3779b5=>{const _0x575c4e=a148_0x4a7336,_0x5c0c9f=encodeURIComponent(_0x3779b5['trim']());return isProduction(getEnv())?getAppDomain()+_0x575c4e(0x1e2)+_0x5c0c9f:getAppDomain()+_0x575c4e(0x1db)+_0x5c0c9f;};
@@ -1 +1 @@
1
- const a149_0x5481c3=a149_0x159e;(function(_0xff3845,_0x25736b){const _0x55cbf7=a149_0x159e,_0x3d4dad=_0xff3845();while(!![]){try{const _0x52088c=parseInt(_0x55cbf7(0x13d))/0x1*(-parseInt(_0x55cbf7(0x13e))/0x2)+parseInt(_0x55cbf7(0x137))/0x3*(-parseInt(_0x55cbf7(0x133))/0x4)+-parseInt(_0x55cbf7(0x13c))/0x5+parseInt(_0x55cbf7(0x132))/0x6*(parseInt(_0x55cbf7(0x136))/0x7)+parseInt(_0x55cbf7(0x139))/0x8+-parseInt(_0x55cbf7(0x134))/0x9+parseInt(_0x55cbf7(0x131))/0xa;if(_0x52088c===_0x25736b)break;else _0x3d4dad['push'](_0x3d4dad['shift']());}catch(_0x5391a6){_0x3d4dad['push'](_0x3d4dad['shift']());}}}(a149_0x172d,0x50d00));function a149_0x159e(_0x4c2876,_0x2aa11d){_0x4c2876=_0x4c2876-0x131;const _0x172d9d=a149_0x172d();let _0x159eba=_0x172d9d[_0x4c2876];return _0x159eba;}export const RABETBASE_ENV_VALUES=[a149_0x5481c3(0x13a),'daily'];function a149_0x172d(){const _0x5a8ea=['production','dev','1322470pDgNvn','3827hiuVlG','110qAlsVg','8749930VXvyfn','536358cgCTAu','8JQwqpT','4396842bXlVxw','development','21mdlvzs','61413wYTpPV','daily','1538360bTDhVU'];a149_0x172d=function(){return _0x5a8ea;};return a149_0x172d();}export function normalizeEnv(_0x56ea35){return _0x56ea35==='online'?'production':_0x56ea35;}export function isProduction(_0x34eea4){const _0x229113=a149_0x5481c3;return normalizeEnv(_0x34eea4)===_0x229113(0x13a);}export function isDaily(_0x759021){const _0x25998e=a149_0x5481c3;return normalizeEnv(_0x759021)===_0x25998e(0x138);}export function isDev(_0x39c965){const _0x21a407=a149_0x5481c3,_0x5b8247=normalizeEnv(_0x39c965);return _0x5b8247===_0x21a407(0x135)||_0x5b8247===_0x21a407(0x13b);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a149_0x5481c3(0x13a));export function getEnv(){return env;}export function initEnv(_0x37bcd1){env=normalizeEnv(_0x37bcd1);}
1
+ function a149_0x5b64(_0x2b89a6,_0x1aa20d){_0x2b89a6=_0x2b89a6-0xc3;const _0x5054f0=a149_0x5054();let _0x5b6409=_0x5054f0[_0x2b89a6];return _0x5b6409;}const a149_0x2c400b=a149_0x5b64;(function(_0x171998,_0x55449f){const _0x1bf6ba=a149_0x5b64,_0xb3b0c6=_0x171998();while(!![]){try{const _0x4e318a=-parseInt(_0x1bf6ba(0xc4))/0x1*(parseInt(_0x1bf6ba(0xcf))/0x2)+parseInt(_0x1bf6ba(0xce))/0x3+-parseInt(_0x1bf6ba(0xc7))/0x4*(parseInt(_0x1bf6ba(0xc5))/0x5)+parseInt(_0x1bf6ba(0xc6))/0x6*(-parseInt(_0x1bf6ba(0xd0))/0x7)+parseInt(_0x1bf6ba(0xc9))/0x8+parseInt(_0x1bf6ba(0xcb))/0x9+parseInt(_0x1bf6ba(0xcc))/0xa;if(_0x4e318a===_0x55449f)break;else _0xb3b0c6['push'](_0xb3b0c6['shift']());}catch(_0x3b08ce){_0xb3b0c6['push'](_0xb3b0c6['shift']());}}}(a149_0x5054,0x22b7d));export const RABETBASE_ENV_VALUES=[a149_0x2c400b(0xca),a149_0x2c400b(0xcd)];export function normalizeEnv(_0x1336ac){return _0x1336ac==='online'?'production':_0x1336ac;}export function isProduction(_0x19a957){return normalizeEnv(_0x19a957)==='production';}export function isDaily(_0x28c9d8){return normalizeEnv(_0x28c9d8)==='daily';}function a149_0x5054(){const _0x5bf139=['36238hVumtO','6730YPtHyW','422958mrsXLb','148EuUoMz','development','587712rdiESB','production','293868VxXTFO','3457110AjAUyM','daily','187068slbdQT','10GJJhBD','14wXGtxU','dev'];a149_0x5054=function(){return _0x5bf139;};return a149_0x5054();}export function isDev(_0x446530){const _0xfab599=a149_0x2c400b,_0x2f4249=normalizeEnv(_0x446530);return _0x2f4249===_0xfab599(0xc8)||_0x2f4249===_0xfab599(0xc3);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||'production');export function getEnv(){return env;}export function initEnv(_0x1f145f){env=normalizeEnv(_0x1f145f);}
@@ -1 +1 @@
1
- function a150_0x314e(){const _0x3e3c53=['847176OKJWjS','42ZZwnwC','22482vkAlkS','431356KKqueu','135265JefUQf','163261HFCKUi','8945350BbkWdv','json','19886ReTZrQ','11nFImWF','27Ureabo','13EfzNiX'];a150_0x314e=function(){return _0x3e3c53;};return a150_0x314e();}const a150_0x319279=a150_0xb7d4;function a150_0xb7d4(_0x3725ea,_0x4c5494){_0x3725ea=_0x3725ea-0x178;const _0x314ebe=a150_0x314e();let _0xb7d4d7=_0x314ebe[_0x3725ea];return _0xb7d4d7;}(function(_0x2c5be7,_0x27dd3a){const _0x1981dd=a150_0xb7d4,_0x431423=_0x2c5be7();while(!![]){try{const _0x328442=parseInt(_0x1981dd(0x17a))/0x1*(-parseInt(_0x1981dd(0x183))/0x2)+-parseInt(_0x1981dd(0x17d))/0x3+-parseInt(_0x1981dd(0x17e))/0x4+parseInt(_0x1981dd(0x17f))/0x5+-parseInt(_0x1981dd(0x17c))/0x6*(parseInt(_0x1981dd(0x180))/0x7)+parseInt(_0x1981dd(0x17b))/0x8*(-parseInt(_0x1981dd(0x179))/0x9)+-parseInt(_0x1981dd(0x181))/0xa*(-parseInt(_0x1981dd(0x178))/0xb);if(_0x328442===_0x27dd3a)break;else _0x431423['push'](_0x431423['shift']());}catch(_0x1ad9dd){_0x431423['push'](_0x431423['shift']());}}}(a150_0x314e,0x2fdcc));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a150_0x319279(0x182),'pretty','compress'];
1
+ const a150_0x46317e=a150_0x2d48;function a150_0x3b44(){const _0x217878=['pretty','8206884wKPeFZ','5008biPAeL','6531eustVg','69199UFoyzc','22325350VopGGY','189537Tmtnjb','3688518GaMcfr','compress','1624600hNYAmm','36yvCwVn','16rvauVa'];a150_0x3b44=function(){return _0x217878;};return a150_0x3b44();}(function(_0x589f89,_0x37dacf){const _0x53c87a=a150_0x2d48,_0x4dbf65=_0x589f89();while(!![]){try{const _0x2a85e9=parseInt(_0x53c87a(0x171))/0x1*(-parseInt(_0x53c87a(0x178))/0x2)+parseInt(_0x53c87a(0x173))/0x3*(-parseInt(_0x53c87a(0x177))/0x4)+parseInt(_0x53c87a(0x176))/0x5+-parseInt(_0x53c87a(0x174))/0x6+parseInt(_0x53c87a(0x170))/0x7*(parseInt(_0x53c87a(0x16f))/0x8)+-parseInt(_0x53c87a(0x17a))/0x9+parseInt(_0x53c87a(0x172))/0xa;if(_0x2a85e9===_0x37dacf)break;else _0x4dbf65['push'](_0x4dbf65['shift']());}catch(_0x5637c5){_0x4dbf65['push'](_0x4dbf65['shift']());}}}(a150_0x3b44,0x78489));function a150_0x2d48(_0x28e0e6,_0x2a9336){_0x28e0e6=_0x28e0e6-0x16f;const _0x3b44aa=a150_0x3b44();let _0x2d485d=_0x3b44aa[_0x28e0e6];return _0x2d485d;}export const RABETBASE_OUTPUT_FORMAT_VALUES=['json',a150_0x46317e(0x179),a150_0x46317e(0x175)];
@@ -1 +1 @@
1
- function a151_0x24e5(){const _0x1ddf92=['8OcrRbS','1447260qooYpj','5789781vnHyMd','33gQMByu','14526Yloqrf','1751407WaPNFv','323551NMWOuO','3028314VhBtBt','332600RygJlc'];a151_0x24e5=function(){return _0x1ddf92;};return a151_0x24e5();}(function(_0x3100c6,_0x203aec){const _0x1a178b=a151_0x34a5,_0x297f69=_0x3100c6();while(!![]){try{const _0x389bec=-parseInt(_0x1a178b(0x160))/0x1+-parseInt(_0x1a178b(0x15e))/0x2*(-parseInt(_0x1a178b(0x15d))/0x3)+-parseInt(_0x1a178b(0x162))/0x4+-parseInt(_0x1a178b(0x15b))/0x5+parseInt(_0x1a178b(0x161))/0x6+parseInt(_0x1a178b(0x15f))/0x7*(-parseInt(_0x1a178b(0x15a))/0x8)+parseInt(_0x1a178b(0x15c))/0x9;if(_0x389bec===_0x203aec)break;else _0x297f69['push'](_0x297f69['shift']());}catch(_0x26dedb){_0x297f69['push'](_0x297f69['shift']());}}}(a151_0x24e5,0x44bdf));function a151_0x34a5(_0x26dbfe,_0x150371){_0x26dbfe=_0x26dbfe-0x15a;const _0x24e518=a151_0x24e5();let _0x34a5ce=_0x24e518[_0x26dbfe];return _0x34a5ce;}export const DEFAULT_API_DIR='./src/api';
1
+ const a151_0x2eddaf=a151_0x5dff;function a151_0x5dff(_0x37f25f,_0x365bc4){_0x37f25f=_0x37f25f-0x12a;const _0x42dc01=a151_0x42dc();let _0x5dffb8=_0x42dc01[_0x37f25f];return _0x5dffb8;}(function(_0x49e723,_0x33e7e4){const _0x179044=a151_0x5dff,_0x1f66de=_0x49e723();while(!![]){try{const _0x4ee1b3=-parseInt(_0x179044(0x12e))/0x1+parseInt(_0x179044(0x12c))/0x2*(-parseInt(_0x179044(0x134))/0x3)+-parseInt(_0x179044(0x12b))/0x4+-parseInt(_0x179044(0x130))/0x5*(-parseInt(_0x179044(0x131))/0x6)+parseInt(_0x179044(0x132))/0x7*(-parseInt(_0x179044(0x133))/0x8)+-parseInt(_0x179044(0x12f))/0x9*(-parseInt(_0x179044(0x12d))/0xa)+parseInt(_0x179044(0x135))/0xb;if(_0x4ee1b3===_0x33e7e4)break;else _0x1f66de['push'](_0x1f66de['shift']());}catch(_0x48d777){_0x1f66de['push'](_0x1f66de['shift']());}}}(a151_0x42dc,0x84ad6));export const DEFAULT_API_DIR=a151_0x2eddaf(0x12a);function a151_0x42dc(){const _0x601db2=['1024071xdNmxS','22947826dLwNdt','./src/api','2962508jfJuqy','4oiFJLE','160JZXiYc','422220vwwJds','542871uVScpG','610265vtcIBI','6gHizyl','5490212rJONkq','8mDaZLZ'];a151_0x42dc=function(){return _0x601db2;};return a151_0x42dc();}
@@ -1 +1 @@
1
- function a152_0x1093(_0x27fc31,_0x4f2363){_0x27fc31=_0x27fc31-0x95;const _0x353dd7=a152_0x353d();let _0x10938e=_0x353dd7[_0x27fc31];return _0x10938e;}function a152_0x353d(){const _0x20d5af=['40670NrBbay','5190876GVkYrm','520557dIrheo','14406957uXUtxv','647758tBTAHL','1438443iUbGwj','15sOqNoM','high-risk-write','1229752gaVXqS','328vjbKSe','read'];a152_0x353d=function(){return _0x20d5af;};return a152_0x353d();}const a152_0x54a2e1=a152_0x1093;(function(_0x387c41,_0x4bb16d){const _0x3bb54d=a152_0x1093,_0x722b54=_0x387c41();while(!![]){try{const _0x5b2050=parseInt(_0x3bb54d(0x95))/0x1+-parseInt(_0x3bb54d(0x9f))/0x2+-parseInt(_0x3bb54d(0x9d))/0x3+parseInt(_0x3bb54d(0x98))/0x4*(parseInt(_0x3bb54d(0x96))/0x5)+parseInt(_0x3bb54d(0x9c))/0x6+parseInt(_0x3bb54d(0x9b))/0x7*(-parseInt(_0x3bb54d(0x99))/0x8)+-parseInt(_0x3bb54d(0x9e))/0x9;if(_0x5b2050===_0x4bb16d)break;else _0x722b54['push'](_0x722b54['shift']());}catch(_0x591be8){_0x722b54['push'](_0x722b54['shift']());}}}(a152_0x353d,0xd92b2));export const RISK_LEVEL_VALUES=[a152_0x54a2e1(0x9a),'write',a152_0x54a2e1(0x97)];
1
+ function a152_0x970b(){const _0x12675b=['35oHSRbY','5724231JmmlRU','6580007Yaacju','20470008tpQFDD','917532WYIdhL','high-risk-write','7100788VVZPGi','1286154qrPtYe','1141566dhyYbi','write'];a152_0x970b=function(){return _0x12675b;};return a152_0x970b();}const a152_0x28707e=a152_0x2da7;function a152_0x2da7(_0x1cdb60,_0xdbc4a5){_0x1cdb60=_0x1cdb60-0xbe;const _0x970bc5=a152_0x970b();let _0x2da784=_0x970bc5[_0x1cdb60];return _0x2da784;}(function(_0x3fc2c7,_0x975b24){const _0x56d382=a152_0x2da7,_0x58cdf4=_0x3fc2c7();while(!![]){try{const _0x4a7354=parseInt(_0x56d382(0xc5))/0x1+-parseInt(_0x56d382(0xc2))/0x2+-parseInt(_0x56d382(0xbf))/0x3+parseInt(_0x56d382(0xc4))/0x4+-parseInt(_0x56d382(0xbe))/0x5*(parseInt(_0x56d382(0xc6))/0x6)+-parseInt(_0x56d382(0xc0))/0x7+parseInt(_0x56d382(0xc1))/0x8;if(_0x4a7354===_0x975b24)break;else _0x58cdf4['push'](_0x58cdf4['shift']());}catch(_0x128d23){_0x58cdf4['push'](_0x58cdf4['shift']());}}}(a152_0x970b,0xef9b7));export const RISK_LEVEL_VALUES=['read',a152_0x28707e(0xc7),a152_0x28707e(0xc3)];
@@ -1 +1 @@
1
- (function(_0x1eaf92,_0x4b39da){const _0x565181=a153_0x33a6,_0xb5499b=_0x1eaf92();while(!![]){try{const _0x68c7b5=-parseInt(_0x565181(0x88))/0x1+-parseInt(_0x565181(0x78))/0x2+-parseInt(_0x565181(0x86))/0x3+-parseInt(_0x565181(0x74))/0x4+parseInt(_0x565181(0x8c))/0x5*(-parseInt(_0x565181(0x80))/0x6)+-parseInt(_0x565181(0x91))/0x7+parseInt(_0x565181(0x85))/0x8*(parseInt(_0x565181(0x72))/0x9);if(_0x68c7b5===_0x4b39da)break;else _0xb5499b['push'](_0xb5499b['shift']());}catch(_0x12eb31){_0xb5499b['push'](_0xb5499b['shift']());}}}(a153_0x22fb,0xedc64));function a153_0x33a6(_0x4bbb7e,_0x1999ce){_0x4bbb7e=_0x4bbb7e-0x6d;const _0x22fb44=a153_0x22fb();let _0x33a6f4=_0x22fb44[_0x4bbb7e];return _0x33a6f4;}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x5f5cc8){const _0x352e88=a153_0x33a6;return typeof _0x5f5cc8===_0x352e88(0x7c)&&_0x5f5cc8[_0x352e88(0x89)]()?_0x5f5cc8['trim']():undefined;}function appProfiles(_0x16831c){const _0x34ee78=a153_0x33a6;return _0x16831c['apps']&&typeof _0x16831c['apps']===_0x34ee78(0x8b)?_0x16831c[_0x34ee78(0x90)]:{};}function resolveDefaultAppName(_0x3ef906){const _0x57bdcf=a153_0x33a6,_0x585537=stringConfigValue(_0x3ef906[_0x57bdcf(0x8d)]);if(_0x585537)return _0x585537;return Object[_0x57bdcf(0x73)](appProfiles(_0x3ef906))[0x0];}function resolveTopLevelAppCode(_0x1bda60){const _0x58fa96=a153_0x33a6;return stringConfigValue(_0x1bda60[_0x58fa96(0x6e)])||stringConfigValue(_0x1bda60[_0x58fa96(0x7f)]);}function a153_0x22fb(){const _0x5f2f6e=['string','length','riskLevel','app','15216BKjWUk','locale','FORMAT','VERBOSE','apiDir','6753280tbVEgt','2997069iLxAjc','true','1664500aogSdl','trim','globalConfig','object','1285ZsxSYd','defaultApp','write','cookie','apps','4877558RKTGns','env','read','maxRisk','PAGE_SIZE','ENV','appcode','ACCESS_KEY','format','daily','81ipmJUN','keys','5317592efMdwP','pageSize','accessKey','entries','2564098vhkXMm','COOKIE','production','RISK_LEVEL'];a153_0x22fb=function(){return _0x5f2f6e;};return a153_0x22fb();}export function resolveAppConfig({raw:_0x1a55cb,flags:_0x223b38,layers:_0x4d2029,readEnv:_0x3b4ffb}){const _0x114380=a153_0x33a6,_0x550b32=_0x4d2029?.['projectConfig']??{},_0x49a15b=_0x4d2029?.[_0x114380(0x8a)]??{},_0x290339=Object[_0x114380(0x73)](_0x550b32)[_0x114380(0x7d)]>0x0,_0x5304c1=!_0x290339||_0x550b32['inherit']===!![],_0x460d0d=_0x290339?resolveDefaultAppName(_0x550b32):undefined,_0x1d6c86=_0x5304c1?resolveDefaultAppName(_0x49a15b):undefined,_0x3ad1d9=stringConfigValue(_0x223b38[_0x114380(0x7f)]),_0x396476=_0x3b4ffb('APP'),_0x92c77e={};if(_0x1a55cb[_0x114380(0x90)]&&typeof _0x1a55cb[_0x114380(0x90)]==='object')for(const [_0x2957af,_0x2be5ce]of Object[_0x114380(0x77)](_0x1a55cb[_0x114380(0x90)])){_0x2be5ce&&typeof _0x2be5ce===_0x114380(0x8b)&&_0x2be5ce[_0x114380(0x6e)]&&(_0x92c77e[_0x2957af]=_0x2be5ce);}const _0x8cc316=_0x1a55cb[_0x114380(0x8d)]||undefined,_0x383549=Object[_0x114380(0x73)](_0x92c77e)[_0x114380(0x7d)]>0x0,_0x48eb61=_0x3ad1d9||_0x460d0d||_0x396476||_0x1d6c86||_0x8cc316||undefined,_0x5e112d=stringConfigValue(_0x223b38[_0x114380(0x6e)]),_0x52d11c=_0x5e112d?Object[_0x114380(0x77)](_0x92c77e)['find'](([,_0x3f6dc4])=>_0x3f6dc4?.[_0x114380(0x6e)]===_0x5e112d):undefined,_0x226905=_0x52d11c?.[0x0],_0x235b35=_0x52d11c?.[0x1],_0x57d9fb=_0x5e112d?_0x226905:_0x48eb61;let _0x2ff88b=_0x57d9fb&&_0x92c77e[_0x57d9fb]?_0x92c77e[_0x57d9fb]:undefined;_0x5e112d&&_0x235b35&&(_0x2ff88b=_0x235b35);const _0x127d48=_0x5e112d?_0x235b35??_0x2ff88b:_0x2ff88b,_0xfcda18=!_0x3ad1d9&&!_0x460d0d&&_0x396476&&_0x57d9fb===_0x396476,_0x40893a=_0x3ad1d9||(_0xfcda18?_0x396476:undefined)||(_0x5e112d?_0x226905:undefined),_0x48e8b0=_0x127d48?.[_0x114380(0x6e)],_0x2a1f28=_0x290339?resolveTopLevelAppCode(_0x550b32):undefined,_0x4d1f6a=_0x5304c1?resolveTopLevelAppCode(_0x49a15b):undefined,_0x1fb457=_0x3ad1d9||_0x460d0d?_0x48e8b0:undefined,_0x51915e=!_0x3ad1d9&&!_0x460d0d?_0x48e8b0:undefined,_0x4cc253=_0x5e112d||_0x1fb457||_0x2a1f28||_0x51915e||_0x4d1f6a||undefined,_0xa8122f=_0x290339?stringConfigValue(_0x550b32[_0x114380(0x92)]):undefined,_0x26abb6=_0x5304c1?stringConfigValue(_0x49a15b[_0x114380(0x92)]):undefined,_0x15b25a=_0x223b38[_0x114380(0x92)]||_0x127d48?.['env']||_0xa8122f||_0x3b4ffb(_0x114380(0x6d))||_0x26abb6||_0x1a55cb[_0x114380(0x92)]||DEFAULT_CONFIG_VALUES[_0x114380(0x92)],_0x6dc8ae=_0x127d48?.['locale']||_0x1a55cb[_0x114380(0x81)]||DEFAULT_CONFIG_VALUES[_0x114380(0x81)],_0x63f2d3=_0x3b4ffb(_0x114380(0x79))||_0x127d48?.[_0x114380(0x8f)]||_0x1a55cb[_0x114380(0x8f)]||undefined,_0x1feff0=_0x3b4ffb(_0x114380(0x6f))||_0x127d48?.[_0x114380(0x76)]||_0x1a55cb[_0x114380(0x76)]||undefined,_0x300b7f=_0x223b38[_0x114380(0x70)]||_0x3b4ffb(_0x114380(0x82))||_0x127d48?.['format']||_0x1a55cb['format'],_0x14c40c=normalizeLegacyOutputFormat(_0x300b7f),_0x5601b0=_0x3b4ffb(_0x114380(0x95))||_0x127d48?.[_0x114380(0x75)]||_0x1a55cb['pageSize'],_0x417616=_0x5601b0?Number(_0x5601b0)||undefined:undefined,_0x25be56=_0x3b4ffb(_0x114380(0x7b))||_0x3b4ffb('MAX_RISK')||_0x127d48?.[_0x114380(0x7e)]||_0x1a55cb[_0x114380(0x7e)]||_0x1a55cb[_0x114380(0x94)],_0x309955=_0x25be56===_0x114380(0x93)||_0x25be56===_0x114380(0x8e)?_0x25be56:DEFAULT_CONFIG_VALUES[_0x114380(0x7e)],_0x5f3b80=_0x3b4ffb(_0x114380(0x83)),_0x28ac25=_0x5f3b80==='1'||_0x5f3b80===_0x114380(0x87),_0x19601f=_0x127d48?.[_0x114380(0x84)]||_0x1a55cb['apiDir']||DEFAULT_CONFIG_VALUES[_0x114380(0x84)],_0x4ff97f=isDaily(normalizeEnv(String(_0x15b25a)))?_0x114380(0x71):_0x114380(0x7a);return{'appCode':typeof _0x4cc253===_0x114380(0x7c)&&_0x4cc253[_0x114380(0x89)]()?_0x4cc253[_0x114380(0x89)]():undefined,'env':_0x4ff97f,'locale':_0x6dc8ae,'cookie':_0x63f2d3,'accessKey':_0x1feff0,'format':_0x14c40c,'pageSize':_0x417616,'riskLevel':_0x309955,'verbose':_0x28ac25,'apiDir':_0x19601f,'apps':_0x92c77e,'defaultApp':_0x8cc316,'currentApp':_0x383549?_0x57d9fb:undefined,'explicitAppName':_0x40893a};}
1
+ (function(_0x342d13,_0x467226){const _0x271b23=a153_0x129b,_0x4109ce=_0x342d13();while(!![]){try{const _0x2d1959=parseInt(_0x271b23(0x1f5))/0x1*(-parseInt(_0x271b23(0x204))/0x2)+-parseInt(_0x271b23(0x1e7))/0x3*(-parseInt(_0x271b23(0x1f0))/0x4)+parseInt(_0x271b23(0x1f7))/0x5*(-parseInt(_0x271b23(0x1ff))/0x6)+-parseInt(_0x271b23(0x1ea))/0x7*(parseInt(_0x271b23(0x200))/0x8)+parseInt(_0x271b23(0x20e))/0x9+parseInt(_0x271b23(0x206))/0xa+parseInt(_0x271b23(0x1ef))/0xb;if(_0x2d1959===_0x467226)break;else _0x4109ce['push'](_0x4109ce['shift']());}catch(_0x168e8c){_0x4109ce['push'](_0x4109ce['shift']());}}}(a153_0x42e8,0x788fd));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a153_0x129b(_0x25035a,_0x3d1f41){_0x25035a=_0x25035a-0x1e1;const _0x42e8dc=a153_0x42e8();let _0x129bb8=_0x42e8dc[_0x25035a];return _0x129bb8;}import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x15318c){const _0x2e0492=a153_0x129b;return typeof _0x15318c==='string'&&_0x15318c['trim']()?_0x15318c[_0x2e0492(0x203)]():undefined;}function appProfiles(_0x1b7c0c){const _0x3c7f03=a153_0x129b;return _0x1b7c0c[_0x3c7f03(0x1fa)]&&typeof _0x1b7c0c[_0x3c7f03(0x1fa)]===_0x3c7f03(0x1fc)?_0x1b7c0c[_0x3c7f03(0x1fa)]:{};}function a153_0x42e8(){const _0x3c9635=['PAGE_SIZE','appcode','length','string','globalConfig','ACCESS_KEY','accessKey','5032224BuYdvU','RISK_LEVEL','defaultApp','keys','find','riskLevel','env','3xsRpQN','VERBOSE','cookie','37338XTXXiL','true','pageSize','production','app','2852905AyMAmi','3899252kSbqXy','inherit','MAX_RISK','ENV','locale','10ivQVhQ','daily','220cklKIx','projectConfig','apiDir','apps','FORMAT','object','APP','write','93186sEyCeb','1016XzKTVB','format','entries','trim','134978ZhdLac','read','7361890uCwCCV'];a153_0x42e8=function(){return _0x3c9635;};return a153_0x42e8();}function resolveDefaultAppName(_0x38be4a){const _0x41fa2b=a153_0x129b,_0x4cc04f=stringConfigValue(_0x38be4a[_0x41fa2b(0x1e2)]);if(_0x4cc04f)return _0x4cc04f;return Object[_0x41fa2b(0x1e3)](appProfiles(_0x38be4a))[0x0];}function resolveTopLevelAppCode(_0xed95f3){const _0x2c7a9b=a153_0x129b;return stringConfigValue(_0xed95f3[_0x2c7a9b(0x208)])||stringConfigValue(_0xed95f3[_0x2c7a9b(0x1ee)]);}export function resolveAppConfig({raw:_0x5131e7,flags:_0x572c96,layers:_0x23d3ea,readEnv:_0x1c8a8c}){const _0x30d30e=a153_0x129b,_0x5485a1=_0x23d3ea?.[_0x30d30e(0x1f8)]??{},_0x70ab90=_0x23d3ea?.[_0x30d30e(0x20b)]??{},_0x351990=Object[_0x30d30e(0x1e3)](_0x5485a1)[_0x30d30e(0x209)]>0x0,_0x1df2a4=!_0x351990||_0x5485a1[_0x30d30e(0x1f1)]===!![],_0x418955=_0x351990?resolveDefaultAppName(_0x5485a1):undefined,_0x3b8d99=_0x1df2a4?resolveDefaultAppName(_0x70ab90):undefined,_0x5e5bc4=stringConfigValue(_0x572c96[_0x30d30e(0x1ee)]),_0x5b6182=_0x1c8a8c(_0x30d30e(0x1fd)),_0x3480ca={};if(_0x5131e7[_0x30d30e(0x1fa)]&&typeof _0x5131e7['apps']==='object')for(const [_0x49b314,_0x5af9bd]of Object[_0x30d30e(0x202)](_0x5131e7[_0x30d30e(0x1fa)])){_0x5af9bd&&typeof _0x5af9bd===_0x30d30e(0x1fc)&&_0x5af9bd[_0x30d30e(0x208)]&&(_0x3480ca[_0x49b314]=_0x5af9bd);}const _0xbe9659=_0x5131e7[_0x30d30e(0x1e2)]||undefined,_0x1f4589=Object['keys'](_0x3480ca)[_0x30d30e(0x209)]>0x0,_0x173ec4=_0x5e5bc4||_0x418955||_0x5b6182||_0x3b8d99||_0xbe9659||undefined,_0x5ed281=stringConfigValue(_0x572c96[_0x30d30e(0x208)]),_0x3661ee=_0x5ed281?Object[_0x30d30e(0x202)](_0x3480ca)[_0x30d30e(0x1e4)](([,_0xf6e7d4])=>_0xf6e7d4?.[_0x30d30e(0x208)]===_0x5ed281):undefined,_0x34c920=_0x3661ee?.[0x0],_0x1038a0=_0x3661ee?.[0x1],_0x13a950=_0x5ed281?_0x34c920:_0x173ec4;let _0xedff51=_0x13a950&&_0x3480ca[_0x13a950]?_0x3480ca[_0x13a950]:undefined;_0x5ed281&&_0x1038a0&&(_0xedff51=_0x1038a0);const _0x23d60c=_0x5ed281?_0x1038a0??_0xedff51:_0xedff51,_0x3c682f=!_0x5e5bc4&&!_0x418955&&_0x5b6182&&_0x13a950===_0x5b6182,_0x3cd211=_0x5e5bc4||(_0x3c682f?_0x5b6182:undefined)||(_0x5ed281?_0x34c920:undefined),_0x45f64a=_0x23d60c?.[_0x30d30e(0x208)],_0xa0aab5=_0x351990?resolveTopLevelAppCode(_0x5485a1):undefined,_0x502f03=_0x1df2a4?resolveTopLevelAppCode(_0x70ab90):undefined,_0x3db7a9=_0x5e5bc4||_0x418955?_0x45f64a:undefined,_0x20508d=!_0x5e5bc4&&!_0x418955?_0x45f64a:undefined,_0x4f639b=_0x5ed281||_0x3db7a9||_0xa0aab5||_0x20508d||_0x502f03||undefined,_0x52ade8=_0x351990?stringConfigValue(_0x5485a1[_0x30d30e(0x1e6)]):undefined,_0x2c081d=_0x1df2a4?stringConfigValue(_0x70ab90[_0x30d30e(0x1e6)]):undefined,_0x32239f=_0x572c96[_0x30d30e(0x1e6)]||_0x23d60c?.[_0x30d30e(0x1e6)]||_0x52ade8||_0x1c8a8c(_0x30d30e(0x1f3))||_0x2c081d||_0x5131e7[_0x30d30e(0x1e6)]||DEFAULT_CONFIG_VALUES[_0x30d30e(0x1e6)],_0x3515a2=_0x23d60c?.[_0x30d30e(0x1f4)]||_0x5131e7[_0x30d30e(0x1f4)]||DEFAULT_CONFIG_VALUES[_0x30d30e(0x1f4)],_0xa0c4fc=_0x1c8a8c('COOKIE')||_0x23d60c?.[_0x30d30e(0x1e9)]||_0x5131e7[_0x30d30e(0x1e9)]||undefined,_0x4d511e=_0x1c8a8c(_0x30d30e(0x20c))||_0x23d60c?.[_0x30d30e(0x20d)]||_0x5131e7['accessKey']||undefined,_0x11ea77=_0x572c96[_0x30d30e(0x201)]||_0x1c8a8c(_0x30d30e(0x1fb))||_0x23d60c?.[_0x30d30e(0x201)]||_0x5131e7[_0x30d30e(0x201)],_0x4b92e4=normalizeLegacyOutputFormat(_0x11ea77),_0x28f7c1=_0x1c8a8c(_0x30d30e(0x207))||_0x23d60c?.[_0x30d30e(0x1ec)]||_0x5131e7['pageSize'],_0x2b8d56=_0x28f7c1?Number(_0x28f7c1)||undefined:undefined,_0x561aef=_0x1c8a8c(_0x30d30e(0x1e1))||_0x1c8a8c(_0x30d30e(0x1f2))||_0x23d60c?.[_0x30d30e(0x1e5)]||_0x5131e7['riskLevel']||_0x5131e7['maxRisk'],_0x2f13f9=_0x561aef===_0x30d30e(0x205)||_0x561aef===_0x30d30e(0x1fe)?_0x561aef:DEFAULT_CONFIG_VALUES['riskLevel'],_0x441727=_0x1c8a8c(_0x30d30e(0x1e8)),_0x48b3ce=_0x441727==='1'||_0x441727===_0x30d30e(0x1eb),_0x5d2a17=_0x23d60c?.[_0x30d30e(0x1f9)]||_0x5131e7[_0x30d30e(0x1f9)]||DEFAULT_CONFIG_VALUES['apiDir'],_0x149624=isDaily(normalizeEnv(String(_0x32239f)))?_0x30d30e(0x1f6):_0x30d30e(0x1ed);return{'appCode':typeof _0x4f639b===_0x30d30e(0x20a)&&_0x4f639b[_0x30d30e(0x203)]()?_0x4f639b[_0x30d30e(0x203)]():undefined,'env':_0x149624,'locale':_0x3515a2,'cookie':_0xa0c4fc,'accessKey':_0x4d511e,'format':_0x4b92e4,'pageSize':_0x2b8d56,'riskLevel':_0x2f13f9,'verbose':_0x48b3ce,'apiDir':_0x5d2a17,'apps':_0x3480ca,'defaultApp':_0xbe9659,'currentApp':_0x1f4589?_0x13a950:undefined,'explicitAppName':_0x3cd211};}
@@ -1 +1 @@
1
- (function(_0xaa151d,_0x4ceb72){const _0x4e53b1=a154_0x4121,_0x2b4a6c=_0xaa151d();while(!![]){try{const _0x36cd53=parseInt(_0x4e53b1(0x1ad))/0x1*(parseInt(_0x4e53b1(0x1ac))/0x2)+parseInt(_0x4e53b1(0x1a1))/0x3*(-parseInt(_0x4e53b1(0x1a3))/0x4)+parseInt(_0x4e53b1(0x1a8))/0x5*(-parseInt(_0x4e53b1(0x1ab))/0x6)+-parseInt(_0x4e53b1(0x1a4))/0x7+parseInt(_0x4e53b1(0x1a7))/0x8*(parseInt(_0x4e53b1(0x1a6))/0x9)+-parseInt(_0x4e53b1(0x1a5))/0xa+parseInt(_0x4e53b1(0x1aa))/0xb;if(_0x36cd53===_0x4ceb72)break;else _0x2b4a6c['push'](_0x2b4a6c['shift']());}catch(_0x514b52){_0x2b4a6c['push'](_0x2b4a6c['shift']());}}}(a154_0x12f5,0xe5a9d));import{getIsSessionValid}from'../auth/is-session-valid.js';function a154_0x12f5(){const _0x5cdd91=['882adjvkS','89184hJMIPD','25uQwZKK','authRequired','41837895HaOXzy','619062vULfOz','2ikhavZ','1001333AREJDC','1659IZlbVD','../auth/get-cookie.js','11052NrjrfP','12978105FKUdHD','10587420jxWhuJ'];a154_0x12f5=function(){return _0x5cdd91;};return a154_0x12f5();}import{CliErrors}from'../errors.js';function a154_0x4121(_0x155496,_0xfcf422){_0x155496=_0x155496-0x1a1;const _0x12f520=a154_0x12f5();let _0x4121f5=_0x12f520[_0x155496];return _0x4121f5;}export async function buildAuth(_0x378a97){const _0x8e5e8c=a154_0x4121,{getCookie:_0x38f6da}=await import(_0x8e5e8c(0x1a2)),_0x345820=_0x378a97['cookie']||_0x38f6da(),_0x3f6fbf=_0x345820?await getIsSessionValid():![];return{'cookie':_0x345820,'isLoggedIn':_0x3f6fbf,async 'getOrLogin'(){const _0x1ef6aa=_0x8e5e8c;if(_0x345820&&_0x3f6fbf)return _0x345820;throw CliErrors[_0x1ef6aa(0x1a9)]();}};}
1
+ (function(_0x1dbd96,_0x1074d3){const _0x1cf26b=a154_0x1d05,_0x452cb0=_0x1dbd96();while(!![]){try{const _0x11bdcf=-parseInt(_0x1cf26b(0x1d8))/0x1+parseInt(_0x1cf26b(0x1d0))/0x2+parseInt(_0x1cf26b(0x1d1))/0x3*(-parseInt(_0x1cf26b(0x1cf))/0x4)+parseInt(_0x1cf26b(0x1d3))/0x5*(-parseInt(_0x1cf26b(0x1d6))/0x6)+parseInt(_0x1cf26b(0x1d5))/0x7+-parseInt(_0x1cf26b(0x1d2))/0x8+-parseInt(_0x1cf26b(0x1d4))/0x9*(-parseInt(_0x1cf26b(0x1d7))/0xa);if(_0x11bdcf===_0x1074d3)break;else _0x452cb0['push'](_0x452cb0['shift']());}catch(_0x7da942){_0x452cb0['push'](_0x452cb0['shift']());}}}(a154_0x5155,0x48a38));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a154_0x5155(){const _0x4d9a71=['402272dwAyjK','authRequired','../auth/get-cookie.js','532bjKuIh','148114owUhWX','4701gzPIPt','2564728NBGMhg','568750TvulgV','243OiLNex','3763802sClLhG','6vqtAqc','270670FKBmAH'];a154_0x5155=function(){return _0x4d9a71;};return a154_0x5155();}function a154_0x1d05(_0x5fdc9f,_0x8883c6){_0x5fdc9f=_0x5fdc9f-0x1ce;const _0x515549=a154_0x5155();let _0x1d0548=_0x515549[_0x5fdc9f];return _0x1d0548;}export async function buildAuth(_0x542cd7){const _0xd842f4=a154_0x1d05,{getCookie:_0x5360e9}=await import(_0xd842f4(0x1ce)),_0x2861d8=_0x542cd7['cookie']||_0x5360e9(),_0xf1432=_0x2861d8?await getIsSessionValid():![];return{'cookie':_0x2861d8,'isLoggedIn':_0xf1432,async 'getOrLogin'(){const _0x48f8a1=_0xd842f4;if(_0x2861d8&&_0xf1432)return _0x2861d8;throw CliErrors[_0x48f8a1(0x1d9)]();}};}
@@ -1 +1 @@
1
- const a155_0x1f466b=a155_0x15d2;(function(_0x26b604,_0x3fd252){const _0x3ec529=a155_0x15d2,_0x456294=_0x26b604();while(!![]){try{const _0x2962ac=parseInt(_0x3ec529(0x196))/0x1+-parseInt(_0x3ec529(0x193))/0x2*(parseInt(_0x3ec529(0x180))/0x3)+parseInt(_0x3ec529(0x18a))/0x4*(parseInt(_0x3ec529(0x184))/0x5)+-parseInt(_0x3ec529(0x175))/0x6+parseInt(_0x3ec529(0x198))/0x7+parseInt(_0x3ec529(0x16f))/0x8+-parseInt(_0x3ec529(0x187))/0x9*(-parseInt(_0x3ec529(0x18b))/0xa);if(_0x2962ac===_0x3fd252)break;else _0x456294['push'](_0x456294['shift']());}catch(_0x3bc263){_0x456294['push'](_0x456294['shift']());}}}(a155_0x2068,0xccb91));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a155_0x1f466b(0x189);export const CONFIG_NAMES=[a155_0x1f466b(0x189),'.lovrabet.json',a155_0x1f466b(0x19f)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a155_0x1f466b(0x185)](_0x3b902f=>_0x3b902f!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x1f386e){for(const _0x3fbc78 of CONFIG_NAMES){const _0x254277=resolve(_0x1f386e,_0x3fbc78);if(existsSync(_0x254277))return _0x254277;}return undefined;}function a155_0x15d2(_0x3cb8f4,_0x3fba64){_0x3cb8f4=_0x3cb8f4-0x16e;const _0x206830=a155_0x2068();let _0x15d269=_0x206830[_0x3cb8f4];return _0x15d269;}function a155_0x2068(){const _0x167ede=['silent','pageSize','1082105ynUeVx','filter','status','360fZUARI','message','.rabetbase.json','4mVuNOs','102940iqJPAM','Global','utf8','appcode','project','format','config','.tmp','788638dcBMbs','string','length','297602hlYnkv','accessKey','4520747HzdviF','defaultApp','inherit','Project','error','parse','get','.lovrabetrc','trim','13352352TgpQil','app','warn','data','env','object','4948962UGtVfv','keys','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','locale','migrated','missing','set','cwd','cookie','apiDir','apps','12EDooiW','empty'];a155_0x2068=function(){return _0x167ede;};return a155_0x2068();}export function findProjectRootDirectory(_0x2c8357=process['cwd']()){let _0x4aa1de=resolve(_0x2c8357);const {root:_0x4867bb}=parse(_0x4aa1de),_0x40a92c=homedir();while(!![]){if(resolveConfigPath(_0x4aa1de)){if(_0x4aa1de===_0x40a92c)break;return _0x4aa1de;}if(_0x4aa1de===_0x4867bb||_0x4aa1de===_0x40a92c)break;const _0xd7ba22=dirname(_0x4aa1de);if(_0xd7ba22===_0x4aa1de)break;_0x4aa1de=_0xd7ba22;}return resolve(_0x2c8357);}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x3153c0){const _0x41a8c1=a155_0x1f466b;if(!existsSync(_0x3153c0))return{'status':'missing'};try{const _0x545fc2=readFileSync(_0x3153c0,{'encoding':_0x41a8c1(0x18d)});if(!_0x545fc2?.[_0x41a8c1(0x16e)]())return{'status':_0x41a8c1(0x181)};const _0x32c502=JSON[_0x41a8c1(0x19d)](_0x545fc2);return{'status':'ok','data':_0x32c502};}catch(_0x47387f){return{'status':_0x41a8c1(0x19c),'message':_0x47387f instanceof Error?_0x47387f[_0x41a8c1(0x188)]:String(_0x47387f)};}}function parseCliConfigJsonFile(_0x30fa3c,_0x4dfeeb,_0x425217){const _0x4e1605=a155_0x1f466b,_0xadc96e=inspectCliConfigJsonFile(_0x30fa3c);if(_0xadc96e[_0x4e1605(0x186)]===_0x4e1605(0x17a)||_0xadc96e[_0x4e1605(0x186)]===_0x4e1605(0x181))return{};if(_0xadc96e[_0x4e1605(0x186)]==='ok')return _0xadc96e[_0x4e1605(0x172)];return _0x4dfeeb===_0x4e1605(0x171)&&_0x425217&&console[_0x4e1605(0x19c)](CLI_BIN_NAME+':\x20'+_0x425217+_0x4e1605(0x177)+_0x30fa3c+'\x0a\x20\x20'+_0xadc96e[_0x4e1605(0x188)]),{};}function normalizeLegacyConfigShape(_0x4168b7){const _0x45cb0b=a155_0x1f466b;if(!_0x4168b7||typeof _0x4168b7!==_0x45cb0b(0x174))return{'config':{},'migrated':![]};const _0x3d5630={..._0x4168b7},_0x8776fe=_0x3d5630[_0x45cb0b(0x17f)]&&typeof _0x3d5630[_0x45cb0b(0x17f)]===_0x45cb0b(0x174)?{..._0x3d5630[_0x45cb0b(0x17f)]}:{},_0x39953f=Object[_0x45cb0b(0x176)](_0x8776fe)[_0x45cb0b(0x195)],_0x3edddc=_0x3d5630[_0x45cb0b(0x18e)]||_0x3d5630[_0x45cb0b(0x170)];let _0x22f08e=![];if(_0x3edddc&&_0x39953f===0x0){const _0x4b800a=typeof _0x3d5630[_0x45cb0b(0x199)]===_0x45cb0b(0x194)&&_0x3d5630[_0x45cb0b(0x199)]['trim']()?_0x3d5630[_0x45cb0b(0x199)]:String(_0x3edddc)[_0x45cb0b(0x16e)]();_0x8776fe[_0x4b800a]={'appcode':String(_0x3edddc)[_0x45cb0b(0x16e)](),..._0x3d5630[_0x45cb0b(0x173)]!=null?{'env':_0x3d5630[_0x45cb0b(0x173)]}:{},..._0x3d5630[_0x45cb0b(0x17e)]!=null?{'apiDir':_0x3d5630['apiDir']}:{},..._0x3d5630[_0x45cb0b(0x17d)]!=null?{'cookie':_0x3d5630['cookie']}:{},..._0x3d5630[_0x45cb0b(0x197)]!=null?{'accessKey':_0x3d5630[_0x45cb0b(0x197)]}:{},..._0x3d5630[_0x45cb0b(0x190)]!=null?{'format':_0x3d5630[_0x45cb0b(0x190)]}:{},..._0x3d5630[_0x45cb0b(0x183)]!=null?{'pageSize':_0x3d5630['pageSize']}:{},..._0x3d5630['riskLevel']!=null?{'riskLevel':_0x3d5630['riskLevel']}:{},..._0x3d5630[_0x45cb0b(0x178)]!=null?{'locale':_0x3d5630[_0x45cb0b(0x178)]}:{}},_0x3d5630[_0x45cb0b(0x17f)]=_0x8776fe;if(!_0x3d5630[_0x45cb0b(0x199)])_0x3d5630[_0x45cb0b(0x199)]=_0x4b800a;_0x22f08e=!![];}return(_0x45cb0b(0x18e)in _0x3d5630||_0x45cb0b(0x170)in _0x3d5630)&&(delete _0x3d5630[_0x45cb0b(0x18e)],delete _0x3d5630['app'],_0x22f08e=!![]),{'config':_0x3d5630,'migrated':_0x22f08e};}function writeNormalizedConfigIfNeeded(_0x970202,_0x2961b5){const _0x321fbe=a155_0x1f466b,_0x1fccdf=JSON['stringify'](_0x2961b5,null,0x2)+'\x0a';if(normalizedWriteCache[_0x321fbe(0x19e)](_0x970202)===_0x1fccdf)return;writeConfigFile(_0x970202,_0x2961b5),normalizedWriteCache[_0x321fbe(0x17b)](_0x970202,_0x1fccdf);}function parseAndNormalizeConfig(_0xfaad51,_0x5ea551,_0x4ad00a){const _0x445804=a155_0x1f466b,_0x2e0596=parseCliConfigJsonFile(_0xfaad51,_0x5ea551,_0x4ad00a),_0x4fbe7d=normalizeLegacyConfigShape(_0x2e0596);if(_0x4fbe7d[_0x445804(0x179)])try{writeNormalizedConfigIfNeeded(_0xfaad51,_0x4fbe7d[_0x445804(0x191)]);}catch{}return _0x4fbe7d[_0x445804(0x191)];}export function loadRawConfigLayers(_0x41ce28){const _0x4ef5fa=a155_0x1f466b;let _0x2fea65={},_0x4a690a={};const _0x26e188=resolveConfigPath(homedir());_0x26e188&&(_0x2fea65=parseAndNormalizeConfig(_0x26e188,'warn',_0x4ef5fa(0x18c)));const _0x528de8=_0x41ce28??findProjectRootDirectory(),_0x339448=resolveConfigPath(_0x528de8);return _0x339448&&(_0x4a690a=parseAndNormalizeConfig(_0x339448,'warn',_0x4ef5fa(0x19b))),{'globalPath':_0x26e188,'projectPath':_0x339448,'globalConfig':_0x2fea65,'projectConfig':_0x4a690a};}const INHERIT_WHITELIST=[a155_0x1f466b(0x17d),a155_0x1f466b(0x197),a155_0x1f466b(0x178),a155_0x1f466b(0x190),'riskLevel','pageSize'];export function mergeRawConfigLayers(_0x4243a3){const _0x4bf08f=a155_0x1f466b,{globalConfig:_0x43b76b,projectConfig:_0x5d9469}=_0x4243a3,_0x3a0a84=Object[_0x4bf08f(0x176)](_0x5d9469)[_0x4bf08f(0x195)]>0x0;if(!_0x3a0a84)return mergeGlobalOnly(_0x43b76b);if(_0x5d9469['inherit']===!![])return mergeFullInherit(_0x43b76b,_0x5d9469);if(_0x5d9469[_0x4bf08f(0x19a)]===![])return mergeIsolated(_0x5d9469);return mergeProjectFirst(_0x43b76b,_0x5d9469);}function mergeGlobalOnly(_0x258a60){const _0x2ea56f=a155_0x1f466b,_0x1b5ee9={..._0x258a60},_0x3a9761=_0x258a60[_0x2ea56f(0x17f)]&&typeof _0x258a60[_0x2ea56f(0x17f)]===_0x2ea56f(0x174)?_0x258a60[_0x2ea56f(0x17f)]:{};if(Object[_0x2ea56f(0x176)](_0x3a9761)[_0x2ea56f(0x195)]>0x0)_0x1b5ee9[_0x2ea56f(0x17f)]=_0x3a9761;if(_0x258a60[_0x2ea56f(0x199)])_0x1b5ee9[_0x2ea56f(0x199)]=_0x258a60['defaultApp'];else{const _0x24cf8f=Object['keys'](_0x3a9761);if(_0x24cf8f[_0x2ea56f(0x195)]>0x0)_0x1b5ee9[_0x2ea56f(0x199)]=_0x24cf8f[0x0];}return _0x1b5ee9;}function mergeIsolated(_0x4983e6){const _0x5c1fa7=a155_0x1f466b,_0x57f5d7={..._0x4983e6};delete _0x57f5d7[_0x5c1fa7(0x19a)];const _0x51b5d7=_0x4983e6[_0x5c1fa7(0x17f)]&&typeof _0x4983e6[_0x5c1fa7(0x17f)]===_0x5c1fa7(0x174)?_0x4983e6[_0x5c1fa7(0x17f)]:{};Object[_0x5c1fa7(0x176)](_0x51b5d7)['length']>0x0?_0x57f5d7[_0x5c1fa7(0x17f)]=_0x51b5d7:delete _0x57f5d7['apps'];if(_0x5c1fa7(0x199)in _0x4983e6)_0x57f5d7[_0x5c1fa7(0x199)]=_0x4983e6[_0x5c1fa7(0x199)];else Object['keys'](_0x51b5d7)[_0x5c1fa7(0x195)]>0x0?_0x57f5d7[_0x5c1fa7(0x199)]=Object['keys'](_0x51b5d7)[0x0]:delete _0x57f5d7[_0x5c1fa7(0x199)];return _0x57f5d7;}function mergeProjectFirst(_0x3c6dcb,_0x2c261f){const _0x3edb3d=a155_0x1f466b,_0x148135={..._0x2c261f};delete _0x148135[_0x3edb3d(0x19a)];for(const _0xca8520 of INHERIT_WHITELIST){!(_0xca8520 in _0x148135)&&_0xca8520 in _0x3c6dcb&&(_0x148135[_0xca8520]=_0x3c6dcb[_0xca8520]);}const _0x2aa853=_0x2c261f[_0x3edb3d(0x17f)]&&typeof _0x2c261f['apps']==='object'?_0x2c261f[_0x3edb3d(0x17f)]:{};Object[_0x3edb3d(0x176)](_0x2aa853)[_0x3edb3d(0x195)]>0x0?_0x148135[_0x3edb3d(0x17f)]=_0x2aa853:delete _0x148135[_0x3edb3d(0x17f)];if(_0x3edb3d(0x199)in _0x2c261f)_0x148135['defaultApp']=_0x2c261f[_0x3edb3d(0x199)];else Object[_0x3edb3d(0x176)](_0x2aa853)[_0x3edb3d(0x195)]>0x0?_0x148135[_0x3edb3d(0x199)]=Object['keys'](_0x2aa853)[0x0]:delete _0x148135['defaultApp'];return _0x148135;}function mergeFullInherit(_0x4c7324,_0x1c47ed){const _0x125075=a155_0x1f466b,_0x1d93fb=_0x4c7324['apps']&&typeof _0x4c7324[_0x125075(0x17f)]===_0x125075(0x174)?_0x4c7324[_0x125075(0x17f)]:{},_0x5d879a=_0x1c47ed[_0x125075(0x17f)]&&typeof _0x1c47ed[_0x125075(0x17f)]===_0x125075(0x174)?_0x1c47ed[_0x125075(0x17f)]:{},_0x46671e={..._0x1d93fb,..._0x5d879a},_0x2d6d8a={..._0x4c7324,..._0x1c47ed};delete _0x2d6d8a[_0x125075(0x19a)];if(Object[_0x125075(0x176)](_0x46671e)[_0x125075(0x195)]>0x0)_0x2d6d8a['apps']=_0x46671e;if(_0x125075(0x199)in _0x1c47ed)_0x2d6d8a[_0x125075(0x199)]=_0x1c47ed[_0x125075(0x199)];else{if(Object[_0x125075(0x176)](_0x5d879a)['length']>0x0)_0x2d6d8a[_0x125075(0x199)]=Object[_0x125075(0x176)](_0x5d879a)[0x0];else{if(_0x4c7324[_0x125075(0x199)])_0x2d6d8a[_0x125075(0x199)]=_0x4c7324['defaultApp'];else{const _0x32f591=Object[_0x125075(0x176)](_0x1d93fb);if(_0x32f591[_0x125075(0x195)]>0x0)_0x2d6d8a[_0x125075(0x199)]=_0x32f591[0x0];}}}return _0x2d6d8a;}export function readRawConfigWithLayers(_0x48aedf){const _0x5dc4b5=loadRawConfigLayers(_0x48aedf);return{'config':mergeRawConfigLayers(_0x5dc4b5),'layers':_0x5dc4b5};}export function readRawConfig(_0x4f1053){return mergeRawConfigLayers(loadRawConfigLayers(_0x4f1053));}export function readConfigFile(_0x3120c8){const _0x3708cd=a155_0x1f466b;return parseAndNormalizeConfig(_0x3120c8,_0x3708cd(0x182));}export function writeConfigFile(_0x530850,_0x32685c){const _0x564a41=a155_0x1f466b,_0x4d0157=dirname(_0x530850);!existsSync(_0x4d0157)&&mkdirSync(_0x4d0157,{'recursive':!![]});const _0x39b527=_0x530850+_0x564a41(0x192);try{writeFileSync(_0x39b527,JSON['stringify'](_0x32685c,null,0x2)+'\x0a',{'encoding':_0x564a41(0x18d),'mode':0x180}),renameSync(_0x39b527,_0x530850);}catch(_0x2e21c5){try{unlinkSync(_0x39b527);}catch{}throw _0x2e21c5;}}export function resolveWriteConfigPath(_0x225015){const _0x27803a=a155_0x1f466b,_0x4a0c00=_0x225015===_0x27803a(0x18f)?process[_0x27803a(0x17c)]():homedir(),_0x2a412e=resolveConfigPath(_0x4a0c00);return _0x2a412e??resolve(_0x4a0c00,NEW_CONFIG_NAME);}
1
+ const a155_0x4f189b=a155_0x2ae9;(function(_0x1bf0ed,_0x51be4c){const _0xbb55e=a155_0x2ae9,_0x4fc153=_0x1bf0ed();while(!![]){try{const _0x27cff7=parseInt(_0xbb55e(0x143))/0x1*(parseInt(_0xbb55e(0x14e))/0x2)+-parseInt(_0xbb55e(0x15b))/0x3+-parseInt(_0xbb55e(0x152))/0x4*(-parseInt(_0xbb55e(0x14f))/0x5)+-parseInt(_0xbb55e(0x154))/0x6*(-parseInt(_0xbb55e(0x12e))/0x7)+parseInt(_0xbb55e(0x13e))/0x8*(-parseInt(_0xbb55e(0x132))/0x9)+parseInt(_0xbb55e(0x145))/0xa+-parseInt(_0xbb55e(0x13d))/0xb;if(_0x27cff7===_0x51be4c)break;else _0x4fc153['push'](_0x4fc153['shift']());}catch(_0x1700bb){_0x4fc153['push'](_0x4fc153['shift']());}}}(a155_0x2a5f,0x6bc2c));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a155_0x4f189b(0x146);export const CONFIG_NAMES=[a155_0x4f189b(0x146),a155_0x4f189b(0x141),'.lovrabetrc'];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a155_0x4f189b(0x12c)](_0x45825b=>_0x45825b!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x9653f4){for(const _0x326f8c of CONFIG_NAMES){const _0x4082c5=resolve(_0x9653f4,_0x326f8c);if(existsSync(_0x4082c5))return _0x4082c5;}return undefined;}export function findProjectRootDirectory(_0x1e68e5=process[a155_0x4f189b(0x142)]()){let _0x5c3a97=resolve(_0x1e68e5);const {root:_0x531da0}=parse(_0x5c3a97),_0x45369b=homedir();while(!![]){if(resolveConfigPath(_0x5c3a97)){if(_0x5c3a97===_0x45369b)break;return _0x5c3a97;}if(_0x5c3a97===_0x531da0||_0x5c3a97===_0x45369b)break;const _0x42c0b9=dirname(_0x5c3a97);if(_0x42c0b9===_0x5c3a97)break;_0x5c3a97=_0x42c0b9;}return resolve(_0x1e68e5);}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x2e2a38){const _0x5b7e3d=a155_0x4f189b;if(!existsSync(_0x2e2a38))return{'status':'missing'};try{const _0x551113=readFileSync(_0x2e2a38,{'encoding':_0x5b7e3d(0x150)});if(!_0x551113?.[_0x5b7e3d(0x158)]())return{'status':'empty'};const _0x24a886=JSON[_0x5b7e3d(0x13a)](_0x551113);return{'status':'ok','data':_0x24a886};}catch(_0x2dfef1){return{'status':_0x5b7e3d(0x153),'message':_0x2dfef1 instanceof Error?_0x2dfef1['message']:String(_0x2dfef1)};}}function parseCliConfigJsonFile(_0x15b4b4,_0x36323b,_0x20480d){const _0x53559b=a155_0x4f189b,_0x1bf009=inspectCliConfigJsonFile(_0x15b4b4);if(_0x1bf009['status']===_0x53559b(0x14b)||_0x1bf009[_0x53559b(0x14a)]===_0x53559b(0x13c))return{};if(_0x1bf009[_0x53559b(0x14a)]==='ok')return _0x1bf009[_0x53559b(0x149)];return _0x36323b===_0x53559b(0x140)&&_0x20480d&&console[_0x53559b(0x153)](CLI_BIN_NAME+':\x20'+_0x20480d+_0x53559b(0x144)+_0x15b4b4+'\x0a\x20\x20'+_0x1bf009[_0x53559b(0x12a)]),{};}function normalizeLegacyConfigShape(_0x3b259a){const _0x3e3e35=a155_0x4f189b;if(!_0x3b259a||typeof _0x3b259a!==_0x3e3e35(0x135))return{'config':{},'migrated':![]};const _0x12a97a={..._0x3b259a},_0x15ea57=_0x12a97a['apps']&&typeof _0x12a97a[_0x3e3e35(0x13b)]===_0x3e3e35(0x135)?{..._0x12a97a[_0x3e3e35(0x13b)]}:{},_0x51e7b5=Object[_0x3e3e35(0x137)](_0x15ea57)['length'],_0x3e890d=_0x12a97a['appcode']||_0x12a97a[_0x3e3e35(0x12b)];let _0x3e7668=![];if(_0x3e890d&&_0x51e7b5===0x0){const _0x569b15=typeof _0x12a97a['defaultApp']===_0x3e3e35(0x12f)&&_0x12a97a[_0x3e3e35(0x15a)][_0x3e3e35(0x158)]()?_0x12a97a['defaultApp']:String(_0x3e890d)[_0x3e3e35(0x158)]();_0x15ea57[_0x569b15]={'appcode':String(_0x3e890d)[_0x3e3e35(0x158)](),..._0x12a97a[_0x3e3e35(0x151)]!=null?{'env':_0x12a97a['env']}:{},..._0x12a97a['apiDir']!=null?{'apiDir':_0x12a97a['apiDir']}:{},..._0x12a97a['cookie']!=null?{'cookie':_0x12a97a[_0x3e3e35(0x14c)]}:{},..._0x12a97a[_0x3e3e35(0x133)]!=null?{'accessKey':_0x12a97a[_0x3e3e35(0x133)]}:{},..._0x12a97a[_0x3e3e35(0x14d)]!=null?{'format':_0x12a97a[_0x3e3e35(0x14d)]}:{},..._0x12a97a[_0x3e3e35(0x148)]!=null?{'pageSize':_0x12a97a[_0x3e3e35(0x148)]}:{},..._0x12a97a[_0x3e3e35(0x13f)]!=null?{'riskLevel':_0x12a97a[_0x3e3e35(0x13f)]}:{},..._0x12a97a[_0x3e3e35(0x131)]!=null?{'locale':_0x12a97a[_0x3e3e35(0x131)]}:{}},_0x12a97a[_0x3e3e35(0x13b)]=_0x15ea57;if(!_0x12a97a['defaultApp'])_0x12a97a[_0x3e3e35(0x15a)]=_0x569b15;_0x3e7668=!![];}return('appcode'in _0x12a97a||'app'in _0x12a97a)&&(delete _0x12a97a[_0x3e3e35(0x156)],delete _0x12a97a[_0x3e3e35(0x12b)],_0x3e7668=!![]),{'config':_0x12a97a,'migrated':_0x3e7668};}function writeNormalizedConfigIfNeeded(_0x3ebd2c,_0x397b13){const _0x1d4108=a155_0x4f189b,_0xd1b14d=JSON[_0x1d4108(0x136)](_0x397b13,null,0x2)+'\x0a';if(normalizedWriteCache[_0x1d4108(0x157)](_0x3ebd2c)===_0xd1b14d)return;writeConfigFile(_0x3ebd2c,_0x397b13),normalizedWriteCache[_0x1d4108(0x147)](_0x3ebd2c,_0xd1b14d);}function parseAndNormalizeConfig(_0x51f361,_0xfb1c5d,_0x4417ec){const _0x18391e=a155_0x4f189b,_0xe531df=parseCliConfigJsonFile(_0x51f361,_0xfb1c5d,_0x4417ec),_0x5c4882=normalizeLegacyConfigShape(_0xe531df);if(_0x5c4882[_0x18391e(0x134)])try{writeNormalizedConfigIfNeeded(_0x51f361,_0x5c4882['config']);}catch{}return _0x5c4882[_0x18391e(0x159)];}export function loadRawConfigLayers(_0x38a673){const _0x441984=a155_0x4f189b;let _0x5e2c4f={},_0x3e2086={};const _0x3c84de=resolveConfigPath(homedir());_0x3c84de&&(_0x5e2c4f=parseAndNormalizeConfig(_0x3c84de,'warn','Global'));const _0x5c480b=_0x38a673??findProjectRootDirectory(),_0x5807ec=resolveConfigPath(_0x5c480b);return _0x5807ec&&(_0x3e2086=parseAndNormalizeConfig(_0x5807ec,_0x441984(0x140),_0x441984(0x155))),{'globalPath':_0x3c84de,'projectPath':_0x5807ec,'globalConfig':_0x5e2c4f,'projectConfig':_0x3e2086};}const INHERIT_WHITELIST=[a155_0x4f189b(0x14c),'accessKey','locale','format',a155_0x4f189b(0x13f),'pageSize'];function a155_0x2ae9(_0x10a307,_0x119846){_0x10a307=_0x10a307-0x12a;const _0x2a5fc1=a155_0x2a5f();let _0x2ae9c9=_0x2a5fc1[_0x10a307];return _0x2ae9c9;}export function mergeRawConfigLayers(_0xeec28a){const _0x24107d=a155_0x4f189b,{globalConfig:_0x4b8db0,projectConfig:_0x5669fa}=_0xeec28a,_0x32f3e7=Object[_0x24107d(0x137)](_0x5669fa)[_0x24107d(0x130)]>0x0;if(!_0x32f3e7)return mergeGlobalOnly(_0x4b8db0);if(_0x5669fa['inherit']===!![])return mergeFullInherit(_0x4b8db0,_0x5669fa);if(_0x5669fa[_0x24107d(0x12d)]===![])return mergeIsolated(_0x5669fa);return mergeProjectFirst(_0x4b8db0,_0x5669fa);}function mergeGlobalOnly(_0x111f6){const _0x2a392d=a155_0x4f189b,_0x433147={..._0x111f6},_0x43aab9=_0x111f6[_0x2a392d(0x13b)]&&typeof _0x111f6[_0x2a392d(0x13b)]===_0x2a392d(0x135)?_0x111f6['apps']:{};if(Object[_0x2a392d(0x137)](_0x43aab9)['length']>0x0)_0x433147['apps']=_0x43aab9;if(_0x111f6[_0x2a392d(0x15a)])_0x433147[_0x2a392d(0x15a)]=_0x111f6[_0x2a392d(0x15a)];else{const _0x2bc5c7=Object['keys'](_0x43aab9);if(_0x2bc5c7['length']>0x0)_0x433147['defaultApp']=_0x2bc5c7[0x0];}return _0x433147;}function mergeIsolated(_0x3f3926){const _0x47a717=a155_0x4f189b,_0x2a101a={..._0x3f3926};delete _0x2a101a[_0x47a717(0x12d)];const _0x211590=_0x3f3926['apps']&&typeof _0x3f3926[_0x47a717(0x13b)]===_0x47a717(0x135)?_0x3f3926[_0x47a717(0x13b)]:{};Object[_0x47a717(0x137)](_0x211590)[_0x47a717(0x130)]>0x0?_0x2a101a[_0x47a717(0x13b)]=_0x211590:delete _0x2a101a[_0x47a717(0x13b)];if(_0x47a717(0x15a)in _0x3f3926)_0x2a101a[_0x47a717(0x15a)]=_0x3f3926[_0x47a717(0x15a)];else Object['keys'](_0x211590)[_0x47a717(0x130)]>0x0?_0x2a101a['defaultApp']=Object[_0x47a717(0x137)](_0x211590)[0x0]:delete _0x2a101a['defaultApp'];return _0x2a101a;}function mergeProjectFirst(_0x5df3e7,_0x320eab){const _0x2f73cd=a155_0x4f189b,_0x41459f={..._0x320eab};delete _0x41459f['inherit'];for(const _0x2dacaf of INHERIT_WHITELIST){!(_0x2dacaf in _0x41459f)&&_0x2dacaf in _0x5df3e7&&(_0x41459f[_0x2dacaf]=_0x5df3e7[_0x2dacaf]);}const _0x54388c=_0x320eab['apps']&&typeof _0x320eab[_0x2f73cd(0x13b)]===_0x2f73cd(0x135)?_0x320eab[_0x2f73cd(0x13b)]:{};Object[_0x2f73cd(0x137)](_0x54388c)[_0x2f73cd(0x130)]>0x0?_0x41459f['apps']=_0x54388c:delete _0x41459f[_0x2f73cd(0x13b)];if(_0x2f73cd(0x15a)in _0x320eab)_0x41459f[_0x2f73cd(0x15a)]=_0x320eab[_0x2f73cd(0x15a)];else Object[_0x2f73cd(0x137)](_0x54388c)[_0x2f73cd(0x130)]>0x0?_0x41459f[_0x2f73cd(0x15a)]=Object[_0x2f73cd(0x137)](_0x54388c)[0x0]:delete _0x41459f[_0x2f73cd(0x15a)];return _0x41459f;}function a155_0x2a5f(){const _0x1ff476=['584cNCbhb','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','583330IWSFaf','.rabetbase.json','set','pageSize','data','status','missing','cookie','format','1886ZUxhbC','35zGIaTw','utf8','env','436348ZzyzZy','error','344046lXzgis','Project','appcode','get','trim','config','defaultApp','655341vgExpL','message','app','filter','inherit','14lcymOp','string','length','locale','9MmuMcw','accessKey','migrated','object','stringify','keys','project','.tmp','parse','apps','empty','3404049phIKnk','4144336EuFvox','riskLevel','warn','.lovrabet.json','cwd'];a155_0x2a5f=function(){return _0x1ff476;};return a155_0x2a5f();}function mergeFullInherit(_0x104058,_0x3cb683){const _0x155f2c=a155_0x4f189b,_0x4234b1=_0x104058[_0x155f2c(0x13b)]&&typeof _0x104058['apps']===_0x155f2c(0x135)?_0x104058[_0x155f2c(0x13b)]:{},_0x493b67=_0x3cb683[_0x155f2c(0x13b)]&&typeof _0x3cb683[_0x155f2c(0x13b)]===_0x155f2c(0x135)?_0x3cb683['apps']:{},_0x5d2914={..._0x4234b1,..._0x493b67},_0x3922f3={..._0x104058,..._0x3cb683};delete _0x3922f3['inherit'];if(Object[_0x155f2c(0x137)](_0x5d2914)['length']>0x0)_0x3922f3[_0x155f2c(0x13b)]=_0x5d2914;if(_0x155f2c(0x15a)in _0x3cb683)_0x3922f3[_0x155f2c(0x15a)]=_0x3cb683[_0x155f2c(0x15a)];else{if(Object[_0x155f2c(0x137)](_0x493b67)[_0x155f2c(0x130)]>0x0)_0x3922f3[_0x155f2c(0x15a)]=Object['keys'](_0x493b67)[0x0];else{if(_0x104058['defaultApp'])_0x3922f3[_0x155f2c(0x15a)]=_0x104058[_0x155f2c(0x15a)];else{const _0x26a2f8=Object[_0x155f2c(0x137)](_0x4234b1);if(_0x26a2f8[_0x155f2c(0x130)]>0x0)_0x3922f3[_0x155f2c(0x15a)]=_0x26a2f8[0x0];}}}return _0x3922f3;}export function readRawConfigWithLayers(_0x28789a){const _0xcd51f5=loadRawConfigLayers(_0x28789a);return{'config':mergeRawConfigLayers(_0xcd51f5),'layers':_0xcd51f5};}export function readRawConfig(_0x41cda8){return mergeRawConfigLayers(loadRawConfigLayers(_0x41cda8));}export function readConfigFile(_0x19b147){return parseAndNormalizeConfig(_0x19b147,'silent');}export function writeConfigFile(_0x4e8f89,_0x54b8c2){const _0x387cad=a155_0x4f189b,_0x5522bf=dirname(_0x4e8f89);!existsSync(_0x5522bf)&&mkdirSync(_0x5522bf,{'recursive':!![]});const _0x3b8ebe=_0x4e8f89+_0x387cad(0x139);try{writeFileSync(_0x3b8ebe,JSON[_0x387cad(0x136)](_0x54b8c2,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180}),renameSync(_0x3b8ebe,_0x4e8f89);}catch(_0x20b719){try{unlinkSync(_0x3b8ebe);}catch{}throw _0x20b719;}}export function resolveWriteConfigPath(_0x1f5120){const _0x46a787=a155_0x4f189b,_0x40565b=_0x1f5120===_0x46a787(0x138)?process['cwd']():homedir(),_0xb411eb=resolveConfigPath(_0x40565b);return _0xb411eb??resolve(_0x40565b,NEW_CONFIG_NAME);}
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a156_0x2a8a95=a156_0x1a99;(function(_0x2daead,_0x577c2a){const _0x92e461=a156_0x1a99,_0x3623ee=_0x2daead();while(!![]){try{const _0x5755ba=-parseInt(_0x92e461(0x1dd))/0x1+parseInt(_0x92e461(0x1e1))/0x2+parseInt(_0x92e461(0x1e5))/0x3+-parseInt(_0x92e461(0x1dc))/0x4*(-parseInt(_0x92e461(0x1d6))/0x5)+parseInt(_0x92e461(0x1da))/0x6+-parseInt(_0x92e461(0x1e7))/0x7*(-parseInt(_0x92e461(0x1d7))/0x8)+-parseInt(_0x92e461(0x1e3))/0x9*(parseInt(_0x92e461(0x1f3))/0xa);if(_0x5755ba===_0x577c2a)break;else _0x3623ee['push'](_0x3623ee['shift']());}catch(_0x33f879){_0x3623ee['push'](_0x3623ee['shift']());}}}(a156_0xd555,0x4a203));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{logger}from'./utils/logger.js';export{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x3e6538){return process.env[`RABETBASE_${_0x3e6538}`]||process.env[`LOVRABET_${_0x3e6538}`]||undefined;}export async function createContext(_0x5409fa){const _0x4a9a86=a156_0x1a99,{config:_0x3b4562,layers:_0x3786bb}=readRawConfigWithLayers(),_0x32a96a=buildConfig(_0x3b4562,_0x5409fa,_0x3786bb),{initEnv:_0x293275}=await import(_0x4a9a86(0x1de));if(_0x32a96a[_0x4a9a86(0x1db)])_0x293275(_0x32a96a[_0x4a9a86(0x1db)]);else _0x5409fa[_0x4a9a86(0x1db)]&&typeof _0x5409fa[_0x4a9a86(0x1db)]==='string'&&_0x293275(_0x5409fa[_0x4a9a86(0x1db)]);const {initDomains:_0x4e67fa,getUserDomain:_0x519ccd,getApiDomain:_0x40d54d}=await import(_0x4a9a86(0x1f4));_0x4e67fa({'apiDomain':_0x3b4562[_0x4a9a86(0x1f6)]||undefined,'userDomain':_0x3b4562[_0x4a9a86(0x1d2)]||undefined,'runtimeDomain':_0x3b4562[_0x4a9a86(0x1e9)]||undefined});const _0xd8a731={'apiDomain':_0x40d54d(),'userDomain':_0x519ccd()},_0x47f4a1=await buildAuth(_0x32a96a);logger[_0x4a9a86(0x1fd)](process['cwd']());const _0x11fa8e=(CLI_BIN_NAME+'\x20'+process[_0x4a9a86(0x1f1)]['slice'](0x2)[_0x4a9a86(0x1d5)]('\x20'))[_0x4a9a86(0x1ee)]();logger[_0x4a9a86(0x1f2)](_0x11fa8e);const {isNonInteractive:_0x1f2067}=await import('./utils/is-non-interactive.js'),_0x5c71e8=_0x1f2067(_0x5409fa);return{'config':_0x32a96a,'auth':_0x47f4a1,'logger':logger,'env':_0xd8a731,'nonInteractive':_0x5c71e8};}export function buildConfigFromFlags(_0xb9f23d){const {config:_0x1c63e9,layers:_0x4b6f9d}=readRawConfigWithLayers();return buildConfig(_0x1c63e9,_0xb9f23d,_0x4b6f9d);}function a156_0xd555(){const _0x53e4b6=['entries','1097890FddmJD','apps','9rvfsmD','globalConfig','1672740VxCJmx','keys','881160WAnDLa','values','runtimeDomain','defaultApp','merged','filter','template_base_url','trim','string','object','argv','setRawCommand','13951870OOuqXB','./constant/domain.js','map','apiDomain','api.ts','cookie','project','projectConfig','find','apiDir','setLogPath','userDomain','https://g.lovrabet.com/dist/lovrabet-skill','appcode','join','2365780ZQyzBW','16DVwSSG','replace','cwd','4212CpqUgQ','env','4DpjZzf','133337vfSgeb','./constant/env.js','length'];a156_0xd555=function(){return _0x53e4b6;};return a156_0xd555();}function a156_0x1a99(_0x4ebe55,_0x1c31e7){_0x4ebe55=_0x4ebe55-0x1d2;const _0xd55530=a156_0xd555();let _0x1a99b2=_0xd55530[_0x4ebe55];return _0x1a99b2;}export function getConfigAppCode(_0x4effd9){const _0x5008c8=a156_0x1a99,_0x4345aa=readRawConfig(_0x4effd9);if(_0x4345aa[_0x5008c8(0x1e2)]&&typeof _0x4345aa[_0x5008c8(0x1e2)]===_0x5008c8(0x1f0)){const _0x4a0bdb=_0x4345aa[_0x5008c8(0x1ea)];if(_0x4a0bdb&&_0x4345aa[_0x5008c8(0x1e2)][_0x4a0bdb]?.[_0x5008c8(0x1d4)])return String(_0x4345aa[_0x5008c8(0x1e2)][_0x4a0bdb]['appcode'])[_0x5008c8(0x1ee)]();const _0x1c460c=Object[_0x5008c8(0x1e8)](_0x4345aa['apps'])[0x0];if(_0x1c460c?.[_0x5008c8(0x1d4)])return String(_0x1c460c[_0x5008c8(0x1d4)])[_0x5008c8(0x1ee)]();}const _0x2f0169=_0x4345aa['appcode']||_0x4345aa['app'];if(typeof _0x2f0169!=='string'||_0x2f0169[_0x5008c8(0x1ee)]()==='')return undefined;return _0x2f0169['trim']();}export function getMultiAppConfigs(_0x41ab10=a156_0x2a8a95(0x1f9),_0xda90f8){const _0x1ef42f=a156_0x2a8a95,_0x5d54e7=loadRawConfigLayers(_0xda90f8);let _0x4f0249,_0x277da4;if(_0x41ab10===_0x1ef42f(0x1eb)){const _0x358ee1=_0x5d54e7['globalConfig'][_0x1ef42f(0x1e2)]&&typeof _0x5d54e7[_0x1ef42f(0x1e4)][_0x1ef42f(0x1e2)]===_0x1ef42f(0x1f0)?_0x5d54e7[_0x1ef42f(0x1e4)][_0x1ef42f(0x1e2)]:{},_0x49c60c=_0x5d54e7[_0x1ef42f(0x1fa)][_0x1ef42f(0x1e2)]&&typeof _0x5d54e7[_0x1ef42f(0x1fa)][_0x1ef42f(0x1e2)]==='object'?_0x5d54e7['projectConfig'][_0x1ef42f(0x1e2)]:{};_0x4f0249={..._0x358ee1,..._0x49c60c};const _0x5299c7=readRawConfig(_0xda90f8);_0x277da4=_0x5299c7[_0x1ef42f(0x1ea)];}else _0x4f0249=_0x5d54e7['projectConfig'][_0x1ef42f(0x1e2)],_0x277da4=_0x5d54e7['projectConfig'][_0x1ef42f(0x1ea)];if(!_0x4f0249||typeof _0x4f0249!==_0x1ef42f(0x1f0)||Object[_0x1ef42f(0x1e6)](_0x4f0249)[_0x1ef42f(0x1df)]===0x0)return null;return Object[_0x1ef42f(0x1e0)](_0x4f0249)[_0x1ef42f(0x1f5)](([_0x318d6d,_0x2d2921])=>({'name':_0x318d6d,'appcode':_0x2d2921?.[_0x1ef42f(0x1d4)]||'','isDefault':_0x318d6d===_0x277da4,'env':_0x2d2921?.[_0x1ef42f(0x1db)],'apiDir':_0x2d2921?.[_0x1ef42f(0x1fc)],'cookie':_0x2d2921?.[_0x1ef42f(0x1f8)]||undefined}))[_0x1ef42f(0x1ec)](_0x545123=>_0x545123[_0x1ef42f(0x1d4)]);}export function getTemplateBaseUrl(_0x2447ee){const _0x1026cf=a156_0x2a8a95,_0x9e0ca4=readRawConfig(_0x2447ee);if(_0x9e0ca4[_0x1026cf(0x1ed)]&&typeof _0x9e0ca4[_0x1026cf(0x1ed)]===_0x1026cf(0x1ef))return _0x9e0ca4[_0x1026cf(0x1ed)][_0x1026cf(0x1d8)](/\/$/,'');return _0x1026cf(0x1d3);}function buildConfig(_0x5d7a86,_0x14065f,_0x8a93ab){return{...resolveAppConfig({'raw':_0x5d7a86,'flags':_0x14065f,'layers':_0x8a93ab,'readEnv':env}),'raw':_0x5d7a86};}export function resolveApiFilePath(_0xaf7986,_0x1cc16d){const _0x559e7b=a156_0x2a8a95,_0x5b4391=resolve(process[_0x559e7b(0x1d9)](),_0xaf7986),_0x34762b=resolve(_0x5b4391,_0x559e7b(0x1f7));if(!_0x1cc16d)return _0x34762b;const _0x1f11c1=readRawConfig(),_0x1a71a6=_0x1f11c1[_0x559e7b(0x1e2)]&&typeof _0x1f11c1['apps']==='object'?_0x1f11c1[_0x559e7b(0x1e2)]:{},_0x2c0908=Object['entries'](_0x1a71a6)[_0x559e7b(0x1fb)](([,_0x401c43])=>_0x401c43?.[_0x559e7b(0x1d4)]===_0x1cc16d);if(!_0x2c0908)return _0x34762b;const [_0x1ffcab,_0x5e7385]=_0x2c0908,_0x1ae4d4=typeof _0x1f11c1['defaultApp']===_0x559e7b(0x1ef)?_0x1f11c1[_0x559e7b(0x1ea)]:undefined;if(_0x5e7385?.[_0x559e7b(0x1fc)])return _0x34762b;if(_0x1ae4d4&&_0x1ffcab!==_0x1ae4d4)return resolve(_0x5b4391,_0x1ffcab+'-api.ts');return _0x34762b;}
1
+ (function(_0x387d63,_0x1ba957){const _0x5f399d=a156_0xc4cc,_0x13d0db=_0x387d63();while(!![]){try{const _0x17f98a=-parseInt(_0x5f399d(0x131))/0x1+parseInt(_0x5f399d(0x12d))/0x2*(parseInt(_0x5f399d(0x151))/0x3)+-parseInt(_0x5f399d(0x13b))/0x4+parseInt(_0x5f399d(0x14e))/0x5*(parseInt(_0x5f399d(0x14c))/0x6)+parseInt(_0x5f399d(0x13f))/0x7+parseInt(_0x5f399d(0x141))/0x8+parseInt(_0x5f399d(0x14f))/0x9;if(_0x17f98a===_0x1ba957)break;else _0x13d0db['push'](_0x13d0db['shift']());}catch(_0x4ed55f){_0x13d0db['push'](_0x13d0db['shift']());}}}(a156_0x4ae4,0x5afbd));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{logger}from'./utils/logger.js';export{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x400701){return process.env[`RABETBASE_${_0x400701}`]||process.env[`LOVRABET_${_0x400701}`]||undefined;}export async function createContext(_0xda703d){const _0x23bca5=a156_0xc4cc,{config:_0x3871ca,layers:_0x19acf7}=readRawConfigWithLayers(),_0x2cfc0d=buildConfig(_0x3871ca,_0xda703d,_0x19acf7),{initEnv:_0x22d686}=await import(_0x23bca5(0x13d));if(_0x2cfc0d['env'])_0x22d686(_0x2cfc0d[_0x23bca5(0x147)]);else _0xda703d[_0x23bca5(0x147)]&&typeof _0xda703d[_0x23bca5(0x147)]===_0x23bca5(0x139)&&_0x22d686(_0xda703d['env']);const {initDomains:_0x11f7d2,getUserDomain:_0x558bdd,getApiDomain:_0xfb72f5}=await import(_0x23bca5(0x14a));_0x11f7d2({'apiDomain':_0x3871ca[_0x23bca5(0x13e)]||undefined,'userDomain':_0x3871ca[_0x23bca5(0x144)]||undefined,'runtimeDomain':_0x3871ca[_0x23bca5(0x12e)]||undefined});const _0x2f0f1d={'apiDomain':_0xfb72f5(),'userDomain':_0x558bdd()},_0x1f3127=await buildAuth(_0x2cfc0d);logger[_0x23bca5(0x142)](process[_0x23bca5(0x13c)]());const _0x489ae6=(CLI_BIN_NAME+'\x20'+process[_0x23bca5(0x143)][_0x23bca5(0x12a)](0x2)[_0x23bca5(0x14d)]('\x20'))[_0x23bca5(0x148)]();logger[_0x23bca5(0x130)](_0x489ae6);const {isNonInteractive:_0x3b475d}=await import('./utils/is-non-interactive.js'),_0x2bd441=_0x3b475d(_0xda703d);return{'config':_0x2cfc0d,'auth':_0x1f3127,'logger':logger,'env':_0x2f0f1d,'nonInteractive':_0x2bd441};}export function buildConfigFromFlags(_0x558939){const {config:_0x31b0a3,layers:_0x209265}=readRawConfigWithLayers();return buildConfig(_0x31b0a3,_0x558939,_0x209265);}export function getConfigAppCode(_0x2658ac){const _0x358515=a156_0xc4cc,_0x4e267c=readRawConfig(_0x2658ac);if(_0x4e267c['apps']&&typeof _0x4e267c[_0x358515(0x150)]==='object'){const _0x42fecb=_0x4e267c['defaultApp'];if(_0x42fecb&&_0x4e267c[_0x358515(0x150)][_0x42fecb]?.[_0x358515(0x145)])return String(_0x4e267c[_0x358515(0x150)][_0x42fecb][_0x358515(0x145)])[_0x358515(0x148)]();const _0x48fdb0=Object[_0x358515(0x134)](_0x4e267c[_0x358515(0x150)])[0x0];if(_0x48fdb0?.[_0x358515(0x145)])return String(_0x48fdb0[_0x358515(0x145)])['trim']();}const _0x122139=_0x4e267c[_0x358515(0x145)]||_0x4e267c[_0x358515(0x153)];if(typeof _0x122139!==_0x358515(0x139)||_0x122139[_0x358515(0x148)]()==='')return undefined;return _0x122139[_0x358515(0x148)]();}export function getMultiAppConfigs(_0x5f3c69='project',_0x370012){const _0x45f802=a156_0xc4cc,_0x3463ef=loadRawConfigLayers(_0x370012);let _0x16f3d5,_0x18700c;if(_0x5f3c69==='merged'){const _0x4d91da=_0x3463ef[_0x45f802(0x136)][_0x45f802(0x150)]&&typeof _0x3463ef[_0x45f802(0x136)][_0x45f802(0x150)]==='object'?_0x3463ef[_0x45f802(0x136)][_0x45f802(0x150)]:{},_0x3e321b=_0x3463ef['projectConfig'][_0x45f802(0x150)]&&typeof _0x3463ef[_0x45f802(0x135)][_0x45f802(0x150)]===_0x45f802(0x12b)?_0x3463ef['projectConfig'][_0x45f802(0x150)]:{};_0x16f3d5={..._0x4d91da,..._0x3e321b};const _0x1dbcb3=readRawConfig(_0x370012);_0x18700c=_0x1dbcb3[_0x45f802(0x133)];}else _0x16f3d5=_0x3463ef['projectConfig'][_0x45f802(0x150)],_0x18700c=_0x3463ef[_0x45f802(0x135)][_0x45f802(0x133)];if(!_0x16f3d5||typeof _0x16f3d5!==_0x45f802(0x12b)||Object[_0x45f802(0x12c)](_0x16f3d5)[_0x45f802(0x138)]===0x0)return null;return Object['entries'](_0x16f3d5)[_0x45f802(0x149)](([_0x51b9e2,_0x5327fc])=>({'name':_0x51b9e2,'appcode':_0x5327fc?.[_0x45f802(0x145)]||'','isDefault':_0x51b9e2===_0x18700c,'env':_0x5327fc?.[_0x45f802(0x147)],'apiDir':_0x5327fc?.[_0x45f802(0x13a)],'cookie':_0x5327fc?.['cookie']||undefined}))[_0x45f802(0x140)](_0x56d25c=>_0x56d25c[_0x45f802(0x145)]);}function a156_0xc4cc(_0x20dcee,_0x1d2b92){_0x20dcee=_0x20dcee-0x12a;const _0x4ae494=a156_0x4ae4();let _0xc4cc28=_0x4ae494[_0x20dcee];return _0xc4cc28;}function a156_0x4ae4(){const _0x1bae25=['6quVeLQ','join','1047555aVKjBM','3566277samIJV','apps','6VNAdVp','https://g.lovrabet.com/dist/lovrabet-skill','app','slice','object','keys','269896JjhtqD','runtimeDomain','entries','setRawCommand','663942hvUHTA','find','defaultApp','values','projectConfig','globalConfig','api.ts','length','string','apiDir','1903972ZzvPnt','cwd','./constant/env.js','apiDomain','667072DteuzM','filter','4333184yEfTil','setLogPath','argv','userDomain','appcode','-api.ts','env','trim','map','./constant/domain.js','template_base_url'];a156_0x4ae4=function(){return _0x1bae25;};return a156_0x4ae4();}export function getTemplateBaseUrl(_0x288b28){const _0x4af85a=a156_0xc4cc,_0xc69b09=readRawConfig(_0x288b28);if(_0xc69b09[_0x4af85a(0x14b)]&&typeof _0xc69b09[_0x4af85a(0x14b)]==='string')return _0xc69b09[_0x4af85a(0x14b)]['replace'](/\/$/,'');return _0x4af85a(0x152);}function buildConfig(_0x5e1554,_0x20a6d2,_0x51d1e6){return{...resolveAppConfig({'raw':_0x5e1554,'flags':_0x20a6d2,'layers':_0x51d1e6,'readEnv':env}),'raw':_0x5e1554};}export function resolveApiFilePath(_0x3347e9,_0x1fbe50){const _0x135084=a156_0xc4cc,_0x70c789=resolve(process['cwd'](),_0x3347e9),_0xeadf6b=resolve(_0x70c789,_0x135084(0x137));if(!_0x1fbe50)return _0xeadf6b;const _0x3e9321=readRawConfig(),_0x1e7afd=_0x3e9321[_0x135084(0x150)]&&typeof _0x3e9321[_0x135084(0x150)]===_0x135084(0x12b)?_0x3e9321[_0x135084(0x150)]:{},_0x16cbb3=Object[_0x135084(0x12f)](_0x1e7afd)[_0x135084(0x132)](([,_0x5b0482])=>_0x5b0482?.['appcode']===_0x1fbe50);if(!_0x16cbb3)return _0xeadf6b;const [_0x3082eb,_0x47c732]=_0x16cbb3,_0x3e6a80=typeof _0x3e9321[_0x135084(0x133)]==='string'?_0x3e9321[_0x135084(0x133)]:undefined;if(_0x47c732?.[_0x135084(0x13a)])return _0xeadf6b;if(_0x3e6a80&&_0x3082eb!==_0x3e6a80)return resolve(_0x70c789,_0x3082eb+_0x135084(0x146));return _0xeadf6b;}