@lovrabet/rabetbase-cli 2.3.4-beta.1 → 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 (219) hide show
  1. package/README.md +99 -560
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/add.js +1 -1
  21. package/lib/commands/app/discover.js +1 -1
  22. package/lib/commands/app/index.js +1 -1
  23. package/lib/commands/app/list.js +1 -1
  24. package/lib/commands/app/remove.js +1 -1
  25. package/lib/commands/app/shared.js +1 -1
  26. package/lib/commands/app-config/delete.js +1 -1
  27. package/lib/commands/app-config/get.js +1 -1
  28. package/lib/commands/app-config/index.js +1 -1
  29. package/lib/commands/app-config/list.js +1 -1
  30. package/lib/commands/app-config/set.js +1 -1
  31. package/lib/commands/app-config/shared.js +1 -1
  32. package/lib/commands/auth/index.js +1 -1
  33. package/lib/commands/bff/create.js +1 -1
  34. package/lib/commands/bff/delete.js +1 -1
  35. package/lib/commands/bff/detail.js +1 -1
  36. package/lib/commands/bff/index.js +1 -1
  37. package/lib/commands/bff/list.js +1 -1
  38. package/lib/commands/bff/pull.js +1 -1
  39. package/lib/commands/bff/push.js +1 -1
  40. package/lib/commands/bff/status.js +1 -1
  41. package/lib/commands/cli-skill/index.js +1 -1
  42. package/lib/commands/cli-update.js +1 -1
  43. package/lib/commands/codegen/index.js +1 -1
  44. package/lib/commands/codegen/sdk.js +1 -1
  45. package/lib/commands/codegen/sql.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/flags.js +1 -1
  48. package/lib/commands/common/validate.js +1 -1
  49. package/lib/commands/config/get.js +1 -1
  50. package/lib/commands/config/index.js +1 -1
  51. package/lib/commands/config/list.js +1 -1
  52. package/lib/commands/config/set.js +1 -1
  53. package/lib/commands/config/shared.js +1 -1
  54. package/lib/commands/data/filter.js +1 -1
  55. package/lib/commands/data/getOne.js +1 -1
  56. package/lib/commands/data/index.js +1 -1
  57. package/lib/commands/data/shared.js +1 -1
  58. package/lib/commands/dataset/business-group-update.js +1 -1
  59. package/lib/commands/dataset/capability.js +1 -1
  60. package/lib/commands/dataset/delete.js +1 -1
  61. package/lib/commands/dataset/detail.js +1 -1
  62. package/lib/commands/dataset/extend-update.js +1 -1
  63. package/lib/commands/dataset/field-update.js +1 -1
  64. package/lib/commands/dataset/generate.js +1 -1
  65. package/lib/commands/dataset/index.js +1 -1
  66. package/lib/commands/dataset/list.js +1 -1
  67. package/lib/commands/dataset/operations.js +1 -1
  68. package/lib/commands/dataset/relation-audit.js +1 -1
  69. package/lib/commands/dataset/relation-create.js +1 -1
  70. package/lib/commands/dataset/relation-delete.js +1 -1
  71. package/lib/commands/dataset/relation-shared.js +1 -1
  72. package/lib/commands/dataset/relation-update.js +1 -1
  73. package/lib/commands/dataset/relations.js +1 -1
  74. package/lib/commands/dataset/rename.js +1 -1
  75. package/lib/commands/dataset/restore.js +1 -1
  76. package/lib/commands/db/analyze-cancel.js +1 -1
  77. package/lib/commands/db/analyze-start.js +1 -1
  78. package/lib/commands/db/analyze-status.js +1 -1
  79. package/lib/commands/db/create.js +1 -1
  80. package/lib/commands/db/delete.js +1 -1
  81. package/lib/commands/db/detail.js +1 -1
  82. package/lib/commands/db/diff.js +1 -1
  83. package/lib/commands/db/index.js +1 -1
  84. package/lib/commands/db/list.js +1 -1
  85. package/lib/commands/db/shared.js +1 -1
  86. package/lib/commands/db/tables.js +1 -1
  87. package/lib/commands/db/test.js +1 -1
  88. package/lib/commands/db/update.js +1 -1
  89. package/lib/commands/doctor.js +1 -1
  90. package/lib/commands/init/index.js +1 -1
  91. package/lib/commands/issue/index.js +1 -1
  92. package/lib/commands/issue/nudge.js +1 -1
  93. package/lib/commands/issue/report.js +1 -1
  94. package/lib/commands/issue/shared.js +1 -1
  95. package/lib/commands/logs/index.js +1 -1
  96. package/lib/commands/menu/index.js +1 -1
  97. package/lib/commands/menu/list.js +1 -1
  98. package/lib/commands/menu/shared/compare-table.js +1 -1
  99. package/lib/commands/menu/shared/index.js +1 -1
  100. package/lib/commands/menu/shared/inquirer.js +1 -1
  101. package/lib/commands/menu/shared/local-pages.js +1 -1
  102. package/lib/commands/menu/shared/logic.js +1 -1
  103. package/lib/commands/menu/shared/service.js +1 -1
  104. package/lib/commands/menu/shared/sync-core.js +1 -1
  105. package/lib/commands/menu/shared/update-core.js +1 -1
  106. package/lib/commands/menu/shared/valid-url.js +1 -1
  107. package/lib/commands/menu/sync.js +1 -1
  108. package/lib/commands/menu/update.js +1 -1
  109. package/lib/commands/page/generate-start.js +1 -1
  110. package/lib/commands/page/generate-status.js +1 -1
  111. package/lib/commands/page/index.js +1 -1
  112. package/lib/commands/page/pull.js +1 -1
  113. package/lib/commands/page/push.js +1 -1
  114. package/lib/commands/page/relation-audit.js +1 -1
  115. package/lib/commands/page/shared.js +1 -1
  116. package/lib/commands/page/standard-page-status.js +1 -1
  117. package/lib/commands/page/sync.js +1 -1
  118. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  119. package/lib/commands/project/create/format-elapsed.js +1 -1
  120. package/lib/commands/project/create/main.js +1 -1
  121. package/lib/commands/project/create/non-interactive.js +1 -1
  122. package/lib/commands/project/create/project-template-path.js +1 -1
  123. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  124. package/lib/commands/project/create/use-format-code.js +1 -1
  125. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  126. package/lib/commands/project/index.js +1 -1
  127. package/lib/commands/project/init.js +1 -1
  128. package/lib/commands/project/upgrade.js +1 -1
  129. package/lib/commands/registry.js +1 -1
  130. package/lib/commands/run/index.js +1 -1
  131. package/lib/commands/schema.js +1 -1
  132. package/lib/commands/sql/create.js +1 -1
  133. package/lib/commands/sql/delete.js +1 -1
  134. package/lib/commands/sql/detail.js +1 -1
  135. package/lib/commands/sql/exec.js +1 -1
  136. package/lib/commands/sql/index.js +1 -1
  137. package/lib/commands/sql/list.js +1 -1
  138. package/lib/commands/sql/pull.js +1 -1
  139. package/lib/commands/sql/push.js +1 -1
  140. package/lib/commands/sql/save.js +1 -1
  141. package/lib/commands/sql/shared.js +1 -1
  142. package/lib/commands/sql/status.js +1 -1
  143. package/lib/commands/sql/validate.js +1 -1
  144. package/lib/commands/workspace/index.js +1 -1
  145. package/lib/config/schema.js +1 -1
  146. package/lib/constant/cdn.js +1 -1
  147. package/lib/constant/cli.js +1 -1
  148. package/lib/constant/defaults.js +1 -1
  149. package/lib/constant/domain.js +1 -1
  150. package/lib/constant/env.js +1 -1
  151. package/lib/constant/output.js +1 -1
  152. package/lib/constant/paths.js +1 -1
  153. package/lib/constant/risk.js +1 -1
  154. package/lib/context/app-resolver.js +1 -1
  155. package/lib/context/auth-resolver.js +1 -1
  156. package/lib/context/config-loader.js +1 -1
  157. package/lib/context.js +1 -1
  158. package/lib/core/alias-resolver.js +1 -1
  159. package/lib/core/api-client.js +1 -1
  160. package/lib/core/bff/config.js +1 -1
  161. package/lib/core/bff/file-system.js +1 -1
  162. package/lib/core/bff/hash.js +1 -1
  163. package/lib/core/bff/lock.js +1 -1
  164. package/lib/core/bff/utils.js +1 -1
  165. package/lib/core/db-resolver.js +1 -1
  166. package/lib/core/page/file-system.js +1 -1
  167. package/lib/core/page/hash.js +1 -1
  168. package/lib/core/page/lock.js +1 -1
  169. package/lib/core/sql-sync/config.js +1 -1
  170. package/lib/core/sql-sync/file-system.js +1 -1
  171. package/lib/core/sql-sync/hash.js +1 -1
  172. package/lib/core/sql-sync/lock.js +1 -1
  173. package/lib/core/sql-sync/utils.js +1 -1
  174. package/lib/core/sql-validator.js +1 -1
  175. package/lib/errors.js +1 -1
  176. package/lib/framework/build-all-flags.js +1 -1
  177. package/lib/framework/flags.js +1 -1
  178. package/lib/framework/help.js +1 -1
  179. package/lib/framework/index.js +1 -1
  180. package/lib/framework/output.js +1 -1
  181. package/lib/framework/response.js +1 -1
  182. package/lib/framework/runner-alias.js +1 -1
  183. package/lib/framework/runner.js +1 -1
  184. package/lib/framework/schema-export.js +1 -1
  185. package/lib/framework/types.js +1 -1
  186. package/lib/generated/build-info.js +1 -1
  187. package/lib/help.js +1 -1
  188. package/lib/skills/main.js +1 -1
  189. package/lib/skills/npx-skills-add.js +1 -1
  190. package/lib/telemetry/cli-command-trace.js +1 -1
  191. package/lib/telemetry/cli-help-trace.js +1 -1
  192. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  193. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  194. package/lib/telemetry/send-cli-trace-log.js +1 -1
  195. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  196. package/lib/utils/ai_config.js +1 -1
  197. package/lib/utils/apply-jq-filter.js +1 -1
  198. package/lib/utils/cdn-config.js +1 -1
  199. package/lib/utils/check-sdk-version.js +1 -1
  200. package/lib/utils/cli-version-check.js +1 -1
  201. package/lib/utils/cli-version-policy.js +1 -1
  202. package/lib/utils/config.js +1 -1
  203. package/lib/utils/copy-directory.js +1 -1
  204. package/lib/utils/entity-with-id.js +1 -1
  205. package/lib/utils/file-utils.js +1 -1
  206. package/lib/utils/guides-cdn.js +1 -1
  207. package/lib/utils/http-client.js +1 -1
  208. package/lib/utils/is-non-interactive.js +1 -1
  209. package/lib/utils/logger.js +1 -1
  210. package/lib/utils/params.js +1 -1
  211. package/lib/utils/platform.js +1 -1
  212. package/lib/utils/rules-cdn.js +1 -1
  213. package/lib/utils/sleep.js +1 -1
  214. package/lib/utils/template-replacer.js +1 -1
  215. package/lib/utils/update-notice.js +1 -1
  216. package/lib/utils/version.js +1 -1
  217. package/lib/utils/with-active-cookie.js +1 -1
  218. package/lib/utils/write-cli-side-channel.js +1 -1
  219. package/package.json +18 -2
@@ -1 +1 @@
1
- const a141_0x169ce3=a141_0x1b30;(function(_0x3ca7a8,_0x3bc2e1){const _0xc0ce9f=a141_0x1b30,_0x2e8c39=_0x3ca7a8();while(!![]){try{const _0x1af78d=parseInt(_0xc0ce9f(0x86))/0x1+parseInt(_0xc0ce9f(0x96))/0x2*(parseInt(_0xc0ce9f(0x8f))/0x3)+-parseInt(_0xc0ce9f(0x7c))/0x4+parseInt(_0xc0ce9f(0x7e))/0x5*(-parseInt(_0xc0ce9f(0x94))/0x6)+parseInt(_0xc0ce9f(0x8d))/0x7+parseInt(_0xc0ce9f(0x7f))/0x8*(-parseInt(_0xc0ce9f(0x80))/0x9)+-parseInt(_0xc0ce9f(0x7b))/0xa*(-parseInt(_0xc0ce9f(0x7a))/0xb);if(_0x1af78d===_0x3bc2e1)break;else _0x2e8c39['push'](_0x2e8c39['shift']());}catch(_0x3d1598){_0x2e8c39['push'](_0x2e8c39['shift']());}}}(a141_0x50aa,0xb3333));import{listSqlQueries}from'../../core/api-client.js';function a141_0x50aa(){const _0x38254b=['remote','6fIeHQb','relativePath','475390ELcCqP','sqlRoot','length','sql','totalCount','filePath','push','\x20modified,\x20','status','has','706948INeFnt','170niTyxw','743084khGGFW','hash','3915840SQaooh','507480CCCIFC','189yYuUsw','lockKey','All\x20SQL\x20queries\x20are\x20in\x20sync.','\x20remote-only','appCode','\x20unchanged','969063Kotcsf','boolean','Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','keys','paging','\x20missing,\x20','tableData','158746UOflrh','bool','12sDEBEt','lockFilePath','sqls','sqlName'];a141_0x50aa=function(){return _0x38254b;};return a141_0x50aa();}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;function a141_0x1b30(_0x1cf818,_0x33d236){_0x1cf818=_0x1cf818-0x76;const _0x50aa52=a141_0x50aa();let _0x1b3087=_0x50aa52[_0x1cf818];return _0x1b3087;}async function fetchAllSqlCodes(_0x26e2b6){const _0x1f9cb8=a141_0x1b30,_0x132795=[];let _0x49e710=0x1;while(!![]){const _0x26a80d=await listSqlQueries(_0x26e2b6,{'currentPage':_0x49e710,'pageSize':PAGE_SIZE}),_0x179522=_0x26a80d[_0x1f9cb8(0x8c)]??[];_0x132795[_0x1f9cb8(0x76)](..._0x179522['map'](_0x29c645=>_0x29c645['sqlCode']));if(_0x179522[_0x1f9cb8(0x98)]===0x0)break;const _0x45261c=_0x26a80d[_0x1f9cb8(0x8a)]?.[_0x1f9cb8(0x9a)];if(_0x45261c!=null?_0x132795[_0x1f9cb8(0x98)]>=_0x45261c:_0x179522['length']<PAGE_SIZE)break;_0x49e710++;}return _0x132795;}export const sqlStatus={'service':a141_0x169ce3(0x99),'command':a141_0x169ce3(0x78),'description':a141_0x169ce3(0x88),'risk':'read','flags':[{'name':a141_0x169ce3(0x93),'type':a141_0x169ce3(0x87),'description':'Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally'}],async 'execute'(_0x11de1b){const _0x35e4bb=a141_0x169ce3,_0x52bb7c=loadSqlProjectConfig(_0x11de1b['appCode']),_0x322560=await readSqlLockFile(_0x52bb7c[_0x35e4bb(0x90)]),{appLock:_0x3606cf}=ensureSqlLockScope(_0x322560??createEmptySqlLock(),_0x52bb7c[_0x35e4bb(0x84)],_0x52bb7c[_0x35e4bb(0x97)],'status'),_0x1abf69=await scanLocalSqlQueries(_0x52bb7c),_0x57a2d2=[],_0x11a95e=[],_0x456785=[],_0x4d0901=[],_0x2b9c45=new Set(_0x1abf69['map'](_0x30f309=>_0x30f309[_0x35e4bb(0x81)]));for(const _0x28355f of _0x1abf69){const _0x545e1f=await computeSqlFileHash(_0x28355f[_0x35e4bb(0x9b)]),_0x216344=_0x3606cf[_0x35e4bb(0x91)][_0x28355f[_0x35e4bb(0x81)]],_0x4f92e6=!!_0x216344&&_0x216344['path']!==_0x28355f[_0x35e4bb(0x95)],_0x3defd9=!!_0x216344&&!!_0x28355f[_0x35e4bb(0x92)]&&_0x216344['sqlName']!==_0x28355f[_0x35e4bb(0x92)];if(!_0x216344)_0x57a2d2[_0x35e4bb(0x76)](_0x28355f[_0x35e4bb(0x81)]);else _0x216344[_0x35e4bb(0x7d)]!==_0x545e1f||_0x4f92e6||_0x3defd9?_0x11a95e[_0x35e4bb(0x76)](_0x28355f['lockKey']):_0x456785[_0x35e4bb(0x76)](_0x28355f[_0x35e4bb(0x81)]);}for(const _0x37a019 of Object[_0x35e4bb(0x89)](_0x3606cf['sqls'])){!_0x2b9c45['has'](_0x37a019)&&_0x4d0901[_0x35e4bb(0x76)](_0x37a019);}const _0x443de7=[];if(_0x11de1b[_0x35e4bb(0x8e)](_0x35e4bb(0x93))){const _0x51797e=await fetchAllSqlCodes(_0x11de1b[_0x35e4bb(0x84)]);for(const _0x64c9f6 of _0x51797e){!_0x2b9c45[_0x35e4bb(0x79)](_0x64c9f6)&&!_0x3606cf[_0x35e4bb(0x91)][_0x64c9f6]&&_0x443de7[_0x35e4bb(0x76)](_0x64c9f6);}}const _0x41ba6e=_0x57a2d2['length']===0x0&&_0x11a95e['length']===0x0&&_0x4d0901['length']===0x0&&_0x443de7[_0x35e4bb(0x98)]===0x0;return{'ok':!![],'data':{'added':_0x57a2d2,'modified':_0x11a95e,'missing':_0x4d0901,'unchanged':_0x456785,'remoteOnly':_0x443de7},'message':_0x41ba6e?_0x35e4bb(0x82):_0x57a2d2[_0x35e4bb(0x98)]+'\x20added,\x20'+_0x11a95e[_0x35e4bb(0x98)]+_0x35e4bb(0x77)+_0x4d0901['length']+_0x35e4bb(0x8b)+_0x456785[_0x35e4bb(0x98)]+_0x35e4bb(0x85)+(_0x443de7[_0x35e4bb(0x98)]>0x0?',\x20'+_0x443de7[_0x35e4bb(0x98)]+_0x35e4bb(0x83):'')};}};
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_0x124fed=a142_0xe2b8;(function(_0x52260,_0x84e059){const _0x2f0105=a142_0xe2b8,_0x16cbd0=_0x52260();while(!![]){try{const _0x416325=parseInt(_0x2f0105(0x102))/0x1+-parseInt(_0x2f0105(0x10a))/0x2*(parseInt(_0x2f0105(0xf7))/0x3)+parseInt(_0x2f0105(0xec))/0x4+-parseInt(_0x2f0105(0xeb))/0x5+parseInt(_0x2f0105(0x118))/0x6*(parseInt(_0x2f0105(0xf6))/0x7)+parseInt(_0x2f0105(0xfc))/0x8+-parseInt(_0x2f0105(0xf8))/0x9*(parseInt(_0x2f0105(0x117))/0xa);if(_0x416325===_0x84e059)break;else _0x16cbd0['push'](_0x16cbd0['shift']());}catch(_0x2e2320){_0x16cbd0['push'](_0x16cbd0['shift']());}}}(a142_0x2b56,0x86bf3));function a142_0xe2b8(_0x5431eb,_0x599cb8){_0x5431eb=_0x5431eb-0xeb;const _0x2b5608=a142_0x2b56();let _0xe2b8d=_0x2b5608[_0x5431eb];return _0xe2b8d;}function a142_0x2b56(){const _0x10f986=['2983916jWXhog','push','File\x20not\x20found:\x20','type','utf-8','SQL\x20schema\x20validation','length','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','file','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','42XxnQxM','3WMjfef','30582JoCuhD','sql','valid','dbtableConfig','5011912CXnLin','string','split','isDangerous','tables','tableName','304601mdDgVj','isArray','validate','trim','schemaWarnings','Dataset\x20\x22','size','Provide\x20--file\x20or\x20--sql','293890xKReLG','isSelectOnly','message','sqlType','schema:','get','reason','read','str','appCode','fields','name','parameters','1860QUTLpS','585036WhVIER','cwd','schemas','\x22\x20not\x20found\x20or\x20not\x20accessible','\x22\x20not\x20found\x20in\x20any\x20dataset','map','toLowerCase','4656045hTqZmr'];a142_0x2b56=function(){return _0x10f986;};return a142_0x2b56();}import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';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':'sql','command':a142_0x124fed(0x104),'description':'Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','risk':a142_0x124fed(0x111),'flags':[{'name':a142_0x124fed(0xf4),'type':a142_0x124fed(0xfd),'description':'Path\x20to\x20the\x20SQL\x20file\x20to\x20validate'},{'name':a142_0x124fed(0xf9),'type':a142_0x124fed(0xfd),'description':a142_0x124fed(0xf5)},{'name':a142_0x124fed(0x11a),'type':a142_0x124fed(0xfd),'description':a142_0x124fed(0xf3)}],async 'execute'(_0xbacee){const _0x281fe6=a142_0x124fed,_0x4ea38a=_0xbacee[_0x281fe6(0x112)](_0x281fe6(0xf4)),_0x3f6953=_0xbacee['str'](_0x281fe6(0xf9));if(!_0x4ea38a&&!_0x3f6953)throw CliErrors['flagMissing'](_0x281fe6(0xf4),_0x281fe6(0x109));let _0x331bfe;if(_0x4ea38a){const _0x343844=resolve(process[_0x281fe6(0x119)](),_0x4ea38a);if(!existsSync(_0x343844))throw CliErrors['validation'](_0x281fe6(0xee)+_0x343844);_0x331bfe=readFileSync(_0x343844,_0x281fe6(0xf0));}else _0x331bfe=_0x3f6953;const _0x5b5263=validateSql(_0x331bfe),_0x2791b1={'valid':_0x5b5263['valid'],'sqlType':_0x5b5263['sqlType'][_0x281fe6(0xef)],'isSelectOnly':_0x5b5263['sqlType'][_0x281fe6(0x10b)],'isDangerous':_0x5b5263['sqlType'][_0x281fe6(0xff)],'tables':_0x5b5263[_0x281fe6(0x100)],'parameters':_0x5b5263[_0x281fe6(0x116)],'message':_0x5b5263[_0x281fe6(0x10c)]};_0x5b5263[_0x281fe6(0x10d)][_0x281fe6(0x110)]&&(_0x2791b1[_0x281fe6(0x110)]=_0x5b5263[_0x281fe6(0x10d)][_0x281fe6(0x110)]);const _0xc0014b=_0xbacee[_0x281fe6(0x112)]('schemas');if(_0xc0014b&&_0x5b5263['valid']){const _0x45afb0=_0xc0014b[_0x281fe6(0xfe)](',')[_0x281fe6(0x11d)](_0x377c85=>_0x377c85[_0x281fe6(0x105)]())['filter'](Boolean),_0xc76f4f=[],_0x38ecd4=filterDbTableBackedDatasets(await listDatasets(_0xbacee[_0x281fe6(0x113)])),_0x295815=new Map(_0x38ecd4['map'](_0x329467=>[_0x329467['dbtableConfig']?.['tableName']?.['toLowerCase'](),_0x329467]));for(const _0xa22761 of _0x5b5263[_0x281fe6(0x100)]){const _0x127c92=_0x295815[_0x281fe6(0x10f)](_0xa22761[_0x281fe6(0x11e)]());!_0x127c92&&_0xc76f4f[_0x281fe6(0xed)]('Table\x20\x22'+_0xa22761+_0x281fe6(0x11c));}for(const _0x62249f of _0x45afb0){let _0xe48120;try{_0xe48120=await getDatasetDetail(_0x62249f);}catch{_0xc76f4f[_0x281fe6(0xed)](_0x281fe6(0x107)+_0x62249f+_0x281fe6(0x11b));continue;}assertDatasetIsDbTableBacked(_0xe48120,_0x281fe6(0xf1));const _0x1b405e=Array[_0x281fe6(0x103)](_0xe48120['fields'])?_0xe48120[_0x281fe6(0x114)]:[],_0x2e14bb=new Set(_0x1b405e[_0x281fe6(0x11d)](_0x49e17f=>_0x49e17f[_0x281fe6(0x115)]?.[_0x281fe6(0x11e)]())),_0x4c5b71=_0xe48120[_0x281fe6(0xfb)]?.[_0x281fe6(0x101)]||_0xe48120['tableName']||_0x62249f;_0x2791b1[_0x281fe6(0x10e)+_0x4c5b71]={'code':_0x62249f,'tableName':_0x4c5b71,'fieldCount':_0x2e14bb[_0x281fe6(0x108)],'fields':Array['from'](_0x2e14bb)};}_0xc76f4f[_0x281fe6(0xf2)]>0x0&&(_0x2791b1[_0x281fe6(0x106)]=_0xc76f4f);}return{'ok':_0x5b5263[_0x281fe6(0xfa)],'data':_0x2791b1,'message':_0x5b5263[_0x281fe6(0x10c)]};}};
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_0xaa26cc=a143_0x8521;(function(_0x3b3c31,_0x30b4bb){const _0x533da6=a143_0x8521,_0xebb8ea=_0x3b3c31();while(!![]){try{const _0x5bef1a=-parseInt(_0x533da6(0x17b))/0x1+parseInt(_0x533da6(0x187))/0x2+parseInt(_0x533da6(0x178))/0x3*(parseInt(_0x533da6(0x17a))/0x4)+parseInt(_0x533da6(0x190))/0x5+parseInt(_0x533da6(0x181))/0x6+parseInt(_0x533da6(0x18d))/0x7+parseInt(_0x533da6(0x195))/0x8*(-parseInt(_0x533da6(0x18f))/0x9);if(_0x5bef1a===_0x30b4bb)break;else _0xebb8ea['push'](_0xebb8ea['shift']());}catch(_0x1f383e){_0xebb8ea['push'](_0xebb8ea['shift']());}}}(a143_0x191f,0xe4c95));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_0xaa26cc(0x16c),SAFE_PROFILE_KEYS=[a143_0xaa26cc(0x164),a143_0xaa26cc(0x17c),a143_0xaa26cc(0x177),'format','pageSize',a143_0xaa26cc(0x198),'locale'],workspaceFlags=[{'name':a143_0xaa26cc(0x166),'type':a143_0xaa26cc(0x188),'description':a143_0xaa26cc(0x176)},{'name':a143_0xaa26cc(0x164),'type':a143_0xaa26cc(0x188),'description':a143_0xaa26cc(0x16b)},{'name':a143_0xaa26cc(0x17c),'type':'string','description':a143_0xaa26cc(0x179),'enum':[...RABETBASE_ENV_VALUES]},{'name':a143_0xaa26cc(0x177),'type':a143_0xaa26cc(0x188),'description':a143_0xaa26cc(0x167)},{'name':a143_0xaa26cc(0x17f),'type':a143_0xaa26cc(0x188),'description':'Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a143_0xaa26cc(0x183),'type':a143_0xaa26cc(0x170),'description':a143_0xaa26cc(0x16e)},{'name':'riskLevel','type':a143_0xaa26cc(0x188),'description':a143_0xaa26cc(0x172),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':a143_0xaa26cc(0x188),'description':a143_0xaa26cc(0x19d)}];function isRecord(_0x364577){const _0x3ebb35=a143_0xaa26cc;return!!_0x364577&&typeof _0x364577==='object'&&!Array[_0x3ebb35(0x16f)](_0x364577);}function a143_0x191f(){const _0x70e494=['format','defaultApp','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','join','16WuqnUV','length','apps','riskLevel','keys','\x20workspace\x20use\x20--app\x20<name>`.','workspace.','locale','Locale\x20for\x20this\x20workspace\x20app\x20profile','workspace','Invalid\x20appcode:\x20','appcode','\x20(appcode:\x20','app','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','validation','trim','\x20--appcode\x20<code>`.','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','init','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','isArray','number','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','globalConfig','project','Use\x20`','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','apiDir','42skyrqL','Target\x20environment','422428AYVDjt','1145158HCdQMm','env','\x20workspace\x20','Switch\x20the\x20current\x20workspace\x20app\x20binding','defaultFormat','flag','10079046pzQttZ','str','pageSize','updated','Initialize\x20the\x20current\x20workspace\x20app\x20binding','write','735364iRsQYH','string','initialized','Missing\x20workspace\x20app\x20selector.','\x20--app\x20','.\x20Credentials:\x20not\x20written.','11046371bIlkiJ','use','16666884eDyMOJ','3409725xpcpMS'];a143_0x191f=function(){return _0x70e494;};return a143_0x191f();}function assertValidAppcode(_0x3adcc9){const _0x1dcdea=a143_0xaa26cc,{valid:_0x4ea61b,message:_0x15cfdd}=validateAppcode(_0x3adcc9);if(!_0x4ea61b)throw CliErrors[_0x1dcdea(0x168)](_0x1dcdea(0x19f)+_0x3adcc9,_0x15cfdd);}function sanitizeProfile(_0x252e24){if(!isRecord(_0x252e24))return{};const _0x493b55={};for(const _0x3b7d3f of SAFE_PROFILE_KEYS){if(_0x252e24[_0x3b7d3f]!==undefined)_0x493b55[_0x3b7d3f]=_0x252e24[_0x3b7d3f];}return _0x493b55;}function a143_0x8521(_0x4191f7,_0x502fa0){_0x4191f7=_0x4191f7-0x164;const _0x191f0d=a143_0x191f();let _0x8521a3=_0x191f0d[_0x4191f7];return _0x8521a3;}function cloneProfile(_0x29a31c){return isRecord(_0x29a31c)?{..._0x29a31c}:{};}function collectWorkspaceProfileOverrides(_0x29f07d){const _0x8ae517=a143_0xaa26cc,_0x6d831a={},_0x358d4c=_0x29f07d[_0x8ae517(0x182)](_0x8ae517(0x17c)),_0x29aee4=_0x29f07d['str'](_0x8ae517(0x177)),_0x126cff=_0x29f07d['str']('defaultFormat'),_0x3a7fdd=_0x29f07d[_0x8ae517(0x180)]('pageSize'),_0x393d11=_0x29f07d[_0x8ae517(0x182)]('riskLevel'),_0x381e7b=_0x29f07d[_0x8ae517(0x182)](_0x8ae517(0x19c));if(_0x358d4c)_0x6d831a['env']=_0x358d4c;if(_0x29aee4)_0x6d831a[_0x8ae517(0x177)]=_0x29aee4;if(_0x126cff)_0x6d831a[_0x8ae517(0x191)]=_0x126cff;if(_0x3a7fdd!==undefined&&_0x3a7fdd!=='')_0x6d831a[_0x8ae517(0x183)]=Number(_0x3a7fdd);if(_0x393d11)_0x6d831a[_0x8ae517(0x198)]=_0x393d11;if(_0x381e7b)_0x6d831a[_0x8ae517(0x19c)]=_0x381e7b;return _0x6d831a;}async function validateWorkspaceArgs(_0x4d2de2){const _0x3bb54f=a143_0xaa26cc,_0x1644c0=_0x4d2de2[_0x3bb54f(0x182)](_0x3bb54f(0x166))[_0x3bb54f(0x169)](),_0x13f81e=_0x4d2de2[_0x3bb54f(0x182)](_0x3bb54f(0x164))[_0x3bb54f(0x169)]();if(!_0x1644c0&&!_0x13f81e)throw CliErrors[_0x3bb54f(0x168)](_0x3bb54f(0x18a),_0x3bb54f(0x175)+CLI_BIN_NAME+_0x3bb54f(0x171)+CLI_BIN_NAME+_0x3bb54f(0x19a));if(_0x13f81e)assertValidAppcode(_0x13f81e);}function resolveKnownApps(){const _0x14a4b9=a143_0xaa26cc,{config:_0x2baa0f,layers:_0x359910}=readRawConfigWithLayers(),_0x456c0b=isRecord(_0x2baa0f[_0x14a4b9(0x197)])?_0x2baa0f[_0x14a4b9(0x197)]:{},_0x4bf7cc=isRecord(_0x359910['globalConfig'][_0x14a4b9(0x197)])?_0x359910[_0x14a4b9(0x173)][_0x14a4b9(0x197)]:{};return{..._0x4bf7cc,..._0x456c0b};}async function configureWorkspace(_0x443b30,_0x29596e){const _0x361364=a143_0xaa26cc,_0x4b3faa=_0x443b30['str'](_0x361364(0x166))[_0x361364(0x169)](),_0x298ed1=_0x443b30[_0x361364(0x182)](_0x361364(0x164))[_0x361364(0x169)](),_0x4e3b59=_0x4b3faa||_0x298ed1;if(!_0x4e3b59)throw CliErrors[_0x361364(0x168)](_0x361364(0x18a),'Use\x20`'+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x298ed1)assertValidAppcode(_0x298ed1);const _0x14e54c=resolveWriteConfigPath(_0x361364(0x174)),_0x1a3a1d=readConfigFile(_0x14e54c),_0x256f0d=resolveKnownApps(),_0x302894=isRecord(_0x1a3a1d['apps'])?{..._0x1a3a1d[_0x361364(0x197)]}:{},_0x32e19c=cloneProfile(_0x302894[_0x4e3b59]),_0x3aa6f9=sanitizeProfile(_0x256f0d[_0x4e3b59]),_0x5af224=_0x298ed1?{}:_0x3aa6f9,_0x4c0d50=_0x298ed1||_0x5af224[_0x361364(0x164)];if(!_0x4c0d50){const _0x446d0f=Object[_0x361364(0x199)](_0x256f0d),_0x227bfd=_0x446d0f[_0x361364(0x196)]===0x0?_0x361364(0x175)+CLI_BIN_NAME+_0x361364(0x17d)+_0x29596e+_0x361364(0x18b)+_0x4e3b59+_0x361364(0x16a):_0x361364(0x193)+_0x446d0f[_0x361364(0x194)](',\x20');throw CliErrors[_0x361364(0x168)]('App\x20\x22'+_0x4e3b59+'\x22\x20not\x20found.',_0x227bfd);}assertValidAppcode(String(_0x4c0d50));const _0x1fcc4f={..._0x5af224,..._0x32e19c,'appcode':String(_0x4c0d50),...collectWorkspaceProfileOverrides(_0x443b30)};return _0x302894[_0x4e3b59]=_0x1fcc4f,_0x1a3a1d['apps']=_0x302894,_0x1a3a1d[_0x361364(0x192)]=_0x4e3b59,delete _0x1a3a1d[_0x361364(0x164)],delete _0x1a3a1d['app'],_0x1fcc4f[_0x361364(0x17c)]&&(_0x1a3a1d['env']=_0x1fcc4f[_0x361364(0x17c)]),writeConfigFile(_0x14e54c,_0x1a3a1d),{'ok':!![],'message':'Workspace\x20'+(_0x29596e===_0x361364(0x16d)?_0x361364(0x189):_0x361364(0x184))+':\x20'+_0x4e3b59+_0x361364(0x165)+_0x1fcc4f[_0x361364(0x164)]+').\x20Config:\x20'+_0x14e54c+_0x361364(0x18c),'data':{'operation':_0x361364(0x19b)+_0x29596e,'configPath':_0x14e54c,'app':_0x4e3b59,'appcode':_0x1fcc4f[_0x361364(0x164)],'env':_0x1fcc4f['env']??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a143_0xaa26cc(0x19e),'command':'init','description':a143_0xaa26cc(0x185),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x1599ec=>configureWorkspace(_0x1599ec,a143_0xaa26cc(0x16d))},workspaceUseDefinition={'service':'workspace','command':'use','description':a143_0xaa26cc(0x17e),'risk':a143_0xaa26cc(0x186),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x3e019c=>configureWorkspace(_0x3e019c,a143_0xaa26cc(0x18e))};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_0x4544eb=a144_0x275f;(function(_0x505625,_0x40d0a1){const _0x413b6b=a144_0x275f,_0xf7acc=_0x505625();while(!![]){try{const _0x2f0ca7=-parseInt(_0x413b6b(0x143))/0x1+-parseInt(_0x413b6b(0x161))/0x2*(-parseInt(_0x413b6b(0x158))/0x3)+-parseInt(_0x413b6b(0x148))/0x4+parseInt(_0x413b6b(0x14c))/0x5+-parseInt(_0x413b6b(0x151))/0x6*(parseInt(_0x413b6b(0x156))/0x7)+parseInt(_0x413b6b(0x166))/0x8+-parseInt(_0x413b6b(0x163))/0x9*(-parseInt(_0x413b6b(0x141))/0xa);if(_0x2f0ca7===_0x40d0a1)break;else _0xf7acc['push'](_0xf7acc['shift']());}catch(_0x32f491){_0xf7acc['push'](_0xf7acc['shift']());}}}(a144_0xbcba,0x83f4c));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';function a144_0xbcba(){const _0x20dea7=['287dWTHHh','env','1293EGlWtv','apps','accessKey','Access\x20key','cookie','length','map','apiDir','format','754byPEqy','Auth\x20cookie','9846FIbvLS','API\x20directory\x20path','keys','5884056DrIwNU','Risk\x20level','appcode','12260EpotNX','trim','26774rWpNdQ','pageSize','Target\x20environment','zh-CN','toLowerCase','4179548EfCPlV','app','join','string','1926230YMESWl','riskLevel','has','en-US','locale','148146zBPbqR','inherit','defaultApp','entries','Config\x20key\x20('];a144_0xbcba=function(){return _0x20dea7;};return a144_0xbcba();}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','accessKey',a144_0x4544eb(0x150),a144_0x4544eb(0x160),a144_0x4544eb(0x14d)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a144_0x4544eb(0x140),a144_0x4544eb(0x157),a144_0x4544eb(0x150),a144_0x4544eb(0x160),a144_0x4544eb(0x15c),a144_0x4544eb(0x15a),a144_0x4544eb(0x15f)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x1cb2f3){const _0xcd21e2=a144_0x4544eb;return[..._0x1cb2f3][_0xcd21e2(0x14a)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x498a32){const _0x2f66d3=a144_0x4544eb;return TOP_LEVEL_CONFIG_KEYS[_0x2f66d3(0x14e)](_0x498a32);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x1ea7e5=a144_0x4544eb;return _0x1ea7e5(0x155)+getTopLevelConfigKeySummary()+')';}function a144_0x275f(_0x5e1630,_0x2e98bb){_0x5e1630=_0x5e1630-0x13f;const _0xbcba2e=a144_0xbcba();let _0x275f78=_0xbcba2e[_0x5e1630];return _0x275f78;}export const APP_PROFILE_FLAG_KEY_MAP={'env':a144_0x4544eb(0x157),'apiDir':a144_0x4544eb(0x15f),'cookie':a144_0x4544eb(0x15c),'accessKey':'accessKey','defaultFormat':a144_0x4544eb(0x160),'pageSize':a144_0x4544eb(0x144),'riskLevel':a144_0x4544eb(0x14d),'locale':'locale'};export function getAppProfileFlagDefs(){const _0x331b08=a144_0x4544eb;return[{'name':_0x331b08(0x157),'type':_0x331b08(0x14b),'description':_0x331b08(0x145),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x331b08(0x15f),'type':_0x331b08(0x14b),'description':_0x331b08(0x164)},{'name':_0x331b08(0x15c),'type':'string','description':_0x331b08(0x162),'hidden':!![]},{'name':'accessKey','type':'string','description':_0x331b08(0x15b),'hidden':!![]},{'name':'defaultFormat','type':_0x331b08(0x14b),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x331b08(0x144),'type':'number','description':'Default\x20page\x20size'},{'name':_0x331b08(0x14d),'type':_0x331b08(0x14b),'description':_0x331b08(0x13f),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x331b08(0x150),'type':_0x331b08(0x14b),'description':'Locale'}];}export function collectAppProfileOverrides(_0xa6b665){const _0x285923=a144_0x4544eb,_0x571213={};for(const [_0x193217,_0x4d6ba2]of Object[_0x285923(0x154)](APP_PROFILE_FLAG_KEY_MAP)){const _0x5100ab=_0xa6b665(_0x193217);if(!_0x5100ab)continue;_0x571213[_0x4d6ba2]=_0x4d6ba2===_0x285923(0x144)?Number(_0x5100ab):_0x5100ab;}return _0x571213;}export function buildAppProfileListFields(_0x230f3f){const _0x49eb2a=a144_0x4544eb;return{'env':_0x230f3f['env']??null,'apiDir':_0x230f3f[_0x49eb2a(0x15f)]??null,'hasCookie':!!_0x230f3f[_0x49eb2a(0x15c)],'hasAccessKey':!!_0x230f3f[_0x49eb2a(0x15a)],'format':_0x230f3f['format']??null,'pageSize':_0x230f3f[_0x49eb2a(0x144)]??null,'riskLevel':_0x230f3f[_0x49eb2a(0x14d)]??null,'locale':_0x230f3f[_0x49eb2a(0x150)]??null};}export function buildAppDoctorFields(_0x9af1cc,_0x368f41){const _0x57948c=a144_0x4544eb;return{'env':{'value':_0x9af1cc[_0x57948c(0x157)]||_0x368f41[_0x57948c(0x157)],'source':_0x9af1cc['env']?'app':_0x57948c(0x152)},'apiDir':{'value':_0x9af1cc[_0x57948c(0x15f)]||_0x368f41[_0x57948c(0x15f)],'source':_0x9af1cc['apiDir']?_0x57948c(0x149):'inherit'},'cookie':{'value':_0x9af1cc[_0x57948c(0x15c)]||_0x368f41[_0x57948c(0x15c)],'source':_0x9af1cc['cookie']?_0x57948c(0x149):_0x57948c(0x152)},'accessKey':{'value':_0x9af1cc[_0x57948c(0x15a)]||_0x368f41[_0x57948c(0x15a)],'source':_0x9af1cc['accessKey']?'app':_0x57948c(0x152)}};}export function buildCanonicalAppConfig(_0x3f143e,_0x20b467){const _0x593393=a144_0x4544eb,_0x21993b=_0x3f143e[_0x593393(0x15e)](_0x23a007=>String(_0x23a007||'')[_0x593393(0x142)]())['filter'](Boolean);if(_0x21993b[_0x593393(0x15d)]===0x0)return{};const _0x4c734e={};for(const _0x3e76d6 of _0x21993b){_0x4c734e[_0x3e76d6]=_0x20b467?{'appcode':_0x3e76d6,'env':_0x20b467}:{'appcode':_0x3e76d6};}return{'apps':_0x4c734e,'defaultApp':_0x21993b[0x0]};}export function buildCanonicalProjectConfig(_0x533904,_0x5c92a5){const _0x5a916c=a144_0x4544eb,{appCodes:appCodes=[],env:_0x71931a,metadata:_0x4b49fe}=_0x5c92a5,_0x5f3273={..._0x533904,..._0x4b49fe||{}};delete _0x5f3273[_0x5a916c(0x140)],delete _0x5f3273[_0x5a916c(0x149)];if(_0x71931a)_0x5f3273[_0x5a916c(0x157)]=_0x71931a;else!_0x5f3273['env']&&(_0x5f3273[_0x5a916c(0x157)]=DEFAULT_CONFIG_VALUES[_0x5a916c(0x157)]);const _0x58c0ae=buildCanonicalAppConfig(appCodes,_0x5f3273['env']);return Object[_0x5a916c(0x165)](_0x58c0ae)[_0x5a916c(0x15d)]>0x0&&(_0x5f3273[_0x5a916c(0x159)]=_0x58c0ae[_0x5a916c(0x159)],_0x5f3273[_0x5a916c(0x153)]=_0x58c0ae[_0x5a916c(0x153)]),_0x5f3273;}const LOCALE_MAP={'zh':a144_0x4544eb(0x146),'zh-cn':a144_0x4544eb(0x146),'zh_cn':a144_0x4544eb(0x146),'en':'en-US','en-us':a144_0x4544eb(0x14f),'en_us':a144_0x4544eb(0x14f)};export function normalizeLocale(_0x5810c8){const _0x4c6431=a144_0x4544eb;if(!_0x5810c8)return null;return LOCALE_MAP[_0x5810c8[_0x4c6431(0x147)]()]??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
- const a145_0x5d534b=a145_0x1884;function a145_0xfc44(){const _0x32c472=['24oyrcHl','2778TSdgOe','48vbbTad','10220mUBEut','23319aQLJpG','403222MCNdiN','855440JNtgQy','1NlRfcx','12749XNsCrL','708odLegT','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','1824111SEKLzP','252090fRwDML'];a145_0xfc44=function(){return _0x32c472;};return a145_0xfc44();}function a145_0x1884(_0x8c799c,_0x5588ef){_0x8c799c=_0x8c799c-0xbc;const _0xfc44c6=a145_0xfc44();let _0x188415=_0xfc44c6[_0x8c799c];return _0x188415;}(function(_0xbcc129,_0x5e37a0){const _0x11c46c=a145_0x1884,_0x47469d=_0xbcc129();while(!![]){try{const _0x4fbac1=-parseInt(_0x11c46c(0xc7))/0x1*(-parseInt(_0x11c46c(0xc5))/0x2)+parseInt(_0x11c46c(0xc4))/0x3*(parseInt(_0x11c46c(0xc2))/0x4)+parseInt(_0x11c46c(0xbf))/0x5+parseInt(_0x11c46c(0xc1))/0x6*(-parseInt(_0x11c46c(0xc3))/0x7)+-parseInt(_0x11c46c(0xc0))/0x8*(-parseInt(_0x11c46c(0xbe))/0x9)+parseInt(_0x11c46c(0xc6))/0xa+-parseInt(_0x11c46c(0xc8))/0xb*(-parseInt(_0x11c46c(0xbc))/0xc);if(_0x4fbac1===_0x5e37a0)break;else _0x47469d['push'](_0x47469d['shift']());}catch(_0x23d3f2){_0x47469d['push'](_0x47469d['shift']());}}}(a145_0xfc44,0x694b7));export const CLI_VERSION_POLICY_URL=a145_0x5d534b(0xbd);
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
- function a146_0x3063(_0x1aa424,_0x446e08){_0x1aa424=_0x1aa424-0x1e2;const _0x2f4bf2=a146_0x2f4b();let _0x30633d=_0x2f4bf2[_0x1aa424];return _0x30633d;}const a146_0x2759d3=a146_0x3063;(function(_0x3f0c64,_0x46a169){const _0x45fd67=a146_0x3063,_0xb9ca35=_0x3f0c64();while(!![]){try{const _0x4982df=-parseInt(_0x45fd67(0x231))/0x1*(-parseInt(_0x45fd67(0x1fd))/0x2)+-parseInt(_0x45fd67(0x24e))/0x3+parseInt(_0x45fd67(0x20f))/0x4*(parseInt(_0x45fd67(0x22a))/0x5)+parseInt(_0x45fd67(0x1fb))/0x6*(-parseInt(_0x45fd67(0x1fc))/0x7)+-parseInt(_0x45fd67(0x202))/0x8+parseInt(_0x45fd67(0x23a))/0x9*(parseInt(_0x45fd67(0x235))/0xa)+-parseInt(_0x45fd67(0x242))/0xb*(-parseInt(_0x45fd67(0x21e))/0xc);if(_0x4982df===_0x46a169)break;else _0xb9ca35['push'](_0xb9ca35['shift']());}catch(_0x208533){_0xb9ca35['push'](_0xb9ca35['shift']());}}}(a146_0x2f4b,0x660a8));export const CLI_BIN_NAME=a146_0x2759d3(0x234);function a146_0x2f4b(){const _0x9f6a2f=['12NFVwLx','output','Watch\x20mode','db-id','type','Preview\x20operation\x20without\x20executing','dry-run','Force\x20overwrite','all','sqlcode','tags','yes','boolean','non-interactive','<expr>','156ZcpbwU','Type\x20filter','params','from-env','format','sql-name','sqlname','name','Description','Confirm\x20destructive\x20action','Schemas','Record\x20ID','15545QuxOXM','Skip\x20confirmation\x20for\x20high-risk\x20writes','SQL\x20string','Clear','Reveal\x20sensitive\x20value','expected-count','description-file','330YAlYfA','datasetcode','global','rabetbase','10FWnpya','key','dryRun','confirm','operation','3183228xxzpqu','<code>','Rabetbase\x20CLI','skip-imports','reveal','string','stdin','Show\x20help','3971MxWUvm','Output\x20format','Config\x20value','file','Override\x20appcode','Force\x20non-interactive\x20mode\x20(CI)','Page\x20number','@lovrabet/rabetbase-cli','fromEntries','target','verbose','sql','1359360BhpXyY','enableBffSave','Title','schemas','nonInteractive','env','operationType','sqlName','Function\x20node','Keyword\x20filter','operation-type','value','dbId','remote','JSON\x20params','Environment','<name>','functionNode','Page\x20size','Target\x20path','Read\x20value\x20from\x20stdin','json\x20|\x20pretty\x20|\x20compress','Expected\x20affected\x20count','description','project','Description\x20file','code','dbid','Tags','Use\x20global\x20config\x20scope','watch','appcode','Select\x20app\x20profile\x20by\x20name','18nIGdHU','264103QPLdtq','3750JQSRVW','production\x20|\x20daily','clear','descriptionFile','map','17560BoQTED','Operation\x20type','SQL\x20name','Skip\x20import\x20generation','title','page','Verbose\x20output','pagesize','expectedCount','DB\x20ID','force','Dataset\x20code','app'];a146_0x2f4b=function(){return _0x9f6a2f;};return a146_0x2f4b();}export const CLI_DISPLAY_NAME=a146_0x2759d3(0x23c);export const NPM_PACKAGE_NAME=a146_0x2759d3(0x249);export const GLOBAL_FLAGS=[{'name':a146_0x2759d3(0x1f9),'meowKey':a146_0x2759d3(0x1f9),'type':a146_0x2759d3(0x23f),'description':a146_0x2759d3(0x246),'hint':a146_0x2759d3(0x23b)},{'name':'app','meowKey':a146_0x2759d3(0x20e),'type':a146_0x2759d3(0x23f),'description':a146_0x2759d3(0x1fa),'hint':a146_0x2759d3(0x1ea)},{'name':a146_0x2759d3(0x253),'meowKey':a146_0x2759d3(0x253),'type':'string','description':a146_0x2759d3(0x1e9),'hint':a146_0x2759d3(0x1fe)},{'name':a146_0x2759d3(0x222),'meowKey':a146_0x2759d3(0x222),'type':a146_0x2759d3(0x23f),'description':a146_0x2759d3(0x243),'hint':a146_0x2759d3(0x1ef)},{'name':'jq','meowKey':'jq','type':a146_0x2759d3(0x23f),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a146_0x2759d3(0x21d)},{'name':a146_0x2759d3(0x215),'meowKey':a146_0x2759d3(0x237),'type':a146_0x2759d3(0x21b),'description':a146_0x2759d3(0x214)},{'name':a146_0x2759d3(0x21a),'meowKey':a146_0x2759d3(0x21a),'type':'boolean','description':a146_0x2759d3(0x22b)},{'name':a146_0x2759d3(0x21c),'meowKey':a146_0x2759d3(0x252),'type':a146_0x2759d3(0x21b),'description':a146_0x2759d3(0x247)},{'name':'global','meowKey':a146_0x2759d3(0x233),'type':a146_0x2759d3(0x21b),'description':a146_0x2759d3(0x1f7)},{'name':a146_0x2759d3(0x1f2),'meowKey':'project','type':a146_0x2759d3(0x21b),'description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a146_0x2759d3(0x21b),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':'help','meowKey':'help','type':'boolean','description':a146_0x2759d3(0x241)},{'name':'name','meowKey':a146_0x2759d3(0x225),'type':a146_0x2759d3(0x23f),'description':'Name','hidden':!![]},{'name':'title','meowKey':a146_0x2759d3(0x206),'type':a146_0x2759d3(0x23f),'description':a146_0x2759d3(0x250),'hidden':!![]},{'name':a146_0x2759d3(0x1ff),'meowKey':a146_0x2759d3(0x1ff),'type':a146_0x2759d3(0x21b),'description':a146_0x2759d3(0x22d),'hidden':!![]},{'name':a146_0x2759d3(0x1f8),'meowKey':'watch','type':a146_0x2759d3(0x21b),'description':a146_0x2759d3(0x211),'hidden':!![]},{'name':a146_0x2759d3(0x210),'meowKey':a146_0x2759d3(0x210),'type':'string','description':'Output\x20path','hidden':!![]},{'name':a146_0x2759d3(0x220),'meowKey':a146_0x2759d3(0x220),'type':a146_0x2759d3(0x23f),'description':a146_0x2759d3(0x1e8),'hidden':!![]},{'name':a146_0x2759d3(0x232),'meowKey':a146_0x2759d3(0x232),'type':a146_0x2759d3(0x23f),'description':a146_0x2759d3(0x20d),'hidden':!![]},{'name':a146_0x2759d3(0x217),'meowKey':a146_0x2759d3(0x217),'type':'boolean','description':'Apply\x20to\x20all','hidden':!![]},{'name':'enable-bff-save','meowKey':a146_0x2759d3(0x24f),'type':a146_0x2759d3(0x21b),'description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a146_0x2759d3(0x23f),'description':a146_0x2759d3(0x229),'hidden':!![]},{'name':a146_0x2759d3(0x213),'meowKey':a146_0x2759d3(0x213),'type':a146_0x2759d3(0x23f),'description':a146_0x2759d3(0x21f),'hidden':!![]},{'name':a146_0x2759d3(0x245),'meowKey':a146_0x2759d3(0x245),'type':a146_0x2759d3(0x23f),'description':'File\x20path','hidden':!![]},{'name':'sqlcode','meowKey':a146_0x2759d3(0x218),'type':a146_0x2759d3(0x23f),'description':'SQL\x20code','hidden':!![]},{'name':a146_0x2759d3(0x223),'meowKey':a146_0x2759d3(0x255),'type':a146_0x2759d3(0x23f),'description':'SQL\x20name','hidden':!![]},{'name':'sqlname','meowKey':a146_0x2759d3(0x224),'type':a146_0x2759d3(0x23f),'description':a146_0x2759d3(0x204),'hidden':!![]},{'name':a146_0x2759d3(0x212),'meowKey':a146_0x2759d3(0x1e6),'type':a146_0x2759d3(0x23f),'description':'DB\x20ID','hidden':!![]},{'name':a146_0x2759d3(0x1f5),'meowKey':a146_0x2759d3(0x1f5),'type':a146_0x2759d3(0x23f),'description':a146_0x2759d3(0x20b),'hidden':!![]},{'name':'description','meowKey':a146_0x2759d3(0x1f1),'type':a146_0x2759d3(0x23f),'description':a146_0x2759d3(0x226),'hidden':!![]},{'name':a146_0x2759d3(0x230),'meowKey':a146_0x2759d3(0x200),'type':a146_0x2759d3(0x23f),'description':a146_0x2759d3(0x1f3),'hidden':!![]},{'name':a146_0x2759d3(0x207),'meowKey':a146_0x2759d3(0x207),'type':a146_0x2759d3(0x23f),'description':a146_0x2759d3(0x248),'hidden':!![]},{'name':a146_0x2759d3(0x209),'meowKey':a146_0x2759d3(0x209),'type':a146_0x2759d3(0x23f),'description':a146_0x2759d3(0x1ec),'hidden':!![]},{'name':'keyword','meowKey':'keyword','type':a146_0x2759d3(0x23f),'description':a146_0x2759d3(0x1e3),'hidden':!![]},{'name':a146_0x2759d3(0x1f4),'meowKey':a146_0x2759d3(0x1f4),'type':a146_0x2759d3(0x23f),'description':'Code\x20filter','hidden':!![]},{'name':a146_0x2759d3(0x24d),'meowKey':a146_0x2759d3(0x24d),'type':a146_0x2759d3(0x23f),'description':a146_0x2759d3(0x22c),'hidden':!![]},{'name':a146_0x2759d3(0x251),'meowKey':a146_0x2759d3(0x251),'type':a146_0x2759d3(0x23f),'description':a146_0x2759d3(0x228),'hidden':!![]},{'name':a146_0x2759d3(0x239),'meowKey':a146_0x2759d3(0x239),'type':a146_0x2759d3(0x23f),'description':a146_0x2759d3(0x203),'hidden':!![]},{'name':a146_0x2759d3(0x24b),'meowKey':'target','type':a146_0x2759d3(0x23f),'description':a146_0x2759d3(0x1ed),'hidden':!![]},{'name':a146_0x2759d3(0x23d),'meowKey':'skipImports','type':a146_0x2759d3(0x21b),'description':a146_0x2759d3(0x205),'hidden':!![]},{'name':a146_0x2759d3(0x236),'meowKey':a146_0x2759d3(0x236),'type':'string','description':'Config\x20key','hidden':!![]},{'name':a146_0x2759d3(0x1e5),'meowKey':'value','type':a146_0x2759d3(0x23f),'description':a146_0x2759d3(0x244),'hidden':!![]},{'name':a146_0x2759d3(0x219),'meowKey':'tags','type':a146_0x2759d3(0x23f),'description':a146_0x2759d3(0x1f6),'hidden':!![]},{'name':a146_0x2759d3(0x240),'meowKey':a146_0x2759d3(0x240),'type':a146_0x2759d3(0x21b),'description':a146_0x2759d3(0x1ee),'hidden':!![]},{'name':a146_0x2759d3(0x221),'meowKey':'fromEnv','type':a146_0x2759d3(0x23f),'description':'Read\x20value\x20from\x20environment\x20variable','hidden':!![]},{'name':a146_0x2759d3(0x23e),'meowKey':a146_0x2759d3(0x23e),'type':a146_0x2759d3(0x21b),'description':a146_0x2759d3(0x22e),'hidden':!![]},{'name':a146_0x2759d3(0x20c),'meowKey':a146_0x2759d3(0x20c),'type':a146_0x2759d3(0x21b),'description':a146_0x2759d3(0x216),'hidden':!![]},{'name':a146_0x2759d3(0x238),'meowKey':a146_0x2759d3(0x238),'type':a146_0x2759d3(0x21b),'description':a146_0x2759d3(0x227),'hidden':!![]},{'name':a146_0x2759d3(0x1e7),'meowKey':a146_0x2759d3(0x1e7),'type':a146_0x2759d3(0x21b),'description':'Use\x20remote','hidden':!![]},{'name':a146_0x2759d3(0x24c),'meowKey':a146_0x2759d3(0x24c),'type':a146_0x2759d3(0x21b),'description':a146_0x2759d3(0x208),'hidden':!![]},{'name':a146_0x2759d3(0x22f),'meowKey':a146_0x2759d3(0x20a),'type':'string','description':a146_0x2759d3(0x1f0),'hidden':!![]},{'name':a146_0x2759d3(0x1e4),'meowKey':a146_0x2759d3(0x254),'type':'string','description':a146_0x2759d3(0x203),'hidden':!![]},{'name':'function-node','meowKey':a146_0x2759d3(0x1eb),'type':a146_0x2759d3(0x23f),'description':a146_0x2759d3(0x1e2),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a146_0x2759d3(0x1f9),a146_0x2759d3(0x20e),a146_0x2759d3(0x253),a146_0x2759d3(0x222),'jq',a146_0x2759d3(0x215),a146_0x2759d3(0x21a),'non-interactive','ci']);export function buildMeowFlags(){const _0x66ff88=a146_0x2759d3;return Object[_0x66ff88(0x24a)](GLOBAL_FLAGS[_0x66ff88(0x201)](_0x3c505c=>[_0x3c505c['meowKey'],{'type':_0x3c505c['type']}]));}
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
- const a147_0x407c8d=a147_0x3577;function a147_0x3b72(){const _0x3b5301=['production','367905WIXKuI','1535790tiglra','147fFEYaz','2034480tlwfqY','246580EUlEMO','6wTXqoS','compress','178858QysUby','4891356LCpGKk','954QeqkFW','118344AvaaHQ'];a147_0x3b72=function(){return _0x3b5301;};return a147_0x3b72();}function a147_0x3577(_0x1e636f,_0x58db71){_0x1e636f=_0x1e636f-0x1e3;const _0x3b7276=a147_0x3b72();let _0x357732=_0x3b7276[_0x1e636f];return _0x357732;}(function(_0x3ac3c3,_0x209e30){const _0x121f1a=a147_0x3577,_0x26ea3d=_0x3ac3c3();while(!![]){try{const _0x25e1a9=-parseInt(_0x121f1a(0x1e7))/0x1+parseInt(_0x121f1a(0x1ee))/0x2*(parseInt(_0x121f1a(0x1ec))/0x3)+-parseInt(_0x121f1a(0x1ea))/0x4+-parseInt(_0x121f1a(0x1e8))/0x5+-parseInt(_0x121f1a(0x1e3))/0x6+-parseInt(_0x121f1a(0x1e9))/0x7*(parseInt(_0x121f1a(0x1e5))/0x8)+parseInt(_0x121f1a(0x1e4))/0x9*(parseInt(_0x121f1a(0x1eb))/0xa);if(_0x25e1a9===_0x209e30)break;else _0x26ea3d['push'](_0x26ea3d['shift']());}catch(_0x20c853){_0x26ea3d['push'](_0x26ea3d['shift']());}}}(a147_0x3b72,0x75ee4));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a147_0x407c8d(0x1e6),'format':'compress','locale':'en-US','riskLevel':'high-risk-write','apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a147_0x407c8d(0x1ed);
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_0xf6be2a=a148_0x3738;(function(_0x2c2f57,_0x432b5f){const _0x69310f=a148_0x3738,_0x12caf0=_0x2c2f57();while(!![]){try{const _0x643a3d=parseInt(_0x69310f(0xc7))/0x1*(parseInt(_0x69310f(0xd4))/0x2)+-parseInt(_0x69310f(0xcc))/0x3+parseInt(_0x69310f(0xd0))/0x4*(-parseInt(_0x69310f(0xd8))/0x5)+-parseInt(_0x69310f(0xd2))/0x6*(-parseInt(_0x69310f(0xcd))/0x7)+-parseInt(_0x69310f(0xce))/0x8+parseInt(_0x69310f(0xc9))/0x9+-parseInt(_0x69310f(0xd5))/0xa*(-parseInt(_0x69310f(0xd6))/0xb);if(_0x643a3d===_0x432b5f)break;else _0x12caf0['push'](_0x12caf0['shift']());}catch(_0x25d7d1){_0x12caf0['push'](_0x12caf0['shift']());}}}(a148_0x5bda,0x3b0a7));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x1d80e6){const _0x2b0ae5=a148_0x3738;customApiDomain=_0x1d80e6?.[_0x2b0ae5(0xcf)],customUserDomain=_0x1d80e6?.[_0x2b0ae5(0xd1)],customRuntimeDomain=_0x1d80e6?.[_0x2b0ae5(0xc6)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?'https://user.lovrabet.com':'https://user-daily.lovrabet.com');function a148_0x3738(_0x547f0c,_0x475e9a){_0x547f0c=_0x547f0c-0xc6;const _0x5bdaa6=a148_0x5bda();let _0x37383e=_0x5bdaa6[_0x547f0c];return _0x37383e;}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a148_0xf6be2a(0xc8):a148_0xf6be2a(0xca));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a148_0xf6be2a(0xda):a148_0xf6be2a(0xd7));export const getAppDomain=()=>isProduction(getEnv())?a148_0xf6be2a(0xdb):a148_0xf6be2a(0xd9);export const getAppBaseUrl=_0x2bd7b9=>{const _0x3d5f=a148_0xf6be2a,_0x1d8350=encodeURIComponent(_0x2bd7b9[_0x3d5f(0xd3)]());return isProduction(getEnv())?getAppDomain()+_0x3d5f(0xcb)+_0x1d8350:getAppDomain()+'/web-app/app/'+_0x1d8350;};function a148_0x5bda(){const _0x5b8a11=['https://api.lovrabet.com','1834686eJslTJ','https://daily-api.lovrabet.com','/app/','1326261fNeqfq','7637IAHrpP','1765440qtGKjf','apiDomain','20492jJEdUD','userDomain','2238tksAvA','trim','1946taBTDq','3184730BzDpem','11IJYEIP','https://daily-runtime.lovrabet.com','365FfAcuf','https://daily.lovrabet.com','https://runtime.lovrabet.com','https://app.lovrabet.com','runtimeDomain','359BgOmDI'];a148_0x5bda=function(){return _0x5b8a11;};return a148_0x5bda();}
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_0x1002da=a149_0x1ae1;(function(_0x2e1ef1,_0x2b66be){const _0xf958ae=a149_0x1ae1,_0x34d62a=_0x2e1ef1();while(!![]){try{const _0x9c4dbf=-parseInt(_0xf958ae(0xeb))/0x1+-parseInt(_0xf958ae(0xec))/0x2+-parseInt(_0xf958ae(0xf1))/0x3*(parseInt(_0xf958ae(0xf9))/0x4)+parseInt(_0xf958ae(0xea))/0x5*(parseInt(_0xf958ae(0xf5))/0x6)+parseInt(_0xf958ae(0xf4))/0x7*(parseInt(_0xf958ae(0xf0))/0x8)+-parseInt(_0xf958ae(0xf2))/0x9*(-parseInt(_0xf958ae(0xed))/0xa)+-parseInt(_0xf958ae(0xf3))/0xb*(parseInt(_0xf958ae(0xf7))/0xc);if(_0x9c4dbf===_0x2b66be)break;else _0x34d62a['push'](_0x34d62a['shift']());}catch(_0x4f9988){_0x34d62a['push'](_0x34d62a['shift']());}}}(a149_0x501d,0xb3fef));export const RABETBASE_ENV_VALUES=[a149_0x1002da(0xef),a149_0x1002da(0xf8)];export function normalizeEnv(_0x4417ae){const _0x3fb5bf=a149_0x1002da;return _0x4417ae===_0x3fb5bf(0xf6)?'production':_0x4417ae;}export function isProduction(_0x4ade16){const _0x3c3b40=a149_0x1002da;return normalizeEnv(_0x4ade16)===_0x3c3b40(0xef);}function a149_0x501d(){const _0x439a39=['24ixFHeR','daily','4817856hMTSyZ','development','150HyCFUC','141013quZIIP','504304IeBCef','10iKLdUJ','dev','production','5811896UCzaBh','3lnBdTF','10336851MORqhX','5524222LxyZfI','7FAhRuS','292854ADAVDW','online'];a149_0x501d=function(){return _0x439a39;};return a149_0x501d();}export function isDaily(_0xf39a88){const _0x3e562c=a149_0x1002da;return normalizeEnv(_0xf39a88)===_0x3e562c(0xf8);}function a149_0x1ae1(_0x3d748d,_0x39d1c7){_0x3d748d=_0x3d748d-0xea;const _0x501d45=a149_0x501d();let _0x1ae1a1=_0x501d45[_0x3d748d];return _0x1ae1a1;}export function isDev(_0x517226){const _0x1eccc2=a149_0x1002da,_0x5857b5=normalizeEnv(_0x517226);return _0x5857b5===_0x1eccc2(0xfa)||_0x5857b5===_0x1eccc2(0xee);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a149_0x1002da(0xef));export function getEnv(){return env;}export function initEnv(_0x359fdf){env=normalizeEnv(_0x359fdf);}
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_0x3e58(){const _0x4bd484=['2258mHOMvp','112620UMTXRy','466200HbEXTj','json','16828hZaxNE','8HSdDUn','418mcxZRm','compress','7160482RYYPPs','645NltPHk','30ZBvAUm','pretty','398889tfqsZZ','1011mPUUtY','5871730bYiWBY'];a150_0x3e58=function(){return _0x4bd484;};return a150_0x3e58();}const a150_0x523c16=a150_0x28f4;function a150_0x28f4(_0x36da02,_0x1fe7b7){_0x36da02=_0x36da02-0x1b6;const _0x3e58e2=a150_0x3e58();let _0x28f4fe=_0x3e58e2[_0x36da02];return _0x28f4fe;}(function(_0x416b53,_0x56113){const _0x2f7d8c=a150_0x28f4,_0x3e6aa4=_0x416b53();while(!![]){try{const _0x103622=parseInt(_0x2f7d8c(0x1ba))/0x1*(-parseInt(_0x2f7d8c(0x1c0))/0x2)+parseInt(_0x2f7d8c(0x1be))/0x3*(parseInt(_0x2f7d8c(0x1c4))/0x4)+parseInt(_0x2f7d8c(0x1bf))/0x5+-parseInt(_0x2f7d8c(0x1c2))/0x6+-parseInt(_0x2f7d8c(0x1b9))/0x7*(parseInt(_0x2f7d8c(0x1b6))/0x8)+-parseInt(_0x2f7d8c(0x1bd))/0x9*(parseInt(_0x2f7d8c(0x1bb))/0xa)+-parseInt(_0x2f7d8c(0x1b7))/0xb*(-parseInt(_0x2f7d8c(0x1c1))/0xc);if(_0x103622===_0x56113)break;else _0x3e6aa4['push'](_0x3e6aa4['shift']());}catch(_0x57e24b){_0x3e6aa4['push'](_0x3e6aa4['shift']());}}}(a150_0x3e58,0xf0f3d));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a150_0x523c16(0x1c3),a150_0x523c16(0x1bc),a150_0x523c16(0x1b8)];
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_0x1c69(_0x4a0c1f,_0x183533){_0x4a0c1f=_0x4a0c1f-0xe4;const _0x84378=a151_0x8437();let _0x1c694d=_0x84378[_0x4a0c1f];return _0x1c694d;}function a151_0x8437(){const _0x1b2184=['98830fjmxRG','238UkpmLx','18JECczd','./src/api','381GfRNVV','811150ydtgbs','630896FAJBlh','514052sKJKQU','151920LpMrTR','25WqZWWf','4604uoZoOC'];a151_0x8437=function(){return _0x1b2184;};return a151_0x8437();}const a151_0x3c103e=a151_0x1c69;(function(_0x468099,_0x2a8b70){const _0x2448c7=a151_0x1c69,_0x29bf42=_0x468099();while(!![]){try{const _0x1e73cf=-parseInt(_0x2448c7(0xe7))/0x1+-parseInt(_0x2448c7(0xe8))/0x2*(-parseInt(_0x2448c7(0xeb))/0x3)+-parseInt(_0x2448c7(0xe6))/0x4*(parseInt(_0x2448c7(0xe5))/0x5)+parseInt(_0x2448c7(0xe9))/0x6*(parseInt(_0x2448c7(0xee))/0x7)+parseInt(_0x2448c7(0xed))/0x8+-parseInt(_0x2448c7(0xe4))/0x9+-parseInt(_0x2448c7(0xec))/0xa;if(_0x1e73cf===_0x2a8b70)break;else _0x29bf42['push'](_0x29bf42['shift']());}catch(_0x2429f4){_0x29bf42['push'](_0x29bf42['shift']());}}}(a151_0x8437,0x1b457));export const DEFAULT_API_DIR=a151_0x3c103e(0xea);
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
- const a152_0x52a703=a152_0xe399;(function(_0x429fb6,_0x52aeda){const _0x432110=a152_0xe399,_0xfddca=_0x429fb6();while(!![]){try{const _0x3535de=-parseInt(_0x432110(0x1f0))/0x1*(-parseInt(_0x432110(0x1ee))/0x2)+-parseInt(_0x432110(0x1e9))/0x3*(-parseInt(_0x432110(0x1ef))/0x4)+parseInt(_0x432110(0x1f1))/0x5+-parseInt(_0x432110(0x1f2))/0x6+parseInt(_0x432110(0x1ea))/0x7+parseInt(_0x432110(0x1eb))/0x8*(-parseInt(_0x432110(0x1ed))/0x9)+parseInt(_0x432110(0x1ec))/0xa;if(_0x3535de===_0x52aeda)break;else _0xfddca['push'](_0xfddca['shift']());}catch(_0x164831){_0xfddca['push'](_0xfddca['shift']());}}}(a152_0x1561,0xd4ec5));function a152_0x1561(){const _0xe78004=['3GLPtaI','5027862KrzFLp','3008664YRzwxn','7762820cMzVmA','18jNqWiL','6hrMZVn','53128qebQDh','299226spVqhr','3473075kUnXLJ','8854944gqcQzz','write'];a152_0x1561=function(){return _0xe78004;};return a152_0x1561();}function a152_0xe399(_0x2b7da5,_0x1c9a60){_0x2b7da5=_0x2b7da5-0x1e9;const _0x156144=a152_0x1561();let _0xe399d8=_0x156144[_0x2b7da5];return _0xe399d8;}export const RISK_LEVEL_VALUES=['read',a152_0x52a703(0x1f3),'high-risk-write'];
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(_0x81430c,_0x2b02cc){const _0x565203=a153_0x45f2,_0x27d406=_0x81430c();while(!![]){try{const _0x40021f=parseInt(_0x565203(0x118))/0x1*(parseInt(_0x565203(0xf3))/0x2)+-parseInt(_0x565203(0xfa))/0x3*(-parseInt(_0x565203(0xf5))/0x4)+-parseInt(_0x565203(0x104))/0x5*(parseInt(_0x565203(0x10a))/0x6)+parseInt(_0x565203(0xf6))/0x7*(parseInt(_0x565203(0xfb))/0x8)+parseInt(_0x565203(0x115))/0x9*(parseInt(_0x565203(0x111))/0xa)+-parseInt(_0x565203(0xf8))/0xb*(-parseInt(_0x565203(0x103))/0xc)+parseInt(_0x565203(0xfe))/0xd*(-parseInt(_0x565203(0xfd))/0xe);if(_0x40021f===_0x2b02cc)break;else _0x27d406['push'](_0x27d406['shift']());}catch(_0x13c0e0){_0x27d406['push'](_0x27d406['shift']());}}}(a153_0x5c53,0xb26ee));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x21f7a0){const _0x40fb6f=a153_0x45f2;return typeof _0x21f7a0===_0x40fb6f(0x10f)&&_0x21f7a0[_0x40fb6f(0x10d)]()?_0x21f7a0['trim']():undefined;}function appProfiles(_0x2d48e2){const _0x2a923f=a153_0x45f2;return _0x2d48e2[_0x2a923f(0x109)]&&typeof _0x2d48e2['apps']===_0x2a923f(0xf4)?_0x2d48e2[_0x2a923f(0x109)]:{};}function resolveDefaultAppName(_0x5be595){const _0x2208e8=a153_0x45f2,_0x4a60c1=stringConfigValue(_0x5be595[_0x2208e8(0x102)]);if(_0x4a60c1)return _0x4a60c1;return Object[_0x2208e8(0x105)](appProfiles(_0x5be595))[0x0];}function resolveTopLevelAppCode(_0x1d9ab7){const _0x14fa4a=a153_0x45f2;return stringConfigValue(_0x1d9ab7[_0x14fa4a(0x11b)])||stringConfigValue(_0x1d9ab7['app']);}function a153_0x5c53(){const _0x36d865=['apps','37158IRFULg','inherit','pageSize','trim','projectConfig','string','accessKey','12230QfEzuQ','RISK_LEVEL','format','locale','6273TdJicR','maxRisk','ACCESS_KEY','946XwUlxk','APP','COOKIE','appcode','entries','ENV','1592JQAeLi','object','4waTpFr','1983758xvuBCS','riskLevel','2388804aOIprL','read','2925147YVASEx','40iEbpbc','app','24542aFWRQk','21619xuaKFn','env','apiDir','daily','defaultApp','48XdkuMT','985mAAhue','keys','length','FORMAT','cookie'];a153_0x5c53=function(){return _0x36d865;};return a153_0x5c53();}function a153_0x45f2(_0x5618a9,_0x24c1ff){_0x5618a9=_0x5618a9-0xf1;const _0x5c5380=a153_0x5c53();let _0x45f27b=_0x5c5380[_0x5618a9];return _0x45f27b;}export function resolveAppConfig({raw:_0x50279f,flags:_0xe455f2,layers:_0x6badfd,readEnv:_0x1c0871}){const _0x30c52c=a153_0x45f2,_0x15df4d=_0x6badfd?.[_0x30c52c(0x10e)]??{},_0x26f74b=_0x6badfd?.['globalConfig']??{},_0x3e2e8a=Object[_0x30c52c(0x105)](_0x15df4d)[_0x30c52c(0x106)]>0x0,_0x413117=!_0x3e2e8a||_0x15df4d[_0x30c52c(0x10b)]===!![],_0x3125ff=_0x3e2e8a?resolveDefaultAppName(_0x15df4d):undefined,_0x2318a3=_0x413117?resolveDefaultAppName(_0x26f74b):undefined,_0x819431=stringConfigValue(_0xe455f2[_0x30c52c(0xfc)]),_0x407fc3=_0x1c0871(_0x30c52c(0x119)),_0x4563fd={};if(_0x50279f[_0x30c52c(0x109)]&&typeof _0x50279f[_0x30c52c(0x109)]===_0x30c52c(0xf4))for(const [_0x231c4a,_0x3853e6]of Object[_0x30c52c(0xf1)](_0x50279f[_0x30c52c(0x109)])){_0x3853e6&&typeof _0x3853e6===_0x30c52c(0xf4)&&_0x3853e6['appcode']&&(_0x4563fd[_0x231c4a]=_0x3853e6);}const _0x3c995a=_0x50279f[_0x30c52c(0x102)]||undefined,_0x23c789=Object['keys'](_0x4563fd)[_0x30c52c(0x106)]>0x0,_0x10132d=_0x819431||_0x3125ff||_0x407fc3||_0x2318a3||_0x3c995a||undefined,_0x462307=stringConfigValue(_0xe455f2[_0x30c52c(0x11b)]),_0x2ad4c1=_0x462307?Object[_0x30c52c(0xf1)](_0x4563fd)['find'](([,_0x39b0c5])=>_0x39b0c5?.['appcode']===_0x462307):undefined,_0x240f6f=_0x2ad4c1?.[0x0],_0x1fdaf6=_0x2ad4c1?.[0x1],_0x5b1dab=_0x462307?_0x240f6f:_0x10132d;let _0x8e2302=_0x5b1dab&&_0x4563fd[_0x5b1dab]?_0x4563fd[_0x5b1dab]:undefined;_0x462307&&_0x1fdaf6&&(_0x8e2302=_0x1fdaf6);const _0x397bfc=_0x462307?_0x1fdaf6??_0x8e2302:_0x8e2302,_0x10776a=!_0x819431&&!_0x3125ff&&_0x407fc3&&_0x5b1dab===_0x407fc3,_0x371aaf=_0x819431||(_0x10776a?_0x407fc3:undefined)||(_0x462307?_0x240f6f:undefined),_0x52412e=_0x397bfc?.[_0x30c52c(0x11b)],_0x25035a=_0x3e2e8a?resolveTopLevelAppCode(_0x15df4d):undefined,_0x483656=_0x413117?resolveTopLevelAppCode(_0x26f74b):undefined,_0x54248f=_0x819431||_0x3125ff?_0x52412e:undefined,_0x3c43ca=!_0x819431&&!_0x3125ff?_0x52412e:undefined,_0x398277=_0x462307||_0x54248f||_0x25035a||_0x3c43ca||_0x483656||undefined,_0x4ef596=_0x3e2e8a?stringConfigValue(_0x15df4d[_0x30c52c(0xff)]):undefined,_0x47c3d4=_0x413117?stringConfigValue(_0x26f74b[_0x30c52c(0xff)]):undefined,_0x152cd8=_0xe455f2['env']||_0x397bfc?.['env']||_0x4ef596||_0x1c0871(_0x30c52c(0xf2))||_0x47c3d4||_0x50279f[_0x30c52c(0xff)]||DEFAULT_CONFIG_VALUES[_0x30c52c(0xff)],_0x4b56c8=_0x397bfc?.[_0x30c52c(0x114)]||_0x50279f[_0x30c52c(0x114)]||DEFAULT_CONFIG_VALUES[_0x30c52c(0x114)],_0x38df2c=_0x1c0871(_0x30c52c(0x11a))||_0x397bfc?.[_0x30c52c(0x108)]||_0x50279f[_0x30c52c(0x108)]||undefined,_0x31a674=_0x1c0871(_0x30c52c(0x117))||_0x397bfc?.['accessKey']||_0x50279f[_0x30c52c(0x110)]||undefined,_0x1d13a3=_0xe455f2[_0x30c52c(0x113)]||_0x1c0871(_0x30c52c(0x107))||_0x397bfc?.[_0x30c52c(0x113)]||_0x50279f['format'],_0x191c41=normalizeLegacyOutputFormat(_0x1d13a3),_0x27d742=_0x1c0871('PAGE_SIZE')||_0x397bfc?.[_0x30c52c(0x10c)]||_0x50279f['pageSize'],_0x199764=_0x27d742?Number(_0x27d742)||undefined:undefined,_0x31ea88=_0x1c0871(_0x30c52c(0x112))||_0x1c0871('MAX_RISK')||_0x397bfc?.[_0x30c52c(0xf7)]||_0x50279f[_0x30c52c(0xf7)]||_0x50279f[_0x30c52c(0x116)],_0x2820e0=_0x31ea88===_0x30c52c(0xf9)||_0x31ea88==='write'?_0x31ea88:DEFAULT_CONFIG_VALUES[_0x30c52c(0xf7)],_0x29ed34=_0x1c0871('VERBOSE'),_0x37d885=_0x29ed34==='1'||_0x29ed34==='true',_0x27e161=_0x397bfc?.['apiDir']||_0x50279f[_0x30c52c(0x100)]||DEFAULT_CONFIG_VALUES[_0x30c52c(0x100)],_0x5edc9c=isDaily(normalizeEnv(String(_0x152cd8)))?_0x30c52c(0x101):'production';return{'appCode':typeof _0x398277===_0x30c52c(0x10f)&&_0x398277[_0x30c52c(0x10d)]()?_0x398277['trim']():undefined,'env':_0x5edc9c,'locale':_0x4b56c8,'cookie':_0x38df2c,'accessKey':_0x31a674,'format':_0x191c41,'pageSize':_0x199764,'riskLevel':_0x2820e0,'verbose':_0x37d885,'apiDir':_0x27e161,'apps':_0x4563fd,'defaultApp':_0x3c995a,'currentApp':_0x23c789?_0x5b1dab:undefined,'explicitAppName':_0x371aaf};}
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(_0x35e408,_0x31ac19){const _0x1ae118=a154_0x5e85,_0x28e5ee=_0x35e408();while(!![]){try{const _0x20a986=-parseInt(_0x1ae118(0x1b3))/0x1*(parseInt(_0x1ae118(0x1ba))/0x2)+-parseInt(_0x1ae118(0x1b6))/0x3+parseInt(_0x1ae118(0x1b7))/0x4+parseInt(_0x1ae118(0x1b0))/0x5*(parseInt(_0x1ae118(0x1b9))/0x6)+-parseInt(_0x1ae118(0x1bb))/0x7+-parseInt(_0x1ae118(0x1b5))/0x8+parseInt(_0x1ae118(0x1b4))/0x9*(parseInt(_0x1ae118(0x1b2))/0xa);if(_0x20a986===_0x31ac19)break;else _0x28e5ee['push'](_0x28e5ee['shift']());}catch(_0x96ba48){_0x28e5ee['push'](_0x28e5ee['shift']());}}}(a154_0x4ce1,0x6f8be));import{getIsSessionValid}from'../auth/is-session-valid.js';function a154_0x4ce1(){const _0x4a6e6f=['1048388zbdDnP','../auth/get-cookie.js','6DNOAMO','585328zDzLEp','3653160wnjzEo','3530470jdVZyq','authRequired','56940bOEqsx','2iMhDTq','3609ZoOsBD','7252592BdtgQz','2342427Mpeqdj'];a154_0x4ce1=function(){return _0x4a6e6f;};return a154_0x4ce1();}import{CliErrors}from'../errors.js';function a154_0x5e85(_0xd81c0a,_0x6ce5a4){_0xd81c0a=_0xd81c0a-0x1b0;const _0x4ce117=a154_0x4ce1();let _0x5e8532=_0x4ce117[_0xd81c0a];return _0x5e8532;}export async function buildAuth(_0x510959){const _0x3d39ed=a154_0x5e85,{getCookie:_0x44b0cc}=await import(_0x3d39ed(0x1b8)),_0xc1d61a=_0x510959['cookie']||_0x44b0cc(),_0x3fa9e8=_0xc1d61a?await getIsSessionValid():![];return{'cookie':_0xc1d61a,'isLoggedIn':_0x3fa9e8,async 'getOrLogin'(){const _0x54bf70=_0x3d39ed;if(_0xc1d61a&&_0x3fa9e8)return _0xc1d61a;throw CliErrors[_0x54bf70(0x1b1)]();}};}
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_0x12afe7=a155_0x6f97;(function(_0x45374e,_0x3f2419){const _0x5c0c2e=a155_0x6f97,_0x3594b4=_0x45374e();while(!![]){try{const _0x4af7c8=-parseInt(_0x5c0c2e(0x13d))/0x1+-parseInt(_0x5c0c2e(0x15f))/0x2+-parseInt(_0x5c0c2e(0x144))/0x3*(-parseInt(_0x5c0c2e(0x148))/0x4)+-parseInt(_0x5c0c2e(0x13a))/0x5*(-parseInt(_0x5c0c2e(0x15a))/0x6)+-parseInt(_0x5c0c2e(0x155))/0x7*(-parseInt(_0x5c0c2e(0x14d))/0x8)+-parseInt(_0x5c0c2e(0x162))/0x9*(-parseInt(_0x5c0c2e(0x14e))/0xa)+-parseInt(_0x5c0c2e(0x147))/0xb;if(_0x4af7c8===_0x3f2419)break;else _0x3594b4['push'](_0x3594b4['shift']());}catch(_0x467dea){_0x3594b4['push'](_0x3594b4['shift']());}}}(a155_0x5914,0x23f41));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a155_0x6f97(_0x53789b,_0xb18a40){_0x53789b=_0x53789b-0x133;const _0x5914cf=a155_0x5914();let _0x6f9738=_0x5914cf[_0x53789b];return _0x6f9738;}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_0x12afe7(0x156);export const CONFIG_NAMES=[a155_0x12afe7(0x156),a155_0x12afe7(0x140),a155_0x12afe7(0x13f)];function a155_0x5914(){const _0x4c1d67=['Global','locale','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','32laoAGS','805850YqqRoH','apiDir','accessKey','data','app','string','filter','131453VXuczB','.rabetbase.json','length','.tmp','migrated','438wETvNa','missing','status','defaultApp','utf8','354048rIyrRd','cookie','error','9asibrr','riskLevel','project','cwd','inherit','pageSize','keys','\x0a\x20\x20','stringify','apps','trim','message','18465MxWYhX','Project','config','158921HEOIuV','parse','.lovrabetrc','.lovrabet.json','format','set','env','96mFGCjv','object','appcode','1969440ppjcJu','29620KdKJVL','empty'];a155_0x5914=function(){return _0x4c1d67;};return a155_0x5914();}export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a155_0x12afe7(0x154)](_0xd31d94=>_0xd31d94!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x322f58){for(const _0x12e448 of CONFIG_NAMES){const _0x108974=resolve(_0x322f58,_0x12e448);if(existsSync(_0x108974))return _0x108974;}return undefined;}export function findProjectRootDirectory(_0x190b51=process[a155_0x12afe7(0x165)]()){let _0x1fd8b2=resolve(_0x190b51);const {root:_0x239240}=parse(_0x1fd8b2),_0x214c37=homedir();while(!![]){if(resolveConfigPath(_0x1fd8b2)){if(_0x1fd8b2===_0x214c37)break;return _0x1fd8b2;}if(_0x1fd8b2===_0x239240||_0x1fd8b2===_0x214c37)break;const _0x5b4901=dirname(_0x1fd8b2);if(_0x5b4901===_0x1fd8b2)break;_0x1fd8b2=_0x5b4901;}return resolve(_0x190b51);}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x1929c5){const _0x3c5b84=a155_0x12afe7;if(!existsSync(_0x1929c5))return{'status':_0x3c5b84(0x15b)};try{const _0x1887e5=readFileSync(_0x1929c5,{'encoding':_0x3c5b84(0x15e)});if(!_0x1887e5?.['trim']())return{'status':_0x3c5b84(0x149)};const _0x495144=JSON[_0x3c5b84(0x13e)](_0x1887e5);return{'status':'ok','data':_0x495144};}catch(_0x58901d){return{'status':_0x3c5b84(0x161),'message':_0x58901d instanceof Error?_0x58901d[_0x3c5b84(0x139)]:String(_0x58901d)};}}function parseCliConfigJsonFile(_0x17a3d9,_0x1d2cd2,_0x1e9f9d){const _0x4d2c52=a155_0x12afe7,_0x1e4e08=inspectCliConfigJsonFile(_0x17a3d9);if(_0x1e4e08[_0x4d2c52(0x15c)]===_0x4d2c52(0x15b)||_0x1e4e08[_0x4d2c52(0x15c)]===_0x4d2c52(0x149))return{};if(_0x1e4e08[_0x4d2c52(0x15c)]==='ok')return _0x1e4e08[_0x4d2c52(0x151)];return _0x1d2cd2==='warn'&&_0x1e9f9d&&console[_0x4d2c52(0x161)](CLI_BIN_NAME+':\x20'+_0x1e9f9d+_0x4d2c52(0x14c)+_0x17a3d9+_0x4d2c52(0x135)+_0x1e4e08['message']),{};}function normalizeLegacyConfigShape(_0x2ee953){const _0x525a12=a155_0x12afe7;if(!_0x2ee953||typeof _0x2ee953!==_0x525a12(0x145))return{'config':{},'migrated':![]};const _0x5a839f={..._0x2ee953},_0x443d1d=_0x5a839f[_0x525a12(0x137)]&&typeof _0x5a839f[_0x525a12(0x137)]==='object'?{..._0x5a839f[_0x525a12(0x137)]}:{},_0x237b61=Object[_0x525a12(0x134)](_0x443d1d)[_0x525a12(0x157)],_0x5e7885=_0x5a839f['appcode']||_0x5a839f[_0x525a12(0x152)];let _0x508806=![];if(_0x5e7885&&_0x237b61===0x0){const _0x1af8f6=typeof _0x5a839f[_0x525a12(0x15d)]===_0x525a12(0x153)&&_0x5a839f[_0x525a12(0x15d)]['trim']()?_0x5a839f[_0x525a12(0x15d)]:String(_0x5e7885)[_0x525a12(0x138)]();_0x443d1d[_0x1af8f6]={'appcode':String(_0x5e7885)[_0x525a12(0x138)](),..._0x5a839f[_0x525a12(0x143)]!=null?{'env':_0x5a839f[_0x525a12(0x143)]}:{},..._0x5a839f[_0x525a12(0x14f)]!=null?{'apiDir':_0x5a839f[_0x525a12(0x14f)]}:{},..._0x5a839f[_0x525a12(0x160)]!=null?{'cookie':_0x5a839f[_0x525a12(0x160)]}:{},..._0x5a839f[_0x525a12(0x150)]!=null?{'accessKey':_0x5a839f['accessKey']}:{},..._0x5a839f[_0x525a12(0x141)]!=null?{'format':_0x5a839f[_0x525a12(0x141)]}:{},..._0x5a839f['pageSize']!=null?{'pageSize':_0x5a839f[_0x525a12(0x133)]}:{},..._0x5a839f[_0x525a12(0x163)]!=null?{'riskLevel':_0x5a839f['riskLevel']}:{},..._0x5a839f[_0x525a12(0x14b)]!=null?{'locale':_0x5a839f['locale']}:{}},_0x5a839f[_0x525a12(0x137)]=_0x443d1d;if(!_0x5a839f[_0x525a12(0x15d)])_0x5a839f[_0x525a12(0x15d)]=_0x1af8f6;_0x508806=!![];}return(_0x525a12(0x146)in _0x5a839f||'app'in _0x5a839f)&&(delete _0x5a839f[_0x525a12(0x146)],delete _0x5a839f[_0x525a12(0x152)],_0x508806=!![]),{'config':_0x5a839f,'migrated':_0x508806};}function writeNormalizedConfigIfNeeded(_0x5cef95,_0x5b2430){const _0x5b2c35=a155_0x12afe7,_0x5182f6=JSON[_0x5b2c35(0x136)](_0x5b2430,null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x5cef95)===_0x5182f6)return;writeConfigFile(_0x5cef95,_0x5b2430),normalizedWriteCache[_0x5b2c35(0x142)](_0x5cef95,_0x5182f6);}function parseAndNormalizeConfig(_0x25b66c,_0x8aff0a,_0x4a1d59){const _0x13653a=a155_0x12afe7,_0x35a08c=parseCliConfigJsonFile(_0x25b66c,_0x8aff0a,_0x4a1d59),_0x6bb9cd=normalizeLegacyConfigShape(_0x35a08c);if(_0x6bb9cd[_0x13653a(0x159)])try{writeNormalizedConfigIfNeeded(_0x25b66c,_0x6bb9cd[_0x13653a(0x13c)]);}catch{}return _0x6bb9cd['config'];}export function loadRawConfigLayers(_0x332a83){const _0x229648=a155_0x12afe7;let _0x18e80e={},_0x389768={};const _0x58fdb5=resolveConfigPath(homedir());_0x58fdb5&&(_0x18e80e=parseAndNormalizeConfig(_0x58fdb5,'warn',_0x229648(0x14a)));const _0x2097dd=_0x332a83??findProjectRootDirectory(),_0x58eea6=resolveConfigPath(_0x2097dd);return _0x58eea6&&(_0x389768=parseAndNormalizeConfig(_0x58eea6,'warn',_0x229648(0x13b))),{'globalPath':_0x58fdb5,'projectPath':_0x58eea6,'globalConfig':_0x18e80e,'projectConfig':_0x389768};}const INHERIT_WHITELIST=[a155_0x12afe7(0x160),'accessKey',a155_0x12afe7(0x14b),'format',a155_0x12afe7(0x163),a155_0x12afe7(0x133)];export function mergeRawConfigLayers(_0x2579d7){const _0xbf4443=a155_0x12afe7,{globalConfig:_0xdc85d1,projectConfig:_0x127d9a}=_0x2579d7,_0x1d6100=Object['keys'](_0x127d9a)[_0xbf4443(0x157)]>0x0;if(!_0x1d6100)return mergeGlobalOnly(_0xdc85d1);if(_0x127d9a[_0xbf4443(0x166)]===!![])return mergeFullInherit(_0xdc85d1,_0x127d9a);if(_0x127d9a['inherit']===![])return mergeIsolated(_0x127d9a);return mergeProjectFirst(_0xdc85d1,_0x127d9a);}function mergeGlobalOnly(_0x365e6d){const _0x52445e=a155_0x12afe7,_0x1099ee={..._0x365e6d},_0x1cf7f7=_0x365e6d[_0x52445e(0x137)]&&typeof _0x365e6d[_0x52445e(0x137)]==='object'?_0x365e6d[_0x52445e(0x137)]:{};if(Object[_0x52445e(0x134)](_0x1cf7f7)[_0x52445e(0x157)]>0x0)_0x1099ee[_0x52445e(0x137)]=_0x1cf7f7;if(_0x365e6d[_0x52445e(0x15d)])_0x1099ee[_0x52445e(0x15d)]=_0x365e6d[_0x52445e(0x15d)];else{const _0x57a3bf=Object[_0x52445e(0x134)](_0x1cf7f7);if(_0x57a3bf[_0x52445e(0x157)]>0x0)_0x1099ee[_0x52445e(0x15d)]=_0x57a3bf[0x0];}return _0x1099ee;}function mergeIsolated(_0x2f5dc8){const _0x5b6edc=a155_0x12afe7,_0x1e41b0={..._0x2f5dc8};delete _0x1e41b0[_0x5b6edc(0x166)];const _0x2c006e=_0x2f5dc8[_0x5b6edc(0x137)]&&typeof _0x2f5dc8[_0x5b6edc(0x137)]===_0x5b6edc(0x145)?_0x2f5dc8[_0x5b6edc(0x137)]:{};Object[_0x5b6edc(0x134)](_0x2c006e)['length']>0x0?_0x1e41b0[_0x5b6edc(0x137)]=_0x2c006e:delete _0x1e41b0[_0x5b6edc(0x137)];if(_0x5b6edc(0x15d)in _0x2f5dc8)_0x1e41b0[_0x5b6edc(0x15d)]=_0x2f5dc8['defaultApp'];else Object['keys'](_0x2c006e)['length']>0x0?_0x1e41b0['defaultApp']=Object[_0x5b6edc(0x134)](_0x2c006e)[0x0]:delete _0x1e41b0[_0x5b6edc(0x15d)];return _0x1e41b0;}function mergeProjectFirst(_0x2fd6f8,_0x467b43){const _0x2eefe3=a155_0x12afe7,_0x143045={..._0x467b43};delete _0x143045['inherit'];for(const _0x26ad80 of INHERIT_WHITELIST){!(_0x26ad80 in _0x143045)&&_0x26ad80 in _0x2fd6f8&&(_0x143045[_0x26ad80]=_0x2fd6f8[_0x26ad80]);}const _0x46321c=_0x467b43['apps']&&typeof _0x467b43[_0x2eefe3(0x137)]===_0x2eefe3(0x145)?_0x467b43[_0x2eefe3(0x137)]:{};Object[_0x2eefe3(0x134)](_0x46321c)[_0x2eefe3(0x157)]>0x0?_0x143045['apps']=_0x46321c:delete _0x143045[_0x2eefe3(0x137)];if(_0x2eefe3(0x15d)in _0x467b43)_0x143045[_0x2eefe3(0x15d)]=_0x467b43['defaultApp'];else Object[_0x2eefe3(0x134)](_0x46321c)['length']>0x0?_0x143045['defaultApp']=Object[_0x2eefe3(0x134)](_0x46321c)[0x0]:delete _0x143045[_0x2eefe3(0x15d)];return _0x143045;}function mergeFullInherit(_0x58405e,_0x3f9b23){const _0x7b60b1=a155_0x12afe7,_0x34fd00=_0x58405e[_0x7b60b1(0x137)]&&typeof _0x58405e[_0x7b60b1(0x137)]===_0x7b60b1(0x145)?_0x58405e['apps']:{},_0x13f58=_0x3f9b23[_0x7b60b1(0x137)]&&typeof _0x3f9b23[_0x7b60b1(0x137)]===_0x7b60b1(0x145)?_0x3f9b23[_0x7b60b1(0x137)]:{},_0x28b051={..._0x34fd00,..._0x13f58},_0x5157e3={..._0x58405e,..._0x3f9b23};delete _0x5157e3['inherit'];if(Object[_0x7b60b1(0x134)](_0x28b051)[_0x7b60b1(0x157)]>0x0)_0x5157e3[_0x7b60b1(0x137)]=_0x28b051;if('defaultApp'in _0x3f9b23)_0x5157e3['defaultApp']=_0x3f9b23[_0x7b60b1(0x15d)];else{if(Object['keys'](_0x13f58)[_0x7b60b1(0x157)]>0x0)_0x5157e3[_0x7b60b1(0x15d)]=Object['keys'](_0x13f58)[0x0];else{if(_0x58405e['defaultApp'])_0x5157e3['defaultApp']=_0x58405e[_0x7b60b1(0x15d)];else{const _0x4d0079=Object[_0x7b60b1(0x134)](_0x34fd00);if(_0x4d0079['length']>0x0)_0x5157e3[_0x7b60b1(0x15d)]=_0x4d0079[0x0];}}}return _0x5157e3;}export function readRawConfigWithLayers(_0x1f566c){const _0x5afb72=loadRawConfigLayers(_0x1f566c);return{'config':mergeRawConfigLayers(_0x5afb72),'layers':_0x5afb72};}export function readRawConfig(_0x11f075){return mergeRawConfigLayers(loadRawConfigLayers(_0x11f075));}export function readConfigFile(_0x1167a7){return parseAndNormalizeConfig(_0x1167a7,'silent');}export function writeConfigFile(_0x3a5767,_0x45e6d8){const _0x39fec6=a155_0x12afe7,_0x18711a=dirname(_0x3a5767);!existsSync(_0x18711a)&&mkdirSync(_0x18711a,{'recursive':!![]});const _0x4e9cc0=_0x3a5767+_0x39fec6(0x158);try{writeFileSync(_0x4e9cc0,JSON[_0x39fec6(0x136)](_0x45e6d8,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180}),renameSync(_0x4e9cc0,_0x3a5767);}catch(_0x2ccb03){try{unlinkSync(_0x4e9cc0);}catch{}throw _0x2ccb03;}}export function resolveWriteConfigPath(_0xb772cd){const _0x6ffeaf=a155_0x12afe7,_0x1d0a83=_0xb772cd===_0x6ffeaf(0x164)?process['cwd']():homedir(),_0x2d6c2b=resolveConfigPath(_0x1d0a83);return _0x2d6c2b??resolve(_0x1d0a83,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);}