test_research4 0.5.8 → 0.5.10
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/index.js +1 -1
- package/package.json +1 -1
- package/src/client.js +1 -1
- package/src/config.js +1 -1
- package/src/lib/OrgWatcher.js +1 -1
- package/src/lib/auditTrailDownloader.js +1 -1
- package/src/lib/handlerRegistry.js +1 -1
- package/src/lib/icons.js +1 -1
- package/src/lib/initialization.js +1 -1
- package/src/lib/logger.js +1 -1
- package/src/lib/mcpApps/manifest.js +1 -1
- package/src/lib/mcpApps/paths.js +1 -1
- package/src/lib/mcpApps/registerResources.js +1 -1
- package/src/lib/mcpApps/toolMeta.js +1 -1
- package/src/lib/networkUtils.js +1 -1
- package/src/lib/salesforceServices.js +1 -1
- package/src/lib/telemetry.js +1 -1
- package/src/lib/tempManager.js +1 -1
- package/src/lib/transport.js +1 -1
- package/src/lib/versionManager.js +1 -1
- package/src/mcp-server.js +1 -1
- package/src/prompts/apex_run_script.js +1 -1
- package/src/prompts/call_all_tools.js +1 -1
- package/src/prompts/org_onboarding.js +1 -1
- package/src/state.js +1 -1
- package/src/static/bundles/mcp-apps/get-apex-class-code-coverage/mcp-app.html +444 -0
- package/src/static/bundles/mcp-apps/run-apex-test/mcp-app.html +475 -0
- package/src/tools/apex_debug_logs.js +1 -1
- package/src/tools/deploy_metadata.js +1 -1
- package/src/tools/describe_object.js +1 -1
- package/src/tools/execute_queries_and_dml.js +1 -1
- package/src/tools/find_record.js +1 -0
- package/src/tools/find_record.md.pam +1 -0
- package/src/tools/generate_metadata.js +1 -1
- package/src/tools/get_apex_class_code_coverage.js +1 -1
- package/src/tools/get_recently_viewed_records.js +1 -1
- package/src/tools/get_record.js +1 -1
- package/src/tools/get_setup_audit_trail.js +1 -1
- package/src/tools/invoke_apex_rest_resource.js +1 -1
- package/src/tools/run_anonymous_apex.js +1 -1
- package/src/tools/run_apex_test.js +1 -1
- package/src/tools/run_apex_test.md.pam +1 -1
- package/src/tools/trigger_execution_order.js +1 -1
- package/src/tools/utils.js +1 -1
- package/src/utils.js +1 -1
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a0_0x22d4(){const _0x113fb5=['\x41\x68\x72\x30\x43\x66\x62\x56\x43\x4e\x71','\x79\x30\x72\x76\x74\x4c\x79','\x69\x63\x61\x54\x6c\x77\x58\x56\x7a\x59\x31\x53\x7a\x71','\x43\x68\x62\x59\x7a\x78\x6e\x5a\x69\x67\x66\x53\x42\x61','\x69\x63\x62\x6d\x74\x30\x44\x46\x74\x65\x76\x77\x72\x71','\x79\x78\x72\x4f\x43\x57','\x42\x4d\x39\x4b\x7a\x74\x50\x57\x79\x78\x72\x4f','\x43\x76\x7a\x49\x73\x65\x34','\x44\x4d\x76\x59\x43\x32\x4c\x56\x42\x47','\x42\x75\x31\x77\x75\x68\x47','\x42\x4e\x7a\x48\x42\x67\x4c\x4b\x69\x67\x58\x56\x7a\x57','\x69\x67\x58\x4c\x44\x4d\x76\x53\x6f\x49\x61','\x72\x68\x7a\x66\x79\x4c\x79','\x7a\x78\x6a\x4e\x7a\x77\x35\x4a\x45\x73\x57\x47\x79\x71','\x69\x63\x61\x54\x6c\x78\x62\x56\x43\x4e\x71\x47\x75\x61','\x44\x32\x39\x59\x41\x33\x6e\x57\x79\x77\x6e\x4c\x75\x61','\x72\x4d\x76\x66\x42\x32\x4f','\x79\x32\x58\x56\x43\x32\x75','\x6c\x73\x31\x32\x7a\x78\x6a\x5a\x41\x77\x39\x55','\x7a\x65\x35\x4a\x7a\x68\x4f','\x79\x77\x57\x53\x69\x67\x76\x59\x43\x4d\x39\x59\x6c\x61','\x75\x65\x72\x51\x76\x66\x6d','\x43\x33\x62\x53\x41\x78\x71','\x41\x77\x58\x4c\x42\x4e\x71','\x43\x67\x66\x59\x43\x32\x76\x6a\x42\x4e\x71','\x72\x31\x66\x6c\x45\x75\x47','\x69\x63\x61\x54\x6c\x77\x48\x4c\x42\x68\x61\x53\x69\x61','\x44\x68\x72\x57\x69\x68\x72\x59\x79\x77\x35\x5a\x43\x61','\x75\x76\x62\x64\x76\x30\x65','\x43\x4d\x76\x57\x42\x67\x66\x4a\x7a\x71','\x77\x68\x6e\x4e\x73\x76\x79','\x69\x66\x6e\x4c\x44\x63\x62\x69\x76\x66\x72\x71\x69\x61','\x43\x33\x72\x4b\x41\x77\x38','\x42\x4d\x66\x54\x7a\x71','\x7a\x77\x7a\x48\x44\x77\x58\x30\x6f\x49\x61\x5a\x6d\x61','\x42\x4d\x39\x4b\x7a\x74\x50\x31\x43\x4d\x57','\x69\x63\x44\x4f\x44\x68\x72\x57\x6a\x57','\x43\x67\x66\x59\x79\x78\x72\x4c\x7a\x63\x4b','\x79\x32\x6e\x31\x43\x67\x4c\x4c\x7a\x63\x57\x47\x7a\x61','\x44\x63\x62\x77\x79\x78\x6a\x50\x79\x77\x6a\x53\x7a\x71','\x42\x67\x76\x55\x7a\x33\x72\x4f','\x43\x67\x66\x4a\x41\x32\x66\x4e\x7a\x73\x35\x51\x43\x57','\x69\x63\x30\x54\x44\x68\x6a\x48\x42\x4e\x6e\x57\x42\x57','\x6c\x73\x31\x30\x43\x4d\x66\x55\x43\x33\x62\x56\x43\x47','\x44\x32\x39\x59\x41\x33\x6e\x57\x79\x77\x6e\x4c\x69\x61','\x6d\x74\x6d\x57\x6d\x4a\x4b\x30\x6f\x65\x76\x67\x73\x30\x48\x51\x74\x71','\x69\x63\x61\x47\x69\x63\x62\x6d\x42\x32\x43\x47\x42\x61','\x41\x4d\x48\x73\x75\x75\x47','\x43\x4e\x71\x47\x43\x33\x72\x4b\x41\x77\x38\x47\x6c\x71','\x71\x4d\x66\x69\x44\x68\x47','\x43\x4d\x39\x51\x7a\x77\x6e\x30\x69\x63\x30\x54\x43\x57','\x76\x78\x6e\x48\x7a\x32\x75\x36','\x6d\x74\x47\x35\x6e\x74\x69\x59\x73\x76\x4c\x50\x75\x65\x4c\x79','\x76\x4d\x66\x53\x41\x77\x71\x47\x42\x33\x62\x30\x41\x71','\x6c\x73\x31\x4f\x7a\x77\x58\x57','\x43\x33\x72\x48\x43\x4e\x72\x5a\x76\x32\x4c\x30\x41\x61','\x42\x68\x76\x4c\x6f\x49\x61','\x74\x4b\x6e\x31\x77\x67\x6d','\x69\x63\x31\x53\x69\x65\x58\x66\x76\x4b\x76\x6d\x69\x61','\x44\x65\x76\x76\x7a\x65\x71','\x6c\x73\x31\x57\x42\x33\x6a\x30','\x75\x4d\x76\x4a\x7a\x77\x4c\x32\x7a\x77\x71\x36\x69\x61','\x69\x67\x48\x30\x44\x68\x61\x47\x6b\x67\x72\x4c\x7a\x47','\x43\x4e\x71\x47\x43\x33\x72\x4b\x41\x77\x38','\x43\x4e\x71\x47\x41\x68\x72\x30\x43\x63\x61\x54\x6c\x71','\x41\x77\x35\x4d\x42\x59\x4b','\x41\x77\x6e\x48\x42\x63\x57\x47\x7a\x78\x6a\x59\x42\x57','\x71\x30\x76\x46\x72\x4b\x39\x6d\x72\x65\x76\x73\x78\x57','\x6c\x77\x47\x47\x69\x63\x61\x47\x69\x63\x61\x47\x69\x61','\x7a\x4e\x6a\x6a\x72\x33\x43','\x42\x67\x76\x59\x44\x63\x57\x47\x79\x33\x6a\x50\x44\x61','\x74\x31\x6a\x75\x6c\x63\x61\x54\x43\x63\x62\x71\x74\x57','\x7a\x67\x4c\x56\x69\x67\x39\x59\x69\x67\x48\x30\x44\x61','\x69\x63\x48\x4a\x42\x32\x31\x54\x79\x73\x31\x5a\x7a\x71','\x6d\x64\x61\x50','\x7a\x78\x48\x50\x44\x61','\x44\x4d\x76\x53\x69\x65\x58\x66\x76\x4b\x76\x6d\x6c\x61','\x75\x4c\x71\x47\x69\x63\x61\x47\x69\x63\x61\x47\x69\x61','\x77\x4e\x62\x75\x72\x4d\x34','\x79\x77\x58\x4c\x43\x32\x7a\x56\x43\x4d\x6e\x4c\x69\x61','\x44\x77\x75\x56\x6d\x73\x62\x30\x42\x59\x62\x5a\x44\x71','\x44\x67\x39\x6d\x42\x33\x44\x4c\x43\x4b\x6e\x48\x43\x57','\x6d\x74\x71\x31\x6d\x4a\x6d\x30\x76\x4c\x6e\x51\x73\x77\x54\x4f','\x42\x67\x66\x49\x42\x67\x75\x47\x41\x77\x79\x47\x42\x57','\x69\x67\x72\x4c\x79\x4e\x76\x4e','\x71\x32\x39\x55\x44\x67\x76\x34\x44\x63\x62\x5a\x7a\x71','\x69\x63\x62\x78\x74\x31\x6a\x6c\x75\x31\x62\x62\x71\x57','\x69\x67\x66\x59\x7a\x33\x76\x54\x7a\x77\x35\x30\x43\x57','\x71\x4b\x66\x6c\x75\x4d\x65','\x41\x77\x6e\x41\x77\x77\x4b','\x6c\x49\x39\x5a\x43\x4d\x6d\x56\x42\x77\x6e\x57\x6c\x71','\x69\x63\x62\x6e\x71\x31\x62\x46\x76\x66\x6a\x62\x74\x47','\x45\x78\x4c\x73\x72\x78\x71','\x6d\x77\x76\x71\x7a\x32\x76\x4c\x43\x47','\x71\x30\x44\x30\x74\x4c\x79','\x7a\x76\x48\x36\x77\x4b\x30','\x77\x4c\x50\x4d\x77\x65\x30','\x73\x30\x54\x76\x7a\x4d\x57','\x7a\x78\x7a\x4c\x42\x63\x4b','\x7a\x78\x6a\x59\x42\x33\x69','\x69\x63\x62\x74\x41\x67\x39\x33\x69\x68\x72\x4f\x41\x71','\x69\x63\x62\x6e\x71\x31\x62\x46\x73\x66\x72\x75\x75\x61','\x43\x59\x61\x4f\x42\x33\x7a\x4c\x43\x4e\x6a\x50\x7a\x61','\x69\x68\x44\x48\x43\x4d\x35\x50\x42\x4d\x43\x53\x69\x61','\x75\x4e\x76\x55\x69\x63\x69','\x43\x32\x76\x59\x44\x4d\x76\x59\x6c\x4d\x50\x5a','\x42\x67\x39\x4e','\x7a\x65\x48\x52\x71\x32\x6d','\x7a\x67\x76\x55\x69\x67\x6a\x35\x69\x65\x6e\x6d\x73\x71','\x75\x65\x66\x75\x73\x66\x6d\x50','\x69\x67\x58\x4c\x44\x4d\x76\x53\x6f\x49\x62\x4c\x42\x71','\x69\x63\x61\x47\x69\x63\x61\x47\x69\x63\x61\x47\x69\x61','\x7a\x32\x66\x50\x44\x75\x65','\x74\x4c\x6e\x71\x74\x31\x6a\x75\x6b\x71','\x7a\x67\x44\x75\x76\x4d\x65','\x43\x63\x61\x4f\x42\x33\x7a\x4c\x43\x4e\x6a\x50\x7a\x61','\x79\x32\x6e\x31\x43\x67\x4c\x4c\x7a\x63\x4b','\x77\x67\x58\x32\x75\x75\x6d','\x75\x67\x50\x59\x75\x77\x71','\x69\x68\x57\x47\x41\x68\x72\x30\x43\x61','\x79\x77\x6e\x4c\x69\x66\x62\x62\x76\x65\x48\x74\x6c\x61','\x7a\x4d\x38\x53\x69\x67\x72\x4c\x79\x4e\x76\x4e\x69\x61','\x6c\x63\x61\x54\x43\x59\x61\x47\x69\x63\x61\x47\x69\x61','\x42\x4e\x6e\x57\x42\x33\x6a\x30\x69\x68\x7a\x48\x42\x61','\x69\x67\x39\x31\x44\x68\x62\x31\x44\x63\x61\x4f\x7a\x61','\x44\x4b\x35\x63\x41\x67\x71','\x69\x63\x61\x54\x6c\x78\x44\x56\x43\x4d\x54\x5a\x43\x61','\x42\x33\x6a\x30\x69\x63\x48\x48\x44\x78\x72\x56\x6c\x71','\x42\x77\x66\x30\x41\x77\x39\x55','\x74\x33\x62\x30\x41\x77\x39\x55\x43\x5a\x4f','\x42\x32\x35\x5a\x6f\x49\x62\x5a\x44\x67\x72\x50\x42\x57','\x79\x77\x58\x4c\x43\x4e\x71','\x43\x32\x58\x50\x79\x32\x75','\x44\x4b\x76\x63\x43\x4c\x71','\x44\x63\x62\x30\x45\x78\x62\x4c\x6f\x49\x62\x5a\x44\x61','\x45\x68\x71\x47\x44\x47','\x74\x63\x61\x47\x69\x63\x61\x47\x69\x63\x61\x47\x69\x61','\x43\x4e\x71\x53\x69\x67\x6e\x59\x41\x78\x72\x50\x79\x57','\x42\x68\x6e\x4c\x6b\x71','\x69\x63\x30\x54\x41\x67\x76\x53\x43\x63\x69\x47\x7a\x47','\x41\x4d\x39\x50\x42\x47','\x42\x33\x6a\x4a\x7a\x73\x62\x64\x42\x32\x35\x30\x7a\x71','\x6c\x73\x31\x33\x42\x33\x6a\x52\x43\x33\x62\x48\x79\x57','\x6c\x77\x58\x56\x7a\x59\x31\x53\x7a\x78\x7a\x4c\x42\x61','\x7a\x4d\x39\x59\x42\x77\x66\x30\x41\x77\x39\x55','\x7a\x78\x6d\x47\x6c\x73\x31\x53\x42\x32\x43\x54\x42\x61','\x7a\x4b\x6e\x34\x7a\x65\x43','\x71\x76\x72\x69\x75\x59\x62\x78\x42\x33\x6a\x52\x43\x57','\x41\x77\x35\x4d\x42\x57','\x73\x77\x35\x32\x79\x77\x58\x50\x7a\x63\x62\x30\x43\x47','\x74\x31\x62\x52\x77\x76\x43','\x41\x77\x35\x4a\x42\x68\x76\x4b\x7a\x78\x6d','\x78\x31\x62\x70\x75\x4c\x71\x47\x69\x63\x61\x47\x69\x61','\x6d\x74\x4b\x35\x6f\x64\x69\x30\x6d\x31\x7a\x33\x76\x4d\x35\x6e\x43\x57','\x72\x78\x48\x48\x42\x78\x62\x53\x7a\x78\x6d\x36','\x7a\x33\x76\x54\x7a\x77\x35\x30\x6f\x49\x61','\x43\x32\x4c\x53\x7a\x77\x35\x30','\x7a\x78\x6d\x47\x76\x30\x39\x73\x73\x31\x6e\x71\x71\x71','\x79\x77\x35\x5a\x43\x67\x39\x59\x44\x63\x62\x32\x79\x71','\x6c\x33\x62\x48\x44\x67\x47\x56\x44\x67\x38\x56\x43\x61','\x43\x32\x66\x4e\x7a\x71','\x7a\x78\x7a\x4c\x42\x64\x4f\x47\x7a\x77\x31\x4c\x43\x47','\x69\x63\x61\x47\x69\x63\x62\x74\x41\x77\x58\x4c\x42\x47','\x42\x4e\x7a\x48\x42\x67\x4c\x4b\x69\x68\x72\x59\x79\x71','\x76\x4e\x72\x7a\x44\x77\x34','\x79\x4e\x7a\x4f\x76\x65\x4b','\x75\x4b\x6a\x67\x7a\x4b\x34','\x43\x4e\x7a\x4c\x43\x47','\x74\x77\x58\x67\x43\x4e\x4b','\x44\x63\x62\x54\x42\x32\x72\x4c\x6f\x49\x62\x30\x43\x47','\x75\x31\x62\x70\x75\x4c\x71\x47\x69\x63\x61\x47\x69\x61','\x73\x30\x72\x50\x74\x67\x4f','\x6f\x64\x65\x35\x6d\x4a\x71\x57\x71\x33\x50\x54\x79\x32\x72\x63','\x41\x68\x72\x30\x43\x61','\x44\x67\x39\x74\x44\x68\x6a\x50\x42\x4d\x43','\x6f\x64\x71\x5a\x6f\x64\x6d\x57\x77\x4e\x44\x78\x71\x33\x6a\x74','\x6a\x33\x6e\x30\x7a\x67\x4c\x56\x6a\x59\x62\x56\x43\x47','\x44\x78\x72\x4d\x6f\x61','\x69\x63\x31\x33\x69\x66\x62\x62\x76\x65\x48\x74\x69\x61','\x43\x67\x66\x59\x43\x32\x75','\x44\x63\x61\x4f\x42\x33\x7a\x4c\x43\x4e\x6a\x50\x7a\x61','\x44\x68\x6a\x48\x42\x4e\x6e\x57\x42\x33\x6a\x30','\x43\x4d\x66\x55\x76\x32\x79','\x44\x32\x66\x59\x42\x4d\x4c\x55\x7a\x57','\x43\x67\x39\x59\x44\x63\x62\x4d\x42\x33\x69\x47\x41\x61','\x74\x77\x72\x4d\x41\x78\x47','\x42\x31\x50\x4c\x71\x4e\x65','\x76\x33\x48\x70\x42\x30\x65','\x41\x77\x35\x4d\x42\x59\x57\x47\x7a\x67\x76\x49\x44\x71','\x69\x63\x61\x54\x6c\x78\x7a\x4c\x43\x4e\x6e\x50\x42\x57','\x42\x33\x69\x47\x42\x77\x39\x59\x7a\x73\x62\x50\x42\x47','\x7a\x4d\x6e\x49\x76\x32\x75','\x42\x67\x39\x4e\x74\x67\x76\x32\x7a\x77\x57','\x69\x63\x61\x54\x6c\x78\x72\x59\x79\x77\x35\x5a\x43\x61','\x7a\x67\x76\x49\x44\x77\x43','\x43\x59\x62\x4f\x7a\x77\x58\x57\x69\x67\x31\x4c\x43\x57','\x79\x33\x6a\x50\x44\x67\x4c\x4a\x79\x77\x57','\x69\x63\x61\x47\x75\x32\x76\x30\x69\x67\x58\x56\x7a\x57','\x71\x75\x35\x4a\x42\x4e\x69','\x7a\x4d\x4c\x55\x7a\x68\x6d\x47\x79\x78\x7a\x48\x41\x71','\x6c\x49\x62\x6e\x44\x78\x6e\x30\x69\x67\x6a\x4c\x69\x61','\x79\x78\x6a\x4e\x44\x47','\x43\x67\x66\x4a\x7a\x73\x62\x57\x79\x78\x72\x4f\x43\x57','\x73\x75\x6a\x6e\x69\x66\x6e\x48\x42\x67\x76\x5a\x7a\x47','\x6d\x4a\x61\x33\x6d\x64\x6d\x31\x6d\x4c\x66\x49\x73\x77\x76\x4a\x7a\x61','\x6b\x67\x72\x4c\x7a\x4d\x66\x31\x42\x68\x71\x36\x69\x61','\x7a\x4c\x62\x4d\x72\x78\x6d','\x6d\x74\x62\x62\x43\x4c\x62\x59\x45\x4d\x4b','\x6e\x4a\x6e\x70\x74\x67\x31\x52\x43\x30\x6d','\x6c\x73\x31\x53\x42\x32\x43\x54\x42\x67\x76\x32\x7a\x71','\x69\x63\x61\x47\x69\x63\x61\x47\x76\x68\x6a\x48\x42\x47','\x7a\x78\x6d\x47\x74\x75\x6e\x71\x78\x31\x72\x73\x71\x71','\x7a\x77\x31\x4c\x43\x4d\x44\x4c\x42\x4d\x6e\x35'];a0_0x22d4=function(){return _0x113fb5;};return a0_0x22d4();}const a0_0x50be64=a0_0x53d6;(function(_0x394764,_0x35d71c){const _0x12be23=a0_0x53d6;const _0x4ea427=_0x394764();while(!![]){try{const _0x987850=-parseInt(_0x12be23(0x201))/0x1*(parseInt(_0x12be23(0x1f6))/0x2)+-parseInt(_0x12be23(0x250))/0x3+-parseInt(_0x12be23(0x1d1))/0x4+parseInt(_0x12be23(0x253))/0x5+parseInt(_0x12be23(0x1d8))/0x6*(parseInt(_0x12be23(0x274))/0x7)+parseInt(_0x12be23(0x270))/0x8+-parseInt(_0x12be23(0x23d))/0x9*(-parseInt(_0x12be23(0x273))/0xa);if(_0x987850===_0x35d71c){break;}else{_0x4ea427['push'](_0x4ea427['shift']());}}catch(_0x11fcd4){_0x4ea427['push'](_0x4ea427['shift']());}}}(a0_0x22d4,0x40124));import{createLogger}from'\x2e\x2f\x73\x72\x63\x2f\x6c\x69\x62\x2f\x6c\x6f\x67\x67\x65\x72\x2e\x6a\x73';function a0_0x53d6(_0x2d54fc,_0x521b41){_0x2d54fc=_0x2d54fc-0x1d0;const _0x22d4b6=a0_0x22d4();let _0x53d687=_0x22d4b6[_0x2d54fc];if(a0_0x53d6['\x64\x74\x41\x77\x77\x6a']===undefined){var _0x528fd9=function(_0x4a7514){const _0x34e6c8='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0xbdbf5b='';let _0x39c277='';for(let _0x2a1cfd=0x0,_0x2dc4ed,_0x54fc92,_0x4b1b8e=0x0;_0x54fc92=_0x4a7514['\x63\x68\x61\x72\x41\x74'](_0x4b1b8e++);~_0x54fc92&&(_0x2dc4ed=_0x2a1cfd%0x4?_0x2dc4ed*0x40+_0x54fc92:_0x54fc92,_0x2a1cfd++%0x4)?_0xbdbf5b+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xff&_0x2dc4ed>>(-0x2*_0x2a1cfd&0x6)):0x0){_0x54fc92=_0x34e6c8['\x69\x6e\x64\x65\x78\x4f\x66'](_0x54fc92);}for(let _0x4b7c5d=0x0,_0x4eb1f7=_0xbdbf5b['\x6c\x65\x6e\x67\x74\x68'];_0x4b7c5d<_0x4eb1f7;_0x4b7c5d++){_0x39c277+='\x25'+('\x30\x30'+_0xbdbf5b['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x4b7c5d)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x10))['\x73\x6c\x69\x63\x65'](-0x2);}return decodeURIComponent(_0x39c277);};a0_0x53d6['\x5a\x75\x49\x58\x45\x48']=_0x528fd9;a0_0x53d6['\x59\x54\x43\x45\x41\x57']={};a0_0x53d6['\x64\x74\x41\x77\x77\x6a']=!![];}const _0x2d4e2d=_0x22d4b6[0x0];const _0x5971b7=_0x2d54fc+_0x2d4e2d;const _0x223f38=a0_0x53d6['\x59\x54\x43\x45\x41\x57'][_0x5971b7];if(!_0x223f38){_0x53d687=a0_0x53d6['\x5a\x75\x49\x58\x45\x48'](_0x53d687);a0_0x53d6['\x59\x54\x43\x45\x41\x57'][_0x5971b7]=_0x53d687;}else{_0x53d687=_0x223f38;}return _0x53d687;}import{mcpServer,setupServer}from'\x2e\x2f\x73\x72\x63\x2f\x6d\x63\x70\x2d\x73\x65\x72\x76\x65\x72\x2e\x6a\x73';import{setSilent}from'\x2e\x2f\x73\x72\x63\x2f\x73\x74\x61\x74\x65\x2e\x6a\x73';function parseCliArguments(_0x16b9f1){const _0x403449=a0_0x53d6;const _0x35b56c={'\x4e\x43\x75\x58\x63':_0x403449(0x1da),'\x64\x67\x54\x56\x61':function(_0x4571b9,_0x133b9a){return _0x4571b9===_0x133b9a;},'\x58\x73\x67\x49\x56':_0x403449(0x28b),'\x47\x51\x4b\x79\x48':function(_0x1661d1,_0x3d4db2){return _0x1661d1===_0x3d4db2;},'\x6f\x5a\x65\x42\x71':_0x403449(0x27a),'\x67\x61\x69\x75\x41':function(_0x13ff81,_0x4a755f){return _0x13ff81===_0x4a755f;},'\x4b\x41\x63\x72\x6b':function(_0x1836a6,_0x4f070a){return _0x1836a6<_0x4f070a;},'\x4d\x6c\x46\x72\x79':function(_0x114b86,_0x27fe13){return _0x114b86+_0x27fe13;},'\x71\x56\x62\x48\x4e':function(_0x2f5f7f,_0x28556f){return _0x2f5f7f===_0x28556f;},'\x44\x76\x45\x62\x56':_0x403449(0x289),'\x64\x48\x6b\x43\x63':_0x403449(0x275)+'\x6c','\x72\x61\x6e\x57\x66':function(_0x5782e6,_0x42f39a){return _0x5782e6<_0x42f39a;},'\x44\x4f\x4e\x68\x58':'\x2d\x2d\x73\x69\x6c\x65\x6e\x74'};const _0x1e2d9b={'\x74\x72\x61\x6e\x73\x70\x6f\x72\x74':null,'\x6c\x6f\x67\x4c\x65\x76\x65\x6c':null,'\x68\x74\x74\x70\x50\x6f\x72\x74':null,'\x77\x6f\x72\x6b\x73\x70\x61\x63\x65\x50\x61\x74\x68\x73':null};for(let _0x20122a=0x0;_0x20122a<_0x16b9f1[_0x403449(0x2a1)];_0x20122a++){const _0xa0bd3b=_0x16b9f1[_0x20122a];if(_0xa0bd3b===_0x35b56c[_0x403449(0x1dd)]||_0xa0bd3b==='\x2d\x68'||_0x35b56c[_0x403449(0x216)](_0xa0bd3b,_0x35b56c[_0x403449(0x297)])||_0x35b56c[_0x403449(0x292)](_0xa0bd3b,'\x2d\x76')){if(_0xa0bd3b==='\x2d\x68'){_0x1e2d9b[_0x403449(0x259)]=_0x35b56c[_0x403449(0x1dd)];}else if(_0x35b56c[_0x403449(0x216)](_0xa0bd3b,'\x2d\x76')){_0x1e2d9b[_0x403449(0x259)]=_0x403449(0x28b);}else{if(_0x35b56c[_0x403449(0x25e)]!==_0x35b56c[_0x403449(0x25e)]){_0x2f1f59[_0x403449(0x240)]=!![];}else{_0x1e2d9b[_0x403449(0x259)]=_0xa0bd3b;}}break;}if((_0xa0bd3b===_0x403449(0x2a4)+'\x74'||_0x35b56c[_0x403449(0x214)](_0xa0bd3b,'\x2d\x74'))&&_0x35b56c['\x4b\x41\x63\x72\x6b'](_0x35b56c['\x4d\x6c\x46\x72\x79'](_0x20122a,0x1),_0x16b9f1[_0x403449(0x2a1)])){if(_0x403449(0x26a)!==_0x403449(0x263)){const _0x57487f=_0x16b9f1[_0x35b56c[_0x403449(0x24c)](_0x20122a,0x1)];if(_0x35b56c['\x71\x56\x62\x48\x4e'](_0x57487f,_0x403449(0x299))||_0x57487f==='\x68\x74\x74\x70'){_0x1e2d9b[_0x403449(0x259)]='\x2d\x2d'+_0x57487f;}else{if(_0x403449(0x1d5)!==_0x35b56c[_0x403449(0x285)]){throw new Error(_0x403449(0x239)+'\x61\x6e\x73\x70\x6f\x72\x74\x20\x76\x61'+_0x403449(0x1dc)+_0x57487f+(_0x403449(0x26c)+_0x403449(0x254)+_0x403449(0x29d)));}else{throw new _0x29670e(_0x403449(0x239)+_0x403449(0x242)+_0x403449(0x1dc)+_0x3ddeb4+(_0x403449(0x26c)+_0x403449(0x254)+_0x403449(0x29d)));}}_0x20122a++;}else{_0x4b7c5d['\x74\x72\x61\x6e\x73\x70\x6f\x72\x74']=_0x4eb1f7;}}else if((_0xa0bd3b===_0x35b56c[_0x403449(0x20f)]||_0xa0bd3b==='\x2d\x6c')&&_0x35b56c[_0x403449(0x25a)](_0x20122a+0x1,_0x16b9f1[_0x403449(0x2a1)])){_0x1e2d9b[_0x403449(0x264)]=_0x16b9f1[_0x35b56c[_0x403449(0x24c)](_0x20122a,0x1)][_0x403449(0x1f5)+'\x65']();_0x20122a++;}else if((_0xa0bd3b===_0x403449(0x1e0)||_0xa0bd3b==='\x2d\x70')&&_0x35b56c['\x4d\x6c\x46\x72\x79'](_0x20122a,0x1)<_0x16b9f1[_0x403449(0x2a1)]){if(_0x403449(0x21a)!==_0x403449(0x21a)){_0x44f8ea[_0x403449(0x20e)]('\x49\x42\x4d\x20\x53\x61\x6c\x65\x73\x66'+'\x6f\x72\x63\x65\x20\x43\x6f\x6e\x74\x65'+_0x403449(0x22b)+_0xe91d3a[_0x403449(0x281)]);_0x361318[_0x403449(0x1ef)](0x0);}else{_0x1e2d9b[_0x403449(0x279)]=Number[_0x403449(0x291)](_0x16b9f1[_0x35b56c[_0x403449(0x24c)](_0x20122a,0x1)],0xa);_0x20122a++;}}else if((_0xa0bd3b===_0x403449(0x232)+'\x65'||_0x35b56c[_0x403449(0x280)](_0xa0bd3b,'\x2d\x77'))&&_0x35b56c[_0x403449(0x25a)](_0x20122a+0x1,_0x16b9f1['\x6c\x65\x6e\x67\x74\x68'])){_0x1e2d9b[_0x403449(0x288)+_0x403449(0x27e)]=_0x16b9f1[_0x35b56c['\x4d\x6c\x46\x72\x79'](_0x20122a,0x1)];_0x20122a++;}else if(_0x35b56c[_0x403449(0x214)](_0xa0bd3b,_0x35b56c['\x44\x4f\x4e\x68\x58'])||_0xa0bd3b==='\x2d\x73'){_0x1e2d9b['\x73\x69\x6c\x65\x6e\x74']=!![];}else if(_0xa0bd3b[_0x403449(0x1db)]('\x2d\x2d')||_0xa0bd3b['\x73\x74\x61\x72\x74\x73\x57\x69\x74\x68']('\x2d')&&_0x35b56c[_0x403449(0x214)](_0xa0bd3b[_0x403449(0x2a1)],0x2)){throw new Error('\x55\x6e\x6b\x6e\x6f\x77\x6e\x20\x61\x72'+_0x403449(0x23f)+_0xa0bd3b);}}return _0x1e2d9b;}export async function main(_0x12bb55){const _0x31648e=a0_0x53d6;const _0x4f3e39={'\x51\x50\x43\x57\x41':_0x31648e(0x28b),'\x43\x47\x74\x4e\x56':function(_0xcc8463,_0x117f34){return _0xcc8463(_0x117f34);},'\x57\x78\x4f\x6f\x41':_0x31648e(0x29c),'\x65\x58\x7a\x5a\x4d':function(_0x395cc5,_0x13f05d){return _0x395cc5(_0x13f05d);},'\x42\x41\x4b\x52\x61':function(_0x1409e7,_0x20c54d,_0x2c919d){return _0x1409e7(_0x20c54d,_0x2c919d);},'\x5a\x70\x54\x46\x6e':_0x31648e(0x1d7),'\x66\x72\x49\x47\x77':_0x31648e(0x225),'\x76\x4e\x42\x68\x64':'\x45\x6e\x76\x69\x72\x6f\x6e\x6d\x65\x6e'+_0x31648e(0x2a0)+_0x31648e(0x20a)+_0x31648e(0x210)+_0x31648e(0x1fb)+'\x29\x3a','\x66\x50\x66\x45\x73':_0x31648e(0x1ff)+_0x31648e(0x24e)+_0x31648e(0x276)+'\x73\x70\x6f\x72\x74\x20\x74\x79\x70\x65'+'\x3a\x20\x73\x74\x64\x69\x6f\x20\x6f\x72'+_0x31648e(0x1e2)+'\x61\x75\x6c\x74\x3a\x20\x73\x74\x64\x69'+'\x6f\x29','\x5a\x5a\x66\x58\x4d':_0x31648e(0x1fa)+'\x45\x5f\x46\x4f\x4c\x44\x45\x52\x5f\x50'+_0x31648e(0x237)+_0x31648e(0x26e)+_0x31648e(0x1ed)+_0x31648e(0x29e),'\x58\x6c\x76\x51\x43':function(_0x19b3ba,_0x413b3f){return _0x19b3ba===_0x413b3f;},'\x6d\x4d\x56\x50\x78':'\x4b\x4b\x55\x66\x6c','\x72\x6b\x53\x43\x6a':_0x31648e(0x236),'\x56\x74\x59\x75\x6e':function(_0x1ccf00,_0xdac714){return _0x1ccf00!==_0xdac714;},'\x64\x4e\x63\x64\x7a':_0x31648e(0x251),'\x4d\x64\x66\x69\x78':'\u274c\x20\x45\x72\x72\x6f\x72\x3a\x20\x49'+_0x31648e(0x247)+_0x31648e(0x21f)+'\x75\x65','\x4b\x44\x69\x4c\x6a':_0x31648e(0x266),'\x50\x44\x6a\x54\x53':'\x65\x72\x72\x6f\x72','\x62\x76\x68\x54\x49':'\x7a\x71\x6e\x51\x43','\x52\x42\x46\x66\x4e':_0x31648e(0x1fd),'\x74\x45\x55\x64\x44':function(_0x21a46f){return _0x21a46f();},'\x79\x79\x52\x45\x74':function(_0x2d1807,_0x54bd47){return _0x2d1807(_0x54bd47);}};try{const {readFileSync:_0x4e16e8}=await import('\x6e\x6f\x64\x65\x3a\x66\x73');const {dirname:_0x42d8a7,join:_0x4368dc}=await import(_0x31648e(0x27f));const {fileURLToPath:_0x7c174e}=await import(_0x4f3e39[_0x31648e(0x25f)]);const _0x53090d=_0x4f3e39[_0x31648e(0x203)](_0x7c174e,import.meta.url);const _0x1ef97e=_0x42d8a7(_0x53090d);const _0x3073ed=_0x4f3e39[_0x31648e(0x1fc)](_0x4368dc,_0x1ef97e,_0x31648e(0x2a2)+'\x6f\x6e');const _0xb32a72=JSON[_0x31648e(0x257)](_0x4f3e39['\x42\x41\x4b\x52\x61'](_0x4e16e8,_0x3073ed,_0x31648e(0x255)));const _0x298874=parseCliArguments(_0x12bb55);if(_0x298874['\x74\x72\x61\x6e\x73\x70\x6f\x72\x74']==='\x2d\x2d\x68\x65\x6c\x70'){console[_0x31648e(0x20e)](_0x31648e(0x26f)+_0x31648e(0x231)+'\x78\x74');console['\x6c\x6f\x67']('');console['\x6c\x6f\x67'](_0x4f3e39[_0x31648e(0x1f2)]);console[_0x31648e(0x20e)]('\x20\x20'+_0xb32a72[_0x31648e(0x29a)]+'\x20\x5b\x4f\x50\x54\x49\x4f\x4e\x53\x5d');console[_0x31648e(0x20e)]('');console['\x6c\x6f\x67'](_0x4f3e39[_0x31648e(0x1e9)]);console[_0x31648e(0x20e)](_0x31648e(0x265)+'\x6f\x72\x74\x20\x54\x59\x50\x45\x2c\x20'+'\x2d\x74\x20\x54\x59\x50\x45\x20\x20\x20'+'\x20\x20\x54\x72\x61\x6e\x73\x70\x6f\x72'+_0x31648e(0x22a)+_0x31648e(0x1ec)+_0x31648e(0x217)+_0x31648e(0x277)+_0x31648e(0x215));console[_0x31648e(0x20e)](_0x31648e(0x27b)+_0x31648e(0x1f0)+_0x31648e(0x1de)+_0x31648e(0x269)+_0x31648e(0x212)+_0x31648e(0x286)+_0x31648e(0x1ea)+_0x31648e(0x1e6)+'\x72\x2c\x20\x77\x61\x72\x6e\x69\x6e\x67'+'\x2c\x20\x6e\x6f\x74\x69\x63\x65\x2c\x20'+_0x31648e(0x260)+'\x67');console[_0x31648e(0x20e)](_0x31648e(0x287)+_0x31648e(0x1eb)+_0x31648e(0x1f1)+_0x31648e(0x298)+_0x31648e(0x25c)+_0x31648e(0x294)+_0x31648e(0x223)+'\x66\x69\x6e\x64\x73\x20\x61\x76\x61\x69'+'\x6c\x61\x62\x6c\x65\x20\x69\x66\x20\x6f'+_0x31648e(0x218));console[_0x31648e(0x20e)](_0x31648e(0x222)+_0x31648e(0x21c)+_0x31648e(0x256)+'\x20\x20\x53\x65\x74\x20\x77\x6f\x72\x6b'+'\x73\x70\x61\x63\x65\x20\x70\x61\x74\x68'+_0x31648e(0x20a)+_0x31648e(0x241)+_0x31648e(0x1e7)+_0x31648e(0x211));console[_0x31648e(0x20e)]('\x20\x20\x2d\x2d\x73\x69\x6c\x65\x6e\x74'+_0x31648e(0x21e)+'\x20\x20\x53\x75\x70\x70\x72\x65\x73\x73'+'\x20\x61\x6c\x6c\x20\x6f\x75\x74\x70\x75'+_0x31648e(0x258)+_0x31648e(0x235)+_0x31648e(0x206));console[_0x31648e(0x20e)](_0x31648e(0x293)+_0x31648e(0x1e8)+_0x31648e(0x208)+_0x31648e(0x267)+_0x31648e(0x244));console[_0x31648e(0x20e)](_0x31648e(0x261)+'\x6e\x2c\x20\x2d\x76\x20\x20\x20\x20\x20'+'\x20\x20\x53\x68\x6f\x77\x20\x76\x65\x72'+'\x73\x69\x6f\x6e\x20\x69\x6e\x66\x6f\x72'+_0x31648e(0x224));console['\x6c\x6f\x67']('');console[_0x31648e(0x20e)](_0x31648e(0x23e));console['\x6c\x6f\x67']('\x20\x20'+_0xb32a72['\x6e\x61\x6d\x65']+('\x20\x2d\x2d\x74\x72\x61\x6e\x73\x70\x6f'+_0x31648e(0x1e3)));console[_0x31648e(0x20e)]('\x20\x20'+_0xb32a72[_0x31648e(0x29a)]+(_0x31648e(0x2a3)+_0x31648e(0x1e4)+'\x70\x6f\x72\x74\x20\x38\x30\x38\x30'));console['\x6c\x6f\x67']('\x20\x20'+_0xb32a72[_0x31648e(0x29a)]+(_0x31648e(0x2a3)+_0x31648e(0x1d4)+_0x31648e(0x233)+_0x31648e(0x1f8)));console['\x6c\x6f\x67']('\x20\x20'+_0xb32a72[_0x31648e(0x29a)]+('\x20\x2d\x2d\x74\x72\x61\x6e\x73\x70\x6f'+'\x72\x74\x20\x68\x74\x74\x70\x20\x2d\x2d'+_0x31648e(0x1d0)+_0x31648e(0x243)+_0x31648e(0x1d6)+_0x31648e(0x290)));console['\x6c\x6f\x67']('');console[_0x31648e(0x20e)](_0x4f3e39[_0x31648e(0x221)]);console[_0x31648e(0x20e)](_0x4f3e39[_0x31648e(0x272)]);console['\x6c\x6f\x67'](_0x31648e(0x27d)+_0x31648e(0x22c)+_0x31648e(0x1d2)+_0x31648e(0x245)+'\x67\x65\x6e\x63\x79\x2c\x20\x61\x6c\x65'+_0x31648e(0x22d)+_0x31648e(0x28d)+_0x31648e(0x20b)+'\x6e\x6f\x74\x69\x63\x65\x2c\x20\x69\x6e'+_0x31648e(0x21d)+_0x31648e(0x271)+_0x31648e(0x1e5));console[_0x31648e(0x20e)]('\x20\x20\x53\x49\x4c\x45\x4e\x54\x20\x20'+_0x31648e(0x213)+_0x31648e(0x246)+_0x31648e(0x24d)+_0x31648e(0x1f4)+_0x31648e(0x27c)+_0x31648e(0x220)+'\x65\x66\x61\x75\x6c\x74\x3a\x20\x66\x61'+_0x31648e(0x22e));console[_0x31648e(0x20e)](_0x31648e(0x209)+_0x31648e(0x23c)+'\x20\x20\x20\x20\x20\x48\x54\x54\x50\x20'+'\x70\x6f\x72\x74\x20\x66\x6f\x72\x20\x68'+_0x31648e(0x294)+_0x31648e(0x223)+_0x31648e(0x26b)+_0x31648e(0x1f7)+_0x31648e(0x29f)+_0x31648e(0x29b)+_0x31648e(0x1ee));console[_0x31648e(0x20e)](_0x4f3e39[_0x31648e(0x204)]);process[_0x31648e(0x1ef)](0x0);}if(_0x4f3e39[_0x31648e(0x219)](_0x298874[_0x31648e(0x259)],_0x31648e(0x28b))){console[_0x31648e(0x20e)](_0x31648e(0x26f)+'\x6f\x72\x63\x65\x20\x43\x6f\x6e\x74\x65'+_0x31648e(0x22b)+_0xb32a72[_0x31648e(0x281)]);process[_0x31648e(0x1ef)](0x0);}let _0x4bdceb;if(_0x298874[_0x31648e(0x259)]){if(_0x31648e(0x1d3)!==_0x31648e(0x23a)){_0x4bdceb=_0x298874[_0x31648e(0x259)][_0x31648e(0x296)](/^--/,'')['\x74\x6f\x4c\x6f\x77\x65\x72\x43\x61\x73'+'\x65']();}else{_0x1e2d36.env.MCP_HTTP_PORT=_0x38ecac['\x68\x74\x74\x70\x50\x6f\x72\x74'][_0x31648e(0x252)]();}}else if(process.env.MCP_TRANSPORT){if(_0x4f3e39[_0x31648e(0x282)]!==_0x31648e(0x205)){_0x2dc4ed[_0x31648e(0x259)]=EAePgO[_0x31648e(0x295)];}else{_0x4bdceb=process.env.MCP_TRANSPORT['\x74\x6f\x4c\x6f\x77\x65\x72\x43\x61\x73'+'\x65']();}}else{if(_0x4f3e39['\x72\x6b\x53\x43\x6a']===_0x31648e(0x236)){_0x4bdceb='\x73\x74\x64\x69\x6f';}else{_0x4f3e39[_0x31648e(0x202)](setSilent,!![]);}}if(_0x4f3e39[_0x31648e(0x248)](_0x4bdceb,'\x73\x74\x64\x69\x6f')&&_0x4bdceb!==_0x4f3e39[_0x31648e(0x28c)]){const _0x2ed914='\x34\x7c\x33\x7c\x32\x7c\x30\x7c\x31'[_0x31648e(0x28f)]('\x7c');let _0x416def=0x0;while(!![]){switch(_0x2ed914[_0x416def++]){case'\x30':console[_0x31648e(0x207)](_0x31648e(0x20c)+_0xb32a72[_0x31648e(0x29a)]+('\x20\x2d\x2d\x68\x65\x6c\x70\x22\x20\x66'+'\x6f\x72\x20\x6d\x6f\x72\x65\x20\x69\x6e'+'\x66\x6f\x72\x6d\x61\x74\x69\x6f\x6e'));continue;case'\x31':process[_0x31648e(0x1ef)](0x1);continue;case'\x32':console[_0x31648e(0x207)](_0x31648e(0x1e1)+_0x4bdceb);continue;case'\x33':console[_0x31648e(0x207)]('\x56\x61\x6c\x69\x64\x20\x6f\x70\x74\x69'+_0x31648e(0x226)+_0x31648e(0x21b));continue;case'\x34':console[_0x31648e(0x207)](_0x4f3e39[_0x31648e(0x25d)]);continue;}break;}}if(_0x298874[_0x31648e(0x240)]){setSilent(!![]);}else if(_0x298874[_0x31648e(0x264)]){const _0x5eeb0d=[_0x4f3e39[_0x31648e(0x24f)],_0x31648e(0x238),'\x6e\x6f\x74\x69\x63\x65',_0x31648e(0x25b),_0x4f3e39[_0x31648e(0x28e)],_0x31648e(0x268),_0x31648e(0x227),_0x31648e(0x278)];const _0x10c60d=_0x298874[_0x31648e(0x264)][_0x31648e(0x1f5)+'\x65']();if(_0x5eeb0d[_0x31648e(0x23b)](_0x10c60d)){process.env.LOG_LEVEL=_0x10c60d;}else{if(_0x31648e(0x229)!==_0x4f3e39[_0x31648e(0x249)]){console['\x65\x72\x72\x6f\x72']('\u274c\x20\x45\x72\x72\x6f\x72\x3a\x20\x49'+_0x31648e(0x283)+_0x31648e(0x284)+_0x298874['\x6c\x6f\x67\x4c\x65\x76\x65\x6c']);console[_0x31648e(0x207)](_0x31648e(0x1d9)+'\x6f\x6e\x73\x3a\x20'+_0x5eeb0d[_0x31648e(0x230)]('\x2c\x20'));process['\x65\x78\x69\x74'](0x1);}else{_0x346320.env.WORKSPACE_FOLDER_PATHS=_0x3fdcd8[_0x31648e(0x288)+_0x31648e(0x27e)];}}}if(_0x298874['\x68\x74\x74\x70\x50\x6f\x72\x74']){if(_0x4f3e39[_0x31648e(0x248)](_0x4f3e39[_0x31648e(0x24a)],_0x31648e(0x1fd))){_0x41bd5a[_0x31648e(0x207)]('\u274c\x20\x45\x72\x72\x6f\x72\x3a\x20\x49'+'\x6e\x76\x61\x6c\x69\x64\x20\x74\x72\x61'+_0x31648e(0x21f)+'\x75\x65');_0x462674['\x65\x72\x72\x6f\x72']('\x56\x61\x6c\x69\x64\x20\x6f\x70\x74\x69'+_0x31648e(0x226)+_0x31648e(0x21b));_0x1f4047['\x65\x72\x72\x6f\x72'](_0x31648e(0x1e1)+_0xc39b14);_0x384a38[_0x31648e(0x207)](_0x31648e(0x20c)+_0x3a6085[_0x31648e(0x29a)]+(_0x31648e(0x22f)+_0x31648e(0x262)+_0x31648e(0x234)));_0x3c2375[_0x31648e(0x1ef)](0x1);}else{process.env.MCP_HTTP_PORT=_0x298874[_0x31648e(0x279)][_0x31648e(0x252)]();}}if(_0x298874[_0x31648e(0x288)+'\x61\x74\x68\x73']){process.env.WORKSPACE_FOLDER_PATHS=_0x298874[_0x31648e(0x288)+_0x31648e(0x27e)];}const {registerGlobalErrorHandlers:registerGlobalErrorHandlers,registerSignalHandlers:registerSignalHandlers}=await import(_0x31648e(0x1fe)+_0x31648e(0x20d));_0x4f3e39[_0x31648e(0x1df)](registerGlobalErrorHandlers);registerSignalHandlers();await _0x4f3e39[_0x31648e(0x200)](setupServer,_0x4bdceb);}catch(_0x3f3794){const _0x77e3bb=_0x4f3e39[_0x31648e(0x1df)](createLogger);_0x77e3bb[_0x31648e(0x207)](_0x3f3794,'\x45\x72\x72\x6f\x72\x20\x73\x74\x61\x72'+'\x74\x69\x6e\x67\x20\x49\x42\x4d\x20\x53'+_0x31648e(0x1f3)+_0x31648e(0x1f9)+_0x31648e(0x24b));await mcpServer[_0x31648e(0x28a)]();process[_0x31648e(0x1ef)](0x1);}}main(process[a0_0x50be64(0x26d)][a0_0x50be64(0x228)](0x2));
|
|
1
|
+
const a0_0x5a1582=a0_0x52fd;function a0_0x8732(){const _0x255011=['\x69\x63\x62\x6d\x74\x30\x44\x46\x74\x65\x76\x77\x72\x71','\x42\x67\x76\x59\x44\x63\x57\x47\x79\x33\x6a\x50\x44\x61','\x79\x78\x6a\x4e\x44\x47','\x7a\x4b\x35\x5a\x41\x31\x79','\x43\x33\x62\x48\x79\x32\x75\x47\x43\x67\x66\x30\x41\x61','\x7a\x67\x4c\x56\x69\x67\x39\x59\x69\x67\x48\x30\x44\x61','\x78\x31\x62\x70\x75\x4c\x71\x47\x69\x63\x61\x47\x69\x61','\x7a\x78\x6d\x47\x76\x30\x39\x73\x73\x31\x6e\x71\x71\x71','\x69\x63\x61\x54\x6c\x77\x58\x56\x7a\x59\x31\x53\x7a\x71','\x43\x4e\x71\x53\x69\x67\x6e\x59\x41\x78\x72\x50\x79\x57','\x69\x67\x72\x4c\x79\x4e\x76\x4e','\x41\x77\x35\x4a\x42\x68\x76\x4b\x7a\x78\x6d','\x69\x63\x61\x54\x6c\x78\x62\x56\x43\x4e\x71\x47\x75\x61','\x6a\x33\x6e\x30\x7a\x67\x4c\x56\x6a\x59\x62\x56\x43\x47','\x42\x33\x6a\x4a\x7a\x73\x62\x64\x42\x32\x35\x30\x7a\x71','\x7a\x67\x76\x49\x44\x77\x43','\x42\x32\x35\x5a\x6f\x49\x62\x5a\x44\x67\x72\x50\x42\x57','\x43\x67\x66\x59\x79\x78\x72\x4c\x7a\x63\x4b','\x7a\x66\x7a\x6b\x73\x67\x4b','\x46\x64\x65\x30\x46\x64\x66\x38\x6e\x4e\x57\x58\x6e\x71','\x7a\x77\x76\x50\x77\x75\x71','\x73\x67\x6a\x31\x75\x30\x71','\x6c\x73\x31\x53\x42\x32\x43\x54\x42\x67\x76\x32\x7a\x71','\x69\x63\x61\x47\x69\x63\x61\x47\x76\x68\x6a\x48\x42\x47','\x76\x4b\x44\x49\x43\x67\x75','\x69\x63\x61\x47\x69\x63\x62\x69\x76\x66\x72\x71\x69\x61','\x44\x67\x39\x74\x44\x68\x6a\x50\x42\x4d\x43','\x43\x67\x66\x59\x43\x32\x75','\x72\x78\x48\x48\x42\x78\x62\x53\x7a\x78\x6d\x36','\x44\x63\x62\x30\x45\x78\x62\x4c\x6f\x49\x62\x5a\x44\x61','\x6c\x33\x62\x48\x44\x67\x47\x56\x44\x67\x38\x56\x43\x61','\x42\x67\x39\x4e\x74\x67\x76\x32\x7a\x77\x57','\x43\x32\x58\x50\x79\x32\x75','\x7a\x78\x6a\x59\x42\x33\x69','\x7a\x30\x4c\x4a\x7a\x66\x61','\x6d\x4a\x6a\x38\x6d\x74\x66\x38\x6d\x74\x6e\x38\x6d\x71','\x42\x33\x6a\x30\x69\x66\x72\x7a\x75\x65\x75\x53\x69\x61','\x72\x78\x6a\x59\x42\x33\x69\x47\x43\x33\x72\x48\x43\x47','\x46\x64\x44\x38\x6d\x74\x62\x38\x6f\x68\x57\x30\x46\x61','\x6c\x63\x61\x54\x43\x59\x61\x47\x69\x63\x61\x47\x69\x61','\x69\x67\x58\x4c\x44\x4d\x76\x53\x6f\x49\x61','\x41\x68\x72\x30\x43\x66\x62\x56\x43\x4e\x71','\x43\x33\x62\x53\x41\x78\x71','\x69\x66\x54\x70\x75\x66\x72\x6a\x74\x30\x35\x74\x78\x71','\x43\x4d\x39\x51\x7a\x77\x6e\x30\x69\x63\x30\x54\x43\x57','\x79\x77\x58\x4c\x43\x32\x7a\x56\x43\x4d\x6e\x4c\x69\x61','\x7a\x77\x7a\x48\x44\x77\x58\x30\x6f\x49\x61\x5a\x6d\x61','\x43\x4e\x71\x47\x41\x68\x72\x30\x43\x63\x61\x54\x6c\x71','\x7a\x67\x76\x55\x69\x67\x6a\x35\x69\x65\x6e\x6d\x73\x71','\x75\x4c\x71\x47\x69\x63\x61\x47\x69\x63\x61\x47\x69\x61','\x44\x67\x39\x6d\x42\x33\x44\x4c\x43\x4b\x6e\x48\x43\x57','\x69\x67\x39\x31\x44\x68\x62\x31\x44\x63\x61\x4f\x7a\x61','\x6d\x78\x57\x57\x46\x64\x72\x38\x6d\x33\x57\x59','\x69\x67\x66\x53\x42\x63\x62\x56\x44\x78\x72\x57\x44\x71','\x79\x32\x6e\x31\x43\x67\x4c\x4c\x7a\x63\x57\x47\x7a\x61','\x43\x33\x72\x48\x43\x4e\x72\x5a\x76\x32\x4c\x30\x41\x61','\x42\x67\x76\x55\x7a\x33\x72\x4f','\x41\x77\x35\x4d\x42\x59\x4b','\x43\x67\x66\x59\x43\x32\x76\x6a\x42\x4e\x71','\x76\x4d\x66\x53\x41\x77\x71\x47\x42\x33\x62\x30\x41\x71','\x44\x68\x62\x48\x42\x4b\x6d','\x6d\x4a\x76\x38\x6d\x4a\x62\x38\x6d\x4a\x66\x38\x6d\x47','\x6c\x73\x31\x32\x7a\x78\x6a\x5a\x41\x77\x39\x55','\x44\x67\x4c\x55\x7a\x59\x62\x6a\x71\x4b\x30\x47\x75\x57','\x73\x32\x39\x5a\x42\x4b\x71','\x6e\x64\x65\x5a\x6d\x5a\x4b\x31\x73\x30\x50\x5a\x7a\x76\x7a\x48','\x41\x77\x35\x4d\x42\x59\x57\x47\x7a\x67\x76\x49\x44\x71','\x41\x4d\x39\x50\x42\x47','\x6c\x73\x31\x4f\x7a\x77\x58\x57','\x44\x63\x61\x4f\x42\x33\x7a\x4c\x43\x4e\x6a\x50\x7a\x61','\x43\x59\x61\x4f\x42\x33\x7a\x4c\x43\x4e\x6a\x50\x7a\x61','\x7a\x78\x48\x50\x44\x61','\x43\x4d\x76\x57\x42\x67\x66\x4a\x7a\x71','\x6d\x4a\x7a\x38\x6d\x74\x48\x38\x6d\x74\x4c\x38\x6d\x57','\x69\x63\x61\x54\x6c\x78\x6e\x50\x42\x67\x76\x55\x44\x61','\x44\x68\x6a\x48\x42\x4e\x6e\x57\x42\x33\x6a\x30','\x43\x67\x54\x6f\x75\x78\x79','\x45\x68\x71\x47\x44\x47','\x75\x4e\x76\x55\x69\x63\x69','\x6c\x78\x71\x47\x76\x66\x4c\x71\x72\x73\x61\x47\x69\x61','\x44\x63\x62\x54\x42\x32\x72\x4c\x6f\x49\x62\x30\x43\x47','\x79\x78\x72\x4f\x43\x57','\x79\x78\x76\x53\x44\x64\x4f\x47\x43\x33\x72\x4b\x41\x71','\x45\x4c\x48\x50\x7a\x66\x4b','\x69\x63\x62\x74\x41\x67\x39\x33\x69\x68\x7a\x4c\x43\x47','\x43\x4e\x71\x47\x43\x33\x72\x4b\x41\x77\x38','\x69\x63\x48\x4a\x42\x32\x31\x54\x79\x73\x31\x5a\x7a\x71','\x79\x77\x58\x4c\x43\x4e\x71','\x69\x63\x62\x74\x41\x67\x39\x33\x69\x68\x72\x4f\x41\x71','\x74\x33\x62\x30\x41\x77\x39\x55\x43\x5a\x4f','\x43\x32\x76\x59\x44\x4d\x76\x59\x6c\x4d\x50\x5a','\x43\x68\x62\x59\x7a\x78\x6e\x5a\x69\x67\x66\x53\x42\x61','\x6d\x5a\x65\x33\x6e\x5a\x43\x34\x6e\x4d\x35\x76\x76\x78\x72\x68\x42\x61','\x79\x77\x35\x5a\x43\x67\x39\x59\x44\x63\x62\x32\x79\x71','\x69\x66\x6e\x4c\x44\x63\x62\x69\x76\x66\x72\x71\x69\x61','\x6c\x49\x39\x5a\x43\x4d\x6d\x56\x42\x77\x6e\x57\x6c\x71','\x71\x30\x76\x46\x72\x4b\x39\x6d\x72\x65\x76\x73\x78\x57','\x69\x63\x62\x74\x7a\x78\x71\x47\x44\x32\x39\x59\x41\x57','\x43\x33\x62\x56\x43\x4e\x71\x47\x44\x68\x4c\x57\x7a\x71','\x43\x32\x4c\x56\x42\x49\x62\x50\x42\x4d\x7a\x56\x43\x47','\x42\x4d\x4c\x69\x45\x4e\x79','\x6d\x64\x61\x50','\x41\x68\x72\x30\x43\x61','\x43\x49\x57\x47\x44\x32\x66\x59\x42\x4d\x4c\x55\x7a\x57','\x69\x67\x58\x4c\x44\x4d\x76\x53\x6f\x49\x62\x4c\x42\x71','\x45\x4c\x72\x69\x45\x78\x43','\x6c\x73\x31\x57\x42\x33\x6a\x30','\x6d\x74\x43\x33\x6e\x64\x47\x35\x6d\x4b\x6a\x4e\x45\x67\x7a\x78\x71\x57','\x41\x77\x35\x4d\x42\x57','\x79\x32\x6e\x31\x43\x67\x4c\x4c\x7a\x63\x4b','\x69\x68\x44\x48\x43\x4d\x35\x50\x42\x4d\x43\x53\x69\x61','\x74\x63\x61\x47\x69\x63\x61\x47\x69\x63\x61\x47\x69\x61','\x79\x77\x6e\x4c\x69\x66\x62\x62\x76\x65\x48\x74\x6c\x61','\x72\x30\x66\x76\x7a\x78\x43','\x76\x77\x35\x52\x42\x4d\x39\x33\x42\x49\x62\x48\x43\x47','\x44\x31\x62\x6d\x75\x78\x47','\x69\x63\x44\x4f\x44\x68\x72\x57\x6a\x57','\x44\x32\x76\x6f\x75\x65\x57','\x6d\x5a\x71\x30\x74\x77\x48\x67\x44\x67\x31\x53','\x41\x77\x58\x4c\x42\x4e\x71','\x42\x4d\x39\x4b\x7a\x74\x50\x31\x43\x4d\x57','\x73\x33\x44\x4b\x77\x75\x57','\x75\x65\x66\x75\x73\x66\x6d\x50','\x42\x33\x69\x47\x42\x77\x39\x59\x7a\x73\x62\x50\x42\x47','\x6d\x4a\x65\x32\x6d\x74\x43\x58\x74\x68\x44\x77\x42\x76\x62\x77','\x42\x67\x39\x4e','\x6e\x64\x79\x58\x6e\x5a\x6d\x30\x42\x78\x44\x6e\x72\x67\x7a\x6a','\x73\x32\x48\x79\x73\x78\x4f','\x6c\x73\x31\x30\x43\x4d\x66\x55\x43\x33\x62\x56\x43\x47','\x44\x32\x39\x59\x41\x33\x6e\x57\x79\x77\x6e\x4c\x75\x61','\x44\x68\x72\x57\x69\x68\x72\x59\x79\x77\x35\x5a\x43\x61','\x74\x4c\x6e\x71\x74\x31\x6a\x75\x6b\x71','\x79\x4b\x72\x66\x73\x4e\x4f','\x6f\x49\x62\x5a\x44\x67\x72\x50\x42\x59\x62\x56\x43\x47','\x41\x77\x6e\x48\x42\x63\x57\x47\x7a\x78\x6a\x59\x42\x57','\x43\x4e\x7a\x4c\x43\x47','\x43\x67\x39\x59\x44\x63\x62\x4d\x42\x33\x69\x47\x41\x61','\x69\x63\x62\x74\x73\x75\x58\x66\x74\x4c\x71\x47\x69\x61','\x42\x77\x66\x30\x41\x77\x39\x55','\x73\x78\x62\x55\x72\x4d\x38','\x7a\x78\x7a\x4c\x42\x64\x4f\x47\x7a\x77\x31\x4c\x43\x47','\x69\x63\x61\x47\x69\x63\x62\x74\x41\x77\x58\x4c\x42\x47','\x44\x77\x75\x56\x6d\x73\x62\x30\x42\x59\x62\x5a\x44\x71','\x6d\x4a\x47\x57\x6e\x4a\x47\x30\x6e\x75\x35\x32\x71\x76\x50\x65\x72\x47','\x79\x33\x6a\x50\x44\x67\x4c\x4a\x79\x77\x57','\x42\x4d\x66\x54\x7a\x71','\x6c\x77\x58\x56\x7a\x59\x31\x53\x7a\x78\x7a\x4c\x42\x61','\x7a\x78\x6d\x47\x6c\x73\x31\x53\x42\x32\x43\x54\x42\x61','\x42\x32\x35\x5a\x6f\x49\x61','\x69\x63\x61\x47\x69\x63\x62\x6d\x42\x32\x43\x47\x42\x61','\x69\x63\x62\x78\x74\x31\x6a\x6c\x75\x31\x62\x62\x71\x57','\x7a\x77\x7a\x48\x44\x77\x58\x30\x6f\x49\x62\x4d\x79\x71','\x43\x32\x4c\x53\x7a\x77\x35\x30','\x69\x63\x62\x75\x43\x4d\x66\x55\x43\x33\x62\x56\x43\x47','\x6d\x4e\x57\x57\x46\x64\x69\x5a\x46\x64\x69\x30\x46\x61','\x72\x77\x35\x32\x41\x78\x6a\x56\x42\x4d\x31\x4c\x42\x47','\x76\x78\x6e\x48\x7a\x32\x75\x36','\x6d\x74\x62\x56\x73\x4b\x6e\x51\x73\x4e\x4b','\x69\x63\x62\x6e\x71\x31\x62\x46\x76\x66\x6a\x62\x74\x47','\x43\x32\x66\x4e\x7a\x71','\x69\x63\x30\x54\x41\x67\x76\x53\x43\x63\x69\x47\x7a\x47','\x43\x59\x62\x4f\x7a\x77\x58\x57\x69\x67\x31\x4c\x43\x57','\x42\x33\x6a\x30\x69\x63\x48\x48\x44\x78\x72\x56\x6c\x71','\x43\x33\x72\x4b\x41\x77\x38','\x42\x4e\x6e\x57\x42\x33\x6a\x30\x69\x68\x7a\x48\x42\x61','\x34\x50\x32\x6d\x69\x65\x76\x59\x43\x4d\x39\x59\x6f\x49\x62\x6a','\x7a\x4d\x4c\x55\x7a\x68\x6d\x47\x79\x78\x7a\x48\x41\x71','\x7a\x32\x76\x55\x79\x33\x4b\x53\x69\x67\x66\x53\x7a\x71','\x7a\x78\x6a\x4e\x7a\x77\x35\x4a\x45\x73\x57\x47\x79\x71','\x44\x4c\x72\x62\x75\x4e\x47','\x43\x67\x66\x4a\x41\x32\x66\x4e\x7a\x73\x35\x51\x43\x57','\x42\x4d\x39\x4b\x7a\x74\x50\x57\x79\x78\x72\x4f','\x6d\x74\x75\x35\x6d\x74\x47\x5a\x73\x4d\x4c\x4d\x75\x77\x66\x67','\x42\x67\x66\x49\x42\x67\x75\x47\x41\x77\x79\x47\x42\x57','\x44\x4d\x76\x53\x69\x65\x58\x66\x76\x4b\x76\x6d\x6c\x61','\x75\x76\x66\x76\x7a\x32\x79','\x7a\x78\x6d\x47\x74\x75\x6e\x71\x78\x31\x72\x73\x71\x71','\x69\x63\x30\x54\x44\x68\x6a\x48\x42\x4e\x6e\x57\x42\x57','\x42\x49\x57\x47\x6c\x78\x79\x47\x69\x63\x61\x47\x69\x61','\x46\x64\x65\x32\x46\x64\x76\x38\x6d\x74\x44\x38\x6f\x71','\x76\x4b\x6a\x6a\x76\x4e\x4b','\x6c\x77\x47\x47\x69\x63\x61\x47\x69\x63\x61\x47\x69\x61','\x69\x63\x31\x33\x69\x66\x62\x62\x76\x65\x48\x74\x69\x61','\x44\x32\x39\x59\x41\x33\x6e\x57\x79\x77\x6e\x4c\x69\x61','\x69\x63\x61\x54\x6c\x78\x72\x59\x79\x77\x35\x5a\x43\x61','\x69\x63\x61\x47\x75\x32\x76\x30\x69\x67\x58\x56\x7a\x57'];a0_0x8732=function(){return _0x255011;};return a0_0x8732();}function a0_0x52fd(_0x2375f7,_0x42cc30){_0x2375f7=_0x2375f7-0x91;const _0x873218=a0_0x8732();let _0x52fd9a=_0x873218[_0x2375f7];if(a0_0x52fd['\x5a\x55\x54\x74\x4d\x65']===undefined){var _0xc40eb6=function(_0x263dba){const _0x296614='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0x4556ea='';let _0x458e62='';for(let _0x5193b5=0x0,_0x2a1837,_0x5e99b9,_0x57d3d4=0x0;_0x5e99b9=_0x263dba['\x63\x68\x61\x72\x41\x74'](_0x57d3d4++);~_0x5e99b9&&(_0x2a1837=_0x5193b5%0x4?_0x2a1837*0x40+_0x5e99b9:_0x5e99b9,_0x5193b5++%0x4)?_0x4556ea+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xff&_0x2a1837>>(-0x2*_0x5193b5&0x6)):0x0){_0x5e99b9=_0x296614['\x69\x6e\x64\x65\x78\x4f\x66'](_0x5e99b9);}for(let _0xba9b2c=0x0,_0x2172f6=_0x4556ea['\x6c\x65\x6e\x67\x74\x68'];_0xba9b2c<_0x2172f6;_0xba9b2c++){_0x458e62+='\x25'+('\x30\x30'+_0x4556ea['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0xba9b2c)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x10))['\x73\x6c\x69\x63\x65'](-0x2);}return decodeURIComponent(_0x458e62);};a0_0x52fd['\x78\x6f\x77\x76\x49\x41']=_0xc40eb6;a0_0x52fd['\x6a\x4b\x71\x54\x50\x67']={};a0_0x52fd['\x5a\x55\x54\x74\x4d\x65']=!![];}const _0x511014=_0x873218[0x0];const _0x189a8a=_0x2375f7+_0x511014;const _0x43c9b1=a0_0x52fd['\x6a\x4b\x71\x54\x50\x67'][_0x189a8a];if(!_0x43c9b1){_0x52fd9a=a0_0x52fd['\x78\x6f\x77\x76\x49\x41'](_0x52fd9a);a0_0x52fd['\x6a\x4b\x71\x54\x50\x67'][_0x189a8a]=_0x52fd9a;}else{_0x52fd9a=_0x43c9b1;}return _0x52fd9a;}(function(_0x539ad6,_0xd1dd3){const _0x3f3088=a0_0x52fd;const _0x26cee3=_0x539ad6();while(!![]){try{const _0x5db754=-parseInt(_0x3f3088(0xf2))/0x1+-parseInt(_0x3f3088(0x94))/0x2*(-parseInt(_0x3f3088(0x12d))/0x3)+-parseInt(_0x3f3088(0x11c))/0x4+-parseInt(_0x3f3088(0x140))/0x5+parseInt(_0x3f3088(0x10d))/0x6+parseInt(_0x3f3088(0x12f))/0x7+parseInt(_0x3f3088(0x127))/0x8*(parseInt(_0x3f3088(0xa3))/0x9);if(_0x5db754===_0xd1dd3){break;}else{_0x26cee3['push'](_0x26cee3['shift']());}}catch(_0x2022a3){_0x26cee3['push'](_0x26cee3['shift']());}}}(a0_0x8732,0x48bcc));import{createLogger}from'\x2e\x2f\x73\x72\x63\x2f\x6c\x69\x62\x2f\x6c\x6f\x67\x67\x65\x72\x2e\x6a\x73';import{mcpServer,setupServer}from'\x2e\x2f\x73\x72\x63\x2f\x6d\x63\x70\x2d\x73\x65\x72\x76\x65\x72\x2e\x6a\x73';import{setSilent}from'\x2e\x2f\x73\x72\x63\x2f\x73\x74\x61\x74\x65\x2e\x6a\x73';function parseCliArguments(_0x5d6c82){const _0x162ddc=a0_0x52fd;const _0x24f639={'\x62\x44\x45\x4a\x7a':function(_0x304934,_0x54aaaa){return _0x304934===_0x54aaaa;},'\x56\x47\x62\x70\x65':function(_0x22bc80,_0x3c93c2){return _0x22bc80===_0x3c93c2;},'\x68\x4e\x47\x66\x69':_0x162ddc(0x131)+'\x74','\x4b\x68\x58\x49\x7a':function(_0x57efda,_0x59a71e){return _0x57efda+_0x59a71e;},'\x66\x4e\x73\x6b\x56':function(_0x5a6b11,_0x2f0a4){return _0x5a6b11===_0x2f0a4;},'\x63\x51\x7a\x6a\x67':function(_0x26f862,_0x3e88a1){return _0x26f862===_0x3e88a1;},'\x65\x65\x69\x59\x44':function(_0x5ceb30,_0x413aa9){return _0x5ceb30===_0x413aa9;},'\x4b\x77\x64\x59\x4c':'\x2d\x2d\x77\x6f\x72\x6b\x73\x70\x61\x63'+'\x65','\x55\x77\x4b\x76\x47':function(_0x24ad17,_0x4f7d79){return _0x24ad17===_0x4f7d79;}};const _0x4786ee={'\x74\x72\x61\x6e\x73\x70\x6f\x72\x74':null,'\x6c\x6f\x67\x4c\x65\x76\x65\x6c':null,'\x68\x74\x74\x70\x50\x6f\x72\x74':null,'\x77\x6f\x72\x6b\x73\x70\x61\x63\x65\x50\x61\x74\x68\x73':null};for(let _0x4d88ef=0x0;_0x4d88ef<_0x5d6c82[_0x162ddc(0xe9)];_0x4d88ef++){const _0x2cdc4f=_0x5d6c82[_0x4d88ef];if(_0x2cdc4f===_0x162ddc(0xf5)||_0x24f639[_0x162ddc(0x135)](_0x2cdc4f,'\x2d\x68')||_0x2cdc4f===_0x162ddc(0xef)||_0x2cdc4f==='\x2d\x76'){if(_0x2cdc4f==='\x2d\x68'){_0x4786ee[_0x162ddc(0xfc)]='\x2d\x2d\x68\x65\x6c\x70';}else if(_0x24f639[_0x162ddc(0xc9)](_0x2cdc4f,'\x2d\x76')){_0x4786ee['\x74\x72\x61\x6e\x73\x70\x6f\x72\x74']=_0x162ddc(0xef);}else{_0x4786ee[_0x162ddc(0xfc)]=_0x2cdc4f;}break;}if((_0x24f639[_0x162ddc(0xc9)](_0x2cdc4f,_0x24f639['\x68\x4e\x47\x66\x69'])||_0x24f639['\x56\x47\x62\x70\x65'](_0x2cdc4f,'\x2d\x74'))&&_0x24f639[_0x162ddc(0x130)](_0x4d88ef,0x1)<_0x5d6c82[_0x162ddc(0xe9)]){const _0x5368a8=_0x5d6c82[_0x4d88ef+0x1];if(_0x24f639[_0x162ddc(0xb4)](_0x5368a8,_0x162ddc(0x9a))||_0x24f639['\x63\x51\x7a\x6a\x67'](_0x5368a8,'\x68\x74\x74\x70')){_0x4786ee[_0x162ddc(0xfc)]='\x2d\x2d'+_0x5368a8;}else{throw new Error('\x49\x6e\x76\x61\x6c\x69\x64\x20\x74\x72'+_0x162ddc(0x10e)+'\x6c\x75\x65\x3a\x20'+_0x5368a8+('\x2e\x20\x4d\x75\x73\x74\x20\x62\x65\x20'+_0x162ddc(0xbe)+_0x162ddc(0x125)));}_0x4d88ef++;}else if((_0x24f639[_0x162ddc(0xc5)](_0x2cdc4f,_0x162ddc(0xc7)+'\x6c')||_0x2cdc4f==='\x2d\x6c')&&_0x4d88ef+0x1<_0x5d6c82['\x6c\x65\x6e\x67\x74\x68']){_0x4786ee[_0x162ddc(0xd0)]=_0x5d6c82[_0x4d88ef+0x1][_0x162ddc(0xe3)+'\x65']();_0x4d88ef++;}else if((_0x24f639['\x62\x44\x45\x4a\x7a'](_0x2cdc4f,_0x162ddc(0x11b))||_0x2cdc4f==='\x2d\x70')&&_0x24f639[_0x162ddc(0x130)](_0x4d88ef,0x1)<_0x5d6c82[_0x162ddc(0xe9)]){_0x4786ee['\x68\x74\x74\x70\x50\x6f\x72\x74']=Number[_0x162ddc(0xeb)](_0x5d6c82[_0x24f639[_0x162ddc(0x130)](_0x4d88ef,0x1)],0xa);_0x4d88ef++;}else if((_0x2cdc4f===_0x24f639[_0x162ddc(0x12a)]||_0x2cdc4f==='\x2d\x77')&&_0x4d88ef+0x1<_0x5d6c82[_0x162ddc(0xe9)]){_0x4786ee[_0x162ddc(0x132)+_0x162ddc(0x102)]=_0x5d6c82[_0x4d88ef+0x1];_0x4d88ef++;}else if(_0x2cdc4f==='\x2d\x2d\x73\x69\x6c\x65\x6e\x74'||_0x24f639['\x55\x77\x4b\x76\x47'](_0x2cdc4f,'\x2d\x73')){_0x4786ee[_0x162ddc(0x149)]=!![];}else if(_0x2cdc4f[_0x162ddc(0xe8)]('\x2d\x2d')||_0x2cdc4f[_0x162ddc(0xe8)]('\x2d')&&_0x2cdc4f[_0x162ddc(0xe9)]===0x2){throw new Error(_0x162ddc(0x123)+'\x67\x75\x6d\x65\x6e\x74\x3a\x20'+_0x2cdc4f);}}return _0x4786ee;}export async function main(_0x871c70){const _0x22d405=a0_0x52fd;const _0x1359e8={'\x52\x64\x48\x4a\x41':'\x6e\x6f\x64\x65\x3a\x66\x73','\x51\x51\x55\x67\x66':function(_0x2b1f5b,_0x6c6a3){return _0x2b1f5b(_0x6c6a3);},'\x7a\x58\x69\x64\x59':function(_0x4dd071,_0x1ccf02){return _0x4dd071===_0x1ccf02;},'\x76\x54\x41\x52\x78':'\x2d\x2d\x68\x65\x6c\x70','\x64\x56\x4a\x48\x69':_0x22d405(0xcd),'\x56\x42\x49\x56\x79':'\x20\x20\x4d\x43\x50\x5f\x48\x54\x54\x50'+_0x22d405(0xb7)+_0x22d405(0xca)+'\x70\x6f\x72\x74\x20\x66\x6f\x72\x20\x68'+'\x74\x74\x70\x20\x74\x72\x61\x6e\x73\x70'+_0x22d405(0x99)+_0x22d405(0x9d)+_0x22d405(0xa4)+_0x22d405(0xe7)+_0x22d405(0xdf)+_0x22d405(0x116),'\x7a\x6d\x69\x6f\x65':'\x20\x20\x2d\x2d\x68\x65\x6c\x70\x2c\x20'+_0x22d405(0xac)+_0x22d405(0x109)+_0x22d405(0x98)+_0x22d405(0x96),'\x77\x50\x4c\x51\x78':_0x22d405(0xbd)+'\x4f\x52\x54\x2c\x20\x2d\x70\x20\x50\x4f'+_0x22d405(0xe2)+_0x22d405(0x10f)+_0x22d405(0x139)+_0x22d405(0x133)+_0x22d405(0x99)+_0x22d405(0x9d)+_0x22d405(0xa4)+_0x22d405(0x11e),'\x77\x65\x4e\x50\x4c':'\x4f\x4c\x77\x59\x45','\x7a\x54\x48\x79\x77':function(_0x2e8b86,_0x5c13bc){return _0x2e8b86!==_0x5c13bc;},'\x49\x70\x6e\x46\x6f':_0x22d405(0x122),'\x74\x70\x61\x6e\x43':_0x22d405(0x9a),'\x6e\x69\x48\x7a\x76':function(_0x3407f9,_0x427530){return _0x3407f9!==_0x427530;},'\x4b\x6f\x73\x6e\x44':_0x22d405(0x117),'\x67\x49\x63\x64\x50':_0x22d405(0x108),'\x58\x59\x4d\x78\x6d':'\x65\x6d\x65\x72\x67\x65\x6e\x63\x79','\x48\x62\x75\x53\x44':function(_0x54ec1d){return _0x54ec1d();}};try{const {readFileSync:_0x36e458}=await import(_0x1359e8['\x52\x64\x48\x4a\x41']);const {dirname:_0x13fcf5,join:_0x2daede}=await import(_0x22d405(0xa2));const {fileURLToPath:_0x2c7097}=await import(_0x22d405(0x129));const _0x1b8ca0=_0x2c7097(import.meta.url);const _0x89f250=_0x13fcf5(_0x1b8ca0);const _0x2942ea=_0x2daede(_0x89f250,_0x22d405(0xa1)+'\x6f\x6e');const _0x551ac4=JSON[_0x22d405(0xcc)](_0x36e458(_0x2942ea,'\x75\x74\x66\x38'));const _0x1b63a2=_0x1359e8[_0x22d405(0xa6)](parseCliArguments,_0x871c70);if(_0x1359e8[_0x22d405(0x104)](_0x1b63a2[_0x22d405(0xfc)],_0x1359e8[_0x22d405(0xa0)])){const _0x59aca6=(_0x22d405(0xd4)+_0x22d405(0x91)+_0x22d405(0xee)+_0x22d405(0xd7)+_0x22d405(0xfa)+_0x22d405(0xc4)+_0x22d405(0xaa))[_0x22d405(0xdb)]('\x7c');let _0x3826fd=0x0;while(!![]){switch(_0x59aca6[_0x3826fd++]){case'\x30':console[_0x22d405(0x12e)]('');continue;case'\x31':console[_0x22d405(0x12e)](_0x22d405(0x92)+'\x74\x20\x56\x61\x72\x69\x61\x62\x6c\x65'+'\x73\x20\x28\x6f\x76\x65\x72\x72\x69\x64'+_0x22d405(0xe1)+'\x20\x61\x72\x67\x75\x6d\x65\x6e\x74\x73'+'\x29\x3a');continue;case'\x32':console[_0x22d405(0x12e)](_0x22d405(0xfb)+_0x22d405(0xd8)+'\x20\x20\x53\x75\x70\x70\x72\x65\x73\x73'+_0x22d405(0xe6)+_0x22d405(0xf6)+_0x22d405(0x144)+'\x65\x76\x65\x6c\x29');continue;case'\x33':console['\x6c\x6f\x67']('\x20\x20'+_0x551ac4[_0x22d405(0x142)]+(_0x22d405(0xa8)+_0x22d405(0xe0)+_0x22d405(0xae)+_0x22d405(0xcf)+_0x22d405(0xdd)+_0x22d405(0x128)));continue;case'\x34':console[_0x22d405(0x12e)](_0x1359e8[_0x22d405(0xc3)]);continue;case'\x35':console['\x6c\x6f\x67'](_0x1359e8[_0x22d405(0xab)]);continue;case'\x36':console[_0x22d405(0x12e)](_0x22d405(0x95)+'\x53\x50\x4f\x52\x54\x20\x20\x20\x20\x20'+_0x22d405(0xc8)+_0x22d405(0x113)+_0x22d405(0x136)+'\x20\x68\x74\x74\x70\x20\x28\x64\x65\x66'+_0x22d405(0x103)+'\x6f\x29');continue;case'\x37':console[_0x22d405(0x12e)](_0x1359e8['\x7a\x6d\x69\x6f\x65']);continue;case'\x38':console[_0x22d405(0x12e)]('');continue;case'\x39':process['\x65\x78\x69\x74'](0x0);continue;case'\x31\x30':console[_0x22d405(0x12e)]('\x20\x20\x2d\x2d\x76\x65\x72\x73\x69\x6f'+_0x22d405(0xa9)+_0x22d405(0x105)+_0x22d405(0x114)+_0x22d405(0x13b));continue;case'\x31\x31':console[_0x22d405(0x12e)]('');continue;case'\x31\x32':console[_0x22d405(0x12e)]('\x20\x20'+_0x551ac4[_0x22d405(0x142)]+_0x22d405(0xdc));continue;case'\x31\x33':console[_0x22d405(0x12e)](_0x22d405(0x93));continue;case'\x31\x34':console[_0x22d405(0x12e)]('');continue;case'\x31\x35':console[_0x22d405(0x12e)](_0x22d405(0xb1)+_0x22d405(0x120)+_0x22d405(0x146)+_0x22d405(0x13d)+_0x22d405(0x9e)+_0x22d405(0xba)+'\x61\x6c\x2c\x20\x65\x72\x72\x6f\x72\x2c'+_0x22d405(0x11f)+'\x6e\x6f\x74\x69\x63\x65\x2c\x20\x69\x6e'+'\x66\x6f\x2c\x20\x64\x65\x62\x75\x67\x20'+'\x28\x64\x65\x66\x61\x75\x6c\x74\x3a\x20'+_0x22d405(0xea));continue;case'\x31\x36':console['\x6c\x6f\x67'](_0x22d405(0x13a)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x22d405(0x13e)+_0x22d405(0x101)+_0x22d405(0x13f)+_0x22d405(0x10c)+_0x22d405(0xe4)+_0x22d405(0x148)+'\x6c\x73\x65\x29');continue;case'\x31\x37':console[_0x22d405(0x12e)](_0x22d405(0x147)+'\x45\x5f\x46\x4f\x4c\x44\x45\x52\x5f\x50'+'\x41\x54\x48\x53\x20\x57\x6f\x72\x6b\x73'+'\x70\x61\x63\x65\x20\x70\x61\x74\x68\x73'+_0x22d405(0x107)+_0x22d405(0xc2));continue;case'\x31\x38':console[_0x22d405(0x12e)]('\x20\x20'+_0x551ac4[_0x22d405(0x142)]+('\x20\x2d\x2d\x74\x72\x61\x6e\x73\x70\x6f'+_0x22d405(0xe0)+'\x70\x6f\x72\x74\x20\x38\x30\x38\x30'));continue;case'\x31\x39':console[_0x22d405(0x12e)]('\x20\x20'+_0x551ac4[_0x22d405(0x142)]+(_0x22d405(0xa8)+'\x72\x74\x20\x73\x74\x64\x69\x6f\x20\x2d'+_0x22d405(0x143)+_0x22d405(0xbb)));continue;case'\x32\x30':console['\x6c\x6f\x67'](_0x1359e8[_0x22d405(0x124)]);continue;case'\x32\x31':console[_0x22d405(0x12e)]('\x20\x20\x2d\x2d\x77\x6f\x72\x6b\x73\x70'+_0x22d405(0x121)+_0x22d405(0xad)+_0x22d405(0x112)+_0x22d405(0xb5)+_0x22d405(0xf7)+_0x22d405(0xb8)+_0x22d405(0x111)+_0x22d405(0x12b));continue;case'\x32\x32':console[_0x22d405(0x12e)]('\x49\x42\x4d\x20\x53\x61\x6c\x65\x73\x66'+_0x22d405(0xbf)+'\x78\x74');continue;case'\x32\x33':console[_0x22d405(0x12e)](_0x22d405(0x10a));continue;case'\x32\x34':console[_0x22d405(0x12e)](_0x22d405(0xaf)+_0x22d405(0xd5)+_0x22d405(0x100)+_0x22d405(0x14a)+_0x22d405(0xce)+_0x22d405(0xb6)+'\x70\x20\x28\x6f\x76\x65\x72\x72\x69\x64'+_0x22d405(0xa7)+_0x22d405(0x134));continue;case'\x32\x35':console[_0x22d405(0x12e)](_0x22d405(0xb9)+_0x22d405(0xa5)+'\x20\x2d\x6c\x20\x4c\x45\x56\x45\x4c\x20'+_0x22d405(0xb0)+_0x22d405(0x119)+_0x22d405(0x9f)+_0x22d405(0xb2)+_0x22d405(0x137)+_0x22d405(0x118)+'\x2c\x20\x6e\x6f\x74\x69\x63\x65\x2c\x20'+_0x22d405(0xf3)+'\x67');continue;case'\x32\x36':console[_0x22d405(0x12e)]('\x20\x20'+_0x551ac4[_0x22d405(0x142)]+(_0x22d405(0xa8)+_0x22d405(0x106)));continue;}break;}}if(_0x1b63a2[_0x22d405(0xfc)]===_0x22d405(0xef)){console['\x6c\x6f\x67']('\x49\x42\x4d\x20\x53\x61\x6c\x65\x73\x66'+_0x22d405(0xbf)+_0x22d405(0xfe)+_0x551ac4['\x76\x65\x72\x73\x69\x6f\x6e']);process[_0x22d405(0xf8)](0x0);}let _0x35e4a5;if(_0x1b63a2[_0x22d405(0xfc)]){if(_0x1359e8[_0x22d405(0x126)]==='\x62\x65\x6f\x59\x46'){_0x2c125b=_0x5b68cc.env.MCP_TRANSPORT['\x74\x6f\x4c\x6f\x77\x65\x72\x43\x61\x73'+'\x65']();}else{_0x35e4a5=_0x1b63a2[_0x22d405(0xfc)][_0x22d405(0xf9)](/^--/,'')[_0x22d405(0xe3)+'\x65']();}}else if(process.env.MCP_TRANSPORT){if(_0x1359e8[_0x22d405(0x11a)](_0x1359e8[_0x22d405(0x13c)],_0x22d405(0xfd))){_0x35e4a5=process.env.MCP_TRANSPORT['\x74\x6f\x4c\x6f\x77\x65\x72\x43\x61\x73'+'\x65']();}else{_0x5b9d67[_0x22d405(0xd0)]=_0x20863e[_0x461b75+0x1][_0x22d405(0xe3)+'\x65']();_0x5a9363++;}}else{_0x35e4a5=_0x22d405(0x9a);}if(_0x35e4a5!==_0x1359e8[_0x22d405(0xed)]&&_0x1359e8[_0x22d405(0x115)](_0x35e4a5,_0x1359e8[_0x22d405(0xf1)])){const _0x191c79=_0x22d405(0xe5)[_0x22d405(0xdb)]('\x7c');let _0x375a7f=0x0;while(!![]){switch(_0x191c79[_0x375a7f++]){case'\x30':console[_0x22d405(0xd2)](_0x22d405(0xec)+_0x22d405(0xc1)+'\x20\x7c\x20\x68\x74\x74\x70');continue;case'\x31':console[_0x22d405(0xd2)](_0x22d405(0x9c)+'\x6e\x76\x61\x6c\x69\x64\x20\x74\x72\x61'+_0x22d405(0x9b)+'\x75\x65');continue;case'\x32':process['\x65\x78\x69\x74'](0x1);continue;case'\x33':console[_0x22d405(0xd2)](_0x22d405(0xff)+_0x551ac4[_0x22d405(0x142)]+(_0x22d405(0x97)+_0x22d405(0x12c)+'\x66\x6f\x72\x6d\x61\x74\x69\x6f\x6e'));continue;case'\x34':console[_0x22d405(0xd2)]('\x52\x65\x63\x65\x69\x76\x65\x64\x3a\x20'+_0x35e4a5);continue;}break;}}if(_0x1b63a2[_0x22d405(0x149)]){setSilent(!![]);}else if(_0x1b63a2['\x6c\x6f\x67\x4c\x65\x76\x65\x6c']){const _0x1079c0=[_0x22d405(0xc0),_0x22d405(0x11d),'\x6e\x6f\x74\x69\x63\x65','\x77\x61\x72\x6e\x69\x6e\x67',_0x22d405(0xd2),_0x22d405(0x141),_0x1359e8[_0x22d405(0xd3)],_0x1359e8['\x58\x59\x4d\x78\x6d']];const _0x111520=_0x1b63a2[_0x22d405(0xd0)]['\x74\x6f\x4c\x6f\x77\x65\x72\x43\x61\x73'+'\x65']();if(_0x1079c0[_0x22d405(0xbc)](_0x111520)){process.env.LOG_LEVEL=_0x111520;}else{console['\x65\x72\x72\x6f\x72'](_0x22d405(0x9c)+'\x6e\x76\x61\x6c\x69\x64\x20\x6c\x6f\x67'+_0x22d405(0xd9)+_0x1b63a2[_0x22d405(0xd0)]);console[_0x22d405(0xd2)](_0x22d405(0xec)+_0x22d405(0x145)+_0x1079c0[_0x22d405(0xf4)]('\x2c\x20'));process[_0x22d405(0xf8)](0x1);}}if(_0x1b63a2[_0x22d405(0xda)]){process.env.MCP_HTTP_PORT=_0x1b63a2['\x68\x74\x74\x70\x50\x6f\x72\x74'][_0x22d405(0xcb)]();}if(_0x1b63a2[_0x22d405(0x132)+_0x22d405(0x102)]){process.env.WORKSPACE_FOLDER_PATHS=_0x1b63a2[_0x22d405(0x132)+_0x22d405(0x102)];}const {registerGlobalErrorHandlers:registerGlobalErrorHandlers,registerSignalHandlers:registerSignalHandlers}=await import(_0x22d405(0x110)+_0x22d405(0x10b));registerGlobalErrorHandlers();_0x1359e8[_0x22d405(0xc6)](registerSignalHandlers);await _0x1359e8[_0x22d405(0xa6)](setupServer,_0x35e4a5);}catch(_0x21b49e){const _0x55b060=createLogger();_0x55b060[_0x22d405(0xd2)](_0x21b49e,_0x22d405(0xd6)+_0x22d405(0xf0)+_0x22d405(0xde)+'\x43\x6f\x6e\x74\x65\x78\x74\x20\x73\x65'+_0x22d405(0x138));await mcpServer['\x63\x6c\x6f\x73\x65']();process['\x65\x78\x69\x74'](0x1);}}main(process[a0_0x5a1582(0xb3)][a0_0x5a1582(0xd1)](0x2));
|
package/package.json
CHANGED
package/src/client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a0_0x445f18=a0_0x3c62;(function(_0x1dbdb6,_0x3db73f){const _0xc230e8=a0_0x3c62;const _0x326646=_0x1dbdb6();while(!![]){try{const _0x41ac04=parseInt(_0xc230e8(0x140))/0x1*(parseInt(_0xc230e8(0x133))/0x2)+-parseInt(_0xc230e8(0x120))/0x3+parseInt(_0xc230e8(0x11a))/0x4*(-parseInt(_0xc230e8(0x134))/0x5)+parseInt(_0xc230e8(0x123))/0x6*(-parseInt(_0xc230e8(0x142))/0x7)+parseInt(_0xc230e8(0x136))/0x8+-parseInt(_0xc230e8(0x11b))/0x9*(parseInt(_0xc230e8(0x127))/0xa)+parseInt(_0xc230e8(0x12c))/0xb;if(_0x41ac04===_0x3db73f){break;}else{_0x326646['push'](_0x326646['shift']());}}catch(_0x48b552){_0x326646['push'](_0x326646['shift']());}}}(a0_0x3921,0x9fa2a));function a0_0x3921(){const _0x473fe2=['\x43\x32\x39\x54\x7a\x71','\x6e\x4a\x69\x57\x6f\x64\x47\x58\x6d\x78\x6e\x4f\x45\x78\x44\x79\x72\x47','\x7a\x32\x76\x30\x71\x32\x58\x50\x7a\x77\x35\x30\x76\x47','\x41\x77\x35\x50\x44\x67\x4c\x48\x42\x67\x4c\x36\x7a\x71','\x74\x77\x4c\x64\x43\x4d\x39\x5a\x79\x32\x39\x71\x7a\x71','\x41\x77\x35\x4a\x42\x68\x76\x4b\x7a\x78\x6d','\x44\x75\x39\x50\x73\x30\x71','\x7a\x67\x4c\x56\x69\x65\x6e\x56\x7a\x67\x75','\x41\x4b\x35\x71\x73\x77\x65','\x42\x67\x76\x55\x7a\x33\x72\x4f','\x7a\x4d\x39\x59\x42\x71','\x79\x77\x31\x4c','\x6d\x74\x69\x33\x6e\x74\x69\x35\x6d\x4d\x4c\x56\x45\x75\x4c\x4c\x75\x57','\x6e\x64\x76\x63\x74\x4d\x31\x65\x75\x77\x30','\x7a\x67\x4c\x56\x69\x65\x6e\x56\x7a\x67\x75\x47\x6c\x71','\x44\x77\x35\x52\x42\x4d\x39\x33\x42\x47','\x79\x32\x58\x50\x7a\x77\x35\x30\x73\x77\x35\x4d\x42\x57','\x77\x4c\x76\x67\x43\x66\x75','\x6d\x74\x6d\x30\x6d\x64\x47\x5a\x6e\x75\x48\x77\x43\x78\x50\x65\x76\x71','\x41\x78\x6e\x62\x43\x4e\x6a\x48\x45\x71','\x7a\x77\x31\x49\x7a\x77\x72\x4b\x7a\x77\x72\x73\x7a\x71','\x6e\x4e\x7a\x5a\x43\x32\x4c\x78\x42\x71','\x42\x32\x6a\x51\x7a\x77\x6e\x30','\x7a\x67\x4c\x5a\x79\x77\x6a\x53\x7a\x75\x76\x53\x41\x71','\x76\x4d\x4c\x5a\x44\x77\x66\x53\x69\x66\x6e\x30\x44\x71','\x6d\x5a\x47\x31\x6e\x64\x79\x57\x72\x76\x44\x30\x73\x32\x50\x35','\x7a\x33\x72\x4c','\x42\x67\x35\x41\x43\x33\x4b','\x71\x33\x76\x59\x43\x32\x39\x59','\x44\x67\x39\x6d\x42\x33\x44\x4c\x43\x4b\x6e\x48\x43\x57','\x6f\x74\x6d\x35\x6d\x74\x75\x59\x6e\x75\x58\x64\x76\x78\x66\x6c\x76\x61','\x43\x4d\x76\x5a\x42\x33\x76\x59\x79\x32\x76\x46\x42\x61','\x42\x4d\x66\x54\x7a\x71','\x44\x4d\x76\x59\x43\x32\x4c\x56\x42\x47','\x43\x68\x6a\x56\x44\x67\x39\x4a\x42\x32\x58\x77\x7a\x71','\x42\x67\x39\x4e\x7a\x32\x4c\x55\x7a\x57','\x7a\x78\x6a\x5a\x41\x77\x39\x55','\x6d\x74\x43\x32\x6d\x4a\x4b\x32\x6d\x65\x31\x30\x72\x30\x54\x30\x72\x61','\x6e\x77\x54\x73\x72\x66\x66\x32\x73\x61','\x7a\x32\x76\x30\x71\x32\x58\x50\x7a\x77\x35\x30\x74\x47','\x6e\x4a\x65\x58\x6d\x4a\x79\x31\x6e\x4b\x54\x6c\x42\x75\x72\x76\x44\x61','\x43\x67\x66\x49\x41\x77\x58\x50\x44\x68\x4b','\x41\x32\x76\x35\x43\x57','\x43\x4d\x39\x56\x44\x68\x6d','\x74\x32\x54\x70\x43\x4d\x75','\x77\x4b\x50\x53\x7a\x78\x61','\x79\x32\x66\x57\x79\x77\x6a\x50\x42\x67\x4c\x30\x41\x71','\x43\x4e\x6e\x50\x42\x32\x34','\x69\x65\x4c\x55\x43\x32\x4c\x4b\x7a\x78\x6a\x5a','\x43\x33\x76\x57\x43\x67\x39\x59\x44\x68\x6e\x64\x79\x71','\x6d\x75\x6e\x4e\x44\x4b\x58\x69\x73\x61'];a0_0x3921=function(){return _0x473fe2;};return a0_0x3921();}import a0_0x5799a5 from'\x73\x65\x6d\x76\x65\x72';import a0_0x2fdee6 from'\x2e\x2f\x63\x6f\x6e\x66\x69\x67\x2e\x6a\x73';class Client{[a0_0x445f18(0x11e)];['\x63\x61\x70\x61\x62\x69\x6c\x69\x74\x69'+'\x65\x73'];[a0_0x445f18(0x130)+a0_0x445f18(0x13d)];[a0_0x445f18(0x139)]={};constructor(){const _0x20075c=a0_0x3c62;this['\x63\x6c\x69\x65\x6e\x74\x49\x6e\x66\x6f']={'\x6e\x61\x6d\x65':_0x20075c(0x11d)};this[_0x20075c(0x13c)+'\x65\x73']={};this[_0x20075c(0x130)+_0x20075c(0x13d)]='';}[a0_0x445f18(0x144)](_0x42f737={}){const _0x53b73b=a0_0x3c62;this[_0x53b73b(0x11e)]=_0x42f737?.['\x63\x6c\x69\x65\x6e\x74\x49\x6e\x66\x6f']||{'\x6e\x61\x6d\x65':'\x75\x6e\x6b\x6e\x6f\x77\x6e'};this[_0x53b73b(0x13c)+'\x65\x73']=_0x42f737?.[_0x53b73b(0x13c)+'\x65\x73']||{};this[_0x53b73b(0x130)+_0x53b73b(0x13d)]=_0x42f737?.[_0x53b73b(0x130)+'\x72\x73\x69\x6f\x6e']||'';}[a0_0x445f18(0x135)+a0_0x445f18(0x119)](){const _0x5cceea=a0_0x3c62;const _0x5ba67b={'\x5a\x55\x46\x70\x55':_0x5cceea(0x126)+_0x5cceea(0x115),'\x4f\x6b\x4f\x72\x65':_0x5cceea(0x145)};const _0x37ef18=this[_0x5cceea(0x11e)]?.[_0x5cceea(0x12e)]||_0x5cceea(0x11d);const _0x47a335={'\x63\x75\x72\x73\x6f\x72\x2d\x76\x73\x63\x6f\x64\x65':_0x5cceea(0x12a),'\x56\x69\x73\x75\x61\x6c\x20\x53\x74\x75\x64\x69\x6f\x20\x43\x6f\x64\x65':_0x5ba67b[_0x5cceea(0x11f)],'\x56\x69\x73\x75\x61\x6c\x20\x53\x74\x75\x64\x69\x6f\x20\x43\x6f\x64\x65\x20\x2d\x20\x49\x6e\x73\x69\x64\x65\x72\x73':_0x5cceea(0x126)+'\x64\x69\x6f\x20\x43\x6f\x64\x65\x20\x2d'+_0x5cceea(0x13e),'\x6d\x69\x63\x72\x6f\x73\x63\x6f\x70\x65':_0x5ba67b[_0x5cceea(0x13a)]};return _0x47a335[_0x37ef18]||_0x37ef18;}[a0_0x445f18(0x143)+a0_0x445f18(0x132)](){const _0x202f87=a0_0x3c62;return this[_0x202f87(0x11e)]?.[_0x202f87(0x12f)];}['\x69\x73'](_0x1d023c){const _0x96b693=a0_0x3c62;if(!Array[_0x96b693(0x121)](_0x1d023c)){_0x1d023c=[_0x1d023c];}const _0x367267=this[_0x96b693(0x135)+_0x96b693(0x119)]()[_0x96b693(0x12b)+'\x65']();return _0x1d023c[_0x96b693(0x141)](_0x41f590=>_0x367267[_0x96b693(0x146)](_0x41f590[_0x96b693(0x12b)+'\x65']()));}[a0_0x445f18(0x13f)+a0_0x445f18(0x137)](_0x521edb){const _0x51e595=a0_0x3c62;const _0x2cfb86={'\x49\x61\x49\x6f\x71':function(_0x59b390,_0x325293){return _0x59b390(_0x325293);},'\x5a\x4a\x6c\x65\x70':'\x56\x69\x73\x75\x61\x6c\x20\x53\x74\x75'+_0x51e595(0x115),'\x64\x41\x56\x6e\x4d':function(_0x25737b,_0x3dcc4a){return _0x25737b(_0x3dcc4a);},'\x62\x6f\x50\x4d\x4e':_0x51e595(0x122)+'\x73\x6f\x75\x72\x63\x65\x73','\x75\x4f\x69\x4b\x44':_0x51e595(0x126)+'\x64\x69\x6f\x20\x43\x6f\x64\x65\x20\x2d'+'\x20\x49\x6e\x73\x69\x64\x65\x72\x73','\x6c\x6e\x5a\x73\x79':_0x51e595(0x116)};switch(_0x521edb){case _0x51e595(0x131):return _0x2cfb86['\x49\x61\x49\x6f\x71'](Boolean,this[_0x51e595(0x13c)+'\x65\x73']?.[_0x51e595(0x131)])||this['\x69\x73']([_0x2cfb86[_0x51e595(0x13b)],'\x56\x69\x73\x75\x61\x6c\x20\x53\x74\x75'+_0x51e595(0x11c)+_0x51e595(0x13e)]);case'\x72\x65\x73\x6f\x75\x72\x63\x65\x73':return _0x2cfb86['\x64\x41\x56\x6e\x4d'](Boolean,this[_0x51e595(0x13c)+'\x65\x73']?.[_0x521edb])||this['\x69\x73']([_0x51e595(0x126)+'\x64\x69\x6f\x20\x43\x6f\x64\x65',_0x51e595(0x126)+'\x64\x69\x6f\x20\x43\x6f\x64\x65\x20\x2d'+'\x20\x49\x6e\x73\x69\x64\x65\x72\x73',_0x51e595(0x12a)]);case _0x2cfb86['\x62\x6f\x50\x4d\x4e']:return this['\x69\x73']([_0x51e595(0x126)+_0x51e595(0x115),_0x2cfb86[_0x51e595(0x114)],_0x51e595(0x12a)]);case _0x51e595(0x12d)+'\x69\x6e\x6b\x73':return this['\x69\x73']([_0x2cfb86[_0x51e595(0x13b)],_0x2cfb86[_0x51e595(0x114)]])&&a0_0x5799a5[_0x51e595(0x128)](this[_0x51e595(0x11e)][_0x51e595(0x12f)],'\x31\x2e\x31\x30\x33\x2e\x30');case'\x65\x6c\x69\x63\x69\x74\x61\x74\x69\x6f'+'\x6e':{if(a0_0x2fdee6[_0x51e595(0x125)+'\x63\x69\x74\x61\x74\x69\x6f\x6e']){if(_0x2cfb86[_0x51e595(0x129)]===_0x2cfb86[_0x51e595(0x129)]){return![];}else{return this[_0x51e595(0x11e)]?.[_0x51e595(0x12f)];}}const _0x267648=this[_0x51e595(0x13c)+'\x65\x73']?.[_0x521edb];if(!_0x267648){return![];}if(typeof _0x267648===_0x51e595(0x124)){return Object[_0x51e595(0x138)](_0x267648)[_0x51e595(0x117)]===0x0||Boolean(_0x267648[_0x51e595(0x118)]);}return Boolean(_0x267648);}default:return Boolean(this['\x63\x61\x70\x61\x62\x69\x6c\x69\x74\x69'+'\x65\x73']?.[_0x521edb]);}}}function a0_0x3c62(_0x171b1d,_0x1d16c6){_0x171b1d=_0x171b1d-0x114;const _0x39216c=a0_0x3921();let _0x3c62e3=_0x39216c[_0x171b1d];if(a0_0x3c62['\x70\x41\x42\x6a\x66\x46']===undefined){var _0x55d0a3=function(_0x31402b){const _0x582f07='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0x332c0c='';let _0x347dcc='';for(let _0x5d09df=0x0,_0x39fb2a,_0x336fcb,_0x2b43ab=0x0;_0x336fcb=_0x31402b['\x63\x68\x61\x72\x41\x74'](_0x2b43ab++);~_0x336fcb&&(_0x39fb2a=_0x5d09df%0x4?_0x39fb2a*0x40+_0x336fcb:_0x336fcb,_0x5d09df++%0x4)?_0x332c0c+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xff&_0x39fb2a>>(-0x2*_0x5d09df&0x6)):0x0){_0x336fcb=_0x582f07['\x69\x6e\x64\x65\x78\x4f\x66'](_0x336fcb);}for(let _0x23dc02=0x0,_0x5cce38=_0x332c0c['\x6c\x65\x6e\x67\x74\x68'];_0x23dc02<_0x5cce38;_0x23dc02++){_0x347dcc+='\x25'+('\x30\x30'+_0x332c0c['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x23dc02)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x10))['\x73\x6c\x69\x63\x65'](-0x2);}return decodeURIComponent(_0x347dcc);};a0_0x3c62['\x73\x47\x61\x47\x48\x46']=_0x55d0a3;a0_0x3c62['\x78\x42\x76\x75\x6a\x62']={};a0_0x3c62['\x70\x41\x42\x6a\x66\x46']=!![];}const _0x34b3de=_0x39216c[0x0];const _0x516c3d=_0x171b1d+_0x34b3de;const _0x56c3ec=a0_0x3c62['\x78\x42\x76\x75\x6a\x62'][_0x516c3d];if(!_0x56c3ec){_0x3c62e3=a0_0x3c62['\x73\x47\x61\x47\x48\x46'](_0x3c62e3);a0_0x3c62['\x78\x42\x76\x75\x6a\x62'][_0x516c3d]=_0x3c62e3;}else{_0x3c62e3=_0x56c3ec;}return _0x3c62e3;}const client=new Client();export default client;
|
|
1
|
+
const a0_0x41eb4b=a0_0x583a;(function(_0xf1e05b,_0xc87898){const _0x443910=a0_0x583a;const _0x216271=_0xf1e05b();while(!![]){try{const _0x29d610=-parseInt(_0x443910(0x8b))/0x1*(parseInt(_0x443910(0x8e))/0x2)+-parseInt(_0x443910(0x7f))/0x3*(-parseInt(_0x443910(0x95))/0x4)+parseInt(_0x443910(0x9b))/0x5*(parseInt(_0x443910(0x86))/0x6)+-parseInt(_0x443910(0x74))/0x7*(parseInt(_0x443910(0xa7))/0x8)+-parseInt(_0x443910(0x98))/0x9*(-parseInt(_0x443910(0x71))/0xa)+-parseInt(_0x443910(0x97))/0xb+parseInt(_0x443910(0x79))/0xc;if(_0x29d610===_0xc87898){break;}else{_0x216271['push'](_0x216271['shift']());}}catch(_0x3acc55){_0x216271['push'](_0x216271['shift']());}}}(a0_0x4c1b,0xb2cc9));import a0_0x397f61 from'\x73\x65\x6d\x76\x65\x72';function a0_0x4c1b(){const _0x301b8f=['\x71\x33\x76\x59\x43\x32\x39\x59','\x7a\x67\x4c\x56\x69\x65\x6e\x56\x7a\x67\x75\x47\x6c\x71','\x6d\x31\x6a\x79\x75\x30\x31\x34\x43\x47','\x72\x4b\x66\x32\x72\x4d\x6d','\x74\x66\x48\x67\x42\x4d\x57','\x7a\x67\x4c\x56\x69\x65\x6e\x56\x7a\x67\x75','\x43\x32\x39\x54\x7a\x71','\x7a\x4d\x76\x78\x75\x77\x79','\x43\x68\x6a\x56\x44\x67\x39\x4a\x42\x32\x58\x77\x7a\x71','\x6e\x4e\x6a\x52\x75\x77\x6e\x4b\x7a\x71','\x41\x33\x6e\x33\x79\x4e\x75','\x43\x4c\x66\x6e\x44\x78\x75','\x41\x31\x72\x68\x74\x33\x43','\x44\x77\x35\x52\x42\x4d\x39\x33\x42\x47','\x6d\x4b\x6a\x74\x76\x77\x35\x6c\x73\x47','\x73\x65\x44\x48\x74\x4d\x47','\x44\x67\x39\x6d\x42\x33\x44\x4c\x43\x4b\x6e\x48\x43\x57','\x6e\x64\x43\x35\x6f\x64\x75\x59\x79\x30\x4c\x69\x76\x75\x35\x41','\x42\x67\x39\x4e\x7a\x32\x4c\x55\x7a\x57','\x79\x77\x31\x4c','\x41\x78\x6e\x62\x43\x4e\x6a\x48\x45\x71','\x44\x4b\x39\x6c\x79\x30\x57','\x7a\x33\x72\x4c','\x41\x77\x35\x52\x43\x57','\x6d\x74\x47\x30\x6e\x64\x79\x34\x6e\x66\x4c\x66\x45\x65\x44\x53\x76\x47','\x43\x33\x76\x57\x43\x67\x39\x59\x44\x68\x6e\x64\x79\x71','\x6d\x74\x47\x57\x6d\x64\x4b\x57\x6f\x77\x72\x35\x76\x75\x39\x56\x76\x57','\x6f\x64\x6d\x31\x6e\x64\x79\x34\x6d\x4d\x58\x50\x44\x4e\x7a\x74\x75\x61','\x76\x4d\x4c\x5a\x44\x77\x66\x53\x69\x66\x6e\x30\x44\x71','\x74\x67\x44\x36\x79\x4e\x61','\x6e\x74\x65\x30\x6f\x64\x6d\x33\x6e\x76\x7a\x4b\x75\x75\x31\x77\x79\x57','\x44\x4d\x76\x59\x43\x32\x4c\x56\x42\x47','\x43\x4e\x6e\x50\x42\x32\x34','\x43\x4d\x39\x56\x44\x68\x6d','\x43\x4d\x76\x5a\x42\x33\x76\x59\x79\x32\x76\x5a','\x6d\x73\x34\x58\x6d\x64\x6d\x55\x6d\x61','\x42\x67\x76\x55\x7a\x33\x72\x4f','\x42\x4d\x35\x70\x74\x76\x79','\x43\x4d\x76\x5a\x42\x33\x76\x59\x79\x32\x76\x46\x42\x61','\x69\x65\x4c\x55\x43\x32\x4c\x4b\x7a\x78\x6a\x5a','\x43\x32\x39\x31\x43\x4d\x6e\x4c\x43\x57','\x7a\x78\x6a\x5a\x41\x77\x39\x55','\x6d\x4a\x71\x33\x6d\x4a\x65\x57\x6e\x67\x4c\x31\x71\x31\x7a\x76\x42\x61','\x79\x32\x58\x50\x7a\x77\x35\x30\x73\x77\x35\x4d\x42\x57','\x74\x77\x4c\x64\x43\x4d\x39\x5a\x79\x32\x39\x71\x7a\x71','\x44\x67\x72\x66\x74\x75\x69','\x44\x68\x62\x74\x41\x68\x4b','\x79\x32\x66\x57\x79\x77\x6a\x50\x42\x67\x4c\x30\x41\x71','\x41\x32\x76\x35\x43\x57','\x6d\x74\x62\x55\x43\x77\x44\x6d\x73\x4d\x38','\x42\x68\x72\x51\x79\x4e\x4f','\x73\x33\x44\x70\x7a\x4c\x79','\x6d\x4a\x48\x52\x44\x76\x50\x6e\x41\x32\x4b','\x41\x77\x35\x50\x44\x67\x4c\x48\x42\x67\x4c\x36\x7a\x71','\x7a\x32\x76\x30\x71\x32\x58\x50\x7a\x77\x35\x30\x74\x47','\x76\x75\x31\x74\x71\x77\x65','\x76\x4e\x76\x70\x43\x31\x79','\x6d\x4a\x6d\x58\x6e\x64\x61\x34\x6d\x67\x76\x64\x74\x32\x4c\x55\x42\x61','\x7a\x77\x31\x49\x7a\x77\x72\x4b\x7a\x77\x72\x73\x7a\x71','\x42\x4d\x66\x54\x7a\x71','\x43\x67\x66\x49\x41\x77\x58\x50\x44\x68\x4b'];a0_0x4c1b=function(){return _0x301b8f;};return a0_0x4c1b();}import a0_0x468390 from'\x2e\x2f\x63\x6f\x6e\x66\x69\x67\x2e\x6a\x73';class Client{[a0_0x41eb4b(0xa8)];[a0_0x41eb4b(0x6f)+'\x65\x73'];[a0_0x41eb4b(0x85)+a0_0x41eb4b(0x9d)];[a0_0x41eb4b(0x9e)]={};constructor(){const _0x186e10=a0_0x583a;this[_0x186e10(0xa8)]={'\x6e\x61\x6d\x65':_0x186e10(0x8a)};this[_0x186e10(0x6f)+'\x65\x73']={};this[_0x186e10(0x85)+_0x186e10(0x9d)]='';}[a0_0x41eb4b(0x75)](_0x3dd5d4={}){const _0x42e2c5=a0_0x583a;const _0x16f0dc={'\x76\x4f\x4b\x63\x4c':_0x42e2c5(0x8a)};this['\x63\x6c\x69\x65\x6e\x74\x49\x6e\x66\x6f']=_0x3dd5d4?.[_0x42e2c5(0xa8)]||{'\x6e\x61\x6d\x65':_0x16f0dc[_0x42e2c5(0x92)]};this['\x63\x61\x70\x61\x62\x69\x6c\x69\x74\x69'+'\x65\x73']=_0x3dd5d4?.[_0x42e2c5(0x6f)+'\x65\x73']||{};this[_0x42e2c5(0x85)+_0x42e2c5(0x9d)]=_0x3dd5d4?.[_0x42e2c5(0x85)+_0x42e2c5(0x9d)]||'';}[a0_0x41eb4b(0x76)+'\x61\x6d\x65'](){const _0xf36235=a0_0x583a;const _0x2f8060={'\x46\x41\x76\x46\x63':'\x43\x75\x72\x73\x6f\x72','\x62\x43\x42\x5a\x77':_0xf36235(0x99)+_0xf36235(0x82),'\x66\x65\x57\x51\x66':_0xf36235(0x6c)};const _0x14664f=this[_0xf36235(0xa8)]?.[_0xf36235(0x7b)]||_0xf36235(0x8a);const _0x46e695={'\x63\x75\x72\x73\x6f\x72\x2d\x76\x73\x63\x6f\x64\x65':_0x2f8060[_0xf36235(0x80)],'\x56\x69\x73\x75\x61\x6c\x20\x53\x74\x75\x64\x69\x6f\x20\x43\x6f\x64\x65':_0x2f8060['\x62\x43\x42\x5a\x77'],'\x56\x69\x73\x75\x61\x6c\x20\x53\x74\x75\x64\x69\x6f\x20\x43\x6f\x64\x65\x20\x2d\x20\x49\x6e\x73\x69\x64\x65\x72\x73':_0xf36235(0x99)+'\x64\x69\x6f\x20\x43\x6f\x64\x65\x20\x2d'+'\x20\x49\x6e\x73\x69\x64\x65\x72\x73','\x6d\x69\x63\x72\x6f\x73\x63\x6f\x70\x65':_0x2f8060[_0xf36235(0x84)]};return _0x46e695[_0x14664f]||_0x14664f;}['\x67\x65\x74\x43\x6c\x69\x65\x6e\x74\x56'+a0_0x41eb4b(0xa6)](){const _0x2c6c98=a0_0x583a;return this[_0x2c6c98(0xa8)]?.[_0x2c6c98(0x9c)];}['\x69\x73'](_0x5d93c7){const _0x5d66f4=a0_0x583a;const _0x1a5fb8={'\x4c\x67\x7a\x62\x70':_0x5d66f4(0x73)};if(!Array[_0x5d66f4(0x91)](_0x5d93c7)){if(_0x1a5fb8[_0x5d66f4(0x9a)]==='\x4b\x77\x4f\x66\x56'){_0x5d93c7=[_0x5d93c7];}else{return this[_0x5d66f4(0xa8)]?.[_0x5d66f4(0x9c)];}}const _0x328cc2=this['\x67\x65\x74\x43\x6c\x69\x65\x6e\x74\x4e'+_0x5d66f4(0x90)]()[_0x5d66f4(0x8d)+'\x65']();return _0x5d93c7[_0x5d66f4(0x83)](_0x515304=>_0x328cc2['\x69\x6e\x63\x6c\x75\x64\x65\x73'](_0x515304['\x74\x6f\x4c\x6f\x77\x65\x72\x43\x61\x73'+'\x65']()));}[a0_0x41eb4b(0x96)+a0_0x41eb4b(0x7c)](_0x44b5dd){const _0x13fe90=a0_0x583a;const _0x3be333={'\x4c\x58\x46\x6e\x6c':'\x75\x6e\x6b\x6e\x6f\x77\x6e','\x6b\x54\x47\x4f\x77':function(_0x10445a,_0x11280d){return _0x10445a(_0x11280d);},'\x74\x64\x45\x4d\x42':_0x13fe90(0x9f),'\x6c\x74\x6a\x62\x7a':_0x13fe90(0x99)+_0x13fe90(0x7e)+_0x13fe90(0xa4),'\x72\x51\x4d\x75\x75':_0x13fe90(0x7d),'\x6e\x6e\x4f\x4d\x56':_0x13fe90(0xa3)+_0x13fe90(0x94),'\x48\x47\x61\x4e\x68':_0x13fe90(0x99)+'\x64\x69\x6f\x20\x43\x6f\x64\x65','\x6b\x73\x77\x62\x75':_0x13fe90(0x78),'\x74\x70\x53\x68\x79':function(_0x2b5c5c,_0x37f4c9){return _0x2b5c5c(_0x37f4c9);},'\x55\x4d\x53\x41\x61':function(_0x5dc7d4,_0x407089){return _0x5dc7d4(_0x407089);}};switch(_0x44b5dd){case _0x13fe90(0x8f):return _0x3be333[_0x13fe90(0x89)](Boolean,this['\x63\x61\x70\x61\x62\x69\x6c\x69\x74\x69'+'\x65\x73']?.['\x6c\x6f\x67\x67\x69\x6e\x67'])||this['\x69\x73'](['\x56\x69\x73\x75\x61\x6c\x20\x53\x74\x75'+_0x13fe90(0x82),'\x56\x69\x73\x75\x61\x6c\x20\x53\x74\x75'+_0x13fe90(0x7e)+'\x20\x49\x6e\x73\x69\x64\x65\x72\x73']);case _0x3be333[_0x13fe90(0x6d)]:return Boolean(this[_0x13fe90(0x6f)+'\x65\x73']?.[_0x44b5dd])||this['\x69\x73']([_0x13fe90(0x99)+_0x13fe90(0x82),_0x3be333[_0x13fe90(0x72)],_0x3be333[_0x13fe90(0x88)]]);case _0x13fe90(0x7a)+_0x13fe90(0xa5):return this['\x69\x73'](['\x56\x69\x73\x75\x61\x6c\x20\x53\x74\x75'+_0x13fe90(0x82),_0x13fe90(0x99)+_0x13fe90(0x7e)+'\x20\x49\x6e\x73\x69\x64\x65\x72\x73','\x43\x75\x72\x73\x6f\x72']);case _0x3be333[_0x13fe90(0xa2)]:return this['\x69\x73']([_0x3be333[_0x13fe90(0x8c)],_0x13fe90(0x99)+_0x13fe90(0x7e)+_0x13fe90(0xa4)])&&a0_0x397f61[_0x13fe90(0x93)](this[_0x13fe90(0xa8)]['\x76\x65\x72\x73\x69\x6f\x6e'],_0x13fe90(0xa0));case'\x65\x6c\x69\x63\x69\x74\x61\x74\x69\x6f'+'\x6e':{if(a0_0x468390['\x64\x69\x73\x61\x62\x6c\x65\x45\x6c\x69'+'\x63\x69\x74\x61\x74\x69\x6f\x6e']){return![];}const _0xe8f88d=this[_0x13fe90(0x6f)+'\x65\x73']?.[_0x44b5dd];if(!_0xe8f88d){if(_0x3be333[_0x13fe90(0x87)]!=='\x54\x62\x68\x72\x67'){return![];}else{this[_0x13fe90(0xa8)]={'\x6e\x61\x6d\x65':kfVyrG[_0x13fe90(0x81)]};this[_0x13fe90(0x6f)+'\x65\x73']={};this[_0x13fe90(0x85)+_0x13fe90(0x9d)]='';}}if(typeof _0xe8f88d==='\x6f\x62\x6a\x65\x63\x74'){return Object[_0x13fe90(0x70)](_0xe8f88d)[_0x13fe90(0xa1)]===0x0||_0x3be333[_0x13fe90(0x6e)](Boolean,_0xe8f88d['\x66\x6f\x72\x6d']);}return Boolean(_0xe8f88d);}default:return _0x3be333[_0x13fe90(0x77)](Boolean,this[_0x13fe90(0x6f)+'\x65\x73']?.[_0x44b5dd]);}}}const client=new Client();function a0_0x583a(_0x287b5e,_0x2b9c73){_0x287b5e=_0x287b5e-0x6c;const _0x4c1bff=a0_0x4c1b();let _0x583ad4=_0x4c1bff[_0x287b5e];if(a0_0x583a['\x49\x4d\x75\x6e\x59\x73']===undefined){var _0x2f130a=function(_0xd1df46){const _0x1456f8='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0x3bc248='';let _0x52f2c3='';for(let _0x2b03a7=0x0,_0x1ebdcd,_0x4d68f0,_0x384740=0x0;_0x4d68f0=_0xd1df46['\x63\x68\x61\x72\x41\x74'](_0x384740++);~_0x4d68f0&&(_0x1ebdcd=_0x2b03a7%0x4?_0x1ebdcd*0x40+_0x4d68f0:_0x4d68f0,_0x2b03a7++%0x4)?_0x3bc248+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xff&_0x1ebdcd>>(-0x2*_0x2b03a7&0x6)):0x0){_0x4d68f0=_0x1456f8['\x69\x6e\x64\x65\x78\x4f\x66'](_0x4d68f0);}for(let _0x51fadd=0x0,_0x45c998=_0x3bc248['\x6c\x65\x6e\x67\x74\x68'];_0x51fadd<_0x45c998;_0x51fadd++){_0x52f2c3+='\x25'+('\x30\x30'+_0x3bc248['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x51fadd)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x10))['\x73\x6c\x69\x63\x65'](-0x2);}return decodeURIComponent(_0x52f2c3);};a0_0x583a['\x70\x68\x6c\x4c\x44\x6f']=_0x2f130a;a0_0x583a['\x71\x58\x6b\x58\x49\x56']={};a0_0x583a['\x49\x4d\x75\x6e\x59\x73']=!![];}const _0x77b9f2=_0x4c1bff[0x0];const _0x28f469=_0x287b5e+_0x77b9f2;const _0x490150=a0_0x583a['\x71\x58\x6b\x58\x49\x56'][_0x28f469];if(!_0x490150){_0x583ad4=a0_0x583a['\x70\x68\x6c\x4c\x44\x6f'](_0x583ad4);a0_0x583a['\x71\x58\x6b\x58\x49\x56'][_0x28f469]=_0x583ad4;}else{_0x583ad4=_0x490150;}return _0x583ad4;}export default client;
|
package/src/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x1ef78b=a0_0x3e5e;function a0_0x3e5e(_0x456d06,_0x4ef0d0){_0x456d06=_0x456d06-0x6d;const _0xb4402f=a0_0xb440();let _0x3e5e82=_0xb4402f[_0x456d06];if(a0_0x3e5e['\x5a\x53\x4a\x67\x44\x45']===undefined){var _0x5d668b=function(_0x39ca1d){const _0x37251c='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0x56be81='';let _0x1dda06='';for(let _0x5f07e9=0x0,_0x3aa7b1,_0x2274b3,_0x4e0195=0x0;_0x2274b3=_0x39ca1d['\x63\x68\x61\x72\x41\x74'](_0x4e0195++);~_0x2274b3&&(_0x3aa7b1=_0x5f07e9%0x4?_0x3aa7b1*0x40+_0x2274b3:_0x2274b3,_0x5f07e9++%0x4)?_0x56be81+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xff&_0x3aa7b1>>(-0x2*_0x5f07e9&0x6)):0x0){_0x2274b3=_0x37251c['\x69\x6e\x64\x65\x78\x4f\x66'](_0x2274b3);}for(let _0x1e1a8d=0x0,_0x170274=_0x56be81['\x6c\x65\x6e\x67\x74\x68'];_0x1e1a8d<_0x170274;_0x1e1a8d++){_0x1dda06+='\x25'+('\x30\x30'+_0x56be81['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x1e1a8d)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x10))['\x73\x6c\x69\x63\x65'](-0x2);}return decodeURIComponent(_0x1dda06);};a0_0x3e5e['\x46\x74\x65\x4f\x77\x46']=_0x5d668b;a0_0x3e5e['\x74\x48\x72\x77\x6e\x65']={};a0_0x3e5e['\x5a\x53\x4a\x67\x44\x45']=!![];}const _0x28c7f3=_0xb4402f[0x0];const _0x36aa6c=_0x456d06+_0x28c7f3;const _0x598bdd=a0_0x3e5e['\x74\x48\x72\x77\x6e\x65'][_0x36aa6c];if(!_0x598bdd){_0x3e5e82=a0_0x3e5e['\x46\x74\x65\x4f\x77\x46'](_0x3e5e82);a0_0x3e5e['\x74\x48\x72\x77\x6e\x65'][_0x36aa6c]=_0x3e5e82;}else{_0x3e5e82=_0x598bdd;}return _0x3e5e82;}(function(_0x42a759,_0xd197e3){const _0x1fc5dc=a0_0x3e5e;const _0x1f79be=_0x42a759();while(!![]){try{const _0x398428=-parseInt(_0x1fc5dc(0x75))/0x1+-parseInt(_0x1fc5dc(0x7a))/0x2*(-parseInt(_0x1fc5dc(0x93))/0x3)+parseInt(_0x1fc5dc(0x71))/0x4*(parseInt(_0x1fc5dc(0x8a))/0x5)+parseInt(_0x1fc5dc(0x9b))/0x6*(-parseInt(_0x1fc5dc(0x92))/0x7)+-parseInt(_0x1fc5dc(0x8d))/0x8*(-parseInt(_0x1fc5dc(0x88))/0x9)+-parseInt(_0x1fc5dc(0x85))/0xa*(parseInt(_0x1fc5dc(0x6d))/0xb)+parseInt(_0x1fc5dc(0x8c))/0xc*(-parseInt(_0x1fc5dc(0x99))/0xd);if(_0x398428===_0xd197e3){break;}else{_0x1f79be['push'](_0x1f79be['shift']());}}catch(_0x596f9d){_0x1f79be['push'](_0x1f79be['shift']());}}}(a0_0xb440,0xe0455));import{createRequire}from'\x6e\x6f\x64\x65\x3a\x6d\x6f\x64\x75\x6c\x65';function a0_0xb440(){const _0x5d4d78=['\x6d\x74\x6d\x57\x6d\x64\x69\x30\x73\x77\x4c\x31\x75\x75\x54\x31','\x45\x68\x71\x47\x74\x75\x6e\x71\x69\x66\x6e\x4c\x43\x47','\x69\x67\x4c\x55\x7a\x4d\x38\x53\x69\x68\x6a\x4c\x79\x57','\x69\x68\x6e\x4a\x43\x4d\x4c\x57\x44\x68\x6d\x47\x79\x71','\x6e\x4a\x47\x33\x6d\x5a\x65\x58\x72\x76\x44\x41\x44\x68\x50\x78','\x73\x75\x6a\x6e\x69\x66\x6e\x48\x42\x67\x76\x5a\x7a\x47','\x43\x68\x61\x56\x6c\x4d\x35\x4c\x44\x67\x58\x50\x7a\x47','\x41\x77\x35\x4d\x42\x33\x6a\x54\x79\x78\x72\x50\x42\x57','\x69\x67\x66\x55\x7a\x63\x62\x56\x44\x67\x48\x4c\x43\x47','\x6d\x5a\x79\x30\x6f\x64\x75\x58\x6f\x67\x7a\x54\x74\x4d\x54\x6e\x73\x61','\x6c\x4d\x39\x55\x43\x4d\x76\x55\x7a\x67\x76\x59\x6c\x47','\x43\x59\x39\x4f\x79\x77\x35\x4b\x43\x32\x48\x48\x41\x57','\x6c\x4d\x35\x4c\x44\x67\x58\x50\x7a\x4e\x4b\x55\x79\x71','\x7a\x77\x35\x30\x69\x67\x6e\x56\x7a\x67\x76\x49\x79\x71','\x79\x33\x76\x30\x7a\x73\x62\x65\x74\x75\x57\x53\x69\x61','\x38\x6a\x2b\x72\x47\x46\x63\x46\x4b\x6a\x33\x49\x4b\x34\x6c\x56\x55\x69\x38','\x42\x33\x6a\x4e\x69\x68\x72\x56\x69\x68\x6a\x4c\x44\x61','\x69\x68\x72\x48\x43\x32\x54\x5a\x6c\x47','\x44\x68\x6a\x35','\x7a\x4d\x66\x53\x43\x32\x75','\x6e\x64\x43\x57\x76\x4e\x48\x5a\x71\x78\x66\x41','\x7a\x67\x76\x49\x44\x77\x43','\x6c\x63\x62\x4b\x7a\x77\x6a\x31\x7a\x59\x62\x53\x42\x57','\x6d\x74\x61\x31\x6d\x74\x71\x58\x6e\x4a\x4c\x62\x73\x67\x6e\x58\x72\x67\x69','\x69\x68\x4c\x56\x44\x73\x62\x30\x42\x59\x62\x50\x42\x47','\x6e\x4a\x76\x73\x71\x30\x76\x50\x76\x30\x57','\x6c\x78\x72\x4c\x42\x67\x76\x54\x7a\x78\x72\x59\x45\x71','\x6d\x4a\x72\x78\x75\x68\x48\x78\x75\x4c\x43','\x6f\x65\x6a\x6a\x75\x75\x35\x6c\x43\x61','\x44\x68\x6a\x31\x7a\x71','\x43\x33\x76\x53\x44\x68\x6d\x53\x69\x67\x39\x49\x41\x47','\x79\x32\x75\x54\x79\x32\x39\x55\x44\x67\x76\x34\x44\x61','\x41\x77\x6a\x54\x6c\x78\x6e\x4d\x6c\x77\x6e\x56\x42\x47','\x6f\x74\x79\x30\x6e\x4a\x44\x36\x41\x65\x72\x78\x75\x68\x75','\x6d\x33\x4c\x6e\x44\x65\x48\x34\x44\x71','\x43\x33\x6e\x31\x7a\x71','\x41\x68\x72\x30\x43\x68\x6d\x36\x6c\x59\x39\x50\x79\x47','\x42\x73\x31\x5a\x79\x77\x58\x4c\x43\x32\x7a\x56\x43\x47','\x6d\x4a\x61\x59\x6e\x73\x30\x58\x6d\x73\x30\x59\x6e\x71','\x6c\x63\x62\x4b\x7a\x78\x62\x53\x42\x33\x4c\x50\x42\x47','\x6e\x64\x61\x30\x6d\x64\x43\x33\x6e\x32\x44\x78\x41\x67\x4c\x49\x72\x71','\x44\x67\x76\x34\x44\x61','\x6d\x4a\x69\x59\x73\x32\x72\x6c\x71\x4d\x44\x5a','\x6d\x74\x75\x34\x6e\x74\x47\x33\x77\x4c\x50\x58\x77\x4c\x7a\x56','\x43\x67\x66\x59\x43\x32\x76\x6a\x42\x4e\x71','\x42\x49\x57\x47\x75\x30\x39\x72\x74\x63\x62\x59\x7a\x71','\x44\x4d\x76\x59\x43\x32\x4c\x56\x42\x47'];a0_0xb440=function(){return _0x5d4d78;};return a0_0xb440();}const require=createRequire(import.meta.url);const pkg=require('\x2e\x2e\x2f\x70\x61\x63\x6b\x61\x67\x65'+'\x2e\x6a\x73\x6f\x6e');export default{'\x6c\x6f\x67\x50\x72\x65\x66\x69\x78':a0_0x1ef78b(0x80),'\x64\x65\x66\x61\x75\x6c\x74\x4c\x6f\x67\x4c\x65\x76\x65\x6c':a0_0x1ef78b(0x86),'\x62\x79\x70\x61\x73\x73\x48\x61\x6e\x64\x73\x68\x61\x6b\x65\x56\x61\x6c\x69\x64\x61\x74\x69\x6f\x6e':!![],'\x62\x79\x70\x61\x73\x73\x55\x73\x65\x72\x50\x65\x72\x6d\x69\x73\x73\x69\x6f\x6e\x73\x56\x61\x6c\x69\x64\x61\x74\x69\x6f\x6e':!![],'\x64\x69\x73\x61\x62\x6c\x65\x45\x6c\x69\x63\x69\x74\x61\x74\x69\x6f\x6e':process.env.DISABLE_ELICITATION===a0_0x1ef78b(0x8e),'\x6d\x63\x70\x41\x70\x70\x73\x45\x6e\x61\x62\x6c\x65\x64':process.env.MCP_APPS_ENABLED!==a0_0x1ef78b(0x84),'\x6d\x63\x70\x41\x70\x70\x73\x54\x6f\x6f\x6c\x45\x6e\x61\x62\x6c\x65\x64':{'\x67\x65\x74\x5f\x72\x65\x63\x6f\x72\x64':![]},'\x74\x65\x6d\x70\x44\x69\x72':{'\x62\x61\x73\x65\x53\x75\x62\x64\x69\x72':'\x74\x6d\x70','\x72\x65\x74\x65\x6e\x74\x69\x6f\x6e\x44\x61\x79\x73':0x7},'\x61\x70\x69\x43\x61\x63\x68\x65':{'\x65\x6e\x61\x62\x6c\x65\x64':!![],'\x63\x61\x63\x68\x65\x47\x65\x74':!![],'\x64\x65\x66\x61\x75\x6c\x74\x54\x74\x6c\x4d\x73':0x2710,'\x6d\x61\x78\x45\x6e\x74\x72\x69\x65\x73':0xc8,'\x69\x6e\x76\x61\x6c\x69\x64\x61\x74\x65\x4f\x6e\x57\x72\x69\x74\x65':!![]},'\x72\x65\x73\x6f\x75\x72\x63\x65\x73':{'\x6d\x61\x78\x52\x65\x73\x6f\x75\x72\x63\x65\x73':0x1e},'\x73\x65\x72\x76\x65\x72\x43\x6f\x6e\x73\x74\x61\x6e\x74\x73':{'\x70\x72\x6f\x74\x6f\x63\x6f\x6c\x56\x65\x72\x73\x69\x6f\x6e':a0_0x1ef78b(0x97),'\x73\x65\x72\x76\x65\x72\x49\x6e\x66\x6f':{'\x6e\x61\x6d\x65':a0_0x1ef78b(0x76)+'\x6f\x72\x63\x65\x20\x43\x6f\x6e\x74\x65'+'\x78\x74','\x61\x6c\x69\x61\x73':a0_0x1ef78b(0x91)+a0_0x1ef78b(0x9a),'\x76\x65\x72\x73\x69\x6f\x6e':pkg[a0_0x1ef78b(0x70)],'\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e':a0_0x1ef78b(0x76)+'\x6f\x72\x63\x65\x20\x43\x6f\x6e\x74\x65'+a0_0x1ef78b(0x72)+'\x76\x65\x72\x20\x61\x6c\x6c\x6f\x77\x73'+a0_0x1ef78b(0x89)+'\x74\x65\x72\x61\x63\x74\x20\x77\x69\x74'+'\x68\x20\x79\x6f\x75\x72\x20\x53\x66\x20'+a0_0x1ef78b(0x81)+'\x72\x69\x65\x76\x65\x20\x6f\x72\x67\x20'+a0_0x1ef78b(0x78)+a0_0x1ef78b(0x6f)+a0_0x1ef78b(0x8f)+'\x65\x63\x74\x20\x73\x63\x68\x65\x6d\x61'+a0_0x1ef78b(0x73)+a0_0x1ef78b(0x7e)+'\x73\x65\x20\x63\x68\x61\x6e\x67\x65\x73'+a0_0x1ef78b(0x87)+'\x67\x73\x2c\x20\x74\x6f\x20\x65\x78\x65'+a0_0x1ef78b(0x7f)+'\x6c\x6f\x63\x61\x6c\x20\x41\x70\x65\x78'+a0_0x1ef78b(0x74)+'\x6e\x64\x20\x72\x65\x6d\x6f\x74\x65\x20'+'\x41\x70\x65\x78\x20\x74\x65\x73\x74\x73'+a0_0x1ef78b(0x98)+'\x67\x20\x6d\x65\x74\x61\x64\x61\x74\x61'+a0_0x1ef78b(0x79)+a0_0x1ef78b(0x82)},'\x63\x61\x70\x61\x62\x69\x6c\x69\x74\x69\x65\x73':{'\x6c\x6f\x67\x67\x69\x6e\x67':{},'\x72\x65\x73\x6f\x75\x72\x63\x65\x73':{'\x6c\x69\x73\x74\x43\x68\x61\x6e\x67\x65\x64':!![]},'\x74\x6f\x6f\x6c\x73':{},'\x70\x72\x6f\x6d\x70\x74\x73':{},'\x63\x6f\x6d\x70\x6c\x65\x74\x69\x6f\x6e\x73':{}}},'\x6c\x6f\x67\x69\x6e\x55\x72\x6c':'\x68\x74\x74\x70\x73\x3a\x2f\x2f\x69\x62'+a0_0x1ef78b(0x96)+'\x63\x65\x2d\x63\x6f\x6e\x74\x65\x78\x74'+a0_0x1ef78b(0x7d)+'\x70\x70\x2f\x2e\x6e\x65\x74\x6c\x69\x66'+'\x79\x2f\x66\x75\x6e\x63\x74\x69\x6f\x6e'+a0_0x1ef78b(0x7c)+'\x65','\x69\x73\x73\x75\x65\x52\x65\x70\x6f\x72\x74\x69\x6e\x67':{'\x77\x65\x62\x68\x6f\x6f\x6b\x55\x72\x6c':a0_0x1ef78b(0x95)+a0_0x1ef78b(0x96)+a0_0x1ef78b(0x90)+a0_0x1ef78b(0x7d)+a0_0x1ef78b(0x77)+'\x79\x2f\x66\x75\x6e\x63\x74\x69\x6f\x6e'+'\x73\x2f\x72\x65\x70\x6f\x72\x74\x2d\x69'+a0_0x1ef78b(0x94)},'\x73\x74\x72\x69\x63\x74\x53\x73\x6c':process.env.STRICT_SSL!==a0_0x1ef78b(0x84),'\x74\x65\x6c\x65\x6d\x65\x74\x72\x79':{'\x65\x6e\x61\x62\x6c\x65\x64':process.env.TELEMETRY_ENABLED!=='\x66\x61\x6c\x73\x65','\x65\x6e\x64\x70\x6f\x69\x6e\x74':process.env.TELEMETRY_ENDPOINT||a0_0x1ef78b(0x95)+a0_0x1ef78b(0x96)+a0_0x1ef78b(0x90)+a0_0x1ef78b(0x8b)+a0_0x1ef78b(0x7b)+'\x63\x6f\x6d\x2f\x74\x65\x6c\x65\x6d\x65'+a0_0x1ef78b(0x83),'\x74\x69\x6d\x65\x6f\x75\x74':Number[a0_0x1ef78b(0x6e)](process.env.TELEMETRY_TIMEOUT,0xa)||0x7d0,'\x73\x63\x68\x65\x6d\x61\x56\x65\x72\x73\x69\x6f\x6e':process.env.TELEMETRY_SCHEMA_VERSION||'\x32','\x65\x76\x65\x6e\x74\x73':{'\x74\x6f\x6f\x6c':{'\x65\x78\x65\x63\x75\x74\x69\x6f\x6e':!![],'\x76\x61\x6c\x69\x64\x61\x74\x69\x6f\x6e':!![]},'\x73\x65\x73\x73\x69\x6f\x6e':{'\x73\x65\x72\x76\x65\x72\x5f\x62\x6f\x6f\x74':![],'\x63\x6c\x69\x65\x6e\x74\x5f\x63\x6f\x6e\x6e\x65\x63\x74':![],'\x73\x65\x73\x73\x69\x6f\x6e\x5f\x73\x74\x61\x72\x74':!![],'\x73\x65\x73\x73\x69\x6f\x6e\x5f\x65\x6e\x64':!![],'\x63\x6c\x69\x65\x6e\x74\x5f\x64\x69\x73\x63\x6f\x6e\x6e\x65\x63\x74':![],'\x73\x65\x72\x76\x65\x72\x5f\x73\x68\x75\x74\x64\x6f\x77\x6e':![]},'\x67\x65\x6e\x65\x72\x61\x6c':{'\x65\x72\x72\x6f\x72\x5f\x6f\x63\x63\x75\x72\x72\x65\x64':!![]}}}};
|
package/src/lib/OrgWatcher.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a0_0x147570=a0_0x2e60;(function(_0x4176d1,_0x567bdc){const _0x43b1ef=a0_0x2e60;const _0x250c39=_0x4176d1();while(!![]){try{const _0x1fe501=parseInt(_0x43b1ef(0xcc))/0x1+-parseInt(_0x43b1ef(0xc0))/0x2+-parseInt(_0x43b1ef(0xc6))/0x3+parseInt(_0x43b1ef(0xe6))/0x4+-parseInt(_0x43b1ef(0xe8))/0x5*(-parseInt(_0x43b1ef(0xdc))/0x6)+parseInt(_0x43b1ef(0xf1))/0x7*(parseInt(_0x43b1ef(0xfb))/0x8)+-parseInt(_0x43b1ef(0xc5))/0x9;if(_0x1fe501===_0x567bdc){break;}else{_0x250c39['push'](_0x250c39['shift']());}}catch(_0x1151fc){_0x250c39['push'](_0x250c39['shift']());}}}(a0_0x2ea5,0xd2f5e));import{EventEmitter}from'\x6e\x6f\x64\x65\x3a\x65\x76\x65\x6e\x74\x73';import a0_0x53087b from'\x6e\x6f\x64\x65\x3a\x66\x73';import a0_0x219a7d from'\x6e\x6f\x64\x65\x3a\x70\x61\x74\x68';import a0_0x14cd78 from'\x63\x68\x6f\x6b\x69\x64\x61\x72';import{createModuleLogger}from'\x2e\x2f\x6c\x6f\x67\x67\x65\x72\x2e\x6a\x73';const logger=createModuleLogger(import.meta.url);class TargetOrgWatcher extends EventEmitter{constructor(){const _0x2861b1=a0_0x2e60;super();this[_0x2861b1(0xce)+_0x2861b1(0xd0)]=null;this[_0x2861b1(0xda)+_0x2861b1(0xfa)]=null;this['\x66\x69\x6c\x65\x57\x61\x74\x63\x68\x65'+'\x72']=null;this[_0x2861b1(0xe5)]=![];this[_0x2861b1(0xd9)]=0x1388;}async[a0_0x147570(0xd5)](_0x197097,_0x10b642=null){const _0x15b38e=a0_0x2e60;const _0x515361={'\x52\x48\x43\x6e\x6b':_0x15b38e(0xd3),'\x5a\x65\x6c\x59\x46':_0x15b38e(0xef)};try{await this['\x73\x74\x6f\x70']();this['\x63\x6f\x6e\x66\x69\x67\x46\x69\x6c\x65'+'\x50\x61\x74\x68']=a0_0x219a7d['\x6a\x6f\x69\x6e'](process[_0x15b38e(0xdb)](),_0x15b38e(0xcb),_0x15b38e(0xfc)+'\x6e');this[_0x15b38e(0xda)+_0x15b38e(0xfa)]=_0x10b642;if(this[_0x15b38e(0xe5)]||!this[_0x15b38e(0xda)+_0x15b38e(0xfa)]||!a0_0x53087b[_0x15b38e(0xd6)](this[_0x15b38e(0xce)+_0x15b38e(0xd0)])){return;}this['\x6f\x6e'](_0x15b38e(0xef),_0x1cc0aa=>logger[_0x15b38e(0xdd)](_0x15b38e(0xe9)+_0x15b38e(0xc9)+_0x15b38e(0xfe)+_0x15b38e(0xf4)+'\x6e\x67\x65\x73\x20\x61\x74\x20'+this[_0x15b38e(0xce)+'\x50\x61\x74\x68']+('\x20\x28\x63\x75\x72\x72\x65\x6e\x74\x3a'+'\x20')+_0x1cc0aa+'\x29'));this['\x6f\x6e']('\x6f\x72\x67\x43\x68\x61\x6e\x67\x65\x64',_0x197097);this['\x6f\x6e']('\x65\x72\x72\x6f\x72',_0x4a3735=>logger[_0x15b38e(0xd3)](_0x4a3735,_0x15b38e(0xe0)+'\x61\x6c\x65\x73\x66\x6f\x72\x63\x65\x20'+_0x15b38e(0xf8)+_0x15b38e(0xe1)+'\x65\x72'));this[_0x15b38e(0xc4)+'\x72']=a0_0x14cd78[_0x15b38e(0xc7)](this['\x63\x6f\x6e\x66\x69\x67\x46\x69\x6c\x65'+_0x15b38e(0xd0)],{'\x69\x67\x6e\x6f\x72\x65\x49\x6e\x69\x74\x69\x61\x6c':!![],'\x61\x77\x61\x69\x74\x57\x72\x69\x74\x65\x46\x69\x6e\x69\x73\x68':{'\x73\x74\x61\x62\x69\x6c\x69\x74\x79\x54\x68\x72\x65\x73\x68\x6f\x6c\x64':this[_0x15b38e(0xd9)]}});this[_0x15b38e(0xc4)+'\x72']['\x6f\x6e']('\x63\x68\x61\x6e\x67\x65',()=>this['\x63\x68\x65\x63\x6b']());this[_0x15b38e(0xc4)+'\x72']['\x6f\x6e'](_0x515361[_0x15b38e(0xed)],_0x1fa8ca=>this[_0x15b38e(0xf6)](_0x15b38e(0xd3),_0x1fa8ca));this[_0x15b38e(0xe5)]=!![];this[_0x15b38e(0xf6)](_0x515361[_0x15b38e(0xd4)],this['\x63\x75\x72\x72\x65\x6e\x74\x4f\x72\x67'+_0x15b38e(0xfa)]);}catch(_0x35ddb9){if('\x53\x66\x73\x58\x6e'!=='\x72\x41\x4f\x79\x4b'){logger['\x65\x72\x72\x6f\x72'](_0x35ddb9,'\x45\x72\x72\x6f\x72\x20\x73\x65\x74\x74'+'\x69\x6e\x67\x20\x75\x70\x20\x66\x69\x6c'+_0x15b38e(0xc3));}else{const _0x474d80=this[_0x15b38e(0xda)+'\x41\x6c\x69\x61\x73'];_0x566dcd[_0x15b38e(0xfd)](_0x15b38e(0xf2)+'\x65\x63\x74\x65\x64\x20\x69\x6e\x20\x53'+'\x61\x6c\x65\x73\x66\x6f\x72\x63\x65\x20'+_0x15b38e(0xf8)+_0x15b38e(0xcf)+_0x474d80+_0x15b38e(0xca)+_0x392312);this[_0x15b38e(0xda)+'\x41\x6c\x69\x61\x73']=_0x327bab;this[_0x15b38e(0xf6)](_0x15b38e(0xf5),{'\x6f\x6c\x64\x56\x61\x6c\x75\x65':_0x474d80,'\x6e\x65\x77\x56\x61\x6c\x75\x65':_0x30bba4});}}}async[a0_0x147570(0xee)](){const _0x1caa2a=a0_0x2e60;const _0x2ac937={'\x72\x6c\x59\x61\x79':_0x1caa2a(0xea)+'\x61\x6c\x65\x73\x66\x6f\x72\x63\x65\x20'+_0x1caa2a(0xf8)+_0x1caa2a(0xe1)+'\x65\x72','\x59\x79\x61\x4d\x7a':_0x1caa2a(0xec)};const _0x2a9028=('\x30\x7c\x34\x7c\x33\x7c\x31\x7c\x32\x7c'+'\x35')['\x73\x70\x6c\x69\x74']('\x7c');let _0x3dc428=0x0;while(!![]){switch(_0x2a9028[_0x3dc428++]){case'\x30':if(!this[_0x1caa2a(0xe5)]){return;}continue;case'\x31':this['\x72\x65\x6d\x6f\x76\x65\x41\x6c\x6c\x4c'+_0x1caa2a(0xf0)]();continue;case'\x32':this[_0x1caa2a(0xe5)]=![];continue;case'\x33':if(this[_0x1caa2a(0xc4)+'\x72']){await this[_0x1caa2a(0xc4)+'\x72'][_0x1caa2a(0xf7)]();this['\x66\x69\x6c\x65\x57\x61\x74\x63\x68\x65'+'\x72']=null;}continue;case'\x34':logger['\x64\x65\x62\x75\x67'](_0x2ac937[_0x1caa2a(0xcd)]);continue;case'\x35':this[_0x1caa2a(0xf6)](_0x2ac937[_0x1caa2a(0xc2)]);continue;}break;}}[a0_0x147570(0xe4)](){const _0x2df32b=a0_0x2e60;const _0x56186b={'\x4b\x48\x56\x61\x62':_0x2df32b(0xf5)};try{if(_0x2df32b(0xd8)!==_0x2df32b(0xe2)){const _0x5f0499=a0_0x53087b[_0x2df32b(0xd1)+'\x6e\x63'](this[_0x2df32b(0xce)+'\x50\x61\x74\x68']);const _0x52228e=JSON['\x70\x61\x72\x73\x65'](_0x5f0499);const _0xa9c19b=_0x52228e[_0x2df32b(0xde)]||null;if(!_0xa9c19b){logger[_0x2df32b(0xdd)](_0x2df32b(0xf3)+'\x6f\x72\x67\x20\x66\x6f\x75\x6e\x64\x20'+_0x2df32b(0xd2)+_0x2df32b(0xc8)+_0x2df32b(0xeb));return;}if(_0xa9c19b!==this[_0x2df32b(0xda)+_0x2df32b(0xfa)]){const _0x311a16=this[_0x2df32b(0xda)+_0x2df32b(0xfa)];logger[_0x2df32b(0xfd)](_0x2df32b(0xf2)+_0x2df32b(0xc1)+_0x2df32b(0xdf)+_0x2df32b(0xf8)+_0x2df32b(0xcf)+_0x311a16+_0x2df32b(0xca)+_0xa9c19b);this[_0x2df32b(0xda)+_0x2df32b(0xfa)]=_0xa9c19b;this['\x65\x6d\x69\x74'](_0x56186b[_0x2df32b(0xe3)],{'\x6f\x6c\x64\x56\x61\x6c\x75\x65':_0x311a16,'\x6e\x65\x77\x56\x61\x6c\x75\x65':_0xa9c19b});}}else{_0x35f12b['\x64\x65\x62\x75\x67']('\x4e\x6f\x20\x74\x61\x72\x67\x65\x74\x20'+_0x2df32b(0xf9)+_0x2df32b(0xd2)+'\x72\x63\x65\x20\x43\x4c\x49\x20\x63\x6f'+_0x2df32b(0xeb));return;}}catch(_0xf746cb){logger['\x65\x72\x72\x6f\x72'](_0xf746cb,_0x2df32b(0xd7)+'\x69\x6e\x67\x20\x53\x61\x6c\x65\x73\x66'+_0x2df32b(0xe7)+'\x6f\x6e\x66\x69\x67\x20\x66\x69\x6c\x65');}}}function a0_0x2ea5(){const _0xe275e=['\x79\x33\x76\x59\x43\x4d\x76\x55\x44\x65\x39\x59\x7a\x57','\x79\x33\x44\x4b','\x6d\x74\x47\x57\x76\x30\x6e\x33\x41\x32\x76\x4d','\x7a\x67\x76\x49\x44\x77\x43','\x44\x67\x66\x59\x7a\x32\x76\x30\x6c\x77\x39\x59\x7a\x57','\x79\x77\x58\x4c\x43\x32\x7a\x56\x43\x4d\x6e\x4c\x69\x61','\x72\x78\x6a\x59\x42\x33\x69\x47\x41\x77\x34\x47\x75\x57','\x69\x67\x39\x59\x7a\x59\x62\x33\x79\x78\x72\x4a\x41\x61','\x76\x4e\x76\x4c\x77\x78\x75','\x73\x30\x48\x77\x79\x77\x69','\x79\x32\x48\x4c\x79\x32\x53','\x41\x78\x6e\x78\x79\x78\x72\x4a\x41\x67\x4c\x55\x7a\x57','\x6e\x74\x71\x59\x6e\x5a\x75\x35\x6d\x4d\x48\x51\x44\x77\x76\x70\x42\x57','\x42\x33\x6a\x4a\x7a\x73\x62\x64\x74\x65\x4b\x47\x79\x57','\x6e\x64\x61\x33\x6e\x74\x76\x73\x45\x66\x72\x4d\x74\x68\x71','\x74\x77\x39\x55\x41\x78\x72\x56\x43\x4d\x4c\x55\x7a\x57','\x75\x33\x72\x56\x43\x68\x62\x50\x42\x4d\x43\x47\x75\x57','\x42\x4d\x7a\x50\x7a\x59\x62\x4d\x41\x77\x58\x4c','\x43\x33\x72\x56\x43\x68\x62\x4c\x7a\x61','\x75\x4b\x48\x64\x42\x4d\x53','\x43\x33\x72\x56\x43\x61','\x43\x33\x72\x48\x43\x4e\x72\x4c\x7a\x61','\x41\x78\x6e\x30\x7a\x77\x35\x4c\x43\x4e\x6d','\x6d\x5a\x65\x57\x6f\x74\x72\x75\x76\x4d\x6a\x7a\x73\x30\x79','\x71\x32\x48\x48\x42\x4d\x44\x4c\x69\x67\x72\x4c\x44\x61','\x74\x4d\x38\x47\x44\x67\x66\x59\x7a\x32\x76\x30\x69\x61','\x7a\x78\x71\x47\x42\x33\x6a\x4e\x69\x67\x6e\x4f\x79\x71','\x42\x33\x6a\x4e\x71\x32\x48\x48\x42\x4d\x44\x4c\x7a\x61','\x7a\x77\x31\x50\x44\x61','\x79\x32\x58\x56\x43\x32\x75','\x71\x30\x58\x6a\x69\x68\x72\x48\x43\x4d\x44\x4c\x44\x61','\x42\x33\x6a\x4e\x69\x67\x7a\x56\x44\x77\x35\x4b\x69\x61','\x71\x77\x58\x50\x79\x78\x6d','\x6d\x74\x6d\x34\x6e\x67\x6a\x59\x75\x33\x48\x32\x41\x57','\x79\x32\x39\x55\x7a\x4d\x4c\x4e\x6c\x4d\x50\x5a\x42\x57','\x41\x77\x35\x4d\x42\x57','\x7a\x73\x62\x64\x74\x65\x4b\x47\x44\x67\x66\x59\x7a\x57','\x6d\x4a\x43\x32\x6d\x74\x4b\x35\x6d\x4e\x50\x6f\x44\x4d\x76\x49\x74\x61','\x7a\x77\x6e\x30\x7a\x77\x71\x47\x41\x77\x34\x47\x75\x57','\x77\x78\x4c\x48\x74\x78\x4f','\x7a\x73\x62\x33\x79\x78\x72\x4a\x41\x67\x76\x59','\x7a\x4d\x4c\x53\x7a\x76\x44\x48\x44\x67\x6e\x4f\x7a\x71','\x6d\x5a\x65\x32\x6e\x4a\x43\x5a\x6d\x76\x50\x35\x42\x77\x50\x33\x7a\x57','\x6e\x64\x61\x58\x6e\x64\x75\x30\x6d\x66\x50\x6e\x43\x65\x7a\x58\x75\x61','\x44\x32\x66\x30\x79\x32\x47','\x43\x4d\x6e\x4c\x69\x65\x6e\x6d\x73\x73\x62\x4a\x42\x57','\x69\x66\x6e\x48\x42\x67\x76\x5a\x7a\x4d\x39\x59\x79\x57','\x69\x63\x30\x2b\x69\x61','\x6c\x4e\x6e\x4d','\x6d\x74\x75\x32\x6e\x74\x69\x5a\x6e\x77\x6e\x49\x71\x4c\x66\x51\x41\x57','\x43\x4d\x58\x7a\x79\x78\x4b','\x79\x32\x39\x55\x7a\x4d\x4c\x4e\x72\x4d\x4c\x53\x7a\x71','\x69\x67\x39\x59\x7a\x5a\x4f\x47','\x75\x67\x66\x30\x41\x61','\x43\x4d\x76\x48\x7a\x65\x7a\x50\x42\x67\x76\x74\x45\x71','\x41\x77\x34\x47\x75\x32\x66\x53\x7a\x78\x6e\x4d\x42\x57','\x7a\x78\x6a\x59\x42\x33\x69','\x77\x4d\x76\x53\x77\x75\x79','\x43\x33\x72\x48\x43\x4e\x71','\x7a\x78\x48\x50\x43\x33\x72\x5a\x75\x33\x4c\x55\x79\x57','\x72\x78\x6a\x59\x42\x33\x69\x47\x43\x4d\x76\x48\x7a\x61','\x7a\x65\x7a\x4c\x42\x65\x69','\x7a\x67\x76\x49\x42\x33\x76\x55\x79\x32\x76\x6e\x43\x57'];a0_0x2ea5=function(){return _0xe275e;};return a0_0x2ea5();}function a0_0x2e60(_0x142702,_0x4c6cfc){_0x142702=_0x142702-0xc0;const _0x2ea538=a0_0x2ea5();let _0x2e605d=_0x2ea538[_0x142702];if(a0_0x2e60['\x50\x5a\x72\x65\x65\x6c']===undefined){var _0x190993=function(_0x1c696c){const _0x43a717='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0x212096='';let _0x37432e='';for(let _0x3533ff=0x0,_0x17737a,_0xc5f5c7,_0x52fe52=0x0;_0xc5f5c7=_0x1c696c['\x63\x68\x61\x72\x41\x74'](_0x52fe52++);~_0xc5f5c7&&(_0x17737a=_0x3533ff%0x4?_0x17737a*0x40+_0xc5f5c7:_0xc5f5c7,_0x3533ff++%0x4)?_0x212096+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xff&_0x17737a>>(-0x2*_0x3533ff&0x6)):0x0){_0xc5f5c7=_0x43a717['\x69\x6e\x64\x65\x78\x4f\x66'](_0xc5f5c7);}for(let _0x5b0458=0x0,_0x38d411=_0x212096['\x6c\x65\x6e\x67\x74\x68'];_0x5b0458<_0x38d411;_0x5b0458++){_0x37432e+='\x25'+('\x30\x30'+_0x212096['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x5b0458)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x10))['\x73\x6c\x69\x63\x65'](-0x2);}return decodeURIComponent(_0x37432e);};a0_0x2e60['\x64\x51\x76\x55\x77\x47']=_0x190993;a0_0x2e60['\x44\x56\x54\x67\x57\x54']={};a0_0x2e60['\x50\x5a\x72\x65\x65\x6c']=!![];}const _0x1d9e1d=_0x2ea538[0x0];const _0x2852b8=_0x142702+_0x1d9e1d;const _0x35cfef=a0_0x2e60['\x44\x56\x54\x67\x57\x54'][_0x2852b8];if(!_0x35cfef){_0x2e605d=a0_0x2e60['\x64\x51\x76\x55\x77\x47'](_0x2e605d);a0_0x2e60['\x44\x56\x54\x67\x57\x54'][_0x2852b8]=_0x2e605d;}else{_0x2e605d=_0x35cfef;}return _0x2e605d;}const targetOrgWatcher=new TargetOrgWatcher();export default targetOrgWatcher;
|
|
1
|
+
const a0_0x1ce9cb=a0_0x42d7;(function(_0x184f97,_0x37342b){const _0x1e3dd1=a0_0x42d7;const _0x12c2c6=_0x184f97();while(!![]){try{const _0x3a926f=parseInt(_0x1e3dd1(0x86))/0x1+-parseInt(_0x1e3dd1(0xa0))/0x2+parseInt(_0x1e3dd1(0x87))/0x3*(parseInt(_0x1e3dd1(0xa2))/0x4)+-parseInt(_0x1e3dd1(0x93))/0x5*(-parseInt(_0x1e3dd1(0xbc))/0x6)+parseInt(_0x1e3dd1(0xc3))/0x7*(-parseInt(_0x1e3dd1(0x9b))/0x8)+-parseInt(_0x1e3dd1(0xc8))/0x9*(-parseInt(_0x1e3dd1(0xbf))/0xa)+-parseInt(_0x1e3dd1(0xbe))/0xb*(parseInt(_0x1e3dd1(0x8a))/0xc);if(_0x3a926f===_0x37342b){break;}else{_0x12c2c6['push'](_0x12c2c6['shift']());}}catch(_0x1495ba){_0x12c2c6['push'](_0x12c2c6['shift']());}}}(a0_0x3190,0x3c958));import{EventEmitter}from'\x6e\x6f\x64\x65\x3a\x65\x76\x65\x6e\x74\x73';function a0_0x42d7(_0x442dda,_0x5c8299){_0x442dda=_0x442dda-0x85;const _0x3190de=a0_0x3190();let _0x42d763=_0x3190de[_0x442dda];if(a0_0x42d7['\x51\x65\x64\x48\x49\x5a']===undefined){var _0x38c656=function(_0xa210d3){const _0x290eb4='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0x189bed='';let _0x15da30='';for(let _0x5a653b=0x0,_0x58b750,_0x4b76de,_0x3c6387=0x0;_0x4b76de=_0xa210d3['\x63\x68\x61\x72\x41\x74'](_0x3c6387++);~_0x4b76de&&(_0x58b750=_0x5a653b%0x4?_0x58b750*0x40+_0x4b76de:_0x4b76de,_0x5a653b++%0x4)?_0x189bed+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xff&_0x58b750>>(-0x2*_0x5a653b&0x6)):0x0){_0x4b76de=_0x290eb4['\x69\x6e\x64\x65\x78\x4f\x66'](_0x4b76de);}for(let _0x18e008=0x0,_0x25c62f=_0x189bed['\x6c\x65\x6e\x67\x74\x68'];_0x18e008<_0x25c62f;_0x18e008++){_0x15da30+='\x25'+('\x30\x30'+_0x189bed['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x18e008)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x10))['\x73\x6c\x69\x63\x65'](-0x2);}return decodeURIComponent(_0x15da30);};a0_0x42d7['\x6e\x6e\x7a\x67\x63\x48']=_0x38c656;a0_0x42d7['\x74\x77\x6b\x66\x68\x4a']={};a0_0x42d7['\x51\x65\x64\x48\x49\x5a']=!![];}const _0x3688f4=_0x3190de[0x0];const _0x44c2bd=_0x442dda+_0x3688f4;const _0x43e241=a0_0x42d7['\x74\x77\x6b\x66\x68\x4a'][_0x44c2bd];if(!_0x43e241){_0x42d763=a0_0x42d7['\x6e\x6e\x7a\x67\x63\x48'](_0x42d763);a0_0x42d7['\x74\x77\x6b\x66\x68\x4a'][_0x44c2bd]=_0x42d763;}else{_0x42d763=_0x43e241;}return _0x42d763;}import a0_0x523135 from'\x6e\x6f\x64\x65\x3a\x66\x73';import a0_0x460a9a from'\x6e\x6f\x64\x65\x3a\x70\x61\x74\x68';import a0_0x33853e from'\x63\x68\x6f\x6b\x69\x64\x61\x72';import{createModuleLogger}from'\x2e\x2f\x6c\x6f\x67\x67\x65\x72\x2e\x6a\x73';const logger=createModuleLogger(import.meta.url);class TargetOrgWatcher extends EventEmitter{constructor(){const _0x15c426=a0_0x42d7;const _0x1560b8=(_0x15c426(0xa3)+'\x32')[_0x15c426(0xa8)]('\x7c');let _0x5277ea=0x0;while(!![]){switch(_0x1560b8[_0x5277ea++]){case'\x30':super();continue;case'\x31':this[_0x15c426(0x96)+_0x15c426(0xbb)]=null;continue;case'\x32':this[_0x15c426(0xb5)]=0x1388;continue;case'\x33':this[_0x15c426(0xc7)+_0x15c426(0x94)]=null;continue;case'\x34':this[_0x15c426(0x9d)+'\x72']=null;continue;case'\x35':this[_0x15c426(0xb8)]=![];continue;}break;}}async[a0_0x1ce9cb(0xa7)](_0x37ecb2,_0x3b879e=null){const _0x3073ac=a0_0x42d7;const _0x1a3bdb={'\x5a\x4b\x72\x6a\x54':_0x3073ac(0x85),'\x70\x6d\x51\x68\x4c':_0x3073ac(0xa4)};try{await this[_0x3073ac(0xad)]();this[_0x3073ac(0x96)+_0x3073ac(0xbb)]=a0_0x460a9a[_0x3073ac(0x8b)](process[_0x3073ac(0xca)](),_0x3073ac(0x9c),_0x3073ac(0xb3)+'\x6e');this[_0x3073ac(0xc7)+_0x3073ac(0x94)]=_0x3b879e;if(this['\x69\x73\x57\x61\x74\x63\x68\x69\x6e\x67']||!this[_0x3073ac(0xc7)+_0x3073ac(0x94)]||!a0_0x523135[_0x3073ac(0xba)](this[_0x3073ac(0x96)+_0x3073ac(0xbb)])){return;}this['\x6f\x6e'](_0x3073ac(0xa4),_0x985f33=>logger[_0x3073ac(0xc4)](_0x3073ac(0x8e)+_0x3073ac(0x92)+_0x3073ac(0xaf)+_0x3073ac(0x99)+_0x3073ac(0x8f)+this['\x63\x6f\x6e\x66\x69\x67\x46\x69\x6c\x65'+_0x3073ac(0xbb)]+('\x20\x28\x63\x75\x72\x72\x65\x6e\x74\x3a'+'\x20')+_0x985f33+'\x29'));this['\x6f\x6e'](_0x3073ac(0x88),_0x37ecb2);this['\x6f\x6e'](_0x1a3bdb['\x5a\x4b\x72\x6a\x54'],_0x35b7f1=>logger[_0x3073ac(0x85)](_0x35b7f1,_0x3073ac(0xab)+_0x3073ac(0xa5)+_0x3073ac(0xa1)+_0x3073ac(0xc0)+'\x65\x72'));this['\x66\x69\x6c\x65\x57\x61\x74\x63\x68\x65'+'\x72']=a0_0x33853e[_0x3073ac(0x95)](this[_0x3073ac(0x96)+_0x3073ac(0xbb)],{'\x69\x67\x6e\x6f\x72\x65\x49\x6e\x69\x74\x69\x61\x6c':!![],'\x61\x77\x61\x69\x74\x57\x72\x69\x74\x65\x46\x69\x6e\x69\x73\x68':{'\x73\x74\x61\x62\x69\x6c\x69\x74\x79\x54\x68\x72\x65\x73\x68\x6f\x6c\x64':this['\x64\x65\x62\x6f\x75\x6e\x63\x65\x4d\x73']}});this[_0x3073ac(0x9d)+'\x72']['\x6f\x6e'](_0x3073ac(0x8c),()=>this[_0x3073ac(0xaa)]());this['\x66\x69\x6c\x65\x57\x61\x74\x63\x68\x65'+'\x72']['\x6f\x6e'](_0x1a3bdb[_0x3073ac(0xa9)],_0x26c1c5=>this[_0x3073ac(0xa6)](_0x3073ac(0x85),_0x26c1c5));this[_0x3073ac(0xb8)]=!![];this[_0x3073ac(0xa6)](_0x1a3bdb['\x70\x6d\x51\x68\x4c'],this[_0x3073ac(0xc7)+_0x3073ac(0x94)]);}catch(_0x59d0c4){logger[_0x3073ac(0x85)](_0x59d0c4,_0x3073ac(0x9a)+'\x69\x6e\x67\x20\x75\x70\x20\x66\x69\x6c'+_0x3073ac(0xb0));}}async[a0_0x1ce9cb(0xad)](){const _0x451062=a0_0x42d7;const _0x42edc6={'\x55\x5a\x75\x68\x41':_0x451062(0xb2)+_0x451062(0xa5)+_0x451062(0xa1)+_0x451062(0xc0)+'\x65\x72'};if(!this[_0x451062(0xb8)]){return;}logger[_0x451062(0xc4)](_0x42edc6['\x55\x5a\x75\x68\x41']);if(this['\x66\x69\x6c\x65\x57\x61\x74\x63\x68\x65'+'\x72']){if(_0x451062(0xae)===_0x451062(0xc1)){_0x5e3be4[_0x451062(0x85)](_0x469ec1,'\x45\x72\x72\x6f\x72\x20\x72\x65\x61\x64'+_0x451062(0x97)+_0x451062(0x90)+_0x451062(0x89));}else{await this[_0x451062(0x9d)+'\x72'][_0x451062(0x9f)]();this[_0x451062(0x9d)+'\x72']=null;}}this[_0x451062(0xb6)+_0x451062(0xc9)]();this[_0x451062(0xb8)]=![];this['\x65\x6d\x69\x74']('\x73\x74\x6f\x70\x70\x65\x64');}[a0_0x1ce9cb(0xaa)](){const _0x4327ee=a0_0x42d7;const _0x2b1a4c={'\x51\x69\x68\x74\x50':_0x4327ee(0x9e)+_0x4327ee(0xbd)+_0x4327ee(0x8d)+_0x4327ee(0xcc)+'\x6e\x66\x69\x67\x20\x66\x69\x6c\x65','\x57\x65\x54\x48\x71':_0x4327ee(0x88),'\x6e\x57\x67\x53\x6b':_0x4327ee(0xb7)+_0x4327ee(0x97)+_0x4327ee(0x90)+_0x4327ee(0x89)};try{const _0x4ca290=a0_0x523135['\x72\x65\x61\x64\x46\x69\x6c\x65\x53\x79'+'\x6e\x63'](this[_0x4327ee(0x96)+_0x4327ee(0xbb)]);const _0x365eeb=JSON[_0x4327ee(0x98)](_0x4ca290);const _0x2cc4f5=_0x365eeb[_0x4327ee(0xac)]||null;if(!_0x2cc4f5){logger[_0x4327ee(0xc4)](_0x2b1a4c[_0x4327ee(0xb1)]);return;}if(_0x2cc4f5!==this['\x63\x75\x72\x72\x65\x6e\x74\x4f\x72\x67'+_0x4327ee(0x94)]){const _0x416212=this[_0x4327ee(0xc7)+_0x4327ee(0x94)];logger[_0x4327ee(0xb4)](_0x4327ee(0xb9)+_0x4327ee(0xc5)+_0x4327ee(0xa5)+_0x4327ee(0xa1)+_0x4327ee(0xcb)+_0x416212+_0x4327ee(0xc6)+_0x2cc4f5);this[_0x4327ee(0xc7)+_0x4327ee(0x94)]=_0x2cc4f5;this[_0x4327ee(0xa6)](_0x2b1a4c['\x57\x65\x54\x48\x71'],{'\x6f\x6c\x64\x56\x61\x6c\x75\x65':_0x416212,'\x6e\x65\x77\x56\x61\x6c\x75\x65':_0x2cc4f5});}}catch(_0x1f414a){if(_0x4327ee(0xc2)!==_0x4327ee(0xc2)){_0x1644e1[_0x4327ee(0xc4)](_0x4327ee(0x9e)+_0x4327ee(0xbd)+_0x4327ee(0x8d)+_0x4327ee(0xcc)+'\x6e\x66\x69\x67\x20\x66\x69\x6c\x65');return;}else{logger['\x65\x72\x72\x6f\x72'](_0x1f414a,_0x2b1a4c[_0x4327ee(0x91)]);}}}}const targetOrgWatcher=new TargetOrgWatcher();function a0_0x3190(){const _0x5b0da1=['\x6e\x32\x72\x4c\x76\x77\x58\x7a\x73\x71','\x7a\x67\x76\x49\x44\x77\x43','\x7a\x77\x6e\x30\x7a\x77\x71\x47\x41\x77\x34\x47\x75\x57','\x69\x63\x30\x2b\x69\x61','\x79\x33\x76\x59\x43\x4d\x76\x55\x44\x65\x39\x59\x7a\x57','\x6f\x74\x69\x5a\x6e\x5a\x7a\x6a\x72\x4d\x4c\x4f\x41\x67\x30','\x41\x78\x6e\x30\x7a\x77\x35\x4c\x43\x4e\x6d','\x79\x33\x44\x4b','\x69\x67\x39\x59\x7a\x5a\x4f\x47','\x43\x4d\x6e\x4c\x69\x65\x6e\x6d\x73\x73\x62\x4a\x42\x57','\x7a\x78\x6a\x59\x42\x33\x69','\x6d\x74\x43\x30\x6d\x74\x47\x35\x71\x32\x39\x41\x76\x4c\x44\x76','\x6e\x5a\x69\x57\x6e\x64\x47\x57\x75\x4b\x54\x77\x72\x31\x7a\x7a','\x42\x33\x6a\x4e\x71\x32\x48\x48\x42\x4d\x44\x4c\x7a\x61','\x42\x32\x35\x4d\x41\x77\x43\x47\x7a\x4d\x4c\x53\x7a\x71','\x6d\x74\x6d\x59\x74\x77\x39\x57\x77\x68\x44\x72','\x41\x4d\x39\x50\x42\x47','\x79\x32\x48\x48\x42\x4d\x44\x4c','\x41\x77\x34\x47\x75\x32\x66\x53\x7a\x78\x6e\x4d\x42\x57','\x74\x77\x39\x55\x41\x78\x72\x56\x43\x4d\x4c\x55\x7a\x57','\x42\x4d\x44\x4c\x43\x59\x62\x48\x44\x63\x61','\x42\x33\x6a\x4a\x7a\x73\x62\x64\x74\x65\x4b\x47\x79\x57','\x42\x4c\x44\x4e\x75\x32\x53','\x69\x66\x6e\x48\x42\x67\x76\x5a\x7a\x4d\x39\x59\x79\x57','\x6f\x64\x75\x34\x6e\x77\x58\x6a\x79\x77\x58\x66\x73\x47','\x71\x77\x58\x50\x79\x78\x6d','\x44\x32\x66\x30\x79\x32\x47','\x79\x32\x39\x55\x7a\x4d\x4c\x4e\x72\x4d\x4c\x53\x7a\x71','\x41\x77\x35\x4e\x69\x66\x6e\x48\x42\x67\x76\x5a\x7a\x47','\x43\x67\x66\x59\x43\x32\x75','\x7a\x78\x71\x47\x42\x33\x6a\x4e\x69\x67\x6e\x4f\x79\x71','\x72\x78\x6a\x59\x42\x33\x69\x47\x43\x32\x76\x30\x44\x61','\x6d\x5a\x69\x5a\x6f\x64\x43\x34\x6e\x66\x48\x6e\x73\x67\x6a\x5a\x76\x57','\x6c\x4e\x6e\x4d','\x7a\x4d\x4c\x53\x7a\x76\x44\x48\x44\x67\x6e\x4f\x7a\x71','\x74\x4d\x38\x47\x44\x67\x66\x59\x7a\x32\x76\x30\x69\x61','\x79\x32\x58\x56\x43\x32\x75','\x6f\x64\x43\x59\x6d\x64\x69\x34\x43\x77\x31\x7a\x76\x32\x31\x31','\x71\x30\x58\x6a\x69\x68\x72\x48\x43\x4d\x44\x4c\x44\x61','\x6f\x67\x76\x50\x44\x4d\x44\x52\x72\x71','\x6d\x68\x57\x58\x46\x64\x6e\x38\x6e\x68\x57\x31\x46\x61','\x43\x33\x72\x48\x43\x4e\x72\x4c\x7a\x61','\x79\x77\x58\x4c\x43\x32\x7a\x56\x43\x4d\x6e\x4c\x69\x61','\x7a\x77\x31\x50\x44\x61','\x43\x33\x72\x48\x43\x4e\x71','\x43\x33\x62\x53\x41\x78\x71','\x77\x4b\x54\x59\x41\x4c\x71','\x79\x32\x48\x4c\x79\x32\x53','\x72\x78\x6a\x59\x42\x33\x69\x47\x41\x77\x34\x47\x75\x57','\x44\x67\x66\x59\x7a\x32\x76\x30\x6c\x77\x39\x59\x7a\x57','\x43\x33\x72\x56\x43\x61','\x76\x75\x48\x57\x72\x4d\x6d','\x7a\x73\x62\x64\x74\x65\x4b\x47\x44\x67\x66\x59\x7a\x57','\x7a\x73\x62\x33\x79\x78\x72\x4a\x41\x67\x76\x59','\x75\x77\x4c\x4f\x44\x66\x61','\x75\x33\x72\x56\x43\x68\x62\x50\x42\x4d\x43\x47\x75\x57','\x79\x32\x39\x55\x7a\x4d\x4c\x4e\x6c\x4d\x50\x5a\x42\x57','\x41\x77\x35\x4d\x42\x57','\x7a\x67\x76\x49\x42\x33\x76\x55\x79\x32\x76\x6e\x43\x57','\x43\x4d\x76\x54\x42\x33\x7a\x4c\x71\x77\x58\x53\x74\x61','\x72\x78\x6a\x59\x42\x33\x69\x47\x43\x4d\x76\x48\x7a\x61','\x41\x78\x6e\x78\x79\x78\x72\x4a\x41\x67\x4c\x55\x7a\x57','\x71\x32\x48\x48\x42\x4d\x44\x4c\x69\x67\x72\x4c\x44\x61','\x7a\x78\x48\x50\x43\x33\x72\x5a\x75\x33\x4c\x55\x79\x57','\x75\x67\x66\x30\x41\x61','\x6d\x74\x75\x33\x6d\x4c\x62\x35\x74\x66\x66\x49\x44\x71','\x42\x33\x6a\x4e\x69\x67\x7a\x56\x44\x77\x35\x4b\x69\x61','\x6f\x64\x43\x58\x6f\x74\x44\x58\x74\x4c\x66\x4d\x43\x66\x75','\x6e\x5a\x62\x76\x73\x77\x31\x74\x71\x30\x65','\x69\x67\x39\x59\x7a\x59\x62\x33\x79\x78\x72\x4a\x41\x61','\x75\x33\x50\x64\x73\x66\x69','\x74\x76\x6e\x75\x45\x65\x57'];a0_0x3190=function(){return _0x5b0da1;};return a0_0x3190();}export default targetOrgWatcher;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{exec}from'node:child_process';import{performance}from'node:perf_hooks';import{promisify}from'node:util';import a0_0x19b6cc from'node:fs';import a0_0x41b464 from'node:path';import{chromium}from'playwright';import a0_0x106d1a from'../config.js';import{state}from'../state.js';import{createModuleLogger}from'./logger.js';const logger=createModuleLogger(import.meta.url);const execAsync=promisify(exec);const ORG_SETUP_AUDIT_FRAME_URL=/orgsetupaudit\.jsp|\/setup\/org\/orgsetupaudit/i;const DOWNLOAD_LINK_SELECTORS=['a:has-text(\x22Download\x20setup\x20audit\x20trail\x20for\x20last\x20six\x20months\x22)','a:has-text(\x22Download\x20setup\x20audit\x20trail\x22)','a[href*=\x22SetupAuditTrail\x22]'];const FALLBACK_LINK_SELECTORS=['a[href*=\x22SetupAuditTrail\x22]','a[href*=\x22/servlet/servlet.SetupAuditTrail\x22]','div.pShowMore\x20a[href*=\x22SetupAuditTrail\x22]','div.pShowMore\x20a'];const FRAME_WAIT_FALLBACK_POLL_MS=0x1f4;const VISIBLE_DOWNLOAD_LINK_TIMEOUT_MS=0x1388;const MAX_VISIBLE_ANCHOR_CANDIDATES=0xc;let _playwrightBrowsersAvailable=null;function checkPlaywrightBrowsers(){if(_playwrightBrowsersAvailable!==null){return _playwrightBrowsersAvailable;}try{const _0x2de4f8=chromium['executablePath']();_playwrightBrowsersAvailable=a0_0x19b6cc['existsSync'](_0x2de4f8);}catch{_playwrightBrowsersAvailable=![];}return _playwrightBrowsersAvailable;}async function installPlaywrightBrowsers(){try{logger['debug']('Installing\x20Playwright\x20browsers...');const {stderr:_0x10c1d6}=await execAsync('npx\x20playwright\x20install\x20chromium');if(_0x10c1d6&&!_0x10c1d6['includes']('chromium')){logger['warn']('Playwright\x20installation\x20stderr:',_0x10c1d6);}logger['debug']('Playwright\x20browsers\x20installed\x20successfully');return!![];}catch(_0x39f1e2){logger['error']('Failed\x20to\x20install\x20Playwright\x20browsers:',_0x39f1e2['message']);throw new Error('Failed\x20to\x20install\x20Playwright\x20browsers.\x20Please\x20run\x20manually:\x20npx\x20playwright\x20install\x20chromium');}}async function listAllLinks(_0x1c5943){try{const _0x5b684f=await _0x1c5943['locator']('a')['all']();if(_0x5b684f['length']===0x0){logger['debug']('No\x20links\x20found\x20on\x20page');return;}logger['debug']('Found\x20'+_0x5b684f['length']+'\x20links\x20on\x20page:');for(let _0xbe4a29=0x0;_0xbe4a29<Math['min'](_0x5b684f['length'],0x14);_0xbe4a29++){const _0x3ad68d=await _0x5b684f[_0xbe4a29]['getAttribute']('href');const text=await _0x5b684f[_0xbe4a29]['textContent']();logger['debug']('\x20\x20['+_0xbe4a29+']\x20href=\x22'+_0x3ad68d+'\x22\x20text=\x22'+text?.['trim']()['slice'](0x0,0x32)+'\x22');}if(_0x5b684f['length']>0x14){logger['debug']('\x20\x20...\x20and\x20'+(_0x5b684f['length']-0x14)+'\x20more\x20links');}}catch(_0x3107a3){logger['debug']('Error\x20listing\x20links:\x20'+_0x3107a3['message']);}}async function waitForOrgSetupAuditFrame(_0x3c6220,_0x4e0db0=0xea60){const _0x11902c=Date['now']();function _0x3679e8(){let _0x4a3bb6;try{_0x4a3bb6=_0x3c6220['frames']();}catch(_0x39ea17){logger['debug']('[H2]\x20tryMatch\x20page.frames:\x20'+_0x39ea17['message']);return null;}for(const _0xa3b1f3 of _0x4a3bb6){try{const _0xcc195c=_0xa3b1f3['url']();if(ORG_SETUP_AUDIT_FRAME_URL['test'](_0xcc195c)){return _0xa3b1f3;}}catch{}}return null;}const _0x3085c0=_0x3679e8();if(_0x3085c0){let _0x109c39='(url\x20unavailable)';try{_0x109c39=_0x3085c0['url']();}catch{}logger['debug']('[H2]\x20orgsetupaudit\x20frame\x20after\x20'+(Date['now']()-_0x11902c)+'ms:\x20'+_0x109c39['slice'](0x0,0x8c));return _0x3085c0;}let _0x237041=![];let _0x57f4c1;return new Promise(_0x3c8a41=>{const _0x5c005e=()=>{if(_0x57f4c1){clearInterval(_0x57f4c1);}_0x3c6220['off']('framenavigated',_0x5446e8);_0x3c6220['off']('close',_0x1b0cd1);};function _0x1b0cd1(){logger['debug']('[H2]\x20page\x20closed\x20while\x20waiting\x20for\x20orgsetupaudit\x20frame');_0x3c550b(null);}function _0x3c550b(_0x1e6136){if(_0x237041){return;}_0x237041=!![];_0x5c005e();if(_0x1e6136){let _0x14d48f='(url\x20unavailable)';try{_0x14d48f=_0x1e6136['url']();}catch{}logger['debug']('[H2]\x20orgsetupaudit\x20frame\x20after\x20'+(Date['now']()-_0x11902c)+'ms:\x20'+_0x14d48f['slice'](0x0,0x8c));}else{logger['debug']('[H2]\x20orgsetupaudit\x20frame\x20not\x20found\x20within\x20'+_0x4e0db0+'ms');}_0x3c8a41(_0x1e6136);}function _0x5446e8(){const _0x360f7d=_0x3679e8();if(_0x360f7d){_0x3c550b(_0x360f7d);}}_0x3c6220['on']('framenavigated',_0x5446e8);_0x3c6220['on']('close',_0x1b0cd1);_0x57f4c1=setInterval(()=>{if(_0x237041){return;}const _0x9ad7b2=_0x3679e8();if(_0x9ad7b2){_0x3c550b(_0x9ad7b2);return;}if(Date['now']()-_0x11902c>=_0x4e0db0){_0x3c550b(null);}},FRAME_WAIT_FALLBACK_POLL_MS);});}async function waitForDownloadLinkAttached(_0x2f0ddb,_0xc3a3d1=0x61a8){if(!_0x2f0ddb){return;}const _0x1a259a=Date['now']();const _0x672837=['a[href*=\x22SetupAuditTrail\x22]','a:has-text(\x22Download\x20setup\x20audit\x20trail\x20for\x20last\x20six\x20months\x22)','a:has-text(\x22Download\x20setup\x20audit\x20trail\x22)'];for(const _0x3d79e5 of _0x672837){const _0x301ddd=Date['now']()-_0x1a259a;const _0x89a142=_0xc3a3d1-_0x301ddd;if(_0x89a142<0x190){break;}try{await _0x2f0ddb['locator'](_0x3d79e5)['first']()['waitFor']({'state':'attached','timeout':_0x89a142});logger['debug']('[H2]\x20Download\x20anchor\x20ready\x20('+_0x3d79e5+')\x20after\x20'+(Date['now']()-_0x1a259a)+'ms');return;}catch{}}logger['debug']('[H2]\x20Download\x20anchor\x20not\x20attached\x20within\x20wait\x20(continuing\x20to\x20locator\x20search)');}async function firstVisibleMatchingAnchor(_0x329186,_0x51fc86){const _0x12f3de=_0x329186['locator'](_0x51fc86);let _0x26b08f;try{_0x26b08f=await _0x12f3de['count']();}catch(_0x36a9ac){logger['debug']('firstVisibleMatchingAnchor\x20count:\x20'+_0x36a9ac['message']);return null;}const _0x52f699=Math['min'](_0x26b08f,MAX_VISIBLE_ANCHOR_CANDIDATES);if(_0x26b08f>MAX_VISIBLE_ANCHOR_CANDIDATES){logger['debug']('firstVisibleMatchingAnchor:\x20checking\x20first\x20'+_0x52f699+'\x20of\x20'+_0x26b08f+'\x20matches\x20for\x20'+_0x51fc86['slice'](0x0,0x28));}for(let _0x503b90=0x0;_0x503b90<_0x52f699;_0x503b90++){const _0x4f805a=_0x12f3de['nth'](_0x503b90);try{await _0x4f805a['waitFor']({'state':'visible','timeout':VISIBLE_DOWNLOAD_LINK_TIMEOUT_MS});return _0x4f805a;}catch{}}return null;}export function buildFrontdoorUrl(_0x376d20,_0x5a1a60,_0x2f7f66){const _0x4c1d37=_0x376d20['replace'](/\/+$/,'');return _0x4c1d37+'/secur/frontdoor.jsp?sid='+encodeURIComponent(_0x5a1a60)+'&retURL='+encodeURIComponent(_0x2f7f66);}export function isSalesforceLoginPage(_0x5e5d1e,_0x47cb44){return _0x5e5d1e==='Login\x20|\x20Salesforce'||typeof _0x47cb44==='string'&&/[&?]ec=302(?:&|$).*startURL=|[&?]startURL=.*[&?]ec=302(?:&|$)/['test'](_0x47cb44);}async function findDownloadLocator(_0x23e0e5,_0x1c2607){const _0x4a0eff=async _0x251022=>{for(const _0x3ad91d of DOWNLOAD_LINK_SELECTORS){try{const _0x17c74f=await firstVisibleMatchingAnchor(_0x251022,_0x3ad91d);if(_0x17c74f){logger['debug']('Found\x20visible\x20download\x20link:\x20'+_0x3ad91d);return _0x17c74f;}}catch(_0x39d00d){logger['debug']('Selector\x20'+_0x3ad91d+':\x20'+_0x39d00d['message']);}}return null;};if(_0x1c2607){const _0xd1491e=await _0x4a0eff(_0x1c2607);if(_0xd1491e){return _0xd1491e;}}for(const _0x15007f of _0x23e0e5['frames']()){try{const _0x210348=_0x15007f['url']();if(ORG_SETUP_AUDIT_FRAME_URL['test'](_0x210348)){const _0x28af6f=await _0x4a0eff(_0x15007f);if(_0x28af6f){return _0x28af6f;}}}catch{continue;}}const _0x3314d7=['iframe[src*=\x22SecurityEvents\x22]','iframe'];for(const _0x14bc8b of _0x3314d7){try{const _0x47fd69=_0x23e0e5['frameLocator'](_0x14bc8b)['first']();for(const _0x8978fa of DOWNLOAD_LINK_SELECTORS){try{const _0x3a510f=await firstVisibleMatchingAnchor(_0x47fd69,_0x8978fa);if(_0x3a510f){logger['debug']('Found\x20visible\x20download\x20link:\x20'+_0x14bc8b+'\x20+\x20'+_0x8978fa);return _0x3a510f;}}catch{}}}catch{}}const _0x4b84f6=[_0x23e0e5,..._0x23e0e5['frames']()];for(const _0x176052 of FALLBACK_LINK_SELECTORS){for(const _0xf6af39 of _0x4b84f6){try{const _0x4a650=await firstVisibleMatchingAnchor(_0xf6af39,_0x176052);if(_0x4a650){logger['debug']('Found\x20visible\x20download\x20link\x20(fallback):\x20'+_0x176052);return _0x4a650;}}catch(_0x3b087e){logger['debug']('Fallback\x20selector\x20failed:\x20'+_0x176052+'\x20-\x20'+_0x3b087e['message']);}}}logger['debug']('No\x20download\x20link\x20found\x20with\x20any\x20selector');return null;}async function retrieveFile(){let _0x4c92d3=null;try{const _0xeb77e5='/lightning/setup/SecurityEvents/home';const _0x3b1de6=performance['now']();let _0x5107e0=_0x3b1de6;let _0x1e1065=checkPlaywrightBrowsers();logger['debug']('[timing]\x20checkPlaywrightBrowsers:\x20'+Math['round'](performance['now']()-_0x5107e0)+'ms');_0x5107e0=performance['now']();if(!_0x1e1065){logger['debug']('Playwright\x20browsers\x20not\x20installed.\x20Installing\x20them\x20automatically...');await installPlaywrightBrowsers();_playwrightBrowsersAvailable=null;_0x1e1065=checkPlaywrightBrowsers();if(!_0x1e1065){throw new Error('Failed\x20to\x20install\x20Playwright\x20browsers.\x20Please\x20run\x20manually:\x20npx\x20playwright\x20install\x20chromium');}logger['debug']('[timing]\x20installPlaywrightBrowsers\x20(+recheck):\x20'+Math['round'](performance['now']()-_0x5107e0)+'ms');_0x5107e0=performance['now']();}_0x4c92d3=await chromium['launch']({'headless':!![]});const _0x17c785=a0_0x41b464['join'](process['cwd'](),'tmp');if(!a0_0x19b6cc['existsSync'](_0x17c785)){a0_0x19b6cc['mkdirSync'](_0x17c785,{'recursive':!![]});}const _0x13548a=await _0x4c92d3['newContext']({'acceptDownloads':!![],'downloadsPath':_0x17c785,'ignoreHTTPSErrors':!a0_0x106d1a['strictSsl']});const _0x29140c=await _0x13548a['newPage']();logger['debug']('[timing]\x20chromium.launch\x20+\x20newContext\x20+\x20newPage:\x20'+Math['round'](performance['now']()-_0x5107e0)+'ms');_0x5107e0=performance['now']();const {instanceUrl:_0x343e71,accessToken:_0x142a54}=state['org'];if(!_0x343e71||!_0x142a54){throw new Error('Missing\x20instanceUrl\x20or\x20accessToken');}const _0x38d78f=buildFrontdoorUrl(_0x343e71,_0x142a54,_0xeb77e5);logger['debug']('[H2]\x20Navigating\x20to:\x20'+_0xeb77e5);await _0x29140c['goto'](_0x38d78f,{'waitUntil':'domcontentloaded','timeout':0xea60});logger['debug']('[timing]\x20page.goto(domcontentloaded):\x20'+Math['round'](performance['now']()-_0x5107e0)+'ms');_0x5107e0=performance['now']();let _0x5517f7='n/a';try{_0x5517f7=await _0x29140c['title']();}catch(_0x26dd0b){logger['debug']('[H2]\x20Failed\x20to\x20retrieve\x20page\x20title\x20after\x20load',{'error':_0x26dd0b});}logger['debug']('[H2]\x20Page\x20loaded.\x20Title:\x20'+_0x5517f7+',\x20URL:\x20'+_0x29140c['url']());if(isSalesforceLoginPage(_0x5517f7,_0x29140c['url']())){throw new Error('Frontdoor\x20login\x20redirected\x20to\x20Salesforce\x20login\x20page:\x20'+_0x29140c['url']());}try{await _0x29140c['waitForLoadState']('load',{'timeout':0x2710});}catch{}logger['debug']('[timing]\x20page.title\x20+\x20waitForLoadState(load):\x20'+Math['round'](performance['now']()-_0x5107e0)+'ms');_0x5107e0=performance['now']();const _0x53127d=await waitForOrgSetupAuditFrame(_0x29140c,0xea60);logger['debug']('[timing]\x20waitForOrgSetupAuditFrame:\x20'+Math['round'](performance['now']()-_0x5107e0)+'ms');_0x5107e0=performance['now']();await waitForDownloadLinkAttached(_0x53127d,0x61a8);logger['debug']('[timing]\x20waitForDownloadLinkAttached:\x20'+Math['round'](performance['now']()-_0x5107e0)+'ms');_0x5107e0=performance['now']();logger['debug']('[H1]\x20Resolving\x20download\x20control...');const _0x4c6568=await findDownloadLocator(_0x29140c,_0x53127d);logger['debug']('[timing]\x20findDownloadLocator:\x20'+Math['round'](performance['now']()-_0x5107e0)+'ms');_0x5107e0=performance['now']();if(!_0x4c6568){logger['debug']('[H1]\x20Download\x20link\x20not\x20found,\x20listing\x20all\x20links\x20on\x20page...');await listAllLinks(_0x29140c);throw new Error('Download\x20link\x20not\x20found\x20in\x20Setup\x20Audit\x20Trail.');}const _0xc618fd=0x7530;logger['debug']('[H1]\x20Subscribing\x20to\x20download\x20event,\x20then\x20clicking...');const _0x5f5bf2=_0x29140c['waitForEvent']('download',{'timeout':_0xc618fd});await _0x4c6568['click']({'timeout':0x1388});logger['debug']('[timing]\x20downloadLocator.click:\x20'+Math['round'](performance['now']()-_0x5107e0)+'ms');_0x5107e0=performance['now']();const _0x19ec20=await _0x5f5bf2;logger['debug']('[timing]\x20await\x20download\x20event\x20(after\x20click):\x20'+Math['round'](performance['now']()-_0x5107e0)+'ms');logger['debug']('[SUCCESS]\x20Download\x20event\x20received,\x20saving\x20file...');const _0x4889fc=a0_0x41b464['join'](_0x17c785,'SetupAuditTrail.csv');_0x5107e0=performance['now']();await _0x19ec20['saveAs'](_0x4889fc);logger['debug']('[timing]\x20download.saveAs:\x20'+Math['round'](performance['now']()-_0x5107e0)+'ms');logger['debug']('[timing]\x20retrieveFile\x20total:\x20'+Math['round'](performance['now']()-_0x3b1de6)+'ms');logger['debug']('[SUCCESS]\x20File\x20saved\x20to:\x20'+_0x4889fc);return _0x4889fc;}catch(_0x3ac816){logger['error']('[ERROR]\x20Error\x20during\x20Setup\x20Audit\x20Trail\x20download:\x20'+_0x3ac816['message']);throw _0x3ac816;}finally{if(_0x4c92d3){await _0x4c92d3['close']();}}}function isRetryableDownloadError(_0x35743b){const _0x52dfd8=typeof _0x35743b?.['message']==='string'?_0x35743b['message']:'';if(!_0x52dfd8){return![];}if(_0x52dfd8['includes']('Frame\x20was\x20detached')||_0x52dfd8['includes']('Target\x20page,\x20context\x20or\x20browser\x20has\x20been\x20closed')){return!![];}if(_0x52dfd8['includes']('Download\x20link\x20not\x20found\x20in\x20Setup\x20Audit\x20Trail')){return!![];}if(_0x52dfd8['includes']('Timeout')&&_0x52dfd8['includes']('download')){return!![];}if(_0x52dfd8['includes']('net::')||_0x52dfd8['includes']('ERR_TOO_MANY_REDIRECTS')||_0x52dfd8['includes']('chrome-error://')){return!![];}return![];}async function retrieveFileWithRetry(_0x230cbf=0x3){let _0x1fdf0b;const _0x38fa24=0x7d0;for(let _0x295151=0x1;_0x295151<=_0x230cbf;_0x295151++){try{return await retrieveFile();}catch(_0x1a0588){_0x1fdf0b=_0x1a0588;if(isRetryableDownloadError(_0x1a0588)&&_0x295151<_0x230cbf){logger['debug']('Retryable\x20error\x20on\x20attempt\x20'+_0x295151+'/'+_0x230cbf+':\x20'+_0x1a0588['message']+'.\x20Waiting\x20'+_0x38fa24+'ms...');await new Promise(_0x29e8af=>setTimeout(_0x29e8af,_0x38fa24));continue;}break;}}logger['error']('All\x20download\x20attempts\x20failed.\x20Last\x20error:\x20'+_0x1fdf0b?.['message']);throw _0x1fdf0b;}export async function retrieveSetupAuditTrailFile(){try{return await retrieveFileWithRetry();}catch(_0x561a7e){logger['error'](_0x561a7e,'Error\x20retrieving\x20Setup\x20Audit\x20Trail\x20file');throw _0x561a7e;}}
|
|
1
|
+
import{exec}from'node:child_process';import{performance}from'node:perf_hooks';import{promisify}from'node:util';import a0_0x5e4048 from'node:fs';import a0_0x226aac from'node:path';import{chromium}from'playwright';import a0_0x11ff83 from'../config.js';import{state}from'../state.js';import{createModuleLogger}from'./logger.js';const logger=createModuleLogger(import.meta.url);const execAsync=promisify(exec);const ORG_SETUP_AUDIT_FRAME_URL=/orgsetupaudit\.jsp|\/setup\/org\/orgsetupaudit/i;const DOWNLOAD_LINK_SELECTORS=['a:has-text(\x22Download\x20setup\x20audit\x20trail\x20for\x20last\x20six\x20months\x22)','a:has-text(\x22Download\x20setup\x20audit\x20trail\x22)','a[href*=\x22SetupAuditTrail\x22]'];const FALLBACK_LINK_SELECTORS=['a[href*=\x22SetupAuditTrail\x22]','a[href*=\x22/servlet/servlet.SetupAuditTrail\x22]','div.pShowMore\x20a[href*=\x22SetupAuditTrail\x22]','div.pShowMore\x20a'];const FRAME_WAIT_FALLBACK_POLL_MS=0x1f4;const VISIBLE_DOWNLOAD_LINK_TIMEOUT_MS=0x1388;const MAX_VISIBLE_ANCHOR_CANDIDATES=0xc;let _playwrightBrowsersAvailable=null;function checkPlaywrightBrowsers(){if(_playwrightBrowsersAvailable!==null){return _playwrightBrowsersAvailable;}try{const _0x53aafc=chromium['executablePath']();_playwrightBrowsersAvailable=a0_0x5e4048['existsSync'](_0x53aafc);}catch{_playwrightBrowsersAvailable=![];}return _playwrightBrowsersAvailable;}async function installPlaywrightBrowsers(){try{logger['debug']('Installing\x20Playwright\x20browsers...');const _0x120875=new URL('../../node_modules/.bin/playwright',import.meta.url)['pathname'];const _0x59757a=a0_0x5e4048['existsSync'](_0x120875)?'\x22'+_0x120875+'\x22\x20install\x20chromium':'npx\x20playwright\x20install\x20chromium';const {stderr:_0x107c31}=await execAsync(_0x59757a);if(_0x107c31&&!_0x107c31['includes']('chromium')){logger['warn']('Playwright\x20installation\x20stderr:',_0x107c31);}logger['debug']('Playwright\x20browsers\x20installed\x20successfully');return!![];}catch(_0x2a7666){logger['error']('Failed\x20to\x20install\x20Playwright\x20browsers:',_0x2a7666['message']);throw new Error('Failed\x20to\x20install\x20Playwright\x20browsers.\x20Please\x20run\x20manually:\x20npx\x20playwright\x20install\x20chromium');}}async function listAllLinks(_0x35dbe0){try{const _0x2bbc91=await _0x35dbe0['locator']('a')['all']();if(_0x2bbc91['length']===0x0){logger['debug']('No\x20links\x20found\x20on\x20page');return;}logger['debug']('Found\x20'+_0x2bbc91['length']+'\x20links\x20on\x20page:');for(let _0x38d87a=0x0;_0x38d87a<Math['min'](_0x2bbc91['length'],0x14);_0x38d87a++){const _0xc021c9=await _0x2bbc91[_0x38d87a]['getAttribute']('href');const text=await _0x2bbc91[_0x38d87a]['textContent']();logger['debug']('\x20\x20['+_0x38d87a+']\x20href=\x22'+_0xc021c9+'\x22\x20text=\x22'+text?.['trim']()['slice'](0x0,0x32)+'\x22');}if(_0x2bbc91['length']>0x14){logger['debug']('\x20\x20...\x20and\x20'+(_0x2bbc91['length']-0x14)+'\x20more\x20links');}}catch(_0x3a5001){logger['debug']('Error\x20listing\x20links:\x20'+_0x3a5001['message']);}}async function waitForOrgSetupAuditFrame(_0x454dbf,_0x54d518=0xea60){const _0x2b823e=Date['now']();function _0x2e45f5(){let _0x40f4f2;try{_0x40f4f2=_0x454dbf['frames']();}catch(_0x505aae){logger['debug']('[H2]\x20tryMatch\x20page.frames:\x20'+_0x505aae['message']);return null;}for(const _0x5f583c of _0x40f4f2){try{const _0x3a108a=_0x5f583c['url']();if(ORG_SETUP_AUDIT_FRAME_URL['test'](_0x3a108a)){return _0x5f583c;}}catch{}}return null;}const _0x344e0c=_0x2e45f5();if(_0x344e0c){let _0x1d1c1d='(url\x20unavailable)';try{_0x1d1c1d=_0x344e0c['url']();}catch{}logger['debug']('[H2]\x20orgsetupaudit\x20frame\x20after\x20'+(Date['now']()-_0x2b823e)+'ms:\x20'+_0x1d1c1d['slice'](0x0,0x8c));return _0x344e0c;}let _0x3df68f=![];let _0xae949b;return new Promise(_0x50f1a2=>{const _0x1ed5e8=()=>{if(_0xae949b){clearInterval(_0xae949b);}_0x454dbf['off']('framenavigated',_0x3cbb8c);_0x454dbf['off']('close',_0x8df044);};function _0x8df044(){logger['debug']('[H2]\x20page\x20closed\x20while\x20waiting\x20for\x20orgsetupaudit\x20frame');_0x835b08(null);}function _0x835b08(_0x3b9aea){if(_0x3df68f){return;}_0x3df68f=!![];_0x1ed5e8();if(_0x3b9aea){let _0x415cec='(url\x20unavailable)';try{_0x415cec=_0x3b9aea['url']();}catch{}logger['debug']('[H2]\x20orgsetupaudit\x20frame\x20after\x20'+(Date['now']()-_0x2b823e)+'ms:\x20'+_0x415cec['slice'](0x0,0x8c));}else{logger['debug']('[H2]\x20orgsetupaudit\x20frame\x20not\x20found\x20within\x20'+_0x54d518+'ms');}_0x50f1a2(_0x3b9aea);}function _0x3cbb8c(){const _0x216a3c=_0x2e45f5();if(_0x216a3c){_0x835b08(_0x216a3c);}}_0x454dbf['on']('framenavigated',_0x3cbb8c);_0x454dbf['on']('close',_0x8df044);_0xae949b=setInterval(()=>{if(_0x3df68f){return;}const _0x134dd3=_0x2e45f5();if(_0x134dd3){_0x835b08(_0x134dd3);return;}if(Date['now']()-_0x2b823e>=_0x54d518){_0x835b08(null);}},FRAME_WAIT_FALLBACK_POLL_MS);});}async function waitForDownloadLinkAttached(_0x12c462,_0x3cc8be=0x61a8){if(!_0x12c462){return;}const _0x1c0b3b=Date['now']();const _0x4d28f4=['a[href*=\x22SetupAuditTrail\x22]','a:has-text(\x22Download\x20setup\x20audit\x20trail\x20for\x20last\x20six\x20months\x22)','a:has-text(\x22Download\x20setup\x20audit\x20trail\x22)'];for(const _0x3ffb85 of _0x4d28f4){const _0x5e32bb=Date['now']()-_0x1c0b3b;const _0x2dca43=_0x3cc8be-_0x5e32bb;if(_0x2dca43<0x190){break;}try{await _0x12c462['locator'](_0x3ffb85)['first']()['waitFor']({'state':'attached','timeout':_0x2dca43});logger['debug']('[H2]\x20Download\x20anchor\x20ready\x20('+_0x3ffb85+')\x20after\x20'+(Date['now']()-_0x1c0b3b)+'ms');return;}catch{}}logger['debug']('[H2]\x20Download\x20anchor\x20not\x20attached\x20within\x20wait\x20(continuing\x20to\x20locator\x20search)');}async function firstVisibleMatchingAnchor(_0x3af6ab,_0x37de24){const _0x3d4a5d=_0x3af6ab['locator'](_0x37de24);let _0x297643;try{_0x297643=await _0x3d4a5d['count']();}catch(_0x400772){logger['debug']('firstVisibleMatchingAnchor\x20count:\x20'+_0x400772['message']);return null;}const _0x10fdf3=Math['min'](_0x297643,MAX_VISIBLE_ANCHOR_CANDIDATES);if(_0x297643>MAX_VISIBLE_ANCHOR_CANDIDATES){logger['debug']('firstVisibleMatchingAnchor:\x20checking\x20first\x20'+_0x10fdf3+'\x20of\x20'+_0x297643+'\x20matches\x20for\x20'+_0x37de24['slice'](0x0,0x28));}for(let _0x1f25f3=0x0;_0x1f25f3<_0x10fdf3;_0x1f25f3++){const _0x587f39=_0x3d4a5d['nth'](_0x1f25f3);try{await _0x587f39['waitFor']({'state':'visible','timeout':VISIBLE_DOWNLOAD_LINK_TIMEOUT_MS});return _0x587f39;}catch{}}return null;}export function buildFrontdoorUrl(_0x423b35,_0x455838,_0x24cb30){const _0x51d166=_0x423b35['replace'](/\/+$/,'');return _0x51d166+'/secur/frontdoor.jsp?sid='+encodeURIComponent(_0x455838)+'&retURL='+encodeURIComponent(_0x24cb30);}export function isSalesforceLoginPage(_0x3314cb,_0x229896){return _0x3314cb==='Login\x20|\x20Salesforce'||typeof _0x229896==='string'&&/[&?]ec=302(?:&|$).*startURL=|[&?]startURL=.*[&?]ec=302(?:&|$)/['test'](_0x229896);}async function findDownloadLocator(_0x4424c1,_0x42fe73){const _0x37cadd=async _0xad6ffa=>{for(const _0x16bce4 of DOWNLOAD_LINK_SELECTORS){try{const _0x2e2a05=await firstVisibleMatchingAnchor(_0xad6ffa,_0x16bce4);if(_0x2e2a05){logger['debug']('Found\x20visible\x20download\x20link:\x20'+_0x16bce4);return _0x2e2a05;}}catch(_0x245749){logger['debug']('Selector\x20'+_0x16bce4+':\x20'+_0x245749['message']);}}return null;};if(_0x42fe73){const _0x2d8f67=await _0x37cadd(_0x42fe73);if(_0x2d8f67){return _0x2d8f67;}}for(const _0x155b6c of _0x4424c1['frames']()){try{const _0x57bdf5=_0x155b6c['url']();if(ORG_SETUP_AUDIT_FRAME_URL['test'](_0x57bdf5)){const _0x576633=await _0x37cadd(_0x155b6c);if(_0x576633){return _0x576633;}}}catch{continue;}}const _0x209556=['iframe[src*=\x22SecurityEvents\x22]','iframe'];for(const _0x5c75fa of _0x209556){try{const _0x27d4fe=_0x4424c1['frameLocator'](_0x5c75fa)['first']();for(const _0x578c1e of DOWNLOAD_LINK_SELECTORS){try{const _0x3025c5=await firstVisibleMatchingAnchor(_0x27d4fe,_0x578c1e);if(_0x3025c5){logger['debug']('Found\x20visible\x20download\x20link:\x20'+_0x5c75fa+'\x20+\x20'+_0x578c1e);return _0x3025c5;}}catch{}}}catch{}}const _0x135bde=[_0x4424c1,..._0x4424c1['frames']()];for(const _0x4ad13a of FALLBACK_LINK_SELECTORS){for(const _0x10096f of _0x135bde){try{const _0x2eb5f5=await firstVisibleMatchingAnchor(_0x10096f,_0x4ad13a);if(_0x2eb5f5){logger['debug']('Found\x20visible\x20download\x20link\x20(fallback):\x20'+_0x4ad13a);return _0x2eb5f5;}}catch(_0x25a7b5){logger['debug']('Fallback\x20selector\x20failed:\x20'+_0x4ad13a+'\x20-\x20'+_0x25a7b5['message']);}}}logger['debug']('No\x20download\x20link\x20found\x20with\x20any\x20selector');return null;}async function retrieveFile(){let _0x3d56f4=null;try{const _0x487da6='/lightning/setup/SecurityEvents/home';const _0x194ea1=performance['now']();let _0x39fc56=_0x194ea1;let _0x5b410c=checkPlaywrightBrowsers();logger['debug']('[timing]\x20checkPlaywrightBrowsers:\x20'+Math['round'](performance['now']()-_0x39fc56)+'ms');_0x39fc56=performance['now']();if(!_0x5b410c){logger['debug']('Playwright\x20browsers\x20not\x20installed.\x20Installing\x20them\x20automatically...');await installPlaywrightBrowsers();_playwrightBrowsersAvailable=null;_0x5b410c=checkPlaywrightBrowsers();if(!_0x5b410c){throw new Error('Failed\x20to\x20install\x20Playwright\x20browsers.\x20Please\x20run\x20manually:\x20npx\x20playwright\x20install\x20chromium');}logger['debug']('[timing]\x20installPlaywrightBrowsers\x20(+recheck):\x20'+Math['round'](performance['now']()-_0x39fc56)+'ms');_0x39fc56=performance['now']();}_0x3d56f4=await chromium['launch']({'headless':!![]});const _0x197058=a0_0x226aac['join'](process['cwd'](),'tmp');if(!a0_0x5e4048['existsSync'](_0x197058)){a0_0x5e4048['mkdirSync'](_0x197058,{'recursive':!![]});}const _0x287cb0=await _0x3d56f4['newContext']({'acceptDownloads':!![],'downloadsPath':_0x197058,'ignoreHTTPSErrors':!a0_0x11ff83['strictSsl']});const _0x54a82c=await _0x287cb0['newPage']();logger['debug']('[timing]\x20chromium.launch\x20+\x20newContext\x20+\x20newPage:\x20'+Math['round'](performance['now']()-_0x39fc56)+'ms');_0x39fc56=performance['now']();const {instanceUrl:_0x181bd1,accessToken:_0x4374fc}=state['org'];if(!_0x181bd1||!_0x4374fc){throw new Error('Missing\x20instanceUrl\x20or\x20accessToken');}const _0x2d7043=buildFrontdoorUrl(_0x181bd1,_0x4374fc,_0x487da6);logger['debug']('[H2]\x20Navigating\x20to:\x20'+_0x487da6);await _0x54a82c['goto'](_0x2d7043,{'waitUntil':'domcontentloaded','timeout':0xea60});logger['debug']('[timing]\x20page.goto(domcontentloaded):\x20'+Math['round'](performance['now']()-_0x39fc56)+'ms');_0x39fc56=performance['now']();let _0x1a7744='n/a';try{_0x1a7744=await _0x54a82c['title']();}catch(_0x551b7a){logger['debug']('[H2]\x20Failed\x20to\x20retrieve\x20page\x20title\x20after\x20load',{'error':_0x551b7a});}logger['debug']('[H2]\x20Page\x20loaded.\x20Title:\x20'+_0x1a7744+',\x20URL:\x20'+_0x54a82c['url']());if(isSalesforceLoginPage(_0x1a7744,_0x54a82c['url']())){throw new Error('Frontdoor\x20login\x20redirected\x20to\x20Salesforce\x20login\x20page:\x20'+_0x54a82c['url']());}try{await _0x54a82c['waitForLoadState']('load',{'timeout':0x2710});}catch{}logger['debug']('[timing]\x20page.title\x20+\x20waitForLoadState(load):\x20'+Math['round'](performance['now']()-_0x39fc56)+'ms');_0x39fc56=performance['now']();const _0x57cce4=await waitForOrgSetupAuditFrame(_0x54a82c,0xea60);logger['debug']('[timing]\x20waitForOrgSetupAuditFrame:\x20'+Math['round'](performance['now']()-_0x39fc56)+'ms');_0x39fc56=performance['now']();await waitForDownloadLinkAttached(_0x57cce4,0x61a8);logger['debug']('[timing]\x20waitForDownloadLinkAttached:\x20'+Math['round'](performance['now']()-_0x39fc56)+'ms');_0x39fc56=performance['now']();logger['debug']('[H1]\x20Resolving\x20download\x20control...');const _0x54f59f=await findDownloadLocator(_0x54a82c,_0x57cce4);logger['debug']('[timing]\x20findDownloadLocator:\x20'+Math['round'](performance['now']()-_0x39fc56)+'ms');_0x39fc56=performance['now']();if(!_0x54f59f){logger['debug']('[H1]\x20Download\x20link\x20not\x20found,\x20listing\x20all\x20links\x20on\x20page...');await listAllLinks(_0x54a82c);throw new Error('Download\x20link\x20not\x20found\x20in\x20Setup\x20Audit\x20Trail.');}const _0x19d2ed=0x7530;logger['debug']('[H1]\x20Subscribing\x20to\x20download\x20event,\x20then\x20clicking...');const _0x5344a7=_0x54a82c['waitForEvent']('download',{'timeout':_0x19d2ed});await _0x54f59f['click']({'timeout':0x1388});logger['debug']('[timing]\x20downloadLocator.click:\x20'+Math['round'](performance['now']()-_0x39fc56)+'ms');_0x39fc56=performance['now']();const _0x12cf23=await _0x5344a7;logger['debug']('[timing]\x20await\x20download\x20event\x20(after\x20click):\x20'+Math['round'](performance['now']()-_0x39fc56)+'ms');logger['debug']('[SUCCESS]\x20Download\x20event\x20received,\x20saving\x20file...');const _0x43bf69=a0_0x226aac['join'](_0x197058,'SetupAuditTrail.csv');_0x39fc56=performance['now']();await _0x12cf23['saveAs'](_0x43bf69);logger['debug']('[timing]\x20download.saveAs:\x20'+Math['round'](performance['now']()-_0x39fc56)+'ms');logger['debug']('[timing]\x20retrieveFile\x20total:\x20'+Math['round'](performance['now']()-_0x194ea1)+'ms');logger['debug']('[SUCCESS]\x20File\x20saved\x20to:\x20'+_0x43bf69);return _0x43bf69;}catch(_0x58289d){logger['error']('[ERROR]\x20Error\x20during\x20Setup\x20Audit\x20Trail\x20download:\x20'+_0x58289d['message']);throw _0x58289d;}finally{if(_0x3d56f4){await _0x3d56f4['close']();}}}function isRetryableDownloadError(_0x430fbc){const _0x1dd3bc=typeof _0x430fbc?.['message']==='string'?_0x430fbc['message']:'';if(!_0x1dd3bc){return![];}if(_0x1dd3bc['includes']('Frame\x20was\x20detached')||_0x1dd3bc['includes']('Target\x20page,\x20context\x20or\x20browser\x20has\x20been\x20closed')){return!![];}if(_0x1dd3bc['includes']('Download\x20link\x20not\x20found\x20in\x20Setup\x20Audit\x20Trail')){return!![];}if(_0x1dd3bc['includes']('Timeout')&&_0x1dd3bc['includes']('download')){return!![];}if(_0x1dd3bc['includes']('net::')||_0x1dd3bc['includes']('ERR_TOO_MANY_REDIRECTS')||_0x1dd3bc['includes']('chrome-error://')){return!![];}return![];}async function retrieveFileWithRetry(_0x6b7f8=0x3){let _0x25cd8c;const _0x52a769=0x7d0;for(let _0x243cb6=0x1;_0x243cb6<=_0x6b7f8;_0x243cb6++){try{return await retrieveFile();}catch(_0x496ad1){_0x25cd8c=_0x496ad1;if(isRetryableDownloadError(_0x496ad1)&&_0x243cb6<_0x6b7f8){logger['debug']('Retryable\x20error\x20on\x20attempt\x20'+_0x243cb6+'/'+_0x6b7f8+':\x20'+_0x496ad1['message']+'.\x20Waiting\x20'+_0x52a769+'ms...');await new Promise(_0x158470=>setTimeout(_0x158470,_0x52a769));continue;}break;}}logger['error']('All\x20download\x20attempts\x20failed.\x20Last\x20error:\x20'+_0x25cd8c?.['message']);throw _0x25cd8c;}export async function retrieveSetupAuditTrailFile(){try{return await retrieveFileWithRetry();}catch(_0x15bda4){logger['error'](_0x15bda4,'Error\x20retrieving\x20Setup\x20Audit\x20Trail\x20file');throw _0x15bda4;}}
|