@lovrabet/rabetbase-cli 2.2.0-beta.1 → 2.2.0-beta.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
- function a77_0x1825(){const _0x4494b3=['locale','\x20\x20Apps','11sGIqPE','\x20\x20Config\x20JSON','padEnd','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','green','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','source','yellow','accessKey','gray','platform','✗\x20Invalid\x20JSON','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20explicitAppName:\x20','env','Project','read','appcode','check','bold','9414dHFJFq','slice','apiDir','8730WujxAo','✓\x20Valid','currentApp','length','repeat','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','183mnsUGx','13757670dBvjRK','\x20\x20─','version','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','(none)','(set\x20via\x20file,\x20length=','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','doctor','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20Auth','value','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','(no\x20file)','(default:\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','defaultApp','message','\x20(default)','(not\x20set)','\x20\x20runtimeDomain:\x20\x20\x20','✓\x20Valid\x20JSON','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','keys','status','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','435KlJtfQ','3473997RJnFJh','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','Global','pageSize','apps','✗\x20Expired','\x20\x20Config\x20Files','appCode','log','924693ricaDR','\x20\x20\x20\x20accessKey:\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','5275488WGqWWW','(set,\x20length=','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','verbose','red','cookie','3552UZNAQk','explicitAppName','44646CYZjCh','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','format','arch','raw'];a77_0x1825=function(){return _0x4494b3;};return a77_0x1825();}const a77_0x17c06a=a77_0x4f06;(function(_0x4136b5,_0x2a65f8){const _0xc53c1a=a77_0x4f06,_0x2e37c9=_0x4136b5();while(!![]){try{const _0x4290b9=-parseInt(_0xc53c1a(0x1e0))/0x1*(-parseInt(_0xc53c1a(0x1d7))/0x2)+parseInt(_0xc53c1a(0x1a8))/0x3+parseInt(_0xc53c1a(0x1b4))/0x4+-parseInt(_0xc53c1a(0x1a7))/0x5*(parseInt(_0xc53c1a(0x1bc))/0x6)+-parseInt(_0xc53c1a(0x1b1))/0x7+-parseInt(_0xc53c1a(0x1ba))/0x8*(parseInt(_0xc53c1a(0x1da))/0x9)+parseInt(_0xc53c1a(0x1e1))/0xa*(-parseInt(_0xc53c1a(0x1c3))/0xb);if(_0x4290b9===_0x2a65f8)break;else _0x2e37c9['push'](_0x2e37c9['shift']());}catch(_0x1ee611){_0x2e37c9['push'](_0x2e37c9['shift']());}}}(a77_0x1825,0xb7ad3));import a77_0x1363b2 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a77_0x4f06(_0x4bf596,_0x5d8c4d){_0x4bf596=_0x4bf596-0x197;const _0x1825bb=a77_0x1825();let _0x4f06d9=_0x1825bb[_0x4bf596];return _0x4f06d9;}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(_0x1ed3d0){const _0x271507=a77_0x4f06,_0x52ab2c=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x271507(0x1d8)](0x0,0xa)+')':VERSION,_0xc6d31=buildConfigFromFlags({}),_0x4f7a6d=getCookie();console[_0x271507(0x1b0)](),console[_0x271507(0x1b0)](a77_0x1363b2[_0x271507(0x1d6)](CLI_BIN_NAME+'\x20doctor')),console['log'](a77_0x1363b2[_0x271507(0x1cc)]('─'[_0x271507(0x1de)](0x32))),console[_0x271507(0x1b0)](_0x271507(0x1ee)+_0x52ab2c),console[_0x271507(0x1b0)](_0x271507(0x1a1)+process[_0x271507(0x1e3)]),console['log'](_0x271507(0x1c6)+process[_0x271507(0x1cd)]+'\x20'+process[_0x271507(0x1bf)]),console['log'](),console['log'](a77_0x1363b2[_0x271507(0x1d6)](_0x271507(0x1ae))),console[_0x271507(0x1b0)](a77_0x1363b2[_0x271507(0x1cc)](_0x271507(0x1e2)[_0x271507(0x1de)](0x1e)));const _0x499279=getGlobalConfigPath(),_0x32891f=getProjectConfigPath();console[_0x271507(0x1b0)](_0x271507(0x1e8)+(_0x499279||a77_0x1363b2[_0x271507(0x1cc)]('(not\x20found)'))),console[_0x271507(0x1b0)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x32891f||a77_0x1363b2[_0x271507(0x1cc)]('(not\x20found)'))),console['log'](),console[_0x271507(0x1b0)](a77_0x1363b2['bold'](_0x271507(0x1c4))),console[_0x271507(0x1b0)](a77_0x1363b2['gray'](_0x271507(0x1e2)['repeat'](0x1e)));const _0xadf284=(_0x61cbeb,_0x2753fc)=>{const _0x5ce7d0=_0x271507;if(!_0x2753fc){console[_0x5ce7d0(0x1b0)]('\x20\x20'+_0x61cbeb[_0x5ce7d0(0x1c5)](0x11)+'\x20'+a77_0x1363b2['gray'](_0x5ce7d0(0x197)));return;}const _0x152e17=inspectCliConfigJsonFile(_0x2753fc);if(_0x152e17[_0x5ce7d0(0x1a3)]==='ok')console[_0x5ce7d0(0x1b0)]('\x20\x20'+_0x61cbeb[_0x5ce7d0(0x1c5)](0x11)+'\x20'+a77_0x1363b2[_0x5ce7d0(0x1c7)](_0x5ce7d0(0x1a0)));else{if(_0x152e17[_0x5ce7d0(0x1a3)]==='empty')console[_0x5ce7d0(0x1b0)]('\x20\x20'+_0x61cbeb[_0x5ce7d0(0x1c5)](0x11)+'\x20'+a77_0x1363b2[_0x5ce7d0(0x1ca)](_0x5ce7d0(0x1cf)));else _0x152e17[_0x5ce7d0(0x1a3)]==='missing'?console[_0x5ce7d0(0x1b0)]('\x20\x20'+_0x61cbeb['padEnd'](0x11)+'\x20'+a77_0x1363b2[_0x5ce7d0(0x1cc)]('(missing)')):(console[_0x5ce7d0(0x1b0)]('\x20\x20'+_0x61cbeb[_0x5ce7d0(0x1c5)](0x11)+'\x20'+a77_0x1363b2[_0x5ce7d0(0x1b8)](_0x5ce7d0(0x1ce))),console[_0x5ce7d0(0x1b0)]('\x20\x20'+''[_0x5ce7d0(0x1c5)](0x11)+'\x20'+a77_0x1363b2[_0x5ce7d0(0x1b8)](_0x152e17[_0x5ce7d0(0x19c)])));}};_0xadf284(_0x271507(0x1aa),_0x499279),_0xadf284(_0x271507(0x1d2),_0x32891f),console[_0x271507(0x1b0)](),console[_0x271507(0x1b0)](a77_0x1363b2[_0x271507(0x1d6)]('\x20\x20Merged\x20Config')),console['log'](a77_0x1363b2[_0x271507(0x1cc)](_0x271507(0x1e2)['repeat'](0x1e))),console[_0x271507(0x1b0)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xc6d31[_0x271507(0x1af)]||a77_0x1363b2[_0x271507(0x1b8)](_0x271507(0x19e)))),console[_0x271507(0x1b0)](_0x271507(0x1c8)+_0xc6d31[_0x271507(0x1d1)]),console[_0x271507(0x1b0)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xc6d31[_0x271507(0x1c1)]),console['log'](_0x271507(0x1b6)+_0xc6d31[_0x271507(0x1d9)]),console[_0x271507(0x1b0)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0xc6d31['defaultApp']||a77_0x1363b2[_0x271507(0x1cc)]('(none)'))),console[_0x271507(0x1b0)](_0x271507(0x1df)+(_0xc6d31[_0x271507(0x1dc)]||a77_0x1363b2[_0x271507(0x1cc)](_0x271507(0x1e6)))),console['log'](_0x271507(0x1d0)+(_0xc6d31[_0x271507(0x1bb)]||a77_0x1363b2[_0x271507(0x1cc)](_0x271507(0x1e6)))),console['log'](_0x271507(0x1a5)+(_0xc6d31['format']||a77_0x1363b2[_0x271507(0x1cc)](_0x271507(0x198)+DEFAULT_CONFIG_VALUES[_0x271507(0x1be)]+')'))),console[_0x271507(0x1b0)](_0x271507(0x1ed)+(_0xc6d31[_0x271507(0x1ab)]??a77_0x1363b2[_0x271507(0x1cc)]('(default)'))),console[_0x271507(0x1b0)](_0x271507(0x1a4)+_0xc6d31['riskLevel']),console[_0x271507(0x1b0)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xc6d31[_0x271507(0x1b7)]),console[_0x271507(0x1b0)](_0x271507(0x199)+(_0xc6d31[_0x271507(0x1b9)]?a77_0x1363b2[_0x271507(0x1c7)](_0x271507(0x1b5)+_0xc6d31[_0x271507(0x1b9)][_0x271507(0x1dd)]+')'):_0x4f7a6d?a77_0x1363b2[_0x271507(0x1c7)](_0x271507(0x1e7)+_0x4f7a6d[_0x271507(0x1dd)]+')'):a77_0x1363b2[_0x271507(0x1cc)](_0x271507(0x1e6))));const _0x44dbef=Object[_0x271507(0x1a2)](_0xc6d31['apps']);if(_0x44dbef[_0x271507(0x1dd)]>0x0){console[_0x271507(0x1b0)](),console[_0x271507(0x1b0)](a77_0x1363b2['bold'](_0x271507(0x1c2))),console[_0x271507(0x1b0)](a77_0x1363b2[_0x271507(0x1cc)](_0x271507(0x1e2)[_0x271507(0x1de)](0x1e)));for(const _0x11d381 of _0x44dbef){const _0x38163a=_0xc6d31[_0x271507(0x1ac)][_0x11d381],_0x4ec195=_0x11d381===_0xc6d31[_0x271507(0x19b)],_0x31eb85=_0x11d381===_0xc6d31[_0x271507(0x1dc)],_0x80635a=_0x31eb85?a77_0x1363b2[_0x271507(0x1c7)](_0x271507(0x1e5)):'',_0x4441c5=_0x4ec195?_0x271507(0x19d):'';console[_0x271507(0x1b0)]('\x20\x20'+_0x11d381+_0x4441c5+_0x80635a),console['log']('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x38163a[_0x271507(0x1d4)]);const _0x3f17cd=buildAppDoctorFields(_0x38163a,{'env':_0xc6d31[_0x271507(0x1d1)],'apiDir':_0xc6d31[_0x271507(0x1c0)]['apiDir']||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0xc6d31[_0x271507(0x1b9)]||_0x4f7a6d||undefined,'accessKey':_0xc6d31[_0x271507(0x1cb)]});console[_0x271507(0x1b0)](_0x271507(0x1e4)+_0x3f17cd[_0x271507(0x1d1)][_0x271507(0x1ec)]+'\x20\x20'+a77_0x1363b2['gray']('('+_0x3f17cd[_0x271507(0x1d1)][_0x271507(0x1c9)]+')')),console[_0x271507(0x1b0)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x3f17cd[_0x271507(0x1d9)]['value']+'\x20\x20'+a77_0x1363b2['gray']('('+_0x3f17cd[_0x271507(0x1d9)][_0x271507(0x1c9)]+')'));const _0x5a110b=_0x3f17cd[_0x271507(0x1b9)][_0x271507(0x1ec)]?a77_0x1363b2[_0x271507(0x1c7)](_0x271507(0x1b5)+_0x3f17cd[_0x271507(0x1b9)][_0x271507(0x1ec)][_0x271507(0x1dd)]+')'):a77_0x1363b2[_0x271507(0x1cc)](_0x271507(0x1e6));console[_0x271507(0x1b0)](_0x271507(0x1a9)+_0x5a110b+'\x20\x20'+a77_0x1363b2[_0x271507(0x1cc)]('('+_0x3f17cd[_0x271507(0x1b9)]['source']+')'));const _0x5180a5=_0x3f17cd[_0x271507(0x1cb)][_0x271507(0x1ec)]?a77_0x1363b2[_0x271507(0x1c7)](_0x271507(0x1b5)+_0x3f17cd['accessKey'][_0x271507(0x1ec)][_0x271507(0x1dd)]+')'):a77_0x1363b2[_0x271507(0x1cc)](_0x271507(0x1e6));console['log'](_0x271507(0x1b2)+_0x5180a5+'\x20\x20'+a77_0x1363b2[_0x271507(0x1cc)]('('+_0x3f17cd[_0x271507(0x1cb)][_0x271507(0x1c9)]+')'));}}console[_0x271507(0x1b0)](),console[_0x271507(0x1b0)](a77_0x1363b2['bold'](_0x271507(0x1a6))),console[_0x271507(0x1b0)](a77_0x1363b2['gray'](_0x271507(0x1e2)[_0x271507(0x1de)](0x1e))),console[_0x271507(0x1b0)](_0x271507(0x19a)+getApiDomain()),console[_0x271507(0x1b0)](_0x271507(0x1b3)+getUserDomain()),console[_0x271507(0x1b0)](_0x271507(0x19f)+getRuntimeDomain()),console['log'](),console[_0x271507(0x1b0)](a77_0x1363b2[_0x271507(0x1d6)](_0x271507(0x1eb))),console[_0x271507(0x1b0)](a77_0x1363b2[_0x271507(0x1cc)](_0x271507(0x1e2)[_0x271507(0x1de)](0x1e)));if(_0x4f7a6d){const _0xca5223=await getIsSessionValid();console[_0x271507(0x1b0)](_0x271507(0x1bd)+(_0xca5223?a77_0x1363b2['green'](_0x271507(0x1db)):a77_0x1363b2[_0x271507(0x1b8)](_0x271507(0x1ad))));}else console[_0x271507(0x1b0)](_0x271507(0x1bd)+a77_0x1363b2[_0x271507(0x1b8)]('✗\x20Not\x20logged\x20in'));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a77_0x17c06a(0x1e9),'command':a77_0x17c06a(0x1d5),'description':a77_0x17c06a(0x1ea),'risk':a77_0x17c06a(0x1d3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a77_0x116d3e=a77_0x3d70;(function(_0x35e834,_0x1908a7){const _0x2527f1=a77_0x3d70,_0x1aa59e=_0x35e834();while(!![]){try{const _0x276d29=-parseInt(_0x2527f1(0x12c))/0x1+parseInt(_0x2527f1(0x12e))/0x2*(parseInt(_0x2527f1(0xe1))/0x3)+parseInt(_0x2527f1(0x12a))/0x4+-parseInt(_0x2527f1(0x115))/0x5+-parseInt(_0x2527f1(0xdf))/0x6*(-parseInt(_0x2527f1(0xf2))/0x7)+-parseInt(_0x2527f1(0xfa))/0x8*(-parseInt(_0x2527f1(0x104))/0x9)+parseInt(_0x2527f1(0x130))/0xa*(-parseInt(_0x2527f1(0xff))/0xb);if(_0x276d29===_0x1908a7)break;else _0x1aa59e['push'](_0x1aa59e['shift']());}catch(_0x27a172){_0x1aa59e['push'](_0x1aa59e['shift']());}}}(a77_0x4042,0x5b4d2));import a77_0x4fa35d from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a77_0x4042(){const _0x216ece=['empty','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','defaultApp','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','missing','currentApp','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','2370880TBtbyi','riskLevel','259070iqkjGJ','\x20\x20Config\x20Files','4178yqbrne','green','948620OEACqA','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default)','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apps','appCode','\x20←\x20current','6WEYWIc','\x20\x20runtimeDomain:\x20\x20\x20','270TaiThA','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','verbose','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default:\x20','✗\x20Invalid\x20JSON','\x20\x20Auth','\x20\x20Apps','\x20\x20Merged\x20Config','source','pageSize','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20accessKey:\x20\x20','slice','repeat','log','(not\x20found)','3125087ofeBjH','platform','unknown','(set,\x20length=','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','✓\x20Valid','locale','4486136GHTJgb','cookie','status','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','77XWPyZa','check','\x20\x20─','keys','read','9nxXfzx','length','bold','(none)','yellow','accessKey','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','(set\x20via\x20file,\x20length=','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','format','Global','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','gray','2454320IragOc','Project','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','(no\x20file)','env','red','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','value','padEnd','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20set)','apiDir','message'];a77_0x4042=function(){return _0x216ece;};return a77_0x4042();}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a77_0x3d70(_0x558acb,_0x4bd1e7){_0x558acb=_0x558acb-0xdf;const _0x4042f8=a77_0x4042();let _0x3d707d=_0x4042f8[_0x558acb];return _0x3d707d;}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(_0x2c4dbe){const _0x4b3530=a77_0x3d70,_0x30c1e3=GIT_COMMIT!==_0x4b3530(0xf4)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x4b3530(0xee)](0x0,0xa)+')':VERSION,_0x51bd32=buildConfigFromFlags({}),_0x5951a6=getCookie();console[_0x4b3530(0xf0)](),console[_0x4b3530(0xf0)](a77_0x4fa35d[_0x4b3530(0x106)](CLI_BIN_NAME+'\x20doctor')),console[_0x4b3530(0xf0)](a77_0x4fa35d[_0x4b3530(0x114)]('─'[_0x4b3530(0xef)](0x32))),console[_0x4b3530(0xf0)](_0x4b3530(0xfe)+_0x30c1e3),console[_0x4b3530(0xf0)](_0x4b3530(0xfd)+process['version']),console[_0x4b3530(0xf0)](_0x4b3530(0xf6)+process[_0x4b3530(0xf3)]+'\x20'+process['arch']),console['log'](),console['log'](a77_0x4fa35d[_0x4b3530(0x106)](_0x4b3530(0x12d))),console[_0x4b3530(0xf0)](a77_0x4fa35d[_0x4b3530(0x114)](_0x4b3530(0x101)['repeat'](0x1e)));const _0xfc143c=getGlobalConfigPath(),_0x5495a2=getProjectConfigPath();console[_0x4b3530(0xf0)](_0x4b3530(0x11e)+(_0xfc143c||a77_0x4fa35d[_0x4b3530(0x114)](_0x4b3530(0xf1)))),console[_0x4b3530(0xf0)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5495a2||a77_0x4fa35d[_0x4b3530(0x114)](_0x4b3530(0xf1)))),console[_0x4b3530(0xf0)](),console[_0x4b3530(0xf0)](a77_0x4fa35d[_0x4b3530(0x106)](_0x4b3530(0xf7))),console['log'](a77_0x4fa35d['gray'](_0x4b3530(0x101)[_0x4b3530(0xef)](0x1e)));const _0x20beba=(_0x82a9f6,_0xf23190)=>{const _0x548938=_0x4b3530;if(!_0xf23190){console[_0x548938(0xf0)]('\x20\x20'+_0x82a9f6[_0x548938(0x11d)](0x11)+'\x20'+a77_0x4fa35d[_0x548938(0x114)](_0x548938(0x118)));return;}const _0x28830f=inspectCliConfigJsonFile(_0xf23190);if(_0x28830f[_0x548938(0xfc)]==='ok')console[_0x548938(0xf0)]('\x20\x20'+_0x82a9f6[_0x548938(0x11d)](0x11)+'\x20'+a77_0x4fa35d[_0x548938(0x12f)]('✓\x20Valid\x20JSON'));else{if(_0x28830f[_0x548938(0xfc)]===_0x548938(0x122))console[_0x548938(0xf0)]('\x20\x20'+_0x82a9f6['padEnd'](0x11)+'\x20'+a77_0x4fa35d[_0x548938(0x108)](_0x548938(0x10b)));else _0x28830f[_0x548938(0xfc)]===_0x548938(0x127)?console['log']('\x20\x20'+_0x82a9f6[_0x548938(0x11d)](0x11)+'\x20'+a77_0x4fa35d[_0x548938(0x114)]('(missing)')):(console[_0x548938(0xf0)]('\x20\x20'+_0x82a9f6[_0x548938(0x11d)](0x11)+'\x20'+a77_0x4fa35d['red'](_0x548938(0xe6))),console[_0x548938(0xf0)]('\x20\x20'+''[_0x548938(0x11d)](0x11)+'\x20'+a77_0x4fa35d[_0x548938(0x11a)](_0x28830f[_0x548938(0x121)])));}};_0x20beba(_0x4b3530(0x112),_0xfc143c),_0x20beba(_0x4b3530(0x116),_0x5495a2),console['log'](),console[_0x4b3530(0xf0)](a77_0x4fa35d[_0x4b3530(0x106)](_0x4b3530(0xe9))),console[_0x4b3530(0xf0)](a77_0x4fa35d[_0x4b3530(0x114)]('\x20\x20─'[_0x4b3530(0xef)](0x1e))),console['log'](_0x4b3530(0x131)+(_0x51bd32[_0x4b3530(0x135)]||a77_0x4fa35d[_0x4b3530(0x11a)](_0x4b3530(0x11f)))),console['log'](_0x4b3530(0x126)+_0x51bd32[_0x4b3530(0x119)]),console[_0x4b3530(0xf0)](_0x4b3530(0xec)+_0x51bd32[_0x4b3530(0xf9)]),console['log'](_0x4b3530(0x133)+_0x51bd32[_0x4b3530(0x120)]),console['log'](_0x4b3530(0x117)+(_0x51bd32['defaultApp']||a77_0x4fa35d[_0x4b3530(0x114)]('(none)'))),console['log'](_0x4b3530(0x129)+(_0x51bd32[_0x4b3530(0x128)]||a77_0x4fa35d[_0x4b3530(0x114)](_0x4b3530(0x107)))),console['log']('\x20\x20explicitAppName:\x20'+(_0x51bd32['explicitAppName']||a77_0x4fa35d[_0x4b3530(0x114)]('(none)'))),console[_0x4b3530(0xf0)](_0x4b3530(0x10c)+(_0x51bd32[_0x4b3530(0x111)]||a77_0x4fa35d[_0x4b3530(0x114)](_0x4b3530(0xe5)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x4b3530(0xf0)](_0x4b3530(0x110)+(_0x51bd32[_0x4b3530(0xeb)]??a77_0x4fa35d['gray'](_0x4b3530(0x132)))),console['log'](_0x4b3530(0x125)+_0x51bd32[_0x4b3530(0x12b)]),console[_0x4b3530(0xf0)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x51bd32[_0x4b3530(0xe3)]),console[_0x4b3530(0xf0)](_0x4b3530(0xe4)+(_0x51bd32[_0x4b3530(0xfb)]?a77_0x4fa35d[_0x4b3530(0x12f)](_0x4b3530(0xf5)+_0x51bd32['cookie'][_0x4b3530(0x105)]+')'):_0x5951a6?a77_0x4fa35d[_0x4b3530(0x12f)](_0x4b3530(0x10e)+_0x5951a6[_0x4b3530(0x105)]+')'):a77_0x4fa35d[_0x4b3530(0x114)](_0x4b3530(0x107))));const _0x4f639f=Object[_0x4b3530(0x102)](_0x51bd32[_0x4b3530(0x134)]);if(_0x4f639f[_0x4b3530(0x105)]>0x0){console[_0x4b3530(0xf0)](),console[_0x4b3530(0xf0)](a77_0x4fa35d['bold'](_0x4b3530(0xe8))),console[_0x4b3530(0xf0)](a77_0x4fa35d[_0x4b3530(0x114)]('\x20\x20─'['repeat'](0x1e)));for(const _0x152ae8 of _0x4f639f){const _0x2aec7d=_0x51bd32[_0x4b3530(0x134)][_0x152ae8],_0x43da91=_0x152ae8===_0x51bd32[_0x4b3530(0x124)],_0xc64d1=_0x152ae8===_0x51bd32[_0x4b3530(0x128)],_0x38a54e=_0xc64d1?a77_0x4fa35d['green'](_0x4b3530(0x136)):'',_0x1bec73=_0x43da91?'\x20(default)':'';console[_0x4b3530(0xf0)]('\x20\x20'+_0x152ae8+_0x1bec73+_0x38a54e),console['log']('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x2aec7d['appcode']);const _0x26b455=buildAppDoctorFields(_0x2aec7d,{'env':_0x51bd32['env'],'apiDir':_0x51bd32['raw']['apiDir']||DEFAULT_CONFIG_VALUES[_0x4b3530(0x120)],'cookie':_0x51bd32['cookie']||_0x5951a6||undefined,'accessKey':_0x51bd32['accessKey']});console[_0x4b3530(0xf0)](_0x4b3530(0x10f)+_0x26b455[_0x4b3530(0x119)][_0x4b3530(0x11c)]+'\x20\x20'+a77_0x4fa35d[_0x4b3530(0x114)]('('+_0x26b455[_0x4b3530(0x119)][_0x4b3530(0xea)]+')')),console[_0x4b3530(0xf0)](_0x4b3530(0x11b)+_0x26b455[_0x4b3530(0x120)]['value']+'\x20\x20'+a77_0x4fa35d[_0x4b3530(0x114)]('('+_0x26b455[_0x4b3530(0x120)][_0x4b3530(0xea)]+')'));const _0x381ae4=_0x26b455[_0x4b3530(0xfb)][_0x4b3530(0x11c)]?a77_0x4fa35d[_0x4b3530(0x12f)](_0x4b3530(0xf5)+_0x26b455[_0x4b3530(0xfb)]['value'][_0x4b3530(0x105)]+')'):a77_0x4fa35d[_0x4b3530(0x114)]('(none)');console[_0x4b3530(0xf0)](_0x4b3530(0x10a)+_0x381ae4+'\x20\x20'+a77_0x4fa35d[_0x4b3530(0x114)]('('+_0x26b455['cookie'][_0x4b3530(0xea)]+')'));const _0x1b867d=_0x26b455[_0x4b3530(0x109)][_0x4b3530(0x11c)]?a77_0x4fa35d[_0x4b3530(0x12f)]('(set,\x20length='+_0x26b455[_0x4b3530(0x109)][_0x4b3530(0x11c)][_0x4b3530(0x105)]+')'):a77_0x4fa35d[_0x4b3530(0x114)](_0x4b3530(0x107));console[_0x4b3530(0xf0)](_0x4b3530(0xed)+_0x1b867d+'\x20\x20'+a77_0x4fa35d['gray']('('+_0x26b455[_0x4b3530(0x109)]['source']+')'));}}console[_0x4b3530(0xf0)](),console[_0x4b3530(0xf0)](a77_0x4fa35d[_0x4b3530(0x106)](_0x4b3530(0x10d))),console[_0x4b3530(0xf0)](a77_0x4fa35d[_0x4b3530(0x114)]('\x20\x20─'['repeat'](0x1e))),console[_0x4b3530(0xf0)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x4b3530(0xf0)](_0x4b3530(0xe2)+getUserDomain()),console[_0x4b3530(0xf0)](_0x4b3530(0xe0)+getRuntimeDomain()),console[_0x4b3530(0xf0)](),console[_0x4b3530(0xf0)](a77_0x4fa35d[_0x4b3530(0x106)](_0x4b3530(0xe7))),console[_0x4b3530(0xf0)](a77_0x4fa35d['gray']('\x20\x20─'[_0x4b3530(0xef)](0x1e)));if(_0x5951a6){const _0x2808b2=await getIsSessionValid();console[_0x4b3530(0xf0)](_0x4b3530(0x123)+(_0x2808b2?a77_0x4fa35d[_0x4b3530(0x12f)](_0x4b3530(0xf8)):a77_0x4fa35d[_0x4b3530(0x11a)]('✗\x20Expired')));}else console['log'](_0x4b3530(0x123)+a77_0x4fa35d[_0x4b3530(0x11a)]('✗\x20Not\x20logged\x20in'));return console[_0x4b3530(0xf0)](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':a77_0x116d3e(0x100),'description':a77_0x116d3e(0x113),'risk':a77_0x116d3e(0x103),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a78_0x4a275e=a78_0x3aca;(function(_0x3f4c92,_0x195773){const _0x2e37f3=a78_0x3aca,_0x6015c=_0x3f4c92();while(!![]){try{const _0x1bfa17=parseInt(_0x2e37f3(0x9a))/0x1*(parseInt(_0x2e37f3(0x8c))/0x2)+parseInt(_0x2e37f3(0x90))/0x3+parseInt(_0x2e37f3(0x80))/0x4+parseInt(_0x2e37f3(0xa1))/0x5+-parseInt(_0x2e37f3(0x8e))/0x6*(parseInt(_0x2e37f3(0x8b))/0x7)+-parseInt(_0x2e37f3(0x75))/0x8*(-parseInt(_0x2e37f3(0x85))/0x9)+-parseInt(_0x2e37f3(0x87))/0xa;if(_0x1bfa17===_0x195773)break;else _0x6015c['push'](_0x6015c['shift']());}catch(_0x356c22){_0x6015c['push'](_0x6015c['shift']());}}}(a78_0x2caf,0x6d33c));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';function a78_0x3aca(_0xa8f2a8,_0x16d99d){_0xa8f2a8=_0xa8f2a8-0x75;const _0x2cafc1=a78_0x2caf();let _0x3aca07=_0x2cafc1[_0xa8f2a8];return _0x3aca07;}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_0x2caf(){const _0x342aeb=['yes','flagMissing','Use\x20`','2341100pqiSyH','appcode','project','init','\x20config','27zzjnVG','Target\x20environment','9465320iOulBS','join','global','\x20\x20Default:\x20','247121XzzbXi','8qTrAfx','custom','144GEsUiv','string','215001NmBBaX','boolean','nonInteractive','write','\x0a✓\x20Successfully\x20initialized\x20','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','\x20\x20Env:\x20','map','validation','message','190695KlCBOQ','production','\x20\x20Apps:\x20','valid','log','env','bool','440765SlxpJR','cwd','1955256zhUbJv','str','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','../../commands/project/init.js','appCode','toLocaleString','run'];a78_0x2caf=function(){return _0x342aeb;};return a78_0x2caf();}import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x583961){return{'appCode':_0x583961,'appName':_0x583961};}function writeInitConfig(_0x477a3a,_0x2e99f2,_0x324e0e){const _0x12dc7a=a78_0x3aca,_0x3408d3=resolveWriteConfigPath(_0x477a3a),_0x1f3740=buildCanonicalProjectConfig({},{'appCodes':_0x2e99f2[_0x12dc7a(0x97)](_0x3bd4dd=>_0x3bd4dd[_0x12dc7a(0x7a)]),'env':_0x324e0e,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x12dc7a(0x7b)]()}});writeConfigFile(_0x3408d3,_0x1f3740);const _0x1f26ef=_0x477a3a==='global'?_0x12dc7a(0x89):_0x12dc7a(0x82);console[_0x12dc7a(0x9e)](_0x12dc7a(0x94)+_0x1f26ef+_0x12dc7a(0x84)),console[_0x12dc7a(0x9e)](_0x12dc7a(0x9c)+_0x2e99f2[_0x12dc7a(0x97)](_0x34607e=>_0x34607e[_0x12dc7a(0x7a)])[_0x12dc7a(0x88)](',\x20')),console['log'](_0x12dc7a(0x8a)+_0x1f3740['defaultApp']),console[_0x12dc7a(0x9e)](_0x12dc7a(0x96)+_0x1f3740['env']),console[_0x12dc7a(0x9e)]('\x20\x20Config:\x20'+_0x3408d3);}async function runSmartInit(_0x425334){const _0x131f22=a78_0x3aca,_0x5f48e9=process[_0x131f22(0xa2)](),_0x3a3098=_0x425334[_0x131f22(0xa0)]('global')?_0x131f22(0x89):_0x131f22(0x82),_0x4fbb55=_0x425334[_0x131f22(0x76)](_0x131f22(0x9f))||_0x131f22(0x9b),_0x46eaeb=_0x425334[_0x131f22(0x76)](_0x131f22(0x81))||undefined,_0xf948d6=_0x425334[_0x131f22(0xa0)]('project');if(_0xf948d6){const {initConfig:_0x25224a}=await import(_0x131f22(0x79));return _0x25224a({'appcode':_0x46eaeb,'env':_0x4fbb55,'autoYes':_0x425334['bool'](_0x131f22(0x7d))});}if(_0x3a3098===_0x131f22(0x82)){const _0x4af7cf=existsSync(resolve(_0x5f48e9,NEW_CONFIG_NAME)),_0x5d861c=LEGACY_CONFIG_NAMES['some'](_0x415074=>existsSync(resolve(_0x5f48e9,_0x415074)));if(_0x5d861c&&!_0x4af7cf)return console[_0x131f22(0x9e)]('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x425334['nonInteractive'],{'yes':_0x425334[_0x131f22(0xa0)](_0x131f22(0x7d))});if(_0x4af7cf)throw CliErrors[_0x131f22(0x98)](_0x131f22(0x95),_0x131f22(0x7f)+CLI_BIN_NAME+_0x131f22(0x78));}if(_0x46eaeb){const _0x455c8b=validateAppcode(_0x46eaeb);if(!_0x455c8b[_0x131f22(0x9d)])throw CliErrors[_0x131f22(0x98)](_0x455c8b[_0x131f22(0x99)]);writeInitConfig(_0x3a3098,[syntheticApp(_0x46eaeb)],_0x4fbb55);return;}if(_0x425334[_0x131f22(0x92)])throw CliErrors[_0x131f22(0x7e)](_0x131f22(0x81),'Usage:\x20'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0x36b3d2=getCookie(),_0x456754=await selectMultipleApps(_0x36b3d2),_0x45a243=_0x456754===_0x131f22(0x8d)?[syntheticApp(await promptCustomAppcode())]:_0x456754;writeInitConfig(_0x3a3098,_0x45a243,_0x4fbb55);}const initFlags=[{'name':a78_0x4a275e(0x89),'type':a78_0x4a275e(0x91),'description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a78_0x4a275e(0x9f),'type':a78_0x4a275e(0x8f),'description':a78_0x4a275e(0x86),'default':a78_0x4a275e(0x9b),'enum':[...RABETBASE_ENV_VALUES]},{'name':'appcode','type':a78_0x4a275e(0x8f),'description':'App\x20code\x20to\x20initialize\x20with'},{'name':a78_0x4a275e(0x82),'type':a78_0x4a275e(0x91),'description':'Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','default':![]},{'name':a78_0x4a275e(0x7d),'type':a78_0x4a275e(0x91),'description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':a78_0x4a275e(0x83),'command':a78_0x4a275e(0x7c),'description':a78_0x4a275e(0x77),'risk':a78_0x4a275e(0x93),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x5f04e1){return await runSmartInit(_0x5f04e1),{'ok':!![]};}}];
1
+ const a78_0x3631fb=a78_0x5e21;(function(_0x8cc760,_0x455a43){const _0xbd9052=a78_0x5e21,_0x506674=_0x8cc760();while(!![]){try{const _0x47dbe3=parseInt(_0xbd9052(0x18f))/0x1+parseInt(_0xbd9052(0x17f))/0x2+parseInt(_0xbd9052(0x17a))/0x3*(parseInt(_0xbd9052(0x191))/0x4)+-parseInt(_0xbd9052(0x180))/0x5*(-parseInt(_0xbd9052(0x181))/0x6)+-parseInt(_0xbd9052(0x169))/0x7+parseInt(_0xbd9052(0x184))/0x8*(parseInt(_0xbd9052(0x16a))/0x9)+-parseInt(_0xbd9052(0x177))/0xa;if(_0x47dbe3===_0x455a43)break;else _0x506674['push'](_0x506674['shift']());}catch(_0x31d181){_0x506674['push'](_0x506674['shift']());}}}(a78_0xbea7,0x6dfb3));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';function a78_0x5e21(_0x4be903,_0x274622){_0x4be903=_0x4be903-0x162;const _0xbea7a4=a78_0xbea7();let _0x5e2168=_0xbea7a4[_0x4be903];return _0x5e2168;}import{CLI_BIN_NAME}from'../../constant/cli.js';function a78_0xbea7(){const _0x330b4d=['custom','valid','cwd','init','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','bool','boolean','31040qyzTuq','join','848YEAVwR','production','flagMissing','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','\x20\x20Default:\x20','Use\x20`','../../commands/project/init.js','validation','5661887KMWhfW','10134whKHzl','run','appcode','global','检测到旧配置文件,正在自动升级...\x0a','\x20\x20Apps:\x20','Auto-confirm\x20prompts','Target\x20environment','Usage:\x20','str','map','toLocaleString','appCode','9856100imMcna','message','project','10938PRnpUv','string','App\x20code\x20to\x20initialize\x20with','log','nonInteractive','1011484gMKDCA','5nhXJrn','3591156MWFaOW','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','write','2392HtvUgE','defaultApp','\x20config','env'];a78_0xbea7=function(){return _0x330b4d;};return a78_0xbea7();}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';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x1bcdef){return{'appCode':_0x1bcdef,'appName':_0x1bcdef};}function writeInitConfig(_0x1e23b5,_0x36343a,_0x1cda4a){const _0x48868a=a78_0x5e21,_0x4b386a=resolveWriteConfigPath(_0x1e23b5),_0x18ea0c=buildCanonicalProjectConfig({},{'appCodes':_0x36343a['map'](_0x173317=>_0x173317[_0x48868a(0x176)]),'env':_0x1cda4a,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x48868a(0x175)]()}});writeConfigFile(_0x4b386a,_0x18ea0c);const _0x56405f=_0x1e23b5===_0x48868a(0x16d)?_0x48868a(0x16d):_0x48868a(0x179);console[_0x48868a(0x17d)]('\x0a✓\x20Successfully\x20initialized\x20'+_0x56405f+_0x48868a(0x186)),console[_0x48868a(0x17d)](_0x48868a(0x16f)+_0x36343a[_0x48868a(0x174)](_0x58be2d=>_0x58be2d[_0x48868a(0x176)])[_0x48868a(0x190)](',\x20')),console['log'](_0x48868a(0x165)+_0x18ea0c[_0x48868a(0x185)]),console[_0x48868a(0x17d)]('\x20\x20Env:\x20'+_0x18ea0c[_0x48868a(0x187)]),console[_0x48868a(0x17d)]('\x20\x20Config:\x20'+_0x4b386a);}async function runSmartInit(_0x49b8d0){const _0x12537d=a78_0x5e21,_0x4a1479=process[_0x12537d(0x18a)](),_0x4b31fa=_0x49b8d0[_0x12537d(0x18d)](_0x12537d(0x16d))?_0x12537d(0x16d):_0x12537d(0x179),_0x3e9ed4=_0x49b8d0['str'](_0x12537d(0x187))||_0x12537d(0x162),_0x432723=_0x49b8d0[_0x12537d(0x173)]('appcode')||undefined,_0x4a1923=_0x49b8d0['bool'](_0x12537d(0x179));if(_0x4a1923){const {initConfig:_0x13f794}=await import(_0x12537d(0x167));return _0x13f794({'appcode':_0x432723,'env':_0x3e9ed4,'autoYes':_0x49b8d0[_0x12537d(0x18d)]('yes')});}if(_0x4b31fa===_0x12537d(0x179)){const _0x507831=existsSync(resolve(_0x4a1479,NEW_CONFIG_NAME)),_0x28f0cf=LEGACY_CONFIG_NAMES['some'](_0x1486c4=>existsSync(resolve(_0x4a1479,_0x1486c4)));if(_0x28f0cf&&!_0x507831)return console[_0x12537d(0x17d)](_0x12537d(0x16e)),upgradeApp(_0x49b8d0[_0x12537d(0x17e)],{'yes':_0x49b8d0[_0x12537d(0x18d)]('yes')});if(_0x507831)throw CliErrors[_0x12537d(0x168)](_0x12537d(0x164),_0x12537d(0x166)+CLI_BIN_NAME+'\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.');}if(_0x432723){const _0x243783=validateAppcode(_0x432723);if(!_0x243783[_0x12537d(0x189)])throw CliErrors[_0x12537d(0x168)](_0x243783[_0x12537d(0x178)]);writeInitConfig(_0x4b31fa,[syntheticApp(_0x432723)],_0x3e9ed4);return;}if(_0x49b8d0[_0x12537d(0x17e)])throw CliErrors[_0x12537d(0x163)](_0x12537d(0x16c),_0x12537d(0x172)+CLI_BIN_NAME+_0x12537d(0x18c));const _0x793ba5=getCookie(),_0xf03b38=await selectMultipleApps(_0x793ba5),_0x157cec=_0xf03b38===_0x12537d(0x188)?[syntheticApp(await promptCustomAppcode())]:_0xf03b38;writeInitConfig(_0x4b31fa,_0x157cec,_0x3e9ed4);}const initFlags=[{'name':a78_0x3631fb(0x16d),'type':a78_0x3631fb(0x18e),'description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a78_0x3631fb(0x187),'type':a78_0x3631fb(0x17b),'description':a78_0x3631fb(0x171),'default':a78_0x3631fb(0x162),'enum':[...RABETBASE_ENV_VALUES]},{'name':a78_0x3631fb(0x16c),'type':a78_0x3631fb(0x17b),'description':a78_0x3631fb(0x17c)},{'name':a78_0x3631fb(0x179),'type':a78_0x3631fb(0x18e),'description':'Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','default':![]},{'name':'yes','type':a78_0x3631fb(0x18e),'description':a78_0x3631fb(0x170),'default':![]}];export const initDefinitions=[{'service':a78_0x3631fb(0x18b),'command':a78_0x3631fb(0x16b),'description':a78_0x3631fb(0x182),'risk':a78_0x3631fb(0x183),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x341444){return await runSmartInit(_0x341444),{'ok':!![]};}}];
@@ -1 +1 @@
1
- function a79_0xa27a(_0x5c05df,_0x24940f){_0x5c05df=_0x5c05df-0x82;const _0x4fb3ee=a79_0x4fb3();let _0xa27a1d=_0x4fb3ee[_0x5c05df];return _0xa27a1d;}function a79_0x4fb3(){const _0x400da2=['35ZfRnCx','4VDcBOt','5804400DxNYHg','6337243MDHLDk','3tdhOcu','8131992dUEkfO','758273nkLSUx','1659930eZxngf','80RIpJLq','223596qWDnyC','6552172KpQNgF'];a79_0x4fb3=function(){return _0x400da2;};return a79_0x4fb3();}(function(_0x7db918,_0x566b9d){const _0x3f4b53=a79_0xa27a,_0x59bfb1=_0x7db918();while(!![]){try{const _0x3d39c5=parseInt(_0x3f4b53(0x85))/0x1*(-parseInt(_0x3f4b53(0x8b))/0x2)+parseInt(_0x3f4b53(0x83))/0x3*(parseInt(_0x3f4b53(0x89))/0x4)+parseInt(_0x3f4b53(0x8c))/0x5+-parseInt(_0x3f4b53(0x86))/0x6*(-parseInt(_0x3f4b53(0x8a))/0x7)+-parseInt(_0x3f4b53(0x84))/0x8+parseInt(_0x3f4b53(0x88))/0x9*(-parseInt(_0x3f4b53(0x87))/0xa)+-parseInt(_0x3f4b53(0x82))/0xb;if(_0x3d39c5===_0x566b9d)break;else _0x59bfb1['push'](_0x59bfb1['shift']());}catch(_0x1a34ab){_0x59bfb1['push'](_0x59bfb1['shift']());}}}(a79_0x4fb3,0xd5730));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
1
+ (function(_0x2cc8bb,_0x47ea0c){const _0x4b497b=a79_0x48c2,_0x195c50=_0x2cc8bb();while(!![]){try{const _0x1852ff=-parseInt(_0x4b497b(0x98))/0x1*(-parseInt(_0x4b497b(0x96))/0x2)+-parseInt(_0x4b497b(0x97))/0x3+-parseInt(_0x4b497b(0x94))/0x4*(-parseInt(_0x4b497b(0x9a))/0x5)+parseInt(_0x4b497b(0x9d))/0x6+-parseInt(_0x4b497b(0x95))/0x7*(parseInt(_0x4b497b(0x9c))/0x8)+parseInt(_0x4b497b(0x9b))/0x9*(-parseInt(_0x4b497b(0x93))/0xa)+-parseInt(_0x4b497b(0x9e))/0xb*(-parseInt(_0x4b497b(0x99))/0xc);if(_0x1852ff===_0x47ea0c)break;else _0x195c50['push'](_0x195c50['shift']());}catch(_0x13e366){_0x195c50['push'](_0x195c50['shift']());}}}(a79_0x4a92,0x2cbff));import{issueReport}from'../../commands/issue/report.js';function a79_0x48c2(_0x529255,_0x51d371){_0x529255=_0x529255-0x93;const _0x4a921b=a79_0x4a92();let _0x48c29d=_0x4a921b[_0x529255];return _0x48c29d;}export const issueDefinitions=[issueReport];function a79_0x4a92(){const _0x12c4b8=['1051857iUPZpZ','2529400wTSycE','542868WXtWfH','11QCwezF','30xJKTHM','148LqiPaA','7kUeyFX','298tFEQdV','327561HQpSVZ','2079QnGJbq','2885928QZecHj','43045DkrNvs'];a79_0x4a92=function(){return _0x12c4b8;};return a79_0x4a92();}
@@ -1 +1 @@
1
- const a80_0x16c040=a80_0x3321;(function(_0x3ca66f,_0x34b583){const _0x53d3d0=a80_0x3321,_0x22acf2=_0x3ca66f();while(!![]){try{const _0x32815e=parseInt(_0x53d3d0(0x9d))/0x1+-parseInt(_0x53d3d0(0x7a))/0x2+parseInt(_0x53d3d0(0x8d))/0x3+parseInt(_0x53d3d0(0x7d))/0x4+-parseInt(_0x53d3d0(0x7f))/0x5*(parseInt(_0x53d3d0(0x8b))/0x6)+parseInt(_0x53d3d0(0x81))/0x7+parseInt(_0x53d3d0(0x82))/0x8*(parseInt(_0x53d3d0(0x7e))/0x9);if(_0x32815e===_0x34b583)break;else _0x22acf2['push'](_0x22acf2['shift']());}catch(_0x2b1adb){_0x22acf2['push'](_0x22acf2['shift']());}}}(a80_0x3426,0x29246));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a80_0x16c040(0x84);const NUDGE_SUPPRESSED_CODES=new Set([a80_0x16c040(0x97),a80_0x16c040(0x92),a80_0x16c040(0x94),a80_0x16c040(0x90),a80_0x16c040(0x9a),a80_0x16c040(0x8f),a80_0x16c040(0x80),a80_0x16c040(0x99)]),defaultWriter=_0x499585=>{const _0x1de824=a80_0x16c040;process[_0x1de824(0x89)][_0x1de824(0x98)](_0x499585);};export function shouldNudgeForError(_0x353547,_0x1a00d5){const _0x550d88=a80_0x16c040;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x1a00d5['service']==='issue'&&_0x1a00d5[_0x550d88(0x88)]===_0x550d88(0x8e))return![];if(_0x353547 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x550d88(0x83)](_0x353547[_0x550d88(0x93)]);return!![];}function a80_0x3426(){const _0x825707=['\x20issue\x20report\x20\x5c','command','stderr','slice','94152znbYaj','=1\x20to\x20silence\x20this\x20hint.','423543OKBXuX','report','flag_missing','not_in_project','message','auth_required','code','config_missing','\x20\x20Set\x20','service','cancelled','write','network_error','unknown_command','\x20bug?\x20Help\x20us\x20fix\x20it:','length','68818xuugyr','Hit\x20a\x20','564796kGGNDj','replace','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','1330668nDLxtb','18pEYXnq','50UFVNKj','validation_error','303828JClzzA','87064BOqqEV','has','RABETBASE_DISABLE_ISSUE_NUDGE','trim','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22'];a80_0x3426=function(){return _0x825707;};return a80_0x3426();}export function printIssueReportNudgeForError(_0x189148,_0x361cef,_0x2dace3=defaultWriter){if(!shouldNudgeForError(_0x189148,_0x361cef))return;const _0x515023=buildSuggestedTitle(_0x189148,_0x361cef);_0x2dace3(formatNudge(_0x515023));}function buildSuggestedTitle(_0xdb4c0c,_0x50e3c9){const _0x3e13be=a80_0x16c040,_0x5b3ae0=_0xdb4c0c instanceof Error?_0xdb4c0c[_0x3e13be(0x91)]:String(_0xdb4c0c),_0x4f00e1=_0x5b3ae0['replace'](/[\r\n]+/g,'\x20')[_0x3e13be(0x7b)](/\s+/g,'\x20')[_0x3e13be(0x85)]()[_0x3e13be(0x8a)](0x0,0x78)[_0x3e13be(0x7b)](/"/g,'\x5c\x22'),_0xcdce34=CLI_BIN_NAME+'\x20'+_0x50e3c9[_0x3e13be(0x96)]+'\x20'+_0x50e3c9[_0x3e13be(0x88)];return _0x4f00e1[_0x3e13be(0x9c)]>0x0?_0xcdce34+':\x20'+_0x4f00e1:_0xcdce34;}function a80_0x3321(_0x3bb6ac,_0x3e627a){_0x3bb6ac=_0x3bb6ac-0x7a;const _0x3426c3=a80_0x3426();let _0x332104=_0x3426c3[_0x3bb6ac];return _0x332104;}function formatNudge(_0x570deb){const _0x1a85c4=a80_0x16c040;return['',_0x1a85c4(0x9e)+CLI_BIN_NAME+_0x1a85c4(0x9b),'\x20\x20'+CLI_BIN_NAME+_0x1a85c4(0x87),'\x20\x20\x20\x20--title\x20\x22'+_0x570deb+'\x22\x20\x5c',_0x1a85c4(0x86),_0x1a85c4(0x7c),_0x1a85c4(0x95)+NUDGE_OPT_OUT_ENV+_0x1a85c4(0x8c),'']['join']('\x0a');}
1
+ const a80_0x53b0b9=a80_0x2508;(function(_0x4dccd3,_0x998d5f){const _0x40d8ae=a80_0x2508,_0x122397=_0x4dccd3();while(!![]){try{const _0x47256f=-parseInt(_0x40d8ae(0x1a4))/0x1+-parseInt(_0x40d8ae(0x1ae))/0x2+-parseInt(_0x40d8ae(0x193))/0x3+parseInt(_0x40d8ae(0x19e))/0x4+-parseInt(_0x40d8ae(0x199))/0x5+-parseInt(_0x40d8ae(0x1a5))/0x6+parseInt(_0x40d8ae(0x1a7))/0x7*(parseInt(_0x40d8ae(0x1aa))/0x8);if(_0x47256f===_0x998d5f)break;else _0x122397['push'](_0x122397['shift']());}catch(_0x101309){_0x122397['push'](_0x122397['shift']());}}}(a80_0x4db6,0xdde5f));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a80_0x53b0b9(0x1ac);const NUDGE_SUPPRESSED_CODES=new Set(['cancelled',a80_0x53b0b9(0x197),'config_missing',a80_0x53b0b9(0x1a3),a80_0x53b0b9(0x196),a80_0x53b0b9(0x194),a80_0x53b0b9(0x19d),'network_error']),defaultWriter=_0x44a4f9=>{process['stderr']['write'](_0x44a4f9);};export function shouldNudgeForError(_0x59497c,_0x23b2c3){const _0x3c8bc2=a80_0x53b0b9;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x23b2c3[_0x3c8bc2(0x195)]===_0x3c8bc2(0x19f)&&_0x23b2c3[_0x3c8bc2(0x1b0)]===_0x3c8bc2(0x1a6))return![];if(_0x59497c instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x3c8bc2(0x1a9)](_0x59497c[_0x3c8bc2(0x1a1)]);return!![];}function a80_0x2508(_0x18d743,_0x4c7641){_0x18d743=_0x18d743-0x192;const _0x4db6bf=a80_0x4db6();let _0x25084a=_0x4db6bf[_0x18d743];return _0x25084a;}export function printIssueReportNudgeForError(_0x27f4a9,_0x3d37a4,_0x3d19b4=defaultWriter){if(!shouldNudgeForError(_0x27f4a9,_0x3d37a4))return;const _0x4c95dd=buildSuggestedTitle(_0x27f4a9,_0x3d37a4);_0x3d19b4(formatNudge(_0x4c95dd));}function buildSuggestedTitle(_0x50b865,_0x5e343b){const _0x1bb50f=a80_0x53b0b9,_0x285f29=_0x50b865 instanceof Error?_0x50b865[_0x1bb50f(0x1a0)]:String(_0x50b865),_0x7d43c9=_0x285f29[_0x1bb50f(0x1b1)](/[\r\n]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x1bb50f(0x1ad)]()['slice'](0x0,0x78)[_0x1bb50f(0x1b1)](/"/g,'\x5c\x22'),_0x440a03=CLI_BIN_NAME+'\x20'+_0x5e343b[_0x1bb50f(0x195)]+'\x20'+_0x5e343b[_0x1bb50f(0x1b0)];return _0x7d43c9[_0x1bb50f(0x1af)]>0x0?_0x440a03+':\x20'+_0x7d43c9:_0x440a03;}function a80_0x4db6(){const _0x42c8ae=['3471636rccsyY','issue','message','code','join','not_in_project','477677xOPuLA','10714674ccicks','report','7lGMsxe','\x20\x20\x20\x20--title\x20\x22','has','34705984fBhozF','\x22\x20\x5c','RABETBASE_DISABLE_ISSUE_NUDGE','trim','807454jsoYnw','length','command','replace','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','\x20bug?\x20Help\x20us\x20fix\x20it:','2442924GEGcaL','flag_missing','service','unknown_command','auth_required','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','4078855VBFTfL','\x20\x20Set\x20','\x20issue\x20report\x20\x5c','=1\x20to\x20silence\x20this\x20hint.','validation_error'];a80_0x4db6=function(){return _0x42c8ae;};return a80_0x4db6();}function formatNudge(_0x25e1da){const _0x446c1f=a80_0x53b0b9;return['','Hit\x20a\x20'+CLI_BIN_NAME+_0x446c1f(0x192),'\x20\x20'+CLI_BIN_NAME+_0x446c1f(0x19b),_0x446c1f(0x1a8)+_0x25e1da+_0x446c1f(0x1ab),_0x446c1f(0x198),_0x446c1f(0x1b2),_0x446c1f(0x19a)+NUDGE_OPT_OUT_ENV+_0x446c1f(0x19c),''][_0x446c1f(0x1a2)]('\x0a');}
@@ -1 +1 @@
1
- const a81_0x3c874e=a81_0x3169;(function(_0x428e34,_0x23a01c){const _0x1279eb=a81_0x3169,_0x481e56=_0x428e34();while(!![]){try{const _0x3b6490=-parseInt(_0x1279eb(0x141))/0x1*(-parseInt(_0x1279eb(0x129))/0x2)+-parseInt(_0x1279eb(0x127))/0x3+-parseInt(_0x1279eb(0x123))/0x4*(-parseInt(_0x1279eb(0x142))/0x5)+-parseInt(_0x1279eb(0x132))/0x6*(parseInt(_0x1279eb(0x115))/0x7)+-parseInt(_0x1279eb(0x11b))/0x8+parseInt(_0x1279eb(0x13d))/0x9*(parseInt(_0x1279eb(0x12b))/0xa)+-parseInt(_0x1279eb(0x148))/0xb*(-parseInt(_0x1279eb(0x10b))/0xc);if(_0x3b6490===_0x23a01c)break;else _0x481e56['push'](_0x481e56['shift']());}catch(_0x1d8f58){_0x481e56['push'](_0x481e56['shift']());}}}(a81_0x3559,0x34e40));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=a81_0x3c874e(0x10d);export const issueReport={'service':a81_0x3c874e(0x12a),'command':a81_0x3c874e(0x144),'description':a81_0x3c874e(0x125),'risk':a81_0x3c874e(0x10f),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a81_0x3c874e(0x13e),'flags':[{'name':'title','type':a81_0x3c874e(0x13f),'required':!![],'description':'One-line\x20issue\x20summary'},{'name':'description','type':a81_0x3c874e(0x13f),'description':a81_0x3c874e(0x133)},{'name':DESCRIPTION_FILE_FLAG,'type':a81_0x3c874e(0x13f),'description':a81_0x3c874e(0x11a)}],async 'validate'(_0x6280ec){const _0x16cd58=a81_0x3c874e,_0x5c4b27=_0x6280ec[_0x16cd58(0x131)](_0x16cd58(0x11f))['trim'](),_0xaeadd8=_0x6280ec[_0x16cd58(0x131)](_0x16cd58(0x12f))[_0x16cd58(0x137)](),_0x33afc0=_0x6280ec[_0x16cd58(0x131)](DESCRIPTION_FILE_FLAG)[_0x16cd58(0x137)]();if(!_0x5c4b27)throw CliErrors[_0x16cd58(0x13a)](_0x16cd58(0x11f),_0x16cd58(0x119));const _0x49c760=_0xaeadd8[_0x16cd58(0x113)]>0x0,_0x5bf5b0=_0x33afc0[_0x16cd58(0x113)]>0x0;if(_0x49c760===_0x5bf5b0)throw CliErrors[_0x16cd58(0x10c)](_0x16cd58(0x11d),_0x16cd58(0x136));if(_0x5bf5b0){const _0x5ed866=resolve(process[_0x16cd58(0x10e)](),_0x33afc0);if(!existsSync(_0x5ed866))throw CliErrors[_0x16cd58(0x10c)](_0x16cd58(0x143)+_0x5ed866);}},async 'dryRun'(_0x5c667e){const _0x3ae10f=a81_0x3c874e,_0x402e68=await prepareIssueReport(_0x5c667e);return{'method':_0x3ae10f(0x149),'url':_0x3ae10f(0x121)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x402e68[_0x3ae10f(0x11f)],'issue.description':_0x402e68[_0x3ae10f(0x12f)],'issue.description_original_bytes':_0x402e68[_0x3ae10f(0x146)][_0x3ae10f(0x117)],'issue.description_truncated':_0x402e68[_0x3ae10f(0x146)][_0x3ae10f(0x126)],'issue.description_redactions':_0x402e68[_0x3ae10f(0x146)]['redactionCount'],'issue.description_redaction_kinds':_0x402e68[_0x3ae10f(0x146)][_0x3ae10f(0x138)][_0x3ae10f(0x110)](',')}},'description':[_0x3ae10f(0x109),'descriptionSource:\x20'+_0x402e68[_0x3ae10f(0x139)],_0x402e68['descriptionFilePath']?'descriptionFile:\x20'+_0x402e68[_0x3ae10f(0x10a)]:null,_0x402e68[_0x3ae10f(0x146)][_0x3ae10f(0x126)]?'truncated:\x20original\x20'+_0x402e68['sanitize'][_0x3ae10f(0x117)]+'\x20bytes':null,_0x402e68['sanitize']['redactionCount']>0x0?_0x3ae10f(0x114)+_0x402e68[_0x3ae10f(0x146)]['redactionCount']+'\x20('+_0x402e68[_0x3ae10f(0x146)][_0x3ae10f(0x138)]['join'](',\x20')+')':null][_0x3ae10f(0x145)](Boolean)['join']('\x0a')};},async 'execute'(_0x40e1f5){const _0x2222a3=a81_0x3c874e,_0x1f12a5=await prepareIssueReport(_0x40e1f5);try{await sendPlatformIssueCollectLog({'title':_0x1f12a5['title'],'description':_0x1f12a5['description'],'sanitize':{'originalBytes':_0x1f12a5[_0x2222a3(0x146)][_0x2222a3(0x117)],'truncated':_0x1f12a5[_0x2222a3(0x146)]['truncated'],'redactionCount':_0x1f12a5[_0x2222a3(0x146)][_0x2222a3(0x112)],'redactionKinds':_0x1f12a5['sanitize'][_0x2222a3(0x138)]}});}catch(_0x2c95aa){throw CliErrors[_0x2222a3(0x135)](_0x2222a3(0x12e)+(_0x2c95aa instanceof Error?_0x2c95aa[_0x2222a3(0x128)]:String(_0x2c95aa)),_0x2222a3(0x122));}return{'ok':!![],'message':buildResultMessage(_0x1f12a5['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x2222a3(0x140),_0x2222a3(0x12c),_0x2222a3(0x11e),_0x2222a3(0x13b),_0x2222a3(0x118),_0x2222a3(0x134)],'issue':{'title':_0x1f12a5[_0x2222a3(0x11f)],'descriptionLength':_0x1f12a5['description'][_0x2222a3(0x113)],'descriptionSource':_0x1f12a5[_0x2222a3(0x139)],..._0x1f12a5[_0x2222a3(0x10a)]?{'descriptionFile':_0x1f12a5[_0x2222a3(0x10a)]}:{},'sanitize':{'originalBytes':_0x1f12a5['sanitize'][_0x2222a3(0x117)],'truncated':_0x1f12a5['sanitize'][_0x2222a3(0x126)],'redactions':_0x1f12a5[_0x2222a3(0x146)][_0x2222a3(0x112)],'redactionKinds':_0x1f12a5[_0x2222a3(0x146)][_0x2222a3(0x138)]}}}};}};function a81_0x3169(_0x397b30,_0x157cff){_0x397b30=_0x397b30-0x109;const _0x355923=a81_0x3559();let _0x3169e8=_0x355923[_0x397b30];return _0x3169e8;}function a81_0x3559(){const _0x4888c8=['title','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','otel://','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','92qpowxf','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','truncated','409701jpLPxk','message','58184sLPCUP','issue','10jXtfuf','issue.description','push','Failed\x20to\x20report\x20platform\x20issue:\x20','description','Platform\x20issue\x20reported','str','272166ROpZkM','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','issue.description_redaction_kinds','apiError','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','trim','redactionKinds','descriptionSource','flagMissing','issue.description_truncated','Platform\x20issue\x20reported\x20(','3688929KWFobZ','compress','string','issue.title','1bDCMit','30630IphQPL','File\x20not\x20found:\x20','report','filter','sanitize','Issue\x20description\x20cannot\x20be\x20empty.','649583etpcBa','POST','truncated\x20from\x20','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','descriptionFilePath','84LPFuHL','validation','description-file','cwd','write','join','Issue\x20description\x20file\x20is\x20empty:\x20','redactionCount','length','redactions:\x20','42bEMjnc','utf8','originalBytes','issue.description_redactions','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','2942952qYNPDe','\x20secret(s):\x20','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','issue.description_original_bytes'];a81_0x3559=function(){return _0x4888c8;};return a81_0x3559();}function buildResultMessage(_0x29d662){const _0x49f46e=a81_0x3c874e,_0xf6b808=[];return _0x29d662[_0x49f46e(0x126)]&&_0xf6b808[_0x49f46e(0x12d)](_0x49f46e(0x14a)+_0x29d662[_0x49f46e(0x117)]+'\x20bytes'),_0x29d662[_0x49f46e(0x112)]>0x0&&_0xf6b808[_0x49f46e(0x12d)]('redacted\x20'+_0x29d662[_0x49f46e(0x112)]+_0x49f46e(0x11c)+_0x29d662[_0x49f46e(0x138)][_0x49f46e(0x110)](',\x20')),_0xf6b808[_0x49f46e(0x113)]===0x0?_0x49f46e(0x130):_0x49f46e(0x13c)+_0xf6b808[_0x49f46e(0x110)](';\x20')+')';}async function prepareIssueReport(_0x579206){const _0x551d9e=a81_0x3c874e,_0xd0c66c=_0x579206['str'](_0x551d9e(0x11f))[_0x551d9e(0x137)](),_0x3103f2=_0x579206[_0x551d9e(0x131)](_0x551d9e(0x12f)),_0x316aa5=_0x579206['str'](DESCRIPTION_FILE_FLAG)[_0x551d9e(0x137)]();if(!_0x316aa5){const _0x5ce225=_0x3103f2;if(!_0x5ce225[_0x551d9e(0x137)]())throw CliErrors['validation'](_0x551d9e(0x147),_0x551d9e(0x124));const _0x56330f=sanitizeIssueDescription(_0x5ce225);return{'title':_0xd0c66c,'description':_0x56330f[_0x551d9e(0x12f)],'descriptionSource':'inline','sanitize':_0x56330f};}const _0xc311a9=resolve(process[_0x551d9e(0x10e)](),_0x316aa5),_0x28c467=await readFile(_0xc311a9,_0x551d9e(0x116));if(!_0x28c467[_0x551d9e(0x137)]())throw CliErrors[_0x551d9e(0x10c)](_0x551d9e(0x111)+_0xc311a9,_0x551d9e(0x120));const _0x44df6f=sanitizeIssueDescription(_0x28c467);return{'title':_0xd0c66c,'description':_0x44df6f[_0x551d9e(0x12f)],'descriptionSource':'file','descriptionFilePath':_0xc311a9,'sanitize':_0x44df6f};}
1
+ const a81_0x5ffbb6=a81_0x2d51;(function(_0x513014,_0x1e573e){const _0x538a37=a81_0x2d51,_0x17810d=_0x513014();while(!![]){try{const _0x4c83cd=parseInt(_0x538a37(0x10d))/0x1+parseInt(_0x538a37(0x111))/0x2*(-parseInt(_0x538a37(0x12d))/0x3)+-parseInt(_0x538a37(0x136))/0x4+-parseInt(_0x538a37(0x10f))/0x5*(-parseInt(_0x538a37(0x123))/0x6)+parseInt(_0x538a37(0x12b))/0x7+parseInt(_0x538a37(0x12e))/0x8*(-parseInt(_0x538a37(0x10b))/0x9)+-parseInt(_0x538a37(0x133))/0xa;if(_0x4c83cd===_0x1e573e)break;else _0x17810d['push'](_0x17810d['shift']());}catch(_0x168df4){_0x17810d['push'](_0x17810d['shift']());}}}(a81_0x4087,0x57274));function a81_0x4087(){const _0x5ff376=['14931LlrJLv','compress','467528HNEtYj','truncated','5XZKRrd','Platform\x20issue\x20reported\x20(','4CEXwcL','originalBytes','Failed\x20to\x20report\x20platform\x20issue:\x20','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','POST','issue.description_original_bytes','issue.description_redactions','cwd','Issue\x20description\x20file\x20is\x20empty:\x20','message','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','string','trim','issue.title','str','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','validation','truncated:\x20original\x20','3891894ChclUk','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','utf8','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','length','issue.description_redaction_kinds','\x20bytes','4476094gDGtwS','redactions:\x20','84057JCjdRG','1824ddfyAN','issue','issue.description','issue.description_truncated','apiError','2615110zmgEmr','title','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','2811352JHyXFQ','description','redacted\x20','join','redactionCount','sanitize','push','descriptionFilePath','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','descriptionSource:\x20','One-line\x20issue\x20summary','description-file','Platform\x20issue\x20reported','\x20secret(s):\x20','descriptionFile:\x20','redactionKinds','filter'];a81_0x4087=function(){return _0x5ff376;};return a81_0x4087();}import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';function a81_0x2d51(_0x1c099f,_0x1e66e3){_0x1c099f=_0x1c099f-0x10b;const _0x408743=a81_0x4087();let _0x2d5170=_0x408743[_0x1c099f];return _0x2d5170;}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=a81_0x5ffbb6(0x142);export const issueReport={'service':a81_0x5ffbb6(0x12f),'command':'report','description':a81_0x5ffbb6(0x13f),'risk':'write','requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a81_0x5ffbb6(0x10c),'flags':[{'name':a81_0x5ffbb6(0x134),'type':a81_0x5ffbb6(0x11c),'required':!![],'description':a81_0x5ffbb6(0x141)},{'name':'description','type':a81_0x5ffbb6(0x11c),'description':a81_0x5ffbb6(0x124)},{'name':DESCRIPTION_FILE_FLAG,'type':a81_0x5ffbb6(0x11c),'description':a81_0x5ffbb6(0x120)}],async 'validate'(_0x1446cf){const _0x37eed7=a81_0x5ffbb6,_0xcc2da8=_0x1446cf['str'](_0x37eed7(0x134))[_0x37eed7(0x11d)](),_0x51a7df=_0x1446cf['str'](_0x37eed7(0x137))[_0x37eed7(0x11d)](),_0x2c19a7=_0x1446cf[_0x37eed7(0x11f)](DESCRIPTION_FILE_FLAG)[_0x37eed7(0x11d)]();if(!_0xcc2da8)throw CliErrors['flagMissing'](_0x37eed7(0x134),'Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.');const _0x35148c=_0x51a7df[_0x37eed7(0x128)]>0x0,_0x41f5a2=_0x2c19a7[_0x37eed7(0x128)]>0x0;if(_0x35148c===_0x41f5a2)throw CliErrors['validation'](_0x37eed7(0x127),_0x37eed7(0x126));if(_0x41f5a2){const _0x1639d9=resolve(process[_0x37eed7(0x118)](),_0x2c19a7);if(!existsSync(_0x1639d9))throw CliErrors[_0x37eed7(0x121)]('File\x20not\x20found:\x20'+_0x1639d9);}},async 'dryRun'(_0x1eb2e6){const _0xab9554=a81_0x5ffbb6,_0x5d2d0e=await prepareIssueReport(_0x1eb2e6);return{'method':_0xab9554(0x115),'url':'otel://'+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x5d2d0e[_0xab9554(0x134)],'issue.description':_0x5d2d0e[_0xab9554(0x137)],'issue.description_original_bytes':_0x5d2d0e[_0xab9554(0x13b)][_0xab9554(0x112)],'issue.description_truncated':_0x5d2d0e[_0xab9554(0x13b)]['truncated'],'issue.description_redactions':_0x5d2d0e[_0xab9554(0x13b)][_0xab9554(0x13a)],'issue.description_redaction_kinds':_0x5d2d0e[_0xab9554(0x13b)][_0xab9554(0x146)][_0xab9554(0x139)](',')}},'description':[_0xab9554(0x11b),_0xab9554(0x140)+_0x5d2d0e['descriptionSource'],_0x5d2d0e[_0xab9554(0x13d)]?_0xab9554(0x145)+_0x5d2d0e[_0xab9554(0x13d)]:null,_0x5d2d0e[_0xab9554(0x13b)][_0xab9554(0x10e)]?_0xab9554(0x122)+_0x5d2d0e[_0xab9554(0x13b)][_0xab9554(0x112)]+'\x20bytes':null,_0x5d2d0e[_0xab9554(0x13b)][_0xab9554(0x13a)]>0x0?_0xab9554(0x12c)+_0x5d2d0e[_0xab9554(0x13b)][_0xab9554(0x13a)]+'\x20('+_0x5d2d0e[_0xab9554(0x13b)][_0xab9554(0x146)][_0xab9554(0x139)](',\x20')+')':null][_0xab9554(0x147)](Boolean)[_0xab9554(0x139)]('\x0a')};},async 'execute'(_0x467b12){const _0x3efb0b=a81_0x5ffbb6,_0x2923fe=await prepareIssueReport(_0x467b12);try{await sendPlatformIssueCollectLog({'title':_0x2923fe['title'],'description':_0x2923fe[_0x3efb0b(0x137)],'sanitize':{'originalBytes':_0x2923fe[_0x3efb0b(0x13b)][_0x3efb0b(0x112)],'truncated':_0x2923fe[_0x3efb0b(0x13b)]['truncated'],'redactionCount':_0x2923fe[_0x3efb0b(0x13b)][_0x3efb0b(0x13a)],'redactionKinds':_0x2923fe[_0x3efb0b(0x13b)][_0x3efb0b(0x146)]}});}catch(_0x494ead){throw CliErrors[_0x3efb0b(0x132)](_0x3efb0b(0x113)+(_0x494ead instanceof Error?_0x494ead[_0x3efb0b(0x11a)]:String(_0x494ead)),_0x3efb0b(0x114));}return{'ok':!![],'message':buildResultMessage(_0x2923fe['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x3efb0b(0x11e),_0x3efb0b(0x130),_0x3efb0b(0x116),_0x3efb0b(0x131),_0x3efb0b(0x117),_0x3efb0b(0x129)],'issue':{'title':_0x2923fe[_0x3efb0b(0x134)],'descriptionLength':_0x2923fe[_0x3efb0b(0x137)]['length'],'descriptionSource':_0x2923fe['descriptionSource'],..._0x2923fe['descriptionFilePath']?{'descriptionFile':_0x2923fe[_0x3efb0b(0x13d)]}:{},'sanitize':{'originalBytes':_0x2923fe['sanitize'][_0x3efb0b(0x112)],'truncated':_0x2923fe[_0x3efb0b(0x13b)][_0x3efb0b(0x10e)],'redactions':_0x2923fe[_0x3efb0b(0x13b)][_0x3efb0b(0x13a)],'redactionKinds':_0x2923fe[_0x3efb0b(0x13b)]['redactionKinds']}}}};}};function buildResultMessage(_0x37074c){const _0x433b1f=a81_0x5ffbb6,_0x382c64=[];return _0x37074c['truncated']&&_0x382c64[_0x433b1f(0x13c)]('truncated\x20from\x20'+_0x37074c[_0x433b1f(0x112)]+_0x433b1f(0x12a)),_0x37074c[_0x433b1f(0x13a)]>0x0&&_0x382c64[_0x433b1f(0x13c)](_0x433b1f(0x138)+_0x37074c[_0x433b1f(0x13a)]+_0x433b1f(0x144)+_0x37074c[_0x433b1f(0x146)][_0x433b1f(0x139)](',\x20')),_0x382c64[_0x433b1f(0x128)]===0x0?_0x433b1f(0x143):_0x433b1f(0x110)+_0x382c64[_0x433b1f(0x139)](';\x20')+')';}async function prepareIssueReport(_0x579937){const _0x2d1a93=a81_0x5ffbb6,_0x287e71=_0x579937[_0x2d1a93(0x11f)](_0x2d1a93(0x134))[_0x2d1a93(0x11d)](),_0x4b1f0f=_0x579937[_0x2d1a93(0x11f)](_0x2d1a93(0x137)),_0x352183=_0x579937[_0x2d1a93(0x11f)](DESCRIPTION_FILE_FLAG)[_0x2d1a93(0x11d)]();if(!_0x352183){const _0x1c02d6=_0x4b1f0f;if(!_0x1c02d6[_0x2d1a93(0x11d)]())throw CliErrors['validation']('Issue\x20description\x20cannot\x20be\x20empty.',_0x2d1a93(0x13e));const _0x236a26=sanitizeIssueDescription(_0x1c02d6);return{'title':_0x287e71,'description':_0x236a26[_0x2d1a93(0x137)],'descriptionSource':'inline','sanitize':_0x236a26};}const _0x60d57=resolve(process[_0x2d1a93(0x118)](),_0x352183),_0x1e7bcb=await readFile(_0x60d57,_0x2d1a93(0x125));if(!_0x1e7bcb[_0x2d1a93(0x11d)]())throw CliErrors['validation'](_0x2d1a93(0x119)+_0x60d57,_0x2d1a93(0x135));const _0x1bf43b=sanitizeIssueDescription(_0x1e7bcb);return{'title':_0x287e71,'description':_0x1bf43b[_0x2d1a93(0x137)],'descriptionSource':'file','descriptionFilePath':_0x60d57,'sanitize':_0x1bf43b};}
@@ -1 +1 @@
1
- const a82_0x22b080=a82_0x21f5;function a82_0x21f5(_0x3cf535,_0x294bf6){_0x3cf535=_0x3cf535-0x1bd;const _0x1716bf=a82_0x1716();let _0x21f5ad=_0x1716bf[_0x3cf535];return _0x21f5ad;}(function(_0x53a3c9,_0x5f1282){const _0x5c5463=a82_0x21f5,_0xd5b76d=_0x53a3c9();while(!![]){try{const _0x5b9cc5=-parseInt(_0x5c5463(0x1bd))/0x1+parseInt(_0x5c5463(0x1c8))/0x2*(-parseInt(_0x5c5463(0x1ca))/0x3)+-parseInt(_0x5c5463(0x1d3))/0x4*(parseInt(_0x5c5463(0x1cc))/0x5)+parseInt(_0x5c5463(0x1c4))/0x6*(-parseInt(_0x5c5463(0x1bf))/0x7)+parseInt(_0x5c5463(0x1d8))/0x8+-parseInt(_0x5c5463(0x1d6))/0x9*(-parseInt(_0x5c5463(0x1c7))/0xa)+-parseInt(_0x5c5463(0x1c5))/0xb*(-parseInt(_0x5c5463(0x1cf))/0xc);if(_0x5b9cc5===_0x5f1282)break;else _0xd5b76d['push'](_0xd5b76d['shift']());}catch(_0x398875){_0xd5b76d['push'](_0xd5b76d['shift']());}}}(a82_0x1716,0x5b1ff));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a82_0x22b080(0x1c2),REDACTION_RULES=[{'kind':a82_0x22b080(0x1ce),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a82_0x22b080(0x1c1)},{'kind':a82_0x22b080(0x1d7),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':'private-key','pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':'REDACTED:private-key'},{'kind':a82_0x22b080(0x1c0),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a82_0x22b080(0x1d0)},{'kind':a82_0x22b080(0x1c9),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a82_0x22b080(0x1c6)},{'kind':'bearer-jwt','pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a82_0x22b080(0x1cd)}];export function sanitizeIssueDescription(_0x22a398){const _0xcb85f6=a82_0x22b080,_0xdcacbb=Buffer[_0xcb85f6(0x1c3)](_0x22a398,_0xcb85f6(0x1d5)),_0x180742=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0xb9be1=_0x22a398,_0x5cc2fb=0x0;const _0x5ddb7e=[];if(!_0x180742)for(const _0x1cc702 of REDACTION_RULES){let _0x320495=0x0;_0xb9be1=_0xb9be1[_0xcb85f6(0x1d4)](_0x1cc702[_0xcb85f6(0x1cb)],(_0x3f0b0d,_0x171cc8)=>{_0x320495+=0x1;const _0x32e9f5=typeof _0x171cc8==='string'?_0x171cc8:'';return _0x32e9f5+'['+_0x1cc702['label']+']';}),_0x320495>0x0&&(_0x5cc2fb+=_0x320495,!_0x5ddb7e[_0xcb85f6(0x1d1)](_0x1cc702['kind'])&&_0x5ddb7e['push'](_0x1cc702[_0xcb85f6(0x1be)]));}let _0x3f28ea=![];if(Buffer['byteLength'](_0xb9be1,_0xcb85f6(0x1d5))>ISSUE_DESCRIPTION_MAX_BYTES){_0x3f28ea=!![];const _0x32dfb3=Buffer[_0xcb85f6(0x1c3)](TRUNCATION_NOTICE,'utf8'),_0x38ed08=Math[_0xcb85f6(0x1d2)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x32dfb3);_0xb9be1=sliceUtf8Bytes(_0xb9be1,_0x38ed08)+TRUNCATION_NOTICE;}return{'description':_0xb9be1,'originalBytes':_0xdcacbb,'truncated':_0x3f28ea,'redactionCount':_0x5cc2fb,'redactionKinds':_0x5ddb7e};}function sliceUtf8Bytes(_0x1eef5e,_0x1b4e75){const _0x48add4=a82_0x22b080;if(_0x1b4e75<=0x0)return'';const _0x2800de=Buffer['from'](_0x1eef5e,_0x48add4(0x1d5));if(_0x2800de[_0x48add4(0x1c3)]<=_0x1b4e75)return _0x1eef5e;let _0x1e5417=_0x1b4e75;while(_0x1e5417>0x0){const _0x11a9d5=_0x2800de[_0x1e5417];if(_0x11a9d5===undefined||(_0x11a9d5&0xc0)!==0x80)break;_0x1e5417-=0x1;}return _0x2800de['subarray'](0x0,_0x1e5417)['toString'](_0x48add4(0x1d5));}function a82_0x1716(){const _0x1240a1=['REDACTED:password','10aiVsMb','4gLnSwU','password','659289WVrcZI','pattern','140835gEkJSl','REDACTED:bearer-jwt','cookie','24eJcAsL','REDACTED:access-key','includes','max','100NgJMBE','replace','utf8','5899401UKsKKE','authorization','5899600vvWJqw','292736dNrymx','kind','8785uLtNpj','access-key','REDACTED:cookie','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','byteLength','3378TtdUpG','6178205YDLkMz'];a82_0x1716=function(){return _0x1240a1;};return a82_0x1716();}
1
+ const a82_0x2974ab=a82_0x1814;(function(_0x1476af,_0x2ff48c){const _0x4fe891=a82_0x1814,_0x1adb31=_0x1476af();while(!![]){try{const _0x1afc6e=parseInt(_0x4fe891(0xe1))/0x1*(parseInt(_0x4fe891(0xe3))/0x2)+parseInt(_0x4fe891(0xe2))/0x3+-parseInt(_0x4fe891(0xde))/0x4+-parseInt(_0x4fe891(0xeb))/0x5*(-parseInt(_0x4fe891(0xd6))/0x6)+-parseInt(_0x4fe891(0xec))/0x7+parseInt(_0x4fe891(0xda))/0x8*(-parseInt(_0x4fe891(0xe6))/0x9)+-parseInt(_0x4fe891(0xe7))/0xa;if(_0x1afc6e===_0x2ff48c)break;else _0x1adb31['push'](_0x1adb31['shift']());}catch(_0x149864){_0x1adb31['push'](_0x1adb31['shift']());}}}(a82_0x25f9,0x28b0e));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a82_0x2974ab(0xd7),REDACTION_RULES=[{'kind':a82_0x2974ab(0xd4),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a82_0x2974ab(0xea)},{'kind':a82_0x2974ab(0xd9),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a82_0x2974ab(0xdc)},{'kind':'private-key','pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':'REDACTED:private-key'},{'kind':a82_0x2974ab(0xe0),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':'REDACTED:access-key'},{'kind':a82_0x2974ab(0xdd),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a82_0x2974ab(0xe4)},{'kind':a82_0x2974ab(0xd8),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a82_0x2974ab(0xe5)}];function a82_0x1814(_0x413b97,_0x22b020){_0x413b97=_0x413b97-0xd4;const _0x25f9c2=a82_0x25f9();let _0x18143f=_0x25f9c2[_0x413b97];return _0x18143f;}export function sanitizeIssueDescription(_0x9be77e){const _0x37eeaf=a82_0x2974ab,_0x416903=Buffer[_0x37eeaf(0xef)](_0x9be77e,'utf8'),_0xae7878=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x585efa=_0x9be77e,_0x5743df=0x0;const _0x108702=[];if(!_0xae7878)for(const _0x32897b of REDACTION_RULES){let _0x354539=0x0;_0x585efa=_0x585efa['replace'](_0x32897b[_0x37eeaf(0xe8)],(_0x3d5f3e,_0x7bd479)=>{const _0x4e7f4a=_0x37eeaf;_0x354539+=0x1;const _0x2776a3=typeof _0x7bd479==='string'?_0x7bd479:'';return _0x2776a3+'['+_0x32897b[_0x4e7f4a(0xee)]+']';}),_0x354539>0x0&&(_0x5743df+=_0x354539,!_0x108702['includes'](_0x32897b['kind'])&&_0x108702[_0x37eeaf(0xdf)](_0x32897b[_0x37eeaf(0xe9)]));}let _0x1452db=![];if(Buffer[_0x37eeaf(0xef)](_0x585efa,_0x37eeaf(0xdb))>ISSUE_DESCRIPTION_MAX_BYTES){_0x1452db=!![];const _0x3dcd31=Buffer[_0x37eeaf(0xef)](TRUNCATION_NOTICE,'utf8'),_0x49dbfb=Math['max'](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x3dcd31);_0x585efa=sliceUtf8Bytes(_0x585efa,_0x49dbfb)+TRUNCATION_NOTICE;}return{'description':_0x585efa,'originalBytes':_0x416903,'truncated':_0x1452db,'redactionCount':_0x5743df,'redactionKinds':_0x108702};}function sliceUtf8Bytes(_0xfa25a2,_0x13adf5){const _0x4085c9=a82_0x2974ab;if(_0x13adf5<=0x0)return'';const _0x26143c=Buffer[_0x4085c9(0xed)](_0xfa25a2,_0x4085c9(0xdb));if(_0x26143c['byteLength']<=_0x13adf5)return _0xfa25a2;let _0x534e8a=_0x13adf5;while(_0x534e8a>0x0){const _0x3d7602=_0x26143c[_0x534e8a];if(_0x3d7602===undefined||(_0x3d7602&0xc0)!==0x80)break;_0x534e8a-=0x1;}return _0x26143c['subarray'](0x0,_0x534e8a)[_0x4085c9(0xd5)]('utf8');}function a82_0x25f9(){const _0x1e1e82=['toString','3306xeXriF','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','bearer-jwt','authorization','232FwShEG','utf8','REDACTED:authorization','password','426248LHcpmM','push','access-key','152857BEWXKa','296661MmPBjk','4WZMwWI','REDACTED:password','REDACTED:bearer-jwt','73674YUqZcj','1238810Xaxaci','pattern','kind','REDACTED:cookie','2125hBJiya','29883ukNGdO','from','label','byteLength','cookie'];a82_0x25f9=function(){return _0x1e1e82;};return a82_0x25f9();}
@@ -1 +1 @@
1
- const a83_0x2681d2=a83_0x5dfc;function a83_0x5dfc(_0x5bd585,_0x321c20){_0x5bd585=_0x5bd585-0xf7;const _0x53154a=a83_0x5315();let _0x5dfc6a=_0x53154a[_0x5bd585];return _0x5dfc6a;}(function(_0xa9c11,_0xa87a7a){const _0x51dc2a=a83_0x5dfc,_0x1793a4=_0xa9c11();while(!![]){try{const _0x44d135=-parseInt(_0x51dc2a(0x105))/0x1*(-parseInt(_0x51dc2a(0x113))/0x2)+parseInt(_0x51dc2a(0x117))/0x3*(parseInt(_0x51dc2a(0x10d))/0x4)+-parseInt(_0x51dc2a(0x107))/0x5*(parseInt(_0x51dc2a(0xff))/0x6)+parseInt(_0x51dc2a(0x110))/0x7+parseInt(_0x51dc2a(0x109))/0x8*(parseInt(_0x51dc2a(0x119))/0x9)+parseInt(_0x51dc2a(0xfa))/0xa+-parseInt(_0x51dc2a(0xfc))/0xb;if(_0x44d135===_0xa87a7a)break;else _0x1793a4['push'](_0x1793a4['shift']());}catch(_0x2e3ceb){_0x1793a4['push'](_0x1793a4['shift']());}}}(a83_0x5315,0x5dfa6));import{logger}from'../../utils/logger.js';function a83_0x5315(){const _0xb50e6d=['*\x20Logs\x20cleared','write','45reurab','length','9IRyjCK','View\x20command\x20history\x20logs','read','details','toLocaleString','3185720YhCVIg','en-US','10611997rqEsLh','success','stringify','188850ZtJTBq','readLogs','log','\x20\x20\x20Details:\x20','duration','level','519051RleeZC','show','5HkhoZC','*\x20No\x20logs\x20found','2409448tGYeAb','\x20\x20\x20Time:\x20','logs','\x20\x20\x20Duration:\x20','57308vfAddg','message','keys','191989LaFMsG','*\x20Lovrabet\x20CLI\x20logs:\x0a','timestamp','2fJBEdc','forEach'];a83_0x5315=function(){return _0xb50e6d;};return a83_0x5315();}function printLogs(_0x435a6b){const _0x2361ab=a83_0x5dfc;if(_0x435a6b[_0x2361ab(0x118)]===0x0){console[_0x2361ab(0x101)](_0x2361ab(0x108));return;}console[_0x2361ab(0x101)](_0x2361ab(0x111)),_0x435a6b[_0x2361ab(0x114)]((_0x399bc2,_0x5e5703)=>{const _0x3a82b4=_0x2361ab,_0x465d6e=new Date(_0x399bc2[_0x3a82b4(0x112)])[_0x3a82b4(0xf9)](_0x3a82b4(0xfb)),_0x365650=_0x399bc2['level']===_0x3a82b4(0xfd)?'√':_0x399bc2[_0x3a82b4(0x104)]==='error'?'×':_0x399bc2['level']==='warn'?'!':'i';console[_0x3a82b4(0x101)](_0x5e5703+0x1+'.\x20'+_0x365650+'\x20['+_0x399bc2['command']+']\x20'+_0x399bc2[_0x3a82b4(0x10e)]),console['log'](_0x3a82b4(0x10a)+_0x465d6e),_0x399bc2[_0x3a82b4(0x103)]&&console['log'](_0x3a82b4(0x10c)+_0x399bc2[_0x3a82b4(0x103)]+'ms'),_0x399bc2[_0x3a82b4(0xf8)]&&Object[_0x3a82b4(0x10f)](_0x399bc2[_0x3a82b4(0xf8)])[_0x3a82b4(0x118)]>0x0&&console[_0x3a82b4(0x101)](_0x3a82b4(0x102)+JSON[_0x3a82b4(0xfe)](_0x399bc2['details'],null,0x2)),console[_0x3a82b4(0x101)]('');});}export const logsDefinitions=[{'service':a83_0x2681d2(0x10b),'command':a83_0x2681d2(0x106),'description':a83_0x2681d2(0x11a),'risk':a83_0x2681d2(0xf7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x54f09d){const _0xf5f243=a83_0x2681d2;return printLogs(logger[_0xf5f243(0x100)]()),{'ok':!![]};}},{'service':a83_0x2681d2(0x10b),'command':'clear','description':'Clear\x20command\x20history\x20logs','risk':a83_0x2681d2(0x116),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x108518){const _0x146fdc=a83_0x2681d2;return logger['clearLogs'](),console[_0x146fdc(0x101)](_0x146fdc(0x115)),{'ok':!![]};}}];
1
+ const a83_0x3572d8=a83_0x1edf;(function(_0x1c5c3c,_0x1a1050){const _0x21d81a=a83_0x1edf,_0x1f967a=_0x1c5c3c();while(!![]){try{const _0x524d8a=-parseInt(_0x21d81a(0xd6))/0x1*(-parseInt(_0x21d81a(0xcc))/0x2)+parseInt(_0x21d81a(0xbf))/0x3*(-parseInt(_0x21d81a(0xd3))/0x4)+-parseInt(_0x21d81a(0xcd))/0x5+parseInt(_0x21d81a(0xbd))/0x6+parseInt(_0x21d81a(0xc3))/0x7*(parseInt(_0x21d81a(0xd9))/0x8)+parseInt(_0x21d81a(0xdd))/0x9+-parseInt(_0x21d81a(0xcf))/0xa;if(_0x524d8a===_0x1a1050)break;else _0x1f967a['push'](_0x1f967a['shift']());}catch(_0x572abd){_0x1f967a['push'](_0x1f967a['shift']());}}}(a83_0x2ca9,0x2339d));function a83_0x2ca9(){const _0xc4ed78=['log','readLogs','1099jaeckn','level','message','en-US','toLocaleString','Clear\x20command\x20history\x20logs','logs','timestamp','View\x20command\x20history\x20logs','3140VYiVmD','11935eTcLuV','*\x20Logs\x20cleared','5021930mdTrct','stringify','*\x20Lovrabet\x20CLI\x20logs:\x0a','duration','938184VuYZif','command','\x20\x20\x20Details:\x20','167lPLIxi','\x20\x20\x20Time:\x20','*\x20No\x20logs\x20found','14280zkwdsy','details','show','keys','1459485DqjpYY','success','1072866wDOAnI','clear','3CQhRye','length'];a83_0x2ca9=function(){return _0xc4ed78;};return a83_0x2ca9();}import{logger}from'../../utils/logger.js';function a83_0x1edf(_0x4b3609,_0x3ba47e){_0x4b3609=_0x4b3609-0xbc;const _0x2ca998=a83_0x2ca9();let _0x1edfa5=_0x2ca998[_0x4b3609];return _0x1edfa5;}function printLogs(_0x329a3f){const _0x4dde95=a83_0x1edf;if(_0x329a3f[_0x4dde95(0xc0)]===0x0){console[_0x4dde95(0xc1)](_0x4dde95(0xd8));return;}console['log'](_0x4dde95(0xd1)),_0x329a3f['forEach']((_0x50014b,_0x2129e3)=>{const _0x2ceb27=_0x4dde95,_0x5c5d77=new Date(_0x50014b[_0x2ceb27(0xca)])[_0x2ceb27(0xc7)](_0x2ceb27(0xc6)),_0x3791bf=_0x50014b[_0x2ceb27(0xc4)]===_0x2ceb27(0xbc)?'√':_0x50014b[_0x2ceb27(0xc4)]==='error'?'×':_0x50014b[_0x2ceb27(0xc4)]==='warn'?'!':'i';console[_0x2ceb27(0xc1)](_0x2129e3+0x1+'.\x20'+_0x3791bf+'\x20['+_0x50014b[_0x2ceb27(0xd4)]+']\x20'+_0x50014b[_0x2ceb27(0xc5)]),console['log'](_0x2ceb27(0xd7)+_0x5c5d77),_0x50014b[_0x2ceb27(0xd2)]&&console['log']('\x20\x20\x20Duration:\x20'+_0x50014b[_0x2ceb27(0xd2)]+'ms'),_0x50014b[_0x2ceb27(0xda)]&&Object[_0x2ceb27(0xdc)](_0x50014b['details'])[_0x2ceb27(0xc0)]>0x0&&console[_0x2ceb27(0xc1)](_0x2ceb27(0xd5)+JSON[_0x2ceb27(0xd0)](_0x50014b[_0x2ceb27(0xda)],null,0x2)),console['log']('');});}export const logsDefinitions=[{'service':a83_0x3572d8(0xc9),'command':a83_0x3572d8(0xdb),'description':a83_0x3572d8(0xcb),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x26f43d){const _0x5afa8a=a83_0x3572d8;return printLogs(logger[_0x5afa8a(0xc2)]()),{'ok':!![]};}},{'service':a83_0x3572d8(0xc9),'command':a83_0x3572d8(0xbe),'description':a83_0x3572d8(0xc8),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x420773){const _0x42386=a83_0x3572d8;return logger['clearLogs'](),console['log'](_0x42386(0xce)),{'ok':!![]};}}];
@@ -1 +1 @@
1
- function a84_0x2858(){const _0x50f95c=['1348739ezVmOs','1618400vhJibO','87342bGItyy','496348LdJOTO','3gZdPyD','367350svLFye','6pHgQmp','138198ChHDmw','1529019qZAFIT'];a84_0x2858=function(){return _0x50f95c;};return a84_0x2858();}(function(_0x15a398,_0xb35b13){const _0x13e593=a84_0xdfee,_0x5badcb=_0x15a398();while(!![]){try{const _0xc224ce=parseInt(_0x13e593(0x83))/0x1+parseInt(_0x13e593(0x7f))/0x2+parseInt(_0x13e593(0x85))/0x3*(parseInt(_0x13e593(0x84))/0x4)+parseInt(_0x13e593(0x7d))/0x5+-parseInt(_0x13e593(0x7e))/0x6*(parseInt(_0x13e593(0x81))/0x7)+-parseInt(_0x13e593(0x82))/0x8+parseInt(_0x13e593(0x80))/0x9;if(_0xc224ce===_0xb35b13)break;else _0x5badcb['push'](_0x5badcb['shift']());}catch(_0x3660f2){_0x5badcb['push'](_0x5badcb['shift']());}}}(a84_0x2858,0x1f790));function a84_0xdfee(_0x5aa4f4,_0x480a5d){_0x5aa4f4=_0x5aa4f4-0x7d;const _0x2858a6=a84_0x2858();let _0xdfee4=_0x2858a6[_0x5aa4f4];return _0xdfee4;}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuSync,menuUpdate];
1
+ function a84_0x1380(_0xde329,_0x37e218){_0xde329=_0xde329-0x154;const _0x15a492=a84_0x15a4();let _0x1380ab=_0x15a492[_0xde329];return _0x1380ab;}(function(_0x2737f3,_0x49e3b9){const _0x57d06c=a84_0x1380,_0x2b1f84=_0x2737f3();while(!![]){try{const _0x353062=-parseInt(_0x57d06c(0x155))/0x1+-parseInt(_0x57d06c(0x159))/0x2+parseInt(_0x57d06c(0x156))/0x3*(-parseInt(_0x57d06c(0x154))/0x4)+-parseInt(_0x57d06c(0x157))/0x5+-parseInt(_0x57d06c(0x15b))/0x6+-parseInt(_0x57d06c(0x15a))/0x7+parseInt(_0x57d06c(0x158))/0x8;if(_0x353062===_0x49e3b9)break;else _0x2b1f84['push'](_0x2b1f84['shift']());}catch(_0xc1ef11){_0x2b1f84['push'](_0x2b1f84['shift']());}}}(a84_0x15a4,0x9b60e));function a84_0x15a4(){const _0x5a2e1e=['3261910QSTktY','39558376AAWmnG','2181874LFZKNq','6814815kKaaky','2460114mIJmaI','236WJDWTa','1038704AYLvSo','7260CadoOZ'];a84_0x15a4=function(){return _0x5a2e1e;};return a84_0x15a4();}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuSync,menuUpdate];
@@ -1 +1 @@
1
- (function(_0x154c16,_0x4564ea){const _0x2cecf=a85_0x25ee,_0x4711f8=_0x154c16();while(!![]){try{const _0x25b986=-parseInt(_0x2cecf(0xe3))/0x1*(-parseInt(_0x2cecf(0xec))/0x2)+parseInt(_0x2cecf(0xf8))/0x3*(parseInt(_0x2cecf(0xee))/0x4)+parseInt(_0x2cecf(0xfc))/0x5*(parseInt(_0x2cecf(0xe1))/0x6)+-parseInt(_0x2cecf(0xe8))/0x7*(parseInt(_0x2cecf(0xf1))/0x8)+-parseInt(_0x2cecf(0xf2))/0x9+-parseInt(_0x2cecf(0xf4))/0xa*(parseInt(_0x2cecf(0xfa))/0xb)+-parseInt(_0x2cecf(0xf0))/0xc;if(_0x25b986===_0x4564ea)break;else _0x4711f8['push'](_0x4711f8['shift']());}catch(_0x59b9e3){_0x4711f8['push'](_0x4711f8['shift']());}}}(a85_0x5db0,0x35a0a));function a85_0x5db0(){const _0x357760=['\x20\x20No\x20pages\x20to\x20sync.','7IpHpKQ','Local','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','(unchanged)','2EiDoIS','path','64308yNfObv','push','2032884hvCyGO','255336IVCHTQ','1567143iSbMbj','\x20\x20\x20\x20CSS:\x20','20AkOzQd','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','\x20\x20Affected\x20menus:\x20','repeat','33OmFDxJ','\x20\x20\x20\x20JS:\x20\x20','633974uKSrVs','join','310nQAPoP','max','length','map','41724FmGtIT','online','102382lEFcSR','label','test','local'];a85_0x5db0=function(){return _0x357760;};return a85_0x5db0();}function strWidth(_0x28c06d){const _0x50ec6a=a85_0x25ee;let _0x158ae8=0x0;for(const _0x150506 of _0x28c06d){_0x158ae8+=/[\u4e00-\u9fa5]/[_0x50ec6a(0xe5)](_0x150506)?0x2:0x1;}return _0x158ae8;}function padRight(_0x3dccad,_0x2a8bde){const _0x202f3c=a85_0x25ee,_0x2ecb95=strWidth(_0x3dccad);return _0x3dccad+'\x20'['repeat'](Math[_0x202f3c(0xfd)](0x0,_0x2a8bde-_0x2ecb95));}function a85_0x25ee(_0xa25442,_0x1b7607){_0xa25442=_0xa25442-0xe1;const _0x5db0a7=a85_0x5db0();let _0x25ee96=_0x5db0a7[_0xa25442];return _0x25ee96;}export function renderCompareTable(_0x4d8c4c,_0x1ffa07={}){const _0x40ed3e=a85_0x25ee;if(_0x4d8c4c[_0x40ed3e(0xfe)]===0x0)return'';const _0x2d2a95=_0x1ffa07['showOnline']??!![],_0x1504e1=Math['max'](0x1e,..._0x4d8c4c[_0x40ed3e(0xff)](_0x30ece6=>strWidth(_0x30ece6['label']))),_0x2a0d51=0x4,_0x6ea8f1=[],_0x126a7a='\x20\x20'+padRight('Menu\x20Name',_0x1504e1),_0x487115=padRight(_0x40ed3e(0xe9),_0x2a0d51),_0x491022=_0x2d2a95?'\x20\x20'+padRight('Platform',_0x2a0d51):'';_0x6ea8f1[_0x40ed3e(0xef)](_0x126a7a+'\x20\x20'+_0x487115+(_0x2d2a95?_0x491022:'')),_0x6ea8f1[_0x40ed3e(0xef)]('\x20\x20'+'─'[_0x40ed3e(0xf7)](_0x1504e1)+'\x20\x20'+'─'[_0x40ed3e(0xf7)](_0x2a0d51)+(_0x2d2a95?'\x20\x20'+'─'['repeat'](_0x2a0d51):''));for(const _0x2e401a of _0x4d8c4c){const _0x1f1f5c=padRight(_0x2e401a[_0x40ed3e(0xe4)],_0x1504e1),_0x30d614=_0x2e401a[_0x40ed3e(0xe6)]?'✓':'✗',_0x5bf276=padRight(_0x30d614,_0x2a0d51);let _0x26004b='\x20\x20'+_0x1f1f5c+'\x20\x20'+_0x5bf276;if(_0x2d2a95){const _0x4757f1=_0x2e401a[_0x40ed3e(0xe2)]?'✓':'✗';_0x26004b+='\x20\x20'+padRight(_0x4757f1,_0x2a0d51);}_0x6ea8f1[_0x40ed3e(0xef)](_0x26004b);}return _0x6ea8f1[_0x40ed3e(0xfb)]('\x0a');}export function renderSyncSummary(_0x403772,_0x241c42){const _0x202a1b=a85_0x25ee;if(_0x403772[_0x202a1b(0xfe)]===0x0)return _0x241c42?'\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.':_0x202a1b(0xe7);const _0x1d6084=['\x20\x20'+_0x403772[_0x202a1b(0xfe)]+_0x202a1b(0xf5)];for(const _0x5b870e of _0x403772){_0x1d6084[_0x202a1b(0xef)]('\x20\x20\x20\x20•\x20'+_0x5b870e['label']+'\x20('+_0x5b870e[_0x202a1b(0xed)]+')');}return _0x1d6084[_0x202a1b(0xfb)]('\x0a');}export function renderUpdateSummary(_0x1376bb,_0xfc0d33){const _0x4674ce=a85_0x25ee;if(_0x1376bb[_0x4674ce(0xfe)]===0x0)return _0x4674ce(0xea);const _0x1f9244=['\x20\x20'+_0x1376bb[_0x4674ce(0xfe)]+'\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:',_0x4674ce(0xf9)+(_0xfc0d33[0x0]??_0x4674ce(0xeb)),_0x4674ce(0xf3)+(_0xfc0d33[0x1]??_0x4674ce(0xeb)),'',_0x4674ce(0xf6)+_0x1376bb['join'](',\x20')];return _0x1f9244[_0x4674ce(0xfb)]('\x0a');}
1
+ (function(_0x76b6fc,_0xa75799){const _0x58ce81=a85_0x4d9c,_0x432339=_0x76b6fc();while(!![]){try{const _0x1fa855=parseInt(_0x58ce81(0x90))/0x1+-parseInt(_0x58ce81(0x93))/0x2+-parseInt(_0x58ce81(0x81))/0x3*(parseInt(_0x58ce81(0x8d))/0x4)+-parseInt(_0x58ce81(0x86))/0x5+-parseInt(_0x58ce81(0x95))/0x6+parseInt(_0x58ce81(0x8a))/0x7+parseInt(_0x58ce81(0x94))/0x8;if(_0x1fa855===_0xa75799)break;else _0x432339['push'](_0x432339['shift']());}catch(_0x56aeb0){_0x432339['push'](_0x432339['shift']());}}}(a85_0x56da,0x913e0));function a85_0x4d9c(_0x41dc13,_0x308874){_0x41dc13=_0x41dc13-0x7d;const _0x56daad=a85_0x56da();let _0x4d9c1b=_0x56daad[_0x41dc13];return _0x4d9c1b;}function a85_0x56da(){const _0x1e4e70=['\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','push','7384972GLveGR','label','length','270392LAfvvr','Local','online','75865Vzdwqx','join','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','522516qEGsCy','16496672sKbYYl','1820082ycoOUZ','\x20\x20\x20\x20CSS:\x20','repeat','\x20\x20No\x20pages\x20to\x20sync.','(unchanged)','48kWpXuU','max','map','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','\x20\x20Affected\x20menus:\x20','4759300jeuYRr','showOnline'];a85_0x56da=function(){return _0x1e4e70;};return a85_0x56da();}function strWidth(_0x137fa6){let _0x2dfe8d=0x0;for(const _0x5615ca of _0x137fa6){_0x2dfe8d+=/[\u4e00-\u9fa5]/['test'](_0x5615ca)?0x2:0x1;}return _0x2dfe8d;}function padRight(_0x1dba3b,_0x29ade7){const _0x5b3763=a85_0x4d9c,_0x590001=strWidth(_0x1dba3b);return _0x1dba3b+'\x20'[_0x5b3763(0x7e)](Math['max'](0x0,_0x29ade7-_0x590001));}export function renderCompareTable(_0x917907,_0x411a16={}){const _0x52733c=a85_0x4d9c;if(_0x917907[_0x52733c(0x8c)]===0x0)return'';const _0x941ecc=_0x411a16[_0x52733c(0x87)]??!![],_0x224909=Math[_0x52733c(0x82)](0x1e,..._0x917907[_0x52733c(0x83)](_0xe2d35f=>strWidth(_0xe2d35f[_0x52733c(0x8b)]))),_0x284354=0x4,_0x1435c7=[],_0x50ad24='\x20\x20'+padRight('Menu\x20Name',_0x224909),_0x31cb66=padRight(_0x52733c(0x8e),_0x284354),_0x327c22=_0x941ecc?'\x20\x20'+padRight('Platform',_0x284354):'';_0x1435c7[_0x52733c(0x89)](_0x50ad24+'\x20\x20'+_0x31cb66+(_0x941ecc?_0x327c22:'')),_0x1435c7['push']('\x20\x20'+'─'[_0x52733c(0x7e)](_0x224909)+'\x20\x20'+'─'[_0x52733c(0x7e)](_0x284354)+(_0x941ecc?'\x20\x20'+'─'[_0x52733c(0x7e)](_0x284354):''));for(const _0x2c23d5 of _0x917907){const _0x2c02af=padRight(_0x2c23d5[_0x52733c(0x8b)],_0x224909),_0x16ea5c=_0x2c23d5['local']?'✓':'✗',_0x148cc9=padRight(_0x16ea5c,_0x284354);let _0x3afef7='\x20\x20'+_0x2c02af+'\x20\x20'+_0x148cc9;if(_0x941ecc){const _0xcfb28f=_0x2c23d5[_0x52733c(0x8f)]?'✓':'✗';_0x3afef7+='\x20\x20'+padRight(_0xcfb28f,_0x284354);}_0x1435c7[_0x52733c(0x89)](_0x3afef7);}return _0x1435c7['join']('\x0a');}export function renderSyncSummary(_0x3353e2,_0x2c38a4){const _0x21720c=a85_0x4d9c;if(_0x3353e2['length']===0x0)return _0x2c38a4?'\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.':_0x21720c(0x7f);const _0x4aa43d=['\x20\x20'+_0x3353e2['length']+_0x21720c(0x84)];for(const _0x5d59af of _0x3353e2){_0x4aa43d[_0x21720c(0x89)]('\x20\x20\x20\x20•\x20'+_0x5d59af[_0x21720c(0x8b)]+'\x20('+_0x5d59af['path']+')');}return _0x4aa43d[_0x21720c(0x91)]('\x0a');}export function renderUpdateSummary(_0x2152c6,_0x5341f8){const _0x6e68b1=a85_0x4d9c;if(_0x2152c6['length']===0x0)return _0x6e68b1(0x88);const _0x11720c=['\x20\x20'+_0x2152c6[_0x6e68b1(0x8c)]+_0x6e68b1(0x92),'\x20\x20\x20\x20JS:\x20\x20'+(_0x5341f8[0x0]??_0x6e68b1(0x80)),_0x6e68b1(0x7d)+(_0x5341f8[0x1]??_0x6e68b1(0x80)),'',_0x6e68b1(0x85)+_0x2152c6[_0x6e68b1(0x91)](',\x20')];return _0x11720c[_0x6e68b1(0x91)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x14e135,_0x10f706){var _0x9a8689=a86_0x27be,_0x11c6d8=_0x14e135();while(!![]){try{var _0x1cb509=-parseInt(_0x9a8689(0x1f7))/0x1+-parseInt(_0x9a8689(0x1f6))/0x2*(-parseInt(_0x9a8689(0x1fc))/0x3)+parseInt(_0x9a8689(0x1f9))/0x4*(parseInt(_0x9a8689(0x1f4))/0x5)+-parseInt(_0x9a8689(0x1fb))/0x6*(-parseInt(_0x9a8689(0x1f5))/0x7)+-parseInt(_0x9a8689(0x1f3))/0x8+-parseInt(_0x9a8689(0x1f8))/0x9+parseInt(_0x9a8689(0x1fa))/0xa;if(_0x1cb509===_0x10f706)break;else _0x11c6d8['push'](_0x11c6d8['shift']());}catch(_0x38a3c3){_0x11c6d8['push'](_0x11c6d8['shift']());}}}(a86_0xa7c5,0x1998c));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';function a86_0x27be(_0x36881e,_0x7bec2c){_0x36881e=_0x36881e-0x1f3;var _0xa7c592=a86_0xa7c5();var _0x27befb=_0xa7c592[_0x36881e];return _0x27befb;}export*from'../../../commands/menu/shared/local-pages.js';function a86_0xa7c5(){var _0x3f4d66=['74535lWtWEH','34013IhuElo','1108KQikMU','129160PoIDbr','342873JYONhs','4nMPWjq','3515740XxmSiO','18wmcatc','174sXnSnS','1128712Uglslu'];a86_0xa7c5=function(){return _0x3f4d66;};return a86_0xa7c5();}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(_0xe35b59,_0x4e13cb){var _0x46628f=a86_0x1d4f,_0x34b793=_0xe35b59();while(!![]){try{var _0x1eec00=-parseInt(_0x46628f(0x136))/0x1+parseInt(_0x46628f(0x131))/0x2+-parseInt(_0x46628f(0x137))/0x3*(parseInt(_0x46628f(0x133))/0x4)+-parseInt(_0x46628f(0x134))/0x5+-parseInt(_0x46628f(0x132))/0x6+parseInt(_0x46628f(0x135))/0x7+parseInt(_0x46628f(0x138))/0x8;if(_0x1eec00===_0x4e13cb)break;else _0x34b793['push'](_0x34b793['shift']());}catch(_0x41c19d){_0x34b793['push'](_0x34b793['shift']());}}}(a86_0x1a6a,0x84bdd));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';function a86_0x1a6a(){var _0x1e652a=['1353492fbarBX','714734VEceEg','6129xsfSbv','14598248yQoCxg','479272FSxBeI','5219346Hwficn','164yybUGl','228380cHiwJB'];a86_0x1a6a=function(){return _0x1e652a;};return a86_0x1a6a();}export*from'../../../commands/menu/shared/compare-table.js';function a86_0x1d4f(_0x14398e,_0x4b5011){_0x14398e=_0x14398e-0x131;var _0x1a6aea=a86_0x1a6a();var _0x1d4f62=_0x1a6aea[_0x14398e];return _0x1d4f62;}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 +1 @@
1
- (function(_0x4f9d65,_0x16dd25){const _0x55dbd6=a87_0x13e7,_0x4e46e6=_0x4f9d65();while(!![]){try{const _0x516e06=-parseInt(_0x55dbd6(0x1c9))/0x1*(-parseInt(_0x55dbd6(0x1dc))/0x2)+parseInt(_0x55dbd6(0x1d5))/0x3+parseInt(_0x55dbd6(0x1de))/0x4*(-parseInt(_0x55dbd6(0x1d6))/0x5)+parseInt(_0x55dbd6(0x1d1))/0x6*(parseInt(_0x55dbd6(0x1cc))/0x7)+-parseInt(_0x55dbd6(0x1c6))/0x8*(parseInt(_0x55dbd6(0x1df))/0x9)+parseInt(_0x55dbd6(0x1d0))/0xa+parseInt(_0x55dbd6(0x1cd))/0xb;if(_0x516e06===_0x16dd25)break;else _0x4e46e6['push'](_0x4e46e6['shift']());}catch(_0x459448){_0x4e46e6['push'](_0x4e46e6['shift']());}}}(a87_0xf378,0x2739d));import a87_0x2cf000 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';function a87_0xf378(){const _0x1d757c=['red','catch','939220vQVnlu','1902VhERub','has','name','No\x20local\x20pages\x20found.','197331uWTCcj','435BsYqyW','length','includes','gray','green','CSS\x20URL\x20checked','228HxGUSl','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','4564XtDtUM','84231IGUtjk','Cancelled.','path','fail','cyan','\x20\x20Checking\x20CSS\x20URL\x20reachability...','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','[already\x20on\x20platform]','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','[new]','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','trim','start','error','stdin','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','cancelled','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','label','test','200kMGAVB','isTTY','filter','1799ogrlHw','\x20\x20JS\x20URL:','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','1897puDzoe','475409Ynqlmb'];a87_0xf378=function(){return _0x1d757c;};return a87_0xf378();}import a87_0x35df74 from'ora';function a87_0x13e7(_0x2612cd,_0x1d861c){_0x2612cd=_0x2612cd-0x1bd;const _0xf37843=a87_0xf378();let _0x13e78a=_0xf37843[_0x2612cd];return _0x13e78a;}import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x23ecd1){const _0x4456b8=a87_0x13e7;return _0x23ecd1[_0x4456b8(0x1cf)](_0x5075fa=>{const _0x3b4576=_0x4456b8;if(_0x5075fa?.[_0x3b4576(0x1d3)]==='ExitPromptError')throw CliErrors['cancelled'](_0x3b4576(0x1e0));throw _0x5075fa;});}export function startSpinner(_0x12c2e1){const _0x3b6ab9=a87_0x13e7;return a87_0x35df74({'text':_0x12c2e1,'color':_0x3b6ab9(0x1e3)})[_0x3b6ab9(0x1be)]();}export function stopSpinner(_0x13fcbe,_0x5edf84,_0x852c42){const _0x5016a5=a87_0x13e7;_0x852c42?_0x13fcbe['succeed'](_0x5edf84):_0x13fcbe[_0x5016a5(0x1e2)](_0x5edf84);}export async function askConfirm(_0xcb4ff2){return onCancel(confirm({'message':_0xcb4ff2,'theme':{'prefix':''}}));}export async function askJsUrl(_0x1d15a8){const _0x31ef9b=a87_0x13e7;while(!![]){const _0xcf8169=await onCancel(input({'message':_0x31ef9b(0x1ca),'default':_0x1d15a8,'theme':{'prefix':''}}));if(_0xcf8169[_0x31ef9b(0x1bd)]()==='')throw CliErrors[_0x31ef9b(0x1c2)](_0x31ef9b(0x1e0));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x31ef9b(0x1c5)](_0xcf8169[_0x31ef9b(0x1bd)]())){console[_0x31ef9b(0x1bf)](a87_0x2cf000[_0x31ef9b(0x1ce)](_0x31ef9b(0x1dd)));continue;}const _0x42e253=startSpinner('\x20\x20Checking\x20JS\x20URL\x20reachability...');try{const _0x272d63=await isUrlReachable(_0xcf8169[_0x31ef9b(0x1bd)]());stopSpinner(_0x42e253,'JS\x20URL\x20checked',_0x272d63);if(!_0x272d63){console[_0x31ef9b(0x1bf)](a87_0x2cf000[_0x31ef9b(0x1ce)](_0x31ef9b(0x1c1)));continue;}return _0xcf8169[_0x31ef9b(0x1bd)]();}catch(_0x472258){stopSpinner(_0x42e253,'JS\x20URL\x20check\x20failed',![]);throw _0x472258;}}}export async function askCssUrl(_0x3f7900){const _0x4db9a4=a87_0x13e7;while(!![]){const _0x5570e2=await onCancel(input({'message':'\x20\x20CSS\x20URL:','default':_0x3f7900,'theme':{'prefix':''}}));if(_0x5570e2['trim']()==='')throw CliErrors[_0x4db9a4(0x1c2)]('Cancelled.');if(!/^https:\/\/.+\.css(\?.*)?$/[_0x4db9a4(0x1c5)](_0x5570e2['trim']())){console[_0x4db9a4(0x1bf)](a87_0x2cf000[_0x4db9a4(0x1ce)](_0x4db9a4(0x1e7)));continue;}const _0x58d054=startSpinner(_0x4db9a4(0x1e4));try{const _0x5e158c=await isUrlReachable(_0x5570e2[_0x4db9a4(0x1bd)]());stopSpinner(_0x58d054,_0x4db9a4(0x1db),_0x5e158c);if(!_0x5e158c){console[_0x4db9a4(0x1bf)](a87_0x2cf000[_0x4db9a4(0x1ce)](_0x4db9a4(0x1c3)));continue;}return _0x5570e2[_0x4db9a4(0x1bd)]();}catch(_0x5447dd){stopSpinner(_0x58d054,'CSS\x20URL\x20check\x20failed',![]);throw _0x5447dd;}}}export async function selectPages(_0x21caa3,_0x2ba80a,_0x328ee6){const _0x5d46e5=a87_0x13e7,_0x174c72=_0x21caa3['map'](_0x138b92=>({'name':_0x138b92[_0x5d46e5(0x1c4)]+'\x20\x20'+(_0x2ba80a[_0x5d46e5(0x1d2)](_0x138b92['path'])?a87_0x2cf000[_0x5d46e5(0x1d9)](_0x5d46e5(0x1e6)):a87_0x2cf000[_0x5d46e5(0x1da)](_0x5d46e5(0x1e8))),'value':_0x138b92[_0x5d46e5(0x1c4)],'checked':_0x328ee6?_0x328ee6[_0x5d46e5(0x1d8)](_0x138b92['label']):!_0x2ba80a[_0x5d46e5(0x1d2)](_0x138b92[_0x5d46e5(0x1e1)])}));if(_0x174c72[_0x5d46e5(0x1d7)]===0x0)throw new Error(_0x5d46e5(0x1d4));const _0x5f5cef=await onCancel(checkbox({'message':_0x5d46e5(0x1cb),'choices':_0x174c72,'loop':![],'theme':{'prefix':''}}));if(_0x5f5cef[_0x5d46e5(0x1d7)]===0x0)throw new Error('No\x20menus\x20selected.');return _0x21caa3[_0x5d46e5(0x1c8)](_0x54a52f=>_0x5f5cef['includes'](_0x54a52f[_0x5d46e5(0x1c4)]));}export function isInteractive(){const _0x117cf0=a87_0x13e7;return process[_0x117cf0(0x1c0)][_0x117cf0(0x1c7)]===!![];}export function requireInteractive(){const _0x2f1b9e=a87_0x13e7;if(!isInteractive())throw new Error(_0x2f1b9e(0x1e9)+_0x2f1b9e(0x1e5));}
1
+ (function(_0x3678e4,_0x95017a){const _0x27fba3=a87_0x5dc1,_0x5489d7=_0x3678e4();while(!![]){try{const _0x8bd961=-parseInt(_0x27fba3(0x217))/0x1+-parseInt(_0x27fba3(0x1fb))/0x2*(-parseInt(_0x27fba3(0x1f1))/0x3)+-parseInt(_0x27fba3(0x201))/0x4*(parseInt(_0x27fba3(0x21b))/0x5)+parseInt(_0x27fba3(0x202))/0x6*(parseInt(_0x27fba3(0x20e))/0x7)+parseInt(_0x27fba3(0x1ed))/0x8+-parseInt(_0x27fba3(0x1f0))/0x9*(parseInt(_0x27fba3(0x211))/0xa)+-parseInt(_0x27fba3(0x1fe))/0xb*(parseInt(_0x27fba3(0x1ef))/0xc);if(_0x8bd961===_0x95017a)break;else _0x5489d7['push'](_0x5489d7['shift']());}catch(_0x291213){_0x5489d7['push'](_0x5489d7['shift']());}}}(a87_0x15c6,0xb2091));import a87_0x28dd4c from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a87_0x18b6fe from'ora';function a87_0x15c6(){const _0xd14744=['[already\x20on\x20platform]','label','CSS\x20URL\x20check\x20failed','Cancelled.','cancelled','catch','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','has','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','name','JS\x20URL\x20check\x20failed','35zjFpLk','\x20\x20Checking\x20CSS\x20URL\x20reachability...','isTTY','4359930RSXnFa','filter','start','map','No\x20menus\x20selected.','trim','600124RDFpTc','[new]','\x20\x20Checking\x20JS\x20URL\x20reachability...','ExitPromptError','191350IUQvdc','\x20\x20JS\x20URL:','includes','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','CSS\x20URL\x20checked','9889592YelyWI','No\x20local\x20pages\x20found.','9504mQoBVl','9uPULIk','466626yeOEXL','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','green','gray','\x20\x20CSS\x20URL:','red','cyan','length','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','succeed','6dyOGaB','path','error','16610tNTjKL','test','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','20Avtjcl','1739754AFcaDM'];a87_0x15c6=function(){return _0xd14744;};return a87_0x15c6();}import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x1fe76e){const _0x585ce0=a87_0x5dc1;return _0x1fe76e[_0x585ce0(0x208)](_0x4b27ec=>{const _0x26b01a=_0x585ce0;if(_0x4b27ec?.[_0x26b01a(0x20c)]===_0x26b01a(0x21a))throw CliErrors[_0x26b01a(0x207)](_0x26b01a(0x206));throw _0x4b27ec;});}export function startSpinner(_0x4fb1fe){const _0x53ac90=a87_0x5dc1;return a87_0x18b6fe({'text':_0x4fb1fe,'color':_0x53ac90(0x1f7)})[_0x53ac90(0x213)]();}export function stopSpinner(_0x389ca0,_0x132877,_0x427e1a){const _0x486d23=a87_0x5dc1;_0x427e1a?_0x389ca0[_0x486d23(0x1fa)](_0x132877):_0x389ca0['fail'](_0x132877);}function a87_0x5dc1(_0x43bcab,_0x3c8d1a){_0x43bcab=_0x43bcab-0x1eb;const _0x15c605=a87_0x15c6();let _0x5dc15b=_0x15c605[_0x43bcab];return _0x5dc15b;}export async function askConfirm(_0x5abf76){return onCancel(confirm({'message':_0x5abf76,'theme':{'prefix':''}}));}export async function askJsUrl(_0xd57630){const _0x32e0a7=a87_0x5dc1;while(!![]){const _0x533947=await onCancel(input({'message':_0x32e0a7(0x21c),'default':_0xd57630,'theme':{'prefix':''}}));if(_0x533947[_0x32e0a7(0x216)]()==='')throw CliErrors[_0x32e0a7(0x207)]('Cancelled.');if(!/^https:\/\/.+\.js(\?.*)?$/[_0x32e0a7(0x1ff)](_0x533947[_0x32e0a7(0x216)]())){console[_0x32e0a7(0x1fd)](a87_0x28dd4c[_0x32e0a7(0x1f6)](_0x32e0a7(0x1f9)));continue;}const _0x66ddd4=startSpinner(_0x32e0a7(0x219));try{const _0x454125=await isUrlReachable(_0x533947[_0x32e0a7(0x216)]());stopSpinner(_0x66ddd4,'JS\x20URL\x20checked',_0x454125);if(!_0x454125){console[_0x32e0a7(0x1fd)](a87_0x28dd4c['red'](_0x32e0a7(0x200)));continue;}return _0x533947[_0x32e0a7(0x216)]();}catch(_0xf66120){stopSpinner(_0x66ddd4,_0x32e0a7(0x20d),![]);throw _0xf66120;}}}export async function askCssUrl(_0x45b850){const _0x46a102=a87_0x5dc1;while(!![]){const _0x2e7148=await onCancel(input({'message':_0x46a102(0x1f5),'default':_0x45b850,'theme':{'prefix':''}}));if(_0x2e7148[_0x46a102(0x216)]()==='')throw CliErrors['cancelled'](_0x46a102(0x206));if(!/^https:\/\/.+\.css(\?.*)?$/['test'](_0x2e7148[_0x46a102(0x216)]())){console[_0x46a102(0x1fd)](a87_0x28dd4c[_0x46a102(0x1f6)](_0x46a102(0x20b)));continue;}const _0x15fbd2=startSpinner(_0x46a102(0x20f));try{const _0x4dc19f=await isUrlReachable(_0x2e7148['trim']());stopSpinner(_0x15fbd2,_0x46a102(0x1ec),_0x4dc19f);if(!_0x4dc19f){console[_0x46a102(0x1fd)](a87_0x28dd4c['red'](_0x46a102(0x209)));continue;}return _0x2e7148[_0x46a102(0x216)]();}catch(_0x44ff09){stopSpinner(_0x15fbd2,_0x46a102(0x205),![]);throw _0x44ff09;}}}export async function selectPages(_0x34afde,_0x1e44ea,_0x270e52){const _0x35d21c=a87_0x5dc1,_0x56c565=_0x34afde[_0x35d21c(0x214)](_0x188269=>({'name':_0x188269['label']+'\x20\x20'+(_0x1e44ea['has'](_0x188269[_0x35d21c(0x1fc)])?a87_0x28dd4c[_0x35d21c(0x1f4)](_0x35d21c(0x203)):a87_0x28dd4c[_0x35d21c(0x1f3)](_0x35d21c(0x218))),'value':_0x188269[_0x35d21c(0x204)],'checked':_0x270e52?_0x270e52['includes'](_0x188269[_0x35d21c(0x204)]):!_0x1e44ea[_0x35d21c(0x20a)](_0x188269[_0x35d21c(0x1fc)])}));if(_0x56c565[_0x35d21c(0x1f8)]===0x0)throw new Error(_0x35d21c(0x1ee));const _0x494af9=await onCancel(checkbox({'message':_0x35d21c(0x1f2),'choices':_0x56c565,'loop':![],'theme':{'prefix':''}}));if(_0x494af9[_0x35d21c(0x1f8)]===0x0)throw new Error(_0x35d21c(0x215));return _0x34afde[_0x35d21c(0x212)](_0x1d848e=>_0x494af9[_0x35d21c(0x21d)](_0x1d848e[_0x35d21c(0x204)]));}export function isInteractive(){const _0x193c56=a87_0x5dc1;return process['stdin'][_0x193c56(0x210)]===!![];}export function requireInteractive(){const _0x2942a3=a87_0x5dc1;if(!isInteractive())throw new Error('This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20'+_0x2942a3(0x1eb));}
@@ -1 +1 @@
1
- function a88_0x3787(){const _0x16a88f=['endsWith','isDirectory','3UqideG','16464972KPVeCL','utf-8','26iXfgKy','153908AEFNLy','11217897hUDifq','8PeGAoV','slice','match','replaceAll','10iBlfOB','src/pages','2eJGxza','index.tsx','486QLjTgJ','push','2505041hXfJGX','6292506HFjjiV','concat','replace','98225PuGNkB','forEach','1026647BFyUqI'];a88_0x3787=function(){return _0x16a88f;};return a88_0x3787();}function a88_0x4b38(_0x4d98ad,_0x1bcc7b){_0x4d98ad=_0x4d98ad-0xbf;const _0x378745=a88_0x3787();let _0x4b3840=_0x378745[_0x4d98ad];return _0x4b3840;}const a88_0x3319ce=a88_0x4b38;(function(_0x5f5596,_0x150b34){const _0x5f2700=a88_0x4b38,_0x2a2768=_0x5f5596();while(!![]){try{const _0x5d3fdb=parseInt(_0x5f2700(0xd6))/0x1*(parseInt(_0x5f2700(0xcc))/0x2)+parseInt(_0x5f2700(0xc0))/0x3*(parseInt(_0x5f2700(0xc4))/0x4)+parseInt(_0x5f2700(0xd4))/0x5*(parseInt(_0x5f2700(0xce))/0x6)+parseInt(_0x5f2700(0xd0))/0x7+-parseInt(_0x5f2700(0xc6))/0x8*(-parseInt(_0x5f2700(0xc5))/0x9)+-parseInt(_0x5f2700(0xca))/0xa*(parseInt(_0x5f2700(0xd1))/0xb)+parseInt(_0x5f2700(0xc1))/0xc*(-parseInt(_0x5f2700(0xc3))/0xd);if(_0x5d3fdb===_0x150b34)break;else _0x2a2768['push'](_0x2a2768['shift']());}catch(_0x46e6ac){_0x2a2768['push'](_0x2a2768['shift']());}}}(a88_0x3787,0xe6949));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process['cwd'](),a88_0x3319ce(0xcb));export function extractTitleFromComment(_0x21cf37){const _0x239041=a88_0x3319ce;try{const _0x4978a4=readFileSync(_0x21cf37,_0x239041(0xc2)),_0x1ec7e4=_0x4978a4[_0x239041(0xc8)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x1ec7e4&&_0x1ec7e4[0x1]){const _0xf243d9=_0x1ec7e4[0x1],_0x501ff2=_0xf243d9['match'](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x501ff2&&_0x501ff2[0x1])return _0x501ff2[0x1]['trim']();}let _0x8e64f8=null;const _0x13c3b2=_0x4978a4[_0x239041(0xc8)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x13c3b2&&_0x13c3b2[0x1]&&(_0x8e64f8=_0x13c3b2[0x1]);if(!_0x8e64f8){const _0x11ad16=_0x4978a4['match'](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x11ad16&&_0x11ad16[0x1]&&(_0x8e64f8=_0x11ad16[0x1]);}if(_0x8e64f8){const _0x2bf405=new RegExp('\x5cb'+_0x8e64f8+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0x3c33e7=_0x4978a4[_0x239041(0xc8)](_0x2bf405);if(_0x3c33e7&&_0x3c33e7[0x1])return _0x3c33e7[0x1];return _0x8e64f8;}return null;}catch(_0x19ba1e){return null;}}export function getLocalPages(_0x4010af=pagesDir,_0x4ade27=pagesDir){const _0xe7fe9c=a88_0x3319ce;let _0xb8f478=[];const _0x10d9f4=readdirSync(_0x4010af);return _0x10d9f4[_0xe7fe9c(0xd5)](_0x30acfd=>{const _0x1f2d78=_0xe7fe9c,_0x2c0a7e=join(_0x4010af,_0x30acfd),_0x311fcb=statSync(_0x2c0a7e);if(_0x311fcb&&_0x311fcb[_0x1f2d78(0xbf)]())_0xb8f478=_0xb8f478[_0x1f2d78(0xd2)](getLocalPages(_0x2c0a7e,_0x4ade27));else{if(_0x30acfd[_0x1f2d78(0xd7)]('.tsx')){let _0x46993a=relative(_0x4ade27,_0x2c0a7e);_0x46993a[_0x1f2d78(0xd7)](_0x1f2d78(0xcd))?_0x46993a=_0x46993a[_0x1f2d78(0xd3)](/index\.tsx$/,''):_0x46993a=_0x46993a[_0x1f2d78(0xd3)](/\.tsx$/,'');_0x46993a[_0x1f2d78(0xd7)](sep)&&(_0x46993a=_0x46993a[_0x1f2d78(0xc7)](0x0,-0x1));const _0x4c59a4=_0x46993a['split'](sep)['join']('/'),_0x517cb1=extractTitleFromComment(_0x2c0a7e),_0x23e493=_0x517cb1||_0x4c59a4;_0xb8f478[_0x1f2d78(0xcf)]({'path':_0x4c59a4[_0x1f2d78(0xc9)]('$',':'),'label':_0x23e493});}}}),_0xb8f478['filter'](_0x7cbcb1=>_0x7cbcb1['path']!=='');}
1
+ function a88_0x2026(_0x5e9da9,_0x3de289){_0x5e9da9=_0x5e9da9-0x122;const _0x36e634=a88_0x36e6();let _0x202630=_0x36e634[_0x5e9da9];return _0x202630;}const a88_0x567e2d=a88_0x2026;(function(_0xfca5f2,_0x4bb077){const _0x4ce152=a88_0x2026,_0x232bc0=_0xfca5f2();while(!![]){try{const _0x313642=-parseInt(_0x4ce152(0x13a))/0x1+-parseInt(_0x4ce152(0x122))/0x2+parseInt(_0x4ce152(0x129))/0x3+parseInt(_0x4ce152(0x124))/0x4+-parseInt(_0x4ce152(0x133))/0x5+parseInt(_0x4ce152(0x139))/0x6*(-parseInt(_0x4ce152(0x130))/0x7)+parseInt(_0x4ce152(0x131))/0x8;if(_0x313642===_0x4bb077)break;else _0x232bc0['push'](_0x232bc0['shift']());}catch(_0xd1dbfa){_0x232bc0['push'](_0x232bc0['shift']());}}}(a88_0x36e6,0x7eb56));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a88_0x567e2d(0x135)](),a88_0x567e2d(0x12c));function a88_0x36e6(){const _0x4715af=['12482720pVpaGR','filter','2619845exXQJB','utf-8','cwd','replace','index.tsx','concat','379914MqXFOY','100865XGhiER','463234jrlrkH','isDirectory','2211272qfuvdJ','endsWith','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','split','replaceAll','256314zNOyGB','slice','match','src/pages','join','trim','push','91vHuTDq'];a88_0x36e6=function(){return _0x4715af;};return a88_0x36e6();}export function extractTitleFromComment(_0x51a336){const _0x24fb9f=a88_0x567e2d;try{const _0x5f06a6=readFileSync(_0x51a336,_0x24fb9f(0x134)),_0x50f7ca=_0x5f06a6['match'](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x50f7ca&&_0x50f7ca[0x1]){const _0x549784=_0x50f7ca[0x1],_0x5e4bc9=_0x549784[_0x24fb9f(0x12b)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x5e4bc9&&_0x5e4bc9[0x1])return _0x5e4bc9[0x1][_0x24fb9f(0x12e)]();}let _0x8abddd=null;const _0x56478a=_0x5f06a6[_0x24fb9f(0x12b)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x56478a&&_0x56478a[0x1]&&(_0x8abddd=_0x56478a[0x1]);if(!_0x8abddd){const _0x223134=_0x5f06a6[_0x24fb9f(0x12b)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x223134&&_0x223134[0x1]&&(_0x8abddd=_0x223134[0x1]);}if(_0x8abddd){const _0x326afb=new RegExp('\x5cb'+_0x8abddd+_0x24fb9f(0x126)),_0x588381=_0x5f06a6[_0x24fb9f(0x12b)](_0x326afb);if(_0x588381&&_0x588381[0x1])return _0x588381[0x1];return _0x8abddd;}return null;}catch(_0xa87109){return null;}}export function getLocalPages(_0x2ee1db=pagesDir,_0x103d49=pagesDir){const _0x117be5=a88_0x567e2d;let _0xc1ec03=[];const _0xf8730e=readdirSync(_0x2ee1db);return _0xf8730e['forEach'](_0x3f66eb=>{const _0xdca539=a88_0x2026,_0x31cafc=join(_0x2ee1db,_0x3f66eb),_0x1de35b=statSync(_0x31cafc);if(_0x1de35b&&_0x1de35b[_0xdca539(0x123)]())_0xc1ec03=_0xc1ec03[_0xdca539(0x138)](getLocalPages(_0x31cafc,_0x103d49));else{if(_0x3f66eb[_0xdca539(0x125)]('.tsx')){let _0x573ad3=relative(_0x103d49,_0x31cafc);_0x573ad3[_0xdca539(0x125)](_0xdca539(0x137))?_0x573ad3=_0x573ad3['replace'](/index\.tsx$/,''):_0x573ad3=_0x573ad3[_0xdca539(0x136)](/\.tsx$/,'');_0x573ad3[_0xdca539(0x125)](sep)&&(_0x573ad3=_0x573ad3[_0xdca539(0x12a)](0x0,-0x1));const _0x247579=_0x573ad3[_0xdca539(0x127)](sep)[_0xdca539(0x12d)]('/'),_0x3d0428=extractTitleFromComment(_0x31cafc),_0x2a5003=_0x3d0428||_0x247579;_0xc1ec03[_0xdca539(0x12f)]({'path':_0x247579[_0xdca539(0x128)]('$',':'),'label':_0x2a5003});}}}),_0xc1ec03[_0x117be5(0x132)](_0x63c098=>_0x63c098['path']!=='');}
@@ -1 +1 @@
1
- (function(_0x3fec6f,_0x49c0d8){const _0x259ac7=a89_0x350e,_0x50fa7e=_0x3fec6f();while(!![]){try{const _0x232d76=parseInt(_0x259ac7(0x18a))/0x1*(-parseInt(_0x259ac7(0x199))/0x2)+-parseInt(_0x259ac7(0x188))/0x3+-parseInt(_0x259ac7(0x184))/0x4+-parseInt(_0x259ac7(0x193))/0x5*(parseInt(_0x259ac7(0x196))/0x6)+parseInt(_0x259ac7(0x185))/0x7+-parseInt(_0x259ac7(0x18e))/0x8+parseInt(_0x259ac7(0x19d))/0x9*(parseInt(_0x259ac7(0x1a0))/0xa);if(_0x232d76===_0x49c0d8)break;else _0x50fa7e['push'](_0x50fa7e['shift']());}catch(_0x39ac34){_0x50fa7e['push'](_0x50fa7e['shift']());}}}(a89_0x5de2,0x58e01));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(_0x1dee0f){const _0xc473be=a89_0x350e,_0x1aa66d=[];return!isValidJsHttpsUrl(_0x1dee0f)&&_0x1aa66d['push']('JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'),{'ok':_0x1aa66d[_0xc473be(0x198)]===0x0,'errors':_0x1aa66d};}export function validateCssUrl(_0x305734){const _0x339542=a89_0x350e,_0x38443b=[];return!isValidCssHttpsUrl(_0x305734)&&_0x38443b[_0x339542(0x197)](_0x339542(0x18b)),{'ok':_0x38443b[_0x339542(0x198)]===0x0,'errors':_0x38443b};}export async function validateJsUrlReachable(_0x42dd08){const _0x55c820=a89_0x350e,_0x27fd1f=validateJsUrl(_0x42dd08);if(!_0x27fd1f['ok'])return _0x27fd1f;const _0x3022ce=await isUrlReachable(_0x42dd08);if(!_0x3022ce)_0x27fd1f[_0x55c820(0x19c)][_0x55c820(0x197)](_0x55c820(0x191));return{'ok':_0x27fd1f[_0x55c820(0x19c)]['length']===0x0,'errors':_0x27fd1f[_0x55c820(0x19c)]};}export async function validateCssUrlReachable(_0x96da0a){const _0x101be8=a89_0x350e,_0x73b28b=validateCssUrl(_0x96da0a);if(!_0x73b28b['ok'])return _0x73b28b;const _0x2ce91b=await isUrlReachable(_0x96da0a);if(!_0x2ce91b)_0x73b28b[_0x101be8(0x19c)][_0x101be8(0x197)](_0x101be8(0x19a));return{'ok':_0x73b28b[_0x101be8(0x19c)]['length']===0x0,'errors':_0x73b28b['errors']};}export function buildCompareRows(_0x2403af,_0x43bcc0){const _0x3bab41=a89_0x350e;return _0x2403af[_0x3bab41(0x190)](_0x18bbea=>({'label':_0x18bbea['label'],'path':_0x18bbea[_0x3bab41(0x18c)],'local':!![],'online':_0x43bcc0[_0x3bab41(0x18d)](_0x18bbea[_0x3bab41(0x18c)])}));}function a89_0x350e(_0x22fae8,_0x45d201){_0x22fae8=_0x22fae8-0x184;const _0x5de269=a89_0x5de2();let _0x350ef4=_0x5de269[_0x22fae8];return _0x350ef4;}function a89_0x5de2(){const _0x279d4f=['840801YfEOVI','value','7030OwAfwe','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','path','has','1725256KUcPAP','status','map','JS\x20URL\x20is\x20unreachable','extend','5LmjqDP','No\x20local\x20pages\x20matched\x20labels:\x20','rejected','1122612lWAyhS','push','length','142yzxrPw','CSS\x20URL\x20is\x20unreachable','find','errors','1125fNSJGv','label','resources','90230WrKuqS','898984fLIbYq','4501420hZjVHz','trim','filter'];a89_0x5de2=function(){return _0x279d4f;};return a89_0x5de2();}export function filterNewPages(_0x13deb9,_0x325713,_0xa8a001){const _0xda813f=a89_0x350e;if(_0xa8a001&&_0xa8a001[_0xda813f(0x198)]>0x0){const _0x40b0ab=new Set(_0xa8a001['map'](_0x138e93=>_0x138e93['trim']())),_0x3f507a=_0x13deb9['filter'](_0xb9367e=>_0x40b0ab['has'](_0xb9367e[_0xda813f(0x19e)]));if(_0x3f507a['length']===0x0)throw new Error(_0xda813f(0x194)+[..._0x40b0ab]['join'](',\x20'));return _0x3f507a;}return _0x13deb9[_0xda813f(0x187)](_0x547fe8=>!_0x325713[_0xda813f(0x18d)](_0x547fe8[_0xda813f(0x18c)]));}export function filterPagesByLabels(_0x52f5e6,_0x3515c6){const _0x1d87da=a89_0x350e,_0xdd75c1=[],_0x2cfbbe=[];for(const _0x3c3927 of _0x3515c6){const _0x3c288c=_0x3c3927[_0x1d87da(0x186)](),_0x47aa78=_0x52f5e6[_0x1d87da(0x19b)](_0x2324ac=>_0x2324ac[_0x1d87da(0x19e)]===_0x3c288c);if(_0x47aa78)_0xdd75c1[_0x1d87da(0x197)](_0x47aa78);else _0x2cfbbe[_0x1d87da(0x197)](_0x3c3927);}return{'matched':_0xdd75c1,'unmatched':_0x2cfbbe};}export async function doCreateMenus(_0x3ff074,_0x51ada6,_0x4a0ffd,_0x1a27a1){const _0x523f47=a89_0x350e,_0x5c2149=await createMenus(_0x3ff074,_0x51ada6,_0x4a0ffd,_0x1a27a1);return{'created':_0x5c2149['length'],'failed':0x0,'labels':_0x4a0ffd[_0x523f47(0x190)](_0x4d6aa4=>_0x4d6aa4[_0x523f47(0x19e)]),'menus':_0x5c2149};}export function filterMenusWithResources(_0x1de37e){const _0x2deb69=a89_0x350e;return _0x1de37e[_0x2deb69(0x187)](_0x423cad=>_0x423cad[_0x2deb69(0x19f)]['length']>0x0);}export async function doUpdateCdnUrls(_0x48d052,_0x53a064,_0x3ee38a,_0x14e2a8){const _0x348d1a=a89_0x350e,_0x588dc2=_0x3ee38a['filter'](_0x49747f=>_0x49747f['resources'][_0x348d1a(0x198)]>0x0),_0x5a487e=await Promise['allSettled'](_0x588dc2[_0x348d1a(0x190)](_0x4f7a56=>updateMenuCdnUrl(_0x48d052,_0x53a064,{'id':_0x4f7a56['id'],'label':_0x4f7a56[_0x348d1a(0x19e)],'path':_0x4f7a56[_0x348d1a(0x18c)],'resources':_0x14e2a8,'extend':_0x4f7a56[_0x348d1a(0x192)]??null}))),_0x474034=_0x5a487e[_0x348d1a(0x187)](_0x50a0e1=>_0x50a0e1['status']==='fulfilled')['map'](_0x5eb5af=>_0x5eb5af[_0x348d1a(0x189)]),_0x1c4802=_0x5a487e[_0x348d1a(0x187)](_0x241cd7=>_0x241cd7[_0x348d1a(0x18f)]===_0x348d1a(0x195))[_0x348d1a(0x198)];return{'updated':_0x474034['length'],'failed':_0x1c4802,'menus':_0x474034};}export async function fetchMenuData(_0x56f71e,_0x24ab27){const _0xcc1b05=a89_0x350e,_0x289ffe=getLocalPages(),_0x50c950=await getOnlineMenuList(_0x56f71e,_0x24ab27),_0x587165=new Set(_0x50c950[_0xcc1b05(0x190)](_0x2824a1=>_0x2824a1['path']));return{'localPages':_0x289ffe,'onlineMenuList':_0x50c950,'onlinePaths':_0x587165};}export async function fetchOnlineMenuList(_0x40c09,_0x27be31){return getOnlineMenuList(_0x40c09,_0x27be31);}
1
+ (function(_0x57e093,_0x201575){const _0x597383=a89_0x15dc,_0xb64b9=_0x57e093();while(!![]){try{const _0x4991ef=-parseInt(_0x597383(0xd6))/0x1+-parseInt(_0x597383(0xdb))/0x2*(parseInt(_0x597383(0xd9))/0x3)+-parseInt(_0x597383(0xe1))/0x4+parseInt(_0x597383(0xdc))/0x5+parseInt(_0x597383(0xdf))/0x6+parseInt(_0x597383(0xe3))/0x7*(-parseInt(_0x597383(0xe2))/0x8)+-parseInt(_0x597383(0xdd))/0x9*(-parseInt(_0x597383(0xe5))/0xa);if(_0x4991ef===_0x201575)break;else _0xb64b9['push'](_0xb64b9['shift']());}catch(_0x51a2bb){_0xb64b9['push'](_0xb64b9['shift']());}}}(a89_0x3c39,0x4642d));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';function a89_0x3c39(){const _0x105bb1=['label','1476976UdrRPv','16prHMdC','876211OECqjS','map','4310LYwWqw','filter','path','value','resources','extend','status','push','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','rejected','has','join','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','No\x20local\x20pages\x20matched\x20labels:\x20','allSettled','find','trim','length','512551tHIzbu','errors','fulfilled','320661eKzpME','JS\x20URL\x20is\x20unreachable','4igAakP','2092545nYyXVh','23733ZoaCFa','CSS\x20URL\x20is\x20unreachable','471888ILIcxU'];a89_0x3c39=function(){return _0x105bb1;};return a89_0x3c39();}import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';function a89_0x15dc(_0x39e982,_0x2e735a){_0x39e982=_0x39e982-0xd3;const _0x3c39cd=a89_0x3c39();let _0x15dc3d=_0x3c39cd[_0x39e982];return _0x15dc3d;}export function validateJsUrl(_0x590ae4){const _0x2481fd=a89_0x15dc,_0x1d777e=[];return!isValidJsHttpsUrl(_0x590ae4)&&_0x1d777e[_0x2481fd(0xec)](_0x2481fd(0xf1)),{'ok':_0x1d777e[_0x2481fd(0xd5)]===0x0,'errors':_0x1d777e};}export function validateCssUrl(_0x46dc5a){const _0x385c3c=a89_0x15dc,_0x472eb6=[];return!isValidCssHttpsUrl(_0x46dc5a)&&_0x472eb6['push'](_0x385c3c(0xed)),{'ok':_0x472eb6['length']===0x0,'errors':_0x472eb6};}export async function validateJsUrlReachable(_0x41de18){const _0x3f9bfc=a89_0x15dc,_0x49ae1e=validateJsUrl(_0x41de18);if(!_0x49ae1e['ok'])return _0x49ae1e;const _0x41261a=await isUrlReachable(_0x41de18);if(!_0x41261a)_0x49ae1e['errors']['push'](_0x3f9bfc(0xda));return{'ok':_0x49ae1e['errors'][_0x3f9bfc(0xd5)]===0x0,'errors':_0x49ae1e[_0x3f9bfc(0xd7)]};}export async function validateCssUrlReachable(_0x3bd263){const _0x30f25d=a89_0x15dc,_0x2da2fd=validateCssUrl(_0x3bd263);if(!_0x2da2fd['ok'])return _0x2da2fd;const _0x5148ea=await isUrlReachable(_0x3bd263);if(!_0x5148ea)_0x2da2fd[_0x30f25d(0xd7)][_0x30f25d(0xec)](_0x30f25d(0xde));return{'ok':_0x2da2fd[_0x30f25d(0xd7)][_0x30f25d(0xd5)]===0x0,'errors':_0x2da2fd[_0x30f25d(0xd7)]};}export function buildCompareRows(_0x40df2b,_0x491260){const _0x31d26b=a89_0x15dc;return _0x40df2b[_0x31d26b(0xe4)](_0x16f9ea=>({'label':_0x16f9ea[_0x31d26b(0xe0)],'path':_0x16f9ea[_0x31d26b(0xe7)],'local':!![],'online':_0x491260['has'](_0x16f9ea[_0x31d26b(0xe7)])}));}export function filterNewPages(_0x579412,_0x4972a0,_0x2bb3e3){const _0x329d00=a89_0x15dc;if(_0x2bb3e3&&_0x2bb3e3[_0x329d00(0xd5)]>0x0){const _0x2da682=new Set(_0x2bb3e3[_0x329d00(0xe4)](_0x16be8f=>_0x16be8f[_0x329d00(0xd4)]())),_0x382cfd=_0x579412[_0x329d00(0xe6)](_0x5b3706=>_0x2da682[_0x329d00(0xef)](_0x5b3706['label']));if(_0x382cfd[_0x329d00(0xd5)]===0x0)throw new Error(_0x329d00(0xf2)+[..._0x2da682][_0x329d00(0xf0)](',\x20'));return _0x382cfd;}return _0x579412[_0x329d00(0xe6)](_0x6eeec5=>!_0x4972a0[_0x329d00(0xef)](_0x6eeec5[_0x329d00(0xe7)]));}export function filterPagesByLabels(_0x272217,_0x477b32){const _0x3362f5=a89_0x15dc,_0x3e90e8=[],_0x42c8fb=[];for(const _0x134701 of _0x477b32){const _0x1e75d0=_0x134701['trim'](),_0x5c14c1=_0x272217[_0x3362f5(0xd3)](_0x5f4d3d=>_0x5f4d3d[_0x3362f5(0xe0)]===_0x1e75d0);if(_0x5c14c1)_0x3e90e8[_0x3362f5(0xec)](_0x5c14c1);else _0x42c8fb['push'](_0x134701);}return{'matched':_0x3e90e8,'unmatched':_0x42c8fb};}export async function doCreateMenus(_0x5e2ca1,_0x3c61e0,_0x3b2705,_0x11d79b){const _0x55defb=a89_0x15dc,_0x4ec6e4=await createMenus(_0x5e2ca1,_0x3c61e0,_0x3b2705,_0x11d79b);return{'created':_0x4ec6e4['length'],'failed':0x0,'labels':_0x3b2705[_0x55defb(0xe4)](_0x15cef0=>_0x15cef0['label']),'menus':_0x4ec6e4};}export function filterMenusWithResources(_0x4b6eab){const _0x485623=a89_0x15dc;return _0x4b6eab[_0x485623(0xe6)](_0x5d56ca=>_0x5d56ca['resources'][_0x485623(0xd5)]>0x0);}export async function doUpdateCdnUrls(_0x31ca0a,_0x75cace,_0x524fc1,_0x168ac4){const _0x2abfcd=a89_0x15dc,_0x3fb6a7=_0x524fc1['filter'](_0x28b805=>_0x28b805[_0x2abfcd(0xe9)]['length']>0x0),_0x487bb3=await Promise[_0x2abfcd(0xf3)](_0x3fb6a7[_0x2abfcd(0xe4)](_0x235c84=>updateMenuCdnUrl(_0x31ca0a,_0x75cace,{'id':_0x235c84['id'],'label':_0x235c84[_0x2abfcd(0xe0)],'path':_0x235c84['path'],'resources':_0x168ac4,'extend':_0x235c84[_0x2abfcd(0xea)]??null}))),_0x5bc300=_0x487bb3[_0x2abfcd(0xe6)](_0xc8613=>_0xc8613[_0x2abfcd(0xeb)]===_0x2abfcd(0xd8))[_0x2abfcd(0xe4)](_0x2635f0=>_0x2635f0[_0x2abfcd(0xe8)]),_0x13231e=_0x487bb3[_0x2abfcd(0xe6)](_0x2b8fa4=>_0x2b8fa4['status']===_0x2abfcd(0xee))[_0x2abfcd(0xd5)];return{'updated':_0x5bc300[_0x2abfcd(0xd5)],'failed':_0x13231e,'menus':_0x5bc300};}export async function fetchMenuData(_0x26e34a,_0x1958f1){const _0x594895=getLocalPages(),_0x23ad2c=await getOnlineMenuList(_0x26e34a,_0x1958f1),_0x9629f7=new Set(_0x23ad2c['map'](_0x1a11fa=>_0x1a11fa['path']));return{'localPages':_0x594895,'onlineMenuList':_0x23ad2c,'onlinePaths':_0x9629f7};}export async function fetchOnlineMenuList(_0x3d94db,_0x3f828e){return getOnlineMenuList(_0x3d94db,_0x3f828e);}
@@ -1 +1 @@
1
- (function(_0x4e6cce,_0x1011c3){const _0x19d3bc=a90_0x4927,_0x4937c0=_0x4e6cce();while(!![]){try{const _0x12f329=-parseInt(_0x19d3bc(0xe1))/0x1*(parseInt(_0x19d3bc(0xe3))/0x2)+-parseInt(_0x19d3bc(0xda))/0x3*(parseInt(_0x19d3bc(0xd6))/0x4)+parseInt(_0x19d3bc(0xca))/0x5*(-parseInt(_0x19d3bc(0xc9))/0x6)+parseInt(_0x19d3bc(0xef))/0x7+parseInt(_0x19d3bc(0xeb))/0x8*(parseInt(_0x19d3bc(0xf8))/0x9)+parseInt(_0x19d3bc(0xf2))/0xa*(-parseInt(_0x19d3bc(0xe5))/0xb)+parseInt(_0x19d3bc(0xcc))/0xc;if(_0x12f329===_0x1011c3)break;else _0x4937c0['push'](_0x4937c0['shift']());}catch(_0x3c5a3a){_0x4937c0['push'](_0x4937c0['shift']());}}}(a90_0x5ccc,0x42c4b));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(_0x732de7,_0x236271){const _0x5877a1=a90_0x4927,_0x52a0e2=getEnv();logger[_0x5877a1(0xea)](_0x5877a1(0xee),isProduction(_0x52a0e2)?_0x5877a1(0xe2)+_0x732de7+')':_0x5877a1(0xdb)+_0x732de7+')');const _0x509758=await platformFetch(getApiDomain()+_0x5877a1(0xf1)+_0x732de7,{'cookie':_0x236271,'label':'Fetch\x20menu\x20list'});if(!_0x509758)return logger[_0x5877a1(0xea)](_0x5877a1(0xee),_0x5877a1(0xed)),[];return logger[_0x5877a1(0xea)](_0x5877a1(0xee),_0x5877a1(0xd9)+_0x509758['length']+_0x5877a1(0xd2)),_0x509758[_0x5877a1(0xdc)](flattenMenuItem)[_0x5877a1(0xcd)]();}function a90_0x4927(_0x43bfd9,_0x3448df){_0x43bfd9=_0x43bfd9-0xc8;const _0x5ccc3b=a90_0x5ccc();let _0x49275d=_0x5ccc3b[_0x43bfd9];return _0x49275d;}function flattenMenuItem(_0x5770c1){const _0x5bce85=a90_0x4927;let _0x57d39d=[];try{const _0x236944=_0x5770c1[_0x5bce85(0xd8)]?.[_0x5bce85(0xd4)];if(typeof _0x236944===_0x5bce85(0xe9)){const _0x254e00=JSON[_0x5bce85(0xde)](_0x236944);if(Array[_0x5bce85(0xe6)](_0x254e00))_0x57d39d=_0x254e00[_0x5bce85(0xdc)](String);}else Array[_0x5bce85(0xe6)](_0x236944)&&(_0x57d39d=_0x236944['map'](String));}catch{}const _0x355468=[{'id':_0x5770c1['id'],'path':_0x5770c1['path'],'label':_0x5770c1[_0x5bce85(0xec)],'resources':_0x57d39d,'extend':_0x5770c1['extend']??null}];if(_0x5770c1[_0x5bce85(0xd5)]&&_0x5770c1['children']['length']>0x0)for(const _0x264cae of _0x5770c1['children']){_0x355468[_0x5bce85(0xcb)](...flattenMenuItem(_0x264cae));}return _0x355468;}export async function createMenu(_0x4f06c7,_0x4c147d,_0x155a45){const _0x1b8c84=a90_0x4927;logger[_0x1b8c84(0xea)](_0x1b8c84(0xf0),'Creating\x20menu:\x20'+_0x155a45['label']+'\x20('+_0x155a45[_0x1b8c84(0xd7)]+')');const _0x436cce={'appCode':_0x4f06c7,'type':_0x1b8c84(0xce),'sort':0x0,'extend':{'loadScriptMode':_0x1b8c84(0xf4),'resources':_0x155a45[_0x1b8c84(0xd4)]?JSON[_0x1b8c84(0xdf)](_0x155a45[_0x1b8c84(0xd4)]):undefined},..._0x155a45},_0x347118=await platformFetch(getApiDomain()+_0x1b8c84(0xf5),{'method':_0x1b8c84(0xd0),'body':_0x436cce,'cookie':_0x4c147d,'label':_0x1b8c84(0xe7)+_0x155a45[_0x1b8c84(0xec)]+'\x22'});return logger[_0x1b8c84(0xea)]('create-menu',_0x1b8c84(0xf7)+_0x155a45[_0x1b8c84(0xec)]),_0x347118;}function a90_0x5ccc(){const _0x46b8dc=['isArray','Create\x20menu\x20\x22','Start\x20batch\x20menu\x20creation,\x20total\x20','string','info','908104cNwnMa','label','Server\x20returned\x20empty\x20menu\x20list','get-online-menu-list','167272VjrwmO','create-menu','/smartapi/menu/find?appCode=','920GhRKMo','length','import','/smartapi/menu/create','update-menu-cdn-url','Menu\x20created\x20successfully:\x20','9ZSJfnG','Menu\x20assets\x20synced:\x20','486PZlQKy','14205qKqKCY','push','19779888CFycLA','flat','procode','/smartapi/menu/update','POST','all','\x20online\x20menus\x20successfully','create-menus','resources','children','1699636PdATdl','path','extend','Fetched\x20','3CwqnUY','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','map','Batch\x20menu\x20creation\x20completed,\x20total\x20','parse','stringify','Updating\x20menu\x20asset\x20links:\x20','54626SWKkyC','Fetching\x20online\x20menu\x20list...\x20(appCode:\x20','20AvEFIO','Update\x20menu\x20assets\x20\x22','37180YGbEbs'];a90_0x5ccc=function(){return _0x46b8dc;};return a90_0x5ccc();}async function createSingleMenu(_0x4fee01,_0x39208d,_0x9e6926,_0x562190){const _0x8bacf7=a90_0x4927,_0x1e8518={'appCode':_0x4fee01,'type':_0x8bacf7(0xce),'sort':0x0,'extend':{'loadScriptMode':_0x8bacf7(0xf4),'resources':_0x562190?JSON[_0x8bacf7(0xdf)](_0x562190):undefined},'label':_0x9e6926[_0x8bacf7(0xec)],'path':_0x9e6926[_0x8bacf7(0xd7)]},_0x3c73e2=await platformFetch(getApiDomain()+_0x8bacf7(0xf5),{'method':_0x8bacf7(0xd0),'body':_0x1e8518,'cookie':_0x39208d,'label':_0x8bacf7(0xe7)+_0x9e6926[_0x8bacf7(0xec)]+'\x22'});return logger['info'](_0x8bacf7(0xf0),'Menu\x20created\x20successfully:\x20'+_0x9e6926[_0x8bacf7(0xec)]),_0x3c73e2;}export async function createMenus(_0x33afbf,_0x210531,_0x3ed22f,_0x41b276){const _0x1120bd=a90_0x4927;logger[_0x1120bd(0xea)](_0x1120bd(0xd3),_0x1120bd(0xe8)+_0x3ed22f['length']);const _0x448a53=await Promise[_0x1120bd(0xd1)](_0x3ed22f[_0x1120bd(0xdc)](_0x104370=>createSingleMenu(_0x33afbf,_0x210531,_0x104370,_0x41b276)));return logger[_0x1120bd(0xea)]('create-menus',_0x1120bd(0xdd)+_0x3ed22f[_0x1120bd(0xf3)]),_0x448a53;}export async function updateMenuCdnUrl(_0x749c81,_0x24e01b,_0x3a8f10){const _0x37279b=a90_0x4927;logger['info']('update-menu-cdn-url',_0x37279b(0xe0)+_0x3a8f10[_0x37279b(0xec)]+'\x20('+_0x3a8f10[_0x37279b(0xd7)]+')');const _0x4c978b={'id':_0x3a8f10['id'],'appCode':_0x749c81,'extend':{..._0x3a8f10[_0x37279b(0xd8)]??{},'loadScriptMode':_0x37279b(0xf4),'resources':_0x3a8f10[_0x37279b(0xd4)]?JSON['stringify'](_0x3a8f10[_0x37279b(0xd4)]):undefined}},_0x35fb83=await platformFetch(getApiDomain()+_0x37279b(0xcf),{'method':_0x37279b(0xd0),'body':_0x4c978b,'cookie':_0x24e01b,'label':_0x37279b(0xe4)+_0x3a8f10[_0x37279b(0xec)]+'\x22'});return logger[_0x37279b(0xea)](_0x37279b(0xf6),_0x37279b(0xc8)+_0x3a8f10['label'],undefined),_0x35fb83;}
1
+ (function(_0x684e05,_0x2acb05){const _0x1d319f=a90_0x545e,_0x1cab0f=_0x684e05();while(!![]){try{const _0x47ecc8=-parseInt(_0x1d319f(0x194))/0x1*(parseInt(_0x1d319f(0x1b4))/0x2)+-parseInt(_0x1d319f(0x18e))/0x3*(-parseInt(_0x1d319f(0x1a2))/0x4)+parseInt(_0x1d319f(0x19b))/0x5*(parseInt(_0x1d319f(0x191))/0x6)+parseInt(_0x1d319f(0x1ac))/0x7+-parseInt(_0x1d319f(0x196))/0x8+-parseInt(_0x1d319f(0x1aa))/0x9+parseInt(_0x1d319f(0x18d))/0xa*(parseInt(_0x1d319f(0x1b1))/0xb);if(_0x47ecc8===_0x2acb05)break;else _0x1cab0f['push'](_0x1cab0f['shift']());}catch(_0x597016){_0x1cab0f['push'](_0x1cab0f['shift']());}}}(a90_0xa830,0x42daf));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(_0x9bba2b,_0x52d71f){const _0x1ffe82=a90_0x545e,_0x9bfbf6=getEnv();logger['info'](_0x1ffe82(0x1ad),isProduction(_0x9bfbf6)?_0x1ffe82(0x19e)+_0x9bba2b+')':_0x1ffe82(0x195)+_0x9bba2b+')');const _0x1bb880=await platformFetch(getApiDomain()+_0x1ffe82(0x1a3)+_0x9bba2b,{'cookie':_0x52d71f,'label':_0x1ffe82(0x19f)});if(!_0x1bb880)return logger[_0x1ffe82(0x197)](_0x1ffe82(0x1ad),_0x1ffe82(0x192)),[];return logger[_0x1ffe82(0x197)](_0x1ffe82(0x1ad),'Fetched\x20'+_0x1bb880[_0x1ffe82(0x199)]+_0x1ffe82(0x193)),_0x1bb880[_0x1ffe82(0x19c)](flattenMenuItem)[_0x1ffe82(0x18c)]();}function flattenMenuItem(_0x545430){const _0x3ceb8a=a90_0x545e;let _0x3082da=[];try{const _0x93366f=_0x545430[_0x3ceb8a(0x18a)]?.[_0x3ceb8a(0x1a1)];if(typeof _0x93366f==='string'){const _0x20d80d=JSON[_0x3ceb8a(0x1ae)](_0x93366f);if(Array[_0x3ceb8a(0x1b0)](_0x20d80d))_0x3082da=_0x20d80d['map'](String);}else Array[_0x3ceb8a(0x1b0)](_0x93366f)&&(_0x3082da=_0x93366f[_0x3ceb8a(0x19c)](String));}catch{}const _0x3b549e=[{'id':_0x545430['id'],'path':_0x545430[_0x3ceb8a(0x1a8)],'label':_0x545430['label'],'resources':_0x3082da,'extend':_0x545430[_0x3ceb8a(0x18a)]??null}];if(_0x545430['children']&&_0x545430[_0x3ceb8a(0x1a7)][_0x3ceb8a(0x199)]>0x0)for(const _0x4fab05 of _0x545430[_0x3ceb8a(0x1a7)]){_0x3b549e['push'](...flattenMenuItem(_0x4fab05));}return _0x3b549e;}export async function createMenu(_0x375627,_0xb4681e,_0xd88f3){const _0x53f8c7=a90_0x545e;logger[_0x53f8c7(0x197)](_0x53f8c7(0x1a6),_0x53f8c7(0x18f)+_0xd88f3[_0x53f8c7(0x198)]+'\x20('+_0xd88f3['path']+')');const _0x26eaf2={'appCode':_0x375627,'type':'procode','sort':0x0,'extend':{'loadScriptMode':_0x53f8c7(0x190),'resources':_0xd88f3['resources']?JSON[_0x53f8c7(0x1af)](_0xd88f3['resources']):undefined},..._0xd88f3},_0x1cb0aa=await platformFetch(getApiDomain()+_0x53f8c7(0x18b),{'method':_0x53f8c7(0x19a),'body':_0x26eaf2,'cookie':_0xb4681e,'label':_0x53f8c7(0x19d)+_0xd88f3[_0x53f8c7(0x198)]+'\x22'});return logger[_0x53f8c7(0x197)](_0x53f8c7(0x1a6),_0x53f8c7(0x1ab)+_0xd88f3[_0x53f8c7(0x198)]),_0x1cb0aa;}function a90_0xa830(){const _0x1813cf=['55CMfmTh','/smartapi/menu/update','create-menus','4hyOdum','all','extend','/smartapi/menu/create','flat','66210sLhEpX','57WtJyLy','Creating\x20menu:\x20','import','578334GhXuHM','Server\x20returned\x20empty\x20menu\x20list','\x20online\x20menus\x20successfully','6016mgMzmZ','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','2298616lbUNqx','info','label','length','POST','10LToboo','map','Create\x20menu\x20\x22','Fetching\x20online\x20menu\x20list...\x20(appCode:\x20','Fetch\x20menu\x20list','update-menu-cdn-url','resources','98632kuONez','/smartapi/menu/find?appCode=','procode','Menu\x20assets\x20synced:\x20','create-menu','children','path','Update\x20menu\x20assets\x20\x22','2085165IORUAP','Menu\x20created\x20successfully:\x20','773486QItTdJ','get-online-menu-list','parse','stringify','isArray'];a90_0xa830=function(){return _0x1813cf;};return a90_0xa830();}async function createSingleMenu(_0x3cdeef,_0x2655a7,_0x2af317,_0x4452fe){const _0x11bce7=a90_0x545e,_0x39b7c5={'appCode':_0x3cdeef,'type':_0x11bce7(0x1a4),'sort':0x0,'extend':{'loadScriptMode':_0x11bce7(0x190),'resources':_0x4452fe?JSON[_0x11bce7(0x1af)](_0x4452fe):undefined},'label':_0x2af317[_0x11bce7(0x198)],'path':_0x2af317[_0x11bce7(0x1a8)]},_0x5d5835=await platformFetch(getApiDomain()+_0x11bce7(0x18b),{'method':_0x11bce7(0x19a),'body':_0x39b7c5,'cookie':_0x2655a7,'label':_0x11bce7(0x19d)+_0x2af317[_0x11bce7(0x198)]+'\x22'});return logger[_0x11bce7(0x197)](_0x11bce7(0x1a6),_0x11bce7(0x1ab)+_0x2af317[_0x11bce7(0x198)]),_0x5d5835;}function a90_0x545e(_0x54fcb1,_0x56ee71){_0x54fcb1=_0x54fcb1-0x18a;const _0xa830ca=a90_0xa830();let _0x545eee=_0xa830ca[_0x54fcb1];return _0x545eee;}export async function createMenus(_0x277733,_0x155497,_0x4ec602,_0x37cd60){const _0x24eb91=a90_0x545e;logger[_0x24eb91(0x197)](_0x24eb91(0x1b3),'Start\x20batch\x20menu\x20creation,\x20total\x20'+_0x4ec602['length']);const _0xc58d0d=await Promise[_0x24eb91(0x1b5)](_0x4ec602['map'](_0x543f86=>createSingleMenu(_0x277733,_0x155497,_0x543f86,_0x37cd60)));return logger[_0x24eb91(0x197)](_0x24eb91(0x1b3),'Batch\x20menu\x20creation\x20completed,\x20total\x20'+_0x4ec602[_0x24eb91(0x199)]),_0xc58d0d;}export async function updateMenuCdnUrl(_0x256ad5,_0x3bb55f,_0x285bf0){const _0x2062a3=a90_0x545e;logger[_0x2062a3(0x197)](_0x2062a3(0x1a0),'Updating\x20menu\x20asset\x20links:\x20'+_0x285bf0[_0x2062a3(0x198)]+'\x20('+_0x285bf0[_0x2062a3(0x1a8)]+')');const _0x33c2a1={'id':_0x285bf0['id'],'appCode':_0x256ad5,'extend':{..._0x285bf0[_0x2062a3(0x18a)]??{},'loadScriptMode':'import','resources':_0x285bf0[_0x2062a3(0x1a1)]?JSON[_0x2062a3(0x1af)](_0x285bf0[_0x2062a3(0x1a1)]):undefined}},_0x22b475=await platformFetch(getApiDomain()+_0x2062a3(0x1b2),{'method':'POST','body':_0x33c2a1,'cookie':_0x3bb55f,'label':_0x2062a3(0x1a9)+_0x285bf0['label']+'\x22'});return logger[_0x2062a3(0x197)](_0x2062a3(0x1a0),_0x2062a3(0x1a5)+_0x285bf0[_0x2062a3(0x198)],undefined),_0x22b475;}