@lovrabet/rabetbase-cli 2.2.4-beta.5 → 2.2.4-beta.6

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 (209) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/extend-update.js +1 -1
  55. package/lib/commands/dataset/field-update.js +1 -1
  56. package/lib/commands/dataset/index.js +1 -1
  57. package/lib/commands/dataset/list.js +1 -1
  58. package/lib/commands/dataset/operations.js +1 -1
  59. package/lib/commands/dataset/relation-create.js +1 -1
  60. package/lib/commands/dataset/relation-delete.js +1 -1
  61. package/lib/commands/dataset/relation-shared.js +1 -1
  62. package/lib/commands/dataset/relation-update.js +1 -1
  63. package/lib/commands/dataset/relations.js +1 -1
  64. package/lib/commands/dataset/rename.js +1 -1
  65. package/lib/commands/db/analyze-cancel.js +1 -1
  66. package/lib/commands/db/analyze-start.js +1 -1
  67. package/lib/commands/db/analyze-status.js +1 -1
  68. package/lib/commands/db/create.js +1 -1
  69. package/lib/commands/db/delete.js +1 -1
  70. package/lib/commands/db/detail.js +1 -1
  71. package/lib/commands/db/diff.js +1 -1
  72. package/lib/commands/db/index.js +1 -1
  73. package/lib/commands/db/list.js +1 -1
  74. package/lib/commands/db/shared.js +1 -1
  75. package/lib/commands/db/tables.js +1 -1
  76. package/lib/commands/db/test.js +1 -1
  77. package/lib/commands/db/update.js +1 -1
  78. package/lib/commands/doctor.js +1 -1
  79. package/lib/commands/init/index.js +1 -1
  80. package/lib/commands/issue/index.js +1 -1
  81. package/lib/commands/issue/nudge.js +1 -1
  82. package/lib/commands/issue/report.js +1 -1
  83. package/lib/commands/issue/shared.js +1 -1
  84. package/lib/commands/logs/index.js +1 -1
  85. package/lib/commands/menu/index.js +1 -1
  86. package/lib/commands/menu/list.js +1 -1
  87. package/lib/commands/menu/shared/compare-table.js +1 -1
  88. package/lib/commands/menu/shared/index.js +1 -1
  89. package/lib/commands/menu/shared/inquirer.js +1 -1
  90. package/lib/commands/menu/shared/local-pages.js +1 -1
  91. package/lib/commands/menu/shared/logic.js +1 -1
  92. package/lib/commands/menu/shared/service.js +1 -1
  93. package/lib/commands/menu/shared/sync-core.js +1 -1
  94. package/lib/commands/menu/shared/update-core.js +1 -1
  95. package/lib/commands/menu/shared/valid-url.js +1 -1
  96. package/lib/commands/menu/sync.js +1 -1
  97. package/lib/commands/menu/update.js +1 -1
  98. package/lib/commands/page/generate-start.js +1 -1
  99. package/lib/commands/page/generate-status.js +1 -1
  100. package/lib/commands/page/index.js +1 -1
  101. package/lib/commands/page/pull.js +1 -1
  102. package/lib/commands/page/push.js +1 -1
  103. package/lib/commands/page/relation-audit.js +1 -1
  104. package/lib/commands/page/shared.js +1 -1
  105. package/lib/commands/page/standard-page-status.js +1 -1
  106. package/lib/commands/page/sync.js +1 -1
  107. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  108. package/lib/commands/project/create/format-elapsed.js +1 -1
  109. package/lib/commands/project/create/main.js +1 -1
  110. package/lib/commands/project/create/non-interactive.js +1 -1
  111. package/lib/commands/project/create/project-template-path.js +1 -1
  112. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  113. package/lib/commands/project/create/use-format-code.js +1 -1
  114. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  115. package/lib/commands/project/index.js +1 -1
  116. package/lib/commands/project/init.js +1 -1
  117. package/lib/commands/project/upgrade.js +1 -1
  118. package/lib/commands/registry.js +1 -1
  119. package/lib/commands/run/index.js +1 -1
  120. package/lib/commands/schema.js +1 -1
  121. package/lib/commands/skill/index.js +1 -1
  122. package/lib/commands/sql/create.js +1 -1
  123. package/lib/commands/sql/delete.js +1 -1
  124. package/lib/commands/sql/detail.js +1 -1
  125. package/lib/commands/sql/exec.js +1 -1
  126. package/lib/commands/sql/index.js +1 -1
  127. package/lib/commands/sql/list.js +1 -1
  128. package/lib/commands/sql/pull.js +1 -1
  129. package/lib/commands/sql/push.js +1 -1
  130. package/lib/commands/sql/save.js +1 -1
  131. package/lib/commands/sql/shared.js +1 -1
  132. package/lib/commands/sql/status.js +1 -1
  133. package/lib/commands/sql/validate.js +1 -1
  134. package/lib/commands/workspace/index.js +1 -0
  135. package/lib/config/schema.js +1 -1
  136. package/lib/constant/cdn.js +1 -1
  137. package/lib/constant/cli.js +1 -1
  138. package/lib/constant/defaults.js +1 -1
  139. package/lib/constant/domain.js +1 -1
  140. package/lib/constant/env.js +1 -1
  141. package/lib/constant/output.js +1 -1
  142. package/lib/constant/paths.js +1 -1
  143. package/lib/constant/risk.js +1 -1
  144. package/lib/context/app-resolver.js +1 -1
  145. package/lib/context/auth-resolver.js +1 -1
  146. package/lib/context/config-loader.js +1 -1
  147. package/lib/context.js +1 -1
  148. package/lib/core/alias-resolver.js +1 -1
  149. package/lib/core/api-client.js +1 -1
  150. package/lib/core/bff/config.js +1 -1
  151. package/lib/core/bff/file-system.js +1 -1
  152. package/lib/core/bff/hash.js +1 -1
  153. package/lib/core/bff/lock.js +1 -1
  154. package/lib/core/bff/utils.js +1 -1
  155. package/lib/core/db-resolver.js +1 -1
  156. package/lib/core/page/file-system.js +1 -1
  157. package/lib/core/page/hash.js +1 -1
  158. package/lib/core/page/lock.js +1 -1
  159. package/lib/core/sql-sync/config.js +1 -1
  160. package/lib/core/sql-sync/file-system.js +1 -1
  161. package/lib/core/sql-sync/hash.js +1 -1
  162. package/lib/core/sql-sync/lock.js +1 -1
  163. package/lib/core/sql-sync/utils.js +1 -1
  164. package/lib/core/sql-validator.js +1 -1
  165. package/lib/errors.js +1 -1
  166. package/lib/framework/build-all-flags.js +1 -1
  167. package/lib/framework/flags.js +1 -1
  168. package/lib/framework/help.js +1 -1
  169. package/lib/framework/index.js +1 -1
  170. package/lib/framework/output.js +1 -1
  171. package/lib/framework/response.js +1 -1
  172. package/lib/framework/runner-alias.js +1 -1
  173. package/lib/framework/runner.js +1 -1
  174. package/lib/framework/schema-export.js +1 -1
  175. package/lib/framework/types.js +1 -1
  176. package/lib/generated/build-info.js +1 -1
  177. package/lib/help.js +1 -1
  178. package/lib/skills/main.js +1 -1
  179. package/lib/skills/npx-skills-add.js +1 -1
  180. package/lib/telemetry/cli-command-trace.js +1 -1
  181. package/lib/telemetry/cli-help-trace.js +1 -1
  182. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  183. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  184. package/lib/telemetry/send-cli-trace-log.js +1 -1
  185. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  186. package/lib/utils/ai_config.js +1 -1
  187. package/lib/utils/apply-jq-filter.js +1 -1
  188. package/lib/utils/cdn-config.js +1 -1
  189. package/lib/utils/check-sdk-version.js +1 -1
  190. package/lib/utils/cli-version-check.js +1 -1
  191. package/lib/utils/cli-version-policy.js +1 -1
  192. package/lib/utils/config.js +1 -1
  193. package/lib/utils/copy-directory.js +1 -1
  194. package/lib/utils/entity-with-id.js +1 -1
  195. package/lib/utils/file-utils.js +1 -1
  196. package/lib/utils/guides-cdn.js +1 -1
  197. package/lib/utils/http-client.js +1 -1
  198. package/lib/utils/is-non-interactive.js +1 -1
  199. package/lib/utils/logger.js +1 -1
  200. package/lib/utils/params.js +1 -1
  201. package/lib/utils/platform.js +1 -1
  202. package/lib/utils/rules-cdn.js +1 -1
  203. package/lib/utils/sleep.js +1 -1
  204. package/lib/utils/template-replacer.js +1 -1
  205. package/lib/utils/update-notice.js +1 -1
  206. package/lib/utils/version.js +1 -1
  207. package/lib/utils/with-active-cookie.js +1 -1
  208. package/lib/utils/write-cli-side-channel.js +1 -1
  209. package/package.json +1 -1
@@ -1 +1 @@
1
- const a150_0x43405e=a150_0x8d88;(function(_0x303257,_0x53d932){const _0x28a5a5=a150_0x8d88,_0x2d229f=_0x303257();while(!![]){try{const _0x465ade=-parseInt(_0x28a5a5(0xfb))/0x1*(-parseInt(_0x28a5a5(0xf5))/0x2)+-parseInt(_0x28a5a5(0xef))/0x3*(parseInt(_0x28a5a5(0xe1))/0x4)+-parseInt(_0x28a5a5(0xe2))/0x5*(-parseInt(_0x28a5a5(0xf2))/0x6)+-parseInt(_0x28a5a5(0xfc))/0x7+parseInt(_0x28a5a5(0xf8))/0x8*(-parseInt(_0x28a5a5(0xff))/0x9)+-parseInt(_0x28a5a5(0xe5))/0xa+parseInt(_0x28a5a5(0xe7))/0xb*(parseInt(_0x28a5a5(0xf6))/0xc);if(_0x465ade===_0x53d932)break;else _0x2d229f['push'](_0x2d229f['shift']());}catch(_0x14e122){_0x2d229f['push'](_0x2d229f['shift']());}}}(a150_0x39bf,0xb9eed));import{access,mkdir,readdir,stat}from'node:fs/promises';function a150_0x8d88(_0x418f4a,_0x4386c8){_0x418f4a=_0x418f4a-0xe0;const _0x39bfec=a150_0x39bf();let _0x8d88f7=_0x39bfec[_0x418f4a];return _0x8d88f7;}import{constants}from'node:fs';import{dirname,join}from'node:path';import{findHookLocationByRemoteId,snakeToCamel}from'../../core/bff/utils.js';export const SUPPORTED_BFF_TYPES=[a150_0x43405e(0xea),a150_0x43405e(0x106),a150_0x43405e(0xf4)];export function normalizeBffType(_0x2c6495){const _0x3bd86f=a150_0x43405e;if(!_0x2c6495)return undefined;const _0xa3e728=_0x2c6495[_0x3bd86f(0x104)]()['toUpperCase']();return SUPPORTED_BFF_TYPES[_0x3bd86f(0xee)](_0xa3e728)?_0xa3e728:undefined;}async function scanJsFilesRecursively(_0x30667e,_0x3bb50f){const _0x2eeb0c=a150_0x43405e,_0x50663f=[];try{const _0xb5dc77=await readdir(_0x30667e,{'withFileTypes':!![]});for(const _0x1da905 of _0xb5dc77){const _0x278f4b=join(_0x30667e,_0x1da905['name']);if(_0x1da905[_0x2eeb0c(0xf9)]())_0x50663f['push'](...await scanJsFilesRecursively(_0x278f4b,_0x3bb50f+'/'+_0x1da905[_0x2eeb0c(0xe8)]));else _0x1da905['isFile']()&&_0x1da905[_0x2eeb0c(0xe8)][_0x2eeb0c(0xe6)](_0x2eeb0c(0xf7))&&_0x50663f['push']({'lockKey':_0x3bb50f+'/'+_0x1da905[_0x2eeb0c(0xe8)][_0x2eeb0c(0x102)](/\.js$/,''),'filePath':_0x278f4b});}}catch(_0x384362){if(_0x384362[_0x2eeb0c(0xe3)]!==_0x2eeb0c(0xeb))throw _0x384362;}return _0x50663f;}async function scanFlatFunctions(_0x258b17,_0xd42dd7){const _0x213eaf=a150_0x43405e,_0x1bfbfc=join(_0x258b17[_0x213eaf(0xfa)],_0xd42dd7),_0x489a89=await scanJsFilesRecursively(_0x1bfbfc,_0xd42dd7);return _0x489a89[_0x213eaf(0x105)](({lockKey:_0x26a496,filePath:_0x301f4d})=>({'type':_0xd42dd7,'name':_0x26a496[_0x213eaf(0x100)]('/')['at'](-0x1)??'','filePath':_0x301f4d,'lockKey':_0x26a496}));}async function scanHookFunctions(_0x1f227a){const _0x25586f=a150_0x43405e,_0x1a3c8e=join(_0x1f227a['scriptsRootDir'],_0x25586f(0xf4)),_0x436b30=[];try{const _0x1f5b80=await readdir(_0x1a3c8e,{'withFileTypes':!![]});for(const _0x44c51b of _0x1f5b80){if(!_0x44c51b[_0x25586f(0xf9)]())continue;const _0x203fb7=_0x44c51b[_0x25586f(0xe8)],_0x278051=join(_0x1a3c8e,_0x203fb7),_0x4f5e02=await readdir(_0x278051,{'withFileTypes':!![]});for(const _0x5ac23f of _0x4f5e02){if(!_0x5ac23f[_0x25586f(0xf9)]())continue;const _0x54938d=_0x5ac23f[_0x25586f(0xe8)],_0x35f2ba=join(_0x278051,_0x54938d),_0x3fd596=await readdir(_0x35f2ba,{'withFileTypes':!![]});for(const _0x17b902 of _0x3fd596){if(!_0x17b902['isDirectory']())continue;const _0x30a427=_0x17b902[_0x25586f(0xe8)],_0x5d7c3c=join(_0x35f2ba,_0x30a427),_0x3a95a5=await readdir(_0x5d7c3c,{'withFileTypes':!![]});for(const _0x210361 of _0x3a95a5){if(!_0x210361[_0x25586f(0x107)]()||!_0x210361[_0x25586f(0xe8)][_0x25586f(0xe6)](_0x25586f(0xf7)))continue;const _0x1aa5cf=_0x210361[_0x25586f(0xe8)][_0x25586f(0x102)](/\.js$/,'');_0x436b30[_0x25586f(0xe9)]({'type':_0x25586f(0xf4),'name':_0x1aa5cf,'filePath':join(_0x5d7c3c,_0x210361['name']),'lockKey':'HOOK/'+_0x203fb7+'/'+_0x54938d+'/'+_0x30a427+'/'+_0x1aa5cf,'alias':_0x203fb7,'operationType':_0x54938d,'functionNode':_0x30a427});}}}}}catch(_0x40d402){if(_0x40d402[_0x25586f(0xe3)]!=='ENOENT')throw _0x40d402;}return _0x436b30;}export async function scanLocalBffFunctions(_0x55ae65,_0x32e490){const _0x517b8c=a150_0x43405e;if(_0x32e490==='COMMON'||_0x32e490===_0x517b8c(0x106))return scanFlatFunctions(_0x55ae65,_0x32e490);if(_0x32e490===_0x517b8c(0xf4))return scanHookFunctions(_0x55ae65);const [_0x3f4dbe,_0x6ea23c,_0x593be0]=await Promise[_0x517b8c(0xe0)]([scanFlatFunctions(_0x55ae65,'COMMON'),scanFlatFunctions(_0x55ae65,_0x517b8c(0x106)),scanHookFunctions(_0x55ae65)]);return[..._0x3f4dbe,..._0x6ea23c,..._0x593be0];}export function resolveLocalFilePathFromLockKey(_0x194d6d,_0x38b103){const _0xe54baa=a150_0x43405e;return join(_0x194d6d['scriptsRootDir'],..._0x38b103[_0xe54baa(0x100)]('/'))+'.js';}function a150_0x39bf(){const _0x4444de=['functionNode','includes','223527jZnhgD','get','operationType','1696278eMUfSJ','beforeScriptId','HOOK','4dtVhQG','3767076otTsAo','.js','712hGltUh','isDirectory','scriptsRootDir','191894mqGSUM','9366987xYqwfV','datasetCode','afterScriptId','122130NuvxLM','split','F_OK','replace','alias','trim','map','ENDPOINT','isFile','before','all','44nMXGpY','15qgzygr','code','HOOK/','11858750xmxFKz','endsWith','143swOVMx','name','push','COMMON','ENOENT','functionName'];a150_0x39bf=function(){return _0x4444de;};return a150_0x39bf();}export function createHookLocationMap(_0x11f41a){const _0x1ca61e=a150_0x43405e,_0x4bc6ff=new Map();for(const _0x4076bd of _0x11f41a){_0x4076bd[_0x1ca61e(0xf3)]&&_0x4bc6ff['set'](_0x4076bd[_0x1ca61e(0xf3)],{'datasetCode':_0x4076bd['datasetCode'],'operationType':snakeToCamel(_0x4076bd[_0x1ca61e(0xf1)]),'functionNode':_0x1ca61e(0x108)}),_0x4076bd[_0x1ca61e(0xfe)]&&_0x4bc6ff['set'](_0x4076bd[_0x1ca61e(0xfe)],{'datasetCode':_0x4076bd['datasetCode'],'operationType':snakeToCamel(_0x4076bd[_0x1ca61e(0xf1)]),'functionNode':'after'});}return _0x4bc6ff;}export function resolveRemoteScriptTarget(_0x42dee3,_0x1fe5c4,_0x17073a,_0x40c9dd,_0x52bdc7){const _0xd68331=a150_0x43405e,_0x4fd72a=normalizeBffType(_0x1fe5c4['scriptType']);if(!_0x4fd72a||!_0x1fe5c4[_0xd68331(0xec)])return null;if(_0x4fd72a==='HOOK'){const _0x1e512d=(_0x1fe5c4['id']?_0x17073a[_0xd68331(0xf0)](_0x1fe5c4['id']):undefined)??findHookLocationByRemoteId(_0x40c9dd,_0x1fe5c4['id']);if(!_0x1e512d)return null;const _0x175899=_0x1e512d[_0xd68331(0x103)]||_0x52bdc7['get'](_0x1e512d[_0xd68331(0xfd)]),_0x27a8fa=_0x175899??_0x1e512d[_0xd68331(0xfd)],_0x1628ea={..._0x1e512d,'alias':_0x175899},_0x34ecf5=_0xd68331(0xe4)+_0x27a8fa+'/'+_0x1628ea[_0xd68331(0xf1)]+'/'+_0x1628ea[_0xd68331(0xed)]+'/'+_0x1fe5c4[_0xd68331(0xec)];return{'lockKey':_0x34ecf5,'filePath':resolveLocalFilePathFromLockKey(_0x42dee3,_0x34ecf5),'type':_0xd68331(0xf4),'hookLocation':_0x1628ea};}const _0x352ab5=_0x4fd72a+'/'+_0x1fe5c4[_0xd68331(0xec)];return{'lockKey':_0x352ab5,'filePath':resolveLocalFilePathFromLockKey(_0x42dee3,_0x352ab5),'type':_0x4fd72a};}export async function ensureParentDirectory(_0x33427c){await mkdir(dirname(_0x33427c),{'recursive':!![]});}export async function fileExists(_0x2de00e){const _0x5b2f4b=a150_0x43405e;try{return await access(_0x2de00e,constants[_0x5b2f4b(0x101)]),!![];}catch{return![];}}export async function directoryExists(_0x21138f){const _0x1b130c=a150_0x43405e;try{const _0x1266f6=await stat(_0x21138f);return _0x1266f6[_0x1b130c(0xf9)]();}catch{return![];}}
1
+ function a151_0x4f40(_0x43ab69,_0xc4944f){_0x43ab69=_0x43ab69-0x152;const _0x4f214d=a151_0x4f21();let _0x4f40ed=_0x4f214d[_0x43ab69];return _0x4f40ed;}const a151_0x52e12d=a151_0x4f40;(function(_0x341c0f,_0x53931a){const _0x1dc4a3=a151_0x4f40,_0x57d3d9=_0x341c0f();while(!![]){try{const _0x54a450=parseInt(_0x1dc4a3(0x154))/0x1+-parseInt(_0x1dc4a3(0x15f))/0x2+-parseInt(_0x1dc4a3(0x164))/0x3*(parseInt(_0x1dc4a3(0x165))/0x4)+parseInt(_0x1dc4a3(0x175))/0x5+parseInt(_0x1dc4a3(0x153))/0x6*(parseInt(_0x1dc4a3(0x16a))/0x7)+-parseInt(_0x1dc4a3(0x160))/0x8+-parseInt(_0x1dc4a3(0x15a))/0x9;if(_0x54a450===_0x53931a)break;else _0x57d3d9['push'](_0x57d3d9['shift']());}catch(_0x1fea71){_0x57d3d9['push'](_0x57d3d9['shift']());}}}(a151_0x4f21,0x348f3));import{access,mkdir,readdir,stat}from'node:fs/promises';import{constants}from'node:fs';import{dirname,join}from'node:path';import{findHookLocationByRemoteId,snakeToCamel}from'../../core/bff/utils.js';export const SUPPORTED_BFF_TYPES=[a151_0x52e12d(0x166),a151_0x52e12d(0x178),a151_0x52e12d(0x16c)];export function normalizeBffType(_0x22e0a7){const _0x28215f=a151_0x52e12d;if(!_0x22e0a7)return undefined;const _0x591681=_0x22e0a7['trim']()[_0x28215f(0x15d)]();return SUPPORTED_BFF_TYPES[_0x28215f(0x16f)](_0x591681)?_0x591681:undefined;}async function scanJsFilesRecursively(_0x40899a,_0x4e9270){const _0x1d7165=a151_0x52e12d,_0x298f75=[];try{const _0x4994e3=await readdir(_0x40899a,{'withFileTypes':!![]});for(const _0x5b6e7b of _0x4994e3){const _0x170758=join(_0x40899a,_0x5b6e7b[_0x1d7165(0x171)]);if(_0x5b6e7b[_0x1d7165(0x168)]())_0x298f75[_0x1d7165(0x16b)](...await scanJsFilesRecursively(_0x170758,_0x4e9270+'/'+_0x5b6e7b[_0x1d7165(0x171)]));else _0x5b6e7b[_0x1d7165(0x16e)]()&&_0x5b6e7b[_0x1d7165(0x171)][_0x1d7165(0x170)](_0x1d7165(0x158))&&_0x298f75[_0x1d7165(0x16b)]({'lockKey':_0x4e9270+'/'+_0x5b6e7b[_0x1d7165(0x171)][_0x1d7165(0x169)](/\.js$/,''),'filePath':_0x170758});}}catch(_0x3fbb74){if(_0x3fbb74['code']!==_0x1d7165(0x173))throw _0x3fbb74;}return _0x298f75;}async function scanFlatFunctions(_0x8eec72,_0x41ffa5){const _0x235eea=a151_0x52e12d,_0x30017a=join(_0x8eec72[_0x235eea(0x163)],_0x41ffa5),_0x24944a=await scanJsFilesRecursively(_0x30017a,_0x41ffa5);return _0x24944a[_0x235eea(0x162)](({lockKey:_0x24ce14,filePath:_0x2b6aa6})=>({'type':_0x41ffa5,'name':_0x24ce14[_0x235eea(0x161)]('/')['at'](-0x1)??'','filePath':_0x2b6aa6,'lockKey':_0x24ce14}));}async function scanHookFunctions(_0x16b3db){const _0x5ab587=a151_0x52e12d,_0x409b89=join(_0x16b3db[_0x5ab587(0x163)],'HOOK'),_0x378b8c=[];try{const _0x381ebc=await readdir(_0x409b89,{'withFileTypes':!![]});for(const _0x5ccd1d of _0x381ebc){if(!_0x5ccd1d[_0x5ab587(0x168)]())continue;const _0x467218=_0x5ccd1d['name'],_0x221213=join(_0x409b89,_0x467218),_0x5dabaa=await readdir(_0x221213,{'withFileTypes':!![]});for(const _0x16555c of _0x5dabaa){if(!_0x16555c['isDirectory']())continue;const _0x3fc7f0=_0x16555c[_0x5ab587(0x171)],_0xf285c9=join(_0x221213,_0x3fc7f0),_0x58cdf2=await readdir(_0xf285c9,{'withFileTypes':!![]});for(const _0x430014 of _0x58cdf2){if(!_0x430014[_0x5ab587(0x168)]())continue;const _0x4f986d=_0x430014[_0x5ab587(0x171)],_0x34960b=join(_0xf285c9,_0x4f986d),_0x1966fc=await readdir(_0x34960b,{'withFileTypes':!![]});for(const _0x490d29 of _0x1966fc){if(!_0x490d29[_0x5ab587(0x16e)]()||!_0x490d29[_0x5ab587(0x171)][_0x5ab587(0x170)](_0x5ab587(0x158)))continue;const _0x23bc3c=_0x490d29[_0x5ab587(0x171)][_0x5ab587(0x169)](/\.js$/,'');_0x378b8c['push']({'type':'HOOK','name':_0x23bc3c,'filePath':join(_0x34960b,_0x490d29['name']),'lockKey':'HOOK/'+_0x467218+'/'+_0x3fc7f0+'/'+_0x4f986d+'/'+_0x23bc3c,'alias':_0x467218,'operationType':_0x3fc7f0,'functionNode':_0x4f986d});}}}}}catch(_0x10d12f){if(_0x10d12f[_0x5ab587(0x16d)]!=='ENOENT')throw _0x10d12f;}return _0x378b8c;}export async function scanLocalBffFunctions(_0x194333,_0x19272e){const _0x99de08=a151_0x52e12d;if(_0x19272e===_0x99de08(0x166)||_0x19272e===_0x99de08(0x178))return scanFlatFunctions(_0x194333,_0x19272e);if(_0x19272e===_0x99de08(0x16c))return scanHookFunctions(_0x194333);const [_0xcc4fe9,_0x3d7905,_0x26e735]=await Promise[_0x99de08(0x155)]([scanFlatFunctions(_0x194333,_0x99de08(0x166)),scanFlatFunctions(_0x194333,_0x99de08(0x178)),scanHookFunctions(_0x194333)]);return[..._0xcc4fe9,..._0x3d7905,..._0x26e735];}export function resolveLocalFilePathFromLockKey(_0x4e78c3,_0x260eb5){const _0x39115e=a151_0x52e12d;return join(_0x4e78c3[_0x39115e(0x163)],..._0x260eb5[_0x39115e(0x161)]('/'))+_0x39115e(0x158);}export function createHookLocationMap(_0x56e439){const _0x36c77e=a151_0x52e12d,_0x9b8891=new Map();for(const _0x55bb5c of _0x56e439){_0x55bb5c['beforeScriptId']&&_0x9b8891[_0x36c77e(0x157)](_0x55bb5c[_0x36c77e(0x15e)],{'datasetCode':_0x55bb5c[_0x36c77e(0x156)],'operationType':snakeToCamel(_0x55bb5c['operationType']),'functionNode':'before'}),_0x55bb5c[_0x36c77e(0x177)]&&_0x9b8891['set'](_0x55bb5c['afterScriptId'],{'datasetCode':_0x55bb5c['datasetCode'],'operationType':snakeToCamel(_0x55bb5c[_0x36c77e(0x172)]),'functionNode':_0x36c77e(0x15b)});}return _0x9b8891;}export function resolveRemoteScriptTarget(_0x11c766,_0x2e2567,_0x31c808,_0x2892c3,_0x3616f3){const _0x1595e6=a151_0x52e12d,_0x463233=normalizeBffType(_0x2e2567[_0x1595e6(0x159)]);if(!_0x463233||!_0x2e2567[_0x1595e6(0x174)])return null;if(_0x463233===_0x1595e6(0x16c)){const _0x257d06=(_0x2e2567['id']?_0x31c808[_0x1595e6(0x176)](_0x2e2567['id']):undefined)??findHookLocationByRemoteId(_0x2892c3,_0x2e2567['id']);if(!_0x257d06)return null;const _0x4718ae=_0x257d06[_0x1595e6(0x167)]||_0x3616f3[_0x1595e6(0x176)](_0x257d06[_0x1595e6(0x156)]),_0x226542=_0x4718ae??_0x257d06['datasetCode'],_0xab87f={..._0x257d06,'alias':_0x4718ae},_0x53cd17=_0x1595e6(0x15c)+_0x226542+'/'+_0xab87f[_0x1595e6(0x172)]+'/'+_0xab87f['functionNode']+'/'+_0x2e2567[_0x1595e6(0x174)];return{'lockKey':_0x53cd17,'filePath':resolveLocalFilePathFromLockKey(_0x11c766,_0x53cd17),'type':_0x1595e6(0x16c),'hookLocation':_0xab87f};}const _0x27cc5c=_0x463233+'/'+_0x2e2567[_0x1595e6(0x174)];return{'lockKey':_0x27cc5c,'filePath':resolveLocalFilePathFromLockKey(_0x11c766,_0x27cc5c),'type':_0x463233};}export async function ensureParentDirectory(_0x19caf5){await mkdir(dirname(_0x19caf5),{'recursive':!![]});}function a151_0x4f21(){const _0x34eb2e=['alias','isDirectory','replace','1329062XBISCR','push','HOOK','code','isFile','includes','endsWith','name','operationType','ENOENT','functionName','1851825XDgxbD','get','afterScriptId','ENDPOINT','F_OK','12IQsVUq','212248EVBbPI','all','datasetCode','set','.js','scriptType','1501578khmUVj','after','HOOK/','toUpperCase','beforeScriptId','430760SPHKoU','451936zikrEj','split','map','scriptsRootDir','942aSxOaN','3928iNYwkj','COMMON'];a151_0x4f21=function(){return _0x34eb2e;};return a151_0x4f21();}export async function fileExists(_0x486f8b){const _0x325332=a151_0x52e12d;try{return await access(_0x486f8b,constants[_0x325332(0x152)]),!![];}catch{return![];}}export async function directoryExists(_0x2fad1e){const _0x53781b=a151_0x52e12d;try{const _0x31eab4=await stat(_0x2fad1e);return _0x31eab4[_0x53781b(0x168)]();}catch{return![];}}
@@ -1 +1 @@
1
- function a151_0x2756(_0x44b0d6,_0x1908b0){_0x44b0d6=_0x44b0d6-0xbc;const _0x415150=a151_0x4151();let _0x27565c=_0x415150[_0x44b0d6];return _0x27565c;}(function(_0x58ef06,_0x17492e){const _0x1559c0=a151_0x2756,_0x3029c0=_0x58ef06();while(!![]){try{const _0x385dfc=parseInt(_0x1559c0(0xbd))/0x1+-parseInt(_0x1559c0(0xbc))/0x2+parseInt(_0x1559c0(0xc0))/0x3+parseInt(_0x1559c0(0xc8))/0x4+-parseInt(_0x1559c0(0xbe))/0x5+parseInt(_0x1559c0(0xc5))/0x6*(-parseInt(_0x1559c0(0xc3))/0x7)+parseInt(_0x1559c0(0xc4))/0x8;if(_0x385dfc===_0x17492e)break;else _0x3029c0['push'](_0x3029c0['shift']());}catch(_0x283009){_0x3029c0['push'](_0x3029c0['shift']());}}}(a151_0x4151,0xd6280));import{readFile}from'node:fs/promises';function a151_0x4151(){const _0x5a6356=['md5','utf8','21NOxyDB','13910136fiSouU','1891710IYAwZj','hex','update','1494016gjWtGx','2970828gGfERw','602474vWWvnR','3279480ttcjFC','createHash','3748812rkLTVz'];a151_0x4151=function(){return _0x5a6356;};return a151_0x4151();}import a151_0x440b1a from'node:crypto';export function computeContentHash(_0x5eca0a){const _0x232af0=a151_0x2756;return a151_0x440b1a[_0x232af0(0xbf)](_0x232af0(0xc1))[_0x232af0(0xc7)](_0x5eca0a)['digest'](_0x232af0(0xc6));}export async function computeFileHash(_0x43548d){const _0x3e8636=a151_0x2756,_0x181b8e=await readFile(_0x43548d,_0x3e8636(0xc2));return computeContentHash(_0x181b8e);}
1
+ (function(_0x5ec9d1,_0x1a62f4){const _0x4d6f27=a152_0x50c9,_0x7e8d84=_0x5ec9d1();while(!![]){try{const _0x5c1eec=-parseInt(_0x4d6f27(0x82))/0x1+parseInt(_0x4d6f27(0x71))/0x2*(-parseInt(_0x4d6f27(0x7c))/0x3)+-parseInt(_0x4d6f27(0x80))/0x4+parseInt(_0x4d6f27(0x81))/0x5*(parseInt(_0x4d6f27(0x76))/0x6)+parseInt(_0x4d6f27(0x78))/0x7*(parseInt(_0x4d6f27(0x79))/0x8)+parseInt(_0x4d6f27(0x77))/0x9*(-parseInt(_0x4d6f27(0x75))/0xa)+parseInt(_0x4d6f27(0x7f))/0xb*(parseInt(_0x4d6f27(0x73))/0xc);if(_0x5c1eec===_0x1a62f4)break;else _0x7e8d84['push'](_0x7e8d84['shift']());}catch(_0x1a8474){_0x7e8d84['push'](_0x7e8d84['shift']());}}}(a152_0x6f32,0x703b9));function a152_0x50c9(_0x5cbf4c,_0x433180){_0x5cbf4c=_0x5cbf4c-0x71;const _0x6f32eb=a152_0x6f32();let _0x50c990=_0x6f32eb[_0x5cbf4c];return _0x50c990;}import{readFile}from'node:fs/promises';import a152_0x642807 from'node:crypto';export function computeContentHash(_0xe78911){const _0x3bdcb2=a152_0x50c9;return a152_0x642807[_0x3bdcb2(0x7a)](_0x3bdcb2(0x7d))[_0x3bdcb2(0x72)](_0xe78911)[_0x3bdcb2(0x7e)](_0x3bdcb2(0x7b));}function a152_0x6f32(){const _0x721130=['md5','digest','55mDKNgx','3063272nHfFtl','10VBWVUD','490833kNKuJc','226684PhOZEO','update','2427276CHKKRS','utf8','7060ciNiGh','973506yHOpkX','3132cTGgNy','553gDjQBq','74888RlNteE','createHash','hex','3arauyE'];a152_0x6f32=function(){return _0x721130;};return a152_0x6f32();}export async function computeFileHash(_0x564d24){const _0x4ef44f=a152_0x50c9,_0x3a0ae1=await readFile(_0x564d24,_0x4ef44f(0x74));return computeContentHash(_0x3a0ae1);}
@@ -1 +1 @@
1
- (function(_0x35f47a,_0x28559f){const _0x43c1e9=a152_0x3bc9,_0x13b065=_0x35f47a();while(!![]){try{const _0x1e0251=parseInt(_0x43c1e9(0x122))/0x1+parseInt(_0x43c1e9(0x134))/0x2*(parseInt(_0x43c1e9(0x11e))/0x3)+parseInt(_0x43c1e9(0x125))/0x4*(-parseInt(_0x43c1e9(0x129))/0x5)+parseInt(_0x43c1e9(0x124))/0x6*(parseInt(_0x43c1e9(0x130))/0x7)+-parseInt(_0x43c1e9(0x12a))/0x8+-parseInt(_0x43c1e9(0x127))/0x9*(parseInt(_0x43c1e9(0x12c))/0xa)+parseInt(_0x43c1e9(0x126))/0xb;if(_0x1e0251===_0x28559f)break;else _0x13b065['push'](_0x13b065['shift']());}catch(_0x369551){_0x13b065['push'](_0x13b065['shift']());}}}(a152_0x2e98,0x9e779));import{mkdir,readFile,writeFile}from'node:fs/promises';function a152_0x3bc9(_0x2b57fd,_0x392dac){_0x2b57fd=_0x2b57fd-0x11d;const _0x2e9855=a152_0x2e98();let _0x3bc98f=_0x2e9855[_0x2b57fd];return _0x3bc98f;}import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x8f885,_0x306605,_0x3d6f12,_0x216419){const _0x5b6f39=a152_0x3bc9,_0x47765a={'apps':_0x8f885[_0x5b6f39(0x132)]&&typeof _0x8f885[_0x5b6f39(0x132)]===_0x5b6f39(0x12e)?_0x8f885[_0x5b6f39(0x132)]:{}};let _0x29025e=_0x47765a[_0x5b6f39(0x132)][_0x306605];if(!_0x29025e)return _0x29025e={'scriptsRoot':_0x3d6f12,'lastSync':'','functions':{}},_0x47765a[_0x5b6f39(0x132)][_0x306605]=_0x29025e,{'lockData':_0x47765a,'appLock':_0x29025e};if(!_0x29025e[_0x5b6f39(0x11f)])_0x29025e[_0x5b6f39(0x11f)]=_0x3d6f12;else{if(_0x29025e[_0x5b6f39(0x11f)]!==_0x3d6f12)throw new Error(_0x216419+':\x20scriptsRoot\x20mismatch\x20—\x20'+(_0x5b6f39(0x121)+_0x3d6f12+_0x5b6f39(0x133)+_0x29025e[_0x5b6f39(0x11f)]+'\x22.\x20')+'Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x29025e[_0x5b6f39(0x123)]&&(_0x29025e[_0x5b6f39(0x123)]={}),!_0x29025e[_0x5b6f39(0x12d)]&&(_0x29025e[_0x5b6f39(0x12d)]=''),{'lockData':_0x47765a,'appLock':_0x29025e};}function a152_0x2e98(){const _0x1b666a=['50484jziIOd','parse','apps','\x22\x20vs\x20lock\x20\x22','61366guYveU','utf8','27tsAMBm','scriptsRoot','Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20','current\x20\x22','40327YaKpRK','functions','702PqFcZV','92bGxBFy','11543906ZpQEmz','38493ctkQeM','stringify','220510MNGaBI','3549192DNBxBt','code','240tvvKLN','lastSync','object','ENOENT'];a152_0x2e98=function(){return _0x1b666a;};return a152_0x2e98();}export async function readBffLockFile(_0x203340){const _0x5efedf=a152_0x3bc9;try{const _0x34275f=await readFile(_0x203340,_0x5efedf(0x11d)),_0x5f151b=JSON[_0x5efedf(0x131)](_0x34275f);return{'apps':_0x5f151b[_0x5efedf(0x132)]&&typeof _0x5f151b[_0x5efedf(0x132)]==='object'?_0x5f151b[_0x5efedf(0x132)]:{}};}catch(_0x5333cf){if(_0x5333cf[_0x5efedf(0x12b)]===_0x5efedf(0x12f))return null;throw new Error(_0x5efedf(0x120)+String(_0x5333cf));}}export async function writeBffLockFile(_0x2f9bd4,_0x16c7b2){const _0x1d3920=a152_0x3bc9;await mkdir(dirname(_0x2f9bd4),{'recursive':!![]}),await writeFile(_0x2f9bd4,JSON[_0x1d3920(0x128)](_0x16c7b2,null,0x2),_0x1d3920(0x11d));}
1
+ function a153_0x23fa(){const _0x1410e3=['Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','5637191MGNpWU','6DVJqxY','code',':\x20scriptsRoot\x20mismatch\x20—\x20','parse','3489345ICADpP','Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20','lastSync','scriptsRoot','stringify','58285LzQAiD','8JcmzTr','1042253RPXaVB','1181799aSgdRJ','4GmZpLZ','84986gCzrnU','925346JXtjwt','current\x20\x22','2630HAcGrB','object','apps','ENOENT','utf8'];a153_0x23fa=function(){return _0x1410e3;};return a153_0x23fa();}(function(_0x1f72ef,_0x4666c8){const _0x3e5454=a153_0x3cb6,_0xed0eea=_0x1f72ef();while(!![]){try{const _0x540912=-parseInt(_0x3e5454(0x1c0))/0x1+-parseInt(_0x3e5454(0x1c4))/0x2+-parseInt(_0x3e5454(0x1c1))/0x3*(parseInt(_0x3e5454(0x1c2))/0x4)+parseInt(_0x3e5454(0x1be))/0x5*(-parseInt(_0x3e5454(0x1b5))/0x6)+-parseInt(_0x3e5454(0x1b4))/0x7*(-parseInt(_0x3e5454(0x1bf))/0x8)+-parseInt(_0x3e5454(0x1b9))/0x9+-parseInt(_0x3e5454(0x1c6))/0xa*(-parseInt(_0x3e5454(0x1c3))/0xb);if(_0x540912===_0x4666c8)break;else _0xed0eea['push'](_0xed0eea['shift']());}catch(_0x46f4fa){_0xed0eea['push'](_0xed0eea['shift']());}}}(a153_0x23fa,0x83996));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}function a153_0x3cb6(_0x41c3db,_0x26c5a0){_0x41c3db=_0x41c3db-0x1b0;const _0x23fadf=a153_0x23fa();let _0x3cb6aa=_0x23fadf[_0x41c3db];return _0x3cb6aa;}export function ensureLockScope(_0x5a55ec,_0x569645,_0x52de31,_0x1d79a6){const _0x52d71a=a153_0x3cb6,_0x5765d3={'apps':_0x5a55ec[_0x52d71a(0x1b0)]&&typeof _0x5a55ec[_0x52d71a(0x1b0)]==='object'?_0x5a55ec['apps']:{}};let _0x2fc369=_0x5765d3[_0x52d71a(0x1b0)][_0x569645];if(!_0x2fc369)return _0x2fc369={'scriptsRoot':_0x52de31,'lastSync':'','functions':{}},_0x5765d3[_0x52d71a(0x1b0)][_0x569645]=_0x2fc369,{'lockData':_0x5765d3,'appLock':_0x2fc369};if(!_0x2fc369[_0x52d71a(0x1bc)])_0x2fc369['scriptsRoot']=_0x52de31;else{if(_0x2fc369[_0x52d71a(0x1bc)]!==_0x52de31)throw new Error(_0x1d79a6+_0x52d71a(0x1b7)+(_0x52d71a(0x1c5)+_0x52de31+'\x22\x20vs\x20lock\x20\x22'+_0x2fc369[_0x52d71a(0x1bc)]+'\x22.\x20')+_0x52d71a(0x1b3));}return!_0x2fc369['functions']&&(_0x2fc369['functions']={}),!_0x2fc369['lastSync']&&(_0x2fc369[_0x52d71a(0x1bb)]=''),{'lockData':_0x5765d3,'appLock':_0x2fc369};}export async function readBffLockFile(_0x5dce30){const _0xf77823=a153_0x3cb6;try{const _0x15def1=await readFile(_0x5dce30,_0xf77823(0x1b2)),_0x3e71ee=JSON[_0xf77823(0x1b8)](_0x15def1);return{'apps':_0x3e71ee[_0xf77823(0x1b0)]&&typeof _0x3e71ee[_0xf77823(0x1b0)]===_0xf77823(0x1c7)?_0x3e71ee[_0xf77823(0x1b0)]:{}};}catch(_0x298e49){if(_0x298e49[_0xf77823(0x1b6)]===_0xf77823(0x1b1))return null;throw new Error(_0xf77823(0x1ba)+String(_0x298e49));}}export async function writeBffLockFile(_0xce129c,_0x27612e){const _0x122a83=a153_0x3cb6;await mkdir(dirname(_0xce129c),{'recursive':!![]}),await writeFile(_0xce129c,JSON[_0x122a83(0x1bd)](_0x27612e,null,0x2),'utf8');}
@@ -1 +1 @@
1
- (function(_0x429336,_0x5edbf9){const _0x40b61e=a154_0x587e,_0x47f09e=_0x429336();while(!![]){try{const _0x5c30a7=-parseInt(_0x40b61e(0x1c6))/0x1+parseInt(_0x40b61e(0x1d0))/0x2+-parseInt(_0x40b61e(0x1ce))/0x3*(parseInt(_0x40b61e(0x1cc))/0x4)+parseInt(_0x40b61e(0x1c7))/0x5+parseInt(_0x40b61e(0x1cd))/0x6+parseInt(_0x40b61e(0x1c9))/0x7+-parseInt(_0x40b61e(0x1c1))/0x8;if(_0x5c30a7===_0x5edbf9)break;else _0x47f09e['push'](_0x47f09e['shift']());}catch(_0x1a8d8c){_0x47f09e['push'](_0x47f09e['shift']());}}}(a154_0x429a,0xdaff6));function a154_0x429a(){const _0x3884a9=['match','4fKUaie','7222398RduzQy','1092987yzRCeH','trim','2961632YxLxhL','test','30278216hLjgxp','replace','after','operationType','functionNode','673729fPAUsM','8849370GMocca','datasetCode','8857982DWWBnc','toUpperCase'];a154_0x429a=function(){return _0x3884a9;};return a154_0x429a();}export function snakeToCamel(_0x1b5075){const _0x56f318=a154_0x587e;return _0x1b5075['toLowerCase']()[_0x56f318(0x1c2)](/_([a-z])/g,(_0x53d2c0,_0x4c6af2)=>_0x4c6af2[_0x56f318(0x1ca)]());}export function findHookLocationByRemoteId(_0xf3a20b,_0x4615dd){const _0x3db222=a154_0x587e;if(!_0x4615dd)return undefined;for(const _0x31c922 of Object['values'](_0xf3a20b)){if(_0x31c922['remoteId']===_0x4615dd&&_0x31c922[_0x3db222(0x1c8)]&&_0x31c922[_0x3db222(0x1c4)]&&_0x31c922[_0x3db222(0x1c5)])return{'datasetCode':_0x31c922[_0x3db222(0x1c8)],'operationType':_0x31c922['operationType'],'functionNode':_0x31c922[_0x3db222(0x1c5)]};}return undefined;}export function extractScriptDescription(_0x448d41){const _0x2f11ac=a154_0x587e,_0x4979da=_0x448d41[_0x2f11ac(0x1cb)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x4979da?.[0x1]?.[_0x2f11ac(0x1cf)]()||undefined;}function a154_0x587e(_0x3f184a,_0x2f1bdf){_0x3f184a=_0x3f184a-0x1c0;const _0x429ad7=a154_0x429a();let _0x587e52=_0x429ad7[_0x3f184a];return _0x587e52;}export function isValidBffFunctionName(_0x208a53){const _0x38c959=a154_0x587e;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x38c959(0x1c0)](_0x208a53);}export function normalizeHookFunctionNode(_0x1883e7){const _0x42b01f=a154_0x587e;if(!_0x1883e7)return undefined;const _0x9b39e7=_0x1883e7[_0x42b01f(0x1cf)]()['toLowerCase']();if(_0x9b39e7==='before'||_0x9b39e7===_0x42b01f(0x1c3))return _0x9b39e7;return undefined;}
1
+ function a155_0x47d4(_0x4e8082,_0xaaec3){_0x4e8082=_0x4e8082-0x196;const _0x477302=a155_0x4773();let _0x47d4c6=_0x477302[_0x4e8082];return _0x47d4c6;}(function(_0x1f1834,_0x4cc592){const _0x15cac5=a155_0x47d4,_0x5414e8=_0x1f1834();while(!![]){try{const _0x268db7=-parseInt(_0x15cac5(0x1a8))/0x1+-parseInt(_0x15cac5(0x19d))/0x2+parseInt(_0x15cac5(0x19b))/0x3*(parseInt(_0x15cac5(0x1a5))/0x4)+parseInt(_0x15cac5(0x1a2))/0x5+parseInt(_0x15cac5(0x196))/0x6*(-parseInt(_0x15cac5(0x19a))/0x7)+-parseInt(_0x15cac5(0x1a6))/0x8+parseInt(_0x15cac5(0x199))/0x9*(parseInt(_0x15cac5(0x1a4))/0xa);if(_0x268db7===_0x4cc592)break;else _0x5414e8['push'](_0x5414e8['shift']());}catch(_0x4b26e4){_0x5414e8['push'](_0x5414e8['shift']());}}}(a155_0x4773,0x83671));export function snakeToCamel(_0x1021dc){const _0x6bb105=a155_0x47d4;return _0x1021dc[_0x6bb105(0x197)]()[_0x6bb105(0x1a1)](/_([a-z])/g,(_0x5a11fe,_0x90ba4d)=>_0x90ba4d[_0x6bb105(0x1a0)]());}export function findHookLocationByRemoteId(_0xac7221,_0x304ba1){const _0x230cd0=a155_0x47d4;if(!_0x304ba1)return undefined;for(const _0x57f7e0 of Object['values'](_0xac7221)){if(_0x57f7e0['remoteId']===_0x304ba1&&_0x57f7e0[_0x230cd0(0x1a9)]&&_0x57f7e0['operationType']&&_0x57f7e0['functionNode'])return{'datasetCode':_0x57f7e0[_0x230cd0(0x1a9)],'operationType':_0x57f7e0[_0x230cd0(0x1a3)],'functionNode':_0x57f7e0[_0x230cd0(0x198)]};}return undefined;}function a155_0x4773(){const _0x4105ae=['520596tQSfFk','2191CZQDzg','325425JxJGXt','before','1802556ZiiNJC','test','match','toUpperCase','replace','2739280ZHTytU','operationType','230mbXwbs','20elvelf','259616DoMhxS','trim','326757xpuxOk','datasetCode','11922bBbpWN','toLowerCase','functionNode'];a155_0x4773=function(){return _0x4105ae;};return a155_0x4773();}export function extractScriptDescription(_0x2a6668){const _0x8bc950=a155_0x47d4,_0x216a18=_0x2a6668[_0x8bc950(0x19f)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x216a18?.[0x1]?.[_0x8bc950(0x1a7)]()||undefined;}export function isValidBffFunctionName(_0x24908d){const _0xc07bf7=a155_0x47d4;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0xc07bf7(0x19e)](_0x24908d);}export function normalizeHookFunctionNode(_0x6b13f){const _0x4e71fa=a155_0x47d4;if(!_0x6b13f)return undefined;const _0x126698=_0x6b13f['trim']()['toLowerCase']();if(_0x126698===_0x4e71fa(0x19c)||_0x126698==='after')return _0x126698;return undefined;}
@@ -1 +1 @@
1
- (function(_0x12dfd2,_0x3aa348){const _0x3a1592=a155_0x13bc,_0x109286=_0x12dfd2();while(!![]){try{const _0x252ec3=-parseInt(_0x3a1592(0x142))/0x1*(parseInt(_0x3a1592(0x138))/0x2)+-parseInt(_0x3a1592(0x14e))/0x3*(parseInt(_0x3a1592(0x141))/0x4)+parseInt(_0x3a1592(0x13a))/0x5*(-parseInt(_0x3a1592(0x153))/0x6)+parseInt(_0x3a1592(0x14a))/0x7+-parseInt(_0x3a1592(0x149))/0x8*(parseInt(_0x3a1592(0x14b))/0x9)+parseInt(_0x3a1592(0x146))/0xa*(-parseInt(_0x3a1592(0x152))/0xb)+parseInt(_0x3a1592(0x14d))/0xc;if(_0x252ec3===_0x3aa348)break;else _0x109286['push'](_0x109286['shift']());}catch(_0x429ab5){_0x109286['push'](_0x109286['shift']());}}}(a155_0x2b03,0x4c4f3));import{listDatasets}from'../core/api-client.js';const cache=new Map();function a155_0x2b03(){const _0x1ed115=['isNaN','map','db-','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','dbName','\x22\x20under\x20app\x20\x22','204yRdVwJ','length','1014665CJhNqF','dbId','set','toLowerCase','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','filter','\x22\x20matches\x20multiple\x20databases:\x20','3868IdKHrl','883iFbyxw','.\x20Be\x20more\x20specific.','find','entries','10gzcEEU','has','join','10632pgneCT','1883161Kvufgk','387nvMnDu','dbtableConfig','11336580fyKeva','1287rBFfBf','\x22.\x20Available:\x20','includes','No\x20database\x20matching\x20\x22','1498046AmHiYt','6iDeRbL','get'];a155_0x2b03=function(){return _0x1ed115;};return a155_0x2b03();}export async function listDatabases(_0x4b5596){const _0x38f0ed=a155_0x13bc;if(cache[_0x38f0ed(0x147)](_0x4b5596))return cache[_0x38f0ed(0x154)](_0x4b5596);const _0x391bb0=await listDatasets(_0x4b5596),_0xa0efaf=new Map();for(const _0xddbef5 of _0x391bb0){const _0xc2a932=_0xddbef5[_0x38f0ed(0x14c)];_0xc2a932?.[_0x38f0ed(0x13b)]!=null&&_0xa0efaf[_0x38f0ed(0x13c)](_0xc2a932[_0x38f0ed(0x13b)],_0xc2a932['dbName']??_0x38f0ed(0x134)+_0xc2a932[_0x38f0ed(0x13b)]);}const _0x406c29=[..._0xa0efaf[_0x38f0ed(0x145)]()][_0x38f0ed(0x133)](([_0x50a7f6,_0x190042])=>({'dbId':_0x50a7f6,'dbName':_0x190042}));return cache[_0x38f0ed(0x13c)](_0x4b5596,_0x406c29),_0x406c29;}function a155_0x13bc(_0x1ae434,_0x28e52b){_0x1ae434=_0x1ae434-0x133;const _0x2b030a=a155_0x2b03();let _0x13bc3c=_0x2b030a[_0x1ae434];return _0x13bc3c;}export async function resolveDb(_0x155e24,_0x2343a1){const _0x217606=a155_0x13bc,_0x5bc8e3=await listDatabases(_0x155e24);if(_0x5bc8e3[_0x217606(0x139)]===0x0)return{'resolved':[],'error':'No\x20linked\x20databases\x20found\x20under\x20app\x20\x22'+_0x155e24+'\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.'};if(!_0x2343a1)return{'resolved':_0x5bc8e3};const _0x227eda=Number(_0x2343a1);if(!Number[_0x217606(0x155)](_0x227eda)){const _0x346989=_0x5bc8e3[_0x217606(0x144)](_0x5f5872=>_0x5f5872['dbId']===_0x227eda);if(_0x346989)return{'resolved':[_0x346989]};}const _0x55b70a=_0x2343a1[_0x217606(0x13d)](),_0x4baccf=_0x5bc8e3[_0x217606(0x13f)](_0x5e78d5=>_0x5e78d5['dbName'][_0x217606(0x13d)]()[_0x217606(0x150)](_0x55b70a));if(_0x4baccf['length']>0x0)return{'resolved':_0x4baccf};const _0x5561a9=_0x5bc8e3[_0x217606(0x133)](_0x4a6480=>_0x4a6480[_0x217606(0x136)]+'\x20('+_0x4a6480['dbId']+')')['join'](',\x20');return{'resolved':[],'error':_0x217606(0x151)+_0x2343a1+_0x217606(0x137)+_0x155e24+_0x217606(0x14f)+_0x5561a9+_0x217606(0x135)};}export async function resolveOneDb(_0x1caada,_0x3eae7e){const _0x4dd5c7=a155_0x13bc,{resolved:_0x16578b,error:_0x49d95c}=await resolveDb(_0x1caada,_0x3eae7e);if(_0x49d95c)return{'db':null,'error':_0x49d95c};if(_0x16578b[_0x4dd5c7(0x139)]===0x1)return{'db':_0x16578b[0x0]};if(!_0x3eae7e){const _0x3a9d81=_0x16578b[_0x4dd5c7(0x133)](_0x153d4d=>_0x153d4d[_0x4dd5c7(0x136)]+'\x20('+_0x153d4d[_0x4dd5c7(0x13b)]+')')[_0x4dd5c7(0x148)](',\x20');return{'db':null,'error':_0x4dd5c7(0x13e)+_0x3a9d81};}const _0x5087d2=_0x16578b['map'](_0x20826a=>_0x20826a[_0x4dd5c7(0x136)]+'\x20('+_0x20826a[_0x4dd5c7(0x13b)]+')')[_0x4dd5c7(0x148)](',\x20');return{'db':null,'error':'\x22'+_0x3eae7e+_0x4dd5c7(0x140)+_0x5087d2+_0x4dd5c7(0x143)};}export async function getDbName(_0x316d7f,_0x35f1d3){const _0x3c19b9=a155_0x13bc,_0x5b6a22=await listDatabases(_0x316d7f);return _0x5b6a22[_0x3c19b9(0x144)](_0x3d1622=>_0x3d1622[_0x3c19b9(0x13b)]===_0x35f1d3)?.[_0x3c19b9(0x136)];}
1
+ function a156_0x1f3e(){const _0x35b812=['dbName','dbId','7009555TcDobz','map','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','3577236UHBbjC','length','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','set','join','3336486LzayNv','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','entries','includes','isNaN','toLowerCase','1608908VKmDja','3935632dDgyZy','find','\x22.\x20Available:\x20','get','6259310KeWEsQ','1020304XDbAnh','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22'];a156_0x1f3e=function(){return _0x35b812;};return a156_0x1f3e();}(function(_0x177a8d,_0x4e46ed){const _0x6d86e=a156_0xab6d,_0x540940=_0x177a8d();while(!![]){try{const _0x23e941=parseInt(_0x6d86e(0x18a))/0x1+-parseInt(_0x6d86e(0x184))/0x2+parseInt(_0x6d86e(0x191))/0x3+-parseInt(_0x6d86e(0x185))/0x4+-parseInt(_0x6d86e(0x189))/0x5+parseInt(_0x6d86e(0x17e))/0x6+parseInt(_0x6d86e(0x18e))/0x7;if(_0x23e941===_0x4e46ed)break;else _0x540940['push'](_0x540940['shift']());}catch(_0x29d662){_0x540940['push'](_0x540940['shift']());}}}(a156_0x1f3e,0xb2352));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x16901f){const _0x35e6c1=a156_0xab6d;if(cache['has'](_0x16901f))return cache[_0x35e6c1(0x188)](_0x16901f);const _0x4c59c6=await listDatasets(_0x16901f),_0x4726db=new Map();for(const _0x257985 of _0x4c59c6){const _0x4056b2=_0x257985['dbtableConfig'];_0x4056b2?.[_0x35e6c1(0x18d)]!=null&&_0x4726db['set'](_0x4056b2[_0x35e6c1(0x18d)],_0x4056b2[_0x35e6c1(0x18c)]??'db-'+_0x4056b2[_0x35e6c1(0x18d)]);}const _0x23d606=[..._0x4726db[_0x35e6c1(0x180)]()]['map'](([_0x230fa4,_0x5a1ab2])=>({'dbId':_0x230fa4,'dbName':_0x5a1ab2}));return cache[_0x35e6c1(0x194)](_0x16901f,_0x23d606),_0x23d606;}export async function resolveDb(_0x2043dd,_0x9ba713){const _0x116c33=a156_0xab6d,_0x36cd51=await listDatabases(_0x2043dd);if(_0x36cd51[_0x116c33(0x192)]===0x0)return{'resolved':[],'error':_0x116c33(0x18b)+_0x2043dd+_0x116c33(0x17f)};if(!_0x9ba713)return{'resolved':_0x36cd51};const _0x3dd617=Number(_0x9ba713);if(!Number[_0x116c33(0x182)](_0x3dd617)){const _0x2ee7ce=_0x36cd51[_0x116c33(0x186)](_0x284b7e=>_0x284b7e[_0x116c33(0x18d)]===_0x3dd617);if(_0x2ee7ce)return{'resolved':[_0x2ee7ce]};}const _0x1579e6=_0x9ba713[_0x116c33(0x183)](),_0x46507c=_0x36cd51['filter'](_0x1f4d33=>_0x1f4d33[_0x116c33(0x18c)][_0x116c33(0x183)]()[_0x116c33(0x181)](_0x1579e6));if(_0x46507c[_0x116c33(0x192)]>0x0)return{'resolved':_0x46507c};const _0x25cf40=_0x36cd51[_0x116c33(0x18f)](_0x381827=>_0x381827['dbName']+'\x20('+_0x381827[_0x116c33(0x18d)]+')')[_0x116c33(0x17d)](',\x20');return{'resolved':[],'error':'No\x20database\x20matching\x20\x22'+_0x9ba713+'\x22\x20under\x20app\x20\x22'+_0x2043dd+_0x116c33(0x187)+_0x25cf40+_0x116c33(0x190)};}export async function resolveOneDb(_0x2092f5,_0x21b440){const _0x372d6c=a156_0xab6d,{resolved:_0x130051,error:_0x186181}=await resolveDb(_0x2092f5,_0x21b440);if(_0x186181)return{'db':null,'error':_0x186181};if(_0x130051[_0x372d6c(0x192)]===0x1)return{'db':_0x130051[0x0]};if(!_0x21b440){const _0x18e290=_0x130051[_0x372d6c(0x18f)](_0x43f1d4=>_0x43f1d4['dbName']+'\x20('+_0x43f1d4[_0x372d6c(0x18d)]+')')['join'](',\x20');return{'db':null,'error':_0x372d6c(0x193)+_0x18e290};}const _0x5d55ac=_0x130051[_0x372d6c(0x18f)](_0x50a21e=>_0x50a21e[_0x372d6c(0x18c)]+'\x20('+_0x50a21e[_0x372d6c(0x18d)]+')')[_0x372d6c(0x17d)](',\x20');return{'db':null,'error':'\x22'+_0x21b440+'\x22\x20matches\x20multiple\x20databases:\x20'+_0x5d55ac+'.\x20Be\x20more\x20specific.'};}function a156_0xab6d(_0x917ec7,_0x8f7ee0){_0x917ec7=_0x917ec7-0x17d;const _0x1f3ef5=a156_0x1f3e();let _0xab6ddc=_0x1f3ef5[_0x917ec7];return _0xab6ddc;}export async function getDbName(_0x208242,_0x42de2c){const _0x1c7250=a156_0xab6d,_0x325d0c=await listDatabases(_0x208242);return _0x325d0c[_0x1c7250(0x186)](_0x123a4c=>_0x123a4c[_0x1c7250(0x18d)]===_0x42de2c)?.[_0x1c7250(0x18c)];}
@@ -1 +1 @@
1
- const a156_0x3b5fa3=a156_0x3060;(function(_0x25d336,_0x1d0d26){const _0x5ab163=a156_0x3060,_0x5152f6=_0x25d336();while(!![]){try{const _0x401f=parseInt(_0x5ab163(0x181))/0x1+parseInt(_0x5ab163(0x185))/0x2+parseInt(_0x5ab163(0x17f))/0x3*(-parseInt(_0x5ab163(0x186))/0x4)+-parseInt(_0x5ab163(0x18f))/0x5+-parseInt(_0x5ab163(0x187))/0x6*(parseInt(_0x5ab163(0x180))/0x7)+-parseInt(_0x5ab163(0x18e))/0x8*(-parseInt(_0x5ab163(0x189))/0x9)+-parseInt(_0x5ab163(0x17e))/0xa*(-parseInt(_0x5ab163(0x18d))/0xb);if(_0x401f===_0x1d0d26)break;else _0x5152f6['push'](_0x5152f6['shift']());}catch(_0x3b5972){_0x5152f6['push'](_0x5152f6['shift']());}}}(a156_0x2638,0x8fced));import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';function a156_0x2638(){const _0x160096=['260xULgWl','3FGESLh','70agpPZp','375017ZYOfaK','.json','.rabetbase','cwd','1511472JZRkWb','1273708ftgSKA','443442KYKJCZ','page.lock.json','3099996fuFgrS','F_OK','toUpperCase','appPagesDir','104258umEAuH','16MmeLFC','2097675rNnEYH'];a156_0x2638=function(){return _0x160096;};return a156_0x2638();}export function loadPageProjectConfig(_0x2640f4,_0x4ad20e=process[a156_0x3b5fa3(0x184)]()){const _0x42eae4=a156_0x3b5fa3,_0x3e4369=resolve(_0x4ad20e),_0x3a2ee9=join(_0x3e4369,'.rabetbase','page');return{'projectRoot':_0x3e4369,'pagesBaseDir':_0x3a2ee9,'appPagesDir':join(_0x3a2ee9,_0x2640f4),'lockFilePath':join(_0x3e4369,_0x42eae4(0x183),_0x42eae4(0x188))};}function a156_0x3060(_0x19ebfe,_0x3b4fd6){_0x19ebfe=_0x19ebfe-0x17e;const _0x263890=a156_0x2638();let _0x30608d=_0x263890[_0x19ebfe];return _0x30608d;}export function buildPageFileName(_0x398e32,_0x5dfa5d){const _0x319e1a=a156_0x3b5fa3;return _0x398e32+'-'+String(_0x5dfa5d)[_0x319e1a(0x18b)]()+_0x319e1a(0x182);}export function resolvePageFilePath(_0x37a2c0,_0x301565,_0x4c44f3){const _0x5b984f=a156_0x3b5fa3;return join(_0x37a2c0[_0x5b984f(0x18c)],buildPageFileName(_0x301565,_0x4c44f3));}export async function ensureParentDirectory(_0x8e9187){await mkdir(dirname(_0x8e9187),{'recursive':!![]});}export async function fileExists(_0x310a0a){const _0x1ff623=a156_0x3b5fa3;try{return await access(_0x310a0a,constants[_0x1ff623(0x18a)]),!![];}catch{return![];}}
1
+ const a157_0x37ad57=a157_0x53f7;(function(_0x5797ab,_0x280d74){const _0x2682cc=a157_0x53f7,_0x526250=_0x5797ab();while(!![]){try{const _0x3ffdbb=-parseInt(_0x2682cc(0x111))/0x1*(-parseInt(_0x2682cc(0x101))/0x2)+parseInt(_0x2682cc(0x104))/0x3*(parseInt(_0x2682cc(0x110))/0x4)+parseInt(_0x2682cc(0x10d))/0x5*(parseInt(_0x2682cc(0x10c))/0x6)+parseInt(_0x2682cc(0x109))/0x7*(parseInt(_0x2682cc(0x107))/0x8)+-parseInt(_0x2682cc(0x108))/0x9+-parseInt(_0x2682cc(0x10e))/0xa*(parseInt(_0x2682cc(0x105))/0xb)+parseInt(_0x2682cc(0x10b))/0xc*(-parseInt(_0x2682cc(0x106))/0xd);if(_0x3ffdbb===_0x280d74)break;else _0x526250['push'](_0x526250['shift']());}catch(_0x88b808){_0x526250['push'](_0x526250['shift']());}}}(a157_0x4858,0x92c2b));import{constants}from'node:fs';function a157_0x4858(){const _0x2ba7f5=['3489WJonma','2585IqTknS','25873627amYeQy','9446328ttcroq','6158025XCmFgo','7XVPhtY','.rabetbase','12LUkCgR','29286PajPSc','1175FUtZAA','15490NcfQiW','page','3392XLInLd','592luAitU','F_OK','cwd','1100ZobJIj','.json','toUpperCase'];a157_0x4858=function(){return _0x2ba7f5;};return a157_0x4858();}import{access,mkdir}from'node:fs/promises';function a157_0x53f7(_0x5d288f,_0x4fb184){_0x5d288f=_0x5d288f-0x101;const _0x485850=a157_0x4858();let _0x53f7b5=_0x485850[_0x5d288f];return _0x53f7b5;}import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x33c0e9,_0x391e6e=process[a157_0x37ad57(0x113)]()){const _0x183662=a157_0x37ad57,_0x32b9f2=resolve(_0x391e6e),_0x44b1ec=join(_0x32b9f2,_0x183662(0x10a),_0x183662(0x10f));return{'projectRoot':_0x32b9f2,'pagesBaseDir':_0x44b1ec,'appPagesDir':join(_0x44b1ec,_0x33c0e9),'lockFilePath':join(_0x32b9f2,_0x183662(0x10a),'page.lock.json')};}export function buildPageFileName(_0x1675d3,_0x4c793e){const _0x356cd6=a157_0x37ad57;return _0x1675d3+'-'+String(_0x4c793e)[_0x356cd6(0x103)]()+_0x356cd6(0x102);}export function resolvePageFilePath(_0x254566,_0x52e555,_0x79436e){return join(_0x254566['appPagesDir'],buildPageFileName(_0x52e555,_0x79436e));}export async function ensureParentDirectory(_0x3b274){await mkdir(dirname(_0x3b274),{'recursive':!![]});}export async function fileExists(_0xe817c4){const _0x2b5ad0=a157_0x37ad57;try{return await access(_0xe817c4,constants[_0x2b5ad0(0x112)]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x55f1a,_0x65ccb3){const _0xbeeb7a=a157_0xcd84,_0x222963=_0x55f1a();while(!![]){try{const _0x4e3cad=-parseInt(_0xbeeb7a(0x83))/0x1*(-parseInt(_0xbeeb7a(0x86))/0x2)+-parseInt(_0xbeeb7a(0x87))/0x3*(parseInt(_0xbeeb7a(0x84))/0x4)+parseInt(_0xbeeb7a(0x88))/0x5+-parseInt(_0xbeeb7a(0x80))/0x6*(-parseInt(_0xbeeb7a(0x81))/0x7)+parseInt(_0xbeeb7a(0x7b))/0x8*(-parseInt(_0xbeeb7a(0x7d))/0x9)+parseInt(_0xbeeb7a(0x7f))/0xa+parseInt(_0xbeeb7a(0x8a))/0xb*(-parseInt(_0xbeeb7a(0x7a))/0xc);if(_0x4e3cad===_0x65ccb3)break;else _0x222963['push'](_0x222963['shift']());}catch(_0x2636a2){_0x222963['push'](_0x222963['shift']());}}}(a157_0x4694,0xccbc1));import a157_0x2f69d3 from'node:crypto';import{readFile}from'node:fs/promises';function a157_0x4694(){const _0x2c85a5=['1398876sbWUHe','49nRyHeQ','hex','593qgWQys','32VYWSSr','parse','1436viRruz','469587sHNHWm','8113920vVnmAK','stringify','16147879AjOilP','12vvNAfn','8sKYZYL','md5','4300092XInNYH','utf8','3560220NygfcG'];a157_0x4694=function(){return _0x2c85a5;};return a157_0x4694();}export function serializePageSchemaForFile(_0x127a9d){const _0x2b40d1=a157_0xcd84;return JSON[_0x2b40d1(0x89)](JSON[_0x2b40d1(0x85)](_0x127a9d),null,0x2)+'\x0a';}function a157_0xcd84(_0x39aaf9,_0x45902c){_0x39aaf9=_0x39aaf9-0x7a;const _0x4694bd=a157_0x4694();let _0xcd847b=_0x4694bd[_0x39aaf9];return _0xcd847b;}export function computePageContentHash(_0xa20bac){const _0x33026c=a157_0xcd84;return a157_0x2f69d3['createHash'](_0x33026c(0x7c))['update'](_0xa20bac)['digest'](_0x33026c(0x82));}export function computeSerializedSchemaHash(_0xb0642d){return computePageContentHash(serializePageSchemaForFile(_0xb0642d));}export async function computePageFileHash(_0x1a1862){const _0x4a75ca=a157_0xcd84,_0x499c70=await readFile(_0x1a1862,_0x4a75ca(0x7e));return computePageContentHash(_0x499c70);}
1
+ (function(_0x1a0c28,_0x5c4361){const _0x5c76f9=a158_0x5d50,_0x193338=_0x1a0c28();while(!![]){try{const _0x5c0aad=parseInt(_0x5c76f9(0x1eb))/0x1+parseInt(_0x5c76f9(0x1e8))/0x2+-parseInt(_0x5c76f9(0x1ed))/0x3+parseInt(_0x5c76f9(0x1f0))/0x4+parseInt(_0x5c76f9(0x1f1))/0x5*(-parseInt(_0x5c76f9(0x1ee))/0x6)+parseInt(_0x5c76f9(0x1ec))/0x7+-parseInt(_0x5c76f9(0x1f3))/0x8*(parseInt(_0x5c76f9(0x1ea))/0x9);if(_0x5c0aad===_0x5c4361)break;else _0x193338['push'](_0x193338['shift']());}catch(_0xc66b5a){_0x193338['push'](_0x193338['shift']());}}}(a158_0x4ad1,0x97743));function a158_0x5d50(_0x555fc5,_0x1c162e){_0x555fc5=_0x555fc5-0x1e7;const _0x4ad12c=a158_0x4ad1();let _0x5d5061=_0x4ad12c[_0x555fc5];return _0x5d5061;}import a158_0x207960 from'node:crypto';import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x1526a2){const _0x582bd7=a158_0x5d50;return JSON[_0x582bd7(0x1e7)](JSON['parse'](_0x1526a2),null,0x2)+'\x0a';}export function computePageContentHash(_0x374968){const _0x220318=a158_0x5d50;return a158_0x207960[_0x220318(0x1f2)](_0x220318(0x1ef))['update'](_0x374968)['digest']('hex');}export function computeSerializedSchemaHash(_0x554c20){return computePageContentHash(serializePageSchemaForFile(_0x554c20));}function a158_0x4ad1(){const _0x527379=['md5','3346644Jzzfvw','5MjCZUF','createHash','8UEFlPa','stringify','2391434WisLMd','utf8','8055576wVnJtO','519535BdlmSV','506933VBsKhW','2014167vhTHtU','2625144YeWDif'];a158_0x4ad1=function(){return _0x527379;};return a158_0x4ad1();}export async function computePageFileHash(_0x5020a3){const _0xb9d708=a158_0x5d50,_0x13d0c5=await readFile(_0x5020a3,_0xb9d708(0x1e9));return computePageContentHash(_0x13d0c5);}
@@ -1 +1 @@
1
- (function(_0x1e7e07,_0x2ad6a3){const _0x523eb6=a158_0x2d5d,_0x474587=_0x1e7e07();while(!![]){try{const _0x247834=parseInt(_0x523eb6(0x117))/0x1*(parseInt(_0x523eb6(0x125))/0x2)+parseInt(_0x523eb6(0x11b))/0x3+-parseInt(_0x523eb6(0x121))/0x4*(-parseInt(_0x523eb6(0x116))/0x5)+parseInt(_0x523eb6(0x123))/0x6*(parseInt(_0x523eb6(0x115))/0x7)+-parseInt(_0x523eb6(0x126))/0x8+parseInt(_0x523eb6(0x11d))/0x9*(parseInt(_0x523eb6(0x120))/0xa)+-parseInt(_0x523eb6(0x124))/0xb;if(_0x247834===_0x2ad6a3)break;else _0x474587['push'](_0x474587['shift']());}catch(_0x8bb3e3){_0x474587['push'](_0x474587['shift']());}}}(a158_0x5486,0xb7431));import{mkdir,readFile,writeFile}from'node:fs/promises';function a158_0x5486(){const _0x53e699=['11083088xRNVTZ','parse','stringify','lastSync','672ajpVTT','8660aFVCkd','341LtrGCw','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','apps','object','3310425SvLtMw','pages','42381hrAxHb','utf8','ENOENT','1890ktWFKi','956ZtsSVu','code','34548fBcFLK','15495029udABnN','3428ONXEPn'];a158_0x5486=function(){return _0x53e699;};return a158_0x5486();}import{dirname}from'node:path';function a158_0x2d5d(_0x2614a9,_0x247d3d){_0x2614a9=_0x2614a9-0x112;const _0x5486bd=a158_0x5486();let _0x2d5de9=_0x5486bd[_0x2614a9];return _0x2d5de9;}export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x1397cd,_0x3edf2a){const _0x36d603=a158_0x2d5d,_0x511787={'apps':_0x1397cd[_0x36d603(0x119)]&&typeof _0x1397cd[_0x36d603(0x119)]===_0x36d603(0x11a)?_0x1397cd[_0x36d603(0x119)]:{}};let _0x2903df=_0x511787['apps'][_0x3edf2a];if(!_0x2903df)return _0x2903df={'lastSync':'','pages':{}},_0x511787[_0x36d603(0x119)][_0x3edf2a]=_0x2903df,{'lockData':_0x511787,'appLock':_0x2903df};return!_0x2903df[_0x36d603(0x114)]&&(_0x2903df[_0x36d603(0x114)]=''),(!_0x2903df[_0x36d603(0x11c)]||typeof _0x2903df[_0x36d603(0x11c)]!==_0x36d603(0x11a))&&(_0x2903df[_0x36d603(0x11c)]={}),{'lockData':_0x511787,'appLock':_0x2903df};}export async function readPageLockFile(_0x2161c0){const _0x59be92=a158_0x2d5d;try{const _0x70790a=await readFile(_0x2161c0,_0x59be92(0x11e)),_0x33be45=JSON[_0x59be92(0x112)](_0x70790a);return{'apps':_0x33be45[_0x59be92(0x119)]&&typeof _0x33be45['apps']==='object'?_0x33be45[_0x59be92(0x119)]:{}};}catch(_0x27dc6e){if(_0x27dc6e[_0x59be92(0x122)]===_0x59be92(0x11f))return null;throw new Error(_0x59be92(0x118)+String(_0x27dc6e));}}export async function writePageLockFile(_0x4ca9c3,_0x47587c){const _0x5c46bb=a158_0x2d5d;await mkdir(dirname(_0x4ca9c3),{'recursive':!![]}),await writeFile(_0x4ca9c3,JSON[_0x5c46bb(0x113)](_0x47587c,null,0x2),_0x5c46bb(0x11e));}
1
+ (function(_0x4e8910,_0x27b075){const _0x53385d=a159_0x305c,_0x59cf34=_0x4e8910();while(!![]){try{const _0x5f0fc5=parseInt(_0x53385d(0x1a7))/0x1*(-parseInt(_0x53385d(0x1a9))/0x2)+parseInt(_0x53385d(0x1ac))/0x3*(parseInt(_0x53385d(0x1a4))/0x4)+-parseInt(_0x53385d(0x1b4))/0x5*(parseInt(_0x53385d(0x1aa))/0x6)+parseInt(_0x53385d(0x1b6))/0x7*(parseInt(_0x53385d(0x1b2))/0x8)+-parseInt(_0x53385d(0x1b5))/0x9+parseInt(_0x53385d(0x1b0))/0xa+-parseInt(_0x53385d(0x1af))/0xb*(parseInt(_0x53385d(0x1b3))/0xc);if(_0x5f0fc5===_0x27b075)break;else _0x59cf34['push'](_0x59cf34['shift']());}catch(_0x4a82b5){_0x59cf34['push'](_0x59cf34['shift']());}}}(a159_0x163b,0xd3831));import{mkdir,readFile,writeFile}from'node:fs/promises';function a159_0x305c(_0x3c88ec,_0x3bd799){_0x3c88ec=_0x3c88ec-0x1a3;const _0x163bcb=a159_0x163b();let _0x305c19=_0x163bcb[_0x3c88ec];return _0x305c19;}import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x3c6343,_0x56d5f2){const _0x376143=a159_0x305c,_0x144522={'apps':_0x3c6343['apps']&&typeof _0x3c6343[_0x376143(0x1ad)]===_0x376143(0x1b1)?_0x3c6343[_0x376143(0x1ad)]:{}};let _0x377c5d=_0x144522[_0x376143(0x1ad)][_0x56d5f2];if(!_0x377c5d)return _0x377c5d={'lastSync':'','pages':{}},_0x144522[_0x376143(0x1ad)][_0x56d5f2]=_0x377c5d,{'lockData':_0x144522,'appLock':_0x377c5d};return!_0x377c5d['lastSync']&&(_0x377c5d[_0x376143(0x1a3)]=''),(!_0x377c5d['pages']||typeof _0x377c5d[_0x376143(0x1a8)]!==_0x376143(0x1b1))&&(_0x377c5d['pages']={}),{'lockData':_0x144522,'appLock':_0x377c5d};}export async function readPageLockFile(_0x5cc187){const _0x31e2a6=a159_0x305c;try{const _0x28d4bd=await readFile(_0x5cc187,_0x31e2a6(0x1a6)),_0x108768=JSON[_0x31e2a6(0x1ab)](_0x28d4bd);return{'apps':_0x108768[_0x31e2a6(0x1ad)]&&typeof _0x108768[_0x31e2a6(0x1ad)]===_0x31e2a6(0x1b1)?_0x108768[_0x31e2a6(0x1ad)]:{}};}catch(_0x592127){if(_0x592127['code']===_0x31e2a6(0x1a5))return null;throw new Error('Failed\x20to\x20read\x20page\x20lock\x20file:\x20'+String(_0x592127));}}function a159_0x163b(){const _0x47a0e6=['16eUaOxa','pages','26252UsrsgB','6FntPSP','parse','9237JTwTEq','apps','stringify','3391311noJqTz','12060440iyjomF','object','59832rzFUjj','60KoqlDH','485795zKwcNf','13839687kltYII','1379sMNgSX','lastSync','2044rYjnSz','ENOENT','utf8'];a159_0x163b=function(){return _0x47a0e6;};return a159_0x163b();}export async function writePageLockFile(_0x29cd8f,_0x1d988d){const _0x522522=a159_0x305c;await mkdir(dirname(_0x29cd8f),{'recursive':!![]}),await writeFile(_0x29cd8f,JSON[_0x522522(0x1ae)](_0x1d988d,null,0x2),_0x522522(0x1a6));}
@@ -1 +1 @@
1
- const a160_0x33eb02=a160_0x3a71;(function(_0x2e8811,_0x44acaf){const _0x64109c=a160_0x3a71,_0x4199f3=_0x2e8811();while(!![]){try{const _0x3fbecc=-parseInt(_0x64109c(0x154))/0x1*(-parseInt(_0x64109c(0x155))/0x2)+parseInt(_0x64109c(0x150))/0x3+-parseInt(_0x64109c(0x151))/0x4*(-parseInt(_0x64109c(0x14a))/0x5)+-parseInt(_0x64109c(0x149))/0x6*(parseInt(_0x64109c(0x146))/0x7)+parseInt(_0x64109c(0x153))/0x8*(-parseInt(_0x64109c(0x152))/0x9)+parseInt(_0x64109c(0x14e))/0xa+-parseInt(_0x64109c(0x14b))/0xb;if(_0x3fbecc===_0x44acaf)break;else _0x4199f3['push'](_0x4199f3['shift']());}catch(_0x521521){_0x4199f3['push'](_0x4199f3['shift']());}}}(a160_0x5674,0xbe97b));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';function a160_0x3a71(_0x90edaa,_0x1ee83f){_0x90edaa=_0x90edaa-0x146;const _0x5674c6=a160_0x5674();let _0x3a71b2=_0x5674c6[_0x90edaa];return _0x3a71b2;}const DOT_DIR=a160_0x33eb02(0x14c),LOCK_FILE_NAME=a160_0x33eb02(0x147),TRASH_DIR_NAME=a160_0x33eb02(0x14d);export function loadSqlProjectConfig(_0x5c760e,_0x1f6c30){const _0x2c0450=a160_0x33eb02,_0x5b1d79=resolve(_0x1f6c30??findProjectRootDirectory()),_0x2b1346=DOT_DIR+_0x2c0450(0x14f),_0x5e8883=_0x2b1346+'/'+_0x5c760e;return{'projectRoot':_0x5b1d79,'appCode':_0x5c760e,'sqlWorkspaceRoot':_0x2b1346,'sqlRoot':_0x5e8883,'sqlRootDir':resolve(_0x5b1d79,DOT_DIR,_0x2c0450(0x148),_0x5c760e),'lockFilePath':resolve(_0x5b1d79,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x5b1d79,DOT_DIR,TRASH_DIR_NAME)};}function a160_0x5674(){const _0x175fac=['sql.lock.json','sql','6ISzwjt','5aOEvtY','8775800SmWTVL','.rabetbase','sql-trash','5128600zKfHOp','/sql','3318024ahlTTN','1003556MMhmOQ','18BYZTFn','1374488KikRXR','3622Cpjpeh','410BIxelF','4831246XBBywJ'];a160_0x5674=function(){return _0x175fac;};return a160_0x5674();}
1
+ const a161_0x2559f5=a161_0x1f70;function a161_0x1f70(_0x375631,_0x2ee957){_0x375631=_0x375631-0xcb;const _0x1c9415=a161_0x1c94();let _0x1f7083=_0x1c9415[_0x375631];return _0x1f7083;}(function(_0x524f74,_0x2f29fa){const _0x11d43e=a161_0x1f70,_0x562c45=_0x524f74();while(!![]){try{const _0x57dc09=-parseInt(_0x11d43e(0xcf))/0x1+parseInt(_0x11d43e(0xd1))/0x2+parseInt(_0x11d43e(0xd2))/0x3+parseInt(_0x11d43e(0xcc))/0x4+-parseInt(_0x11d43e(0xcd))/0x5+-parseInt(_0x11d43e(0xd4))/0x6+-parseInt(_0x11d43e(0xd6))/0x7*(-parseInt(_0x11d43e(0xce))/0x8);if(_0x57dc09===_0x2f29fa)break;else _0x562c45['push'](_0x562c45['shift']());}catch(_0x22e273){_0x562c45['push'](_0x562c45['shift']());}}}(a161_0x1c94,0x86681));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a161_0x2559f5(0xd7),LOCK_FILE_NAME=a161_0x2559f5(0xd3),TRASH_DIR_NAME=a161_0x2559f5(0xcb);function a161_0x1c94(){const _0x2d9638=['/sql','1714592xLHGyn','1568097bXwdfF','sql.lock.json','6299124yXumsd','sql','4732kBjGwP','.rabetbase','sql-trash','3040000YJnGOL','1100530qHnTQK','2824tRpNsZ','558134HYbsxS'];a161_0x1c94=function(){return _0x2d9638;};return a161_0x1c94();}export function loadSqlProjectConfig(_0x47abc3,_0x579d41){const _0x209306=a161_0x2559f5,_0x248b38=resolve(_0x579d41??findProjectRootDirectory()),_0x515b8a=DOT_DIR+_0x209306(0xd0),_0x57a1ed=_0x515b8a+'/'+_0x47abc3;return{'projectRoot':_0x248b38,'appCode':_0x47abc3,'sqlWorkspaceRoot':_0x515b8a,'sqlRoot':_0x57a1ed,'sqlRootDir':resolve(_0x248b38,DOT_DIR,_0x209306(0xd5),_0x47abc3),'lockFilePath':resolve(_0x248b38,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x248b38,DOT_DIR,TRASH_DIR_NAME)};}
@@ -1 +1 @@
1
- (function(_0x3c7d45,_0x7f25e1){const _0x2be8ff=a161_0x3c40,_0x441eaf=_0x3c7d45();while(!![]){try{const _0x2e61e6=parseInt(_0x2be8ff(0x13f))/0x1*(parseInt(_0x2be8ff(0x139))/0x2)+parseInt(_0x2be8ff(0x14e))/0x3+parseInt(_0x2be8ff(0x149))/0x4+-parseInt(_0x2be8ff(0x14f))/0x5+parseInt(_0x2be8ff(0x14a))/0x6+parseInt(_0x2be8ff(0x13c))/0x7+-parseInt(_0x2be8ff(0x134))/0x8;if(_0x2e61e6===_0x7f25e1)break;else _0x441eaf['push'](_0x441eaf['shift']());}catch(_0x25e938){_0x441eaf['push'](_0x441eaf['shift']());}}}(a161_0x1ca4,0xb868d));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x4dbb6d){const _0x2d30c1=a161_0x3c40;if(_0x4dbb6d===_0x2d30c1(0x13d))return _0x2d30c1(0x145);if(_0x4dbb6d===_0x2d30c1(0x13b))return'mybatisXml';return undefined;}async function scanSqlFilesRecursively(_0x498e83,_0x31b373){const _0x5d12bb=a161_0x3c40,_0x2c8d64=[];try{const _0x2e9844=await readdir(_0x498e83,{'withFileTypes':!![]});for(const _0x5ea934 of _0x2e9844){const _0x2cda49=join(_0x498e83,_0x5ea934[_0x5d12bb(0x141)]);if(_0x5ea934['isDirectory']()){_0x2c8d64[_0x5d12bb(0x140)](...await scanSqlFilesRecursively(_0x2cda49,_0x31b373));continue;}if(!_0x5ea934[_0x5d12bb(0x13e)]())continue;const _0x3e8930=extname(_0x5ea934['name'])[_0x5d12bb(0x14d)](),_0x1f5ed2=extensionToMode(_0x3e8930);if(!_0x1f5ed2)continue;const _0x5aab0b=relative(_0x31b373,_0x2cda49)[_0x5d12bb(0x137)](/\\/g,'/'),_0x14ba41=_0x5aab0b[_0x5d12bb(0x135)]('/')[_0x5d12bb(0x143)](Boolean),_0x4110bf=parseSqlPath(_0x14ba41,_0x5ea934[_0x5d12bb(0x141)],_0x3e8930);if(!_0x4110bf)continue;_0x2c8d64[_0x5d12bb(0x140)]({'sqlCode':_0x4110bf[_0x5d12bb(0x14c)],'sqlName':_0x4110bf[_0x5d12bb(0x148)],'dbDirectory':_0x14ba41[0x0],'filePath':_0x2cda49,'relativePath':_0x5aab0b,'lockKey':_0x4110bf[_0x5d12bb(0x14c)],'mode':_0x1f5ed2});}}catch(_0x114a6c){if(_0x114a6c['code']!=='ENOENT')throw _0x114a6c;}return _0x2c8d64;}export async function scanLocalSqlQueries(_0x356934){const _0x4895e0=a161_0x3c40;return scanSqlFilesRecursively(_0x356934[_0x4895e0(0x146)],_0x356934[_0x4895e0(0x146)]);}export function resolveLocalSqlFilePath(_0x4dad4d,_0x316df0,_0x1a3bbb){const _0x26ad63=a161_0x3c40,_0x2190a1=_0x1a3bbb?.[_0x26ad63(0x138)]||(_0x1a3bbb?.[_0x26ad63(0x148)]||_0x1a3bbb?.[_0x26ad63(0x150)]?buildSqlRelativePath(_0x316df0,_0x1a3bbb?.[_0x26ad63(0x148)],_0x1a3bbb?.[_0x26ad63(0x150)],_0x1a3bbb?.['mode']||_0x26ad63(0x145),_0x1a3bbb?.[_0x26ad63(0x144)]):buildDefaultSqlFileName(_0x316df0,_0x1a3bbb?.['mode']||'sql'));return join(_0x4dad4d['sqlRootDir'],_0x2190a1);}export async function directoryExists(_0x6a8415){const _0x214bb2=a161_0x3c40;try{const _0x37ed30=await stat(_0x6a8415);return _0x37ed30[_0x214bb2(0x136)]();}catch{return![];}}function a161_0x1ca4(){const _0x2590ea=['isDirectory','replace','path','338gLQeIC','length','.xml','6645569peUvOe','.sql','isFile','1181aPfMYt','push','name','test','filter','dbId','sql','sqlRootDir','slice','sqlName','992204aJQooU','5252028SPesWV','indexOf','sqlCode','toLowerCase','3621207uJFaZZ','6406700IVRxys','dbName','11541864hdFyvb','split'];a161_0x1ca4=function(){return _0x2590ea;};return a161_0x1ca4();}function parseSqlPath(_0x370ff0,_0x5a63f7,_0x4db988){const _0x444e1c=a161_0x3c40,_0x135725=_0x5a63f7[_0x444e1c(0x147)](0x0,-_0x4db988[_0x444e1c(0x13a)]);if(_0x370ff0[_0x444e1c(0x13a)]<0x2)return null;const _0x69704a=_0x135725[_0x444e1c(0x14b)]('_');if(_0x69704a<=0x0||_0x69704a>=_0x135725[_0x444e1c(0x13a)]-0x1)return null;const _0x115b9a=_0x135725[_0x444e1c(0x147)](0x0,_0x69704a);if(!isLikelySqlCode(_0x115b9a))return null;return{'sqlCode':_0x115b9a,'sqlName':_0x135725[_0x444e1c(0x147)](_0x69704a+0x1)};}function a161_0x3c40(_0x5e5a58,_0x526a98){_0x5e5a58=_0x5e5a58-0x134;const _0x1ca461=a161_0x1ca4();let _0x3c406d=_0x1ca461[_0x5e5a58];return _0x3c406d;}function isLikelySqlCode(_0x2f1d7d){const _0x4561f8=a161_0x3c40;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x4561f8(0x142)](_0x2f1d7d);}
1
+ (function(_0x74caf3,_0x159d4f){const _0x27edae=a162_0x15e4,_0x2fca46=_0x74caf3();while(!![]){try{const _0xcaf86c=parseInt(_0x27edae(0x10d))/0x1+-parseInt(_0x27edae(0x124))/0x2+parseInt(_0x27edae(0x127))/0x3+-parseInt(_0x27edae(0x117))/0x4*(-parseInt(_0x27edae(0x115))/0x5)+-parseInt(_0x27edae(0x125))/0x6*(-parseInt(_0x27edae(0x128))/0x7)+-parseInt(_0x27edae(0x10f))/0x8+parseInt(_0x27edae(0x11a))/0x9*(-parseInt(_0x27edae(0x109))/0xa);if(_0xcaf86c===_0x159d4f)break;else _0x2fca46['push'](_0x2fca46['shift']());}catch(_0x69ddfd){_0x2fca46['push'](_0x2fca46['shift']());}}}(a162_0x114f,0xe53b6));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function a162_0x15e4(_0x440c2e,_0x21d103){_0x440c2e=_0x440c2e-0x109;const _0x114fb5=a162_0x114f();let _0x15e44b=_0x114fb5[_0x440c2e];return _0x15e44b;}function extensionToMode(_0x599180){const _0x456330=a162_0x15e4;if(_0x599180===_0x456330(0x110))return _0x456330(0x126);if(_0x599180===_0x456330(0x11d))return'mybatisXml';return undefined;}async function scanSqlFilesRecursively(_0x3bc4e5,_0x461f85){const _0x170043=a162_0x15e4,_0x1a8b63=[];try{const _0x1010f9=await readdir(_0x3bc4e5,{'withFileTypes':!![]});for(const _0x5d7b06 of _0x1010f9){const _0x1f9747=join(_0x3bc4e5,_0x5d7b06[_0x170043(0x11b)]);if(_0x5d7b06[_0x170043(0x11e)]()){_0x1a8b63[_0x170043(0x116)](...await scanSqlFilesRecursively(_0x1f9747,_0x461f85));continue;}if(!_0x5d7b06[_0x170043(0x10a)]())continue;const _0x210687=extname(_0x5d7b06[_0x170043(0x11b)])[_0x170043(0x119)](),_0x42677e=extensionToMode(_0x210687);if(!_0x42677e)continue;const _0x54e571=relative(_0x461f85,_0x1f9747)[_0x170043(0x11f)](/\\/g,'/'),_0x1da1fa=_0x54e571[_0x170043(0x11c)]('/')['filter'](Boolean),_0x18a9d5=parseSqlPath(_0x1da1fa,_0x5d7b06[_0x170043(0x11b)],_0x210687);if(!_0x18a9d5)continue;_0x1a8b63['push']({'sqlCode':_0x18a9d5[_0x170043(0x10b)],'sqlName':_0x18a9d5['sqlName'],'dbDirectory':_0x1da1fa[0x0],'filePath':_0x1f9747,'relativePath':_0x54e571,'lockKey':_0x18a9d5[_0x170043(0x10b)],'mode':_0x42677e});}}catch(_0xe0f1a7){if(_0xe0f1a7[_0x170043(0x112)]!=='ENOENT')throw _0xe0f1a7;}return _0x1a8b63;}export async function scanLocalSqlQueries(_0x11f6b1){const _0x4a84f0=a162_0x15e4;return scanSqlFilesRecursively(_0x11f6b1['sqlRootDir'],_0x11f6b1[_0x4a84f0(0x10c)]);}function a162_0x114f(){const _0x285dc9=['2613620IQuTwn','isFile','sqlCode','sqlRootDir','362983zpQtwK','test','12561368qUhzeW','.sql','length','code','mode','dbId','4380040ZFHiKW','push','4rvgbZv','slice','toLowerCase','36OpmaUi','name','split','.xml','isDirectory','replace','sqlName','indexOf','dbName','path','542928NecVqz','108Bnfvju','sql','5621436Kujfmq','277361WMWNby'];a162_0x114f=function(){return _0x285dc9;};return a162_0x114f();}export function resolveLocalSqlFilePath(_0x4166b3,_0x2a553a,_0x4f4499){const _0xaae530=a162_0x15e4,_0x5b846c=_0x4f4499?.[_0xaae530(0x123)]||(_0x4f4499?.[_0xaae530(0x120)]||_0x4f4499?.[_0xaae530(0x122)]?buildSqlRelativePath(_0x2a553a,_0x4f4499?.[_0xaae530(0x120)],_0x4f4499?.[_0xaae530(0x122)],_0x4f4499?.[_0xaae530(0x113)]||_0xaae530(0x126),_0x4f4499?.[_0xaae530(0x114)]):buildDefaultSqlFileName(_0x2a553a,_0x4f4499?.[_0xaae530(0x113)]||_0xaae530(0x126)));return join(_0x4166b3[_0xaae530(0x10c)],_0x5b846c);}export async function directoryExists(_0xce8b40){const _0x4f4680=a162_0x15e4;try{const _0x54600d=await stat(_0xce8b40);return _0x54600d[_0x4f4680(0x11e)]();}catch{return![];}}function parseSqlPath(_0x1a9f75,_0x4ee7d1,_0x41e33f){const _0x20757a=a162_0x15e4,_0x1ee697=_0x4ee7d1[_0x20757a(0x118)](0x0,-_0x41e33f[_0x20757a(0x111)]);if(_0x1a9f75[_0x20757a(0x111)]<0x2)return null;const _0x4e4f63=_0x1ee697[_0x20757a(0x121)]('_');if(_0x4e4f63<=0x0||_0x4e4f63>=_0x1ee697[_0x20757a(0x111)]-0x1)return null;const _0x1aada6=_0x1ee697[_0x20757a(0x118)](0x0,_0x4e4f63);if(!isLikelySqlCode(_0x1aada6))return null;return{'sqlCode':_0x1aada6,'sqlName':_0x1ee697['slice'](_0x4e4f63+0x1)};}function isLikelySqlCode(_0x652c84){const _0x20842a=a162_0x15e4;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x20842a(0x10e)](_0x652c84);}
@@ -1 +1 @@
1
- (function(_0x34e0f7,_0x297816){const _0x1ff00a=a162_0x5438,_0x2ceda1=_0x34e0f7();while(!![]){try{const _0x1b8d64=parseInt(_0x1ff00a(0x17c))/0x1+-parseInt(_0x1ff00a(0x17a))/0x2*(-parseInt(_0x1ff00a(0x180))/0x3)+-parseInt(_0x1ff00a(0x175))/0x4+parseInt(_0x1ff00a(0x17b))/0x5*(-parseInt(_0x1ff00a(0x17f))/0x6)+parseInt(_0x1ff00a(0x17d))/0x7+parseInt(_0x1ff00a(0x17e))/0x8+parseInt(_0x1ff00a(0x177))/0x9*(-parseInt(_0x1ff00a(0x179))/0xa);if(_0x1b8d64===_0x297816)break;else _0x2ceda1['push'](_0x2ceda1['shift']());}catch(_0x2c6862){_0x2ceda1['push'](_0x2ceda1['shift']());}}}(a162_0x4382,0x1ceb8));import{readFile}from'node:fs/promises';function a162_0x5438(_0x437739,_0x284008){_0x437739=_0x437739-0x172;const _0x4382e5=a162_0x4382();let _0x54384d=_0x4382e5[_0x437739];return _0x54384d;}function a162_0x4382(){const _0x1521b6=['762424ipeaKT','6ddgIYO','510429xBZcYb','hex','createHash','md5','20168iEvIIH','utf8','108OMgSFi','update','212110lgAuzH','2iuFgJX','803135xbhQxb','203969yrgXAH','484694CVxnMB'];a162_0x4382=function(){return _0x1521b6;};return a162_0x4382();}import a162_0x305d2c from'node:crypto';export function computeSqlContentHash(_0x12a14e){const _0x137815=a162_0x5438;return a162_0x305d2c[_0x137815(0x173)](_0x137815(0x174))[_0x137815(0x178)](_0x12a14e)['digest'](_0x137815(0x172));}export async function computeSqlFileHash(_0x58c31f){const _0x5e78a5=a162_0x5438,_0x46bfc3=await readFile(_0x58c31f,_0x5e78a5(0x176));return computeSqlContentHash(_0x46bfc3);}
1
+ (function(_0x167617,_0x5cbfe2){const _0x42e889=a163_0x41e5,_0x24d40a=_0x167617();while(!![]){try{const _0x3c7b52=-parseInt(_0x42e889(0x1c2))/0x1+-parseInt(_0x42e889(0x1bc))/0x2*(parseInt(_0x42e889(0x1c1))/0x3)+-parseInt(_0x42e889(0x1b5))/0x4+-parseInt(_0x42e889(0x1bf))/0x5*(-parseInt(_0x42e889(0x1bd))/0x6)+parseInt(_0x42e889(0x1be))/0x7*(parseInt(_0x42e889(0x1ba))/0x8)+parseInt(_0x42e889(0x1c0))/0x9+parseInt(_0x42e889(0x1b7))/0xa;if(_0x3c7b52===_0x5cbfe2)break;else _0x24d40a['push'](_0x24d40a['shift']());}catch(_0x414270){_0x24d40a['push'](_0x24d40a['shift']());}}}(a163_0x1c07,0xec153));import{readFile}from'node:fs/promises';function a163_0x41e5(_0x4e92e9,_0x48a233){_0x4e92e9=_0x4e92e9-0x1b5;const _0x1c078f=a163_0x1c07();let _0x41e5b3=_0x1c078f[_0x4e92e9];return _0x41e5b3;}import a163_0x2d9e19 from'node:crypto';export function computeSqlContentHash(_0x189a97){const _0x5a9398=a163_0x41e5;return a163_0x2d9e19[_0x5a9398(0x1bb)]('md5')['update'](_0x189a97)[_0x5a9398(0x1b9)](_0x5a9398(0x1b8));}export async function computeSqlFileHash(_0x26c1d9){const _0x2d9d5c=a163_0x41e5,_0x2ca449=await readFile(_0x26c1d9,_0x2d9d5c(0x1b6));return computeSqlContentHash(_0x2ca449);}function a163_0x1c07(){const _0x3e4768=['utf8','6978310dyOkYt','hex','digest','317864HLBHxy','createHash','94vKNxvI','3392322QEAFiS','329HALSEb','5AbzHbW','9706932AokoIf','113628wvtsTy','529257ikXpRy','3731172oeUfyc'];a163_0x1c07=function(){return _0x3e4768;};return a163_0x1c07();}
@@ -1 +1 @@
1
- (function(_0x4964d0,_0x2194dc){const _0x434e2f=a163_0x29b6,_0x25295f=_0x4964d0();while(!![]){try{const _0x8b66a1=parseInt(_0x434e2f(0x185))/0x1+parseInt(_0x434e2f(0x18a))/0x2+parseInt(_0x434e2f(0x184))/0x3+parseInt(_0x434e2f(0x189))/0x4*(parseInt(_0x434e2f(0x181))/0x5)+-parseInt(_0x434e2f(0x18f))/0x6*(-parseInt(_0x434e2f(0x17f))/0x7)+parseInt(_0x434e2f(0x182))/0x8*(-parseInt(_0x434e2f(0x18e))/0x9)+-parseInt(_0x434e2f(0x186))/0xa;if(_0x8b66a1===_0x2194dc)break;else _0x25295f['push'](_0x25295f['shift']());}catch(_0xe99eb2){_0x25295f['push'](_0x25295f['shift']());}}}(a163_0x14cf,0xec843));import{mkdir,readFile,writeFile}from'node:fs/promises';function a163_0x14cf(){const _0x4f4983=['stringify','5463092MAzzYy','2210456eHzhoM','lastSync','utf8',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','18ycxkWq','5483334lqtPvS','parse','sqls','\x22.\x20','14AMTMss','sqlRoot','5NJOMhj','6831464MjXPvz','ENOENT','4969293NQKVlm','1089594kpBVtD','43681670sMEuoT','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.'];a163_0x14cf=function(){return _0x4f4983;};return a163_0x14cf();}import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x209c6f,_0x3a30c8,_0x5d3e3b,_0x16f02e){const _0x1ba803=a163_0x29b6,_0x41159d=_0x209c6f??createEmptySqlLock();let _0x13cac0=_0x41159d['apps'][_0x3a30c8];if(!_0x13cac0)return _0x13cac0={'sqlRoot':_0x5d3e3b,'lastSync':'','sqls':{}},_0x41159d['apps'][_0x3a30c8]=_0x13cac0,{'lockData':_0x41159d,'appLock':_0x13cac0};if(!_0x13cac0[_0x1ba803(0x180)])_0x13cac0[_0x1ba803(0x180)]=_0x5d3e3b;else{if(_0x13cac0['sqlRoot']!==_0x5d3e3b)throw new Error(_0x16f02e+_0x1ba803(0x18d)+_0x5d3e3b+'\x22\x20vs\x20lock\x20\x22'+_0x13cac0['sqlRoot']+_0x1ba803(0x192)+_0x1ba803(0x187));}return!_0x13cac0[_0x1ba803(0x191)]&&(_0x13cac0[_0x1ba803(0x191)]={}),!_0x13cac0[_0x1ba803(0x18b)]&&(_0x13cac0[_0x1ba803(0x18b)]=''),{'lockData':_0x41159d,'appLock':_0x13cac0};}export async function readSqlLockFile(_0x1d508a){const _0x304906=a163_0x29b6;try{const _0x55472d=await readFile(_0x1d508a,_0x304906(0x18c));return JSON[_0x304906(0x190)](_0x55472d);}catch(_0x3f04d1){if(_0x3f04d1['code']===_0x304906(0x183))return null;throw new Error('Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20'+String(_0x3f04d1));}}function a163_0x29b6(_0x2d9750,_0x246aa9){_0x2d9750=_0x2d9750-0x17f;const _0x14cf9f=a163_0x14cf();let _0x29b6b2=_0x14cf9f[_0x2d9750];return _0x29b6b2;}export async function writeSqlLockFile(_0x186cac,_0x50f0dd){const _0x2df5a8=a163_0x29b6;await mkdir(dirname(_0x186cac),{'recursive':!![]}),await writeFile(_0x186cac,JSON[_0x2df5a8(0x188)](_0x50f0dd,null,0x2),'utf8');}
1
+ (function(_0x5b36e6,_0x41a48c){const _0x3f4175=a164_0x11b9,_0x5748b3=_0x5b36e6();while(!![]){try{const _0x2b4b66=parseInt(_0x3f4175(0x93))/0x1*(parseInt(_0x3f4175(0x8e))/0x2)+-parseInt(_0x3f4175(0x94))/0x3+parseInt(_0x3f4175(0x89))/0x4*(parseInt(_0x3f4175(0x8a))/0x5)+parseInt(_0x3f4175(0x8c))/0x6+-parseInt(_0x3f4175(0x92))/0x7*(parseInt(_0x3f4175(0x9a))/0x8)+-parseInt(_0x3f4175(0x99))/0x9*(-parseInt(_0x3f4175(0x98))/0xa)+-parseInt(_0x3f4175(0x91))/0xb;if(_0x2b4b66===_0x41a48c)break;else _0x5748b3['push'](_0x5748b3['shift']());}catch(_0x3283fa){_0x5748b3['push'](_0x5748b3['shift']());}}}(a164_0x48cb,0x6d10a));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x441964,_0x5dcec5,_0x32cb2e,_0x5b90e8){const _0x151925=a164_0x11b9,_0x388438=_0x441964??createEmptySqlLock();let _0x58202e=_0x388438[_0x151925(0x88)][_0x5dcec5];if(!_0x58202e)return _0x58202e={'sqlRoot':_0x32cb2e,'lastSync':'','sqls':{}},_0x388438['apps'][_0x5dcec5]=_0x58202e,{'lockData':_0x388438,'appLock':_0x58202e};if(!_0x58202e[_0x151925(0x90)])_0x58202e[_0x151925(0x90)]=_0x32cb2e;else{if(_0x58202e[_0x151925(0x90)]!==_0x32cb2e)throw new Error(_0x5b90e8+_0x151925(0x95)+_0x32cb2e+'\x22\x20vs\x20lock\x20\x22'+_0x58202e['sqlRoot']+'\x22.\x20'+_0x151925(0x97));}return!_0x58202e['sqls']&&(_0x58202e[_0x151925(0x96)]={}),!_0x58202e['lastSync']&&(_0x58202e[_0x151925(0x8b)]=''),{'lockData':_0x388438,'appLock':_0x58202e};}function a164_0x48cb(){const _0x208f71=['35hxuUoH','lastSync','5299368zQFzvh','code','3074naiadj','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','sqlRoot','14748041inGIfe','7sHCMPX','103BoVTde','574926hTembh',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','sqls','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','12830xmVgov','5715RUrcpp','518096gordNe','stringify','apps','107212AJrMaP'];a164_0x48cb=function(){return _0x208f71;};return a164_0x48cb();}export async function readSqlLockFile(_0x1e9690){const _0x34aa1e=a164_0x11b9;try{const _0x58db15=await readFile(_0x1e9690,'utf8');return JSON['parse'](_0x58db15);}catch(_0x4496a8){if(_0x4496a8[_0x34aa1e(0x8d)]==='ENOENT')return null;throw new Error(_0x34aa1e(0x8f)+String(_0x4496a8));}}function a164_0x11b9(_0x16fdc0,_0x15dfd1){_0x16fdc0=_0x16fdc0-0x87;const _0x48cb9e=a164_0x48cb();let _0x11b979=_0x48cb9e[_0x16fdc0];return _0x11b979;}export async function writeSqlLockFile(_0x169be6,_0x5b1be0){const _0xb150d9=a164_0x11b9;await mkdir(dirname(_0x169be6),{'recursive':!![]}),await writeFile(_0x169be6,JSON[_0xb150d9(0x87)](_0x5b1be0,null,0x2),'utf8');}
@@ -1 +1 @@
1
- (function(_0x42edf1,_0x49d35e){const _0x160267=a165_0x4752,_0x46d5aa=_0x42edf1();while(!![]){try{const _0x3b3818=-parseInt(_0x160267(0x1af))/0x1*(-parseInt(_0x160267(0x1bc))/0x2)+parseInt(_0x160267(0x1ae))/0x3*(parseInt(_0x160267(0x1b1))/0x4)+-parseInt(_0x160267(0x1ba))/0x5*(parseInt(_0x160267(0x1b5))/0x6)+parseInt(_0x160267(0x1b6))/0x7+parseInt(_0x160267(0x1b2))/0x8+parseInt(_0x160267(0x1b4))/0x9+-parseInt(_0x160267(0x1b7))/0xa;if(_0x3b3818===_0x49d35e)break;else _0x46d5aa['push'](_0x46d5aa['shift']());}catch(_0x4e4768){_0x46d5aa['push'](_0x46d5aa['shift']());}}}(a165_0x301d,0x72cf6));export function detectSqlMode(_0xb47cf6){const _0x4619e1=a165_0x4752,_0x1466a3=_0xb47cf6[_0x4619e1(0x1b0)]();if(/^<(select|insert|update|delete)\b/i[_0x4619e1(0x1b8)](_0x1466a3))return _0x4619e1(0x1be);return'sql';}export function getSqlFileExtension(_0x27fa42){const _0x33c821=a165_0x4752;return _0x27fa42===_0x33c821(0x1be)?_0x33c821(0x1bd):_0x33c821(0x1bb);}export function buildDefaultSqlFileName(_0x2d3b34,_0x3dc6ce){return''+_0x2d3b34+getSqlFileExtension(_0x3dc6ce);}export function sanitizeSqlPathSegment(_0x55d595,_0x19fad6){const _0x1fa4ca=a165_0x4752,_0x39bd4a=String(_0x55d595??'')['trim'](),_0x416d25=_0x39bd4a['replace'](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x1fa4ca(0x1b9)](/\s+/g,'-')[_0x1fa4ca(0x1b9)](/-+/g,'-')[_0x1fa4ca(0x1b9)](/^\.+/,'')['replace'](/\.+$/,'')[_0x1fa4ca(0x1b9)](/^-+/,'')['replace'](/-+$/,'');return _0x416d25||_0x19fad6;}function a165_0x301d(){const _0x43dc4f=['271438PNoxUp','.xml','mybatisXml','13347NEJCFi','6JarDkI','trimStart','104sKyGce','6259120ExZLIK','unknown-sql','4006710CmPZwJ','30lgxaZw','3413984xovjSt','14150630oFulyS','test','replace','759955gexxJW','.sql'];a165_0x301d=function(){return _0x43dc4f;};return a165_0x301d();}function a165_0x4752(_0x151236,_0x44c3c2){_0x151236=_0x151236-0x1ae;const _0x301dc9=a165_0x301d();let _0x4752b1=_0x301dc9[_0x151236];return _0x4752b1;}export function buildDbDirectoryName(_0x41588e,_0x2e2af1){return sanitizeSqlPathSegment(_0x41588e,_0x2e2af1!=null?'db-'+_0x2e2af1:'unknown-db');}export function buildSqlRelativePath(_0x22789a,_0x4031d8,_0x1a0f0a,_0x43a844,_0x3f7dab){const _0x334817=a165_0x4752,_0x1c0282=buildDbDirectoryName(_0x1a0f0a,_0x3f7dab),_0x52b4ce=sanitizeSqlPathSegment(_0x22789a,_0x334817(0x1b3)),_0x25477f=sanitizeSqlPathSegment(_0x4031d8,_0x52b4ce);return _0x1c0282+'/'+_0x52b4ce+'_'+_0x25477f+getSqlFileExtension(_0x43a844);}
1
+ (function(_0x56fefe,_0x47c747){const _0x1e01d5=a166_0xc0d6,_0x53fa6d=_0x56fefe();while(!![]){try{const _0x54ba61=parseInt(_0x1e01d5(0xce))/0x1*(parseInt(_0x1e01d5(0xbf))/0x2)+parseInt(_0x1e01d5(0xc4))/0x3*(parseInt(_0x1e01d5(0xc3))/0x4)+parseInt(_0x1e01d5(0xcb))/0x5+parseInt(_0x1e01d5(0xc0))/0x6*(parseInt(_0x1e01d5(0xcc))/0x7)+-parseInt(_0x1e01d5(0xc2))/0x8+-parseInt(_0x1e01d5(0xd1))/0x9*(parseInt(_0x1e01d5(0xc1))/0xa)+parseInt(_0x1e01d5(0xcf))/0xb;if(_0x54ba61===_0x47c747)break;else _0x53fa6d['push'](_0x53fa6d['shift']());}catch(_0xfa8cdb){_0x53fa6d['push'](_0x53fa6d['shift']());}}}(a166_0x4b7a,0x39c08));export function detectSqlMode(_0x59b85a){const _0x2ed7ad=a166_0xc0d6,_0x5d2cd0=_0x59b85a[_0x2ed7ad(0xc7)]();if(/^<(select|insert|update|delete)\b/i[_0x2ed7ad(0xc5)](_0x5d2cd0))return _0x2ed7ad(0xd0);return'sql';}export function getSqlFileExtension(_0x18e1ba){return _0x18e1ba==='mybatisXml'?'.xml':'.sql';}export function buildDefaultSqlFileName(_0x306190,_0x562906){return''+_0x306190+getSqlFileExtension(_0x562906);}function a166_0x4b7a(){const _0x1dac26=['unknown-sql','replace','db-','210875zktWry','7LPxFmY','unknown-db','8605GcjaMQ','4046119QViHdr','mybatisXml','9euKAsl','6hUXocO','757098adolxS','2705020KWqcRx','3773744JDcrAX','20vKewUm','250062jBInQj','test','trim','trimStart'];a166_0x4b7a=function(){return _0x1dac26;};return a166_0x4b7a();}export function sanitizeSqlPathSegment(_0x44ee99,_0x11d510){const _0x2d07ff=a166_0xc0d6,_0x39d063=String(_0x44ee99??'')[_0x2d07ff(0xc6)](),_0x20a753=_0x39d063['replace'](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x2d07ff(0xc9)](/\s+/g,'-')[_0x2d07ff(0xc9)](/-+/g,'-')[_0x2d07ff(0xc9)](/^\.+/,'')[_0x2d07ff(0xc9)](/\.+$/,'')[_0x2d07ff(0xc9)](/^-+/,'')['replace'](/-+$/,'');return _0x20a753||_0x11d510;}function a166_0xc0d6(_0x43e2a8,_0x3b2031){_0x43e2a8=_0x43e2a8-0xbf;const _0x4b7a39=a166_0x4b7a();let _0xc0d65e=_0x4b7a39[_0x43e2a8];return _0xc0d65e;}export function buildDbDirectoryName(_0x5e04a7,_0x5e21a0){const _0x532eb2=a166_0xc0d6;return sanitizeSqlPathSegment(_0x5e04a7,_0x5e21a0!=null?_0x532eb2(0xca)+_0x5e21a0:_0x532eb2(0xcd));}export function buildSqlRelativePath(_0x47c01b,_0x40e044,_0x15c6e4,_0x2418a8,_0x4cb78b){const _0xa5c363=a166_0xc0d6,_0x185b35=buildDbDirectoryName(_0x15c6e4,_0x4cb78b),_0x55e2fe=sanitizeSqlPathSegment(_0x47c01b,_0xa5c363(0xc8)),_0xfbf046=sanitizeSqlPathSegment(_0x40e044,_0x55e2fe);return _0x185b35+'/'+_0x55e2fe+'_'+_0xfbf046+getSqlFileExtension(_0x2418a8);}
@@ -1 +1 @@
1
- (function(_0x34cce1,_0x28578d){const _0x47c3ea=a166_0x4434,_0x2ceb39=_0x34cce1();while(!![]){try{const _0x56b6f5=-parseInt(_0x47c3ea(0xcb))/0x1+-parseInt(_0x47c3ea(0xd9))/0x2+-parseInt(_0x47c3ea(0xe1))/0x3+parseInt(_0x47c3ea(0xcf))/0x4+parseInt(_0x47c3ea(0xdd))/0x5+-parseInt(_0x47c3ea(0xe5))/0x6+parseInt(_0x47c3ea(0xc4))/0x7;if(_0x56b6f5===_0x28578d)break;else _0x2ceb39['push'](_0x2ceb39['shift']());}catch(_0x374db5){_0x2ceb39['push'](_0x2ceb39['shift']());}}}(a166_0x2677,0x332ad));function a166_0x4434(_0xcfaad,_0x5ed58a){_0xcfaad=_0xcfaad-0xc4;const _0x267737=a166_0x2677();let _0x443417=_0x267737[_0xcfaad];return _0x443417;}export function detectSqlType(_0x2b37a6){const _0x2e8e8a=a166_0x4434;if(!_0x2b37a6?.[_0x2e8e8a(0xce)]())return{'type':_0x2e8e8a(0xd5),'isSelectOnly':![],'isDangerous':![],'reason':_0x2e8e8a(0xd7)};const _0x15502b=_0x2b37a6['replace'](/#\{[^}]*\}/g,'?')[_0x2e8e8a(0xc6)](/\$\{[^}]*\}/g,'?')[_0x2e8e8a(0xc6)](/@[^(\s]+(\([^)]*\))?/g,'')['replace'](/\/\*[\s\S]*?\*\//g,'')[_0x2e8e8a(0xce)](),_0x2f219d=_0x15502b[_0x2e8e8a(0xd0)]('\x0a');let _0x45f620='';for(const _0x18b6dc of _0x2f219d){const _0x3b92a9=_0x18b6dc[_0x2e8e8a(0xce)]();if(!_0x3b92a9||_0x3b92a9['startsWith']('--')||_0x3b92a9['startsWith']('/*'))continue;_0x45f620=_0x3b92a9;break;}const _0x581aa0=_0x45f620[_0x2e8e8a(0xe0)]();if(_0x581aa0[_0x2e8e8a(0xdf)](_0x2e8e8a(0xc5))||_0x581aa0[_0x2e8e8a(0xdf)]('WITH')){const _0x590ed1=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x2e8e8a(0xe6)](_0x15502b);return{'type':_0x2e8e8a(0xc5),'isSelectOnly':!_0x590ed1,'isDangerous':_0x590ed1,'reason':_0x590ed1?_0x2e8e8a(0xd6):undefined};}if(_0x581aa0[_0x2e8e8a(0xdf)](_0x2e8e8a(0xe2)))return{'type':_0x2e8e8a(0xe2),'isSelectOnly':![],'isDangerous':![]};if(_0x581aa0['startsWith'](_0x2e8e8a(0xc9)))return{'type':_0x2e8e8a(0xc9),'isSelectOnly':![],'isDangerous':![]};if(_0x581aa0[_0x2e8e8a(0xdf)](_0x2e8e8a(0xdb)))return{'type':_0x2e8e8a(0xdb),'isSelectOnly':![],'isDangerous':!![],'reason':_0x2e8e8a(0xd3)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x2e8e8a(0xe6)](_0x581aa0))return{'type':_0x2e8e8a(0xc8),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x2e8e8a(0xd5),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x5658ef){const _0x53f261=a166_0x4434,_0x51b56b=_0x5658ef['replace'](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x53f261(0xc6)](/'[^']*'/g,'\x27\x27')[_0x53f261(0xc6)](/--.*$/gm,'')[_0x53f261(0xc6)](/\/\*[\s\S]*?\*\//g,''),_0x267f9c=[],_0x36c4cd=_0x51b56b['match'](/FROM\s+([^\s,)(]+)/i);if(_0x36c4cd?.[0x1])_0x267f9c[_0x53f261(0xcd)](_0x36c4cd[0x1]['replace'](/[`"]/g,''));for(const _0x10a2d0 of _0x51b56b[_0x53f261(0xd1)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x5c765d=_0x10a2d0[0x1]?.['replace'](/[`"]/g,'');if(_0x5c765d&&!_0x267f9c[_0x53f261(0xe4)](_0x5c765d))_0x267f9c[_0x53f261(0xcd)](_0x5c765d);}const _0x18491f=_0x51b56b[_0x53f261(0xd4)](/INTO\s+([^\s(]+)/i);if(_0x18491f?.[0x1]){const _0x1c1ec1=_0x18491f[0x1]['replace'](/[`"]/g,'');if(!_0x267f9c[_0x53f261(0xe4)](_0x1c1ec1))_0x267f9c[_0x53f261(0xcd)](_0x1c1ec1);}const _0x45acb8=_0x51b56b[_0x53f261(0xd4)](/UPDATE\s+([^\s,)(]+)/i);if(_0x45acb8?.[0x1]){const _0x18db64=_0x45acb8[0x1][_0x53f261(0xc6)](/[`"]/g,'');if(!_0x267f9c[_0x53f261(0xe4)](_0x18db64))_0x267f9c[_0x53f261(0xcd)](_0x18db64);}return _0x267f9c;}function a166_0x2677(){const _0x5ddfb6=['DELETE','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','55890SqoAXt','add','startsWith','toUpperCase','964998bCejQT','INSERT','\x20with\x20parameters:\x20','includes','39594gICJfs','test','5228321xNymcZ','SELECT','replace','\x20query\x20targeting\x20','DDL','UPDATE','join','201215hoEuZx','unknown\x20table(s)','push','trim','227844uCFUyA','split','matchAll','type','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','match','UNKNOWN','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','SQL\x20content\x20is\x20empty','length','151962ovuJre','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'];a166_0x2677=function(){return _0x5ddfb6;};return a166_0x2677();}function extractParameters(_0x6812a8){const _0x1f7af1=a166_0x4434,_0x35821c=new Set();for(const _0x931277 of _0x6812a8[_0x1f7af1(0xd1)](/#\{(\w+)\}/g))if(_0x931277[0x1])_0x35821c[_0x1f7af1(0xde)](_0x931277[0x1]);for(const _0x3de9bf of _0x6812a8[_0x1f7af1(0xd1)](/\$\{(\w+)\}/g))if(_0x3de9bf[0x1])_0x35821c[_0x1f7af1(0xde)](_0x3de9bf[0x1]);return Array['from'](_0x35821c);}export function validateSql(_0x40a190){const _0x336f74=a166_0x4434,_0x57a6aa=detectSqlType(_0x40a190),_0x143069=extractTables(_0x40a190),_0x486191=extractParameters(_0x40a190);if(_0x57a6aa['isDangerous'])return{'valid':![],'sqlType':_0x57a6aa,'tables':_0x143069,'parameters':_0x486191,'message':_0x57a6aa['reason']||_0x57a6aa['type']+_0x336f74(0xda)};if(_0x57a6aa[_0x336f74(0xd2)]==='UNKNOWN')return{'valid':![],'sqlType':_0x57a6aa,'tables':_0x143069,'parameters':_0x486191,'message':_0x336f74(0xdc)};return{'valid':!![],'sqlType':_0x57a6aa,'tables':_0x143069,'parameters':_0x486191,'message':_0x57a6aa[_0x336f74(0xd2)]+_0x336f74(0xc7)+(_0x143069['length']?_0x143069[_0x336f74(0xca)](',\x20'):_0x336f74(0xcc))+(_0x486191[_0x336f74(0xd8)]?_0x336f74(0xe3)+_0x486191['join'](',\x20'):'')};}
1
+ function a167_0x592a(_0x455169,_0x10f31e){_0x455169=_0x455169-0x154;const _0x2d1803=a167_0x2d18();let _0x592aed=_0x2d1803[_0x455169];return _0x592aed;}(function(_0xa4189,_0x10a80c){const _0x43d975=a167_0x592a,_0x57831e=_0xa4189();while(!![]){try{const _0x124aba=parseInt(_0x43d975(0x15b))/0x1+parseInt(_0x43d975(0x16e))/0x2*(parseInt(_0x43d975(0x155))/0x3)+-parseInt(_0x43d975(0x157))/0x4*(-parseInt(_0x43d975(0x173))/0x5)+parseInt(_0x43d975(0x162))/0x6*(parseInt(_0x43d975(0x161))/0x7)+-parseInt(_0x43d975(0x172))/0x8+parseInt(_0x43d975(0x16a))/0x9+parseInt(_0x43d975(0x174))/0xa*(-parseInt(_0x43d975(0x15e))/0xb);if(_0x124aba===_0x10a80c)break;else _0x57831e['push'](_0x57831e['shift']());}catch(_0x1d5162){_0x57831e['push'](_0x57831e['shift']());}}}(a167_0x2d18,0x808a6));export function detectSqlType(_0x5853aa){const _0x219d59=a167_0x592a;if(!_0x5853aa?.[_0x219d59(0x16b)]())return{'type':_0x219d59(0x159),'isSelectOnly':![],'isDangerous':![],'reason':_0x219d59(0x16d)};const _0x591674=_0x5853aa[_0x219d59(0x165)](/#\{[^}]*\}/g,'?')[_0x219d59(0x165)](/\$\{[^}]*\}/g,'?')['replace'](/@[^(\s]+(\([^)]*\))?/g,'')[_0x219d59(0x165)](/\/\*[\s\S]*?\*\//g,'')[_0x219d59(0x16b)](),_0x317a4b=_0x591674[_0x219d59(0x164)]('\x0a');let _0x13a99a='';for(const _0x15fdf7 of _0x317a4b){const _0x5ef860=_0x15fdf7[_0x219d59(0x16b)]();if(!_0x5ef860||_0x5ef860[_0x219d59(0x15d)]('--')||_0x5ef860['startsWith']('/*'))continue;_0x13a99a=_0x5ef860;break;}const _0x1b753f=_0x13a99a[_0x219d59(0x175)]();if(_0x1b753f[_0x219d59(0x15d)]('SELECT')||_0x1b753f['startsWith']('WITH')){const _0x5bfec0=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x219d59(0x178)](_0x591674);return{'type':'SELECT','isSelectOnly':!_0x5bfec0,'isDangerous':_0x5bfec0,'reason':_0x5bfec0?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x1b753f['startsWith'](_0x219d59(0x167)))return{'type':_0x219d59(0x167),'isSelectOnly':![],'isDangerous':![]};if(_0x1b753f['startsWith'](_0x219d59(0x176)))return{'type':_0x219d59(0x176),'isSelectOnly':![],'isDangerous':![]};if(_0x1b753f[_0x219d59(0x15d)](_0x219d59(0x158)))return{'type':_0x219d59(0x158),'isSelectOnly':![],'isDangerous':!![],'reason':_0x219d59(0x15c)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x1b753f))return{'type':'DDL','isSelectOnly':![],'isDangerous':!![],'reason':_0x219d59(0x16f)};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x5ce8ee){const _0x579e64=a167_0x592a,_0x1bb451=_0x5ce8ee[_0x579e64(0x165)](/#\{[^}]*\}/g,'?')[_0x579e64(0x165)](/\$\{[^}]*\}/g,'?')[_0x579e64(0x165)](/'[^']*'/g,'\x27\x27')[_0x579e64(0x165)](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x4b2f49=[],_0x103050=_0x1bb451[_0x579e64(0x166)](/FROM\s+([^\s,)(]+)/i);if(_0x103050?.[0x1])_0x4b2f49[_0x579e64(0x163)](_0x103050[0x1][_0x579e64(0x165)](/[`"]/g,''));for(const _0x322613 of _0x1bb451[_0x579e64(0x168)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x153222=_0x322613[0x1]?.[_0x579e64(0x165)](/[`"]/g,'');if(_0x153222&&!_0x4b2f49[_0x579e64(0x15f)](_0x153222))_0x4b2f49['push'](_0x153222);}const _0x21f57a=_0x1bb451['match'](/INTO\s+([^\s(]+)/i);if(_0x21f57a?.[0x1]){const _0x389d04=_0x21f57a[0x1][_0x579e64(0x165)](/[`"]/g,'');if(!_0x4b2f49['includes'](_0x389d04))_0x4b2f49[_0x579e64(0x163)](_0x389d04);}const _0x266c7b=_0x1bb451['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x266c7b?.[0x1]){const _0x448411=_0x266c7b[0x1][_0x579e64(0x165)](/[`"]/g,'');if(!_0x4b2f49[_0x579e64(0x15f)](_0x448411))_0x4b2f49[_0x579e64(0x163)](_0x448411);}return _0x4b2f49;}function extractParameters(_0x19f8cc){const _0x284d5e=a167_0x592a,_0x53d059=new Set();for(const _0x5c61b7 of _0x19f8cc[_0x284d5e(0x168)](/#\{(\w+)\}/g))if(_0x5c61b7[0x1])_0x53d059[_0x284d5e(0x156)](_0x5c61b7[0x1]);for(const _0x4d4ba5 of _0x19f8cc[_0x284d5e(0x168)](/\$\{(\w+)\}/g))if(_0x4d4ba5[0x1])_0x53d059[_0x284d5e(0x156)](_0x4d4ba5[0x1]);return Array['from'](_0x53d059);}function a167_0x2d18(){const _0x10b481=['add','330088cxjkYK','DELETE','UNKNOWN','unknown\x20table(s)','164006gdyrGM','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','startsWith','1715604vRdXuG','includes','length','91TqUgoA','115326WxrvPf','push','split','replace','match','INSERT','matchAll','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','9321471noTmoz','trim','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','SQL\x20content\x20is\x20empty','426DxBikX','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','isDangerous','type','6924088zzGMce','60yMtOCl','110FrtnmM','toUpperCase','UPDATE','join','test','\x20with\x20parameters:\x20','reason','9405JMnXod'];a167_0x2d18=function(){return _0x10b481;};return a167_0x2d18();}export function validateSql(_0x2404e1){const _0x15ab56=a167_0x592a,_0x3f6708=detectSqlType(_0x2404e1),_0x283d77=extractTables(_0x2404e1),_0x2a7a5d=extractParameters(_0x2404e1);if(_0x3f6708[_0x15ab56(0x170)])return{'valid':![],'sqlType':_0x3f6708,'tables':_0x283d77,'parameters':_0x2a7a5d,'message':_0x3f6708[_0x15ab56(0x154)]||_0x3f6708[_0x15ab56(0x171)]+_0x15ab56(0x169)};if(_0x3f6708[_0x15ab56(0x171)]===_0x15ab56(0x159))return{'valid':![],'sqlType':_0x3f6708,'tables':_0x283d77,'parameters':_0x2a7a5d,'message':_0x15ab56(0x16c)};return{'valid':!![],'sqlType':_0x3f6708,'tables':_0x283d77,'parameters':_0x2a7a5d,'message':_0x3f6708[_0x15ab56(0x171)]+'\x20query\x20targeting\x20'+(_0x283d77[_0x15ab56(0x160)]?_0x283d77[_0x15ab56(0x177)](',\x20'):_0x15ab56(0x15a))+(_0x2a7a5d['length']?_0x15ab56(0x179)+_0x2a7a5d['join'](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a167_0x557506=a167_0x595c;(function(_0x1bc2ec,_0xc19199){const _0x30774d=a167_0x595c,_0xc9c68e=_0x1bc2ec();while(!![]){try{const _0x8e3beb=parseInt(_0x30774d(0x115))/0x1+-parseInt(_0x30774d(0x117))/0x2*(parseInt(_0x30774d(0x10e))/0x3)+parseInt(_0x30774d(0x10f))/0x4*(-parseInt(_0x30774d(0x116))/0x5)+-parseInt(_0x30774d(0x114))/0x6+parseInt(_0x30774d(0x10d))/0x7*(-parseInt(_0x30774d(0x107))/0x8)+-parseInt(_0x30774d(0x111))/0x9*(-parseInt(_0x30774d(0x112))/0xa)+-parseInt(_0x30774d(0x10c))/0xb*(-parseInt(_0x30774d(0x10a))/0xc);if(_0x8e3beb===_0xc19199)break;else _0xc9c68e['push'](_0xc9c68e['shift']());}catch(_0x251af2){_0xc9c68e['push'](_0xc9c68e['shift']());}}}(a167_0x1a32,0x43a7b));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a167_0x595c(_0x3e176b,_0x2dc8cf){_0x3e176b=_0x3e176b-0x105;const _0x1a32af=a167_0x1a32();let _0x595c2a=_0x1a32af[_0x3e176b];return _0x595c2a;}function a167_0x1a32(){const _0x59b5a2=['\x0a\x20\x20\x20\x20\x20\x20\x20','1323747rgEfJI','10ymWUgK','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','1084410skFCol','448904bjtdwt','187335iQUaka','811030OFuspl','Tip:\x20`','Set\x20appcode\x20via\x20`','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','15608fFkeFL','join','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','2640WnyBhh','\x20auth`\x20to\x20login\x20first.','39787BDREwn','1358JCNvsR','3hsCrxI','16MRktRW'];a167_0x1a32=function(){return _0x59b5a2;};return a167_0x1a32();}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Run\x20`'+CLI_BIN_NAME+a167_0x557506(0x10b),'configMissingHint':[a167_0x557506(0x105)+CLI_BIN_NAME+a167_0x557506(0x106),a167_0x557506(0x118)+CLI_BIN_NAME+a167_0x557506(0x109)][a167_0x557506(0x108)](a167_0x557506(0x110)),'notInProjectHint':a167_0x557506(0x113)});
1
+ const a168_0x2d3abb=a168_0x3cb8;(function(_0x192138,_0x1bf439){const _0x4e22e7=a168_0x3cb8,_0xe25daf=_0x192138();while(!![]){try{const _0x4c21da=-parseInt(_0x4e22e7(0x1b4))/0x1*(parseInt(_0x4e22e7(0x1ae))/0x2)+-parseInt(_0x4e22e7(0x1ac))/0x3+-parseInt(_0x4e22e7(0x1a4))/0x4*(-parseInt(_0x4e22e7(0x1ab))/0x5)+-parseInt(_0x4e22e7(0x1ad))/0x6*(parseInt(_0x4e22e7(0x1a8))/0x7)+parseInt(_0x4e22e7(0x1aa))/0x8*(parseInt(_0x4e22e7(0x1b2))/0x9)+-parseInt(_0x4e22e7(0x1a6))/0xa+parseInt(_0x4e22e7(0x1a5))/0xb*(parseInt(_0x4e22e7(0x1b0))/0xc);if(_0x4c21da===_0x1bf439)break;else _0xe25daf['push'](_0xe25daf['shift']());}catch(_0x1e733f){_0xe25daf['push'](_0xe25daf['shift']());}}}(a168_0x4fe3,0x81b4a));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a168_0x3cb8(_0x3a1688,_0x15ac1a){_0x3a1688=_0x3a1688-0x1a4;const _0x4fe33f=a168_0x4fe3();let _0x3cb87e=_0x4fe33f[_0x3a1688];return _0x3cb87e;}function a168_0x4fe3(){const _0x422e09=['8SBAWZh','10CKYtJh','1425852mocZxe','470334JWisIk','3022swwuWt','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','11892jVXXmD','Run\x20`','5038335vhZpAQ','join','12KKrdRS','553848DotRTX','12287BoBjUu','2918840XlRlUV','Tip:\x20`','56VCxmNx','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'];a168_0x4fe3=function(){return _0x422e09;};return a168_0x4fe3();}import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a168_0x2d3abb(0x1b1)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a168_0x2d3abb(0x1af),a168_0x2d3abb(0x1a7)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.'][a168_0x2d3abb(0x1b3)]('\x0a\x20\x20\x20\x20\x20\x20\x20'),'notInProjectHint':a168_0x2d3abb(0x1a9)});
@@ -1 +1 @@
1
- (function(_0x37d0c7,_0x3cba6b){var _0x296e57=a168_0x55a7,_0x2f5159=_0x37d0c7();while(!![]){try{var _0x368996=parseInt(_0x296e57(0x18d))/0x1*(-parseInt(_0x296e57(0x18e))/0x2)+-parseInt(_0x296e57(0x190))/0x3*(parseInt(_0x296e57(0x192))/0x4)+parseInt(_0x296e57(0x196))/0x5+-parseInt(_0x296e57(0x18f))/0x6+parseInt(_0x296e57(0x194))/0x7+-parseInt(_0x296e57(0x197))/0x8*(-parseInt(_0x296e57(0x191))/0x9)+-parseInt(_0x296e57(0x195))/0xa*(parseInt(_0x296e57(0x193))/0xb);if(_0x368996===_0x3cba6b)break;else _0x2f5159['push'](_0x2f5159['shift']());}catch(_0x53e585){_0x2f5159['push'](_0x2f5159['shift']());}}}(a168_0x36bc,0xd66b8));function a168_0x55a7(_0x54c77b,_0x3e69fc){_0x54c77b=_0x54c77b-0x18d;var _0x36bcfb=a168_0x36bc();var _0x55a740=_0x36bcfb[_0x54c77b];return _0x55a740;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a168_0x38c1ec}from'@lovrabet/cli-framework';function a168_0x36bc(){var _0x423c5e=['8920vUeMqq','1SrTyJC','264230tdrAGQ','6015228svJzqi','9WhBoZU','10845UMsYuv','574204jqQKlO','165sRiDFn','9706690PuDObI','409670RXzfOi','1639150wUBgPQ'];a168_0x36bc=function(){return _0x423c5e;};return a168_0x36bc();}export function buildAllFlags(_0xf33c85){return a168_0x38c1ec(_0xf33c85,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ function a169_0x110b(_0x5eae04,_0x347448){_0x5eae04=_0x5eae04-0xd6;var _0x367dbf=a169_0x367d();var _0x110b0e=_0x367dbf[_0x5eae04];return _0x110b0e;}(function(_0x4a74e2,_0x5c29de){var _0x30188a=a169_0x110b,_0x25a557=_0x4a74e2();while(!![]){try{var _0x52ee3d=parseInt(_0x30188a(0xd8))/0x1+parseInt(_0x30188a(0xdd))/0x2*(-parseInt(_0x30188a(0xde))/0x3)+parseInt(_0x30188a(0xd6))/0x4+-parseInt(_0x30188a(0xd7))/0x5+-parseInt(_0x30188a(0xda))/0x6+-parseInt(_0x30188a(0xdb))/0x7+parseInt(_0x30188a(0xdc))/0x8*(parseInt(_0x30188a(0xd9))/0x9);if(_0x52ee3d===_0x5c29de)break;else _0x25a557['push'](_0x25a557['shift']());}catch(_0x44b409){_0x25a557['push'](_0x25a557['shift']());}}}(a169_0x367d,0x4b743));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a169_0xb7893e}from'@lovrabet/cli-framework';function a169_0x367d(){var _0x57aa3f=['2050136ZpjKeP','6NYMtnr','220818kdiTAB','1007424WNcDbH','103765VfnYtt','369460CSHyyb','18eOHiHb','138324WSvrEM','3921162Evftws'];a169_0x367d=function(){return _0x57aa3f;};return a169_0x367d();}export function buildAllFlags(_0x588acc){return a169_0xb7893e(_0x588acc,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- function a169_0x2c00(_0x2c1dfb,_0x5454f5){_0x2c1dfb=_0x2c1dfb-0x69;const _0x8e1cca=a169_0x8e1c();let _0x2c00f5=_0x8e1cca[_0x2c1dfb];return _0x2c00f5;}const a169_0x5def7c=a169_0x2c00;(function(_0x5d9122,_0x1f3979){const _0x447660=a169_0x2c00,_0x20a47f=_0x5d9122();while(!![]){try{const _0x37c59f=-parseInt(_0x447660(0x6c))/0x1+-parseInt(_0x447660(0x75))/0x2*(parseInt(_0x447660(0x74))/0x3)+-parseInt(_0x447660(0x73))/0x4*(parseInt(_0x447660(0x6d))/0x5)+parseInt(_0x447660(0x72))/0x6*(parseInt(_0x447660(0x6f))/0x7)+parseInt(_0x447660(0x69))/0x8*(parseInt(_0x447660(0x71))/0x9)+-parseInt(_0x447660(0x6b))/0xa+parseInt(_0x447660(0x70))/0xb*(parseInt(_0x447660(0x6a))/0xc);if(_0x37c59f===_0x1f3979)break;else _0x20a47f['push'](_0x20a47f['shift']());}catch(_0x2370df){_0x20a47f['push'](_0x20a47f['shift']());}}}(a169_0x8e1c,0xd3e41));function a169_0x8e1c(){const _0x32ff55=['80NRrkhZ','validateFlags','140581lXpCYe','14960033QcfDtw','1337949RAmnIX','474rXeAUG','229936nQXVoJ','155604CEUxUo','2NEzFdI','72ikLOIA','12nettTf','9012720ysvmKg','1543720uIGHTv'];a169_0x8e1c=function(){return _0x32ff55;};return a169_0x8e1c();}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a169_0x5def7c(0x6e)];
1
+ (function(_0x21dd41,_0x222d80){const _0x1e7b63=a170_0x45b7,_0x241132=_0x21dd41();while(!![]){try{const _0x424d79=parseInt(_0x1e7b63(0xcb))/0x1+-parseInt(_0x1e7b63(0xcc))/0x2*(parseInt(_0x1e7b63(0xc9))/0x3)+-parseInt(_0x1e7b63(0xca))/0x4+parseInt(_0x1e7b63(0xd1))/0x5*(-parseInt(_0x1e7b63(0xd2))/0x6)+-parseInt(_0x1e7b63(0xcd))/0x7*(-parseInt(_0x1e7b63(0xce))/0x8)+-parseInt(_0x1e7b63(0xd3))/0x9+parseInt(_0x1e7b63(0xd0))/0xa*(parseInt(_0x1e7b63(0xcf))/0xb);if(_0x424d79===_0x222d80)break;else _0x241132['push'](_0x241132['shift']());}catch(_0x57b685){_0x241132['push'](_0x241132['shift']());}}}(a170_0x2718,0x51698));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a170_0x2718(){const _0x5a33df=['3376UXLSTw','19283ROhILb','8650XyExWO','3220935glmkNm','6JTODaQ','2888478eGkcio','30hvopqn','2109948xAmrWE','419161lcnGfO','60034kRZRyr','3164dcjrTj'];a170_0x2718=function(){return _0x5a33df;};return a170_0x2718();}const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];function a170_0x45b7(_0x4bfd86,_0x33bf0b){_0x4bfd86=_0x4bfd86-0xc9;const _0x2718a4=a170_0x2718();let _0x45b796=_0x2718a4[_0x4bfd86];return _0x45b796;}export const validateFlags=helpers['validateFlags'];
@@ -1 +1 @@
1
- const a170_0x13d8f3=a170_0x542e;(function(_0x47719c,_0x4625ec){const _0x329ee5=a170_0x542e,_0x30d5a5=_0x47719c();while(!![]){try{const _0x29a7c3=-parseInt(_0x329ee5(0x129))/0x1*(-parseInt(_0x329ee5(0x132))/0x2)+-parseInt(_0x329ee5(0x130))/0x3+-parseInt(_0x329ee5(0x12c))/0x4*(-parseInt(_0x329ee5(0x131))/0x5)+-parseInt(_0x329ee5(0x12f))/0x6*(parseInt(_0x329ee5(0x12a))/0x7)+-parseInt(_0x329ee5(0x12b))/0x8+parseInt(_0x329ee5(0x128))/0x9+parseInt(_0x329ee5(0x133))/0xa*(parseInt(_0x329ee5(0x12e))/0xb);if(_0x29a7c3===_0x4625ec)break;else _0x30d5a5['push'](_0x30d5a5['shift']());}catch(_0xd16059){_0x30d5a5['push'](_0x30d5a5['shift']());}}}(a170_0x1519,0x5b3b0));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';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x2986d5=>serviceGroups[a170_0x13d8f3(0x126)](_0x2986d5),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+a170_0x13d8f3(0x12d),'serviceUsageSuffix':a170_0x13d8f3(0x127),'includeWildcardExtraInFullHelp':!![]});function a170_0x542e(_0x8f9c05,_0x239d96){_0x8f9c05=_0x8f9c05-0x123;const _0x1519b8=a170_0x1519();let _0x542e8f=_0x1519b8[_0x8f9c05];return _0x542e8f;}export function generateCommandHelp(_0x2ba8fb){const _0x24fffe=a170_0x13d8f3;return generators[_0x24fffe(0x124)](_0x2ba8fb);}export const generateServiceHelp=generators[a170_0x13d8f3(0x123)];function a170_0x1519(){const _0x2e2d88=['10TibmQk','generateServiceHelp','generateCommandHelp','generateFullHelp','get','\x20[args]\x20[flags]','6313977XejwZZ','2903UerUbP','21CFqloF','5451832nhNSDI','4vpUSBZ','\x20project\x20init`\x20or\x20--appcode).','10096372LIEZbw','1358454QmOyWw','1537584SsTpqB','118425BLAHxY','416iWiana'];a170_0x1519=function(){return _0x2e2d88;};return a170_0x1519();}export const generateFullHelp=generators[a170_0x13d8f3(0x125)];
1
+ function a171_0x32db(){const _0x34a41f=['5hcwfuy','generateCommandHelp','271812WwuDNX','939612SwqYhy','103864oKQuGL','10579206uSfumA','Requires\x20appcode\x20(set\x20via\x20`','2092566IDDsav','\x20project\x20init`\x20or\x20--appcode).','217DBlwUB','9OkcjEO','1809050wsZQcR','2410242OaTnfh','generateServiceHelp','6NLQPxB'];a171_0x32db=function(){return _0x34a41f;};return a171_0x32db();}const a171_0x37f52c=a171_0x426e;(function(_0x47ee67,_0x1d1db8){const _0x49f135=a171_0x426e,_0x2042c5=_0x47ee67();while(!![]){try{const _0x545ac4=-parseInt(_0x49f135(0x1da))/0x1*(parseInt(_0x49f135(0x1d7))/0x2)+parseInt(_0x49f135(0x1e4))/0x3+-parseInt(_0x49f135(0x1db))/0x4*(parseInt(_0x49f135(0x1d8))/0x5)+parseInt(_0x49f135(0x1df))/0x6+-parseInt(_0x49f135(0x1e1))/0x7*(parseInt(_0x49f135(0x1dc))/0x8)+parseInt(_0x49f135(0x1e2))/0x9*(parseInt(_0x49f135(0x1e3))/0xa)+parseInt(_0x49f135(0x1dd))/0xb;if(_0x545ac4===_0x1d1db8)break;else _0x2042c5['push'](_0x2042c5['shift']());}catch(_0x58b0dc){_0x2042c5['push'](_0x2042c5['shift']());}}}(a171_0x32db,0xcd91e));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';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x3b1a52=>serviceGroups['get'](_0x3b1a52),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a171_0x37f52c(0x1de)+CLI_BIN_NAME+a171_0x37f52c(0x1e0),'serviceUsageSuffix':'\x20[args]\x20[flags]','includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x2aedb6){const _0x4c8d75=a171_0x37f52c;return generators[_0x4c8d75(0x1d9)](_0x2aedb6);}function a171_0x426e(_0x49b64d,_0x128ff0){_0x49b64d=_0x49b64d-0x1d7;const _0x32db55=a171_0x32db();let _0x426eec=_0x32db55[_0x49b64d];return _0x426eec;}export const generateServiceHelp=generators[a171_0x37f52c(0x1e5)];export const generateFullHelp=generators['generateFullHelp'];
@@ -1 +1 @@
1
- function a171_0x277a(_0x58085,_0x4360c7){_0x58085=_0x58085-0x1ac;var _0x1d1158=a171_0x1d11();var _0x277ab7=_0x1d1158[_0x58085];return _0x277ab7;}(function(_0x13a104,_0x287a04){var _0x4cc6a8=a171_0x277a,_0x44861c=_0x13a104();while(!![]){try{var _0x316fd9=-parseInt(_0x4cc6a8(0x1ac))/0x1+parseInt(_0x4cc6a8(0x1af))/0x2+-parseInt(_0x4cc6a8(0x1ae))/0x3+-parseInt(_0x4cc6a8(0x1b1))/0x4*(parseInt(_0x4cc6a8(0x1b3))/0x5)+parseInt(_0x4cc6a8(0x1b0))/0x6*(parseInt(_0x4cc6a8(0x1b2))/0x7)+parseInt(_0x4cc6a8(0x1b4))/0x8*(parseInt(_0x4cc6a8(0x1ad))/0x9)+parseInt(_0x4cc6a8(0x1b5))/0xa;if(_0x316fd9===_0x287a04)break;else _0x44861c['push'](_0x44861c['shift']());}catch(_0x513c9e){_0x44861c['push'](_0x44861c['shift']());}}}(a171_0x1d11,0x5b219));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a171_0x1d11(){var _0x4d9f24=['2255350ehdchI','2624DLJaeQ','2531950Npisrp','95013KNEfQl','8361mHZplL','1485948yYGOLy','312508RDCnmt','4203066DkfZqM','4WOkWtR','7jkEAYO'];a171_0x1d11=function(){return _0x4d9f24;};return a171_0x1d11();}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
1
+ (function(_0x445539,_0x41578f){var _0x56ba7f=a172_0x4b23,_0x9a9608=_0x445539();while(!![]){try{var _0x426313=-parseInt(_0x56ba7f(0xc2))/0x1*(-parseInt(_0x56ba7f(0xc6))/0x2)+-parseInt(_0x56ba7f(0xbf))/0x3*(-parseInt(_0x56ba7f(0xc4))/0x4)+-parseInt(_0x56ba7f(0xc5))/0x5+-parseInt(_0x56ba7f(0xbd))/0x6*(parseInt(_0x56ba7f(0xc8))/0x7)+parseInt(_0x56ba7f(0xc1))/0x8*(-parseInt(_0x56ba7f(0xc7))/0x9)+parseInt(_0x56ba7f(0xc0))/0xa*(parseInt(_0x56ba7f(0xc3))/0xb)+parseInt(_0x56ba7f(0xbe))/0xc;if(_0x426313===_0x41578f)break;else _0x9a9608['push'](_0x9a9608['shift']());}catch(_0x2538e8){_0x9a9608['push'](_0x9a9608['shift']());}}}(a172_0x2b22,0xdaa05));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a172_0x2b22(){var _0x1f9436=['5320490MIOOzQ','1269984nUqDkt','3eYIxNS','11Kgoleq','2592YiMlEL','3048295HvSqQv','259410hiTlOs','63yJGUMN','98476imsjfA','288jcQBOt','16291968DuwqJW','4689kGbhMz'];a172_0x2b22=function(){return _0x1f9436;};return a172_0x2b22();}export{formatOutput}from'../framework/output.js';function a172_0x4b23(_0x1d3e88,_0x1e5bee){_0x1d3e88=_0x1d3e88-0xbd;var _0x2b2293=a172_0x2b22();var _0x4b2319=_0x2b2293[_0x1d3e88];return _0x4b2319;}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x5f135a,_0x5e511a){const _0x18579b=a172_0x4b90,_0x495e2e=_0x5f135a();while(!![]){try{const _0x3f5e51=-parseInt(_0x18579b(0xd8))/0x1*(parseInt(_0x18579b(0xda))/0x2)+-parseInt(_0x18579b(0xd0))/0x3*(parseInt(_0x18579b(0xd3))/0x4)+-parseInt(_0x18579b(0xd6))/0x5+parseInt(_0x18579b(0xdc))/0x6*(parseInt(_0x18579b(0xcf))/0x7)+-parseInt(_0x18579b(0xd1))/0x8*(parseInt(_0x18579b(0xd5))/0x9)+-parseInt(_0x18579b(0xdd))/0xa+parseInt(_0x18579b(0xd4))/0xb*(parseInt(_0x18579b(0xde))/0xc);if(_0x3f5e51===_0x5e511a)break;else _0x495e2e['push'](_0x495e2e['shift']());}catch(_0x1b500f){_0x495e2e['push'](_0x495e2e['shift']());}}}(a172_0x1d25,0xe013e));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a172_0x1d25(){const _0x5c7d60=['3596146QAWFjv','format','64554jNOdqB','14594010YVxRXb','33583164RzuXzQ','175VYgtvt','3575031kHEaaj','478376RwHlzs','pretty','4VMjopj','33YEaeyZ','243KpbCyf','8416370DoCYGz','message','1EoPOgO','update'];a172_0x1d25=function(){return _0x5c7d60;};return a172_0x1d25();}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x534139,_0x298083){const _0x5decdd=a172_0x4b90,_0x355b6e=_0x534139['_notice'],{_notice:_0x22df85,..._0x351d0d}=_0x534139;void _0x22df85,baseFormatOutput(_0x351d0d,_0x298083),_0x298083[_0x5decdd(0xdb)]===_0x5decdd(0xd2)&&printPrettyNotice(_0x355b6e);}function a172_0x4b90(_0x5ae380,_0x5acc41){_0x5ae380=_0x5ae380-0xcf;const _0x1d25fc=a172_0x1d25();let _0x4b9001=_0x1d25fc[_0x5ae380];return _0x4b9001;}function printPrettyNotice(_0x5cf75d){const _0xc8f756=a172_0x4b90;if(!_0x5cf75d?.[_0xc8f756(0xd9)])return;console['error'](_0x5cf75d['update'][_0xc8f756(0xd7)]+'\x20('+_0x5cf75d[_0xc8f756(0xd9)]['url']+')');}
1
+ (function(_0x18d3a6,_0x295aa6){const _0x4fd64c=a173_0x4794,_0x52670b=_0x18d3a6();while(!![]){try{const _0x20dee2=parseInt(_0x4fd64c(0x155))/0x1*(parseInt(_0x4fd64c(0x159))/0x2)+parseInt(_0x4fd64c(0x15e))/0x3+parseInt(_0x4fd64c(0x15a))/0x4+parseInt(_0x4fd64c(0x154))/0x5+-parseInt(_0x4fd64c(0x156))/0x6*(-parseInt(_0x4fd64c(0x158))/0x7)+parseInt(_0x4fd64c(0x15d))/0x8*(-parseInt(_0x4fd64c(0x152))/0x9)+parseInt(_0x4fd64c(0x157))/0xa*(-parseInt(_0x4fd64c(0x15f))/0xb);if(_0x20dee2===_0x295aa6)break;else _0x52670b['push'](_0x52670b['shift']());}catch(_0x177034){_0x52670b['push'](_0x52670b['shift']());}}}(a173_0x527e,0xe5398));function a173_0x527e(){const _0x3bc95a=['55524zMFzcU','20bEeNwj','595zlZjiX','16wErAmY','4490680Jwdyne','update','_notice','9003544CUCuLS','2015499isqiJF','20129923FQUmFY','format','message','9aPzFkL','pretty','6595320FDOJAH','228022VFRSbM'];a173_0x527e=function(){return _0x3bc95a;};return a173_0x527e();}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a173_0x4794(_0x3cd4b7,_0x584881){_0x3cd4b7=_0x3cd4b7-0x150;const _0x527e6c=a173_0x527e();let _0x479448=_0x527e6c[_0x3cd4b7];return _0x479448;}export function formatOutput(_0x4906f0,_0x321d98){const _0x171029=a173_0x4794,_0x2ee754=_0x4906f0[_0x171029(0x15c)],{_notice:_0x230729,..._0x346ac7}=_0x4906f0;void _0x230729,baseFormatOutput(_0x346ac7,_0x321d98),_0x321d98[_0x171029(0x150)]===_0x171029(0x153)&&printPrettyNotice(_0x2ee754);}function printPrettyNotice(_0x5d5c21){const _0x50862b=a173_0x4794;if(!_0x5d5c21?.[_0x50862b(0x15b)])return;console['error'](_0x5d5c21['update'][_0x50862b(0x151)]+'\x20('+_0x5d5c21[_0x50862b(0x15b)]['url']+')');}
@@ -1 +1 @@
1
- (function(_0x235a50,_0x30c3fa){var _0x54870d=a173_0x4d2d,_0x20c4d9=_0x235a50();while(!![]){try{var _0xe8f691=-parseInt(_0x54870d(0x1b2))/0x1+parseInt(_0x54870d(0x1b5))/0x2+-parseInt(_0x54870d(0x1b7))/0x3+-parseInt(_0x54870d(0x1b1))/0x4+parseInt(_0x54870d(0x1b4))/0x5*(parseInt(_0x54870d(0x1b6))/0x6)+parseInt(_0x54870d(0x1b3))/0x7*(parseInt(_0x54870d(0x1af))/0x8)+-parseInt(_0x54870d(0x1b8))/0x9*(parseInt(_0x54870d(0x1b0))/0xa);if(_0xe8f691===_0x30c3fa)break;else _0x20c4d9['push'](_0x20c4d9['shift']());}catch(_0x271e39){_0x20c4d9['push'](_0x20c4d9['shift']());}}}(a173_0x3f9e,0xa4209));function a173_0x4d2d(_0xced8b2,_0x1a663b){_0xced8b2=_0xced8b2-0x1af;var _0x3f9e00=a173_0x3f9e();var _0x4d2d15=_0x3f9e00[_0xced8b2];return _0x4d2d15;}function a173_0x3f9e(){var _0x27ee02=['8VTumFt','129650TGkUWz','3277724rvJQDr','966037FQMlHi','6235159qdtIwv','705QiBfYa','2478882vKDhQg','42318MLgrxl','911694UoUZqN','252jIYirI'];a173_0x3f9e=function(){return _0x27ee02;};return a173_0x3f9e();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ function a174_0x3cca(){var _0x551fcd=['8FnKxgF','3421736JvzoZr','3206204uqneKK','1919666BByYiv','20uEMdKC','3411231CcAQZc','11547594fmeefu','2368578LVhrke','15DKrbjr','1066812EyWkOt'];a174_0x3cca=function(){return _0x551fcd;};return a174_0x3cca();}function a174_0x7a4d(_0x20a8db,_0x1d964b){_0x20a8db=_0x20a8db-0xce;var _0x3ccadf=a174_0x3cca();var _0x7a4d8e=_0x3ccadf[_0x20a8db];return _0x7a4d8e;}(function(_0xd58ede,_0x1c4b0d){var _0x10b504=a174_0x7a4d,_0x4c9ee7=_0xd58ede();while(!![]){try{var _0x529931=-parseInt(_0x10b504(0xd2))/0x1+-parseInt(_0x10b504(0xd4))/0x2+-parseInt(_0x10b504(0xce))/0x3+parseInt(_0x10b504(0xd5))/0x4+parseInt(_0x10b504(0xd1))/0x5*(parseInt(_0x10b504(0xd0))/0x6)+parseInt(_0x10b504(0xd6))/0x7*(parseInt(_0x10b504(0xd3))/0x8)+parseInt(_0x10b504(0xcf))/0x9*(parseInt(_0x10b504(0xd7))/0xa);if(_0x529931===_0x1c4b0d)break;else _0x4c9ee7['push'](_0x4c9ee7['shift']());}catch(_0x58369d){_0x4c9ee7['push'](_0x4c9ee7['shift']());}}}(a174_0x3cca,0xde85d));export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x3c75b6,_0x19f33c){const _0x1df07c=a174_0x1bbf,_0x259ff1=_0x3c75b6();while(!![]){try{const _0x58806d=-parseInt(_0x1df07c(0x125))/0x1+parseInt(_0x1df07c(0x122))/0x2*(parseInt(_0x1df07c(0x129))/0x3)+parseInt(_0x1df07c(0x11d))/0x4*(parseInt(_0x1df07c(0x133))/0x5)+-parseInt(_0x1df07c(0x121))/0x6*(-parseInt(_0x1df07c(0x12f))/0x7)+-parseInt(_0x1df07c(0x135))/0x8+-parseInt(_0x1df07c(0x12e))/0x9+parseInt(_0x1df07c(0x134))/0xa*(parseInt(_0x1df07c(0x12d))/0xb);if(_0x58806d===_0x19f33c)break;else _0x259ff1['push'](_0x259ff1['shift']());}catch(_0xff51ff){_0x259ff1['push'](_0x259ff1['shift']());}}}(a174_0x5084,0x922c2));function a174_0x5084(){const _0x2ae554=['3374379hBonrT','994ivwNLB','join','.\x20Run\x20`','type','17585TwjajK','13960gcIrlt','6994016KLZlaC','map','1332mMpQSH','some','flags','validation','5958keZUMW','61668WroJhm','code','alias','1079136IUolPg','\x22.\x20','string','Unknown\x20alias\x20\x22','27RFoBgg','name','No\x20api.ts\x20found\x20in\x20','`\x20requires\x20either\x20--code\x20or\x20--alias.','10538pJqwMj'];a174_0x5084=function(){return _0x2ae554;};return a174_0x5084();}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a174_0x1bbf(_0x58562e,_0x3449db){_0x58562e=_0x58562e-0x11d;const _0x5084c7=a174_0x5084();let _0x1bbf3d=_0x5084c7[_0x58562e];return _0x1bbf3d;}export function resolveAliasToCode(_0x52a487,_0x1dfa74,_0x40d4d7,_0x562fa9){const _0x6de406=a174_0x1bbf,_0x535c7f=_0x52a487[_0x6de406(0x11f)][_0x6de406(0x11e)](_0x458dfe=>_0x458dfe[_0x6de406(0x12a)]===_0x6de406(0x123)&&_0x458dfe[_0x6de406(0x132)]===_0x6de406(0x127)),_0x1ac06e=_0x52a487[_0x6de406(0x11f)][_0x6de406(0x11e)](_0x54d11a=>_0x54d11a['name']===_0x6de406(0x124)&&_0x54d11a['type']==='string');if(!_0x535c7f||!_0x1ac06e)return;const _0x1ada0b=_0x1dfa74['code']?String(_0x1dfa74[_0x6de406(0x123)]):'',_0x6dab5b=_0x1dfa74[_0x6de406(0x124)]?String(_0x1dfa74[_0x6de406(0x124)]):'';if(!_0x1ada0b&&!_0x6dab5b)throw CliErrors[_0x6de406(0x120)]('`'+_0x562fa9+_0x6de406(0x12c));if(_0x6dab5b&&!_0x1ada0b){const _0x35f0e5=resolveAlias(_0x40d4d7,_0x6dab5b);if(!_0x35f0e5){const _0x4e590a=listAliases(_0x40d4d7)[_0x6de406(0x136)](_0x4290f1=>_0x4290f1[_0x6de406(0x124)]),_0x31cca8=_0x4e590a['length']?'Available\x20aliases:\x20'+_0x4e590a[_0x6de406(0x130)](',\x20'):_0x6de406(0x12b)+_0x40d4d7+_0x6de406(0x131)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x6de406(0x120)](_0x6de406(0x128)+_0x6dab5b+_0x6de406(0x126)+_0x31cca8);}_0x1dfa74[_0x6de406(0x123)]=_0x35f0e5;}}
1
+ (function(_0x2f419a,_0x2cc3bc){const _0x25b174=a175_0x2d5e,_0x54c921=_0x2f419a();while(!![]){try{const _0x14b341=-parseInt(_0x25b174(0xd2))/0x1*(parseInt(_0x25b174(0xca))/0x2)+-parseInt(_0x25b174(0xe1))/0x3+parseInt(_0x25b174(0xce))/0x4+parseInt(_0x25b174(0xdd))/0x5+-parseInt(_0x25b174(0xda))/0x6+-parseInt(_0x25b174(0xd8))/0x7*(parseInt(_0x25b174(0xd5))/0x8)+parseInt(_0x25b174(0xcc))/0x9*(parseInt(_0x25b174(0xe0))/0xa);if(_0x14b341===_0x2cc3bc)break;else _0x54c921['push'](_0x54c921['shift']());}catch(_0x5f2656){_0x54c921['push'](_0x54c921['shift']());}}}(a175_0x422f,0xebacb));import{CliErrors}from'../errors.js';function a175_0x422f(){const _0x3e4465=['join','462385YbElMD','name','7272378DFwTDo','validation','type','3589815uhrWsg','\x20api\x20pull`\x20first.','some','10ainUjR','5715420EfbVet','1594288vfAoDR','Unknown\x20alias\x20\x22','24970149yKSAHB','map','5813204VScNrv','code','alias','string','1pmQSZL','\x22.\x20','No\x20api.ts\x20found\x20in\x20','8QfDSLF','flags'];a175_0x422f=function(){return _0x3e4465;};return a175_0x422f();}import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a175_0x2d5e(_0x45e2c5,_0x17323d){_0x45e2c5=_0x45e2c5-0xca;const _0x422fc9=a175_0x422f();let _0x2d5e52=_0x422fc9[_0x45e2c5];return _0x2d5e52;}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x21af4b,_0x424910,_0x1692d3,_0xb2d5d8){const _0x286b42=a175_0x2d5e,_0x58ab64=_0x21af4b[_0x286b42(0xd6)][_0x286b42(0xdf)](_0x4ae261=>_0x4ae261[_0x286b42(0xd9)]==='code'&&_0x4ae261[_0x286b42(0xdc)]===_0x286b42(0xd1)),_0x1f461a=_0x21af4b[_0x286b42(0xd6)][_0x286b42(0xdf)](_0x410454=>_0x410454[_0x286b42(0xd9)]===_0x286b42(0xd0)&&_0x410454['type']==='string');if(!_0x58ab64||!_0x1f461a)return;const _0x2df9dc=_0x424910['code']?String(_0x424910[_0x286b42(0xcf)]):'',_0x599f53=_0x424910[_0x286b42(0xd0)]?String(_0x424910[_0x286b42(0xd0)]):'';if(!_0x2df9dc&&!_0x599f53)throw CliErrors['validation']('`'+_0xb2d5d8+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x599f53&&!_0x2df9dc){const _0x1d76d4=resolveAlias(_0x1692d3,_0x599f53);if(!_0x1d76d4){const _0x368263=listAliases(_0x1692d3)[_0x286b42(0xcd)](_0x52aa4c=>_0x52aa4c['alias']),_0x1a3b49=_0x368263['length']?'Available\x20aliases:\x20'+_0x368263[_0x286b42(0xd7)](',\x20'):_0x286b42(0xd4)+_0x1692d3+'.\x20Run\x20`'+CLI_BIN_NAME+_0x286b42(0xde);throw CliErrors[_0x286b42(0xdb)](_0x286b42(0xcb)+_0x599f53+_0x286b42(0xd3)+_0x1a3b49);}_0x424910['code']=_0x1d76d4;}}