@lovrabet/rabetbase-cli 2.2.5-beta.1 → 2.3.1-beta.2

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 (241) hide show
  1. package/README.md +1 -1
  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/use.js +1 -1
  27. package/lib/commands/app-config/delete.js +1 -1
  28. package/lib/commands/app-config/get.js +1 -1
  29. package/lib/commands/app-config/index.js +1 -1
  30. package/lib/commands/app-config/list.js +1 -1
  31. package/lib/commands/app-config/set.js +1 -1
  32. package/lib/commands/app-config/shared.js +1 -1
  33. package/lib/commands/auth/index.js +1 -1
  34. package/lib/commands/bff/create.js +1 -1
  35. package/lib/commands/bff/delete.js +1 -1
  36. package/lib/commands/bff/detail.js +1 -1
  37. package/lib/commands/bff/index.js +1 -1
  38. package/lib/commands/bff/list.js +1 -1
  39. package/lib/commands/bff/pull.js +1 -1
  40. package/lib/commands/bff/push.js +1 -1
  41. package/lib/commands/bff/status.js +1 -1
  42. package/lib/commands/cli-skill/index.js +1 -0
  43. package/lib/commands/cli-update.js +1 -1
  44. package/lib/commands/codegen/index.js +1 -1
  45. package/lib/commands/codegen/sdk.js +1 -1
  46. package/lib/commands/codegen/sql.js +1 -1
  47. package/lib/commands/common/app-selector.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/validate.js +1 -1
  50. package/lib/commands/config/get.js +1 -1
  51. package/lib/commands/config/index.js +1 -1
  52. package/lib/commands/config/list.js +1 -1
  53. package/lib/commands/config/set.js +1 -1
  54. package/lib/commands/config/shared.js +1 -1
  55. package/lib/commands/data/filter.js +1 -1
  56. package/lib/commands/data/getOne.js +1 -1
  57. package/lib/commands/data/index.js +1 -1
  58. package/lib/commands/data/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/capability.js +1 -1
  61. package/lib/commands/dataset/delete.js +1 -1
  62. package/lib/commands/dataset/detail.js +1 -1
  63. package/lib/commands/dataset/extend-update.js +1 -1
  64. package/lib/commands/dataset/field-update.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-create.js +1 -1
  69. package/lib/commands/dataset/relation-delete.js +1 -1
  70. package/lib/commands/dataset/relation-shared.js +1 -1
  71. package/lib/commands/dataset/relation-update.js +1 -1
  72. package/lib/commands/dataset/relations.js +1 -1
  73. package/lib/commands/dataset/rename.js +1 -1
  74. package/lib/commands/dataset/restore.js +1 -0
  75. package/lib/commands/db/analyze-cancel.js +1 -1
  76. package/lib/commands/db/analyze-start.js +1 -1
  77. package/lib/commands/db/analyze-status.js +1 -1
  78. package/lib/commands/db/create.js +1 -1
  79. package/lib/commands/db/delete.js +1 -1
  80. package/lib/commands/db/detail.js +1 -1
  81. package/lib/commands/db/diff.js +1 -1
  82. package/lib/commands/db/index.js +1 -1
  83. package/lib/commands/db/list.js +1 -1
  84. package/lib/commands/db/shared.js +1 -1
  85. package/lib/commands/db/tables.js +1 -1
  86. package/lib/commands/db/test.js +1 -1
  87. package/lib/commands/db/update.js +1 -1
  88. package/lib/commands/doctor.js +1 -1
  89. package/lib/commands/init/index.js +1 -1
  90. package/lib/commands/issue/index.js +1 -1
  91. package/lib/commands/issue/nudge.js +1 -1
  92. package/lib/commands/issue/report.js +1 -1
  93. package/lib/commands/issue/shared.js +1 -1
  94. package/lib/commands/logs/index.js +1 -1
  95. package/lib/commands/menu/index.js +1 -1
  96. package/lib/commands/menu/list.js +1 -1
  97. package/lib/commands/menu/shared/compare-table.js +1 -1
  98. package/lib/commands/menu/shared/index.js +1 -1
  99. package/lib/commands/menu/shared/inquirer.js +1 -1
  100. package/lib/commands/menu/shared/local-pages.js +1 -1
  101. package/lib/commands/menu/shared/logic.js +1 -1
  102. package/lib/commands/menu/shared/service.js +1 -1
  103. package/lib/commands/menu/shared/sync-core.js +1 -1
  104. package/lib/commands/menu/shared/update-core.js +1 -1
  105. package/lib/commands/menu/shared/valid-url.js +1 -1
  106. package/lib/commands/menu/sync.js +1 -1
  107. package/lib/commands/menu/update.js +1 -1
  108. package/lib/commands/page/generate-start.js +1 -1
  109. package/lib/commands/page/generate-status.js +1 -1
  110. package/lib/commands/page/index.js +1 -1
  111. package/lib/commands/page/pull.js +1 -1
  112. package/lib/commands/page/push.js +1 -1
  113. package/lib/commands/page/relation-audit.js +1 -1
  114. package/lib/commands/page/shared.js +1 -1
  115. package/lib/commands/page/standard-page-status.js +1 -1
  116. package/lib/commands/page/sync.js +1 -1
  117. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  118. package/lib/commands/project/create/format-elapsed.js +1 -1
  119. package/lib/commands/project/create/main.js +1 -1
  120. package/lib/commands/project/create/non-interactive.js +1 -1
  121. package/lib/commands/project/create/project-template-path.js +1 -1
  122. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  123. package/lib/commands/project/create/use-format-code.js +1 -1
  124. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  125. package/lib/commands/project/index.js +1 -1
  126. package/lib/commands/project/init.js +1 -1
  127. package/lib/commands/project/upgrade.js +1 -1
  128. package/lib/commands/registry.js +1 -1
  129. package/lib/commands/run/index.js +1 -1
  130. package/lib/commands/schema.js +1 -1
  131. package/lib/commands/sql/create.js +1 -1
  132. package/lib/commands/sql/delete.js +1 -1
  133. package/lib/commands/sql/detail.js +1 -1
  134. package/lib/commands/sql/exec.js +1 -1
  135. package/lib/commands/sql/index.js +1 -1
  136. package/lib/commands/sql/list.js +1 -1
  137. package/lib/commands/sql/pull.js +1 -1
  138. package/lib/commands/sql/push.js +1 -1
  139. package/lib/commands/sql/save.js +1 -1
  140. package/lib/commands/sql/shared.js +1 -1
  141. package/lib/commands/sql/status.js +1 -1
  142. package/lib/commands/sql/validate.js +1 -1
  143. package/lib/commands/workspace/index.js +1 -1
  144. package/lib/config/schema.js +1 -1
  145. package/lib/constant/cdn.js +1 -1
  146. package/lib/constant/cli.js +1 -1
  147. package/lib/constant/defaults.js +1 -1
  148. package/lib/constant/domain.js +1 -1
  149. package/lib/constant/env.js +1 -1
  150. package/lib/constant/output.js +1 -1
  151. package/lib/constant/paths.js +1 -1
  152. package/lib/constant/risk.js +1 -1
  153. package/lib/context/app-resolver.js +1 -1
  154. package/lib/context/auth-resolver.js +1 -1
  155. package/lib/context/config-loader.js +1 -1
  156. package/lib/context.js +1 -1
  157. package/lib/core/alias-resolver.js +1 -1
  158. package/lib/core/api-client.js +1 -1
  159. package/lib/core/bff/config.js +1 -1
  160. package/lib/core/bff/file-system.js +1 -1
  161. package/lib/core/bff/hash.js +1 -1
  162. package/lib/core/bff/lock.js +1 -1
  163. package/lib/core/bff/utils.js +1 -1
  164. package/lib/core/db-resolver.js +1 -1
  165. package/lib/core/page/file-system.js +1 -1
  166. package/lib/core/page/hash.js +1 -1
  167. package/lib/core/page/lock.js +1 -1
  168. package/lib/core/sql-sync/config.js +1 -1
  169. package/lib/core/sql-sync/file-system.js +1 -1
  170. package/lib/core/sql-sync/hash.js +1 -1
  171. package/lib/core/sql-sync/lock.js +1 -1
  172. package/lib/core/sql-sync/utils.js +1 -1
  173. package/lib/core/sql-validator.js +1 -1
  174. package/lib/errors.js +1 -1
  175. package/lib/framework/build-all-flags.js +1 -1
  176. package/lib/framework/flags.js +1 -1
  177. package/lib/framework/help.js +1 -1
  178. package/lib/framework/index.js +1 -1
  179. package/lib/framework/output.js +1 -1
  180. package/lib/framework/response.js +1 -1
  181. package/lib/framework/runner-alias.js +1 -1
  182. package/lib/framework/runner.js +1 -1
  183. package/lib/framework/schema-export.js +1 -1
  184. package/lib/framework/types.js +1 -1
  185. package/lib/generated/build-info.js +1 -1
  186. package/lib/help.js +1 -1
  187. package/lib/skills/main.js +1 -1
  188. package/lib/skills/npx-skills-add.js +1 -1
  189. package/lib/telemetry/cli-command-trace.js +1 -1
  190. package/lib/telemetry/cli-help-trace.js +1 -1
  191. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  192. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  193. package/lib/telemetry/send-cli-trace-log.js +1 -1
  194. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  195. package/lib/utils/ai_config.js +1 -1
  196. package/lib/utils/apply-jq-filter.js +1 -1
  197. package/lib/utils/cdn-config.js +1 -1
  198. package/lib/utils/check-sdk-version.js +1 -1
  199. package/lib/utils/cli-version-check.js +1 -1
  200. package/lib/utils/cli-version-policy.js +1 -1
  201. package/lib/utils/config.js +1 -1
  202. package/lib/utils/copy-directory.js +1 -1
  203. package/lib/utils/entity-with-id.js +1 -1
  204. package/lib/utils/file-utils.js +1 -1
  205. package/lib/utils/guides-cdn.js +1 -1
  206. package/lib/utils/http-client.js +1 -1
  207. package/lib/utils/is-non-interactive.js +1 -1
  208. package/lib/utils/logger.js +1 -1
  209. package/lib/utils/params.js +1 -1
  210. package/lib/utils/platform.js +1 -1
  211. package/lib/utils/rules-cdn.js +1 -1
  212. package/lib/utils/sleep.js +1 -1
  213. package/lib/utils/template-replacer.js +1 -1
  214. package/lib/utils/update-notice.js +1 -1
  215. package/lib/utils/version.js +1 -1
  216. package/lib/utils/with-active-cookie.js +1 -1
  217. package/lib/utils/write-cli-side-channel.js +1 -1
  218. package/package.json +1 -1
  219. package/templates/README.md +15 -25
  220. package/templates/generate-api/api.ts.tpl +2 -2
  221. package/templates/generate-api/client.ts.tpl +2 -2
  222. package/templates/projects/sub-app-react-demo/CHANGELOG.md +15 -1
  223. package/templates/projects/sub-app-react-demo/README.md +159 -231
  224. package/templates/projects/sub-app-react-demo/docs/quick-start.md +145 -426
  225. package/templates/projects/sub-app-react-demo/src/api/api.ts +8 -65
  226. package/templates/projects/sub-app-react-demo/src/api/client.ts +10 -42
  227. package/templates/projects/sub-app-react-demo/src/components/demo-page-container/DemoPageContainer.module.css +28 -0
  228. package/templates/projects/sub-app-react-demo/src/components/demo-page-container/DemoPageContainer.tsx +55 -0
  229. package/templates/projects/sub-app-react-demo/src/layouts/MainLayout.tsx +6 -9
  230. package/templates/projects/sub-app-react-demo/src/main.tsx +10 -6
  231. package/templates/projects/sub-app-react-demo/src/pages/dashboard/index.tsx +3 -5
  232. package/templates/projects/sub-app-react-demo/src/pages/data-screen/index.tsx +153 -148
  233. package/templates/projects/sub-app-react-demo/src/pages/index.module.css +500 -0
  234. package/templates/projects/sub-app-react-demo/src/pages/index.tsx +517 -343
  235. package/templates/projects/sub-app-react-demo/src/pages/sdk-demo/index.tsx +325 -242
  236. package/templates/projects/sub-app-react-demo/src/pages/workbench/index.module.css +8 -6
  237. package/templates/projects/sub-app-react-demo/src/pages/workbench/index.tsx +174 -87
  238. package/templates/projects/sub-app-react-demo/src/style.css +19 -3
  239. package/templates/projects/sub-app-react-demo/src/vite-env.d.ts +1 -1
  240. package/lib/commands/skill/index.js +0 -1
  241. package/templates/projects/sub-app-react-demo/docs/API_RULE_CHANGE.md +0 -212
@@ -1 +1 @@
1
- const a140_0x39a763=a140_0x56d4;(function(_0x366d18,_0x5c5255){const _0x301897=a140_0x56d4,_0x24d750=_0x366d18();while(!![]){try{const _0x17d454=-parseInt(_0x301897(0x200))/0x1*(parseInt(_0x301897(0x1f0))/0x2)+-parseInt(_0x301897(0x207))/0x3+-parseInt(_0x301897(0x213))/0x4*(-parseInt(_0x301897(0x204))/0x5)+parseInt(_0x301897(0x205))/0x6*(parseInt(_0x301897(0x1f2))/0x7)+-parseInt(_0x301897(0x20d))/0x8+-parseInt(_0x301897(0x20b))/0x9*(-parseInt(_0x301897(0x202))/0xa)+-parseInt(_0x301897(0x1f6))/0xb*(-parseInt(_0x301897(0x211))/0xc);if(_0x17d454===_0x5c5255)break;else _0x24d750['push'](_0x24d750['shift']());}catch(_0x4ffb38){_0x24d750['push'](_0x24d750['shift']());}}}(a140_0x2e19,0x4b715));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';function a140_0x56d4(_0x4ced8a,_0x2c3df1){_0x4ced8a=_0x4ced8a-0x1e4;const _0x2e1972=a140_0x2e19();let _0x56d461=_0x2e1972[_0x4ced8a];return _0x56d461;}import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a140_0x2e19(){const _0x5f28ff=['10Cqpdtt','toLowerCase','16370WLGSzE','60VlzMpd','SQL\x20schema\x20validation','1481379dcryav','read','dbtableConfig','isSelectOnly','31383ahUFTF','Table\x20\x22','3412736nVCtDT','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','cwd','map','1045068pwkgzy','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','124fqGSPc','isDangerous','name','parameters','tableName','utf-8','from','split','str','tables','schema:','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','fields','File\x20not\x20found:\x20','length','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','reason','flagMissing','11758oDtwXG','sqlType','29806wHAcMS','Provide\x20--file\x20or\x20--sql','file','push','176lIGIHv','sql','message','type','valid','validation','string','filter','schemas','Dataset\x20\x22','53zsBpcO','\x22\x20not\x20found\x20in\x20any\x20dataset'];a140_0x2e19=function(){return _0x5f28ff;};return a140_0x2e19();}import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a140_0x39a763(0x1f7),'command':'validate','description':a140_0x39a763(0x1e9),'risk':a140_0x39a763(0x208),'flags':[{'name':a140_0x39a763(0x1f4),'type':'string','description':a140_0x39a763(0x212)},{'name':'sql','type':a140_0x39a763(0x1fc),'description':a140_0x39a763(0x20e)},{'name':a140_0x39a763(0x1fe),'type':a140_0x39a763(0x1fc),'description':a140_0x39a763(0x1ed)}],async 'execute'(_0x42a9e9){const _0xb7645b=a140_0x39a763,_0x3135c6=_0x42a9e9['str']('file'),_0x3f6825=_0x42a9e9[_0xb7645b(0x1e6)](_0xb7645b(0x1f7));if(!_0x3135c6&&!_0x3f6825)throw CliErrors[_0xb7645b(0x1ef)]('file',_0xb7645b(0x1f3));let _0x340ca4;if(_0x3135c6){const _0x1d7f2f=resolve(process[_0xb7645b(0x20f)](),_0x3135c6);if(!existsSync(_0x1d7f2f))throw CliErrors[_0xb7645b(0x1fb)](_0xb7645b(0x1eb)+_0x1d7f2f);_0x340ca4=readFileSync(_0x1d7f2f,_0xb7645b(0x218));}else _0x340ca4=_0x3f6825;const _0x4e5697=validateSql(_0x340ca4),_0x229e6f={'valid':_0x4e5697[_0xb7645b(0x1fa)],'sqlType':_0x4e5697[_0xb7645b(0x1f1)][_0xb7645b(0x1f9)],'isSelectOnly':_0x4e5697[_0xb7645b(0x1f1)][_0xb7645b(0x20a)],'isDangerous':_0x4e5697[_0xb7645b(0x1f1)][_0xb7645b(0x214)],'tables':_0x4e5697['tables'],'parameters':_0x4e5697[_0xb7645b(0x216)],'message':_0x4e5697[_0xb7645b(0x1f8)]};_0x4e5697['sqlType'][_0xb7645b(0x1ee)]&&(_0x229e6f[_0xb7645b(0x1ee)]=_0x4e5697[_0xb7645b(0x1f1)][_0xb7645b(0x1ee)]);const _0x1a0e44=_0x42a9e9['str'](_0xb7645b(0x1fe));if(_0x1a0e44&&_0x4e5697[_0xb7645b(0x1fa)]){const _0x24ef61=_0x1a0e44[_0xb7645b(0x1e5)](',')[_0xb7645b(0x210)](_0x2ce634=>_0x2ce634['trim']())[_0xb7645b(0x1fd)](Boolean),_0x1b663=[],_0x1b3b5e=filterDbTableBackedDatasets(await listDatasets(_0x42a9e9['appCode'])),_0x4a1f94=new Map(_0x1b3b5e['map'](_0x2cfb2b=>[_0x2cfb2b[_0xb7645b(0x209)]?.[_0xb7645b(0x217)]?.[_0xb7645b(0x203)](),_0x2cfb2b]));for(const _0x3252cb of _0x4e5697[_0xb7645b(0x1e7)]){const _0x523f5c=_0x4a1f94['get'](_0x3252cb[_0xb7645b(0x203)]());!_0x523f5c&&_0x1b663[_0xb7645b(0x1f5)](_0xb7645b(0x20c)+_0x3252cb+_0xb7645b(0x201));}for(const _0x2d12f8 of _0x24ef61){let _0x32bef4;try{_0x32bef4=await getDatasetDetail(_0x2d12f8);}catch{_0x1b663[_0xb7645b(0x1f5)](_0xb7645b(0x1ff)+_0x2d12f8+'\x22\x20not\x20found\x20or\x20not\x20accessible');continue;}assertDatasetIsDbTableBacked(_0x32bef4,_0xb7645b(0x206));const _0x2219b5=Array['isArray'](_0x32bef4[_0xb7645b(0x1ea)])?_0x32bef4[_0xb7645b(0x1ea)]:[],_0x2120f7=new Set(_0x2219b5[_0xb7645b(0x210)](_0xa2fbba=>_0xa2fbba[_0xb7645b(0x215)]?.[_0xb7645b(0x203)]())),_0x1838a5=_0x32bef4[_0xb7645b(0x209)]?.[_0xb7645b(0x217)]||_0x32bef4[_0xb7645b(0x217)]||_0x2d12f8;_0x229e6f[_0xb7645b(0x1e8)+_0x1838a5]={'code':_0x2d12f8,'tableName':_0x1838a5,'fieldCount':_0x2120f7['size'],'fields':Array[_0xb7645b(0x1e4)](_0x2120f7)};}_0x1b663[_0xb7645b(0x1ec)]>0x0&&(_0x229e6f['schemaWarnings']=_0x1b663);}return{'ok':_0x4e5697[_0xb7645b(0x1fa)],'data':_0x229e6f,'message':_0x4e5697[_0xb7645b(0x1f8)]};}};
1
+ function a141_0x7f84(_0x11f6b9,_0x5ed3b1){_0x11f6b9=_0x11f6b9-0xa6;const _0xda196a=a141_0xda19();let _0x7f84ae=_0xda196a[_0x11f6b9];return _0x7f84ae;}const a141_0x163d9b=a141_0x7f84;(function(_0x321fee,_0x51ac4a){const _0x4c42e9=a141_0x7f84,_0x2ee3a1=_0x321fee();while(!![]){try{const _0x3d854c=parseInt(_0x4c42e9(0xb1))/0x1+-parseInt(_0x4c42e9(0xce))/0x2+parseInt(_0x4c42e9(0xb3))/0x3*(-parseInt(_0x4c42e9(0xab))/0x4)+-parseInt(_0x4c42e9(0xc4))/0x5+-parseInt(_0x4c42e9(0xd3))/0x6+parseInt(_0x4c42e9(0xaf))/0x7*(-parseInt(_0x4c42e9(0xbe))/0x8)+-parseInt(_0x4c42e9(0xb4))/0x9*(-parseInt(_0x4c42e9(0xc3))/0xa);if(_0x3d854c===_0x51ac4a)break;else _0x2ee3a1['push'](_0x2ee3a1['shift']());}catch(_0xf9903f){_0x2ee3a1['push'](_0x2ee3a1['shift']());}}}(a141_0xda19,0x79198));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';function a141_0xda19(){const _0x26f58a=['140950mVYRkl','2213345AGoZMx','\x22\x20not\x20found\x20or\x20not\x20accessible','type','filter','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','validate','sql','split','utf-8','file','576090xHGVPz','fields','get','tables','map','1752996IgSldF','toLowerCase','isArray','string','trim','schemas','isSelectOnly','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','isDangerous','989828DcsZok','sqlType','flagMissing','schema:','749cnNgnZ','appCode','512492PmNLmM','parameters','12sNIkhC','1413ViMtSY','valid','length','message','Provide\x20--file\x20or\x20--sql','str','from','tableName','reason','\x22\x20not\x20found\x20in\x20any\x20dataset','16200uVSjrt','dbtableConfig','size','validation','schemaWarnings'];a141_0xda19=function(){return _0x26f58a;};return a141_0xda19();}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':a141_0x163d9b(0xca),'command':a141_0x163d9b(0xc9),'description':a141_0x163d9b(0xc8),'risk':'read','flags':[{'name':a141_0x163d9b(0xcd),'type':a141_0x163d9b(0xd6),'description':a141_0x163d9b(0xa8)},{'name':a141_0x163d9b(0xca),'type':a141_0x163d9b(0xd6),'description':'Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)'},{'name':a141_0x163d9b(0xa6),'type':a141_0x163d9b(0xd6),'description':a141_0x163d9b(0xa9)}],async 'execute'(_0x4b3e4f){const _0x5da9e1=a141_0x163d9b,_0x567b2e=_0x4b3e4f[_0x5da9e1(0xb9)](_0x5da9e1(0xcd)),_0x14069e=_0x4b3e4f[_0x5da9e1(0xb9)](_0x5da9e1(0xca));if(!_0x567b2e&&!_0x14069e)throw CliErrors[_0x5da9e1(0xad)](_0x5da9e1(0xcd),_0x5da9e1(0xb8));let _0xd6cae;if(_0x567b2e){const _0x30fdfd=resolve(process['cwd'](),_0x567b2e);if(!existsSync(_0x30fdfd))throw CliErrors[_0x5da9e1(0xc1)]('File\x20not\x20found:\x20'+_0x30fdfd);_0xd6cae=readFileSync(_0x30fdfd,_0x5da9e1(0xcc));}else _0xd6cae=_0x14069e;const _0x3e4070=validateSql(_0xd6cae),_0x363b9d={'valid':_0x3e4070[_0x5da9e1(0xb5)],'sqlType':_0x3e4070['sqlType'][_0x5da9e1(0xc6)],'isSelectOnly':_0x3e4070['sqlType'][_0x5da9e1(0xa7)],'isDangerous':_0x3e4070[_0x5da9e1(0xac)][_0x5da9e1(0xaa)],'tables':_0x3e4070[_0x5da9e1(0xd1)],'parameters':_0x3e4070[_0x5da9e1(0xb2)],'message':_0x3e4070[_0x5da9e1(0xb7)]};_0x3e4070[_0x5da9e1(0xac)]['reason']&&(_0x363b9d['reason']=_0x3e4070['sqlType'][_0x5da9e1(0xbc)]);const _0x336c20=_0x4b3e4f[_0x5da9e1(0xb9)]('schemas');if(_0x336c20&&_0x3e4070['valid']){const _0x59a40a=_0x336c20[_0x5da9e1(0xcb)](',')[_0x5da9e1(0xd2)](_0x4ff7dd=>_0x4ff7dd[_0x5da9e1(0xd7)]())[_0x5da9e1(0xc7)](Boolean),_0x1c7944=[],_0x95fb4e=filterDbTableBackedDatasets(await listDatasets(_0x4b3e4f[_0x5da9e1(0xb0)])),_0x3f266f=new Map(_0x95fb4e[_0x5da9e1(0xd2)](_0x5c261b=>[_0x5c261b[_0x5da9e1(0xbf)]?.[_0x5da9e1(0xbb)]?.['toLowerCase'](),_0x5c261b]));for(const _0xe8511a of _0x3e4070['tables']){const _0x20c10a=_0x3f266f[_0x5da9e1(0xd0)](_0xe8511a[_0x5da9e1(0xd4)]());!_0x20c10a&&_0x1c7944['push']('Table\x20\x22'+_0xe8511a+_0x5da9e1(0xbd));}for(const _0x4cf0c9 of _0x59a40a){let _0x1e320e;try{_0x1e320e=await getDatasetDetail(_0x4cf0c9);}catch{_0x1c7944['push']('Dataset\x20\x22'+_0x4cf0c9+_0x5da9e1(0xc5));continue;}assertDatasetIsDbTableBacked(_0x1e320e,'SQL\x20schema\x20validation');const _0x566bd0=Array[_0x5da9e1(0xd5)](_0x1e320e[_0x5da9e1(0xcf)])?_0x1e320e[_0x5da9e1(0xcf)]:[],_0x13a9ae=new Set(_0x566bd0['map'](_0x1e8689=>_0x1e8689['name']?.[_0x5da9e1(0xd4)]())),_0x588abd=_0x1e320e[_0x5da9e1(0xbf)]?.[_0x5da9e1(0xbb)]||_0x1e320e['tableName']||_0x4cf0c9;_0x363b9d[_0x5da9e1(0xae)+_0x588abd]={'code':_0x4cf0c9,'tableName':_0x588abd,'fieldCount':_0x13a9ae[_0x5da9e1(0xc0)],'fields':Array[_0x5da9e1(0xba)](_0x13a9ae)};}_0x1c7944[_0x5da9e1(0xb6)]>0x0&&(_0x363b9d[_0x5da9e1(0xc2)]=_0x1c7944);}return{'ok':_0x3e4070['valid'],'data':_0x363b9d,'message':_0x3e4070['message']};}};
@@ -1 +1 @@
1
- function a141_0x2105(_0x4d2bdd,_0x4fe0b8){_0x4d2bdd=_0x4d2bdd-0x15c;const _0x5f4ec5=a141_0x5f4e();let _0x2105c4=_0x5f4ec5[_0x4d2bdd];return _0x2105c4;}const a141_0xb216f9=a141_0x2105;(function(_0x53260f,_0xd9530f){const _0xd45023=a141_0x2105,_0x557a83=_0x53260f();while(!![]){try{const _0x5deeaf=-parseInt(_0xd45023(0x175))/0x1+parseInt(_0xd45023(0x16c))/0x2*(parseInt(_0xd45023(0x165))/0x3)+parseInt(_0xd45023(0x16d))/0x4+-parseInt(_0xd45023(0x171))/0x5*(-parseInt(_0xd45023(0x167))/0x6)+-parseInt(_0xd45023(0x195))/0x7+parseInt(_0xd45023(0x18c))/0x8+-parseInt(_0xd45023(0x181))/0x9;if(_0x5deeaf===_0xd9530f)break;else _0x557a83['push'](_0x557a83['shift']());}catch(_0x21f35f){_0x557a83['push'](_0x557a83['shift']());}}}(a141_0x5f4e,0xf0e32));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+a141_0xb216f9(0x170),SAFE_PROFILE_KEYS=[a141_0xb216f9(0x185),a141_0xb216f9(0x17d),a141_0xb216f9(0x17b),'format','pageSize','riskLevel',a141_0xb216f9(0x16a)],workspaceFlags=[{'name':a141_0xb216f9(0x18a),'type':a141_0xb216f9(0x169),'description':a141_0xb216f9(0x17a)},{'name':a141_0xb216f9(0x185),'type':a141_0xb216f9(0x169),'description':'App\x20code\x20to\x20bind\x20to\x20this\x20workspace'},{'name':a141_0xb216f9(0x17d),'type':a141_0xb216f9(0x169),'description':a141_0xb216f9(0x180),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':a141_0xb216f9(0x169),'description':a141_0xb216f9(0x15c)},{'name':a141_0xb216f9(0x166),'type':a141_0xb216f9(0x169),'description':a141_0xb216f9(0x160),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':a141_0xb216f9(0x173),'description':a141_0xb216f9(0x192)},{'name':a141_0xb216f9(0x183),'type':'string','description':a141_0xb216f9(0x16e),'enum':[...RISK_LEVEL_VALUES]},{'name':a141_0xb216f9(0x16a),'type':a141_0xb216f9(0x169),'description':a141_0xb216f9(0x16f)}];function isRecord(_0x5021e4){return!!_0x5021e4&&typeof _0x5021e4==='object'&&!Array['isArray'](_0x5021e4);}function assertValidAppcode(_0x248a85){const _0x239260=a141_0xb216f9,{valid:_0x7ad150,message:_0x52f2b0}=validateAppcode(_0x248a85);if(!_0x7ad150)throw CliErrors[_0x239260(0x182)](_0x239260(0x177)+_0x248a85,_0x52f2b0);}function sanitizeProfile(_0x3fed9e){if(!isRecord(_0x3fed9e))return{};const _0x4883a5={};for(const _0x4e5470 of SAFE_PROFILE_KEYS){if(_0x3fed9e[_0x4e5470]!==undefined)_0x4883a5[_0x4e5470]=_0x3fed9e[_0x4e5470];}return _0x4883a5;}function cloneProfile(_0x39a936){return isRecord(_0x39a936)?{..._0x39a936}:{};}function collectWorkspaceProfileOverrides(_0x356aa8){const _0x4b2c5d=a141_0xb216f9,_0x3e0661={},_0x2ce96e=_0x356aa8[_0x4b2c5d(0x194)](_0x4b2c5d(0x17d)),_0x114e0f=_0x356aa8[_0x4b2c5d(0x194)](_0x4b2c5d(0x17b)),_0x30fffd=_0x356aa8['str']('defaultFormat'),_0x44c478=_0x356aa8['flag']('pageSize'),_0x6d0efc=_0x356aa8['str'](_0x4b2c5d(0x183)),_0x5e8cbb=_0x356aa8['str']('locale');if(_0x2ce96e)_0x3e0661[_0x4b2c5d(0x17d)]=_0x2ce96e;if(_0x114e0f)_0x3e0661['apiDir']=_0x114e0f;if(_0x30fffd)_0x3e0661[_0x4b2c5d(0x16b)]=_0x30fffd;if(_0x44c478!==undefined&&_0x44c478!=='')_0x3e0661[_0x4b2c5d(0x15d)]=Number(_0x44c478);if(_0x6d0efc)_0x3e0661[_0x4b2c5d(0x183)]=_0x6d0efc;if(_0x5e8cbb)_0x3e0661[_0x4b2c5d(0x16a)]=_0x5e8cbb;return _0x3e0661;}async function validateWorkspaceArgs(_0x37d6fb){const _0x3427f7=a141_0xb216f9,_0x33a23d=_0x37d6fb[_0x3427f7(0x194)]('app')['trim'](),_0x35cd12=_0x37d6fb[_0x3427f7(0x194)]('appcode')[_0x3427f7(0x188)]();if(!_0x33a23d&&!_0x35cd12)throw CliErrors['validation'](_0x3427f7(0x179),'Use\x20`'+CLI_BIN_NAME+_0x3427f7(0x176)+CLI_BIN_NAME+_0x3427f7(0x164));if(_0x35cd12)assertValidAppcode(_0x35cd12);}function resolveKnownApps(){const _0x3bc994=a141_0xb216f9,{config:_0x59faf7,layers:_0x20a56a}=readRawConfigWithLayers(),_0xc7b2a5=isRecord(_0x59faf7[_0x3bc994(0x17f)])?_0x59faf7[_0x3bc994(0x17f)]:{},_0x95ad1a=isRecord(_0x20a56a[_0x3bc994(0x174)][_0x3bc994(0x17f)])?_0x20a56a[_0x3bc994(0x174)]['apps']:{};return{..._0x95ad1a,..._0xc7b2a5};}function a141_0x5f4e(){const _0x105c76=['1708598uxTYuJ','1376000wwMcnh','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','Locale\x20for\x20this\x20workspace\x20app\x20profile','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','5381355tVdinF','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','number','globalConfig','242087NYCyLQ','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','Invalid\x20appcode:\x20','workspace.','Missing\x20workspace\x20app\x20selector.','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','apiDir','project','env','keys','apps','Target\x20environment','5864580QtmMQQ','validation','riskLevel','\x20workspace\x20','appcode','defaultApp','initialized','trim','write','app','.\x20Credentials:\x20not\x20written.','102784HUgJHm','\x20--app\x20','init','Use\x20`','length','workspace','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','\x22\x20not\x20found.','str','2849259OYQdiS','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','pageSize','Initialize\x20the\x20current\x20workspace\x20app\x20binding','join','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','use','Workspace\x20',').\x20Config:\x20','\x20workspace\x20use\x20--app\x20<name>`.','3gjuqOm','defaultFormat','6iIqNEe','App\x20\x22','string','locale','format'];a141_0x5f4e=function(){return _0x105c76;};return a141_0x5f4e();}async function configureWorkspace(_0x5d24a7,_0xf75894){const _0x2ccc76=a141_0xb216f9,_0x255b1b=_0x5d24a7[_0x2ccc76(0x194)]('app')[_0x2ccc76(0x188)](),_0x35dce=_0x5d24a7[_0x2ccc76(0x194)](_0x2ccc76(0x185))[_0x2ccc76(0x188)](),_0x98655d=_0x255b1b||_0x35dce;if(!_0x98655d)throw CliErrors[_0x2ccc76(0x182)](_0x2ccc76(0x179),_0x2ccc76(0x18f)+CLI_BIN_NAME+_0x2ccc76(0x176)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x35dce)assertValidAppcode(_0x35dce);const _0x2937d6=resolveWriteConfigPath(_0x2ccc76(0x17c)),_0x4281cd=readConfigFile(_0x2937d6),_0x44759c=resolveKnownApps(),_0x26cb31=isRecord(_0x4281cd[_0x2ccc76(0x17f)])?{..._0x4281cd[_0x2ccc76(0x17f)]}:{},_0x3c475d=cloneProfile(_0x26cb31[_0x98655d]),_0x17606c=sanitizeProfile(_0x44759c[_0x98655d]),_0xc6da53=_0x35dce?{}:_0x17606c,_0x2b42e4=_0x35dce||_0xc6da53[_0x2ccc76(0x185)];if(!_0x2b42e4){const _0x31053e=Object[_0x2ccc76(0x17e)](_0x44759c),_0x5edc50=_0x31053e[_0x2ccc76(0x190)]===0x0?_0x2ccc76(0x18f)+CLI_BIN_NAME+_0x2ccc76(0x184)+_0xf75894+_0x2ccc76(0x18d)+_0x98655d+'\x20--appcode\x20<code>`.':_0x2ccc76(0x172)+_0x31053e[_0x2ccc76(0x15f)](',\x20');throw CliErrors['validation'](_0x2ccc76(0x168)+_0x98655d+_0x2ccc76(0x193),_0x5edc50);}assertValidAppcode(String(_0x2b42e4));const _0x1d58d7={..._0xc6da53,..._0x3c475d,'appcode':String(_0x2b42e4),...collectWorkspaceProfileOverrides(_0x5d24a7)};return _0x26cb31[_0x98655d]=_0x1d58d7,_0x4281cd[_0x2ccc76(0x17f)]=_0x26cb31,_0x4281cd[_0x2ccc76(0x186)]=_0x98655d,delete _0x4281cd[_0x2ccc76(0x185)],delete _0x4281cd[_0x2ccc76(0x18a)],_0x1d58d7['env']&&(_0x4281cd[_0x2ccc76(0x17d)]=_0x1d58d7[_0x2ccc76(0x17d)]),writeConfigFile(_0x2937d6,_0x4281cd),{'ok':!![],'message':_0x2ccc76(0x162)+(_0xf75894===_0x2ccc76(0x18e)?_0x2ccc76(0x187):'updated')+':\x20'+_0x98655d+'\x20(appcode:\x20'+_0x1d58d7[_0x2ccc76(0x185)]+_0x2ccc76(0x163)+_0x2937d6+_0x2ccc76(0x18b),'data':{'operation':_0x2ccc76(0x178)+_0xf75894,'configPath':_0x2937d6,'app':_0x98655d,'appcode':_0x1d58d7[_0x2ccc76(0x185)],'env':_0x1d58d7[_0x2ccc76(0x17d)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a141_0xb216f9(0x191),'command':a141_0xb216f9(0x18e),'description':a141_0xb216f9(0x15e),'risk':a141_0xb216f9(0x189),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x2623ec=>configureWorkspace(_0x2623ec,a141_0xb216f9(0x18e))},workspaceUseDefinition={'service':a141_0xb216f9(0x191),'command':a141_0xb216f9(0x161),'description':'Switch\x20the\x20current\x20workspace\x20app\x20binding','risk':a141_0xb216f9(0x189),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x5358a2=>configureWorkspace(_0x5358a2,'use')};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition];export{WORKSPACE_USAGE};
1
+ const a142_0x36c69f=a142_0x11d3;(function(_0x39c1f9,_0x1f21c0){const _0x13dd45=a142_0x11d3,_0x294317=_0x39c1f9();while(!![]){try{const _0x3f2070=parseInt(_0x13dd45(0x87))/0x1*(parseInt(_0x13dd45(0x8a))/0x2)+-parseInt(_0x13dd45(0xaa))/0x3*(parseInt(_0x13dd45(0x96))/0x4)+-parseInt(_0x13dd45(0xa9))/0x5+-parseInt(_0x13dd45(0x86))/0x6*(parseInt(_0x13dd45(0x89))/0x7)+parseInt(_0x13dd45(0xa5))/0x8+parseInt(_0x13dd45(0xac))/0x9+-parseInt(_0x13dd45(0xa3))/0xa*(-parseInt(_0x13dd45(0x8d))/0xb);if(_0x3f2070===_0x1f21c0)break;else _0x294317['push'](_0x294317['shift']());}catch(_0x9b250f){_0x294317['push'](_0x294317['shift']());}}}(a142_0x3f3c,0xc7030));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';function a142_0x3f3c(){const _0x2ef787=['isArray','number','workspace.','pageSize','Use\x20`','3359814dJCeMB','23063ltbJLr','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','14TkALXs','10PloAKx','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','\x20workspace\x20use\x20--app\x20<name>`.','9171217kFYNGf','string','appcode','validation','length','flag','Target\x20environment','\x20(appcode:\x20','\x20--appcode\x20<code>`.','10180oJnpRe','object','apps','join','updated','initialized','init','\x22\x20not\x20found.','\x20--app\x20','defaultFormat',').\x20Config:\x20','str','locale','30obrzvY','trim','2688880rveQpo','apiDir','keys','App\x20\x22','6062430oSxGJT','645JGEAVO','Missing\x20workspace\x20app\x20selector.','6678765kZWBAN','globalConfig','workspace','.\x20Credentials:\x20not\x20written.','format','app','riskLevel','\x20workspace\x20','defaultApp','Initialize\x20the\x20current\x20workspace\x20app\x20binding','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','write','env','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'];a142_0x3f3c=function(){return _0x2ef787;};return a142_0x3f3c();}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+a142_0x36c69f(0xb6),SAFE_PROFILE_KEYS=[a142_0x36c69f(0x8f),'env','apiDir',a142_0x36c69f(0xb0),'pageSize',a142_0x36c69f(0xb2),a142_0x36c69f(0xa2)],workspaceFlags=[{'name':a142_0x36c69f(0xb1),'type':a142_0x36c69f(0x8e),'description':'App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace'},{'name':a142_0x36c69f(0x8f),'type':a142_0x36c69f(0x8e),'description':'App\x20code\x20to\x20bind\x20to\x20this\x20workspace'},{'name':a142_0x36c69f(0xb8),'type':a142_0x36c69f(0x8e),'description':a142_0x36c69f(0x93),'enum':[...RABETBASE_ENV_VALUES]},{'name':a142_0x36c69f(0xa6),'type':'string','description':a142_0x36c69f(0x8b)},{'name':'defaultFormat','type':a142_0x36c69f(0x8e),'description':'Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a142_0x36c69f(0x84),'type':a142_0x36c69f(0xbb),'description':'Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a142_0x36c69f(0xb2),'type':a142_0x36c69f(0x8e),'description':'Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':a142_0x36c69f(0x8e),'description':'Locale\x20for\x20this\x20workspace\x20app\x20profile'}];function isRecord(_0x807a35){const _0x5964c7=a142_0x36c69f;return!!_0x807a35&&typeof _0x807a35===_0x5964c7(0x97)&&!Array[_0x5964c7(0xba)](_0x807a35);}function assertValidAppcode(_0x2752e3){const {valid:_0x4245d2,message:_0x1648ad}=validateAppcode(_0x2752e3);if(!_0x4245d2)throw CliErrors['validation']('Invalid\x20appcode:\x20'+_0x2752e3,_0x1648ad);}function sanitizeProfile(_0x373440){if(!isRecord(_0x373440))return{};const _0x917512={};for(const _0x2e9a65 of SAFE_PROFILE_KEYS){if(_0x373440[_0x2e9a65]!==undefined)_0x917512[_0x2e9a65]=_0x373440[_0x2e9a65];}return _0x917512;}function cloneProfile(_0x3ada54){return isRecord(_0x3ada54)?{..._0x3ada54}:{};}function a142_0x11d3(_0x5a093f,_0x15a22d){_0x5a093f=_0x5a093f-0x84;const _0x3f3c2c=a142_0x3f3c();let _0x11d30f=_0x3f3c2c[_0x5a093f];return _0x11d30f;}function collectWorkspaceProfileOverrides(_0x3fcc8f){const _0x46bd1e=a142_0x36c69f,_0x49c5d4={},_0x58c5ab=_0x3fcc8f[_0x46bd1e(0xa1)]('env'),_0x293b59=_0x3fcc8f['str'](_0x46bd1e(0xa6)),_0x184972=_0x3fcc8f[_0x46bd1e(0xa1)](_0x46bd1e(0x9f)),_0x374b34=_0x3fcc8f[_0x46bd1e(0x92)]('pageSize'),_0x299409=_0x3fcc8f[_0x46bd1e(0xa1)](_0x46bd1e(0xb2)),_0x40b632=_0x3fcc8f[_0x46bd1e(0xa1)]('locale');if(_0x58c5ab)_0x49c5d4[_0x46bd1e(0xb8)]=_0x58c5ab;if(_0x293b59)_0x49c5d4[_0x46bd1e(0xa6)]=_0x293b59;if(_0x184972)_0x49c5d4[_0x46bd1e(0xb0)]=_0x184972;if(_0x374b34!==undefined&&_0x374b34!=='')_0x49c5d4['pageSize']=Number(_0x374b34);if(_0x299409)_0x49c5d4[_0x46bd1e(0xb2)]=_0x299409;if(_0x40b632)_0x49c5d4[_0x46bd1e(0xa2)]=_0x40b632;return _0x49c5d4;}async function validateWorkspaceArgs(_0x530b8b){const _0x131027=a142_0x36c69f,_0xf78c1d=_0x530b8b[_0x131027(0xa1)](_0x131027(0xb1))[_0x131027(0xa4)](),_0x3a4493=_0x530b8b[_0x131027(0xa1)](_0x131027(0x8f))[_0x131027(0xa4)]();if(!_0xf78c1d&&!_0x3a4493)throw CliErrors[_0x131027(0x90)](_0x131027(0xab),_0x131027(0x85)+CLI_BIN_NAME+_0x131027(0xb9)+CLI_BIN_NAME+_0x131027(0x8c));if(_0x3a4493)assertValidAppcode(_0x3a4493);}function resolveKnownApps(){const _0x153b53=a142_0x36c69f,{config:_0x3f97cb,layers:_0x8ea288}=readRawConfigWithLayers(),_0x449afc=isRecord(_0x3f97cb[_0x153b53(0x98)])?_0x3f97cb[_0x153b53(0x98)]:{},_0x3fbe4f=isRecord(_0x8ea288[_0x153b53(0xad)]['apps'])?_0x8ea288[_0x153b53(0xad)][_0x153b53(0x98)]:{};return{..._0x3fbe4f,..._0x449afc};}async function configureWorkspace(_0x4bd830,_0x36457e){const _0x213ed4=a142_0x36c69f,_0x37e266=_0x4bd830['str'](_0x213ed4(0xb1))['trim'](),_0xb93532=_0x4bd830[_0x213ed4(0xa1)](_0x213ed4(0x8f))[_0x213ed4(0xa4)](),_0x2ca074=_0x37e266||_0xb93532;if(!_0x2ca074)throw CliErrors[_0x213ed4(0x90)](_0x213ed4(0xab),_0x213ed4(0x85)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+_0x213ed4(0x8c));if(_0xb93532)assertValidAppcode(_0xb93532);const _0x23f10c=resolveWriteConfigPath('project'),_0x360517=readConfigFile(_0x23f10c),_0x367750=resolveKnownApps(),_0x3e1373=isRecord(_0x360517[_0x213ed4(0x98)])?{..._0x360517['apps']}:{},_0x3324a1=cloneProfile(_0x3e1373[_0x2ca074]),_0xcb062a=sanitizeProfile(_0x367750[_0x2ca074]),_0x56d4ee=_0xb93532?{}:_0xcb062a,_0xf908de=_0xb93532||_0x56d4ee[_0x213ed4(0x8f)];if(!_0xf908de){const _0x584f44=Object[_0x213ed4(0xa7)](_0x367750),_0x3634c8=_0x584f44[_0x213ed4(0x91)]===0x0?_0x213ed4(0x85)+CLI_BIN_NAME+_0x213ed4(0xb3)+_0x36457e+_0x213ed4(0x9e)+_0x2ca074+_0x213ed4(0x95):_0x213ed4(0x88)+_0x584f44[_0x213ed4(0x99)](',\x20');throw CliErrors[_0x213ed4(0x90)](_0x213ed4(0xa8)+_0x2ca074+_0x213ed4(0x9d),_0x3634c8);}assertValidAppcode(String(_0xf908de));const _0x2870ef={..._0x56d4ee,..._0x3324a1,'appcode':String(_0xf908de),...collectWorkspaceProfileOverrides(_0x4bd830)};return _0x3e1373[_0x2ca074]=_0x2870ef,_0x360517['apps']=_0x3e1373,_0x360517[_0x213ed4(0xb4)]=_0x2ca074,delete _0x360517['appcode'],delete _0x360517[_0x213ed4(0xb1)],_0x2870ef[_0x213ed4(0xb8)]&&(_0x360517['env']=_0x2870ef['env']),writeConfigFile(_0x23f10c,_0x360517),{'ok':!![],'message':'Workspace\x20'+(_0x36457e===_0x213ed4(0x9c)?_0x213ed4(0x9b):_0x213ed4(0x9a))+':\x20'+_0x2ca074+_0x213ed4(0x94)+_0x2870ef[_0x213ed4(0x8f)]+_0x213ed4(0xa0)+_0x23f10c+_0x213ed4(0xaf),'data':{'operation':_0x213ed4(0xbc)+_0x36457e,'configPath':_0x23f10c,'app':_0x2ca074,'appcode':_0x2870ef['appcode'],'env':_0x2870ef[_0x213ed4(0xb8)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a142_0x36c69f(0xae),'command':a142_0x36c69f(0x9c),'description':a142_0x36c69f(0xb5),'risk':a142_0x36c69f(0xb7),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x20bf03=>configureWorkspace(_0x20bf03,a142_0x36c69f(0x9c))},workspaceUseDefinition={'service':a142_0x36c69f(0xae),'command':'use','description':'Switch\x20the\x20current\x20workspace\x20app\x20binding','risk':a142_0x36c69f(0xb7),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x51a811=>configureWorkspace(_0x51a811,'use')};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition];export{WORKSPACE_USAGE};
@@ -1 +1 @@
1
- function a142_0x1823(){const _0x33f8e5=['Default\x20page\x20size','entries','820011CBcoJl','riskLevel','8iDqcMO','apiDir','length','Risk\x20level','en-US','trim','API\x20directory\x20path','Target\x20environment','zh-CN','keys','Access\x20key','string','pageSize','format','78756mFTCrA','72XYcFbA','Auth\x20cookie','apps','app','cookie','21141790MHcWgn','Locale','11CUuWOy','join','inherit','4apGTvg','defaultFormat','appcode','defaultApp','has','env','Config\x20key\x20(','2370195xtslHL','6947290gPyjHr','accessKey','toLowerCase','6263940fFnmrJ','4443005xYSKBB','number','locale'];a142_0x1823=function(){return _0x33f8e5;};return a142_0x1823();}const a142_0x488946=a142_0x2347;(function(_0x1c175a,_0xa52bd4){const _0x5be24d=a142_0x2347,_0x384207=_0x1c175a();while(!![]){try{const _0x40185b=parseInt(_0x5be24d(0x147))/0x1+parseInt(_0x5be24d(0x158))/0x2*(parseInt(_0x5be24d(0x157))/0x3)+-parseInt(_0x5be24d(0x162))/0x4*(parseInt(_0x5be24d(0x142))/0x5)+parseInt(_0x5be24d(0x141))/0x6+parseInt(_0x5be24d(0x13e))/0x7+-parseInt(_0x5be24d(0x149))/0x8*(parseInt(_0x5be24d(0x169))/0x9)+-parseInt(_0x5be24d(0x15d))/0xa*(parseInt(_0x5be24d(0x15f))/0xb);if(_0x40185b===_0xa52bd4)break;else _0x384207['push'](_0x384207['shift']());}catch(_0x1d62db){_0x384207['push'](_0x384207['shift']());}}}(a142_0x1823,0x82b70));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=[a142_0x488946(0x15c),a142_0x488946(0x13f),a142_0x488946(0x144),a142_0x488946(0x156),a142_0x488946(0x148)];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode',a142_0x488946(0x167),a142_0x488946(0x144),a142_0x488946(0x156),a142_0x488946(0x15c),a142_0x488946(0x13f),a142_0x488946(0x14a)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};function a142_0x2347(_0x5e3359,_0x1b7d72){_0x5e3359=_0x5e3359-0x13e;const _0x182393=a142_0x1823();let _0x2347f0=_0x182393[_0x5e3359];return _0x2347f0;}export function formatConfigKeyList(_0x3856c3){const _0x34ff78=a142_0x488946;return[..._0x3856c3][_0x34ff78(0x160)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x5f1039){const _0x65312=a142_0x488946;return TOP_LEVEL_CONFIG_KEYS[_0x65312(0x166)](_0x5f1039);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x2cd58a=a142_0x488946;return _0x2cd58a(0x168)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':'env','apiDir':'apiDir','cookie':a142_0x488946(0x15c),'accessKey':a142_0x488946(0x13f),'defaultFormat':'format','pageSize':a142_0x488946(0x155),'riskLevel':a142_0x488946(0x148),'locale':a142_0x488946(0x144)};export function getAppProfileFlagDefs(){const _0x3e3701=a142_0x488946;return[{'name':_0x3e3701(0x167),'type':_0x3e3701(0x154),'description':_0x3e3701(0x150),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x3e3701(0x14a),'type':_0x3e3701(0x154),'description':_0x3e3701(0x14f)},{'name':_0x3e3701(0x15c),'type':_0x3e3701(0x154),'description':_0x3e3701(0x159),'hidden':!![]},{'name':_0x3e3701(0x13f),'type':_0x3e3701(0x154),'description':_0x3e3701(0x153),'hidden':!![]},{'name':_0x3e3701(0x163),'type':_0x3e3701(0x154),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x3e3701(0x155),'type':_0x3e3701(0x143),'description':_0x3e3701(0x145)},{'name':_0x3e3701(0x148),'type':'string','description':_0x3e3701(0x14c),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x3e3701(0x154),'description':_0x3e3701(0x15e)}];}export function collectAppProfileOverrides(_0x59e2b7){const _0x408e6d=a142_0x488946,_0x226ed1={};for(const [_0x5be8e3,_0x4ecdac]of Object[_0x408e6d(0x146)](APP_PROFILE_FLAG_KEY_MAP)){const _0x51eb11=_0x59e2b7(_0x5be8e3);if(!_0x51eb11)continue;_0x226ed1[_0x4ecdac]=_0x4ecdac===_0x408e6d(0x155)?Number(_0x51eb11):_0x51eb11;}return _0x226ed1;}export function buildAppProfileListFields(_0x4649ec){const _0x3be223=a142_0x488946;return{'env':_0x4649ec['env']??null,'apiDir':_0x4649ec[_0x3be223(0x14a)]??null,'hasCookie':!!_0x4649ec[_0x3be223(0x15c)],'hasAccessKey':!!_0x4649ec[_0x3be223(0x13f)],'format':_0x4649ec['format']??null,'pageSize':_0x4649ec[_0x3be223(0x155)]??null,'riskLevel':_0x4649ec[_0x3be223(0x148)]??null,'locale':_0x4649ec[_0x3be223(0x144)]??null};}export function buildAppDoctorFields(_0xa3f279,_0x56aa48){const _0x346c5a=a142_0x488946;return{'env':{'value':_0xa3f279[_0x346c5a(0x167)]||_0x56aa48[_0x346c5a(0x167)],'source':_0xa3f279[_0x346c5a(0x167)]?_0x346c5a(0x15b):'inherit'},'apiDir':{'value':_0xa3f279[_0x346c5a(0x14a)]||_0x56aa48['apiDir'],'source':_0xa3f279[_0x346c5a(0x14a)]?'app':_0x346c5a(0x161)},'cookie':{'value':_0xa3f279['cookie']||_0x56aa48['cookie'],'source':_0xa3f279['cookie']?_0x346c5a(0x15b):_0x346c5a(0x161)},'accessKey':{'value':_0xa3f279[_0x346c5a(0x13f)]||_0x56aa48[_0x346c5a(0x13f)],'source':_0xa3f279[_0x346c5a(0x13f)]?_0x346c5a(0x15b):_0x346c5a(0x161)}};}export function buildCanonicalAppConfig(_0x370230,_0x20a9e6){const _0xc9babb=a142_0x488946,_0x13ed66=_0x370230['map'](_0x268e4a=>String(_0x268e4a||'')[_0xc9babb(0x14e)]())['filter'](Boolean);if(_0x13ed66[_0xc9babb(0x14b)]===0x0)return{};const _0x41eaa6={};for(const _0x2ec31e of _0x13ed66){_0x41eaa6[_0x2ec31e]=_0x20a9e6?{'appcode':_0x2ec31e,'env':_0x20a9e6}:{'appcode':_0x2ec31e};}return{'apps':_0x41eaa6,'defaultApp':_0x13ed66[0x0]};}export function buildCanonicalProjectConfig(_0x2a7928,_0x1e662f){const _0x2763d7=a142_0x488946,{appCodes:appCodes=[],env:_0x3a7ad3,metadata:_0x175ba5}=_0x1e662f,_0x49416c={..._0x2a7928,..._0x175ba5||{}};delete _0x49416c[_0x2763d7(0x164)],delete _0x49416c['app'];if(_0x3a7ad3)_0x49416c[_0x2763d7(0x167)]=_0x3a7ad3;else!_0x49416c[_0x2763d7(0x167)]&&(_0x49416c[_0x2763d7(0x167)]=DEFAULT_CONFIG_VALUES[_0x2763d7(0x167)]);const _0x101a05=buildCanonicalAppConfig(appCodes,_0x49416c[_0x2763d7(0x167)]);return Object[_0x2763d7(0x152)](_0x101a05)[_0x2763d7(0x14b)]>0x0&&(_0x49416c[_0x2763d7(0x15a)]=_0x101a05[_0x2763d7(0x15a)],_0x49416c[_0x2763d7(0x165)]=_0x101a05['defaultApp']),_0x49416c;}const LOCALE_MAP={'zh':a142_0x488946(0x151),'zh-cn':a142_0x488946(0x151),'zh_cn':a142_0x488946(0x151),'en':a142_0x488946(0x14d),'en-us':a142_0x488946(0x14d),'en_us':a142_0x488946(0x14d)};export function normalizeLocale(_0x12d63a){const _0xfabec0=a142_0x488946;if(!_0x12d63a)return null;return LOCALE_MAP[_0x12d63a[_0xfabec0(0x140)]()]??null;}
1
+ const a143_0x4d2989=a143_0x2716;(function(_0x4fd4fe,_0x476f9e){const _0x1affa5=a143_0x2716,_0x54409e=_0x4fd4fe();while(!![]){try{const _0x2db213=parseInt(_0x1affa5(0xe5))/0x1*(parseInt(_0x1affa5(0xf8))/0x2)+parseInt(_0x1affa5(0xe9))/0x3+-parseInt(_0x1affa5(0xf9))/0x4+parseInt(_0x1affa5(0xf6))/0x5+parseInt(_0x1affa5(0xfe))/0x6*(parseInt(_0x1affa5(0xe7))/0x7)+-parseInt(_0x1affa5(0xf7))/0x8+parseInt(_0x1affa5(0xf0))/0x9*(-parseInt(_0x1affa5(0xe6))/0xa);if(_0x2db213===_0x476f9e)break;else _0x54409e['push'](_0x54409e['shift']());}catch(_0x1b5d5f){_0x54409e['push'](_0x54409e['shift']());}}}(a143_0x5b16,0x993e5));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=[a143_0x4d2989(0xe0),a143_0x4d2989(0xde),a143_0x4d2989(0xee),'format',a143_0x4d2989(0xe1)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a143_0x4d2989(0xf5),a143_0x4d2989(0x100),a143_0x4d2989(0xee),a143_0x4d2989(0xf2),a143_0x4d2989(0xe0),'accessKey',a143_0x4d2989(0xdc)]);function a143_0x2716(_0x21457b,_0x43cd58){_0x21457b=_0x21457b-0xd9;const _0x5b16e0=a143_0x5b16();let _0x2716d4=_0x5b16e0[_0x21457b];return _0x2716d4;}export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x4ac542){const _0x5025ab=a143_0x4d2989;return[..._0x4ac542][_0x5025ab(0xed)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x20a432){return TOP_LEVEL_CONFIG_KEYS['has'](_0x20a432);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x5b1c65=a143_0x4d2989;return _0x5b1c65(0xf3)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':'env','apiDir':a143_0x4d2989(0xdc),'cookie':a143_0x4d2989(0xe0),'accessKey':'accessKey','defaultFormat':a143_0x4d2989(0xf2),'pageSize':'pageSize','riskLevel':'riskLevel','locale':a143_0x4d2989(0xee)};export function getAppProfileFlagDefs(){const _0x3f48aa=a143_0x4d2989;return[{'name':_0x3f48aa(0x100),'type':_0x3f48aa(0xec),'description':_0x3f48aa(0xd9),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x3f48aa(0xdc),'type':'string','description':_0x3f48aa(0xfb)},{'name':_0x3f48aa(0xe0),'type':_0x3f48aa(0xec),'description':_0x3f48aa(0xdf),'hidden':!![]},{'name':'accessKey','type':'string','description':_0x3f48aa(0xfd),'hidden':!![]},{'name':_0x3f48aa(0xfc),'type':_0x3f48aa(0xec),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':_0x3f48aa(0xdd),'description':_0x3f48aa(0xda)},{'name':_0x3f48aa(0xe1),'type':_0x3f48aa(0xec),'description':_0x3f48aa(0xea),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x3f48aa(0xee),'type':_0x3f48aa(0xec),'description':_0x3f48aa(0xdb)}];}function a143_0x5b16(){const _0x9345ca=['entries','env','Target\x20environment','Default\x20page\x20size','Locale','apiDir','number','accessKey','Auth\x20cookie','cookie','riskLevel','zh-CN','length','defaultApp','3QYGlPX','10kgbzkv','49KXxDwU','en-US','1641420qSTOLs','Risk\x20level','map','string','join','locale','inherit','1800927MmpyIf','apps','format','Config\x20key\x20(','pageSize','appcode','1510855BWgNFp','434400LyqEwY','105346lbghsk','3329780bQBXht','app','API\x20directory\x20path','defaultFormat','Access\x20key','606174hPZHHT'];a143_0x5b16=function(){return _0x9345ca;};return a143_0x5b16();}export function collectAppProfileOverrides(_0x2f78c8){const _0xa79b14=a143_0x4d2989,_0x166812={};for(const [_0x5ec16e,_0x166284]of Object[_0xa79b14(0xff)](APP_PROFILE_FLAG_KEY_MAP)){const _0x3b8905=_0x2f78c8(_0x5ec16e);if(!_0x3b8905)continue;_0x166812[_0x166284]=_0x166284===_0xa79b14(0xf4)?Number(_0x3b8905):_0x3b8905;}return _0x166812;}export function buildAppProfileListFields(_0x558082){const _0x4b1317=a143_0x4d2989;return{'env':_0x558082['env']??null,'apiDir':_0x558082[_0x4b1317(0xdc)]??null,'hasCookie':!!_0x558082[_0x4b1317(0xe0)],'hasAccessKey':!!_0x558082[_0x4b1317(0xde)],'format':_0x558082[_0x4b1317(0xf2)]??null,'pageSize':_0x558082[_0x4b1317(0xf4)]??null,'riskLevel':_0x558082[_0x4b1317(0xe1)]??null,'locale':_0x558082[_0x4b1317(0xee)]??null};}export function buildAppDoctorFields(_0x14a2a1,_0x4b135c){const _0x22305e=a143_0x4d2989;return{'env':{'value':_0x14a2a1[_0x22305e(0x100)]||_0x4b135c[_0x22305e(0x100)],'source':_0x14a2a1[_0x22305e(0x100)]?_0x22305e(0xfa):_0x22305e(0xef)},'apiDir':{'value':_0x14a2a1[_0x22305e(0xdc)]||_0x4b135c['apiDir'],'source':_0x14a2a1[_0x22305e(0xdc)]?'app':_0x22305e(0xef)},'cookie':{'value':_0x14a2a1[_0x22305e(0xe0)]||_0x4b135c[_0x22305e(0xe0)],'source':_0x14a2a1[_0x22305e(0xe0)]?'app':_0x22305e(0xef)},'accessKey':{'value':_0x14a2a1[_0x22305e(0xde)]||_0x4b135c[_0x22305e(0xde)],'source':_0x14a2a1[_0x22305e(0xde)]?_0x22305e(0xfa):'inherit'}};}export function buildCanonicalAppConfig(_0x44a8b9,_0x2dda22){const _0x100ac7=a143_0x4d2989,_0x9387b3=_0x44a8b9[_0x100ac7(0xeb)](_0x4112d4=>String(_0x4112d4||'')['trim']())['filter'](Boolean);if(_0x9387b3[_0x100ac7(0xe3)]===0x0)return{};const _0x3e02f1={};for(const _0x4bbbbb of _0x9387b3){_0x3e02f1[_0x4bbbbb]=_0x2dda22?{'appcode':_0x4bbbbb,'env':_0x2dda22}:{'appcode':_0x4bbbbb};}return{'apps':_0x3e02f1,'defaultApp':_0x9387b3[0x0]};}export function buildCanonicalProjectConfig(_0x277541,_0xd238b4){const _0x21cf3e=a143_0x4d2989,{appCodes:appCodes=[],env:_0x203902,metadata:_0x55c41}=_0xd238b4,_0xc52a9e={..._0x277541,..._0x55c41||{}};delete _0xc52a9e[_0x21cf3e(0xf5)],delete _0xc52a9e[_0x21cf3e(0xfa)];if(_0x203902)_0xc52a9e[_0x21cf3e(0x100)]=_0x203902;else!_0xc52a9e['env']&&(_0xc52a9e[_0x21cf3e(0x100)]=DEFAULT_CONFIG_VALUES[_0x21cf3e(0x100)]);const _0x10d03c=buildCanonicalAppConfig(appCodes,_0xc52a9e['env']);return Object['keys'](_0x10d03c)[_0x21cf3e(0xe3)]>0x0&&(_0xc52a9e[_0x21cf3e(0xf1)]=_0x10d03c[_0x21cf3e(0xf1)],_0xc52a9e['defaultApp']=_0x10d03c[_0x21cf3e(0xe4)]),_0xc52a9e;}const LOCALE_MAP={'zh':a143_0x4d2989(0xe2),'zh-cn':a143_0x4d2989(0xe2),'zh_cn':a143_0x4d2989(0xe2),'en':a143_0x4d2989(0xe8),'en-us':a143_0x4d2989(0xe8),'en_us':a143_0x4d2989(0xe8)};export function normalizeLocale(_0xaaf3f){if(!_0xaaf3f)return null;return LOCALE_MAP[_0xaaf3f['toLowerCase']()]??null;}
@@ -1 +1 @@
1
- function a143_0x2c76(_0x3c51dc,_0x59946e){_0x3c51dc=_0x3c51dc-0x156;const _0xf20a84=a143_0xf20a();let _0x2c767a=_0xf20a84[_0x3c51dc];return _0x2c767a;}const a143_0x3d0aec=a143_0x2c76;function a143_0xf20a(){const _0x8daacf=['407637IjKUXA','131415GsngSD','69501yQRIVW','234cwWZEW','68803JTgpPM','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','5623750NrencT','124dpEYLt','1547824EtBmjw','8SlkPcQ','8384346AeSwjq'];a143_0xf20a=function(){return _0x8daacf;};return a143_0xf20a();}(function(_0x16afb5,_0x30c39a){const _0x204079=a143_0x2c76,_0x4f38e2=_0x16afb5();while(!![]){try{const _0x344d69=parseInt(_0x204079(0x15c))/0x1+parseInt(_0x204079(0x159))/0x2+parseInt(_0x204079(0x15e))/0x3*(parseInt(_0x204079(0x158))/0x4)+-parseInt(_0x204079(0x15d))/0x5*(parseInt(_0x204079(0x15f))/0x6)+parseInt(_0x204079(0x160))/0x7+-parseInt(_0x204079(0x15a))/0x8*(parseInt(_0x204079(0x15b))/0x9)+parseInt(_0x204079(0x157))/0xa;if(_0x344d69===_0x30c39a)break;else _0x4f38e2['push'](_0x4f38e2['shift']());}catch(_0x21d7ec){_0x4f38e2['push'](_0x4f38e2['shift']());}}}(a143_0xf20a,0x7dce3));export const CLI_VERSION_POLICY_URL=a143_0x3d0aec(0x156);
1
+ function a144_0x5385(_0x284266,_0x23ba53){_0x284266=_0x284266-0xef;const _0x2dd326=a144_0x2dd3();let _0x53856b=_0x2dd326[_0x284266];return _0x53856b;}const a144_0x45718c=a144_0x5385;(function(_0x1be773,_0x194346){const _0x22f82a=a144_0x5385,_0x12b42b=_0x1be773();while(!![]){try{const _0x203d00=parseInt(_0x22f82a(0xf1))/0x1+parseInt(_0x22f82a(0xf8))/0x2+-parseInt(_0x22f82a(0xf2))/0x3*(parseInt(_0x22f82a(0xef))/0x4)+parseInt(_0x22f82a(0xf6))/0x5+parseInt(_0x22f82a(0xf3))/0x6+parseInt(_0x22f82a(0xf5))/0x7*(-parseInt(_0x22f82a(0xf4))/0x8)+-parseInt(_0x22f82a(0xf0))/0x9*(parseInt(_0x22f82a(0xf9))/0xa);if(_0x203d00===_0x194346)break;else _0x12b42b['push'](_0x12b42b['shift']());}catch(_0xb6f022){_0x12b42b['push'](_0x12b42b['shift']());}}}(a144_0x2dd3,0x1ed3a));export const CLI_VERSION_POLICY_URL=a144_0x45718c(0xf7);function a144_0x2dd3(){const _0x273f43=['3767139QlaERv','223731yfApBq','3OqAZuZ','1126500JLQyba','286840jhspoM','7WRpGGp','801790wViKEW','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','412080bvzVtp','10CYzwPF','788748CwYcWc'];a144_0x2dd3=function(){return _0x273f43;};return a144_0x2dd3();}
@@ -1 +1 @@
1
- const a144_0x2f76fe=a144_0x290a;(function(_0x59afa4,_0x317aad){const _0x460f6f=a144_0x290a,_0x142e80=_0x59afa4();while(!![]){try{const _0x4320d1=-parseInt(_0x460f6f(0xed))/0x1*(-parseInt(_0x460f6f(0x107))/0x2)+parseInt(_0x460f6f(0x136))/0x3+-parseInt(_0x460f6f(0x102))/0x4*(-parseInt(_0x460f6f(0x11a))/0x5)+parseInt(_0x460f6f(0x125))/0x6*(-parseInt(_0x460f6f(0xe5))/0x7)+parseInt(_0x460f6f(0x11c))/0x8+parseInt(_0x460f6f(0x122))/0x9+-parseInt(_0x460f6f(0xef))/0xa*(parseInt(_0x460f6f(0xe1))/0xb);if(_0x4320d1===_0x317aad)break;else _0x142e80['push'](_0x142e80['shift']());}catch(_0x26438a){_0x142e80['push'](_0x142e80['shift']());}}}(a144_0x4126,0x358b1));function a144_0x290a(_0x503db1,_0x50ebac){_0x503db1=_0x503db1-0xca;const _0x412684=a144_0x4126();let _0x290a3a=_0x412684[_0x503db1];return _0x290a3a;}export const CLI_BIN_NAME=a144_0x2f76fe(0xd5);export const CLI_DISPLAY_NAME=a144_0x2f76fe(0x103);export const NPM_PACKAGE_NAME=a144_0x2f76fe(0x12b);function a144_0x4126(){const _0x257be5=['12MbPKga','Description\x20file','SQL\x20code','sqlname','Skip\x20import\x20generation','Read\x20value\x20from\x20environment\x20variable','@lovrabet/rabetbase-cli','Title','Code\x20filter','functionNode','sql-name','Tags','yes','Output\x20path','Verbose\x20output','sqlcode','Function\x20node','1212525iRucPR','dry-run','descriptionFile','all','Dataset\x20code','sql','project','help','Apply\x20to\x20all','Page\x20number','nonInteractive','title','Record\x20ID','target','Reveal\x20sensitive\x20value','watch','Force\x20non-interactive\x20mode\x20(CI)','name','type','datasetcode','rabetbase','<code>','global','production\x20|\x20daily','env','Name','fromEntries','key','boolean','format','description','Expected\x20affected\x20count','271513cFEvRh','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','db-id','function-node','1280769pAfQXL','params','Read\x20value\x20from\x20stdin','Use\x20project\x20config\x20scope','SQL\x20name','keyword','dryRun','json\x20|\x20pretty\x20|\x20compress','384487WnjeUa','Schemas','410ysskss','Enable\x20BFF\x20save','appcode','reveal','non-interactive','JSON\x20params','description-file','Clear','output','verbose','Description','enable-bff-save','Use\x20global\x20config\x20scope','Operation\x20type','Config\x20key','schemas','string','remote','expectedCount','509772TPZafn','Rabetbase\x20CLI','operation','code','Page\x20size','2bSCQep','Type\x20filter','enableBffSave','from-env','stdin','confirm','fromEnv','File\x20path','skip-imports','meowKey','skipImports','Skip\x20confirmation\x20for\x20high-risk\x20writes','SQL\x20string','force','operationType','dbId','Force\x20overwrite','file','Show\x20help','15IADyCJ','pagesize','3222376KYJsiv','page','app','Watch\x20mode','Target\x20path','tags','211158ABaWQx','value','Preview\x20operation\x20without\x20executing'];a144_0x4126=function(){return _0x257be5;};return a144_0x4126();}export const GLOBAL_FLAGS=[{'name':a144_0x2f76fe(0xf1),'meowKey':'appcode','type':a144_0x2f76fe(0xff),'description':'Override\x20appcode','hint':a144_0x2f76fe(0xd6)},{'name':'app','meowKey':a144_0x2f76fe(0x11e),'type':a144_0x2f76fe(0xff),'description':'Select\x20app\x20profile\x20by\x20name','hint':'<name>'},{'name':a144_0x2f76fe(0xd9),'meowKey':a144_0x2f76fe(0xd9),'type':a144_0x2f76fe(0xff),'description':'Environment','hint':a144_0x2f76fe(0xd8)},{'name':a144_0x2f76fe(0xde),'meowKey':'format','type':'string','description':'Output\x20format','hint':a144_0x2f76fe(0xec)},{'name':'jq','meowKey':'jq','type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0xe2),'hint':'<expr>'},{'name':a144_0x2f76fe(0x137),'meowKey':a144_0x2f76fe(0xeb),'type':'boolean','description':a144_0x2f76fe(0x124)},{'name':a144_0x2f76fe(0x131),'meowKey':a144_0x2f76fe(0x131),'type':a144_0x2f76fe(0xdd),'description':a144_0x2f76fe(0x112)},{'name':a144_0x2f76fe(0xf3),'meowKey':a144_0x2f76fe(0xcb),'type':a144_0x2f76fe(0xdd),'description':a144_0x2f76fe(0xd1)},{'name':a144_0x2f76fe(0xd7),'meowKey':a144_0x2f76fe(0xd7),'type':'boolean','description':a144_0x2f76fe(0xfb)},{'name':a144_0x2f76fe(0x13c),'meowKey':'project','type':a144_0x2f76fe(0xdd),'description':a144_0x2f76fe(0xe8)},{'name':'ci','meowKey':'ci','type':a144_0x2f76fe(0xdd),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a144_0x2f76fe(0x13d),'meowKey':a144_0x2f76fe(0x13d),'type':'boolean','description':a144_0x2f76fe(0x119)},{'name':a144_0x2f76fe(0xd2),'meowKey':'name','type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0xda),'hidden':!![]},{'name':a144_0x2f76fe(0xcc),'meowKey':a144_0x2f76fe(0xcc),'type':'string','description':a144_0x2f76fe(0x12c),'hidden':!![]},{'name':'clear','meowKey':'clear','type':a144_0x2f76fe(0xdd),'description':a144_0x2f76fe(0xf6),'hidden':!![]},{'name':'watch','meowKey':a144_0x2f76fe(0xd0),'type':a144_0x2f76fe(0xdd),'description':a144_0x2f76fe(0x11f),'hidden':!![]},{'name':a144_0x2f76fe(0xf7),'meowKey':a144_0x2f76fe(0xf7),'type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0x132),'hidden':!![]},{'name':'params','meowKey':a144_0x2f76fe(0xe6),'type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0xf4),'hidden':!![]},{'name':'datasetcode','meowKey':a144_0x2f76fe(0xd4),'type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0x13a),'hidden':!![]},{'name':a144_0x2f76fe(0x139),'meowKey':a144_0x2f76fe(0x139),'type':a144_0x2f76fe(0xdd),'description':a144_0x2f76fe(0x13e),'hidden':!![]},{'name':a144_0x2f76fe(0xfa),'meowKey':a144_0x2f76fe(0x109),'type':a144_0x2f76fe(0xdd),'description':a144_0x2f76fe(0xf0),'hidden':!![]},{'name':'id','meowKey':'id','type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0xcd),'hidden':!![]},{'name':'type','meowKey':'type','type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0x108),'hidden':!![]},{'name':'file','meowKey':a144_0x2f76fe(0x118),'type':'string','description':a144_0x2f76fe(0x10e),'hidden':!![]},{'name':a144_0x2f76fe(0x134),'meowKey':'sqlcode','type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0x127),'hidden':!![]},{'name':a144_0x2f76fe(0x12f),'meowKey':'sqlName','type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0xe9),'hidden':!![]},{'name':a144_0x2f76fe(0x128),'meowKey':a144_0x2f76fe(0x128),'type':'string','description':a144_0x2f76fe(0xe9),'hidden':!![]},{'name':a144_0x2f76fe(0xe3),'meowKey':a144_0x2f76fe(0x116),'type':'string','description':'DB\x20ID','hidden':!![]},{'name':'dbid','meowKey':'dbid','type':a144_0x2f76fe(0xff),'description':'DB\x20ID','hidden':!![]},{'name':a144_0x2f76fe(0xdf),'meowKey':'description','type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0xf9),'hidden':!![]},{'name':a144_0x2f76fe(0xf5),'meowKey':a144_0x2f76fe(0x138),'type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0x126),'hidden':!![]},{'name':a144_0x2f76fe(0x11d),'meowKey':a144_0x2f76fe(0x11d),'type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0xca),'hidden':!![]},{'name':a144_0x2f76fe(0x11b),'meowKey':'pagesize','type':'string','description':a144_0x2f76fe(0x106),'hidden':!![]},{'name':a144_0x2f76fe(0xea),'meowKey':a144_0x2f76fe(0xea),'type':a144_0x2f76fe(0xff),'description':'Keyword\x20filter','hidden':!![]},{'name':a144_0x2f76fe(0x105),'meowKey':'code','type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0x12d),'hidden':!![]},{'name':a144_0x2f76fe(0x13b),'meowKey':a144_0x2f76fe(0x13b),'type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0x113),'hidden':!![]},{'name':'schemas','meowKey':a144_0x2f76fe(0xfe),'type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0xee),'hidden':!![]},{'name':a144_0x2f76fe(0x104),'meowKey':a144_0x2f76fe(0x104),'type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0xfc),'hidden':!![]},{'name':a144_0x2f76fe(0xce),'meowKey':a144_0x2f76fe(0xce),'type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0x120),'hidden':!![]},{'name':a144_0x2f76fe(0x10f),'meowKey':a144_0x2f76fe(0x111),'type':a144_0x2f76fe(0xdd),'description':a144_0x2f76fe(0x129),'hidden':!![]},{'name':'key','meowKey':a144_0x2f76fe(0xdc),'type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0xfd),'hidden':!![]},{'name':a144_0x2f76fe(0x123),'meowKey':a144_0x2f76fe(0x123),'type':a144_0x2f76fe(0xff),'description':'Config\x20value','hidden':!![]},{'name':'tags','meowKey':a144_0x2f76fe(0x121),'type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0x130),'hidden':!![]},{'name':a144_0x2f76fe(0x10b),'meowKey':'stdin','type':a144_0x2f76fe(0xdd),'description':a144_0x2f76fe(0xe7),'hidden':!![]},{'name':a144_0x2f76fe(0x10a),'meowKey':a144_0x2f76fe(0x10d),'type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0x12a),'hidden':!![]},{'name':a144_0x2f76fe(0xf2),'meowKey':a144_0x2f76fe(0xf2),'type':a144_0x2f76fe(0xdd),'description':a144_0x2f76fe(0xcf),'hidden':!![]},{'name':'force','meowKey':a144_0x2f76fe(0x114),'type':a144_0x2f76fe(0xdd),'description':a144_0x2f76fe(0x117),'hidden':!![]},{'name':a144_0x2f76fe(0x10c),'meowKey':'confirm','type':'boolean','description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a144_0x2f76fe(0x100),'meowKey':'remote','type':a144_0x2f76fe(0xdd),'description':'Use\x20remote','hidden':!![]},{'name':a144_0x2f76fe(0xf8),'meowKey':'verbose','type':'boolean','description':a144_0x2f76fe(0x133),'hidden':!![]},{'name':'expected-count','meowKey':a144_0x2f76fe(0x101),'type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0xe0),'hidden':!![]},{'name':'operation-type','meowKey':a144_0x2f76fe(0x115),'type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0xfc),'hidden':!![]},{'name':a144_0x2f76fe(0xe4),'meowKey':a144_0x2f76fe(0x12e),'type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0x135),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a144_0x2f76fe(0xf1),'app',a144_0x2f76fe(0xd9),a144_0x2f76fe(0xde),'jq',a144_0x2f76fe(0x137),a144_0x2f76fe(0x131),a144_0x2f76fe(0xf3),'ci']);export function buildMeowFlags(){const _0x206fd3=a144_0x2f76fe;return Object[_0x206fd3(0xdb)](GLOBAL_FLAGS['map'](_0x2cd7ec=>[_0x2cd7ec[_0x206fd3(0x110)],{'type':_0x2cd7ec[_0x206fd3(0xd3)]}]));}
1
+ const a145_0x4f98d5=a145_0x2c25;function a145_0x2c25(_0x44a262,_0x9b07d0){_0x44a262=_0x44a262-0x7b;const _0x418531=a145_0x4185();let _0x2c2530=_0x418531[_0x44a262];return _0x2c2530;}function a145_0x4185(){const _0x2bf569=['SQL\x20name','map','file','Force\x20non-interactive\x20mode\x20(CI)','app','format','from-env','key','keyword','skip-imports','<expr>','fromEntries','stdin','code','Verbose\x20output','dry-run','Environment','DB\x20ID','Force\x20overwrite','enableBffSave','env','meowKey','File\x20path','title','reveal','clear','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','503420jpimzs','string','remote','operation','SQL\x20string','function-node','global','Page\x20number','target','Output\x20format','tags','force','SQL\x20code','params','dbid','datasetcode','enable-bff-save','Operation\x20type','1548239EnvPiq','Select\x20app\x20profile\x20by\x20name','description','Read\x20value\x20from\x20environment\x20variable','JSON\x20params','Show\x20help','pagesize','117GbWYvy','page','Use\x20remote','675303WGMvRZ','Description\x20file','Description','output','Watch\x20mode','operationType','value','Apply\x20to\x20all','help','functionNode','Dataset\x20code','Function\x20node','nonInteractive','project','Read\x20value\x20from\x20stdin','Code\x20filter','20NApKot','Output\x20path','description-file','watch','Target\x20path','Config\x20value','schemas','operation-type','Use\x20global\x20config\x20scope','name','production\x20|\x20daily','sql-name','Preview\x20operation\x20without\x20executing','927822yuCOOc','Config\x20key','sqlcode','verbose','1YzXeLQ','boolean','Enable\x20BFF\x20save','type','confirm','sql','Override\x20appcode','14072JRWVEI','12cjrjaG','Clear','378LGKRaB','12mXigUc','db-id','appcode','1030178KVRjuU','fromEnv','all','9427132MgolKQ','dbId','expected-count','yes','<name>','Skip\x20import\x20generation','Alias\x20for\x20--non-interactive','sqlname'];a145_0x4185=function(){return _0x2bf569;};return a145_0x4185();}(function(_0x2e6e6b,_0x53358f){const _0x380388=a145_0x2c25,_0x36d9a9=_0x2e6e6b();while(!![]){try{const _0x377cbd=-parseInt(_0x380388(0xa5))/0x1*(-parseInt(_0x380388(0xb3))/0x2)+parseInt(_0x380388(0x84))/0x3*(-parseInt(_0x380388(0xb0))/0x4)+parseInt(_0x380388(0x94))/0x5*(-parseInt(_0x380388(0xa1))/0x6)+parseInt(_0x380388(0xaf))/0x7*(-parseInt(_0x380388(0xac))/0x8)+parseInt(_0x380388(0x81))/0x9*(parseInt(_0x380388(0xd9))/0xa)+-parseInt(_0x380388(0xeb))/0xb+-parseInt(_0x380388(0xad))/0xc*(-parseInt(_0x380388(0xb6))/0xd);if(_0x377cbd===_0x53358f)break;else _0x36d9a9['push'](_0x36d9a9['shift']());}catch(_0x54731e){_0x36d9a9['push'](_0x36d9a9['shift']());}}}(a145_0x4185,0x59239));export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':a145_0x4f98d5(0xb2),'meowKey':a145_0x4f98d5(0xb2),'type':'string','description':a145_0x4f98d5(0xab),'hint':'<code>'},{'name':a145_0x4f98d5(0xc2),'meowKey':a145_0x4f98d5(0xc2),'type':a145_0x4f98d5(0xda),'description':a145_0x4f98d5(0x7b),'hint':a145_0x4f98d5(0xba)},{'name':a145_0x4f98d5(0xd2),'meowKey':a145_0x4f98d5(0xd2),'type':a145_0x4f98d5(0xda),'description':a145_0x4f98d5(0xce),'hint':a145_0x4f98d5(0x9e)},{'name':a145_0x4f98d5(0xc3),'meowKey':a145_0x4f98d5(0xc3),'type':a145_0x4f98d5(0xda),'description':a145_0x4f98d5(0xe2),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a145_0x4f98d5(0xda),'description':a145_0x4f98d5(0xd8),'hint':a145_0x4f98d5(0xc8)},{'name':'dry-run','meowKey':'dryRun','type':a145_0x4f98d5(0xa6),'description':a145_0x4f98d5(0xa0)},{'name':a145_0x4f98d5(0xb9),'meowKey':a145_0x4f98d5(0xb9),'type':a145_0x4f98d5(0xa6),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':'non-interactive','meowKey':a145_0x4f98d5(0x90),'type':a145_0x4f98d5(0xa6),'description':a145_0x4f98d5(0xc1)},{'name':'global','meowKey':a145_0x4f98d5(0xdf),'type':a145_0x4f98d5(0xa6),'description':a145_0x4f98d5(0x9c)},{'name':'project','meowKey':a145_0x4f98d5(0x91),'type':a145_0x4f98d5(0xa6),'description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a145_0x4f98d5(0xa6),'description':a145_0x4f98d5(0xbc),'hidden':!![]},{'name':a145_0x4f98d5(0x8c),'meowKey':a145_0x4f98d5(0x8c),'type':a145_0x4f98d5(0xa6),'description':a145_0x4f98d5(0x7f)},{'name':a145_0x4f98d5(0x9d),'meowKey':a145_0x4f98d5(0x9d),'type':'string','description':'Name','hidden':!![]},{'name':'title','meowKey':a145_0x4f98d5(0xd5),'type':a145_0x4f98d5(0xda),'description':'Title','hidden':!![]},{'name':a145_0x4f98d5(0xd7),'meowKey':a145_0x4f98d5(0xd7),'type':a145_0x4f98d5(0xa6),'description':a145_0x4f98d5(0xae),'hidden':!![]},{'name':a145_0x4f98d5(0x97),'meowKey':a145_0x4f98d5(0x97),'type':a145_0x4f98d5(0xa6),'description':a145_0x4f98d5(0x88),'hidden':!![]},{'name':a145_0x4f98d5(0x87),'meowKey':a145_0x4f98d5(0x87),'type':'string','description':a145_0x4f98d5(0x95),'hidden':!![]},{'name':a145_0x4f98d5(0xe6),'meowKey':a145_0x4f98d5(0xe6),'type':'string','description':a145_0x4f98d5(0x7e),'hidden':!![]},{'name':a145_0x4f98d5(0xe8),'meowKey':a145_0x4f98d5(0xe8),'type':'string','description':a145_0x4f98d5(0x8e),'hidden':!![]},{'name':a145_0x4f98d5(0xb5),'meowKey':a145_0x4f98d5(0xb5),'type':a145_0x4f98d5(0xa6),'description':a145_0x4f98d5(0x8b),'hidden':!![]},{'name':a145_0x4f98d5(0xe9),'meowKey':a145_0x4f98d5(0xd1),'type':a145_0x4f98d5(0xa6),'description':a145_0x4f98d5(0xa7),'hidden':!![]},{'name':'id','meowKey':'id','type':a145_0x4f98d5(0xda),'description':'Record\x20ID','hidden':!![]},{'name':a145_0x4f98d5(0xa8),'meowKey':a145_0x4f98d5(0xa8),'type':'string','description':'Type\x20filter','hidden':!![]},{'name':a145_0x4f98d5(0xc0),'meowKey':'file','type':'string','description':a145_0x4f98d5(0xd4),'hidden':!![]},{'name':a145_0x4f98d5(0xa3),'meowKey':a145_0x4f98d5(0xa3),'type':a145_0x4f98d5(0xda),'description':a145_0x4f98d5(0xe5),'hidden':!![]},{'name':a145_0x4f98d5(0x9f),'meowKey':'sqlName','type':a145_0x4f98d5(0xda),'description':'SQL\x20name','hidden':!![]},{'name':a145_0x4f98d5(0xbd),'meowKey':a145_0x4f98d5(0xbd),'type':a145_0x4f98d5(0xda),'description':a145_0x4f98d5(0xbe),'hidden':!![]},{'name':a145_0x4f98d5(0xb1),'meowKey':a145_0x4f98d5(0xb7),'type':a145_0x4f98d5(0xda),'description':a145_0x4f98d5(0xcf),'hidden':!![]},{'name':a145_0x4f98d5(0xe7),'meowKey':'dbid','type':a145_0x4f98d5(0xda),'description':'DB\x20ID','hidden':!![]},{'name':a145_0x4f98d5(0x7c),'meowKey':'description','type':a145_0x4f98d5(0xda),'description':a145_0x4f98d5(0x86),'hidden':!![]},{'name':a145_0x4f98d5(0x96),'meowKey':'descriptionFile','type':a145_0x4f98d5(0xda),'description':a145_0x4f98d5(0x85),'hidden':!![]},{'name':a145_0x4f98d5(0x82),'meowKey':'page','type':'string','description':a145_0x4f98d5(0xe0),'hidden':!![]},{'name':a145_0x4f98d5(0x80),'meowKey':a145_0x4f98d5(0x80),'type':a145_0x4f98d5(0xda),'description':'Page\x20size','hidden':!![]},{'name':a145_0x4f98d5(0xc6),'meowKey':'keyword','type':a145_0x4f98d5(0xda),'description':'Keyword\x20filter','hidden':!![]},{'name':a145_0x4f98d5(0xcb),'meowKey':a145_0x4f98d5(0xcb),'type':a145_0x4f98d5(0xda),'description':a145_0x4f98d5(0x93),'hidden':!![]},{'name':a145_0x4f98d5(0xaa),'meowKey':a145_0x4f98d5(0xaa),'type':a145_0x4f98d5(0xda),'description':a145_0x4f98d5(0xdd),'hidden':!![]},{'name':a145_0x4f98d5(0x9a),'meowKey':a145_0x4f98d5(0x9a),'type':a145_0x4f98d5(0xda),'description':'Schemas','hidden':!![]},{'name':'operation','meowKey':a145_0x4f98d5(0xdc),'type':a145_0x4f98d5(0xda),'description':a145_0x4f98d5(0xea),'hidden':!![]},{'name':'target','meowKey':a145_0x4f98d5(0xe1),'type':a145_0x4f98d5(0xda),'description':a145_0x4f98d5(0x98),'hidden':!![]},{'name':a145_0x4f98d5(0xc7),'meowKey':'skipImports','type':'boolean','description':a145_0x4f98d5(0xbb),'hidden':!![]},{'name':a145_0x4f98d5(0xc5),'meowKey':a145_0x4f98d5(0xc5),'type':a145_0x4f98d5(0xda),'description':a145_0x4f98d5(0xa2),'hidden':!![]},{'name':'value','meowKey':a145_0x4f98d5(0x8a),'type':a145_0x4f98d5(0xda),'description':a145_0x4f98d5(0x99),'hidden':!![]},{'name':a145_0x4f98d5(0xe3),'meowKey':'tags','type':a145_0x4f98d5(0xda),'description':'Tags','hidden':!![]},{'name':a145_0x4f98d5(0xca),'meowKey':'stdin','type':a145_0x4f98d5(0xa6),'description':a145_0x4f98d5(0x92),'hidden':!![]},{'name':a145_0x4f98d5(0xc4),'meowKey':a145_0x4f98d5(0xb4),'type':a145_0x4f98d5(0xda),'description':a145_0x4f98d5(0x7d),'hidden':!![]},{'name':a145_0x4f98d5(0xd6),'meowKey':a145_0x4f98d5(0xd6),'type':'boolean','description':'Reveal\x20sensitive\x20value','hidden':!![]},{'name':a145_0x4f98d5(0xe4),'meowKey':a145_0x4f98d5(0xe4),'type':'boolean','description':a145_0x4f98d5(0xd0),'hidden':!![]},{'name':a145_0x4f98d5(0xa9),'meowKey':'confirm','type':a145_0x4f98d5(0xa6),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a145_0x4f98d5(0xdb),'meowKey':a145_0x4f98d5(0xdb),'type':a145_0x4f98d5(0xa6),'description':a145_0x4f98d5(0x83),'hidden':!![]},{'name':a145_0x4f98d5(0xa4),'meowKey':a145_0x4f98d5(0xa4),'type':a145_0x4f98d5(0xa6),'description':a145_0x4f98d5(0xcc),'hidden':!![]},{'name':a145_0x4f98d5(0xb8),'meowKey':'expectedCount','type':a145_0x4f98d5(0xda),'description':'Expected\x20affected\x20count','hidden':!![]},{'name':a145_0x4f98d5(0x9b),'meowKey':a145_0x4f98d5(0x89),'type':a145_0x4f98d5(0xda),'description':a145_0x4f98d5(0xea),'hidden':!![]},{'name':a145_0x4f98d5(0xde),'meowKey':a145_0x4f98d5(0x8d),'type':a145_0x4f98d5(0xda),'description':a145_0x4f98d5(0x8f),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a145_0x4f98d5(0xb2),a145_0x4f98d5(0xc2),a145_0x4f98d5(0xd2),a145_0x4f98d5(0xc3),'jq',a145_0x4f98d5(0xcd),a145_0x4f98d5(0xb9),'non-interactive','ci']);export function buildMeowFlags(){const _0x5eccea=a145_0x4f98d5;return Object[_0x5eccea(0xc9)](GLOBAL_FLAGS[_0x5eccea(0xbf)](_0x2aabf7=>[_0x2aabf7[_0x5eccea(0xd3)],{'type':_0x2aabf7[_0x5eccea(0xa8)]}]));}
@@ -1 +1 @@
1
- function a145_0x3705(_0x4a8119,_0x52271b){_0x4a8119=_0x4a8119-0xdc;const _0x9560a3=a145_0x9560();let _0x370539=_0x9560a3[_0x4a8119];return _0x370539;}const a145_0x87d6fb=a145_0x3705;(function(_0x3adfe6,_0x5e0468){const _0x42d4ea=a145_0x3705,_0x35953f=_0x3adfe6();while(!![]){try{const _0x345a8d=-parseInt(_0x42d4ea(0xe0))/0x1*(parseInt(_0x42d4ea(0xdd))/0x2)+-parseInt(_0x42d4ea(0xe8))/0x3*(parseInt(_0x42d4ea(0xe7))/0x4)+-parseInt(_0x42d4ea(0xde))/0x5*(parseInt(_0x42d4ea(0xdf))/0x6)+parseInt(_0x42d4ea(0xe6))/0x7*(-parseInt(_0x42d4ea(0xe2))/0x8)+parseInt(_0x42d4ea(0xea))/0x9*(parseInt(_0x42d4ea(0xe3))/0xa)+parseInt(_0x42d4ea(0xe5))/0xb+-parseInt(_0x42d4ea(0xe9))/0xc*(-parseInt(_0x42d4ea(0xdc))/0xd);if(_0x345a8d===_0x5e0468)break;else _0x35953f['push'](_0x35953f['shift']());}catch(_0x5b916d){_0x35953f['push'](_0x35953f['shift']());}}}(a145_0x9560,0x8af8f));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':'production','format':'compress','locale':a145_0x87d6fb(0xe1),'riskLevel':'high-risk-write','apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a145_0x87d6fb(0xe4);function a145_0x9560(){const _0x11499d=['1411397vIyxtf','438JdPuvz','13610iGyFZL','2166AOBHku','73CnGWsL','en-US','566928BOXQnk','759660camxbn','compress','9151219kaVzVo','7jCAQpf','272yjtHig','16116zEWauw','12MszQmD','126YSMVIJ'];a145_0x9560=function(){return _0x11499d;};return a145_0x9560();}
1
+ const a146_0x193d5a=a146_0x5bc8;(function(_0x15e673,_0x15ab02){const _0x590282=a146_0x5bc8,_0x3065fe=_0x15e673();while(!![]){try{const _0x25be08=-parseInt(_0x590282(0x194))/0x1*(-parseInt(_0x590282(0x19d))/0x2)+-parseInt(_0x590282(0x19a))/0x3+parseInt(_0x590282(0x199))/0x4+parseInt(_0x590282(0x19c))/0x5*(parseInt(_0x590282(0x198))/0x6)+parseInt(_0x590282(0x19e))/0x7*(parseInt(_0x590282(0x197))/0x8)+-parseInt(_0x590282(0x196))/0x9*(-parseInt(_0x590282(0x19f))/0xa)+-parseInt(_0x590282(0x191))/0xb;if(_0x25be08===_0x15ab02)break;else _0x3065fe['push'](_0x3065fe['shift']());}catch(_0x500d7c){_0x3065fe['push'](_0x3065fe['shift']());}}}(a146_0x3519,0x5cfd3));import{DEFAULT_API_DIR}from'../constant/paths.js';function a146_0x5bc8(_0x105814,_0x48bb87){_0x105814=_0x105814-0x191;const _0x35197a=a146_0x3519();let _0x5bc8aa=_0x35197a[_0x105814];return _0x5bc8aa;}export const DEFAULT_CONFIG_VALUES={'env':a146_0x193d5a(0x193),'format':'compress','locale':a146_0x193d5a(0x195),'riskLevel':a146_0x193d5a(0x192),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a146_0x193d5a(0x19b);function a146_0x3519(){const _0x425d32=['production','441ZPvINS','en-US','4878ShOhBK','344FZrVJk','162NXelwA','1636884owtXNT','1095729PaZYOu','compress','30265xcMocu','2966QCHQXU','119469HHuiBd','2230ytMwyf','14688036XZKeZJ','high-risk-write'];a146_0x3519=function(){return _0x425d32;};return a146_0x3519();}
@@ -1 +1 @@
1
- const a146_0x26313a=a146_0x30cb;(function(_0x3a209a,_0x3dab44){const _0x189132=a146_0x30cb,_0x139745=_0x3a209a();while(!![]){try{const _0x2205d5=-parseInt(_0x189132(0xf3))/0x1+-parseInt(_0x189132(0xea))/0x2*(-parseInt(_0x189132(0xf1))/0x3)+-parseInt(_0x189132(0xeb))/0x4+parseInt(_0x189132(0xe8))/0x5*(-parseInt(_0x189132(0xf0))/0x6)+-parseInt(_0x189132(0xe6))/0x7*(-parseInt(_0x189132(0xf7))/0x8)+-parseInt(_0x189132(0xe4))/0x9+parseInt(_0x189132(0xe7))/0xa;if(_0x2205d5===_0x3dab44)break;else _0x139745['push'](_0x139745['shift']());}catch(_0x597e41){_0x139745['push'](_0x139745['shift']());}}}(a146_0x57d6,0x81d6b));function a146_0x57d6(){const _0x3c6edc=['https://app.lovrabet.com','2XVJNhr','3153444krBpzI','https://user-daily.lovrabet.com','https://daily-api.lovrabet.com','https://daily.lovrabet.com','https://runtime.lovrabet.com','6CJlBPF','426003KlNyKa','https://user.lovrabet.com','674208AXAtaq','runtimeDomain','userDomain','https://daily-runtime.lovrabet.com','23272XliUQc','6302502nYTHzl','https://api.lovrabet.com','1351OyRpnp','27085360cYaBJV','3586540PyrASO'];a146_0x57d6=function(){return _0x3c6edc;};return a146_0x57d6();}function a146_0x30cb(_0x3ee0b8,_0x406f2c){_0x3ee0b8=_0x3ee0b8-0xe4;const _0x57d69d=a146_0x57d6();let _0x30cbb4=_0x57d69d[_0x3ee0b8];return _0x30cbb4;}import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x3824e4){const _0x2d18a6=a146_0x30cb;customApiDomain=_0x3824e4?.['apiDomain'],customUserDomain=_0x3824e4?.[_0x2d18a6(0xf5)],customRuntimeDomain=_0x3824e4?.[_0x2d18a6(0xf4)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a146_0x26313a(0xf2):a146_0x26313a(0xec));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a146_0x26313a(0xe5):a146_0x26313a(0xed));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a146_0x26313a(0xef):a146_0x26313a(0xf6));export const getAppDomain=()=>isProduction(getEnv())?a146_0x26313a(0xe9):a146_0x26313a(0xee);export const getAppBaseUrl=_0x59713d=>{const _0x415f3f=encodeURIComponent(_0x59713d['trim']());return isProduction(getEnv())?getAppDomain()+'/app/'+_0x415f3f:getAppDomain()+'/web-app/app/'+_0x415f3f;};
1
+ const a147_0x591add=a147_0x5868;(function(_0x304f1a,_0x5b5a94){const _0x1e640f=a147_0x5868,_0x38b7ab=_0x304f1a();while(!![]){try{const _0x174199=parseInt(_0x1e640f(0x190))/0x1*(parseInt(_0x1e640f(0x195))/0x2)+parseInt(_0x1e640f(0x19c))/0x3*(parseInt(_0x1e640f(0x18d))/0x4)+-parseInt(_0x1e640f(0x19a))/0x5+-parseInt(_0x1e640f(0x19b))/0x6+parseInt(_0x1e640f(0x18f))/0x7+parseInt(_0x1e640f(0x18e))/0x8*(parseInt(_0x1e640f(0x1a1))/0x9)+-parseInt(_0x1e640f(0x192))/0xa*(parseInt(_0x1e640f(0x1a0))/0xb);if(_0x174199===_0x5b5a94)break;else _0x38b7ab['push'](_0x38b7ab['shift']());}catch(_0x257830){_0x38b7ab['push'](_0x38b7ab['shift']());}}}(a147_0x1cce,0x6d689));import{getEnv,isProduction}from'../constant/env.js';function a147_0x5868(_0x5076bb,_0x542750){_0x5076bb=_0x5076bb-0x18d;const _0x1ccee9=a147_0x1cce();let _0x586853=_0x1ccee9[_0x5076bb];return _0x586853;}let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x4019fc){const _0x319a67=a147_0x5868;customApiDomain=_0x4019fc?.[_0x319a67(0x199)],customUserDomain=_0x4019fc?.[_0x319a67(0x198)],customRuntimeDomain=_0x4019fc?.[_0x319a67(0x197)];}function a147_0x1cce(){const _0x1398cb=['https://daily-runtime.lovrabet.com','10vzpwuO','https://daily-api.lovrabet.com','https://user-daily.lovrabet.com','2ySlEXx','https://user.lovrabet.com','runtimeDomain','userDomain','apiDomain','900940ucQMHj','3246846NGaShA','105gENzzy','https://api.lovrabet.com','/app/','trim','5635762yoQlTS','54ciNqWr','https://daily.lovrabet.com','/web-app/app/','30296MLvQYw','83016tfHwNs','4831169YmuuIs','664289zyrthH'];a147_0x1cce=function(){return _0x1398cb;};return a147_0x1cce();}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a147_0x591add(0x196):a147_0x591add(0x194));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a147_0x591add(0x19d):a147_0x591add(0x193));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?'https://runtime.lovrabet.com':a147_0x591add(0x191));export const getAppDomain=()=>isProduction(getEnv())?'https://app.lovrabet.com':a147_0x591add(0x1a2);export const getAppBaseUrl=_0x2b70b9=>{const _0xedd0be=a147_0x591add,_0x11ed65=encodeURIComponent(_0x2b70b9[_0xedd0be(0x19f)]());return isProduction(getEnv())?getAppDomain()+_0xedd0be(0x19e)+_0x11ed65:getAppDomain()+_0xedd0be(0x1a3)+_0x11ed65;};
@@ -1 +1 @@
1
- const a147_0x553305=a147_0x9f42;(function(_0x19592c,_0x2e65d3){const _0x3ba4ea=a147_0x9f42,_0x52a938=_0x19592c();while(!![]){try{const _0x3bffe6=parseInt(_0x3ba4ea(0x161))/0x1+-parseInt(_0x3ba4ea(0x159))/0x2+parseInt(_0x3ba4ea(0x15b))/0x3*(-parseInt(_0x3ba4ea(0x15c))/0x4)+parseInt(_0x3ba4ea(0x15f))/0x5*(-parseInt(_0x3ba4ea(0x154))/0x6)+parseInt(_0x3ba4ea(0x160))/0x7+-parseInt(_0x3ba4ea(0x15d))/0x8+-parseInt(_0x3ba4ea(0x158))/0x9*(-parseInt(_0x3ba4ea(0x15a))/0xa);if(_0x3bffe6===_0x2e65d3)break;else _0x52a938['push'](_0x52a938['shift']());}catch(_0x19177e){_0x52a938['push'](_0x52a938['shift']());}}}(a147_0x11a7,0x4262c));export const RABETBASE_ENV_VALUES=[a147_0x553305(0x156),'daily'];function a147_0x11a7(){const _0x1492f6=['12lxInap','dev','production','online','393003nxlvOO','813560BkDpDN','220MRBonZ','3ZVbamo','1440012GewXaf','1338672egxBNl','development','322970zrlRkG','2306710XVSHJw','45017CsMvKG','daily'];a147_0x11a7=function(){return _0x1492f6;};return a147_0x11a7();}function a147_0x9f42(_0x57373e,_0x109772){_0x57373e=_0x57373e-0x154;const _0x11a720=a147_0x11a7();let _0x9f4201=_0x11a720[_0x57373e];return _0x9f4201;}export function normalizeEnv(_0x218f0f){const _0x284e2c=a147_0x553305;return _0x218f0f===_0x284e2c(0x157)?'production':_0x218f0f;}export function isProduction(_0x15e385){const _0x1fc45f=a147_0x553305;return normalizeEnv(_0x15e385)===_0x1fc45f(0x156);}export function isDaily(_0x40ede3){const _0x48ac35=a147_0x553305;return normalizeEnv(_0x40ede3)===_0x48ac35(0x162);}export function isDev(_0xaecfcd){const _0x465a46=a147_0x553305,_0x30f81f=normalizeEnv(_0xaecfcd);return _0x30f81f===_0x465a46(0x15e)||_0x30f81f===_0x465a46(0x155);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a147_0x553305(0x156));export function getEnv(){return env;}export function initEnv(_0x37ac07){env=normalizeEnv(_0x37ac07);}
1
+ const a148_0x1a89a6=a148_0x2c3c;(function(_0x2aa59c,_0x1e6e67){const _0x5b2cd6=a148_0x2c3c,_0x272a5d=_0x2aa59c();while(!![]){try{const _0x587e90=-parseInt(_0x5b2cd6(0x1d5))/0x1+parseInt(_0x5b2cd6(0x1dc))/0x2+-parseInt(_0x5b2cd6(0x1d3))/0x3*(parseInt(_0x5b2cd6(0x1d8))/0x4)+parseInt(_0x5b2cd6(0x1d0))/0x5+-parseInt(_0x5b2cd6(0x1d6))/0x6+parseInt(_0x5b2cd6(0x1dd))/0x7*(parseInt(_0x5b2cd6(0x1db))/0x8)+-parseInt(_0x5b2cd6(0x1d2))/0x9*(-parseInt(_0x5b2cd6(0x1da))/0xa);if(_0x587e90===_0x1e6e67)break;else _0x272a5d['push'](_0x272a5d['shift']());}catch(_0x35084a){_0x272a5d['push'](_0x272a5d['shift']());}}}(a148_0x50d4,0x5744f));export const RABETBASE_ENV_VALUES=[a148_0x1a89a6(0x1d1),a148_0x1a89a6(0x1d9)];export function normalizeEnv(_0x49984e){const _0x46d644=a148_0x1a89a6;return _0x49984e===_0x46d644(0x1d7)?_0x46d644(0x1d1):_0x49984e;}function a148_0x50d4(){const _0x33001d=['dev','1580100okjunV','production','7320465KEiLsu','1531335tAnzjj','development','218758NPLFuJ','4149990Kjnqda','online','4NLmBRf','daily','10OjZIsi','784arlSME','643784sUldCf','23359bSZXcp'];a148_0x50d4=function(){return _0x33001d;};return a148_0x50d4();}export function isProduction(_0x32bbd1){const _0x115ad9=a148_0x1a89a6;return normalizeEnv(_0x32bbd1)===_0x115ad9(0x1d1);}export function isDaily(_0x4e7972){const _0x51e750=a148_0x1a89a6;return normalizeEnv(_0x4e7972)===_0x51e750(0x1d9);}export function isDev(_0x290323){const _0x304f92=a148_0x1a89a6,_0x13ce88=normalizeEnv(_0x290323);return _0x13ce88===_0x304f92(0x1d4)||_0x13ce88===_0x304f92(0x1cf);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||'production');function a148_0x2c3c(_0x4ddcb9,_0x5cc294){_0x4ddcb9=_0x4ddcb9-0x1cf;const _0x50d420=a148_0x50d4();let _0x2c3c67=_0x50d420[_0x4ddcb9];return _0x2c3c67;}export function getEnv(){return env;}export function initEnv(_0x50051e){env=normalizeEnv(_0x50051e);}
@@ -1 +1 @@
1
- function a148_0x1e7e(_0x4f2fde,_0x1abad9){_0x4f2fde=_0x4f2fde-0x100;const _0x364759=a148_0x3647();let _0x1e7ec9=_0x364759[_0x4f2fde];return _0x1e7ec9;}const a148_0x3213f7=a148_0x1e7e;function a148_0x3647(){const _0x63f859=['735180BiUcdr','compress','json','5445KOcZeO','3655494UUQXyL','30755230GyAxIF','590617vdzSUh','20EHCYtO','150776sfiCKq','pretty','14650TkQDnS','1671933ZrWGan','49nwcEHw','2Qgvatg'];a148_0x3647=function(){return _0x63f859;};return a148_0x3647();}(function(_0x4196b7,_0x37a528){const _0x2ac031=a148_0x1e7e,_0x36f37a=_0x4196b7();while(!![]){try{const _0x1e351b=parseInt(_0x2ac031(0x106))/0x1+-parseInt(_0x2ac031(0x10d))/0x2*(-parseInt(_0x2ac031(0x10b))/0x3)+parseInt(_0x2ac031(0x107))/0x4*(parseInt(_0x2ac031(0x100))/0x5)+parseInt(_0x2ac031(0x104))/0x6+parseInt(_0x2ac031(0x10c))/0x7*(-parseInt(_0x2ac031(0x108))/0x8)+parseInt(_0x2ac031(0x103))/0x9*(parseInt(_0x2ac031(0x10a))/0xa)+-parseInt(_0x2ac031(0x105))/0xb;if(_0x1e351b===_0x37a528)break;else _0x36f37a['push'](_0x36f37a['shift']());}catch(_0x1bb579){_0x36f37a['push'](_0x36f37a['shift']());}}}(a148_0x3647,0x6e107));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a148_0x3213f7(0x102),a148_0x3213f7(0x109),a148_0x3213f7(0x101)];
1
+ function a149_0x5641(_0x2cf60f,_0x258564){_0x2cf60f=_0x2cf60f-0x168;const _0x8f9f47=a149_0x8f9f();let _0x56413d=_0x8f9f47[_0x2cf60f];return _0x56413d;}const a149_0x104ba4=a149_0x5641;function a149_0x8f9f(){const _0x1bf42f=['1389966srzCtr','8aEhRBV','pretty','compress','1215cAJima','671949skJpUs','6044KVIwoC','3vhHeaJ','1976835HEMvxV','573771LcACko','3362970jxIHsx','33312vWuxuA'];a149_0x8f9f=function(){return _0x1bf42f;};return a149_0x8f9f();}(function(_0x408711,_0x34f4b8){const _0x5a75e0=a149_0x5641,_0x4ac5d3=_0x408711();while(!![]){try{const _0x714bda=-parseInt(_0x5a75e0(0x16e))/0x1*(-parseInt(_0x5a75e0(0x172))/0x2)+parseInt(_0x5a75e0(0x170))/0x3+-parseInt(_0x5a75e0(0x16d))/0x4*(parseInt(_0x5a75e0(0x16b))/0x5)+-parseInt(_0x5a75e0(0x173))/0x6+parseInt(_0x5a75e0(0x16f))/0x7+-parseInt(_0x5a75e0(0x168))/0x8*(parseInt(_0x5a75e0(0x16c))/0x9)+parseInt(_0x5a75e0(0x171))/0xa;if(_0x714bda===_0x34f4b8)break;else _0x4ac5d3['push'](_0x4ac5d3['shift']());}catch(_0x5ddc1b){_0x4ac5d3['push'](_0x4ac5d3['shift']());}}}(a149_0x8f9f,0x2d840));export const RABETBASE_OUTPUT_FORMAT_VALUES=['json',a149_0x104ba4(0x169),a149_0x104ba4(0x16a)];
@@ -1 +1 @@
1
- const a149_0x41c00e=a149_0x3bea;(function(_0x174b70,_0x2c85bc){const _0x2e9b46=a149_0x3bea,_0xd21f6a=_0x174b70();while(!![]){try{const _0x28b6a0=parseInt(_0x2e9b46(0xa8))/0x1*(parseInt(_0x2e9b46(0xad))/0x2)+-parseInt(_0x2e9b46(0xae))/0x3*(-parseInt(_0x2e9b46(0xac))/0x4)+parseInt(_0x2e9b46(0xb0))/0x5*(-parseInt(_0x2e9b46(0xa9))/0x6)+-parseInt(_0x2e9b46(0xa5))/0x7*(-parseInt(_0x2e9b46(0xaf))/0x8)+-parseInt(_0x2e9b46(0xa6))/0x9+parseInt(_0x2e9b46(0xab))/0xa*(-parseInt(_0x2e9b46(0xaa))/0xb)+parseInt(_0x2e9b46(0xa7))/0xc*(parseInt(_0x2e9b46(0xa4))/0xd);if(_0x28b6a0===_0x2c85bc)break;else _0xd21f6a['push'](_0xd21f6a['shift']());}catch(_0x49b4c3){_0xd21f6a['push'](_0xd21f6a['shift']());}}}(a149_0x89bb,0x872f0));function a149_0x3bea(_0x1cfe21,_0x213bf4){_0x1cfe21=_0x1cfe21-0xa3;const _0x89bbe1=a149_0x89bb();let _0x3beac2=_0x89bbe1[_0x1cfe21];return _0x3beac2;}function a149_0x89bb(){const _0x36d798=['5494044CdbFDs','64339JUJtHk','440NKVVFW','14444rcOlmY','3638EKFkUJ','534FHaaSo','2529608JEaacB','5bSKnAT','./src/api','13HHcKOo','14fLrvKm','2971125jIDyyR','2330040NYbZqw','323rVbRuL'];a149_0x89bb=function(){return _0x36d798;};return a149_0x89bb();}export const DEFAULT_API_DIR=a149_0x41c00e(0xa3);
1
+ (function(_0x30e950,_0x49817d){const _0x3d4f40=a150_0xa4d1,_0x173ab4=_0x30e950();while(!![]){try{const _0x235201=parseInt(_0x3d4f40(0x9e))/0x1*(parseInt(_0x3d4f40(0x9a))/0x2)+parseInt(_0x3d4f40(0xa0))/0x3*(-parseInt(_0x3d4f40(0x99))/0x4)+parseInt(_0x3d4f40(0xa2))/0x5+parseInt(_0x3d4f40(0x9b))/0x6+-parseInt(_0x3d4f40(0x9f))/0x7*(parseInt(_0x3d4f40(0x9d))/0x8)+parseInt(_0x3d4f40(0x9c))/0x9+-parseInt(_0x3d4f40(0xa1))/0xa;if(_0x235201===_0x49817d)break;else _0x173ab4['push'](_0x173ab4['shift']());}catch(_0x2270ea){_0x173ab4['push'](_0x173ab4['shift']());}}}(a150_0x2182,0x73b08));function a150_0xa4d1(_0x45f80d,_0x2060b0){_0x45f80d=_0x45f80d-0x99;const _0x21826d=a150_0x2182();let _0xa4d185=_0x21826d[_0x45f80d];return _0xa4d185;}export const DEFAULT_API_DIR='./src/api';function a150_0x2182(){const _0x477b59=['115018sfOwLF','2331792FaseNt','4223718CsVJJQ','584YQjRcU','7IdgLna','47992QJooZO','872607BwAAgP','1634890TqfSKF','841065WkfKIz','4KyMgCH'];a150_0x2182=function(){return _0x477b59;};return a150_0x2182();}
@@ -1 +1 @@
1
- function a150_0x5920(_0x117bf9,_0x70472b){_0x117bf9=_0x117bf9-0x181;const _0x4425d4=a150_0x4425();let _0x592043=_0x4425d4[_0x117bf9];return _0x592043;}const a150_0x477157=a150_0x5920;function a150_0x4425(){const _0x938548=['3OAxzgz','2224240TvesLn','high-risk-write','1wFRZTf','3486195OBwhuJ','2343635usHczz','351780jgwJKI','318868dGoUhZ','16xFtErl','273475dNVXDr','write','3207868bueDol'];a150_0x4425=function(){return _0x938548;};return a150_0x4425();}(function(_0x3ac3d3,_0x2575e9){const _0x25a12d=a150_0x5920,_0x2f622b=_0x3ac3d3();while(!![]){try{const _0x1c8cd1=parseInt(_0x25a12d(0x183))/0x1*(-parseInt(_0x25a12d(0x187))/0x2)+-parseInt(_0x25a12d(0x18c))/0x3*(parseInt(_0x25a12d(0x18b))/0x4)+parseInt(_0x25a12d(0x189))/0x5+parseInt(_0x25a12d(0x186))/0x6+-parseInt(_0x25a12d(0x185))/0x7*(-parseInt(_0x25a12d(0x188))/0x8)+parseInt(_0x25a12d(0x184))/0x9+parseInt(_0x25a12d(0x181))/0xa;if(_0x1c8cd1===_0x2575e9)break;else _0x2f622b['push'](_0x2f622b['shift']());}catch(_0x3c9781){_0x2f622b['push'](_0x2f622b['shift']());}}}(a150_0x4425,0x694d1));export const RISK_LEVEL_VALUES=['read',a150_0x477157(0x18a),a150_0x477157(0x182)];
1
+ (function(_0x3c0e9c,_0x376353){const _0x42f6b4=a151_0x31e4,_0x51ed93=_0x3c0e9c();while(!![]){try{const _0x5c84ff=parseInt(_0x42f6b4(0xab))/0x1+-parseInt(_0x42f6b4(0xa1))/0x2*(parseInt(_0x42f6b4(0xa0))/0x3)+-parseInt(_0x42f6b4(0xa6))/0x4*(-parseInt(_0x42f6b4(0xa9))/0x5)+-parseInt(_0x42f6b4(0xaa))/0x6+parseInt(_0x42f6b4(0xa8))/0x7*(-parseInt(_0x42f6b4(0xa7))/0x8)+parseInt(_0x42f6b4(0xa2))/0x9*(-parseInt(_0x42f6b4(0xa5))/0xa)+parseInt(_0x42f6b4(0xa4))/0xb*(parseInt(_0x42f6b4(0xa3))/0xc);if(_0x5c84ff===_0x376353)break;else _0x51ed93['push'](_0x51ed93['shift']());}catch(_0x4e4fd6){_0x51ed93['push'](_0x51ed93['shift']());}}}(a151_0x102e,0x7e605));function a151_0x31e4(_0x4b6b9b,_0x4492c8){_0x4b6b9b=_0x4b6b9b-0xa0;const _0x102e48=a151_0x102e();let _0x31e418=_0x102e48[_0x4b6b9b];return _0x31e418;}function a151_0x102e(){const _0x378ef9=['59984wqYPoC','511TbxeQg','5TRGdEE','3650226yEAmwZ','453025LhybIN','27Jvquvj','159508erhajC','2010285RjFAHk','5821464MkPipE','44zHndmy','20ZcuyJn','1777460dYCSmB'];a151_0x102e=function(){return _0x378ef9;};return a151_0x102e();}export const RISK_LEVEL_VALUES=['read','write','high-risk-write'];
@@ -1 +1 @@
1
- (function(_0x53faab,_0x32cbfc){const _0xf69972=a151_0x1400,_0x449683=_0x53faab();while(!![]){try{const _0x1beb59=-parseInt(_0xf69972(0x1d1))/0x1+parseInt(_0xf69972(0x1e4))/0x2*(parseInt(_0xf69972(0x1d2))/0x3)+parseInt(_0xf69972(0x1fa))/0x4+-parseInt(_0xf69972(0x1e6))/0x5*(-parseInt(_0xf69972(0x1d5))/0x6)+-parseInt(_0xf69972(0x1e7))/0x7*(-parseInt(_0xf69972(0x1e5))/0x8)+parseInt(_0xf69972(0x1e9))/0x9+parseInt(_0xf69972(0x1f9))/0xa*(-parseInt(_0xf69972(0x1e0))/0xb);if(_0x1beb59===_0x32cbfc)break;else _0x449683['push'](_0x449683['shift']());}catch(_0x33ab7f){_0x449683['push'](_0x449683['shift']());}}}(a151_0x428f,0x8dd54));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a151_0x1400(_0xe057ab,_0x3cb05f){_0xe057ab=_0xe057ab-0x1d0;const _0x428f28=a151_0x428f();let _0x140080=_0x428f28[_0xe057ab];return _0x140080;}import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x18f1ad){const _0x2765e5=a151_0x1400;return typeof _0x18f1ad==='string'&&_0x18f1ad['trim']()?_0x18f1ad[_0x2765e5(0x1d0)]():undefined;}function appProfiles(_0x1918ca){const _0x33c90f=a151_0x1400;return _0x1918ca[_0x33c90f(0x1e3)]&&typeof _0x1918ca[_0x33c90f(0x1e3)]===_0x33c90f(0x1f7)?_0x1918ca[_0x33c90f(0x1e3)]:{};}function resolveDefaultAppName(_0xf2c380){const _0x1bec57=a151_0x1400,_0x3a7c3a=stringConfigValue(_0xf2c380[_0x1bec57(0x1ed)]);if(_0x3a7c3a)return _0x3a7c3a;return Object['keys'](appProfiles(_0xf2c380))[0x0];}function resolveTopLevelAppCode(_0x3648ea){const _0x1b9268=a151_0x1400;return stringConfigValue(_0x3648ea[_0x1b9268(0x1d9)])||stringConfigValue(_0x3648ea[_0x1b9268(0x1d3)]);}export function resolveAppConfig({raw:_0x3e3eee,flags:_0x45d8c3,layers:_0x241bd4,readEnv:_0x551dd6}){const _0x221efc=a151_0x1400,_0x2456f1=_0x241bd4?.[_0x221efc(0x1e8)]??{},_0x2d8786=_0x241bd4?.[_0x221efc(0x1f8)]??{},_0x16e557=Object['keys'](_0x2456f1)[_0x221efc(0x1dd)]>0x0,_0x3e0494=!_0x16e557||_0x2456f1[_0x221efc(0x1ee)]===!![],_0x5dedc4=_0x16e557?resolveDefaultAppName(_0x2456f1):undefined,_0x4b9eef=_0x3e0494?resolveDefaultAppName(_0x2d8786):undefined,_0x418f3c=stringConfigValue(_0x45d8c3[_0x221efc(0x1d3)]),_0x219341=_0x551dd6(_0x221efc(0x1de)),_0x1cf584={};if(_0x3e3eee['apps']&&typeof _0x3e3eee[_0x221efc(0x1e3)]==='object')for(const [_0x2558c2,_0x3ae5fd]of Object['entries'](_0x3e3eee[_0x221efc(0x1e3)])){_0x3ae5fd&&typeof _0x3ae5fd===_0x221efc(0x1f7)&&_0x3ae5fd[_0x221efc(0x1d9)]&&(_0x1cf584[_0x2558c2]=_0x3ae5fd);}const _0x313cbf=_0x3e3eee['defaultApp']||undefined,_0x338216=Object[_0x221efc(0x1f6)](_0x1cf584)[_0x221efc(0x1dd)]>0x0,_0x11d46f=_0x418f3c||_0x5dedc4||_0x219341||_0x4b9eef||_0x313cbf||undefined,_0x160eee=stringConfigValue(_0x45d8c3[_0x221efc(0x1d9)]),_0x4f9548=_0x160eee?Object[_0x221efc(0x1ec)](_0x1cf584)[_0x221efc(0x1f3)](([,_0x27f468])=>_0x27f468?.['appcode']===_0x160eee):undefined,_0x409613=_0x4f9548?.[0x0],_0x4034fc=_0x4f9548?.[0x1],_0x934c9d=_0x160eee?_0x409613:_0x11d46f;let _0x1dde3b=_0x934c9d&&_0x1cf584[_0x934c9d]?_0x1cf584[_0x934c9d]:undefined;_0x160eee&&_0x4034fc&&(_0x1dde3b=_0x4034fc);const _0x193cc0=_0x160eee?_0x4034fc??_0x1dde3b:_0x1dde3b,_0x505c69=!_0x418f3c&&!_0x5dedc4&&_0x219341&&_0x934c9d===_0x219341,_0x1e230b=_0x418f3c||(_0x505c69?_0x219341:undefined)||(_0x160eee?_0x409613:undefined),_0x5774b8=_0x193cc0?.[_0x221efc(0x1d9)],_0x285d00=_0x16e557?resolveTopLevelAppCode(_0x2456f1):undefined,_0x3c85d9=_0x3e0494?resolveTopLevelAppCode(_0x2d8786):undefined,_0x5925d1=_0x418f3c||_0x5dedc4?_0x5774b8:undefined,_0x9260f1=!_0x418f3c&&!_0x5dedc4?_0x5774b8:undefined,_0x1900f1=_0x160eee||_0x5925d1||_0x285d00||_0x9260f1||_0x3c85d9||undefined,_0x2d85cf=_0x16e557?stringConfigValue(_0x2456f1[_0x221efc(0x1f5)]):undefined,_0x57d060=_0x3e0494?stringConfigValue(_0x2d8786[_0x221efc(0x1f5)]):undefined,_0x20017d=_0x45d8c3[_0x221efc(0x1f5)]||_0x193cc0?.[_0x221efc(0x1f5)]||_0x2d85cf||_0x551dd6(_0x221efc(0x1ea))||_0x57d060||_0x3e3eee['env']||DEFAULT_CONFIG_VALUES[_0x221efc(0x1f5)],_0x5a5fbc=_0x193cc0?.[_0x221efc(0x1ef)]||_0x3e3eee[_0x221efc(0x1ef)]||DEFAULT_CONFIG_VALUES['locale'],_0x102c00=_0x551dd6(_0x221efc(0x1e1))||_0x193cc0?.['cookie']||_0x3e3eee['cookie']||undefined,_0x2d2ee1=_0x551dd6(_0x221efc(0x1d8))||_0x193cc0?.[_0x221efc(0x1d7)]||_0x3e3eee[_0x221efc(0x1d7)]||undefined,_0x449221=_0x45d8c3[_0x221efc(0x1da)]||_0x551dd6('FORMAT')||_0x193cc0?.[_0x221efc(0x1da)]||_0x3e3eee[_0x221efc(0x1da)],_0x5ee8ed=normalizeLegacyOutputFormat(_0x449221),_0x5eb643=_0x551dd6('PAGE_SIZE')||_0x193cc0?.[_0x221efc(0x1d4)]||_0x3e3eee[_0x221efc(0x1d4)],_0x5e31af=_0x5eb643?Number(_0x5eb643)||undefined:undefined,_0x5c21cc=_0x551dd6(_0x221efc(0x1f1))||_0x551dd6(_0x221efc(0x1dc))||_0x193cc0?.['riskLevel']||_0x3e3eee[_0x221efc(0x1e2)]||_0x3e3eee[_0x221efc(0x1d6)],_0x38c19d=_0x5c21cc===_0x221efc(0x1db)||_0x5c21cc==='write'?_0x5c21cc:DEFAULT_CONFIG_VALUES[_0x221efc(0x1e2)],_0x1d5f63=_0x551dd6(_0x221efc(0x1f4)),_0x2f90fc=_0x1d5f63==='1'||_0x1d5f63===_0x221efc(0x1df),_0x4ee041=_0x193cc0?.[_0x221efc(0x1eb)]||_0x3e3eee['apiDir']||DEFAULT_CONFIG_VALUES[_0x221efc(0x1eb)],_0x5294d9=isDaily(normalizeEnv(String(_0x20017d)))?_0x221efc(0x1f0):'production';return{'appCode':typeof _0x1900f1===_0x221efc(0x1f2)&&_0x1900f1[_0x221efc(0x1d0)]()?_0x1900f1[_0x221efc(0x1d0)]():undefined,'env':_0x5294d9,'locale':_0x5a5fbc,'cookie':_0x102c00,'accessKey':_0x2d2ee1,'format':_0x5ee8ed,'pageSize':_0x5e31af,'riskLevel':_0x38c19d,'verbose':_0x2f90fc,'apiDir':_0x4ee041,'apps':_0x1cf584,'defaultApp':_0x313cbf,'currentApp':_0x338216?_0x934c9d:undefined,'explicitAppName':_0x1e230b};}function a151_0x428f(){const _0x57a979=['read','MAX_RISK','length','APP','true','331771uFcpaX','COOKIE','riskLevel','apps','82226qmaEWP','16bKgJmG','105IiOspe','1089599ZNLTod','projectConfig','8259426Ucrppf','ENV','apiDir','entries','defaultApp','inherit','locale','daily','RISK_LEVEL','string','find','VERBOSE','env','keys','object','globalConfig','730EIbmje','346920NEEzVb','trim','58786TtVOcS','66iQijrX','app','pageSize','177498RqAbzL','maxRisk','accessKey','ACCESS_KEY','appcode','format'];a151_0x428f=function(){return _0x57a979;};return a151_0x428f();}
1
+ function a152_0x246b(_0x34ff70,_0x1915b7){_0x34ff70=_0x34ff70-0x12a;const _0x95ad5f=a152_0x95ad();let _0x246b1a=_0x95ad5f[_0x34ff70];return _0x246b1a;}(function(_0x1d46a7,_0xdb5128){const _0x292b6c=a152_0x246b,_0x25c61f=_0x1d46a7();while(!![]){try{const _0x4b9660=-parseInt(_0x292b6c(0x12c))/0x1+parseInt(_0x292b6c(0x14f))/0x2*(parseInt(_0x292b6c(0x14b))/0x3)+-parseInt(_0x292b6c(0x14d))/0x4+parseInt(_0x292b6c(0x148))/0x5+parseInt(_0x292b6c(0x142))/0x6*(-parseInt(_0x292b6c(0x151))/0x7)+-parseInt(_0x292b6c(0x141))/0x8+parseInt(_0x292b6c(0x130))/0x9*(parseInt(_0x292b6c(0x13e))/0xa);if(_0x4b9660===_0xdb5128)break;else _0x25c61f['push'](_0x25c61f['shift']());}catch(_0x1c3ffd){_0x25c61f['push'](_0x25c61f['shift']());}}}(a152_0x95ad,0x3bcde));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';function a152_0x95ad(){const _0x134c9a=['pageSize','appcode','COOKIE','accessKey','apps','read','apiDir','RISK_LEVEL','true','projectConfig','locale','30atWDCQ','MAX_RISK','ACCESS_KEY','360688nuETfx','18RvjAmV','defaultApp','entries','riskLevel','object','daily','1266935FtTbwh','find','string','506334YKhhwK','ENV','450796hcIjtU','globalConfig','4MNoqBJ','VERBOSE','273721RNYUsG','format','trim','inherit','production','416968hVtjiU','FORMAT','cookie','write','1038231xnKbsN','keys','env'];a152_0x95ad=function(){return _0x134c9a;};return a152_0x95ad();}import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x5dc387){const _0x4ed2b2=a152_0x246b;return typeof _0x5dc387===_0x4ed2b2(0x14a)&&_0x5dc387[_0x4ed2b2(0x153)]()?_0x5dc387[_0x4ed2b2(0x153)]():undefined;}function appProfiles(_0x238208){const _0x3a71df=a152_0x246b;return _0x238208[_0x3a71df(0x137)]&&typeof _0x238208[_0x3a71df(0x137)]===_0x3a71df(0x146)?_0x238208[_0x3a71df(0x137)]:{};}function resolveDefaultAppName(_0x1d7401){const _0x38269b=a152_0x246b,_0x4da8d1=stringConfigValue(_0x1d7401[_0x38269b(0x143)]);if(_0x4da8d1)return _0x4da8d1;return Object[_0x38269b(0x131)](appProfiles(_0x1d7401))[0x0];}function resolveTopLevelAppCode(_0x59a72e){const _0x4bdece=a152_0x246b;return stringConfigValue(_0x59a72e[_0x4bdece(0x134)])||stringConfigValue(_0x59a72e['app']);}export function resolveAppConfig({raw:_0x595d3c,flags:_0x5635a6,layers:_0x4f95a0,readEnv:_0x458749}){const _0x459adc=a152_0x246b,_0x50fd9d=_0x4f95a0?.[_0x459adc(0x13c)]??{},_0xff7ac7=_0x4f95a0?.[_0x459adc(0x14e)]??{},_0x5a8f91=Object[_0x459adc(0x131)](_0x50fd9d)['length']>0x0,_0x2e65f5=!_0x5a8f91||_0x50fd9d[_0x459adc(0x12a)]===!![],_0x532f12=_0x5a8f91?resolveDefaultAppName(_0x50fd9d):undefined,_0x226558=_0x2e65f5?resolveDefaultAppName(_0xff7ac7):undefined,_0x6d8656=stringConfigValue(_0x5635a6['app']),_0x3d6785=_0x458749('APP'),_0x52481c={};if(_0x595d3c[_0x459adc(0x137)]&&typeof _0x595d3c['apps']===_0x459adc(0x146))for(const [_0x35b951,_0x13a90d]of Object[_0x459adc(0x144)](_0x595d3c['apps'])){_0x13a90d&&typeof _0x13a90d===_0x459adc(0x146)&&_0x13a90d[_0x459adc(0x134)]&&(_0x52481c[_0x35b951]=_0x13a90d);}const _0x2acf11=_0x595d3c[_0x459adc(0x143)]||undefined,_0x419e58=Object[_0x459adc(0x131)](_0x52481c)['length']>0x0,_0x488af9=_0x6d8656||_0x532f12||_0x3d6785||_0x226558||_0x2acf11||undefined,_0x4674c2=stringConfigValue(_0x5635a6[_0x459adc(0x134)]),_0x4bd7bc=_0x4674c2?Object['entries'](_0x52481c)[_0x459adc(0x149)](([,_0x10d2ba])=>_0x10d2ba?.[_0x459adc(0x134)]===_0x4674c2):undefined,_0x54f593=_0x4bd7bc?.[0x0],_0x1f1354=_0x4bd7bc?.[0x1],_0x57282c=_0x4674c2?_0x54f593:_0x488af9;let _0x1ad8c9=_0x57282c&&_0x52481c[_0x57282c]?_0x52481c[_0x57282c]:undefined;_0x4674c2&&_0x1f1354&&(_0x1ad8c9=_0x1f1354);const _0x599e4f=_0x4674c2?_0x1f1354??_0x1ad8c9:_0x1ad8c9,_0x22d430=!_0x6d8656&&!_0x532f12&&_0x3d6785&&_0x57282c===_0x3d6785,_0x1995b7=_0x6d8656||(_0x22d430?_0x3d6785:undefined)||(_0x4674c2?_0x54f593:undefined),_0x24cdbd=_0x599e4f?.[_0x459adc(0x134)],_0x41bda9=_0x5a8f91?resolveTopLevelAppCode(_0x50fd9d):undefined,_0x5c5f40=_0x2e65f5?resolveTopLevelAppCode(_0xff7ac7):undefined,_0x52bb14=_0x6d8656||_0x532f12?_0x24cdbd:undefined,_0x10edc8=!_0x6d8656&&!_0x532f12?_0x24cdbd:undefined,_0x58f634=_0x4674c2||_0x52bb14||_0x41bda9||_0x10edc8||_0x5c5f40||undefined,_0x5dfd1b=_0x5a8f91?stringConfigValue(_0x50fd9d[_0x459adc(0x132)]):undefined,_0x172cdc=_0x2e65f5?stringConfigValue(_0xff7ac7['env']):undefined,_0x37eb6e=_0x5635a6[_0x459adc(0x132)]||_0x599e4f?.[_0x459adc(0x132)]||_0x5dfd1b||_0x458749(_0x459adc(0x14c))||_0x172cdc||_0x595d3c['env']||DEFAULT_CONFIG_VALUES[_0x459adc(0x132)],_0x42cec0=_0x599e4f?.['locale']||_0x595d3c['locale']||DEFAULT_CONFIG_VALUES[_0x459adc(0x13d)],_0x289917=_0x458749(_0x459adc(0x135))||_0x599e4f?.[_0x459adc(0x12e)]||_0x595d3c['cookie']||undefined,_0x1e554b=_0x458749(_0x459adc(0x140))||_0x599e4f?.[_0x459adc(0x136)]||_0x595d3c[_0x459adc(0x136)]||undefined,_0x2f6ca8=_0x5635a6['format']||_0x458749(_0x459adc(0x12d))||_0x599e4f?.['format']||_0x595d3c[_0x459adc(0x152)],_0x519671=normalizeLegacyOutputFormat(_0x2f6ca8),_0x29d7ab=_0x458749('PAGE_SIZE')||_0x599e4f?.['pageSize']||_0x595d3c[_0x459adc(0x133)],_0x182fdb=_0x29d7ab?Number(_0x29d7ab)||undefined:undefined,_0x1a6b23=_0x458749(_0x459adc(0x13a))||_0x458749(_0x459adc(0x13f))||_0x599e4f?.['riskLevel']||_0x595d3c['riskLevel']||_0x595d3c['maxRisk'],_0x1c443f=_0x1a6b23===_0x459adc(0x138)||_0x1a6b23===_0x459adc(0x12f)?_0x1a6b23:DEFAULT_CONFIG_VALUES[_0x459adc(0x145)],_0x237b16=_0x458749(_0x459adc(0x150)),_0x341a9c=_0x237b16==='1'||_0x237b16===_0x459adc(0x13b),_0x20631c=_0x599e4f?.[_0x459adc(0x139)]||_0x595d3c[_0x459adc(0x139)]||DEFAULT_CONFIG_VALUES['apiDir'],_0xdd6712=isDaily(normalizeEnv(String(_0x37eb6e)))?_0x459adc(0x147):_0x459adc(0x12b);return{'appCode':typeof _0x58f634===_0x459adc(0x14a)&&_0x58f634['trim']()?_0x58f634['trim']():undefined,'env':_0xdd6712,'locale':_0x42cec0,'cookie':_0x289917,'accessKey':_0x1e554b,'format':_0x519671,'pageSize':_0x182fdb,'riskLevel':_0x1c443f,'verbose':_0x341a9c,'apiDir':_0x20631c,'apps':_0x52481c,'defaultApp':_0x2acf11,'currentApp':_0x419e58?_0x57282c:undefined,'explicitAppName':_0x1995b7};}
@@ -1 +1 @@
1
- (function(_0x27a2c5,_0x5bdc11){const _0x213ece=a152_0x4bb9,_0x4226e2=_0x27a2c5();while(!![]){try{const _0x3c9791=-parseInt(_0x213ece(0x131))/0x1+-parseInt(_0x213ece(0x12d))/0x2+parseInt(_0x213ece(0x12b))/0x3*(parseInt(_0x213ece(0x132))/0x4)+-parseInt(_0x213ece(0x12e))/0x5+parseInt(_0x213ece(0x130))/0x6+parseInt(_0x213ece(0x12f))/0x7*(-parseInt(_0x213ece(0x12c))/0x8)+parseInt(_0x213ece(0x133))/0x9;if(_0x3c9791===_0x5bdc11)break;else _0x4226e2['push'](_0x4226e2['shift']());}catch(_0xca296e){_0x4226e2['push'](_0x4226e2['shift']());}}}(a152_0x4180,0xe7774));function a152_0x4bb9(_0x397432,_0x7608ff){_0x397432=_0x397432-0x12b;const _0x41802f=a152_0x4180();let _0x4bb91c=_0x41802f[_0x397432];return _0x4bb91c;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x250e86){const {getCookie:_0x3c1b70}=await import('../auth/get-cookie.js'),_0xbbcdf2=_0x250e86['cookie']||_0x3c1b70(),_0x17651d=_0xbbcdf2?await getIsSessionValid():![];return{'cookie':_0xbbcdf2,'isLoggedIn':_0x17651d,async 'getOrLogin'(){if(_0xbbcdf2&&_0x17651d)return _0xbbcdf2;throw CliErrors['authRequired']();}};}function a152_0x4180(){const _0x38e220=['1817992wDbpkq','7317940qBFPrg','28zfNDgu','2858532UFmKpA','1828917ozCOAr','4zJgOzf','37949814nhsFvd','5421363QqNmam','2701208SbMLmU'];a152_0x4180=function(){return _0x38e220;};return a152_0x4180();}
1
+ function a153_0x5920(){const _0x40d2e8=['../auth/get-cookie.js','5XclACo','1115988LQGFKd','10172rASTnQ','10YgdBoT','cookie','89BbQbWC','48dXDIDL','1763727EckMGR','4348791kuArrm','241752DbPVyR','15835556IRfLJG','2880186NWkUXz'];a153_0x5920=function(){return _0x40d2e8;};return a153_0x5920();}function a153_0x5922(_0x75723b,_0x27fbd9){_0x75723b=_0x75723b-0x84;const _0x5920a2=a153_0x5920();let _0x592219=_0x5920a2[_0x75723b];return _0x592219;}(function(_0x1b244c,_0x183407){const _0x53d7f5=a153_0x5922,_0x190ab9=_0x1b244c();while(!![]){try{const _0x28cc31=parseInt(_0x53d7f5(0x87))/0x1*(-parseInt(_0x53d7f5(0x84))/0x2)+-parseInt(_0x53d7f5(0x89))/0x3+parseInt(_0x53d7f5(0x90))/0x4+parseInt(_0x53d7f5(0x8f))/0x5*(parseInt(_0x53d7f5(0x8d))/0x6)+parseInt(_0x53d7f5(0x8b))/0x7*(-parseInt(_0x53d7f5(0x88))/0x8)+parseInt(_0x53d7f5(0x8a))/0x9*(-parseInt(_0x53d7f5(0x85))/0xa)+parseInt(_0x53d7f5(0x8c))/0xb;if(_0x28cc31===_0x183407)break;else _0x190ab9['push'](_0x190ab9['shift']());}catch(_0x5e18bf){_0x190ab9['push'](_0x190ab9['shift']());}}}(a153_0x5920,0x722be));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x3fbcfe){const _0x540fe6=a153_0x5922,{getCookie:_0xa12940}=await import(_0x540fe6(0x8e)),_0xebd218=_0x3fbcfe[_0x540fe6(0x86)]||_0xa12940(),_0x958c1b=_0xebd218?await getIsSessionValid():![];return{'cookie':_0xebd218,'isLoggedIn':_0x958c1b,async 'getOrLogin'(){if(_0xebd218&&_0x958c1b)return _0xebd218;throw CliErrors['authRequired']();}};}
@@ -1 +1 @@
1
- const a153_0x6e8751=a153_0x25fe;(function(_0xc1865f,_0x5dcfe8){const _0x2d548a=a153_0x25fe,_0x503359=_0xc1865f();while(!![]){try{const _0x7443c9=-parseInt(_0x2d548a(0x118))/0x1+-parseInt(_0x2d548a(0x12d))/0x2*(parseInt(_0x2d548a(0x133))/0x3)+parseInt(_0x2d548a(0x13f))/0x4*(-parseInt(_0x2d548a(0x13a))/0x5)+-parseInt(_0x2d548a(0x13c))/0x6+-parseInt(_0x2d548a(0x123))/0x7+-parseInt(_0x2d548a(0x12e))/0x8+parseInt(_0x2d548a(0x13b))/0x9*(parseInt(_0x2d548a(0x127))/0xa);if(_0x7443c9===_0x5dcfe8)break;else _0x503359['push'](_0x503359['shift']());}catch(_0x12c96a){_0x503359['push'](_0x503359['shift']());}}}(a153_0x2e17,0xbf2cd));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=a153_0x6e8751(0x12b);export const CONFIG_NAMES=[a153_0x6e8751(0x12b),a153_0x6e8751(0x113),a153_0x6e8751(0x11d)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a153_0x6e8751(0x11c)](_0x4cbf40=>_0x4cbf40!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x51ba1a){for(const _0x2923f6 of CONFIG_NAMES){const _0x5c0d13=resolve(_0x51ba1a,_0x2923f6);if(existsSync(_0x5c0d13))return _0x5c0d13;}return undefined;}export function findProjectRootDirectory(_0x377429=process[a153_0x6e8751(0x13e)]()){let _0x4ffd01=resolve(_0x377429);const {root:_0x64ef86}=parse(_0x4ffd01),_0x207996=homedir();while(!![]){if(resolveConfigPath(_0x4ffd01)){if(_0x4ffd01===_0x207996)break;return _0x4ffd01;}if(_0x4ffd01===_0x64ef86||_0x4ffd01===_0x207996)break;const _0x1f4707=dirname(_0x4ffd01);if(_0x1f4707===_0x4ffd01)break;_0x4ffd01=_0x1f4707;}return resolve(_0x377429);}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x3cf0fb){const _0x89bb82=a153_0x6e8751;if(!existsSync(_0x3cf0fb))return{'status':_0x89bb82(0x111)};try{const _0x42dcf8=readFileSync(_0x3cf0fb,{'encoding':_0x89bb82(0x139)});if(!_0x42dcf8?.[_0x89bb82(0x12a)]())return{'status':_0x89bb82(0x11a)};const _0x14f389=JSON['parse'](_0x42dcf8);return{'status':'ok','data':_0x14f389};}catch(_0x2c087f){return{'status':_0x89bb82(0x136),'message':_0x2c087f instanceof Error?_0x2c087f[_0x89bb82(0x112)]:String(_0x2c087f)};}}function parseCliConfigJsonFile(_0xa64636,_0xd71c73,_0x556c34){const _0x169c3c=a153_0x6e8751,_0x28866e=inspectCliConfigJsonFile(_0xa64636);if(_0x28866e[_0x169c3c(0x116)]===_0x169c3c(0x111)||_0x28866e['status']===_0x169c3c(0x11a))return{};if(_0x28866e[_0x169c3c(0x116)]==='ok')return _0x28866e[_0x169c3c(0x134)];return _0xd71c73==='warn'&&_0x556c34&&console[_0x169c3c(0x136)](CLI_BIN_NAME+':\x20'+_0x556c34+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0xa64636+'\x0a\x20\x20'+_0x28866e[_0x169c3c(0x112)]),{};}function normalizeLegacyConfigShape(_0x590edb){const _0x40fad1=a153_0x6e8751;if(!_0x590edb||typeof _0x590edb!==_0x40fad1(0x12c))return{'config':{},'migrated':![]};const _0x25ea44={..._0x590edb},_0x362d25=_0x25ea44[_0x40fad1(0x122)]&&typeof _0x25ea44['apps']==='object'?{..._0x25ea44[_0x40fad1(0x122)]}:{},_0x32cf81=Object[_0x40fad1(0x11b)](_0x362d25)[_0x40fad1(0x126)],_0x4e055c=_0x25ea44['appcode']||_0x25ea44[_0x40fad1(0x141)];let _0x1c42be=![];if(_0x4e055c&&_0x32cf81===0x0){const _0x264d33=typeof _0x25ea44[_0x40fad1(0x131)]===_0x40fad1(0x11e)&&_0x25ea44['defaultApp']['trim']()?_0x25ea44[_0x40fad1(0x131)]:String(_0x4e055c)[_0x40fad1(0x12a)]();_0x362d25[_0x264d33]={'appcode':String(_0x4e055c)['trim'](),..._0x25ea44['env']!=null?{'env':_0x25ea44[_0x40fad1(0x129)]}:{},..._0x25ea44[_0x40fad1(0x11f)]!=null?{'apiDir':_0x25ea44[_0x40fad1(0x11f)]}:{},..._0x25ea44['cookie']!=null?{'cookie':_0x25ea44[_0x40fad1(0x114)]}:{},..._0x25ea44[_0x40fad1(0x12f)]!=null?{'accessKey':_0x25ea44[_0x40fad1(0x12f)]}:{},..._0x25ea44[_0x40fad1(0x13d)]!=null?{'format':_0x25ea44[_0x40fad1(0x13d)]}:{},..._0x25ea44[_0x40fad1(0x119)]!=null?{'pageSize':_0x25ea44[_0x40fad1(0x119)]}:{},..._0x25ea44[_0x40fad1(0x128)]!=null?{'riskLevel':_0x25ea44[_0x40fad1(0x128)]}:{},..._0x25ea44[_0x40fad1(0x135)]!=null?{'locale':_0x25ea44[_0x40fad1(0x135)]}:{}},_0x25ea44[_0x40fad1(0x122)]=_0x362d25;if(!_0x25ea44['defaultApp'])_0x25ea44['defaultApp']=_0x264d33;_0x1c42be=!![];}return('appcode'in _0x25ea44||'app'in _0x25ea44)&&(delete _0x25ea44[_0x40fad1(0x120)],delete _0x25ea44[_0x40fad1(0x141)],_0x1c42be=!![]),{'config':_0x25ea44,'migrated':_0x1c42be};}function a153_0x2e17(){const _0x4627ec=['app','missing','message','.lovrabet.json','cookie','project','status','get','378377KhMkkY','pageSize','empty','keys','filter','.lovrabetrc','string','apiDir','appcode','silent','apps','10601899GqaLjv','Project','inherit','length','13490yNkWOh','riskLevel','env','trim','.rabetbase.json','object','258382pqiwbN','10894728ZNIUvH','accessKey','stringify','defaultApp','migrated','15AtNaRW','data','locale','error','warn','set','utf8','1633765JMJiuk','36513LnHClB','2774142yLXdeA','format','cwd','4cdyyDO','config'];a153_0x2e17=function(){return _0x4627ec;};return a153_0x2e17();}function writeNormalizedConfigIfNeeded(_0x296850,_0x421172){const _0x2ea004=a153_0x6e8751,_0x374d10=JSON[_0x2ea004(0x130)](_0x421172,null,0x2)+'\x0a';if(normalizedWriteCache[_0x2ea004(0x117)](_0x296850)===_0x374d10)return;writeConfigFile(_0x296850,_0x421172),normalizedWriteCache[_0x2ea004(0x138)](_0x296850,_0x374d10);}function parseAndNormalizeConfig(_0x18291d,_0x178ef6,_0x5d76ce){const _0x4e7297=a153_0x6e8751,_0x1bdc05=parseCliConfigJsonFile(_0x18291d,_0x178ef6,_0x5d76ce),_0x431018=normalizeLegacyConfigShape(_0x1bdc05);if(_0x431018[_0x4e7297(0x132)])try{writeNormalizedConfigIfNeeded(_0x18291d,_0x431018['config']);}catch{}return _0x431018[_0x4e7297(0x140)];}function a153_0x25fe(_0x530c1e,_0x3c198a){_0x530c1e=_0x530c1e-0x111;const _0x2e1724=a153_0x2e17();let _0x25fe12=_0x2e1724[_0x530c1e];return _0x25fe12;}export function loadRawConfigLayers(_0x53710a){const _0x410f29=a153_0x6e8751;let _0x5cfaf6={},_0x3f4c21={};const _0x435713=resolveConfigPath(homedir());_0x435713&&(_0x5cfaf6=parseAndNormalizeConfig(_0x435713,_0x410f29(0x137),'Global'));const _0x4f6cc0=_0x53710a??findProjectRootDirectory(),_0x82e2cc=resolveConfigPath(_0x4f6cc0);return _0x82e2cc&&(_0x3f4c21=parseAndNormalizeConfig(_0x82e2cc,_0x410f29(0x137),_0x410f29(0x124))),{'globalPath':_0x435713,'projectPath':_0x82e2cc,'globalConfig':_0x5cfaf6,'projectConfig':_0x3f4c21};}const INHERIT_WHITELIST=['cookie',a153_0x6e8751(0x12f),'locale','format','riskLevel',a153_0x6e8751(0x119)];export function mergeRawConfigLayers(_0x4b34e6){const _0x2cb5ab=a153_0x6e8751,{globalConfig:_0x1767c3,projectConfig:_0x511871}=_0x4b34e6,_0x4e0f16=Object[_0x2cb5ab(0x11b)](_0x511871)[_0x2cb5ab(0x126)]>0x0;if(!_0x4e0f16)return mergeGlobalOnly(_0x1767c3);if(_0x511871[_0x2cb5ab(0x125)]===!![])return mergeFullInherit(_0x1767c3,_0x511871);if(_0x511871[_0x2cb5ab(0x125)]===![])return mergeIsolated(_0x511871);return mergeProjectFirst(_0x1767c3,_0x511871);}function mergeGlobalOnly(_0x5a7d37){const _0x29e53f=a153_0x6e8751,_0x44f4b2={..._0x5a7d37},_0x15f82f=_0x5a7d37[_0x29e53f(0x122)]&&typeof _0x5a7d37[_0x29e53f(0x122)]===_0x29e53f(0x12c)?_0x5a7d37[_0x29e53f(0x122)]:{};if(Object['keys'](_0x15f82f)['length']>0x0)_0x44f4b2['apps']=_0x15f82f;if(_0x5a7d37[_0x29e53f(0x131)])_0x44f4b2[_0x29e53f(0x131)]=_0x5a7d37[_0x29e53f(0x131)];else{const _0x10828c=Object[_0x29e53f(0x11b)](_0x15f82f);if(_0x10828c['length']>0x0)_0x44f4b2[_0x29e53f(0x131)]=_0x10828c[0x0];}return _0x44f4b2;}function mergeIsolated(_0x1cbf98){const _0x4293f3=a153_0x6e8751,_0x1ee961={..._0x1cbf98};delete _0x1ee961[_0x4293f3(0x125)];const _0x47055c=_0x1cbf98[_0x4293f3(0x122)]&&typeof _0x1cbf98[_0x4293f3(0x122)]==='object'?_0x1cbf98[_0x4293f3(0x122)]:{};Object[_0x4293f3(0x11b)](_0x47055c)[_0x4293f3(0x126)]>0x0?_0x1ee961[_0x4293f3(0x122)]=_0x47055c:delete _0x1ee961['apps'];if(_0x4293f3(0x131)in _0x1cbf98)_0x1ee961[_0x4293f3(0x131)]=_0x1cbf98[_0x4293f3(0x131)];else Object[_0x4293f3(0x11b)](_0x47055c)['length']>0x0?_0x1ee961[_0x4293f3(0x131)]=Object[_0x4293f3(0x11b)](_0x47055c)[0x0]:delete _0x1ee961[_0x4293f3(0x131)];return _0x1ee961;}function mergeProjectFirst(_0x22c868,_0x5b8ddf){const _0x5d2afe=a153_0x6e8751,_0xb9888d={..._0x5b8ddf};delete _0xb9888d['inherit'];for(const _0x16900b of INHERIT_WHITELIST){!(_0x16900b in _0xb9888d)&&_0x16900b in _0x22c868&&(_0xb9888d[_0x16900b]=_0x22c868[_0x16900b]);}const _0x5a4f3a=_0x5b8ddf[_0x5d2afe(0x122)]&&typeof _0x5b8ddf[_0x5d2afe(0x122)]==='object'?_0x5b8ddf[_0x5d2afe(0x122)]:{};Object['keys'](_0x5a4f3a)[_0x5d2afe(0x126)]>0x0?_0xb9888d['apps']=_0x5a4f3a:delete _0xb9888d[_0x5d2afe(0x122)];if('defaultApp'in _0x5b8ddf)_0xb9888d[_0x5d2afe(0x131)]=_0x5b8ddf[_0x5d2afe(0x131)];else Object['keys'](_0x5a4f3a)[_0x5d2afe(0x126)]>0x0?_0xb9888d['defaultApp']=Object[_0x5d2afe(0x11b)](_0x5a4f3a)[0x0]:delete _0xb9888d['defaultApp'];return _0xb9888d;}function mergeFullInherit(_0x19e053,_0x16965d){const _0xd9363d=a153_0x6e8751,_0x109c10=_0x19e053[_0xd9363d(0x122)]&&typeof _0x19e053[_0xd9363d(0x122)]==='object'?_0x19e053[_0xd9363d(0x122)]:{},_0x2094ec=_0x16965d[_0xd9363d(0x122)]&&typeof _0x16965d[_0xd9363d(0x122)]==='object'?_0x16965d['apps']:{},_0xaf1ba2={..._0x109c10,..._0x2094ec},_0x5f3384={..._0x19e053,..._0x16965d};delete _0x5f3384[_0xd9363d(0x125)];if(Object[_0xd9363d(0x11b)](_0xaf1ba2)[_0xd9363d(0x126)]>0x0)_0x5f3384['apps']=_0xaf1ba2;if(_0xd9363d(0x131)in _0x16965d)_0x5f3384[_0xd9363d(0x131)]=_0x16965d[_0xd9363d(0x131)];else{if(Object[_0xd9363d(0x11b)](_0x2094ec)['length']>0x0)_0x5f3384[_0xd9363d(0x131)]=Object[_0xd9363d(0x11b)](_0x2094ec)[0x0];else{if(_0x19e053[_0xd9363d(0x131)])_0x5f3384[_0xd9363d(0x131)]=_0x19e053['defaultApp'];else{const _0x59f925=Object[_0xd9363d(0x11b)](_0x109c10);if(_0x59f925[_0xd9363d(0x126)]>0x0)_0x5f3384[_0xd9363d(0x131)]=_0x59f925[0x0];}}}return _0x5f3384;}export function readRawConfigWithLayers(_0x456f7c){const _0x46b95c=loadRawConfigLayers(_0x456f7c);return{'config':mergeRawConfigLayers(_0x46b95c),'layers':_0x46b95c};}export function readRawConfig(_0x4bdb90){return mergeRawConfigLayers(loadRawConfigLayers(_0x4bdb90));}export function readConfigFile(_0x5012bd){const _0x22ab59=a153_0x6e8751;return parseAndNormalizeConfig(_0x5012bd,_0x22ab59(0x121));}export function writeConfigFile(_0x22642b,_0xe90fbb){const _0x41835b=a153_0x6e8751,_0x1e5495=dirname(_0x22642b);!existsSync(_0x1e5495)&&mkdirSync(_0x1e5495,{'recursive':!![]});const _0x3c89e2=_0x22642b+'.tmp';try{writeFileSync(_0x3c89e2,JSON[_0x41835b(0x130)](_0xe90fbb,null,0x2)+'\x0a',{'encoding':_0x41835b(0x139),'mode':0x180}),renameSync(_0x3c89e2,_0x22642b);}catch(_0x18376b){try{unlinkSync(_0x3c89e2);}catch{}throw _0x18376b;}}export function resolveWriteConfigPath(_0x1a8f0c){const _0x9c5384=a153_0x6e8751,_0x31804e=_0x1a8f0c===_0x9c5384(0x115)?process['cwd']():homedir(),_0x5ab5f4=resolveConfigPath(_0x31804e);return _0x5ab5f4??resolve(_0x31804e,NEW_CONFIG_NAME);}
1
+ const a154_0x58e8db=a154_0x1489;(function(_0x305962,_0xc210b0){const _0x5c16cd=a154_0x1489,_0x471630=_0x305962();while(!![]){try{const _0x314579=-parseInt(_0x5c16cd(0x1ee))/0x1+-parseInt(_0x5c16cd(0x1cf))/0x2*(-parseInt(_0x5c16cd(0x1d9))/0x3)+parseInt(_0x5c16cd(0x1e1))/0x4+-parseInt(_0x5c16cd(0x1c5))/0x5*(-parseInt(_0x5c16cd(0x1da))/0x6)+parseInt(_0x5c16cd(0x1e9))/0x7+-parseInt(_0x5c16cd(0x1cb))/0x8*(-parseInt(_0x5c16cd(0x1d7))/0x9)+-parseInt(_0x5c16cd(0x1eb))/0xa;if(_0x314579===_0xc210b0)break;else _0x471630['push'](_0x471630['shift']());}catch(_0x5951f2){_0x471630['push'](_0x471630['shift']());}}}(a154_0xab58,0x9f009));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=a154_0x58e8db(0x1c8);export const CONFIG_NAMES=['.rabetbase.json',a154_0x58e8db(0x1e6),a154_0x58e8db(0x1e4)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a154_0x58e8db(0x1c9)](_0x3a60a6=>_0x3a60a6!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x45782f){for(const _0x5645bf of CONFIG_NAMES){const _0x3b2f17=resolve(_0x45782f,_0x5645bf);if(existsSync(_0x3b2f17))return _0x3b2f17;}return undefined;}export function findProjectRootDirectory(_0x9d0a74=process[a154_0x58e8db(0x1ec)]()){let _0x153aa6=resolve(_0x9d0a74);const {root:_0x9862a5}=parse(_0x153aa6),_0x243649=homedir();while(!![]){if(resolveConfigPath(_0x153aa6)){if(_0x153aa6===_0x243649)break;return _0x153aa6;}if(_0x153aa6===_0x9862a5||_0x153aa6===_0x243649)break;const _0x33862b=dirname(_0x153aa6);if(_0x33862b===_0x153aa6)break;_0x153aa6=_0x33862b;}return resolve(_0x9d0a74);}export function getProjectConfigPath(){const _0x372816=a154_0x58e8db;return resolveConfigPath(process[_0x372816(0x1ec)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x4d2c36){const _0x25aaa7=a154_0x58e8db;if(!existsSync(_0x4d2c36))return{'status':_0x25aaa7(0x1e3)};try{const _0x3e6516=readFileSync(_0x4d2c36,{'encoding':_0x25aaa7(0x1d8)});if(!_0x3e6516?.['trim']())return{'status':_0x25aaa7(0x1db)};const _0x1f107f=JSON[_0x25aaa7(0x1cd)](_0x3e6516);return{'status':'ok','data':_0x1f107f};}catch(_0x2c73d5){return{'status':'error','message':_0x2c73d5 instanceof Error?_0x2c73d5['message']:String(_0x2c73d5)};}}function parseCliConfigJsonFile(_0x431d85,_0x46a169,_0x314245){const _0x2f9c02=a154_0x58e8db,_0x2c62d6=inspectCliConfigJsonFile(_0x431d85);if(_0x2c62d6[_0x2f9c02(0x1ef)]==='missing'||_0x2c62d6[_0x2f9c02(0x1ef)]==='empty')return{};if(_0x2c62d6['status']==='ok')return _0x2c62d6[_0x2f9c02(0x1d0)];return _0x46a169===_0x2f9c02(0x1e7)&&_0x314245&&console[_0x2f9c02(0x1ed)](CLI_BIN_NAME+':\x20'+_0x314245+_0x2f9c02(0x1e2)+_0x431d85+_0x2f9c02(0x1c7)+_0x2c62d6[_0x2f9c02(0x1e8)]),{};}function normalizeLegacyConfigShape(_0x42ed83){const _0x512dee=a154_0x58e8db;if(!_0x42ed83||typeof _0x42ed83!==_0x512dee(0x1c0))return{'config':{},'migrated':![]};const _0x3bac5c={..._0x42ed83},_0x2eca51=_0x3bac5c[_0x512dee(0x1dc)]&&typeof _0x3bac5c[_0x512dee(0x1dc)]===_0x512dee(0x1c0)?{..._0x3bac5c[_0x512dee(0x1dc)]}:{},_0x2c70cc=Object[_0x512dee(0x1e0)](_0x2eca51)[_0x512dee(0x1df)],_0xb9effb=_0x3bac5c[_0x512dee(0x1f0)]||_0x3bac5c[_0x512dee(0x1d3)];let _0x3cdab9=![];if(_0xb9effb&&_0x2c70cc===0x0){const _0x307084=typeof _0x3bac5c[_0x512dee(0x1ce)]===_0x512dee(0x1d6)&&_0x3bac5c[_0x512dee(0x1ce)]['trim']()?_0x3bac5c[_0x512dee(0x1ce)]:String(_0xb9effb)[_0x512dee(0x1e5)]();_0x2eca51[_0x307084]={'appcode':String(_0xb9effb)[_0x512dee(0x1e5)](),..._0x3bac5c[_0x512dee(0x1c4)]!=null?{'env':_0x3bac5c[_0x512dee(0x1c4)]}:{},..._0x3bac5c[_0x512dee(0x1c2)]!=null?{'apiDir':_0x3bac5c[_0x512dee(0x1c2)]}:{},..._0x3bac5c[_0x512dee(0x1dd)]!=null?{'cookie':_0x3bac5c[_0x512dee(0x1dd)]}:{},..._0x3bac5c[_0x512dee(0x1d1)]!=null?{'accessKey':_0x3bac5c[_0x512dee(0x1d1)]}:{},..._0x3bac5c[_0x512dee(0x1d4)]!=null?{'format':_0x3bac5c[_0x512dee(0x1d4)]}:{},..._0x3bac5c[_0x512dee(0x1de)]!=null?{'pageSize':_0x3bac5c[_0x512dee(0x1de)]}:{},..._0x3bac5c[_0x512dee(0x1c3)]!=null?{'riskLevel':_0x3bac5c[_0x512dee(0x1c3)]}:{},..._0x3bac5c[_0x512dee(0x1bf)]!=null?{'locale':_0x3bac5c[_0x512dee(0x1bf)]}:{}},_0x3bac5c[_0x512dee(0x1dc)]=_0x2eca51;if(!_0x3bac5c[_0x512dee(0x1ce)])_0x3bac5c['defaultApp']=_0x307084;_0x3cdab9=!![];}return(_0x512dee(0x1f0)in _0x3bac5c||_0x512dee(0x1d3)in _0x3bac5c)&&(delete _0x3bac5c[_0x512dee(0x1f0)],delete _0x3bac5c[_0x512dee(0x1d3)],_0x3cdab9=!![]),{'config':_0x3bac5c,'migrated':_0x3cdab9};}function writeNormalizedConfigIfNeeded(_0x1a1c68,_0x5dfb2f){const _0x2ba3e2=JSON['stringify'](_0x5dfb2f,null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x1a1c68)===_0x2ba3e2)return;writeConfigFile(_0x1a1c68,_0x5dfb2f),normalizedWriteCache['set'](_0x1a1c68,_0x2ba3e2);}function parseAndNormalizeConfig(_0x15bf17,_0x50f67f,_0x297332){const _0x533e6d=a154_0x58e8db,_0x5288af=parseCliConfigJsonFile(_0x15bf17,_0x50f67f,_0x297332),_0x450cb4=normalizeLegacyConfigShape(_0x5288af);if(_0x450cb4[_0x533e6d(0x1c1)])try{writeNormalizedConfigIfNeeded(_0x15bf17,_0x450cb4[_0x533e6d(0x1cc)]);}catch{}return _0x450cb4[_0x533e6d(0x1cc)];}function a154_0x1489(_0xb6c39c,_0x57ff07){_0xb6c39c=_0xb6c39c-0x1bf;const _0xab584d=a154_0xab58();let _0x14892f=_0xab584d[_0xb6c39c];return _0x14892f;}export function loadRawConfigLayers(_0x9dc107){const _0x4b37b3=a154_0x58e8db;let _0x50791b={},_0x191a27={};const _0x4e673f=resolveConfigPath(homedir());_0x4e673f&&(_0x50791b=parseAndNormalizeConfig(_0x4e673f,_0x4b37b3(0x1e7),_0x4b37b3(0x1ca)));const _0xbbca16=_0x9dc107??findProjectRootDirectory(),_0x3ff19a=resolveConfigPath(_0xbbca16);return _0x3ff19a&&(_0x191a27=parseAndNormalizeConfig(_0x3ff19a,_0x4b37b3(0x1e7),_0x4b37b3(0x1f1))),{'globalPath':_0x4e673f,'projectPath':_0x3ff19a,'globalConfig':_0x50791b,'projectConfig':_0x191a27};}const INHERIT_WHITELIST=[a154_0x58e8db(0x1dd),a154_0x58e8db(0x1d1),a154_0x58e8db(0x1bf),a154_0x58e8db(0x1d4),'riskLevel',a154_0x58e8db(0x1de)];export function mergeRawConfigLayers(_0x518cdb){const _0x581226=a154_0x58e8db,{globalConfig:_0x5c9594,projectConfig:_0x318371}=_0x518cdb,_0x568d11=Object[_0x581226(0x1e0)](_0x318371)[_0x581226(0x1df)]>0x0;if(!_0x568d11)return mergeGlobalOnly(_0x5c9594);if(_0x318371[_0x581226(0x1d2)]===!![])return mergeFullInherit(_0x5c9594,_0x318371);if(_0x318371[_0x581226(0x1d2)]===![])return mergeIsolated(_0x318371);return mergeProjectFirst(_0x5c9594,_0x318371);}function mergeGlobalOnly(_0x2f014f){const _0x53704f=a154_0x58e8db,_0x5538f9={..._0x2f014f},_0xf1420b=_0x2f014f[_0x53704f(0x1dc)]&&typeof _0x2f014f[_0x53704f(0x1dc)]===_0x53704f(0x1c0)?_0x2f014f[_0x53704f(0x1dc)]:{};if(Object[_0x53704f(0x1e0)](_0xf1420b)[_0x53704f(0x1df)]>0x0)_0x5538f9['apps']=_0xf1420b;if(_0x2f014f[_0x53704f(0x1ce)])_0x5538f9['defaultApp']=_0x2f014f[_0x53704f(0x1ce)];else{const _0x321f6d=Object[_0x53704f(0x1e0)](_0xf1420b);if(_0x321f6d[_0x53704f(0x1df)]>0x0)_0x5538f9[_0x53704f(0x1ce)]=_0x321f6d[0x0];}return _0x5538f9;}function mergeIsolated(_0x2e8867){const _0x1d0787=a154_0x58e8db,_0x38465d={..._0x2e8867};delete _0x38465d[_0x1d0787(0x1d2)];const _0x191214=_0x2e8867['apps']&&typeof _0x2e8867[_0x1d0787(0x1dc)]==='object'?_0x2e8867['apps']:{};Object[_0x1d0787(0x1e0)](_0x191214)['length']>0x0?_0x38465d[_0x1d0787(0x1dc)]=_0x191214:delete _0x38465d[_0x1d0787(0x1dc)];if(_0x1d0787(0x1ce)in _0x2e8867)_0x38465d['defaultApp']=_0x2e8867[_0x1d0787(0x1ce)];else Object[_0x1d0787(0x1e0)](_0x191214)['length']>0x0?_0x38465d[_0x1d0787(0x1ce)]=Object[_0x1d0787(0x1e0)](_0x191214)[0x0]:delete _0x38465d[_0x1d0787(0x1ce)];return _0x38465d;}function mergeProjectFirst(_0x5f3183,_0xf174e7){const _0x4cb6c5=a154_0x58e8db,_0x5bc773={..._0xf174e7};delete _0x5bc773[_0x4cb6c5(0x1d2)];for(const _0xe53f8a of INHERIT_WHITELIST){!(_0xe53f8a in _0x5bc773)&&_0xe53f8a in _0x5f3183&&(_0x5bc773[_0xe53f8a]=_0x5f3183[_0xe53f8a]);}const _0x5d8256=_0xf174e7[_0x4cb6c5(0x1dc)]&&typeof _0xf174e7[_0x4cb6c5(0x1dc)]==='object'?_0xf174e7[_0x4cb6c5(0x1dc)]:{};Object[_0x4cb6c5(0x1e0)](_0x5d8256)[_0x4cb6c5(0x1df)]>0x0?_0x5bc773[_0x4cb6c5(0x1dc)]=_0x5d8256:delete _0x5bc773[_0x4cb6c5(0x1dc)];if(_0x4cb6c5(0x1ce)in _0xf174e7)_0x5bc773[_0x4cb6c5(0x1ce)]=_0xf174e7[_0x4cb6c5(0x1ce)];else Object[_0x4cb6c5(0x1e0)](_0x5d8256)[_0x4cb6c5(0x1df)]>0x0?_0x5bc773[_0x4cb6c5(0x1ce)]=Object[_0x4cb6c5(0x1e0)](_0x5d8256)[0x0]:delete _0x5bc773[_0x4cb6c5(0x1ce)];return _0x5bc773;}function a154_0xab58(){const _0x5e40cb=['29545920wUmmrB','cwd','error','166561tRmMdF','status','appcode','Project','locale','object','migrated','apiDir','riskLevel','env','1435qWMfDC','.tmp','\x0a\x20\x20','.rabetbase.json','filter','Global','8hvMrUD','config','parse','defaultApp','4rmJxYM','data','accessKey','inherit','app','format','silent','string','5524371iIbbTh','utf8','1731531crzQye','9570ioFzdc','empty','apps','cookie','pageSize','length','keys','1062088VVqiUg','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','missing','.lovrabetrc','trim','.lovrabet.json','warn','message','8966762UEdiRD','stringify'];a154_0xab58=function(){return _0x5e40cb;};return a154_0xab58();}function mergeFullInherit(_0x441bdc,_0x1fe63d){const _0x37e986=a154_0x58e8db,_0x44b3de=_0x441bdc[_0x37e986(0x1dc)]&&typeof _0x441bdc[_0x37e986(0x1dc)]==='object'?_0x441bdc[_0x37e986(0x1dc)]:{},_0x50aa6c=_0x1fe63d[_0x37e986(0x1dc)]&&typeof _0x1fe63d[_0x37e986(0x1dc)]==='object'?_0x1fe63d['apps']:{},_0x41c2e8={..._0x44b3de,..._0x50aa6c},_0x65f1dc={..._0x441bdc,..._0x1fe63d};delete _0x65f1dc[_0x37e986(0x1d2)];if(Object['keys'](_0x41c2e8)[_0x37e986(0x1df)]>0x0)_0x65f1dc['apps']=_0x41c2e8;if(_0x37e986(0x1ce)in _0x1fe63d)_0x65f1dc[_0x37e986(0x1ce)]=_0x1fe63d[_0x37e986(0x1ce)];else{if(Object['keys'](_0x50aa6c)[_0x37e986(0x1df)]>0x0)_0x65f1dc['defaultApp']=Object[_0x37e986(0x1e0)](_0x50aa6c)[0x0];else{if(_0x441bdc[_0x37e986(0x1ce)])_0x65f1dc[_0x37e986(0x1ce)]=_0x441bdc['defaultApp'];else{const _0xc927ff=Object[_0x37e986(0x1e0)](_0x44b3de);if(_0xc927ff['length']>0x0)_0x65f1dc[_0x37e986(0x1ce)]=_0xc927ff[0x0];}}}return _0x65f1dc;}export function readRawConfigWithLayers(_0x578478){const _0x1d6f9f=loadRawConfigLayers(_0x578478);return{'config':mergeRawConfigLayers(_0x1d6f9f),'layers':_0x1d6f9f};}export function readRawConfig(_0x1db9ce){return mergeRawConfigLayers(loadRawConfigLayers(_0x1db9ce));}export function readConfigFile(_0x206549){const _0x209f9d=a154_0x58e8db;return parseAndNormalizeConfig(_0x206549,_0x209f9d(0x1d5));}export function writeConfigFile(_0x1dc460,_0x5db22b){const _0x184c37=a154_0x58e8db,_0x3b08a=dirname(_0x1dc460);!existsSync(_0x3b08a)&&mkdirSync(_0x3b08a,{'recursive':!![]});const _0x39685b=_0x1dc460+_0x184c37(0x1c6);try{writeFileSync(_0x39685b,JSON[_0x184c37(0x1ea)](_0x5db22b,null,0x2)+'\x0a',{'encoding':_0x184c37(0x1d8),'mode':0x180}),renameSync(_0x39685b,_0x1dc460);}catch(_0x1dd95d){try{unlinkSync(_0x39685b);}catch{}throw _0x1dd95d;}}export function resolveWriteConfigPath(_0x5e1acf){const _0x440e8b=_0x5e1acf==='project'?process['cwd']():homedir(),_0x43a769=resolveConfigPath(_0x440e8b);return _0x43a769??resolve(_0x440e8b,NEW_CONFIG_NAME);}
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a154_0x54bae7=a154_0x2b4c;(function(_0x3cdbc3,_0x18db30){const _0x39d6e6=a154_0x2b4c,_0x5b38c1=_0x3cdbc3();while(!![]){try{const _0x3172c0=parseInt(_0x39d6e6(0x18e))/0x1+-parseInt(_0x39d6e6(0x18c))/0x2+-parseInt(_0x39d6e6(0x18f))/0x3+-parseInt(_0x39d6e6(0x1af))/0x4+parseInt(_0x39d6e6(0x1b2))/0x5*(parseInt(_0x39d6e6(0x1a8))/0x6)+parseInt(_0x39d6e6(0x19f))/0x7*(parseInt(_0x39d6e6(0x192))/0x8)+parseInt(_0x39d6e6(0x193))/0x9;if(_0x3172c0===_0x18db30)break;else _0x5b38c1['push'](_0x5b38c1['shift']());}catch(_0x5f2dc){_0x5b38c1['push'](_0x5b38c1['shift']());}}}(a154_0x18a8,0x51bc0));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';function a154_0x2b4c(_0x47cd70,_0x406476){_0x47cd70=_0x47cd70-0x18c;const _0x18a82c=a154_0x18a8();let _0x2b4cf3=_0x18a82c[_0x47cd70];return _0x2b4cf3;}import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{logger}from'./utils/logger.js';export{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x1b24f3){return process.env[`RABETBASE_${_0x1b24f3}`]||process.env[`LOVRABET_${_0x1b24f3}`]||undefined;}export async function createContext(_0x141ab0){const _0x4af8cd=a154_0x2b4c,{config:_0x13960f,layers:_0x1e4d6c}=readRawConfigWithLayers(),_0x442ef3=buildConfig(_0x13960f,_0x141ab0,_0x1e4d6c),{initEnv:_0x8b1af7}=await import(_0x4af8cd(0x1a7));if(_0x442ef3[_0x4af8cd(0x1a5)])_0x8b1af7(_0x442ef3['env']);else _0x141ab0[_0x4af8cd(0x1a5)]&&typeof _0x141ab0['env']==='string'&&_0x8b1af7(_0x141ab0[_0x4af8cd(0x1a5)]);const {initDomains:_0x2c0bae,getUserDomain:_0x10bb69,getApiDomain:_0x546707}=await import(_0x4af8cd(0x1a0));_0x2c0bae({'apiDomain':_0x13960f[_0x4af8cd(0x19b)]||undefined,'userDomain':_0x13960f['userDomain']||undefined,'runtimeDomain':_0x13960f[_0x4af8cd(0x19e)]||undefined});const _0x4df720={'apiDomain':_0x546707(),'userDomain':_0x10bb69()},_0x122ecb=await buildAuth(_0x442ef3);logger['setLogPath'](process[_0x4af8cd(0x1a6)]());const _0x5be5c3=(CLI_BIN_NAME+'\x20'+process['argv'][_0x4af8cd(0x195)](0x2)['join']('\x20'))[_0x4af8cd(0x1b0)]();logger[_0x4af8cd(0x1b1)](_0x5be5c3);const {isNonInteractive:_0x7db0d0}=await import(_0x4af8cd(0x1a3)),_0x5c8ff5=_0x7db0d0(_0x141ab0);return{'config':_0x442ef3,'auth':_0x122ecb,'logger':logger,'env':_0x4df720,'nonInteractive':_0x5c8ff5};}export function buildConfigFromFlags(_0x20e2db){const {config:_0x471a81,layers:_0x302655}=readRawConfigWithLayers();return buildConfig(_0x471a81,_0x20e2db,_0x302655);}function a154_0x18a8(){const _0xd225fd=['string','appcode','object','cookie','2611360mlBTag','trim','setRawCommand','5nroBjh','1123816TjdzOD','defaultApp','31230FzmxdM','689226aSUZOm','template_base_url','apps','1176gUhpCl','14103522zOJIvp','apiDir','slice','https://g.lovrabet.com/dist/lovrabet-skill','projectConfig','app','filter','globalConfig','apiDomain','entries','project','runtimeDomain','1855zSkhoJ','./constant/domain.js','keys','length','./utils/is-non-interactive.js','find','env','cwd','./constant/env.js','852186xplOWS','api.ts','map'];a154_0x18a8=function(){return _0xd225fd;};return a154_0x18a8();}export function getConfigAppCode(_0x20b7a4){const _0x12aa38=a154_0x2b4c,_0xd63cf4=readRawConfig(_0x20b7a4);if(_0xd63cf4['apps']&&typeof _0xd63cf4[_0x12aa38(0x191)]==='object'){const _0x33ac10=_0xd63cf4[_0x12aa38(0x18d)];if(_0x33ac10&&_0xd63cf4['apps'][_0x33ac10]?.[_0x12aa38(0x1ac)])return String(_0xd63cf4[_0x12aa38(0x191)][_0x33ac10][_0x12aa38(0x1ac)])[_0x12aa38(0x1b0)]();const _0x3d8f39=Object['values'](_0xd63cf4['apps'])[0x0];if(_0x3d8f39?.[_0x12aa38(0x1ac)])return String(_0x3d8f39['appcode'])[_0x12aa38(0x1b0)]();}const _0x52eb58=_0xd63cf4[_0x12aa38(0x1ac)]||_0xd63cf4[_0x12aa38(0x198)];if(typeof _0x52eb58!==_0x12aa38(0x1ab)||_0x52eb58[_0x12aa38(0x1b0)]()==='')return undefined;return _0x52eb58[_0x12aa38(0x1b0)]();}export function getMultiAppConfigs(_0x2b365f=a154_0x54bae7(0x19d),_0x24231a){const _0x85c2bd=a154_0x54bae7,_0x579bc6=loadRawConfigLayers(_0x24231a);let _0x5107a4,_0x2fc9d0;if(_0x2b365f==='merged'){const _0x530324=_0x579bc6[_0x85c2bd(0x19a)][_0x85c2bd(0x191)]&&typeof _0x579bc6[_0x85c2bd(0x19a)]['apps']===_0x85c2bd(0x1ad)?_0x579bc6['globalConfig'][_0x85c2bd(0x191)]:{},_0xabaf41=_0x579bc6[_0x85c2bd(0x197)][_0x85c2bd(0x191)]&&typeof _0x579bc6[_0x85c2bd(0x197)][_0x85c2bd(0x191)]===_0x85c2bd(0x1ad)?_0x579bc6[_0x85c2bd(0x197)][_0x85c2bd(0x191)]:{};_0x5107a4={..._0x530324,..._0xabaf41};const _0x1e8b4e=readRawConfig(_0x24231a);_0x2fc9d0=_0x1e8b4e[_0x85c2bd(0x18d)];}else _0x5107a4=_0x579bc6[_0x85c2bd(0x197)][_0x85c2bd(0x191)],_0x2fc9d0=_0x579bc6[_0x85c2bd(0x197)][_0x85c2bd(0x18d)];if(!_0x5107a4||typeof _0x5107a4!==_0x85c2bd(0x1ad)||Object[_0x85c2bd(0x1a1)](_0x5107a4)[_0x85c2bd(0x1a2)]===0x0)return null;return Object[_0x85c2bd(0x19c)](_0x5107a4)[_0x85c2bd(0x1aa)](([_0x22d530,_0x436b0f])=>({'name':_0x22d530,'appcode':_0x436b0f?.['appcode']||'','isDefault':_0x22d530===_0x2fc9d0,'env':_0x436b0f?.['env'],'apiDir':_0x436b0f?.[_0x85c2bd(0x194)],'cookie':_0x436b0f?.[_0x85c2bd(0x1ae)]||undefined}))[_0x85c2bd(0x199)](_0x219d7a=>_0x219d7a['appcode']);}export function getTemplateBaseUrl(_0x424fad){const _0x4f89cd=a154_0x54bae7,_0x4321d1=readRawConfig(_0x424fad);if(_0x4321d1[_0x4f89cd(0x190)]&&typeof _0x4321d1[_0x4f89cd(0x190)]===_0x4f89cd(0x1ab))return _0x4321d1['template_base_url']['replace'](/\/$/,'');return _0x4f89cd(0x196);}function buildConfig(_0x142872,_0x4f2400,_0xbbcd4e){return{...resolveAppConfig({'raw':_0x142872,'flags':_0x4f2400,'layers':_0xbbcd4e,'readEnv':env}),'raw':_0x142872};}export function resolveApiFilePath(_0x3add27,_0x486337){const _0x3dbc2c=a154_0x54bae7,_0xaa924=resolve(process['cwd'](),_0x3add27),_0x438bab=resolve(_0xaa924,_0x3dbc2c(0x1a9));if(!_0x486337)return _0x438bab;const _0x4ecae9=readRawConfig(),_0x1dd4b6=_0x4ecae9[_0x3dbc2c(0x191)]&&typeof _0x4ecae9[_0x3dbc2c(0x191)]==='object'?_0x4ecae9['apps']:{},_0x1b530e=Object[_0x3dbc2c(0x19c)](_0x1dd4b6)[_0x3dbc2c(0x1a4)](([,_0x1c2773])=>_0x1c2773?.[_0x3dbc2c(0x1ac)]===_0x486337);if(!_0x1b530e)return _0x438bab;const [_0x3672b1,_0x78009]=_0x1b530e,_0x5432b4=typeof _0x4ecae9[_0x3dbc2c(0x18d)]===_0x3dbc2c(0x1ab)?_0x4ecae9[_0x3dbc2c(0x18d)]:undefined;if(_0x78009?.['apiDir'])return _0x438bab;if(_0x5432b4&&_0x3672b1!==_0x5432b4)return resolve(_0xaa924,_0x3672b1+'-api.ts');return _0x438bab;}
1
+ (function(_0x2e6571,_0x32d8d6){const _0x1548f2=a155_0x1cf2,_0x1b483b=_0x2e6571();while(!![]){try{const _0x33ff87=-parseInt(_0x1548f2(0x152))/0x1*(parseInt(_0x1548f2(0x14a))/0x2)+-parseInt(_0x1548f2(0x150))/0x3*(-parseInt(_0x1548f2(0x151))/0x4)+parseInt(_0x1548f2(0x139))/0x5*(-parseInt(_0x1548f2(0x14b))/0x6)+parseInt(_0x1548f2(0x161))/0x7+parseInt(_0x1548f2(0x153))/0x8+-parseInt(_0x1548f2(0x143))/0x9*(-parseInt(_0x1548f2(0x13e))/0xa)+-parseInt(_0x1548f2(0x149))/0xb*(-parseInt(_0x1548f2(0x14f))/0xc);if(_0x33ff87===_0x32d8d6)break;else _0x1b483b['push'](_0x1b483b['shift']());}catch(_0xd68423){_0x1b483b['push'](_0x1b483b['shift']());}}}(a155_0x3480,0x2c5e0));import{resolve}from'node:path';function a155_0x3480(){const _0x1971fd=['65426dYEtfT','1117878swnsut','template_base_url','join','replace','948rNrhPp','1557DvmzMB','524lDgXIc','2RvPXze','481696oWmBeD','length','object','argv','cwd','apiDir','find','map','-api.ts','trim','globalConfig','setLogPath','appcode','string','271439sLUbaP','defaultApp','app','5evQxEY','./constant/domain.js','apps','slice','runtimeDomain','1159940bpXjOB','userDomain','setRawCommand','api.ts','keys','9FGwEOQ','projectConfig','./constant/env.js','apiDomain','env','entries','20955pgknoC'];a155_0x3480=function(){return _0x1971fd;};return a155_0x3480();}import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{logger}from'./utils/logger.js';export{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x2aa5d4){return process.env[`RABETBASE_${_0x2aa5d4}`]||process.env[`LOVRABET_${_0x2aa5d4}`]||undefined;}export async function createContext(_0x596d43){const _0x171d65=a155_0x1cf2,{config:_0x51b1e5,layers:_0x1b183a}=readRawConfigWithLayers(),_0x56814d=buildConfig(_0x51b1e5,_0x596d43,_0x1b183a),{initEnv:_0x17fa46}=await import(_0x171d65(0x145));if(_0x56814d[_0x171d65(0x147)])_0x17fa46(_0x56814d[_0x171d65(0x147)]);else _0x596d43[_0x171d65(0x147)]&&typeof _0x596d43['env']===_0x171d65(0x160)&&_0x17fa46(_0x596d43[_0x171d65(0x147)]);const {initDomains:_0xf12bcc,getUserDomain:_0xaafdaa,getApiDomain:_0x3fda9f}=await import(_0x171d65(0x13a));_0xf12bcc({'apiDomain':_0x51b1e5[_0x171d65(0x146)]||undefined,'userDomain':_0x51b1e5[_0x171d65(0x13f)]||undefined,'runtimeDomain':_0x51b1e5[_0x171d65(0x13d)]||undefined});const _0x5c497e={'apiDomain':_0x3fda9f(),'userDomain':_0xaafdaa()},_0x1c1048=await buildAuth(_0x56814d);logger[_0x171d65(0x15e)](process[_0x171d65(0x157)]());const _0x16ef18=(CLI_BIN_NAME+'\x20'+process[_0x171d65(0x156)][_0x171d65(0x13c)](0x2)[_0x171d65(0x14d)]('\x20'))[_0x171d65(0x15c)]();logger[_0x171d65(0x140)](_0x16ef18);const {isNonInteractive:_0x3b6c9f}=await import('./utils/is-non-interactive.js'),_0x10b6ff=_0x3b6c9f(_0x596d43);return{'config':_0x56814d,'auth':_0x1c1048,'logger':logger,'env':_0x5c497e,'nonInteractive':_0x10b6ff};}function a155_0x1cf2(_0x17c079,_0x4d3dfe){_0x17c079=_0x17c079-0x138;const _0x348027=a155_0x3480();let _0x1cf29c=_0x348027[_0x17c079];return _0x1cf29c;}export function buildConfigFromFlags(_0x193589){const {config:_0x56e7d5,layers:_0x1bdba3}=readRawConfigWithLayers();return buildConfig(_0x56e7d5,_0x193589,_0x1bdba3);}export function getConfigAppCode(_0x2893fb){const _0x1e3e88=a155_0x1cf2,_0x184e12=readRawConfig(_0x2893fb);if(_0x184e12['apps']&&typeof _0x184e12[_0x1e3e88(0x13b)]==='object'){const _0x1a9f98=_0x184e12['defaultApp'];if(_0x1a9f98&&_0x184e12[_0x1e3e88(0x13b)][_0x1a9f98]?.[_0x1e3e88(0x15f)])return String(_0x184e12[_0x1e3e88(0x13b)][_0x1a9f98][_0x1e3e88(0x15f)])['trim']();const _0x48faf2=Object['values'](_0x184e12['apps'])[0x0];if(_0x48faf2?.[_0x1e3e88(0x15f)])return String(_0x48faf2[_0x1e3e88(0x15f)])['trim']();}const _0x4543c8=_0x184e12[_0x1e3e88(0x15f)]||_0x184e12[_0x1e3e88(0x138)];if(typeof _0x4543c8!==_0x1e3e88(0x160)||_0x4543c8[_0x1e3e88(0x15c)]()==='')return undefined;return _0x4543c8['trim']();}export function getMultiAppConfigs(_0x1b662f='project',_0x5dd08a){const _0x93e670=a155_0x1cf2,_0x1833b5=loadRawConfigLayers(_0x5dd08a);let _0x5f22c9,_0x6e4dde;if(_0x1b662f==='merged'){const _0x22dff5=_0x1833b5[_0x93e670(0x15d)][_0x93e670(0x13b)]&&typeof _0x1833b5[_0x93e670(0x15d)][_0x93e670(0x13b)]===_0x93e670(0x155)?_0x1833b5['globalConfig'][_0x93e670(0x13b)]:{},_0x28c62f=_0x1833b5[_0x93e670(0x144)]['apps']&&typeof _0x1833b5[_0x93e670(0x144)][_0x93e670(0x13b)]===_0x93e670(0x155)?_0x1833b5[_0x93e670(0x144)][_0x93e670(0x13b)]:{};_0x5f22c9={..._0x22dff5,..._0x28c62f};const _0x59d763=readRawConfig(_0x5dd08a);_0x6e4dde=_0x59d763[_0x93e670(0x162)];}else _0x5f22c9=_0x1833b5[_0x93e670(0x144)][_0x93e670(0x13b)],_0x6e4dde=_0x1833b5[_0x93e670(0x144)][_0x93e670(0x162)];if(!_0x5f22c9||typeof _0x5f22c9!=='object'||Object[_0x93e670(0x142)](_0x5f22c9)[_0x93e670(0x154)]===0x0)return null;return Object[_0x93e670(0x148)](_0x5f22c9)[_0x93e670(0x15a)](([_0x169b8e,_0x3661a8])=>({'name':_0x169b8e,'appcode':_0x3661a8?.['appcode']||'','isDefault':_0x169b8e===_0x6e4dde,'env':_0x3661a8?.[_0x93e670(0x147)],'apiDir':_0x3661a8?.[_0x93e670(0x158)],'cookie':_0x3661a8?.['cookie']||undefined}))['filter'](_0xc499cd=>_0xc499cd[_0x93e670(0x15f)]);}export function getTemplateBaseUrl(_0x1ac33e){const _0x262a8c=a155_0x1cf2,_0x1ae9ed=readRawConfig(_0x1ac33e);if(_0x1ae9ed['template_base_url']&&typeof _0x1ae9ed[_0x262a8c(0x14c)]===_0x262a8c(0x160))return _0x1ae9ed[_0x262a8c(0x14c)][_0x262a8c(0x14e)](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}function buildConfig(_0x395d28,_0x4995de,_0x7fca11){return{...resolveAppConfig({'raw':_0x395d28,'flags':_0x4995de,'layers':_0x7fca11,'readEnv':env}),'raw':_0x395d28};}export function resolveApiFilePath(_0x1a8e4a,_0x5950a9){const _0x2617d5=a155_0x1cf2,_0x163d8e=resolve(process[_0x2617d5(0x157)](),_0x1a8e4a),_0x180957=resolve(_0x163d8e,_0x2617d5(0x141));if(!_0x5950a9)return _0x180957;const _0x274be3=readRawConfig(),_0x41a1c5=_0x274be3[_0x2617d5(0x13b)]&&typeof _0x274be3[_0x2617d5(0x13b)]===_0x2617d5(0x155)?_0x274be3['apps']:{},_0x42af0e=Object['entries'](_0x41a1c5)[_0x2617d5(0x159)](([,_0x109f3b])=>_0x109f3b?.[_0x2617d5(0x15f)]===_0x5950a9);if(!_0x42af0e)return _0x180957;const [_0x12b602,_0x546ec6]=_0x42af0e,_0x1a01ae=typeof _0x274be3[_0x2617d5(0x162)]==='string'?_0x274be3['defaultApp']:undefined;if(_0x546ec6?.[_0x2617d5(0x158)])return _0x180957;if(_0x1a01ae&&_0x12b602!==_0x1a01ae)return resolve(_0x163d8e,_0x12b602+_0x2617d5(0x15b));return _0x180957;}