@lovrabet/rabetbase-cli 2.3.4-beta.3 → 2.3.4
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/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -0
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.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-skill/index.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-registry.js +1 -0
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/dry-run.js +1 -0
- 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/business-group-update.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/generate.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-audit.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/dataset/restore.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/list.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/permit/index.js +1 -0
- package/lib/commands/permit/page-get.js +1 -0
- package/lib/commands/permit/page-set.js +1 -0
- package/lib/commands/permit/role-apis-set.js +1 -0
- package/lib/commands/permit/role-menus-set.js +1 -0
- package/lib/commands/permit/role-menus.js +1 -0
- package/lib/commands/permit/shared.js +1 -0
- 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/role/create.js +1 -0
- package/lib/commands/role/delete.js +1 -0
- package/lib/commands/role/detail.js +1 -0
- package/lib/commands/role/index.js +1 -0
- package/lib/commands/role/list.js +1 -0
- package/lib/commands/role/shared.js +1 -0
- package/lib/commands/role/update.js +1 -0
- package/lib/commands/role/user-add.js +1 -0
- package/lib/commands/role/user-remove.js +1 -0
- package/lib/commands/role/user-resolve.js +1 -0
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.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/commands/workspace/add.js +1 -0
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -0
- 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/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.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 +2 -2
- package/lib/commands/app/discover.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a93_0x2fbfd1=a93_0x4b67;(function(_0x1da1db,_0x3b20a8){const _0x3cab11=a93_0x4b67,_0x33f288=_0x1da1db();while(!![]){try{const _0x3f4f8b=-parseInt(_0x3cab11(0x158))/0x1*(parseInt(_0x3cab11(0x155))/0x2)+parseInt(_0x3cab11(0x144))/0x3*(-parseInt(_0x3cab11(0x15f))/0x4)+parseInt(_0x3cab11(0x147))/0x5*(-parseInt(_0x3cab11(0x138))/0x6)+parseInt(_0x3cab11(0x156))/0x7*(-parseInt(_0x3cab11(0x135))/0x8)+parseInt(_0x3cab11(0x14c))/0x9+-parseInt(_0x3cab11(0x14a))/0xa+parseInt(_0x3cab11(0x14d))/0xb;if(_0x3f4f8b===_0x3b20a8)break;else _0x33f288['push'](_0x33f288['shift']());}catch(_0x454afa){_0x33f288['push'](_0x33f288['shift']());}}}(a93_0x86aa,0xb365e));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';function a93_0x86aa(){const _0x21759d=['23238479zNpDfH','sanitize','push','\x20bytes','issue.description_truncated','string','length','validation','1054268kHpsxy','28THzMQc','descriptionFile:\x20','1BTbspq','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','title','filter','issue.title','descriptionSource','join','300isZnBi','POST','truncated\x20from\x20','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','inline','Failed\x20to\x20report\x20platform\x20issue:\x20','redactionCount','Issue\x20description\x20cannot\x20be\x20empty.','description-file','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','722680fVgLoC','truncated','descriptionFilePath','42wGNTby','message','compress','redactionKinds','issue.description','originalBytes','trim','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','otel://','cwd','flagMissing','One-line\x20issue\x20summary','3723KoWetj','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','str','201270tjAtrl','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','description','13507210hopinv','issue.description_redaction_kinds','11126457laWYLM'];a93_0x86aa=function(){return _0x21759d;};return a93_0x86aa();}import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a93_0x2fbfd1(0x132);export const issueReport={'service':'issue','command':'report','description':a93_0x2fbfd1(0x162),'risk':'write','requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a93_0x2fbfd1(0x13a),'flags':[{'name':'title','type':a93_0x2fbfd1(0x152),'required':!![],'description':a93_0x2fbfd1(0x143)},{'name':a93_0x2fbfd1(0x149),'type':a93_0x2fbfd1(0x152),'description':a93_0x2fbfd1(0x134)},{'name':DESCRIPTION_FILE_FLAG,'type':a93_0x2fbfd1(0x152),'description':a93_0x2fbfd1(0x13f)}],async 'validate'(_0x29009b){const _0x525745=a93_0x2fbfd1,_0x543e57=_0x29009b[_0x525745(0x146)](_0x525745(0x15a))[_0x525745(0x13e)](),_0x33e4d1=_0x29009b['str']('description')[_0x525745(0x13e)](),_0xbd77b=_0x29009b['str'](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x543e57)throw CliErrors[_0x525745(0x142)]('title','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.');const _0x152acb=_0x33e4d1[_0x525745(0x153)]>0x0,_0x4ff947=_0xbd77b[_0x525745(0x153)]>0x0;if(_0x152acb===_0x4ff947)throw CliErrors[_0x525745(0x154)](_0x525745(0x145),_0x525745(0x159));if(_0x4ff947){const _0x3f6094=resolve(process[_0x525745(0x141)](),_0xbd77b);if(!existsSync(_0x3f6094))throw CliErrors[_0x525745(0x154)]('File\x20not\x20found:\x20'+_0x3f6094);}},async 'dryRun'(_0x59dce8){const _0x3efd3d=a93_0x2fbfd1,_0x8eda6a=await prepareIssueReport(_0x59dce8);return{'method':_0x3efd3d(0x160),'url':_0x3efd3d(0x140)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x8eda6a[_0x3efd3d(0x15a)],'issue.description':_0x8eda6a['description'],'issue.description_original_bytes':_0x8eda6a[_0x3efd3d(0x14e)][_0x3efd3d(0x13d)],'issue.description_truncated':_0x8eda6a['sanitize'][_0x3efd3d(0x136)],'issue.description_redactions':_0x8eda6a[_0x3efd3d(0x14e)][_0x3efd3d(0x130)],'issue.description_redaction_kinds':_0x8eda6a[_0x3efd3d(0x14e)][_0x3efd3d(0x13b)][_0x3efd3d(0x15e)](',')}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','descriptionSource:\x20'+_0x8eda6a['descriptionSource'],_0x8eda6a[_0x3efd3d(0x137)]?_0x3efd3d(0x157)+_0x8eda6a[_0x3efd3d(0x137)]:null,_0x8eda6a[_0x3efd3d(0x14e)][_0x3efd3d(0x136)]?'truncated:\x20original\x20'+_0x8eda6a['sanitize'][_0x3efd3d(0x13d)]+_0x3efd3d(0x150):null,_0x8eda6a[_0x3efd3d(0x14e)][_0x3efd3d(0x130)]>0x0?'redactions:\x20'+_0x8eda6a[_0x3efd3d(0x14e)][_0x3efd3d(0x130)]+'\x20('+_0x8eda6a[_0x3efd3d(0x14e)][_0x3efd3d(0x13b)]['join'](',\x20')+')':null][_0x3efd3d(0x15b)](Boolean)[_0x3efd3d(0x15e)]('\x0a')};},async 'execute'(_0x5cc3db){const _0x209e1c=a93_0x2fbfd1,_0x4cafe6=await prepareIssueReport(_0x5cc3db);try{await sendPlatformIssueCollectLog({'title':_0x4cafe6['title'],'description':_0x4cafe6[_0x209e1c(0x149)],'sanitize':{'originalBytes':_0x4cafe6[_0x209e1c(0x14e)][_0x209e1c(0x13d)],'truncated':_0x4cafe6[_0x209e1c(0x14e)]['truncated'],'redactionCount':_0x4cafe6[_0x209e1c(0x14e)][_0x209e1c(0x130)],'redactionKinds':_0x4cafe6['sanitize']['redactionKinds']}});}catch(_0x3b86f7){throw CliErrors['apiError'](_0x209e1c(0x164)+(_0x3b86f7 instanceof Error?_0x3b86f7[_0x209e1c(0x139)]:String(_0x3b86f7)),'Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.');}return{'ok':!![],'message':buildResultMessage(_0x4cafe6['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x209e1c(0x15c),_0x209e1c(0x13c),'issue.description_original_bytes',_0x209e1c(0x151),'issue.description_redactions',_0x209e1c(0x14b)],'issue':{'title':_0x4cafe6[_0x209e1c(0x15a)],'descriptionLength':_0x4cafe6[_0x209e1c(0x149)][_0x209e1c(0x153)],'descriptionSource':_0x4cafe6[_0x209e1c(0x15d)],..._0x4cafe6[_0x209e1c(0x137)]?{'descriptionFile':_0x4cafe6['descriptionFilePath']}:{},'sanitize':{'originalBytes':_0x4cafe6[_0x209e1c(0x14e)][_0x209e1c(0x13d)],'truncated':_0x4cafe6['sanitize'][_0x209e1c(0x136)],'redactions':_0x4cafe6[_0x209e1c(0x14e)]['redactionCount'],'redactionKinds':_0x4cafe6[_0x209e1c(0x14e)]['redactionKinds']}}}};}};function buildResultMessage(_0x454491){const _0x1df60b=a93_0x2fbfd1,_0x4c1501=[];return _0x454491['truncated']&&_0x4c1501['push'](_0x1df60b(0x161)+_0x454491['originalBytes']+_0x1df60b(0x150)),_0x454491[_0x1df60b(0x130)]>0x0&&_0x4c1501[_0x1df60b(0x14f)]('redacted\x20'+_0x454491[_0x1df60b(0x130)]+'\x20secret(s):\x20'+_0x454491['redactionKinds']['join'](',\x20')),_0x4c1501['length']===0x0?'Platform\x20issue\x20reported':'Platform\x20issue\x20reported\x20('+_0x4c1501[_0x1df60b(0x15e)](';\x20')+')';}function a93_0x4b67(_0x75a3a9,_0x3b94ea){_0x75a3a9=_0x75a3a9-0x130;const _0x86aa66=a93_0x86aa();let _0x4b6729=_0x86aa66[_0x75a3a9];return _0x4b6729;}async function prepareIssueReport(_0xc43bec){const _0x5585bb=a93_0x2fbfd1,_0x2aadac=_0xc43bec[_0x5585bb(0x146)]('title')[_0x5585bb(0x13e)](),_0x9facf2=_0xc43bec['str'](_0x5585bb(0x149)),_0x1775e8=_0xc43bec['str'](DESCRIPTION_FILE_FLAG)[_0x5585bb(0x13e)]();if(!_0x1775e8){const _0x439de6=_0x9facf2;if(!_0x439de6['trim']())throw CliErrors[_0x5585bb(0x154)](_0x5585bb(0x131),_0x5585bb(0x148));const _0x40eca0=sanitizeIssueDescription(_0x439de6);return{'title':_0x2aadac,'description':_0x40eca0[_0x5585bb(0x149)],'descriptionSource':_0x5585bb(0x163),'sanitize':_0x40eca0};}const _0xe3a970=resolve(process[_0x5585bb(0x141)](),_0x1775e8),_0xfd2d42=await readFile(_0xe3a970,'utf8');if(!_0xfd2d42[_0x5585bb(0x13e)]())throw CliErrors[_0x5585bb(0x154)]('Issue\x20description\x20file\x20is\x20empty:\x20'+_0xe3a970,_0x5585bb(0x133));const _0x32ac44=sanitizeIssueDescription(_0xfd2d42);return{'title':_0x2aadac,'description':_0x32ac44[_0x5585bb(0x149)],'descriptionSource':'file','descriptionFilePath':_0xe3a970,'sanitize':_0x32ac44};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a94_0x48daba=a94_0x59d2;(function(_0x387cfa,_0x2c7875){const _0x22ed66=a94_0x59d2,_0x35008d=_0x387cfa();while(!![]){try{const _0x21abbb=-parseInt(_0x22ed66(0x16b))/0x1*(-parseInt(_0x22ed66(0x15f))/0x2)+-parseInt(_0x22ed66(0x155))/0x3+-parseInt(_0x22ed66(0x169))/0x4+-parseInt(_0x22ed66(0x153))/0x5*(parseInt(_0x22ed66(0x15e))/0x6)+parseInt(_0x22ed66(0x152))/0x7+-parseInt(_0x22ed66(0x156))/0x8+parseInt(_0x22ed66(0x16a))/0x9;if(_0x21abbb===_0x2c7875)break;else _0x35008d['push'](_0x35008d['shift']());}catch(_0x304f6f){_0x35008d['push'](_0x35008d['shift']());}}}(a94_0x244d,0x3dd89));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;function a94_0x244d(){const _0x3cac38=['REDACTED:bearer-jwt','1031728nVdFjy','1188837fLhXtW','2TYfJTi','bearer-jwt','3349773RbQNPT','279535WYwesm','toString','71577mRoUea','3001088tbGXgE','utf8','REDACTED:private-key','REDACTED:cookie','replace','REDACTED:password','access-key','max','12XPOGyL','411430VqHBbV','REDACTED:access-key','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','kind','byteLength','includes','label','cookie','from'];a94_0x244d=function(){return _0x3cac38;};return a94_0x244d();}function a94_0x59d2(_0x59d141,_0xc827c7){_0x59d141=_0x59d141-0x152;const _0x244de9=a94_0x244d();let _0x59d276=_0x244de9[_0x59d141];return _0x59d276;}const TRUNCATION_NOTICE=a94_0x48daba(0x161),REDACTION_RULES=[{'kind':a94_0x48daba(0x166),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a94_0x48daba(0x159)},{'kind':'authorization','pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':'private-key','pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a94_0x48daba(0x158)},{'kind':a94_0x48daba(0x15c),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a94_0x48daba(0x160)},{'kind':'password','pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a94_0x48daba(0x15b)},{'kind':a94_0x48daba(0x16c),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a94_0x48daba(0x168)}];export function sanitizeIssueDescription(_0x59c2dc){const _0x50930d=a94_0x48daba,_0x468b64=Buffer['byteLength'](_0x59c2dc,'utf8'),_0x45154b=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x2f2dfc=_0x59c2dc,_0x1f1f60=0x0;const _0x19c3e3=[];if(!_0x45154b)for(const _0x516661 of REDACTION_RULES){let _0x1e61d1=0x0;_0x2f2dfc=_0x2f2dfc[_0x50930d(0x15a)](_0x516661['pattern'],(_0x453054,_0x3fb630)=>{const _0x33a831=_0x50930d;_0x1e61d1+=0x1;const _0x250278=typeof _0x3fb630==='string'?_0x3fb630:'';return _0x250278+'['+_0x516661[_0x33a831(0x165)]+']';}),_0x1e61d1>0x0&&(_0x1f1f60+=_0x1e61d1,!_0x19c3e3[_0x50930d(0x164)](_0x516661[_0x50930d(0x162)])&&_0x19c3e3['push'](_0x516661[_0x50930d(0x162)]));}let _0x2604ca=![];if(Buffer[_0x50930d(0x163)](_0x2f2dfc,_0x50930d(0x157))>ISSUE_DESCRIPTION_MAX_BYTES){_0x2604ca=!![];const _0x7bb68f=Buffer[_0x50930d(0x163)](TRUNCATION_NOTICE,_0x50930d(0x157)),_0x4d7b0c=Math[_0x50930d(0x15d)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x7bb68f);_0x2f2dfc=sliceUtf8Bytes(_0x2f2dfc,_0x4d7b0c)+TRUNCATION_NOTICE;}return{'description':_0x2f2dfc,'originalBytes':_0x468b64,'truncated':_0x2604ca,'redactionCount':_0x1f1f60,'redactionKinds':_0x19c3e3};}function sliceUtf8Bytes(_0xca3f58,_0x34355e){const _0x141951=a94_0x48daba;if(_0x34355e<=0x0)return'';const _0x5976d9=Buffer[_0x141951(0x167)](_0xca3f58,_0x141951(0x157));if(_0x5976d9[_0x141951(0x163)]<=_0x34355e)return _0xca3f58;let _0x4aa334=_0x34355e;while(_0x4aa334>0x0){const _0x4bc8ef=_0x5976d9[_0x4aa334];if(_0x4bc8ef===undefined||(_0x4bc8ef&0xc0)!==0x80)break;_0x4aa334-=0x1;}return _0x5976d9['subarray'](0x0,_0x4aa334)[_0x141951(0x154)](_0x141951(0x157));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a95_0x1d8fda=a95_0x3af4;function a95_0x3af4(_0x141ea1,_0x50aa41){_0x141ea1=_0x141ea1-0x10e;const _0x2995ed=a95_0x2995();let _0x3af441=_0x2995ed[_0x141ea1];return _0x3af441;}(function(_0x89be13,_0x2c7ce5){const _0x1ea87f=a95_0x3af4,_0x2fa556=_0x89be13();while(!![]){try{const _0x409dca=parseInt(_0x1ea87f(0x115))/0x1*(-parseInt(_0x1ea87f(0x129))/0x2)+parseInt(_0x1ea87f(0x114))/0x3+parseInt(_0x1ea87f(0x10f))/0x4+-parseInt(_0x1ea87f(0x127))/0x5*(parseInt(_0x1ea87f(0x132))/0x6)+-parseInt(_0x1ea87f(0x12d))/0x7+parseInt(_0x1ea87f(0x119))/0x8+parseInt(_0x1ea87f(0x12e))/0x9;if(_0x409dca===_0x2c7ce5)break;else _0x2fa556['push'](_0x2fa556['shift']());}catch(_0x164226){_0x2fa556['push'](_0x2fa556['shift']());}}}(a95_0x2995,0xb02e2));import{logger}from'../../utils/logger.js';function a95_0x2995(){const _0x390f7a=['41pLxAPL','duration','\x20\x20\x20Details:\x20','\x20\x20\x20Duration:\x20','2505344ZlGcuA','clearLogs','\x20\x20\x20Time:\x20','length','error','log','keys','success','readLogs','*\x20Lovrabet\x20CLI\x20logs:\x0a','read','stringify','message','details','56995IBTwLr','toLocaleString','23042TCoHhP','en-US','warn','clear','5655328sCOKCY','10097928pxCNdu','write','logs','Clear\x20command\x20history\x20logs','354UYzwOO','level','forEach','2635020lhrMLt','*\x20Logs\x20cleared','show','*\x20No\x20logs\x20found','timestamp','1741575FpDGiY'];a95_0x2995=function(){return _0x390f7a;};return a95_0x2995();}function printLogs(_0x3d2cf8){const _0x334569=a95_0x3af4;if(_0x3d2cf8['length']===0x0){console[_0x334569(0x11e)](_0x334569(0x112));return;}console['log'](_0x334569(0x122)),_0x3d2cf8[_0x334569(0x10e)]((_0x26e02c,_0x2dc076)=>{const _0x1e9aff=_0x334569,_0x3d8086=new Date(_0x26e02c[_0x1e9aff(0x113)])[_0x1e9aff(0x128)](_0x1e9aff(0x12a)),_0x54655a=_0x26e02c['level']===_0x1e9aff(0x120)?'√':_0x26e02c['level']===_0x1e9aff(0x11d)?'×':_0x26e02c[_0x1e9aff(0x133)]===_0x1e9aff(0x12b)?'!':'i';console[_0x1e9aff(0x11e)](_0x2dc076+0x1+'.\x20'+_0x54655a+'\x20['+_0x26e02c['command']+']\x20'+_0x26e02c[_0x1e9aff(0x125)]),console[_0x1e9aff(0x11e)](_0x1e9aff(0x11b)+_0x3d8086),_0x26e02c[_0x1e9aff(0x116)]&&console[_0x1e9aff(0x11e)](_0x1e9aff(0x118)+_0x26e02c[_0x1e9aff(0x116)]+'ms'),_0x26e02c[_0x1e9aff(0x126)]&&Object[_0x1e9aff(0x11f)](_0x26e02c[_0x1e9aff(0x126)])[_0x1e9aff(0x11c)]>0x0&&console[_0x1e9aff(0x11e)](_0x1e9aff(0x117)+JSON[_0x1e9aff(0x124)](_0x26e02c[_0x1e9aff(0x126)],null,0x2)),console[_0x1e9aff(0x11e)]('');});}export const logsDefinitions=[{'service':a95_0x1d8fda(0x130),'command':a95_0x1d8fda(0x111),'description':'View\x20command\x20history\x20logs','risk':a95_0x1d8fda(0x123),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x37b680){const _0x4145e9=a95_0x1d8fda;return printLogs(logger[_0x4145e9(0x121)]()),{'ok':!![]};}},{'service':a95_0x1d8fda(0x130),'command':a95_0x1d8fda(0x12c),'description':a95_0x1d8fda(0x131),'risk':a95_0x1d8fda(0x12f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0xb684cc){const _0xd4ddc9=a95_0x1d8fda;return logger[_0xd4ddc9(0x11a)](),console[_0xd4ddc9(0x11e)](_0xd4ddc9(0x110)),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x43db8d,_0x3232e1){const _0x50c67b=a96_0x3918,_0x2babbd=_0x43db8d();while(!![]){try{const _0x4fa67d=-parseInt(_0x50c67b(0x18c))/0x1*(parseInt(_0x50c67b(0x18d))/0x2)+-parseInt(_0x50c67b(0x191))/0x3*(-parseInt(_0x50c67b(0x193))/0x4)+-parseInt(_0x50c67b(0x18a))/0x5+parseInt(_0x50c67b(0x192))/0x6*(-parseInt(_0x50c67b(0x18b))/0x7)+parseInt(_0x50c67b(0x188))/0x8+parseInt(_0x50c67b(0x189))/0x9*(-parseInt(_0x50c67b(0x190))/0xa)+-parseInt(_0x50c67b(0x18e))/0xb*(-parseInt(_0x50c67b(0x18f))/0xc);if(_0x4fa67d===_0x3232e1)break;else _0x2babbd['push'](_0x2babbd['shift']());}catch(_0x149d4c){_0x2babbd['push'](_0x2babbd['shift']());}}}(a96_0x572f,0x88c76));import{menuList}from'../../commands/menu/list.js';import{menuSync}from'../../commands/menu/sync.js';function a96_0x3918(_0x25c47c,_0x3bb4ff){_0x25c47c=_0x25c47c-0x188;const _0x572f48=a96_0x572f();let _0x3918e5=_0x572f48[_0x25c47c];return _0x3918e5;}import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuList,menuSync,menuUpdate];function a96_0x572f(){const _0x547612=['18933648BxLsiB','6030nUNeKi','159iKbURc','997554Dxtkpn','61472LXpuNm','1656528ZLOQPh','9045bYWEcL','1337035dYxTOm','7SJkFTH','999447avrdhm','2AXvwax','11RMsDwa'];a96_0x572f=function(){return _0x547612;};return a96_0x572f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a97_0x5813c4=a97_0x13c2;(function(_0x574a61,_0x5b949d){const _0x545c9f=a97_0x13c2,_0x4e82fb=_0x574a61();while(!![]){try{const _0x21483a=parseInt(_0x545c9f(0x158))/0x1*(-parseInt(_0x545c9f(0x166))/0x2)+parseInt(_0x545c9f(0x16a))/0x3+-parseInt(_0x545c9f(0x15a))/0x4*(parseInt(_0x545c9f(0x170))/0x5)+parseInt(_0x545c9f(0x17f))/0x6*(parseInt(_0x545c9f(0x180))/0x7)+parseInt(_0x545c9f(0x179))/0x8+parseInt(_0x545c9f(0x15f))/0x9*(parseInt(_0x545c9f(0x15c))/0xa)+parseInt(_0x545c9f(0x165))/0xb;if(_0x21483a===_0x5b949d)break;else _0x4e82fb['push'](_0x4e82fb['shift']());}catch(_0x17916f){_0x4e82fb['push'](_0x4e82fb['shift']());}}}(a97_0xa339,0x4f015));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a97_0x13c2(_0x1671aa,_0x477622){_0x1671aa=_0x1671aa-0x158;const _0xa3396a=a97_0xa339();let _0x13c2d7=_0xa3396a[_0x1671aa];return _0x13c2d7;}import{getMenuTree}from'../../core/api-client.js';function a97_0xa339(){const _0x758a7f=['117bJNLek','bool','index','depth','List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','verbose','7366172SYulmm','8LqWxyA','item','string','resources','1357437pkuInD','number','children','Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing','map','\x20menu(s)','5btdZfX','appCode','label','No\x20menus\x20found.','menu','length','cookie','visible','type','1004312ncRJCj','Found\x20','sort','push','isArray','read','6diuQGt','402892AELqnV','POSITIVE_INFINITY','extend','156363DliiSq','parentId','2331608otzkBl','boolean','174410ACCeeh','parse','list'];a97_0xa339=function(){return _0x758a7f;};return a97_0xa339();}export const menuList={'service':a97_0x5813c4(0x174),'command':a97_0x5813c4(0x15e),'description':a97_0x5813c4(0x163),'risk':a97_0x5813c4(0x17e),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a97_0x5813c4(0x164),'type':a97_0x5813c4(0x15b),'description':a97_0x5813c4(0x16d)}],async 'execute'(_0x241115){const _0x4307ee=a97_0x5813c4,_0x2f6eed=_0x241115[_0x4307ee(0x160)](_0x4307ee(0x164)),_0x7f2235=await getMenuTree(_0x241115[_0x4307ee(0x171)],_0x241115[_0x4307ee(0x176)]),_0x40e855=flattenMenuItems(Array[_0x4307ee(0x17d)](_0x7f2235)?_0x7f2235:[],{'verbose':_0x2f6eed,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x40e855[_0x4307ee(0x175)],'menus':_0x40e855},'message':_0x40e855['length']===0x0?_0x4307ee(0x173):_0x4307ee(0x17a)+_0x40e855[_0x4307ee(0x175)]+_0x4307ee(0x16f)};}};function flattenMenuItems(_0x40b760,_0x564319){const _0x22fdfa=a97_0x5813c4,_0x162f43=sortMenuItems(_0x40b760),_0x47790f=[];for(const _0x1eede4 of _0x162f43){_0x47790f[_0x22fdfa(0x17c)](toMenuListItem(_0x1eede4,_0x564319)),Array[_0x22fdfa(0x17d)](_0x1eede4[_0x22fdfa(0x16c)])&&_0x1eede4[_0x22fdfa(0x16c)]['length']>0x0&&_0x47790f['push'](...flattenMenuItems(_0x1eede4[_0x22fdfa(0x16c)],{'verbose':_0x564319[_0x22fdfa(0x164)],'parentId':_0x1eede4['id'],'depth':_0x564319[_0x22fdfa(0x162)]+0x1}));}return _0x47790f;}function sortMenuItems(_0x427478){const _0x53ccb9=a97_0x5813c4;return _0x427478[_0x53ccb9(0x16e)]((_0x57d48f,_0xb9ba66)=>({'item':_0x57d48f,'index':_0xb9ba66}))[_0x53ccb9(0x17b)]((_0x366c3e,_0x3a0082)=>{const _0x24c6b6=_0x53ccb9,_0x309636=normalizeSort(_0x366c3e[_0x24c6b6(0x167)]['sort']),_0x529661=normalizeSort(_0x3a0082['item'][_0x24c6b6(0x17b)]);if(_0x309636!==_0x529661)return _0x309636-_0x529661;return _0x366c3e[_0x24c6b6(0x161)]-_0x3a0082[_0x24c6b6(0x161)];})['map'](({item:_0x49b26e})=>_0x49b26e);}function toMenuListItem(_0x5dc463,_0x11815c){const _0x358935=a97_0x5813c4,_0x38452c={'id':_0x5dc463['id'],'parentId':_0x11815c[_0x358935(0x159)],'depth':_0x11815c[_0x358935(0x162)],'label':normalizeString(_0x5dc463[_0x358935(0x172)]),'path':normalizeString(_0x5dc463['path']),'type':normalizeString(_0x5dc463[_0x358935(0x178)]),'visible':typeof _0x5dc463[_0x358935(0x177)]===_0x358935(0x15b)?_0x5dc463[_0x358935(0x177)]:null,'sort':typeof _0x5dc463[_0x358935(0x17b)]===_0x358935(0x16b)&&Number['isFinite'](_0x5dc463[_0x358935(0x17b)])?_0x5dc463[_0x358935(0x17b)]:null,'resources':normalizeResources(_0x5dc463[_0x358935(0x182)]?.[_0x358935(0x169)])};return _0x11815c[_0x358935(0x164)]&&(_0x38452c['extend']=_0x5dc463['extend']??null),_0x38452c;}function normalizeSort(_0x348805){const _0x1df1e3=a97_0x5813c4;return typeof _0x348805==='number'&&Number['isFinite'](_0x348805)?_0x348805:Number[_0x1df1e3(0x181)];}function normalizeString(_0x1b3ad5){return typeof _0x1b3ad5==='string'?_0x1b3ad5:'';}function normalizeResources(_0x289ad8){const _0x646d44=a97_0x5813c4;if(Array[_0x646d44(0x17d)](_0x289ad8))return _0x289ad8[_0x646d44(0x16e)](String);if(typeof _0x289ad8!==_0x646d44(0x168))return[];try{const _0xfa1827=JSON[_0x646d44(0x15d)](_0x289ad8);return Array[_0x646d44(0x17d)](_0xfa1827)?_0xfa1827[_0x646d44(0x16e)](String):[];}catch{return[];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x25810a,_0x556bb8){const _0x1d4a67=a98_0x3bd5,_0x47ba0c=_0x25810a();while(!![]){try{const _0x2596b1=-parseInt(_0x1d4a67(0x124))/0x1*(parseInt(_0x1d4a67(0x11c))/0x2)+parseInt(_0x1d4a67(0x126))/0x3+parseInt(_0x1d4a67(0x11e))/0x4*(parseInt(_0x1d4a67(0x12a))/0x5)+parseInt(_0x1d4a67(0x132))/0x6+parseInt(_0x1d4a67(0x12b))/0x7*(parseInt(_0x1d4a67(0x116))/0x8)+-parseInt(_0x1d4a67(0x125))/0x9*(-parseInt(_0x1d4a67(0x133))/0xa)+parseInt(_0x1d4a67(0x134))/0xb*(-parseInt(_0x1d4a67(0x130))/0xc);if(_0x2596b1===_0x556bb8)break;else _0x47ba0c['push'](_0x47ba0c['shift']());}catch(_0x83eabb){_0x47ba0c['push'](_0x47ba0c['shift']());}}}(a98_0x10b7,0x3e4d2));function strWidth(_0x48cb9f){const _0x633f2f=a98_0x3bd5;let _0x27388c=0x0;for(const _0x49e17c of _0x48cb9f){_0x27388c+=/[\u4e00-\u9fa5]/[_0x633f2f(0x119)](_0x49e17c)?0x2:0x1;}return _0x27388c;}function a98_0x3bd5(_0x2c723b,_0x2176ae){_0x2c723b=_0x2c723b-0x115;const _0x10b777=a98_0x10b7();let _0x3bd5e7=_0x10b777[_0x2c723b];return _0x3bd5e7;}function padRight(_0x57cb65,_0x365211){const _0x527674=a98_0x3bd5,_0x337bec=strWidth(_0x57cb65);return _0x57cb65+'\x20'['repeat'](Math[_0x527674(0x136)](0x0,_0x365211-_0x337bec));}export function renderCompareTable(_0x9925d5,_0x423b7c={}){const _0x321777=a98_0x3bd5;if(_0x9925d5[_0x321777(0x11f)]===0x0)return'';const _0x507850=_0x423b7c[_0x321777(0x121)]??!![],_0x46bfcd=Math[_0x321777(0x136)](0x1e,..._0x9925d5[_0x321777(0x127)](_0x2175d7=>strWidth(_0x2175d7[_0x321777(0x12e)]))),_0x20c938=0x4,_0x4608f4=[],_0xba66db='\x20\x20'+padRight(_0x321777(0x129),_0x46bfcd),_0x2f463d=padRight(_0x321777(0x11d),_0x20c938),_0x2fc873=_0x507850?'\x20\x20'+padRight(_0x321777(0x118),_0x20c938):'';_0x4608f4[_0x321777(0x12d)](_0xba66db+'\x20\x20'+_0x2f463d+(_0x507850?_0x2fc873:'')),_0x4608f4[_0x321777(0x12d)]('\x20\x20'+'─'[_0x321777(0x120)](_0x46bfcd)+'\x20\x20'+'─'[_0x321777(0x120)](_0x20c938)+(_0x507850?'\x20\x20'+'─'[_0x321777(0x120)](_0x20c938):''));for(const _0x41f8c of _0x9925d5){const _0x4d8005=padRight(_0x41f8c[_0x321777(0x12e)],_0x46bfcd),_0x3f9c97=_0x41f8c[_0x321777(0x122)]?'✓':'✗',_0x3abe3d=padRight(_0x3f9c97,_0x20c938);let _0x7b517e='\x20\x20'+_0x4d8005+'\x20\x20'+_0x3abe3d;if(_0x507850){const _0x19079a=_0x41f8c['online']?'✓':'✗';_0x7b517e+='\x20\x20'+padRight(_0x19079a,_0x20c938);}_0x4608f4[_0x321777(0x12d)](_0x7b517e);}return _0x4608f4[_0x321777(0x135)]('\x0a');}export function renderSyncSummary(_0x505480,_0x48f1ce){const _0x169d10=a98_0x3bd5;if(_0x505480['length']===0x0)return _0x48f1ce?_0x169d10(0x115):'\x20\x20No\x20pages\x20to\x20sync.';const _0x3e1426=['\x20\x20'+_0x505480[_0x169d10(0x11f)]+_0x169d10(0x12c)];for(const _0x1b8e9b of _0x505480){_0x3e1426[_0x169d10(0x12d)](_0x169d10(0x12f)+_0x1b8e9b['label']+'\x20('+_0x1b8e9b[_0x169d10(0x131)]+')');}return _0x3e1426[_0x169d10(0x135)]('\x0a');}function a98_0x10b7(){const _0x301de0=['\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','1187288EHzBGv','\x20\x20\x20\x20JS:\x20\x20','Platform','test','\x20\x20\x20\x20CSS:\x20','(unchanged)','2AWEYfC','Local','111204KPseak','length','repeat','showOnline','local','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','194961jAZuwd','27HyeJcj','29523TEZPaP','map','\x20\x20Affected\x20menus:\x20','Menu\x20Name','30Ylcico','7awtENM','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','push','label','\x20\x20\x20\x20•\x20','1476HVFbcv','path','2297562ffXfuy','200390NTstTm','28435MSgVMv','join','max'];a98_0x10b7=function(){return _0x301de0;};return a98_0x10b7();}export function renderUpdateSummary(_0x243c95,_0x42b574){const _0x12bb3e=a98_0x3bd5;if(_0x243c95['length']===0x0)return'\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.';const _0x415865=['\x20\x20'+_0x243c95['length']+_0x12bb3e(0x123),_0x12bb3e(0x117)+(_0x42b574[0x0]??_0x12bb3e(0x11b)),_0x12bb3e(0x11a)+(_0x42b574[0x1]??_0x12bb3e(0x11b)),'',_0x12bb3e(0x128)+_0x243c95[_0x12bb3e(0x135)](',\x20')];return _0x415865[_0x12bb3e(0x135)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2ad413,_0x40700e){var _0xef5444=a99_0x1cbe,_0x4dbe2c=_0x2ad413();while(!![]){try{var _0x190853=parseInt(_0xef5444(0x139))/0x1+parseInt(_0xef5444(0x13b))/0x2+parseInt(_0xef5444(0x140))/0x3*(parseInt(_0xef5444(0x13a))/0x4)+parseInt(_0xef5444(0x142))/0x5*(-parseInt(_0xef5444(0x141))/0x6)+-parseInt(_0xef5444(0x13e))/0x7+-parseInt(_0xef5444(0x13c))/0x8*(parseInt(_0xef5444(0x13f))/0x9)+parseInt(_0xef5444(0x13d))/0xa;if(_0x190853===_0x40700e)break;else _0x4dbe2c['push'](_0x4dbe2c['shift']());}catch(_0x527fef){_0x4dbe2c['push'](_0x4dbe2c['shift']());}}}(a99_0x24ff,0x94f2a));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';function a99_0x1cbe(_0x588180,_0x2b71de){_0x588180=_0x588180-0x139;var _0x24ffea=a99_0x24ff();var _0x1cbea9=_0x24ffea[_0x588180];return _0x1cbea9;}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 a99_0x24ff(){var _0x231226=['3318721TGHegQ','7371JFMLDQ','8577fGGUky','2756562wigVpL','10uJLPOM','125403jczNRi','668HUYwvW','337558PspGQx','2632CJuDBf','15008630IcsHyS'];a99_0x24ff=function(){return _0x231226;};return a99_0x24ff();}export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x416487,_0x204e0c){const _0x5a923a=a100_0x3ad1,_0x4b8473=_0x416487();while(!![]){try{const _0x199faa=parseInt(_0x5a923a(0x211))/0x1+parseInt(_0x5a923a(0x200))/0x2+-parseInt(_0x5a923a(0x217))/0x3*(parseInt(_0x5a923a(0x21a))/0x4)+parseInt(_0x5a923a(0x207))/0x5+parseInt(_0x5a923a(0x214))/0x6+-parseInt(_0x5a923a(0x21b))/0x7*(parseInt(_0x5a923a(0x208))/0x8)+parseInt(_0x5a923a(0x209))/0x9*(-parseInt(_0x5a923a(0x1fc))/0xa);if(_0x199faa===_0x204e0c)break;else _0x4b8473['push'](_0x4b8473['shift']());}catch(_0x59a135){_0x4b8473['push'](_0x4b8473['shift']());}}}(a100_0x34b4,0x96fa9));import a100_0x5105ee from'chalk';function a100_0x34b4(){const _0x353d48=['\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','1597056xlgcCF','7UdTjqI','No\x20menus\x20selected.','[new]','green','test','\x20\x20JS\x20URL:','stdin','fail','has','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','red','\x20\x20Checking\x20JS\x20URL\x20reachability...','45700SakcqE','filter','path','\x20\x20Checking\x20CSS\x20URL\x20reachability...','692580FFyGAK','includes','label','No\x20local\x20pages\x20found.','trim','\x20\x20CSS\x20URL:','cancelled','2453310fSripn','1155504zKVAod','3006fPqqdl','length','error','Cancelled.','catch','succeed','isTTY','JS\x20URL\x20checked','931116klfvYP','[already\x20on\x20platform]','name','5522538rwiLlr','gray','CSS\x20URL\x20check\x20failed','3uRlOvB','CSS\x20URL\x20checked'];a100_0x34b4=function(){return _0x353d48;};return a100_0x34b4();}import{checkbox,input,confirm}from'@inquirer/prompts';import a100_0x5928dc from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x4e31de){const _0x1334e4=a100_0x3ad1;return _0x4e31de[_0x1334e4(0x20d)](_0x5f4db2=>{const _0x11a92d=_0x1334e4;if(_0x5f4db2?.[_0x11a92d(0x213)]==='ExitPromptError')throw CliErrors[_0x11a92d(0x206)]('Cancelled.');throw _0x5f4db2;});}export function startSpinner(_0x3cd240){return a100_0x5928dc({'text':_0x3cd240,'color':'cyan'})['start']();}export function stopSpinner(_0x3a2671,_0x15cb8d,_0x5c9ec5){const _0x5eb678=a100_0x3ad1;_0x5c9ec5?_0x3a2671[_0x5eb678(0x20e)](_0x15cb8d):_0x3a2671[_0x5eb678(0x1f6)](_0x15cb8d);}export async function askConfirm(_0x598f5f){return onCancel(confirm({'message':_0x598f5f,'theme':{'prefix':''}}));}export async function askJsUrl(_0x5abfdc){const _0x2bd493=a100_0x3ad1;while(!![]){const _0x4d2ed0=await onCancel(input({'message':_0x2bd493(0x1f4),'default':_0x5abfdc,'theme':{'prefix':''}}));if(_0x4d2ed0[_0x2bd493(0x204)]()==='')throw CliErrors[_0x2bd493(0x206)](_0x2bd493(0x20c));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x2bd493(0x21f)](_0x4d2ed0[_0x2bd493(0x204)]())){console['error'](a100_0x5105ee[_0x2bd493(0x1fa)]('\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'));continue;}const _0xddb1b4=startSpinner(_0x2bd493(0x1fb));try{const _0x742f6e=await isUrlReachable(_0x4d2ed0[_0x2bd493(0x204)]());stopSpinner(_0xddb1b4,_0x2bd493(0x210),_0x742f6e);if(!_0x742f6e){console[_0x2bd493(0x20b)](a100_0x5105ee[_0x2bd493(0x1fa)](_0x2bd493(0x219)));continue;}return _0x4d2ed0[_0x2bd493(0x204)]();}catch(_0x51e1d0){stopSpinner(_0xddb1b4,'JS\x20URL\x20check\x20failed',![]);throw _0x51e1d0;}}}export async function askCssUrl(_0x2afc56){const _0x53cfd5=a100_0x3ad1;while(!![]){const _0x256bd4=await onCancel(input({'message':_0x53cfd5(0x205),'default':_0x2afc56,'theme':{'prefix':''}}));if(_0x256bd4[_0x53cfd5(0x204)]()==='')throw CliErrors[_0x53cfd5(0x206)](_0x53cfd5(0x20c));if(!/^https:\/\/.+\.css(\?.*)?$/['test'](_0x256bd4['trim']())){console[_0x53cfd5(0x20b)](a100_0x5105ee[_0x53cfd5(0x1fa)]('\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'));continue;}const _0x177801=startSpinner(_0x53cfd5(0x1ff));try{const _0x1d4c2c=await isUrlReachable(_0x256bd4[_0x53cfd5(0x204)]());stopSpinner(_0x177801,_0x53cfd5(0x218),_0x1d4c2c);if(!_0x1d4c2c){console['error'](a100_0x5105ee[_0x53cfd5(0x1fa)]('\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable'));continue;}return _0x256bd4[_0x53cfd5(0x204)]();}catch(_0x218dfc){stopSpinner(_0x177801,_0x53cfd5(0x216),![]);throw _0x218dfc;}}}export async function selectPages(_0x472cba,_0x2f4fa2,_0x34c630){const _0x232c72=a100_0x3ad1,_0x4f4123=_0x472cba['map'](_0x2399a9=>({'name':_0x2399a9[_0x232c72(0x202)]+'\x20\x20'+(_0x2f4fa2[_0x232c72(0x1f7)](_0x2399a9[_0x232c72(0x1fe)])?a100_0x5105ee[_0x232c72(0x215)](_0x232c72(0x212)):a100_0x5105ee[_0x232c72(0x21e)](_0x232c72(0x21d))),'value':_0x2399a9[_0x232c72(0x202)],'checked':_0x34c630?_0x34c630['includes'](_0x2399a9[_0x232c72(0x202)]):!_0x2f4fa2['has'](_0x2399a9[_0x232c72(0x1fe)])}));if(_0x4f4123[_0x232c72(0x20a)]===0x0)throw new Error(_0x232c72(0x203));const _0x5b7a87=await onCancel(checkbox({'message':_0x232c72(0x1f9),'choices':_0x4f4123,'loop':![],'theme':{'prefix':''}}));if(_0x5b7a87[_0x232c72(0x20a)]===0x0)throw new Error(_0x232c72(0x21c));return _0x472cba[_0x232c72(0x1fd)](_0x3c7fa1=>_0x5b7a87[_0x232c72(0x201)](_0x3c7fa1[_0x232c72(0x202)]));}export function isInteractive(){const _0x5ce2e9=a100_0x3ad1;return process[_0x5ce2e9(0x1f5)][_0x5ce2e9(0x20f)]===!![];}function a100_0x3ad1(_0x4ca284,_0x4b2317){_0x4ca284=_0x4ca284-0x1f4;const _0x34b494=a100_0x34b4();let _0x3ad1e9=_0x34b494[_0x4ca284];return _0x3ad1e9;}export function requireInteractive(){const _0x2af8f2=a100_0x3ad1;if(!isInteractive())throw new Error(_0x2af8f2(0x1f8)+'Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a101_0x2ecf98=a101_0x3132;(function(_0x45934f,_0x21dc73){const _0x1404a1=a101_0x3132,_0x256d2d=_0x45934f();while(!![]){try{const _0x509b54=-parseInt(_0x1404a1(0x98))/0x1+-parseInt(_0x1404a1(0x8c))/0x2+parseInt(_0x1404a1(0x9a))/0x3*(parseInt(_0x1404a1(0x9f))/0x4)+parseInt(_0x1404a1(0xa0))/0x5+parseInt(_0x1404a1(0x96))/0x6+-parseInt(_0x1404a1(0x8d))/0x7+parseInt(_0x1404a1(0x8b))/0x8;if(_0x509b54===_0x21dc73)break;else _0x256d2d['push'](_0x256d2d['shift']());}catch(_0x5dd533){_0x256d2d['push'](_0x256d2d['shift']());}}}(a101_0xb7f1,0x23ca8));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a101_0x2ecf98(0x8e)](),a101_0x2ecf98(0x91));export function extractTitleFromComment(_0x223f7d){const _0x1b36d6=a101_0x2ecf98;try{const _0x28ce3d=readFileSync(_0x223f7d,_0x1b36d6(0x9d)),_0x326265=_0x28ce3d['match'](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x326265&&_0x326265[0x1]){const _0x4a48ef=_0x326265[0x1],_0x53cb57=_0x4a48ef[_0x1b36d6(0x8f)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x53cb57&&_0x53cb57[0x1])return _0x53cb57[0x1][_0x1b36d6(0x9b)]();}let _0x53eab0=null;const _0x2963c0=_0x28ce3d['match'](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x2963c0&&_0x2963c0[0x1]&&(_0x53eab0=_0x2963c0[0x1]);if(!_0x53eab0){const _0x1d0597=_0x28ce3d[_0x1b36d6(0x8f)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x1d0597&&_0x1d0597[0x1]&&(_0x53eab0=_0x1d0597[0x1]);}if(_0x53eab0){const _0x5c076e=new RegExp('\x5cb'+_0x53eab0+_0x1b36d6(0x92)),_0x4a68b5=_0x28ce3d[_0x1b36d6(0x8f)](_0x5c076e);if(_0x4a68b5&&_0x4a68b5[0x1])return _0x4a68b5[0x1];return _0x53eab0;}return null;}catch(_0x17f8a6){return null;}}function a101_0x3132(_0x3f6e27,_0x5b149a){_0x3f6e27=_0x3f6e27-0x89;const _0xb7f19f=a101_0xb7f1();let _0x313238=_0xb7f19f[_0x3f6e27];return _0x313238;}export function getLocalPages(_0xf90e99=pagesDir,_0x1e88f7=pagesDir){const _0x525abb=a101_0x2ecf98;let _0x3d8b51=[];const _0x5990a9=readdirSync(_0xf90e99);return _0x5990a9[_0x525abb(0xa1)](_0x20c182=>{const _0x11e966=_0x525abb,_0x43fab3=join(_0xf90e99,_0x20c182),_0x518271=statSync(_0x43fab3);if(_0x518271&&_0x518271[_0x11e966(0x93)]())_0x3d8b51=_0x3d8b51[_0x11e966(0xa2)](getLocalPages(_0x43fab3,_0x1e88f7));else{if(_0x20c182[_0x11e966(0x95)]('.tsx')){let _0x47d7d0=relative(_0x1e88f7,_0x43fab3);_0x47d7d0[_0x11e966(0x95)](_0x11e966(0x8a))?_0x47d7d0=_0x47d7d0['replace'](/index\.tsx$/,''):_0x47d7d0=_0x47d7d0[_0x11e966(0x97)](/\.tsx$/,'');_0x47d7d0[_0x11e966(0x95)](sep)&&(_0x47d7d0=_0x47d7d0[_0x11e966(0x89)](0x0,-0x1));const _0x314a3b=_0x47d7d0[_0x11e966(0x9c)](sep)['join']('/'),_0x51c088=extractTitleFromComment(_0x43fab3),_0x5c7e83=_0x51c088||_0x314a3b;_0x3d8b51[_0x11e966(0x99)]({'path':_0x314a3b[_0x11e966(0x9e)]('$',':'),'label':_0x5c7e83});}}}),_0x3d8b51[_0x525abb(0x90)](_0x309a8c=>_0x309a8c[_0x525abb(0x94)]!=='');}function a101_0xb7f1(){const _0x5c2429=['src/pages','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','isDirectory','path','endsWith','1654800HzeUkX','replace','121799jrEhBB','push','639987ADFlzE','trim','split','utf-8','replaceAll','4PnOQmJ','40090IukoFD','forEach','concat','slice','index.tsx','2662880WEXVKd','562720XiVFQv','1961736cfynkd','cwd','match','filter'];a101_0xb7f1=function(){return _0x5c2429;};return a101_0xb7f1();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4bd830,_0x438e80){const _0xbf4635=a102_0x3672,_0x1b74a2=_0x4bd830();while(!![]){try{const _0x2a2fb2=parseInt(_0xbf4635(0x10c))/0x1+parseInt(_0xbf4635(0x112))/0x2+parseInt(_0xbf4635(0x109))/0x3+-parseInt(_0xbf4635(0x103))/0x4*(parseInt(_0xbf4635(0x100))/0x5)+parseInt(_0xbf4635(0xfb))/0x6+parseInt(_0xbf4635(0x10e))/0x7*(parseInt(_0xbf4635(0x110))/0x8)+parseInt(_0xbf4635(0xf8))/0x9*(-parseInt(_0xbf4635(0x113))/0xa);if(_0x2a2fb2===_0x438e80)break;else _0x1b74a2['push'](_0x1b74a2['shift']());}catch(_0x38572c){_0x1b74a2['push'](_0x1b74a2['shift']());}}}(a102_0x5481,0xdc2a7));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(_0x285720){const _0x22ff2f=a102_0x3672,_0x278ec4=[];return!isValidJsHttpsUrl(_0x285720)&&_0x278ec4[_0x22ff2f(0x10f)]('JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'),{'ok':_0x278ec4[_0x22ff2f(0x104)]===0x0,'errors':_0x278ec4};}export function validateCssUrl(_0x5c9522){const _0x153452=a102_0x3672,_0x3c5c68=[];return!isValidCssHttpsUrl(_0x5c9522)&&_0x3c5c68[_0x153452(0x10f)](_0x153452(0x107)),{'ok':_0x3c5c68[_0x153452(0x104)]===0x0,'errors':_0x3c5c68};}export async function validateJsUrlReachable(_0x5f5177){const _0x32f95e=a102_0x3672,_0x2fbdba=validateJsUrl(_0x5f5177);if(!_0x2fbdba['ok'])return _0x2fbdba;const _0x70b5df=await isUrlReachable(_0x5f5177);if(!_0x70b5df)_0x2fbdba['errors'][_0x32f95e(0x10f)](_0x32f95e(0x10d));return{'ok':_0x2fbdba[_0x32f95e(0xf6)][_0x32f95e(0x104)]===0x0,'errors':_0x2fbdba['errors']};}export async function validateCssUrlReachable(_0x2f1728){const _0x22468f=a102_0x3672,_0x5a15c3=validateCssUrl(_0x2f1728);if(!_0x5a15c3['ok'])return _0x5a15c3;const _0xf41b4a=await isUrlReachable(_0x2f1728);if(!_0xf41b4a)_0x5a15c3[_0x22468f(0xf6)][_0x22468f(0x10f)](_0x22468f(0x105));return{'ok':_0x5a15c3['errors'][_0x22468f(0x104)]===0x0,'errors':_0x5a15c3['errors']};}export function buildCompareRows(_0x8c0f86,_0x4d1f4e){const _0x725821=a102_0x3672;return _0x8c0f86['map'](_0x33addf=>({'label':_0x33addf[_0x725821(0xf7)],'path':_0x33addf[_0x725821(0x108)],'local':!![],'online':_0x4d1f4e[_0x725821(0x10a)](_0x33addf[_0x725821(0x108)])}));}export function filterNewPages(_0x1a3577,_0x333c0d,_0x1510f0){const _0x513463=a102_0x3672;if(_0x1510f0&&_0x1510f0['length']>0x0){const _0xac75d3=new Set(_0x1510f0['map'](_0x1268e0=>_0x1268e0[_0x513463(0xfd)]())),_0x1d75f0=_0x1a3577['filter'](_0x2edb1e=>_0xac75d3[_0x513463(0x10a)](_0x2edb1e[_0x513463(0xf7)]));if(_0x1d75f0[_0x513463(0x104)]===0x0)throw new Error('No\x20local\x20pages\x20matched\x20labels:\x20'+[..._0xac75d3][_0x513463(0x10b)](',\x20'));return _0x1d75f0;}return _0x1a3577[_0x513463(0xfc)](_0x42fbae=>!_0x333c0d[_0x513463(0x10a)](_0x42fbae['path']));}export function filterPagesByLabels(_0x318f34,_0x131056){const _0x147a53=a102_0x3672,_0x3ab357=[],_0x4f7d04=[];for(const _0x55ef63 of _0x131056){const _0x21192b=_0x55ef63['trim'](),_0x1dffef=_0x318f34[_0x147a53(0xff)](_0x306361=>_0x306361['label']===_0x21192b);if(_0x1dffef)_0x3ab357[_0x147a53(0x10f)](_0x1dffef);else _0x4f7d04[_0x147a53(0x10f)](_0x55ef63);}return{'matched':_0x3ab357,'unmatched':_0x4f7d04};}function a102_0x3672(_0x518cef,_0x1c05f1){_0x518cef=_0x518cef-0xf6;const _0x54810b=a102_0x5481();let _0x36724b=_0x54810b[_0x518cef];return _0x36724b;}export async function doCreateMenus(_0x139fe4,_0x4a486b,_0x240424,_0x59eed7){const _0x406c4c=a102_0x3672,_0x496999=await createMenus(_0x139fe4,_0x4a486b,_0x240424,_0x59eed7);return{'created':_0x496999[_0x406c4c(0x104)],'failed':0x0,'labels':_0x240424[_0x406c4c(0xf9)](_0x20cd05=>_0x20cd05[_0x406c4c(0xf7)]),'menus':_0x496999};}export function filterMenusWithResources(_0x496d38){const _0x582e20=a102_0x3672;return _0x496d38['filter'](_0x3e5fdb=>_0x3e5fdb[_0x582e20(0xfe)]['length']>0x0);}export async function doUpdateCdnUrls(_0x23d1b8,_0x5a530f,_0x4568af,_0x205055){const _0x2b6fd3=a102_0x3672,_0x45b9a2=_0x4568af[_0x2b6fd3(0xfc)](_0x128067=>_0x128067['resources'][_0x2b6fd3(0x104)]>0x0),_0x523003=await Promise[_0x2b6fd3(0x101)](_0x45b9a2[_0x2b6fd3(0xf9)](_0x2ade0b=>updateMenuCdnUrl(_0x23d1b8,_0x5a530f,{'id':_0x2ade0b['id'],'label':_0x2ade0b[_0x2b6fd3(0xf7)],'path':_0x2ade0b[_0x2b6fd3(0x108)],'resources':_0x205055,'extend':_0x2ade0b[_0x2b6fd3(0x114)]??null}))),_0x5c21e8=_0x523003[_0x2b6fd3(0xfc)](_0x44e6f1=>_0x44e6f1[_0x2b6fd3(0x102)]===_0x2b6fd3(0xfa))[_0x2b6fd3(0xf9)](_0x6197e1=>_0x6197e1[_0x2b6fd3(0x106)]),_0x3cf2ee=_0x523003[_0x2b6fd3(0xfc)](_0x271794=>_0x271794['status']===_0x2b6fd3(0x111))[_0x2b6fd3(0x104)];return{'updated':_0x5c21e8[_0x2b6fd3(0x104)],'failed':_0x3cf2ee,'menus':_0x5c21e8};}function a102_0x5481(){const _0x5af2f8=['8509194aljgJM','filter','trim','resources','find','305vtzCZT','allSettled','status','66228hfsiJQ','length','CSS\x20URL\x20is\x20unreachable','value','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','path','3339003tJBpew','has','join','320850mlgiRO','JS\x20URL\x20is\x20unreachable','21emDGei','push','1641192wWtYDt','rejected','2904750rwLomG','10LRfmvV','extend','errors','label','27072864cEizvG','map','fulfilled'];a102_0x5481=function(){return _0x5af2f8;};return a102_0x5481();}export async function fetchMenuData(_0xc49a2a,_0x3753c4){const _0x781bd9=a102_0x3672,_0x4c9b75=getLocalPages(),_0x2da06f=await getOnlineMenuList(_0xc49a2a,_0x3753c4),_0x51608d=new Set(_0x2da06f[_0x781bd9(0xf9)](_0x449edc=>_0x449edc[_0x781bd9(0x108)]));return{'localPages':_0x4c9b75,'onlineMenuList':_0x2da06f,'onlinePaths':_0x51608d};}export async function fetchOnlineMenuList(_0x434683,_0x4d8e83){return getOnlineMenuList(_0x434683,_0x4d8e83);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5eaec4,_0x14a788){const _0x5c7255=a103_0x3fac,_0x1a1856=_0x5eaec4();while(!![]){try{const _0x5ab675=parseInt(_0x5c7255(0x174))/0x1+-parseInt(_0x5c7255(0x16f))/0x2+-parseInt(_0x5c7255(0x163))/0x3+parseInt(_0x5c7255(0x162))/0x4+-parseInt(_0x5c7255(0x164))/0x5*(parseInt(_0x5c7255(0x15d))/0x6)+parseInt(_0x5c7255(0x160))/0x7*(parseInt(_0x5c7255(0x15e))/0x8)+parseInt(_0x5c7255(0x15a))/0x9*(parseInt(_0x5c7255(0x168))/0xa);if(_0x5ab675===_0x14a788)break;else _0x1a1856['push'](_0x1a1856['shift']());}catch(_0x164cd0){_0x1a1856['push'](_0x1a1856['shift']());}}}(a103_0x54c3,0xc945a));import{getEnv,isProduction}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';function a103_0x54c3(){const _0x7f0b22=['path','Menu\x20created\x20successfully:\x20','resources','Batch\x20menu\x20creation\x20completed,\x20total\x20','Creating\x20menu:\x20','children','Start\x20batch\x20menu\x20creation,\x20total\x20','info','6981507pkUegy','create-menu','procode','3732786GBmJvb','128176cCrAHW','push','336SJzLCK','label','5630280RPZSdh','96942yzVpGQ','10uAmZVk','update-menu-cdn-url','Create\x20menu\x20\x22','Fetching\x20online\x20menu\x20list...\x20(appCode:\x20','10MAhcSg','create-menus','length','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','import','map','stringify','2032230TrBplI','isArray','extend','string','parse','164752WLbngB','get-online-menu-list','Updating\x20menu\x20asset\x20links:\x20'];a103_0x54c3=function(){return _0x7f0b22;};return a103_0x54c3();}function a103_0x3fac(_0x2f0c8a,_0x5c27c9){_0x2f0c8a=_0x2f0c8a-0x156;const _0x54c33d=a103_0x54c3();let _0x3fac63=_0x54c33d[_0x2f0c8a];return _0x3fac63;}import{createMenuRecord,getMenuTree,updateMenuRecord}from'../../../core/api-client.js';export async function getOnlineMenuList(_0x234d20,_0x1ce56f){const _0x5add4f=a103_0x3fac,_0x43713c=getEnv();logger[_0x5add4f(0x159)](_0x5add4f(0x175),isProduction(_0x43713c)?_0x5add4f(0x167)+_0x234d20+')':_0x5add4f(0x16b)+_0x234d20+')');const _0xe34843=await getMenuTree(_0x234d20,_0x1ce56f);if(!_0xe34843)return logger[_0x5add4f(0x159)](_0x5add4f(0x175),'Server\x20returned\x20empty\x20menu\x20list'),[];return logger[_0x5add4f(0x159)](_0x5add4f(0x175),'Fetched\x20'+_0xe34843['length']+'\x20online\x20menus\x20successfully'),_0xe34843[_0x5add4f(0x16d)](flattenMenuItem)['flat']();}function flattenMenuItem(_0x25a88d){const _0x43afc5=a103_0x3fac;let _0x37f588=[];try{const _0xc83629=_0x25a88d[_0x43afc5(0x171)]?.[_0x43afc5(0x179)];if(typeof _0xc83629===_0x43afc5(0x172)){const _0x24242b=JSON[_0x43afc5(0x173)](_0xc83629);if(Array[_0x43afc5(0x170)](_0x24242b))_0x37f588=_0x24242b[_0x43afc5(0x16d)](String);}else Array[_0x43afc5(0x170)](_0xc83629)&&(_0x37f588=_0xc83629[_0x43afc5(0x16d)](String));}catch{}const _0x556993=[{'id':_0x25a88d['id'],'path':_0x25a88d[_0x43afc5(0x177)],'label':_0x25a88d[_0x43afc5(0x161)],'resources':_0x37f588,'extend':_0x25a88d[_0x43afc5(0x171)]??null}];if(_0x25a88d['children']&&_0x25a88d[_0x43afc5(0x157)][_0x43afc5(0x16a)]>0x0)for(const _0x2c7dbd of _0x25a88d[_0x43afc5(0x157)]){_0x556993[_0x43afc5(0x15f)](...flattenMenuItem(_0x2c7dbd));}return _0x556993;}export async function createMenu(_0x114e23,_0x50b6d5,_0x401f33){const _0x52565e=a103_0x3fac;logger[_0x52565e(0x159)](_0x52565e(0x15b),_0x52565e(0x156)+_0x401f33[_0x52565e(0x161)]+'\x20('+_0x401f33[_0x52565e(0x177)]+')');const _0x3da2f1={'appCode':_0x114e23,'type':_0x52565e(0x15c),'sort':0x0,'extend':{'loadScriptMode':_0x52565e(0x16c),'resources':_0x401f33[_0x52565e(0x179)]?JSON['stringify'](_0x401f33[_0x52565e(0x179)]):undefined},..._0x401f33},_0xa618f5=await createMenuRecord(_0x3da2f1,_0x50b6d5,_0x52565e(0x166)+_0x401f33[_0x52565e(0x161)]+'\x22');return logger['info'](_0x52565e(0x15b),_0x52565e(0x178)+_0x401f33[_0x52565e(0x161)]),_0xa618f5;}async function createSingleMenu(_0x5c9a47,_0x20ee3e,_0x45109f,_0x28be3b){const _0x323710=a103_0x3fac,_0x5b0eee={'appCode':_0x5c9a47,'type':_0x323710(0x15c),'sort':0x0,'extend':{'loadScriptMode':_0x323710(0x16c),'resources':_0x28be3b?JSON[_0x323710(0x16e)](_0x28be3b):undefined},'label':_0x45109f[_0x323710(0x161)],'path':_0x45109f[_0x323710(0x177)]},_0x256c86=await createMenuRecord(_0x5b0eee,_0x20ee3e,_0x323710(0x166)+_0x45109f[_0x323710(0x161)]+'\x22');return logger[_0x323710(0x159)](_0x323710(0x15b),'Menu\x20created\x20successfully:\x20'+_0x45109f['label']),_0x256c86;}export async function createMenus(_0x533e5f,_0x124863,_0x5334e4,_0x37b432){const _0x2107de=a103_0x3fac;logger[_0x2107de(0x159)]('create-menus',_0x2107de(0x158)+_0x5334e4[_0x2107de(0x16a)]);const _0x28a489=await Promise['all'](_0x5334e4[_0x2107de(0x16d)](_0x63e485=>createSingleMenu(_0x533e5f,_0x124863,_0x63e485,_0x37b432)));return logger[_0x2107de(0x159)](_0x2107de(0x169),_0x2107de(0x17a)+_0x5334e4['length']),_0x28a489;}export async function updateMenuCdnUrl(_0x1b8992,_0x86bab7,_0x3a23ff){const _0x504f8e=a103_0x3fac;logger[_0x504f8e(0x159)](_0x504f8e(0x165),_0x504f8e(0x176)+_0x3a23ff[_0x504f8e(0x161)]+'\x20('+_0x3a23ff['path']+')');const _0x976665={'id':_0x3a23ff['id'],'appCode':_0x1b8992,'extend':{..._0x3a23ff[_0x504f8e(0x171)]??{},'loadScriptMode':'import','resources':_0x3a23ff['resources']?JSON[_0x504f8e(0x16e)](_0x3a23ff[_0x504f8e(0x179)]):undefined}},_0x4fc832=await updateMenuRecord(_0x976665,_0x86bab7,'Update\x20menu\x20assets\x20\x22'+_0x3a23ff[_0x504f8e(0x161)]+'\x22');return logger[_0x504f8e(0x159)](_0x504f8e(0x165),'Menu\x20assets\x20synced:\x20'+_0x3a23ff[_0x504f8e(0x161)],undefined),_0x4fc832;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5ec76d,_0x54cfd8){const _0x202f52=a104_0x4d82,_0xcf3de7=_0x5ec76d();while(!![]){try{const _0x107735=parseInt(_0x202f52(0x12a))/0x1+-parseInt(_0x202f52(0x126))/0x2+parseInt(_0x202f52(0x136))/0x3*(parseInt(_0x202f52(0x137))/0x4)+-parseInt(_0x202f52(0x131))/0x5+-parseInt(_0x202f52(0x135))/0x6*(parseInt(_0x202f52(0x114))/0x7)+parseInt(_0x202f52(0x10d))/0x8+parseInt(_0x202f52(0x10c))/0x9;if(_0x107735===_0x54cfd8)break;else _0xcf3de7['push'](_0xcf3de7['shift']());}catch(_0x2f0727){_0xcf3de7['push'](_0xcf3de7['shift']());}}}(a104_0x589a,0xe4c7d));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(_0x3bed8f){const _0x3d2939=a104_0x4d82,_0xf325c3=[];return _0x3bed8f[_0x3d2939(0x118)]&&!isValidJsHttpsUrl(_0x3bed8f['jsUrl'])&&_0xf325c3[_0x3d2939(0x116)]({'field':_0x3d2939(0x118),'message':_0x3d2939(0x12e)}),_0x3bed8f[_0x3d2939(0x124)]&&!isValidCssHttpsUrl(_0x3bed8f['cssUrl'])&&_0xf325c3[_0x3d2939(0x116)]({'field':'cssUrl','message':'CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'}),_0xf325c3;}export async function runMenuSyncCore(_0xd90351,_0x150916,_0x57e550=[],_0x3e1a70){const _0x332ccb=a104_0x4d82,_0x3033c5=parseParamsFlag(_0x3e1a70),_0x27204e=_0x57e550[_0x332ccb(0x111)]>0x0?_0x57e550:_0x3033c5[_0x332ccb(0x125)],_0x3fa281=_0x3033c5[_0x332ccb(0x118)],_0x17fb6f=_0x3033c5[_0x332ccb(0x124)],_0x5bc666=[];if(_0x3fa281)_0x5bc666[_0x332ccb(0x116)](_0x3fa281);if(_0x17fb6f)_0x5bc666[_0x332ccb(0x116)](_0x17fb6f);const _0x1fa4c6=validateParams(_0x3033c5);if(_0x1fa4c6[_0x332ccb(0x111)]>0x0){const _0x53bacd=_0x1fa4c6[_0x332ccb(0x11a)](_0x4c50bf=>_0x332ccb(0x11d)+_0x4c50bf[_0x332ccb(0x132)]+':\x20'+_0x4c50bf[_0x332ccb(0x112)])['join'](';\x20');throw new Error(_0x332ccb(0x121)+_0x53bacd);}logger[_0x332ccb(0x113)](process[_0x332ccb(0x10e)]()),logger[_0x332ccb(0x12d)](_0x332ccb(0x12f),_0x332ccb(0x129),{'appCode':_0xd90351,'selectedCount':_0x27204e?.[_0x332ccb(0x111)],'jsUrl':_0x3fa281,'cssUrl':_0x17fb6f});if(_0x3fa281){const _0x4fb1e0=await isUrlReachable(_0x3fa281);if(!_0x4fb1e0)throw new Error(_0x332ccb(0x133)+_0x3fa281);}if(_0x17fb6f){const _0x4f68e8=await isUrlReachable(_0x17fb6f);if(!_0x4f68e8)throw new Error('CSS\x20URL\x20is\x20unreachable:\x20'+_0x17fb6f);}const _0x532900=getLocalPages();if(_0x532900[_0x332ccb(0x111)]===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};const _0x54f153=await getOnlineMenuList(_0xd90351,_0x150916),_0x36c25b=new Set(_0x54f153[_0x332ccb(0x11a)](_0x232c5b=>_0x232c5b[_0x332ccb(0x11c)]));let _0x19f7e2;if(_0x27204e&&_0x27204e['length']>0x0){const _0x320d1e=new Set(_0x27204e['map'](_0xd16148=>_0xd16148[_0x332ccb(0x123)]()));_0x19f7e2=_0x532900[_0x332ccb(0x134)](_0x1fae78=>_0x320d1e[_0x332ccb(0x12c)](_0x1fae78[_0x332ccb(0x120)]));if(_0x19f7e2['length']===0x0){const _0x2351b5=_0x532900['map'](_0x1d5019=>_0x1d5019[_0x332ccb(0x120)])['join'](',\x20');throw new Error('No\x20local\x20pages\x20matched\x20labels:\x20'+[..._0x320d1e]['join'](',\x20')+_0x332ccb(0x12b)+_0x2351b5);}}else _0x19f7e2=_0x532900[_0x332ccb(0x134)](_0x20829e=>!_0x36c25b['has'](_0x20829e['path']));if(_0x19f7e2[_0x332ccb(0x111)]===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};const _0x5d6cbc=await createMenus(_0xd90351,_0x150916,_0x19f7e2,_0x5bc666[_0x332ccb(0x111)]>0x0?_0x5bc666:undefined);return logger[_0x332ccb(0x12d)]('menu-sync',_0x332ccb(0x127),{'count':_0x19f7e2[_0x332ccb(0x111)],'resources':_0x5bc666}),{'created':_0x5d6cbc[_0x332ccb(0x111)],'skipped':![],'targetPages':_0x19f7e2,'menus':_0x5d6cbc};}export async function readPageLabelsFromStdin(){const _0x5ad352=a104_0x4d82;if(!process[_0x5ad352(0x122)][_0x5ad352(0x115)]&&!process['stdin'][_0x5ad352(0x130)])return new Promise(_0x4dba86=>{const _0x5c2b34=_0x5ad352,_0x2849c8=[];process[_0x5c2b34(0x122)]['on'](_0x5c2b34(0x11f),_0x4bba27=>_0x2849c8[_0x5c2b34(0x116)](_0x4bba27)),process[_0x5c2b34(0x122)]['on'](_0x5c2b34(0x128),()=>{const _0x2c27a1=_0x5c2b34,_0x14f536=Buffer['concat'](_0x2849c8)[_0x2c27a1(0x110)](_0x2c27a1(0x117)),_0x23e94f=_0x14f536['split']('\x0a')[_0x2c27a1(0x11a)](_0x2fb211=>_0x2fb211['trim']())['filter'](_0x584a52=>_0x584a52[_0x2c27a1(0x111)]>0x0&&!_0x584a52[_0x2c27a1(0x119)]('#'));_0x4dba86(_0x23e94f);}),setTimeout(()=>_0x4dba86([]),0x1f4);});return[];}function parseParamsFlag(_0x1b0c34){const _0x3a8939=a104_0x4d82;if(!_0x1b0c34||typeof _0x1b0c34!==_0x3a8939(0x11e))return{};try{const _0x226635=JSON['parse'](_0x1b0c34);if(typeof _0x226635!=='object'||_0x226635===null||Array[_0x3a8939(0x10f)](_0x226635))return{};return{'selectedLabels':Array['isArray'](_0x226635[_0x3a8939(0x11b)])?_0x226635['pages'][_0x3a8939(0x11a)](String):undefined,'jsUrl':typeof _0x226635[_0x3a8939(0x118)]===_0x3a8939(0x11e)?_0x226635[_0x3a8939(0x118)][_0x3a8939(0x123)]():undefined,'cssUrl':typeof _0x226635[_0x3a8939(0x124)]===_0x3a8939(0x11e)?_0x226635[_0x3a8939(0x124)][_0x3a8939(0x123)]():undefined};}catch{return{};}}function a104_0x4d82(_0x450afe,_0x4ecd06){_0x450afe=_0x450afe-0x10c;const _0x589a73=a104_0x589a();let _0x4d82fd=_0x589a73[_0x450afe];return _0x4d82fd;}function a104_0x589a(){const _0x6b9cd4=['Start\x20non-interactive\x20menu\x20sync','1057063vasNwO','\x0a\x20\x20Available\x20local\x20pages:\x20','has','info','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','menu-sync','readableEnded','4296640arHyZI','field','JS\x20URL\x20is\x20unreachable:\x20','filter','24HHSGnp','72984CwyWKC','236UlISzU','10346643hzbmbB','1428152KwJeOJ','cwd','isArray','toString','length','message','setLogPath','2963821XfiUYJ','isTTY','push','utf8','jsUrl','startsWith','map','pages','path','--params.','string','data','label','Invalid\x20--params:\x20','stdin','trim','cssUrl','selectedLabels','661072bNUJWt','Menu\x20sync\x20completed','end'];a104_0x589a=function(){return _0x6b9cd4;};return a104_0x589a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2ba04b,_0x4855f1){const _0x36fc1a=a106_0x51d0,_0x1aac55=_0x2ba04b();while(!![]){try{const _0x360618=parseInt(_0x36fc1a(0xaf))/0x1*(parseInt(_0x36fc1a(0x9a))/0x2)+-parseInt(_0x36fc1a(0xa6))/0x3+parseInt(_0x36fc1a(0x87))/0x4*(-parseInt(_0x36fc1a(0x8b))/0x5)+-parseInt(_0x36fc1a(0xa8))/0x6+parseInt(_0x36fc1a(0x80))/0x7+parseInt(_0x36fc1a(0x8c))/0x8+parseInt(_0x36fc1a(0x83))/0x9*(-parseInt(_0x36fc1a(0x89))/0xa);if(_0x360618===_0x4855f1)break;else _0x1aac55['push'](_0x1aac55['shift']());}catch(_0x365f57){_0x1aac55['push'](_0x1aac55['shift']());}}}(a106_0x512f,0x4b606));import{updateMenuCdnUrl,getOnlineMenuList}from'../../../commands/menu/shared/service.js';function a106_0x512f(){const _0x10544e=['JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','label','allSettled','parse','unshift','CSS\x20URL\x20is\x20unreachable:\x20','path','menu\x20update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22','join','Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.','422npHdkG','length','status','map','Invalid\x20--mode:\x20','.css','menu-update','menu\x20update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22','isArray','mode','resources','patch','680778mlJURB','dryRun','2377578AKKYeB','message','Invalid\x20--params:\x20','setLogPath','Invalid\x20--params:\x20menu\x20update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20','.js','value','650NfAeOL','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL',').\x20','cwd','cssUrl','some','field','--params.','after','jsUrl','JS\x20URL\x20is\x20unreachable:\x20','Start\x20non-interactive\x20menu\x20update','Menu\x20update\x20completed','3984848pVhrQL','trim','info','234MoLRbq','fulfilled','push','toLowerCase','47588YDGyBA','rejected','26630HrXlXM','filter','10MDZzGC','2548392sTCWUV','string','\x22\x20(','replace'];a106_0x512f=function(){return _0x10544e;};return a106_0x512f();}import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';function validateParams(_0x341aad){const _0x5dd759=a106_0x51d0,_0x1a8346=[];return _0x341aad[_0x5dd759(0x7c)]&&!isValidJsHttpsUrl(_0x341aad['jsUrl'])&&_0x1a8346['push']({'field':_0x5dd759(0x7c),'message':_0x5dd759(0x90)}),_0x341aad[_0x5dd759(0xb3)]&&!isValidCssHttpsUrl(_0x341aad[_0x5dd759(0xb3)])&&_0x1a8346[_0x5dd759(0x85)]({'field':'cssUrl','message':_0x5dd759(0xb0)}),_0x1a8346;}export async function runMenuUpdateCore(_0x5064cf,_0x3a33eb,_0x13f847,_0x14e87f={}){const _0x34461f=a106_0x51d0,_0x2b1838=parseUpdateParamsFlag(_0x13f847),_0x1627d3=normalizeMode(_0x14e87f[_0x34461f(0xa3)]),_0x59dbd8=[];if(_0x2b1838[_0x34461f(0x7c)])_0x59dbd8[_0x34461f(0x85)](_0x2b1838[_0x34461f(0x7c)]);if(_0x2b1838[_0x34461f(0xb3)])_0x59dbd8['push'](_0x2b1838[_0x34461f(0xb3)]);const _0x400c5f=validateParams(_0x2b1838);if(_0x400c5f[_0x34461f(0x9b)]>0x0){const _0x3e086f=_0x400c5f[_0x34461f(0x9d)](_0x1ab836=>_0x34461f(0xb6)+_0x1ab836[_0x34461f(0xb5)]+':\x20'+_0x1ab836[_0x34461f(0xa9)])[_0x34461f(0x98)](';\x20');throw new Error(_0x34461f(0xaa)+_0x3e086f);}if(_0x59dbd8[_0x34461f(0x9b)]===0x0)throw new Error(_0x34461f(0xac)+_0x34461f(0x99));logger[_0x34461f(0xab)](process[_0x34461f(0xb2)]()),logger['info'](_0x34461f(0xa0),_0x34461f(0x7e),{'appCode':_0x5064cf,'jsUrl':_0x2b1838[_0x34461f(0x7c)],'cssUrl':_0x2b1838[_0x34461f(0xb3)],'mode':_0x1627d3,'dryRun':_0x14e87f[_0x34461f(0xa7)]===!![]});if(_0x2b1838[_0x34461f(0x7c)]){const _0x38e026=await isUrlReachable(_0x2b1838[_0x34461f(0x7c)]);if(!_0x38e026)throw new Error(_0x34461f(0x7d)+_0x2b1838[_0x34461f(0x7c)]);}if(_0x2b1838[_0x34461f(0xb3)]){const _0x1c3015=await isUrlReachable(_0x2b1838[_0x34461f(0xb3)]);if(!_0x1c3015)throw new Error(_0x34461f(0x95)+_0x2b1838[_0x34461f(0xb3)]);}const _0x8a723a=await getOnlineMenuList(_0x5064cf,_0x3a33eb),_0x265993=_0x8a723a[_0x34461f(0x8a)](_0x4c7d33=>_0x4c7d33[_0x34461f(0xa4)]['length']>0x0);if(_0x265993[_0x34461f(0x9b)]===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x14e87f[_0x34461f(0xa7)]===!![]};const _0x268025=_0x265993['map'](_0x2744fa=>buildMenuUpdateDiff(_0x2744fa,_0x2b1838,_0x1627d3,_0x14e87f['force']===!![]));if(_0x14e87f['dryRun'])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x268025};const _0x170683=await Promise[_0x34461f(0x92)](_0x265993['map']((_0x44ffc8,_0x4a307c)=>updateMenuCdnUrl(_0x5064cf,_0x3a33eb,{'id':_0x44ffc8['id'],'label':_0x44ffc8[_0x34461f(0x91)],'path':_0x44ffc8[_0x34461f(0x96)],'resources':_0x268025[_0x4a307c][_0x34461f(0x7b)][_0x34461f(0xa4)],'extend':_0x44ffc8['extend']??null}))),_0x2e07d7=_0x170683['filter'](_0x3ee611=>_0x3ee611[_0x34461f(0x9c)]===_0x34461f(0x84))[_0x34461f(0x9d)](_0x293f94=>_0x293f94[_0x34461f(0xae)]),_0x429e61=_0x170683[_0x34461f(0x8a)](_0x9de278=>_0x9de278['status']===_0x34461f(0x88))[_0x34461f(0x9b)];return logger[_0x34461f(0x82)](_0x34461f(0xa0),_0x34461f(0x7f),{'count':_0x265993['length'],'resources':_0x59dbd8}),{'updated':_0x2e07d7['length'],'failed':_0x429e61,'skipped':![],'menus':_0x2e07d7};}function normalizeMode(_0x3e41bb){const _0x44ae69=a106_0x51d0;if(!_0x3e41bb)return _0x44ae69(0x8f);if(_0x3e41bb==='replace'||_0x3e41bb===_0x44ae69(0xa5))return _0x3e41bb;throw new Error(_0x44ae69(0x9e)+_0x3e41bb+'.\x20Allowed\x20values:\x20replace,\x20patch');}function buildMenuUpdateDiff(_0x43e75f,_0x4845bf,_0x325c09,_0x361b3e){const _0x1f9b39=a106_0x51d0,_0x32a63c=[..._0x43e75f[_0x1f9b39(0xa4)]],_0x25159c=_0x325c09===_0x1f9b39(0xa5)?patchResources(_0x32a63c,_0x4845bf):replaceResources(_0x4845bf),_0x5583b8=[],_0x4d94f1=_0x32a63c[_0x1f9b39(0xb4)](isJsResource),_0x6f7980=_0x25159c['some'](isJsResource);if(_0x4d94f1&&!_0x6f7980){const _0x9fe541=_0x1f9b39(0xa1)+_0x43e75f[_0x1f9b39(0x91)]+'\x22\x20('+_0x43e75f[_0x1f9b39(0x96)]+_0x1f9b39(0xb1)+'Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.';if(!_0x361b3e)throw new Error(_0x9fe541);_0x5583b8[_0x1f9b39(0x85)](_0x9fe541);}const _0x38602b=_0x32a63c[_0x1f9b39(0xb4)](isCssResource),_0x3a1d84=_0x25159c['some'](isCssResource);return _0x38602b&&!_0x3a1d84&&_0x5583b8[_0x1f9b39(0x85)](_0x1f9b39(0x97)+_0x43e75f[_0x1f9b39(0x91)]+_0x1f9b39(0x8e)+_0x43e75f[_0x1f9b39(0x96)]+').'),{'id':_0x43e75f['id'],'label':_0x43e75f[_0x1f9b39(0x91)],'path':_0x43e75f[_0x1f9b39(0x96)],'mode':_0x325c09,'before':{'resources':_0x32a63c},'after':{'resources':_0x25159c},'warnings':_0x5583b8};}function replaceResources(_0x231fef){const _0x201cf6=a106_0x51d0;return[_0x231fef[_0x201cf6(0x7c)],_0x231fef[_0x201cf6(0xb3)]][_0x201cf6(0x8a)](_0x585071=>!!_0x585071);}function patchResources(_0x2e26fe,_0x475c70){const _0x87aa9e=a106_0x51d0;let _0x64731b=![],_0x28a8bd=![];const _0xbb0ef4=[];for(const _0x105d88 of _0x2e26fe){if(isJsResource(_0x105d88)){if(_0x475c70[_0x87aa9e(0x7c)]&&!_0x64731b)_0xbb0ef4['push'](_0x475c70['jsUrl']),_0x64731b=!![];else!_0x475c70['jsUrl']&&_0xbb0ef4['push'](_0x105d88);continue;}if(isCssResource(_0x105d88)){if(_0x475c70[_0x87aa9e(0xb3)]&&!_0x28a8bd)_0xbb0ef4[_0x87aa9e(0x85)](_0x475c70[_0x87aa9e(0xb3)]),_0x28a8bd=!![];else!_0x475c70[_0x87aa9e(0xb3)]&&_0xbb0ef4['push'](_0x105d88);continue;}_0xbb0ef4[_0x87aa9e(0x85)](_0x105d88);}return _0x475c70[_0x87aa9e(0x7c)]&&!_0x64731b&&_0xbb0ef4[_0x87aa9e(0x94)](_0x475c70[_0x87aa9e(0x7c)]),_0x475c70['cssUrl']&&!_0x28a8bd&&_0xbb0ef4[_0x87aa9e(0x85)](_0x475c70[_0x87aa9e(0xb3)]),_0xbb0ef4;}function a106_0x51d0(_0x1d4774,_0x1abbd6){_0x1d4774=_0x1d4774-0x7b;const _0x512fb0=a106_0x512f();let _0x51d07a=_0x512fb0[_0x1d4774];return _0x51d07a;}function isJsResource(_0x5603f3){const _0x474285=a106_0x51d0;return stripQuery(_0x5603f3)[_0x474285(0x86)]()['endsWith'](_0x474285(0xad));}function isCssResource(_0x493177){const _0x32f597=a106_0x51d0;return stripQuery(_0x493177)['toLowerCase']()['endsWith'](_0x32f597(0x9f));}function stripQuery(_0x40d9cf){return _0x40d9cf['split']('?')[0x0]??_0x40d9cf;}function parseUpdateParamsFlag(_0x51397a){const _0x2a6af0=a106_0x51d0;if(!_0x51397a||typeof _0x51397a!==_0x2a6af0(0x8d))return{};try{const _0x5dd651=JSON[_0x2a6af0(0x93)](_0x51397a);if(typeof _0x5dd651!=='object'||_0x5dd651===null||Array[_0x2a6af0(0xa2)](_0x5dd651))return{};return{'jsUrl':typeof _0x5dd651[_0x2a6af0(0x7c)]==='string'?_0x5dd651[_0x2a6af0(0x7c)][_0x2a6af0(0x81)]():undefined,'cssUrl':typeof _0x5dd651[_0x2a6af0(0xb3)]==='string'?_0x5dd651['cssUrl'][_0x2a6af0(0x81)]():undefined};}catch{return{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a107_0x58ce(_0x35cd42,_0x56a7dc){_0x35cd42=_0x35cd42-0xb6;const _0xc4fc4a=a107_0xc4fc();let _0x58ce10=_0xc4fc4a[_0x35cd42];return _0x58ce10;}(function(_0x3471d6,_0x56bd4a){const _0x19c714=a107_0x58ce,_0x5db8b7=_0x3471d6();while(!![]){try{const _0x378684=-parseInt(_0x19c714(0xc2))/0x1+parseInt(_0x19c714(0xbd))/0x2+parseInt(_0x19c714(0xc1))/0x3*(parseInt(_0x19c714(0xb8))/0x4)+parseInt(_0x19c714(0xbb))/0x5+parseInt(_0x19c714(0xc0))/0x6*(parseInt(_0x19c714(0xba))/0x7)+parseInt(_0x19c714(0xbc))/0x8*(parseInt(_0x19c714(0xbf))/0x9)+parseInt(_0x19c714(0xc3))/0xa*(-parseInt(_0x19c714(0xb9))/0xb);if(_0x378684===_0x56bd4a)break;else _0x5db8b7['push'](_0x5db8b7['shift']());}catch(_0x90371b){_0x5db8b7['push'](_0x5db8b7['shift']());}}}(a107_0xc4fc,0x3b958));function a107_0xc4fc(){const _0x1786da=['100oswWqF','209jJKkTk','14dRMMhR','1529520ybEJlw','328VnXHhb','486184XEuaCC','test','30681cQRLtH','535962SeDmIV','51993YIePgz','70291IvyqoR','519130plKEHS','trim','HEAD'];a107_0xc4fc=function(){return _0x1786da;};return a107_0xc4fc();}export function isValidJsHttpsUrl(_0x12e2cc){const _0x1a3344=a107_0x58ce;return/^https:\/\/.+\.js(\?.*)?$/[_0x1a3344(0xbe)](_0x12e2cc[_0x1a3344(0xb6)]());}export function isValidCssHttpsUrl(_0x29cf04){const _0x17a33f=a107_0x58ce;return/^https:\/\/.+\.css(\?.*)?$/[_0x17a33f(0xbe)](_0x29cf04[_0x17a33f(0xb6)]());}export async function isUrlReachable(_0x47462e){const _0x178a0e=a107_0x58ce;try{const _0x234a72=await fetch(_0x47462e,{'method':_0x178a0e(0xb7)});return _0x234a72['ok'];}catch{return![];}}
|