@lovrabet/rabetbase-cli 2.2.1-beta.2 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/extend-update.js +1 -1
  55. package/lib/commands/dataset/field-update.js +1 -1
  56. package/lib/commands/dataset/index.js +1 -1
  57. package/lib/commands/dataset/list.js +1 -1
  58. package/lib/commands/dataset/operations.js +1 -1
  59. package/lib/commands/dataset/relation-create.js +1 -1
  60. package/lib/commands/dataset/relation-delete.js +1 -1
  61. package/lib/commands/dataset/relation-shared.js +1 -1
  62. package/lib/commands/dataset/relation-update.js +1 -1
  63. package/lib/commands/dataset/relations.js +1 -1
  64. package/lib/commands/dataset/rename.js +1 -1
  65. package/lib/commands/db/analyze-cancel.js +1 -1
  66. package/lib/commands/db/analyze-start.js +1 -1
  67. package/lib/commands/db/analyze-status.js +1 -1
  68. package/lib/commands/db/create.js +1 -1
  69. package/lib/commands/db/delete.js +1 -1
  70. package/lib/commands/db/detail.js +1 -1
  71. package/lib/commands/db/diff.js +1 -1
  72. package/lib/commands/db/index.js +1 -1
  73. package/lib/commands/db/list.js +1 -1
  74. package/lib/commands/db/shared.js +1 -1
  75. package/lib/commands/db/tables.js +1 -1
  76. package/lib/commands/db/test.js +1 -1
  77. package/lib/commands/db/update.js +1 -1
  78. package/lib/commands/doctor.js +1 -1
  79. package/lib/commands/init/index.js +1 -1
  80. package/lib/commands/issue/index.js +1 -1
  81. package/lib/commands/issue/nudge.js +1 -1
  82. package/lib/commands/issue/report.js +1 -1
  83. package/lib/commands/issue/shared.js +1 -1
  84. package/lib/commands/logs/index.js +1 -1
  85. package/lib/commands/menu/index.js +1 -1
  86. package/lib/commands/menu/shared/compare-table.js +1 -1
  87. package/lib/commands/menu/shared/index.js +1 -1
  88. package/lib/commands/menu/shared/inquirer.js +1 -1
  89. package/lib/commands/menu/shared/local-pages.js +1 -1
  90. package/lib/commands/menu/shared/logic.js +1 -1
  91. package/lib/commands/menu/shared/service.js +1 -1
  92. package/lib/commands/menu/shared/sync-core.js +1 -1
  93. package/lib/commands/menu/shared/update-core.js +1 -1
  94. package/lib/commands/menu/shared/valid-url.js +1 -1
  95. package/lib/commands/menu/sync.js +1 -1
  96. package/lib/commands/menu/update.js +1 -1
  97. package/lib/commands/page/generate-start.js +1 -1
  98. package/lib/commands/page/generate-status.js +1 -1
  99. package/lib/commands/page/index.js +1 -1
  100. package/lib/commands/page/pull.js +1 -1
  101. package/lib/commands/page/push.js +1 -1
  102. package/lib/commands/page/relation-audit.js +1 -1
  103. package/lib/commands/page/shared.js +1 -1
  104. package/lib/commands/page/standard-page-status.js +1 -1
  105. package/lib/commands/page/sync.js +1 -1
  106. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  107. package/lib/commands/project/create/format-elapsed.js +1 -1
  108. package/lib/commands/project/create/main.js +1 -1
  109. package/lib/commands/project/create/non-interactive.js +1 -1
  110. package/lib/commands/project/create/project-template-path.js +1 -1
  111. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  112. package/lib/commands/project/create/use-format-code.js +1 -1
  113. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  114. package/lib/commands/project/index.js +1 -1
  115. package/lib/commands/project/init.js +1 -1
  116. package/lib/commands/project/upgrade.js +1 -1
  117. package/lib/commands/registry.js +1 -1
  118. package/lib/commands/run/index.js +1 -1
  119. package/lib/commands/schema.js +1 -1
  120. package/lib/commands/skill/index.js +1 -1
  121. package/lib/commands/sql/create.js +1 -1
  122. package/lib/commands/sql/delete.js +1 -1
  123. package/lib/commands/sql/detail.js +1 -1
  124. package/lib/commands/sql/exec.js +1 -1
  125. package/lib/commands/sql/index.js +1 -1
  126. package/lib/commands/sql/list.js +1 -1
  127. package/lib/commands/sql/pull.js +1 -1
  128. package/lib/commands/sql/push.js +1 -1
  129. package/lib/commands/sql/save.js +1 -1
  130. package/lib/commands/sql/shared.js +1 -1
  131. package/lib/commands/sql/status.js +1 -1
  132. package/lib/commands/sql/validate.js +1 -1
  133. package/lib/config/schema.js +1 -1
  134. package/lib/constant/cdn.js +1 -1
  135. package/lib/constant/cli.js +1 -1
  136. package/lib/constant/defaults.js +1 -1
  137. package/lib/constant/domain.js +1 -1
  138. package/lib/constant/env.js +1 -1
  139. package/lib/constant/output.js +1 -1
  140. package/lib/constant/paths.js +1 -1
  141. package/lib/constant/risk.js +1 -1
  142. package/lib/context.js +1 -1
  143. package/lib/core/alias-resolver.js +1 -1
  144. package/lib/core/api-client.js +1 -1
  145. package/lib/core/bff/config.js +1 -1
  146. package/lib/core/bff/file-system.js +1 -1
  147. package/lib/core/bff/hash.js +1 -1
  148. package/lib/core/bff/lock.js +1 -1
  149. package/lib/core/bff/utils.js +1 -1
  150. package/lib/core/db-resolver.js +1 -1
  151. package/lib/core/page/file-system.js +1 -1
  152. package/lib/core/page/hash.js +1 -1
  153. package/lib/core/page/lock.js +1 -1
  154. package/lib/core/sql-sync/config.js +1 -1
  155. package/lib/core/sql-sync/file-system.js +1 -1
  156. package/lib/core/sql-sync/hash.js +1 -1
  157. package/lib/core/sql-sync/lock.js +1 -1
  158. package/lib/core/sql-sync/utils.js +1 -1
  159. package/lib/core/sql-validator.js +1 -1
  160. package/lib/errors.js +1 -1
  161. package/lib/framework/build-all-flags.js +1 -1
  162. package/lib/framework/flags.js +1 -1
  163. package/lib/framework/help.js +1 -1
  164. package/lib/framework/index.js +1 -1
  165. package/lib/framework/output.js +1 -1
  166. package/lib/framework/response.js +1 -1
  167. package/lib/framework/runner-alias.js +1 -1
  168. package/lib/framework/runner.js +1 -1
  169. package/lib/framework/schema-export.js +1 -1
  170. package/lib/framework/types.js +1 -1
  171. package/lib/generated/build-info.js +1 -1
  172. package/lib/help.js +1 -1
  173. package/lib/skills/main.js +1 -1
  174. package/lib/skills/npx-skills-add.js +1 -1
  175. package/lib/telemetry/cli-command-trace.js +1 -1
  176. package/lib/telemetry/cli-help-trace.js +1 -1
  177. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  178. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  179. package/lib/telemetry/send-cli-trace-log.js +1 -1
  180. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  181. package/lib/utils/ai_config.js +1 -1
  182. package/lib/utils/apply-jq-filter.js +1 -1
  183. package/lib/utils/cdn-config.js +1 -1
  184. package/lib/utils/check-sdk-version.js +1 -1
  185. package/lib/utils/cli-version-check.js +1 -1
  186. package/lib/utils/cli-version-policy.js +1 -1
  187. package/lib/utils/config.js +1 -1
  188. package/lib/utils/copy-directory.js +1 -1
  189. package/lib/utils/entity-with-id.js +1 -1
  190. package/lib/utils/file-utils.js +1 -1
  191. package/lib/utils/guides-cdn.js +1 -1
  192. package/lib/utils/http-client.js +1 -1
  193. package/lib/utils/is-non-interactive.js +1 -1
  194. package/lib/utils/logger.js +1 -1
  195. package/lib/utils/params.js +1 -1
  196. package/lib/utils/platform.js +1 -1
  197. package/lib/utils/rules-cdn.js +1 -1
  198. package/lib/utils/sleep.js +1 -1
  199. package/lib/utils/template-replacer.js +1 -1
  200. package/lib/utils/update-notice.js +1 -1
  201. package/lib/utils/version.js +1 -1
  202. package/lib/utils/with-active-cookie.js +1 -1
  203. package/lib/utils/write-cli-side-channel.js +1 -1
  204. package/package.json +1 -1
@@ -1 +1 @@
1
- function a79_0x4a32(){const _0x479aa3=['2696304UcJWeg','25dxqwOQ','1176776qyocLV','249188pUDbXl','673020fwHsSx','7653345QwUKxi','1699224rzxYED','884276lsovLl'];a79_0x4a32=function(){return _0x479aa3;};return a79_0x4a32();}(function(_0x5a7049,_0x2397a3){const _0x42d9e5=a79_0x2014,_0x1166d6=_0x5a7049();while(!![]){try{const _0x532151=-parseInt(_0x42d9e5(0x13c))/0x1+-parseInt(_0x42d9e5(0x13d))/0x2+parseInt(_0x42d9e5(0x13f))/0x3+parseInt(_0x42d9e5(0x140))/0x4*(-parseInt(_0x42d9e5(0x142))/0x5)+parseInt(_0x42d9e5(0x141))/0x6+parseInt(_0x42d9e5(0x13e))/0x7+parseInt(_0x42d9e5(0x13b))/0x8;if(_0x532151===_0x2397a3)break;else _0x1166d6['push'](_0x1166d6['shift']());}catch(_0xfde604){_0x1166d6['push'](_0x1166d6['shift']());}}}(a79_0x4a32,0x89fbd));function a79_0x2014(_0x30d6b2,_0x4cb794){_0x30d6b2=_0x30d6b2-0x13b;const _0x4a3272=a79_0x4a32();let _0x20149c=_0x4a3272[_0x30d6b2];return _0x20149c;}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
1
+ function a79_0x3632(){const _0x2a946b=['3400CuRJoU','61479ObqTCe','1510116IGTwvP','833448JMiAbU','2403128XZBMVp','596571fWGRNT','456yBipfJ','4KpTblw','989451udyVqi'];a79_0x3632=function(){return _0x2a946b;};return a79_0x3632();}function a79_0x103e(_0x4a94aa,_0x422f13){_0x4a94aa=_0x4a94aa-0x177;const _0x36328a=a79_0x3632();let _0x103e94=_0x36328a[_0x4a94aa];return _0x103e94;}(function(_0x698b6a,_0x1f7659){const _0x45b175=a79_0x103e,_0x53968d=_0x698b6a();while(!![]){try{const _0x26b5a6=parseInt(_0x45b175(0x17c))/0x1+-parseInt(_0x45b175(0x179))/0x2*(parseInt(_0x45b175(0x177))/0x3)+parseInt(_0x45b175(0x17d))/0x4+parseInt(_0x45b175(0x17b))/0x5*(-parseInt(_0x45b175(0x178))/0x6)+-parseInt(_0x45b175(0x17e))/0x7+parseInt(_0x45b175(0x17f))/0x8+parseInt(_0x45b175(0x17a))/0x9;if(_0x26b5a6===_0x1f7659)break;else _0x53968d['push'](_0x53968d['shift']());}catch(_0x2564d3){_0x53968d['push'](_0x53968d['shift']());}}}(a79_0x3632,0x44930));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a80_0x16d4d8=a80_0x13cb;(function(_0x2707e2,_0x66ff73){const _0x4b7db5=a80_0x13cb,_0x118f2a=_0x2707e2();while(!![]){try{const _0x58f0e2=-parseInt(_0x4b7db5(0xbc))/0x1+-parseInt(_0x4b7db5(0xa9))/0x2*(parseInt(_0x4b7db5(0xa5))/0x3)+parseInt(_0x4b7db5(0xb6))/0x4+parseInt(_0x4b7db5(0xac))/0x5*(-parseInt(_0x4b7db5(0xa4))/0x6)+-parseInt(_0x4b7db5(0xa8))/0x7*(-parseInt(_0x4b7db5(0xa6))/0x8)+-parseInt(_0x4b7db5(0xaa))/0x9+parseInt(_0x4b7db5(0xb7))/0xa;if(_0x58f0e2===_0x66ff73)break;else _0x118f2a['push'](_0x118f2a['shift']());}catch(_0x9b89e3){_0x118f2a['push'](_0x118f2a['shift']());}}}(a80_0x2bee,0xbe8b1));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a80_0x16d4d8(0xad);const NUDGE_SUPPRESSED_CODES=new Set(['cancelled',a80_0x16d4d8(0xab),'config_missing','not_in_project',a80_0x16d4d8(0xb1),a80_0x16d4d8(0xb8),a80_0x16d4d8(0xb5),a80_0x16d4d8(0xb3)]),defaultWriter=_0x18e489=>{const _0x8001d=a80_0x16d4d8;process[_0x8001d(0xbf)][_0x8001d(0xb4)](_0x18e489);};export function shouldNudgeForError(_0x277682,_0x3ebc38){const _0x3f6b57=a80_0x16d4d8;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x3ebc38[_0x3f6b57(0xb9)]===_0x3f6b57(0xa0)&&_0x3ebc38['command']==='report')return![];if(_0x277682 instanceof CliError)return!NUDGE_SUPPRESSED_CODES['has'](_0x277682['code']);return!![];}export function printIssueReportNudgeForError(_0x54b566,_0x417ce8,_0x65ef7e=defaultWriter){if(!shouldNudgeForError(_0x54b566,_0x417ce8))return;const _0x534466=buildSuggestedTitle(_0x54b566,_0x417ce8);_0x65ef7e(formatNudge(_0x534466));}function a80_0x13cb(_0x53160f,_0x5ddbc8){_0x53160f=_0x53160f-0xa0;const _0x2bee27=a80_0x2bee();let _0x13cbd0=_0x2bee27[_0x53160f];return _0x13cbd0;}function buildSuggestedTitle(_0x4326b7,_0x7e4f99){const _0xc7c53f=a80_0x16d4d8,_0x266a18=_0x4326b7 instanceof Error?_0x4326b7[_0xc7c53f(0xba)]:String(_0x4326b7),_0x5c21c8=_0x266a18['replace'](/[\r\n]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0xc7c53f(0xbe)]()[_0xc7c53f(0xbd)](0x0,0x78)[_0xc7c53f(0xae)](/"/g,'\x5c\x22'),_0x3a9d81=CLI_BIN_NAME+'\x20'+_0x7e4f99['service']+'\x20'+_0x7e4f99[_0xc7c53f(0xa3)];return _0x5c21c8[_0xc7c53f(0xa1)]>0x0?_0x3a9d81+':\x20'+_0x5c21c8:_0x3a9d81;}function a80_0x2bee(){const _0x2dbfd9=['stderr','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','issue','length','Hit\x20a\x20','command','6rRjgIa','74571NAyfau','1615056SFuHqe','\x20bug?\x20Help\x20us\x20fix\x20it:','7YjGHoa','46NdLLIH','10927989JPTmMJ','auth_required','6417945jwfSnR','RABETBASE_DISABLE_ISSUE_NUDGE','replace','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','join','unknown_command','\x20\x20Set\x20','network_error','write','validation_error','2646156NbNXFP','43829070czJotd','flag_missing','service','message','\x20\x20\x20\x20--title\x20\x22','1396342ThzTVh','slice','trim'];a80_0x2bee=function(){return _0x2dbfd9;};return a80_0x2bee();}function formatNudge(_0x491df7){const _0x86db91=a80_0x16d4d8;return['',_0x86db91(0xa2)+CLI_BIN_NAME+_0x86db91(0xa7),'\x20\x20'+CLI_BIN_NAME+'\x20issue\x20report\x20\x5c',_0x86db91(0xbb)+_0x491df7+'\x22\x20\x5c',_0x86db91(0xaf),_0x86db91(0xc0),_0x86db91(0xb2)+NUDGE_OPT_OUT_ENV+'=1\x20to\x20silence\x20this\x20hint.',''][_0x86db91(0xb0)]('\x0a');}
1
+ const a80_0x336a58=a80_0x490c;(function(_0x2eef9d,_0x541569){const _0x318145=a80_0x490c,_0xc4470=_0x2eef9d();while(!![]){try{const _0x53571b=parseInt(_0x318145(0x140))/0x1*(parseInt(_0x318145(0x155))/0x2)+-parseInt(_0x318145(0x13c))/0x3*(parseInt(_0x318145(0x154))/0x4)+parseInt(_0x318145(0x14a))/0x5*(parseInt(_0x318145(0x141))/0x6)+parseInt(_0x318145(0x14c))/0x7+parseInt(_0x318145(0x143))/0x8*(parseInt(_0x318145(0x151))/0x9)+parseInt(_0x318145(0x14b))/0xa*(-parseInt(_0x318145(0x13f))/0xb)+parseInt(_0x318145(0x142))/0xc;if(_0x53571b===_0x541569)break;else _0xc4470['push'](_0xc4470['shift']());}catch(_0x4c7ea9){_0xc4470['push'](_0xc4470['shift']());}}}(a80_0x4ba8,0x90135));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a80_0x336a58(0x153);const NUDGE_SUPPRESSED_CODES=new Set(['cancelled',a80_0x336a58(0x14d),a80_0x336a58(0x13b),a80_0x336a58(0x158),a80_0x336a58(0x156),a80_0x336a58(0x15a),a80_0x336a58(0x145),a80_0x336a58(0x146)]),defaultWriter=_0x2fdbde=>{const _0x2bca2f=a80_0x336a58;process[_0x2bca2f(0x152)][_0x2bca2f(0x14f)](_0x2fdbde);};function a80_0x4ba8(){const _0x24a908=['3355551BeLpTO','stderr','RABETBASE_DISABLE_ISSUE_NUDGE','4MLGklA','2ArtmFX','unknown_command','\x22\x20\x5c','not_in_project','\x20bug?\x20Help\x20us\x20fix\x20it:','flag_missing','\x20issue\x20report\x20\x5c','Hit\x20a\x20','service','config_missing','1623249gmTgow','issue','code','11288563KyPXpF','849420vevhzA','24HYWkMj','556632gTXBQZ','8jsWtvf','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','validation_error','network_error','report','slice','\x20\x20Set\x20','715035WvhfXq','10ZBiXBa','2217432WuqwPv','auth_required','trim','write','\x20\x20\x20\x20--title\x20\x22'];a80_0x4ba8=function(){return _0x24a908;};return a80_0x4ba8();}export function shouldNudgeForError(_0x581002,_0x49eb3d){const _0x5bd5ed=a80_0x336a58;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x49eb3d[_0x5bd5ed(0x13a)]===_0x5bd5ed(0x13d)&&_0x49eb3d['command']===_0x5bd5ed(0x147))return![];if(_0x581002 instanceof CliError)return!NUDGE_SUPPRESSED_CODES['has'](_0x581002[_0x5bd5ed(0x13e)]);return!![];}export function printIssueReportNudgeForError(_0x1247d2,_0x56af06,_0x2bd394=defaultWriter){if(!shouldNudgeForError(_0x1247d2,_0x56af06))return;const _0x492bab=buildSuggestedTitle(_0x1247d2,_0x56af06);_0x2bd394(formatNudge(_0x492bab));}function buildSuggestedTitle(_0x34f249,_0x381474){const _0x17ee72=a80_0x336a58,_0x4be443=_0x34f249 instanceof Error?_0x34f249['message']:String(_0x34f249),_0x4fbdd4=_0x4be443['replace'](/[\r\n]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x17ee72(0x14e)]()[_0x17ee72(0x148)](0x0,0x78)['replace'](/"/g,'\x5c\x22'),_0x74820e=CLI_BIN_NAME+'\x20'+_0x381474[_0x17ee72(0x13a)]+'\x20'+_0x381474['command'];return _0x4fbdd4['length']>0x0?_0x74820e+':\x20'+_0x4fbdd4:_0x74820e;}function a80_0x490c(_0x368b3a,_0x553ad5){_0x368b3a=_0x368b3a-0x13a;const _0x4ba8e6=a80_0x4ba8();let _0x490c9a=_0x4ba8e6[_0x368b3a];return _0x490c9a;}function formatNudge(_0x43d54d){const _0x38e562=a80_0x336a58;return['',_0x38e562(0x15c)+CLI_BIN_NAME+_0x38e562(0x159),'\x20\x20'+CLI_BIN_NAME+_0x38e562(0x15b),_0x38e562(0x150)+_0x43d54d+_0x38e562(0x157),_0x38e562(0x144),'\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)',_0x38e562(0x149)+NUDGE_OPT_OUT_ENV+'=1\x20to\x20silence\x20this\x20hint.','']['join']('\x0a');}
@@ -1 +1 @@
1
- const a81_0x2ee028=a81_0x2c6f;(function(_0x97ae69,_0x265538){const _0x124d2f=a81_0x2c6f,_0x4076a5=_0x97ae69();while(!![]){try{const _0x446b8c=parseInt(_0x124d2f(0x14e))/0x1+-parseInt(_0x124d2f(0x16c))/0x2+parseInt(_0x124d2f(0x159))/0x3+parseInt(_0x124d2f(0x148))/0x4*(-parseInt(_0x124d2f(0x15b))/0x5)+parseInt(_0x124d2f(0x171))/0x6*(-parseInt(_0x124d2f(0x157))/0x7)+parseInt(_0x124d2f(0x14c))/0x8+parseInt(_0x124d2f(0x16f))/0x9*(parseInt(_0x124d2f(0x161))/0xa);if(_0x446b8c===_0x265538)break;else _0x4076a5['push'](_0x4076a5['shift']());}catch(_0x5e9e62){_0x4076a5['push'](_0x4076a5['shift']());}}}(a81_0x514a,0x216d1));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';function a81_0x2c6f(_0x4e056e,_0x4f7135){_0x4e056e=_0x4e056e-0x141;const _0x514abe=a81_0x514a();let _0x2c6f6d=_0x514abe[_0x4e056e];return _0x2c6f6d;}function a81_0x514a(){const _0x5149dd=['\x20secret(s):\x20','198012QyUwwb','description-file','truncated','9RHuNMt','otel://','344982JPyqxu','push','redactionKinds','redactionCount','sanitize','Issue\x20description\x20file\x20is\x20empty:\x20','Platform\x20issue\x20reported\x20(','issue.description_original_bytes','originalBytes','One-line\x20issue\x20summary','write','utf8','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','\x20bytes','redacted\x20','issue.description_truncated','truncated\x20from\x20','descriptionFilePath','report','issue','8NBJvrW','issue.description','cwd','descriptionSource','145504StFvHK','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','118409pothpy','issue.title','compress','flagMissing','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','redactions:\x20','descriptionFile:\x20','descriptionSource:\x20','truncated:\x20original\x20','28lKrJIK','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','137490afDPFN','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','16285NgvGix','join','trim','title','filter','issue.description_redactions','2899940yAFtSU','length','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','File\x20not\x20found:\x20','POST','issue.description_redaction_kinds','validation','description','str','string'];a81_0x514a=function(){return _0x5149dd;};return a81_0x514a();}const DESCRIPTION_FILE_FLAG=a81_0x2ee028(0x16d);export const issueReport={'service':a81_0x2ee028(0x147),'command':a81_0x2ee028(0x146),'description':a81_0x2ee028(0x17e),'risk':a81_0x2ee028(0x17b),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a81_0x2ee028(0x150),'flags':[{'name':a81_0x2ee028(0x15e),'type':a81_0x2ee028(0x16a),'required':!![],'description':a81_0x2ee028(0x17a)},{'name':a81_0x2ee028(0x168),'type':a81_0x2ee028(0x16a),'description':a81_0x2ee028(0x15a)},{'name':DESCRIPTION_FILE_FLAG,'type':a81_0x2ee028(0x16a),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x4decef){const _0x1cb24e=a81_0x2ee028,_0x5142a2=_0x4decef['str']('title')['trim'](),_0x3ed898=_0x4decef['str'](_0x1cb24e(0x168))[_0x1cb24e(0x15d)](),_0x2911d5=_0x4decef[_0x1cb24e(0x169)](DESCRIPTION_FILE_FLAG)[_0x1cb24e(0x15d)]();if(!_0x5142a2)throw CliErrors[_0x1cb24e(0x151)](_0x1cb24e(0x15e),_0x1cb24e(0x152));const _0x505e07=_0x3ed898[_0x1cb24e(0x162)]>0x0,_0x1d7020=_0x2911d5[_0x1cb24e(0x162)]>0x0;if(_0x505e07===_0x1d7020)throw CliErrors[_0x1cb24e(0x167)](_0x1cb24e(0x158),_0x1cb24e(0x17d));if(_0x1d7020){const _0x2050ac=resolve(process[_0x1cb24e(0x14a)](),_0x2911d5);if(!existsSync(_0x2050ac))throw CliErrors[_0x1cb24e(0x167)](_0x1cb24e(0x164)+_0x2050ac);}},async 'dryRun'(_0x585a3b){const _0x4dec4b=a81_0x2ee028,_0x512018=await prepareIssueReport(_0x585a3b);return{'method':_0x4dec4b(0x165),'url':_0x4dec4b(0x170)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x512018[_0x4dec4b(0x15e)],'issue.description':_0x512018[_0x4dec4b(0x168)],'issue.description_original_bytes':_0x512018[_0x4dec4b(0x175)][_0x4dec4b(0x179)],'issue.description_truncated':_0x512018[_0x4dec4b(0x175)][_0x4dec4b(0x16e)],'issue.description_redactions':_0x512018[_0x4dec4b(0x175)][_0x4dec4b(0x174)],'issue.description_redaction_kinds':_0x512018[_0x4dec4b(0x175)]['redactionKinds']['join'](',')}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter',_0x4dec4b(0x155)+_0x512018[_0x4dec4b(0x14b)],_0x512018[_0x4dec4b(0x145)]?_0x4dec4b(0x154)+_0x512018[_0x4dec4b(0x145)]:null,_0x512018['sanitize']['truncated']?_0x4dec4b(0x156)+_0x512018[_0x4dec4b(0x175)][_0x4dec4b(0x179)]+'\x20bytes':null,_0x512018['sanitize'][_0x4dec4b(0x174)]>0x0?_0x4dec4b(0x153)+_0x512018[_0x4dec4b(0x175)]['redactionCount']+'\x20('+_0x512018['sanitize'][_0x4dec4b(0x173)][_0x4dec4b(0x15c)](',\x20')+')':null][_0x4dec4b(0x15f)](Boolean)[_0x4dec4b(0x15c)]('\x0a')};},async 'execute'(_0xf2e8d2){const _0x38d19b=a81_0x2ee028,_0x5ad07d=await prepareIssueReport(_0xf2e8d2);try{await sendPlatformIssueCollectLog({'title':_0x5ad07d[_0x38d19b(0x15e)],'description':_0x5ad07d[_0x38d19b(0x168)],'sanitize':{'originalBytes':_0x5ad07d[_0x38d19b(0x175)]['originalBytes'],'truncated':_0x5ad07d[_0x38d19b(0x175)][_0x38d19b(0x16e)],'redactionCount':_0x5ad07d[_0x38d19b(0x175)][_0x38d19b(0x174)],'redactionKinds':_0x5ad07d[_0x38d19b(0x175)][_0x38d19b(0x173)]}});}catch(_0x3bdc13){throw CliErrors['apiError']('Failed\x20to\x20report\x20platform\x20issue:\x20'+(_0x3bdc13 instanceof Error?_0x3bdc13['message']:String(_0x3bdc13)),'Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.');}return{'ok':!![],'message':buildResultMessage(_0x5ad07d[_0x38d19b(0x175)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x38d19b(0x14f),_0x38d19b(0x149),_0x38d19b(0x178),_0x38d19b(0x143),_0x38d19b(0x160),_0x38d19b(0x166)],'issue':{'title':_0x5ad07d[_0x38d19b(0x15e)],'descriptionLength':_0x5ad07d['description'][_0x38d19b(0x162)],'descriptionSource':_0x5ad07d[_0x38d19b(0x14b)],..._0x5ad07d[_0x38d19b(0x145)]?{'descriptionFile':_0x5ad07d['descriptionFilePath']}:{},'sanitize':{'originalBytes':_0x5ad07d[_0x38d19b(0x175)][_0x38d19b(0x179)],'truncated':_0x5ad07d[_0x38d19b(0x175)][_0x38d19b(0x16e)],'redactions':_0x5ad07d[_0x38d19b(0x175)]['redactionCount'],'redactionKinds':_0x5ad07d[_0x38d19b(0x175)]['redactionKinds']}}}};}};function buildResultMessage(_0x2a9b53){const _0x22f464=a81_0x2ee028,_0x4d1ba8=[];return _0x2a9b53[_0x22f464(0x16e)]&&_0x4d1ba8['push'](_0x22f464(0x144)+_0x2a9b53[_0x22f464(0x179)]+_0x22f464(0x141)),_0x2a9b53[_0x22f464(0x174)]>0x0&&_0x4d1ba8[_0x22f464(0x172)](_0x22f464(0x142)+_0x2a9b53['redactionCount']+_0x22f464(0x16b)+_0x2a9b53[_0x22f464(0x173)][_0x22f464(0x15c)](',\x20')),_0x4d1ba8[_0x22f464(0x162)]===0x0?'Platform\x20issue\x20reported':_0x22f464(0x177)+_0x4d1ba8[_0x22f464(0x15c)](';\x20')+')';}async function prepareIssueReport(_0x2de743){const _0x598e99=a81_0x2ee028,_0x2c3453=_0x2de743[_0x598e99(0x169)]('title')[_0x598e99(0x15d)](),_0x3c7c52=_0x2de743[_0x598e99(0x169)]('description'),_0xe2eac6=_0x2de743['str'](DESCRIPTION_FILE_FLAG)['trim']();if(!_0xe2eac6){const _0x3e655f=_0x3c7c52;if(!_0x3e655f[_0x598e99(0x15d)]())throw CliErrors['validation']('Issue\x20description\x20cannot\x20be\x20empty.',_0x598e99(0x163));const _0x561f2e=sanitizeIssueDescription(_0x3e655f);return{'title':_0x2c3453,'description':_0x561f2e[_0x598e99(0x168)],'descriptionSource':'inline','sanitize':_0x561f2e};}const _0x67ab=resolve(process[_0x598e99(0x14a)](),_0xe2eac6),_0x297233=await readFile(_0x67ab,_0x598e99(0x17c));if(!_0x297233[_0x598e99(0x15d)]())throw CliErrors[_0x598e99(0x167)](_0x598e99(0x176)+_0x67ab,_0x598e99(0x14d));const _0x1af0fd=sanitizeIssueDescription(_0x297233);return{'title':_0x2c3453,'description':_0x1af0fd[_0x598e99(0x168)],'descriptionSource':'file','descriptionFilePath':_0x67ab,'sanitize':_0x1af0fd};}
1
+ const a81_0x4f8a6d=a81_0x2e42;(function(_0x54a04b,_0x45d352){const _0x1783a3=a81_0x2e42,_0xb49d96=_0x54a04b();while(!![]){try{const _0x3924ba=-parseInt(_0x1783a3(0x1a4))/0x1*(parseInt(_0x1783a3(0x19a))/0x2)+-parseInt(_0x1783a3(0x17f))/0x3*(-parseInt(_0x1783a3(0x1b1))/0x4)+-parseInt(_0x1783a3(0x1aa))/0x5+-parseInt(_0x1783a3(0x18d))/0x6+parseInt(_0x1783a3(0x199))/0x7+-parseInt(_0x1783a3(0x19d))/0x8+parseInt(_0x1783a3(0x182))/0x9*(parseInt(_0x1783a3(0x1ac))/0xa);if(_0x3924ba===_0x45d352)break;else _0xb49d96['push'](_0xb49d96['shift']());}catch(_0x5d81db){_0xb49d96['push'](_0xb49d96['shift']());}}}(a81_0x2b1f,0x852b5));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';function a81_0x2e42(_0x1ce300,_0x456869){_0x1ce300=_0x1ce300-0x177;const _0x2b1f3d=a81_0x2b1f();let _0x2e426a=_0x2b1f3d[_0x1ce300];return _0x2e426a;}import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG='description-file';export const issueReport={'service':a81_0x4f8a6d(0x1ad),'command':a81_0x4f8a6d(0x1a5),'description':a81_0x4f8a6d(0x1ae),'risk':'write','requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':'compress','flags':[{'name':a81_0x4f8a6d(0x189),'type':a81_0x4f8a6d(0x195),'required':!![],'description':a81_0x4f8a6d(0x18a)},{'name':a81_0x4f8a6d(0x177),'type':'string','description':a81_0x4f8a6d(0x1a9)},{'name':DESCRIPTION_FILE_FLAG,'type':a81_0x4f8a6d(0x195),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x357726){const _0x400ac5=a81_0x4f8a6d,_0xb4f320=_0x357726[_0x400ac5(0x1a2)]('title')['trim'](),_0x341822=_0x357726[_0x400ac5(0x1a2)](_0x400ac5(0x177))['trim'](),_0x2ae8ee=_0x357726[_0x400ac5(0x1a2)](DESCRIPTION_FILE_FLAG)[_0x400ac5(0x197)]();if(!_0xb4f320)throw CliErrors[_0x400ac5(0x196)]('title','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.');const _0x3f0ebf=_0x341822[_0x400ac5(0x183)]>0x0,_0x581c17=_0x2ae8ee[_0x400ac5(0x183)]>0x0;if(_0x3f0ebf===_0x581c17)throw CliErrors[_0x400ac5(0x1b0)](_0x400ac5(0x1a6),_0x400ac5(0x1a1));if(_0x581c17){const _0x1e5551=resolve(process[_0x400ac5(0x198)](),_0x2ae8ee);if(!existsSync(_0x1e5551))throw CliErrors['validation'](_0x400ac5(0x18c)+_0x1e5551);}},async 'dryRun'(_0x339de2){const _0x2b26c5=a81_0x4f8a6d,_0x4a8846=await prepareIssueReport(_0x339de2);return{'method':_0x2b26c5(0x187),'url':_0x2b26c5(0x1a7)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x4a8846[_0x2b26c5(0x189)],'issue.description':_0x4a8846[_0x2b26c5(0x177)],'issue.description_original_bytes':_0x4a8846[_0x2b26c5(0x178)][_0x2b26c5(0x17d)],'issue.description_truncated':_0x4a8846['sanitize'][_0x2b26c5(0x181)],'issue.description_redactions':_0x4a8846[_0x2b26c5(0x178)]['redactionCount'],'issue.description_redaction_kinds':_0x4a8846['sanitize'][_0x2b26c5(0x17a)][_0x2b26c5(0x191)](',')}},'description':[_0x2b26c5(0x18b),_0x2b26c5(0x19b)+_0x4a8846[_0x2b26c5(0x186)],_0x4a8846[_0x2b26c5(0x179)]?_0x2b26c5(0x18e)+_0x4a8846[_0x2b26c5(0x179)]:null,_0x4a8846['sanitize'][_0x2b26c5(0x181)]?'truncated:\x20original\x20'+_0x4a8846[_0x2b26c5(0x178)]['originalBytes']+_0x2b26c5(0x17e):null,_0x4a8846['sanitize'][_0x2b26c5(0x192)]>0x0?'redactions:\x20'+_0x4a8846[_0x2b26c5(0x178)]['redactionCount']+'\x20('+_0x4a8846[_0x2b26c5(0x178)][_0x2b26c5(0x17a)][_0x2b26c5(0x191)](',\x20')+')':null][_0x2b26c5(0x193)](Boolean)[_0x2b26c5(0x191)]('\x0a')};},async 'execute'(_0x16a851){const _0x2a33e7=a81_0x4f8a6d,_0x35906f=await prepareIssueReport(_0x16a851);try{await sendPlatformIssueCollectLog({'title':_0x35906f[_0x2a33e7(0x189)],'description':_0x35906f[_0x2a33e7(0x177)],'sanitize':{'originalBytes':_0x35906f[_0x2a33e7(0x178)][_0x2a33e7(0x17d)],'truncated':_0x35906f[_0x2a33e7(0x178)][_0x2a33e7(0x181)],'redactionCount':_0x35906f['sanitize']['redactionCount'],'redactionKinds':_0x35906f[_0x2a33e7(0x178)][_0x2a33e7(0x17a)]}});}catch(_0x26a4f4){throw CliErrors[_0x2a33e7(0x19f)]('Failed\x20to\x20report\x20platform\x20issue:\x20'+(_0x26a4f4 instanceof Error?_0x26a4f4[_0x2a33e7(0x194)]:String(_0x26a4f4)),_0x2a33e7(0x18f));}return{'ok':!![],'message':buildResultMessage(_0x35906f[_0x2a33e7(0x178)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x2a33e7(0x19e),_0x2a33e7(0x184),_0x2a33e7(0x1ab),_0x2a33e7(0x1a8),'issue.description_redactions',_0x2a33e7(0x1a3)],'issue':{'title':_0x35906f[_0x2a33e7(0x189)],'descriptionLength':_0x35906f['description'][_0x2a33e7(0x183)],'descriptionSource':_0x35906f[_0x2a33e7(0x186)],..._0x35906f[_0x2a33e7(0x179)]?{'descriptionFile':_0x35906f[_0x2a33e7(0x179)]}:{},'sanitize':{'originalBytes':_0x35906f[_0x2a33e7(0x178)]['originalBytes'],'truncated':_0x35906f['sanitize'][_0x2a33e7(0x181)],'redactions':_0x35906f[_0x2a33e7(0x178)][_0x2a33e7(0x192)],'redactionKinds':_0x35906f[_0x2a33e7(0x178)]['redactionKinds']}}}};}};function a81_0x2b1f(){const _0x429d7f=['Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','join','redactionCount','filter','message','string','flagMissing','trim','cwd','408345KBWOFm','82186WGJtoX','descriptionSource:\x20','redacted\x20','7072824HCWfPk','issue.title','apiError','inline','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','str','issue.description_redaction_kinds','6iBjiPF','report','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','otel://','issue.description_truncated','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','5058865NQxkmR','issue.description_original_bytes','26767190hpHnSC','issue','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','Platform\x20issue\x20reported','validation','4XdkHAg','description','sanitize','descriptionFilePath','redactionKinds','\x20secret(s):\x20','push','originalBytes','\x20bytes','776406LIurLg','file','truncated','9HuIGHY','length','issue.description','Platform\x20issue\x20reported\x20(','descriptionSource','POST','Issue\x20description\x20file\x20is\x20empty:\x20','title','One-line\x20issue\x20summary','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','File\x20not\x20found:\x20','1835766kyYbvg','descriptionFile:\x20','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.'];a81_0x2b1f=function(){return _0x429d7f;};return a81_0x2b1f();}function buildResultMessage(_0x319860){const _0x263eaf=a81_0x4f8a6d,_0x47ac1a=[];return _0x319860[_0x263eaf(0x181)]&&_0x47ac1a[_0x263eaf(0x17c)]('truncated\x20from\x20'+_0x319860[_0x263eaf(0x17d)]+_0x263eaf(0x17e)),_0x319860['redactionCount']>0x0&&_0x47ac1a[_0x263eaf(0x17c)](_0x263eaf(0x19c)+_0x319860[_0x263eaf(0x192)]+_0x263eaf(0x17b)+_0x319860[_0x263eaf(0x17a)][_0x263eaf(0x191)](',\x20')),_0x47ac1a[_0x263eaf(0x183)]===0x0?_0x263eaf(0x1af):_0x263eaf(0x185)+_0x47ac1a[_0x263eaf(0x191)](';\x20')+')';}async function prepareIssueReport(_0x7548ea){const _0x5b1479=a81_0x4f8a6d,_0x4e4133=_0x7548ea[_0x5b1479(0x1a2)](_0x5b1479(0x189))['trim'](),_0x4a007e=_0x7548ea[_0x5b1479(0x1a2)](_0x5b1479(0x177)),_0x67d1ff=_0x7548ea['str'](DESCRIPTION_FILE_FLAG)[_0x5b1479(0x197)]();if(!_0x67d1ff){const _0x30944f=_0x4a007e;if(!_0x30944f[_0x5b1479(0x197)]())throw CliErrors[_0x5b1479(0x1b0)]('Issue\x20description\x20cannot\x20be\x20empty.',_0x5b1479(0x190));const _0x7742fa=sanitizeIssueDescription(_0x30944f);return{'title':_0x4e4133,'description':_0x7742fa[_0x5b1479(0x177)],'descriptionSource':_0x5b1479(0x1a0),'sanitize':_0x7742fa};}const _0x2c0299=resolve(process['cwd'](),_0x67d1ff),_0x2afd19=await readFile(_0x2c0299,'utf8');if(!_0x2afd19['trim']())throw CliErrors[_0x5b1479(0x1b0)](_0x5b1479(0x188)+_0x2c0299,'Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.');const _0x11900e=sanitizeIssueDescription(_0x2afd19);return{'title':_0x4e4133,'description':_0x11900e[_0x5b1479(0x177)],'descriptionSource':_0x5b1479(0x180),'descriptionFilePath':_0x2c0299,'sanitize':_0x11900e};}
@@ -1 +1 @@
1
- function a82_0x136a(){const _0x58cc83=['REDACTED:authorization','3241473Ujzkau','label','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','457788OdsOSi','utf8','push','REDACTED:bearer-jwt','5494727qhFjER','password','kind','replace','from','private-key','4204314lOOxxR','4208188SDbOSG','REDACTED:access-key','1LyjeQh','access-key','pattern','byteLength','cookie','includes','8505816wlgPsD','subarray','REDACTED:cookie','max','5prtZqR','string','14828058nFwgOm'];a82_0x136a=function(){return _0x58cc83;};return a82_0x136a();}const a82_0x3e5498=a82_0x1c16;(function(_0x24f698,_0x1d71b5){const _0x519a98=a82_0x1c16,_0x556767=_0x24f698();while(!![]){try{const _0x353b9c=parseInt(_0x519a98(0x147))/0x1*(-parseInt(_0x519a98(0x13a))/0x2)+-parseInt(_0x519a98(0x137))/0x3+parseInt(_0x519a98(0x145))/0x4*(parseInt(_0x519a98(0x151))/0x5)+parseInt(_0x519a98(0x144))/0x6+parseInt(_0x519a98(0x13e))/0x7+parseInt(_0x519a98(0x14d))/0x8+-parseInt(_0x519a98(0x153))/0x9;if(_0x353b9c===_0x1d71b5)break;else _0x556767['push'](_0x556767['shift']());}catch(_0x1588c6){_0x556767['push'](_0x556767['shift']());}}}(a82_0x136a,0x9d3a7));function a82_0x1c16(_0x1df31a,_0x4df335){_0x1df31a=_0x1df31a-0x137;const _0x136ac0=a82_0x136a();let _0x1c1617=_0x136ac0[_0x1df31a];return _0x1c1617;}export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a82_0x3e5498(0x139),REDACTION_RULES=[{'kind':a82_0x3e5498(0x14b),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a82_0x3e5498(0x14f)},{'kind':'authorization','pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a82_0x3e5498(0x154)},{'kind':a82_0x3e5498(0x143),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':'REDACTED:private-key'},{'kind':a82_0x3e5498(0x148),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a82_0x3e5498(0x146)},{'kind':a82_0x3e5498(0x13f),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':'REDACTED:password'},{'kind':'bearer-jwt','pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a82_0x3e5498(0x13d)}];export function sanitizeIssueDescription(_0x410f3e){const _0x401b54=a82_0x3e5498,_0x405f7a=Buffer[_0x401b54(0x14a)](_0x410f3e,_0x401b54(0x13b)),_0x2e0a5b=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x567a8e=_0x410f3e,_0x3db160=0x0;const _0x598e79=[];if(!_0x2e0a5b)for(const _0x1432ce of REDACTION_RULES){let _0xd5e7ef=0x0;_0x567a8e=_0x567a8e[_0x401b54(0x141)](_0x1432ce[_0x401b54(0x149)],(_0x16df17,_0x5d9364)=>{const _0x1bfbae=_0x401b54;_0xd5e7ef+=0x1;const _0x5ab70e=typeof _0x5d9364===_0x1bfbae(0x152)?_0x5d9364:'';return _0x5ab70e+'['+_0x1432ce[_0x1bfbae(0x138)]+']';}),_0xd5e7ef>0x0&&(_0x3db160+=_0xd5e7ef,!_0x598e79[_0x401b54(0x14c)](_0x1432ce[_0x401b54(0x140)])&&_0x598e79[_0x401b54(0x13c)](_0x1432ce[_0x401b54(0x140)]));}let _0x30a221=![];if(Buffer['byteLength'](_0x567a8e,'utf8')>ISSUE_DESCRIPTION_MAX_BYTES){_0x30a221=!![];const _0x19d8f3=Buffer['byteLength'](TRUNCATION_NOTICE,_0x401b54(0x13b)),_0x5a490b=Math[_0x401b54(0x150)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x19d8f3);_0x567a8e=sliceUtf8Bytes(_0x567a8e,_0x5a490b)+TRUNCATION_NOTICE;}return{'description':_0x567a8e,'originalBytes':_0x405f7a,'truncated':_0x30a221,'redactionCount':_0x3db160,'redactionKinds':_0x598e79};}function sliceUtf8Bytes(_0x330e28,_0x198d62){const _0x20737c=a82_0x3e5498;if(_0x198d62<=0x0)return'';const _0x4a0df1=Buffer[_0x20737c(0x142)](_0x330e28,_0x20737c(0x13b));if(_0x4a0df1['byteLength']<=_0x198d62)return _0x330e28;let _0x5705d0=_0x198d62;while(_0x5705d0>0x0){const _0x2cc150=_0x4a0df1[_0x5705d0];if(_0x2cc150===undefined||(_0x2cc150&0xc0)!==0x80)break;_0x5705d0-=0x1;}return _0x4a0df1[_0x20737c(0x14e)](0x0,_0x5705d0)['toString']('utf8');}
1
+ const a82_0x4e6679=a82_0x1e3c;(function(_0xf0f17e,_0x43e169){const _0x322197=a82_0x1e3c,_0x161676=_0xf0f17e();while(!![]){try{const _0x5225a7=parseInt(_0x322197(0x9b))/0x1+-parseInt(_0x322197(0xa1))/0x2*(parseInt(_0x322197(0xa8))/0x3)+-parseInt(_0x322197(0x95))/0x4+-parseInt(_0x322197(0xa6))/0x5*(parseInt(_0x322197(0x8c))/0x6)+-parseInt(_0x322197(0x90))/0x7+parseInt(_0x322197(0xa0))/0x8+-parseInt(_0x322197(0x9e))/0x9*(-parseInt(_0x322197(0x91))/0xa);if(_0x5225a7===_0x43e169)break;else _0x161676['push'](_0x161676['shift']());}catch(_0x287694){_0x161676['push'](_0x161676['shift']());}}}(a82_0x24be,0x663ba));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a82_0x4e6679(0xa5),REDACTION_RULES=[{'kind':a82_0x4e6679(0x93),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a82_0x4e6679(0x97)},{'kind':a82_0x4e6679(0xa7),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a82_0x4e6679(0x94)},{'kind':a82_0x4e6679(0x9c),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a82_0x4e6679(0x92)},{'kind':'access-key','pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a82_0x4e6679(0x9f)},{'kind':a82_0x4e6679(0x9d),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':'REDACTED:password'},{'kind':'bearer-jwt','pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a82_0x4e6679(0x96)}];function a82_0x1e3c(_0x16417e,_0x54202c){_0x16417e=_0x16417e-0x8c;const _0x24be73=a82_0x24be();let _0x1e3cdd=_0x24be73[_0x16417e];return _0x1e3cdd;}export function sanitizeIssueDescription(_0xeeecb8){const _0x541237=a82_0x4e6679,_0x1c373a=Buffer[_0x541237(0xa4)](_0xeeecb8,_0x541237(0x9a)),_0x39120b=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x29578a=_0xeeecb8,_0x5a4716=0x0;const _0x593018=[];if(!_0x39120b)for(const _0x13d79c of REDACTION_RULES){let _0xa98b5f=0x0;_0x29578a=_0x29578a[_0x541237(0x8e)](_0x13d79c['pattern'],(_0x23ac43,_0x439a01)=>{const _0xbbcafb=_0x541237;_0xa98b5f+=0x1;const _0x16d14f=typeof _0x439a01==='string'?_0x439a01:'';return _0x16d14f+'['+_0x13d79c[_0xbbcafb(0x99)]+']';}),_0xa98b5f>0x0&&(_0x5a4716+=_0xa98b5f,!_0x593018['includes'](_0x13d79c[_0x541237(0xa3)])&&_0x593018['push'](_0x13d79c[_0x541237(0xa3)]));}let _0x9e0a6f=![];if(Buffer[_0x541237(0xa4)](_0x29578a,_0x541237(0x9a))>ISSUE_DESCRIPTION_MAX_BYTES){_0x9e0a6f=!![];const _0x491f40=Buffer[_0x541237(0xa4)](TRUNCATION_NOTICE,'utf8'),_0x127c18=Math[_0x541237(0x8f)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x491f40);_0x29578a=sliceUtf8Bytes(_0x29578a,_0x127c18)+TRUNCATION_NOTICE;}return{'description':_0x29578a,'originalBytes':_0x1c373a,'truncated':_0x9e0a6f,'redactionCount':_0x5a4716,'redactionKinds':_0x593018};}function a82_0x24be(){const _0x513a53=['REDACTED:bearer-jwt','REDACTED:cookie','toString','label','utf8','69922vBQaJv','private-key','password','568800sNjuYN','REDACTED:access-key','5179944Ermvil','418zBZuCe','subarray','kind','byteLength','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','11855rJJJNv','authorization','8199OMBZEd','906eLKArO','from','replace','max','3018036JDFFMQ','170yOBkVL','REDACTED:private-key','cookie','REDACTED:authorization','50812BuWkag'];a82_0x24be=function(){return _0x513a53;};return a82_0x24be();}function sliceUtf8Bytes(_0x5be3e1,_0x391fed){const _0x16c0fb=a82_0x4e6679;if(_0x391fed<=0x0)return'';const _0x31a2f7=Buffer[_0x16c0fb(0x8d)](_0x5be3e1,_0x16c0fb(0x9a));if(_0x31a2f7[_0x16c0fb(0xa4)]<=_0x391fed)return _0x5be3e1;let _0x3d451d=_0x391fed;while(_0x3d451d>0x0){const _0x30ce33=_0x31a2f7[_0x3d451d];if(_0x30ce33===undefined||(_0x30ce33&0xc0)!==0x80)break;_0x3d451d-=0x1;}return _0x31a2f7[_0x16c0fb(0xa2)](0x0,_0x3d451d)[_0x16c0fb(0x98)](_0x16c0fb(0x9a));}
@@ -1 +1 @@
1
- const a83_0x2a340f=a83_0x27c3;function a83_0x1bf2(){const _0x5b31d3=['details','log','read','37458QHDHFe','show','28Llzwrm','28558668BHBlQt','duration','en-US','538npCvYw','\x20\x20\x20Details:\x20','clearLogs','toLocaleString','length','keys','1320864xsjpbf','*\x20Lovrabet\x20CLI\x20logs:\x0a','View\x20command\x20history\x20logs','timestamp','write','2625HDJIZO','5939483EiDnAH','2720SuCfMX','forEach','Clear\x20command\x20history\x20logs','10PgsKaC','529458MZdxMt','\x20\x20\x20Time:\x20','warn','readLogs','success','7576aJwfwb','logs','clear','*\x20Logs\x20cleared','error','1055LaoJFk','stringify'];a83_0x1bf2=function(){return _0x5b31d3;};return a83_0x1bf2();}(function(_0x16a653,_0x475460){const _0x74104e=a83_0x27c3,_0x187b6b=_0x16a653();while(!![]){try{const _0xbcf129=parseInt(_0x74104e(0x1e1))/0x1+-parseInt(_0x74104e(0x1f6))/0x2*(-parseInt(_0x74104e(0x201))/0x3)+parseInt(_0x74104e(0x1e6))/0x4*(-parseInt(_0x74104e(0x1eb))/0x5)+-parseInt(_0x74104e(0x1fc))/0x6*(parseInt(_0x74104e(0x1f2))/0x7)+-parseInt(_0x74104e(0x1dd))/0x8*(parseInt(_0x74104e(0x1f0))/0x9)+-parseInt(_0x74104e(0x1e0))/0xa*(-parseInt(_0x74104e(0x202))/0xb)+parseInt(_0x74104e(0x1f3))/0xc;if(_0xbcf129===_0x475460)break;else _0x187b6b['push'](_0x187b6b['shift']());}catch(_0x5479b7){_0x187b6b['push'](_0x187b6b['shift']());}}}(a83_0x1bf2,0xf18c9));import{logger}from'../../utils/logger.js';function printLogs(_0x2c8bb0){const _0xb72bf5=a83_0x27c3;if(_0x2c8bb0[_0xb72bf5(0x1fa)]===0x0){console[_0xb72bf5(0x1ee)]('*\x20No\x20logs\x20found');return;}console[_0xb72bf5(0x1ee)](_0xb72bf5(0x1fd)),_0x2c8bb0[_0xb72bf5(0x1de)]((_0x441da4,_0x461ba3)=>{const _0x31a318=_0xb72bf5,_0xcfc98c=new Date(_0x441da4[_0x31a318(0x1ff)])[_0x31a318(0x1f9)](_0x31a318(0x1f5)),_0xaf0c01=_0x441da4['level']===_0x31a318(0x1e5)?'√':_0x441da4['level']===_0x31a318(0x1ea)?'×':_0x441da4['level']===_0x31a318(0x1e3)?'!':'i';console[_0x31a318(0x1ee)](_0x461ba3+0x1+'.\x20'+_0xaf0c01+'\x20['+_0x441da4['command']+']\x20'+_0x441da4['message']),console[_0x31a318(0x1ee)](_0x31a318(0x1e2)+_0xcfc98c),_0x441da4[_0x31a318(0x1f4)]&&console['log']('\x20\x20\x20Duration:\x20'+_0x441da4[_0x31a318(0x1f4)]+'ms'),_0x441da4[_0x31a318(0x1ed)]&&Object[_0x31a318(0x1fb)](_0x441da4[_0x31a318(0x1ed)])[_0x31a318(0x1fa)]>0x0&&console[_0x31a318(0x1ee)](_0x31a318(0x1f7)+JSON[_0x31a318(0x1ec)](_0x441da4[_0x31a318(0x1ed)],null,0x2)),console[_0x31a318(0x1ee)]('');});}function a83_0x27c3(_0x29f60a,_0x547e1f){_0x29f60a=_0x29f60a-0x1dd;const _0x1bf2e7=a83_0x1bf2();let _0x27c326=_0x1bf2e7[_0x29f60a];return _0x27c326;}export const logsDefinitions=[{'service':a83_0x2a340f(0x1e7),'command':a83_0x2a340f(0x1f1),'description':a83_0x2a340f(0x1fe),'risk':a83_0x2a340f(0x1ef),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x139ba8){const _0x4d081c=a83_0x2a340f;return printLogs(logger[_0x4d081c(0x1e4)]()),{'ok':!![]};}},{'service':a83_0x2a340f(0x1e7),'command':a83_0x2a340f(0x1e8),'description':a83_0x2a340f(0x1df),'risk':a83_0x2a340f(0x200),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x19deac){const _0x4b1007=a83_0x2a340f;return logger[_0x4b1007(0x1f8)](),console[_0x4b1007(0x1ee)](_0x4b1007(0x1e9)),{'ok':!![]};}}];
1
+ const a83_0x4b918c=a83_0x3ccc;(function(_0x48b0fe,_0x19ea4a){const _0x158aaf=a83_0x3ccc,_0x1087cc=_0x48b0fe();while(!![]){try{const _0x1e50e5=parseInt(_0x158aaf(0x9e))/0x1*(parseInt(_0x158aaf(0xa6))/0x2)+parseInt(_0x158aaf(0xae))/0x3*(parseInt(_0x158aaf(0xb4))/0x4)+-parseInt(_0x158aaf(0xa8))/0x5*(parseInt(_0x158aaf(0xaa))/0x6)+parseInt(_0x158aaf(0xa0))/0x7+parseInt(_0x158aaf(0xa5))/0x8*(parseInt(_0x158aaf(0xa4))/0x9)+parseInt(_0x158aaf(0xbe))/0xa+-parseInt(_0x158aaf(0xa1))/0xb;if(_0x1e50e5===_0x19ea4a)break;else _0x1087cc['push'](_0x1087cc['shift']());}catch(_0x2fa2f2){_0x1087cc['push'](_0x1087cc['shift']());}}}(a83_0x4700,0x4e4ae));function a83_0x3ccc(_0x40cb01,_0xf0907e){_0x40cb01=_0x40cb01-0x9e;const _0x470081=a83_0x4700();let _0x3cccb9=_0x470081[_0x40cb01];return _0x3cccb9;}import{logger}from'../../utils/logger.js';function printLogs(_0x4026e0){const _0x452b27=a83_0x3ccc;if(_0x4026e0[_0x452b27(0xbd)]===0x0){console[_0x452b27(0xab)](_0x452b27(0xaf));return;}console[_0x452b27(0xab)]('*\x20Lovrabet\x20CLI\x20logs:\x0a'),_0x4026e0[_0x452b27(0xb0)]((_0x5de799,_0x187fce)=>{const _0x20b3d5=_0x452b27,_0x2504ba=new Date(_0x5de799['timestamp'])[_0x20b3d5(0xad)](_0x20b3d5(0xb9)),_0x4c50c0=_0x5de799[_0x20b3d5(0xb7)]==='success'?'√':_0x5de799['level']===_0x20b3d5(0xb1)?'×':_0x5de799[_0x20b3d5(0xb7)]===_0x20b3d5(0xba)?'!':'i';console[_0x20b3d5(0xab)](_0x187fce+0x1+'.\x20'+_0x4c50c0+'\x20['+_0x5de799[_0x20b3d5(0xb5)]+']\x20'+_0x5de799[_0x20b3d5(0xc3)]),console['log'](_0x20b3d5(0xc2)+_0x2504ba),_0x5de799['duration']&&console[_0x20b3d5(0xab)](_0x20b3d5(0xb6)+_0x5de799[_0x20b3d5(0xbf)]+'ms'),_0x5de799[_0x20b3d5(0xb2)]&&Object[_0x20b3d5(0xbc)](_0x5de799[_0x20b3d5(0xb2)])[_0x20b3d5(0xbd)]>0x0&&console[_0x20b3d5(0xab)](_0x20b3d5(0xc4)+JSON[_0x20b3d5(0xb8)](_0x5de799[_0x20b3d5(0xb2)],null,0x2)),console[_0x20b3d5(0xab)]('');});}export const logsDefinitions=[{'service':a83_0x4b918c(0xa3),'command':a83_0x4b918c(0xa2),'description':a83_0x4b918c(0xb3),'risk':a83_0x4b918c(0x9f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x215494){const _0x38277f=a83_0x4b918c;return printLogs(logger[_0x38277f(0xc0)]()),{'ok':!![]};}},{'service':a83_0x4b918c(0xa3),'command':a83_0x4b918c(0xa7),'description':a83_0x4b918c(0xc1),'risk':a83_0x4b918c(0xa9),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x520c1a){const _0x5f7a82=a83_0x4b918c;return logger[_0x5f7a82(0xac)](),console[_0x5f7a82(0xab)](_0x5f7a82(0xbb)),{'ok':!![]};}}];function a83_0x4700(){const _0x39db73=['read','2513637NCHilV','12103861qxBhjI','show','logs','300663UEuAnF','136NZicKN','2966Qpicke','clear','755bfMybe','write','8754SCuzyQ','log','clearLogs','toLocaleString','243qtJStg','*\x20No\x20logs\x20found','forEach','error','details','View\x20command\x20history\x20logs','10156KlCtqL','command','\x20\x20\x20Duration:\x20','level','stringify','en-US','warn','*\x20Logs\x20cleared','keys','length','2254240xaegXQ','duration','readLogs','Clear\x20command\x20history\x20logs','\x20\x20\x20Time:\x20','message','\x20\x20\x20Details:\x20','191rggpoM'];a83_0x4700=function(){return _0x39db73;};return a83_0x4700();}
@@ -1 +1 @@
1
- function a84_0xda81(){const _0x21bd4c=['13056lbVxax','9vQnUAb','3740zdiGEW','9ZgUpOO','1472375cXGkXX','6VuNBJV','204992MhrPnq','1174782TdACPB','1668papCDP','32664HJldHO','3249930gcOGfF','872nXzZuB'];a84_0xda81=function(){return _0x21bd4c;};return a84_0xda81();}(function(_0x14310b,_0x1c95e4){const _0x441e43=a84_0x32bd,_0x3dd2ab=_0x14310b();while(!![]){try{const _0x16fca5=-parseInt(_0x441e43(0x98))/0x1*(parseInt(_0x441e43(0xa1))/0x2)+parseInt(_0x441e43(0x9d))/0x3*(parseInt(_0x441e43(0xa0))/0x4)+-parseInt(_0x441e43(0x99))/0x5+parseInt(_0x441e43(0x9a))/0x6*(-parseInt(_0x441e43(0x9c))/0x7)+parseInt(_0x441e43(0x9b))/0x8*(-parseInt(_0x441e43(0x96))/0x9)+-parseInt(_0x441e43(0x9f))/0xa+-parseInt(_0x441e43(0x97))/0xb*(-parseInt(_0x441e43(0x9e))/0xc);if(_0x16fca5===_0x1c95e4)break;else _0x3dd2ab['push'](_0x3dd2ab['shift']());}catch(_0x52121f){_0x3dd2ab['push'](_0x3dd2ab['shift']());}}}(a84_0xda81,0x2abaa));import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';function a84_0x32bd(_0x1e63d7,_0x48166e){_0x1e63d7=_0x1e63d7-0x96;const _0xda8144=a84_0xda81();let _0x32bd38=_0xda8144[_0x1e63d7];return _0x32bd38;}export const menuDefinitions=[menuSync,menuUpdate];
1
+ (function(_0x3d3980,_0x33c388){const _0x29cce9=a84_0x4250,_0x5994d1=_0x3d3980();while(!![]){try{const _0x25391d=-parseInt(_0x29cce9(0x120))/0x1+-parseInt(_0x29cce9(0x11e))/0x2*(-parseInt(_0x29cce9(0x119))/0x3)+-parseInt(_0x29cce9(0x11d))/0x4*(parseInt(_0x29cce9(0x11c))/0x5)+-parseInt(_0x29cce9(0x122))/0x6+parseInt(_0x29cce9(0x121))/0x7+-parseInt(_0x29cce9(0x11a))/0x8*(parseInt(_0x29cce9(0x11b))/0x9)+-parseInt(_0x29cce9(0x11f))/0xa*(-parseInt(_0x29cce9(0x118))/0xb);if(_0x25391d===_0x33c388)break;else _0x5994d1['push'](_0x5994d1['shift']());}catch(_0x687fd7){_0x5994d1['push'](_0x5994d1['shift']());}}}(a84_0x5d44,0x6970c));function a84_0x4250(_0x519b47,_0x19955c){_0x519b47=_0x519b47-0x118;const _0x5d4454=a84_0x5d44();let _0x425093=_0x5d4454[_0x519b47];return _0x425093;}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuSync,menuUpdate];function a84_0x5d44(){const _0x227a26=['5357408FKpbCn','9JBWWfG','5EocHrb','906632vSPTaS','11596bFeXKo','17633310HNVSTV','476371NGQDnG','3205272yKgoVw','4830624kUYgJO','11fRqxYM','201jAdnQh'];a84_0x5d44=function(){return _0x227a26;};return a84_0x5d44();}
@@ -1 +1 @@
1
- (function(_0x35e223,_0x5d374a){const _0xf56029=a85_0x333f,_0x1cb509=_0x35e223();while(!![]){try{const _0x25e7ed=-parseInt(_0xf56029(0x180))/0x1+-parseInt(_0xf56029(0x169))/0x2+parseInt(_0xf56029(0x182))/0x3+-parseInt(_0xf56029(0x17d))/0x4*(-parseInt(_0xf56029(0x183))/0x5)+-parseInt(_0xf56029(0x16c))/0x6*(-parseInt(_0xf56029(0x17e))/0x7)+parseInt(_0xf56029(0x178))/0x8*(-parseInt(_0xf56029(0x184))/0x9)+parseInt(_0xf56029(0x17f))/0xa;if(_0x25e7ed===_0x5d374a)break;else _0x1cb509['push'](_0x1cb509['shift']());}catch(_0x4a5519){_0x1cb509['push'](_0x1cb509['shift']());}}}(a85_0x2855,0xb2a80));function strWidth(_0x5df045){const _0x534f76=a85_0x333f;let _0x2c0c16=0x0;for(const _0x49c5cd of _0x5df045){_0x2c0c16+=/[\u4e00-\u9fa5]/[_0x534f76(0x172)](_0x49c5cd)?0x2:0x1;}return _0x2c0c16;}function a85_0x333f(_0x18210a,_0x2d7e6f){_0x18210a=_0x18210a-0x166;const _0x285564=a85_0x2855();let _0x333fa1=_0x285564[_0x18210a];return _0x333fa1;}function padRight(_0x17a3ea,_0x2a7751){const _0x1d8e1b=a85_0x333f,_0x2d341d=strWidth(_0x17a3ea);return _0x17a3ea+'\x20'[_0x1d8e1b(0x175)](Math[_0x1d8e1b(0x176)](0x0,_0x2a7751-_0x2d341d));}function a85_0x2855(){const _0x90c44f=['path','label','map','24HBZgLt','192794jSmHKG','9228500pMYrPF','762737TTqJoL','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','2934111GAUOrq','1172690CJOwCu','3891987UPApcG','Menu\x20Name','push','(unchanged)','\x20\x20Affected\x20menus:\x20','2905402hFnNkw','Local','showOnline','204nsJRPS','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','Platform','\x20\x20\x20\x20•\x20','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','length','test','online','local','repeat','max','join','24ZPMfyf','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.'];a85_0x2855=function(){return _0x90c44f;};return a85_0x2855();}export function renderCompareTable(_0x5aada3,_0x785a1={}){const _0x176531=a85_0x333f;if(_0x5aada3['length']===0x0)return'';const _0xb6a84e=_0x785a1[_0x176531(0x16b)]??!![],_0x153e1f=Math[_0x176531(0x176)](0x1e,..._0x5aada3[_0x176531(0x17c)](_0x500c7f=>strWidth(_0x500c7f['label']))),_0xf26a04=0x4,_0x4a0d97=[],_0x3a2136='\x20\x20'+padRight(_0x176531(0x185),_0x153e1f),_0x55fb73=padRight(_0x176531(0x16a),_0xf26a04),_0x37631d=_0xb6a84e?'\x20\x20'+padRight(_0x176531(0x16e),_0xf26a04):'';_0x4a0d97[_0x176531(0x166)](_0x3a2136+'\x20\x20'+_0x55fb73+(_0xb6a84e?_0x37631d:'')),_0x4a0d97[_0x176531(0x166)]('\x20\x20'+'─'[_0x176531(0x175)](_0x153e1f)+'\x20\x20'+'─'[_0x176531(0x175)](_0xf26a04)+(_0xb6a84e?'\x20\x20'+'─'[_0x176531(0x175)](_0xf26a04):''));for(const _0x1f60f8 of _0x5aada3){const _0x5df815=padRight(_0x1f60f8[_0x176531(0x17b)],_0x153e1f),_0xc98d61=_0x1f60f8[_0x176531(0x174)]?'✓':'✗',_0x4b8028=padRight(_0xc98d61,_0xf26a04);let _0x3d133d='\x20\x20'+_0x5df815+'\x20\x20'+_0x4b8028;if(_0xb6a84e){const _0x4275b5=_0x1f60f8[_0x176531(0x173)]?'✓':'✗';_0x3d133d+='\x20\x20'+padRight(_0x4275b5,_0xf26a04);}_0x4a0d97[_0x176531(0x166)](_0x3d133d);}return _0x4a0d97[_0x176531(0x177)]('\x0a');}export function renderSyncSummary(_0x177edd,_0x2de19a){const _0x58cca4=a85_0x333f;if(_0x177edd[_0x58cca4(0x171)]===0x0)return _0x2de19a?_0x58cca4(0x179):'\x20\x20No\x20pages\x20to\x20sync.';const _0x3778f9=['\x20\x20'+_0x177edd[_0x58cca4(0x171)]+_0x58cca4(0x181)];for(const _0x190656 of _0x177edd){_0x3778f9[_0x58cca4(0x166)](_0x58cca4(0x16f)+_0x190656[_0x58cca4(0x17b)]+'\x20('+_0x190656[_0x58cca4(0x17a)]+')');}return _0x3778f9[_0x58cca4(0x177)]('\x0a');}export function renderUpdateSummary(_0x1636e6,_0x52499d){const _0x3ddd3f=a85_0x333f;if(_0x1636e6[_0x3ddd3f(0x171)]===0x0)return _0x3ddd3f(0x170);const _0x1aa8b6=['\x20\x20'+_0x1636e6[_0x3ddd3f(0x171)]+_0x3ddd3f(0x16d),'\x20\x20\x20\x20JS:\x20\x20'+(_0x52499d[0x0]??_0x3ddd3f(0x167)),'\x20\x20\x20\x20CSS:\x20'+(_0x52499d[0x1]??_0x3ddd3f(0x167)),'',_0x3ddd3f(0x168)+_0x1636e6[_0x3ddd3f(0x177)](',\x20')];return _0x1aa8b6[_0x3ddd3f(0x177)]('\x0a');}
1
+ function a85_0x4d37(_0x153eae,_0x56d495){_0x153eae=_0x153eae-0x146;const _0x130b07=a85_0x130b();let _0x4d3702=_0x130b07[_0x153eae];return _0x4d3702;}(function(_0x3e5cdf,_0x4c060d){const _0x3a0273=a85_0x4d37,_0x2f4475=_0x3e5cdf();while(!![]){try{const _0x25dcfc=parseInt(_0x3a0273(0x168))/0x1*(-parseInt(_0x3a0273(0x15e))/0x2)+parseInt(_0x3a0273(0x15f))/0x3*(-parseInt(_0x3a0273(0x15b))/0x4)+-parseInt(_0x3a0273(0x167))/0x5*(-parseInt(_0x3a0273(0x15c))/0x6)+-parseInt(_0x3a0273(0x150))/0x7*(-parseInt(_0x3a0273(0x157))/0x8)+-parseInt(_0x3a0273(0x152))/0x9*(-parseInt(_0x3a0273(0x146))/0xa)+-parseInt(_0x3a0273(0x15d))/0xb+parseInt(_0x3a0273(0x159))/0xc*(parseInt(_0x3a0273(0x161))/0xd);if(_0x25dcfc===_0x4c060d)break;else _0x2f4475['push'](_0x2f4475['shift']());}catch(_0x3a4483){_0x2f4475['push'](_0x2f4475['shift']());}}}(a85_0x130b,0x7029b));function strWidth(_0x40b309){const _0x52dfe6=a85_0x4d37;let _0x2b1e4f=0x0;for(const _0x42dcbe of _0x40b309){_0x2b1e4f+=/[\u4e00-\u9fa5]/[_0x52dfe6(0x14b)](_0x42dcbe)?0x2:0x1;}return _0x2b1e4f;}function padRight(_0x11caf2,_0x262866){const _0x336719=a85_0x4d37,_0x7d7e81=strWidth(_0x11caf2);return _0x11caf2+'\x20'[_0x336719(0x166)](Math[_0x336719(0x15a)](0x0,_0x262866-_0x7d7e81));}function a85_0x130b(){const _0x273a31=['\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','91ovzYbB','(unchanged)','3362517JldzqB','\x20\x20\x20\x20•\x20','label','map','local','541472ZTLBnu','push','6840CoYeaf','max','18420leaaNj','12UnAwoy','9330662tsUlrt','188vMkLIh','144aMxveE','online','13eAjmQS','path','join','\x20\x20\x20\x20CSS:\x20','showOnline','repeat','2286915fdhgeo','6810dIumkj','10tJbcvb','\x20\x20Affected\x20menus:\x20','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','Local','test','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','length','\x20\x20No\x20pages\x20to\x20sync.'];a85_0x130b=function(){return _0x273a31;};return a85_0x130b();}export function renderCompareTable(_0x400a3d,_0x1bf94e={}){const _0x191b2a=a85_0x4d37;if(_0x400a3d['length']===0x0)return'';const _0x10243a=_0x1bf94e[_0x191b2a(0x165)]??!![],_0x486732=Math[_0x191b2a(0x15a)](0x1e,..._0x400a3d[_0x191b2a(0x155)](_0x1467bd=>strWidth(_0x1467bd[_0x191b2a(0x154)]))),_0x22f00d=0x4,_0x47df39=[],_0xb2dec0='\x20\x20'+padRight('Menu\x20Name',_0x486732),_0x7a1ca0=padRight(_0x191b2a(0x14a),_0x22f00d),_0x5ba2f1=_0x10243a?'\x20\x20'+padRight('Platform',_0x22f00d):'';_0x47df39['push'](_0xb2dec0+'\x20\x20'+_0x7a1ca0+(_0x10243a?_0x5ba2f1:'')),_0x47df39[_0x191b2a(0x158)]('\x20\x20'+'─'[_0x191b2a(0x166)](_0x486732)+'\x20\x20'+'─'[_0x191b2a(0x166)](_0x22f00d)+(_0x10243a?'\x20\x20'+'─'[_0x191b2a(0x166)](_0x22f00d):''));for(const _0x41203e of _0x400a3d){const _0x59c1e5=padRight(_0x41203e['label'],_0x486732),_0x4ec066=_0x41203e[_0x191b2a(0x156)]?'✓':'✗',_0x385c5b=padRight(_0x4ec066,_0x22f00d);let _0x1750ab='\x20\x20'+_0x59c1e5+'\x20\x20'+_0x385c5b;if(_0x10243a){const _0x206707=_0x41203e[_0x191b2a(0x160)]?'✓':'✗';_0x1750ab+='\x20\x20'+padRight(_0x206707,_0x22f00d);}_0x47df39[_0x191b2a(0x158)](_0x1750ab);}return _0x47df39[_0x191b2a(0x163)]('\x0a');}export function renderSyncSummary(_0x432420,_0xdbdb9e){const _0x1f2d3b=a85_0x4d37;if(_0x432420[_0x1f2d3b(0x14d)]===0x0)return _0xdbdb9e?_0x1f2d3b(0x149):_0x1f2d3b(0x14e);const _0x52f08f=['\x20\x20'+_0x432420[_0x1f2d3b(0x14d)]+_0x1f2d3b(0x14f)];for(const _0x3e912b of _0x432420){_0x52f08f[_0x1f2d3b(0x158)](_0x1f2d3b(0x153)+_0x3e912b[_0x1f2d3b(0x154)]+'\x20('+_0x3e912b[_0x1f2d3b(0x162)]+')');}return _0x52f08f[_0x1f2d3b(0x163)]('\x0a');}export function renderUpdateSummary(_0x42c500,_0x46d9bd){const _0x3c5183=a85_0x4d37;if(_0x42c500[_0x3c5183(0x14d)]===0x0)return _0x3c5183(0x148);const _0x2e574e=['\x20\x20'+_0x42c500[_0x3c5183(0x14d)]+_0x3c5183(0x14c),'\x20\x20\x20\x20JS:\x20\x20'+(_0x46d9bd[0x0]??_0x3c5183(0x151)),_0x3c5183(0x164)+(_0x46d9bd[0x1]??_0x3c5183(0x151)),'',_0x3c5183(0x147)+_0x42c500[_0x3c5183(0x163)](',\x20')];return _0x2e574e[_0x3c5183(0x163)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x2c7fe1,_0x355246){var _0x37eb2e=a86_0x5cbd,_0x23d0a5=_0x2c7fe1();while(!![]){try{var _0x172a5f=parseInt(_0x37eb2e(0x163))/0x1*(-parseInt(_0x37eb2e(0x166))/0x2)+parseInt(_0x37eb2e(0x15d))/0x3*(parseInt(_0x37eb2e(0x167))/0x4)+parseInt(_0x37eb2e(0x15f))/0x5+parseInt(_0x37eb2e(0x165))/0x6*(parseInt(_0x37eb2e(0x160))/0x7)+parseInt(_0x37eb2e(0x162))/0x8*(parseInt(_0x37eb2e(0x161))/0x9)+parseInt(_0x37eb2e(0x164))/0xa*(-parseInt(_0x37eb2e(0x15e))/0xb)+-parseInt(_0x37eb2e(0x15c))/0xc*(parseInt(_0x37eb2e(0x168))/0xd);if(_0x172a5f===_0x355246)break;else _0x23d0a5['push'](_0x23d0a5['shift']());}catch(_0x3e02d2){_0x23d0a5['push'](_0x23d0a5['shift']());}}}(a86_0x8cb5,0x33370));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 a86_0x5cbd(_0xb7df71,_0x488090){_0xb7df71=_0xb7df71-0x15c;var _0x8cb56=a86_0x8cb5();var _0x5cbd37=_0x8cb56[_0xb7df71];return _0x5cbd37;}export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';function a86_0x8cb5(){var _0x5ed56c=['25762ofyqji','1732535WfHsWu','1064QCqvwi','57357zCWuoZ','152QvqYMx','30754rBIuMP','960qdPefy','420fxCYRA','20SvFuKM','4QlOoYA','1118741csIipr','12bfgevp','1049913kOQxgq'];a86_0x8cb5=function(){return _0x5ed56c;};return a86_0x8cb5();}
1
+ (function(_0x2698ea,_0x3e53e3){var _0x404ec8=a86_0x2a9e,_0x5bd289=_0x2698ea();while(!![]){try{var _0x15800a=-parseInt(_0x404ec8(0x17d))/0x1*(-parseInt(_0x404ec8(0x17e))/0x2)+parseInt(_0x404ec8(0x17a))/0x3+-parseInt(_0x404ec8(0x17f))/0x4+parseInt(_0x404ec8(0x179))/0x5*(parseInt(_0x404ec8(0x17c))/0x6)+-parseInt(_0x404ec8(0x17b))/0x7*(parseInt(_0x404ec8(0x178))/0x8)+-parseInt(_0x404ec8(0x181))/0x9+-parseInt(_0x404ec8(0x180))/0xa;if(_0x15800a===_0x3e53e3)break;else _0x5bd289['push'](_0x5bd289['shift']());}catch(_0x54155e){_0x5bd289['push'](_0x5bd289['shift']());}}}(a86_0x54ff,0x75eba));function a86_0x2a9e(_0x1b0cdd,_0x26292a){_0x1b0cdd=_0x1b0cdd-0x178;var _0x54ff77=a86_0x54ff();var _0x2a9ed2=_0x54ff77[_0x1b0cdd];return _0x2a9ed2;}export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';function a86_0x54ff(){var _0x3ea405=['2434653DfdVol','8jfprMe','310825dgAros','1210995CCxYcY','905478JdfTos','18jBONHh','9190Jmdztd','180inYpGe','63684ONHEus','5184660tIDsgR'];a86_0x54ff=function(){return _0x3ea405;};return a86_0x54ff();}export*from'../../../commands/menu/shared/update-core.js';
@@ -1 +1 @@
1
- (function(_0xb7dbd3,_0x1ac396){const _0x13066e=a87_0x8c58,_0x2c5502=_0xb7dbd3();while(!![]){try{const _0x18ca6e=parseInt(_0x13066e(0xdc))/0x1*(-parseInt(_0x13066e(0xbc))/0x2)+parseInt(_0x13066e(0xd7))/0x3*(-parseInt(_0x13066e(0xbb))/0x4)+-parseInt(_0x13066e(0xd0))/0x5+parseInt(_0x13066e(0xc0))/0x6+parseInt(_0x13066e(0xcc))/0x7*(-parseInt(_0x13066e(0xd5))/0x8)+parseInt(_0x13066e(0xb9))/0x9*(-parseInt(_0x13066e(0xcb))/0xa)+parseInt(_0x13066e(0xc3))/0xb;if(_0x18ca6e===_0x1ac396)break;else _0x2c5502['push'](_0x2c5502['shift']());}catch(_0x5325ea){_0x2c5502['push'](_0x2c5502['shift']());}}}(a87_0x48de,0x8872b));import a87_0x2fb704 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a87_0x103f0a from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';function a87_0x8c58(_0x1656be,_0x75692e){_0x1656be=_0x1656be-0xb9;const _0x48debf=a87_0x48de();let _0x8c58ce=_0x48debf[_0x1656be];return _0x8c58ce;}import{CliErrors}from'../../../errors.js';function onCancel(_0x3c6c83){const _0x214274=a87_0x8c58;return _0x3c6c83[_0x214274(0xd3)](_0x3cdc6f=>{const _0x5000c4=_0x214274;if(_0x3cdc6f?.['name']===_0x5000c4(0xc8))throw CliErrors[_0x5000c4(0xc1)](_0x5000c4(0xde));throw _0x3cdc6f;});}export function startSpinner(_0xdce8b6){const _0x5d5988=a87_0x8c58;return a87_0x103f0a({'text':_0xdce8b6,'color':_0x5d5988(0xdf)})['start']();}export function stopSpinner(_0x380349,_0xdcaf4f,_0x382f3a){const _0x2fbaac=a87_0x8c58;_0x382f3a?_0x380349[_0x2fbaac(0xe1)](_0xdcaf4f):_0x380349['fail'](_0xdcaf4f);}function a87_0x48de(){const _0x1cae5e=['This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','1576aqQRkN','No\x20local\x20pages\x20found.','87folffG','test','label','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','658572QipOVn','filter','Cancelled.','cyan','length','succeed','CSS\x20URL\x20check\x20failed','red','error','9FsxBWL','gray','103276UXLIxv','2UwZDwU','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','\x20\x20JS\x20URL:','2200284RSFtdK','cancelled','\x20\x20Checking\x20JS\x20URL\x20reachability...','35490598HKIiTm','has','[new]','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','[already\x20on\x20platform]','ExitPromptError','JS\x20URL\x20checked','includes','5478130HURbLH','9499OLNvWb','path','trim','No\x20menus\x20selected.','4058880ijFKwn','\x20\x20CSS\x20URL:','isTTY','catch'];a87_0x48de=function(){return _0x1cae5e;};return a87_0x48de();}export async function askConfirm(_0x30d82a){return onCancel(confirm({'message':_0x30d82a,'theme':{'prefix':''}}));}export async function askJsUrl(_0x4b5882){const _0x42ab0e=a87_0x8c58;while(!![]){const _0x5dc45c=await onCancel(input({'message':_0x42ab0e(0xbf),'default':_0x4b5882,'theme':{'prefix':''}}));if(_0x5dc45c[_0x42ab0e(0xce)]()==='')throw CliErrors['cancelled']('Cancelled.');if(!/^https:\/\/.+\.js(\?.*)?$/['test'](_0x5dc45c['trim']())){console['error'](a87_0x2fb704['red'](_0x42ab0e(0xbd)));continue;}const _0x461d81=startSpinner(_0x42ab0e(0xc2));try{const _0x5747b0=await isUrlReachable(_0x5dc45c[_0x42ab0e(0xce)]());stopSpinner(_0x461d81,_0x42ab0e(0xc9),_0x5747b0);if(!_0x5747b0){console[_0x42ab0e(0xe4)](a87_0x2fb704[_0x42ab0e(0xe3)](_0x42ab0e(0xda)));continue;}return _0x5dc45c['trim']();}catch(_0x2017b5){stopSpinner(_0x461d81,'JS\x20URL\x20check\x20failed',![]);throw _0x2017b5;}}}export async function askCssUrl(_0x41654f){const _0x9ef94=a87_0x8c58;while(!![]){const _0x46e5b5=await onCancel(input({'message':_0x9ef94(0xd1),'default':_0x41654f,'theme':{'prefix':''}}));if(_0x46e5b5[_0x9ef94(0xce)]()==='')throw CliErrors['cancelled'](_0x9ef94(0xde));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x9ef94(0xd8)](_0x46e5b5[_0x9ef94(0xce)]())){console['error'](a87_0x2fb704[_0x9ef94(0xe3)](_0x9ef94(0xc6)));continue;}const _0x2f39c7=startSpinner('\x20\x20Checking\x20CSS\x20URL\x20reachability...');try{const _0x29cd9d=await isUrlReachable(_0x46e5b5['trim']());stopSpinner(_0x2f39c7,'CSS\x20URL\x20checked',_0x29cd9d);if(!_0x29cd9d){console[_0x9ef94(0xe4)](a87_0x2fb704[_0x9ef94(0xe3)]('\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable'));continue;}return _0x46e5b5[_0x9ef94(0xce)]();}catch(_0x2234a9){stopSpinner(_0x2f39c7,_0x9ef94(0xe2),![]);throw _0x2234a9;}}}export async function selectPages(_0x556c17,_0x2e4516,_0xc938b4){const _0x2cbb5c=a87_0x8c58,_0x85e61b=_0x556c17['map'](_0x3d4dbe=>({'name':_0x3d4dbe['label']+'\x20\x20'+(_0x2e4516[_0x2cbb5c(0xc4)](_0x3d4dbe[_0x2cbb5c(0xcd)])?a87_0x2fb704[_0x2cbb5c(0xba)](_0x2cbb5c(0xc7)):a87_0x2fb704['green'](_0x2cbb5c(0xc5))),'value':_0x3d4dbe[_0x2cbb5c(0xd9)],'checked':_0xc938b4?_0xc938b4[_0x2cbb5c(0xca)](_0x3d4dbe[_0x2cbb5c(0xd9)]):!_0x2e4516[_0x2cbb5c(0xc4)](_0x3d4dbe[_0x2cbb5c(0xcd)])}));if(_0x85e61b[_0x2cbb5c(0xe0)]===0x0)throw new Error(_0x2cbb5c(0xd6));const _0x4b0476=await onCancel(checkbox({'message':_0x2cbb5c(0xdb),'choices':_0x85e61b,'loop':![],'theme':{'prefix':''}}));if(_0x4b0476[_0x2cbb5c(0xe0)]===0x0)throw new Error(_0x2cbb5c(0xcf));return _0x556c17[_0x2cbb5c(0xdd)](_0x5493f8=>_0x4b0476[_0x2cbb5c(0xca)](_0x5493f8[_0x2cbb5c(0xd9)]));}export function isInteractive(){const _0x1976a1=a87_0x8c58;return process['stdin'][_0x1976a1(0xd2)]===!![];}export function requireInteractive(){const _0x4dd141=a87_0x8c58;if(!isInteractive())throw new Error(_0x4dd141(0xd4)+_0x4dd141(0xbe));}
1
+ (function(_0x3631a2,_0x4297d6){const _0x5ddfa4=a87_0xf201,_0xb3321b=_0x3631a2();while(!![]){try{const _0x1a8685=parseInt(_0x5ddfa4(0x15e))/0x1+-parseInt(_0x5ddfa4(0x161))/0x2*(-parseInt(_0x5ddfa4(0x15d))/0x3)+parseInt(_0x5ddfa4(0x152))/0x4*(parseInt(_0x5ddfa4(0x166))/0x5)+parseInt(_0x5ddfa4(0x155))/0x6*(parseInt(_0x5ddfa4(0x14f))/0x7)+parseInt(_0x5ddfa4(0x179))/0x8+parseInt(_0x5ddfa4(0x168))/0x9+parseInt(_0x5ddfa4(0x159))/0xa*(-parseInt(_0x5ddfa4(0x150))/0xb);if(_0x1a8685===_0x4297d6)break;else _0xb3321b['push'](_0xb3321b['shift']());}catch(_0x1e1ba6){_0xb3321b['push'](_0xb3321b['shift']());}}}(a87_0x4e12,0xf3630));import a87_0x1bd4e8 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a87_0x148982 from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x2c626d){return _0x2c626d['catch'](_0x32c20d=>{const _0x12ffea=a87_0xf201;if(_0x32c20d?.[_0x12ffea(0x17d)]===_0x12ffea(0x16b))throw CliErrors['cancelled'](_0x12ffea(0x175));throw _0x32c20d;});}export function startSpinner(_0x187ce1){return a87_0x148982({'text':_0x187ce1,'color':'cyan'})['start']();}export function stopSpinner(_0x98596,_0x1598cc,_0x30b648){const _0x41fac2=a87_0xf201;_0x30b648?_0x98596[_0x41fac2(0x14e)](_0x1598cc):_0x98596[_0x41fac2(0x178)](_0x1598cc);}function a87_0x4e12(){const _0x3b2211=['Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','2ywiZBk','isTTY','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','has','error','20NrTyet','[already\x20on\x20platform]','10582560XxYUmp','map','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','ExitPromptError','trim','\x20\x20CSS\x20URL:','CSS\x20URL\x20check\x20failed','JS\x20URL\x20check\x20failed','includes','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','red','JS\x20URL\x20checked','cancelled','Cancelled.','CSS\x20URL\x20checked','\x20\x20Checking\x20CSS\x20URL\x20reachability...','fail','13107720PnECec','No\x20local\x20pages\x20found.','green','filter','name','length','stdin','succeed','7YUgdRn','85173198mrkXAL','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','1579876ZBRKzq','label','\x20\x20Checking\x20JS\x20URL\x20reachability...','5910522udGaZP','test','path','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','10lzpLyu','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','\x20\x20JS\x20URL:','No\x20menus\x20selected.','5686287nQixnb','1465233quLesE','[new]'];a87_0x4e12=function(){return _0x3b2211;};return a87_0x4e12();}export async function askConfirm(_0x321f8c){return onCancel(confirm({'message':_0x321f8c,'theme':{'prefix':''}}));}export async function askJsUrl(_0x32eebe){const _0x3fa3f7=a87_0xf201;while(!![]){const _0x583a67=await onCancel(input({'message':_0x3fa3f7(0x15b),'default':_0x32eebe,'theme':{'prefix':''}}));if(_0x583a67[_0x3fa3f7(0x16c)]()==='')throw CliErrors['cancelled'](_0x3fa3f7(0x175));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x3fa3f7(0x156)](_0x583a67[_0x3fa3f7(0x16c)]())){console['error'](a87_0x1bd4e8[_0x3fa3f7(0x172)](_0x3fa3f7(0x158)));continue;}const _0x5b49ac=startSpinner(_0x3fa3f7(0x154));try{const _0x3b2a57=await isUrlReachable(_0x583a67[_0x3fa3f7(0x16c)]());stopSpinner(_0x5b49ac,_0x3fa3f7(0x173),_0x3b2a57);if(!_0x3b2a57){console['error'](a87_0x1bd4e8[_0x3fa3f7(0x172)](_0x3fa3f7(0x171)));continue;}return _0x583a67[_0x3fa3f7(0x16c)]();}catch(_0x350c70){stopSpinner(_0x5b49ac,_0x3fa3f7(0x16f),![]);throw _0x350c70;}}}export async function askCssUrl(_0x1d49cd){const _0x16574f=a87_0xf201;while(!![]){const _0x37b365=await onCancel(input({'message':_0x16574f(0x16d),'default':_0x1d49cd,'theme':{'prefix':''}}));if(_0x37b365[_0x16574f(0x16c)]()==='')throw CliErrors[_0x16574f(0x174)](_0x16574f(0x175));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x16574f(0x156)](_0x37b365['trim']())){console['error'](a87_0x1bd4e8[_0x16574f(0x172)](_0x16574f(0x16a)));continue;}const _0x3b7d62=startSpinner(_0x16574f(0x177));try{const _0xe6f94=await isUrlReachable(_0x37b365[_0x16574f(0x16c)]());stopSpinner(_0x3b7d62,_0x16574f(0x176),_0xe6f94);if(!_0xe6f94){console[_0x16574f(0x165)](a87_0x1bd4e8['red'](_0x16574f(0x15a)));continue;}return _0x37b365['trim']();}catch(_0x20dafb){stopSpinner(_0x3b7d62,_0x16574f(0x16e),![]);throw _0x20dafb;}}}export async function selectPages(_0x19e5d7,_0x11dbe5,_0x5e7906){const _0x39515f=a87_0xf201,_0x5d9fb2=_0x19e5d7[_0x39515f(0x169)](_0xab75da=>({'name':_0xab75da[_0x39515f(0x153)]+'\x20\x20'+(_0x11dbe5[_0x39515f(0x164)](_0xab75da[_0x39515f(0x157)])?a87_0x1bd4e8['gray'](_0x39515f(0x167)):a87_0x1bd4e8[_0x39515f(0x17b)](_0x39515f(0x15f))),'value':_0xab75da[_0x39515f(0x153)],'checked':_0x5e7906?_0x5e7906[_0x39515f(0x170)](_0xab75da[_0x39515f(0x153)]):!_0x11dbe5[_0x39515f(0x164)](_0xab75da[_0x39515f(0x157)])}));if(_0x5d9fb2[_0x39515f(0x17e)]===0x0)throw new Error(_0x39515f(0x17a));const _0x1274be=await onCancel(checkbox({'message':_0x39515f(0x151),'choices':_0x5d9fb2,'loop':![],'theme':{'prefix':''}}));if(_0x1274be[_0x39515f(0x17e)]===0x0)throw new Error(_0x39515f(0x15c));return _0x19e5d7[_0x39515f(0x17c)](_0x51dbeb=>_0x1274be[_0x39515f(0x170)](_0x51dbeb[_0x39515f(0x153)]));}export function isInteractive(){const _0x47017e=a87_0xf201;return process[_0x47017e(0x14d)][_0x47017e(0x162)]===!![];}function a87_0xf201(_0xaecc8c,_0x35f1c2){_0xaecc8c=_0xaecc8c-0x14d;const _0x4e1289=a87_0x4e12();let _0xf20146=_0x4e1289[_0xaecc8c];return _0xf20146;}export function requireInteractive(){const _0x2c04a7=a87_0xf201;if(!isInteractive())throw new Error(_0x2c04a7(0x163)+_0x2c04a7(0x160));}
@@ -1 +1 @@
1
- const a88_0x2e7d79=a88_0x420d;function a88_0x300b(){const _0x55e5a2=['506ZZsCSB','10qvXWUn','3339jsEuTe','match','index.tsx','src/pages','replace','1284124suRhIf','48RDuRHM','6202224LdrpDT','1212cgzHNH','isDirectory','404980AQiqYG','564710uOvgan','path','1585863BEZlyM','574092BRwIcL','replaceAll','push','forEach','.tsx','slice','endsWith','concat'];a88_0x300b=function(){return _0x55e5a2;};return a88_0x300b();}(function(_0x39ae00,_0xc8c29f){const _0x3e0995=a88_0x420d,_0xd6b09d=_0x39ae00();while(!![]){try{const _0x4d0795=parseInt(_0x3e0995(0x17d))/0x1+parseInt(_0x3e0995(0x192))/0x2*(-parseInt(_0x3e0995(0x18a))/0x3)+-parseInt(_0x3e0995(0x18f))/0x4*(parseInt(_0x3e0995(0x189))/0x5)+-parseInt(_0x3e0995(0x180))/0x6+parseInt(_0x3e0995(0x191))/0x7+-parseInt(_0x3e0995(0x190))/0x8*(parseInt(_0x3e0995(0x17f))/0x9)+-parseInt(_0x3e0995(0x17c))/0xa*(-parseInt(_0x3e0995(0x188))/0xb);if(_0x4d0795===_0xc8c29f)break;else _0xd6b09d['push'](_0xd6b09d['shift']());}catch(_0x13be4c){_0xd6b09d['push'](_0xd6b09d['shift']());}}}(a88_0x300b,0xce19a));function a88_0x420d(_0x4f100b,_0xc10f04){_0x4f100b=_0x4f100b-0x17b;const _0x300b1f=a88_0x300b();let _0x420d3e=_0x300b1f[_0x4f100b];return _0x420d3e;}import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process['cwd'](),a88_0x2e7d79(0x18d));export function extractTitleFromComment(_0x329392){const _0x156939=a88_0x2e7d79;try{const _0x537184=readFileSync(_0x329392,'utf-8'),_0x1d44d0=_0x537184[_0x156939(0x18b)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x1d44d0&&_0x1d44d0[0x1]){const _0xe9cb26=_0x1d44d0[0x1],_0x331891=_0xe9cb26[_0x156939(0x18b)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x331891&&_0x331891[0x1])return _0x331891[0x1]['trim']();}let _0x569997=null;const _0x18740f=_0x537184[_0x156939(0x18b)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x18740f&&_0x18740f[0x1]&&(_0x569997=_0x18740f[0x1]);if(!_0x569997){const _0x25c899=_0x537184[_0x156939(0x18b)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x25c899&&_0x25c899[0x1]&&(_0x569997=_0x25c899[0x1]);}if(_0x569997){const _0x13686f=new RegExp('\x5cb'+_0x569997+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0x264a91=_0x537184['match'](_0x13686f);if(_0x264a91&&_0x264a91[0x1])return _0x264a91[0x1];return _0x569997;}return null;}catch(_0x1aadec){return null;}}export function getLocalPages(_0x36fdb6=pagesDir,_0x13abc6=pagesDir){const _0x30edc2=a88_0x2e7d79;let _0x1b04f7=[];const _0x2054ca=readdirSync(_0x36fdb6);return _0x2054ca[_0x30edc2(0x183)](_0x60fe1d=>{const _0x3e82da=_0x30edc2,_0x1b37b3=join(_0x36fdb6,_0x60fe1d),_0x3bec27=statSync(_0x1b37b3);if(_0x3bec27&&_0x3bec27[_0x3e82da(0x17b)]())_0x1b04f7=_0x1b04f7[_0x3e82da(0x187)](getLocalPages(_0x1b37b3,_0x13abc6));else{if(_0x60fe1d[_0x3e82da(0x186)](_0x3e82da(0x184))){let _0x270069=relative(_0x13abc6,_0x1b37b3);_0x270069[_0x3e82da(0x186)](_0x3e82da(0x18c))?_0x270069=_0x270069[_0x3e82da(0x18e)](/index\.tsx$/,''):_0x270069=_0x270069['replace'](/\.tsx$/,'');_0x270069[_0x3e82da(0x186)](sep)&&(_0x270069=_0x270069[_0x3e82da(0x185)](0x0,-0x1));const _0x1c39cb=_0x270069['split'](sep)['join']('/'),_0x4b59e8=extractTitleFromComment(_0x1b37b3),_0x1b4720=_0x4b59e8||_0x1c39cb;_0x1b04f7[_0x3e82da(0x182)]({'path':_0x1c39cb[_0x3e82da(0x181)]('$',':'),'label':_0x1b4720});}}}),_0x1b04f7['filter'](_0x2682d6=>_0x2682d6[_0x30edc2(0x17e)]!=='');}
1
+ function a88_0x2a3b(_0x3cd1e0,_0x5ca85a){_0x3cd1e0=_0x3cd1e0-0x1a3;const _0x3670b1=a88_0x3670();let _0x2a3bc2=_0x3670b1[_0x3cd1e0];return _0x2a3bc2;}const a88_0x405379=a88_0x2a3b;(function(_0x4f9ff0,_0x534311){const _0x5a1b73=a88_0x2a3b,_0x25eeee=_0x4f9ff0();while(!![]){try{const _0x1bd51a=-parseInt(_0x5a1b73(0x1b3))/0x1+-parseInt(_0x5a1b73(0x1ab))/0x2+parseInt(_0x5a1b73(0x1af))/0x3*(parseInt(_0x5a1b73(0x1aa))/0x4)+parseInt(_0x5a1b73(0x1b9))/0x5+-parseInt(_0x5a1b73(0x1ba))/0x6*(-parseInt(_0x5a1b73(0x1b7))/0x7)+parseInt(_0x5a1b73(0x1bc))/0x8*(-parseInt(_0x5a1b73(0x1a3))/0x9)+parseInt(_0x5a1b73(0x1a7))/0xa;if(_0x1bd51a===_0x534311)break;else _0x25eeee['push'](_0x25eeee['shift']());}catch(_0x3381d4){_0x25eeee['push'](_0x25eeee['shift']());}}}(a88_0x3670,0x82e26));function a88_0x3670(){const _0x235038=['replace','index.tsx','2138523CEVtoR','filter','isDirectory','split','871280pvXkrT','trim','concat','.tsx','16681uthWwc','match','747340WAOfPa','1806pCOVTR','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','3976xIMxtQ','push','7821KtMYoE','join','cwd','endsWith','9916790Azvmhb','utf-8','src/pages','4cMLKtD','1463992ujnIme','path'];a88_0x3670=function(){return _0x235038;};return a88_0x3670();}import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a88_0x405379(0x1a5)](),a88_0x405379(0x1a9));export function extractTitleFromComment(_0x5201d5){const _0x3ee136=a88_0x405379;try{const _0x3768b5=readFileSync(_0x5201d5,_0x3ee136(0x1a8)),_0x402db8=_0x3768b5[_0x3ee136(0x1b8)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x402db8&&_0x402db8[0x1]){const _0x4c67dc=_0x402db8[0x1],_0x22fdf6=_0x4c67dc[_0x3ee136(0x1b8)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x22fdf6&&_0x22fdf6[0x1])return _0x22fdf6[0x1][_0x3ee136(0x1b4)]();}let _0x1d3763=null;const _0x428f78=_0x3768b5[_0x3ee136(0x1b8)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x428f78&&_0x428f78[0x1]&&(_0x1d3763=_0x428f78[0x1]);if(!_0x1d3763){const _0x1d9a0c=_0x3768b5[_0x3ee136(0x1b8)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x1d9a0c&&_0x1d9a0c[0x1]&&(_0x1d3763=_0x1d9a0c[0x1]);}if(_0x1d3763){const _0x2fc696=new RegExp('\x5cb'+_0x1d3763+_0x3ee136(0x1bb)),_0x200c04=_0x3768b5[_0x3ee136(0x1b8)](_0x2fc696);if(_0x200c04&&_0x200c04[0x1])return _0x200c04[0x1];return _0x1d3763;}return null;}catch(_0x53413f){return null;}}export function getLocalPages(_0x3002ed=pagesDir,_0x453e6a=pagesDir){const _0x265a17=a88_0x405379;let _0x91a0bc=[];const _0x122483=readdirSync(_0x3002ed);return _0x122483['forEach'](_0x26c68d=>{const _0x3ea52f=a88_0x2a3b,_0x30b5f6=join(_0x3002ed,_0x26c68d),_0x3d5a8d=statSync(_0x30b5f6);if(_0x3d5a8d&&_0x3d5a8d[_0x3ea52f(0x1b1)]())_0x91a0bc=_0x91a0bc[_0x3ea52f(0x1b5)](getLocalPages(_0x30b5f6,_0x453e6a));else{if(_0x26c68d[_0x3ea52f(0x1a6)](_0x3ea52f(0x1b6))){let _0x10bc73=relative(_0x453e6a,_0x30b5f6);_0x10bc73['endsWith'](_0x3ea52f(0x1ae))?_0x10bc73=_0x10bc73[_0x3ea52f(0x1ad)](/index\.tsx$/,''):_0x10bc73=_0x10bc73['replace'](/\.tsx$/,'');_0x10bc73[_0x3ea52f(0x1a6)](sep)&&(_0x10bc73=_0x10bc73['slice'](0x0,-0x1));const _0x131f26=_0x10bc73[_0x3ea52f(0x1b2)](sep)[_0x3ea52f(0x1a4)]('/'),_0x36f882=extractTitleFromComment(_0x30b5f6),_0x1a3a56=_0x36f882||_0x131f26;_0x91a0bc[_0x3ea52f(0x1bd)]({'path':_0x131f26['replaceAll']('$',':'),'label':_0x1a3a56});}}}),_0x91a0bc[_0x265a17(0x1b0)](_0x1a9890=>_0x1a9890[_0x265a17(0x1ac)]!=='');}
@@ -1 +1 @@
1
- (function(_0x4c3422,_0x580d35){const _0x154898=a89_0x3e0d,_0x1358c8=_0x4c3422();while(!![]){try{const _0x4fb42e=-parseInt(_0x154898(0x1c9))/0x1*(parseInt(_0x154898(0x1bf))/0x2)+-parseInt(_0x154898(0x1ca))/0x3+-parseInt(_0x154898(0x1c8))/0x4*(parseInt(_0x154898(0x1b9))/0x5)+-parseInt(_0x154898(0x1b6))/0x6+parseInt(_0x154898(0x1c3))/0x7*(-parseInt(_0x154898(0x1ae))/0x8)+parseInt(_0x154898(0x1bd))/0x9+parseInt(_0x154898(0x1b3))/0xa;if(_0x4fb42e===_0x580d35)break;else _0x1358c8['push'](_0x1358c8['shift']());}catch(_0x2db3ee){_0x1358c8['push'](_0x1358c8['shift']());}}}(a89_0x5a59,0xcbad6));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';function a89_0x5a59(){const _0x13f569=['1030etzoKT','filter','map','label','11660112rpdXvO','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','2RdmLQM','fulfilled','length','trim','84ZEOKzB','rejected','push','find','join','7556RfZkQi','1390019kCppyS','2115537piSJwW','status','path','116936HFdWxE','No\x20local\x20pages\x20matched\x20labels:\x20','CSS\x20URL\x20is\x20unreachable','allSettled','has','31620300hXxfcn','value','resources','5781600VvONCn','errors','JS\x20URL\x20is\x20unreachable'];a89_0x5a59=function(){return _0x13f569;};return a89_0x5a59();}import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';export function validateJsUrl(_0x20dd0b){const _0x34aa61=[];return!isValidJsHttpsUrl(_0x20dd0b)&&_0x34aa61['push']('JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'),{'ok':_0x34aa61['length']===0x0,'errors':_0x34aa61};}function a89_0x3e0d(_0x3b5a2a,_0x460ff2){_0x3b5a2a=_0x3b5a2a-0x1ac;const _0x5a59b4=a89_0x5a59();let _0x3e0d54=_0x5a59b4[_0x3b5a2a];return _0x3e0d54;}export function validateCssUrl(_0x525dfa){const _0x3799c2=a89_0x3e0d,_0x11c227=[];return!isValidCssHttpsUrl(_0x525dfa)&&_0x11c227[_0x3799c2(0x1c5)](_0x3799c2(0x1be)),{'ok':_0x11c227['length']===0x0,'errors':_0x11c227};}export async function validateJsUrlReachable(_0x1b5aa2){const _0x10a779=a89_0x3e0d,_0xc56097=validateJsUrl(_0x1b5aa2);if(!_0xc56097['ok'])return _0xc56097;const _0x74a9df=await isUrlReachable(_0x1b5aa2);if(!_0x74a9df)_0xc56097[_0x10a779(0x1b7)]['push'](_0x10a779(0x1b8));return{'ok':_0xc56097[_0x10a779(0x1b7)][_0x10a779(0x1c1)]===0x0,'errors':_0xc56097[_0x10a779(0x1b7)]};}export async function validateCssUrlReachable(_0x4baa43){const _0x528497=a89_0x3e0d,_0x548adb=validateCssUrl(_0x4baa43);if(!_0x548adb['ok'])return _0x548adb;const _0x4ed247=await isUrlReachable(_0x4baa43);if(!_0x4ed247)_0x548adb['errors'][_0x528497(0x1c5)](_0x528497(0x1b0));return{'ok':_0x548adb[_0x528497(0x1b7)][_0x528497(0x1c1)]===0x0,'errors':_0x548adb[_0x528497(0x1b7)]};}export function buildCompareRows(_0x52c356,_0x31a381){const _0x4194c5=a89_0x3e0d;return _0x52c356[_0x4194c5(0x1bb)](_0xd0c780=>({'label':_0xd0c780[_0x4194c5(0x1bc)],'path':_0xd0c780[_0x4194c5(0x1ad)],'local':!![],'online':_0x31a381[_0x4194c5(0x1b2)](_0xd0c780['path'])}));}export function filterNewPages(_0x2d6bb8,_0x36e2cf,_0x55f952){const _0x42823a=a89_0x3e0d;if(_0x55f952&&_0x55f952[_0x42823a(0x1c1)]>0x0){const _0xc06423=new Set(_0x55f952['map'](_0x47b030=>_0x47b030[_0x42823a(0x1c2)]())),_0x4d1780=_0x2d6bb8[_0x42823a(0x1ba)](_0x9a9211=>_0xc06423['has'](_0x9a9211['label']));if(_0x4d1780['length']===0x0)throw new Error(_0x42823a(0x1af)+[..._0xc06423][_0x42823a(0x1c7)](',\x20'));return _0x4d1780;}return _0x2d6bb8[_0x42823a(0x1ba)](_0x58ee18=>!_0x36e2cf[_0x42823a(0x1b2)](_0x58ee18[_0x42823a(0x1ad)]));}export function filterPagesByLabels(_0xe23d35,_0x3d1c8c){const _0x2b06db=a89_0x3e0d,_0x3691f7=[],_0x5d1146=[];for(const _0x4ba186 of _0x3d1c8c){const _0x4ae7c2=_0x4ba186['trim'](),_0x1ebfc0=_0xe23d35[_0x2b06db(0x1c6)](_0x2b834b=>_0x2b834b[_0x2b06db(0x1bc)]===_0x4ae7c2);if(_0x1ebfc0)_0x3691f7[_0x2b06db(0x1c5)](_0x1ebfc0);else _0x5d1146[_0x2b06db(0x1c5)](_0x4ba186);}return{'matched':_0x3691f7,'unmatched':_0x5d1146};}export async function doCreateMenus(_0x3f9bf9,_0x4b8c86,_0x390c93,_0x31f7c8){const _0x1670d7=a89_0x3e0d,_0x5c7da1=await createMenus(_0x3f9bf9,_0x4b8c86,_0x390c93,_0x31f7c8);return{'created':_0x5c7da1[_0x1670d7(0x1c1)],'failed':0x0,'labels':_0x390c93['map'](_0x5c01aa=>_0x5c01aa['label']),'menus':_0x5c7da1};}export function filterMenusWithResources(_0x3a29bf){const _0x41ff4d=a89_0x3e0d;return _0x3a29bf[_0x41ff4d(0x1ba)](_0x43276d=>_0x43276d[_0x41ff4d(0x1b5)][_0x41ff4d(0x1c1)]>0x0);}export async function doUpdateCdnUrls(_0x169212,_0x1a2b45,_0x36b440,_0x2dc6e9){const _0x119b80=a89_0x3e0d,_0xedff30=_0x36b440[_0x119b80(0x1ba)](_0x1a6289=>_0x1a6289[_0x119b80(0x1b5)][_0x119b80(0x1c1)]>0x0),_0x5cddb1=await Promise[_0x119b80(0x1b1)](_0xedff30[_0x119b80(0x1bb)](_0x20d5a6=>updateMenuCdnUrl(_0x169212,_0x1a2b45,{'id':_0x20d5a6['id'],'label':_0x20d5a6[_0x119b80(0x1bc)],'path':_0x20d5a6['path'],'resources':_0x2dc6e9,'extend':_0x20d5a6['extend']??null}))),_0x1bfc53=_0x5cddb1['filter'](_0x1048a1=>_0x1048a1[_0x119b80(0x1ac)]===_0x119b80(0x1c0))[_0x119b80(0x1bb)](_0x2551e9=>_0x2551e9[_0x119b80(0x1b4)]),_0x2ccd01=_0x5cddb1[_0x119b80(0x1ba)](_0x4987c8=>_0x4987c8[_0x119b80(0x1ac)]===_0x119b80(0x1c4))[_0x119b80(0x1c1)];return{'updated':_0x1bfc53[_0x119b80(0x1c1)],'failed':_0x2ccd01,'menus':_0x1bfc53};}export async function fetchMenuData(_0x4200fd,_0xf974d5){const _0x156a69=a89_0x3e0d,_0x6d8bbc=getLocalPages(),_0x217038=await getOnlineMenuList(_0x4200fd,_0xf974d5),_0x26aa8a=new Set(_0x217038[_0x156a69(0x1bb)](_0x54e194=>_0x54e194['path']));return{'localPages':_0x6d8bbc,'onlineMenuList':_0x217038,'onlinePaths':_0x26aa8a};}export async function fetchOnlineMenuList(_0x331c2a,_0x168390){return getOnlineMenuList(_0x331c2a,_0x168390);}
1
+ (function(_0x10d3ce,_0x4fa682){const _0x370a1a=a89_0x5610,_0x1eb1e3=_0x10d3ce();while(!![]){try{const _0x2ba883=parseInt(_0x370a1a(0x1d7))/0x1*(-parseInt(_0x370a1a(0x1cb))/0x2)+parseInt(_0x370a1a(0x1cd))/0x3*(-parseInt(_0x370a1a(0x1c1))/0x4)+parseInt(_0x370a1a(0x1c0))/0x5*(parseInt(_0x370a1a(0x1d2))/0x6)+-parseInt(_0x370a1a(0x1d1))/0x7+parseInt(_0x370a1a(0x1bf))/0x8*(-parseInt(_0x370a1a(0x1cc))/0x9)+parseInt(_0x370a1a(0x1df))/0xa+-parseInt(_0x370a1a(0x1d4))/0xb*(-parseInt(_0x370a1a(0x1c3))/0xc);if(_0x2ba883===_0x4fa682)break;else _0x1eb1e3['push'](_0x1eb1e3['shift']());}catch(_0x36be02){_0x1eb1e3['push'](_0x1eb1e3['shift']());}}}(a89_0x1e24,0xac26c));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(_0x2cf433){const _0x24c187=a89_0x5610,_0x415468=[];return!isValidJsHttpsUrl(_0x2cf433)&&_0x415468[_0x24c187(0x1c6)](_0x24c187(0x1cf)),{'ok':_0x415468['length']===0x0,'errors':_0x415468};}export function validateCssUrl(_0x44184e){const _0x9e7bb3=a89_0x5610,_0x13585c=[];return!isValidCssHttpsUrl(_0x44184e)&&_0x13585c[_0x9e7bb3(0x1c6)](_0x9e7bb3(0x1ca)),{'ok':_0x13585c['length']===0x0,'errors':_0x13585c};}export async function validateJsUrlReachable(_0x55e64d){const _0x5634a5=a89_0x5610,_0x36d291=validateJsUrl(_0x55e64d);if(!_0x36d291['ok'])return _0x36d291;const _0x2959f0=await isUrlReachable(_0x55e64d);if(!_0x2959f0)_0x36d291['errors']['push'](_0x5634a5(0x1d5));return{'ok':_0x36d291['errors']['length']===0x0,'errors':_0x36d291[_0x5634a5(0x1c2)]};}function a89_0x1e24(){const _0x4d61de=['104wVjpvl','10mviktM','8vWFUTQ','errors','1044OjjHTQ','resources','No\x20local\x20pages\x20matched\x20labels:\x20','push','path','status','trim','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','370508LfKbhr','88353SAdAzB','1760142dgPbXv','fulfilled','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','join','729344VicZyy','3231144Kmbbha','value','147851TNYwgn','JS\x20URL\x20is\x20unreachable','find','3pWVhLA','filter','has','extend','length','CSS\x20URL\x20is\x20unreachable','map','label','4197200sDQBkh'];a89_0x1e24=function(){return _0x4d61de;};return a89_0x1e24();}export async function validateCssUrlReachable(_0x140adb){const _0x141592=a89_0x5610,_0x1834c0=validateCssUrl(_0x140adb);if(!_0x1834c0['ok'])return _0x1834c0;const _0x3d8ad2=await isUrlReachable(_0x140adb);if(!_0x3d8ad2)_0x1834c0['errors'][_0x141592(0x1c6)](_0x141592(0x1dc));return{'ok':_0x1834c0[_0x141592(0x1c2)]['length']===0x0,'errors':_0x1834c0[_0x141592(0x1c2)]};}export function buildCompareRows(_0x347a10,_0x2e2eba){const _0x463a5f=a89_0x5610;return _0x347a10[_0x463a5f(0x1dd)](_0x43ffbd=>({'label':_0x43ffbd['label'],'path':_0x43ffbd['path'],'local':!![],'online':_0x2e2eba[_0x463a5f(0x1d9)](_0x43ffbd['path'])}));}export function filterNewPages(_0x25f2bd,_0x20653a,_0x2ea106){const _0x422ddb=a89_0x5610;if(_0x2ea106&&_0x2ea106[_0x422ddb(0x1db)]>0x0){const _0x4f874f=new Set(_0x2ea106['map'](_0x30e0b7=>_0x30e0b7['trim']())),_0x37a685=_0x25f2bd[_0x422ddb(0x1d8)](_0x1b7ba1=>_0x4f874f[_0x422ddb(0x1d9)](_0x1b7ba1['label']));if(_0x37a685[_0x422ddb(0x1db)]===0x0)throw new Error(_0x422ddb(0x1c5)+[..._0x4f874f][_0x422ddb(0x1d0)](',\x20'));return _0x37a685;}return _0x25f2bd[_0x422ddb(0x1d8)](_0x369aef=>!_0x20653a[_0x422ddb(0x1d9)](_0x369aef[_0x422ddb(0x1c7)]));}export function filterPagesByLabels(_0x1a2133,_0x9d9266){const _0x56772e=a89_0x5610,_0x378550=[],_0x249e7a=[];for(const _0x35e831 of _0x9d9266){const _0x33eaa1=_0x35e831[_0x56772e(0x1c9)](),_0x1fa08e=_0x1a2133[_0x56772e(0x1d6)](_0x3eddfe=>_0x3eddfe[_0x56772e(0x1de)]===_0x33eaa1);if(_0x1fa08e)_0x378550[_0x56772e(0x1c6)](_0x1fa08e);else _0x249e7a[_0x56772e(0x1c6)](_0x35e831);}return{'matched':_0x378550,'unmatched':_0x249e7a};}function a89_0x5610(_0x1f3d88,_0x1164b9){_0x1f3d88=_0x1f3d88-0x1bf;const _0x1e24d4=a89_0x1e24();let _0x5610dd=_0x1e24d4[_0x1f3d88];return _0x5610dd;}export async function doCreateMenus(_0xa3454,_0x5a0da0,_0x4e8a99,_0x590979){const _0x197239=a89_0x5610,_0x44e2f3=await createMenus(_0xa3454,_0x5a0da0,_0x4e8a99,_0x590979);return{'created':_0x44e2f3[_0x197239(0x1db)],'failed':0x0,'labels':_0x4e8a99['map'](_0x55ba24=>_0x55ba24['label']),'menus':_0x44e2f3};}export function filterMenusWithResources(_0x44f12b){const _0x4e07af=a89_0x5610;return _0x44f12b[_0x4e07af(0x1d8)](_0x591621=>_0x591621['resources'][_0x4e07af(0x1db)]>0x0);}export async function doUpdateCdnUrls(_0x64e47b,_0xbdc5b0,_0xe50b9c,_0xaa3f02){const _0x305766=a89_0x5610,_0x3d8405=_0xe50b9c[_0x305766(0x1d8)](_0x7e87a7=>_0x7e87a7[_0x305766(0x1c4)][_0x305766(0x1db)]>0x0),_0x110ff8=await Promise['allSettled'](_0x3d8405[_0x305766(0x1dd)](_0x55ea37=>updateMenuCdnUrl(_0x64e47b,_0xbdc5b0,{'id':_0x55ea37['id'],'label':_0x55ea37[_0x305766(0x1de)],'path':_0x55ea37['path'],'resources':_0xaa3f02,'extend':_0x55ea37[_0x305766(0x1da)]??null}))),_0x493ae9=_0x110ff8[_0x305766(0x1d8)](_0x464888=>_0x464888[_0x305766(0x1c8)]===_0x305766(0x1ce))[_0x305766(0x1dd)](_0x59ede2=>_0x59ede2[_0x305766(0x1d3)]),_0x2a508c=_0x110ff8[_0x305766(0x1d8)](_0x4b6a82=>_0x4b6a82[_0x305766(0x1c8)]==='rejected')['length'];return{'updated':_0x493ae9[_0x305766(0x1db)],'failed':_0x2a508c,'menus':_0x493ae9};}export async function fetchMenuData(_0x1b4555,_0x47db53){const _0x25a4ae=a89_0x5610,_0x49dd5c=getLocalPages(),_0x13fcb2=await getOnlineMenuList(_0x1b4555,_0x47db53),_0x4d2b29=new Set(_0x13fcb2['map'](_0x1c61f4=>_0x1c61f4[_0x25a4ae(0x1c7)]));return{'localPages':_0x49dd5c,'onlineMenuList':_0x13fcb2,'onlinePaths':_0x4d2b29};}export async function fetchOnlineMenuList(_0x162990,_0x3796cc){return getOnlineMenuList(_0x162990,_0x3796cc);}
@@ -1 +1 @@
1
- (function(_0x2adb02,_0x39c270){const _0x337781=a90_0x24ef,_0x24fc89=_0x2adb02();while(!![]){try{const _0x15c29c=-parseInt(_0x337781(0x6f))/0x1+parseInt(_0x337781(0x94))/0x2*(-parseInt(_0x337781(0x77))/0x3)+parseInt(_0x337781(0x74))/0x4*(parseInt(_0x337781(0x6e))/0x5)+parseInt(_0x337781(0x89))/0x6*(parseInt(_0x337781(0x8b))/0x7)+-parseInt(_0x337781(0x8a))/0x8+-parseInt(_0x337781(0x92))/0x9+parseInt(_0x337781(0x7b))/0xa;if(_0x15c29c===_0x39c270)break;else _0x24fc89['push'](_0x24fc89['shift']());}catch(_0x1fa11b){_0x24fc89['push'](_0x24fc89['shift']());}}}(a90_0x4619,0x4781b));import{getApiDomain}from'../../../constant/domain.js';import{getEnv,isProduction}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';import{platformFetch}from'../../../core/api-client.js';export async function getOnlineMenuList(_0x503369,_0x41a88a){const _0x53e51b=a90_0x24ef,_0x248f9e=getEnv();logger['info'](_0x53e51b(0x8d),isProduction(_0x248f9e)?'Fetching\x20online\x20menu\x20list...\x20(appCode:\x20'+_0x503369+')':_0x53e51b(0x99)+_0x503369+')');const _0x5cd920=await platformFetch(getApiDomain()+_0x53e51b(0x7d)+_0x503369,{'cookie':_0x41a88a,'label':_0x53e51b(0x95)});if(!_0x5cd920)return logger['info'](_0x53e51b(0x8d),_0x53e51b(0x87)),[];return logger[_0x53e51b(0x8c)](_0x53e51b(0x8d),'Fetched\x20'+_0x5cd920[_0x53e51b(0x82)]+_0x53e51b(0x83)),_0x5cd920[_0x53e51b(0x7e)](flattenMenuItem)['flat']();}function flattenMenuItem(_0x4121ea){const _0x25497f=a90_0x24ef;let _0x300537=[];try{const _0x2b44c0=_0x4121ea['extend']?.['resources'];if(typeof _0x2b44c0===_0x25497f(0x70)){const _0x1c5f54=JSON[_0x25497f(0x84)](_0x2b44c0);if(Array['isArray'](_0x1c5f54))_0x300537=_0x1c5f54['map'](String);}else Array[_0x25497f(0x78)](_0x2b44c0)&&(_0x300537=_0x2b44c0[_0x25497f(0x7e)](String));}catch{}const _0x70032d=[{'id':_0x4121ea['id'],'path':_0x4121ea['path'],'label':_0x4121ea[_0x25497f(0x98)],'resources':_0x300537,'extend':_0x4121ea[_0x25497f(0x7a)]??null}];if(_0x4121ea[_0x25497f(0x86)]&&_0x4121ea[_0x25497f(0x86)][_0x25497f(0x82)]>0x0)for(const _0x14c30b of _0x4121ea[_0x25497f(0x86)]){_0x70032d[_0x25497f(0x8e)](...flattenMenuItem(_0x14c30b));}return _0x70032d;}export async function createMenu(_0x4521c5,_0x1330d6,_0xd03c78){const _0x503167=a90_0x24ef;logger[_0x503167(0x8c)](_0x503167(0x88),_0x503167(0x71)+_0xd03c78['label']+'\x20('+_0xd03c78[_0x503167(0x96)]+')');const _0x4f15d0={'appCode':_0x4521c5,'type':_0x503167(0x93),'sort':0x0,'extend':{'loadScriptMode':_0x503167(0x73),'resources':_0xd03c78[_0x503167(0x80)]?JSON[_0x503167(0x79)](_0xd03c78['resources']):undefined},..._0xd03c78},_0x257867=await platformFetch(getApiDomain()+_0x503167(0x90),{'method':_0x503167(0x76),'body':_0x4f15d0,'cookie':_0x1330d6,'label':_0x503167(0x8f)+_0xd03c78[_0x503167(0x98)]+'\x22'});return logger['info'](_0x503167(0x88),'Menu\x20created\x20successfully:\x20'+_0xd03c78[_0x503167(0x98)]),_0x257867;}async function createSingleMenu(_0xb467ac,_0x229fe8,_0xaf0087,_0x3aa211){const _0x2ff237=a90_0x24ef,_0x438a11={'appCode':_0xb467ac,'type':_0x2ff237(0x93),'sort':0x0,'extend':{'loadScriptMode':_0x2ff237(0x73),'resources':_0x3aa211?JSON[_0x2ff237(0x79)](_0x3aa211):undefined},'label':_0xaf0087[_0x2ff237(0x98)],'path':_0xaf0087[_0x2ff237(0x96)]},_0x14a771=await platformFetch(getApiDomain()+'/smartapi/menu/create',{'method':_0x2ff237(0x76),'body':_0x438a11,'cookie':_0x229fe8,'label':'Create\x20menu\x20\x22'+_0xaf0087[_0x2ff237(0x98)]+'\x22'});return logger[_0x2ff237(0x8c)](_0x2ff237(0x88),'Menu\x20created\x20successfully:\x20'+_0xaf0087[_0x2ff237(0x98)]),_0x14a771;}export async function createMenus(_0x4351a9,_0x412910,_0x110fbe,_0xc58a49){const _0x1bc3f6=a90_0x24ef;logger[_0x1bc3f6(0x8c)]('create-menus',_0x1bc3f6(0x72)+_0x110fbe[_0x1bc3f6(0x82)]);const _0x267d99=await Promise[_0x1bc3f6(0x81)](_0x110fbe[_0x1bc3f6(0x7e)](_0x21a0cf=>createSingleMenu(_0x4351a9,_0x412910,_0x21a0cf,_0xc58a49)));return logger[_0x1bc3f6(0x8c)]('create-menus',_0x1bc3f6(0x7c)+_0x110fbe[_0x1bc3f6(0x82)]),_0x267d99;}function a90_0x24ef(_0x41cfb4,_0x5f1330){_0x41cfb4=_0x41cfb4-0x6e;const _0x46191d=a90_0x4619();let _0x24efdf=_0x46191d[_0x41cfb4];return _0x24efdf;}export async function updateMenuCdnUrl(_0x369ca5,_0x2222a1,_0x8726de){const _0x5a0d3e=a90_0x24ef;logger['info'](_0x5a0d3e(0x91),_0x5a0d3e(0x97)+_0x8726de[_0x5a0d3e(0x98)]+'\x20('+_0x8726de[_0x5a0d3e(0x96)]+')');const _0x38303d={'id':_0x8726de['id'],'appCode':_0x369ca5,'extend':{..._0x8726de[_0x5a0d3e(0x7a)]??{},'loadScriptMode':'import','resources':_0x8726de[_0x5a0d3e(0x80)]?JSON[_0x5a0d3e(0x79)](_0x8726de[_0x5a0d3e(0x80)]):undefined}},_0x1fa57b=await platformFetch(getApiDomain()+_0x5a0d3e(0x85),{'method':_0x5a0d3e(0x76),'body':_0x38303d,'cookie':_0x2222a1,'label':_0x5a0d3e(0x7f)+_0x8726de[_0x5a0d3e(0x98)]+'\x22'});return logger['info'](_0x5a0d3e(0x91),_0x5a0d3e(0x75)+_0x8726de[_0x5a0d3e(0x98)],undefined),_0x1fa57b;}function a90_0x4619(){const _0x3aac7b=['map','Update\x20menu\x20assets\x20\x22','resources','all','length','\x20online\x20menus\x20successfully','parse','/smartapi/menu/update','children','Server\x20returned\x20empty\x20menu\x20list','create-menu','1095126TYgGyP','56120ApjBEx','14FhKdoj','info','get-online-menu-list','push','Create\x20menu\x20\x22','/smartapi/menu/create','update-menu-cdn-url','2449368jLdRTZ','procode','4QNRMzz','Fetch\x20menu\x20list','path','Updating\x20menu\x20asset\x20links:\x20','label','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','5WEklHr','291614eLfYwT','string','Creating\x20menu:\x20','Start\x20batch\x20menu\x20creation,\x20total\x20','import','1337516UVetwx','Menu\x20assets\x20synced:\x20','POST','16257gmUMVe','isArray','stringify','extend','1750890ZOuQvi','Batch\x20menu\x20creation\x20completed,\x20total\x20','/smartapi/menu/find?appCode='];a90_0x4619=function(){return _0x3aac7b;};return a90_0x4619();}
1
+ function a90_0x3adc(){const _0x47f829=['Fetched\x20','289348fPrrQb','/smartapi/menu/update','update-menu-cdn-url','2784oNdUaQ','label','/smartapi/menu/create','Menu\x20assets\x20synced:\x20','7JEZMJx','Create\x20menu\x20\x22','Menu\x20created\x20successfully:\x20','/smartapi/menu/find?appCode=','233358BOBPTr','children','10niSCOI','import','65336XPmZJT','flat','2978899mYMWpq','length','get-online-menu-list','POST','Update\x20menu\x20assets\x20\x22','898300ymWZmg','Creating\x20menu:\x20','path','procode','parse','3MCZjbt','map','Updating\x20menu\x20asset\x20links:\x20','create-menu','resources','push','extend','info','Batch\x20menu\x20creation\x20completed,\x20total\x20','Server\x20returned\x20empty\x20menu\x20list','1836JiMYvF','2365335rwBHjP','isArray'];a90_0x3adc=function(){return _0x47f829;};return a90_0x3adc();}(function(_0x354943,_0x337bb7){const _0x4f0e90=a90_0x40a9,_0x3a6670=_0x354943();while(!![]){try{const _0x45c45c=-parseInt(_0x4f0e90(0xce))/0x1*(parseInt(_0x4f0e90(0xd6))/0x2)+parseInt(_0x4f0e90(0xe2))/0x3*(parseInt(_0x4f0e90(0xf0))/0x4)+-parseInt(_0x4f0e90(0xd4))/0x5*(parseInt(_0x4f0e90(0xd2))/0x6)+parseInt(_0x4f0e90(0xed))/0x7+-parseInt(_0x4f0e90(0xf3))/0x8*(parseInt(_0x4f0e90(0xec))/0x9)+-parseInt(_0x4f0e90(0xdd))/0xa+parseInt(_0x4f0e90(0xd8))/0xb;if(_0x45c45c===_0x337bb7)break;else _0x3a6670['push'](_0x3a6670['shift']());}catch(_0x122b4c){_0x3a6670['push'](_0x3a6670['shift']());}}}(a90_0x3adc,0x34307));import{getApiDomain}from'../../../constant/domain.js';import{getEnv,isProduction}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';import{platformFetch}from'../../../core/api-client.js';function a90_0x40a9(_0x55ff07,_0x48e4bb){_0x55ff07=_0x55ff07-0xce;const _0x3adc52=a90_0x3adc();let _0x40a96c=_0x3adc52[_0x55ff07];return _0x40a96c;}export async function getOnlineMenuList(_0x2004f0,_0x2dd4a4){const _0x51b980=a90_0x40a9,_0xf2d3b8=getEnv();logger[_0x51b980(0xe9)]('get-online-menu-list',isProduction(_0xf2d3b8)?'Fetching\x20online\x20menu\x20list...\x20(appCode:\x20'+_0x2004f0+')':'Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20'+_0x2004f0+')');const _0x212c5a=await platformFetch(getApiDomain()+_0x51b980(0xd1)+_0x2004f0,{'cookie':_0x2dd4a4,'label':'Fetch\x20menu\x20list'});if(!_0x212c5a)return logger[_0x51b980(0xe9)]('get-online-menu-list',_0x51b980(0xeb)),[];return logger['info'](_0x51b980(0xda),_0x51b980(0xef)+_0x212c5a[_0x51b980(0xd9)]+'\x20online\x20menus\x20successfully'),_0x212c5a[_0x51b980(0xe3)](flattenMenuItem)[_0x51b980(0xd7)]();}function flattenMenuItem(_0x441ee1){const _0x6f3559=a90_0x40a9;let _0x454957=[];try{const _0x4b6691=_0x441ee1[_0x6f3559(0xe8)]?.[_0x6f3559(0xe6)];if(typeof _0x4b6691==='string'){const _0x1819f5=JSON[_0x6f3559(0xe1)](_0x4b6691);if(Array[_0x6f3559(0xee)](_0x1819f5))_0x454957=_0x1819f5[_0x6f3559(0xe3)](String);}else Array[_0x6f3559(0xee)](_0x4b6691)&&(_0x454957=_0x4b6691[_0x6f3559(0xe3)](String));}catch{}const _0x4d3793=[{'id':_0x441ee1['id'],'path':_0x441ee1[_0x6f3559(0xdf)],'label':_0x441ee1[_0x6f3559(0xf4)],'resources':_0x454957,'extend':_0x441ee1[_0x6f3559(0xe8)]??null}];if(_0x441ee1['children']&&_0x441ee1['children'][_0x6f3559(0xd9)]>0x0)for(const _0x280bae of _0x441ee1[_0x6f3559(0xd3)]){_0x4d3793[_0x6f3559(0xe7)](...flattenMenuItem(_0x280bae));}return _0x4d3793;}export async function createMenu(_0x1fb626,_0xe54d1c,_0x2289ed){const _0x511057=a90_0x40a9;logger['info'](_0x511057(0xe5),_0x511057(0xde)+_0x2289ed[_0x511057(0xf4)]+'\x20('+_0x2289ed[_0x511057(0xdf)]+')');const _0x2560c2={'appCode':_0x1fb626,'type':_0x511057(0xe0),'sort':0x0,'extend':{'loadScriptMode':_0x511057(0xd5),'resources':_0x2289ed[_0x511057(0xe6)]?JSON['stringify'](_0x2289ed[_0x511057(0xe6)]):undefined},..._0x2289ed},_0x295060=await platformFetch(getApiDomain()+_0x511057(0xf5),{'method':_0x511057(0xdb),'body':_0x2560c2,'cookie':_0xe54d1c,'label':_0x511057(0xcf)+_0x2289ed[_0x511057(0xf4)]+'\x22'});return logger[_0x511057(0xe9)](_0x511057(0xe5),_0x511057(0xd0)+_0x2289ed['label']),_0x295060;}async function createSingleMenu(_0x53b76c,_0x5312e8,_0x4ec58d,_0x3c599d){const _0x531462=a90_0x40a9,_0x33c6c4={'appCode':_0x53b76c,'type':_0x531462(0xe0),'sort':0x0,'extend':{'loadScriptMode':_0x531462(0xd5),'resources':_0x3c599d?JSON['stringify'](_0x3c599d):undefined},'label':_0x4ec58d['label'],'path':_0x4ec58d[_0x531462(0xdf)]},_0x33f6de=await platformFetch(getApiDomain()+_0x531462(0xf5),{'method':_0x531462(0xdb),'body':_0x33c6c4,'cookie':_0x5312e8,'label':_0x531462(0xcf)+_0x4ec58d[_0x531462(0xf4)]+'\x22'});return logger['info'](_0x531462(0xe5),_0x531462(0xd0)+_0x4ec58d[_0x531462(0xf4)]),_0x33f6de;}export async function createMenus(_0x13c18e,_0xcad15c,_0x15d9e7,_0x36d221){const _0x903075=a90_0x40a9;logger[_0x903075(0xe9)]('create-menus','Start\x20batch\x20menu\x20creation,\x20total\x20'+_0x15d9e7['length']);const _0x5c545b=await Promise['all'](_0x15d9e7[_0x903075(0xe3)](_0x3e8f4a=>createSingleMenu(_0x13c18e,_0xcad15c,_0x3e8f4a,_0x36d221)));return logger['info']('create-menus',_0x903075(0xea)+_0x15d9e7[_0x903075(0xd9)]),_0x5c545b;}export async function updateMenuCdnUrl(_0x79fdf5,_0x5063a8,_0x4212a5){const _0x23bdfa=a90_0x40a9;logger[_0x23bdfa(0xe9)](_0x23bdfa(0xf2),_0x23bdfa(0xe4)+_0x4212a5['label']+'\x20('+_0x4212a5[_0x23bdfa(0xdf)]+')');const _0x1b13b7={'id':_0x4212a5['id'],'appCode':_0x79fdf5,'extend':{..._0x4212a5[_0x23bdfa(0xe8)]??{},'loadScriptMode':_0x23bdfa(0xd5),'resources':_0x4212a5[_0x23bdfa(0xe6)]?JSON['stringify'](_0x4212a5['resources']):undefined}},_0x402673=await platformFetch(getApiDomain()+_0x23bdfa(0xf1),{'method':_0x23bdfa(0xdb),'body':_0x1b13b7,'cookie':_0x5063a8,'label':_0x23bdfa(0xdc)+_0x4212a5[_0x23bdfa(0xf4)]+'\x22'});return logger['info'](_0x23bdfa(0xf2),_0x23bdfa(0xf6)+_0x4212a5[_0x23bdfa(0xf4)],undefined),_0x402673;}
@@ -1 +1 @@
1
- (function(_0x4614e8,_0x314526){const _0x129f47=a91_0x1ddc,_0x432c3e=_0x4614e8();while(!![]){try{const _0x5230e5=parseInt(_0x129f47(0x15f))/0x1*(parseInt(_0x129f47(0x155))/0x2)+parseInt(_0x129f47(0x144))/0x3*(-parseInt(_0x129f47(0x13f))/0x4)+parseInt(_0x129f47(0x156))/0x5+parseInt(_0x129f47(0x161))/0x6*(-parseInt(_0x129f47(0x14e))/0x7)+parseInt(_0x129f47(0x152))/0x8+-parseInt(_0x129f47(0x158))/0x9+parseInt(_0x129f47(0x140))/0xa;if(_0x5230e5===_0x314526)break;else _0x432c3e['push'](_0x432c3e['shift']());}catch(_0x3814b2){_0x432c3e['push'](_0x432c3e['shift']());}}}(a91_0x4b32,0xd12af));function a91_0x4b32(){const _0x5ad953=['info','735291iQvfMB','length','parse','isArray','join','end','No\x20local\x20pages\x20matched\x20labels:\x20','1035274DQpIqr','filter','4778502xuuCrS','trim','data','isTTY','--params.','has','cssUrl','push','stdin','string','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','82632nQMkeI','7875110rtxVQd','map','cwd','split','99LMWZbS','\x0a\x20\x20Available\x20local\x20pages:\x20','JS\x20URL\x20is\x20unreachable:\x20','message','setLogPath','readableEnded','jsUrl','Menu\x20sync\x20completed','menu-sync','startsWith','7NOUHxX','selectedLabels','concat','pages','112072JMTRSa','Invalid\x20--params:\x20','label','2iBiGFn','2898935SlZrxO'];a91_0x4b32=function(){return _0x5ad953;};return a91_0x4b32();}import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';function a91_0x1ddc(_0x44219e,_0x4fac3b){_0x44219e=_0x44219e-0x135;const _0x4b32c3=a91_0x4b32();let _0x1ddc74=_0x4b32c3[_0x44219e];return _0x1ddc74;}import{logger}from'../../../utils/logger.js';function validateParams(_0x2547b9){const _0x4ff72e=a91_0x1ddc,_0x132ac5=[];return _0x2547b9[_0x4ff72e(0x14a)]&&!isValidJsHttpsUrl(_0x2547b9['jsUrl'])&&_0x132ac5['push']({'field':'jsUrl','message':_0x4ff72e(0x13e)}),_0x2547b9[_0x4ff72e(0x13a)]&&!isValidCssHttpsUrl(_0x2547b9[_0x4ff72e(0x13a)])&&_0x132ac5[_0x4ff72e(0x13b)]({'field':'cssUrl','message':'CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'}),_0x132ac5;}export async function runMenuSyncCore(_0x4229fb,_0x2bf17e,_0x29ecf1=[],_0x513c0a){const _0x4f00df=a91_0x1ddc,_0x5e777d=parseParamsFlag(_0x513c0a),_0x3332c6=_0x29ecf1[_0x4f00df(0x159)]>0x0?_0x29ecf1:_0x5e777d[_0x4f00df(0x14f)],_0x377d1c=_0x5e777d[_0x4f00df(0x14a)],_0x266f3f=_0x5e777d[_0x4f00df(0x13a)],_0x18241b=[];if(_0x377d1c)_0x18241b[_0x4f00df(0x13b)](_0x377d1c);if(_0x266f3f)_0x18241b[_0x4f00df(0x13b)](_0x266f3f);const _0x31fee8=validateParams(_0x5e777d);if(_0x31fee8[_0x4f00df(0x159)]>0x0){const _0x370ec6=_0x31fee8['map'](_0x20a020=>_0x4f00df(0x138)+_0x20a020['field']+':\x20'+_0x20a020[_0x4f00df(0x147)])[_0x4f00df(0x15c)](';\x20');throw new Error(_0x4f00df(0x153)+_0x370ec6);}logger[_0x4f00df(0x148)](process[_0x4f00df(0x142)]()),logger[_0x4f00df(0x157)](_0x4f00df(0x14c),'Start\x20non-interactive\x20menu\x20sync',{'appCode':_0x4229fb,'selectedCount':_0x3332c6?.[_0x4f00df(0x159)],'jsUrl':_0x377d1c,'cssUrl':_0x266f3f});if(_0x377d1c){const _0x50a12c=await isUrlReachable(_0x377d1c);if(!_0x50a12c)throw new Error(_0x4f00df(0x146)+_0x377d1c);}if(_0x266f3f){const _0x1dc3c5=await isUrlReachable(_0x266f3f);if(!_0x1dc3c5)throw new Error('CSS\x20URL\x20is\x20unreachable:\x20'+_0x266f3f);}const _0x455dfe=getLocalPages();if(_0x455dfe['length']===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};const _0x56d3cc=await getOnlineMenuList(_0x4229fb,_0x2bf17e),_0x841224=new Set(_0x56d3cc[_0x4f00df(0x141)](_0xa10b7a=>_0xa10b7a['path']));let _0xf85bb8;if(_0x3332c6&&_0x3332c6[_0x4f00df(0x159)]>0x0){const _0x571dbf=new Set(_0x3332c6['map'](_0x544d74=>_0x544d74['trim']()));_0xf85bb8=_0x455dfe[_0x4f00df(0x160)](_0x4944f0=>_0x571dbf[_0x4f00df(0x139)](_0x4944f0['label']));if(_0xf85bb8[_0x4f00df(0x159)]===0x0){const _0x78a906=_0x455dfe['map'](_0x4e15b0=>_0x4e15b0[_0x4f00df(0x154)])['join'](',\x20');throw new Error(_0x4f00df(0x15e)+[..._0x571dbf][_0x4f00df(0x15c)](',\x20')+_0x4f00df(0x145)+_0x78a906);}}else _0xf85bb8=_0x455dfe[_0x4f00df(0x160)](_0x3ebd35=>!_0x841224[_0x4f00df(0x139)](_0x3ebd35['path']));if(_0xf85bb8[_0x4f00df(0x159)]===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};const _0x3deddc=await createMenus(_0x4229fb,_0x2bf17e,_0xf85bb8,_0x18241b[_0x4f00df(0x159)]>0x0?_0x18241b:undefined);return logger[_0x4f00df(0x157)](_0x4f00df(0x14c),_0x4f00df(0x14b),{'count':_0xf85bb8[_0x4f00df(0x159)],'resources':_0x18241b}),{'created':_0x3deddc[_0x4f00df(0x159)],'skipped':![],'targetPages':_0xf85bb8,'menus':_0x3deddc};}export async function readPageLabelsFromStdin(){const _0x588583=a91_0x1ddc;if(!process[_0x588583(0x13c)][_0x588583(0x137)]&&!process['stdin'][_0x588583(0x149)])return new Promise(_0x3ece82=>{const _0x512555=_0x588583,_0x5a8b36=[];process[_0x512555(0x13c)]['on'](_0x512555(0x136),_0xd991=>_0x5a8b36['push'](_0xd991)),process[_0x512555(0x13c)]['on'](_0x512555(0x15d),()=>{const _0x35f2ec=_0x512555,_0x4e8535=Buffer[_0x35f2ec(0x150)](_0x5a8b36)['toString']('utf8'),_0x433c66=_0x4e8535[_0x35f2ec(0x143)]('\x0a')['map'](_0x25ab52=>_0x25ab52[_0x35f2ec(0x135)]())[_0x35f2ec(0x160)](_0x5cc8fe=>_0x5cc8fe[_0x35f2ec(0x159)]>0x0&&!_0x5cc8fe[_0x35f2ec(0x14d)]('#'));_0x3ece82(_0x433c66);}),setTimeout(()=>_0x3ece82([]),0x1f4);});return[];}function parseParamsFlag(_0x5b1d25){const _0xbc1ec0=a91_0x1ddc;if(!_0x5b1d25||typeof _0x5b1d25!=='string')return{};try{const _0x586bf0=JSON[_0xbc1ec0(0x15a)](_0x5b1d25);if(typeof _0x586bf0!=='object'||_0x586bf0===null||Array[_0xbc1ec0(0x15b)](_0x586bf0))return{};return{'selectedLabels':Array[_0xbc1ec0(0x15b)](_0x586bf0[_0xbc1ec0(0x151)])?_0x586bf0[_0xbc1ec0(0x151)][_0xbc1ec0(0x141)](String):undefined,'jsUrl':typeof _0x586bf0[_0xbc1ec0(0x14a)]===_0xbc1ec0(0x13d)?_0x586bf0[_0xbc1ec0(0x14a)][_0xbc1ec0(0x135)]():undefined,'cssUrl':typeof _0x586bf0[_0xbc1ec0(0x13a)]==='string'?_0x586bf0[_0xbc1ec0(0x13a)][_0xbc1ec0(0x135)]():undefined};}catch{return{};}}
1
+ (function(_0x113247,_0x4bc9ea){const _0x5939ae=a91_0x25bc,_0x52b7a7=_0x113247();while(!![]){try{const _0x351e1b=-parseInt(_0x5939ae(0xdf))/0x1*(parseInt(_0x5939ae(0xe5))/0x2)+parseInt(_0x5939ae(0xdc))/0x3+parseInt(_0x5939ae(0xeb))/0x4+-parseInt(_0x5939ae(0xcd))/0x5+-parseInt(_0x5939ae(0xe6))/0x6*(-parseInt(_0x5939ae(0xd8))/0x7)+parseInt(_0x5939ae(0xe3))/0x8+parseInt(_0x5939ae(0xe2))/0x9;if(_0x351e1b===_0x4bc9ea)break;else _0x52b7a7['push'](_0x52b7a7['shift']());}catch(_0x262914){_0x52b7a7['push'](_0x52b7a7['shift']());}}}(a91_0xc0aa,0xc0db0));function a91_0x25bc(_0x20979e,_0xebf97e){_0x20979e=_0x20979e-0xc9;const _0xc0aad=a91_0xc0aa();let _0x25bcbd=_0xc0aad[_0x20979e];return _0x25bcbd;}import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';function validateParams(_0x2baa72){const _0xa298df=a91_0x25bc,_0x50d7ca=[];return _0x2baa72[_0xa298df(0xe9)]&&!isValidJsHttpsUrl(_0x2baa72[_0xa298df(0xe9)])&&_0x50d7ca[_0xa298df(0xc9)]({'field':_0xa298df(0xe9),'message':_0xa298df(0xd7)}),_0x2baa72[_0xa298df(0xf4)]&&!isValidCssHttpsUrl(_0x2baa72['cssUrl'])&&_0x50d7ca[_0xa298df(0xc9)]({'field':'cssUrl','message':_0xa298df(0xf0)}),_0x50d7ca;}export async function runMenuSyncCore(_0x2a0bd2,_0x11afd1,_0x5e8b25=[],_0x128ca7){const _0x5def20=a91_0x25bc,_0x467e79=parseParamsFlag(_0x128ca7),_0x3698a1=_0x5e8b25['length']>0x0?_0x5e8b25:_0x467e79[_0x5def20(0xd3)],_0x4ab638=_0x467e79[_0x5def20(0xe9)],_0x37c947=_0x467e79[_0x5def20(0xf4)],_0x16d50c=[];if(_0x4ab638)_0x16d50c[_0x5def20(0xc9)](_0x4ab638);if(_0x37c947)_0x16d50c[_0x5def20(0xc9)](_0x37c947);const _0x2b6dfa=validateParams(_0x467e79);if(_0x2b6dfa[_0x5def20(0xda)]>0x0){const _0x5ee4ad=_0x2b6dfa['map'](_0x463a5e=>_0x5def20(0xd0)+_0x463a5e[_0x5def20(0xe7)]+':\x20'+_0x463a5e['message'])['join'](';\x20');throw new Error('Invalid\x20--params:\x20'+_0x5ee4ad);}logger[_0x5def20(0xd4)](process[_0x5def20(0xe1)]()),logger['info'](_0x5def20(0xcb),_0x5def20(0xef),{'appCode':_0x2a0bd2,'selectedCount':_0x3698a1?.['length'],'jsUrl':_0x4ab638,'cssUrl':_0x37c947});if(_0x4ab638){const _0x1882be=await isUrlReachable(_0x4ab638);if(!_0x1882be)throw new Error('JS\x20URL\x20is\x20unreachable:\x20'+_0x4ab638);}if(_0x37c947){const _0x302997=await isUrlReachable(_0x37c947);if(!_0x302997)throw new Error(_0x5def20(0xd1)+_0x37c947);}const _0x33533f=getLocalPages();if(_0x33533f[_0x5def20(0xda)]===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};const _0x1f77d1=await getOnlineMenuList(_0x2a0bd2,_0x11afd1),_0x23040e=new Set(_0x1f77d1[_0x5def20(0xe4)](_0x1a7e8=>_0x1a7e8[_0x5def20(0xce)]));let _0x30f163;if(_0x3698a1&&_0x3698a1[_0x5def20(0xda)]>0x0){const _0x3f4f98=new Set(_0x3698a1['map'](_0x357128=>_0x357128[_0x5def20(0xe8)]()));_0x30f163=_0x33533f[_0x5def20(0xd2)](_0x588a71=>_0x3f4f98[_0x5def20(0xd5)](_0x588a71[_0x5def20(0xd6)]));if(_0x30f163[_0x5def20(0xda)]===0x0){const _0x1237dd=_0x33533f[_0x5def20(0xe4)](_0x43d01d=>_0x43d01d['label'])[_0x5def20(0xed)](',\x20');throw new Error('No\x20local\x20pages\x20matched\x20labels:\x20'+[..._0x3f4f98][_0x5def20(0xed)](',\x20')+_0x5def20(0xf1)+_0x1237dd);}}else _0x30f163=_0x33533f[_0x5def20(0xd2)](_0x44d7b0=>!_0x23040e[_0x5def20(0xd5)](_0x44d7b0[_0x5def20(0xce)]));if(_0x30f163[_0x5def20(0xda)]===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};const _0x354ecc=await createMenus(_0x2a0bd2,_0x11afd1,_0x30f163,_0x16d50c[_0x5def20(0xda)]>0x0?_0x16d50c:undefined);return logger['info'](_0x5def20(0xcb),_0x5def20(0xec),{'count':_0x30f163[_0x5def20(0xda)],'resources':_0x16d50c}),{'created':_0x354ecc[_0x5def20(0xda)],'skipped':![],'targetPages':_0x30f163,'menus':_0x354ecc};}export async function readPageLabelsFromStdin(){const _0x493e18=a91_0x25bc;if(!process[_0x493e18(0xf3)]['isTTY']&&!process['stdin'][_0x493e18(0xde)])return new Promise(_0x263c4d=>{const _0x26014a=_0x493e18,_0x4322c0=[];process['stdin']['on']('data',_0x374a40=>_0x4322c0['push'](_0x374a40)),process[_0x26014a(0xf3)]['on'](_0x26014a(0xf2),()=>{const _0x5182d9=_0x26014a,_0x301f3f=Buffer[_0x5182d9(0xdb)](_0x4322c0)[_0x5182d9(0xcf)](_0x5182d9(0xdd)),_0x4562d4=_0x301f3f['split']('\x0a')['map'](_0x4f8259=>_0x4f8259['trim']())[_0x5182d9(0xd2)](_0x2ad397=>_0x2ad397['length']>0x0&&!_0x2ad397[_0x5182d9(0xee)]('#'));_0x263c4d(_0x4562d4);}),setTimeout(()=>_0x263c4d([]),0x1f4);});return[];}function a91_0xc0aa(){const _0x58290a=['142016qxnEqB','Menu\x20sync\x20completed','join','startsWith','Start\x20non-interactive\x20menu\x20sync','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','\x0a\x20\x20Available\x20local\x20pages:\x20','end','stdin','cssUrl','push','object','menu-sync','parse','4890710HfbvZN','path','toString','--params.','CSS\x20URL\x20is\x20unreachable:\x20','filter','selectedLabels','setLogPath','has','label','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','3626693vaXshU','pages','length','concat','902220ImoKeL','utf8','readableEnded','2FnfgRd','string','cwd','3034089PefqHl','9316208YCvDzO','map','587912tKmMeQ','6JbAiSI','field','trim','jsUrl','isArray'];a91_0xc0aa=function(){return _0x58290a;};return a91_0xc0aa();}function parseParamsFlag(_0x3f02f3){const _0x134b62=a91_0x25bc;if(!_0x3f02f3||typeof _0x3f02f3!==_0x134b62(0xe0))return{};try{const _0x6908a6=JSON[_0x134b62(0xcc)](_0x3f02f3);if(typeof _0x6908a6!==_0x134b62(0xca)||_0x6908a6===null||Array[_0x134b62(0xea)](_0x6908a6))return{};return{'selectedLabels':Array['isArray'](_0x6908a6[_0x134b62(0xd9)])?_0x6908a6['pages']['map'](String):undefined,'jsUrl':typeof _0x6908a6[_0x134b62(0xe9)]===_0x134b62(0xe0)?_0x6908a6[_0x134b62(0xe9)][_0x134b62(0xe8)]():undefined,'cssUrl':typeof _0x6908a6[_0x134b62(0xf4)]===_0x134b62(0xe0)?_0x6908a6['cssUrl']['trim']():undefined};}catch{return{};}}
@@ -1 +1 @@
1
- function a93_0x13fb(){const _0x641df7=['56PhEmZR','string','unshift','label','some','.css',').\x20','map','info','Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.','11898BjzDpQ','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','object','after','parse','status','CSS\x20URL\x20is\x20unreachable:\x20','.\x20Allowed\x20values:\x20replace,\x20patch','menu\x20update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22','allSettled','join','500982LgGHPo','cssUrl','resources','mode','endsWith','7oGLwfx','478264QDXYij','field','trim','Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.','fulfilled','path','451530NUYnCD','filter','Menu\x20update\x20completed','JS\x20URL\x20is\x20unreachable:\x20','toLowerCase','jsUrl','isArray','replace','setLogPath','Invalid\x20--params:\x20menu\x20update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20','patch','Invalid\x20--mode:\x20','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','cwd','dryRun','push','value','menu-update','33144ULJkSf','196894TUTynB','length','menu\x20update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22','2249721eYwnZE'];a93_0x13fb=function(){return _0x641df7;};return a93_0x13fb();}(function(_0x43f44b,_0x6c9e98){const _0x38ba2e=a93_0x9123,_0x5a0b25=_0x43f44b();while(!![]){try{const _0x1b9607=-parseInt(_0x38ba2e(0x1e9))/0x1+-parseInt(_0x38ba2e(0x1ea))/0x2+-parseInt(_0x38ba2e(0x1f8))/0x3*(parseInt(_0x38ba2e(0x1ee))/0x4)+-parseInt(_0x38ba2e(0x1d7))/0x5+-parseInt(_0x38ba2e(0x1cb))/0x6*(-parseInt(_0x38ba2e(0x1d0))/0x7)+parseInt(_0x38ba2e(0x1d1))/0x8+parseInt(_0x38ba2e(0x1ed))/0x9;if(_0x1b9607===_0x6c9e98)break;else _0x5a0b25['push'](_0x5a0b25['shift']());}catch(_0x358a0d){_0x5a0b25['push'](_0x5a0b25['shift']());}}}(a93_0x13fb,0x1c474));import{updateMenuCdnUrl,getOnlineMenuList}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';function validateParams(_0xcee75a){const _0x2fccad=a93_0x9123,_0x277772=[];return _0xcee75a[_0x2fccad(0x1dc)]&&!isValidJsHttpsUrl(_0xcee75a[_0x2fccad(0x1dc)])&&_0x277772['push']({'field':_0x2fccad(0x1dc),'message':_0x2fccad(0x1f9)}),_0xcee75a[_0x2fccad(0x1cc)]&&!isValidCssHttpsUrl(_0xcee75a[_0x2fccad(0x1cc)])&&_0x277772[_0x2fccad(0x1e6)]({'field':'cssUrl','message':_0x2fccad(0x1e3)}),_0x277772;}export async function runMenuUpdateCore(_0x2a4ba0,_0xf3526b,_0x26ddee,_0x39c8e9={}){const _0x4ac2da=a93_0x9123,_0x5efc2d=parseUpdateParamsFlag(_0x26ddee),_0x2dde6b=normalizeMode(_0x39c8e9[_0x4ac2da(0x1ce)]),_0x252882=[];if(_0x5efc2d[_0x4ac2da(0x1dc)])_0x252882[_0x4ac2da(0x1e6)](_0x5efc2d['jsUrl']);if(_0x5efc2d['cssUrl'])_0x252882['push'](_0x5efc2d[_0x4ac2da(0x1cc)]);const _0x579f9f=validateParams(_0x5efc2d);if(_0x579f9f[_0x4ac2da(0x1eb)]>0x0){const _0x657edd=_0x579f9f[_0x4ac2da(0x1f5)](_0x580876=>'--params.'+_0x580876[_0x4ac2da(0x1d2)]+':\x20'+_0x580876['message'])[_0x4ac2da(0x1ca)](';\x20');throw new Error('Invalid\x20--params:\x20'+_0x657edd);}if(_0x252882[_0x4ac2da(0x1eb)]===0x0)throw new Error(_0x4ac2da(0x1e0)+_0x4ac2da(0x1f7));logger[_0x4ac2da(0x1df)](process[_0x4ac2da(0x1e4)]()),logger[_0x4ac2da(0x1f6)](_0x4ac2da(0x1e8),'Start\x20non-interactive\x20menu\x20update',{'appCode':_0x2a4ba0,'jsUrl':_0x5efc2d[_0x4ac2da(0x1dc)],'cssUrl':_0x5efc2d['cssUrl'],'mode':_0x2dde6b,'dryRun':_0x39c8e9[_0x4ac2da(0x1e5)]===!![]});if(_0x5efc2d['jsUrl']){const _0x3707e4=await isUrlReachable(_0x5efc2d[_0x4ac2da(0x1dc)]);if(!_0x3707e4)throw new Error(_0x4ac2da(0x1da)+_0x5efc2d[_0x4ac2da(0x1dc)]);}if(_0x5efc2d[_0x4ac2da(0x1cc)]){const _0x13a05=await isUrlReachable(_0x5efc2d['cssUrl']);if(!_0x13a05)throw new Error(_0x4ac2da(0x1fe)+_0x5efc2d[_0x4ac2da(0x1cc)]);}const _0x240ce6=await getOnlineMenuList(_0x2a4ba0,_0xf3526b),_0x9753d0=_0x240ce6[_0x4ac2da(0x1d8)](_0x4d481b=>_0x4d481b[_0x4ac2da(0x1cd)][_0x4ac2da(0x1eb)]>0x0);if(_0x9753d0['length']===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x39c8e9[_0x4ac2da(0x1e5)]===!![]};const _0x485162=_0x9753d0[_0x4ac2da(0x1f5)](_0x3aadff=>buildMenuUpdateDiff(_0x3aadff,_0x5efc2d,_0x2dde6b,_0x39c8e9['force']===!![]));if(_0x39c8e9['dryRun'])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x485162};const _0x3167f1=await Promise[_0x4ac2da(0x1c9)](_0x9753d0[_0x4ac2da(0x1f5)]((_0x266eda,_0x50898a)=>updateMenuCdnUrl(_0x2a4ba0,_0xf3526b,{'id':_0x266eda['id'],'label':_0x266eda[_0x4ac2da(0x1f1)],'path':_0x266eda[_0x4ac2da(0x1d6)],'resources':_0x485162[_0x50898a][_0x4ac2da(0x1fb)][_0x4ac2da(0x1cd)],'extend':_0x266eda['extend']??null}))),_0x3a8d7a=_0x3167f1[_0x4ac2da(0x1d8)](_0x591e16=>_0x591e16[_0x4ac2da(0x1fd)]===_0x4ac2da(0x1d5))['map'](_0x2e5c09=>_0x2e5c09[_0x4ac2da(0x1e7)]),_0x236b3b=_0x3167f1[_0x4ac2da(0x1d8)](_0xb59fa7=>_0xb59fa7[_0x4ac2da(0x1fd)]==='rejected')[_0x4ac2da(0x1eb)];return logger[_0x4ac2da(0x1f6)](_0x4ac2da(0x1e8),_0x4ac2da(0x1d9),{'count':_0x9753d0['length'],'resources':_0x252882}),{'updated':_0x3a8d7a[_0x4ac2da(0x1eb)],'failed':_0x236b3b,'skipped':![],'menus':_0x3a8d7a};}function normalizeMode(_0x9c0b08){const _0xd998e4=a93_0x9123;if(!_0x9c0b08)return _0xd998e4(0x1de);if(_0x9c0b08==='replace'||_0x9c0b08==='patch')return _0x9c0b08;throw new Error(_0xd998e4(0x1e2)+_0x9c0b08+_0xd998e4(0x1c7));}function buildMenuUpdateDiff(_0x553c3a,_0x54f42a,_0x11e28c,_0x4bc700){const _0x38153c=a93_0x9123,_0x2dfb29=[..._0x553c3a[_0x38153c(0x1cd)]],_0x58943b=_0x11e28c===_0x38153c(0x1e1)?patchResources(_0x2dfb29,_0x54f42a):replaceResources(_0x54f42a),_0x45aaea=[],_0x5a9a9c=_0x2dfb29[_0x38153c(0x1f2)](isJsResource),_0x5eb5b7=_0x58943b[_0x38153c(0x1f2)](isJsResource);if(_0x5a9a9c&&!_0x5eb5b7){const _0x207a9e=_0x38153c(0x1c8)+_0x553c3a['label']+'\x22\x20('+_0x553c3a[_0x38153c(0x1d6)]+_0x38153c(0x1f4)+_0x38153c(0x1d4);if(!_0x4bc700)throw new Error(_0x207a9e);_0x45aaea[_0x38153c(0x1e6)](_0x207a9e);}const _0x26af9d=_0x2dfb29['some'](isCssResource),_0x181a12=_0x58943b['some'](isCssResource);return _0x26af9d&&!_0x181a12&&_0x45aaea[_0x38153c(0x1e6)](_0x38153c(0x1ec)+_0x553c3a[_0x38153c(0x1f1)]+'\x22\x20('+_0x553c3a['path']+').'),{'id':_0x553c3a['id'],'label':_0x553c3a[_0x38153c(0x1f1)],'path':_0x553c3a['path'],'mode':_0x11e28c,'before':{'resources':_0x2dfb29},'after':{'resources':_0x58943b},'warnings':_0x45aaea};}function replaceResources(_0xa5c1c8){const _0x12e187=a93_0x9123;return[_0xa5c1c8[_0x12e187(0x1dc)],_0xa5c1c8[_0x12e187(0x1cc)]][_0x12e187(0x1d8)](_0x5c807e=>!!_0x5c807e);}function patchResources(_0x5a3a75,_0x161f48){const _0xb0e42b=a93_0x9123;let _0x1e921c=![],_0x393a86=![];const _0x3266cf=[];for(const _0x390fba of _0x5a3a75){if(isJsResource(_0x390fba)){if(_0x161f48['jsUrl']&&!_0x1e921c)_0x3266cf['push'](_0x161f48[_0xb0e42b(0x1dc)]),_0x1e921c=!![];else!_0x161f48[_0xb0e42b(0x1dc)]&&_0x3266cf['push'](_0x390fba);continue;}if(isCssResource(_0x390fba)){if(_0x161f48[_0xb0e42b(0x1cc)]&&!_0x393a86)_0x3266cf['push'](_0x161f48[_0xb0e42b(0x1cc)]),_0x393a86=!![];else!_0x161f48['cssUrl']&&_0x3266cf[_0xb0e42b(0x1e6)](_0x390fba);continue;}_0x3266cf[_0xb0e42b(0x1e6)](_0x390fba);}return _0x161f48['jsUrl']&&!_0x1e921c&&_0x3266cf[_0xb0e42b(0x1f0)](_0x161f48[_0xb0e42b(0x1dc)]),_0x161f48[_0xb0e42b(0x1cc)]&&!_0x393a86&&_0x3266cf[_0xb0e42b(0x1e6)](_0x161f48[_0xb0e42b(0x1cc)]),_0x3266cf;}function isJsResource(_0x8d6c47){const _0x8f60a7=a93_0x9123;return stripQuery(_0x8d6c47)[_0x8f60a7(0x1db)]()[_0x8f60a7(0x1cf)]('.js');}function a93_0x9123(_0x38d2cf,_0x40278c){_0x38d2cf=_0x38d2cf-0x1c7;const _0x13fb63=a93_0x13fb();let _0x91234b=_0x13fb63[_0x38d2cf];return _0x91234b;}function isCssResource(_0x38d15f){const _0x17ca69=a93_0x9123;return stripQuery(_0x38d15f)[_0x17ca69(0x1db)]()[_0x17ca69(0x1cf)](_0x17ca69(0x1f3));}function stripQuery(_0x17e7e4){return _0x17e7e4['split']('?')[0x0]??_0x17e7e4;}function parseUpdateParamsFlag(_0xf71806){const _0x16d0b6=a93_0x9123;if(!_0xf71806||typeof _0xf71806!==_0x16d0b6(0x1ef))return{};try{const _0x4c9e4f=JSON[_0x16d0b6(0x1fc)](_0xf71806);if(typeof _0x4c9e4f!==_0x16d0b6(0x1fa)||_0x4c9e4f===null||Array[_0x16d0b6(0x1dd)](_0x4c9e4f))return{};return{'jsUrl':typeof _0x4c9e4f['jsUrl']==='string'?_0x4c9e4f['jsUrl'][_0x16d0b6(0x1d3)]():undefined,'cssUrl':typeof _0x4c9e4f[_0x16d0b6(0x1cc)]===_0x16d0b6(0x1ef)?_0x4c9e4f[_0x16d0b6(0x1cc)][_0x16d0b6(0x1d3)]():undefined};}catch{return{};}}
1
+ (function(_0x630a10,_0x5e9a3f){const _0x1fc108=a93_0x3bdc,_0x64ad45=_0x630a10();while(!![]){try{const _0x34bde5=-parseInt(_0x1fc108(0x149))/0x1*(parseInt(_0x1fc108(0x14a))/0x2)+parseInt(_0x1fc108(0x177))/0x3+parseInt(_0x1fc108(0x16e))/0x4*(parseInt(_0x1fc108(0x176))/0x5)+parseInt(_0x1fc108(0x163))/0x6+parseInt(_0x1fc108(0x15c))/0x7*(-parseInt(_0x1fc108(0x170))/0x8)+parseInt(_0x1fc108(0x14d))/0x9*(parseInt(_0x1fc108(0x148))/0xa)+parseInt(_0x1fc108(0x15e))/0xb;if(_0x34bde5===_0x5e9a3f)break;else _0x64ad45['push'](_0x64ad45['shift']());}catch(_0x4a5e45){_0x64ad45['push'](_0x64ad45['shift']());}}}(a93_0x574f,0x7bf19));import{updateMenuCdnUrl,getOnlineMenuList}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';function a93_0x3bdc(_0x3d6564,_0x3f291d){_0x3d6564=_0x3d6564-0x142;const _0x574ff6=a93_0x574f();let _0x3bdc1c=_0x574ff6[_0x3d6564];return _0x3bdc1c;}function a93_0x574f(){const _0x46d11e=['.\x20Allowed\x20values:\x20replace,\x20patch','Invalid\x20--mode:\x20','toLowerCase','menu-update','split','info','10NzzrSf','1ZEVMoU','1988078wGqWqe','label','resources','3711996lwCTuu','object','trim','\x22\x20(','allSettled','extend','after','menu\x20update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22','filter','setLogPath','message','patch','Start\x20non-interactive\x20menu\x20update','replace','Invalid\x20--params:\x20','14oFsToq','.js','2158112YotAGp','some','string','isArray','length','1328532QvVfLf','status','CSS\x20URL\x20is\x20unreachable:\x20','endsWith','unshift','push','dryRun','path','cssUrl','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','map','420eUNeLY','.css','3481784JCetWu',').\x20','parse','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','join','--params.','33685ZkAYnd','2504145kgFoMi','mode','jsUrl','Invalid\x20--params:\x20menu\x20update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20','JS\x20URL\x20is\x20unreachable:\x20','Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.','rejected','value'];a93_0x574f=function(){return _0x46d11e;};return a93_0x574f();}import{logger}from'../../../utils/logger.js';function validateParams(_0x1b39be){const _0x4df51=a93_0x3bdc,_0xded68f=[];return _0x1b39be[_0x4df51(0x179)]&&!isValidJsHttpsUrl(_0x1b39be['jsUrl'])&&_0xded68f[_0x4df51(0x168)]({'field':_0x4df51(0x179),'message':_0x4df51(0x16c)}),_0x1b39be[_0x4df51(0x16b)]&&!isValidCssHttpsUrl(_0x1b39be[_0x4df51(0x16b)])&&_0xded68f[_0x4df51(0x168)]({'field':_0x4df51(0x16b),'message':_0x4df51(0x173)}),_0xded68f;}export async function runMenuUpdateCore(_0x5e4305,_0x262fb5,_0x5d7423,_0x1c7ec4={}){const _0x34d26e=a93_0x3bdc,_0x1e60a2=parseUpdateParamsFlag(_0x5d7423),_0x3de038=normalizeMode(_0x1c7ec4[_0x34d26e(0x178)]),_0x26941b=[];if(_0x1e60a2['jsUrl'])_0x26941b[_0x34d26e(0x168)](_0x1e60a2[_0x34d26e(0x179)]);if(_0x1e60a2[_0x34d26e(0x16b)])_0x26941b[_0x34d26e(0x168)](_0x1e60a2[_0x34d26e(0x16b)]);const _0x111313=validateParams(_0x1e60a2);if(_0x111313[_0x34d26e(0x162)]>0x0){const _0xe84e22=_0x111313['map'](_0x166b3e=>_0x34d26e(0x175)+_0x166b3e['field']+':\x20'+_0x166b3e[_0x34d26e(0x157)])[_0x34d26e(0x174)](';\x20');throw new Error(_0x34d26e(0x15b)+_0xe84e22);}if(_0x26941b[_0x34d26e(0x162)]===0x0)throw new Error(_0x34d26e(0x17a)+_0x34d26e(0x17c));logger[_0x34d26e(0x156)](process['cwd']()),logger[_0x34d26e(0x147)](_0x34d26e(0x145),_0x34d26e(0x159),{'appCode':_0x5e4305,'jsUrl':_0x1e60a2['jsUrl'],'cssUrl':_0x1e60a2[_0x34d26e(0x16b)],'mode':_0x3de038,'dryRun':_0x1c7ec4[_0x34d26e(0x169)]===!![]});if(_0x1e60a2[_0x34d26e(0x179)]){const _0x72e060=await isUrlReachable(_0x1e60a2[_0x34d26e(0x179)]);if(!_0x72e060)throw new Error(_0x34d26e(0x17b)+_0x1e60a2[_0x34d26e(0x179)]);}if(_0x1e60a2[_0x34d26e(0x16b)]){const _0x28ef33=await isUrlReachable(_0x1e60a2[_0x34d26e(0x16b)]);if(!_0x28ef33)throw new Error(_0x34d26e(0x165)+_0x1e60a2[_0x34d26e(0x16b)]);}const _0x3c2765=await getOnlineMenuList(_0x5e4305,_0x262fb5),_0xd34a24=_0x3c2765[_0x34d26e(0x155)](_0x113b30=>_0x113b30['resources'][_0x34d26e(0x162)]>0x0);if(_0xd34a24[_0x34d26e(0x162)]===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x1c7ec4[_0x34d26e(0x169)]===!![]};const _0x32e13e=_0xd34a24[_0x34d26e(0x16d)](_0x32ec3b=>buildMenuUpdateDiff(_0x32ec3b,_0x1e60a2,_0x3de038,_0x1c7ec4['force']===!![]));if(_0x1c7ec4['dryRun'])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x32e13e};const _0x55d641=await Promise[_0x34d26e(0x151)](_0xd34a24[_0x34d26e(0x16d)]((_0xf98050,_0x5711e6)=>updateMenuCdnUrl(_0x5e4305,_0x262fb5,{'id':_0xf98050['id'],'label':_0xf98050['label'],'path':_0xf98050[_0x34d26e(0x16a)],'resources':_0x32e13e[_0x5711e6][_0x34d26e(0x153)][_0x34d26e(0x14c)],'extend':_0xf98050[_0x34d26e(0x152)]??null}))),_0x10d91d=_0x55d641[_0x34d26e(0x155)](_0x4ada0e=>_0x4ada0e[_0x34d26e(0x164)]==='fulfilled')['map'](_0xbe1eaa=>_0xbe1eaa[_0x34d26e(0x17e)]),_0x3754aa=_0x55d641[_0x34d26e(0x155)](_0xbf7870=>_0xbf7870[_0x34d26e(0x164)]===_0x34d26e(0x17d))[_0x34d26e(0x162)];return logger[_0x34d26e(0x147)](_0x34d26e(0x145),'Menu\x20update\x20completed',{'count':_0xd34a24[_0x34d26e(0x162)],'resources':_0x26941b}),{'updated':_0x10d91d[_0x34d26e(0x162)],'failed':_0x3754aa,'skipped':![],'menus':_0x10d91d};}function normalizeMode(_0x59de18){const _0x531511=a93_0x3bdc;if(!_0x59de18)return _0x531511(0x15a);if(_0x59de18==='replace'||_0x59de18===_0x531511(0x158))return _0x59de18;throw new Error(_0x531511(0x143)+_0x59de18+_0x531511(0x142));}function buildMenuUpdateDiff(_0x559555,_0x17ca65,_0xdbeac4,_0x314d1c){const _0x11975d=a93_0x3bdc,_0x1b355f=[..._0x559555['resources']],_0x21f147=_0xdbeac4==='patch'?patchResources(_0x1b355f,_0x17ca65):replaceResources(_0x17ca65),_0x289d60=[],_0x286fae=_0x1b355f['some'](isJsResource),_0x1e0854=_0x21f147[_0x11975d(0x15f)](isJsResource);if(_0x286fae&&!_0x1e0854){const _0x2cf0e3=_0x11975d(0x154)+_0x559555[_0x11975d(0x14b)]+_0x11975d(0x150)+_0x559555['path']+_0x11975d(0x171)+'Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.';if(!_0x314d1c)throw new Error(_0x2cf0e3);_0x289d60['push'](_0x2cf0e3);}const _0x32f067=_0x1b355f[_0x11975d(0x15f)](isCssResource),_0x3e5777=_0x21f147[_0x11975d(0x15f)](isCssResource);return _0x32f067&&!_0x3e5777&&_0x289d60[_0x11975d(0x168)]('menu\x20update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22'+_0x559555[_0x11975d(0x14b)]+_0x11975d(0x150)+_0x559555['path']+').'),{'id':_0x559555['id'],'label':_0x559555[_0x11975d(0x14b)],'path':_0x559555[_0x11975d(0x16a)],'mode':_0xdbeac4,'before':{'resources':_0x1b355f},'after':{'resources':_0x21f147},'warnings':_0x289d60};}function replaceResources(_0x4049fa){const _0x29d324=a93_0x3bdc;return[_0x4049fa[_0x29d324(0x179)],_0x4049fa[_0x29d324(0x16b)]][_0x29d324(0x155)](_0x22d7d3=>!!_0x22d7d3);}function patchResources(_0x3b9859,_0x25250f){const _0x34189a=a93_0x3bdc;let _0x4346d8=![],_0xe9cbc1=![];const _0xf227bf=[];for(const _0x9dba26 of _0x3b9859){if(isJsResource(_0x9dba26)){if(_0x25250f['jsUrl']&&!_0x4346d8)_0xf227bf[_0x34189a(0x168)](_0x25250f[_0x34189a(0x179)]),_0x4346d8=!![];else!_0x25250f[_0x34189a(0x179)]&&_0xf227bf['push'](_0x9dba26);continue;}if(isCssResource(_0x9dba26)){if(_0x25250f[_0x34189a(0x16b)]&&!_0xe9cbc1)_0xf227bf[_0x34189a(0x168)](_0x25250f[_0x34189a(0x16b)]),_0xe9cbc1=!![];else!_0x25250f['cssUrl']&&_0xf227bf['push'](_0x9dba26);continue;}_0xf227bf[_0x34189a(0x168)](_0x9dba26);}return _0x25250f[_0x34189a(0x179)]&&!_0x4346d8&&_0xf227bf[_0x34189a(0x167)](_0x25250f[_0x34189a(0x179)]),_0x25250f['cssUrl']&&!_0xe9cbc1&&_0xf227bf[_0x34189a(0x168)](_0x25250f[_0x34189a(0x16b)]),_0xf227bf;}function isJsResource(_0xc1f831){const _0x441d22=a93_0x3bdc;return stripQuery(_0xc1f831)[_0x441d22(0x144)]()[_0x441d22(0x166)](_0x441d22(0x15d));}function isCssResource(_0xc9dbc){const _0x470cd9=a93_0x3bdc;return stripQuery(_0xc9dbc)['toLowerCase']()[_0x470cd9(0x166)](_0x470cd9(0x16f));}function stripQuery(_0x14c9cd){const _0x1312eb=a93_0x3bdc;return _0x14c9cd[_0x1312eb(0x146)]('?')[0x0]??_0x14c9cd;}function parseUpdateParamsFlag(_0x50cd55){const _0x57e73d=a93_0x3bdc;if(!_0x50cd55||typeof _0x50cd55!==_0x57e73d(0x160))return{};try{const _0x1088cb=JSON[_0x57e73d(0x172)](_0x50cd55);if(typeof _0x1088cb!==_0x57e73d(0x14e)||_0x1088cb===null||Array[_0x57e73d(0x161)](_0x1088cb))return{};return{'jsUrl':typeof _0x1088cb[_0x57e73d(0x179)]===_0x57e73d(0x160)?_0x1088cb[_0x57e73d(0x179)][_0x57e73d(0x14f)]():undefined,'cssUrl':typeof _0x1088cb[_0x57e73d(0x16b)]===_0x57e73d(0x160)?_0x1088cb['cssUrl'][_0x57e73d(0x14f)]():undefined};}catch{return{};}}
@@ -1 +1 @@
1
- (function(_0x7685cd,_0x3964e3){const _0x5b6280=a94_0x5255,_0x4747a5=_0x7685cd();while(!![]){try{const _0x3a18e1=parseInt(_0x5b6280(0x12b))/0x1+-parseInt(_0x5b6280(0x12d))/0x2+parseInt(_0x5b6280(0x128))/0x3+parseInt(_0x5b6280(0x127))/0x4+-parseInt(_0x5b6280(0x12e))/0x5+parseInt(_0x5b6280(0x129))/0x6*(parseInt(_0x5b6280(0x12f))/0x7)+-parseInt(_0x5b6280(0x12a))/0x8;if(_0x3a18e1===_0x3964e3)break;else _0x4747a5['push'](_0x4747a5['shift']());}catch(_0x5e486f){_0x4747a5['push'](_0x4747a5['shift']());}}}(a94_0x121b,0x6888a));export function isValidJsHttpsUrl(_0x459969){const _0xd44f2f=a94_0x5255;return/^https:\/\/.+\.js(\?.*)?$/[_0xd44f2f(0x126)](_0x459969[_0xd44f2f(0x12c)]());}function a94_0x5255(_0x60d8c5,_0x55d70d){_0x60d8c5=_0x60d8c5-0x126;const _0x121bc4=a94_0x121b();let _0x52554c=_0x121bc4[_0x60d8c5];return _0x52554c;}export function isValidCssHttpsUrl(_0x1a8e59){const _0x19add6=a94_0x5255;return/^https:\/\/.+\.css(\?.*)?$/[_0x19add6(0x126)](_0x1a8e59[_0x19add6(0x12c)]());}export async function isUrlReachable(_0x1ff5cf){try{const _0x2ee413=await fetch(_0x1ff5cf,{'method':'HEAD'});return _0x2ee413['ok'];}catch{return![];}}function a94_0x121b(){const _0x53a21b=['1021191MVbtuO','138uJNTbh','3537000mOWxNP','408236byYlwm','trim','629102XUbtCg','1845810TBkmIf','8498RwTeSb','test','3109812IutwqP'];a94_0x121b=function(){return _0x53a21b;};return a94_0x121b();}
1
+ function a94_0x2026(){const _0x1a7d5b=['4yqgGMk','1770300inGzKW','315380ytLPTp','63035mvSwve','9ipIznd','317037zppbUz','2616866IxzVrL','3864144ntXFkJ','626693IlpEjk','282dbVGgW','trim'];a94_0x2026=function(){return _0x1a7d5b;};return a94_0x2026();}(function(_0x5b4572,_0x1f99f1){const _0x1e1762=a94_0x2add,_0x49669f=_0x5b4572();while(!![]){try{const _0x5d12b7=parseInt(_0x1e1762(0x1b3))/0x1+parseInt(_0x1e1762(0x1b6))/0x2*(-parseInt(_0x1e1762(0x1b0))/0x3)+parseInt(_0x1e1762(0x1ac))/0x4+-parseInt(_0x1e1762(0x1ae))/0x5*(parseInt(_0x1e1762(0x1b4))/0x6)+-parseInt(_0x1e1762(0x1b1))/0x7+parseInt(_0x1e1762(0x1b2))/0x8+-parseInt(_0x1e1762(0x1af))/0x9*(-parseInt(_0x1e1762(0x1ad))/0xa);if(_0x5d12b7===_0x1f99f1)break;else _0x49669f['push'](_0x49669f['shift']());}catch(_0xa7648){_0x49669f['push'](_0x49669f['shift']());}}}(a94_0x2026,0x63253));export function isValidJsHttpsUrl(_0x5e9af8){const _0x3d1e24=a94_0x2add;return/^https:\/\/.+\.js(\?.*)?$/['test'](_0x5e9af8[_0x3d1e24(0x1b5)]());}export function isValidCssHttpsUrl(_0x18167a){const _0x4907bb=a94_0x2add;return/^https:\/\/.+\.css(\?.*)?$/['test'](_0x18167a[_0x4907bb(0x1b5)]());}function a94_0x2add(_0x4e3d37,_0xed18ef){_0x4e3d37=_0x4e3d37-0x1ac;const _0x202693=a94_0x2026();let _0x2add59=_0x202693[_0x4e3d37];return _0x2add59;}export async function isUrlReachable(_0xf76d3){try{const _0x342201=await fetch(_0xf76d3,{'method':'HEAD'});return _0x342201['ok'];}catch{return![];}}