@lovrabet/rabetbase-cli 2.3.11-beta.1 → 2.3.12-beta.1

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 (260) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff.js +1 -1
  88. package/lib/commands/db/index.js +1 -1
  89. package/lib/commands/db/list.js +1 -1
  90. package/lib/commands/db/shared.js +1 -1
  91. package/lib/commands/db/tables.js +1 -1
  92. package/lib/commands/db/test.js +1 -1
  93. package/lib/commands/db/update.js +1 -1
  94. package/lib/commands/doctor.js +1 -1
  95. package/lib/commands/file/index.js +1 -1
  96. package/lib/commands/init/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/logs/index.js +1 -1
  102. package/lib/commands/menu/delete.js +1 -1
  103. package/lib/commands/menu/external-link-create.js +1 -1
  104. package/lib/commands/menu/group-create.js +1 -1
  105. package/lib/commands/menu/group-update.js +1 -1
  106. package/lib/commands/menu/index.js +1 -1
  107. package/lib/commands/menu/list.js +1 -1
  108. package/lib/commands/menu/move.js +1 -1
  109. package/lib/commands/menu/regroup-start.js +1 -1
  110. package/lib/commands/menu/shared/compare-table.js +1 -1
  111. package/lib/commands/menu/shared/delete-plan.js +1 -1
  112. package/lib/commands/menu/shared/facts.js +1 -1
  113. package/lib/commands/menu/shared/index.js +1 -1
  114. package/lib/commands/menu/shared/inquirer.js +1 -1
  115. package/lib/commands/menu/shared/local-pages.js +1 -1
  116. package/lib/commands/menu/shared/logic.js +1 -1
  117. package/lib/commands/menu/shared/mutations.js +1 -1
  118. package/lib/commands/menu/shared/service.js +1 -1
  119. package/lib/commands/menu/shared/sync-core.js +1 -1
  120. package/lib/commands/menu/shared/update-core.js +1 -1
  121. package/lib/commands/menu/shared/valid-url.js +1 -1
  122. package/lib/commands/menu/sync.js +1 -1
  123. package/lib/commands/menu/update.js +1 -1
  124. package/lib/commands/notification/config-list.js +1 -1
  125. package/lib/commands/notification/index.js +1 -1
  126. package/lib/commands/page/generate-start.js +1 -1
  127. package/lib/commands/page/generate-status.js +1 -1
  128. package/lib/commands/page/index.js +1 -1
  129. package/lib/commands/page/pull.js +1 -1
  130. package/lib/commands/page/push.js +1 -1
  131. package/lib/commands/page/relation-audit.js +1 -1
  132. package/lib/commands/page/shared.js +1 -1
  133. package/lib/commands/page/standard-page-status.js +1 -1
  134. package/lib/commands/page/sync.js +1 -1
  135. package/lib/commands/permit/index.js +1 -1
  136. package/lib/commands/permit/page-get.js +1 -1
  137. package/lib/commands/permit/page-set.js +1 -1
  138. package/lib/commands/permit/role-apis-set.js +1 -1
  139. package/lib/commands/permit/role-menus-set.js +1 -1
  140. package/lib/commands/permit/role-menus.js +1 -1
  141. package/lib/commands/permit/shared.js +1 -1
  142. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  143. package/lib/commands/project/create/format-elapsed.js +1 -1
  144. package/lib/commands/project/create/main.js +1 -1
  145. package/lib/commands/project/create/non-interactive.js +1 -1
  146. package/lib/commands/project/create/project-template-path.js +1 -1
  147. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  148. package/lib/commands/project/create/use-format-code.js +1 -1
  149. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  150. package/lib/commands/project/index.js +1 -1
  151. package/lib/commands/project/init.js +1 -1
  152. package/lib/commands/project/upgrade.js +1 -1
  153. package/lib/commands/registry.js +1 -1
  154. package/lib/commands/role/create.js +1 -1
  155. package/lib/commands/role/delete.js +1 -1
  156. package/lib/commands/role/detail.js +1 -1
  157. package/lib/commands/role/index.js +1 -1
  158. package/lib/commands/role/list.js +1 -1
  159. package/lib/commands/role/shared.js +1 -1
  160. package/lib/commands/role/update.js +1 -1
  161. package/lib/commands/role/user-add.js +1 -1
  162. package/lib/commands/role/user-remove.js +1 -1
  163. package/lib/commands/role/user-resolve.js +1 -1
  164. package/lib/commands/run/index.js +1 -1
  165. package/lib/commands/schema.js +1 -1
  166. package/lib/commands/sql/create.js +1 -1
  167. package/lib/commands/sql/delete.js +1 -1
  168. package/lib/commands/sql/detail.js +1 -1
  169. package/lib/commands/sql/exec.js +1 -1
  170. package/lib/commands/sql/index.js +1 -1
  171. package/lib/commands/sql/list.js +1 -1
  172. package/lib/commands/sql/pull.js +1 -1
  173. package/lib/commands/sql/push.js +1 -1
  174. package/lib/commands/sql/save.js +1 -1
  175. package/lib/commands/sql/shared.js +1 -1
  176. package/lib/commands/sql/status.js +1 -1
  177. package/lib/commands/sql/validate.js +1 -1
  178. package/lib/commands/task/index.js +1 -1
  179. package/lib/commands/task/status.js +1 -1
  180. package/lib/commands/workspace/add.js +1 -1
  181. package/lib/commands/workspace/index.js +1 -1
  182. package/lib/commands/workspace/remove.js +1 -1
  183. package/lib/config/schema.js +1 -1
  184. package/lib/constant/cdn.js +1 -1
  185. package/lib/constant/cli.js +1 -1
  186. package/lib/constant/defaults.js +1 -1
  187. package/lib/constant/domain.js +1 -1
  188. package/lib/constant/env.js +1 -1
  189. package/lib/constant/output.js +1 -1
  190. package/lib/constant/paths.js +1 -1
  191. package/lib/constant/risk.js +1 -1
  192. package/lib/context/app-resolver.js +1 -1
  193. package/lib/context/auth-resolver.js +1 -1
  194. package/lib/context/config-loader.js +1 -1
  195. package/lib/context.js +1 -1
  196. package/lib/core/alias-resolver.js +1 -1
  197. package/lib/core/api-client.js +1 -1
  198. package/lib/core/bff/config.js +1 -1
  199. package/lib/core/bff/file-system.js +1 -1
  200. package/lib/core/bff/hash.js +1 -1
  201. package/lib/core/bff/lock.js +1 -1
  202. package/lib/core/bff/utils.js +1 -1
  203. package/lib/core/db-resolver.js +1 -1
  204. package/lib/core/page/file-system.js +1 -1
  205. package/lib/core/page/hash.js +1 -1
  206. package/lib/core/page/lock.js +1 -1
  207. package/lib/core/sql-index-auditor.js +1 -1
  208. package/lib/core/sql-sync/config.js +1 -1
  209. package/lib/core/sql-sync/file-system.js +1 -1
  210. package/lib/core/sql-sync/hash.js +1 -1
  211. package/lib/core/sql-sync/lock.js +1 -1
  212. package/lib/core/sql-sync/utils.js +1 -1
  213. package/lib/core/sql-validator.js +1 -1
  214. package/lib/errors.js +1 -1
  215. package/lib/framework/build-all-flags.js +1 -1
  216. package/lib/framework/error-output.js +1 -1
  217. package/lib/framework/explicit-yes.js +1 -1
  218. package/lib/framework/flags.js +1 -1
  219. package/lib/framework/help.js +1 -1
  220. package/lib/framework/index.js +1 -1
  221. package/lib/framework/output.js +1 -1
  222. package/lib/framework/response.js +1 -1
  223. package/lib/framework/runner-alias.js +1 -1
  224. package/lib/framework/runner.js +1 -1
  225. package/lib/framework/schema-export.js +1 -1
  226. package/lib/framework/types.js +1 -1
  227. package/lib/generated/build-info.js +1 -1
  228. package/lib/help.js +1 -1
  229. package/lib/skills/main.js +1 -1
  230. package/lib/skills/npx-skills-add.js +1 -1
  231. package/lib/telemetry/cli-command-trace.js +1 -1
  232. package/lib/telemetry/cli-help-trace.js +1 -1
  233. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  234. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  235. package/lib/telemetry/send-cli-trace-log.js +1 -1
  236. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  237. package/lib/utils/ai_config.js +1 -1
  238. package/lib/utils/apply-jq-filter.js +1 -1
  239. package/lib/utils/cdn-config.js +1 -1
  240. package/lib/utils/check-sdk-version.js +1 -1
  241. package/lib/utils/cli-version-check.js +1 -1
  242. package/lib/utils/cli-version-policy.js +1 -1
  243. package/lib/utils/config.js +1 -1
  244. package/lib/utils/copy-directory.js +1 -1
  245. package/lib/utils/entity-with-id.js +1 -1
  246. package/lib/utils/file-utils.js +1 -1
  247. package/lib/utils/guides-cdn.js +1 -1
  248. package/lib/utils/http-client.js +1 -1
  249. package/lib/utils/is-non-interactive.js +1 -1
  250. package/lib/utils/logger.js +1 -1
  251. package/lib/utils/params.js +1 -1
  252. package/lib/utils/platform.js +1 -1
  253. package/lib/utils/rules-cdn.js +1 -1
  254. package/lib/utils/sleep.js +1 -1
  255. package/lib/utils/template-replacer.js +1 -1
  256. package/lib/utils/update-notice.js +1 -1
  257. package/lib/utils/version.js +1 -1
  258. package/lib/utils/with-active-cookie.js +1 -1
  259. package/lib/utils/write-cli-side-channel.js +1 -1
  260. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x292fb2,_0x53801f){const _0x4c3d25=a209_0x52aa,_0x47fa6b=_0x292fb2();while(!![]){try{const _0x5481b8=parseInt(_0x4c3d25(0x197))/0x1*(parseInt(_0x4c3d25(0x17e))/0x2)+parseInt(_0x4c3d25(0x18c))/0x3*(parseInt(_0x4c3d25(0x163))/0x4)+-parseInt(_0x4c3d25(0x167))/0x5+parseInt(_0x4c3d25(0x16f))/0x6*(-parseInt(_0x4c3d25(0x162))/0x7)+parseInt(_0x4c3d25(0x173))/0x8*(parseInt(_0x4c3d25(0x1a4))/0x9)+parseInt(_0x4c3d25(0x17a))/0xa*(parseInt(_0x4c3d25(0x165))/0xb)+parseInt(_0x4c3d25(0x164))/0xc*(-parseInt(_0x4c3d25(0x179))/0xd);if(_0x5481b8===_0x53801f)break;else _0x47fa6b['push'](_0x47fa6b['shift']());}catch(_0x4fcf71){_0x47fa6b['push'](_0x47fa6b['shift']());}}}(a209_0x2391,0x57902));export function auditSqlJoinIndexes(_0x335189,_0x3fd2fd){const _0x3c66b6=a209_0x52aa,_0x4e54ba=[],_0xf2e76c=extractJoinFacts(_0x335189)['map'](_0x1da914=>{const _0x2ce1fe=a209_0x52aa;if(_0x1da914[_0x2ce1fe(0x19c)]||_0x1da914[_0x2ce1fe(0x174)][_0x2ce1fe(0x1a5)]===0x0)return _0x4e54ba[_0x2ce1fe(0x169)]({'code':_0x2ce1fe(0x184),'table':_0x1da914['table'],'alias':_0x1da914['alias'],'columns':_0x1da914[_0x2ce1fe(0x174)],'reason':_0x1da914[_0x2ce1fe(0x183)]??_0x2ce1fe(0x168)}),{'table':_0x1da914[_0x2ce1fe(0x180)],'alias':_0x1da914[_0x2ce1fe(0x160)],'columns':_0x1da914[_0x2ce1fe(0x174)],'status':_0x2ce1fe(0x1a3)};const _0x32a01a=resolveTableMetadata(_0x3fd2fd,_0x1da914['table']),_0x5dd272=(_0x32a01a?.[_0x2ce1fe(0x17c)]??[])[_0x2ce1fe(0x186)](_0x26d1c2=>({'index':_0x26d1c2,'matchedPrefix':findEqualityPrefix(_0x26d1c2['columns'],_0x1da914[_0x2ce1fe(0x174)])}))['filter'](_0x3fb01c=>_0x3fb01c[_0x2ce1fe(0x17d)][_0x2ce1fe(0x1a5)]>0x0),_0x1b0e55=_0x5dd272[_0x2ce1fe(0x18a)]((_0x4b6035,_0x199f2a)=>!_0x4b6035||_0x199f2a[_0x2ce1fe(0x17d)][_0x2ce1fe(0x1a5)]>_0x4b6035['matchedPrefix'][_0x2ce1fe(0x1a5)]?_0x199f2a:_0x4b6035,_0x5dd272[0x0]);if(_0x1b0e55)return{'table':_0x1da914['table'],'alias':_0x1da914[_0x2ce1fe(0x160)],'columns':_0x1da914[_0x2ce1fe(0x174)],'status':_0x2ce1fe(0x18d),'matchedIndex':{..._0x1b0e55[_0x2ce1fe(0x17b)],'matchedPrefix':_0x1b0e55['matchedPrefix']}};const _0x33de71=_0x32a01a?.[_0x2ce1fe(0x17c)][_0x2ce1fe(0x16c)](_0x590901=>_0x590901[_0x2ce1fe(0x174)][_0x2ce1fe(0x16d)](_0x708270=>_0x1da914[_0x2ce1fe(0x174)][_0x2ce1fe(0x16d)](_0x34c367=>columnNamesMatch(_0x708270,_0x34c367))))??[];if(_0x33de71['length']>0x0)return _0x4e54ba[_0x2ce1fe(0x169)]({'code':_0x2ce1fe(0x161),'table':_0x1da914[_0x2ce1fe(0x180)],'alias':_0x1da914[_0x2ce1fe(0x160)],'columns':_0x1da914[_0x2ce1fe(0x174)],'reason':_0x2ce1fe(0x185)}),{'table':_0x1da914['table'],'alias':_0x1da914[_0x2ce1fe(0x160)],'columns':_0x1da914[_0x2ce1fe(0x174)],'status':_0x2ce1fe(0x199),'candidateIndexes':_0x33de71};if(_0x32a01a&&_0x32a01a['metadataAvailable']!==![]&&_0x32a01a[_0x2ce1fe(0x17c)][_0x2ce1fe(0x1a5)]>0x0&&_0x1da914['columns'][_0x2ce1fe(0x1a5)]>0x0)return _0x4e54ba['push']({'code':_0x2ce1fe(0x1a1),'table':_0x1da914[_0x2ce1fe(0x180)],'alias':_0x1da914[_0x2ce1fe(0x160)],'columns':_0x1da914[_0x2ce1fe(0x174)],'reason':_0x2ce1fe(0x192)}),{'table':_0x1da914[_0x2ce1fe(0x180)],'alias':_0x1da914[_0x2ce1fe(0x160)],'columns':_0x1da914[_0x2ce1fe(0x174)],'status':_0x2ce1fe(0x199)};return _0x4e54ba[_0x2ce1fe(0x169)]({'code':_0x2ce1fe(0x166),'table':_0x1da914[_0x2ce1fe(0x180)],'alias':_0x1da914[_0x2ce1fe(0x160)],'columns':_0x1da914[_0x2ce1fe(0x174)],'reason':_0x32a01a?'The\x20dataset\x20returned\x20no\x20distinguishable\x20index\x20metadata.':_0x2ce1fe(0x19b)}),{'table':_0x1da914['table'],'alias':_0x1da914[_0x2ce1fe(0x160)],'columns':_0x1da914[_0x2ce1fe(0x174)],'status':_0x2ce1fe(0x1a3)};});return{'checked':_0xf2e76c[_0x3c66b6(0x1a5)]>0x0,'joins':_0xf2e76c,'warnings':_0x4e54ba};}function a209_0x2391(){const _0x117fe6=['Not\x20every\x20JOIN\x20target\x20predicate\x20could\x20be\x20audited\x20safely.','push','(?:^|[^\x5cw$])','cross','filter','some','\x20JOIN\x20direction\x20is\x20not\x20supported\x20by\x20static\x20index\x20auditing.','6WIMgud','inner','has','tableName','3224TVyZyi','columns','where','full','includes','test','13lOsDOV','1370810NUNoNB','index','indexes','matchedPrefix','6BdrcLn','position','table','OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.','\x5cs*\x5c.\x5cs*[\x5cw$]+','unsupportedReason','JOIN_PREDICATE_UNSUPPORTED','Relevant\x20columns\x20do\x20not\x20form\x20a\x20complete\x20leftmost\x20index\x20prefix.','map','Derived-table\x20JOIN\x20targets\x20are\x20not\x20supported.','right','min','reduce','max','3189ARKvHS','covered','matchAll','split','exec','match','No\x20reported\x20index\x20contains\x20the\x20JOIN\x20access\x20columns.','join','INNER','add','slice','99677dOxMDk','replace','warning','startsWith','No\x20dataset\x20metadata\x20matched\x20the\x20JOIN\x20table.','unsupportedPredicate','__sq__','trim','using','from','JOIN_INDEX_MISSING','toUpperCase','unavailable','747iSiaQh','length','Only\x20explicit\x20table\x20JOIN\x20clauses\x20with\x20an\x20ON\x20predicate\x20are\x20supported.','natural','alias','JOIN_INDEX_NOT_USABLE','79471SSYfXD','932DYhNVB','1986864OQVuhc','22eicKIg','INDEX_METADATA_UNAVAILABLE','1593690BCRmDO'];a209_0x2391=function(){return _0x117fe6;};return a209_0x2391();}function extractJoinFacts(_0x3d024e){const _0x457b6f=a209_0x52aa,_0x33abf3=maskNestedQueries(stripSqlNoise(_0x3d024e)),_0xff8121=maskQuotedIdentifiers(_0x33abf3),_0x3d1c41=[],_0x35da0f=new Set(),_0x2385d2=/\b(?:(INNER|LEFT|RIGHT|FULL)(?:\s+OUTER)?\s+)?JOIN\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?\s+ON\s+([\s\S]*?)(?=\s+(?:(?:(?:INNER|LEFT|RIGHT|FULL)(?:\s+OUTER)?\s+)?JOIN\b|(?:WHERE|GROUP\s+BY|ORDER\s+BY|HAVING|LIMIT|UNION)\b)|;|$)/gi;for(const _0x476822 of _0x33abf3[_0x457b6f(0x18e)](_0x2385d2)){const _0x4884ed=_0x476822[_0x457b6f(0x17b)]??0x0,_0x1af2f8=_0x476822[0x0]['search'](/\bJOIN\b/i),_0x43ba10=_0x4884ed+Math[_0x457b6f(0x18b)](0x0,_0x1af2f8);if(!/^JOIN\b/i[_0x457b6f(0x178)](_0xff8121['slice'](_0x43ba10)))continue;_0x35da0f[_0x457b6f(0x195)](_0x43ba10);const _0x40934b=normalizeIdentifier(_0x476822[0x1]||_0x457b6f(0x194)),_0x3cf0b1=normalizeIdentifier(_0x476822[0x2]??''),_0x26cf89=normalizeIdentifier(_0x476822[0x3]||_0x3cf0b1[_0x457b6f(0x18f)]('.')['at'](-0x1)||_0x3cf0b1),_0x40532e=[],_0x29b9e1=_0x3cf0b1===_0x457b6f(0x19d);let _0x38b3ef=_0x40934b===_0x457b6f(0x188)||_0x40934b===_0x457b6f(0x176)||_0x29b9e1,_0x58cbfd=_0x38b3ef?_0x29b9e1?_0x457b6f(0x187):_0x40934b[_0x457b6f(0x1a2)]()+_0x457b6f(0x16e):undefined;const _0x16f0b0=stripOuterParentheses(_0x476822[0x4]??'');hasTopLevelKeyword(_0x16f0b0,'OR')&&(_0x38b3ef=!![],_0x58cbfd??=_0x457b6f(0x181));for(const _0x1f10de of splitTopLevelAnd(_0x16f0b0)){const _0x8dc91b=stripOuterParentheses(_0x1f10de);if(hasTopLevelKeyword(_0x8dc91b,'OR')){_0x38b3ef=!![],_0x58cbfd??='OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.';continue;}const _0x1c4313=splitEquality(_0x8dc91b);if(!_0x1c4313){containsColumnReference(_0x1f10de,_0x26cf89)&&(_0x38b3ef=!![]);continue;}const _0x657a73=parseDirectColumnReference(_0x1c4313[0x0],_0x26cf89),_0x3918b5=parseDirectColumnReference(_0x1c4313[0x1],_0x26cf89),_0x24b744=containsColumnReference(_0x1c4313[0x0],_0x26cf89),_0xa2e3c1=containsColumnReference(_0x1c4313[0x1],_0x26cf89),_0x56f08e=_0x657a73&&!_0xa2e3c1?_0x657a73:_0x3918b5&&!_0x24b744?_0x3918b5:null;if(_0x56f08e&&!_0x40532e[_0x457b6f(0x177)](_0x56f08e))_0x40532e[_0x457b6f(0x169)](_0x56f08e);else!_0x56f08e&&containsColumnReference(_0x1f10de,_0x26cf89)&&(_0x38b3ef=!![]);}_0x3d1c41[_0x457b6f(0x169)]({'table':_0x3cf0b1,'alias':_0x26cf89,'columns':_0x40532e,'unsupportedPredicate':_0x38b3ef,'unsupportedReason':_0x58cbfd,'position':_0x43ba10});}for(const _0x2b7d55 of _0xff8121[_0x457b6f(0x18e)](/\bJOIN\b/gi)){const _0x3d3326=_0x2b7d55[_0x457b6f(0x17b)]??0x0;if(_0x35da0f[_0x457b6f(0x171)](_0x3d3326))continue;const _0x38e480=/^\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?/[_0x457b6f(0x190)](_0x33abf3[_0x457b6f(0x196)](_0x3d3326+_0x2b7d55[0x0][_0x457b6f(0x1a5)])),_0x73b13a=normalizeIdentifier(_0x38e480?.[0x1]||'unknown'),_0x3c34f0=normalizeIdentifier(_0x38e480?.[0x2]||''),_0x1c2201=isSqlClauseKeyword(_0x3c34f0)?_0x73b13a[_0x457b6f(0x18f)]('.')['at'](-0x1)||_0x73b13a:_0x3c34f0||_0x73b13a[_0x457b6f(0x18f)]('.')['at'](-0x1)||_0x73b13a;_0x3d1c41[_0x457b6f(0x169)]({'table':_0x73b13a,'alias':_0x1c2201,'columns':[],'unsupportedPredicate':!![],'unsupportedReason':_0x457b6f(0x15e),'position':_0x3d3326});}return _0x3d1c41['sort']((_0x260cd0,_0x1edac9)=>_0x260cd0[_0x457b6f(0x17f)]-_0x1edac9[_0x457b6f(0x17f)]);}function a209_0x52aa(_0x12b42a,_0x23080a){_0x12b42a=_0x12b42a-0x15e;const _0x2391b6=a209_0x2391();let _0x52aa34=_0x2391b6[_0x12b42a];return _0x52aa34;}function stripSqlNoise(_0x33ae28){const _0x3e371c=a209_0x52aa,_0x4461f7=Array['from'](_0x33ae28),_0x4ec845=(_0x431d74,_0x1ad28a)=>{for(let _0x4b4021=_0x431d74;_0x4b4021<_0x1ad28a;_0x4b4021+=0x1){_0x4461f7[_0x4b4021]!=='\x0a'&&_0x4461f7[_0x4b4021]!=='\x0d'&&(_0x4461f7[_0x4b4021]='\x20');}};for(let _0x28e54b=0x0;_0x28e54b<_0x4461f7[_0x3e371c(0x1a5)];_0x28e54b+=0x1){const _0x4ce421=_0x4461f7[_0x28e54b],_0x2b2fd3=_0x4461f7[_0x28e54b+0x1];if(_0x4ce421==='\x27'||_0x4ce421==='\x22'||_0x4ce421==='`'){const _0x4da832=_0x4ce421,_0x31c93a=_0x28e54b;_0x28e54b+=0x1;while(_0x28e54b<_0x4461f7[_0x3e371c(0x1a5)]){if(_0x4461f7[_0x28e54b]==='\x5c'&&_0x28e54b+0x1<_0x4461f7[_0x3e371c(0x1a5)]){_0x28e54b+=0x2;continue;}if(_0x4461f7[_0x28e54b]!==_0x4da832){_0x28e54b+=0x1;continue;}if(_0x4461f7[_0x28e54b+0x1]===_0x4da832){_0x28e54b+=0x2;continue;}break;}if(_0x4da832==='\x27')_0x4ec845(_0x31c93a,Math[_0x3e371c(0x189)](_0x28e54b+0x1,_0x4461f7[_0x3e371c(0x1a5)]));continue;}if(_0x4ce421==='-'&&_0x2b2fd3==='-'){const _0x44ac99=_0x28e54b;while(_0x28e54b<_0x4461f7[_0x3e371c(0x1a5)]&&_0x4461f7[_0x28e54b]!=='\x0a')_0x28e54b+=0x1;_0x4ec845(_0x44ac99,_0x28e54b);continue;}if(_0x4ce421==='/'&&_0x2b2fd3==='*'){const _0x35f672=_0x28e54b;_0x28e54b+=0x2;while(_0x28e54b<_0x4461f7[_0x3e371c(0x1a5)]&&!(_0x4461f7[_0x28e54b]==='*'&&_0x4461f7[_0x28e54b+0x1]==='/')){_0x28e54b+=0x1;}_0x28e54b=Math[_0x3e371c(0x189)](_0x28e54b+0x1,_0x4461f7[_0x3e371c(0x1a5)]-0x1),_0x4ec845(_0x35f672,_0x28e54b+0x1);continue;}if(_0x4ce421==='#'&&_0x2b2fd3!=='{'){const _0x4a2542=_0x28e54b;while(_0x28e54b<_0x4461f7[_0x3e371c(0x1a5)]&&_0x4461f7[_0x28e54b]!=='\x0a')_0x28e54b+=0x1;_0x4ec845(_0x4a2542,_0x28e54b);continue;}if((_0x4ce421==='#'||_0x4ce421==='$')&&_0x2b2fd3==='{'){const _0x389684=_0x28e54b;_0x28e54b+=0x2;while(_0x28e54b<_0x4461f7[_0x3e371c(0x1a5)]&&_0x4461f7[_0x28e54b]!=='}')_0x28e54b+=0x1;_0x4ec845(_0x389684,Math['min'](_0x28e54b+0x1,_0x4461f7[_0x3e371c(0x1a5)]));}}return _0x4461f7[_0x3e371c(0x193)]('');}function maskQuotedIdentifiers(_0xaaab63){const _0x1dbec0=a209_0x52aa,_0x1498ad=Array[_0x1dbec0(0x1a0)](_0xaaab63);for(let _0x319ebc=0x0;_0x319ebc<_0x1498ad[_0x1dbec0(0x1a5)];_0x319ebc+=0x1){const _0x4f755f=_0x1498ad[_0x319ebc];if(_0x4f755f!=='\x22'&&_0x4f755f!=='`')continue;_0x319ebc+=0x1;while(_0x319ebc<_0x1498ad[_0x1dbec0(0x1a5)]){if(_0x1498ad[_0x319ebc]===_0x4f755f){if(_0x1498ad[_0x319ebc+0x1]===_0x4f755f){_0x1498ad[_0x319ebc]='\x20',_0x1498ad[_0x319ebc+0x1]='\x20',_0x319ebc+=0x2;continue;}break;}_0x1498ad[_0x319ebc]='\x20',_0x319ebc+=0x1;}}return _0x1498ad['join']('');}function maskNestedQueries(_0xd4224a){const _0x29920c=a209_0x52aa,_0x11a095=Array[_0x29920c(0x1a0)](_0xd4224a);for(let _0x21d9bc=0x0;_0x21d9bc<_0x11a095['length'];_0x21d9bc+=0x1){if(_0x11a095[_0x21d9bc]!=='(')continue;const _0x43ed96=_0xd4224a[_0x29920c(0x196)](_0x21d9bc+0x1);if(!/^\s*(?:SELECT|WITH)\b/i[_0x29920c(0x178)](_0x43ed96))continue;let _0x65da9b=0x1,_0x24897a=_0x21d9bc+0x1;for(;_0x24897a<_0x11a095[_0x29920c(0x1a5)]&&_0x65da9b>0x0;_0x24897a+=0x1){if(_0x11a095[_0x24897a]==='(')_0x65da9b+=0x1;if(_0x11a095[_0x24897a]===')')_0x65da9b-=0x1;}if(_0x65da9b!==0x0)continue;for(let _0x57f6df=_0x21d9bc;_0x57f6df<_0x24897a;_0x57f6df+=0x1){_0x11a095[_0x57f6df]='\x20';}const _0x498320='__sq__';for(let _0x1f90f6=0x0;_0x1f90f6<_0x498320[_0x29920c(0x1a5)]&&_0x21d9bc+_0x1f90f6<_0x24897a;_0x1f90f6+=0x1){_0x11a095[_0x21d9bc+_0x1f90f6]=_0x498320[_0x1f90f6];}_0x21d9bc=_0x24897a-0x1;}return _0x11a095[_0x29920c(0x193)]('');}function splitTopLevelAnd(_0x20cd40){const _0x1f4b03=a209_0x52aa,_0x306ca6=[];let _0x204e7a=0x0,_0x2c3328=0x0;for(let _0x2cb9eb=0x0;_0x2cb9eb<_0x20cd40[_0x1f4b03(0x1a5)];_0x2cb9eb+=0x1){const _0x1bc169=_0x20cd40[_0x2cb9eb];if(_0x1bc169==='(')_0x204e7a+=0x1;if(_0x1bc169===')')_0x204e7a=Math[_0x1f4b03(0x18b)](0x0,_0x204e7a-0x1);_0x204e7a===0x0&&_0x20cd40[_0x1f4b03(0x196)](_0x2cb9eb)[_0x1f4b03(0x191)](/^AND\b/i)&&(_0x2cb9eb===0x0||/\s/[_0x1f4b03(0x178)](_0x20cd40[_0x2cb9eb-0x1]??''))&&(_0x306ca6['push'](_0x20cd40['slice'](_0x2c3328,_0x2cb9eb)[_0x1f4b03(0x19e)]()),_0x2cb9eb+=0x2,_0x2c3328=_0x2cb9eb+0x1);}const _0x2ab179=_0x20cd40[_0x1f4b03(0x196)](_0x2c3328)[_0x1f4b03(0x19e)]();if(_0x2ab179)_0x306ca6[_0x1f4b03(0x169)](_0x2ab179);return _0x306ca6;}function hasTopLevelKeyword(_0xf728d9,_0x5cc92c){const _0x371706=a209_0x52aa;let _0x1c94a8=0x0;for(let _0x2e066f=0x0;_0x2e066f<_0xf728d9['length'];_0x2e066f+=0x1){const _0x3c6a49=_0xf728d9[_0x2e066f];if(_0x3c6a49==='(')_0x1c94a8+=0x1;if(_0x3c6a49===')')_0x1c94a8=Math[_0x371706(0x18b)](0x0,_0x1c94a8-0x1);if(_0x1c94a8!==0x0)continue;const _0x3fb7d8=_0xf728d9[_0x371706(0x196)](_0x2e066f,_0x2e066f+_0x5cc92c[_0x371706(0x1a5)]),_0x14ec12=_0xf728d9[_0x2e066f-0x1]??'\x20',_0x448880=_0xf728d9[_0x2e066f+_0x5cc92c[_0x371706(0x1a5)]]??'\x20';if(_0x3fb7d8[_0x371706(0x1a2)]()===_0x5cc92c['toUpperCase']()&&!/[\w$]/['test'](_0x14ec12)&&!/[\w$]/[_0x371706(0x178)](_0x448880))return!![];}return![];}function splitEquality(_0x33dc6c){const _0x512db9=a209_0x52aa,_0x5d1b4e=stripOuterParentheses(_0x33dc6c);let _0x460dff=0x0,_0x5a8cf9;for(let _0x53094c=0x0;_0x53094c<_0x5d1b4e['length'];_0x53094c+=0x1){const _0x5e6ed4=_0x5d1b4e[_0x53094c];if(_0x5e6ed4==='(')_0x460dff+=0x1;if(_0x5e6ed4===')')_0x460dff=Math[_0x512db9(0x18b)](0x0,_0x460dff-0x1);const _0x4f2d66=_0x5d1b4e[_0x53094c-0x1]??'',_0x31dc4e=_0x5d1b4e[_0x53094c+0x1]??'';if(_0x5e6ed4==='='&&_0x460dff===0x0&&!/[!<>=:]/[_0x512db9(0x178)](_0x4f2d66)&&_0x31dc4e!=='='){if(_0x5a8cf9!==undefined)return null;_0x5a8cf9=_0x53094c;}}return _0x5a8cf9===undefined?null:[_0x5d1b4e[_0x512db9(0x196)](0x0,_0x5a8cf9)[_0x512db9(0x19e)](),_0x5d1b4e[_0x512db9(0x196)](_0x5a8cf9+0x1)['trim']()];}function parseDirectColumnReference(_0x2c3e4e,_0x513bbf){const _0x71bf7a=a209_0x52aa,_0x4f0ce1=/^([`"]?[\w$]+[`"]?)\s*\.\s*([`"]?[\w$]+[`"]?)$/[_0x71bf7a(0x190)](stripOuterParentheses(_0x2c3e4e));if(!_0x4f0ce1)return null;if(normalizeIdentifier(_0x4f0ce1[0x1]??'')!==normalizeIdentifier(_0x513bbf))return null;return normalizeIdentifier(_0x4f0ce1[0x2]??'');}function containsColumnReference(_0x4d088e,_0x10ed76){const _0x66ab4a=a209_0x52aa,_0x426e54=_0x4d088e['replace'](/[`"]/g,''),_0x591510=_0x10ed76['replace'](/[.*+?^${}()|[\]\\]/g,'\x5c$&');return new RegExp(_0x66ab4a(0x16a)+_0x591510+_0x66ab4a(0x182),'i')[_0x66ab4a(0x178)](_0x426e54);}function findEqualityPrefix(_0x4e2025,_0x2f754d){const _0x44fe1e=new Set(_0x2f754d['map'](normalizeIdentifier)),_0x371c5d=[];for(const _0x512b9e of _0x4e2025){if(!_0x44fe1e['has'](normalizeIdentifier(_0x512b9e)))break;_0x371c5d['push'](_0x512b9e);}return _0x371c5d;}function resolveTableMetadata(_0x5aba8a,_0x41ae41){const _0x26d8e3=a209_0x52aa,_0x2b611a=normalizeIdentifier(_0x41ae41),_0x57e091=_0x5aba8a['filter'](_0x5c6e71=>normalizeIdentifier(_0x5c6e71[_0x26d8e3(0x172)])===_0x2b611a);if(_0x57e091[_0x26d8e3(0x1a5)]===0x1)return _0x57e091[0x0];const _0x3d6376=_0x2b611a[_0x26d8e3(0x177)]('.'),_0x1f04c3=_0x2b611a[_0x26d8e3(0x18f)]('.')['at'](-0x1),_0x2841e4=_0x5aba8a[_0x26d8e3(0x16c)](_0x178308=>{const _0x2bbff7=_0x26d8e3,_0x3264ff=normalizeIdentifier(_0x178308[_0x2bbff7(0x172)]);if(_0x3d6376&&_0x3264ff[_0x2bbff7(0x177)]('.'))return![];return _0x3264ff['split']('.')['at'](-0x1)===_0x1f04c3;});return _0x2841e4[_0x26d8e3(0x1a5)]===0x1?_0x2841e4[0x0]:undefined;}function columnNamesMatch(_0x5b2664,_0x2152a1){return normalizeIdentifier(_0x5b2664)===normalizeIdentifier(_0x2152a1);}function normalizeIdentifier(_0x2b5804){const _0x486f8e=a209_0x52aa;return _0x2b5804[_0x486f8e(0x198)](/[`"]/g,'')[_0x486f8e(0x19e)]()['toLowerCase']();}function isSqlClauseKeyword(_0x3e0257){const _0x149e2b=a209_0x52aa;return new Set(['on',_0x149e2b(0x19f),_0x149e2b(0x175),'join',_0x149e2b(0x170),'left','right','full',_0x149e2b(0x16b),_0x149e2b(0x15f)])['has'](_0x3e0257);}function stripOuterParentheses(_0x15cc02){const _0x4e5431=a209_0x52aa;let _0x95913e=_0x15cc02[_0x4e5431(0x19e)]();while(_0x95913e[_0x4e5431(0x19a)]('(')&&_0x95913e['endsWith'](')')){let _0x709bdb=0x0,_0x5088ea=!![];for(let _0x25a409=0x0;_0x25a409<_0x95913e[_0x4e5431(0x1a5)];_0x25a409+=0x1){if(_0x95913e[_0x25a409]==='(')_0x709bdb+=0x1;if(_0x95913e[_0x25a409]===')')_0x709bdb-=0x1;if(_0x709bdb===0x0&&_0x25a409<_0x95913e[_0x4e5431(0x1a5)]-0x1){_0x5088ea=![];break;}}if(!_0x5088ea||_0x709bdb!==0x0)break;_0x95913e=_0x95913e[_0x4e5431(0x196)](0x1,-0x1)['trim']();}return _0x95913e;}
1
+ (function(_0x122245,_0xf1d1c5){const _0x3ed436=a209_0x495a,_0x18129f=_0x122245();while(!![]){try{const _0x1d355d=-parseInt(_0x3ed436(0x219))/0x1+parseInt(_0x3ed436(0x1ff))/0x2+parseInt(_0x3ed436(0x1fa))/0x3*(-parseInt(_0x3ed436(0x228))/0x4)+-parseInt(_0x3ed436(0x231))/0x5*(-parseInt(_0x3ed436(0x211))/0x6)+-parseInt(_0x3ed436(0x230))/0x7*(-parseInt(_0x3ed436(0x20b))/0x8)+parseInt(_0x3ed436(0x210))/0x9+parseInt(_0x3ed436(0x21b))/0xa*(-parseInt(_0x3ed436(0x221))/0xb);if(_0x1d355d===_0xf1d1c5)break;else _0x18129f['push'](_0x18129f['shift']());}catch(_0x3265c0){_0x18129f['push'](_0x18129f['shift']());}}}(a209_0xf03a,0x2affd));export function auditSqlJoinIndexes(_0x2d42b7,_0x117349){const _0x1fdd99=a209_0x495a,_0x469261=[],_0x260a2f=extractJoinFacts(_0x2d42b7)[_0x1fdd99(0x237)](_0x3fea0e=>{const _0x1c8540=_0x1fdd99;if(_0x3fea0e[_0x1c8540(0x22f)]||_0x3fea0e['columns'][_0x1c8540(0x207)]===0x0)return _0x469261[_0x1c8540(0x226)]({'code':_0x1c8540(0x235),'table':_0x3fea0e[_0x1c8540(0x227)],'alias':_0x3fea0e[_0x1c8540(0x1f7)],'columns':_0x3fea0e[_0x1c8540(0x1f1)],'reason':_0x3fea0e[_0x1c8540(0x22b)]??_0x1c8540(0x218)}),{'table':_0x3fea0e[_0x1c8540(0x227)],'alias':_0x3fea0e[_0x1c8540(0x1f7)],'columns':_0x3fea0e[_0x1c8540(0x1f1)],'status':_0x1c8540(0x22a)};const _0x64d778=resolveTableMetadata(_0x117349,_0x3fea0e['table']),_0x1bc862=(_0x64d778?.[_0x1c8540(0x21a)]??[])['map'](_0x30d6b0=>({'index':_0x30d6b0,'matchedPrefix':findEqualityPrefix(_0x30d6b0[_0x1c8540(0x1f1)],_0x3fea0e[_0x1c8540(0x1f1)])}))[_0x1c8540(0x208)](_0x3d4af1=>_0x3d4af1['matchedPrefix'][_0x1c8540(0x207)]>0x0),_0x376f08=_0x1bc862[_0x1c8540(0x20d)]((_0x55b6ed,_0x31c141)=>!_0x55b6ed||_0x31c141[_0x1c8540(0x20c)]['length']>_0x55b6ed[_0x1c8540(0x20c)]['length']?_0x31c141:_0x55b6ed,_0x1bc862[0x0]);if(_0x376f08)return{'table':_0x3fea0e[_0x1c8540(0x227)],'alias':_0x3fea0e[_0x1c8540(0x1f7)],'columns':_0x3fea0e[_0x1c8540(0x1f1)],'status':_0x1c8540(0x213),'matchedIndex':{..._0x376f08[_0x1c8540(0x204)],'matchedPrefix':_0x376f08[_0x1c8540(0x20c)]}};const _0x194fa=_0x64d778?.[_0x1c8540(0x21a)][_0x1c8540(0x208)](_0x56a481=>_0x56a481[_0x1c8540(0x1f1)]['some'](_0x32f8b5=>_0x3fea0e[_0x1c8540(0x1f1)][_0x1c8540(0x233)](_0x108e1f=>columnNamesMatch(_0x32f8b5,_0x108e1f))))??[];if(_0x194fa[_0x1c8540(0x207)]>0x0)return _0x469261[_0x1c8540(0x226)]({'code':_0x1c8540(0x1fb),'table':_0x3fea0e[_0x1c8540(0x227)],'alias':_0x3fea0e[_0x1c8540(0x1f7)],'columns':_0x3fea0e[_0x1c8540(0x1f1)],'reason':_0x1c8540(0x20f)}),{'table':_0x3fea0e['table'],'alias':_0x3fea0e[_0x1c8540(0x1f7)],'columns':_0x3fea0e['columns'],'status':_0x1c8540(0x236),'candidateIndexes':_0x194fa};if(_0x64d778&&_0x64d778[_0x1c8540(0x22d)]!==![]&&_0x64d778[_0x1c8540(0x21a)][_0x1c8540(0x207)]>0x0&&_0x3fea0e[_0x1c8540(0x1f1)]['length']>0x0)return _0x469261['push']({'code':_0x1c8540(0x21e),'table':_0x3fea0e[_0x1c8540(0x227)],'alias':_0x3fea0e[_0x1c8540(0x1f7)],'columns':_0x3fea0e['columns'],'reason':'No\x20reported\x20index\x20contains\x20the\x20JOIN\x20access\x20columns.'}),{'table':_0x3fea0e['table'],'alias':_0x3fea0e[_0x1c8540(0x1f7)],'columns':_0x3fea0e[_0x1c8540(0x1f1)],'status':'warning'};return _0x469261['push']({'code':_0x1c8540(0x212),'table':_0x3fea0e[_0x1c8540(0x227)],'alias':_0x3fea0e[_0x1c8540(0x1f7)],'columns':_0x3fea0e['columns'],'reason':_0x64d778?_0x1c8540(0x205):_0x1c8540(0x21d)}),{'table':_0x3fea0e[_0x1c8540(0x227)],'alias':_0x3fea0e[_0x1c8540(0x1f7)],'columns':_0x3fea0e[_0x1c8540(0x1f1)],'status':_0x1c8540(0x22a)};});return{'checked':_0x260a2f['length']>0x0,'joins':_0x260a2f,'warnings':_0x469261};}function extractJoinFacts(_0x2ed657){const _0x3f9cdf=a209_0x495a,_0x25b728=maskNestedQueries(stripSqlNoise(_0x2ed657)),_0x21a741=maskQuotedIdentifiers(_0x25b728),_0x186d1f=[],_0x59151b=new Set(),_0x1e8d60=/\b(?:(INNER|LEFT|RIGHT|FULL)(?:\s+OUTER)?\s+)?JOIN\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?\s+ON\s+([\s\S]*?)(?=\s+(?:(?:(?:INNER|LEFT|RIGHT|FULL)(?:\s+OUTER)?\s+)?JOIN\b|(?:WHERE|GROUP\s+BY|ORDER\s+BY|HAVING|LIMIT|UNION)\b)|;|$)/gi;for(const _0x31acc7 of _0x25b728[_0x3f9cdf(0x238)](_0x1e8d60)){const _0x1ac3f9=_0x31acc7[_0x3f9cdf(0x204)]??0x0,_0x178be4=_0x31acc7[0x0][_0x3f9cdf(0x229)](/\bJOIN\b/i),_0xe8f7fa=_0x1ac3f9+Math[_0x3f9cdf(0x201)](0x0,_0x178be4);if(!/^JOIN\b/i['test'](_0x21a741[_0x3f9cdf(0x20e)](_0xe8f7fa)))continue;_0x59151b[_0x3f9cdf(0x224)](_0xe8f7fa);const _0x121cfa=normalizeIdentifier(_0x31acc7[0x1]||_0x3f9cdf(0x1f8)),_0x106c6a=normalizeIdentifier(_0x31acc7[0x2]??''),_0x293f60=normalizeIdentifier(_0x31acc7[0x3]||_0x106c6a['split']('.')['at'](-0x1)||_0x106c6a),_0xb69540=[],_0x31b55a=_0x106c6a===_0x3f9cdf(0x223);let _0x324278=_0x121cfa===_0x3f9cdf(0x209)||_0x121cfa===_0x3f9cdf(0x1f3)||_0x31b55a,_0xc4c3d6=_0x324278?_0x31b55a?_0x3f9cdf(0x20a):_0x121cfa[_0x3f9cdf(0x217)]()+_0x3f9cdf(0x1f0):undefined;const _0x2027e0=stripOuterParentheses(_0x31acc7[0x4]??'');hasTopLevelKeyword(_0x2027e0,'OR')&&(_0x324278=!![],_0xc4c3d6??=_0x3f9cdf(0x220));for(const _0x55489f of splitTopLevelAnd(_0x2027e0)){const _0x52c04b=stripOuterParentheses(_0x55489f);if(hasTopLevelKeyword(_0x52c04b,'OR')){_0x324278=!![],_0xc4c3d6??=_0x3f9cdf(0x220);continue;}const _0x2a5094=splitEquality(_0x52c04b);if(!_0x2a5094){containsColumnReference(_0x55489f,_0x293f60)&&(_0x324278=!![]);continue;}const _0x1d7db4=parseDirectColumnReference(_0x2a5094[0x0],_0x293f60),_0x4220a6=parseDirectColumnReference(_0x2a5094[0x1],_0x293f60),_0x1078de=containsColumnReference(_0x2a5094[0x0],_0x293f60),_0x48574f=containsColumnReference(_0x2a5094[0x1],_0x293f60),_0x3eb81a=_0x1d7db4&&!_0x48574f?_0x1d7db4:_0x4220a6&&!_0x1078de?_0x4220a6:null;if(_0x3eb81a&&!_0xb69540[_0x3f9cdf(0x203)](_0x3eb81a))_0xb69540['push'](_0x3eb81a);else!_0x3eb81a&&containsColumnReference(_0x55489f,_0x293f60)&&(_0x324278=!![]);}_0x186d1f[_0x3f9cdf(0x226)]({'table':_0x106c6a,'alias':_0x293f60,'columns':_0xb69540,'unsupportedPredicate':_0x324278,'unsupportedReason':_0xc4c3d6,'position':_0xe8f7fa});}for(const _0x53a534 of _0x21a741['matchAll'](/\bJOIN\b/gi)){const _0xd77f7a=_0x53a534[_0x3f9cdf(0x204)]??0x0;if(_0x59151b[_0x3f9cdf(0x202)](_0xd77f7a))continue;const _0x3946e8=/^\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?/[_0x3f9cdf(0x200)](_0x25b728[_0x3f9cdf(0x20e)](_0xd77f7a+_0x53a534[0x0]['length'])),_0x4de1d6=normalizeIdentifier(_0x3946e8?.[0x1]||'unknown'),_0x4dfa51=normalizeIdentifier(_0x3946e8?.[0x2]||''),_0x4d078c=isSqlClauseKeyword(_0x4dfa51)?_0x4de1d6['split']('.')['at'](-0x1)||_0x4de1d6:_0x4dfa51||_0x4de1d6[_0x3f9cdf(0x21c)]('.')['at'](-0x1)||_0x4de1d6;_0x186d1f['push']({'table':_0x4de1d6,'alias':_0x4d078c,'columns':[],'unsupportedPredicate':!![],'unsupportedReason':'Only\x20explicit\x20table\x20JOIN\x20clauses\x20with\x20an\x20ON\x20predicate\x20are\x20supported.','position':_0xd77f7a});}return _0x186d1f['sort']((_0x1f86f6,_0x51cc60)=>_0x1f86f6[_0x3f9cdf(0x234)]-_0x51cc60['position']);}function stripSqlNoise(_0x2d4b4e){const _0x51a54f=a209_0x495a,_0x20be18=Array[_0x51a54f(0x206)](_0x2d4b4e),_0x554773=(_0x8cdb2,_0x4acbc2)=>{for(let _0x3cf307=_0x8cdb2;_0x3cf307<_0x4acbc2;_0x3cf307+=0x1){_0x20be18[_0x3cf307]!=='\x0a'&&_0x20be18[_0x3cf307]!=='\x0d'&&(_0x20be18[_0x3cf307]='\x20');}};for(let _0x45c8bd=0x0;_0x45c8bd<_0x20be18[_0x51a54f(0x207)];_0x45c8bd+=0x1){const _0x1eb763=_0x20be18[_0x45c8bd],_0x44f246=_0x20be18[_0x45c8bd+0x1];if(_0x1eb763==='\x27'||_0x1eb763==='\x22'||_0x1eb763==='`'){const _0x57a832=_0x1eb763,_0x10acaa=_0x45c8bd;_0x45c8bd+=0x1;while(_0x45c8bd<_0x20be18[_0x51a54f(0x207)]){if(_0x20be18[_0x45c8bd]==='\x5c'&&_0x45c8bd+0x1<_0x20be18['length']){_0x45c8bd+=0x2;continue;}if(_0x20be18[_0x45c8bd]!==_0x57a832){_0x45c8bd+=0x1;continue;}if(_0x20be18[_0x45c8bd+0x1]===_0x57a832){_0x45c8bd+=0x2;continue;}break;}if(_0x57a832==='\x27')_0x554773(_0x10acaa,Math[_0x51a54f(0x1f5)](_0x45c8bd+0x1,_0x20be18[_0x51a54f(0x207)]));continue;}if(_0x1eb763==='-'&&_0x44f246==='-'){const _0x5e1d47=_0x45c8bd;while(_0x45c8bd<_0x20be18[_0x51a54f(0x207)]&&_0x20be18[_0x45c8bd]!=='\x0a')_0x45c8bd+=0x1;_0x554773(_0x5e1d47,_0x45c8bd);continue;}if(_0x1eb763==='/'&&_0x44f246==='*'){const _0x5d82e4=_0x45c8bd;_0x45c8bd+=0x2;while(_0x45c8bd<_0x20be18[_0x51a54f(0x207)]&&!(_0x20be18[_0x45c8bd]==='*'&&_0x20be18[_0x45c8bd+0x1]==='/')){_0x45c8bd+=0x1;}_0x45c8bd=Math['min'](_0x45c8bd+0x1,_0x20be18[_0x51a54f(0x207)]-0x1),_0x554773(_0x5d82e4,_0x45c8bd+0x1);continue;}if(_0x1eb763==='#'&&_0x44f246!=='{'){const _0x1fca04=_0x45c8bd;while(_0x45c8bd<_0x20be18[_0x51a54f(0x207)]&&_0x20be18[_0x45c8bd]!=='\x0a')_0x45c8bd+=0x1;_0x554773(_0x1fca04,_0x45c8bd);continue;}if((_0x1eb763==='#'||_0x1eb763==='$')&&_0x44f246==='{'){const _0x2fe201=_0x45c8bd;_0x45c8bd+=0x2;while(_0x45c8bd<_0x20be18[_0x51a54f(0x207)]&&_0x20be18[_0x45c8bd]!=='}')_0x45c8bd+=0x1;_0x554773(_0x2fe201,Math[_0x51a54f(0x1f5)](_0x45c8bd+0x1,_0x20be18['length']));}}return _0x20be18[_0x51a54f(0x1fd)]('');}function maskQuotedIdentifiers(_0x386512){const _0x459847=a209_0x495a,_0x29dc86=Array['from'](_0x386512);for(let _0x34da74=0x0;_0x34da74<_0x29dc86['length'];_0x34da74+=0x1){const _0x4d2509=_0x29dc86[_0x34da74];if(_0x4d2509!=='\x22'&&_0x4d2509!=='`')continue;_0x34da74+=0x1;while(_0x34da74<_0x29dc86[_0x459847(0x207)]){if(_0x29dc86[_0x34da74]===_0x4d2509){if(_0x29dc86[_0x34da74+0x1]===_0x4d2509){_0x29dc86[_0x34da74]='\x20',_0x29dc86[_0x34da74+0x1]='\x20',_0x34da74+=0x2;continue;}break;}_0x29dc86[_0x34da74]='\x20',_0x34da74+=0x1;}}return _0x29dc86['join']('');}function maskNestedQueries(_0x36b731){const _0x1919d4=a209_0x495a,_0x5c9b7b=Array['from'](_0x36b731);for(let _0x40640a=0x0;_0x40640a<_0x5c9b7b['length'];_0x40640a+=0x1){if(_0x5c9b7b[_0x40640a]!=='(')continue;const _0x523c47=_0x36b731[_0x1919d4(0x20e)](_0x40640a+0x1);if(!/^\s*(?:SELECT|WITH)\b/i[_0x1919d4(0x21f)](_0x523c47))continue;let _0x1acb95=0x1,_0x541a96=_0x40640a+0x1;for(;_0x541a96<_0x5c9b7b[_0x1919d4(0x207)]&&_0x1acb95>0x0;_0x541a96+=0x1){if(_0x5c9b7b[_0x541a96]==='(')_0x1acb95+=0x1;if(_0x5c9b7b[_0x541a96]===')')_0x1acb95-=0x1;}if(_0x1acb95!==0x0)continue;for(let _0x1fb856=_0x40640a;_0x1fb856<_0x541a96;_0x1fb856+=0x1){_0x5c9b7b[_0x1fb856]='\x20';}const _0xa11e55=_0x1919d4(0x223);for(let _0x13e1c0=0x0;_0x13e1c0<_0xa11e55[_0x1919d4(0x207)]&&_0x40640a+_0x13e1c0<_0x541a96;_0x13e1c0+=0x1){_0x5c9b7b[_0x40640a+_0x13e1c0]=_0xa11e55[_0x13e1c0];}_0x40640a=_0x541a96-0x1;}return _0x5c9b7b[_0x1919d4(0x1fd)]('');}function splitTopLevelAnd(_0x26f845){const _0x1fa1e6=a209_0x495a,_0x86d04e=[];let _0x4adf26=0x0,_0x14e93e=0x0;for(let _0x6d468f=0x0;_0x6d468f<_0x26f845[_0x1fa1e6(0x207)];_0x6d468f+=0x1){const _0x836d21=_0x26f845[_0x6d468f];if(_0x836d21==='(')_0x4adf26+=0x1;if(_0x836d21===')')_0x4adf26=Math[_0x1fa1e6(0x201)](0x0,_0x4adf26-0x1);_0x4adf26===0x0&&_0x26f845[_0x1fa1e6(0x20e)](_0x6d468f)[_0x1fa1e6(0x239)](/^AND\b/i)&&(_0x6d468f===0x0||/\s/[_0x1fa1e6(0x21f)](_0x26f845[_0x6d468f-0x1]??''))&&(_0x86d04e[_0x1fa1e6(0x226)](_0x26f845[_0x1fa1e6(0x20e)](_0x14e93e,_0x6d468f)[_0x1fa1e6(0x22c)]()),_0x6d468f+=0x2,_0x14e93e=_0x6d468f+0x1);}const _0x2bd7a6=_0x26f845['slice'](_0x14e93e)[_0x1fa1e6(0x22c)]();if(_0x2bd7a6)_0x86d04e[_0x1fa1e6(0x226)](_0x2bd7a6);return _0x86d04e;}function hasTopLevelKeyword(_0x1ce3a8,_0x49d8ad){const _0x3112c1=a209_0x495a;let _0x4f6649=0x0;for(let _0x24c4f6=0x0;_0x24c4f6<_0x1ce3a8[_0x3112c1(0x207)];_0x24c4f6+=0x1){const _0x150a69=_0x1ce3a8[_0x24c4f6];if(_0x150a69==='(')_0x4f6649+=0x1;if(_0x150a69===')')_0x4f6649=Math['max'](0x0,_0x4f6649-0x1);if(_0x4f6649!==0x0)continue;const _0x2e08f2=_0x1ce3a8[_0x3112c1(0x20e)](_0x24c4f6,_0x24c4f6+_0x49d8ad[_0x3112c1(0x207)]),_0x4fb924=_0x1ce3a8[_0x24c4f6-0x1]??'\x20',_0x53785c=_0x1ce3a8[_0x24c4f6+_0x49d8ad[_0x3112c1(0x207)]]??'\x20';if(_0x2e08f2[_0x3112c1(0x217)]()===_0x49d8ad[_0x3112c1(0x217)]()&&!/[\w$]/[_0x3112c1(0x21f)](_0x4fb924)&&!/[\w$]/[_0x3112c1(0x21f)](_0x53785c))return!![];}return![];}function splitEquality(_0x8fed3d){const _0x43d256=a209_0x495a,_0x1872a4=stripOuterParentheses(_0x8fed3d);let _0x119c57=0x0,_0x59fa1f;for(let _0x402c99=0x0;_0x402c99<_0x1872a4[_0x43d256(0x207)];_0x402c99+=0x1){const _0x4e31e8=_0x1872a4[_0x402c99];if(_0x4e31e8==='(')_0x119c57+=0x1;if(_0x4e31e8===')')_0x119c57=Math[_0x43d256(0x201)](0x0,_0x119c57-0x1);const _0x44ca01=_0x1872a4[_0x402c99-0x1]??'',_0xfbe2c6=_0x1872a4[_0x402c99+0x1]??'';if(_0x4e31e8==='='&&_0x119c57===0x0&&!/[!<>=:]/[_0x43d256(0x21f)](_0x44ca01)&&_0xfbe2c6!=='='){if(_0x59fa1f!==undefined)return null;_0x59fa1f=_0x402c99;}}return _0x59fa1f===undefined?null:[_0x1872a4[_0x43d256(0x20e)](0x0,_0x59fa1f)[_0x43d256(0x22c)](),_0x1872a4[_0x43d256(0x20e)](_0x59fa1f+0x1)[_0x43d256(0x22c)]()];}function parseDirectColumnReference(_0x281028,_0x5cc82f){const _0x5a1b8a=a209_0x495a,_0x1936ac=/^([`"]?[\w$]+[`"]?)\s*\.\s*([`"]?[\w$]+[`"]?)$/[_0x5a1b8a(0x200)](stripOuterParentheses(_0x281028));if(!_0x1936ac)return null;if(normalizeIdentifier(_0x1936ac[0x1]??'')!==normalizeIdentifier(_0x5cc82f))return null;return normalizeIdentifier(_0x1936ac[0x2]??'');}function containsColumnReference(_0x35f186,_0x3596c7){const _0x5e86f4=a209_0x495a,_0x55924c=_0x35f186[_0x5e86f4(0x1fc)](/[`"]/g,''),_0x427832=_0x3596c7[_0x5e86f4(0x1fc)](/[.*+?^${}()|[\]\\]/g,_0x5e86f4(0x1fe));return new RegExp(_0x5e86f4(0x1f4)+_0x427832+_0x5e86f4(0x232),'i')[_0x5e86f4(0x21f)](_0x55924c);}function findEqualityPrefix(_0x4c626d,_0x2d455c){const _0x337f7c=a209_0x495a,_0x560727=new Set(_0x2d455c[_0x337f7c(0x237)](normalizeIdentifier)),_0x333eed=[];for(const _0x35ba61 of _0x4c626d){if(!_0x560727['has'](normalizeIdentifier(_0x35ba61)))break;_0x333eed['push'](_0x35ba61);}return _0x333eed;}function resolveTableMetadata(_0x680c8,_0xd89447){const _0x2bf5ec=a209_0x495a,_0x2eef90=normalizeIdentifier(_0xd89447),_0xa62be8=_0x680c8[_0x2bf5ec(0x208)](_0x409f60=>normalizeIdentifier(_0x409f60[_0x2bf5ec(0x1f9)])===_0x2eef90);if(_0xa62be8[_0x2bf5ec(0x207)]===0x1)return _0xa62be8[0x0];const _0x54fb81=_0x2eef90[_0x2bf5ec(0x203)]('.'),_0x7d49fd=_0x2eef90[_0x2bf5ec(0x21c)]('.')['at'](-0x1),_0x22eb38=_0x680c8[_0x2bf5ec(0x208)](_0x1aeb0a=>{const _0x1a48f6=_0x2bf5ec,_0x53c1ae=normalizeIdentifier(_0x1aeb0a[_0x1a48f6(0x1f9)]);if(_0x54fb81&&_0x53c1ae['includes']('.'))return![];return _0x53c1ae[_0x1a48f6(0x21c)]('.')['at'](-0x1)===_0x7d49fd;});return _0x22eb38[_0x2bf5ec(0x207)]===0x1?_0x22eb38[0x0]:undefined;}function columnNamesMatch(_0x8f06a0,_0x3937ce){return normalizeIdentifier(_0x8f06a0)===normalizeIdentifier(_0x3937ce);}function a209_0xf03a(){const _0x4c160b=['from','length','filter','right','Derived-table\x20JOIN\x20targets\x20are\x20not\x20supported.','151712XuLIGy','matchedPrefix','reduce','slice','Relevant\x20columns\x20do\x20not\x20form\x20a\x20complete\x20leftmost\x20index\x20prefix.','1639098uodReL','6cFOYjG','INDEX_METADATA_UNAVAILABLE','covered','using','left','startsWith','toUpperCase','Not\x20every\x20JOIN\x20target\x20predicate\x20could\x20be\x20audited\x20safely.','40234LsPSjq','indexes','50EOOKnR','split','No\x20dataset\x20metadata\x20matched\x20the\x20JOIN\x20table.','JOIN_INDEX_MISSING','test','OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.','292985WhfBWW','toLowerCase','__sq__','add','inner','push','table','568hDouNH','search','unavailable','unsupportedReason','trim','metadataAvailable','natural','unsupportedPredicate','14OZHpwf','752065cudtSl','\x5cs*\x5c.\x5cs*[\x5cw$]+','some','position','JOIN_PREDICATE_UNSUPPORTED','warning','map','matchAll','match','\x20JOIN\x20direction\x20is\x20not\x20supported\x20by\x20static\x20index\x20auditing.','columns','cross','full','(?:^|[^\x5cw$])','min','endsWith','alias','INNER','tableName','2532klYtXi','JOIN_INDEX_NOT_USABLE','replace','join','\x5c$&','197838jNddAB','exec','max','has','includes','index','The\x20dataset\x20returned\x20no\x20distinguishable\x20index\x20metadata.'];a209_0xf03a=function(){return _0x4c160b;};return a209_0xf03a();}function a209_0x495a(_0x3f8dc4,_0x18c42d){_0x3f8dc4=_0x3f8dc4-0x1f0;const _0xf03a35=a209_0xf03a();let _0x495a5b=_0xf03a35[_0x3f8dc4];return _0x495a5b;}function normalizeIdentifier(_0x519371){const _0x923bb=a209_0x495a;return _0x519371[_0x923bb(0x1fc)](/[`"]/g,'')[_0x923bb(0x22c)]()[_0x923bb(0x222)]();}function isSqlClauseKeyword(_0x25481e){const _0x2c6eaf=a209_0x495a;return new Set(['on',_0x2c6eaf(0x214),'where',_0x2c6eaf(0x1fd),_0x2c6eaf(0x225),_0x2c6eaf(0x215),_0x2c6eaf(0x209),_0x2c6eaf(0x1f3),_0x2c6eaf(0x1f2),_0x2c6eaf(0x22e)])['has'](_0x25481e);}function stripOuterParentheses(_0x53e9da){const _0x47d3c5=a209_0x495a;let _0x10b6b8=_0x53e9da['trim']();while(_0x10b6b8[_0x47d3c5(0x216)]('(')&&_0x10b6b8[_0x47d3c5(0x1f6)](')')){let _0x1c2eec=0x0,_0x75ae7=!![];for(let _0x5c53e5=0x0;_0x5c53e5<_0x10b6b8[_0x47d3c5(0x207)];_0x5c53e5+=0x1){if(_0x10b6b8[_0x5c53e5]==='(')_0x1c2eec+=0x1;if(_0x10b6b8[_0x5c53e5]===')')_0x1c2eec-=0x1;if(_0x1c2eec===0x0&&_0x5c53e5<_0x10b6b8['length']-0x1){_0x75ae7=![];break;}}if(!_0x75ae7||_0x1c2eec!==0x0)break;_0x10b6b8=_0x10b6b8[_0x47d3c5(0x20e)](0x1,-0x1)[_0x47d3c5(0x22c)]();}return _0x10b6b8;}
@@ -1 +1 @@
1
- const a210_0x414585=a210_0x3210;(function(_0x24efd0,_0x540f13){const _0x583042=a210_0x3210,_0x2be42f=_0x24efd0();while(!![]){try{const _0xddb2c0=-parseInt(_0x583042(0xf4))/0x1*(-parseInt(_0x583042(0xf6))/0x2)+parseInt(_0x583042(0xf1))/0x3+-parseInt(_0x583042(0xfe))/0x4*(parseInt(_0x583042(0xf7))/0x5)+-parseInt(_0x583042(0xf2))/0x6*(parseInt(_0x583042(0xf3))/0x7)+-parseInt(_0x583042(0x100))/0x8*(-parseInt(_0x583042(0xf9))/0x9)+-parseInt(_0x583042(0xfd))/0xa*(parseInt(_0x583042(0xf8))/0xb)+parseInt(_0x583042(0xfc))/0xc;if(_0xddb2c0===_0x540f13)break;else _0x2be42f['push'](_0x2be42f['shift']());}catch(_0x203896){_0x2be42f['push'](_0x2be42f['shift']());}}}(a210_0x393f,0x22c04));function a210_0x3210(_0xe28484,_0x5f4af4){_0xe28484=_0xe28484-0xf1;const _0x393f1c=a210_0x393f();let _0x321011=_0x393f1c[_0xe28484];return _0x321011;}import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a210_0x414585(0xf5),LOCK_FILE_NAME=a210_0x414585(0xfb),TRASH_DIR_NAME=a210_0x414585(0xff);function a210_0x393f(){const _0x8dbf0=['1086408uhDGTL','20lvXvMq','2708VBDMAV','sql-trash','17272qWrJyf','819309ysgyrl','13146RFVlQY','651DOKdGI','281641tIkAAG','.rabetbase','2OBylsT','1755iCDSAC','1407219nQEExV','810pqoKvi','/sql','sql.lock.json'];a210_0x393f=function(){return _0x8dbf0;};return a210_0x393f();}export function loadSqlProjectConfig(_0x5f282f,_0x5c0995){const _0x187931=a210_0x414585,_0x5e9cca=resolve(_0x5c0995??findProjectRootDirectory()),_0xa6fe53=DOT_DIR+_0x187931(0xfa),_0x3dcaa9=_0xa6fe53+'/'+_0x5f282f;return{'projectRoot':_0x5e9cca,'appCode':_0x5f282f,'sqlWorkspaceRoot':_0xa6fe53,'sqlRoot':_0x3dcaa9,'sqlRootDir':resolve(_0x5e9cca,DOT_DIR,'sql',_0x5f282f),'lockFilePath':resolve(_0x5e9cca,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x5e9cca,DOT_DIR,TRASH_DIR_NAME)};}
1
+ const a210_0x17766d=a210_0x5293;function a210_0x5293(_0x48f7d5,_0x16a210){_0x48f7d5=_0x48f7d5-0xb5;const _0x149d95=a210_0x149d();let _0x5293b8=_0x149d95[_0x48f7d5];return _0x5293b8;}function a210_0x149d(){const _0x4a2b65=['1794678kjVSWT','4HmyilT','sql-trash','29511YANjbZ','/sql','2744eVcsvb','.rabetbase','100932WxLBSw','235IJXnjR','3926263IAOQbF','447342ZgkqIW','5913234QlcaNQ','260855oRkmQP','70kSykmB'];a210_0x149d=function(){return _0x4a2b65;};return a210_0x149d();}(function(_0x424c20,_0x57c17c){const _0x1e260e=a210_0x5293,_0x4949da=_0x424c20();while(!![]){try{const _0x2e9627=parseInt(_0x1e260e(0xc1))/0x1*(-parseInt(_0x1e260e(0xb6))/0x2)+parseInt(_0x1e260e(0xb5))/0x3+parseInt(_0x1e260e(0xbc))/0x4*(parseInt(_0x1e260e(0xbd))/0x5)+parseInt(_0x1e260e(0xc0))/0x6+parseInt(_0x1e260e(0xbf))/0x7+-parseInt(_0x1e260e(0xba))/0x8*(-parseInt(_0x1e260e(0xb8))/0x9)+parseInt(_0x1e260e(0xc2))/0xa*(-parseInt(_0x1e260e(0xbe))/0xb);if(_0x2e9627===_0x57c17c)break;else _0x4949da['push'](_0x4949da['shift']());}catch(_0x45a743){_0x4949da['push'](_0x4949da['shift']());}}}(a210_0x149d,0xe505e));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a210_0x17766d(0xbb),LOCK_FILE_NAME='sql.lock.json',TRASH_DIR_NAME=a210_0x17766d(0xb7);export function loadSqlProjectConfig(_0x4c0773,_0x2cd28a){const _0x25e4c5=a210_0x17766d,_0x48db0d=resolve(_0x2cd28a??findProjectRootDirectory()),_0x39aa19=DOT_DIR+_0x25e4c5(0xb9),_0x1d8557=_0x39aa19+'/'+_0x4c0773;return{'projectRoot':_0x48db0d,'appCode':_0x4c0773,'sqlWorkspaceRoot':_0x39aa19,'sqlRoot':_0x1d8557,'sqlRootDir':resolve(_0x48db0d,DOT_DIR,'sql',_0x4c0773),'lockFilePath':resolve(_0x48db0d,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x48db0d,DOT_DIR,TRASH_DIR_NAME)};}
@@ -1 +1 @@
1
- (function(_0x50a4cf,_0x40bbd6){const _0x1022b1=a211_0x5621,_0x3c5d4b=_0x50a4cf();while(!![]){try{const _0x368459=-parseInt(_0x1022b1(0x162))/0x1*(-parseInt(_0x1022b1(0x163))/0x2)+parseInt(_0x1022b1(0x152))/0x3*(parseInt(_0x1022b1(0x14e))/0x4)+-parseInt(_0x1022b1(0x148))/0x5*(-parseInt(_0x1022b1(0x153))/0x6)+-parseInt(_0x1022b1(0x15d))/0x7+-parseInt(_0x1022b1(0x159))/0x8*(parseInt(_0x1022b1(0x161))/0x9)+parseInt(_0x1022b1(0x15c))/0xa*(-parseInt(_0x1022b1(0x167))/0xb)+parseInt(_0x1022b1(0x160))/0xc;if(_0x368459===_0x40bbd6)break;else _0x3c5d4b['push'](_0x3c5d4b['shift']());}catch(_0x28d476){_0x3c5d4b['push'](_0x3c5d4b['shift']());}}}(a211_0x5d29,0x8042e));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x186624){const _0x48ef55=a211_0x5621;if(_0x186624===_0x48ef55(0x151))return'sql';if(_0x186624===_0x48ef55(0x15f))return _0x48ef55(0x168);return undefined;}async function scanSqlFilesRecursively(_0x375be0,_0x29d34b){const _0x396281=a211_0x5621,_0x55e8bc=[];try{const _0x102ce5=await readdir(_0x375be0,{'withFileTypes':!![]});for(const _0x1d5fec of _0x102ce5){const _0x3bdde8=join(_0x375be0,_0x1d5fec[_0x396281(0x165)]);if(_0x1d5fec[_0x396281(0x164)]()){_0x55e8bc[_0x396281(0x157)](...await scanSqlFilesRecursively(_0x3bdde8,_0x29d34b));continue;}if(!_0x1d5fec['isFile']())continue;const _0x1dde4a=extname(_0x1d5fec[_0x396281(0x165)])[_0x396281(0x15b)](),_0xdc25b7=extensionToMode(_0x1dde4a);if(!_0xdc25b7)continue;const _0x440185=relative(_0x29d34b,_0x3bdde8)[_0x396281(0x14d)](/\\/g,'/'),_0x5bb475=_0x440185[_0x396281(0x154)]('/')[_0x396281(0x166)](Boolean),_0x502518=parseSqlPath(_0x5bb475,_0x1d5fec[_0x396281(0x165)],_0x1dde4a);if(!_0x502518)continue;_0x55e8bc['push']({'sqlCode':_0x502518[_0x396281(0x14b)],'sqlName':_0x502518[_0x396281(0x14a)],'dbDirectory':_0x5bb475[0x0],'filePath':_0x3bdde8,'relativePath':_0x440185,'lockKey':_0x502518['sqlCode'],'mode':_0xdc25b7});}}catch(_0x4dc108){if(_0x4dc108[_0x396281(0x156)]!==_0x396281(0x147))throw _0x4dc108;}return _0x55e8bc;}export async function scanLocalSqlQueries(_0x33f32e){const _0x22f64a=a211_0x5621;return scanSqlFilesRecursively(_0x33f32e[_0x22f64a(0x155)],_0x33f32e['sqlRootDir']);}export function resolveLocalSqlFilePath(_0x30bddf,_0x338b4f,_0x39ac67){const _0xc004fe=a211_0x5621,_0x464566=_0x39ac67?.[_0xc004fe(0x14c)]||(_0x39ac67?.[_0xc004fe(0x14a)]||_0x39ac67?.[_0xc004fe(0x15e)]?buildSqlRelativePath(_0x338b4f,_0x39ac67?.[_0xc004fe(0x14a)],_0x39ac67?.[_0xc004fe(0x15e)],_0x39ac67?.[_0xc004fe(0x146)]||_0xc004fe(0x15a),_0x39ac67?.[_0xc004fe(0x158)]):buildDefaultSqlFileName(_0x338b4f,_0x39ac67?.[_0xc004fe(0x146)]||_0xc004fe(0x15a)));return join(_0x30bddf[_0xc004fe(0x155)],_0x464566);}export async function directoryExists(_0xb8f9cb){const _0xfea496=a211_0x5621;try{const _0x150486=await stat(_0xb8f9cb);return _0x150486[_0xfea496(0x164)]();}catch{return![];}}function parseSqlPath(_0x466a4c,_0xfe2c22,_0x1c05d2){const _0x488fe8=a211_0x5621,_0x3545f0=_0xfe2c22[_0x488fe8(0x169)](0x0,-_0x1c05d2[_0x488fe8(0x14f)]);if(_0x466a4c[_0x488fe8(0x14f)]<0x2)return null;const _0x8159cb=_0x3545f0[_0x488fe8(0x149)]('_');if(_0x8159cb<=0x0||_0x8159cb>=_0x3545f0[_0x488fe8(0x14f)]-0x1)return null;const _0x20e422=_0x3545f0[_0x488fe8(0x169)](0x0,_0x8159cb);if(!isLikelySqlCode(_0x20e422))return null;return{'sqlCode':_0x20e422,'sqlName':_0x3545f0[_0x488fe8(0x169)](_0x8159cb+0x1)};}function isLikelySqlCode(_0x154fc1){const _0x1f8f8c=a211_0x5621;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x1f8f8c(0x150)](_0x154fc1);}function a211_0x5621(_0xeb9f1e,_0x2d713d){_0xeb9f1e=_0xeb9f1e-0x146;const _0x5d2900=a211_0x5d29();let _0x5621ce=_0x5d2900[_0xeb9f1e];return _0x5621ce;}function a211_0x5d29(){const _0x584d57=['length','test','.sql','2850591Jubbws','6mhhUbs','split','sqlRootDir','code','push','dbId','1635096iFQWSy','sql','toLowerCase','8380gHSFPP','4012491IKzKKc','dbName','.xml','5021652aPGnej','18seZAGE','509cLtChN','2090deSFaA','isDirectory','name','filter','6160IZicvm','mybatisXml','slice','mode','ENOENT','380260NlCrjc','indexOf','sqlName','sqlCode','path','replace','4wgQXZl'];a211_0x5d29=function(){return _0x584d57;};return a211_0x5d29();}
1
+ (function(_0x5dde4f,_0x551765){const _0x28f6a9=a211_0x4cd9,_0x209b86=_0x5dde4f();while(!![]){try{const _0x2340ec=-parseInt(_0x28f6a9(0x87))/0x1*(-parseInt(_0x28f6a9(0x7a))/0x2)+-parseInt(_0x28f6a9(0x73))/0x3+-parseInt(_0x28f6a9(0x7e))/0x4+parseInt(_0x28f6a9(0x7b))/0x5+parseInt(_0x28f6a9(0x76))/0x6*(parseInt(_0x28f6a9(0x72))/0x7)+parseInt(_0x28f6a9(0x70))/0x8*(-parseInt(_0x28f6a9(0x89))/0x9)+parseInt(_0x28f6a9(0x7c))/0xa;if(_0x2340ec===_0x551765)break;else _0x209b86['push'](_0x209b86['shift']());}catch(_0x226d23){_0x209b86['push'](_0x209b86['shift']());}}}(a211_0x2030,0x43d94));function a211_0x2030(){const _0x4e4b30=['926397nMNpLq','sql','length','slice','sqlName','sqlRootDir','push','16tfRQCa','name','45521OHHBoX','1326867ZCoBZc','.xml','isDirectory','474XgjKRA','dbName','toLowerCase','dbId','514TyLbtj','103310UEfDjA','7668110KIcbba','path','2104024qIyGCP','code','indexOf','replace','isFile','.sql','mode','sqlCode','split','587IQsvEI','ENOENT'];a211_0x2030=function(){return _0x4e4b30;};return a211_0x2030();}import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';function a211_0x4cd9(_0x3bfb17,_0x3fe894){_0x3bfb17=_0x3bfb17-0x6d;const _0x20301d=a211_0x2030();let _0x4cd9cb=_0x20301d[_0x3bfb17];return _0x4cd9cb;}import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x3ab864){const _0xf90109=a211_0x4cd9;if(_0x3ab864===_0xf90109(0x83))return'sql';if(_0x3ab864===_0xf90109(0x74))return'mybatisXml';return undefined;}async function scanSqlFilesRecursively(_0x5a1c37,_0x2c4c41){const _0x45c802=a211_0x4cd9,_0x9e093b=[];try{const _0x291715=await readdir(_0x5a1c37,{'withFileTypes':!![]});for(const _0x439038 of _0x291715){const _0x4a85df=join(_0x5a1c37,_0x439038['name']);if(_0x439038[_0x45c802(0x75)]()){_0x9e093b[_0x45c802(0x6f)](...await scanSqlFilesRecursively(_0x4a85df,_0x2c4c41));continue;}if(!_0x439038[_0x45c802(0x82)]())continue;const _0x3f654d=extname(_0x439038[_0x45c802(0x71)])[_0x45c802(0x78)](),_0x4dc6e8=extensionToMode(_0x3f654d);if(!_0x4dc6e8)continue;const _0x3cbbfa=relative(_0x2c4c41,_0x4a85df)[_0x45c802(0x81)](/\\/g,'/'),_0x210a7a=_0x3cbbfa[_0x45c802(0x86)]('/')['filter'](Boolean),_0x587067=parseSqlPath(_0x210a7a,_0x439038[_0x45c802(0x71)],_0x3f654d);if(!_0x587067)continue;_0x9e093b[_0x45c802(0x6f)]({'sqlCode':_0x587067[_0x45c802(0x85)],'sqlName':_0x587067[_0x45c802(0x6d)],'dbDirectory':_0x210a7a[0x0],'filePath':_0x4a85df,'relativePath':_0x3cbbfa,'lockKey':_0x587067[_0x45c802(0x85)],'mode':_0x4dc6e8});}}catch(_0x15d848){if(_0x15d848[_0x45c802(0x7f)]!==_0x45c802(0x88))throw _0x15d848;}return _0x9e093b;}export async function scanLocalSqlQueries(_0x371f06){const _0x4d413a=a211_0x4cd9;return scanSqlFilesRecursively(_0x371f06[_0x4d413a(0x6e)],_0x371f06[_0x4d413a(0x6e)]);}export function resolveLocalSqlFilePath(_0x8d82e5,_0x250b41,_0x28415b){const _0x21c075=a211_0x4cd9,_0x146da3=_0x28415b?.[_0x21c075(0x7d)]||(_0x28415b?.[_0x21c075(0x6d)]||_0x28415b?.[_0x21c075(0x77)]?buildSqlRelativePath(_0x250b41,_0x28415b?.['sqlName'],_0x28415b?.[_0x21c075(0x77)],_0x28415b?.[_0x21c075(0x84)]||'sql',_0x28415b?.[_0x21c075(0x79)]):buildDefaultSqlFileName(_0x250b41,_0x28415b?.[_0x21c075(0x84)]||_0x21c075(0x8a)));return join(_0x8d82e5[_0x21c075(0x6e)],_0x146da3);}export async function directoryExists(_0x2653f4){const _0x55b469=a211_0x4cd9;try{const _0xc6e549=await stat(_0x2653f4);return _0xc6e549[_0x55b469(0x75)]();}catch{return![];}}function parseSqlPath(_0x44eeb6,_0x595915,_0x14714b){const _0x132c05=a211_0x4cd9,_0x376701=_0x595915[_0x132c05(0x8c)](0x0,-_0x14714b[_0x132c05(0x8b)]);if(_0x44eeb6[_0x132c05(0x8b)]<0x2)return null;const _0x45c145=_0x376701[_0x132c05(0x80)]('_');if(_0x45c145<=0x0||_0x45c145>=_0x376701[_0x132c05(0x8b)]-0x1)return null;const _0x22ad92=_0x376701['slice'](0x0,_0x45c145);if(!isLikelySqlCode(_0x22ad92))return null;return{'sqlCode':_0x22ad92,'sqlName':_0x376701['slice'](_0x45c145+0x1)};}function isLikelySqlCode(_0x3b2a1f){return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/['test'](_0x3b2a1f);}
@@ -1 +1 @@
1
- (function(_0x1409f9,_0x404940){const _0xfbf82c=a212_0x1304,_0x2e4c43=_0x1409f9();while(!![]){try{const _0x3cb7f3=parseInt(_0xfbf82c(0x1b0))/0x1+-parseInt(_0xfbf82c(0x1ba))/0x2+-parseInt(_0xfbf82c(0x1b4))/0x3+-parseInt(_0xfbf82c(0x1b9))/0x4*(parseInt(_0xfbf82c(0x1b3))/0x5)+-parseInt(_0xfbf82c(0x1b1))/0x6+-parseInt(_0xfbf82c(0x1bd))/0x7+-parseInt(_0xfbf82c(0x1b6))/0x8*(-parseInt(_0xfbf82c(0x1b5))/0x9);if(_0x3cb7f3===_0x404940)break;else _0x2e4c43['push'](_0x2e4c43['shift']());}catch(_0x7a1e5a){_0x2e4c43['push'](_0x2e4c43['shift']());}}}(a212_0x97fc,0x79dc3));import{readFile}from'node:fs/promises';function a212_0x1304(_0x363c7e,_0x24ac52){_0x363c7e=_0x363c7e-0x1b0;const _0x97fc91=a212_0x97fc();let _0x1304ea=_0x97fc91[_0x363c7e];return _0x1304ea;}import a212_0x287a11 from'node:crypto';export function computeSqlContentHash(_0x185125){const _0x3ee4f0=a212_0x1304;return a212_0x287a11[_0x3ee4f0(0x1bc)](_0x3ee4f0(0x1bb))[_0x3ee4f0(0x1b8)](_0x185125)[_0x3ee4f0(0x1b2)](_0x3ee4f0(0x1b7));}export async function computeSqlFileHash(_0x2720fc){const _0x5842d9=await readFile(_0x2720fc,'utf8');return computeSqlContentHash(_0x5842d9);}function a212_0x97fc(){const _0x3dd5a0=['createHash','488152ypnxcg','648508AfSNLi','5599572StJQNr','digest','34455FZmlMW','2599263pdvjFl','9WpoHfY','21540424JMnaWQ','hex','update','432VMxPDb','456550HmLRgE','md5'];a212_0x97fc=function(){return _0x3dd5a0;};return a212_0x97fc();}
1
+ (function(_0x49cc80,_0x21fd3a){const _0x33da5a=a212_0x1b5d,_0xa5c5a1=_0x49cc80();while(!![]){try{const _0xbff0e7=parseInt(_0x33da5a(0x159))/0x1+parseInt(_0x33da5a(0x15c))/0x2*(parseInt(_0x33da5a(0x151))/0x3)+-parseInt(_0x33da5a(0x154))/0x4*(-parseInt(_0x33da5a(0x152))/0x5)+-parseInt(_0x33da5a(0x150))/0x6*(parseInt(_0x33da5a(0x15d))/0x7)+-parseInt(_0x33da5a(0x156))/0x8*(parseInt(_0x33da5a(0x157))/0x9)+parseInt(_0x33da5a(0x153))/0xa+-parseInt(_0x33da5a(0x15f))/0xb;if(_0xbff0e7===_0x21fd3a)break;else _0xa5c5a1['push'](_0xa5c5a1['shift']());}catch(_0x1e5f42){_0xa5c5a1['push'](_0xa5c5a1['shift']());}}}(a212_0x142d,0x95337));import{readFile}from'node:fs/promises';import a212_0x521e57 from'node:crypto';function a212_0x142d(){const _0x34a995=['utf8','1106792zjkUIk','18cguacR','digest','1009132qUTZSG','update','createHash','246770cQuSGa','7SvNBus','hex','4485635tANbIy','6418254RGWwwR','3qquVBG','3935LnoyVj','342010UeyzrJ','6092AzydTA'];a212_0x142d=function(){return _0x34a995;};return a212_0x142d();}function a212_0x1b5d(_0x5bf39a,_0x54826e){_0x5bf39a=_0x5bf39a-0x150;const _0x142dad=a212_0x142d();let _0x1b5d77=_0x142dad[_0x5bf39a];return _0x1b5d77;}export function computeSqlContentHash(_0x20bca1){const _0x3c14aa=a212_0x1b5d;return a212_0x521e57[_0x3c14aa(0x15b)]('md5')[_0x3c14aa(0x15a)](_0x20bca1)[_0x3c14aa(0x158)](_0x3c14aa(0x15e));}export async function computeSqlFileHash(_0x1afada){const _0x2f57ff=a212_0x1b5d,_0x19ca2a=await readFile(_0x1afada,_0x2f57ff(0x155));return computeSqlContentHash(_0x19ca2a);}
@@ -1 +1 @@
1
- (function(_0x1cea3f,_0x38b098){const _0x13c0e1=a213_0x8968,_0x45c3b4=_0x1cea3f();while(!![]){try{const _0x567e9c=parseInt(_0x13c0e1(0xb7))/0x1*(parseInt(_0x13c0e1(0xc5))/0x2)+parseInt(_0x13c0e1(0xb9))/0x3+-parseInt(_0x13c0e1(0xc6))/0x4*(-parseInt(_0x13c0e1(0xbb))/0x5)+-parseInt(_0x13c0e1(0xb2))/0x6+parseInt(_0x13c0e1(0xc1))/0x7*(parseInt(_0x13c0e1(0xc4))/0x8)+-parseInt(_0x13c0e1(0xbd))/0x9+parseInt(_0x13c0e1(0xb6))/0xa*(-parseInt(_0x13c0e1(0xba))/0xb);if(_0x567e9c===_0x38b098)break;else _0x45c3b4['push'](_0x45c3b4['shift']());}catch(_0x201776){_0x45c3b4['push'](_0x45c3b4['shift']());}}}(a213_0x4250,0xe327d));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}function a213_0x8968(_0xdde630,_0xfd0f5c){_0xdde630=_0xdde630-0xb1;const _0x42508f=a213_0x4250();let _0x896887=_0x42508f[_0xdde630];return _0x896887;}function a213_0x4250(){const _0x48b5e9=['9383949OeJwKx','\x22\x20vs\x20lock\x20\x22','sqlRoot','utf8','1153831kPupot','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','parse','40oHRASZ','2omgaOx','696IEvHiF','apps','2449194VrabVX','ENOENT','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','lastSync','20SsRAEx','988928DyqnAj','code','461238kXQpGJ','6268449oCIJyi','44660DQBFDm','sqls'];a213_0x4250=function(){return _0x48b5e9;};return a213_0x4250();}export function ensureSqlLockScope(_0x192c3c,_0x5a7b0e,_0x47ecab,_0x22427e){const _0x1ec62c=a213_0x8968,_0x42c269=_0x192c3c??createEmptySqlLock();let _0xf2f96=_0x42c269['apps'][_0x5a7b0e];if(!_0xf2f96)return _0xf2f96={'sqlRoot':_0x47ecab,'lastSync':'','sqls':{}},_0x42c269[_0x1ec62c(0xb1)][_0x5a7b0e]=_0xf2f96,{'lockData':_0x42c269,'appLock':_0xf2f96};if(!_0xf2f96['sqlRoot'])_0xf2f96[_0x1ec62c(0xbf)]=_0x47ecab;else{if(_0xf2f96[_0x1ec62c(0xbf)]!==_0x47ecab)throw new Error(_0x22427e+':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22'+_0x47ecab+_0x1ec62c(0xbe)+_0xf2f96[_0x1ec62c(0xbf)]+'\x22.\x20'+_0x1ec62c(0xc2));}return!_0xf2f96[_0x1ec62c(0xbc)]&&(_0xf2f96[_0x1ec62c(0xbc)]={}),!_0xf2f96[_0x1ec62c(0xb5)]&&(_0xf2f96[_0x1ec62c(0xb5)]=''),{'lockData':_0x42c269,'appLock':_0xf2f96};}export async function readSqlLockFile(_0x243442){const _0x20e198=a213_0x8968;try{const _0x55df79=await readFile(_0x243442,'utf8');return JSON[_0x20e198(0xc3)](_0x55df79);}catch(_0x4524dc){if(_0x4524dc[_0x20e198(0xb8)]===_0x20e198(0xb3))return null;throw new Error(_0x20e198(0xb4)+String(_0x4524dc));}}export async function writeSqlLockFile(_0x3d23fd,_0xfe6182){const _0xe98ade=a213_0x8968;await mkdir(dirname(_0x3d23fd),{'recursive':!![]}),await writeFile(_0x3d23fd,JSON['stringify'](_0xfe6182,null,0x2),_0xe98ade(0xc0));}
1
+ (function(_0x45c953,_0x3cc3e5){const _0x379267=a213_0x18d1,_0x3ab8ac=_0x45c953();while(!![]){try{const _0x67fc81=-parseInt(_0x379267(0x1a6))/0x1*(parseInt(_0x379267(0x1b3))/0x2)+-parseInt(_0x379267(0x1a5))/0x3+parseInt(_0x379267(0x1a7))/0x4*(parseInt(_0x379267(0x1aa))/0x5)+parseInt(_0x379267(0x1b0))/0x6*(parseInt(_0x379267(0x1ac))/0x7)+-parseInt(_0x379267(0x1b1))/0x8+parseInt(_0x379267(0x1b4))/0x9*(-parseInt(_0x379267(0x1ad))/0xa)+-parseInt(_0x379267(0x1ab))/0xb*(-parseInt(_0x379267(0x1af))/0xc);if(_0x67fc81===_0x3cc3e5)break;else _0x3ab8ac['push'](_0x3ab8ac['shift']());}catch(_0x91b62c){_0x3ab8ac['push'](_0x3ab8ac['shift']());}}}(a213_0x3311,0x51777));import{mkdir,readFile,writeFile}from'node:fs/promises';function a213_0x3311(){const _0xef9f74=['apps','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','parse','sqls','sqlRoot','ENOENT','lastSync','135438JBtRAb','4UtDJWD','16vGcIpk','\x22\x20vs\x20lock\x20\x22','stringify','336830qlUhOB','7168546RCTRCB','7UhKmcF','10nPMmtN',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','12EelNcg','2857062PoShwv','957192wVPztg','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','248026JvJybT','3625137mOumZD','code'];a213_0x3311=function(){return _0xef9f74;};return a213_0x3311();}import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x41c9ae,_0x3fe9e9,_0x329009,_0x13e85a){const _0x37b198=a213_0x18d1,_0x3834bd=_0x41c9ae??createEmptySqlLock();let _0x586d4e=_0x3834bd['apps'][_0x3fe9e9];if(!_0x586d4e)return _0x586d4e={'sqlRoot':_0x329009,'lastSync':'','sqls':{}},_0x3834bd[_0x37b198(0x19e)][_0x3fe9e9]=_0x586d4e,{'lockData':_0x3834bd,'appLock':_0x586d4e};if(!_0x586d4e['sqlRoot'])_0x586d4e['sqlRoot']=_0x329009;else{if(_0x586d4e[_0x37b198(0x1a2)]!==_0x329009)throw new Error(_0x13e85a+_0x37b198(0x1ae)+_0x329009+_0x37b198(0x1a8)+_0x586d4e['sqlRoot']+'\x22.\x20'+_0x37b198(0x19f));}return!_0x586d4e[_0x37b198(0x1a1)]&&(_0x586d4e['sqls']={}),!_0x586d4e[_0x37b198(0x1a4)]&&(_0x586d4e['lastSync']=''),{'lockData':_0x3834bd,'appLock':_0x586d4e};}export async function readSqlLockFile(_0x4edf8d){const _0x4eed9f=a213_0x18d1;try{const _0x16bc8b=await readFile(_0x4edf8d,'utf8');return JSON[_0x4eed9f(0x1a0)](_0x16bc8b);}catch(_0x38118c){if(_0x38118c[_0x4eed9f(0x19d)]===_0x4eed9f(0x1a3))return null;throw new Error(_0x4eed9f(0x1b2)+String(_0x38118c));}}function a213_0x18d1(_0x330cab,_0x4bd5fc){_0x330cab=_0x330cab-0x19d;const _0x33113e=a213_0x3311();let _0x18d118=_0x33113e[_0x330cab];return _0x18d118;}export async function writeSqlLockFile(_0x18f11b,_0x139c43){const _0x2b54a4=a213_0x18d1;await mkdir(dirname(_0x18f11b),{'recursive':!![]}),await writeFile(_0x18f11b,JSON[_0x2b54a4(0x1a9)](_0x139c43,null,0x2),'utf8');}
@@ -1 +1 @@
1
- function a215_0x5141(){const _0x19a79a=['275505brcAeA','1917JijHpq','848DaKpZL','trim','41072CzklnV','315008pYtRnb','replace','6oDVkeY','trimStart','sql','unknown-sql','6987ZiXhca','unknown-db','3921840AkiRWP','.xml','1673091hsQUDb','mybatisXml','.sql'];a215_0x5141=function(){return _0x19a79a;};return a215_0x5141();}(function(_0x24cafb,_0x510dfd){const _0x5d2e63=a215_0x377d,_0x3bf156=_0x24cafb();while(!![]){try{const _0x3f7d2b=-parseInt(_0x5d2e63(0x1ba))/0x1+parseInt(_0x5d2e63(0x1b1))/0x2*(parseInt(_0x5d2e63(0x1c2))/0x3)+-parseInt(_0x5d2e63(0x1b3))/0x4+parseInt(_0x5d2e63(0x1c1))/0x5*(parseInt(_0x5d2e63(0x1b6))/0x6)+parseInt(_0x5d2e63(0x1be))/0x7+parseInt(_0x5d2e63(0x1b4))/0x8+-parseInt(_0x5d2e63(0x1bc))/0x9;if(_0x3f7d2b===_0x510dfd)break;else _0x3bf156['push'](_0x3bf156['shift']());}catch(_0x2229ef){_0x3bf156['push'](_0x3bf156['shift']());}}}(a215_0x5141,0x24f73));export function detectSqlMode(_0x3ee15c){const _0x1c20a5=a215_0x377d,_0x5b64e3=_0x3ee15c[_0x1c20a5(0x1b7)]();if(/^<(select|insert|update|delete)\b/i['test'](_0x5b64e3))return _0x1c20a5(0x1bf);return _0x1c20a5(0x1b8);}export function getSqlFileExtension(_0x33c39a){const _0x58fbb6=a215_0x377d;return _0x33c39a===_0x58fbb6(0x1bf)?_0x58fbb6(0x1bd):_0x58fbb6(0x1c0);}export function buildDefaultSqlFileName(_0xc49684,_0x3ba723){return''+_0xc49684+getSqlFileExtension(_0x3ba723);}export function sanitizeSqlPathSegment(_0x36ba61,_0xa4edbd){const _0x138724=a215_0x377d,_0x509dff=String(_0x36ba61??'')[_0x138724(0x1b2)](),_0x2e59ac=_0x509dff[_0x138724(0x1b5)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x138724(0x1b5)](/\s+/g,'-')[_0x138724(0x1b5)](/-+/g,'-')[_0x138724(0x1b5)](/^\.+/,'')[_0x138724(0x1b5)](/\.+$/,'')[_0x138724(0x1b5)](/^-+/,'')[_0x138724(0x1b5)](/-+$/,'');return _0x2e59ac||_0xa4edbd;}function a215_0x377d(_0x3545f1,_0x1dd64e){_0x3545f1=_0x3545f1-0x1b1;const _0x51412b=a215_0x5141();let _0x377d3d=_0x51412b[_0x3545f1];return _0x377d3d;}export function buildDbDirectoryName(_0x542d4b,_0x4dd9ec){const _0x132032=a215_0x377d;return sanitizeSqlPathSegment(_0x542d4b,_0x4dd9ec!=null?'db-'+_0x4dd9ec:_0x132032(0x1bb));}export function buildSqlRelativePath(_0x24a8a2,_0x25b2a6,_0x28aa39,_0x41c7e3,_0x56bd51){const _0x33efa1=a215_0x377d,_0x96c21e=buildDbDirectoryName(_0x28aa39,_0x56bd51),_0x59ac97=sanitizeSqlPathSegment(_0x24a8a2,_0x33efa1(0x1b9)),_0x3c4b19=sanitizeSqlPathSegment(_0x25b2a6,_0x59ac97);return _0x96c21e+'/'+_0x59ac97+'_'+_0x3c4b19+getSqlFileExtension(_0x41c7e3);}
1
+ (function(_0x1f15d6,_0x363c03){const _0x3fd110=a215_0x4456,_0x5be529=_0x1f15d6();while(!![]){try{const _0x2e7f55=-parseInt(_0x3fd110(0x116))/0x1*(parseInt(_0x3fd110(0x118))/0x2)+parseInt(_0x3fd110(0x11a))/0x3+parseInt(_0x3fd110(0x11f))/0x4+-parseInt(_0x3fd110(0x113))/0x5+parseInt(_0x3fd110(0x11c))/0x6+parseInt(_0x3fd110(0x111))/0x7+-parseInt(_0x3fd110(0x117))/0x8;if(_0x2e7f55===_0x363c03)break;else _0x5be529['push'](_0x5be529['shift']());}catch(_0x343a6f){_0x5be529['push'](_0x5be529['shift']());}}}(a215_0x6894,0x88b03));export function detectSqlMode(_0x43ea07){const _0x2c316b=a215_0x4456,_0x2564e9=_0x43ea07['trimStart']();if(/^<(select|insert|update|delete)\b/i[_0x2c316b(0x114)](_0x2564e9))return _0x2c316b(0x11e);return _0x2c316b(0x119);}function a215_0x6894(){const _0x4f8fd8=['mybatisXml','4070508qglHtm','unknown-db','2224684UeKqXN','.sql','418650tMrslz','test','db-','3826HgSpYv','13915064jJppaU','12dYUYfo','sql','2349654mdofOk','replace','1723722QOFHbN','trim'];a215_0x6894=function(){return _0x4f8fd8;};return a215_0x6894();}function a215_0x4456(_0x29c1fc,_0x19d671){_0x29c1fc=_0x29c1fc-0x111;const _0x68945c=a215_0x6894();let _0x4456f3=_0x68945c[_0x29c1fc];return _0x4456f3;}export function getSqlFileExtension(_0x54ba8b){const _0x178731=a215_0x4456;return _0x54ba8b===_0x178731(0x11e)?'.xml':_0x178731(0x112);}export function buildDefaultSqlFileName(_0x5a484a,_0x6972c4){return''+_0x5a484a+getSqlFileExtension(_0x6972c4);}export function sanitizeSqlPathSegment(_0x400b1a,_0x1db587){const _0x1868bf=a215_0x4456,_0x3d453e=String(_0x400b1a??'')[_0x1868bf(0x11d)](),_0x196d8b=_0x3d453e[_0x1868bf(0x11b)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x1868bf(0x11b)](/\s+/g,'-')[_0x1868bf(0x11b)](/-+/g,'-')[_0x1868bf(0x11b)](/^\.+/,'')['replace'](/\.+$/,'')[_0x1868bf(0x11b)](/^-+/,'')[_0x1868bf(0x11b)](/-+$/,'');return _0x196d8b||_0x1db587;}export function buildDbDirectoryName(_0x32fad2,_0x42d6ae){const _0x185d07=a215_0x4456;return sanitizeSqlPathSegment(_0x32fad2,_0x42d6ae!=null?_0x185d07(0x115)+_0x42d6ae:_0x185d07(0x120));}export function buildSqlRelativePath(_0x1353f8,_0x20eb72,_0x5922f2,_0x2bdc6f,_0x5106c2){const _0x25f6c7=buildDbDirectoryName(_0x5922f2,_0x5106c2),_0x870b69=sanitizeSqlPathSegment(_0x1353f8,'unknown-sql'),_0x5ef977=sanitizeSqlPathSegment(_0x20eb72,_0x870b69);return _0x25f6c7+'/'+_0x870b69+'_'+_0x5ef977+getSqlFileExtension(_0x2bdc6f);}
@@ -1 +1 @@
1
- (function(_0x5a9ec1,_0xebfabf){const _0x502f12=a216_0x2598,_0x192079=_0x5a9ec1();while(!![]){try{const _0xb2dd2c=-parseInt(_0x502f12(0x125))/0x1+-parseInt(_0x502f12(0x123))/0x2*(parseInt(_0x502f12(0x111))/0x3)+parseInt(_0x502f12(0x122))/0x4+-parseInt(_0x502f12(0x10d))/0x5+-parseInt(_0x502f12(0x10f))/0x6*(-parseInt(_0x502f12(0x10c))/0x7)+parseInt(_0x502f12(0x126))/0x8*(parseInt(_0x502f12(0x104))/0x9)+parseInt(_0x502f12(0x124))/0xa*(parseInt(_0x502f12(0x121))/0xb);if(_0xb2dd2c===_0xebfabf)break;else _0x192079['push'](_0x192079['shift']());}catch(_0x3eb2a2){_0x192079['push'](_0x192079['shift']());}}}(a216_0x3c81,0xf070b));function a216_0x2598(_0x12f895,_0x4087fc){_0x12f895=_0x12f895-0x102;const _0x3c8197=a216_0x3c81();let _0x2598ee=_0x3c8197[_0x12f895];return _0x2598ee;}export function detectSqlType(_0x1ca0e5){const _0x50f30a=a216_0x2598;if(!_0x1ca0e5?.[_0x50f30a(0x127)]())return{'type':_0x50f30a(0x11b),'isSelectOnly':![],'isDangerous':![],'reason':_0x50f30a(0x116)};const _0xe1e04b=_0x1ca0e5[_0x50f30a(0x113)](/#\{[^}]*\}/g,'?')[_0x50f30a(0x113)](/\$\{[^}]*\}/g,'?')[_0x50f30a(0x113)](/@[^(\s]+(\([^)]*\))?/g,'')['replace'](/\/\*[\s\S]*?\*\//g,'')[_0x50f30a(0x127)](),_0x266b8c=_0xe1e04b[_0x50f30a(0x120)]('\x0a');let _0x307c88='';for(const _0x3e0e21 of _0x266b8c){const _0xad8eb5=_0x3e0e21['trim']();if(!_0xad8eb5||_0xad8eb5[_0x50f30a(0x114)]('--')||_0xad8eb5[_0x50f30a(0x114)]('/*'))continue;_0x307c88=_0xad8eb5;break;}const _0x3ef64d=_0x307c88[_0x50f30a(0x119)]();if(_0x3ef64d[_0x50f30a(0x114)]('SELECT')||_0x3ef64d['startsWith'](_0x50f30a(0x118))){const _0x16d412=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x50f30a(0x107)](_0xe1e04b);return{'type':_0x50f30a(0x10e),'isSelectOnly':!_0x16d412,'isDangerous':_0x16d412,'reason':_0x16d412?_0x50f30a(0x11f):undefined};}if(_0x3ef64d[_0x50f30a(0x114)](_0x50f30a(0x105)))return{'type':_0x50f30a(0x105),'isSelectOnly':![],'isDangerous':![]};if(_0x3ef64d[_0x50f30a(0x114)](_0x50f30a(0x10b)))return{'type':_0x50f30a(0x10b),'isSelectOnly':![],'isDangerous':![]};if(_0x3ef64d[_0x50f30a(0x114)](_0x50f30a(0x110)))return{'type':_0x50f30a(0x110),'isSelectOnly':![],'isDangerous':!![],'reason':_0x50f30a(0x11c)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x50f30a(0x107)](_0x3ef64d))return{'type':_0x50f30a(0x102),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x50f30a(0x11b),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x52e1f0){const _0x286ffd=a216_0x2598,_0x34172b=_0x52e1f0['replace'](/#\{[^}]*\}/g,'?')[_0x286ffd(0x113)](/\$\{[^}]*\}/g,'?')[_0x286ffd(0x113)](/'[^']*'/g,'\x27\x27')[_0x286ffd(0x113)](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x47a76c=[],_0x4baaff=_0x34172b[_0x286ffd(0x115)](/FROM\s+([^\s,)(]+)/i);if(_0x4baaff?.[0x1])_0x47a76c[_0x286ffd(0x12a)](_0x4baaff[0x1]['replace'](/[`"]/g,''));for(const _0x338f92 of _0x34172b['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x4f732e=_0x338f92[0x1]?.[_0x286ffd(0x113)](/[`"]/g,'');if(_0x4f732e&&!_0x47a76c[_0x286ffd(0x10a)](_0x4f732e))_0x47a76c[_0x286ffd(0x12a)](_0x4f732e);}const _0x56e4e5=_0x34172b[_0x286ffd(0x115)](/INTO\s+([^\s(]+)/i);if(_0x56e4e5?.[0x1]){const _0x569213=_0x56e4e5[0x1]['replace'](/[`"]/g,'');if(!_0x47a76c[_0x286ffd(0x10a)](_0x569213))_0x47a76c[_0x286ffd(0x12a)](_0x569213);}const _0x2872df=_0x34172b[_0x286ffd(0x115)](/UPDATE\s+([^\s,)(]+)/i);if(_0x2872df?.[0x1]){const _0x323e34=_0x2872df[0x1]['replace'](/[`"]/g,'');if(!_0x47a76c[_0x286ffd(0x10a)](_0x323e34))_0x47a76c[_0x286ffd(0x12a)](_0x323e34);}return _0x47a76c;}function extractParameters(_0xc963e2){const _0xc76b7b=a216_0x2598,_0x441ef9=new Set();for(const _0x52f459 of _0xc963e2['matchAll'](/#\{(\w+)\}/g))if(_0x52f459[0x1])_0x441ef9[_0xc76b7b(0x112)](_0x52f459[0x1]);for(const _0x363121 of _0xc963e2['matchAll'](/\$\{(\w+)\}/g))if(_0x363121[0x1])_0x441ef9[_0xc76b7b(0x112)](_0x363121[0x1]);return Array[_0xc76b7b(0x109)](_0x441ef9);}function a216_0x3c81(){const _0x1a6394=['1019478eGCLPz','DELETE','5456016bGErzw','add','replace','startsWith','match','SQL\x20content\x20is\x20empty','type','WITH','toUpperCase','unknown\x20table(s)','UNKNOWN','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','\x20query\x20targeting\x20','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','split','121txvAxZ','4152288glNikL','2DCVaKc','605110WOWxFk','1273829Carmwq','16pVUNUb','trim','join','isDangerous','push','DDL','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','4409109vLgeny','INSERT','length','test','\x20with\x20parameters:\x20','from','includes','UPDATE','63SeigsW','676840RnhqpZ','SELECT'];a216_0x3c81=function(){return _0x1a6394;};return a216_0x3c81();}export function validateSql(_0x4a7aed){const _0x275e8e=a216_0x2598,_0xe621c9=detectSqlType(_0x4a7aed),_0x5d7fe9=extractTables(_0x4a7aed),_0xc8a2d1=extractParameters(_0x4a7aed);if(_0xe621c9[_0x275e8e(0x129)])return{'valid':![],'sqlType':_0xe621c9,'tables':_0x5d7fe9,'parameters':_0xc8a2d1,'message':_0xe621c9['reason']||_0xe621c9['type']+_0x275e8e(0x103)};if(_0xe621c9[_0x275e8e(0x117)]===_0x275e8e(0x11b))return{'valid':![],'sqlType':_0xe621c9,'tables':_0x5d7fe9,'parameters':_0xc8a2d1,'message':_0x275e8e(0x11e)};return{'valid':!![],'sqlType':_0xe621c9,'tables':_0x5d7fe9,'parameters':_0xc8a2d1,'message':_0xe621c9[_0x275e8e(0x117)]+_0x275e8e(0x11d)+(_0x5d7fe9['length']?_0x5d7fe9[_0x275e8e(0x128)](',\x20'):_0x275e8e(0x11a))+(_0xc8a2d1[_0x275e8e(0x106)]?_0x275e8e(0x108)+_0xc8a2d1['join'](',\x20'):'')};}
1
+ (function(_0x3288c3,_0x27810e){const _0x39e538=a216_0x1ac7,_0x46697f=_0x3288c3();while(!![]){try{const _0x33eed1=parseInt(_0x39e538(0x91))/0x1+-parseInt(_0x39e538(0x93))/0x2*(-parseInt(_0x39e538(0x8b))/0x3)+parseInt(_0x39e538(0xa0))/0x4+parseInt(_0x39e538(0x86))/0x5*(parseInt(_0x39e538(0x9e))/0x6)+parseInt(_0x39e538(0x7d))/0x7+parseInt(_0x39e538(0x7b))/0x8+-parseInt(_0x39e538(0x7c))/0x9;if(_0x33eed1===_0x27810e)break;else _0x46697f['push'](_0x46697f['shift']());}catch(_0x42c70d){_0x46697f['push'](_0x46697f['shift']());}}}(a216_0x25c7,0x1e871));export function detectSqlType(_0x22db10){const _0x225a57=a216_0x1ac7;if(!_0x22db10?.[_0x225a57(0x92)]())return{'type':_0x225a57(0x9a),'isSelectOnly':![],'isDangerous':![],'reason':'SQL\x20content\x20is\x20empty'};const _0x286c38=_0x22db10[_0x225a57(0x7e)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')['replace'](/@[^(\s]+(\([^)]*\))?/g,'')[_0x225a57(0x7e)](/\/\*[\s\S]*?\*\//g,'')[_0x225a57(0x92)](),_0x5f3cf8=_0x286c38[_0x225a57(0x8a)]('\x0a');let _0x12f53e='';for(const _0x14143f of _0x5f3cf8){const _0x446d1b=_0x14143f[_0x225a57(0x92)]();if(!_0x446d1b||_0x446d1b[_0x225a57(0x90)]('--')||_0x446d1b['startsWith']('/*'))continue;_0x12f53e=_0x446d1b;break;}const _0x181a21=_0x12f53e[_0x225a57(0x94)]();if(_0x181a21[_0x225a57(0x90)](_0x225a57(0x85))||_0x181a21[_0x225a57(0x90)](_0x225a57(0x9f))){const _0x5619ff=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x225a57(0x97)](_0x286c38);return{'type':_0x225a57(0x85),'isSelectOnly':!_0x5619ff,'isDangerous':_0x5619ff,'reason':_0x5619ff?_0x225a57(0x95):undefined};}if(_0x181a21[_0x225a57(0x90)](_0x225a57(0x9c)))return{'type':_0x225a57(0x9c),'isSelectOnly':![],'isDangerous':![]};if(_0x181a21['startsWith'](_0x225a57(0x81)))return{'type':'UPDATE','isSelectOnly':![],'isDangerous':![]};if(_0x181a21[_0x225a57(0x90)](_0x225a57(0x7f)))return{'type':'DELETE','isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x181a21))return{'type':_0x225a57(0xa1),'isSelectOnly':![],'isDangerous':!![],'reason':_0x225a57(0x88)};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x5b5432){const _0x249253=a216_0x1ac7,_0x2af5ae=_0x5b5432[_0x249253(0x7e)](/#\{[^}]*\}/g,'?')[_0x249253(0x7e)](/\$\{[^}]*\}/g,'?')[_0x249253(0x7e)](/'[^']*'/g,'\x27\x27')[_0x249253(0x7e)](/--.*$/gm,'')[_0x249253(0x7e)](/\/\*[\s\S]*?\*\//g,''),_0x21bc21=[],_0x60be21=_0x2af5ae[_0x249253(0x84)](/FROM\s+([^\s,)(]+)/i);if(_0x60be21?.[0x1])_0x21bc21['push'](_0x60be21[0x1][_0x249253(0x7e)](/[`"]/g,''));for(const _0x4d17ff of _0x2af5ae[_0x249253(0x99)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x9bb575=_0x4d17ff[0x1]?.[_0x249253(0x7e)](/[`"]/g,'');if(_0x9bb575&&!_0x21bc21[_0x249253(0x82)](_0x9bb575))_0x21bc21[_0x249253(0x96)](_0x9bb575);}const _0x33a1a5=_0x2af5ae[_0x249253(0x84)](/INTO\s+([^\s(]+)/i);if(_0x33a1a5?.[0x1]){const _0x4d934d=_0x33a1a5[0x1][_0x249253(0x7e)](/[`"]/g,'');if(!_0x21bc21['includes'](_0x4d934d))_0x21bc21[_0x249253(0x96)](_0x4d934d);}const _0x130a50=_0x2af5ae[_0x249253(0x84)](/UPDATE\s+([^\s,)(]+)/i);if(_0x130a50?.[0x1]){const _0x4a07b0=_0x130a50[0x1][_0x249253(0x7e)](/[`"]/g,'');if(!_0x21bc21['includes'](_0x4a07b0))_0x21bc21[_0x249253(0x96)](_0x4a07b0);}return _0x21bc21;}function a216_0x25c7(){const _0x5c92da=['split','60WqDdLR','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','isDangerous','\x20with\x20parameters:\x20','from','startsWith','246806erfttF','trim','10030OZtufp','toUpperCase','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','push','test','reason','matchAll','UNKNOWN','join','INSERT','add','2082BLMwUp','WITH','250532HCbXCB','DDL','779224jNfmnI','6998850PQIrAo','1362452UXOtgN','replace','DELETE','unknown\x20table(s)','UPDATE','includes','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','match','SELECT','2895wMSvHp','length','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','type'];a216_0x25c7=function(){return _0x5c92da;};return a216_0x25c7();}function extractParameters(_0x479cc0){const _0x1be1be=a216_0x1ac7,_0x2d7690=new Set();for(const _0x423184 of _0x479cc0[_0x1be1be(0x99)](/#\{(\w+)\}/g))if(_0x423184[0x1])_0x2d7690[_0x1be1be(0x9d)](_0x423184[0x1]);for(const _0x1046d0 of _0x479cc0[_0x1be1be(0x99)](/\$\{(\w+)\}/g))if(_0x1046d0[0x1])_0x2d7690[_0x1be1be(0x9d)](_0x1046d0[0x1]);return Array[_0x1be1be(0x8f)](_0x2d7690);}function a216_0x1ac7(_0xacd131,_0x1af998){_0xacd131=_0xacd131-0x7b;const _0x25c7a1=a216_0x25c7();let _0x1ac765=_0x25c7a1[_0xacd131];return _0x1ac765;}export function validateSql(_0x1c6d93){const _0x484390=a216_0x1ac7,_0x59142d=detectSqlType(_0x1c6d93),_0x2cbd59=extractTables(_0x1c6d93),_0x100c4c=extractParameters(_0x1c6d93);if(_0x59142d[_0x484390(0x8d)])return{'valid':![],'sqlType':_0x59142d,'tables':_0x2cbd59,'parameters':_0x100c4c,'message':_0x59142d[_0x484390(0x98)]||_0x59142d[_0x484390(0x89)]+_0x484390(0x8c)};if(_0x59142d['type']===_0x484390(0x9a))return{'valid':![],'sqlType':_0x59142d,'tables':_0x2cbd59,'parameters':_0x100c4c,'message':_0x484390(0x83)};return{'valid':!![],'sqlType':_0x59142d,'tables':_0x2cbd59,'parameters':_0x100c4c,'message':_0x59142d[_0x484390(0x89)]+'\x20query\x20targeting\x20'+(_0x2cbd59[_0x484390(0x87)]?_0x2cbd59[_0x484390(0x9b)](',\x20'):_0x484390(0x80))+(_0x100c4c[_0x484390(0x87)]?_0x484390(0x8e)+_0x100c4c[_0x484390(0x9b)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a217_0x3c99b9=a217_0x5494;(function(_0x215e34,_0x57ffcb){const _0x5d28bc=a217_0x5494,_0x496d27=_0x215e34();while(!![]){try{const _0xd126d4=parseInt(_0x5d28bc(0xbc))/0x1*(-parseInt(_0x5d28bc(0xc0))/0x2)+parseInt(_0x5d28bc(0xc9))/0x3+-parseInt(_0x5d28bc(0xbe))/0x4+parseInt(_0x5d28bc(0xc5))/0x5*(-parseInt(_0x5d28bc(0xc3))/0x6)+-parseInt(_0x5d28bc(0xc6))/0x7+-parseInt(_0x5d28bc(0xca))/0x8+-parseInt(_0x5d28bc(0xc8))/0x9*(-parseInt(_0x5d28bc(0xc2))/0xa);if(_0xd126d4===_0x57ffcb)break;else _0x496d27['push'](_0x496d27['shift']());}catch(_0x1c451a){_0x496d27['push'](_0x496d27['shift']());}}}(a217_0x1640,0x507ba));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a217_0x5494(_0x244b6a,_0x508726){_0x244b6a=_0x244b6a-0xbc;const _0x164000=a217_0x1640();let _0x5494c6=_0x164000[_0x244b6a];return _0x5494c6;}import{CLI_BIN_NAME}from'./constant/cli.js';function a217_0x1640(){const _0x1a452a=['3620kQHPYY','981672ykWcTv','\x20auth`\x20to\x20login\x20first.','15UFEcge','2369213defCVq','Run\x20`','37512vZnrtI','1590411gaBoyx','1675840nrSMcj','Set\x20appcode\x20via\x20`','44374jOQdco','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','1972096kSmlUB','\x0a\x20\x20\x20\x20\x20\x20\x20','8TiEDcz','Tip:\x20`'];a217_0x1640=function(){return _0x1a452a;};return a217_0x1640();}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a217_0x3c99b9(0xc7)+CLI_BIN_NAME+a217_0x3c99b9(0xc4),'configMissingHint':[a217_0x3c99b9(0xcb)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.',a217_0x3c99b9(0xc1)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.']['join'](a217_0x3c99b9(0xbf)),'notInProjectHint':a217_0x3c99b9(0xbd)});
1
+ const a217_0x1b6616=a217_0x4d9f;(function(_0x4330bc,_0x54086c){const _0x3fb93e=a217_0x4d9f,_0x388fd3=_0x4330bc();while(!![]){try{const _0x2596ce=-parseInt(_0x3fb93e(0xd5))/0x1*(-parseInt(_0x3fb93e(0xe0))/0x2)+parseInt(_0x3fb93e(0xdf))/0x3*(parseInt(_0x3fb93e(0xdb))/0x4)+parseInt(_0x3fb93e(0xd8))/0x5+-parseInt(_0x3fb93e(0xd2))/0x6+-parseInt(_0x3fb93e(0xde))/0x7*(parseInt(_0x3fb93e(0xdc))/0x8)+parseInt(_0x3fb93e(0xe1))/0x9*(parseInt(_0x3fb93e(0xd7))/0xa)+-parseInt(_0x3fb93e(0xd4))/0xb;if(_0x2596ce===_0x54086c)break;else _0x388fd3['push'](_0x388fd3['shift']());}catch(_0x17e8e2){_0x388fd3['push'](_0x388fd3['shift']());}}}(a217_0x4802,0xb8bbd));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a217_0x4802(){const _0x676a08=['5387092hCAihp','8120248wwfGxD','join','7enUxei','3RaCQIX','2ZloWco','1458HwOJaK','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','4613202tvlCfm','\x0a\x20\x20\x20\x20\x20\x20\x20','9130495YSspzv','367167XJSuBB','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','76060ToTiMM','2122500UAarIN','\x20auth`\x20to\x20login\x20first.','Run\x20`'];a217_0x4802=function(){return _0x676a08;};return a217_0x4802();}function a217_0x4d9f(_0x32b7b0,_0x747e4a){_0x32b7b0=_0x32b7b0-0xd0;const _0x4802ba=a217_0x4802();let _0x4d9f6d=_0x4802ba[_0x32b7b0];return _0x4d9f6d;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a217_0x1b6616(0xda)+CLI_BIN_NAME+a217_0x1b6616(0xd9),'configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a217_0x1b6616(0xd1),'Tip:\x20`'+CLI_BIN_NAME+a217_0x1b6616(0xd0)][a217_0x1b6616(0xdd)](a217_0x1b6616(0xd3)),'notInProjectHint':a217_0x1b6616(0xd6)});
@@ -1 +1 @@
1
- (function(_0x373fd5,_0x2bde8c){const _0x18f3b2=a218_0xb336,_0x28145b=_0x373fd5();while(!![]){try{const _0x347c1f=-parseInt(_0x18f3b2(0xf4))/0x1*(-parseInt(_0x18f3b2(0xf3))/0x2)+-parseInt(_0x18f3b2(0xf9))/0x3*(-parseInt(_0x18f3b2(0xf2))/0x4)+parseInt(_0x18f3b2(0xf6))/0x5*(parseInt(_0x18f3b2(0xf5))/0x6)+-parseInt(_0x18f3b2(0xf7))/0x7*(-parseInt(_0x18f3b2(0xf8))/0x8)+parseInt(_0x18f3b2(0xf0))/0x9+parseInt(_0x18f3b2(0xf1))/0xa+-parseInt(_0x18f3b2(0xfc))/0xb;if(_0x347c1f===_0x2bde8c)break;else _0x28145b['push'](_0x28145b['shift']());}catch(_0xd77b31){_0x28145b['push'](_0x28145b['shift']());}}}(a218_0x2619,0xc5b7d));function a218_0xb336(_0x294f24,_0x325dbd){_0x294f24=_0x294f24-0xf0;const _0x261991=a218_0x2619();let _0xb33696=_0x261991[_0x294f24];return _0xb33696;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a218_0xf7d77a}from'@lovrabet/cli-framework';import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';export function buildAllFlags(_0xb9e82a){const _0x3a194=a218_0xb336,_0x85cd7b=a218_0xf7d77a(_0xb9e82a,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0xb9e82a))return _0x85cd7b;return _0x85cd7b[_0x3a194(0xfb)](_0x565fba=>_0x565fba['name']===_0x3a194(0xfa)?{..._0x565fba,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x565fba);}function a218_0x2619(){const _0x35a05f=['2116BddhqR','324SZUAUW','129795WqqqIu','84imCwCz','556504zaDkCs','183BsJYvu','yes','map','44521455GQdtKt','13537368lhTsQi','3444370pxqvkY','49660FpQlnq','14TfFqup'];a218_0x2619=function(){return _0x35a05f;};return a218_0x2619();}
1
+ function a218_0x5b1b(){const _0x56bd9a=['24377350UnYrRC','7uYYktw','1097808sVGDWU','map','69XKGLDZ','4040052MBvNVO','68eAHqKY','35838jMdlXL','200170UICEFA','196336sWbZPy','9273123cHvaCF'];a218_0x5b1b=function(){return _0x56bd9a;};return a218_0x5b1b();}(function(_0x11e4c6,_0x12b72f){const _0x3ac8bd=a218_0x405c,_0x5bb5af=_0x11e4c6();while(!![]){try{const _0x170a75=-parseInt(_0x3ac8bd(0xd9))/0x1+parseInt(_0x3ac8bd(0xde))/0x2*(-parseInt(_0x3ac8bd(0xdb))/0x3)+parseInt(_0x3ac8bd(0xdd))/0x4*(-parseInt(_0x3ac8bd(0xd4))/0x5)+-parseInt(_0x3ac8bd(0xdc))/0x6+parseInt(_0x3ac8bd(0xd8))/0x7*(-parseInt(_0x3ac8bd(0xd5))/0x8)+parseInt(_0x3ac8bd(0xd6))/0x9+parseInt(_0x3ac8bd(0xd7))/0xa;if(_0x170a75===_0x12b72f)break;else _0x5bb5af['push'](_0x5bb5af['shift']());}catch(_0xc65e4a){_0x5bb5af['push'](_0x5bb5af['shift']());}}}(a218_0x5b1b,0x8d85b));function a218_0x405c(_0x1d8467,_0x2751b9){_0x1d8467=_0x1d8467-0xd4;const _0x5b1b71=a218_0x5b1b();let _0x405c3b=_0x5b1b71[_0x1d8467];return _0x405c3b;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a218_0x328e9d}from'@lovrabet/cli-framework';import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';export function buildAllFlags(_0xa2d25a){const _0x33bf18=a218_0x405c,_0x5ea0e1=a218_0x328e9d(_0xa2d25a,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0xa2d25a))return _0x5ea0e1;return _0x5ea0e1[_0x33bf18(0xda)](_0x386479=>_0x386479['name']==='yes'?{..._0x386479,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x386479);}
@@ -1 +1 @@
1
- (function(_0x4cd944,_0x42dc46){var _0x1a1e88=a219_0xfbfb,_0x18c268=_0x4cd944();while(!![]){try{var _0x26247f=parseInt(_0x1a1e88(0xf5))/0x1+-parseInt(_0x1a1e88(0xf4))/0x2+parseInt(_0x1a1e88(0xee))/0x3+parseInt(_0x1a1e88(0xf0))/0x4+-parseInt(_0x1a1e88(0xf8))/0x5*(parseInt(_0x1a1e88(0xf3))/0x6)+parseInt(_0x1a1e88(0xf7))/0x7*(parseInt(_0x1a1e88(0xec))/0x8)+parseInt(_0x1a1e88(0xf2))/0x9*(parseInt(_0x1a1e88(0xef))/0xa);if(_0x26247f===_0x42dc46)break;else _0x18c268['push'](_0x18c268['shift']());}catch(_0x3dce9f){_0x18c268['push'](_0x18c268['shift']());}}}(a219_0x5e3a,0x4d7e5));import{resolveOutputConfig}from'@lovrabet/cli-framework';function a219_0xfbfb(_0x54b4c6,_0x887ecb){_0x54b4c6=_0x54b4c6-0xec;var _0x5e3ac2=a219_0x5e3a();var _0xfbfb23=_0x5e3ac2[_0x54b4c6];return _0xfbfb23;}export function usesStructuredErrorOutput(_0xbb8ccd){return _0xbb8ccd?.['structuredErrors']===!![];}function a219_0x5e3a(){var _0x3089ba=['84008yBJPXK','flags','7gBFZeB','5uSyajU','310136jCPiBk','defaultFormat','105927biXzBw','5069110mQXPbu','1083676ThLOaD','def','9BoAFMR','435174kDazEh','1091944CCtdLI'];a219_0x5e3a=function(){return _0x3089ba;};return a219_0x5e3a();}export function resolveErrorOutputFormat(_0x3e8973){var _0x189f85=a219_0xfbfb;if(!_0x3e8973[_0x189f85(0xf1)])return _0x3e8973[_0x189f85(0xed)]??'compress';return resolveOutputConfig({'flags':_0x3e8973[_0x189f85(0xf6)]??{},'def':_0x3e8973[_0x189f85(0xf1)],'configDefault':_0x3e8973[_0x189f85(0xed)]})['format'];}
1
+ function a219_0x5244(_0x2b7252,_0x5e1be7){_0x2b7252=_0x2b7252-0x134;var _0x140749=a219_0x1407();var _0x524433=_0x140749[_0x2b7252];return _0x524433;}function a219_0x1407(){var _0x47ddf4=['15685roAlby','defaultFormat','590533ZzSsnb','20aXvdai','999333bMFVMe','19204oTdpwy','5111832imJqGS','format','133sECSCX','def','291FrcpYe','372GEoCEA','455160UQFfYl','compress','1612655gIutoH'];a219_0x1407=function(){return _0x47ddf4;};return a219_0x1407();}(function(_0x147c7c,_0x381c69){var _0x2595cb=a219_0x5244,_0x18321c=_0x147c7c();while(!![]){try{var _0x27f886=parseInt(_0x2595cb(0x13e))/0x1+-parseInt(_0x2595cb(0x141))/0x2*(parseInt(_0x2595cb(0x137))/0x3)+-parseInt(_0x2595cb(0x138))/0x4*(parseInt(_0x2595cb(0x13c))/0x5)+parseInt(_0x2595cb(0x142))/0x6+parseInt(_0x2595cb(0x135))/0x7*(parseInt(_0x2595cb(0x139))/0x8)+-parseInt(_0x2595cb(0x140))/0x9+parseInt(_0x2595cb(0x13f))/0xa*(-parseInt(_0x2595cb(0x13b))/0xb);if(_0x27f886===_0x381c69)break;else _0x18321c['push'](_0x18321c['shift']());}catch(_0x5c45a1){_0x18321c['push'](_0x18321c['shift']());}}}(a219_0x1407,0xdac80));import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x59b731){return _0x59b731?.['structuredErrors']===!![];}export function resolveErrorOutputFormat(_0x151741){var _0x19f10b=a219_0x5244;if(!_0x151741[_0x19f10b(0x136)])return _0x151741[_0x19f10b(0x13d)]??_0x19f10b(0x13a);return resolveOutputConfig({'flags':_0x151741['flags']??{},'def':_0x151741[_0x19f10b(0x136)],'configDefault':_0x151741[_0x19f10b(0x13d)]})[_0x19f10b(0x134)];}
@@ -1 +1 @@
1
- const a220_0x4e8174=a220_0x492a;function a220_0x19b7(){const _0x214bc6=['8lnxaLr','has','6366906rLsyZf','379468xSsaKH','menu\x20delete','264501ejrefq','117152zMYTcP','856512aFFgKZ','102iXqRLY','command','989664uOqjvG','menu\x20move','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan','menu\x20group-create','menu\x20regroup-start','40045ItjaRk'];a220_0x19b7=function(){return _0x214bc6;};return a220_0x19b7();}(function(_0x48df3f,_0x32ae4f){const _0x110287=a220_0x492a,_0x23d048=_0x48df3f();while(!![]){try{const _0x440e7e=-parseInt(_0x110287(0x1ab))/0x1+-parseInt(_0x110287(0x1b2))/0x2+parseInt(_0x110287(0x1ad))/0x3+parseInt(_0x110287(0x1af))/0x4+parseInt(_0x110287(0x1b7))/0x5*(parseInt(_0x110287(0x1b0))/0x6)+parseInt(_0x110287(0x1ae))/0x7*(-parseInt(_0x110287(0x1b8))/0x8)+parseInt(_0x110287(0x1aa))/0x9;if(_0x440e7e===_0x32ae4f)break;else _0x23d048['push'](_0x23d048['shift']());}catch(_0x1a5f03){_0x23d048['push'](_0x23d048['shift']());}}}(a220_0x19b7,0x3e37e));const EXPLICIT_YES_COMMANDS=new Set(['menu\x20external-link-create',a220_0x4e8174(0x1ac),a220_0x4e8174(0x1b5),'menu\x20group-update',a220_0x4e8174(0x1b3),a220_0x4e8174(0x1b6)]);function a220_0x492a(_0x3567cf,_0x2a8d43){_0x3567cf=_0x3567cf-0x1aa;const _0x19b724=a220_0x19b7();let _0x492a8a=_0x19b724[_0x3567cf];return _0x492a8a;}export const EXPLICIT_YES_FLAG_DESCRIPTION=a220_0x4e8174(0x1b4);export function requiresExplicitYes(_0x3fe143){const _0x263671=a220_0x4e8174;return EXPLICIT_YES_COMMANDS[_0x263671(0x1b9)](_0x3fe143['service']+'\x20'+_0x3fe143[_0x263671(0x1b1)]);}
1
+ function a220_0x163f(){const _0x25bee9=['service','154505YUWgYg','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan','command','menu\x20group-create','2686712PNHJoW','menu\x20delete','2687013FjKjLn','menu\x20move','27289206XXqnwf','12841XNbwjE','7414544UKUxvc','menu\x20regroup-start','3981759WQkyRm','76maQeeU','228LzFJzh','menu\x20group-update'];a220_0x163f=function(){return _0x25bee9;};return a220_0x163f();}const a220_0x6b16f1=a220_0x3e9b;(function(_0x304bbb,_0xce8161){const _0x4cd4c3=a220_0x3e9b,_0x4b2848=_0x304bbb();while(!![]){try{const _0x45e785=-parseInt(_0x4cd4c3(0x162))/0x1*(parseInt(_0x4cd4c3(0x166))/0x2)+-parseInt(_0x4cd4c3(0x165))/0x3+-parseInt(_0x4cd4c3(0x16e))/0x4+parseInt(_0x4cd4c3(0x16a))/0x5*(-parseInt(_0x4cd4c3(0x167))/0x6)+parseInt(_0x4cd4c3(0x15f))/0x7+parseInt(_0x4cd4c3(0x163))/0x8+parseInt(_0x4cd4c3(0x161))/0x9;if(_0x45e785===_0xce8161)break;else _0x4b2848['push'](_0x4b2848['shift']());}catch(_0x557347){_0x4b2848['push'](_0x4b2848['shift']());}}}(a220_0x163f,0xa66d4));function a220_0x3e9b(_0x4ddde5,_0x381d18){_0x4ddde5=_0x4ddde5-0x15e;const _0x163f75=a220_0x163f();let _0x3e9bb0=_0x163f75[_0x4ddde5];return _0x3e9bb0;}const EXPLICIT_YES_COMMANDS=new Set(['menu\x20external-link-create',a220_0x6b16f1(0x15e),a220_0x6b16f1(0x16d),a220_0x6b16f1(0x168),a220_0x6b16f1(0x160),a220_0x6b16f1(0x164)]);export const EXPLICIT_YES_FLAG_DESCRIPTION=a220_0x6b16f1(0x16b);export function requiresExplicitYes(_0xde42b4){const _0x35c26c=a220_0x6b16f1;return EXPLICIT_YES_COMMANDS['has'](_0xde42b4[_0x35c26c(0x169)]+'\x20'+_0xde42b4[_0x35c26c(0x16c)]);}
@@ -1 +1 @@
1
- function a221_0x193d(){const _0x2f7196=['validateFlags','14VEeaEy','13050135KPeOEL','parseFlags','6134704YwJeKR','60eRNmAR','343LdQHYw','1674453wULioy','55888LYHEFG','42163accMRG','301764TUDPhR','1600QhKmcY','9810YbHAqP'];a221_0x193d=function(){return _0x2f7196;};return a221_0x193d();}const a221_0x3a4fd3=a221_0x1bb0;function a221_0x1bb0(_0x35c239,_0xd5df50){_0x35c239=_0x35c239-0x1cd;const _0x193dc3=a221_0x193d();let _0x1bb07f=_0x193dc3[_0x35c239];return _0x1bb07f;}(function(_0x3c2b82,_0x4b5f56){const _0x4c1d74=a221_0x1bb0,_0x584248=_0x3c2b82();while(!![]){try{const _0x4e2f16=parseInt(_0x4c1d74(0x1d3))/0x1*(parseInt(_0x4c1d74(0x1d9))/0x2)+parseInt(_0x4c1d74(0x1d2))/0x3+parseInt(_0x4c1d74(0x1cf))/0x4+parseInt(_0x4c1d74(0x1d0))/0x5*(parseInt(_0x4c1d74(0x1d5))/0x6)+parseInt(_0x4c1d74(0x1d1))/0x7*(parseInt(_0x4c1d74(0x1d6))/0x8)+parseInt(_0x4c1d74(0x1cd))/0x9+-parseInt(_0x4c1d74(0x1d7))/0xa*(parseInt(_0x4c1d74(0x1d4))/0xb);if(_0x4e2f16===_0x4b5f56)break;else _0x584248['push'](_0x584248['shift']());}catch(_0x19c510){_0x584248['push'](_0x584248['shift']());}}}(a221_0x193d,0xbff25));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a221_0x3a4fd3(0x1ce)];export const validateFlags=helpers[a221_0x3a4fd3(0x1d8)];
1
+ const a221_0x7ccb3e=a221_0x4d61;(function(_0xb0d16f,_0x32fb50){const _0x410330=a221_0x4d61,_0x4c6c6f=_0xb0d16f();while(!![]){try{const _0xe70e64=-parseInt(_0x410330(0xe5))/0x1*(-parseInt(_0x410330(0xe6))/0x2)+-parseInt(_0x410330(0xe7))/0x3+parseInt(_0x410330(0xdf))/0x4+-parseInt(_0x410330(0xe4))/0x5+-parseInt(_0x410330(0xde))/0x6+parseInt(_0x410330(0xe0))/0x7+-parseInt(_0x410330(0xe1))/0x8*(-parseInt(_0x410330(0xe3))/0x9);if(_0xe70e64===_0x32fb50)break;else _0x4c6c6f['push'](_0x4c6c6f['shift']());}catch(_0x1598ef){_0x4c6c6f['push'](_0x4c6c6f['shift']());}}}(a221_0x1d8d,0xe3a02));function a221_0x1d8d(){const _0xf36796=['3022446qKgKfw','1166628kdnvnY','7329791YlmmDB','270640CjUTlX','parseFlags','342FGrJCH','5699980WihYfP','10SnIObq','195160JrKvtK','3072057AiVLmU'];a221_0x1d8d=function(){return _0xf36796;};return a221_0x1d8d();}function a221_0x4d61(_0x3bcf37,_0x17a3b3){_0x3bcf37=_0x3bcf37-0xde;const _0x1d8d38=a221_0x1d8d();let _0x4d612b=_0x1d8d38[_0x3bcf37];return _0x4d612b;}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a221_0x7ccb3e(0xe2)];export const validateFlags=helpers['validateFlags'];
@@ -1 +1 @@
1
- const a222_0x2c862c=a222_0x3e82;(function(_0x3495d3,_0x4be2ba){const _0x5bf135=a222_0x3e82,_0x3fa95b=_0x3495d3();while(!![]){try{const _0x4cac1e=parseInt(_0x5bf135(0x182))/0x1+-parseInt(_0x5bf135(0x172))/0x2+parseInt(_0x5bf135(0x177))/0x3*(parseInt(_0x5bf135(0x180))/0x4)+parseInt(_0x5bf135(0x179))/0x5+-parseInt(_0x5bf135(0x17f))/0x6+-parseInt(_0x5bf135(0x173))/0x7*(parseInt(_0x5bf135(0x175))/0x8)+parseInt(_0x5bf135(0x176))/0x9*(parseInt(_0x5bf135(0x17b))/0xa);if(_0x4cac1e===_0x4be2ba)break;else _0x3fa95b['push'](_0x3fa95b['shift']());}catch(_0xfaa7fe){_0x3fa95b['push'](_0x3fa95b['shift']());}}}(a222_0x44d3,0x5ecb2));function a222_0x44d3(){const _0x50a873=['1411328avNMot','204694gYRKRg','\x20workspace\x20init`\x20or\x20--appcode).','72pLjXbO','483345YlURpF','1592913KMOaew','generateServiceHelp','147270Mjkmdc','generateFullHelp','180DlqWPa','Requires\x20appcode\x20(set\x20via\x20`','\x20[args]\x20[flags]','generateCommandHelp','1366962VfrZMt','4QClEpO','replace','57828kqbbkp','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.'];a222_0x44d3=function(){return _0x50a873;};return a222_0x44d3();}import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a222_0x3e82(_0x681af4,_0x16e100){_0x681af4=_0x681af4-0x172;const _0x44d3af=a222_0x44d3();let _0x3e82d0=_0x44d3af[_0x681af4];return _0x3e82d0;}import{requiresExplicitYes}from'../framework/explicit-yes.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0xf995e0=>serviceGroups['get'](_0xf995e0),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a222_0x2c862c(0x17c)+CLI_BIN_NAME+a222_0x2c862c(0x174),'serviceUsageSuffix':a222_0x2c862c(0x17d)});export function generateCommandHelp(_0xf63791){const _0xbd7122=a222_0x2c862c,_0xac69c5=generators[_0xbd7122(0x17e)](_0xf63791);if(!requiresExplicitYes(_0xf63791))return _0xac69c5;return _0xac69c5[_0xbd7122(0x181)](_0xbd7122(0x183),'Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.');}export const generateServiceHelp=generators[a222_0x2c862c(0x178)];export const generateFullHelp=generators[a222_0x2c862c(0x17a)];
1
+ const a222_0xa852e2=a222_0x74f2;(function(_0x3f0359,_0x2201a2){const _0x2ae105=a222_0x74f2,_0x45eac2=_0x3f0359();while(!![]){try{const _0x13a6b5=parseInt(_0x2ae105(0x15d))/0x1+-parseInt(_0x2ae105(0x15c))/0x2+parseInt(_0x2ae105(0x160))/0x3+parseInt(_0x2ae105(0x164))/0x4*(parseInt(_0x2ae105(0x15a))/0x5)+-parseInt(_0x2ae105(0x154))/0x6*(-parseInt(_0x2ae105(0x166))/0x7)+parseInt(_0x2ae105(0x15e))/0x8*(parseInt(_0x2ae105(0x161))/0x9)+-parseInt(_0x2ae105(0x163))/0xa;if(_0x13a6b5===_0x2201a2)break;else _0x45eac2['push'](_0x45eac2['shift']());}catch(_0x1cbdc1){_0x45eac2['push'](_0x45eac2['shift']());}}}(a222_0xdb4c,0x403a1));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a222_0xdb4c(){const _0x4674e9=['replace','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','175kLJNcA','generateCommandHelp','59888BxsaNd','229300qHJqLe','53656VaaQtS','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.','939450FRlgzy','504jqZfgh','generateServiceHelp','12783070SPGnBz','38912KbaIpP','\x20[args]\x20[flags]','14ohrvih','938406KwDuWA','generateFullHelp','get','\x20workspace\x20init`\x20or\x20--appcode).'];a222_0xdb4c=function(){return _0x4674e9;};return a222_0xdb4c();}import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{requiresExplicitYes}from'../framework/explicit-yes.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x258a7e=>serviceGroups[a222_0xa852e2(0x156)](_0x258a7e),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+a222_0xa852e2(0x157),'serviceUsageSuffix':a222_0xa852e2(0x165)});export function generateCommandHelp(_0x10460c){const _0x17944a=a222_0xa852e2,_0x1f1dfa=generators[_0x17944a(0x15b)](_0x10460c);if(!requiresExplicitYes(_0x10460c))return _0x1f1dfa;return _0x1f1dfa[_0x17944a(0x158)](_0x17944a(0x159),_0x17944a(0x15f));}export const generateServiceHelp=generators[a222_0xa852e2(0x162)];function a222_0x74f2(_0x2ae7e3,_0xe88088){_0x2ae7e3=_0x2ae7e3-0x154;const _0xdb4cc2=a222_0xdb4c();let _0x74f258=_0xdb4cc2[_0x2ae7e3];return _0x74f258;}export const generateFullHelp=generators[a222_0xa852e2(0x155)];
@@ -1 +1 @@
1
- (function(_0x2a8612,_0x366ebd){var _0x45e989=a223_0xdffa,_0x33160c=_0x2a8612();while(!![]){try{var _0x116fb7=parseInt(_0x45e989(0x142))/0x1+parseInt(_0x45e989(0x13e))/0x2*(parseInt(_0x45e989(0x13c))/0x3)+parseInt(_0x45e989(0x13b))/0x4*(parseInt(_0x45e989(0x140))/0x5)+-parseInt(_0x45e989(0x143))/0x6*(-parseInt(_0x45e989(0x13d))/0x7)+-parseInt(_0x45e989(0x144))/0x8+-parseInt(_0x45e989(0x145))/0x9*(parseInt(_0x45e989(0x141))/0xa)+-parseInt(_0x45e989(0x13f))/0xb;if(_0x116fb7===_0x366ebd)break;else _0x33160c['push'](_0x33160c['shift']());}catch(_0x1f5807){_0x33160c['push'](_0x33160c['shift']());}}}(a223_0x59c2,0xede7e));function a223_0x59c2(){var _0x300760=['15fHgXwV','947555PvXGhq','340556fPqmJN','9091511HlWzSo','6844235xHOkpc','112370OxvrPw','451498Xroqqi','66qCbqEK','14023912VvrfFO','486ERDYrc','4kesxwl'];a223_0x59c2=function(){return _0x300760;};return a223_0x59c2();}export{runCommand}from'../framework/runner.js';function a223_0xdffa(_0x28cbb2,_0x338508){_0x28cbb2=_0x28cbb2-0x13b;var _0x59c29f=a223_0x59c2();var _0xdffa47=_0x59c29f[_0x28cbb2];return _0xdffa47;}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
1
+ (function(_0x4d8c1a,_0x3dc6e2){var _0x5ee049=a223_0x1653,_0x327e2f=_0x4d8c1a();while(!![]){try{var _0x37a20c=-parseInt(_0x5ee049(0x13a))/0x1+-parseInt(_0x5ee049(0x13e))/0x2*(parseInt(_0x5ee049(0x13f))/0x3)+parseInt(_0x5ee049(0x139))/0x4*(-parseInt(_0x5ee049(0x13d))/0x5)+parseInt(_0x5ee049(0x137))/0x6+parseInt(_0x5ee049(0x138))/0x7+-parseInt(_0x5ee049(0x13c))/0x8+parseInt(_0x5ee049(0x13b))/0x9;if(_0x37a20c===_0x3dc6e2)break;else _0x327e2f['push'](_0x327e2f['shift']());}catch(_0x286084){_0x327e2f['push'](_0x327e2f['shift']());}}}(a223_0x319d,0x5253f));export{runCommand}from'../framework/runner.js';function a223_0x1653(_0x59f458,_0x45c29a){_0x59f458=_0x59f458-0x137;var _0x319ddc=a223_0x319d();var _0x1653cf=_0x319ddc[_0x59f458];return _0x1653cf;}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';function a223_0x319d(){var _0x14f916=['10053207atxFaO','2913168TZTMBj','91555RvdpIJ','188002zrZdCv','3MAIslI','24066hniBdr','2461711NCxMKM','60oTKLDP','402680OjpxOq'];a223_0x319d=function(){return _0x14f916;};return a223_0x319d();}export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- function a224_0x44cd(){const _0x417283=['4201713dhUFFc','trim','1713128SjsvFU','code','708MryXVs','43358byioDX','11JyQKxa','1816ODMfrM','command','3728175WhCYqB','pretty','validation','data','error','13902CTDAEX','_notice','message','jq:\x20','jqFilter','1662hbWjZZ','stringify','13401890GldYME','format','json','hint','update','19HzPiRP'];a224_0x44cd=function(){return _0x417283;};return a224_0x44cd();}(function(_0x5a767d,_0x25e0bf){const _0x23e185=a224_0x1d1a,_0x5c6677=_0x5a767d();while(!![]){try{const _0x1c8ca5=-parseInt(_0x23e185(0xe7))/0x1*(parseInt(_0x23e185(0xed))/0x2)+parseInt(_0x23e185(0xec))/0x3*(parseInt(_0x23e185(0xef))/0x4)+-parseInt(_0x23e185(0xf1))/0x5+parseInt(_0x23e185(0xfb))/0x6*(-parseInt(_0x23e185(0xf6))/0x7)+parseInt(_0x23e185(0xea))/0x8+parseInt(_0x23e185(0xe8))/0x9+-parseInt(_0x23e185(0xfd))/0xa*(-parseInt(_0x23e185(0xee))/0xb);if(_0x1c8ca5===_0x25e0bf)break;else _0x5c6677['push'](_0x5c6677['shift']());}catch(_0x67f5ac){_0x5c6677['push'](_0x5c6677['shift']());}}}(a224_0x44cd,0x66b41));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x5c3831,_0x5542c1){const _0x120ad7=a224_0x1d1a,_0x434e82=_0x5c3831[_0x120ad7(0xf7)],{_notice:_0x3be9db,..._0x2a9690}=_0x5c3831;void _0x3be9db,baseFormatOutput(_0x2a9690,_0x5542c1),_0x5542c1[_0x120ad7(0xfe)]===_0x120ad7(0xf2)&&printPrettyNotice(_0x434e82);}export function formatCliError(_0x405090,_0x19ad15){const _0x4e155c=a224_0x1d1a;if(_0x19ad15['format']===_0x4e155c(0xf2))return![];const _0x30d60f=_0x405090[_0x4e155c(0xf4)],_0x389cb9={'ok':![],'command':_0x19ad15[_0x4e155c(0xf0)],'risk':_0x19ad15['risk'],'data':_0x30d60f??null,'error':{'code':_0x405090['code'],'message':_0x405090[_0x4e155c(0xf8)],..._0x405090['hint']?{'hint':_0x405090[_0x4e155c(0xe5)]}:{}}},_0x36bff0=_0x19ad15[_0x4e155c(0xfe)]===_0x4e155c(0xe4)?JSON['stringify'](_0x389cb9,null,0x2):JSON[_0x4e155c(0xfc)](_0x389cb9);let _0x530b58=_0x36bff0;if(_0x19ad15[_0x4e155c(0xfa)]?.[_0x4e155c(0xe9)]())try{_0x530b58=applyJqFilter(_0x36bff0,_0x19ad15[_0x4e155c(0xfa)]);}catch(_0xfae15b){const _0x2abda6=_0xfae15b instanceof CliError?_0xfae15b:CliErrors[_0x4e155c(0xf3)](_0x4e155c(0xf9)+(_0xfae15b instanceof Error?_0xfae15b[_0x4e155c(0xf8)]:String(_0xfae15b))),_0xb9248c={..._0x389cb9,'error':{'code':_0x2abda6[_0x4e155c(0xeb)],'message':_0x2abda6['message'],..._0x2abda6['hint']?{'hint':_0x2abda6[_0x4e155c(0xe5)]}:{},'cause':_0x389cb9[_0x4e155c(0xf5)]}};_0x530b58=_0x19ad15[_0x4e155c(0xfe)]===_0x4e155c(0xe4)?JSON[_0x4e155c(0xfc)](_0xb9248c,null,0x2):JSON[_0x4e155c(0xfc)](_0xb9248c);}return process['stdout']['write'](_0x530b58['endsWith']('\x0a')?_0x530b58:_0x530b58+'\x0a'),!![];}function a224_0x1d1a(_0x3718f3,_0x316a3b){_0x3718f3=_0x3718f3-0xe4;const _0x44cd06=a224_0x44cd();let _0x1d1a29=_0x44cd06[_0x3718f3];return _0x1d1a29;}function printPrettyNotice(_0x4bc3db){const _0x5b6ce0=a224_0x1d1a;if(!_0x4bc3db?.[_0x5b6ce0(0xe6)])return;console['error'](_0x4bc3db[_0x5b6ce0(0xe6)]['message']+'\x20('+_0x4bc3db[_0x5b6ce0(0xe6)]['url']+')');}
1
+ (function(_0x2f893f,_0x556576){const _0x208dc1=a224_0x5119,_0x41798e=_0x2f893f();while(!![]){try{const _0xb0ef59=parseInt(_0x208dc1(0x1ac))/0x1+parseInt(_0x208dc1(0x19c))/0x2*(-parseInt(_0x208dc1(0x1a8))/0x3)+parseInt(_0x208dc1(0x19f))/0x4*(parseInt(_0x208dc1(0x1a6))/0x5)+-parseInt(_0x208dc1(0x1a9))/0x6+parseInt(_0x208dc1(0x1a5))/0x7+parseInt(_0x208dc1(0x1b0))/0x8+parseInt(_0x208dc1(0x1a1))/0x9*(-parseInt(_0x208dc1(0x1b1))/0xa);if(_0xb0ef59===_0x556576)break;else _0x41798e['push'](_0x41798e['shift']());}catch(_0x5e07c5){_0x41798e['push'](_0x41798e['shift']());}}}(a224_0x15c1,0x86d8e));function a224_0x5119(_0x1b966b,_0x5001d8){_0x1b966b=_0x1b966b-0x19a;const _0x15c19c=a224_0x15c1();let _0x51199c=_0x15c19c[_0x1b966b];return _0x51199c;}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x2909cf,_0x587b08){const _0x3651b2=a224_0x5119,_0x5e9cc0=_0x2909cf[_0x3651b2(0x1ab)],{_notice:_0x311d28,..._0x4fb494}=_0x2909cf;void _0x311d28,baseFormatOutput(_0x4fb494,_0x587b08),_0x587b08['format']==='pretty'&&printPrettyNotice(_0x5e9cc0);}export function formatCliError(_0x4277ea,_0x3b9843){const _0x54d802=a224_0x5119;if(_0x3b9843[_0x54d802(0x1af)]===_0x54d802(0x19d))return![];const _0x527a7c=_0x4277ea['data'],_0x308a09={'ok':![],'command':_0x3b9843[_0x54d802(0x1b2)],'risk':_0x3b9843[_0x54d802(0x19e)],'data':_0x527a7c??null,'error':{'code':_0x4277ea[_0x54d802(0x1ad)],'message':_0x4277ea[_0x54d802(0x1ae)],..._0x4277ea['hint']?{'hint':_0x4277ea['hint']}:{}}},_0x5900bd=_0x3b9843[_0x54d802(0x1af)]===_0x54d802(0x1aa)?JSON[_0x54d802(0x19a)](_0x308a09,null,0x2):JSON['stringify'](_0x308a09);let _0x3f8e00=_0x5900bd;if(_0x3b9843[_0x54d802(0x1a0)]?.[_0x54d802(0x1b4)]())try{_0x3f8e00=applyJqFilter(_0x5900bd,_0x3b9843['jqFilter']);}catch(_0x3bf61f){const _0x4e79fc=_0x3bf61f instanceof CliError?_0x3bf61f:CliErrors[_0x54d802(0x1b3)](_0x54d802(0x1a3)+(_0x3bf61f instanceof Error?_0x3bf61f['message']:String(_0x3bf61f))),_0xd034cc={..._0x308a09,'error':{'code':_0x4e79fc[_0x54d802(0x1ad)],'message':_0x4e79fc[_0x54d802(0x1ae)],..._0x4e79fc['hint']?{'hint':_0x4e79fc['hint']}:{},'cause':_0x308a09['error']}};_0x3f8e00=_0x3b9843[_0x54d802(0x1af)]===_0x54d802(0x1aa)?JSON[_0x54d802(0x19a)](_0xd034cc,null,0x2):JSON[_0x54d802(0x19a)](_0xd034cc);}return process[_0x54d802(0x1a4)][_0x54d802(0x1a2)](_0x3f8e00[_0x54d802(0x19b)]('\x0a')?_0x3f8e00:_0x3f8e00+'\x0a'),!![];}function printPrettyNotice(_0x24cb8a){const _0x41e872=a224_0x5119;if(!_0x24cb8a?.[_0x41e872(0x1a7)])return;console['error'](_0x24cb8a[_0x41e872(0x1a7)]['message']+'\x20('+_0x24cb8a[_0x41e872(0x1a7)]['url']+')');}function a224_0x15c1(){const _0x15b967=['_notice','333834UaIpbS','code','message','format','5375784zHIVdo','10dCTjOZ','command','validation','trim','stringify','endsWith','2SAgIKJ','pretty','risk','8zOOyrp','jqFilter','12037572gUswbN','write','jq:\x20','stdout','6962417hHtRlN','2571305vMusxL','update','247353lzRBpC','6340002PTMOlZ','json'];a224_0x15c1=function(){return _0x15b967;};return a224_0x15c1();}
@@ -1 +1 @@
1
- function a225_0x33e2(_0x2b09c2,_0x26be22){_0x2b09c2=_0x2b09c2-0x128;var _0x5a2cbd=a225_0x5a2c();var _0x33e237=_0x5a2cbd[_0x2b09c2];return _0x33e237;}(function(_0x3be53c,_0x3e9b6e){var _0x2dd909=a225_0x33e2,_0x41f501=_0x3be53c();while(!![]){try{var _0x10efea=parseInt(_0x2dd909(0x12a))/0x1*(-parseInt(_0x2dd909(0x130))/0x2)+parseInt(_0x2dd909(0x133))/0x3*(-parseInt(_0x2dd909(0x12e))/0x4)+-parseInt(_0x2dd909(0x12f))/0x5*(parseInt(_0x2dd909(0x12d))/0x6)+-parseInt(_0x2dd909(0x129))/0x7+parseInt(_0x2dd909(0x12b))/0x8*(-parseInt(_0x2dd909(0x128))/0x9)+parseInt(_0x2dd909(0x131))/0xa*(-parseInt(_0x2dd909(0x12c))/0xb)+parseInt(_0x2dd909(0x132))/0xc;if(_0x10efea===_0x3e9b6e)break;else _0x41f501['push'](_0x41f501['shift']());}catch(_0x24d284){_0x41f501['push'](_0x41f501['shift']());}}}(a225_0x5a2c,0x866e9));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a225_0x5a2c(){var _0x51bcb2=['46680PjWnJL','13744kWgrSc','121GyaNAE','6VUVnHa','101012JPPzdf','402935SywnxP','10BlksRN','439630oiamdz','37140960zGdlCQ','129KlHEdW','927NpuJTC','3388238PHbDwg'];a225_0x5a2c=function(){return _0x51bcb2;};return a225_0x5a2c();}
1
+ function a225_0x142f(_0x4bb888,_0x98d4bb){_0x4bb888=_0x4bb888-0x1e3;var _0x269683=a225_0x2696();var _0x142f48=_0x269683[_0x4bb888];return _0x142f48;}(function(_0x44a0a2,_0x1270ab){var _0xc3575f=a225_0x142f,_0x1a8dd4=_0x44a0a2();while(!![]){try{var _0x28799f=-parseInt(_0xc3575f(0x1eb))/0x1*(-parseInt(_0xc3575f(0x1e8))/0x2)+parseInt(_0xc3575f(0x1ea))/0x3+parseInt(_0xc3575f(0x1e6))/0x4*(parseInt(_0xc3575f(0x1ee))/0x5)+parseInt(_0xc3575f(0x1e7))/0x6*(-parseInt(_0xc3575f(0x1ed))/0x7)+parseInt(_0xc3575f(0x1e5))/0x8*(-parseInt(_0xc3575f(0x1e9))/0x9)+-parseInt(_0xc3575f(0x1e3))/0xa*(parseInt(_0xc3575f(0x1e4))/0xb)+-parseInt(_0xc3575f(0x1ec))/0xc;if(_0x28799f===_0x1270ab)break;else _0x1a8dd4['push'](_0x1a8dd4['shift']());}catch(_0x44dc87){_0x1a8dd4['push'](_0x1a8dd4['shift']());}}}(a225_0x2696,0xa330e));function a225_0x2696(){var _0x49111d=['150JJAidf','11413008VVMWRM','7CWbDik','1176690EunJCn','4602380CnONLy','11wyWgNy','8FwCGFy','12adFPjk','4543116XACTZr','16442moqyuh','1838961IcVKUf','3306309Pbaigb'];a225_0x2696=function(){return _0x49111d;};return a225_0x2696();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x47d7a2,_0x31ac2d){const _0x4aab40=a226_0x3f2f,_0x25664c=_0x47d7a2();while(!![]){try{const _0xdff25c=-parseInt(_0x4aab40(0x1d4))/0x1+parseInt(_0x4aab40(0x1cc))/0x2*(parseInt(_0x4aab40(0x1cf))/0x3)+-parseInt(_0x4aab40(0x1d9))/0x4*(-parseInt(_0x4aab40(0x1c6))/0x5)+-parseInt(_0x4aab40(0x1e1))/0x6*(parseInt(_0x4aab40(0x1d3))/0x7)+parseInt(_0x4aab40(0x1df))/0x8*(-parseInt(_0x4aab40(0x1ca))/0x9)+-parseInt(_0x4aab40(0x1de))/0xa+-parseInt(_0x4aab40(0x1c5))/0xb*(-parseInt(_0x4aab40(0x1d6))/0xc);if(_0xdff25c===_0x31ac2d)break;else _0x25664c['push'](_0x25664c['shift']());}catch(_0xe8e195){_0x25664c['push'](_0x25664c['shift']());}}}(a226_0x263d,0xb3be9));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a226_0x263d(){const _0x302e06=['1294770sGDQJC','join','string','No\x20api.ts\x20found\x20in\x20','679EVVwHh','983897mfMmMS','alias','31813164lHiVzU','validation','Available\x20aliases:\x20','604dAWnnQ','\x20api\x20pull`\x20first.','name','.\x20Run\x20`','code','11130390bdaFPw','4072888VMoHSJ','some','69402cmpjmO','11bmINQw','48315SAQVdL','\x22.\x20','length','`\x20requires\x20either\x20--code\x20or\x20--alias.','18ALbnnW','flags','4SetYVX','map','type'];a226_0x263d=function(){return _0x302e06;};return a226_0x263d();}import{CLI_BIN_NAME}from'../constant/cli.js';function a226_0x3f2f(_0xe6080e,_0x15554c){_0xe6080e=_0xe6080e-0x1c5;const _0x263da7=a226_0x263d();let _0x3f2f07=_0x263da7[_0xe6080e];return _0x3f2f07;}export function resolveAliasToCode(_0xb44da,_0x1f7863,_0x1e6ed7,_0x1beba1){const _0x4e5a06=a226_0x3f2f,_0x365996=_0xb44da[_0x4e5a06(0x1cb)][_0x4e5a06(0x1e0)](_0x38e3e2=>_0x38e3e2[_0x4e5a06(0x1db)]===_0x4e5a06(0x1dd)&&_0x38e3e2[_0x4e5a06(0x1ce)]===_0x4e5a06(0x1d1)),_0x5ef18d=_0xb44da[_0x4e5a06(0x1cb)][_0x4e5a06(0x1e0)](_0x490ac2=>_0x490ac2[_0x4e5a06(0x1db)]===_0x4e5a06(0x1d5)&&_0x490ac2['type']===_0x4e5a06(0x1d1));if(!_0x365996||!_0x5ef18d)return;const _0x43665c=_0x1f7863[_0x4e5a06(0x1dd)]?String(_0x1f7863[_0x4e5a06(0x1dd)]):'',_0x5130ab=_0x1f7863[_0x4e5a06(0x1d5)]?String(_0x1f7863['alias']):'';if(!_0x43665c&&!_0x5130ab)throw CliErrors[_0x4e5a06(0x1d7)]('`'+_0x1beba1+_0x4e5a06(0x1c9));if(_0x5130ab&&!_0x43665c){const _0x37c7f3=resolveAlias(_0x1e6ed7,_0x5130ab);if(!_0x37c7f3){const _0x456c37=listAliases(_0x1e6ed7)[_0x4e5a06(0x1cd)](_0x861bb0=>_0x861bb0[_0x4e5a06(0x1d5)]),_0x54815d=_0x456c37[_0x4e5a06(0x1c8)]?_0x4e5a06(0x1d8)+_0x456c37[_0x4e5a06(0x1d0)](',\x20'):_0x4e5a06(0x1d2)+_0x1e6ed7+_0x4e5a06(0x1dc)+CLI_BIN_NAME+_0x4e5a06(0x1da);throw CliErrors[_0x4e5a06(0x1d7)]('Unknown\x20alias\x20\x22'+_0x5130ab+_0x4e5a06(0x1c7)+_0x54815d);}_0x1f7863['code']=_0x37c7f3;}}
1
+ function a226_0x5c81(_0x44b26a,_0x565ae4){_0x44b26a=_0x44b26a-0x12e;const _0x487c52=a226_0x487c();let _0x5c81a4=_0x487c52[_0x44b26a];return _0x5c81a4;}(function(_0x1b3ee9,_0x11a2e8){const _0xb19428=a226_0x5c81,_0x5d3d86=_0x1b3ee9();while(!![]){try{const _0x13cd8c=parseInt(_0xb19428(0x136))/0x1+-parseInt(_0xb19428(0x13c))/0x2+-parseInt(_0xb19428(0x13a))/0x3*(-parseInt(_0xb19428(0x141))/0x4)+parseInt(_0xb19428(0x146))/0x5+parseInt(_0xb19428(0x142))/0x6*(parseInt(_0xb19428(0x138))/0x7)+parseInt(_0xb19428(0x143))/0x8+parseInt(_0xb19428(0x137))/0x9*(-parseInt(_0xb19428(0x13f))/0xa);if(_0x13cd8c===_0x11a2e8)break;else _0x5d3d86['push'](_0x5d3d86['shift']());}catch(_0x23ea65){_0x5d3d86['push'](_0x5d3d86['shift']());}}}(a226_0x487c,0xdec62));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a226_0x487c(){const _0x50f2a9=['1201861AdorqN','277335EZGPXl','7112DfCYFi','.\x20Run\x20`','216831QFtXPP','No\x20api.ts\x20found\x20in\x20','1474514HlbraT','validation','join','1030dgRUWf','\x22.\x20','12WGFKxA','852mAtfUh','12232624EmbwpB','name','Available\x20aliases:\x20','8658210OsHxlk','flags','`\x20requires\x20either\x20--code\x20or\x20--alias.','Unknown\x20alias\x20\x22','type','map','code','some','alias','string'];a226_0x487c=function(){return _0x50f2a9;};return a226_0x487c();}export function resolveAliasToCode(_0x323553,_0x21c634,_0x379483,_0x50de91){const _0x65fc90=a226_0x5c81,_0x1829cb=_0x323553['flags'][_0x65fc90(0x133)](_0x43c0e6=>_0x43c0e6[_0x65fc90(0x144)]==='code'&&_0x43c0e6['type']===_0x65fc90(0x135)),_0x80f8f5=_0x323553[_0x65fc90(0x147)]['some'](_0x496d54=>_0x496d54[_0x65fc90(0x144)]===_0x65fc90(0x134)&&_0x496d54[_0x65fc90(0x130)]===_0x65fc90(0x135));if(!_0x1829cb||!_0x80f8f5)return;const _0x3c25e4=_0x21c634[_0x65fc90(0x132)]?String(_0x21c634[_0x65fc90(0x132)]):'',_0x5a48fe=_0x21c634[_0x65fc90(0x134)]?String(_0x21c634['alias']):'';if(!_0x3c25e4&&!_0x5a48fe)throw CliErrors[_0x65fc90(0x13d)]('`'+_0x50de91+_0x65fc90(0x12e));if(_0x5a48fe&&!_0x3c25e4){const _0x21d6f7=resolveAlias(_0x379483,_0x5a48fe);if(!_0x21d6f7){const _0x3507e1=listAliases(_0x379483)[_0x65fc90(0x131)](_0x3d6e78=>_0x3d6e78['alias']),_0x398491=_0x3507e1['length']?_0x65fc90(0x145)+_0x3507e1[_0x65fc90(0x13e)](',\x20'):_0x65fc90(0x13b)+_0x379483+_0x65fc90(0x139)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x65fc90(0x13d)](_0x65fc90(0x12f)+_0x5a48fe+_0x65fc90(0x140)+_0x398491);}_0x21c634[_0x65fc90(0x132)]=_0x21d6f7;}}
@@ -1 +1 @@
1
- const a227_0x34b313=a227_0x5e67;(function(_0x483797,_0xbff837){const _0x5dee60=a227_0x5e67,_0x82630b=_0x483797();while(!![]){try{const _0x41eae5=parseInt(_0x5dee60(0x107))/0x1+parseInt(_0x5dee60(0x105))/0x2+parseInt(_0x5dee60(0x124))/0x3+parseInt(_0x5dee60(0xf7))/0x4+-parseInt(_0x5dee60(0x12c))/0x5*(parseInt(_0x5dee60(0xfe))/0x6)+-parseInt(_0x5dee60(0x129))/0x7*(-parseInt(_0x5dee60(0xf0))/0x8)+parseInt(_0x5dee60(0xef))/0x9*(-parseInt(_0x5dee60(0x117))/0xa);if(_0x41eae5===_0xbff837)break;else _0x82630b['push'](_0x82630b['shift']());}catch(_0x3a30d5){_0x82630b['push'](_0x82630b['shift']());}}}(a227_0x8a4e,0x27863));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a227_0x58ab8a}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x1929f1){const _0x5de5a8=a227_0x5e67;return typeof _0x1929f1===_0x5de5a8(0xfb)&&_0x1929f1[_0x5de5a8(0x119)]()?_0x1929f1[_0x5de5a8(0x119)]():undefined;}function resolveEnvAppCode(){const _0x42e750=a227_0x5e67,_0x33f8bd=stringFlag(process.env.RABETBASE_APPCODE);if(_0x33f8bd)return{'name':_0x42e750(0x12a),'value':_0x33f8bd};const _0x149629=stringFlag(process.env.LOVRABET_APPCODE);if(_0x149629)return{'name':_0x42e750(0xfa),'value':_0x149629};return undefined;}function hasExplicitAppCode(_0x5e84a5,_0xd58286){const _0x36f752=a227_0x5e67;return!!(stringFlag(_0x5e84a5['appcode'])||stringFlag(_0xd58286[_0x36f752(0x128)]));}function assertEnvAppCodeNotIgnored(_0x3117da,_0x4dbf5d,_0x5d90b6){const _0xb51bf4=a227_0x5e67;if(!_0x4dbf5d||_0x5d90b6||_0x3117da===_0x4dbf5d[_0xb51bf4(0x101)])return;const _0x59ccac=_0x3117da?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x3117da+'\x22.':_0xb51bf4(0x113);throw CliErrors['validation'](_0x4dbf5d['name']+'='+_0x4dbf5d[_0xb51bf4(0x101)]+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x59ccac+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x4dbf5d[_0xb51bf4(0x126)]+'\x22.'));}function a227_0x8a4e(){const _0x357c39=['string','message','resolveCookie','928734uLkkhX','\x20\x20\x20Continue?\x20[y/N]\x20','nonInteractive','value','appCode','validation','explicitAppName','576534UjEoaO','find','223133MTiXYx','riskLevel','rejectedFlags','cookie','rawFlags','currentApp','../core/api-client.js','apps','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','resolveApiDomain','catch','defaultPageSize','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','command','resolveAppCode','resolve','65690mCkoeu','meowKey','trim','object','includes','some','defaultApp','format','service','none','schema','Set\x20appcode\x20via\x20`','_notice','88722otgnZP','pageSize','name','apiDir','appcode','25494XiHOCl','RABETBASE_APPCODE','pretty','5VcgxZS','toUpperCase','711MPAqgf','96IhOiEb','selectedAppName','mergedCli','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','map','cancelled','replace','1003812nFpXOe','isNonInteractive','verbose','LOVRABET_APPCODE'];a227_0x8a4e=function(){return _0x357c39;};return a227_0x8a4e();}export function createPipelineEnv(_0x16c352,_0xaf44ab,_0x4c1387=[]){const _0x3288e6=a227_0x5e67;return{'rawFlags':_0xaf44ab,'args':_0x4c1387,'resolveAppCode':()=>_0x16c352[_0x3288e6(0x102)],'resolveCookie':()=>_0x16c352[_0x3288e6(0x10a)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a227_0x58ab8a(_0xaf44ab),'defaultFormat':_0x16c352[_0x3288e6(0x11e)],'defaultPageSize':_0x16c352[_0x3288e6(0x125)],'defaultVerbose':_0x16c352[_0x3288e6(0xf9)],'apiDir':_0x16c352[_0x3288e6(0x127)],'riskLevel':_0x16c352[_0x3288e6(0x108)],'selectedAppName':_0x16c352[_0x3288e6(0x104)],'mergedCli':{'defaultApp':_0x16c352[_0x3288e6(0x11d)],'currentApp':_0x16c352[_0x3288e6(0x10c)],'appCode':_0x16c352['appCode'],'apps':_0x16c352[_0x3288e6(0x10e)]}};}function a227_0x5e67(_0x57746f,_0xe97f2a){_0x57746f=_0x57746f-0xee;const _0x8a4ef3=a227_0x8a4e();let _0x5e6798=_0x8a4ef3[_0x57746f];return _0x5e6798;}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x29badb=>PIPELINE_FLAG_NAMES['has'](_0x29badb[a227_0x34b313(0x126)]))[a227_0x34b313(0xf4)](({name:_0x1a1835,type:_0x2f9dd0,description:_0x4133c3})=>({'name':_0x1a1835,'type':_0x2f9dd0,'description':_0x4133c3})),'formatOutput':formatOutput,'getCommandLabel'(_0x3f192f){const _0x58c138=a227_0x34b313;return CLI_BIN_NAME+'\x20'+_0x3f192f[_0x58c138(0x11f)]+'\x20'+_0x3f192f[_0x58c138(0x114)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0xe90dba){const _0x42a9be=a227_0x34b313;return CliErrors[_0x42a9be(0x103)](_0xe90dba);}},async 'prepare'(_0x416d20,_0x1d2c14,_0x53104c,_0x186d64){const _0x86bc66=a227_0x34b313,_0x3a56fd=_0x1d2c14[_0x86bc66(0x127)]||DEFAULT_API_DIR;resolveAliasToCode(_0x416d20,_0x53104c,_0x3a56fd,_0x186d64);const _0x174bbe=resolveCommandAuthMode(_0x416d20);let _0x3d49a8='';if(_0x174bbe!==_0x86bc66(0x120)){_0x3d49a8=_0x1d2c14[_0x86bc66(0xfd)]()||'';if(!_0x3d49a8){if(_0x174bbe==='required')throw CliErrors['authRequired']();}else{const {setActiveCookie:_0x2d94b4}=await import('../core/api-client.js');_0x2d94b4(_0x3d49a8);}}const _0x392f4e=_0x1d2c14[_0x86bc66(0x115)]()??'';if(_0x416d20['requiresAppCode']!==![]){assertEnvAppCodeNotIgnored(_0x392f4e,resolveEnvAppCode(),hasExplicitAppCode(_0x53104c,_0x1d2c14[_0x86bc66(0x10b)]));if(!_0x392f4e)throw CliErrors['configMissing'](_0x86bc66(0x122)+CLI_BIN_NAME+_0x86bc66(0x10f));}return{'defaults':{'booleans':{'verbose':_0x1d2c14['defaultVerbose']},'numbers':{'pagesize':_0x1d2c14[_0x86bc66(0x112)]}},'extras':{'appCode':_0x392f4e,'cookie':_0x3d49a8,'apiDomain':_0x1d2c14[_0x86bc66(0x110)](),'apiDir':_0x3a56fd,'selectedAppName':_0x1d2c14[_0x86bc66(0xf1)],'mergedCli':_0x1d2c14[_0x86bc66(0xf2)]}};},async 'confirmHighRisk'({env:_0x37e485,commandLabel:_0xb73b4e}){const _0x3fe394=a227_0x34b313;if(_0x37e485[_0x3fe394(0xf8)])throw CliErrors[_0x3fe394(0x103)]('High-risk\x20operation\x20`'+_0xb73b4e+_0x3fe394(0xf3));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0xb73b4e,_0x3fe394(0xff)],'createCancelledError':_0x3657f7=>CliErrors[_0x3fe394(0xf5)](_0x3657f7)});},async 'finalize'(){const _0x3cde08=a227_0x34b313,{clearActiveCookie:_0xf95289}=await import(_0x3cde08(0x10d));_0xf95289();}};export async function runCommand(_0x3aba68,_0x5bdacf){const _0x487cf5=a227_0x34b313;assertRejectedFlags(_0x3aba68,_0x5bdacf[_0x487cf5(0x10b)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x3aba68)?withUpdateNotice(_0x3aba68):_0x3aba68,_0x5bdacf,runnerAdapter);}function assertRejectedFlags(_0x2acf22,_0x1605d2){const _0x250180=a227_0x34b313;for(const _0x2c6759 of _0x2acf22[_0x250180(0x109)]??[]){const _0x14eb69=GLOBAL_FLAGS[_0x250180(0x106)](_0x234bfa=>_0x234bfa[_0x250180(0x126)]===_0x2c6759['name']),_0x28c65a=new Set([_0x2c6759[_0x250180(0x126)],toCamelCase(_0x2c6759[_0x250180(0x126)]),_0x14eb69?.[_0x250180(0x118)]]),_0x3b46f3=[..._0x28c65a][_0x250180(0x11c)](_0xfce2aa=>{if(!_0xfce2aa)return![];const _0x45e5b7=_0x1605d2[_0xfce2aa];return _0x45e5b7!==undefined&&_0x45e5b7!==null&&_0x45e5b7!==![];});if(_0x3b46f3)throw CliErrors[_0x250180(0x103)](_0x2c6759[_0x250180(0xfc)],_0x2c6759['hint']);}}function toCamelCase(_0x68a558){const _0x40c9da=a227_0x34b313;return _0x68a558[_0x40c9da(0xf6)](/-([a-z])/g,(_0x3defcc,_0x2aad47)=>_0x2aad47[_0x40c9da(0xee)]());}function shouldAttachUpdateNotice(_0x4c9767){const _0x517c12=a227_0x34b313;if(_0x4c9767['hasFormat']===![])return![];return!['update',_0x517c12(0x121),'doctor'][_0x517c12(0x11b)](_0x4c9767[_0x517c12(0x11f)]);}function withUpdateNotice(_0x5ad75b){return{..._0x5ad75b,async 'execute'(_0x5b92f3){const _0x42451c=a227_0x5e67,_0x52d788=shouldResolveUpdateNotice(_0x5b92f3)?resolveLatestUpdateNotice()[_0x42451c(0x111)](()=>null):Promise[_0x42451c(0x116)](null),_0x323228=await _0x5ad75b['execute'](_0x5b92f3);return attachUpdateNotice(_0x323228,await _0x52d788);}};}function shouldResolveUpdateNotice(_0x5ca13d){const _0x5c59b5=a227_0x34b313;return _0x5ca13d[_0x5c59b5(0x11e)]===_0x5c59b5(0x12b)&&!_0x5ca13d[_0x5c59b5(0x100)];}function attachUpdateNotice(_0x3255f7,_0x223d34){const _0x20a8f6=a227_0x34b313;if(!_0x223d34||!_0x3255f7||typeof _0x3255f7!==_0x20a8f6(0x11a))return _0x3255f7;const _0x3cc5cf=_0x3255f7,_0x3e640e=typeof _0x3cc5cf[_0x20a8f6(0x123)]===_0x20a8f6(0x11a)&&_0x3cc5cf[_0x20a8f6(0x123)]!==null?_0x3cc5cf['_notice']:{};return{..._0x3cc5cf,'_notice':{..._0x3e640e,'update':_0x223d34}};}
1
+ const a227_0x43f6cb=a227_0x20df;(function(_0x5abf29,_0x3fb45d){const _0x539922=a227_0x20df,_0x236d23=_0x5abf29();while(!![]){try{const _0x1645bb=-parseInt(_0x539922(0xb0))/0x1+-parseInt(_0x539922(0xbf))/0x2*(parseInt(_0x539922(0xc1))/0x3)+parseInt(_0x539922(0xae))/0x4+-parseInt(_0x539922(0xa3))/0x5*(parseInt(_0x539922(0xd2))/0x6)+parseInt(_0x539922(0xbe))/0x7+-parseInt(_0x539922(0xa6))/0x8*(parseInt(_0x539922(0xb4))/0x9)+parseInt(_0x539922(0xac))/0xa;if(_0x1645bb===_0x3fb45d)break;else _0x236d23['push'](_0x236d23['shift']());}catch(_0x228950){_0x236d23['push'](_0x236d23['shift']());}}}(a227_0x5f47,0xb6445));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';function a227_0x5f47(){const _0x24be37=['has','doctor','15328090rsgZKb','High-risk\x20operation\x20`','2817176gOhDPr','object','1020489oHDtah','schema','validation','apps','13347MpPqxV','value','authRequired','defaultApp','replace','pageSize','rejectedFlags','\x20\x20\x20Continue?\x20[y/N]\x20','cookie','apiDir','7834666jeKChP','2PGBHDU','service','2301087nSVnPq','resolveAppCode','Set\x20appcode\x20via\x20`','toUpperCase','pretty','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','name','selectedAppName','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','some','map','Current\x20resolved\x20appcode\x20is\x20\x22','configMissing','⚠\x20\x20High-risk\x20operation:\x20','none','explicitAppName','trim','244302KNYNso','format','update','_notice','meowKey','defaultVerbose','LOVRABET_APPCODE','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','../core/api-client.js','resolveApiDomain','rawFlags','message','5dCrUPh','cancelled','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','4216BrPvZb','command','appcode','string'];a227_0x5f47=function(){return _0x24be37;};return a227_0x5f47();}import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a227_0x4949b9}from'../utils/is-non-interactive.js';function a227_0x20df(_0x321a88,_0x3d843e){_0x321a88=_0x321a88-0x99;const _0x5f47d6=a227_0x5f47();let _0x20df1b=_0x5f47d6[_0x321a88];return _0x20df1b;}import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x173b0){const _0x5c70b6=a227_0x20df;return typeof _0x173b0===_0x5c70b6(0xa9)&&_0x173b0[_0x5c70b6(0xd1)]()?_0x173b0[_0x5c70b6(0xd1)]():undefined;}function resolveEnvAppCode(){const _0x231e19=a227_0x20df,_0x3b46cd=stringFlag(process.env.RABETBASE_APPCODE);if(_0x3b46cd)return{'name':'RABETBASE_APPCODE','value':_0x3b46cd};const _0x502f7f=stringFlag(process.env.LOVRABET_APPCODE);if(_0x502f7f)return{'name':_0x231e19(0x9d),'value':_0x502f7f};return undefined;}function hasExplicitAppCode(_0x5a04c8,_0x5e2cf9){const _0x34c663=a227_0x20df;return!!(stringFlag(_0x5a04c8[_0x34c663(0xa8)])||stringFlag(_0x5e2cf9['appcode']));}function assertEnvAppCodeNotIgnored(_0xe7fe4d,_0x23e62c,_0x7fdddf){const _0x512499=a227_0x20df;if(!_0x23e62c||_0x7fdddf||_0xe7fe4d===_0x23e62c[_0x512499(0xb5)])return;const _0x167c1e=_0xe7fe4d?_0x512499(0xcc)+_0xe7fe4d+'\x22.':_0x512499(0xc9);throw CliErrors[_0x512499(0xb2)](_0x23e62c[_0x512499(0xc7)]+'='+_0x23e62c[_0x512499(0xb5)]+_0x512499(0xa5)+_0x167c1e+'\x20'+(_0x512499(0xc6)+_0x23e62c[_0x512499(0xc7)]+'\x22.'));}export function createPipelineEnv(_0x51f97a,_0x4e74fc,_0x545c5a=[]){const _0x5f61f=a227_0x20df;return{'rawFlags':_0x4e74fc,'args':_0x545c5a,'resolveAppCode':()=>_0x51f97a['appCode'],'resolveCookie':()=>_0x51f97a[_0x5f61f(0xbc)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a227_0x4949b9(_0x4e74fc),'defaultFormat':_0x51f97a[_0x5f61f(0xd3)],'defaultPageSize':_0x51f97a[_0x5f61f(0xb9)],'defaultVerbose':_0x51f97a['verbose'],'apiDir':_0x51f97a[_0x5f61f(0xbd)],'riskLevel':_0x51f97a['riskLevel'],'selectedAppName':_0x51f97a[_0x5f61f(0xd0)],'mergedCli':{'defaultApp':_0x51f97a[_0x5f61f(0xb7)],'currentApp':_0x51f97a['currentApp'],'appCode':_0x51f97a['appCode'],'apps':_0x51f97a[_0x5f61f(0xb3)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x5b38ae=>PIPELINE_FLAG_NAMES[a227_0x43f6cb(0xaa)](_0x5b38ae[a227_0x43f6cb(0xc7)]))[a227_0x43f6cb(0xcb)](({name:_0x27915d,type:_0x2ae24f,description:_0x1a7175})=>({'name':_0x27915d,'type':_0x2ae24f,'description':_0x1a7175})),'formatOutput':formatOutput,'getCommandLabel'(_0x4cae39){const _0x45dbed=a227_0x43f6cb;return CLI_BIN_NAME+'\x20'+_0x4cae39['service']+'\x20'+_0x4cae39[_0x45dbed(0xa7)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x477b51){const _0x3c8b98=a227_0x43f6cb;return CliErrors[_0x3c8b98(0xb2)](_0x477b51);}},async 'prepare'(_0x412aa8,_0x519e86,_0x1bb229,_0x3370fe){const _0x254dc3=a227_0x43f6cb,_0x431b40=_0x519e86['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x412aa8,_0x1bb229,_0x431b40,_0x3370fe);const _0x5037e5=resolveCommandAuthMode(_0x412aa8);let _0x3c20f1='';if(_0x5037e5!==_0x254dc3(0xcf)){_0x3c20f1=_0x519e86['resolveCookie']()||'';if(!_0x3c20f1){if(_0x5037e5==='required')throw CliErrors[_0x254dc3(0xb6)]();}else{const {setActiveCookie:_0x48a7ef}=await import(_0x254dc3(0x9f));_0x48a7ef(_0x3c20f1);}}const _0x2dfbba=_0x519e86[_0x254dc3(0xc2)]()??'';if(_0x412aa8['requiresAppCode']!==![]){assertEnvAppCodeNotIgnored(_0x2dfbba,resolveEnvAppCode(),hasExplicitAppCode(_0x1bb229,_0x519e86[_0x254dc3(0xa1)]));if(!_0x2dfbba)throw CliErrors[_0x254dc3(0xcd)](_0x254dc3(0xc3)+CLI_BIN_NAME+_0x254dc3(0x9e));}return{'defaults':{'booleans':{'verbose':_0x519e86[_0x254dc3(0x9c)]},'numbers':{'pagesize':_0x519e86['defaultPageSize']}},'extras':{'appCode':_0x2dfbba,'cookie':_0x3c20f1,'apiDomain':_0x519e86[_0x254dc3(0xa0)](),'apiDir':_0x431b40,'selectedAppName':_0x519e86[_0x254dc3(0xc8)],'mergedCli':_0x519e86['mergedCli']}};},async 'confirmHighRisk'({env:_0x1677fc,commandLabel:_0x3f59a4}){const _0x219a8a=a227_0x43f6cb;if(_0x1677fc['isNonInteractive'])throw CliErrors['validation'](_0x219a8a(0xad)+_0x3f59a4+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':[_0x219a8a(0xce)+_0x3f59a4,_0x219a8a(0xbb)],'createCancelledError':_0x174ff0=>CliErrors[_0x219a8a(0xa4)](_0x174ff0)});},async 'finalize'(){const _0x3739fe=a227_0x43f6cb,{clearActiveCookie:_0x2d85ae}=await import(_0x3739fe(0x9f));_0x2d85ae();}};export async function runCommand(_0x2fa8bf,_0x53d588){const _0xa82dce=a227_0x43f6cb;assertRejectedFlags(_0x2fa8bf,_0x53d588[_0xa82dce(0xa1)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x2fa8bf)?withUpdateNotice(_0x2fa8bf):_0x2fa8bf,_0x53d588,runnerAdapter);}function assertRejectedFlags(_0x55d0ac,_0x107015){const _0x3477f9=a227_0x43f6cb;for(const _0x42b677 of _0x55d0ac[_0x3477f9(0xba)]??[]){const _0xa7153d=GLOBAL_FLAGS['find'](_0x483b78=>_0x483b78[_0x3477f9(0xc7)]===_0x42b677['name']),_0x36bb0e=new Set([_0x42b677['name'],toCamelCase(_0x42b677['name']),_0xa7153d?.[_0x3477f9(0x9b)]]),_0x5075f5=[..._0x36bb0e][_0x3477f9(0xca)](_0x6c7f9a=>{if(!_0x6c7f9a)return![];const _0x4f85f9=_0x107015[_0x6c7f9a];return _0x4f85f9!==undefined&&_0x4f85f9!==null&&_0x4f85f9!==![];});if(_0x5075f5)throw CliErrors[_0x3477f9(0xb2)](_0x42b677[_0x3477f9(0xa2)],_0x42b677['hint']);}}function toCamelCase(_0x515747){const _0x48beec=a227_0x43f6cb;return _0x515747[_0x48beec(0xb8)](/-([a-z])/g,(_0x571655,_0xacee3d)=>_0xacee3d[_0x48beec(0xc4)]());}function shouldAttachUpdateNotice(_0x10a920){const _0x26ab81=a227_0x43f6cb;if(_0x10a920['hasFormat']===![])return![];return![_0x26ab81(0x99),_0x26ab81(0xb1),_0x26ab81(0xab)]['includes'](_0x10a920[_0x26ab81(0xc0)]);}function withUpdateNotice(_0x42265e){return{..._0x42265e,async 'execute'(_0x53d407){const _0x392b0f=shouldResolveUpdateNotice(_0x53d407)?resolveLatestUpdateNotice()['catch'](()=>null):Promise['resolve'](null),_0x465f46=await _0x42265e['execute'](_0x53d407);return attachUpdateNotice(_0x465f46,await _0x392b0f);}};}function shouldResolveUpdateNotice(_0x5ae942){const _0x1f1f96=a227_0x43f6cb;return _0x5ae942[_0x1f1f96(0xd3)]===_0x1f1f96(0xc5)&&!_0x5ae942['nonInteractive'];}function attachUpdateNotice(_0xa11eb4,_0x34f29c){const _0x45bc4b=a227_0x43f6cb;if(!_0x34f29c||!_0xa11eb4||typeof _0xa11eb4!==_0x45bc4b(0xaf))return _0xa11eb4;const _0x2547da=_0xa11eb4,_0x29cd26=typeof _0x2547da[_0x45bc4b(0x9a)]===_0x45bc4b(0xaf)&&_0x2547da['_notice']!==null?_0x2547da['_notice']:{};return{..._0x2547da,'_notice':{..._0x29cd26,'update':_0x34f29c}};}
@@ -1 +1 @@
1
- (function(_0x5a2b37,_0x54c50c){const _0x4b8e80=a228_0x5ca2,_0x16b2ac=_0x5a2b37();while(!![]){try{const _0x4b0e34=parseInt(_0x4b8e80(0xc7))/0x1+-parseInt(_0x4b8e80(0xcc))/0x2+parseInt(_0x4b8e80(0xca))/0x3+-parseInt(_0x4b8e80(0xc9))/0x4*(-parseInt(_0x4b8e80(0xcb))/0x5)+parseInt(_0x4b8e80(0xce))/0x6*(parseInt(_0x4b8e80(0xc8))/0x7)+-parseInt(_0x4b8e80(0xd0))/0x8+-parseInt(_0x4b8e80(0xcd))/0x9*(parseInt(_0x4b8e80(0xd1))/0xa);if(_0x4b0e34===_0x54c50c)break;else _0x16b2ac['push'](_0x16b2ac['shift']());}catch(_0x3287fb){_0x16b2ac['push'](_0x16b2ac['shift']());}}}(a228_0x1592,0x7b755));import{buildSchemaPayload as a228_0x5684f2}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';function a228_0x5ca2(_0x5f16b4,_0x340bd2){_0x5f16b4=_0x5f16b4-0xc7;const _0x15925a=a228_0x1592();let _0x5ca2d4=_0x15925a[_0x5f16b4];return _0x5ca2d4;}export async function buildSchemaPayload(){const _0xe4fa93=a228_0x5ca2,{serviceRegistry:_0x17de31,findDefinition:_0x59f0e6}=await import(_0xe4fa93(0xcf));return a228_0x5684f2({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x17de31,'buildAllFlags':buildAllFlags,'findDefinition':_0x59f0e6});}function a228_0x1592(){const _0x22dd5c=['../commands/registry.js','4843272zssTTp','70kXwswc','568053ByLcjW','210AWjPBB','76YPpVEf','825063oVymHj','148605VoLxyP','991544TQrUVW','859779YxySlb','173562wTnwHr'];a228_0x1592=function(){return _0x22dd5c;};return a228_0x1592();}
1
+ (function(_0x5bfcd4,_0x33688c){const _0x4928e6=a228_0x9729,_0x970cbf=_0x5bfcd4();while(!![]){try{const _0x569895=parseInt(_0x4928e6(0x155))/0x1*(parseInt(_0x4928e6(0x158))/0x2)+parseInt(_0x4928e6(0x156))/0x3+-parseInt(_0x4928e6(0x152))/0x4*(-parseInt(_0x4928e6(0x15b))/0x5)+parseInt(_0x4928e6(0x15d))/0x6*(parseInt(_0x4928e6(0x15c))/0x7)+-parseInt(_0x4928e6(0x159))/0x8*(parseInt(_0x4928e6(0x15a))/0x9)+-parseInt(_0x4928e6(0x153))/0xa*(-parseInt(_0x4928e6(0x157))/0xb)+-parseInt(_0x4928e6(0x154))/0xc;if(_0x569895===_0x33688c)break;else _0x970cbf['push'](_0x970cbf['shift']());}catch(_0xaddb2){_0x970cbf['push'](_0x970cbf['shift']());}}}(a228_0x1ada,0x8b25f));import{buildSchemaPayload as a228_0xc86b45}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a228_0x9729(_0x5068b8,_0x5b7784){_0x5068b8=_0x5068b8-0x152;const _0x1adaca=a228_0x1ada();let _0x972903=_0x1adaca[_0x5068b8];return _0x972903;}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0x5a0a4d,findDefinition:_0x384394}=await import('../commands/registry.js');return a228_0xc86b45({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x5a0a4d,'buildAllFlags':buildAllFlags,'findDefinition':_0x384394});}function a228_0x1ada(){const _0x3fdcd1=['18kEpkzb','8bFbpDY','3187521PGseUD','55bJcrYv','3387013jUvQUF','12RezSlP','224372yckCGG','76010zYJNoC','31176972ABrqTL','33739SqiqSO','1914234lWwhYu','1441VvQgAg'];a228_0x1ada=function(){return _0x3fdcd1;};return a228_0x1ada();}
@@ -1 +1 @@
1
- function a229_0x1d3c(_0x10de2a,_0x33ebfc){_0x10de2a=_0x10de2a-0xd7;var _0x110a6f=a229_0x110a();var _0x1d3c48=_0x110a6f[_0x10de2a];return _0x1d3c48;}function a229_0x110a(){var _0x4c32b2=['1619625yPfETb','8718786gQTlyz','133EMHpHf','795qjbJng','4433VSlsQR','3778PuzKCK','11609664pRZauS','32200vbeRiv','1891825lQdELe','69234bwrsVC','12nNflhM'];a229_0x110a=function(){return _0x4c32b2;};return a229_0x110a();}(function(_0x45bf56,_0x34c0e6){var _0x242d6e=a229_0x1d3c,_0x43ac4c=_0x45bf56();while(!![]){try{var _0x1da1fb=-parseInt(_0x242d6e(0xd7))/0x1+parseInt(_0x242d6e(0xdc))/0x2*(parseInt(_0x242d6e(0xda))/0x3)+parseInt(_0x242d6e(0xe1))/0x4*(parseInt(_0x242d6e(0xdf))/0x5)+-parseInt(_0x242d6e(0xe0))/0x6*(parseInt(_0x242d6e(0xd9))/0x7)+parseInt(_0x242d6e(0xdd))/0x8+parseInt(_0x242d6e(0xd8))/0x9+-parseInt(_0x242d6e(0xde))/0xa*(parseInt(_0x242d6e(0xdb))/0xb);if(_0x1da1fb===_0x34c0e6)break;else _0x43ac4c['push'](_0x43ac4c['shift']());}catch(_0x4806e7){_0x43ac4c['push'](_0x43ac4c['shift']());}}}(a229_0x110a,0xe064c));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
1
+ function a229_0x2bd6(){var _0x3d9c89=['2985093dhUxsz','1195896xwRnJP','7fqybaj','12122984qdrvay','167uJjMOV','3117205IQFWzT','13140MEcYpj','29371410CtcloF','4521090miCWdp'];a229_0x2bd6=function(){return _0x3d9c89;};return a229_0x2bd6();}(function(_0x5d82d0,_0x48687a){var _0x561e8b=a229_0x197c,_0xe199e0=_0x5d82d0();while(!![]){try{var _0x567a0a=parseInt(_0x561e8b(0x1d5))/0x1*(parseInt(_0x561e8b(0x1d7))/0x2)+parseInt(_0x561e8b(0x1d1))/0x3+parseInt(_0x561e8b(0x1d2))/0x4+-parseInt(_0x561e8b(0x1d6))/0x5+parseInt(_0x561e8b(0x1d9))/0x6+-parseInt(_0x561e8b(0x1d3))/0x7*(-parseInt(_0x561e8b(0x1d4))/0x8)+-parseInt(_0x561e8b(0x1d8))/0x9;if(_0x567a0a===_0x48687a)break;else _0xe199e0['push'](_0xe199e0['shift']());}catch(_0x4e5c39){_0xe199e0['push'](_0xe199e0['shift']());}}}(a229_0x2bd6,0xbcc20));function a229_0x197c(_0x457c33,_0x5310e5){_0x457c33=_0x457c33-0x1d1;var _0x2bd6e0=a229_0x2bd6();var _0x197c6d=_0x2bd6e0[_0x457c33];return _0x197c6d;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- function a230_0x14ed(_0x1a550d,_0x2ecc60){_0x1a550d=_0x1a550d-0x1bd;const _0x3a7948=a230_0x3a79();let _0x14ed3a=_0x3a7948[_0x1a550d];return _0x14ed3a;}function a230_0x3a79(){const _0x3abc75=['2511870zsunNj','1074600tOGpIY','v2.3.11-beta.1','13891380ATFLUH','2.3.11-beta.1','808BXbvZS','40941nliETl','4984581ocBFxE','ebe71c9','269uBHJOY','5MLjsnJ','2026-08-03T03:55:10.098Z','4605018jTYJok','4346xULFBx'];a230_0x3a79=function(){return _0x3abc75;};return a230_0x3a79();}const a230_0xa99da2=a230_0x14ed;(function(_0x37b11a,_0x3966a4){const _0x18bc94=a230_0x14ed,_0x55ea93=_0x37b11a();while(!![]){try{const _0x21f248=-parseInt(_0x18bc94(0x1c5))/0x1*(-parseInt(_0x18bc94(0x1c9))/0x2)+-parseInt(_0x18bc94(0x1ca))/0x3+-parseInt(_0x18bc94(0x1bd))/0x4+parseInt(_0x18bc94(0x1c6))/0x5*(parseInt(_0x18bc94(0x1c8))/0x6)+-parseInt(_0x18bc94(0x1c3))/0x7+parseInt(_0x18bc94(0x1c1))/0x8*(-parseInt(_0x18bc94(0x1c2))/0x9)+parseInt(_0x18bc94(0x1bf))/0xa;if(_0x21f248===_0x3966a4)break;else _0x55ea93['push'](_0x55ea93['shift']());}catch(_0x3bfded){_0x55ea93['push'](_0x55ea93['shift']());}}}(a230_0x3a79,0x7135a));export const VERSION=a230_0xa99da2(0x1c0);export const GIT_TAG=a230_0xa99da2(0x1be);export const GIT_COMMIT=a230_0xa99da2(0x1c4);export const BUILD_TIME=a230_0xa99da2(0x1c7);
1
+ const a230_0x21e187=a230_0xa69f;(function(_0x1ceaad,_0x422edd){const _0x512d3b=a230_0xa69f,_0x496d19=_0x1ceaad();while(!![]){try{const _0x563517=parseInt(_0x512d3b(0x122))/0x1*(-parseInt(_0x512d3b(0x125))/0x2)+parseInt(_0x512d3b(0x121))/0x3*(parseInt(_0x512d3b(0x128))/0x4)+-parseInt(_0x512d3b(0x129))/0x5*(parseInt(_0x512d3b(0x123))/0x6)+-parseInt(_0x512d3b(0x11f))/0x7+parseInt(_0x512d3b(0x127))/0x8+-parseInt(_0x512d3b(0x120))/0x9+parseInt(_0x512d3b(0x124))/0xa;if(_0x563517===_0x422edd)break;else _0x496d19['push'](_0x496d19['shift']());}catch(_0x17d371){_0x496d19['push'](_0x496d19['shift']());}}}(a230_0x48ec,0xa36dc));export const VERSION=a230_0x21e187(0x12a);function a230_0x48ec(){const _0x154eb9=['2235895SXxqBM','2.3.12-beta.1','4725630HsHgud','10114533afQCeC','852kExNXS','231373LBLyso','6wfBabq','14456160MRtYTd','6qrNWEQ','feb8d38','6731400trtXhd','18628OQnwQf'];a230_0x48ec=function(){return _0x154eb9;};return a230_0x48ec();}export const GIT_TAG='v2.3.12-beta.1';export const GIT_COMMIT=a230_0x21e187(0x126);function a230_0xa69f(_0x1c3454,_0x5d3bec){_0x1c3454=_0x1c3454-0x11f;const _0x48ec48=a230_0x48ec();let _0xa69fd5=_0x48ec48[_0x1c3454];return _0xa69fd5;}export const BUILD_TIME='2026-08-04T07:47:21.250Z';
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a231_0x3e0e(_0x1a079c,_0x3cf09f){_0x1a079c=_0x1a079c-0xd2;var _0x5e9970=a231_0x5e99();var _0x3e0e35=_0x5e9970[_0x1a079c];return _0x3e0e35;}(function(_0x2b3fe0,_0x1730b1){var _0x43bf3b=a231_0x3e0e,_0x39e898=_0x2b3fe0();while(!![]){try{var _0x150b3c=-parseInt(_0x43bf3b(0xdd))/0x1*(parseInt(_0x43bf3b(0xd7))/0x2)+-parseInt(_0x43bf3b(0xd5))/0x3+-parseInt(_0x43bf3b(0xdb))/0x4+-parseInt(_0x43bf3b(0xd6))/0x5+-parseInt(_0x43bf3b(0xde))/0x6+-parseInt(_0x43bf3b(0xda))/0x7+-parseInt(_0x43bf3b(0xdc))/0x8*(-parseInt(_0x43bf3b(0xd3))/0x9);if(_0x150b3c===_0x1730b1)break;else _0x39e898['push'](_0x39e898['shift']());}catch(_0x8671db){_0x39e898['push'](_0x39e898['shift']());}}}(a231_0x5e99,0x9ded3));function a231_0x5e99(){var _0x51da73=['bold','\x20\x20Use\x20','1920667NDPaZe','4365788ZDOjyd','8iRCpnp','1LVfeFy','4817694HYjrgx','\x20to\x20view\x20available\x20commands.','green','\x20--help','51159321NflJCF','log','1642305AVjlzl','5746665VeWTOQ','2343914PDDPiS'];a231_0x5e99=function(){return _0x51da73;};return a231_0x5e99();}import a231_0x4028c2 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x52c661=a231_0x3e0e;console[_0x52c661(0xd4)](),console[_0x52c661(0xd4)](a231_0x4028c2[_0x52c661(0xe0)][_0x52c661(0xd8)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x52c661(0xd4)](),console['log'](_0x52c661(0xd9)+a231_0x4028c2['green'][_0x52c661(0xd8)](CLI_BIN_NAME+_0x52c661(0xd2))+_0x52c661(0xdf)),console[_0x52c661(0xd4)]();}
1
+ (function(_0x3fcb0e,_0x50504e){var _0x4ddb02=a231_0x5383,_0x4a69cc=_0x3fcb0e();while(!![]){try{var _0xfa03f=parseInt(_0x4ddb02(0xd9))/0x1+-parseInt(_0x4ddb02(0xe2))/0x2*(-parseInt(_0x4ddb02(0xe3))/0x3)+-parseInt(_0x4ddb02(0xda))/0x4+-parseInt(_0x4ddb02(0xdf))/0x5+-parseInt(_0x4ddb02(0xdc))/0x6+parseInt(_0x4ddb02(0xdb))/0x7*(-parseInt(_0x4ddb02(0xe5))/0x8)+parseInt(_0x4ddb02(0xdd))/0x9;if(_0xfa03f===_0x50504e)break;else _0x4a69cc['push'](_0x4a69cc['shift']());}catch(_0x2a70b7){_0x4a69cc['push'](_0x4a69cc['shift']());}}}(a231_0x204b,0x6f0a8));function a231_0x204b(){var _0x5dbd01=['\x20--help','2fhNIVI','2031243rLprSa','\x20\x20Use\x20','9032rstxUS','log','29574UuzAat','2237580NwlfXr','4137hokKgc','1067400NGllmG','13030686pbOdkP','green','1475755mHjScO','\x20to\x20view\x20available\x20commands.'];a231_0x204b=function(){return _0x5dbd01;};return a231_0x204b();}function a231_0x5383(_0x2bb02e,_0x16f64e){_0x2bb02e=_0x2bb02e-0xd8;var _0x204b45=a231_0x204b();var _0x53833c=_0x204b45[_0x2bb02e];return _0x53833c;}import a231_0x128390 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0xb1283a=a231_0x5383;console['log'](),console[_0xb1283a(0xd8)](a231_0x128390[_0xb1283a(0xde)]['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console['log'](_0xb1283a(0xe4)+a231_0x128390[_0xb1283a(0xde)]['bold'](CLI_BIN_NAME+_0xb1283a(0xe1))+_0xb1283a(0xe0)),console[_0xb1283a(0xd8)]();}