@lovrabet/rabetbase-cli 2.3.1 → 2.3.2-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) 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/app-config/delete.js +1 -1
  27. package/lib/commands/app-config/get.js +1 -1
  28. package/lib/commands/app-config/index.js +1 -1
  29. package/lib/commands/app-config/list.js +1 -1
  30. package/lib/commands/app-config/set.js +1 -1
  31. package/lib/commands/app-config/shared.js +1 -1
  32. package/lib/commands/auth/index.js +1 -1
  33. package/lib/commands/bff/create.js +1 -1
  34. package/lib/commands/bff/delete.js +1 -1
  35. package/lib/commands/bff/detail.js +1 -1
  36. package/lib/commands/bff/index.js +1 -1
  37. package/lib/commands/bff/list.js +1 -1
  38. package/lib/commands/bff/pull.js +1 -1
  39. package/lib/commands/bff/push.js +1 -1
  40. package/lib/commands/bff/status.js +1 -1
  41. package/lib/commands/cli-skill/index.js +1 -1
  42. package/lib/commands/cli-update.js +1 -1
  43. package/lib/commands/codegen/index.js +1 -1
  44. package/lib/commands/codegen/sdk.js +1 -1
  45. package/lib/commands/codegen/sql.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/flags.js +1 -1
  48. package/lib/commands/common/validate.js +1 -1
  49. package/lib/commands/config/get.js +1 -1
  50. package/lib/commands/config/index.js +1 -1
  51. package/lib/commands/config/list.js +1 -1
  52. package/lib/commands/config/set.js +1 -1
  53. package/lib/commands/config/shared.js +1 -1
  54. package/lib/commands/data/filter.js +1 -1
  55. package/lib/commands/data/getOne.js +1 -1
  56. package/lib/commands/data/index.js +1 -1
  57. package/lib/commands/data/shared.js +1 -1
  58. package/lib/commands/dataset/business-group-update.js +1 -1
  59. package/lib/commands/dataset/capability.js +1 -1
  60. package/lib/commands/dataset/delete.js +1 -1
  61. package/lib/commands/dataset/detail.js +1 -1
  62. package/lib/commands/dataset/extend-update.js +1 -1
  63. package/lib/commands/dataset/field-update.js +1 -1
  64. package/lib/commands/dataset/index.js +1 -1
  65. package/lib/commands/dataset/list.js +1 -1
  66. package/lib/commands/dataset/operations.js +1 -1
  67. package/lib/commands/dataset/relation-audit.js +1 -0
  68. package/lib/commands/dataset/relation-create.js +1 -1
  69. package/lib/commands/dataset/relation-delete.js +1 -1
  70. package/lib/commands/dataset/relation-shared.js +1 -1
  71. package/lib/commands/dataset/relation-update.js +1 -1
  72. package/lib/commands/dataset/relations.js +1 -1
  73. package/lib/commands/dataset/rename.js +1 -1
  74. package/lib/commands/dataset/restore.js +1 -1
  75. package/lib/commands/db/analyze-cancel.js +1 -1
  76. package/lib/commands/db/analyze-start.js +1 -1
  77. package/lib/commands/db/analyze-status.js +1 -1
  78. package/lib/commands/db/create.js +1 -1
  79. package/lib/commands/db/delete.js +1 -1
  80. package/lib/commands/db/detail.js +1 -1
  81. package/lib/commands/db/diff.js +1 -1
  82. package/lib/commands/db/index.js +1 -1
  83. package/lib/commands/db/list.js +1 -1
  84. package/lib/commands/db/shared.js +1 -1
  85. package/lib/commands/db/tables.js +1 -1
  86. package/lib/commands/db/test.js +1 -1
  87. package/lib/commands/db/update.js +1 -1
  88. package/lib/commands/doctor.js +1 -1
  89. package/lib/commands/init/index.js +1 -1
  90. package/lib/commands/issue/index.js +1 -1
  91. package/lib/commands/issue/nudge.js +1 -1
  92. package/lib/commands/issue/report.js +1 -1
  93. package/lib/commands/issue/shared.js +1 -1
  94. package/lib/commands/logs/index.js +1 -1
  95. package/lib/commands/menu/index.js +1 -1
  96. package/lib/commands/menu/list.js +1 -1
  97. package/lib/commands/menu/shared/compare-table.js +1 -1
  98. package/lib/commands/menu/shared/index.js +1 -1
  99. package/lib/commands/menu/shared/inquirer.js +1 -1
  100. package/lib/commands/menu/shared/local-pages.js +1 -1
  101. package/lib/commands/menu/shared/logic.js +1 -1
  102. package/lib/commands/menu/shared/service.js +1 -1
  103. package/lib/commands/menu/shared/sync-core.js +1 -1
  104. package/lib/commands/menu/shared/update-core.js +1 -1
  105. package/lib/commands/menu/shared/valid-url.js +1 -1
  106. package/lib/commands/menu/sync.js +1 -1
  107. package/lib/commands/menu/update.js +1 -1
  108. package/lib/commands/page/generate-start.js +1 -1
  109. package/lib/commands/page/generate-status.js +1 -1
  110. package/lib/commands/page/index.js +1 -1
  111. package/lib/commands/page/pull.js +1 -1
  112. package/lib/commands/page/push.js +1 -1
  113. package/lib/commands/page/relation-audit.js +1 -1
  114. package/lib/commands/page/shared.js +1 -1
  115. package/lib/commands/page/standard-page-status.js +1 -1
  116. package/lib/commands/page/sync.js +1 -1
  117. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  118. package/lib/commands/project/create/format-elapsed.js +1 -1
  119. package/lib/commands/project/create/main.js +1 -1
  120. package/lib/commands/project/create/non-interactive.js +1 -1
  121. package/lib/commands/project/create/project-template-path.js +1 -1
  122. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  123. package/lib/commands/project/create/use-format-code.js +1 -1
  124. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  125. package/lib/commands/project/index.js +1 -1
  126. package/lib/commands/project/init.js +1 -1
  127. package/lib/commands/project/upgrade.js +1 -1
  128. package/lib/commands/registry.js +1 -1
  129. package/lib/commands/run/index.js +1 -1
  130. package/lib/commands/schema.js +1 -1
  131. package/lib/commands/sql/create.js +1 -1
  132. package/lib/commands/sql/delete.js +1 -1
  133. package/lib/commands/sql/detail.js +1 -1
  134. package/lib/commands/sql/exec.js +1 -1
  135. package/lib/commands/sql/index.js +1 -1
  136. package/lib/commands/sql/list.js +1 -1
  137. package/lib/commands/sql/pull.js +1 -1
  138. package/lib/commands/sql/push.js +1 -1
  139. package/lib/commands/sql/save.js +1 -1
  140. package/lib/commands/sql/shared.js +1 -1
  141. package/lib/commands/sql/status.js +1 -1
  142. package/lib/commands/sql/validate.js +1 -1
  143. package/lib/commands/workspace/index.js +1 -1
  144. package/lib/config/schema.js +1 -1
  145. package/lib/constant/cdn.js +1 -1
  146. package/lib/constant/cli.js +1 -1
  147. package/lib/constant/defaults.js +1 -1
  148. package/lib/constant/domain.js +1 -1
  149. package/lib/constant/env.js +1 -1
  150. package/lib/constant/output.js +1 -1
  151. package/lib/constant/paths.js +1 -1
  152. package/lib/constant/risk.js +1 -1
  153. package/lib/context/app-resolver.js +1 -1
  154. package/lib/context/auth-resolver.js +1 -1
  155. package/lib/context/config-loader.js +1 -1
  156. package/lib/context.js +1 -1
  157. package/lib/core/alias-resolver.js +1 -1
  158. package/lib/core/api-client.js +1 -1
  159. package/lib/core/bff/config.js +1 -1
  160. package/lib/core/bff/file-system.js +1 -1
  161. package/lib/core/bff/hash.js +1 -1
  162. package/lib/core/bff/lock.js +1 -1
  163. package/lib/core/bff/utils.js +1 -1
  164. package/lib/core/db-resolver.js +1 -1
  165. package/lib/core/page/file-system.js +1 -1
  166. package/lib/core/page/hash.js +1 -1
  167. package/lib/core/page/lock.js +1 -1
  168. package/lib/core/sql-sync/config.js +1 -1
  169. package/lib/core/sql-sync/file-system.js +1 -1
  170. package/lib/core/sql-sync/hash.js +1 -1
  171. package/lib/core/sql-sync/lock.js +1 -1
  172. package/lib/core/sql-sync/utils.js +1 -1
  173. package/lib/core/sql-validator.js +1 -1
  174. package/lib/errors.js +1 -1
  175. package/lib/framework/build-all-flags.js +1 -1
  176. package/lib/framework/flags.js +1 -1
  177. package/lib/framework/help.js +1 -1
  178. package/lib/framework/index.js +1 -1
  179. package/lib/framework/output.js +1 -1
  180. package/lib/framework/response.js +1 -1
  181. package/lib/framework/runner-alias.js +1 -1
  182. package/lib/framework/runner.js +1 -1
  183. package/lib/framework/schema-export.js +1 -1
  184. package/lib/framework/types.js +1 -1
  185. package/lib/generated/build-info.js +1 -1
  186. package/lib/help.js +1 -1
  187. package/lib/skills/main.js +1 -1
  188. package/lib/skills/npx-skills-add.js +1 -1
  189. package/lib/telemetry/cli-command-trace.js +1 -1
  190. package/lib/telemetry/cli-help-trace.js +1 -1
  191. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  192. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  193. package/lib/telemetry/send-cli-trace-log.js +1 -1
  194. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  195. package/lib/utils/ai_config.js +1 -1
  196. package/lib/utils/apply-jq-filter.js +1 -1
  197. package/lib/utils/cdn-config.js +1 -1
  198. package/lib/utils/check-sdk-version.js +1 -1
  199. package/lib/utils/cli-version-check.js +1 -1
  200. package/lib/utils/cli-version-policy.js +1 -1
  201. package/lib/utils/config.js +1 -1
  202. package/lib/utils/copy-directory.js +1 -1
  203. package/lib/utils/entity-with-id.js +1 -1
  204. package/lib/utils/file-utils.js +1 -1
  205. package/lib/utils/guides-cdn.js +1 -1
  206. package/lib/utils/http-client.js +1 -1
  207. package/lib/utils/is-non-interactive.js +1 -1
  208. package/lib/utils/logger.js +1 -1
  209. package/lib/utils/params.js +1 -1
  210. package/lib/utils/platform.js +1 -1
  211. package/lib/utils/rules-cdn.js +1 -1
  212. package/lib/utils/sleep.js +1 -1
  213. package/lib/utils/template-replacer.js +1 -1
  214. package/lib/utils/update-notice.js +1 -1
  215. package/lib/utils/version.js +1 -1
  216. package/lib/utils/with-active-cookie.js +1 -1
  217. package/lib/utils/write-cli-side-channel.js +1 -1
  218. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x5eaa63,_0x3a1ada){const _0x1d5883=a200_0x34da,_0x5de033=_0x5eaa63();while(!![]){try{const _0x2d00b2=-parseInt(_0x1d5883(0x1eb))/0x1*(parseInt(_0x1d5883(0x1f1))/0x2)+-parseInt(_0x1d5883(0x1e3))/0x3*(parseInt(_0x1d5883(0x1ee))/0x4)+-parseInt(_0x1d5883(0x1e7))/0x5+-parseInt(_0x1d5883(0x1e2))/0x6+parseInt(_0x1d5883(0x1e4))/0x7*(parseInt(_0x1d5883(0x1e1))/0x8)+-parseInt(_0x1d5883(0x1ec))/0x9+parseInt(_0x1d5883(0x1e6))/0xa;if(_0x2d00b2===_0x3a1ada)break;else _0x5de033['push'](_0x5de033['shift']());}catch(_0x212e38){_0x5de033['push'](_0x5de033['shift']());}}}(a200_0xdd2f,0x31b52));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x2feaae=a200_0x34da,_0x39a385=getTemplateBaseUrl(),_0x254c67=[_0x39a385+_0x2feaae(0x1ef),_0x39a385+_0x2feaae(0x1e8)];for(const _0x1e8ae1 of _0x254c67){try{const _0x28c57a=await fetch(_0x1e8ae1,{'headers':{'Accept':'application/json'}});if(!_0x28c57a['ok'])continue;const _0x580e84=await _0x28c57a['json']();if(!_0x580e84[_0x2feaae(0x1f0)]?.[_0x2feaae(0x1e9)]||!_0x580e84[_0x2feaae(0x1ed)]?.[_0x2feaae(0x1e5)]?.[_0x2feaae(0x1e9)])continue;return _0x580e84;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a200_0x34da(_0x4dfd2c,_0x466d01){_0x4dfd2c=_0x4dfd2c-0x1e1;const _0xdd2f4e=a200_0xdd2f();let _0x34daf4=_0xdd2f4e[_0x4dfd2c];return _0x34daf4;}let hasCachedConfig=![];function a200_0xdd2f(){const _0x26023e=['node','11015380gOUOTL','1572225poZavj','/config/index.json','stableVersion','now','346fGUSWx','3596436NEGeEa','sdk','13996YLaIfh','/config.json','cli','2172tMlkjj','24FtmkoL','134574zXiUhS','165SuodsD','949067ITrKEM'];a200_0xdd2f=function(){return _0x26023e;};return a200_0xdd2f();}export async function getCdnConfig(){const _0x594c52=a200_0x34da,_0x5e84ba=Date[_0x594c52(0x1ea)]();if(hasCachedConfig){const _0x3d7a02=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5e84ba-cacheTime<_0x3d7a02)return cachedConfig;}const _0xd27a5f=await fetchCdnConfig();return cachedConfig=_0xd27a5f,cacheTime=_0x5e84ba,hasCachedConfig=!![],_0xd27a5f;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0xab5715,_0x52ba16){const _0x55c496=a201_0x5e90,_0x3238af=_0xab5715();while(!![]){try{const _0x41cf8d=parseInt(_0x55c496(0x171))/0x1*(parseInt(_0x55c496(0x172))/0x2)+parseInt(_0x55c496(0x179))/0x3+-parseInt(_0x55c496(0x173))/0x4*(parseInt(_0x55c496(0x16f))/0x5)+-parseInt(_0x55c496(0x16e))/0x6+parseInt(_0x55c496(0x17c))/0x7+parseInt(_0x55c496(0x17d))/0x8*(-parseInt(_0x55c496(0x178))/0x9)+parseInt(_0x55c496(0x176))/0xa*(parseInt(_0x55c496(0x170))/0xb);if(_0x41cf8d===_0x52ba16)break;else _0x3238af['push'](_0x3238af['shift']());}catch(_0xdc6c9){_0x3238af['push'](_0x3238af['shift']());}}}(a201_0xa090,0x9b7dd));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x23186b=a201_0x5e90,_0x4af43d=getTemplateBaseUrl(),_0x39f9dc=[_0x4af43d+'/config.json',_0x4af43d+_0x23186b(0x177)];for(const _0x305d6d of _0x39f9dc){try{const _0x482111=await fetch(_0x305d6d,{'headers':{'Accept':'application/json'}});if(!_0x482111['ok'])continue;const _0x18bb99=await _0x482111[_0x23186b(0x175)]();if(!_0x18bb99[_0x23186b(0x17b)]?.[_0x23186b(0x174)]||!_0x18bb99[_0x23186b(0x17e)]?.[_0x23186b(0x17a)]?.[_0x23186b(0x174)])continue;return _0x18bb99;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a201_0xa090(){const _0x6576d6=['sdk','7271784nFAjiY','430iIgsGX','22uhExtj','1uwWFai','1529246oOaDFo','46876PtCcrU','stableVersion','json','8537330hthPzy','/config/index.json','3712572CIIYQK','684285gmARif','node','cli','3983105aljIjz','8ERgqld'];a201_0xa090=function(){return _0x6576d6;};return a201_0xa090();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x4e3b00=Date['now']();if(hasCachedConfig){const _0x3164fd=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x4e3b00-cacheTime<_0x3164fd)return cachedConfig;}const _0x21c41b=await fetchCdnConfig();return cachedConfig=_0x21c41b,cacheTime=_0x4e3b00,hasCachedConfig=!![],_0x21c41b;}function a201_0x5e90(_0x3fa5fe,_0x10ad04){_0x3fa5fe=_0x3fa5fe-0x16e;const _0xa09041=a201_0xa090();let _0x5e90e7=_0xa09041[_0x3fa5fe];return _0x5e90e7;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- (function(_0x1e1ea3,_0x39a301){const _0x222a44=a201_0x7b97,_0x138cd7=_0x1e1ea3();while(!![]){try{const _0x79d060=parseInt(_0x222a44(0x202))/0x1+parseInt(_0x222a44(0x1ea))/0x2+-parseInt(_0x222a44(0x1ec))/0x3+parseInt(_0x222a44(0x1f7))/0x4+-parseInt(_0x222a44(0x1fc))/0x5*(parseInt(_0x222a44(0x1f9))/0x6)+parseInt(_0x222a44(0x1f8))/0x7*(-parseInt(_0x222a44(0x1e3))/0x8)+-parseInt(_0x222a44(0x1f4))/0x9;if(_0x79d060===_0x39a301)break;else _0x138cd7['push'](_0x138cd7['shift']());}catch(_0x40eae1){_0x138cd7['push'](_0x138cd7['shift']());}}}(a201_0x14ac,0xd99df));import a201_0x4b5445 from'node:fs';import a201_0x5ccdd2 from'node:path';import a201_0xdf369a from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x7acc12){const _0x32bfe3=a201_0x7b97,_0x4954f9=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x4954f9[_0x32bfe3(0x201)](_0xdc81af=>_0xdc81af[_0x32bfe3(0x1ee)](_0x7acc12));}function getInstalledVersion(_0x1d671a,_0x4eb55a){const _0x492f3b=a201_0x7b97;try{const _0x5381dd=a201_0x5ccdd2[_0x492f3b(0x1f1)](_0x1d671a,_0x492f3b(0x1fb),_0x4eb55a,_0x492f3b(0x1fe));if(a201_0x4b5445[_0x492f3b(0x204)](_0x5381dd)){const _0x268d37=JSON[_0x492f3b(0x200)](a201_0x4b5445[_0x492f3b(0x1e9)](_0x5381dd,_0x492f3b(0x1f2)));return _0x268d37['version']||null;}}catch{}return null;}async function getSdkStableVersion(){try{const _0x56cd4b=await getCdnConfig();return _0x56cd4b?.['sdk']?.['node']?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x48ddfc=a201_0x7b97;try{const _0xacf74e=await getCdnConfig();return _0xacf74e?.[_0x48ddfc(0x1f6)]?.[_0x48ddfc(0x1ed)]?.[_0x48ddfc(0x1f0)]||_0x48ddfc(0x1ff);}catch{return _0x48ddfc(0x1ff);}}export async function checkSdkVersion(_0x4a051e){const _0x41b779=a201_0x7b97,_0x42830c=a201_0x5ccdd2['join'](_0x4a051e,_0x41b779(0x1fe)),[_0x5304bf,_0x50cc07]=await Promise[_0x41b779(0x1fa)]([getSdkStableVersion(),getSdkPackageName()]),_0xbbbce5=_0x5304bf||FALLBACK_MIN_SDK_VERSION;if(!a201_0x4b5445['existsSync'](_0x42830c))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xbbbce5,'packageName':_0x50cc07,'stableVersion':_0x5304bf};try{const _0x240468=JSON['parse'](a201_0x4b5445[_0x41b779(0x1e9)](_0x42830c,'utf8')),_0x59ba93=_0x240468['dependencies']||{},_0x52bfc1=_0x240468[_0x41b779(0x1eb)]||{},_0x5e4859=_0x59ba93[_0x50cc07]||_0x52bfc1[_0x50cc07];if(!_0x5e4859)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xbbbce5,'packageName':_0x50cc07,'stableVersion':_0x5304bf};let _0xb2ace3=getInstalledVersion(_0x4a051e,_0x50cc07);!_0xb2ace3&&(_0xb2ace3=_0x5e4859);if(isNonNumericVersion(_0x5e4859))return{'installed':!![],'version':_0xb2ace3,'needsUpgrade':![],'minVersion':_0xbbbce5,'packageName':_0x50cc07,'stableVersion':_0x5304bf};const _0x4bfadc=a201_0xdf369a[_0x41b779(0x1fd)](_0xb2ace3),_0x463d0a=a201_0xdf369a['coerce'](_0xbbbce5),_0x33cebd=_0x4bfadc&&_0x463d0a?a201_0xdf369a['lt'](_0x4bfadc,_0x463d0a):![];return{'installed':!![],'version':_0xb2ace3,'needsUpgrade':_0x33cebd,'minVersion':_0xbbbce5,'packageName':_0x50cc07,'stableVersion':_0x5304bf};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xbbbce5,'packageName':_0x50cc07,'stableVersion':_0x5304bf};}}function a201_0x7b97(_0x80db69,_0x3f7bae){_0x80db69=_0x80db69-0x1e3;const _0x14aca4=a201_0x14ac();let _0x7b97f7=_0x14aca4[_0x80db69];return _0x7b97f7;}export function checkSdkVersionSync(_0x5089f3){const _0x297fc1=a201_0x7b97,_0x2add4f=a201_0x5ccdd2[_0x297fc1(0x1f1)](_0x5089f3,_0x297fc1(0x1fe)),_0x495de0='@lovrabet/sdk';if(!a201_0x4b5445[_0x297fc1(0x204)](_0x2add4f))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x495de0,'stableVersion':null};try{const _0x3b9c0e=JSON[_0x297fc1(0x200)](a201_0x4b5445[_0x297fc1(0x1e9)](_0x2add4f,_0x297fc1(0x1f3))),_0x2046c5=_0x3b9c0e['dependencies']||{},_0x301de5=_0x3b9c0e[_0x297fc1(0x1eb)]||{},_0x18f136=_0x2046c5[_0x495de0]||_0x301de5[_0x495de0];if(!_0x18f136)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x495de0,'stableVersion':null};let _0x291b8e=getInstalledVersion(_0x5089f3,_0x495de0);!_0x291b8e&&(_0x291b8e=_0x18f136);if(isNonNumericVersion(_0x18f136))return{'installed':!![],'version':_0x291b8e,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x495de0,'stableVersion':null};const _0x779bd6=a201_0xdf369a['coerce'](_0x291b8e),_0x5ebf6f=_0x779bd6?a201_0xdf369a['lt'](_0x779bd6,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x291b8e,'needsUpgrade':_0x5ebf6f,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x495de0,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x495de0,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x562e3e){const _0x2103cf=a201_0x7b97;if(!_0x562e3e[_0x2103cf(0x1e5)])return;const _0x223afd=_0x2103cf(0x1e8),_0x3bb0f3='\x1b[0m',_0x110763=_0x2103cf(0x203),_0x518c69=_0x562e3e[_0x2103cf(0x1f0)]||_0x2103cf(0x1ff),_0x2b724d=_0x562e3e[_0x2103cf(0x1e6)]||_0x562e3e['minVersion'],_0x5b965d='npm\x20install\x20'+_0x518c69+'@'+(_0x2b724d||_0x2103cf(0x1e7));console[_0x2103cf(0x205)](),console[_0x2103cf(0x205)](''+_0x223afd+_0x110763+_0x2103cf(0x1f5)+_0x3bb0f3),console['log'](_0x223afd+_0x2103cf(0x1e4)+_0x518c69+'@'+_0x562e3e['version']+_0x3bb0f3),console[_0x2103cf(0x205)](_0x223afd+_0x2103cf(0x1ef)+_0x2b724d+_0x3bb0f3),console[_0x2103cf(0x205)](_0x223afd+'\x20\x20\x20Upgrade\x20command:\x20'+_0x5b965d+_0x3bb0f3),console[_0x2103cf(0x205)]();}function a201_0x14ac(){const _0xd3f459=['some','1645411KqZjAf','\x1b[1m','existsSync','log','112qcuhOA','\x20\x20\x20Current\x20version:\x20','needsUpgrade','stableVersion','latest','\x1b[33m','readFileSync','3340616WLfeCI','devDependencies','10908dsxHVe','node','test','\x20\x20\x20Stable\x20version:\x20','packageName','join','utf-8','utf8','26303148BNgJjb','↪\x20SDK\x20update\x20available','sdk','5804764zkvcQf','95543mEBnuW','6TcZrsc','all','node_modules','3791285BiwThf','coerce','package.json','@lovrabet/sdk','parse'];a201_0x14ac=function(){return _0xd3f459;};return a201_0x14ac();}
1
+ const a202_0x418211=a202_0x2c14;(function(_0x3e1c06,_0x28b601){const _0x2cb3bf=a202_0x2c14,_0xcd5cfc=_0x3e1c06();while(!![]){try{const _0x236256=-parseInt(_0x2cb3bf(0x10d))/0x1+parseInt(_0x2cb3bf(0x10b))/0x2+parseInt(_0x2cb3bf(0x105))/0x3+parseInt(_0x2cb3bf(0x10f))/0x4*(parseInt(_0x2cb3bf(0x10c))/0x5)+-parseInt(_0x2cb3bf(0x108))/0x6+parseInt(_0x2cb3bf(0x115))/0x7*(parseInt(_0x2cb3bf(0x101))/0x8)+parseInt(_0x2cb3bf(0x112))/0x9*(-parseInt(_0x2cb3bf(0x114))/0xa);if(_0x236256===_0x28b601)break;else _0xcd5cfc['push'](_0xcd5cfc['shift']());}catch(_0x157581){_0xcd5cfc['push'](_0xcd5cfc['shift']());}}}(a202_0x43c6,0x5f4b0));import a202_0x543968 from'node:fs';import a202_0x40be29 from'node:path';import a202_0x554e9b from'semver';import{getCdnConfig}from'../utils/cdn-config.js';function a202_0x2c14(_0x32b8ab,_0x314dfe){_0x32b8ab=_0x32b8ab-0xf0;const _0x43c6b1=a202_0x43c6();let _0x2c1473=_0x43c6b1[_0x32b8ab];return _0x2c1473;}const FALLBACK_MIN_SDK_VERSION=a202_0x418211(0xfa);function isNonNumericVersion(_0x5aef7a){const _0x26afdc=a202_0x418211,_0x2af6e5=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x2af6e5[_0x26afdc(0xfd)](_0x236227=>_0x236227['test'](_0x5aef7a));}function getInstalledVersion(_0x4156fe,_0x26682e){const _0x37598f=a202_0x418211;try{const _0x3d50d7=a202_0x40be29[_0x37598f(0xf1)](_0x4156fe,'node_modules',_0x26682e,_0x37598f(0x104));if(a202_0x543968[_0x37598f(0xff)](_0x3d50d7)){const _0x8b97e9=JSON[_0x37598f(0xf4)](a202_0x543968[_0x37598f(0x102)](_0x3d50d7,'utf-8'));return _0x8b97e9['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x1fbc42=a202_0x418211;try{const _0x2b1fc9=await getCdnConfig();return _0x2b1fc9?.[_0x1fbc42(0xfc)]?.['node']?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x3ac1cd=a202_0x418211;try{const _0x39530a=await getCdnConfig();return _0x39530a?.[_0x3ac1cd(0xfc)]?.['node']?.['packageName']||_0x3ac1cd(0x111);}catch{return _0x3ac1cd(0x111);}}function a202_0x43c6(){const _0x380c46=['some','stableVersion','existsSync','\x20\x20\x20Stable\x20version:\x20','3220296jpgMxa','readFileSync','needsUpgrade','package.json','1241766fJPjoD','\x1b[1m','\x1b[0m','1282920ooUZPD','npm\x20install\x20','version','1089474VRpqOm','1645gjBwCu','262687AxNiSS','dependencies','2092dLnEUg','latest','@lovrabet/sdk','2998962xuFNtT','devDependencies','20UNEalk','7diWvAx','minVersion','join','\x20\x20\x20Upgrade\x20command:\x20','all','parse','coerce','log','utf8','\x20\x20\x20Current\x20version:\x20','packageName','1.2.0','\x1b[33m','sdk'];a202_0x43c6=function(){return _0x380c46;};return a202_0x43c6();}export async function checkSdkVersion(_0x4516d2){const _0x158dd1=a202_0x418211,_0x429152=a202_0x40be29[_0x158dd1(0xf1)](_0x4516d2,_0x158dd1(0x104)),[_0x4c5f23,_0x930a59]=await Promise[_0x158dd1(0xf3)]([getSdkStableVersion(),getSdkPackageName()]),_0x8c95bf=_0x4c5f23||FALLBACK_MIN_SDK_VERSION;if(!a202_0x543968[_0x158dd1(0xff)](_0x429152))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x8c95bf,'packageName':_0x930a59,'stableVersion':_0x4c5f23};try{const _0x59938d=JSON[_0x158dd1(0xf4)](a202_0x543968[_0x158dd1(0x102)](_0x429152,_0x158dd1(0xf7))),_0x491b2c=_0x59938d['dependencies']||{},_0x26b67f=_0x59938d[_0x158dd1(0x113)]||{},_0x2cdf80=_0x491b2c[_0x930a59]||_0x26b67f[_0x930a59];if(!_0x2cdf80)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x8c95bf,'packageName':_0x930a59,'stableVersion':_0x4c5f23};let _0x3955a8=getInstalledVersion(_0x4516d2,_0x930a59);!_0x3955a8&&(_0x3955a8=_0x2cdf80);if(isNonNumericVersion(_0x2cdf80))return{'installed':!![],'version':_0x3955a8,'needsUpgrade':![],'minVersion':_0x8c95bf,'packageName':_0x930a59,'stableVersion':_0x4c5f23};const _0x1be553=a202_0x554e9b['coerce'](_0x3955a8),_0x323b01=a202_0x554e9b['coerce'](_0x8c95bf),_0x525c32=_0x1be553&&_0x323b01?a202_0x554e9b['lt'](_0x1be553,_0x323b01):![];return{'installed':!![],'version':_0x3955a8,'needsUpgrade':_0x525c32,'minVersion':_0x8c95bf,'packageName':_0x930a59,'stableVersion':_0x4c5f23};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x8c95bf,'packageName':_0x930a59,'stableVersion':_0x4c5f23};}}export function checkSdkVersionSync(_0x393a6c){const _0x51536c=a202_0x418211,_0xd87a04=a202_0x40be29['join'](_0x393a6c,_0x51536c(0x104)),_0x102a95=_0x51536c(0x111);if(!a202_0x543968[_0x51536c(0xff)](_0xd87a04))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x102a95,'stableVersion':null};try{const _0xb711a0=JSON[_0x51536c(0xf4)](a202_0x543968['readFileSync'](_0xd87a04,_0x51536c(0xf7))),_0x50582c=_0xb711a0[_0x51536c(0x10e)]||{},_0x5e85c3=_0xb711a0[_0x51536c(0x113)]||{},_0x3cd623=_0x50582c[_0x102a95]||_0x5e85c3[_0x102a95];if(!_0x3cd623)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x102a95,'stableVersion':null};let _0x40ea75=getInstalledVersion(_0x393a6c,_0x102a95);!_0x40ea75&&(_0x40ea75=_0x3cd623);if(isNonNumericVersion(_0x3cd623))return{'installed':!![],'version':_0x40ea75,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x102a95,'stableVersion':null};const _0x1a65fc=a202_0x554e9b[_0x51536c(0xf5)](_0x40ea75),_0x30e489=_0x1a65fc?a202_0x554e9b['lt'](_0x1a65fc,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x40ea75,'needsUpgrade':_0x30e489,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x102a95,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x102a95,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x2fa19c){const _0x511989=a202_0x418211;if(!_0x2fa19c[_0x511989(0x103)])return;const _0xe9ee22=_0x511989(0xfb),_0xac59b2=_0x511989(0x107),_0x272551=_0x511989(0x106),_0x594225=_0x2fa19c[_0x511989(0xf9)]||_0x511989(0x111),_0x447358=_0x2fa19c[_0x511989(0xfe)]||_0x2fa19c[_0x511989(0xf0)],_0x4eea62=_0x511989(0x109)+_0x594225+'@'+(_0x447358||_0x511989(0x110));console[_0x511989(0xf6)](),console['log'](''+_0xe9ee22+_0x272551+'↪\x20SDK\x20update\x20available'+_0xac59b2),console[_0x511989(0xf6)](_0xe9ee22+_0x511989(0xf8)+_0x594225+'@'+_0x2fa19c[_0x511989(0x10a)]+_0xac59b2),console['log'](_0xe9ee22+_0x511989(0x100)+_0x447358+_0xac59b2),console[_0x511989(0xf6)](_0xe9ee22+_0x511989(0xf2)+_0x4eea62+_0xac59b2),console['log']();}
@@ -1 +1 @@
1
- (function(_0x4083ac,_0x1e666b){const _0x296c2c=a202_0x1a99,_0x5bb668=_0x4083ac();while(!![]){try{const _0x3ad5a7=-parseInt(_0x296c2c(0x8f))/0x1+-parseInt(_0x296c2c(0x88))/0x2+parseInt(_0x296c2c(0x97))/0x3*(-parseInt(_0x296c2c(0x7d))/0x4)+parseInt(_0x296c2c(0x84))/0x5+-parseInt(_0x296c2c(0x93))/0x6*(-parseInt(_0x296c2c(0x8b))/0x7)+parseInt(_0x296c2c(0xa0))/0x8*(-parseInt(_0x296c2c(0x80))/0x9)+parseInt(_0x296c2c(0x98))/0xa;if(_0x3ad5a7===_0x1e666b)break;else _0x5bb668['push'](_0x5bb668['shift']());}catch(_0x3f70ad){_0x5bb668['push'](_0x5bb668['shift']());}}}(a202_0x1ea2,0xb72dc));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a202_0x354097 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a202_0x1a99(_0x5ddf77,_0x253ea7){_0x5ddf77=_0x5ddf77-0x7d;const _0x1ea20c=a202_0x1ea2();let _0x1a99f5=_0x1ea20c[_0x5ddf77];return _0x1a99f5;}function a202_0x1ea2(){const _0x408669=['\x20\x20\x20Minimum\x20supported:\x20','2046WeWYZr','\x20\x20\x20Recommended\x20stable:\x20','Current\x20version:\x20','\x20\x20\x20Upgrade\x20command:\x20','10779GnTcFf','11225750xXhSnd','minimumVersion','Upgrade\x20command:\x20','\x1b[0m','belowMinimum','\x1b[31m','latest','currentVersion','23360mzCtgJ','join','228doazOG','package.json','npm\x20install\x20-g\x20','954TUCwrb','\x20\x20\x20Current\x20CLI\x20version:\x20','version','↪\x20Critical\x20CLI\x20upgrade\x20required','6994480tujaoh','needsUpgrade','coerce','1.0.0','2748878tsPJOm','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','stableVersion','15449dOlDFS','minimumVersionMessage','\x20\x20\x20','upgradeMessage','634998tEOTLQ','log','\x1b[1m'];a202_0x1ea2=function(){return _0x408669;};return a202_0x1ea2();}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x19979e){const _0x35f514=a202_0x1a99,_0x355a0a=_0x19979e[_0x35f514(0x8a)]||_0x35f514(0x9e);return _0x35f514(0x7f)+NPM_PACKAGE_NAME+'@'+_0x355a0a;}function getCurrentCliVersion(){const _0xda295a=a202_0x1a99;try{const _0x285b7e=fileURLToPath(import.meta.url),_0x50dbf0=resolve(dirname(_0x285b7e),'../..'),_0x5c8353=resolve(_0x50dbf0,_0xda295a(0x7e)),_0x4cbf97=JSON['parse'](readFileSync(_0x5c8353,'utf-8'));return _0x4cbf97[_0xda295a(0x82)]||'1.0.0';}catch{return _0xda295a(0x87);}}export async function checkCliVersion(){const _0x3c1b63=a202_0x1a99,_0x4974d9=getCurrentCliVersion(),_0xffac74=await getCliVersionPolicy(),_0x3b5aa3=_0xffac74?.[_0x3c1b63(0x8a)]||null,_0x2b60af=_0xffac74?.[_0x3c1b63(0x99)]||null;let _0x5b792d=![],_0x11286e=![];const _0x205897=a202_0x354097['coerce'](_0x4974d9);if(_0x205897&&_0x3b5aa3)try{const _0x1002ac=a202_0x354097[_0x3c1b63(0x86)](_0x3b5aa3);if(_0x1002ac)_0x5b792d=a202_0x354097['lt'](_0x205897,_0x1002ac);}catch{}if(_0x205897&&_0x2b60af)try{const _0x3ca128=a202_0x354097[_0x3c1b63(0x86)](_0x2b60af);if(_0x3ca128)_0x11286e=a202_0x354097['lt'](_0x205897,_0x3ca128);}catch{}return _0x11286e&&(_0x5b792d=!![]),{'currentVersion':_0x4974d9,'stableVersion':_0x3b5aa3,'minimumVersion':_0x2b60af,'needsUpgrade':_0x5b792d,'belowMinimum':_0x11286e,'isPreRelease':![],'upgradeMessage':_0xffac74?.[_0x3c1b63(0x8e)],'minimumVersionMessage':_0xffac74?.[_0x3c1b63(0x8c)]};}export function printCliUpgradeWarning(_0x4b6be3){const _0x5f352c=a202_0x1a99;if(!_0x4b6be3[_0x5f352c(0x85)]&&!_0x4b6be3[_0x5f352c(0x9c)])return;const _0x4d5c3d=_0x5f352c(0x9d),_0x4cccd9='\x1b[33m',_0x4d003f=_0x5f352c(0x9b),_0x51e124=_0x5f352c(0x91),_0x4df1e0=getCliUpgradeCommand(_0x4b6be3);console[_0x5f352c(0x90)](),_0x4b6be3[_0x5f352c(0x9c)]?(console[_0x5f352c(0x90)](''+_0x4d5c3d+_0x51e124+_0x5f352c(0x83)+_0x4d003f),console[_0x5f352c(0x90)](_0x4d5c3d+_0x5f352c(0x81)+_0x4b6be3[_0x5f352c(0x9f)]+_0x4d003f),_0x4b6be3[_0x5f352c(0x99)]&&console[_0x5f352c(0x90)](_0x4d5c3d+_0x5f352c(0x92)+_0x4b6be3['minimumVersion']+_0x4d003f),_0x4b6be3[_0x5f352c(0x8a)]&&_0x4b6be3['stableVersion']!==_0x4b6be3[_0x5f352c(0x99)]&&console['log'](_0x4d5c3d+_0x5f352c(0x94)+_0x4b6be3['stableVersion']+_0x4d003f),_0x4b6be3[_0x5f352c(0x8c)]&&console[_0x5f352c(0x90)](_0x4d5c3d+_0x5f352c(0x8d)+_0x4b6be3[_0x5f352c(0x8c)]+_0x4d003f),console[_0x5f352c(0x90)](_0x4d5c3d+_0x5f352c(0x96)+_0x4df1e0+_0x4d003f)):(console[_0x5f352c(0x90)](''+_0x4cccd9+_0x51e124+'↪\x20New\x20version\x20available'+_0x4d003f),console[_0x5f352c(0x90)](_0x4cccd9+_0x5f352c(0x81)+_0x4b6be3[_0x5f352c(0x9f)]+_0x4d003f),console[_0x5f352c(0x90)](_0x4cccd9+'\x20\x20\x20Stable\x20version:\x20'+_0x4b6be3[_0x5f352c(0x8a)]+_0x4d003f),_0x4b6be3[_0x5f352c(0x8e)]&&console[_0x5f352c(0x90)](_0x4cccd9+_0x5f352c(0x8d)+_0x4b6be3[_0x5f352c(0x8e)]+_0x4d003f),console['log'](_0x4cccd9+_0x5f352c(0x96)+_0x4df1e0+_0x4d003f)),console[_0x5f352c(0x90)]();}export function assertCliVersionSupported(_0x88ec3d){const _0x37cfeb=a202_0x1a99;if(!_0x88ec3d['belowMinimum'])return;const _0x110112=[_0x88ec3d[_0x37cfeb(0x8c)],_0x37cfeb(0x95)+_0x88ec3d[_0x37cfeb(0x9f)],_0x88ec3d[_0x37cfeb(0x99)]?'Minimum\x20supported:\x20'+_0x88ec3d[_0x37cfeb(0x99)]:null,_0x37cfeb(0x9a)+getCliUpgradeCommand(_0x88ec3d)]['filter'](Boolean)[_0x37cfeb(0xa1)]('\x0a');throw CliErrors['validation'](_0x37cfeb(0x89),_0x110112);}
1
+ (function(_0x3cb6ab,_0x14f51d){const _0x29cdf5=a203_0x42d4,_0x53314d=_0x3cb6ab();while(!![]){try{const _0x469fc4=parseInt(_0x29cdf5(0x10e))/0x1*(parseInt(_0x29cdf5(0x113))/0x2)+parseInt(_0x29cdf5(0xfc))/0x3+-parseInt(_0x29cdf5(0x114))/0x4+parseInt(_0x29cdf5(0xf9))/0x5*(-parseInt(_0x29cdf5(0x112))/0x6)+-parseInt(_0x29cdf5(0xff))/0x7*(parseInt(_0x29cdf5(0x108))/0x8)+-parseInt(_0x29cdf5(0x10a))/0x9+parseInt(_0x29cdf5(0xfa))/0xa*(parseInt(_0x29cdf5(0x107))/0xb);if(_0x469fc4===_0x14f51d)break;else _0x53314d['push'](_0x53314d['shift']());}catch(_0x16d748){_0x53314d['push'](_0x53314d['shift']());}}}(a203_0x1771,0xe96ae));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a203_0x258a2d from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a203_0x42d4(_0x127968,_0x3577b7){_0x127968=_0x127968-0xf9;const _0x17713f=a203_0x1771();let _0x42d489=_0x17713f[_0x127968];return _0x42d489;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a203_0x1771(){const _0x3d6b67=['1.0.0','28QmmiGg','version','\x1b[33m','↪\x20Critical\x20CLI\x20upgrade\x20required','\x20\x20\x20Minimum\x20supported:\x20','stableVersion','Current\x20version:\x20','\x20\x20\x20Stable\x20version:\x20','869kuoWyU','2854648pAjprm','join','2813400xKQoyo','\x20\x20\x20Recommended\x20stable:\x20','validation','coerce','5JFzwrd','\x1b[1m','minimumVersion','minimumVersionMessage','3420BWEPPf','195298UWokSV','3392708zvEFpP','../..','npm\x20install\x20-g\x20','\x20\x20\x20Upgrade\x20command:\x20','utf-8','parse','upgradeMessage','Minimum\x20supported:\x20','\x1b[31m','latest','\x20\x20\x20Current\x20CLI\x20version:\x20','belowMinimum','\x20\x20\x20','currentVersion','log','8115QyDYsU','408880ugpvEP','\x1b[0m','2252676jUcNMj','Upgrade\x20command:\x20'];a203_0x1771=function(){return _0x3d6b67;};return a203_0x1771();}export function getCliUpgradeCommand(_0x361810){const _0x24bf38=a203_0x42d4,_0x40c8cf=_0x361810[_0x24bf38(0x104)]||_0x24bf38(0x11d);return _0x24bf38(0x116)+NPM_PACKAGE_NAME+'@'+_0x40c8cf;}function getCurrentCliVersion(){const _0x444556=a203_0x42d4;try{const _0x3bf50a=fileURLToPath(import.meta.url),_0x480277=resolve(dirname(_0x3bf50a),_0x444556(0x115)),_0x481596=resolve(_0x480277,'package.json'),_0xfbd487=JSON[_0x444556(0x119)](readFileSync(_0x481596,_0x444556(0x118)));return _0xfbd487[_0x444556(0x100)]||'1.0.0';}catch{return _0x444556(0xfe);}}export async function checkCliVersion(){const _0x5b81f1=a203_0x42d4,_0x2f124d=getCurrentCliVersion(),_0x30588b=await getCliVersionPolicy(),_0x4f2041=_0x30588b?.[_0x5b81f1(0x104)]||null,_0x37b0b3=_0x30588b?.['minimumVersion']||null;let _0x5dc031=![],_0x325e3a=![];const _0x5bbcc6=a203_0x258a2d[_0x5b81f1(0x10d)](_0x2f124d);if(_0x5bbcc6&&_0x4f2041)try{const _0x2fb1d6=a203_0x258a2d['coerce'](_0x4f2041);if(_0x2fb1d6)_0x5dc031=a203_0x258a2d['lt'](_0x5bbcc6,_0x2fb1d6);}catch{}if(_0x5bbcc6&&_0x37b0b3)try{const _0x3d3829=a203_0x258a2d['coerce'](_0x37b0b3);if(_0x3d3829)_0x325e3a=a203_0x258a2d['lt'](_0x5bbcc6,_0x3d3829);}catch{}return _0x325e3a&&(_0x5dc031=!![]),{'currentVersion':_0x2f124d,'stableVersion':_0x4f2041,'minimumVersion':_0x37b0b3,'needsUpgrade':_0x5dc031,'belowMinimum':_0x325e3a,'isPreRelease':![],'upgradeMessage':_0x30588b?.[_0x5b81f1(0x11a)],'minimumVersionMessage':_0x30588b?.[_0x5b81f1(0x111)]};}export function printCliUpgradeWarning(_0x2e8404){const _0x1d6e6e=a203_0x42d4;if(!_0x2e8404['needsUpgrade']&&!_0x2e8404[_0x1d6e6e(0x11f)])return;const _0x1fe66a=_0x1d6e6e(0x11c),_0x13bce8=_0x1d6e6e(0x101),_0x46dfe2=_0x1d6e6e(0xfb),_0x14cd1d=_0x1d6e6e(0x10f),_0x539a01=getCliUpgradeCommand(_0x2e8404);console[_0x1d6e6e(0x122)](),_0x2e8404[_0x1d6e6e(0x11f)]?(console[_0x1d6e6e(0x122)](''+_0x1fe66a+_0x14cd1d+_0x1d6e6e(0x102)+_0x46dfe2),console[_0x1d6e6e(0x122)](_0x1fe66a+_0x1d6e6e(0x11e)+_0x2e8404[_0x1d6e6e(0x121)]+_0x46dfe2),_0x2e8404[_0x1d6e6e(0x110)]&&console[_0x1d6e6e(0x122)](_0x1fe66a+_0x1d6e6e(0x103)+_0x2e8404[_0x1d6e6e(0x110)]+_0x46dfe2),_0x2e8404['stableVersion']&&_0x2e8404[_0x1d6e6e(0x104)]!==_0x2e8404[_0x1d6e6e(0x110)]&&console[_0x1d6e6e(0x122)](_0x1fe66a+_0x1d6e6e(0x10b)+_0x2e8404[_0x1d6e6e(0x104)]+_0x46dfe2),_0x2e8404[_0x1d6e6e(0x111)]&&console['log'](_0x1fe66a+_0x1d6e6e(0x120)+_0x2e8404[_0x1d6e6e(0x111)]+_0x46dfe2),console[_0x1d6e6e(0x122)](_0x1fe66a+_0x1d6e6e(0x117)+_0x539a01+_0x46dfe2)):(console[_0x1d6e6e(0x122)](''+_0x13bce8+_0x14cd1d+'↪\x20New\x20version\x20available'+_0x46dfe2),console[_0x1d6e6e(0x122)](_0x13bce8+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x2e8404[_0x1d6e6e(0x121)]+_0x46dfe2),console[_0x1d6e6e(0x122)](_0x13bce8+_0x1d6e6e(0x106)+_0x2e8404[_0x1d6e6e(0x104)]+_0x46dfe2),_0x2e8404[_0x1d6e6e(0x11a)]&&console[_0x1d6e6e(0x122)](_0x13bce8+_0x1d6e6e(0x120)+_0x2e8404[_0x1d6e6e(0x11a)]+_0x46dfe2),console[_0x1d6e6e(0x122)](_0x13bce8+_0x1d6e6e(0x117)+_0x539a01+_0x46dfe2)),console[_0x1d6e6e(0x122)]();}export function assertCliVersionSupported(_0x547a43){const _0x1db844=a203_0x42d4;if(!_0x547a43[_0x1db844(0x11f)])return;const _0x47aac3=[_0x547a43['minimumVersionMessage'],_0x1db844(0x105)+_0x547a43[_0x1db844(0x121)],_0x547a43['minimumVersion']?_0x1db844(0x11b)+_0x547a43['minimumVersion']:null,_0x1db844(0xfd)+getCliUpgradeCommand(_0x547a43)]['filter'](Boolean)[_0x1db844(0x109)]('\x0a');throw CliErrors[_0x1db844(0x10c)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x47aac3);}
@@ -1 +1 @@
1
- (function(_0x230bc6,_0x268a0a){const _0x2b4ee9=a203_0x3e66,_0x26d4ea=_0x230bc6();while(!![]){try{const _0x19fb57=parseInt(_0x2b4ee9(0xaa))/0x1*(-parseInt(_0x2b4ee9(0xa5))/0x2)+-parseInt(_0x2b4ee9(0xa6))/0x3*(-parseInt(_0x2b4ee9(0xa2))/0x4)+-parseInt(_0x2b4ee9(0xa4))/0x5+parseInt(_0x2b4ee9(0xa1))/0x6+parseInt(_0x2b4ee9(0xa0))/0x7+parseInt(_0x2b4ee9(0x9c))/0x8+-parseInt(_0x2b4ee9(0x9d))/0x9;if(_0x19fb57===_0x268a0a)break;else _0x26d4ea['push'](_0x26d4ea['shift']());}catch(_0x3c9421){_0x26d4ea['push'](_0x26d4ea['shift']());}}}(a203_0x18e0,0x73b9f));function a203_0x18e0(){const _0x3ae98d=['30332PEDpLl','minVersion','1846225VovThA','850tmWcKf','93rbLaOB','trim','string','minimumVersionMessage','731CVMyAl','abort','object','6320736DzfIPB','11883060lHyGlT','cli','signal','5206194kRxJqF','4232208fhggkx'];a203_0x18e0=function(){return _0x3ae98d;};return a203_0x18e0();}import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x4a6984){const _0x10eb2a=a203_0x3e66;return typeof _0x4a6984===_0x10eb2a(0xa8)&&_0x4a6984[_0x10eb2a(0xa7)]()['length']>0x0?_0x4a6984[_0x10eb2a(0xa7)]():null;}function a203_0x3e66(_0x181589,_0x17328f){_0x181589=_0x181589-0x9c;const _0x18e0f7=a203_0x18e0();let _0x3e6692=_0x18e0f7[_0x181589];return _0x3e6692;}function normalizeCliVersionPolicy(_0x5c750e){const _0x45e878=a203_0x3e66;if(!_0x5c750e||typeof _0x5c750e!==_0x45e878(0xac))return null;const _0x41a9b1=_0x5c750e,_0xc8f19d=_0x41a9b1[_0x45e878(0x9e)]&&typeof _0x41a9b1['cli']===_0x45e878(0xac)?_0x41a9b1['cli']:_0x41a9b1,_0x512590=pickString(_0xc8f19d['stableVersion'])||pickString(_0xc8f19d['latestVersion'])||pickString(_0xc8f19d['recommendedVersion']),_0x509397=pickString(_0xc8f19d['minimumVersion'])||pickString(_0xc8f19d[_0x45e878(0xa3)]);if(!_0x512590&&!_0x509397)return null;return{'stableVersion':_0x512590,'minimumVersion':_0x509397,'upgradeMessage':pickString(_0xc8f19d['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0xc8f19d[_0x45e878(0xa9)])||undefined};}export async function fetchCliVersionPolicy(){const _0x3b9beb=a203_0x3e66,_0x5429c4=new AbortController(),_0x52b7d0=setTimeout(()=>_0x5429c4[_0x3b9beb(0xab)](),FETCH_TIMEOUT_MS);try{const _0x32b58e=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x5429c4[_0x3b9beb(0x9f)]});if(!_0x32b58e['ok'])return null;const _0x4c15f0=await _0x32b58e['json']();return normalizeCliVersionPolicy(_0x4c15f0);}catch{return null;}finally{clearTimeout(_0x52b7d0);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x5582db=Date['now']();if(hasCachedPolicy){const _0x2bbe2f=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5582db-cacheTime<_0x2bbe2f)return cachedPolicy;}const _0x19802b=await fetchCliVersionPolicy();return cachedPolicy=_0x19802b,cacheTime=_0x5582db,hasCachedPolicy=!![],_0x19802b;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x15b233,_0x3cad88){const _0x1d012e=a204_0xce31,_0xc0bc46=_0x15b233();while(!![]){try{const _0x1ed1f7=-parseInt(_0x1d012e(0xee))/0x1+-parseInt(_0x1d012e(0xde))/0x2+parseInt(_0x1d012e(0xf2))/0x3*(parseInt(_0x1d012e(0xec))/0x4)+parseInt(_0x1d012e(0xef))/0x5*(parseInt(_0x1d012e(0xe3))/0x6)+parseInt(_0x1d012e(0xe6))/0x7+-parseInt(_0x1d012e(0xe1))/0x8+parseInt(_0x1d012e(0xe7))/0x9*(parseInt(_0x1d012e(0xe9))/0xa);if(_0x1ed1f7===_0x3cad88)break;else _0xc0bc46['push'](_0xc0bc46['shift']());}catch(_0x471965){_0xc0bc46['push'](_0xc0bc46['shift']());}}}(a204_0x5caf,0xba946));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x3ab0aa){const _0x4c18d0=a204_0xce31;return typeof _0x3ab0aa===_0x4c18d0(0xf3)&&_0x3ab0aa[_0x4c18d0(0xf4)]()['length']>0x0?_0x3ab0aa[_0x4c18d0(0xf4)]():null;}function normalizeCliVersionPolicy(_0x35276e){const _0x444cdf=a204_0xce31;if(!_0x35276e||typeof _0x35276e!==_0x444cdf(0xdf))return null;const _0x142e0a=_0x35276e,_0x4a48c7=_0x142e0a[_0x444cdf(0xe8)]&&typeof _0x142e0a[_0x444cdf(0xe8)]===_0x444cdf(0xdf)?_0x142e0a[_0x444cdf(0xe8)]:_0x142e0a,_0x5df5af=pickString(_0x4a48c7[_0x444cdf(0xe4)])||pickString(_0x4a48c7[_0x444cdf(0xe0)])||pickString(_0x4a48c7[_0x444cdf(0xe2)]),_0x3cf975=pickString(_0x4a48c7[_0x444cdf(0xeb)])||pickString(_0x4a48c7[_0x444cdf(0xf1)]);if(!_0x5df5af&&!_0x3cf975)return null;return{'stableVersion':_0x5df5af,'minimumVersion':_0x3cf975,'upgradeMessage':pickString(_0x4a48c7['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x4a48c7['minimumVersionMessage'])||undefined};}export async function fetchCliVersionPolicy(){const _0x4377b8=a204_0xce31,_0x4ab5be=new AbortController(),_0x22a798=setTimeout(()=>_0x4ab5be['abort'](),FETCH_TIMEOUT_MS);try{const _0x331f5a=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x4377b8(0xed)},'signal':_0x4ab5be[_0x4377b8(0xea)]});if(!_0x331f5a['ok'])return null;const _0x43fbd2=await _0x331f5a[_0x4377b8(0xe5)]();return normalizeCliVersionPolicy(_0x43fbd2);}catch{return null;}finally{clearTimeout(_0x22a798);}}function a204_0x5caf(){const _0x5064b5=['object','latestVersion','11386832tEbFnE','recommendedVersion','2124hwbFXO','stableVersion','json','3373951mNPrvk','1437579NiZlPG','cli','150DWIZDV','signal','minimumVersion','4cOLeay','application/json','626749lJMoAe','485MaVgBs','now','minVersion','3481962cpCepX','string','trim','2517234oQwGal'];a204_0x5caf=function(){return _0x5064b5;};return a204_0x5caf();}function a204_0xce31(_0x173dfc,_0x2b5c94){_0x173dfc=_0x173dfc-0xde;const _0x5caf26=a204_0x5caf();let _0xce31ab=_0x5caf26[_0x173dfc];return _0xce31ab;}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x4cd044=a204_0xce31,_0x14a47c=Date[_0x4cd044(0xf0)]();if(hasCachedPolicy){const _0x31b716=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x14a47c-cacheTime<_0x31b716)return cachedPolicy;}const _0x5e5838=await fetchCliVersionPolicy();return cachedPolicy=_0x5e5838,cacheTime=_0x14a47c,hasCachedPolicy=!![],_0x5e5838;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- const a204_0x27d67b=a204_0x60d1;(function(_0x4c9954,_0x58253b){const _0x4eec5b=a204_0x60d1,_0x487635=_0x4c9954();while(!![]){try{const _0x1fd4fc=-parseInt(_0x4eec5b(0x1ca))/0x1*(parseInt(_0x4eec5b(0x1c3))/0x2)+-parseInt(_0x4eec5b(0x1c4))/0x3*(-parseInt(_0x4eec5b(0x1c6))/0x4)+-parseInt(_0x4eec5b(0x1c2))/0x5*(parseInt(_0x4eec5b(0x1c7))/0x6)+parseInt(_0x4eec5b(0x1c5))/0x7+-parseInt(_0x4eec5b(0x1c1))/0x8+parseInt(_0x4eec5b(0x1c8))/0x9+parseInt(_0x4eec5b(0x1c9))/0xa;if(_0x1fd4fc===_0x58253b)break;else _0x487635['push'](_0x487635['shift']());}catch(_0x4eac55){_0x487635['push'](_0x487635['shift']());}}}(a204_0x409f,0x80941));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a204_0x1be5bf,getMultiAppConfigs as a204_0x2ee4dc,getTemplateBaseUrl as a204_0x46b512}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a204_0x60d1(_0x32e596,_0x27bf46){_0x32e596=_0x32e596-0x1bf;const _0x409f83=a204_0x409f();let _0x60d1f4=_0x409f83[_0x32e596];return _0x60d1f4;}export function readConfig(_0x2fc5a0){const _0x55ae94=a204_0x60d1,_0x26f844=readRawConfig(_0x2fc5a0);return _0x26f844[_0x55ae94(0x1c0)]&&typeof _0x26f844[_0x55ae94(0x1c0)]===_0x55ae94(0x1cb)&&initEnv(_0x26f844[_0x55ae94(0x1c0)]),_0x26f844;}export function getConfigAppCode(){return a204_0x1be5bf();}export function getMultiAppConfigs(_0x2293a5=a204_0x27d67b(0x1bf)){return a204_0x2ee4dc(_0x2293a5);}function a204_0x409f(){const _0x5acb27=['3970098NCKucR','629130GNlAfV','4RTyMuW','string','project','env','1141168bXaXYb','13645xeLfsh','431174FQFcaT','25596CvcVfn','6093045YOQESF','272ItLMgw','930fPSXUT'];a204_0x409f=function(){return _0x5acb27;};return a204_0x409f();}export function getTemplateBaseUrl(){return a204_0x46b512();}
1
+ function a205_0x4537(){const _0x4c0815=['114877AxeTNp','225IaMDXP','string','env','499846JavjjI','6332070PdIPcG','2805nraaHM','project','1014146iQUIUX','2384jXwfCu','36blwEwH','12jHGuJt','16456anYPGo','8016oHQzAh','199448BhuaBT'];a205_0x4537=function(){return _0x4c0815;};return a205_0x4537();}const a205_0x21bfd3=a205_0x38bb;(function(_0x21096d,_0x3278a1){const _0x1a8dd6=a205_0x38bb,_0x4bdccc=_0x21096d();while(!![]){try{const _0x2628d2=parseInt(_0x1a8dd6(0x133))/0x1+-parseInt(_0x1a8dd6(0x13e))/0x2*(parseInt(_0x1a8dd6(0x136))/0x3)+-parseInt(_0x1a8dd6(0x134))/0x4*(parseInt(_0x1a8dd6(0x131))/0x5)+-parseInt(_0x1a8dd6(0x135))/0x6*(-parseInt(_0x1a8dd6(0x13a))/0x7)+parseInt(_0x1a8dd6(0x139))/0x8*(-parseInt(_0x1a8dd6(0x13b))/0x9)+parseInt(_0x1a8dd6(0x130))/0xa+-parseInt(_0x1a8dd6(0x137))/0xb*(-parseInt(_0x1a8dd6(0x138))/0xc);if(_0x2628d2===_0x3278a1)break;else _0x4bdccc['push'](_0x4bdccc['shift']());}catch(_0x4f3296){_0x4bdccc['push'](_0x4bdccc['shift']());}}}(a205_0x4537,0xc0570));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a205_0x17cb08,getMultiAppConfigs as a205_0x4d1896,getTemplateBaseUrl as a205_0x1a825b}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x4f14d1){const _0x539994=a205_0x38bb,_0x1df92b=readRawConfig(_0x4f14d1);return _0x1df92b[_0x539994(0x13d)]&&typeof _0x1df92b[_0x539994(0x13d)]===_0x539994(0x13c)&&initEnv(_0x1df92b[_0x539994(0x13d)]),_0x1df92b;}export function getConfigAppCode(){return a205_0x17cb08();}function a205_0x38bb(_0x273f2c,_0x5076a4){_0x273f2c=_0x273f2c-0x130;const _0x453741=a205_0x4537();let _0x38bb18=_0x453741[_0x273f2c];return _0x38bb18;}export function getMultiAppConfigs(_0x5e9386=a205_0x21bfd3(0x132)){return a205_0x4d1896(_0x5e9386);}export function getTemplateBaseUrl(){return a205_0x1a825b();}
@@ -1 +1 @@
1
- (function(_0x16b642,_0x46c1a3){const _0x3f43a5=a205_0x512e,_0x19c39d=_0x16b642();while(!![]){try{const _0x737539=parseInt(_0x3f43a5(0xf0))/0x1+-parseInt(_0x3f43a5(0xe6))/0x2*(-parseInt(_0x3f43a5(0xe5))/0x3)+-parseInt(_0x3f43a5(0xed))/0x4*(parseInt(_0x3f43a5(0xeb))/0x5)+-parseInt(_0x3f43a5(0xe4))/0x6+parseInt(_0x3f43a5(0xe1))/0x7*(parseInt(_0x3f43a5(0xee))/0x8)+parseInt(_0x3f43a5(0xe7))/0x9+parseInt(_0x3f43a5(0xe3))/0xa;if(_0x737539===_0x46c1a3)break;else _0x19c39d['push'](_0x19c39d['shift']());}catch(_0x59d006){_0x19c39d['push'](_0x19c39d['shift']());}}}(a205_0x343f,0x93437));import a205_0x4edf6 from'node:path';function a205_0x343f(){const _0x1eb47b=['join','4cjFkjr','588488UoyUDd','copyFileSync','265612nJTCrt','isDirectory','error','28oIOxPh','name','11930980PKrilH','6592236KXrNhZ','3QrXRWW','161596SbUThL','6565770fVHQZP','readdirSync','mkdirSync','复制目录时出错:','4306925qqiEfg'];a205_0x343f=function(){return _0x1eb47b;};return a205_0x343f();}function a205_0x512e(_0x15d2da,_0x4a36a6){_0x15d2da=_0x15d2da-0xe1;const _0x343f5b=a205_0x343f();let _0x512ec5=_0x343f5b[_0x15d2da];return _0x512ec5;}import a205_0x1a1a6c from'node:fs';export async function copyDirectory(_0x3f773e,_0x4adf24){const _0x69fb6c=a205_0x512e;try{const _0x1d32ce=a205_0x1a1a6c[_0x69fb6c(0xe8)](_0x3f773e,{'withFileTypes':!![]});a205_0x1a1a6c[_0x69fb6c(0xe9)](_0x4adf24,{'recursive':!![]});for(const _0x19322c of _0x1d32ce){const _0x3bea58=a205_0x4edf6[_0x69fb6c(0xec)](_0x3f773e,_0x19322c['name']),_0x39aca8=a205_0x4edf6[_0x69fb6c(0xec)](_0x4adf24,_0x19322c[_0x69fb6c(0xe2)]);_0x19322c[_0x69fb6c(0xf1)]()?await copyDirectory(_0x3bea58,_0x39aca8):a205_0x1a1a6c[_0x69fb6c(0xef)](_0x3bea58,_0x39aca8);}}catch(_0x347d1f){console[_0x69fb6c(0xf2)](_0x69fb6c(0xea),_0x347d1f);}}
1
+ function a206_0x2ac4(){const _0x70ac0a=['301KYegFH','join','3487479WXiVPr','copyFileSync','2860536eqalci','mkdirSync','4776930ZcYRqg','1656166CXFbNl','name','1299985WonsDg','159000HCnidb','11460610SVvYov','error','9XzucGc','1yNRKSJ','复制目录时出错:'];a206_0x2ac4=function(){return _0x70ac0a;};return a206_0x2ac4();}(function(_0x5734da,_0x41a770){const _0x4fc3ea=a206_0x1dbf,_0xbbf774=_0x5734da();while(!![]){try{const _0x2d229e=parseInt(_0x4fc3ea(0xc9))/0x1*(parseInt(_0x4fc3ea(0xc2))/0x2)+-parseInt(_0x4fc3ea(0xbd))/0x3+parseInt(_0x4fc3ea(0xbf))/0x4+-parseInt(_0x4fc3ea(0xc4))/0x5+parseInt(_0x4fc3ea(0xc1))/0x6+parseInt(_0x4fc3ea(0xbb))/0x7*(parseInt(_0x4fc3ea(0xc5))/0x8)+parseInt(_0x4fc3ea(0xc8))/0x9*(-parseInt(_0x4fc3ea(0xc6))/0xa);if(_0x2d229e===_0x41a770)break;else _0xbbf774['push'](_0xbbf774['shift']());}catch(_0x37938a){_0xbbf774['push'](_0xbbf774['shift']());}}}(a206_0x2ac4,0x98b26));function a206_0x1dbf(_0x579d8c,_0x58bc97){_0x579d8c=_0x579d8c-0xbb;const _0x2ac403=a206_0x2ac4();let _0x1dbf5b=_0x2ac403[_0x579d8c];return _0x1dbf5b;}import a206_0x2e267c from'node:path';import a206_0x313527 from'node:fs';export async function copyDirectory(_0x539fff,_0x46a554){const _0x44121b=a206_0x1dbf;try{const _0x11bc43=a206_0x313527['readdirSync'](_0x539fff,{'withFileTypes':!![]});a206_0x313527[_0x44121b(0xc0)](_0x46a554,{'recursive':!![]});for(const _0x368d30 of _0x11bc43){const _0x10e55a=a206_0x2e267c[_0x44121b(0xbc)](_0x539fff,_0x368d30[_0x44121b(0xc3)]),_0x5d4279=a206_0x2e267c['join'](_0x46a554,_0x368d30['name']);_0x368d30['isDirectory']()?await copyDirectory(_0x10e55a,_0x5d4279):a206_0x313527[_0x44121b(0xbe)](_0x10e55a,_0x5d4279);}}catch(_0x55eba8){console[_0x44121b(0xc7)](_0x44121b(0xca),_0x55eba8);}}
@@ -1 +1 @@
1
- (function(_0x113622,_0x463ef){const _0x351440=a206_0x519f,_0xb41d19=_0x113622();while(!![]){try{const _0x18fa3d=-parseInt(_0x351440(0x8b))/0x1*(parseInt(_0x351440(0x90))/0x2)+-parseInt(_0x351440(0x8c))/0x3+-parseInt(_0x351440(0x83))/0x4*(-parseInt(_0x351440(0x87))/0x5)+-parseInt(_0x351440(0x82))/0x6*(parseInt(_0x351440(0x91))/0x7)+-parseInt(_0x351440(0x8d))/0x8+parseInt(_0x351440(0x88))/0x9*(parseInt(_0x351440(0x8e))/0xa)+parseInt(_0x351440(0x8f))/0xb;if(_0x18fa3d===_0x463ef)break;else _0xb41d19['push'](_0xb41d19['shift']());}catch(_0x4a71a4){_0xb41d19['push'](_0xb41d19['shift']());}}}(a206_0x2ea5,0xe9253));function a206_0x2ea5(){const _0x2eba89=['49679mJyZWM','198MtuwUS','3943648QPBXzu','object','number','isFinite','5uugeHA','18RzwTEM','trim','string','305BenaiB','4527234HmdnTG','5047840yhbMUs','9024590DfGRKb','18023797BNfcBo','7214qjCumK'];a206_0x2ea5=function(){return _0x2eba89;};return a206_0x2ea5();}function a206_0x519f(_0x4463a7,_0x4d90ca){_0x4463a7=_0x4463a7-0x82;const _0x2ea5d3=a206_0x2ea5();let _0x519f14=_0x2ea5d3[_0x4463a7];return _0x519f14;}function toFiniteNumber(_0xcbc671){const _0xa1a74b=a206_0x519f;if(typeof _0xcbc671===_0xa1a74b(0x85)&&Number[_0xa1a74b(0x86)](_0xcbc671))return _0xcbc671;if(typeof _0xcbc671===_0xa1a74b(0x8a)){const _0x23145b=_0xcbc671[_0xa1a74b(0x89)]();if(!_0x23145b)return undefined;const _0x2392a4=Number(_0x23145b);if(Number[_0xa1a74b(0x86)](_0x2392a4))return _0x2392a4;}return undefined;}export function normalizeEntityWithIdResponse(_0x3612f8){const _0x379d6b=a206_0x519f,_0x16cca7=toFiniteNumber(_0x3612f8);if(_0x16cca7!==undefined)return{'id':_0x16cca7,'entity':{'id':_0x16cca7}};if(!_0x3612f8||typeof _0x3612f8!==_0x379d6b(0x84))return{'id':undefined,'entity':{}};const _0x1ef135={..._0x3612f8},_0x4b1887=toFiniteNumber(_0x1ef135['id']);return _0x4b1887!==undefined&&(_0x1ef135['id']=_0x4b1887),{'id':_0x4b1887,'entity':_0x1ef135};}
1
+ (function(_0x190ecb,_0x4c17c4){const _0x2a7102=a207_0x3979,_0x2855c4=_0x190ecb();while(!![]){try{const _0xef2ce1=parseInt(_0x2a7102(0x118))/0x1*(parseInt(_0x2a7102(0x11c))/0x2)+parseInt(_0x2a7102(0x122))/0x3*(parseInt(_0x2a7102(0x121))/0x4)+parseInt(_0x2a7102(0x120))/0x5+-parseInt(_0x2a7102(0x124))/0x6*(-parseInt(_0x2a7102(0x11e))/0x7)+parseInt(_0x2a7102(0x11d))/0x8*(-parseInt(_0x2a7102(0x116))/0x9)+-parseInt(_0x2a7102(0x117))/0xa*(-parseInt(_0x2a7102(0x11f))/0xb)+-parseInt(_0x2a7102(0x123))/0xc;if(_0xef2ce1===_0x4c17c4)break;else _0x2855c4['push'](_0x2855c4['shift']());}catch(_0x4b9618){_0x2855c4['push'](_0x2855c4['shift']());}}}(a207_0x29fe,0x2ae63));function toFiniteNumber(_0x1da8ab){const _0x100c9b=a207_0x3979;if(typeof _0x1da8ab==='number'&&Number[_0x100c9b(0x11a)](_0x1da8ab))return _0x1da8ab;if(typeof _0x1da8ab===_0x100c9b(0x11b)){const _0x5754eb=_0x1da8ab[_0x100c9b(0x115)]();if(!_0x5754eb)return undefined;const _0x9d8514=Number(_0x5754eb);if(Number[_0x100c9b(0x11a)](_0x9d8514))return _0x9d8514;}return undefined;}function a207_0x3979(_0x125a6a,_0x532265){_0x125a6a=_0x125a6a-0x115;const _0x29fe6f=a207_0x29fe();let _0x397967=_0x29fe6f[_0x125a6a];return _0x397967;}export function normalizeEntityWithIdResponse(_0x113932){const _0x4c8da2=a207_0x3979,_0x369465=toFiniteNumber(_0x113932);if(_0x369465!==undefined)return{'id':_0x369465,'entity':{'id':_0x369465}};if(!_0x113932||typeof _0x113932!==_0x4c8da2(0x119))return{'id':undefined,'entity':{}};const _0x3ccfea={..._0x113932},_0x5d335f=toFiniteNumber(_0x3ccfea['id']);return _0x5d335f!==undefined&&(_0x3ccfea['id']=_0x5d335f),{'id':_0x5d335f,'entity':_0x3ccfea};}function a207_0x29fe(){const _0xf1761c=['29nnYFQj','object','isFinite','string','16402MLyqdY','692488KTKOWn','5243QPOlRF','11oMQIxN','134400WWmuIE','18716IJfJWk','3ZhQaSr','6455196EzDdyX','2250mAuVbF','trim','9aCRhXr','2499460InaAPx'];a207_0x29fe=function(){return _0xf1761c;};return a207_0x29fe();}
@@ -1 +1 @@
1
- function a207_0x4a92(_0x22fc27,_0x1d2f2c){_0x22fc27=_0x22fc27-0x1eb;const _0x296e6a=a207_0x296e();let _0x4a92cd=_0x296e6a[_0x22fc27];return _0x4a92cd;}function a207_0x296e(){const _0x51f372=['isDirectory','3520hnITqD','140378hTOdFH','53875lautTY','1014jTOEUk','6282JRlnIR','602828gZfkoF','9HdzMrm','9790100owHSpI','3770iqKcDF','660958mudLNi'];a207_0x296e=function(){return _0x51f372;};return a207_0x296e();}(function(_0x223cfb,_0x2b4bc0){const _0x2eb73b=a207_0x4a92,_0x510f15=_0x223cfb();while(!![]){try{const _0xe2def9=parseInt(_0x2eb73b(0x1f1))/0x1+parseInt(_0x2eb73b(0x1ed))/0x2+-parseInt(_0x2eb73b(0x1f5))/0x3*(-parseInt(_0x2eb73b(0x1f4))/0x4)+parseInt(_0x2eb73b(0x1ec))/0x5*(parseInt(_0x2eb73b(0x1f2))/0x6)+parseInt(_0x2eb73b(0x1f0))/0x7+-parseInt(_0x2eb73b(0x1ef))/0x8*(-parseInt(_0x2eb73b(0x1f3))/0x9)+-parseInt(_0x2eb73b(0x1eb))/0xa;if(_0xe2def9===_0x2b4bc0)break;else _0x510f15['push'](_0x510f15['shift']());}catch(_0x10d62a){_0x510f15['push'](_0x510f15['shift']());}}}(a207_0x296e,0x4c301));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x581636,_0x29e313){const _0x16aaa9=a207_0x4a92,_0xeb7cf8=statSync(_0x581636);if(_0xeb7cf8[_0x16aaa9(0x1ee)]()){!existsSync(_0x29e313)&&mkdirSync(_0x29e313,{'recursive':!![]});const _0x4ac038=readdirSync(_0x581636);for(const _0x573b26 of _0x4ac038){await copyDir(join(_0x581636,_0x573b26),join(_0x29e313,_0x573b26));}}else copyFileSync(_0x581636,_0x29e313);}export function ensureDir(_0x567a5c){!existsSync(_0x567a5c)&&mkdirSync(_0x567a5c,{'recursive':!![]});}export function pathExists(_0x1a4b8f){return existsSync(_0x1a4b8f);}
1
+ (function(_0x1fd111,_0x43a98a){const _0x4b0eef=a208_0x1138,_0x42f44c=_0x1fd111();while(!![]){try{const _0x19fc93=-parseInt(_0x4b0eef(0x1bf))/0x1+-parseInt(_0x4b0eef(0x1c3))/0x2+parseInt(_0x4b0eef(0x1bd))/0x3*(parseInt(_0x4b0eef(0x1bb))/0x4)+parseInt(_0x4b0eef(0x1c0))/0x5+parseInt(_0x4b0eef(0x1c1))/0x6+parseInt(_0x4b0eef(0x1bc))/0x7+parseInt(_0x4b0eef(0x1c4))/0x8*(-parseInt(_0x4b0eef(0x1c2))/0x9);if(_0x19fc93===_0x43a98a)break;else _0x42f44c['push'](_0x42f44c['shift']());}catch(_0x3000d0){_0x42f44c['push'](_0x42f44c['shift']());}}}(a208_0x6ddf,0xb9ecc));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a208_0x1138(_0x5123b6,_0x3fa769){_0x5123b6=_0x5123b6-0x1bb;const _0x6ddfcd=a208_0x6ddf();let _0x1138db=_0x6ddfcd[_0x5123b6];return _0x1138db;}import{join}from'node:path';export async function copyDir(_0x353fed,_0x417355){const _0x4b313b=a208_0x1138,_0x4bbb2c=statSync(_0x353fed);if(_0x4bbb2c[_0x4b313b(0x1be)]()){!existsSync(_0x417355)&&mkdirSync(_0x417355,{'recursive':!![]});const _0x2dd1a8=readdirSync(_0x353fed);for(const _0x6eee91 of _0x2dd1a8){await copyDir(join(_0x353fed,_0x6eee91),join(_0x417355,_0x6eee91));}}else copyFileSync(_0x353fed,_0x417355);}export function ensureDir(_0x55ae3d){!existsSync(_0x55ae3d)&&mkdirSync(_0x55ae3d,{'recursive':!![]});}function a208_0x6ddf(){const _0x24182b=['32739JQZGeq','isDirectory','1193183WyIvuT','2905280MNYjmP','4987386pjJicz','261UfDANi','760756YTTogo','158520IwkvXQ','476pbbNvv','1391670BRWcoU'];a208_0x6ddf=function(){return _0x24182b;};return a208_0x6ddf();}export function pathExists(_0x44c112){return existsSync(_0x44c112);}
@@ -1 +1 @@
1
- const a208_0x3f4c12=a208_0x5593;(function(_0x46f971,_0x3d5619){const _0x593771=a208_0x5593,_0x405b0d=_0x46f971();while(!![]){try{const _0x3e6133=-parseInt(_0x593771(0x187))/0x1+parseInt(_0x593771(0x176))/0x2*(parseInt(_0x593771(0x17d))/0x3)+-parseInt(_0x593771(0x180))/0x4*(parseInt(_0x593771(0x17c))/0x5)+parseInt(_0x593771(0x174))/0x6*(parseInt(_0x593771(0x16c))/0x7)+-parseInt(_0x593771(0x16f))/0x8*(-parseInt(_0x593771(0x182))/0x9)+parseInt(_0x593771(0x16e))/0xa*(-parseInt(_0x593771(0x189))/0xb)+parseInt(_0x593771(0x181))/0xc;if(_0x3e6133===_0x3d5619)break;else _0x405b0d['push'](_0x405b0d['shift']());}catch(_0x344bba){_0x405b0d['push'](_0x405b0d['shift']());}}}(a208_0x55e4,0x80b57));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x5315b3=a208_0x5593,_0x4d51bc=getTemplateBaseUrl();return _0x4d51bc+_0x5315b3(0x184);}const CACHE_DIR=join(homedir(),'.lovrabet',a208_0x3f4c12(0x17a));export async function fetchGuidesFromCDN(){const _0x334ac1=a208_0x3f4c12,_0xa48139=getGuidesCdnUrl(),_0x339f1f=await fetch(_0xa48139,{'headers':{'Accept':_0x334ac1(0x175)}});if(!_0x339f1f['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x339f1f['status']+'\x20'+_0x339f1f[_0x334ac1(0x18d)]);const _0x4efb29=await _0x339f1f['json']();if(!_0x4efb29[_0x334ac1(0x17e)]||typeof _0x4efb29['guides']!==_0x334ac1(0x186))throw new Error('CDN\x20返回数据格式错误');return _0x4efb29;}export function writeGuidesToProject(_0x2cdb03,_0x13c0ff,_0x4e3301=a208_0x3f4c12(0x183),_0x4927e2){const _0x4a6030=a208_0x3f4c12,_0x2ec40a=join(_0x13c0ff,_0x4e3301);mkdirSync(_0x2ec40a,{'recursive':!![]});for(const [_0x2ebe40,_0x4719a1]of Object[_0x4a6030(0x177)](_0x2cdb03[_0x4a6030(0x17e)])){let _0x307734=_0x4719a1[_0x4a6030(0x17f)];_0x4719a1[_0x4a6030(0x170)]&&(_0x307734=appendUpdateTime(_0x307734,_0x4719a1[_0x4a6030(0x170)])),writeFileSync(join(_0x2ec40a,_0x2ebe40+_0x4a6030(0x18c)),_0x307734,'utf-8');}}function a208_0x55e4(){const _0x28c43b=['guides','content','7396hTBclS','1332924qqQEQD','1019295lbiAcu','.lovrabet/skill/guides','/skills/guides.json','extendContent','object','1007844GfTupz','length','964150TFLLTB','keys','push','.md','statusText','5798961jPmyFQ','replace','20wFZsKT','40LSbwYP','lastUpdated','skillTemplate','map','title','6qGcYvq','application/json','662SaGUrX','entries','trimEnd','path','cache','join','1945uLYFrz','8373eBSEql'];a208_0x55e4=function(){return _0x28c43b;};return a208_0x55e4();}export function appendUpdateTime(_0x46bef9,_0x44e09d){const _0x117e6c=a208_0x3f4c12;return _0x46bef9=_0x46bef9['replace'](/\n*>更新时间:.*$/m,''),_0x46bef9[_0x117e6c(0x178)]()+('\x0a\x0a>更新时间:'+_0x44e09d);}export function getSkillTemplate(_0x1fb5d5){const _0x1966b8=a208_0x3f4c12;return _0x1fb5d5[_0x1966b8(0x171)]?.[_0x1966b8(0x17f)]||'';}export function appendExtendContents(_0x2cff4c,_0x5bc3d4,_0x3a95b3){const _0x271f3e=a208_0x3f4c12,_0xa262ff=[];for(const [,_0x11fd95]of Object[_0x271f3e(0x177)](_0x5bc3d4['guides'])){_0x11fd95['extendContent']&&_0xa262ff[_0x271f3e(0x18b)](_0x11fd95[_0x271f3e(0x185)]['trimEnd']());}if(_0xa262ff[_0x271f3e(0x188)]===0x0)return _0x2cff4c;return _0x2cff4c['trimEnd']()+'\x0a\x0a'+_0xa262ff[_0x271f3e(0x17b)]('\x0a\x0a')+'\x0a';}function a208_0x5593(_0x3ccc98,_0x1c8340){_0x3ccc98=_0x3ccc98-0x16c;const _0x55e4ea=a208_0x55e4();let _0x559385=_0x55e4ea[_0x3ccc98];return _0x559385;}export function writeSkillFile(_0x3bbacb,_0x41f6b2,_0x403db7){const _0x5171c0=a208_0x3f4c12,_0x7ead50=getSkillTemplate(_0x3bbacb);if(!_0x7ead50)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x5d7ce7=dirname(_0x41f6b2);mkdirSync(_0x5d7ce7,{'recursive':!![]});let _0x110a8b=_0x7ead50[_0x5171c0(0x16d)](/\{\{IDE_NAME\}\}/g,_0x403db7);_0x110a8b=appendExtendContents(_0x110a8b,_0x3bbacb),_0x3bbacb[_0x5171c0(0x171)][_0x5171c0(0x170)]&&(_0x110a8b=appendUpdateTime(_0x110a8b,_0x3bbacb[_0x5171c0(0x171)][_0x5171c0(0x170)])),writeFileSync(_0x41f6b2,_0x110a8b,'utf-8');}export async function installGuides(_0x3089a3){const _0x1c36f0=a208_0x3f4c12,_0x6e73d4=await fetchGuidesFromCDN();return writeGuidesToProject(_0x6e73d4,_0x3089a3),Object[_0x1c36f0(0x18a)](_0x6e73d4[_0x1c36f0(0x17e)])[_0x1c36f0(0x188)];}export function getGuidesSummary(_0x2dfabc){const _0xc3d3b8=a208_0x3f4c12;return Object[_0xc3d3b8(0x177)](_0x2dfabc[_0xc3d3b8(0x17e)])[_0xc3d3b8(0x172)](([_0x707b75,_0x369aae])=>({'key':_0x707b75,'title':_0x369aae[_0xc3d3b8(0x173)],'path':_0x369aae[_0xc3d3b8(0x179)]}));}
1
+ const a209_0x27beea=a209_0x42b9;(function(_0x593826,_0x2ac3ba){const _0x56d867=a209_0x42b9,_0x12232e=_0x593826();while(!![]){try{const _0x5a6473=-parseInt(_0x56d867(0x17f))/0x1+parseInt(_0x56d867(0x17d))/0x2+parseInt(_0x56d867(0x189))/0x3+-parseInt(_0x56d867(0x187))/0x4*(-parseInt(_0x56d867(0x192))/0x5)+parseInt(_0x56d867(0x178))/0x6+-parseInt(_0x56d867(0x17e))/0x7*(-parseInt(_0x56d867(0x18e))/0x8)+parseInt(_0x56d867(0x186))/0x9*(-parseInt(_0x56d867(0x179))/0xa);if(_0x5a6473===_0x2ac3ba)break;else _0x12232e['push'](_0x12232e['shift']());}catch(_0x4b15bb){_0x12232e['push'](_0x12232e['shift']());}}}(a209_0x1ce6,0xf2646));function a209_0x42b9(_0x4e006d,_0x16517b){_0x4e006d=_0x4e006d-0x172;const _0x1ce63b=a209_0x1ce6();let _0x42b939=_0x1ce63b[_0x4e006d];return _0x42b939;}import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x380f0f=a209_0x42b9,_0x4065e1=getTemplateBaseUrl();return _0x4065e1+_0x380f0f(0x18f);}const CACHE_DIR=join(homedir(),'.lovrabet','cache');export async function fetchGuidesFromCDN(){const _0x68a0=a209_0x42b9,_0x35c612=getGuidesCdnUrl(),_0x357e62=await fetch(_0x35c612,{'headers':{'Accept':_0x68a0(0x193)}});if(!_0x357e62['ok'])throw new Error(_0x68a0(0x18c)+_0x357e62[_0x68a0(0x190)]+'\x20'+_0x357e62[_0x68a0(0x184)]);const _0x374b41=await _0x357e62['json']();if(!_0x374b41['guides']||typeof _0x374b41[_0x68a0(0x175)]!==_0x68a0(0x17c))throw new Error('CDN\x20返回数据格式错误');return _0x374b41;}export function writeGuidesToProject(_0x2bf6b3,_0x54651c,_0x46b907=a209_0x27beea(0x17a),_0x48bd18){const _0x5322c9=a209_0x27beea,_0xf9f790=join(_0x54651c,_0x46b907);mkdirSync(_0xf9f790,{'recursive':!![]});for(const [_0x4c2940,_0x239c9b]of Object[_0x5322c9(0x185)](_0x2bf6b3[_0x5322c9(0x175)])){let _0xd42c87=_0x239c9b[_0x5322c9(0x172)];_0x239c9b[_0x5322c9(0x18d)]&&(_0xd42c87=appendUpdateTime(_0xd42c87,_0x239c9b[_0x5322c9(0x18d)])),writeFileSync(join(_0xf9f790,_0x4c2940+_0x5322c9(0x18a)),_0xd42c87,'utf-8');}}export function appendUpdateTime(_0x3c9315,_0x5797a7){const _0x1fa8c9=a209_0x27beea;return _0x3c9315=_0x3c9315[_0x1fa8c9(0x188)](/\n*>更新时间:.*$/m,''),_0x3c9315['trimEnd']()+('\x0a\x0a>更新时间:'+_0x5797a7);}function a209_0x1ce6(){const _0x1aa03c=['status','length','20olPqep','application/json','push','content','join','path','guides','trimEnd','title','6319452wdnmkJ','53890BjBBGm','.lovrabet/skill/guides','extendContent','object','3218650brtqfI','2885547mtmhpw','913653KYwRLe','keys','map','skillTemplate','utf-8','statusText','entries','8487cKRxDd','1470688MhKcYe','replace','4855200NPfiDH','.md','CDN\x20数据中缺少\x20skillTemplate','CDN\x20请求失败:\x20','lastUpdated','24tkNwDA','/skills/guides.json'];a209_0x1ce6=function(){return _0x1aa03c;};return a209_0x1ce6();}export function getSkillTemplate(_0x1e2935){const _0x598cf7=a209_0x27beea;return _0x1e2935[_0x598cf7(0x182)]?.[_0x598cf7(0x172)]||'';}export function appendExtendContents(_0x33d25d,_0x3de922,_0x3eea34){const _0x312452=a209_0x27beea,_0x426e7f=[];for(const [,_0x1bb6ad]of Object[_0x312452(0x185)](_0x3de922[_0x312452(0x175)])){_0x1bb6ad[_0x312452(0x17b)]&&_0x426e7f[_0x312452(0x194)](_0x1bb6ad[_0x312452(0x17b)][_0x312452(0x176)]());}if(_0x426e7f[_0x312452(0x191)]===0x0)return _0x33d25d;return _0x33d25d[_0x312452(0x176)]()+'\x0a\x0a'+_0x426e7f[_0x312452(0x173)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x279f6e,_0x37c23c,_0x4fc7bb){const _0x5e021c=a209_0x27beea,_0x45e486=getSkillTemplate(_0x279f6e);if(!_0x45e486)throw new Error(_0x5e021c(0x18b));const _0x306291=dirname(_0x37c23c);mkdirSync(_0x306291,{'recursive':!![]});let _0x132644=_0x45e486[_0x5e021c(0x188)](/\{\{IDE_NAME\}\}/g,_0x4fc7bb);_0x132644=appendExtendContents(_0x132644,_0x279f6e),_0x279f6e[_0x5e021c(0x182)][_0x5e021c(0x18d)]&&(_0x132644=appendUpdateTime(_0x132644,_0x279f6e[_0x5e021c(0x182)]['lastUpdated'])),writeFileSync(_0x37c23c,_0x132644,_0x5e021c(0x183));}export async function installGuides(_0x55b8cc){const _0x2dd3bc=a209_0x27beea,_0x437798=await fetchGuidesFromCDN();return writeGuidesToProject(_0x437798,_0x55b8cc),Object[_0x2dd3bc(0x180)](_0x437798[_0x2dd3bc(0x175)])[_0x2dd3bc(0x191)];}export function getGuidesSummary(_0x46cb7d){const _0x27a2ee=a209_0x27beea;return Object[_0x27a2ee(0x185)](_0x46cb7d[_0x27a2ee(0x175)])[_0x27a2ee(0x181)](([_0x2f1ccd,_0x3b76c5])=>({'key':_0x2f1ccd,'title':_0x3b76c5[_0x27a2ee(0x177)],'path':_0x3b76c5[_0x27a2ee(0x174)]}));}
@@ -1 +1 @@
1
- (function(_0x4d0698,_0x584cc5){const _0x54a92e=a209_0x36da,_0x13687f=_0x4d0698();while(!![]){try{const _0x46cfae=parseInt(_0x54a92e(0x1bc))/0x1+parseInt(_0x54a92e(0x1d0))/0x2+-parseInt(_0x54a92e(0x1c5))/0x3+parseInt(_0x54a92e(0x1c1))/0x4+parseInt(_0x54a92e(0x1c9))/0x5*(parseInt(_0x54a92e(0x1c2))/0x6)+-parseInt(_0x54a92e(0x1d1))/0x7+-parseInt(_0x54a92e(0x1bd))/0x8;if(_0x46cfae===_0x584cc5)break;else _0x13687f['push'](_0x13687f['shift']());}catch(_0x10da1c){_0x13687f['push'](_0x13687f['shift']());}}}(a209_0x169d,0x7cba1));export async function httpRequest(_0x968b3,_0x10d629={}){const _0x258b88=a209_0x36da,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x10d629;let _0x3ad8e3=null;for(let _0x54576f=0x0;_0x54576f<=retries;_0x54576f++){try{const _0x55379d=new AbortController(),_0x2bc04b=setTimeout(()=>_0x55379d['abort'](),timeout),_0x509e62=await fetch(_0x968b3,{'headers':headers,'signal':_0x55379d[_0x258b88(0x1cf)]});clearTimeout(_0x2bc04b);let _0xefa946;const _0x3eb9ca=_0x509e62[_0x258b88(0x1c3)][_0x258b88(0x1ce)](_0x258b88(0x1b9));return _0x3eb9ca?.[_0x258b88(0x1cc)](_0x258b88(0x1ca))?_0xefa946=await _0x509e62[_0x258b88(0x1b7)]():_0xefa946=await _0x509e62[_0x258b88(0x1d2)](),{'ok':_0x509e62['ok'],'status':_0x509e62[_0x258b88(0x1cb)],'statusText':_0x509e62[_0x258b88(0x1c0)],'data':_0xefa946,'headers':_0x509e62['headers'],'url':_0x509e62[_0x258b88(0x1c8)],'text':()=>_0x509e62[_0x258b88(0x1d2)]()};}catch(_0x3cd4d7){_0x3ad8e3=_0x3cd4d7 instanceof Error?_0x3cd4d7:new Error(String(_0x3cd4d7));if(_0x54576f===retries)break;if(shouldRetry(_0x3cd4d7)){console[_0x258b88(0x1c4)](_0x258b88(0x1bf)+retryDelay+_0x258b88(0x1c7)+(_0x54576f+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x3ad8e3||new Error(_0x258b88(0x1be));}function a209_0x36da(_0x5d8856,_0x24c14c){_0x5d8856=_0x5d8856-0x1b7;const _0x169df=a209_0x169d();let _0x36da99=_0x169df[_0x5d8856];return _0x36da99;}function a209_0x169d(){const _0x35b9d8=['497735jUUehy','application/json','status','includes','message','get','signal','1884142gqHDUE','2827587DsWYKL','text','json','fetch','content-type','TypeError','ENOTFOUND','470818xFpjQD','7066864eUFNBo','Request\x20failed','*\x20请求失败,','statusText','1873920NvaNwA','48kIfGRG','headers','log','2638695leBjIx','AbortError','ms\x20后进行第\x20','url'];a209_0x169d=function(){return _0x35b9d8;};return a209_0x169d();}function shouldRetry(_0x4b0b57){const _0x5545f7=a209_0x36da;if(_0x4b0b57 instanceof Error){if(_0x4b0b57['name']===_0x5545f7(0x1c6))return![];if(_0x4b0b57['name']===_0x5545f7(0x1ba)&&_0x4b0b57['message'][_0x5545f7(0x1cc)](_0x5545f7(0x1b8)))return!![];if(_0x4b0b57[_0x5545f7(0x1cd)]['includes']('ECONNRESET'))return!![];if(_0x4b0b57['message'][_0x5545f7(0x1cc)](_0x5545f7(0x1bb)))return![];}return![];}function sleep(_0x4e53b3){return new Promise(_0x56797e=>setTimeout(_0x56797e,_0x4e53b3));}export function validateUrl(_0x1124aa){try{return new URL(_0x1124aa),!![];}catch{return![];}}
1
+ function a210_0x1517(_0x1362d7,_0x36e2b6){_0x1362d7=_0x1362d7-0x9e;const _0x402fb4=a210_0x402f();let _0x151725=_0x402fb4[_0x1362d7];return _0x151725;}function a210_0x402f(){const _0x40637f=['statusText','381ZVuwvL','9779464qjHRmp','8528238fdlXBC','text','application/json','ECONNRESET','url','get','ms\x20后进行第\x20','1636IrtgCr','\x20次重试...','headers','12rqCZpL','includes','24631580timUvB','content-type','129282JSUZpE','message','fetch','4bYBEsb','6184505ggsbuc','name','signal','791210EzQuTr'];a210_0x402f=function(){return _0x40637f;};return a210_0x402f();}(function(_0xf04419,_0x3dad00){const _0x5d440d=a210_0x1517,_0x13f3d8=_0xf04419();while(!![]){try{const _0x551108=parseInt(_0x5d440d(0xb5))/0x1+parseInt(_0x5d440d(0xae))/0x2*(-parseInt(_0x5d440d(0xa5))/0x3)+parseInt(_0x5d440d(0x9f))/0x4*(parseInt(_0x5d440d(0xa0))/0x5)+parseInt(_0x5d440d(0xb1))/0x6*(-parseInt(_0x5d440d(0xa3))/0x7)+parseInt(_0x5d440d(0xa6))/0x8+parseInt(_0x5d440d(0xa7))/0x9+-parseInt(_0x5d440d(0xb3))/0xa;if(_0x551108===_0x3dad00)break;else _0x13f3d8['push'](_0x13f3d8['shift']());}catch(_0x11f21e){_0x13f3d8['push'](_0x13f3d8['shift']());}}}(a210_0x402f,0xb56b6));export async function httpRequest(_0x405d9d,_0x5c1569={}){const _0x34d5d2=a210_0x1517,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x5c1569;let _0x2faae3=null;for(let _0x3e4b1c=0x0;_0x3e4b1c<=retries;_0x3e4b1c++){try{const _0x28b62e=new AbortController(),_0x1e928a=setTimeout(()=>_0x28b62e['abort'](),timeout),_0x45dc8b=await fetch(_0x405d9d,{'headers':headers,'signal':_0x28b62e[_0x34d5d2(0xa2)]});clearTimeout(_0x1e928a);let _0x3b4689;const _0x1083f3=_0x45dc8b[_0x34d5d2(0xb0)][_0x34d5d2(0xac)](_0x34d5d2(0xb4));return _0x1083f3?.[_0x34d5d2(0xb2)](_0x34d5d2(0xa9))?_0x3b4689=await _0x45dc8b['json']():_0x3b4689=await _0x45dc8b[_0x34d5d2(0xa8)](),{'ok':_0x45dc8b['ok'],'status':_0x45dc8b['status'],'statusText':_0x45dc8b[_0x34d5d2(0xa4)],'data':_0x3b4689,'headers':_0x45dc8b['headers'],'url':_0x45dc8b[_0x34d5d2(0xab)],'text':()=>_0x45dc8b[_0x34d5d2(0xa8)]()};}catch(_0x555c84){_0x2faae3=_0x555c84 instanceof Error?_0x555c84:new Error(String(_0x555c84));if(_0x3e4b1c===retries)break;if(shouldRetry(_0x555c84)){console['log']('*\x20请求失败,'+retryDelay+_0x34d5d2(0xad)+(_0x3e4b1c+0x1)+_0x34d5d2(0xaf)),await sleep(retryDelay);continue;}else break;}}throw _0x2faae3||new Error('Request\x20failed');}function shouldRetry(_0x2e0cf5){const _0x290901=a210_0x1517;if(_0x2e0cf5 instanceof Error){if(_0x2e0cf5[_0x290901(0xa1)]==='AbortError')return![];if(_0x2e0cf5[_0x290901(0xa1)]==='TypeError'&&_0x2e0cf5[_0x290901(0xb6)][_0x290901(0xb2)](_0x290901(0x9e)))return!![];if(_0x2e0cf5[_0x290901(0xb6)][_0x290901(0xb2)](_0x290901(0xaa)))return!![];if(_0x2e0cf5[_0x290901(0xb6)]['includes']('ENOTFOUND'))return![];}return![];}function sleep(_0x3edea6){return new Promise(_0xb5e3d8=>setTimeout(_0xb5e3d8,_0x3edea6));}export function validateUrl(_0x236da2){try{return new URL(_0x236da2),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a210_0x1421(){const _0x446508=['387tbDttE','isTTY','65944yBqNtH','true','967982KKceaB','stdin','108tFAnBr','setRawMode','256254MJGooD','19657WmmLtS','isRaw','4870drqGRR','2041764dmYVpT','7YINJXr','156136xnhnOu','stdout','5180935TLqgkr'];a210_0x1421=function(){return _0x446508;};return a210_0x1421();}(function(_0x998c22,_0x11dc95){const _0x14d54b=a210_0x1571,_0x329e86=_0x998c22();while(!![]){try{const _0x2236a3=-parseInt(_0x14d54b(0x8e))/0x1+parseInt(_0x14d54b(0x85))/0x2+parseInt(_0x14d54b(0x90))/0x3*(-parseInt(_0x14d54b(0x8c))/0x4)+parseInt(_0x14d54b(0x89))/0x5+parseInt(_0x14d54b(0x92))/0x6*(parseInt(_0x14d54b(0x86))/0x7)+parseInt(_0x14d54b(0x87))/0x8*(-parseInt(_0x14d54b(0x8a))/0x9)+parseInt(_0x14d54b(0x84))/0xa*(parseInt(_0x14d54b(0x82))/0xb);if(_0x2236a3===_0x11dc95)break;else _0x329e86['push'](_0x329e86['shift']());}catch(_0x3b5b5b){_0x329e86['push'](_0x329e86['shift']());}}}(a210_0x1421,0x8affa));function env(_0x268fd9){return process.env[`RABETBASE_${_0x268fd9}`]||process.env[`LOVRABET_${_0x268fd9}`]||undefined;}export function isNonInteractive(_0x67721a){const _0x2925b7=a210_0x1571;return!!(_0x67721a['nonInteractive']||_0x67721a['ci']||env('CI')==='true'||process.env.CI===_0x2925b7(0x8d)||!process[_0x2925b7(0x88)][_0x2925b7(0x8b)]||!isStdinRawModeSupported());}function a210_0x1571(_0x445321,_0x591561){_0x445321=_0x445321-0x82;const _0x1421e9=a210_0x1421();let _0x157176=_0x1421e9[_0x445321];return _0x157176;}function isStdinRawModeSupported(){const _0x5e74bd=a210_0x1571;if(!process[_0x5e74bd(0x8f)][_0x5e74bd(0x8b)])return![];try{const _0x3aec67=process[_0x5e74bd(0x8f)][_0x5e74bd(0x83)];return process[_0x5e74bd(0x8f)][_0x5e74bd(0x91)](!![]),process[_0x5e74bd(0x8f)][_0x5e74bd(0x91)](_0x3aec67??![]),!![];}catch{return![];}}
1
+ (function(_0x54f0af,_0x4a2d6e){const _0x43e49d=a211_0x34dc,_0x192287=_0x54f0af();while(!![]){try{const _0x237265=parseInt(_0x43e49d(0x1cd))/0x1*(parseInt(_0x43e49d(0x1d2))/0x2)+parseInt(_0x43e49d(0x1da))/0x3+-parseInt(_0x43e49d(0x1d4))/0x4+parseInt(_0x43e49d(0x1d0))/0x5*(parseInt(_0x43e49d(0x1db))/0x6)+-parseInt(_0x43e49d(0x1d1))/0x7+-parseInt(_0x43e49d(0x1cb))/0x8*(parseInt(_0x43e49d(0x1ce))/0x9)+parseInt(_0x43e49d(0x1d5))/0xa*(parseInt(_0x43e49d(0x1cc))/0xb);if(_0x237265===_0x4a2d6e)break;else _0x192287['push'](_0x192287['shift']());}catch(_0x7de419){_0x192287['push'](_0x192287['shift']());}}}(a211_0x9491,0x288ab));function env(_0x599424){return process.env[`RABETBASE_${_0x599424}`]||process.env[`LOVRABET_${_0x599424}`]||undefined;}export function isNonInteractive(_0x452291){const _0x11af13=a211_0x34dc;return!!(_0x452291['nonInteractive']||_0x452291['ci']||env('CI')===_0x11af13(0x1d7)||process.env.CI===_0x11af13(0x1d7)||!process[_0x11af13(0x1cf)][_0x11af13(0x1d3)]||!isStdinRawModeSupported());}function a211_0x9491(){const _0x32d693=['setRawMode','stdin','743865rFzSDT','12810HGOkiZ','1568UCJXBP','935KYUcGj','103BdXJtx','11466dIOnFy','stdout','685wUfBdC','2170434iJYcYd','1064pvBomz','isTTY','542564xfSHEn','31320zRlDXC','isRaw','true'];a211_0x9491=function(){return _0x32d693;};return a211_0x9491();}function a211_0x34dc(_0x4b42ea,_0x4b1c9d){_0x4b42ea=_0x4b42ea-0x1cb;const _0x9491eb=a211_0x9491();let _0x34dcdc=_0x9491eb[_0x4b42ea];return _0x34dcdc;}function isStdinRawModeSupported(){const _0x55315a=a211_0x34dc;if(!process['stdin'][_0x55315a(0x1d3)])return![];try{const _0x52938c=process['stdin'][_0x55315a(0x1d6)];return process[_0x55315a(0x1d9)][_0x55315a(0x1d8)](!![]),process[_0x55315a(0x1d9)][_0x55315a(0x1d8)](_0x52938c??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a211_0x125f73=a211_0x5702;function a211_0x5702(_0x632618,_0x5944d7){_0x632618=_0x632618-0x1ae;const _0x1b3a97=a211_0x1b3a();let _0x5702ce=_0x1b3a97[_0x632618];return _0x5702ce;}(function(_0xd380db,_0xaca134){const _0x537a8c=a211_0x5702,_0x50df41=_0xd380db();while(!![]){try{const _0x2b9e83=-parseInt(_0x537a8c(0x1c9))/0x1+parseInt(_0x537a8c(0x1bb))/0x2*(-parseInt(_0x537a8c(0x1dc))/0x3)+-parseInt(_0x537a8c(0x1d4))/0x4*(parseInt(_0x537a8c(0x1e0))/0x5)+parseInt(_0x537a8c(0x1b9))/0x6*(parseInt(_0x537a8c(0x1e6))/0x7)+parseInt(_0x537a8c(0x1b3))/0x8+-parseInt(_0x537a8c(0x1df))/0x9+parseInt(_0x537a8c(0x1cf))/0xa*(parseInt(_0x537a8c(0x1cb))/0xb);if(_0x2b9e83===_0xaca134)break;else _0x50df41['push'](_0x50df41['shift']());}catch(_0x15e4ce){_0x50df41['push'](_0x50df41['shift']());}}}(a211_0x1b3a,0x4357d));import a211_0x51ec50 from'winston';import a211_0x3fc0e0 from'node:fs';function a211_0x1b3a(){const _0x9057e6=['map','error','blue','combine','775eleNaS','File','14157GyfZkx','command','setRawCommand','logFilePath','7930WSiRjh','now','winstonLogger','rawCommand','format','4ZsJulP','stringify','initWinstonLogger','完成:\x20','warn','Failed\x20to\x20clear\x20logs:','details','clear','2391AAxxjM','开始执行:\x20','logTask','3221442oRQqwN','582205AjspCD','addColors','duration','unknown','info','parse','7XiuZOO','trim','errors','utf8','clearLogs','existsSync','1695232DplqgI','setLogPath','失败:\x20','getWinstonInstance','readLogs','success','56688LWJhWB','printf','1232ZnikBu','transports','mkdirSync','toISOString','join','green','writeFileSync','Failed\x20to\x20read\x20logs:','timestamp','red'];a211_0x1b3a=function(){return _0x9057e6;};return a211_0x1b3a();}import a211_0x3b84cf from'node:path';class Logger{[a211_0x125f73(0x1d1)];[a211_0x125f73(0x1ce)];['currentRawCommand']='';constructor(){const _0x162053=a211_0x125f73;this[_0x162053(0x1ce)]='';}[a211_0x125f73(0x1cd)](_0x415b3a){this['currentRawCommand']=_0x415b3a;}[a211_0x125f73(0x1d6)](){const _0xb58953=a211_0x125f73,_0x201031=a211_0x3b84cf['dirname'](this[_0xb58953(0x1ce)]);!a211_0x3fc0e0[_0xb58953(0x1b2)](_0x201031)&&a211_0x3fc0e0[_0xb58953(0x1bd)](_0x201031,{'recursive':!![]});const _0x64e68c=a211_0x51ec50[_0xb58953(0x1d3)][_0xb58953(0x1c8)](a211_0x51ec50[_0xb58953(0x1d3)][_0xb58953(0x1c3)](),a211_0x51ec50[_0xb58953(0x1d3)][_0xb58953(0x1af)]({'stack':!![]}),a211_0x51ec50['format'][_0xb58953(0x1ba)](_0x23aa86=>{const _0x19198e=_0xb58953,_0x3aecde={'timestamp':_0x23aa86[_0x19198e(0x1c3)]||new Date()[_0x19198e(0x1be)](),'level':_0x23aa86['level']||'info','command':_0x23aa86[_0x19198e(0x1cc)]||_0x19198e(0x1e3),'rawCommand':_0x23aa86[_0x19198e(0x1d2)]||this['currentRawCommand']||undefined,'message':_0x23aa86['message']||'','duration':_0x23aa86[_0x19198e(0x1e2)]||undefined,'details':_0x23aa86[_0x19198e(0x1da)]||undefined};return JSON[_0x19198e(0x1d5)](_0x3aecde);}));this[_0xb58953(0x1d1)]=a211_0x51ec50['createLogger']({'level':_0xb58953(0x1e4),'format':_0x64e68c,'transports':[new a211_0x51ec50[(_0xb58953(0x1bc))][(_0xb58953(0x1ca))]({'filename':this[_0xb58953(0x1ce)],'level':_0xb58953(0x1e4)})],'silent':![]}),a211_0x51ec50[_0xb58953(0x1e1)]({'success':_0xb58953(0x1c0),'error':_0xb58953(0x1c4),'warn':'yellow','info':_0xb58953(0x1c7)});}[a211_0x125f73(0x1b4)](_0x502fcf){const _0x488902=a211_0x125f73;this[_0x488902(0x1ce)]=a211_0x3b84cf[_0x488902(0x1bf)](_0x502fcf,'.lovrabet.log'),this[_0x488902(0x1d1)]&&this[_0x488902(0x1d1)][_0x488902(0x1db)](),this['initWinstonLogger']();}['info'](_0x24f904,_0x58b328,_0x59cf10){const _0x27d60f=a211_0x125f73;if(!this['logFilePath']||!this[_0x27d60f(0x1d1)])return;this[_0x27d60f(0x1d1)]['info'](_0x58b328,{'command':_0x24f904,'details':_0x59cf10});}[a211_0x125f73(0x1b8)](_0x185eb9,_0x307c7e,_0xb9d526,_0x1fdffc){const _0xea5841=a211_0x125f73;if(!this[_0xea5841(0x1ce)]||!this[_0xea5841(0x1d1)])return;this[_0xea5841(0x1d1)]['log']('info',_0x307c7e,{'level':_0xea5841(0x1b8),'command':_0x185eb9,'duration':_0xb9d526,'details':_0x1fdffc});}[a211_0x125f73(0x1c6)](_0x4f0362,_0x164125,_0x28b2b5){const _0x431cd5=a211_0x125f73;if(!this[_0x431cd5(0x1ce)]||!this['winstonLogger'])return;this['winstonLogger'][_0x431cd5(0x1c6)](_0x164125,{'command':_0x4f0362,'details':_0x28b2b5});}[a211_0x125f73(0x1d8)](_0x10e9c4,_0x27a6b8,_0x24bf94){const _0x3f601c=a211_0x125f73;if(!this['logFilePath']||!this[_0x3f601c(0x1d1)])return;this[_0x3f601c(0x1d1)][_0x3f601c(0x1d8)](_0x27a6b8,{'command':_0x10e9c4,'details':_0x24bf94});}async[a211_0x125f73(0x1de)](_0xf7ea0f,_0x23ce87,_0x3da65){const _0x2ea553=a211_0x125f73,_0xde125e=Date['now']();this['info'](_0xf7ea0f,_0x2ea553(0x1dd)+_0x23ce87);try{const _0x4c42fa=await _0x3da65(),_0x37baf4=Date[_0x2ea553(0x1d0)]()-_0xde125e;return this[_0x2ea553(0x1b8)](_0xf7ea0f,_0x2ea553(0x1d7)+_0x23ce87,_0x37baf4),_0x4c42fa;}catch(_0x3a5b7e){const _0x436102=Date[_0x2ea553(0x1d0)]()-_0xde125e;this[_0x2ea553(0x1c6)](_0xf7ea0f,_0x2ea553(0x1b5)+_0x23ce87,{'error':_0x3a5b7e instanceof Error?_0x3a5b7e['message']:String(_0x3a5b7e),'duration':_0x436102});throw _0x3a5b7e;}}[a211_0x125f73(0x1b7)](){const _0x15f491=a211_0x125f73;try{if(!a211_0x3fc0e0[_0x15f491(0x1b2)](this['logFilePath']))return[];const _0x1dd7a0=a211_0x3fc0e0['readFileSync'](this[_0x15f491(0x1ce)],_0x15f491(0x1b0));return _0x1dd7a0['split']('\x0a')['filter'](_0x43b716=>_0x43b716[_0x15f491(0x1ae)]())[_0x15f491(0x1c5)](_0x56185b=>JSON[_0x15f491(0x1e5)](_0x56185b));}catch(_0x158005){return console[_0x15f491(0x1d8)](_0x15f491(0x1c2),_0x158005),[];}}[a211_0x125f73(0x1b1)](){const _0x39bf24=a211_0x125f73;try{a211_0x3fc0e0[_0x39bf24(0x1b2)](this[_0x39bf24(0x1ce)])&&a211_0x3fc0e0[_0x39bf24(0x1c1)](this['logFilePath'],'',_0x39bf24(0x1b0));}catch(_0x10acf7){console['warn'](_0x39bf24(0x1d9),_0x10acf7);}}[a211_0x125f73(0x1b6)](){const _0x1d885d=a211_0x125f73;return this[_0x1d885d(0x1d1)];}}export const logger=new Logger();
1
+ function a212_0x3b98(){const _0x4dd324=['dirname','stringify','161270pdyveN','9930AykKRF','logFilePath','unknown','currentRawCommand','utf8','error','Failed\x20to\x20clear\x20logs:','success','details','logTask','toISOString','winstonLogger','clearLogs','rawCommand','now','map','setRawCommand','command','171hBnWgs','57074mgHQRZ','initWinstonLogger','clear','blue','File','404580vIItHs','mkdirSync','timestamp','readLogs','1320378TiiwVs','filter','getWinstonInstance','addColors','3149544alxuMo','readFileSync','log','existsSync','失败:\x20','createLogger','transports','7FtPonz','Failed\x20to\x20read\x20logs:','printf','setLogPath','108EkiEDl','level','36Kccfjr','format','5iPLaBS','开始执行:\x20','writeFileSync','join','warn','129027gkNSOO','yellow','message','.lovrabet.log','info'];a212_0x3b98=function(){return _0x4dd324;};return a212_0x3b98();}const a212_0x15d31d=a212_0x5026;(function(_0x53cf39,_0x1b71a4){const _0xe87f71=a212_0x5026,_0x5559c9=_0x53cf39();while(!![]){try{const _0x266018=-parseInt(_0xe87f71(0x209))/0x1*(parseInt(_0xe87f71(0x1ed))/0x2)+parseInt(_0xe87f71(0x20e))/0x3+parseInt(_0xe87f71(0x207))/0x4*(-parseInt(_0xe87f71(0x216))/0x5)+-parseInt(_0xe87f71(0x1f6))/0x6*(-parseInt(_0xe87f71(0x201))/0x7)+-parseInt(_0xe87f71(0x1fa))/0x8+-parseInt(_0xe87f71(0x1ec))/0x9*(-parseInt(_0xe87f71(0x215))/0xa)+-parseInt(_0xe87f71(0x1f2))/0xb*(-parseInt(_0xe87f71(0x205))/0xc);if(_0x266018===_0x1b71a4)break;else _0x5559c9['push'](_0x5559c9['shift']());}catch(_0x4fb710){_0x5559c9['push'](_0x5559c9['shift']());}}}(a212_0x3b98,0x5488d));function a212_0x5026(_0x518409,_0x45c860){_0x518409=_0x518409-0x1e2;const _0x3b98e2=a212_0x3b98();let _0x50263a=_0x3b98e2[_0x518409];return _0x50263a;}import a212_0xe98d1c from'winston';import a212_0x307293 from'node:fs';import a212_0x83f883 from'node:path';class Logger{['winstonLogger'];[a212_0x15d31d(0x217)];[a212_0x15d31d(0x219)]='';constructor(){this['logFilePath']='';}[a212_0x15d31d(0x1ea)](_0x3d0f26){const _0xfd86a=a212_0x15d31d;this[_0xfd86a(0x219)]=_0x3d0f26;}[a212_0x15d31d(0x1ee)](){const _0x549218=a212_0x15d31d,_0x21759e=a212_0x83f883[_0x549218(0x213)](this[_0x549218(0x217)]);!a212_0x307293[_0x549218(0x1fd)](_0x21759e)&&a212_0x307293[_0x549218(0x1f3)](_0x21759e,{'recursive':!![]});const _0xbe678b=a212_0xe98d1c[_0x549218(0x208)]['combine'](a212_0xe98d1c['format'][_0x549218(0x1f4)](),a212_0xe98d1c[_0x549218(0x208)]['errors']({'stack':!![]}),a212_0xe98d1c['format'][_0x549218(0x203)](_0x53d993=>{const _0x39a1e0=_0x549218,_0x2bdf88={'timestamp':_0x53d993[_0x39a1e0(0x1f4)]||new Date()[_0x39a1e0(0x1e4)](),'level':_0x53d993[_0x39a1e0(0x206)]||_0x39a1e0(0x212),'command':_0x53d993[_0x39a1e0(0x1eb)]||_0x39a1e0(0x218),'rawCommand':_0x53d993[_0x39a1e0(0x1e7)]||this[_0x39a1e0(0x219)]||undefined,'message':_0x53d993[_0x39a1e0(0x210)]||'','duration':_0x53d993['duration']||undefined,'details':_0x53d993[_0x39a1e0(0x1e2)]||undefined};return JSON[_0x39a1e0(0x214)](_0x2bdf88);}));this['winstonLogger']=a212_0xe98d1c[_0x549218(0x1ff)]({'level':_0x549218(0x212),'format':_0xbe678b,'transports':[new a212_0xe98d1c[(_0x549218(0x200))][(_0x549218(0x1f1))]({'filename':this[_0x549218(0x217)],'level':_0x549218(0x212)})],'silent':![]}),a212_0xe98d1c[_0x549218(0x1f9)]({'success':'green','error':'red','warn':_0x549218(0x20f),'info':_0x549218(0x1f0)});}[a212_0x15d31d(0x204)](_0x12ad66){const _0x2383e7=a212_0x15d31d;this[_0x2383e7(0x217)]=a212_0x83f883[_0x2383e7(0x20c)](_0x12ad66,_0x2383e7(0x211)),this[_0x2383e7(0x1e5)]&&this[_0x2383e7(0x1e5)][_0x2383e7(0x1ef)](),this[_0x2383e7(0x1ee)]();}['info'](_0x164578,_0x3b36d8,_0x3a8d91){const _0x522652=a212_0x15d31d;if(!this[_0x522652(0x217)]||!this[_0x522652(0x1e5)])return;this[_0x522652(0x1e5)][_0x522652(0x212)](_0x3b36d8,{'command':_0x164578,'details':_0x3a8d91});}[a212_0x15d31d(0x21d)](_0x42efc4,_0x598252,_0x3212ac,_0x503516){const _0x41e7aa=a212_0x15d31d;if(!this[_0x41e7aa(0x217)]||!this[_0x41e7aa(0x1e5)])return;this[_0x41e7aa(0x1e5)][_0x41e7aa(0x1fc)]('info',_0x598252,{'level':_0x41e7aa(0x21d),'command':_0x42efc4,'duration':_0x3212ac,'details':_0x503516});}[a212_0x15d31d(0x21b)](_0x58154e,_0x3d32d2,_0x5cdcc2){const _0x3d81cc=a212_0x15d31d;if(!this[_0x3d81cc(0x217)]||!this[_0x3d81cc(0x1e5)])return;this[_0x3d81cc(0x1e5)][_0x3d81cc(0x21b)](_0x3d32d2,{'command':_0x58154e,'details':_0x5cdcc2});}[a212_0x15d31d(0x20d)](_0x44a261,_0x45af6a,_0x265bd9){const _0x13716f=a212_0x15d31d;if(!this['logFilePath']||!this[_0x13716f(0x1e5)])return;this['winstonLogger']['warn'](_0x45af6a,{'command':_0x44a261,'details':_0x265bd9});}async[a212_0x15d31d(0x1e3)](_0x328050,_0x374ba8,_0x3ce336){const _0x26e5e7=a212_0x15d31d,_0x2ded04=Date[_0x26e5e7(0x1e8)]();this[_0x26e5e7(0x212)](_0x328050,_0x26e5e7(0x20a)+_0x374ba8);try{const _0x20b29e=await _0x3ce336(),_0x232dd6=Date['now']()-_0x2ded04;return this[_0x26e5e7(0x21d)](_0x328050,'完成:\x20'+_0x374ba8,_0x232dd6),_0x20b29e;}catch(_0x1afe8e){const _0x51583a=Date['now']()-_0x2ded04;this['error'](_0x328050,_0x26e5e7(0x1fe)+_0x374ba8,{'error':_0x1afe8e instanceof Error?_0x1afe8e['message']:String(_0x1afe8e),'duration':_0x51583a});throw _0x1afe8e;}}[a212_0x15d31d(0x1f5)](){const _0x4e8929=a212_0x15d31d;try{if(!a212_0x307293['existsSync'](this[_0x4e8929(0x217)]))return[];const _0x284dc4=a212_0x307293[_0x4e8929(0x1fb)](this[_0x4e8929(0x217)],_0x4e8929(0x21a));return _0x284dc4['split']('\x0a')[_0x4e8929(0x1f7)](_0x2aae7e=>_0x2aae7e['trim']())[_0x4e8929(0x1e9)](_0xc2b0d2=>JSON['parse'](_0xc2b0d2));}catch(_0x4ab737){return console[_0x4e8929(0x20d)](_0x4e8929(0x202),_0x4ab737),[];}}[a212_0x15d31d(0x1e6)](){const _0x2b2224=a212_0x15d31d;try{a212_0x307293[_0x2b2224(0x1fd)](this['logFilePath'])&&a212_0x307293[_0x2b2224(0x20b)](this['logFilePath'],'',_0x2b2224(0x21a));}catch(_0x15a6d7){console['warn'](_0x2b2224(0x21c),_0x15a6d7);}}[a212_0x15d31d(0x1f8)](){const _0x552922=a212_0x15d31d;return this[_0x552922(0x1e5)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- function a212_0x46ab(){const _0xa6ccef=['36hzNSAb','object','2385016JwibdA','--params\x20must\x20be\x20a\x20JSON\x20object','99379UCwwOr','2666620iLWVyE','264676nKeCGV','1562148ZgiVGI','validation','Invalid\x20JSON\x20for\x20--params:\x20','5iHcOaf','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','isArray','1NdbTJs','385468xYIPKp','parse','4662081xkgmRq'];a212_0x46ab=function(){return _0xa6ccef;};return a212_0x46ab();}(function(_0x32615e,_0x44ddee){const _0x77684e=a212_0x3630,_0x28073f=_0x32615e();while(!![]){try{const _0x193c33=-parseInt(_0x77684e(0x117))/0x1*(parseInt(_0x77684e(0x118))/0x2)+parseInt(_0x77684e(0x111))/0x3+-parseInt(_0x77684e(0x110))/0x4*(parseInt(_0x77684e(0x114))/0x5)+-parseInt(_0x77684e(0x11b))/0x6*(-parseInt(_0x77684e(0x10e))/0x7)+parseInt(_0x77684e(0x10c))/0x8+-parseInt(_0x77684e(0x11a))/0x9+parseInt(_0x77684e(0x10f))/0xa;if(_0x193c33===_0x44ddee)break;else _0x28073f['push'](_0x28073f['shift']());}catch(_0x2f463a){_0x28073f['push'](_0x28073f['shift']());}}}(a212_0x46ab,0x6022f));import{CliErrors}from'../errors.js';function a212_0x3630(_0x11474e,_0x1fa372){_0x11474e=_0x11474e-0x10b;const _0x46abe0=a212_0x46ab();let _0x3630aa=_0x46abe0[_0x11474e];return _0x3630aa;}export function parseJsonParams(_0x4ce024){const _0x200bf7=a212_0x3630;if(!_0x4ce024)return undefined;let _0x5a5c6a;try{_0x5a5c6a=JSON[_0x200bf7(0x119)](_0x4ce024);}catch{throw CliErrors[_0x200bf7(0x112)](_0x200bf7(0x113)+_0x4ce024);}if(!_0x5a5c6a||typeof _0x5a5c6a!==_0x200bf7(0x10b)||Array[_0x200bf7(0x116)](_0x5a5c6a))throw CliErrors['validation'](_0x200bf7(0x10d),_0x200bf7(0x115));return _0x5a5c6a;}
1
+ (function(_0x4859a4,_0x3cd671){const _0x407526=a213_0x55d0,_0x31dc3c=_0x4859a4();while(!![]){try{const _0x3725b3=parseInt(_0x407526(0x1ea))/0x1+-parseInt(_0x407526(0x1ec))/0x2*(-parseInt(_0x407526(0x1e9))/0x3)+-parseInt(_0x407526(0x1ee))/0x4+-parseInt(_0x407526(0x1eb))/0x5+-parseInt(_0x407526(0x1e8))/0x6+parseInt(_0x407526(0x1ed))/0x7*(parseInt(_0x407526(0x1f0))/0x8)+parseInt(_0x407526(0x1e6))/0x9;if(_0x3725b3===_0x3cd671)break;else _0x31dc3c['push'](_0x31dc3c['shift']());}catch(_0x1598bf){_0x31dc3c['push'](_0x31dc3c['shift']());}}}(a213_0x3baa,0xb9bad));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x9a59f9){const _0xc1b305=a213_0x55d0;if(!_0x9a59f9)return undefined;let _0x3cdbe0;try{_0x3cdbe0=JSON[_0xc1b305(0x1f3)](_0x9a59f9);}catch{throw CliErrors['validation'](_0xc1b305(0x1ef)+_0x9a59f9);}if(!_0x3cdbe0||typeof _0x3cdbe0!==_0xc1b305(0x1f1)||Array['isArray'](_0x3cdbe0))throw CliErrors[_0xc1b305(0x1f4)](_0xc1b305(0x1e7),_0xc1b305(0x1f2));return _0x3cdbe0;}function a213_0x55d0(_0x32ed04,_0x4fd049){_0x32ed04=_0x32ed04-0x1e6;const _0x3baacc=a213_0x3baa();let _0x55d017=_0x3baacc[_0x32ed04];return _0x55d017;}function a213_0x3baa(){const _0xdbb5e1=['parse','validation','6565563tOJJIG','--params\x20must\x20be\x20a\x20JSON\x20object','1257324fAmrsu','18qZutCL','86508ZSaUPo','2358895MDdbbB','241354gDIzDz','7WRInnJ','5672756rOyDEk','Invalid\x20JSON\x20for\x20--params:\x20','10561552SMPIza','object','Example:\x20--params\x20\x27{\x22id\x22:123}\x27'];a213_0x3baa=function(){return _0xdbb5e1;};return a213_0x3baa();}
@@ -1 +1 @@
1
- function a213_0x2e12(_0x47949b,_0x31dd8f){_0x47949b=_0x47949b-0x7d;const _0x2d7357=a213_0x2d73();let _0x2e1205=_0x2d7357[_0x47949b];return _0x2e1205;}const a213_0x2adcc6=a213_0x2e12;(function(_0x540b18,_0x22f562){const _0xd01771=a213_0x2e12,_0x2506fd=_0x540b18();while(!![]){try{const _0x18aff2=parseInt(_0xd01771(0x86))/0x1*(-parseInt(_0xd01771(0x82))/0x2)+-parseInt(_0xd01771(0x8a))/0x3*(-parseInt(_0xd01771(0x7d))/0x4)+parseInt(_0xd01771(0x7f))/0x5*(parseInt(_0xd01771(0x84))/0x6)+parseInt(_0xd01771(0x7e))/0x7+parseInt(_0xd01771(0x8b))/0x8*(-parseInt(_0xd01771(0x85))/0x9)+-parseInt(_0xd01771(0x80))/0xa*(parseInt(_0xd01771(0x87))/0xb)+parseInt(_0xd01771(0x89))/0xc*(parseInt(_0xd01771(0x81))/0xd);if(_0x18aff2===_0x22f562)break;else _0x2506fd['push'](_0x2506fd['shift']());}catch(_0x5454f4){_0x2506fd['push'](_0x2506fd['shift']());}}}(a213_0x2d73,0x1e8bd));export const isWindows=process[a213_0x2adcc6(0x83)]===a213_0x2adcc6(0x88);function a213_0x2d73(){const _0x5e163e=['8543TzSDRX','49379TgmVgc','win32','47868PlVyVe','183oLXmjV','248IEKkID','10940QrYozs','504826IcsyQY','670tDvFFj','230gmtOPJ','481zDpcUi','34vQvYTJ','platform','5826MBymyr','41535qVfvYU'];a213_0x2d73=function(){return _0x5e163e;};return a213_0x2d73();}export function resolveNpmBin(_0x34a6c0){return isWindows?_0x34a6c0+'.cmd':_0x34a6c0;}
1
+ const a214_0x466007=a214_0x4c2f;(function(_0x2eff49,_0x4ce57a){const _0x5ad0df=a214_0x4c2f,_0x5220b6=_0x2eff49();while(!![]){try{const _0x4d6493=parseInt(_0x5ad0df(0x1dd))/0x1*(-parseInt(_0x5ad0df(0x1d6))/0x2)+parseInt(_0x5ad0df(0x1e2))/0x3*(parseInt(_0x5ad0df(0x1da))/0x4)+-parseInt(_0x5ad0df(0x1dc))/0x5+-parseInt(_0x5ad0df(0x1e0))/0x6*(-parseInt(_0x5ad0df(0x1d7))/0x7)+-parseInt(_0x5ad0df(0x1e3))/0x8+-parseInt(_0x5ad0df(0x1db))/0x9+parseInt(_0x5ad0df(0x1df))/0xa*(parseInt(_0x5ad0df(0x1d9))/0xb);if(_0x4d6493===_0x4ce57a)break;else _0x5220b6['push'](_0x5220b6['shift']());}catch(_0x314b60){_0x5220b6['push'](_0x5220b6['shift']());}}}(a214_0x266e,0xd6622));export const isWindows=process[a214_0x466007(0x1de)]===a214_0x466007(0x1e1);function a214_0x266e(){const _0x3df029=['82809hEnExX','8430400PiaMGa','848879kYvhjv','platform','145270uqEwih','17154npSvbK','win32','3uNoZRQ','145216wvThqY','2ZwTFry','1995MOFNty','.cmd','1716tSNbnS','1437596cPyqbk'];a214_0x266e=function(){return _0x3df029;};return a214_0x266e();}function a214_0x4c2f(_0x4215c9,_0x1d73a2){_0x4215c9=_0x4215c9-0x1d6;const _0x266e84=a214_0x266e();let _0x4c2f91=_0x266e84[_0x4215c9];return _0x4c2f91;}export function resolveNpmBin(_0x385af8){const _0x371938=a214_0x466007;return isWindows?_0x385af8+_0x371938(0x1d8):_0x385af8;}
@@ -1 +1 @@
1
- (function(_0x4ce776,_0x2689cd){const _0x540e5e=a214_0x1655,_0x42646b=_0x4ce776();while(!![]){try{const _0x1d0db7=-parseInt(_0x540e5e(0x131))/0x1*(parseInt(_0x540e5e(0x133))/0x2)+-parseInt(_0x540e5e(0x136))/0x3*(parseInt(_0x540e5e(0x138))/0x4)+parseInt(_0x540e5e(0x132))/0x5*(parseInt(_0x540e5e(0x13b))/0x6)+-parseInt(_0x540e5e(0x13d))/0x7+parseInt(_0x540e5e(0x13c))/0x8*(-parseInt(_0x540e5e(0x134))/0x9)+-parseInt(_0x540e5e(0x12e))/0xa+parseInt(_0x540e5e(0x139))/0xb*(parseInt(_0x540e5e(0x12c))/0xc);if(_0x1d0db7===_0x2689cd)break;else _0x42646b['push'](_0x42646b['shift']());}catch(_0x55c6bb){_0x42646b['push'](_0x42646b['shift']());}}}(a214_0x15a7,0x86656));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';function a214_0x15a7(){const _0x5ac9ad=['334120LHDHRh','66EndKEN','lovrabet_rules.mdc','12sGUUJU','8gvZRTq','1624154bmAsfq','catch','/rules/rules.json','status','content','application/json','7276368TFbCue','.cursor/rules','10666000JShlzh','lastUpdated','utf-8','10YrFJeI','667330WqViQx','171092PlQsZT','5542542tWMLUm','json','21dSJfCX','agents.md'];a214_0x15a7=function(){return _0x5ac9ad;};return a214_0x15a7();}import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x974bca=a214_0x1655,_0x111e2a=getTemplateBaseUrl();return _0x111e2a+_0x974bca(0x13f);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x85849b=a214_0x1655,_0x1e3354=getRulesCdnUrl(),_0x58b5b9=await fetch(_0x1e3354,{'headers':{'Accept':_0x85849b(0x12b)}});if(!_0x58b5b9['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x58b5b9[_0x85849b(0x140)]+'\x20'+_0x58b5b9['statusText']);const _0x56c69e=await _0x58b5b9[_0x85849b(0x135)]();if(!_0x56c69e[_0x85849b(0x141)]||typeof _0x56c69e[_0x85849b(0x141)]!=='string')throw new Error('CDN\x20返回数据格式错误');return _0x56c69e;}export async function getRulesContent(){const _0x52cc7a=a214_0x1655;try{const _0x49a488=await fetchRulesFromCDN();return _0x49a488[_0x52cc7a(0x141)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x340bcd=a214_0x1655;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x340bcd(0x130));throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}function a214_0x1655(_0x3da2e0,_0x3a7b79){_0x3da2e0=_0x3da2e0-0x12b;const _0x15a750=a214_0x15a7();let _0x16559f=_0x15a750[_0x3da2e0];return _0x16559f;}export async function writeRulesFile(_0x316cba){const _0x10dc33=a214_0x1655,_0xf9e9d6=await fetchRulesFromCDN()[_0x10dc33(0x13e)](()=>null);let _0x532b42;_0xf9e9d6?(_0x532b42=_0xf9e9d6[_0x10dc33(0x141)],_0xf9e9d6[_0x10dc33(0x12f)]&&(_0x532b42=appendUpdateTime(_0x532b42,_0xf9e9d6['lastUpdated']))):_0x532b42=readLocalTemplate();const _0x2f6ba8=dirname(_0x316cba);!existsSync(_0x2f6ba8)&&mkdirSync(_0x2f6ba8,{'recursive':!![]}),writeFileSync(_0x316cba,_0x532b42,'utf-8');}export async function copyRulesToCursor(_0x52d7b5){const _0x28a2cd=a214_0x1655,_0x4b01b5=join(_0x52d7b5,_0x28a2cd(0x12d)),_0x22a665=join(_0x4b01b5,_0x28a2cd(0x13a));if(existsSync(_0x22a665))return![];return await writeRulesFile(_0x22a665),!![];}export async function copyRulesToAgentsMd(_0x163483){const _0x334a77=a214_0x1655,_0x2309bb=join(_0x163483,_0x334a77(0x137));if(existsSync(_0x2309bb))return![];return await writeRulesFile(_0x2309bb),!![];}
1
+ const a215_0xbb410a=a215_0x2e47;(function(_0x1af119,_0x103d6b){const _0x39ee92=a215_0x2e47,_0x68ba57=_0x1af119();while(!![]){try{const _0x3058c7=parseInt(_0x39ee92(0x116))/0x1*(-parseInt(_0x39ee92(0x11e))/0x2)+parseInt(_0x39ee92(0x115))/0x3*(-parseInt(_0x39ee92(0x128))/0x4)+-parseInt(_0x39ee92(0x122))/0x5*(parseInt(_0x39ee92(0x12e))/0x6)+parseInt(_0x39ee92(0x123))/0x7*(-parseInt(_0x39ee92(0x129))/0x8)+-parseInt(_0x39ee92(0x12b))/0x9*(-parseInt(_0x39ee92(0x11b))/0xa)+parseInt(_0x39ee92(0x11d))/0xb+-parseInt(_0x39ee92(0x120))/0xc*(-parseInt(_0x39ee92(0x117))/0xd);if(_0x3058c7===_0x103d6b)break;else _0x68ba57['push'](_0x68ba57['shift']());}catch(_0x1ce3e8){_0x68ba57['push'](_0x68ba57['shift']());}}}(a215_0x3eea,0x5073d));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';function a215_0x2e47(_0x5187bc,_0x25753d){_0x5187bc=_0x5187bc-0x115;const _0x3eea55=a215_0x3eea();let _0x2e47c1=_0x3eea55[_0x5187bc];return _0x2e47c1;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x2cc48e=a215_0x2e47,_0x48a758=getTemplateBaseUrl();return _0x48a758+_0x2cc48e(0x119);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a215_0xbb410a(0x126));export async function fetchRulesFromCDN(){const _0xb24caa=a215_0xbb410a,_0x490b24=getRulesCdnUrl(),_0x4e9b9b=await fetch(_0x490b24,{'headers':{'Accept':_0xb24caa(0x11c)}});if(!_0x4e9b9b['ok'])throw new Error(_0xb24caa(0x124)+_0x4e9b9b[_0xb24caa(0x12f)]+'\x20'+_0x4e9b9b[_0xb24caa(0x12d)]);const _0x587a12=await _0x4e9b9b['json']();if(!_0x587a12[_0xb24caa(0x11a)]||typeof _0x587a12[_0xb24caa(0x11a)]!=='string')throw new Error(_0xb24caa(0x125));return _0x587a12;}export async function getRulesContent(){try{const _0x51e9ee=await fetchRulesFromCDN();return _0x51e9ee['content'];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x48d016=a215_0xbb410a;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x48d016(0x118));throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0xb71e4b){const _0x499782=a215_0xbb410a,_0x2ae21d=await fetchRulesFromCDN()[_0x499782(0x121)](()=>null);let _0x45e9e7;_0x2ae21d?(_0x45e9e7=_0x2ae21d[_0x499782(0x11a)],_0x2ae21d[_0x499782(0x12a)]&&(_0x45e9e7=appendUpdateTime(_0x45e9e7,_0x2ae21d[_0x499782(0x12a)]))):_0x45e9e7=readLocalTemplate();const _0x213e26=dirname(_0xb71e4b);!existsSync(_0x213e26)&&mkdirSync(_0x213e26,{'recursive':!![]}),writeFileSync(_0xb71e4b,_0x45e9e7,_0x499782(0x118));}function a215_0x3eea(){const _0xae4035=['lastUpdated','2013876VJSueX','lovrabet_rules.mdc','statusText','6KqDZKO','status','75456cHlgWt','92094xNVgNa','4091607fxHbRz','utf-8','/rules/rules.json','content','10iwfXri','application/json','1729343FvjJmn','2zBlEXu','agents.md','36kfXpfa','catch','177305LtzJWi','7tsUaYT','CDN\x20请求失败:\x20','CDN\x20返回数据格式错误','../../templates/rules/lovrabet_rules.mdc.tpl','.cursor/rules','48jxZLXr','4530256nfRTWS'];a215_0x3eea=function(){return _0xae4035;};return a215_0x3eea();}export async function copyRulesToCursor(_0x174c36){const _0xb20130=a215_0xbb410a,_0x558af3=join(_0x174c36,_0xb20130(0x127)),_0x49ee1a=join(_0x558af3,_0xb20130(0x12c));if(existsSync(_0x49ee1a))return![];return await writeRulesFile(_0x49ee1a),!![];}export async function copyRulesToAgentsMd(_0xd50caa){const _0x1803e0=a215_0xbb410a,_0x4c3061=join(_0xd50caa,_0x1803e0(0x11f));if(existsSync(_0x4c3061))return![];return await writeRulesFile(_0x4c3061),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x1fb731){return new Promise(_0x11ed90=>setTimeout(_0x11ed90,_0x1fb731));}
1
+ export function sleep(_0x45c90f){return new Promise(_0x3f1276=>setTimeout(_0x3f1276,_0x45c90f));}
@@ -1 +1 @@
1
- const a216_0x49234e=a216_0x1ad8;(function(_0x161e37,_0xba05e3){const _0x2cc21e=a216_0x1ad8,_0x42f019=_0x161e37();while(!![]){try{const _0x452c49=-parseInt(_0x2cc21e(0xed))/0x1*(parseInt(_0x2cc21e(0x10d))/0x2)+parseInt(_0x2cc21e(0x103))/0x3+parseInt(_0x2cc21e(0xec))/0x4*(parseInt(_0x2cc21e(0x114))/0x5)+parseInt(_0x2cc21e(0x116))/0x6+-parseInt(_0x2cc21e(0x10b))/0x7*(-parseInt(_0x2cc21e(0x115))/0x8)+-parseInt(_0x2cc21e(0x104))/0x9+-parseInt(_0x2cc21e(0xff))/0xa;if(_0x452c49===_0xba05e3)break;else _0x42f019['push'](_0x42f019['shift']());}catch(_0x4f73f9){_0x42f019['push'](_0x42f019['shift']());}}}(a216_0x22f1,0x29b70));import a216_0x561444 from'node:fs';import a216_0x523276 from'node:path';import{logger}from'../utils/logger.js';function a216_0x22f1(){const _0x5348e7=['58260hAXNco','8arBgOk','115152ghgsyt','YourModel','replaceApiContent','processDirectory','toUpperCase','map','getMonth','replaceContent','\x20},','template','getSeconds','模板内容替换失败','.js','now','extname','name','toLowerCase','.tpl','push','.jsx','.css','.tsx','getDate','getMinutes','readdir','108UrRFDY','8wFdlGh','info','toComponentName','success','writeFile','toDisplayTitle','promises','processFile','getFullYear','replace','模板内容替换完成','.scss','endsWith','split','copyFile','\x0a\x20\x20\x20\x20{\x20','alias:\x20\x22','name:\x20\x22','649610XxNKQi','join','getHours','includes','917634Ikybgl','2363346MAITsA','.json','isFile','mkdir','message','processTemplate','开始处理模板内容替换','922103CDXTHl','charAt','68246hFBWXx','LOVRABET','alias','readFile','pad','pop','.ts'];a216_0x22f1=function(){return _0x5348e7;};return a216_0x22f1();}import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a216_0x1ad8(_0x31fcc0,_0x3dddab){_0x31fcc0=_0x31fcc0-0xda;const _0x22f19e=a216_0x22f1();let _0x1ad833=_0x22f19e[_0x31fcc0];return _0x1ad833;}export class TemplateReplacer{static[a216_0x49234e(0x111)](_0x42da7f){return String(_0x42da7f)['padStart'](0x2,'0');}static['formatLocalTimestamp'](_0x2e7a71){const _0x30a02f=a216_0x49234e,_0x4a76ad=_0x2e7a71[_0x30a02f(0xf5)](),_0x15ace4=this[_0x30a02f(0x111)](_0x2e7a71[_0x30a02f(0x11c)]()+0x1),_0x49b97d=this[_0x30a02f(0x111)](_0x2e7a71[_0x30a02f(0xe9)]()),_0x38d670=this[_0x30a02f(0x111)](_0x2e7a71[_0x30a02f(0x101)]()),_0x329415=this[_0x30a02f(0x111)](_0x2e7a71[_0x30a02f(0xea)]()),_0x38e6f2=this['pad'](_0x2e7a71[_0x30a02f(0xdd)]());return{'createdAt':_0x4a76ad+'-'+_0x15ace4+'-'+_0x49b97d+'\x20'+_0x38d670+':'+_0x329415+':'+_0x38e6f2,'createdDate':_0x4a76ad+'-'+_0x15ace4+'-'+_0x49b97d,'createdTime':_0x38d670+':'+_0x329415+':'+_0x38e6f2};}static[a216_0x49234e(0xef)](_0x5501bb){const _0x1666d3=a216_0x49234e,_0x2e4c16=_0x5501bb[_0x1666d3(0xfa)]('/')['pop']()||_0x5501bb;return _0x2e4c16[_0x1666d3(0xfa)]('-')[_0x1666d3(0x11b)](_0x2fe552=>_0x2fe552[_0x1666d3(0x10c)](0x0)[_0x1666d3(0x11a)]()+_0x2fe552['slice'](0x1)[_0x1666d3(0xe3)]())[_0x1666d3(0x100)]('');}static[a216_0x49234e(0xf2)](_0x1a6551){const _0x5cf8ac=a216_0x49234e,_0x12c4d6=_0x1a6551[_0x5cf8ac(0xfa)]('/')[_0x5cf8ac(0x112)]()||_0x1a6551;return _0x12c4d6[_0x5cf8ac(0xfa)]('-')[_0x5cf8ac(0x11b)](_0x3e2f72=>_0x3e2f72['charAt'](0x0)[_0x5cf8ac(0x11a)]()+_0x3e2f72['slice'](0x1)[_0x5cf8ac(0xe3)]())['join']('\x20');}static[a216_0x49234e(0xda)](_0x4e4dcc,_0xa9a361,_0x57edc0){const _0x23361f=a216_0x49234e,_0x2f3246=this['toComponentName'](_0xa9a361),_0x24cf49=this[_0x23361f(0xf2)](_0xa9a361),{createdAt:_0x5acf81,createdDate:_0x23623d,createdTime:_0x1b5819}=this['formatLocalTimestamp'](new Date());let _0x14a977=_0x4e4dcc['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x23361f(0xf6)](/\{ComponentName\}/g,_0x2f3246)[_0x23361f(0xf6)](/\{DisplayTitle\}/g,_0x24cf49)[_0x23361f(0xf6)](/\{PageName\}/g,_0xa9a361)[_0x23361f(0xf6)](/\{TemplateName\}/g,_0x57edc0)[_0x23361f(0xf6)](/\{CreatedAt\}/g,_0x5acf81)[_0x23361f(0xf6)](/\{CreatedDate\}/g,_0x23623d)[_0x23361f(0xf6)](/\{CreatedTime\}/g,_0x1b5819);return _0x14a977;}static[a216_0x49234e(0x118)](_0x2c0dcf,_0x301a8e,_0x4b3e05,_0xc111f2,_0x336aff,_0x47ff83,_0x117b35,_0x321da9){const _0x26de1c=a216_0x49234e,_0x36a9d8=new Date(),_0x197877=_0x36a9d8['toISOString'](),_0x45c1bd=_0x4b3e05[_0x26de1c(0x11b)](_0x8e11b7=>{const _0x2a0016=_0x26de1c,_0xb1e82f=['datasetCode:\x20\x22'+_0x8e11b7['datasetCode']+'\x22','tableName:\x20\x22'+_0x8e11b7['tableName']+'\x22',_0x2a0016(0xfe)+_0x8e11b7[_0x2a0016(0xe2)]+'\x22'];return _0x8e11b7[_0x2a0016(0x10f)]&&_0xb1e82f[_0x2a0016(0xe5)](_0x2a0016(0xfd)+_0x8e11b7[_0x2a0016(0x10f)]+'\x22'),_0x2a0016(0xfc)+_0xb1e82f[_0x2a0016(0x100)](',\x20')+_0x2a0016(0xdb);})[_0x26de1c(0x100)](''),_0x27f794=_0xc111f2||_0x4b3e05[0x0]?.[_0x26de1c(0x10f)]||_0x26de1c(0x117);let _0x58ccc5=_0x2c0dcf['replace'](/\{AppCode\}/g,_0x301a8e)['replace'](/\{ModelConfigs\}/g,_0x45c1bd)[_0x26de1c(0xf6)](/\{ExampleModelName\}/g,_0x27f794)['replace'](/\{ApiFileName\}/g,_0x336aff||'api')[_0x26de1c(0xf6)](/\{ConfigName\}/g,_0x47ff83||'default')[_0x26de1c(0xf6)](/\{ClientConfigParam\}/g,_0x117b35||'')['replace'](/\{VarPrefix\}/g,_0x321da9||_0x26de1c(0x10e))[_0x26de1c(0xf6)](/\{CreatedAt\}/g,_0x197877);return _0x58ccc5;}static async[a216_0x49234e(0x109)](_0x142804,_0xe11219,_0x216000,_0x1d840f,_0x1884a5=!![]){const _0x1fe2c2=a216_0x49234e,_0xb8bf5c=Date['now']();try{_0x1884a5&&logger[_0x1fe2c2(0xee)](_0x1fe2c2(0xdc),_0x1fe2c2(0x10a),{'templatePath':_0x142804,'targetPath':_0xe11219,'pageName':_0x216000,'templateName':_0x1d840f});await a216_0x561444[_0x1fe2c2(0xf3)][_0x1fe2c2(0x107)](_0xe11219,{'recursive':!![]}),await this[_0x1fe2c2(0x119)](_0x142804,_0xe11219,_0x216000,_0x1d840f);if(_0x1884a5){const _0x598c49=Date[_0x1fe2c2(0xe0)]()-_0xb8bf5c;logger[_0x1fe2c2(0xf0)]('template',_0x1fe2c2(0xf7),_0x598c49,{'pageName':_0x216000,'templateName':_0x1d840f});}}catch(_0x7fd727){if(_0x1884a5){const _0x5871cc=Date[_0x1fe2c2(0xe0)]()-_0xb8bf5c;logger['error'](_0x1fe2c2(0xdc),_0x1fe2c2(0xde),{'templatePath':_0x142804,'targetPath':_0xe11219,'pageName':_0x216000,'templateName':_0x1d840f,'error':_0x7fd727 instanceof Error?_0x7fd727[_0x1fe2c2(0x108)]:String(_0x7fd727),'duration':_0x5871cc});}throw _0x7fd727;}}static async[a216_0x49234e(0x119)](_0xabf93c,_0x36d1f2,_0x3297af,_0x5bd8c5){const _0x333841=a216_0x49234e,_0x269948=await a216_0x561444[_0x333841(0xf3)][_0x333841(0xeb)](_0xabf93c,{'withFileTypes':!![]});for(const _0xcf2459 of _0x269948){const _0x21b37a=a216_0x523276[_0x333841(0x100)](_0xabf93c,_0xcf2459[_0x333841(0xe2)]);let _0x1f187e=a216_0x523276[_0x333841(0x100)](_0x36d1f2,_0xcf2459['name']);_0xcf2459[_0x333841(0xe2)][_0x333841(0xf9)](_0x333841(0xe4))&&(_0x1f187e=a216_0x523276[_0x333841(0x100)](_0x36d1f2,_0xcf2459[_0x333841(0xe2)][_0x333841(0xf6)](/\.tpl$/,'')));if(_0xcf2459['isDirectory']())await a216_0x561444['promises']['mkdir'](_0x1f187e,{'recursive':!![]}),await this[_0x333841(0x119)](_0x21b37a,_0x1f187e,_0x3297af,_0x5bd8c5);else _0xcf2459[_0x333841(0x106)]()&&await this[_0x333841(0xf4)](_0x21b37a,_0x1f187e,_0x3297af,_0x5bd8c5);}}static async['processFile'](_0x48ac54,_0xd96c80,_0x2ef18f,_0x22d60d){const _0xe0fd4c=a216_0x49234e,_0x39f8d6=a216_0x523276[_0xe0fd4c(0xe1)](_0x48ac54)[_0xe0fd4c(0xe3)]();_0x48ac54[_0xe0fd4c(0xf9)]('.tpl')&&(_0xd96c80=_0xd96c80['replace'](/\.tpl$/,''));const _0x514e5c=[_0xe0fd4c(0xe8),_0xe0fd4c(0x113),_0xe0fd4c(0xe6),_0xe0fd4c(0xdf),_0xe0fd4c(0x105),'.md',_0xe0fd4c(0xe7),_0xe0fd4c(0xf8),_0xe0fd4c(0xe4)];if(_0x514e5c[_0xe0fd4c(0x102)](_0x39f8d6)||_0x48ac54[_0xe0fd4c(0xf9)](_0xe0fd4c(0xe4))){const _0x44e6d7=await a216_0x561444[_0xe0fd4c(0xf3)][_0xe0fd4c(0x110)](_0x48ac54,'utf8'),_0x21f0ff=this['replaceContent'](_0x44e6d7,_0x2ef18f,_0x22d60d);await a216_0x561444[_0xe0fd4c(0xf3)][_0xe0fd4c(0xf1)](_0xd96c80,_0x21f0ff,'utf8');}else await a216_0x561444[_0xe0fd4c(0xf3)][_0xe0fd4c(0xfb)](_0x48ac54,_0xd96c80);}}
1
+ function a217_0x5e17(){const _0x2eceb7=['.tpl','error','join','7408uUqLIh','isFile','promises','processFile','pad','api','getFullYear','default','getHours','name:\x20\x22','replace','179GtooJx','.scss','\x20},','LOVRABET','764164pDJIsc','模板内容替换完成','replaceContent','readFile','slice','2441536msoMYW','datasetCode','.json','开始处理模板内容替换','name','extname','getDate','utf8','now','message','processDirectory','map','success','pop','6096144FcWixn','datasetCode:\x20\x22','alias','mkdir','.jsx','getSeconds','tableName','63882PJLOYp','87822TFXDEC','copyFile','includes','getMonth','toComponentName','toDisplayTitle','tableName:\x20\x22','processTemplate','.ts','.tsx','getMinutes','isDirectory','模板内容替换失败','formatLocalTimestamp','toISOString','toLowerCase','endsWith','padStart','YourModel','5785065zNhHSG','split','template','.css','info','charAt','.md','30uyoPfO'];a217_0x5e17=function(){return _0x2eceb7;};return a217_0x5e17();}const a217_0x4b254a=a217_0x1a14;(function(_0x26d9f6,_0x12acd0){const _0x21ac99=a217_0x1a14,_0x367e2d=_0x26d9f6();while(!![]){try{const _0x202715=parseInt(_0x21ac99(0x8a))/0x1*(parseInt(_0x21ac99(0xc7))/0x2)+-parseInt(_0x21ac99(0xa8))/0x3+-parseInt(_0x21ac99(0x8e))/0x4*(parseInt(_0x21ac99(0xc3))/0x5)+parseInt(_0x21ac99(0xa1))/0x6+parseInt(_0x21ac99(0xa9))/0x7+-parseInt(_0x21ac99(0x93))/0x8+parseInt(_0x21ac99(0xbc))/0x9;if(_0x202715===_0x12acd0)break;else _0x367e2d['push'](_0x367e2d['shift']());}catch(_0x53e7a3){_0x367e2d['push'](_0x367e2d['shift']());}}}(a217_0x5e17,0xd25c7));import a217_0x11a8b4 from'node:fs';import a217_0x8eec6b from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a217_0x1a14(_0x4adf2f,_0x4750a8){_0x4adf2f=_0x4adf2f-0x84;const _0x5e178a=a217_0x5e17();let _0x1a1421=_0x5e178a[_0x4adf2f];return _0x1a1421;}export class TemplateReplacer{static['pad'](_0x3af6b6){const _0x163550=a217_0x1a14;return String(_0x3af6b6)[_0x163550(0xba)](0x2,'0');}static['formatLocalTimestamp'](_0xcbeb1d){const _0x319a68=a217_0x1a14,_0x44e905=_0xcbeb1d[_0x319a68(0x85)](),_0x29fb63=this[_0x319a68(0xcb)](_0xcbeb1d[_0x319a68(0xac)]()+0x1),_0xe15560=this[_0x319a68(0xcb)](_0xcbeb1d[_0x319a68(0x99)]()),_0x283046=this[_0x319a68(0xcb)](_0xcbeb1d[_0x319a68(0x87)]()),_0x2e0727=this['pad'](_0xcbeb1d[_0x319a68(0xb3)]()),_0x5368af=this[_0x319a68(0xcb)](_0xcbeb1d[_0x319a68(0xa6)]());return{'createdAt':_0x44e905+'-'+_0x29fb63+'-'+_0xe15560+'\x20'+_0x283046+':'+_0x2e0727+':'+_0x5368af,'createdDate':_0x44e905+'-'+_0x29fb63+'-'+_0xe15560,'createdTime':_0x283046+':'+_0x2e0727+':'+_0x5368af};}static[a217_0x4b254a(0xad)](_0x36e478){const _0x1434bb=a217_0x4b254a,_0x5cd13f=_0x36e478[_0x1434bb(0xbd)]('/')[_0x1434bb(0xa0)]()||_0x36e478;return _0x5cd13f['split']('-')[_0x1434bb(0x9e)](_0x39ddd7=>_0x39ddd7[_0x1434bb(0xc1)](0x0)['toUpperCase']()+_0x39ddd7[_0x1434bb(0x92)](0x1)[_0x1434bb(0xb8)]())[_0x1434bb(0xc6)]('');}static['toDisplayTitle'](_0x36251d){const _0x4bfb77=a217_0x4b254a,_0x34e96f=_0x36251d[_0x4bfb77(0xbd)]('/')[_0x4bfb77(0xa0)]()||_0x36251d;return _0x34e96f['split']('-')['map'](_0x10808c=>_0x10808c[_0x4bfb77(0xc1)](0x0)['toUpperCase']()+_0x10808c['slice'](0x1)[_0x4bfb77(0xb8)]())[_0x4bfb77(0xc6)]('\x20');}static[a217_0x4b254a(0x90)](_0x50bcb7,_0x52bed2,_0x2ff150){const _0x59b13b=a217_0x4b254a,_0x1dd4ee=this[_0x59b13b(0xad)](_0x52bed2),_0x33e9b3=this[_0x59b13b(0xae)](_0x52bed2),{createdAt:_0x173fb4,createdDate:_0x4afbe5,createdTime:_0x54e9d5}=this[_0x59b13b(0xb6)](new Date());let _0x211420=_0x50bcb7[_0x59b13b(0x89)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x1dd4ee)[_0x59b13b(0x89)](/\{DisplayTitle\}/g,_0x33e9b3)[_0x59b13b(0x89)](/\{PageName\}/g,_0x52bed2)['replace'](/\{TemplateName\}/g,_0x2ff150)[_0x59b13b(0x89)](/\{CreatedAt\}/g,_0x173fb4)[_0x59b13b(0x89)](/\{CreatedDate\}/g,_0x4afbe5)[_0x59b13b(0x89)](/\{CreatedTime\}/g,_0x54e9d5);return _0x211420;}static['replaceApiContent'](_0x4b6863,_0x21b01f,_0x2f6053,_0x471005,_0x34588c,_0x18ce86,_0x833808,_0xcbf072){const _0x192262=a217_0x4b254a,_0x379f3a=new Date(),_0x1ca4ca=_0x379f3a[_0x192262(0xb7)](),_0x11c9ac=_0x2f6053[_0x192262(0x9e)](_0x2bf36d=>{const _0xb31c45=_0x192262,_0x2dd092=[_0xb31c45(0xa2)+_0x2bf36d[_0xb31c45(0x94)]+'\x22',_0xb31c45(0xaf)+_0x2bf36d[_0xb31c45(0xa7)]+'\x22',_0xb31c45(0x88)+_0x2bf36d[_0xb31c45(0x97)]+'\x22'];return _0x2bf36d[_0xb31c45(0xa3)]&&_0x2dd092['push']('alias:\x20\x22'+_0x2bf36d[_0xb31c45(0xa3)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x2dd092['join'](',\x20')+_0xb31c45(0x8c);})[_0x192262(0xc6)](''),_0x3011bc=_0x471005||_0x2f6053[0x0]?.[_0x192262(0xa3)]||_0x192262(0xbb);let _0x551c9f=_0x4b6863[_0x192262(0x89)](/\{AppCode\}/g,_0x21b01f)[_0x192262(0x89)](/\{ModelConfigs\}/g,_0x11c9ac)[_0x192262(0x89)](/\{ExampleModelName\}/g,_0x3011bc)[_0x192262(0x89)](/\{ApiFileName\}/g,_0x34588c||_0x192262(0x84))[_0x192262(0x89)](/\{ConfigName\}/g,_0x18ce86||_0x192262(0x86))[_0x192262(0x89)](/\{ClientConfigParam\}/g,_0x833808||'')['replace'](/\{VarPrefix\}/g,_0xcbf072||_0x192262(0x8d))[_0x192262(0x89)](/\{CreatedAt\}/g,_0x1ca4ca);return _0x551c9f;}static async[a217_0x4b254a(0xb0)](_0x8a93ba,_0x30dfab,_0x17e5d2,_0x42ecb3,_0x3101ef=!![]){const _0x6ecb63=a217_0x4b254a,_0x47f792=Date['now']();try{_0x3101ef&&logger[_0x6ecb63(0xc0)]('template',_0x6ecb63(0x96),{'templatePath':_0x8a93ba,'targetPath':_0x30dfab,'pageName':_0x17e5d2,'templateName':_0x42ecb3});await a217_0x11a8b4[_0x6ecb63(0xc9)][_0x6ecb63(0xa4)](_0x30dfab,{'recursive':!![]}),await this['processDirectory'](_0x8a93ba,_0x30dfab,_0x17e5d2,_0x42ecb3);if(_0x3101ef){const _0x397022=Date['now']()-_0x47f792;logger[_0x6ecb63(0x9f)](_0x6ecb63(0xbe),_0x6ecb63(0x8f),_0x397022,{'pageName':_0x17e5d2,'templateName':_0x42ecb3});}}catch(_0x585910){if(_0x3101ef){const _0x5c43d7=Date[_0x6ecb63(0x9b)]()-_0x47f792;logger[_0x6ecb63(0xc5)](_0x6ecb63(0xbe),_0x6ecb63(0xb5),{'templatePath':_0x8a93ba,'targetPath':_0x30dfab,'pageName':_0x17e5d2,'templateName':_0x42ecb3,'error':_0x585910 instanceof Error?_0x585910[_0x6ecb63(0x9c)]:String(_0x585910),'duration':_0x5c43d7});}throw _0x585910;}}static async[a217_0x4b254a(0x9d)](_0x4723a5,_0x499fbe,_0x3c37a3,_0x48b604){const _0x46c1db=a217_0x4b254a,_0x5f4209=await a217_0x11a8b4['promises']['readdir'](_0x4723a5,{'withFileTypes':!![]});for(const _0x26cc84 of _0x5f4209){const _0x2041e1=a217_0x8eec6b[_0x46c1db(0xc6)](_0x4723a5,_0x26cc84[_0x46c1db(0x97)]);let _0x7e9e38=a217_0x8eec6b[_0x46c1db(0xc6)](_0x499fbe,_0x26cc84[_0x46c1db(0x97)]);_0x26cc84['name'][_0x46c1db(0xb9)](_0x46c1db(0xc4))&&(_0x7e9e38=a217_0x8eec6b[_0x46c1db(0xc6)](_0x499fbe,_0x26cc84[_0x46c1db(0x97)][_0x46c1db(0x89)](/\.tpl$/,'')));if(_0x26cc84[_0x46c1db(0xb4)]())await a217_0x11a8b4[_0x46c1db(0xc9)][_0x46c1db(0xa4)](_0x7e9e38,{'recursive':!![]}),await this[_0x46c1db(0x9d)](_0x2041e1,_0x7e9e38,_0x3c37a3,_0x48b604);else _0x26cc84[_0x46c1db(0xc8)]()&&await this['processFile'](_0x2041e1,_0x7e9e38,_0x3c37a3,_0x48b604);}}static async[a217_0x4b254a(0xca)](_0x5a9a82,_0x7c796b,_0xd5862f,_0xbc2bdb){const _0x1c16e2=a217_0x4b254a,_0x4c0fd2=a217_0x8eec6b[_0x1c16e2(0x98)](_0x5a9a82)[_0x1c16e2(0xb8)]();_0x5a9a82[_0x1c16e2(0xb9)](_0x1c16e2(0xc4))&&(_0x7c796b=_0x7c796b['replace'](/\.tpl$/,''));const _0x59827b=[_0x1c16e2(0xb2),_0x1c16e2(0xb1),_0x1c16e2(0xa5),'.js',_0x1c16e2(0x95),_0x1c16e2(0xc2),_0x1c16e2(0xbf),_0x1c16e2(0x8b),_0x1c16e2(0xc4)];if(_0x59827b[_0x1c16e2(0xab)](_0x4c0fd2)||_0x5a9a82[_0x1c16e2(0xb9)]('.tpl')){const _0x1aaf42=await a217_0x11a8b4['promises'][_0x1c16e2(0x91)](_0x5a9a82,'utf8'),_0x18c86b=this[_0x1c16e2(0x90)](_0x1aaf42,_0xd5862f,_0xbc2bdb);await a217_0x11a8b4[_0x1c16e2(0xc9)]['writeFile'](_0x7c796b,_0x18c86b,_0x1c16e2(0x9a));}else await a217_0x11a8b4['promises'][_0x1c16e2(0xaa)](_0x5a9a82,_0x7c796b);}}
@@ -1 +1 @@
1
- (function(_0x3a6bb0,_0x26f45b){const _0x3c635=a217_0x2657,_0x112e55=_0x3a6bb0();while(!![]){try{const _0x29cff7=parseInt(_0x3c635(0x16a))/0x1*(-parseInt(_0x3c635(0x168))/0x2)+-parseInt(_0x3c635(0x16f))/0x3*(parseInt(_0x3c635(0x17c))/0x4)+parseInt(_0x3c635(0x179))/0x5*(parseInt(_0x3c635(0x177))/0x6)+-parseInt(_0x3c635(0x17d))/0x7*(-parseInt(_0x3c635(0x176))/0x8)+-parseInt(_0x3c635(0x16e))/0x9+parseInt(_0x3c635(0x17a))/0xa*(-parseInt(_0x3c635(0x180))/0xb)+parseInt(_0x3c635(0x16c))/0xc;if(_0x29cff7===_0x26f45b)break;else _0x112e55['push'](_0x112e55['shift']());}catch(_0x16c868){_0x112e55['push'](_0x112e55['shift']());}}}(a217_0x3245,0xbc648));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a217_0x224785 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';function a217_0x3245(){const _0x149287=['valid','12679799bCZOod',',\x20run:\x20','now','\x20available,\x20current\x20','849084hLCpiL','true','2BytRaq','https://www.npmjs.com/package/','38239884mPobLm','checkedAt','7240023ZIXBSH','309siQAxi','utf8','parse','.cache','number','lastNotifiedVersion','yes','128SkANye','18aBldzO','trim','452105NWdbXx','10UahvSF','lastNotifiedAt','35168HPfuFi','448679nidPTK','stableVersion'];a217_0x3245=function(){return _0x149287;};return a217_0x3245();}import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';function a217_0x2657(_0x42a869,_0x3084ec){_0x42a869=_0x42a869-0x168;const _0x32452d=a217_0x3245();let _0x265740=_0x32452d[_0x42a869];return _0x265740;}const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x101702=a217_0x2657,_0x5d8476=process.env.RABETBASE_NO_UPDATE_NOTICE?.['trim']()['toLowerCase']();return _0x5d8476==='1'||_0x5d8476===_0x101702(0x169)||_0x5d8476===_0x101702(0x175);}function cacheRoot(){const _0x53b9b1=a217_0x2657;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x53b9b1(0x172));}export function getUpdateNoticeCachePath(){return join(cacheRoot(),'rabetbase-cli','update-check.json');}async function readUpdateNoticeCache(){const _0x5929b9=a217_0x2657;try{const _0x4308e2=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x53fa56=JSON[_0x5929b9(0x171)](_0x4308e2);if(!_0x53fa56||typeof _0x53fa56!=='object')return{};return _0x53fa56;}catch{return{};}}async function writeUpdateNoticeCache(_0x21c6b4){const _0x3a743a=a217_0x2657;try{const _0x1be7c3=getUpdateNoticeCachePath();await mkdir(dirname(_0x1be7c3),{'recursive':!![]}),await writeFile(_0x1be7c3,JSON['stringify'](_0x21c6b4,null,0x2)+'\x0a',_0x3a743a(0x170));}catch{}}function isFreshCheck(_0x55e818,_0x289a79){const _0x21fcc0=a217_0x2657;return typeof _0x55e818['checkedAt']===_0x21fcc0(0x173)&&_0x289a79-_0x55e818[_0x21fcc0(0x16d)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x6ba8f0,_0x1dfb8a,_0x443db1){const _0x580568=a217_0x2657;return _0x6ba8f0[_0x580568(0x174)]===_0x1dfb8a&&typeof _0x6ba8f0[_0x580568(0x17b)]===_0x580568(0x173)&&_0x443db1-_0x6ba8f0[_0x580568(0x17b)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x1a182f){const _0x23d2bc=a217_0x2657;return _0x23d2bc(0x16b)+NPM_PACKAGE_NAME+'/v/'+_0x1a182f;}export async function resolveLatestUpdateNotice(){const _0x3bbec4=a217_0x2657;if(isUpdateNoticeDisabled())return null;try{const _0x29afdf=Date[_0x3bbec4(0x182)](),_0x5cfb17=getCliVersion(),_0x1df803=await readUpdateNoticeCache();let _0x2feda5=isFreshCheck(_0x1df803,_0x29afdf)?_0x1df803['latest']?.[_0x3bbec4(0x178)]():undefined;if(!_0x2feda5&&!isFreshCheck(_0x1df803,_0x29afdf)){const _0x2e4c01=await getCliVersionPolicy();_0x2feda5=_0x2e4c01?.[_0x3bbec4(0x17e)]?.[_0x3bbec4(0x178)]()||undefined,await writeUpdateNoticeCache({..._0x1df803,'checkedAt':_0x29afdf,'latest':_0x2feda5,'failed':!_0x2feda5});}if(!_0x2feda5||!a217_0x224785[_0x3bbec4(0x17f)](_0x5cfb17)||!a217_0x224785[_0x3bbec4(0x17f)](_0x2feda5))return null;if(a217_0x224785['gte'](_0x5cfb17,_0x2feda5))return null;if(isRecentlyNotified(_0x1df803,_0x2feda5,_0x29afdf))return null;const _0x47eae9=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x1df803,'checkedAt':isFreshCheck(_0x1df803,_0x29afdf)?_0x1df803[_0x3bbec4(0x16d)]:_0x29afdf,'latest':_0x2feda5,'failed':![],'lastNotifiedVersion':_0x2feda5,'lastNotifiedAt':_0x29afdf}),{'command':_0x47eae9,'current':_0x5cfb17,'latest':_0x2feda5,'url':buildNpmVersionUrl(_0x2feda5),'message':CLI_BIN_NAME+'\x20'+_0x2feda5+_0x3bbec4(0x183)+_0x5cfb17+_0x3bbec4(0x181)+_0x47eae9};}catch{return null;}}
1
+ (function(_0x53fd24,_0x299935){const _0x504b86=a218_0x21f4,_0x2e8df5=_0x53fd24();while(!![]){try{const _0x4faa50=-parseInt(_0x504b86(0x127))/0x1+parseInt(_0x504b86(0x12a))/0x2*(-parseInt(_0x504b86(0x123))/0x3)+-parseInt(_0x504b86(0x128))/0x4*(-parseInt(_0x504b86(0x112))/0x5)+-parseInt(_0x504b86(0x120))/0x6+-parseInt(_0x504b86(0x118))/0x7+-parseInt(_0x504b86(0x12d))/0x8*(parseInt(_0x504b86(0x11c))/0x9)+parseInt(_0x504b86(0x12e))/0xa;if(_0x4faa50===_0x299935)break;else _0x2e8df5['push'](_0x2e8df5['shift']());}catch(_0x231be4){_0x2e8df5['push'](_0x2e8df5['shift']());}}}(a218_0x1d00,0xdb1a5));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a218_0x3eaf1c from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function a218_0x21f4(_0x56b3b5,_0x2dbd2e){_0x56b3b5=_0x56b3b5-0x112;const _0x1d006f=a218_0x1d00();let _0x21f4fd=_0x1d006f[_0x56b3b5];return _0x21f4fd;}function isUpdateNoticeDisabled(){const _0x123913=a218_0x21f4,_0x155958=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x123913(0x11f)]()[_0x123913(0x115)]();return _0x155958==='1'||_0x155958===_0x123913(0x116)||_0x155958===_0x123913(0x119);}function cacheRoot(){const _0x57738b=a218_0x21f4;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x57738b(0x114));}function a218_0x1d00(){const _0x4b2d58=['1910eOiDZe','now','object','1998312EsfAgu','37976760KDDBfM','valid','906735iymOrg','checkedAt','.cache','toLowerCase','true','/v/','2196250zxKbQE','yes','update-check.json','\x20update','9ayxkeb','rabetbase-cli','parse','trim','8490336xaPprl','stableVersion','lastNotifiedAt','1875Lystes','utf8','latest','lastNotifiedVersion','868802tIReom','12FIGsTJ','number'];a218_0x1d00=function(){return _0x4b2d58;};return a218_0x1d00();}export function getUpdateNoticeCachePath(){const _0x55e7c7=a218_0x21f4;return join(cacheRoot(),_0x55e7c7(0x11d),_0x55e7c7(0x11a));}async function readUpdateNoticeCache(){const _0x327de6=a218_0x21f4;try{const _0xd02480=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x37589d=JSON[_0x327de6(0x11e)](_0xd02480);if(!_0x37589d||typeof _0x37589d!==_0x327de6(0x12c))return{};return _0x37589d;}catch{return{};}}async function writeUpdateNoticeCache(_0x2c31ed){const _0x18555f=a218_0x21f4;try{const _0x286b56=getUpdateNoticeCachePath();await mkdir(dirname(_0x286b56),{'recursive':!![]}),await writeFile(_0x286b56,JSON['stringify'](_0x2c31ed,null,0x2)+'\x0a',_0x18555f(0x124));}catch{}}function isFreshCheck(_0x32dc5c,_0x26ca30){const _0x50f7d5=a218_0x21f4;return typeof _0x32dc5c[_0x50f7d5(0x113)]==='number'&&_0x26ca30-_0x32dc5c[_0x50f7d5(0x113)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x4d84f8,_0x55e430,_0x20adf0){const _0x2743eb=a218_0x21f4;return _0x4d84f8[_0x2743eb(0x126)]===_0x55e430&&typeof _0x4d84f8[_0x2743eb(0x122)]===_0x2743eb(0x129)&&_0x20adf0-_0x4d84f8[_0x2743eb(0x122)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x27df06){const _0x5263b8=a218_0x21f4;return'https://www.npmjs.com/package/'+NPM_PACKAGE_NAME+_0x5263b8(0x117)+_0x27df06;}export async function resolveLatestUpdateNotice(){const _0x18d4bf=a218_0x21f4;if(isUpdateNoticeDisabled())return null;try{const _0x58a98d=Date[_0x18d4bf(0x12b)](),_0x1a1144=getCliVersion(),_0x2fc311=await readUpdateNoticeCache();let _0x2c8d07=isFreshCheck(_0x2fc311,_0x58a98d)?_0x2fc311[_0x18d4bf(0x125)]?.['trim']():undefined;if(!_0x2c8d07&&!isFreshCheck(_0x2fc311,_0x58a98d)){const _0x545444=await getCliVersionPolicy();_0x2c8d07=_0x545444?.[_0x18d4bf(0x121)]?.[_0x18d4bf(0x11f)]()||undefined,await writeUpdateNoticeCache({..._0x2fc311,'checkedAt':_0x58a98d,'latest':_0x2c8d07,'failed':!_0x2c8d07});}if(!_0x2c8d07||!a218_0x3eaf1c[_0x18d4bf(0x12f)](_0x1a1144)||!a218_0x3eaf1c[_0x18d4bf(0x12f)](_0x2c8d07))return null;if(a218_0x3eaf1c['gte'](_0x1a1144,_0x2c8d07))return null;if(isRecentlyNotified(_0x2fc311,_0x2c8d07,_0x58a98d))return null;const _0x55fae2=CLI_BIN_NAME+_0x18d4bf(0x11b);return await writeUpdateNoticeCache({..._0x2fc311,'checkedAt':isFreshCheck(_0x2fc311,_0x58a98d)?_0x2fc311['checkedAt']:_0x58a98d,'latest':_0x2c8d07,'failed':![],'lastNotifiedVersion':_0x2c8d07,'lastNotifiedAt':_0x58a98d}),{'command':_0x55fae2,'current':_0x1a1144,'latest':_0x2c8d07,'url':buildNpmVersionUrl(_0x2c8d07),'message':CLI_BIN_NAME+'\x20'+_0x2c8d07+'\x20available,\x20current\x20'+_0x1a1144+',\x20run:\x20'+_0x55fae2};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x373195,_0x305470){var _0x25d51b=a218_0xbfe1,_0x4a046b=_0x373195();while(!![]){try{var _0x3a5278=-parseInt(_0x25d51b(0x1b0))/0x1+-parseInt(_0x25d51b(0x1b7))/0x2+parseInt(_0x25d51b(0x1b5))/0x3*(parseInt(_0x25d51b(0x1b2))/0x4)+-parseInt(_0x25d51b(0x1b1))/0x5+-parseInt(_0x25d51b(0x1b4))/0x6*(parseInt(_0x25d51b(0x1b6))/0x7)+-parseInt(_0x25d51b(0x1b3))/0x8+parseInt(_0x25d51b(0x1b8))/0x9;if(_0x3a5278===_0x305470)break;else _0x4a046b['push'](_0x4a046b['shift']());}catch(_0x14cc55){_0x4a046b['push'](_0x4a046b['shift']());}}}(a218_0x4b29,0x1889e));import{VERSION}from'../generated/build-info.js';function a218_0xbfe1(_0x381f81,_0x4bf5eb){_0x381f81=_0x381f81-0x1b0;var _0x4b2939=a218_0x4b29();var _0xbfe18e=_0x4b2939[_0x381f81];return _0xbfe18e;}function a218_0x4b29(){var _0x59700e=['3429054sMpFZq','154929PTLNZD','690720MNJrLe','816ZPwQfO','309800dAkQtP','76098HhygDK','1125rsKHwo','7tdTnhj','25030vUrJEX'];a218_0x4b29=function(){return _0x59700e;};return a218_0x4b29();}export function getCliVersion(){return VERSION;}
1
+ function a219_0x92a4(_0x3ff244,_0x1305c9){_0x3ff244=_0x3ff244-0x104;var _0x4aef04=a219_0x4aef();var _0x92a421=_0x4aef04[_0x3ff244];return _0x92a421;}function a219_0x4aef(){var _0xd14e8f=['1675632dUZXpE','13772IOUgce','6cNdmei','9AwFvjB','16lYUMyF','1151260cJIXgq','2138700ewuPjp','34438cnyLrA','1536CiVWbS','236715BsyIZb','908978oVEbcb','15nMNJSt'];a219_0x4aef=function(){return _0xd14e8f;};return a219_0x4aef();}(function(_0x35569e,_0x26b53b){var _0x4f6c05=a219_0x92a4,_0x49a021=_0x35569e();while(!![]){try{var _0x3ea364=-parseInt(_0x4f6c05(0x108))/0x1*(-parseInt(_0x4f6c05(0x104))/0x2)+parseInt(_0x4f6c05(0x106))/0x3*(-parseInt(_0x4f6c05(0x10d))/0x4)+-parseInt(_0x4f6c05(0x10e))/0x5+-parseInt(_0x4f6c05(0x10b))/0x6*(parseInt(_0x4f6c05(0x107))/0x7)+parseInt(_0x4f6c05(0x109))/0x8+parseInt(_0x4f6c05(0x10c))/0x9*(parseInt(_0x4f6c05(0x10f))/0xa)+-parseInt(_0x4f6c05(0x10a))/0xb*(-parseInt(_0x4f6c05(0x105))/0xc);if(_0x3ea364===_0x26b53b)break;else _0x49a021['push'](_0x49a021['shift']());}catch(_0x1489b2){_0x49a021['push'](_0x49a021['shift']());}}}(a219_0x4aef,0x288fb));import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- (function(_0x6339a2,_0x430219){var _0x24ef75=a219_0x349e,_0x60b5d1=_0x6339a2();while(!![]){try{var _0x4a6101=parseInt(_0x24ef75(0x8c))/0x1+parseInt(_0x24ef75(0x8e))/0x2+parseInt(_0x24ef75(0x94))/0x3*(-parseInt(_0x24ef75(0x8f))/0x4)+-parseInt(_0x24ef75(0x92))/0x5*(parseInt(_0x24ef75(0x8b))/0x6)+-parseInt(_0x24ef75(0x93))/0x7*(parseInt(_0x24ef75(0x95))/0x8)+parseInt(_0x24ef75(0x8a))/0x9*(parseInt(_0x24ef75(0x91))/0xa)+-parseInt(_0x24ef75(0x8d))/0xb*(-parseInt(_0x24ef75(0x90))/0xc);if(_0x4a6101===_0x430219)break;else _0x60b5d1['push'](_0x60b5d1['shift']());}catch(_0x3ec832){_0x60b5d1['push'](_0x60b5d1['shift']());}}}(a219_0x451a,0x58c13));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a219_0x349e(_0x108999,_0x5323dc){_0x108999=_0x108999-0x8a;var _0x451a3c=a219_0x451a();var _0x349e18=_0x451a3c[_0x108999];return _0x349e18;}function a219_0x451a(){var _0x1f0331=['630707bfrVzS','350312gbTVZj','20516PwNflW','228yBcbET','20eFlKbw','5HzRwfp','133CxOPjb','153KcacPA','255512XfapVn','1110078OLujsx','4246062OpVqjw','428393slVRdY'];a219_0x451a=function(){return _0x1f0331;};return a219_0x451a();}export async function withActiveCookie(_0x1698a3,_0x345a9d){setActiveCookie(_0x1698a3);try{return await _0x345a9d();}finally{clearActiveCookie();}}
1
+ (function(_0x4dfeb0,_0xa06a1e){var _0x3d5a33=a220_0x59a4,_0x50bf74=_0x4dfeb0();while(!![]){try{var _0x12aa2c=parseInt(_0x3d5a33(0x81))/0x1*(parseInt(_0x3d5a33(0x84))/0x2)+parseInt(_0x3d5a33(0x83))/0x3*(-parseInt(_0x3d5a33(0x7d))/0x4)+parseInt(_0x3d5a33(0x82))/0x5*(-parseInt(_0x3d5a33(0x7b))/0x6)+parseInt(_0x3d5a33(0x80))/0x7+-parseInt(_0x3d5a33(0x7f))/0x8+parseInt(_0x3d5a33(0x7e))/0x9*(parseInt(_0x3d5a33(0x86))/0xa)+-parseInt(_0x3d5a33(0x7c))/0xb*(-parseInt(_0x3d5a33(0x85))/0xc);if(_0x12aa2c===_0xa06a1e)break;else _0x50bf74['push'](_0x50bf74['shift']());}catch(_0x147bb3){_0x50bf74['push'](_0x50bf74['shift']());}}}(a220_0x3c8b,0xad80a));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a220_0x59a4(_0x89ddc0,_0x10a522){_0x89ddc0=_0x89ddc0-0x7b;var _0x3c8b73=a220_0x3c8b();var _0x59a4b5=_0x3c8b73[_0x89ddc0];return _0x59a4b5;}export async function withActiveCookie(_0x10c7f8,_0x12c64c){setActiveCookie(_0x10c7f8);try{return await _0x12c64c();}finally{clearActiveCookie();}}function a220_0x3c8b(){var _0x30bb18=['1615332LQMDRJ','1010566hFLBWV','1186932fNvJfg','460EgJFAD','104016ElDcLa','253OfKbyq','4GcVZJn','28053iMGTjE','6336320jsdhiV','2317364mhvxIO','1dWAGSi','350AfVGSm'];a220_0x3c8b=function(){return _0x30bb18;};return a220_0x3c8b();}
@@ -1 +1 @@
1
- function a220_0x25a2(){var _0x396cae=['5IDqUxt','126GMNNfq','1777494LXCMNZ','176680dHkxFh','stderr','622340aAQczU','16784TXTlrJ','518842qdQkyo','447rheSwR','7369182UHZQCt','write','430NrEBqF','387706CgiNDT'];a220_0x25a2=function(){return _0x396cae;};return a220_0x25a2();}(function(_0x36db9d,_0x3a4869){var _0x445892=a220_0x464f,_0x254226=_0x36db9d();while(!![]){try{var _0x8a006a=-parseInt(_0x445892(0x1bb))/0x1+parseInt(_0x445892(0x1b9))/0x2+-parseInt(_0x445892(0x1bc))/0x3*(-parseInt(_0x445892(0x1ba))/0x4)+-parseInt(_0x445892(0x1b4))/0x5*(parseInt(_0x445892(0x1b6))/0x6)+-parseInt(_0x445892(0x1b5))/0x7*(parseInt(_0x445892(0x1b7))/0x8)+-parseInt(_0x445892(0x1bd))/0x9+parseInt(_0x445892(0x1b2))/0xa*(parseInt(_0x445892(0x1b3))/0xb);if(_0x8a006a===_0x3a4869)break;else _0x254226['push'](_0x254226['shift']());}catch(_0x4a54ea){_0x254226['push'](_0x254226['shift']());}}}(a220_0x25a2,0x66ab5));function a220_0x464f(_0x192e10,_0x4740df){_0x192e10=_0x192e10-0x1b2;var _0x25a25e=a220_0x25a2();var _0x464f66=_0x25a25e[_0x192e10];return _0x464f66;}export function writeCliSideChannelLine(_0x27835e){var _0x52d581=a220_0x464f;process[_0x52d581(0x1b8)][_0x52d581(0x1be)](_0x27835e+'\x0a');}
1
+ function a221_0x304e(_0x280265,_0x533ed6){_0x280265=_0x280265-0x166;var _0x4ffbb9=a221_0x4ffb();var _0x304eae=_0x4ffbb9[_0x280265];return _0x304eae;}(function(_0x2f2da7,_0x36b4ca){var _0x125542=a221_0x304e,_0x30d1ae=_0x2f2da7();while(!![]){try{var _0x5729d0=parseInt(_0x125542(0x16c))/0x1*(-parseInt(_0x125542(0x170))/0x2)+-parseInt(_0x125542(0x16a))/0x3+parseInt(_0x125542(0x16e))/0x4*(-parseInt(_0x125542(0x168))/0x5)+parseInt(_0x125542(0x166))/0x6+-parseInt(_0x125542(0x169))/0x7*(parseInt(_0x125542(0x172))/0x8)+parseInt(_0x125542(0x16b))/0x9*(-parseInt(_0x125542(0x167))/0xa)+parseInt(_0x125542(0x16f))/0xb;if(_0x5729d0===_0x36b4ca)break;else _0x30d1ae['push'](_0x30d1ae['shift']());}catch(_0x2ae8d0){_0x30d1ae['push'](_0x30d1ae['shift']());}}}(a221_0x4ffb,0x1a311));export function writeCliSideChannelLine(_0x5373a0){var _0x49b978=a221_0x304e;process[_0x49b978(0x16d)][_0x49b978(0x171)](_0x5373a0+'\x0a');}function a221_0x4ffb(){var _0x586aff=['120681PYCWvO','1660635fzTPLe','1CGHvxk','stderr','279844dcrVEv','3686221kmWxZd','46394MXBIAs','write','689872XcmUVb','1057824yixqLf','10MnAZkm','5mmzmoN','7ARVWVb'];a221_0x4ffb=function(){return _0x586aff;};return a221_0x4ffb();}