@lovrabet/rabetbase-cli 2.3.16-beta.7 → 2.4.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (435) hide show
  1. package/README.md +4 -10
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff.js +1 -1
  88. package/lib/commands/db/index.js +1 -1
  89. package/lib/commands/db/list.js +1 -1
  90. package/lib/commands/db/shared.js +1 -1
  91. package/lib/commands/db/tables.js +1 -1
  92. package/lib/commands/db/test.js +1 -1
  93. package/lib/commands/db/update.js +1 -1
  94. package/lib/commands/doctor.js +1 -1
  95. package/lib/commands/file/index.js +1 -1
  96. package/lib/commands/init/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/kb/create.js +1 -1
  102. package/lib/commands/kb/delete.js +1 -1
  103. package/lib/commands/kb/detail.js +1 -1
  104. package/lib/commands/kb/index.js +1 -1
  105. package/lib/commands/kb/list.js +1 -1
  106. package/lib/commands/kb/shared.js +1 -1
  107. package/lib/commands/kb/update.js +1 -1
  108. package/lib/commands/logs/index.js +1 -1
  109. package/lib/commands/menu/asset-update.js +1 -1
  110. package/lib/commands/menu/delete.js +1 -1
  111. package/lib/commands/menu/external-link-create.js +1 -1
  112. package/lib/commands/menu/external-link-update.js +1 -1
  113. package/lib/commands/menu/group-create.js +1 -1
  114. package/lib/commands/menu/group-update.js +1 -1
  115. package/lib/commands/menu/index.js +1 -1
  116. package/lib/commands/menu/list.js +1 -1
  117. package/lib/commands/menu/move.js +1 -1
  118. package/lib/commands/menu/regroup-start.js +1 -1
  119. package/lib/commands/menu/rename.js +1 -1
  120. package/lib/commands/menu/shared/compare-table.js +1 -1
  121. package/lib/commands/menu/shared/delete-plan.js +1 -1
  122. package/lib/commands/menu/shared/facts.js +1 -1
  123. package/lib/commands/menu/shared/index.js +1 -1
  124. package/lib/commands/menu/shared/inquirer.js +1 -1
  125. package/lib/commands/menu/shared/local-pages.js +1 -1
  126. package/lib/commands/menu/shared/logic.js +1 -1
  127. package/lib/commands/menu/shared/mutations.js +1 -1
  128. package/lib/commands/menu/shared/service.js +1 -1
  129. package/lib/commands/menu/shared/sync-core.js +1 -1
  130. package/lib/commands/menu/shared/update-core.js +1 -1
  131. package/lib/commands/menu/shared/valid-url.js +1 -1
  132. package/lib/commands/menu/sync.js +1 -1
  133. package/lib/commands/notification/config-list.js +1 -1
  134. package/lib/commands/notification/index.js +1 -1
  135. package/lib/commands/ocr/index.js +1 -1
  136. package/lib/commands/page/generate-start.js +1 -1
  137. package/lib/commands/page/generate-status.js +1 -1
  138. package/lib/commands/page/index.js +1 -1
  139. package/lib/commands/page/pull.js +1 -1
  140. package/lib/commands/page/push.js +1 -1
  141. package/lib/commands/page/react/create.d.ts +2 -0
  142. package/lib/commands/page/react/create.js +1 -0
  143. package/lib/commands/page/react/detail.d.ts +2 -0
  144. package/lib/commands/page/react/detail.js +1 -0
  145. package/lib/commands/page/react/list.d.ts +2 -0
  146. package/lib/commands/page/react/list.js +1 -0
  147. package/lib/commands/page/react/publish.d.ts +2 -0
  148. package/lib/commands/page/react/publish.js +1 -0
  149. package/lib/commands/page/react/shared.d.ts +78 -0
  150. package/lib/commands/page/react/shared.js +1 -0
  151. package/lib/commands/page/react/syntax.d.ts +18 -0
  152. package/lib/commands/page/react/syntax.js +1 -0
  153. package/lib/commands/page/react/template.d.ts +8 -0
  154. package/lib/commands/page/react/template.js +1 -0
  155. package/lib/commands/page/react/update.d.ts +2 -0
  156. package/lib/commands/page/react/update.js +1 -0
  157. package/lib/commands/page/relation-audit.js +1 -1
  158. package/lib/commands/page/restore.js +1 -1
  159. package/lib/commands/page/shared.d.ts +1 -0
  160. package/lib/commands/page/shared.js +1 -1
  161. package/lib/commands/page/standard-page-status.js +1 -1
  162. package/lib/commands/page/sync.js +1 -1
  163. package/lib/commands/permit/index.js +1 -1
  164. package/lib/commands/permit/page-get.js +1 -1
  165. package/lib/commands/permit/page-set.js +1 -1
  166. package/lib/commands/permit/role-apis-set.js +1 -1
  167. package/lib/commands/permit/role-menus-set.js +1 -1
  168. package/lib/commands/permit/role-menus.js +1 -1
  169. package/lib/commands/permit/shared.js +1 -1
  170. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  171. package/lib/commands/project/create/format-elapsed.js +1 -1
  172. package/lib/commands/project/create/main.js +1 -1
  173. package/lib/commands/project/create/non-interactive.js +1 -1
  174. package/lib/commands/project/create/project-template-path.js +1 -1
  175. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  176. package/lib/commands/project/create/use-format-code.js +1 -1
  177. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  178. package/lib/commands/project/index.js +1 -1
  179. package/lib/commands/project/upgrade.js +1 -1
  180. package/lib/commands/registry.js +1 -1
  181. package/lib/commands/role/create.js +1 -1
  182. package/lib/commands/role/delete.js +1 -1
  183. package/lib/commands/role/detail.js +1 -1
  184. package/lib/commands/role/index.js +1 -1
  185. package/lib/commands/role/list.js +1 -1
  186. package/lib/commands/role/shared.js +1 -1
  187. package/lib/commands/role/update.js +1 -1
  188. package/lib/commands/role/user-add.js +1 -1
  189. package/lib/commands/role/user-remove.js +1 -1
  190. package/lib/commands/role/user-resolve.js +1 -1
  191. package/lib/commands/run/index.js +1 -1
  192. package/lib/commands/schema.js +1 -1
  193. package/lib/commands/sql/create.js +1 -1
  194. package/lib/commands/sql/delete.js +1 -1
  195. package/lib/commands/sql/detail.js +1 -1
  196. package/lib/commands/sql/exec.js +1 -1
  197. package/lib/commands/sql/index.js +1 -1
  198. package/lib/commands/sql/list.js +1 -1
  199. package/lib/commands/sql/pull.js +1 -1
  200. package/lib/commands/sql/push.js +1 -1
  201. package/lib/commands/sql/shared.js +1 -1
  202. package/lib/commands/sql/status.js +1 -1
  203. package/lib/commands/sql/validate.js +1 -1
  204. package/lib/commands/task/index.js +1 -1
  205. package/lib/commands/task/status.js +1 -1
  206. package/lib/commands/tenant/index.js +1 -1
  207. package/lib/commands/tenant/members-list.js +1 -1
  208. package/lib/commands/tenant/shared.js +1 -1
  209. package/lib/commands/user-account/dingding-sandbox-bind.d.ts +2 -0
  210. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -0
  211. package/lib/commands/user-account/index.d.ts +2 -0
  212. package/lib/commands/user-account/index.js +1 -0
  213. package/lib/commands/workspace/add.js +1 -1
  214. package/lib/commands/workspace/index.js +1 -1
  215. package/lib/commands/workspace/remove.js +1 -1
  216. package/lib/config/schema.js +1 -1
  217. package/lib/constant/cdn.js +1 -1
  218. package/lib/constant/cli.js +1 -1
  219. package/lib/constant/defaults.js +1 -1
  220. package/lib/constant/domain.js +1 -1
  221. package/lib/constant/env.js +1 -1
  222. package/lib/constant/output.js +1 -1
  223. package/lib/constant/paths.js +1 -1
  224. package/lib/constant/risk.js +1 -1
  225. package/lib/context/app-resolver.js +1 -1
  226. package/lib/context/auth-resolver.js +1 -1
  227. package/lib/context/config-loader.js +1 -1
  228. package/lib/context.js +1 -1
  229. package/lib/core/alias-resolver.js +1 -1
  230. package/lib/core/api-client.d.ts +117 -0
  231. package/lib/core/api-client.js +1 -1
  232. package/lib/core/bff/config.js +1 -1
  233. package/lib/core/bff/file-system.js +1 -1
  234. package/lib/core/bff/hash.js +1 -1
  235. package/lib/core/bff/lock.js +1 -1
  236. package/lib/core/bff/utils.js +1 -1
  237. package/lib/core/db-resolver.js +1 -1
  238. package/lib/core/page/file-system.js +1 -1
  239. package/lib/core/page/hash.js +1 -1
  240. package/lib/core/page/lock.js +1 -1
  241. package/lib/core/sql-index-auditor.js +1 -1
  242. package/lib/core/sql-sync/config.js +1 -1
  243. package/lib/core/sql-sync/file-system.js +1 -1
  244. package/lib/core/sql-sync/hash.js +1 -1
  245. package/lib/core/sql-sync/lock.js +1 -1
  246. package/lib/core/sql-sync/utils.js +1 -1
  247. package/lib/core/sql-validator.js +1 -1
  248. package/lib/errors.js +1 -1
  249. package/lib/framework/build-all-flags.js +1 -1
  250. package/lib/framework/error-output.js +1 -1
  251. package/lib/framework/explicit-yes.js +1 -1
  252. package/lib/framework/flags.js +1 -1
  253. package/lib/framework/help.js +1 -1
  254. package/lib/framework/index.js +1 -1
  255. package/lib/framework/output.js +1 -1
  256. package/lib/framework/response.js +1 -1
  257. package/lib/framework/runner-alias.js +1 -1
  258. package/lib/framework/runner.js +1 -1
  259. package/lib/framework/schema-export.js +1 -1
  260. package/lib/framework/types.js +1 -1
  261. package/lib/generated/build-info.d.ts +4 -4
  262. package/lib/generated/build-info.js +1 -1
  263. package/lib/help.js +1 -1
  264. package/lib/postinstall.d.ts +3 -0
  265. package/lib/postinstall.js +1 -0
  266. package/lib/runtime/confirmation.js +1 -1
  267. package/lib/runtime/event.js +1 -1
  268. package/lib/runtime/index.js +1 -1
  269. package/lib/runtime/queue.js +1 -1
  270. package/lib/runtime/resolve.js +1 -1
  271. package/lib/skills/builtin-skill.d.ts +37 -0
  272. package/lib/skills/builtin-skill.js +1 -0
  273. package/lib/skills/main.js +1 -1
  274. package/lib/skills/npx-skills-add.d.ts +4 -2
  275. package/lib/skills/npx-skills-add.js +1 -1
  276. package/lib/skills/skill-presence.js +1 -1
  277. package/lib/telemetry/cli-command-trace.js +1 -1
  278. package/lib/telemetry/cli-help-trace.js +1 -1
  279. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  280. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  281. package/lib/telemetry/send-cli-trace-log.js +1 -1
  282. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  283. package/lib/utils/ai_config.js +1 -1
  284. package/lib/utils/apply-jq-filter.js +1 -1
  285. package/lib/utils/cdn-config.js +1 -1
  286. package/lib/utils/check-sdk-version.js +1 -1
  287. package/lib/utils/cli-version-check.js +1 -1
  288. package/lib/utils/cli-version-policy.js +1 -1
  289. package/lib/utils/config.js +1 -1
  290. package/lib/utils/copy-directory.js +1 -1
  291. package/lib/utils/entity-with-id.js +1 -1
  292. package/lib/utils/file-utils.js +1 -1
  293. package/lib/utils/guides-cdn.js +1 -1
  294. package/lib/utils/http-client.js +1 -1
  295. package/lib/utils/is-non-interactive.js +1 -1
  296. package/lib/utils/logger.js +1 -1
  297. package/lib/utils/params.js +1 -1
  298. package/lib/utils/platform.js +1 -1
  299. package/lib/utils/rules-cdn.js +1 -1
  300. package/lib/utils/sleep.js +1 -1
  301. package/lib/utils/template-replacer.js +1 -1
  302. package/lib/utils/update-notice.js +1 -1
  303. package/lib/utils/version.js +1 -1
  304. package/lib/utils/with-active-cookie.js +1 -1
  305. package/lib/utils/write-cli-side-channel.js +1 -1
  306. package/package.json +9 -3
  307. package/scripts/postinstall.mjs +24 -0
  308. package/skills/rabetbase/SKILL.md +493 -0
  309. package/skills/rabetbase/guides/backend-function.md +835 -0
  310. package/skills/rabetbase/guides/best-practices.md +137 -0
  311. package/skills/rabetbase/guides/bff-creation-workflow.md +148 -0
  312. package/skills/rabetbase/guides/conflict-detection.md +119 -0
  313. package/skills/rabetbase/guides/data-api-guidelines.md +414 -0
  314. package/skills/rabetbase/guides/database-connection-workflow.md +169 -0
  315. package/skills/rabetbase/guides/frontend-development.md +179 -0
  316. package/skills/rabetbase/guides/legacy-application-blueprint-workflow.md +495 -0
  317. package/skills/rabetbase/guides/menu-anomaly-manual-cleanup.md +137 -0
  318. package/skills/rabetbase/guides/page-development-workflow.md +187 -0
  319. package/skills/rabetbase/guides/react-custom-page-workflow.md +184 -0
  320. package/skills/rabetbase/guides/role-permit-workflow.md +127 -0
  321. package/skills/rabetbase/guides/sql-creation-workflow.md +173 -0
  322. package/skills/rabetbase/guides/sql-mybatis.md +126 -0
  323. package/skills/rabetbase/guides/troubleshooting.md +67 -0
  324. package/skills/rabetbase/guides/typescript-sdk.md +227 -0
  325. package/skills/rabetbase/knowledge/page-schema/LrSmartCreate.md +367 -0
  326. package/skills/rabetbase/knowledge/page-schema/LrSmartDetail.md +153 -0
  327. package/skills/rabetbase/knowledge/page-schema/LrSmartEcharts.md +291 -0
  328. package/skills/rabetbase/knowledge/page-schema/LrSmartFilter.md +478 -0
  329. package/skills/rabetbase/knowledge/page-schema/LrSmartJsx.md +119 -0
  330. package/skills/rabetbase/knowledge/page-schema/LrSmartStatistic.md +223 -0
  331. package/skills/rabetbase/knowledge/page-schema/LrSmartTable.md +632 -0
  332. package/skills/rabetbase/knowledge/page-schema/YtPage.md +172 -0
  333. package/skills/rabetbase/knowledge/page-schema/dataset-relations.md +126 -0
  334. package/skills/rabetbase/knowledge/page-schema/external-resources-usage.md +232 -0
  335. package/skills/rabetbase/knowledge/page-schema/field-components.md +312 -0
  336. package/skills/rabetbase/knowledge/page-schema/syntax-reference.md +278 -0
  337. package/skills/rabetbase/knowledge/react-page/components.md +225 -0
  338. package/skills/rabetbase/knowledge/react-page/generation-standards.md +385 -0
  339. package/skills/rabetbase/references/rabetbase-api-list.md +58 -0
  340. package/skills/rabetbase/references/rabetbase-api-pull.md +82 -0
  341. package/skills/rabetbase/references/rabetbase-app-config.md +95 -0
  342. package/skills/rabetbase/references/rabetbase-app-list.md +79 -0
  343. package/skills/rabetbase/references/rabetbase-app-members-list.md +64 -0
  344. package/skills/rabetbase/references/rabetbase-auth-login.md +53 -0
  345. package/skills/rabetbase/references/rabetbase-auth-logout.md +29 -0
  346. package/skills/rabetbase/references/rabetbase-bff-create.md +59 -0
  347. package/skills/rabetbase/references/rabetbase-bff-delete.md +42 -0
  348. package/skills/rabetbase/references/rabetbase-bff-detail.md +38 -0
  349. package/skills/rabetbase/references/rabetbase-bff-list.md +61 -0
  350. package/skills/rabetbase/references/rabetbase-bff-pull.md +42 -0
  351. package/skills/rabetbase/references/rabetbase-bff-push.md +65 -0
  352. package/skills/rabetbase/references/rabetbase-bff-save.md +63 -0
  353. package/skills/rabetbase/references/rabetbase-bff-status.md +37 -0
  354. package/skills/rabetbase/references/rabetbase-cli-skill-install.md +42 -0
  355. package/skills/rabetbase/references/rabetbase-codegen-sdk.md +35 -0
  356. package/skills/rabetbase/references/rabetbase-codegen-sql.md +33 -0
  357. package/skills/rabetbase/references/rabetbase-config.md +296 -0
  358. package/skills/rabetbase/references/rabetbase-dataset-business-group-update.md +84 -0
  359. package/skills/rabetbase/references/rabetbase-dataset-delete.md +54 -0
  360. package/skills/rabetbase/references/rabetbase-dataset-detail.md +106 -0
  361. package/skills/rabetbase/references/rabetbase-dataset-extend-update.md +70 -0
  362. package/skills/rabetbase/references/rabetbase-dataset-field-update.md +117 -0
  363. package/skills/rabetbase/references/rabetbase-dataset-generate.md +206 -0
  364. package/skills/rabetbase/references/rabetbase-dataset-list.md +42 -0
  365. package/skills/rabetbase/references/rabetbase-dataset-operations.md +34 -0
  366. package/skills/rabetbase/references/rabetbase-dataset-relation-audit.md +63 -0
  367. package/skills/rabetbase/references/rabetbase-dataset-relation-mutations.md +141 -0
  368. package/skills/rabetbase/references/rabetbase-dataset-relations.md +71 -0
  369. package/skills/rabetbase/references/rabetbase-dataset-rename.md +107 -0
  370. package/skills/rabetbase/references/rabetbase-dataset-restore.md +54 -0
  371. package/skills/rabetbase/references/rabetbase-db-analyze.md +135 -0
  372. package/skills/rabetbase/references/rabetbase-db-create.md +54 -0
  373. package/skills/rabetbase/references/rabetbase-db-delete.md +26 -0
  374. package/skills/rabetbase/references/rabetbase-db-detail.md +27 -0
  375. package/skills/rabetbase/references/rabetbase-db-diff.md +57 -0
  376. package/skills/rabetbase/references/rabetbase-db-list.md +37 -0
  377. package/skills/rabetbase/references/rabetbase-db-tables.md +25 -0
  378. package/skills/rabetbase/references/rabetbase-db-test.md +29 -0
  379. package/skills/rabetbase/references/rabetbase-db-update.md +29 -0
  380. package/skills/rabetbase/references/rabetbase-doctor.md +62 -0
  381. package/skills/rabetbase/references/rabetbase-file.md +35 -0
  382. package/skills/rabetbase/references/rabetbase-init.md +70 -0
  383. package/skills/rabetbase/references/rabetbase-issue-report.md +132 -0
  384. package/skills/rabetbase/references/rabetbase-kb.md +62 -0
  385. package/skills/rabetbase/references/rabetbase-menu-asset-update.md +135 -0
  386. package/skills/rabetbase/references/rabetbase-menu-delete.md +54 -0
  387. package/skills/rabetbase/references/rabetbase-menu-external-link-create.md +63 -0
  388. package/skills/rabetbase/references/rabetbase-menu-external-link-update.md +74 -0
  389. package/skills/rabetbase/references/rabetbase-menu-group-create.md +33 -0
  390. package/skills/rabetbase/references/rabetbase-menu-group-update.md +38 -0
  391. package/skills/rabetbase/references/rabetbase-menu-list.md +144 -0
  392. package/skills/rabetbase/references/rabetbase-menu-move.md +54 -0
  393. package/skills/rabetbase/references/rabetbase-menu-regroup-start.md +45 -0
  394. package/skills/rabetbase/references/rabetbase-menu-rename.md +48 -0
  395. package/skills/rabetbase/references/rabetbase-menu-sync.md +60 -0
  396. package/skills/rabetbase/references/rabetbase-notification-config-list.md +80 -0
  397. package/skills/rabetbase/references/rabetbase-ocr.md +86 -0
  398. package/skills/rabetbase/references/rabetbase-page-generate-start.md +32 -0
  399. package/skills/rabetbase/references/rabetbase-page-generate-status.md +32 -0
  400. package/skills/rabetbase/references/rabetbase-page-pull.md +47 -0
  401. package/skills/rabetbase/references/rabetbase-page-push.md +45 -0
  402. package/skills/rabetbase/references/rabetbase-page-react-create.md +29 -0
  403. package/skills/rabetbase/references/rabetbase-page-react-detail.md +26 -0
  404. package/skills/rabetbase/references/rabetbase-page-react-list.md +23 -0
  405. package/skills/rabetbase/references/rabetbase-page-react-publish.md +23 -0
  406. package/skills/rabetbase/references/rabetbase-page-react-update.md +24 -0
  407. package/skills/rabetbase/references/rabetbase-page-relation-binding.md +72 -0
  408. package/skills/rabetbase/references/rabetbase-page-restore.md +45 -0
  409. package/skills/rabetbase/references/rabetbase-page-sync.md +36 -0
  410. package/skills/rabetbase/references/rabetbase-permit-page-set.md +69 -0
  411. package/skills/rabetbase/references/rabetbase-permit-role-apis-set.md +53 -0
  412. package/skills/rabetbase/references/rabetbase-permit-role-menus-set.md +57 -0
  413. package/skills/rabetbase/references/rabetbase-project-create.md +46 -0
  414. package/skills/rabetbase/references/rabetbase-project-upgrade.md +57 -0
  415. package/skills/rabetbase/references/rabetbase-role-list.md +68 -0
  416. package/skills/rabetbase/references/rabetbase-role-user-add.md +54 -0
  417. package/skills/rabetbase/references/rabetbase-role-user-resolve.md +27 -0
  418. package/skills/rabetbase/references/rabetbase-run.md +53 -0
  419. package/skills/rabetbase/references/rabetbase-schema.md +22 -0
  420. package/skills/rabetbase/references/rabetbase-sql-create.md +41 -0
  421. package/skills/rabetbase/references/rabetbase-sql-delete.md +37 -0
  422. package/skills/rabetbase/references/rabetbase-sql-detail.md +32 -0
  423. package/skills/rabetbase/references/rabetbase-sql-exec.md +34 -0
  424. package/skills/rabetbase/references/rabetbase-sql-list.md +54 -0
  425. package/skills/rabetbase/references/rabetbase-sql-pull.md +54 -0
  426. package/skills/rabetbase/references/rabetbase-sql-push.md +46 -0
  427. package/skills/rabetbase/references/rabetbase-sql-status.md +39 -0
  428. package/skills/rabetbase/references/rabetbase-sql-validate.md +73 -0
  429. package/skills/rabetbase/references/rabetbase-standard-page-status.md +31 -0
  430. package/skills/rabetbase/references/rabetbase-task-status.md +40 -0
  431. package/skills/rabetbase/references/rabetbase-tenant-members-list.md +69 -0
  432. package/skills/rabetbase/references/rabetbase-update.md +56 -0
  433. package/skills/rabetbase/references/rabetbase-user-account.md +45 -0
  434. package/skills/rabetbase/references/rabetbase-workspace.md +60 -0
  435. package/skills/rabetbase.manifest.json +137 -0
@@ -1 +1 @@
1
- (function(_0x31c925,_0x4a6d1d){const _0x5c42f9=a214_0x5a30,_0x5c0711=_0x31c925();while(!![]){try{const _0x10170f=parseInt(_0x5c42f9(0x162))/0x1*(-parseInt(_0x5c42f9(0x164))/0x2)+-parseInt(_0x5c42f9(0x15f))/0x3+parseInt(_0x5c42f9(0x168))/0x4+-parseInt(_0x5c42f9(0x16a))/0x5+parseInt(_0x5c42f9(0x15d))/0x6+-parseInt(_0x5c42f9(0x165))/0x7*(parseInt(_0x5c42f9(0x169))/0x8)+parseInt(_0x5c42f9(0x161))/0x9;if(_0x10170f===_0x4a6d1d)break;else _0x5c0711['push'](_0x5c0711['shift']());}catch(_0x24800d){_0x5c0711['push'](_0x5c0711['shift']());}}}(a214_0x3eab,0x1cd65));export function snakeToCamel(_0x37a1b8){const _0x5d13e3=a214_0x5a30;return _0x37a1b8[_0x5d13e3(0x166)]()['replace'](/_([a-z])/g,(_0x27ffda,_0x439e64)=>_0x439e64['toUpperCase']());}function a214_0x3eab(){const _0x4b83e5=['after','operationType','837336MdkbPh','match','395928bhjyYf','test','2106243hHQkcj','96909oYsoEV','datasetCode','2AKMypq','14XqjIrj','toLowerCase','remoteId','704984AaDQSK','105784izKESz','881905otPBQG','values','functionNode','trim'];a214_0x3eab=function(){return _0x4b83e5;};return a214_0x3eab();}export function findHookLocationByRemoteId(_0x7f097f,_0x28655a){const _0x380fdf=a214_0x5a30;if(!_0x28655a)return undefined;for(const _0x502113 of Object[_0x380fdf(0x16b)](_0x7f097f)){if(_0x502113[_0x380fdf(0x167)]===_0x28655a&&_0x502113[_0x380fdf(0x163)]&&_0x502113[_0x380fdf(0x15c)]&&_0x502113[_0x380fdf(0x159)])return{'datasetCode':_0x502113[_0x380fdf(0x163)],'operationType':_0x502113[_0x380fdf(0x15c)],'functionNode':_0x502113['functionNode']};}return undefined;}function a214_0x5a30(_0x45d9c9,_0x29dd50){_0x45d9c9=_0x45d9c9-0x159;const _0x3eabc9=a214_0x3eab();let _0x5a3018=_0x3eabc9[_0x45d9c9];return _0x5a3018;}export function extractScriptDescription(_0xcacda7){const _0x29790c=a214_0x5a30,_0x46b84e=_0xcacda7[_0x29790c(0x15e)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x46b84e?.[0x1]?.['trim']()||undefined;}export function isValidBffFunctionName(_0x451ffb){const _0x118f66=a214_0x5a30;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x118f66(0x160)](_0x451ffb);}export function normalizeHookFunctionNode(_0x6081ea){const _0x314f81=a214_0x5a30;if(!_0x6081ea)return undefined;const _0x5a7fb4=_0x6081ea[_0x314f81(0x15a)]()['toLowerCase']();if(_0x5a7fb4==='before'||_0x5a7fb4===_0x314f81(0x15b))return _0x5a7fb4;return undefined;}
1
+ (function(_0x3f1fb5,_0x523d83){const _0x5b9851=a224_0x5ce0,_0x4d1e2f=_0x3f1fb5();while(!![]){try{const _0x211307=-parseInt(_0x5b9851(0x16f))/0x1+parseInt(_0x5b9851(0x165))/0x2*(parseInt(_0x5b9851(0x15e))/0x3)+-parseInt(_0x5b9851(0x163))/0x4+-parseInt(_0x5b9851(0x16b))/0x5*(-parseInt(_0x5b9851(0x16e))/0x6)+-parseInt(_0x5b9851(0x171))/0x7*(parseInt(_0x5b9851(0x167))/0x8)+-parseInt(_0x5b9851(0x15f))/0x9+parseInt(_0x5b9851(0x16d))/0xa*(parseInt(_0x5b9851(0x160))/0xb);if(_0x211307===_0x523d83)break;else _0x4d1e2f['push'](_0x4d1e2f['shift']());}catch(_0x41ac28){_0x4d1e2f['push'](_0x4d1e2f['shift']());}}}(a224_0x5b4f,0x8ab5a));export function snakeToCamel(_0x5f22aa){const _0x856680=a224_0x5ce0;return _0x5f22aa[_0x856680(0x16a)]()[_0x856680(0x161)](/_([a-z])/g,(_0x33f399,_0x244c8d)=>_0x244c8d[_0x856680(0x168)]());}function a224_0x5ce0(_0x3d5f7b,_0xbb677e){_0x3d5f7b=_0x3d5f7b-0x15e;const _0x5b4fd1=a224_0x5b4f();let _0x5ce029=_0x5b4fd1[_0x3d5f7b];return _0x5ce029;}export function findHookLocationByRemoteId(_0x45593b,_0x196417){const _0x3ea52d=a224_0x5ce0;if(!_0x196417)return undefined;for(const _0x522b92 of Object[_0x3ea52d(0x16c)](_0x45593b)){if(_0x522b92['remoteId']===_0x196417&&_0x522b92[_0x3ea52d(0x162)]&&_0x522b92[_0x3ea52d(0x169)]&&_0x522b92[_0x3ea52d(0x172)])return{'datasetCode':_0x522b92['datasetCode'],'operationType':_0x522b92[_0x3ea52d(0x169)],'functionNode':_0x522b92[_0x3ea52d(0x172)]};}return undefined;}export function extractScriptDescription(_0x2efaa7){const _0x59ebe9=a224_0x5ce0,_0x544ae9=_0x2efaa7[_0x59ebe9(0x164)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x544ae9?.[0x1]?.['trim']()||undefined;}function a224_0x5b4f(){const _0x40f8fa=['values','17800030EcSJpi','630WDldyR','1118763vPnkAM','after','4333yCRDli','functionNode','34341pqcWhs','3634173fnPTfr','11DsWQJh','replace','datasetCode','3699460Pejxat','match','164CvnBxY','trim','5256PvnfCs','toUpperCase','operationType','toLowerCase','33505ddrwCH'];a224_0x5b4f=function(){return _0x40f8fa;};return a224_0x5b4f();}export function isValidBffFunctionName(_0x2959ee){return/^[A-Za-z_$][A-Za-z0-9_$]*$/['test'](_0x2959ee);}export function normalizeHookFunctionNode(_0x1146ef){const _0x24869b=a224_0x5ce0;if(!_0x1146ef)return undefined;const _0x173214=_0x1146ef[_0x24869b(0x166)]()['toLowerCase']();if(_0x173214==='before'||_0x173214===_0x24869b(0x170))return _0x173214;return undefined;}
@@ -1 +1 @@
1
- function a215_0x5cf0(){const _0x56c3cc=['dbName','map','3gIeNIJ','7409904PcGUOX','23sulvFh','.\x20Be\x20more\x20specific.','isNaN','length','join','get','dbtableConfig','db-','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','dbId','314811SprqWi','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','entries','4553328LKzOZp','No\x20database\x20matching\x20\x22','\x22.\x20Available:\x20','91340WlIRxx','has','toLowerCase','207664wbbSfd','\x22\x20matches\x20multiple\x20databases:\x20','includes','set','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','12783294vYjYHF','find','2310695cuDJBJ','filter'];a215_0x5cf0=function(){return _0x56c3cc;};return a215_0x5cf0();}(function(_0x15bee2,_0x238df3){const _0x5c2b93=a215_0x383e,_0x5ee5dc=_0x15bee2();while(!![]){try{const _0x5c2671=parseInt(_0x5c2b93(0x1ad))/0x1*(parseInt(_0x5c2b93(0x19d))/0x2)+-parseInt(_0x5c2b93(0x1ab))/0x3*(parseInt(_0x5c2b93(0x1a0))/0x4)+parseInt(_0x5c2b93(0x1a7))/0x5+parseInt(_0x5c2b93(0x1ac))/0x6+-parseInt(_0x5c2b93(0x197))/0x7+-parseInt(_0x5c2b93(0x19a))/0x8+-parseInt(_0x5c2b93(0x1a5))/0x9;if(_0x5c2671===_0x238df3)break;else _0x5ee5dc['push'](_0x5ee5dc['shift']());}catch(_0x527035){_0x5ee5dc['push'](_0x5ee5dc['shift']());}}}(a215_0x5cf0,0xa1678));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x5e53fb){const _0x19fd2c=a215_0x383e;if(cache[_0x19fd2c(0x19e)](_0x5e53fb))return cache[_0x19fd2c(0x192)](_0x5e53fb);const _0x123666=await listDatasets(_0x5e53fb),_0x4f9f3e=new Map();for(const _0x3888af of _0x123666){const _0x3b594a=_0x3888af[_0x19fd2c(0x193)];_0x3b594a?.[_0x19fd2c(0x196)]!=null&&_0x4f9f3e[_0x19fd2c(0x1a3)](_0x3b594a[_0x19fd2c(0x196)],_0x3b594a[_0x19fd2c(0x1a9)]??_0x19fd2c(0x194)+_0x3b594a['dbId']);}const _0x5141c3=[..._0x4f9f3e[_0x19fd2c(0x199)]()][_0x19fd2c(0x1aa)](([_0x4aa656,_0x1dfb5f])=>({'dbId':_0x4aa656,'dbName':_0x1dfb5f}));return cache['set'](_0x5e53fb,_0x5141c3),_0x5141c3;}export async function resolveDb(_0x261aca,_0x242a94){const _0x49039d=a215_0x383e,_0x4c65df=await listDatabases(_0x261aca);if(_0x4c65df[_0x49039d(0x1b0)]===0x0)return{'resolved':[],'error':'No\x20linked\x20databases\x20found\x20under\x20app\x20\x22'+_0x261aca+_0x49039d(0x195)};if(!_0x242a94)return{'resolved':_0x4c65df};const _0x5867d3=Number(_0x242a94);if(!Number[_0x49039d(0x1af)](_0x5867d3)){const _0x387c2e=_0x4c65df[_0x49039d(0x1a6)](_0x27f09b=>_0x27f09b[_0x49039d(0x196)]===_0x5867d3);if(_0x387c2e)return{'resolved':[_0x387c2e]};}const _0x3fd659=_0x242a94['toLowerCase'](),_0x5cfc69=_0x4c65df[_0x49039d(0x1a8)](_0x3fc4fa=>_0x3fc4fa[_0x49039d(0x1a9)][_0x49039d(0x19f)]()[_0x49039d(0x1a2)](_0x3fd659));if(_0x5cfc69[_0x49039d(0x1b0)]>0x0)return{'resolved':_0x5cfc69};const _0x15b458=_0x4c65df[_0x49039d(0x1aa)](_0x52d4cd=>_0x52d4cd[_0x49039d(0x1a9)]+'\x20('+_0x52d4cd[_0x49039d(0x196)]+')')['join'](',\x20');return{'resolved':[],'error':_0x49039d(0x19b)+_0x242a94+'\x22\x20under\x20app\x20\x22'+_0x261aca+_0x49039d(0x19c)+_0x15b458+_0x49039d(0x198)};}function a215_0x383e(_0x23f896,_0x26b1e9){_0x23f896=_0x23f896-0x192;const _0x5cf065=a215_0x5cf0();let _0x383e83=_0x5cf065[_0x23f896];return _0x383e83;}export async function resolveOneDb(_0x67b251,_0x5cc581){const _0x2a9bc1=a215_0x383e,{resolved:_0x1fcd90,error:_0x3c1c8b}=await resolveDb(_0x67b251,_0x5cc581);if(_0x3c1c8b)return{'db':null,'error':_0x3c1c8b};if(_0x1fcd90[_0x2a9bc1(0x1b0)]===0x1)return{'db':_0x1fcd90[0x0]};if(!_0x5cc581){const _0x2accc9=_0x1fcd90[_0x2a9bc1(0x1aa)](_0x1494d3=>_0x1494d3[_0x2a9bc1(0x1a9)]+'\x20('+_0x1494d3[_0x2a9bc1(0x196)]+')')[_0x2a9bc1(0x1b1)](',\x20');return{'db':null,'error':_0x2a9bc1(0x1a4)+_0x2accc9};}const _0x5b5108=_0x1fcd90[_0x2a9bc1(0x1aa)](_0x4e097d=>_0x4e097d[_0x2a9bc1(0x1a9)]+'\x20('+_0x4e097d['dbId']+')')[_0x2a9bc1(0x1b1)](',\x20');return{'db':null,'error':'\x22'+_0x5cc581+_0x2a9bc1(0x1a1)+_0x5b5108+_0x2a9bc1(0x1ae)};}export async function getDbName(_0x132f38,_0x232590){const _0x9300b1=a215_0x383e,_0x31da91=await listDatabases(_0x132f38);return _0x31da91['find'](_0x27cc8b=>_0x27cc8b[_0x9300b1(0x196)]===_0x232590)?.[_0x9300b1(0x1a9)];}
1
+ (function(_0x3c51e8,_0x4ca80f){const _0x537e9b=a225_0x3f57,_0x481a29=_0x3c51e8();while(!![]){try{const _0x5a1789=parseInt(_0x537e9b(0x145))/0x1+parseInt(_0x537e9b(0x154))/0x2*(-parseInt(_0x537e9b(0x14d))/0x3)+-parseInt(_0x537e9b(0x149))/0x4+-parseInt(_0x537e9b(0x142))/0x5+parseInt(_0x537e9b(0x152))/0x6+-parseInt(_0x537e9b(0x15b))/0x7+parseInt(_0x537e9b(0x146))/0x8;if(_0x5a1789===_0x4ca80f)break;else _0x481a29['push'](_0x481a29['shift']());}catch(_0x4969b5){_0x481a29['push'](_0x481a29['shift']());}}}(a225_0x2cf8,0x55cad));function a225_0x2cf8(){const _0xf63fa9=['dbId','627382pINUPy','has','\x22\x20under\x20app\x20\x22','isNaN','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','db-','1355845NFdMRD','join','find','187690iBIHfC','3874584dVcGrF','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','get','805700dKrZZe','map','toLowerCase','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','622467dtkOIQ','length','filter','No\x20database\x20matching\x20\x22','entries','3939540uYTtPo','includes','4PucQnh','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','.\x20Be\x20more\x20specific.','dbName','set','\x22\x20matches\x20multiple\x20databases:\x20'];a225_0x2cf8=function(){return _0xf63fa9;};return a225_0x2cf8();}import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x1422f7){const _0x2e9e13=a225_0x3f57;if(cache[_0x2e9e13(0x15c)](_0x1422f7))return cache[_0x2e9e13(0x148)](_0x1422f7);const _0x5d884c=await listDatasets(_0x1422f7),_0xbc9498=new Map();for(const _0x420b0d of _0x5d884c){const _0x1e3e82=_0x420b0d['dbtableConfig'];_0x1e3e82?.[_0x2e9e13(0x15a)]!=null&&_0xbc9498[_0x2e9e13(0x158)](_0x1e3e82['dbId'],_0x1e3e82[_0x2e9e13(0x157)]??_0x2e9e13(0x141)+_0x1e3e82[_0x2e9e13(0x15a)]);}const _0x559a63=[..._0xbc9498[_0x2e9e13(0x151)]()][_0x2e9e13(0x14a)](([_0x540bbc,_0x2b9b67])=>({'dbId':_0x540bbc,'dbName':_0x2b9b67}));return cache['set'](_0x1422f7,_0x559a63),_0x559a63;}export async function resolveDb(_0x90ca4d,_0x25468b){const _0x49ea57=a225_0x3f57,_0x56c8a1=await listDatabases(_0x90ca4d);if(_0x56c8a1[_0x49ea57(0x14e)]===0x0)return{'resolved':[],'error':_0x49ea57(0x14c)+_0x90ca4d+_0x49ea57(0x140)};if(!_0x25468b)return{'resolved':_0x56c8a1};const _0x1e3ad8=Number(_0x25468b);if(!Number[_0x49ea57(0x15e)](_0x1e3ad8)){const _0x3c3559=_0x56c8a1[_0x49ea57(0x144)](_0x310aa7=>_0x310aa7['dbId']===_0x1e3ad8);if(_0x3c3559)return{'resolved':[_0x3c3559]};}const _0x45b95d=_0x25468b[_0x49ea57(0x14b)](),_0x2fe2f2=_0x56c8a1[_0x49ea57(0x14f)](_0x4fb99b=>_0x4fb99b['dbName']['toLowerCase']()[_0x49ea57(0x153)](_0x45b95d));if(_0x2fe2f2[_0x49ea57(0x14e)]>0x0)return{'resolved':_0x2fe2f2};const _0x2d7c6e=_0x56c8a1[_0x49ea57(0x14a)](_0x1f98f2=>_0x1f98f2[_0x49ea57(0x157)]+'\x20('+_0x1f98f2['dbId']+')')[_0x49ea57(0x143)](',\x20');return{'resolved':[],'error':_0x49ea57(0x150)+_0x25468b+_0x49ea57(0x15d)+_0x90ca4d+'\x22.\x20Available:\x20'+_0x2d7c6e+_0x49ea57(0x155)};}export async function resolveOneDb(_0x2ebf1d,_0x190493){const _0x451d38=a225_0x3f57,{resolved:_0x3543b5,error:_0x45f9c6}=await resolveDb(_0x2ebf1d,_0x190493);if(_0x45f9c6)return{'db':null,'error':_0x45f9c6};if(_0x3543b5[_0x451d38(0x14e)]===0x1)return{'db':_0x3543b5[0x0]};if(!_0x190493){const _0x26a693=_0x3543b5[_0x451d38(0x14a)](_0x844510=>_0x844510[_0x451d38(0x157)]+'\x20('+_0x844510[_0x451d38(0x15a)]+')')[_0x451d38(0x143)](',\x20');return{'db':null,'error':_0x451d38(0x147)+_0x26a693};}const _0x42bb50=_0x3543b5['map'](_0x2297a1=>_0x2297a1[_0x451d38(0x157)]+'\x20('+_0x2297a1[_0x451d38(0x15a)]+')')['join'](',\x20');return{'db':null,'error':'\x22'+_0x190493+_0x451d38(0x159)+_0x42bb50+_0x451d38(0x156)};}function a225_0x3f57(_0x4bf69c,_0x52aacf){_0x4bf69c=_0x4bf69c-0x140;const _0x2cf805=a225_0x2cf8();let _0x3f5723=_0x2cf805[_0x4bf69c];return _0x3f5723;}export async function getDbName(_0x3ff1e2,_0x34557a){const _0x37ad5b=a225_0x3f57,_0x2934f3=await listDatabases(_0x3ff1e2);return _0x2934f3[_0x37ad5b(0x144)](_0x342740=>_0x342740['dbId']===_0x34557a)?.[_0x37ad5b(0x157)];}
@@ -1 +1 @@
1
- (function(_0xd85f89,_0x209440){const _0x1a1ebc=a216_0x3297,_0x2cc653=_0xd85f89();while(!![]){try{const _0x308e75=-parseInt(_0x1a1ebc(0x10f))/0x1+-parseInt(_0x1a1ebc(0x110))/0x2+parseInt(_0x1a1ebc(0x10d))/0x3+parseInt(_0x1a1ebc(0x114))/0x4+-parseInt(_0x1a1ebc(0x10c))/0x5+-parseInt(_0x1a1ebc(0x10b))/0x6*(parseInt(_0x1a1ebc(0x115))/0x7)+parseInt(_0x1a1ebc(0x10e))/0x8;if(_0x308e75===_0x209440)break;else _0x2cc653['push'](_0x2cc653['shift']());}catch(_0x5426aa){_0x2cc653['push'](_0x2cc653['shift']());}}}(a216_0x3edd,0x46b6b));import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x15a5fa,_0x535ba1=process['cwd']()){const _0x280c37=a216_0x3297,_0x3f7cbb=resolve(_0x535ba1),_0x1d9eb0=join(_0x3f7cbb,'.rabetbase',_0x280c37(0x10a));return{'projectRoot':_0x3f7cbb,'pagesBaseDir':_0x1d9eb0,'appPagesDir':join(_0x1d9eb0,_0x15a5fa),'lockFilePath':join(_0x3f7cbb,_0x280c37(0x113),'page.lock.json')};}export function buildPageFileName(_0x22612c,_0x48001b){return _0x22612c+'-'+String(_0x48001b)['toUpperCase']()+'.json';}export function resolvePageFilePath(_0x391146,_0x1d4c15,_0x22d89d){const _0x193e69=a216_0x3297;return join(_0x391146[_0x193e69(0x112)],buildPageFileName(_0x1d4c15,_0x22d89d));}export async function ensureParentDirectory(_0x26a444){await mkdir(dirname(_0x26a444),{'recursive':!![]});}function a216_0x3297(_0x3850a7,_0x31568d){_0x3850a7=_0x3850a7-0x10a;const _0x3eddb7=a216_0x3edd();let _0x329766=_0x3eddb7[_0x3850a7];return _0x329766;}export async function fileExists(_0x3b36ae){const _0x538d46=a216_0x3297;try{return await access(_0x3b36ae,constants[_0x538d46(0x111)]),!![];}catch{return![];}}function a216_0x3edd(){const _0x5aad6c=['page','6yJakyg','2797705ZBVtRM','1466862MSOuDF','8068728dEHuGI','381012ADivTT','128814tGXViq','F_OK','appPagesDir','.rabetbase','790908UPvDje','2804683BJOJlN'];a216_0x3edd=function(){return _0x5aad6c;};return a216_0x3edd();}
1
+ function a226_0x8e26(){const _0x46b948=['32CzXPMR','page','16qnyOdq','F_OK','toUpperCase','105897aWwyUP','6936083xEXXvD','page.lock.json','2337084TjJvOm','appPagesDir','648705Cavbpg','.rabetbase','1183152dGawOf','4027836hSMgFH','51868820iojqQn','62mInUlR'];a226_0x8e26=function(){return _0x46b948;};return a226_0x8e26();}(function(_0x20bf4c,_0x4b8f7b){const _0x1bd5dc=a226_0x34f7,_0x117692=_0x20bf4c();while(!![]){try{const _0x282cbf=-parseInt(_0x1bd5dc(0x8f))/0x1+parseInt(_0x1bd5dc(0x92))/0x2*(-parseInt(_0x1bd5dc(0x98))/0x3)+parseInt(_0x1bd5dc(0x93))/0x4*(-parseInt(_0x1bd5dc(0x8d))/0x5)+-parseInt(_0x1bd5dc(0x90))/0x6+-parseInt(_0x1bd5dc(0x99))/0x7+parseInt(_0x1bd5dc(0x95))/0x8*(parseInt(_0x1bd5dc(0x9b))/0x9)+parseInt(_0x1bd5dc(0x91))/0xa;if(_0x282cbf===_0x4b8f7b)break;else _0x117692['push'](_0x117692['shift']());}catch(_0x5017f7){_0x117692['push'](_0x117692['shift']());}}}(a226_0x8e26,0xb1e86));function a226_0x34f7(_0x397323,_0x56058a){_0x397323=_0x397323-0x8c;const _0x8e262b=a226_0x8e26();let _0x34f7b2=_0x8e262b[_0x397323];return _0x34f7b2;}import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x2cd94f,_0x6d4606=process['cwd']()){const _0x28b0f0=a226_0x34f7,_0x2e4b52=resolve(_0x6d4606),_0x3059e7=join(_0x2e4b52,'.rabetbase',_0x28b0f0(0x94));return{'projectRoot':_0x2e4b52,'pagesBaseDir':_0x3059e7,'appPagesDir':join(_0x3059e7,_0x2cd94f),'lockFilePath':join(_0x2e4b52,_0x28b0f0(0x8e),_0x28b0f0(0x9a))};}export function buildPageFileName(_0x20577a,_0x3f3a94){const _0x1c2039=a226_0x34f7;return _0x20577a+'-'+String(_0x3f3a94)[_0x1c2039(0x97)]()+'.json';}export function resolvePageFilePath(_0x4c3b9c,_0x3858c9,_0x1e819f){const _0x14817b=a226_0x34f7;return join(_0x4c3b9c[_0x14817b(0x8c)],buildPageFileName(_0x3858c9,_0x1e819f));}export async function ensureParentDirectory(_0x3d8b59){await mkdir(dirname(_0x3d8b59),{'recursive':!![]});}export async function fileExists(_0x15ebf3){const _0x326040=a226_0x34f7;try{return await access(_0x15ebf3,constants[_0x326040(0x96)]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x763a3a,_0xc138e3){const _0x43b218=a217_0x5282,_0x179b03=_0x763a3a();while(!![]){try{const _0xee793=parseInt(_0x43b218(0x167))/0x1*(parseInt(_0x43b218(0x160))/0x2)+parseInt(_0x43b218(0x16c))/0x3*(parseInt(_0x43b218(0x16a))/0x4)+parseInt(_0x43b218(0x15f))/0x5+-parseInt(_0x43b218(0x15c))/0x6+-parseInt(_0x43b218(0x168))/0x7*(parseInt(_0x43b218(0x15b))/0x8)+-parseInt(_0x43b218(0x169))/0x9+parseInt(_0x43b218(0x163))/0xa;if(_0xee793===_0xc138e3)break;else _0x179b03['push'](_0x179b03['shift']());}catch(_0x139ff9){_0x179b03['push'](_0x179b03['shift']());}}}(a217_0x5578,0x5ac85));function a217_0x5282(_0x285195,_0x12f901){_0x285195=_0x285195-0x15b;const _0x5578d2=a217_0x5578();let _0x5282f6=_0x5578d2[_0x285195];return _0x5282f6;}import a217_0x273921 from'node:crypto';import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x2b28d5){const _0x30d5ee=a217_0x5282;return JSON[_0x30d5ee(0x15e)](JSON[_0x30d5ee(0x164)](_0x2b28d5),null,0x2)+'\x0a';}export function computePageContentHash(_0x56b730){const _0x365cae=a217_0x5282;return a217_0x273921[_0x365cae(0x166)](_0x365cae(0x16b))[_0x365cae(0x165)](_0x56b730)[_0x365cae(0x162)](_0x365cae(0x161));}export function computeSerializedSchemaHash(_0x8a2f3){return computePageContentHash(serializePageSchemaForFile(_0x8a2f3));}export async function computePageFileHash(_0x3390b0){const _0x497b5a=a217_0x5282,_0x250d0e=await readFile(_0x3390b0,_0x497b5a(0x15d));return computePageContentHash(_0x250d0e);}function a217_0x5578(){const _0x338690=['4IMhpvh','md5','1596597FlPRZx','4087224rZnQtS','2647818UqAdZl','utf8','stringify','1745445XVnaPp','8962NDhhuW','hex','digest','7866720sLjFbJ','parse','update','createHash','55KNULqc','7bMoEJk','5313276qBuVPf'];a217_0x5578=function(){return _0x338690;};return a217_0x5578();}
1
+ (function(_0x4983b2,_0x376f4f){const _0x449e8e=a227_0x59d7,_0x811441=_0x4983b2();while(!![]){try{const _0x548dad=-parseInt(_0x449e8e(0x149))/0x1+parseInt(_0x449e8e(0x151))/0x2*(parseInt(_0x449e8e(0x14f))/0x3)+-parseInt(_0x449e8e(0x147))/0x4+parseInt(_0x449e8e(0x143))/0x5+parseInt(_0x449e8e(0x14e))/0x6*(parseInt(_0x449e8e(0x14b))/0x7)+-parseInt(_0x449e8e(0x14a))/0x8*(-parseInt(_0x449e8e(0x14c))/0x9)+-parseInt(_0x449e8e(0x152))/0xa;if(_0x548dad===_0x376f4f)break;else _0x811441['push'](_0x811441['shift']());}catch(_0x75ad1a){_0x811441['push'](_0x811441['shift']());}}}(a227_0x3c81,0x647e3));function a227_0x3c81(){const _0x1e9f3d=['182753HpBIUy','1424TEAaHb','112DECdPx','17622FndBhr','update','66162vuWIad','39OrIQmV','hex','17486AeXEIs','909670vzYUJL','3556750SYLdMF','createHash','utf8','digest','2658504jtubFP','md5'];a227_0x3c81=function(){return _0x1e9f3d;};return a227_0x3c81();}import a227_0xf05e0 from'node:crypto';import{readFile}from'node:fs/promises';function a227_0x59d7(_0x5bbb8e,_0x17c1dd){_0x5bbb8e=_0x5bbb8e-0x143;const _0x3c8163=a227_0x3c81();let _0x59d7d0=_0x3c8163[_0x5bbb8e];return _0x59d7d0;}export function serializePageSchemaForFile(_0x1d052c){return JSON['stringify'](JSON['parse'](_0x1d052c),null,0x2)+'\x0a';}export function computePageContentHash(_0xa9a98f){const _0x56f4d8=a227_0x59d7;return a227_0xf05e0[_0x56f4d8(0x144)](_0x56f4d8(0x148))[_0x56f4d8(0x14d)](_0xa9a98f)[_0x56f4d8(0x146)](_0x56f4d8(0x150));}export function computeSerializedSchemaHash(_0x158a19){return computePageContentHash(serializePageSchemaForFile(_0x158a19));}export async function computePageFileHash(_0x3ae64f){const _0x38a15d=a227_0x59d7,_0x3afdce=await readFile(_0x3ae64f,_0x38a15d(0x145));return computePageContentHash(_0x3afdce);}
@@ -1 +1 @@
1
- (function(_0x399cb9,_0x29992e){const _0x551d3a=a218_0x2708,_0x416ba8=_0x399cb9();while(!![]){try{const _0x53b4df=-parseInt(_0x551d3a(0x128))/0x1*(parseInt(_0x551d3a(0x129))/0x2)+-parseInt(_0x551d3a(0x130))/0x3*(parseInt(_0x551d3a(0x127))/0x4)+-parseInt(_0x551d3a(0x137))/0x5+parseInt(_0x551d3a(0x123))/0x6*(parseInt(_0x551d3a(0x133))/0x7)+parseInt(_0x551d3a(0x134))/0x8+-parseInt(_0x551d3a(0x125))/0x9*(parseInt(_0x551d3a(0x126))/0xa)+-parseInt(_0x551d3a(0x131))/0xb*(-parseInt(_0x551d3a(0x122))/0xc);if(_0x53b4df===_0x29992e)break;else _0x416ba8['push'](_0x416ba8['shift']());}catch(_0x374f8e){_0x416ba8['push'](_0x416ba8['shift']());}}}(a218_0x1ec9,0xf20bf));function a218_0x1ec9(){const _0x510499=['stringify','ENOENT','utf8','1410633WGLJKD','36025BfjYVJ','pages','7xuueYs','64584ctNBbd','apps','parse','9002675rTsIKY','12984dmGUgC','11332788sgJnOm','code','9MsqLpG','6086620OlmRZM','16XRbpre','158957AwGoXW','2wpozTQ','object','lastSync','Failed\x20to\x20read\x20page\x20lock\x20file:\x20'];a218_0x1ec9=function(){return _0x510499;};return a218_0x1ec9();}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}function a218_0x2708(_0x47a307,_0x39c775){_0x47a307=_0x47a307-0x122;const _0x1ec9fe=a218_0x1ec9();let _0x2708fc=_0x1ec9fe[_0x47a307];return _0x2708fc;}export function ensurePageLockScope(_0x7d3a06,_0x52c730){const _0x224600=a218_0x2708,_0x349db5={'apps':_0x7d3a06[_0x224600(0x135)]&&typeof _0x7d3a06[_0x224600(0x135)]===_0x224600(0x12a)?_0x7d3a06[_0x224600(0x135)]:{}};let _0x20aca0=_0x349db5[_0x224600(0x135)][_0x52c730];if(!_0x20aca0)return _0x20aca0={'lastSync':'','pages':{}},_0x349db5[_0x224600(0x135)][_0x52c730]=_0x20aca0,{'lockData':_0x349db5,'appLock':_0x20aca0};return!_0x20aca0[_0x224600(0x12b)]&&(_0x20aca0[_0x224600(0x12b)]=''),(!_0x20aca0[_0x224600(0x132)]||typeof _0x20aca0[_0x224600(0x132)]!=='object')&&(_0x20aca0[_0x224600(0x132)]={}),{'lockData':_0x349db5,'appLock':_0x20aca0};}export async function readPageLockFile(_0x586be8){const _0x53de07=a218_0x2708;try{const _0x3cf969=await readFile(_0x586be8,_0x53de07(0x12f)),_0x10e37b=JSON[_0x53de07(0x136)](_0x3cf969);return{'apps':_0x10e37b[_0x53de07(0x135)]&&typeof _0x10e37b[_0x53de07(0x135)]===_0x53de07(0x12a)?_0x10e37b[_0x53de07(0x135)]:{}};}catch(_0x5b06f9){if(_0x5b06f9[_0x53de07(0x124)]===_0x53de07(0x12e))return null;throw new Error(_0x53de07(0x12c)+String(_0x5b06f9));}}export async function writePageLockFile(_0x59c95b,_0x2ce4bb){const _0x33006c=a218_0x2708;await mkdir(dirname(_0x59c95b),{'recursive':!![]}),await writeFile(_0x59c95b,JSON[_0x33006c(0x12d)](_0x2ce4bb,null,0x2),_0x33006c(0x12f));}
1
+ function a228_0x5d8c(_0x44d844,_0x86a7cd){_0x44d844=_0x44d844-0x1d1;const _0x5568d2=a228_0x5568();let _0x5d8ca4=_0x5568d2[_0x44d844];return _0x5d8ca4;}(function(_0x550f51,_0x16ce41){const _0x3a4df9=a228_0x5d8c,_0x5a1b3d=_0x550f51();while(!![]){try{const _0x4e4147=parseInt(_0x3a4df9(0x1d3))/0x1*(-parseInt(_0x3a4df9(0x1d6))/0x2)+parseInt(_0x3a4df9(0x1d4))/0x3+parseInt(_0x3a4df9(0x1d7))/0x4+parseInt(_0x3a4df9(0x1df))/0x5+parseInt(_0x3a4df9(0x1db))/0x6+-parseInt(_0x3a4df9(0x1d1))/0x7+-parseInt(_0x3a4df9(0x1dc))/0x8;if(_0x4e4147===_0x16ce41)break;else _0x5a1b3d['push'](_0x5a1b3d['shift']());}catch(_0x19c7cd){_0x5a1b3d['push'](_0x5a1b3d['shift']());}}}(a228_0x5568,0x7af42));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a228_0x5568(){const _0x55518a=['parse','lastSync','2489102EvzLvD','utf8','83eYfiWG','1085577QQclAA','apps','8396Qpjbmm','2538024zTsCkv','pages','stringify','object','5341992KPRviw','9988728PtPjpm','ENOENT','code','2847660PGisJJ'];a228_0x5568=function(){return _0x55518a;};return a228_0x5568();}export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x47deba,_0x5cb662){const _0x2ee583=a228_0x5d8c,_0x4c6624={'apps':_0x47deba[_0x2ee583(0x1d5)]&&typeof _0x47deba['apps']===_0x2ee583(0x1da)?_0x47deba[_0x2ee583(0x1d5)]:{}};let _0x1c7b59=_0x4c6624[_0x2ee583(0x1d5)][_0x5cb662];if(!_0x1c7b59)return _0x1c7b59={'lastSync':'','pages':{}},_0x4c6624['apps'][_0x5cb662]=_0x1c7b59,{'lockData':_0x4c6624,'appLock':_0x1c7b59};return!_0x1c7b59[_0x2ee583(0x1e1)]&&(_0x1c7b59[_0x2ee583(0x1e1)]=''),(!_0x1c7b59[_0x2ee583(0x1d8)]||typeof _0x1c7b59[_0x2ee583(0x1d8)]!==_0x2ee583(0x1da))&&(_0x1c7b59[_0x2ee583(0x1d8)]={}),{'lockData':_0x4c6624,'appLock':_0x1c7b59};}export async function readPageLockFile(_0x4ad272){const _0x69fb2c=a228_0x5d8c;try{const _0x35cb5f=await readFile(_0x4ad272,_0x69fb2c(0x1d2)),_0x5e99ce=JSON[_0x69fb2c(0x1e0)](_0x35cb5f);return{'apps':_0x5e99ce[_0x69fb2c(0x1d5)]&&typeof _0x5e99ce[_0x69fb2c(0x1d5)]===_0x69fb2c(0x1da)?_0x5e99ce[_0x69fb2c(0x1d5)]:{}};}catch(_0x5412b3){if(_0x5412b3[_0x69fb2c(0x1de)]===_0x69fb2c(0x1dd))return null;throw new Error('Failed\x20to\x20read\x20page\x20lock\x20file:\x20'+String(_0x5412b3));}}export async function writePageLockFile(_0x4dfa73,_0x1700dc){const _0x5968c0=a228_0x5d8c;await mkdir(dirname(_0x4dfa73),{'recursive':!![]}),await writeFile(_0x4dfa73,JSON[_0x5968c0(0x1d9)](_0x1700dc,null,0x2),_0x5968c0(0x1d2));}
@@ -1 +1 @@
1
- (function(_0x425a1f,_0x2d8d42){const _0x53437c=a220_0xeab7,_0xb45786=_0x425a1f();while(!![]){try{const _0x44dd05=-parseInt(_0x53437c(0x169))/0x1+-parseInt(_0x53437c(0x164))/0x2+parseInt(_0x53437c(0x193))/0x3+-parseInt(_0x53437c(0x180))/0x4+-parseInt(_0x53437c(0x19b))/0x5+-parseInt(_0x53437c(0x172))/0x6*(-parseInt(_0x53437c(0x184))/0x7)+parseInt(_0x53437c(0x166))/0x8*(parseInt(_0x53437c(0x167))/0x9);if(_0x44dd05===_0x2d8d42)break;else _0xb45786['push'](_0xb45786['shift']());}catch(_0x3b7839){_0xb45786['push'](_0xb45786['shift']());}}}(a220_0x2cc8,0x31fc8));import{MYBATIS_DYNAMIC_END_MARKER,MYBATIS_DYNAMIC_START_MARKER,MYBATIS_INCLUDE_MARKER,normalizeSqlForStaticAnalysis}from'./sql-validator.js';export function auditSqlJoinIndexes(_0x47ec98,_0x395c5a){const _0x41c613=a220_0xeab7,_0x32e403=[],_0x2f0dce=normalizeSqlForStaticAnalysis(_0x47ec98),_0xd3d0e3=(_0x2f0dce['error']?[]:extractJoinFacts(_0x2f0dce[_0x41c613(0x181)]))['map'](_0x192fab=>{const _0x1b7b76=_0x41c613;if(_0x192fab[_0x1b7b76(0x191)]||_0x192fab[_0x1b7b76(0x173)][_0x1b7b76(0x19f)]===0x0)return _0x32e403[_0x1b7b76(0x19e)]({'code':_0x1b7b76(0x17b),'table':_0x192fab[_0x1b7b76(0x17e)],'alias':_0x192fab[_0x1b7b76(0x18f)],'columns':_0x192fab[_0x1b7b76(0x173)],'reason':_0x192fab[_0x1b7b76(0x15b)]??_0x1b7b76(0x1a1)}),{'table':_0x192fab[_0x1b7b76(0x17e)],'alias':_0x192fab[_0x1b7b76(0x18f)],'columns':_0x192fab['columns'],'status':'unavailable'};const _0x431bbe=resolveTableMetadata(_0x395c5a,_0x192fab[_0x1b7b76(0x17e)]),_0x5980d2=(_0x431bbe?.[_0x1b7b76(0x195)]??[])[_0x1b7b76(0x160)](_0x3ad6a7=>({'index':_0x3ad6a7,'matchedPrefix':findEqualityPrefix(_0x3ad6a7[_0x1b7b76(0x173)],_0x192fab[_0x1b7b76(0x173)])}))['filter'](_0x44a805=>_0x44a805['matchedPrefix']['length']>0x0),_0x3d0ab9=_0x5980d2[_0x1b7b76(0x18a)]((_0x2ce281,_0x331477)=>!_0x2ce281||_0x331477['matchedPrefix'][_0x1b7b76(0x19f)]>_0x2ce281['matchedPrefix'][_0x1b7b76(0x19f)]?_0x331477:_0x2ce281,_0x5980d2[0x0]);if(_0x3d0ab9)return{'table':_0x192fab[_0x1b7b76(0x17e)],'alias':_0x192fab[_0x1b7b76(0x18f)],'columns':_0x192fab[_0x1b7b76(0x173)],'status':_0x1b7b76(0x17c),'matchedIndex':{..._0x3d0ab9['index'],'matchedPrefix':_0x3d0ab9[_0x1b7b76(0x179)]}};const _0x351827=_0x431bbe?.[_0x1b7b76(0x195)][_0x1b7b76(0x178)](_0x41006c=>_0x41006c['columns'][_0x1b7b76(0x161)](_0x395890=>_0x192fab[_0x1b7b76(0x173)][_0x1b7b76(0x161)](_0x42c9a7=>columnNamesMatch(_0x395890,_0x42c9a7))))??[];if(_0x351827[_0x1b7b76(0x19f)]>0x0)return _0x32e403[_0x1b7b76(0x19e)]({'code':_0x1b7b76(0x162),'table':_0x192fab[_0x1b7b76(0x17e)],'alias':_0x192fab['alias'],'columns':_0x192fab[_0x1b7b76(0x173)],'reason':_0x1b7b76(0x15e)}),{'table':_0x192fab['table'],'alias':_0x192fab[_0x1b7b76(0x18f)],'columns':_0x192fab[_0x1b7b76(0x173)],'status':_0x1b7b76(0x170),'candidateIndexes':_0x351827};if(_0x431bbe&&_0x431bbe[_0x1b7b76(0x18b)]!==![]&&_0x431bbe[_0x1b7b76(0x195)][_0x1b7b76(0x19f)]>0x0&&_0x192fab[_0x1b7b76(0x173)][_0x1b7b76(0x19f)]>0x0)return _0x32e403['push']({'code':'JOIN_INDEX_MISSING','table':_0x192fab[_0x1b7b76(0x17e)],'alias':_0x192fab['alias'],'columns':_0x192fab[_0x1b7b76(0x173)],'reason':_0x1b7b76(0x19a)}),{'table':_0x192fab[_0x1b7b76(0x17e)],'alias':_0x192fab[_0x1b7b76(0x18f)],'columns':_0x192fab['columns'],'status':_0x1b7b76(0x170)};return _0x32e403[_0x1b7b76(0x19e)]({'code':'INDEX_METADATA_UNAVAILABLE','table':_0x192fab['table'],'alias':_0x192fab[_0x1b7b76(0x18f)],'columns':_0x192fab[_0x1b7b76(0x173)],'reason':_0x431bbe?_0x1b7b76(0x159):_0x1b7b76(0x186)}),{'table':_0x192fab[_0x1b7b76(0x17e)],'alias':_0x192fab[_0x1b7b76(0x18f)],'columns':_0x192fab['columns'],'status':_0x1b7b76(0x183)};});return{'checked':_0xd3d0e3[_0x41c613(0x19f)]>0x0,'joins':_0xd3d0e3,'warnings':_0x32e403};}function a220_0x2cc8(){const _0x34658d=['MyBatis\x20<include>\x20JOIN\x20fragments\x20cannot\x20be\x20expanded\x20statically.','Relevant\x20columns\x20do\x20not\x20form\x20a\x20complete\x20leftmost\x20index\x20prefix.','test','map','some','JOIN_INDEX_NOT_USABLE','tableName','345358CgJTJc','using','24TLuBis','1855341jtcfSu','Only\x20explicit\x20table\x20JOIN\x20clauses\x20with\x20an\x20ON\x20predicate\x20are\x20supported.','306069tdeiOk','containsUnresolvedInclude','natural','replace','right','INNER','min','warning','left','6jkcAfG','columns','replaceAll','OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.','add','\x5cs*\x5c.\x5cs*[\x5cw$]+','filter','matchedPrefix','toLowerCase','JOIN_PREDICATE_UNSUPPORTED','covered','unknown','table','Derived-table\x20JOIN\x20targets\x20are\x20not\x20supported.','164936XfluUw','sql','(?:^|[^\x5cw$])','unavailable','1266181xxzTmA','sort','No\x20dataset\x20metadata\x20matched\x20the\x20JOIN\x20table.','split','match','__sq__','reduce','metadataAvailable','full','from','MyBatis\x20dynamic\x20JOIN\x20predicates\x20cannot\x20be\x20audited\x20deterministically.','alias','includes','unsupportedPredicate','has','306342ophYOz','max','indexes','search','\x5c$&','join','toUpperCase','No\x20reported\x20index\x20contains\x20the\x20JOIN\x20access\x20columns.','883590TuobhQ','trim','index','push','length','position','Not\x20every\x20JOIN\x20target\x20predicate\x20could\x20be\x20audited\x20safely.','startsWith','indexOf','The\x20dataset\x20returned\x20no\x20distinguishable\x20index\x20metadata.','inner','unsupportedReason','slice'];a220_0x2cc8=function(){return _0x34658d;};return a220_0x2cc8();}function extractJoinFacts(_0x2c111f){const _0x33ea2c=a220_0xeab7,_0xd9e07b=maskNestedQueries(stripSqlNoise(_0x2c111f)),_0x384922=maskQuotedIdentifiers(_0xd9e07b),_0x15e9ac=[],_0x29b5d0=new Set(),_0x441705=/\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 _0x29cddd of _0xd9e07b['matchAll'](_0x441705)){const _0x5107f3=_0x29cddd[_0x33ea2c(0x19d)]??0x0,_0x2e3550=_0x29cddd[0x0][_0x33ea2c(0x196)](/\bJOIN\b/i),_0x26fbf8=_0x5107f3+Math[_0x33ea2c(0x194)](0x0,_0x2e3550);if(!/^JOIN\b/i['test'](_0x384922[_0x33ea2c(0x15c)](_0x26fbf8)))continue;_0x29b5d0[_0x33ea2c(0x176)](_0x26fbf8);const _0xfb66e3=normalizeIdentifier(_0x29cddd[0x1]||_0x33ea2c(0x16e)),_0x43fe28=normalizeIdentifier(_0x29cddd[0x2]??''),_0x32bbc7=normalizeIdentifier(_0x29cddd[0x3]||_0x43fe28[_0x33ea2c(0x187)]('.')['at'](-0x1)||_0x43fe28),_0x1bb7fd=[],_0x3afe97=_0x43fe28===_0x33ea2c(0x189);let _0x5ed0a6=_0xfb66e3===_0x33ea2c(0x16d)||_0xfb66e3===_0x33ea2c(0x18c)||_0x3afe97,_0x51bc9d=_0x5ed0a6?_0x3afe97?_0x33ea2c(0x17f):_0xfb66e3[_0x33ea2c(0x199)]()+'\x20JOIN\x20direction\x20is\x20not\x20supported\x20by\x20static\x20index\x20auditing.':undefined;const _0x749331=stripOuterParentheses(_0x29cddd[0x4]??''),_0x9ca1cb=_0x749331[_0x33ea2c(0x190)](MYBATIS_DYNAMIC_START_MARKER)||_0x749331[_0x33ea2c(0x190)](MYBATIS_DYNAMIC_END_MARKER),_0x4e6f7e=_0x749331['includes'](MYBATIS_INCLUDE_MARKER);_0x9ca1cb&&(_0x5ed0a6=!![],_0x51bc9d??=_0x33ea2c(0x18e));_0x4e6f7e&&(_0x5ed0a6=!![],_0x51bc9d??=_0x33ea2c(0x15d));const _0x4e711e=_0x749331[_0x33ea2c(0x174)](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x33ea2c(0x174)](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x33ea2c(0x174)](MYBATIS_INCLUDE_MARKER,'\x20');hasTopLevelKeyword(_0x4e711e,'OR')&&(_0x5ed0a6=!![],_0x51bc9d??='OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.');for(const _0x2f0c62 of splitTopLevelAnd(_0x4e711e)){const _0x3f0e86=stripOuterParentheses(_0x2f0c62);if(hasTopLevelKeyword(_0x3f0e86,'OR')){_0x5ed0a6=!![],_0x51bc9d??=_0x33ea2c(0x175);continue;}const _0x52628f=splitEquality(_0x3f0e86);if(!_0x52628f){containsColumnReference(_0x2f0c62,_0x32bbc7)&&(_0x5ed0a6=!![]);continue;}const _0x5f5d6c=parseDirectColumnReference(_0x52628f[0x0],_0x32bbc7),_0x270ee0=parseDirectColumnReference(_0x52628f[0x1],_0x32bbc7),_0x22f904=containsColumnReference(_0x52628f[0x0],_0x32bbc7),_0x303815=containsColumnReference(_0x52628f[0x1],_0x32bbc7),_0x19686b=_0x5f5d6c&&!_0x303815?_0x5f5d6c:_0x270ee0&&!_0x22f904?_0x270ee0:null;if(_0x19686b&&!_0x1bb7fd[_0x33ea2c(0x190)](_0x19686b))_0x1bb7fd[_0x33ea2c(0x19e)](_0x19686b);else!_0x19686b&&containsColumnReference(_0x2f0c62,_0x32bbc7)&&(_0x5ed0a6=!![]);}_0x15e9ac[_0x33ea2c(0x19e)]({'table':_0x43fe28,'alias':_0x32bbc7,'columns':_0x1bb7fd,'unsupportedPredicate':_0x5ed0a6,'unsupportedReason':_0x51bc9d,'containsUnresolvedInclude':_0x4e6f7e,'position':_0x26fbf8});}for(const _0x2f816b of _0x384922['matchAll'](/\bJOIN\b/gi)){const _0x2d315b=_0x2f816b[_0x33ea2c(0x19d)]??0x0;if(_0x29b5d0[_0x33ea2c(0x192)](_0x2d315b))continue;const _0x2ce299=/^\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?/['exec'](_0xd9e07b[_0x33ea2c(0x15c)](_0x2d315b+_0x2f816b[0x0]['length'])),_0x1fde82=normalizeIdentifier(_0x2ce299?.[0x1]||_0x33ea2c(0x17d)),_0x3d83c0=normalizeIdentifier(_0x2ce299?.[0x2]||''),_0x2b88da=isSqlClauseKeyword(_0x3d83c0)?_0x1fde82[_0x33ea2c(0x187)]('.')['at'](-0x1)||_0x1fde82:_0x3d83c0||_0x1fde82[_0x33ea2c(0x187)]('.')['at'](-0x1)||_0x1fde82;_0x15e9ac['push']({'table':_0x1fde82,'alias':_0x2b88da,'columns':[],'unsupportedPredicate':!![],'unsupportedReason':_0x33ea2c(0x168),'position':_0x2d315b});}const _0x19d8ca=_0x384922[_0x33ea2c(0x158)](MYBATIS_INCLUDE_MARKER);return _0x19d8ca>=0x0&&!_0x15e9ac['some'](_0x3e1aa9=>_0x3e1aa9[_0x33ea2c(0x16a)])&&_0x15e9ac[_0x33ea2c(0x19e)]({'table':_0x33ea2c(0x17d),'alias':'unknown','columns':[],'unsupportedPredicate':!![],'unsupportedReason':'MyBatis\x20<include>\x20fragments\x20cannot\x20be\x20expanded\x20for\x20JOIN\x20auditing.','containsUnresolvedInclude':!![],'position':_0x19d8ca}),_0x15e9ac[_0x33ea2c(0x185)]((_0x5c2cc3,_0x2c0848)=>_0x5c2cc3['position']-_0x2c0848[_0x33ea2c(0x1a0)]);}function stripSqlNoise(_0x4f657b){const _0x225e57=a220_0xeab7,_0x111298=Array[_0x225e57(0x18d)](_0x4f657b),_0x538e66=(_0x26fed0,_0x424df4)=>{for(let _0x2bf8b6=_0x26fed0;_0x2bf8b6<_0x424df4;_0x2bf8b6+=0x1){_0x111298[_0x2bf8b6]!=='\x0a'&&_0x111298[_0x2bf8b6]!=='\x0d'&&(_0x111298[_0x2bf8b6]='\x20');}};for(let _0x4aa498=0x0;_0x4aa498<_0x111298[_0x225e57(0x19f)];_0x4aa498+=0x1){const _0x15a2eb=_0x111298[_0x4aa498],_0x3831ad=_0x111298[_0x4aa498+0x1];if(_0x15a2eb==='\x27'||_0x15a2eb==='\x22'||_0x15a2eb==='`'){const _0x15ec31=_0x15a2eb,_0x2f5c7c=_0x4aa498;_0x4aa498+=0x1;while(_0x4aa498<_0x111298['length']){if(_0x111298[_0x4aa498]==='\x5c'&&_0x4aa498+0x1<_0x111298[_0x225e57(0x19f)]){_0x4aa498+=0x2;continue;}if(_0x111298[_0x4aa498]!==_0x15ec31){_0x4aa498+=0x1;continue;}if(_0x111298[_0x4aa498+0x1]===_0x15ec31){_0x4aa498+=0x2;continue;}break;}if(_0x15ec31==='\x27')_0x538e66(_0x2f5c7c,Math[_0x225e57(0x16f)](_0x4aa498+0x1,_0x111298[_0x225e57(0x19f)]));continue;}if(_0x15a2eb==='-'&&_0x3831ad==='-'){const _0x473c32=_0x4aa498;while(_0x4aa498<_0x111298[_0x225e57(0x19f)]&&_0x111298[_0x4aa498]!=='\x0a')_0x4aa498+=0x1;_0x538e66(_0x473c32,_0x4aa498);continue;}if(_0x15a2eb==='/'&&_0x3831ad==='*'){const _0x3bb83f=_0x4aa498;_0x4aa498+=0x2;while(_0x4aa498<_0x111298[_0x225e57(0x19f)]&&!(_0x111298[_0x4aa498]==='*'&&_0x111298[_0x4aa498+0x1]==='/')){_0x4aa498+=0x1;}_0x4aa498=Math[_0x225e57(0x16f)](_0x4aa498+0x1,_0x111298[_0x225e57(0x19f)]-0x1),_0x538e66(_0x3bb83f,_0x4aa498+0x1);continue;}if(_0x15a2eb==='#'&&_0x3831ad!=='{'){const _0x27337d=_0x4aa498;while(_0x4aa498<_0x111298[_0x225e57(0x19f)]&&_0x111298[_0x4aa498]!=='\x0a')_0x4aa498+=0x1;_0x538e66(_0x27337d,_0x4aa498);continue;}if((_0x15a2eb==='#'||_0x15a2eb==='$')&&_0x3831ad==='{'){const _0x54b982=_0x4aa498;_0x4aa498+=0x2;while(_0x4aa498<_0x111298[_0x225e57(0x19f)]&&_0x111298[_0x4aa498]!=='}')_0x4aa498+=0x1;_0x538e66(_0x54b982,Math['min'](_0x4aa498+0x1,_0x111298[_0x225e57(0x19f)]));}}return _0x111298[_0x225e57(0x198)]('');}function maskQuotedIdentifiers(_0x1b33f5){const _0x1957ad=a220_0xeab7,_0x2e2e76=Array[_0x1957ad(0x18d)](_0x1b33f5);for(let _0x55a8ec=0x0;_0x55a8ec<_0x2e2e76[_0x1957ad(0x19f)];_0x55a8ec+=0x1){const _0x26d4cd=_0x2e2e76[_0x55a8ec];if(_0x26d4cd!=='\x22'&&_0x26d4cd!=='`')continue;_0x55a8ec+=0x1;while(_0x55a8ec<_0x2e2e76['length']){if(_0x2e2e76[_0x55a8ec]===_0x26d4cd){if(_0x2e2e76[_0x55a8ec+0x1]===_0x26d4cd){_0x2e2e76[_0x55a8ec]='\x20',_0x2e2e76[_0x55a8ec+0x1]='\x20',_0x55a8ec+=0x2;continue;}break;}_0x2e2e76[_0x55a8ec]='\x20',_0x55a8ec+=0x1;}}return _0x2e2e76['join']('');}function maskNestedQueries(_0x44cc88){const _0x3f082a=a220_0xeab7,_0x157089=Array[_0x3f082a(0x18d)](_0x44cc88);for(let _0x5d9399=0x0;_0x5d9399<_0x157089[_0x3f082a(0x19f)];_0x5d9399+=0x1){if(_0x157089[_0x5d9399]!=='(')continue;const _0x44e5f0=_0x44cc88[_0x3f082a(0x15c)](_0x5d9399+0x1);if(!/^\s*(?:SELECT|WITH)\b/i[_0x3f082a(0x15f)](_0x44e5f0))continue;let _0x4f2d9c=0x1,_0x55c3bb=_0x5d9399+0x1;for(;_0x55c3bb<_0x157089[_0x3f082a(0x19f)]&&_0x4f2d9c>0x0;_0x55c3bb+=0x1){if(_0x157089[_0x55c3bb]==='(')_0x4f2d9c+=0x1;if(_0x157089[_0x55c3bb]===')')_0x4f2d9c-=0x1;}if(_0x4f2d9c!==0x0)continue;for(let _0x455d09=_0x5d9399;_0x455d09<_0x55c3bb;_0x455d09+=0x1){_0x157089[_0x455d09]='\x20';}const _0x2f9ca3='__sq__';for(let _0x5e3a60=0x0;_0x5e3a60<_0x2f9ca3[_0x3f082a(0x19f)]&&_0x5d9399+_0x5e3a60<_0x55c3bb;_0x5e3a60+=0x1){_0x157089[_0x5d9399+_0x5e3a60]=_0x2f9ca3[_0x5e3a60];}_0x5d9399=_0x55c3bb-0x1;}return _0x157089['join']('');}function splitTopLevelAnd(_0x260547){const _0xe984fd=a220_0xeab7,_0x54bf1e=[];let _0x51d50a=0x0,_0x97ac49=0x0;for(let _0x27f304=0x0;_0x27f304<_0x260547[_0xe984fd(0x19f)];_0x27f304+=0x1){const _0x4c7c93=_0x260547[_0x27f304];if(_0x4c7c93==='(')_0x51d50a+=0x1;if(_0x4c7c93===')')_0x51d50a=Math['max'](0x0,_0x51d50a-0x1);_0x51d50a===0x0&&_0x260547['slice'](_0x27f304)[_0xe984fd(0x188)](/^AND\b/i)&&(_0x27f304===0x0||/\s/[_0xe984fd(0x15f)](_0x260547[_0x27f304-0x1]??''))&&(_0x54bf1e[_0xe984fd(0x19e)](_0x260547[_0xe984fd(0x15c)](_0x97ac49,_0x27f304)['trim']()),_0x27f304+=0x2,_0x97ac49=_0x27f304+0x1);}const _0x36797b=_0x260547['slice'](_0x97ac49)[_0xe984fd(0x19c)]();if(_0x36797b)_0x54bf1e[_0xe984fd(0x19e)](_0x36797b);return _0x54bf1e;}function hasTopLevelKeyword(_0x255ad3,_0x4ff53c){const _0x19d3c9=a220_0xeab7;let _0x3fb131=0x0;for(let _0x1af56f=0x0;_0x1af56f<_0x255ad3[_0x19d3c9(0x19f)];_0x1af56f+=0x1){const _0x12cff1=_0x255ad3[_0x1af56f];if(_0x12cff1==='(')_0x3fb131+=0x1;if(_0x12cff1===')')_0x3fb131=Math[_0x19d3c9(0x194)](0x0,_0x3fb131-0x1);if(_0x3fb131!==0x0)continue;const _0x50fb49=_0x255ad3['slice'](_0x1af56f,_0x1af56f+_0x4ff53c[_0x19d3c9(0x19f)]),_0x320608=_0x255ad3[_0x1af56f-0x1]??'\x20',_0x466f23=_0x255ad3[_0x1af56f+_0x4ff53c[_0x19d3c9(0x19f)]]??'\x20';if(_0x50fb49[_0x19d3c9(0x199)]()===_0x4ff53c['toUpperCase']()&&!/[\w$]/[_0x19d3c9(0x15f)](_0x320608)&&!/[\w$]/[_0x19d3c9(0x15f)](_0x466f23))return!![];}return![];}function splitEquality(_0x3de94f){const _0x2223ac=a220_0xeab7,_0x45190d=stripOuterParentheses(_0x3de94f);let _0x4da7b9=0x0,_0x581a68;for(let _0xb00812=0x0;_0xb00812<_0x45190d[_0x2223ac(0x19f)];_0xb00812+=0x1){const _0x593e35=_0x45190d[_0xb00812];if(_0x593e35==='(')_0x4da7b9+=0x1;if(_0x593e35===')')_0x4da7b9=Math[_0x2223ac(0x194)](0x0,_0x4da7b9-0x1);const _0x3f1f67=_0x45190d[_0xb00812-0x1]??'',_0x4dfa85=_0x45190d[_0xb00812+0x1]??'';if(_0x593e35==='='&&_0x4da7b9===0x0&&!/[!<>=:]/[_0x2223ac(0x15f)](_0x3f1f67)&&_0x4dfa85!=='='){if(_0x581a68!==undefined)return null;_0x581a68=_0xb00812;}}return _0x581a68===undefined?null:[_0x45190d[_0x2223ac(0x15c)](0x0,_0x581a68)[_0x2223ac(0x19c)](),_0x45190d[_0x2223ac(0x15c)](_0x581a68+0x1)[_0x2223ac(0x19c)]()];}function parseDirectColumnReference(_0x44eca5,_0x3ecaa6){const _0x13a324=/^([`"]?[\w$]+[`"]?)\s*\.\s*([`"]?[\w$]+[`"]?)$/['exec'](stripOuterParentheses(_0x44eca5));if(!_0x13a324)return null;if(normalizeIdentifier(_0x13a324[0x1]??'')!==normalizeIdentifier(_0x3ecaa6))return null;return normalizeIdentifier(_0x13a324[0x2]??'');}function containsColumnReference(_0x2ffd4e,_0x7dfdd3){const _0x132d4a=a220_0xeab7,_0x27a7e1=_0x2ffd4e['replace'](/[`"]/g,''),_0x5f34e3=_0x7dfdd3['replace'](/[.*+?^${}()|[\]\\]/g,_0x132d4a(0x197));return new RegExp(_0x132d4a(0x182)+_0x5f34e3+_0x132d4a(0x177),'i')[_0x132d4a(0x15f)](_0x27a7e1);}function findEqualityPrefix(_0x42ac80,_0x38040c){const _0x54eff1=a220_0xeab7,_0x469927=new Set(_0x38040c[_0x54eff1(0x160)](normalizeIdentifier)),_0x169205=[];for(const _0x3e276f of _0x42ac80){if(!_0x469927[_0x54eff1(0x192)](normalizeIdentifier(_0x3e276f)))break;_0x169205[_0x54eff1(0x19e)](_0x3e276f);}return _0x169205;}function resolveTableMetadata(_0x20cae8,_0x18e9f1){const _0x884306=a220_0xeab7,_0x3c0198=normalizeIdentifier(_0x18e9f1),_0x4d43a9=_0x20cae8[_0x884306(0x178)](_0x59fa09=>normalizeIdentifier(_0x59fa09[_0x884306(0x163)])===_0x3c0198);if(_0x4d43a9[_0x884306(0x19f)]===0x1)return _0x4d43a9[0x0];const _0x56908f=_0x3c0198[_0x884306(0x190)]('.'),_0x2ffc12=_0x3c0198[_0x884306(0x187)]('.')['at'](-0x1),_0x4448da=_0x20cae8[_0x884306(0x178)](_0x518e0f=>{const _0x361aaf=_0x884306,_0x3393dd=normalizeIdentifier(_0x518e0f[_0x361aaf(0x163)]);if(_0x56908f&&_0x3393dd[_0x361aaf(0x190)]('.'))return![];return _0x3393dd[_0x361aaf(0x187)]('.')['at'](-0x1)===_0x2ffc12;});return _0x4448da['length']===0x1?_0x4448da[0x0]:undefined;}function columnNamesMatch(_0x2afffe,_0x5378a9){return normalizeIdentifier(_0x2afffe)===normalizeIdentifier(_0x5378a9);}function a220_0xeab7(_0x523390,_0x50b5dd){_0x523390=_0x523390-0x157;const _0x2cc84a=a220_0x2cc8();let _0xeab7ca=_0x2cc84a[_0x523390];return _0xeab7ca;}function normalizeIdentifier(_0x2cfacf){const _0x5407ec=a220_0xeab7;return _0x2cfacf[_0x5407ec(0x16c)](/[`"]/g,'')[_0x5407ec(0x19c)]()[_0x5407ec(0x17a)]();}function isSqlClauseKeyword(_0x434614){const _0x3e9c47=a220_0xeab7;return new Set(['on',_0x3e9c47(0x165),'where','join',_0x3e9c47(0x15a),_0x3e9c47(0x171),'right',_0x3e9c47(0x18c),'cross',_0x3e9c47(0x16b)])[_0x3e9c47(0x192)](_0x434614);}function stripOuterParentheses(_0x4f2110){const _0x701eba=a220_0xeab7;let _0x52969=_0x4f2110[_0x701eba(0x19c)]();while(_0x52969[_0x701eba(0x157)]('(')&&_0x52969['endsWith'](')')){let _0x48ff6d=0x0,_0x1e6635=!![];for(let _0x50407b=0x0;_0x50407b<_0x52969[_0x701eba(0x19f)];_0x50407b+=0x1){if(_0x52969[_0x50407b]==='(')_0x48ff6d+=0x1;if(_0x52969[_0x50407b]===')')_0x48ff6d-=0x1;if(_0x48ff6d===0x0&&_0x50407b<_0x52969[_0x701eba(0x19f)]-0x1){_0x1e6635=![];break;}}if(!_0x1e6635||_0x48ff6d!==0x0)break;_0x52969=_0x52969[_0x701eba(0x15c)](0x1,-0x1)[_0x701eba(0x19c)]();}return _0x52969;}
1
+ (function(_0x229589,_0x1384b6){const _0x3d0d13=a230_0x5964,_0x46cea6=_0x229589();while(!![]){try{const _0x4206a6=parseInt(_0x3d0d13(0x1fc))/0x1+parseInt(_0x3d0d13(0x212))/0x2+-parseInt(_0x3d0d13(0x1fe))/0x3*(parseInt(_0x3d0d13(0x1ce))/0x4)+parseInt(_0x3d0d13(0x205))/0x5+-parseInt(_0x3d0d13(0x1dc))/0x6*(parseInt(_0x3d0d13(0x1e7))/0x7)+-parseInt(_0x3d0d13(0x1f9))/0x8*(-parseInt(_0x3d0d13(0x1df))/0x9)+-parseInt(_0x3d0d13(0x1fa))/0xa;if(_0x4206a6===_0x1384b6)break;else _0x46cea6['push'](_0x46cea6['shift']());}catch(_0x2e2d51){_0x46cea6['push'](_0x46cea6['shift']());}}}(a230_0x2581,0xbe958));import{MYBATIS_DYNAMIC_END_MARKER,MYBATIS_DYNAMIC_START_MARKER,MYBATIS_INCLUDE_MARKER,normalizeSqlForStaticAnalysis}from'./sql-validator.js';export function auditSqlJoinIndexes(_0x550f1f,_0x206ce2){const _0x80d1dd=a230_0x5964,_0x2e1339=[],_0x2694f6=normalizeSqlForStaticAnalysis(_0x550f1f),_0x19cd70=(_0x2694f6[_0x80d1dd(0x1f4)]?[]:extractJoinFacts(_0x2694f6[_0x80d1dd(0x215)]))[_0x80d1dd(0x20c)](_0x4fb73f=>{const _0x4670e6=_0x80d1dd;if(_0x4fb73f[_0x4670e6(0x1d8)]||_0x4fb73f['columns']['length']===0x0)return _0x2e1339[_0x4670e6(0x1de)]({'code':_0x4670e6(0x1e3),'table':_0x4fb73f['table'],'alias':_0x4fb73f[_0x4670e6(0x203)],'columns':_0x4fb73f[_0x4670e6(0x1e1)],'reason':_0x4fb73f[_0x4670e6(0x1e5)]??_0x4670e6(0x208)}),{'table':_0x4fb73f[_0x4670e6(0x209)],'alias':_0x4fb73f[_0x4670e6(0x203)],'columns':_0x4fb73f[_0x4670e6(0x1e1)],'status':_0x4670e6(0x1f7)};const _0x275ea4=resolveTableMetadata(_0x206ce2,_0x4fb73f[_0x4670e6(0x209)]),_0x3cb2eb=(_0x275ea4?.[_0x4670e6(0x1d5)]??[])[_0x4670e6(0x20c)](_0x288cf1=>({'index':_0x288cf1,'matchedPrefix':findEqualityPrefix(_0x288cf1[_0x4670e6(0x1e1)],_0x4fb73f[_0x4670e6(0x1e1)])}))[_0x4670e6(0x204)](_0x51770e=>_0x51770e[_0x4670e6(0x1ec)][_0x4670e6(0x1e6)]>0x0),_0x5a0f3d=_0x3cb2eb[_0x4670e6(0x201)]((_0x2c2a3e,_0x4e13d2)=>!_0x2c2a3e||_0x4e13d2['matchedPrefix']['length']>_0x2c2a3e[_0x4670e6(0x1ec)][_0x4670e6(0x1e6)]?_0x4e13d2:_0x2c2a3e,_0x3cb2eb[0x0]);if(_0x5a0f3d)return{'table':_0x4fb73f[_0x4670e6(0x209)],'alias':_0x4fb73f[_0x4670e6(0x203)],'columns':_0x4fb73f[_0x4670e6(0x1e1)],'status':'covered','matchedIndex':{..._0x5a0f3d[_0x4670e6(0x1e4)],'matchedPrefix':_0x5a0f3d[_0x4670e6(0x1ec)]}};const _0x383e66=_0x275ea4?.['indexes'][_0x4670e6(0x204)](_0x5d908c=>_0x5d908c[_0x4670e6(0x1e1)][_0x4670e6(0x20e)](_0x24110c=>_0x4fb73f[_0x4670e6(0x1e1)][_0x4670e6(0x20e)](_0x323d07=>columnNamesMatch(_0x24110c,_0x323d07))))??[];if(_0x383e66[_0x4670e6(0x1e6)]>0x0)return _0x2e1339[_0x4670e6(0x1de)]({'code':'JOIN_INDEX_NOT_USABLE','table':_0x4fb73f[_0x4670e6(0x209)],'alias':_0x4fb73f[_0x4670e6(0x203)],'columns':_0x4fb73f['columns'],'reason':'Relevant\x20columns\x20do\x20not\x20form\x20a\x20complete\x20leftmost\x20index\x20prefix.'}),{'table':_0x4fb73f['table'],'alias':_0x4fb73f[_0x4670e6(0x203)],'columns':_0x4fb73f[_0x4670e6(0x1e1)],'status':_0x4670e6(0x1ea),'candidateIndexes':_0x383e66};if(_0x275ea4&&_0x275ea4[_0x4670e6(0x1cf)]!==![]&&_0x275ea4[_0x4670e6(0x1d5)]['length']>0x0&&_0x4fb73f[_0x4670e6(0x1e1)][_0x4670e6(0x1e6)]>0x0)return _0x2e1339[_0x4670e6(0x1de)]({'code':_0x4670e6(0x200),'table':_0x4fb73f['table'],'alias':_0x4fb73f[_0x4670e6(0x203)],'columns':_0x4fb73f[_0x4670e6(0x1e1)],'reason':_0x4670e6(0x1cd)}),{'table':_0x4fb73f[_0x4670e6(0x209)],'alias':_0x4fb73f[_0x4670e6(0x203)],'columns':_0x4fb73f[_0x4670e6(0x1e1)],'status':'warning'};return _0x2e1339[_0x4670e6(0x1de)]({'code':'INDEX_METADATA_UNAVAILABLE','table':_0x4fb73f['table'],'alias':_0x4fb73f['alias'],'columns':_0x4fb73f['columns'],'reason':_0x275ea4?_0x4670e6(0x214):_0x4670e6(0x1fb)}),{'table':_0x4fb73f[_0x4670e6(0x209)],'alias':_0x4fb73f[_0x4670e6(0x203)],'columns':_0x4fb73f[_0x4670e6(0x1e1)],'status':_0x4670e6(0x1f7)};});return{'checked':_0x19cd70[_0x80d1dd(0x1e6)]>0x0,'joins':_0x19cd70,'warnings':_0x2e1339};}function extractJoinFacts(_0x3c3424){const _0x1be5f5=a230_0x5964,_0x9d75f=maskNestedQueries(stripSqlNoise(_0x3c3424)),_0x4c78a1=maskQuotedIdentifiers(_0x9d75f),_0x389f33=[],_0x4f2312=new Set(),_0x3a6b07=/\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 _0x3a19fb of _0x9d75f['matchAll'](_0x3a6b07)){const _0x392edd=_0x3a19fb[_0x1be5f5(0x1e4)]??0x0,_0x388b28=_0x3a19fb[0x0][_0x1be5f5(0x1d4)](/\bJOIN\b/i),_0x52a195=_0x392edd+Math[_0x1be5f5(0x20d)](0x0,_0x388b28);if(!/^JOIN\b/i['test'](_0x4c78a1[_0x1be5f5(0x210)](_0x52a195)))continue;_0x4f2312[_0x1be5f5(0x1d9)](_0x52a195);const _0x1dcb0c=normalizeIdentifier(_0x3a19fb[0x1]||'INNER'),_0x48fbb6=normalizeIdentifier(_0x3a19fb[0x2]??''),_0x4aa0e0=normalizeIdentifier(_0x3a19fb[0x3]||_0x48fbb6[_0x1be5f5(0x20f)]('.')['at'](-0x1)||_0x48fbb6),_0x5ba125=[],_0x4ac8c5=_0x48fbb6===_0x1be5f5(0x206);let _0x95f89a=_0x1dcb0c===_0x1be5f5(0x1e9)||_0x1dcb0c===_0x1be5f5(0x1fd)||_0x4ac8c5,_0x24eff9=_0x95f89a?_0x4ac8c5?'Derived-table\x20JOIN\x20targets\x20are\x20not\x20supported.':_0x1dcb0c[_0x1be5f5(0x1ef)]()+_0x1be5f5(0x1e0):undefined;const _0x3f451c=stripOuterParentheses(_0x3a19fb[0x4]??''),_0x31e055=_0x3f451c[_0x1be5f5(0x213)](MYBATIS_DYNAMIC_START_MARKER)||_0x3f451c[_0x1be5f5(0x213)](MYBATIS_DYNAMIC_END_MARKER),_0x4e2c9a=_0x3f451c[_0x1be5f5(0x213)](MYBATIS_INCLUDE_MARKER);_0x31e055&&(_0x95f89a=!![],_0x24eff9??=_0x1be5f5(0x1da));_0x4e2c9a&&(_0x95f89a=!![],_0x24eff9??='MyBatis\x20<include>\x20JOIN\x20fragments\x20cannot\x20be\x20expanded\x20statically.');const _0x3b64a0=_0x3f451c[_0x1be5f5(0x1d2)](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x1be5f5(0x1d2)](MYBATIS_DYNAMIC_END_MARKER,'\x20')['replaceAll'](MYBATIS_INCLUDE_MARKER,'\x20');hasTopLevelKeyword(_0x3b64a0,'OR')&&(_0x95f89a=!![],_0x24eff9??=_0x1be5f5(0x1ff));for(const _0x1763a5 of splitTopLevelAnd(_0x3b64a0)){const _0xd51e5e=stripOuterParentheses(_0x1763a5);if(hasTopLevelKeyword(_0xd51e5e,'OR')){_0x95f89a=!![],_0x24eff9??='OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.';continue;}const _0x4c63a6=splitEquality(_0xd51e5e);if(!_0x4c63a6){containsColumnReference(_0x1763a5,_0x4aa0e0)&&(_0x95f89a=!![]);continue;}const _0x15a5f6=parseDirectColumnReference(_0x4c63a6[0x0],_0x4aa0e0),_0x4d707b=parseDirectColumnReference(_0x4c63a6[0x1],_0x4aa0e0),_0x2e18a2=containsColumnReference(_0x4c63a6[0x0],_0x4aa0e0),_0x585700=containsColumnReference(_0x4c63a6[0x1],_0x4aa0e0),_0x39c29c=_0x15a5f6&&!_0x585700?_0x15a5f6:_0x4d707b&&!_0x2e18a2?_0x4d707b:null;if(_0x39c29c&&!_0x5ba125[_0x1be5f5(0x213)](_0x39c29c))_0x5ba125[_0x1be5f5(0x1de)](_0x39c29c);else!_0x39c29c&&containsColumnReference(_0x1763a5,_0x4aa0e0)&&(_0x95f89a=!![]);}_0x389f33[_0x1be5f5(0x1de)]({'table':_0x48fbb6,'alias':_0x4aa0e0,'columns':_0x5ba125,'unsupportedPredicate':_0x95f89a,'unsupportedReason':_0x24eff9,'containsUnresolvedInclude':_0x4e2c9a,'position':_0x52a195});}for(const _0x47ce12 of _0x4c78a1['matchAll'](/\bJOIN\b/gi)){const _0x41d88d=_0x47ce12[_0x1be5f5(0x1e4)]??0x0;if(_0x4f2312[_0x1be5f5(0x20a)](_0x41d88d))continue;const _0x358ffa=/^\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?/['exec'](_0x9d75f[_0x1be5f5(0x210)](_0x41d88d+_0x47ce12[0x0][_0x1be5f5(0x1e6)])),_0x35ca2c=normalizeIdentifier(_0x358ffa?.[0x1]||'unknown'),_0xc5b874=normalizeIdentifier(_0x358ffa?.[0x2]||''),_0x392155=isSqlClauseKeyword(_0xc5b874)?_0x35ca2c[_0x1be5f5(0x20f)]('.')['at'](-0x1)||_0x35ca2c:_0xc5b874||_0x35ca2c[_0x1be5f5(0x20f)]('.')['at'](-0x1)||_0x35ca2c;_0x389f33[_0x1be5f5(0x1de)]({'table':_0x35ca2c,'alias':_0x392155,'columns':[],'unsupportedPredicate':!![],'unsupportedReason':_0x1be5f5(0x1f3),'position':_0x41d88d});}const _0x769d10=_0x4c78a1[_0x1be5f5(0x1d0)](MYBATIS_INCLUDE_MARKER);return _0x769d10>=0x0&&!_0x389f33[_0x1be5f5(0x20e)](_0x3c1f9f=>_0x3c1f9f[_0x1be5f5(0x1dd)])&&_0x389f33[_0x1be5f5(0x1de)]({'table':_0x1be5f5(0x1f8),'alias':'unknown','columns':[],'unsupportedPredicate':!![],'unsupportedReason':_0x1be5f5(0x1f1),'containsUnresolvedInclude':!![],'position':_0x769d10}),_0x389f33[_0x1be5f5(0x1f5)]((_0x4dba05,_0x18a8b8)=>_0x4dba05['position']-_0x18a8b8[_0x1be5f5(0x20b)]);}function stripSqlNoise(_0xb885b2){const _0x352a7a=a230_0x5964,_0x917b04=Array[_0x352a7a(0x211)](_0xb885b2),_0xe840fc=(_0x210c63,_0x789c0f)=>{for(let _0x2b4c2c=_0x210c63;_0x2b4c2c<_0x789c0f;_0x2b4c2c+=0x1){_0x917b04[_0x2b4c2c]!=='\x0a'&&_0x917b04[_0x2b4c2c]!=='\x0d'&&(_0x917b04[_0x2b4c2c]='\x20');}};for(let _0xff7564=0x0;_0xff7564<_0x917b04[_0x352a7a(0x1e6)];_0xff7564+=0x1){const _0x5511f9=_0x917b04[_0xff7564],_0x59ced0=_0x917b04[_0xff7564+0x1];if(_0x5511f9==='\x27'||_0x5511f9==='\x22'||_0x5511f9==='`'){const _0x136c94=_0x5511f9,_0x6fc26a=_0xff7564;_0xff7564+=0x1;while(_0xff7564<_0x917b04['length']){if(_0x917b04[_0xff7564]==='\x5c'&&_0xff7564+0x1<_0x917b04[_0x352a7a(0x1e6)]){_0xff7564+=0x2;continue;}if(_0x917b04[_0xff7564]!==_0x136c94){_0xff7564+=0x1;continue;}if(_0x917b04[_0xff7564+0x1]===_0x136c94){_0xff7564+=0x2;continue;}break;}if(_0x136c94==='\x27')_0xe840fc(_0x6fc26a,Math['min'](_0xff7564+0x1,_0x917b04[_0x352a7a(0x1e6)]));continue;}if(_0x5511f9==='-'&&_0x59ced0==='-'){const _0x4c1220=_0xff7564;while(_0xff7564<_0x917b04[_0x352a7a(0x1e6)]&&_0x917b04[_0xff7564]!=='\x0a')_0xff7564+=0x1;_0xe840fc(_0x4c1220,_0xff7564);continue;}if(_0x5511f9==='/'&&_0x59ced0==='*'){const _0x1d9db5=_0xff7564;_0xff7564+=0x2;while(_0xff7564<_0x917b04['length']&&!(_0x917b04[_0xff7564]==='*'&&_0x917b04[_0xff7564+0x1]==='/')){_0xff7564+=0x1;}_0xff7564=Math[_0x352a7a(0x1f6)](_0xff7564+0x1,_0x917b04[_0x352a7a(0x1e6)]-0x1),_0xe840fc(_0x1d9db5,_0xff7564+0x1);continue;}if(_0x5511f9==='#'&&_0x59ced0!=='{'){const _0x227e34=_0xff7564;while(_0xff7564<_0x917b04[_0x352a7a(0x1e6)]&&_0x917b04[_0xff7564]!=='\x0a')_0xff7564+=0x1;_0xe840fc(_0x227e34,_0xff7564);continue;}if((_0x5511f9==='#'||_0x5511f9==='$')&&_0x59ced0==='{'){const _0x108647=_0xff7564;_0xff7564+=0x2;while(_0xff7564<_0x917b04['length']&&_0x917b04[_0xff7564]!=='}')_0xff7564+=0x1;_0xe840fc(_0x108647,Math[_0x352a7a(0x1f6)](_0xff7564+0x1,_0x917b04[_0x352a7a(0x1e6)]));}}return _0x917b04[_0x352a7a(0x1e8)]('');}function maskQuotedIdentifiers(_0x335d40){const _0x1f16d0=a230_0x5964,_0x246bee=Array[_0x1f16d0(0x211)](_0x335d40);for(let _0x1d691e=0x0;_0x1d691e<_0x246bee[_0x1f16d0(0x1e6)];_0x1d691e+=0x1){const _0x5a7990=_0x246bee[_0x1d691e];if(_0x5a7990!=='\x22'&&_0x5a7990!=='`')continue;_0x1d691e+=0x1;while(_0x1d691e<_0x246bee[_0x1f16d0(0x1e6)]){if(_0x246bee[_0x1d691e]===_0x5a7990){if(_0x246bee[_0x1d691e+0x1]===_0x5a7990){_0x246bee[_0x1d691e]='\x20',_0x246bee[_0x1d691e+0x1]='\x20',_0x1d691e+=0x2;continue;}break;}_0x246bee[_0x1d691e]='\x20',_0x1d691e+=0x1;}}return _0x246bee['join']('');}function maskNestedQueries(_0x5640e7){const _0x10167a=a230_0x5964,_0x25135b=Array['from'](_0x5640e7);for(let _0x17ba8a=0x0;_0x17ba8a<_0x25135b[_0x10167a(0x1e6)];_0x17ba8a+=0x1){if(_0x25135b[_0x17ba8a]!=='(')continue;const _0x1e0daa=_0x5640e7[_0x10167a(0x210)](_0x17ba8a+0x1);if(!/^\s*(?:SELECT|WITH)\b/i['test'](_0x1e0daa))continue;let _0xdc0731=0x1,_0x4a85d=_0x17ba8a+0x1;for(;_0x4a85d<_0x25135b[_0x10167a(0x1e6)]&&_0xdc0731>0x0;_0x4a85d+=0x1){if(_0x25135b[_0x4a85d]==='(')_0xdc0731+=0x1;if(_0x25135b[_0x4a85d]===')')_0xdc0731-=0x1;}if(_0xdc0731!==0x0)continue;for(let _0x2ea757=_0x17ba8a;_0x2ea757<_0x4a85d;_0x2ea757+=0x1){_0x25135b[_0x2ea757]='\x20';}const _0x278b59=_0x10167a(0x206);for(let _0x6218cb=0x0;_0x6218cb<_0x278b59[_0x10167a(0x1e6)]&&_0x17ba8a+_0x6218cb<_0x4a85d;_0x6218cb+=0x1){_0x25135b[_0x17ba8a+_0x6218cb]=_0x278b59[_0x6218cb];}_0x17ba8a=_0x4a85d-0x1;}return _0x25135b[_0x10167a(0x1e8)]('');}function splitTopLevelAnd(_0x412dc8){const _0x26e158=a230_0x5964,_0x148f6e=[];let _0x4e66d6=0x0,_0x41a5d0=0x0;for(let _0x20cf88=0x0;_0x20cf88<_0x412dc8[_0x26e158(0x1e6)];_0x20cf88+=0x1){const _0x25a49d=_0x412dc8[_0x20cf88];if(_0x25a49d==='(')_0x4e66d6+=0x1;if(_0x25a49d===')')_0x4e66d6=Math[_0x26e158(0x20d)](0x0,_0x4e66d6-0x1);_0x4e66d6===0x0&&_0x412dc8[_0x26e158(0x210)](_0x20cf88)[_0x26e158(0x1d7)](/^AND\b/i)&&(_0x20cf88===0x0||/\s/['test'](_0x412dc8[_0x20cf88-0x1]??''))&&(_0x148f6e[_0x26e158(0x1de)](_0x412dc8[_0x26e158(0x210)](_0x41a5d0,_0x20cf88)[_0x26e158(0x1ed)]()),_0x20cf88+=0x2,_0x41a5d0=_0x20cf88+0x1);}const _0x2a1d98=_0x412dc8[_0x26e158(0x210)](_0x41a5d0)[_0x26e158(0x1ed)]();if(_0x2a1d98)_0x148f6e[_0x26e158(0x1de)](_0x2a1d98);return _0x148f6e;}function hasTopLevelKeyword(_0x2a0e5a,_0x461da6){const _0x2cef37=a230_0x5964;let _0x5e5126=0x0;for(let _0x2fb955=0x0;_0x2fb955<_0x2a0e5a[_0x2cef37(0x1e6)];_0x2fb955+=0x1){const _0x92e132=_0x2a0e5a[_0x2fb955];if(_0x92e132==='(')_0x5e5126+=0x1;if(_0x92e132===')')_0x5e5126=Math[_0x2cef37(0x20d)](0x0,_0x5e5126-0x1);if(_0x5e5126!==0x0)continue;const _0x52c0d3=_0x2a0e5a[_0x2cef37(0x210)](_0x2fb955,_0x2fb955+_0x461da6[_0x2cef37(0x1e6)]),_0x376ac1=_0x2a0e5a[_0x2fb955-0x1]??'\x20',_0x227ac6=_0x2a0e5a[_0x2fb955+_0x461da6[_0x2cef37(0x1e6)]]??'\x20';if(_0x52c0d3['toUpperCase']()===_0x461da6[_0x2cef37(0x1ef)]()&&!/[\w$]/['test'](_0x376ac1)&&!/[\w$]/['test'](_0x227ac6))return!![];}return![];}function a230_0x5964(_0x401d6d,_0x51a0d1){_0x401d6d=_0x401d6d-0x1cb;const _0x2581da=a230_0x2581();let _0x596420=_0x2581da[_0x401d6d];return _0x596420;}function splitEquality(_0x1f4dd1){const _0x15f33d=a230_0x5964,_0x70ccfb=stripOuterParentheses(_0x1f4dd1);let _0x447499=0x0,_0x350c55;for(let _0x13c8a0=0x0;_0x13c8a0<_0x70ccfb[_0x15f33d(0x1e6)];_0x13c8a0+=0x1){const _0x3b348c=_0x70ccfb[_0x13c8a0];if(_0x3b348c==='(')_0x447499+=0x1;if(_0x3b348c===')')_0x447499=Math[_0x15f33d(0x20d)](0x0,_0x447499-0x1);const _0x4c0c9b=_0x70ccfb[_0x13c8a0-0x1]??'',_0xe433e6=_0x70ccfb[_0x13c8a0+0x1]??'';if(_0x3b348c==='='&&_0x447499===0x0&&!/[!<>=:]/[_0x15f33d(0x1d1)](_0x4c0c9b)&&_0xe433e6!=='='){if(_0x350c55!==undefined)return null;_0x350c55=_0x13c8a0;}}return _0x350c55===undefined?null:[_0x70ccfb['slice'](0x0,_0x350c55)[_0x15f33d(0x1ed)](),_0x70ccfb[_0x15f33d(0x210)](_0x350c55+0x1)[_0x15f33d(0x1ed)]()];}function parseDirectColumnReference(_0x51067b,_0x55f767){const _0x22a1f7=a230_0x5964,_0x1a22fb=/^([`"]?[\w$]+[`"]?)\s*\.\s*([`"]?[\w$]+[`"]?)$/[_0x22a1f7(0x1d3)](stripOuterParentheses(_0x51067b));if(!_0x1a22fb)return null;if(normalizeIdentifier(_0x1a22fb[0x1]??'')!==normalizeIdentifier(_0x55f767))return null;return normalizeIdentifier(_0x1a22fb[0x2]??'');}function containsColumnReference(_0x467761,_0x24505c){const _0x4a0e8d=a230_0x5964,_0x1d0cdf=_0x467761[_0x4a0e8d(0x1db)](/[`"]/g,''),_0x5a4a3f=_0x24505c[_0x4a0e8d(0x1db)](/[.*+?^${}()|[\]\\]/g,_0x4a0e8d(0x207));return new RegExp('(?:^|[^\x5cw$])'+_0x5a4a3f+_0x4a0e8d(0x1f2),'i')[_0x4a0e8d(0x1d1)](_0x1d0cdf);}function findEqualityPrefix(_0x361560,_0x278219){const _0x51d941=a230_0x5964,_0x2e5b52=new Set(_0x278219[_0x51d941(0x20c)](normalizeIdentifier)),_0x2bca81=[];for(const _0x31f040 of _0x361560){if(!_0x2e5b52[_0x51d941(0x20a)](normalizeIdentifier(_0x31f040)))break;_0x2bca81['push'](_0x31f040);}return _0x2bca81;}function resolveTableMetadata(_0xe9039d,_0x37eeb1){const _0x4e89d3=a230_0x5964,_0x1bf42b=normalizeIdentifier(_0x37eeb1),_0x49b312=_0xe9039d[_0x4e89d3(0x204)](_0x56955a=>normalizeIdentifier(_0x56955a[_0x4e89d3(0x1d6)])===_0x1bf42b);if(_0x49b312[_0x4e89d3(0x1e6)]===0x1)return _0x49b312[0x0];const _0x5a23de=_0x1bf42b['includes']('.'),_0x5e8271=_0x1bf42b[_0x4e89d3(0x20f)]('.')['at'](-0x1),_0x3d264b=_0xe9039d[_0x4e89d3(0x204)](_0x3ca52f=>{const _0x2ec9de=_0x4e89d3,_0x219e8f=normalizeIdentifier(_0x3ca52f[_0x2ec9de(0x1d6)]);if(_0x5a23de&&_0x219e8f[_0x2ec9de(0x213)]('.'))return![];return _0x219e8f[_0x2ec9de(0x20f)]('.')['at'](-0x1)===_0x5e8271;});return _0x3d264b['length']===0x1?_0x3d264b[0x0]:undefined;}function a230_0x2581(){const _0x3ad2de=['Not\x20every\x20JOIN\x20target\x20predicate\x20could\x20be\x20audited\x20safely.','table','has','position','map','max','some','split','slice','from','678258EhyhRB','includes','The\x20dataset\x20returned\x20no\x20distinguishable\x20index\x20metadata.','sql','startsWith','cross','No\x20reported\x20index\x20contains\x20the\x20JOIN\x20access\x20columns.','4WeVwsy','metadataAvailable','indexOf','test','replaceAll','exec','search','indexes','tableName','match','unsupportedPredicate','add','MyBatis\x20dynamic\x20JOIN\x20predicates\x20cannot\x20be\x20audited\x20deterministically.','replace','6ozUefs','containsUnresolvedInclude','push','1356903IKGNfv','\x20JOIN\x20direction\x20is\x20not\x20supported\x20by\x20static\x20index\x20auditing.','columns','left','JOIN_PREDICATE_UNSUPPORTED','index','unsupportedReason','length','7246526uyeCLp','join','right','warning','where','matchedPrefix','trim','natural','toUpperCase','toLowerCase','MyBatis\x20<include>\x20fragments\x20cannot\x20be\x20expanded\x20for\x20JOIN\x20auditing.','\x5cs*\x5c.\x5cs*[\x5cw$]+','Only\x20explicit\x20table\x20JOIN\x20clauses\x20with\x20an\x20ON\x20predicate\x20are\x20supported.','error','sort','min','unavailable','unknown','40sinmuk','10847610ijlrgm','No\x20dataset\x20metadata\x20matched\x20the\x20JOIN\x20table.','717555iNjuvP','full','587757BNszxo','OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.','JOIN_INDEX_MISSING','reduce','endsWith','alias','filter','6430055URAlce','__sq__','\x5c$&'];a230_0x2581=function(){return _0x3ad2de;};return a230_0x2581();}function columnNamesMatch(_0x3addf9,_0x3fbb09){return normalizeIdentifier(_0x3addf9)===normalizeIdentifier(_0x3fbb09);}function normalizeIdentifier(_0xe844ad){const _0xad2fc9=a230_0x5964;return _0xe844ad[_0xad2fc9(0x1db)](/[`"]/g,'')[_0xad2fc9(0x1ed)]()[_0xad2fc9(0x1f0)]();}function isSqlClauseKeyword(_0x45dcb8){const _0x5ae3b8=a230_0x5964;return new Set(['on','using',_0x5ae3b8(0x1eb),_0x5ae3b8(0x1e8),'inner',_0x5ae3b8(0x1e2),_0x5ae3b8(0x1e9),_0x5ae3b8(0x1fd),_0x5ae3b8(0x1cc),_0x5ae3b8(0x1ee)])[_0x5ae3b8(0x20a)](_0x45dcb8);}function stripOuterParentheses(_0x4e649a){const _0x5a32b1=a230_0x5964;let _0x487cb5=_0x4e649a[_0x5a32b1(0x1ed)]();while(_0x487cb5[_0x5a32b1(0x1cb)]('(')&&_0x487cb5[_0x5a32b1(0x202)](')')){let _0xa950a=0x0,_0x532d1c=!![];for(let _0x18030e=0x0;_0x18030e<_0x487cb5[_0x5a32b1(0x1e6)];_0x18030e+=0x1){if(_0x487cb5[_0x18030e]==='(')_0xa950a+=0x1;if(_0x487cb5[_0x18030e]===')')_0xa950a-=0x1;if(_0xa950a===0x0&&_0x18030e<_0x487cb5[_0x5a32b1(0x1e6)]-0x1){_0x532d1c=![];break;}}if(!_0x532d1c||_0xa950a!==0x0)break;_0x487cb5=_0x487cb5['slice'](0x1,-0x1)[_0x5a32b1(0x1ed)]();}return _0x487cb5;}
@@ -1 +1 @@
1
- function a221_0xfd3a(_0xc63824,_0x4e05f7){_0xc63824=_0xc63824-0x194;const _0x5caf5e=a221_0x5caf();let _0xfd3a0e=_0x5caf5e[_0xc63824];return _0xfd3a0e;}const a221_0x5daba0=a221_0xfd3a;(function(_0x54afeb,_0x129275){const _0x3384b8=a221_0xfd3a,_0x19bcb9=_0x54afeb();while(!![]){try{const _0x2d8f2d=parseInt(_0x3384b8(0x194))/0x1*(parseInt(_0x3384b8(0x19b))/0x2)+-parseInt(_0x3384b8(0x1a1))/0x3*(-parseInt(_0x3384b8(0x198))/0x4)+-parseInt(_0x3384b8(0x19d))/0x5*(parseInt(_0x3384b8(0x19a))/0x6)+-parseInt(_0x3384b8(0x1a0))/0x7+parseInt(_0x3384b8(0x19f))/0x8+-parseInt(_0x3384b8(0x197))/0x9+-parseInt(_0x3384b8(0x19e))/0xa*(-parseInt(_0x3384b8(0x199))/0xb);if(_0x2d8f2d===_0x129275)break;else _0x19bcb9['push'](_0x19bcb9['shift']());}catch(_0x493438){_0x19bcb9['push'](_0x19bcb9['shift']());}}}(a221_0x5caf,0x6f2ff));import{resolve}from'node:path';function a221_0x5caf(){const _0xe825d6=['sql-trash','5243841gGtTHc','75580dhEwix','13439217CwKLip','12594hEvPTC','18sPkCbM','sql.lock.json','1205xQIaHT','10mYGPyG','2092584fybmTS','349391LHCCRn','3AvZjZR','10181vzVVSN','.rabetbase'];a221_0x5caf=function(){return _0xe825d6;};return a221_0x5caf();}import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a221_0x5daba0(0x195),LOCK_FILE_NAME=a221_0x5daba0(0x19c),TRASH_DIR_NAME=a221_0x5daba0(0x196);export function loadSqlProjectConfig(_0x214b53,_0x379631){const _0x4d7be7=resolve(_0x379631??findProjectRootDirectory()),_0x2b911c=DOT_DIR+'/sql',_0x33ea01=_0x2b911c+'/'+_0x214b53;return{'projectRoot':_0x4d7be7,'appCode':_0x214b53,'sqlWorkspaceRoot':_0x2b911c,'sqlRoot':_0x33ea01,'sqlRootDir':resolve(_0x4d7be7,DOT_DIR,'sql',_0x214b53),'lockFilePath':resolve(_0x4d7be7,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x4d7be7,DOT_DIR,TRASH_DIR_NAME)};}
1
+ const a231_0x16bf81=a231_0xc755;(function(_0x423b8f,_0x15152d){const _0x1c6527=a231_0xc755,_0x27b79f=_0x423b8f();while(!![]){try{const _0x45ff42=-parseInt(_0x1c6527(0x1b8))/0x1+parseInt(_0x1c6527(0x1bc))/0x2*(parseInt(_0x1c6527(0x1bd))/0x3)+parseInt(_0x1c6527(0x1c3))/0x4+parseInt(_0x1c6527(0x1ba))/0x5*(parseInt(_0x1c6527(0x1c0))/0x6)+-parseInt(_0x1c6527(0x1c5))/0x7+-parseInt(_0x1c6527(0x1bb))/0x8+parseInt(_0x1c6527(0x1b9))/0x9;if(_0x45ff42===_0x15152d)break;else _0x27b79f['push'](_0x27b79f['shift']());}catch(_0x50915e){_0x27b79f['push'](_0x27b79f['shift']());}}}(a231_0x2f64,0x8caab));function a231_0x2f64(){const _0x20bbfa=['sql-trash','18LlHjPr','/sql','sql','3608784oaHzOO','sql.lock.json','527632GhVfvh','880846FguRSM','4274865LWoDnz','333670ZZORLu','4227664MXkDSG','8HmdFIo','362601wGVtTA','.rabetbase'];a231_0x2f64=function(){return _0x20bbfa;};return a231_0x2f64();}import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a231_0x16bf81(0x1be),LOCK_FILE_NAME=a231_0x16bf81(0x1c4),TRASH_DIR_NAME=a231_0x16bf81(0x1bf);function a231_0xc755(_0x5eacd5,_0x7ab0da){_0x5eacd5=_0x5eacd5-0x1b8;const _0x2f64b8=a231_0x2f64();let _0xc7552c=_0x2f64b8[_0x5eacd5];return _0xc7552c;}export function loadSqlProjectConfig(_0x138f4a,_0x48cd43){const _0x37e1f8=a231_0x16bf81,_0x3d9e43=resolve(_0x48cd43??findProjectRootDirectory()),_0x32332e=DOT_DIR+_0x37e1f8(0x1c1),_0x6df027=_0x32332e+'/'+_0x138f4a;return{'projectRoot':_0x3d9e43,'appCode':_0x138f4a,'sqlWorkspaceRoot':_0x32332e,'sqlRoot':_0x6df027,'sqlRootDir':resolve(_0x3d9e43,DOT_DIR,_0x37e1f8(0x1c2),_0x138f4a),'lockFilePath':resolve(_0x3d9e43,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x3d9e43,DOT_DIR,TRASH_DIR_NAME)};}
@@ -1 +1 @@
1
- (function(_0x143983,_0x294ecf){const _0x3556f9=a222_0x5807,_0x564037=_0x143983();while(!![]){try{const _0x164701=-parseInt(_0x3556f9(0x139))/0x1*(parseInt(_0x3556f9(0x13a))/0x2)+-parseInt(_0x3556f9(0x12c))/0x3+parseInt(_0x3556f9(0x141))/0x4*(parseInt(_0x3556f9(0x12b))/0x5)+-parseInt(_0x3556f9(0x126))/0x6*(parseInt(_0x3556f9(0x12e))/0x7)+parseInt(_0x3556f9(0x13f))/0x8+-parseInt(_0x3556f9(0x128))/0x9+parseInt(_0x3556f9(0x129))/0xa;if(_0x164701===_0x294ecf)break;else _0x564037['push'](_0x564037['shift']());}catch(_0x304bb3){_0x564037['push'](_0x564037['shift']());}}}(a222_0x80ce,0x4b253));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';function a222_0x5807(_0x238d6c,_0x357f0c){_0x238d6c=_0x238d6c-0x125;const _0x80ce83=a222_0x80ce();let _0x5807ab=_0x80ce83[_0x238d6c];return _0x5807ab;}import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x1df0f5){const _0x448fa6=a222_0x5807;if(_0x1df0f5===_0x448fa6(0x13c))return'sql';if(_0x1df0f5===_0x448fa6(0x130))return _0x448fa6(0x135);return undefined;}async function scanSqlFilesRecursively(_0x95aca3,_0x3c3936){const _0x5175da=a222_0x5807,_0x2c8e03=[];try{const _0x573c95=await readdir(_0x95aca3,{'withFileTypes':!![]});for(const _0x182301 of _0x573c95){const _0x2ffa27=join(_0x95aca3,_0x182301['name']);if(_0x182301[_0x5175da(0x134)]()){_0x2c8e03[_0x5175da(0x136)](...await scanSqlFilesRecursively(_0x2ffa27,_0x3c3936));continue;}if(!_0x182301['isFile']())continue;const _0x493676=extname(_0x182301[_0x5175da(0x133)])['toLowerCase'](),_0x340b54=extensionToMode(_0x493676);if(!_0x340b54)continue;const _0x40331c=relative(_0x3c3936,_0x2ffa27)[_0x5175da(0x12d)](/\\/g,'/'),_0x5b4e51=_0x40331c[_0x5175da(0x13b)]('/')[_0x5175da(0x13e)](Boolean),_0x41009d=parseSqlPath(_0x5b4e51,_0x182301[_0x5175da(0x133)],_0x493676);if(!_0x41009d)continue;_0x2c8e03[_0x5175da(0x136)]({'sqlCode':_0x41009d[_0x5175da(0x12a)],'sqlName':_0x41009d['sqlName'],'dbDirectory':_0x5b4e51[0x0],'filePath':_0x2ffa27,'relativePath':_0x40331c,'lockKey':_0x41009d[_0x5175da(0x12a)],'mode':_0x340b54});}}catch(_0x260d36){if(_0x260d36['code']!==_0x5175da(0x13d))throw _0x260d36;}return _0x2c8e03;}export async function scanLocalSqlQueries(_0x3ea19f){const _0x53f7f6=a222_0x5807;return scanSqlFilesRecursively(_0x3ea19f[_0x53f7f6(0x140)],_0x3ea19f[_0x53f7f6(0x140)]);}export function resolveLocalSqlFilePath(_0x59cbaa,_0x4c19bb,_0x5dc3cf){const _0x2f0e6d=a222_0x5807,_0x2e1615=_0x5dc3cf?.[_0x2f0e6d(0x125)]||(_0x5dc3cf?.['sqlName']||_0x5dc3cf?.[_0x2f0e6d(0x138)]?buildSqlRelativePath(_0x4c19bb,_0x5dc3cf?.[_0x2f0e6d(0x12f)],_0x5dc3cf?.[_0x2f0e6d(0x138)],_0x5dc3cf?.['mode']||_0x2f0e6d(0x137),_0x5dc3cf?.['dbId']):buildDefaultSqlFileName(_0x4c19bb,_0x5dc3cf?.[_0x2f0e6d(0x132)]||_0x2f0e6d(0x137)));return join(_0x59cbaa[_0x2f0e6d(0x140)],_0x2e1615);}export async function directoryExists(_0x2ea868){const _0x10e605=a222_0x5807;try{const _0x2bf1ff=await stat(_0x2ea868);return _0x2bf1ff[_0x10e605(0x134)]();}catch{return![];}}function parseSqlPath(_0x37efb3,_0x5a8aea,_0x21887a){const _0x457c21=a222_0x5807,_0xdf55db=_0x5a8aea['slice'](0x0,-_0x21887a['length']);if(_0x37efb3[_0x457c21(0x142)]<0x2)return null;const _0x4aa10e=_0xdf55db[_0x457c21(0x131)]('_');if(_0x4aa10e<=0x0||_0x4aa10e>=_0xdf55db[_0x457c21(0x142)]-0x1)return null;const _0x15965d=_0xdf55db[_0x457c21(0x127)](0x0,_0x4aa10e);if(!isLikelySqlCode(_0x15965d))return null;return{'sqlCode':_0x15965d,'sqlName':_0xdf55db['slice'](_0x4aa10e+0x1)};}function isLikelySqlCode(_0x37bc88){return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/['test'](_0x37bc88);}function a222_0x80ce(){const _0xc0be24=['ENOENT','filter','3448584BMpBlm','sqlRootDir','2032PgKDZy','length','path','11538yXQAYa','slice','783576RAFPQO','4557540wdYRVR','sqlCode','4955ZAjpRZ','1016517FBKCjm','replace','854gIQdfY','sqlName','.xml','indexOf','mode','name','isDirectory','mybatisXml','push','sql','dbName','1zDqAhT','843902XNgBeU','split','.sql'];a222_0x80ce=function(){return _0xc0be24;};return a222_0x80ce();}
1
+ (function(_0x5752e8,_0x17b49c){const _0x45164b=a232_0x3647,_0x2164fb=_0x5752e8();while(!![]){try{const _0x19fd16=-parseInt(_0x45164b(0x149))/0x1+-parseInt(_0x45164b(0x144))/0x2*(-parseInt(_0x45164b(0x146))/0x3)+parseInt(_0x45164b(0x13d))/0x4+parseInt(_0x45164b(0x14b))/0x5*(parseInt(_0x45164b(0x141))/0x6)+-parseInt(_0x45164b(0x148))/0x7+-parseInt(_0x45164b(0x145))/0x8+-parseInt(_0x45164b(0x13e))/0x9;if(_0x19fd16===_0x17b49c)break;else _0x2164fb['push'](_0x2164fb['shift']());}catch(_0x22d899){_0x2164fb['push'](_0x2164fb['shift']());}}}(a232_0x2e21,0x3788d));function a232_0x2e21(){const _0x265d78=['toLowerCase','330brAtxR','indexOf','name','38cQLVql','526136yIPwpy','56937GPBKcV','sql','2135140EaoywP','289726QfvjrG','push','28105ImcOMd','isFile','length','dbName','isDirectory','filter','path','sqlCode','sqlName','dbId','test','replace','.sql','mybatisXml','slice','sqlRootDir','.xml','1667272sNPlHo','1787328FVDmJF','mode'];a232_0x2e21=function(){return _0x265d78;};return a232_0x2e21();}import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function a232_0x3647(_0x47050b,_0x321ad0){_0x47050b=_0x47050b-0x138;const _0x2e21f6=a232_0x2e21();let _0x36470d=_0x2e21f6[_0x47050b];return _0x36470d;}function extensionToMode(_0x11004a){const _0x6d486=a232_0x3647;if(_0x11004a===_0x6d486(0x138))return _0x6d486(0x147);if(_0x11004a===_0x6d486(0x13c))return _0x6d486(0x139);return undefined;}async function scanSqlFilesRecursively(_0xd11a4,_0x5e7767){const _0x5cefe7=a232_0x3647,_0x59980a=[];try{const _0x33378b=await readdir(_0xd11a4,{'withFileTypes':!![]});for(const _0x317d30 of _0x33378b){const _0x40d1e6=join(_0xd11a4,_0x317d30[_0x5cefe7(0x143)]);if(_0x317d30[_0x5cefe7(0x14f)]()){_0x59980a['push'](...await scanSqlFilesRecursively(_0x40d1e6,_0x5e7767));continue;}if(!_0x317d30[_0x5cefe7(0x14c)]())continue;const _0x4f6b9d=extname(_0x317d30[_0x5cefe7(0x143)])[_0x5cefe7(0x140)](),_0xc4e6e4=extensionToMode(_0x4f6b9d);if(!_0xc4e6e4)continue;const _0x12e6c9=relative(_0x5e7767,_0x40d1e6)[_0x5cefe7(0x156)](/\\/g,'/'),_0x3b6450=_0x12e6c9['split']('/')[_0x5cefe7(0x150)](Boolean),_0x184236=parseSqlPath(_0x3b6450,_0x317d30['name'],_0x4f6b9d);if(!_0x184236)continue;_0x59980a[_0x5cefe7(0x14a)]({'sqlCode':_0x184236[_0x5cefe7(0x152)],'sqlName':_0x184236[_0x5cefe7(0x153)],'dbDirectory':_0x3b6450[0x0],'filePath':_0x40d1e6,'relativePath':_0x12e6c9,'lockKey':_0x184236[_0x5cefe7(0x152)],'mode':_0xc4e6e4});}}catch(_0x3721e6){if(_0x3721e6['code']!=='ENOENT')throw _0x3721e6;}return _0x59980a;}export async function scanLocalSqlQueries(_0x2c27d9){const _0x558fd9=a232_0x3647;return scanSqlFilesRecursively(_0x2c27d9[_0x558fd9(0x13b)],_0x2c27d9['sqlRootDir']);}export function resolveLocalSqlFilePath(_0x4ae488,_0xdab139,_0x3b398d){const _0x4177bb=a232_0x3647,_0x1c0ac5=_0x3b398d?.[_0x4177bb(0x151)]||(_0x3b398d?.[_0x4177bb(0x153)]||_0x3b398d?.[_0x4177bb(0x14e)]?buildSqlRelativePath(_0xdab139,_0x3b398d?.[_0x4177bb(0x153)],_0x3b398d?.[_0x4177bb(0x14e)],_0x3b398d?.[_0x4177bb(0x13f)]||_0x4177bb(0x147),_0x3b398d?.[_0x4177bb(0x154)]):buildDefaultSqlFileName(_0xdab139,_0x3b398d?.[_0x4177bb(0x13f)]||_0x4177bb(0x147)));return join(_0x4ae488['sqlRootDir'],_0x1c0ac5);}export async function directoryExists(_0xb19cdc){const _0x5bd427=a232_0x3647;try{const _0x47e98c=await stat(_0xb19cdc);return _0x47e98c[_0x5bd427(0x14f)]();}catch{return![];}}function parseSqlPath(_0x16526f,_0x4da7a5,_0x15aa5e){const _0x4e2070=a232_0x3647,_0x40279b=_0x4da7a5[_0x4e2070(0x13a)](0x0,-_0x15aa5e['length']);if(_0x16526f[_0x4e2070(0x14d)]<0x2)return null;const _0x3eb4aa=_0x40279b[_0x4e2070(0x142)]('_');if(_0x3eb4aa<=0x0||_0x3eb4aa>=_0x40279b[_0x4e2070(0x14d)]-0x1)return null;const _0x424be5=_0x40279b[_0x4e2070(0x13a)](0x0,_0x3eb4aa);if(!isLikelySqlCode(_0x424be5))return null;return{'sqlCode':_0x424be5,'sqlName':_0x40279b['slice'](_0x3eb4aa+0x1)};}function isLikelySqlCode(_0x1bb22a){const _0x1845e1=a232_0x3647;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x1845e1(0x155)](_0x1bb22a);}
@@ -1 +1 @@
1
- (function(_0x2d9a22,_0x199c80){const _0x144016=a223_0x18bd,_0xc74189=_0x2d9a22();while(!![]){try{const _0x11aad9=parseInt(_0x144016(0xfb))/0x1*(-parseInt(_0x144016(0xf6))/0x2)+-parseInt(_0x144016(0xfa))/0x3*(-parseInt(_0x144016(0x103))/0x4)+-parseInt(_0x144016(0x100))/0x5+-parseInt(_0x144016(0xf7))/0x6+-parseInt(_0x144016(0xf4))/0x7*(parseInt(_0x144016(0xfd))/0x8)+-parseInt(_0x144016(0xf9))/0x9+parseInt(_0x144016(0xfc))/0xa;if(_0x11aad9===_0x199c80)break;else _0xc74189['push'](_0xc74189['shift']());}catch(_0x16a81d){_0xc74189['push'](_0xc74189['shift']());}}}(a223_0x4cb9,0x34913));import{readFile}from'node:fs/promises';import a223_0x4b618d from'node:crypto';export function computeSqlContentHash(_0x30a097){const _0x4ba2d6=a223_0x18bd;return a223_0x4b618d[_0x4ba2d6(0xf8)](_0x4ba2d6(0x101))[_0x4ba2d6(0xfe)](_0x30a097)[_0x4ba2d6(0xf5)](_0x4ba2d6(0x102));}function a223_0x18bd(_0x204904,_0x55e13b){_0x204904=_0x204904-0xf4;const _0x4cb9a5=a223_0x4cb9();let _0x18bd78=_0x4cb9a5[_0x204904];return _0x18bd78;}export async function computeSqlFileHash(_0x4f0dc2){const _0x5291e5=a223_0x18bd,_0x6561b7=await readFile(_0x4f0dc2,_0x5291e5(0xff));return computeSqlContentHash(_0x6561b7);}function a223_0x4cb9(){const _0x37f6af=['3677085WgEaJG','3rUvABm','1382qjYaIE','13581860mHQwAn','188968mnJJDX','update','utf8','1839465bhhbIV','md5','hex','382424BwSrjJ','28ICIhBx','digest','20iWADrl','2122290WAxxVJ','createHash'];a223_0x4cb9=function(){return _0x37f6af;};return a223_0x4cb9();}
1
+ function a233_0x2fbd(){const _0x33db77=['6650055GcQDil','4478788ykiIHF','595051hqyXDl','utf8','digest','14jVIwti','update','921160vIoPLG','2192040PggATP','2149458sutkfp','186ohLMhm','hex','39135oHbLtg','md5'];a233_0x2fbd=function(){return _0x33db77;};return a233_0x2fbd();}(function(_0x2d8074,_0x1a711b){const _0x5df33f=a233_0x4c20,_0x556f5f=_0x2d8074();while(!![]){try{const _0x55d7d3=-parseInt(_0x5df33f(0x18d))/0x1+parseInt(_0x5df33f(0x195))/0x2*(parseInt(_0x5df33f(0x189))/0x3)+-parseInt(_0x5df33f(0x18c))/0x4+-parseInt(_0x5df33f(0x193))/0x5+-parseInt(_0x5df33f(0x194))/0x6*(-parseInt(_0x5df33f(0x190))/0x7)+parseInt(_0x5df33f(0x192))/0x8+parseInt(_0x5df33f(0x18b))/0x9;if(_0x55d7d3===_0x1a711b)break;else _0x556f5f['push'](_0x556f5f['shift']());}catch(_0x1c6b23){_0x556f5f['push'](_0x556f5f['shift']());}}}(a233_0x2fbd,0x99f1b));function a233_0x4c20(_0x11f439,_0x11036f){_0x11f439=_0x11f439-0x189;const _0x2fbde8=a233_0x2fbd();let _0x4c205b=_0x2fbde8[_0x11f439];return _0x4c205b;}import{readFile}from'node:fs/promises';import a233_0x2bb926 from'node:crypto';export function computeSqlContentHash(_0x2a5b72){const _0x420076=a233_0x4c20;return a233_0x2bb926['createHash'](_0x420076(0x18a))[_0x420076(0x191)](_0x2a5b72)[_0x420076(0x18f)](_0x420076(0x196));}export async function computeSqlFileHash(_0x33bf24){const _0x5b0ea0=a233_0x4c20,_0x4928c4=await readFile(_0x33bf24,_0x5b0ea0(0x18e));return computeSqlContentHash(_0x4928c4);}
@@ -1 +1 @@
1
- (function(_0xc85caf,_0x207278){const _0x1a3f42=a224_0x1b60,_0x1becdb=_0xc85caf();while(!![]){try{const _0x24bc3d=-parseInt(_0x1a3f42(0x78))/0x1*(parseInt(_0x1a3f42(0x72))/0x2)+-parseInt(_0x1a3f42(0x7b))/0x3*(-parseInt(_0x1a3f42(0x6d))/0x4)+-parseInt(_0x1a3f42(0x7d))/0x5*(parseInt(_0x1a3f42(0x74))/0x6)+parseInt(_0x1a3f42(0x6c))/0x7+parseInt(_0x1a3f42(0x7c))/0x8+parseInt(_0x1a3f42(0x80))/0x9*(-parseInt(_0x1a3f42(0x70))/0xa)+-parseInt(_0x1a3f42(0x81))/0xb;if(_0x24bc3d===_0x207278)break;else _0x1becdb['push'](_0x1becdb['shift']());}catch(_0x5abcb0){_0x1becdb['push'](_0x1becdb['shift']());}}}(a224_0x4e6e,0xc94d4));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}function a224_0x1b60(_0x34ba39,_0x29727c){_0x34ba39=_0x34ba39-0x6b;const _0x4e6ec3=a224_0x4e6e();let _0x1b6080=_0x4e6ec3[_0x34ba39];return _0x1b6080;}export function ensureSqlLockScope(_0x23b388,_0x3b80aa,_0x3383d6,_0x2bd356){const _0x505c91=a224_0x1b60,_0x4eb93f=_0x23b388??createEmptySqlLock();let _0x169933=_0x4eb93f[_0x505c91(0x77)][_0x3b80aa];if(!_0x169933)return _0x169933={'sqlRoot':_0x3383d6,'lastSync':'','sqls':{}},_0x4eb93f[_0x505c91(0x77)][_0x3b80aa]=_0x169933,{'lockData':_0x4eb93f,'appLock':_0x169933};if(!_0x169933[_0x505c91(0x7a)])_0x169933['sqlRoot']=_0x3383d6;else{if(_0x169933[_0x505c91(0x7a)]!==_0x3383d6)throw new Error(_0x2bd356+_0x505c91(0x73)+_0x3383d6+'\x22\x20vs\x20lock\x20\x22'+_0x169933[_0x505c91(0x7a)]+_0x505c91(0x75)+_0x505c91(0x71));}return!_0x169933[_0x505c91(0x7e)]&&(_0x169933[_0x505c91(0x7e)]={}),!_0x169933['lastSync']&&(_0x169933[_0x505c91(0x79)]=''),{'lockData':_0x4eb93f,'appLock':_0x169933};}export async function readSqlLockFile(_0x19911f){const _0x2d4d42=a224_0x1b60;try{const _0x5e8c39=await readFile(_0x19911f,_0x2d4d42(0x76));return JSON[_0x2d4d42(0x6f)](_0x5e8c39);}catch(_0x4c0fa5){if(_0x4c0fa5[_0x2d4d42(0x6e)]===_0x2d4d42(0x7f))return null;throw new Error('Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20'+String(_0x4c0fa5));}}export async function writeSqlLockFile(_0x4a4843,_0x289a66){const _0xa6343e=a224_0x1b60;await mkdir(dirname(_0x4a4843),{'recursive':!![]}),await writeFile(_0x4a4843,JSON[_0xa6343e(0x6b)](_0x289a66,null,0x2),_0xa6343e(0x76));}function a224_0x4e6e(){const _0x17f47c=['11050030KmOmuA','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','146zbIeiL',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','18HEeybU','\x22.\x20','utf8','apps','11212vPjyrm','lastSync','sqlRoot','4965SBnggD','11389800XpTYPw','1588110SHgtOk','sqls','ENOENT','9AqGTjj','1646403QBoKaW','stringify','9330090qaWMMU','2644MKbBBj','code','parse'];a224_0x4e6e=function(){return _0x17f47c;};return a224_0x4e6e();}
1
+ (function(_0x494f24,_0x5bc2c4){const _0x21704f=a234_0x38d0,_0xe5d8df=_0x494f24();while(!![]){try{const _0x23a41a=parseInt(_0x21704f(0xee))/0x1+parseInt(_0x21704f(0xfb))/0x2+parseInt(_0x21704f(0xe8))/0x3*(-parseInt(_0x21704f(0xf9))/0x4)+parseInt(_0x21704f(0xf4))/0x5+-parseInt(_0x21704f(0xed))/0x6+-parseInt(_0x21704f(0xfc))/0x7+-parseInt(_0x21704f(0xf6))/0x8*(-parseInt(_0x21704f(0xf8))/0x9);if(_0x23a41a===_0x5bc2c4)break;else _0xe5d8df['push'](_0xe5d8df['shift']());}catch(_0x12fef3){_0xe5d8df['push'](_0xe5d8df['shift']());}}}(a234_0x3be3,0x98b9f));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x13ee5c,_0x53d4f3,_0x611224,_0x5e292e){const _0x3015e0=a234_0x38d0,_0x5a96ad=_0x13ee5c??createEmptySqlLock();let _0x44bc9e=_0x5a96ad[_0x3015e0(0xf0)][_0x53d4f3];if(!_0x44bc9e)return _0x44bc9e={'sqlRoot':_0x611224,'lastSync':'','sqls':{}},_0x5a96ad[_0x3015e0(0xf0)][_0x53d4f3]=_0x44bc9e,{'lockData':_0x5a96ad,'appLock':_0x44bc9e};if(!_0x44bc9e[_0x3015e0(0xef)])_0x44bc9e[_0x3015e0(0xef)]=_0x611224;else{if(_0x44bc9e['sqlRoot']!==_0x611224)throw new Error(_0x5e292e+_0x3015e0(0xf2)+_0x611224+_0x3015e0(0xf3)+_0x44bc9e[_0x3015e0(0xef)]+_0x3015e0(0xeb)+_0x3015e0(0xfa));}return!_0x44bc9e['sqls']&&(_0x44bc9e[_0x3015e0(0xf7)]={}),!_0x44bc9e[_0x3015e0(0xe9)]&&(_0x44bc9e['lastSync']=''),{'lockData':_0x5a96ad,'appLock':_0x44bc9e};}export async function readSqlLockFile(_0x4ba37e){const _0x2f4ddc=a234_0x38d0;try{const _0x2d95d5=await readFile(_0x4ba37e,_0x2f4ddc(0xec));return JSON[_0x2f4ddc(0xf5)](_0x2d95d5);}catch(_0x18ac49){if(_0x18ac49['code']===_0x2f4ddc(0xf1))return null;throw new Error(_0x2f4ddc(0xea)+String(_0x18ac49));}}function a234_0x38d0(_0x2c1c9f,_0x43559b){_0x2c1c9f=_0x2c1c9f-0xe7;const _0x3be30b=a234_0x3be3();let _0x38d0e9=_0x3be30b[_0x2c1c9f];return _0x38d0e9;}export async function writeSqlLockFile(_0x3e131b,_0x5b76d8){const _0x5d89ec=a234_0x38d0;await mkdir(dirname(_0x3e131b),{'recursive':!![]}),await writeFile(_0x3e131b,JSON[_0x5d89ec(0xe7)](_0x5b76d8,null,0x2),_0x5d89ec(0xec));}function a234_0x3be3(){const _0x44f25a=['stringify','9ABVOcp','lastSync','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','\x22.\x20','utf8','5883948MNvSGa','148397CZvVgw','sqlRoot','apps','ENOENT',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','\x22\x20vs\x20lock\x20\x22','3227570HrKSqS','parse','56PyTvyD','sqls','2642175FFOkRZ','931176bOErWE','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','751766xVpFTB','6441484lGohUD'];a234_0x3be3=function(){return _0x44f25a;};return a234_0x3be3();}
@@ -1 +1 @@
1
- (function(_0x4fd704,_0x37e44f){const _0x975190=a226_0x2806,_0x3ca390=_0x4fd704();while(!![]){try{const _0x239535=parseInt(_0x975190(0xce))/0x1+parseInt(_0x975190(0xc4))/0x2*(-parseInt(_0x975190(0xca))/0x3)+-parseInt(_0x975190(0xc3))/0x4*(parseInt(_0x975190(0xbf))/0x5)+parseInt(_0x975190(0xc6))/0x6+parseInt(_0x975190(0xd1))/0x7*(parseInt(_0x975190(0xc2))/0x8)+-parseInt(_0x975190(0xc8))/0x9*(parseInt(_0x975190(0xc5))/0xa)+parseInt(_0x975190(0xc1))/0xb*(parseInt(_0x975190(0xcd))/0xc);if(_0x239535===_0x37e44f)break;else _0x3ca390['push'](_0x3ca390['shift']());}catch(_0xcbc346){_0x3ca390['push'](_0x3ca390['shift']());}}}(a226_0x5ee5,0xbaeba));export function detectSqlMode(_0x963c84){const _0x19e8e0=a226_0x2806,_0x57c7c1=_0x963c84[_0x19e8e0(0xcc)]();if(/^<(select|insert|update|delete)\b/i[_0x19e8e0(0xc9)](_0x57c7c1))return _0x19e8e0(0xc7);return'sql';}function a226_0x2806(_0x45d82d,_0x41b149){_0x45d82d=_0x45d82d-0xbe;const _0x5ee530=a226_0x5ee5();let _0x2806b0=_0x5ee530[_0x45d82d];return _0x2806b0;}export function getSqlFileExtension(_0x28f36c){const _0x19bc4e=a226_0x2806;return _0x28f36c===_0x19bc4e(0xc7)?_0x19bc4e(0xd2):'.sql';}export function buildDefaultSqlFileName(_0x4a383f,_0x785449){return''+_0x4a383f+getSqlFileExtension(_0x785449);}function a226_0x5ee5(){const _0x5a31f3=['trim','trimStart','3331884BAtFOs','870103vsskuQ','db-','unknown-db','314237WcFgLD','.xml','replace','2925gxXyQT','unknown-sql','33FeBakC','56fkzsNv','568zEjMSR','401398IfsHoZ','4010PcRaet','2085342OcNClP','mybatisXml','7002GlUsBa','test','18rPmRjD'];a226_0x5ee5=function(){return _0x5a31f3;};return a226_0x5ee5();}export function sanitizeSqlPathSegment(_0x57084a,_0x2d3eca){const _0x1f597e=a226_0x2806,_0x4e634f=String(_0x57084a??'')[_0x1f597e(0xcb)](),_0x57fa99=_0x4e634f[_0x1f597e(0xbe)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x1f597e(0xbe)](/\s+/g,'-')[_0x1f597e(0xbe)](/-+/g,'-')['replace'](/^\.+/,'')[_0x1f597e(0xbe)](/\.+$/,'')[_0x1f597e(0xbe)](/^-+/,'')['replace'](/-+$/,'');return _0x57fa99||_0x2d3eca;}export function buildDbDirectoryName(_0x3804bd,_0x23f0d3){const _0x20ddfc=a226_0x2806;return sanitizeSqlPathSegment(_0x3804bd,_0x23f0d3!=null?_0x20ddfc(0xcf)+_0x23f0d3:_0x20ddfc(0xd0));}export function buildSqlRelativePath(_0x29cb87,_0x5578e8,_0x3802b1,_0x3fb712,_0x547094){const _0x3f582a=a226_0x2806,_0x391701=buildDbDirectoryName(_0x3802b1,_0x547094),_0x24641b=sanitizeSqlPathSegment(_0x29cb87,_0x3f582a(0xc0)),_0x49e847=sanitizeSqlPathSegment(_0x5578e8,_0x24641b);return _0x391701+'/'+_0x24641b+'_'+_0x49e847+getSqlFileExtension(_0x3fb712);}
1
+ (function(_0x2fd345,_0x307bfa){const _0x4a766a=a236_0x1015,_0x4a6995=_0x2fd345();while(!![]){try{const _0x2fc2e6=parseInt(_0x4a766a(0x162))/0x1+-parseInt(_0x4a766a(0x15a))/0x2+parseInt(_0x4a766a(0x153))/0x3+-parseInt(_0x4a766a(0x155))/0x4+-parseInt(_0x4a766a(0x158))/0x5+parseInt(_0x4a766a(0x161))/0x6*(parseInt(_0x4a766a(0x159))/0x7)+parseInt(_0x4a766a(0x160))/0x8;if(_0x2fc2e6===_0x307bfa)break;else _0x4a6995['push'](_0x4a6995['shift']());}catch(_0x3699d8){_0x4a6995['push'](_0x4a6995['shift']());}}}(a236_0x49d2,0x92996));export function detectSqlMode(_0x2160d0){const _0x6c57b1=a236_0x1015,_0x4bd0a6=_0x2160d0[_0x6c57b1(0x15c)]();if(/^<(select|insert|update|delete)\b/i[_0x6c57b1(0x157)](_0x4bd0a6))return _0x6c57b1(0x15d);return'sql';}function a236_0x49d2(){const _0x51f6bb=['.xml','trimStart','mybatisXml','replace','unknown-db','6174808ewrSMN','12SLUVdt','774058fRUfVa','567642TjOopy','trim','3237392AGsusN','db-','test','2043155MXDAdR','1479079DQsPHS','678536pUUQYl'];a236_0x49d2=function(){return _0x51f6bb;};return a236_0x49d2();}export function getSqlFileExtension(_0x16d68e){const _0x2fc678=a236_0x1015;return _0x16d68e===_0x2fc678(0x15d)?_0x2fc678(0x15b):'.sql';}export function buildDefaultSqlFileName(_0x2b94bf,_0x463ba7){return''+_0x2b94bf+getSqlFileExtension(_0x463ba7);}export function sanitizeSqlPathSegment(_0x1d808f,_0x18c1eb){const _0xe474eb=a236_0x1015,_0x2f8404=String(_0x1d808f??'')[_0xe474eb(0x154)](),_0x37ef31=_0x2f8404[_0xe474eb(0x15e)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')['replace'](/\s+/g,'-')[_0xe474eb(0x15e)](/-+/g,'-')['replace'](/^\.+/,'')[_0xe474eb(0x15e)](/\.+$/,'')['replace'](/^-+/,'')[_0xe474eb(0x15e)](/-+$/,'');return _0x37ef31||_0x18c1eb;}export function buildDbDirectoryName(_0x4d46e4,_0x21a8e4){const _0x264b95=a236_0x1015;return sanitizeSqlPathSegment(_0x4d46e4,_0x21a8e4!=null?_0x264b95(0x156)+_0x21a8e4:_0x264b95(0x15f));}function a236_0x1015(_0x19cad1,_0x34ade3){_0x19cad1=_0x19cad1-0x153;const _0x49d206=a236_0x49d2();let _0x10158c=_0x49d206[_0x19cad1];return _0x10158c;}export function buildSqlRelativePath(_0x5b9038,_0x34422a,_0x58a6c1,_0x30a8db,_0x143351){const _0x3f005d=buildDbDirectoryName(_0x58a6c1,_0x143351),_0x4f348b=sanitizeSqlPathSegment(_0x5b9038,'unknown-sql'),_0x1dc247=sanitizeSqlPathSegment(_0x34422a,_0x4f348b);return _0x3f005d+'/'+_0x4f348b+'_'+_0x1dc247+getSqlFileExtension(_0x30a8db);}
@@ -1 +1 @@
1
- const a227_0x11df16=a227_0x3684;(function(_0x4f6649,_0x1fd933){const _0x5654c4=a227_0x3684,_0x1d83e4=_0x4f6649();while(!![]){try{const _0x39cb54=-parseInt(_0x5654c4(0x156))/0x1+-parseInt(_0x5654c4(0x154))/0x2*(-parseInt(_0x5654c4(0x184))/0x3)+-parseInt(_0x5654c4(0x19c))/0x4+parseInt(_0x5654c4(0x13c))/0x5*(-parseInt(_0x5654c4(0x15a))/0x6)+parseInt(_0x5654c4(0x157))/0x7*(parseInt(_0x5654c4(0x165))/0x8)+parseInt(_0x5654c4(0x144))/0x9*(-parseInt(_0x5654c4(0x182))/0xa)+parseInt(_0x5654c4(0x161))/0xb;if(_0x39cb54===_0x1fd933)break;else _0x1d83e4['push'](_0x1d83e4['shift']());}catch(_0x5d214d){_0x1d83e4['push'](_0x1d83e4['shift']());}}}(a227_0x1b0b,0x636f8));const MYBATIS_OUTER_TAGS=new Map([['select',a227_0x11df16(0x15b)],[a227_0x11df16(0x166),'INSERT'],['update','UPDATE'],[a227_0x11df16(0x162),'DELETE']]),MYBATIS_DYNAMIC_TAGS=new Set(['if',a227_0x11df16(0x140),a227_0x11df16(0x13f),a227_0x11df16(0x185),'when','otherwise',a227_0x11df16(0x17a),a227_0x11df16(0x171),a227_0x11df16(0x18e),a227_0x11df16(0x15f),a227_0x11df16(0x181)]),MYBATIS_BRANCH_TAGS=new Set(['if','foreach','choose',a227_0x11df16(0x146),a227_0x11df16(0x13b)]);export const MYBATIS_DYNAMIC_START_MARKER=a227_0x11df16(0x17e);export const MYBATIS_DYNAMIC_END_MARKER='__RABETBASE_MYBATIS_DYNAMIC_END__';export const MYBATIS_INCLUDE_MARKER=a227_0x11df16(0x174);const UNRESOLVED_SQL_FRAGMENT=a227_0x11df16(0x172),MYBATIS_OUTER_TAG_PATTERN=new RegExp(a227_0x11df16(0x1a0)+[...MYBATIS_OUTER_TAGS[a227_0x11df16(0x178)]()][a227_0x11df16(0x14c)]('|')+a227_0x11df16(0x14a),'i');export function normalizeSqlForStaticAnalysis(_0x3cceec){const _0x150d2b=a227_0x11df16,_0xfd1ffa=typeof _0x3cceec==='string'?_0x3cceec:'';if(!startsWithMybatisStatementWrapper(_0xfd1ffa))return{'sql':_0xfd1ffa,'mode':_0x150d2b(0x168)};let _0x5161e8=0x0,_0x2d81fc='',_0x57a8cd,_0x5b93bc=![],_0x39804e=![];const _0x5d4e7d=[];while(_0x5161e8<_0xfd1ffa[_0x150d2b(0x16a)]){if(_0xfd1ffa[_0x150d2b(0x176)](_0x150d2b(0x149),_0x5161e8)){const _0x107240=_0xfd1ffa[_0x150d2b(0x18a)](_0x150d2b(0x145),_0x5161e8+0x4);if(_0x107240<0x0)return invalidMybatisSource(_0x150d2b(0x152));_0x2d81fc+='\x20',_0x5161e8=_0x107240+0x3;continue;}if(_0xfd1ffa['startsWith'](_0x150d2b(0x14f),_0x5161e8)){if(!_0x5b93bc||_0x39804e)return invalidMybatisSource(_0x150d2b(0x159));const _0x35492d=_0xfd1ffa[_0x150d2b(0x18a)](_0x150d2b(0x142),_0x5161e8+0x9);if(_0x35492d<0x0)return invalidMybatisSource(_0x150d2b(0x19b));_0x2d81fc+=_0xfd1ffa[_0x150d2b(0x18c)](_0x5161e8+0x9,_0x35492d),_0x5161e8=_0x35492d+0x3;continue;}if(_0xfd1ffa[_0x150d2b(0x176)]('<?',_0x5161e8)){if(_0x5b93bc)return invalidMybatisSource(_0x150d2b(0x187));const _0x1a0705=_0xfd1ffa[_0x150d2b(0x18a)]('?>',_0x5161e8+0x2);if(_0x1a0705<0x0)return invalidMybatisSource(_0x150d2b(0x13d));_0x2d81fc+='\x20',_0x5161e8=_0x1a0705+0x2;continue;}if(_0xfd1ffa[_0x5161e8]!=='<'){const _0x22be54=_0xfd1ffa[_0x150d2b(0x18a)]('<',_0x5161e8),_0x1a295c=_0x22be54<0x0?_0xfd1ffa[_0x150d2b(0x16a)]:_0x22be54,_0x430ff3=_0xfd1ffa[_0x150d2b(0x18c)](_0x5161e8,_0x1a295c);if((!_0x5b93bc||_0x39804e)&&_0x430ff3[_0x150d2b(0x17a)]())return invalidMybatisSource(_0x150d2b(0x14b));if(_0x5b93bc&&!_0x39804e){const _0x488e16=decodeXmlEntities(_0x430ff3);if(_0x488e16===null)return invalidMybatisSource('Invalid\x20XML\x20entity\x20reference.');_0x2d81fc+=_0x488e16;}else _0x2d81fc+='\x20';_0x5161e8=_0x1a295c;continue;}const _0x34badc=findXmlTagEnd(_0xfd1ffa,_0x5161e8);if(_0x34badc<0x0)return invalidMybatisSource(_0x150d2b(0x175));const _0x354d2c=_0xfd1ffa[_0x150d2b(0x18c)](_0x5161e8,_0x34badc+0x1),_0x35747a=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/[_0x150d2b(0x191)](_0x354d2c);if(!_0x35747a)return invalidMybatisSource(_0x150d2b(0x13e));const _0x520a87=_0x35747a[0x1]==='/',_0x912ab=_0x35747a[0x2]??'',_0x6affdb=_0x912ab[_0x150d2b(0x17c)](),_0x28c8de=_0x35747a[0x3]??'',_0x3d058d=_0x35747a[0x4]==='/',_0x41e0f1=MYBATIS_OUTER_TAGS[_0x150d2b(0x196)](_0x6affdb);if(!_0x41e0f1&&!MYBATIS_DYNAMIC_TAGS[_0x150d2b(0x190)](_0x6affdb))return invalidMybatisSource(_0x150d2b(0x193)+_0x6affdb+'>.');if(!_0x41e0f1&&_0x912ab!==_0x6affdb)return invalidMybatisSource(_0x150d2b(0x177)+_0x912ab+'>.');if(_0x520a87){if(_0x28c8de[_0x150d2b(0x17a)]()||_0x3d058d)return invalidMybatisSource(_0x150d2b(0x18d)+_0x912ab+'>.');const _0x204f03=_0x5d4e7d['at'](-0x1);if(!_0x204f03||(_0x204f03[_0x150d2b(0x188)]?_0x204f03[_0x150d2b(0x170)]!==_0x6affdb:_0x204f03['rawName']!==_0x912ab))return invalidMybatisSource(_0x150d2b(0x180)+_0x912ab+'>.');_0x5d4e7d[_0x150d2b(0x1a1)]();if(_0x204f03[_0x150d2b(0x188)])_0x39804e=!![];_0x2d81fc+=MYBATIS_BRANCH_TAGS[_0x150d2b(0x190)](_0x6affdb)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0x28c8de))return invalidMybatisSource(_0x150d2b(0x16e)+_0x912ab+'>.');if(_0x6affdb==='property'&&(!_0x3d058d||_0x5d4e7d['at'](-0x1)?.['tagName']!=='include'))return invalidMybatisSource(_0x150d2b(0x19a));if(_0x41e0f1){if(_0x5b93bc||_0x5d4e7d[_0x150d2b(0x16a)]>0x0)return invalidMybatisSource(_0x150d2b(0x16b));_0x5b93bc=!![],_0x39804e=_0x3d058d,_0x57a8cd=_0x41e0f1;}else{if(!_0x5b93bc||_0x39804e)return invalidMybatisSource(_0x150d2b(0x199)+_0x912ab+'>.');}_0x2d81fc+=_0x6affdb===_0x150d2b(0x140)?_0x150d2b(0x197):_0x6affdb===_0x150d2b(0x171)?_0x150d2b(0x19f):_0x6affdb===_0x150d2b(0x15f)?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS['has'](_0x6affdb)&&!_0x3d058d?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0x3d058d&&_0x5d4e7d['push']({'rawName':_0x912ab,'tagName':_0x6affdb,'outer':!!_0x41e0f1});}_0x5161e8=_0x34badc+0x1;}if(_0x5d4e7d[_0x150d2b(0x16a)]>0x0)return invalidMybatisSource(_0x150d2b(0x163)+_0x5d4e7d['at'](-0x1)?.[_0x150d2b(0x169)]+'>.');if(!_0x5b93bc||!_0x39804e)return invalidMybatisSource(_0x150d2b(0x147));return{'sql':_0x2d81fc['trim'](),'mode':_0x150d2b(0x158),..._0x57a8cd?{'statementType':_0x57a8cd}:{}};}function hasWellFormedXmlAttributes(_0x42a03b){const _0x110878=a227_0x11df16;let _0xada26c=0x0;const _0x5a2b8f=new Set();while(_0xada26c<_0x42a03b[_0x110878(0x16a)]){while(_0xada26c<_0x42a03b[_0x110878(0x16a)]&&/\s/['test'](_0x42a03b[_0xada26c]??''))_0xada26c+=0x1;if(_0xada26c>=_0x42a03b[_0x110878(0x16a)])return!![];const _0x51d19b=/^[A-Za-z_:][\w:.-]*/[_0x110878(0x191)](_0x42a03b[_0x110878(0x18c)](_0xada26c)),_0x207c82=_0x51d19b?.[0x0];if(!_0x207c82||_0x5a2b8f[_0x110878(0x190)](_0x207c82))return![];_0x5a2b8f[_0x110878(0x18f)](_0x207c82),_0xada26c+=_0x207c82['length'];while(_0xada26c<_0x42a03b['length']&&/\s/['test'](_0x42a03b[_0xada26c]??''))_0xada26c+=0x1;if(_0x42a03b[_0xada26c]!=='=')return![];_0xada26c+=0x1;while(_0xada26c<_0x42a03b[_0x110878(0x16a)]&&/\s/['test'](_0x42a03b[_0xada26c]??''))_0xada26c+=0x1;const _0xff2d04=_0x42a03b[_0xada26c];if(_0xff2d04!=='\x22'&&_0xff2d04!=='\x27')return![];_0xada26c+=0x1;const _0x367220=_0x42a03b[_0x110878(0x18a)](_0xff2d04,_0xada26c);if(_0x367220<0x0)return![];if(decodeXmlEntities(_0x42a03b[_0x110878(0x18c)](_0xada26c,_0x367220))===null)return![];_0xada26c=_0x367220+0x1;}return!![];}function startsWithMybatisStatementWrapper(_0x44a6e8){const _0x48a335=a227_0x11df16;let _0x3f66d7=0x0;const _0x4afd0f=()=>{const _0x4d7226=a227_0x3684;while(_0x3f66d7<_0x44a6e8[_0x4d7226(0x16a)]&&/\s/[_0x4d7226(0x183)](_0x44a6e8[_0x3f66d7]??''))_0x3f66d7+=0x1;};_0x4afd0f();while(_0x3f66d7<_0x44a6e8[_0x48a335(0x16a)]){if(_0x44a6e8[_0x48a335(0x176)](_0x48a335(0x149),_0x3f66d7)){const _0x1f83bc=_0x44a6e8[_0x48a335(0x18a)](_0x48a335(0x145),_0x3f66d7+0x4);if(_0x1f83bc<0x0)return!![];_0x3f66d7=_0x1f83bc+0x3,_0x4afd0f();continue;}if(_0x44a6e8[_0x48a335(0x176)]('<?',_0x3f66d7)){const _0x1cecb7=_0x44a6e8[_0x48a335(0x18a)]('?>',_0x3f66d7+0x2);if(_0x1cecb7<0x0)return!![];_0x3f66d7=_0x1cecb7+0x2,_0x4afd0f();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN[_0x48a335(0x183)](_0x44a6e8[_0x48a335(0x18c)](_0x3f66d7));}function invalidMybatisSource(_0x457253){return{'sql':'','mode':'mybatisXml','error':_0x457253};}function findXmlTagEnd(_0x25ac2e,_0x553266){let _0x151e8d;for(let _0x385a9f=_0x553266+0x1;_0x385a9f<_0x25ac2e['length'];_0x385a9f+=0x1){const _0x34fd46=_0x25ac2e[_0x385a9f];if(_0x151e8d){if(_0x34fd46===_0x151e8d)_0x151e8d=undefined;continue;}if(_0x34fd46==='\x22'||_0x34fd46==='\x27'){_0x151e8d=_0x34fd46;continue;}if(_0x34fd46==='>')return _0x385a9f;}return-0x1;}function decodeXmlEntities(_0xb74c1e){let _0x18c02f=![];const _0x3cf091=_0xb74c1e['replace'](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0x2e276b=>{const _0x414813=a227_0x3684;if(_0x2e276b===_0x414813(0x189))return'<';if(_0x2e276b===_0x414813(0x160))return'>';if(_0x2e276b==='&quot;')return'\x22';if(_0x2e276b===_0x414813(0x153))return'\x27';if(_0x2e276b===_0x414813(0x16f))return'&';const _0x4d0728=/^&#(?:x([0-9a-f]+)|([0-9]+));$/[_0x414813(0x191)](_0x2e276b);if(_0x4d0728){const _0x1d0668=_0x4d0728[0x1],_0x5baa96=_0x4d0728[0x2],_0x3bd7e1=Number['parseInt'](_0x1d0668??_0x5baa96??'',_0x1d0668?0x10:0xa);if(isValidXmlCharacter(_0x3bd7e1))return String[_0x414813(0x194)](_0x3bd7e1);}return _0x18c02f=!![],'';});return _0x18c02f?null:_0x3cf091;}function isValidXmlCharacter(_0x320525){return _0x320525===0x9||_0x320525===0xa||_0x320525===0xd||_0x320525>=0x20&&_0x320525<=0xd7ff||_0x320525>=0xe000&&_0x320525<=0xfffd||_0x320525>=0x10000&&_0x320525<=0x10ffff;}export function detectSqlType(_0x35db7d){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0x35db7d));}function detectNormalizedSqlType(_0x5ace5c){const _0x264488=a227_0x11df16;if(_0x5ace5c['error'])return{'type':_0x264488(0x179),'isSelectOnly':![],'isDangerous':![],'reason':_0x5ace5c['error']};if(!_0x5ace5c['sql'][_0x264488(0x17a)]())return{'type':_0x264488(0x179),'isSelectOnly':![],'isDangerous':![],'reason':_0x264488(0x16d)};const _0x8702d4=stripStaticAnalysisMarkers(_0x5ace5c[_0x264488(0x168)])[_0x264488(0x19e)](/#\{[^}]*\}/g,'?')[_0x264488(0x19e)](/\$\{[^}]*\}/g,'?')['replace'](/@[^(\s]+(\([^)]*\))?/g,'')[_0x264488(0x19e)](/\/\*[\s\S]*?\*\//g,'')[_0x264488(0x17a)](),_0xf16e6d=_0x8702d4['split']('\x0a');let _0x21a103='';for(const _0x1230d0 of _0xf16e6d){const _0x21b098=_0x1230d0[_0x264488(0x17a)]();if(!_0x21b098||_0x21b098[_0x264488(0x176)]('--')||_0x21b098[_0x264488(0x176)]('/*'))continue;_0x21a103=_0x21b098;break;}const _0x5c0a12=_0x21a103[_0x264488(0x198)](),_0x43133b=_0x5ace5c[_0x264488(0x15c)],_0x1d2ee9=maskSqlTextForBlockedKeywordScan(_0x8702d4),_0x13b319=/\b(DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x264488(0x183)](_0x1d2ee9);if(_0x43133b==='SELECT'||!_0x43133b&&(_0x5c0a12[_0x264488(0x176)](_0x264488(0x15b))||_0x5c0a12[_0x264488(0x176)](_0x264488(0x17f)))){const _0x498e0e=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x264488(0x183)](_0x8702d4);return{'type':'SELECT','isSelectOnly':!_0x498e0e,'isDangerous':_0x498e0e,'reason':_0x498e0e?_0x264488(0x192):undefined};}if(_0x43133b==='INSERT'||!_0x43133b&&_0x5c0a12[_0x264488(0x176)](_0x264488(0x17b)))return{'type':_0x264488(0x17b),'isSelectOnly':![],'isDangerous':_0x13b319,'reason':_0x13b319?_0x264488(0x143):undefined};if(_0x43133b===_0x264488(0x16c)||!_0x43133b&&_0x5c0a12[_0x264488(0x176)](_0x264488(0x16c)))return{'type':_0x264488(0x16c),'isSelectOnly':![],'isDangerous':_0x13b319,'reason':_0x13b319?_0x264488(0x143):undefined};if(_0x43133b===_0x264488(0x186)||!_0x43133b&&_0x5c0a12[_0x264488(0x176)](_0x264488(0x186)))return{'type':'DELETE','isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x264488(0x183)](_0x5c0a12))return{'type':_0x264488(0x141),'isSelectOnly':![],'isDangerous':!![],'reason':_0x264488(0x17d)};return{'type':_0x264488(0x179),'isSelectOnly':![],'isDangerous':![]};}function stripStaticAnalysisMarkers(_0x4d21c2){const _0x2f2ee1=a227_0x11df16;return _0x4d21c2[_0x2f2ee1(0x148)](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x2f2ee1(0x148)](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x2f2ee1(0x148)](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function a227_0x3684(_0xd74cf7,_0x292c68){_0xd74cf7=_0xd74cf7-0x13b;const _0x1b0b77=a227_0x1b0b();let _0x3684e5=_0x1b0b77[_0xd74cf7];return _0x3684e5;}function maskSqlTextForBlockedKeywordScan(_0x3d2904){const _0x479db4=a227_0x11df16;return _0x3d2904[_0x479db4(0x19e)](/'(?:''|\\.|[^'])*'/g,'\x20')['replace'](/"(?:""|\\.|[^"])*"/g,'\x20')[_0x479db4(0x19e)](/`(?:``|\\.|[^`])*`/g,'\x20')['replace'](/--.*$/gm,'\x20')[_0x479db4(0x19e)](/#.*$/gm,'\x20')[_0x479db4(0x19e)](/\/\*[\s\S]*?\*\//g,'\x20');}function a227_0x1b0b(){const _0xa1bf3b=['15uQpOzy','choose','DELETE','XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.','outer','&lt;','indexOf','isDangerous','slice','Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</','bind','add','has','exec','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','Unsupported\x20MyBatis\x20XML\x20tag:\x20<','fromCodePoint','type','get','\x20WHERE\x20','toUpperCase','MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<','MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.','Unterminated\x20CDATA\x20section.','1186000VhgMLL','error','replace','\x20SET\x20','^<\x5cs*(?:','pop','otherwise','3455IThMRV','Unterminated\x20XML\x20declaration.','Invalid\x20MyBatis\x20XML\x20tag.','foreach','where','DDL',']]>','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','134847XhNgdl','-->','when','MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.','replaceAll','<!--',')\x5cb','SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','join','\x20with\x20parameters:\x20','from','<![CDATA[','\x20query\x20targeting\x20','matchAll','Unterminated\x20XML\x20comment.','&apos;','158094oGDwsF','Unable\x20to\x20detect\x20SQL\x20type.\x20','522009QRbSdo','1632407MsRnYG','mybatisXml','CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','3174HduqWu','SELECT','statementType','reason','includes','include','&gt;','18502924CyqxhC','delete','Unclosed\x20MyBatis\x20XML\x20tag:\x20<','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','8vwNtXZ','insert','match','sql','rawName','length','Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.','UPDATE','SQL\x20content\x20is\x20empty','Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<','&amp;','tagName','set','__RABETBASE_UNRESOLVED_SQL_FRAGMENT__','unknown\x20table(s)','__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__','Unterminated\x20MyBatis\x20XML\x20tag.','startsWith','MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<','keys','UNKNOWN','trim','INSERT','toLowerCase','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','__RABETBASE_MYBATIS_DYNAMIC_START__','WITH','Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</','property','480HZJjJo','test'];a227_0x1b0b=function(){return _0xa1bf3b;};return a227_0x1b0b();}function extractTables(_0xc1e84e){const _0x443896=a227_0x11df16,_0x174161=_0xc1e84e[_0x443896(0x19e)](/#\{[^}]*\}/g,'?')[_0x443896(0x19e)](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')[_0x443896(0x19e)](/--.*$/gm,'')[_0x443896(0x19e)](/\/\*[\s\S]*?\*\//g,''),_0x282837=[],_0x2c873c=_0x174161['match'](/FROM\s+([^\s,)(]+)/i);addTable(_0x282837,_0x2c873c?.[0x1]);for(const _0x2c0de1 of _0x174161[_0x443896(0x151)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x282837,_0x2c0de1[0x1]);}const _0x5d4cdb=_0x174161[_0x443896(0x167)](/INTO\s+([^\s(]+)/i);addTable(_0x282837,_0x5d4cdb?.[0x1]);const _0x52df5b=_0x174161['match'](/UPDATE\s+([^\s,)(]+)/i);return addTable(_0x282837,_0x52df5b?.[0x1]),_0x282837;}function addTable(_0x2f7cac,_0x57bad3){const _0x692f16=a227_0x11df16,_0x29704f=_0x57bad3?.['replace'](/[`"]/g,'');_0x29704f&&_0x29704f!==UNRESOLVED_SQL_FRAGMENT&&!_0x2f7cac[_0x692f16(0x15e)](_0x29704f)&&_0x2f7cac['push'](_0x29704f);}function extractParameters(_0x48828c){const _0x5f2947=a227_0x11df16,_0x24f181=new Set();for(const _0x5dd794 of _0x48828c[_0x5f2947(0x151)](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0x5dd794[0x1])_0x24f181[_0x5f2947(0x18f)](_0x5dd794[0x1]);}return Array[_0x5f2947(0x14e)](_0x24f181);}export function validateSql(_0x1ae54){const _0x45893f=a227_0x11df16,_0x2c88d4=normalizeSqlForStaticAnalysis(_0x1ae54),_0x21ca00=detectNormalizedSqlType(_0x2c88d4),_0x4917fd=stripStaticAnalysisMarkers(_0x2c88d4[_0x45893f(0x168)]),_0x217d34=_0x2c88d4['error']?[]:extractTables(_0x4917fd),_0x592769=_0x2c88d4[_0x45893f(0x19d)]?[]:extractParameters(_0x4917fd);if(_0x21ca00[_0x45893f(0x18b)])return{'valid':![],'sqlType':_0x21ca00,'tables':_0x217d34,'parameters':_0x592769,'message':_0x21ca00[_0x45893f(0x15d)]||_0x21ca00[_0x45893f(0x195)]+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0x21ca00[_0x45893f(0x195)]==='UNKNOWN')return{'valid':![],'sqlType':_0x21ca00,'tables':_0x217d34,'parameters':_0x592769,'message':_0x2c88d4[_0x45893f(0x19d)]?_0x45893f(0x155)+_0x2c88d4[_0x45893f(0x19d)]:_0x45893f(0x164)};return{'valid':!![],'sqlType':_0x21ca00,'tables':_0x217d34,'parameters':_0x592769,'message':_0x21ca00[_0x45893f(0x195)]+_0x45893f(0x150)+(_0x217d34[_0x45893f(0x16a)]?_0x217d34[_0x45893f(0x14c)](',\x20'):_0x45893f(0x173))+(_0x592769[_0x45893f(0x16a)]?_0x45893f(0x14d)+_0x592769[_0x45893f(0x14c)](',\x20'):'')};}
1
+ const a237_0x5604ec=a237_0x1552;(function(_0xa0ab2c,_0x1968bf){const _0x357110=a237_0x1552,_0x5ab12f=_0xa0ab2c();while(!![]){try{const _0x4b1977=-parseInt(_0x357110(0xba))/0x1+parseInt(_0x357110(0xb4))/0x2*(parseInt(_0x357110(0xca))/0x3)+-parseInt(_0x357110(0xcb))/0x4+parseInt(_0x357110(0xb2))/0x5+-parseInt(_0x357110(0x94))/0x6+parseInt(_0x357110(0x97))/0x7*(-parseInt(_0x357110(0xa6))/0x8)+parseInt(_0x357110(0xa0))/0x9;if(_0x4b1977===_0x1968bf)break;else _0x5ab12f['push'](_0x5ab12f['shift']());}catch(_0x1e15e6){_0x5ab12f['push'](_0x5ab12f['shift']());}}}(a237_0x86ed,0x18c7e));const MYBATIS_OUTER_TAGS=new Map([[a237_0x5604ec(0xb5),'SELECT'],[a237_0x5604ec(0xcd),a237_0x5604ec(0xd7)],[a237_0x5604ec(0xb1),'UPDATE'],['delete','DELETE']]),MYBATIS_DYNAMIC_TAGS=new Set(['if',a237_0x5604ec(0x82),a237_0x5604ec(0xa5),a237_0x5604ec(0xc9),a237_0x5604ec(0x91),'otherwise',a237_0x5604ec(0xb8),a237_0x5604ec(0x9e),a237_0x5604ec(0xd9),a237_0x5604ec(0xb9),a237_0x5604ec(0x8a)]),MYBATIS_BRANCH_TAGS=new Set(['if',a237_0x5604ec(0xa5),a237_0x5604ec(0xc9),'when',a237_0x5604ec(0x98)]);export const MYBATIS_DYNAMIC_START_MARKER='__RABETBASE_MYBATIS_DYNAMIC_START__';export const MYBATIS_DYNAMIC_END_MARKER=a237_0x5604ec(0x85);function a237_0x86ed(){const _0x4a660e=['190466nsRnCL','DELETE','WITH','outer','rawName','UNKNOWN','toLowerCase','\x20SET\x20','<!--','Unsupported\x20MyBatis\x20XML\x20tag:\x20<','MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.','-->','unknown\x20table(s)','length','pop','choose','2703VQjvkU','675584gOPzQs',')\x5cb','insert','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','\x20with\x20parameters:\x20','Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</','DDL','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','&quot;','split','&amp;','slice','INSERT','UPDATE','bind','__RABETBASE_UNRESOLVED_SQL_FRAGMENT__','Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.','XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.','Unterminated\x20XML\x20declaration.','replaceAll','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<','Unterminated\x20MyBatis\x20XML\x20tag.','type','add','mybatisXml','^<\x5cs*(?:','error','where','&apos;','exec','__RABETBASE_MYBATIS_DYNAMIC_END__','SQL\x20content\x20is\x20empty','Invalid\x20XML\x20entity\x20reference.','reason','MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.','property','tagName','keys','replace','match','Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</','sql','when','join','startsWith','894954uloBqG','\x20WHERE\x20','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','15442JntMaB','otherwise','&lt;','fromCodePoint','matchAll','statementType','Unclosed\x20MyBatis\x20XML\x20tag:\x20<','set','parseInt','5365242apzUhh','Invalid\x20MyBatis\x20XML\x20tag.','&gt;','string','toUpperCase','foreach','584xmySLo','Unable\x20to\x20detect\x20SQL\x20type.\x20','SELECT','from','Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<','has','get','includes','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','Unterminated\x20XML\x20comment.','indexOf','update','288965zJmwjd','MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<','260DHxBqi','select','test','__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__','trim','include'];a237_0x86ed=function(){return _0x4a660e;};return a237_0x86ed();}export const MYBATIS_INCLUDE_MARKER=a237_0x5604ec(0xb7);const UNRESOLVED_SQL_FRAGMENT=a237_0x5604ec(0xda),MYBATIS_OUTER_TAG_PATTERN=new RegExp(a237_0x5604ec(0x80)+[...MYBATIS_OUTER_TAGS[a237_0x5604ec(0x8c)]()][a237_0x5604ec(0x92)]('|')+a237_0x5604ec(0xcc),'i');export function normalizeSqlForStaticAnalysis(_0x7ac26d){const _0xe6fa27=a237_0x5604ec,_0x39b543=typeof _0x7ac26d===_0xe6fa27(0xa3)?_0x7ac26d:'';if(!startsWithMybatisStatementWrapper(_0x39b543))return{'sql':_0x39b543,'mode':_0xe6fa27(0x90)};let _0x3172a1=0x0,_0x6f5ad0='',_0xed4f8e,_0x518747=![],_0xf5d7e0=![];const _0x23064d=[];while(_0x3172a1<_0x39b543[_0xe6fa27(0xc7)]){if(_0x39b543[_0xe6fa27(0x93)]('<!--',_0x3172a1)){const _0x1b4f33=_0x39b543[_0xe6fa27(0xb0)](_0xe6fa27(0xc5),_0x3172a1+0x4);if(_0x1b4f33<0x0)return invalidMybatisSource(_0xe6fa27(0xaf));_0x6f5ad0+='\x20',_0x3172a1=_0x1b4f33+0x3;continue;}if(_0x39b543['startsWith']('<![CDATA[',_0x3172a1)){if(!_0x518747||_0xf5d7e0)return invalidMybatisSource('CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.');const _0x4d0604=_0x39b543[_0xe6fa27(0xb0)](']]>',_0x3172a1+0x9);if(_0x4d0604<0x0)return invalidMybatisSource('Unterminated\x20CDATA\x20section.');_0x6f5ad0+=_0x39b543[_0xe6fa27(0xd6)](_0x3172a1+0x9,_0x4d0604),_0x3172a1=_0x4d0604+0x3;continue;}if(_0x39b543[_0xe6fa27(0x93)]('<?',_0x3172a1)){if(_0x518747)return invalidMybatisSource(_0xe6fa27(0xdc));const _0x1f5467=_0x39b543[_0xe6fa27(0xb0)]('?>',_0x3172a1+0x2);if(_0x1f5467<0x0)return invalidMybatisSource(_0xe6fa27(0xdd));_0x6f5ad0+='\x20',_0x3172a1=_0x1f5467+0x2;continue;}if(_0x39b543[_0x3172a1]!=='<'){const _0x1e93ff=_0x39b543[_0xe6fa27(0xb0)]('<',_0x3172a1),_0x45b71e=_0x1e93ff<0x0?_0x39b543[_0xe6fa27(0xc7)]:_0x1e93ff,_0x4745d1=_0x39b543['slice'](_0x3172a1,_0x45b71e);if((!_0x518747||_0xf5d7e0)&&_0x4745d1['trim']())return invalidMybatisSource('SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.');if(_0x518747&&!_0xf5d7e0){const _0x4dc961=decodeXmlEntities(_0x4745d1);if(_0x4dc961===null)return invalidMybatisSource(_0xe6fa27(0x87));_0x6f5ad0+=_0x4dc961;}else _0x6f5ad0+='\x20';_0x3172a1=_0x45b71e;continue;}const _0x353aee=findXmlTagEnd(_0x39b543,_0x3172a1);if(_0x353aee<0x0)return invalidMybatisSource(_0xe6fa27(0x7c));const _0x5ae5ce=_0x39b543[_0xe6fa27(0xd6)](_0x3172a1,_0x353aee+0x1),_0x3489c3=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/[_0xe6fa27(0x84)](_0x5ae5ce);if(!_0x3489c3)return invalidMybatisSource(_0xe6fa27(0xa1));const _0xfe63f6=_0x3489c3[0x1]==='/',_0x51d2eb=_0x3489c3[0x2]??'',_0x557210=_0x51d2eb[_0xe6fa27(0xc0)](),_0x4877ac=_0x3489c3[0x3]??'',_0xfe163f=_0x3489c3[0x4]==='/',_0x5110d5=MYBATIS_OUTER_TAGS[_0xe6fa27(0xac)](_0x557210);if(!_0x5110d5&&!MYBATIS_DYNAMIC_TAGS[_0xe6fa27(0xab)](_0x557210))return invalidMybatisSource(_0xe6fa27(0xc3)+_0x557210+'>.');if(!_0x5110d5&&_0x51d2eb!==_0x557210)return invalidMybatisSource(_0xe6fa27(0x7b)+_0x51d2eb+'>.');if(_0xfe63f6){if(_0x4877ac[_0xe6fa27(0xb8)]()||_0xfe163f)return invalidMybatisSource(_0xe6fa27(0x8f)+_0x51d2eb+'>.');const _0x5f562b=_0x23064d['at'](-0x1);if(!_0x5f562b||(_0x5f562b[_0xe6fa27(0xbd)]?_0x5f562b[_0xe6fa27(0x8b)]!==_0x557210:_0x5f562b[_0xe6fa27(0xbe)]!==_0x51d2eb))return invalidMybatisSource(_0xe6fa27(0xd0)+_0x51d2eb+'>.');_0x23064d[_0xe6fa27(0xc8)]();if(_0x5f562b[_0xe6fa27(0xbd)])_0xf5d7e0=!![];_0x6f5ad0+=MYBATIS_BRANCH_TAGS[_0xe6fa27(0xab)](_0x557210)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0x4877ac))return invalidMybatisSource(_0xe6fa27(0xaa)+_0x51d2eb+'>.');if(_0x557210===_0xe6fa27(0x8a)&&(!_0xfe163f||_0x23064d['at'](-0x1)?.[_0xe6fa27(0x8b)]!==_0xe6fa27(0xb9)))return invalidMybatisSource(_0xe6fa27(0xc4));if(_0x5110d5){if(_0x518747||_0x23064d[_0xe6fa27(0xc7)]>0x0)return invalidMybatisSource(_0xe6fa27(0xdb));_0x518747=!![],_0xf5d7e0=_0xfe163f,_0xed4f8e=_0x5110d5;}else{if(!_0x518747||_0xf5d7e0)return invalidMybatisSource(_0xe6fa27(0xb3)+_0x51d2eb+'>.');}_0x6f5ad0+=_0x557210===_0xe6fa27(0x82)?_0xe6fa27(0x95):_0x557210==='set'?_0xe6fa27(0xc1):_0x557210===_0xe6fa27(0xb9)?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS[_0xe6fa27(0xab)](_0x557210)&&!_0xfe163f?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0xfe163f&&_0x23064d['push']({'rawName':_0x51d2eb,'tagName':_0x557210,'outer':!!_0x5110d5});}_0x3172a1=_0x353aee+0x1;}if(_0x23064d[_0xe6fa27(0xc7)]>0x0)return invalidMybatisSource(_0xe6fa27(0x9d)+_0x23064d['at'](-0x1)?.[_0xe6fa27(0xbe)]+'>.');if(!_0x518747||!_0xf5d7e0)return invalidMybatisSource(_0xe6fa27(0x89));return{'sql':_0x6f5ad0[_0xe6fa27(0xb8)](),'mode':_0xe6fa27(0x7f),..._0xed4f8e?{'statementType':_0xed4f8e}:{}};}function hasWellFormedXmlAttributes(_0x460283){const _0x1ba6d0=a237_0x5604ec;let _0x5d65f1=0x0;const _0x50757c=new Set();while(_0x5d65f1<_0x460283[_0x1ba6d0(0xc7)]){while(_0x5d65f1<_0x460283['length']&&/\s/['test'](_0x460283[_0x5d65f1]??''))_0x5d65f1+=0x1;if(_0x5d65f1>=_0x460283[_0x1ba6d0(0xc7)])return!![];const _0xe8c55b=/^[A-Za-z_:][\w:.-]*/[_0x1ba6d0(0x84)](_0x460283[_0x1ba6d0(0xd6)](_0x5d65f1)),_0x4f78f0=_0xe8c55b?.[0x0];if(!_0x4f78f0||_0x50757c['has'](_0x4f78f0))return![];_0x50757c[_0x1ba6d0(0x7e)](_0x4f78f0),_0x5d65f1+=_0x4f78f0[_0x1ba6d0(0xc7)];while(_0x5d65f1<_0x460283[_0x1ba6d0(0xc7)]&&/\s/[_0x1ba6d0(0xb6)](_0x460283[_0x5d65f1]??''))_0x5d65f1+=0x1;if(_0x460283[_0x5d65f1]!=='=')return![];_0x5d65f1+=0x1;while(_0x5d65f1<_0x460283['length']&&/\s/[_0x1ba6d0(0xb6)](_0x460283[_0x5d65f1]??''))_0x5d65f1+=0x1;const _0xd2e969=_0x460283[_0x5d65f1];if(_0xd2e969!=='\x22'&&_0xd2e969!=='\x27')return![];_0x5d65f1+=0x1;const _0x5f1877=_0x460283['indexOf'](_0xd2e969,_0x5d65f1);if(_0x5f1877<0x0)return![];if(decodeXmlEntities(_0x460283[_0x1ba6d0(0xd6)](_0x5d65f1,_0x5f1877))===null)return![];_0x5d65f1=_0x5f1877+0x1;}return!![];}function startsWithMybatisStatementWrapper(_0x1a1d89){const _0x496368=a237_0x5604ec;let _0x2afe53=0x0;const _0x142734=()=>{const _0x2496e6=a237_0x1552;while(_0x2afe53<_0x1a1d89[_0x2496e6(0xc7)]&&/\s/[_0x2496e6(0xb6)](_0x1a1d89[_0x2afe53]??''))_0x2afe53+=0x1;};_0x142734();while(_0x2afe53<_0x1a1d89['length']){if(_0x1a1d89[_0x496368(0x93)](_0x496368(0xc2),_0x2afe53)){const _0x3f8850=_0x1a1d89[_0x496368(0xb0)](_0x496368(0xc5),_0x2afe53+0x4);if(_0x3f8850<0x0)return!![];_0x2afe53=_0x3f8850+0x3,_0x142734();continue;}if(_0x1a1d89[_0x496368(0x93)]('<?',_0x2afe53)){const _0x5f3464=_0x1a1d89[_0x496368(0xb0)]('?>',_0x2afe53+0x2);if(_0x5f3464<0x0)return!![];_0x2afe53=_0x5f3464+0x2,_0x142734();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN[_0x496368(0xb6)](_0x1a1d89[_0x496368(0xd6)](_0x2afe53));}function invalidMybatisSource(_0x4fcb66){const _0x3b9284=a237_0x5604ec;return{'sql':'','mode':_0x3b9284(0x7f),'error':_0x4fcb66};}function findXmlTagEnd(_0x3a9f35,_0x25ee66){const _0x265c15=a237_0x5604ec;let _0x3a0d8f;for(let _0x4daf03=_0x25ee66+0x1;_0x4daf03<_0x3a9f35[_0x265c15(0xc7)];_0x4daf03+=0x1){const _0x38ad25=_0x3a9f35[_0x4daf03];if(_0x3a0d8f){if(_0x38ad25===_0x3a0d8f)_0x3a0d8f=undefined;continue;}if(_0x38ad25==='\x22'||_0x38ad25==='\x27'){_0x3a0d8f=_0x38ad25;continue;}if(_0x38ad25==='>')return _0x4daf03;}return-0x1;}function decodeXmlEntities(_0x32989e){const _0x4703dc=a237_0x5604ec;let _0x77abf9=![];const _0x488d85=_0x32989e[_0x4703dc(0x8d)](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0x435c8c=>{const _0x30e371=_0x4703dc;if(_0x435c8c===_0x30e371(0x99))return'<';if(_0x435c8c===_0x30e371(0xa2))return'>';if(_0x435c8c===_0x30e371(0xd3))return'\x22';if(_0x435c8c===_0x30e371(0x83))return'\x27';if(_0x435c8c===_0x30e371(0xd5))return'&';const _0x36fb1f=/^&#(?:x([0-9a-f]+)|([0-9]+));$/[_0x30e371(0x84)](_0x435c8c);if(_0x36fb1f){const _0x2e3985=_0x36fb1f[0x1],_0x42910a=_0x36fb1f[0x2],_0x292b72=Number[_0x30e371(0x9f)](_0x2e3985??_0x42910a??'',_0x2e3985?0x10:0xa);if(isValidXmlCharacter(_0x292b72))return String[_0x30e371(0x9a)](_0x292b72);}return _0x77abf9=!![],'';});return _0x77abf9?null:_0x488d85;}function isValidXmlCharacter(_0x3fcc54){return _0x3fcc54===0x9||_0x3fcc54===0xa||_0x3fcc54===0xd||_0x3fcc54>=0x20&&_0x3fcc54<=0xd7ff||_0x3fcc54>=0xe000&&_0x3fcc54<=0xfffd||_0x3fcc54>=0x10000&&_0x3fcc54<=0x10ffff;}export function detectSqlType(_0x3d172d){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0x3d172d));}function a237_0x1552(_0x296ff3,_0x3f99e1){_0x296ff3=_0x296ff3-0x7a;const _0x86edf4=a237_0x86ed();let _0x155276=_0x86edf4[_0x296ff3];return _0x155276;}function detectNormalizedSqlType(_0x2b8c19){const _0x578f49=a237_0x5604ec;if(_0x2b8c19['error'])return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x2b8c19[_0x578f49(0x81)]};if(!_0x2b8c19[_0x578f49(0x90)][_0x578f49(0xb8)]())return{'type':_0x578f49(0xbf),'isSelectOnly':![],'isDangerous':![],'reason':_0x578f49(0x86)};const _0x266934=stripStaticAnalysisMarkers(_0x2b8c19['sql'])[_0x578f49(0x8d)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')['replace'](/@[^(\s]+(\([^)]*\))?/g,'')[_0x578f49(0x8d)](/\/\*[\s\S]*?\*\//g,'')[_0x578f49(0xb8)](),_0x784b68=_0x266934[_0x578f49(0xd4)]('\x0a');let _0x431b61='';for(const _0x7da48b of _0x784b68){const _0x36f1e9=_0x7da48b[_0x578f49(0xb8)]();if(!_0x36f1e9||_0x36f1e9[_0x578f49(0x93)]('--')||_0x36f1e9[_0x578f49(0x93)]('/*'))continue;_0x431b61=_0x36f1e9;break;}const _0x1295df=_0x431b61[_0x578f49(0xa4)](),_0x3e9cb0=_0x2b8c19[_0x578f49(0x9c)],_0x435185=maskSqlTextForBlockedKeywordScan(_0x266934),_0x286080=/\b(DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x578f49(0xb6)](_0x435185);if(_0x3e9cb0===_0x578f49(0xa8)||!_0x3e9cb0&&(_0x1295df[_0x578f49(0x93)](_0x578f49(0xa8))||_0x1295df[_0x578f49(0x93)](_0x578f49(0xbc)))){const _0x78806f=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x578f49(0xb6)](_0x266934);return{'type':_0x578f49(0xa8),'isSelectOnly':!_0x78806f,'isDangerous':_0x78806f,'reason':_0x78806f?_0x578f49(0xae):undefined};}if(_0x3e9cb0===_0x578f49(0xd7)||!_0x3e9cb0&&_0x1295df[_0x578f49(0x93)](_0x578f49(0xd7)))return{'type':_0x578f49(0xd7),'isSelectOnly':![],'isDangerous':_0x286080,'reason':_0x286080?_0x578f49(0xd2):undefined};if(_0x3e9cb0===_0x578f49(0xd8)||!_0x3e9cb0&&_0x1295df['startsWith'](_0x578f49(0xd8)))return{'type':_0x578f49(0xd8),'isSelectOnly':![],'isDangerous':_0x286080,'reason':_0x286080?_0x578f49(0xd2):undefined};if(_0x3e9cb0===_0x578f49(0xbb)||!_0x3e9cb0&&_0x1295df[_0x578f49(0x93)](_0x578f49(0xbb)))return{'type':_0x578f49(0xbb),'isSelectOnly':![],'isDangerous':!![],'reason':_0x578f49(0x7a)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x578f49(0xb6)](_0x1295df))return{'type':_0x578f49(0xd1),'isSelectOnly':![],'isDangerous':!![],'reason':_0x578f49(0x96)};return{'type':_0x578f49(0xbf),'isSelectOnly':![],'isDangerous':![]};}function stripStaticAnalysisMarkers(_0x3b5811){const _0x50a0c4=a237_0x5604ec;return _0x3b5811[_0x50a0c4(0xde)](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x50a0c4(0xde)](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x50a0c4(0xde)](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function maskSqlTextForBlockedKeywordScan(_0x4a46d8){const _0x22cb47=a237_0x5604ec;return _0x4a46d8[_0x22cb47(0x8d)](/'(?:''|\\.|[^'])*'/g,'\x20')[_0x22cb47(0x8d)](/"(?:""|\\.|[^"])*"/g,'\x20')['replace'](/`(?:``|\\.|[^`])*`/g,'\x20')[_0x22cb47(0x8d)](/--.*$/gm,'\x20')[_0x22cb47(0x8d)](/#.*$/gm,'\x20')['replace'](/\/\*[\s\S]*?\*\//g,'\x20');}function extractTables(_0x3a899e){const _0xb0d102=a237_0x5604ec,_0x20ca00=_0x3a899e[_0xb0d102(0x8d)](/#\{[^}]*\}/g,'?')[_0xb0d102(0x8d)](/\$\{[^}]*\}/g,'?')[_0xb0d102(0x8d)](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')[_0xb0d102(0x8d)](/\/\*[\s\S]*?\*\//g,''),_0x585a9a=[],_0x5831cf=_0x20ca00['match'](/FROM\s+([^\s,)(]+)/i);addTable(_0x585a9a,_0x5831cf?.[0x1]);for(const _0x82f822 of _0x20ca00['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x585a9a,_0x82f822[0x1]);}const _0x15261e=_0x20ca00[_0xb0d102(0x8e)](/INTO\s+([^\s(]+)/i);addTable(_0x585a9a,_0x15261e?.[0x1]);const _0x5de30d=_0x20ca00['match'](/UPDATE\s+([^\s,)(]+)/i);return addTable(_0x585a9a,_0x5de30d?.[0x1]),_0x585a9a;}function addTable(_0x135db3,_0x576a3c){const _0x2e013c=a237_0x5604ec,_0x4d178f=_0x576a3c?.[_0x2e013c(0x8d)](/[`"]/g,'');_0x4d178f&&_0x4d178f!==UNRESOLVED_SQL_FRAGMENT&&!_0x135db3[_0x2e013c(0xad)](_0x4d178f)&&_0x135db3['push'](_0x4d178f);}function extractParameters(_0x10842e){const _0x420b71=a237_0x5604ec,_0xaf55a1=new Set();for(const _0x10ffa1 of _0x10842e[_0x420b71(0x9b)](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0x10ffa1[0x1])_0xaf55a1[_0x420b71(0x7e)](_0x10ffa1[0x1]);}return Array[_0x420b71(0xa9)](_0xaf55a1);}export function validateSql(_0x5b82a5){const _0x13ae36=a237_0x5604ec,_0x4fae8b=normalizeSqlForStaticAnalysis(_0x5b82a5),_0x209604=detectNormalizedSqlType(_0x4fae8b),_0x540587=stripStaticAnalysisMarkers(_0x4fae8b[_0x13ae36(0x90)]),_0x3ac43b=_0x4fae8b[_0x13ae36(0x81)]?[]:extractTables(_0x540587),_0x1e3e2c=_0x4fae8b['error']?[]:extractParameters(_0x540587);if(_0x209604['isDangerous'])return{'valid':![],'sqlType':_0x209604,'tables':_0x3ac43b,'parameters':_0x1e3e2c,'message':_0x209604[_0x13ae36(0x88)]||_0x209604[_0x13ae36(0x7d)]+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0x209604[_0x13ae36(0x7d)]===_0x13ae36(0xbf))return{'valid':![],'sqlType':_0x209604,'tables':_0x3ac43b,'parameters':_0x1e3e2c,'message':_0x4fae8b['error']?_0x13ae36(0xa7)+_0x4fae8b[_0x13ae36(0x81)]:_0x13ae36(0xce)};return{'valid':!![],'sqlType':_0x209604,'tables':_0x3ac43b,'parameters':_0x1e3e2c,'message':_0x209604[_0x13ae36(0x7d)]+'\x20query\x20targeting\x20'+(_0x3ac43b[_0x13ae36(0xc7)]?_0x3ac43b[_0x13ae36(0x92)](',\x20'):_0x13ae36(0xc6))+(_0x1e3e2c[_0x13ae36(0xc7)]?_0x13ae36(0xcf)+_0x1e3e2c[_0x13ae36(0x92)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a228_0x37aa0b=a228_0x1f62;(function(_0x360ea5,_0x3c7c76){const _0x240122=a228_0x1f62,_0xb3451=_0x360ea5();while(!![]){try{const _0x5b8138=-parseInt(_0x240122(0x142))/0x1+parseInt(_0x240122(0x14a))/0x2*(-parseInt(_0x240122(0x148))/0x3)+-parseInt(_0x240122(0x151))/0x4+parseInt(_0x240122(0x150))/0x5*(-parseInt(_0x240122(0x146))/0x6)+-parseInt(_0x240122(0x14c))/0x7*(parseInt(_0x240122(0x152))/0x8)+parseInt(_0x240122(0x144))/0x9*(parseInt(_0x240122(0x153))/0xa)+parseInt(_0x240122(0x145))/0xb;if(_0x5b8138===_0x3c7c76)break;else _0xb3451['push'](_0xb3451['shift']());}catch(_0xeb4624){_0xb3451['push'](_0xb3451['shift']());}}}(a228_0x3390,0x1bb80));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a228_0x1f62(_0x2f5b7f,_0x201964){_0x2f5b7f=_0x2f5b7f-0x142;const _0x339027=a228_0x3390();let _0x1f6218=_0x339027[_0x2f5b7f];return _0x1f6218;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a228_0x37aa0b(0x14d)+CLI_BIN_NAME+a228_0x37aa0b(0x14b),'configMissingHint':[a228_0x37aa0b(0x147)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.',a228_0x37aa0b(0x14f)+CLI_BIN_NAME+a228_0x37aa0b(0x14e)][a228_0x37aa0b(0x149)](a228_0x37aa0b(0x143)),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});function a228_0x3390(){const _0x3a64aa=['\x20auth`\x20to\x20login\x20first.','14tBLrRi','Run\x20`','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','Tip:\x20`','63925zMQXda','490472qVHYDB','158856lRyPTE','6920CYfoJv','213590miwFZW','\x0a\x20\x20\x20\x20\x20\x20\x20','2079RcvoSv','4536730PzHYtc','6BVtiOm','Set\x20appcode\x20via\x20`','3qUujft','join','140078UbqVvM'];a228_0x3390=function(){return _0x3a64aa;};return a228_0x3390();}
1
+ const a238_0x308753=a238_0x15dd;(function(_0x25fff0,_0x43f2d2){const _0xd82235=a238_0x15dd,_0xa925be=_0x25fff0();while(!![]){try{const _0x3401fd=parseInt(_0xd82235(0x1bb))/0x1*(-parseInt(_0xd82235(0x1bd))/0x2)+parseInt(_0xd82235(0x1b6))/0x3*(parseInt(_0xd82235(0x1b5))/0x4)+parseInt(_0xd82235(0x1b7))/0x5*(parseInt(_0xd82235(0x1ba))/0x6)+parseInt(_0xd82235(0x1c2))/0x7+-parseInt(_0xd82235(0x1b8))/0x8+parseInt(_0xd82235(0x1b3))/0x9+parseInt(_0xd82235(0x1c1))/0xa*(parseInt(_0xd82235(0x1b9))/0xb);if(_0x3401fd===_0x43f2d2)break;else _0xa925be['push'](_0xa925be['shift']());}catch(_0x40cce0){_0xa925be['push'](_0xa925be['shift']());}}}(a238_0x4c09,0xc80b1));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a238_0x15dd(_0x12eac3,_0x537c32){_0x12eac3=_0x12eac3-0x1b3;const _0x4c09a0=a238_0x4c09();let _0x15dddd=_0x4c09a0[_0x12eac3];return _0x15dddd;}import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a238_0x4c09(){const _0x46378a=['230717ExUOyV','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','8VLMIeq','Set\x20appcode\x20via\x20`','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','Run\x20`','10ccXUJr','5233109CdTdqV','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','2872818zaSVah','\x0a\x20\x20\x20\x20\x20\x20\x20','98524mvCwFN','12aJvCXD','10nYfTsM','9618256dTadcP','9632106obGHeN','2710704OPhwMR'];a238_0x4c09=function(){return _0x46378a;};return a238_0x4c09();}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a238_0x308753(0x1c0)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':[a238_0x308753(0x1be)+CLI_BIN_NAME+a238_0x308753(0x1bc),'Tip:\x20`'+CLI_BIN_NAME+a238_0x308753(0x1c3)]['join'](a238_0x308753(0x1b4)),'notInProjectHint':a238_0x308753(0x1bf)});
@@ -1 +1 @@
1
- (function(_0x11d697,_0x4cb6b1){const _0x5e967d=a229_0x4aa0,_0x54705b=_0x11d697();while(!![]){try{const _0x189a38=-parseInt(_0x5e967d(0x1f4))/0x1+parseInt(_0x5e967d(0x1f3))/0x2+parseInt(_0x5e967d(0x1fa))/0x3+parseInt(_0x5e967d(0x1f2))/0x4+parseInt(_0x5e967d(0x1fb))/0x5*(-parseInt(_0x5e967d(0x1fc))/0x6)+parseInt(_0x5e967d(0x1f9))/0x7+-parseInt(_0x5e967d(0x1f5))/0x8;if(_0x189a38===_0x4cb6b1)break;else _0x54705b['push'](_0x54705b['shift']());}catch(_0x26bfbc){_0x54705b['push'](_0x54705b['shift']());}}}(a229_0x3c66,0x6f98f));function a229_0x3c66(){const _0x4ef2fb=['map','4110533EYPNfg','1008768aqIjGQ','5hVHAVy','253458MgShTW','798052jqLtJA','933532bXXDOM','524051ZPoKPw','4530856LTQNAf','name','yes'];a229_0x3c66=function(){return _0x4ef2fb;};return a229_0x3c66();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a229_0x4aa0(_0x5ea661,_0x5970dc){_0x5ea661=_0x5ea661-0x1f2;const _0x3c66f5=a229_0x3c66();let _0x4aa025=_0x3c66f5[_0x5ea661];return _0x4aa025;}import{buildAllFlags as a229_0x3790ff}from'@lovrabet/cli-framework';import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';export function buildAllFlags(_0x3a732f){const _0x56c10f=a229_0x4aa0,_0x12d2c6=a229_0x3790ff(_0x3a732f,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0x3a732f))return _0x12d2c6;return _0x12d2c6[_0x56c10f(0x1f8)](_0x4e1521=>_0x4e1521[_0x56c10f(0x1f6)]===_0x56c10f(0x1f7)?{..._0x4e1521,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x4e1521);}
1
+ (function(_0x48bbd1,_0xf81bc){const _0x217797=a239_0x3677,_0x226dc8=_0x48bbd1();while(!![]){try{const _0x60ffc3=-parseInt(_0x217797(0x1af))/0x1*(parseInt(_0x217797(0x1ac))/0x2)+-parseInt(_0x217797(0x1aa))/0x3+-parseInt(_0x217797(0x1b2))/0x4*(parseInt(_0x217797(0x1ab))/0x5)+-parseInt(_0x217797(0x1b1))/0x6+parseInt(_0x217797(0x1b3))/0x7+-parseInt(_0x217797(0x1ae))/0x8+parseInt(_0x217797(0x1ad))/0x9;if(_0x60ffc3===_0xf81bc)break;else _0x226dc8['push'](_0x226dc8['shift']());}catch(_0x3e7b8e){_0x226dc8['push'](_0x226dc8['shift']());}}}(a239_0x4d91,0xf34bc));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a239_0x5b9966}from'@lovrabet/cli-framework';import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';export function buildAllFlags(_0x1571d1){const _0x17150e=a239_0x3677,_0x28e46c=a239_0x5b9966(_0x1571d1,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0x1571d1))return _0x28e46c;return _0x28e46c[_0x17150e(0x1b0)](_0x1a2cb3=>_0x1a2cb3['name']===_0x17150e(0x1b4)?{..._0x1a2cb3,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x1a2cb3);}function a239_0x3677(_0x4f74b6,_0x4c4fbb){_0x4f74b6=_0x4f74b6-0x1aa;const _0x4d9156=a239_0x4d91();let _0x3677f9=_0x4d9156[_0x4f74b6];return _0x3677f9;}function a239_0x4d91(){const _0x478597=['1455466EzYUEH','28255995gaXNuu','8494488sfCUbe','1iclYuX','map','2305524VSvTyh','44428AwhYOB','13026706ZLSovi','yes','5290599lpwMWU','30eLmLKE'];a239_0x4d91=function(){return _0x478597;};return a239_0x4d91();}
@@ -1 +1 @@
1
- (function(_0x93efca,_0x2fbc24){var _0x879773=a230_0x1ba6,_0x4650a4=_0x93efca();while(!![]){try{var _0x1080a0=-parseInt(_0x879773(0x174))/0x1+parseInt(_0x879773(0x175))/0x2*(parseInt(_0x879773(0x181))/0x3)+-parseInt(_0x879773(0x17f))/0x4+-parseInt(_0x879773(0x179))/0x5+-parseInt(_0x879773(0x17c))/0x6*(parseInt(_0x879773(0x17a))/0x7)+-parseInt(_0x879773(0x17d))/0x8*(-parseInt(_0x879773(0x178))/0x9)+parseInt(_0x879773(0x17e))/0xa*(parseInt(_0x879773(0x17b))/0xb);if(_0x1080a0===_0x2fbc24)break;else _0x4650a4['push'](_0x4650a4['shift']());}catch(_0x385da1){_0x4650a4['push'](_0x4650a4['shift']());}}}(a230_0x27af,0x31052));function a230_0x1ba6(_0x16b3e1,_0x502e8d){_0x16b3e1=_0x16b3e1-0x174;var _0x27af41=a230_0x27af();var _0x1ba699=_0x27af41[_0x16b3e1];return _0x1ba699;}import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x58b46a){var _0x29eda0=a230_0x1ba6;return _0x58b46a?.[_0x29eda0(0x176)]===!![];}function a230_0x27af(){var _0x53128e=['3815sjRCOa','99VcvDgU','2868NUfycI','48Jgpmuq','242380Uouwnp','115524SgUMVv','def','33ANjXFa','defaultFormat','280422CcldNG','41114fnHzmD','structuredErrors','format','510561lHtzDS','70220xGfDnE'];a230_0x27af=function(){return _0x53128e;};return a230_0x27af();}export function resolveErrorOutputFormat(_0x120e6c){var _0x22eef4=a230_0x1ba6;if(!_0x120e6c[_0x22eef4(0x180)])return _0x120e6c[_0x22eef4(0x182)]??'compress';return resolveOutputConfig({'flags':_0x120e6c['flags']??{},'def':_0x120e6c[_0x22eef4(0x180)],'configDefault':_0x120e6c[_0x22eef4(0x182)]})[_0x22eef4(0x177)];}
1
+ function a240_0x3212(_0x20864b,_0x1b922b){_0x20864b=_0x20864b-0x1e3;var _0x10fd53=a240_0x10fd();var _0x3212ca=_0x10fd53[_0x20864b];return _0x3212ca;}(function(_0x8f8da8,_0x1713d9){var _0x219050=a240_0x3212,_0x4a917a=_0x8f8da8();while(!![]){try{var _0xb2362c=parseInt(_0x219050(0x1eb))/0x1*(parseInt(_0x219050(0x1e5))/0x2)+parseInt(_0x219050(0x1f0))/0x3+parseInt(_0x219050(0x1e6))/0x4+parseInt(_0x219050(0x1e8))/0x5*(parseInt(_0x219050(0x1e4))/0x6)+-parseInt(_0x219050(0x1ed))/0x7+-parseInt(_0x219050(0x1ef))/0x8+-parseInt(_0x219050(0x1ea))/0x9*(parseInt(_0x219050(0x1ee))/0xa);if(_0xb2362c===_0x1713d9)break;else _0x4a917a['push'](_0x4a917a['shift']());}catch(_0x4b2124){_0x4a917a['push'](_0x4a917a['shift']());}}}(a240_0x10fd,0xbb67d));import{resolveOutputConfig}from'@lovrabet/cli-framework';function a240_0x10fd(){var _0x461620=['2268096caveZJ','1586130PmXGmO','compress','222FiVPlT','62JaPjsF','1972112xTMngu','def','171905hWXcjt','defaultFormat','2339820oZgdgm','12211KjaUwH','structuredErrors','5889177LsPlml','30cTZJSr'];a240_0x10fd=function(){return _0x461620;};return a240_0x10fd();}export function usesStructuredErrorOutput(_0x200c11){var _0x25443e=a240_0x3212;return _0x200c11?.[_0x25443e(0x1ec)]===!![];}export function resolveErrorOutputFormat(_0x52bd5c){var _0x42e07a=a240_0x3212;if(!_0x52bd5c[_0x42e07a(0x1e7)])return _0x52bd5c[_0x42e07a(0x1e9)]??_0x42e07a(0x1e3);return resolveOutputConfig({'flags':_0x52bd5c['flags']??{},'def':_0x52bd5c[_0x42e07a(0x1e7)],'configDefault':_0x52bd5c[_0x42e07a(0x1e9)]})['format'];}
@@ -1 +1 @@
1
- const a231_0x2a3236=a231_0x5355;function a231_0x5296(){const _0x2bd53d=['889677ycMfze','18Nmqkyu','menu\x20delete','kb\x20create','service','11VmsVsQ','1107325BXQZmJ','1028vWVAYG','7FbRpVU','has','8QUibww','50qAxMNT','3938052IdVkaH','150362tHJiBq','966693tZuCkX','menu\x20external-link-update','menu\x20regroup-start','7035ioXOWG','2200384dEbhHl'];a231_0x5296=function(){return _0x2bd53d;};return a231_0x5296();}function a231_0x5355(_0x18772f,_0x2cf660){_0x18772f=_0x18772f-0x1cb;const _0x52964b=a231_0x5296();let _0x535563=_0x52964b[_0x18772f];return _0x535563;}(function(_0x1cb60c,_0x1652eb){const _0x1afa8f=a231_0x5355,_0x182006=_0x1cb60c();while(!![]){try{const _0x1e67f2=-parseInt(_0x1afa8f(0x1d7))/0x1*(parseInt(_0x1afa8f(0x1d4))/0x2)+parseInt(_0x1afa8f(0x1db))/0x3*(parseInt(_0x1afa8f(0x1d1))/0x4)+-parseInt(_0x1afa8f(0x1d0))/0x5*(parseInt(_0x1afa8f(0x1cb))/0x6)+-parseInt(_0x1afa8f(0x1d2))/0x7*(-parseInt(_0x1afa8f(0x1dc))/0x8)+-parseInt(_0x1afa8f(0x1dd))/0x9*(-parseInt(_0x1afa8f(0x1d5))/0xa)+-parseInt(_0x1afa8f(0x1cf))/0xb*(-parseInt(_0x1afa8f(0x1d6))/0xc)+-parseInt(_0x1afa8f(0x1d8))/0xd;if(_0x1e67f2===_0x1652eb)break;else _0x182006['push'](_0x182006['shift']());}catch(_0x37f631){_0x182006['push'](_0x182006['shift']());}}}(a231_0x5296,0x57e09));const EXPLICIT_YES_COMMANDS=new Set([a231_0x2a3236(0x1d9),a231_0x2a3236(0x1cc),a231_0x2a3236(0x1da),a231_0x2a3236(0x1cd),'kb\x20update','kb\x20delete']);export const EXPLICIT_YES_FLAG_DESCRIPTION='Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan';export function requiresExplicitYes(_0x46ba46){const _0xce8d25=a231_0x2a3236;return EXPLICIT_YES_COMMANDS[_0xce8d25(0x1d3)](_0x46ba46[_0xce8d25(0x1ce)]+'\x20'+_0x46ba46['command']);}
1
+ const a241_0x2210f0=a241_0x5af9;(function(_0x284e50,_0x4c34ef){const _0x3c3cb5=a241_0x5af9,_0x2b6eac=_0x284e50();while(!![]){try{const _0x29aa45=-parseInt(_0x3c3cb5(0x1f2))/0x1+-parseInt(_0x3c3cb5(0x1ec))/0x2+-parseInt(_0x3c3cb5(0x1ef))/0x3*(-parseInt(_0x3c3cb5(0x1ea))/0x4)+-parseInt(_0x3c3cb5(0x1f5))/0x5+parseInt(_0x3c3cb5(0x1f6))/0x6+-parseInt(_0x3c3cb5(0x1f0))/0x7+-parseInt(_0x3c3cb5(0x1f7))/0x8*(-parseInt(_0x3c3cb5(0x1ee))/0x9);if(_0x29aa45===_0x4c34ef)break;else _0x2b6eac['push'](_0x2b6eac['shift']());}catch(_0x4fa52f){_0x2b6eac['push'](_0x2b6eac['shift']());}}}(a241_0x358b,0xb2b59));const EXPLICIT_YES_COMMANDS=new Set([a241_0x2210f0(0x1eb),'menu\x20delete',a241_0x2210f0(0x1ed),'kb\x20create','kb\x20update',a241_0x2210f0(0x1f1)]);function a241_0x358b(){const _0x3e4610=['menu\x20regroup-start','24741ZzLaIp','1204506QaEZTy','9476796ISPqpv','kb\x20delete','233343wIGEkn','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan','command','5558470vngaNR','6806418zrKUGc','6584HbosTD','has','4trtbYZ','menu\x20external-link-update','734948BLwHqy'];a241_0x358b=function(){return _0x3e4610;};return a241_0x358b();}export const EXPLICIT_YES_FLAG_DESCRIPTION=a241_0x2210f0(0x1f3);function a241_0x5af9(_0x18501e,_0x78c93a){_0x18501e=_0x18501e-0x1e9;const _0x358b51=a241_0x358b();let _0x5af9c4=_0x358b51[_0x18501e];return _0x5af9c4;}export function requiresExplicitYes(_0x52f5b0){const _0x37f2b3=a241_0x2210f0;return EXPLICIT_YES_COMMANDS[_0x37f2b3(0x1e9)](_0x52f5b0['service']+'\x20'+_0x52f5b0[_0x37f2b3(0x1f4)]);}
@@ -1 +1 @@
1
- const a232_0x1e7507=a232_0x53aa;(function(_0x40a746,_0x4b5640){const _0x447fc3=a232_0x53aa,_0x186103=_0x40a746();while(!![]){try{const _0x38db64=-parseInt(_0x447fc3(0xdc))/0x1*(-parseInt(_0x447fc3(0xd9))/0x2)+-parseInt(_0x447fc3(0xde))/0x3*(-parseInt(_0x447fc3(0xd7))/0x4)+-parseInt(_0x447fc3(0xda))/0x5+-parseInt(_0x447fc3(0xdf))/0x6+parseInt(_0x447fc3(0xdd))/0x7+-parseInt(_0x447fc3(0xd8))/0x8*(-parseInt(_0x447fc3(0xd4))/0x9)+parseInt(_0x447fc3(0xd6))/0xa*(-parseInt(_0x447fc3(0xd5))/0xb);if(_0x38db64===_0x4b5640)break;else _0x186103['push'](_0x186103['shift']());}catch(_0x1934f4){_0x186103['push'](_0x186103['shift']());}}}(a232_0x58f1,0xa65c2));import{createFlagHelpers}from'@lovrabet/cli-framework';function a232_0x53aa(_0x5d7fa6,_0x472510){_0x5d7fa6=_0x5d7fa6-0xd4;const _0x58f18c=a232_0x58f1();let _0x53aacc=_0x58f18c[_0x5d7fa6];return _0x53aacc;}function a232_0x58f1(){const _0x1f126e=['504205AgmnBt','validateFlags','289175GjZzds','9235051iaNeiA','469083DfxtlD','8082174jivMBF','1970379vpWPXv','2431GQWzuz','44360QItCGC','16yuqEhz','32oWRhmn','2ZezkXG'];a232_0x58f1=function(){return _0x1f126e;};return a232_0x58f1();}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a232_0x1e7507(0xdb)];
1
+ function a242_0xc30f(_0xe4dcc6,_0xf7ad4f){_0xe4dcc6=_0xe4dcc6-0x1e8;const _0x137197=a242_0x1371();let _0xc30f=_0x137197[_0xe4dcc6];return _0xc30f;}const a242_0x12d4c9=a242_0xc30f;(function(_0x370c83,_0x591b42){const _0x55e8b4=a242_0xc30f,_0x1b7918=_0x370c83();while(!![]){try{const _0x44b468=parseInt(_0x55e8b4(0x1f3))/0x1+-parseInt(_0x55e8b4(0x1ec))/0x2*(-parseInt(_0x55e8b4(0x1e8))/0x3)+parseInt(_0x55e8b4(0x1ea))/0x4*(parseInt(_0x55e8b4(0x1f2))/0x5)+-parseInt(_0x55e8b4(0x1ee))/0x6*(-parseInt(_0x55e8b4(0x1f1))/0x7)+-parseInt(_0x55e8b4(0x1eb))/0x8+parseInt(_0x55e8b4(0x1ef))/0x9*(parseInt(_0x55e8b4(0x1ed))/0xa)+parseInt(_0x55e8b4(0x1e9))/0xb*(-parseInt(_0x55e8b4(0x1f4))/0xc);if(_0x44b468===_0x591b42)break;else _0x1b7918['push'](_0x1b7918['shift']());}catch(_0x285da0){_0x1b7918['push'](_0x1b7918['shift']());}}}(a242_0x1371,0x42c19));import{createFlagHelpers}from'@lovrabet/cli-framework';function a242_0x1371(){const _0x296593=['3308120KMMYde','1019890AgRwoi','10LluNGR','104574sEOihN','1264707wXqgwh','validateFlags','35GiKVHb','10TYaazG','186718gzVnVU','1778964MSdUNQ','3nyzafW','33VdIxqa','414716dMqDCu'];a242_0x1371=function(){return _0x296593;};return a242_0x1371();}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a242_0x12d4c9(0x1f0)];
@@ -1 +1 @@
1
- const a233_0x424faa=a233_0x3429;(function(_0x4bcf59,_0x38b13a){const _0x3edeeb=a233_0x3429,_0x5f48ee=_0x4bcf59();while(!![]){try{const _0x44a5b6=-parseInt(_0x3edeeb(0xb8))/0x1*(-parseInt(_0x3edeeb(0xb4))/0x2)+parseInt(_0x3edeeb(0xa9))/0x3*(-parseInt(_0x3edeeb(0xb5))/0x4)+-parseInt(_0x3edeeb(0xb3))/0x5*(-parseInt(_0x3edeeb(0xa7))/0x6)+-parseInt(_0x3edeeb(0xab))/0x7+-parseInt(_0x3edeeb(0xa5))/0x8*(parseInt(_0x3edeeb(0xaa))/0x9)+parseInt(_0x3edeeb(0xad))/0xa*(parseInt(_0x3edeeb(0xaf))/0xb)+-parseInt(_0x3edeeb(0xa8))/0xc*(-parseInt(_0x3edeeb(0xae))/0xd);if(_0x44a5b6===_0x38b13a)break;else _0x5f48ee['push'](_0x5f48ee['shift']());}catch(_0x1d7d16){_0x5f48ee['push'](_0x5f48ee['shift']());}}}(a233_0x273e,0xa7b0f));import{createHelpGenerators}from'@lovrabet/cli-framework';function a233_0x273e(){const _0x4fd53f=['132toIHSH','996vtIycH','3KGaPwp','18odOrgJ','2554552FMvybe','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','924190akxvqS','66547EoycBD','143hswBmU','Requires\x20appcode\x20(set\x20via\x20`','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.','\x20[args]\x20[flags]','91505eElsRZ','878fiScCI','3837292YJycpD','replace','generateCommandHelp','54ZZAEbF','generateServiceHelp','166120eWKvGU','generateFullHelp'];a233_0x273e=function(){return _0x4fd53f;};return a233_0x273e();}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';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x23521b=>serviceGroups['get'](_0x23521b),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a233_0x424faa(0xb0)+CLI_BIN_NAME+'\x20workspace\x20init`\x20or\x20--appcode).','serviceUsageSuffix':a233_0x424faa(0xb2)});function a233_0x3429(_0x490994,_0x55f6c1){_0x490994=_0x490994-0xa4;const _0x273e4f=a233_0x273e();let _0x3429da=_0x273e4f[_0x490994];return _0x3429da;}export function generateCommandHelp(_0x15320b){const _0x1550fe=a233_0x424faa,_0x555eec=generators[_0x1550fe(0xb7)](_0x15320b);if(!requiresExplicitYes(_0x15320b))return _0x555eec;return _0x555eec[_0x1550fe(0xb6)](_0x1550fe(0xac),_0x1550fe(0xb1));}export const generateServiceHelp=generators[a233_0x424faa(0xa4)];export const generateFullHelp=generators[a233_0x424faa(0xa6)];
1
+ const a243_0x2f11b2=a243_0x28c8;(function(_0x21ffea,_0x2bbb6a){const _0x55de2f=a243_0x28c8,_0x420ab4=_0x21ffea();while(!![]){try{const _0x1194b8=-parseInt(_0x55de2f(0x12e))/0x1+parseInt(_0x55de2f(0x126))/0x2+-parseInt(_0x55de2f(0x12a))/0x3*(parseInt(_0x55de2f(0x123))/0x4)+parseInt(_0x55de2f(0x11c))/0x5*(-parseInt(_0x55de2f(0x12f))/0x6)+parseInt(_0x55de2f(0x122))/0x7*(-parseInt(_0x55de2f(0x12b))/0x8)+parseInt(_0x55de2f(0x12c))/0x9+parseInt(_0x55de2f(0x11f))/0xa*(parseInt(_0x55de2f(0x120))/0xb);if(_0x1194b8===_0x2bbb6a)break;else _0x420ab4['push'](_0x420ab4['shift']());}catch(_0x36bac3){_0x420ab4['push'](_0x420ab4['shift']());}}}(a243_0x393f,0xf2dd3));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';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x3e08a3=>serviceGroups[a243_0x2f11b2(0x125)](_0x3e08a3),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a243_0x2f11b2(0x129)+CLI_BIN_NAME+a243_0x2f11b2(0x121),'serviceUsageSuffix':'\x20[args]\x20[flags]'});export function generateCommandHelp(_0xbea995){const _0x1c3247=a243_0x2f11b2,_0x5d9bdb=generators[_0x1c3247(0x127)](_0xbea995);if(!requiresExplicitYes(_0xbea995))return _0x5d9bdb;return _0x5d9bdb[_0x1c3247(0x12d)](_0x1c3247(0x124),_0x1c3247(0x128));}function a243_0x393f(){const _0x235d52=['\x20workspace\x20init`\x20or\x20--appcode).','23947zWaLos','788QFPkJw','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','get','638264AdjbPS','generateCommandHelp','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.','Requires\x20appcode\x20(set\x20via\x20`','579trXPtV','3768QrmNpr','5178447MtqJXF','replace','521888OQopTi','810cSsyJT','1570kRVIOL','generateFullHelp','generateServiceHelp','21870OPRlQN','11638kEkSGW'];a243_0x393f=function(){return _0x235d52;};return a243_0x393f();}function a243_0x28c8(_0x5d3bfc,_0x4a6a44){_0x5d3bfc=_0x5d3bfc-0x11c;const _0x393fe4=a243_0x393f();let _0x28c835=_0x393fe4[_0x5d3bfc];return _0x28c835;}export const generateServiceHelp=generators[a243_0x2f11b2(0x11e)];export const generateFullHelp=generators[a243_0x2f11b2(0x11d)];
@@ -1 +1 @@
1
- (function(_0x590d90,_0x3c8410){var _0x32333d=a234_0x3b43,_0x58299b=_0x590d90();while(!![]){try{var _0x3e6946=parseInt(_0x32333d(0x1cb))/0x1+parseInt(_0x32333d(0x1c9))/0x2+-parseInt(_0x32333d(0x1c3))/0x3+parseInt(_0x32333d(0x1cc))/0x4*(parseInt(_0x32333d(0x1c4))/0x5)+parseInt(_0x32333d(0x1c7))/0x6*(-parseInt(_0x32333d(0x1c6))/0x7)+-parseInt(_0x32333d(0x1c2))/0x8*(parseInt(_0x32333d(0x1c8))/0x9)+parseInt(_0x32333d(0x1ca))/0xa*(-parseInt(_0x32333d(0x1c5))/0xb);if(_0x3e6946===_0x3c8410)break;else _0x58299b['push'](_0x58299b['shift']());}catch(_0x5f38bc){_0x58299b['push'](_0x58299b['shift']());}}}(a234_0x1150,0xe0045));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a234_0x1150(){var _0x581760=['77dzvtwv','97972cOeRtC','114YLqbsy','225MSbSEf','3143904NEcSti','622770APxbPn','1550287eSceoK','6452024wroxRZ','548832zKdxNz','4202127iPaZyW','5kDXuYH'];a234_0x1150=function(){return _0x581760;};return a234_0x1150();}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';function a234_0x3b43(_0x1919ca,_0x5d7f25){_0x1919ca=_0x1919ca-0x1c2;var _0x115057=a234_0x1150();var _0x3b43d6=_0x115057[_0x1919ca];return _0x3b43d6;}export{riskLevelOrder}from'../framework/types.js';
1
+ (function(_0x415c8c,_0x5a8be8){var _0x94b363=a244_0x3c26,_0x37c99b=_0x415c8c();while(!![]){try{var _0x1e7588=-parseInt(_0x94b363(0x167))/0x1+-parseInt(_0x94b363(0x162))/0x2*(parseInt(_0x94b363(0x161))/0x3)+-parseInt(_0x94b363(0x164))/0x4+parseInt(_0x94b363(0x163))/0x5+parseInt(_0x94b363(0x165))/0x6+parseInt(_0x94b363(0x166))/0x7*(-parseInt(_0x94b363(0x168))/0x8)+parseInt(_0x94b363(0x169))/0x9;if(_0x1e7588===_0x5a8be8)break;else _0x37c99b['push'](_0x37c99b['shift']());}catch(_0x5105bd){_0x37c99b['push'](_0x37c99b['shift']());}}}(a244_0x4d61,0x211ac));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a244_0x4d61(){var _0x2595fb=['14BkhAUH','211331koeImf','190024FHfgXl','2678319DRbZzu','1113xwWBrr','84qaabvC','747190pULHBO','1048876buHmOm','1351230syegpX'];a244_0x4d61=function(){return _0x2595fb;};return a244_0x4d61();}export{formatOutput}from'../framework/output.js';function a244_0x3c26(_0x1dd3c0,_0x4d6c14){_0x1dd3c0=_0x1dd3c0-0x161;var _0x4d61af=a244_0x4d61();var _0x3c26fc=_0x4d61af[_0x1dd3c0];return _0x3c26fc;}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';