@lovrabet/rabetbase-cli 2.4.6-beta.1 → 2.4.6-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (299) 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/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/members-list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app-config/delete.js +1 -1
  25. package/lib/commands/app-config/get.js +1 -1
  26. package/lib/commands/app-config/index.js +1 -1
  27. package/lib/commands/app-config/list.js +1 -1
  28. package/lib/commands/app-config/set.js +1 -1
  29. package/lib/commands/app-config/shared.js +1 -1
  30. package/lib/commands/auth/index.js +1 -1
  31. package/lib/commands/bff/create.js +1 -1
  32. package/lib/commands/bff/delete.js +1 -1
  33. package/lib/commands/bff/detail.js +1 -1
  34. package/lib/commands/bff/index.js +1 -1
  35. package/lib/commands/bff/list.js +1 -1
  36. package/lib/commands/bff/pull.js +1 -1
  37. package/lib/commands/bff/push.js +1 -1
  38. package/lib/commands/bff/status.js +1 -1
  39. package/lib/commands/cli-skill/index.js +1 -1
  40. package/lib/commands/cli-update.js +1 -1
  41. package/lib/commands/codegen/index.js +1 -1
  42. package/lib/commands/codegen/sdk.js +1 -1
  43. package/lib/commands/codegen/sql.js +1 -1
  44. package/lib/commands/common/app-registry.js +1 -1
  45. package/lib/commands/common/app-selector.js +1 -1
  46. package/lib/commands/common/async-task.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -1
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/business-groups.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-refresh-start.js +1 -1
  88. package/lib/commands/db/diff-refresh-status.js +1 -1
  89. package/lib/commands/db/diff.js +1 -1
  90. package/lib/commands/db/index.js +1 -1
  91. package/lib/commands/db/list.js +1 -1
  92. package/lib/commands/db/shared.js +1 -1
  93. package/lib/commands/db/tables.js +1 -1
  94. package/lib/commands/db/test.js +1 -1
  95. package/lib/commands/db/update.js +1 -1
  96. package/lib/commands/doctor.js +1 -1
  97. package/lib/commands/file/index.js +1 -1
  98. package/lib/commands/init/index.js +1 -1
  99. package/lib/commands/issue/index.js +1 -1
  100. package/lib/commands/issue/nudge.js +1 -1
  101. package/lib/commands/issue/report.js +1 -1
  102. package/lib/commands/issue/shared.js +1 -1
  103. package/lib/commands/kb/create.js +1 -1
  104. package/lib/commands/kb/delete.js +1 -1
  105. package/lib/commands/kb/detail.js +1 -1
  106. package/lib/commands/kb/index.js +1 -1
  107. package/lib/commands/kb/list.js +1 -1
  108. package/lib/commands/kb/shared.js +1 -1
  109. package/lib/commands/kb/update.js +1 -1
  110. package/lib/commands/logs/index.js +1 -1
  111. package/lib/commands/menu/asset-update.js +1 -1
  112. package/lib/commands/menu/delete.js +1 -1
  113. package/lib/commands/menu/external-link-create.js +1 -1
  114. package/lib/commands/menu/external-link-update.js +1 -1
  115. package/lib/commands/menu/group-create.js +1 -1
  116. package/lib/commands/menu/group-update.js +1 -1
  117. package/lib/commands/menu/index.js +1 -1
  118. package/lib/commands/menu/list.js +1 -1
  119. package/lib/commands/menu/move.js +1 -1
  120. package/lib/commands/menu/regroup-start.js +1 -1
  121. package/lib/commands/menu/rename.js +1 -1
  122. package/lib/commands/menu/shared/compare-table.js +1 -1
  123. package/lib/commands/menu/shared/delete-plan.js +1 -1
  124. package/lib/commands/menu/shared/facts.js +1 -1
  125. package/lib/commands/menu/shared/index.js +1 -1
  126. package/lib/commands/menu/shared/inquirer.js +1 -1
  127. package/lib/commands/menu/shared/local-pages.js +1 -1
  128. package/lib/commands/menu/shared/logic.js +1 -1
  129. package/lib/commands/menu/shared/mutations.d.ts +8 -7
  130. package/lib/commands/menu/shared/mutations.js +1 -1
  131. package/lib/commands/menu/shared/service.js +1 -1
  132. package/lib/commands/menu/shared/sync-core.js +1 -1
  133. package/lib/commands/menu/shared/types.d.ts +17 -2
  134. package/lib/commands/menu/shared/update-core.js +1 -1
  135. package/lib/commands/menu/shared/valid-url.js +1 -1
  136. package/lib/commands/menu/sync.js +1 -1
  137. package/lib/commands/menu/visibility-update.d.ts +2 -0
  138. package/lib/commands/menu/visibility-update.js +1 -0
  139. package/lib/commands/notification/config-create.js +1 -1
  140. package/lib/commands/notification/config-delete.js +1 -1
  141. package/lib/commands/notification/config-list.js +1 -1
  142. package/lib/commands/notification/config-update.js +1 -1
  143. package/lib/commands/notification/index.js +1 -1
  144. package/lib/commands/notification/shared.js +1 -1
  145. package/lib/commands/ocr/index.js +1 -1
  146. package/lib/commands/page/create.js +1 -1
  147. package/lib/commands/page/custom/detail.js +1 -1
  148. package/lib/commands/page/custom/list.js +1 -1
  149. package/lib/commands/page/custom/publish.js +1 -1
  150. package/lib/commands/page/custom/shared.js +1 -1
  151. package/lib/commands/page/custom/syntax.js +1 -1
  152. package/lib/commands/page/custom/template.js +1 -1
  153. package/lib/commands/page/custom/update.js +1 -1
  154. package/lib/commands/page/data-list-status.js +1 -1
  155. package/lib/commands/page/generate-start.js +1 -1
  156. package/lib/commands/page/generate-status.js +1 -1
  157. package/lib/commands/page/index.js +1 -1
  158. package/lib/commands/page/pull.js +1 -1
  159. package/lib/commands/page/push.js +1 -1
  160. package/lib/commands/page/relation-audit.js +1 -1
  161. package/lib/commands/page/restore.js +1 -1
  162. package/lib/commands/page/shared.js +1 -1
  163. package/lib/commands/page/sync.js +1 -1
  164. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  165. package/lib/commands/project/create/format-elapsed.js +1 -1
  166. package/lib/commands/project/create/main.js +1 -1
  167. package/lib/commands/project/create/materialize-project-template.js +1 -1
  168. package/lib/commands/project/create/project-name.js +1 -1
  169. package/lib/commands/project/create/project-template-archive.js +1 -1
  170. package/lib/commands/project/create/project-template-path.js +1 -1
  171. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  172. package/lib/commands/project/create/use-format-code.js +1 -1
  173. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  174. package/lib/commands/project/index.js +1 -1
  175. package/lib/commands/project/upgrade.js +1 -1
  176. package/lib/commands/registry.js +1 -1
  177. package/lib/commands/role/delete.js +1 -1
  178. package/lib/commands/role/detail.js +1 -1
  179. package/lib/commands/role/index.js +1 -1
  180. package/lib/commands/role/list.js +1 -1
  181. package/lib/commands/role/shared.js +1 -1
  182. package/lib/commands/role/update.js +1 -1
  183. package/lib/commands/role/user-add.js +1 -1
  184. package/lib/commands/role/user-remove.js +1 -1
  185. package/lib/commands/role/user-resolve.js +1 -1
  186. package/lib/commands/run/index.js +1 -1
  187. package/lib/commands/schema.js +1 -1
  188. package/lib/commands/sql/create.js +1 -1
  189. package/lib/commands/sql/delete.js +1 -1
  190. package/lib/commands/sql/detail.js +1 -1
  191. package/lib/commands/sql/exec.js +1 -1
  192. package/lib/commands/sql/index.js +1 -1
  193. package/lib/commands/sql/list.js +1 -1
  194. package/lib/commands/sql/pull.js +1 -1
  195. package/lib/commands/sql/push.js +1 -1
  196. package/lib/commands/sql/shared.js +1 -1
  197. package/lib/commands/sql/status.js +1 -1
  198. package/lib/commands/sql/validate.js +1 -1
  199. package/lib/commands/task/index.js +1 -1
  200. package/lib/commands/task/status.js +1 -1
  201. package/lib/commands/tenant/index.js +1 -1
  202. package/lib/commands/tenant/members-list.js +1 -1
  203. package/lib/commands/tenant/shared.js +1 -1
  204. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  205. package/lib/commands/user-account/index.js +1 -1
  206. package/lib/commands/workspace/add.js +1 -1
  207. package/lib/commands/workspace/index.js +1 -1
  208. package/lib/commands/workspace/remove.js +1 -1
  209. package/lib/config/schema.js +1 -1
  210. package/lib/constant/cdn.js +1 -1
  211. package/lib/constant/cli.js +1 -1
  212. package/lib/constant/defaults.js +1 -1
  213. package/lib/constant/domain.js +1 -1
  214. package/lib/constant/env.js +1 -1
  215. package/lib/constant/output.js +1 -1
  216. package/lib/constant/paths.js +1 -1
  217. package/lib/constant/risk.js +1 -1
  218. package/lib/context/app-resolver.js +1 -1
  219. package/lib/context/auth-resolver.js +1 -1
  220. package/lib/context/config-loader.js +1 -1
  221. package/lib/context.js +1 -1
  222. package/lib/core/alias-resolver.js +1 -1
  223. package/lib/core/api-client.js +1 -1
  224. package/lib/core/bff/config.js +1 -1
  225. package/lib/core/bff/file-system.js +1 -1
  226. package/lib/core/bff/hash.js +1 -1
  227. package/lib/core/bff/lock.js +1 -1
  228. package/lib/core/bff/utils.js +1 -1
  229. package/lib/core/db-resolver.js +1 -1
  230. package/lib/core/page/file-system.js +1 -1
  231. package/lib/core/page/hash.js +1 -1
  232. package/lib/core/page/lock.js +1 -1
  233. package/lib/core/sql-index-auditor.js +1 -1
  234. package/lib/core/sql-sync/config.js +1 -1
  235. package/lib/core/sql-sync/file-system.js +1 -1
  236. package/lib/core/sql-sync/hash.js +1 -1
  237. package/lib/core/sql-sync/lock.js +1 -1
  238. package/lib/core/sql-sync/utils.js +1 -1
  239. package/lib/core/sql-validator.js +1 -1
  240. package/lib/errors.js +1 -1
  241. package/lib/framework/build-all-flags.js +1 -1
  242. package/lib/framework/error-output.js +1 -1
  243. package/lib/framework/explicit-yes.js +1 -1
  244. package/lib/framework/flags.js +1 -1
  245. package/lib/framework/help.js +1 -1
  246. package/lib/framework/index.js +1 -1
  247. package/lib/framework/output.js +1 -1
  248. package/lib/framework/response.js +1 -1
  249. package/lib/framework/runner-alias.js +1 -1
  250. package/lib/framework/runner.js +1 -1
  251. package/lib/framework/schema-export.js +1 -1
  252. package/lib/framework/types.js +1 -1
  253. package/lib/generated/build-info.d.ts +4 -4
  254. package/lib/generated/build-info.js +1 -1
  255. package/lib/help.js +1 -1
  256. package/lib/postinstall.js +1 -1
  257. package/lib/runtime/confirmation.js +1 -1
  258. package/lib/runtime/event.js +1 -1
  259. package/lib/runtime/index.js +1 -1
  260. package/lib/runtime/queue.js +1 -1
  261. package/lib/runtime/resolve.js +1 -1
  262. package/lib/skills/builtin-skill.js +1 -1
  263. package/lib/skills/main.js +1 -1
  264. package/lib/skills/npx-skills-add.js +1 -1
  265. package/lib/skills/skill-presence.js +1 -1
  266. package/lib/telemetry/cli-command-trace.js +1 -1
  267. package/lib/telemetry/cli-help-trace.js +1 -1
  268. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  269. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  270. package/lib/telemetry/send-cli-trace-log.js +1 -1
  271. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  272. package/lib/utils/ai_config.js +1 -1
  273. package/lib/utils/apply-jq-filter.js +1 -1
  274. package/lib/utils/cdn-config.js +1 -1
  275. package/lib/utils/check-sdk-version.js +1 -1
  276. package/lib/utils/cli-version-check.js +1 -1
  277. package/lib/utils/cli-version-policy.js +1 -1
  278. package/lib/utils/config.js +1 -1
  279. package/lib/utils/entity-with-id.js +1 -1
  280. package/lib/utils/file-utils.js +1 -1
  281. package/lib/utils/guides-cdn.js +1 -1
  282. package/lib/utils/http-client.js +1 -1
  283. package/lib/utils/is-non-interactive.js +1 -1
  284. package/lib/utils/logger.js +1 -1
  285. package/lib/utils/params.js +1 -1
  286. package/lib/utils/platform.js +1 -1
  287. package/lib/utils/rules-cdn.js +1 -1
  288. package/lib/utils/sleep.js +1 -1
  289. package/lib/utils/template-replacer.js +1 -1
  290. package/lib/utils/update-notice.js +1 -1
  291. package/lib/utils/version.js +1 -1
  292. package/lib/utils/with-active-cookie.js +1 -1
  293. package/lib/utils/write-cli-side-channel.js +1 -1
  294. package/package.json +1 -1
  295. package/skills/rabetbase/SKILL.md +4 -3
  296. package/skills/rabetbase/references/rabetbase-menu-list.md +3 -1
  297. package/skills/rabetbase/references/rabetbase-menu-visibility-update.md +59 -0
  298. package/skills/rabetbase/references/rabetbase-ocr.md +17 -2
  299. package/skills/rabetbase.manifest.json +4 -3
@@ -1 +1 @@
1
- function a229_0x1481(_0x1805db,_0x290398){_0x1805db=_0x1805db-0xc4;const _0x59f145=a229_0x59f1();let _0x14816d=_0x59f145[_0x1805db];return _0x14816d;}(function(_0x3d9c60,_0x456c6f){const _0x12bb50=a229_0x1481,_0x458fdf=_0x3d9c60();while(!![]){try{const _0x4f2ab0=-parseInt(_0x12bb50(0xd5))/0x1*(-parseInt(_0x12bb50(0xc5))/0x2)+parseInt(_0x12bb50(0xc8))/0x3*(parseInt(_0x12bb50(0xd3))/0x4)+parseInt(_0x12bb50(0xd0))/0x5*(-parseInt(_0x12bb50(0xd6))/0x6)+parseInt(_0x12bb50(0xd2))/0x7+parseInt(_0x12bb50(0xce))/0x8+parseInt(_0x12bb50(0xd7))/0x9*(-parseInt(_0x12bb50(0xcb))/0xa)+parseInt(_0x12bb50(0xca))/0xb;if(_0x4f2ab0===_0x456c6f)break;else _0x458fdf['push'](_0x458fdf['shift']());}catch(_0x52bd4e){_0x458fdf['push'](_0x458fdf['shift']());}}}(a229_0x59f1,0x22614));import{mkdir,readFile,writeFile}from'node:fs/promises';function a229_0x59f1(){const _0x38357e=['object','6wZfEMM','894ytNdHC','9yBCUFa','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','9906nbYnSH','ENOENT','apps','164445rBvABP','lastSync','1491622KTRXpC','1409600OqkUgJ','stringify','pages','395552CHcAKU','utf8','4955zNRnaL','code','1119020KSKana','4SlGbVQ'];a229_0x59f1=function(){return _0x38357e;};return a229_0x59f1();}import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x57c24c,_0x29fd96){const _0x498c54=a229_0x1481,_0x57e598={'apps':_0x57c24c[_0x498c54(0xc7)]&&typeof _0x57c24c[_0x498c54(0xc7)]===_0x498c54(0xd4)?_0x57c24c[_0x498c54(0xc7)]:{}};let _0x19cc2d=_0x57e598[_0x498c54(0xc7)][_0x29fd96];if(!_0x19cc2d)return _0x19cc2d={'lastSync':'','pages':{}},_0x57e598['apps'][_0x29fd96]=_0x19cc2d,{'lockData':_0x57e598,'appLock':_0x19cc2d};return!_0x19cc2d[_0x498c54(0xc9)]&&(_0x19cc2d[_0x498c54(0xc9)]=''),(!_0x19cc2d[_0x498c54(0xcd)]||typeof _0x19cc2d[_0x498c54(0xcd)]!==_0x498c54(0xd4))&&(_0x19cc2d['pages']={}),{'lockData':_0x57e598,'appLock':_0x19cc2d};}export async function readPageLockFile(_0x3102a1){const _0x3e1f7b=a229_0x1481;try{const _0x35742f=await readFile(_0x3102a1,'utf8'),_0x2b9e69=JSON['parse'](_0x35742f);return{'apps':_0x2b9e69[_0x3e1f7b(0xc7)]&&typeof _0x2b9e69[_0x3e1f7b(0xc7)]==='object'?_0x2b9e69[_0x3e1f7b(0xc7)]:{}};}catch(_0x27307e){if(_0x27307e[_0x3e1f7b(0xd1)]===_0x3e1f7b(0xc6))return null;throw new Error(_0x3e1f7b(0xc4)+String(_0x27307e));}}export async function writePageLockFile(_0x362d69,_0x43615a){const _0x9a6ce8=a229_0x1481;await mkdir(dirname(_0x362d69),{'recursive':!![]}),await writeFile(_0x362d69,JSON[_0x9a6ce8(0xcc)](_0x43615a,null,0x2),_0x9a6ce8(0xcf));}
1
+ (function(_0x38cc16,_0x5a471f){const _0x2d642f=a230_0x1a31,_0x126a1b=_0x38cc16();while(!![]){try{const _0x568ad1=parseInt(_0x2d642f(0x170))/0x1*(-parseInt(_0x2d642f(0x165))/0x2)+-parseInt(_0x2d642f(0x166))/0x3+parseInt(_0x2d642f(0x16f))/0x4*(-parseInt(_0x2d642f(0x16e))/0x5)+-parseInt(_0x2d642f(0x161))/0x6+parseInt(_0x2d642f(0x167))/0x7*(parseInt(_0x2d642f(0x160))/0x8)+-parseInt(_0x2d642f(0x15d))/0x9+-parseInt(_0x2d642f(0x164))/0xa*(-parseInt(_0x2d642f(0x16a))/0xb);if(_0x568ad1===_0x5a471f)break;else _0x126a1b['push'](_0x126a1b['shift']());}catch(_0x41f22a){_0x126a1b['push'](_0x126a1b['shift']());}}}(a230_0x1a39,0xa6380));import{mkdir,readFile,writeFile}from'node:fs/promises';function a230_0x1a39(){const _0x19dd3a=['object','utf8','725105psVlNl','12QCfTeL','1gOBPIB','stringify','3170025kzpqQB','pages','code','24SNnoiy','3914136aafGlj','apps','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','14540bhjFMv','593470oAoVDn','3379989JAEUtm','801780tjrLJM','ENOENT','parse','24211Zdwoml','lastSync'];a230_0x1a39=function(){return _0x19dd3a;};return a230_0x1a39();}function a230_0x1a31(_0x4bbadb,_0x148c88){_0x4bbadb=_0x4bbadb-0x15c;const _0x1a3948=a230_0x1a39();let _0x1a31a6=_0x1a3948[_0x4bbadb];return _0x1a31a6;}import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x2fb754,_0x1ae47a){const _0x1b2c66=a230_0x1a31,_0x27daf1={'apps':_0x2fb754[_0x1b2c66(0x162)]&&typeof _0x2fb754[_0x1b2c66(0x162)]===_0x1b2c66(0x16c)?_0x2fb754[_0x1b2c66(0x162)]:{}};let _0x952f=_0x27daf1[_0x1b2c66(0x162)][_0x1ae47a];if(!_0x952f)return _0x952f={'lastSync':'','pages':{}},_0x27daf1[_0x1b2c66(0x162)][_0x1ae47a]=_0x952f,{'lockData':_0x27daf1,'appLock':_0x952f};return!_0x952f[_0x1b2c66(0x16b)]&&(_0x952f[_0x1b2c66(0x16b)]=''),(!_0x952f[_0x1b2c66(0x15e)]||typeof _0x952f[_0x1b2c66(0x15e)]!==_0x1b2c66(0x16c))&&(_0x952f[_0x1b2c66(0x15e)]={}),{'lockData':_0x27daf1,'appLock':_0x952f};}export async function readPageLockFile(_0x2a17bf){const _0x586c2b=a230_0x1a31;try{const _0x3d7db9=await readFile(_0x2a17bf,_0x586c2b(0x16d)),_0x590b89=JSON[_0x586c2b(0x169)](_0x3d7db9);return{'apps':_0x590b89['apps']&&typeof _0x590b89[_0x586c2b(0x162)]==='object'?_0x590b89[_0x586c2b(0x162)]:{}};}catch(_0x14dfc6){if(_0x14dfc6[_0x586c2b(0x15f)]===_0x586c2b(0x168))return null;throw new Error(_0x586c2b(0x163)+String(_0x14dfc6));}}export async function writePageLockFile(_0x314347,_0x7b0f47){const _0x22382f=a230_0x1a31;await mkdir(dirname(_0x314347),{'recursive':!![]}),await writeFile(_0x314347,JSON[_0x22382f(0x15c)](_0x7b0f47,null,0x2),_0x22382f(0x16d));}
@@ -1 +1 @@
1
- (function(_0x389553,_0x479f2c){const _0x3af878=a231_0x430a,_0x13fb40=_0x389553();while(!![]){try{const _0x3eb30d=-parseInt(_0x3af878(0xc0))/0x1*(-parseInt(_0x3af878(0xb7))/0x2)+parseInt(_0x3af878(0xd2))/0x3+-parseInt(_0x3af878(0xbe))/0x4+-parseInt(_0x3af878(0xd6))/0x5*(parseInt(_0x3af878(0xe5))/0x6)+parseInt(_0x3af878(0xb6))/0x7*(-parseInt(_0x3af878(0xe1))/0x8)+-parseInt(_0x3af878(0xe8))/0x9+parseInt(_0x3af878(0xf2))/0xa;if(_0x3eb30d===_0x479f2c)break;else _0x13fb40['push'](_0x13fb40['shift']());}catch(_0x5e082e){_0x13fb40['push'](_0x13fb40['shift']());}}}(a231_0x4c78,0xc76e5));import{MYBATIS_DYNAMIC_END_MARKER,MYBATIS_DYNAMIC_START_MARKER,MYBATIS_INCLUDE_MARKER,normalizeSqlForStaticAnalysis}from'./sql-validator.js';export function auditSqlJoinIndexes(_0x4e0f6a,_0x1a5cf1){const _0x9bb2a8=a231_0x430a,_0x123e88=[],_0x3b04cb=normalizeSqlForStaticAnalysis(_0x4e0f6a),_0x21657c=(_0x3b04cb[_0x9bb2a8(0xcb)]?[]:extractJoinFacts(_0x3b04cb[_0x9bb2a8(0xd7)]))[_0x9bb2a8(0xf8)](_0x25a1f3=>{const _0x22ccce=_0x9bb2a8;if(_0x25a1f3[_0x22ccce(0xfe)]||_0x25a1f3[_0x22ccce(0xd5)][_0x22ccce(0xf6)]===0x0)return _0x123e88['push']({'code':'JOIN_PREDICATE_UNSUPPORTED','table':_0x25a1f3[_0x22ccce(0xf0)],'alias':_0x25a1f3[_0x22ccce(0xf4)],'columns':_0x25a1f3[_0x22ccce(0xd5)],'reason':_0x25a1f3['unsupportedReason']??_0x22ccce(0xe7)}),{'table':_0x25a1f3[_0x22ccce(0xf0)],'alias':_0x25a1f3[_0x22ccce(0xf4)],'columns':_0x25a1f3[_0x22ccce(0xd5)],'status':'unavailable'};const _0x3e4c65=resolveTableMetadata(_0x1a5cf1,_0x25a1f3['table']),_0x53106b=(_0x3e4c65?.[_0x22ccce(0xc4)]??[])[_0x22ccce(0xf8)](_0xa4292=>({'index':_0xa4292,'matchedPrefix':findEqualityPrefix(_0xa4292[_0x22ccce(0xd5)],_0x25a1f3[_0x22ccce(0xd5)])}))[_0x22ccce(0xb9)](_0x2722d0=>_0x2722d0[_0x22ccce(0xfc)][_0x22ccce(0xf6)]>0x0),_0x16979d=_0x53106b[_0x22ccce(0xc7)]((_0x5c96a0,_0x348ca3)=>!_0x5c96a0||_0x348ca3[_0x22ccce(0xfc)][_0x22ccce(0xf6)]>_0x5c96a0[_0x22ccce(0xfc)][_0x22ccce(0xf6)]?_0x348ca3:_0x5c96a0,_0x53106b[0x0]);if(_0x16979d)return{'table':_0x25a1f3[_0x22ccce(0xf0)],'alias':_0x25a1f3[_0x22ccce(0xf4)],'columns':_0x25a1f3[_0x22ccce(0xd5)],'status':'covered','matchedIndex':{..._0x16979d['index'],'matchedPrefix':_0x16979d[_0x22ccce(0xfc)]}};const _0x9f01d6=_0x3e4c65?.['indexes'][_0x22ccce(0xb9)](_0x3219db=>_0x3219db[_0x22ccce(0xd5)]['some'](_0x4c9f72=>_0x25a1f3[_0x22ccce(0xd5)]['some'](_0x5a94dd=>columnNamesMatch(_0x4c9f72,_0x5a94dd))))??[];if(_0x9f01d6[_0x22ccce(0xf6)]>0x0)return _0x123e88[_0x22ccce(0xd3)]({'code':_0x22ccce(0xe2),'table':_0x25a1f3['table'],'alias':_0x25a1f3[_0x22ccce(0xf4)],'columns':_0x25a1f3[_0x22ccce(0xd5)],'reason':_0x22ccce(0xe9)}),{'table':_0x25a1f3[_0x22ccce(0xf0)],'alias':_0x25a1f3['alias'],'columns':_0x25a1f3[_0x22ccce(0xd5)],'status':_0x22ccce(0xd0),'candidateIndexes':_0x9f01d6};if(_0x3e4c65&&_0x3e4c65[_0x22ccce(0xb5)]!==![]&&_0x3e4c65[_0x22ccce(0xc4)]['length']>0x0&&_0x25a1f3[_0x22ccce(0xd5)][_0x22ccce(0xf6)]>0x0)return _0x123e88[_0x22ccce(0xd3)]({'code':_0x22ccce(0xf5),'table':_0x25a1f3[_0x22ccce(0xf0)],'alias':_0x25a1f3[_0x22ccce(0xf4)],'columns':_0x25a1f3[_0x22ccce(0xd5)],'reason':_0x22ccce(0xbd)}),{'table':_0x25a1f3[_0x22ccce(0xf0)],'alias':_0x25a1f3[_0x22ccce(0xf4)],'columns':_0x25a1f3['columns'],'status':'warning'};return _0x123e88['push']({'code':'INDEX_METADATA_UNAVAILABLE','table':_0x25a1f3[_0x22ccce(0xf0)],'alias':_0x25a1f3[_0x22ccce(0xf4)],'columns':_0x25a1f3[_0x22ccce(0xd5)],'reason':_0x3e4c65?_0x22ccce(0xc9):_0x22ccce(0xc1)}),{'table':_0x25a1f3[_0x22ccce(0xf0)],'alias':_0x25a1f3['alias'],'columns':_0x25a1f3[_0x22ccce(0xd5)],'status':_0x22ccce(0xfb)};});return{'checked':_0x21657c[_0x9bb2a8(0xf6)]>0x0,'joins':_0x21657c,'warnings':_0x123e88};}function extractJoinFacts(_0x17c099){const _0x384862=a231_0x430a,_0x20bc3a=maskNestedQueries(stripSqlNoise(_0x17c099)),_0x3ce8ae=maskQuotedIdentifiers(_0x20bc3a),_0x4ca9aa=[],_0x287f71=new Set(),_0x454b50=/\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 _0xd48868 of _0x20bc3a[_0x384862(0xe3)](_0x454b50)){const _0x3330ca=_0xd48868[_0x384862(0xca)]??0x0,_0x3a0ff4=_0xd48868[0x0]['search'](/\bJOIN\b/i),_0x868293=_0x3330ca+Math['max'](0x0,_0x3a0ff4);if(!/^JOIN\b/i[_0x384862(0xda)](_0x3ce8ae[_0x384862(0xcd)](_0x868293)))continue;_0x287f71[_0x384862(0xf1)](_0x868293);const _0x585711=normalizeIdentifier(_0xd48868[0x1]||_0x384862(0xe4)),_0x244414=normalizeIdentifier(_0xd48868[0x2]??''),_0x4b15a=normalizeIdentifier(_0xd48868[0x3]||_0x244414[_0x384862(0xef)]('.')['at'](-0x1)||_0x244414),_0x562889=[],_0x29dc2e=_0x244414===_0x384862(0xe0);let _0x57ef0b=_0x585711===_0x384862(0xc6)||_0x585711===_0x384862(0xc8)||_0x29dc2e,_0x5981a0=_0x57ef0b?_0x29dc2e?_0x384862(0xba):_0x585711['toUpperCase']()+_0x384862(0xcc):undefined;const _0x4a4961=stripOuterParentheses(_0xd48868[0x4]??''),_0xbd0737=_0x4a4961[_0x384862(0xdc)](MYBATIS_DYNAMIC_START_MARKER)||_0x4a4961[_0x384862(0xdc)](MYBATIS_DYNAMIC_END_MARKER),_0x24891e=_0x4a4961[_0x384862(0xdc)](MYBATIS_INCLUDE_MARKER);_0xbd0737&&(_0x57ef0b=!![],_0x5981a0??=_0x384862(0xc3));_0x24891e&&(_0x57ef0b=!![],_0x5981a0??=_0x384862(0xea));const _0x3a27fa=_0x4a4961[_0x384862(0xff)](MYBATIS_DYNAMIC_START_MARKER,'\x20')['replaceAll'](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x384862(0xff)](MYBATIS_INCLUDE_MARKER,'\x20');hasTopLevelKeyword(_0x3a27fa,'OR')&&(_0x57ef0b=!![],_0x5981a0??='OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.');for(const _0x5725bf of splitTopLevelAnd(_0x3a27fa)){const _0x3b80d2=stripOuterParentheses(_0x5725bf);if(hasTopLevelKeyword(_0x3b80d2,'OR')){_0x57ef0b=!![],_0x5981a0??='OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.';continue;}const _0x569b75=splitEquality(_0x3b80d2);if(!_0x569b75){containsColumnReference(_0x5725bf,_0x4b15a)&&(_0x57ef0b=!![]);continue;}const _0x5505bb=parseDirectColumnReference(_0x569b75[0x0],_0x4b15a),_0x3b2d4e=parseDirectColumnReference(_0x569b75[0x1],_0x4b15a),_0x4e8a9a=containsColumnReference(_0x569b75[0x0],_0x4b15a),_0x5cee3e=containsColumnReference(_0x569b75[0x1],_0x4b15a),_0x59bcb4=_0x5505bb&&!_0x5cee3e?_0x5505bb:_0x3b2d4e&&!_0x4e8a9a?_0x3b2d4e:null;if(_0x59bcb4&&!_0x562889[_0x384862(0xdc)](_0x59bcb4))_0x562889['push'](_0x59bcb4);else!_0x59bcb4&&containsColumnReference(_0x5725bf,_0x4b15a)&&(_0x57ef0b=!![]);}_0x4ca9aa[_0x384862(0xd3)]({'table':_0x244414,'alias':_0x4b15a,'columns':_0x562889,'unsupportedPredicate':_0x57ef0b,'unsupportedReason':_0x5981a0,'containsUnresolvedInclude':_0x24891e,'position':_0x868293});}for(const _0x3ce8c8 of _0x3ce8ae[_0x384862(0xe3)](/\bJOIN\b/gi)){const _0x2a6cf7=_0x3ce8c8[_0x384862(0xca)]??0x0;if(_0x287f71[_0x384862(0xf7)](_0x2a6cf7))continue;const _0x3f3a8c=/^\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?/[_0x384862(0xce)](_0x20bc3a['slice'](_0x2a6cf7+_0x3ce8c8[0x0][_0x384862(0xf6)])),_0xf7555a=normalizeIdentifier(_0x3f3a8c?.[0x1]||_0x384862(0xc5)),_0x5f25b4=normalizeIdentifier(_0x3f3a8c?.[0x2]||''),_0x4b237d=isSqlClauseKeyword(_0x5f25b4)?_0xf7555a[_0x384862(0xef)]('.')['at'](-0x1)||_0xf7555a:_0x5f25b4||_0xf7555a[_0x384862(0xef)]('.')['at'](-0x1)||_0xf7555a;_0x4ca9aa['push']({'table':_0xf7555a,'alias':_0x4b237d,'columns':[],'unsupportedPredicate':!![],'unsupportedReason':_0x384862(0xd1),'position':_0x2a6cf7});}const _0x21db5d=_0x3ce8ae[_0x384862(0xfd)](MYBATIS_INCLUDE_MARKER);return _0x21db5d>=0x0&&!_0x4ca9aa[_0x384862(0xed)](_0x20d501=>_0x20d501[_0x384862(0xe6)])&&_0x4ca9aa[_0x384862(0xd3)]({'table':'unknown','alias':_0x384862(0xc5),'columns':[],'unsupportedPredicate':!![],'unsupportedReason':_0x384862(0xb8),'containsUnresolvedInclude':!![],'position':_0x21db5d}),_0x4ca9aa[_0x384862(0xc2)]((_0x1693e5,_0x53a28b)=>_0x1693e5[_0x384862(0xdb)]-_0x53a28b[_0x384862(0xdb)]);}function stripSqlNoise(_0x30a966){const _0x1591d9=a231_0x430a,_0x2b217a=Array[_0x1591d9(0xbc)](_0x30a966),_0x2e1056=(_0x1a4659,_0x48c01e)=>{for(let _0x47ad82=_0x1a4659;_0x47ad82<_0x48c01e;_0x47ad82+=0x1){_0x2b217a[_0x47ad82]!=='\x0a'&&_0x2b217a[_0x47ad82]!=='\x0d'&&(_0x2b217a[_0x47ad82]='\x20');}};for(let _0xe29261=0x0;_0xe29261<_0x2b217a[_0x1591d9(0xf6)];_0xe29261+=0x1){const _0x2e2364=_0x2b217a[_0xe29261],_0xb38abf=_0x2b217a[_0xe29261+0x1];if(_0x2e2364==='\x27'||_0x2e2364==='\x22'||_0x2e2364==='`'){const _0x4a2ec6=_0x2e2364,_0x9ba08f=_0xe29261;_0xe29261+=0x1;while(_0xe29261<_0x2b217a[_0x1591d9(0xf6)]){if(_0x2b217a[_0xe29261]==='\x5c'&&_0xe29261+0x1<_0x2b217a['length']){_0xe29261+=0x2;continue;}if(_0x2b217a[_0xe29261]!==_0x4a2ec6){_0xe29261+=0x1;continue;}if(_0x2b217a[_0xe29261+0x1]===_0x4a2ec6){_0xe29261+=0x2;continue;}break;}if(_0x4a2ec6==='\x27')_0x2e1056(_0x9ba08f,Math[_0x1591d9(0xdf)](_0xe29261+0x1,_0x2b217a[_0x1591d9(0xf6)]));continue;}if(_0x2e2364==='-'&&_0xb38abf==='-'){const _0x43a55b=_0xe29261;while(_0xe29261<_0x2b217a[_0x1591d9(0xf6)]&&_0x2b217a[_0xe29261]!=='\x0a')_0xe29261+=0x1;_0x2e1056(_0x43a55b,_0xe29261);continue;}if(_0x2e2364==='/'&&_0xb38abf==='*'){const _0x2adeab=_0xe29261;_0xe29261+=0x2;while(_0xe29261<_0x2b217a[_0x1591d9(0xf6)]&&!(_0x2b217a[_0xe29261]==='*'&&_0x2b217a[_0xe29261+0x1]==='/')){_0xe29261+=0x1;}_0xe29261=Math['min'](_0xe29261+0x1,_0x2b217a[_0x1591d9(0xf6)]-0x1),_0x2e1056(_0x2adeab,_0xe29261+0x1);continue;}if(_0x2e2364==='#'&&_0xb38abf!=='{'){const _0x30dc8=_0xe29261;while(_0xe29261<_0x2b217a[_0x1591d9(0xf6)]&&_0x2b217a[_0xe29261]!=='\x0a')_0xe29261+=0x1;_0x2e1056(_0x30dc8,_0xe29261);continue;}if((_0x2e2364==='#'||_0x2e2364==='$')&&_0xb38abf==='{'){const _0x303259=_0xe29261;_0xe29261+=0x2;while(_0xe29261<_0x2b217a['length']&&_0x2b217a[_0xe29261]!=='}')_0xe29261+=0x1;_0x2e1056(_0x303259,Math[_0x1591d9(0xdf)](_0xe29261+0x1,_0x2b217a['length']));}}return _0x2b217a[_0x1591d9(0xfa)]('');}function a231_0x4c78(){const _0x498d6d=['The\x20dataset\x20returned\x20no\x20distinguishable\x20index\x20metadata.','index','error','\x20JOIN\x20direction\x20is\x20not\x20supported\x20by\x20static\x20index\x20auditing.','slice','exec','trim','warning','Only\x20explicit\x20table\x20JOIN\x20clauses\x20with\x20an\x20ON\x20predicate\x20are\x20supported.','2973858sRNPPe','push','\x5c$&','columns','15iJSskd','sql','match','startsWith','test','position','includes','toUpperCase','max','min','__sq__','104uGkLVj','JOIN_INDEX_NOT_USABLE','matchAll','INNER','1233126VJeICJ','containsUnresolvedInclude','Not\x20every\x20JOIN\x20target\x20predicate\x20could\x20be\x20audited\x20safely.','8045262RlwicN','Relevant\x20columns\x20do\x20not\x20form\x20a\x20complete\x20leftmost\x20index\x20prefix.','MyBatis\x20<include>\x20JOIN\x20fragments\x20cannot\x20be\x20expanded\x20statically.','endsWith','where','some','replace','split','table','add','33973100MxBvHX','inner','alias','JOIN_INDEX_MISSING','length','has','map','using','join','unavailable','matchedPrefix','indexOf','unsupportedPredicate','replaceAll','metadataAvailable','639478BwpSXa','62XPZhtS','MyBatis\x20<include>\x20fragments\x20cannot\x20be\x20expanded\x20for\x20JOIN\x20auditing.','filter','Derived-table\x20JOIN\x20targets\x20are\x20not\x20supported.','cross','from','No\x20reported\x20index\x20contains\x20the\x20JOIN\x20access\x20columns.','6246880uDoTQq','(?:^|[^\x5cw$])','22196qPdhfn','No\x20dataset\x20metadata\x20matched\x20the\x20JOIN\x20table.','sort','MyBatis\x20dynamic\x20JOIN\x20predicates\x20cannot\x20be\x20audited\x20deterministically.','indexes','unknown','right','reduce','full'];a231_0x4c78=function(){return _0x498d6d;};return a231_0x4c78();}function maskQuotedIdentifiers(_0x437f0f){const _0x201119=a231_0x430a,_0x13ae3c=Array['from'](_0x437f0f);for(let _0x129045=0x0;_0x129045<_0x13ae3c[_0x201119(0xf6)];_0x129045+=0x1){const _0x468f3c=_0x13ae3c[_0x129045];if(_0x468f3c!=='\x22'&&_0x468f3c!=='`')continue;_0x129045+=0x1;while(_0x129045<_0x13ae3c['length']){if(_0x13ae3c[_0x129045]===_0x468f3c){if(_0x13ae3c[_0x129045+0x1]===_0x468f3c){_0x13ae3c[_0x129045]='\x20',_0x13ae3c[_0x129045+0x1]='\x20',_0x129045+=0x2;continue;}break;}_0x13ae3c[_0x129045]='\x20',_0x129045+=0x1;}}return _0x13ae3c[_0x201119(0xfa)]('');}function maskNestedQueries(_0x202547){const _0x4ce457=a231_0x430a,_0x327458=Array[_0x4ce457(0xbc)](_0x202547);for(let _0x2f9831=0x0;_0x2f9831<_0x327458[_0x4ce457(0xf6)];_0x2f9831+=0x1){if(_0x327458[_0x2f9831]!=='(')continue;const _0x4f4beb=_0x202547[_0x4ce457(0xcd)](_0x2f9831+0x1);if(!/^\s*(?:SELECT|WITH)\b/i[_0x4ce457(0xda)](_0x4f4beb))continue;let _0x270469=0x1,_0x15c179=_0x2f9831+0x1;for(;_0x15c179<_0x327458['length']&&_0x270469>0x0;_0x15c179+=0x1){if(_0x327458[_0x15c179]==='(')_0x270469+=0x1;if(_0x327458[_0x15c179]===')')_0x270469-=0x1;}if(_0x270469!==0x0)continue;for(let _0x3a7fab=_0x2f9831;_0x3a7fab<_0x15c179;_0x3a7fab+=0x1){_0x327458[_0x3a7fab]='\x20';}const _0x256013=_0x4ce457(0xe0);for(let _0x31bfd9=0x0;_0x31bfd9<_0x256013[_0x4ce457(0xf6)]&&_0x2f9831+_0x31bfd9<_0x15c179;_0x31bfd9+=0x1){_0x327458[_0x2f9831+_0x31bfd9]=_0x256013[_0x31bfd9];}_0x2f9831=_0x15c179-0x1;}return _0x327458[_0x4ce457(0xfa)]('');}function splitTopLevelAnd(_0x4c1179){const _0x4b332c=a231_0x430a,_0x21096e=[];let _0x5d4b49=0x0,_0x1defff=0x0;for(let _0x5b08a3=0x0;_0x5b08a3<_0x4c1179[_0x4b332c(0xf6)];_0x5b08a3+=0x1){const _0x3ed53d=_0x4c1179[_0x5b08a3];if(_0x3ed53d==='(')_0x5d4b49+=0x1;if(_0x3ed53d===')')_0x5d4b49=Math[_0x4b332c(0xde)](0x0,_0x5d4b49-0x1);_0x5d4b49===0x0&&_0x4c1179[_0x4b332c(0xcd)](_0x5b08a3)[_0x4b332c(0xd8)](/^AND\b/i)&&(_0x5b08a3===0x0||/\s/[_0x4b332c(0xda)](_0x4c1179[_0x5b08a3-0x1]??''))&&(_0x21096e[_0x4b332c(0xd3)](_0x4c1179['slice'](_0x1defff,_0x5b08a3)[_0x4b332c(0xcf)]()),_0x5b08a3+=0x2,_0x1defff=_0x5b08a3+0x1);}const _0x295bc6=_0x4c1179['slice'](_0x1defff)[_0x4b332c(0xcf)]();if(_0x295bc6)_0x21096e['push'](_0x295bc6);return _0x21096e;}function hasTopLevelKeyword(_0x2e56bb,_0x5e64c1){const _0x37a971=a231_0x430a;let _0xf847e0=0x0;for(let _0x1999ca=0x0;_0x1999ca<_0x2e56bb['length'];_0x1999ca+=0x1){const _0x473259=_0x2e56bb[_0x1999ca];if(_0x473259==='(')_0xf847e0+=0x1;if(_0x473259===')')_0xf847e0=Math[_0x37a971(0xde)](0x0,_0xf847e0-0x1);if(_0xf847e0!==0x0)continue;const _0x131b1f=_0x2e56bb[_0x37a971(0xcd)](_0x1999ca,_0x1999ca+_0x5e64c1['length']),_0x280bcd=_0x2e56bb[_0x1999ca-0x1]??'\x20',_0x47cb1f=_0x2e56bb[_0x1999ca+_0x5e64c1[_0x37a971(0xf6)]]??'\x20';if(_0x131b1f[_0x37a971(0xdd)]()===_0x5e64c1[_0x37a971(0xdd)]()&&!/[\w$]/['test'](_0x280bcd)&&!/[\w$]/[_0x37a971(0xda)](_0x47cb1f))return!![];}return![];}function splitEquality(_0x5355db){const _0x239f8d=a231_0x430a,_0x4544fe=stripOuterParentheses(_0x5355db);let _0x4d158c=0x0,_0x513304;for(let _0x5c17c2=0x0;_0x5c17c2<_0x4544fe[_0x239f8d(0xf6)];_0x5c17c2+=0x1){const _0x2004dc=_0x4544fe[_0x5c17c2];if(_0x2004dc==='(')_0x4d158c+=0x1;if(_0x2004dc===')')_0x4d158c=Math['max'](0x0,_0x4d158c-0x1);const _0x244080=_0x4544fe[_0x5c17c2-0x1]??'',_0xf76cc3=_0x4544fe[_0x5c17c2+0x1]??'';if(_0x2004dc==='='&&_0x4d158c===0x0&&!/[!<>=:]/[_0x239f8d(0xda)](_0x244080)&&_0xf76cc3!=='='){if(_0x513304!==undefined)return null;_0x513304=_0x5c17c2;}}return _0x513304===undefined?null:[_0x4544fe[_0x239f8d(0xcd)](0x0,_0x513304)[_0x239f8d(0xcf)](),_0x4544fe[_0x239f8d(0xcd)](_0x513304+0x1)[_0x239f8d(0xcf)]()];}function parseDirectColumnReference(_0x1e7428,_0x4fb7a2){const _0x29a7eb=a231_0x430a,_0x2f6663=/^([`"]?[\w$]+[`"]?)\s*\.\s*([`"]?[\w$]+[`"]?)$/[_0x29a7eb(0xce)](stripOuterParentheses(_0x1e7428));if(!_0x2f6663)return null;if(normalizeIdentifier(_0x2f6663[0x1]??'')!==normalizeIdentifier(_0x4fb7a2))return null;return normalizeIdentifier(_0x2f6663[0x2]??'');}function containsColumnReference(_0x387778,_0x2e5e99){const _0x170da8=a231_0x430a,_0x980e41=_0x387778[_0x170da8(0xee)](/[`"]/g,''),_0x4a2e6c=_0x2e5e99[_0x170da8(0xee)](/[.*+?^${}()|[\]\\]/g,_0x170da8(0xd4));return new RegExp(_0x170da8(0xbf)+_0x4a2e6c+'\x5cs*\x5c.\x5cs*[\x5cw$]+','i')[_0x170da8(0xda)](_0x980e41);}function findEqualityPrefix(_0x2ec3d5,_0x3c3169){const _0x5b0e43=a231_0x430a,_0x5d5c1f=new Set(_0x3c3169[_0x5b0e43(0xf8)](normalizeIdentifier)),_0x1d3478=[];for(const _0x4dd011 of _0x2ec3d5){if(!_0x5d5c1f[_0x5b0e43(0xf7)](normalizeIdentifier(_0x4dd011)))break;_0x1d3478['push'](_0x4dd011);}return _0x1d3478;}function resolveTableMetadata(_0x2f11ef,_0x42dcf5){const _0x536aad=a231_0x430a,_0x5843a3=normalizeIdentifier(_0x42dcf5),_0x5472cd=_0x2f11ef['filter'](_0xe8dbef=>normalizeIdentifier(_0xe8dbef['tableName'])===_0x5843a3);if(_0x5472cd[_0x536aad(0xf6)]===0x1)return _0x5472cd[0x0];const _0x433b51=_0x5843a3[_0x536aad(0xdc)]('.'),_0x5c2c32=_0x5843a3[_0x536aad(0xef)]('.')['at'](-0x1),_0x217768=_0x2f11ef[_0x536aad(0xb9)](_0x41560b=>{const _0x242981=_0x536aad,_0x1f979f=normalizeIdentifier(_0x41560b['tableName']);if(_0x433b51&&_0x1f979f[_0x242981(0xdc)]('.'))return![];return _0x1f979f[_0x242981(0xef)]('.')['at'](-0x1)===_0x5c2c32;});return _0x217768[_0x536aad(0xf6)]===0x1?_0x217768[0x0]:undefined;}function columnNamesMatch(_0x5b4efc,_0x4589a1){return normalizeIdentifier(_0x5b4efc)===normalizeIdentifier(_0x4589a1);}function normalizeIdentifier(_0x3018e8){const _0x262a72=a231_0x430a;return _0x3018e8['replace'](/[`"]/g,'')[_0x262a72(0xcf)]()['toLowerCase']();}function isSqlClauseKeyword(_0x31bc37){const _0x1035f6=a231_0x430a;return new Set(['on',_0x1035f6(0xf9),_0x1035f6(0xec),_0x1035f6(0xfa),_0x1035f6(0xf3),'left',_0x1035f6(0xc6),_0x1035f6(0xc8),_0x1035f6(0xbb),'natural'])[_0x1035f6(0xf7)](_0x31bc37);}function a231_0x430a(_0x55781d,_0x43628a){_0x55781d=_0x55781d-0xb5;const _0x4c7801=a231_0x4c78();let _0x430a68=_0x4c7801[_0x55781d];return _0x430a68;}function stripOuterParentheses(_0x405653){const _0x46e29a=a231_0x430a;let _0x29388e=_0x405653[_0x46e29a(0xcf)]();while(_0x29388e[_0x46e29a(0xd9)]('(')&&_0x29388e[_0x46e29a(0xeb)](')')){let _0x207538=0x0,_0x1b9f44=!![];for(let _0x591a20=0x0;_0x591a20<_0x29388e[_0x46e29a(0xf6)];_0x591a20+=0x1){if(_0x29388e[_0x591a20]==='(')_0x207538+=0x1;if(_0x29388e[_0x591a20]===')')_0x207538-=0x1;if(_0x207538===0x0&&_0x591a20<_0x29388e[_0x46e29a(0xf6)]-0x1){_0x1b9f44=![];break;}}if(!_0x1b9f44||_0x207538!==0x0)break;_0x29388e=_0x29388e['slice'](0x1,-0x1)[_0x46e29a(0xcf)]();}return _0x29388e;}
1
+ function a232_0x4d2f(){const _0x4b2e01=['matchedPrefix','reduce','tableName','No\x20reported\x20index\x20contains\x20the\x20JOIN\x20access\x20columns.','No\x20dataset\x20metadata\x20matched\x20the\x20JOIN\x20table.','test','sort','toUpperCase','left','push','unknown','length','1619400OKuEXL','containsUnresolvedInclude','MyBatis\x20<include>\x20JOIN\x20fragments\x20cannot\x20be\x20expanded\x20statically.','6WbNQlN','indexOf','MyBatis\x20<include>\x20fragments\x20cannot\x20be\x20expanded\x20for\x20JOIN\x20auditing.','INNER','Derived-table\x20JOIN\x20targets\x20are\x20not\x20supported.','max','join','cross','JOIN_INDEX_MISSING','5ieLqGZ','match','slice','3041766PkpoCS','6004580eoiaRz','using','__sq__','columns','unsupportedPredicate','warning','8918336EhGfgi','replace','error','trim','replaceAll','right','add','some','covered','Only\x20explicit\x20table\x20JOIN\x20clauses\x20with\x20an\x20ON\x20predicate\x20are\x20supported.','split','where','table','\x20JOIN\x20direction\x20is\x20not\x20supported\x20by\x20static\x20index\x20auditing.','5936226rfiVHO','map','filter','from','has','exec','metadataAvailable','JOIN_INDEX_NOT_USABLE','natural','sql','(?:^|[^\x5cw$])','alias','toLowerCase','Relevant\x20columns\x20do\x20not\x20form\x20a\x20complete\x20leftmost\x20index\x20prefix.','18015831wjzgLq','JOIN_PREDICATE_UNSUPPORTED','The\x20dataset\x20returned\x20no\x20distinguishable\x20index\x20metadata.','indexes','index','includes','MyBatis\x20dynamic\x20JOIN\x20predicates\x20cannot\x20be\x20audited\x20deterministically.','unavailable','position','min','startsWith','408723EKDKyD','OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.'];a232_0x4d2f=function(){return _0x4b2e01;};return a232_0x4d2f();}(function(_0x10538e,_0x471d29){const _0x5bfff0=a232_0x2e69,_0x16f17c=_0x10538e();while(!![]){try{const _0x2c1cf9=parseInt(_0x5bfff0(0x208))/0x1*(-parseInt(_0x5bfff0(0x219))/0x2)+parseInt(_0x5bfff0(0x1da))/0x3+parseInt(_0x5bfff0(0x1db))/0x4+parseInt(_0x5bfff0(0x1d7))/0x5*(-parseInt(_0x5bfff0(0x1ef))/0x6)+-parseInt(_0x5bfff0(0x1e1))/0x7+-parseInt(_0x5bfff0(0x216))/0x8+parseInt(_0x5bfff0(0x1fd))/0x9;if(_0x2c1cf9===_0x471d29)break;else _0x16f17c['push'](_0x16f17c['shift']());}catch(_0x587757){_0x16f17c['push'](_0x16f17c['shift']());}}}(a232_0x4d2f,0xc95ed));import{MYBATIS_DYNAMIC_END_MARKER,MYBATIS_DYNAMIC_START_MARKER,MYBATIS_INCLUDE_MARKER,normalizeSqlForStaticAnalysis}from'./sql-validator.js';export function auditSqlJoinIndexes(_0x1a6c1,_0x4476fa){const _0x3e1007=a232_0x2e69,_0x29b08d=[],_0x1615f9=normalizeSqlForStaticAnalysis(_0x1a6c1),_0x3c16a0=(_0x1615f9[_0x3e1007(0x1e3)]?[]:extractJoinFacts(_0x1615f9[_0x3e1007(0x1f8)]))['map'](_0xd4a083=>{const _0xe2927d=_0x3e1007;if(_0xd4a083[_0xe2927d(0x1df)]||_0xd4a083[_0xe2927d(0x1de)]['length']===0x0)return _0x29b08d[_0xe2927d(0x213)]({'code':_0xe2927d(0x1fe),'table':_0xd4a083[_0xe2927d(0x1ed)],'alias':_0xd4a083[_0xe2927d(0x1fa)],'columns':_0xd4a083[_0xe2927d(0x1de)],'reason':_0xd4a083['unsupportedReason']??'Not\x20every\x20JOIN\x20target\x20predicate\x20could\x20be\x20audited\x20safely.'}),{'table':_0xd4a083[_0xe2927d(0x1ed)],'alias':_0xd4a083['alias'],'columns':_0xd4a083['columns'],'status':_0xe2927d(0x204)};const _0x16d308=resolveTableMetadata(_0x4476fa,_0xd4a083[_0xe2927d(0x1ed)]),_0x5d82bf=(_0x16d308?.[_0xe2927d(0x200)]??[])[_0xe2927d(0x1f0)](_0x349ee8=>({'index':_0x349ee8,'matchedPrefix':findEqualityPrefix(_0x349ee8[_0xe2927d(0x1de)],_0xd4a083['columns'])}))[_0xe2927d(0x1f1)](_0x12bc87=>_0x12bc87[_0xe2927d(0x20a)][_0xe2927d(0x215)]>0x0),_0x332ca6=_0x5d82bf[_0xe2927d(0x20b)]((_0x552e26,_0x30c18f)=>!_0x552e26||_0x30c18f[_0xe2927d(0x20a)]['length']>_0x552e26[_0xe2927d(0x20a)][_0xe2927d(0x215)]?_0x30c18f:_0x552e26,_0x5d82bf[0x0]);if(_0x332ca6)return{'table':_0xd4a083[_0xe2927d(0x1ed)],'alias':_0xd4a083['alias'],'columns':_0xd4a083[_0xe2927d(0x1de)],'status':_0xe2927d(0x1e9),'matchedIndex':{..._0x332ca6['index'],'matchedPrefix':_0x332ca6[_0xe2927d(0x20a)]}};const _0x420736=_0x16d308?.['indexes'][_0xe2927d(0x1f1)](_0x296550=>_0x296550['columns'][_0xe2927d(0x1e8)](_0x351ba5=>_0xd4a083[_0xe2927d(0x1de)]['some'](_0x1a4a96=>columnNamesMatch(_0x351ba5,_0x1a4a96))))??[];if(_0x420736[_0xe2927d(0x215)]>0x0)return _0x29b08d[_0xe2927d(0x213)]({'code':_0xe2927d(0x1f6),'table':_0xd4a083[_0xe2927d(0x1ed)],'alias':_0xd4a083[_0xe2927d(0x1fa)],'columns':_0xd4a083['columns'],'reason':_0xe2927d(0x1fc)}),{'table':_0xd4a083['table'],'alias':_0xd4a083['alias'],'columns':_0xd4a083['columns'],'status':_0xe2927d(0x1e0),'candidateIndexes':_0x420736};if(_0x16d308&&_0x16d308[_0xe2927d(0x1f5)]!==![]&&_0x16d308[_0xe2927d(0x200)][_0xe2927d(0x215)]>0x0&&_0xd4a083['columns'][_0xe2927d(0x215)]>0x0)return _0x29b08d[_0xe2927d(0x213)]({'code':_0xe2927d(0x1d6),'table':_0xd4a083[_0xe2927d(0x1ed)],'alias':_0xd4a083[_0xe2927d(0x1fa)],'columns':_0xd4a083[_0xe2927d(0x1de)],'reason':_0xe2927d(0x20d)}),{'table':_0xd4a083[_0xe2927d(0x1ed)],'alias':_0xd4a083[_0xe2927d(0x1fa)],'columns':_0xd4a083['columns'],'status':_0xe2927d(0x1e0)};return _0x29b08d[_0xe2927d(0x213)]({'code':'INDEX_METADATA_UNAVAILABLE','table':_0xd4a083[_0xe2927d(0x1ed)],'alias':_0xd4a083[_0xe2927d(0x1fa)],'columns':_0xd4a083[_0xe2927d(0x1de)],'reason':_0x16d308?_0xe2927d(0x1ff):_0xe2927d(0x20e)}),{'table':_0xd4a083[_0xe2927d(0x1ed)],'alias':_0xd4a083[_0xe2927d(0x1fa)],'columns':_0xd4a083['columns'],'status':_0xe2927d(0x204)};});return{'checked':_0x3c16a0['length']>0x0,'joins':_0x3c16a0,'warnings':_0x29b08d};}function extractJoinFacts(_0x4b2e3f){const _0x320765=a232_0x2e69,_0x56fce2=maskNestedQueries(stripSqlNoise(_0x4b2e3f)),_0x30605e=maskQuotedIdentifiers(_0x56fce2),_0x565f13=[],_0x515208=new Set(),_0x2cee2e=/\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 _0x482c5e of _0x56fce2['matchAll'](_0x2cee2e)){const _0x13b473=_0x482c5e[_0x320765(0x201)]??0x0,_0x3a01af=_0x482c5e[0x0]['search'](/\bJOIN\b/i),_0x389fdb=_0x13b473+Math[_0x320765(0x21e)](0x0,_0x3a01af);if(!/^JOIN\b/i[_0x320765(0x20f)](_0x30605e['slice'](_0x389fdb)))continue;_0x515208[_0x320765(0x1e7)](_0x389fdb);const _0x1f2ac7=normalizeIdentifier(_0x482c5e[0x1]||_0x320765(0x21c)),_0x226e48=normalizeIdentifier(_0x482c5e[0x2]??''),_0x5084fe=normalizeIdentifier(_0x482c5e[0x3]||_0x226e48[_0x320765(0x1eb)]('.')['at'](-0x1)||_0x226e48),_0x4ebdb3=[],_0x552d1f=_0x226e48===_0x320765(0x1dd);let _0x55d34c=_0x1f2ac7===_0x320765(0x1e6)||_0x1f2ac7==='full'||_0x552d1f,_0x3fd410=_0x55d34c?_0x552d1f?_0x320765(0x21d):_0x1f2ac7['toUpperCase']()+_0x320765(0x1ee):undefined;const _0x1101b4=stripOuterParentheses(_0x482c5e[0x4]??''),_0x399457=_0x1101b4['includes'](MYBATIS_DYNAMIC_START_MARKER)||_0x1101b4[_0x320765(0x202)](MYBATIS_DYNAMIC_END_MARKER),_0x382948=_0x1101b4[_0x320765(0x202)](MYBATIS_INCLUDE_MARKER);_0x399457&&(_0x55d34c=!![],_0x3fd410??=_0x320765(0x203));_0x382948&&(_0x55d34c=!![],_0x3fd410??=_0x320765(0x218));const _0x4f1395=_0x1101b4[_0x320765(0x1e5)](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x320765(0x1e5)](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x320765(0x1e5)](MYBATIS_INCLUDE_MARKER,'\x20');hasTopLevelKeyword(_0x4f1395,'OR')&&(_0x55d34c=!![],_0x3fd410??='OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.');for(const _0xc405cd of splitTopLevelAnd(_0x4f1395)){const _0x10b254=stripOuterParentheses(_0xc405cd);if(hasTopLevelKeyword(_0x10b254,'OR')){_0x55d34c=!![],_0x3fd410??=_0x320765(0x209);continue;}const _0x2a5c54=splitEquality(_0x10b254);if(!_0x2a5c54){containsColumnReference(_0xc405cd,_0x5084fe)&&(_0x55d34c=!![]);continue;}const _0x22bdea=parseDirectColumnReference(_0x2a5c54[0x0],_0x5084fe),_0x309101=parseDirectColumnReference(_0x2a5c54[0x1],_0x5084fe),_0x358087=containsColumnReference(_0x2a5c54[0x0],_0x5084fe),_0x4831e2=containsColumnReference(_0x2a5c54[0x1],_0x5084fe),_0xdf9d51=_0x22bdea&&!_0x4831e2?_0x22bdea:_0x309101&&!_0x358087?_0x309101:null;if(_0xdf9d51&&!_0x4ebdb3['includes'](_0xdf9d51))_0x4ebdb3[_0x320765(0x213)](_0xdf9d51);else!_0xdf9d51&&containsColumnReference(_0xc405cd,_0x5084fe)&&(_0x55d34c=!![]);}_0x565f13[_0x320765(0x213)]({'table':_0x226e48,'alias':_0x5084fe,'columns':_0x4ebdb3,'unsupportedPredicate':_0x55d34c,'unsupportedReason':_0x3fd410,'containsUnresolvedInclude':_0x382948,'position':_0x389fdb});}for(const _0x4b922c of _0x30605e['matchAll'](/\bJOIN\b/gi)){const _0x11377f=_0x4b922c['index']??0x0;if(_0x515208[_0x320765(0x1f3)](_0x11377f))continue;const _0x48a9e3=/^\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?/[_0x320765(0x1f4)](_0x56fce2['slice'](_0x11377f+_0x4b922c[0x0][_0x320765(0x215)])),_0x5a7ca4=normalizeIdentifier(_0x48a9e3?.[0x1]||_0x320765(0x214)),_0x4788d5=normalizeIdentifier(_0x48a9e3?.[0x2]||''),_0x10badb=isSqlClauseKeyword(_0x4788d5)?_0x5a7ca4[_0x320765(0x1eb)]('.')['at'](-0x1)||_0x5a7ca4:_0x4788d5||_0x5a7ca4[_0x320765(0x1eb)]('.')['at'](-0x1)||_0x5a7ca4;_0x565f13[_0x320765(0x213)]({'table':_0x5a7ca4,'alias':_0x10badb,'columns':[],'unsupportedPredicate':!![],'unsupportedReason':_0x320765(0x1ea),'position':_0x11377f});}const _0x52562e=_0x30605e[_0x320765(0x21a)](MYBATIS_INCLUDE_MARKER);return _0x52562e>=0x0&&!_0x565f13[_0x320765(0x1e8)](_0x255563=>_0x255563[_0x320765(0x217)])&&_0x565f13['push']({'table':_0x320765(0x214),'alias':'unknown','columns':[],'unsupportedPredicate':!![],'unsupportedReason':_0x320765(0x21b),'containsUnresolvedInclude':!![],'position':_0x52562e}),_0x565f13[_0x320765(0x210)]((_0x1c2782,_0x377708)=>_0x1c2782[_0x320765(0x205)]-_0x377708[_0x320765(0x205)]);}function stripSqlNoise(_0x23e019){const _0x176481=a232_0x2e69,_0x283d45=Array['from'](_0x23e019),_0x2101da=(_0x509ddd,_0x4f8c45)=>{for(let _0x45e644=_0x509ddd;_0x45e644<_0x4f8c45;_0x45e644+=0x1){_0x283d45[_0x45e644]!=='\x0a'&&_0x283d45[_0x45e644]!=='\x0d'&&(_0x283d45[_0x45e644]='\x20');}};for(let _0x1b8d56=0x0;_0x1b8d56<_0x283d45['length'];_0x1b8d56+=0x1){const _0x4ff4cd=_0x283d45[_0x1b8d56],_0x426e0a=_0x283d45[_0x1b8d56+0x1];if(_0x4ff4cd==='\x27'||_0x4ff4cd==='\x22'||_0x4ff4cd==='`'){const _0x994cc1=_0x4ff4cd,_0x353747=_0x1b8d56;_0x1b8d56+=0x1;while(_0x1b8d56<_0x283d45[_0x176481(0x215)]){if(_0x283d45[_0x1b8d56]==='\x5c'&&_0x1b8d56+0x1<_0x283d45[_0x176481(0x215)]){_0x1b8d56+=0x2;continue;}if(_0x283d45[_0x1b8d56]!==_0x994cc1){_0x1b8d56+=0x1;continue;}if(_0x283d45[_0x1b8d56+0x1]===_0x994cc1){_0x1b8d56+=0x2;continue;}break;}if(_0x994cc1==='\x27')_0x2101da(_0x353747,Math[_0x176481(0x206)](_0x1b8d56+0x1,_0x283d45[_0x176481(0x215)]));continue;}if(_0x4ff4cd==='-'&&_0x426e0a==='-'){const _0x176cff=_0x1b8d56;while(_0x1b8d56<_0x283d45['length']&&_0x283d45[_0x1b8d56]!=='\x0a')_0x1b8d56+=0x1;_0x2101da(_0x176cff,_0x1b8d56);continue;}if(_0x4ff4cd==='/'&&_0x426e0a==='*'){const _0x6f8df3=_0x1b8d56;_0x1b8d56+=0x2;while(_0x1b8d56<_0x283d45['length']&&!(_0x283d45[_0x1b8d56]==='*'&&_0x283d45[_0x1b8d56+0x1]==='/')){_0x1b8d56+=0x1;}_0x1b8d56=Math[_0x176481(0x206)](_0x1b8d56+0x1,_0x283d45[_0x176481(0x215)]-0x1),_0x2101da(_0x6f8df3,_0x1b8d56+0x1);continue;}if(_0x4ff4cd==='#'&&_0x426e0a!=='{'){const _0x62fbc4=_0x1b8d56;while(_0x1b8d56<_0x283d45['length']&&_0x283d45[_0x1b8d56]!=='\x0a')_0x1b8d56+=0x1;_0x2101da(_0x62fbc4,_0x1b8d56);continue;}if((_0x4ff4cd==='#'||_0x4ff4cd==='$')&&_0x426e0a==='{'){const _0x4627df=_0x1b8d56;_0x1b8d56+=0x2;while(_0x1b8d56<_0x283d45[_0x176481(0x215)]&&_0x283d45[_0x1b8d56]!=='}')_0x1b8d56+=0x1;_0x2101da(_0x4627df,Math[_0x176481(0x206)](_0x1b8d56+0x1,_0x283d45[_0x176481(0x215)]));}}return _0x283d45[_0x176481(0x1d4)]('');}function maskQuotedIdentifiers(_0x46c291){const _0x10804c=a232_0x2e69,_0x38c606=Array['from'](_0x46c291);for(let _0x44b723=0x0;_0x44b723<_0x38c606[_0x10804c(0x215)];_0x44b723+=0x1){const _0x6924b2=_0x38c606[_0x44b723];if(_0x6924b2!=='\x22'&&_0x6924b2!=='`')continue;_0x44b723+=0x1;while(_0x44b723<_0x38c606[_0x10804c(0x215)]){if(_0x38c606[_0x44b723]===_0x6924b2){if(_0x38c606[_0x44b723+0x1]===_0x6924b2){_0x38c606[_0x44b723]='\x20',_0x38c606[_0x44b723+0x1]='\x20',_0x44b723+=0x2;continue;}break;}_0x38c606[_0x44b723]='\x20',_0x44b723+=0x1;}}return _0x38c606[_0x10804c(0x1d4)]('');}function maskNestedQueries(_0x4f42a8){const _0x2ce893=a232_0x2e69,_0x159bfb=Array[_0x2ce893(0x1f2)](_0x4f42a8);for(let _0x3e4059=0x0;_0x3e4059<_0x159bfb['length'];_0x3e4059+=0x1){if(_0x159bfb[_0x3e4059]!=='(')continue;const _0x55da43=_0x4f42a8['slice'](_0x3e4059+0x1);if(!/^\s*(?:SELECT|WITH)\b/i[_0x2ce893(0x20f)](_0x55da43))continue;let _0x26454b=0x1,_0x1cc045=_0x3e4059+0x1;for(;_0x1cc045<_0x159bfb['length']&&_0x26454b>0x0;_0x1cc045+=0x1){if(_0x159bfb[_0x1cc045]==='(')_0x26454b+=0x1;if(_0x159bfb[_0x1cc045]===')')_0x26454b-=0x1;}if(_0x26454b!==0x0)continue;for(let _0x5d6c36=_0x3e4059;_0x5d6c36<_0x1cc045;_0x5d6c36+=0x1){_0x159bfb[_0x5d6c36]='\x20';}const _0x1a4f12=_0x2ce893(0x1dd);for(let _0x2ffb96=0x0;_0x2ffb96<_0x1a4f12[_0x2ce893(0x215)]&&_0x3e4059+_0x2ffb96<_0x1cc045;_0x2ffb96+=0x1){_0x159bfb[_0x3e4059+_0x2ffb96]=_0x1a4f12[_0x2ffb96];}_0x3e4059=_0x1cc045-0x1;}return _0x159bfb[_0x2ce893(0x1d4)]('');}function splitTopLevelAnd(_0x34fafc){const _0x3b0cee=a232_0x2e69,_0x59610b=[];let _0x3f8e8f=0x0,_0x342423=0x0;for(let _0x32cf8f=0x0;_0x32cf8f<_0x34fafc[_0x3b0cee(0x215)];_0x32cf8f+=0x1){const _0x47bdc7=_0x34fafc[_0x32cf8f];if(_0x47bdc7==='(')_0x3f8e8f+=0x1;if(_0x47bdc7===')')_0x3f8e8f=Math[_0x3b0cee(0x21e)](0x0,_0x3f8e8f-0x1);_0x3f8e8f===0x0&&_0x34fafc[_0x3b0cee(0x1d9)](_0x32cf8f)[_0x3b0cee(0x1d8)](/^AND\b/i)&&(_0x32cf8f===0x0||/\s/['test'](_0x34fafc[_0x32cf8f-0x1]??''))&&(_0x59610b[_0x3b0cee(0x213)](_0x34fafc[_0x3b0cee(0x1d9)](_0x342423,_0x32cf8f)['trim']()),_0x32cf8f+=0x2,_0x342423=_0x32cf8f+0x1);}const _0x1055e7=_0x34fafc['slice'](_0x342423)['trim']();if(_0x1055e7)_0x59610b[_0x3b0cee(0x213)](_0x1055e7);return _0x59610b;}function hasTopLevelKeyword(_0x428eea,_0x4b7e42){const _0x12ab68=a232_0x2e69;let _0x1d83d7=0x0;for(let _0x3654d4=0x0;_0x3654d4<_0x428eea[_0x12ab68(0x215)];_0x3654d4+=0x1){const _0x55395c=_0x428eea[_0x3654d4];if(_0x55395c==='(')_0x1d83d7+=0x1;if(_0x55395c===')')_0x1d83d7=Math['max'](0x0,_0x1d83d7-0x1);if(_0x1d83d7!==0x0)continue;const _0x4b2e0a=_0x428eea['slice'](_0x3654d4,_0x3654d4+_0x4b7e42['length']),_0x3f4cd0=_0x428eea[_0x3654d4-0x1]??'\x20',_0xf3f3eb=_0x428eea[_0x3654d4+_0x4b7e42[_0x12ab68(0x215)]]??'\x20';if(_0x4b2e0a['toUpperCase']()===_0x4b7e42[_0x12ab68(0x211)]()&&!/[\w$]/[_0x12ab68(0x20f)](_0x3f4cd0)&&!/[\w$]/[_0x12ab68(0x20f)](_0xf3f3eb))return!![];}return![];}function splitEquality(_0x3a0936){const _0x426672=a232_0x2e69,_0x1a21ee=stripOuterParentheses(_0x3a0936);let _0x65fa5c=0x0,_0xf4002a;for(let _0x446933=0x0;_0x446933<_0x1a21ee[_0x426672(0x215)];_0x446933+=0x1){const _0x44781d=_0x1a21ee[_0x446933];if(_0x44781d==='(')_0x65fa5c+=0x1;if(_0x44781d===')')_0x65fa5c=Math['max'](0x0,_0x65fa5c-0x1);const _0xaeddd4=_0x1a21ee[_0x446933-0x1]??'',_0x1f89d6=_0x1a21ee[_0x446933+0x1]??'';if(_0x44781d==='='&&_0x65fa5c===0x0&&!/[!<>=:]/[_0x426672(0x20f)](_0xaeddd4)&&_0x1f89d6!=='='){if(_0xf4002a!==undefined)return null;_0xf4002a=_0x446933;}}return _0xf4002a===undefined?null:[_0x1a21ee[_0x426672(0x1d9)](0x0,_0xf4002a)[_0x426672(0x1e4)](),_0x1a21ee[_0x426672(0x1d9)](_0xf4002a+0x1)['trim']()];}function a232_0x2e69(_0x3c18e6,_0x52213a){_0x3c18e6=_0x3c18e6-0x1d4;const _0x4d2f18=a232_0x4d2f();let _0x2e69fc=_0x4d2f18[_0x3c18e6];return _0x2e69fc;}function parseDirectColumnReference(_0xa4f200,_0x4c994){const _0x5903f9=a232_0x2e69,_0xabc06e=/^([`"]?[\w$]+[`"]?)\s*\.\s*([`"]?[\w$]+[`"]?)$/[_0x5903f9(0x1f4)](stripOuterParentheses(_0xa4f200));if(!_0xabc06e)return null;if(normalizeIdentifier(_0xabc06e[0x1]??'')!==normalizeIdentifier(_0x4c994))return null;return normalizeIdentifier(_0xabc06e[0x2]??'');}function containsColumnReference(_0x3e2f13,_0x16b10c){const _0x5b92ee=a232_0x2e69,_0x35b8d3=_0x3e2f13[_0x5b92ee(0x1e2)](/[`"]/g,''),_0x2c1332=_0x16b10c[_0x5b92ee(0x1e2)](/[.*+?^${}()|[\]\\]/g,'\x5c$&');return new RegExp(_0x5b92ee(0x1f9)+_0x2c1332+'\x5cs*\x5c.\x5cs*[\x5cw$]+','i')[_0x5b92ee(0x20f)](_0x35b8d3);}function findEqualityPrefix(_0x5521bb,_0xb52d59){const _0x103adf=a232_0x2e69,_0x40820d=new Set(_0xb52d59['map'](normalizeIdentifier)),_0x41b004=[];for(const _0xb3f301 of _0x5521bb){if(!_0x40820d[_0x103adf(0x1f3)](normalizeIdentifier(_0xb3f301)))break;_0x41b004[_0x103adf(0x213)](_0xb3f301);}return _0x41b004;}function resolveTableMetadata(_0x12670c,_0x3a0977){const _0x5890fc=a232_0x2e69,_0x30de5a=normalizeIdentifier(_0x3a0977),_0x3a3406=_0x12670c[_0x5890fc(0x1f1)](_0x5744d5=>normalizeIdentifier(_0x5744d5[_0x5890fc(0x20c)])===_0x30de5a);if(_0x3a3406[_0x5890fc(0x215)]===0x1)return _0x3a3406[0x0];const _0x2b624c=_0x30de5a[_0x5890fc(0x202)]('.'),_0x5e9651=_0x30de5a[_0x5890fc(0x1eb)]('.')['at'](-0x1),_0x1a62ba=_0x12670c['filter'](_0x4f445a=>{const _0x10e6c0=_0x5890fc,_0x260f0e=normalizeIdentifier(_0x4f445a[_0x10e6c0(0x20c)]);if(_0x2b624c&&_0x260f0e[_0x10e6c0(0x202)]('.'))return![];return _0x260f0e['split']('.')['at'](-0x1)===_0x5e9651;});return _0x1a62ba[_0x5890fc(0x215)]===0x1?_0x1a62ba[0x0]:undefined;}function columnNamesMatch(_0x4e8c33,_0x4558e7){return normalizeIdentifier(_0x4e8c33)===normalizeIdentifier(_0x4558e7);}function normalizeIdentifier(_0x1c90ec){const _0xa784ba=a232_0x2e69;return _0x1c90ec['replace'](/[`"]/g,'')['trim']()[_0xa784ba(0x1fb)]();}function isSqlClauseKeyword(_0x33bbe0){const _0xedd133=a232_0x2e69;return new Set(['on',_0xedd133(0x1dc),_0xedd133(0x1ec),_0xedd133(0x1d4),'inner',_0xedd133(0x212),_0xedd133(0x1e6),'full',_0xedd133(0x1d5),_0xedd133(0x1f7)])[_0xedd133(0x1f3)](_0x33bbe0);}function stripOuterParentheses(_0x511519){const _0x224617=a232_0x2e69;let _0x26e10a=_0x511519[_0x224617(0x1e4)]();while(_0x26e10a[_0x224617(0x207)]('(')&&_0x26e10a['endsWith'](')')){let _0x2c6868=0x0,_0x5fc9f6=!![];for(let _0x22e1e6=0x0;_0x22e1e6<_0x26e10a['length'];_0x22e1e6+=0x1){if(_0x26e10a[_0x22e1e6]==='(')_0x2c6868+=0x1;if(_0x26e10a[_0x22e1e6]===')')_0x2c6868-=0x1;if(_0x2c6868===0x0&&_0x22e1e6<_0x26e10a[_0x224617(0x215)]-0x1){_0x5fc9f6=![];break;}}if(!_0x5fc9f6||_0x2c6868!==0x0)break;_0x26e10a=_0x26e10a['slice'](0x1,-0x1)[_0x224617(0x1e4)]();}return _0x26e10a;}
@@ -1 +1 @@
1
- const a232_0x24630b=a232_0x3c89;(function(_0x355c5a,_0x202a3e){const _0x2e6331=a232_0x3c89,_0x27a621=_0x355c5a();while(!![]){try{const _0x1049be=parseInt(_0x2e6331(0x161))/0x1*(parseInt(_0x2e6331(0x16c))/0x2)+-parseInt(_0x2e6331(0x16b))/0x3+-parseInt(_0x2e6331(0x167))/0x4+-parseInt(_0x2e6331(0x165))/0x5+parseInt(_0x2e6331(0x163))/0x6+-parseInt(_0x2e6331(0x162))/0x7+parseInt(_0x2e6331(0x168))/0x8;if(_0x1049be===_0x202a3e)break;else _0x27a621['push'](_0x27a621['shift']());}catch(_0x239f27){_0x27a621['push'](_0x27a621['shift']());}}}(a232_0x58be,0x5d3d2));import{resolve}from'node:path';function a232_0x58be(){const _0x417112=['.rabetbase','3020400SOnCJV','10381408rRjxMu','sql','sql.lock.json','1035900CYGgDX','7196aaGPSf','174RghOoS','3616823NUmcKl','1859238rXVMsP','/sql','1173030LviwXJ'];a232_0x58be=function(){return _0x417112;};return a232_0x58be();}function a232_0x3c89(_0xbb11d4,_0x464c5f){_0xbb11d4=_0xbb11d4-0x161;const _0x58be8c=a232_0x58be();let _0x3c896d=_0x58be8c[_0xbb11d4];return _0x3c896d;}import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a232_0x24630b(0x166),LOCK_FILE_NAME=a232_0x24630b(0x16a),TRASH_DIR_NAME='sql-trash';export function loadSqlProjectConfig(_0x306984,_0x48eb7e){const _0x4f44bb=a232_0x24630b,_0xac4469=resolve(_0x48eb7e??findProjectRootDirectory()),_0x538d78=DOT_DIR+_0x4f44bb(0x164),_0x56a8db=_0x538d78+'/'+_0x306984;return{'projectRoot':_0xac4469,'appCode':_0x306984,'sqlWorkspaceRoot':_0x538d78,'sqlRoot':_0x56a8db,'sqlRootDir':resolve(_0xac4469,DOT_DIR,_0x4f44bb(0x169),_0x306984),'lockFilePath':resolve(_0xac4469,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0xac4469,DOT_DIR,TRASH_DIR_NAME)};}
1
+ function a233_0x1f22(){const _0x19a252=['sql.lock.json','376SRrvMc','sql','57YzfrRy','65wqsDKP','4262401mlKAwh','319386mBBAng','590spSCoE','118727oLpTnm','206631lwQBZI','sql-trash','21061116MvoecG','168020NejjyX','140JRRDmw','14338VvtMPg'];a233_0x1f22=function(){return _0x19a252;};return a233_0x1f22();}const a233_0x1ea216=a233_0x472a;(function(_0x4d240a,_0x4692fe){const _0xf8577d=a233_0x472a,_0x20601f=_0x4d240a();while(!![]){try{const _0x5a0acb=-parseInt(_0xf8577d(0xd3))/0x1*(-parseInt(_0xf8577d(0xd2))/0x2)+-parseInt(_0xf8577d(0xd7))/0x3*(parseInt(_0xf8577d(0xe0))/0x4)+-parseInt(_0xf8577d(0xd8))/0x5*(-parseInt(_0xf8577d(0xda))/0x6)+-parseInt(_0xf8577d(0xdc))/0x7*(parseInt(_0xf8577d(0xd5))/0x8)+-parseInt(_0xf8577d(0xdd))/0x9*(parseInt(_0xf8577d(0xdb))/0xa)+parseInt(_0xf8577d(0xd9))/0xb+parseInt(_0xf8577d(0xdf))/0xc;if(_0x5a0acb===_0x4692fe)break;else _0x20601f['push'](_0x20601f['shift']());}catch(_0x134261){_0x20601f['push'](_0x20601f['shift']());}}}(a233_0x1f22,0xd8e54));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR='.rabetbase',LOCK_FILE_NAME=a233_0x1ea216(0xd4),TRASH_DIR_NAME=a233_0x1ea216(0xde);function a233_0x472a(_0x44fc76,_0x5e9c54){_0x44fc76=_0x44fc76-0xd2;const _0x1f22e4=a233_0x1f22();let _0x472aed=_0x1f22e4[_0x44fc76];return _0x472aed;}export function loadSqlProjectConfig(_0x3aa32b,_0x47412b){const _0x44a635=a233_0x1ea216,_0x540f67=resolve(_0x47412b??findProjectRootDirectory()),_0x3ebbc1=DOT_DIR+'/sql',_0x2d1d4d=_0x3ebbc1+'/'+_0x3aa32b;return{'projectRoot':_0x540f67,'appCode':_0x3aa32b,'sqlWorkspaceRoot':_0x3ebbc1,'sqlRoot':_0x2d1d4d,'sqlRootDir':resolve(_0x540f67,DOT_DIR,_0x44a635(0xd6),_0x3aa32b),'lockFilePath':resolve(_0x540f67,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x540f67,DOT_DIR,TRASH_DIR_NAME)};}
@@ -1 +1 @@
1
- (function(_0x3868d3,_0x20cbbb){const _0x36c814=a233_0x7f49,_0x4ad5c2=_0x3868d3();while(!![]){try{const _0x1b4105=parseInt(_0x36c814(0x13b))/0x1+-parseInt(_0x36c814(0x134))/0x2*(-parseInt(_0x36c814(0x147))/0x3)+-parseInt(_0x36c814(0x142))/0x4*(-parseInt(_0x36c814(0x135))/0x5)+parseInt(_0x36c814(0x151))/0x6+-parseInt(_0x36c814(0x14e))/0x7+-parseInt(_0x36c814(0x149))/0x8+-parseInt(_0x36c814(0x138))/0x9*(parseInt(_0x36c814(0x143))/0xa);if(_0x1b4105===_0x20cbbb)break;else _0x4ad5c2['push'](_0x4ad5c2['shift']());}catch(_0x3e9aae){_0x4ad5c2['push'](_0x4ad5c2['shift']());}}}(a233_0x9483,0xaf31b));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x48ecc6){const _0x576749=a233_0x7f49;if(_0x48ecc6===_0x576749(0x150))return _0x576749(0x14f);if(_0x48ecc6===_0x576749(0x139))return _0x576749(0x13c);return undefined;}async function scanSqlFilesRecursively(_0xb9f57,_0x39f402){const _0x53ad40=a233_0x7f49,_0x31abbf=[];try{const _0x4667e3=await readdir(_0xb9f57,{'withFileTypes':!![]});for(const _0xe6a85d of _0x4667e3){const _0x356f00=join(_0xb9f57,_0xe6a85d[_0x53ad40(0x141)]);if(_0xe6a85d[_0x53ad40(0x13d)]()){_0x31abbf[_0x53ad40(0x13e)](...await scanSqlFilesRecursively(_0x356f00,_0x39f402));continue;}if(!_0xe6a85d[_0x53ad40(0x137)]())continue;const _0x474c11=extname(_0xe6a85d['name'])[_0x53ad40(0x148)](),_0x461f68=extensionToMode(_0x474c11);if(!_0x461f68)continue;const _0x2549b3=relative(_0x39f402,_0x356f00)[_0x53ad40(0x14d)](/\\/g,'/'),_0x21f71d=_0x2549b3['split']('/')['filter'](Boolean),_0xff76e=parseSqlPath(_0x21f71d,_0xe6a85d['name'],_0x474c11);if(!_0xff76e)continue;_0x31abbf[_0x53ad40(0x13e)]({'sqlCode':_0xff76e['sqlCode'],'sqlName':_0xff76e[_0x53ad40(0x144)],'dbDirectory':_0x21f71d[0x0],'filePath':_0x356f00,'relativePath':_0x2549b3,'lockKey':_0xff76e[_0x53ad40(0x145)],'mode':_0x461f68});}}catch(_0x2fe508){if(_0x2fe508[_0x53ad40(0x14a)]!==_0x53ad40(0x146))throw _0x2fe508;}return _0x31abbf;}export async function scanLocalSqlQueries(_0x56ea0a){const _0x4a37d8=a233_0x7f49;return scanSqlFilesRecursively(_0x56ea0a[_0x4a37d8(0x140)],_0x56ea0a[_0x4a37d8(0x140)]);}export function resolveLocalSqlFilePath(_0x2e8210,_0x4ecc75,_0x407ef6){const _0x21eb7f=a233_0x7f49,_0x515e28=_0x407ef6?.['path']||(_0x407ef6?.[_0x21eb7f(0x144)]||_0x407ef6?.[_0x21eb7f(0x136)]?buildSqlRelativePath(_0x4ecc75,_0x407ef6?.['sqlName'],_0x407ef6?.[_0x21eb7f(0x136)],_0x407ef6?.[_0x21eb7f(0x133)]||_0x21eb7f(0x14f),_0x407ef6?.[_0x21eb7f(0x13a)]):buildDefaultSqlFileName(_0x4ecc75,_0x407ef6?.[_0x21eb7f(0x133)]||_0x21eb7f(0x14f)));return join(_0x2e8210[_0x21eb7f(0x140)],_0x515e28);}export async function directoryExists(_0x4d2cfb){const _0x3e2c46=a233_0x7f49;try{const _0x156345=await stat(_0x4d2cfb);return _0x156345[_0x3e2c46(0x13d)]();}catch{return![];}}function a233_0x7f49(_0x5b9045,_0x108d92){_0x5b9045=_0x5b9045-0x133;const _0x94832e=a233_0x9483();let _0x7f498e=_0x94832e[_0x5b9045];return _0x7f498e;}function a233_0x9483(){const _0xa3689f=['sqlName','sqlCode','ENOENT','981987whgDDx','toLowerCase','1151160UZHZIi','code','length','slice','replace','5600847XpzdBv','sql','.sql','2119272brmTPV','mode','2pDDpaJ','2365KIFAok','dbName','isFile','195633HBlETO','.xml','dbId','1387420uGbrBY','mybatisXml','isDirectory','push','indexOf','sqlRootDir','name','4468PWlxFX','430wcIHuV'];a233_0x9483=function(){return _0xa3689f;};return a233_0x9483();}function parseSqlPath(_0x248c49,_0x1c9995,_0x9f8f6e){const _0x9e6b98=a233_0x7f49,_0x30eea5=_0x1c9995['slice'](0x0,-_0x9f8f6e['length']);if(_0x248c49['length']<0x2)return null;const _0x5ec3ee=_0x30eea5[_0x9e6b98(0x13f)]('_');if(_0x5ec3ee<=0x0||_0x5ec3ee>=_0x30eea5[_0x9e6b98(0x14b)]-0x1)return null;const _0x3b063d=_0x30eea5[_0x9e6b98(0x14c)](0x0,_0x5ec3ee);if(!isLikelySqlCode(_0x3b063d))return null;return{'sqlCode':_0x3b063d,'sqlName':_0x30eea5[_0x9e6b98(0x14c)](_0x5ec3ee+0x1)};}function isLikelySqlCode(_0x1be6cd){return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/['test'](_0x1be6cd);}
1
+ (function(_0x38a082,_0x11b99c){const _0x2ff196=a234_0x2422,_0x422a95=_0x38a082();while(!![]){try{const _0x1b379a=-parseInt(_0x2ff196(0x16c))/0x1+parseInt(_0x2ff196(0x16e))/0x2+-parseInt(_0x2ff196(0x164))/0x3+parseInt(_0x2ff196(0x163))/0x4+-parseInt(_0x2ff196(0x161))/0x5+parseInt(_0x2ff196(0x16f))/0x6+parseInt(_0x2ff196(0x15e))/0x7*(-parseInt(_0x2ff196(0x16b))/0x8);if(_0x1b379a===_0x11b99c)break;else _0x422a95['push'](_0x422a95['shift']());}catch(_0x519fb3){_0x422a95['push'](_0x422a95['shift']());}}}(a234_0x5776,0x571a4));import{readdir,stat}from'node:fs/promises';function a234_0x2422(_0x1ea77a,_0x49f1cb){_0x1ea77a=_0x1ea77a-0x154;const _0x57766a=a234_0x5776();let _0x242261=_0x57766a[_0x1ea77a];return _0x242261;}import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x319d83){const _0x34da90=a234_0x2422;if(_0x319d83==='.sql')return _0x34da90(0x167);if(_0x319d83===_0x34da90(0x15a))return _0x34da90(0x168);return undefined;}async function scanSqlFilesRecursively(_0x5d8457,_0x1dbbed){const _0x5e1730=a234_0x2422,_0x557f65=[];try{const _0x5a0f2f=await readdir(_0x5d8457,{'withFileTypes':!![]});for(const _0x26f2de of _0x5a0f2f){const _0x392155=join(_0x5d8457,_0x26f2de[_0x5e1730(0x162)]);if(_0x26f2de[_0x5e1730(0x166)]()){_0x557f65[_0x5e1730(0x155)](...await scanSqlFilesRecursively(_0x392155,_0x1dbbed));continue;}if(!_0x26f2de[_0x5e1730(0x15c)]())continue;const _0x391ae3=extname(_0x26f2de[_0x5e1730(0x162)])[_0x5e1730(0x160)](),_0x497311=extensionToMode(_0x391ae3);if(!_0x497311)continue;const _0x18a522=relative(_0x1dbbed,_0x392155)['replace'](/\\/g,'/'),_0x7e7189=_0x18a522[_0x5e1730(0x171)]('/')['filter'](Boolean),_0x95dfbc=parseSqlPath(_0x7e7189,_0x26f2de[_0x5e1730(0x162)],_0x391ae3);if(!_0x95dfbc)continue;_0x557f65[_0x5e1730(0x155)]({'sqlCode':_0x95dfbc[_0x5e1730(0x156)],'sqlName':_0x95dfbc['sqlName'],'dbDirectory':_0x7e7189[0x0],'filePath':_0x392155,'relativePath':_0x18a522,'lockKey':_0x95dfbc[_0x5e1730(0x156)],'mode':_0x497311});}}catch(_0x325755){if(_0x325755[_0x5e1730(0x154)]!==_0x5e1730(0x158))throw _0x325755;}return _0x557f65;}export async function scanLocalSqlQueries(_0x26cfce){return scanSqlFilesRecursively(_0x26cfce['sqlRootDir'],_0x26cfce['sqlRootDir']);}export function resolveLocalSqlFilePath(_0x5c87b3,_0xf396cc,_0x53871f){const _0xfc453c=a234_0x2422,_0x5a0646=_0x53871f?.[_0xfc453c(0x16a)]||(_0x53871f?.[_0xfc453c(0x157)]||_0x53871f?.[_0xfc453c(0x15b)]?buildSqlRelativePath(_0xf396cc,_0x53871f?.['sqlName'],_0x53871f?.[_0xfc453c(0x15b)],_0x53871f?.['mode']||_0xfc453c(0x167),_0x53871f?.[_0xfc453c(0x159)]):buildDefaultSqlFileName(_0xf396cc,_0x53871f?.[_0xfc453c(0x165)]||_0xfc453c(0x167)));return join(_0x5c87b3[_0xfc453c(0x170)],_0x5a0646);}export async function directoryExists(_0x24688a){const _0x1930ae=a234_0x2422;try{const _0x5478aa=await stat(_0x24688a);return _0x5478aa[_0x1930ae(0x166)]();}catch{return![];}}function a234_0x5776(){const _0x3b8574=['mode','isDirectory','sql','mybatisXml','indexOf','path','212120NEpgte','57687vHUxuJ','length','125108ZzOlzb','4247352QEBlDH','sqlRootDir','split','code','push','sqlCode','sqlName','ENOENT','dbId','.xml','dbName','isFile','test','161VuUWqa','slice','toLowerCase','49010ejGawE','name','1055732uvCoqG','819IUHimP'];a234_0x5776=function(){return _0x3b8574;};return a234_0x5776();}function parseSqlPath(_0x11de6d,_0x20e896,_0x5d9e97){const _0x9958e8=a234_0x2422,_0xb82753=_0x20e896['slice'](0x0,-_0x5d9e97['length']);if(_0x11de6d[_0x9958e8(0x16d)]<0x2)return null;const _0x98dd54=_0xb82753[_0x9958e8(0x169)]('_');if(_0x98dd54<=0x0||_0x98dd54>=_0xb82753[_0x9958e8(0x16d)]-0x1)return null;const _0x333955=_0xb82753['slice'](0x0,_0x98dd54);if(!isLikelySqlCode(_0x333955))return null;return{'sqlCode':_0x333955,'sqlName':_0xb82753[_0x9958e8(0x15f)](_0x98dd54+0x1)};}function isLikelySqlCode(_0x4ee92e){const _0x455304=a234_0x2422;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x455304(0x15d)](_0x4ee92e);}
@@ -1 +1 @@
1
- function a234_0x5bba(){const _0x74be68=['6562088HTCADS','md5','utf8','createHash','33131mSrnEj','update','8330YGqLPj','4587936pYakCa','371YtNkrX','3746586OcptUd','hex','5930060LIAQXu','5639610NXicaW','45lpdwSN','digest','1624gCZXja'];a234_0x5bba=function(){return _0x74be68;};return a234_0x5bba();}(function(_0x17057d,_0x5e4c37){const _0xe82adf=a234_0x2861,_0xe6edd0=_0x17057d();while(!![]){try{const _0x4daad2=-parseInt(_0xe82adf(0x74))/0x1*(parseInt(_0xe82adf(0x72))/0x2)+-parseInt(_0xe82adf(0x73))/0x3+-parseInt(_0xe82adf(0x6c))/0x4+parseInt(_0xe82adf(0x77))/0x5+parseInt(_0xe82adf(0x75))/0x6+parseInt(_0xe82adf(0x70))/0x7*(parseInt(_0xe82adf(0x6b))/0x8)+parseInt(_0xe82adf(0x79))/0x9*(parseInt(_0xe82adf(0x78))/0xa);if(_0x4daad2===_0x5e4c37)break;else _0xe6edd0['push'](_0xe6edd0['shift']());}catch(_0x212869){_0xe6edd0['push'](_0xe6edd0['shift']());}}}(a234_0x5bba,0xd5dde));import{readFile}from'node:fs/promises';import a234_0x59b994 from'node:crypto';function a234_0x2861(_0x24d1f4,_0x39c96a){_0x24d1f4=_0x24d1f4-0x6a;const _0x5bba2c=a234_0x5bba();let _0x286181=_0x5bba2c[_0x24d1f4];return _0x286181;}export function computeSqlContentHash(_0xc1840b){const _0x5055db=a234_0x2861;return a234_0x59b994[_0x5055db(0x6f)](_0x5055db(0x6d))[_0x5055db(0x71)](_0xc1840b)[_0x5055db(0x6a)](_0x5055db(0x76));}export async function computeSqlFileHash(_0x593450){const _0x1d1c3e=a234_0x2861,_0x48b6fb=await readFile(_0x593450,_0x1d1c3e(0x6e));return computeSqlContentHash(_0x48b6fb);}
1
+ (function(_0x4f6da4,_0x185ede){const _0x3c87a1=a235_0xc412,_0x1231aa=_0x4f6da4();while(!![]){try{const _0x22166d=-parseInt(_0x3c87a1(0x1d2))/0x1+parseInt(_0x3c87a1(0x1d1))/0x2*(-parseInt(_0x3c87a1(0x1cf))/0x3)+parseInt(_0x3c87a1(0x1d6))/0x4+parseInt(_0x3c87a1(0x1cb))/0x5*(parseInt(_0x3c87a1(0x1d0))/0x6)+parseInt(_0x3c87a1(0x1cd))/0x7+parseInt(_0x3c87a1(0x1ce))/0x8*(-parseInt(_0x3c87a1(0x1da))/0x9)+parseInt(_0x3c87a1(0x1cc))/0xa*(parseInt(_0x3c87a1(0x1ca))/0xb);if(_0x22166d===_0x185ede)break;else _0x1231aa['push'](_0x1231aa['shift']());}catch(_0x4c8201){_0x1231aa['push'](_0x1231aa['shift']());}}}(a235_0x5c19,0x5fb95));function a235_0xc412(_0x37982c,_0x9afe16){_0x37982c=_0x37982c-0x1ca;const _0x5c19c2=a235_0x5c19();let _0xc41289=_0x5c19c2[_0x37982c];return _0xc41289;}import{readFile}from'node:fs/promises';import a235_0x12aa48 from'node:crypto';function a235_0x5c19(){const _0x41a95f=['420256mjMnMC','createHash','utf8','update','621348QvMihG','digest','md5','hex','9VJgiJa','286unTNkT','1810fapkfg','327620QvoZDA','1792588flXwsb','1256056moZLrU','9tsQHyI','7626wxurBf','502658UJdEvD'];a235_0x5c19=function(){return _0x41a95f;};return a235_0x5c19();}export function computeSqlContentHash(_0x57bf0f){const _0x33d58c=a235_0xc412;return a235_0x12aa48[_0x33d58c(0x1d3)](_0x33d58c(0x1d8))[_0x33d58c(0x1d5)](_0x57bf0f)[_0x33d58c(0x1d7)](_0x33d58c(0x1d9));}export async function computeSqlFileHash(_0x46de73){const _0x5ba9b6=a235_0xc412,_0x348ee6=await readFile(_0x46de73,_0x5ba9b6(0x1d4));return computeSqlContentHash(_0x348ee6);}
@@ -1 +1 @@
1
- (function(_0x50f541,_0xdb177){const _0x2fe521=a235_0x3dce,_0x2b41ab=_0x50f541();while(!![]){try{const _0x1473e0=-parseInt(_0x2fe521(0xb8))/0x1+-parseInt(_0x2fe521(0xb5))/0x2*(parseInt(_0x2fe521(0xba))/0x3)+parseInt(_0x2fe521(0xb7))/0x4+-parseInt(_0x2fe521(0xab))/0x5+-parseInt(_0x2fe521(0xb0))/0x6+-parseInt(_0x2fe521(0xb3))/0x7+parseInt(_0x2fe521(0xbc))/0x8*(parseInt(_0x2fe521(0xbd))/0x9);if(_0x1473e0===_0xdb177)break;else _0x2b41ab['push'](_0x2b41ab['shift']());}catch(_0x5a7216){_0x2b41ab['push'](_0x2b41ab['shift']());}}}(a235_0x33dd,0x51735));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}function a235_0x3dce(_0x392398,_0x2d1fc1){_0x392398=_0x392398-0xa9;const _0x33ddd3=a235_0x33dd();let _0x3dce8b=_0x33ddd3[_0x392398];return _0x3dce8b;}export function ensureSqlLockScope(_0x235c78,_0x5ea53e,_0x58dc95,_0x1c7a27){const _0x475ab5=a235_0x3dce,_0x59ee5c=_0x235c78??createEmptySqlLock();let _0x586844=_0x59ee5c[_0x475ab5(0xb6)][_0x5ea53e];if(!_0x586844)return _0x586844={'sqlRoot':_0x58dc95,'lastSync':'','sqls':{}},_0x59ee5c[_0x475ab5(0xb6)][_0x5ea53e]=_0x586844,{'lockData':_0x59ee5c,'appLock':_0x586844};if(!_0x586844[_0x475ab5(0xb2)])_0x586844['sqlRoot']=_0x58dc95;else{if(_0x586844[_0x475ab5(0xb2)]!==_0x58dc95)throw new Error(_0x1c7a27+_0x475ab5(0xad)+_0x58dc95+_0x475ab5(0xa9)+_0x586844[_0x475ab5(0xb2)]+_0x475ab5(0xac)+_0x475ab5(0xbb));}return!_0x586844[_0x475ab5(0xaa)]&&(_0x586844[_0x475ab5(0xaa)]={}),!_0x586844[_0x475ab5(0xae)]&&(_0x586844[_0x475ab5(0xae)]=''),{'lockData':_0x59ee5c,'appLock':_0x586844};}function a235_0x33dd(){const _0x361063=['2940295GbRpSh','\x22.\x20',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','lastSync','stringify','3238476RlvvIG','code','sqlRoot','1564094RXzpdA','utf8','2RdpIRs','apps','1158748xXqBqR','444070gmDpOX','ENOENT','1191129LQzDCS','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','16nRusFY','10063323BLuhQb','\x22\x20vs\x20lock\x20\x22','sqls'];a235_0x33dd=function(){return _0x361063;};return a235_0x33dd();}export async function readSqlLockFile(_0x555e56){const _0x5881ff=a235_0x3dce;try{const _0xcfa349=await readFile(_0x555e56,'utf8');return JSON['parse'](_0xcfa349);}catch(_0x3455e9){if(_0x3455e9[_0x5881ff(0xb1)]===_0x5881ff(0xb9))return null;throw new Error('Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20'+String(_0x3455e9));}}export async function writeSqlLockFile(_0x266c59,_0x40e01f){const _0x34480e=a235_0x3dce;await mkdir(dirname(_0x266c59),{'recursive':!![]}),await writeFile(_0x266c59,JSON[_0x34480e(0xaf)](_0x40e01f,null,0x2),_0x34480e(0xb4));}
1
+ (function(_0x2f58ab,_0xbbde11){const _0x504b75=a236_0x166a,_0x414522=_0x2f58ab();while(!![]){try{const _0x67a494=-parseInt(_0x504b75(0x9b))/0x1*(-parseInt(_0x504b75(0x96))/0x2)+-parseInt(_0x504b75(0x9d))/0x3+parseInt(_0x504b75(0x94))/0x4*(-parseInt(_0x504b75(0x9c))/0x5)+parseInt(_0x504b75(0x91))/0x6+-parseInt(_0x504b75(0x8f))/0x7+-parseInt(_0x504b75(0x98))/0x8*(-parseInt(_0x504b75(0x93))/0x9)+-parseInt(_0x504b75(0x97))/0xa*(-parseInt(_0x504b75(0x99))/0xb);if(_0x67a494===_0xbbde11)break;else _0x414522['push'](_0x414522['shift']());}catch(_0x26f1d9){_0x414522['push'](_0x414522['shift']());}}}(a236_0x1f03,0x1afa4));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x31950c,_0x39bc44,_0x5ba471,_0x8e70fa){const _0x1d2524=a236_0x166a,_0xfb4617=_0x31950c??createEmptySqlLock();let _0x5ae91b=_0xfb4617[_0x1d2524(0x8c)][_0x39bc44];if(!_0x5ae91b)return _0x5ae91b={'sqlRoot':_0x5ba471,'lastSync':'','sqls':{}},_0xfb4617[_0x1d2524(0x8c)][_0x39bc44]=_0x5ae91b,{'lockData':_0xfb4617,'appLock':_0x5ae91b};if(!_0x5ae91b[_0x1d2524(0x8a)])_0x5ae91b[_0x1d2524(0x8a)]=_0x5ba471;else{if(_0x5ae91b[_0x1d2524(0x8a)]!==_0x5ba471)throw new Error(_0x8e70fa+_0x1d2524(0x89)+_0x5ba471+'\x22\x20vs\x20lock\x20\x22'+_0x5ae91b[_0x1d2524(0x8a)]+_0x1d2524(0x95)+_0x1d2524(0x90));}return!_0x5ae91b[_0x1d2524(0x92)]&&(_0x5ae91b[_0x1d2524(0x92)]={}),!_0x5ae91b[_0x1d2524(0x9a)]&&(_0x5ae91b[_0x1d2524(0x9a)]=''),{'lockData':_0xfb4617,'appLock':_0x5ae91b};}function a236_0x166a(_0x5c2216,_0x570a68){_0x5c2216=_0x5c2216-0x89;const _0x1f03c4=a236_0x1f03();let _0x166a33=_0x1f03c4[_0x5c2216];return _0x166a33;}function a236_0x1f03(){const _0x3f5e29=['\x22.\x20','154136BkfmjO','29090nLZKPk','3832zYpJVn','198GKdSkF','lastSync','2IEVmXZ','15nZTyTb','632931uVzrFl','ENOENT','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','sqlRoot','parse','apps','stringify','utf8','846153UVzZrT','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','837282ZBosLF','sqls','1926fKyDdA','8260QiAEvP'];a236_0x1f03=function(){return _0x3f5e29;};return a236_0x1f03();}export async function readSqlLockFile(_0x317f96){const _0x2129be=a236_0x166a;try{const _0x2df7a9=await readFile(_0x317f96,_0x2129be(0x8e));return JSON[_0x2129be(0x8b)](_0x2df7a9);}catch(_0x59516c){if(_0x59516c['code']===_0x2129be(0x9e))return null;throw new Error(_0x2129be(0x9f)+String(_0x59516c));}}export async function writeSqlLockFile(_0x318f8d,_0xcc10eb){const _0x5a859c=a236_0x166a;await mkdir(dirname(_0x318f8d),{'recursive':!![]}),await writeFile(_0x318f8d,JSON[_0x5a859c(0x8d)](_0xcc10eb,null,0x2),_0x5a859c(0x8e));}
@@ -1 +1 @@
1
- (function(_0x2339f6,_0x12e5e7){const _0x44f23e=a237_0x1fd0,_0x543ae6=_0x2339f6();while(!![]){try{const _0x3d45cd=-parseInt(_0x44f23e(0xe1))/0x1*(parseInt(_0x44f23e(0xdc))/0x2)+parseInt(_0x44f23e(0xd2))/0x3+-parseInt(_0x44f23e(0xdf))/0x4*(-parseInt(_0x44f23e(0xd6))/0x5)+-parseInt(_0x44f23e(0xd4))/0x6+parseInt(_0x44f23e(0xdb))/0x7*(parseInt(_0x44f23e(0xd3))/0x8)+-parseInt(_0x44f23e(0xe2))/0x9*(parseInt(_0x44f23e(0xe3))/0xa)+-parseInt(_0x44f23e(0xcf))/0xb*(-parseInt(_0x44f23e(0xe0))/0xc);if(_0x3d45cd===_0x12e5e7)break;else _0x543ae6['push'](_0x543ae6['shift']());}catch(_0x4cb1f4){_0x543ae6['push'](_0x543ae6['shift']());}}}(a237_0x2347,0x82f75));function a237_0x1fd0(_0x540b72,_0x1f7c23){_0x540b72=_0x540b72-0xcf;const _0x234735=a237_0x2347();let _0x1fd0a1=_0x234735[_0x540b72];return _0x1fd0a1;}export function detectSqlMode(_0xeaec08){const _0x1ff8ba=a237_0x1fd0,_0x20b7a6=_0xeaec08[_0x1ff8ba(0xda)]();if(/^<(select|insert|update|delete)\b/i[_0x1ff8ba(0xdd)](_0x20b7a6))return _0x1ff8ba(0xd8);return'sql';}export function getSqlFileExtension(_0x26dda5){const _0x5a6462=a237_0x1fd0;return _0x26dda5==='mybatisXml'?_0x5a6462(0xd7):_0x5a6462(0xd1);}function a237_0x2347(){const _0x57637b=['28BUOLxz','8qEaSAF','test','replace','632uRsZYH','125424EwMHWG','212552pcJqZi','6084yFoBrA','9970fEhFZI','209jfvHJu','trim','.sql','2970945GmekMa','744688RrkQJd','785352bgZPEs','db-','19945xkDXed','.xml','mybatisXml','unknown-db','trimStart'];a237_0x2347=function(){return _0x57637b;};return a237_0x2347();}export function buildDefaultSqlFileName(_0x1a74d0,_0x8cd519){return''+_0x1a74d0+getSqlFileExtension(_0x8cd519);}export function sanitizeSqlPathSegment(_0x15d6a6,_0x1ed0fd){const _0xbbb396=a237_0x1fd0,_0x4bbe35=String(_0x15d6a6??'')[_0xbbb396(0xd0)](),_0x299b9e=_0x4bbe35['replace'](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0xbbb396(0xde)](/\s+/g,'-')[_0xbbb396(0xde)](/-+/g,'-')[_0xbbb396(0xde)](/^\.+/,'')['replace'](/\.+$/,'')[_0xbbb396(0xde)](/^-+/,'')['replace'](/-+$/,'');return _0x299b9e||_0x1ed0fd;}export function buildDbDirectoryName(_0x19449c,_0xc1055){const _0x3277b5=a237_0x1fd0;return sanitizeSqlPathSegment(_0x19449c,_0xc1055!=null?_0x3277b5(0xd5)+_0xc1055:_0x3277b5(0xd9));}export function buildSqlRelativePath(_0xf8361b,_0xdfd52b,_0x45b80d,_0x655050,_0xa91a79){const _0x1ad49d=buildDbDirectoryName(_0x45b80d,_0xa91a79),_0x5ebda2=sanitizeSqlPathSegment(_0xf8361b,'unknown-sql'),_0x1eab30=sanitizeSqlPathSegment(_0xdfd52b,_0x5ebda2);return _0x1ad49d+'/'+_0x5ebda2+'_'+_0x1eab30+getSqlFileExtension(_0x655050);}
1
+ (function(_0x148622,_0x29ab97){const _0x5b6e29=a238_0x3817,_0x655fcf=_0x148622();while(!![]){try{const _0x3bfc7a=-parseInt(_0x5b6e29(0x133))/0x1*(-parseInt(_0x5b6e29(0x135))/0x2)+-parseInt(_0x5b6e29(0x130))/0x3+parseInt(_0x5b6e29(0x134))/0x4+-parseInt(_0x5b6e29(0x129))/0x5+-parseInt(_0x5b6e29(0x131))/0x6+-parseInt(_0x5b6e29(0x12f))/0x7+parseInt(_0x5b6e29(0x136))/0x8;if(_0x3bfc7a===_0x29ab97)break;else _0x655fcf['push'](_0x655fcf['shift']());}catch(_0x16db07){_0x655fcf['push'](_0x655fcf['shift']());}}}(a238_0x6114,0x4c996));export function detectSqlMode(_0x5b4361){const _0x592507=a238_0x3817,_0x5146a6=_0x5b4361[_0x592507(0x12b)]();if(/^<(select|insert|update|delete)\b/i[_0x592507(0x13a)](_0x5146a6))return'mybatisXml';return _0x592507(0x139);}export function getSqlFileExtension(_0xf46d2e){const _0x524a9f=a238_0x3817;return _0xf46d2e===_0x524a9f(0x12d)?_0x524a9f(0x12c):_0x524a9f(0x12e);}export function buildDefaultSqlFileName(_0x476ca0,_0x2e7409){return''+_0x476ca0+getSqlFileExtension(_0x2e7409);}function a238_0x3817(_0x201031,_0x13ed64){_0x201031=_0x201031-0x129;const _0x6114c7=a238_0x6114();let _0x3817c6=_0x6114c7[_0x201031];return _0x3817c6;}function a238_0x6114(){const _0x12b50b=['trim','sql','test','1930155QeWzuX','db-','trimStart','.xml','mybatisXml','.sql','1459381xPBXbn','1032714lPsgGF','1005294MGOauZ','unknown-db','14635VfHmNC','2163564FujCzq','2YKgrwO','6916200vgQfFr','replace'];a238_0x6114=function(){return _0x12b50b;};return a238_0x6114();}export function sanitizeSqlPathSegment(_0x111489,_0x1ea6b8){const _0xfe8ed3=a238_0x3817,_0x4d4a64=String(_0x111489??'')[_0xfe8ed3(0x138)](),_0x4f7fdf=_0x4d4a64[_0xfe8ed3(0x137)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0xfe8ed3(0x137)](/\s+/g,'-')[_0xfe8ed3(0x137)](/-+/g,'-')['replace'](/^\.+/,'')[_0xfe8ed3(0x137)](/\.+$/,'')['replace'](/^-+/,'')[_0xfe8ed3(0x137)](/-+$/,'');return _0x4f7fdf||_0x1ea6b8;}export function buildDbDirectoryName(_0x473b92,_0x3af37d){const _0x694ca4=a238_0x3817;return sanitizeSqlPathSegment(_0x473b92,_0x3af37d!=null?_0x694ca4(0x12a)+_0x3af37d:_0x694ca4(0x132));}export function buildSqlRelativePath(_0x31a47f,_0x4f531b,_0xb839f7,_0x19dc60,_0x3c3bb8){const _0x73aff7=buildDbDirectoryName(_0xb839f7,_0x3c3bb8),_0x1fe458=sanitizeSqlPathSegment(_0x31a47f,'unknown-sql'),_0x41bc0f=sanitizeSqlPathSegment(_0x4f531b,_0x1fe458);return _0x73aff7+'/'+_0x1fe458+'_'+_0x41bc0f+getSqlFileExtension(_0x19dc60);}
@@ -1 +1 @@
1
- const a238_0x46258c=a238_0x42e4;(function(_0x25faa3,_0x30b0da){const _0x453653=a238_0x42e4,_0x1d313e=_0x25faa3();while(!![]){try{const _0x42f058=-parseInt(_0x453653(0x1d4))/0x1*(parseInt(_0x453653(0x1cd))/0x2)+parseInt(_0x453653(0x1d3))/0x3+parseInt(_0x453653(0x1e5))/0x4*(-parseInt(_0x453653(0x1f3))/0x5)+parseInt(_0x453653(0x1d7))/0x6*(parseInt(_0x453653(0x1af))/0x7)+parseInt(_0x453653(0x19b))/0x8+-parseInt(_0x453653(0x1e2))/0x9*(parseInt(_0x453653(0x1a9))/0xa)+-parseInt(_0x453653(0x1ea))/0xb*(parseInt(_0x453653(0x1d1))/0xc);if(_0x42f058===_0x30b0da)break;else _0x1d313e['push'](_0x1d313e['shift']());}catch(_0x2e1a20){_0x1d313e['push'](_0x1d313e['shift']());}}}(a238_0x2fc2,0x840f6));const MYBATIS_OUTER_TAGS=new Map([[a238_0x46258c(0x1b1),a238_0x46258c(0x1a0)],[a238_0x46258c(0x1f9),a238_0x46258c(0x1b0)],[a238_0x46258c(0x1b6),a238_0x46258c(0x1f1)],[a238_0x46258c(0x1b4),a238_0x46258c(0x1fc)]]),MYBATIS_DYNAMIC_TAGS=new Set(['if',a238_0x46258c(0x1ad),a238_0x46258c(0x1bc),'choose',a238_0x46258c(0x1b2),a238_0x46258c(0x1e0),'trim',a238_0x46258c(0x1e6),'bind',a238_0x46258c(0x19c),a238_0x46258c(0x1dc)]),MYBATIS_BRANCH_TAGS=new Set(['if',a238_0x46258c(0x1bc),a238_0x46258c(0x1c4),a238_0x46258c(0x1b2),a238_0x46258c(0x1e0)]);export const MYBATIS_DYNAMIC_START_MARKER='__RABETBASE_MYBATIS_DYNAMIC_START__';export const MYBATIS_DYNAMIC_END_MARKER=a238_0x46258c(0x1f0);export const MYBATIS_INCLUDE_MARKER='__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__';const UNRESOLVED_SQL_FRAGMENT='__RABETBASE_UNRESOLVED_SQL_FRAGMENT__',MYBATIS_OUTER_TAG_PATTERN=new RegExp(a238_0x46258c(0x1f7)+[...MYBATIS_OUTER_TAGS[a238_0x46258c(0x1ba)]()][a238_0x46258c(0x1be)]('|')+a238_0x46258c(0x1f5),'i');export function normalizeSqlForStaticAnalysis(_0x142994){const _0xf44a14=a238_0x46258c,_0x418a9f=typeof _0x142994==='string'?_0x142994:'';if(!startsWithMybatisStatementWrapper(_0x418a9f))return{'sql':_0x418a9f,'mode':_0xf44a14(0x1ac)};let _0x2c5d79=0x0,_0x16a1e4='',_0x5b2435,_0x271979=![],_0x19573a=![];const _0x2c8607=[];while(_0x2c5d79<_0x418a9f['length']){if(_0x418a9f[_0xf44a14(0x19e)](_0xf44a14(0x1ef),_0x2c5d79)){const _0x18e93a=_0x418a9f[_0xf44a14(0x1d6)](_0xf44a14(0x1bf),_0x2c5d79+0x4);if(_0x18e93a<0x0)return invalidMybatisSource(_0xf44a14(0x1e8));_0x16a1e4+='\x20',_0x2c5d79=_0x18e93a+0x3;continue;}if(_0x418a9f[_0xf44a14(0x19e)]('<![CDATA[',_0x2c5d79)){if(!_0x271979||_0x19573a)return invalidMybatisSource(_0xf44a14(0x1c3));const _0x51f805=_0x418a9f['indexOf'](']]>',_0x2c5d79+0x9);if(_0x51f805<0x0)return invalidMybatisSource('Unterminated\x20CDATA\x20section.');_0x16a1e4+=_0x418a9f['slice'](_0x2c5d79+0x9,_0x51f805),_0x2c5d79=_0x51f805+0x3;continue;}if(_0x418a9f[_0xf44a14(0x19e)]('<?',_0x2c5d79)){if(_0x271979)return invalidMybatisSource(_0xf44a14(0x1a3));const _0x48fe77=_0x418a9f[_0xf44a14(0x1d6)]('?>',_0x2c5d79+0x2);if(_0x48fe77<0x0)return invalidMybatisSource(_0xf44a14(0x1ca));_0x16a1e4+='\x20',_0x2c5d79=_0x48fe77+0x2;continue;}if(_0x418a9f[_0x2c5d79]!=='<'){const _0x1f4d54=_0x418a9f['indexOf']('<',_0x2c5d79),_0x2dd604=_0x1f4d54<0x0?_0x418a9f[_0xf44a14(0x1c0)]:_0x1f4d54,_0x174501=_0x418a9f[_0xf44a14(0x1d9)](_0x2c5d79,_0x2dd604);if((!_0x271979||_0x19573a)&&_0x174501[_0xf44a14(0x1c5)]())return invalidMybatisSource(_0xf44a14(0x1ee));if(_0x271979&&!_0x19573a){const _0x18f7d7=decodeXmlEntities(_0x174501);if(_0x18f7d7===null)return invalidMybatisSource(_0xf44a14(0x1fb));_0x16a1e4+=_0x18f7d7;}else _0x16a1e4+='\x20';_0x2c5d79=_0x2dd604;continue;}const _0x35afce=findXmlTagEnd(_0x418a9f,_0x2c5d79);if(_0x35afce<0x0)return invalidMybatisSource(_0xf44a14(0x19d));const _0x424a14=_0x418a9f[_0xf44a14(0x1d9)](_0x2c5d79,_0x35afce+0x1),_0x4248a6=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/[_0xf44a14(0x1b9)](_0x424a14);if(!_0x4248a6)return invalidMybatisSource(_0xf44a14(0x1ec));const _0x1da2bf=_0x4248a6[0x1]==='/',_0x3ffc64=_0x4248a6[0x2]??'',_0xaacbcb=_0x3ffc64[_0xf44a14(0x1ab)](),_0x189b4a=_0x4248a6[0x3]??'',_0x22bb6d=_0x4248a6[0x4]==='/',_0x2bdd59=MYBATIS_OUTER_TAGS[_0xf44a14(0x1cc)](_0xaacbcb);if(!_0x2bdd59&&!MYBATIS_DYNAMIC_TAGS[_0xf44a14(0x1cf)](_0xaacbcb))return invalidMybatisSource('Unsupported\x20MyBatis\x20XML\x20tag:\x20<'+_0xaacbcb+'>.');if(!_0x2bdd59&&_0x3ffc64!==_0xaacbcb)return invalidMybatisSource(_0xf44a14(0x1e3)+_0x3ffc64+'>.');if(_0x1da2bf){if(_0x189b4a[_0xf44a14(0x1c5)]()||_0x22bb6d)return invalidMybatisSource(_0xf44a14(0x1aa)+_0x3ffc64+'>.');const _0x30acc1=_0x2c8607['at'](-0x1);if(!_0x30acc1||(_0x30acc1[_0xf44a14(0x1c6)]?_0x30acc1['tagName']!==_0xaacbcb:_0x30acc1[_0xf44a14(0x1da)]!==_0x3ffc64))return invalidMybatisSource(_0xf44a14(0x1e7)+_0x3ffc64+'>.');_0x2c8607[_0xf44a14(0x1a4)]();if(_0x30acc1[_0xf44a14(0x1c6)])_0x19573a=!![];_0x16a1e4+=MYBATIS_BRANCH_TAGS[_0xf44a14(0x1cf)](_0xaacbcb)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0x189b4a))return invalidMybatisSource(_0xf44a14(0x1ce)+_0x3ffc64+'>.');if(_0xaacbcb===_0xf44a14(0x1dc)&&(!_0x22bb6d||_0x2c8607['at'](-0x1)?.[_0xf44a14(0x1b8)]!==_0xf44a14(0x19c)))return invalidMybatisSource(_0xf44a14(0x1f6));if(_0x2bdd59){if(_0x271979||_0x2c8607[_0xf44a14(0x1c0)]>0x0)return invalidMybatisSource(_0xf44a14(0x1dd));_0x271979=!![],_0x19573a=_0x22bb6d,_0x5b2435=_0x2bdd59;}else{if(!_0x271979||_0x19573a)return invalidMybatisSource(_0xf44a14(0x1b3)+_0x3ffc64+'>.');}_0x16a1e4+=_0xaacbcb===_0xf44a14(0x1ad)?'\x20WHERE\x20':_0xaacbcb===_0xf44a14(0x1e6)?_0xf44a14(0x1c7):_0xaacbcb===_0xf44a14(0x19c)?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS['has'](_0xaacbcb)&&!_0x22bb6d?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0x22bb6d&&_0x2c8607['push']({'rawName':_0x3ffc64,'tagName':_0xaacbcb,'outer':!!_0x2bdd59});}_0x2c5d79=_0x35afce+0x1;}if(_0x2c8607[_0xf44a14(0x1c0)]>0x0)return invalidMybatisSource(_0xf44a14(0x1d0)+_0x2c8607['at'](-0x1)?.['rawName']+'>.');if(!_0x271979||!_0x19573a)return invalidMybatisSource(_0xf44a14(0x1ed));return{'sql':_0x16a1e4[_0xf44a14(0x1c5)](),'mode':_0xf44a14(0x1c1),..._0x5b2435?{'statementType':_0x5b2435}:{}};}function hasWellFormedXmlAttributes(_0x3ff8dc){const _0x515b52=a238_0x46258c;let _0x49c2e7=0x0;const _0x43ad9f=new Set();while(_0x49c2e7<_0x3ff8dc[_0x515b52(0x1c0)]){while(_0x49c2e7<_0x3ff8dc['length']&&/\s/[_0x515b52(0x1a5)](_0x3ff8dc[_0x49c2e7]??''))_0x49c2e7+=0x1;if(_0x49c2e7>=_0x3ff8dc['length'])return!![];const _0x5d3d63=/^[A-Za-z_:][\w:.-]*/[_0x515b52(0x1b9)](_0x3ff8dc[_0x515b52(0x1d9)](_0x49c2e7)),_0x3fc0e0=_0x5d3d63?.[0x0];if(!_0x3fc0e0||_0x43ad9f[_0x515b52(0x1cf)](_0x3fc0e0))return![];_0x43ad9f['add'](_0x3fc0e0),_0x49c2e7+=_0x3fc0e0[_0x515b52(0x1c0)];while(_0x49c2e7<_0x3ff8dc[_0x515b52(0x1c0)]&&/\s/[_0x515b52(0x1a5)](_0x3ff8dc[_0x49c2e7]??''))_0x49c2e7+=0x1;if(_0x3ff8dc[_0x49c2e7]!=='=')return![];_0x49c2e7+=0x1;while(_0x49c2e7<_0x3ff8dc['length']&&/\s/[_0x515b52(0x1a5)](_0x3ff8dc[_0x49c2e7]??''))_0x49c2e7+=0x1;const _0x18a6d1=_0x3ff8dc[_0x49c2e7];if(_0x18a6d1!=='\x22'&&_0x18a6d1!=='\x27')return![];_0x49c2e7+=0x1;const _0x2184cc=_0x3ff8dc[_0x515b52(0x1d6)](_0x18a6d1,_0x49c2e7);if(_0x2184cc<0x0)return![];if(decodeXmlEntities(_0x3ff8dc[_0x515b52(0x1d9)](_0x49c2e7,_0x2184cc))===null)return![];_0x49c2e7=_0x2184cc+0x1;}return!![];}function startsWithMybatisStatementWrapper(_0x5ca0be){const _0x5f1ce1=a238_0x46258c;let _0x4bee6f=0x0;const _0x48c723=()=>{const _0x32ef32=a238_0x42e4;while(_0x4bee6f<_0x5ca0be[_0x32ef32(0x1c0)]&&/\s/['test'](_0x5ca0be[_0x4bee6f]??''))_0x4bee6f+=0x1;};_0x48c723();while(_0x4bee6f<_0x5ca0be[_0x5f1ce1(0x1c0)]){if(_0x5ca0be[_0x5f1ce1(0x19e)](_0x5f1ce1(0x1ef),_0x4bee6f)){const _0xa2f631=_0x5ca0be[_0x5f1ce1(0x1d6)]('-->',_0x4bee6f+0x4);if(_0xa2f631<0x0)return!![];_0x4bee6f=_0xa2f631+0x3,_0x48c723();continue;}if(_0x5ca0be['startsWith']('<?',_0x4bee6f)){const _0x32dab0=_0x5ca0be['indexOf']('?>',_0x4bee6f+0x2);if(_0x32dab0<0x0)return!![];_0x4bee6f=_0x32dab0+0x2,_0x48c723();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN[_0x5f1ce1(0x1a5)](_0x5ca0be[_0x5f1ce1(0x1d9)](_0x4bee6f));}function invalidMybatisSource(_0x31b538){const _0x3aca9b=a238_0x46258c;return{'sql':'','mode':_0x3aca9b(0x1c1),'error':_0x31b538};}function findXmlTagEnd(_0x4b0b49,_0x9525fe){let _0x343315;for(let _0x1dee49=_0x9525fe+0x1;_0x1dee49<_0x4b0b49['length'];_0x1dee49+=0x1){const _0x43638f=_0x4b0b49[_0x1dee49];if(_0x343315){if(_0x43638f===_0x343315)_0x343315=undefined;continue;}if(_0x43638f==='\x22'||_0x43638f==='\x27'){_0x343315=_0x43638f;continue;}if(_0x43638f==='>')return _0x1dee49;}return-0x1;}function decodeXmlEntities(_0x52fe3b){let _0x598d33=![];const _0x556cca=_0x52fe3b['replace'](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0x37fe85=>{const _0x79a0db=a238_0x42e4;if(_0x37fe85==='&lt;')return'<';if(_0x37fe85==='&gt;')return'>';if(_0x37fe85===_0x79a0db(0x1cb))return'\x22';if(_0x37fe85===_0x79a0db(0x1f4))return'\x27';if(_0x37fe85===_0x79a0db(0x1f8))return'&';const _0x5de7fc=/^&#(?:x([0-9a-f]+)|([0-9]+));$/['exec'](_0x37fe85);if(_0x5de7fc){const _0x25211e=_0x5de7fc[0x1],_0xbd7d15=_0x5de7fc[0x2],_0x3a1561=Number[_0x79a0db(0x1bb)](_0x25211e??_0xbd7d15??'',_0x25211e?0x10:0xa);if(isValidXmlCharacter(_0x3a1561))return String[_0x79a0db(0x1ae)](_0x3a1561);}return _0x598d33=!![],'';});return _0x598d33?null:_0x556cca;}function isValidXmlCharacter(_0x35d460){return _0x35d460===0x9||_0x35d460===0xa||_0x35d460===0xd||_0x35d460>=0x20&&_0x35d460<=0xd7ff||_0x35d460>=0xe000&&_0x35d460<=0xfffd||_0x35d460>=0x10000&&_0x35d460<=0x10ffff;}export function detectSqlType(_0x3d7b88){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0x3d7b88));}function a238_0x2fc2(){const _0xef42c7=['where','fromCodePoint','7pQsxfd','INSERT','select','when','MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<','delete','unknown\x20table(s)','update','DDL','tagName','exec','keys','parseInt','foreach','error','join','-->','length','mybatisXml','isDangerous','CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','choose','trim','outer','\x20SET\x20','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','replace','Unterminated\x20XML\x20declaration.','&quot;','get','2TpBdST','Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<','has','Unclosed\x20MyBatis\x20XML\x20tag:\x20<','7872JmAseN','match','2420415KTkqPj','443419yMwfNZ','type','indexOf','4928748ubdqGE','split','slice','rawName','replaceAll','property','Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.','SQL\x20content\x20is\x20empty','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','otherwise','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','268425MyKtkC','MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','4QdeNGf','set','Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</','Unterminated\x20XML\x20comment.','\x20query\x20targeting\x20','8899mOHqjB','Unable\x20to\x20detect\x20SQL\x20type.\x20','Invalid\x20MyBatis\x20XML\x20tag.','MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.','SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','<!--','__RABETBASE_MYBATIS_DYNAMIC_END__','UPDATE','WITH','4947475egNFgR','&apos;',')\x5cb','MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.','^<\x5cs*(?:','&amp;','insert','reason','Invalid\x20XML\x20entity\x20reference.','DELETE','7725984SdwUQc','include','Unterminated\x20MyBatis\x20XML\x20tag.','startsWith','push','SELECT','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','matchAll','XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.','pop','test','UNKNOWN','toUpperCase','add','30NRoROe','Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</','toLowerCase','sql'];a238_0x2fc2=function(){return _0xef42c7;};return a238_0x2fc2();}function detectNormalizedSqlType(_0x2fdc9a){const _0x98c45d=a238_0x46258c;if(_0x2fdc9a['error'])return{'type':_0x98c45d(0x1a6),'isSelectOnly':![],'isDangerous':![],'reason':_0x2fdc9a[_0x98c45d(0x1bd)]};if(!_0x2fdc9a['sql'][_0x98c45d(0x1c5)]())return{'type':_0x98c45d(0x1a6),'isSelectOnly':![],'isDangerous':![],'reason':_0x98c45d(0x1de)};const _0x11e7e3=stripStaticAnalysisMarkers(_0x2fdc9a[_0x98c45d(0x1ac)])[_0x98c45d(0x1c9)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')['replace'](/@[^(\s]+(\([^)]*\))?/g,'')[_0x98c45d(0x1c9)](/\/\*[\s\S]*?\*\//g,'')[_0x98c45d(0x1c5)](),_0x2e6f15=_0x11e7e3[_0x98c45d(0x1d8)]('\x0a');let _0x39cd98='';for(const _0x30f89d of _0x2e6f15){const _0x28bf04=_0x30f89d[_0x98c45d(0x1c5)]();if(!_0x28bf04||_0x28bf04[_0x98c45d(0x19e)]('--')||_0x28bf04[_0x98c45d(0x19e)]('/*'))continue;_0x39cd98=_0x28bf04;break;}const _0x1c3182=_0x39cd98[_0x98c45d(0x1a7)](),_0x572155=_0x2fdc9a['statementType'],_0x4a780a=maskSqlTextForBlockedKeywordScan(_0x11e7e3),_0x3c4215=/\b(DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x98c45d(0x1a5)](_0x4a780a);if(_0x572155==='SELECT'||!_0x572155&&(_0x1c3182['startsWith'](_0x98c45d(0x1a0))||_0x1c3182[_0x98c45d(0x19e)](_0x98c45d(0x1f2)))){const _0x4732e8=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x98c45d(0x1a5)](_0x11e7e3);return{'type':_0x98c45d(0x1a0),'isSelectOnly':!_0x4732e8,'isDangerous':_0x4732e8,'reason':_0x4732e8?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x572155===_0x98c45d(0x1b0)||!_0x572155&&_0x1c3182[_0x98c45d(0x19e)](_0x98c45d(0x1b0)))return{'type':_0x98c45d(0x1b0),'isSelectOnly':![],'isDangerous':_0x3c4215,'reason':_0x3c4215?_0x98c45d(0x1df):undefined};if(_0x572155===_0x98c45d(0x1f1)||!_0x572155&&_0x1c3182[_0x98c45d(0x19e)](_0x98c45d(0x1f1)))return{'type':_0x98c45d(0x1f1),'isSelectOnly':![],'isDangerous':_0x3c4215,'reason':_0x3c4215?_0x98c45d(0x1df):undefined};if(_0x572155===_0x98c45d(0x1fc)||!_0x572155&&_0x1c3182[_0x98c45d(0x19e)](_0x98c45d(0x1fc)))return{'type':_0x98c45d(0x1fc),'isSelectOnly':![],'isDangerous':!![],'reason':_0x98c45d(0x1e1)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x98c45d(0x1a5)](_0x1c3182))return{'type':_0x98c45d(0x1b7),'isSelectOnly':![],'isDangerous':!![],'reason':_0x98c45d(0x1c8)};return{'type':_0x98c45d(0x1a6),'isSelectOnly':![],'isDangerous':![]};}function stripStaticAnalysisMarkers(_0x61fdf){const _0x27da02=a238_0x46258c;return _0x61fdf[_0x27da02(0x1db)](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x27da02(0x1db)](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x27da02(0x1db)](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function maskSqlTextForBlockedKeywordScan(_0x1e12da){const _0x126274=a238_0x46258c;return _0x1e12da[_0x126274(0x1c9)](/'(?:''|\\.|[^'])*'/g,'\x20')[_0x126274(0x1c9)](/"(?:""|\\.|[^"])*"/g,'\x20')[_0x126274(0x1c9)](/`(?:``|\\.|[^`])*`/g,'\x20')[_0x126274(0x1c9)](/--.*$/gm,'\x20')[_0x126274(0x1c9)](/#.*$/gm,'\x20')[_0x126274(0x1c9)](/\/\*[\s\S]*?\*\//g,'\x20');}function a238_0x42e4(_0x3e10f0,_0x4a6baa){_0x3e10f0=_0x3e10f0-0x19b;const _0x2fc2b8=a238_0x2fc2();let _0x42e484=_0x2fc2b8[_0x3e10f0];return _0x42e484;}function extractTables(_0x51f308){const _0x15c788=a238_0x46258c,_0x4de6c3=_0x51f308[_0x15c788(0x1c9)](/#\{[^}]*\}/g,'?')[_0x15c788(0x1c9)](/\$\{[^}]*\}/g,'?')[_0x15c788(0x1c9)](/'[^']*'/g,'\x27\x27')[_0x15c788(0x1c9)](/--.*$/gm,'')[_0x15c788(0x1c9)](/\/\*[\s\S]*?\*\//g,''),_0x2965b9=[],_0x56aa16=_0x4de6c3['match'](/FROM\s+([^\s,)(]+)/i);addTable(_0x2965b9,_0x56aa16?.[0x1]);for(const _0x422da1 of _0x4de6c3['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x2965b9,_0x422da1[0x1]);}const _0x33a596=_0x4de6c3[_0x15c788(0x1d2)](/INTO\s+([^\s(]+)/i);addTable(_0x2965b9,_0x33a596?.[0x1]);const _0x1da26c=_0x4de6c3['match'](/UPDATE\s+([^\s,)(]+)/i);return addTable(_0x2965b9,_0x1da26c?.[0x1]),_0x2965b9;}function addTable(_0x5c0c7b,_0x3bca4e){const _0x87d004=a238_0x46258c,_0x39acf1=_0x3bca4e?.['replace'](/[`"]/g,'');_0x39acf1&&_0x39acf1!==UNRESOLVED_SQL_FRAGMENT&&!_0x5c0c7b['includes'](_0x39acf1)&&_0x5c0c7b[_0x87d004(0x19f)](_0x39acf1);}function extractParameters(_0x101204){const _0x54c8ab=a238_0x46258c,_0x19bd64=new Set();for(const _0x4c2715 of _0x101204[_0x54c8ab(0x1a2)](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0x4c2715[0x1])_0x19bd64[_0x54c8ab(0x1a8)](_0x4c2715[0x1]);}return Array['from'](_0x19bd64);}export function validateSql(_0x4f92a5){const _0x5a217b=a238_0x46258c,_0x1407bd=normalizeSqlForStaticAnalysis(_0x4f92a5),_0x215f0e=detectNormalizedSqlType(_0x1407bd),_0x45238e=stripStaticAnalysisMarkers(_0x1407bd[_0x5a217b(0x1ac)]),_0x27f702=_0x1407bd['error']?[]:extractTables(_0x45238e),_0x434353=_0x1407bd[_0x5a217b(0x1bd)]?[]:extractParameters(_0x45238e);if(_0x215f0e[_0x5a217b(0x1c2)])return{'valid':![],'sqlType':_0x215f0e,'tables':_0x27f702,'parameters':_0x434353,'message':_0x215f0e[_0x5a217b(0x1fa)]||_0x215f0e['type']+_0x5a217b(0x1e4)};if(_0x215f0e['type']===_0x5a217b(0x1a6))return{'valid':![],'sqlType':_0x215f0e,'tables':_0x27f702,'parameters':_0x434353,'message':_0x1407bd[_0x5a217b(0x1bd)]?_0x5a217b(0x1eb)+_0x1407bd[_0x5a217b(0x1bd)]:_0x5a217b(0x1a1)};return{'valid':!![],'sqlType':_0x215f0e,'tables':_0x27f702,'parameters':_0x434353,'message':_0x215f0e[_0x5a217b(0x1d5)]+_0x5a217b(0x1e9)+(_0x27f702[_0x5a217b(0x1c0)]?_0x27f702['join'](',\x20'):_0x5a217b(0x1b5))+(_0x434353[_0x5a217b(0x1c0)]?'\x20with\x20parameters:\x20'+_0x434353[_0x5a217b(0x1be)](',\x20'):'')};}
1
+ const a239_0x5ec514=a239_0x135c;(function(_0xe0661f,_0x173a79){const _0x5876eb=a239_0x135c,_0x538a87=_0xe0661f();while(!![]){try{const _0x2a6a43=-parseInt(_0x5876eb(0x1e9))/0x1*(parseInt(_0x5876eb(0x21a))/0x2)+-parseInt(_0x5876eb(0x1ea))/0x3+parseInt(_0x5876eb(0x1d5))/0x4*(-parseInt(_0x5876eb(0x1e3))/0x5)+-parseInt(_0x5876eb(0x1f7))/0x6*(-parseInt(_0x5876eb(0x21e))/0x7)+-parseInt(_0x5876eb(0x200))/0x8*(parseInt(_0x5876eb(0x1f0))/0x9)+parseInt(_0x5876eb(0x22a))/0xa+parseInt(_0x5876eb(0x1e5))/0xb;if(_0x2a6a43===_0x173a79)break;else _0x538a87['push'](_0x538a87['shift']());}catch(_0x3a51cc){_0x538a87['push'](_0x538a87['shift']());}}}(a239_0x4f44,0x46a6d));const MYBATIS_OUTER_TAGS=new Map([[a239_0x5ec514(0x21f),a239_0x5ec514(0x218)],[a239_0x5ec514(0x1c8),'INSERT'],[a239_0x5ec514(0x1e0),'UPDATE'],[a239_0x5ec514(0x1ce),a239_0x5ec514(0x228)]]),MYBATIS_DYNAMIC_TAGS=new Set(['if',a239_0x5ec514(0x1d3),a239_0x5ec514(0x201),a239_0x5ec514(0x1e4),'when','otherwise',a239_0x5ec514(0x222),a239_0x5ec514(0x205),'bind',a239_0x5ec514(0x1cb),a239_0x5ec514(0x1dc)]),MYBATIS_BRANCH_TAGS=new Set(['if','foreach',a239_0x5ec514(0x1e4),a239_0x5ec514(0x204),a239_0x5ec514(0x1f1)]);export const MYBATIS_DYNAMIC_START_MARKER=a239_0x5ec514(0x211);export const MYBATIS_DYNAMIC_END_MARKER=a239_0x5ec514(0x1f9);export const MYBATIS_INCLUDE_MARKER=a239_0x5ec514(0x1d8);const UNRESOLVED_SQL_FRAGMENT=a239_0x5ec514(0x1d1),MYBATIS_OUTER_TAG_PATTERN=new RegExp(a239_0x5ec514(0x1cd)+[...MYBATIS_OUTER_TAGS[a239_0x5ec514(0x1e1)]()][a239_0x5ec514(0x1ef)]('|')+a239_0x5ec514(0x1f4),'i');export function normalizeSqlForStaticAnalysis(_0x414b3c){const _0x428010=a239_0x5ec514,_0x4aacd6=typeof _0x414b3c==='string'?_0x414b3c:'';if(!startsWithMybatisStatementWrapper(_0x4aacd6))return{'sql':_0x4aacd6,'mode':_0x428010(0x202)};let _0x31ac52=0x0,_0x1e354c='',_0x37715a,_0x436fb9=![],_0x1feef6=![];const _0x29fc0d=[];while(_0x31ac52<_0x4aacd6[_0x428010(0x203)]){if(_0x4aacd6[_0x428010(0x1ff)](_0x428010(0x210),_0x31ac52)){const _0x12f04d=_0x4aacd6[_0x428010(0x1d2)](_0x428010(0x20c),_0x31ac52+0x4);if(_0x12f04d<0x0)return invalidMybatisSource(_0x428010(0x1d4));_0x1e354c+='\x20',_0x31ac52=_0x12f04d+0x3;continue;}if(_0x4aacd6[_0x428010(0x1ff)]('<![CDATA[',_0x31ac52)){if(!_0x436fb9||_0x1feef6)return invalidMybatisSource(_0x428010(0x1fb));const _0x469d12=_0x4aacd6['indexOf'](']]>',_0x31ac52+0x9);if(_0x469d12<0x0)return invalidMybatisSource(_0x428010(0x224));_0x1e354c+=_0x4aacd6[_0x428010(0x1f5)](_0x31ac52+0x9,_0x469d12),_0x31ac52=_0x469d12+0x3;continue;}if(_0x4aacd6['startsWith']('<?',_0x31ac52)){if(_0x436fb9)return invalidMybatisSource(_0x428010(0x1fc));const _0x493c7e=_0x4aacd6[_0x428010(0x1d2)]('?>',_0x31ac52+0x2);if(_0x493c7e<0x0)return invalidMybatisSource(_0x428010(0x1f3));_0x1e354c+='\x20',_0x31ac52=_0x493c7e+0x2;continue;}if(_0x4aacd6[_0x31ac52]!=='<'){const _0x1575e2=_0x4aacd6[_0x428010(0x1d2)]('<',_0x31ac52),_0xaadfd3=_0x1575e2<0x0?_0x4aacd6[_0x428010(0x203)]:_0x1575e2,_0x3d094d=_0x4aacd6['slice'](_0x31ac52,_0xaadfd3);if((!_0x436fb9||_0x1feef6)&&_0x3d094d[_0x428010(0x222)]())return invalidMybatisSource(_0x428010(0x1ca));if(_0x436fb9&&!_0x1feef6){const _0x46a93e=decodeXmlEntities(_0x3d094d);if(_0x46a93e===null)return invalidMybatisSource(_0x428010(0x21d));_0x1e354c+=_0x46a93e;}else _0x1e354c+='\x20';_0x31ac52=_0xaadfd3;continue;}const _0x2bfec1=findXmlTagEnd(_0x4aacd6,_0x31ac52);if(_0x2bfec1<0x0)return invalidMybatisSource(_0x428010(0x1cc));const _0x4adc24=_0x4aacd6[_0x428010(0x1f5)](_0x31ac52,_0x2bfec1+0x1),_0x35d1dd=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/[_0x428010(0x1f2)](_0x4adc24);if(!_0x35d1dd)return invalidMybatisSource(_0x428010(0x226));const _0x5a640d=_0x35d1dd[0x1]==='/',_0x240fbc=_0x35d1dd[0x2]??'',_0x9521c6=_0x240fbc[_0x428010(0x1da)](),_0x59c66a=_0x35d1dd[0x3]??'',_0x3083e2=_0x35d1dd[0x4]==='/',_0x5c5865=MYBATIS_OUTER_TAGS[_0x428010(0x206)](_0x9521c6);if(!_0x5c5865&&!MYBATIS_DYNAMIC_TAGS['has'](_0x9521c6))return invalidMybatisSource(_0x428010(0x1d0)+_0x9521c6+'>.');if(!_0x5c5865&&_0x240fbc!==_0x9521c6)return invalidMybatisSource(_0x428010(0x1ed)+_0x240fbc+'>.');if(_0x5a640d){if(_0x59c66a[_0x428010(0x222)]()||_0x3083e2)return invalidMybatisSource(_0x428010(0x1db)+_0x240fbc+'>.');const _0x530380=_0x29fc0d['at'](-0x1);if(!_0x530380||(_0x530380[_0x428010(0x1eb)]?_0x530380[_0x428010(0x1fd)]!==_0x9521c6:_0x530380[_0x428010(0x216)]!==_0x240fbc))return invalidMybatisSource(_0x428010(0x209)+_0x240fbc+'>.');_0x29fc0d[_0x428010(0x1e8)]();if(_0x530380['outer'])_0x1feef6=!![];_0x1e354c+=MYBATIS_BRANCH_TAGS[_0x428010(0x227)](_0x9521c6)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0x59c66a))return invalidMybatisSource(_0x428010(0x1e7)+_0x240fbc+'>.');if(_0x9521c6===_0x428010(0x1dc)&&(!_0x3083e2||_0x29fc0d['at'](-0x1)?.[_0x428010(0x1fd)]!==_0x428010(0x1cb)))return invalidMybatisSource(_0x428010(0x20d));if(_0x5c5865){if(_0x436fb9||_0x29fc0d['length']>0x0)return invalidMybatisSource(_0x428010(0x214));_0x436fb9=!![],_0x1feef6=_0x3083e2,_0x37715a=_0x5c5865;}else{if(!_0x436fb9||_0x1feef6)return invalidMybatisSource(_0x428010(0x212)+_0x240fbc+'>.');}_0x1e354c+=_0x9521c6===_0x428010(0x1d3)?'\x20WHERE\x20':_0x9521c6===_0x428010(0x205)?_0x428010(0x220):_0x9521c6==='include'?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS[_0x428010(0x227)](_0x9521c6)&&!_0x3083e2?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0x3083e2&&_0x29fc0d[_0x428010(0x207)]({'rawName':_0x240fbc,'tagName':_0x9521c6,'outer':!!_0x5c5865});}_0x31ac52=_0x2bfec1+0x1;}if(_0x29fc0d[_0x428010(0x203)]>0x0)return invalidMybatisSource(_0x428010(0x215)+_0x29fc0d['at'](-0x1)?.[_0x428010(0x216)]+'>.');if(!_0x436fb9||!_0x1feef6)return invalidMybatisSource(_0x428010(0x20f));return{'sql':_0x1e354c[_0x428010(0x222)](),'mode':_0x428010(0x1ee),..._0x37715a?{'statementType':_0x37715a}:{}};}function hasWellFormedXmlAttributes(_0xa0fecb){const _0x38ca94=a239_0x5ec514;let _0x276275=0x0;const _0x2f84dc=new Set();while(_0x276275<_0xa0fecb[_0x38ca94(0x203)]){while(_0x276275<_0xa0fecb[_0x38ca94(0x203)]&&/\s/[_0x38ca94(0x229)](_0xa0fecb[_0x276275]??''))_0x276275+=0x1;if(_0x276275>=_0xa0fecb['length'])return!![];const _0x37bbb0=/^[A-Za-z_:][\w:.-]*/[_0x38ca94(0x1f2)](_0xa0fecb['slice'](_0x276275)),_0x4fb5cf=_0x37bbb0?.[0x0];if(!_0x4fb5cf||_0x2f84dc[_0x38ca94(0x227)](_0x4fb5cf))return![];_0x2f84dc[_0x38ca94(0x1fe)](_0x4fb5cf),_0x276275+=_0x4fb5cf[_0x38ca94(0x203)];while(_0x276275<_0xa0fecb[_0x38ca94(0x203)]&&/\s/[_0x38ca94(0x229)](_0xa0fecb[_0x276275]??''))_0x276275+=0x1;if(_0xa0fecb[_0x276275]!=='=')return![];_0x276275+=0x1;while(_0x276275<_0xa0fecb[_0x38ca94(0x203)]&&/\s/['test'](_0xa0fecb[_0x276275]??''))_0x276275+=0x1;const _0x8ae040=_0xa0fecb[_0x276275];if(_0x8ae040!=='\x22'&&_0x8ae040!=='\x27')return![];_0x276275+=0x1;const _0x5113c0=_0xa0fecb[_0x38ca94(0x1d2)](_0x8ae040,_0x276275);if(_0x5113c0<0x0)return![];if(decodeXmlEntities(_0xa0fecb[_0x38ca94(0x1f5)](_0x276275,_0x5113c0))===null)return![];_0x276275=_0x5113c0+0x1;}return!![];}function startsWithMybatisStatementWrapper(_0x33edb1){const _0x1149d7=a239_0x5ec514;let _0x2a2f48=0x0;const _0x4b43fc=()=>{const _0x13a71c=a239_0x135c;while(_0x2a2f48<_0x33edb1[_0x13a71c(0x203)]&&/\s/[_0x13a71c(0x229)](_0x33edb1[_0x2a2f48]??''))_0x2a2f48+=0x1;};_0x4b43fc();while(_0x2a2f48<_0x33edb1[_0x1149d7(0x203)]){if(_0x33edb1[_0x1149d7(0x1ff)](_0x1149d7(0x210),_0x2a2f48)){const _0x2b807a=_0x33edb1[_0x1149d7(0x1d2)]('-->',_0x2a2f48+0x4);if(_0x2b807a<0x0)return!![];_0x2a2f48=_0x2b807a+0x3,_0x4b43fc();continue;}if(_0x33edb1[_0x1149d7(0x1ff)]('<?',_0x2a2f48)){const _0x1f2fb2=_0x33edb1[_0x1149d7(0x1d2)]('?>',_0x2a2f48+0x2);if(_0x1f2fb2<0x0)return!![];_0x2a2f48=_0x1f2fb2+0x2,_0x4b43fc();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN[_0x1149d7(0x229)](_0x33edb1[_0x1149d7(0x1f5)](_0x2a2f48));}function invalidMybatisSource(_0x298374){const _0x4bb29f=a239_0x5ec514;return{'sql':'','mode':_0x4bb29f(0x1ee),'error':_0x298374};}function findXmlTagEnd(_0xd55e9,_0x27647c){let _0xa20eef;for(let _0x141b47=_0x27647c+0x1;_0x141b47<_0xd55e9['length'];_0x141b47+=0x1){const _0x54e8a9=_0xd55e9[_0x141b47];if(_0xa20eef){if(_0x54e8a9===_0xa20eef)_0xa20eef=undefined;continue;}if(_0x54e8a9==='\x22'||_0x54e8a9==='\x27'){_0xa20eef=_0x54e8a9;continue;}if(_0x54e8a9==='>')return _0x141b47;}return-0x1;}function decodeXmlEntities(_0x4880c2){const _0x23cc6f=a239_0x5ec514;let _0x4ffeae=![];const _0x2fd28b=_0x4880c2[_0x23cc6f(0x213)](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0x4b447d=>{const _0x1ad39b=_0x23cc6f;if(_0x4b447d==='&lt;')return'<';if(_0x4b447d===_0x1ad39b(0x221))return'>';if(_0x4b447d===_0x1ad39b(0x1fa))return'\x22';if(_0x4b447d===_0x1ad39b(0x1d6))return'\x27';if(_0x4b447d==='&amp;')return'&';const _0x3608a9=/^&#(?:x([0-9a-f]+)|([0-9]+));$/['exec'](_0x4b447d);if(_0x3608a9){const _0xd5b8ce=_0x3608a9[0x1],_0x5c5b7a=_0x3608a9[0x2],_0x3858d4=Number[_0x1ad39b(0x225)](_0xd5b8ce??_0x5c5b7a??'',_0xd5b8ce?0x10:0xa);if(isValidXmlCharacter(_0x3858d4))return String['fromCodePoint'](_0x3858d4);}return _0x4ffeae=!![],'';});return _0x4ffeae?null:_0x2fd28b;}function isValidXmlCharacter(_0x50a68e){return _0x50a68e===0x9||_0x50a68e===0xa||_0x50a68e===0xd||_0x50a68e>=0x20&&_0x50a68e<=0xd7ff||_0x50a68e>=0xe000&&_0x50a68e<=0xfffd||_0x50a68e>=0x10000&&_0x50a68e<=0x10ffff;}function a239_0x4f44(){const _0x717d1b=['Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.','Unclosed\x20MyBatis\x20XML\x20tag:\x20<','rawName','match','SELECT','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','34oNvmOP','type','\x20query\x20targeting\x20','Invalid\x20XML\x20entity\x20reference.','28931gJoMsy','select','\x20SET\x20','&gt;','trim','UNKNOWN','Unterminated\x20CDATA\x20section.','parseInt','Invalid\x20MyBatis\x20XML\x20tag.','has','DELETE','test','1011530oxYFFb','insert','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','include','Unterminated\x20MyBatis\x20XML\x20tag.','^<\x5cs*(?:','delete','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','Unsupported\x20MyBatis\x20XML\x20tag:\x20<','__RABETBASE_UNRESOLVED_SQL_FRAGMENT__','indexOf','where','Unterminated\x20XML\x20comment.','17884rafcgJ','&apos;','statementType','__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__','INSERT','toLowerCase','Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</','property','split','reason','Unable\x20to\x20detect\x20SQL\x20type.\x20','update','keys','WITH','445CdFPqu','choose','19431808GNxaHd','matchAll','Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<','pop','29945SYonPS','805146USVEaS','outer','SQL\x20content\x20is\x20empty','MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<','mybatisXml','join','44271aAsAyi','otherwise','exec','Unterminated\x20XML\x20declaration.',')\x5cb','slice','\x20with\x20parameters:\x20','222JAjqVQ','unknown\x20table(s)','__RABETBASE_MYBATIS_DYNAMIC_END__','&quot;','CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.','tagName','add','startsWith','904MlnufC','foreach','sql','length','when','set','get','push','UPDATE','Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</','error','toUpperCase','-->','MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.','replaceAll','MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.','<!--','__RABETBASE_MYBATIS_DYNAMIC_START__','MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<','replace'];a239_0x4f44=function(){return _0x717d1b;};return a239_0x4f44();}export function detectSqlType(_0x531c64){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0x531c64));}function detectNormalizedSqlType(_0x7022fd){const _0x42afe7=a239_0x5ec514;if(_0x7022fd['error'])return{'type':_0x42afe7(0x223),'isSelectOnly':![],'isDangerous':![],'reason':_0x7022fd[_0x42afe7(0x20a)]};if(!_0x7022fd['sql']['trim']())return{'type':_0x42afe7(0x223),'isSelectOnly':![],'isDangerous':![],'reason':_0x42afe7(0x1ec)};const _0x394733=stripStaticAnalysisMarkers(_0x7022fd[_0x42afe7(0x202)])['replace'](/#\{[^}]*\}/g,'?')[_0x42afe7(0x213)](/\$\{[^}]*\}/g,'?')[_0x42afe7(0x213)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x42afe7(0x213)](/\/\*[\s\S]*?\*\//g,'')[_0x42afe7(0x222)](),_0x578d68=_0x394733[_0x42afe7(0x1dd)]('\x0a');let _0x287413='';for(const _0x3c5d49 of _0x578d68){const _0xba49ad=_0x3c5d49['trim']();if(!_0xba49ad||_0xba49ad[_0x42afe7(0x1ff)]('--')||_0xba49ad[_0x42afe7(0x1ff)]('/*'))continue;_0x287413=_0xba49ad;break;}const _0xaf9243=_0x287413[_0x42afe7(0x20b)](),_0x3a0e58=_0x7022fd[_0x42afe7(0x1d7)],_0x1771ff=maskSqlTextForBlockedKeywordScan(_0x394733),_0x5709c6=/\b(DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x42afe7(0x229)](_0x1771ff);if(_0x3a0e58===_0x42afe7(0x218)||!_0x3a0e58&&(_0xaf9243[_0x42afe7(0x1ff)](_0x42afe7(0x218))||_0xaf9243[_0x42afe7(0x1ff)](_0x42afe7(0x1e2)))){const _0x282c78=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x42afe7(0x229)](_0x394733);return{'type':_0x42afe7(0x218),'isSelectOnly':!_0x282c78,'isDangerous':_0x282c78,'reason':_0x282c78?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x3a0e58==='INSERT'||!_0x3a0e58&&_0xaf9243[_0x42afe7(0x1ff)](_0x42afe7(0x1d9)))return{'type':_0x42afe7(0x1d9),'isSelectOnly':![],'isDangerous':_0x5709c6,'reason':_0x5709c6?_0x42afe7(0x219):undefined};if(_0x3a0e58==='UPDATE'||!_0x3a0e58&&_0xaf9243[_0x42afe7(0x1ff)](_0x42afe7(0x208)))return{'type':_0x42afe7(0x208),'isSelectOnly':![],'isDangerous':_0x5709c6,'reason':_0x5709c6?'SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements':undefined};if(_0x3a0e58===_0x42afe7(0x228)||!_0x3a0e58&&_0xaf9243[_0x42afe7(0x1ff)](_0x42afe7(0x228)))return{'type':_0x42afe7(0x228),'isSelectOnly':![],'isDangerous':!![],'reason':_0x42afe7(0x1cf)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x42afe7(0x229)](_0xaf9243))return{'type':'DDL','isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function a239_0x135c(_0x3b0ea4,_0x3eb2f1){_0x3b0ea4=_0x3b0ea4-0x1c8;const _0x4f4447=a239_0x4f44();let _0x135c6b=_0x4f4447[_0x3b0ea4];return _0x135c6b;}function stripStaticAnalysisMarkers(_0x20ba79){const _0x440bdd=a239_0x5ec514;return _0x20ba79[_0x440bdd(0x20e)](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x440bdd(0x20e)](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x440bdd(0x20e)](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function maskSqlTextForBlockedKeywordScan(_0x3dacfd){const _0x36457f=a239_0x5ec514;return _0x3dacfd['replace'](/'(?:''|\\.|[^'])*'/g,'\x20')['replace'](/"(?:""|\\.|[^"])*"/g,'\x20')[_0x36457f(0x213)](/`(?:``|\\.|[^`])*`/g,'\x20')[_0x36457f(0x213)](/--.*$/gm,'\x20')['replace'](/#.*$/gm,'\x20')[_0x36457f(0x213)](/\/\*[\s\S]*?\*\//g,'\x20');}function extractTables(_0x509c53){const _0x88eb6=a239_0x5ec514,_0x471eab=_0x509c53[_0x88eb6(0x213)](/#\{[^}]*\}/g,'?')[_0x88eb6(0x213)](/\$\{[^}]*\}/g,'?')[_0x88eb6(0x213)](/'[^']*'/g,'\x27\x27')[_0x88eb6(0x213)](/--.*$/gm,'')[_0x88eb6(0x213)](/\/\*[\s\S]*?\*\//g,''),_0x470e88=[],_0x20a1c1=_0x471eab[_0x88eb6(0x217)](/FROM\s+([^\s,)(]+)/i);addTable(_0x470e88,_0x20a1c1?.[0x1]);for(const _0xdfb4a9 of _0x471eab[_0x88eb6(0x1e6)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x470e88,_0xdfb4a9[0x1]);}const _0x5972ce=_0x471eab[_0x88eb6(0x217)](/INTO\s+([^\s(]+)/i);addTable(_0x470e88,_0x5972ce?.[0x1]);const _0x3b3d06=_0x471eab[_0x88eb6(0x217)](/UPDATE\s+([^\s,)(]+)/i);return addTable(_0x470e88,_0x3b3d06?.[0x1]),_0x470e88;}function addTable(_0x42e53e,_0x4306a4){const _0x2138f0=a239_0x5ec514,_0x50ca1f=_0x4306a4?.['replace'](/[`"]/g,'');_0x50ca1f&&_0x50ca1f!==UNRESOLVED_SQL_FRAGMENT&&!_0x42e53e['includes'](_0x50ca1f)&&_0x42e53e[_0x2138f0(0x207)](_0x50ca1f);}function extractParameters(_0x1a17f7){const _0x3a644c=a239_0x5ec514,_0x4a551d=new Set();for(const _0x20e1c7 of _0x1a17f7[_0x3a644c(0x1e6)](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0x20e1c7[0x1])_0x4a551d[_0x3a644c(0x1fe)](_0x20e1c7[0x1]);}return Array['from'](_0x4a551d);}export function validateSql(_0x500858){const _0x1a7dfa=a239_0x5ec514,_0x589550=normalizeSqlForStaticAnalysis(_0x500858),_0x3b263f=detectNormalizedSqlType(_0x589550),_0x55a071=stripStaticAnalysisMarkers(_0x589550[_0x1a7dfa(0x202)]),_0x4f7b55=_0x589550[_0x1a7dfa(0x20a)]?[]:extractTables(_0x55a071),_0x21303f=_0x589550[_0x1a7dfa(0x20a)]?[]:extractParameters(_0x55a071);if(_0x3b263f['isDangerous'])return{'valid':![],'sqlType':_0x3b263f,'tables':_0x4f7b55,'parameters':_0x21303f,'message':_0x3b263f[_0x1a7dfa(0x1de)]||_0x3b263f[_0x1a7dfa(0x21b)]+_0x1a7dfa(0x1c9)};if(_0x3b263f[_0x1a7dfa(0x21b)]===_0x1a7dfa(0x223))return{'valid':![],'sqlType':_0x3b263f,'tables':_0x4f7b55,'parameters':_0x21303f,'message':_0x589550[_0x1a7dfa(0x20a)]?_0x1a7dfa(0x1df)+_0x589550[_0x1a7dfa(0x20a)]:'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0x3b263f,'tables':_0x4f7b55,'parameters':_0x21303f,'message':_0x3b263f[_0x1a7dfa(0x21b)]+_0x1a7dfa(0x21c)+(_0x4f7b55['length']?_0x4f7b55[_0x1a7dfa(0x1ef)](',\x20'):_0x1a7dfa(0x1f8))+(_0x21303f[_0x1a7dfa(0x203)]?_0x1a7dfa(0x1f6)+_0x21303f['join'](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a239_0x350c2e=a239_0x4dcb;(function(_0x8ec669,_0x34255d){const _0x3cf8ba=a239_0x4dcb,_0x434df7=_0x8ec669();while(!![]){try{const _0x5a3baa=parseInt(_0x3cf8ba(0x18c))/0x1+-parseInt(_0x3cf8ba(0x18b))/0x2*(-parseInt(_0x3cf8ba(0x193))/0x3)+-parseInt(_0x3cf8ba(0x191))/0x4+-parseInt(_0x3cf8ba(0x18f))/0x5*(-parseInt(_0x3cf8ba(0x18d))/0x6)+parseInt(_0x3cf8ba(0x185))/0x7*(-parseInt(_0x3cf8ba(0x194))/0x8)+-parseInt(_0x3cf8ba(0x188))/0x9+parseInt(_0x3cf8ba(0x186))/0xa*(-parseInt(_0x3cf8ba(0x192))/0xb);if(_0x5a3baa===_0x34255d)break;else _0x434df7['push'](_0x434df7['shift']());}catch(_0xa5a9fa){_0x434df7['push'](_0x434df7['shift']());}}}(a239_0xd6f4,0x297c5));function a239_0x4dcb(_0x5129c3,_0x39f5ac){_0x5129c3=_0x5129c3-0x185;const _0xd6f468=a239_0xd6f4();let _0x4dcbb4=_0xd6f468[_0x5129c3];return _0x4dcbb4;}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a239_0xd6f4(){const _0x45763e=['4870cKUWpI','Set\x20appcode\x20via\x20`','895608SRSPMo','Run\x20`','\x20auth`\x20to\x20login\x20first.','2UptGRb','322580vUdDSj','348sOaSIp','join','11330VNFttd','Tip:\x20`','1024796TEcepP','253wKBFSr','325761bpzqYe','432PRFfwt','\x0a\x20\x20\x20\x20\x20\x20\x20','3339vhhqcg'];a239_0xd6f4=function(){return _0x45763e;};return a239_0xd6f4();}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a239_0x350c2e(0x189)+CLI_BIN_NAME+a239_0x350c2e(0x18a),'configMissingHint':[a239_0x350c2e(0x187)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.',a239_0x350c2e(0x190)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.'][a239_0x350c2e(0x18e)](a239_0x350c2e(0x195)),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});
1
+ const a240_0x245110=a240_0x2836;(function(_0x2b4e6b,_0x55f508){const _0x579d89=a240_0x2836,_0x183657=_0x2b4e6b();while(!![]){try{const _0x1f3ba1=-parseInt(_0x579d89(0x114))/0x1*(parseInt(_0x579d89(0x106))/0x2)+parseInt(_0x579d89(0x10d))/0x3*(-parseInt(_0x579d89(0x112))/0x4)+-parseInt(_0x579d89(0x108))/0x5+-parseInt(_0x579d89(0x107))/0x6+-parseInt(_0x579d89(0x10b))/0x7+-parseInt(_0x579d89(0x109))/0x8+parseInt(_0x579d89(0x113))/0x9;if(_0x1f3ba1===_0x55f508)break;else _0x183657['push'](_0x183657['shift']());}catch(_0x50ada1){_0x183657['push'](_0x183657['shift']());}}}(a240_0x520b,0x924f4));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a240_0x520b(){const _0x2b3bf3=['1114560FiXCSk','1574045eYjVgk','5677960SWvNoK','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','7057365ZCNEdO','\x0a\x20\x20\x20\x20\x20\x20\x20','93kSYJNA','Run\x20`','Tip:\x20`','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','join','106748CEORqf','40634703mWyKZX','19czTOrf','Set\x20appcode\x20via\x20`','\x20auth`\x20to\x20login\x20first.','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','91566yKyMzp'];a240_0x520b=function(){return _0x2b3bf3;};return a240_0x520b();}function a240_0x2836(_0x2a26fe,_0x39be50){_0x2a26fe=_0x2a26fe-0x103;const _0x520b87=a240_0x520b();let _0x2836a5=_0x520b87[_0x2a26fe];return _0x2836a5;}import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a240_0x245110(0x10e)+CLI_BIN_NAME+a240_0x245110(0x104),'configMissingHint':[a240_0x245110(0x103)+CLI_BIN_NAME+a240_0x245110(0x110),a240_0x245110(0x10f)+CLI_BIN_NAME+a240_0x245110(0x10a)][a240_0x245110(0x111)](a240_0x245110(0x10c)),'notInProjectHint':a240_0x245110(0x105)});
@@ -1 +1 @@
1
- function a240_0x4dd4(){const _0x39aa29=['1791lnmPqA','map','1213860ccrqdl','5584AFmunj','name','3361638XsBOrp','1763nxuCGM','1176948ojizrv','229120pJMgRj','yes','1843203hIxXSh','648mjMKKk'];a240_0x4dd4=function(){return _0x39aa29;};return a240_0x4dd4();}(function(_0x23a4f8,_0x3a85eb){const _0x1ef92e=a240_0x37e6,_0x4c2965=_0x23a4f8();while(!![]){try{const _0x537ea9=parseInt(_0x1ef92e(0xd7))/0x1*(parseInt(_0x1ef92e(0xdc))/0x2)+-parseInt(_0x1ef92e(0xdb))/0x3+parseInt(_0x1ef92e(0xd9))/0x4+-parseInt(_0x1ef92e(0xdf))/0x5+parseInt(_0x1ef92e(0xd8))/0x6+parseInt(_0x1ef92e(0xd6))/0x7+-parseInt(_0x1ef92e(0xe0))/0x8*(parseInt(_0x1ef92e(0xdd))/0x9);if(_0x537ea9===_0x3a85eb)break;else _0x4c2965['push'](_0x4c2965['shift']());}catch(_0x20b083){_0x4c2965['push'](_0x4c2965['shift']());}}}(a240_0x4dd4,0x4b649));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a240_0xc8cd8c}from'@lovrabet/cli-framework';function a240_0x37e6(_0x2e9b25,_0x9faf4e){_0x2e9b25=_0x2e9b25-0xd5;const _0x4dd42b=a240_0x4dd4();let _0x37e6b6=_0x4dd42b[_0x2e9b25];return _0x37e6b6;}import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';export function buildAllFlags(_0x1719f4){const _0x17076b=a240_0x37e6,_0x5d5e2b=a240_0xc8cd8c(_0x1719f4,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0x1719f4))return _0x5d5e2b;return _0x5d5e2b[_0x17076b(0xde)](_0x17cfe7=>_0x17cfe7[_0x17076b(0xd5)]===_0x17076b(0xda)?{..._0x17cfe7,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x17cfe7);}
1
+ (function(_0x5484a7,_0xc6a33c){const _0x1646fa=a241_0x3d08,_0x1d5813=_0x5484a7();while(!![]){try{const _0x486068=-parseInt(_0x1646fa(0x1cc))/0x1+parseInt(_0x1646fa(0x1d2))/0x2*(-parseInt(_0x1646fa(0x1c8))/0x3)+parseInt(_0x1646fa(0x1ce))/0x4+-parseInt(_0x1646fa(0x1d0))/0x5+parseInt(_0x1646fa(0x1ca))/0x6+parseInt(_0x1646fa(0x1d1))/0x7+parseInt(_0x1646fa(0x1cb))/0x8;if(_0x486068===_0xc6a33c)break;else _0x1d5813['push'](_0x1d5813['shift']());}catch(_0xb7e34e){_0x1d5813['push'](_0x1d5813['shift']());}}}(a241_0x6cc5,0x434c2));function a241_0x6cc5(){const _0xb7841=['1071217akTemh','15692yUbbPs','177krADOi','map','462324RQmGUf','5574304VwZOlX','298430luFypF','yes','1828196IezsZC','name','1734640zkmOig'];a241_0x6cc5=function(){return _0xb7841;};return a241_0x6cc5();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a241_0x3d08(_0x351dc6,_0x252a92){_0x351dc6=_0x351dc6-0x1c8;const _0x6cc50b=a241_0x6cc5();let _0x3d0805=_0x6cc50b[_0x351dc6];return _0x3d0805;}import{buildAllFlags as a241_0x2c3b0c}from'@lovrabet/cli-framework';import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';export function buildAllFlags(_0xef267c){const _0x130ce2=a241_0x3d08,_0x1a7eb1=a241_0x2c3b0c(_0xef267c,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0xef267c))return _0x1a7eb1;return _0x1a7eb1[_0x130ce2(0x1c9)](_0x1b7740=>_0x1b7740[_0x130ce2(0x1cf)]===_0x130ce2(0x1cd)?{..._0x1b7740,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x1b7740);}
@@ -1 +1 @@
1
- (function(_0x291ebb,_0x529a48){var _0xecc87a=a241_0x12be,_0x4e568d=_0x291ebb();while(!![]){try{var _0x4be15b=parseInt(_0xecc87a(0x15c))/0x1+parseInt(_0xecc87a(0x15d))/0x2*(-parseInt(_0xecc87a(0x161))/0x3)+-parseInt(_0xecc87a(0x15f))/0x4+-parseInt(_0xecc87a(0x15e))/0x5+parseInt(_0xecc87a(0x15b))/0x6*(parseInt(_0xecc87a(0x160))/0x7)+parseInt(_0xecc87a(0x162))/0x8+-parseInt(_0xecc87a(0x158))/0x9;if(_0x4be15b===_0x529a48)break;else _0x4e568d['push'](_0x4e568d['shift']());}catch(_0xab752e){_0x4e568d['push'](_0x4e568d['shift']());}}}(a241_0x51cb,0x467a7));function a241_0x12be(_0x40de8e,_0x5adba2){_0x40de8e=_0x40de8e-0x158;var _0x51cbbd=a241_0x51cb();var _0x12bee9=_0x51cbbd[_0x40de8e];return _0x12bee9;}import{resolveOutputConfig}from'@lovrabet/cli-framework';function a241_0x51cb(){var _0x31f7=['798140jRZfDc','1026676mDiDOB','315XoztAa','1072551xZfpzD','3606576RQRqkM','234234tCRGIC','defaultFormat','def','27150cogHSF','434072hFnqdt','2rNtlVU'];a241_0x51cb=function(){return _0x31f7;};return a241_0x51cb();}export function usesStructuredErrorOutput(_0x33010d){return _0x33010d?.['structuredErrors']===!![];}export function resolveErrorOutputFormat(_0x3a4fff){var _0x4b2d6f=a241_0x12be;if(!_0x3a4fff[_0x4b2d6f(0x15a)])return _0x3a4fff[_0x4b2d6f(0x159)]??'compress';return resolveOutputConfig({'flags':_0x3a4fff['flags']??{},'def':_0x3a4fff['def'],'configDefault':_0x3a4fff['defaultFormat']})['format'];}
1
+ function a242_0x58a7(_0x4d2746,_0x147cce){_0x4d2746=_0x4d2746-0x7f;var _0x2c8b1f=a242_0x2c8b();var _0x58a7bd=_0x2c8b1f[_0x4d2746];return _0x58a7bd;}(function(_0x5da31b,_0x591e73){var _0x195d71=a242_0x58a7,_0xb112f3=_0x5da31b();while(!![]){try{var _0x7d9005=-parseInt(_0x195d71(0x8a))/0x1*(parseInt(_0x195d71(0x85))/0x2)+parseInt(_0x195d71(0x87))/0x3+parseInt(_0x195d71(0x81))/0x4*(parseInt(_0x195d71(0x88))/0x5)+parseInt(_0x195d71(0x7f))/0x6*(-parseInt(_0x195d71(0x8f))/0x7)+-parseInt(_0x195d71(0x8c))/0x8+-parseInt(_0x195d71(0x8b))/0x9*(-parseInt(_0x195d71(0x86))/0xa)+parseInt(_0x195d71(0x8d))/0xb;if(_0x7d9005===_0x591e73)break;else _0xb112f3['push'](_0xb112f3['shift']());}catch(_0x304682){_0xb112f3['push'](_0xb112f3['shift']());}}}(a242_0x2c8b,0xa2168));import{resolveOutputConfig}from'@lovrabet/cli-framework';function a242_0x2c8b(){var _0xa96c77=['93514yvskro','44980TDPKxc','1238346xEkIJm','5TjuGmv','compress','1mWnUCe','1107AAamgM','6751272okcSro','11157410gNXSSn','structuredErrors','375599ShbhfJ','78woyOTP','flags','1087092FCTbNV','format','def','defaultFormat'];a242_0x2c8b=function(){return _0xa96c77;};return a242_0x2c8b();}export function usesStructuredErrorOutput(_0x14faa3){var _0x215cc7=a242_0x58a7;return _0x14faa3?.[_0x215cc7(0x8e)]===!![];}export function resolveErrorOutputFormat(_0x8e9f17){var _0x3279b7=a242_0x58a7;if(!_0x8e9f17[_0x3279b7(0x83)])return _0x8e9f17['defaultFormat']??_0x3279b7(0x89);return resolveOutputConfig({'flags':_0x8e9f17[_0x3279b7(0x80)]??{},'def':_0x8e9f17[_0x3279b7(0x83)],'configDefault':_0x8e9f17[_0x3279b7(0x84)]})[_0x3279b7(0x82)];}
@@ -1 +1 @@
1
- const a242_0x210098=a242_0x25e5;(function(_0x388724,_0x2bb9bd){const _0x14d860=a242_0x25e5,_0x53b0a5=_0x388724();while(!![]){try{const _0x5eaced=parseInt(_0x14d860(0x1fe))/0x1+parseInt(_0x14d860(0x1f7))/0x2*(parseInt(_0x14d860(0x1ff))/0x3)+-parseInt(_0x14d860(0x1f5))/0x4*(-parseInt(_0x14d860(0x1fc))/0x5)+-parseInt(_0x14d860(0x1f9))/0x6+parseInt(_0x14d860(0x1fb))/0x7*(-parseInt(_0x14d860(0x1f6))/0x8)+parseInt(_0x14d860(0x1fa))/0x9+-parseInt(_0x14d860(0x1f8))/0xa;if(_0x5eaced===_0x2bb9bd)break;else _0x53b0a5['push'](_0x53b0a5['shift']());}catch(_0x5162da){_0x53b0a5['push'](_0x53b0a5['shift']());}}}(a242_0x8987,0x4608c));const EXPLICIT_YES_COMMANDS=new Set(['menu\x20delete',a242_0x210098(0x1f2),a242_0x210098(0x1fd),a242_0x210098(0x1f4)]);export const EXPLICIT_YES_FLAG_DESCRIPTION=a242_0x210098(0x1f1);export function requiresExplicitYes(_0x501bcf){const _0x1db411=a242_0x210098;return EXPLICIT_YES_COMMANDS['has'](_0x501bcf['service']+'\x20'+_0x501bcf[_0x1db411(0x1f3)]);}function a242_0x25e5(_0x56bca9,_0x3d5d95){_0x56bca9=_0x56bca9-0x1f1;const _0x898725=a242_0x8987();let _0x25e5be=_0x898725[_0x56bca9];return _0x25e5be;}function a242_0x8987(){const _0x3ce1c8=['kb\x20delete','command','notification\x20config-delete','12NdAHnZ','272gmqjCz','541642rJnNuz','6851540QccuQP','748224uuORit','4441455GJXazk','36904eXYiWJ','132370nbQkzX','notification\x20config-update','432228sUBnSD','3AfojbT','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan'];a242_0x8987=function(){return _0x3ce1c8;};return a242_0x8987();}
1
+ const a243_0x31d015=a243_0xee9f;function a243_0xee9f(_0x343d2c,_0xc3ae58){_0x343d2c=_0x343d2c-0xcb;const _0x42cde0=a243_0x42cd();let _0xee9f68=_0x42cde0[_0x343d2c];return _0xee9f68;}(function(_0x18fc58,_0xfa095e){const _0x121fbd=a243_0xee9f,_0x369486=_0x18fc58();while(!![]){try{const _0x5d9fab=parseInt(_0x121fbd(0xda))/0x1*(-parseInt(_0x121fbd(0xcb))/0x2)+parseInt(_0x121fbd(0xd9))/0x3+parseInt(_0x121fbd(0xcd))/0x4+parseInt(_0x121fbd(0xd2))/0x5*(-parseInt(_0x121fbd(0xcc))/0x6)+parseInt(_0x121fbd(0xd3))/0x7*(parseInt(_0x121fbd(0xd7))/0x8)+parseInt(_0x121fbd(0xd4))/0x9*(parseInt(_0x121fbd(0xd0))/0xa)+-parseInt(_0x121fbd(0xce))/0xb;if(_0x5d9fab===_0xfa095e)break;else _0x369486['push'](_0x369486['shift']());}catch(_0x14a268){_0x369486['push'](_0x369486['shift']());}}}(a243_0x42cd,0xaac83));const EXPLICIT_YES_COMMANDS=new Set(['menu\x20delete',a243_0x31d015(0xd8),'notification\x20config-update','notification\x20config-delete']);export const EXPLICIT_YES_FLAG_DESCRIPTION=a243_0x31d015(0xd5);function a243_0x42cd(){const _0x3be66c=['2EopVIf','2154lbowMD','5206528WhxWYV','20861808mrAQLm','has','3924370FstFLY','service','4895vrgGJV','7PgTAVG','9MdfSCH','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan','command','9279104RdxKtm','kb\x20delete','2326311ppPkrl','681882EAeYfc'];a243_0x42cd=function(){return _0x3be66c;};return a243_0x42cd();}export function requiresExplicitYes(_0x15004e){const _0x1f8227=a243_0x31d015;return EXPLICIT_YES_COMMANDS[_0x1f8227(0xcf)](_0x15004e[_0x1f8227(0xd1)]+'\x20'+_0x15004e[_0x1f8227(0xd6)]);}
@@ -1 +1 @@
1
- function a243_0x1afa(_0x326e60,_0x107725){_0x326e60=_0x326e60-0x1bf;const _0x2a746b=a243_0x2a74();let _0x1afa57=_0x2a746b[_0x326e60];return _0x1afa57;}function a243_0x2a74(){const _0x16120a=['860073yrHJvA','1432881TYlIRp','5320315PKWXde','6vHthFM','5hnyjWX','validateFlags','5547944OAWxoX','2GDFQDi','24eKdpcH','600kOJVwO','379907wyKILr','9852980eoMibW','168360BjzRmy'];a243_0x2a74=function(){return _0x16120a;};return a243_0x2a74();}const a243_0x1ba1ab=a243_0x1afa;(function(_0x59204a,_0x331b98){const _0x5c0926=a243_0x1afa,_0x5fa0aa=_0x59204a();while(!![]){try{const _0x11be0d=parseInt(_0x5c0926(0x1c0))/0x1+parseInt(_0x5c0926(0x1c8))/0x2*(-parseInt(_0x5c0926(0x1c1))/0x3)+-parseInt(_0x5c0926(0x1c7))/0x4*(-parseInt(_0x5c0926(0x1c5))/0x5)+parseInt(_0x5c0926(0x1c4))/0x6*(-parseInt(_0x5c0926(0x1c3))/0x7)+-parseInt(_0x5c0926(0x1c9))/0x8*(parseInt(_0x5c0926(0x1c2))/0x9)+-parseInt(_0x5c0926(0x1bf))/0xa+-parseInt(_0x5c0926(0x1cb))/0xb*(-parseInt(_0x5c0926(0x1ca))/0xc);if(_0x11be0d===_0x331b98)break;else _0x5fa0aa['push'](_0x5fa0aa['shift']());}catch(_0x99f78d){_0x5fa0aa['push'](_0x5fa0aa['shift']());}}}(a243_0x2a74,0xbc9b7));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a243_0x1ba1ab(0x1c6)];
1
+ function a244_0x243c(_0x8bb68c,_0x5167b1){_0x8bb68c=_0x8bb68c-0x14e;const _0x20c217=a244_0x20c2();let _0x243c6b=_0x20c217[_0x8bb68c];return _0x243c6b;}const a244_0x316e24=a244_0x243c;(function(_0x487e02,_0x81d316){const _0x61f35b=a244_0x243c,_0x8bd140=_0x487e02();while(!![]){try{const _0x50ba15=-parseInt(_0x61f35b(0x14e))/0x1+parseInt(_0x61f35b(0x153))/0x2*(-parseInt(_0x61f35b(0x152))/0x3)+-parseInt(_0x61f35b(0x156))/0x4+parseInt(_0x61f35b(0x14f))/0x5+parseInt(_0x61f35b(0x151))/0x6*(parseInt(_0x61f35b(0x157))/0x7)+-parseInt(_0x61f35b(0x150))/0x8+parseInt(_0x61f35b(0x154))/0x9;if(_0x50ba15===_0x81d316)break;else _0x8bd140['push'](_0x8bd140['shift']());}catch(_0x1e331b){_0x8bd140['push'](_0x8bd140['shift']());}}}(a244_0x20c2,0xc66d3));function a244_0x20c2(){const _0x44f116=['42uJtCBX','2718753TDNgSX','2AWZrwk','19691667NtxDRe','validateFlags','2068580cJNmSS','1417906MyLBGA','1154942rmxyHd','5677595CYuTsN','10802360NKZDqA'];a244_0x20c2=function(){return _0x44f116;};return a244_0x20c2();}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a244_0x316e24(0x155)];
@@ -1 +1 @@
1
- const a244_0x444a15=a244_0x1da0;(function(_0x4bf2eb,_0x32118e){const _0x3e672a=a244_0x1da0,_0x120fab=_0x4bf2eb();while(!![]){try{const _0x5271fa=-parseInt(_0x3e672a(0xb3))/0x1+parseInt(_0x3e672a(0xad))/0x2*(parseInt(_0x3e672a(0xba))/0x3)+parseInt(_0x3e672a(0xbe))/0x4*(-parseInt(_0x3e672a(0xbf))/0x5)+-parseInt(_0x3e672a(0xb8))/0x6+parseInt(_0x3e672a(0xaf))/0x7*(-parseInt(_0x3e672a(0xab))/0x8)+-parseInt(_0x3e672a(0xb5))/0x9*(-parseInt(_0x3e672a(0xb0))/0xa)+-parseInt(_0x3e672a(0xbb))/0xb*(-parseInt(_0x3e672a(0xae))/0xc);if(_0x5271fa===_0x32118e)break;else _0x120fab['push'](_0x120fab['shift']());}catch(_0x3c3802){_0x120fab['push'](_0x120fab['shift']());}}}(a244_0x5222,0x927b9));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';import{requiresExplicitYes}from'../framework/explicit-yes.js';function a244_0x5222(){const _0x318fdc=['5311650rxpshV','generateCommandHelp','15fqTBgH','21098zNFsCH','\x20[args]\x20[flags]','generateServiceHelp','3876twThnn','5465rOLLBq','8hFEZTS','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.','478038iMCpxC','7884HaEZYM','996163aAWYTG','8399590ATYSXA','generateFullHelp','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','608486mtIcFn','replace','9vZxscW','get','\x20workspace\x20init`\x20or\x20--appcode).'];a244_0x5222=function(){return _0x318fdc;};return a244_0x5222();}const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x3debbd=>serviceGroups[a244_0x444a15(0xb6)](_0x3debbd),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+a244_0x444a15(0xb7),'serviceUsageSuffix':a244_0x444a15(0xbc)});function a244_0x1da0(_0x301444,_0x24cba4){_0x301444=_0x301444-0xab;const _0x5222a6=a244_0x5222();let _0x1da0c9=_0x5222a6[_0x301444];return _0x1da0c9;}export function generateCommandHelp(_0x120f37){const _0x2c1dd2=a244_0x444a15,_0x21a7d2=generators[_0x2c1dd2(0xb9)](_0x120f37);if(!requiresExplicitYes(_0x120f37))return _0x21a7d2;return _0x21a7d2[_0x2c1dd2(0xb4)](_0x2c1dd2(0xb2),_0x2c1dd2(0xac));}export const generateServiceHelp=generators[a244_0x444a15(0xbd)];export const generateFullHelp=generators[a244_0x444a15(0xb1)];
1
+ const a245_0x1e5705=a245_0x3146;(function(_0xc45ec1,_0x52a8a0){const _0xecee56=a245_0x3146,_0x1aeb0a=_0xc45ec1();while(!![]){try{const _0x2ccc51=parseInt(_0xecee56(0xcb))/0x1*(parseInt(_0xecee56(0xcd))/0x2)+parseInt(_0xecee56(0xc9))/0x3+parseInt(_0xecee56(0xd5))/0x4+parseInt(_0xecee56(0xc7))/0x5*(parseInt(_0xecee56(0xd3))/0x6)+parseInt(_0xecee56(0xd2))/0x7*(parseInt(_0xecee56(0xca))/0x8)+parseInt(_0xecee56(0xc6))/0x9+-parseInt(_0xecee56(0xcf))/0xa;if(_0x2ccc51===_0x52a8a0)break;else _0x1aeb0a['push'](_0x1aeb0a['shift']());}catch(_0x1af251){_0x1aeb0a['push'](_0x1aeb0a['shift']());}}}(a245_0x83de,0x58e2b));function a245_0x3146(_0x5c5f3f,_0x26b02b){_0x5c5f3f=_0x5c5f3f-0xc4;const _0x83de8=a245_0x83de();let _0x3146cf=_0x83de8[_0x5c5f3f];return _0x3146cf;}import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a245_0x83de(){const _0x15a931=['32lVsPCn','10vJHiWj','generateCommandHelp','88362ySUSYV','generateServiceHelp','15300300wwtSNM','generateFullHelp','\x20workspace\x20init`\x20or\x20--appcode).','272972PGWulF','1864872HlywaI','Requires\x20appcode\x20(set\x20via\x20`','122332yMBOOj','replace','\x20[args]\x20[flags]','6060501wUJwPb','5dlbNcG','get','844581cWDbzN'];a245_0x83de=function(){return _0x15a931;};return a245_0x83de();}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':_0x7a53e=>serviceGroups[a245_0x1e5705(0xc8)](_0x7a53e),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a245_0x1e5705(0xd4)+CLI_BIN_NAME+a245_0x1e5705(0xd1),'serviceUsageSuffix':a245_0x1e5705(0xc5)});export function generateCommandHelp(_0xf28e9f){const _0x19fa34=a245_0x1e5705,_0x3ff461=generators[_0x19fa34(0xcc)](_0xf28e9f);if(!requiresExplicitYes(_0xf28e9f))return _0x3ff461;return _0x3ff461[_0x19fa34(0xc4)]('Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.');}export const generateServiceHelp=generators[a245_0x1e5705(0xce)];export const generateFullHelp=generators[a245_0x1e5705(0xd0)];
@@ -1 +1 @@
1
- (function(_0x52d87f,_0x2020b5){var _0x36ac2e=a245_0x32f4,_0x37fbd4=_0x52d87f();while(!![]){try{var _0x5b5a4d=-parseInt(_0x36ac2e(0xe8))/0x1*(parseInt(_0x36ac2e(0xe5))/0x2)+-parseInt(_0x36ac2e(0xe3))/0x3+parseInt(_0x36ac2e(0xe4))/0x4+-parseInt(_0x36ac2e(0xeb))/0x5*(parseInt(_0x36ac2e(0xec))/0x6)+-parseInt(_0x36ac2e(0xe6))/0x7*(-parseInt(_0x36ac2e(0xe9))/0x8)+-parseInt(_0x36ac2e(0xea))/0x9+parseInt(_0x36ac2e(0xe7))/0xa;if(_0x5b5a4d===_0x2020b5)break;else _0x37fbd4['push'](_0x37fbd4['shift']());}catch(_0x330b92){_0x37fbd4['push'](_0x37fbd4['shift']());}}}(a245_0x1fd4,0xf279a));export{runCommand}from'../framework/runner.js';function a245_0x32f4(_0x23b87d,_0x44f405){_0x23b87d=_0x23b87d-0xe3;var _0x1fd43e=a245_0x1fd4();var _0x32f497=_0x1fd43e[_0x23b87d];return _0x32f497;}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a245_0x1fd4(){var _0x51ca28=['3656365NlAWyB','12lsTBVh','255339nBikhE','108852bXoZBd','10rVPfVX','7vpcMik','33688810rnzppd','73602myaJGY','11960328amULyi','17840592fKgrrV'];a245_0x1fd4=function(){return _0x51ca28;};return a245_0x1fd4();}export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
1
+ (function(_0x4ac467,_0x190d61){var _0xe22aa4=a246_0x4676,_0x552012=_0x4ac467();while(!![]){try{var _0xe24c61=-parseInt(_0xe22aa4(0x1a5))/0x1*(-parseInt(_0xe22aa4(0x1a3))/0x2)+-parseInt(_0xe22aa4(0x1a1))/0x3+-parseInt(_0xe22aa4(0x19f))/0x4+-parseInt(_0xe22aa4(0x19e))/0x5+parseInt(_0xe22aa4(0x1a0))/0x6+parseInt(_0xe22aa4(0x1a2))/0x7+parseInt(_0xe22aa4(0x1a4))/0x8;if(_0xe24c61===_0x190d61)break;else _0x552012['push'](_0x552012['shift']());}catch(_0x39cfe8){_0x552012['push'](_0x552012['shift']());}}}(a246_0x2340,0x40c77));export{runCommand}from'../framework/runner.js';function a246_0x4676(_0x48012e,_0x2ed9ad){_0x48012e=_0x48012e-0x19e;var _0x23405c=a246_0x2340();var _0x4676b8=_0x23405c[_0x48012e];return _0x4676b8;}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a246_0x2340(){var _0x1c116e=['1031864fjMlwI','6423wBOGMn','284190BfChMs','638068PALZYa','1740342ufAgFk','775056OtPkRN','133847XpNPNr','94ZkHOUS'];a246_0x2340=function(){return _0x1c116e;};return a246_0x2340();}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x5e0199,_0x5af066){const _0x14938e=a246_0x1117,_0xb0e4bd=_0x5e0199();while(!![]){try{const _0x413c14=-parseInt(_0x14938e(0xd0))/0x1*(-parseInt(_0x14938e(0xd6))/0x2)+-parseInt(_0x14938e(0xe2))/0x3+-parseInt(_0x14938e(0xe4))/0x4+parseInt(_0x14938e(0xe1))/0x5+parseInt(_0x14938e(0xdb))/0x6+parseInt(_0x14938e(0xd4))/0x7+-parseInt(_0x14938e(0xd9))/0x8;if(_0x413c14===_0x5af066)break;else _0xb0e4bd['push'](_0xb0e4bd['shift']());}catch(_0x1b75a1){_0xb0e4bd['push'](_0xb0e4bd['shift']());}}}(a246_0x186e,0x76201));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a246_0x1117(_0x5e0259,_0x1bf5fd){_0x5e0259=_0x5e0259-0xc9;const _0x186eb1=a246_0x186e();let _0x1117c5=_0x186eb1[_0x5e0259];return _0x1117c5;}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(_0x530efe,_0x4c6536){const _0x4fe0eb=a246_0x1117,_0x11d73a=_0x530efe[_0x4fe0eb(0xcc)],{_notice:_0x467f0a,..._0x1aa972}=_0x530efe;void _0x467f0a,baseFormatOutput(_0x1aa972,_0x4c6536),_0x4c6536[_0x4fe0eb(0xc9)]===_0x4fe0eb(0xd2)&&printPrettyNotice(_0x11d73a);}export function formatCliError(_0x42c160,_0x32ed6c){const _0x5217ae=a246_0x1117;if(_0x32ed6c[_0x5217ae(0xc9)]===_0x5217ae(0xd2))return![];const _0x1b1b65=_0x42c160[_0x5217ae(0xe0)],_0x5d2579={'ok':![],'command':_0x32ed6c[_0x5217ae(0xde)],'risk':_0x32ed6c['risk'],'data':_0x1b1b65??null,'error':{'code':_0x42c160['code'],'message':_0x42c160[_0x5217ae(0xcb)],..._0x42c160[_0x5217ae(0xd8)]?{'hint':_0x42c160[_0x5217ae(0xd8)]}:{}}},_0x2b1b1b=_0x32ed6c[_0x5217ae(0xc9)]===_0x5217ae(0xdc)?JSON[_0x5217ae(0xd5)](_0x5d2579,null,0x2):JSON[_0x5217ae(0xd5)](_0x5d2579);let _0x2e4fbf=_0x2b1b1b;if(_0x32ed6c[_0x5217ae(0xd3)]?.[_0x5217ae(0xd7)]())try{_0x2e4fbf=applyJqFilter(_0x2b1b1b,_0x32ed6c[_0x5217ae(0xd3)]);}catch(_0x41bdcc){const _0x2b46d9=_0x41bdcc instanceof CliError?_0x41bdcc:CliErrors[_0x5217ae(0xcf)](_0x5217ae(0xca)+(_0x41bdcc instanceof Error?_0x41bdcc[_0x5217ae(0xcb)]:String(_0x41bdcc))),_0xe3f840={..._0x5d2579,'error':{'code':_0x2b46d9[_0x5217ae(0xdd)],'message':_0x2b46d9[_0x5217ae(0xcb)],..._0x2b46d9[_0x5217ae(0xd8)]?{'hint':_0x2b46d9['hint']}:{},'cause':_0x5d2579['error']}};_0x2e4fbf=_0x32ed6c[_0x5217ae(0xc9)]===_0x5217ae(0xdc)?JSON[_0x5217ae(0xd5)](_0xe3f840,null,0x2):JSON[_0x5217ae(0xd5)](_0xe3f840);}return process[_0x5217ae(0xce)][_0x5217ae(0xdf)](_0x2e4fbf[_0x5217ae(0xda)]('\x0a')?_0x2e4fbf:_0x2e4fbf+'\x0a'),!![];}function a246_0x186e(){const _0x853820=['1271454JPFSyi','update','1496168kYerUt','format','jq:\x20','message','_notice','error','stdout','validation','1yWbgyl','url','pretty','jqFilter','5518009trQFhh','stringify','1792170cphiZY','trim','hint','13142160bOJifm','endsWith','5732208FtQbIp','json','code','command','write','data','1423655LUHakh'];a246_0x186e=function(){return _0x853820;};return a246_0x186e();}function printPrettyNotice(_0x26f260){const _0x3ebb27=a246_0x1117;if(!_0x26f260?.[_0x3ebb27(0xe3)])return;console[_0x3ebb27(0xcd)](_0x26f260[_0x3ebb27(0xe3)][_0x3ebb27(0xcb)]+'\x20('+_0x26f260[_0x3ebb27(0xe3)][_0x3ebb27(0xd1)]+')');}
1
+ (function(_0x957cc8,_0x56769a){const _0x438009=a247_0x2a96,_0x30bff8=_0x957cc8();while(!![]){try{const _0x1b1124=parseInt(_0x438009(0x1a7))/0x1+parseInt(_0x438009(0x1a1))/0x2+-parseInt(_0x438009(0x1a3))/0x3*(parseInt(_0x438009(0x1a5))/0x4)+parseInt(_0x438009(0x1a6))/0x5*(-parseInt(_0x438009(0x1aa))/0x6)+parseInt(_0x438009(0x198))/0x7*(parseInt(_0x438009(0x19f))/0x8)+-parseInt(_0x438009(0x19a))/0x9+-parseInt(_0x438009(0x1ac))/0xa*(-parseInt(_0x438009(0x19b))/0xb);if(_0x1b1124===_0x56769a)break;else _0x30bff8['push'](_0x30bff8['shift']());}catch(_0xe80827){_0x30bff8['push'](_0x30bff8['shift']());}}}(a247_0x4f32,0x8b61a));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a247_0x2a96(_0x5c70aa,_0x4c41df){_0x5c70aa=_0x5c70aa-0x194;const _0x4f32ba=a247_0x4f32();let _0x2a968b=_0x4f32ba[_0x5c70aa];return _0x2a968b;}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(_0x363168,_0x4699b4){const _0x49ca79=a247_0x2a96,_0x39db3b=_0x363168[_0x49ca79(0x199)],{_notice:_0x4327dd,..._0x14f4a9}=_0x363168;void _0x4327dd,baseFormatOutput(_0x14f4a9,_0x4699b4),_0x4699b4[_0x49ca79(0x1a2)]===_0x49ca79(0x194)&&printPrettyNotice(_0x39db3b);}function a247_0x4f32(){const _0x5ca313=['code','674404YVrOFH','format','96954MkTHxw','message','84ExHSsb','4821910UILVWe','339641nsFoSN','json','trim','6zixQdl','validation','3837410gGtCzy','update','pretty','command','hint','error','440881NbcdHP','_notice','2195370wRZjJH','33XLmJPI','jq:\x20','stringify','jqFilter','80XthHQU'];a247_0x4f32=function(){return _0x5ca313;};return a247_0x4f32();}export function formatCliError(_0x155ed3,_0x5b7af5){const _0x2df67c=a247_0x2a96;if(_0x5b7af5[_0x2df67c(0x1a2)]===_0x2df67c(0x194))return![];const _0x2b3756=_0x155ed3['data'],_0x53939d={'ok':![],'command':_0x5b7af5[_0x2df67c(0x195)],'risk':_0x5b7af5['risk'],'data':_0x2b3756??null,'error':{'code':_0x155ed3[_0x2df67c(0x1a0)],'message':_0x155ed3['message'],..._0x155ed3['hint']?{'hint':_0x155ed3[_0x2df67c(0x196)]}:{}}},_0x18ee17=_0x5b7af5[_0x2df67c(0x1a2)]===_0x2df67c(0x1a8)?JSON[_0x2df67c(0x19d)](_0x53939d,null,0x2):JSON[_0x2df67c(0x19d)](_0x53939d);let _0x4c4bb4=_0x18ee17;if(_0x5b7af5['jqFilter']?.[_0x2df67c(0x1a9)]())try{_0x4c4bb4=applyJqFilter(_0x18ee17,_0x5b7af5[_0x2df67c(0x19e)]);}catch(_0x134f44){const _0x4f770c=_0x134f44 instanceof CliError?_0x134f44:CliErrors[_0x2df67c(0x1ab)](_0x2df67c(0x19c)+(_0x134f44 instanceof Error?_0x134f44['message']:String(_0x134f44))),_0x1e2002={..._0x53939d,'error':{'code':_0x4f770c[_0x2df67c(0x1a0)],'message':_0x4f770c[_0x2df67c(0x1a4)],..._0x4f770c[_0x2df67c(0x196)]?{'hint':_0x4f770c[_0x2df67c(0x196)]}:{},'cause':_0x53939d['error']}};_0x4c4bb4=_0x5b7af5['format']===_0x2df67c(0x1a8)?JSON[_0x2df67c(0x19d)](_0x1e2002,null,0x2):JSON[_0x2df67c(0x19d)](_0x1e2002);}return process['stdout']['write'](_0x4c4bb4['endsWith']('\x0a')?_0x4c4bb4:_0x4c4bb4+'\x0a'),!![];}function printPrettyNotice(_0x314bc7){const _0x29a6ff=a247_0x2a96;if(!_0x314bc7?.[_0x29a6ff(0x1ad)])return;console[_0x29a6ff(0x197)](_0x314bc7['update'][_0x29a6ff(0x1a4)]+'\x20('+_0x314bc7[_0x29a6ff(0x1ad)]['url']+')');}
@@ -1 +1 @@
1
- function a247_0x2d60(){var _0xbdf687=['1336TOAynq','92802nGVtnQ','3773404zYSCgu','6059ASDzTu','455RscLgL','1071498XcNNlH','73430ATWJRt','44028dlCAkl','506recgKe','30445700VBFsOH'];a247_0x2d60=function(){return _0xbdf687;};return a247_0x2d60();}function a247_0x3983(_0x374b48,_0x53b283){_0x374b48=_0x374b48-0x1c3;var _0x2d60ff=a247_0x2d60();var _0x3983f6=_0x2d60ff[_0x374b48];return _0x3983f6;}(function(_0x3c0e63,_0xda633c){var _0x358139=a247_0x3983,_0x13b32e=_0x3c0e63();while(!![]){try{var _0x45cdc0=parseInt(_0x358139(0x1c9))/0x1*(-parseInt(_0x358139(0x1c4))/0x2)+-parseInt(_0x358139(0x1cb))/0x3+-parseInt(_0x358139(0x1c8))/0x4+-parseInt(_0x358139(0x1ca))/0x5*(-parseInt(_0x358139(0x1c7))/0x6)+parseInt(_0x358139(0x1cc))/0x7+-parseInt(_0x358139(0x1c6))/0x8*(parseInt(_0x358139(0x1c3))/0x9)+parseInt(_0x358139(0x1c5))/0xa;if(_0x45cdc0===_0xda633c)break;else _0x13b32e['push'](_0x13b32e['shift']());}catch(_0x343336){_0x13b32e['push'](_0x13b32e['shift']());}}}(a247_0x2d60,0xc6475));export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ function a248_0x36fa(){var _0x259aaa=['6363970WnjUeO','6453yEFpUy','3JAcjWi','4638295tLHmoj','2154248KFPexZ','1051224YolohE','1fCZKJj','2828382Uzmcde','1552978zyORll','14256pRFGob'];a248_0x36fa=function(){return _0x259aaa;};return a248_0x36fa();}function a248_0x5a90(_0x199139,_0x5b46f2){_0x199139=_0x199139-0x12f;var _0x36fa59=a248_0x36fa();var _0x5a9026=_0x36fa59[_0x199139];return _0x5a9026;}(function(_0x2b6382,_0x171b53){var _0x5a7bde=a248_0x5a90,_0x53d0cc=_0x2b6382();while(!![]){try{var _0x3bbf58=parseInt(_0x5a7bde(0x136))/0x1*(parseInt(_0x5a7bde(0x135))/0x2)+-parseInt(_0x5a7bde(0x132))/0x3*(-parseInt(_0x5a7bde(0x134))/0x4)+parseInt(_0x5a7bde(0x133))/0x5+-parseInt(_0x5a7bde(0x137))/0x6+-parseInt(_0x5a7bde(0x138))/0x7+parseInt(_0x5a7bde(0x12f))/0x8*(-parseInt(_0x5a7bde(0x131))/0x9)+parseInt(_0x5a7bde(0x130))/0xa;if(_0x3bbf58===_0x171b53)break;else _0x53d0cc['push'](_0x53d0cc['shift']());}catch(_0x1a04ca){_0x53d0cc['push'](_0x53d0cc['shift']());}}}(a248_0x36fa,0xa0785));export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x420f17,_0x110996){const _0x141219=a248_0x27b7,_0x13eb20=_0x420f17();while(!![]){try{const _0x2f8a41=-parseInt(_0x141219(0xaa))/0x1+parseInt(_0x141219(0xa8))/0x2+-parseInt(_0x141219(0xa4))/0x3+parseInt(_0x141219(0x9b))/0x4+parseInt(_0x141219(0xa5))/0x5+parseInt(_0x141219(0x98))/0x6*(-parseInt(_0x141219(0x97))/0x7)+-parseInt(_0x141219(0x9a))/0x8;if(_0x2f8a41===_0x110996)break;else _0x13eb20['push'](_0x13eb20['shift']());}catch(_0xedaacb){_0x13eb20['push'](_0x13eb20['shift']());}}}(a248_0x3ea9,0xcb41d));function a248_0x27b7(_0x6692a4,_0x2fcf54){_0x6692a4=_0x6692a4-0x96;const _0x3ea928=a248_0x3ea9();let _0x27b786=_0x3ea928[_0x6692a4];return _0x27b786;}import{CliErrors}from'../errors.js';function a248_0x3ea9(){const _0xb8de5a=['\x22.\x20','string','flags','63JnaeEM','758346FZPron','map','4472464ZaTCES','5482884JPzugB','\x20api\x20pull`\x20first.','some','name','type','`\x20requires\x20either\x20--code\x20or\x20--alias.','join','alias','length','1287450GmCAzK','8302310xcCCzv','No\x20api.ts\x20found\x20in\x20','validation','2931970xAKjSy','code','1538900MxnIJA','.\x20Run\x20`'];a248_0x3ea9=function(){return _0xb8de5a;};return a248_0x3ea9();}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x7f9386,_0x3b9b5c,_0x1f9fe6,_0x4fe855){const _0x1a2917=a248_0x27b7,_0x1fd51f=_0x7f9386[_0x1a2917(0x96)][_0x1a2917(0x9d)](_0x21d843=>_0x21d843[_0x1a2917(0x9e)]===_0x1a2917(0xa9)&&_0x21d843['type']===_0x1a2917(0xad)),_0x50d009=_0x7f9386[_0x1a2917(0x96)][_0x1a2917(0x9d)](_0x57c5dd=>_0x57c5dd[_0x1a2917(0x9e)]===_0x1a2917(0xa2)&&_0x57c5dd[_0x1a2917(0x9f)]==='string');if(!_0x1fd51f||!_0x50d009)return;const _0x526aaf=_0x3b9b5c[_0x1a2917(0xa9)]?String(_0x3b9b5c['code']):'',_0x3c23f2=_0x3b9b5c['alias']?String(_0x3b9b5c[_0x1a2917(0xa2)]):'';if(!_0x526aaf&&!_0x3c23f2)throw CliErrors[_0x1a2917(0xa7)]('`'+_0x4fe855+_0x1a2917(0xa0));if(_0x3c23f2&&!_0x526aaf){const _0x25f40=resolveAlias(_0x1f9fe6,_0x3c23f2);if(!_0x25f40){const _0x1aec77=listAliases(_0x1f9fe6)[_0x1a2917(0x99)](_0x46f9ef=>_0x46f9ef[_0x1a2917(0xa2)]),_0x23aab9=_0x1aec77[_0x1a2917(0xa3)]?'Available\x20aliases:\x20'+_0x1aec77[_0x1a2917(0xa1)](',\x20'):_0x1a2917(0xa6)+_0x1f9fe6+_0x1a2917(0xab)+CLI_BIN_NAME+_0x1a2917(0x9c);throw CliErrors[_0x1a2917(0xa7)]('Unknown\x20alias\x20\x22'+_0x3c23f2+_0x1a2917(0xac)+_0x23aab9);}_0x3b9b5c[_0x1a2917(0xa9)]=_0x25f40;}}
1
+ (function(_0x1b55a3,_0x142bbb){const _0x2ad543=a249_0x535f,_0xb004c6=_0x1b55a3();while(!![]){try{const _0x5c2715=-parseInt(_0x2ad543(0x1d2))/0x1+parseInt(_0x2ad543(0x1d0))/0x2+parseInt(_0x2ad543(0x1df))/0x3+parseInt(_0x2ad543(0x1d3))/0x4*(parseInt(_0x2ad543(0x1e7))/0x5)+-parseInt(_0x2ad543(0x1e1))/0x6*(-parseInt(_0x2ad543(0x1d7))/0x7)+-parseInt(_0x2ad543(0x1d5))/0x8*(parseInt(_0x2ad543(0x1e4))/0x9)+-parseInt(_0x2ad543(0x1e3))/0xa*(parseInt(_0x2ad543(0x1dd))/0xb);if(_0x5c2715===_0x142bbb)break;else _0xb004c6['push'](_0xb004c6['shift']());}catch(_0x50afcb){_0xb004c6['push'](_0xb004c6['shift']());}}}(a249_0x5f31,0x30f70));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a249_0x5f31(){const _0x539089=['alias','flags','type','5551051WRCfoj','No\x20api.ts\x20found\x20in\x20','652383GcpYzo','code','18xWufKu','\x20api\x20pull`\x20first.','10FbrEVt','477315dXgnod','\x22.\x20','name','65mYrByz','validation','Available\x20aliases:\x20','472256XkuLRj','string','310096CyqUFi','70960yimUMC','length','8OJMgst','map','896287LSzdSF','join','.\x20Run\x20`'];a249_0x5f31=function(){return _0x539089;};return a249_0x5f31();}import{CLI_BIN_NAME}from'../constant/cli.js';function a249_0x535f(_0x47cdf1,_0x442dcd){_0x47cdf1=_0x47cdf1-0x1ce;const _0x5f31ca=a249_0x5f31();let _0x535f47=_0x5f31ca[_0x47cdf1];return _0x535f47;}export function resolveAliasToCode(_0x1761ae,_0x36329d,_0x12d233,_0x15a2f4){const _0x3d2a24=a249_0x535f,_0x34b892=_0x1761ae[_0x3d2a24(0x1db)]['some'](_0x1daf92=>_0x1daf92[_0x3d2a24(0x1e6)]===_0x3d2a24(0x1e0)&&_0x1daf92[_0x3d2a24(0x1dc)]===_0x3d2a24(0x1d1)),_0x2febae=_0x1761ae[_0x3d2a24(0x1db)]['some'](_0x4ce07b=>_0x4ce07b[_0x3d2a24(0x1e6)]==='alias'&&_0x4ce07b[_0x3d2a24(0x1dc)]===_0x3d2a24(0x1d1));if(!_0x34b892||!_0x2febae)return;const _0x571d37=_0x36329d[_0x3d2a24(0x1e0)]?String(_0x36329d['code']):'',_0x170dcc=_0x36329d['alias']?String(_0x36329d[_0x3d2a24(0x1da)]):'';if(!_0x571d37&&!_0x170dcc)throw CliErrors[_0x3d2a24(0x1ce)]('`'+_0x15a2f4+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x170dcc&&!_0x571d37){const _0x1b8c61=resolveAlias(_0x12d233,_0x170dcc);if(!_0x1b8c61){const _0x13166b=listAliases(_0x12d233)[_0x3d2a24(0x1d6)](_0x39f92b=>_0x39f92b[_0x3d2a24(0x1da)]),_0x23d723=_0x13166b[_0x3d2a24(0x1d4)]?_0x3d2a24(0x1cf)+_0x13166b[_0x3d2a24(0x1d8)](',\x20'):_0x3d2a24(0x1de)+_0x12d233+_0x3d2a24(0x1d9)+CLI_BIN_NAME+_0x3d2a24(0x1e2);throw CliErrors[_0x3d2a24(0x1ce)]('Unknown\x20alias\x20\x22'+_0x170dcc+_0x3d2a24(0x1e5)+_0x23d723);}_0x36329d[_0x3d2a24(0x1e0)]=_0x1b8c61;}}