@lovrabet/rabetbase-cli 2.2.0 → 2.2.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/discover.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app/use.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/update.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a79_0x2940(){const _0x1ba13a=['512NTfytp','92617iNXwIH','12qJosYS','1363525SXEUhw','5792bdzczD','2353098JdjyWn','256RnQFIS','914967ZozKrZ','2009660DfNGOg','2068866nLYtQO'];a79_0x2940=function(){return _0x1ba13a;};return a79_0x2940();}function a79_0x12a9(_0x149a11,_0x37cfd4){_0x149a11=_0x149a11-0x1c3;const _0x294005=a79_0x2940();let _0x12a9a0=_0x294005[_0x149a11];return _0x12a9a0;}(function(_0x8ea170,_0x3caeb8){const _0x2b909a=a79_0x12a9,_0x4de95f=_0x8ea170();while(!![]){try{const _0x2fd33c=parseInt(_0x2b909a(0x1c7))/0x1*(-parseInt(_0x2b909a(0x1c5))/0x2)+parseInt(_0x2b909a(0x1ca))/0x3+parseInt(_0x2b909a(0x1c3))/0x4*(parseInt(_0x2b909a(0x1c4))/0x5)+parseInt(_0x2b909a(0x1c6))/0x6+-parseInt(_0x2b909a(0x1cc))/0x7*(parseInt(_0x2b909a(0x1cb))/0x8)+parseInt(_0x2b909a(0x1c8))/0x9+parseInt(_0x2b909a(0x1c9))/0xa;if(_0x2fd33c===_0x3caeb8)break;else _0x4de95f['push'](_0x4de95f['shift']());}catch(_0x2b79a7){_0x4de95f['push'](_0x4de95f['shift']());}}}(a79_0x2940,0x95ff5));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a80_0x2de17a=a80_0x8334;function a80_0x463f(){const _0x48c23e=['16RiVtqS','5679470kAzCzu','\x20\x20Set\x20','11nNexKk','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','validation_error','\x22\x20\x5c','slice','RABETBASE_DISABLE_ISSUE_NUDGE','7368HLtFAZ','has','8135736hYULAi','not_in_project','6573tbfrKr','=1\x20to\x20silence\x20this\x20hint.','7350wzwpSf','replace','trim','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','3390rzYqou','issue','cancelled','auth_required','105967fckgik','command','Hit\x20a\x20','report','write','\x20bug?\x20Help\x20us\x20fix\x20it:','config_missing','stderr','5934681fgqyWF','message','network_error','unknown_command','service','code','length','flag_missing','3204180aFfaoZ'];a80_0x463f=function(){return _0x48c23e;};return a80_0x463f();}(function(_0x4b3b5e,_0x1399fd){const _0x1b4ede=a80_0x8334,_0x513273=_0x4b3b5e();while(!![]){try{const _0x1c553a=-parseInt(_0x1b4ede(0x10e))/0x1*(-parseInt(_0x1b4ede(0xf7))/0x2)+parseInt(_0x1b4ede(0xf6))/0x3+parseInt(_0x1b4ede(0x100))/0x4*(-parseInt(_0x1b4ede(0x10a))/0x5)+-parseInt(_0x1b4ede(0x106))/0x6*(-parseInt(_0x1b4ede(0x104))/0x7)+-parseInt(_0x1b4ede(0x102))/0x8+-parseInt(_0x1b4ede(0xee))/0x9+-parseInt(_0x1b4ede(0xf8))/0xa*(-parseInt(_0x1b4ede(0xfa))/0xb);if(_0x1c553a===_0x1399fd)break;else _0x513273['push'](_0x513273['shift']());}catch(_0xc4878e){_0x513273['push'](_0x513273['shift']());}}}(a80_0x463f,0xad09e));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a80_0x2de17a(0xff);const NUDGE_SUPPRESSED_CODES=new Set([a80_0x2de17a(0x10c),a80_0x2de17a(0x10d),a80_0x2de17a(0x114),a80_0x2de17a(0x103),a80_0x2de17a(0xf1),a80_0x2de17a(0xf5),a80_0x2de17a(0xfc),a80_0x2de17a(0xf0)]),defaultWriter=_0x41620b=>{const _0x3ac3a5=a80_0x2de17a;process[_0x3ac3a5(0xed)][_0x3ac3a5(0x112)](_0x41620b);};export function shouldNudgeForError(_0x3e0629,_0x227c69){const _0xb33dc8=a80_0x2de17a;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x227c69[_0xb33dc8(0xf2)]===_0xb33dc8(0x10b)&&_0x227c69[_0xb33dc8(0x10f)]===_0xb33dc8(0x111))return![];if(_0x3e0629 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0xb33dc8(0x101)](_0x3e0629[_0xb33dc8(0xf3)]);return!![];}function a80_0x8334(_0x145fcb,_0x384d80){_0x145fcb=_0x145fcb-0xed;const _0x463f8=a80_0x463f();let _0x83349c=_0x463f8[_0x145fcb];return _0x83349c;}export function printIssueReportNudgeForError(_0xba58d6,_0x191112,_0x343ea6=defaultWriter){if(!shouldNudgeForError(_0xba58d6,_0x191112))return;const _0x252885=buildSuggestedTitle(_0xba58d6,_0x191112);_0x343ea6(formatNudge(_0x252885));}function buildSuggestedTitle(_0x5498d7,_0x10a3b5){const _0x501720=a80_0x2de17a,_0x33811e=_0x5498d7 instanceof Error?_0x5498d7[_0x501720(0xef)]:String(_0x5498d7),_0x3d9dd4=_0x33811e[_0x501720(0x107)](/[\r\n]+/g,'\x20')[_0x501720(0x107)](/\s+/g,'\x20')[_0x501720(0x108)]()[_0x501720(0xfe)](0x0,0x78)[_0x501720(0x107)](/"/g,'\x5c\x22'),_0x3ce848=CLI_BIN_NAME+'\x20'+_0x10a3b5[_0x501720(0xf2)]+'\x20'+_0x10a3b5[_0x501720(0x10f)];return _0x3d9dd4[_0x501720(0xf4)]>0x0?_0x3ce848+':\x20'+_0x3d9dd4:_0x3ce848;}function formatNudge(_0x151bbe){const _0x1fc924=a80_0x2de17a;return['',_0x1fc924(0x110)+CLI_BIN_NAME+_0x1fc924(0x113),'\x20\x20'+CLI_BIN_NAME+'\x20issue\x20report\x20\x5c','\x20\x20\x20\x20--title\x20\x22'+_0x151bbe+_0x1fc924(0xfd),_0x1fc924(0x109),_0x1fc924(0xfb),_0x1fc924(0xf9)+NUDGE_OPT_OUT_ENV+_0x1fc924(0x105),'']['join']('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a81_0x5692d7=a81_0x1d7f;(function(_0x346d1f,_0x7dd658){const _0x42b822=a81_0x1d7f,_0x2f593d=_0x346d1f();while(!![]){try{const _0x406677=-parseInt(_0x42b822(0x15d))/0x1*(parseInt(_0x42b822(0x151))/0x2)+parseInt(_0x42b822(0x17c))/0x3+-parseInt(_0x42b822(0x16d))/0x4+-parseInt(_0x42b822(0x152))/0x5*(-parseInt(_0x42b822(0x15e))/0x6)+-parseInt(_0x42b822(0x16e))/0x7+parseInt(_0x42b822(0x175))/0x8*(parseInt(_0x42b822(0x178))/0x9)+parseInt(_0x42b822(0x181))/0xa*(parseInt(_0x42b822(0x176))/0xb);if(_0x406677===_0x7dd658)break;else _0x2f593d['push'](_0x2f593d['shift']());}catch(_0xd28ea3){_0x2f593d['push'](_0x2f593d['shift']());}}}(a81_0x36b0,0xf413d));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';function a81_0x1d7f(_0x443409,_0x87301f){_0x443409=_0x443409-0x14e;const _0x36b044=a81_0x36b0();let _0x1d7f10=_0x36b044[_0x443409];return _0x1d7f10;}import{resolve}from'node:path';function a81_0x36b0(){const _0x39f082=['Platform\x20issue\x20reported\x20(','message','length','originalBytes','issue.description_redaction_kinds','join','descriptionFile:\x20','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','1111gELhrX','30yryYeB','issue.description','File\x20not\x20found:\x20','truncated','compress','str','POST','string','descriptionSource:\x20','description-file','\x20bytes','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','descriptionSource','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','cwd','4343204BaxTBc','7616140cFlMaz','truncated\x20from\x20','trim','Issue\x20description\x20cannot\x20be\x20empty.','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','issue','utf8','112iFMVyP','11XRvPhR','description','536742TRzbxf','sanitize','flagMissing','One-line\x20issue\x20summary','1097097UXmCSF','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','Platform\x20issue\x20reported','push','issue.description_original_bytes','14545690vvsaxn','redactionCount','redactionKinds','issue.title','validation','report','descriptionFilePath','66cNAFDB','555025qihcbp','issue.description_truncated','title'];a81_0x36b0=function(){return _0x39f082;};return a81_0x36b0();}import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a81_0x5692d7(0x167);export const issueReport={'service':a81_0x5692d7(0x173),'command':a81_0x5692d7(0x14f),'description':a81_0x5692d7(0x16b),'risk':'write','requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a81_0x5692d7(0x162),'flags':[{'name':a81_0x5692d7(0x154),'type':a81_0x5692d7(0x165),'required':!![],'description':a81_0x5692d7(0x17b)},{'name':a81_0x5692d7(0x177),'type':a81_0x5692d7(0x165),'description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':'string','description':a81_0x5692d7(0x169)}],async 'validate'(_0x56621b){const _0x36277d=a81_0x5692d7,_0x1471e9=_0x56621b[_0x36277d(0x163)](_0x36277d(0x154))['trim'](),_0x4795d0=_0x56621b[_0x36277d(0x163)]('description')[_0x36277d(0x170)](),_0x2e58f2=_0x56621b[_0x36277d(0x163)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x1471e9)throw CliErrors[_0x36277d(0x17a)](_0x36277d(0x154),_0x36277d(0x15c));const _0x2fc787=_0x4795d0[_0x36277d(0x157)]>0x0,_0x19f5eb=_0x2e58f2[_0x36277d(0x157)]>0x0;if(_0x2fc787===_0x19f5eb)throw CliErrors[_0x36277d(0x14e)]('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x19f5eb){const _0x591fe6=resolve(process[_0x36277d(0x16c)](),_0x2e58f2);if(!existsSync(_0x591fe6))throw CliErrors[_0x36277d(0x14e)](_0x36277d(0x160)+_0x591fe6);}},async 'dryRun'(_0x52d5af){const _0xb1c9b1=a81_0x5692d7,_0x62b811=await prepareIssueReport(_0x52d5af);return{'method':_0xb1c9b1(0x164),'url':'otel://'+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x62b811['title'],'issue.description':_0x62b811[_0xb1c9b1(0x177)],'issue.description_original_bytes':_0x62b811[_0xb1c9b1(0x179)][_0xb1c9b1(0x158)],'issue.description_truncated':_0x62b811[_0xb1c9b1(0x179)]['truncated'],'issue.description_redactions':_0x62b811['sanitize'][_0xb1c9b1(0x182)],'issue.description_redaction_kinds':_0x62b811[_0xb1c9b1(0x179)][_0xb1c9b1(0x183)]['join'](',')}},'description':[_0xb1c9b1(0x17d),_0xb1c9b1(0x166)+_0x62b811[_0xb1c9b1(0x16a)],_0x62b811[_0xb1c9b1(0x150)]?_0xb1c9b1(0x15b)+_0x62b811[_0xb1c9b1(0x150)]:null,_0x62b811[_0xb1c9b1(0x179)]['truncated']?'truncated:\x20original\x20'+_0x62b811[_0xb1c9b1(0x179)][_0xb1c9b1(0x158)]+_0xb1c9b1(0x168):null,_0x62b811[_0xb1c9b1(0x179)][_0xb1c9b1(0x182)]>0x0?'redactions:\x20'+_0x62b811[_0xb1c9b1(0x179)]['redactionCount']+'\x20('+_0x62b811[_0xb1c9b1(0x179)][_0xb1c9b1(0x183)][_0xb1c9b1(0x15a)](',\x20')+')':null]['filter'](Boolean)['join']('\x0a')};},async 'execute'(_0x2d0b02){const _0x22cecd=a81_0x5692d7,_0xb6ccd8=await prepareIssueReport(_0x2d0b02);try{await sendPlatformIssueCollectLog({'title':_0xb6ccd8[_0x22cecd(0x154)],'description':_0xb6ccd8[_0x22cecd(0x177)],'sanitize':{'originalBytes':_0xb6ccd8[_0x22cecd(0x179)]['originalBytes'],'truncated':_0xb6ccd8[_0x22cecd(0x179)][_0x22cecd(0x161)],'redactionCount':_0xb6ccd8[_0x22cecd(0x179)][_0x22cecd(0x182)],'redactionKinds':_0xb6ccd8['sanitize'][_0x22cecd(0x183)]}});}catch(_0xa82c51){throw CliErrors['apiError']('Failed\x20to\x20report\x20platform\x20issue:\x20'+(_0xa82c51 instanceof Error?_0xa82c51[_0x22cecd(0x156)]:String(_0xa82c51)),_0x22cecd(0x172));}return{'ok':!![],'message':buildResultMessage(_0xb6ccd8['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x22cecd(0x184),_0x22cecd(0x15f),_0x22cecd(0x180),_0x22cecd(0x153),'issue.description_redactions',_0x22cecd(0x159)],'issue':{'title':_0xb6ccd8[_0x22cecd(0x154)],'descriptionLength':_0xb6ccd8[_0x22cecd(0x177)][_0x22cecd(0x157)],'descriptionSource':_0xb6ccd8[_0x22cecd(0x16a)],..._0xb6ccd8['descriptionFilePath']?{'descriptionFile':_0xb6ccd8['descriptionFilePath']}:{},'sanitize':{'originalBytes':_0xb6ccd8[_0x22cecd(0x179)]['originalBytes'],'truncated':_0xb6ccd8['sanitize'][_0x22cecd(0x161)],'redactions':_0xb6ccd8[_0x22cecd(0x179)][_0x22cecd(0x182)],'redactionKinds':_0xb6ccd8[_0x22cecd(0x179)][_0x22cecd(0x183)]}}}};}};function buildResultMessage(_0x5cdd2e){const _0x5a2279=a81_0x5692d7,_0x1fca2a=[];return _0x5cdd2e[_0x5a2279(0x161)]&&_0x1fca2a[_0x5a2279(0x17f)](_0x5a2279(0x16f)+_0x5cdd2e[_0x5a2279(0x158)]+_0x5a2279(0x168)),_0x5cdd2e['redactionCount']>0x0&&_0x1fca2a[_0x5a2279(0x17f)]('redacted\x20'+_0x5cdd2e[_0x5a2279(0x182)]+'\x20secret(s):\x20'+_0x5cdd2e[_0x5a2279(0x183)][_0x5a2279(0x15a)](',\x20')),_0x1fca2a[_0x5a2279(0x157)]===0x0?_0x5a2279(0x17e):_0x5a2279(0x155)+_0x1fca2a[_0x5a2279(0x15a)](';\x20')+')';}async function prepareIssueReport(_0x288af3){const _0x3c2988=a81_0x5692d7,_0x211b05=_0x288af3[_0x3c2988(0x163)](_0x3c2988(0x154))[_0x3c2988(0x170)](),_0x42b100=_0x288af3[_0x3c2988(0x163)]('description'),_0xe0d192=_0x288af3[_0x3c2988(0x163)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0xe0d192){const _0x533caf=_0x42b100;if(!_0x533caf[_0x3c2988(0x170)]())throw CliErrors['validation'](_0x3c2988(0x171),'Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.');const _0x5679ef=sanitizeIssueDescription(_0x533caf);return{'title':_0x211b05,'description':_0x5679ef['description'],'descriptionSource':'inline','sanitize':_0x5679ef};}const _0x582521=resolve(process[_0x3c2988(0x16c)](),_0xe0d192),_0x1590e4=await readFile(_0x582521,_0x3c2988(0x174));if(!_0x1590e4[_0x3c2988(0x170)]())throw CliErrors[_0x3c2988(0x14e)]('Issue\x20description\x20file\x20is\x20empty:\x20'+_0x582521,'Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.');const _0x78e0ab=sanitizeIssueDescription(_0x1590e4);return{'title':_0x211b05,'description':_0x78e0ab[_0x3c2988(0x177)],'descriptionSource':'file','descriptionFilePath':_0x582521,'sanitize':_0x78e0ab};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a82_0x200782=a82_0x26a8;function a82_0x5cf7(){const _0x18776c=['toString','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','239090poYkeO','cookie','19ZnvfMS','12StyyQd','subarray','password','REDACTED:bearer-jwt','812430FUOzvx','2019822cRwhsa','replace','utf8','private-key','label','798hKsbuw','access-key','pattern','108TdaakD','6269176XFssZf','REDACTED:authorization','9MMyxRq','38868YyfyPi','103690DlivLQ','1004201xuVDOU','max','bearer-jwt','authorization','push','includes','byteLength','REDACTED:password'];a82_0x5cf7=function(){return _0x18776c;};return a82_0x5cf7();}function a82_0x26a8(_0x16128b,_0x364cff){_0x16128b=_0x16128b-0x1e4;const _0x5cf7fd=a82_0x5cf7();let _0x26a80c=_0x5cf7fd[_0x16128b];return _0x26a80c;}(function(_0x4b770e,_0x58c90d){const _0x1017ae=a82_0x26a8,_0x5786f4=_0x4b770e();while(!![]){try{const _0xf250fe=-parseInt(_0x1017ae(0x1f4))/0x1*(-parseInt(_0x1017ae(0x1e7))/0x2)+parseInt(_0x1017ae(0x1fa))/0x3+parseInt(_0x1017ae(0x1f5))/0x4*(-parseInt(_0x1017ae(0x1f2))/0x5)+parseInt(_0x1017ae(0x1e6))/0x6*(-parseInt(_0x1017ae(0x1ff))/0x7)+parseInt(_0x1017ae(0x203))/0x8*(parseInt(_0x1017ae(0x1e5))/0x9)+-parseInt(_0x1017ae(0x1f9))/0xa+-parseInt(_0x1017ae(0x1e8))/0xb*(parseInt(_0x1017ae(0x202))/0xc);if(_0xf250fe===_0x58c90d)break;else _0x5786f4['push'](_0x5786f4['shift']());}catch(_0x31d621){_0x5786f4['push'](_0x5786f4['shift']());}}}(a82_0x5cf7,0xa0710));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a82_0x200782(0x1f1),REDACTION_RULES=[{'kind':a82_0x200782(0x1f3),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':'REDACTED:cookie'},{'kind':a82_0x200782(0x1eb),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a82_0x200782(0x1e4)},{'kind':a82_0x200782(0x1fd),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':'REDACTED:private-key'},{'kind':a82_0x200782(0x200),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':'REDACTED:access-key'},{'kind':a82_0x200782(0x1f7),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a82_0x200782(0x1ef)},{'kind':a82_0x200782(0x1ea),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a82_0x200782(0x1f8)}];export function sanitizeIssueDescription(_0x3bf480){const _0x145a5c=a82_0x200782,_0x5bde3f=Buffer[_0x145a5c(0x1ee)](_0x3bf480,_0x145a5c(0x1fc)),_0x5ba250=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x11c6a8=_0x3bf480,_0x3f6d71=0x0;const _0x2696bb=[];if(!_0x5ba250)for(const _0x42dee9 of REDACTION_RULES){let _0x4c087f=0x0;_0x11c6a8=_0x11c6a8[_0x145a5c(0x1fb)](_0x42dee9[_0x145a5c(0x201)],(_0x3402dc,_0x1ccea5)=>{const _0x3d0884=_0x145a5c;_0x4c087f+=0x1;const _0x3ea8ba=typeof _0x1ccea5==='string'?_0x1ccea5:'';return _0x3ea8ba+'['+_0x42dee9[_0x3d0884(0x1fe)]+']';}),_0x4c087f>0x0&&(_0x3f6d71+=_0x4c087f,!_0x2696bb[_0x145a5c(0x1ed)](_0x42dee9['kind'])&&_0x2696bb[_0x145a5c(0x1ec)](_0x42dee9['kind']));}let _0x41505c=![];if(Buffer[_0x145a5c(0x1ee)](_0x11c6a8,_0x145a5c(0x1fc))>ISSUE_DESCRIPTION_MAX_BYTES){_0x41505c=!![];const _0x1f784d=Buffer[_0x145a5c(0x1ee)](TRUNCATION_NOTICE,_0x145a5c(0x1fc)),_0x399094=Math[_0x145a5c(0x1e9)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x1f784d);_0x11c6a8=sliceUtf8Bytes(_0x11c6a8,_0x399094)+TRUNCATION_NOTICE;}return{'description':_0x11c6a8,'originalBytes':_0x5bde3f,'truncated':_0x41505c,'redactionCount':_0x3f6d71,'redactionKinds':_0x2696bb};}function sliceUtf8Bytes(_0x29f3d8,_0xe36b6c){const _0x473c3e=a82_0x200782;if(_0xe36b6c<=0x0)return'';const _0x2f430c=Buffer['from'](_0x29f3d8,_0x473c3e(0x1fc));if(_0x2f430c['byteLength']<=_0xe36b6c)return _0x29f3d8;let _0x3c2245=_0xe36b6c;while(_0x3c2245>0x0){const _0x28e619=_0x2f430c[_0x3c2245];if(_0x28e619===undefined||(_0x28e619&0xc0)!==0x80)break;_0x3c2245-=0x1;}return _0x2f430c[_0x473c3e(0x1f6)](0x0,_0x3c2245)[_0x473c3e(0x1f0)](_0x473c3e(0x1fc));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a83_0x5ebb51=a83_0x159a;(function(_0x3c6c73,_0x22a48c){const _0x5645df=a83_0x159a,_0x2f92ff=_0x3c6c73();while(!![]){try{const _0x55338e=-parseInt(_0x5645df(0x12a))/0x1+-parseInt(_0x5645df(0x118))/0x2+parseInt(_0x5645df(0x123))/0x3+parseInt(_0x5645df(0x12f))/0x4+-parseInt(_0x5645df(0x129))/0x5+parseInt(_0x5645df(0x11e))/0x6+parseInt(_0x5645df(0x11c))/0x7;if(_0x55338e===_0x22a48c)break;else _0x2f92ff['push'](_0x2f92ff['shift']());}catch(_0x45f36a){_0x2f92ff['push'](_0x2f92ff['shift']());}}}(a83_0x4e2f,0x5b340));function a83_0x4e2f(){const _0x5bf960=['3049645xHBOGw','370077sszKVu','keys','View\x20command\x20history\x20logs','readLogs','forEach','1285592lfQiUT','timestamp','*\x20Logs\x20cleared','stringify','error','*\x20No\x20logs\x20found','*\x20Lovrabet\x20CLI\x20logs:\x0a','1125856dabSnM','level','logs','read','6216714KxDRRv','\x20\x20\x20Time:\x20','4011894SmEwck','details','log','length','warn','115059SwvvAe','message','toLocaleString','show','clear','\x20\x20\x20Details:\x20'];a83_0x4e2f=function(){return _0x5bf960;};return a83_0x4e2f();}import{logger}from'../../utils/logger.js';function a83_0x159a(_0x13b6c7,_0x3b5ea3){_0x13b6c7=_0x13b6c7-0x114;const _0x4e2f9b=a83_0x4e2f();let _0x159a02=_0x4e2f9b[_0x13b6c7];return _0x159a02;}function printLogs(_0xe9cc6a){const _0x5a8d3d=a83_0x159a;if(_0xe9cc6a[_0x5a8d3d(0x121)]===0x0){console[_0x5a8d3d(0x120)](_0x5a8d3d(0x116));return;}console[_0x5a8d3d(0x120)](_0x5a8d3d(0x117)),_0xe9cc6a[_0x5a8d3d(0x12e)]((_0x1e8c83,_0x40ec37)=>{const _0x12cebc=_0x5a8d3d,_0x40b5b5=new Date(_0x1e8c83[_0x12cebc(0x130)])[_0x12cebc(0x125)]('en-US'),_0x3e4f79=_0x1e8c83[_0x12cebc(0x119)]==='success'?'√':_0x1e8c83[_0x12cebc(0x119)]===_0x12cebc(0x115)?'×':_0x1e8c83[_0x12cebc(0x119)]===_0x12cebc(0x122)?'!':'i';console[_0x12cebc(0x120)](_0x40ec37+0x1+'.\x20'+_0x3e4f79+'\x20['+_0x1e8c83['command']+']\x20'+_0x1e8c83[_0x12cebc(0x124)]),console[_0x12cebc(0x120)](_0x12cebc(0x11d)+_0x40b5b5),_0x1e8c83['duration']&&console[_0x12cebc(0x120)]('\x20\x20\x20Duration:\x20'+_0x1e8c83['duration']+'ms'),_0x1e8c83['details']&&Object[_0x12cebc(0x12b)](_0x1e8c83[_0x12cebc(0x11f)])[_0x12cebc(0x121)]>0x0&&console[_0x12cebc(0x120)](_0x12cebc(0x128)+JSON[_0x12cebc(0x114)](_0x1e8c83[_0x12cebc(0x11f)],null,0x2)),console[_0x12cebc(0x120)]('');});}export const logsDefinitions=[{'service':a83_0x5ebb51(0x11a),'command':a83_0x5ebb51(0x126),'description':a83_0x5ebb51(0x12c),'risk':a83_0x5ebb51(0x11b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x4cf96d){const _0xd5d14e=a83_0x5ebb51;return printLogs(logger[_0xd5d14e(0x12d)]()),{'ok':!![]};}},{'service':a83_0x5ebb51(0x11a),'command':a83_0x5ebb51(0x127),'description':'Clear\x20command\x20history\x20logs','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x287901){const _0x139fda=a83_0x5ebb51;return logger['clearLogs'](),console[_0x139fda(0x120)](_0x139fda(0x131)),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x41cbbc,_0x4f31f9){const _0x468251=a84_0x4386,_0x3c4cfe=_0x41cbbc();while(!![]){try{const _0x41bd9e=parseInt(_0x468251(0x130))/0x1*(-parseInt(_0x468251(0x12c))/0x2)+-parseInt(_0x468251(0x12e))/0x3*(parseInt(_0x468251(0x12f))/0x4)+parseInt(_0x468251(0x12a))/0x5+-parseInt(_0x468251(0x127))/0x6*(-parseInt(_0x468251(0x12b))/0x7)+-parseInt(_0x468251(0x125))/0x8+parseInt(_0x468251(0x12d))/0x9*(-parseInt(_0x468251(0x126))/0xa)+parseInt(_0x468251(0x129))/0xb*(parseInt(_0x468251(0x128))/0xc);if(_0x41bd9e===_0x4f31f9)break;else _0x3c4cfe['push'](_0x3c4cfe['shift']());}catch(_0x9d39a6){_0x3c4cfe['push'](_0x3c4cfe['shift']());}}}(a84_0x2729,0x9e05c));import{menuSync}from'../../commands/menu/sync.js';function a84_0x4386(_0x304abe,_0x4412ca){_0x304abe=_0x304abe-0x125;const _0x27297d=a84_0x2729();let _0x43868c=_0x27297d[_0x304abe];return _0x43868c;}import{menuUpdate}from'../../commands/menu/update.js';function a84_0x2729(){const _0x9ea99e=['13747481EdHcmN','4070735FAAGjr','21sZAlvm','2XKPXTX','11519973YSncgI','523335FQwWdH','4aPSAmI','1172693GeSSVM','505320TNPPnm','10gEiIhm','47742svopHY','24ryPRoF'];a84_0x2729=function(){return _0x9ea99e;};return a84_0x2729();}export const menuDefinitions=[menuSync,menuUpdate];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x21f3f6,_0x453363){const _0x3711f2=a85_0x3526,_0x2ca478=_0x21f3f6();while(!![]){try{const _0x2feca5=-parseInt(_0x3711f2(0xef))/0x1+parseInt(_0x3711f2(0xf0))/0x2*(parseInt(_0x3711f2(0xf1))/0x3)+-parseInt(_0x3711f2(0xfa))/0x4+parseInt(_0x3711f2(0xf2))/0x5*(parseInt(_0x3711f2(0xeb))/0x6)+parseInt(_0x3711f2(0x101))/0x7+parseInt(_0x3711f2(0x102))/0x8+-parseInt(_0x3711f2(0xf9))/0x9*(parseInt(_0x3711f2(0xfe))/0xa);if(_0x2feca5===_0x453363)break;else _0x2ca478['push'](_0x2ca478['shift']());}catch(_0x5b3243){_0x2ca478['push'](_0x2ca478['shift']());}}}(a85_0x20cd,0x51020));function a85_0x3526(_0x502d78,_0x18e99e){_0x502d78=_0x502d78-0xe7;const _0x20cdae=a85_0x20cd();let _0x3526c2=_0x20cdae[_0x502d78];return _0x3526c2;}function a85_0x20cd(){const _0x517a48=['\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','2786966vzCxPB','3393136aUOXJI','showOnline','(unchanged)','\x20\x20\x20\x20CSS:\x20','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','144954dNpcDI','\x20\x20\x20\x20JS:\x20\x20','join','local','4269sjMBJR','2816fpbkKf','1038xLxIZd','100WwQnnY','repeat','label','Local','online','Platform','map','37521uGUjaF','1540472xDgtDA','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','test','length','2570kczfgu','push'];a85_0x20cd=function(){return _0x517a48;};return a85_0x20cd();}function strWidth(_0x13b40f){const _0x3d4594=a85_0x3526;let _0x53b84f=0x0;for(const _0x68ce35 of _0x13b40f){_0x53b84f+=/[\u4e00-\u9fa5]/[_0x3d4594(0xfc)](_0x68ce35)?0x2:0x1;}return _0x53b84f;}function padRight(_0x1c1a97,_0x2d442a){const _0x2fcaef=a85_0x3526,_0xcefdc2=strWidth(_0x1c1a97);return _0x1c1a97+'\x20'[_0x2fcaef(0xf3)](Math['max'](0x0,_0x2d442a-_0xcefdc2));}export function renderCompareTable(_0xbc1cde,_0xbe3dd0={}){const _0x44b96a=a85_0x3526;if(_0xbc1cde['length']===0x0)return'';const _0x1e4c90=_0xbe3dd0[_0x44b96a(0xe7)]??!![],_0x3368f6=Math['max'](0x1e,..._0xbc1cde[_0x44b96a(0xf8)](_0x4088eb=>strWidth(_0x4088eb[_0x44b96a(0xf4)]))),_0x4de2e0=0x4,_0xf699bc=[],_0x4b460b='\x20\x20'+padRight('Menu\x20Name',_0x3368f6),_0x2d85ce=padRight(_0x44b96a(0xf5),_0x4de2e0),_0x497525=_0x1e4c90?'\x20\x20'+padRight(_0x44b96a(0xf7),_0x4de2e0):'';_0xf699bc['push'](_0x4b460b+'\x20\x20'+_0x2d85ce+(_0x1e4c90?_0x497525:'')),_0xf699bc[_0x44b96a(0xff)]('\x20\x20'+'─'[_0x44b96a(0xf3)](_0x3368f6)+'\x20\x20'+'─'[_0x44b96a(0xf3)](_0x4de2e0)+(_0x1e4c90?'\x20\x20'+'─'['repeat'](_0x4de2e0):''));for(const _0x5c95a1 of _0xbc1cde){const _0x4755a0=padRight(_0x5c95a1[_0x44b96a(0xf4)],_0x3368f6),_0x54fc92=_0x5c95a1[_0x44b96a(0xee)]?'✓':'✗',_0x5886ec=padRight(_0x54fc92,_0x4de2e0);let _0x2887d8='\x20\x20'+_0x4755a0+'\x20\x20'+_0x5886ec;if(_0x1e4c90){const _0x4ccdce=_0x5c95a1[_0x44b96a(0xf6)]?'✓':'✗';_0x2887d8+='\x20\x20'+padRight(_0x4ccdce,_0x4de2e0);}_0xf699bc[_0x44b96a(0xff)](_0x2887d8);}return _0xf699bc[_0x44b96a(0xed)]('\x0a');}export function renderSyncSummary(_0x49ce87,_0x571ce1){const _0x4fd9b2=a85_0x3526;if(_0x49ce87[_0x4fd9b2(0xfd)]===0x0)return _0x571ce1?_0x4fd9b2(0xea):'\x20\x20No\x20pages\x20to\x20sync.';const _0x2ddbe7=['\x20\x20'+_0x49ce87[_0x4fd9b2(0xfd)]+_0x4fd9b2(0x100)];for(const _0x4b1deb of _0x49ce87){_0x2ddbe7[_0x4fd9b2(0xff)]('\x20\x20\x20\x20•\x20'+_0x4b1deb[_0x4fd9b2(0xf4)]+'\x20('+_0x4b1deb['path']+')');}return _0x2ddbe7[_0x4fd9b2(0xed)]('\x0a');}export function renderUpdateSummary(_0x3038c2,_0x2f8990){const _0x21a057=a85_0x3526;if(_0x3038c2[_0x21a057(0xfd)]===0x0)return'\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.';const _0x3b9c7b=['\x20\x20'+_0x3038c2['length']+_0x21a057(0xfb),_0x21a057(0xec)+(_0x2f8990[0x0]??_0x21a057(0xe8)),_0x21a057(0xe9)+(_0x2f8990[0x1]??_0x21a057(0xe8)),'','\x20\x20Affected\x20menus:\x20'+_0x3038c2[_0x21a057(0xed)](',\x20')];return _0x3b9c7b[_0x21a057(0xed)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x48dba8,_0x41e826){var _0x451e01=a86_0x1b53,_0x5845a5=_0x48dba8();while(!![]){try{var _0x15e959=parseInt(_0x451e01(0x10f))/0x1*(parseInt(_0x451e01(0x118))/0x2)+parseInt(_0x451e01(0x119))/0x3*(parseInt(_0x451e01(0x116))/0x4)+-parseInt(_0x451e01(0x112))/0x5*(-parseInt(_0x451e01(0x114))/0x6)+parseInt(_0x451e01(0x111))/0x7+parseInt(_0x451e01(0x110))/0x8+parseInt(_0x451e01(0x113))/0x9*(-parseInt(_0x451e01(0x10e))/0xa)+parseInt(_0x451e01(0x115))/0xb*(-parseInt(_0x451e01(0x117))/0xc);if(_0x15e959===_0x41e826)break;else _0x5845a5['push'](_0x5845a5['shift']());}catch(_0x15d3a4){_0x5845a5['push'](_0x5845a5['shift']());}}}(a86_0x128a,0x1b8a6));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_0x1b53(_0x584c66,_0x1ae656){_0x584c66=_0x584c66-0x10e;var _0x128a16=a86_0x128a();var _0x1b5326=_0x128a16[_0x584c66];return _0x1b5326;}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_0x128a(){var _0x5705e4=['1146971RAeCgn','85FMFYfm','25452ocgLNJ','9222zrFxYV','55lldqrq','8iGimOr','943860BoOlAk','78278TbQDFg','257673ZIKTGs','460XrfJXf','5wvScog','629680hVCrWv'];a86_0x128a=function(){return _0x5705e4;};return a86_0x128a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3d9157,_0x512b61){const _0x361c66=a87_0x28e0,_0x4e1493=_0x3d9157();while(!![]){try{const _0x586726=parseInt(_0x361c66(0x93))/0x1+parseInt(_0x361c66(0xb0))/0x2*(-parseInt(_0x361c66(0x9b))/0x3)+-parseInt(_0x361c66(0xaf))/0x4*(-parseInt(_0x361c66(0x94))/0x5)+parseInt(_0x361c66(0xaa))/0x6+parseInt(_0x361c66(0xa3))/0x7+parseInt(_0x361c66(0x8c))/0x8+-parseInt(_0x361c66(0xa1))/0x9*(parseInt(_0x361c66(0xa4))/0xa);if(_0x586726===_0x512b61)break;else _0x4e1493['push'](_0x4e1493['shift']());}catch(_0x35c902){_0x4e1493['push'](_0x4e1493['shift']());}}}(a87_0x2f1f,0xd8a8b));import a87_0x4bf97e from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a87_0x271a01 from'ora';function a87_0x28e0(_0x4ae0cc,_0x239f8a){_0x4ae0cc=_0x4ae0cc-0x8c;const _0x2f1f7b=a87_0x2f1f();let _0x28e04b=_0x2f1f7b[_0x4ae0cc];return _0x28e04b;}import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x35f25c){const _0x406c70=a87_0x28e0;return _0x35f25c[_0x406c70(0x8d)](_0x3c19a6=>{const _0x47274a=_0x406c70;if(_0x3c19a6?.['name']===_0x47274a(0xa7))throw CliErrors[_0x47274a(0x95)](_0x47274a(0xa8));throw _0x3c19a6;});}export function startSpinner(_0x438a00){return a87_0x271a01({'text':_0x438a00,'color':'cyan'})['start']();}export function stopSpinner(_0x5bafa8,_0x34f518,_0x49eb5b){const _0x20a9f4=a87_0x28e0;_0x49eb5b?_0x5bafa8['succeed'](_0x34f518):_0x5bafa8[_0x20a9f4(0xa2)](_0x34f518);}export async function askConfirm(_0x1fed0f){return onCancel(confirm({'message':_0x1fed0f,'theme':{'prefix':''}}));}export async function askJsUrl(_0xab8d08){const _0x2ef920=a87_0x28e0;while(!![]){const _0x13c543=await onCancel(input({'message':'\x20\x20JS\x20URL:','default':_0xab8d08,'theme':{'prefix':''}}));if(_0x13c543[_0x2ef920(0xa0)]()==='')throw CliErrors[_0x2ef920(0x95)](_0x2ef920(0xa8));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x2ef920(0xae)](_0x13c543[_0x2ef920(0xa0)]())){console[_0x2ef920(0x9d)](a87_0x4bf97e[_0x2ef920(0x9e)](_0x2ef920(0xb3)));continue;}const _0xabeeb1=startSpinner(_0x2ef920(0x99));try{const _0x4e2bb5=await isUrlReachable(_0x13c543[_0x2ef920(0xa0)]());stopSpinner(_0xabeeb1,'JS\x20URL\x20checked',_0x4e2bb5);if(!_0x4e2bb5){console[_0x2ef920(0x9d)](a87_0x4bf97e[_0x2ef920(0x9e)]('\x20\x20✗\x20JS\x20URL\x20is\x20unreachable'));continue;}return _0x13c543[_0x2ef920(0xa0)]();}catch(_0x26275b){stopSpinner(_0xabeeb1,_0x2ef920(0xad),![]);throw _0x26275b;}}}export async function askCssUrl(_0x332d74){const _0x12ec9d=a87_0x28e0;while(!![]){const _0xc4e934=await onCancel(input({'message':'\x20\x20CSS\x20URL:','default':_0x332d74,'theme':{'prefix':''}}));if(_0xc4e934[_0x12ec9d(0xa0)]()==='')throw CliErrors[_0x12ec9d(0x95)]('Cancelled.');if(!/^https:\/\/.+\.css(\?.*)?$/[_0x12ec9d(0xae)](_0xc4e934[_0x12ec9d(0xa0)]())){console['error'](a87_0x4bf97e[_0x12ec9d(0x9e)]('\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'));continue;}const _0x11ce26=startSpinner(_0x12ec9d(0x9f));try{const _0xcbe29e=await isUrlReachable(_0xc4e934[_0x12ec9d(0xa0)]());stopSpinner(_0x11ce26,_0x12ec9d(0x90),_0xcbe29e);if(!_0xcbe29e){console['error'](a87_0x4bf97e[_0x12ec9d(0x9e)](_0x12ec9d(0xab)));continue;}return _0xc4e934[_0x12ec9d(0xa0)]();}catch(_0x1e5130){stopSpinner(_0x11ce26,_0x12ec9d(0x9a),![]);throw _0x1e5130;}}}export async function selectPages(_0x5b04b4,_0x7577a9,_0x55eb4c){const _0x3acd57=a87_0x28e0,_0x567c8c=_0x5b04b4[_0x3acd57(0x96)](_0xf81e25=>({'name':_0xf81e25['label']+'\x20\x20'+(_0x7577a9[_0x3acd57(0x91)](_0xf81e25[_0x3acd57(0x9c)])?a87_0x4bf97e[_0x3acd57(0x92)](_0x3acd57(0xb2)):a87_0x4bf97e[_0x3acd57(0xb1)](_0x3acd57(0xa6))),'value':_0xf81e25[_0x3acd57(0xa5)],'checked':_0x55eb4c?_0x55eb4c['includes'](_0xf81e25[_0x3acd57(0xa5)]):!_0x7577a9[_0x3acd57(0x91)](_0xf81e25[_0x3acd57(0x9c)])}));if(_0x567c8c['length']===0x0)throw new Error(_0x3acd57(0xb5));const _0x4dfee8=await onCancel(checkbox({'message':_0x3acd57(0xac),'choices':_0x567c8c,'loop':![],'theme':{'prefix':''}}));if(_0x4dfee8[_0x3acd57(0xa9)]===0x0)throw new Error('No\x20menus\x20selected.');return _0x5b04b4[_0x3acd57(0x8e)](_0x28becc=>_0x4dfee8[_0x3acd57(0xb4)](_0x28becc[_0x3acd57(0xa5)]));}export function isInteractive(){const _0x43c0e2=a87_0x28e0;return process[_0x43c0e2(0x8f)][_0x43c0e2(0x97)]===!![];}function a87_0x2f1f(){const _0x190001=['\x20\x20Checking\x20CSS\x20URL\x20reachability...','trim','6645933lVZlGr','fail','2709140rqxbfn','10WaSlLv','label','[new]','ExitPromptError','Cancelled.','length','250698XIdtgA','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','JS\x20URL\x20check\x20failed','test','22548SGhCoY','130tRzgGS','green','[already\x20on\x20platform]','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','includes','No\x20local\x20pages\x20found.','6938120NlLSti','catch','filter','stdin','CSS\x20URL\x20checked','has','gray','979355RkCBMb','110cJfkLK','cancelled','map','isTTY','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','\x20\x20Checking\x20JS\x20URL\x20reachability...','CSS\x20URL\x20check\x20failed','35703ablstG','path','error','red'];a87_0x2f1f=function(){return _0x190001;};return a87_0x2f1f();}export function requireInteractive(){const _0x2367e5=a87_0x28e0;if(!isInteractive())throw new Error(_0x2367e5(0x98)+'Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a88_0x1600fb=a88_0x4001;(function(_0x166a8b,_0x19af03){const _0x2f1391=a88_0x4001,_0x153e68=_0x166a8b();while(!![]){try{const _0x1953e9=-parseInt(_0x2f1391(0xde))/0x1*(parseInt(_0x2f1391(0xd8))/0x2)+-parseInt(_0x2f1391(0xe3))/0x3+parseInt(_0x2f1391(0xe0))/0x4*(-parseInt(_0x2f1391(0xd4))/0x5)+-parseInt(_0x2f1391(0xe6))/0x6+parseInt(_0x2f1391(0xd6))/0x7+parseInt(_0x2f1391(0xd9))/0x8*(-parseInt(_0x2f1391(0xd1))/0x9)+-parseInt(_0x2f1391(0xcf))/0xa*(-parseInt(_0x2f1391(0xe2))/0xb);if(_0x1953e9===_0x19af03)break;else _0x153e68['push'](_0x153e68['shift']());}catch(_0x26c05f){_0x153e68['push'](_0x153e68['shift']());}}}(a88_0x2a83,0x7fe18));import{readdirSync,statSync,readFileSync}from'fs';function a88_0x4001(_0x5eae9a,_0x59a233){_0x5eae9a=_0x5eae9a-0xcd;const _0x2a8312=a88_0x2a83();let _0x400187=_0x2a8312[_0x5eae9a];return _0x400187;}import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a88_0x1600fb(0xdb)](),a88_0x1600fb(0xd7));export function extractTitleFromComment(_0x14f1b1){const _0x3e7639=a88_0x1600fb;try{const _0x572a29=readFileSync(_0x14f1b1,_0x3e7639(0xda)),_0x414015=_0x572a29[_0x3e7639(0xdf)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x414015&&_0x414015[0x1]){const _0x51cdb0=_0x414015[0x1],_0x3708f1=_0x51cdb0['match'](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x3708f1&&_0x3708f1[0x1])return _0x3708f1[0x1]['trim']();}let _0xff429f=null;const _0x3e10e7=_0x572a29['match'](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x3e10e7&&_0x3e10e7[0x1]&&(_0xff429f=_0x3e10e7[0x1]);if(!_0xff429f){const _0x41f4b3=_0x572a29[_0x3e7639(0xdf)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x41f4b3&&_0x41f4b3[0x1]&&(_0xff429f=_0x41f4b3[0x1]);}if(_0xff429f){const _0x2c1a3c=new RegExp('\x5cb'+_0xff429f+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0x219245=_0x572a29[_0x3e7639(0xdf)](_0x2c1a3c);if(_0x219245&&_0x219245[0x1])return _0x219245[0x1];return _0xff429f;}return null;}catch(_0x1c0899){return null;}}export function getLocalPages(_0x56b551=pagesDir,_0x14a23e=pagesDir){const _0x13871c=a88_0x1600fb;let _0x12fc83=[];const _0x27df9c=readdirSync(_0x56b551);return _0x27df9c[_0x13871c(0xdc)](_0x2aa07c=>{const _0x2b2171=_0x13871c,_0x5ee2bf=join(_0x56b551,_0x2aa07c),_0x7375fa=statSync(_0x5ee2bf);if(_0x7375fa&&_0x7375fa[_0x2b2171(0xce)]())_0x12fc83=_0x12fc83['concat'](getLocalPages(_0x5ee2bf,_0x14a23e));else{if(_0x2aa07c['endsWith'](_0x2b2171(0xe4))){let _0x29b309=relative(_0x14a23e,_0x5ee2bf);_0x29b309[_0x2b2171(0xd5)](_0x2b2171(0xd0))?_0x29b309=_0x29b309[_0x2b2171(0xd2)](/index\.tsx$/,''):_0x29b309=_0x29b309[_0x2b2171(0xd2)](/\.tsx$/,'');_0x29b309[_0x2b2171(0xd5)](sep)&&(_0x29b309=_0x29b309[_0x2b2171(0xcd)](0x0,-0x1));const _0x2a8dcc=_0x29b309[_0x2b2171(0xdd)](sep)[_0x2b2171(0xe5)]('/'),_0x501449=extractTitleFromComment(_0x5ee2bf),_0xb67ac=_0x501449||_0x2a8dcc;_0x12fc83['push']({'path':_0x2a8dcc[_0x2b2171(0xe1)]('$',':'),'label':_0xb67ac});}}}),_0x12fc83['filter'](_0x4cae3c=>_0x4cae3c[_0x13871c(0xd3)]!=='');}function a88_0x2a83(){const _0x2d8fd9=['4AfEPZe','match','3340kJerQv','replaceAll','22zaEWgv','2620317TuAnNZ','.tsx','join','4495512gNYDmp','slice','isDirectory','11898140LmHged','index.tsx','4646619gESdRd','replace','path','1425bAPYYi','endsWith','6455659shROqP','src/pages','200554mScxCj','8ecxMFu','utf-8','cwd','forEach','split'];a88_0x2a83=function(){return _0x2d8fd9;};return a88_0x2a83();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3d7a12,_0x57462c){const _0x47f68e=a89_0x1705,_0xc5097c=_0x3d7a12();while(!![]){try{const _0x337a8c=-parseInt(_0x47f68e(0x1db))/0x1*(parseInt(_0x47f68e(0x1f1))/0x2)+parseInt(_0x47f68e(0x1e9))/0x3*(-parseInt(_0x47f68e(0x1ea))/0x4)+parseInt(_0x47f68e(0x1dd))/0x5+parseInt(_0x47f68e(0x1eb))/0x6*(-parseInt(_0x47f68e(0x1f2))/0x7)+-parseInt(_0x47f68e(0x1de))/0x8+-parseInt(_0x47f68e(0x1ee))/0x9+parseInt(_0x47f68e(0x1e5))/0xa;if(_0x337a8c===_0x57462c)break;else _0xc5097c['push'](_0xc5097c['shift']());}catch(_0x393a65){_0xc5097c['push'](_0xc5097c['shift']());}}}(a89_0x14b5,0x59725));function a89_0x1705(_0x11357b,_0x2bb445){_0x11357b=_0x11357b-0x1da;const _0x14b5ab=a89_0x14b5();let _0x170574=_0x14b5ab[_0x11357b];return _0x170574;}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(_0x4054b1){const _0x5b5254=a89_0x1705,_0x5e26e8=[];return!isValidJsHttpsUrl(_0x4054b1)&&_0x5e26e8['push'](_0x5b5254(0x1e2)),{'ok':_0x5e26e8[_0x5b5254(0x1f5)]===0x0,'errors':_0x5e26e8};}export function validateCssUrl(_0x5b61d4){const _0xcfb5f5=a89_0x1705,_0x3c8be7=[];return!isValidCssHttpsUrl(_0x5b61d4)&&_0x3c8be7[_0xcfb5f5(0x1f3)](_0xcfb5f5(0x1da)),{'ok':_0x3c8be7[_0xcfb5f5(0x1f5)]===0x0,'errors':_0x3c8be7};}export async function validateJsUrlReachable(_0x150fa4){const _0x276443=a89_0x1705,_0x195bf7=validateJsUrl(_0x150fa4);if(!_0x195bf7['ok'])return _0x195bf7;const _0x22a08e=await isUrlReachable(_0x150fa4);if(!_0x22a08e)_0x195bf7[_0x276443(0x1e6)][_0x276443(0x1f3)](_0x276443(0x1f0));return{'ok':_0x195bf7['errors'][_0x276443(0x1f5)]===0x0,'errors':_0x195bf7[_0x276443(0x1e6)]};}export async function validateCssUrlReachable(_0x669588){const _0xe5e7df=a89_0x1705,_0x288605=validateCssUrl(_0x669588);if(!_0x288605['ok'])return _0x288605;const _0x26fb80=await isUrlReachable(_0x669588);if(!_0x26fb80)_0x288605[_0xe5e7df(0x1e6)][_0xe5e7df(0x1f3)]('CSS\x20URL\x20is\x20unreachable');return{'ok':_0x288605[_0xe5e7df(0x1e6)][_0xe5e7df(0x1f5)]===0x0,'errors':_0x288605[_0xe5e7df(0x1e6)]};}export function buildCompareRows(_0x2762c9,_0x4a7543){const _0x568272=a89_0x1705;return _0x2762c9[_0x568272(0x1df)](_0x217437=>({'label':_0x217437[_0x568272(0x1ed)],'path':_0x217437['path'],'local':!![],'online':_0x4a7543[_0x568272(0x1e0)](_0x217437[_0x568272(0x1e3)])}));}export function filterNewPages(_0x4849b0,_0x5fe3af,_0x257a19){const _0x4cf34a=a89_0x1705;if(_0x257a19&&_0x257a19[_0x4cf34a(0x1f5)]>0x0){const _0x1d3eb1=new Set(_0x257a19[_0x4cf34a(0x1df)](_0x1f80d6=>_0x1f80d6['trim']())),_0x4cf417=_0x4849b0[_0x4cf34a(0x1f4)](_0x2abdcb=>_0x1d3eb1[_0x4cf34a(0x1e0)](_0x2abdcb[_0x4cf34a(0x1ed)]));if(_0x4cf417['length']===0x0)throw new Error(_0x4cf34a(0x1ef)+[..._0x1d3eb1][_0x4cf34a(0x1f6)](',\x20'));return _0x4cf417;}return _0x4849b0[_0x4cf34a(0x1f4)](_0x328581=>!_0x5fe3af[_0x4cf34a(0x1e0)](_0x328581[_0x4cf34a(0x1e3)]));}export function filterPagesByLabels(_0x1c49f2,_0x34f033){const _0x225394=a89_0x1705,_0x46e557=[],_0x5d94a1=[];for(const _0x173d80 of _0x34f033){const _0x2346bc=_0x173d80[_0x225394(0x1e4)](),_0x27aca5=_0x1c49f2[_0x225394(0x1e8)](_0x40889a=>_0x40889a['label']===_0x2346bc);if(_0x27aca5)_0x46e557['push'](_0x27aca5);else _0x5d94a1[_0x225394(0x1f3)](_0x173d80);}return{'matched':_0x46e557,'unmatched':_0x5d94a1};}export async function doCreateMenus(_0x17ec79,_0x586302,_0x427fe1,_0x1e7b1e){const _0x48392d=a89_0x1705,_0x1e3122=await createMenus(_0x17ec79,_0x586302,_0x427fe1,_0x1e7b1e);return{'created':_0x1e3122[_0x48392d(0x1f5)],'failed':0x0,'labels':_0x427fe1['map'](_0x3d66ac=>_0x3d66ac[_0x48392d(0x1ed)]),'menus':_0x1e3122};}export function filterMenusWithResources(_0x1a5c12){const _0x2e183=a89_0x1705;return _0x1a5c12[_0x2e183(0x1f4)](_0x2d1adf=>_0x2d1adf[_0x2e183(0x1e7)]['length']>0x0);}function a89_0x14b5(){const _0x4cc314=['status','label','212220ckgYeF','No\x20local\x20pages\x20matched\x20labels:\x20','JS\x20URL\x20is\x20unreachable','102WucBHt','26201jLXPti','push','filter','length','join','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','10399MQuuTE','extend','483945YtepZZ','5243480hmsgkP','map','has','fulfilled','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','path','trim','22178460tPdNdF','errors','resources','find','1374519RnaRHb','4LjJsrf','450IzjMXO'];a89_0x14b5=function(){return _0x4cc314;};return a89_0x14b5();}export async function doUpdateCdnUrls(_0x1777c7,_0x209f89,_0x3e7df3,_0x1cc764){const _0xaf5d52=a89_0x1705,_0x4b5095=_0x3e7df3['filter'](_0x443dca=>_0x443dca[_0xaf5d52(0x1e7)]['length']>0x0),_0x162aee=await Promise['allSettled'](_0x4b5095[_0xaf5d52(0x1df)](_0x20aa82=>updateMenuCdnUrl(_0x1777c7,_0x209f89,{'id':_0x20aa82['id'],'label':_0x20aa82['label'],'path':_0x20aa82['path'],'resources':_0x1cc764,'extend':_0x20aa82[_0xaf5d52(0x1dc)]??null}))),_0x1f7bc4=_0x162aee['filter'](_0x4cf991=>_0x4cf991[_0xaf5d52(0x1ec)]===_0xaf5d52(0x1e1))[_0xaf5d52(0x1df)](_0x52f99a=>_0x52f99a['value']),_0x12efb0=_0x162aee[_0xaf5d52(0x1f4)](_0x6143ae=>_0x6143ae[_0xaf5d52(0x1ec)]==='rejected')[_0xaf5d52(0x1f5)];return{'updated':_0x1f7bc4[_0xaf5d52(0x1f5)],'failed':_0x12efb0,'menus':_0x1f7bc4};}export async function fetchMenuData(_0x3e750b,_0x2dcfdf){const _0x32e805=a89_0x1705,_0x5c5aa1=getLocalPages(),_0x11c07a=await getOnlineMenuList(_0x3e750b,_0x2dcfdf),_0x959948=new Set(_0x11c07a[_0x32e805(0x1df)](_0x4a57f2=>_0x4a57f2['path']));return{'localPages':_0x5c5aa1,'onlineMenuList':_0x11c07a,'onlinePaths':_0x959948};}export async function fetchOnlineMenuList(_0x16567e,_0x336882){return getOnlineMenuList(_0x16567e,_0x336882);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a90_0x5cc4(){const _0x569a22=['label','import','isArray','/smartapi/menu/find?appCode=','1614724MKVcbf','60275104Yrpjmt','procode','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','info','update-menu-cdn-url','create-menu','stringify','children','/smartapi/menu/create','resources','Creating\x20menu:\x20','map','flat','length','8654215myrKNV','Update\x20menu\x20assets\x20\x22','3286656LpKmGK','Updating\x20menu\x20asset\x20links:\x20','extend','Fetching\x20online\x20menu\x20list...\x20(appCode:\x20','string','1248632NKEVsU','Menu\x20created\x20successfully:\x20','\x20online\x20menus\x20successfully','parse','get-online-menu-list','Menu\x20assets\x20synced:\x20','1116160pSBfqN','Fetched\x20','Batch\x20menu\x20creation\x20completed,\x20total\x20','all','Create\x20menu\x20\x22','push','POST','6xDEGfC','path','6864188Xmuaip'];a90_0x5cc4=function(){return _0x569a22;};return a90_0x5cc4();}(function(_0x3a7fed,_0x33ad41){const _0x3332ef=a90_0x2eb4,_0x3d2d6c=_0x3a7fed();while(!![]){try{const _0x40c9e5=-parseInt(_0x3332ef(0xb2))/0x1+-parseInt(_0x3332ef(0xc0))/0x2+-parseInt(_0x3332ef(0xd1))/0x3+-parseInt(_0x3332ef(0xbb))/0x4+parseInt(_0x3332ef(0xcf))/0x5*(-parseInt(_0x3332ef(0xb9))/0x6)+-parseInt(_0x3332ef(0xac))/0x7+parseInt(_0x3332ef(0xc1))/0x8;if(_0x40c9e5===_0x33ad41)break;else _0x3d2d6c['push'](_0x3d2d6c['shift']());}catch(_0x56a6d5){_0x3d2d6c['push'](_0x3d2d6c['shift']());}}}(a90_0x5cc4,0xd94c0));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(_0x311a5a,_0x4e7a7a){const _0x37f642=a90_0x2eb4,_0xd6d96=getEnv();logger['info'](_0x37f642(0xb0),isProduction(_0xd6d96)?_0x37f642(0xd4)+_0x311a5a+')':_0x37f642(0xc3)+_0x311a5a+')');const _0x40b45a=await platformFetch(getApiDomain()+_0x37f642(0xbf)+_0x311a5a,{'cookie':_0x4e7a7a,'label':'Fetch\x20menu\x20list'});if(!_0x40b45a)return logger[_0x37f642(0xc4)](_0x37f642(0xb0),'Server\x20returned\x20empty\x20menu\x20list'),[];return logger[_0x37f642(0xc4)](_0x37f642(0xb0),_0x37f642(0xb3)+_0x40b45a[_0x37f642(0xce)]+_0x37f642(0xae)),_0x40b45a['map'](flattenMenuItem)[_0x37f642(0xcd)]();}function flattenMenuItem(_0x595dfc){const _0x4c8f57=a90_0x2eb4;let _0x81463c=[];try{const _0x2c28fa=_0x595dfc[_0x4c8f57(0xd3)]?.[_0x4c8f57(0xca)];if(typeof _0x2c28fa===_0x4c8f57(0xab)){const _0x55d9fb=JSON[_0x4c8f57(0xaf)](_0x2c28fa);if(Array[_0x4c8f57(0xbe)](_0x55d9fb))_0x81463c=_0x55d9fb['map'](String);}else Array['isArray'](_0x2c28fa)&&(_0x81463c=_0x2c28fa['map'](String));}catch{}const _0x54163c=[{'id':_0x595dfc['id'],'path':_0x595dfc[_0x4c8f57(0xba)],'label':_0x595dfc['label'],'resources':_0x81463c,'extend':_0x595dfc[_0x4c8f57(0xd3)]??null}];if(_0x595dfc[_0x4c8f57(0xc8)]&&_0x595dfc[_0x4c8f57(0xc8)][_0x4c8f57(0xce)]>0x0)for(const _0xe54691 of _0x595dfc[_0x4c8f57(0xc8)]){_0x54163c[_0x4c8f57(0xb7)](...flattenMenuItem(_0xe54691));}return _0x54163c;}export async function createMenu(_0x37ff49,_0x4336f1,_0x3b032c){const _0x26ea4b=a90_0x2eb4;logger[_0x26ea4b(0xc4)](_0x26ea4b(0xc6),_0x26ea4b(0xcb)+_0x3b032c[_0x26ea4b(0xbc)]+'\x20('+_0x3b032c[_0x26ea4b(0xba)]+')');const _0x5f189c={'appCode':_0x37ff49,'type':_0x26ea4b(0xc2),'sort':0x0,'extend':{'loadScriptMode':_0x26ea4b(0xbd),'resources':_0x3b032c[_0x26ea4b(0xca)]?JSON['stringify'](_0x3b032c[_0x26ea4b(0xca)]):undefined},..._0x3b032c},_0x49ec89=await platformFetch(getApiDomain()+'/smartapi/menu/create',{'method':_0x26ea4b(0xb8),'body':_0x5f189c,'cookie':_0x4336f1,'label':'Create\x20menu\x20\x22'+_0x3b032c[_0x26ea4b(0xbc)]+'\x22'});return logger[_0x26ea4b(0xc4)](_0x26ea4b(0xc6),_0x26ea4b(0xad)+_0x3b032c['label']),_0x49ec89;}async function createSingleMenu(_0x5e0143,_0x3e10cf,_0x47a69c,_0x33d82d){const _0x3246f9=a90_0x2eb4,_0x2bffb8={'appCode':_0x5e0143,'type':_0x3246f9(0xc2),'sort':0x0,'extend':{'loadScriptMode':_0x3246f9(0xbd),'resources':_0x33d82d?JSON['stringify'](_0x33d82d):undefined},'label':_0x47a69c[_0x3246f9(0xbc)],'path':_0x47a69c[_0x3246f9(0xba)]},_0x25607c=await platformFetch(getApiDomain()+_0x3246f9(0xc9),{'method':_0x3246f9(0xb8),'body':_0x2bffb8,'cookie':_0x3e10cf,'label':_0x3246f9(0xb6)+_0x47a69c[_0x3246f9(0xbc)]+'\x22'});return logger[_0x3246f9(0xc4)](_0x3246f9(0xc6),_0x3246f9(0xad)+_0x47a69c[_0x3246f9(0xbc)]),_0x25607c;}export async function createMenus(_0x15d91b,_0x4c4200,_0x1f3437,_0x501fbe){const _0x19b523=a90_0x2eb4;logger[_0x19b523(0xc4)]('create-menus','Start\x20batch\x20menu\x20creation,\x20total\x20'+_0x1f3437[_0x19b523(0xce)]);const _0x3dc2c2=await Promise[_0x19b523(0xb5)](_0x1f3437[_0x19b523(0xcc)](_0x57661e=>createSingleMenu(_0x15d91b,_0x4c4200,_0x57661e,_0x501fbe)));return logger[_0x19b523(0xc4)]('create-menus',_0x19b523(0xb4)+_0x1f3437[_0x19b523(0xce)]),_0x3dc2c2;}function a90_0x2eb4(_0x406ed7,_0x44b44b){_0x406ed7=_0x406ed7-0xab;const _0x5cc42=a90_0x5cc4();let _0x2eb4bf=_0x5cc42[_0x406ed7];return _0x2eb4bf;}export async function updateMenuCdnUrl(_0x477ded,_0x3181ab,_0x47361c){const _0x5a29b2=a90_0x2eb4;logger[_0x5a29b2(0xc4)](_0x5a29b2(0xc5),_0x5a29b2(0xd2)+_0x47361c[_0x5a29b2(0xbc)]+'\x20('+_0x47361c[_0x5a29b2(0xba)]+')');const _0xb74f41={'id':_0x47361c['id'],'appCode':_0x477ded,'extend':{..._0x47361c[_0x5a29b2(0xd3)]??{},'loadScriptMode':_0x5a29b2(0xbd),'resources':_0x47361c['resources']?JSON[_0x5a29b2(0xc7)](_0x47361c['resources']):undefined}},_0x1b58fc=await platformFetch(getApiDomain()+'/smartapi/menu/update',{'method':'POST','body':_0xb74f41,'cookie':_0x3181ab,'label':_0x5a29b2(0xd0)+_0x47361c[_0x5a29b2(0xbc)]+'\x22'});return logger[_0x5a29b2(0xc4)](_0x5a29b2(0xc5),_0x5a29b2(0xb1)+_0x47361c[_0x5a29b2(0xbc)],undefined),_0x1b58fc;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5c3a64,_0x170329){const _0x3092=a91_0x57fb,_0x5e4e56=_0x5c3a64();while(!![]){try{const _0x100e87=parseInt(_0x3092(0xbc))/0x1+parseInt(_0x3092(0xaf))/0x2*(-parseInt(_0x3092(0xb2))/0x3)+parseInt(_0x3092(0x93))/0x4+-parseInt(_0x3092(0xbb))/0x5+parseInt(_0x3092(0xb8))/0x6*(parseInt(_0x3092(0xae))/0x7)+parseInt(_0x3092(0xa4))/0x8+-parseInt(_0x3092(0xa5))/0x9*(parseInt(_0x3092(0xbd))/0xa);if(_0x100e87===_0x170329)break;else _0x5e4e56['push'](_0x5e4e56['shift']());}catch(_0x6a7090){_0x5e4e56['push'](_0x5e4e56['shift']());}}}(a91_0x39a0,0xd1418));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 a91_0x57fb(_0x107195,_0x429083){_0x107195=_0x107195-0x91;const _0x39a0c6=a91_0x39a0();let _0x57fb33=_0x39a0c6[_0x107195];return _0x57fb33;}function a91_0x39a0(){const _0x3a91af=['readableEnded','CSS\x20URL\x20is\x20unreachable:\x20','info','trim','selectedLabels','field','data','11274232KoVhNN','270PjyjCe','cssUrl','jsUrl','label','toString','filter','Invalid\x20--params:\x20','startsWith','pages','8834OlwXXZ','8704Xhleii','Start\x20non-interactive\x20menu\x20sync','concat','621jsezJM','path','isArray','No\x20local\x20pages\x20matched\x20labels:\x20','cwd','parse','2736ZlYrZv','JS\x20URL\x20is\x20unreachable:\x20','menu-sync','2429035ESYrUk','1274427xSujKT','828340LbzATQ','Menu\x20sync\x20completed','join','5878500enoFZQ','stdin','has','string','\x0a\x20\x20Available\x20local\x20pages:\x20','push','map','object','length','--params.'];a91_0x39a0=function(){return _0x3a91af;};return a91_0x39a0();}function validateParams(_0x25f61e){const _0x4238cf=a91_0x57fb,_0x4e9c3f=[];return _0x25f61e[_0x4238cf(0xa7)]&&!isValidJsHttpsUrl(_0x25f61e[_0x4238cf(0xa7)])&&_0x4e9c3f[_0x4238cf(0x98)]({'field':_0x4238cf(0xa7),'message':'JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'}),_0x25f61e[_0x4238cf(0xa6)]&&!isValidCssHttpsUrl(_0x25f61e[_0x4238cf(0xa6)])&&_0x4e9c3f['push']({'field':_0x4238cf(0xa6),'message':'CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'}),_0x4e9c3f;}export async function runMenuSyncCore(_0x15b6dd,_0x456976,_0x3af9ef=[],_0x107494){const _0x3ffe95=a91_0x57fb,_0x479b12=parseParamsFlag(_0x107494),_0x139e53=_0x3af9ef[_0x3ffe95(0x9b)]>0x0?_0x3af9ef:_0x479b12[_0x3ffe95(0xa1)],_0x29dad9=_0x479b12[_0x3ffe95(0xa7)],_0x185c66=_0x479b12[_0x3ffe95(0xa6)],_0xc5e690=[];if(_0x29dad9)_0xc5e690['push'](_0x29dad9);if(_0x185c66)_0xc5e690[_0x3ffe95(0x98)](_0x185c66);const _0x206df3=validateParams(_0x479b12);if(_0x206df3['length']>0x0){const _0x2a8071=_0x206df3['map'](_0x34ca15=>_0x3ffe95(0x9c)+_0x34ca15[_0x3ffe95(0xa2)]+':\x20'+_0x34ca15['message'])[_0x3ffe95(0x92)](';\x20');throw new Error(_0x3ffe95(0xab)+_0x2a8071);}logger['setLogPath'](process[_0x3ffe95(0xb6)]()),logger[_0x3ffe95(0x9f)](_0x3ffe95(0xba),_0x3ffe95(0xb0),{'appCode':_0x15b6dd,'selectedCount':_0x139e53?.[_0x3ffe95(0x9b)],'jsUrl':_0x29dad9,'cssUrl':_0x185c66});if(_0x29dad9){const _0x545df0=await isUrlReachable(_0x29dad9);if(!_0x545df0)throw new Error(_0x3ffe95(0xb9)+_0x29dad9);}if(_0x185c66){const _0x4b51d3=await isUrlReachable(_0x185c66);if(!_0x4b51d3)throw new Error(_0x3ffe95(0x9e)+_0x185c66);}const _0x19428d=getLocalPages();if(_0x19428d['length']===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};const _0x3b5808=await getOnlineMenuList(_0x15b6dd,_0x456976),_0x4c5b2d=new Set(_0x3b5808[_0x3ffe95(0x99)](_0x39eb26=>_0x39eb26[_0x3ffe95(0xb3)]));let _0x2b0b41;if(_0x139e53&&_0x139e53[_0x3ffe95(0x9b)]>0x0){const _0xdf5585=new Set(_0x139e53['map'](_0x5f2253=>_0x5f2253['trim']()));_0x2b0b41=_0x19428d[_0x3ffe95(0xaa)](_0x2eafed=>_0xdf5585[_0x3ffe95(0x95)](_0x2eafed[_0x3ffe95(0xa8)]));if(_0x2b0b41[_0x3ffe95(0x9b)]===0x0){const _0x430955=_0x19428d[_0x3ffe95(0x99)](_0x29c7d7=>_0x29c7d7[_0x3ffe95(0xa8)])['join'](',\x20');throw new Error(_0x3ffe95(0xb5)+[..._0xdf5585][_0x3ffe95(0x92)](',\x20')+_0x3ffe95(0x97)+_0x430955);}}else _0x2b0b41=_0x19428d[_0x3ffe95(0xaa)](_0x1ddd71=>!_0x4c5b2d[_0x3ffe95(0x95)](_0x1ddd71[_0x3ffe95(0xb3)]));if(_0x2b0b41[_0x3ffe95(0x9b)]===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};const _0x25e93c=await createMenus(_0x15b6dd,_0x456976,_0x2b0b41,_0xc5e690['length']>0x0?_0xc5e690:undefined);return logger[_0x3ffe95(0x9f)]('menu-sync',_0x3ffe95(0x91),{'count':_0x2b0b41[_0x3ffe95(0x9b)],'resources':_0xc5e690}),{'created':_0x25e93c[_0x3ffe95(0x9b)],'skipped':![],'targetPages':_0x2b0b41,'menus':_0x25e93c};}export async function readPageLabelsFromStdin(){const _0x500880=a91_0x57fb;if(!process[_0x500880(0x94)]['isTTY']&&!process[_0x500880(0x94)][_0x500880(0x9d)])return new Promise(_0x20d0a8=>{const _0xa46fa=_0x500880,_0x43fc9d=[];process['stdin']['on'](_0xa46fa(0xa3),_0x5885ff=>_0x43fc9d['push'](_0x5885ff)),process['stdin']['on']('end',()=>{const _0x4f06bf=_0xa46fa,_0x4edafe=Buffer[_0x4f06bf(0xb1)](_0x43fc9d)[_0x4f06bf(0xa9)]('utf8'),_0xb8a14b=_0x4edafe['split']('\x0a')[_0x4f06bf(0x99)](_0x350455=>_0x350455['trim']())['filter'](_0x1b54d7=>_0x1b54d7[_0x4f06bf(0x9b)]>0x0&&!_0x1b54d7[_0x4f06bf(0xac)]('#'));_0x20d0a8(_0xb8a14b);}),setTimeout(()=>_0x20d0a8([]),0x1f4);});return[];}function parseParamsFlag(_0x4e1a36){const _0x40101a=a91_0x57fb;if(!_0x4e1a36||typeof _0x4e1a36!==_0x40101a(0x96))return{};try{const _0x258bd5=JSON[_0x40101a(0xb7)](_0x4e1a36);if(typeof _0x258bd5!==_0x40101a(0x9a)||_0x258bd5===null||Array['isArray'](_0x258bd5))return{};return{'selectedLabels':Array[_0x40101a(0xb4)](_0x258bd5['pages'])?_0x258bd5[_0x40101a(0xad)][_0x40101a(0x99)](String):undefined,'jsUrl':typeof _0x258bd5[_0x40101a(0xa7)]==='string'?_0x258bd5[_0x40101a(0xa7)][_0x40101a(0xa0)]():undefined,'cssUrl':typeof _0x258bd5[_0x40101a(0xa6)]===_0x40101a(0x96)?_0x258bd5[_0x40101a(0xa6)][_0x40101a(0xa0)]():undefined};}catch{return{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3282b2,_0x278614){const _0x3480e3=a93_0x23e2,_0x50d2f8=_0x3282b2();while(!![]){try{const _0x2415d7=parseInt(_0x3480e3(0x1df))/0x1+-parseInt(_0x3480e3(0x1e3))/0x2+-parseInt(_0x3480e3(0x1e4))/0x3+parseInt(_0x3480e3(0x1c1))/0x4*(-parseInt(_0x3480e3(0x1d7))/0x5)+-parseInt(_0x3480e3(0x1b3))/0x6+parseInt(_0x3480e3(0x1b4))/0x7*(-parseInt(_0x3480e3(0x1cc))/0x8)+parseInt(_0x3480e3(0x1bf))/0x9;if(_0x2415d7===_0x278614)break;else _0x50d2f8['push'](_0x50d2f8['shift']());}catch(_0x58e4b5){_0x50d2f8['push'](_0x50d2f8['shift']());}}}(a93_0x2817,0xa7883));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(_0x329f0f){const _0x12a5be=a93_0x23e2,_0x57ebd5=[];return _0x329f0f[_0x12a5be(0x1d9)]&&!isValidJsHttpsUrl(_0x329f0f[_0x12a5be(0x1d9)])&&_0x57ebd5[_0x12a5be(0x1d5)]({'field':'jsUrl','message':_0x12a5be(0x1b6)}),_0x329f0f[_0x12a5be(0x1b5)]&&!isValidCssHttpsUrl(_0x329f0f[_0x12a5be(0x1b5)])&&_0x57ebd5[_0x12a5be(0x1d5)]({'field':_0x12a5be(0x1b5),'message':'CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'}),_0x57ebd5;}export async function runMenuUpdateCore(_0x33daf1,_0x1da8c8,_0x1d4317,_0x19db87={}){const _0x1d6bd2=a93_0x23e2,_0x123673=parseUpdateParamsFlag(_0x1d4317),_0x580409=normalizeMode(_0x19db87['mode']),_0x5e7b70=[];if(_0x123673[_0x1d6bd2(0x1d9)])_0x5e7b70[_0x1d6bd2(0x1d5)](_0x123673[_0x1d6bd2(0x1d9)]);if(_0x123673['cssUrl'])_0x5e7b70[_0x1d6bd2(0x1d5)](_0x123673[_0x1d6bd2(0x1b5)]);const _0xf4f6b4=validateParams(_0x123673);if(_0xf4f6b4[_0x1d6bd2(0x1c8)]>0x0){const _0x49b0ae=_0xf4f6b4[_0x1d6bd2(0x1be)](_0x58e730=>'--params.'+_0x58e730['field']+':\x20'+_0x58e730['message'])[_0x1d6bd2(0x1d0)](';\x20');throw new Error(_0x1d6bd2(0x1e0)+_0x49b0ae);}if(_0x5e7b70[_0x1d6bd2(0x1c8)]===0x0)throw new Error(_0x1d6bd2(0x1c7)+_0x1d6bd2(0x1d4));logger['setLogPath'](process[_0x1d6bd2(0x1d6)]()),logger[_0x1d6bd2(0x1db)](_0x1d6bd2(0x1dc),_0x1d6bd2(0x1b2),{'appCode':_0x33daf1,'jsUrl':_0x123673[_0x1d6bd2(0x1d9)],'cssUrl':_0x123673[_0x1d6bd2(0x1b5)],'mode':_0x580409,'dryRun':_0x19db87['dryRun']===!![]});if(_0x123673[_0x1d6bd2(0x1d9)]){const _0x43358b=await isUrlReachable(_0x123673[_0x1d6bd2(0x1d9)]);if(!_0x43358b)throw new Error(_0x1d6bd2(0x1b0)+_0x123673[_0x1d6bd2(0x1d9)]);}if(_0x123673[_0x1d6bd2(0x1b5)]){const _0x545189=await isUrlReachable(_0x123673[_0x1d6bd2(0x1b5)]);if(!_0x545189)throw new Error(_0x1d6bd2(0x1d8)+_0x123673[_0x1d6bd2(0x1b5)]);}const _0x3b698f=await getOnlineMenuList(_0x33daf1,_0x1da8c8),_0x11622c=_0x3b698f['filter'](_0x1e3435=>_0x1e3435[_0x1d6bd2(0x1e1)][_0x1d6bd2(0x1c8)]>0x0);if(_0x11622c[_0x1d6bd2(0x1c8)]===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x19db87[_0x1d6bd2(0x1cd)]===!![]};const _0x2125f3=_0x11622c['map'](_0x3f1f57=>buildMenuUpdateDiff(_0x3f1f57,_0x123673,_0x580409,_0x19db87[_0x1d6bd2(0x1e5)]===!![]));if(_0x19db87[_0x1d6bd2(0x1cd)])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x2125f3};const _0xe89650=await Promise[_0x1d6bd2(0x1bd)](_0x11622c[_0x1d6bd2(0x1be)]((_0x2cb020,_0x6cb685)=>updateMenuCdnUrl(_0x33daf1,_0x1da8c8,{'id':_0x2cb020['id'],'label':_0x2cb020[_0x1d6bd2(0x1bc)],'path':_0x2cb020[_0x1d6bd2(0x1c2)],'resources':_0x2125f3[_0x6cb685]['after'][_0x1d6bd2(0x1e1)],'extend':_0x2cb020['extend']??null}))),_0xaf2892=_0xe89650[_0x1d6bd2(0x1c3)](_0x12ad7d=>_0x12ad7d[_0x1d6bd2(0x1cf)]===_0x1d6bd2(0x1b9))['map'](_0x35080a=>_0x35080a[_0x1d6bd2(0x1c5)]),_0x27e27b=_0xe89650['filter'](_0x7729d7=>_0x7729d7['status']===_0x1d6bd2(0x1b1))[_0x1d6bd2(0x1c8)];return logger['info'](_0x1d6bd2(0x1dc),_0x1d6bd2(0x1c9),{'count':_0x11622c[_0x1d6bd2(0x1c8)],'resources':_0x5e7b70}),{'updated':_0xaf2892[_0x1d6bd2(0x1c8)],'failed':_0x27e27b,'skipped':![],'menus':_0xaf2892};}function normalizeMode(_0x56ef24){const _0x55595d=a93_0x23e2;if(!_0x56ef24)return _0x55595d(0x1da);if(_0x56ef24===_0x55595d(0x1da)||_0x56ef24===_0x55595d(0x1c4))return _0x56ef24;throw new Error('Invalid\x20--mode:\x20'+_0x56ef24+_0x55595d(0x1ce));}function buildMenuUpdateDiff(_0x181d2b,_0x506b31,_0x8bda80,_0x497aaf){const _0xbe941=a93_0x23e2,_0x199e30=[..._0x181d2b['resources']],_0x552f3a=_0x8bda80===_0xbe941(0x1c4)?patchResources(_0x199e30,_0x506b31):replaceResources(_0x506b31),_0x535b6b=[],_0x3f3276=_0x199e30[_0xbe941(0x1b7)](isJsResource),_0x41de99=_0x552f3a[_0xbe941(0x1b7)](isJsResource);if(_0x3f3276&&!_0x41de99){const _0x4a84d5=_0xbe941(0x1ba)+_0x181d2b['label']+_0xbe941(0x1cb)+_0x181d2b[_0xbe941(0x1c2)]+_0xbe941(0x1dd)+'Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.';if(!_0x497aaf)throw new Error(_0x4a84d5);_0x535b6b[_0xbe941(0x1d5)](_0x4a84d5);}const _0x168435=_0x199e30['some'](isCssResource),_0x1f079f=_0x552f3a[_0xbe941(0x1b7)](isCssResource);return _0x168435&&!_0x1f079f&&_0x535b6b[_0xbe941(0x1d5)]('menu\x20update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22'+_0x181d2b['label']+_0xbe941(0x1cb)+_0x181d2b[_0xbe941(0x1c2)]+').'),{'id':_0x181d2b['id'],'label':_0x181d2b[_0xbe941(0x1bc)],'path':_0x181d2b['path'],'mode':_0x8bda80,'before':{'resources':_0x199e30},'after':{'resources':_0x552f3a},'warnings':_0x535b6b};}function replaceResources(_0x50a9cb){const _0x3c8692=a93_0x23e2;return[_0x50a9cb['jsUrl'],_0x50a9cb[_0x3c8692(0x1b5)]][_0x3c8692(0x1c3)](_0x3efd17=>!!_0x3efd17);}function a93_0x23e2(_0x551fb6,_0x46d1f3){_0x551fb6=_0x551fb6-0x1b0;const _0x28170d=a93_0x2817();let _0x23e215=_0x28170d[_0x551fb6];return _0x23e215;}function patchResources(_0x574273,_0x1294cf){const _0x411eb0=a93_0x23e2;let _0x5f2d8b=![],_0x25afef=![];const _0x1d2d7a=[];for(const _0x1ac1df of _0x574273){if(isJsResource(_0x1ac1df)){if(_0x1294cf[_0x411eb0(0x1d9)]&&!_0x5f2d8b)_0x1d2d7a[_0x411eb0(0x1d5)](_0x1294cf[_0x411eb0(0x1d9)]),_0x5f2d8b=!![];else!_0x1294cf[_0x411eb0(0x1d9)]&&_0x1d2d7a[_0x411eb0(0x1d5)](_0x1ac1df);continue;}if(isCssResource(_0x1ac1df)){if(_0x1294cf[_0x411eb0(0x1b5)]&&!_0x25afef)_0x1d2d7a[_0x411eb0(0x1d5)](_0x1294cf[_0x411eb0(0x1b5)]),_0x25afef=!![];else!_0x1294cf[_0x411eb0(0x1b5)]&&_0x1d2d7a[_0x411eb0(0x1d5)](_0x1ac1df);continue;}_0x1d2d7a[_0x411eb0(0x1d5)](_0x1ac1df);}return _0x1294cf[_0x411eb0(0x1d9)]&&!_0x5f2d8b&&_0x1d2d7a[_0x411eb0(0x1c6)](_0x1294cf[_0x411eb0(0x1d9)]),_0x1294cf[_0x411eb0(0x1b5)]&&!_0x25afef&&_0x1d2d7a[_0x411eb0(0x1d5)](_0x1294cf[_0x411eb0(0x1b5)]),_0x1d2d7a;}function isJsResource(_0x3d2cb3){const _0x66d959=a93_0x23e2;return stripQuery(_0x3d2cb3)[_0x66d959(0x1bb)]()[_0x66d959(0x1d3)](_0x66d959(0x1d2));}function isCssResource(_0x206bac){const _0x468ad9=a93_0x23e2;return stripQuery(_0x206bac)[_0x468ad9(0x1bb)]()[_0x468ad9(0x1d3)]('.css');}function stripQuery(_0x235268){const _0x56ddb4=a93_0x23e2;return _0x235268[_0x56ddb4(0x1d1)]('?')[0x0]??_0x235268;}function a93_0x2817(){const _0x4dc53b=['jsUrl','replace','info','menu-update',').\x20','string','120033gaVqDw','Invalid\x20--params:\x20','resources','isArray','2223974IXrttR','542304kiwOmf','force','JS\x20URL\x20is\x20unreachable:\x20','rejected','Start\x20non-interactive\x20menu\x20update','2901192HRiMMn','243299utNLdW','cssUrl','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','some','parse','fulfilled','menu\x20update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22','toLowerCase','label','allSettled','map','30574818dawnVA','object','2133528KWdPxD','path','filter','patch','value','unshift','Invalid\x20--params:\x20menu\x20update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20','length','Menu\x20update\x20completed','trim','\x22\x20(','120GHgIeC','dryRun','.\x20Allowed\x20values:\x20replace,\x20patch','status','join','split','.js','endsWith','Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.','push','cwd','5TlTipS','CSS\x20URL\x20is\x20unreachable:\x20'];a93_0x2817=function(){return _0x4dc53b;};return a93_0x2817();}function parseUpdateParamsFlag(_0x301b89){const _0x28dbce=a93_0x23e2;if(!_0x301b89||typeof _0x301b89!=='string')return{};try{const _0x8e02c4=JSON[_0x28dbce(0x1b8)](_0x301b89);if(typeof _0x8e02c4!==_0x28dbce(0x1c0)||_0x8e02c4===null||Array[_0x28dbce(0x1e2)](_0x8e02c4))return{};return{'jsUrl':typeof _0x8e02c4[_0x28dbce(0x1d9)]==='string'?_0x8e02c4[_0x28dbce(0x1d9)][_0x28dbce(0x1ca)]():undefined,'cssUrl':typeof _0x8e02c4[_0x28dbce(0x1b5)]===_0x28dbce(0x1de)?_0x8e02c4[_0x28dbce(0x1b5)]['trim']():undefined};}catch{return{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a94_0x585d(){const _0x293f59=['9954765gutFSQ','6cHDmwu','4Cfyfmg','682358ZayVjm','1864Cwdgue','20ykYNYt','HEAD','1161359RHgomK','16720033rYAwhX','3133640tkKmyA','1547727BBjFwu','test','3745Xbuscm','trim'];a94_0x585d=function(){return _0x293f59;};return a94_0x585d();}function a94_0x1879(_0x712871,_0x376cd1){_0x712871=_0x712871-0xca;const _0x585d06=a94_0x585d();let _0x187967=_0x585d06[_0x712871];return _0x187967;}(function(_0x366165,_0x5b28d6){const _0x17e74d=a94_0x1879,_0x5e5926=_0x366165();while(!![]){try{const _0xb8da2f=parseInt(_0x17e74d(0xd4))/0x1+parseInt(_0x17e74d(0xd0))/0x2+parseInt(_0x17e74d(0xd7))/0x3*(parseInt(_0x17e74d(0xcf))/0x4)+-parseInt(_0x17e74d(0xd6))/0x5*(-parseInt(_0x17e74d(0xce))/0x6)+-parseInt(_0x17e74d(0xcb))/0x7*(parseInt(_0x17e74d(0xd1))/0x8)+parseInt(_0x17e74d(0xcd))/0x9+-parseInt(_0x17e74d(0xd2))/0xa*(parseInt(_0x17e74d(0xd5))/0xb);if(_0xb8da2f===_0x5b28d6)break;else _0x5e5926['push'](_0x5e5926['shift']());}catch(_0x3487ad){_0x5e5926['push'](_0x5e5926['shift']());}}}(a94_0x585d,0x8f367));export function isValidJsHttpsUrl(_0x5bfc48){return/^https:\/\/.+\.js(\?.*)?$/['test'](_0x5bfc48['trim']());}export function isValidCssHttpsUrl(_0x222c5e){const _0xb1abd2=a94_0x1879;return/^https:\/\/.+\.css(\?.*)?$/[_0xb1abd2(0xca)](_0x222c5e[_0xb1abd2(0xcc)]());}export async function isUrlReachable(_0x5f378c){const _0x3cf6c8=a94_0x1879;try{const _0x25a3be=await fetch(_0x5f378c,{'method':_0x3cf6c8(0xd3)});return _0x25a3be['ok'];}catch{return![];}}
|