@lovrabet/rabetbase-cli 2.2.2-beta.1 → 2.2.2

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 (204) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/extend-update.js +1 -1
  55. package/lib/commands/dataset/field-update.js +1 -1
  56. package/lib/commands/dataset/index.js +1 -1
  57. package/lib/commands/dataset/list.js +1 -1
  58. package/lib/commands/dataset/operations.js +1 -1
  59. package/lib/commands/dataset/relation-create.js +1 -1
  60. package/lib/commands/dataset/relation-delete.js +1 -1
  61. package/lib/commands/dataset/relation-shared.js +1 -1
  62. package/lib/commands/dataset/relation-update.js +1 -1
  63. package/lib/commands/dataset/relations.js +1 -1
  64. package/lib/commands/dataset/rename.js +1 -1
  65. package/lib/commands/db/analyze-cancel.js +1 -1
  66. package/lib/commands/db/analyze-start.js +1 -1
  67. package/lib/commands/db/analyze-status.js +1 -1
  68. package/lib/commands/db/create.js +1 -1
  69. package/lib/commands/db/delete.js +1 -1
  70. package/lib/commands/db/detail.js +1 -1
  71. package/lib/commands/db/diff.js +1 -1
  72. package/lib/commands/db/index.js +1 -1
  73. package/lib/commands/db/list.js +1 -1
  74. package/lib/commands/db/shared.js +1 -1
  75. package/lib/commands/db/tables.js +1 -1
  76. package/lib/commands/db/test.js +1 -1
  77. package/lib/commands/db/update.js +1 -1
  78. package/lib/commands/doctor.js +1 -1
  79. package/lib/commands/init/index.js +1 -1
  80. package/lib/commands/issue/index.js +1 -1
  81. package/lib/commands/issue/nudge.js +1 -1
  82. package/lib/commands/issue/report.js +1 -1
  83. package/lib/commands/issue/shared.js +1 -1
  84. package/lib/commands/logs/index.js +1 -1
  85. package/lib/commands/menu/index.js +1 -1
  86. package/lib/commands/menu/shared/compare-table.js +1 -1
  87. package/lib/commands/menu/shared/index.js +1 -1
  88. package/lib/commands/menu/shared/inquirer.js +1 -1
  89. package/lib/commands/menu/shared/local-pages.js +1 -1
  90. package/lib/commands/menu/shared/logic.js +1 -1
  91. package/lib/commands/menu/shared/service.js +1 -1
  92. package/lib/commands/menu/shared/sync-core.js +1 -1
  93. package/lib/commands/menu/shared/update-core.js +1 -1
  94. package/lib/commands/menu/shared/valid-url.js +1 -1
  95. package/lib/commands/menu/sync.js +1 -1
  96. package/lib/commands/menu/update.js +1 -1
  97. package/lib/commands/page/generate-start.js +1 -1
  98. package/lib/commands/page/generate-status.js +1 -1
  99. package/lib/commands/page/index.js +1 -1
  100. package/lib/commands/page/pull.js +1 -1
  101. package/lib/commands/page/push.js +1 -1
  102. package/lib/commands/page/relation-audit.js +1 -1
  103. package/lib/commands/page/shared.js +1 -1
  104. package/lib/commands/page/standard-page-status.js +1 -1
  105. package/lib/commands/page/sync.js +1 -1
  106. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  107. package/lib/commands/project/create/format-elapsed.js +1 -1
  108. package/lib/commands/project/create/main.js +1 -1
  109. package/lib/commands/project/create/non-interactive.js +1 -1
  110. package/lib/commands/project/create/project-template-path.js +1 -1
  111. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  112. package/lib/commands/project/create/use-format-code.js +1 -1
  113. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  114. package/lib/commands/project/index.js +1 -1
  115. package/lib/commands/project/init.js +1 -1
  116. package/lib/commands/project/upgrade.js +1 -1
  117. package/lib/commands/registry.js +1 -1
  118. package/lib/commands/run/index.js +1 -1
  119. package/lib/commands/schema.js +1 -1
  120. package/lib/commands/skill/index.js +1 -1
  121. package/lib/commands/sql/create.js +1 -1
  122. package/lib/commands/sql/delete.js +1 -1
  123. package/lib/commands/sql/detail.js +1 -1
  124. package/lib/commands/sql/exec.js +1 -1
  125. package/lib/commands/sql/index.js +1 -1
  126. package/lib/commands/sql/list.js +1 -1
  127. package/lib/commands/sql/pull.js +1 -1
  128. package/lib/commands/sql/push.js +1 -1
  129. package/lib/commands/sql/save.js +1 -1
  130. package/lib/commands/sql/shared.js +1 -1
  131. package/lib/commands/sql/status.js +1 -1
  132. package/lib/commands/sql/validate.js +1 -1
  133. package/lib/config/schema.js +1 -1
  134. package/lib/constant/cdn.js +1 -1
  135. package/lib/constant/cli.js +1 -1
  136. package/lib/constant/defaults.js +1 -1
  137. package/lib/constant/domain.js +1 -1
  138. package/lib/constant/env.js +1 -1
  139. package/lib/constant/output.js +1 -1
  140. package/lib/constant/paths.js +1 -1
  141. package/lib/constant/risk.js +1 -1
  142. package/lib/context.js +1 -1
  143. package/lib/core/alias-resolver.js +1 -1
  144. package/lib/core/api-client.js +1 -1
  145. package/lib/core/bff/config.js +1 -1
  146. package/lib/core/bff/file-system.js +1 -1
  147. package/lib/core/bff/hash.js +1 -1
  148. package/lib/core/bff/lock.js +1 -1
  149. package/lib/core/bff/utils.js +1 -1
  150. package/lib/core/db-resolver.js +1 -1
  151. package/lib/core/page/file-system.js +1 -1
  152. package/lib/core/page/hash.js +1 -1
  153. package/lib/core/page/lock.js +1 -1
  154. package/lib/core/sql-sync/config.js +1 -1
  155. package/lib/core/sql-sync/file-system.js +1 -1
  156. package/lib/core/sql-sync/hash.js +1 -1
  157. package/lib/core/sql-sync/lock.js +1 -1
  158. package/lib/core/sql-sync/utils.js +1 -1
  159. package/lib/core/sql-validator.js +1 -1
  160. package/lib/errors.js +1 -1
  161. package/lib/framework/build-all-flags.js +1 -1
  162. package/lib/framework/flags.js +1 -1
  163. package/lib/framework/help.js +1 -1
  164. package/lib/framework/index.js +1 -1
  165. package/lib/framework/output.js +1 -1
  166. package/lib/framework/response.js +1 -1
  167. package/lib/framework/runner-alias.js +1 -1
  168. package/lib/framework/runner.js +1 -1
  169. package/lib/framework/schema-export.js +1 -1
  170. package/lib/framework/types.js +1 -1
  171. package/lib/generated/build-info.js +1 -1
  172. package/lib/help.js +1 -1
  173. package/lib/skills/main.js +1 -1
  174. package/lib/skills/npx-skills-add.js +1 -1
  175. package/lib/telemetry/cli-command-trace.js +1 -1
  176. package/lib/telemetry/cli-help-trace.js +1 -1
  177. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  178. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  179. package/lib/telemetry/send-cli-trace-log.js +1 -1
  180. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  181. package/lib/utils/ai_config.js +1 -1
  182. package/lib/utils/apply-jq-filter.js +1 -1
  183. package/lib/utils/cdn-config.js +1 -1
  184. package/lib/utils/check-sdk-version.js +1 -1
  185. package/lib/utils/cli-version-check.js +1 -1
  186. package/lib/utils/cli-version-policy.js +1 -1
  187. package/lib/utils/config.js +1 -1
  188. package/lib/utils/copy-directory.js +1 -1
  189. package/lib/utils/entity-with-id.js +1 -1
  190. package/lib/utils/file-utils.js +1 -1
  191. package/lib/utils/guides-cdn.js +1 -1
  192. package/lib/utils/http-client.js +1 -1
  193. package/lib/utils/is-non-interactive.js +1 -1
  194. package/lib/utils/logger.js +1 -1
  195. package/lib/utils/params.js +1 -1
  196. package/lib/utils/platform.js +1 -1
  197. package/lib/utils/rules-cdn.js +1 -1
  198. package/lib/utils/sleep.js +1 -1
  199. package/lib/utils/template-replacer.js +1 -1
  200. package/lib/utils/update-notice.js +1 -1
  201. package/lib/utils/version.js +1 -1
  202. package/lib/utils/with-active-cookie.js +1 -1
  203. package/lib/utils/write-cli-side-channel.js +1 -1
  204. package/package.json +1 -1
@@ -1 +1 @@
1
- const a77_0x4f0c13=a77_0x17e7;(function(_0x254024,_0x501004){const _0x1f35b3=a77_0x17e7,_0x489e8c=_0x254024();while(!![]){try{const _0x26126d=-parseInt(_0x1f35b3(0x141))/0x1+-parseInt(_0x1f35b3(0x11e))/0x2*(-parseInt(_0x1f35b3(0x15b))/0x3)+-parseInt(_0x1f35b3(0x111))/0x4+parseInt(_0x1f35b3(0x11b))/0x5*(-parseInt(_0x1f35b3(0x137))/0x6)+-parseInt(_0x1f35b3(0x13d))/0x7*(-parseInt(_0x1f35b3(0x109))/0x8)+-parseInt(_0x1f35b3(0x118))/0x9*(-parseInt(_0x1f35b3(0x12f))/0xa)+parseInt(_0x1f35b3(0x13b))/0xb;if(_0x26126d===_0x501004)break;else _0x489e8c['push'](_0x489e8c['shift']());}catch(_0x58bd67){_0x489e8c['push'](_0x489e8c['shift']());}}}(a77_0x5f6d,0xee594));import a77_0x2fb8cf from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a77_0x17e7(_0x2688b4,_0x295deb){_0x2688b4=_0x2688b4-0x105;const _0x5f6d64=a77_0x5f6d();let _0x17e765=_0x5f6d64[_0x2688b4];return _0x17e765;}function a77_0x5f6d(){const _0x477039=['\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','currentApp','\x20\x20\x20\x20accessKey:\x20\x20','✗\x20Not\x20logged\x20in','✗\x20Invalid\x20JSON','7729806QYiFra','value','(default)','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','4609671tStrlZ','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','2732457FsGbaM','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','platform','\x20\x20Auth','1442764OtIgVb','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','apiDir','\x20\x20Merged\x20Config','keys','status','check','doctor','empty','accessKey','explicitAppName','(not\x20set)','✓\x20Valid\x20JSON','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','log','(not\x20found)','Project','missing','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','source','unknown','\x20(default)','slice','format','green','3KkjpMY','\x20\x20Apps','appcode','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','yellow','24SXAPTw','\x20\x20API\x20Endpoints','\x20\x20Config\x20JSON','✓\x20Valid','(set\x20via\x20file,\x20length=','(none)','gray','\x20←\x20current','2863180lHtOiD','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','arch','cookie','env','(set,\x20length=','message','9oCuPgX','Global','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','5CVXTuG','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','verbose','3557062vRwQpA','locale','defaultApp','(default:\x20','padEnd','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','read','red','repeat','length','pageSize','apps','\x20\x20runtimeDomain:\x20\x20\x20','version','(no\x20file)','(missing)','bold','10544910GBAwyf','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a77_0x5f6d=function(){return _0x477039;};return a77_0x5f6d();}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x2861f9){const _0xb34d4b=a77_0x17e7,_0x15db1d=GIT_COMMIT!==_0xb34d4b(0x156)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0xb34d4b(0x158)](0x0,0xa)+')':VERSION,_0x1cd186=buildConfigFromFlags({}),_0x570f7d=getCookie();console[_0xb34d4b(0x150)](),console[_0xb34d4b(0x150)](a77_0x2fb8cf['bold'](CLI_BIN_NAME+'\x20doctor')),console[_0xb34d4b(0x150)](a77_0x2fb8cf[_0xb34d4b(0x10f)]('─'[_0xb34d4b(0x126)](0x32))),console['log'](_0xb34d4b(0x154)+_0x15db1d),console[_0xb34d4b(0x150)](_0xb34d4b(0x142)+process[_0xb34d4b(0x12b)]),console[_0xb34d4b(0x150)](_0xb34d4b(0x123)+process[_0xb34d4b(0x13f)]+'\x20'+process[_0xb34d4b(0x113)]),console['log'](),console[_0xb34d4b(0x150)](a77_0x2fb8cf['bold']('\x20\x20Config\x20Files')),console[_0xb34d4b(0x150)](a77_0x2fb8cf[_0xb34d4b(0x10f)](_0xb34d4b(0x143)[_0xb34d4b(0x126)](0x1e)));const _0x5052d8=getGlobalConfigPath(),_0x36c8e6=getProjectConfigPath();console[_0xb34d4b(0x150)](_0xb34d4b(0x106)+(_0x5052d8||a77_0x2fb8cf[_0xb34d4b(0x10f)]('(not\x20found)'))),console[_0xb34d4b(0x150)](_0xb34d4b(0x11a)+(_0x36c8e6||a77_0x2fb8cf[_0xb34d4b(0x10f)](_0xb34d4b(0x151)))),console[_0xb34d4b(0x150)](),console[_0xb34d4b(0x150)](a77_0x2fb8cf[_0xb34d4b(0x12e)](_0xb34d4b(0x10b))),console[_0xb34d4b(0x150)](a77_0x2fb8cf['gray'](_0xb34d4b(0x143)['repeat'](0x1e)));const _0x4c4c27=(_0xdeaee6,_0x48727e)=>{const _0x5cfa28=_0xb34d4b;if(!_0x48727e){console[_0x5cfa28(0x150)]('\x20\x20'+_0xdeaee6['padEnd'](0x11)+'\x20'+a77_0x2fb8cf[_0x5cfa28(0x10f)](_0x5cfa28(0x12c)));return;}const _0x5ba17e=inspectCliConfigJsonFile(_0x48727e);if(_0x5ba17e[_0x5cfa28(0x147)]==='ok')console[_0x5cfa28(0x150)]('\x20\x20'+_0xdeaee6[_0x5cfa28(0x122)](0x11)+'\x20'+a77_0x2fb8cf[_0x5cfa28(0x15a)](_0x5cfa28(0x14e)));else{if(_0x5ba17e[_0x5cfa28(0x147)]===_0x5cfa28(0x14a))console[_0x5cfa28(0x150)]('\x20\x20'+_0xdeaee6[_0x5cfa28(0x122)](0x11)+'\x20'+a77_0x2fb8cf[_0x5cfa28(0x108)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x5ba17e[_0x5cfa28(0x147)]===_0x5cfa28(0x153)?console[_0x5cfa28(0x150)]('\x20\x20'+_0xdeaee6[_0x5cfa28(0x122)](0x11)+'\x20'+a77_0x2fb8cf['gray'](_0x5cfa28(0x12d))):(console[_0x5cfa28(0x150)]('\x20\x20'+_0xdeaee6[_0x5cfa28(0x122)](0x11)+'\x20'+a77_0x2fb8cf[_0x5cfa28(0x125)](_0x5cfa28(0x136))),console[_0x5cfa28(0x150)]('\x20\x20'+''[_0x5cfa28(0x122)](0x11)+'\x20'+a77_0x2fb8cf[_0x5cfa28(0x125)](_0x5ba17e[_0x5cfa28(0x117)])));}};_0x4c4c27(_0xb34d4b(0x119),_0x5052d8),_0x4c4c27(_0xb34d4b(0x152),_0x36c8e6),console['log'](),console[_0xb34d4b(0x150)](a77_0x2fb8cf[_0xb34d4b(0x12e)](_0xb34d4b(0x145))),console[_0xb34d4b(0x150)](a77_0x2fb8cf[_0xb34d4b(0x10f)]('\x20\x20─'[_0xb34d4b(0x126)](0x1e))),console[_0xb34d4b(0x150)](_0xb34d4b(0x132)+(_0x1cd186['appCode']||a77_0x2fb8cf['red'](_0xb34d4b(0x14d)))),console[_0xb34d4b(0x150)](_0xb34d4b(0x13c)+_0x1cd186[_0xb34d4b(0x115)]),console[_0xb34d4b(0x150)](_0xb34d4b(0x13e)+_0x1cd186[_0xb34d4b(0x11f)]),console[_0xb34d4b(0x150)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1cd186[_0xb34d4b(0x144)]),console[_0xb34d4b(0x150)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x1cd186[_0xb34d4b(0x120)]||a77_0x2fb8cf['gray'](_0xb34d4b(0x10e)))),console[_0xb34d4b(0x150)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x1cd186[_0xb34d4b(0x133)]||a77_0x2fb8cf['gray'](_0xb34d4b(0x10e)))),console[_0xb34d4b(0x150)]('\x20\x20explicitAppName:\x20'+(_0x1cd186[_0xb34d4b(0x14c)]||a77_0x2fb8cf[_0xb34d4b(0x10f)]('(none)'))),console[_0xb34d4b(0x150)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1cd186[_0xb34d4b(0x159)]||a77_0x2fb8cf['gray'](_0xb34d4b(0x121)+DEFAULT_CONFIG_VALUES[_0xb34d4b(0x159)]+')'))),console[_0xb34d4b(0x150)](_0xb34d4b(0x131)+(_0x1cd186[_0xb34d4b(0x128)]??a77_0x2fb8cf[_0xb34d4b(0x10f)](_0xb34d4b(0x139)))),console[_0xb34d4b(0x150)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x1cd186['riskLevel']),console['log'](_0xb34d4b(0x112)+_0x1cd186[_0xb34d4b(0x11d)]),console[_0xb34d4b(0x150)](_0xb34d4b(0x14f)+(_0x1cd186[_0xb34d4b(0x114)]?a77_0x2fb8cf[_0xb34d4b(0x15a)](_0xb34d4b(0x116)+_0x1cd186[_0xb34d4b(0x114)][_0xb34d4b(0x127)]+')'):_0x570f7d?a77_0x2fb8cf[_0xb34d4b(0x15a)](_0xb34d4b(0x10d)+_0x570f7d[_0xb34d4b(0x127)]+')'):a77_0x2fb8cf[_0xb34d4b(0x10f)](_0xb34d4b(0x10e))));const _0x199b31=Object[_0xb34d4b(0x146)](_0x1cd186['apps']);if(_0x199b31[_0xb34d4b(0x127)]>0x0){console[_0xb34d4b(0x150)](),console['log'](a77_0x2fb8cf[_0xb34d4b(0x12e)](_0xb34d4b(0x15c))),console[_0xb34d4b(0x150)](a77_0x2fb8cf[_0xb34d4b(0x10f)]('\x20\x20─'[_0xb34d4b(0x126)](0x1e)));for(const _0x97b27 of _0x199b31){const _0xb0779a=_0x1cd186[_0xb34d4b(0x129)][_0x97b27],_0x5f5a42=_0x97b27===_0x1cd186[_0xb34d4b(0x120)],_0x49590d=_0x97b27===_0x1cd186[_0xb34d4b(0x133)],_0x2025eb=_0x49590d?a77_0x2fb8cf[_0xb34d4b(0x15a)](_0xb34d4b(0x110)):'',_0x5a9a6c=_0x5f5a42?_0xb34d4b(0x157):'';console[_0xb34d4b(0x150)]('\x20\x20'+_0x97b27+_0x5a9a6c+_0x2025eb),console[_0xb34d4b(0x150)](_0xb34d4b(0x11c)+_0xb0779a[_0xb34d4b(0x105)]);const _0x35f29e=buildAppDoctorFields(_0xb0779a,{'env':_0x1cd186[_0xb34d4b(0x115)],'apiDir':_0x1cd186['raw'][_0xb34d4b(0x144)]||DEFAULT_CONFIG_VALUES[_0xb34d4b(0x144)],'cookie':_0x1cd186[_0xb34d4b(0x114)]||_0x570f7d||undefined,'accessKey':_0x1cd186[_0xb34d4b(0x14b)]});console['log']('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x35f29e['env'][_0xb34d4b(0x138)]+'\x20\x20'+a77_0x2fb8cf[_0xb34d4b(0x10f)]('('+_0x35f29e['env'][_0xb34d4b(0x155)]+')')),console['log'](_0xb34d4b(0x13a)+_0x35f29e['apiDir'][_0xb34d4b(0x138)]+'\x20\x20'+a77_0x2fb8cf[_0xb34d4b(0x10f)]('('+_0x35f29e[_0xb34d4b(0x144)][_0xb34d4b(0x155)]+')'));const _0x9b5450=_0x35f29e[_0xb34d4b(0x114)]['value']?a77_0x2fb8cf[_0xb34d4b(0x15a)](_0xb34d4b(0x116)+_0x35f29e[_0xb34d4b(0x114)][_0xb34d4b(0x138)]['length']+')'):a77_0x2fb8cf[_0xb34d4b(0x10f)](_0xb34d4b(0x10e));console['log']('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x9b5450+'\x20\x20'+a77_0x2fb8cf[_0xb34d4b(0x10f)]('('+_0x35f29e[_0xb34d4b(0x114)][_0xb34d4b(0x155)]+')'));const _0x273bf0=_0x35f29e['accessKey']['value']?a77_0x2fb8cf[_0xb34d4b(0x15a)](_0xb34d4b(0x116)+_0x35f29e[_0xb34d4b(0x14b)][_0xb34d4b(0x138)][_0xb34d4b(0x127)]+')'):a77_0x2fb8cf[_0xb34d4b(0x10f)](_0xb34d4b(0x10e));console[_0xb34d4b(0x150)](_0xb34d4b(0x134)+_0x273bf0+'\x20\x20'+a77_0x2fb8cf[_0xb34d4b(0x10f)]('('+_0x35f29e[_0xb34d4b(0x14b)][_0xb34d4b(0x155)]+')'));}}console['log'](),console[_0xb34d4b(0x150)](a77_0x2fb8cf[_0xb34d4b(0x12e)](_0xb34d4b(0x10a))),console['log'](a77_0x2fb8cf[_0xb34d4b(0x10f)]('\x20\x20─'['repeat'](0x1e))),console[_0xb34d4b(0x150)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0xb34d4b(0x150)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0xb34d4b(0x150)](_0xb34d4b(0x12a)+getRuntimeDomain()),console['log'](),console[_0xb34d4b(0x150)](a77_0x2fb8cf['bold'](_0xb34d4b(0x140))),console[_0xb34d4b(0x150)](a77_0x2fb8cf[_0xb34d4b(0x10f)](_0xb34d4b(0x143)['repeat'](0x1e)));if(_0x570f7d){const _0x3be383=await getIsSessionValid();console[_0xb34d4b(0x150)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3be383?a77_0x2fb8cf['green'](_0xb34d4b(0x10c)):a77_0x2fb8cf[_0xb34d4b(0x125)]('✗\x20Expired')));}else console[_0xb34d4b(0x150)](_0xb34d4b(0x130)+a77_0x2fb8cf[_0xb34d4b(0x125)](_0xb34d4b(0x135)));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a77_0x4f0c13(0x149),'command':a77_0x4f0c13(0x148),'description':a77_0x4f0c13(0x107),'risk':a77_0x4f0c13(0x124),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a77_0x472820=a77_0x1094;(function(_0x2376ea,_0x3c6c0c){const _0x192b0d=a77_0x1094,_0x16fa79=_0x2376ea();while(!![]){try{const _0x38a39b=parseInt(_0x192b0d(0x1c9))/0x1*(parseInt(_0x192b0d(0x1c7))/0x2)+-parseInt(_0x192b0d(0x1e2))/0x3*(-parseInt(_0x192b0d(0x1b5))/0x4)+-parseInt(_0x192b0d(0x1d9))/0x5*(-parseInt(_0x192b0d(0x18d))/0x6)+parseInt(_0x192b0d(0x1cd))/0x7*(parseInt(_0x192b0d(0x18e))/0x8)+-parseInt(_0x192b0d(0x1c3))/0x9*(parseInt(_0x192b0d(0x1ac))/0xa)+-parseInt(_0x192b0d(0x1d7))/0xb+parseInt(_0x192b0d(0x1d2))/0xc;if(_0x38a39b===_0x3c6c0c)break;else _0x16fa79['push'](_0x16fa79['shift']());}catch(_0x166832){_0x16fa79['push'](_0x16fa79['shift']());}}}(a77_0x4865,0xd3bab));import a77_0x2bcdec from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';function a77_0x1094(_0x168256,_0x127572){_0x168256=_0x168256-0x18d;const _0x48655c=a77_0x4865();let _0x1094e3=_0x48655c[_0x168256];return _0x1094e3;}import{buildAppDoctorFields}from'../config/schema.js';function a77_0x4865(){const _0x2d1f94=['\x20\x20\x20\x20appcode:\x20\x20\x20\x20','160392MeWChE','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','green','(none)','\x20\x20runtimeDomain:\x20\x20\x20','(set,\x20length=','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20(default)','accessKey','✗\x20Expired','\x20\x20─','(not\x20found)','version','value','23607sZuEtZ','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','raw','✗\x20Invalid\x20JSON','81724Ebgljw','arch','38JzoKdS','padEnd','currentApp','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','7lEUxfN','source','\x20←\x20current','defaultApp','\x20\x20API\x20Endpoints','6285492MUJzDp','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','platform','Global','log','14427908octRxB','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','35TmUjvu','env','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','yellow','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(missing)','unknown','(default:\x20','(not\x20set)','63kSfCLA','red','7746YiAfaO','3368696WSiYyu','verbose','format','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Apps','length','missing','✗\x20Not\x20logged\x20in','appCode','locale','doctor','status','gray','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','apiDir','⚠\x20Empty\x20(treated\x20as\x20{})','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20\x20\x20accessKey:\x20\x20','explicitAppName','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','riskLevel','keys','✓\x20Valid\x20JSON','repeat','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid','cookie','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','4460cSKxAo','(no\x20file)','(set\x20via\x20file,\x20length=','\x20\x20explicitAppName:\x20','\x20doctor','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bold','message'];a77_0x4865=function(){return _0x2d1f94;};return a77_0x4865();}async function execute(_0x1b5da9){const _0xea0f30=a77_0x1094,_0x1d35c6=GIT_COMMIT!==_0xea0f30(0x1df)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x42ebc2=buildConfigFromFlags({}),_0x20fc3f=getCookie();console[_0xea0f30(0x1d6)](),console[_0xea0f30(0x1d6)](a77_0x2bcdec[_0xea0f30(0x1b2)](CLI_BIN_NAME+_0xea0f30(0x1b0))),console[_0xea0f30(0x1d6)](a77_0x2bcdec[_0xea0f30(0x19a)]('─'[_0xea0f30(0x1a7)](0x32))),console[_0xea0f30(0x1d6)](_0xea0f30(0x1d3)+_0x1d35c6),console[_0xea0f30(0x1d6)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0xea0f30(0x1c1)]),console[_0xea0f30(0x1d6)](_0xea0f30(0x1bb)+process[_0xea0f30(0x1d4)]+'\x20'+process[_0xea0f30(0x1c8)]),console[_0xea0f30(0x1d6)](),console['log'](a77_0x2bcdec[_0xea0f30(0x1b2)](_0xea0f30(0x19c))),console[_0xea0f30(0x1d6)](a77_0x2bcdec[_0xea0f30(0x19a)](_0xea0f30(0x1bf)['repeat'](0x1e)));const _0x3890f7=getGlobalConfigPath(),_0x526665=getProjectConfigPath();console[_0xea0f30(0x1d6)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3890f7||a77_0x2bcdec[_0xea0f30(0x19a)](_0xea0f30(0x1c0)))),console['log'](_0xea0f30(0x1a8)+(_0x526665||a77_0x2bcdec['gray'](_0xea0f30(0x1c0)))),console['log'](),console[_0xea0f30(0x1d6)](a77_0x2bcdec[_0xea0f30(0x1b2)](_0xea0f30(0x1a3))),console[_0xea0f30(0x1d6)](a77_0x2bcdec[_0xea0f30(0x19a)](_0xea0f30(0x1bf)[_0xea0f30(0x1a7)](0x1e)));const _0x46f944=(_0x2ad965,_0x44fd5b)=>{const _0x3e4561=_0xea0f30;if(!_0x44fd5b){console['log']('\x20\x20'+_0x2ad965[_0x3e4561(0x1ca)](0x11)+'\x20'+a77_0x2bcdec[_0x3e4561(0x19a)](_0x3e4561(0x1ad)));return;}const _0xea03c9=inspectCliConfigJsonFile(_0x44fd5b);if(_0xea03c9['status']==='ok')console[_0x3e4561(0x1d6)]('\x20\x20'+_0x2ad965['padEnd'](0x11)+'\x20'+a77_0x2bcdec[_0x3e4561(0x1b7)](_0x3e4561(0x1a6)));else{if(_0xea03c9[_0x3e4561(0x199)]==='empty')console[_0x3e4561(0x1d6)]('\x20\x20'+_0x2ad965[_0x3e4561(0x1ca)](0x11)+'\x20'+a77_0x2bcdec[_0x3e4561(0x1dc)](_0x3e4561(0x19e)));else _0xea03c9['status']===_0x3e4561(0x194)?console[_0x3e4561(0x1d6)]('\x20\x20'+_0x2ad965[_0x3e4561(0x1ca)](0x11)+'\x20'+a77_0x2bcdec[_0x3e4561(0x19a)](_0x3e4561(0x1de))):(console[_0x3e4561(0x1d6)]('\x20\x20'+_0x2ad965[_0x3e4561(0x1ca)](0x11)+'\x20'+a77_0x2bcdec[_0x3e4561(0x1e3)](_0x3e4561(0x1c6))),console['log']('\x20\x20'+''['padEnd'](0x11)+'\x20'+a77_0x2bcdec[_0x3e4561(0x1e3)](_0xea03c9[_0x3e4561(0x1b3)])));}};_0x46f944(_0xea0f30(0x1d5),_0x3890f7),_0x46f944('Project',_0x526665),console[_0xea0f30(0x1d6)](),console[_0xea0f30(0x1d6)](a77_0x2bcdec[_0xea0f30(0x1b2)]('\x20\x20Merged\x20Config')),console['log'](a77_0x2bcdec['gray'](_0xea0f30(0x1bf)['repeat'](0x1e))),console[_0xea0f30(0x1d6)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x42ebc2[_0xea0f30(0x196)]||a77_0x2bcdec[_0xea0f30(0x1e3)](_0xea0f30(0x1e1)))),console[_0xea0f30(0x1d6)](_0xea0f30(0x1dd)+_0x42ebc2['env']),console[_0xea0f30(0x1d6)](_0xea0f30(0x1d8)+_0x42ebc2[_0xea0f30(0x197)]),console[_0xea0f30(0x1d6)](_0xea0f30(0x1b1)+_0x42ebc2[_0xea0f30(0x19d)]),console['log'](_0xea0f30(0x1a2)+(_0x42ebc2[_0xea0f30(0x1d0)]||a77_0x2bcdec[_0xea0f30(0x19a)]('(none)'))),console[_0xea0f30(0x1d6)](_0xea0f30(0x191)+(_0x42ebc2[_0xea0f30(0x1cb)]||a77_0x2bcdec['gray'](_0xea0f30(0x1b8)))),console[_0xea0f30(0x1d6)](_0xea0f30(0x1af)+(_0x42ebc2[_0xea0f30(0x1a1)]||a77_0x2bcdec['gray'](_0xea0f30(0x1b8)))),console[_0xea0f30(0x1d6)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x42ebc2[_0xea0f30(0x190)]||a77_0x2bcdec['gray'](_0xea0f30(0x1e0)+DEFAULT_CONFIG_VALUES[_0xea0f30(0x190)]+')'))),console['log']('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x42ebc2['pageSize']??a77_0x2bcdec[_0xea0f30(0x19a)]('(default)'))),console['log'](_0xea0f30(0x1b6)+_0x42ebc2[_0xea0f30(0x1a4)]),console[_0xea0f30(0x1d6)](_0xea0f30(0x19b)+_0x42ebc2[_0xea0f30(0x18f)]),console['log'](_0xea0f30(0x1c4)+(_0x42ebc2['cookie']?a77_0x2bcdec[_0xea0f30(0x1b7)](_0xea0f30(0x1ba)+_0x42ebc2['cookie'][_0xea0f30(0x193)]+')'):_0x20fc3f?a77_0x2bcdec[_0xea0f30(0x1b7)](_0xea0f30(0x1ae)+_0x20fc3f[_0xea0f30(0x193)]+')'):a77_0x2bcdec[_0xea0f30(0x19a)](_0xea0f30(0x1b8))));const _0xc39682=Object[_0xea0f30(0x1a5)](_0x42ebc2['apps']);if(_0xc39682[_0xea0f30(0x193)]>0x0){console[_0xea0f30(0x1d6)](),console[_0xea0f30(0x1d6)](a77_0x2bcdec[_0xea0f30(0x1b2)](_0xea0f30(0x192))),console['log'](a77_0x2bcdec[_0xea0f30(0x19a)]('\x20\x20─'['repeat'](0x1e)));for(const _0x245d4d of _0xc39682){const _0x670aed=_0x42ebc2['apps'][_0x245d4d],_0xd9dd64=_0x245d4d===_0x42ebc2['defaultApp'],_0x1374fc=_0x245d4d===_0x42ebc2['currentApp'],_0x293c0f=_0x1374fc?a77_0x2bcdec['green'](_0xea0f30(0x1cf)):'',_0x1503e9=_0xd9dd64?_0xea0f30(0x1bc):'';console[_0xea0f30(0x1d6)]('\x20\x20'+_0x245d4d+_0x1503e9+_0x293c0f),console[_0xea0f30(0x1d6)](_0xea0f30(0x1b4)+_0x670aed['appcode']);const _0x5cd17a=buildAppDoctorFields(_0x670aed,{'env':_0x42ebc2[_0xea0f30(0x1da)],'apiDir':_0x42ebc2[_0xea0f30(0x1c5)]['apiDir']||DEFAULT_CONFIG_VALUES[_0xea0f30(0x19d)],'cookie':_0x42ebc2[_0xea0f30(0x1aa)]||_0x20fc3f||undefined,'accessKey':_0x42ebc2[_0xea0f30(0x1bd)]});console[_0xea0f30(0x1d6)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5cd17a[_0xea0f30(0x1da)][_0xea0f30(0x1c2)]+'\x20\x20'+a77_0x2bcdec['gray']('('+_0x5cd17a[_0xea0f30(0x1da)]['source']+')')),console['log'](_0xea0f30(0x1db)+_0x5cd17a[_0xea0f30(0x19d)][_0xea0f30(0x1c2)]+'\x20\x20'+a77_0x2bcdec[_0xea0f30(0x19a)]('('+_0x5cd17a[_0xea0f30(0x19d)][_0xea0f30(0x1ce)]+')'));const _0x5442d4=_0x5cd17a[_0xea0f30(0x1aa)]['value']?a77_0x2bcdec[_0xea0f30(0x1b7)]('(set,\x20length='+_0x5cd17a[_0xea0f30(0x1aa)][_0xea0f30(0x1c2)]['length']+')'):a77_0x2bcdec[_0xea0f30(0x19a)]('(none)');console[_0xea0f30(0x1d6)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x5442d4+'\x20\x20'+a77_0x2bcdec[_0xea0f30(0x19a)]('('+_0x5cd17a[_0xea0f30(0x1aa)]['source']+')'));const _0x155cfb=_0x5cd17a['accessKey'][_0xea0f30(0x1c2)]?a77_0x2bcdec[_0xea0f30(0x1b7)](_0xea0f30(0x1ba)+_0x5cd17a[_0xea0f30(0x1bd)][_0xea0f30(0x1c2)][_0xea0f30(0x193)]+')'):a77_0x2bcdec[_0xea0f30(0x19a)](_0xea0f30(0x1b8));console[_0xea0f30(0x1d6)](_0xea0f30(0x1a0)+_0x155cfb+'\x20\x20'+a77_0x2bcdec[_0xea0f30(0x19a)]('('+_0x5cd17a[_0xea0f30(0x1bd)][_0xea0f30(0x1ce)]+')'));}}console[_0xea0f30(0x1d6)](),console['log'](a77_0x2bcdec[_0xea0f30(0x1b2)](_0xea0f30(0x1d1))),console['log'](a77_0x2bcdec['gray'](_0xea0f30(0x1bf)[_0xea0f30(0x1a7)](0x1e))),console['log'](_0xea0f30(0x1cc)+getApiDomain()),console['log']('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0xea0f30(0x1d6)](_0xea0f30(0x1b9)+getRuntimeDomain()),console[_0xea0f30(0x1d6)](),console[_0xea0f30(0x1d6)](a77_0x2bcdec[_0xea0f30(0x1b2)]('\x20\x20Auth')),console[_0xea0f30(0x1d6)](a77_0x2bcdec['gray'](_0xea0f30(0x1bf)[_0xea0f30(0x1a7)](0x1e)));if(_0x20fc3f){const _0x12f6d9=await getIsSessionValid();console[_0xea0f30(0x1d6)](_0xea0f30(0x1ab)+(_0x12f6d9?a77_0x2bcdec[_0xea0f30(0x1b7)](_0xea0f30(0x1a9)):a77_0x2bcdec['red'](_0xea0f30(0x1be))));}else console[_0xea0f30(0x1d6)](_0xea0f30(0x1ab)+a77_0x2bcdec[_0xea0f30(0x1e3)](_0xea0f30(0x195)));return console[_0xea0f30(0x1d6)](),{'ok':!![]};}export const doctorDefinition={'service':a77_0x472820(0x198),'command':'check','description':a77_0x472820(0x19f),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- function a78_0x43da(_0x319b18,_0x4a2309){_0x319b18=_0x319b18-0x17f;const _0x47c2d9=a78_0x47c2();let _0x43dab9=_0x47c2d9[_0x319b18];return _0x43dab9;}const a78_0x5ef3f3=a78_0x43da;(function(_0x513a40,_0xb34788){const _0x22724d=a78_0x43da,_0x3198fd=_0x513a40();while(!![]){try{const _0x528a4f=parseInt(_0x22724d(0x194))/0x1*(-parseInt(_0x22724d(0x1a8))/0x2)+parseInt(_0x22724d(0x196))/0x3*(parseInt(_0x22724d(0x195))/0x4)+parseInt(_0x22724d(0x19b))/0x5*(parseInt(_0x22724d(0x192))/0x6)+-parseInt(_0x22724d(0x1a9))/0x7*(-parseInt(_0x22724d(0x1ac))/0x8)+parseInt(_0x22724d(0x197))/0x9*(parseInt(_0x22724d(0x1a7))/0xa)+-parseInt(_0x22724d(0x19c))/0xb*(-parseInt(_0x22724d(0x1b1))/0xc)+parseInt(_0x22724d(0x18e))/0xd*(-parseInt(_0x22724d(0x1a4))/0xe);if(_0x528a4f===_0xb34788)break;else _0x3198fd['push'](_0x3198fd['shift']());}catch(_0x3fddbf){_0x3198fd['push'](_0x3198fd['shift']());}}}(a78_0x47c2,0x21c2f));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';function a78_0x47c2(){const _0xcb90c2=['env','yes','str','validation','toLocaleString','26FdVehZ','init','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','检测到旧配置文件,正在自动升级...\x0a','96rdQIfq','\x0a✓\x20Successfully\x20initialized\x20','26527KmKVjT','8lyqBeY','380658tYEGdl','423brPqyZ','cwd','\x20\x20Env:\x20','nonInteractive','56590bwdvlU','55aopDKC','appCode','flagMissing','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','valid','defaultApp','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','\x20config','3037874uEYIcw','join','Usage:\x20','2110PqpSeE','4DpjYZc','1149127RxXnBf','boolean','some','8wkHkDe','\x20\x20Default:\x20','message','production','project','39324kdWKjI','\x20\x20Config:\x20','run','appcode','bool','Auto-confirm\x20prompts','string','log','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','Target\x20environment','global'];a78_0x47c2=function(){return _0xcb90c2;};return a78_0x47c2();}import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x4eb0e6){return{'appCode':_0x4eb0e6,'appName':_0x4eb0e6};}function writeInitConfig(_0x43536c,_0x41d72f,_0x300526){const _0xa1838e=a78_0x43da,_0x4153eb=resolveWriteConfigPath(_0x43536c),_0x29e1dd=buildCanonicalProjectConfig({},{'appCodes':_0x41d72f['map'](_0x7168db=>_0x7168db[_0xa1838e(0x19d)]),'env':_0x300526,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0xa1838e(0x18d)]()}});writeConfigFile(_0x4153eb,_0x29e1dd);const _0x404812=_0x43536c===_0xa1838e(0x188)?_0xa1838e(0x188):_0xa1838e(0x1b0);console['log'](_0xa1838e(0x193)+_0x404812+_0xa1838e(0x1a3)),console[_0xa1838e(0x185)]('\x20\x20Apps:\x20'+_0x41d72f['map'](_0x21a36d=>_0x21a36d[_0xa1838e(0x19d)])[_0xa1838e(0x1a5)](',\x20')),console['log'](_0xa1838e(0x1ad)+_0x29e1dd[_0xa1838e(0x1a1)]),console['log'](_0xa1838e(0x199)+_0x29e1dd['env']),console[_0xa1838e(0x185)](_0xa1838e(0x17f)+_0x4153eb);}async function runSmartInit(_0xf5789d){const _0xfc2085=a78_0x43da,_0x439c2b=process[_0xfc2085(0x198)](),_0x29fada=_0xf5789d['bool']('global')?_0xfc2085(0x188):_0xfc2085(0x1b0),_0x14b34a=_0xf5789d[_0xfc2085(0x18b)](_0xfc2085(0x189))||'production',_0x11c023=_0xf5789d[_0xfc2085(0x18b)]('appcode')||undefined,_0x4075f4=_0xf5789d['bool']('project');if(_0x4075f4){const {initConfig:_0x31b019}=await import('../../commands/project/init.js');return _0x31b019({'appcode':_0x11c023,'env':_0x14b34a,'autoYes':_0xf5789d[_0xfc2085(0x182)](_0xfc2085(0x18a))});}if(_0x29fada===_0xfc2085(0x1b0)){const _0x278e3b=existsSync(resolve(_0x439c2b,NEW_CONFIG_NAME)),_0x183807=LEGACY_CONFIG_NAMES[_0xfc2085(0x1ab)](_0x4b7cb6=>existsSync(resolve(_0x439c2b,_0x4b7cb6)));if(_0x183807&&!_0x278e3b)return console['log'](_0xfc2085(0x191)),upgradeApp(_0xf5789d[_0xfc2085(0x19a)],{'yes':_0xf5789d[_0xfc2085(0x182)](_0xfc2085(0x18a))});if(_0x278e3b)throw CliErrors[_0xfc2085(0x18c)](_0xfc2085(0x190),'Use\x20`'+CLI_BIN_NAME+_0xfc2085(0x1a2));}if(_0x11c023){const _0x1d7127=validateAppcode(_0x11c023);if(!_0x1d7127[_0xfc2085(0x1a0)])throw CliErrors['validation'](_0x1d7127[_0xfc2085(0x1ae)]);writeInitConfig(_0x29fada,[syntheticApp(_0x11c023)],_0x14b34a);return;}if(_0xf5789d['nonInteractive'])throw CliErrors[_0xfc2085(0x19e)](_0xfc2085(0x181),_0xfc2085(0x1a6)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0x499a03=getCookie(),_0x100c3b=await selectMultipleApps(_0x499a03),_0x578c66=_0x100c3b==='custom'?[syntheticApp(await promptCustomAppcode())]:_0x100c3b;writeInitConfig(_0x29fada,_0x578c66,_0x14b34a);}const initFlags=[{'name':a78_0x5ef3f3(0x188),'type':a78_0x5ef3f3(0x1aa),'description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a78_0x5ef3f3(0x189),'type':a78_0x5ef3f3(0x184),'description':a78_0x5ef3f3(0x187),'default':a78_0x5ef3f3(0x1af),'enum':[...RABETBASE_ENV_VALUES]},{'name':'appcode','type':'string','description':'App\x20code\x20to\x20initialize\x20with'},{'name':a78_0x5ef3f3(0x1b0),'type':'boolean','description':a78_0x5ef3f3(0x186),'default':![]},{'name':'yes','type':a78_0x5ef3f3(0x1aa),'description':a78_0x5ef3f3(0x183),'default':![]}];export const initDefinitions=[{'service':a78_0x5ef3f3(0x18f),'command':a78_0x5ef3f3(0x180),'description':a78_0x5ef3f3(0x19f),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x5e356a){return await runSmartInit(_0x5e356a),{'ok':!![]};}}];
1
+ const a78_0x21643d=a78_0x5ce9;(function(_0xeacfbe,_0x492667){const _0x642d10=a78_0x5ce9,_0x34de79=_0xeacfbe();while(!![]){try{const _0x2d6208=parseInt(_0x642d10(0x15b))/0x1*(-parseInt(_0x642d10(0x143))/0x2)+parseInt(_0x642d10(0x150))/0x3+-parseInt(_0x642d10(0x15f))/0x4+-parseInt(_0x642d10(0x14a))/0x5*(parseInt(_0x642d10(0x16a))/0x6)+-parseInt(_0x642d10(0x163))/0x7+parseInt(_0x642d10(0x16b))/0x8+-parseInt(_0x642d10(0x144))/0x9*(-parseInt(_0x642d10(0x14f))/0xa);if(_0x2d6208===_0x492667)break;else _0x34de79['push'](_0x34de79['shift']());}catch(_0x282e8d){_0x34de79['push'](_0x34de79['shift']());}}}(a78_0x1fc5,0xdb011));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';function a78_0x5ce9(_0x2380f9,_0x5f4319){_0x2380f9=_0x2380f9-0x142;const _0x1fc530=a78_0x1fc5();let _0x5ce9a6=_0x1fc530[_0x2380f9];return _0x5ce9a6;}function a78_0x1fc5(){const _0x1a432f=['8749488oSerHs','map','project','validation','\x20\x20Config:\x20','string','production','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','nonInteractive','join','32HYhiEX','9EIKdnV','\x20\x20Apps:\x20','Write\x20to\x20global\x20config\x20instead\x20of\x20project','log','yes','toLocaleString','510BgogPs','run','write','env','Use\x20`','30583270RZpqdB','1632087NnKPry','flagMissing','custom','init','appcode','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','str','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','some','Target\x20environment','appCode','93147SEYhdz','Usage:\x20','cwd','Auto-confirm\x20prompts','6723040EMbCAz','App\x20code\x20to\x20initialize\x20with','../../commands/project/init.js','boolean','4228861iqhrpC','defaultApp','global','\x20config','valid','\x20\x20Env:\x20','bool','1398btmCDT'];a78_0x1fc5=function(){return _0x1a432f;};return a78_0x1fc5();}import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x44d1dd){return{'appCode':_0x44d1dd,'appName':_0x44d1dd};}function writeInitConfig(_0x54c7a9,_0x30498a,_0x2db73a){const _0x59ad07=a78_0x5ce9,_0x4333ea=resolveWriteConfigPath(_0x54c7a9),_0x46fa9e=buildCanonicalProjectConfig({},{'appCodes':_0x30498a[_0x59ad07(0x16c)](_0x15fe77=>_0x15fe77['appCode']),'env':_0x2db73a,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x59ad07(0x149)]()}});writeConfigFile(_0x4333ea,_0x46fa9e);const _0xf6288e=_0x54c7a9===_0x59ad07(0x165)?_0x59ad07(0x165):_0x59ad07(0x16d);console[_0x59ad07(0x147)]('\x0a✓\x20Successfully\x20initialized\x20'+_0xf6288e+_0x59ad07(0x166)),console[_0x59ad07(0x147)](_0x59ad07(0x145)+_0x30498a[_0x59ad07(0x16c)](_0x126cb8=>_0x126cb8[_0x59ad07(0x15a)])[_0x59ad07(0x142)](',\x20')),console['log']('\x20\x20Default:\x20'+_0x46fa9e[_0x59ad07(0x164)]),console[_0x59ad07(0x147)](_0x59ad07(0x168)+_0x46fa9e[_0x59ad07(0x14d)]),console[_0x59ad07(0x147)](_0x59ad07(0x16f)+_0x4333ea);}async function runSmartInit(_0x465af8){const _0x4f86c5=a78_0x5ce9,_0x27ef69=process[_0x4f86c5(0x15d)](),_0x2c8788=_0x465af8[_0x4f86c5(0x169)](_0x4f86c5(0x165))?_0x4f86c5(0x165):_0x4f86c5(0x16d),_0x262aee=_0x465af8[_0x4f86c5(0x156)](_0x4f86c5(0x14d))||_0x4f86c5(0x171),_0x45ee5e=_0x465af8[_0x4f86c5(0x156)](_0x4f86c5(0x154))||undefined,_0x5c2718=_0x465af8[_0x4f86c5(0x169)](_0x4f86c5(0x16d));if(_0x5c2718){const {initConfig:_0x55e901}=await import(_0x4f86c5(0x161));return _0x55e901({'appcode':_0x45ee5e,'env':_0x262aee,'autoYes':_0x465af8[_0x4f86c5(0x169)](_0x4f86c5(0x148))});}if(_0x2c8788===_0x4f86c5(0x16d)){const _0x10aa1a=existsSync(resolve(_0x27ef69,NEW_CONFIG_NAME)),_0x197176=LEGACY_CONFIG_NAMES[_0x4f86c5(0x158)](_0x2c6dea=>existsSync(resolve(_0x27ef69,_0x2c6dea)));if(_0x197176&&!_0x10aa1a)return console[_0x4f86c5(0x147)]('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x465af8[_0x4f86c5(0x173)],{'yes':_0x465af8['bool'](_0x4f86c5(0x148))});if(_0x10aa1a)throw CliErrors[_0x4f86c5(0x16e)]('.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.',_0x4f86c5(0x14e)+CLI_BIN_NAME+'\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.');}if(_0x45ee5e){const _0x131016=validateAppcode(_0x45ee5e);if(!_0x131016[_0x4f86c5(0x167)])throw CliErrors['validation'](_0x131016['message']);writeInitConfig(_0x2c8788,[syntheticApp(_0x45ee5e)],_0x262aee);return;}if(_0x465af8['nonInteractive'])throw CliErrors[_0x4f86c5(0x151)](_0x4f86c5(0x154),_0x4f86c5(0x15c)+CLI_BIN_NAME+_0x4f86c5(0x172));const _0x50c8d0=getCookie(),_0x213077=await selectMultipleApps(_0x50c8d0),_0xe9fa9=_0x213077===_0x4f86c5(0x152)?[syntheticApp(await promptCustomAppcode())]:_0x213077;writeInitConfig(_0x2c8788,_0xe9fa9,_0x262aee);}const initFlags=[{'name':a78_0x21643d(0x165),'type':a78_0x21643d(0x162),'description':a78_0x21643d(0x146),'default':![]},{'name':a78_0x21643d(0x14d),'type':'string','description':a78_0x21643d(0x159),'default':a78_0x21643d(0x171),'enum':[...RABETBASE_ENV_VALUES]},{'name':a78_0x21643d(0x154),'type':a78_0x21643d(0x170),'description':a78_0x21643d(0x160)},{'name':'project','type':'boolean','description':a78_0x21643d(0x157),'default':![]},{'name':'yes','type':a78_0x21643d(0x162),'description':a78_0x21643d(0x15e),'default':![]}];export const initDefinitions=[{'service':a78_0x21643d(0x153),'command':a78_0x21643d(0x14b),'description':a78_0x21643d(0x155),'risk':a78_0x21643d(0x14c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x2f6e89){return await runSmartInit(_0x2f6e89),{'ok':!![]};}}];
@@ -1 +1 @@
1
- function a79_0x5ca8(_0x50e3ab,_0x17210){_0x50e3ab=_0x50e3ab-0xf5;const _0x453ea2=a79_0x453e();let _0x5ca81d=_0x453ea2[_0x50e3ab];return _0x5ca81d;}(function(_0x335a86,_0x3b2fa2){const _0x11bfe5=a79_0x5ca8,_0xdac0e2=_0x335a86();while(!![]){try{const _0x41dbb7=parseInt(_0x11bfe5(0xfc))/0x1+parseInt(_0x11bfe5(0xfb))/0x2+-parseInt(_0x11bfe5(0xf7))/0x3+-parseInt(_0x11bfe5(0xf9))/0x4*(-parseInt(_0x11bfe5(0xf8))/0x5)+-parseInt(_0x11bfe5(0xf5))/0x6+parseInt(_0x11bfe5(0xf6))/0x7*(parseInt(_0x11bfe5(0xfa))/0x8)+-parseInt(_0x11bfe5(0xfd))/0x9*(parseInt(_0x11bfe5(0xfe))/0xa);if(_0x41dbb7===_0x3b2fa2)break;else _0xdac0e2['push'](_0xdac0e2['shift']());}catch(_0x3f3a22){_0xdac0e2['push'](_0xdac0e2['shift']());}}}(a79_0x453e,0x19576));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];function a79_0x453e(){const _0x91652e=['450665uYjolL','8oStUkK','1003792AOIfyu','107938MOMiIS','151563tmMslL','496926efOpNt','30rmdmwB','442692yGZXgd','7ZFcfrP','504150XYxEjA'];a79_0x453e=function(){return _0x91652e;};return a79_0x453e();}
1
+ function a79_0x2e92(){const _0x11a5e9=['3032940dskeiJ','6742968NXFSnJ','1093420hvQETX','7001860uMfavm','9kfJFlt','4ubOvyI','3231lrYrJE','78fbbaEB','7WUdosR','2833773cmZChc','10068432uPQZRN'];a79_0x2e92=function(){return _0x11a5e9;};return a79_0x2e92();}function a79_0x1099(_0xf7b851,_0x385c5a){_0xf7b851=_0xf7b851-0x6f;const _0x2e923e=a79_0x2e92();let _0x109937=_0x2e923e[_0xf7b851];return _0x109937;}(function(_0xd2c4b4,_0x2c52e0){const _0x15bba8=a79_0x1099,_0xc6f31d=_0xd2c4b4();while(!![]){try{const _0x4a0452=parseInt(_0x15bba8(0x77))/0x1*(parseInt(_0x15bba8(0x78))/0x2)+-parseInt(_0x15bba8(0x6f))/0x3*(parseInt(_0x15bba8(0x76))/0x4)+parseInt(_0x15bba8(0x73))/0x5+parseInt(_0x15bba8(0x71))/0x6+parseInt(_0x15bba8(0x79))/0x7*(-parseInt(_0x15bba8(0x72))/0x8)+-parseInt(_0x15bba8(0x75))/0x9*(-parseInt(_0x15bba8(0x74))/0xa)+parseInt(_0x15bba8(0x70))/0xb;if(_0x4a0452===_0x2c52e0)break;else _0xc6f31d['push'](_0xc6f31d['shift']());}catch(_0x3d6729){_0xc6f31d['push'](_0xc6f31d['shift']());}}}(a79_0x2e92,0xa594b));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a80_0x216dbd=a80_0x56e0;function a80_0xf09f(){const _0x2ce530=['128IWHAOx','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','784089oRskUs','10754947XEklyd','=1\x20to\x20silence\x20this\x20hint.','slice','code','11277420GkTNZe','\x20\x20Set\x20','1381792SpEDFK','unknown_command','Hit\x20a\x20','126837qxJfVT','42BlFWJg','flag_missing','not_in_project','config_missing','trim','cancelled','2438324umwAmi','\x20issue\x20report\x20\x5c','service','auth_required','RABETBASE_DISABLE_ISSUE_NUDGE','61338QsHgll','message','length','\x20bug?\x20Help\x20us\x20fix\x20it:','command','replace','validation_error','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','write','has','95IABRLR','network_error','join','stderr'];a80_0xf09f=function(){return _0x2ce530;};return a80_0xf09f();}(function(_0x5a0b24,_0x1b1fb9){const _0x1303de=a80_0x56e0,_0x1a9241=_0x5a0b24();while(!![]){try{const _0x3ffb33=parseInt(_0x1303de(0xf2))/0x1+parseInt(_0x1303de(0xf6))/0x2*(parseInt(_0x1303de(0xf5))/0x3)+parseInt(_0x1303de(0xfc))/0x4+-parseInt(_0x1303de(0xe5))/0x5*(parseInt(_0x1303de(0x101))/0x6)+-parseInt(_0x1303de(0xec))/0x7+-parseInt(_0x1303de(0xe9))/0x8*(parseInt(_0x1303de(0xeb))/0x9)+parseInt(_0x1303de(0xf0))/0xa;if(_0x3ffb33===_0x1b1fb9)break;else _0x1a9241['push'](_0x1a9241['shift']());}catch(_0x1bb6eb){_0x1a9241['push'](_0x1a9241['shift']());}}}(a80_0xf09f,0xd76cc));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a80_0x56e0(_0x463962,_0xb32b86){_0x463962=_0x463962-0xdc;const _0xf09f85=a80_0xf09f();let _0x56e0f0=_0xf09f85[_0x463962];return _0x56e0f0;}export const NUDGE_OPT_OUT_ENV=a80_0x216dbd(0x100);const NUDGE_SUPPRESSED_CODES=new Set([a80_0x216dbd(0xfb),a80_0x216dbd(0xff),a80_0x216dbd(0xf9),a80_0x216dbd(0xf8),a80_0x216dbd(0xf3),a80_0x216dbd(0xf7),a80_0x216dbd(0xe1),a80_0x216dbd(0xe6)]),defaultWriter=_0x2ddbe0=>{const _0x5d4435=a80_0x216dbd;process[_0x5d4435(0xe8)][_0x5d4435(0xe3)](_0x2ddbe0);};export function shouldNudgeForError(_0x2b1974,_0x1daa02){const _0x367007=a80_0x216dbd;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x1daa02[_0x367007(0xfe)]==='issue'&&_0x1daa02[_0x367007(0xdf)]==='report')return![];if(_0x2b1974 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x367007(0xe4)](_0x2b1974[_0x367007(0xef)]);return!![];}export function printIssueReportNudgeForError(_0x9787c7,_0x3acee3,_0x1a5544=defaultWriter){if(!shouldNudgeForError(_0x9787c7,_0x3acee3))return;const _0x2eb84a=buildSuggestedTitle(_0x9787c7,_0x3acee3);_0x1a5544(formatNudge(_0x2eb84a));}function buildSuggestedTitle(_0x18b766,_0x1eec06){const _0x1dae89=a80_0x216dbd,_0x15ff6f=_0x18b766 instanceof Error?_0x18b766[_0x1dae89(0xdc)]:String(_0x18b766),_0x26eda5=_0x15ff6f[_0x1dae89(0xe0)](/[\r\n]+/g,'\x20')[_0x1dae89(0xe0)](/\s+/g,'\x20')[_0x1dae89(0xfa)]()[_0x1dae89(0xee)](0x0,0x78)[_0x1dae89(0xe0)](/"/g,'\x5c\x22'),_0x196203=CLI_BIN_NAME+'\x20'+_0x1eec06[_0x1dae89(0xfe)]+'\x20'+_0x1eec06[_0x1dae89(0xdf)];return _0x26eda5[_0x1dae89(0xdd)]>0x0?_0x196203+':\x20'+_0x26eda5:_0x196203;}function formatNudge(_0x2e1f47){const _0x547961=a80_0x216dbd;return['',_0x547961(0xf4)+CLI_BIN_NAME+_0x547961(0xde),'\x20\x20'+CLI_BIN_NAME+_0x547961(0xfd),'\x20\x20\x20\x20--title\x20\x22'+_0x2e1f47+'\x22\x20\x5c',_0x547961(0xe2),_0x547961(0xea),_0x547961(0xf1)+NUDGE_OPT_OUT_ENV+_0x547961(0xed),''][_0x547961(0xe7)]('\x0a');}
1
+ const a80_0x169b73=a80_0x5eb7;(function(_0x20492e,_0x42ce2f){const _0x1ae04b=a80_0x5eb7,_0x2e9b86=_0x20492e();while(!![]){try{const _0x4dc5d9=parseInt(_0x1ae04b(0x1e5))/0x1*(parseInt(_0x1ae04b(0x1ef))/0x2)+-parseInt(_0x1ae04b(0x201))/0x3*(parseInt(_0x1ae04b(0x1e2))/0x4)+parseInt(_0x1ae04b(0x1e9))/0x5+-parseInt(_0x1ae04b(0x203))/0x6+-parseInt(_0x1ae04b(0x1e3))/0x7*(-parseInt(_0x1ae04b(0x1e6))/0x8)+parseInt(_0x1ae04b(0x1f1))/0x9*(parseInt(_0x1ae04b(0x1ff))/0xa)+parseInt(_0x1ae04b(0x202))/0xb;if(_0x4dc5d9===_0x42ce2f)break;else _0x2e9b86['push'](_0x2e9b86['shift']());}catch(_0x8abf5d){_0x2e9b86['push'](_0x2e9b86['shift']());}}}(a80_0x5df1,0xe5200));function a80_0x5eb7(_0x564674,_0x1c40c0){_0x564674=_0x564674-0x1e1;const _0x5df1cf=a80_0x5df1();let _0x5eb7ac=_0x5df1cf[_0x564674];return _0x5eb7ac;}import{CliError}from'../../errors.js';function a80_0x5df1(){const _0x5b2474=['code','1436390GtSKiH','=1\x20to\x20silence\x20this\x20hint.','not_in_project','validation_error','length','has','1502QdPAlm','trim','1647CKvdEh','report','flag_missing','cancelled','\x20\x20Set\x20','\x20issue\x20report\x20\x5c','service','stderr','RABETBASE_DISABLE_ISSUE_NUDGE','\x22\x20\x5c','unknown_command','\x20\x20\x20\x20--title\x20\x22','command','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','70540mOVRml','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','3MZiFKN','9850511FlLhhd','9560232pdsoYX','network_error','config_missing','3810056IcVQpC','17899KXRyJS','replace','1322dkvvwN','56FICVVW','auth_required'];a80_0x5df1=function(){return _0x5b2474;};return a80_0x5df1();}import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a80_0x169b73(0x1f9);const NUDGE_SUPPRESSED_CODES=new Set([a80_0x169b73(0x1f4),a80_0x169b73(0x1e7),a80_0x169b73(0x1e1),a80_0x169b73(0x1eb),a80_0x169b73(0x1fb),a80_0x169b73(0x1f3),a80_0x169b73(0x1ec),a80_0x169b73(0x204)]),defaultWriter=_0x40327d=>{const _0x1720ac=a80_0x169b73;process[_0x1720ac(0x1f8)]['write'](_0x40327d);};export function shouldNudgeForError(_0x14835a,_0x4abac2){const _0x57e4c2=a80_0x169b73;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x4abac2[_0x57e4c2(0x1f7)]==='issue'&&_0x4abac2[_0x57e4c2(0x1fd)]===_0x57e4c2(0x1f2))return![];if(_0x14835a instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x57e4c2(0x1ee)](_0x14835a[_0x57e4c2(0x1e8)]);return!![];}export function printIssueReportNudgeForError(_0x5a51e5,_0x4c8314,_0x43af1c=defaultWriter){if(!shouldNudgeForError(_0x5a51e5,_0x4c8314))return;const _0x4e5142=buildSuggestedTitle(_0x5a51e5,_0x4c8314);_0x43af1c(formatNudge(_0x4e5142));}function buildSuggestedTitle(_0x298b04,_0x373ecc){const _0x2cab82=a80_0x169b73,_0x193d01=_0x298b04 instanceof Error?_0x298b04['message']:String(_0x298b04),_0x41ea1d=_0x193d01[_0x2cab82(0x1e4)](/[\r\n]+/g,'\x20')[_0x2cab82(0x1e4)](/\s+/g,'\x20')[_0x2cab82(0x1f0)]()['slice'](0x0,0x78)[_0x2cab82(0x1e4)](/"/g,'\x5c\x22'),_0x8d009b=CLI_BIN_NAME+'\x20'+_0x373ecc['service']+'\x20'+_0x373ecc[_0x2cab82(0x1fd)];return _0x41ea1d[_0x2cab82(0x1ed)]>0x0?_0x8d009b+':\x20'+_0x41ea1d:_0x8d009b;}function formatNudge(_0x39a5da){const _0xa6e754=a80_0x169b73;return['','Hit\x20a\x20'+CLI_BIN_NAME+'\x20bug?\x20Help\x20us\x20fix\x20it:','\x20\x20'+CLI_BIN_NAME+_0xa6e754(0x1f6),_0xa6e754(0x1fc)+_0x39a5da+_0xa6e754(0x1fa),_0xa6e754(0x1fe),_0xa6e754(0x200),_0xa6e754(0x1f5)+NUDGE_OPT_OUT_ENV+_0xa6e754(0x1ea),'']['join']('\x0a');}
@@ -1 +1 @@
1
- const a81_0x6cb9e5=a81_0x5363;(function(_0x10f4bc,_0x5b968b){const _0x53e26a=a81_0x5363,_0x4aecfd=_0x10f4bc();while(!![]){try{const _0x5ed76c=-parseInt(_0x53e26a(0xda))/0x1+parseInt(_0x53e26a(0xd5))/0x2+parseInt(_0x53e26a(0xc3))/0x3*(parseInt(_0x53e26a(0xb6))/0x4)+parseInt(_0x53e26a(0xd4))/0x5+parseInt(_0x53e26a(0xcc))/0x6+-parseInt(_0x53e26a(0xb8))/0x7+parseInt(_0x53e26a(0xb3))/0x8*(-parseInt(_0x53e26a(0xa7))/0x9);if(_0x5ed76c===_0x5b968b)break;else _0x4aecfd['push'](_0x4aecfd['shift']());}catch(_0x39ed0d){_0x4aecfd['push'](_0x4aecfd['shift']());}}}(a81_0x130e,0xc87c1));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';function a81_0x5363(_0x55cef9,_0x529045){_0x55cef9=_0x55cef9-0xa3;const _0x130e37=a81_0x130e();let _0x53637a=_0x130e37[_0x55cef9];return _0x53637a;}import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';function a81_0x130e(){const _0x5de91e=['validation','string','description-file','363996LZTgCi','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','sanitize','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','push','description','issue.description','descriptionFilePath','issue','File\x20not\x20found:\x20','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','Issue\x20description\x20cannot\x20be\x20empty.','168efrKTF','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','redactionCount','20DLjgBi','truncated:\x20original\x20','2092027yxadeU','issue.description_truncated','apiError','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','Platform\x20issue\x20reported\x20(','issue.description_redactions','originalBytes','otel://','POST','Failed\x20to\x20report\x20platform\x20issue:\x20','report','609966ULffrA','inline','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','join','trim','One-line\x20issue\x20summary','title','\x20bytes','length','4219590GpUoHa','descriptionSource','\x20secret(s):\x20','file','write','Platform\x20issue\x20reported','Issue\x20description\x20file\x20is\x20empty:\x20','str','2736960ViGVzb','205620zabPCt','truncated','message','filter','redactions:\x20','400707uthUvB','redactionKinds','cwd'];a81_0x130e=function(){return _0x5de91e;};return a81_0x130e();}const DESCRIPTION_FILE_FLAG=a81_0x6cb9e5(0xa6);export const issueReport={'service':a81_0x6cb9e5(0xaf),'command':a81_0x6cb9e5(0xc2),'description':a81_0x6cb9e5(0xbb),'risk':a81_0x6cb9e5(0xd0),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':'compress','flags':[{'name':a81_0x6cb9e5(0xc9),'type':a81_0x6cb9e5(0xa5),'required':!![],'description':a81_0x6cb9e5(0xc8)},{'name':a81_0x6cb9e5(0xac),'type':a81_0x6cb9e5(0xa5),'description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a81_0x6cb9e5(0xa5),'description':a81_0x6cb9e5(0xc5)}],async 'validate'(_0x2e92c5){const _0x19ca83=a81_0x6cb9e5,_0x55810e=_0x2e92c5[_0x19ca83(0xd3)]('title')['trim'](),_0xe830b0=_0x2e92c5[_0x19ca83(0xd3)](_0x19ca83(0xac))[_0x19ca83(0xc7)](),_0xfed076=_0x2e92c5[_0x19ca83(0xd3)](DESCRIPTION_FILE_FLAG)[_0x19ca83(0xc7)]();if(!_0x55810e)throw CliErrors['flagMissing'](_0x19ca83(0xc9),_0x19ca83(0xa8));const _0x388082=_0xe830b0['length']>0x0,_0x9c9398=_0xfed076[_0x19ca83(0xcb)]>0x0;if(_0x388082===_0x9c9398)throw CliErrors[_0x19ca83(0xa4)](_0x19ca83(0xaa),_0x19ca83(0xb1));if(_0x9c9398){const _0x586a90=resolve(process[_0x19ca83(0xa3)](),_0xfed076);if(!existsSync(_0x586a90))throw CliErrors[_0x19ca83(0xa4)](_0x19ca83(0xb0)+_0x586a90);}},async 'dryRun'(_0x5bf84d){const _0x3a03ba=a81_0x6cb9e5,_0x3df03f=await prepareIssueReport(_0x5bf84d);return{'method':_0x3a03ba(0xc0),'url':_0x3a03ba(0xbf)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x3df03f[_0x3a03ba(0xc9)],'issue.description':_0x3df03f[_0x3a03ba(0xac)],'issue.description_original_bytes':_0x3df03f['sanitize']['originalBytes'],'issue.description_truncated':_0x3df03f[_0x3a03ba(0xa9)][_0x3a03ba(0xd6)],'issue.description_redactions':_0x3df03f[_0x3a03ba(0xa9)][_0x3a03ba(0xb5)],'issue.description_redaction_kinds':_0x3df03f[_0x3a03ba(0xa9)]['redactionKinds'][_0x3a03ba(0xc6)](',')}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','descriptionSource:\x20'+_0x3df03f[_0x3a03ba(0xcd)],_0x3df03f[_0x3a03ba(0xae)]?'descriptionFile:\x20'+_0x3df03f[_0x3a03ba(0xae)]:null,_0x3df03f[_0x3a03ba(0xa9)][_0x3a03ba(0xd6)]?_0x3a03ba(0xb7)+_0x3df03f['sanitize'][_0x3a03ba(0xbe)]+_0x3a03ba(0xca):null,_0x3df03f[_0x3a03ba(0xa9)]['redactionCount']>0x0?_0x3a03ba(0xd9)+_0x3df03f[_0x3a03ba(0xa9)]['redactionCount']+'\x20('+_0x3df03f[_0x3a03ba(0xa9)][_0x3a03ba(0xdb)][_0x3a03ba(0xc6)](',\x20')+')':null][_0x3a03ba(0xd8)](Boolean)['join']('\x0a')};},async 'execute'(_0x1229f7){const _0x33f063=a81_0x6cb9e5,_0x316e2a=await prepareIssueReport(_0x1229f7);try{await sendPlatformIssueCollectLog({'title':_0x316e2a[_0x33f063(0xc9)],'description':_0x316e2a[_0x33f063(0xac)],'sanitize':{'originalBytes':_0x316e2a[_0x33f063(0xa9)]['originalBytes'],'truncated':_0x316e2a['sanitize'][_0x33f063(0xd6)],'redactionCount':_0x316e2a[_0x33f063(0xa9)]['redactionCount'],'redactionKinds':_0x316e2a[_0x33f063(0xa9)]['redactionKinds']}});}catch(_0x606396){throw CliErrors[_0x33f063(0xba)](_0x33f063(0xc1)+(_0x606396 instanceof Error?_0x606396[_0x33f063(0xd7)]:String(_0x606396)),'Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.');}return{'ok':!![],'message':buildResultMessage(_0x316e2a[_0x33f063(0xa9)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':['issue.title',_0x33f063(0xad),'issue.description_original_bytes',_0x33f063(0xb9),_0x33f063(0xbd),'issue.description_redaction_kinds'],'issue':{'title':_0x316e2a[_0x33f063(0xc9)],'descriptionLength':_0x316e2a[_0x33f063(0xac)]['length'],'descriptionSource':_0x316e2a['descriptionSource'],..._0x316e2a[_0x33f063(0xae)]?{'descriptionFile':_0x316e2a[_0x33f063(0xae)]}:{},'sanitize':{'originalBytes':_0x316e2a[_0x33f063(0xa9)][_0x33f063(0xbe)],'truncated':_0x316e2a[_0x33f063(0xa9)][_0x33f063(0xd6)],'redactions':_0x316e2a['sanitize'][_0x33f063(0xb5)],'redactionKinds':_0x316e2a[_0x33f063(0xa9)][_0x33f063(0xdb)]}}}};}};function buildResultMessage(_0x3b23ff){const _0x34b96d=a81_0x6cb9e5,_0x448679=[];return _0x3b23ff[_0x34b96d(0xd6)]&&_0x448679[_0x34b96d(0xab)]('truncated\x20from\x20'+_0x3b23ff[_0x34b96d(0xbe)]+'\x20bytes'),_0x3b23ff[_0x34b96d(0xb5)]>0x0&&_0x448679[_0x34b96d(0xab)]('redacted\x20'+_0x3b23ff['redactionCount']+_0x34b96d(0xce)+_0x3b23ff[_0x34b96d(0xdb)][_0x34b96d(0xc6)](',\x20')),_0x448679[_0x34b96d(0xcb)]===0x0?_0x34b96d(0xd1):_0x34b96d(0xbc)+_0x448679[_0x34b96d(0xc6)](';\x20')+')';}async function prepareIssueReport(_0x18c94d){const _0x694cdb=a81_0x6cb9e5,_0x4e8eb3=_0x18c94d[_0x694cdb(0xd3)](_0x694cdb(0xc9))[_0x694cdb(0xc7)](),_0x47e1ee=_0x18c94d[_0x694cdb(0xd3)](_0x694cdb(0xac)),_0x54a42e=_0x18c94d[_0x694cdb(0xd3)](DESCRIPTION_FILE_FLAG)[_0x694cdb(0xc7)]();if(!_0x54a42e){const _0xc6819b=_0x47e1ee;if(!_0xc6819b[_0x694cdb(0xc7)]())throw CliErrors[_0x694cdb(0xa4)](_0x694cdb(0xb2),_0x694cdb(0xb4));const _0x58e9ea=sanitizeIssueDescription(_0xc6819b);return{'title':_0x4e8eb3,'description':_0x58e9ea['description'],'descriptionSource':_0x694cdb(0xc4),'sanitize':_0x58e9ea};}const _0x5c1631=resolve(process[_0x694cdb(0xa3)](),_0x54a42e),_0x147cc9=await readFile(_0x5c1631,'utf8');if(!_0x147cc9[_0x694cdb(0xc7)]())throw CliErrors[_0x694cdb(0xa4)](_0x694cdb(0xd2)+_0x5c1631,'Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.');const _0x136198=sanitizeIssueDescription(_0x147cc9);return{'title':_0x4e8eb3,'description':_0x136198[_0x694cdb(0xac)],'descriptionSource':_0x694cdb(0xcf),'descriptionFilePath':_0x5c1631,'sanitize':_0x136198};}
1
+ const a81_0x1b076e=a81_0x3911;function a81_0x3911(_0xd37312,_0x164e57){_0xd37312=_0xd37312-0x167;const _0x5f14fa=a81_0x5f14();let _0x3911f8=_0x5f14fa[_0xd37312];return _0x3911f8;}(function(_0x25e157,_0x3f11db){const _0x173d1c=a81_0x3911,_0x419990=_0x25e157();while(!![]){try{const _0x4f9cdb=parseInt(_0x173d1c(0x168))/0x1*(parseInt(_0x173d1c(0x195))/0x2)+-parseInt(_0x173d1c(0x16b))/0x3*(parseInt(_0x173d1c(0x192))/0x4)+-parseInt(_0x173d1c(0x19b))/0x5+parseInt(_0x173d1c(0x198))/0x6*(parseInt(_0x173d1c(0x173))/0x7)+-parseInt(_0x173d1c(0x17c))/0x8*(-parseInt(_0x173d1c(0x18f))/0x9)+parseInt(_0x173d1c(0x185))/0xa+-parseInt(_0x173d1c(0x181))/0xb;if(_0x4f9cdb===_0x3f11db)break;else _0x419990['push'](_0x419990['shift']());}catch(_0x36089c){_0x419990['push'](_0x419990['shift']());}}}(a81_0x5f14,0xae387));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG='description-file';function a81_0x5f14(){const _0x2c849e=['292914fROjNu','string','\x20bytes','Platform\x20issue\x20reported\x20(','\x20secret(s):\x20','issue.title','truncated\x20from\x20','message','343QTwDdC','descriptionFile:\x20','File\x20not\x20found:\x20','redacted\x20','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','descriptionFilePath','issue.description_redactions','utf8','8QVHWLB','cwd','sanitize','push','redactionKinds','10406011DMPAus','One-line\x20issue\x20summary','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','descriptionSource:\x20','13263620ZcXdTn','Issue\x20description\x20file\x20is\x20empty:\x20','file','title','Issue\x20description\x20cannot\x20be\x20empty.','issue.description_original_bytes','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','length','originalBytes','join','10617471fesqSx','redactionCount','description','28zUUCPW','otel://','validation','453578PufnMt','apiError','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','45756xFKNCk','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','3817350DZIwZw','redactions:\x20','descriptionSource','trim','issue.description','truncated:\x20original\x20','issue','1vgQwFF','truncated','str'];a81_0x5f14=function(){return _0x2c849e;};return a81_0x5f14();}export const issueReport={'service':a81_0x1b076e(0x167),'command':'report','description':a81_0x1b076e(0x18b),'risk':'write','requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':'compress','flags':[{'name':a81_0x1b076e(0x188),'type':a81_0x1b076e(0x16c),'required':!![],'description':a81_0x1b076e(0x182)},{'name':a81_0x1b076e(0x191),'type':'string','description':a81_0x1b076e(0x199)},{'name':DESCRIPTION_FILE_FLAG,'type':a81_0x1b076e(0x16c),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x492ba0){const _0x5d143b=a81_0x1b076e,_0x19befc=_0x492ba0[_0x5d143b(0x16a)](_0x5d143b(0x188))[_0x5d143b(0x19e)](),_0x1bd520=_0x492ba0['str']('description')[_0x5d143b(0x19e)](),_0x56976e=_0x492ba0[_0x5d143b(0x16a)](DESCRIPTION_FILE_FLAG)[_0x5d143b(0x19e)]();if(!_0x19befc)throw CliErrors['flagMissing']('title',_0x5d143b(0x19a));const _0x460ff8=_0x1bd520['length']>0x0,_0x2f8d63=_0x56976e['length']>0x0;if(_0x460ff8===_0x2f8d63)throw CliErrors[_0x5d143b(0x194)](_0x5d143b(0x178),_0x5d143b(0x197));if(_0x2f8d63){const _0x936073=resolve(process[_0x5d143b(0x17d)](),_0x56976e);if(!existsSync(_0x936073))throw CliErrors[_0x5d143b(0x194)](_0x5d143b(0x175)+_0x936073);}},async 'dryRun'(_0x15cfb7){const _0x4e0fd7=a81_0x1b076e,_0x4f682e=await prepareIssueReport(_0x15cfb7);return{'method':'POST','url':_0x4e0fd7(0x193)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x4f682e[_0x4e0fd7(0x188)],'issue.description':_0x4f682e[_0x4e0fd7(0x191)],'issue.description_original_bytes':_0x4f682e[_0x4e0fd7(0x17e)][_0x4e0fd7(0x18d)],'issue.description_truncated':_0x4f682e[_0x4e0fd7(0x17e)][_0x4e0fd7(0x169)],'issue.description_redactions':_0x4f682e[_0x4e0fd7(0x17e)][_0x4e0fd7(0x190)],'issue.description_redaction_kinds':_0x4f682e['sanitize'][_0x4e0fd7(0x180)][_0x4e0fd7(0x18e)](',')}},'description':[_0x4e0fd7(0x177),_0x4e0fd7(0x184)+_0x4f682e[_0x4e0fd7(0x19d)],_0x4f682e['descriptionFilePath']?_0x4e0fd7(0x174)+_0x4f682e[_0x4e0fd7(0x179)]:null,_0x4f682e[_0x4e0fd7(0x17e)][_0x4e0fd7(0x169)]?_0x4e0fd7(0x1a0)+_0x4f682e[_0x4e0fd7(0x17e)]['originalBytes']+_0x4e0fd7(0x16d):null,_0x4f682e[_0x4e0fd7(0x17e)][_0x4e0fd7(0x190)]>0x0?_0x4e0fd7(0x19c)+_0x4f682e[_0x4e0fd7(0x17e)]['redactionCount']+'\x20('+_0x4f682e[_0x4e0fd7(0x17e)][_0x4e0fd7(0x180)][_0x4e0fd7(0x18e)](',\x20')+')':null]['filter'](Boolean)[_0x4e0fd7(0x18e)]('\x0a')};},async 'execute'(_0x38fe0a){const _0x171cd8=a81_0x1b076e,_0x3455bc=await prepareIssueReport(_0x38fe0a);try{await sendPlatformIssueCollectLog({'title':_0x3455bc['title'],'description':_0x3455bc['description'],'sanitize':{'originalBytes':_0x3455bc[_0x171cd8(0x17e)][_0x171cd8(0x18d)],'truncated':_0x3455bc[_0x171cd8(0x17e)][_0x171cd8(0x169)],'redactionCount':_0x3455bc[_0x171cd8(0x17e)][_0x171cd8(0x190)],'redactionKinds':_0x3455bc[_0x171cd8(0x17e)]['redactionKinds']}});}catch(_0x14abf9){throw CliErrors[_0x171cd8(0x196)]('Failed\x20to\x20report\x20platform\x20issue:\x20'+(_0x14abf9 instanceof Error?_0x14abf9[_0x171cd8(0x172)]:String(_0x14abf9)),'Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.');}return{'ok':!![],'message':buildResultMessage(_0x3455bc[_0x171cd8(0x17e)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x171cd8(0x170),_0x171cd8(0x19f),_0x171cd8(0x18a),'issue.description_truncated',_0x171cd8(0x17a),'issue.description_redaction_kinds'],'issue':{'title':_0x3455bc[_0x171cd8(0x188)],'descriptionLength':_0x3455bc[_0x171cd8(0x191)][_0x171cd8(0x18c)],'descriptionSource':_0x3455bc[_0x171cd8(0x19d)],..._0x3455bc['descriptionFilePath']?{'descriptionFile':_0x3455bc[_0x171cd8(0x179)]}:{},'sanitize':{'originalBytes':_0x3455bc['sanitize'][_0x171cd8(0x18d)],'truncated':_0x3455bc[_0x171cd8(0x17e)][_0x171cd8(0x169)],'redactions':_0x3455bc[_0x171cd8(0x17e)][_0x171cd8(0x190)],'redactionKinds':_0x3455bc[_0x171cd8(0x17e)]['redactionKinds']}}}};}};function buildResultMessage(_0x2daa29){const _0x3b92b5=a81_0x1b076e,_0x5387a2=[];return _0x2daa29[_0x3b92b5(0x169)]&&_0x5387a2[_0x3b92b5(0x17f)](_0x3b92b5(0x171)+_0x2daa29[_0x3b92b5(0x18d)]+'\x20bytes'),_0x2daa29[_0x3b92b5(0x190)]>0x0&&_0x5387a2[_0x3b92b5(0x17f)](_0x3b92b5(0x176)+_0x2daa29[_0x3b92b5(0x190)]+_0x3b92b5(0x16f)+_0x2daa29[_0x3b92b5(0x180)][_0x3b92b5(0x18e)](',\x20')),_0x5387a2[_0x3b92b5(0x18c)]===0x0?'Platform\x20issue\x20reported':_0x3b92b5(0x16e)+_0x5387a2[_0x3b92b5(0x18e)](';\x20')+')';}async function prepareIssueReport(_0x5270e7){const _0x4a773d=a81_0x1b076e,_0x6b3ff9=_0x5270e7[_0x4a773d(0x16a)](_0x4a773d(0x188))[_0x4a773d(0x19e)](),_0x43704a=_0x5270e7[_0x4a773d(0x16a)]('description'),_0x5b8cd7=_0x5270e7['str'](DESCRIPTION_FILE_FLAG)[_0x4a773d(0x19e)]();if(!_0x5b8cd7){const _0x33f782=_0x43704a;if(!_0x33f782[_0x4a773d(0x19e)]())throw CliErrors[_0x4a773d(0x194)](_0x4a773d(0x189),'Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.');const _0x2c4bba=sanitizeIssueDescription(_0x33f782);return{'title':_0x6b3ff9,'description':_0x2c4bba[_0x4a773d(0x191)],'descriptionSource':'inline','sanitize':_0x2c4bba};}const _0x1d465c=resolve(process[_0x4a773d(0x17d)](),_0x5b8cd7),_0x5bcad6=await readFile(_0x1d465c,_0x4a773d(0x17b));if(!_0x5bcad6[_0x4a773d(0x19e)]())throw CliErrors[_0x4a773d(0x194)](_0x4a773d(0x186)+_0x1d465c,_0x4a773d(0x183));const _0x5d30fb=sanitizeIssueDescription(_0x5bcad6);return{'title':_0x6b3ff9,'description':_0x5d30fb[_0x4a773d(0x191)],'descriptionSource':_0x4a773d(0x187),'descriptionFilePath':_0x1d465c,'sanitize':_0x5d30fb};}
@@ -1 +1 @@
1
- function a82_0x41af(){const _0x57707e=['REDACTED:private-key','includes','143142HZhghY','2023528gokkqC','14LyXoLM','pattern','from','kind','55148YVQTPS','toString','string','push','214562KBdJCY','1848705nJNGdg','byteLength','label','max','20074920mzcOoy','REDACTED:access-key','27PHNeTm','replace','private-key','711315SZdkMJ','password','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','utf8','subarray','81yJRhBE','REDACTED:cookie','access-key','REDACTED:bearer-jwt'];a82_0x41af=function(){return _0x57707e;};return a82_0x41af();}const a82_0x424b90=a82_0x293c;(function(_0x15e3aa,_0x3700fc){const _0x38d450=a82_0x293c,_0x167b19=_0x15e3aa();while(!![]){try{const _0x1180b5=-parseInt(_0x38d450(0xed))/0x1+-parseInt(_0x38d450(0xe3))/0x2+-parseInt(_0x38d450(0xf2))/0x3*(-parseInt(_0x38d450(0xdf))/0x4)+-parseInt(_0x38d450(0xe4))/0x5+-parseInt(_0x38d450(0xd9))/0x6*(parseInt(_0x38d450(0xdb))/0x7)+-parseInt(_0x38d450(0xda))/0x8*(parseInt(_0x38d450(0xea))/0x9)+parseInt(_0x38d450(0xe8))/0xa;if(_0x1180b5===_0x3700fc)break;else _0x167b19['push'](_0x167b19['shift']());}catch(_0x4c7a6a){_0x167b19['push'](_0x167b19['shift']());}}}(a82_0x41af,0x5df63));function a82_0x293c(_0x4fb5ff,_0x4201e9){_0x4fb5ff=_0x4fb5ff-0xd5;const _0x41afad=a82_0x41af();let _0x293c36=_0x41afad[_0x4fb5ff];return _0x293c36;}export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a82_0x424b90(0xef),REDACTION_RULES=[{'kind':'cookie','pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a82_0x424b90(0xf3)},{'kind':'authorization','pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':a82_0x424b90(0xec),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a82_0x424b90(0xd7)},{'kind':a82_0x424b90(0xd5),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a82_0x424b90(0xe9)},{'kind':a82_0x424b90(0xee),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':'REDACTED:password'},{'kind':'bearer-jwt','pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a82_0x424b90(0xd6)}];export function sanitizeIssueDescription(_0x34a925){const _0x402b5b=a82_0x424b90,_0x593381=Buffer[_0x402b5b(0xe5)](_0x34a925,'utf8'),_0x2417af=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x567baf=_0x34a925,_0x2999ea=0x0;const _0x329763=[];if(!_0x2417af)for(const _0x5544c7 of REDACTION_RULES){let _0xc641c7=0x0;_0x567baf=_0x567baf[_0x402b5b(0xeb)](_0x5544c7[_0x402b5b(0xdc)],(_0x331c46,_0x3a1c31)=>{const _0x53cc0a=_0x402b5b;_0xc641c7+=0x1;const _0xeb8c52=typeof _0x3a1c31===_0x53cc0a(0xe1)?_0x3a1c31:'';return _0xeb8c52+'['+_0x5544c7[_0x53cc0a(0xe6)]+']';}),_0xc641c7>0x0&&(_0x2999ea+=_0xc641c7,!_0x329763[_0x402b5b(0xd8)](_0x5544c7[_0x402b5b(0xde)])&&_0x329763[_0x402b5b(0xe2)](_0x5544c7[_0x402b5b(0xde)]));}let _0x2d4ed8=![];if(Buffer[_0x402b5b(0xe5)](_0x567baf,'utf8')>ISSUE_DESCRIPTION_MAX_BYTES){_0x2d4ed8=!![];const _0x33665e=Buffer[_0x402b5b(0xe5)](TRUNCATION_NOTICE,_0x402b5b(0xf0)),_0x21406c=Math[_0x402b5b(0xe7)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x33665e);_0x567baf=sliceUtf8Bytes(_0x567baf,_0x21406c)+TRUNCATION_NOTICE;}return{'description':_0x567baf,'originalBytes':_0x593381,'truncated':_0x2d4ed8,'redactionCount':_0x2999ea,'redactionKinds':_0x329763};}function sliceUtf8Bytes(_0x59cf7d,_0x5253bc){const _0x56763e=a82_0x424b90;if(_0x5253bc<=0x0)return'';const _0x13caff=Buffer[_0x56763e(0xdd)](_0x59cf7d,_0x56763e(0xf0));if(_0x13caff[_0x56763e(0xe5)]<=_0x5253bc)return _0x59cf7d;let _0x232fe6=_0x5253bc;while(_0x232fe6>0x0){const _0x4186a6=_0x13caff[_0x232fe6];if(_0x4186a6===undefined||(_0x4186a6&0xc0)!==0x80)break;_0x232fe6-=0x1;}return _0x13caff[_0x56763e(0xf1)](0x0,_0x232fe6)[_0x56763e(0xe0)](_0x56763e(0xf0));}
1
+ const a82_0x4b8d57=a82_0x3475;(function(_0x51ff0e,_0xe70a79){const _0x499c20=a82_0x3475,_0x1720a4=_0x51ff0e();while(!![]){try{const _0x26918b=parseInt(_0x499c20(0x1c9))/0x1+parseInt(_0x499c20(0x1d1))/0x2*(-parseInt(_0x499c20(0x1ce))/0x3)+parseInt(_0x499c20(0x1c0))/0x4*(parseInt(_0x499c20(0x1cf))/0x5)+parseInt(_0x499c20(0x1c6))/0x6+-parseInt(_0x499c20(0x1ca))/0x7+-parseInt(_0x499c20(0x1c1))/0x8+-parseInt(_0x499c20(0x1c7))/0x9*(parseInt(_0x499c20(0x1cb))/0xa);if(_0x26918b===_0xe70a79)break;else _0x1720a4['push'](_0x1720a4['shift']());}catch(_0xe08965){_0x1720a4['push'](_0x1720a4['shift']());}}}(a82_0x195c,0x3411c));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;function a82_0x3475(_0x45660e,_0xfece13){_0x45660e=_0x45660e-0x1b9;const _0x195c70=a82_0x195c();let _0x347565=_0x195c70[_0x45660e];return _0x347565;}const TRUNCATION_NOTICE=a82_0x4b8d57(0x1c4),REDACTION_RULES=[{'kind':a82_0x4b8d57(0x1d4),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a82_0x4b8d57(0x1d5)},{'kind':a82_0x4b8d57(0x1c2),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a82_0x4b8d57(0x1d2)},{'kind':a82_0x4b8d57(0x1c8),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':'REDACTED:private-key'},{'kind':a82_0x4b8d57(0x1bc),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':'REDACTED:access-key'},{'kind':a82_0x4b8d57(0x1d0),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':'REDACTED:password'},{'kind':a82_0x4b8d57(0x1cd),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':'REDACTED:bearer-jwt'}];export function sanitizeIssueDescription(_0x24caad){const _0x2e56d3=a82_0x4b8d57,_0x3664a3=Buffer[_0x2e56d3(0x1b9)](_0x24caad,'utf8'),_0x20c220=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x1fbb48=_0x24caad,_0x413bb8=0x0;const _0x36154a=[];if(!_0x20c220)for(const _0x16cc4c of REDACTION_RULES){let _0x5365b6=0x0;_0x1fbb48=_0x1fbb48[_0x2e56d3(0x1d3)](_0x16cc4c[_0x2e56d3(0x1bb)],(_0x3e367b,_0xe9bdd2)=>{const _0x3f5d4f=_0x2e56d3;_0x5365b6+=0x1;const _0x515b1b=typeof _0xe9bdd2==='string'?_0xe9bdd2:'';return _0x515b1b+'['+_0x16cc4c[_0x3f5d4f(0x1ba)]+']';}),_0x5365b6>0x0&&(_0x413bb8+=_0x5365b6,!_0x36154a[_0x2e56d3(0x1bf)](_0x16cc4c[_0x2e56d3(0x1c3)])&&_0x36154a[_0x2e56d3(0x1bd)](_0x16cc4c['kind']));}let _0x34563f=![];if(Buffer['byteLength'](_0x1fbb48,_0x2e56d3(0x1d6))>ISSUE_DESCRIPTION_MAX_BYTES){_0x34563f=!![];const _0x183990=Buffer[_0x2e56d3(0x1b9)](TRUNCATION_NOTICE,'utf8'),_0x342d25=Math[_0x2e56d3(0x1be)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x183990);_0x1fbb48=sliceUtf8Bytes(_0x1fbb48,_0x342d25)+TRUNCATION_NOTICE;}return{'description':_0x1fbb48,'originalBytes':_0x3664a3,'truncated':_0x34563f,'redactionCount':_0x413bb8,'redactionKinds':_0x36154a};}function a82_0x195c(){const _0x357f47=['\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','subarray','1278822lIemPM','459DzCThS','private-key','270500BseSGI','522256DUeshC','68870GwvRLz','toString','bearer-jwt','183XaJskV','20845yHCDoG','password','150SsktMN','REDACTED:authorization','replace','cookie','REDACTED:cookie','utf8','byteLength','label','pattern','access-key','push','max','includes','328byNLGm','1454392QAivDf','authorization','kind'];a82_0x195c=function(){return _0x357f47;};return a82_0x195c();}function sliceUtf8Bytes(_0x3b675a,_0x166e98){const _0x1b31d8=a82_0x4b8d57;if(_0x166e98<=0x0)return'';const _0x3f9ed9=Buffer['from'](_0x3b675a,_0x1b31d8(0x1d6));if(_0x3f9ed9[_0x1b31d8(0x1b9)]<=_0x166e98)return _0x3b675a;let _0x526b1b=_0x166e98;while(_0x526b1b>0x0){const _0x378a87=_0x3f9ed9[_0x526b1b];if(_0x378a87===undefined||(_0x378a87&0xc0)!==0x80)break;_0x526b1b-=0x1;}return _0x3f9ed9[_0x1b31d8(0x1c5)](0x0,_0x526b1b)[_0x1b31d8(0x1cc)](_0x1b31d8(0x1d6));}
@@ -1 +1 @@
1
- function a83_0x1d60(){const _0x324873=['7694922kAryqF','View\x20command\x20history\x20logs','stringify','34432911HcbOTT','393919pPEicn','command','*\x20No\x20logs\x20found','3341373LAifZG','logs','8fqkrNk','en-US','timestamp','success','8083510FBPbvA','write','level','*\x20Lovrabet\x20CLI\x20logs:\x0a','clearLogs','4jzGZCB','\x20\x20\x20Duration:\x20','clear','forEach','details','*\x20Logs\x20cleared','show','log','read','13142784AJQpCL','error','keys','message','length','readLogs','574134aqneqF'];a83_0x1d60=function(){return _0x324873;};return a83_0x1d60();}const a83_0x586c62=a83_0x111a;function a83_0x111a(_0xe12a2a,_0x53183f){_0xe12a2a=_0xe12a2a-0x87;const _0x1d60b0=a83_0x1d60();let _0x111a3e=_0x1d60b0[_0xe12a2a];return _0x111a3e;}(function(_0x5687ff,_0x39d8de){const _0x14818e=a83_0x111a,_0x266e7f=_0x5687ff();while(!![]){try{const _0x212227=parseInt(_0x14818e(0xa4))/0x1*(-parseInt(_0x14818e(0x87))/0x2)+parseInt(_0x14818e(0x9f))/0x3+parseInt(_0x14818e(0x90))/0x4*(-parseInt(_0x14818e(0x8b))/0x5)+parseInt(_0x14818e(0xa0))/0x6+parseInt(_0x14818e(0xa7))/0x7+-parseInt(_0x14818e(0x99))/0x8+parseInt(_0x14818e(0xa3))/0x9;if(_0x212227===_0x39d8de)break;else _0x266e7f['push'](_0x266e7f['shift']());}catch(_0x50344e){_0x266e7f['push'](_0x266e7f['shift']());}}}(a83_0x1d60,0xe5f21));import{logger}from'../../utils/logger.js';function printLogs(_0x5ee06e){const _0x4eb37e=a83_0x111a;if(_0x5ee06e[_0x4eb37e(0x9d)]===0x0){console['log'](_0x4eb37e(0xa6));return;}console[_0x4eb37e(0x97)](_0x4eb37e(0x8e)),_0x5ee06e[_0x4eb37e(0x93)]((_0x144176,_0x249448)=>{const _0x5d1e4e=_0x4eb37e,_0x5f388a=new Date(_0x144176[_0x5d1e4e(0x89)])['toLocaleString'](_0x5d1e4e(0x88)),_0xc558a0=_0x144176[_0x5d1e4e(0x8d)]===_0x5d1e4e(0x8a)?'√':_0x144176['level']===_0x5d1e4e(0x9a)?'×':_0x144176[_0x5d1e4e(0x8d)]==='warn'?'!':'i';console['log'](_0x249448+0x1+'.\x20'+_0xc558a0+'\x20['+_0x144176[_0x5d1e4e(0xa5)]+']\x20'+_0x144176[_0x5d1e4e(0x9c)]),console[_0x5d1e4e(0x97)]('\x20\x20\x20Time:\x20'+_0x5f388a),_0x144176['duration']&&console[_0x5d1e4e(0x97)](_0x5d1e4e(0x91)+_0x144176['duration']+'ms'),_0x144176['details']&&Object[_0x5d1e4e(0x9b)](_0x144176['details'])[_0x5d1e4e(0x9d)]>0x0&&console[_0x5d1e4e(0x97)]('\x20\x20\x20Details:\x20'+JSON[_0x5d1e4e(0xa2)](_0x144176[_0x5d1e4e(0x94)],null,0x2)),console[_0x5d1e4e(0x97)]('');});}export const logsDefinitions=[{'service':a83_0x586c62(0xa8),'command':a83_0x586c62(0x96),'description':a83_0x586c62(0xa1),'risk':a83_0x586c62(0x98),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x57b94f){const _0x3f0223=a83_0x586c62;return printLogs(logger[_0x3f0223(0x9e)]()),{'ok':!![]};}},{'service':a83_0x586c62(0xa8),'command':a83_0x586c62(0x92),'description':'Clear\x20command\x20history\x20logs','risk':a83_0x586c62(0x8c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x284536){const _0x2f81fb=a83_0x586c62;return logger[_0x2f81fb(0x8f)](),console[_0x2f81fb(0x97)](_0x2f81fb(0x95)),{'ok':!![]};}}];
1
+ const a83_0x14a494=a83_0x3a46;(function(_0xd3b4f8,_0x2bbf7b){const _0xa060cc=a83_0x3a46,_0x2e53dd=_0xd3b4f8();while(!![]){try{const _0x36a24f=parseInt(_0xa060cc(0x1e4))/0x1*(parseInt(_0xa060cc(0x1e5))/0x2)+parseInt(_0xa060cc(0x1d1))/0x3+-parseInt(_0xa060cc(0x1ea))/0x4+-parseInt(_0xa060cc(0x1de))/0x5*(-parseInt(_0xa060cc(0x1d8))/0x6)+parseInt(_0xa060cc(0x1e3))/0x7+-parseInt(_0xa060cc(0x1eb))/0x8+-parseInt(_0xa060cc(0x1ed))/0x9;if(_0x36a24f===_0x2bbf7b)break;else _0x2e53dd['push'](_0x2e53dd['shift']());}catch(_0x297d12){_0x2e53dd['push'](_0x2e53dd['shift']());}}}(a83_0x1f31,0xdb815));import{logger}from'../../utils/logger.js';function a83_0x1f31(){const _0x1f6eb6=['1242414ZERzcN','log','readLogs','forEach','\x20\x20\x20Details:\x20','details','173223VwLKwT','en-US','*\x20Lovrabet\x20CLI\x20logs:\x0a','warn','clearLogs','read','message','8504472yqWVIN','Clear\x20command\x20history\x20logs','logs','success','toLocaleString','duration','5OdZyqM','keys','command','clear','timestamp','6073900MaDcRd','1jknESz','5090wSqjGO','level','write','stringify','length','518204XYDGtl','9429664qlTLJe','View\x20command\x20history\x20logs'];a83_0x1f31=function(){return _0x1f6eb6;};return a83_0x1f31();}function a83_0x3a46(_0x500107,_0x43274e){_0x500107=_0x500107-0x1d0;const _0x1f31eb=a83_0x1f31();let _0x3a4649=_0x1f31eb[_0x500107];return _0x3a4649;}function printLogs(_0x7ac940){const _0x5d649b=a83_0x3a46;if(_0x7ac940[_0x5d649b(0x1e9)]===0x0){console[_0x5d649b(0x1ee)]('*\x20No\x20logs\x20found');return;}console['log'](_0x5d649b(0x1d3)),_0x7ac940[_0x5d649b(0x1f0)]((_0x4e36e0,_0x219b9d)=>{const _0x5b214a=_0x5d649b,_0x37c1cc=new Date(_0x4e36e0[_0x5b214a(0x1e2)])[_0x5b214a(0x1dc)](_0x5b214a(0x1d2)),_0x472479=_0x4e36e0[_0x5b214a(0x1e6)]===_0x5b214a(0x1db)?'√':_0x4e36e0[_0x5b214a(0x1e6)]==='error'?'×':_0x4e36e0[_0x5b214a(0x1e6)]===_0x5b214a(0x1d4)?'!':'i';console[_0x5b214a(0x1ee)](_0x219b9d+0x1+'.\x20'+_0x472479+'\x20['+_0x4e36e0[_0x5b214a(0x1e0)]+']\x20'+_0x4e36e0[_0x5b214a(0x1d7)]),console['log']('\x20\x20\x20Time:\x20'+_0x37c1cc),_0x4e36e0[_0x5b214a(0x1dd)]&&console[_0x5b214a(0x1ee)]('\x20\x20\x20Duration:\x20'+_0x4e36e0[_0x5b214a(0x1dd)]+'ms'),_0x4e36e0[_0x5b214a(0x1d0)]&&Object[_0x5b214a(0x1df)](_0x4e36e0['details'])[_0x5b214a(0x1e9)]>0x0&&console[_0x5b214a(0x1ee)](_0x5b214a(0x1f1)+JSON[_0x5b214a(0x1e8)](_0x4e36e0[_0x5b214a(0x1d0)],null,0x2)),console[_0x5b214a(0x1ee)]('');});}export const logsDefinitions=[{'service':a83_0x14a494(0x1da),'command':'show','description':a83_0x14a494(0x1ec),'risk':a83_0x14a494(0x1d6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1a049a){const _0x15845b=a83_0x14a494;return printLogs(logger[_0x15845b(0x1ef)]()),{'ok':!![]};}},{'service':'logs','command':a83_0x14a494(0x1e1),'description':a83_0x14a494(0x1d9),'risk':a83_0x14a494(0x1e7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x332ca1){const _0x129590=a83_0x14a494;return logger[_0x129590(0x1d5)](),console[_0x129590(0x1ee)]('*\x20Logs\x20cleared'),{'ok':!![]};}}];
@@ -1 +1 @@
1
- function a84_0x2764(_0x22803c,_0x12f43d){_0x22803c=_0x22803c-0x1a5;const _0x2ad66c=a84_0x2ad6();let _0x276403=_0x2ad66c[_0x22803c];return _0x276403;}(function(_0x1bb45b,_0x228b83){const _0x460e5b=a84_0x2764,_0x7dbc23=_0x1bb45b();while(!![]){try{const _0x19d14f=-parseInt(_0x460e5b(0x1a8))/0x1+parseInt(_0x460e5b(0x1a5))/0x2*(parseInt(_0x460e5b(0x1ac))/0x3)+parseInt(_0x460e5b(0x1a9))/0x4+-parseInt(_0x460e5b(0x1ae))/0x5+parseInt(_0x460e5b(0x1aa))/0x6+-parseInt(_0x460e5b(0x1a6))/0x7*(parseInt(_0x460e5b(0x1ab))/0x8)+-parseInt(_0x460e5b(0x1a7))/0x9*(-parseInt(_0x460e5b(0x1ad))/0xa);if(_0x19d14f===_0x228b83)break;else _0x7dbc23['push'](_0x7dbc23['shift']());}catch(_0x3710ac){_0x7dbc23['push'](_0x7dbc23['shift']());}}}(a84_0x2ad6,0xf3acf));function a84_0x2ad6(){const _0x218b04=['7TlrcDZ','66249UGYRPi','111012HsGXXa','7424256LLWHtV','251796dVTgYS','12723592mWVHFi','58827WxeybE','130qpXAOW','294590BMecvv','78iFBxZK'];a84_0x2ad6=function(){return _0x218b04;};return a84_0x2ad6();}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuSync,menuUpdate];
1
+ (function(_0x322594,_0x1933b8){const _0x3e3f19=a84_0x3533,_0x471031=_0x322594();while(!![]){try{const _0x478448=parseInt(_0x3e3f19(0x10d))/0x1*(parseInt(_0x3e3f19(0x117))/0x2)+parseInt(_0x3e3f19(0x111))/0x3+parseInt(_0x3e3f19(0x110))/0x4*(parseInt(_0x3e3f19(0x10e))/0x5)+-parseInt(_0x3e3f19(0x10c))/0x6*(parseInt(_0x3e3f19(0x10f))/0x7)+parseInt(_0x3e3f19(0x116))/0x8*(-parseInt(_0x3e3f19(0x113))/0x9)+-parseInt(_0x3e3f19(0x112))/0xa+parseInt(_0x3e3f19(0x115))/0xb*(parseInt(_0x3e3f19(0x114))/0xc);if(_0x478448===_0x1933b8)break;else _0x471031['push'](_0x471031['shift']());}catch(_0x43f227){_0x471031['push'](_0x471031['shift']());}}}(a84_0x9f86,0x88b9d));function a84_0x9f86(){const _0x18f735=['6866728wEsIFA','7681136xURjYm','4KdMfmZ','2366388DQzFRs','401083NmeoMH','185415LgPrIZ','7AddApc','36GyGANe','1042242kRgwRi','1930060mEPTsj','9IjkiNe','12MymINq'];a84_0x9f86=function(){return _0x18f735;};return a84_0x9f86();}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';function a84_0x3533(_0x580339,_0x5a5320){_0x580339=_0x580339-0x10c;const _0x9f8600=a84_0x9f86();let _0x3533de=_0x9f8600[_0x580339];return _0x3533de;}export const menuDefinitions=[menuSync,menuUpdate];
@@ -1 +1 @@
1
- (function(_0x10da87,_0x3a9f17){const _0x41d80d=a85_0x4cde,_0x20257c=_0x10da87();while(!![]){try{const _0x521b6f=-parseInt(_0x41d80d(0x14f))/0x1*(-parseInt(_0x41d80d(0x13b))/0x2)+-parseInt(_0x41d80d(0x13f))/0x3*(-parseInt(_0x41d80d(0x157))/0x4)+parseInt(_0x41d80d(0x137))/0x5+parseInt(_0x41d80d(0x147))/0x6*(parseInt(_0x41d80d(0x13c))/0x7)+parseInt(_0x41d80d(0x154))/0x8*(-parseInt(_0x41d80d(0x146))/0x9)+parseInt(_0x41d80d(0x13d))/0xa+-parseInt(_0x41d80d(0x156))/0xb;if(_0x521b6f===_0x3a9f17)break;else _0x20257c['push'](_0x20257c['shift']());}catch(_0x48453c){_0x20257c['push'](_0x20257c['shift']());}}}(a85_0x56f4,0xd441f));function strWidth(_0x44acba){const _0xd3e636=a85_0x4cde;let _0x481118=0x0;for(const _0x2ae22d of _0x44acba){_0x481118+=/[\u4e00-\u9fa5]/[_0xd3e636(0x149)](_0x2ae22d)?0x2:0x1;}return _0x481118;}function padRight(_0xea67c1,_0x2e17fa){const _0xa6db2e=a85_0x4cde,_0x38eacd=strWidth(_0xea67c1);return _0xea67c1+'\x20'['repeat'](Math[_0xa6db2e(0x151)](0x0,_0x2e17fa-_0x38eacd));}function a85_0x4cde(_0x2f8542,_0x1da2a1){_0x2f8542=_0x2f8542-0x137;const _0x56f4cc=a85_0x56f4();let _0x4cdea8=_0x56f4cc[_0x2f8542];return _0x4cdea8;}export function renderCompareTable(_0x1e7633,_0x322710={}){const _0x1fab18=a85_0x4cde;if(_0x1e7633[_0x1fab18(0x14c)]===0x0)return'';const _0x3162dd=_0x322710[_0x1fab18(0x13e)]??!![],_0x385630=Math['max'](0x1e,..._0x1e7633['map'](_0xe149=>strWidth(_0xe149[_0x1fab18(0x14b)]))),_0x5927ec=0x4,_0x4b6395=[],_0x3b23e5='\x20\x20'+padRight(_0x1fab18(0x14a),_0x385630),_0x57e250=padRight(_0x1fab18(0x144),_0x5927ec),_0x3f325b=_0x3162dd?'\x20\x20'+padRight('Platform',_0x5927ec):'';_0x4b6395['push'](_0x3b23e5+'\x20\x20'+_0x57e250+(_0x3162dd?_0x3f325b:'')),_0x4b6395['push']('\x20\x20'+'─'['repeat'](_0x385630)+'\x20\x20'+'─'['repeat'](_0x5927ec)+(_0x3162dd?'\x20\x20'+'─'[_0x1fab18(0x148)](_0x5927ec):''));for(const _0x47bc31 of _0x1e7633){const _0x8bde59=padRight(_0x47bc31[_0x1fab18(0x14b)],_0x385630),_0x3e9b65=_0x47bc31[_0x1fab18(0x142)]?'✓':'✗',_0x57dbb7=padRight(_0x3e9b65,_0x5927ec);let _0x1bad1d='\x20\x20'+_0x8bde59+'\x20\x20'+_0x57dbb7;if(_0x3162dd){const _0x1b9032=_0x47bc31[_0x1fab18(0x152)]?'✓':'✗';_0x1bad1d+='\x20\x20'+padRight(_0x1b9032,_0x5927ec);}_0x4b6395[_0x1fab18(0x141)](_0x1bad1d);}return _0x4b6395[_0x1fab18(0x138)]('\x0a');}function a85_0x56f4(){const _0x1275ab=['online','path','1103320JiMEwP','\x20\x20No\x20pages\x20to\x20sync.','14854103SmHvVC','4otzCNQ','123250sDTGBG','join','\x20\x20\x20\x20JS:\x20\x20','(unchanged)','8KtpQCc','325654rKTgwS','16815280YBhMQq','showOnline','1369842IAKnKi','\x20\x20Affected\x20menus:\x20','push','local','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','Local','\x20\x20\x20\x20•\x20','108cGbQRk','192TERySp','repeat','test','Menu\x20Name','label','length','\x20\x20\x20\x20CSS:\x20','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','55816WHujGv','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','max'];a85_0x56f4=function(){return _0x1275ab;};return a85_0x56f4();}export function renderSyncSummary(_0x5c34ea,_0x5ea725){const _0x492087=a85_0x4cde;if(_0x5c34ea['length']===0x0)return _0x5ea725?_0x492087(0x150):_0x492087(0x155);const _0x2fc448=['\x20\x20'+_0x5c34ea[_0x492087(0x14c)]+'\x20page(s)\x20will\x20be\x20created\x20on\x20platform:'];for(const _0xa6060c of _0x5c34ea){_0x2fc448[_0x492087(0x141)](_0x492087(0x145)+_0xa6060c['label']+'\x20('+_0xa6060c[_0x492087(0x153)]+')');}return _0x2fc448[_0x492087(0x138)]('\x0a');}export function renderUpdateSummary(_0x345fee,_0x298e91){const _0x33187c=a85_0x4cde;if(_0x345fee['length']===0x0)return _0x33187c(0x14e);const _0x3762e2=['\x20\x20'+_0x345fee[_0x33187c(0x14c)]+_0x33187c(0x143),_0x33187c(0x139)+(_0x298e91[0x0]??_0x33187c(0x13a)),_0x33187c(0x14d)+(_0x298e91[0x1]??_0x33187c(0x13a)),'',_0x33187c(0x140)+_0x345fee[_0x33187c(0x138)](',\x20')];return _0x3762e2['join']('\x0a');}
1
+ (function(_0x2cdb4d,_0x7c6e4e){const _0x4b9801=a85_0x41ca,_0x10d6b0=_0x2cdb4d();while(!![]){try{const _0x497b29=-parseInt(_0x4b9801(0xaf))/0x1+-parseInt(_0x4b9801(0xc2))/0x2+-parseInt(_0x4b9801(0xc1))/0x3+parseInt(_0x4b9801(0xba))/0x4*(-parseInt(_0x4b9801(0xbf))/0x5)+-parseInt(_0x4b9801(0xb5))/0x6+-parseInt(_0x4b9801(0xae))/0x7*(-parseInt(_0x4b9801(0xc5))/0x8)+parseInt(_0x4b9801(0xb6))/0x9*(parseInt(_0x4b9801(0xb7))/0xa);if(_0x497b29===_0x7c6e4e)break;else _0x10d6b0['push'](_0x10d6b0['shift']());}catch(_0x33734c){_0x10d6b0['push'](_0x10d6b0['shift']());}}}(a85_0x4a56,0x78cd0));function strWidth(_0x1fa435){const _0x4cd40e=a85_0x41ca;let _0x18f568=0x0;for(const _0x5f3171 of _0x1fa435){_0x18f568+=/[\u4e00-\u9fa5]/[_0x4cd40e(0xc9)](_0x5f3171)?0x2:0x1;}return _0x18f568;}function padRight(_0x290323,_0x4b5f34){const _0x5b8b31=a85_0x41ca,_0x235d68=strWidth(_0x290323);return _0x290323+'\x20'[_0x5b8b31(0xb2)](Math[_0x5b8b31(0xbc)](0x0,_0x4b5f34-_0x235d68));}function a85_0x41ca(_0x472756,_0x415dfe){_0x472756=_0x472756-0xad;const _0x4a568c=a85_0x4a56();let _0x41ca63=_0x4a568c[_0x472756];return _0x41ca63;}export function renderCompareTable(_0x53c25f,_0x1e371d={}){const _0x3fc166=a85_0x41ca;if(_0x53c25f['length']===0x0)return'';const _0x37ad41=_0x1e371d[_0x3fc166(0xb0)]??!![],_0x15187d=Math[_0x3fc166(0xbc)](0x1e,..._0x53c25f[_0x3fc166(0xad)](_0x18f6f3=>strWidth(_0x18f6f3[_0x3fc166(0xb8)]))),_0x266f85=0x4,_0x5bf7a6=[],_0x6044ca='\x20\x20'+padRight('Menu\x20Name',_0x15187d),_0x5ad264=padRight(_0x3fc166(0xb3),_0x266f85),_0x15b105=_0x37ad41?'\x20\x20'+padRight(_0x3fc166(0xbe),_0x266f85):'';_0x5bf7a6['push'](_0x6044ca+'\x20\x20'+_0x5ad264+(_0x37ad41?_0x15b105:'')),_0x5bf7a6[_0x3fc166(0xc0)]('\x20\x20'+'─'['repeat'](_0x15187d)+'\x20\x20'+'─'['repeat'](_0x266f85)+(_0x37ad41?'\x20\x20'+'─'[_0x3fc166(0xb2)](_0x266f85):''));for(const _0xdd4857 of _0x53c25f){const _0x5d26f1=padRight(_0xdd4857[_0x3fc166(0xb8)],_0x15187d),_0x1a486d=_0xdd4857[_0x3fc166(0xca)]?'✓':'✗',_0x21480f=padRight(_0x1a486d,_0x266f85);let _0x35fae3='\x20\x20'+_0x5d26f1+'\x20\x20'+_0x21480f;if(_0x37ad41){const _0x1d81b2=_0xdd4857['online']?'✓':'✗';_0x35fae3+='\x20\x20'+padRight(_0x1d81b2,_0x266f85);}_0x5bf7a6[_0x3fc166(0xc0)](_0x35fae3);}return _0x5bf7a6[_0x3fc166(0xbd)]('\x0a');}export function renderSyncSummary(_0x361072,_0x5709b3){const _0x5ba37b=a85_0x41ca;if(_0x361072[_0x5ba37b(0xb1)]===0x0)return _0x5709b3?'\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.':_0x5ba37b(0xc4);const _0x5cf1c0=['\x20\x20'+_0x361072[_0x5ba37b(0xb1)]+_0x5ba37b(0xc3)];for(const _0x4f876f of _0x361072){_0x5cf1c0[_0x5ba37b(0xc0)](_0x5ba37b(0xc6)+_0x4f876f['label']+'\x20('+_0x4f876f[_0x5ba37b(0xb9)]+')');}return _0x5cf1c0[_0x5ba37b(0xbd)]('\x0a');}export function renderUpdateSummary(_0x59dd9e,_0x3d751a){const _0x2af274=a85_0x41ca;if(_0x59dd9e[_0x2af274(0xb1)]===0x0)return _0x2af274(0xc7);const _0x16581a=['\x20\x20'+_0x59dd9e[_0x2af274(0xb1)]+'\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:',_0x2af274(0xbb)+(_0x3d751a[0x0]??_0x2af274(0xc8)),_0x2af274(0xb4)+(_0x3d751a[0x1]??'(unchanged)'),'','\x20\x20Affected\x20menus:\x20'+_0x59dd9e[_0x2af274(0xbd)](',\x20')];return _0x16581a['join']('\x0a');}function a85_0x4a56(){const _0x2e9a6e=['81776ASDXwG','\x20\x20\x20\x20JS:\x20\x20','max','join','Platform','25ynUjzA','push','2962386COrBiU','955850dWEqcg','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','\x20\x20No\x20pages\x20to\x20sync.','6312GnMYgL','\x20\x20\x20\x20•\x20','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','(unchanged)','test','local','map','4361vNtzvu','971521oIRbGr','showOnline','length','repeat','Local','\x20\x20\x20\x20CSS:\x20','3331230cUykGa','13939137CdStaa','20gyRsgB','label','path'];a85_0x4a56=function(){return _0x2e9a6e;};return a85_0x4a56();}
@@ -1 +1 @@
1
- function a86_0x236d(_0x1a55e6,_0x392e17){_0x1a55e6=_0x1a55e6-0x1a3;var _0x1cc3a9=a86_0x1cc3();var _0x236d53=_0x1cc3a9[_0x1a55e6];return _0x236d53;}function a86_0x1cc3(){var _0x914287=['1592885QCYvGJ','668588keIIXD','5683360LwBqpC','518536WFZPIQ','2374818wduPdU','402143IkYAnW','9TZnofe','5898546EmFqzb','414qVlBtB'];a86_0x1cc3=function(){return _0x914287;};return a86_0x1cc3();}(function(_0x35f698,_0x534da5){var _0x639429=a86_0x236d,_0x35c79b=_0x35f698();while(!![]){try{var _0x1fb72b=-parseInt(_0x639429(0x1aa))/0x1+-parseInt(_0x639429(0x1a5))/0x2+parseInt(_0x639429(0x1a7))/0x3*(parseInt(_0x639429(0x1ab))/0x4)+parseInt(_0x639429(0x1a3))/0x5+-parseInt(_0x639429(0x1a8))/0x6+parseInt(_0x639429(0x1a6))/0x7+-parseInt(_0x639429(0x1a4))/0x8*(-parseInt(_0x639429(0x1a9))/0x9);if(_0x1fb72b===_0x534da5)break;else _0x35c79b['push'](_0x35c79b['shift']());}catch(_0x48eaa5){_0x35c79b['push'](_0x35c79b['shift']());}}}(a86_0x1cc3,0xdf15f));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
1
+ (function(_0x3140c7,_0x4495c8){var _0x96ad37=a86_0x4a05,_0x280682=_0x3140c7();while(!![]){try{var _0x5c4de9=parseInt(_0x96ad37(0xa5))/0x1+-parseInt(_0x96ad37(0x9e))/0x2*(parseInt(_0x96ad37(0x9f))/0x3)+-parseInt(_0x96ad37(0xa6))/0x4*(parseInt(_0x96ad37(0x9d))/0x5)+parseInt(_0x96ad37(0xa1))/0x6*(-parseInt(_0x96ad37(0xa2))/0x7)+-parseInt(_0x96ad37(0xa0))/0x8*(-parseInt(_0x96ad37(0x9b))/0x9)+parseInt(_0x96ad37(0x9c))/0xa+parseInt(_0x96ad37(0xa4))/0xb*(parseInt(_0x96ad37(0xa3))/0xc);if(_0x5c4de9===_0x4495c8)break;else _0x280682['push'](_0x280682['shift']());}catch(_0x2555d8){_0x280682['push'](_0x280682['shift']());}}}(a86_0x3c42,0xcc2ce));function a86_0x4a05(_0x20608a,_0x17bbd1){_0x20608a=_0x20608a-0x9b;var _0x3c429b=a86_0x3c42();var _0x4a05a1=_0x3c429b[_0x20608a];return _0x4a05a1;}export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';function a86_0x3c42(){var _0x32384b=['1765SDIwLA','5714MstRMU','1599LNGhbm','608xmxCNw','4958754aGSJBt','7dUAeya','564fpoIYi','312334Jtscxe','687301WkAsLj','2388uMCqhx','155169DfdiNf','641480OuAwIN'];a86_0x3c42=function(){return _0x32384b;};return a86_0x3c42();}export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
@@ -1 +1 @@
1
- (function(_0x39ccd8,_0x4ff551){const _0x1e6654=a87_0x24d8,_0x20eedf=_0x39ccd8();while(!![]){try{const _0x48db1c=parseInt(_0x1e6654(0x169))/0x1*(-parseInt(_0x1e6654(0x15b))/0x2)+-parseInt(_0x1e6654(0x164))/0x3*(-parseInt(_0x1e6654(0x15f))/0x4)+parseInt(_0x1e6654(0x14a))/0x5+-parseInt(_0x1e6654(0x140))/0x6+parseInt(_0x1e6654(0x15d))/0x7+parseInt(_0x1e6654(0x142))/0x8+-parseInt(_0x1e6654(0x159))/0x9*(parseInt(_0x1e6654(0x13e))/0xa);if(_0x48db1c===_0x4ff551)break;else _0x20eedf['push'](_0x20eedf['shift']());}catch(_0x414d42){_0x20eedf['push'](_0x20eedf['shift']());}}}(a87_0x2dae,0xd2c4e));import a87_0x4aa16b from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';function a87_0x2dae(){const _0x5ad1b8=['No\x20menus\x20selected.','6441414KITJhq','cancelled','172sDYQdO','start','stdin','isTTY','[already\x20on\x20platform]','68118WDFvrY','\x20\x20JS\x20URL:','error','JS\x20URL\x20check\x20failed','fail','83YHfquw','[new]','\x20\x20Checking\x20JS\x20URL\x20reachability...','\x20\x20CSS\x20URL:','1333170MHNHqn','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','3919806KrPhCL','test','377264Bmglkm','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','succeed','name','CSS\x20URL\x20check\x20failed','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','JS\x20URL\x20checked','path','2348505UOBZWW','length','green','trim','ExitPromptError','red','Cancelled.','No\x20local\x20pages\x20found.','includes','label','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','cyan','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','has','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','36cDQHjb','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','8760mHnjDO'];a87_0x2dae=function(){return _0x5ad1b8;};return a87_0x2dae();}import a87_0x1c20b8 from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x422b91){return _0x422b91['catch'](_0x24cd2=>{const _0x44155b=a87_0x24d8;if(_0x24cd2?.[_0x44155b(0x145)]===_0x44155b(0x14e))throw CliErrors[_0x44155b(0x15e)](_0x44155b(0x150));throw _0x24cd2;});}export function startSpinner(_0x50d489){const _0x2bb178=a87_0x24d8;return a87_0x1c20b8({'text':_0x50d489,'color':_0x2bb178(0x155)})[_0x2bb178(0x160)]();}export function stopSpinner(_0x4859c6,_0x188d2c,_0x2cdae0){const _0x4a53ec=a87_0x24d8;_0x2cdae0?_0x4859c6[_0x4a53ec(0x144)](_0x188d2c):_0x4859c6[_0x4a53ec(0x168)](_0x188d2c);}export async function askConfirm(_0x543658){return onCancel(confirm({'message':_0x543658,'theme':{'prefix':''}}));}export async function askJsUrl(_0x3abf82){const _0x22d286=a87_0x24d8;while(!![]){const _0x5a0cd5=await onCancel(input({'message':_0x22d286(0x165),'default':_0x3abf82,'theme':{'prefix':''}}));if(_0x5a0cd5['trim']()==='')throw CliErrors[_0x22d286(0x15e)](_0x22d286(0x150));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x22d286(0x141)](_0x5a0cd5[_0x22d286(0x14d)]())){console[_0x22d286(0x166)](a87_0x4aa16b['red'](_0x22d286(0x156)));continue;}const _0xaf012b=startSpinner(_0x22d286(0x13c));try{const _0x4ed179=await isUrlReachable(_0x5a0cd5[_0x22d286(0x14d)]());stopSpinner(_0xaf012b,_0x22d286(0x148),_0x4ed179);if(!_0x4ed179){console[_0x22d286(0x166)](a87_0x4aa16b[_0x22d286(0x14f)](_0x22d286(0x15a)));continue;}return _0x5a0cd5[_0x22d286(0x14d)]();}catch(_0x5eae58){stopSpinner(_0xaf012b,_0x22d286(0x167),![]);throw _0x5eae58;}}}export async function askCssUrl(_0x4e9d3f){const _0x270cc8=a87_0x24d8;while(!![]){const _0x331039=await onCancel(input({'message':_0x270cc8(0x13d),'default':_0x4e9d3f,'theme':{'prefix':''}}));if(_0x331039[_0x270cc8(0x14d)]()==='')throw CliErrors[_0x270cc8(0x15e)](_0x270cc8(0x150));if(!/^https:\/\/.+\.css(\?.*)?$/['test'](_0x331039[_0x270cc8(0x14d)]())){console[_0x270cc8(0x166)](a87_0x4aa16b[_0x270cc8(0x14f)](_0x270cc8(0x158)));continue;}const _0x7c7a8b=startSpinner('\x20\x20Checking\x20CSS\x20URL\x20reachability...');try{const _0x15499c=await isUrlReachable(_0x331039[_0x270cc8(0x14d)]());stopSpinner(_0x7c7a8b,'CSS\x20URL\x20checked',_0x15499c);if(!_0x15499c){console['error'](a87_0x4aa16b[_0x270cc8(0x14f)](_0x270cc8(0x154)));continue;}return _0x331039[_0x270cc8(0x14d)]();}catch(_0x391091){stopSpinner(_0x7c7a8b,_0x270cc8(0x146),![]);throw _0x391091;}}}function a87_0x24d8(_0x589dc0,_0x2156f1){_0x589dc0=_0x589dc0-0x13c;const _0x2daea9=a87_0x2dae();let _0x24d857=_0x2daea9[_0x589dc0];return _0x24d857;}export async function selectPages(_0x1d5082,_0x343ef5,_0x4e71e6){const _0x721ce2=a87_0x24d8,_0x285168=_0x1d5082['map'](_0x339edf=>({'name':_0x339edf[_0x721ce2(0x153)]+'\x20\x20'+(_0x343ef5[_0x721ce2(0x157)](_0x339edf[_0x721ce2(0x149)])?a87_0x4aa16b['gray'](_0x721ce2(0x163)):a87_0x4aa16b[_0x721ce2(0x14c)](_0x721ce2(0x16a))),'value':_0x339edf[_0x721ce2(0x153)],'checked':_0x4e71e6?_0x4e71e6[_0x721ce2(0x152)](_0x339edf['label']):!_0x343ef5[_0x721ce2(0x157)](_0x339edf[_0x721ce2(0x149)])}));if(_0x285168[_0x721ce2(0x14b)]===0x0)throw new Error(_0x721ce2(0x151));const _0x593ce5=await onCancel(checkbox({'message':_0x721ce2(0x13f),'choices':_0x285168,'loop':![],'theme':{'prefix':''}}));if(_0x593ce5[_0x721ce2(0x14b)]===0x0)throw new Error(_0x721ce2(0x15c));return _0x1d5082['filter'](_0x27c942=>_0x593ce5[_0x721ce2(0x152)](_0x27c942[_0x721ce2(0x153)]));}export function isInteractive(){const _0xbc7b6e=a87_0x24d8;return process[_0xbc7b6e(0x161)][_0xbc7b6e(0x162)]===!![];}export function requireInteractive(){const _0x59150d=a87_0x24d8;if(!isInteractive())throw new Error(_0x59150d(0x147)+_0x59150d(0x143));}
1
+ (function(_0x221c1e,_0x25f4d1){const _0x538835=a87_0x3e2d,_0x29e620=_0x221c1e();while(!![]){try{const _0x2594bd=parseInt(_0x538835(0x80))/0x1*(parseInt(_0x538835(0x7b))/0x2)+parseInt(_0x538835(0x81))/0x3*(-parseInt(_0x538835(0x89))/0x4)+-parseInt(_0x538835(0x9e))/0x5*(-parseInt(_0x538835(0xa0))/0x6)+-parseInt(_0x538835(0x87))/0x7*(parseInt(_0x538835(0x70))/0x8)+-parseInt(_0x538835(0x8d))/0x9+-parseInt(_0x538835(0x79))/0xa*(-parseInt(_0x538835(0x9b))/0xb)+parseInt(_0x538835(0x7e))/0xc*(parseInt(_0x538835(0x6f))/0xd);if(_0x2594bd===_0x25f4d1)break;else _0x29e620['push'](_0x29e620['shift']());}catch(_0x47e3ce){_0x29e620['push'](_0x29e620['shift']());}}}(a87_0x120b,0x96d5c));import a87_0x18519c from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a87_0x34f73a from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x5c8f23){return _0x5c8f23['catch'](_0x4251fd=>{const _0x3548a0=a87_0x3e2d;if(_0x4251fd?.[_0x3548a0(0x8b)]==='ExitPromptError')throw CliErrors['cancelled'](_0x3548a0(0x7d));throw _0x4251fd;});}export function startSpinner(_0x1c02e4){const _0x4e5a68=a87_0x3e2d;return a87_0x34f73a({'text':_0x1c02e4,'color':_0x4e5a68(0x7c)})[_0x4e5a68(0x84)]();}export function stopSpinner(_0x16941a,_0x1b8f07,_0x1cbacb){const _0x55c529=a87_0x3e2d;_0x1cbacb?_0x16941a[_0x55c529(0x95)](_0x1b8f07):_0x16941a['fail'](_0x1b8f07);}function a87_0x120b(){const _0xf61a68=['20wssIco','No\x20menus\x20selected.','name','label','1655685OMrIEP','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','red','filter','\x20\x20JS\x20URL:','stdin','error','length','succeed','CSS\x20URL\x20check\x20failed','[new]','path','gray','JS\x20URL\x20check\x20failed','3004177kKLMgt','[already\x20on\x20platform]','\x20\x20CSS\x20URL:','2294655hevfTT','CSS\x20URL\x20checked','6LWvajC','38194IzPzvm','150776BhusQR','JS\x20URL\x20checked','\x20\x20Checking\x20JS\x20URL\x20reachability...','trim','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','No\x20local\x20pages\x20found.','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','green','10pdGEgU','test','1403806qwpEYl','cyan','Cancelled.','2676OuCQnQ','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','1STHKkF','376611epVaxk','isTTY','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','start','cancelled','map','245NtJbcY','has'];a87_0x120b=function(){return _0xf61a68;};return a87_0x120b();}function a87_0x3e2d(_0x183dfc,_0x7f6ac3){_0x183dfc=_0x183dfc-0x6f;const _0x120be9=a87_0x120b();let _0x3e2d28=_0x120be9[_0x183dfc];return _0x3e2d28;}export async function askConfirm(_0x4af7a9){return onCancel(confirm({'message':_0x4af7a9,'theme':{'prefix':''}}));}export async function askJsUrl(_0x3c7c7e){const _0x495244=a87_0x3e2d;while(!![]){const _0x28a377=await onCancel(input({'message':_0x495244(0x91),'default':_0x3c7c7e,'theme':{'prefix':''}}));if(_0x28a377[_0x495244(0x73)]()==='')throw CliErrors[_0x495244(0x85)](_0x495244(0x7d));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x495244(0x7a)](_0x28a377[_0x495244(0x73)]())){console[_0x495244(0x93)](a87_0x18519c[_0x495244(0x8f)](_0x495244(0x76)));continue;}const _0x4908ae=startSpinner(_0x495244(0x72));try{const _0x42a539=await isUrlReachable(_0x28a377[_0x495244(0x73)]());stopSpinner(_0x4908ae,_0x495244(0x71),_0x42a539);if(!_0x42a539){console[_0x495244(0x93)](a87_0x18519c[_0x495244(0x8f)](_0x495244(0x83)));continue;}return _0x28a377[_0x495244(0x73)]();}catch(_0x20dbc4){stopSpinner(_0x4908ae,_0x495244(0x9a),![]);throw _0x20dbc4;}}}export async function askCssUrl(_0x4ed056){const _0x5f1312=a87_0x3e2d;while(!![]){const _0x4c9585=await onCancel(input({'message':_0x5f1312(0x9d),'default':_0x4ed056,'theme':{'prefix':''}}));if(_0x4c9585[_0x5f1312(0x73)]()==='')throw CliErrors[_0x5f1312(0x85)]('Cancelled.');if(!/^https:\/\/.+\.css(\?.*)?$/[_0x5f1312(0x7a)](_0x4c9585[_0x5f1312(0x73)]())){console[_0x5f1312(0x93)](a87_0x18519c[_0x5f1312(0x8f)](_0x5f1312(0x8e)));continue;}const _0x383be4=startSpinner('\x20\x20Checking\x20CSS\x20URL\x20reachability...');try{const _0x58c168=await isUrlReachable(_0x4c9585[_0x5f1312(0x73)]());stopSpinner(_0x383be4,_0x5f1312(0x9f),_0x58c168);if(!_0x58c168){console[_0x5f1312(0x93)](a87_0x18519c[_0x5f1312(0x8f)](_0x5f1312(0x77)));continue;}return _0x4c9585[_0x5f1312(0x73)]();}catch(_0x1b06aa){stopSpinner(_0x383be4,_0x5f1312(0x96),![]);throw _0x1b06aa;}}}export async function selectPages(_0x5d68a4,_0x5d1983,_0x792d08){const _0x3969cc=a87_0x3e2d,_0x2c589e=_0x5d68a4[_0x3969cc(0x86)](_0x30d77a=>({'name':_0x30d77a[_0x3969cc(0x8c)]+'\x20\x20'+(_0x5d1983['has'](_0x30d77a[_0x3969cc(0x98)])?a87_0x18519c[_0x3969cc(0x99)](_0x3969cc(0x9c)):a87_0x18519c[_0x3969cc(0x78)](_0x3969cc(0x97))),'value':_0x30d77a[_0x3969cc(0x8c)],'checked':_0x792d08?_0x792d08['includes'](_0x30d77a[_0x3969cc(0x8c)]):!_0x5d1983[_0x3969cc(0x88)](_0x30d77a[_0x3969cc(0x98)])}));if(_0x2c589e[_0x3969cc(0x94)]===0x0)throw new Error(_0x3969cc(0x75));const _0x43f15e=await onCancel(checkbox({'message':_0x3969cc(0x74),'choices':_0x2c589e,'loop':![],'theme':{'prefix':''}}));if(_0x43f15e['length']===0x0)throw new Error(_0x3969cc(0x8a));return _0x5d68a4[_0x3969cc(0x90)](_0x18356f=>_0x43f15e['includes'](_0x18356f[_0x3969cc(0x8c)]));}export function isInteractive(){const _0x453b0f=a87_0x3e2d;return process[_0x453b0f(0x92)][_0x453b0f(0x82)]===!![];}export function requireInteractive(){const _0x28a901=a87_0x3e2d;if(!isInteractive())throw new Error('This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20'+_0x28a901(0x7f));}
@@ -1 +1 @@
1
- const a88_0x29b80f=a88_0x148e;(function(_0x2f5921,_0x8c8f95){const _0x2b8d11=a88_0x148e,_0x330907=_0x2f5921();while(!![]){try{const _0x4a20ea=parseInt(_0x2b8d11(0x18c))/0x1+parseInt(_0x2b8d11(0x198))/0x2*(-parseInt(_0x2b8d11(0x18a))/0x3)+-parseInt(_0x2b8d11(0x199))/0x4*(-parseInt(_0x2b8d11(0x19b))/0x5)+parseInt(_0x2b8d11(0x183))/0x6+parseInt(_0x2b8d11(0x186))/0x7*(-parseInt(_0x2b8d11(0x181))/0x8)+-parseInt(_0x2b8d11(0x18d))/0x9+-parseInt(_0x2b8d11(0x18b))/0xa*(-parseInt(_0x2b8d11(0x193))/0xb);if(_0x4a20ea===_0x8c8f95)break;else _0x330907['push'](_0x330907['shift']());}catch(_0x4a5e28){_0x330907['push'](_0x330907['shift']());}}}(a88_0x1818,0xdfead));function a88_0x1818(){const _0x4d9b8a=['match','replaceAll','endsWith','1496539LmqoMg','path','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','replace','src/pages','535474ktiwPU','1721244ldWOGp','index.tsx','10lavdVR','1896IgXtFx','concat','4352160HrJQuD','slice','join','36246VxNdse','trim','cwd','forEach','12TzccQS','200IpCmgE','721269lpTYOK','16316388PRSAJc','push','utf-8'];a88_0x1818=function(){return _0x4d9b8a;};return a88_0x1818();}import{readdirSync,statSync,readFileSync}from'fs';function a88_0x148e(_0x143f93,_0x1c1371){_0x143f93=_0x143f93-0x181;const _0x181810=a88_0x1818();let _0x148ea9=_0x181810[_0x143f93];return _0x148ea9;}import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a88_0x29b80f(0x188)](),a88_0x29b80f(0x197));export function extractTitleFromComment(_0x3e5594){const _0xdbbf32=a88_0x29b80f;try{const _0x3ed8a5=readFileSync(_0x3e5594,_0xdbbf32(0x18f)),_0x1354c4=_0x3ed8a5[_0xdbbf32(0x190)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x1354c4&&_0x1354c4[0x1]){const _0x290647=_0x1354c4[0x1],_0xb036c9=_0x290647[_0xdbbf32(0x190)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0xb036c9&&_0xb036c9[0x1])return _0xb036c9[0x1][_0xdbbf32(0x187)]();}let _0xdd23ca=null;const _0x2577e4=_0x3ed8a5['match'](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x2577e4&&_0x2577e4[0x1]&&(_0xdd23ca=_0x2577e4[0x1]);if(!_0xdd23ca){const _0x39b646=_0x3ed8a5[_0xdbbf32(0x190)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x39b646&&_0x39b646[0x1]&&(_0xdd23ca=_0x39b646[0x1]);}if(_0xdd23ca){const _0xdf2d15=new RegExp('\x5cb'+_0xdd23ca+_0xdbbf32(0x195)),_0x3a94c9=_0x3ed8a5[_0xdbbf32(0x190)](_0xdf2d15);if(_0x3a94c9&&_0x3a94c9[0x1])return _0x3a94c9[0x1];return _0xdd23ca;}return null;}catch(_0xc4c08c){return null;}}export function getLocalPages(_0x29e401=pagesDir,_0x157034=pagesDir){const _0x40afd7=a88_0x29b80f;let _0x2e63b0=[];const _0x1fbfa2=readdirSync(_0x29e401);return _0x1fbfa2[_0x40afd7(0x189)](_0x556836=>{const _0x41f88b=_0x40afd7,_0x32611d=join(_0x29e401,_0x556836),_0x1518f4=statSync(_0x32611d);if(_0x1518f4&&_0x1518f4['isDirectory']())_0x2e63b0=_0x2e63b0[_0x41f88b(0x182)](getLocalPages(_0x32611d,_0x157034));else{if(_0x556836['endsWith']('.tsx')){let _0x2ca1d5=relative(_0x157034,_0x32611d);_0x2ca1d5['endsWith'](_0x41f88b(0x19a))?_0x2ca1d5=_0x2ca1d5['replace'](/index\.tsx$/,''):_0x2ca1d5=_0x2ca1d5[_0x41f88b(0x196)](/\.tsx$/,'');_0x2ca1d5[_0x41f88b(0x192)](sep)&&(_0x2ca1d5=_0x2ca1d5[_0x41f88b(0x184)](0x0,-0x1));const _0x20e4cc=_0x2ca1d5['split'](sep)[_0x41f88b(0x185)]('/'),_0x96fc1a=extractTitleFromComment(_0x32611d),_0x27137e=_0x96fc1a||_0x20e4cc;_0x2e63b0[_0x41f88b(0x18e)]({'path':_0x20e4cc[_0x41f88b(0x191)]('$',':'),'label':_0x27137e});}}}),_0x2e63b0['filter'](_0x270b12=>_0x270b12[_0x40afd7(0x194)]!=='');}
1
+ const a88_0x174338=a88_0x4b0d;(function(_0x4803c5,_0x5d60ab){const _0x2348fc=a88_0x4b0d,_0x34198d=_0x4803c5();while(!![]){try{const _0xcb30dd=parseInt(_0x2348fc(0x132))/0x1+-parseInt(_0x2348fc(0x13d))/0x2+parseInt(_0x2348fc(0x140))/0x3+-parseInt(_0x2348fc(0x13b))/0x4*(-parseInt(_0x2348fc(0x12c))/0x5)+-parseInt(_0x2348fc(0x134))/0x6*(-parseInt(_0x2348fc(0x13f))/0x7)+parseInt(_0x2348fc(0x13e))/0x8*(parseInt(_0x2348fc(0x133))/0x9)+parseInt(_0x2348fc(0x12d))/0xa*(-parseInt(_0x2348fc(0x12a))/0xb);if(_0xcb30dd===_0x5d60ab)break;else _0x34198d['push'](_0x34198d['shift']());}catch(_0x40da1b){_0x34198d['push'](_0x34198d['shift']());}}}(a88_0x5d94,0xb0d14));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process['cwd'](),a88_0x174338(0x130));function a88_0x4b0d(_0x363e28,_0x1ce693){_0x363e28=_0x363e28-0x129;const _0x5d94c9=a88_0x5d94();let _0x4b0d61=_0x5d94c9[_0x363e28];return _0x4b0d61;}export function extractTitleFromComment(_0x534110){const _0x28b1dd=a88_0x174338;try{const _0x42f226=readFileSync(_0x534110,'utf-8'),_0x5125b2=_0x42f226[_0x28b1dd(0x129)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x5125b2&&_0x5125b2[0x1]){const _0x2d37a7=_0x5125b2[0x1],_0x2cc60c=_0x2d37a7['match'](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x2cc60c&&_0x2cc60c[0x1])return _0x2cc60c[0x1][_0x28b1dd(0x136)]();}let _0x56aa1c=null;const _0x23c599=_0x42f226[_0x28b1dd(0x129)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x23c599&&_0x23c599[0x1]&&(_0x56aa1c=_0x23c599[0x1]);if(!_0x56aa1c){const _0x598d7e=_0x42f226[_0x28b1dd(0x129)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x598d7e&&_0x598d7e[0x1]&&(_0x56aa1c=_0x598d7e[0x1]);}if(_0x56aa1c){const _0x82456b=new RegExp('\x5cb'+_0x56aa1c+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0x4e0647=_0x42f226[_0x28b1dd(0x129)](_0x82456b);if(_0x4e0647&&_0x4e0647[0x1])return _0x4e0647[0x1];return _0x56aa1c;}return null;}catch(_0x3a437a){return null;}}function a88_0x5d94(){const _0x8156a0=['11979171OvndAv','6TQmabZ','endsWith','trim','split','replace','replaceAll','forEach','4DfVWCH','isDirectory','1775588EBoSiV','8ypkKCu','8160978uRkfWX','3875913IonqbM','match','13112bDWiRi','push','5493650nFwPDj','31420FMDBnf','concat','.tsx','src/pages','index.tsx','469728cqsOsE'];a88_0x5d94=function(){return _0x8156a0;};return a88_0x5d94();}export function getLocalPages(_0x412601=pagesDir,_0x20d5ff=pagesDir){const _0xcfe3ac=a88_0x174338;let _0x4995ae=[];const _0x2d80ca=readdirSync(_0x412601);return _0x2d80ca[_0xcfe3ac(0x13a)](_0x2235b5=>{const _0x57a31e=_0xcfe3ac,_0x171593=join(_0x412601,_0x2235b5),_0x10a6f0=statSync(_0x171593);if(_0x10a6f0&&_0x10a6f0[_0x57a31e(0x13c)]())_0x4995ae=_0x4995ae[_0x57a31e(0x12e)](getLocalPages(_0x171593,_0x20d5ff));else{if(_0x2235b5[_0x57a31e(0x135)](_0x57a31e(0x12f))){let _0x4a20af=relative(_0x20d5ff,_0x171593);_0x4a20af[_0x57a31e(0x135)](_0x57a31e(0x131))?_0x4a20af=_0x4a20af[_0x57a31e(0x138)](/index\.tsx$/,''):_0x4a20af=_0x4a20af[_0x57a31e(0x138)](/\.tsx$/,'');_0x4a20af[_0x57a31e(0x135)](sep)&&(_0x4a20af=_0x4a20af['slice'](0x0,-0x1));const _0x7189c=_0x4a20af[_0x57a31e(0x137)](sep)['join']('/'),_0x3ff423=extractTitleFromComment(_0x171593),_0x59cbc2=_0x3ff423||_0x7189c;_0x4995ae[_0x57a31e(0x12b)]({'path':_0x7189c[_0x57a31e(0x139)]('$',':'),'label':_0x59cbc2});}}}),_0x4995ae['filter'](_0x4ed43d=>_0x4ed43d['path']!=='');}
@@ -1 +1 @@
1
- (function(_0x18d39e,_0x2a79be){const _0x15393e=a89_0x4586,_0x5e28b0=_0x18d39e();while(!![]){try{const _0x2ef637=-parseInt(_0x15393e(0x95))/0x1*(-parseInt(_0x15393e(0x80))/0x2)+-parseInt(_0x15393e(0x86))/0x3+parseInt(_0x15393e(0x8d))/0x4*(parseInt(_0x15393e(0x7e))/0x5)+-parseInt(_0x15393e(0x94))/0x6+parseInt(_0x15393e(0x7a))/0x7*(parseInt(_0x15393e(0x92))/0x8)+-parseInt(_0x15393e(0x7c))/0x9*(-parseInt(_0x15393e(0x93))/0xa)+-parseInt(_0x15393e(0x81))/0xb;if(_0x2ef637===_0x2a79be)break;else _0x5e28b0['push'](_0x5e28b0['shift']());}catch(_0xb1cfc1){_0x5e28b0['push'](_0x5e28b0['shift']());}}}(a89_0x32ef,0xcfc16));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';export function validateJsUrl(_0x41e1c8){const _0x1349d1=a89_0x4586,_0x242c0a=[];return!isValidJsHttpsUrl(_0x41e1c8)&&_0x242c0a[_0x1349d1(0x89)](_0x1349d1(0x96)),{'ok':_0x242c0a[_0x1349d1(0x82)]===0x0,'errors':_0x242c0a};}function a89_0x32ef(){const _0x45b674=['path','8GSavpU','rejected','label','status','JS\x20URL\x20is\x20unreachable','592nXiEDr','10FdeIXR','746598mkZhYo','176744uYwhHn','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','has','trim','121989LRmJSE','map','4355865HhKhqe','No\x20local\x20pages\x20matched\x20labels:\x20','3121025LlkslD','filter','12zsioVA','25772197EMiPbR','length','join','resources','value','2292393JTgZfF','CSS\x20URL\x20is\x20unreachable','errors','push','find','extend'];a89_0x32ef=function(){return _0x45b674;};return a89_0x32ef();}export function validateCssUrl(_0xb4ace4){const _0x1b62d6=a89_0x4586,_0xc4c426=[];return!isValidCssHttpsUrl(_0xb4ace4)&&_0xc4c426[_0x1b62d6(0x89)]('CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'),{'ok':_0xc4c426[_0x1b62d6(0x82)]===0x0,'errors':_0xc4c426};}export async function validateJsUrlReachable(_0x5379ef){const _0x4b3535=a89_0x4586,_0x57fba7=validateJsUrl(_0x5379ef);if(!_0x57fba7['ok'])return _0x57fba7;const _0x26a983=await isUrlReachable(_0x5379ef);if(!_0x26a983)_0x57fba7[_0x4b3535(0x88)][_0x4b3535(0x89)](_0x4b3535(0x91));return{'ok':_0x57fba7[_0x4b3535(0x88)][_0x4b3535(0x82)]===0x0,'errors':_0x57fba7[_0x4b3535(0x88)]};}export async function validateCssUrlReachable(_0x4d0773){const _0x50f62e=a89_0x4586,_0x196fbf=validateCssUrl(_0x4d0773);if(!_0x196fbf['ok'])return _0x196fbf;const _0x4d64cd=await isUrlReachable(_0x4d0773);if(!_0x4d64cd)_0x196fbf[_0x50f62e(0x88)]['push'](_0x50f62e(0x87));return{'ok':_0x196fbf[_0x50f62e(0x88)][_0x50f62e(0x82)]===0x0,'errors':_0x196fbf[_0x50f62e(0x88)]};}export function buildCompareRows(_0x174de3,_0x477b35){const _0x4d83d8=a89_0x4586;return _0x174de3['map'](_0x381c1a=>({'label':_0x381c1a[_0x4d83d8(0x8f)],'path':_0x381c1a[_0x4d83d8(0x8c)],'local':!![],'online':_0x477b35[_0x4d83d8(0x97)](_0x381c1a['path'])}));}export function filterNewPages(_0xd78ab3,_0x400ea0,_0x5702c0){const _0x148bfd=a89_0x4586;if(_0x5702c0&&_0x5702c0[_0x148bfd(0x82)]>0x0){const _0x5b850a=new Set(_0x5702c0['map'](_0x38e148=>_0x38e148['trim']())),_0x123693=_0xd78ab3[_0x148bfd(0x7f)](_0x5760df=>_0x5b850a[_0x148bfd(0x97)](_0x5760df[_0x148bfd(0x8f)]));if(_0x123693[_0x148bfd(0x82)]===0x0)throw new Error(_0x148bfd(0x7d)+[..._0x5b850a][_0x148bfd(0x83)](',\x20'));return _0x123693;}return _0xd78ab3[_0x148bfd(0x7f)](_0x4c3b21=>!_0x400ea0['has'](_0x4c3b21[_0x148bfd(0x8c)]));}function a89_0x4586(_0x3d021d,_0x41552c){_0x3d021d=_0x3d021d-0x7a;const _0x32ef32=a89_0x32ef();let _0x4586ba=_0x32ef32[_0x3d021d];return _0x4586ba;}export function filterPagesByLabels(_0x54e12a,_0x5b6c1a){const _0x3b1d89=a89_0x4586,_0x550c30=[],_0x2ad193=[];for(const _0x58f27a of _0x5b6c1a){const _0x27cc14=_0x58f27a[_0x3b1d89(0x98)](),_0x37664a=_0x54e12a[_0x3b1d89(0x8a)](_0x2e5c2b=>_0x2e5c2b[_0x3b1d89(0x8f)]===_0x27cc14);if(_0x37664a)_0x550c30[_0x3b1d89(0x89)](_0x37664a);else _0x2ad193[_0x3b1d89(0x89)](_0x58f27a);}return{'matched':_0x550c30,'unmatched':_0x2ad193};}export async function doCreateMenus(_0xe021d6,_0x1961f0,_0x99e8a1,_0x457327){const _0x31f47d=a89_0x4586,_0x41dc1c=await createMenus(_0xe021d6,_0x1961f0,_0x99e8a1,_0x457327);return{'created':_0x41dc1c[_0x31f47d(0x82)],'failed':0x0,'labels':_0x99e8a1[_0x31f47d(0x7b)](_0x346123=>_0x346123[_0x31f47d(0x8f)]),'menus':_0x41dc1c};}export function filterMenusWithResources(_0x5ca556){const _0x32251b=a89_0x4586;return _0x5ca556[_0x32251b(0x7f)](_0x32c208=>_0x32c208[_0x32251b(0x84)][_0x32251b(0x82)]>0x0);}export async function doUpdateCdnUrls(_0x220db2,_0x5e61b7,_0x5b5b1c,_0x1c25ea){const _0xaca465=a89_0x4586,_0x5ac07f=_0x5b5b1c[_0xaca465(0x7f)](_0x38d2e8=>_0x38d2e8[_0xaca465(0x84)][_0xaca465(0x82)]>0x0),_0x760e0d=await Promise['allSettled'](_0x5ac07f[_0xaca465(0x7b)](_0x432cca=>updateMenuCdnUrl(_0x220db2,_0x5e61b7,{'id':_0x432cca['id'],'label':_0x432cca['label'],'path':_0x432cca[_0xaca465(0x8c)],'resources':_0x1c25ea,'extend':_0x432cca[_0xaca465(0x8b)]??null}))),_0x4a6c52=_0x760e0d[_0xaca465(0x7f)](_0x4d7e9a=>_0x4d7e9a[_0xaca465(0x90)]==='fulfilled')[_0xaca465(0x7b)](_0x1b2b6c=>_0x1b2b6c[_0xaca465(0x85)]),_0x4b6e14=_0x760e0d[_0xaca465(0x7f)](_0x5a0303=>_0x5a0303[_0xaca465(0x90)]===_0xaca465(0x8e))[_0xaca465(0x82)];return{'updated':_0x4a6c52['length'],'failed':_0x4b6e14,'menus':_0x4a6c52};}export async function fetchMenuData(_0x4f140d,_0x4cde8e){const _0x18d62f=a89_0x4586,_0x5df570=getLocalPages(),_0x451494=await getOnlineMenuList(_0x4f140d,_0x4cde8e),_0xd22ba4=new Set(_0x451494[_0x18d62f(0x7b)](_0x1db26c=>_0x1db26c[_0x18d62f(0x8c)]));return{'localPages':_0x5df570,'onlineMenuList':_0x451494,'onlinePaths':_0xd22ba4};}export async function fetchOnlineMenuList(_0x49ac5f,_0x4cd1ac){return getOnlineMenuList(_0x49ac5f,_0x4cd1ac);}
1
+ (function(_0x344baa,_0x2ba9e1){const _0x1559d7=a89_0x4af7,_0x173ec5=_0x344baa();while(!![]){try{const _0x1b7ff3=parseInt(_0x1559d7(0xf2))/0x1*(-parseInt(_0x1559d7(0xe4))/0x2)+parseInt(_0x1559d7(0xea))/0x3+-parseInt(_0x1559d7(0xf0))/0x4*(parseInt(_0x1559d7(0xe9))/0x5)+-parseInt(_0x1559d7(0xdf))/0x6+-parseInt(_0x1559d7(0xdd))/0x7*(parseInt(_0x1559d7(0xe1))/0x8)+-parseInt(_0x1559d7(0xf3))/0x9+parseInt(_0x1559d7(0xe6))/0xa;if(_0x1b7ff3===_0x2ba9e1)break;else _0x173ec5['push'](_0x173ec5['shift']());}catch(_0x3594af){_0x173ec5['push'](_0x173ec5['shift']());}}}(a89_0x1a95,0xb1b63));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';export function validateJsUrl(_0x90d3fb){const _0xc226f8=a89_0x4af7,_0x4aacee=[];return!isValidJsHttpsUrl(_0x90d3fb)&&_0x4aacee['push'](_0xc226f8(0xf4)),{'ok':_0x4aacee['length']===0x0,'errors':_0x4aacee};}export function validateCssUrl(_0x45c4d3){const _0x16593d=a89_0x4af7,_0x168843=[];return!isValidCssHttpsUrl(_0x45c4d3)&&_0x168843['push'](_0x16593d(0xf8)),{'ok':_0x168843[_0x16593d(0xe8)]===0x0,'errors':_0x168843};}export async function validateJsUrlReachable(_0x290d0d){const _0x2aff29=a89_0x4af7,_0x5651ab=validateJsUrl(_0x290d0d);if(!_0x5651ab['ok'])return _0x5651ab;const _0xf00815=await isUrlReachable(_0x290d0d);if(!_0xf00815)_0x5651ab['errors'][_0x2aff29(0xef)](_0x2aff29(0xf1));return{'ok':_0x5651ab[_0x2aff29(0xde)][_0x2aff29(0xe8)]===0x0,'errors':_0x5651ab[_0x2aff29(0xde)]};}export async function validateCssUrlReachable(_0x2e828d){const _0x2212ef=a89_0x4af7,_0x457097=validateCssUrl(_0x2e828d);if(!_0x457097['ok'])return _0x457097;const _0x22700d=await isUrlReachable(_0x2e828d);if(!_0x22700d)_0x457097[_0x2212ef(0xde)][_0x2212ef(0xef)](_0x2212ef(0xe5));return{'ok':_0x457097[_0x2212ef(0xde)]['length']===0x0,'errors':_0x457097[_0x2212ef(0xde)]};}export function buildCompareRows(_0x518f1d,_0x60dcf6){const _0x344722=a89_0x4af7;return _0x518f1d[_0x344722(0xf5)](_0xc4cf25=>({'label':_0xc4cf25[_0x344722(0xe3)],'path':_0xc4cf25[_0x344722(0xe0)],'local':!![],'online':_0x60dcf6['has'](_0xc4cf25['path'])}));}export function filterNewPages(_0x4b3b0d,_0x467830,_0x4bb65a){const _0x1ac971=a89_0x4af7;if(_0x4bb65a&&_0x4bb65a['length']>0x0){const _0x4c6285=new Set(_0x4bb65a[_0x1ac971(0xf5)](_0x3e375b=>_0x3e375b[_0x1ac971(0xeb)]())),_0x4a9052=_0x4b3b0d[_0x1ac971(0xec)](_0x39218d=>_0x4c6285[_0x1ac971(0xe7)](_0x39218d[_0x1ac971(0xe3)]));if(_0x4a9052[_0x1ac971(0xe8)]===0x0)throw new Error('No\x20local\x20pages\x20matched\x20labels:\x20'+[..._0x4c6285]['join'](',\x20'));return _0x4a9052;}return _0x4b3b0d[_0x1ac971(0xec)](_0x12ad1d=>!_0x467830['has'](_0x12ad1d['path']));}function a89_0x4af7(_0x2806d5,_0x17c107){_0x2806d5=_0x2806d5-0xdc;const _0x1a95f1=a89_0x1a95();let _0x4af713=_0x1a95f1[_0x2806d5];return _0x4af713;}export function filterPagesByLabels(_0x3bd713,_0x588816){const _0x1264f8=a89_0x4af7,_0x2ab568=[],_0x2dd5f8=[];for(const _0x583874 of _0x588816){const _0x358c08=_0x583874['trim'](),_0x5ca9c8=_0x3bd713[_0x1264f8(0xdc)](_0x28f7ad=>_0x28f7ad[_0x1264f8(0xe3)]===_0x358c08);if(_0x5ca9c8)_0x2ab568['push'](_0x5ca9c8);else _0x2dd5f8[_0x1264f8(0xef)](_0x583874);}return{'matched':_0x2ab568,'unmatched':_0x2dd5f8};}export async function doCreateMenus(_0x1f519f,_0x437ea6,_0x5c4005,_0x3854f0){const _0x50933f=a89_0x4af7,_0x315e45=await createMenus(_0x1f519f,_0x437ea6,_0x5c4005,_0x3854f0);return{'created':_0x315e45[_0x50933f(0xe8)],'failed':0x0,'labels':_0x5c4005[_0x50933f(0xf5)](_0xe2f7b2=>_0xe2f7b2['label']),'menus':_0x315e45};}export function filterMenusWithResources(_0x22c778){const _0x48befb=a89_0x4af7;return _0x22c778[_0x48befb(0xec)](_0x42f358=>_0x42f358[_0x48befb(0xee)][_0x48befb(0xe8)]>0x0);}export async function doUpdateCdnUrls(_0x95c902,_0x97322a,_0x1ee57f,_0x576ceb){const _0x440ea7=a89_0x4af7,_0x4e4191=_0x1ee57f[_0x440ea7(0xec)](_0x1c2251=>_0x1c2251['resources'][_0x440ea7(0xe8)]>0x0),_0x3d91b0=await Promise['allSettled'](_0x4e4191[_0x440ea7(0xf5)](_0x14a083=>updateMenuCdnUrl(_0x95c902,_0x97322a,{'id':_0x14a083['id'],'label':_0x14a083[_0x440ea7(0xe3)],'path':_0x14a083[_0x440ea7(0xe0)],'resources':_0x576ceb,'extend':_0x14a083[_0x440ea7(0xe2)]??null}))),_0x25ce94=_0x3d91b0[_0x440ea7(0xec)](_0x24efb9=>_0x24efb9['status']===_0x440ea7(0xf6))[_0x440ea7(0xf5)](_0x3ec4c5=>_0x3ec4c5[_0x440ea7(0xed)]),_0x1b80e4=_0x3d91b0[_0x440ea7(0xec)](_0x1498fb=>_0x1498fb['status']===_0x440ea7(0xf7))[_0x440ea7(0xe8)];return{'updated':_0x25ce94[_0x440ea7(0xe8)],'failed':_0x1b80e4,'menus':_0x25ce94};}export async function fetchMenuData(_0xdcd7f3,_0x45e5dc){const _0x475114=a89_0x4af7,_0x35e51=getLocalPages(),_0x4ec771=await getOnlineMenuList(_0xdcd7f3,_0x45e5dc),_0xc399f0=new Set(_0x4ec771[_0x475114(0xf5)](_0x5b55cf=>_0x5b55cf[_0x475114(0xe0)]));return{'localPages':_0x35e51,'onlineMenuList':_0x4ec771,'onlinePaths':_0xc399f0};}function a89_0x1a95(){const _0x31d353=['36251710kptEoP','has','length','45rxpWTX','4347627tjVlcK','trim','filter','value','resources','push','575204ECBSvl','JS\x20URL\x20is\x20unreachable','5146DHTBfZ','4335714BshgOx','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','map','fulfilled','rejected','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','find','91jLayuZ','errors','8135682LgHHgw','path','449752kqmaDx','extend','label','188YhrVBT','CSS\x20URL\x20is\x20unreachable'];a89_0x1a95=function(){return _0x31d353;};return a89_0x1a95();}export async function fetchOnlineMenuList(_0x38e456,_0x38be25){return getOnlineMenuList(_0x38e456,_0x38be25);}
@@ -1 +1 @@
1
- (function(_0x905641,_0x5dacce){const _0x5565bf=a90_0x2340,_0x264a33=_0x905641();while(!![]){try{const _0x5e9d96=parseInt(_0x5565bf(0x11d))/0x1*(parseInt(_0x5565bf(0xf2))/0x2)+-parseInt(_0x5565bf(0x10e))/0x3*(-parseInt(_0x5565bf(0xef))/0x4)+parseInt(_0x5565bf(0x104))/0x5*(-parseInt(_0x5565bf(0x100))/0x6)+-parseInt(_0x5565bf(0xf1))/0x7*(-parseInt(_0x5565bf(0x112))/0x8)+parseInt(_0x5565bf(0xf6))/0x9+parseInt(_0x5565bf(0xf5))/0xa*(parseInt(_0x5565bf(0x11c))/0xb)+-parseInt(_0x5565bf(0x114))/0xc*(parseInt(_0x5565bf(0x10a))/0xd);if(_0x5e9d96===_0x5dacce)break;else _0x264a33['push'](_0x264a33['shift']());}catch(_0xd20f21){_0x264a33['push'](_0x264a33['shift']());}}}(a90_0x4d28,0xaadd7));import{getApiDomain}from'../../../constant/domain.js';import{getEnv,isProduction}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';import{platformFetch}from'../../../core/api-client.js';export async function getOnlineMenuList(_0x30b978,_0x4ddc0f){const _0x47a13f=a90_0x2340,_0x39e699=getEnv();logger[_0x47a13f(0x113)](_0x47a13f(0x10c),isProduction(_0x39e699)?_0x47a13f(0x108)+_0x30b978+')':_0x47a13f(0x109)+_0x30b978+')');const _0x587d2a=await platformFetch(getApiDomain()+_0x47a13f(0xfd)+_0x30b978,{'cookie':_0x4ddc0f,'label':_0x47a13f(0x116)});if(!_0x587d2a)return logger[_0x47a13f(0x113)](_0x47a13f(0x10c),'Server\x20returned\x20empty\x20menu\x20list'),[];return logger[_0x47a13f(0x113)]('get-online-menu-list',_0x47a13f(0x106)+_0x587d2a['length']+_0x47a13f(0xf0)),_0x587d2a[_0x47a13f(0x115)](flattenMenuItem)[_0x47a13f(0xfb)]();}function flattenMenuItem(_0x12437c){const _0x18d30f=a90_0x2340;let _0x5b292f=[];try{const _0x46c3bc=_0x12437c[_0x18d30f(0xf3)]?.[_0x18d30f(0xf4)];if(typeof _0x46c3bc===_0x18d30f(0x107)){const _0xdb700f=JSON[_0x18d30f(0xed)](_0x46c3bc);if(Array['isArray'](_0xdb700f))_0x5b292f=_0xdb700f[_0x18d30f(0x115)](String);}else Array[_0x18d30f(0xfe)](_0x46c3bc)&&(_0x5b292f=_0x46c3bc[_0x18d30f(0x115)](String));}catch{}const _0xb6ff87=[{'id':_0x12437c['id'],'path':_0x12437c[_0x18d30f(0xf7)],'label':_0x12437c[_0x18d30f(0x119)],'resources':_0x5b292f,'extend':_0x12437c['extend']??null}];if(_0x12437c['children']&&_0x12437c['children'][_0x18d30f(0x10f)]>0x0)for(const _0x28b76b of _0x12437c[_0x18d30f(0x111)]){_0xb6ff87[_0x18d30f(0x102)](...flattenMenuItem(_0x28b76b));}return _0xb6ff87;}export async function createMenu(_0x37e3f1,_0x4598fb,_0x3e2f66){const _0x2361b2=a90_0x2340;logger[_0x2361b2(0x113)]('create-menu',_0x2361b2(0x10d)+_0x3e2f66[_0x2361b2(0x119)]+'\x20('+_0x3e2f66['path']+')');const _0x9bee9b={'appCode':_0x37e3f1,'type':_0x2361b2(0x105),'sort':0x0,'extend':{'loadScriptMode':_0x2361b2(0xfc),'resources':_0x3e2f66[_0x2361b2(0xf4)]?JSON[_0x2361b2(0xee)](_0x3e2f66[_0x2361b2(0xf4)]):undefined},..._0x3e2f66},_0x379a4d=await platformFetch(getApiDomain()+'/smartapi/menu/create',{'method':_0x2361b2(0x11b),'body':_0x9bee9b,'cookie':_0x4598fb,'label':_0x2361b2(0x110)+_0x3e2f66[_0x2361b2(0x119)]+'\x22'});return logger['info']('create-menu','Menu\x20created\x20successfully:\x20'+_0x3e2f66[_0x2361b2(0x119)]),_0x379a4d;}async function createSingleMenu(_0xdc011d,_0x8b86fd,_0x29f45e,_0x11dc22){const _0x5e3958=a90_0x2340,_0x268b3e={'appCode':_0xdc011d,'type':'procode','sort':0x0,'extend':{'loadScriptMode':_0x5e3958(0xfc),'resources':_0x11dc22?JSON[_0x5e3958(0xee)](_0x11dc22):undefined},'label':_0x29f45e[_0x5e3958(0x119)],'path':_0x29f45e[_0x5e3958(0xf7)]},_0x38f513=await platformFetch(getApiDomain()+_0x5e3958(0x103),{'method':'POST','body':_0x268b3e,'cookie':_0x8b86fd,'label':_0x5e3958(0x110)+_0x29f45e[_0x5e3958(0x119)]+'\x22'});return logger[_0x5e3958(0x113)](_0x5e3958(0xff),_0x5e3958(0x117)+_0x29f45e[_0x5e3958(0x119)]),_0x38f513;}function a90_0x2340(_0x513208,_0xe5533a){_0x513208=_0x513208-0xed;const _0x4d28ba=a90_0x4d28();let _0x23403e=_0x4d28ba[_0x513208];return _0x23403e;}function a90_0x4d28(){const _0x54c61d=['label','all','POST','44cYRppR','622907wVYAFD','parse','stringify','2028eYudsT','\x20online\x20menus\x20successfully','448XZiMMZ','2qYsmFT','extend','resources','1758290OMifWz','7738947TREpks','path','update-menu-cdn-url','Updating\x20menu\x20asset\x20links:\x20','create-menus','flat','import','/smartapi/menu/find?appCode=','isArray','create-menu','84EhuWEw','Batch\x20menu\x20creation\x20completed,\x20total\x20','push','/smartapi/menu/create','176575PPGHMz','procode','Fetched\x20','string','Fetching\x20online\x20menu\x20list...\x20(appCode:\x20','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','13078299CZdEuR','Start\x20batch\x20menu\x20creation,\x20total\x20','get-online-menu-list','Creating\x20menu:\x20','4572LVlZSV','length','Create\x20menu\x20\x22','children','156696MXGXVB','info','36BhaKVL','map','Fetch\x20menu\x20list','Menu\x20created\x20successfully:\x20','Update\x20menu\x20assets\x20\x22'];a90_0x4d28=function(){return _0x54c61d;};return a90_0x4d28();}export async function createMenus(_0x2b33da,_0xa4e82e,_0x17b3d6,_0x407127){const _0x10fa1a=a90_0x2340;logger['info'](_0x10fa1a(0xfa),_0x10fa1a(0x10b)+_0x17b3d6[_0x10fa1a(0x10f)]);const _0x5a9600=await Promise[_0x10fa1a(0x11a)](_0x17b3d6[_0x10fa1a(0x115)](_0x67e0dd=>createSingleMenu(_0x2b33da,_0xa4e82e,_0x67e0dd,_0x407127)));return logger[_0x10fa1a(0x113)](_0x10fa1a(0xfa),_0x10fa1a(0x101)+_0x17b3d6[_0x10fa1a(0x10f)]),_0x5a9600;}export async function updateMenuCdnUrl(_0x4da509,_0x6d77d3,_0x4b55e5){const _0x1c3feb=a90_0x2340;logger['info'](_0x1c3feb(0xf8),_0x1c3feb(0xf9)+_0x4b55e5[_0x1c3feb(0x119)]+'\x20('+_0x4b55e5[_0x1c3feb(0xf7)]+')');const _0x57bb64={'id':_0x4b55e5['id'],'appCode':_0x4da509,'extend':{..._0x4b55e5[_0x1c3feb(0xf3)]??{},'loadScriptMode':_0x1c3feb(0xfc),'resources':_0x4b55e5[_0x1c3feb(0xf4)]?JSON['stringify'](_0x4b55e5[_0x1c3feb(0xf4)]):undefined}},_0x2f8f0a=await platformFetch(getApiDomain()+'/smartapi/menu/update',{'method':'POST','body':_0x57bb64,'cookie':_0x6d77d3,'label':_0x1c3feb(0x118)+_0x4b55e5[_0x1c3feb(0x119)]+'\x22'});return logger[_0x1c3feb(0x113)](_0x1c3feb(0xf8),'Menu\x20assets\x20synced:\x20'+_0x4b55e5[_0x1c3feb(0x119)],undefined),_0x2f8f0a;}
1
+ function a90_0x4958(_0x156f6d,_0x1322be){_0x156f6d=_0x156f6d-0x1ea;const _0x2ec8a9=a90_0x2ec8();let _0x495846=_0x2ec8a9[_0x156f6d];return _0x495846;}(function(_0x5ac14c,_0x283c2e){const _0x9d7571=a90_0x4958,_0x757ab=_0x5ac14c();while(!![]){try{const _0x4cd08f=parseInt(_0x9d7571(0x1f2))/0x1+-parseInt(_0x9d7571(0x213))/0x2+parseInt(_0x9d7571(0x1ee))/0x3+-parseInt(_0x9d7571(0x1ea))/0x4*(parseInt(_0x9d7571(0x1f6))/0x5)+parseInt(_0x9d7571(0x1ed))/0x6*(-parseInt(_0x9d7571(0x209))/0x7)+parseInt(_0x9d7571(0x20c))/0x8+parseInt(_0x9d7571(0x1f9))/0x9*(parseInt(_0x9d7571(0x216))/0xa);if(_0x4cd08f===_0x283c2e)break;else _0x757ab['push'](_0x757ab['shift']());}catch(_0x5a6bd9){_0x757ab['push'](_0x757ab['shift']());}}}(a90_0x2ec8,0xa6e75));import{getApiDomain}from'../../../constant/domain.js';import{getEnv,isProduction}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';import{platformFetch}from'../../../core/api-client.js';function a90_0x2ec8(){const _0x20e300=['Server\x20returned\x20empty\x20menu\x20list','55qAOGKU','POST','flat','9iRIPvb','parse','/smartapi/menu/update','path','import','create-menus','get-online-menu-list','Creating\x20menu:\x20','stringify','length','map','info','Update\x20menu\x20assets\x20\x22','update-menu-cdn-url','/smartapi/menu/create','Create\x20menu\x20\x22','35RDaHLX','push','isArray','3644848mzhhlu','children','resources','Menu\x20assets\x20synced:\x20','procode','Start\x20batch\x20menu\x20creation,\x20total\x20','extend','2158166OXHuAT','Menu\x20created\x20successfully:\x20','label','6544020mCNRBa','Fetching\x20online\x20menu\x20list...\x20(appCode:\x20','131608fxpjYT','all','\x20online\x20menus\x20successfully','271512GIGyVP','772449JjICFm','/smartapi/menu/find?appCode=','create-menu','Batch\x20menu\x20creation\x20completed,\x20total\x20','983411HJbFZJ','Fetch\x20menu\x20list','Updating\x20menu\x20asset\x20links:\x20'];a90_0x2ec8=function(){return _0x20e300;};return a90_0x2ec8();}export async function getOnlineMenuList(_0xe1fad7,_0x97b319){const _0x1dea3d=a90_0x4958,_0x1761c5=getEnv();logger['info']('get-online-menu-list',isProduction(_0x1761c5)?_0x1dea3d(0x217)+_0xe1fad7+')':'Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20'+_0xe1fad7+')');const _0x5c7227=await platformFetch(getApiDomain()+_0x1dea3d(0x1ef)+_0xe1fad7,{'cookie':_0x97b319,'label':_0x1dea3d(0x1f3)});if(!_0x5c7227)return logger[_0x1dea3d(0x204)](_0x1dea3d(0x1ff),_0x1dea3d(0x1f5)),[];return logger[_0x1dea3d(0x204)](_0x1dea3d(0x1ff),'Fetched\x20'+_0x5c7227[_0x1dea3d(0x202)]+_0x1dea3d(0x1ec)),_0x5c7227[_0x1dea3d(0x203)](flattenMenuItem)[_0x1dea3d(0x1f8)]();}function flattenMenuItem(_0x3e6707){const _0x2f5475=a90_0x4958;let _0x6dbba7=[];try{const _0x180996=_0x3e6707[_0x2f5475(0x212)]?.['resources'];if(typeof _0x180996==='string'){const _0x60e41e=JSON[_0x2f5475(0x1fa)](_0x180996);if(Array['isArray'](_0x60e41e))_0x6dbba7=_0x60e41e[_0x2f5475(0x203)](String);}else Array[_0x2f5475(0x20b)](_0x180996)&&(_0x6dbba7=_0x180996[_0x2f5475(0x203)](String));}catch{}const _0x12ece2=[{'id':_0x3e6707['id'],'path':_0x3e6707[_0x2f5475(0x1fc)],'label':_0x3e6707[_0x2f5475(0x215)],'resources':_0x6dbba7,'extend':_0x3e6707[_0x2f5475(0x212)]??null}];if(_0x3e6707[_0x2f5475(0x20d)]&&_0x3e6707['children'][_0x2f5475(0x202)]>0x0)for(const _0x396efd of _0x3e6707[_0x2f5475(0x20d)]){_0x12ece2[_0x2f5475(0x20a)](...flattenMenuItem(_0x396efd));}return _0x12ece2;}export async function createMenu(_0x51af18,_0x4c344b,_0x416864){const _0x24e69a=a90_0x4958;logger['info'](_0x24e69a(0x1f0),_0x24e69a(0x200)+_0x416864[_0x24e69a(0x215)]+'\x20('+_0x416864['path']+')');const _0x52334e={'appCode':_0x51af18,'type':_0x24e69a(0x210),'sort':0x0,'extend':{'loadScriptMode':'import','resources':_0x416864[_0x24e69a(0x20e)]?JSON['stringify'](_0x416864[_0x24e69a(0x20e)]):undefined},..._0x416864},_0x3b382a=await platformFetch(getApiDomain()+_0x24e69a(0x207),{'method':_0x24e69a(0x1f7),'body':_0x52334e,'cookie':_0x4c344b,'label':_0x24e69a(0x208)+_0x416864['label']+'\x22'});return logger[_0x24e69a(0x204)](_0x24e69a(0x1f0),_0x24e69a(0x214)+_0x416864['label']),_0x3b382a;}async function createSingleMenu(_0x4c9bdb,_0x3275c3,_0x25c315,_0x440654){const _0x357914=a90_0x4958,_0x3f85b1={'appCode':_0x4c9bdb,'type':_0x357914(0x210),'sort':0x0,'extend':{'loadScriptMode':_0x357914(0x1fd),'resources':_0x440654?JSON[_0x357914(0x201)](_0x440654):undefined},'label':_0x25c315['label'],'path':_0x25c315[_0x357914(0x1fc)]},_0x3ce8e8=await platformFetch(getApiDomain()+_0x357914(0x207),{'method':'POST','body':_0x3f85b1,'cookie':_0x3275c3,'label':_0x357914(0x208)+_0x25c315[_0x357914(0x215)]+'\x22'});return logger[_0x357914(0x204)]('create-menu','Menu\x20created\x20successfully:\x20'+_0x25c315[_0x357914(0x215)]),_0x3ce8e8;}export async function createMenus(_0x38ec3c,_0x51b277,_0x404d10,_0x2771bb){const _0x1a5b5e=a90_0x4958;logger[_0x1a5b5e(0x204)](_0x1a5b5e(0x1fe),_0x1a5b5e(0x211)+_0x404d10[_0x1a5b5e(0x202)]);const _0x3dbc6e=await Promise[_0x1a5b5e(0x1eb)](_0x404d10[_0x1a5b5e(0x203)](_0x23fa79=>createSingleMenu(_0x38ec3c,_0x51b277,_0x23fa79,_0x2771bb)));return logger['info']('create-menus',_0x1a5b5e(0x1f1)+_0x404d10[_0x1a5b5e(0x202)]),_0x3dbc6e;}export async function updateMenuCdnUrl(_0x550982,_0x2f1171,_0x3ce9c9){const _0x4a29fa=a90_0x4958;logger[_0x4a29fa(0x204)](_0x4a29fa(0x206),_0x4a29fa(0x1f4)+_0x3ce9c9[_0x4a29fa(0x215)]+'\x20('+_0x3ce9c9[_0x4a29fa(0x1fc)]+')');const _0x1cea48={'id':_0x3ce9c9['id'],'appCode':_0x550982,'extend':{..._0x3ce9c9[_0x4a29fa(0x212)]??{},'loadScriptMode':_0x4a29fa(0x1fd),'resources':_0x3ce9c9[_0x4a29fa(0x20e)]?JSON[_0x4a29fa(0x201)](_0x3ce9c9[_0x4a29fa(0x20e)]):undefined}},_0x22161f=await platformFetch(getApiDomain()+_0x4a29fa(0x1fb),{'method':_0x4a29fa(0x1f7),'body':_0x1cea48,'cookie':_0x2f1171,'label':_0x4a29fa(0x205)+_0x3ce9c9[_0x4a29fa(0x215)]+'\x22'});return logger[_0x4a29fa(0x204)](_0x4a29fa(0x206),_0x4a29fa(0x20f)+_0x3ce9c9[_0x4a29fa(0x215)],undefined),_0x22161f;}