@lovrabet/rabetbase-cli 2.1.7-beta.9 → 2.1.9

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 (196) 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/delete.js +1 -1
  52. package/lib/commands/dataset/detail.js +1 -1
  53. package/lib/commands/dataset/index.js +1 -1
  54. package/lib/commands/dataset/link-create.js +1 -1
  55. package/lib/commands/dataset/link-delete.js +1 -1
  56. package/lib/commands/dataset/link-shared.js +1 -1
  57. package/lib/commands/dataset/link-update.js +1 -1
  58. package/lib/commands/dataset/links.js +1 -1
  59. package/lib/commands/dataset/list.js +1 -1
  60. package/lib/commands/dataset/operations.js +1 -1
  61. package/lib/commands/db/analyze-cancel.js +1 -1
  62. package/lib/commands/db/analyze-start.js +1 -1
  63. package/lib/commands/db/analyze-status.js +1 -1
  64. package/lib/commands/db/create.js +1 -1
  65. package/lib/commands/db/delete.js +1 -1
  66. package/lib/commands/db/detail.js +1 -1
  67. package/lib/commands/db/diff.js +1 -1
  68. package/lib/commands/db/index.js +1 -1
  69. package/lib/commands/db/list.js +1 -1
  70. package/lib/commands/db/shared.js +1 -1
  71. package/lib/commands/db/tables.js +1 -1
  72. package/lib/commands/db/test.js +1 -1
  73. package/lib/commands/db/update.js +1 -1
  74. package/lib/commands/doctor.js +1 -1
  75. package/lib/commands/init/index.js +1 -1
  76. package/lib/commands/issue/index.js +1 -1
  77. package/lib/commands/issue/report.js +1 -1
  78. package/lib/commands/logs/index.js +1 -1
  79. package/lib/commands/menu/index.js +1 -1
  80. package/lib/commands/menu/shared/compare-table.js +1 -1
  81. package/lib/commands/menu/shared/index.js +1 -1
  82. package/lib/commands/menu/shared/inquirer.js +1 -1
  83. package/lib/commands/menu/shared/local-pages.js +1 -1
  84. package/lib/commands/menu/shared/logic.js +1 -1
  85. package/lib/commands/menu/shared/service.js +1 -1
  86. package/lib/commands/menu/shared/sync-core.js +1 -1
  87. package/lib/commands/menu/shared/update-core.js +1 -1
  88. package/lib/commands/menu/shared/valid-url.js +1 -1
  89. package/lib/commands/menu/sync.js +1 -1
  90. package/lib/commands/menu/update.js +1 -1
  91. package/lib/commands/page/generate-start.js +1 -1
  92. package/lib/commands/page/generate-status.js +1 -1
  93. package/lib/commands/page/index.js +1 -1
  94. package/lib/commands/page/pull.js +1 -1
  95. package/lib/commands/page/push.js +1 -1
  96. package/lib/commands/page/shared.js +1 -1
  97. package/lib/commands/page/standard-page-status.js +1 -1
  98. package/lib/commands/page/sync.js +1 -1
  99. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  100. package/lib/commands/project/create/format-elapsed.js +1 -1
  101. package/lib/commands/project/create/main.js +1 -1
  102. package/lib/commands/project/create/non-interactive.js +1 -1
  103. package/lib/commands/project/create/project-template-path.js +1 -1
  104. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  105. package/lib/commands/project/create/use-format-code.js +1 -1
  106. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  107. package/lib/commands/project/index.js +1 -1
  108. package/lib/commands/project/init.js +1 -1
  109. package/lib/commands/project/upgrade.js +1 -1
  110. package/lib/commands/registry.js +1 -1
  111. package/lib/commands/run/index.js +1 -1
  112. package/lib/commands/schema.js +1 -1
  113. package/lib/commands/skill/index.js +1 -1
  114. package/lib/commands/sql/create.js +1 -1
  115. package/lib/commands/sql/delete.js +1 -1
  116. package/lib/commands/sql/detail.js +1 -1
  117. package/lib/commands/sql/exec.js +1 -1
  118. package/lib/commands/sql/index.js +1 -1
  119. package/lib/commands/sql/list.js +1 -1
  120. package/lib/commands/sql/pull.js +1 -1
  121. package/lib/commands/sql/push.js +1 -1
  122. package/lib/commands/sql/save.js +1 -1
  123. package/lib/commands/sql/shared.js +1 -1
  124. package/lib/commands/sql/status.js +1 -1
  125. package/lib/commands/sql/validate.js +1 -1
  126. package/lib/config/schema.js +1 -1
  127. package/lib/constant/cdn.js +1 -1
  128. package/lib/constant/cli.js +1 -1
  129. package/lib/constant/defaults.js +1 -1
  130. package/lib/constant/domain.js +1 -1
  131. package/lib/constant/env.js +1 -1
  132. package/lib/constant/output.js +1 -1
  133. package/lib/constant/paths.js +1 -1
  134. package/lib/constant/risk.js +1 -1
  135. package/lib/context.js +1 -1
  136. package/lib/core/alias-resolver.js +1 -1
  137. package/lib/core/api-client.js +1 -1
  138. package/lib/core/bff/config.js +1 -1
  139. package/lib/core/bff/file-system.js +1 -1
  140. package/lib/core/bff/hash.js +1 -1
  141. package/lib/core/bff/lock.js +1 -1
  142. package/lib/core/bff/utils.js +1 -1
  143. package/lib/core/db-resolver.js +1 -1
  144. package/lib/core/page/file-system.js +1 -1
  145. package/lib/core/page/hash.js +1 -1
  146. package/lib/core/page/lock.js +1 -1
  147. package/lib/core/sql-sync/config.js +1 -1
  148. package/lib/core/sql-sync/file-system.js +1 -1
  149. package/lib/core/sql-sync/hash.js +1 -1
  150. package/lib/core/sql-sync/lock.js +1 -1
  151. package/lib/core/sql-sync/utils.js +1 -1
  152. package/lib/core/sql-validator.js +1 -1
  153. package/lib/errors.js +1 -1
  154. package/lib/framework/build-all-flags.js +1 -1
  155. package/lib/framework/flags.js +1 -1
  156. package/lib/framework/help.js +1 -1
  157. package/lib/framework/index.js +1 -1
  158. package/lib/framework/output.js +1 -1
  159. package/lib/framework/response.js +1 -1
  160. package/lib/framework/runner-alias.js +1 -1
  161. package/lib/framework/runner.js +1 -1
  162. package/lib/framework/schema-export.js +1 -1
  163. package/lib/framework/types.js +1 -1
  164. package/lib/generated/build-info.js +1 -1
  165. package/lib/help.js +1 -1
  166. package/lib/skills/main.js +1 -1
  167. package/lib/skills/npx-skills-add.js +1 -1
  168. package/lib/telemetry/cli-command-trace.js +1 -1
  169. package/lib/telemetry/cli-help-trace.js +1 -1
  170. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  171. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  172. package/lib/telemetry/send-cli-trace-log.js +1 -1
  173. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  174. package/lib/utils/ai_config.js +1 -1
  175. package/lib/utils/apply-jq-filter.js +1 -1
  176. package/lib/utils/cdn-config.js +1 -1
  177. package/lib/utils/check-sdk-version.js +1 -1
  178. package/lib/utils/cli-version-check.js +1 -1
  179. package/lib/utils/cli-version-policy.js +1 -1
  180. package/lib/utils/config.js +1 -1
  181. package/lib/utils/copy-directory.js +1 -1
  182. package/lib/utils/entity-with-id.js +1 -1
  183. package/lib/utils/file-utils.js +1 -1
  184. package/lib/utils/guides-cdn.js +1 -1
  185. package/lib/utils/http-client.js +1 -1
  186. package/lib/utils/is-non-interactive.js +1 -1
  187. package/lib/utils/logger.js +1 -1
  188. package/lib/utils/params.js +1 -1
  189. package/lib/utils/platform.js +1 -1
  190. package/lib/utils/rules-cdn.js +1 -1
  191. package/lib/utils/sleep.js +1 -1
  192. package/lib/utils/template-replacer.js +1 -1
  193. package/lib/utils/version.js +1 -1
  194. package/lib/utils/with-active-cookie.js +1 -1
  195. package/lib/utils/write-cli-side-channel.js +1 -1
  196. package/package.json +1 -1
@@ -1 +1 @@
1
- function a68_0x141e(_0x4b3bce,_0x48506a){_0x4b3bce=_0x4b3bce-0xca;const _0x32e486=a68_0x32e4();let _0x141e6d=_0x32e486[_0x4b3bce];return _0x141e6d;}const a68_0xdd37da=a68_0x141e;(function(_0x3d7b73,_0x259ff0){const _0x32ec3f=a68_0x141e,_0x390a7f=_0x3d7b73();while(!![]){try{const _0x5cb22d=parseInt(_0x32ec3f(0xcd))/0x1*(-parseInt(_0x32ec3f(0xd8))/0x2)+-parseInt(_0x32ec3f(0xdb))/0x3+parseInt(_0x32ec3f(0xd4))/0x4+parseInt(_0x32ec3f(0xd7))/0x5+-parseInt(_0x32ec3f(0xd5))/0x6+-parseInt(_0x32ec3f(0xd3))/0x7+parseInt(_0x32ec3f(0xcf))/0x8;if(_0x5cb22d===_0x259ff0)break;else _0x390a7f['push'](_0x390a7f['shift']());}catch(_0x41415b){_0x390a7f['push'](_0x390a7f['shift']());}}}(a68_0x32e4,0xe8158));function a68_0x32e4(){const _0x45f0c9=['number','List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','591024geDZBX','pagesize','17384232APyTFQ','read','length','appCode','6147477nXmXbS','5515716wMCXTL','6595506xIpueF','Page\x20index\x20(1-based)','4162570kOXbsn','2CkjsLt','num','Found\x20','2596110ifPQMD','\x20database\x20connection(s)','page'];a68_0x32e4=function(){return _0x45f0c9;};return a68_0x32e4();}import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':'list','description':a68_0xdd37da(0xcc),'risk':a68_0xdd37da(0xd0),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a68_0xdd37da(0xca),'type':a68_0xdd37da(0xcb),'description':a68_0xdd37da(0xd6),'default':0x1},{'name':a68_0xdd37da(0xce),'type':'number','description':'Page\x20size','default':0x64}],async 'execute'(_0x32849a){const _0x9cc94e=a68_0xdd37da,_0xbef79b=_0x32849a[_0x9cc94e(0xd9)](_0x9cc94e(0xca),0x1)||0x1,_0x331fdb=_0x32849a['num'](_0x9cc94e(0xce),0x64)||0x64,{items:_0xb77394,paging:_0xce298e}=await listDbLinks(_0x32849a[_0x9cc94e(0xd2)],{'currentPage':_0xbef79b,'pageSize':_0x331fdb}),_0x1ada74=sanitizeDbLinkList(_0xb77394),_0x2ef167=_0xce298e?_0xce298e:{'currentPage':_0xbef79b,'pageSize':_0x331fdb,'rowsOnPage':_0x1ada74[_0x9cc94e(0xd1)],'totalCount':null,'note':'Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'};return{'ok':!![],'data':{'connections':_0x1ada74,'paging':_0x2ef167},'message':_0x9cc94e(0xda)+_0x1ada74[_0x9cc94e(0xd1)]+_0x9cc94e(0xdc)};}};
1
+ const a68_0x58ac3b=a68_0x4e2d;(function(_0x3863dc,_0x3ce59d){const _0x520640=a68_0x4e2d,_0x69770e=_0x3863dc();while(!![]){try{const _0x5b6b96=parseInt(_0x520640(0x1b2))/0x1*(parseInt(_0x520640(0x1b7))/0x2)+parseInt(_0x520640(0x1b1))/0x3*(-parseInt(_0x520640(0x1be))/0x4)+-parseInt(_0x520640(0x1b0))/0x5*(-parseInt(_0x520640(0x1c0))/0x6)+parseInt(_0x520640(0x1b6))/0x7*(-parseInt(_0x520640(0x1b9))/0x8)+-parseInt(_0x520640(0x1c3))/0x9*(-parseInt(_0x520640(0x1b8))/0xa)+-parseInt(_0x520640(0x1bf))/0xb+parseInt(_0x520640(0x1c2))/0xc*(parseInt(_0x520640(0x1bb))/0xd);if(_0x5b6b96===_0x3ce59d)break;else _0x69770e['push'](_0x69770e['shift']());}catch(_0x2eb77a){_0x69770e['push'](_0x69770e['shift']());}}}(a68_0x41bb,0xe9243));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';function a68_0x4e2d(_0x3e3a92,_0x2db6c7){_0x3e3a92=_0x3e3a92-0x1ad;const _0x41bbc0=a68_0x41bb();let _0x4e2d01=_0x41bbc0[_0x3e3a92];return _0x4e2d01;}export const dbList={'service':'db','command':a68_0x58ac3b(0x1bc),'description':'List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a68_0x58ac3b(0x1b4),'type':a68_0x58ac3b(0x1bd),'description':a68_0x58ac3b(0x1c1),'default':0x1},{'name':a68_0x58ac3b(0x1ad),'type':a68_0x58ac3b(0x1bd),'description':a68_0x58ac3b(0x1ba),'default':0x64}],async 'execute'(_0x3c6a21){const _0x3ac213=a68_0x58ac3b,_0x41352=_0x3c6a21['num']('page',0x1)||0x1,_0x5d02a6=_0x3c6a21[_0x3ac213(0x1ae)](_0x3ac213(0x1ad),0x64)||0x64,{items:_0x54bf29,paging:_0x4ef163}=await listDbLinks(_0x3c6a21[_0x3ac213(0x1b5)],{'currentPage':_0x41352,'pageSize':_0x5d02a6}),_0x3a72dc=sanitizeDbLinkList(_0x54bf29),_0x4e6ab9=_0x4ef163?_0x4ef163:{'currentPage':_0x41352,'pageSize':_0x5d02a6,'rowsOnPage':_0x3a72dc[_0x3ac213(0x1c4)],'totalCount':null,'note':'Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'};return{'ok':!![],'data':{'connections':_0x3a72dc,'paging':_0x4e6ab9},'message':_0x3ac213(0x1af)+_0x3a72dc[_0x3ac213(0x1c4)]+_0x3ac213(0x1b3)};}};function a68_0x41bb(){const _0x3644d6=['Page\x20size','32625749hwFZPP','list','number','5956280FPanpm','20582243IHENIB','5332392MffbWQ','Page\x20index\x20(1-based)','12HzFIZE','9uusfWS','length','pagesize','num','Found\x20','10KoXyZc','3vcwPIK','2633ivRLnC','\x20database\x20connection(s)','page','appCode','7946183dVAoRI','706KxDGwv','2337130DRthrG','8otjqRs'];a68_0x41bb=function(){return _0x3644d6;};return a68_0x41bb();}
@@ -1 +1 @@
1
- function a69_0x3b75(_0x560f15,_0x4d6de5){_0x560f15=_0x560f15-0x121;const _0x498da1=a69_0x498d();let _0x3b75a0=_0x498da1[_0x560f15];return _0x3b75a0;}function a69_0x498d(){const _0x374b4b=['[redacted]','124116zQmUCE','1667520BYqkoE','4baDOTN','includes','passwd','225zTrTDc','authorization','6735106iMVRfI','692038OFqtgl','https://daily.lovrabet.com/web-app/app/','/data/er?dbId=','5VZOJtb','toLowerCase','1767228brVGuK','keys','jdbcurl','accesskey','credential','91190QQbBwQ','trim','1705689eWiwSB','length','map','password','dbpassword','test','isFinite'];a69_0x498d=function(){return _0x374b4b;};return a69_0x498d();}(function(_0x5d64d3,_0x4ddc81){const _0x5b3282=a69_0x3b75,_0x1c9857=_0x5d64d3();while(!![]){try{const _0x4a3661=parseInt(_0x5b3282(0x125))/0x1+-parseInt(_0x5b3282(0x12d))/0x2+parseInt(_0x5b3282(0x139))/0x3*(parseInt(_0x5b3282(0x127))/0x4)+parseInt(_0x5b3282(0x130))/0x5*(-parseInt(_0x5b3282(0x132))/0x6)+parseInt(_0x5b3282(0x12c))/0x7+-parseInt(_0x5b3282(0x126))/0x8+-parseInt(_0x5b3282(0x12a))/0x9*(parseInt(_0x5b3282(0x137))/0xa);if(_0x4a3661===_0x4ddc81)break;else _0x1c9857['push'](_0x1c9857['shift']());}catch(_0x25f04d){_0x1c9857['push'](_0x1c9857['shift']());}}}(a69_0x498d,0x8d149));import{getEnv,isDaily,normalizeEnv}from'../../constant/env.js';function shouldRedactKey(_0x1b10be){const _0xfb311c=a69_0x3b75,_0x542718=_0x1b10be[_0xfb311c(0x131)]();if(_0x542718===_0xfb311c(0x13c)||_0x542718===_0xfb311c(0x129)||_0x542718===_0xfb311c(0x121))return!![];if(_0x542718[_0xfb311c(0x128)]('secret')||_0x542718['includes']('token')||_0x542718[_0xfb311c(0x128)](_0xfb311c(0x136)))return!![];if(_0x542718[_0xfb311c(0x128)]('privatekey')||_0x542718[_0xfb311c(0x128)](_0xfb311c(0x135)))return!![];if(_0x542718===_0xfb311c(0x12b)||_0x542718==='connectionstring'||_0x542718===_0xfb311c(0x134))return!![];return![];}export function sanitizeDbLinkForOutput(_0x348f09){const _0x1c13f3=a69_0x3b75,_0xe619c3={..._0x348f09};for(const _0x577a86 of Object[_0x1c13f3(0x133)](_0xe619c3)){if(!shouldRedactKey(_0x577a86))continue;const _0x5ebb0d=_0xe619c3[_0x577a86];_0x5ebb0d!=null&&String(_0x5ebb0d)[_0x1c13f3(0x13a)]>0x0&&(_0xe619c3[_0x577a86]=_0x1c13f3(0x124));}return _0xe619c3;}export function sanitizeDbLinkList(_0x2e554f){const _0x4b2d06=a69_0x3b75;return _0x2e554f[_0x4b2d06(0x13b)](_0x3cfb59=>sanitizeDbLinkForOutput(_0x3cfb59));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x2c1aa4){const _0x249202=a69_0x3b75,_0x5585ac=_0x2c1aa4[_0x249202(0x138)]();if(!_0x5585ac)return![];return DB_URL_PATTERN[_0x249202(0x122)](_0x5585ac);}export function buildDbPageLinks(_0x12ed95,_0x2b9d9d){const _0x20d809=a69_0x3b75,_0x24af49=_0x12ed95?.[_0x20d809(0x138)]();if(!_0x24af49)return undefined;const _0x5d9004=typeof _0x2b9d9d==='number'?String(_0x2b9d9d):String(_0x2b9d9d??'')[_0x20d809(0x138)]();if(!_0x5d9004)return undefined;const _0x585dbc=Number(_0x5d9004);if(!Number[_0x20d809(0x123)](_0x585dbc)||_0x585dbc<=0x0)return undefined;const _0x31eb8f=isDaily(normalizeEnv(getEnv()))?_0x20d809(0x12e)+encodeURIComponent(_0x24af49):'https://app.lovrabet.com/app/'+encodeURIComponent(_0x24af49),_0xab3f18=encodeURIComponent(String(_0x585dbc));return{'databasePage':_0x31eb8f+'/data/database','erPage':_0x31eb8f+_0x20d809(0x12f)+_0xab3f18};}
1
+ (function(_0x4301aa,_0x517781){const _0x436d0b=a69_0x43ca,_0x34d7a2=_0x4301aa();while(!![]){try{const _0x244be0=-parseInt(_0x436d0b(0x6b))/0x1+parseInt(_0x436d0b(0x69))/0x2*(-parseInt(_0x436d0b(0x73))/0x3)+-parseInt(_0x436d0b(0x74))/0x4*(parseInt(_0x436d0b(0x6e))/0x5)+-parseInt(_0x436d0b(0x7a))/0x6*(parseInt(_0x436d0b(0x7f))/0x7)+-parseInt(_0x436d0b(0x80))/0x8*(parseInt(_0x436d0b(0x82))/0x9)+-parseInt(_0x436d0b(0x76))/0xa*(parseInt(_0x436d0b(0x78))/0xb)+-parseInt(_0x436d0b(0x7e))/0xc*(-parseInt(_0x436d0b(0x84))/0xd);if(_0x244be0===_0x517781)break;else _0x34d7a2['push'](_0x34d7a2['shift']());}catch(_0xe496d3){_0x34d7a2['push'](_0x34d7a2['shift']());}}}(a69_0x2fc0,0x974ab));import{getEnv,isDaily,normalizeEnv}from'../../constant/env.js';function a69_0x43ca(_0x1fa44e,_0x472f45){_0x1fa44e=_0x1fa44e-0x67;const _0x2fc09f=a69_0x2fc0();let _0x43ca47=_0x2fc09f[_0x1fa44e];return _0x43ca47;}function shouldRedactKey(_0x6f55f5){const _0x23d57e=a69_0x43ca,_0x2fb83d=_0x6f55f5[_0x23d57e(0x6d)]();if(_0x2fb83d==='password'||_0x2fb83d==='passwd'||_0x2fb83d==='dbpassword')return!![];if(_0x2fb83d['includes']('secret')||_0x2fb83d[_0x23d57e(0x81)](_0x23d57e(0x79))||_0x2fb83d[_0x23d57e(0x81)](_0x23d57e(0x6c)))return!![];if(_0x2fb83d['includes'](_0x23d57e(0x7d))||_0x2fb83d['includes']('accesskey'))return!![];if(_0x2fb83d===_0x23d57e(0x83)||_0x2fb83d===_0x23d57e(0x72)||_0x2fb83d===_0x23d57e(0x67))return!![];return![];}export function sanitizeDbLinkForOutput(_0x3ac4f2){const _0x1a4940=a69_0x43ca,_0x1ad575={..._0x3ac4f2};for(const _0x3a199b of Object['keys'](_0x1ad575)){if(!shouldRedactKey(_0x3a199b))continue;const _0x89c7f7=_0x1ad575[_0x3a199b];_0x89c7f7!=null&&String(_0x89c7f7)['length']>0x0&&(_0x1ad575[_0x3a199b]=_0x1a4940(0x6f));}return _0x1ad575;}export function sanitizeDbLinkList(_0x563c1a){return _0x563c1a['map'](_0x46f67d=>sanitizeDbLinkForOutput(_0x46f67d));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x36adf5){const _0x1813e9=a69_0x43ca,_0x2e9724=_0x36adf5[_0x1813e9(0x68)]();if(!_0x2e9724)return![];return DB_URL_PATTERN[_0x1813e9(0x71)](_0x2e9724);}export function buildDbPageLinks(_0x72c45c,_0x168664){const _0x19c20f=a69_0x43ca,_0x8749b6=_0x72c45c?.[_0x19c20f(0x68)]();if(!_0x8749b6)return undefined;const _0x3dcf59=typeof _0x168664===_0x19c20f(0x75)?String(_0x168664):String(_0x168664??'')['trim']();if(!_0x3dcf59)return undefined;const _0xa4e68f=Number(_0x3dcf59);if(!Number[_0x19c20f(0x7c)](_0xa4e68f)||_0xa4e68f<=0x0)return undefined;const _0x47a5e8=isDaily(normalizeEnv(getEnv()))?_0x19c20f(0x77)+encodeURIComponent(_0x8749b6):_0x19c20f(0x70)+encodeURIComponent(_0x8749b6),_0x339f33=encodeURIComponent(String(_0xa4e68f));return{'databasePage':_0x47a5e8+_0x19c20f(0x6a),'erPage':_0x47a5e8+_0x19c20f(0x7b)+_0x339f33};}function a69_0x2fc0(){const _0x3e70d4=['trim','4894WwmqsG','/data/database','513634DEHPQa','credential','toLowerCase','1270KNwUym','[redacted]','https://app.lovrabet.com/app/','test','connectionstring','39YxnsJR','18472RgalJs','number','2147170REqwJO','https://daily.lovrabet.com/web-app/app/','11UWFTBF','token','18vZGppT','/data/er?dbId=','isFinite','privatekey','2796TSglOt','2058833WdeOAz','1112lLZqDx','includes','38979EArlMj','authorization','225251rpmxSi','jdbcurl'];a69_0x2fc0=function(){return _0x3e70d4;};return a69_0x2fc0();}
@@ -1 +1 @@
1
- const a70_0xf6dab1=a70_0x27ef;(function(_0xe21325,_0x167dda){const _0x2ffc16=a70_0x27ef,_0x3ca334=_0xe21325();while(!![]){try{const _0x5b738=parseInt(_0x2ffc16(0x97))/0x1*(parseInt(_0x2ffc16(0x94))/0x2)+-parseInt(_0x2ffc16(0x9c))/0x3+-parseInt(_0x2ffc16(0x9e))/0x4*(parseInt(_0x2ffc16(0x98))/0x5)+parseInt(_0x2ffc16(0x95))/0x6+parseInt(_0x2ffc16(0xa0))/0x7+parseInt(_0x2ffc16(0x9f))/0x8+parseInt(_0x2ffc16(0xa1))/0x9*(-parseInt(_0x2ffc16(0x96))/0xa);if(_0x5b738===_0x167dda)break;else _0x3ca334['push'](_0x3ca334['shift']());}catch(_0x6031ea){_0x3ca334['push'](_0x3ca334['shift']());}}}(a70_0x5da8,0x35aaa));function a70_0x27ef(_0x57c22a,_0x5aac91){_0x57c22a=_0x57c22a-0x93;const _0x5da8a0=a70_0x5da8();let _0x27efdc=_0x5da8a0[_0x57c22a];return _0x27efdc;}function a70_0x5da8(){const _0xdb74c7=['2753779gJFyGc','74583TBCCXJ','\x20table(s)\x20on\x20db\x20link\x20','2yUIsTA','380526MbBpFh','550quUgxW','146787aBfnyY','1790ecWZSm','read','appCode','length','21618PFTpjn','num','1208tNwjPg','1498560eKAHxx'];a70_0x5da8=function(){return _0xdb74c7;};return a70_0x5da8();}import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':'tables','description':'List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','risk':a70_0xf6dab1(0x99),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x425e23){const _0x2015ab=a70_0xf6dab1,_0x1855e6=_0x425e23[_0x2015ab(0x9d)]('id'),_0xfd094=await getDbAllTableList(_0x425e23[_0x2015ab(0x9a)],_0x1855e6);return{'ok':!![],'data':{'dbLinkId':_0x1855e6,'total':_0xfd094[_0x2015ab(0x9b)],'tables':_0xfd094},'message':_0xfd094[_0x2015ab(0x9b)]+_0x2015ab(0x93)+_0x1855e6};}};
1
+ const a70_0x4c2113=a70_0x5cb8;(function(_0x457868,_0x19c6f0){const _0x5f23a9=a70_0x5cb8,_0x268ce9=_0x457868();while(!![]){try{const _0x559300=parseInt(_0x5f23a9(0xca))/0x1*(-parseInt(_0x5f23a9(0xcf))/0x2)+parseInt(_0x5f23a9(0xd1))/0x3+-parseInt(_0x5f23a9(0xd2))/0x4*(parseInt(_0x5f23a9(0xcd))/0x5)+parseInt(_0x5f23a9(0xd3))/0x6+-parseInt(_0x5f23a9(0xcb))/0x7+-parseInt(_0x5f23a9(0xd6))/0x8*(parseInt(_0x5f23a9(0xce))/0x9)+parseInt(_0x5f23a9(0xd0))/0xa;if(_0x559300===_0x19c6f0)break;else _0x268ce9['push'](_0x268ce9['shift']());}catch(_0x21824e){_0x268ce9['push'](_0x268ce9['shift']());}}}(a70_0x36a0,0x3a684));import{getDbAllTableList}from'../../core/api-client.js';function a70_0x36a0(){const _0x5d0c33=['List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','227135zetSsh','998523CAFcNn','2ryPCZw','9367000mlBswS','23127JXoRri','20pObPeu','2060028aUuPWN','num','read','8vMzaAW','tables','415641cgVuNt','2063516KVCPFy'];a70_0x36a0=function(){return _0x5d0c33;};return a70_0x36a0();}function a70_0x5cb8(_0x186910,_0x481f43){_0x186910=_0x186910-0xca;const _0x36a0f9=a70_0x36a0();let _0x5cb8d1=_0x36a0f9[_0x186910];return _0x5cb8d1;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':a70_0x4c2113(0xd7),'description':a70_0x4c2113(0xcc),'risk':a70_0x4c2113(0xd5),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1e31f7){const _0x395064=a70_0x4c2113,_0x4fa1ac=_0x1e31f7[_0x395064(0xd4)]('id'),_0x4ea21d=await getDbAllTableList(_0x1e31f7['appCode'],_0x4fa1ac);return{'ok':!![],'data':{'dbLinkId':_0x4fa1ac,'total':_0x4ea21d['length'],'tables':_0x4ea21d},'message':_0x4ea21d['length']+'\x20table(s)\x20on\x20db\x20link\x20'+_0x4fa1ac};}};
@@ -1 +1 @@
1
- function a71_0x54ff(){const _0x57ce09=['Connection\x20OK\x20for\x20db\x20link\x20','keys','slice','Connection\x20check\x20finished\x20for\x20db\x20link\x20','141944OQfPhk','test','success','8216CrbORT','message','\x20(see\x20data.result)','object','357HmpIef','396294KAkNlP','82180IUOvKL','217805nVXyqh','1325184YgvFxt','246604vDkKod'];a71_0x54ff=function(){return _0x57ce09;};return a71_0x54ff();}const a71_0x1afbe0=a71_0x1e72;(function(_0x17f15a,_0x37651f){const _0x2052db=a71_0x1e72,_0x57d67a=_0x17f15a();while(!![]){try{const _0x372d01=parseInt(_0x2052db(0x1a6))/0x1+-parseInt(_0x2052db(0x1a3))/0x2+parseInt(_0x2052db(0x1a1))/0x3*(parseInt(_0x2052db(0x19d))/0x4)+-parseInt(_0x2052db(0x1a4))/0x5+-parseInt(_0x2052db(0x1a2))/0x6+-parseInt(_0x2052db(0x1a5))/0x7+-parseInt(_0x2052db(0x19a))/0x8;if(_0x372d01===_0x37651f)break;else _0x57d67a['push'](_0x57d67a['shift']());}catch(_0x4346be){_0x57d67a['push'](_0x57d67a['shift']());}}}(a71_0x54ff,0x2089b));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a71_0x1e72(_0x3c8e6b,_0x30358a){_0x3c8e6b=_0x3c8e6b-0x19a;const _0x54ff66=a71_0x54ff();let _0x1e72bb=_0x54ff66[_0x3c8e6b];return _0x1e72bb;}function summarizeTestConnectResult(_0x292af5){const _0x3b944d=a71_0x1e72;if(_0x292af5===!![]||_0x292af5===![])return{'success':_0x292af5};if(_0x292af5===null||_0x292af5===undefined)return{'type':typeof _0x292af5};if(typeof _0x292af5!==_0x3b944d(0x1a0))return{'type':typeof _0x292af5};const _0xa6f672=_0x292af5,_0x2f2dc2=[_0x3b944d(0x19c),_0x3b944d(0x19e),'code','error','msg','data'],_0x18bffd={};for(const _0x598dba of _0x2f2dc2){if(_0x598dba in _0xa6f672)_0x18bffd[_0x598dba]=_0xa6f672[_0x598dba];}return Object[_0x3b944d(0x1a8)](_0x18bffd)['length']===0x0&&(_0x18bffd[_0x3b944d(0x1a8)]=Object[_0x3b944d(0x1a8)](_0xa6f672)[_0x3b944d(0x1a9)](0x0,0x14)),_0x18bffd;}export const dbTest={'service':'db','command':a71_0x1afbe0(0x19b),'description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5a82ed){const _0x264eff=a71_0x1afbe0,_0x5c41ff=_0x5a82ed['num']('id'),_0x65a1a=await testDbLinkConnect(_0x5c41ff),_0x333d2f=_0x65a1a===!![]||typeof _0x65a1a==='object'&&_0x65a1a!==null&&_0x65a1a[_0x264eff(0x19c)]===!![],_0x22c9bd=summarizeTestConnectResult(_0x65a1a);return{'ok':!![],'data':{'id':_0x5c41ff,'connected':Boolean(_0x333d2f),'result':_0x22c9bd},'message':_0x333d2f?_0x264eff(0x1a7)+_0x5c41ff:_0x264eff(0x1aa)+_0x5c41ff+_0x264eff(0x19f)};}};
1
+ const a71_0x476d49=a71_0x40fb;(function(_0x3006a5,_0x45717d){const _0x27b63c=a71_0x40fb,_0x1dd5a3=_0x3006a5();while(!![]){try{const _0x29562a=parseInt(_0x27b63c(0xf9))/0x1*(parseInt(_0x27b63c(0xf0))/0x2)+parseInt(_0x27b63c(0xec))/0x3*(-parseInt(_0x27b63c(0xeb))/0x4)+-parseInt(_0x27b63c(0xfe))/0x5*(-parseInt(_0x27b63c(0xf3))/0x6)+-parseInt(_0x27b63c(0xf6))/0x7+-parseInt(_0x27b63c(0xf7))/0x8*(parseInt(_0x27b63c(0xf2))/0x9)+parseInt(_0x27b63c(0xed))/0xa+-parseInt(_0x27b63c(0xef))/0xb*(parseInt(_0x27b63c(0xfb))/0xc);if(_0x29562a===_0x45717d)break;else _0x1dd5a3['push'](_0x1dd5a3['shift']());}catch(_0x17ee91){_0x1dd5a3['push'](_0x1dd5a3['shift']());}}}(a71_0x552b,0x29e9c));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x5b2222){const _0x4bf6e5=a71_0x40fb;if(_0x5b2222===!![]||_0x5b2222===![])return{'success':_0x5b2222};if(_0x5b2222===null||_0x5b2222===undefined)return{'type':typeof _0x5b2222};if(typeof _0x5b2222!==_0x4bf6e5(0xf4))return{'type':typeof _0x5b2222};const _0x46f0d6=_0x5b2222,_0x16c44e=[_0x4bf6e5(0xfd),_0x4bf6e5(0xe8),_0x4bf6e5(0xea),'error',_0x4bf6e5(0xf5),_0x4bf6e5(0xfa)],_0x5574a4={};for(const _0x53e57d of _0x16c44e){if(_0x53e57d in _0x46f0d6)_0x5574a4[_0x53e57d]=_0x46f0d6[_0x53e57d];}return Object['keys'](_0x5574a4)['length']===0x0&&(_0x5574a4[_0x4bf6e5(0xf8)]=Object[_0x4bf6e5(0xf8)](_0x46f0d6)[_0x4bf6e5(0xe9)](0x0,0x14)),_0x5574a4;}function a71_0x40fb(_0x15e330,_0x3febde){_0x15e330=_0x15e330-0xe8;const _0x552bb9=a71_0x552b();let _0x40fbc3=_0x552bb9[_0x15e330];return _0x40fbc3;}export const dbTest={'service':'db','command':a71_0x476d49(0xf1),'description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2c5010){const _0x431a5b=a71_0x476d49,_0x4a5015=_0x2c5010['num']('id'),_0x4b6667=await testDbLinkConnect(_0x4a5015),_0x3aad9f=_0x4b6667===!![]||typeof _0x4b6667===_0x431a5b(0xf4)&&_0x4b6667!==null&&_0x4b6667[_0x431a5b(0xfd)]===!![],_0x5911d0=summarizeTestConnectResult(_0x4b6667);return{'ok':!![],'data':{'id':_0x4a5015,'connected':Boolean(_0x3aad9f),'result':_0x5911d0},'message':_0x3aad9f?'Connection\x20OK\x20for\x20db\x20link\x20'+_0x4a5015:_0x431a5b(0xee)+_0x4a5015+_0x431a5b(0xfc)};}};function a71_0x552b(){const _0x510dc1=['9KBQCqh','114QqSgBT','object','msg','1920625tNvnmE','1152104tzZLuW','keys','1fqISpS','data','336uCLXhd','\x20(see\x20data.result)','success','28870PGxNNF','message','slice','code','7624XaoWkL','84VNtEFn','3182570neNgzm','Connection\x20check\x20finished\x20for\x20db\x20link\x20','14751ksNIow','506034ClShpa','test'];a71_0x552b=function(){return _0x510dc1;};return a71_0x552b();}
@@ -1 +1 @@
1
- function a72_0x103b(){const _0x4d2455=['dbname','dbDesc','New\x20connection\x20parameter\x20string','31507bUVnBg','dbName','64nGRjxY','dbparam','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','143LUlBPn','2411070bpCqMg','New\x20description','5679718grPEVH','12540eRhsXy','503874Uugstx','20pOKIvs','Updated\x20db\x20link\x20','dbdesc','New\x20username','password','write','dbUrl','str','trim','dbParam','num','/smartapi/dblink/update','452MKiVAV','update','dburl','POST','9250kWXcYA','12ulAtNZ','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','string','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','username','44098428oLJqzR'];a72_0x103b=function(){return _0x4d2455;};return a72_0x103b();}const a72_0x14e260=a72_0x1d18;(function(_0x3daa33,_0x169451){const _0x182c13=a72_0x1d18,_0x419882=_0x3daa33();while(!![]){try{const _0x5b8843=-parseInt(_0x182c13(0x139))/0x1*(parseInt(_0x182c13(0x129))/0x2)+parseInt(_0x182c13(0x13d))/0x3*(-parseInt(_0x182c13(0x125))/0x4)+parseInt(_0x182c13(0x13a))/0x5*(-parseInt(_0x182c13(0x12a))/0x6)+parseInt(_0x182c13(0x133))/0x7*(parseInt(_0x182c13(0x135))/0x8)+parseInt(_0x182c13(0x13e))/0x9+-parseInt(_0x182c13(0x13f))/0xa*(parseInt(_0x182c13(0x13c))/0xb)+parseInt(_0x182c13(0x12f))/0xc;if(_0x5b8843===_0x169451)break;else _0x419882['push'](_0x419882['shift']());}catch(_0x489019){_0x419882['push'](_0x419882['shift']());}}}(a72_0x103b,0x9b48c));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a72_0x1d18(_0x387b62,_0x549877){_0x387b62=_0x387b62-0x11c;const _0x103bfc=a72_0x103b();let _0x1d184a=_0x103bfc[_0x387b62];return _0x1d184a;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':a72_0x14e260(0x126),'description':a72_0x14e260(0x137),'risk':a72_0x14e260(0x11e),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a72_0x14e260(0x130),'type':'string','description':'New\x20database\x20name'},{'name':a72_0x14e260(0x127),'type':a72_0x14e260(0x12c),'description':'New\x20host:port'},{'name':a72_0x14e260(0x12e),'type':a72_0x14e260(0x12c),'description':a72_0x14e260(0x11c)},{'name':'password','type':a72_0x14e260(0x12c),'description':a72_0x14e260(0x138)},{'name':a72_0x14e260(0x136),'type':a72_0x14e260(0x12c),'description':a72_0x14e260(0x132)},{'name':a72_0x14e260(0x141),'type':a72_0x14e260(0x12c),'description':a72_0x14e260(0x13b)}],async 'validate'(_0x520a6d){const _0x57ded3=a72_0x14e260,_0x34a6bb=_0x520a6d[_0x57ded3(0x120)](_0x57ded3(0x127));if(_0x34a6bb&&!validateDbUrl(_0x34a6bb['trim']()))throw CliErrors['validation'](_0x57ded3(0x12d)+_0x34a6bb+'\x22');},async 'dryRun'(_0x447b49){const _0x9b6dbd=a72_0x14e260,_0xeb2dc7=_0x447b49['num']('id'),_0x5a0baf=await getDbLinkInfo(_0xeb2dc7),_0x19b5c3={..._0x5a0baf},_0x33d345=_0x447b49[_0x9b6dbd(0x120)]('dbname');if(_0x33d345)_0x19b5c3[_0x9b6dbd(0x134)]=_0x33d345;const _0x23681f=_0x447b49['str'](_0x9b6dbd(0x127));if(_0x23681f)_0x19b5c3[_0x9b6dbd(0x11f)]=_0x23681f['trim']();const _0x3c1979=_0x447b49[_0x9b6dbd(0x120)](_0x9b6dbd(0x12e));if(_0x3c1979)_0x19b5c3[_0x9b6dbd(0x12e)]=_0x3c1979;const _0x472d57=_0x447b49[_0x9b6dbd(0x120)](_0x9b6dbd(0x11d));if(_0x472d57)_0x19b5c3['password']=_0x472d57;const _0x514cbf=_0x447b49[_0x9b6dbd(0x120)](_0x9b6dbd(0x136));if(_0x514cbf)_0x19b5c3[_0x9b6dbd(0x122)]=_0x514cbf;const _0x3e1b59=_0x447b49[_0x9b6dbd(0x120)](_0x9b6dbd(0x141));if(_0x3e1b59)_0x19b5c3[_0x9b6dbd(0x131)]=_0x3e1b59;const _0x23959a=sanitizeDbLinkForOutput(_0x19b5c3);return{'method':_0x9b6dbd(0x128),'url':_0x9b6dbd(0x124),'body':_0x23959a,'description':_0x9b6dbd(0x12b)};},async 'execute'(_0x870c0){const _0x4c8407=a72_0x14e260,_0x61e02f=_0x870c0[_0x4c8407(0x123)]('id'),_0x30e8d9=await getDbLinkInfo(_0x61e02f),_0xde7a31={..._0x30e8d9},_0x3ded57=_0x870c0['str'](_0x4c8407(0x130));if(_0x3ded57)_0xde7a31[_0x4c8407(0x134)]=_0x3ded57;const _0x1ab09e=_0x870c0[_0x4c8407(0x120)](_0x4c8407(0x127));if(_0x1ab09e)_0xde7a31['dbUrl']=_0x1ab09e[_0x4c8407(0x121)]();const _0x5c8bdb=_0x870c0['str'](_0x4c8407(0x12e));if(_0x5c8bdb)_0xde7a31[_0x4c8407(0x12e)]=_0x5c8bdb;const _0x1a6c91=_0x870c0[_0x4c8407(0x120)](_0x4c8407(0x11d));if(_0x1a6c91)_0xde7a31['password']=_0x1a6c91;const _0x8e46f6=_0x870c0['str'](_0x4c8407(0x136));if(_0x8e46f6)_0xde7a31[_0x4c8407(0x122)]=_0x8e46f6;const _0x1da2fc=_0x870c0[_0x4c8407(0x120)](_0x4c8407(0x141));if(_0x1da2fc)_0xde7a31['dbDesc']=_0x1da2fc;const {id:_0x21459d,entity:_0x12ae09}=normalizeEntityWithIdResponse(await updateDbLink(_0xde7a31));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x12ae09),'message':_0x4c8407(0x140)+(_0x21459d??_0x61e02f)};}};
1
+ function a72_0x582e(){const _0xa1be01=['Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','12kNXlhe','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','dburl','9280oHxgVt','username','25358281UGPUxW','dbdesc','dbParam','dbDesc','2KWwIYs','dbName','177177UsiSzJ','10mhWfFo','trim','password','132NraxpR','dbUrl','update','207JvXbmx','182712ygfYCk','validation','New\x20connection\x20parameter\x20string','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','num','896codRlV','POST','dbparam','dbname','645641IJHahm','string','New\x20username','str','New\x20description','write','1923246miheXI','New\x20host:port','8062890hKXqTa'];a72_0x582e=function(){return _0xa1be01;};return a72_0x582e();}function a72_0x3ed2(_0x202668,_0x50fc64){_0x202668=_0x202668-0xc1;const _0x582ed2=a72_0x582e();let _0x3ed218=_0x582ed2[_0x202668];return _0x3ed218;}const a72_0x1c9ca2=a72_0x3ed2;(function(_0xfeae86,_0x186893){const _0x5c96e9=a72_0x3ed2,_0x5a7c7c=_0xfeae86();while(!![]){try{const _0x1660d9=-parseInt(_0x5c96e9(0xc5))/0x1*(-parseInt(_0x5c96e9(0xd9))/0x2)+parseInt(_0x5c96e9(0xcb))/0x3+-parseInt(_0x5c96e9(0xc1))/0x4*(-parseInt(_0x5c96e9(0xd3))/0x5)+-parseInt(_0x5c96e9(0xdf))/0x6*(parseInt(_0x5c96e9(0xdb))/0x7)+-parseInt(_0x5c96e9(0xe3))/0x8*(-parseInt(_0x5c96e9(0xe2))/0x9)+parseInt(_0x5c96e9(0xdc))/0xa*(parseInt(_0x5c96e9(0xcd))/0xb)+-parseInt(_0x5c96e9(0xd0))/0xc*(parseInt(_0x5c96e9(0xd5))/0xd);if(_0x1660d9===_0x186893)break;else _0x5a7c7c['push'](_0x5a7c7c['shift']());}catch(_0x1df1cc){_0x5a7c7c['push'](_0x5a7c7c['shift']());}}}(a72_0x582e,0x6ea9b));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':a72_0x1c9ca2(0xe1),'description':a72_0x1c9ca2(0xcf),'risk':a72_0x1c9ca2(0xca),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a72_0x1c9ca2(0xc6),'description':'New\x20database\x20name'},{'name':'dburl','type':'string','description':a72_0x1c9ca2(0xcc)},{'name':a72_0x1c9ca2(0xd4),'type':a72_0x1c9ca2(0xc6),'description':a72_0x1c9ca2(0xc7)},{'name':a72_0x1c9ca2(0xde),'type':a72_0x1c9ca2(0xc6),'description':a72_0x1c9ca2(0xd1)},{'name':a72_0x1c9ca2(0xc3),'type':a72_0x1c9ca2(0xc6),'description':a72_0x1c9ca2(0xe5)},{'name':a72_0x1c9ca2(0xd6),'type':'string','description':a72_0x1c9ca2(0xc9)}],async 'validate'(_0x2935a6){const _0x3d44a2=a72_0x1c9ca2,_0x2f7f4d=_0x2935a6[_0x3d44a2(0xc8)](_0x3d44a2(0xd2));if(_0x2f7f4d&&!validateDbUrl(_0x2f7f4d[_0x3d44a2(0xdd)]()))throw CliErrors[_0x3d44a2(0xe4)](_0x3d44a2(0xe6)+_0x2f7f4d+'\x22');},async 'dryRun'(_0x5ea22d){const _0x352022=a72_0x1c9ca2,_0x48158e=_0x5ea22d[_0x352022(0xe7)]('id'),_0x3e9d04=await getDbLinkInfo(_0x48158e),_0x2f044e={..._0x3e9d04},_0x52c6dd=_0x5ea22d['str']('dbname');if(_0x52c6dd)_0x2f044e['dbName']=_0x52c6dd;const _0x1496c5=_0x5ea22d[_0x352022(0xc8)](_0x352022(0xd2));if(_0x1496c5)_0x2f044e[_0x352022(0xe0)]=_0x1496c5[_0x352022(0xdd)]();const _0x537ac7=_0x5ea22d[_0x352022(0xc8)](_0x352022(0xd4));if(_0x537ac7)_0x2f044e['username']=_0x537ac7;const _0x285e61=_0x5ea22d[_0x352022(0xc8)](_0x352022(0xde));if(_0x285e61)_0x2f044e['password']=_0x285e61;const _0x1e42bf=_0x5ea22d[_0x352022(0xc8)](_0x352022(0xc3));if(_0x1e42bf)_0x2f044e[_0x352022(0xd7)]=_0x1e42bf;const _0x4971a5=_0x5ea22d[_0x352022(0xc8)]('dbdesc');if(_0x4971a5)_0x2f044e[_0x352022(0xd8)]=_0x4971a5;const _0x2b46e2=sanitizeDbLinkForOutput(_0x2f044e);return{'method':_0x352022(0xc2),'url':'/smartapi/dblink/update','body':_0x2b46e2,'description':_0x352022(0xce)};},async 'execute'(_0x2ea281){const _0x2d4476=a72_0x1c9ca2,_0x3acbae=_0x2ea281['num']('id'),_0x258ea8=await getDbLinkInfo(_0x3acbae),_0xd80fc8={..._0x258ea8},_0x28de0a=_0x2ea281['str'](_0x2d4476(0xc4));if(_0x28de0a)_0xd80fc8[_0x2d4476(0xda)]=_0x28de0a;const _0x53b147=_0x2ea281[_0x2d4476(0xc8)](_0x2d4476(0xd2));if(_0x53b147)_0xd80fc8[_0x2d4476(0xe0)]=_0x53b147[_0x2d4476(0xdd)]();const _0x245383=_0x2ea281['str'](_0x2d4476(0xd4));if(_0x245383)_0xd80fc8[_0x2d4476(0xd4)]=_0x245383;const _0x1592b1=_0x2ea281[_0x2d4476(0xc8)](_0x2d4476(0xde));if(_0x1592b1)_0xd80fc8['password']=_0x1592b1;const _0x1dec38=_0x2ea281[_0x2d4476(0xc8)](_0x2d4476(0xc3));if(_0x1dec38)_0xd80fc8[_0x2d4476(0xd7)]=_0x1dec38;const _0x40a402=_0x2ea281['str'](_0x2d4476(0xd6));if(_0x40a402)_0xd80fc8[_0x2d4476(0xd8)]=_0x40a402;const {id:_0x44e4d0,entity:_0x54a87d}=normalizeEntityWithIdResponse(await updateDbLink(_0xd80fc8));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x54a87d),'message':'Updated\x20db\x20link\x20'+(_0x44e4d0??_0x3acbae)};}};
@@ -1 +1 @@
1
- const a73_0x50003f=a73_0x22f8;(function(_0x152aa0,_0x557341){const _0x573be5=a73_0x22f8,_0x418fc7=_0x152aa0();while(!![]){try{const _0x1f16f0=-parseInt(_0x573be5(0x1fd))/0x1*(parseInt(_0x573be5(0x1ff))/0x2)+parseInt(_0x573be5(0x200))/0x3+-parseInt(_0x573be5(0x201))/0x4*(-parseInt(_0x573be5(0x1da))/0x5)+parseInt(_0x573be5(0x208))/0x6*(-parseInt(_0x573be5(0x1ea))/0x7)+-parseInt(_0x573be5(0x1e1))/0x8*(-parseInt(_0x573be5(0x21e))/0x9)+parseInt(_0x573be5(0x20b))/0xa+-parseInt(_0x573be5(0x1db))/0xb*(parseInt(_0x573be5(0x1e7))/0xc);if(_0x1f16f0===_0x557341)break;else _0x418fc7['push'](_0x418fc7['shift']());}catch(_0x1f9856){_0x418fc7['push'](_0x418fc7['shift']());}}}(a73_0x51cc,0x623f0));function a73_0x22f8(_0x2bbc22,_0x35efc0){_0x2bbc22=_0x2bbc22-0x1d0;const _0x51cc64=a73_0x51cc();let _0x22f85e=_0x51cc64[_0x2bbc22];return _0x22f85e;}import a73_0x3215f0 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';function a73_0x51cc(){const _0x461670=['497240UXunjh','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','(none)','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20accessKey:\x20\x20','verbose','keys','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','slice','(no\x20file)','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','appcode','\x20\x20Auth','✓\x20Valid','accessKey','13311oxcNSg','cookie','\x20\x20Config\x20JSON','bold','\x20\x20Merged\x20Config','raw','\x20←\x20current','log','pageSize','(default)','length','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','status','15qFOnsM','5291QsHYbj','message','arch','yellow','locale','(default:\x20','80aiefCh','value','(set,\x20length=','currentApp','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','✗\x20Invalid\x20JSON','4248prYonZ','gray','⚠\x20Empty\x20(treated\x20as\x20{})','2569gAdMSt','defaultApp','missing','read','✗\x20Expired','red','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','appCode','\x20\x20─','\x20(default)','green','apps','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','apiDir','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Not\x20logged\x20in','(missing)','padEnd','1ogYQVX','explicitAppName','335974UQeZTN','1542276pcMIuk','943244uqlKFK','(not\x20found)','source','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20set)','format','env','8916wCLCqO','repeat','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'];a73_0x51cc=function(){return _0x461670;};return a73_0x51cc();}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(_0x15f177){const _0x4a9a96=a73_0x22f8,_0x1d2663=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x4a9a96(0x214)](0x0,0xa)+')':VERSION,_0x3e346f=buildConfigFromFlags({}),_0x483143=getCookie();console[_0x4a9a96(0x1d4)](),console[_0x4a9a96(0x1d4)](a73_0x3215f0[_0x4a9a96(0x1d0)](CLI_BIN_NAME+'\x20doctor')),console[_0x4a9a96(0x1d4)](a73_0x3215f0['gray']('─'['repeat'](0x32))),console[_0x4a9a96(0x1d4)](_0x4a9a96(0x1e5)+_0x1d2663),console[_0x4a9a96(0x1d4)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process['version']),console[_0x4a9a96(0x1d4)](_0x4a9a96(0x1f9)+process['platform']+'\x20'+process[_0x4a9a96(0x1dd)]),console['log'](),console[_0x4a9a96(0x1d4)](a73_0x3215f0[_0x4a9a96(0x1d0)]('\x20\x20Config\x20Files')),console[_0x4a9a96(0x1d4)](a73_0x3215f0[_0x4a9a96(0x1e8)](_0x4a9a96(0x1f3)[_0x4a9a96(0x209)](0x1e)));const _0x2d7cc6=getGlobalConfigPath(),_0x5e7504=getProjectConfigPath();console[_0x4a9a96(0x1d4)](_0x4a9a96(0x204)+(_0x2d7cc6||a73_0x3215f0[_0x4a9a96(0x1e8)](_0x4a9a96(0x202)))),console[_0x4a9a96(0x1d4)](_0x4a9a96(0x1f7)+(_0x5e7504||a73_0x3215f0[_0x4a9a96(0x1e8)]('(not\x20found)'))),console[_0x4a9a96(0x1d4)](),console[_0x4a9a96(0x1d4)](a73_0x3215f0[_0x4a9a96(0x1d0)](_0x4a9a96(0x220))),console[_0x4a9a96(0x1d4)](a73_0x3215f0['gray']('\x20\x20─'[_0x4a9a96(0x209)](0x1e)));const _0x4e770f=(_0x49b50e,_0x52703b)=>{const _0x113364=_0x4a9a96;if(!_0x52703b){console[_0x113364(0x1d4)]('\x20\x20'+_0x49b50e[_0x113364(0x1fc)](0x11)+'\x20'+a73_0x3215f0['gray'](_0x113364(0x215)));return;}const _0x4d6fca=inspectCliConfigJsonFile(_0x52703b);if(_0x4d6fca[_0x113364(0x1d9)]==='ok')console['log']('\x20\x20'+_0x49b50e[_0x113364(0x1fc)](0x11)+'\x20'+a73_0x3215f0[_0x113364(0x1f5)]('✓\x20Valid\x20JSON'));else{if(_0x4d6fca['status']==='empty')console[_0x113364(0x1d4)]('\x20\x20'+_0x49b50e['padEnd'](0x11)+'\x20'+a73_0x3215f0[_0x113364(0x1de)](_0x113364(0x1e9)));else _0x4d6fca[_0x113364(0x1d9)]===_0x113364(0x1ec)?console[_0x113364(0x1d4)]('\x20\x20'+_0x49b50e[_0x113364(0x1fc)](0x11)+'\x20'+a73_0x3215f0[_0x113364(0x1e8)](_0x113364(0x1fb))):(console[_0x113364(0x1d4)]('\x20\x20'+_0x49b50e[_0x113364(0x1fc)](0x11)+'\x20'+a73_0x3215f0['red'](_0x113364(0x1e6))),console['log']('\x20\x20'+''[_0x113364(0x1fc)](0x11)+'\x20'+a73_0x3215f0['red'](_0x4d6fca[_0x113364(0x1dc)])));}};_0x4e770f('Global',_0x2d7cc6),_0x4e770f('Project',_0x5e7504),console[_0x4a9a96(0x1d4)](),console[_0x4a9a96(0x1d4)](a73_0x3215f0['bold'](_0x4a9a96(0x1d1))),console[_0x4a9a96(0x1d4)](a73_0x3215f0[_0x4a9a96(0x1e8)](_0x4a9a96(0x1f3)[_0x4a9a96(0x209)](0x1e))),console['log']('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3e346f[_0x4a9a96(0x1f2)]||a73_0x3215f0[_0x4a9a96(0x1ef)](_0x4a9a96(0x205)))),console[_0x4a9a96(0x1d4)](_0x4a9a96(0x218)+_0x3e346f[_0x4a9a96(0x207)]),console[_0x4a9a96(0x1d4)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3e346f[_0x4a9a96(0x1df)]),console[_0x4a9a96(0x1d4)](_0x4a9a96(0x213)+_0x3e346f[_0x4a9a96(0x1f8)]),console['log']('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x3e346f[_0x4a9a96(0x1eb)]||a73_0x3215f0['gray']('(none)'))),console[_0x4a9a96(0x1d4)](_0x4a9a96(0x1f0)+(_0x3e346f[_0x4a9a96(0x1e4)]||a73_0x3215f0[_0x4a9a96(0x1e8)](_0x4a9a96(0x20d)))),console[_0x4a9a96(0x1d4)]('\x20\x20explicitAppName:\x20'+(_0x3e346f[_0x4a9a96(0x1fe)]||a73_0x3215f0[_0x4a9a96(0x1e8)](_0x4a9a96(0x20d)))),console['log'](_0x4a9a96(0x217)+(_0x3e346f[_0x4a9a96(0x206)]||a73_0x3215f0['gray'](_0x4a9a96(0x1e0)+DEFAULT_CONFIG_VALUES[_0x4a9a96(0x206)]+')'))),console[_0x4a9a96(0x1d4)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3e346f[_0x4a9a96(0x1d5)]??a73_0x3215f0[_0x4a9a96(0x1e8)](_0x4a9a96(0x1d6)))),console[_0x4a9a96(0x1d4)](_0x4a9a96(0x20a)+_0x3e346f['riskLevel']),console[_0x4a9a96(0x1d4)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3e346f[_0x4a9a96(0x210)]),console[_0x4a9a96(0x1d4)](_0x4a9a96(0x20e)+(_0x3e346f[_0x4a9a96(0x21f)]?a73_0x3215f0[_0x4a9a96(0x1f5)](_0x4a9a96(0x1e3)+_0x3e346f[_0x4a9a96(0x21f)][_0x4a9a96(0x1d7)]+')'):_0x483143?a73_0x3215f0['green']('(set\x20via\x20file,\x20length='+_0x483143[_0x4a9a96(0x1d7)]+')'):a73_0x3215f0[_0x4a9a96(0x1e8)](_0x4a9a96(0x20d))));const _0x6f8780=Object[_0x4a9a96(0x211)](_0x3e346f[_0x4a9a96(0x1f6)]);if(_0x6f8780[_0x4a9a96(0x1d7)]>0x0){console[_0x4a9a96(0x1d4)](),console[_0x4a9a96(0x1d4)](a73_0x3215f0[_0x4a9a96(0x1d0)]('\x20\x20Apps')),console[_0x4a9a96(0x1d4)](a73_0x3215f0[_0x4a9a96(0x1e8)](_0x4a9a96(0x1f3)['repeat'](0x1e)));for(const _0x3777ba of _0x6f8780){const _0x2cd722=_0x3e346f[_0x4a9a96(0x1f6)][_0x3777ba],_0x423fae=_0x3777ba===_0x3e346f['defaultApp'],_0x1373de=_0x3777ba===_0x3e346f[_0x4a9a96(0x1e4)],_0x54d82b=_0x1373de?a73_0x3215f0[_0x4a9a96(0x1f5)](_0x4a9a96(0x1d3)):'',_0x500b63=_0x423fae?_0x4a9a96(0x1f4):'';console[_0x4a9a96(0x1d4)]('\x20\x20'+_0x3777ba+_0x500b63+_0x54d82b),console[_0x4a9a96(0x1d4)](_0x4a9a96(0x212)+_0x2cd722[_0x4a9a96(0x21a)]);const _0x274fa2=buildAppDoctorFields(_0x2cd722,{'env':_0x3e346f[_0x4a9a96(0x207)],'apiDir':_0x3e346f[_0x4a9a96(0x1d2)][_0x4a9a96(0x1f8)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x3e346f[_0x4a9a96(0x21f)]||_0x483143||undefined,'accessKey':_0x3e346f['accessKey']});console[_0x4a9a96(0x1d4)](_0x4a9a96(0x216)+_0x274fa2['env'][_0x4a9a96(0x1e2)]+'\x20\x20'+a73_0x3215f0['gray']('('+_0x274fa2['env'][_0x4a9a96(0x203)]+')')),console[_0x4a9a96(0x1d4)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x274fa2[_0x4a9a96(0x1f8)]['value']+'\x20\x20'+a73_0x3215f0[_0x4a9a96(0x1e8)]('('+_0x274fa2[_0x4a9a96(0x1f8)][_0x4a9a96(0x203)]+')'));const _0x500388=_0x274fa2[_0x4a9a96(0x21f)][_0x4a9a96(0x1e2)]?a73_0x3215f0[_0x4a9a96(0x1f5)](_0x4a9a96(0x1e3)+_0x274fa2[_0x4a9a96(0x21f)][_0x4a9a96(0x1e2)][_0x4a9a96(0x1d7)]+')'):a73_0x3215f0[_0x4a9a96(0x1e8)](_0x4a9a96(0x20d));console[_0x4a9a96(0x1d4)](_0x4a9a96(0x1d8)+_0x500388+'\x20\x20'+a73_0x3215f0[_0x4a9a96(0x1e8)]('('+_0x274fa2['cookie']['source']+')'));const _0x4286a7=_0x274fa2['accessKey'][_0x4a9a96(0x1e2)]?a73_0x3215f0[_0x4a9a96(0x1f5)]('(set,\x20length='+_0x274fa2['accessKey'][_0x4a9a96(0x1e2)][_0x4a9a96(0x1d7)]+')'):a73_0x3215f0[_0x4a9a96(0x1e8)](_0x4a9a96(0x20d));console[_0x4a9a96(0x1d4)](_0x4a9a96(0x20f)+_0x4286a7+'\x20\x20'+a73_0x3215f0['gray']('('+_0x274fa2[_0x4a9a96(0x21d)][_0x4a9a96(0x203)]+')'));}}console[_0x4a9a96(0x1d4)](),console['log'](a73_0x3215f0['bold']('\x20\x20API\x20Endpoints')),console[_0x4a9a96(0x1d4)](a73_0x3215f0['gray']('\x20\x20─'[_0x4a9a96(0x209)](0x1e))),console[_0x4a9a96(0x1d4)](_0x4a9a96(0x219)+getApiDomain()),console[_0x4a9a96(0x1d4)](_0x4a9a96(0x20c)+getUserDomain()),console[_0x4a9a96(0x1d4)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x4a9a96(0x1d4)](),console['log'](a73_0x3215f0[_0x4a9a96(0x1d0)](_0x4a9a96(0x21b))),console[_0x4a9a96(0x1d4)](a73_0x3215f0[_0x4a9a96(0x1e8)](_0x4a9a96(0x1f3)['repeat'](0x1e)));if(_0x483143){const _0x3aa1ef=await getIsSessionValid();console[_0x4a9a96(0x1d4)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3aa1ef?a73_0x3215f0[_0x4a9a96(0x1f5)](_0x4a9a96(0x21c)):a73_0x3215f0['red'](_0x4a9a96(0x1ee))));}else console[_0x4a9a96(0x1d4)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a73_0x3215f0[_0x4a9a96(0x1ef)](_0x4a9a96(0x1fa)));return console[_0x4a9a96(0x1d4)](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':'check','description':a73_0x50003f(0x1f1),'risk':a73_0x50003f(0x1ed),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ (function(_0x34275d,_0x49f4d3){const _0x5c0f3e=a73_0x3032,_0x5371ae=_0x34275d();while(!![]){try{const _0x4208a5=parseInt(_0x5c0f3e(0x1a5))/0x1*(parseInt(_0x5c0f3e(0x1bd))/0x2)+parseInt(_0x5c0f3e(0x1e5))/0x3+parseInt(_0x5c0f3e(0x1c7))/0x4*(parseInt(_0x5c0f3e(0x1eb))/0x5)+parseInt(_0x5c0f3e(0x1db))/0x6+-parseInt(_0x5c0f3e(0x1a3))/0x7*(-parseInt(_0x5c0f3e(0x1d8))/0x8)+-parseInt(_0x5c0f3e(0x1e8))/0x9*(parseInt(_0x5c0f3e(0x1e2))/0xa)+-parseInt(_0x5c0f3e(0x19a))/0xb;if(_0x4208a5===_0x49f4d3)break;else _0x5371ae['push'](_0x5371ae['shift']());}catch(_0x39123b){_0x5371ae['push'](_0x5371ae['shift']());}}}(a73_0x1cc1,0x5cae7));import a73_0x4de10b from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';function a73_0x3032(_0x32ec6a,_0x276d41){_0x32ec6a=_0x32ec6a-0x19a;const _0x1cc118=a73_0x1cc1();let _0x303227=_0x1cc118[_0x32ec6a];return _0x303227;}import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';function a73_0x1cc1(){const _0x4b1078=['(not\x20found)','(none)','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','4231310lXKSKT','\x20(default)','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','325971FcMZzd','appCode','pageSize','9JrxyUb','✗\x20Not\x20logged\x20in','apiDir','258005JHxeOR','green','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','12679458rJWmRl','missing','red','\x20\x20API\x20Endpoints','\x20\x20\x20\x20accessKey:\x20\x20','Project','\x20\x20Apps','accessKey','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','987PpjXvb','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','14euCYun','source','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','(no\x20file)','platform','value','apps','currentApp','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','empty','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','(missing)','log','cookie','\x20\x20─','format','keys','\x20\x20Auth','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','\x20\x20Config\x20Files','101466iTxSIy','✓\x20Valid','raw','✗\x20Invalid\x20JSON','repeat','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','slice','yellow','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','riskLevel','56uyPyBz','defaultApp','bold','Global','message','env','verbose','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','status','locale','length','(set,\x20length=','2864drSRnS','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','arch','2181726OkQfOP','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','gray'];a73_0x1cc1=function(){return _0x4b1078;};return a73_0x1cc1();}import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x3b65c5){const _0xd38bcd=a73_0x3032,_0x2b652c=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0xd38bcd(0x1c3)](0x0,0xa)+')':VERSION,_0x5d4589=buildConfigFromFlags({}),_0x39bc47=getCookie();console['log'](),console[_0xd38bcd(0x1b2)](a73_0x4de10b[_0xd38bcd(0x1c9)](CLI_BIN_NAME+'\x20doctor')),console['log'](a73_0x4de10b[_0xd38bcd(0x1de)]('─'[_0xd38bcd(0x1c1)](0x32))),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1e1)+_0x2b652c),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1a2)+process['version']),console['log']('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0xd38bcd(0x1a9)]+'\x20'+process[_0xd38bcd(0x1da)]),console['log'](),console[_0xd38bcd(0x1b2)](a73_0x4de10b['bold'](_0xd38bcd(0x1bc))),console[_0xd38bcd(0x1b2)](a73_0x4de10b['gray'](_0xd38bcd(0x1b4)[_0xd38bcd(0x1c1)](0x1e)));const _0x1e7c68=getGlobalConfigPath(),_0x3813b=getProjectConfigPath();console['log'](_0xd38bcd(0x1dd)+(_0x1e7c68||a73_0x4de10b[_0xd38bcd(0x1de)](_0xd38bcd(0x1df)))),console['log'](_0xd38bcd(0x1e4)+(_0x3813b||a73_0x4de10b[_0xd38bcd(0x1de)](_0xd38bcd(0x1df)))),console[_0xd38bcd(0x1b2)](),console[_0xd38bcd(0x1b2)](a73_0x4de10b['bold']('\x20\x20Config\x20JSON')),console[_0xd38bcd(0x1b2)](a73_0x4de10b[_0xd38bcd(0x1de)](_0xd38bcd(0x1b4)[_0xd38bcd(0x1c1)](0x1e)));const _0x5c2262=(_0x4889f5,_0x118089)=>{const _0x2e7e52=_0xd38bcd;if(!_0x118089){console[_0x2e7e52(0x1b2)]('\x20\x20'+_0x4889f5[_0x2e7e52(0x1d3)](0x11)+'\x20'+a73_0x4de10b['gray'](_0x2e7e52(0x1a8)));return;}const _0x385b02=inspectCliConfigJsonFile(_0x118089);if(_0x385b02['status']==='ok')console[_0x2e7e52(0x1b2)]('\x20\x20'+_0x4889f5[_0x2e7e52(0x1d3)](0x11)+'\x20'+a73_0x4de10b[_0x2e7e52(0x1ec)](_0x2e7e52(0x1bb)));else{if(_0x385b02[_0x2e7e52(0x1d4)]===_0x2e7e52(0x1af))console[_0x2e7e52(0x1b2)]('\x20\x20'+_0x4889f5[_0x2e7e52(0x1d3)](0x11)+'\x20'+a73_0x4de10b[_0x2e7e52(0x1c4)](_0x2e7e52(0x1b9)));else _0x385b02['status']===_0x2e7e52(0x19b)?console[_0x2e7e52(0x1b2)]('\x20\x20'+_0x4889f5['padEnd'](0x11)+'\x20'+a73_0x4de10b[_0x2e7e52(0x1de)](_0x2e7e52(0x1b1))):(console[_0x2e7e52(0x1b2)]('\x20\x20'+_0x4889f5[_0x2e7e52(0x1d3)](0x11)+'\x20'+a73_0x4de10b['red'](_0x2e7e52(0x1c0))),console[_0x2e7e52(0x1b2)]('\x20\x20'+''[_0x2e7e52(0x1d3)](0x11)+'\x20'+a73_0x4de10b[_0x2e7e52(0x19c)](_0x385b02[_0x2e7e52(0x1cb)])));}};_0x5c2262(_0xd38bcd(0x1ca),_0x1e7c68),_0x5c2262(_0xd38bcd(0x19f),_0x3813b),console['log'](),console[_0xd38bcd(0x1b2)](a73_0x4de10b[_0xd38bcd(0x1c9)](_0xd38bcd(0x1ae))),console[_0xd38bcd(0x1b2)](a73_0x4de10b['gray'](_0xd38bcd(0x1b4)[_0xd38bcd(0x1c1)](0x1e))),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1d9)+(_0x5d4589[_0xd38bcd(0x1e6)]||a73_0x4de10b['red']('(not\x20set)'))),console['log']('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5d4589[_0xd38bcd(0x1cc)]),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1cf)+_0x5d4589[_0xd38bcd(0x1d5)]),console['log'](_0xd38bcd(0x1ed)+_0x5d4589[_0xd38bcd(0x1ea)]),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1ba)+(_0x5d4589[_0xd38bcd(0x1c8)]||a73_0x4de10b[_0xd38bcd(0x1de)]('(none)'))),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1a4)+(_0x5d4589[_0xd38bcd(0x1ac)]||a73_0x4de10b[_0xd38bcd(0x1de)]('(none)'))),console[_0xd38bcd(0x1b2)]('\x20\x20explicitAppName:\x20'+(_0x5d4589['explicitAppName']||a73_0x4de10b['gray'](_0xd38bcd(0x1e0)))),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1dc)+(_0x5d4589[_0xd38bcd(0x1b5)]||a73_0x4de10b[_0xd38bcd(0x1de)]('(default:\x20'+DEFAULT_CONFIG_VALUES['format']+')'))),console['log'](_0xd38bcd(0x1c2)+(_0x5d4589[_0xd38bcd(0x1e7)]??a73_0x4de10b['gray']('(default)'))),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1ce)+_0x5d4589[_0xd38bcd(0x1c6)]),console[_0xd38bcd(0x1b2)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5d4589[_0xd38bcd(0x1cd)]),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1c5)+(_0x5d4589[_0xd38bcd(0x1b3)]?a73_0x4de10b[_0xd38bcd(0x1ec)]('(set,\x20length='+_0x5d4589[_0xd38bcd(0x1b3)][_0xd38bcd(0x1d6)]+')'):_0x39bc47?a73_0x4de10b[_0xd38bcd(0x1ec)]('(set\x20via\x20file,\x20length='+_0x39bc47[_0xd38bcd(0x1d6)]+')'):a73_0x4de10b[_0xd38bcd(0x1de)](_0xd38bcd(0x1e0))));const _0x2f065b=Object[_0xd38bcd(0x1b6)](_0x5d4589['apps']);if(_0x2f065b[_0xd38bcd(0x1d6)]>0x0){console[_0xd38bcd(0x1b2)](),console['log'](a73_0x4de10b[_0xd38bcd(0x1c9)](_0xd38bcd(0x1a0))),console[_0xd38bcd(0x1b2)](a73_0x4de10b[_0xd38bcd(0x1de)]('\x20\x20─'[_0xd38bcd(0x1c1)](0x1e)));for(const _0x8e4b62 of _0x2f065b){const _0x1a912b=_0x5d4589[_0xd38bcd(0x1ab)][_0x8e4b62],_0x35efae=_0x8e4b62===_0x5d4589[_0xd38bcd(0x1c8)],_0x2aee84=_0x8e4b62===_0x5d4589[_0xd38bcd(0x1ac)],_0x5ea6ce=_0x2aee84?a73_0x4de10b[_0xd38bcd(0x1ec)]('\x20←\x20current'):'',_0x269ed1=_0x35efae?_0xd38bcd(0x1e3):'';console[_0xd38bcd(0x1b2)]('\x20\x20'+_0x8e4b62+_0x269ed1+_0x5ea6ce),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1b0)+_0x1a912b['appcode']);const _0x11be0b=buildAppDoctorFields(_0x1a912b,{'env':_0x5d4589[_0xd38bcd(0x1cc)],'apiDir':_0x5d4589[_0xd38bcd(0x1bf)]['apiDir']||DEFAULT_CONFIG_VALUES[_0xd38bcd(0x1ea)],'cookie':_0x5d4589[_0xd38bcd(0x1b3)]||_0x39bc47||undefined,'accessKey':_0x5d4589[_0xd38bcd(0x1a1)]});console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1d2)+_0x11be0b[_0xd38bcd(0x1cc)]['value']+'\x20\x20'+a73_0x4de10b[_0xd38bcd(0x1de)]('('+_0x11be0b[_0xd38bcd(0x1cc)][_0xd38bcd(0x1a6)]+')')),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1ad)+_0x11be0b[_0xd38bcd(0x1ea)][_0xd38bcd(0x1aa)]+'\x20\x20'+a73_0x4de10b['gray']('('+_0x11be0b[_0xd38bcd(0x1ea)][_0xd38bcd(0x1a6)]+')'));const _0x4a5938=_0x11be0b[_0xd38bcd(0x1b3)][_0xd38bcd(0x1aa)]?a73_0x4de10b[_0xd38bcd(0x1ec)](_0xd38bcd(0x1d7)+_0x11be0b[_0xd38bcd(0x1b3)][_0xd38bcd(0x1aa)][_0xd38bcd(0x1d6)]+')'):a73_0x4de10b['gray']('(none)');console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1a7)+_0x4a5938+'\x20\x20'+a73_0x4de10b[_0xd38bcd(0x1de)]('('+_0x11be0b[_0xd38bcd(0x1b3)][_0xd38bcd(0x1a6)]+')'));const _0x5a3932=_0x11be0b['accessKey']['value']?a73_0x4de10b[_0xd38bcd(0x1ec)](_0xd38bcd(0x1d7)+_0x11be0b[_0xd38bcd(0x1a1)][_0xd38bcd(0x1aa)][_0xd38bcd(0x1d6)]+')'):a73_0x4de10b[_0xd38bcd(0x1de)](_0xd38bcd(0x1e0));console[_0xd38bcd(0x1b2)](_0xd38bcd(0x19e)+_0x5a3932+'\x20\x20'+a73_0x4de10b[_0xd38bcd(0x1de)]('('+_0x11be0b[_0xd38bcd(0x1a1)]['source']+')'));}}console['log'](),console[_0xd38bcd(0x1b2)](a73_0x4de10b['bold'](_0xd38bcd(0x19d))),console[_0xd38bcd(0x1b2)](a73_0x4de10b['gray'](_0xd38bcd(0x1b4)[_0xd38bcd(0x1c1)](0x1e))),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1d0)+getApiDomain()),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1b8)+getUserDomain()),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1d1)+getRuntimeDomain()),console[_0xd38bcd(0x1b2)](),console[_0xd38bcd(0x1b2)](a73_0x4de10b[_0xd38bcd(0x1c9)](_0xd38bcd(0x1b7))),console[_0xd38bcd(0x1b2)](a73_0x4de10b[_0xd38bcd(0x1de)](_0xd38bcd(0x1b4)[_0xd38bcd(0x1c1)](0x1e)));if(_0x39bc47){const _0x589cd6=await getIsSessionValid();console[_0xd38bcd(0x1b2)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x589cd6?a73_0x4de10b[_0xd38bcd(0x1ec)](_0xd38bcd(0x1be)):a73_0x4de10b[_0xd38bcd(0x19c)]('✗\x20Expired')));}else console[_0xd38bcd(0x1b2)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a73_0x4de10b['red'](_0xd38bcd(0x1e9)));return console[_0xd38bcd(0x1b2)](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':'check','description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a74_0x15630e=a74_0x2c19;(function(_0x5d91ab,_0xcda242){const _0x9b59b5=a74_0x2c19,_0x327556=_0x5d91ab();while(!![]){try{const _0x162644=parseInt(_0x9b59b5(0xf4))/0x1*(-parseInt(_0x9b59b5(0xf9))/0x2)+parseInt(_0x9b59b5(0xe5))/0x3*(parseInt(_0x9b59b5(0xfa))/0x4)+parseInt(_0x9b59b5(0x10f))/0x5*(parseInt(_0x9b59b5(0xee))/0x6)+-parseInt(_0x9b59b5(0x10b))/0x7+-parseInt(_0x9b59b5(0x103))/0x8+-parseInt(_0x9b59b5(0xe8))/0x9+-parseInt(_0x9b59b5(0xe3))/0xa*(-parseInt(_0x9b59b5(0x10a))/0xb);if(_0x162644===_0xcda242)break;else _0x327556['push'](_0x327556['shift']());}catch(_0x26b980){_0x327556['push'](_0x327556['shift']());}}}(a74_0x1c6d,0x5f4b9));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';function a74_0x2c19(_0x571cb1,_0x5ae090){_0x571cb1=_0x571cb1-0xe3;const _0x1c6d2a=a74_0x1c6d();let _0x2c196d=_0x1c6d2a[_0x571cb1];return _0x2c196d;}import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';function a74_0x1c6d(){const _0x327433=['global','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','\x0a✓\x20Successfully\x20initialized\x20','map','run','\x20\x20Env:\x20','2266HLYqyf','2465680haRBGD','valid','flagMissing','yes','144260zgITCz','106760knOMfP','project','175434jNRGzZ','validation','write','2518857ULMTAk','nonInteractive','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','env','production','检测到旧配置文件,正在自动升级...\x0a','24rqxeQJ','appCode','string','boolean','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','defaultApp','6AFiJiL','\x20\x20Config:\x20','Usage:\x20','Auto-confirm\x20prompts','cwd','252298OHvwIl','4NrffUK','join','log','str','some','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','appcode','bool','App\x20code\x20to\x20initialize\x20with','4750448SMiXFj'];a74_0x1c6d=function(){return _0x327433;};return a74_0x1c6d();}import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x40bf63){return{'appCode':_0x40bf63,'appName':_0x40bf63};}function writeInitConfig(_0xd3a190,_0x4306d0,_0xf23e19){const _0x4bfe24=a74_0x2c19,_0x2631e3=resolveWriteConfigPath(_0xd3a190),_0x2146ca=buildCanonicalProjectConfig({},{'appCodes':_0x4306d0['map'](_0x211aeb=>_0x211aeb[_0x4bfe24(0xef)]),'env':_0xf23e19,'metadata':{'version':getCliVersion(),'createdAt':new Date()['toLocaleString']()}});writeConfigFile(_0x2631e3,_0x2146ca);const _0x10b88c=_0xd3a190==='global'?_0x4bfe24(0x104):'project';console[_0x4bfe24(0xfc)](_0x4bfe24(0x106)+_0x10b88c+'\x20config'),console['log']('\x20\x20Apps:\x20'+_0x4306d0[_0x4bfe24(0x107)](_0x28e0ea=>_0x28e0ea[_0x4bfe24(0xef)])[_0x4bfe24(0xfb)](',\x20')),console[_0x4bfe24(0xfc)]('\x20\x20Default:\x20'+_0x2146ca[_0x4bfe24(0xf3)]),console[_0x4bfe24(0xfc)](_0x4bfe24(0x109)+_0x2146ca[_0x4bfe24(0xeb)]),console[_0x4bfe24(0xfc)](_0x4bfe24(0xf5)+_0x2631e3);}async function runSmartInit(_0x489b15){const _0x153867=a74_0x2c19,_0x29cf8d=process[_0x153867(0xf8)](),_0x3501e8=_0x489b15[_0x153867(0x101)](_0x153867(0x104))?_0x153867(0x104):_0x153867(0xe4),_0x43b87f=_0x489b15[_0x153867(0xfd)](_0x153867(0xeb))||_0x153867(0xec),_0x52d9cb=_0x489b15[_0x153867(0xfd)](_0x153867(0x100))||undefined,_0x3a484b=_0x489b15[_0x153867(0x101)](_0x153867(0xe4));if(_0x3a484b){const {initConfig:_0x5c15da}=await import('../../commands/project/init.js');return _0x5c15da({'appcode':_0x52d9cb,'env':_0x43b87f,'autoYes':_0x489b15[_0x153867(0x101)]('yes')});}if(_0x3501e8===_0x153867(0xe4)){const _0x51ec0d=existsSync(resolve(_0x29cf8d,NEW_CONFIG_NAME)),_0xec13ac=LEGACY_CONFIG_NAMES[_0x153867(0xfe)](_0x96c2dd=>existsSync(resolve(_0x29cf8d,_0x96c2dd)));if(_0xec13ac&&!_0x51ec0d)return console[_0x153867(0xfc)](_0x153867(0xed)),upgradeApp(_0x489b15[_0x153867(0xe9)],{'yes':_0x489b15['bool']('yes')});if(_0x51ec0d)throw CliErrors[_0x153867(0xe6)](_0x153867(0x105),'Use\x20`'+CLI_BIN_NAME+_0x153867(0xff));}if(_0x52d9cb){const _0x1cfb57=validateAppcode(_0x52d9cb);if(!_0x1cfb57[_0x153867(0x10c)])throw CliErrors[_0x153867(0xe6)](_0x1cfb57['message']);writeInitConfig(_0x3501e8,[syntheticApp(_0x52d9cb)],_0x43b87f);return;}if(_0x489b15[_0x153867(0xe9)])throw CliErrors[_0x153867(0x10d)](_0x153867(0x100),_0x153867(0xf6)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0x29ec30=getCookie(),_0x3f1950=await selectMultipleApps(_0x29ec30),_0x4f0e04=_0x3f1950==='custom'?[syntheticApp(await promptCustomAppcode())]:_0x3f1950;writeInitConfig(_0x3501e8,_0x4f0e04,_0x43b87f);}const initFlags=[{'name':a74_0x15630e(0x104),'type':a74_0x15630e(0xf1),'description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a74_0x15630e(0xeb),'type':a74_0x15630e(0xf0),'description':'Target\x20environment','default':a74_0x15630e(0xec),'enum':[...RABETBASE_ENV_VALUES]},{'name':a74_0x15630e(0x100),'type':a74_0x15630e(0xf0),'description':a74_0x15630e(0x102)},{'name':a74_0x15630e(0xe4),'type':a74_0x15630e(0xf1),'description':a74_0x15630e(0xea),'default':![]},{'name':a74_0x15630e(0x10e),'type':a74_0x15630e(0xf1),'description':a74_0x15630e(0xf7),'default':![]}];export const initDefinitions=[{'service':'init','command':a74_0x15630e(0x108),'description':a74_0x15630e(0xf2),'risk':a74_0x15630e(0xe7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x17d9c1){return await runSmartInit(_0x17d9c1),{'ok':!![]};}}];
1
+ const a74_0xedeeb=a74_0x58db;(function(_0x317f49,_0x3d4ae3){const _0x3dee8c=a74_0x58db,_0x17659d=_0x317f49();while(!![]){try{const _0x566360=-parseInt(_0x3dee8c(0xf8))/0x1*(-parseInt(_0x3dee8c(0xe9))/0x2)+parseInt(_0x3dee8c(0xf5))/0x3+parseInt(_0x3dee8c(0x103))/0x4+-parseInt(_0x3dee8c(0xe5))/0x5+parseInt(_0x3dee8c(0xf7))/0x6*(parseInt(_0x3dee8c(0xe8))/0x7)+-parseInt(_0x3dee8c(0xed))/0x8+-parseInt(_0x3dee8c(0xea))/0x9;if(_0x566360===_0x3d4ae3)break;else _0x17659d['push'](_0x17659d['shift']());}catch(_0x316ecc){_0x17659d['push'](_0x17659d['shift']());}}}(a74_0x2d4d,0xe6afd));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';function a74_0x58db(_0x54e571,_0x4c5465){_0x54e571=_0x54e571-0xe0;const _0x2d4d2d=a74_0x2d4d();let _0x58dbba=_0x2d4d2d[_0x54e571];return _0x58dbba;}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(_0x3c4a39){return{'appCode':_0x3c4a39,'appName':_0x3c4a39};}function writeInitConfig(_0x312d28,_0x85ed7a,_0xb71394){const _0x29ca2f=a74_0x58db,_0x39b1db=resolveWriteConfigPath(_0x312d28),_0x45740f=buildCanonicalProjectConfig({},{'appCodes':_0x85ed7a[_0x29ca2f(0x108)](_0x54238d=>_0x54238d['appCode']),'env':_0xb71394,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x29ca2f(0x10c)]()}});writeConfigFile(_0x39b1db,_0x45740f);const _0x92a8a9=_0x312d28===_0x29ca2f(0x109)?_0x29ca2f(0x109):_0x29ca2f(0xf3);console[_0x29ca2f(0x102)](_0x29ca2f(0x101)+_0x92a8a9+_0x29ca2f(0x10a)),console['log'](_0x29ca2f(0x107)+_0x85ed7a['map'](_0x503186=>_0x503186[_0x29ca2f(0x10b)])[_0x29ca2f(0xf1)](',\x20')),console[_0x29ca2f(0x102)](_0x29ca2f(0xf2)+_0x45740f[_0x29ca2f(0xf4)]),console[_0x29ca2f(0x102)](_0x29ca2f(0xeb)+_0x45740f[_0x29ca2f(0xe2)]),console[_0x29ca2f(0x102)]('\x20\x20Config:\x20'+_0x39b1db);}function a74_0x2d4d(){const _0x35254a=['2062tpPlRz','message','run','boolean','yes','write','production','some','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','\x0a✓\x20Successfully\x20initialized\x20','log','7506484krNTuX','cwd','appcode','str','\x20\x20Apps:\x20','map','global','\x20config','appCode','toLocaleString','nonInteractive','validation','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','Write\x20to\x20global\x20config\x20instead\x20of\x20project','env','bool','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','4651470MUABSd','../../commands/project/init.js','Use\x20`','555443dAeyup','950lFlwfi','8342982qtJZkJ','\x20\x20Env:\x20','Target\x20environment','14364984XuuveY','App\x20code\x20to\x20initialize\x20with','custom','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','join','\x20\x20Default:\x20','project','defaultApp','2606694ZxVowG','检测到旧配置文件,正在自动升级...\x0a','66Ryvhsx'];a74_0x2d4d=function(){return _0x35254a;};return a74_0x2d4d();}async function runSmartInit(_0x21325d){const _0x34181e=a74_0x58db,_0x328af4=process[_0x34181e(0x104)](),_0xc7149=_0x21325d[_0x34181e(0xe3)]('global')?_0x34181e(0x109):'project',_0x2fbb02=_0x21325d['str'](_0x34181e(0xe2))||_0x34181e(0xfe),_0xeb3e26=_0x21325d[_0x34181e(0x106)](_0x34181e(0x105))||undefined,_0x12dcf7=_0x21325d['bool'](_0x34181e(0xf3));if(_0x12dcf7){const {initConfig:_0x4895f3}=await import(_0x34181e(0xe6));return _0x4895f3({'appcode':_0xeb3e26,'env':_0x2fbb02,'autoYes':_0x21325d['bool'](_0x34181e(0xfc))});}if(_0xc7149==='project'){const _0x3cae41=existsSync(resolve(_0x328af4,NEW_CONFIG_NAME)),_0x3acfbd=LEGACY_CONFIG_NAMES[_0x34181e(0xff)](_0x294fb4=>existsSync(resolve(_0x328af4,_0x294fb4)));if(_0x3acfbd&&!_0x3cae41)return console[_0x34181e(0x102)](_0x34181e(0xf6)),upgradeApp(_0x21325d[_0x34181e(0x10d)],{'yes':_0x21325d['bool'](_0x34181e(0xfc))});if(_0x3cae41)throw CliErrors[_0x34181e(0x10e)](_0x34181e(0xf0),_0x34181e(0xe7)+CLI_BIN_NAME+_0x34181e(0xe4));}if(_0xeb3e26){const _0x3472a3=validateAppcode(_0xeb3e26);if(!_0x3472a3['valid'])throw CliErrors['validation'](_0x3472a3[_0x34181e(0xf9)]);writeInitConfig(_0xc7149,[syntheticApp(_0xeb3e26)],_0x2fbb02);return;}if(_0x21325d[_0x34181e(0x10d)])throw CliErrors['flagMissing']('appcode','Usage:\x20'+CLI_BIN_NAME+_0x34181e(0xe0));const _0x12c2c7=getCookie(),_0x50b2e=await selectMultipleApps(_0x12c2c7),_0x4eb4b6=_0x50b2e===_0x34181e(0xef)?[syntheticApp(await promptCustomAppcode())]:_0x50b2e;writeInitConfig(_0xc7149,_0x4eb4b6,_0x2fbb02);}const initFlags=[{'name':a74_0xedeeb(0x109),'type':'boolean','description':a74_0xedeeb(0xe1),'default':![]},{'name':a74_0xedeeb(0xe2),'type':'string','description':a74_0xedeeb(0xec),'default':'production','enum':[...RABETBASE_ENV_VALUES]},{'name':a74_0xedeeb(0x105),'type':'string','description':a74_0xedeeb(0xee)},{'name':'project','type':a74_0xedeeb(0xfb),'description':a74_0xedeeb(0x10f),'default':![]},{'name':a74_0xedeeb(0xfc),'type':'boolean','description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':'init','command':a74_0xedeeb(0xfa),'description':a74_0xedeeb(0x100),'risk':a74_0xedeeb(0xfd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x127090){return await runSmartInit(_0x127090),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x526668,_0x3fce95){const _0x4c30b9=a75_0x5562,_0x28b432=_0x526668();while(!![]){try{const _0x2ac957=-parseInt(_0x4c30b9(0xbe))/0x1+parseInt(_0x4c30b9(0xc2))/0x2+-parseInt(_0x4c30b9(0xbd))/0x3+-parseInt(_0x4c30b9(0xc1))/0x4*(parseInt(_0x4c30b9(0xc3))/0x5)+parseInt(_0x4c30b9(0xc4))/0x6+-parseInt(_0x4c30b9(0xc0))/0x7+-parseInt(_0x4c30b9(0xc5))/0x8*(-parseInt(_0x4c30b9(0xbf))/0x9);if(_0x2ac957===_0x3fce95)break;else _0x28b432['push'](_0x28b432['shift']());}catch(_0x27a7f6){_0x28b432['push'](_0x28b432['shift']());}}}(a75_0x1952,0x9df9b));function a75_0x5562(_0x2d2194,_0x558849){_0x2d2194=_0x2d2194-0xbd;const _0x1952bb=a75_0x1952();let _0x5562c1=_0x1952bb[_0x2d2194];return _0x5562c1;}import{issueReport}from'../../commands/issue/report.js';function a75_0x1952(){const _0x1bbf67=['2991522PrUSKA','72yJLISz','2820468kOfKqe','563392uTaGsH','1916658kjhWlY','843381fKmxAx','1828zZOaLX','924584aOiNjk','6635cCSaSz'];a75_0x1952=function(){return _0x1bbf67;};return a75_0x1952();}export const issueDefinitions=[issueReport];
1
+ (function(_0x538f63,_0x3fc84a){const _0x26eab1=a75_0x1339,_0x398721=_0x538f63();while(!![]){try{const _0x1f062e=-parseInt(_0x26eab1(0x178))/0x1*(parseInt(_0x26eab1(0x173))/0x2)+-parseInt(_0x26eab1(0x172))/0x3+parseInt(_0x26eab1(0x175))/0x4+parseInt(_0x26eab1(0x177))/0x5*(parseInt(_0x26eab1(0x179))/0x6)+-parseInt(_0x26eab1(0x17a))/0x7*(parseInt(_0x26eab1(0x17b))/0x8)+parseInt(_0x26eab1(0x174))/0x9*(parseInt(_0x26eab1(0x171))/0xa)+parseInt(_0x26eab1(0x176))/0xb;if(_0x1f062e===_0x3fc84a)break;else _0x398721['push'](_0x398721['shift']());}catch(_0xbbff92){_0x398721['push'](_0x398721['shift']());}}}(a75_0x4fea,0xe83b5));function a75_0x4fea(){const _0x3dee9f=['7415682dYsXir','42LtrnZp','609032RGRlZY','2330eCqyyw','3949959lSBucF','2pfKBmo','42111rpNHgl','6788256CSIOqt','2231284TnGRcQ','5NjaVVK','1501414lLvYSY'];a75_0x4fea=function(){return _0x3dee9f;};return a75_0x4fea();}import{issueReport}from'../../commands/issue/report.js';function a75_0x1339(_0x3ea4ff,_0x4845ea){_0x3ea4ff=_0x3ea4ff-0x171;const _0x4fea04=a75_0x4fea();let _0x133978=_0x4fea04[_0x3ea4ff];return _0x133978;}export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a76_0x2a6721=a76_0x14b0;function a76_0x14b0(_0x2db67a,_0x5b0766){_0x2db67a=_0x2db67a-0xa3;const _0x28e7b1=a76_0x28e7();let _0x14b0bd=_0x28e7b1[_0x2db67a];return _0x14b0bd;}(function(_0xac8b9e,_0x5b9d99){const _0x74a1d3=a76_0x14b0,_0x4c1b92=_0xac8b9e();while(!![]){try{const _0x4bae49=parseInt(_0x74a1d3(0xb8))/0x1*(parseInt(_0x74a1d3(0xbc))/0x2)+parseInt(_0x74a1d3(0xc5))/0x3+parseInt(_0x74a1d3(0xcf))/0x4*(parseInt(_0x74a1d3(0xb5))/0x5)+-parseInt(_0x74a1d3(0xa5))/0x6+parseInt(_0x74a1d3(0xb7))/0x7*(-parseInt(_0x74a1d3(0xa7))/0x8)+parseInt(_0x74a1d3(0xb2))/0x9+parseInt(_0x74a1d3(0xaa))/0xa;if(_0x4bae49===_0x5b9d99)break;else _0x4c1b92['push'](_0x4c1b92['shift']());}catch(_0x1059ff){_0x4c1b92['push'](_0x4c1b92['shift']());}}}(a76_0x28e7,0x2d126));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a76_0x2a6721(0xd0);export const issueReport={'service':a76_0x2a6721(0xa8),'command':a76_0x2a6721(0xa9),'description':a76_0x2a6721(0xbe),'risk':'write','requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a76_0x2a6721(0xb1),'flags':[{'name':'title','type':'string','required':!![],'description':a76_0x2a6721(0xc8)},{'name':a76_0x2a6721(0xc1),'type':a76_0x2a6721(0xd1),'description':a76_0x2a6721(0xa3)},{'name':DESCRIPTION_FILE_FLAG,'type':'string','description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x335fb7){const _0x3069c7=a76_0x2a6721,_0x5114b9=_0x335fb7[_0x3069c7(0xc4)](_0x3069c7(0xce))['trim'](),_0x3e8d70=_0x335fb7[_0x3069c7(0xc4)](_0x3069c7(0xc1))[_0x3069c7(0xb4)](),_0x549cd9=_0x335fb7[_0x3069c7(0xc4)](DESCRIPTION_FILE_FLAG)[_0x3069c7(0xb4)]();if(!_0x5114b9)throw CliErrors[_0x3069c7(0xc9)]('title',_0x3069c7(0xa6));const _0x433490=_0x3e8d70[_0x3069c7(0xc6)]>0x0,_0x5ef93d=_0x549cd9[_0x3069c7(0xc6)]>0x0;if(_0x433490===_0x5ef93d)throw CliErrors[_0x3069c7(0xb6)]('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.',_0x3069c7(0xba));if(_0x5ef93d){const _0x230e57=resolve(process[_0x3069c7(0xa4)](),_0x549cd9);if(!existsSync(_0x230e57))throw CliErrors[_0x3069c7(0xb6)](_0x3069c7(0xbb)+_0x230e57);}},async 'dryRun'(_0x1666a5){const _0x584d95=a76_0x2a6721,_0x4ee9b0=await prepareIssueReport(_0x1666a5);return{'method':'POST','url':_0x584d95(0xcb)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x4ee9b0[_0x584d95(0xce)],'issue.description':_0x4ee9b0[_0x584d95(0xc1)]}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter',_0x584d95(0xb9)+_0x4ee9b0[_0x584d95(0xbd)],_0x4ee9b0[_0x584d95(0xca)]?_0x584d95(0xcd)+_0x4ee9b0['descriptionFilePath']:null][_0x584d95(0xc0)](Boolean)[_0x584d95(0xc2)]('\x0a')};},async 'execute'(_0x5a350b){const _0x3ed7cd=a76_0x2a6721,_0x353d36=await prepareIssueReport(_0x5a350b);try{await sendPlatformIssueCollectLog({'title':_0x353d36[_0x3ed7cd(0xce)],'description':_0x353d36['description']});}catch(_0x5edf8f){throw CliErrors['apiError'](_0x3ed7cd(0xb3)+(_0x5edf8f instanceof Error?_0x5edf8f[_0x3ed7cd(0xac)]:String(_0x5edf8f)),_0x3ed7cd(0xbf));}return{'ok':!![],'message':'Platform\x20issue\x20reported','data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x3ed7cd(0xad),_0x3ed7cd(0xaf)],'issue':{'title':_0x353d36['title'],'descriptionLength':_0x353d36['description']['length'],'descriptionSource':_0x353d36[_0x3ed7cd(0xbd)],..._0x353d36[_0x3ed7cd(0xca)]?{'descriptionFile':_0x353d36['descriptionFilePath']}:{}}}};}};async function prepareIssueReport(_0x79f62b){const _0x53ac9f=a76_0x2a6721,_0x212bf1=_0x79f62b[_0x53ac9f(0xc4)](_0x53ac9f(0xce))[_0x53ac9f(0xb4)](),_0x36b8c0=_0x79f62b['str']('description'),_0xb65f6f=_0x79f62b[_0x53ac9f(0xc4)](DESCRIPTION_FILE_FLAG)[_0x53ac9f(0xb4)]();if(!_0xb65f6f){const _0x10ca47=_0x36b8c0;if(!_0x10ca47['trim']())throw CliErrors[_0x53ac9f(0xb6)](_0x53ac9f(0xae),_0x53ac9f(0xc3));return{'title':_0x212bf1,'description':_0x10ca47,'descriptionSource':_0x53ac9f(0xd2)};}const _0x3ca17d=resolve(process['cwd'](),_0xb65f6f),_0xb9bfdd=await readFile(_0x3ca17d,_0x53ac9f(0xb0));if(!_0xb9bfdd['trim']())throw CliErrors[_0x53ac9f(0xb6)](_0x53ac9f(0xcc)+_0x3ca17d,_0x53ac9f(0xc7));return{'title':_0x212bf1,'description':_0xb9bfdd,'descriptionSource':_0x53ac9f(0xab),'descriptionFilePath':_0x3ca17d};}function a76_0x28e7(){const _0x32a09d=['Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','One-line\x20issue\x20summary','flagMissing','descriptionFilePath','otel://','Issue\x20description\x20file\x20is\x20empty:\x20','descriptionFile:\x20','title','96girvqe','description-file','string','inline','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','cwd','1818108gTCqiu','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','2934544dafDDi','issue','report','2621830nIeKwl','file','message','issue.title','Issue\x20description\x20cannot\x20be\x20empty.','issue.description','utf8','compress','2215647FIKbWo','Failed\x20to\x20report\x20platform\x20issue:\x20','trim','20645iwKhTr','validation','7ecbgfs','77521wgIEkm','descriptionSource:\x20','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','File\x20not\x20found:\x20','2AgDeXN','descriptionSource','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','filter','description','join','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','str','508401Kkdull','length'];a76_0x28e7=function(){return _0x32a09d;};return a76_0x28e7();}
1
+ const a76_0x114c0f=a76_0x191f;(function(_0x17c4fb,_0x35bf6d){const _0x1afa33=a76_0x191f,_0xc3a50=_0x17c4fb();while(!![]){try{const _0x80b9ee=parseInt(_0x1afa33(0x133))/0x1+-parseInt(_0x1afa33(0x13e))/0x2+-parseInt(_0x1afa33(0x12f))/0x3*(-parseInt(_0x1afa33(0x13d))/0x4)+parseInt(_0x1afa33(0x13c))/0x5+-parseInt(_0x1afa33(0x12a))/0x6+-parseInt(_0x1afa33(0x141))/0x7*(-parseInt(_0x1afa33(0x127))/0x8)+-parseInt(_0x1afa33(0x148))/0x9*(-parseInt(_0x1afa33(0x131))/0xa);if(_0x80b9ee===_0x35bf6d)break;else _0xc3a50['push'](_0xc3a50['shift']());}catch(_0x3a848e){_0xc3a50['push'](_0xc3a50['shift']());}}}(a76_0x26ea,0xc3d8d));function a76_0x26ea(){const _0x558703=['write','filter','descriptionSource:\x20','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','utf8','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','411930JbqqnS','1684kjustR','880208soNVDO','One-line\x20issue\x20summary','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','2224327IHeSFz','Failed\x20to\x20report\x20platform\x20issue:\x20','Issue\x20description\x20cannot\x20be\x20empty.','descriptionSource','inline','POST','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','18YSPHzO','Issue\x20description\x20file\x20is\x20empty:\x20','cwd','report','trim','description-file','title','message','descriptionFilePath','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','join','flagMissing','issue.description','8tPzLCm','Platform\x20issue\x20reported','descriptionFile:\x20','7562448daIUpS','validation','issue.title','string','length','2841wkergN','str','5637850cdKsON','file','576297gOAWmc','File\x20not\x20found:\x20','description'];a76_0x26ea=function(){return _0x558703;};return a76_0x26ea();}import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';function a76_0x191f(_0x3a009a,_0x275dba){_0x3a009a=_0x3a009a-0x122;const _0x26ea36=a76_0x26ea();let _0x191fc8=_0x26ea36[_0x3a009a];return _0x191fc8;}import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a76_0x114c0f(0x14d);export const issueReport={'service':'issue','command':a76_0x114c0f(0x14b),'description':a76_0x114c0f(0x139),'risk':a76_0x114c0f(0x136),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':'compress','flags':[{'name':a76_0x114c0f(0x14e),'type':a76_0x114c0f(0x12d),'required':!![],'description':a76_0x114c0f(0x13f)},{'name':'description','type':'string','description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a76_0x114c0f(0x12d),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x28286a){const _0x12087a=a76_0x114c0f,_0x5234d9=_0x28286a['str']('title')['trim'](),_0xf112ad=_0x28286a[_0x12087a(0x130)](_0x12087a(0x135))['trim'](),_0x5a3b87=_0x28286a[_0x12087a(0x130)](DESCRIPTION_FILE_FLAG)[_0x12087a(0x14c)]();if(!_0x5234d9)throw CliErrors[_0x12087a(0x125)](_0x12087a(0x14e),_0x12087a(0x123));const _0x39c10e=_0xf112ad[_0x12087a(0x12e)]>0x0,_0x25b693=_0x5a3b87[_0x12087a(0x12e)]>0x0;if(_0x39c10e===_0x25b693)throw CliErrors['validation']('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.',_0x12087a(0x13b));if(_0x25b693){const _0x1a0a59=resolve(process[_0x12087a(0x14a)](),_0x5a3b87);if(!existsSync(_0x1a0a59))throw CliErrors[_0x12087a(0x12b)](_0x12087a(0x134)+_0x1a0a59);}},async 'dryRun'(_0x562acd){const _0x2ee734=a76_0x114c0f,_0x4bb46f=await prepareIssueReport(_0x562acd);return{'method':_0x2ee734(0x146),'url':'otel://'+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x4bb46f[_0x2ee734(0x14e)],'issue.description':_0x4bb46f[_0x2ee734(0x135)]}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter',_0x2ee734(0x138)+_0x4bb46f['descriptionSource'],_0x4bb46f[_0x2ee734(0x122)]?_0x2ee734(0x129)+_0x4bb46f[_0x2ee734(0x122)]:null][_0x2ee734(0x137)](Boolean)[_0x2ee734(0x124)]('\x0a')};},async 'execute'(_0x23d73b){const _0xcdf951=a76_0x114c0f,_0x55bdc1=await prepareIssueReport(_0x23d73b);try{await sendPlatformIssueCollectLog({'title':_0x55bdc1['title'],'description':_0x55bdc1[_0xcdf951(0x135)]});}catch(_0x239256){throw CliErrors['apiError'](_0xcdf951(0x142)+(_0x239256 instanceof Error?_0x239256[_0xcdf951(0x14f)]:String(_0x239256)),_0xcdf951(0x140));}return{'ok':!![],'message':_0xcdf951(0x128),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0xcdf951(0x12c),_0xcdf951(0x126)],'issue':{'title':_0x55bdc1[_0xcdf951(0x14e)],'descriptionLength':_0x55bdc1[_0xcdf951(0x135)][_0xcdf951(0x12e)],'descriptionSource':_0x55bdc1[_0xcdf951(0x144)],..._0x55bdc1[_0xcdf951(0x122)]?{'descriptionFile':_0x55bdc1[_0xcdf951(0x122)]}:{}}}};}};async function prepareIssueReport(_0x58fd42){const _0x4f122a=a76_0x114c0f,_0x74f66c=_0x58fd42['str'](_0x4f122a(0x14e))[_0x4f122a(0x14c)](),_0x35f5a6=_0x58fd42[_0x4f122a(0x130)](_0x4f122a(0x135)),_0x5eb528=_0x58fd42[_0x4f122a(0x130)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x5eb528){const _0x5475a6=_0x35f5a6;if(!_0x5475a6[_0x4f122a(0x14c)]())throw CliErrors[_0x4f122a(0x12b)](_0x4f122a(0x143),_0x4f122a(0x147));return{'title':_0x74f66c,'description':_0x5475a6,'descriptionSource':_0x4f122a(0x145)};}const _0x68f549=resolve(process['cwd'](),_0x5eb528),_0x503453=await readFile(_0x68f549,_0x4f122a(0x13a));if(!_0x503453[_0x4f122a(0x14c)]())throw CliErrors[_0x4f122a(0x12b)](_0x4f122a(0x149)+_0x68f549,'Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.');return{'title':_0x74f66c,'description':_0x503453,'descriptionSource':_0x4f122a(0x132),'descriptionFilePath':_0x68f549};}
@@ -1 +1 @@
1
- const a77_0x40449e=a77_0x5760;(function(_0x126f6d,_0xd11623){const _0x42663d=a77_0x5760,_0x2a593b=_0x126f6d();while(!![]){try{const _0x489a36=parseInt(_0x42663d(0x10c))/0x1*(-parseInt(_0x42663d(0x122))/0x2)+-parseInt(_0x42663d(0x113))/0x3+-parseInt(_0x42663d(0x120))/0x4+parseInt(_0x42663d(0x123))/0x5+-parseInt(_0x42663d(0x112))/0x6*(-parseInt(_0x42663d(0x11a))/0x7)+-parseInt(_0x42663d(0x11e))/0x8*(-parseInt(_0x42663d(0x11c))/0x9)+-parseInt(_0x42663d(0x118))/0xa*(-parseInt(_0x42663d(0x121))/0xb);if(_0x489a36===_0xd11623)break;else _0x2a593b['push'](_0x2a593b['shift']());}catch(_0x2566ff){_0x2a593b['push'](_0x2a593b['shift']());}}}(a77_0x410c,0x5f9d7));import{logger}from'../../utils/logger.js';function printLogs(_0x407f3d){const _0x194301=a77_0x5760;if(_0x407f3d[_0x194301(0x126)]===0x0){console['log'](_0x194301(0x12d));return;}console[_0x194301(0x12e)](_0x194301(0x115)),_0x407f3d['forEach']((_0x386df4,_0x95cc85)=>{const _0x3da96e=_0x194301,_0x58e29a=new Date(_0x386df4[_0x3da96e(0x10f)])[_0x3da96e(0x11d)]('en-US'),_0x294bb1=_0x386df4[_0x3da96e(0x130)]===_0x3da96e(0x129)?'√':_0x386df4[_0x3da96e(0x130)]===_0x3da96e(0x114)?'×':_0x386df4[_0x3da96e(0x130)]===_0x3da96e(0x11f)?'!':'i';console[_0x3da96e(0x12e)](_0x95cc85+0x1+'.\x20'+_0x294bb1+'\x20['+_0x386df4[_0x3da96e(0x116)]+']\x20'+_0x386df4[_0x3da96e(0x128)]),console['log'](_0x3da96e(0x125)+_0x58e29a),_0x386df4[_0x3da96e(0x110)]&&console[_0x3da96e(0x12e)](_0x3da96e(0x12f)+_0x386df4[_0x3da96e(0x110)]+'ms'),_0x386df4['details']&&Object['keys'](_0x386df4[_0x3da96e(0x111)])['length']>0x0&&console[_0x3da96e(0x12e)](_0x3da96e(0x119)+JSON[_0x3da96e(0x10d)](_0x386df4['details'],null,0x2)),console[_0x3da96e(0x12e)]('');});}function a77_0x410c(){const _0x1de9cd=['11WeBdIS','80026jstYqm','1963085tapCKg','write','\x20\x20\x20Time:\x20','length','clear','message','success','Clear\x20command\x20history\x20logs','*\x20Logs\x20cleared','logs','*\x20No\x20logs\x20found','log','\x20\x20\x20Duration:\x20','level','show','8QgWJvq','stringify','read','timestamp','duration','details','6HDOQDy','1872183bCWIWl','error','*\x20Lovrabet\x20CLI\x20logs:\x0a','command','clearLogs','1643710ohSSqV','\x20\x20\x20Details:\x20','4166995zVoxKY','View\x20command\x20history\x20logs','38169jJRfqH','toLocaleString','824MmNNwX','warn','1013168tFhLBt'];a77_0x410c=function(){return _0x1de9cd;};return a77_0x410c();}function a77_0x5760(_0x2a29d7,_0x142077){_0x2a29d7=_0x2a29d7-0x10c;const _0x410ce4=a77_0x410c();let _0x576027=_0x410ce4[_0x2a29d7];return _0x576027;}export const logsDefinitions=[{'service':a77_0x40449e(0x12c),'command':a77_0x40449e(0x131),'description':a77_0x40449e(0x11b),'risk':a77_0x40449e(0x10e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x3008a6){return printLogs(logger['readLogs']()),{'ok':!![]};}},{'service':'logs','command':a77_0x40449e(0x127),'description':a77_0x40449e(0x12a),'risk':a77_0x40449e(0x124),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x549f4d){const _0x2a0760=a77_0x40449e;return logger[_0x2a0760(0x117)](),console[_0x2a0760(0x12e)](_0x2a0760(0x12b)),{'ok':!![]};}}];
1
+ function a77_0x76e5(_0x42c6f5,_0x554b7e){_0x42c6f5=_0x42c6f5-0x103;const _0x4c4c57=a77_0x4c4c();let _0x76e550=_0x4c4c57[_0x42c6f5];return _0x76e550;}function a77_0x4c4c(){const _0x562244=['196329yxeNzB','en-US','stringify','command','1247982YOCrmY','*\x20Logs\x20cleared','*\x20Lovrabet\x20CLI\x20logs:\x0a','436571rkgPtq','\x20\x20\x20Time:\x20','read','*\x20No\x20logs\x20found','level','warn','View\x20command\x20history\x20logs','logs','keys','20MVmzYl','log','timestamp','clearLogs','duration','details','447092GqifoW','90rAZuFe','3588080ZWtSYR','forEach','write','\x20\x20\x20Duration:\x20','2KNDwRw','toLocaleString','4483128FuEwvN','success','error','18CtgLFm','26179890ApXpXc','show'];a77_0x4c4c=function(){return _0x562244;};return a77_0x4c4c();}const a77_0x27e125=a77_0x76e5;(function(_0x227ef9,_0x519cf6){const _0x50a5d2=a77_0x76e5,_0xadb05a=_0x227ef9();while(!![]){try{const _0x362e6d=-parseInt(_0x50a5d2(0x111))/0x1*(parseInt(_0x50a5d2(0x126))/0x2)+-parseInt(_0x50a5d2(0x10e))/0x3+-parseInt(_0x50a5d2(0x120))/0x4*(parseInt(_0x50a5d2(0x11a))/0x5)+-parseInt(_0x50a5d2(0x121))/0x6*(parseInt(_0x50a5d2(0x10a))/0x7)+parseInt(_0x50a5d2(0x104))/0x8+parseInt(_0x50a5d2(0x107))/0x9*(-parseInt(_0x50a5d2(0x122))/0xa)+parseInt(_0x50a5d2(0x108))/0xb;if(_0x362e6d===_0x519cf6)break;else _0xadb05a['push'](_0xadb05a['shift']());}catch(_0x27e0f1){_0xadb05a['push'](_0xadb05a['shift']());}}}(a77_0x4c4c,0x7aa83));import{logger}from'../../utils/logger.js';function printLogs(_0x571ba1){const _0x5e0ce8=a77_0x76e5;if(_0x571ba1['length']===0x0){console[_0x5e0ce8(0x11b)](_0x5e0ce8(0x114));return;}console[_0x5e0ce8(0x11b)](_0x5e0ce8(0x110)),_0x571ba1[_0x5e0ce8(0x123)]((_0x59fe5c,_0x3402db)=>{const _0x2b2ac9=_0x5e0ce8,_0x4cda52=new Date(_0x59fe5c[_0x2b2ac9(0x11c)])[_0x2b2ac9(0x103)](_0x2b2ac9(0x10b)),_0x3509bd=_0x59fe5c[_0x2b2ac9(0x115)]===_0x2b2ac9(0x105)?'√':_0x59fe5c[_0x2b2ac9(0x115)]===_0x2b2ac9(0x106)?'×':_0x59fe5c[_0x2b2ac9(0x115)]===_0x2b2ac9(0x116)?'!':'i';console['log'](_0x3402db+0x1+'.\x20'+_0x3509bd+'\x20['+_0x59fe5c[_0x2b2ac9(0x10d)]+']\x20'+_0x59fe5c['message']),console[_0x2b2ac9(0x11b)](_0x2b2ac9(0x112)+_0x4cda52),_0x59fe5c['duration']&&console['log'](_0x2b2ac9(0x125)+_0x59fe5c[_0x2b2ac9(0x11e)]+'ms'),_0x59fe5c[_0x2b2ac9(0x11f)]&&Object[_0x2b2ac9(0x119)](_0x59fe5c['details'])['length']>0x0&&console['log']('\x20\x20\x20Details:\x20'+JSON[_0x2b2ac9(0x10c)](_0x59fe5c[_0x2b2ac9(0x11f)],null,0x2)),console['log']('');});}export const logsDefinitions=[{'service':a77_0x27e125(0x118),'command':a77_0x27e125(0x109),'description':a77_0x27e125(0x117),'risk':a77_0x27e125(0x113),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x285709){return printLogs(logger['readLogs']()),{'ok':!![]};}},{'service':'logs','command':'clear','description':'Clear\x20command\x20history\x20logs','risk':a77_0x27e125(0x124),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1afa58){const _0x570de7=a77_0x27e125;return logger[_0x570de7(0x11d)](),console['log'](_0x570de7(0x10f)),{'ok':!![]};}}];
@@ -1 +1 @@
1
- function a78_0x337e(_0x214862,_0x4dc617){_0x214862=_0x214862-0x7e;const _0x48ecde=a78_0x48ec();let _0x337e68=_0x48ecde[_0x214862];return _0x337e68;}(function(_0x205a23,_0x4ca47b){const _0x3c1830=a78_0x337e,_0x414402=_0x205a23();while(!![]){try{const _0x5c04f6=parseInt(_0x3c1830(0x80))/0x1*(-parseInt(_0x3c1830(0x7f))/0x2)+-parseInt(_0x3c1830(0x82))/0x3+-parseInt(_0x3c1830(0x84))/0x4*(-parseInt(_0x3c1830(0x88))/0x5)+-parseInt(_0x3c1830(0x89))/0x6*(-parseInt(_0x3c1830(0x87))/0x7)+-parseInt(_0x3c1830(0x83))/0x8+parseInt(_0x3c1830(0x81))/0x9*(parseInt(_0x3c1830(0x86))/0xa)+-parseInt(_0x3c1830(0x7e))/0xb*(-parseInt(_0x3c1830(0x85))/0xc);if(_0x5c04f6===_0x4ca47b)break;else _0x414402['push'](_0x414402['shift']());}catch(_0x1d5965){_0x414402['push'](_0x414402['shift']());}}}(a78_0x48ec,0x8ebff));function a78_0x48ec(){const _0x194ed5=['12rOCRkh','2232080FZyUln','245sZEAdT','5XrxQOl','20562YNxJTn','20852953ukhHsn','289210BNrqDM','2jYtCvq','9nWplgL','707835oQUZOP','9276760YkMXmH','122308ygHQvv'];a78_0x48ec=function(){return _0x194ed5;};return a78_0x48ec();}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuSync,menuUpdate];
1
+ (function(_0x2c8eac,_0x1418a1){const _0x1c89a5=a78_0x333d,_0x573316=_0x2c8eac();while(!![]){try{const _0x9ceb30=-parseInt(_0x1c89a5(0xe9))/0x1*(-parseInt(_0x1c89a5(0xe0))/0x2)+-parseInt(_0x1c89a5(0xe3))/0x3*(-parseInt(_0x1c89a5(0xe1))/0x4)+parseInt(_0x1c89a5(0xe8))/0x5*(parseInt(_0x1c89a5(0xe5))/0x6)+parseInt(_0x1c89a5(0xe6))/0x7*(parseInt(_0x1c89a5(0xec))/0x8)+parseInt(_0x1c89a5(0xea))/0x9*(-parseInt(_0x1c89a5(0xe4))/0xa)+-parseInt(_0x1c89a5(0xe7))/0xb*(parseInt(_0x1c89a5(0xe2))/0xc)+parseInt(_0x1c89a5(0xeb))/0xd;if(_0x9ceb30===_0x1418a1)break;else _0x573316['push'](_0x573316['shift']());}catch(_0x4f80e6){_0x573316['push'](_0x573316['shift']());}}}(a78_0x349e,0x3e111));function a78_0x333d(_0x32063e,_0x2477dd){_0x32063e=_0x32063e-0xe0;const _0x349e68=a78_0x349e();let _0x333de0=_0x349e68[_0x32063e];return _0x333de0;}function a78_0x349e(){const _0x2b413a=['13049zpmlAI','6354EdeAws','2811744cmUlMg','349656cOhEwR','4hDshUR','328JSkhLk','216cSZkEA','15459JATgPM','4670OhDmFW','1134582GYUonL','14haHWfA','218482erVgsq','5lNxBnl'];a78_0x349e=function(){return _0x2b413a;};return a78_0x349e();}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuSync,menuUpdate];
@@ -1 +1 @@
1
- function a79_0xa325(_0x23ef04,_0x11c9f7){_0x23ef04=_0x23ef04-0x85;const _0x51eb8e=a79_0x51eb();let _0xa3259f=_0x51eb8e[_0x23ef04];return _0xa3259f;}function a79_0x51eb(){const _0x1e412d=['length','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','28626SqyKIy','5061159khlqvA','push','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','273715kUJvyI','map','local','\x20\x20\x20\x20CSS:\x20','test','6050665LwiNQb','3EKitUe','8CDIvUZ','\x20\x20\x20\x20JS:\x20\x20','3082148dphCOv','showOnline','3067150TzWefr','(unchanged)','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','\x20\x20Affected\x20menus:\x20','repeat','join','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','Platform','180dqlPsz','192mwaxsw','Local','33fxjPjg','\x20\x20\x20\x20•\x20','247821SNIKQE','Menu\x20Name','max','44CwDWPs','path','label'];a79_0x51eb=function(){return _0x1e412d;};return a79_0x51eb();}(function(_0x3358b0,_0xf363c){const _0x24b1a9=a79_0xa325,_0x4d877d=_0x3358b0();while(!![]){try{const _0x1f2201=-parseInt(_0x24b1a9(0xa5))/0x1*(parseInt(_0x24b1a9(0x86))/0x2)+-parseInt(_0x24b1a9(0x90))/0x3*(-parseInt(_0x24b1a9(0x93))/0x4)+-parseInt(_0x24b1a9(0x8f))/0x5+parseInt(_0x24b1a9(0x9d))/0x6*(parseInt(_0x24b1a9(0xa2))/0x7)+parseInt(_0x24b1a9(0x91))/0x8*(-parseInt(_0x24b1a9(0x87))/0x9)+parseInt(_0x24b1a9(0x95))/0xa*(parseInt(_0x24b1a9(0xa0))/0xb)+-parseInt(_0x24b1a9(0x9e))/0xc*(-parseInt(_0x24b1a9(0x8a))/0xd);if(_0x1f2201===_0xf363c)break;else _0x4d877d['push'](_0x4d877d['shift']());}catch(_0x6fe5ba){_0x4d877d['push'](_0x4d877d['shift']());}}}(a79_0x51eb,0xa7d24));function strWidth(_0x1da776){const _0x39c3ff=a79_0xa325;let _0x244e26=0x0;for(const _0x1d7dae of _0x1da776){_0x244e26+=/[\u4e00-\u9fa5]/[_0x39c3ff(0x8e)](_0x1d7dae)?0x2:0x1;}return _0x244e26;}function padRight(_0x1e8995,_0x7fe3c5){const _0x134459=strWidth(_0x1e8995);return _0x1e8995+'\x20'['repeat'](Math['max'](0x0,_0x7fe3c5-_0x134459));}export function renderCompareTable(_0x2103f6,_0x3159ea={}){const _0x124a63=a79_0xa325;if(_0x2103f6[_0x124a63(0xa8)]===0x0)return'';const _0xf0aca1=_0x3159ea[_0x124a63(0x94)]??!![],_0x4334c3=Math[_0x124a63(0xa4)](0x1e,..._0x2103f6[_0x124a63(0x8b)](_0x128712=>strWidth(_0x128712['label']))),_0x3504d0=0x4,_0x3fa2fe=[],_0x3116f8='\x20\x20'+padRight(_0x124a63(0xa3),_0x4334c3),_0x5e52ad=padRight(_0x124a63(0x9f),_0x3504d0),_0x3a5def=_0xf0aca1?'\x20\x20'+padRight(_0x124a63(0x9c),_0x3504d0):'';_0x3fa2fe[_0x124a63(0x88)](_0x3116f8+'\x20\x20'+_0x5e52ad+(_0xf0aca1?_0x3a5def:'')),_0x3fa2fe[_0x124a63(0x88)]('\x20\x20'+'─'['repeat'](_0x4334c3)+'\x20\x20'+'─'['repeat'](_0x3504d0)+(_0xf0aca1?'\x20\x20'+'─'[_0x124a63(0x99)](_0x3504d0):''));for(const _0xebb055 of _0x2103f6){const _0x4ba46c=padRight(_0xebb055[_0x124a63(0xa7)],_0x4334c3),_0x15b839=_0xebb055[_0x124a63(0x8c)]?'✓':'✗',_0x104db6=padRight(_0x15b839,_0x3504d0);let _0x374ae0='\x20\x20'+_0x4ba46c+'\x20\x20'+_0x104db6;if(_0xf0aca1){const _0x4bad4d=_0xebb055['online']?'✓':'✗';_0x374ae0+='\x20\x20'+padRight(_0x4bad4d,_0x3504d0);}_0x3fa2fe['push'](_0x374ae0);}return _0x3fa2fe['join']('\x0a');}export function renderSyncSummary(_0xdb85e1,_0x25be30){const _0x5bb288=a79_0xa325;if(_0xdb85e1[_0x5bb288(0xa8)]===0x0)return _0x25be30?_0x5bb288(0x85):'\x20\x20No\x20pages\x20to\x20sync.';const _0x5906d9=['\x20\x20'+_0xdb85e1[_0x5bb288(0xa8)]+_0x5bb288(0x89)];for(const _0xe54d9d of _0xdb85e1){_0x5906d9['push'](_0x5bb288(0xa1)+_0xe54d9d[_0x5bb288(0xa7)]+'\x20('+_0xe54d9d[_0x5bb288(0xa6)]+')');}return _0x5906d9[_0x5bb288(0x9a)]('\x0a');}export function renderUpdateSummary(_0x28ab1a,_0x423789){const _0x3f02ce=a79_0xa325;if(_0x28ab1a['length']===0x0)return _0x3f02ce(0x9b);const _0xd21ec7=['\x20\x20'+_0x28ab1a['length']+_0x3f02ce(0x97),_0x3f02ce(0x92)+(_0x423789[0x0]??_0x3f02ce(0x96)),_0x3f02ce(0x8d)+(_0x423789[0x1]??_0x3f02ce(0x96)),'',_0x3f02ce(0x98)+_0x28ab1a[_0x3f02ce(0x9a)](',\x20')];return _0xd21ec7[_0x3f02ce(0x9a)]('\x0a');}
1
+ function a79_0x648a(_0x4fd1b8,_0x4e3d96){_0x4fd1b8=_0x4fd1b8-0x1cf;const _0x2b4d1f=a79_0x2b4d();let _0x648a56=_0x2b4d1f[_0x4fd1b8];return _0x648a56;}(function(_0x261d9f,_0x3f151a){const _0xa57847=a79_0x648a,_0x2f76af=_0x261d9f();while(!![]){try{const _0x2cde78=-parseInt(_0xa57847(0x1e4))/0x1*(parseInt(_0xa57847(0x1e3))/0x2)+-parseInt(_0xa57847(0x1d8))/0x3+parseInt(_0xa57847(0x1dc))/0x4*(parseInt(_0xa57847(0x1e2))/0x5)+parseInt(_0xa57847(0x1ee))/0x6*(-parseInt(_0xa57847(0x1d9))/0x7)+-parseInt(_0xa57847(0x1df))/0x8+-parseInt(_0xa57847(0x1e1))/0x9+parseInt(_0xa57847(0x1cf))/0xa*(parseInt(_0xa57847(0x1d0))/0xb);if(_0x2cde78===_0x3f151a)break;else _0x2f76af['push'](_0x2f76af['shift']());}catch(_0xb9c4bd){_0x2f76af['push'](_0x2f76af['shift']());}}}(a79_0x2b4d,0xdf1ab));function strWidth(_0x391a57){const _0xfa1086=a79_0x648a;let _0x329146=0x0;for(const _0xb611ca of _0x391a57){_0x329146+=/[\u4e00-\u9fa5]/[_0xfa1086(0x1ea)](_0xb611ca)?0x2:0x1;}return _0x329146;}function a79_0x2b4d(){const _0x4ef6d3=['\x20\x20\x20\x20CSS:\x20','Local','1847992ZdbVMo','Platform','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','4843520lAjeyi','repeat','11088117UoyRSI','5Qizjni','4xBOKfM','736732YUceXt','path','Menu\x20Name','label','length','showOnline','test','map','local','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','6GpYMRc','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','284360QsqryU','2574nOcAbO','online','(unchanged)','\x20\x20No\x20pages\x20to\x20sync.','max','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','join','push','5133783FFWDgK','8260063HpodsS'];a79_0x2b4d=function(){return _0x4ef6d3;};return a79_0x2b4d();}function padRight(_0x2e1078,_0xdaa96a){const _0x41bec4=a79_0x648a,_0x44f601=strWidth(_0x2e1078);return _0x2e1078+'\x20'[_0x41bec4(0x1e0)](Math['max'](0x0,_0xdaa96a-_0x44f601));}export function renderCompareTable(_0xe3527b,_0x3abe4c={}){const _0x5da151=a79_0x648a;if(_0xe3527b[_0x5da151(0x1e8)]===0x0)return'';const _0x42089c=_0x3abe4c[_0x5da151(0x1e9)]??!![],_0x28d13c=Math[_0x5da151(0x1d4)](0x1e,..._0xe3527b[_0x5da151(0x1eb)](_0x2c6d3d=>strWidth(_0x2c6d3d['label']))),_0x4870d4=0x4,_0xf649e0=[],_0x2e6c39='\x20\x20'+padRight(_0x5da151(0x1e6),_0x28d13c),_0x1f9f35=padRight(_0x5da151(0x1db),_0x4870d4),_0x43f6d2=_0x42089c?'\x20\x20'+padRight(_0x5da151(0x1dd),_0x4870d4):'';_0xf649e0[_0x5da151(0x1d7)](_0x2e6c39+'\x20\x20'+_0x1f9f35+(_0x42089c?_0x43f6d2:'')),_0xf649e0[_0x5da151(0x1d7)]('\x20\x20'+'─'['repeat'](_0x28d13c)+'\x20\x20'+'─'[_0x5da151(0x1e0)](_0x4870d4)+(_0x42089c?'\x20\x20'+'─'[_0x5da151(0x1e0)](_0x4870d4):''));for(const _0x36772b of _0xe3527b){const _0x23177d=padRight(_0x36772b[_0x5da151(0x1e7)],_0x28d13c),_0x1baf12=_0x36772b[_0x5da151(0x1ec)]?'✓':'✗',_0xf98a2=padRight(_0x1baf12,_0x4870d4);let _0x4c29f0='\x20\x20'+_0x23177d+'\x20\x20'+_0xf98a2;if(_0x42089c){const _0x3afe62=_0x36772b[_0x5da151(0x1d1)]?'✓':'✗';_0x4c29f0+='\x20\x20'+padRight(_0x3afe62,_0x4870d4);}_0xf649e0[_0x5da151(0x1d7)](_0x4c29f0);}return _0xf649e0['join']('\x0a');}export function renderSyncSummary(_0x3dbe35,_0x4186d9){const _0x335d84=a79_0x648a;if(_0x3dbe35[_0x335d84(0x1e8)]===0x0)return _0x4186d9?_0x335d84(0x1ef):_0x335d84(0x1d3);const _0x703b56=['\x20\x20'+_0x3dbe35[_0x335d84(0x1e8)]+_0x335d84(0x1d5)];for(const _0x4101c2 of _0x3dbe35){_0x703b56[_0x335d84(0x1d7)]('\x20\x20\x20\x20•\x20'+_0x4101c2['label']+'\x20('+_0x4101c2[_0x335d84(0x1e5)]+')');}return _0x703b56[_0x335d84(0x1d6)]('\x0a');}export function renderUpdateSummary(_0x133aac,_0x5d964f){const _0x2386d0=a79_0x648a;if(_0x133aac[_0x2386d0(0x1e8)]===0x0)return _0x2386d0(0x1de);const _0x348592=['\x20\x20'+_0x133aac[_0x2386d0(0x1e8)]+_0x2386d0(0x1ed),'\x20\x20\x20\x20JS:\x20\x20'+(_0x5d964f[0x0]??_0x2386d0(0x1d2)),_0x2386d0(0x1da)+(_0x5d964f[0x1]??_0x2386d0(0x1d2)),'','\x20\x20Affected\x20menus:\x20'+_0x133aac[_0x2386d0(0x1d6)](',\x20')];return _0x348592[_0x2386d0(0x1d6)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0xf3826,_0x49d0b6){var _0x269618=a80_0x4ee5,_0x37da5a=_0xf3826();while(!![]){try{var _0x4a4642=-parseInt(_0x269618(0x8b))/0x1+-parseInt(_0x269618(0x92))/0x2*(-parseInt(_0x269618(0x8a))/0x3)+-parseInt(_0x269618(0x93))/0x4+parseInt(_0x269618(0x90))/0x5+parseInt(_0x269618(0x8e))/0x6+-parseInt(_0x269618(0x91))/0x7*(-parseInt(_0x269618(0x8c))/0x8)+-parseInt(_0x269618(0x8d))/0x9*(parseInt(_0x269618(0x8f))/0xa);if(_0x4a4642===_0x49d0b6)break;else _0x37da5a['push'](_0x37da5a['shift']());}catch(_0x45fafe){_0x37da5a['push'](_0x37da5a['shift']());}}}(a80_0x5cfe,0x3a9da));export*from'../../../commands/menu/shared/types.js';function a80_0x4ee5(_0x431b19,_0x142ffe){_0x431b19=_0x431b19-0x8a;var _0x5cfe9d=a80_0x5cfe();var _0x4ee52d=_0x5cfe9d[_0x431b19];return _0x4ee52d;}export*from'../../../commands/menu/shared/logic.js';function a80_0x5cfe(){var _0x18148a=['23520JIABKp','279304HTFwiS','27GFeoKB','1856040kOBSmz','1939170VmbUbD','848080jstzGk','91deQzBa','146tHQbcZ','1651300IsYgFp','13371TyLQHW'];a80_0x5cfe=function(){return _0x18148a;};return a80_0x5cfe();}export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
1
+ (function(_0x1feb02,_0x28dbe3){var _0x57f502=a80_0x1895,_0x107d5c=_0x1feb02();while(!![]){try{var _0x5d5bad=-parseInt(_0x57f502(0x1c9))/0x1+-parseInt(_0x57f502(0x1c6))/0x2*(-parseInt(_0x57f502(0x1c3))/0x3)+-parseInt(_0x57f502(0x1cc))/0x4*(-parseInt(_0x57f502(0x1c8))/0x5)+parseInt(_0x57f502(0x1c4))/0x6*(parseInt(_0x57f502(0x1cb))/0x7)+parseInt(_0x57f502(0x1c5))/0x8*(-parseInt(_0x57f502(0x1c7))/0x9)+-parseInt(_0x57f502(0x1cd))/0xa+parseInt(_0x57f502(0x1ca))/0xb*(parseInt(_0x57f502(0x1c2))/0xc);if(_0x5d5bad===_0x28dbe3)break;else _0x107d5c['push'](_0x107d5c['shift']());}catch(_0x28e74f){_0x107d5c['push'](_0x107d5c['shift']());}}}(a80_0x48d0,0x553f5));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';function a80_0x48d0(){var _0x26096e=['8968iUlbRm','5803590AqvJJz','456mZCyZQ','19353JqRoUT','6RewYYu','48eFFTPM','214lOAakr','627048Avwttf','235XKiqnj','371785mWtpOq','196702dvMsIJ','1709414OGAyGG'];a80_0x48d0=function(){return _0x26096e;};return a80_0x48d0();}export*from'../../../commands/menu/shared/service.js';function a80_0x1895(_0x20a03c,_0x26e147){_0x20a03c=_0x20a03c-0x1c2;var _0x48d057=a80_0x48d0();var _0x189594=_0x48d057[_0x20a03c];return _0x189594;}export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
@@ -1 +1 @@
1
- (function(_0x23c6fd,_0x20ef28){const _0x458bca=a81_0x133c,_0x2d292e=_0x23c6fd();while(!![]){try{const _0x10e7a5=parseInt(_0x458bca(0xaf))/0x1+parseInt(_0x458bca(0xd4))/0x2*(-parseInt(_0x458bca(0xd6))/0x3)+parseInt(_0x458bca(0xca))/0x4*(-parseInt(_0x458bca(0xc3))/0x5)+-parseInt(_0x458bca(0xb5))/0x6+parseInt(_0x458bca(0xd5))/0x7*(parseInt(_0x458bca(0xc0))/0x8)+-parseInt(_0x458bca(0xbf))/0x9*(-parseInt(_0x458bca(0xc1))/0xa)+parseInt(_0x458bca(0xcd))/0xb;if(_0x10e7a5===_0x20ef28)break;else _0x2d292e['push'](_0x2d292e['shift']());}catch(_0x4278fd){_0x2d292e['push'](_0x2d292e['shift']());}}}(a81_0x4184,0x22e80));import a81_0x315dfb from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a81_0x32486b from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function a81_0x133c(_0x45f253,_0x437e90){_0x45f253=_0x45f253-0xaf;const _0x418459=a81_0x4184();let _0x133c15=_0x418459[_0x45f253];return _0x133c15;}function onCancel(_0x40ea43){return _0x40ea43['catch'](_0xfc71a5=>{const _0x402d8d=a81_0x133c;if(_0xfc71a5?.[_0x402d8d(0xc8)]==='ExitPromptError')throw CliErrors[_0x402d8d(0xba)]('Cancelled.');throw _0xfc71a5;});}export function startSpinner(_0x2686a3){const _0x24ef7b=a81_0x133c;return a81_0x32486b({'text':_0x2686a3,'color':_0x24ef7b(0xbd)})['start']();}export function stopSpinner(_0x2f5540,_0x4a4d95,_0x4e3fd3){const _0x15ecf6=a81_0x133c;_0x4e3fd3?_0x2f5540['succeed'](_0x4a4d95):_0x2f5540[_0x15ecf6(0xb9)](_0x4a4d95);}export async function askConfirm(_0x1c28be){return onCancel(confirm({'message':_0x1c28be,'theme':{'prefix':''}}));}export async function askJsUrl(_0x3d5871){const _0x2c68ca=a81_0x133c;while(!![]){const _0x1ca539=await onCancel(input({'message':_0x2c68ca(0xcf),'default':_0x3d5871,'theme':{'prefix':''}}));if(_0x1ca539[_0x2c68ca(0xc4)]()==='')throw CliErrors['cancelled']('Cancelled.');if(!/^https:\/\/.+\.js(\?.*)?$/['test'](_0x1ca539[_0x2c68ca(0xc4)]())){console['error'](a81_0x315dfb[_0x2c68ca(0xcc)](_0x2c68ca(0xc5)));continue;}const _0x4e1aea=startSpinner('\x20\x20Checking\x20JS\x20URL\x20reachability...');try{const _0x239df2=await isUrlReachable(_0x1ca539[_0x2c68ca(0xc4)]());stopSpinner(_0x4e1aea,_0x2c68ca(0xb8),_0x239df2);if(!_0x239df2){console['error'](a81_0x315dfb['red'](_0x2c68ca(0xd1)));continue;}return _0x1ca539[_0x2c68ca(0xc4)]();}catch(_0x3203a1){stopSpinner(_0x4e1aea,_0x2c68ca(0xce),![]);throw _0x3203a1;}}}export async function askCssUrl(_0x3c039e){const _0x55c42a=a81_0x133c;while(!![]){const _0x1f7343=await onCancel(input({'message':_0x55c42a(0xb2),'default':_0x3c039e,'theme':{'prefix':''}}));if(_0x1f7343['trim']()==='')throw CliErrors[_0x55c42a(0xba)](_0x55c42a(0xb1));if(!/^https:\/\/.+\.css(\?.*)?$/['test'](_0x1f7343['trim']())){console[_0x55c42a(0xb7)](a81_0x315dfb[_0x55c42a(0xcc)](_0x55c42a(0xc7)));continue;}const _0x3712ef=startSpinner(_0x55c42a(0xbb));try{const _0x691d3d=await isUrlReachable(_0x1f7343['trim']());stopSpinner(_0x3712ef,'CSS\x20URL\x20checked',_0x691d3d);if(!_0x691d3d){console[_0x55c42a(0xb7)](a81_0x315dfb['red'](_0x55c42a(0xc6)));continue;}return _0x1f7343['trim']();}catch(_0x304c0f){stopSpinner(_0x3712ef,_0x55c42a(0xc9),![]);throw _0x304c0f;}}}export async function selectPages(_0x5d62a3,_0xc86b2b,_0x367450){const _0x375fed=a81_0x133c,_0x1d8fb1=_0x5d62a3[_0x375fed(0xd0)](_0x41a81f=>({'name':_0x41a81f[_0x375fed(0xb3)]+'\x20\x20'+(_0xc86b2b[_0x375fed(0xbe)](_0x41a81f['path'])?a81_0x315dfb[_0x375fed(0xb6)]('[already\x20on\x20platform]'):a81_0x315dfb['green']('[new]')),'value':_0x41a81f[_0x375fed(0xb3)],'checked':_0x367450?_0x367450['includes'](_0x41a81f[_0x375fed(0xb3)]):!_0xc86b2b[_0x375fed(0xbe)](_0x41a81f[_0x375fed(0xbc)])}));if(_0x1d8fb1[_0x375fed(0xb4)]===0x0)throw new Error(_0x375fed(0xd3));const _0x5475c8=await onCancel(checkbox({'message':_0x375fed(0xd2),'choices':_0x1d8fb1,'loop':![],'theme':{'prefix':''}}));if(_0x5475c8[_0x375fed(0xb4)]===0x0)throw new Error('No\x20menus\x20selected.');return _0x5d62a3['filter'](_0x7ffa7b=>_0x5475c8['includes'](_0x7ffa7b[_0x375fed(0xb3)]));}export function isInteractive(){const _0x505600=a81_0x133c;return process['stdin'][_0x505600(0xcb)]===!![];}function a81_0x4184(){const _0x3eb1d0=['\x20\x20JS\x20URL:','map','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','No\x20local\x20pages\x20found.','2042Cfseht','525dvFeks','618RKOTWk','52859dbkWIF','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','Cancelled.','\x20\x20CSS\x20URL:','label','length','515028EzojjS','gray','error','JS\x20URL\x20checked','fail','cancelled','\x20\x20Checking\x20CSS\x20URL\x20reachability...','path','cyan','has','27HOUmjd','2592XYrGUY','85970HZtTDX','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','415aBaMtw','trim','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','name','CSS\x20URL\x20check\x20failed','6740HWHorE','isTTY','red','5236495tgwYxQ','JS\x20URL\x20check\x20failed'];a81_0x4184=function(){return _0x3eb1d0;};return a81_0x4184();}export function requireInteractive(){const _0x5dcfcd=a81_0x133c;if(!isInteractive())throw new Error(_0x5dcfcd(0xc2)+_0x5dcfcd(0xb0));}
1
+ (function(_0xcccb96,_0x70a6d6){const _0x5f43c1=a81_0x20e0,_0x25f9cc=_0xcccb96();while(!![]){try{const _0x2b73ac=-parseInt(_0x5f43c1(0x15e))/0x1+parseInt(_0x5f43c1(0x14f))/0x2+-parseInt(_0x5f43c1(0x138))/0x3*(-parseInt(_0x5f43c1(0x15f))/0x4)+-parseInt(_0x5f43c1(0x15b))/0x5+parseInt(_0x5f43c1(0x149))/0x6*(parseInt(_0x5f43c1(0x150))/0x7)+-parseInt(_0x5f43c1(0x14e))/0x8+-parseInt(_0x5f43c1(0x13a))/0x9;if(_0x2b73ac===_0x70a6d6)break;else _0x25f9cc['push'](_0x25f9cc['shift']());}catch(_0x32301b){_0x25f9cc['push'](_0x25f9cc['shift']());}}}(a81_0x521d,0x7afbb));import a81_0x4f3355 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a81_0x3a2df9 from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0xf4682e){const _0x2b2622=a81_0x20e0;return _0xf4682e[_0x2b2622(0x140)](_0x5b8127=>{const _0x1d7e95=_0x2b2622;if(_0x5b8127?.['name']===_0x1d7e95(0x13f))throw CliErrors[_0x1d7e95(0x159)]('Cancelled.');throw _0x5b8127;});}export function startSpinner(_0x3d24e3){const _0x18721b=a81_0x20e0;return a81_0x3a2df9({'text':_0x3d24e3,'color':_0x18721b(0x152)})[_0x18721b(0x157)]();}export function stopSpinner(_0x19110d,_0x4f3b5a,_0x5cbb01){const _0x8fd88f=a81_0x20e0;_0x5cbb01?_0x19110d[_0x8fd88f(0x133)](_0x4f3b5a):_0x19110d[_0x8fd88f(0x13d)](_0x4f3b5a);}export async function askConfirm(_0x38cd2b){return onCancel(confirm({'message':_0x38cd2b,'theme':{'prefix':''}}));}function a81_0x521d(){const _0x50a8ab=['includes','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','\x20\x20CSS\x20URL:','CSS\x20URL\x20checked','start','No\x20local\x20pages\x20found.','cancelled','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','2377225CsBijZ','Cancelled.','isTTY','249264jdYZbq','8ZmUJqQ','\x20\x20JS\x20URL:','succeed','[already\x20on\x20platform]','has','\x20\x20Checking\x20JS\x20URL\x20reachability...','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','446103pqACbr','gray','938871IvZGRt','map','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','fail','[new]','ExitPromptError','catch','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','green','test','CSS\x20URL\x20check\x20failed','label','\x20\x20Checking\x20CSS\x20URL\x20reachability...','trim','red','24qbouhM','No\x20menus\x20selected.','stdin','filter','error','1161832NfCHtk','1108396icYQXV','1096193LVZAkX','path','cyan'];a81_0x521d=function(){return _0x50a8ab;};return a81_0x521d();}export async function askJsUrl(_0x53eca6){const _0x2ce8d9=a81_0x20e0;while(!![]){const _0x333496=await onCancel(input({'message':_0x2ce8d9(0x132),'default':_0x53eca6,'theme':{'prefix':''}}));if(_0x333496['trim']()==='')throw CliErrors[_0x2ce8d9(0x159)](_0x2ce8d9(0x15c));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x2ce8d9(0x143)](_0x333496['trim']())){console[_0x2ce8d9(0x14d)](a81_0x4f3355[_0x2ce8d9(0x148)]('\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'));continue;}const _0x4e55a8=startSpinner(_0x2ce8d9(0x136));try{const _0x272a0d=await isUrlReachable(_0x333496['trim']());stopSpinner(_0x4e55a8,'JS\x20URL\x20checked',_0x272a0d);if(!_0x272a0d){console[_0x2ce8d9(0x14d)](a81_0x4f3355[_0x2ce8d9(0x148)](_0x2ce8d9(0x154)));continue;}return _0x333496[_0x2ce8d9(0x147)]();}catch(_0x5c1751){stopSpinner(_0x4e55a8,'JS\x20URL\x20check\x20failed',![]);throw _0x5c1751;}}}function a81_0x20e0(_0x5c3e89,_0x2051e3){_0x5c3e89=_0x5c3e89-0x132;const _0x521dd8=a81_0x521d();let _0x20e09c=_0x521dd8[_0x5c3e89];return _0x20e09c;}export async function askCssUrl(_0x2fdbf9){const _0x36c870=a81_0x20e0;while(!![]){const _0x3ce3ec=await onCancel(input({'message':_0x36c870(0x155),'default':_0x2fdbf9,'theme':{'prefix':''}}));if(_0x3ce3ec[_0x36c870(0x147)]()==='')throw CliErrors['cancelled'](_0x36c870(0x15c));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x36c870(0x143)](_0x3ce3ec[_0x36c870(0x147)]())){console[_0x36c870(0x14d)](a81_0x4f3355[_0x36c870(0x148)](_0x36c870(0x15a)));continue;}const _0x215798=startSpinner(_0x36c870(0x146));try{const _0x3d4953=await isUrlReachable(_0x3ce3ec[_0x36c870(0x147)]());stopSpinner(_0x215798,_0x36c870(0x156),_0x3d4953);if(!_0x3d4953){console[_0x36c870(0x14d)](a81_0x4f3355['red'](_0x36c870(0x13c)));continue;}return _0x3ce3ec['trim']();}catch(_0x1a9a37){stopSpinner(_0x215798,_0x36c870(0x144),![]);throw _0x1a9a37;}}}export async function selectPages(_0x3b6b84,_0x18a92d,_0x595247){const _0x114ee6=a81_0x20e0,_0x9a729b=_0x3b6b84[_0x114ee6(0x13b)](_0x5b9531=>({'name':_0x5b9531[_0x114ee6(0x145)]+'\x20\x20'+(_0x18a92d['has'](_0x5b9531[_0x114ee6(0x151)])?a81_0x4f3355[_0x114ee6(0x139)](_0x114ee6(0x134)):a81_0x4f3355[_0x114ee6(0x142)](_0x114ee6(0x13e))),'value':_0x5b9531[_0x114ee6(0x145)],'checked':_0x595247?_0x595247['includes'](_0x5b9531[_0x114ee6(0x145)]):!_0x18a92d[_0x114ee6(0x135)](_0x5b9531['path'])}));if(_0x9a729b['length']===0x0)throw new Error(_0x114ee6(0x158));const _0x447366=await onCancel(checkbox({'message':'\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','choices':_0x9a729b,'loop':![],'theme':{'prefix':''}}));if(_0x447366['length']===0x0)throw new Error(_0x114ee6(0x14a));return _0x3b6b84[_0x114ee6(0x14c)](_0x25105d=>_0x447366[_0x114ee6(0x153)](_0x25105d[_0x114ee6(0x145)]));}export function isInteractive(){const _0xe0d398=a81_0x20e0;return process[_0xe0d398(0x14b)][_0xe0d398(0x15d)]===!![];}export function requireInteractive(){const _0x202273=a81_0x20e0;if(!isInteractive())throw new Error(_0x202273(0x137)+_0x202273(0x141));}
@@ -1 +1 @@
1
- const a82_0x5c6c6c=a82_0x5b03;(function(_0x5eb0c4,_0xa224c7){const _0x15c59c=a82_0x5b03,_0x517942=_0x5eb0c4();while(!![]){try{const _0x4056d0=parseInt(_0x15c59c(0x1cc))/0x1*(parseInt(_0x15c59c(0x1df))/0x2)+parseInt(_0x15c59c(0x1ce))/0x3+parseInt(_0x15c59c(0x1d3))/0x4+parseInt(_0x15c59c(0x1e0))/0x5*(parseInt(_0x15c59c(0x1c7))/0x6)+-parseInt(_0x15c59c(0x1d0))/0x7*(parseInt(_0x15c59c(0x1d1))/0x8)+-parseInt(_0x15c59c(0x1d7))/0x9+-parseInt(_0x15c59c(0x1de))/0xa;if(_0x4056d0===_0xa224c7)break;else _0x517942['push'](_0x517942['shift']());}catch(_0x1e8177){_0x517942['push'](_0x517942['shift']());}}}(a82_0x508c,0xb0b70));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a82_0x5c6c6c(0x1db)](),a82_0x5c6c6c(0x1cb));function a82_0x5b03(_0x2ace5e,_0x4197b2){_0x2ace5e=_0x2ace5e-0x1c7;const _0x508cf6=a82_0x508c();let _0x5b03c6=_0x508cf6[_0x2ace5e];return _0x5b03c6;}export function extractTitleFromComment(_0x5b6657){const _0x1be008=a82_0x5c6c6c;try{const _0x5e2175=readFileSync(_0x5b6657,_0x1be008(0x1cf)),_0x20552b=_0x5e2175['match'](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x20552b&&_0x20552b[0x1]){const _0x14f46a=_0x20552b[0x1],_0x202492=_0x14f46a[_0x1be008(0x1cd)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x202492&&_0x202492[0x1])return _0x202492[0x1][_0x1be008(0x1c8)]();}let _0x37ec29=null;const _0x3df542=_0x5e2175[_0x1be008(0x1cd)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x3df542&&_0x3df542[0x1]&&(_0x37ec29=_0x3df542[0x1]);if(!_0x37ec29){const _0x272324=_0x5e2175[_0x1be008(0x1cd)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x272324&&_0x272324[0x1]&&(_0x37ec29=_0x272324[0x1]);}if(_0x37ec29){const _0x6abccf=new RegExp('\x5cb'+_0x37ec29+_0x1be008(0x1d2)),_0x4c0cf4=_0x5e2175[_0x1be008(0x1cd)](_0x6abccf);if(_0x4c0cf4&&_0x4c0cf4[0x1])return _0x4c0cf4[0x1];return _0x37ec29;}return null;}catch(_0x7e14a5){return null;}}export function getLocalPages(_0x53cd07=pagesDir,_0x104e29=pagesDir){const _0x25fa95=a82_0x5c6c6c;let _0x48629b=[];const _0x4f7f73=readdirSync(_0x53cd07);return _0x4f7f73[_0x25fa95(0x1c9)](_0x4f1ead=>{const _0x1c1275=_0x25fa95,_0x61eb6=join(_0x53cd07,_0x4f1ead),_0x359dd4=statSync(_0x61eb6);if(_0x359dd4&&_0x359dd4['isDirectory']())_0x48629b=_0x48629b[_0x1c1275(0x1d6)](getLocalPages(_0x61eb6,_0x104e29));else{if(_0x4f1ead[_0x1c1275(0x1d5)](_0x1c1275(0x1dc))){let _0x4f7b08=relative(_0x104e29,_0x61eb6);_0x4f7b08[_0x1c1275(0x1d5)](_0x1c1275(0x1da))?_0x4f7b08=_0x4f7b08[_0x1c1275(0x1d8)](/index\.tsx$/,''):_0x4f7b08=_0x4f7b08[_0x1c1275(0x1d8)](/\.tsx$/,'');_0x4f7b08[_0x1c1275(0x1d5)](sep)&&(_0x4f7b08=_0x4f7b08[_0x1c1275(0x1e1)](0x0,-0x1));const _0x4fe90b=_0x4f7b08[_0x1c1275(0x1dd)](sep)['join']('/'),_0xe2f675=extractTitleFromComment(_0x61eb6),_0x25ee79=_0xe2f675||_0x4fe90b;_0x48629b[_0x1c1275(0x1ca)]({'path':_0x4fe90b['replaceAll']('$',':'),'label':_0x25ee79});}}}),_0x48629b[_0x25fa95(0x1d4)](_0x216db3=>_0x216db3[_0x25fa95(0x1d9)]!=='');}function a82_0x508c(){const _0x24d410=['match','4284264ABvkec','utf-8','7357jbXKPD','6472EkSVqF','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','2398416nunMIO','filter','endsWith','concat','287451guCPqC','replace','path','index.tsx','cwd','.tsx','split','13453350pBXdNl','10594HpICMb','542470XdQFlK','slice','42SYhmFz','trim','forEach','push','src/pages','31LtrTNO'];a82_0x508c=function(){return _0x24d410;};return a82_0x508c();}
1
+ const a82_0x476366=a82_0x42b8;function a82_0x8dad(){const _0x46f277=['2444109zWBANr','.tsx','split','slice','356876TUtWRx','437607iGVcst','cwd','index.tsx','2638344pZGjcF','5gCjTlz','2870128CWawjJ','push','join','endsWith','src/pages','match','filter','440uSYCXe','path','utf-8','isDirectory','1708668eCQPNz','replaceAll','9779YrxExq','concat','2958YSVBlK'];a82_0x8dad=function(){return _0x46f277;};return a82_0x8dad();}(function(_0x12c839,_0x3c29ec){const _0x57950a=a82_0x42b8,_0x893228=_0x12c839();while(!![]){try{const _0x5ce250=parseInt(_0x57950a(0x115))/0x1+-parseInt(_0x57950a(0x10c))/0x2+-parseInt(_0x57950a(0x111))/0x3+parseInt(_0x57950a(0x101))/0x4*(parseInt(_0x57950a(0x100))/0x5)+-parseInt(_0x57950a(0x110))/0x6*(parseInt(_0x57950a(0x10e))/0x7)+-parseInt(_0x57950a(0xff))/0x8+parseInt(_0x57950a(0xfc))/0x9*(parseInt(_0x57950a(0x108))/0xa);if(_0x5ce250===_0x3c29ec)break;else _0x893228['push'](_0x893228['shift']());}catch(_0x59c0e3){_0x893228['push'](_0x893228['shift']());}}}(a82_0x8dad,0x807bd));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a82_0x476366(0xfd)](),a82_0x476366(0x105));function a82_0x42b8(_0x5bd5af,_0x126029){_0x5bd5af=_0x5bd5af-0xfc;const _0x8dadf9=a82_0x8dad();let _0x42b883=_0x8dadf9[_0x5bd5af];return _0x42b883;}export function extractTitleFromComment(_0x125372){const _0x554af7=a82_0x476366;try{const _0x134cc5=readFileSync(_0x125372,_0x554af7(0x10a)),_0xfb1ef5=_0x134cc5['match'](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0xfb1ef5&&_0xfb1ef5[0x1]){const _0x179303=_0xfb1ef5[0x1],_0x2c5fa1=_0x179303[_0x554af7(0x106)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x2c5fa1&&_0x2c5fa1[0x1])return _0x2c5fa1[0x1]['trim']();}let _0x3a6057=null;const _0x46c82d=_0x134cc5['match'](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x46c82d&&_0x46c82d[0x1]&&(_0x3a6057=_0x46c82d[0x1]);if(!_0x3a6057){const _0x46c94a=_0x134cc5[_0x554af7(0x106)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x46c94a&&_0x46c94a[0x1]&&(_0x3a6057=_0x46c94a[0x1]);}if(_0x3a6057){const _0x3e2f73=new RegExp('\x5cb'+_0x3a6057+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0x5ea18c=_0x134cc5[_0x554af7(0x106)](_0x3e2f73);if(_0x5ea18c&&_0x5ea18c[0x1])return _0x5ea18c[0x1];return _0x3a6057;}return null;}catch(_0x1a1696){return null;}}export function getLocalPages(_0x167c1f=pagesDir,_0x2c1397=pagesDir){const _0x21060c=a82_0x476366;let _0x5d1e2c=[];const _0x207c3d=readdirSync(_0x167c1f);return _0x207c3d['forEach'](_0x323651=>{const _0x1a07e6=a82_0x42b8,_0x1b0aed=join(_0x167c1f,_0x323651),_0x1faa31=statSync(_0x1b0aed);if(_0x1faa31&&_0x1faa31[_0x1a07e6(0x10b)]())_0x5d1e2c=_0x5d1e2c[_0x1a07e6(0x10f)](getLocalPages(_0x1b0aed,_0x2c1397));else{if(_0x323651[_0x1a07e6(0x104)](_0x1a07e6(0x112))){let _0xdb35d6=relative(_0x2c1397,_0x1b0aed);_0xdb35d6['endsWith'](_0x1a07e6(0xfe))?_0xdb35d6=_0xdb35d6['replace'](/index\.tsx$/,''):_0xdb35d6=_0xdb35d6['replace'](/\.tsx$/,'');_0xdb35d6['endsWith'](sep)&&(_0xdb35d6=_0xdb35d6[_0x1a07e6(0x114)](0x0,-0x1));const _0x6f70f2=_0xdb35d6[_0x1a07e6(0x113)](sep)[_0x1a07e6(0x103)]('/'),_0x3d252f=extractTitleFromComment(_0x1b0aed),_0x3b0572=_0x3d252f||_0x6f70f2;_0x5d1e2c[_0x1a07e6(0x102)]({'path':_0x6f70f2[_0x1a07e6(0x10d)]('$',':'),'label':_0x3b0572});}}}),_0x5d1e2c[_0x21060c(0x107)](_0x554887=>_0x554887[_0x21060c(0x109)]!=='');}
@@ -1 +1 @@
1
- function a83_0x5d48(_0x3a4ea3,_0x18fcb6){_0x3a4ea3=_0x3a4ea3-0x139;const _0x5096a9=a83_0x5096();let _0x5d4860=_0x5096a9[_0x3a4ea3];return _0x5d4860;}(function(_0x5968c2,_0x27cedb){const _0x21bc95=a83_0x5d48,_0x405933=_0x5968c2();while(!![]){try{const _0x3c184a=-parseInt(_0x21bc95(0x143))/0x1+parseInt(_0x21bc95(0x14d))/0x2*(-parseInt(_0x21bc95(0x147))/0x3)+parseInt(_0x21bc95(0x151))/0x4+parseInt(_0x21bc95(0x14b))/0x5*(parseInt(_0x21bc95(0x13f))/0x6)+-parseInt(_0x21bc95(0x14a))/0x7+-parseInt(_0x21bc95(0x139))/0x8+parseInt(_0x21bc95(0x145))/0x9*(parseInt(_0x21bc95(0x152))/0xa);if(_0x3c184a===_0x27cedb)break;else _0x405933['push'](_0x405933['shift']());}catch(_0x565193){_0x405933['push'](_0x405933['shift']());}}}(a83_0x5096,0xcb94e));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(_0xa65210){const _0x32ff81=a83_0x5d48,_0x2255e2=[];return!isValidJsHttpsUrl(_0xa65210)&&_0x2255e2[_0x32ff81(0x141)](_0x32ff81(0x156)),{'ok':_0x2255e2[_0x32ff81(0x13e)]===0x0,'errors':_0x2255e2};}export function validateCssUrl(_0x1aa7c0){const _0x37fd83=a83_0x5d48,_0x182161=[];return!isValidCssHttpsUrl(_0x1aa7c0)&&_0x182161['push'](_0x37fd83(0x14f)),{'ok':_0x182161['length']===0x0,'errors':_0x182161};}export async function validateJsUrlReachable(_0x7fadda){const _0x12f83a=a83_0x5d48,_0x5a8164=validateJsUrl(_0x7fadda);if(!_0x5a8164['ok'])return _0x5a8164;const _0x523c1a=await isUrlReachable(_0x7fadda);if(!_0x523c1a)_0x5a8164[_0x12f83a(0x13b)][_0x12f83a(0x141)](_0x12f83a(0x14e));return{'ok':_0x5a8164[_0x12f83a(0x13b)][_0x12f83a(0x13e)]===0x0,'errors':_0x5a8164[_0x12f83a(0x13b)]};}export async function validateCssUrlReachable(_0x1f8633){const _0x14ddc9=a83_0x5d48,_0x52ac3b=validateCssUrl(_0x1f8633);if(!_0x52ac3b['ok'])return _0x52ac3b;const _0x27aa86=await isUrlReachable(_0x1f8633);if(!_0x27aa86)_0x52ac3b[_0x14ddc9(0x13b)]['push'](_0x14ddc9(0x13a));return{'ok':_0x52ac3b[_0x14ddc9(0x13b)][_0x14ddc9(0x13e)]===0x0,'errors':_0x52ac3b[_0x14ddc9(0x13b)]};}export function buildCompareRows(_0x75c91,_0x16a637){const _0xdcd6f0=a83_0x5d48;return _0x75c91[_0xdcd6f0(0x14c)](_0x12b0d6=>({'label':_0x12b0d6['label'],'path':_0x12b0d6[_0xdcd6f0(0x148)],'local':!![],'online':_0x16a637[_0xdcd6f0(0x155)](_0x12b0d6['path'])}));}export function filterNewPages(_0x4580ee,_0xaeeef,_0xb772c2){const _0x38d8db=a83_0x5d48;if(_0xb772c2&&_0xb772c2[_0x38d8db(0x13e)]>0x0){const _0x1047b5=new Set(_0xb772c2[_0x38d8db(0x14c)](_0xcc7514=>_0xcc7514[_0x38d8db(0x149)]())),_0x27c8af=_0x4580ee[_0x38d8db(0x142)](_0x23b6b5=>_0x1047b5[_0x38d8db(0x155)](_0x23b6b5[_0x38d8db(0x146)]));if(_0x27c8af[_0x38d8db(0x13e)]===0x0)throw new Error(_0x38d8db(0x140)+[..._0x1047b5][_0x38d8db(0x157)](',\x20'));return _0x27c8af;}return _0x4580ee[_0x38d8db(0x142)](_0x4e09c2=>!_0xaeeef[_0x38d8db(0x155)](_0x4e09c2[_0x38d8db(0x148)]));}function a83_0x5096(){const _0x48b20c=['CSS\x20URL\x20is\x20unreachable','errors','allSettled','value','length','7589082wovlBm','No\x20local\x20pages\x20matched\x20labels:\x20','push','filter','951189WlsYoW','status','12861NvjwdH','label','108bSYcwc','path','trim','6380780MASnIc','5wLodXV','map','33190VqbyWX','JS\x20URL\x20is\x20unreachable','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','resources','3928740TzOwrl','8490DoGlKO','rejected','fulfilled','has','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','join','1329872DytLqz'];a83_0x5096=function(){return _0x48b20c;};return a83_0x5096();}export function filterPagesByLabels(_0x471faf,_0x40cdb1){const _0xf80574=a83_0x5d48,_0x2062b8=[],_0x45bcb6=[];for(const _0x12f613 of _0x40cdb1){const _0x4e0403=_0x12f613[_0xf80574(0x149)](),_0x1069dd=_0x471faf['find'](_0x180d8e=>_0x180d8e[_0xf80574(0x146)]===_0x4e0403);if(_0x1069dd)_0x2062b8[_0xf80574(0x141)](_0x1069dd);else _0x45bcb6[_0xf80574(0x141)](_0x12f613);}return{'matched':_0x2062b8,'unmatched':_0x45bcb6};}export async function doCreateMenus(_0x5b2141,_0x5177b8,_0x309a83,_0x2cb099){const _0x143e11=a83_0x5d48,_0x3da283=await createMenus(_0x5b2141,_0x5177b8,_0x309a83,_0x2cb099);return{'created':_0x3da283[_0x143e11(0x13e)],'failed':0x0,'labels':_0x309a83['map'](_0x4d22d0=>_0x4d22d0['label']),'menus':_0x3da283};}export function filterMenusWithResources(_0x457b9e){const _0x10d0e2=a83_0x5d48;return _0x457b9e[_0x10d0e2(0x142)](_0x14c94b=>_0x14c94b[_0x10d0e2(0x150)]['length']>0x0);}export async function doUpdateCdnUrls(_0x41d3c5,_0x360fb8,_0x111119,_0x334392){const _0x57c518=a83_0x5d48,_0x3ad304=_0x111119[_0x57c518(0x142)](_0x4d0dd7=>_0x4d0dd7[_0x57c518(0x150)][_0x57c518(0x13e)]>0x0),_0x48b498=await Promise[_0x57c518(0x13c)](_0x3ad304[_0x57c518(0x14c)](_0x557a38=>updateMenuCdnUrl(_0x41d3c5,_0x360fb8,{'id':_0x557a38['id'],'label':_0x557a38[_0x57c518(0x146)],'path':_0x557a38[_0x57c518(0x148)],'resources':_0x334392}))),_0x2a7408=_0x48b498[_0x57c518(0x142)](_0xe24891=>_0xe24891[_0x57c518(0x144)]===_0x57c518(0x154))[_0x57c518(0x14c)](_0x2625ac=>_0x2625ac[_0x57c518(0x13d)]),_0x1596c6=_0x48b498[_0x57c518(0x142)](_0xe6220a=>_0xe6220a[_0x57c518(0x144)]===_0x57c518(0x153))[_0x57c518(0x13e)];return{'updated':_0x2a7408['length'],'failed':_0x1596c6,'menus':_0x2a7408};}export async function fetchMenuData(_0xedb267,_0x1330ce){const _0x4eab66=a83_0x5d48,_0x3839c9=getLocalPages(),_0x5f40f0=await getOnlineMenuList(_0xedb267,_0x1330ce),_0x2cbaeb=new Set(_0x5f40f0[_0x4eab66(0x14c)](_0x1c3af8=>_0x1c3af8[_0x4eab66(0x148)]));return{'localPages':_0x3839c9,'onlineMenuList':_0x5f40f0,'onlinePaths':_0x2cbaeb};}export async function fetchOnlineMenuList(_0x294db9,_0x85f3ed){return getOnlineMenuList(_0x294db9,_0x85f3ed);}
1
+ (function(_0x2664c0,_0x5b35a4){const _0x1d1fdf=a83_0x286b,_0x24e94f=_0x2664c0();while(!![]){try{const _0x5855bc=-parseInt(_0x1d1fdf(0x11a))/0x1+-parseInt(_0x1d1fdf(0x10f))/0x2*(parseInt(_0x1d1fdf(0x105))/0x3)+parseInt(_0x1d1fdf(0x10b))/0x4*(-parseInt(_0x1d1fdf(0x10d))/0x5)+parseInt(_0x1d1fdf(0x113))/0x6+parseInt(_0x1d1fdf(0x103))/0x7*(parseInt(_0x1d1fdf(0x112))/0x8)+parseInt(_0x1d1fdf(0x107))/0x9+-parseInt(_0x1d1fdf(0x104))/0xa;if(_0x5855bc===_0x5b35a4)break;else _0x24e94f['push'](_0x24e94f['shift']());}catch(_0x4428a0){_0x24e94f['push'](_0x24e94f['shift']());}}}(a83_0x3db4,0xc076d));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(_0x443942){const _0x910ba5=a83_0x286b,_0x42f3c7=[];return!isValidJsHttpsUrl(_0x443942)&&_0x42f3c7[_0x910ba5(0x109)](_0x910ba5(0x10c)),{'ok':_0x42f3c7[_0x910ba5(0x100)]===0x0,'errors':_0x42f3c7};}export function validateCssUrl(_0xea285d){const _0x131999=a83_0x286b,_0x294a4b=[];return!isValidCssHttpsUrl(_0xea285d)&&_0x294a4b['push'](_0x131999(0x116)),{'ok':_0x294a4b[_0x131999(0x100)]===0x0,'errors':_0x294a4b};}export async function validateJsUrlReachable(_0x5b6262){const _0x49e1ad=a83_0x286b,_0x4ddfc5=validateJsUrl(_0x5b6262);if(!_0x4ddfc5['ok'])return _0x4ddfc5;const _0x1d8b81=await isUrlReachable(_0x5b6262);if(!_0x1d8b81)_0x4ddfc5[_0x49e1ad(0x10a)][_0x49e1ad(0x109)]('JS\x20URL\x20is\x20unreachable');return{'ok':_0x4ddfc5[_0x49e1ad(0x10a)]['length']===0x0,'errors':_0x4ddfc5[_0x49e1ad(0x10a)]};}export async function validateCssUrlReachable(_0x1d5231){const _0x8075aa=a83_0x286b,_0x5356d5=validateCssUrl(_0x1d5231);if(!_0x5356d5['ok'])return _0x5356d5;const _0x2e685d=await isUrlReachable(_0x1d5231);if(!_0x2e685d)_0x5356d5[_0x8075aa(0x10a)][_0x8075aa(0x109)]('CSS\x20URL\x20is\x20unreachable');return{'ok':_0x5356d5[_0x8075aa(0x10a)]['length']===0x0,'errors':_0x5356d5[_0x8075aa(0x10a)]};}export function buildCompareRows(_0x58d8bf,_0x4dc840){const _0x572130=a83_0x286b;return _0x58d8bf[_0x572130(0x10e)](_0x3cf2b0=>({'label':_0x3cf2b0[_0x572130(0x118)],'path':_0x3cf2b0[_0x572130(0x114)],'local':!![],'online':_0x4dc840[_0x572130(0x110)](_0x3cf2b0['path'])}));}function a83_0x3db4(){const _0x161ff9=['find','push','errors','352732iuQqKW','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','25HCrGlu','map','875314IDqYtS','has','filter','11753712ffJpEf','4989690lnkCBK','path','fulfilled','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','value','label','status','552725BqsOGd','trim','No\x20local\x20pages\x20matched\x20labels:\x20','length','rejected','resources','7tHYvHL','5742790ysDTCm','9ffhMIZ','allSettled','12315546iYHZBG'];a83_0x3db4=function(){return _0x161ff9;};return a83_0x3db4();}export function filterNewPages(_0x240078,_0x3ea7cd,_0x56fc5f){const _0x3843a6=a83_0x286b;if(_0x56fc5f&&_0x56fc5f[_0x3843a6(0x100)]>0x0){const _0x36182d=new Set(_0x56fc5f[_0x3843a6(0x10e)](_0x121f7e=>_0x121f7e['trim']())),_0x730c76=_0x240078['filter'](_0x2a2bab=>_0x36182d[_0x3843a6(0x110)](_0x2a2bab['label']));if(_0x730c76['length']===0x0)throw new Error(_0x3843a6(0xff)+[..._0x36182d]['join'](',\x20'));return _0x730c76;}return _0x240078[_0x3843a6(0x111)](_0x45059=>!_0x3ea7cd[_0x3843a6(0x110)](_0x45059[_0x3843a6(0x114)]));}export function filterPagesByLabels(_0x581c5b,_0x49936a){const _0x4c0788=a83_0x286b,_0xcc3d48=[],_0x142141=[];for(const _0x5c5008 of _0x49936a){const _0x4bb599=_0x5c5008[_0x4c0788(0xfe)](),_0x4de3ea=_0x581c5b[_0x4c0788(0x108)](_0x3494f2=>_0x3494f2[_0x4c0788(0x118)]===_0x4bb599);if(_0x4de3ea)_0xcc3d48['push'](_0x4de3ea);else _0x142141[_0x4c0788(0x109)](_0x5c5008);}return{'matched':_0xcc3d48,'unmatched':_0x142141};}export async function doCreateMenus(_0xec68c0,_0x35e319,_0x87a724,_0x241d31){const _0x3c39e7=a83_0x286b,_0x57af5f=await createMenus(_0xec68c0,_0x35e319,_0x87a724,_0x241d31);return{'created':_0x57af5f[_0x3c39e7(0x100)],'failed':0x0,'labels':_0x87a724['map'](_0x52b38b=>_0x52b38b['label']),'menus':_0x57af5f};}export function filterMenusWithResources(_0x1a9c25){const _0x3754ba=a83_0x286b;return _0x1a9c25[_0x3754ba(0x111)](_0x440550=>_0x440550[_0x3754ba(0x102)][_0x3754ba(0x100)]>0x0);}export async function doUpdateCdnUrls(_0x9f61f4,_0x2026bf,_0x510c2b,_0x22c3db){const _0x2f3438=a83_0x286b,_0x510269=_0x510c2b[_0x2f3438(0x111)](_0x9dae31=>_0x9dae31['resources'][_0x2f3438(0x100)]>0x0),_0x14a1ee=await Promise[_0x2f3438(0x106)](_0x510269[_0x2f3438(0x10e)](_0x2bae41=>updateMenuCdnUrl(_0x9f61f4,_0x2026bf,{'id':_0x2bae41['id'],'label':_0x2bae41[_0x2f3438(0x118)],'path':_0x2bae41['path'],'resources':_0x22c3db}))),_0xb50b29=_0x14a1ee[_0x2f3438(0x111)](_0x4403a3=>_0x4403a3[_0x2f3438(0x119)]===_0x2f3438(0x115))[_0x2f3438(0x10e)](_0x31f5c1=>_0x31f5c1[_0x2f3438(0x117)]),_0x415789=_0x14a1ee[_0x2f3438(0x111)](_0x19550a=>_0x19550a[_0x2f3438(0x119)]===_0x2f3438(0x101))[_0x2f3438(0x100)];return{'updated':_0xb50b29[_0x2f3438(0x100)],'failed':_0x415789,'menus':_0xb50b29};}export async function fetchMenuData(_0x220a30,_0x1a8f11){const _0x4538ff=a83_0x286b,_0x380155=getLocalPages(),_0x123e43=await getOnlineMenuList(_0x220a30,_0x1a8f11),_0x50c050=new Set(_0x123e43[_0x4538ff(0x10e)](_0x5622a4=>_0x5622a4[_0x4538ff(0x114)]));return{'localPages':_0x380155,'onlineMenuList':_0x123e43,'onlinePaths':_0x50c050};}function a83_0x286b(_0x4c90ce,_0x1ad90f){_0x4c90ce=_0x4c90ce-0xfe;const _0x3db4d7=a83_0x3db4();let _0x286b8c=_0x3db4d7[_0x4c90ce];return _0x286b8c;}export async function fetchOnlineMenuList(_0x443dc1,_0x3dc9c5){return getOnlineMenuList(_0x443dc1,_0x3dc9c5);}